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
15 select HAVE_PERF_EVENTS
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_KERNEL_GZIP
20 select HAVE_KERNEL_BZIP2
21 select HAVE_KERNEL_LZMA
23 select HAVE_KERNEL_LZO
24 select HAVE_SYSCALL_TRACEPOINTS
25 select HAVE_REGS_AND_STACK_ACCESS_API
26 select HAVE_GENERIC_HARDIRQS
27 select MAY_HAVE_SPARSE_IRQ
28 select IRQ_FORCED_THREADING
30 select GENERIC_ATOMIC64
31 select GENERIC_IRQ_SHOW
32 select GENERIC_SMP_IDLE_THREAD
33 select GENERIC_CLOCKEVENTS
34 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
36 The SuperH is a RISC processor targeted for use in embedded systems
37 and consumer electronics; it was also used in the Sega Dreamcast
38 gaming console. The SuperH port has a home page at
39 <http://www.linux-sh.org/>.
44 select HAVE_KRETPROBES
45 select HAVE_IOREMAP_PROT if MMU && !X2TLB
46 select HAVE_FUNCTION_TRACER
47 select HAVE_FTRACE_MCOUNT_RECORD
48 select HAVE_DYNAMIC_FTRACE
49 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
50 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
51 select HAVE_FUNCTION_GRAPH_TRACER
53 select HAVE_HW_BREAKPOINT
54 select HAVE_MIXED_BREAKPOINTS_REGS
56 select ARCH_HIBERNATION_POSSIBLE if MMU
60 def_bool ARCH = "sh64"
64 default "arch/sh/configs/shx3_defconfig" if SUPERH32
65 default "arch/sh/configs/cayman_defconfig" if SUPERH64
67 config RWSEM_GENERIC_SPINLOCK
70 config RWSEM_XCHGADD_ALGORITHM
75 depends on BUG && SUPERH32
81 config GENERIC_HWEIGHT
90 config GENERIC_CALIBRATE_DELAY
93 config GENERIC_LOCKBREAK
95 depends on SMP && PREEMPT
97 config ARCH_SUSPEND_POSSIBLE
100 config ARCH_HIBERNATION_POSSIBLE
103 config SYS_SUPPORTS_APM_EMULATION
105 select ARCH_SUSPEND_POSSIBLE
107 config SYS_SUPPORTS_HUGETLBFS
110 config SYS_SUPPORTS_SMP
113 config SYS_SUPPORTS_NUMA
116 config SYS_SUPPORTS_PCI
119 config SYS_SUPPORTS_CMT
122 config SYS_SUPPORTS_MTU2
125 config SYS_SUPPORTS_TMU
128 config STACKTRACE_SUPPORT
131 config LOCKDEP_SUPPORT
134 config HAVE_LATENCYTOP_SUPPORT
137 config ARCH_HAS_ILOG2_U32
140 config ARCH_HAS_ILOG2_U64
143 config ARCH_NO_VIRT_TO_BUS
146 config ARCH_HAS_DEFAULT_IDLE
151 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
152 !SH_HP6XX && !SH_SOLUTION_ENGINE
163 config DMA_NONCOHERENT
164 def_bool !DMA_COHERENT
166 config NEED_DMA_MAP_STATE
167 def_bool DMA_NONCOHERENT
169 config NEED_SG_DMA_LENGTH
172 source "init/Kconfig"
174 source "kernel/Kconfig.freezer"
187 select UNCACHED_MAPPING
191 select CPU_HAS_INTEVT
193 select SYS_SUPPORTS_TMU
197 select CPU_HAS_INTEVT
199 select CPU_HAS_FPU if !CPU_SH4AL_DSP
200 select SYS_SUPPORTS_TMU
201 select SYS_SUPPORTS_HUGETLBFS if MMU
215 select SYS_SUPPORTS_TMU
216 select SYS_SUPPORTS_HUGETLBFS if MMU
224 select SYS_SUPPORTS_SMP
225 select SYS_SUPPORTS_NUMA
229 select ARCH_SUSPEND_POSSIBLE
234 depends on CPU_SH4 || CPU_SH4A
241 prompt "Processor sub-type selection"
247 # SH-2 Processor Support
249 config CPU_SUBTYPE_SH7619
250 bool "Support SH7619 processor"
252 select SYS_SUPPORTS_CMT
254 # SH-2A Processor Support
256 config CPU_SUBTYPE_SH7201
257 bool "Support SH7201 processor"
260 select SYS_SUPPORTS_MTU2
262 config CPU_SUBTYPE_SH7203
263 bool "Support SH7203 processor"
266 select SYS_SUPPORTS_CMT
267 select SYS_SUPPORTS_MTU2
268 select ARCH_WANT_OPTIONAL_GPIOLIB
270 config CPU_SUBTYPE_SH7206
271 bool "Support SH7206 processor"
273 select SYS_SUPPORTS_CMT
274 select SYS_SUPPORTS_MTU2
276 config CPU_SUBTYPE_SH7263
277 bool "Support SH7263 processor"
280 select SYS_SUPPORTS_CMT
281 select SYS_SUPPORTS_MTU2
283 config CPU_SUBTYPE_SH7264
284 bool "Support SH7264 processor"
287 select SYS_SUPPORTS_CMT
288 select SYS_SUPPORTS_MTU2
290 config CPU_SUBTYPE_SH7269
291 bool "Support SH7269 processor"
294 select SYS_SUPPORTS_CMT
295 select SYS_SUPPORTS_MTU2
297 config CPU_SUBTYPE_MXG
298 bool "Support MX-G processor"
300 select SYS_SUPPORTS_MTU2
302 Select MX-G if running on an R8A03022BG part.
304 # SH-3 Processor Support
306 config CPU_SUBTYPE_SH7705
307 bool "Support SH7705 processor"
310 config CPU_SUBTYPE_SH7706
311 bool "Support SH7706 processor"
314 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
316 config CPU_SUBTYPE_SH7707
317 bool "Support SH7707 processor"
320 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
322 config CPU_SUBTYPE_SH7708
323 bool "Support SH7708 processor"
326 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
327 if you have a 100 Mhz SH-3 HD6417708R CPU.
329 config CPU_SUBTYPE_SH7709
330 bool "Support SH7709 processor"
333 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
335 config CPU_SUBTYPE_SH7710
336 bool "Support SH7710 processor"
340 Select SH7710 if you have a SH3-DSP SH7710 CPU.
342 config CPU_SUBTYPE_SH7712
343 bool "Support SH7712 processor"
347 Select SH7712 if you have a SH3-DSP SH7712 CPU.
349 config CPU_SUBTYPE_SH7720
350 bool "Support SH7720 processor"
353 select SYS_SUPPORTS_CMT
354 select ARCH_WANT_OPTIONAL_GPIOLIB
355 select USB_ARCH_HAS_OHCI
356 select USB_OHCI_SH if USB_OHCI_HCD
358 Select SH7720 if you have a SH3-DSP SH7720 CPU.
360 config CPU_SUBTYPE_SH7721
361 bool "Support SH7721 processor"
364 select SYS_SUPPORTS_CMT
365 select USB_ARCH_HAS_OHCI
366 select USB_OHCI_SH if USB_OHCI_HCD
368 Select SH7721 if you have a SH3-DSP SH7721 CPU.
370 # SH-4 Processor Support
372 config CPU_SUBTYPE_SH7750
373 bool "Support SH7750 processor"
376 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
378 config CPU_SUBTYPE_SH7091
379 bool "Support SH7091 processor"
382 Select SH7091 if you have an SH-4 based Sega device (such as
383 the Dreamcast, Naomi, and Naomi 2).
385 config CPU_SUBTYPE_SH7750R
386 bool "Support SH7750R processor"
389 config CPU_SUBTYPE_SH7750S
390 bool "Support SH7750S processor"
393 config CPU_SUBTYPE_SH7751
394 bool "Support SH7751 processor"
397 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
398 or if you have a HD6417751R CPU.
400 config CPU_SUBTYPE_SH7751R
401 bool "Support SH7751R processor"
404 config CPU_SUBTYPE_SH7760
405 bool "Support SH7760 processor"
408 config CPU_SUBTYPE_SH4_202
409 bool "Support SH4-202 processor"
412 # SH-4A Processor Support
414 config CPU_SUBTYPE_SH7723
415 bool "Support SH7723 processor"
419 select ARCH_SPARSEMEM_ENABLE
420 select SYS_SUPPORTS_CMT
421 select ARCH_WANT_OPTIONAL_GPIOLIB
423 Select SH7723 if you have an SH-MobileR2 CPU.
425 config CPU_SUBTYPE_SH7724
426 bool "Support SH7724 processor"
430 select ARCH_SPARSEMEM_ENABLE
431 select SYS_SUPPORTS_CMT
432 select ARCH_WANT_OPTIONAL_GPIOLIB
434 Select SH7724 if you have an SH-MobileR2R CPU.
436 config CPU_SUBTYPE_SH7734
437 bool "Support SH7734 processor"
440 select ARCH_WANT_OPTIONAL_GPIOLIB
441 select USB_ARCH_HAS_OHCI
442 select USB_ARCH_HAS_EHCI
444 Select SH7734 if you have a SH4A SH7734 CPU.
446 config CPU_SUBTYPE_SH7757
447 bool "Support SH7757 processor"
450 select ARCH_WANT_OPTIONAL_GPIOLIB
451 select USB_ARCH_HAS_OHCI
452 select USB_ARCH_HAS_EHCI
454 Select SH7757 if you have a SH4A SH7757 CPU.
456 config CPU_SUBTYPE_SH7763
457 bool "Support SH7763 processor"
459 select USB_ARCH_HAS_OHCI
460 select USB_OHCI_SH if USB_OHCI_HCD
462 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
464 config CPU_SUBTYPE_SH7770
465 bool "Support SH7770 processor"
468 config CPU_SUBTYPE_SH7780
469 bool "Support SH7780 processor"
472 config CPU_SUBTYPE_SH7785
473 bool "Support SH7785 processor"
476 select ARCH_SPARSEMEM_ENABLE
477 select SYS_SUPPORTS_NUMA
478 select ARCH_WANT_OPTIONAL_GPIOLIB
480 config CPU_SUBTYPE_SH7786
481 bool "Support SH7786 processor"
484 select CPU_HAS_PTEAEX
485 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
486 select ARCH_WANT_OPTIONAL_GPIOLIB
487 select USB_ARCH_HAS_OHCI
488 select USB_OHCI_SH if USB_OHCI_HCD
489 select USB_ARCH_HAS_EHCI
490 select USB_EHCI_SH if USB_EHCI_HCD
492 config CPU_SUBTYPE_SHX3
493 bool "Support SH-X3 processor"
496 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
497 select ARCH_REQUIRE_GPIOLIB
499 # SH4AL-DSP Processor Support
501 config CPU_SUBTYPE_SH7343
502 bool "Support SH7343 processor"
505 select SYS_SUPPORTS_CMT
507 config CPU_SUBTYPE_SH7722
508 bool "Support SH7722 processor"
512 select ARCH_SPARSEMEM_ENABLE
513 select SYS_SUPPORTS_NUMA
514 select SYS_SUPPORTS_CMT
515 select ARCH_WANT_OPTIONAL_GPIOLIB
517 config CPU_SUBTYPE_SH7366
518 bool "Support SH7366 processor"
522 select ARCH_SPARSEMEM_ENABLE
523 select SYS_SUPPORTS_NUMA
524 select SYS_SUPPORTS_CMT
533 prompt "Processor sub-type selection"
535 # SH-5 Processor Support
537 config CPU_SUBTYPE_SH5_101
538 bool "Support SH5-101 processor"
541 config CPU_SUBTYPE_SH5_103
542 bool "Support SH5-103 processor"
549 source "arch/sh/mm/Kconfig"
551 source "arch/sh/Kconfig.cpu"
553 source "arch/sh/boards/Kconfig"
555 menu "Timer and clock configuration"
558 bool "TMU timer driver"
559 depends on SYS_SUPPORTS_TMU
562 This enables the build of the TMU timer driver.
565 bool "CMT timer driver"
566 depends on SYS_SUPPORTS_CMT
569 This enables build of the CMT timer driver.
572 bool "MTU2 timer driver"
573 depends on SYS_SUPPORTS_MTU2
576 This enables build of the MTU2 timer driver.
579 int "Peripheral clock frequency (in Hz)"
580 depends on SH_CLK_CPG_LEGACY
581 default "31250000" if CPU_SUBTYPE_SH7619
582 default "33333333" if CPU_SUBTYPE_SH7770 || \
583 CPU_SUBTYPE_SH7760 || \
584 CPU_SUBTYPE_SH7705 || \
585 CPU_SUBTYPE_SH7203 || \
586 CPU_SUBTYPE_SH7206 || \
587 CPU_SUBTYPE_SH7263 || \
589 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
590 default "66000000" if CPU_SUBTYPE_SH4_202
593 This option is used to specify the peripheral clock frequency.
594 This is necessary for determining the reference clock value on
595 platforms lacking an RTC.
600 config SH_CLK_CPG_LEGACY
601 depends on SH_CLK_CPG
602 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
603 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
604 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
609 menu "CPU Frequency scaling"
611 source "drivers/cpufreq/Kconfig"
614 tristate "SuperH CPU Frequency driver"
616 select CPU_FREQ_TABLE
618 This adds the cpufreq driver for SuperH. Any CPU that supports
619 clock rate rounding through the clock framework can use this
620 driver. While it will make the kernel slightly larger, this is
621 harmless for CPUs that don't support rate rounding. The driver
622 will also generate a notice in the boot log before disabling
623 itself if the CPU in question is not capable of rate rounding.
625 For details, take a look at <file:Documentation/cpu-freq>.
631 source "arch/sh/drivers/Kconfig"
635 menu "Kernel features"
637 source kernel/Kconfig.hz
640 bool "kexec system call (EXPERIMENTAL)"
641 depends on SUPERH32 && EXPERIMENTAL && MMU
643 kexec is a system call that implements the ability to shutdown your
644 current kernel, and to start another kernel. It is like a reboot
645 but it is independent of the system firmware. And like a reboot
646 you can start any kernel with it, not just Linux.
648 The name comes from the similarity to the exec system call.
650 It is an ongoing process to be certain the hardware in a machine
651 is properly shutdown, so do not be surprised if this code does not
652 initially work for you. It may help to enable device hotplugging
653 support. As of this writing the exact hardware interface is
654 strongly in flux, so no good recommendation can be made.
657 bool "kernel crash dumps (EXPERIMENTAL)"
658 depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP
660 Generate crash dump after being started by kexec.
661 This should be normally only set in special crash dump kernels
662 which are loaded in the main kernel with kexec-tools into
663 a specially reserved region and then later executed after
664 a crash by kdump/kexec. The crash dump kernel must be compiled
665 to a memory address not used by the main kernel using
668 For more details see Documentation/kdump/kdump.txt
671 bool "kexec jump (EXPERIMENTAL)"
672 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
674 Jump between original kernel and kexeced kernel and invoke
677 config PHYSICAL_START
678 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
681 This gives the physical address where the kernel is loaded
682 and is ordinarily the same as MEMORY_START.
684 Different values are primarily used in the case of kexec on panic
685 where the fail safe kernel needs to run at a different address
686 than the panic-ed kernel.
689 bool "Enable seccomp to safely compute untrusted bytecode"
692 This kernel feature is useful for number crunching applications
693 that may need to compute untrusted bytecode during their
694 execution. By using pipes or other transports made available to
695 the process as file descriptors supporting the read/write
696 syscalls, it's possible to isolate those applications in
697 their own address space using seccomp. Once seccomp is
698 enabled via prctl, it cannot be disabled and the task is only
699 allowed to execute a few safe syscalls defined by each seccomp
704 config CC_STACKPROTECTOR
705 bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
706 depends on SUPERH32 && EXPERIMENTAL
708 This option turns on the -fstack-protector GCC feature. This
709 feature puts, at the beginning of functions, a canary value on
710 the stack just before the return address, and validates
711 the value just before actually returning. Stack based buffer
712 overflows (that need to overwrite this return address) now also
713 overwrite the canary, which gets detected and the attack is then
714 neutralized via a kernel panic.
716 This feature requires gcc version 4.2 or above.
719 bool "Symmetric multi-processing support"
720 depends on SYS_SUPPORTS_SMP
721 select USE_GENERIC_SMP_HELPERS
723 This enables support for systems with more than one CPU. If you have
724 a system with only one CPU, like most personal computers, say N. If
725 you have a system with more than one CPU, say Y.
727 If you say N here, the kernel will run on single and multiprocessor
728 machines, but will use only one CPU of a multiprocessor machine. If
729 you say Y here, the kernel will run on many, but not all,
730 singleprocessor machines. On a singleprocessor machine, the kernel
731 will run faster if you say N here.
733 People using multiprocessor machines who say Y here should also say
734 Y to "Enhanced Real Time Clock Support", below.
736 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
737 available at <http://www.tldp.org/docs.html#howto>.
739 If you don't know what to do here, say N.
742 int "Maximum number of CPUs (2-32)"
745 default "4" if CPU_SUBTYPE_SHX3
748 This allows you to specify the maximum number of CPUs which this
749 kernel will support. The maximum supported value is 32 and the
750 minimum value which makes sense is 2.
752 This is purely to save memory - each supported CPU adds
753 approximately eight kilobytes to the kernel image.
756 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
757 depends on SMP && HOTPLUG && EXPERIMENTAL
759 Say Y here to experiment with turning CPUs off and on. CPUs
760 can be controlled through /sys/devices/system/cpu.
762 source "kernel/Kconfig.preempt"
766 depends on !SMP && SUPERH32
768 This enables support for gUSA (general UserSpace Atomicity).
769 This is the default implementation for both UP and non-ll/sc
770 CPUs, and is used by the libc, amongst others.
772 For additional information, design information can be found
773 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
775 This should only be disabled for special cases where alternate
776 atomicity implementations exist.
779 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
780 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
782 Enabling this option will allow the kernel to implement some
783 atomic operations using a software implementation of load-locked/
784 store-conditional (LLSC). On machines which do not have hardware
785 LLSC, this should be more efficient than the other alternative of
786 disabling interrupts around the atomic sequence.
788 config HW_PERF_EVENTS
789 bool "Enable hardware performance counter support for perf events"
790 depends on PERF_EVENTS && CPU_HAS_PMU
793 Enable hardware performance counter support for perf events. If
794 disabled, perf events will use software events only.
796 source "drivers/sh/Kconfig"
802 config ZERO_PAGE_OFFSET
804 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
805 SH_7751_SOLUTION_ENGINE
806 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
807 default "0x00002000" if PAGE_SIZE_8KB
810 This sets the default offset of zero page.
812 config BOOT_LINK_OFFSET
814 default "0x00210000" if SH_SHMIN
815 default "0x00400000" if SH_CAYMAN
816 default "0x00810000" if SH_7780_SOLUTION_ENGINE
817 default "0x009e0000" if SH_TITAN
818 default "0x01800000" if SH_SDK7780
819 default "0x02000000" if SH_EDOSK7760
822 This option allows you to set the link address offset of the zImage.
823 This can be useful if you are on a board which has a small amount of
828 default "0x00001000" if PAGE_SIZE_4KB
829 default "0x00002000" if PAGE_SIZE_8KB
830 default "0x00004000" if PAGE_SIZE_16KB
831 default "0x00010000" if PAGE_SIZE_64KB
834 config ROMIMAGE_MMCIF
835 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
836 depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL
838 Say Y here to include experimental MMCIF loading code in
839 romImage. With this enabled it is possible to write the romImage
840 kernel image to an MMC card and boot the kernel straight from
841 the reset vector. At reset the processor Mask ROM will load the
842 first part of the romImage which in turn loads the rest the kernel
843 image to RAM using the MMCIF hardware block.
846 prompt "Kernel command line"
848 default CMDLINE_OVERWRITE
850 Setting this option allows the kernel command line arguments
853 config CMDLINE_OVERWRITE
854 bool "Overwrite bootloader kernel arguments"
856 Given string will overwrite any arguments passed in by
859 config CMDLINE_EXTEND
860 bool "Extend bootloader kernel arguments"
862 Given string will be concatenated with arguments passed in
868 string "Kernel command line arguments string"
869 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
870 default "console=ttySC1,115200"
877 tristate "SuperHyway Bus support"
878 depends on CPU_SUBTYPE_SH4_202
881 bool "Maple Bus support"
882 depends on SH_DREAMCAST
884 The Maple Bus is SEGA's serial communication bus for peripherals
885 on the Dreamcast. Without this bus support you won't be able to
886 get your Dreamcast keyboard etc to work, so most users
887 probably want to say 'Y' here, unless you are only using the
888 Dreamcast with a serial line terminal or a remote network
893 depends on SYS_SUPPORTS_PCI
895 select GENERIC_PCI_IOMAP
896 select NO_GENERIC_PCI_IOPORT_MAP
898 Find out whether you have a PCI motherboard. PCI is the name of a
899 bus system, i.e. the way the CPU talks to the other stuff inside
900 your box. If you have PCI, say Y, otherwise N.
905 source "drivers/pci/pcie/Kconfig"
907 source "drivers/pci/Kconfig"
909 source "drivers/pcmcia/Kconfig"
911 source "drivers/pci/hotplug/Kconfig"
915 menu "Executable file formats"
917 source "fs/Kconfig.binfmt"
921 menu "Power management options (EXPERIMENTAL)"
922 depends on EXPERIMENTAL
924 source "kernel/power/Kconfig"
926 source "drivers/cpuidle/Kconfig"
932 source "drivers/Kconfig"
936 source "arch/sh/Kconfig.debug"
938 source "security/Kconfig"
940 source "crypto/Kconfig"