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 HAVE_HW_BREAKPOINT if CPU_SH4A
43 select ARCH_HIBERNATION_POSSIBLE if MMU
46 def_bool ARCH = "sh64"
50 default "arch/sh/configs/shx3_defconfig" if SUPERH32
51 default "arch/sh/configs/cayman_defconfig" if SUPERH64
53 config RWSEM_GENERIC_SPINLOCK
56 config RWSEM_XCHGADD_ALGORITHM
61 depends on BUG && SUPERH32
67 config GENERIC_FIND_NEXT_BIT
70 config GENERIC_HWEIGHT
73 config GENERIC_HARDIRQS
76 config GENERIC_HARDIRQS_NO__DO_IRQ
79 config GENERIC_IRQ_PROBE
88 config GENERIC_CALIBRATE_DELAY
97 config GENERIC_CLOCKEVENTS
100 config GENERIC_CLOCKEVENTS_BROADCAST
103 config GENERIC_CMOS_UPDATE
105 depends on SH_SH03 || SH_DREAMCAST
107 config GENERIC_LOCKBREAK
109 depends on SMP && PREEMPT
111 config SYS_SUPPORTS_PM
115 config ARCH_SUSPEND_POSSIBLE
118 config ARCH_HIBERNATION_POSSIBLE
121 config SYS_SUPPORTS_APM_EMULATION
123 select ARCH_SUSPEND_POSSIBLE
125 config SYS_SUPPORTS_HUGETLBFS
128 config SYS_SUPPORTS_SMP
131 config SYS_SUPPORTS_NUMA
134 config SYS_SUPPORTS_PCI
137 config SYS_SUPPORTS_CMT
140 config SYS_SUPPORTS_MTU2
143 config SYS_SUPPORTS_TMU
146 config STACKTRACE_SUPPORT
149 config LOCKDEP_SUPPORT
152 config HAVE_LATENCYTOP_SUPPORT
156 config ARCH_HAS_ILOG2_U32
159 config ARCH_HAS_ILOG2_U64
162 config ARCH_NO_VIRT_TO_BUS
165 config ARCH_HAS_DEFAULT_IDLE
168 config ARCH_HAS_CPU_IDLE_WAIT
174 source "init/Kconfig"
176 source "kernel/Kconfig.freezer"
192 select CPU_HAS_INTEVT
194 select SYS_SUPPORTS_TMU
198 select CPU_HAS_INTEVT
200 select CPU_HAS_FPU if !CPU_SH4AL_DSP
201 select SYS_SUPPORTS_TMU
202 select SYS_SUPPORTS_HUGETLBFS if MMU
216 select SYS_SUPPORTS_TMU
217 select SYS_SUPPORTS_HUGETLBFS if MMU
227 select ARCH_SUSPEND_POSSIBLE
234 prompt "Processor sub-type selection"
240 # SH-2 Processor Support
242 config CPU_SUBTYPE_SH7619
243 bool "Support SH7619 processor"
245 select SYS_SUPPORTS_CMT
247 # SH-2A Processor Support
249 config CPU_SUBTYPE_SH7201
250 bool "Support SH7201 processor"
253 select SYS_SUPPORTS_MTU2
255 config CPU_SUBTYPE_SH7203
256 bool "Support SH7203 processor"
259 select SYS_SUPPORTS_CMT
260 select SYS_SUPPORTS_MTU2
262 config CPU_SUBTYPE_SH7206
263 bool "Support SH7206 processor"
265 select SYS_SUPPORTS_CMT
266 select SYS_SUPPORTS_MTU2
268 config CPU_SUBTYPE_SH7263
269 bool "Support SH7263 processor"
272 select SYS_SUPPORTS_CMT
273 select SYS_SUPPORTS_MTU2
275 config CPU_SUBTYPE_MXG
276 bool "Support MX-G processor"
278 select SYS_SUPPORTS_MTU2
280 Select MX-G if running on an R8A03022BG part.
282 # SH-3 Processor Support
284 config CPU_SUBTYPE_SH7705
285 bool "Support SH7705 processor"
288 config CPU_SUBTYPE_SH7706
289 bool "Support SH7706 processor"
292 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
294 config CPU_SUBTYPE_SH7707
295 bool "Support SH7707 processor"
298 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
300 config CPU_SUBTYPE_SH7708
301 bool "Support SH7708 processor"
304 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
305 if you have a 100 Mhz SH-3 HD6417708R CPU.
307 config CPU_SUBTYPE_SH7709
308 bool "Support SH7709 processor"
311 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
313 config CPU_SUBTYPE_SH7710
314 bool "Support SH7710 processor"
318 Select SH7710 if you have a SH3-DSP SH7710 CPU.
320 config CPU_SUBTYPE_SH7712
321 bool "Support SH7712 processor"
325 Select SH7712 if you have a SH3-DSP SH7712 CPU.
327 config CPU_SUBTYPE_SH7720
328 bool "Support SH7720 processor"
331 select SYS_SUPPORTS_CMT
333 Select SH7720 if you have a SH3-DSP SH7720 CPU.
335 config CPU_SUBTYPE_SH7721
336 bool "Support SH7721 processor"
339 select SYS_SUPPORTS_CMT
341 Select SH7721 if you have a SH3-DSP SH7721 CPU.
343 # SH-4 Processor Support
345 config CPU_SUBTYPE_SH7750
346 bool "Support SH7750 processor"
349 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
351 config CPU_SUBTYPE_SH7091
352 bool "Support SH7091 processor"
355 Select SH7091 if you have an SH-4 based Sega device (such as
356 the Dreamcast, Naomi, and Naomi 2).
358 config CPU_SUBTYPE_SH7750R
359 bool "Support SH7750R processor"
362 config CPU_SUBTYPE_SH7750S
363 bool "Support SH7750S processor"
366 config CPU_SUBTYPE_SH7751
367 bool "Support SH7751 processor"
370 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
371 or if you have a HD6417751R CPU.
373 config CPU_SUBTYPE_SH7751R
374 bool "Support SH7751R processor"
377 config CPU_SUBTYPE_SH7760
378 bool "Support SH7760 processor"
381 config CPU_SUBTYPE_SH4_202
382 bool "Support SH4-202 processor"
385 # SH-4A Processor Support
387 config CPU_SUBTYPE_SH7723
388 bool "Support SH7723 processor"
392 select ARCH_SPARSEMEM_ENABLE
393 select SYS_SUPPORTS_CMT
395 Select SH7723 if you have an SH-MobileR2 CPU.
397 config CPU_SUBTYPE_SH7724
398 bool "Support SH7724 processor"
402 select ARCH_SPARSEMEM_ENABLE
403 select SYS_SUPPORTS_CMT
405 Select SH7724 if you have an SH-MobileR2R CPU.
407 config CPU_SUBTYPE_SH7757
408 bool "Support SH7757 processor"
412 Select SH7757 if you have a SH4A SH7757 CPU.
414 config CPU_SUBTYPE_SH7763
415 bool "Support SH7763 processor"
418 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
420 config CPU_SUBTYPE_SH7770
421 bool "Support SH7770 processor"
424 config CPU_SUBTYPE_SH7780
425 bool "Support SH7780 processor"
428 config CPU_SUBTYPE_SH7785
429 bool "Support SH7785 processor"
432 select ARCH_SPARSEMEM_ENABLE
433 select SYS_SUPPORTS_NUMA
435 config CPU_SUBTYPE_SH7786
436 bool "Support SH7786 processor"
439 select CPU_HAS_PTEAEX
440 select ARCH_SPARSEMEM_ENABLE
441 select SYS_SUPPORTS_NUMA
442 select SYS_SUPPORTS_SMP
443 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
445 config CPU_SUBTYPE_SHX3
446 bool "Support SH-X3 processor"
449 select ARCH_SPARSEMEM_ENABLE
450 select SYS_SUPPORTS_NUMA
451 select SYS_SUPPORTS_SMP
452 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
454 # SH4AL-DSP Processor Support
456 config CPU_SUBTYPE_SH7343
457 bool "Support SH7343 processor"
460 select SYS_SUPPORTS_CMT
462 config CPU_SUBTYPE_SH7722
463 bool "Support SH7722 processor"
467 select ARCH_SPARSEMEM_ENABLE
468 select SYS_SUPPORTS_NUMA
469 select SYS_SUPPORTS_CMT
471 config CPU_SUBTYPE_SH7366
472 bool "Support SH7366 processor"
476 select ARCH_SPARSEMEM_ENABLE
477 select SYS_SUPPORTS_NUMA
478 select SYS_SUPPORTS_CMT
487 prompt "Processor sub-type selection"
489 # SH-5 Processor Support
491 config CPU_SUBTYPE_SH5_101
492 bool "Support SH5-101 processor"
495 config CPU_SUBTYPE_SH5_103
496 bool "Support SH5-103 processor"
503 source "arch/sh/mm/Kconfig"
505 source "arch/sh/Kconfig.cpu"
507 source "arch/sh/boards/Kconfig"
509 menu "Timer and clock configuration"
512 bool "TMU timer driver"
513 depends on SYS_SUPPORTS_TMU
516 This enables the build of the TMU timer driver.
519 bool "CMT timer driver"
520 depends on SYS_SUPPORTS_CMT
523 This enables build of the CMT timer driver.
526 bool "MTU2 timer driver"
527 depends on SYS_SUPPORTS_MTU2
530 This enables build of the MTU2 timer driver.
533 int "Peripheral clock frequency (in Hz)"
534 default "27000000" if CPU_SUBTYPE_SH7343
535 default "31250000" if CPU_SUBTYPE_SH7619
536 default "32000000" if CPU_SUBTYPE_SH7722
537 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
538 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
539 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
540 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
541 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
542 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
543 default "66000000" if CPU_SUBTYPE_SH4_202
546 This option is used to specify the peripheral clock frequency.
547 This is necessary for determining the reference clock value on
548 platforms lacking an RTC.
553 config SH_CLK_CPG_LEGACY
554 depends on SH_CLK_CPG
555 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
558 int "CPU Mode Pin Setting"
560 default 6 if CPU_SUBTYPE_SH7206
561 default 5 if CPU_SUBTYPE_SH7619
564 MD2 - MD0 pin setting.
566 source "kernel/time/Kconfig"
570 menu "CPU Frequency scaling"
572 source "drivers/cpufreq/Kconfig"
575 tristate "SuperH CPU Frequency driver"
577 select CPU_FREQ_TABLE
579 This adds the cpufreq driver for SuperH. Any CPU that supports
580 clock rate rounding through the clock framework can use this
581 driver. While it will make the kernel slightly larger, this is
582 harmless for CPUs that don't support rate rounding. The driver
583 will also generate a notice in the boot log before disabling
584 itself if the CPU in question is not capable of rate rounding.
586 For details, take a look at <file:Documentation/cpu-freq>.
592 source "arch/sh/drivers/Kconfig"
596 menu "Kernel features"
598 source kernel/Kconfig.hz
601 bool "kexec system call (EXPERIMENTAL)"
602 depends on SUPERH32 && EXPERIMENTAL && MMU
604 kexec is a system call that implements the ability to shutdown your
605 current kernel, and to start another kernel. It is like a reboot
606 but it is independent of the system firmware. And like a reboot
607 you can start any kernel with it, not just Linux.
609 The name comes from the similarity to the exec system call.
611 It is an ongoing process to be certain the hardware in a machine
612 is properly shutdown, so do not be surprised if this code does not
613 initially work for you. It may help to enable device hotplugging
614 support. As of this writing the exact hardware interface is
615 strongly in flux, so no good recommendation can be made.
618 bool "kernel crash dumps (EXPERIMENTAL)"
619 depends on SUPERH32 && EXPERIMENTAL
621 Generate crash dump after being started by kexec.
622 This should be normally only set in special crash dump kernels
623 which are loaded in the main kernel with kexec-tools into
624 a specially reserved region and then later executed after
625 a crash by kdump/kexec. The crash dump kernel must be compiled
626 to a memory address not used by the main kernel using
629 For more details see Documentation/kdump/kdump.txt
632 bool "kexec jump (EXPERIMENTAL)"
633 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
635 Jump between original kernel and kexeced kernel and invoke
639 bool "Enable seccomp to safely compute untrusted bytecode"
642 This kernel feature is useful for number crunching applications
643 that may need to compute untrusted bytecode during their
644 execution. By using pipes or other transports made available to
645 the process as file descriptors supporting the read/write
646 syscalls, it's possible to isolate those applications in
647 their own address space using seccomp. Once seccomp is
648 enabled via prctl, it cannot be disabled and the task is only
649 allowed to execute a few safe syscalls defined by each seccomp
655 bool "Symmetric multi-processing support"
656 depends on SYS_SUPPORTS_SMP
657 select USE_GENERIC_SMP_HELPERS
659 This enables support for systems with more than one CPU. If you have
660 a system with only one CPU, like most personal computers, say N. If
661 you have a system with more than one CPU, say Y.
663 If you say N here, the kernel will run on single and multiprocessor
664 machines, but will use only one CPU of a multiprocessor machine. If
665 you say Y here, the kernel will run on many, but not all,
666 singleprocessor machines. On a singleprocessor machine, the kernel
667 will run faster if you say N here.
669 People using multiprocessor machines who say Y here should also say
670 Y to "Enhanced Real Time Clock Support", below.
672 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
673 available at <http://www.tldp.org/docs.html#howto>.
675 If you don't know what to do here, say N.
678 int "Maximum number of CPUs (2-32)"
681 default "4" if CPU_SUBTYPE_SHX3
684 This allows you to specify the maximum number of CPUs which this
685 kernel will support. The maximum supported value is 32 and the
686 minimum value which makes sense is 2.
688 This is purely to save memory - each supported CPU adds
689 approximately eight kilobytes to the kernel image.
691 source "kernel/Kconfig.preempt"
695 depends on !SMP && SUPERH32
697 This enables support for gUSA (general UserSpace Atomicity).
698 This is the default implementation for both UP and non-ll/sc
699 CPUs, and is used by the libc, amongst others.
701 For additional information, design information can be found
702 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
704 This should only be disabled for special cases where alternate
705 atomicity implementations exist.
708 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
709 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
711 Enabling this option will allow the kernel to implement some
712 atomic operations using a software implementation of load-locked/
713 store-conditional (LLSC). On machines which do not have hardware
714 LLSC, this should be more efficient than the other alternative of
715 disabling interrupts around the atomic sequence.
718 bool "Support sparse irq numbering"
719 depends on EXPERIMENTAL
721 This enables support for sparse irqs. This is useful in general
722 as most CPUs have a fairly sparse array of IRQ vectors, which
723 the irq_desc then maps directly on to. Systems with a high
724 number of off-chip IRQs will want to treat this as
725 experimental until they have been independently verified.
727 If you don't know what to do here, say N.
733 config ZERO_PAGE_OFFSET
735 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
736 SH_7751_SOLUTION_ENGINE
737 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
738 default "0x00002000" if PAGE_SIZE_8KB
741 This sets the default offset of zero page.
743 config BOOT_LINK_OFFSET
745 default "0x00210000" if SH_SHMIN
746 default "0x00400000" if SH_CAYMAN
747 default "0x00810000" if SH_7780_SOLUTION_ENGINE
748 default "0x009e0000" if SH_TITAN
749 default "0x01800000" if SH_SDK7780
750 default "0x02000000" if SH_EDOSK7760
753 This option allows you to set the link address offset of the zImage.
754 This can be useful if you are on a board which has a small amount of
759 default "0x00001000" if PAGE_SIZE_4KB
760 default "0x00002000" if PAGE_SIZE_8KB
761 default "0x00004000" if PAGE_SIZE_16KB
762 default "0x00010000" if PAGE_SIZE_64KB
766 bool "Wakeup UBC on startup"
767 depends on CPU_SH4 && !CPU_SH4A
769 Selecting this option will wakeup the User Break Controller (UBC) on
770 startup. Although the UBC is left in an awake state when the processor
771 comes up, some boot loaders misbehave by putting the UBC to sleep in a
772 power saving state, which causes issues with things like ptrace().
777 prompt "Kernel command line"
779 default CMDLINE_OVERWRITE
781 Setting this option allows the kernel command line arguments
784 config CMDLINE_OVERWRITE
785 bool "Overwrite bootloader kernel arguments"
787 Given string will overwrite any arguments passed in by
790 config CMDLINE_EXTEND
791 bool "Extend bootloader kernel arguments"
793 Given string will be concatenated with arguments passed in
799 string "Kernel command line arguments string"
800 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
801 default "console=ttySC1,115200"
808 tristate "SuperHyway Bus support"
809 depends on CPU_SUBTYPE_SH4_202
812 bool "Maple Bus support"
813 depends on SH_DREAMCAST
815 The Maple Bus is SEGA's serial communication bus for peripherals
816 on the Dreamcast. Without this bus support you won't be able to
817 get your Dreamcast keyboard etc to work, so most users
818 probably want to say 'Y' here, unless you are only using the
819 Dreamcast with a serial line terminal or a remote network
822 source "arch/sh/drivers/pci/Kconfig"
824 source "drivers/pci/pcie/Kconfig"
826 source "drivers/pci/Kconfig"
828 source "drivers/pcmcia/Kconfig"
830 source "drivers/pci/hotplug/Kconfig"
834 menu "Executable file formats"
836 source "fs/Kconfig.binfmt"
840 menu "Power management options (EXPERIMENTAL)"
841 depends on EXPERIMENTAL
843 source "kernel/power/Kconfig"
845 source "drivers/cpuidle/Kconfig"
851 source "drivers/Kconfig"
855 source "arch/sh/Kconfig.debug"
857 source "security/Kconfig"
859 source "crypto/Kconfig"