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_EVENTS
20 select HAVE_KERNEL_GZIP
21 select HAVE_KERNEL_BZIP2
22 select HAVE_KERNEL_LZMA
23 select HAVE_SYSCALL_TRACEPOINTS
25 select GENERIC_ATOMIC64
27 The SuperH is a RISC processor targeted for use in embedded systems
28 and consumer electronics; it was also used in the Sega Dreamcast
29 gaming console. The SuperH port has a home page at
30 <http://www.linux-sh.org/>.
35 select HAVE_KRETPROBES
36 select HAVE_FUNCTION_TRACER
37 select HAVE_FTRACE_MCOUNT_RECORD
38 select HAVE_DYNAMIC_FTRACE
39 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
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_HUGETLBFS
127 config SYS_SUPPORTS_SMP
130 config SYS_SUPPORTS_NUMA
133 config SYS_SUPPORTS_PCI
136 config SYS_SUPPORTS_CMT
139 config SYS_SUPPORTS_MTU2
142 config SYS_SUPPORTS_TMU
145 config STACKTRACE_SUPPORT
148 config LOCKDEP_SUPPORT
151 config HAVE_LATENCYTOP_SUPPORT
155 config ARCH_HAS_ILOG2_U32
158 config ARCH_HAS_ILOG2_U64
161 config ARCH_NO_VIRT_TO_BUS
164 config ARCH_HAS_DEFAULT_IDLE
167 config ARCH_HAS_CPU_IDLE_WAIT
173 source "init/Kconfig"
175 source "kernel/Kconfig.freezer"
191 select CPU_HAS_INTEVT
193 select SYS_SUPPORTS_TMU
197 select CPU_HAS_INTEVT
199 select CPU_HAS_FPU if !CPU_SH4AL_DSP
200 select SYS_SUPPORTS_TMU
201 select SYS_SUPPORTS_HUGETLBFS if MMU
215 select SYS_SUPPORTS_TMU
216 select SYS_SUPPORTS_HUGETLBFS if MMU
226 select ARCH_SUSPEND_POSSIBLE
233 prompt "Processor sub-type selection"
239 # SH-2 Processor Support
241 config CPU_SUBTYPE_SH7619
242 bool "Support SH7619 processor"
244 select SYS_SUPPORTS_CMT
246 # SH-2A Processor Support
248 config CPU_SUBTYPE_SH7201
249 bool "Support SH7201 processor"
252 select SYS_SUPPORTS_MTU2
254 config CPU_SUBTYPE_SH7203
255 bool "Support SH7203 processor"
258 select SYS_SUPPORTS_CMT
259 select SYS_SUPPORTS_MTU2
261 config CPU_SUBTYPE_SH7206
262 bool "Support SH7206 processor"
264 select SYS_SUPPORTS_CMT
265 select SYS_SUPPORTS_MTU2
267 config CPU_SUBTYPE_SH7263
268 bool "Support SH7263 processor"
271 select SYS_SUPPORTS_CMT
272 select SYS_SUPPORTS_MTU2
274 config CPU_SUBTYPE_MXG
275 bool "Support MX-G processor"
277 select SYS_SUPPORTS_MTU2
279 Select MX-G if running on an R8A03022BG part.
281 # SH-3 Processor Support
283 config CPU_SUBTYPE_SH7705
284 bool "Support SH7705 processor"
287 config CPU_SUBTYPE_SH7706
288 bool "Support SH7706 processor"
291 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
293 config CPU_SUBTYPE_SH7707
294 bool "Support SH7707 processor"
297 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
299 config CPU_SUBTYPE_SH7708
300 bool "Support SH7708 processor"
303 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
304 if you have a 100 Mhz SH-3 HD6417708R CPU.
306 config CPU_SUBTYPE_SH7709
307 bool "Support SH7709 processor"
310 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
312 config CPU_SUBTYPE_SH7710
313 bool "Support SH7710 processor"
317 Select SH7710 if you have a SH3-DSP SH7710 CPU.
319 config CPU_SUBTYPE_SH7712
320 bool "Support SH7712 processor"
324 Select SH7712 if you have a SH3-DSP SH7712 CPU.
326 config CPU_SUBTYPE_SH7720
327 bool "Support SH7720 processor"
330 select SYS_SUPPORTS_CMT
332 Select SH7720 if you have a SH3-DSP SH7720 CPU.
334 config CPU_SUBTYPE_SH7721
335 bool "Support SH7721 processor"
338 select SYS_SUPPORTS_CMT
340 Select SH7721 if you have a SH3-DSP SH7721 CPU.
342 # SH-4 Processor Support
344 config CPU_SUBTYPE_SH7750
345 bool "Support SH7750 processor"
348 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
350 config CPU_SUBTYPE_SH7091
351 bool "Support SH7091 processor"
354 Select SH7091 if you have an SH-4 based Sega device (such as
355 the Dreamcast, Naomi, and Naomi 2).
357 config CPU_SUBTYPE_SH7750R
358 bool "Support SH7750R processor"
361 config CPU_SUBTYPE_SH7750S
362 bool "Support SH7750S processor"
365 config CPU_SUBTYPE_SH7751
366 bool "Support SH7751 processor"
369 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
370 or if you have a HD6417751R CPU.
372 config CPU_SUBTYPE_SH7751R
373 bool "Support SH7751R processor"
376 config CPU_SUBTYPE_SH7760
377 bool "Support SH7760 processor"
380 config CPU_SUBTYPE_SH4_202
381 bool "Support SH4-202 processor"
384 # SH-4A Processor Support
386 config CPU_SUBTYPE_SH7723
387 bool "Support SH7723 processor"
391 select ARCH_SPARSEMEM_ENABLE
392 select SYS_SUPPORTS_CMT
394 Select SH7723 if you have an SH-MobileR2 CPU.
396 config CPU_SUBTYPE_SH7724
397 bool "Support SH7724 processor"
401 select ARCH_SPARSEMEM_ENABLE
402 select SYS_SUPPORTS_CMT
404 Select SH7724 if you have an SH-MobileR2R CPU.
406 config CPU_SUBTYPE_SH7757
407 bool "Support SH7757 processor"
411 Select SH7757 if you have a SH4A SH7757 CPU.
413 config CPU_SUBTYPE_SH7763
414 bool "Support SH7763 processor"
417 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
419 config CPU_SUBTYPE_SH7770
420 bool "Support SH7770 processor"
423 config CPU_SUBTYPE_SH7780
424 bool "Support SH7780 processor"
427 config CPU_SUBTYPE_SH7785
428 bool "Support SH7785 processor"
431 select ARCH_SPARSEMEM_ENABLE
432 select SYS_SUPPORTS_NUMA
434 config CPU_SUBTYPE_SH7786
435 bool "Support SH7786 processor"
438 select CPU_HAS_PTEAEX
439 select ARCH_SPARSEMEM_ENABLE
440 select SYS_SUPPORTS_NUMA
441 select SYS_SUPPORTS_SMP
442 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
444 config CPU_SUBTYPE_SHX3
445 bool "Support SH-X3 processor"
448 select ARCH_SPARSEMEM_ENABLE
449 select SYS_SUPPORTS_NUMA
450 select SYS_SUPPORTS_SMP
451 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
453 # SH4AL-DSP Processor Support
455 config CPU_SUBTYPE_SH7343
456 bool "Support SH7343 processor"
459 select SYS_SUPPORTS_CMT
461 config CPU_SUBTYPE_SH7722
462 bool "Support SH7722 processor"
466 select ARCH_SPARSEMEM_ENABLE
467 select SYS_SUPPORTS_NUMA
468 select SYS_SUPPORTS_CMT
470 config CPU_SUBTYPE_SH7366
471 bool "Support SH7366 processor"
475 select ARCH_SPARSEMEM_ENABLE
476 select SYS_SUPPORTS_NUMA
477 select SYS_SUPPORTS_CMT
486 prompt "Processor sub-type selection"
488 # SH-5 Processor Support
490 config CPU_SUBTYPE_SH5_101
491 bool "Support SH5-101 processor"
494 config CPU_SUBTYPE_SH5_103
495 bool "Support SH5-103 processor"
502 source "arch/sh/mm/Kconfig"
504 source "arch/sh/Kconfig.cpu"
506 source "arch/sh/boards/Kconfig"
508 menu "Timer and clock configuration"
511 bool "TMU timer driver"
512 depends on SYS_SUPPORTS_TMU
515 This enables the build of the TMU timer driver.
518 bool "CMT timer driver"
519 depends on SYS_SUPPORTS_CMT
522 This enables build of the CMT timer driver.
525 bool "MTU2 timer driver"
526 depends on SYS_SUPPORTS_MTU2
529 This enables build of the MTU2 timer driver.
532 int "Peripheral clock frequency (in Hz)"
533 default "27000000" if CPU_SUBTYPE_SH7343
534 default "31250000" if CPU_SUBTYPE_SH7619
535 default "32000000" if CPU_SUBTYPE_SH7722
536 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
537 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
538 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
539 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
540 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
541 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
542 default "66000000" if CPU_SUBTYPE_SH4_202
545 This option is used to specify the peripheral clock frequency.
546 This is necessary for determining the reference clock value on
547 platforms lacking an RTC.
552 config SH_CLK_CPG_LEGACY
553 depends on SH_CLK_CPG
554 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
557 int "CPU Mode Pin Setting"
559 default 6 if CPU_SUBTYPE_SH7206
560 default 5 if CPU_SUBTYPE_SH7619
563 MD2 - MD0 pin setting.
565 source "kernel/time/Kconfig"
569 menu "CPU Frequency scaling"
571 source "drivers/cpufreq/Kconfig"
574 tristate "SuperH CPU Frequency driver"
576 select CPU_FREQ_TABLE
578 This adds the cpufreq driver for SuperH. Any CPU that supports
579 clock rate rounding through the clock framework can use this
580 driver. While it will make the kernel slightly larger, this is
581 harmless for CPUs that don't support rate rounding. The driver
582 will also generate a notice in the boot log before disabling
583 itself if the CPU in question is not capable of rate rounding.
585 For details, take a look at <file:Documentation/cpu-freq>.
591 source "arch/sh/drivers/Kconfig"
595 menu "Kernel features"
597 source kernel/Kconfig.hz
600 bool "kexec system call (EXPERIMENTAL)"
601 depends on SUPERH32 && EXPERIMENTAL && MMU
603 kexec is a system call that implements the ability to shutdown your
604 current kernel, and to start another kernel. It is like a reboot
605 but it is independent of the system firmware. And like a reboot
606 you can start any kernel with it, not just Linux.
608 The name comes from the similarity to the exec system call.
610 It is an ongoing process to be certain the hardware in a machine
611 is properly shutdown, so do not be surprised if this code does not
612 initially work for you. It may help to enable device hotplugging
613 support. As of this writing the exact hardware interface is
614 strongly in flux, so no good recommendation can be made.
617 bool "kernel crash dumps (EXPERIMENTAL)"
618 depends on SUPERH32 && EXPERIMENTAL
620 Generate crash dump after being started by kexec.
621 This should be normally only set in special crash dump kernels
622 which are loaded in the main kernel with kexec-tools into
623 a specially reserved region and then later executed after
624 a crash by kdump/kexec. The crash dump kernel must be compiled
625 to a memory address not used by the main kernel using
628 For more details see Documentation/kdump/kdump.txt
631 bool "kexec jump (EXPERIMENTAL)"
632 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
634 Jump between original kernel and kexeced kernel and invoke
638 bool "Enable seccomp to safely compute untrusted bytecode"
641 This kernel feature is useful for number crunching applications
642 that may need to compute untrusted bytecode during their
643 execution. By using pipes or other transports made available to
644 the process as file descriptors supporting the read/write
645 syscalls, it's possible to isolate those applications in
646 their own address space using seccomp. Once seccomp is
647 enabled via prctl, it cannot be disabled and the task is only
648 allowed to execute a few safe syscalls defined by each seccomp
654 bool "Symmetric multi-processing support"
655 depends on SYS_SUPPORTS_SMP
656 select USE_GENERIC_SMP_HELPERS
658 This enables support for systems with more than one CPU. If you have
659 a system with only one CPU, like most personal computers, say N. If
660 you have a system with more than one CPU, say Y.
662 If you say N here, the kernel will run on single and multiprocessor
663 machines, but will use only one CPU of a multiprocessor machine. If
664 you say Y here, the kernel will run on many, but not all,
665 singleprocessor machines. On a singleprocessor machine, the kernel
666 will run faster if you say N here.
668 People using multiprocessor machines who say Y here should also say
669 Y to "Enhanced Real Time Clock Support", below.
671 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
672 available at <http://www.tldp.org/docs.html#howto>.
674 If you don't know what to do here, say N.
677 int "Maximum number of CPUs (2-32)"
680 default "4" if CPU_SUBTYPE_SHX3
683 This allows you to specify the maximum number of CPUs which this
684 kernel will support. The maximum supported value is 32 and the
685 minimum value which makes sense is 2.
687 This is purely to save memory - each supported CPU adds
688 approximately eight kilobytes to the kernel image.
690 source "kernel/Kconfig.preempt"
694 depends on !SMP && SUPERH32
696 This enables support for gUSA (general UserSpace Atomicity).
697 This is the default implementation for both UP and non-ll/sc
698 CPUs, and is used by the libc, amongst others.
700 For additional information, design information can be found
701 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
703 This should only be disabled for special cases where alternate
704 atomicity implementations exist.
707 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
708 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
710 Enabling this option will allow the kernel to implement some
711 atomic operations using a software implementation of load-locked/
712 store-conditional (LLSC). On machines which do not have hardware
713 LLSC, this should be more efficient than the other alternative of
714 disabling interrupts around the atomic sequence.
717 bool "Support sparse irq numbering"
718 depends on EXPERIMENTAL
720 This enables support for sparse irqs. This is useful in general
721 as most CPUs have a fairly sparse array of IRQ vectors, which
722 the irq_desc then maps directly on to. Systems with a high
723 number of off-chip IRQs will want to treat this as
724 experimental until they have been independently verified.
726 If you don't know what to do here, say N.
732 config ZERO_PAGE_OFFSET
734 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
735 SH_7751_SOLUTION_ENGINE
736 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
737 default "0x00002000" if PAGE_SIZE_8KB
740 This sets the default offset of zero page.
742 config BOOT_LINK_OFFSET
744 default "0x00210000" if SH_SHMIN
745 default "0x00400000" if SH_CAYMAN
746 default "0x00810000" if SH_7780_SOLUTION_ENGINE
747 default "0x009e0000" if SH_TITAN
748 default "0x01800000" if SH_SDK7780
749 default "0x02000000" if SH_EDOSK7760
752 This option allows you to set the link address offset of the zImage.
753 This can be useful if you are on a board which has a small amount of
758 default "0x00001000" if PAGE_SIZE_4KB
759 default "0x00002000" if PAGE_SIZE_8KB
760 default "0x00004000" if PAGE_SIZE_16KB
761 default "0x00010000" if PAGE_SIZE_64KB
765 bool "Wakeup UBC on startup"
766 depends on CPU_SH4 && !CPU_SH4A
768 Selecting this option will wakeup the User Break Controller (UBC) on
769 startup. Although the UBC is left in an awake state when the processor
770 comes up, some boot loaders misbehave by putting the UBC to sleep in a
771 power saving state, which causes issues with things like ptrace().
776 prompt "Kernel command line"
778 default CMDLINE_OVERWRITE
780 Setting this option allows the kernel command line arguments
783 config CMDLINE_OVERWRITE
784 bool "Overwrite bootloader kernel arguments"
786 Given string will overwrite any arguments passed in by
789 config CMDLINE_EXTEND
790 bool "Extend bootloader kernel arguments"
792 Given string will be concatenated with arguments passed in
798 string "Kernel command line arguments string"
799 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
800 default "console=ttySC1,115200"
807 tristate "SuperHyway Bus support"
808 depends on CPU_SUBTYPE_SH4_202
811 bool "Maple Bus support"
812 depends on SH_DREAMCAST
814 The Maple Bus is SEGA's serial communication bus for peripherals
815 on the Dreamcast. Without this bus support you won't be able to
816 get your Dreamcast keyboard etc to work, so most users
817 probably want to say 'Y' here, unless you are only using the
818 Dreamcast with a serial line terminal or a remote network
821 source "arch/sh/drivers/pci/Kconfig"
823 source "drivers/pci/pcie/Kconfig"
825 source "drivers/pci/Kconfig"
827 source "drivers/pcmcia/Kconfig"
829 source "drivers/pci/hotplug/Kconfig"
833 menu "Executable file formats"
835 source "fs/Kconfig.binfmt"
839 menu "Power management options (EXPERIMENTAL)"
840 depends on EXPERIMENTAL
842 source "kernel/power/Kconfig"
844 source "drivers/cpuidle/Kconfig"
850 source "drivers/Kconfig"
854 source "arch/sh/Kconfig.debug"
856 source "security/Kconfig"
858 source "crypto/Kconfig"