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_CLOCKEVENTS
37 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
38 select GENERIC_STRNCPY_FROM_USER
39 select GENERIC_STRNLEN_USER
40 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
41 select MODULES_USE_ELF_RELA
43 The SuperH is a RISC processor targeted for use in embedded systems
44 and consumer electronics; it was also used in the Sega Dreamcast
45 gaming console. The SuperH port has a home page at
46 <http://www.linux-sh.org/>.
51 select HAVE_KRETPROBES
52 select HAVE_IOREMAP_PROT if MMU && !X2TLB
53 select HAVE_FUNCTION_TRACER
54 select HAVE_FTRACE_MCOUNT_RECORD
55 select HAVE_DYNAMIC_FTRACE
56 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
57 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
58 select ARCH_WANT_IPC_PARSE_VERSION
59 select HAVE_FUNCTION_GRAPH_TRACER
61 select HAVE_HW_BREAKPOINT
62 select HAVE_MIXED_BREAKPOINTS_REGS
64 select ARCH_HIBERNATION_POSSIBLE if MMU
68 def_bool ARCH = "sh64"
73 default "arch/sh/configs/shx3_defconfig" if SUPERH32
74 default "arch/sh/configs/cayman_defconfig" if SUPERH64
76 config RWSEM_GENERIC_SPINLOCK
79 config RWSEM_XCHGADD_ALGORITHM
84 depends on BUG && SUPERH32
90 config GENERIC_HWEIGHT
96 config GENERIC_CALIBRATE_DELAY
99 config GENERIC_LOCKBREAK
101 depends on SMP && PREEMPT
103 config ARCH_SUSPEND_POSSIBLE
106 config ARCH_HIBERNATION_POSSIBLE
109 config SYS_SUPPORTS_APM_EMULATION
111 select ARCH_SUSPEND_POSSIBLE
113 config SYS_SUPPORTS_HUGETLBFS
116 config SYS_SUPPORTS_SMP
119 config SYS_SUPPORTS_NUMA
122 config SYS_SUPPORTS_PCI
125 config SYS_SUPPORTS_CMT
128 config SYS_SUPPORTS_MTU2
131 config SYS_SUPPORTS_TMU
134 config STACKTRACE_SUPPORT
137 config LOCKDEP_SUPPORT
140 config HAVE_LATENCYTOP_SUPPORT
143 config ARCH_HAS_ILOG2_U32
146 config ARCH_HAS_ILOG2_U64
149 config ARCH_NO_VIRT_TO_BUS
152 config ARCH_HAS_DEFAULT_IDLE
157 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
158 !SH_HP6XX && !SH_SOLUTION_ENGINE
169 config DMA_NONCOHERENT
170 def_bool !DMA_COHERENT
172 config NEED_DMA_MAP_STATE
173 def_bool DMA_NONCOHERENT
175 config NEED_SG_DMA_LENGTH
178 source "init/Kconfig"
180 source "kernel/Kconfig.freezer"
193 select UNCACHED_MAPPING
197 select CPU_HAS_INTEVT
199 select SYS_SUPPORTS_TMU
203 select CPU_HAS_INTEVT
205 select CPU_HAS_FPU if !CPU_SH4AL_DSP
206 select SYS_SUPPORTS_TMU
207 select SYS_SUPPORTS_HUGETLBFS if MMU
221 select SYS_SUPPORTS_TMU
222 select SYS_SUPPORTS_HUGETLBFS if MMU
230 select SYS_SUPPORTS_SMP
231 select SYS_SUPPORTS_NUMA
235 select ARCH_SUSPEND_POSSIBLE
240 depends on CPU_SH4 || CPU_SH4A
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
274 select ARCH_WANT_OPTIONAL_GPIOLIB
277 config CPU_SUBTYPE_SH7206
278 bool "Support SH7206 processor"
280 select SYS_SUPPORTS_CMT
281 select SYS_SUPPORTS_MTU2
283 config CPU_SUBTYPE_SH7263
284 bool "Support SH7263 processor"
287 select SYS_SUPPORTS_CMT
288 select SYS_SUPPORTS_MTU2
290 config CPU_SUBTYPE_SH7264
291 bool "Support SH7264 processor"
294 select SYS_SUPPORTS_CMT
295 select SYS_SUPPORTS_MTU2
298 config CPU_SUBTYPE_SH7269
299 bool "Support SH7269 processor"
302 select SYS_SUPPORTS_CMT
303 select SYS_SUPPORTS_MTU2
306 config CPU_SUBTYPE_MXG
307 bool "Support MX-G processor"
309 select SYS_SUPPORTS_MTU2
311 Select MX-G if running on an R8A03022BG part.
313 # SH-3 Processor Support
315 config CPU_SUBTYPE_SH7705
316 bool "Support SH7705 processor"
319 config CPU_SUBTYPE_SH7706
320 bool "Support SH7706 processor"
323 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
325 config CPU_SUBTYPE_SH7707
326 bool "Support SH7707 processor"
329 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
331 config CPU_SUBTYPE_SH7708
332 bool "Support SH7708 processor"
335 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
336 if you have a 100 Mhz SH-3 HD6417708R CPU.
338 config CPU_SUBTYPE_SH7709
339 bool "Support SH7709 processor"
342 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
344 config CPU_SUBTYPE_SH7710
345 bool "Support SH7710 processor"
349 Select SH7710 if you have a SH3-DSP SH7710 CPU.
351 config CPU_SUBTYPE_SH7712
352 bool "Support SH7712 processor"
356 Select SH7712 if you have a SH3-DSP SH7712 CPU.
358 config CPU_SUBTYPE_SH7720
359 bool "Support SH7720 processor"
362 select SYS_SUPPORTS_CMT
363 select ARCH_WANT_OPTIONAL_GPIOLIB
364 select USB_ARCH_HAS_OHCI
365 select USB_OHCI_SH if USB_OHCI_HCD
368 Select SH7720 if you have a SH3-DSP SH7720 CPU.
370 config CPU_SUBTYPE_SH7721
371 bool "Support SH7721 processor"
374 select SYS_SUPPORTS_CMT
375 select USB_ARCH_HAS_OHCI
376 select USB_OHCI_SH if USB_OHCI_HCD
378 Select SH7721 if you have a SH3-DSP SH7721 CPU.
380 # SH-4 Processor Support
382 config CPU_SUBTYPE_SH7750
383 bool "Support SH7750 processor"
386 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
388 config CPU_SUBTYPE_SH7091
389 bool "Support SH7091 processor"
392 Select SH7091 if you have an SH-4 based Sega device (such as
393 the Dreamcast, Naomi, and Naomi 2).
395 config CPU_SUBTYPE_SH7750R
396 bool "Support SH7750R processor"
399 config CPU_SUBTYPE_SH7750S
400 bool "Support SH7750S processor"
403 config CPU_SUBTYPE_SH7751
404 bool "Support SH7751 processor"
407 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
408 or if you have a HD6417751R CPU.
410 config CPU_SUBTYPE_SH7751R
411 bool "Support SH7751R processor"
414 config CPU_SUBTYPE_SH7760
415 bool "Support SH7760 processor"
418 config CPU_SUBTYPE_SH4_202
419 bool "Support SH4-202 processor"
422 # SH-4A Processor Support
424 config CPU_SUBTYPE_SH7723
425 bool "Support SH7723 processor"
429 select ARCH_SPARSEMEM_ENABLE
430 select SYS_SUPPORTS_CMT
431 select ARCH_WANT_OPTIONAL_GPIOLIB
434 Select SH7723 if you have an SH-MobileR2 CPU.
436 config CPU_SUBTYPE_SH7724
437 bool "Support SH7724 processor"
441 select ARCH_SPARSEMEM_ENABLE
442 select SYS_SUPPORTS_CMT
443 select ARCH_WANT_OPTIONAL_GPIOLIB
446 Select SH7724 if you have an SH-MobileR2R CPU.
448 config CPU_SUBTYPE_SH7734
449 bool "Support SH7734 processor"
452 select ARCH_WANT_OPTIONAL_GPIOLIB
453 select USB_ARCH_HAS_OHCI
454 select USB_ARCH_HAS_EHCI
457 Select SH7734 if you have a SH4A SH7734 CPU.
459 config CPU_SUBTYPE_SH7757
460 bool "Support SH7757 processor"
463 select ARCH_WANT_OPTIONAL_GPIOLIB
464 select USB_ARCH_HAS_OHCI
465 select USB_ARCH_HAS_EHCI
468 Select SH7757 if you have a SH4A SH7757 CPU.
470 config CPU_SUBTYPE_SH7763
471 bool "Support SH7763 processor"
473 select USB_ARCH_HAS_OHCI
474 select USB_OHCI_SH if USB_OHCI_HCD
476 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
478 config CPU_SUBTYPE_SH7770
479 bool "Support SH7770 processor"
482 config CPU_SUBTYPE_SH7780
483 bool "Support SH7780 processor"
486 config CPU_SUBTYPE_SH7785
487 bool "Support SH7785 processor"
490 select ARCH_SPARSEMEM_ENABLE
491 select SYS_SUPPORTS_NUMA
492 select ARCH_WANT_OPTIONAL_GPIOLIB
495 config CPU_SUBTYPE_SH7786
496 bool "Support SH7786 processor"
499 select CPU_HAS_PTEAEX
500 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
501 select ARCH_WANT_OPTIONAL_GPIOLIB
502 select USB_ARCH_HAS_OHCI
503 select USB_OHCI_SH if USB_OHCI_HCD
504 select USB_ARCH_HAS_EHCI
505 select USB_EHCI_SH if USB_EHCI_HCD
508 config CPU_SUBTYPE_SHX3
509 bool "Support SH-X3 processor"
512 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
513 select ARCH_REQUIRE_GPIOLIB
516 # SH4AL-DSP Processor Support
518 config CPU_SUBTYPE_SH7343
519 bool "Support SH7343 processor"
522 select SYS_SUPPORTS_CMT
524 config CPU_SUBTYPE_SH7722
525 bool "Support SH7722 processor"
529 select ARCH_SPARSEMEM_ENABLE
530 select SYS_SUPPORTS_NUMA
531 select SYS_SUPPORTS_CMT
532 select ARCH_WANT_OPTIONAL_GPIOLIB
535 config CPU_SUBTYPE_SH7366
536 bool "Support SH7366 processor"
540 select ARCH_SPARSEMEM_ENABLE
541 select SYS_SUPPORTS_NUMA
542 select SYS_SUPPORTS_CMT
551 prompt "Processor sub-type selection"
553 # SH-5 Processor Support
555 config CPU_SUBTYPE_SH5_101
556 bool "Support SH5-101 processor"
559 config CPU_SUBTYPE_SH5_103
560 bool "Support SH5-103 processor"
567 source "arch/sh/mm/Kconfig"
569 source "arch/sh/Kconfig.cpu"
571 source "arch/sh/boards/Kconfig"
573 menu "Timer and clock configuration"
576 bool "TMU timer driver"
577 depends on SYS_SUPPORTS_TMU
580 This enables the build of the TMU timer driver.
583 bool "CMT timer driver"
584 depends on SYS_SUPPORTS_CMT
587 This enables build of the CMT timer driver.
590 bool "MTU2 timer driver"
591 depends on SYS_SUPPORTS_MTU2
594 This enables build of the MTU2 timer driver.
597 int "Peripheral clock frequency (in Hz)"
598 depends on SH_CLK_CPG_LEGACY
599 default "31250000" if CPU_SUBTYPE_SH7619
600 default "33333333" if CPU_SUBTYPE_SH7770 || \
601 CPU_SUBTYPE_SH7760 || \
602 CPU_SUBTYPE_SH7705 || \
603 CPU_SUBTYPE_SH7203 || \
604 CPU_SUBTYPE_SH7206 || \
605 CPU_SUBTYPE_SH7263 || \
607 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
608 default "66000000" if CPU_SUBTYPE_SH4_202
611 This option is used to specify the peripheral clock frequency.
612 This is necessary for determining the reference clock value on
613 platforms lacking an RTC.
618 config SH_CLK_CPG_LEGACY
619 depends on SH_CLK_CPG
620 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
621 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
622 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
627 menu "CPU Frequency scaling"
629 source "drivers/cpufreq/Kconfig"
632 tristate "SuperH CPU Frequency driver"
634 select CPU_FREQ_TABLE
636 This adds the cpufreq driver for SuperH. Any CPU that supports
637 clock rate rounding through the clock framework can use this
638 driver. While it will make the kernel slightly larger, this is
639 harmless for CPUs that don't support rate rounding. The driver
640 will also generate a notice in the boot log before disabling
641 itself if the CPU in question is not capable of rate rounding.
643 For details, take a look at <file:Documentation/cpu-freq>.
649 source "arch/sh/drivers/Kconfig"
653 menu "Kernel features"
655 source kernel/Kconfig.hz
658 bool "kexec system call (EXPERIMENTAL)"
659 depends on SUPERH32 && MMU
661 kexec is a system call that implements the ability to shutdown your
662 current kernel, and to start another kernel. It is like a reboot
663 but it is independent of the system firmware. And like a reboot
664 you can start any kernel with it, not just Linux.
666 The name comes from the similarity to the exec system call.
668 It is an ongoing process to be certain the hardware in a machine
669 is properly shutdown, so do not be surprised if this code does not
670 initially work for you. It may help to enable device hotplugging
671 support. As of this writing the exact hardware interface is
672 strongly in flux, so no good recommendation can be made.
675 bool "kernel crash dumps (EXPERIMENTAL)"
676 depends on SUPERH32 && BROKEN_ON_SMP
678 Generate crash dump after being started by kexec.
679 This should be normally only set in special crash dump kernels
680 which are loaded in the main kernel with kexec-tools into
681 a specially reserved region and then later executed after
682 a crash by kdump/kexec. The crash dump kernel must be compiled
683 to a memory address not used by the main kernel using
686 For more details see Documentation/kdump/kdump.txt
689 bool "kexec jump (EXPERIMENTAL)"
690 depends on SUPERH32 && KEXEC && HIBERNATION
692 Jump between original kernel and kexeced kernel and invoke
695 config PHYSICAL_START
696 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
699 This gives the physical address where the kernel is loaded
700 and is ordinarily the same as MEMORY_START.
702 Different values are primarily used in the case of kexec on panic
703 where the fail safe kernel needs to run at a different address
704 than the panic-ed kernel.
707 bool "Enable seccomp to safely compute untrusted bytecode"
710 This kernel feature is useful for number crunching applications
711 that may need to compute untrusted bytecode during their
712 execution. By using pipes or other transports made available to
713 the process as file descriptors supporting the read/write
714 syscalls, it's possible to isolate those applications in
715 their own address space using seccomp. Once seccomp is
716 enabled via prctl, it cannot be disabled and the task is only
717 allowed to execute a few safe syscalls defined by each seccomp
722 config CC_STACKPROTECTOR
723 bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
726 This option turns on the -fstack-protector GCC feature. This
727 feature puts, at the beginning of functions, a canary value on
728 the stack just before the return address, and validates
729 the value just before actually returning. Stack based buffer
730 overflows (that need to overwrite this return address) now also
731 overwrite the canary, which gets detected and the attack is then
732 neutralized via a kernel panic.
734 This feature requires gcc version 4.2 or above.
737 bool "Symmetric multi-processing support"
738 depends on SYS_SUPPORTS_SMP
739 select USE_GENERIC_SMP_HELPERS
741 This enables support for systems with more than one CPU. If you have
742 a system with only one CPU, like most personal computers, say N. If
743 you have a system with more than one CPU, say Y.
745 If you say N here, the kernel will run on single and multiprocessor
746 machines, but will use only one CPU of a multiprocessor machine. If
747 you say Y here, the kernel will run on many, but not all,
748 singleprocessor machines. On a singleprocessor machine, the kernel
749 will run faster if you say N here.
751 People using multiprocessor machines who say Y here should also say
752 Y to "Enhanced Real Time Clock Support", below.
754 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
755 available at <http://www.tldp.org/docs.html#howto>.
757 If you don't know what to do here, say N.
760 int "Maximum number of CPUs (2-32)"
763 default "4" if CPU_SUBTYPE_SHX3
766 This allows you to specify the maximum number of CPUs which this
767 kernel will support. The maximum supported value is 32 and the
768 minimum value which makes sense is 2.
770 This is purely to save memory - each supported CPU adds
771 approximately eight kilobytes to the kernel image.
774 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
775 depends on SMP && HOTPLUG
777 Say Y here to experiment with turning CPUs off and on. CPUs
778 can be controlled through /sys/devices/system/cpu.
780 source "kernel/Kconfig.preempt"
784 depends on !SMP && SUPERH32
786 This enables support for gUSA (general UserSpace Atomicity).
787 This is the default implementation for both UP and non-ll/sc
788 CPUs, and is used by the libc, amongst others.
790 For additional information, design information can be found
791 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
793 This should only be disabled for special cases where alternate
794 atomicity implementations exist.
797 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
798 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
800 Enabling this option will allow the kernel to implement some
801 atomic operations using a software implementation of load-locked/
802 store-conditional (LLSC). On machines which do not have hardware
803 LLSC, this should be more efficient than the other alternative of
804 disabling interrupts around the atomic sequence.
806 config HW_PERF_EVENTS
807 bool "Enable hardware performance counter support for perf events"
808 depends on PERF_EVENTS && CPU_HAS_PMU
811 Enable hardware performance counter support for perf events. If
812 disabled, perf events will use software events only.
814 source "drivers/sh/Kconfig"
820 config ZERO_PAGE_OFFSET
822 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
823 SH_7751_SOLUTION_ENGINE
824 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
825 default "0x00002000" if PAGE_SIZE_8KB
828 This sets the default offset of zero page.
830 config BOOT_LINK_OFFSET
832 default "0x00210000" if SH_SHMIN
833 default "0x00400000" if SH_CAYMAN
834 default "0x00810000" if SH_7780_SOLUTION_ENGINE
835 default "0x009e0000" if SH_TITAN
836 default "0x01800000" if SH_SDK7780
837 default "0x02000000" if SH_EDOSK7760
840 This option allows you to set the link address offset of the zImage.
841 This can be useful if you are on a board which has a small amount of
846 default "0x00001000" if PAGE_SIZE_4KB
847 default "0x00002000" if PAGE_SIZE_8KB
848 default "0x00004000" if PAGE_SIZE_16KB
849 default "0x00010000" if PAGE_SIZE_64KB
852 config ROMIMAGE_MMCIF
853 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
854 depends on CPU_SUBTYPE_SH7724
856 Say Y here to include experimental MMCIF loading code in
857 romImage. With this enabled it is possible to write the romImage
858 kernel image to an MMC card and boot the kernel straight from
859 the reset vector. At reset the processor Mask ROM will load the
860 first part of the romImage which in turn loads the rest the kernel
861 image to RAM using the MMCIF hardware block.
864 prompt "Kernel command line"
866 default CMDLINE_OVERWRITE
868 Setting this option allows the kernel command line arguments
871 config CMDLINE_OVERWRITE
872 bool "Overwrite bootloader kernel arguments"
874 Given string will overwrite any arguments passed in by
877 config CMDLINE_EXTEND
878 bool "Extend bootloader kernel arguments"
880 Given string will be concatenated with arguments passed in
886 string "Kernel command line arguments string"
887 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
888 default "console=ttySC1,115200"
895 tristate "SuperHyway Bus support"
896 depends on CPU_SUBTYPE_SH4_202
899 bool "Maple Bus support"
900 depends on SH_DREAMCAST
902 The Maple Bus is SEGA's serial communication bus for peripherals
903 on the Dreamcast. Without this bus support you won't be able to
904 get your Dreamcast keyboard etc to work, so most users
905 probably want to say 'Y' here, unless you are only using the
906 Dreamcast with a serial line terminal or a remote network
911 depends on SYS_SUPPORTS_PCI
913 select GENERIC_PCI_IOMAP
914 select NO_GENERIC_PCI_IOPORT_MAP
916 Find out whether you have a PCI motherboard. PCI is the name of a
917 bus system, i.e. the way the CPU talks to the other stuff inside
918 your box. If you have PCI, say Y, otherwise N.
923 source "drivers/pci/pcie/Kconfig"
925 source "drivers/pci/Kconfig"
927 source "drivers/pcmcia/Kconfig"
929 source "drivers/pci/hotplug/Kconfig"
933 menu "Executable file formats"
935 source "fs/Kconfig.binfmt"
939 menu "Power management options (EXPERIMENTAL)"
941 source "kernel/power/Kconfig"
943 source "drivers/cpuidle/Kconfig"
949 source "drivers/Kconfig"
953 source "arch/sh/Kconfig.debug"
955 source "security/Kconfig"
957 source "crypto/Kconfig"