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_ARCH_TRACEHOOK
17 select HAVE_DMA_API_DEBUG
19 select HAVE_PERF_EVENTS
20 select PERF_USE_VMALLOC
21 select HAVE_KERNEL_GZIP
22 select HAVE_KERNEL_BZIP2
23 select HAVE_KERNEL_LZMA
24 select HAVE_KERNEL_LZO
25 select HAVE_SYSCALL_TRACEPOINTS
27 select GENERIC_ATOMIC64
29 The SuperH is a RISC processor targeted for use in embedded systems
30 and consumer electronics; it was also used in the Sega Dreamcast
31 gaming console. The SuperH port has a home page at
32 <http://www.linux-sh.org/>.
37 select HAVE_KRETPROBES
38 select HAVE_IOREMAP_PROT if MMU && !X2TLB
39 select HAVE_FUNCTION_TRACER
40 select HAVE_FTRACE_MCOUNT_RECORD
41 select HAVE_DYNAMIC_FTRACE
42 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
43 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
44 select HAVE_FUNCTION_GRAPH_TRACER
46 select HAVE_HW_BREAKPOINT
47 select PERF_EVENTS if HAVE_HW_BREAKPOINT
48 select ARCH_HIBERNATION_POSSIBLE if MMU
51 def_bool ARCH = "sh64"
55 default "arch/sh/configs/shx3_defconfig" if SUPERH32
56 default "arch/sh/configs/cayman_defconfig" if SUPERH64
58 config RWSEM_GENERIC_SPINLOCK
61 config RWSEM_XCHGADD_ALGORITHM
66 depends on BUG && SUPERH32
72 config GENERIC_FIND_NEXT_BIT
75 config GENERIC_HWEIGHT
78 config GENERIC_HARDIRQS
81 config GENERIC_HARDIRQS_NO__DO_IRQ
94 config GENERIC_CALIBRATE_DELAY
103 config GENERIC_CLOCKEVENTS
106 config GENERIC_CLOCKEVENTS_BROADCAST
109 config GENERIC_CMOS_UPDATE
111 depends on SH_SH03 || SH_DREAMCAST
113 config GENERIC_LOCKBREAK
115 depends on SMP && PREEMPT
117 config SYS_SUPPORTS_PM
121 config ARCH_SUSPEND_POSSIBLE
124 config ARCH_HIBERNATION_POSSIBLE
127 config SYS_SUPPORTS_APM_EMULATION
129 select ARCH_SUSPEND_POSSIBLE
131 config SYS_SUPPORTS_HUGETLBFS
134 config SYS_SUPPORTS_SMP
137 config SYS_SUPPORTS_NUMA
140 config SYS_SUPPORTS_PCI
143 config SYS_SUPPORTS_CMT
146 config SYS_SUPPORTS_MTU2
149 config SYS_SUPPORTS_TMU
152 config STACKTRACE_SUPPORT
155 config LOCKDEP_SUPPORT
158 config HAVE_LATENCYTOP_SUPPORT
162 config ARCH_HAS_ILOG2_U32
165 config ARCH_HAS_ILOG2_U64
168 config ARCH_NO_VIRT_TO_BUS
171 config ARCH_HAS_DEFAULT_IDLE
174 config ARCH_HAS_CPU_IDLE_WAIT
183 config DMA_NONCOHERENT
184 def_bool !DMA_COHERENT
186 source "init/Kconfig"
188 source "kernel/Kconfig.freezer"
204 select CPU_HAS_INTEVT
206 select SYS_SUPPORTS_TMU
210 select CPU_HAS_INTEVT
212 select CPU_HAS_FPU if !CPU_SH4AL_DSP
213 select SYS_SUPPORTS_TMU
214 select SYS_SUPPORTS_HUGETLBFS if MMU
228 select SYS_SUPPORTS_TMU
229 select SYS_SUPPORTS_HUGETLBFS if MMU
240 select ARCH_SUSPEND_POSSIBLE
247 prompt "Processor sub-type selection"
253 # SH-2 Processor Support
255 config CPU_SUBTYPE_SH7619
256 bool "Support SH7619 processor"
258 select SYS_SUPPORTS_CMT
260 # SH-2A Processor Support
262 config CPU_SUBTYPE_SH7201
263 bool "Support SH7201 processor"
266 select SYS_SUPPORTS_MTU2
268 config CPU_SUBTYPE_SH7203
269 bool "Support SH7203 processor"
272 select SYS_SUPPORTS_CMT
273 select SYS_SUPPORTS_MTU2
275 config CPU_SUBTYPE_SH7206
276 bool "Support SH7206 processor"
278 select SYS_SUPPORTS_CMT
279 select SYS_SUPPORTS_MTU2
281 config CPU_SUBTYPE_SH7263
282 bool "Support SH7263 processor"
285 select SYS_SUPPORTS_CMT
286 select SYS_SUPPORTS_MTU2
288 config CPU_SUBTYPE_MXG
289 bool "Support MX-G processor"
291 select SYS_SUPPORTS_MTU2
293 Select MX-G if running on an R8A03022BG part.
295 # SH-3 Processor Support
297 config CPU_SUBTYPE_SH7705
298 bool "Support SH7705 processor"
301 config CPU_SUBTYPE_SH7706
302 bool "Support SH7706 processor"
305 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
307 config CPU_SUBTYPE_SH7707
308 bool "Support SH7707 processor"
311 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
313 config CPU_SUBTYPE_SH7708
314 bool "Support SH7708 processor"
317 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
318 if you have a 100 Mhz SH-3 HD6417708R CPU.
320 config CPU_SUBTYPE_SH7709
321 bool "Support SH7709 processor"
324 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
326 config CPU_SUBTYPE_SH7710
327 bool "Support SH7710 processor"
331 Select SH7710 if you have a SH3-DSP SH7710 CPU.
333 config CPU_SUBTYPE_SH7712
334 bool "Support SH7712 processor"
338 Select SH7712 if you have a SH3-DSP SH7712 CPU.
340 config CPU_SUBTYPE_SH7720
341 bool "Support SH7720 processor"
344 select SYS_SUPPORTS_CMT
346 Select SH7720 if you have a SH3-DSP SH7720 CPU.
348 config CPU_SUBTYPE_SH7721
349 bool "Support SH7721 processor"
352 select SYS_SUPPORTS_CMT
354 Select SH7721 if you have a SH3-DSP SH7721 CPU.
356 # SH-4 Processor Support
358 config CPU_SUBTYPE_SH7750
359 bool "Support SH7750 processor"
362 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
364 config CPU_SUBTYPE_SH7091
365 bool "Support SH7091 processor"
368 Select SH7091 if you have an SH-4 based Sega device (such as
369 the Dreamcast, Naomi, and Naomi 2).
371 config CPU_SUBTYPE_SH7750R
372 bool "Support SH7750R processor"
375 config CPU_SUBTYPE_SH7750S
376 bool "Support SH7750S processor"
379 config CPU_SUBTYPE_SH7751
380 bool "Support SH7751 processor"
383 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
384 or if you have a HD6417751R CPU.
386 config CPU_SUBTYPE_SH7751R
387 bool "Support SH7751R processor"
390 config CPU_SUBTYPE_SH7760
391 bool "Support SH7760 processor"
394 config CPU_SUBTYPE_SH4_202
395 bool "Support SH4-202 processor"
398 # SH-4A Processor Support
400 config CPU_SUBTYPE_SH7723
401 bool "Support SH7723 processor"
405 select ARCH_SPARSEMEM_ENABLE
406 select SYS_SUPPORTS_CMT
408 Select SH7723 if you have an SH-MobileR2 CPU.
410 config CPU_SUBTYPE_SH7724
411 bool "Support SH7724 processor"
415 select ARCH_SPARSEMEM_ENABLE
416 select SYS_SUPPORTS_CMT
418 Select SH7724 if you have an SH-MobileR2R CPU.
420 config CPU_SUBTYPE_SH7757
421 bool "Support SH7757 processor"
425 Select SH7757 if you have a SH4A SH7757 CPU.
427 config CPU_SUBTYPE_SH7763
428 bool "Support SH7763 processor"
431 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
433 config CPU_SUBTYPE_SH7770
434 bool "Support SH7770 processor"
437 config CPU_SUBTYPE_SH7780
438 bool "Support SH7780 processor"
441 config CPU_SUBTYPE_SH7785
442 bool "Support SH7785 processor"
445 select ARCH_SPARSEMEM_ENABLE
446 select SYS_SUPPORTS_NUMA
448 config CPU_SUBTYPE_SH7786
449 bool "Support SH7786 processor"
452 select CPU_HAS_PTEAEX
453 select ARCH_SPARSEMEM_ENABLE
454 select SYS_SUPPORTS_NUMA
455 select SYS_SUPPORTS_SMP
456 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
458 config CPU_SUBTYPE_SHX3
459 bool "Support SH-X3 processor"
462 select ARCH_SPARSEMEM_ENABLE
463 select SYS_SUPPORTS_NUMA
464 select SYS_SUPPORTS_SMP
465 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
467 # SH4AL-DSP Processor Support
469 config CPU_SUBTYPE_SH7343
470 bool "Support SH7343 processor"
473 select SYS_SUPPORTS_CMT
475 config CPU_SUBTYPE_SH7722
476 bool "Support SH7722 processor"
480 select ARCH_SPARSEMEM_ENABLE
481 select SYS_SUPPORTS_NUMA
482 select SYS_SUPPORTS_CMT
484 config CPU_SUBTYPE_SH7366
485 bool "Support SH7366 processor"
489 select ARCH_SPARSEMEM_ENABLE
490 select SYS_SUPPORTS_NUMA
491 select SYS_SUPPORTS_CMT
500 prompt "Processor sub-type selection"
502 # SH-5 Processor Support
504 config CPU_SUBTYPE_SH5_101
505 bool "Support SH5-101 processor"
508 config CPU_SUBTYPE_SH5_103
509 bool "Support SH5-103 processor"
516 source "arch/sh/mm/Kconfig"
518 source "arch/sh/Kconfig.cpu"
520 source "arch/sh/boards/Kconfig"
522 menu "Timer and clock configuration"
525 bool "TMU timer driver"
526 depends on SYS_SUPPORTS_TMU
529 This enables the build of the TMU timer driver.
532 bool "CMT timer driver"
533 depends on SYS_SUPPORTS_CMT
536 This enables build of the CMT timer driver.
539 bool "MTU2 timer driver"
540 depends on SYS_SUPPORTS_MTU2
543 This enables build of the MTU2 timer driver.
546 int "Peripheral clock frequency (in Hz)"
547 depends on SH_CLK_CPG_LEGACY
548 default "31250000" if CPU_SUBTYPE_SH7619
549 default "33333333" if CPU_SUBTYPE_SH7770 || \
550 CPU_SUBTYPE_SH7760 || \
551 CPU_SUBTYPE_SH7705 || \
552 CPU_SUBTYPE_SH7203 || \
553 CPU_SUBTYPE_SH7206 || \
554 CPU_SUBTYPE_SH7263 || \
556 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
557 default "66000000" if CPU_SUBTYPE_SH4_202
560 This option is used to specify the peripheral clock frequency.
561 This is necessary for determining the reference clock value on
562 platforms lacking an RTC.
567 config SH_CLK_CPG_LEGACY
568 depends on SH_CLK_CPG
569 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
573 int "CPU Mode Pin Setting"
575 default 6 if CPU_SUBTYPE_SH7206
576 default 5 if CPU_SUBTYPE_SH7619
579 MD2 - MD0 pin setting.
581 source "kernel/time/Kconfig"
585 menu "CPU Frequency scaling"
587 source "drivers/cpufreq/Kconfig"
590 tristate "SuperH CPU Frequency driver"
592 select CPU_FREQ_TABLE
594 This adds the cpufreq driver for SuperH. Any CPU that supports
595 clock rate rounding through the clock framework can use this
596 driver. While it will make the kernel slightly larger, this is
597 harmless for CPUs that don't support rate rounding. The driver
598 will also generate a notice in the boot log before disabling
599 itself if the CPU in question is not capable of rate rounding.
601 For details, take a look at <file:Documentation/cpu-freq>.
607 source "arch/sh/drivers/Kconfig"
611 menu "Kernel features"
613 source kernel/Kconfig.hz
616 bool "kexec system call (EXPERIMENTAL)"
617 depends on SUPERH32 && EXPERIMENTAL && MMU
619 kexec is a system call that implements the ability to shutdown your
620 current kernel, and to start another kernel. It is like a reboot
621 but it is independent of the system firmware. And like a reboot
622 you can start any kernel with it, not just Linux.
624 The name comes from the similarity to the exec system call.
626 It is an ongoing process to be certain the hardware in a machine
627 is properly shutdown, so do not be surprised if this code does not
628 initially work for you. It may help to enable device hotplugging
629 support. As of this writing the exact hardware interface is
630 strongly in flux, so no good recommendation can be made.
633 bool "kernel crash dumps (EXPERIMENTAL)"
634 depends on SUPERH32 && EXPERIMENTAL
636 Generate crash dump after being started by kexec.
637 This should be normally only set in special crash dump kernels
638 which are loaded in the main kernel with kexec-tools into
639 a specially reserved region and then later executed after
640 a crash by kdump/kexec. The crash dump kernel must be compiled
641 to a memory address not used by the main kernel using
644 For more details see Documentation/kdump/kdump.txt
647 bool "kexec jump (EXPERIMENTAL)"
648 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
650 Jump between original kernel and kexeced kernel and invoke
654 bool "Enable seccomp to safely compute untrusted bytecode"
657 This kernel feature is useful for number crunching applications
658 that may need to compute untrusted bytecode during their
659 execution. By using pipes or other transports made available to
660 the process as file descriptors supporting the read/write
661 syscalls, it's possible to isolate those applications in
662 their own address space using seccomp. Once seccomp is
663 enabled via prctl, it cannot be disabled and the task is only
664 allowed to execute a few safe syscalls defined by each seccomp
670 bool "Symmetric multi-processing support"
671 depends on SYS_SUPPORTS_SMP
672 select USE_GENERIC_SMP_HELPERS
674 This enables support for systems with more than one CPU. If you have
675 a system with only one CPU, like most personal computers, say N. If
676 you have a system with more than one CPU, say Y.
678 If you say N here, the kernel will run on single and multiprocessor
679 machines, but will use only one CPU of a multiprocessor machine. If
680 you say Y here, the kernel will run on many, but not all,
681 singleprocessor machines. On a singleprocessor machine, the kernel
682 will run faster if you say N here.
684 People using multiprocessor machines who say Y here should also say
685 Y to "Enhanced Real Time Clock Support", below.
687 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
688 available at <http://www.tldp.org/docs.html#howto>.
690 If you don't know what to do here, say N.
693 int "Maximum number of CPUs (2-32)"
696 default "4" if CPU_SUBTYPE_SHX3
699 This allows you to specify the maximum number of CPUs which this
700 kernel will support. The maximum supported value is 32 and the
701 minimum value which makes sense is 2.
703 This is purely to save memory - each supported CPU adds
704 approximately eight kilobytes to the kernel image.
706 source "kernel/Kconfig.preempt"
710 depends on !SMP && SUPERH32
712 This enables support for gUSA (general UserSpace Atomicity).
713 This is the default implementation for both UP and non-ll/sc
714 CPUs, and is used by the libc, amongst others.
716 For additional information, design information can be found
717 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
719 This should only be disabled for special cases where alternate
720 atomicity implementations exist.
723 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
724 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
726 Enabling this option will allow the kernel to implement some
727 atomic operations using a software implementation of load-locked/
728 store-conditional (LLSC). On machines which do not have hardware
729 LLSC, this should be more efficient than the other alternative of
730 disabling interrupts around the atomic sequence.
736 config ZERO_PAGE_OFFSET
738 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
739 SH_7751_SOLUTION_ENGINE
740 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
741 default "0x00002000" if PAGE_SIZE_8KB
744 This sets the default offset of zero page.
746 config BOOT_LINK_OFFSET
748 default "0x00210000" if SH_SHMIN
749 default "0x00400000" if SH_CAYMAN
750 default "0x00810000" if SH_7780_SOLUTION_ENGINE
751 default "0x009e0000" if SH_TITAN
752 default "0x01800000" if SH_SDK7780
753 default "0x02000000" if SH_EDOSK7760
756 This option allows you to set the link address offset of the zImage.
757 This can be useful if you are on a board which has a small amount of
762 default "0x00001000" if PAGE_SIZE_4KB
763 default "0x00002000" if PAGE_SIZE_8KB
764 default "0x00004000" if PAGE_SIZE_16KB
765 default "0x00010000" if PAGE_SIZE_64KB
769 prompt "Kernel command line"
771 default CMDLINE_OVERWRITE
773 Setting this option allows the kernel command line arguments
776 config CMDLINE_OVERWRITE
777 bool "Overwrite bootloader kernel arguments"
779 Given string will overwrite any arguments passed in by
782 config CMDLINE_EXTEND
783 bool "Extend bootloader kernel arguments"
785 Given string will be concatenated with arguments passed in
791 string "Kernel command line arguments string"
792 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
793 default "console=ttySC1,115200"
800 tristate "SuperHyway Bus support"
801 depends on CPU_SUBTYPE_SH4_202
804 bool "Maple Bus support"
805 depends on SH_DREAMCAST
807 The Maple Bus is SEGA's serial communication bus for peripherals
808 on the Dreamcast. Without this bus support you won't be able to
809 get your Dreamcast keyboard etc to work, so most users
810 probably want to say 'Y' here, unless you are only using the
811 Dreamcast with a serial line terminal or a remote network
816 depends on SYS_SUPPORTS_PCI
819 Find out whether you have a PCI motherboard. PCI is the name of a
820 bus system, i.e. the way the CPU talks to the other stuff inside
821 your box. If you have PCI, say Y, otherwise N.
826 source "drivers/pci/pcie/Kconfig"
828 source "drivers/pci/Kconfig"
830 source "drivers/pcmcia/Kconfig"
832 source "drivers/pci/hotplug/Kconfig"
836 menu "Executable file formats"
838 source "fs/Kconfig.binfmt"
842 menu "Power management options (EXPERIMENTAL)"
843 depends on EXPERIMENTAL
845 source "kernel/power/Kconfig"
847 source "drivers/cpuidle/Kconfig"
853 source "drivers/Kconfig"
857 source "arch/sh/Kconfig.debug"
859 source "security/Kconfig"
861 source "crypto/Kconfig"