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