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_POLL_SETUP
37 select GENERIC_CLOCKEVENTS
38 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
39 select GENERIC_STRNCPY_FROM_USER
40 select GENERIC_STRNLEN_USER
41 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
42 select MODULES_USE_ELF_RELA
46 The SuperH is a RISC processor targeted for use in embedded systems
47 and consumer electronics; it was also used in the Sega Dreamcast
48 gaming console. The SuperH port has a home page at
49 <http://www.linux-sh.org/>.
54 select HAVE_KRETPROBES
55 select HAVE_IOREMAP_PROT if MMU && !X2TLB
56 select HAVE_FUNCTION_TRACER
57 select HAVE_FTRACE_MCOUNT_RECORD
58 select HAVE_DYNAMIC_FTRACE
59 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
60 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
61 select ARCH_WANT_IPC_PARSE_VERSION
62 select HAVE_FUNCTION_GRAPH_TRACER
64 select HAVE_HW_BREAKPOINT
65 select HAVE_MIXED_BREAKPOINTS_REGS
67 select ARCH_HIBERNATION_POSSIBLE if MMU
71 def_bool ARCH = "sh64"
76 default "arch/sh/configs/shx3_defconfig" if SUPERH32
77 default "arch/sh/configs/cayman_defconfig" if SUPERH64
79 config RWSEM_GENERIC_SPINLOCK
82 config RWSEM_XCHGADD_ALGORITHM
87 depends on BUG && SUPERH32
93 config GENERIC_HWEIGHT
99 config GENERIC_CALIBRATE_DELAY
102 config GENERIC_LOCKBREAK
104 depends on SMP && PREEMPT
106 config ARCH_SUSPEND_POSSIBLE
109 config ARCH_HIBERNATION_POSSIBLE
112 config SYS_SUPPORTS_APM_EMULATION
114 select ARCH_SUSPEND_POSSIBLE
116 config SYS_SUPPORTS_HUGETLBFS
119 config SYS_SUPPORTS_SMP
122 config SYS_SUPPORTS_NUMA
125 config SYS_SUPPORTS_PCI
128 config SYS_SUPPORTS_CMT
131 config SYS_SUPPORTS_MTU2
134 config SYS_SUPPORTS_TMU
137 config STACKTRACE_SUPPORT
140 config LOCKDEP_SUPPORT
143 config HAVE_LATENCYTOP_SUPPORT
146 config ARCH_HAS_ILOG2_U32
149 config ARCH_HAS_ILOG2_U64
154 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
155 !SH_HP6XX && !SH_SOLUTION_ENGINE
166 config DMA_NONCOHERENT
167 def_bool !DMA_COHERENT
169 config NEED_DMA_MAP_STATE
170 def_bool DMA_NONCOHERENT
172 config NEED_SG_DMA_LENGTH
175 source "init/Kconfig"
177 source "kernel/Kconfig.freezer"
190 select UNCACHED_MAPPING
194 select CPU_HAS_INTEVT
196 select SYS_SUPPORTS_TMU
200 select CPU_HAS_INTEVT
202 select CPU_HAS_FPU if !CPU_SH4AL_DSP
203 select SYS_SUPPORTS_TMU
204 select SYS_SUPPORTS_HUGETLBFS if MMU
218 select SYS_SUPPORTS_TMU
219 select SYS_SUPPORTS_HUGETLBFS if MMU
227 select SYS_SUPPORTS_SMP
228 select SYS_SUPPORTS_NUMA
232 select ARCH_SUSPEND_POSSIBLE
237 depends on CPU_SH4 || CPU_SH4A
244 prompt "Processor sub-type selection"
250 # SH-2 Processor Support
252 config CPU_SUBTYPE_SH7619
253 bool "Support SH7619 processor"
255 select SYS_SUPPORTS_CMT
257 # SH-2A Processor Support
259 config CPU_SUBTYPE_SH7201
260 bool "Support SH7201 processor"
263 select SYS_SUPPORTS_MTU2
265 config CPU_SUBTYPE_SH7203
266 bool "Support SH7203 processor"
269 select SYS_SUPPORTS_CMT
270 select SYS_SUPPORTS_MTU2
271 select ARCH_WANT_OPTIONAL_GPIOLIB
274 config CPU_SUBTYPE_SH7206
275 bool "Support SH7206 processor"
277 select SYS_SUPPORTS_CMT
278 select SYS_SUPPORTS_MTU2
280 config CPU_SUBTYPE_SH7263
281 bool "Support SH7263 processor"
284 select SYS_SUPPORTS_CMT
285 select SYS_SUPPORTS_MTU2
287 config CPU_SUBTYPE_SH7264
288 bool "Support SH7264 processor"
291 select SYS_SUPPORTS_CMT
292 select SYS_SUPPORTS_MTU2
295 config CPU_SUBTYPE_SH7269
296 bool "Support SH7269 processor"
299 select SYS_SUPPORTS_CMT
300 select SYS_SUPPORTS_MTU2
303 config CPU_SUBTYPE_MXG
304 bool "Support MX-G processor"
306 select SYS_SUPPORTS_MTU2
308 Select MX-G if running on an R8A03022BG part.
310 # SH-3 Processor Support
312 config CPU_SUBTYPE_SH7705
313 bool "Support SH7705 processor"
316 config CPU_SUBTYPE_SH7706
317 bool "Support SH7706 processor"
320 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
322 config CPU_SUBTYPE_SH7707
323 bool "Support SH7707 processor"
326 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
328 config CPU_SUBTYPE_SH7708
329 bool "Support SH7708 processor"
332 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
333 if you have a 100 Mhz SH-3 HD6417708R CPU.
335 config CPU_SUBTYPE_SH7709
336 bool "Support SH7709 processor"
339 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
341 config CPU_SUBTYPE_SH7710
342 bool "Support SH7710 processor"
346 Select SH7710 if you have a SH3-DSP SH7710 CPU.
348 config CPU_SUBTYPE_SH7712
349 bool "Support SH7712 processor"
353 Select SH7712 if you have a SH3-DSP SH7712 CPU.
355 config CPU_SUBTYPE_SH7720
356 bool "Support SH7720 processor"
359 select SYS_SUPPORTS_CMT
360 select ARCH_WANT_OPTIONAL_GPIOLIB
361 select USB_ARCH_HAS_OHCI
362 select USB_OHCI_SH if USB_OHCI_HCD
365 Select SH7720 if you have a SH3-DSP SH7720 CPU.
367 config CPU_SUBTYPE_SH7721
368 bool "Support SH7721 processor"
371 select SYS_SUPPORTS_CMT
372 select USB_ARCH_HAS_OHCI
373 select USB_OHCI_SH if USB_OHCI_HCD
375 Select SH7721 if you have a SH3-DSP SH7721 CPU.
377 # SH-4 Processor Support
379 config CPU_SUBTYPE_SH7750
380 bool "Support SH7750 processor"
383 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
385 config CPU_SUBTYPE_SH7091
386 bool "Support SH7091 processor"
389 Select SH7091 if you have an SH-4 based Sega device (such as
390 the Dreamcast, Naomi, and Naomi 2).
392 config CPU_SUBTYPE_SH7750R
393 bool "Support SH7750R processor"
396 config CPU_SUBTYPE_SH7750S
397 bool "Support SH7750S processor"
400 config CPU_SUBTYPE_SH7751
401 bool "Support SH7751 processor"
404 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
405 or if you have a HD6417751R CPU.
407 config CPU_SUBTYPE_SH7751R
408 bool "Support SH7751R processor"
411 config CPU_SUBTYPE_SH7760
412 bool "Support SH7760 processor"
415 config CPU_SUBTYPE_SH4_202
416 bool "Support SH4-202 processor"
419 # SH-4A Processor Support
421 config CPU_SUBTYPE_SH7723
422 bool "Support SH7723 processor"
426 select ARCH_SPARSEMEM_ENABLE
427 select SYS_SUPPORTS_CMT
428 select ARCH_WANT_OPTIONAL_GPIOLIB
431 Select SH7723 if you have an SH-MobileR2 CPU.
433 config CPU_SUBTYPE_SH7724
434 bool "Support SH7724 processor"
438 select ARCH_SPARSEMEM_ENABLE
439 select SYS_SUPPORTS_CMT
440 select ARCH_WANT_OPTIONAL_GPIOLIB
443 Select SH7724 if you have an SH-MobileR2R CPU.
445 config CPU_SUBTYPE_SH7734
446 bool "Support SH7734 processor"
449 select ARCH_WANT_OPTIONAL_GPIOLIB
450 select USB_ARCH_HAS_OHCI
451 select USB_ARCH_HAS_EHCI
454 Select SH7734 if you have a SH4A SH7734 CPU.
456 config CPU_SUBTYPE_SH7757
457 bool "Support SH7757 processor"
460 select ARCH_WANT_OPTIONAL_GPIOLIB
461 select USB_ARCH_HAS_OHCI
462 select USB_ARCH_HAS_EHCI
465 Select SH7757 if you have a SH4A SH7757 CPU.
467 config CPU_SUBTYPE_SH7763
468 bool "Support SH7763 processor"
470 select USB_ARCH_HAS_OHCI
471 select USB_OHCI_SH if USB_OHCI_HCD
473 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
475 config CPU_SUBTYPE_SH7770
476 bool "Support SH7770 processor"
479 config CPU_SUBTYPE_SH7780
480 bool "Support SH7780 processor"
483 config CPU_SUBTYPE_SH7785
484 bool "Support SH7785 processor"
487 select ARCH_SPARSEMEM_ENABLE
488 select SYS_SUPPORTS_NUMA
489 select ARCH_WANT_OPTIONAL_GPIOLIB
492 config CPU_SUBTYPE_SH7786
493 bool "Support SH7786 processor"
496 select CPU_HAS_PTEAEX
497 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
498 select ARCH_WANT_OPTIONAL_GPIOLIB
499 select USB_ARCH_HAS_OHCI
500 select USB_OHCI_SH if USB_OHCI_HCD
501 select USB_ARCH_HAS_EHCI
502 select USB_EHCI_SH if USB_EHCI_HCD
505 config CPU_SUBTYPE_SHX3
506 bool "Support SH-X3 processor"
509 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
510 select ARCH_REQUIRE_GPIOLIB
513 # SH4AL-DSP Processor Support
515 config CPU_SUBTYPE_SH7343
516 bool "Support SH7343 processor"
519 select SYS_SUPPORTS_CMT
521 config CPU_SUBTYPE_SH7722
522 bool "Support SH7722 processor"
526 select ARCH_SPARSEMEM_ENABLE
527 select SYS_SUPPORTS_NUMA
528 select SYS_SUPPORTS_CMT
529 select ARCH_WANT_OPTIONAL_GPIOLIB
532 config CPU_SUBTYPE_SH7366
533 bool "Support SH7366 processor"
537 select ARCH_SPARSEMEM_ENABLE
538 select SYS_SUPPORTS_NUMA
539 select SYS_SUPPORTS_CMT
548 prompt "Processor sub-type selection"
550 # SH-5 Processor Support
552 config CPU_SUBTYPE_SH5_101
553 bool "Support SH5-101 processor"
556 config CPU_SUBTYPE_SH5_103
557 bool "Support SH5-103 processor"
564 source "arch/sh/mm/Kconfig"
566 source "arch/sh/Kconfig.cpu"
568 source "arch/sh/boards/Kconfig"
570 menu "Timer and clock configuration"
573 bool "TMU timer driver"
574 depends on SYS_SUPPORTS_TMU
577 This enables the build of the TMU timer driver.
580 bool "CMT timer driver"
581 depends on SYS_SUPPORTS_CMT
584 This enables build of the CMT timer driver.
587 bool "MTU2 timer driver"
588 depends on SYS_SUPPORTS_MTU2
591 This enables build of the MTU2 timer driver.
594 int "Peripheral clock frequency (in Hz)"
595 depends on SH_CLK_CPG_LEGACY
596 default "31250000" if CPU_SUBTYPE_SH7619
597 default "33333333" if CPU_SUBTYPE_SH7770 || \
598 CPU_SUBTYPE_SH7760 || \
599 CPU_SUBTYPE_SH7705 || \
600 CPU_SUBTYPE_SH7203 || \
601 CPU_SUBTYPE_SH7206 || \
602 CPU_SUBTYPE_SH7263 || \
604 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
605 default "66000000" if CPU_SUBTYPE_SH4_202
608 This option is used to specify the peripheral clock frequency.
609 This is necessary for determining the reference clock value on
610 platforms lacking an RTC.
615 config SH_CLK_CPG_LEGACY
616 depends on SH_CLK_CPG
617 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
618 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
619 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
624 menu "CPU Frequency scaling"
626 source "drivers/cpufreq/Kconfig"
629 tristate "SuperH CPU Frequency driver"
631 select CPU_FREQ_TABLE
633 This adds the cpufreq driver for SuperH. Any CPU that supports
634 clock rate rounding through the clock framework can use this
635 driver. While it will make the kernel slightly larger, this is
636 harmless for CPUs that don't support rate rounding. The driver
637 will also generate a notice in the boot log before disabling
638 itself if the CPU in question is not capable of rate rounding.
640 For details, take a look at <file:Documentation/cpu-freq>.
646 source "arch/sh/drivers/Kconfig"
650 menu "Kernel features"
652 source kernel/Kconfig.hz
655 bool "kexec system call (EXPERIMENTAL)"
656 depends on SUPERH32 && MMU
658 kexec is a system call that implements the ability to shutdown your
659 current kernel, and to start another kernel. It is like a reboot
660 but it is independent of the system firmware. And like a reboot
661 you can start any kernel with it, not just Linux.
663 The name comes from the similarity to the exec system call.
665 It is an ongoing process to be certain the hardware in a machine
666 is properly shutdown, so do not be surprised if this code does not
667 initially work for you. It may help to enable device hotplugging
668 support. As of this writing the exact hardware interface is
669 strongly in flux, so no good recommendation can be made.
672 bool "kernel crash dumps (EXPERIMENTAL)"
673 depends on SUPERH32 && BROKEN_ON_SMP
675 Generate crash dump after being started by kexec.
676 This should be normally only set in special crash dump kernels
677 which are loaded in the main kernel with kexec-tools into
678 a specially reserved region and then later executed after
679 a crash by kdump/kexec. The crash dump kernel must be compiled
680 to a memory address not used by the main kernel using
683 For more details see Documentation/kdump/kdump.txt
686 bool "kexec jump (EXPERIMENTAL)"
687 depends on SUPERH32 && KEXEC && HIBERNATION
689 Jump between original kernel and kexeced kernel and invoke
692 config PHYSICAL_START
693 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
696 This gives the physical address where the kernel is loaded
697 and is ordinarily the same as MEMORY_START.
699 Different values are primarily used in the case of kexec on panic
700 where the fail safe kernel needs to run at a different address
701 than the panic-ed kernel.
704 bool "Enable seccomp to safely compute untrusted bytecode"
707 This kernel feature is useful for number crunching applications
708 that may need to compute untrusted bytecode during their
709 execution. By using pipes or other transports made available to
710 the process as file descriptors supporting the read/write
711 syscalls, it's possible to isolate those applications in
712 their own address space using seccomp. Once seccomp is
713 enabled via prctl, it cannot be disabled and the task is only
714 allowed to execute a few safe syscalls defined by each seccomp
719 config CC_STACKPROTECTOR
720 bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
723 This option turns on the -fstack-protector GCC feature. This
724 feature puts, at the beginning of functions, a canary value on
725 the stack just before the return address, and validates
726 the value just before actually returning. Stack based buffer
727 overflows (that need to overwrite this return address) now also
728 overwrite the canary, which gets detected and the attack is then
729 neutralized via a kernel panic.
731 This feature requires gcc version 4.2 or above.
734 bool "Symmetric multi-processing support"
735 depends on SYS_SUPPORTS_SMP
736 select USE_GENERIC_SMP_HELPERS
738 This enables support for systems with more than one CPU. If you have
739 a system with only one CPU, like most personal computers, say N. If
740 you have a system with more than one CPU, say Y.
742 If you say N here, the kernel will run on single and multiprocessor
743 machines, but will use only one CPU of a multiprocessor machine. If
744 you say Y here, the kernel will run on many, but not all,
745 singleprocessor machines. On a singleprocessor machine, the kernel
746 will run faster if you say N here.
748 People using multiprocessor machines who say Y here should also say
749 Y to "Enhanced Real Time Clock Support", below.
751 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
752 available at <http://www.tldp.org/docs.html#howto>.
754 If you don't know what to do here, say N.
757 int "Maximum number of CPUs (2-32)"
760 default "4" if CPU_SUBTYPE_SHX3
763 This allows you to specify the maximum number of CPUs which this
764 kernel will support. The maximum supported value is 32 and the
765 minimum value which makes sense is 2.
767 This is purely to save memory - each supported CPU adds
768 approximately eight kilobytes to the kernel image.
771 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
772 depends on SMP && HOTPLUG
774 Say Y here to experiment with turning CPUs off and on. CPUs
775 can be controlled through /sys/devices/system/cpu.
777 source "kernel/Kconfig.preempt"
781 depends on !SMP && SUPERH32
783 This enables support for gUSA (general UserSpace Atomicity).
784 This is the default implementation for both UP and non-ll/sc
785 CPUs, and is used by the libc, amongst others.
787 For additional information, design information can be found
788 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
790 This should only be disabled for special cases where alternate
791 atomicity implementations exist.
794 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
795 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
797 Enabling this option will allow the kernel to implement some
798 atomic operations using a software implementation of load-locked/
799 store-conditional (LLSC). On machines which do not have hardware
800 LLSC, this should be more efficient than the other alternative of
801 disabling interrupts around the atomic sequence.
803 config HW_PERF_EVENTS
804 bool "Enable hardware performance counter support for perf events"
805 depends on PERF_EVENTS && CPU_HAS_PMU
808 Enable hardware performance counter support for perf events. If
809 disabled, perf events will use software events only.
811 source "drivers/sh/Kconfig"
817 config ZERO_PAGE_OFFSET
819 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
820 SH_7751_SOLUTION_ENGINE
821 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
822 default "0x00002000" if PAGE_SIZE_8KB
825 This sets the default offset of zero page.
827 config BOOT_LINK_OFFSET
829 default "0x00210000" if SH_SHMIN
830 default "0x00400000" if SH_CAYMAN
831 default "0x00810000" if SH_7780_SOLUTION_ENGINE
832 default "0x009e0000" if SH_TITAN
833 default "0x01800000" if SH_SDK7780
834 default "0x02000000" if SH_EDOSK7760
837 This option allows you to set the link address offset of the zImage.
838 This can be useful if you are on a board which has a small amount of
843 default "0x00001000" if PAGE_SIZE_4KB
844 default "0x00002000" if PAGE_SIZE_8KB
845 default "0x00004000" if PAGE_SIZE_16KB
846 default "0x00010000" if PAGE_SIZE_64KB
849 config ROMIMAGE_MMCIF
850 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
851 depends on CPU_SUBTYPE_SH7724
853 Say Y here to include experimental MMCIF loading code in
854 romImage. With this enabled it is possible to write the romImage
855 kernel image to an MMC card and boot the kernel straight from
856 the reset vector. At reset the processor Mask ROM will load the
857 first part of the romImage which in turn loads the rest the kernel
858 image to RAM using the MMCIF hardware block.
861 prompt "Kernel command line"
863 default CMDLINE_OVERWRITE
865 Setting this option allows the kernel command line arguments
868 config CMDLINE_OVERWRITE
869 bool "Overwrite bootloader kernel arguments"
871 Given string will overwrite any arguments passed in by
874 config CMDLINE_EXTEND
875 bool "Extend bootloader kernel arguments"
877 Given string will be concatenated with arguments passed in
883 string "Kernel command line arguments string"
884 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
885 default "console=ttySC1,115200"
892 tristate "SuperHyway Bus support"
893 depends on CPU_SUBTYPE_SH4_202
896 bool "Maple Bus support"
897 depends on SH_DREAMCAST
899 The Maple Bus is SEGA's serial communication bus for peripherals
900 on the Dreamcast. Without this bus support you won't be able to
901 get your Dreamcast keyboard etc to work, so most users
902 probably want to say 'Y' here, unless you are only using the
903 Dreamcast with a serial line terminal or a remote network
908 depends on SYS_SUPPORTS_PCI
910 select GENERIC_PCI_IOMAP
911 select NO_GENERIC_PCI_IOPORT_MAP
913 Find out whether you have a PCI motherboard. PCI is the name of a
914 bus system, i.e. the way the CPU talks to the other stuff inside
915 your box. If you have PCI, say Y, otherwise N.
920 source "drivers/pci/pcie/Kconfig"
922 source "drivers/pci/Kconfig"
924 source "drivers/pcmcia/Kconfig"
926 source "drivers/pci/hotplug/Kconfig"
930 menu "Executable file formats"
932 source "fs/Kconfig.binfmt"
936 menu "Power management options (EXPERIMENTAL)"
938 source "kernel/power/Kconfig"
940 source "drivers/cpuidle/Kconfig"
946 source "drivers/Kconfig"
950 source "arch/sh/Kconfig.debug"
952 source "security/Kconfig"
954 source "crypto/Kconfig"