3 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
4 select ARCH_MIGHT_HAVE_PC_PARPORT
5 select HAVE_PATA_PLATFORM
7 select HAVE_IDE if HAS_IOPORT_MAP
9 select HAVE_MEMBLOCK_NODE_MAP
10 select ARCH_DISCARD_MEMBLOCK
12 select HAVE_GENERIC_DMA_COHERENT
13 select HAVE_ARCH_TRACEHOOK
14 select HAVE_DMA_API_DEBUG
15 select HAVE_PERF_EVENTS
16 select HAVE_DEBUG_BUGVERBOSE
17 select ARCH_HAVE_CUSTOM_GPIO_H
18 select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
19 select ARCH_HAS_GCOV_PROFILE_ALL
20 select PERF_USE_VMALLOC
21 select HAVE_DEBUG_KMEMLEAK
22 select HAVE_KERNEL_GZIP
23 select CPU_NO_EFFICIENT_FFS
24 select HAVE_KERNEL_BZIP2
25 select HAVE_KERNEL_LZMA
27 select HAVE_KERNEL_LZO
29 select ARCH_WANT_IPC_PARSE_VERSION
30 select HAVE_SYSCALL_TRACEPOINTS
31 select HAVE_REGS_AND_STACK_ACCESS_API
32 select MAY_HAVE_SPARSE_IRQ
33 select IRQ_FORCED_THREADING
35 select GENERIC_ATOMIC64
36 select GENERIC_IRQ_SHOW
37 select GENERIC_SMP_IDLE_THREAD
38 select GENERIC_IDLE_POLL_SETUP
39 select GENERIC_CLOCKEVENTS
40 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
41 select GENERIC_SCHED_CLOCK
42 select GENERIC_STRNCPY_FROM_USER
43 select GENERIC_STRNLEN_USER
44 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
45 select MODULES_USE_ELF_RELA
48 select HAVE_ARCH_AUDITSYSCALL
49 select HAVE_FUTEX_CMPXCHG if FUTEX
52 The SuperH is a RISC processor targeted for use in embedded systems
53 and consumer electronics; it was also used in the Sega Dreamcast
54 gaming console. The SuperH port has a home page at
55 <http://www.linux-sh.org/>.
60 select HAVE_KRETPROBES
61 select HAVE_IOREMAP_PROT if MMU && !X2TLB
62 select HAVE_FUNCTION_TRACER
63 select HAVE_FTRACE_MCOUNT_RECORD
64 select HAVE_DYNAMIC_FTRACE
65 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
66 select ARCH_WANT_IPC_PARSE_VERSION
67 select HAVE_FUNCTION_GRAPH_TRACER
69 select HAVE_HW_BREAKPOINT
70 select HAVE_MIXED_BREAKPOINTS_REGS
72 select ARCH_HIBERNATION_POSSIBLE if MMU
74 select HAVE_CC_STACKPROTECTOR
77 def_bool ARCH = "sh64"
78 select HAVE_EXIT_THREAD
83 default "arch/sh/configs/shx3_defconfig" if SUPERH32
84 default "arch/sh/configs/cayman_defconfig" if SUPERH64
86 config RWSEM_GENERIC_SPINLOCK
89 config RWSEM_XCHGADD_ALGORITHM
94 depends on BUG && SUPERH32
100 config GENERIC_HWEIGHT
103 config GENERIC_CALIBRATE_DELAY
106 config GENERIC_LOCKBREAK
108 depends on SMP && PREEMPT
110 config ARCH_SUSPEND_POSSIBLE
113 config ARCH_HIBERNATION_POSSIBLE
116 config SYS_SUPPORTS_APM_EMULATION
118 select ARCH_SUSPEND_POSSIBLE
120 config SYS_SUPPORTS_HUGETLBFS
123 config SYS_SUPPORTS_SMP
126 config SYS_SUPPORTS_NUMA
129 config SYS_SUPPORTS_PCI
132 config STACKTRACE_SUPPORT
135 config LOCKDEP_SUPPORT
138 config ARCH_HAS_ILOG2_U32
141 config ARCH_HAS_ILOG2_U64
146 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
147 !SH_HP6XX && !SH_SOLUTION_ENGINE
158 config DMA_NONCOHERENT
159 def_bool !DMA_COHERENT
161 config NEED_DMA_MAP_STATE
162 def_bool DMA_NONCOHERENT
164 config NEED_SG_DMA_LENGTH
167 config PGTABLE_LEVELS
171 source "init/Kconfig"
173 source "kernel/Kconfig.freezer"
187 select UNCACHED_MAPPING
193 select OF_EARLY_FLATTREE
197 select CPU_HAS_INTEVT
200 select SYS_SUPPORTS_SH_TMU
204 select CPU_HAS_INTEVT
206 select CPU_HAS_FPU if !CPU_SH4AL_DSP
208 select SYS_SUPPORTS_SH_TMU
209 select SYS_SUPPORTS_HUGETLBFS if MMU
223 select SYS_SUPPORTS_SH_TMU
224 select SYS_SUPPORTS_HUGETLBFS if MMU
232 select SYS_SUPPORTS_SMP
233 select SYS_SUPPORTS_NUMA
237 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_SH_CMT
261 config CPU_SUBTYPE_J2
262 bool "Support J2 processor"
264 select SYS_SUPPORTS_SMP
265 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
267 # SH-2A Processor Support
269 config CPU_SUBTYPE_SH7201
270 bool "Support SH7201 processor"
273 select SYS_SUPPORTS_SH_MTU2
275 config CPU_SUBTYPE_SH7203
276 bool "Support SH7203 processor"
279 select SYS_SUPPORTS_SH_CMT
280 select SYS_SUPPORTS_SH_MTU2
283 config CPU_SUBTYPE_SH7206
284 bool "Support SH7206 processor"
286 select SYS_SUPPORTS_SH_CMT
287 select SYS_SUPPORTS_SH_MTU2
289 config CPU_SUBTYPE_SH7263
290 bool "Support SH7263 processor"
293 select SYS_SUPPORTS_SH_CMT
294 select SYS_SUPPORTS_SH_MTU2
296 config CPU_SUBTYPE_SH7264
297 bool "Support SH7264 processor"
300 select SYS_SUPPORTS_SH_CMT
301 select SYS_SUPPORTS_SH_MTU2
304 config CPU_SUBTYPE_SH7269
305 bool "Support SH7269 processor"
308 select SYS_SUPPORTS_SH_CMT
309 select SYS_SUPPORTS_SH_MTU2
312 config CPU_SUBTYPE_MXG
313 bool "Support MX-G processor"
315 select SYS_SUPPORTS_SH_MTU2
317 Select MX-G if running on an R8A03022BG part.
319 # SH-3 Processor Support
321 config CPU_SUBTYPE_SH7705
322 bool "Support SH7705 processor"
325 config CPU_SUBTYPE_SH7706
326 bool "Support SH7706 processor"
329 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
331 config CPU_SUBTYPE_SH7707
332 bool "Support SH7707 processor"
335 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
337 config CPU_SUBTYPE_SH7708
338 bool "Support SH7708 processor"
341 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
342 if you have a 100 Mhz SH-3 HD6417708R CPU.
344 config CPU_SUBTYPE_SH7709
345 bool "Support SH7709 processor"
348 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
350 config CPU_SUBTYPE_SH7710
351 bool "Support SH7710 processor"
355 Select SH7710 if you have a SH3-DSP SH7710 CPU.
357 config CPU_SUBTYPE_SH7712
358 bool "Support SH7712 processor"
362 Select SH7712 if you have a SH3-DSP SH7712 CPU.
364 config CPU_SUBTYPE_SH7720
365 bool "Support SH7720 processor"
368 select SYS_SUPPORTS_SH_CMT
369 select USB_OHCI_SH if USB_OHCI_HCD
372 Select SH7720 if you have a SH3-DSP SH7720 CPU.
374 config CPU_SUBTYPE_SH7721
375 bool "Support SH7721 processor"
378 select SYS_SUPPORTS_SH_CMT
379 select USB_OHCI_SH if USB_OHCI_HCD
381 Select SH7721 if you have a SH3-DSP SH7721 CPU.
383 # SH-4 Processor Support
385 config CPU_SUBTYPE_SH7750
386 bool "Support SH7750 processor"
389 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
391 config CPU_SUBTYPE_SH7091
392 bool "Support SH7091 processor"
395 Select SH7091 if you have an SH-4 based Sega device (such as
396 the Dreamcast, Naomi, and Naomi 2).
398 config CPU_SUBTYPE_SH7750R
399 bool "Support SH7750R processor"
402 config CPU_SUBTYPE_SH7750S
403 bool "Support SH7750S processor"
406 config CPU_SUBTYPE_SH7751
407 bool "Support SH7751 processor"
410 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
411 or if you have a HD6417751R CPU.
413 config CPU_SUBTYPE_SH7751R
414 bool "Support SH7751R processor"
417 config CPU_SUBTYPE_SH7760
418 bool "Support SH7760 processor"
421 config CPU_SUBTYPE_SH4_202
422 bool "Support SH4-202 processor"
425 # SH-4A Processor Support
427 config CPU_SUBTYPE_SH7723
428 bool "Support SH7723 processor"
432 select ARCH_SPARSEMEM_ENABLE
433 select SYS_SUPPORTS_SH_CMT
436 Select SH7723 if you have an SH-MobileR2 CPU.
438 config CPU_SUBTYPE_SH7724
439 bool "Support SH7724 processor"
443 select ARCH_SPARSEMEM_ENABLE
444 select SYS_SUPPORTS_SH_CMT
447 Select SH7724 if you have an SH-MobileR2R CPU.
449 config CPU_SUBTYPE_SH7734
450 bool "Support SH7734 processor"
455 Select SH7734 if you have a SH4A SH7734 CPU.
457 config CPU_SUBTYPE_SH7757
458 bool "Support SH7757 processor"
463 Select SH7757 if you have a SH4A SH7757 CPU.
465 config CPU_SUBTYPE_SH7763
466 bool "Support SH7763 processor"
468 select USB_OHCI_SH if USB_OHCI_HCD
470 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
472 config CPU_SUBTYPE_SH7770
473 bool "Support SH7770 processor"
476 config CPU_SUBTYPE_SH7780
477 bool "Support SH7780 processor"
480 config CPU_SUBTYPE_SH7785
481 bool "Support SH7785 processor"
484 select ARCH_SPARSEMEM_ENABLE
485 select SYS_SUPPORTS_NUMA
488 config CPU_SUBTYPE_SH7786
489 bool "Support SH7786 processor"
492 select CPU_HAS_PTEAEX
493 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
494 select USB_OHCI_SH if USB_OHCI_HCD
495 select USB_EHCI_SH if USB_EHCI_HCD
498 config CPU_SUBTYPE_SHX3
499 bool "Support SH-X3 processor"
502 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
506 # SH4AL-DSP Processor Support
508 config CPU_SUBTYPE_SH7343
509 bool "Support SH7343 processor"
512 select SYS_SUPPORTS_SH_CMT
514 config CPU_SUBTYPE_SH7722
515 bool "Support SH7722 processor"
519 select ARCH_SPARSEMEM_ENABLE
520 select SYS_SUPPORTS_NUMA
521 select SYS_SUPPORTS_SH_CMT
524 config CPU_SUBTYPE_SH7366
525 bool "Support SH7366 processor"
529 select ARCH_SPARSEMEM_ENABLE
530 select SYS_SUPPORTS_NUMA
531 select SYS_SUPPORTS_SH_CMT
540 prompt "Processor sub-type selection"
542 # SH-5 Processor Support
544 config CPU_SUBTYPE_SH5_101
545 bool "Support SH5-101 processor"
548 config CPU_SUBTYPE_SH5_103
549 bool "Support SH5-103 processor"
556 source "arch/sh/mm/Kconfig"
558 source "arch/sh/Kconfig.cpu"
560 source "arch/sh/boards/Kconfig"
562 menu "Timer and clock configuration"
565 int "Peripheral clock frequency (in Hz)"
566 depends on SH_CLK_CPG_LEGACY
567 default "31250000" if CPU_SUBTYPE_SH7619
568 default "33333333" if CPU_SUBTYPE_SH7770 || \
569 CPU_SUBTYPE_SH7760 || \
570 CPU_SUBTYPE_SH7705 || \
571 CPU_SUBTYPE_SH7203 || \
572 CPU_SUBTYPE_SH7206 || \
573 CPU_SUBTYPE_SH7263 || \
575 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
576 default "66000000" if CPU_SUBTYPE_SH4_202
579 This option is used to specify the peripheral clock frequency.
580 This is necessary for determining the reference clock value on
581 platforms lacking an RTC.
586 config SH_CLK_CPG_LEGACY
587 depends on SH_CLK_CPG
588 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
589 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
590 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
595 menu "CPU Frequency scaling"
596 source "drivers/cpufreq/Kconfig"
599 source "arch/sh/drivers/Kconfig"
603 menu "Kernel features"
605 source kernel/Kconfig.hz
608 bool "kexec system call (EXPERIMENTAL)"
609 depends on SUPERH32 && MMU
612 kexec is a system call that implements the ability to shutdown your
613 current kernel, and to start another kernel. It is like a reboot
614 but it is independent of the system firmware. And like a reboot
615 you can start any kernel with it, not just Linux.
617 The name comes from the similarity to the exec system call.
619 It is an ongoing process to be certain the hardware in a machine
620 is properly shutdown, so do not be surprised if this code does not
621 initially work for you. As of this writing the exact hardware
622 interface is strongly in flux, so no good recommendation can be
626 bool "kernel crash dumps (EXPERIMENTAL)"
627 depends on SUPERH32 && BROKEN_ON_SMP
629 Generate crash dump after being started by kexec.
630 This should be normally only set in special crash dump kernels
631 which are loaded in the main kernel with kexec-tools into
632 a specially reserved region and then later executed after
633 a crash by kdump/kexec. The crash dump kernel must be compiled
634 to a memory address not used by the main kernel using
637 For more details see Documentation/kdump/kdump.txt
640 bool "kexec jump (EXPERIMENTAL)"
641 depends on SUPERH32 && KEXEC && HIBERNATION
643 Jump between original kernel and kexeced kernel and invoke
646 config PHYSICAL_START
647 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
650 This gives the physical address where the kernel is loaded
651 and is ordinarily the same as MEMORY_START.
653 Different values are primarily used in the case of kexec on panic
654 where the fail safe kernel needs to run at a different address
655 than the panic-ed kernel.
658 bool "Enable seccomp to safely compute untrusted bytecode"
661 This kernel feature is useful for number crunching applications
662 that may need to compute untrusted bytecode during their
663 execution. By using pipes or other transports made available to
664 the process as file descriptors supporting the read/write
665 syscalls, it's possible to isolate those applications in
666 their own address space using seccomp. Once seccomp is
667 enabled via prctl, it cannot be disabled and the task is only
668 allowed to execute a few safe syscalls defined by each seccomp
674 bool "Symmetric multi-processing support"
675 depends on SYS_SUPPORTS_SMP
677 This enables support for systems with more than one CPU. If you have
678 a system with only one CPU, say N. If you have a system with more
681 If you say N here, the kernel will run on uni- and multiprocessor
682 machines, but will use only one CPU of a multiprocessor machine. If
683 you say Y here, the kernel will run on many, but not all,
684 uniprocessor machines. On a uniprocessor machine, the kernel
685 will run faster if you say N here.
687 People using multiprocessor machines who say Y here should also say
688 Y to "Enhanced Real Time Clock Support", below.
690 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
691 available at <http://www.tldp.org/docs.html#howto>.
693 If you don't know what to do here, say N.
696 int "Maximum number of CPUs (2-32)"
699 default "4" if CPU_SUBTYPE_SHX3
702 This allows you to specify the maximum number of CPUs which this
703 kernel will support. The maximum supported value is 32 and the
704 minimum value which makes sense is 2.
706 This is purely to save memory - each supported CPU adds
707 approximately eight kilobytes to the kernel image.
710 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
713 Say Y here to experiment with turning CPUs off and on. CPUs
714 can be controlled through /sys/devices/system/cpu.
716 source "kernel/Kconfig.preempt"
720 depends on !SMP && SUPERH32
722 This enables support for gUSA (general UserSpace Atomicity).
723 This is the default implementation for both UP and non-ll/sc
724 CPUs, and is used by the libc, amongst others.
726 For additional information, design information can be found
727 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
729 This should only be disabled for special cases where alternate
730 atomicity implementations exist.
733 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
734 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
736 Enabling this option will allow the kernel to implement some
737 atomic operations using a software implementation of load-locked/
738 store-conditional (LLSC). On machines which do not have hardware
739 LLSC, this should be more efficient than the other alternative of
740 disabling interrupts around the atomic sequence.
742 config HW_PERF_EVENTS
743 bool "Enable hardware performance counter support for perf events"
744 depends on PERF_EVENTS && CPU_HAS_PMU
747 Enable hardware performance counter support for perf events. If
748 disabled, perf events will use software events only.
750 source "drivers/sh/Kconfig"
756 config USE_BUILTIN_DTB
757 bool "Use builtin DTB"
759 depends on SH_DEVICE_TREE
761 Link a device tree blob for particular hardware into the kernel,
762 suppressing use of the DTB pointer provided by the bootloader.
763 This option should only be used with legacy bootloaders that are
764 not capable of providing a DTB to the kernel, or for experimental
765 hardware without stable device tree bindings.
767 config BUILTIN_DTB_SOURCE
768 string "Source file for builtin DTB"
770 depends on USE_BUILTIN_DTB
772 Base name (without suffix, relative to arch/sh/boot/dts) for the
773 a DTS file that will be used to produce the DTB linked into the
776 config ZERO_PAGE_OFFSET
778 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
779 SH_7751_SOLUTION_ENGINE
780 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
781 default "0x00002000" if PAGE_SIZE_8KB
784 This sets the default offset of zero page.
786 config BOOT_LINK_OFFSET
788 default "0x00210000" if SH_SHMIN
789 default "0x00400000" if SH_CAYMAN
790 default "0x00810000" if SH_7780_SOLUTION_ENGINE
791 default "0x009e0000" if SH_TITAN
792 default "0x01800000" if SH_SDK7780
793 default "0x02000000" if SH_EDOSK7760
796 This option allows you to set the link address offset of the zImage.
797 This can be useful if you are on a board which has a small amount of
802 default "0x00001000" if PAGE_SIZE_4KB
803 default "0x00002000" if PAGE_SIZE_8KB
804 default "0x00004000" if PAGE_SIZE_16KB
805 default "0x00010000" if PAGE_SIZE_64KB
808 config ROMIMAGE_MMCIF
809 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
810 depends on CPU_SUBTYPE_SH7724
812 Say Y here to include experimental MMCIF loading code in
813 romImage. With this enabled it is possible to write the romImage
814 kernel image to an MMC card and boot the kernel straight from
815 the reset vector. At reset the processor Mask ROM will load the
816 first part of the romImage which in turn loads the rest the kernel
817 image to RAM using the MMCIF hardware block.
820 prompt "Kernel command line"
822 default CMDLINE_OVERWRITE
824 Setting this option allows the kernel command line arguments
827 config CMDLINE_OVERWRITE
828 bool "Overwrite bootloader kernel arguments"
830 Given string will overwrite any arguments passed in by
833 config CMDLINE_EXTEND
834 bool "Extend bootloader kernel arguments"
836 Given string will be concatenated with arguments passed in
842 string "Kernel command line arguments string"
843 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
844 default "console=ttySC1,115200"
851 tristate "SuperHyway Bus support"
852 depends on CPU_SUBTYPE_SH4_202
855 bool "Maple Bus support"
856 depends on SH_DREAMCAST
858 The Maple Bus is SEGA's serial communication bus for peripherals
859 on the Dreamcast. Without this bus support you won't be able to
860 get your Dreamcast keyboard etc to work, so most users
861 probably want to say 'Y' here, unless you are only using the
862 Dreamcast with a serial line terminal or a remote network
867 depends on SYS_SUPPORTS_PCI
869 select GENERIC_PCI_IOMAP
870 select NO_GENERIC_PCI_IOPORT_MAP
872 Find out whether you have a PCI motherboard. PCI is the name of a
873 bus system, i.e. the way the CPU talks to the other stuff inside
874 your box. If you have PCI, say Y, otherwise N.
879 source "drivers/pci/Kconfig"
881 source "drivers/pcmcia/Kconfig"
885 menu "Executable file formats"
887 source "fs/Kconfig.binfmt"
891 menu "Power management options (EXPERIMENTAL)"
893 source "kernel/power/Kconfig"
895 source "drivers/cpuidle/Kconfig"
901 source "drivers/Kconfig"
905 source "arch/sh/Kconfig.debug"
907 source "security/Kconfig"
909 source "crypto/Kconfig"