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
19 The SuperH is a RISC processor targeted for use in embedded systems
20 and consumer electronics; it was also used in the Sega Dreamcast
21 gaming console. The SuperH port has a home page at
22 <http://www.linux-sh.org/>.
27 select HAVE_KRETPROBES
28 select HAVE_FUNCTION_TRACER
29 select HAVE_FTRACE_MCOUNT_RECORD
30 select HAVE_DYNAMIC_FTRACE
32 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
53 config GENERIC_FIND_NEXT_BIT
56 config GENERIC_HWEIGHT
59 config GENERIC_HARDIRQS
62 config GENERIC_HARDIRQS_NO__DO_IRQ
65 config GENERIC_IRQ_PROBE
71 config GENERIC_CALIBRATE_DELAY
80 config GENERIC_CLOCKEVENTS
83 config GENERIC_CLOCKEVENTS_BROADCAST
86 config GENERIC_LOCKBREAK
88 depends on SMP && PREEMPT
90 config SYS_SUPPORTS_PM
94 config ARCH_SUSPEND_POSSIBLE
97 config ARCH_HIBERNATION_POSSIBLE
100 config SYS_SUPPORTS_APM_EMULATION
102 select ARCH_SUSPEND_POSSIBLE
104 config SYS_SUPPORTS_SMP
107 config SYS_SUPPORTS_NUMA
110 config SYS_SUPPORTS_PCI
113 config SYS_SUPPORTS_CMT
116 config SYS_SUPPORTS_MTU2
119 config STACKTRACE_SUPPORT
122 config LOCKDEP_SUPPORT
125 config HAVE_LATENCYTOP_SUPPORT
129 config ARCH_HAS_ILOG2_U32
132 config ARCH_HAS_ILOG2_U64
135 config ARCH_NO_VIRT_TO_BUS
138 config ARCH_HAS_DEFAULT_IDLE
144 source "init/Kconfig"
146 source "kernel/Kconfig.freezer"
162 select CPU_HAS_INTEVT
167 select CPU_HAS_INTEVT
169 select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2
170 select CPU_HAS_FPU if !CPU_SH4AL_DSP
193 select ARCH_SUSPEND_POSSIBLE
198 prompt "Processor sub-type selection"
204 # SH-2 Processor Support
206 config CPU_SUBTYPE_SH7619
207 bool "Support SH7619 processor"
209 select SYS_SUPPORTS_CMT
211 # SH-2A Processor Support
213 config CPU_SUBTYPE_SH7201
214 bool "Support SH7201 processor"
217 select SYS_SUPPORTS_MTU2
219 config CPU_SUBTYPE_SH7203
220 bool "Support SH7203 processor"
223 select SYS_SUPPORTS_CMT
224 select SYS_SUPPORTS_MTU2
226 config CPU_SUBTYPE_SH7206
227 bool "Support SH7206 processor"
229 select SYS_SUPPORTS_CMT
230 select SYS_SUPPORTS_MTU2
232 config CPU_SUBTYPE_SH7263
233 bool "Support SH7263 processor"
236 select SYS_SUPPORTS_CMT
237 select SYS_SUPPORTS_MTU2
239 config CPU_SUBTYPE_MXG
240 bool "Support MX-G processor"
242 select SYS_SUPPORTS_MTU2
244 Select MX-G if running on an R8A03022BG part.
246 # SH-3 Processor Support
248 config CPU_SUBTYPE_SH7705
249 bool "Support SH7705 processor"
252 config CPU_SUBTYPE_SH7706
253 bool "Support SH7706 processor"
256 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
258 config CPU_SUBTYPE_SH7707
259 bool "Support SH7707 processor"
262 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
264 config CPU_SUBTYPE_SH7708
265 bool "Support SH7708 processor"
268 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
269 if you have a 100 Mhz SH-3 HD6417708R CPU.
271 config CPU_SUBTYPE_SH7709
272 bool "Support SH7709 processor"
275 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
277 config CPU_SUBTYPE_SH7710
278 bool "Support SH7710 processor"
282 Select SH7710 if you have a SH3-DSP SH7710 CPU.
284 config CPU_SUBTYPE_SH7712
285 bool "Support SH7712 processor"
289 Select SH7712 if you have a SH3-DSP SH7712 CPU.
291 config CPU_SUBTYPE_SH7720
292 bool "Support SH7720 processor"
296 Select SH7720 if you have a SH3-DSP SH7720 CPU.
298 config CPU_SUBTYPE_SH7721
299 bool "Support SH7721 processor"
303 Select SH7721 if you have a SH3-DSP SH7721 CPU.
305 # SH-4 Processor Support
307 config CPU_SUBTYPE_SH7750
308 bool "Support SH7750 processor"
311 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
313 config CPU_SUBTYPE_SH7091
314 bool "Support SH7091 processor"
317 Select SH7091 if you have an SH-4 based Sega device (such as
318 the Dreamcast, Naomi, and Naomi 2).
320 config CPU_SUBTYPE_SH7750R
321 bool "Support SH7750R processor"
324 config CPU_SUBTYPE_SH7750S
325 bool "Support SH7750S processor"
328 config CPU_SUBTYPE_SH7751
329 bool "Support SH7751 processor"
332 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
333 or if you have a HD6417751R CPU.
335 config CPU_SUBTYPE_SH7751R
336 bool "Support SH7751R processor"
339 config CPU_SUBTYPE_SH7760
340 bool "Support SH7760 processor"
343 config CPU_SUBTYPE_SH4_202
344 bool "Support SH4-202 processor"
347 # SH-4A Processor Support
349 config CPU_SUBTYPE_SH7723
350 bool "Support SH7723 processor"
354 select ARCH_SPARSEMEM_ENABLE
355 select SYS_SUPPORTS_CMT
357 Select SH7723 if you have an SH-MobileR2 CPU.
359 config CPU_SUBTYPE_SH7724
360 bool "Support SH7724 processor"
364 select ARCH_SPARSEMEM_ENABLE
365 select SYS_SUPPORTS_CMT
367 Select SH7724 if you have an SH-MobileR2R CPU.
369 config CPU_SUBTYPE_SH7763
370 bool "Support SH7763 processor"
373 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
375 config CPU_SUBTYPE_SH7770
376 bool "Support SH7770 processor"
379 config CPU_SUBTYPE_SH7780
380 bool "Support SH7780 processor"
383 config CPU_SUBTYPE_SH7785
384 bool "Support SH7785 processor"
387 select ARCH_SPARSEMEM_ENABLE
388 select SYS_SUPPORTS_NUMA
390 config CPU_SUBTYPE_SH7786
391 bool "Support SH7786 processor"
394 select CPU_HAS_PTEAEX
395 select ARCH_SPARSEMEM_ENABLE
396 select SYS_SUPPORTS_NUMA
398 config CPU_SUBTYPE_SHX3
399 bool "Support SH-X3 processor"
402 select ARCH_SPARSEMEM_ENABLE
403 select SYS_SUPPORTS_NUMA
404 select SYS_SUPPORTS_SMP
405 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
407 # SH4AL-DSP Processor Support
409 config CPU_SUBTYPE_SH7343
410 bool "Support SH7343 processor"
413 select SYS_SUPPORTS_CMT
415 config CPU_SUBTYPE_SH7722
416 bool "Support SH7722 processor"
420 select ARCH_SPARSEMEM_ENABLE
421 select SYS_SUPPORTS_NUMA
422 select SYS_SUPPORTS_CMT
424 config CPU_SUBTYPE_SH7366
425 bool "Support SH7366 processor"
429 select ARCH_SPARSEMEM_ENABLE
430 select SYS_SUPPORTS_NUMA
431 select SYS_SUPPORTS_CMT
440 prompt "Processor sub-type selection"
442 # SH-5 Processor Support
444 config CPU_SUBTYPE_SH5_101
445 bool "Support SH5-101 processor"
448 config CPU_SUBTYPE_SH5_103
449 bool "Support SH5-103 processor"
456 source "arch/sh/mm/Kconfig"
458 source "arch/sh/Kconfig.cpu"
460 source "arch/sh/boards/Kconfig"
462 menu "Timer and clock configuration"
465 bool "TMU timer support"
466 depends on CPU_SH3 || CPU_SH4
469 select GENERIC_CLOCKEVENTS
471 This enables the use of the TMU as the system timer.
474 bool "CMT timer driver"
475 depends on SYS_SUPPORTS_CMT
477 select GENERIC_CLOCKEVENTS
480 This enables build of the CMT timer driver.
483 bool "MTU2 timer driver"
484 depends on SYS_SUPPORTS_MTU2
486 select GENERIC_CLOCKEVENTS
488 This enables build of the MTU2 timer driver.
492 default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \
494 default "86" if CPU_SUBTYPE_SH7619
495 default "140" if CPU_SUBTYPE_SH7206
496 default "142" if CPU_SUBTYPE_SH7203 && SH_CMT
497 default "153" if CPU_SUBTYPE_SH7203 && SH_MTU2
498 default "238" if CPU_SUBTYPE_MXG
502 int "Peripheral clock frequency (in Hz)"
503 default "27000000" if CPU_SUBTYPE_SH7343
504 default "31250000" if CPU_SUBTYPE_SH7619
505 default "32000000" if CPU_SUBTYPE_SH7722
506 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
507 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
508 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
509 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
511 default "41666666" if CPU_SUBTYPE_SH7724
512 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
513 default "66000000" if CPU_SUBTYPE_SH4_202
516 This option is used to specify the peripheral clock frequency.
517 This is necessary for determining the reference clock value on
518 platforms lacking an RTC.
521 int "CPU Mode Pin Setting"
523 default 6 if CPU_SUBTYPE_SH7206
524 default 5 if CPU_SUBTYPE_SH7619
527 MD2 - MD0 pin setting.
529 source "kernel/time/Kconfig"
533 menu "CPU Frequency scaling"
535 source "drivers/cpufreq/Kconfig"
538 tristate "SuperH CPU Frequency driver"
540 select CPU_FREQ_TABLE
542 This adds the cpufreq driver for SuperH. Any CPU that supports
543 clock rate rounding through the clock framework can use this
544 driver. While it will make the kernel slightly larger, this is
545 harmless for CPUs that don't support rate rounding. The driver
546 will also generate a notice in the boot log before disabling
547 itself if the CPU in question is not capable of rate rounding.
549 For details, take a look at <file:Documentation/cpu-freq>.
555 source "arch/sh/drivers/Kconfig"
559 menu "Kernel features"
561 source kernel/Kconfig.hz
564 bool "kexec system call (EXPERIMENTAL)"
565 depends on SUPERH32 && EXPERIMENTAL && MMU
567 kexec is a system call that implements the ability to shutdown your
568 current kernel, and to start another kernel. It is like a reboot
569 but it is independent of the system firmware. And like a reboot
570 you can start any kernel with it, not just Linux.
572 The name comes from the similarity to the exec system call.
574 It is an ongoing process to be certain the hardware in a machine
575 is properly shutdown, so do not be surprised if this code does not
576 initially work for you. It may help to enable device hotplugging
577 support. As of this writing the exact hardware interface is
578 strongly in flux, so no good recommendation can be made.
581 bool "kernel crash dumps (EXPERIMENTAL)"
582 depends on SUPERH32 && EXPERIMENTAL
584 Generate crash dump after being started by kexec.
585 This should be normally only set in special crash dump kernels
586 which are loaded in the main kernel with kexec-tools into
587 a specially reserved region and then later executed after
588 a crash by kdump/kexec. The crash dump kernel must be compiled
589 to a memory address not used by the main kernel using
592 For more details see Documentation/kdump/kdump.txt
595 bool "kexec jump (EXPERIMENTAL)"
596 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
598 Jump between original kernel and kexeced kernel and invoke
602 bool "Enable seccomp to safely compute untrusted bytecode"
605 This kernel feature is useful for number crunching applications
606 that may need to compute untrusted bytecode during their
607 execution. By using pipes or other transports made available to
608 the process as file descriptors supporting the read/write
609 syscalls, it's possible to isolate those applications in
610 their own address space using seccomp. Once seccomp is
611 enabled via prctl, it cannot be disabled and the task is only
612 allowed to execute a few safe syscalls defined by each seccomp
618 bool "Symmetric multi-processing support"
619 depends on SYS_SUPPORTS_SMP
620 select USE_GENERIC_SMP_HELPERS
622 This enables support for systems with more than one CPU. If you have
623 a system with only one CPU, like most personal computers, say N. If
624 you have a system with more than one CPU, say Y.
626 If you say N here, the kernel will run on single and multiprocessor
627 machines, but will use only one CPU of a multiprocessor machine. If
628 you say Y here, the kernel will run on many, but not all,
629 singleprocessor machines. On a singleprocessor machine, the kernel
630 will run faster if you say N here.
632 People using multiprocessor machines who say Y here should also say
633 Y to "Enhanced Real Time Clock Support", below.
635 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
636 available at <http://www.tldp.org/docs.html#howto>.
638 If you don't know what to do here, say N.
641 int "Maximum number of CPUs (2-32)"
644 default "4" if CPU_SHX3
647 This allows you to specify the maximum number of CPUs which this
648 kernel will support. The maximum supported value is 32 and the
649 minimum value which makes sense is 2.
651 This is purely to save memory - each supported CPU adds
652 approximately eight kilobytes to the kernel image.
654 source "kernel/Kconfig.preempt"
658 depends on !SMP && SUPERH32
660 This enables support for gUSA (general UserSpace Atomicity).
661 This is the default implementation for both UP and non-ll/sc
662 CPUs, and is used by the libc, amongst others.
664 For additional information, design information can be found
665 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
667 This should only be disabled for special cases where alternate
668 atomicity implementations exist.
671 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
672 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
674 Enabling this option will allow the kernel to implement some
675 atomic operations using a software implementation of load-locked/
676 store-conditional (LLSC). On machines which do not have hardware
677 LLSC, this should be more efficient than the other alternative of
678 disabling interrupts around the atomic sequence.
684 config ZERO_PAGE_OFFSET
685 hex "Zero page offset"
686 default "0x00004000" if SH_SH03
687 default "0x00010000" if PAGE_SIZE_64KB
688 default "0x00002000" if PAGE_SIZE_8KB
691 This sets the default offset of zero page.
693 config BOOT_LINK_OFFSET
694 hex "Link address offset for booting"
697 This option allows you to set the link address offset of the zImage.
698 This can be useful if you are on a board which has a small amount of
702 bool "Wakeup UBC on startup"
703 depends on CPU_SH4 && !CPU_SH4A
705 Selecting this option will wakeup the User Break Controller (UBC) on
706 startup. Although the UBC is left in an awake state when the processor
707 comes up, some boot loaders misbehave by putting the UBC to sleep in a
708 power saving state, which causes issues with things like ptrace().
713 bool "Default bootloader kernel arguments"
716 string "Initial kernel command string"
717 depends on CMDLINE_BOOL
718 default "console=ttySC1,115200"
725 tristate "SuperHyway Bus support"
726 depends on CPU_SUBTYPE_SH4_202
729 bool "Maple Bus support"
730 depends on SH_DREAMCAST
732 The Maple Bus is SEGA's serial communication bus for peripherals
733 on the Dreamcast. Without this bus support you won't be able to
734 get your Dreamcast keyboard etc to work, so most users
735 probably want to say 'Y' here, unless you are only using the
736 Dreamcast with a serial line terminal or a remote network
739 source "arch/sh/drivers/pci/Kconfig"
741 source "drivers/pci/pcie/Kconfig"
743 source "drivers/pci/Kconfig"
745 source "drivers/pcmcia/Kconfig"
747 source "drivers/pci/hotplug/Kconfig"
751 menu "Executable file formats"
753 source "fs/Kconfig.binfmt"
757 menu "Power management options (EXPERIMENTAL)"
758 depends on EXPERIMENTAL
760 source "kernel/power/Kconfig"
762 source "drivers/cpuidle/Kconfig"
768 source "drivers/Kconfig"
772 source "arch/sh/Kconfig.debug"
774 source "security/Kconfig"
776 source "crypto/Kconfig"