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"
625 source "drivers/cpufreq/Kconfig"
628 source "arch/sh/drivers/Kconfig"
632 menu "Kernel features"
634 source kernel/Kconfig.hz
637 bool "kexec system call (EXPERIMENTAL)"
638 depends on SUPERH32 && MMU
640 kexec is a system call that implements the ability to shutdown your
641 current kernel, and to start another kernel. It is like a reboot
642 but it is independent of the system firmware. And like a reboot
643 you can start any kernel with it, not just Linux.
645 The name comes from the similarity to the exec system call.
647 It is an ongoing process to be certain the hardware in a machine
648 is properly shutdown, so do not be surprised if this code does not
649 initially work for you. It may help to enable device hotplugging
650 support. As of this writing the exact hardware interface is
651 strongly in flux, so no good recommendation can be made.
654 bool "kernel crash dumps (EXPERIMENTAL)"
655 depends on SUPERH32 && BROKEN_ON_SMP
657 Generate crash dump after being started by kexec.
658 This should be normally only set in special crash dump kernels
659 which are loaded in the main kernel with kexec-tools into
660 a specially reserved region and then later executed after
661 a crash by kdump/kexec. The crash dump kernel must be compiled
662 to a memory address not used by the main kernel using
665 For more details see Documentation/kdump/kdump.txt
668 bool "kexec jump (EXPERIMENTAL)"
669 depends on SUPERH32 && KEXEC && HIBERNATION
671 Jump between original kernel and kexeced kernel and invoke
674 config PHYSICAL_START
675 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
678 This gives the physical address where the kernel is loaded
679 and is ordinarily the same as MEMORY_START.
681 Different values are primarily used in the case of kexec on panic
682 where the fail safe kernel needs to run at a different address
683 than the panic-ed kernel.
686 bool "Enable seccomp to safely compute untrusted bytecode"
689 This kernel feature is useful for number crunching applications
690 that may need to compute untrusted bytecode during their
691 execution. By using pipes or other transports made available to
692 the process as file descriptors supporting the read/write
693 syscalls, it's possible to isolate those applications in
694 their own address space using seccomp. Once seccomp is
695 enabled via prctl, it cannot be disabled and the task is only
696 allowed to execute a few safe syscalls defined by each seccomp
701 config CC_STACKPROTECTOR
702 bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
705 This option turns on the -fstack-protector GCC feature. This
706 feature puts, at the beginning of functions, a canary value on
707 the stack just before the return address, and validates
708 the value just before actually returning. Stack based buffer
709 overflows (that need to overwrite this return address) now also
710 overwrite the canary, which gets detected and the attack is then
711 neutralized via a kernel panic.
713 This feature requires gcc version 4.2 or above.
716 bool "Symmetric multi-processing support"
717 depends on SYS_SUPPORTS_SMP
718 select USE_GENERIC_SMP_HELPERS
720 This enables support for systems with more than one CPU. If you have
721 a system with only one CPU, like most personal computers, say N. If
722 you have a system with more than one CPU, say Y.
724 If you say N here, the kernel will run on single and multiprocessor
725 machines, but will use only one CPU of a multiprocessor machine. If
726 you say Y here, the kernel will run on many, but not all,
727 singleprocessor machines. On a singleprocessor machine, the kernel
728 will run faster if you say N here.
730 People using multiprocessor machines who say Y here should also say
731 Y to "Enhanced Real Time Clock Support", below.
733 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
734 available at <http://www.tldp.org/docs.html#howto>.
736 If you don't know what to do here, say N.
739 int "Maximum number of CPUs (2-32)"
742 default "4" if CPU_SUBTYPE_SHX3
745 This allows you to specify the maximum number of CPUs which this
746 kernel will support. The maximum supported value is 32 and the
747 minimum value which makes sense is 2.
749 This is purely to save memory - each supported CPU adds
750 approximately eight kilobytes to the kernel image.
753 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
754 depends on SMP && HOTPLUG
756 Say Y here to experiment with turning CPUs off and on. CPUs
757 can be controlled through /sys/devices/system/cpu.
759 source "kernel/Kconfig.preempt"
763 depends on !SMP && SUPERH32
765 This enables support for gUSA (general UserSpace Atomicity).
766 This is the default implementation for both UP and non-ll/sc
767 CPUs, and is used by the libc, amongst others.
769 For additional information, design information can be found
770 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
772 This should only be disabled for special cases where alternate
773 atomicity implementations exist.
776 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
777 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
779 Enabling this option will allow the kernel to implement some
780 atomic operations using a software implementation of load-locked/
781 store-conditional (LLSC). On machines which do not have hardware
782 LLSC, this should be more efficient than the other alternative of
783 disabling interrupts around the atomic sequence.
785 config HW_PERF_EVENTS
786 bool "Enable hardware performance counter support for perf events"
787 depends on PERF_EVENTS && CPU_HAS_PMU
790 Enable hardware performance counter support for perf events. If
791 disabled, perf events will use software events only.
793 source "drivers/sh/Kconfig"
799 config ZERO_PAGE_OFFSET
801 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
802 SH_7751_SOLUTION_ENGINE
803 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
804 default "0x00002000" if PAGE_SIZE_8KB
807 This sets the default offset of zero page.
809 config BOOT_LINK_OFFSET
811 default "0x00210000" if SH_SHMIN
812 default "0x00400000" if SH_CAYMAN
813 default "0x00810000" if SH_7780_SOLUTION_ENGINE
814 default "0x009e0000" if SH_TITAN
815 default "0x01800000" if SH_SDK7780
816 default "0x02000000" if SH_EDOSK7760
819 This option allows you to set the link address offset of the zImage.
820 This can be useful if you are on a board which has a small amount of
825 default "0x00001000" if PAGE_SIZE_4KB
826 default "0x00002000" if PAGE_SIZE_8KB
827 default "0x00004000" if PAGE_SIZE_16KB
828 default "0x00010000" if PAGE_SIZE_64KB
831 config ROMIMAGE_MMCIF
832 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
833 depends on CPU_SUBTYPE_SH7724
835 Say Y here to include experimental MMCIF loading code in
836 romImage. With this enabled it is possible to write the romImage
837 kernel image to an MMC card and boot the kernel straight from
838 the reset vector. At reset the processor Mask ROM will load the
839 first part of the romImage which in turn loads the rest the kernel
840 image to RAM using the MMCIF hardware block.
843 prompt "Kernel command line"
845 default CMDLINE_OVERWRITE
847 Setting this option allows the kernel command line arguments
850 config CMDLINE_OVERWRITE
851 bool "Overwrite bootloader kernel arguments"
853 Given string will overwrite any arguments passed in by
856 config CMDLINE_EXTEND
857 bool "Extend bootloader kernel arguments"
859 Given string will be concatenated with arguments passed in
865 string "Kernel command line arguments string"
866 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
867 default "console=ttySC1,115200"
874 tristate "SuperHyway Bus support"
875 depends on CPU_SUBTYPE_SH4_202
878 bool "Maple Bus support"
879 depends on SH_DREAMCAST
881 The Maple Bus is SEGA's serial communication bus for peripherals
882 on the Dreamcast. Without this bus support you won't be able to
883 get your Dreamcast keyboard etc to work, so most users
884 probably want to say 'Y' here, unless you are only using the
885 Dreamcast with a serial line terminal or a remote network
890 depends on SYS_SUPPORTS_PCI
892 select GENERIC_PCI_IOMAP
893 select NO_GENERIC_PCI_IOPORT_MAP
895 Find out whether you have a PCI motherboard. PCI is the name of a
896 bus system, i.e. the way the CPU talks to the other stuff inside
897 your box. If you have PCI, say Y, otherwise N.
902 source "drivers/pci/pcie/Kconfig"
904 source "drivers/pci/Kconfig"
906 source "drivers/pcmcia/Kconfig"
908 source "drivers/pci/hotplug/Kconfig"
912 menu "Executable file formats"
914 source "fs/Kconfig.binfmt"
918 menu "Power management options (EXPERIMENTAL)"
920 source "kernel/power/Kconfig"
922 source "drivers/cpuidle/Kconfig"
928 source "drivers/Kconfig"
932 source "arch/sh/Kconfig.debug"
934 source "security/Kconfig"
936 source "crypto/Kconfig"