Patchwork [U-Boot,5/7] nhk8815: start lower in RAM, so the 800x480 frame buffer fits

login
register
mail settings
Submitter Alessandro Rubini
Date April 15, 2010, 11:12 a.m.
Message ID <72ac35321fb1ed193d95c63b043f7a8b417ebabe.1271329358.git.rubini@unipv.it>
Download mbox | patch
Permalink /patch/71759/
State Not Applicable
Delegated to: Albert ARIBAUD
Headers show

Comments

Alessandro Rubini - April 15, 2010, 11:12 a.m.
From: Alessandro Rubini <rubini@unipv.it>

This simply moves u-boot to a lower address, as the frame buffer
is allocated after u-boot itself in memory.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
---
 board/st/nhk8815/config.mk |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

Patch

diff --git a/board/st/nhk8815/config.mk b/board/st/nhk8815/config.mk
index 590393b..6e5e358 100644
--- a/board/st/nhk8815/config.mk
+++ b/board/st/nhk8815/config.mk
@@ -18,9 +18,7 @@ 
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
-#
-#
-# image should be loaded at 0x01000000
-#
 
-TEXT_BASE = 0x03F80000
+# Start 4MB before the end, as the frame buffer is allocate after
+# u-boot. 800x480 @ 32bpp takes 1.5MB alone, so let's play safe.
+TEXT_BASE = 0x03c00000