2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
6 mainmenu "Linux/SuperH Kernel Configuration"
15 select HAVE_GENERIC_DMA_COHERENT
16 select HAVE_IOREMAP_PROT if MMU
17 select HAVE_ARCH_TRACEHOOK
18 select HAVE_DMA_API_DEBUG
19 select HAVE_PERF_COUNTERS
20 select HAVE_KERNEL_GZIP
21 select HAVE_KERNEL_BZIP2
22 select HAVE_KERNEL_LZMA
24 select GENERIC_ATOMIC64
26 The SuperH is a RISC processor targeted for use in embedded systems
27 and consumer electronics; it was also used in the Sega Dreamcast
28 gaming console. The SuperH port has a home page at
29 <http://www.linux-sh.org/>.
34 select HAVE_KRETPROBES
35 select HAVE_FUNCTION_TRACER
36 select HAVE_FTRACE_MCOUNT_RECORD
37 select HAVE_DYNAMIC_FTRACE
38 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
39 select HAVE_FTRACE_SYSCALLS
40 select HAVE_FUNCTION_GRAPH_TRACER
42 select ARCH_HIBERNATION_POSSIBLE if MMU
45 def_bool ARCH = "sh64"
49 default "arch/sh/configs/shx3_defconfig" if SUPERH32
50 default "arch/sh/configs/cayman_defconfig" if SUPERH64
52 config RWSEM_GENERIC_SPINLOCK
55 config RWSEM_XCHGADD_ALGORITHM
60 depends on BUG && SUPERH32
66 config GENERIC_FIND_NEXT_BIT
69 config GENERIC_HWEIGHT
72 config GENERIC_HARDIRQS
75 config GENERIC_HARDIRQS_NO__DO_IRQ
78 config GENERIC_IRQ_PROBE
87 config GENERIC_CALIBRATE_DELAY
96 config GENERIC_CLOCKEVENTS
99 config GENERIC_CLOCKEVENTS_BROADCAST
102 config GENERIC_CMOS_UPDATE
104 depends on SH_SH03 || SH_DREAMCAST
106 config GENERIC_LOCKBREAK
108 depends on SMP && PREEMPT
110 config SYS_SUPPORTS_PM
114 config ARCH_SUSPEND_POSSIBLE
117 config ARCH_HIBERNATION_POSSIBLE
120 config SYS_SUPPORTS_APM_EMULATION
122 select ARCH_SUSPEND_POSSIBLE
124 config SYS_SUPPORTS_SMP
127 config SYS_SUPPORTS_NUMA
130 config SYS_SUPPORTS_PCI
133 config SYS_SUPPORTS_CMT
136 config SYS_SUPPORTS_MTU2
139 config SYS_SUPPORTS_TMU
142 config STACKTRACE_SUPPORT
145 config LOCKDEP_SUPPORT
148 config HAVE_LATENCYTOP_SUPPORT
152 config ARCH_HAS_ILOG2_U32
155 config ARCH_HAS_ILOG2_U64
158 config ARCH_NO_VIRT_TO_BUS
161 config ARCH_HAS_DEFAULT_IDLE
164 config ARCH_HAS_CPU_IDLE_WAIT
170 source "init/Kconfig"
172 source "kernel/Kconfig.freezer"
188 select CPU_HAS_INTEVT
190 select SYS_SUPPORTS_TMU
194 select CPU_HAS_INTEVT
196 select CPU_HAS_FPU if !CPU_SH4AL_DSP
197 select SYS_SUPPORTS_TMU
211 select SYS_SUPPORTS_TMU
221 select ARCH_SUSPEND_POSSIBLE
226 prompt "Processor sub-type selection"
232 # SH-2 Processor Support
234 config CPU_SUBTYPE_SH7619
235 bool "Support SH7619 processor"
237 select SYS_SUPPORTS_CMT
239 # SH-2A Processor Support
241 config CPU_SUBTYPE_SH7201
242 bool "Support SH7201 processor"
245 select SYS_SUPPORTS_MTU2
247 config CPU_SUBTYPE_SH7203
248 bool "Support SH7203 processor"
251 select SYS_SUPPORTS_CMT
252 select SYS_SUPPORTS_MTU2
254 config CPU_SUBTYPE_SH7206
255 bool "Support SH7206 processor"
257 select SYS_SUPPORTS_CMT
258 select SYS_SUPPORTS_MTU2
260 config CPU_SUBTYPE_SH7263
261 bool "Support SH7263 processor"
264 select SYS_SUPPORTS_CMT
265 select SYS_SUPPORTS_MTU2
267 config CPU_SUBTYPE_MXG
268 bool "Support MX-G processor"
270 select SYS_SUPPORTS_MTU2
272 Select MX-G if running on an R8A03022BG part.
274 # SH-3 Processor Support
276 config CPU_SUBTYPE_SH7705
277 bool "Support SH7705 processor"
280 config CPU_SUBTYPE_SH7706
281 bool "Support SH7706 processor"
284 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
286 config CPU_SUBTYPE_SH7707
287 bool "Support SH7707 processor"
290 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
292 config CPU_SUBTYPE_SH7708
293 bool "Support SH7708 processor"
296 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
297 if you have a 100 Mhz SH-3 HD6417708R CPU.
299 config CPU_SUBTYPE_SH7709
300 bool "Support SH7709 processor"
303 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
305 config CPU_SUBTYPE_SH7710
306 bool "Support SH7710 processor"
310 Select SH7710 if you have a SH3-DSP SH7710 CPU.
312 config CPU_SUBTYPE_SH7712
313 bool "Support SH7712 processor"
317 Select SH7712 if you have a SH3-DSP SH7712 CPU.
319 config CPU_SUBTYPE_SH7720
320 bool "Support SH7720 processor"
323 select SYS_SUPPORTS_CMT
325 Select SH7720 if you have a SH3-DSP SH7720 CPU.
327 config CPU_SUBTYPE_SH7721
328 bool "Support SH7721 processor"
331 select SYS_SUPPORTS_CMT
333 Select SH7721 if you have a SH3-DSP SH7721 CPU.
335 # SH-4 Processor Support
337 config CPU_SUBTYPE_SH7750
338 bool "Support SH7750 processor"
341 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
343 config CPU_SUBTYPE_SH7091
344 bool "Support SH7091 processor"
347 Select SH7091 if you have an SH-4 based Sega device (such as
348 the Dreamcast, Naomi, and Naomi 2).
350 config CPU_SUBTYPE_SH7750R
351 bool "Support SH7750R processor"
354 config CPU_SUBTYPE_SH7750S
355 bool "Support SH7750S processor"
358 config CPU_SUBTYPE_SH7751
359 bool "Support SH7751 processor"
362 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
363 or if you have a HD6417751R CPU.
365 config CPU_SUBTYPE_SH7751R
366 bool "Support SH7751R processor"
369 config CPU_SUBTYPE_SH7760
370 bool "Support SH7760 processor"
373 config CPU_SUBTYPE_SH4_202
374 bool "Support SH4-202 processor"
377 # SH-4A Processor Support
379 config CPU_SUBTYPE_SH7723
380 bool "Support SH7723 processor"
384 select ARCH_SPARSEMEM_ENABLE
385 select SYS_SUPPORTS_CMT
387 Select SH7723 if you have an SH-MobileR2 CPU.
389 config CPU_SUBTYPE_SH7724
390 bool "Support SH7724 processor"
394 select ARCH_SPARSEMEM_ENABLE
395 select SYS_SUPPORTS_CMT
397 Select SH7724 if you have an SH-MobileR2R CPU.
399 config CPU_SUBTYPE_SH7763
400 bool "Support SH7763 processor"
403 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
405 config CPU_SUBTYPE_SH7770
406 bool "Support SH7770 processor"
409 config CPU_SUBTYPE_SH7780
410 bool "Support SH7780 processor"
413 config CPU_SUBTYPE_SH7785
414 bool "Support SH7785 processor"
417 select ARCH_SPARSEMEM_ENABLE
418 select SYS_SUPPORTS_NUMA
420 config CPU_SUBTYPE_SH7786
421 bool "Support SH7786 processor"
424 select CPU_HAS_PTEAEX
425 select ARCH_SPARSEMEM_ENABLE
426 select SYS_SUPPORTS_NUMA
427 select SYS_SUPPORTS_SMP
428 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
430 config CPU_SUBTYPE_SHX3
431 bool "Support SH-X3 processor"
434 select ARCH_SPARSEMEM_ENABLE
435 select SYS_SUPPORTS_NUMA
436 select SYS_SUPPORTS_SMP
437 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
439 # SH4AL-DSP Processor Support
441 config CPU_SUBTYPE_SH7343
442 bool "Support SH7343 processor"
445 select SYS_SUPPORTS_CMT
447 config CPU_SUBTYPE_SH7722
448 bool "Support SH7722 processor"
452 select ARCH_SPARSEMEM_ENABLE
453 select SYS_SUPPORTS_NUMA
454 select SYS_SUPPORTS_CMT
456 config CPU_SUBTYPE_SH7366
457 bool "Support SH7366 processor"
461 select ARCH_SPARSEMEM_ENABLE
462 select SYS_SUPPORTS_NUMA
463 select SYS_SUPPORTS_CMT
472 prompt "Processor sub-type selection"
474 # SH-5 Processor Support
476 config CPU_SUBTYPE_SH5_101
477 bool "Support SH5-101 processor"
480 config CPU_SUBTYPE_SH5_103
481 bool "Support SH5-103 processor"
488 source "arch/sh/mm/Kconfig"
490 source "arch/sh/Kconfig.cpu"
492 source "arch/sh/boards/Kconfig"
494 menu "Timer and clock configuration"
497 bool "TMU timer driver"
498 depends on SYS_SUPPORTS_TMU
501 This enables the build of the TMU timer driver.
504 bool "CMT timer driver"
505 depends on SYS_SUPPORTS_CMT
508 This enables build of the CMT timer driver.
511 bool "MTU2 timer driver"
512 depends on SYS_SUPPORTS_MTU2
515 This enables build of the MTU2 timer driver.
518 int "Peripheral clock frequency (in Hz)"
519 default "27000000" if CPU_SUBTYPE_SH7343
520 default "31250000" if CPU_SUBTYPE_SH7619
521 default "32000000" if CPU_SUBTYPE_SH7722
522 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
523 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
524 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
525 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
526 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
527 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
528 default "66000000" if CPU_SUBTYPE_SH4_202
531 This option is used to specify the peripheral clock frequency.
532 This is necessary for determining the reference clock value on
533 platforms lacking an RTC.
538 config SH_CLK_CPG_LEGACY
539 depends on SH_CLK_CPG
540 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
543 int "CPU Mode Pin Setting"
545 default 6 if CPU_SUBTYPE_SH7206
546 default 5 if CPU_SUBTYPE_SH7619
549 MD2 - MD0 pin setting.
551 source "kernel/time/Kconfig"
555 menu "CPU Frequency scaling"
557 source "drivers/cpufreq/Kconfig"
560 tristate "SuperH CPU Frequency driver"
562 select CPU_FREQ_TABLE
564 This adds the cpufreq driver for SuperH. Any CPU that supports
565 clock rate rounding through the clock framework can use this
566 driver. While it will make the kernel slightly larger, this is
567 harmless for CPUs that don't support rate rounding. The driver
568 will also generate a notice in the boot log before disabling
569 itself if the CPU in question is not capable of rate rounding.
571 For details, take a look at <file:Documentation/cpu-freq>.
577 source "arch/sh/drivers/Kconfig"
581 menu "Kernel features"
583 source kernel/Kconfig.hz
586 bool "kexec system call (EXPERIMENTAL)"
587 depends on SUPERH32 && EXPERIMENTAL && MMU
589 kexec is a system call that implements the ability to shutdown your
590 current kernel, and to start another kernel. It is like a reboot
591 but it is independent of the system firmware. And like a reboot
592 you can start any kernel with it, not just Linux.
594 The name comes from the similarity to the exec system call.
596 It is an ongoing process to be certain the hardware in a machine
597 is properly shutdown, so do not be surprised if this code does not
598 initially work for you. It may help to enable device hotplugging
599 support. As of this writing the exact hardware interface is
600 strongly in flux, so no good recommendation can be made.
603 bool "kernel crash dumps (EXPERIMENTAL)"
604 depends on SUPERH32 && EXPERIMENTAL
606 Generate crash dump after being started by kexec.
607 This should be normally only set in special crash dump kernels
608 which are loaded in the main kernel with kexec-tools into
609 a specially reserved region and then later executed after
610 a crash by kdump/kexec. The crash dump kernel must be compiled
611 to a memory address not used by the main kernel using
614 For more details see Documentation/kdump/kdump.txt
617 bool "kexec jump (EXPERIMENTAL)"
618 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
620 Jump between original kernel and kexeced kernel and invoke
624 bool "Enable seccomp to safely compute untrusted bytecode"
627 This kernel feature is useful for number crunching applications
628 that may need to compute untrusted bytecode during their
629 execution. By using pipes or other transports made available to
630 the process as file descriptors supporting the read/write
631 syscalls, it's possible to isolate those applications in
632 their own address space using seccomp. Once seccomp is
633 enabled via prctl, it cannot be disabled and the task is only
634 allowed to execute a few safe syscalls defined by each seccomp
640 bool "Symmetric multi-processing support"
641 depends on SYS_SUPPORTS_SMP
642 select USE_GENERIC_SMP_HELPERS
644 This enables support for systems with more than one CPU. If you have
645 a system with only one CPU, like most personal computers, say N. If
646 you have a system with more than one CPU, say Y.
648 If you say N here, the kernel will run on single and multiprocessor
649 machines, but will use only one CPU of a multiprocessor machine. If
650 you say Y here, the kernel will run on many, but not all,
651 singleprocessor machines. On a singleprocessor machine, the kernel
652 will run faster if you say N here.
654 People using multiprocessor machines who say Y here should also say
655 Y to "Enhanced Real Time Clock Support", below.
657 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
658 available at <http://www.tldp.org/docs.html#howto>.
660 If you don't know what to do here, say N.
663 int "Maximum number of CPUs (2-32)"
666 default "4" if CPU_SUBTYPE_SHX3
669 This allows you to specify the maximum number of CPUs which this
670 kernel will support. The maximum supported value is 32 and the
671 minimum value which makes sense is 2.
673 This is purely to save memory - each supported CPU adds
674 approximately eight kilobytes to the kernel image.
676 source "kernel/Kconfig.preempt"
680 depends on !SMP && SUPERH32
682 This enables support for gUSA (general UserSpace Atomicity).
683 This is the default implementation for both UP and non-ll/sc
684 CPUs, and is used by the libc, amongst others.
686 For additional information, design information can be found
687 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
689 This should only be disabled for special cases where alternate
690 atomicity implementations exist.
693 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
694 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
696 Enabling this option will allow the kernel to implement some
697 atomic operations using a software implementation of load-locked/
698 store-conditional (LLSC). On machines which do not have hardware
699 LLSC, this should be more efficient than the other alternative of
700 disabling interrupts around the atomic sequence.
703 bool "Support sparse irq numbering"
704 depends on EXPERIMENTAL
706 This enables support for sparse irqs. This is useful in general
707 as most CPUs have a fairly sparse array of IRQ vectors, which
708 the irq_desc then maps directly on to. Systems with a high
709 number of off-chip IRQs will want to treat this as
710 experimental until they have been independently verified.
712 If you don't know what to do here, say N.
718 config ZERO_PAGE_OFFSET
720 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
721 SH_7751_SOLUTION_ENGINE
722 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
723 default "0x00002000" if PAGE_SIZE_8KB
726 This sets the default offset of zero page.
728 config BOOT_LINK_OFFSET
730 default "0x00210000" if SH_SHMIN
731 default "0x00400000" if SH_CAYMAN
732 default "0x00810000" if SH_7780_SOLUTION_ENGINE
733 default "0x009e0000" if SH_TITAN
734 default "0x01800000" if SH_SDK7780
735 default "0x02000000" if SH_EDOSK7760
738 This option allows you to set the link address offset of the zImage.
739 This can be useful if you are on a board which has a small amount of
744 default "0x00001000" if PAGE_SIZE_4KB
745 default "0x00002000" if PAGE_SIZE_8KB
746 default "0x00004000" if PAGE_SIZE_16KB
747 default "0x00010000" if PAGE_SIZE_64KB
751 bool "Wakeup UBC on startup"
752 depends on CPU_SH4 && !CPU_SH4A
754 Selecting this option will wakeup the User Break Controller (UBC) on
755 startup. Although the UBC is left in an awake state when the processor
756 comes up, some boot loaders misbehave by putting the UBC to sleep in a
757 power saving state, which causes issues with things like ptrace().
762 bool "Default bootloader kernel arguments"
765 string "Initial kernel command string"
766 depends on CMDLINE_BOOL
767 default "console=ttySC1,115200"
774 tristate "SuperHyway Bus support"
775 depends on CPU_SUBTYPE_SH4_202
778 bool "Maple Bus support"
779 depends on SH_DREAMCAST
781 The Maple Bus is SEGA's serial communication bus for peripherals
782 on the Dreamcast. Without this bus support you won't be able to
783 get your Dreamcast keyboard etc to work, so most users
784 probably want to say 'Y' here, unless you are only using the
785 Dreamcast with a serial line terminal or a remote network
788 source "arch/sh/drivers/pci/Kconfig"
790 source "drivers/pci/pcie/Kconfig"
792 source "drivers/pci/Kconfig"
794 source "drivers/pcmcia/Kconfig"
796 source "drivers/pci/hotplug/Kconfig"
800 menu "Executable file formats"
802 source "fs/Kconfig.binfmt"
806 menu "Power management options (EXPERIMENTAL)"
807 depends on EXPERIMENTAL
809 source "kernel/power/Kconfig"
811 source "drivers/cpuidle/Kconfig"
817 source "drivers/Kconfig"
821 source "arch/sh/Kconfig.debug"
823 source "security/Kconfig"
825 source "crypto/Kconfig"