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