summaryrefslogtreecommitdiff
path: root/lib_m68k
diff options
context:
space:
mode:
authorTsiChungLiew <Tsi-Chung.Liew@freescale.com>2008-01-14 17:43:33 -0600
committerTsiChungLiew <Tsi-Chung.Liew@freescale.com>2008-01-17 14:59:41 -0600
commit1552af70ecab11b9f3dceff7528ed15faf678b9d (patch)
tree19f641d3a5ff6ccd0a6089eb49a090a509e90dc3 /lib_m68k
parent397b7b81a1f1008798ae1206913508cc89cb3a7d (diff)
downloadu-boot-imx-1552af70ecab11b9f3dceff7528ed15faf678b9d.zip
u-boot-imx-1552af70ecab11b9f3dceff7528ed15faf678b9d.tar.gz
u-boot-imx-1552af70ecab11b9f3dceff7528ed15faf678b9d.tar.bz2
ColdFire: Add MCF5227x cpu and M52277EVB support-1
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com> Signed-off by: John Rigby <jrigby@freescale.com>
Diffstat (limited to 'lib_m68k')
-rw-r--r--lib_m68k/board.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib_m68k/board.c b/lib_m68k/board.c
index 43f97c4..9159206 100644
--- a/lib_m68k/board.c
+++ b/lib_m68k/board.c
@@ -313,6 +313,16 @@ board_init_f (ulong bootflag)
debug ("Reserving %ldk for protected RAM at %08lx\n", reg, addr);
#endif /* CONFIG_PRAM */
+ /* round down to next 4 kB limit */
+ addr &= ~(4096 - 1);
+ debug ("Top of RAM usable for U-Boot at: %08lx\n", addr);
+
+#ifdef CONFIG_LCD
+ /* reserve memory for LCD display (always full pages) */
+ addr = lcd_setmem (addr);
+ gd->fb_base = addr;
+#endif /* CONFIG_LCD */
+
/*
* reserve memory for U-Boot code, data & bss
* round down to next 4 kB limit