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
20 The SuperH is a RISC processor targeted for use in embedded systems
21 and consumer electronics; it was also used in the Sega Dreamcast
22 gaming console. The SuperH port has a home page at
23 <http://www.linux-sh.org/>.
28 select HAVE_KRETPROBES
29 select HAVE_FUNCTION_TRACER
30 select HAVE_FTRACE_MCOUNT_RECORD
31 select HAVE_DYNAMIC_FTRACE
33 select ARCH_HIBERNATION_POSSIBLE if MMU
36 def_bool ARCH = "sh64"
40 default "arch/sh/configs/shx3_defconfig" if SUPERH32
41 default "arch/sh/configs/cayman_defconfig" if SUPERH64
43 config RWSEM_GENERIC_SPINLOCK
46 config RWSEM_XCHGADD_ALGORITHM
51 depends on BUG && SUPERH32
53 config GENERIC_FIND_NEXT_BIT
56 config GENERIC_HWEIGHT
59 config GENERIC_HARDIRQS
62 config GENERIC_HARDIRQS_NO__DO_IRQ
65 config GENERIC_IRQ_PROBE
71 config GENERIC_CALIBRATE_DELAY
80 config GENERIC_CLOCKEVENTS
83 config GENERIC_CLOCKEVENTS_BROADCAST
86 config GENERIC_CMOS_UPDATE
88 depends on SH_SH03 || SH_DREAMCAST
90 config GENERIC_LOCKBREAK
92 depends on SMP && PREEMPT
94 config SYS_SUPPORTS_PM
98 config ARCH_SUSPEND_POSSIBLE
101 config ARCH_HIBERNATION_POSSIBLE
104 config SYS_SUPPORTS_APM_EMULATION
106 select ARCH_SUSPEND_POSSIBLE
108 config SYS_SUPPORTS_SMP
111 config SYS_SUPPORTS_NUMA
114 config SYS_SUPPORTS_PCI
117 config SYS_SUPPORTS_CMT
120 config SYS_SUPPORTS_MTU2
123 config SYS_SUPPORTS_TMU
126 config STACKTRACE_SUPPORT
129 config LOCKDEP_SUPPORT
132 config HAVE_LATENCYTOP_SUPPORT
136 config ARCH_HAS_ILOG2_U32
139 config ARCH_HAS_ILOG2_U64
142 config ARCH_NO_VIRT_TO_BUS
145 config ARCH_HAS_DEFAULT_IDLE
151 source "init/Kconfig"
153 source "kernel/Kconfig.freezer"
169 select CPU_HAS_INTEVT
171 select SYS_SUPPORTS_TMU
175 select CPU_HAS_INTEVT
177 select CPU_HAS_FPU if !CPU_SH4AL_DSP
178 select SYS_SUPPORTS_TMU
192 select SYS_SUPPORTS_TMU
202 select ARCH_SUSPEND_POSSIBLE
207 prompt "Processor sub-type selection"
213 # SH-2 Processor Support
215 config CPU_SUBTYPE_SH7619
216 bool "Support SH7619 processor"
218 select SYS_SUPPORTS_CMT
220 # SH-2A Processor Support
222 config CPU_SUBTYPE_SH7201
223 bool "Support SH7201 processor"
226 select SYS_SUPPORTS_MTU2
228 config CPU_SUBTYPE_SH7203
229 bool "Support SH7203 processor"
232 select SYS_SUPPORTS_CMT
233 select SYS_SUPPORTS_MTU2
235 config CPU_SUBTYPE_SH7206
236 bool "Support SH7206 processor"
238 select SYS_SUPPORTS_CMT
239 select SYS_SUPPORTS_MTU2
241 config CPU_SUBTYPE_SH7263
242 bool "Support SH7263 processor"
245 select SYS_SUPPORTS_CMT
246 select SYS_SUPPORTS_MTU2
248 config CPU_SUBTYPE_MXG
249 bool "Support MX-G processor"
251 select SYS_SUPPORTS_MTU2
253 Select MX-G if running on an R8A03022BG part.
255 # SH-3 Processor Support
257 config CPU_SUBTYPE_SH7705
258 bool "Support SH7705 processor"
261 config CPU_SUBTYPE_SH7706
262 bool "Support SH7706 processor"
265 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
267 config CPU_SUBTYPE_SH7707
268 bool "Support SH7707 processor"
271 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
273 config CPU_SUBTYPE_SH7708
274 bool "Support SH7708 processor"
277 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
278 if you have a 100 Mhz SH-3 HD6417708R CPU.
280 config CPU_SUBTYPE_SH7709
281 bool "Support SH7709 processor"
284 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
286 config CPU_SUBTYPE_SH7710
287 bool "Support SH7710 processor"
291 Select SH7710 if you have a SH3-DSP SH7710 CPU.
293 config CPU_SUBTYPE_SH7712
294 bool "Support SH7712 processor"
298 Select SH7712 if you have a SH3-DSP SH7712 CPU.
300 config CPU_SUBTYPE_SH7720
301 bool "Support SH7720 processor"
304 select SYS_SUPPORTS_CMT
306 Select SH7720 if you have a SH3-DSP SH7720 CPU.
308 config CPU_SUBTYPE_SH7721
309 bool "Support SH7721 processor"
312 select SYS_SUPPORTS_CMT
314 Select SH7721 if you have a SH3-DSP SH7721 CPU.
316 # SH-4 Processor Support
318 config CPU_SUBTYPE_SH7750
319 bool "Support SH7750 processor"
322 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
324 config CPU_SUBTYPE_SH7091
325 bool "Support SH7091 processor"
328 Select SH7091 if you have an SH-4 based Sega device (such as
329 the Dreamcast, Naomi, and Naomi 2).
331 config CPU_SUBTYPE_SH7750R
332 bool "Support SH7750R processor"
335 config CPU_SUBTYPE_SH7750S
336 bool "Support SH7750S processor"
339 config CPU_SUBTYPE_SH7751
340 bool "Support SH7751 processor"
343 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
344 or if you have a HD6417751R CPU.
346 config CPU_SUBTYPE_SH7751R
347 bool "Support SH7751R processor"
350 config CPU_SUBTYPE_SH7760
351 bool "Support SH7760 processor"
354 config CPU_SUBTYPE_SH4_202
355 bool "Support SH4-202 processor"
358 # SH-4A Processor Support
360 config CPU_SUBTYPE_SH7723
361 bool "Support SH7723 processor"
365 select ARCH_SPARSEMEM_ENABLE
366 select SYS_SUPPORTS_CMT
368 Select SH7723 if you have an SH-MobileR2 CPU.
370 config CPU_SUBTYPE_SH7724
371 bool "Support SH7724 processor"
375 select ARCH_SPARSEMEM_ENABLE
376 select SYS_SUPPORTS_CMT
378 Select SH7724 if you have an SH-MobileR2R CPU.
380 config CPU_SUBTYPE_SH7763
381 bool "Support SH7763 processor"
384 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
386 config CPU_SUBTYPE_SH7770
387 bool "Support SH7770 processor"
390 config CPU_SUBTYPE_SH7780
391 bool "Support SH7780 processor"
394 config CPU_SUBTYPE_SH7785
395 bool "Support SH7785 processor"
398 select ARCH_SPARSEMEM_ENABLE
399 select SYS_SUPPORTS_NUMA
401 config CPU_SUBTYPE_SH7786
402 bool "Support SH7786 processor"
405 select CPU_HAS_PTEAEX
406 select ARCH_SPARSEMEM_ENABLE
407 select SYS_SUPPORTS_NUMA
409 config CPU_SUBTYPE_SHX3
410 bool "Support SH-X3 processor"
413 select ARCH_SPARSEMEM_ENABLE
414 select SYS_SUPPORTS_NUMA
415 select SYS_SUPPORTS_SMP
416 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
418 # SH4AL-DSP Processor Support
420 config CPU_SUBTYPE_SH7343
421 bool "Support SH7343 processor"
424 select SYS_SUPPORTS_CMT
426 config CPU_SUBTYPE_SH7722
427 bool "Support SH7722 processor"
431 select ARCH_SPARSEMEM_ENABLE
432 select SYS_SUPPORTS_NUMA
433 select SYS_SUPPORTS_CMT
435 config CPU_SUBTYPE_SH7366
436 bool "Support SH7366 processor"
440 select ARCH_SPARSEMEM_ENABLE
441 select SYS_SUPPORTS_NUMA
442 select SYS_SUPPORTS_CMT
451 prompt "Processor sub-type selection"
453 # SH-5 Processor Support
455 config CPU_SUBTYPE_SH5_101
456 bool "Support SH5-101 processor"
459 config CPU_SUBTYPE_SH5_103
460 bool "Support SH5-103 processor"
467 source "arch/sh/mm/Kconfig"
469 source "arch/sh/Kconfig.cpu"
471 source "arch/sh/boards/Kconfig"
473 menu "Timer and clock configuration"
476 bool "TMU timer driver"
477 depends on SYS_SUPPORTS_TMU
480 This enables the build of the TMU timer driver.
483 bool "CMT timer driver"
484 depends on SYS_SUPPORTS_CMT
487 This enables build of the CMT timer driver.
490 bool "MTU2 timer driver"
491 depends on SYS_SUPPORTS_MTU2
494 This enables build of the MTU2 timer driver.
497 int "Peripheral clock frequency (in Hz)"
498 default "27000000" if CPU_SUBTYPE_SH7343
499 default "31250000" if CPU_SUBTYPE_SH7619
500 default "32000000" if CPU_SUBTYPE_SH7722
501 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
502 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
503 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
504 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
505 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
506 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
507 default "66000000" if CPU_SUBTYPE_SH4_202
510 This option is used to specify the peripheral clock frequency.
511 This is necessary for determining the reference clock value on
512 platforms lacking an RTC.
517 config SH_CLK_CPG_LEGACY
518 depends on SH_CLK_CPG
519 def_bool y if !CPU_SUBTYPE_SH7785
522 int "CPU Mode Pin Setting"
524 default 6 if CPU_SUBTYPE_SH7206
525 default 5 if CPU_SUBTYPE_SH7619
528 MD2 - MD0 pin setting.
530 source "kernel/time/Kconfig"
534 menu "CPU Frequency scaling"
536 source "drivers/cpufreq/Kconfig"
539 tristate "SuperH CPU Frequency driver"
541 select CPU_FREQ_TABLE
543 This adds the cpufreq driver for SuperH. Any CPU that supports
544 clock rate rounding through the clock framework can use this
545 driver. While it will make the kernel slightly larger, this is
546 harmless for CPUs that don't support rate rounding. The driver
547 will also generate a notice in the boot log before disabling
548 itself if the CPU in question is not capable of rate rounding.
550 For details, take a look at <file:Documentation/cpu-freq>.
556 source "arch/sh/drivers/Kconfig"
560 menu "Kernel features"
562 source kernel/Kconfig.hz
565 bool "kexec system call (EXPERIMENTAL)"
566 depends on SUPERH32 && EXPERIMENTAL && MMU
568 kexec is a system call that implements the ability to shutdown your
569 current kernel, and to start another kernel. It is like a reboot
570 but it is independent of the system firmware. And like a reboot
571 you can start any kernel with it, not just Linux.
573 The name comes from the similarity to the exec system call.
575 It is an ongoing process to be certain the hardware in a machine
576 is properly shutdown, so do not be surprised if this code does not
577 initially work for you. It may help to enable device hotplugging
578 support. As of this writing the exact hardware interface is
579 strongly in flux, so no good recommendation can be made.
582 bool "kernel crash dumps (EXPERIMENTAL)"
583 depends on SUPERH32 && EXPERIMENTAL
585 Generate crash dump after being started by kexec.
586 This should be normally only set in special crash dump kernels
587 which are loaded in the main kernel with kexec-tools into
588 a specially reserved region and then later executed after
589 a crash by kdump/kexec. The crash dump kernel must be compiled
590 to a memory address not used by the main kernel using
593 For more details see Documentation/kdump/kdump.txt
596 bool "kexec jump (EXPERIMENTAL)"
597 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
599 Jump between original kernel and kexeced kernel and invoke
603 bool "Enable seccomp to safely compute untrusted bytecode"
606 This kernel feature is useful for number crunching applications
607 that may need to compute untrusted bytecode during their
608 execution. By using pipes or other transports made available to
609 the process as file descriptors supporting the read/write
610 syscalls, it's possible to isolate those applications in
611 their own address space using seccomp. Once seccomp is
612 enabled via prctl, it cannot be disabled and the task is only
613 allowed to execute a few safe syscalls defined by each seccomp
619 bool "Symmetric multi-processing support"
620 depends on SYS_SUPPORTS_SMP
621 select USE_GENERIC_SMP_HELPERS
623 This enables support for systems with more than one CPU. If you have
624 a system with only one CPU, like most personal computers, say N. If
625 you have a system with more than one CPU, say Y.
627 If you say N here, the kernel will run on single and multiprocessor
628 machines, but will use only one CPU of a multiprocessor machine. If
629 you say Y here, the kernel will run on many, but not all,
630 singleprocessor machines. On a singleprocessor machine, the kernel
631 will run faster if you say N here.
633 People using multiprocessor machines who say Y here should also say
634 Y to "Enhanced Real Time Clock Support", below.
636 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
637 available at <http://www.tldp.org/docs.html#howto>.
639 If you don't know what to do here, say N.
642 int "Maximum number of CPUs (2-32)"
645 default "4" if CPU_SHX3
648 This allows you to specify the maximum number of CPUs which this
649 kernel will support. The maximum supported value is 32 and the
650 minimum value which makes sense is 2.
652 This is purely to save memory - each supported CPU adds
653 approximately eight kilobytes to the kernel image.
655 source "kernel/Kconfig.preempt"
659 depends on !SMP && SUPERH32
661 This enables support for gUSA (general UserSpace Atomicity).
662 This is the default implementation for both UP and non-ll/sc
663 CPUs, and is used by the libc, amongst others.
665 For additional information, design information can be found
666 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
668 This should only be disabled for special cases where alternate
669 atomicity implementations exist.
672 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
673 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
675 Enabling this option will allow the kernel to implement some
676 atomic operations using a software implementation of load-locked/
677 store-conditional (LLSC). On machines which do not have hardware
678 LLSC, this should be more efficient than the other alternative of
679 disabling interrupts around the atomic sequence.
685 config ZERO_PAGE_OFFSET
687 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
688 SH_7751_SOLUTION_ENGINE
689 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
690 default "0x00002000" if PAGE_SIZE_8KB
693 This sets the default offset of zero page.
695 config BOOT_LINK_OFFSET
697 default "0x00210000" if SH_SHMIN
698 default "0x00400000" if SH_CAYMAN
699 default "0x00810000" if SH_7780_SOLUTION_ENGINE
700 default "0x009e0000" if SH_TITAN
701 default "0x01800000" if SH_SDK7780
702 default "0x02000000" if SH_EDOSK7760
705 This option allows you to set the link address offset of the zImage.
706 This can be useful if you are on a board which has a small amount of
711 default "0x00001000" if PAGE_SIZE_4KB
712 default "0x00002000" if PAGE_SIZE_8KB
713 default "0x00004000" if PAGE_SIZE_16KB
714 default "0x00010000" if PAGE_SIZE_64KB
718 bool "Wakeup UBC on startup"
719 depends on CPU_SH4 && !CPU_SH4A
721 Selecting this option will wakeup the User Break Controller (UBC) on
722 startup. Although the UBC is left in an awake state when the processor
723 comes up, some boot loaders misbehave by putting the UBC to sleep in a
724 power saving state, which causes issues with things like ptrace().
729 bool "Default bootloader kernel arguments"
732 string "Initial kernel command string"
733 depends on CMDLINE_BOOL
734 default "console=ttySC1,115200"
741 tristate "SuperHyway Bus support"
742 depends on CPU_SUBTYPE_SH4_202
745 bool "Maple Bus support"
746 depends on SH_DREAMCAST
748 The Maple Bus is SEGA's serial communication bus for peripherals
749 on the Dreamcast. Without this bus support you won't be able to
750 get your Dreamcast keyboard etc to work, so most users
751 probably want to say 'Y' here, unless you are only using the
752 Dreamcast with a serial line terminal or a remote network
755 source "arch/sh/drivers/pci/Kconfig"
757 source "drivers/pci/pcie/Kconfig"
759 source "drivers/pci/Kconfig"
761 source "drivers/pcmcia/Kconfig"
763 source "drivers/pci/hotplug/Kconfig"
767 menu "Executable file formats"
769 source "fs/Kconfig.binfmt"
773 menu "Power management options (EXPERIMENTAL)"
774 depends on EXPERIMENTAL
776 source "kernel/power/Kconfig"
778 source "drivers/cpuidle/Kconfig"
784 source "drivers/Kconfig"
788 source "arch/sh/Kconfig.debug"
790 source "security/Kconfig"
792 source "crypto/Kconfig"