]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | config SUPERH |
ea0e1a9a | 2 | def_bool y |
6a108a14 | 3 | select EXPERT |
6d803ba7 | 4 | select CLKDEV_LOOKUP |
86e4dd5a | 5 | select HAVE_IDE if HAS_IOPORT |
95f72d1e | 6 | select HAVE_MEMBLOCK |
534cfbee | 7 | select HAVE_MEMBLOCK_NODE_MAP |
adaf7fd2 | 8 | select ARCH_DISCARD_MEMBLOCK |
42d4b839 | 9 | select HAVE_OPROFILE |
9de90ac2 | 10 | select HAVE_GENERIC_DMA_COHERENT |
d7b01f78 | 11 | select HAVE_ARCH_TRACEHOOK |
f802d969 | 12 | select HAVE_DMA_API_DEBUG |
73c926be | 13 | select HAVE_DMA_ATTRS |
e360adbe | 14 | select HAVE_IRQ_WORK |
cdd6c482 | 15 | select HAVE_PERF_EVENTS |
7563bbf8 | 16 | select ARCH_HAVE_CUSTOM_GPIO_H |
df013ffb | 17 | select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A) |
72f0c137 | 18 | select PERF_USE_VMALLOC |
df8ce259 | 19 | select HAVE_KERNEL_GZIP |
07e88e1b PM |
20 | select HAVE_KERNEL_BZIP2 |
21 | select HAVE_KERNEL_LZMA | |
50cfa79d | 22 | select HAVE_KERNEL_XZ |
c7b16efb | 23 | select HAVE_KERNEL_LZO |
a74f7e04 | 24 | select HAVE_SYSCALL_TRACEPOINTS |
eaaaeef3 | 25 | select HAVE_REGS_AND_STACK_ACCESS_API |
57b81330 | 26 | select HAVE_GENERIC_HARDIRQS |
2ed86b16 | 27 | select MAY_HAVE_SPARSE_IRQ |
ed170924 | 28 | select IRQ_FORCED_THREADING |
6eac1af0 | 29 | select RTC_LIB |
f01789c6 | 30 | select GENERIC_ATOMIC64 |
3d44ae40 | 31 | select GENERIC_IRQ_SHOW |
ea0588cb | 32 | select GENERIC_SMP_IDLE_THREAD |
8cf200d8 AMG |
33 | select GENERIC_CLOCKEVENTS |
34 | select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST | |
1da177e4 LT |
35 | help |
36 | The SuperH is a RISC processor targeted for use in embedded systems | |
37 | and consumer electronics; it was also used in the Sega Dreamcast | |
38 | gaming console. The SuperH port has a home page at | |
39 | <http://www.linux-sh.org/>. | |
40 | ||
39d28a2d | 41 | config SUPERH32 |
3cc000b5 | 42 | def_bool ARCH = "sh" |
d39f5450 CS |
43 | select HAVE_KPROBES |
44 | select HAVE_KRETPROBES | |
6d63e73d | 45 | select HAVE_IOREMAP_PROT if MMU && !X2TLB |
694f94f2 | 46 | select HAVE_FUNCTION_TRACER |
fad57feb MF |
47 | select HAVE_FTRACE_MCOUNT_RECORD |
48 | select HAVE_DYNAMIC_FTRACE | |
c1340c05 | 49 | select HAVE_FUNCTION_TRACE_MCOUNT_TEST |
e4b053d9 | 50 | select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE |
327933f5 | 51 | select HAVE_FUNCTION_GRAPH_TRACER |
ab6e570b | 52 | select HAVE_ARCH_KGDB |
6fbfe8d7 | 53 | select HAVE_HW_BREAKPOINT |
0102752e | 54 | select HAVE_MIXED_BREAKPOINTS_REGS |
e583d6b3 | 55 | select PERF_EVENTS |
8dafc346 | 56 | select ARCH_HIBERNATION_POSSIBLE if MMU |
57b81330 | 57 | select SPARSE_IRQ |
ea0e1a9a PM |
58 | |
59 | config SUPERH64 | |
3cc000b5 | 60 | def_bool ARCH = "sh64" |
39d28a2d | 61 | |
f42b7e3d PM |
62 | config ARCH_DEFCONFIG |
63 | string | |
64 | default "arch/sh/configs/shx3_defconfig" if SUPERH32 | |
65 | default "arch/sh/configs/cayman_defconfig" if SUPERH64 | |
66 | ||
1da177e4 | 67 | config RWSEM_GENERIC_SPINLOCK |
d7ef4fb3 | 68 | def_bool y |
1da177e4 LT |
69 | |
70 | config RWSEM_XCHGADD_ALGORITHM | |
71 | bool | |
72 | ||
fa691511 PM |
73 | config GENERIC_BUG |
74 | def_bool y | |
a82d53ec | 75 | depends on BUG && SUPERH32 |
fa691511 | 76 | |
3767f3f1 PM |
77 | config GENERIC_CSUM |
78 | def_bool y | |
79 | depends on SUPERH64 | |
80 | ||
e2268c71 | 81 | config GENERIC_HWEIGHT |
d7ef4fb3 | 82 | def_bool y |
e2268c71 | 83 | |
2eb2a436 PM |
84 | config IRQ_PER_CPU |
85 | def_bool y | |
86 | ||
2967dab1 MD |
87 | config GENERIC_GPIO |
88 | def_bool n | |
89 | ||
1da177e4 | 90 | config GENERIC_CALIBRATE_DELAY |
cf204fa7 | 91 | bool |
1da177e4 | 92 | |
bdcab87b PM |
93 | config GENERIC_LOCKBREAK |
94 | def_bool y | |
95 | depends on SMP && PREEMPT | |
96 | ||
af998a9a MD |
97 | config ARCH_SUSPEND_POSSIBLE |
98 | def_bool n | |
99 | ||
100 | config ARCH_HIBERNATION_POSSIBLE | |
101 | def_bool n | |
357d5946 | 102 | |
0a9b0db1 PM |
103 | config SYS_SUPPORTS_APM_EMULATION |
104 | bool | |
af998a9a | 105 | select ARCH_SUSPEND_POSSIBLE |
357d5946 | 106 | |
ffb4a73d PM |
107 | config SYS_SUPPORTS_HUGETLBFS |
108 | bool | |
109 | ||
357d5946 PM |
110 | config SYS_SUPPORTS_SMP |
111 | bool | |
112 | ||
113 | config SYS_SUPPORTS_NUMA | |
114 | bool | |
115 | ||
116 | config SYS_SUPPORTS_PCI | |
117 | bool | |
0a9b0db1 | 118 | |
f5ad881b PM |
119 | config SYS_SUPPORTS_CMT |
120 | bool | |
121 | ||
d5ed4c2e MD |
122 | config SYS_SUPPORTS_MTU2 |
123 | bool | |
124 | ||
9570ef20 MD |
125 | config SYS_SUPPORTS_TMU |
126 | bool | |
127 | ||
afbfb52e | 128 | config STACKTRACE_SUPPORT |
d7ef4fb3 | 129 | def_bool y |
afbfb52e PM |
130 | |
131 | config LOCKDEP_SUPPORT | |
d7ef4fb3 | 132 | def_bool y |
afbfb52e | 133 | |
5a89f1ad PM |
134 | config HAVE_LATENCYTOP_SUPPORT |
135 | def_bool y | |
5a89f1ad | 136 | |
f0d1b0b3 | 137 | config ARCH_HAS_ILOG2_U32 |
d7ef4fb3 | 138 | def_bool n |
f0d1b0b3 DH |
139 | |
140 | config ARCH_HAS_ILOG2_U64 | |
d7ef4fb3 | 141 | def_bool n |
f0d1b0b3 | 142 | |
e257ad06 PM |
143 | config ARCH_NO_VIRT_TO_BUS |
144 | def_bool y | |
145 | ||
e869a90e PM |
146 | config ARCH_HAS_DEFAULT_IDLE |
147 | def_bool y | |
148 | ||
86e4dd5a | 149 | config NO_IOPORT |
37b7a978 | 150 | def_bool !PCI |
c30b9c43 PM |
151 | depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \ |
152 | !SH_HP6XX && !SH_SOLUTION_ENGINE | |
86e4dd5a | 153 | |
e7cc9a73 MD |
154 | config IO_TRAPPED |
155 | bool | |
156 | ||
b7e68d68 PM |
157 | config SWAP_IO_SPACE |
158 | bool | |
159 | ||
01be5d63 PM |
160 | config DMA_COHERENT |
161 | bool | |
162 | ||
163 | config DMA_NONCOHERENT | |
164 | def_bool !DMA_COHERENT | |
165 | ||
5cabbb62 FT |
166 | config NEED_DMA_MAP_STATE |
167 | def_bool DMA_NONCOHERENT | |
168 | ||
18e98307 FT |
169 | config NEED_SG_DMA_LENGTH |
170 | def_bool y | |
171 | ||
1da177e4 LT |
172 | source "init/Kconfig" |
173 | ||
dc52ddc0 MH |
174 | source "kernel/Kconfig.freezer" |
175 | ||
1da177e4 LT |
176 | menu "System type" |
177 | ||
b5f42db0 PM |
178 | # |
179 | # Processor families | |
180 | # | |
181 | config CPU_SH2 | |
182 | bool | |
183 | ||
184 | config CPU_SH2A | |
185 | bool | |
186 | select CPU_SH2 | |
e2fcf74f | 187 | select UNCACHED_MAPPING |
b5f42db0 PM |
188 | |
189 | config CPU_SH3 | |
190 | bool | |
191 | select CPU_HAS_INTEVT | |
192 | select CPU_HAS_SR_RB | |
4fa48e17 | 193 | select SYS_SUPPORTS_TMU |
b5f42db0 PM |
194 | |
195 | config CPU_SH4 | |
196 | bool | |
197 | select CPU_HAS_INTEVT | |
198 | select CPU_HAS_SR_RB | |
b5f42db0 | 199 | select CPU_HAS_FPU if !CPU_SH4AL_DSP |
4fa48e17 | 200 | select SYS_SUPPORTS_TMU |
ffb4a73d | 201 | select SYS_SUPPORTS_HUGETLBFS if MMU |
b5f42db0 PM |
202 | |
203 | config CPU_SH4A | |
204 | bool | |
205 | select CPU_SH4 | |
206 | ||
207 | config CPU_SH4AL_DSP | |
208 | bool | |
209 | select CPU_SH4A | |
210 | select CPU_HAS_DSP | |
211 | ||
ea0e1a9a PM |
212 | config CPU_SH5 |
213 | bool | |
214 | select CPU_HAS_FPU | |
add47067 | 215 | select SYS_SUPPORTS_TMU |
ffb4a73d | 216 | select SYS_SUPPORTS_HUGETLBFS if MMU |
ea0e1a9a | 217 | |
b5f42db0 PM |
218 | config CPU_SHX2 |
219 | bool | |
220 | ||
221 | config CPU_SHX3 | |
222 | bool | |
01be5d63 | 223 | select DMA_COHERENT |
4b478ee2 PM |
224 | select SYS_SUPPORTS_SMP |
225 | select SYS_SUPPORTS_NUMA | |
b5f42db0 | 226 | |
dc65a977 PM |
227 | config ARCH_SHMOBILE |
228 | bool | |
77594912 | 229 | select ARCH_SUSPEND_POSSIBLE |
ac2c596b MD |
230 | select PM |
231 | select PM_RUNTIME | |
dc65a977 | 232 | |
86c8c047 MF |
233 | config CPU_HAS_PMU |
234 | depends on CPU_SH4 || CPU_SH4A | |
235 | default y | |
236 | bool | |
237 | ||
3cc000b5 PM |
238 | if SUPERH32 |
239 | ||
b5f42db0 PM |
240 | choice |
241 | prompt "Processor sub-type selection" | |
242 | ||
243 | # | |
244 | # Processor subtypes | |
245 | # | |
246 | ||
247 | # SH-2 Processor Support | |
248 | ||
249 | config CPU_SUBTYPE_SH7619 | |
250 | bool "Support SH7619 processor" | |
251 | select CPU_SH2 | |
f5ad881b | 252 | select SYS_SUPPORTS_CMT |
b5f42db0 PM |
253 | |
254 | # SH-2A Processor Support | |
255 | ||
2825999e PG |
256 | config CPU_SUBTYPE_SH7201 |
257 | bool "Support SH7201 processor" | |
258 | select CPU_SH2A | |
259 | select CPU_HAS_FPU | |
da107c6e | 260 | select SYS_SUPPORTS_MTU2 |
2825999e | 261 | |
6d01f510 PM |
262 | config CPU_SUBTYPE_SH7203 |
263 | bool "Support SH7203 processor" | |
264 | select CPU_SH2A | |
74d99a5e | 265 | select CPU_HAS_FPU |
f5ad881b | 266 | select SYS_SUPPORTS_CMT |
da107c6e | 267 | select SYS_SUPPORTS_MTU2 |
f020c92d | 268 | select ARCH_WANT_OPTIONAL_GPIOLIB |
6d01f510 | 269 | |
b5f42db0 PM |
270 | config CPU_SUBTYPE_SH7206 |
271 | bool "Support SH7206 processor" | |
272 | select CPU_SH2A | |
f5ad881b | 273 | select SYS_SUPPORTS_CMT |
da107c6e | 274 | select SYS_SUPPORTS_MTU2 |
b5f42db0 | 275 | |
a8f67f4b PM |
276 | config CPU_SUBTYPE_SH7263 |
277 | bool "Support SH7263 processor" | |
278 | select CPU_SH2A | |
74d99a5e | 279 | select CPU_HAS_FPU |
f5ad881b | 280 | select SYS_SUPPORTS_CMT |
da107c6e | 281 | select SYS_SUPPORTS_MTU2 |
a8f67f4b | 282 | |
51ce3068 PE |
283 | config CPU_SUBTYPE_SH7264 |
284 | bool "Support SH7264 processor" | |
285 | select CPU_SH2A | |
286 | select CPU_HAS_FPU | |
287 | select SYS_SUPPORTS_CMT | |
288 | select SYS_SUPPORTS_MTU2 | |
289 | ||
0b25b7c8 PE |
290 | config CPU_SUBTYPE_SH7269 |
291 | bool "Support SH7269 processor" | |
292 | select CPU_SH2A | |
293 | select CPU_HAS_FPU | |
294 | select SYS_SUPPORTS_CMT | |
295 | select SYS_SUPPORTS_MTU2 | |
296 | ||
2ad69908 PM |
297 | config CPU_SUBTYPE_MXG |
298 | bool "Support MX-G processor" | |
299 | select CPU_SH2A | |
da107c6e | 300 | select SYS_SUPPORTS_MTU2 |
2ad69908 PM |
301 | help |
302 | Select MX-G if running on an R8A03022BG part. | |
303 | ||
b5f42db0 PM |
304 | # SH-3 Processor Support |
305 | ||
306 | config CPU_SUBTYPE_SH7705 | |
307 | bool "Support SH7705 processor" | |
308 | select CPU_SH3 | |
309 | ||
310 | config CPU_SUBTYPE_SH7706 | |
311 | bool "Support SH7706 processor" | |
312 | select CPU_SH3 | |
313 | help | |
314 | Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU. | |
315 | ||
316 | config CPU_SUBTYPE_SH7707 | |
317 | bool "Support SH7707 processor" | |
318 | select CPU_SH3 | |
319 | help | |
320 | Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU. | |
321 | ||
322 | config CPU_SUBTYPE_SH7708 | |
323 | bool "Support SH7708 processor" | |
324 | select CPU_SH3 | |
325 | help | |
326 | Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or | |
327 | if you have a 100 Mhz SH-3 HD6417708R CPU. | |
328 | ||
329 | config CPU_SUBTYPE_SH7709 | |
330 | bool "Support SH7709 processor" | |
331 | select CPU_SH3 | |
332 | help | |
333 | Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU. | |
334 | ||
335 | config CPU_SUBTYPE_SH7710 | |
336 | bool "Support SH7710 processor" | |
337 | select CPU_SH3 | |
338 | select CPU_HAS_DSP | |
339 | help | |
340 | Select SH7710 if you have a SH3-DSP SH7710 CPU. | |
341 | ||
342 | config CPU_SUBTYPE_SH7712 | |
343 | bool "Support SH7712 processor" | |
344 | select CPU_SH3 | |
345 | select CPU_HAS_DSP | |
346 | help | |
347 | Select SH7712 if you have a SH3-DSP SH7712 CPU. | |
348 | ||
349 | config CPU_SUBTYPE_SH7720 | |
350 | bool "Support SH7720 processor" | |
351 | select CPU_SH3 | |
352 | select CPU_HAS_DSP | |
2b23a882 | 353 | select SYS_SUPPORTS_CMT |
f020c92d | 354 | select ARCH_WANT_OPTIONAL_GPIOLIB |
e3e9887e | 355 | select USB_ARCH_HAS_OHCI |
7b61ca5d | 356 | select USB_OHCI_SH if USB_OHCI_HCD |
b5f42db0 PM |
357 | help |
358 | Select SH7720 if you have a SH3-DSP SH7720 CPU. | |
359 | ||
31a49c4b YS |
360 | config CPU_SUBTYPE_SH7721 |
361 | bool "Support SH7721 processor" | |
362 | select CPU_SH3 | |
363 | select CPU_HAS_DSP | |
2b23a882 | 364 | select SYS_SUPPORTS_CMT |
e3e9887e | 365 | select USB_ARCH_HAS_OHCI |
7b61ca5d | 366 | select USB_OHCI_SH if USB_OHCI_HCD |
31a49c4b YS |
367 | help |
368 | Select SH7721 if you have a SH3-DSP SH7721 CPU. | |
369 | ||
b5f42db0 PM |
370 | # SH-4 Processor Support |
371 | ||
372 | config CPU_SUBTYPE_SH7750 | |
373 | bool "Support SH7750 processor" | |
374 | select CPU_SH4 | |
375 | help | |
376 | Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU. | |
377 | ||
378 | config CPU_SUBTYPE_SH7091 | |
379 | bool "Support SH7091 processor" | |
380 | select CPU_SH4 | |
381 | help | |
382 | Select SH7091 if you have an SH-4 based Sega device (such as | |
383 | the Dreamcast, Naomi, and Naomi 2). | |
384 | ||
385 | config CPU_SUBTYPE_SH7750R | |
386 | bool "Support SH7750R processor" | |
387 | select CPU_SH4 | |
388 | ||
389 | config CPU_SUBTYPE_SH7750S | |
390 | bool "Support SH7750S processor" | |
391 | select CPU_SH4 | |
392 | ||
393 | config CPU_SUBTYPE_SH7751 | |
394 | bool "Support SH7751 processor" | |
395 | select CPU_SH4 | |
396 | help | |
397 | Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU, | |
398 | or if you have a HD6417751R CPU. | |
399 | ||
400 | config CPU_SUBTYPE_SH7751R | |
401 | bool "Support SH7751R processor" | |
402 | select CPU_SH4 | |
403 | ||
404 | config CPU_SUBTYPE_SH7760 | |
405 | bool "Support SH7760 processor" | |
406 | select CPU_SH4 | |
407 | ||
408 | config CPU_SUBTYPE_SH4_202 | |
409 | bool "Support SH4-202 processor" | |
410 | select CPU_SH4 | |
411 | ||
412 | # SH-4A Processor Support | |
413 | ||
178dd0cd PM |
414 | config CPU_SUBTYPE_SH7723 |
415 | bool "Support SH7723 processor" | |
416 | select CPU_SH4A | |
417 | select CPU_SHX2 | |
dc65a977 | 418 | select ARCH_SHMOBILE |
178dd0cd | 419 | select ARCH_SPARSEMEM_ENABLE |
f5ad881b | 420 | select SYS_SUPPORTS_CMT |
f020c92d | 421 | select ARCH_WANT_OPTIONAL_GPIOLIB |
178dd0cd PM |
422 | help |
423 | Select SH7723 if you have an SH-MobileR2 CPU. | |
424 | ||
0207a2ef KM |
425 | config CPU_SUBTYPE_SH7724 |
426 | bool "Support SH7724 processor" | |
427 | select CPU_SH4A | |
428 | select CPU_SHX2 | |
59fe700d | 429 | select ARCH_SHMOBILE |
0207a2ef KM |
430 | select ARCH_SPARSEMEM_ENABLE |
431 | select SYS_SUPPORTS_CMT | |
f020c92d | 432 | select ARCH_WANT_OPTIONAL_GPIOLIB |
0207a2ef KM |
433 | help |
434 | Select SH7724 if you have an SH-MobileR2R CPU. | |
435 | ||
fea88a0c NI |
436 | config CPU_SUBTYPE_SH7734 |
437 | bool "Support SH7734 processor" | |
438 | select CPU_SH4A | |
439 | select CPU_SHX2 | |
440 | select ARCH_WANT_OPTIONAL_GPIOLIB | |
441 | select USB_ARCH_HAS_OHCI | |
442 | select USB_ARCH_HAS_EHCI | |
443 | help | |
444 | Select SH7734 if you have a SH4A SH7734 CPU. | |
445 | ||
c01f0f1a YS |
446 | config CPU_SUBTYPE_SH7757 |
447 | bool "Support SH7757 processor" | |
448 | select CPU_SH4A | |
449 | select CPU_SHX2 | |
f020c92d | 450 | select ARCH_WANT_OPTIONAL_GPIOLIB |
0fe48601 YS |
451 | select USB_ARCH_HAS_OHCI |
452 | select USB_ARCH_HAS_EHCI | |
c01f0f1a YS |
453 | help |
454 | Select SH7757 if you have a SH4A SH7757 CPU. | |
455 | ||
7d740a06 YS |
456 | config CPU_SUBTYPE_SH7763 |
457 | bool "Support SH7763 processor" | |
458 | select CPU_SH4A | |
e3e9887e | 459 | select USB_ARCH_HAS_OHCI |
7b61ca5d | 460 | select USB_OHCI_SH if USB_OHCI_HCD |
7d740a06 YS |
461 | help |
462 | Select SH7763 if you have a SH4A SH7763(R5S77631) CPU. | |
463 | ||
b5f42db0 PM |
464 | config CPU_SUBTYPE_SH7770 |
465 | bool "Support SH7770 processor" | |
466 | select CPU_SH4A | |
467 | ||
468 | config CPU_SUBTYPE_SH7780 | |
469 | bool "Support SH7780 processor" | |
470 | select CPU_SH4A | |
471 | ||
472 | config CPU_SUBTYPE_SH7785 | |
473 | bool "Support SH7785 processor" | |
474 | select CPU_SH4A | |
475 | select CPU_SHX2 | |
55ba99eb KM |
476 | select ARCH_SPARSEMEM_ENABLE |
477 | select SYS_SUPPORTS_NUMA | |
f020c92d | 478 | select ARCH_WANT_OPTIONAL_GPIOLIB |
55ba99eb KM |
479 | |
480 | config CPU_SUBTYPE_SH7786 | |
481 | bool "Support SH7786 processor" | |
482 | select CPU_SH4A | |
37042fbd | 483 | select CPU_SHX3 |
8263a67e | 484 | select CPU_HAS_PTEAEX |
2eb2a436 | 485 | select GENERIC_CLOCKEVENTS_BROADCAST if SMP |
f020c92d | 486 | select ARCH_WANT_OPTIONAL_GPIOLIB |
e3e9887e | 487 | select USB_ARCH_HAS_OHCI |
7b61ca5d | 488 | select USB_OHCI_SH if USB_OHCI_HCD |
e3e9887e | 489 | select USB_ARCH_HAS_EHCI |
7b61ca5d | 490 | select USB_EHCI_SH if USB_EHCI_HCD |
b5f42db0 PM |
491 | |
492 | config CPU_SUBTYPE_SHX3 | |
493 | bool "Support SH-X3 processor" | |
494 | select CPU_SH4A | |
495 | select CPU_SHX3 | |
5840263e | 496 | select GENERIC_CLOCKEVENTS_BROADCAST if SMP |
742759ea | 497 | select ARCH_REQUIRE_GPIOLIB |
b5f42db0 PM |
498 | |
499 | # SH4AL-DSP Processor Support | |
500 | ||
501 | config CPU_SUBTYPE_SH7343 | |
502 | bool "Support SH7343 processor" | |
503 | select CPU_SH4AL_DSP | |
dc65a977 | 504 | select ARCH_SHMOBILE |
f5ad881b | 505 | select SYS_SUPPORTS_CMT |
b5f42db0 PM |
506 | |
507 | config CPU_SUBTYPE_SH7722 | |
508 | bool "Support SH7722 processor" | |
509 | select CPU_SH4AL_DSP | |
510 | select CPU_SHX2 | |
dc65a977 | 511 | select ARCH_SHMOBILE |
b5f42db0 PM |
512 | select ARCH_SPARSEMEM_ENABLE |
513 | select SYS_SUPPORTS_NUMA | |
f5ad881b | 514 | select SYS_SUPPORTS_CMT |
f020c92d | 515 | select ARCH_WANT_OPTIONAL_GPIOLIB |
9109a30e MD |
516 | |
517 | config CPU_SUBTYPE_SH7366 | |
518 | bool "Support SH7366 processor" | |
519 | select CPU_SH4AL_DSP | |
520 | select CPU_SHX2 | |
dc65a977 | 521 | select ARCH_SHMOBILE |
9109a30e MD |
522 | select ARCH_SPARSEMEM_ENABLE |
523 | select SYS_SUPPORTS_NUMA | |
f5ad881b | 524 | select SYS_SUPPORTS_CMT |
b5f42db0 | 525 | |
3cc000b5 PM |
526 | endchoice |
527 | ||
528 | endif | |
529 | ||
530 | if SUPERH64 | |
531 | ||
532 | choice | |
533 | prompt "Processor sub-type selection" | |
534 | ||
ea0e1a9a PM |
535 | # SH-5 Processor Support |
536 | ||
537 | config CPU_SUBTYPE_SH5_101 | |
538 | bool "Support SH5-101 processor" | |
539 | select CPU_SH5 | |
540 | ||
541 | config CPU_SUBTYPE_SH5_103 | |
542 | bool "Support SH5-103 processor" | |
8ef97dd7 | 543 | select CPU_SH5 |
ea0e1a9a | 544 | |
b5f42db0 PM |
545 | endchoice |
546 | ||
3cc000b5 PM |
547 | endif |
548 | ||
f3d22298 | 549 | source "arch/sh/mm/Kconfig" |
939a24a6 | 550 | |
4690bdc7 | 551 | source "arch/sh/Kconfig.cpu" |
f3d22298 | 552 | |
939a24a6 | 553 | source "arch/sh/boards/Kconfig" |
32351a28 | 554 | |
32351a28 PM |
555 | menu "Timer and clock configuration" |
556 | ||
9570ef20 MD |
557 | config SH_TIMER_TMU |
558 | bool "TMU timer driver" | |
f19900b2 | 559 | depends on SYS_SUPPORTS_TMU |
9570ef20 | 560 | default y |
9570ef20 MD |
561 | help |
562 | This enables the build of the TMU timer driver. | |
563 | ||
f5ad881b | 564 | config SH_TIMER_CMT |
f425752f MD |
565 | bool "CMT timer driver" |
566 | depends on SYS_SUPPORTS_CMT | |
567 | default y | |
f425752f MD |
568 | help |
569 | This enables build of the CMT timer driver. | |
f5ad881b | 570 | |
d5ed4c2e MD |
571 | config SH_TIMER_MTU2 |
572 | bool "MTU2 timer driver" | |
3280c886 | 573 | depends on SYS_SUPPORTS_MTU2 |
d5ed4c2e | 574 | default y |
d5ed4c2e MD |
575 | help |
576 | This enables build of the MTU2 timer driver. | |
577 | ||
cad82448 PM |
578 | config SH_PCLK_FREQ |
579 | int "Peripheral clock frequency (in Hz)" | |
8152a74b | 580 | depends on SH_CLK_CPG_LEGACY |
9d4436a6 | 581 | default "31250000" if CPU_SUBTYPE_SH7619 |
8152a74b PM |
582 | default "33333333" if CPU_SUBTYPE_SH7770 || \ |
583 | CPU_SUBTYPE_SH7760 || \ | |
584 | CPU_SUBTYPE_SH7705 || \ | |
585 | CPU_SUBTYPE_SH7203 || \ | |
586 | CPU_SUBTYPE_SH7206 || \ | |
587 | CPU_SUBTYPE_SH7263 || \ | |
43a1839c | 588 | CPU_SUBTYPE_MXG |
05627486 | 589 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R |
cad82448 | 590 | default "66000000" if CPU_SUBTYPE_SH4_202 |
05627486 | 591 | default "50000000" |
1da177e4 | 592 | help |
cad82448 PM |
593 | This option is used to specify the peripheral clock frequency. |
594 | This is necessary for determining the reference clock value on | |
595 | platforms lacking an RTC. | |
1da177e4 | 596 | |
36aa1e32 PM |
597 | config SH_CLK_CPG |
598 | def_bool y | |
599 | ||
253b0887 | 600 | config SH_CLK_CPG_LEGACY |
36aa1e32 | 601 | depends on SH_CLK_CPG |
43a1839c | 602 | def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \ |
51ce3068 | 603 | !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \ |
bcb86e0a PM |
604 | !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \ |
605 | !CPU_SUBTYPE_SH7269 | |
253b0887 | 606 | |
32351a28 PM |
607 | endmenu |
608 | ||
cad82448 PM |
609 | menu "CPU Frequency scaling" |
610 | ||
611 | source "drivers/cpufreq/Kconfig" | |
1da177e4 | 612 | |
cad82448 PM |
613 | config SH_CPU_FREQ |
614 | tristate "SuperH CPU Frequency driver" | |
cb5ec75b | 615 | depends on CPU_FREQ |
cad82448 | 616 | select CPU_FREQ_TABLE |
1da177e4 | 617 | help |
8a655053 PM |
618 | This adds the cpufreq driver for SuperH. Any CPU that supports |
619 | clock rate rounding through the clock framework can use this | |
620 | driver. While it will make the kernel slightly larger, this is | |
621 | harmless for CPUs that don't support rate rounding. The driver | |
622 | will also generate a notice in the boot log before disabling | |
623 | itself if the CPU in question is not capable of rate rounding. | |
1da177e4 | 624 | |
cad82448 | 625 | For details, take a look at <file:Documentation/cpu-freq>. |
1da177e4 LT |
626 | |
627 | If unsure, say N. | |
628 | ||
cad82448 PM |
629 | endmenu |
630 | ||
9f5e8eee PM |
631 | source "arch/sh/drivers/Kconfig" |
632 | ||
cad82448 | 633 | endmenu |
1da177e4 | 634 | |
cad82448 PM |
635 | menu "Kernel features" |
636 | ||
91b91d01 PM |
637 | source kernel/Kconfig.hz |
638 | ||
cad82448 PM |
639 | config KEXEC |
640 | bool "kexec system call (EXPERIMENTAL)" | |
f36b59d1 | 641 | depends on SUPERH32 && EXPERIMENTAL && MMU |
1da177e4 | 642 | help |
cad82448 PM |
643 | kexec is a system call that implements the ability to shutdown your |
644 | current kernel, and to start another kernel. It is like a reboot | |
1f1332f7 | 645 | but it is independent of the system firmware. And like a reboot |
cad82448 PM |
646 | you can start any kernel with it, not just Linux. |
647 | ||
1f1332f7 | 648 | The name comes from the similarity to the exec system call. |
cad82448 PM |
649 | |
650 | It is an ongoing process to be certain the hardware in a machine | |
651 | is properly shutdown, so do not be surprised if this code does not | |
652 | initially work for you. It may help to enable device hotplugging | |
653 | support. As of this writing the exact hardware interface is | |
654 | strongly in flux, so no good recommendation can be made. | |
655 | ||
4d5ade5b PM |
656 | config CRASH_DUMP |
657 | bool "kernel crash dumps (EXPERIMENTAL)" | |
d523e1ae | 658 | depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP |
4d5ade5b PM |
659 | help |
660 | Generate crash dump after being started by kexec. | |
661 | This should be normally only set in special crash dump kernels | |
662 | which are loaded in the main kernel with kexec-tools into | |
663 | a specially reserved region and then later executed after | |
664 | a crash by kdump/kexec. The crash dump kernel must be compiled | |
665 | to a memory address not used by the main kernel using | |
e66ac3f2 | 666 | PHYSICAL_START. |
4d5ade5b PM |
667 | |
668 | For more details see Documentation/kdump/kdump.txt | |
669 | ||
b7cf6ddc MD |
670 | config KEXEC_JUMP |
671 | bool "kexec jump (EXPERIMENTAL)" | |
672 | depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL | |
673 | help | |
674 | Jump between original kernel and kexeced kernel and invoke | |
675 | code via KEXEC | |
676 | ||
e66ac3f2 SH |
677 | config PHYSICAL_START |
678 | hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP) | |
679 | default MEMORY_START | |
680 | ---help--- | |
681 | This gives the physical address where the kernel is loaded | |
682 | and is ordinarily the same as MEMORY_START. | |
683 | ||
684 | Different values are primarily used in the case of kexec on panic | |
685 | where the fail safe kernel needs to run at a different address | |
686 | than the panic-ed kernel. | |
687 | ||
c4637d47 PM |
688 | config SECCOMP |
689 | bool "Enable seccomp to safely compute untrusted bytecode" | |
690 | depends on PROC_FS | |
c4637d47 PM |
691 | help |
692 | This kernel feature is useful for number crunching applications | |
693 | that may need to compute untrusted bytecode during their | |
694 | execution. By using pipes or other transports made available to | |
695 | the process as file descriptors supporting the read/write | |
696 | syscalls, it's possible to isolate those applications in | |
697 | their own address space using seccomp. Once seccomp is | |
698 | enabled via prctl, it cannot be disabled and the task is only | |
699 | allowed to execute a few safe syscalls defined by each seccomp | |
700 | mode. | |
701 | ||
702 | If unsure, say N. | |
703 | ||
5d920bb9 FA |
704 | config CC_STACKPROTECTOR |
705 | bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)" | |
706 | depends on SUPERH32 && EXPERIMENTAL | |
707 | help | |
708 | This option turns on the -fstack-protector GCC feature. This | |
709 | feature puts, at the beginning of functions, a canary value on | |
710 | the stack just before the return address, and validates | |
711 | the value just before actually returning. Stack based buffer | |
712 | overflows (that need to overwrite this return address) now also | |
713 | overwrite the canary, which gets detected and the attack is then | |
714 | neutralized via a kernel panic. | |
715 | ||
716 | This feature requires gcc version 4.2 or above. | |
717 | ||
1da177e4 LT |
718 | config SMP |
719 | bool "Symmetric multi-processing support" | |
357d5946 | 720 | depends on SYS_SUPPORTS_SMP |
490f5de5 | 721 | select USE_GENERIC_SMP_HELPERS |
1da177e4 LT |
722 | ---help--- |
723 | This enables support for systems with more than one CPU. If you have | |
724 | a system with only one CPU, like most personal computers, say N. If | |
725 | you have a system with more than one CPU, say Y. | |
726 | ||
727 | If you say N here, the kernel will run on single and multiprocessor | |
728 | machines, but will use only one CPU of a multiprocessor machine. If | |
729 | you say Y here, the kernel will run on many, but not all, | |
730 | singleprocessor machines. On a singleprocessor machine, the kernel | |
731 | will run faster if you say N here. | |
732 | ||
733 | People using multiprocessor machines who say Y here should also say | |
734 | Y to "Enhanced Real Time Clock Support", below. | |
735 | ||
03502faa AB |
736 | See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO |
737 | available at <http://www.tldp.org/docs.html#howto>. | |
1da177e4 LT |
738 | |
739 | If you don't know what to do here, say N. | |
740 | ||
741 | config NR_CPUS | |
742 | int "Maximum number of CPUs (2-32)" | |
743 | range 2 32 | |
744 | depends on SMP | |
2eb2a436 | 745 | default "4" if CPU_SUBTYPE_SHX3 |
1da177e4 LT |
746 | default "2" |
747 | help | |
748 | This allows you to specify the maximum number of CPUs which this | |
749 | kernel will support. The maximum supported value is 32 and the | |
750 | minimum value which makes sense is 2. | |
751 | ||
752 | This is purely to save memory - each supported CPU adds | |
753 | approximately eight kilobytes to the kernel image. | |
754 | ||
763142d1 PM |
755 | config HOTPLUG_CPU |
756 | bool "Support for hot-pluggable CPUs (EXPERIMENTAL)" | |
757 | depends on SMP && HOTPLUG && EXPERIMENTAL | |
758 | help | |
759 | Say Y here to experiment with turning CPUs off and on. CPUs | |
760 | can be controlled through /sys/devices/system/cpu. | |
761 | ||
91b91d01 PM |
762 | source "kernel/Kconfig.preempt" |
763 | ||
83662461 PM |
764 | config GUSA |
765 | def_bool y | |
1efe4ce3 | 766 | depends on !SMP && SUPERH32 |
83662461 PM |
767 | help |
768 | This enables support for gUSA (general UserSpace Atomicity). | |
769 | This is the default implementation for both UP and non-ll/sc | |
770 | CPUs, and is used by the libc, amongst others. | |
771 | ||
772 | For additional information, design information can be found | |
773 | in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>. | |
774 | ||
775 | This should only be disabled for special cases where alternate | |
776 | atomicity implementations exist. | |
777 | ||
1efe4ce3 SM |
778 | config GUSA_RB |
779 | bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)" | |
780 | depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A) | |
781 | help | |
782 | Enabling this option will allow the kernel to implement some | |
692105b8 | 783 | atomic operations using a software implementation of load-locked/ |
1efe4ce3 SM |
784 | store-conditional (LLSC). On machines which do not have hardware |
785 | LLSC, this should be more efficient than the other alternative of | |
692105b8 | 786 | disabling interrupts around the atomic sequence. |
1efe4ce3 | 787 | |
86c8c047 MF |
788 | config HW_PERF_EVENTS |
789 | bool "Enable hardware performance counter support for perf events" | |
790 | depends on PERF_EVENTS && CPU_HAS_PMU | |
791 | default y | |
792 | help | |
793 | Enable hardware performance counter support for perf events. If | |
794 | disabled, perf events will use software events only. | |
795 | ||
43b8774d PM |
796 | source "drivers/sh/Kconfig" |
797 | ||
cad82448 | 798 | endmenu |
1da177e4 | 799 | |
cad82448 | 800 | menu "Boot options" |
1da177e4 | 801 | |
cad82448 | 802 | config ZERO_PAGE_OFFSET |
b412a49a PM |
803 | hex |
804 | default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \ | |
805 | SH_7751_SOLUTION_ENGINE | |
806 | default "0x00004000" if PAGE_SIZE_16KB || SH_SH03 | |
7a847f81 | 807 | default "0x00002000" if PAGE_SIZE_8KB |
cad82448 | 808 | default "0x00001000" |
1da177e4 | 809 | help |
cad82448 | 810 | This sets the default offset of zero page. |
1da177e4 | 811 | |
cad82448 | 812 | config BOOT_LINK_OFFSET |
b412a49a PM |
813 | hex |
814 | default "0x00210000" if SH_SHMIN | |
a2e76c80 | 815 | default "0x00400000" if SH_CAYMAN |
b412a49a PM |
816 | default "0x00810000" if SH_7780_SOLUTION_ENGINE |
817 | default "0x009e0000" if SH_TITAN | |
818 | default "0x01800000" if SH_SDK7780 | |
819 | default "0x02000000" if SH_EDOSK7760 | |
cad82448 PM |
820 | default "0x00800000" |
821 | help | |
822 | This option allows you to set the link address offset of the zImage. | |
823 | This can be useful if you are on a board which has a small amount of | |
824 | memory. | |
1da177e4 | 825 | |
b412a49a PM |
826 | config ENTRY_OFFSET |
827 | hex | |
828 | default "0x00001000" if PAGE_SIZE_4KB | |
829 | default "0x00002000" if PAGE_SIZE_8KB | |
830 | default "0x00004000" if PAGE_SIZE_16KB | |
831 | default "0x00010000" if PAGE_SIZE_64KB | |
832 | default "0x00000000" | |
833 | ||
4705b2e8 MD |
834 | config ROMIMAGE_MMCIF |
835 | bool "Include MMCIF loader in romImage (EXPERIMENTAL)" | |
836 | depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL | |
837 | help | |
838 | Say Y here to include experimental MMCIF loading code in | |
839 | romImage. With this enabled it is possible to write the romImage | |
840 | kernel image to an MMC card and boot the kernel straight from | |
841 | the reset vector. At reset the processor Mask ROM will load the | |
842 | first part of the romImage which in turn loads the rest the kernel | |
843 | image to RAM using the MMCIF hardware block. | |
844 | ||
d724a9c9 PM |
845 | choice |
846 | prompt "Kernel command line" | |
847 | optional | |
848 | default CMDLINE_OVERWRITE | |
849 | help | |
850 | Setting this option allows the kernel command line arguments | |
851 | to be set. | |
852 | ||
853 | config CMDLINE_OVERWRITE | |
854 | bool "Overwrite bootloader kernel arguments" | |
855 | help | |
856 | Given string will overwrite any arguments passed in by | |
857 | a bootloader. | |
858 | ||
859 | config CMDLINE_EXTEND | |
860 | bool "Extend bootloader kernel arguments" | |
861 | help | |
862 | Given string will be concatenated with arguments passed in | |
863 | by a bootloader. | |
864 | ||
865 | endchoice | |
1da177e4 | 866 | |
cad82448 | 867 | config CMDLINE |
d724a9c9 PM |
868 | string "Kernel command line arguments string" |
869 | depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND | |
cad82448 | 870 | default "console=ttySC1,115200" |
1da177e4 LT |
871 | |
872 | endmenu | |
873 | ||
cad82448 | 874 | menu "Bus options" |
1da177e4 | 875 | |
cad82448 PM |
876 | config SUPERHYWAY |
877 | tristate "SuperHyway Bus support" | |
878 | depends on CPU_SUBTYPE_SH4_202 | |
1da177e4 | 879 | |
17be2d2b | 880 | config MAPLE |
e16038ab PM |
881 | bool "Maple Bus support" |
882 | depends on SH_DREAMCAST | |
883 | help | |
884 | The Maple Bus is SEGA's serial communication bus for peripherals | |
885 | on the Dreamcast. Without this bus support you won't be able to | |
886 | get your Dreamcast keyboard etc to work, so most users | |
887 | probably want to say 'Y' here, unless you are only using the | |
888 | Dreamcast with a serial line terminal or a remote network | |
889 | connection. | |
17be2d2b | 890 | |
7693465d PM |
891 | config PCI |
892 | bool "PCI support" | |
893 | depends on SYS_SUPPORTS_PCI | |
320e68da | 894 | select PCI_DOMAINS |
43db595e | 895 | select GENERIC_PCI_IOMAP |
1e05b62a | 896 | select NO_GENERIC_PCI_IOPORT_MAP |
7693465d PM |
897 | help |
898 | Find out whether you have a PCI motherboard. PCI is the name of a | |
899 | bus system, i.e. the way the CPU talks to the other stuff inside | |
900 | your box. If you have PCI, say Y, otherwise N. | |
1da177e4 | 901 | |
320e68da PM |
902 | config PCI_DOMAINS |
903 | bool | |
904 | ||
e16038ab PM |
905 | source "drivers/pci/pcie/Kconfig" |
906 | ||
1da177e4 LT |
907 | source "drivers/pci/Kconfig" |
908 | ||
909 | source "drivers/pcmcia/Kconfig" | |
910 | ||
911 | source "drivers/pci/hotplug/Kconfig" | |
912 | ||
913 | endmenu | |
914 | ||
915 | menu "Executable file formats" | |
916 | ||
917 | source "fs/Kconfig.binfmt" | |
918 | ||
919 | endmenu | |
920 | ||
3aa770e7 | 921 | menu "Power management options (EXPERIMENTAL)" |
af998a9a | 922 | depends on EXPERIMENTAL |
f4cb5700 | 923 | |
c6f17cb2 MD |
924 | source "kernel/power/Kconfig" |
925 | ||
926 | source "drivers/cpuidle/Kconfig" | |
3aa770e7 | 927 | |
3aa770e7 AS |
928 | endmenu |
929 | ||
d5950b43 SR |
930 | source "net/Kconfig" |
931 | ||
1da177e4 LT |
932 | source "drivers/Kconfig" |
933 | ||
934 | source "fs/Kconfig" | |
935 | ||
1da177e4 LT |
936 | source "arch/sh/Kconfig.debug" |
937 | ||
938 | source "security/Kconfig" | |
939 | ||
940 | source "crypto/Kconfig" | |
941 | ||
942 | source "lib/Kconfig" |