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