5 select HAVE_IDE if HAS_IOPORT
8 select HAVE_GENERIC_DMA_COHERENT
9 select HAVE_ARCH_TRACEHOOK
10 select HAVE_DMA_API_DEBUG
13 select HAVE_PERF_EVENTS
14 select PERF_USE_VMALLOC
15 select HAVE_KERNEL_GZIP
16 select HAVE_KERNEL_BZIP2
17 select HAVE_KERNEL_LZMA
19 select HAVE_KERNEL_LZO
20 select HAVE_SYSCALL_TRACEPOINTS
21 select HAVE_REGS_AND_STACK_ACCESS_API
22 select HAVE_GENERIC_HARDIRQS
23 select HAVE_SPARSE_IRQ
25 select GENERIC_ATOMIC64
26 # Support the deprecated APIs until MFD and GPIOLIB catch up.
27 select GENERIC_HARDIRQS_NO_DEPRECATED if !MFD_SUPPORT && !GPIOLIB
28 select GENERIC_IRQ_SHOW
30 The SuperH is a RISC processor targeted for use in embedded systems
31 and consumer electronics; it was also used in the Sega Dreamcast
32 gaming console. The SuperH port has a home page at
33 <http://www.linux-sh.org/>.
38 select HAVE_KRETPROBES
39 select HAVE_IOREMAP_PROT if MMU && !X2TLB
40 select HAVE_FUNCTION_TRACER
41 select HAVE_FTRACE_MCOUNT_RECORD
42 select HAVE_DYNAMIC_FTRACE
43 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
44 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
45 select HAVE_FUNCTION_GRAPH_TRACER
47 select HAVE_HW_BREAKPOINT
48 select HAVE_MIXED_BREAKPOINTS_REGS
50 select ARCH_HIBERNATION_POSSIBLE if MMU
54 def_bool ARCH = "sh64"
58 default "arch/sh/configs/shx3_defconfig" if SUPERH32
59 default "arch/sh/configs/cayman_defconfig" if SUPERH64
61 config RWSEM_GENERIC_SPINLOCK
64 config RWSEM_XCHGADD_ALGORITHM
69 depends on BUG && SUPERH32
75 config GENERIC_FIND_NEXT_BIT
78 config GENERIC_FIND_BIT_LE
81 config GENERIC_HWEIGHT
90 config GENERIC_CALIBRATE_DELAY
96 config GENERIC_CLOCKEVENTS
99 config GENERIC_CLOCKEVENTS_BROADCAST
102 config GENERIC_CMOS_UPDATE
104 depends on SH_SH03 || SH_DREAMCAST
106 config GENERIC_LOCKBREAK
108 depends on SMP && PREEMPT
110 config SYS_SUPPORTS_PM
114 config ARCH_SUSPEND_POSSIBLE
117 config ARCH_HIBERNATION_POSSIBLE
120 config SYS_SUPPORTS_APM_EMULATION
122 select ARCH_SUSPEND_POSSIBLE
124 config SYS_SUPPORTS_HUGETLBFS
127 config SYS_SUPPORTS_SMP
130 config SYS_SUPPORTS_NUMA
133 config SYS_SUPPORTS_PCI
136 config SYS_SUPPORTS_CMT
139 config SYS_SUPPORTS_MTU2
142 config SYS_SUPPORTS_TMU
145 config STACKTRACE_SUPPORT
148 config LOCKDEP_SUPPORT
151 config HAVE_LATENCYTOP_SUPPORT
154 config ARCH_HAS_ILOG2_U32
157 config ARCH_HAS_ILOG2_U64
160 config ARCH_NO_VIRT_TO_BUS
163 config ARCH_HAS_DEFAULT_IDLE
166 config ARCH_HAS_CPU_IDLE_WAIT
171 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV
179 config DMA_NONCOHERENT
180 def_bool !DMA_COHERENT
182 config NEED_DMA_MAP_STATE
183 def_bool DMA_NONCOHERENT
185 config NEED_SG_DMA_LENGTH
188 source "init/Kconfig"
190 source "kernel/Kconfig.freezer"
203 select UNCACHED_MAPPING
207 select CPU_HAS_INTEVT
209 select SYS_SUPPORTS_TMU
213 select CPU_HAS_INTEVT
215 select CPU_HAS_FPU if !CPU_SH4AL_DSP
216 select SYS_SUPPORTS_TMU
217 select SYS_SUPPORTS_HUGETLBFS if MMU
231 select SYS_SUPPORTS_TMU
232 select SYS_SUPPORTS_HUGETLBFS if MMU
240 select SYS_SUPPORTS_SMP
241 select SYS_SUPPORTS_NUMA
245 select ARCH_SUSPEND_POSSIBLE
250 depends on CPU_SH4 || CPU_SH4A
257 prompt "Processor sub-type selection"
263 # SH-2 Processor Support
265 config CPU_SUBTYPE_SH7619
266 bool "Support SH7619 processor"
268 select SYS_SUPPORTS_CMT
270 # SH-2A Processor Support
272 config CPU_SUBTYPE_SH7201
273 bool "Support SH7201 processor"
276 select SYS_SUPPORTS_MTU2
278 config CPU_SUBTYPE_SH7203
279 bool "Support SH7203 processor"
282 select SYS_SUPPORTS_CMT
283 select SYS_SUPPORTS_MTU2
284 select ARCH_WANT_OPTIONAL_GPIOLIB
286 config CPU_SUBTYPE_SH7206
287 bool "Support SH7206 processor"
289 select SYS_SUPPORTS_CMT
290 select SYS_SUPPORTS_MTU2
292 config CPU_SUBTYPE_SH7263
293 bool "Support SH7263 processor"
296 select SYS_SUPPORTS_CMT
297 select SYS_SUPPORTS_MTU2
299 config CPU_SUBTYPE_MXG
300 bool "Support MX-G processor"
302 select SYS_SUPPORTS_MTU2
304 Select MX-G if running on an R8A03022BG part.
306 # SH-3 Processor Support
308 config CPU_SUBTYPE_SH7705
309 bool "Support SH7705 processor"
312 config CPU_SUBTYPE_SH7706
313 bool "Support SH7706 processor"
316 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
318 config CPU_SUBTYPE_SH7707
319 bool "Support SH7707 processor"
322 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
324 config CPU_SUBTYPE_SH7708
325 bool "Support SH7708 processor"
328 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
329 if you have a 100 Mhz SH-3 HD6417708R CPU.
331 config CPU_SUBTYPE_SH7709
332 bool "Support SH7709 processor"
335 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
337 config CPU_SUBTYPE_SH7710
338 bool "Support SH7710 processor"
342 Select SH7710 if you have a SH3-DSP SH7710 CPU.
344 config CPU_SUBTYPE_SH7712
345 bool "Support SH7712 processor"
349 Select SH7712 if you have a SH3-DSP SH7712 CPU.
351 config CPU_SUBTYPE_SH7720
352 bool "Support SH7720 processor"
355 select SYS_SUPPORTS_CMT
356 select ARCH_WANT_OPTIONAL_GPIOLIB
357 select USB_ARCH_HAS_OHCI
359 Select SH7720 if you have a SH3-DSP SH7720 CPU.
361 config CPU_SUBTYPE_SH7721
362 bool "Support SH7721 processor"
365 select SYS_SUPPORTS_CMT
366 select USB_ARCH_HAS_OHCI
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_SH7757
437 bool "Support SH7757 processor"
440 select ARCH_WANT_OPTIONAL_GPIOLIB
441 select USB_ARCH_HAS_OHCI
442 select USB_ARCH_HAS_EHCI
444 Select SH7757 if you have a SH4A SH7757 CPU.
446 config CPU_SUBTYPE_SH7763
447 bool "Support SH7763 processor"
449 select USB_ARCH_HAS_OHCI
451 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
453 config CPU_SUBTYPE_SH7770
454 bool "Support SH7770 processor"
457 config CPU_SUBTYPE_SH7780
458 bool "Support SH7780 processor"
461 config CPU_SUBTYPE_SH7785
462 bool "Support SH7785 processor"
465 select ARCH_SPARSEMEM_ENABLE
466 select SYS_SUPPORTS_NUMA
467 select ARCH_WANT_OPTIONAL_GPIOLIB
469 config CPU_SUBTYPE_SH7786
470 bool "Support SH7786 processor"
473 select CPU_HAS_PTEAEX
474 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
475 select ARCH_WANT_OPTIONAL_GPIOLIB
476 select USB_ARCH_HAS_OHCI
477 select USB_ARCH_HAS_EHCI
479 config CPU_SUBTYPE_SHX3
480 bool "Support SH-X3 processor"
483 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
484 select ARCH_REQUIRE_GPIOLIB
486 # SH4AL-DSP Processor Support
488 config CPU_SUBTYPE_SH7343
489 bool "Support SH7343 processor"
492 select SYS_SUPPORTS_CMT
494 config CPU_SUBTYPE_SH7722
495 bool "Support SH7722 processor"
499 select ARCH_SPARSEMEM_ENABLE
500 select SYS_SUPPORTS_NUMA
501 select SYS_SUPPORTS_CMT
502 select ARCH_WANT_OPTIONAL_GPIOLIB
504 config CPU_SUBTYPE_SH7366
505 bool "Support SH7366 processor"
509 select ARCH_SPARSEMEM_ENABLE
510 select SYS_SUPPORTS_NUMA
511 select SYS_SUPPORTS_CMT
520 prompt "Processor sub-type selection"
522 # SH-5 Processor Support
524 config CPU_SUBTYPE_SH5_101
525 bool "Support SH5-101 processor"
528 config CPU_SUBTYPE_SH5_103
529 bool "Support SH5-103 processor"
536 source "arch/sh/mm/Kconfig"
538 source "arch/sh/Kconfig.cpu"
540 source "arch/sh/boards/Kconfig"
542 menu "Timer and clock configuration"
545 bool "TMU timer driver"
546 depends on SYS_SUPPORTS_TMU
549 This enables the build of the TMU timer driver.
552 bool "CMT timer driver"
553 depends on SYS_SUPPORTS_CMT
556 This enables build of the CMT timer driver.
559 bool "MTU2 timer driver"
560 depends on SYS_SUPPORTS_MTU2
563 This enables build of the MTU2 timer driver.
566 int "Peripheral clock frequency (in Hz)"
567 depends on SH_CLK_CPG_LEGACY
568 default "31250000" if CPU_SUBTYPE_SH7619
569 default "33333333" if CPU_SUBTYPE_SH7770 || \
570 CPU_SUBTYPE_SH7760 || \
571 CPU_SUBTYPE_SH7705 || \
572 CPU_SUBTYPE_SH7203 || \
573 CPU_SUBTYPE_SH7206 || \
574 CPU_SUBTYPE_SH7263 || \
576 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
577 default "66000000" if CPU_SUBTYPE_SH4_202
580 This option is used to specify the peripheral clock frequency.
581 This is necessary for determining the reference clock value on
582 platforms lacking an RTC.
587 config SH_CLK_CPG_LEGACY
588 depends on SH_CLK_CPG
589 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
590 !CPU_SHX3 && !CPU_SUBTYPE_SH7757
592 source "kernel/time/Kconfig"
596 menu "CPU Frequency scaling"
598 source "drivers/cpufreq/Kconfig"
601 tristate "SuperH CPU Frequency driver"
603 select CPU_FREQ_TABLE
605 This adds the cpufreq driver for SuperH. Any CPU that supports
606 clock rate rounding through the clock framework can use this
607 driver. While it will make the kernel slightly larger, this is
608 harmless for CPUs that don't support rate rounding. The driver
609 will also generate a notice in the boot log before disabling
610 itself if the CPU in question is not capable of rate rounding.
612 For details, take a look at <file:Documentation/cpu-freq>.
618 source "arch/sh/drivers/Kconfig"
622 menu "Kernel features"
624 source kernel/Kconfig.hz
627 bool "kexec system call (EXPERIMENTAL)"
628 depends on SUPERH32 && EXPERIMENTAL && MMU
630 kexec is a system call that implements the ability to shutdown your
631 current kernel, and to start another kernel. It is like a reboot
632 but it is independent of the system firmware. And like a reboot
633 you can start any kernel with it, not just Linux.
635 The name comes from the similarity to the exec system call.
637 It is an ongoing process to be certain the hardware in a machine
638 is properly shutdown, so do not be surprised if this code does not
639 initially work for you. It may help to enable device hotplugging
640 support. As of this writing the exact hardware interface is
641 strongly in flux, so no good recommendation can be made.
644 bool "kernel crash dumps (EXPERIMENTAL)"
645 depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP
647 Generate crash dump after being started by kexec.
648 This should be normally only set in special crash dump kernels
649 which are loaded in the main kernel with kexec-tools into
650 a specially reserved region and then later executed after
651 a crash by kdump/kexec. The crash dump kernel must be compiled
652 to a memory address not used by the main kernel using
655 For more details see Documentation/kdump/kdump.txt
658 bool "kexec jump (EXPERIMENTAL)"
659 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
661 Jump between original kernel and kexeced kernel and invoke
665 bool "Enable seccomp to safely compute untrusted bytecode"
668 This kernel feature is useful for number crunching applications
669 that may need to compute untrusted bytecode during their
670 execution. By using pipes or other transports made available to
671 the process as file descriptors supporting the read/write
672 syscalls, it's possible to isolate those applications in
673 their own address space using seccomp. Once seccomp is
674 enabled via prctl, it cannot be disabled and the task is only
675 allowed to execute a few safe syscalls defined by each seccomp
681 bool "Symmetric multi-processing support"
682 depends on SYS_SUPPORTS_SMP
683 select USE_GENERIC_SMP_HELPERS
685 This enables support for systems with more than one CPU. If you have
686 a system with only one CPU, like most personal computers, say N. If
687 you have a system with more than one CPU, say Y.
689 If you say N here, the kernel will run on single and multiprocessor
690 machines, but will use only one CPU of a multiprocessor machine. If
691 you say Y here, the kernel will run on many, but not all,
692 singleprocessor machines. On a singleprocessor machine, the kernel
693 will run faster if you say N here.
695 People using multiprocessor machines who say Y here should also say
696 Y to "Enhanced Real Time Clock Support", below.
698 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
699 available at <http://www.tldp.org/docs.html#howto>.
701 If you don't know what to do here, say N.
704 int "Maximum number of CPUs (2-32)"
707 default "4" if CPU_SUBTYPE_SHX3
710 This allows you to specify the maximum number of CPUs which this
711 kernel will support. The maximum supported value is 32 and the
712 minimum value which makes sense is 2.
714 This is purely to save memory - each supported CPU adds
715 approximately eight kilobytes to the kernel image.
718 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
719 depends on SMP && HOTPLUG && EXPERIMENTAL
721 Say Y here to experiment with turning CPUs off and on. CPUs
722 can be controlled through /sys/devices/system/cpu.
724 source "kernel/Kconfig.preempt"
728 depends on !SMP && SUPERH32
730 This enables support for gUSA (general UserSpace Atomicity).
731 This is the default implementation for both UP and non-ll/sc
732 CPUs, and is used by the libc, amongst others.
734 For additional information, design information can be found
735 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
737 This should only be disabled for special cases where alternate
738 atomicity implementations exist.
741 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
742 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
744 Enabling this option will allow the kernel to implement some
745 atomic operations using a software implementation of load-locked/
746 store-conditional (LLSC). On machines which do not have hardware
747 LLSC, this should be more efficient than the other alternative of
748 disabling interrupts around the atomic sequence.
750 config HW_PERF_EVENTS
751 bool "Enable hardware performance counter support for perf events"
752 depends on PERF_EVENTS && CPU_HAS_PMU
755 Enable hardware performance counter support for perf events. If
756 disabled, perf events will use software events only.
758 source "drivers/sh/Kconfig"
764 config ZERO_PAGE_OFFSET
766 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
767 SH_7751_SOLUTION_ENGINE
768 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
769 default "0x00002000" if PAGE_SIZE_8KB
772 This sets the default offset of zero page.
774 config BOOT_LINK_OFFSET
776 default "0x00210000" if SH_SHMIN
777 default "0x00400000" if SH_CAYMAN
778 default "0x00810000" if SH_7780_SOLUTION_ENGINE
779 default "0x009e0000" if SH_TITAN
780 default "0x01800000" if SH_SDK7780
781 default "0x02000000" if SH_EDOSK7760
784 This option allows you to set the link address offset of the zImage.
785 This can be useful if you are on a board which has a small amount of
790 default "0x00001000" if PAGE_SIZE_4KB
791 default "0x00002000" if PAGE_SIZE_8KB
792 default "0x00004000" if PAGE_SIZE_16KB
793 default "0x00010000" if PAGE_SIZE_64KB
796 config ROMIMAGE_MMCIF
797 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
798 depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL
800 Say Y here to include experimental MMCIF loading code in
801 romImage. With this enabled it is possible to write the romImage
802 kernel image to an MMC card and boot the kernel straight from
803 the reset vector. At reset the processor Mask ROM will load the
804 first part of the romImage which in turn loads the rest the kernel
805 image to RAM using the MMCIF hardware block.
808 prompt "Kernel command line"
810 default CMDLINE_OVERWRITE
812 Setting this option allows the kernel command line arguments
815 config CMDLINE_OVERWRITE
816 bool "Overwrite bootloader kernel arguments"
818 Given string will overwrite any arguments passed in by
821 config CMDLINE_EXTEND
822 bool "Extend bootloader kernel arguments"
824 Given string will be concatenated with arguments passed in
830 string "Kernel command line arguments string"
831 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
832 default "console=ttySC1,115200"
839 tristate "SuperHyway Bus support"
840 depends on CPU_SUBTYPE_SH4_202
843 bool "Maple Bus support"
844 depends on SH_DREAMCAST
846 The Maple Bus is SEGA's serial communication bus for peripherals
847 on the Dreamcast. Without this bus support you won't be able to
848 get your Dreamcast keyboard etc to work, so most users
849 probably want to say 'Y' here, unless you are only using the
850 Dreamcast with a serial line terminal or a remote network
855 depends on SYS_SUPPORTS_PCI
858 Find out whether you have a PCI motherboard. PCI is the name of a
859 bus system, i.e. the way the CPU talks to the other stuff inside
860 your box. If you have PCI, say Y, otherwise N.
865 source "drivers/pci/pcie/Kconfig"
867 source "drivers/pci/Kconfig"
869 source "drivers/pcmcia/Kconfig"
871 source "drivers/pci/hotplug/Kconfig"
875 menu "Executable file formats"
877 source "fs/Kconfig.binfmt"
881 menu "Power management options (EXPERIMENTAL)"
882 depends on EXPERIMENTAL
884 source "kernel/power/Kconfig"
886 source "drivers/cpuidle/Kconfig"
892 source "drivers/Kconfig"
896 source "arch/sh/Kconfig.debug"
898 source "security/Kconfig"
900 source "crypto/Kconfig"
902 menuconfig VIRTUALIZATION
903 bool "Virtualization"
906 Say Y here to get to see options for using your Linux host to run other
907 operating systems inside virtual machines (guests).
908 This option alone does not add any kernel code.
910 If you say N, all options in this submenu will be skipped and disabled.
914 source drivers/virtio/Kconfig
916 endif # VIRTUALIZATION