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
154 config ARCH_HAS_CPU_IDLE_WAIT
160 source "init/Kconfig"
162 source "kernel/Kconfig.freezer"
178 select CPU_HAS_INTEVT
180 select SYS_SUPPORTS_TMU
184 select CPU_HAS_INTEVT
186 select CPU_HAS_FPU if !CPU_SH4AL_DSP
187 select SYS_SUPPORTS_TMU
201 select SYS_SUPPORTS_TMU
211 select ARCH_SUSPEND_POSSIBLE
216 prompt "Processor sub-type selection"
222 # SH-2 Processor Support
224 config CPU_SUBTYPE_SH7619
225 bool "Support SH7619 processor"
227 select SYS_SUPPORTS_CMT
229 # SH-2A Processor Support
231 config CPU_SUBTYPE_SH7201
232 bool "Support SH7201 processor"
235 select SYS_SUPPORTS_MTU2
237 config CPU_SUBTYPE_SH7203
238 bool "Support SH7203 processor"
241 select SYS_SUPPORTS_CMT
242 select SYS_SUPPORTS_MTU2
244 config CPU_SUBTYPE_SH7206
245 bool "Support SH7206 processor"
247 select SYS_SUPPORTS_CMT
248 select SYS_SUPPORTS_MTU2
250 config CPU_SUBTYPE_SH7263
251 bool "Support SH7263 processor"
254 select SYS_SUPPORTS_CMT
255 select SYS_SUPPORTS_MTU2
257 config CPU_SUBTYPE_MXG
258 bool "Support MX-G processor"
260 select SYS_SUPPORTS_MTU2
262 Select MX-G if running on an R8A03022BG part.
264 # SH-3 Processor Support
266 config CPU_SUBTYPE_SH7705
267 bool "Support SH7705 processor"
270 config CPU_SUBTYPE_SH7706
271 bool "Support SH7706 processor"
274 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
276 config CPU_SUBTYPE_SH7707
277 bool "Support SH7707 processor"
280 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
282 config CPU_SUBTYPE_SH7708
283 bool "Support SH7708 processor"
286 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
287 if you have a 100 Mhz SH-3 HD6417708R CPU.
289 config CPU_SUBTYPE_SH7709
290 bool "Support SH7709 processor"
293 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
295 config CPU_SUBTYPE_SH7710
296 bool "Support SH7710 processor"
300 Select SH7710 if you have a SH3-DSP SH7710 CPU.
302 config CPU_SUBTYPE_SH7712
303 bool "Support SH7712 processor"
307 Select SH7712 if you have a SH3-DSP SH7712 CPU.
309 config CPU_SUBTYPE_SH7720
310 bool "Support SH7720 processor"
313 select SYS_SUPPORTS_CMT
315 Select SH7720 if you have a SH3-DSP SH7720 CPU.
317 config CPU_SUBTYPE_SH7721
318 bool "Support SH7721 processor"
321 select SYS_SUPPORTS_CMT
323 Select SH7721 if you have a SH3-DSP SH7721 CPU.
325 # SH-4 Processor Support
327 config CPU_SUBTYPE_SH7750
328 bool "Support SH7750 processor"
331 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
333 config CPU_SUBTYPE_SH7091
334 bool "Support SH7091 processor"
337 Select SH7091 if you have an SH-4 based Sega device (such as
338 the Dreamcast, Naomi, and Naomi 2).
340 config CPU_SUBTYPE_SH7750R
341 bool "Support SH7750R processor"
344 config CPU_SUBTYPE_SH7750S
345 bool "Support SH7750S processor"
348 config CPU_SUBTYPE_SH7751
349 bool "Support SH7751 processor"
352 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
353 or if you have a HD6417751R CPU.
355 config CPU_SUBTYPE_SH7751R
356 bool "Support SH7751R processor"
359 config CPU_SUBTYPE_SH7760
360 bool "Support SH7760 processor"
363 config CPU_SUBTYPE_SH4_202
364 bool "Support SH4-202 processor"
367 # SH-4A Processor Support
369 config CPU_SUBTYPE_SH7723
370 bool "Support SH7723 processor"
374 select ARCH_SPARSEMEM_ENABLE
375 select SYS_SUPPORTS_CMT
377 Select SH7723 if you have an SH-MobileR2 CPU.
379 config CPU_SUBTYPE_SH7724
380 bool "Support SH7724 processor"
384 select ARCH_SPARSEMEM_ENABLE
385 select SYS_SUPPORTS_CMT
387 Select SH7724 if you have an SH-MobileR2R CPU.
389 config CPU_SUBTYPE_SH7763
390 bool "Support SH7763 processor"
393 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
395 config CPU_SUBTYPE_SH7770
396 bool "Support SH7770 processor"
399 config CPU_SUBTYPE_SH7780
400 bool "Support SH7780 processor"
403 config CPU_SUBTYPE_SH7785
404 bool "Support SH7785 processor"
407 select ARCH_SPARSEMEM_ENABLE
408 select SYS_SUPPORTS_NUMA
410 config CPU_SUBTYPE_SH7786
411 bool "Support SH7786 processor"
414 select CPU_HAS_PTEAEX
415 select ARCH_SPARSEMEM_ENABLE
416 select SYS_SUPPORTS_NUMA
418 config CPU_SUBTYPE_SHX3
419 bool "Support SH-X3 processor"
422 select ARCH_SPARSEMEM_ENABLE
423 select SYS_SUPPORTS_NUMA
424 select SYS_SUPPORTS_SMP
425 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
427 # SH4AL-DSP Processor Support
429 config CPU_SUBTYPE_SH7343
430 bool "Support SH7343 processor"
433 select SYS_SUPPORTS_CMT
435 config CPU_SUBTYPE_SH7722
436 bool "Support SH7722 processor"
440 select ARCH_SPARSEMEM_ENABLE
441 select SYS_SUPPORTS_NUMA
442 select SYS_SUPPORTS_CMT
444 config CPU_SUBTYPE_SH7366
445 bool "Support SH7366 processor"
449 select ARCH_SPARSEMEM_ENABLE
450 select SYS_SUPPORTS_NUMA
451 select SYS_SUPPORTS_CMT
460 prompt "Processor sub-type selection"
462 # SH-5 Processor Support
464 config CPU_SUBTYPE_SH5_101
465 bool "Support SH5-101 processor"
468 config CPU_SUBTYPE_SH5_103
469 bool "Support SH5-103 processor"
476 source "arch/sh/mm/Kconfig"
478 source "arch/sh/Kconfig.cpu"
480 source "arch/sh/boards/Kconfig"
482 menu "Timer and clock configuration"
485 bool "TMU timer driver"
486 depends on SYS_SUPPORTS_TMU
489 This enables the build of the TMU timer driver.
492 bool "CMT timer driver"
493 depends on SYS_SUPPORTS_CMT
496 This enables build of the CMT timer driver.
499 bool "MTU2 timer driver"
500 depends on SYS_SUPPORTS_MTU2
503 This enables build of the MTU2 timer driver.
506 int "Peripheral clock frequency (in Hz)"
507 default "27000000" if CPU_SUBTYPE_SH7343
508 default "31250000" if CPU_SUBTYPE_SH7619
509 default "32000000" if CPU_SUBTYPE_SH7722
510 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
511 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
512 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
513 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
514 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
515 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
516 default "66000000" if CPU_SUBTYPE_SH4_202
519 This option is used to specify the peripheral clock frequency.
520 This is necessary for determining the reference clock value on
521 platforms lacking an RTC.
526 config SH_CLK_CPG_LEGACY
527 depends on SH_CLK_CPG
528 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
531 int "CPU Mode Pin Setting"
533 default 6 if CPU_SUBTYPE_SH7206
534 default 5 if CPU_SUBTYPE_SH7619
537 MD2 - MD0 pin setting.
539 source "kernel/time/Kconfig"
543 menu "CPU Frequency scaling"
545 source "drivers/cpufreq/Kconfig"
548 tristate "SuperH CPU Frequency driver"
550 select CPU_FREQ_TABLE
552 This adds the cpufreq driver for SuperH. Any CPU that supports
553 clock rate rounding through the clock framework can use this
554 driver. While it will make the kernel slightly larger, this is
555 harmless for CPUs that don't support rate rounding. The driver
556 will also generate a notice in the boot log before disabling
557 itself if the CPU in question is not capable of rate rounding.
559 For details, take a look at <file:Documentation/cpu-freq>.
565 source "arch/sh/drivers/Kconfig"
569 menu "Kernel features"
571 source kernel/Kconfig.hz
574 bool "kexec system call (EXPERIMENTAL)"
575 depends on SUPERH32 && EXPERIMENTAL && MMU
577 kexec is a system call that implements the ability to shutdown your
578 current kernel, and to start another kernel. It is like a reboot
579 but it is independent of the system firmware. And like a reboot
580 you can start any kernel with it, not just Linux.
582 The name comes from the similarity to the exec system call.
584 It is an ongoing process to be certain the hardware in a machine
585 is properly shutdown, so do not be surprised if this code does not
586 initially work for you. It may help to enable device hotplugging
587 support. As of this writing the exact hardware interface is
588 strongly in flux, so no good recommendation can be made.
591 bool "kernel crash dumps (EXPERIMENTAL)"
592 depends on SUPERH32 && EXPERIMENTAL
594 Generate crash dump after being started by kexec.
595 This should be normally only set in special crash dump kernels
596 which are loaded in the main kernel with kexec-tools into
597 a specially reserved region and then later executed after
598 a crash by kdump/kexec. The crash dump kernel must be compiled
599 to a memory address not used by the main kernel using
602 For more details see Documentation/kdump/kdump.txt
605 bool "kexec jump (EXPERIMENTAL)"
606 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
608 Jump between original kernel and kexeced kernel and invoke
612 bool "Enable seccomp to safely compute untrusted bytecode"
615 This kernel feature is useful for number crunching applications
616 that may need to compute untrusted bytecode during their
617 execution. By using pipes or other transports made available to
618 the process as file descriptors supporting the read/write
619 syscalls, it's possible to isolate those applications in
620 their own address space using seccomp. Once seccomp is
621 enabled via prctl, it cannot be disabled and the task is only
622 allowed to execute a few safe syscalls defined by each seccomp
628 bool "Symmetric multi-processing support"
629 depends on SYS_SUPPORTS_SMP
630 select USE_GENERIC_SMP_HELPERS
632 This enables support for systems with more than one CPU. If you have
633 a system with only one CPU, like most personal computers, say N. If
634 you have a system with more than one CPU, say Y.
636 If you say N here, the kernel will run on single and multiprocessor
637 machines, but will use only one CPU of a multiprocessor machine. If
638 you say Y here, the kernel will run on many, but not all,
639 singleprocessor machines. On a singleprocessor machine, the kernel
640 will run faster if you say N here.
642 People using multiprocessor machines who say Y here should also say
643 Y to "Enhanced Real Time Clock Support", below.
645 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
646 available at <http://www.tldp.org/docs.html#howto>.
648 If you don't know what to do here, say N.
651 int "Maximum number of CPUs (2-32)"
654 default "4" if CPU_SHX3
657 This allows you to specify the maximum number of CPUs which this
658 kernel will support. The maximum supported value is 32 and the
659 minimum value which makes sense is 2.
661 This is purely to save memory - each supported CPU adds
662 approximately eight kilobytes to the kernel image.
664 source "kernel/Kconfig.preempt"
668 depends on !SMP && SUPERH32
670 This enables support for gUSA (general UserSpace Atomicity).
671 This is the default implementation for both UP and non-ll/sc
672 CPUs, and is used by the libc, amongst others.
674 For additional information, design information can be found
675 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
677 This should only be disabled for special cases where alternate
678 atomicity implementations exist.
681 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
682 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
684 Enabling this option will allow the kernel to implement some
685 atomic operations using a software implementation of load-locked/
686 store-conditional (LLSC). On machines which do not have hardware
687 LLSC, this should be more efficient than the other alternative of
688 disabling interrupts around the atomic sequence.
691 bool "Support sparse irq numbering"
692 depends on EXPERIMENTAL
694 This enables support for sparse irqs. This is useful in general
695 as most CPUs have a fairly sparse array of IRQ vectors, which
696 the irq_desc then maps directly on to. Systems with a high
697 number of off-chip IRQs will want to treat this as
698 experimental until they have been independently verified.
700 If you don't know what to do here, say N.
706 config ZERO_PAGE_OFFSET
708 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
709 SH_7751_SOLUTION_ENGINE
710 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
711 default "0x00002000" if PAGE_SIZE_8KB
714 This sets the default offset of zero page.
716 config BOOT_LINK_OFFSET
718 default "0x00210000" if SH_SHMIN
719 default "0x00400000" if SH_CAYMAN
720 default "0x00810000" if SH_7780_SOLUTION_ENGINE
721 default "0x009e0000" if SH_TITAN
722 default "0x01800000" if SH_SDK7780
723 default "0x02000000" if SH_EDOSK7760
726 This option allows you to set the link address offset of the zImage.
727 This can be useful if you are on a board which has a small amount of
732 default "0x00001000" if PAGE_SIZE_4KB
733 default "0x00002000" if PAGE_SIZE_8KB
734 default "0x00004000" if PAGE_SIZE_16KB
735 default "0x00010000" if PAGE_SIZE_64KB
739 bool "Wakeup UBC on startup"
740 depends on CPU_SH4 && !CPU_SH4A
742 Selecting this option will wakeup the User Break Controller (UBC) on
743 startup. Although the UBC is left in an awake state when the processor
744 comes up, some boot loaders misbehave by putting the UBC to sleep in a
745 power saving state, which causes issues with things like ptrace().
750 bool "Default bootloader kernel arguments"
753 string "Initial kernel command string"
754 depends on CMDLINE_BOOL
755 default "console=ttySC1,115200"
762 tristate "SuperHyway Bus support"
763 depends on CPU_SUBTYPE_SH4_202
766 bool "Maple Bus support"
767 depends on SH_DREAMCAST
769 The Maple Bus is SEGA's serial communication bus for peripherals
770 on the Dreamcast. Without this bus support you won't be able to
771 get your Dreamcast keyboard etc to work, so most users
772 probably want to say 'Y' here, unless you are only using the
773 Dreamcast with a serial line terminal or a remote network
776 source "arch/sh/drivers/pci/Kconfig"
778 source "drivers/pci/pcie/Kconfig"
780 source "drivers/pci/Kconfig"
782 source "drivers/pcmcia/Kconfig"
784 source "drivers/pci/hotplug/Kconfig"
788 menu "Executable file formats"
790 source "fs/Kconfig.binfmt"
794 menu "Power management options (EXPERIMENTAL)"
795 depends on EXPERIMENTAL
797 source "kernel/power/Kconfig"
799 source "drivers/cpuidle/Kconfig"
805 source "drivers/Kconfig"
809 source "arch/sh/Kconfig.debug"
811 source "security/Kconfig"
813 source "crypto/Kconfig"