2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
6 mainmenu "Linux/SuperH Kernel Configuration"
15 select HAVE_GENERIC_DMA_COHERENT
16 select HAVE_IOREMAP_PROT if MMU
17 select HAVE_ARCH_TRACEHOOK
18 select HAVE_DMA_API_DEBUG
19 select HAVE_PERF_EVENTS
20 select HAVE_KERNEL_GZIP
21 select HAVE_KERNEL_BZIP2
22 select HAVE_KERNEL_LZMA
23 select HAVE_SYSCALL_TRACEPOINTS
25 select GENERIC_ATOMIC64
27 The SuperH is a RISC processor targeted for use in embedded systems
28 and consumer electronics; it was also used in the Sega Dreamcast
29 gaming console. The SuperH port has a home page at
30 <http://www.linux-sh.org/>.
35 select HAVE_KRETPROBES
36 select HAVE_FUNCTION_TRACER
37 select HAVE_FTRACE_MCOUNT_RECORD
38 select HAVE_DYNAMIC_FTRACE
39 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
40 select HAVE_FTRACE_SYSCALLS
41 select HAVE_FUNCTION_GRAPH_TRACER
43 select ARCH_HIBERNATION_POSSIBLE if MMU
46 def_bool ARCH = "sh64"
50 default "arch/sh/configs/shx3_defconfig" if SUPERH32
51 default "arch/sh/configs/cayman_defconfig" if SUPERH64
53 config RWSEM_GENERIC_SPINLOCK
56 config RWSEM_XCHGADD_ALGORITHM
61 depends on BUG && SUPERH32
67 config GENERIC_FIND_NEXT_BIT
70 config GENERIC_HWEIGHT
73 config GENERIC_HARDIRQS
76 config GENERIC_HARDIRQS_NO__DO_IRQ
79 config GENERIC_IRQ_PROBE
88 config GENERIC_CALIBRATE_DELAY
97 config GENERIC_CLOCKEVENTS
100 config GENERIC_CLOCKEVENTS_BROADCAST
103 config GENERIC_CMOS_UPDATE
105 depends on SH_SH03 || SH_DREAMCAST
107 config GENERIC_LOCKBREAK
109 depends on SMP && PREEMPT
111 config SYS_SUPPORTS_PM
115 config ARCH_SUSPEND_POSSIBLE
118 config ARCH_HIBERNATION_POSSIBLE
121 config SYS_SUPPORTS_APM_EMULATION
123 select ARCH_SUSPEND_POSSIBLE
125 config SYS_SUPPORTS_SMP
128 config SYS_SUPPORTS_NUMA
131 config SYS_SUPPORTS_PCI
134 config SYS_SUPPORTS_CMT
137 config SYS_SUPPORTS_MTU2
140 config SYS_SUPPORTS_TMU
143 config STACKTRACE_SUPPORT
146 config LOCKDEP_SUPPORT
149 config HAVE_LATENCYTOP_SUPPORT
153 config ARCH_HAS_ILOG2_U32
156 config ARCH_HAS_ILOG2_U64
159 config ARCH_NO_VIRT_TO_BUS
162 config ARCH_HAS_DEFAULT_IDLE
165 config ARCH_HAS_CPU_IDLE_WAIT
171 source "init/Kconfig"
173 source "kernel/Kconfig.freezer"
189 select CPU_HAS_INTEVT
191 select SYS_SUPPORTS_TMU
195 select CPU_HAS_INTEVT
197 select CPU_HAS_FPU if !CPU_SH4AL_DSP
198 select SYS_SUPPORTS_TMU
212 select SYS_SUPPORTS_TMU
222 select ARCH_SUSPEND_POSSIBLE
229 prompt "Processor sub-type selection"
235 # SH-2 Processor Support
237 config CPU_SUBTYPE_SH7619
238 bool "Support SH7619 processor"
240 select SYS_SUPPORTS_CMT
242 # SH-2A Processor Support
244 config CPU_SUBTYPE_SH7201
245 bool "Support SH7201 processor"
248 select SYS_SUPPORTS_MTU2
250 config CPU_SUBTYPE_SH7203
251 bool "Support SH7203 processor"
254 select SYS_SUPPORTS_CMT
255 select SYS_SUPPORTS_MTU2
257 config CPU_SUBTYPE_SH7206
258 bool "Support SH7206 processor"
260 select SYS_SUPPORTS_CMT
261 select SYS_SUPPORTS_MTU2
263 config CPU_SUBTYPE_SH7263
264 bool "Support SH7263 processor"
267 select SYS_SUPPORTS_CMT
268 select SYS_SUPPORTS_MTU2
270 config CPU_SUBTYPE_MXG
271 bool "Support MX-G processor"
273 select SYS_SUPPORTS_MTU2
275 Select MX-G if running on an R8A03022BG part.
277 # SH-3 Processor Support
279 config CPU_SUBTYPE_SH7705
280 bool "Support SH7705 processor"
283 config CPU_SUBTYPE_SH7706
284 bool "Support SH7706 processor"
287 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
289 config CPU_SUBTYPE_SH7707
290 bool "Support SH7707 processor"
293 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
295 config CPU_SUBTYPE_SH7708
296 bool "Support SH7708 processor"
299 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
300 if you have a 100 Mhz SH-3 HD6417708R CPU.
302 config CPU_SUBTYPE_SH7709
303 bool "Support SH7709 processor"
306 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
308 config CPU_SUBTYPE_SH7710
309 bool "Support SH7710 processor"
313 Select SH7710 if you have a SH3-DSP SH7710 CPU.
315 config CPU_SUBTYPE_SH7712
316 bool "Support SH7712 processor"
320 Select SH7712 if you have a SH3-DSP SH7712 CPU.
322 config CPU_SUBTYPE_SH7720
323 bool "Support SH7720 processor"
326 select SYS_SUPPORTS_CMT
328 Select SH7720 if you have a SH3-DSP SH7720 CPU.
330 config CPU_SUBTYPE_SH7721
331 bool "Support SH7721 processor"
334 select SYS_SUPPORTS_CMT
336 Select SH7721 if you have a SH3-DSP SH7721 CPU.
338 # SH-4 Processor Support
340 config CPU_SUBTYPE_SH7750
341 bool "Support SH7750 processor"
344 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
346 config CPU_SUBTYPE_SH7091
347 bool "Support SH7091 processor"
350 Select SH7091 if you have an SH-4 based Sega device (such as
351 the Dreamcast, Naomi, and Naomi 2).
353 config CPU_SUBTYPE_SH7750R
354 bool "Support SH7750R processor"
357 config CPU_SUBTYPE_SH7750S
358 bool "Support SH7750S processor"
361 config CPU_SUBTYPE_SH7751
362 bool "Support SH7751 processor"
365 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
366 or if you have a HD6417751R CPU.
368 config CPU_SUBTYPE_SH7751R
369 bool "Support SH7751R processor"
372 config CPU_SUBTYPE_SH7760
373 bool "Support SH7760 processor"
376 config CPU_SUBTYPE_SH4_202
377 bool "Support SH4-202 processor"
380 # SH-4A Processor Support
382 config CPU_SUBTYPE_SH7723
383 bool "Support SH7723 processor"
387 select ARCH_SPARSEMEM_ENABLE
388 select SYS_SUPPORTS_CMT
390 Select SH7723 if you have an SH-MobileR2 CPU.
392 config CPU_SUBTYPE_SH7724
393 bool "Support SH7724 processor"
397 select ARCH_SPARSEMEM_ENABLE
398 select SYS_SUPPORTS_CMT
400 Select SH7724 if you have an SH-MobileR2R CPU.
402 config CPU_SUBTYPE_SH7757
403 bool "Support SH7757 processor"
407 Select SH7757 if you have a SH4A SH7757 CPU.
409 config CPU_SUBTYPE_SH7763
410 bool "Support SH7763 processor"
413 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
415 config CPU_SUBTYPE_SH7770
416 bool "Support SH7770 processor"
419 config CPU_SUBTYPE_SH7780
420 bool "Support SH7780 processor"
423 config CPU_SUBTYPE_SH7785
424 bool "Support SH7785 processor"
427 select ARCH_SPARSEMEM_ENABLE
428 select SYS_SUPPORTS_NUMA
430 config CPU_SUBTYPE_SH7786
431 bool "Support SH7786 processor"
434 select CPU_HAS_PTEAEX
435 select ARCH_SPARSEMEM_ENABLE
436 select SYS_SUPPORTS_NUMA
437 select SYS_SUPPORTS_SMP
438 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
440 config CPU_SUBTYPE_SHX3
441 bool "Support SH-X3 processor"
444 select ARCH_SPARSEMEM_ENABLE
445 select SYS_SUPPORTS_NUMA
446 select SYS_SUPPORTS_SMP
447 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
449 # SH4AL-DSP Processor Support
451 config CPU_SUBTYPE_SH7343
452 bool "Support SH7343 processor"
455 select SYS_SUPPORTS_CMT
457 config CPU_SUBTYPE_SH7722
458 bool "Support SH7722 processor"
462 select ARCH_SPARSEMEM_ENABLE
463 select SYS_SUPPORTS_NUMA
464 select SYS_SUPPORTS_CMT
466 config CPU_SUBTYPE_SH7366
467 bool "Support SH7366 processor"
471 select ARCH_SPARSEMEM_ENABLE
472 select SYS_SUPPORTS_NUMA
473 select SYS_SUPPORTS_CMT
482 prompt "Processor sub-type selection"
484 # SH-5 Processor Support
486 config CPU_SUBTYPE_SH5_101
487 bool "Support SH5-101 processor"
490 config CPU_SUBTYPE_SH5_103
491 bool "Support SH5-103 processor"
498 source "arch/sh/mm/Kconfig"
500 source "arch/sh/Kconfig.cpu"
502 source "arch/sh/boards/Kconfig"
504 menu "Timer and clock configuration"
507 bool "TMU timer driver"
508 depends on SYS_SUPPORTS_TMU
511 This enables the build of the TMU timer driver.
514 bool "CMT timer driver"
515 depends on SYS_SUPPORTS_CMT
518 This enables build of the CMT timer driver.
521 bool "MTU2 timer driver"
522 depends on SYS_SUPPORTS_MTU2
525 This enables build of the MTU2 timer driver.
528 int "Peripheral clock frequency (in Hz)"
529 default "27000000" if CPU_SUBTYPE_SH7343
530 default "31250000" if CPU_SUBTYPE_SH7619
531 default "32000000" if CPU_SUBTYPE_SH7722
532 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
533 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
534 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
535 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
536 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
537 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
538 default "66000000" if CPU_SUBTYPE_SH4_202
541 This option is used to specify the peripheral clock frequency.
542 This is necessary for determining the reference clock value on
543 platforms lacking an RTC.
548 config SH_CLK_CPG_LEGACY
549 depends on SH_CLK_CPG
550 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
553 int "CPU Mode Pin Setting"
555 default 6 if CPU_SUBTYPE_SH7206
556 default 5 if CPU_SUBTYPE_SH7619
559 MD2 - MD0 pin setting.
561 source "kernel/time/Kconfig"
565 menu "CPU Frequency scaling"
567 source "drivers/cpufreq/Kconfig"
570 tristate "SuperH CPU Frequency driver"
572 select CPU_FREQ_TABLE
574 This adds the cpufreq driver for SuperH. Any CPU that supports
575 clock rate rounding through the clock framework can use this
576 driver. While it will make the kernel slightly larger, this is
577 harmless for CPUs that don't support rate rounding. The driver
578 will also generate a notice in the boot log before disabling
579 itself if the CPU in question is not capable of rate rounding.
581 For details, take a look at <file:Documentation/cpu-freq>.
587 source "arch/sh/drivers/Kconfig"
591 menu "Kernel features"
593 source kernel/Kconfig.hz
596 bool "kexec system call (EXPERIMENTAL)"
597 depends on SUPERH32 && EXPERIMENTAL && MMU
599 kexec is a system call that implements the ability to shutdown your
600 current kernel, and to start another kernel. It is like a reboot
601 but it is independent of the system firmware. And like a reboot
602 you can start any kernel with it, not just Linux.
604 The name comes from the similarity to the exec system call.
606 It is an ongoing process to be certain the hardware in a machine
607 is properly shutdown, so do not be surprised if this code does not
608 initially work for you. It may help to enable device hotplugging
609 support. As of this writing the exact hardware interface is
610 strongly in flux, so no good recommendation can be made.
613 bool "kernel crash dumps (EXPERIMENTAL)"
614 depends on SUPERH32 && EXPERIMENTAL
616 Generate crash dump after being started by kexec.
617 This should be normally only set in special crash dump kernels
618 which are loaded in the main kernel with kexec-tools into
619 a specially reserved region and then later executed after
620 a crash by kdump/kexec. The crash dump kernel must be compiled
621 to a memory address not used by the main kernel using
624 For more details see Documentation/kdump/kdump.txt
627 bool "kexec jump (EXPERIMENTAL)"
628 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
630 Jump between original kernel and kexeced kernel and invoke
634 bool "Enable seccomp to safely compute untrusted bytecode"
637 This kernel feature is useful for number crunching applications
638 that may need to compute untrusted bytecode during their
639 execution. By using pipes or other transports made available to
640 the process as file descriptors supporting the read/write
641 syscalls, it's possible to isolate those applications in
642 their own address space using seccomp. Once seccomp is
643 enabled via prctl, it cannot be disabled and the task is only
644 allowed to execute a few safe syscalls defined by each seccomp
650 bool "Symmetric multi-processing support"
651 depends on SYS_SUPPORTS_SMP
652 select USE_GENERIC_SMP_HELPERS
654 This enables support for systems with more than one CPU. If you have
655 a system with only one CPU, like most personal computers, say N. If
656 you have a system with more than one CPU, say Y.
658 If you say N here, the kernel will run on single and multiprocessor
659 machines, but will use only one CPU of a multiprocessor machine. If
660 you say Y here, the kernel will run on many, but not all,
661 singleprocessor machines. On a singleprocessor machine, the kernel
662 will run faster if you say N here.
664 People using multiprocessor machines who say Y here should also say
665 Y to "Enhanced Real Time Clock Support", below.
667 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
668 available at <http://www.tldp.org/docs.html#howto>.
670 If you don't know what to do here, say N.
673 int "Maximum number of CPUs (2-32)"
676 default "4" if CPU_SUBTYPE_SHX3
679 This allows you to specify the maximum number of CPUs which this
680 kernel will support. The maximum supported value is 32 and the
681 minimum value which makes sense is 2.
683 This is purely to save memory - each supported CPU adds
684 approximately eight kilobytes to the kernel image.
686 source "kernel/Kconfig.preempt"
690 depends on !SMP && SUPERH32
692 This enables support for gUSA (general UserSpace Atomicity).
693 This is the default implementation for both UP and non-ll/sc
694 CPUs, and is used by the libc, amongst others.
696 For additional information, design information can be found
697 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
699 This should only be disabled for special cases where alternate
700 atomicity implementations exist.
703 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
704 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
706 Enabling this option will allow the kernel to implement some
707 atomic operations using a software implementation of load-locked/
708 store-conditional (LLSC). On machines which do not have hardware
709 LLSC, this should be more efficient than the other alternative of
710 disabling interrupts around the atomic sequence.
713 bool "Support sparse irq numbering"
714 depends on EXPERIMENTAL
716 This enables support for sparse irqs. This is useful in general
717 as most CPUs have a fairly sparse array of IRQ vectors, which
718 the irq_desc then maps directly on to. Systems with a high
719 number of off-chip IRQs will want to treat this as
720 experimental until they have been independently verified.
722 If you don't know what to do here, say N.
728 config ZERO_PAGE_OFFSET
730 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
731 SH_7751_SOLUTION_ENGINE
732 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
733 default "0x00002000" if PAGE_SIZE_8KB
736 This sets the default offset of zero page.
738 config BOOT_LINK_OFFSET
740 default "0x00210000" if SH_SHMIN
741 default "0x00400000" if SH_CAYMAN
742 default "0x00810000" if SH_7780_SOLUTION_ENGINE
743 default "0x009e0000" if SH_TITAN
744 default "0x01800000" if SH_SDK7780
745 default "0x02000000" if SH_EDOSK7760
748 This option allows you to set the link address offset of the zImage.
749 This can be useful if you are on a board which has a small amount of
754 default "0x00001000" if PAGE_SIZE_4KB
755 default "0x00002000" if PAGE_SIZE_8KB
756 default "0x00004000" if PAGE_SIZE_16KB
757 default "0x00010000" if PAGE_SIZE_64KB
761 bool "Wakeup UBC on startup"
762 depends on CPU_SH4 && !CPU_SH4A
764 Selecting this option will wakeup the User Break Controller (UBC) on
765 startup. Although the UBC is left in an awake state when the processor
766 comes up, some boot loaders misbehave by putting the UBC to sleep in a
767 power saving state, which causes issues with things like ptrace().
772 prompt "Kernel command line"
774 default CMDLINE_OVERWRITE
776 Setting this option allows the kernel command line arguments
779 config CMDLINE_OVERWRITE
780 bool "Overwrite bootloader kernel arguments"
782 Given string will overwrite any arguments passed in by
785 config CMDLINE_EXTEND
786 bool "Extend bootloader kernel arguments"
788 Given string will be concatenated with arguments passed in
794 string "Kernel command line arguments string"
795 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
796 default "console=ttySC1,115200"
803 tristate "SuperHyway Bus support"
804 depends on CPU_SUBTYPE_SH4_202
807 bool "Maple Bus support"
808 depends on SH_DREAMCAST
810 The Maple Bus is SEGA's serial communication bus for peripherals
811 on the Dreamcast. Without this bus support you won't be able to
812 get your Dreamcast keyboard etc to work, so most users
813 probably want to say 'Y' here, unless you are only using the
814 Dreamcast with a serial line terminal or a remote network
817 source "arch/sh/drivers/pci/Kconfig"
819 source "drivers/pci/pcie/Kconfig"
821 source "drivers/pci/Kconfig"
823 source "drivers/pcmcia/Kconfig"
825 source "drivers/pci/hotplug/Kconfig"
829 menu "Executable file formats"
831 source "fs/Kconfig.binfmt"
835 menu "Power management options (EXPERIMENTAL)"
836 depends on EXPERIMENTAL
838 source "kernel/power/Kconfig"
840 source "drivers/cpuidle/Kconfig"
846 source "drivers/Kconfig"
850 source "arch/sh/Kconfig.debug"
852 source "security/Kconfig"
854 source "crypto/Kconfig"