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