2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
6 mainmenu "Linux/SuperH Kernel Configuration"
14 select HAVE_GENERIC_DMA_COHERENT
15 select HAVE_IOREMAP_PROT if MMU
16 select HAVE_ARCH_TRACEHOOK
17 select HAVE_DMA_API_DEBUG
20 The SuperH is a RISC processor targeted for use in embedded systems
21 and consumer electronics; it was also used in the Sega Dreamcast
22 gaming console. The SuperH port has a home page at
23 <http://www.linux-sh.org/>.
28 select HAVE_KRETPROBES
29 select HAVE_FUNCTION_TRACER
30 select HAVE_FTRACE_MCOUNT_RECORD
31 select HAVE_DYNAMIC_FTRACE
33 select ARCH_HIBERNATION_POSSIBLE if MMU
36 def_bool ARCH = "sh64"
40 default "arch/sh/configs/shx3_defconfig" if SUPERH32
41 default "arch/sh/configs/cayman_defconfig" if SUPERH64
43 config RWSEM_GENERIC_SPINLOCK
46 config RWSEM_XCHGADD_ALGORITHM
51 depends on BUG && SUPERH32
57 config GENERIC_FIND_NEXT_BIT
60 config GENERIC_HWEIGHT
63 config GENERIC_HARDIRQS
66 config GENERIC_HARDIRQS_NO__DO_IRQ
69 config GENERIC_IRQ_PROBE
75 config GENERIC_CALIBRATE_DELAY
84 config GENERIC_CLOCKEVENTS
87 config GENERIC_CLOCKEVENTS_BROADCAST
90 config GENERIC_CMOS_UPDATE
92 depends on SH_SH03 || SH_DREAMCAST
94 config GENERIC_LOCKBREAK
96 depends on SMP && PREEMPT
98 config SYS_SUPPORTS_PM
102 config ARCH_SUSPEND_POSSIBLE
105 config ARCH_HIBERNATION_POSSIBLE
108 config SYS_SUPPORTS_APM_EMULATION
110 select ARCH_SUSPEND_POSSIBLE
112 config SYS_SUPPORTS_SMP
115 config SYS_SUPPORTS_NUMA
118 config SYS_SUPPORTS_PCI
121 config SYS_SUPPORTS_CMT
124 config SYS_SUPPORTS_MTU2
127 config SYS_SUPPORTS_TMU
130 config STACKTRACE_SUPPORT
133 config LOCKDEP_SUPPORT
136 config HAVE_LATENCYTOP_SUPPORT
140 config ARCH_HAS_ILOG2_U32
143 config ARCH_HAS_ILOG2_U64
146 config ARCH_NO_VIRT_TO_BUS
149 config ARCH_HAS_DEFAULT_IDLE
155 source "init/Kconfig"
157 source "kernel/Kconfig.freezer"
173 select CPU_HAS_INTEVT
175 select SYS_SUPPORTS_TMU
179 select CPU_HAS_INTEVT
181 select CPU_HAS_FPU if !CPU_SH4AL_DSP
182 select SYS_SUPPORTS_TMU
196 select SYS_SUPPORTS_TMU
206 select ARCH_SUSPEND_POSSIBLE
211 prompt "Processor sub-type selection"
217 # SH-2 Processor Support
219 config CPU_SUBTYPE_SH7619
220 bool "Support SH7619 processor"
222 select SYS_SUPPORTS_CMT
224 # SH-2A Processor Support
226 config CPU_SUBTYPE_SH7201
227 bool "Support SH7201 processor"
230 select SYS_SUPPORTS_MTU2
232 config CPU_SUBTYPE_SH7203
233 bool "Support SH7203 processor"
236 select SYS_SUPPORTS_CMT
237 select SYS_SUPPORTS_MTU2
239 config CPU_SUBTYPE_SH7206
240 bool "Support SH7206 processor"
242 select SYS_SUPPORTS_CMT
243 select SYS_SUPPORTS_MTU2
245 config CPU_SUBTYPE_SH7263
246 bool "Support SH7263 processor"
249 select SYS_SUPPORTS_CMT
250 select SYS_SUPPORTS_MTU2
252 config CPU_SUBTYPE_MXG
253 bool "Support MX-G processor"
255 select SYS_SUPPORTS_MTU2
257 Select MX-G if running on an R8A03022BG part.
259 # SH-3 Processor Support
261 config CPU_SUBTYPE_SH7705
262 bool "Support SH7705 processor"
265 config CPU_SUBTYPE_SH7706
266 bool "Support SH7706 processor"
269 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
271 config CPU_SUBTYPE_SH7707
272 bool "Support SH7707 processor"
275 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
277 config CPU_SUBTYPE_SH7708
278 bool "Support SH7708 processor"
281 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
282 if you have a 100 Mhz SH-3 HD6417708R CPU.
284 config CPU_SUBTYPE_SH7709
285 bool "Support SH7709 processor"
288 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
290 config CPU_SUBTYPE_SH7710
291 bool "Support SH7710 processor"
295 Select SH7710 if you have a SH3-DSP SH7710 CPU.
297 config CPU_SUBTYPE_SH7712
298 bool "Support SH7712 processor"
302 Select SH7712 if you have a SH3-DSP SH7712 CPU.
304 config CPU_SUBTYPE_SH7720
305 bool "Support SH7720 processor"
308 select SYS_SUPPORTS_CMT
310 Select SH7720 if you have a SH3-DSP SH7720 CPU.
312 config CPU_SUBTYPE_SH7721
313 bool "Support SH7721 processor"
316 select SYS_SUPPORTS_CMT
318 Select SH7721 if you have a SH3-DSP SH7721 CPU.
320 # SH-4 Processor Support
322 config CPU_SUBTYPE_SH7750
323 bool "Support SH7750 processor"
326 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
328 config CPU_SUBTYPE_SH7091
329 bool "Support SH7091 processor"
332 Select SH7091 if you have an SH-4 based Sega device (such as
333 the Dreamcast, Naomi, and Naomi 2).
335 config CPU_SUBTYPE_SH7750R
336 bool "Support SH7750R processor"
339 config CPU_SUBTYPE_SH7750S
340 bool "Support SH7750S processor"
343 config CPU_SUBTYPE_SH7751
344 bool "Support SH7751 processor"
347 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
348 or if you have a HD6417751R CPU.
350 config CPU_SUBTYPE_SH7751R
351 bool "Support SH7751R processor"
354 config CPU_SUBTYPE_SH7760
355 bool "Support SH7760 processor"
358 config CPU_SUBTYPE_SH4_202
359 bool "Support SH4-202 processor"
362 # SH-4A Processor Support
364 config CPU_SUBTYPE_SH7723
365 bool "Support SH7723 processor"
369 select ARCH_SPARSEMEM_ENABLE
370 select SYS_SUPPORTS_CMT
372 Select SH7723 if you have an SH-MobileR2 CPU.
374 config CPU_SUBTYPE_SH7724
375 bool "Support SH7724 processor"
379 select ARCH_SPARSEMEM_ENABLE
380 select SYS_SUPPORTS_CMT
382 Select SH7724 if you have an SH-MobileR2R CPU.
384 config CPU_SUBTYPE_SH7763
385 bool "Support SH7763 processor"
388 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
390 config CPU_SUBTYPE_SH7770
391 bool "Support SH7770 processor"
394 config CPU_SUBTYPE_SH7780
395 bool "Support SH7780 processor"
398 config CPU_SUBTYPE_SH7785
399 bool "Support SH7785 processor"
402 select ARCH_SPARSEMEM_ENABLE
403 select SYS_SUPPORTS_NUMA
405 config CPU_SUBTYPE_SH7786
406 bool "Support SH7786 processor"
409 select CPU_HAS_PTEAEX
410 select ARCH_SPARSEMEM_ENABLE
411 select SYS_SUPPORTS_NUMA
413 config CPU_SUBTYPE_SHX3
414 bool "Support SH-X3 processor"
417 select ARCH_SPARSEMEM_ENABLE
418 select SYS_SUPPORTS_NUMA
419 select SYS_SUPPORTS_SMP
420 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
422 # SH4AL-DSP Processor Support
424 config CPU_SUBTYPE_SH7343
425 bool "Support SH7343 processor"
428 select SYS_SUPPORTS_CMT
430 config CPU_SUBTYPE_SH7722
431 bool "Support SH7722 processor"
435 select ARCH_SPARSEMEM_ENABLE
436 select SYS_SUPPORTS_NUMA
437 select SYS_SUPPORTS_CMT
439 config CPU_SUBTYPE_SH7366
440 bool "Support SH7366 processor"
444 select ARCH_SPARSEMEM_ENABLE
445 select SYS_SUPPORTS_NUMA
446 select SYS_SUPPORTS_CMT
455 prompt "Processor sub-type selection"
457 # SH-5 Processor Support
459 config CPU_SUBTYPE_SH5_101
460 bool "Support SH5-101 processor"
463 config CPU_SUBTYPE_SH5_103
464 bool "Support SH5-103 processor"
471 source "arch/sh/mm/Kconfig"
473 source "arch/sh/Kconfig.cpu"
475 source "arch/sh/boards/Kconfig"
477 menu "Timer and clock configuration"
480 bool "TMU timer driver"
481 depends on SYS_SUPPORTS_TMU
484 This enables the build of the TMU timer driver.
487 bool "CMT timer driver"
488 depends on SYS_SUPPORTS_CMT
491 This enables build of the CMT timer driver.
494 bool "MTU2 timer driver"
495 depends on SYS_SUPPORTS_MTU2
498 This enables build of the MTU2 timer driver.
501 int "Peripheral clock frequency (in Hz)"
502 default "27000000" if CPU_SUBTYPE_SH7343
503 default "31250000" if CPU_SUBTYPE_SH7619
504 default "32000000" if CPU_SUBTYPE_SH7722
505 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
506 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
507 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
508 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
509 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
510 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
511 default "66000000" if CPU_SUBTYPE_SH4_202
514 This option is used to specify the peripheral clock frequency.
515 This is necessary for determining the reference clock value on
516 platforms lacking an RTC.
521 config SH_CLK_CPG_LEGACY
522 depends on SH_CLK_CPG
523 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
526 int "CPU Mode Pin Setting"
528 default 6 if CPU_SUBTYPE_SH7206
529 default 5 if CPU_SUBTYPE_SH7619
532 MD2 - MD0 pin setting.
534 source "kernel/time/Kconfig"
538 menu "CPU Frequency scaling"
540 source "drivers/cpufreq/Kconfig"
543 tristate "SuperH CPU Frequency driver"
545 select CPU_FREQ_TABLE
547 This adds the cpufreq driver for SuperH. Any CPU that supports
548 clock rate rounding through the clock framework can use this
549 driver. While it will make the kernel slightly larger, this is
550 harmless for CPUs that don't support rate rounding. The driver
551 will also generate a notice in the boot log before disabling
552 itself if the CPU in question is not capable of rate rounding.
554 For details, take a look at <file:Documentation/cpu-freq>.
560 source "arch/sh/drivers/Kconfig"
564 menu "Kernel features"
566 source kernel/Kconfig.hz
569 bool "kexec system call (EXPERIMENTAL)"
570 depends on SUPERH32 && EXPERIMENTAL && MMU
572 kexec is a system call that implements the ability to shutdown your
573 current kernel, and to start another kernel. It is like a reboot
574 but it is independent of the system firmware. And like a reboot
575 you can start any kernel with it, not just Linux.
577 The name comes from the similarity to the exec system call.
579 It is an ongoing process to be certain the hardware in a machine
580 is properly shutdown, so do not be surprised if this code does not
581 initially work for you. It may help to enable device hotplugging
582 support. As of this writing the exact hardware interface is
583 strongly in flux, so no good recommendation can be made.
586 bool "kernel crash dumps (EXPERIMENTAL)"
587 depends on SUPERH32 && EXPERIMENTAL
589 Generate crash dump after being started by kexec.
590 This should be normally only set in special crash dump kernels
591 which are loaded in the main kernel with kexec-tools into
592 a specially reserved region and then later executed after
593 a crash by kdump/kexec. The crash dump kernel must be compiled
594 to a memory address not used by the main kernel using
597 For more details see Documentation/kdump/kdump.txt
600 bool "kexec jump (EXPERIMENTAL)"
601 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
603 Jump between original kernel and kexeced kernel and invoke
607 bool "Enable seccomp to safely compute untrusted bytecode"
610 This kernel feature is useful for number crunching applications
611 that may need to compute untrusted bytecode during their
612 execution. By using pipes or other transports made available to
613 the process as file descriptors supporting the read/write
614 syscalls, it's possible to isolate those applications in
615 their own address space using seccomp. Once seccomp is
616 enabled via prctl, it cannot be disabled and the task is only
617 allowed to execute a few safe syscalls defined by each seccomp
623 bool "Symmetric multi-processing support"
624 depends on SYS_SUPPORTS_SMP
625 select USE_GENERIC_SMP_HELPERS
627 This enables support for systems with more than one CPU. If you have
628 a system with only one CPU, like most personal computers, say N. If
629 you have a system with more than one CPU, say Y.
631 If you say N here, the kernel will run on single and multiprocessor
632 machines, but will use only one CPU of a multiprocessor machine. If
633 you say Y here, the kernel will run on many, but not all,
634 singleprocessor machines. On a singleprocessor machine, the kernel
635 will run faster if you say N here.
637 People using multiprocessor machines who say Y here should also say
638 Y to "Enhanced Real Time Clock Support", below.
640 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
641 available at <http://www.tldp.org/docs.html#howto>.
643 If you don't know what to do here, say N.
646 int "Maximum number of CPUs (2-32)"
649 default "4" if CPU_SHX3
652 This allows you to specify the maximum number of CPUs which this
653 kernel will support. The maximum supported value is 32 and the
654 minimum value which makes sense is 2.
656 This is purely to save memory - each supported CPU adds
657 approximately eight kilobytes to the kernel image.
659 source "kernel/Kconfig.preempt"
663 depends on !SMP && SUPERH32
665 This enables support for gUSA (general UserSpace Atomicity).
666 This is the default implementation for both UP and non-ll/sc
667 CPUs, and is used by the libc, amongst others.
669 For additional information, design information can be found
670 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
672 This should only be disabled for special cases where alternate
673 atomicity implementations exist.
676 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
677 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
679 Enabling this option will allow the kernel to implement some
680 atomic operations using a software implementation of load-locked/
681 store-conditional (LLSC). On machines which do not have hardware
682 LLSC, this should be more efficient than the other alternative of
683 disabling interrupts around the atomic sequence.
686 bool "Support sparse irq numbering"
687 depends on EXPERIMENTAL
689 This enables support for sparse irqs. This is useful in general
690 as most CPUs have a fairly sparse array of IRQ vectors, which
691 the irq_desc then maps directly on to. Systems with a high
692 number of off-chip IRQs will want to treat this as
693 experimental until they have been independently verified.
695 If you don't know what to do here, say N.
701 config ZERO_PAGE_OFFSET
703 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
704 SH_7751_SOLUTION_ENGINE
705 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
706 default "0x00002000" if PAGE_SIZE_8KB
709 This sets the default offset of zero page.
711 config BOOT_LINK_OFFSET
713 default "0x00210000" if SH_SHMIN
714 default "0x00400000" if SH_CAYMAN
715 default "0x00810000" if SH_7780_SOLUTION_ENGINE
716 default "0x009e0000" if SH_TITAN
717 default "0x01800000" if SH_SDK7780
718 default "0x02000000" if SH_EDOSK7760
721 This option allows you to set the link address offset of the zImage.
722 This can be useful if you are on a board which has a small amount of
727 default "0x00001000" if PAGE_SIZE_4KB
728 default "0x00002000" if PAGE_SIZE_8KB
729 default "0x00004000" if PAGE_SIZE_16KB
730 default "0x00010000" if PAGE_SIZE_64KB
734 bool "Wakeup UBC on startup"
735 depends on CPU_SH4 && !CPU_SH4A
737 Selecting this option will wakeup the User Break Controller (UBC) on
738 startup. Although the UBC is left in an awake state when the processor
739 comes up, some boot loaders misbehave by putting the UBC to sleep in a
740 power saving state, which causes issues with things like ptrace().
745 bool "Default bootloader kernel arguments"
748 string "Initial kernel command string"
749 depends on CMDLINE_BOOL
750 default "console=ttySC1,115200"
757 tristate "SuperHyway Bus support"
758 depends on CPU_SUBTYPE_SH4_202
761 bool "Maple Bus support"
762 depends on SH_DREAMCAST
764 The Maple Bus is SEGA's serial communication bus for peripherals
765 on the Dreamcast. Without this bus support you won't be able to
766 get your Dreamcast keyboard etc to work, so most users
767 probably want to say 'Y' here, unless you are only using the
768 Dreamcast with a serial line terminal or a remote network
771 source "arch/sh/drivers/pci/Kconfig"
773 source "drivers/pci/pcie/Kconfig"
775 source "drivers/pci/Kconfig"
777 source "drivers/pcmcia/Kconfig"
779 source "drivers/pci/hotplug/Kconfig"
783 menu "Executable file formats"
785 source "fs/Kconfig.binfmt"
789 menu "Power management options (EXPERIMENTAL)"
790 depends on EXPERIMENTAL
792 source "kernel/power/Kconfig"
794 source "drivers/cpuidle/Kconfig"
800 source "drivers/Kconfig"
804 source "arch/sh/Kconfig.debug"
806 source "security/Kconfig"
808 source "crypto/Kconfig"