5 select HAVE_IDE if HAS_IOPORT
7 select HAVE_MEMBLOCK_NODE_MAP
9 select HAVE_GENERIC_DMA_COHERENT
10 select HAVE_ARCH_TRACEHOOK
11 select HAVE_DMA_API_DEBUG
14 select HAVE_PERF_EVENTS
15 select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
16 select PERF_USE_VMALLOC
17 select HAVE_KERNEL_GZIP
18 select HAVE_KERNEL_BZIP2
19 select HAVE_KERNEL_LZMA
21 select HAVE_KERNEL_LZO
22 select HAVE_SYSCALL_TRACEPOINTS
23 select HAVE_REGS_AND_STACK_ACCESS_API
24 select HAVE_GENERIC_HARDIRQS
25 select HAVE_SPARSE_IRQ
26 select IRQ_FORCED_THREADING
28 select GENERIC_ATOMIC64
29 select GENERIC_IRQ_SHOW
31 The SuperH is a RISC processor targeted for use in embedded systems
32 and consumer electronics; it was also used in the Sega Dreamcast
33 gaming console. The SuperH port has a home page at
34 <http://www.linux-sh.org/>.
39 select HAVE_KRETPROBES
40 select HAVE_IOREMAP_PROT if MMU && !X2TLB
41 select HAVE_FUNCTION_TRACER
42 select HAVE_FTRACE_MCOUNT_RECORD
43 select HAVE_DYNAMIC_FTRACE
44 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
45 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
46 select HAVE_FUNCTION_GRAPH_TRACER
48 select HAVE_HW_BREAKPOINT
49 select HAVE_MIXED_BREAKPOINTS_REGS
51 select ARCH_HIBERNATION_POSSIBLE if MMU
55 def_bool ARCH = "sh64"
59 default "arch/sh/configs/shx3_defconfig" if SUPERH32
60 default "arch/sh/configs/cayman_defconfig" if SUPERH64
62 config RWSEM_GENERIC_SPINLOCK
65 config RWSEM_XCHGADD_ALGORITHM
70 depends on BUG && SUPERH32
76 config GENERIC_HWEIGHT
85 config GENERIC_CALIBRATE_DELAY
91 config GENERIC_CLOCKEVENTS
94 config GENERIC_CLOCKEVENTS_BROADCAST
97 config GENERIC_CMOS_UPDATE
99 depends on SH_SH03 || SH_DREAMCAST
101 config GENERIC_LOCKBREAK
103 depends on SMP && PREEMPT
105 config ARCH_SUSPEND_POSSIBLE
108 config ARCH_HIBERNATION_POSSIBLE
111 config SYS_SUPPORTS_APM_EMULATION
113 select ARCH_SUSPEND_POSSIBLE
115 config SYS_SUPPORTS_HUGETLBFS
118 config SYS_SUPPORTS_SMP
121 config SYS_SUPPORTS_NUMA
124 config SYS_SUPPORTS_PCI
127 config SYS_SUPPORTS_CMT
130 config SYS_SUPPORTS_MTU2
133 config SYS_SUPPORTS_TMU
136 config STACKTRACE_SUPPORT
139 config LOCKDEP_SUPPORT
142 config HAVE_LATENCYTOP_SUPPORT
145 config ARCH_HAS_ILOG2_U32
148 config ARCH_HAS_ILOG2_U64
151 config ARCH_NO_VIRT_TO_BUS
154 config ARCH_HAS_DEFAULT_IDLE
157 config ARCH_HAS_CPU_IDLE_WAIT
162 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN
170 config DMA_NONCOHERENT
171 def_bool !DMA_COHERENT
173 config NEED_DMA_MAP_STATE
174 def_bool DMA_NONCOHERENT
176 config NEED_SG_DMA_LENGTH
179 source "init/Kconfig"
181 source "kernel/Kconfig.freezer"
194 select UNCACHED_MAPPING
198 select CPU_HAS_INTEVT
200 select SYS_SUPPORTS_TMU
204 select CPU_HAS_INTEVT
206 select CPU_HAS_FPU if !CPU_SH4AL_DSP
207 select SYS_SUPPORTS_TMU
208 select SYS_SUPPORTS_HUGETLBFS if MMU
222 select SYS_SUPPORTS_TMU
223 select SYS_SUPPORTS_HUGETLBFS if MMU
231 select SYS_SUPPORTS_SMP
232 select SYS_SUPPORTS_NUMA
236 select ARCH_SUSPEND_POSSIBLE
241 depends on CPU_SH4 || CPU_SH4A
248 prompt "Processor sub-type selection"
254 # SH-2 Processor Support
256 config CPU_SUBTYPE_SH7619
257 bool "Support SH7619 processor"
259 select SYS_SUPPORTS_CMT
261 # SH-2A Processor Support
263 config CPU_SUBTYPE_SH7201
264 bool "Support SH7201 processor"
267 select SYS_SUPPORTS_MTU2
269 config CPU_SUBTYPE_SH7203
270 bool "Support SH7203 processor"
273 select SYS_SUPPORTS_CMT
274 select SYS_SUPPORTS_MTU2
275 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_MXG
291 bool "Support MX-G processor"
293 select SYS_SUPPORTS_MTU2
295 Select MX-G if running on an R8A03022BG part.
297 # SH-3 Processor Support
299 config CPU_SUBTYPE_SH7705
300 bool "Support SH7705 processor"
303 config CPU_SUBTYPE_SH7706
304 bool "Support SH7706 processor"
307 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
309 config CPU_SUBTYPE_SH7707
310 bool "Support SH7707 processor"
313 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
315 config CPU_SUBTYPE_SH7708
316 bool "Support SH7708 processor"
319 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
320 if you have a 100 Mhz SH-3 HD6417708R CPU.
322 config CPU_SUBTYPE_SH7709
323 bool "Support SH7709 processor"
326 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
328 config CPU_SUBTYPE_SH7710
329 bool "Support SH7710 processor"
333 Select SH7710 if you have a SH3-DSP SH7710 CPU.
335 config CPU_SUBTYPE_SH7712
336 bool "Support SH7712 processor"
340 Select SH7712 if you have a SH3-DSP SH7712 CPU.
342 config CPU_SUBTYPE_SH7720
343 bool "Support SH7720 processor"
346 select SYS_SUPPORTS_CMT
347 select ARCH_WANT_OPTIONAL_GPIOLIB
348 select USB_ARCH_HAS_OHCI
349 select USB_OHCI_SH if USB_OHCI_HCD
351 Select SH7720 if you have a SH3-DSP SH7720 CPU.
353 config CPU_SUBTYPE_SH7721
354 bool "Support SH7721 processor"
357 select SYS_SUPPORTS_CMT
358 select USB_ARCH_HAS_OHCI
359 select USB_OHCI_SH if USB_OHCI_HCD
361 Select SH7721 if you have a SH3-DSP SH7721 CPU.
363 # SH-4 Processor Support
365 config CPU_SUBTYPE_SH7750
366 bool "Support SH7750 processor"
369 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
371 config CPU_SUBTYPE_SH7091
372 bool "Support SH7091 processor"
375 Select SH7091 if you have an SH-4 based Sega device (such as
376 the Dreamcast, Naomi, and Naomi 2).
378 config CPU_SUBTYPE_SH7750R
379 bool "Support SH7750R processor"
382 config CPU_SUBTYPE_SH7750S
383 bool "Support SH7750S processor"
386 config CPU_SUBTYPE_SH7751
387 bool "Support SH7751 processor"
390 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
391 or if you have a HD6417751R CPU.
393 config CPU_SUBTYPE_SH7751R
394 bool "Support SH7751R processor"
397 config CPU_SUBTYPE_SH7760
398 bool "Support SH7760 processor"
401 config CPU_SUBTYPE_SH4_202
402 bool "Support SH4-202 processor"
405 # SH-4A Processor Support
407 config CPU_SUBTYPE_SH7723
408 bool "Support SH7723 processor"
412 select ARCH_SPARSEMEM_ENABLE
413 select SYS_SUPPORTS_CMT
414 select ARCH_WANT_OPTIONAL_GPIOLIB
416 Select SH7723 if you have an SH-MobileR2 CPU.
418 config CPU_SUBTYPE_SH7724
419 bool "Support SH7724 processor"
423 select ARCH_SPARSEMEM_ENABLE
424 select SYS_SUPPORTS_CMT
425 select ARCH_WANT_OPTIONAL_GPIOLIB
427 Select SH7724 if you have an SH-MobileR2R CPU.
429 config CPU_SUBTYPE_SH7757
430 bool "Support SH7757 processor"
433 select ARCH_WANT_OPTIONAL_GPIOLIB
434 select USB_ARCH_HAS_OHCI
435 select USB_ARCH_HAS_EHCI
437 Select SH7757 if you have a SH4A SH7757 CPU.
439 config CPU_SUBTYPE_SH7763
440 bool "Support SH7763 processor"
442 select USB_ARCH_HAS_OHCI
443 select USB_OHCI_SH if USB_OHCI_HCD
445 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
447 config CPU_SUBTYPE_SH7770
448 bool "Support SH7770 processor"
451 config CPU_SUBTYPE_SH7780
452 bool "Support SH7780 processor"
455 config CPU_SUBTYPE_SH7785
456 bool "Support SH7785 processor"
459 select ARCH_SPARSEMEM_ENABLE
460 select SYS_SUPPORTS_NUMA
461 select ARCH_WANT_OPTIONAL_GPIOLIB
463 config CPU_SUBTYPE_SH7786
464 bool "Support SH7786 processor"
467 select CPU_HAS_PTEAEX
468 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
469 select ARCH_WANT_OPTIONAL_GPIOLIB
470 select USB_ARCH_HAS_OHCI
471 select USB_OHCI_SH if USB_OHCI_HCD
472 select USB_ARCH_HAS_EHCI
473 select USB_EHCI_SH if USB_EHCI_HCD
475 config CPU_SUBTYPE_SHX3
476 bool "Support SH-X3 processor"
479 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
480 select ARCH_REQUIRE_GPIOLIB
482 # SH4AL-DSP Processor Support
484 config CPU_SUBTYPE_SH7343
485 bool "Support SH7343 processor"
488 select SYS_SUPPORTS_CMT
490 config CPU_SUBTYPE_SH7722
491 bool "Support SH7722 processor"
495 select ARCH_SPARSEMEM_ENABLE
496 select SYS_SUPPORTS_NUMA
497 select SYS_SUPPORTS_CMT
498 select ARCH_WANT_OPTIONAL_GPIOLIB
500 config CPU_SUBTYPE_SH7366
501 bool "Support SH7366 processor"
505 select ARCH_SPARSEMEM_ENABLE
506 select SYS_SUPPORTS_NUMA
507 select SYS_SUPPORTS_CMT
516 prompt "Processor sub-type selection"
518 # SH-5 Processor Support
520 config CPU_SUBTYPE_SH5_101
521 bool "Support SH5-101 processor"
524 config CPU_SUBTYPE_SH5_103
525 bool "Support SH5-103 processor"
532 source "arch/sh/mm/Kconfig"
534 source "arch/sh/Kconfig.cpu"
536 source "arch/sh/boards/Kconfig"
538 menu "Timer and clock configuration"
541 bool "TMU timer driver"
542 depends on SYS_SUPPORTS_TMU
545 This enables the build of the TMU timer driver.
548 bool "CMT timer driver"
549 depends on SYS_SUPPORTS_CMT
552 This enables build of the CMT timer driver.
555 bool "MTU2 timer driver"
556 depends on SYS_SUPPORTS_MTU2
559 This enables build of the MTU2 timer driver.
562 int "Peripheral clock frequency (in Hz)"
563 depends on SH_CLK_CPG_LEGACY
564 default "31250000" if CPU_SUBTYPE_SH7619
565 default "33333333" if CPU_SUBTYPE_SH7770 || \
566 CPU_SUBTYPE_SH7760 || \
567 CPU_SUBTYPE_SH7705 || \
568 CPU_SUBTYPE_SH7203 || \
569 CPU_SUBTYPE_SH7206 || \
570 CPU_SUBTYPE_SH7263 || \
572 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
573 default "66000000" if CPU_SUBTYPE_SH4_202
576 This option is used to specify the peripheral clock frequency.
577 This is necessary for determining the reference clock value on
578 platforms lacking an RTC.
583 config SH_CLK_CPG_LEGACY
584 depends on SH_CLK_CPG
585 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
586 !CPU_SHX3 && !CPU_SUBTYPE_SH7757
588 source "kernel/time/Kconfig"
592 menu "CPU Frequency scaling"
594 source "drivers/cpufreq/Kconfig"
597 tristate "SuperH CPU Frequency driver"
599 select CPU_FREQ_TABLE
601 This adds the cpufreq driver for SuperH. Any CPU that supports
602 clock rate rounding through the clock framework can use this
603 driver. While it will make the kernel slightly larger, this is
604 harmless for CPUs that don't support rate rounding. The driver
605 will also generate a notice in the boot log before disabling
606 itself if the CPU in question is not capable of rate rounding.
608 For details, take a look at <file:Documentation/cpu-freq>.
614 source "arch/sh/drivers/Kconfig"
618 menu "Kernel features"
620 source kernel/Kconfig.hz
623 bool "kexec system call (EXPERIMENTAL)"
624 depends on SUPERH32 && EXPERIMENTAL && MMU
626 kexec is a system call that implements the ability to shutdown your
627 current kernel, and to start another kernel. It is like a reboot
628 but it is independent of the system firmware. And like a reboot
629 you can start any kernel with it, not just Linux.
631 The name comes from the similarity to the exec system call.
633 It is an ongoing process to be certain the hardware in a machine
634 is properly shutdown, so do not be surprised if this code does not
635 initially work for you. It may help to enable device hotplugging
636 support. As of this writing the exact hardware interface is
637 strongly in flux, so no good recommendation can be made.
640 bool "kernel crash dumps (EXPERIMENTAL)"
641 depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP
643 Generate crash dump after being started by kexec.
644 This should be normally only set in special crash dump kernels
645 which are loaded in the main kernel with kexec-tools into
646 a specially reserved region and then later executed after
647 a crash by kdump/kexec. The crash dump kernel must be compiled
648 to a memory address not used by the main kernel using
651 For more details see Documentation/kdump/kdump.txt
654 bool "kexec jump (EXPERIMENTAL)"
655 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
657 Jump between original kernel and kexeced kernel and invoke
660 config PHYSICAL_START
661 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
664 This gives the physical address where the kernel is loaded
665 and is ordinarily the same as MEMORY_START.
667 Different values are primarily used in the case of kexec on panic
668 where the fail safe kernel needs to run at a different address
669 than the panic-ed kernel.
672 bool "Enable seccomp to safely compute untrusted bytecode"
675 This kernel feature is useful for number crunching applications
676 that may need to compute untrusted bytecode during their
677 execution. By using pipes or other transports made available to
678 the process as file descriptors supporting the read/write
679 syscalls, it's possible to isolate those applications in
680 their own address space using seccomp. Once seccomp is
681 enabled via prctl, it cannot be disabled and the task is only
682 allowed to execute a few safe syscalls defined by each seccomp
688 bool "Symmetric multi-processing support"
689 depends on SYS_SUPPORTS_SMP
690 select USE_GENERIC_SMP_HELPERS
692 This enables support for systems with more than one CPU. If you have
693 a system with only one CPU, like most personal computers, say N. If
694 you have a system with more than one CPU, say Y.
696 If you say N here, the kernel will run on single and multiprocessor
697 machines, but will use only one CPU of a multiprocessor machine. If
698 you say Y here, the kernel will run on many, but not all,
699 singleprocessor machines. On a singleprocessor machine, the kernel
700 will run faster if you say N here.
702 People using multiprocessor machines who say Y here should also say
703 Y to "Enhanced Real Time Clock Support", below.
705 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
706 available at <http://www.tldp.org/docs.html#howto>.
708 If you don't know what to do here, say N.
711 int "Maximum number of CPUs (2-32)"
714 default "4" if CPU_SUBTYPE_SHX3
717 This allows you to specify the maximum number of CPUs which this
718 kernel will support. The maximum supported value is 32 and the
719 minimum value which makes sense is 2.
721 This is purely to save memory - each supported CPU adds
722 approximately eight kilobytes to the kernel image.
725 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
726 depends on SMP && HOTPLUG && EXPERIMENTAL
728 Say Y here to experiment with turning CPUs off and on. CPUs
729 can be controlled through /sys/devices/system/cpu.
731 source "kernel/Kconfig.preempt"
735 depends on !SMP && SUPERH32
737 This enables support for gUSA (general UserSpace Atomicity).
738 This is the default implementation for both UP and non-ll/sc
739 CPUs, and is used by the libc, amongst others.
741 For additional information, design information can be found
742 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
744 This should only be disabled for special cases where alternate
745 atomicity implementations exist.
748 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
749 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
751 Enabling this option will allow the kernel to implement some
752 atomic operations using a software implementation of load-locked/
753 store-conditional (LLSC). On machines which do not have hardware
754 LLSC, this should be more efficient than the other alternative of
755 disabling interrupts around the atomic sequence.
757 config HW_PERF_EVENTS
758 bool "Enable hardware performance counter support for perf events"
759 depends on PERF_EVENTS && CPU_HAS_PMU
762 Enable hardware performance counter support for perf events. If
763 disabled, perf events will use software events only.
765 source "drivers/sh/Kconfig"
771 config ZERO_PAGE_OFFSET
773 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
774 SH_7751_SOLUTION_ENGINE
775 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
776 default "0x00002000" if PAGE_SIZE_8KB
779 This sets the default offset of zero page.
781 config BOOT_LINK_OFFSET
783 default "0x00210000" if SH_SHMIN
784 default "0x00400000" if SH_CAYMAN
785 default "0x00810000" if SH_7780_SOLUTION_ENGINE
786 default "0x009e0000" if SH_TITAN
787 default "0x01800000" if SH_SDK7780
788 default "0x02000000" if SH_EDOSK7760
791 This option allows you to set the link address offset of the zImage.
792 This can be useful if you are on a board which has a small amount of
797 default "0x00001000" if PAGE_SIZE_4KB
798 default "0x00002000" if PAGE_SIZE_8KB
799 default "0x00004000" if PAGE_SIZE_16KB
800 default "0x00010000" if PAGE_SIZE_64KB
803 config ROMIMAGE_MMCIF
804 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
805 depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL
807 Say Y here to include experimental MMCIF loading code in
808 romImage. With this enabled it is possible to write the romImage
809 kernel image to an MMC card and boot the kernel straight from
810 the reset vector. At reset the processor Mask ROM will load the
811 first part of the romImage which in turn loads the rest the kernel
812 image to RAM using the MMCIF hardware block.
815 prompt "Kernel command line"
817 default CMDLINE_OVERWRITE
819 Setting this option allows the kernel command line arguments
822 config CMDLINE_OVERWRITE
823 bool "Overwrite bootloader kernel arguments"
825 Given string will overwrite any arguments passed in by
828 config CMDLINE_EXTEND
829 bool "Extend bootloader kernel arguments"
831 Given string will be concatenated with arguments passed in
837 string "Kernel command line arguments string"
838 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
839 default "console=ttySC1,115200"
846 tristate "SuperHyway Bus support"
847 depends on CPU_SUBTYPE_SH4_202
850 bool "Maple Bus support"
851 depends on SH_DREAMCAST
853 The Maple Bus is SEGA's serial communication bus for peripherals
854 on the Dreamcast. Without this bus support you won't be able to
855 get your Dreamcast keyboard etc to work, so most users
856 probably want to say 'Y' here, unless you are only using the
857 Dreamcast with a serial line terminal or a remote network
862 depends on SYS_SUPPORTS_PCI
865 Find out whether you have a PCI motherboard. PCI is the name of a
866 bus system, i.e. the way the CPU talks to the other stuff inside
867 your box. If you have PCI, say Y, otherwise N.
872 source "drivers/pci/pcie/Kconfig"
874 source "drivers/pci/Kconfig"
876 source "drivers/pcmcia/Kconfig"
878 source "drivers/pci/hotplug/Kconfig"
882 menu "Executable file formats"
884 source "fs/Kconfig.binfmt"
888 menu "Power management options (EXPERIMENTAL)"
889 depends on EXPERIMENTAL
891 source "kernel/power/Kconfig"
893 source "drivers/cpuidle/Kconfig"
899 source "drivers/Kconfig"
903 source "arch/sh/Kconfig.debug"
905 source "security/Kconfig"
907 source "crypto/Kconfig"