aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/Kconfig')
-rw-r--r--arch/sh/mm/Kconfig69
1 files changed, 28 insertions, 41 deletions
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig
index 2795618e4f07..c3e61b366493 100644
--- a/arch/sh/mm/Kconfig
+++ b/arch/sh/mm/Kconfig
@@ -75,56 +75,25 @@ config MEMORY_SIZE
75config 29BIT 75config 29BIT
76 def_bool !32BIT 76 def_bool !32BIT
77 depends on SUPERH32 77 depends on SUPERH32
78 select UNCACHED_MAPPING
78 79
79config 32BIT 80config 32BIT
80 bool 81 bool
81 default y if CPU_SH5 82 default y if CPU_SH5 || !MMU
82
83config PMB_ENABLE
84 bool "Support 32-bit physical addressing through PMB"
85 depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785)
86 select 32BIT
87 default y
88 help
89 If you say Y here, physical addressing will be extended to
90 32-bits through the SH-4A PMB. If this is not set, legacy
91 29-bit physical addressing will be used.
92
93choice
94 prompt "PMB handling type"
95 depends on PMB_ENABLE
96 default PMB_FIXED
97 83
98config PMB 84config PMB
99 bool "PMB" 85 bool "Support 32-bit physical addressing through PMB"
100 depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785) 86 depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP
101 select 32BIT 87 select 32BIT
88 select UNCACHED_MAPPING
102 help 89 help
103 If you say Y here, physical addressing will be extended to 90 If you say Y here, physical addressing will be extended to
104 32-bits through the SH-4A PMB. If this is not set, legacy 91 32-bits through the SH-4A PMB. If this is not set, legacy
105 29-bit physical addressing will be used. 92 29-bit physical addressing will be used.
106 93
107config PMB_FIXED
108 bool "fixed PMB"
109 depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7780 || \
110 CPU_SUBTYPE_SH7785)
111 select 32BIT
112 help
113 If this option is enabled, fixed PMB mappings are inherited
114 from the boot loader, and the kernel does not attempt dynamic
115 management. This is the closest to legacy 29-bit physical mode,
116 and allows systems to support up to 512MiB of system memory.
117
118endchoice
119
120config X2TLB 94config X2TLB
121 bool "Enable extended TLB mode" 95 def_bool y
122 depends on (CPU_SHX2 || CPU_SHX3) && MMU && EXPERIMENTAL 96 depends on (CPU_SHX2 || CPU_SHX3) && MMU
123 help
124 Selecting this option will enable the extended mode of the SH-X2
125 TLB. For legacy SH-X behaviour and interoperability, say N. For
126 all of the fun new features and a willingless to submit bug reports,
127 say Y.
128 97
129config VSYSCALL 98config VSYSCALL
130 bool "Support vsyscall page" 99 bool "Support vsyscall page"
@@ -192,14 +161,23 @@ config ARCH_MEMORY_PROBE
192 def_bool y 161 def_bool y
193 depends on MEMORY_HOTPLUG 162 depends on MEMORY_HOTPLUG
194 163
164config IOREMAP_FIXED
165 def_bool y
166 depends on X2TLB || SUPERH64
167
168config UNCACHED_MAPPING
169 bool
170
171config HAVE_SRAM_POOL
172 bool
173 select GENERIC_ALLOCATOR
174
195choice 175choice
196 prompt "Kernel page size" 176 prompt "Kernel page size"
197 default PAGE_SIZE_8KB if X2TLB
198 default PAGE_SIZE_4KB 177 default PAGE_SIZE_4KB
199 178
200config PAGE_SIZE_4KB 179config PAGE_SIZE_4KB
201 bool "4kB" 180 bool "4kB"
202 depends on !MMU || !X2TLB
203 help 181 help
204 This is the default page size used by all SuperH CPUs. 182 This is the default page size used by all SuperH CPUs.
205 183
@@ -226,7 +204,7 @@ endchoice
226 204
227choice 205choice
228 prompt "HugeTLB page size" 206 prompt "HugeTLB page size"
229 depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU 207 depends on HUGETLB_PAGE
230 default HUGETLB_PAGE_SIZE_1MB if PAGE_SIZE_64KB 208 default HUGETLB_PAGE_SIZE_1MB if PAGE_SIZE_64KB
231 default HUGETLB_PAGE_SIZE_64K 209 default HUGETLB_PAGE_SIZE_64K
232 210
@@ -257,6 +235,15 @@ endchoice
257 235
258source "mm/Kconfig" 236source "mm/Kconfig"
259 237
238config SCHED_MC
239 bool "Multi-core scheduler support"
240 depends on SMP
241 default y
242 help
243 Multi-core scheduler support improves the CPU scheduler's decision
244 making when dealing with multi-core CPU chips at a cost of slightly
245 increased overhead in some places. If unsure say N here.
246
260endmenu 247endmenu
261 248
262menu "Cache configuration" 249menu "Cache configuration"