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