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