aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/m52xxacr.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/include/asm/m52xxacr.h')
-rw-r--r--arch/m68k/include/asm/m52xxacr.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/m52xxacr.h b/arch/m68k/include/asm/m52xxacr.h
index 4c92d999ee0..52230b5e1e4 100644
--- a/arch/m68k/include/asm/m52xxacr.h
+++ b/arch/m68k/include/asm/m52xxacr.h
@@ -52,5 +52,32 @@
52#define ACR_BWE 0x00000020 /* Write buffer enabled */ 52#define ACR_BWE 0x00000020 /* Write buffer enabled */
53#define ACR_WPROTECT 0x00000004 /* Write protect region */ 53#define ACR_WPROTECT 0x00000004 /* Write protect region */
54 54
55/*
56 * Set the cache controller settings we will use. This code is set to
57 * only use the instruction cache, even on the controllers that support
58 * split cache. (This setup is trying to preserve the existing behavior
59 * for now, in the furture I hope to actually use the split cache mode).
60 */
61#if defined(CONFIG_M5206) || defined(CONFIG_M5206e) || \
62 defined(CONFIG_M5249) || defined(CONFIG_M5272)
63#define CACHE_INIT (CACR_CINV)
64#define CACHE_MODE (CACR_CENB + CACR_DCM)
65#else
66#ifdef CONFIG_COLDFIRE_SW_A7
67#define CACHE_INIT (CACR_CINV + CACR_DISD)
68#define CACHE_MODE (CACR_CENB + CACR_DISD + CACR_DCM)
69#else
70#define CACHE_INIT (CACR_CINV + CACR_DISD + CACR_EUSP)
71#define CACHE_MODE (CACR_CENB + CACR_DISD + CACR_DCM + CACR_EUSP)
72#endif
73#endif
74
75#define CACHE_INVALIDATE (CACHE_MODE + CACR_CINV)
76
77#define ACR0_MODE ((CONFIG_RAMBASE & 0xff000000) + \
78 (0x000f0000) + \
79 (ACR_ENABLE + ACR_ANY + ACR_CENB + ACR_BWE))
80#define ACR1_MODE 0
81
55/****************************************************************************/ 82/****************************************************************************/
56#endif /* m52xxsim_h */ 83#endif /* m52xxsim_h */