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