5 select HAVE_IDE if HAS_IOPORT
8 select HAVE_GENERIC_DMA_COHERENT
9 select HAVE_ARCH_TRACEHOOK
10 select HAVE_DMA_API_DEBUG
12 select HAVE_PERF_EVENTS
13 select PERF_USE_VMALLOC
14 select HAVE_KERNEL_GZIP
15 select HAVE_KERNEL_BZIP2
16 select HAVE_KERNEL_LZMA
17 select HAVE_KERNEL_LZO
18 select HAVE_SYSCALL_TRACEPOINTS
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_IOREMAP_PROT if MMU && !X2TLB
32 select HAVE_FUNCTION_TRACER
33 select HAVE_FTRACE_MCOUNT_RECORD
34 select HAVE_DYNAMIC_FTRACE
35 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
36 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
37 select HAVE_FUNCTION_GRAPH_TRACER
39 select HAVE_HW_BREAKPOINT
40 select HAVE_MIXED_BREAKPOINTS_REGS
41 select PERF_EVENTS if HAVE_HW_BREAKPOINT
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
88 config GENERIC_CALIBRATE_DELAY
94 config GENERIC_CLOCKEVENTS
97 config GENERIC_CLOCKEVENTS_BROADCAST
100 config GENERIC_CMOS_UPDATE
102 depends on SH_SH03 || SH_DREAMCAST
104 config GENERIC_LOCKBREAK
106 depends on SMP && PREEMPT
108 config SYS_SUPPORTS_PM
112 config ARCH_SUSPEND_POSSIBLE
115 config ARCH_HIBERNATION_POSSIBLE
118 config SYS_SUPPORTS_APM_EMULATION
120 select ARCH_SUSPEND_POSSIBLE
122 config SYS_SUPPORTS_HUGETLBFS
125 config SYS_SUPPORTS_SMP
128 config SYS_SUPPORTS_NUMA
131 config SYS_SUPPORTS_PCI
134 config SYS_SUPPORTS_CMT
137 config SYS_SUPPORTS_MTU2
140 config SYS_SUPPORTS_TMU
143 config STACKTRACE_SUPPORT
146 config LOCKDEP_SUPPORT
149 config HAVE_LATENCYTOP_SUPPORT
152 config ARCH_HAS_ILOG2_U32
155 config ARCH_HAS_ILOG2_U64
158 config ARCH_NO_VIRT_TO_BUS
161 config ARCH_HAS_DEFAULT_IDLE
164 config ARCH_HAS_CPU_IDLE_WAIT
176 config DMA_NONCOHERENT
177 def_bool !DMA_COHERENT
179 config NEED_DMA_MAP_STATE
180 def_bool DMA_NONCOHERENT
182 config NEED_SG_DMA_LENGTH
185 source "init/Kconfig"
187 source "kernel/Kconfig.freezer"
203 select CPU_HAS_INTEVT
205 select SYS_SUPPORTS_TMU
209 select CPU_HAS_INTEVT
211 select CPU_HAS_FPU if !CPU_SH4AL_DSP
212 select SYS_SUPPORTS_TMU
213 select SYS_SUPPORTS_HUGETLBFS if MMU
227 select SYS_SUPPORTS_TMU
228 select SYS_SUPPORTS_HUGETLBFS if MMU
236 select SYS_SUPPORTS_SMP
237 select SYS_SUPPORTS_NUMA
241 select ARCH_SUSPEND_POSSIBLE
248 prompt "Processor sub-type selection"
254 # SH-2 Processor Support
256 config CPU_SUBTYPE_SH7619
257 bool "Support SH7619 processor"
259 select SYS_SUPPORTS_CMT
261 # SH-2A Processor Support
263 config CPU_SUBTYPE_SH7201
264 bool "Support SH7201 processor"
267 select SYS_SUPPORTS_MTU2
269 config CPU_SUBTYPE_SH7203
270 bool "Support SH7203 processor"
273 select SYS_SUPPORTS_CMT
274 select SYS_SUPPORTS_MTU2
276 config CPU_SUBTYPE_SH7206
277 bool "Support SH7206 processor"
279 select SYS_SUPPORTS_CMT
280 select SYS_SUPPORTS_MTU2
282 config CPU_SUBTYPE_SH7263
283 bool "Support SH7263 processor"
286 select SYS_SUPPORTS_CMT
287 select SYS_SUPPORTS_MTU2
289 config CPU_SUBTYPE_MXG
290 bool "Support MX-G processor"
292 select SYS_SUPPORTS_MTU2
294 Select MX-G if running on an R8A03022BG part.
296 # SH-3 Processor Support
298 config CPU_SUBTYPE_SH7705
299 bool "Support SH7705 processor"
302 config CPU_SUBTYPE_SH7706
303 bool "Support SH7706 processor"
306 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
308 config CPU_SUBTYPE_SH7707
309 bool "Support SH7707 processor"
312 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
314 config CPU_SUBTYPE_SH7708
315 bool "Support SH7708 processor"
318 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
319 if you have a 100 Mhz SH-3 HD6417708R CPU.
321 config CPU_SUBTYPE_SH7709
322 bool "Support SH7709 processor"
325 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
327 config CPU_SUBTYPE_SH7710
328 bool "Support SH7710 processor"
332 Select SH7710 if you have a SH3-DSP SH7710 CPU.
334 config CPU_SUBTYPE_SH7712
335 bool "Support SH7712 processor"
339 Select SH7712 if you have a SH3-DSP SH7712 CPU.
341 config CPU_SUBTYPE_SH7720
342 bool "Support SH7720 processor"
345 select SYS_SUPPORTS_CMT
347 Select SH7720 if you have a SH3-DSP SH7720 CPU.
349 config CPU_SUBTYPE_SH7721
350 bool "Support SH7721 processor"
353 select SYS_SUPPORTS_CMT
355 Select SH7721 if you have a SH3-DSP SH7721 CPU.
357 # SH-4 Processor Support
359 config CPU_SUBTYPE_SH7750
360 bool "Support SH7750 processor"
363 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
365 config CPU_SUBTYPE_SH7091
366 bool "Support SH7091 processor"
369 Select SH7091 if you have an SH-4 based Sega device (such as
370 the Dreamcast, Naomi, and Naomi 2).
372 config CPU_SUBTYPE_SH7750R
373 bool "Support SH7750R processor"
376 config CPU_SUBTYPE_SH7750S
377 bool "Support SH7750S processor"
380 config CPU_SUBTYPE_SH7751
381 bool "Support SH7751 processor"
384 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
385 or if you have a HD6417751R CPU.
387 config CPU_SUBTYPE_SH7751R
388 bool "Support SH7751R processor"
391 config CPU_SUBTYPE_SH7760
392 bool "Support SH7760 processor"
395 config CPU_SUBTYPE_SH4_202
396 bool "Support SH4-202 processor"
399 # SH-4A Processor Support
401 config CPU_SUBTYPE_SH7723
402 bool "Support SH7723 processor"
406 select ARCH_SPARSEMEM_ENABLE
407 select SYS_SUPPORTS_CMT
409 Select SH7723 if you have an SH-MobileR2 CPU.
411 config CPU_SUBTYPE_SH7724
412 bool "Support SH7724 processor"
416 select ARCH_SPARSEMEM_ENABLE
417 select SYS_SUPPORTS_CMT
419 Select SH7724 if you have an SH-MobileR2R CPU.
421 config CPU_SUBTYPE_SH7757
422 bool "Support SH7757 processor"
426 Select SH7757 if you have a SH4A SH7757 CPU.
428 config CPU_SUBTYPE_SH7763
429 bool "Support SH7763 processor"
432 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
434 config CPU_SUBTYPE_SH7770
435 bool "Support SH7770 processor"
438 config CPU_SUBTYPE_SH7780
439 bool "Support SH7780 processor"
442 config CPU_SUBTYPE_SH7785
443 bool "Support SH7785 processor"
446 select ARCH_SPARSEMEM_ENABLE
447 select SYS_SUPPORTS_NUMA
449 config CPU_SUBTYPE_SH7786
450 bool "Support SH7786 processor"
453 select CPU_HAS_PTEAEX
454 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
456 config CPU_SUBTYPE_SHX3
457 bool "Support SH-X3 processor"
460 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
462 # SH4AL-DSP Processor Support
464 config CPU_SUBTYPE_SH7343
465 bool "Support SH7343 processor"
468 select SYS_SUPPORTS_CMT
470 config CPU_SUBTYPE_SH7722
471 bool "Support SH7722 processor"
475 select ARCH_SPARSEMEM_ENABLE
476 select SYS_SUPPORTS_NUMA
477 select SYS_SUPPORTS_CMT
479 config CPU_SUBTYPE_SH7366
480 bool "Support SH7366 processor"
484 select ARCH_SPARSEMEM_ENABLE
485 select SYS_SUPPORTS_NUMA
486 select SYS_SUPPORTS_CMT
495 prompt "Processor sub-type selection"
497 # SH-5 Processor Support
499 config CPU_SUBTYPE_SH5_101
500 bool "Support SH5-101 processor"
503 config CPU_SUBTYPE_SH5_103
504 bool "Support SH5-103 processor"
511 source "arch/sh/mm/Kconfig"
513 source "arch/sh/Kconfig.cpu"
515 source "arch/sh/boards/Kconfig"
517 menu "Timer and clock configuration"
520 bool "TMU timer driver"
521 depends on SYS_SUPPORTS_TMU
524 This enables the build of the TMU timer driver.
527 bool "CMT timer driver"
528 depends on SYS_SUPPORTS_CMT
531 This enables build of the CMT timer driver.
534 bool "MTU2 timer driver"
535 depends on SYS_SUPPORTS_MTU2
538 This enables build of the MTU2 timer driver.
541 int "Peripheral clock frequency (in Hz)"
542 depends on SH_CLK_CPG_LEGACY
543 default "31250000" if CPU_SUBTYPE_SH7619
544 default "33333333" if CPU_SUBTYPE_SH7770 || \
545 CPU_SUBTYPE_SH7760 || \
546 CPU_SUBTYPE_SH7705 || \
547 CPU_SUBTYPE_SH7203 || \
548 CPU_SUBTYPE_SH7206 || \
549 CPU_SUBTYPE_SH7263 || \
551 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
552 default "66000000" if CPU_SUBTYPE_SH4_202
555 This option is used to specify the peripheral clock frequency.
556 This is necessary for determining the reference clock value on
557 platforms lacking an RTC.
562 config SH_CLK_CPG_LEGACY
563 depends on SH_CLK_CPG
564 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
568 int "CPU Mode Pin Setting"
570 default 6 if CPU_SUBTYPE_SH7206
571 default 5 if CPU_SUBTYPE_SH7619
574 MD2 - MD0 pin setting.
576 source "kernel/time/Kconfig"
580 menu "CPU Frequency scaling"
582 source "drivers/cpufreq/Kconfig"
585 tristate "SuperH CPU Frequency driver"
587 select CPU_FREQ_TABLE
589 This adds the cpufreq driver for SuperH. Any CPU that supports
590 clock rate rounding through the clock framework can use this
591 driver. While it will make the kernel slightly larger, this is
592 harmless for CPUs that don't support rate rounding. The driver
593 will also generate a notice in the boot log before disabling
594 itself if the CPU in question is not capable of rate rounding.
596 For details, take a look at <file:Documentation/cpu-freq>.
602 source "arch/sh/drivers/Kconfig"
606 menu "Kernel features"
608 source kernel/Kconfig.hz
611 bool "kexec system call (EXPERIMENTAL)"
612 depends on SUPERH32 && EXPERIMENTAL && MMU
614 kexec is a system call that implements the ability to shutdown your
615 current kernel, and to start another kernel. It is like a reboot
616 but it is independent of the system firmware. And like a reboot
617 you can start any kernel with it, not just Linux.
619 The name comes from the similarity to the exec system call.
621 It is an ongoing process to be certain the hardware in a machine
622 is properly shutdown, so do not be surprised if this code does not
623 initially work for you. It may help to enable device hotplugging
624 support. As of this writing the exact hardware interface is
625 strongly in flux, so no good recommendation can be made.
628 bool "kernel crash dumps (EXPERIMENTAL)"
629 depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP
631 Generate crash dump after being started by kexec.
632 This should be normally only set in special crash dump kernels
633 which are loaded in the main kernel with kexec-tools into
634 a specially reserved region and then later executed after
635 a crash by kdump/kexec. The crash dump kernel must be compiled
636 to a memory address not used by the main kernel using
639 For more details see Documentation/kdump/kdump.txt
642 bool "kexec jump (EXPERIMENTAL)"
643 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
645 Jump between original kernel and kexeced kernel and invoke
649 bool "Enable seccomp to safely compute untrusted bytecode"
652 This kernel feature is useful for number crunching applications
653 that may need to compute untrusted bytecode during their
654 execution. By using pipes or other transports made available to
655 the process as file descriptors supporting the read/write
656 syscalls, it's possible to isolate those applications in
657 their own address space using seccomp. Once seccomp is
658 enabled via prctl, it cannot be disabled and the task is only
659 allowed to execute a few safe syscalls defined by each seccomp
665 bool "Symmetric multi-processing support"
666 depends on SYS_SUPPORTS_SMP
667 select USE_GENERIC_SMP_HELPERS
669 This enables support for systems with more than one CPU. If you have
670 a system with only one CPU, like most personal computers, say N. If
671 you have a system with more than one CPU, say Y.
673 If you say N here, the kernel will run on single and multiprocessor
674 machines, but will use only one CPU of a multiprocessor machine. If
675 you say Y here, the kernel will run on many, but not all,
676 singleprocessor machines. On a singleprocessor machine, the kernel
677 will run faster if you say N here.
679 People using multiprocessor machines who say Y here should also say
680 Y to "Enhanced Real Time Clock Support", below.
682 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
683 available at <http://www.tldp.org/docs.html#howto>.
685 If you don't know what to do here, say N.
688 int "Maximum number of CPUs (2-32)"
691 default "4" if CPU_SUBTYPE_SHX3
694 This allows you to specify the maximum number of CPUs which this
695 kernel will support. The maximum supported value is 32 and the
696 minimum value which makes sense is 2.
698 This is purely to save memory - each supported CPU adds
699 approximately eight kilobytes to the kernel image.
702 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
703 depends on SMP && HOTPLUG && EXPERIMENTAL
705 Say Y here to experiment with turning CPUs off and on. CPUs
706 can be controlled through /sys/devices/system/cpu.
708 source "kernel/Kconfig.preempt"
712 depends on !SMP && SUPERH32
714 This enables support for gUSA (general UserSpace Atomicity).
715 This is the default implementation for both UP and non-ll/sc
716 CPUs, and is used by the libc, amongst others.
718 For additional information, design information can be found
719 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
721 This should only be disabled for special cases where alternate
722 atomicity implementations exist.
725 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
726 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
728 Enabling this option will allow the kernel to implement some
729 atomic operations using a software implementation of load-locked/
730 store-conditional (LLSC). On machines which do not have hardware
731 LLSC, this should be more efficient than the other alternative of
732 disabling interrupts around the atomic sequence.
734 source "drivers/sh/Kconfig"
740 config ZERO_PAGE_OFFSET
742 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
743 SH_7751_SOLUTION_ENGINE
744 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
745 default "0x00002000" if PAGE_SIZE_8KB
748 This sets the default offset of zero page.
750 config BOOT_LINK_OFFSET
752 default "0x00210000" if SH_SHMIN
753 default "0x00400000" if SH_CAYMAN
754 default "0x00810000" if SH_7780_SOLUTION_ENGINE
755 default "0x009e0000" if SH_TITAN
756 default "0x01800000" if SH_SDK7780
757 default "0x02000000" if SH_EDOSK7760
760 This option allows you to set the link address offset of the zImage.
761 This can be useful if you are on a board which has a small amount of
766 default "0x00001000" if PAGE_SIZE_4KB
767 default "0x00002000" if PAGE_SIZE_8KB
768 default "0x00004000" if PAGE_SIZE_16KB
769 default "0x00010000" if PAGE_SIZE_64KB
772 config ROMIMAGE_MMCIF
773 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
774 depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL
776 Say Y here to include experimental MMCIF loading code in
777 romImage. With this enabled it is possible to write the romImage
778 kernel image to an MMC card and boot the kernel straight from
779 the reset vector. At reset the processor Mask ROM will load the
780 first part of the romImage which in turn loads the rest the kernel
781 image to RAM using the MMCIF hardware block.
784 prompt "Kernel command line"
786 default CMDLINE_OVERWRITE
788 Setting this option allows the kernel command line arguments
791 config CMDLINE_OVERWRITE
792 bool "Overwrite bootloader kernel arguments"
794 Given string will overwrite any arguments passed in by
797 config CMDLINE_EXTEND
798 bool "Extend bootloader kernel arguments"
800 Given string will be concatenated with arguments passed in
806 string "Kernel command line arguments string"
807 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
808 default "console=ttySC1,115200"
815 tristate "SuperHyway Bus support"
816 depends on CPU_SUBTYPE_SH4_202
819 bool "Maple Bus support"
820 depends on SH_DREAMCAST
822 The Maple Bus is SEGA's serial communication bus for peripherals
823 on the Dreamcast. Without this bus support you won't be able to
824 get your Dreamcast keyboard etc to work, so most users
825 probably want to say 'Y' here, unless you are only using the
826 Dreamcast with a serial line terminal or a remote network
831 depends on SYS_SUPPORTS_PCI
834 Find out whether you have a PCI motherboard. PCI is the name of a
835 bus system, i.e. the way the CPU talks to the other stuff inside
836 your box. If you have PCI, say Y, otherwise N.
841 source "drivers/pci/pcie/Kconfig"
843 source "drivers/pci/Kconfig"
845 source "drivers/pcmcia/Kconfig"
847 source "drivers/pci/hotplug/Kconfig"
851 menu "Executable file formats"
853 source "fs/Kconfig.binfmt"
857 menu "Power management options (EXPERIMENTAL)"
858 depends on EXPERIMENTAL
860 source "kernel/power/Kconfig"
862 source "drivers/cpuidle/Kconfig"
868 source "drivers/Kconfig"
872 source "arch/sh/Kconfig.debug"
874 source "security/Kconfig"
876 source "crypto/Kconfig"
878 menuconfig VIRTUALIZATION
879 bool "Virtualization"
882 Say Y here to get to see options for using your Linux host to run other
883 operating systems inside virtual machines (guests).
884 This option alone does not add any kernel code.
886 If you say N, all options in this submenu will be skipped and disabled.
890 source drivers/virtio/Kconfig
892 endif # VIRTUALIZATION