diff options
author | Stany MARCEL <stany.marcel@novasys-ingenierie.com> | 2012-10-16 01:26:11 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2013-04-28 19:17:57 -0400 |
commit | a4eff487da4e4e55a15da2a8e8769151b1881a95 (patch) | |
tree | d7cf81c84869f51554cd1b2e93f66a6a72cb5e04 /arch/m68k | |
parent | e4ba4fc2b98f659f525d02721643a01015a8e3ed (diff) |
m68k: Set ColdFire ACR1 cache mode depending on kernel configuration
For coldfire with MMU enabled, data cache did not follow the configuration but
was configured in writethrough mode.
Signed-off-by: Stany MARCEL <stany.marcel@novasys-ingenierie.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/m54xxacr.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/m54xxacr.h b/arch/m68k/include/asm/m54xxacr.h index 192bbfeabf70..6d13cae44af5 100644 --- a/arch/m68k/include/asm/m54xxacr.h +++ b/arch/m68k/include/asm/m54xxacr.h | |||
@@ -96,8 +96,13 @@ | |||
96 | */ | 96 | */ |
97 | #define ACR0_MODE (ACR_BA(CONFIG_MBAR)+ACR_ADMSK(0x1000000)+ \ | 97 | #define ACR0_MODE (ACR_BA(CONFIG_MBAR)+ACR_ADMSK(0x1000000)+ \ |
98 | ACR_ENABLE+ACR_SUPER+ACR_CM_OFF_PRE+ACR_SP) | 98 | ACR_ENABLE+ACR_SUPER+ACR_CM_OFF_PRE+ACR_SP) |
99 | #if defined(CONFIG_CACHE_COPYBACK) | ||
99 | #define ACR1_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \ | 100 | #define ACR1_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \ |
100 | ACR_ENABLE+ACR_SUPER+ACR_SP) | 101 | ACR_ENABLE+ACR_SUPER+ACR_SP+ACR_CM_CP) |
102 | #else | ||
103 | #define ACR1_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \ | ||
104 | ACR_ENABLE+ACR_SUPER+ACR_SP+ACR_CM_WT) | ||
105 | #endif | ||
101 | #define ACR2_MODE 0 | 106 | #define ACR2_MODE 0 |
102 | #define ACR3_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \ | 107 | #define ACR3_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \ |
103 | ACR_ENABLE+ACR_SUPER+ACR_SP) | 108 | ACR_ENABLE+ACR_SUPER+ACR_SP) |