summaryrefslogtreecommitdiffstats
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Wegner <w.wegner@astro-kom.de>2009-10-28 15:11:00 -0500
committerTsiChung Liew <tsicliew@gmail.com>2010-03-04 01:46:21 -0600
commit992d7129500d239d684c15fa2d61e0a8f2e64457 (patch)
tree5d0b62f3cadac66aa9f69399d57f029f9e89edd1 /cpu
parent870bf3ee60320b58f8970ffe3ddebda0e8ac62f7 (diff)
downloadblackbird-obmc-uboot-992d7129500d239d684c15fa2d61e0a8f2e64457.tar.gz
blackbird-obmc-uboot-992d7129500d239d684c15fa2d61e0a8f2e64457.zip
MCF532x: make icache_enable use CONFIG_SYS_SDRAM_SIZE
in cpu/mcf532x/start.S, the function icache_enable enables the cache for a fixed 32MB region starting at the SDRAM start address; this patch changes the function to cover the region defined by CONFIG_SYS_SDRAM_SIZE Signed-off-by: Wolfgang Wegner <w.wegner at astro-kom.de>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mcf532x/start.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mcf532x/start.S b/cpu/mcf532x/start.S
index a46c47adca..ff13a9f2dd 100644
--- a/cpu/mcf532x/start.S
+++ b/cpu/mcf532x/start.S
@@ -280,7 +280,7 @@ _int_handler:
icache_enable:
move.l #0x01000000, %d0 /* Invalidate cache cmd */
movec %d0, %CACR /* Invalidate cache */
- move.l #(CONFIG_SYS_SDRAM_BASE + 0x1c000), %d0
+ move.l #(CONFIG_SYS_SDRAM_BASE + 0xc000 + ((CONFIG_SYS_SDRAM_SIZE & 0x1fe0) << 11)), %d0
movec %d0, %ACR0 /* Enable cache */
move.l #0x80000200, %d0 /* Setup cache mask */
OpenPOWER on IntegriCloud