diff options
Diffstat (limited to 'arch/sh/mm/Kconfig')
-rw-r--r-- | arch/sh/mm/Kconfig | 69 |
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 | |||
75 | config 29BIT | 75 | config 29BIT |
76 | def_bool !32BIT | 76 | def_bool !32BIT |
77 | depends on SUPERH32 | 77 | depends on SUPERH32 |
78 | select UNCACHED_MAPPING | ||
78 | 79 | ||
79 | config 32BIT | 80 | config 32BIT |
80 | bool | 81 | bool |
81 | default y if CPU_SH5 | 82 | default y if CPU_SH5 || !MMU |
82 | |||
83 | config 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 | |||
93 | choice | ||
94 | prompt "PMB handling type" | ||
95 | depends on PMB_ENABLE | ||
96 | default PMB_FIXED | ||
97 | 83 | ||
98 | config PMB | 84 | config 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 | ||
107 | config 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 | |||
118 | endchoice | ||
119 | |||
120 | config X2TLB | 94 | config 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 | ||
129 | config VSYSCALL | 98 | config 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 | ||
164 | config IOREMAP_FIXED | ||
165 | def_bool y | ||
166 | depends on X2TLB || SUPERH64 | ||
167 | |||
168 | config UNCACHED_MAPPING | ||
169 | bool | ||
170 | |||
171 | config HAVE_SRAM_POOL | ||
172 | bool | ||
173 | select GENERIC_ALLOCATOR | ||
174 | |||
195 | choice | 175 | choice |
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 | ||
200 | config PAGE_SIZE_4KB | 179 | config 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 | ||
227 | choice | 205 | choice |
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 | ||
258 | source "mm/Kconfig" | 236 | source "mm/Kconfig" |
259 | 237 | ||
238 | config 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 | |||
260 | endmenu | 247 | endmenu |
261 | 248 | ||
262 | menu "Cache configuration" | 249 | menu "Cache configuration" |