2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
6 mainmenu "Linux/SuperH Kernel Configuration"
14 select HAVE_GENERIC_DMA_COHERENT
15 select HAVE_IOREMAP_PROT if MMU
16 select HAVE_ARCH_TRACEHOOK
17 select HAVE_DMA_API_DEBUG
18 select HAVE_PERF_COUNTER
20 select GENERIC_ATOMIC64
22 The SuperH is a RISC processor targeted for use in embedded systems
23 and consumer electronics; it was also used in the Sega Dreamcast
24 gaming console. The SuperH port has a home page at
25 <http://www.linux-sh.org/>.
30 select HAVE_KRETPROBES
31 select HAVE_FUNCTION_TRACER
32 select HAVE_FTRACE_MCOUNT_RECORD
33 select HAVE_DYNAMIC_FTRACE
35 select ARCH_HIBERNATION_POSSIBLE if MMU
38 def_bool ARCH = "sh64"
42 default "arch/sh/configs/shx3_defconfig" if SUPERH32
43 default "arch/sh/configs/cayman_defconfig" if SUPERH64
45 config RWSEM_GENERIC_SPINLOCK
48 config RWSEM_XCHGADD_ALGORITHM
53 depends on BUG && SUPERH32
59 config GENERIC_FIND_NEXT_BIT
62 config GENERIC_HWEIGHT
65 config GENERIC_HARDIRQS
68 config GENERIC_HARDIRQS_NO__DO_IRQ
71 config GENERIC_IRQ_PROBE
77 config GENERIC_CALIBRATE_DELAY
86 config GENERIC_CLOCKEVENTS
89 config GENERIC_CLOCKEVENTS_BROADCAST
92 config GENERIC_CMOS_UPDATE
94 depends on SH_SH03 || SH_DREAMCAST
96 config GENERIC_LOCKBREAK
98 depends on SMP && PREEMPT
100 config SYS_SUPPORTS_PM
104 config ARCH_SUSPEND_POSSIBLE
107 config ARCH_HIBERNATION_POSSIBLE
110 config SYS_SUPPORTS_APM_EMULATION
112 select ARCH_SUSPEND_POSSIBLE
114 config SYS_SUPPORTS_SMP
117 config SYS_SUPPORTS_NUMA
120 config SYS_SUPPORTS_PCI
123 config SYS_SUPPORTS_CMT
126 config SYS_SUPPORTS_MTU2
129 config SYS_SUPPORTS_TMU
132 config STACKTRACE_SUPPORT
135 config LOCKDEP_SUPPORT
138 config HAVE_LATENCYTOP_SUPPORT
142 config ARCH_HAS_ILOG2_U32
145 config ARCH_HAS_ILOG2_U64
148 config ARCH_NO_VIRT_TO_BUS
151 config ARCH_HAS_DEFAULT_IDLE
157 source "init/Kconfig"
159 source "kernel/Kconfig.freezer"
175 select CPU_HAS_INTEVT
177 select SYS_SUPPORTS_TMU
181 select CPU_HAS_INTEVT
183 select CPU_HAS_FPU if !CPU_SH4AL_DSP
184 select SYS_SUPPORTS_TMU
198 select SYS_SUPPORTS_TMU
208 select ARCH_SUSPEND_POSSIBLE
213 prompt "Processor sub-type selection"
219 # SH-2 Processor Support
221 config CPU_SUBTYPE_SH7619
222 bool "Support SH7619 processor"
224 select SYS_SUPPORTS_CMT
226 # SH-2A Processor Support
228 config CPU_SUBTYPE_SH7201
229 bool "Support SH7201 processor"
232 select SYS_SUPPORTS_MTU2
234 config CPU_SUBTYPE_SH7203
235 bool "Support SH7203 processor"
238 select SYS_SUPPORTS_CMT
239 select SYS_SUPPORTS_MTU2
241 config CPU_SUBTYPE_SH7206
242 bool "Support SH7206 processor"
244 select SYS_SUPPORTS_CMT
245 select SYS_SUPPORTS_MTU2
247 config CPU_SUBTYPE_SH7263
248 bool "Support SH7263 processor"
251 select SYS_SUPPORTS_CMT
252 select SYS_SUPPORTS_MTU2
254 config CPU_SUBTYPE_MXG
255 bool "Support MX-G processor"
257 select SYS_SUPPORTS_MTU2
259 Select MX-G if running on an R8A03022BG part.
261 # SH-3 Processor Support
263 config CPU_SUBTYPE_SH7705
264 bool "Support SH7705 processor"
267 config CPU_SUBTYPE_SH7706
268 bool "Support SH7706 processor"
271 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
273 config CPU_SUBTYPE_SH7707
274 bool "Support SH7707 processor"
277 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
279 config CPU_SUBTYPE_SH7708
280 bool "Support SH7708 processor"
283 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
284 if you have a 100 Mhz SH-3 HD6417708R CPU.
286 config CPU_SUBTYPE_SH7709
287 bool "Support SH7709 processor"
290 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
292 config CPU_SUBTYPE_SH7710
293 bool "Support SH7710 processor"
297 Select SH7710 if you have a SH3-DSP SH7710 CPU.
299 config CPU_SUBTYPE_SH7712
300 bool "Support SH7712 processor"
304 Select SH7712 if you have a SH3-DSP SH7712 CPU.
306 config CPU_SUBTYPE_SH7720
307 bool "Support SH7720 processor"
310 select SYS_SUPPORTS_CMT
312 Select SH7720 if you have a SH3-DSP SH7720 CPU.
314 config CPU_SUBTYPE_SH7721
315 bool "Support SH7721 processor"
318 select SYS_SUPPORTS_CMT
320 Select SH7721 if you have a SH3-DSP SH7721 CPU.
322 # SH-4 Processor Support
324 config CPU_SUBTYPE_SH7750
325 bool "Support SH7750 processor"
328 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
330 config CPU_SUBTYPE_SH7091
331 bool "Support SH7091 processor"
334 Select SH7091 if you have an SH-4 based Sega device (such as
335 the Dreamcast, Naomi, and Naomi 2).
337 config CPU_SUBTYPE_SH7750R
338 bool "Support SH7750R processor"
341 config CPU_SUBTYPE_SH7750S
342 bool "Support SH7750S processor"
345 config CPU_SUBTYPE_SH7751
346 bool "Support SH7751 processor"
349 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
350 or if you have a HD6417751R CPU.
352 config CPU_SUBTYPE_SH7751R
353 bool "Support SH7751R processor"
356 config CPU_SUBTYPE_SH7760
357 bool "Support SH7760 processor"
360 config CPU_SUBTYPE_SH4_202
361 bool "Support SH4-202 processor"
364 # SH-4A Processor Support
366 config CPU_SUBTYPE_SH7723
367 bool "Support SH7723 processor"
371 select ARCH_SPARSEMEM_ENABLE
372 select SYS_SUPPORTS_CMT
374 Select SH7723 if you have an SH-MobileR2 CPU.
376 config CPU_SUBTYPE_SH7724
377 bool "Support SH7724 processor"
381 select ARCH_SPARSEMEM_ENABLE
382 select SYS_SUPPORTS_CMT
384 Select SH7724 if you have an SH-MobileR2R CPU.
386 config CPU_SUBTYPE_SH7763
387 bool "Support SH7763 processor"
390 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
392 config CPU_SUBTYPE_SH7770
393 bool "Support SH7770 processor"
396 config CPU_SUBTYPE_SH7780
397 bool "Support SH7780 processor"
400 config CPU_SUBTYPE_SH7785
401 bool "Support SH7785 processor"
404 select ARCH_SPARSEMEM_ENABLE
405 select SYS_SUPPORTS_NUMA
407 config CPU_SUBTYPE_SH7786
408 bool "Support SH7786 processor"
411 select CPU_HAS_PTEAEX
412 select ARCH_SPARSEMEM_ENABLE
413 select SYS_SUPPORTS_NUMA
415 config CPU_SUBTYPE_SHX3
416 bool "Support SH-X3 processor"
419 select ARCH_SPARSEMEM_ENABLE
420 select SYS_SUPPORTS_NUMA
421 select SYS_SUPPORTS_SMP
422 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
424 # SH4AL-DSP Processor Support
426 config CPU_SUBTYPE_SH7343
427 bool "Support SH7343 processor"
430 select SYS_SUPPORTS_CMT
432 config CPU_SUBTYPE_SH7722
433 bool "Support SH7722 processor"
437 select ARCH_SPARSEMEM_ENABLE
438 select SYS_SUPPORTS_NUMA
439 select SYS_SUPPORTS_CMT
441 config CPU_SUBTYPE_SH7366
442 bool "Support SH7366 processor"
446 select ARCH_SPARSEMEM_ENABLE
447 select SYS_SUPPORTS_NUMA
448 select SYS_SUPPORTS_CMT
457 prompt "Processor sub-type selection"
459 # SH-5 Processor Support
461 config CPU_SUBTYPE_SH5_101
462 bool "Support SH5-101 processor"
465 config CPU_SUBTYPE_SH5_103
466 bool "Support SH5-103 processor"
473 source "arch/sh/mm/Kconfig"
475 source "arch/sh/Kconfig.cpu"
477 source "arch/sh/boards/Kconfig"
479 menu "Timer and clock configuration"
482 bool "TMU timer driver"
483 depends on SYS_SUPPORTS_TMU
486 This enables the build of the TMU timer driver.
489 bool "CMT timer driver"
490 depends on SYS_SUPPORTS_CMT
493 This enables build of the CMT timer driver.
496 bool "MTU2 timer driver"
497 depends on SYS_SUPPORTS_MTU2
500 This enables build of the MTU2 timer driver.
503 int "Peripheral clock frequency (in Hz)"
504 default "27000000" if CPU_SUBTYPE_SH7343
505 default "31250000" if CPU_SUBTYPE_SH7619
506 default "32000000" if CPU_SUBTYPE_SH7722
507 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
508 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
509 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
510 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
511 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
512 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
513 default "66000000" if CPU_SUBTYPE_SH4_202
516 This option is used to specify the peripheral clock frequency.
517 This is necessary for determining the reference clock value on
518 platforms lacking an RTC.
523 config SH_CLK_CPG_LEGACY
524 depends on SH_CLK_CPG
525 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
528 int "CPU Mode Pin Setting"
530 default 6 if CPU_SUBTYPE_SH7206
531 default 5 if CPU_SUBTYPE_SH7619
534 MD2 - MD0 pin setting.
536 source "kernel/time/Kconfig"
540 menu "CPU Frequency scaling"
542 source "drivers/cpufreq/Kconfig"
545 tristate "SuperH CPU Frequency driver"
547 select CPU_FREQ_TABLE
549 This adds the cpufreq driver for SuperH. Any CPU that supports
550 clock rate rounding through the clock framework can use this
551 driver. While it will make the kernel slightly larger, this is
552 harmless for CPUs that don't support rate rounding. The driver
553 will also generate a notice in the boot log before disabling
554 itself if the CPU in question is not capable of rate rounding.
556 For details, take a look at <file:Documentation/cpu-freq>.
562 source "arch/sh/drivers/Kconfig"
566 menu "Kernel features"
568 source kernel/Kconfig.hz
571 bool "kexec system call (EXPERIMENTAL)"
572 depends on SUPERH32 && EXPERIMENTAL && MMU
574 kexec is a system call that implements the ability to shutdown your
575 current kernel, and to start another kernel. It is like a reboot
576 but it is independent of the system firmware. And like a reboot
577 you can start any kernel with it, not just Linux.
579 The name comes from the similarity to the exec system call.
581 It is an ongoing process to be certain the hardware in a machine
582 is properly shutdown, so do not be surprised if this code does not
583 initially work for you. It may help to enable device hotplugging
584 support. As of this writing the exact hardware interface is
585 strongly in flux, so no good recommendation can be made.
588 bool "kernel crash dumps (EXPERIMENTAL)"
589 depends on SUPERH32 && EXPERIMENTAL
591 Generate crash dump after being started by kexec.
592 This should be normally only set in special crash dump kernels
593 which are loaded in the main kernel with kexec-tools into
594 a specially reserved region and then later executed after
595 a crash by kdump/kexec. The crash dump kernel must be compiled
596 to a memory address not used by the main kernel using
599 For more details see Documentation/kdump/kdump.txt
602 bool "kexec jump (EXPERIMENTAL)"
603 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
605 Jump between original kernel and kexeced kernel and invoke
609 bool "Enable seccomp to safely compute untrusted bytecode"
612 This kernel feature is useful for number crunching applications
613 that may need to compute untrusted bytecode during their
614 execution. By using pipes or other transports made available to
615 the process as file descriptors supporting the read/write
616 syscalls, it's possible to isolate those applications in
617 their own address space using seccomp. Once seccomp is
618 enabled via prctl, it cannot be disabled and the task is only
619 allowed to execute a few safe syscalls defined by each seccomp
625 bool "Symmetric multi-processing support"
626 depends on SYS_SUPPORTS_SMP
627 select USE_GENERIC_SMP_HELPERS
629 This enables support for systems with more than one CPU. If you have
630 a system with only one CPU, like most personal computers, say N. If
631 you have a system with more than one CPU, say Y.
633 If you say N here, the kernel will run on single and multiprocessor
634 machines, but will use only one CPU of a multiprocessor machine. If
635 you say Y here, the kernel will run on many, but not all,
636 singleprocessor machines. On a singleprocessor machine, the kernel
637 will run faster if you say N here.
639 People using multiprocessor machines who say Y here should also say
640 Y to "Enhanced Real Time Clock Support", below.
642 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
643 available at <http://www.tldp.org/docs.html#howto>.
645 If you don't know what to do here, say N.
648 int "Maximum number of CPUs (2-32)"
651 default "4" if CPU_SHX3
654 This allows you to specify the maximum number of CPUs which this
655 kernel will support. The maximum supported value is 32 and the
656 minimum value which makes sense is 2.
658 This is purely to save memory - each supported CPU adds
659 approximately eight kilobytes to the kernel image.
661 source "kernel/Kconfig.preempt"
665 depends on !SMP && SUPERH32
667 This enables support for gUSA (general UserSpace Atomicity).
668 This is the default implementation for both UP and non-ll/sc
669 CPUs, and is used by the libc, amongst others.
671 For additional information, design information can be found
672 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
674 This should only be disabled for special cases where alternate
675 atomicity implementations exist.
678 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
679 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
681 Enabling this option will allow the kernel to implement some
682 atomic operations using a software implementation of load-locked/
683 store-conditional (LLSC). On machines which do not have hardware
684 LLSC, this should be more efficient than the other alternative of
685 disabling interrupts around the atomic sequence.
688 bool "Support sparse irq numbering"
689 depends on EXPERIMENTAL
691 This enables support for sparse irqs. This is useful in general
692 as most CPUs have a fairly sparse array of IRQ vectors, which
693 the irq_desc then maps directly on to. Systems with a high
694 number of off-chip IRQs will want to treat this as
695 experimental until they have been independently verified.
697 If you don't know what to do here, say N.
703 config ZERO_PAGE_OFFSET
705 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
706 SH_7751_SOLUTION_ENGINE
707 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
708 default "0x00002000" if PAGE_SIZE_8KB
711 This sets the default offset of zero page.
713 config BOOT_LINK_OFFSET
715 default "0x00210000" if SH_SHMIN
716 default "0x00400000" if SH_CAYMAN
717 default "0x00810000" if SH_7780_SOLUTION_ENGINE
718 default "0x009e0000" if SH_TITAN
719 default "0x01800000" if SH_SDK7780
720 default "0x02000000" if SH_EDOSK7760
723 This option allows you to set the link address offset of the zImage.
724 This can be useful if you are on a board which has a small amount of
729 default "0x00001000" if PAGE_SIZE_4KB
730 default "0x00002000" if PAGE_SIZE_8KB
731 default "0x00004000" if PAGE_SIZE_16KB
732 default "0x00010000" if PAGE_SIZE_64KB
736 bool "Wakeup UBC on startup"
737 depends on CPU_SH4 && !CPU_SH4A
739 Selecting this option will wakeup the User Break Controller (UBC) on
740 startup. Although the UBC is left in an awake state when the processor
741 comes up, some boot loaders misbehave by putting the UBC to sleep in a
742 power saving state, which causes issues with things like ptrace().
747 bool "Default bootloader kernel arguments"
750 string "Initial kernel command string"
751 depends on CMDLINE_BOOL
752 default "console=ttySC1,115200"
759 tristate "SuperHyway Bus support"
760 depends on CPU_SUBTYPE_SH4_202
763 bool "Maple Bus support"
764 depends on SH_DREAMCAST
766 The Maple Bus is SEGA's serial communication bus for peripherals
767 on the Dreamcast. Without this bus support you won't be able to
768 get your Dreamcast keyboard etc to work, so most users
769 probably want to say 'Y' here, unless you are only using the
770 Dreamcast with a serial line terminal or a remote network
773 source "arch/sh/drivers/pci/Kconfig"
775 source "drivers/pci/pcie/Kconfig"
777 source "drivers/pci/Kconfig"
779 source "drivers/pcmcia/Kconfig"
781 source "drivers/pci/hotplug/Kconfig"
785 menu "Executable file formats"
787 source "fs/Kconfig.binfmt"
791 menu "Power management options (EXPERIMENTAL)"
792 depends on EXPERIMENTAL
794 source "kernel/power/Kconfig"
796 source "drivers/cpuidle/Kconfig"
802 source "drivers/Kconfig"
806 source "arch/sh/Kconfig.debug"
808 source "security/Kconfig"
810 source "crypto/Kconfig"