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