5 select HAVE_IDE if HAS_IOPORT
7 select HAVE_MEMBLOCK_NODE_MAP
8 select ARCH_DISCARD_MEMBLOCK
10 select HAVE_GENERIC_DMA_COHERENT
11 select HAVE_ARCH_TRACEHOOK
12 select HAVE_DMA_API_DEBUG
14 select HAVE_PERF_EVENTS
15 select HAVE_DEBUG_BUGVERBOSE
16 select ARCH_HAVE_CUSTOM_GPIO_H
17 select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
18 select PERF_USE_VMALLOC
19 select HAVE_DEBUG_KMEMLEAK
20 select HAVE_KERNEL_GZIP
21 select HAVE_KERNEL_BZIP2
22 select HAVE_KERNEL_LZMA
24 select HAVE_KERNEL_LZO
26 select ARCH_WANT_IPC_PARSE_VERSION
27 select HAVE_SYSCALL_TRACEPOINTS
28 select HAVE_REGS_AND_STACK_ACCESS_API
29 select HAVE_GENERIC_HARDIRQS
30 select MAY_HAVE_SPARSE_IRQ
31 select IRQ_FORCED_THREADING
33 select GENERIC_ATOMIC64
34 select GENERIC_IRQ_SHOW
35 select GENERIC_SMP_IDLE_THREAD
36 select GENERIC_IDLE_LOOP
37 select GENERIC_IDLE_POLL_SETUP
38 select GENERIC_CLOCKEVENTS
39 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
40 select GENERIC_STRNCPY_FROM_USER
41 select GENERIC_STRNLEN_USER
42 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
43 select MODULES_USE_ELF_RELA
47 The SuperH is a RISC processor targeted for use in embedded systems
48 and consumer electronics; it was also used in the Sega Dreamcast
49 gaming console. The SuperH port has a home page at
50 <http://www.linux-sh.org/>.
55 select HAVE_KRETPROBES
56 select HAVE_IOREMAP_PROT if MMU && !X2TLB
57 select HAVE_FUNCTION_TRACER
58 select HAVE_FTRACE_MCOUNT_RECORD
59 select HAVE_DYNAMIC_FTRACE
60 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
61 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
62 select ARCH_WANT_IPC_PARSE_VERSION
63 select HAVE_FUNCTION_GRAPH_TRACER
65 select HAVE_HW_BREAKPOINT
66 select HAVE_MIXED_BREAKPOINTS_REGS
68 select ARCH_HIBERNATION_POSSIBLE if MMU
72 def_bool ARCH = "sh64"
77 default "arch/sh/configs/shx3_defconfig" if SUPERH32
78 default "arch/sh/configs/cayman_defconfig" if SUPERH64
80 config RWSEM_GENERIC_SPINLOCK
83 config RWSEM_XCHGADD_ALGORITHM
88 depends on BUG && SUPERH32
94 config GENERIC_HWEIGHT
100 config GENERIC_CALIBRATE_DELAY
103 config GENERIC_LOCKBREAK
105 depends on SMP && PREEMPT
107 config ARCH_SUSPEND_POSSIBLE
110 config ARCH_HIBERNATION_POSSIBLE
113 config SYS_SUPPORTS_APM_EMULATION
115 select ARCH_SUSPEND_POSSIBLE
117 config SYS_SUPPORTS_HUGETLBFS
120 config SYS_SUPPORTS_SMP
123 config SYS_SUPPORTS_NUMA
126 config SYS_SUPPORTS_PCI
129 config SYS_SUPPORTS_CMT
132 config SYS_SUPPORTS_MTU2
135 config SYS_SUPPORTS_TMU
138 config STACKTRACE_SUPPORT
141 config LOCKDEP_SUPPORT
144 config HAVE_LATENCYTOP_SUPPORT
147 config ARCH_HAS_ILOG2_U32
150 config ARCH_HAS_ILOG2_U64
155 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
156 !SH_HP6XX && !SH_SOLUTION_ENGINE
167 config DMA_NONCOHERENT
168 def_bool !DMA_COHERENT
170 config NEED_DMA_MAP_STATE
171 def_bool DMA_NONCOHERENT
173 config NEED_SG_DMA_LENGTH
176 source "init/Kconfig"
178 source "kernel/Kconfig.freezer"
191 select UNCACHED_MAPPING
195 select CPU_HAS_INTEVT
197 select SYS_SUPPORTS_TMU
201 select CPU_HAS_INTEVT
203 select CPU_HAS_FPU if !CPU_SH4AL_DSP
204 select SYS_SUPPORTS_TMU
205 select SYS_SUPPORTS_HUGETLBFS if MMU
219 select SYS_SUPPORTS_TMU
220 select SYS_SUPPORTS_HUGETLBFS if MMU
228 select SYS_SUPPORTS_SMP
229 select SYS_SUPPORTS_NUMA
233 select ARCH_SUSPEND_POSSIBLE
238 depends on CPU_SH4 || CPU_SH4A
245 prompt "Processor sub-type selection"
251 # SH-2 Processor Support
253 config CPU_SUBTYPE_SH7619
254 bool "Support SH7619 processor"
256 select SYS_SUPPORTS_CMT
258 # SH-2A Processor Support
260 config CPU_SUBTYPE_SH7201
261 bool "Support SH7201 processor"
264 select SYS_SUPPORTS_MTU2
266 config CPU_SUBTYPE_SH7203
267 bool "Support SH7203 processor"
270 select SYS_SUPPORTS_CMT
271 select SYS_SUPPORTS_MTU2
272 select ARCH_WANT_OPTIONAL_GPIOLIB
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_SH7264
289 bool "Support SH7264 processor"
292 select SYS_SUPPORTS_CMT
293 select SYS_SUPPORTS_MTU2
296 config CPU_SUBTYPE_SH7269
297 bool "Support SH7269 processor"
300 select SYS_SUPPORTS_CMT
301 select SYS_SUPPORTS_MTU2
304 config CPU_SUBTYPE_MXG
305 bool "Support MX-G processor"
307 select SYS_SUPPORTS_MTU2
309 Select MX-G if running on an R8A03022BG part.
311 # SH-3 Processor Support
313 config CPU_SUBTYPE_SH7705
314 bool "Support SH7705 processor"
317 config CPU_SUBTYPE_SH7706
318 bool "Support SH7706 processor"
321 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
323 config CPU_SUBTYPE_SH7707
324 bool "Support SH7707 processor"
327 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
329 config CPU_SUBTYPE_SH7708
330 bool "Support SH7708 processor"
333 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
334 if you have a 100 Mhz SH-3 HD6417708R CPU.
336 config CPU_SUBTYPE_SH7709
337 bool "Support SH7709 processor"
340 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
342 config CPU_SUBTYPE_SH7710
343 bool "Support SH7710 processor"
347 Select SH7710 if you have a SH3-DSP SH7710 CPU.
349 config CPU_SUBTYPE_SH7712
350 bool "Support SH7712 processor"
354 Select SH7712 if you have a SH3-DSP SH7712 CPU.
356 config CPU_SUBTYPE_SH7720
357 bool "Support SH7720 processor"
360 select SYS_SUPPORTS_CMT
361 select ARCH_WANT_OPTIONAL_GPIOLIB
362 select USB_ARCH_HAS_OHCI
363 select USB_OHCI_SH if USB_OHCI_HCD
366 Select SH7720 if you have a SH3-DSP SH7720 CPU.
368 config CPU_SUBTYPE_SH7721
369 bool "Support SH7721 processor"
372 select SYS_SUPPORTS_CMT
373 select USB_ARCH_HAS_OHCI
374 select USB_OHCI_SH if USB_OHCI_HCD
376 Select SH7721 if you have a SH3-DSP SH7721 CPU.
378 # SH-4 Processor Support
380 config CPU_SUBTYPE_SH7750
381 bool "Support SH7750 processor"
384 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
386 config CPU_SUBTYPE_SH7091
387 bool "Support SH7091 processor"
390 Select SH7091 if you have an SH-4 based Sega device (such as
391 the Dreamcast, Naomi, and Naomi 2).
393 config CPU_SUBTYPE_SH7750R
394 bool "Support SH7750R processor"
397 config CPU_SUBTYPE_SH7750S
398 bool "Support SH7750S processor"
401 config CPU_SUBTYPE_SH7751
402 bool "Support SH7751 processor"
405 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
406 or if you have a HD6417751R CPU.
408 config CPU_SUBTYPE_SH7751R
409 bool "Support SH7751R processor"
412 config CPU_SUBTYPE_SH7760
413 bool "Support SH7760 processor"
416 config CPU_SUBTYPE_SH4_202
417 bool "Support SH4-202 processor"
420 # SH-4A Processor Support
422 config CPU_SUBTYPE_SH7723
423 bool "Support SH7723 processor"
427 select ARCH_SPARSEMEM_ENABLE
428 select SYS_SUPPORTS_CMT
429 select ARCH_WANT_OPTIONAL_GPIOLIB
432 Select SH7723 if you have an SH-MobileR2 CPU.
434 config CPU_SUBTYPE_SH7724
435 bool "Support SH7724 processor"
439 select ARCH_SPARSEMEM_ENABLE
440 select SYS_SUPPORTS_CMT
441 select ARCH_WANT_OPTIONAL_GPIOLIB
444 Select SH7724 if you have an SH-MobileR2R CPU.
446 config CPU_SUBTYPE_SH7734
447 bool "Support SH7734 processor"
450 select ARCH_WANT_OPTIONAL_GPIOLIB
451 select USB_ARCH_HAS_OHCI
452 select USB_ARCH_HAS_EHCI
455 Select SH7734 if you have a SH4A SH7734 CPU.
457 config CPU_SUBTYPE_SH7757
458 bool "Support SH7757 processor"
461 select ARCH_WANT_OPTIONAL_GPIOLIB
462 select USB_ARCH_HAS_OHCI
463 select USB_ARCH_HAS_EHCI
466 Select SH7757 if you have a SH4A SH7757 CPU.
468 config CPU_SUBTYPE_SH7763
469 bool "Support SH7763 processor"
471 select USB_ARCH_HAS_OHCI
472 select USB_OHCI_SH if USB_OHCI_HCD
474 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
476 config CPU_SUBTYPE_SH7770
477 bool "Support SH7770 processor"
480 config CPU_SUBTYPE_SH7780
481 bool "Support SH7780 processor"
484 config CPU_SUBTYPE_SH7785
485 bool "Support SH7785 processor"
488 select ARCH_SPARSEMEM_ENABLE
489 select SYS_SUPPORTS_NUMA
490 select ARCH_WANT_OPTIONAL_GPIOLIB
493 config CPU_SUBTYPE_SH7786
494 bool "Support SH7786 processor"
497 select CPU_HAS_PTEAEX
498 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
499 select ARCH_WANT_OPTIONAL_GPIOLIB
500 select USB_ARCH_HAS_OHCI
501 select USB_OHCI_SH if USB_OHCI_HCD
502 select USB_ARCH_HAS_EHCI
503 select USB_EHCI_SH if USB_EHCI_HCD
506 config CPU_SUBTYPE_SHX3
507 bool "Support SH-X3 processor"
510 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
511 select ARCH_REQUIRE_GPIOLIB
514 # SH4AL-DSP Processor Support
516 config CPU_SUBTYPE_SH7343
517 bool "Support SH7343 processor"
520 select SYS_SUPPORTS_CMT
522 config CPU_SUBTYPE_SH7722
523 bool "Support SH7722 processor"
527 select ARCH_SPARSEMEM_ENABLE
528 select SYS_SUPPORTS_NUMA
529 select SYS_SUPPORTS_CMT
530 select ARCH_WANT_OPTIONAL_GPIOLIB
533 config CPU_SUBTYPE_SH7366
534 bool "Support SH7366 processor"
538 select ARCH_SPARSEMEM_ENABLE
539 select SYS_SUPPORTS_NUMA
540 select SYS_SUPPORTS_CMT
549 prompt "Processor sub-type selection"
551 # SH-5 Processor Support
553 config CPU_SUBTYPE_SH5_101
554 bool "Support SH5-101 processor"
557 config CPU_SUBTYPE_SH5_103
558 bool "Support SH5-103 processor"
565 source "arch/sh/mm/Kconfig"
567 source "arch/sh/Kconfig.cpu"
569 source "arch/sh/boards/Kconfig"
571 menu "Timer and clock configuration"
574 bool "TMU timer driver"
575 depends on SYS_SUPPORTS_TMU
578 This enables the build of the TMU timer driver.
581 bool "CMT timer driver"
582 depends on SYS_SUPPORTS_CMT
585 This enables build of the CMT timer driver.
588 bool "MTU2 timer driver"
589 depends on SYS_SUPPORTS_MTU2
592 This enables build of the MTU2 timer driver.
595 int "Peripheral clock frequency (in Hz)"
596 depends on SH_CLK_CPG_LEGACY
597 default "31250000" if CPU_SUBTYPE_SH7619
598 default "33333333" if CPU_SUBTYPE_SH7770 || \
599 CPU_SUBTYPE_SH7760 || \
600 CPU_SUBTYPE_SH7705 || \
601 CPU_SUBTYPE_SH7203 || \
602 CPU_SUBTYPE_SH7206 || \
603 CPU_SUBTYPE_SH7263 || \
605 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
606 default "66000000" if CPU_SUBTYPE_SH4_202
609 This option is used to specify the peripheral clock frequency.
610 This is necessary for determining the reference clock value on
611 platforms lacking an RTC.
616 config SH_CLK_CPG_LEGACY
617 depends on SH_CLK_CPG
618 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
619 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
620 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
625 menu "CPU Frequency scaling"
627 source "drivers/cpufreq/Kconfig"
630 tristate "SuperH CPU Frequency driver"
632 select CPU_FREQ_TABLE
634 This adds the cpufreq driver for SuperH. Any CPU that supports
635 clock rate rounding through the clock framework can use this
636 driver. While it will make the kernel slightly larger, this is
637 harmless for CPUs that don't support rate rounding. The driver
638 will also generate a notice in the boot log before disabling
639 itself if the CPU in question is not capable of rate rounding.
641 For details, take a look at <file:Documentation/cpu-freq>.
647 source "arch/sh/drivers/Kconfig"
651 menu "Kernel features"
653 source kernel/Kconfig.hz
656 bool "kexec system call (EXPERIMENTAL)"
657 depends on SUPERH32 && MMU
659 kexec is a system call that implements the ability to shutdown your
660 current kernel, and to start another kernel. It is like a reboot
661 but it is independent of the system firmware. And like a reboot
662 you can start any kernel with it, not just Linux.
664 The name comes from the similarity to the exec system call.
666 It is an ongoing process to be certain the hardware in a machine
667 is properly shutdown, so do not be surprised if this code does not
668 initially work for you. It may help to enable device hotplugging
669 support. As of this writing the exact hardware interface is
670 strongly in flux, so no good recommendation can be made.
673 bool "kernel crash dumps (EXPERIMENTAL)"
674 depends on SUPERH32 && BROKEN_ON_SMP
676 Generate crash dump after being started by kexec.
677 This should be normally only set in special crash dump kernels
678 which are loaded in the main kernel with kexec-tools into
679 a specially reserved region and then later executed after
680 a crash by kdump/kexec. The crash dump kernel must be compiled
681 to a memory address not used by the main kernel using
684 For more details see Documentation/kdump/kdump.txt
687 bool "kexec jump (EXPERIMENTAL)"
688 depends on SUPERH32 && KEXEC && HIBERNATION
690 Jump between original kernel and kexeced kernel and invoke
693 config PHYSICAL_START
694 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
697 This gives the physical address where the kernel is loaded
698 and is ordinarily the same as MEMORY_START.
700 Different values are primarily used in the case of kexec on panic
701 where the fail safe kernel needs to run at a different address
702 than the panic-ed kernel.
705 bool "Enable seccomp to safely compute untrusted bytecode"
708 This kernel feature is useful for number crunching applications
709 that may need to compute untrusted bytecode during their
710 execution. By using pipes or other transports made available to
711 the process as file descriptors supporting the read/write
712 syscalls, it's possible to isolate those applications in
713 their own address space using seccomp. Once seccomp is
714 enabled via prctl, it cannot be disabled and the task is only
715 allowed to execute a few safe syscalls defined by each seccomp
720 config CC_STACKPROTECTOR
721 bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
724 This option turns on the -fstack-protector GCC feature. This
725 feature puts, at the beginning of functions, a canary value on
726 the stack just before the return address, and validates
727 the value just before actually returning. Stack based buffer
728 overflows (that need to overwrite this return address) now also
729 overwrite the canary, which gets detected and the attack is then
730 neutralized via a kernel panic.
732 This feature requires gcc version 4.2 or above.
735 bool "Symmetric multi-processing support"
736 depends on SYS_SUPPORTS_SMP
737 select USE_GENERIC_SMP_HELPERS
739 This enables support for systems with more than one CPU. If you have
740 a system with only one CPU, like most personal computers, say N. If
741 you have a system with more than one CPU, say Y.
743 If you say N here, the kernel will run on single and multiprocessor
744 machines, but will use only one CPU of a multiprocessor machine. If
745 you say Y here, the kernel will run on many, but not all,
746 singleprocessor machines. On a singleprocessor machine, the kernel
747 will run faster if you say N here.
749 People using multiprocessor machines who say Y here should also say
750 Y to "Enhanced Real Time Clock Support", below.
752 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
753 available at <http://www.tldp.org/docs.html#howto>.
755 If you don't know what to do here, say N.
758 int "Maximum number of CPUs (2-32)"
761 default "4" if CPU_SUBTYPE_SHX3
764 This allows you to specify the maximum number of CPUs which this
765 kernel will support. The maximum supported value is 32 and the
766 minimum value which makes sense is 2.
768 This is purely to save memory - each supported CPU adds
769 approximately eight kilobytes to the kernel image.
772 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
773 depends on SMP && HOTPLUG
775 Say Y here to experiment with turning CPUs off and on. CPUs
776 can be controlled through /sys/devices/system/cpu.
778 source "kernel/Kconfig.preempt"
782 depends on !SMP && SUPERH32
784 This enables support for gUSA (general UserSpace Atomicity).
785 This is the default implementation for both UP and non-ll/sc
786 CPUs, and is used by the libc, amongst others.
788 For additional information, design information can be found
789 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
791 This should only be disabled for special cases where alternate
792 atomicity implementations exist.
795 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
796 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
798 Enabling this option will allow the kernel to implement some
799 atomic operations using a software implementation of load-locked/
800 store-conditional (LLSC). On machines which do not have hardware
801 LLSC, this should be more efficient than the other alternative of
802 disabling interrupts around the atomic sequence.
804 config HW_PERF_EVENTS
805 bool "Enable hardware performance counter support for perf events"
806 depends on PERF_EVENTS && CPU_HAS_PMU
809 Enable hardware performance counter support for perf events. If
810 disabled, perf events will use software events only.
812 source "drivers/sh/Kconfig"
818 config ZERO_PAGE_OFFSET
820 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
821 SH_7751_SOLUTION_ENGINE
822 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
823 default "0x00002000" if PAGE_SIZE_8KB
826 This sets the default offset of zero page.
828 config BOOT_LINK_OFFSET
830 default "0x00210000" if SH_SHMIN
831 default "0x00400000" if SH_CAYMAN
832 default "0x00810000" if SH_7780_SOLUTION_ENGINE
833 default "0x009e0000" if SH_TITAN
834 default "0x01800000" if SH_SDK7780
835 default "0x02000000" if SH_EDOSK7760
838 This option allows you to set the link address offset of the zImage.
839 This can be useful if you are on a board which has a small amount of
844 default "0x00001000" if PAGE_SIZE_4KB
845 default "0x00002000" if PAGE_SIZE_8KB
846 default "0x00004000" if PAGE_SIZE_16KB
847 default "0x00010000" if PAGE_SIZE_64KB
850 config ROMIMAGE_MMCIF
851 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
852 depends on CPU_SUBTYPE_SH7724
854 Say Y here to include experimental MMCIF loading code in
855 romImage. With this enabled it is possible to write the romImage
856 kernel image to an MMC card and boot the kernel straight from
857 the reset vector. At reset the processor Mask ROM will load the
858 first part of the romImage which in turn loads the rest the kernel
859 image to RAM using the MMCIF hardware block.
862 prompt "Kernel command line"
864 default CMDLINE_OVERWRITE
866 Setting this option allows the kernel command line arguments
869 config CMDLINE_OVERWRITE
870 bool "Overwrite bootloader kernel arguments"
872 Given string will overwrite any arguments passed in by
875 config CMDLINE_EXTEND
876 bool "Extend bootloader kernel arguments"
878 Given string will be concatenated with arguments passed in
884 string "Kernel command line arguments string"
885 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
886 default "console=ttySC1,115200"
893 tristate "SuperHyway Bus support"
894 depends on CPU_SUBTYPE_SH4_202
897 bool "Maple Bus support"
898 depends on SH_DREAMCAST
900 The Maple Bus is SEGA's serial communication bus for peripherals
901 on the Dreamcast. Without this bus support you won't be able to
902 get your Dreamcast keyboard etc to work, so most users
903 probably want to say 'Y' here, unless you are only using the
904 Dreamcast with a serial line terminal or a remote network
909 depends on SYS_SUPPORTS_PCI
911 select GENERIC_PCI_IOMAP
912 select NO_GENERIC_PCI_IOPORT_MAP
914 Find out whether you have a PCI motherboard. PCI is the name of a
915 bus system, i.e. the way the CPU talks to the other stuff inside
916 your box. If you have PCI, say Y, otherwise N.
921 source "drivers/pci/pcie/Kconfig"
923 source "drivers/pci/Kconfig"
925 source "drivers/pcmcia/Kconfig"
927 source "drivers/pci/hotplug/Kconfig"
931 menu "Executable file formats"
933 source "fs/Kconfig.binfmt"
937 menu "Power management options (EXPERIMENTAL)"
939 source "kernel/power/Kconfig"
941 source "drivers/cpuidle/Kconfig"
947 source "drivers/Kconfig"
951 source "arch/sh/Kconfig.debug"
953 source "security/Kconfig"
955 source "crypto/Kconfig"