]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/sh/Kconfig
sh: Rename arch/sh/kernel/time_32.c to arch/sh/kernel/time.c.
[mirror_ubuntu-bionic-kernel.git] / arch / sh / Kconfig
CommitLineData
1da177e4
LT
1#
2# For a description of the syntax of this configuration file,
3# see Documentation/kbuild/kconfig-language.txt.
4#
5
6mainmenu "Linux/SuperH Kernel Configuration"
7
8config SUPERH
ea0e1a9a 9 def_bool y
7a440c95 10 select EMBEDDED
9483a578 11 select HAVE_CLK
ec7748b5 12 select HAVE_IDE
42d4b839 13 select HAVE_OPROFILE
9de90ac2 14 select HAVE_GENERIC_DMA_COHERENT
21944781 15 select HAVE_IOREMAP_PROT if MMU
d7b01f78 16 select HAVE_ARCH_TRACEHOOK
f802d969 17 select HAVE_DMA_API_DEBUG
1da177e4
LT
18 help
19 The SuperH is a RISC processor targeted for use in embedded systems
20 and consumer electronics; it was also used in the Sega Dreamcast
21 gaming console. The SuperH port has a home page at
22 <http://www.linux-sh.org/>.
23
39d28a2d 24config SUPERH32
3cc000b5 25 def_bool ARCH = "sh"
d39f5450
CS
26 select HAVE_KPROBES
27 select HAVE_KRETPROBES
694f94f2 28 select HAVE_FUNCTION_TRACER
fad57feb
MF
29 select HAVE_FTRACE_MCOUNT_RECORD
30 select HAVE_DYNAMIC_FTRACE
ab6e570b 31 select HAVE_ARCH_KGDB
8dafc346 32 select ARCH_HIBERNATION_POSSIBLE if MMU
47c8a08b 33 select RTC_LIB
ea0e1a9a
PM
34
35config SUPERH64
3cc000b5 36 def_bool ARCH = "sh64"
39d28a2d 37
f42b7e3d
PM
38config ARCH_DEFCONFIG
39 string
40 default "arch/sh/configs/shx3_defconfig" if SUPERH32
41 default "arch/sh/configs/cayman_defconfig" if SUPERH64
42
1da177e4 43config RWSEM_GENERIC_SPINLOCK
d7ef4fb3 44 def_bool y
1da177e4
LT
45
46config RWSEM_XCHGADD_ALGORITHM
47 bool
48
fa691511
PM
49config GENERIC_BUG
50 def_bool y
a82d53ec 51 depends on BUG && SUPERH32
fa691511 52
e2268c71 53config GENERIC_FIND_NEXT_BIT
d7ef4fb3 54 def_bool y
e2268c71
AM
55
56config GENERIC_HWEIGHT
d7ef4fb3 57 def_bool y
e2268c71 58
1da177e4 59config GENERIC_HARDIRQS
d7ef4fb3 60 def_bool y
1da177e4 61
5093c9a4
PM
62config GENERIC_HARDIRQS_NO__DO_IRQ
63 def_bool y
64
1da177e4 65config GENERIC_IRQ_PROBE
d7ef4fb3 66 def_bool y
1da177e4 67
2967dab1
MD
68config GENERIC_GPIO
69 def_bool n
70
1da177e4 71config GENERIC_CALIBRATE_DELAY
cf204fa7 72 bool
1da177e4 73
cad82448
PM
74config GENERIC_IOMAP
75 bool
76
45882145 77config GENERIC_TIME
75634311 78 def_bool y
45882145 79
57be2b48 80config GENERIC_CLOCKEVENTS
938edae1 81 def_bool y
57be2b48 82
8c24594d
PM
83config GENERIC_CLOCKEVENTS_BROADCAST
84 bool
85
bdcab87b
PM
86config GENERIC_LOCKBREAK
87 def_bool y
88 depends on SMP && PREEMPT
89
357d5946
PM
90config SYS_SUPPORTS_PM
91 bool
af998a9a
MD
92 depends on !SMP
93
94config ARCH_SUSPEND_POSSIBLE
95 def_bool n
96
97config ARCH_HIBERNATION_POSSIBLE
98 def_bool n
357d5946 99
0a9b0db1
PM
100config SYS_SUPPORTS_APM_EMULATION
101 bool
af998a9a 102 select ARCH_SUSPEND_POSSIBLE
357d5946
PM
103
104config SYS_SUPPORTS_SMP
105 bool
106
107config SYS_SUPPORTS_NUMA
108 bool
109
110config SYS_SUPPORTS_PCI
111 bool
0a9b0db1 112
f5ad881b
PM
113config SYS_SUPPORTS_CMT
114 bool
115
d5ed4c2e
MD
116config SYS_SUPPORTS_MTU2
117 bool
118
9570ef20
MD
119config SYS_SUPPORTS_TMU
120 bool
121
afbfb52e 122config STACKTRACE_SUPPORT
d7ef4fb3 123 def_bool y
afbfb52e
PM
124
125config LOCKDEP_SUPPORT
d7ef4fb3 126 def_bool y
afbfb52e 127
5a89f1ad
PM
128config HAVE_LATENCYTOP_SUPPORT
129 def_bool y
130 depends on !SMP
131
f0d1b0b3 132config ARCH_HAS_ILOG2_U32
d7ef4fb3 133 def_bool n
f0d1b0b3
DH
134
135config ARCH_HAS_ILOG2_U64
d7ef4fb3 136 def_bool n
f0d1b0b3 137
e257ad06
PM
138config ARCH_NO_VIRT_TO_BUS
139 def_bool y
140
e869a90e
PM
141config ARCH_HAS_DEFAULT_IDLE
142 def_bool y
143
e7cc9a73
MD
144config IO_TRAPPED
145 bool
146
1da177e4
LT
147source "init/Kconfig"
148
dc52ddc0
MH
149source "kernel/Kconfig.freezer"
150
1da177e4
LT
151menu "System type"
152
b5f42db0
PM
153#
154# Processor families
155#
156config CPU_SH2
157 bool
158
159config CPU_SH2A
160 bool
161 select CPU_SH2
162
163config CPU_SH3
164 bool
165 select CPU_HAS_INTEVT
166 select CPU_HAS_SR_RB
4fa48e17 167 select SYS_SUPPORTS_TMU
b5f42db0
PM
168
169config CPU_SH4
170 bool
171 select CPU_HAS_INTEVT
172 select CPU_HAS_SR_RB
173 select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2
174 select CPU_HAS_FPU if !CPU_SH4AL_DSP
4fa48e17 175 select SYS_SUPPORTS_TMU
b5f42db0
PM
176
177config CPU_SH4A
178 bool
179 select CPU_SH4
180
181config CPU_SH4AL_DSP
182 bool
183 select CPU_SH4A
184 select CPU_HAS_DSP
185
ea0e1a9a
PM
186config CPU_SH5
187 bool
188 select CPU_HAS_FPU
add47067 189 select SYS_SUPPORTS_TMU
ea0e1a9a 190
b5f42db0
PM
191config CPU_SHX2
192 bool
193
194config CPU_SHX3
195 bool
196
dc65a977
PM
197config ARCH_SHMOBILE
198 bool
77594912 199 select ARCH_SUSPEND_POSSIBLE
dc65a977 200
3cc000b5
PM
201if SUPERH32
202
b5f42db0
PM
203choice
204 prompt "Processor sub-type selection"
205
206#
207# Processor subtypes
208#
209
210# SH-2 Processor Support
211
212config CPU_SUBTYPE_SH7619
213 bool "Support SH7619 processor"
214 select CPU_SH2
f5ad881b 215 select SYS_SUPPORTS_CMT
b5f42db0
PM
216
217# SH-2A Processor Support
218
2825999e
PG
219config CPU_SUBTYPE_SH7201
220 bool "Support SH7201 processor"
221 select CPU_SH2A
222 select CPU_HAS_FPU
da107c6e 223 select SYS_SUPPORTS_MTU2
2825999e 224
6d01f510
PM
225config CPU_SUBTYPE_SH7203
226 bool "Support SH7203 processor"
227 select CPU_SH2A
74d99a5e 228 select CPU_HAS_FPU
f5ad881b 229 select SYS_SUPPORTS_CMT
da107c6e 230 select SYS_SUPPORTS_MTU2
6d01f510 231
b5f42db0
PM
232config CPU_SUBTYPE_SH7206
233 bool "Support SH7206 processor"
234 select CPU_SH2A
f5ad881b 235 select SYS_SUPPORTS_CMT
da107c6e 236 select SYS_SUPPORTS_MTU2
b5f42db0 237
a8f67f4b
PM
238config CPU_SUBTYPE_SH7263
239 bool "Support SH7263 processor"
240 select CPU_SH2A
74d99a5e 241 select CPU_HAS_FPU
f5ad881b 242 select SYS_SUPPORTS_CMT
da107c6e 243 select SYS_SUPPORTS_MTU2
a8f67f4b 244
2ad69908
PM
245config CPU_SUBTYPE_MXG
246 bool "Support MX-G processor"
247 select CPU_SH2A
da107c6e 248 select SYS_SUPPORTS_MTU2
2ad69908
PM
249 help
250 Select MX-G if running on an R8A03022BG part.
251
b5f42db0
PM
252# SH-3 Processor Support
253
254config CPU_SUBTYPE_SH7705
255 bool "Support SH7705 processor"
256 select CPU_SH3
257
258config CPU_SUBTYPE_SH7706
259 bool "Support SH7706 processor"
260 select CPU_SH3
261 help
262 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
263
264config CPU_SUBTYPE_SH7707
265 bool "Support SH7707 processor"
266 select CPU_SH3
267 help
268 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
269
270config CPU_SUBTYPE_SH7708
271 bool "Support SH7708 processor"
272 select CPU_SH3
273 help
274 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
275 if you have a 100 Mhz SH-3 HD6417708R CPU.
276
277config CPU_SUBTYPE_SH7709
278 bool "Support SH7709 processor"
279 select CPU_SH3
280 help
281 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
282
283config CPU_SUBTYPE_SH7710
284 bool "Support SH7710 processor"
285 select CPU_SH3
286 select CPU_HAS_DSP
287 help
288 Select SH7710 if you have a SH3-DSP SH7710 CPU.
289
290config CPU_SUBTYPE_SH7712
291 bool "Support SH7712 processor"
292 select CPU_SH3
293 select CPU_HAS_DSP
294 help
295 Select SH7712 if you have a SH3-DSP SH7712 CPU.
296
297config CPU_SUBTYPE_SH7720
298 bool "Support SH7720 processor"
299 select CPU_SH3
300 select CPU_HAS_DSP
301 help
302 Select SH7720 if you have a SH3-DSP SH7720 CPU.
303
31a49c4b
YS
304config CPU_SUBTYPE_SH7721
305 bool "Support SH7721 processor"
306 select CPU_SH3
307 select CPU_HAS_DSP
308 help
309 Select SH7721 if you have a SH3-DSP SH7721 CPU.
310
b5f42db0
PM
311# SH-4 Processor Support
312
313config CPU_SUBTYPE_SH7750
314 bool "Support SH7750 processor"
315 select CPU_SH4
316 help
317 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
318
319config CPU_SUBTYPE_SH7091
320 bool "Support SH7091 processor"
321 select CPU_SH4
322 help
323 Select SH7091 if you have an SH-4 based Sega device (such as
324 the Dreamcast, Naomi, and Naomi 2).
325
326config CPU_SUBTYPE_SH7750R
327 bool "Support SH7750R processor"
328 select CPU_SH4
329
330config CPU_SUBTYPE_SH7750S
331 bool "Support SH7750S processor"
332 select CPU_SH4
333
334config CPU_SUBTYPE_SH7751
335 bool "Support SH7751 processor"
336 select CPU_SH4
337 help
338 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
339 or if you have a HD6417751R CPU.
340
341config CPU_SUBTYPE_SH7751R
342 bool "Support SH7751R processor"
343 select CPU_SH4
344
345config CPU_SUBTYPE_SH7760
346 bool "Support SH7760 processor"
347 select CPU_SH4
348
349config CPU_SUBTYPE_SH4_202
350 bool "Support SH4-202 processor"
351 select CPU_SH4
352
353# SH-4A Processor Support
354
178dd0cd
PM
355config CPU_SUBTYPE_SH7723
356 bool "Support SH7723 processor"
357 select CPU_SH4A
358 select CPU_SHX2
dc65a977 359 select ARCH_SHMOBILE
178dd0cd 360 select ARCH_SPARSEMEM_ENABLE
f5ad881b 361 select SYS_SUPPORTS_CMT
178dd0cd
PM
362 help
363 Select SH7723 if you have an SH-MobileR2 CPU.
364
0207a2ef
KM
365config CPU_SUBTYPE_SH7724
366 bool "Support SH7724 processor"
367 select CPU_SH4A
368 select CPU_SHX2
59fe700d 369 select ARCH_SHMOBILE
0207a2ef
KM
370 select ARCH_SPARSEMEM_ENABLE
371 select SYS_SUPPORTS_CMT
372 help
373 Select SH7724 if you have an SH-MobileR2R CPU.
374
7d740a06
YS
375config CPU_SUBTYPE_SH7763
376 bool "Support SH7763 processor"
377 select CPU_SH4A
378 help
379 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
380
b5f42db0
PM
381config CPU_SUBTYPE_SH7770
382 bool "Support SH7770 processor"
383 select CPU_SH4A
384
385config CPU_SUBTYPE_SH7780
386 bool "Support SH7780 processor"
387 select CPU_SH4A
388
389config CPU_SUBTYPE_SH7785
390 bool "Support SH7785 processor"
391 select CPU_SH4A
392 select CPU_SHX2
55ba99eb
KM
393 select ARCH_SPARSEMEM_ENABLE
394 select SYS_SUPPORTS_NUMA
395
396config CPU_SUBTYPE_SH7786
397 bool "Support SH7786 processor"
398 select CPU_SH4A
37042fbd 399 select CPU_SHX3
8263a67e 400 select CPU_HAS_PTEAEX
b5f42db0
PM
401 select ARCH_SPARSEMEM_ENABLE
402 select SYS_SUPPORTS_NUMA
403
404config CPU_SUBTYPE_SHX3
405 bool "Support SH-X3 processor"
406 select CPU_SH4A
407 select CPU_SHX3
408 select ARCH_SPARSEMEM_ENABLE
409 select SYS_SUPPORTS_NUMA
410 select SYS_SUPPORTS_SMP
5840263e 411 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
b5f42db0
PM
412
413# SH4AL-DSP Processor Support
414
415config CPU_SUBTYPE_SH7343
416 bool "Support SH7343 processor"
417 select CPU_SH4AL_DSP
dc65a977 418 select ARCH_SHMOBILE
f5ad881b 419 select SYS_SUPPORTS_CMT
b5f42db0
PM
420
421config CPU_SUBTYPE_SH7722
422 bool "Support SH7722 processor"
423 select CPU_SH4AL_DSP
424 select CPU_SHX2
dc65a977 425 select ARCH_SHMOBILE
b5f42db0
PM
426 select ARCH_SPARSEMEM_ENABLE
427 select SYS_SUPPORTS_NUMA
f5ad881b 428 select SYS_SUPPORTS_CMT
9109a30e
MD
429
430config CPU_SUBTYPE_SH7366
431 bool "Support SH7366 processor"
432 select CPU_SH4AL_DSP
433 select CPU_SHX2
dc65a977 434 select ARCH_SHMOBILE
9109a30e
MD
435 select ARCH_SPARSEMEM_ENABLE
436 select SYS_SUPPORTS_NUMA
f5ad881b 437 select SYS_SUPPORTS_CMT
b5f42db0 438
3cc000b5
PM
439endchoice
440
441endif
442
443if SUPERH64
444
445choice
446 prompt "Processor sub-type selection"
447
ea0e1a9a
PM
448# SH-5 Processor Support
449
450config CPU_SUBTYPE_SH5_101
451 bool "Support SH5-101 processor"
452 select CPU_SH5
453
454config CPU_SUBTYPE_SH5_103
455 bool "Support SH5-103 processor"
8ef97dd7 456 select CPU_SH5
ea0e1a9a 457
b5f42db0
PM
458endchoice
459
3cc000b5
PM
460endif
461
f3d22298 462source "arch/sh/mm/Kconfig"
939a24a6 463
4690bdc7 464source "arch/sh/Kconfig.cpu"
f3d22298 465
939a24a6 466source "arch/sh/boards/Kconfig"
32351a28 467
32351a28
PM
468menu "Timer and clock configuration"
469
cad82448 470config SH_TMU
f5ad881b 471 bool "TMU timer support"
9d4436a6 472 depends on CPU_SH3 || CPU_SH4
f5ad881b 473 default y
1da177e4 474 help
cad82448 475 This enables the use of the TMU as the system timer.
1da177e4 476
9570ef20
MD
477config SH_TIMER_TMU
478 bool "TMU timer driver"
479 depends on !SH_TMU && SYS_SUPPORTS_TMU
480 default y
9570ef20
MD
481 help
482 This enables the build of the TMU timer driver.
483
f5ad881b 484config SH_TIMER_CMT
f425752f
MD
485 bool "CMT timer driver"
486 depends on SYS_SUPPORTS_CMT
487 default y
f425752f
MD
488 help
489 This enables build of the CMT timer driver.
f5ad881b 490
d5ed4c2e
MD
491config SH_TIMER_MTU2
492 bool "MTU2 timer driver"
3280c886 493 depends on SYS_SUPPORTS_MTU2
d5ed4c2e 494 default y
d5ed4c2e
MD
495 help
496 This enables build of the MTU2 timer driver.
497
417528a2
PM
498config SH_TIMER_IRQ
499 int
7d740a06
YS
500 default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \
501 CPU_SUBTYPE_SH7763
417528a2
PM
502 default "86" if CPU_SUBTYPE_SH7619
503 default "140" if CPU_SUBTYPE_SH7206
d63f3a58
PM
504 default "142" if CPU_SUBTYPE_SH7203 && SH_CMT
505 default "153" if CPU_SUBTYPE_SH7203 && SH_MTU2
2ad69908 506 default "238" if CPU_SUBTYPE_MXG
417528a2
PM
507 default "16"
508
cad82448
PM
509config SH_PCLK_FREQ
510 int "Peripheral clock frequency (in Hz)"
870e8a24 511 default "27000000" if CPU_SUBTYPE_SH7343
9d4436a6 512 default "31250000" if CPU_SUBTYPE_SH7619
05627486 513 default "32000000" if CPU_SUBTYPE_SH7722
178dd0cd 514 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
9d4436a6 515 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
a8f67f4b 516 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
a4b1fddc
PM
517 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
518 CPU_SUBTYPE_SH7786
0207a2ef 519 default "41666666" if CPU_SUBTYPE_SH7724
05627486 520 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
cad82448 521 default "66000000" if CPU_SUBTYPE_SH4_202
05627486 522 default "50000000"
1da177e4 523 help
cad82448
PM
524 This option is used to specify the peripheral clock frequency.
525 This is necessary for determining the reference clock value on
526 platforms lacking an RTC.
1da177e4 527
9d4436a6
YS
528config SH_CLK_MD
529 int "CPU Mode Pin Setting"
6d01f510 530 depends on CPU_SH2
357d5946
PM
531 default 6 if CPU_SUBTYPE_SH7206
532 default 5 if CPU_SUBTYPE_SH7619
533 default 0
9d4436a6 534 help
11cbb70e 535 MD2 - MD0 pin setting.
9d4436a6 536
57be2b48
PM
537source "kernel/time/Kconfig"
538
32351a28
PM
539endmenu
540
cad82448
PM
541menu "CPU Frequency scaling"
542
543source "drivers/cpufreq/Kconfig"
1da177e4 544
cad82448
PM
545config SH_CPU_FREQ
546 tristate "SuperH CPU Frequency driver"
cb5ec75b 547 depends on CPU_FREQ
cad82448 548 select CPU_FREQ_TABLE
1da177e4 549 help
8a655053
PM
550 This adds the cpufreq driver for SuperH. Any CPU that supports
551 clock rate rounding through the clock framework can use this
552 driver. While it will make the kernel slightly larger, this is
553 harmless for CPUs that don't support rate rounding. The driver
554 will also generate a notice in the boot log before disabling
555 itself if the CPU in question is not capable of rate rounding.
1da177e4 556
cad82448 557 For details, take a look at <file:Documentation/cpu-freq>.
1da177e4
LT
558
559 If unsure, say N.
560
cad82448
PM
561endmenu
562
9f5e8eee
PM
563source "arch/sh/drivers/Kconfig"
564
cad82448 565endmenu
1da177e4 566
cad82448
PM
567menu "Kernel features"
568
91b91d01
PM
569source kernel/Kconfig.hz
570
cad82448
PM
571config KEXEC
572 bool "kexec system call (EXPERIMENTAL)"
f36b59d1 573 depends on SUPERH32 && EXPERIMENTAL && MMU
1da177e4 574 help
cad82448
PM
575 kexec is a system call that implements the ability to shutdown your
576 current kernel, and to start another kernel. It is like a reboot
1f1332f7 577 but it is independent of the system firmware. And like a reboot
cad82448
PM
578 you can start any kernel with it, not just Linux.
579
1f1332f7 580 The name comes from the similarity to the exec system call.
cad82448
PM
581
582 It is an ongoing process to be certain the hardware in a machine
583 is properly shutdown, so do not be surprised if this code does not
584 initially work for you. It may help to enable device hotplugging
585 support. As of this writing the exact hardware interface is
586 strongly in flux, so no good recommendation can be made.
587
4d5ade5b
PM
588config CRASH_DUMP
589 bool "kernel crash dumps (EXPERIMENTAL)"
640f7487 590 depends on SUPERH32 && EXPERIMENTAL
4d5ade5b
PM
591 help
592 Generate crash dump after being started by kexec.
593 This should be normally only set in special crash dump kernels
594 which are loaded in the main kernel with kexec-tools into
595 a specially reserved region and then later executed after
596 a crash by kdump/kexec. The crash dump kernel must be compiled
597 to a memory address not used by the main kernel using
598 MEMORY_START.
599
600 For more details see Documentation/kdump/kdump.txt
601
b7cf6ddc
MD
602config KEXEC_JUMP
603 bool "kexec jump (EXPERIMENTAL)"
604 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
605 help
606 Jump between original kernel and kexeced kernel and invoke
607 code via KEXEC
608
c4637d47
PM
609config SECCOMP
610 bool "Enable seccomp to safely compute untrusted bytecode"
611 depends on PROC_FS
c4637d47
PM
612 help
613 This kernel feature is useful for number crunching applications
614 that may need to compute untrusted bytecode during their
615 execution. By using pipes or other transports made available to
616 the process as file descriptors supporting the read/write
617 syscalls, it's possible to isolate those applications in
618 their own address space using seccomp. Once seccomp is
619 enabled via prctl, it cannot be disabled and the task is only
620 allowed to execute a few safe syscalls defined by each seccomp
621 mode.
622
623 If unsure, say N.
624
1da177e4
LT
625config SMP
626 bool "Symmetric multi-processing support"
357d5946 627 depends on SYS_SUPPORTS_SMP
490f5de5 628 select USE_GENERIC_SMP_HELPERS
1da177e4
LT
629 ---help---
630 This enables support for systems with more than one CPU. If you have
631 a system with only one CPU, like most personal computers, say N. If
632 you have a system with more than one CPU, say Y.
633
634 If you say N here, the kernel will run on single and multiprocessor
635 machines, but will use only one CPU of a multiprocessor machine. If
636 you say Y here, the kernel will run on many, but not all,
637 singleprocessor machines. On a singleprocessor machine, the kernel
638 will run faster if you say N here.
639
640 People using multiprocessor machines who say Y here should also say
641 Y to "Enhanced Real Time Clock Support", below.
642
03502faa
AB
643 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
644 available at <http://www.tldp.org/docs.html#howto>.
1da177e4
LT
645
646 If you don't know what to do here, say N.
647
648config NR_CPUS
649 int "Maximum number of CPUs (2-32)"
650 range 2 32
651 depends on SMP
2b1bd1ac 652 default "4" if CPU_SHX3
1da177e4
LT
653 default "2"
654 help
655 This allows you to specify the maximum number of CPUs which this
656 kernel will support. The maximum supported value is 32 and the
657 minimum value which makes sense is 2.
658
659 This is purely to save memory - each supported CPU adds
660 approximately eight kilobytes to the kernel image.
661
91b91d01
PM
662source "kernel/Kconfig.preempt"
663
83662461
PM
664config GUSA
665 def_bool y
1efe4ce3 666 depends on !SMP && SUPERH32
83662461
PM
667 help
668 This enables support for gUSA (general UserSpace Atomicity).
669 This is the default implementation for both UP and non-ll/sc
670 CPUs, and is used by the libc, amongst others.
671
672 For additional information, design information can be found
673 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
674
675 This should only be disabled for special cases where alternate
676 atomicity implementations exist.
677
1efe4ce3
SM
678config GUSA_RB
679 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
680 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
681 help
682 Enabling this option will allow the kernel to implement some
692105b8 683 atomic operations using a software implementation of load-locked/
1efe4ce3
SM
684 store-conditional (LLSC). On machines which do not have hardware
685 LLSC, this should be more efficient than the other alternative of
692105b8 686 disabling interrupts around the atomic sequence.
1efe4ce3 687
cad82448 688endmenu
1da177e4 689
cad82448 690menu "Boot options"
1da177e4 691
cad82448
PM
692config ZERO_PAGE_OFFSET
693 hex "Zero page offset"
f5f826c6 694 default "0x00004000" if SH_SH03
7a847f81
PM
695 default "0x00010000" if PAGE_SIZE_64KB
696 default "0x00002000" if PAGE_SIZE_8KB
cad82448 697 default "0x00001000"
1da177e4 698 help
cad82448 699 This sets the default offset of zero page.
1da177e4 700
cad82448
PM
701config BOOT_LINK_OFFSET
702 hex "Link address offset for booting"
703 default "0x00800000"
704 help
705 This option allows you to set the link address offset of the zImage.
706 This can be useful if you are on a board which has a small amount of
707 memory.
1da177e4 708
cad82448
PM
709config UBC_WAKEUP
710 bool "Wakeup UBC on startup"
0e3a9aab 711 depends on CPU_SH4 && !CPU_SH4A
cad82448
PM
712 help
713 Selecting this option will wakeup the User Break Controller (UBC) on
714 startup. Although the UBC is left in an awake state when the processor
715 comes up, some boot loaders misbehave by putting the UBC to sleep in a
716 power saving state, which causes issues with things like ptrace().
1da177e4 717
cad82448 718 If unsure, say N.
1da177e4 719
cad82448
PM
720config CMDLINE_BOOL
721 bool "Default bootloader kernel arguments"
1da177e4 722
cad82448
PM
723config CMDLINE
724 string "Initial kernel command string"
725 depends on CMDLINE_BOOL
726 default "console=ttySC1,115200"
1da177e4
LT
727
728endmenu
729
cad82448 730menu "Bus options"
1da177e4 731
cad82448
PM
732config SUPERHYWAY
733 tristate "SuperHyway Bus support"
734 depends on CPU_SUBTYPE_SH4_202
1da177e4 735
17be2d2b 736config MAPLE
e16038ab
PM
737 bool "Maple Bus support"
738 depends on SH_DREAMCAST
739 help
740 The Maple Bus is SEGA's serial communication bus for peripherals
741 on the Dreamcast. Without this bus support you won't be able to
742 get your Dreamcast keyboard etc to work, so most users
743 probably want to say 'Y' here, unless you are only using the
744 Dreamcast with a serial line terminal or a remote network
745 connection.
17be2d2b 746
1da177e4
LT
747source "arch/sh/drivers/pci/Kconfig"
748
e16038ab
PM
749source "drivers/pci/pcie/Kconfig"
750
1da177e4
LT
751source "drivers/pci/Kconfig"
752
753source "drivers/pcmcia/Kconfig"
754
755source "drivers/pci/hotplug/Kconfig"
756
757endmenu
758
759menu "Executable file formats"
760
761source "fs/Kconfig.binfmt"
762
763endmenu
764
3aa770e7 765menu "Power management options (EXPERIMENTAL)"
af998a9a 766depends on EXPERIMENTAL
f4cb5700 767
c6f17cb2
MD
768source "kernel/power/Kconfig"
769
770source "drivers/cpuidle/Kconfig"
3aa770e7 771
3aa770e7
AS
772endmenu
773
d5950b43
SR
774source "net/Kconfig"
775
1da177e4
LT
776source "drivers/Kconfig"
777
778source "fs/Kconfig"
779
1da177e4
LT
780source "arch/sh/Kconfig.debug"
781
782source "security/Kconfig"
783
784source "crypto/Kconfig"
785
786source "lib/Kconfig"