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