: fix CACHE_ENABLE macro on mcf532x platform
PATCH 1/1 : fix CACHE_ENABLE macro on mcf532x platform
Hi,
This patch is to fix CACHE_ENABLE macro on the mcf532x platform, which is defined in the file: arch/m68k/include/asm/mcfcache.h. This patch is based on Linus' current git tree.
Thanks,
Signature · 2 lines
Best Regards, Lanttor
Quoted 1 line
From
042e0e34bd5a293383e480955df2fecf0770b54fMon Sep 17 00:00:00 2001
From: Lanttor Guo <[email protected]>
Date: Thu, 30 Jul 2009 16:58:41 +0800
Subject: [PATCH] Modify the CACHE_ENABLE macro on mcf5329 platform
Setting ACR0[ADDR_MASK] correctly.
For a given request address, if the ACR is valid and the request mode matches the mode specified in the supervisor mode field(ACRn[S]), hit determination is specified as:
ACRx_hit = 0;
if ((address[31:24] & ~ACRn[23:16]) == (ACRn[31:24] & ~ACRn[23:16]))
ACRx_hit = 1;
--- arch/m68k/include/asm/mcfcache.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/m68k/include/asm/mcfcache.h +1 -1
@@ -97,7 +97,7 @@ movel #0x01000000,%d0 /* invalidate cache cmd */ movec %d0,%CACR /* do invalidate cache */ nop - movel #0x4001C000,%d0 /* set SDRAM cached (write-thru) */ + movel #0x400FC000,%d0 /* set SDRAM cached (write-thru) */ movec %d0,%ACR0 movel #0x00000000,%d0 /* no other regions cached */ movec %d0,%ACR1
Signature · 1 line
1.6.3.2
Quoted 9 lines · Lanttor
Hi,
This patch is to fix
CACHE_ENABLEmacro on the mcf532x platform, which is defined in the file:arch/m68k/include/asm/mcfcache.h. This patch is based on Linus' current git tree.Thanks,
Consider the mcf5329 has 32M SDRAM, I think the original setting of ACR (0x4001c0000) is OK.
So this patch is cancelled, sorry for that :)
Lanttor
_______________________________________________
uClinux-dev mailing list [email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected] To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev