aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-04-07 04:08:32 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-04-07 04:08:32 -0400
commit99dc5c0ca953fb154a3c75ebc6801e0a3c2fe3fe (patch)
treeb8d13e936d70f37f70f46ab4adf22a93f48775fc /arch/sh/include
parent94a46d3cde81fc82eef2105fcb5c9e6e31bac0f7 (diff)
sh: Disable MMUCR_AT for SH-4 nommu.
Presently address translation is default-enabled regardless of whether CONFIG_MMU is set or not in the SH-4 case, this fixes it up, and also makes the control init word a bit more readable in the process. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/cpu-sh4/cpu/mmu_context.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/sh/include/cpu-sh4/cpu/mmu_context.h b/arch/sh/include/cpu-sh4/cpu/mmu_context.h
index 2941be617a5f..e46ec708105a 100644
--- a/arch/sh/include/cpu-sh4/cpu/mmu_context.h
+++ b/arch/sh/include/cpu-sh4/cpu/mmu_context.h
@@ -32,7 +32,13 @@
32#define MMU_UTLB_DATA_ARRAY2 0xF7800000 32#define MMU_UTLB_DATA_ARRAY2 0xF7800000
33#define MMU_PAGE_ASSOC_BIT 0x80 33#define MMU_PAGE_ASSOC_BIT 0x80
34 34
35#define MMUCR_TI (1<<2) 35#ifdef CONFIG_MMU
36#define MMUCR_AT (1 << 0)
37#else
38#define MMUCR_AT (0)
39#endif
40
41#define MMUCR_TI (1 << 2)
36 42
37#define MMUCR_URB 0x00FC0000 43#define MMUCR_URB 0x00FC0000
38#define MMUCR_URB_SHIFT 18 44#define MMUCR_URB_SHIFT 18
@@ -65,7 +71,8 @@
65#endif 71#endif
66 72
67#define MMU_NTLB_ENTRIES 64 73#define MMU_NTLB_ENTRIES 64
68#define MMU_CONTROL_INIT (0x05|MMUCR_SQMD|MMUCR_ME|MMUCR_SE|MMUCR_AEX) 74#define MMU_CONTROL_INIT (MMUCR_AT | MMUCR_TI | MMUCR_SQMD | \
75 MMUCR_ME | MMUCR_SE | MMUCR_AEX)
69 76
70#define TRA 0xff000020 77#define TRA 0xff000020
71#define EXPEVT 0xff000024 78#define EXPEVT 0xff000024