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
17 The SuperH is a RISC processor targeted for use in embedded systems
18 and consumer electronics; it was also used in the Sega Dreamcast
19 gaming console. The SuperH port has a home page at
20 <http://www.linux-sh.org/>.
25 select HAVE_KRETPROBES
26 select HAVE_ARCH_TRACEHOOK
27 select HAVE_FUNCTION_TRACER
28 select HAVE_FTRACE_MCOUNT_RECORD
29 select HAVE_DYNAMIC_FTRACE
36 default "arch/sh/configs/shx3_defconfig" if SUPERH32
37 default "arch/sh/configs/cayman_defconfig" if SUPERH64
39 config RWSEM_GENERIC_SPINLOCK
42 config RWSEM_XCHGADD_ALGORITHM
47 depends on BUG && SUPERH32
49 config GENERIC_FIND_NEXT_BIT
52 config GENERIC_HWEIGHT
55 config GENERIC_HARDIRQS
58 config GENERIC_HARDIRQS_NO__DO_IRQ
60 depends on SUPERH32 && (!SH_DREAMCAST && !SH_SH4202_MICRODEV && \
61 !SH_7751_SYSTEMH && !HD64461)
63 config GENERIC_IRQ_PROBE
69 config GENERIC_CALIBRATE_DELAY
78 config GENERIC_CLOCKEVENTS
81 config GENERIC_CLOCKEVENTS_BROADCAST
84 config GENERIC_LOCKBREAK
86 depends on SMP && PREEMPT
88 config SYS_SUPPORTS_PM
91 config SYS_SUPPORTS_APM_EMULATION
93 select SYS_SUPPORTS_PM
95 config SYS_SUPPORTS_SMP
98 config SYS_SUPPORTS_NUMA
101 config SYS_SUPPORTS_PCI
104 config STACKTRACE_SUPPORT
107 config LOCKDEP_SUPPORT
110 config HAVE_LATENCYTOP_SUPPORT
114 config ARCH_HAS_ILOG2_U32
117 config ARCH_HAS_ILOG2_U64
120 config ARCH_NO_VIRT_TO_BUS
126 source "init/Kconfig"
128 source "kernel/Kconfig.freezer"
144 select CPU_HAS_INTEVT
149 select CPU_HAS_INTEVT
151 select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2
152 select CPU_HAS_FPU if !CPU_SH4AL_DSP
174 prompt "Processor sub-type selection"
180 # SH-2 Processor Support
182 config CPU_SUBTYPE_SH7619
183 bool "Support SH7619 processor"
186 # SH-2A Processor Support
188 config CPU_SUBTYPE_SH7203
189 bool "Support SH7203 processor"
193 config CPU_SUBTYPE_SH7206
194 bool "Support SH7206 processor"
197 config CPU_SUBTYPE_SH7263
198 bool "Support SH7263 processor"
202 config CPU_SUBTYPE_MXG
203 bool "Support MX-G processor"
206 Select MX-G if running on an R8A03022BG part.
208 # SH-3 Processor Support
210 config CPU_SUBTYPE_SH7705
211 bool "Support SH7705 processor"
214 config CPU_SUBTYPE_SH7706
215 bool "Support SH7706 processor"
218 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
220 config CPU_SUBTYPE_SH7707
221 bool "Support SH7707 processor"
224 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
226 config CPU_SUBTYPE_SH7708
227 bool "Support SH7708 processor"
230 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
231 if you have a 100 Mhz SH-3 HD6417708R CPU.
233 config CPU_SUBTYPE_SH7709
234 bool "Support SH7709 processor"
237 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
239 config CPU_SUBTYPE_SH7710
240 bool "Support SH7710 processor"
244 Select SH7710 if you have a SH3-DSP SH7710 CPU.
246 config CPU_SUBTYPE_SH7712
247 bool "Support SH7712 processor"
251 Select SH7712 if you have a SH3-DSP SH7712 CPU.
253 config CPU_SUBTYPE_SH7720
254 bool "Support SH7720 processor"
258 Select SH7720 if you have a SH3-DSP SH7720 CPU.
260 config CPU_SUBTYPE_SH7721
261 bool "Support SH7721 processor"
265 Select SH7721 if you have a SH3-DSP SH7721 CPU.
267 # SH-4 Processor Support
269 config CPU_SUBTYPE_SH7750
270 bool "Support SH7750 processor"
273 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
275 config CPU_SUBTYPE_SH7091
276 bool "Support SH7091 processor"
279 Select SH7091 if you have an SH-4 based Sega device (such as
280 the Dreamcast, Naomi, and Naomi 2).
282 config CPU_SUBTYPE_SH7750R
283 bool "Support SH7750R processor"
286 config CPU_SUBTYPE_SH7750S
287 bool "Support SH7750S processor"
290 config CPU_SUBTYPE_SH7751
291 bool "Support SH7751 processor"
294 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
295 or if you have a HD6417751R CPU.
297 config CPU_SUBTYPE_SH7751R
298 bool "Support SH7751R processor"
301 config CPU_SUBTYPE_SH7760
302 bool "Support SH7760 processor"
305 config CPU_SUBTYPE_SH4_202
306 bool "Support SH4-202 processor"
309 # SH-4A Processor Support
311 config CPU_SUBTYPE_SH7723
312 bool "Support SH7723 processor"
315 select ARCH_SPARSEMEM_ENABLE
317 Select SH7723 if you have an SH-MobileR2 CPU.
319 config CPU_SUBTYPE_SH7763
320 bool "Support SH7763 processor"
323 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
325 config CPU_SUBTYPE_SH7770
326 bool "Support SH7770 processor"
329 config CPU_SUBTYPE_SH7780
330 bool "Support SH7780 processor"
333 config CPU_SUBTYPE_SH7785
334 bool "Support SH7785 processor"
337 select ARCH_SPARSEMEM_ENABLE
338 select SYS_SUPPORTS_NUMA
340 config CPU_SUBTYPE_SHX3
341 bool "Support SH-X3 processor"
344 select ARCH_SPARSEMEM_ENABLE
345 select SYS_SUPPORTS_NUMA
346 select SYS_SUPPORTS_SMP
347 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
349 # SH4AL-DSP Processor Support
351 config CPU_SUBTYPE_SH7343
352 bool "Support SH7343 processor"
355 config CPU_SUBTYPE_SH7722
356 bool "Support SH7722 processor"
359 select ARCH_SPARSEMEM_ENABLE
360 select SYS_SUPPORTS_NUMA
362 config CPU_SUBTYPE_SH7366
363 bool "Support SH7366 processor"
366 select ARCH_SPARSEMEM_ENABLE
367 select SYS_SUPPORTS_NUMA
369 # SH-5 Processor Support
371 config CPU_SUBTYPE_SH5_101
372 bool "Support SH5-101 processor"
375 config CPU_SUBTYPE_SH5_103
376 bool "Support SH5-103 processor"
381 source "arch/sh/mm/Kconfig"
383 source "arch/sh/Kconfig.cpu"
385 source "arch/sh/boards/Kconfig"
387 menu "Timer and clock configuration"
391 prompt "TMU timer support"
392 depends on CPU_SH3 || CPU_SH4
394 select GENERIC_CLOCKEVENTS
396 This enables the use of the TMU as the system timer.
400 prompt "CMT timer support"
401 depends on CPU_SH2 && !CPU_SUBTYPE_MXG
403 This enables the use of the CMT as the system timer.
407 prompt "MTU2 timer support"
410 This enables the use of the MTU2 as the system timer.
414 default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \
416 default "86" if CPU_SUBTYPE_SH7619
417 default "140" if CPU_SUBTYPE_SH7206
418 default "142" if CPU_SUBTYPE_SH7203
419 default "238" if CPU_SUBTYPE_MXG
423 int "Peripheral clock frequency (in Hz)"
424 default "27000000" if CPU_SUBTYPE_SH7343
425 default "31250000" if CPU_SUBTYPE_SH7619
426 default "32000000" if CPU_SUBTYPE_SH7722
427 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
428 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
429 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
430 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG
431 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
432 default "66000000" if CPU_SUBTYPE_SH4_202
435 This option is used to specify the peripheral clock frequency.
436 This is necessary for determining the reference clock value on
437 platforms lacking an RTC.
440 int "CPU Mode Pin Setting"
442 default 6 if CPU_SUBTYPE_SH7206
443 default 5 if CPU_SUBTYPE_SH7619
446 MD2 - MD0 pin setting.
448 source "kernel/time/Kconfig"
452 menu "CPU Frequency scaling"
454 source "drivers/cpufreq/Kconfig"
457 tristate "SuperH CPU Frequency driver"
459 select CPU_FREQ_TABLE
461 This adds the cpufreq driver for SuperH. At present, only
462 the SH-4 is supported.
464 For details, take a look at <file:Documentation/cpu-freq>.
470 source "arch/sh/drivers/Kconfig"
477 menu "Kernel features"
479 source kernel/Kconfig.hz
482 bool "kexec system call (EXPERIMENTAL)"
483 depends on SUPERH32 && EXPERIMENTAL
485 kexec is a system call that implements the ability to shutdown your
486 current kernel, and to start another kernel. It is like a reboot
487 but it is independent of the system firmware. And like a reboot
488 you can start any kernel with it, not just Linux.
490 The name comes from the similarity to the exec system call.
492 It is an ongoing process to be certain the hardware in a machine
493 is properly shutdown, so do not be surprised if this code does not
494 initially work for you. It may help to enable device hotplugging
495 support. As of this writing the exact hardware interface is
496 strongly in flux, so no good recommendation can be made.
499 bool "kernel crash dumps (EXPERIMENTAL)"
500 depends on SUPERH32 && EXPERIMENTAL
502 Generate crash dump after being started by kexec.
503 This should be normally only set in special crash dump kernels
504 which are loaded in the main kernel with kexec-tools into
505 a specially reserved region and then later executed after
506 a crash by kdump/kexec. The crash dump kernel must be compiled
507 to a memory address not used by the main kernel using
510 For more details see Documentation/kdump/kdump.txt
513 bool "Enable seccomp to safely compute untrusted bytecode"
516 This kernel feature is useful for number crunching applications
517 that may need to compute untrusted bytecode during their
518 execution. By using pipes or other transports made available to
519 the process as file descriptors supporting the read/write
520 syscalls, it's possible to isolate those applications in
521 their own address space using seccomp. Once seccomp is
522 enabled via prctl, it cannot be disabled and the task is only
523 allowed to execute a few safe syscalls defined by each seccomp
529 bool "Symmetric multi-processing support"
530 depends on SYS_SUPPORTS_SMP
531 select USE_GENERIC_SMP_HELPERS
533 This enables support for systems with more than one CPU. If you have
534 a system with only one CPU, like most personal computers, say N. If
535 you have a system with more than one CPU, say Y.
537 If you say N here, the kernel will run on single and multiprocessor
538 machines, but will use only one CPU of a multiprocessor machine. If
539 you say Y here, the kernel will run on many, but not all,
540 singleprocessor machines. On a singleprocessor machine, the kernel
541 will run faster if you say N here.
543 People using multiprocessor machines who say Y here should also say
544 Y to "Enhanced Real Time Clock Support", below.
546 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
547 available at <http://www.tldp.org/docs.html#howto>.
549 If you don't know what to do here, say N.
552 int "Maximum number of CPUs (2-32)"
555 default "4" if CPU_SHX3
558 This allows you to specify the maximum number of CPUs which this
559 kernel will support. The maximum supported value is 32 and the
560 minimum value which makes sense is 2.
562 This is purely to save memory - each supported CPU adds
563 approximately eight kilobytes to the kernel image.
565 source "kernel/Kconfig.preempt"
569 depends on !SMP && SUPERH32
571 This enables support for gUSA (general UserSpace Atomicity).
572 This is the default implementation for both UP and non-ll/sc
573 CPUs, and is used by the libc, amongst others.
575 For additional information, design information can be found
576 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
578 This should only be disabled for special cases where alternate
579 atomicity implementations exist.
582 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
583 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
585 Enabling this option will allow the kernel to implement some
586 atomic operations using a software implemention of load-locked/
587 store-conditional (LLSC). On machines which do not have hardware
588 LLSC, this should be more efficient than the other alternative of
589 disabling insterrupts around the atomic sequence.
595 config ZERO_PAGE_OFFSET
596 hex "Zero page offset"
597 default "0x00004000" if SH_SH03
598 default "0x00010000" if PAGE_SIZE_64KB
599 default "0x00002000" if PAGE_SIZE_8KB
602 This sets the default offset of zero page.
604 config BOOT_LINK_OFFSET
605 hex "Link address offset for booting"
608 This option allows you to set the link address offset of the zImage.
609 This can be useful if you are on a board which has a small amount of
613 bool "Wakeup UBC on startup"
614 depends on CPU_SH4 && !CPU_SH4A
616 Selecting this option will wakeup the User Break Controller (UBC) on
617 startup. Although the UBC is left in an awake state when the processor
618 comes up, some boot loaders misbehave by putting the UBC to sleep in a
619 power saving state, which causes issues with things like ptrace().
624 bool "Default bootloader kernel arguments"
627 string "Initial kernel command string"
628 depends on CMDLINE_BOOL
629 default "console=ttySC1,115200"
635 # Even on SuperH devices which don't have an ISA bus,
636 # this variable helps the PCMCIA modules handle
637 # IRQ requesting properly -- Greg Banks.
639 # Though we're generally not interested in it when
640 # we're not using PCMCIA, so we make it dependent on
641 # PCMCIA outright. -- PFM.
644 depends on PCMCIA && HD6446X_SERIES
646 Find out whether you have ISA slots on your motherboard. ISA is the
647 name of a bus system, i.e. the way the CPU talks to the other stuff
648 inside your box. Other bus systems are PCI, EISA, MicroChannel
649 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
650 newer boards don't support it. If you have ISA, say Y, otherwise N.
655 The Extended Industry Standard Architecture (EISA) bus was
656 developed as an open alternative to the IBM MicroChannel bus.
658 The EISA bus provided some of the features of the IBM MicroChannel
659 bus while maintaining backward compatibility with cards made for
660 the older ISA bus. The EISA bus saw limited use between 1988 and
661 1995 when it was made obsolete by the PCI bus.
663 Say Y here if you are building a kernel for an EISA-based machine.
670 MicroChannel Architecture is found in some IBM PS/2 machines and
671 laptops. It is a bus system similar to PCI or ISA. See
672 <file:Documentation/mca.txt> (and especially the web page given
673 there) before attempting to build an MCA bus kernel.
679 tristate "SuperHyway Bus support"
680 depends on CPU_SUBTYPE_SH4_202
683 bool "Maple Bus support"
684 depends on SH_DREAMCAST
686 The Maple Bus is SEGA's serial communication bus for peripherals
687 on the Dreamcast. Without this bus support you won't be able to
688 get your Dreamcast keyboard etc to work, so most users
689 probably want to say 'Y' here, unless you are only using the
690 Dreamcast with a serial line terminal or a remote network
694 bool "Compact Flash Enabler support"
695 depends on SOLUTION_ENGINE || SH_SH03
697 Compact Flash is a small, removable mass storage device introduced
698 in 1994 originally as a PCMCIA device. If you say `Y' here, you
699 compile in support for Compact Flash devices directly connected to
700 a SuperH processor. A Compact Flash FAQ is available at
701 <http://www.compactflash.org/faqs/faq.htm>.
703 If your board has "Directly Connected" CompactFlash at area 5 or 6,
704 you may want to enable this option. Then, you can use CF as
705 primary IDE drive (only tested for SanDisk).
707 If in doubt, select 'N'.
710 prompt "Compact Flash Connection Area"
711 depends on CF_ENABLER
717 If your board has "Directly Connected" CompactFlash, You should
718 select the area where your CF is connected to.
720 - "Area5" if CompactFlash is connected to Area 5 (0x14000000)
721 - "Area6" if it is connected to Area 6 (0x18000000)
723 "Area6" will work for most boards.
732 depends on CF_ENABLER
733 default "0xb8000000" if CF_AREA6
734 default "0xb4000000" if CF_AREA5
736 source "arch/sh/drivers/pci/Kconfig"
738 source "drivers/pci/Kconfig"
740 source "drivers/pcmcia/Kconfig"
742 source "drivers/pci/hotplug/Kconfig"
746 menu "Executable file formats"
748 source "fs/Kconfig.binfmt"
752 menu "Power management options (EXPERIMENTAL)"
753 depends on EXPERIMENTAL && SYS_SUPPORTS_PM
755 config ARCH_SUSPEND_POSSIBLE
759 source kernel/power/Kconfig
765 source "drivers/Kconfig"
769 source "arch/sh/Kconfig.debug"
771 source "security/Kconfig"
773 source "crypto/Kconfig"