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