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_COUNTERS
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
34 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
35 select HAVE_FTRACE_SYSCALLS
37 select ARCH_HIBERNATION_POSSIBLE if MMU
40 def_bool ARCH = "sh64"
44 default "arch/sh/configs/shx3_defconfig" if SUPERH32
45 default "arch/sh/configs/cayman_defconfig" if SUPERH64
47 config RWSEM_GENERIC_SPINLOCK
50 config RWSEM_XCHGADD_ALGORITHM
55 depends on BUG && SUPERH32
61 config GENERIC_FIND_NEXT_BIT
64 config GENERIC_HWEIGHT
67 config GENERIC_HARDIRQS
70 config GENERIC_HARDIRQS_NO__DO_IRQ
73 config GENERIC_IRQ_PROBE
82 config GENERIC_CALIBRATE_DELAY
91 config GENERIC_CLOCKEVENTS
94 config GENERIC_CLOCKEVENTS_BROADCAST
97 config GENERIC_CMOS_UPDATE
99 depends on SH_SH03 || SH_DREAMCAST
101 config GENERIC_LOCKBREAK
103 depends on SMP && PREEMPT
105 config SYS_SUPPORTS_PM
109 config ARCH_SUSPEND_POSSIBLE
112 config ARCH_HIBERNATION_POSSIBLE
115 config SYS_SUPPORTS_APM_EMULATION
117 select ARCH_SUSPEND_POSSIBLE
119 config SYS_SUPPORTS_SMP
122 config SYS_SUPPORTS_NUMA
125 config SYS_SUPPORTS_PCI
128 config SYS_SUPPORTS_CMT
131 config SYS_SUPPORTS_MTU2
134 config SYS_SUPPORTS_TMU
137 config STACKTRACE_SUPPORT
140 config LOCKDEP_SUPPORT
143 config HAVE_LATENCYTOP_SUPPORT
147 config ARCH_HAS_ILOG2_U32
150 config ARCH_HAS_ILOG2_U64
153 config ARCH_NO_VIRT_TO_BUS
156 config ARCH_HAS_DEFAULT_IDLE
159 config ARCH_HAS_CPU_IDLE_WAIT
165 source "init/Kconfig"
167 source "kernel/Kconfig.freezer"
183 select CPU_HAS_INTEVT
185 select SYS_SUPPORTS_TMU
189 select CPU_HAS_INTEVT
191 select CPU_HAS_FPU if !CPU_SH4AL_DSP
192 select SYS_SUPPORTS_TMU
206 select SYS_SUPPORTS_TMU
216 select ARCH_SUSPEND_POSSIBLE
221 prompt "Processor sub-type selection"
227 # SH-2 Processor Support
229 config CPU_SUBTYPE_SH7619
230 bool "Support SH7619 processor"
232 select SYS_SUPPORTS_CMT
234 # SH-2A Processor Support
236 config CPU_SUBTYPE_SH7201
237 bool "Support SH7201 processor"
240 select SYS_SUPPORTS_MTU2
242 config CPU_SUBTYPE_SH7203
243 bool "Support SH7203 processor"
246 select SYS_SUPPORTS_CMT
247 select SYS_SUPPORTS_MTU2
249 config CPU_SUBTYPE_SH7206
250 bool "Support SH7206 processor"
252 select SYS_SUPPORTS_CMT
253 select SYS_SUPPORTS_MTU2
255 config CPU_SUBTYPE_SH7263
256 bool "Support SH7263 processor"
259 select SYS_SUPPORTS_CMT
260 select SYS_SUPPORTS_MTU2
262 config CPU_SUBTYPE_MXG
263 bool "Support MX-G processor"
265 select SYS_SUPPORTS_MTU2
267 Select MX-G if running on an R8A03022BG part.
269 # SH-3 Processor Support
271 config CPU_SUBTYPE_SH7705
272 bool "Support SH7705 processor"
275 config CPU_SUBTYPE_SH7706
276 bool "Support SH7706 processor"
279 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
281 config CPU_SUBTYPE_SH7707
282 bool "Support SH7707 processor"
285 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
287 config CPU_SUBTYPE_SH7708
288 bool "Support SH7708 processor"
291 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
292 if you have a 100 Mhz SH-3 HD6417708R CPU.
294 config CPU_SUBTYPE_SH7709
295 bool "Support SH7709 processor"
298 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
300 config CPU_SUBTYPE_SH7710
301 bool "Support SH7710 processor"
305 Select SH7710 if you have a SH3-DSP SH7710 CPU.
307 config CPU_SUBTYPE_SH7712
308 bool "Support SH7712 processor"
312 Select SH7712 if you have a SH3-DSP SH7712 CPU.
314 config CPU_SUBTYPE_SH7720
315 bool "Support SH7720 processor"
318 select SYS_SUPPORTS_CMT
320 Select SH7720 if you have a SH3-DSP SH7720 CPU.
322 config CPU_SUBTYPE_SH7721
323 bool "Support SH7721 processor"
326 select SYS_SUPPORTS_CMT
328 Select SH7721 if you have a SH3-DSP SH7721 CPU.
330 # SH-4 Processor Support
332 config CPU_SUBTYPE_SH7750
333 bool "Support SH7750 processor"
336 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
338 config CPU_SUBTYPE_SH7091
339 bool "Support SH7091 processor"
342 Select SH7091 if you have an SH-4 based Sega device (such as
343 the Dreamcast, Naomi, and Naomi 2).
345 config CPU_SUBTYPE_SH7750R
346 bool "Support SH7750R processor"
349 config CPU_SUBTYPE_SH7750S
350 bool "Support SH7750S processor"
353 config CPU_SUBTYPE_SH7751
354 bool "Support SH7751 processor"
357 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
358 or if you have a HD6417751R CPU.
360 config CPU_SUBTYPE_SH7751R
361 bool "Support SH7751R processor"
364 config CPU_SUBTYPE_SH7760
365 bool "Support SH7760 processor"
368 config CPU_SUBTYPE_SH4_202
369 bool "Support SH4-202 processor"
372 # SH-4A Processor Support
374 config CPU_SUBTYPE_SH7723
375 bool "Support SH7723 processor"
379 select ARCH_SPARSEMEM_ENABLE
380 select SYS_SUPPORTS_CMT
382 Select SH7723 if you have an SH-MobileR2 CPU.
384 config CPU_SUBTYPE_SH7724
385 bool "Support SH7724 processor"
389 select ARCH_SPARSEMEM_ENABLE
390 select SYS_SUPPORTS_CMT
392 Select SH7724 if you have an SH-MobileR2R CPU.
394 config CPU_SUBTYPE_SH7763
395 bool "Support SH7763 processor"
398 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
400 config CPU_SUBTYPE_SH7770
401 bool "Support SH7770 processor"
404 config CPU_SUBTYPE_SH7780
405 bool "Support SH7780 processor"
408 config CPU_SUBTYPE_SH7785
409 bool "Support SH7785 processor"
412 select ARCH_SPARSEMEM_ENABLE
413 select SYS_SUPPORTS_NUMA
415 config CPU_SUBTYPE_SH7786
416 bool "Support SH7786 processor"
419 select CPU_HAS_PTEAEX
420 select ARCH_SPARSEMEM_ENABLE
421 select SYS_SUPPORTS_NUMA
422 select SYS_SUPPORTS_SMP
423 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
425 config CPU_SUBTYPE_SHX3
426 bool "Support SH-X3 processor"
429 select ARCH_SPARSEMEM_ENABLE
430 select SYS_SUPPORTS_NUMA
431 select SYS_SUPPORTS_SMP
432 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
434 # SH4AL-DSP Processor Support
436 config CPU_SUBTYPE_SH7343
437 bool "Support SH7343 processor"
440 select SYS_SUPPORTS_CMT
442 config CPU_SUBTYPE_SH7722
443 bool "Support SH7722 processor"
447 select ARCH_SPARSEMEM_ENABLE
448 select SYS_SUPPORTS_NUMA
449 select SYS_SUPPORTS_CMT
451 config CPU_SUBTYPE_SH7366
452 bool "Support SH7366 processor"
456 select ARCH_SPARSEMEM_ENABLE
457 select SYS_SUPPORTS_NUMA
458 select SYS_SUPPORTS_CMT
467 prompt "Processor sub-type selection"
469 # SH-5 Processor Support
471 config CPU_SUBTYPE_SH5_101
472 bool "Support SH5-101 processor"
475 config CPU_SUBTYPE_SH5_103
476 bool "Support SH5-103 processor"
483 source "arch/sh/mm/Kconfig"
485 source "arch/sh/Kconfig.cpu"
487 source "arch/sh/boards/Kconfig"
489 menu "Timer and clock configuration"
492 bool "TMU timer driver"
493 depends on SYS_SUPPORTS_TMU
496 This enables the build of the TMU timer driver.
499 bool "CMT timer driver"
500 depends on SYS_SUPPORTS_CMT
503 This enables build of the CMT timer driver.
506 bool "MTU2 timer driver"
507 depends on SYS_SUPPORTS_MTU2
510 This enables build of the MTU2 timer driver.
513 int "Peripheral clock frequency (in Hz)"
514 default "27000000" if CPU_SUBTYPE_SH7343
515 default "31250000" if CPU_SUBTYPE_SH7619
516 default "32000000" if CPU_SUBTYPE_SH7722
517 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
518 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
519 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
520 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
521 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
522 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
523 default "66000000" if CPU_SUBTYPE_SH4_202
526 This option is used to specify the peripheral clock frequency.
527 This is necessary for determining the reference clock value on
528 platforms lacking an RTC.
533 config SH_CLK_CPG_LEGACY
534 depends on SH_CLK_CPG
535 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
538 int "CPU Mode Pin Setting"
540 default 6 if CPU_SUBTYPE_SH7206
541 default 5 if CPU_SUBTYPE_SH7619
544 MD2 - MD0 pin setting.
546 source "kernel/time/Kconfig"
550 menu "CPU Frequency scaling"
552 source "drivers/cpufreq/Kconfig"
555 tristate "SuperH CPU Frequency driver"
557 select CPU_FREQ_TABLE
559 This adds the cpufreq driver for SuperH. Any CPU that supports
560 clock rate rounding through the clock framework can use this
561 driver. While it will make the kernel slightly larger, this is
562 harmless for CPUs that don't support rate rounding. The driver
563 will also generate a notice in the boot log before disabling
564 itself if the CPU in question is not capable of rate rounding.
566 For details, take a look at <file:Documentation/cpu-freq>.
572 source "arch/sh/drivers/Kconfig"
576 menu "Kernel features"
578 source kernel/Kconfig.hz
581 bool "kexec system call (EXPERIMENTAL)"
582 depends on SUPERH32 && EXPERIMENTAL && MMU
584 kexec is a system call that implements the ability to shutdown your
585 current kernel, and to start another kernel. It is like a reboot
586 but it is independent of the system firmware. And like a reboot
587 you can start any kernel with it, not just Linux.
589 The name comes from the similarity to the exec system call.
591 It is an ongoing process to be certain the hardware in a machine
592 is properly shutdown, so do not be surprised if this code does not
593 initially work for you. It may help to enable device hotplugging
594 support. As of this writing the exact hardware interface is
595 strongly in flux, so no good recommendation can be made.
598 bool "kernel crash dumps (EXPERIMENTAL)"
599 depends on SUPERH32 && EXPERIMENTAL
601 Generate crash dump after being started by kexec.
602 This should be normally only set in special crash dump kernels
603 which are loaded in the main kernel with kexec-tools into
604 a specially reserved region and then later executed after
605 a crash by kdump/kexec. The crash dump kernel must be compiled
606 to a memory address not used by the main kernel using
609 For more details see Documentation/kdump/kdump.txt
612 bool "kexec jump (EXPERIMENTAL)"
613 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
615 Jump between original kernel and kexeced kernel and invoke
619 bool "Enable seccomp to safely compute untrusted bytecode"
622 This kernel feature is useful for number crunching applications
623 that may need to compute untrusted bytecode during their
624 execution. By using pipes or other transports made available to
625 the process as file descriptors supporting the read/write
626 syscalls, it's possible to isolate those applications in
627 their own address space using seccomp. Once seccomp is
628 enabled via prctl, it cannot be disabled and the task is only
629 allowed to execute a few safe syscalls defined by each seccomp
635 bool "Symmetric multi-processing support"
636 depends on SYS_SUPPORTS_SMP
637 select USE_GENERIC_SMP_HELPERS
639 This enables support for systems with more than one CPU. If you have
640 a system with only one CPU, like most personal computers, say N. If
641 you have a system with more than one CPU, say Y.
643 If you say N here, the kernel will run on single and multiprocessor
644 machines, but will use only one CPU of a multiprocessor machine. If
645 you say Y here, the kernel will run on many, but not all,
646 singleprocessor machines. On a singleprocessor machine, the kernel
647 will run faster if you say N here.
649 People using multiprocessor machines who say Y here should also say
650 Y to "Enhanced Real Time Clock Support", below.
652 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
653 available at <http://www.tldp.org/docs.html#howto>.
655 If you don't know what to do here, say N.
658 int "Maximum number of CPUs (2-32)"
661 default "4" if CPU_SUBTYPE_SHX3
664 This allows you to specify the maximum number of CPUs which this
665 kernel will support. The maximum supported value is 32 and the
666 minimum value which makes sense is 2.
668 This is purely to save memory - each supported CPU adds
669 approximately eight kilobytes to the kernel image.
671 source "kernel/Kconfig.preempt"
675 depends on !SMP && SUPERH32
677 This enables support for gUSA (general UserSpace Atomicity).
678 This is the default implementation for both UP and non-ll/sc
679 CPUs, and is used by the libc, amongst others.
681 For additional information, design information can be found
682 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
684 This should only be disabled for special cases where alternate
685 atomicity implementations exist.
688 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
689 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
691 Enabling this option will allow the kernel to implement some
692 atomic operations using a software implementation of load-locked/
693 store-conditional (LLSC). On machines which do not have hardware
694 LLSC, this should be more efficient than the other alternative of
695 disabling interrupts around the atomic sequence.
698 bool "Support sparse irq numbering"
699 depends on EXPERIMENTAL
701 This enables support for sparse irqs. This is useful in general
702 as most CPUs have a fairly sparse array of IRQ vectors, which
703 the irq_desc then maps directly on to. Systems with a high
704 number of off-chip IRQs will want to treat this as
705 experimental until they have been independently verified.
707 If you don't know what to do here, say N.
713 config ZERO_PAGE_OFFSET
715 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
716 SH_7751_SOLUTION_ENGINE
717 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
718 default "0x00002000" if PAGE_SIZE_8KB
721 This sets the default offset of zero page.
723 config BOOT_LINK_OFFSET
725 default "0x00210000" if SH_SHMIN
726 default "0x00400000" if SH_CAYMAN
727 default "0x00810000" if SH_7780_SOLUTION_ENGINE
728 default "0x009e0000" if SH_TITAN
729 default "0x01800000" if SH_SDK7780
730 default "0x02000000" if SH_EDOSK7760
733 This option allows you to set the link address offset of the zImage.
734 This can be useful if you are on a board which has a small amount of
739 default "0x00001000" if PAGE_SIZE_4KB
740 default "0x00002000" if PAGE_SIZE_8KB
741 default "0x00004000" if PAGE_SIZE_16KB
742 default "0x00010000" if PAGE_SIZE_64KB
746 bool "Wakeup UBC on startup"
747 depends on CPU_SH4 && !CPU_SH4A
749 Selecting this option will wakeup the User Break Controller (UBC) on
750 startup. Although the UBC is left in an awake state when the processor
751 comes up, some boot loaders misbehave by putting the UBC to sleep in a
752 power saving state, which causes issues with things like ptrace().
757 bool "Default bootloader kernel arguments"
760 string "Initial kernel command string"
761 depends on CMDLINE_BOOL
762 default "console=ttySC1,115200"
769 tristate "SuperHyway Bus support"
770 depends on CPU_SUBTYPE_SH4_202
773 bool "Maple Bus support"
774 depends on SH_DREAMCAST
776 The Maple Bus is SEGA's serial communication bus for peripherals
777 on the Dreamcast. Without this bus support you won't be able to
778 get your Dreamcast keyboard etc to work, so most users
779 probably want to say 'Y' here, unless you are only using the
780 Dreamcast with a serial line terminal or a remote network
783 source "arch/sh/drivers/pci/Kconfig"
785 source "drivers/pci/pcie/Kconfig"
787 source "drivers/pci/Kconfig"
789 source "drivers/pcmcia/Kconfig"
791 source "drivers/pci/hotplug/Kconfig"
795 menu "Executable file formats"
797 source "fs/Kconfig.binfmt"
801 menu "Power management options (EXPERIMENTAL)"
802 depends on EXPERIMENTAL
804 source "kernel/power/Kconfig"
806 source "drivers/cpuidle/Kconfig"
812 source "drivers/Kconfig"
816 source "arch/sh/Kconfig.debug"
818 source "security/Kconfig"
820 source "crypto/Kconfig"