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