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