]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ColdFire: MCF5329 update cache
authorTsiChungLiew <Tsi-Chung.Liew@freescale.com>
Wed, 15 Aug 2007 23:46:11 +0000 (18:46 -0500)
committerJohn Rigby <jrigby@freescale.com>
Thu, 16 Aug 2007 23:43:20 +0000 (17:43 -0600)
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
cpu/mcf532x/start.S

index ac44aaabec77d04b0fc9b8a0c90d81756710ef4d..5cc1c87cdd0bd5e6e9dbef41c3e31b9cffc3356c 100644 (file)
@@ -268,7 +268,7 @@ _int_handler:
 icache_enable:
        move.l  #0x01000000, %d0                /* Invalidate cache cmd */
        movec   %d0, %CACR                      /* Invalidate cache */
-       move.l  #(CFG_SDRAM_BASE + 0xc000), %d0 /* Setup cache mask */
+       move.l  #(CFG_SDRAM_BASE + 0xc000 + ((CFG_SDRAM_SIZE & 0x1fe0) << 11)), %d0
        movec   %d0, %ACR0                      /* Enable cache */
 
        move.l  #0x80000200, %d0                /* Setup cache mask */