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 The SuperH is a RISC processor targeted for use in embedded systems
16 and consumer electronics; it was also used in the Sega Dreamcast
17 gaming console. The SuperH port has a home page at
18 <http://www.linux-sh.org/>.
28 default "arch/sh/configs/shx3_defconfig" if SUPERH32
29 default "arch/sh/configs/cayman_defconfig" if SUPERH64
31 config RWSEM_GENERIC_SPINLOCK
34 config RWSEM_XCHGADD_ALGORITHM
39 depends on BUG && SUPERH32
41 config GENERIC_FIND_NEXT_BIT
44 config GENERIC_HWEIGHT
47 config GENERIC_HARDIRQS
50 config GENERIC_IRQ_PROBE
53 config GENERIC_CALIBRATE_DELAY
62 config GENERIC_CLOCKEVENTS
65 config SYS_SUPPORTS_PM
68 config SYS_SUPPORTS_APM_EMULATION
70 select SYS_SUPPORTS_PM
72 config SYS_SUPPORTS_SMP
75 config SYS_SUPPORTS_NUMA
78 config SYS_SUPPORTS_PCI
81 config STACKTRACE_SUPPORT
84 config LOCKDEP_SUPPORT
87 config ARCH_HAS_ILOG2_U32
90 config ARCH_HAS_ILOG2_U64
93 config ARCH_NO_VIRT_TO_BUS
96 config ARCH_SUPPORTS_AOUT
102 source "init/Kconfig"
118 select CPU_HAS_INTEVT
123 select CPU_HAS_INTEVT
125 select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2
126 select CPU_HAS_FPU if !CPU_SH4AL_DSP
148 prompt "Processor sub-type selection"
154 # SH-2 Processor Support
156 config CPU_SUBTYPE_SH7619
157 bool "Support SH7619 processor"
160 # SH-2A Processor Support
162 config CPU_SUBTYPE_SH7203
163 bool "Support SH7203 processor"
167 config CPU_SUBTYPE_SH7206
168 bool "Support SH7206 processor"
171 config CPU_SUBTYPE_SH7263
172 bool "Support SH7263 processor"
176 config CPU_SUBTYPE_MXG
177 bool "Support MX-G processor"
180 Select MX-G if running on an R8A03022BG part.
182 # SH-3 Processor Support
184 config CPU_SUBTYPE_SH7705
185 bool "Support SH7705 processor"
188 config CPU_SUBTYPE_SH7706
189 bool "Support SH7706 processor"
192 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
194 config CPU_SUBTYPE_SH7707
195 bool "Support SH7707 processor"
198 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
200 config CPU_SUBTYPE_SH7708
201 bool "Support SH7708 processor"
204 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
205 if you have a 100 Mhz SH-3 HD6417708R CPU.
207 config CPU_SUBTYPE_SH7709
208 bool "Support SH7709 processor"
211 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
213 config CPU_SUBTYPE_SH7710
214 bool "Support SH7710 processor"
218 Select SH7710 if you have a SH3-DSP SH7710 CPU.
220 config CPU_SUBTYPE_SH7712
221 bool "Support SH7712 processor"
225 Select SH7712 if you have a SH3-DSP SH7712 CPU.
227 config CPU_SUBTYPE_SH7720
228 bool "Support SH7720 processor"
232 Select SH7720 if you have a SH3-DSP SH7720 CPU.
234 config CPU_SUBTYPE_SH7721
235 bool "Support SH7721 processor"
239 Select SH7721 if you have a SH3-DSP SH7721 CPU.
241 # SH-4 Processor Support
243 config CPU_SUBTYPE_SH7750
244 bool "Support SH7750 processor"
247 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
249 config CPU_SUBTYPE_SH7091
250 bool "Support SH7091 processor"
253 Select SH7091 if you have an SH-4 based Sega device (such as
254 the Dreamcast, Naomi, and Naomi 2).
256 config CPU_SUBTYPE_SH7750R
257 bool "Support SH7750R processor"
260 config CPU_SUBTYPE_SH7750S
261 bool "Support SH7750S processor"
264 config CPU_SUBTYPE_SH7751
265 bool "Support SH7751 processor"
268 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
269 or if you have a HD6417751R CPU.
271 config CPU_SUBTYPE_SH7751R
272 bool "Support SH7751R processor"
275 config CPU_SUBTYPE_SH7760
276 bool "Support SH7760 processor"
279 config CPU_SUBTYPE_SH4_202
280 bool "Support SH4-202 processor"
283 # SH-4A Processor Support
285 config CPU_SUBTYPE_SH7723
286 bool "Support SH7723 processor"
289 select ARCH_SPARSEMEM_ENABLE
291 Select SH7723 if you have an SH-MobileR2 CPU.
293 config CPU_SUBTYPE_SH7763
294 bool "Support SH7763 processor"
297 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
299 config CPU_SUBTYPE_SH7770
300 bool "Support SH7770 processor"
303 config CPU_SUBTYPE_SH7780
304 bool "Support SH7780 processor"
307 config CPU_SUBTYPE_SH7785
308 bool "Support SH7785 processor"
311 select ARCH_SPARSEMEM_ENABLE
312 select SYS_SUPPORTS_NUMA
314 config CPU_SUBTYPE_SHX3
315 bool "Support SH-X3 processor"
318 select ARCH_SPARSEMEM_ENABLE
319 select SYS_SUPPORTS_NUMA
320 select SYS_SUPPORTS_SMP
322 # SH4AL-DSP Processor Support
324 config CPU_SUBTYPE_SH7343
325 bool "Support SH7343 processor"
328 config CPU_SUBTYPE_SH7722
329 bool "Support SH7722 processor"
332 select ARCH_SPARSEMEM_ENABLE
333 select SYS_SUPPORTS_NUMA
335 config CPU_SUBTYPE_SH7366
336 bool "Support SH7366 processor"
339 select ARCH_SPARSEMEM_ENABLE
340 select SYS_SUPPORTS_NUMA
342 # SH-5 Processor Support
344 config CPU_SUBTYPE_SH5_101
345 bool "Support SH5-101 processor"
348 config CPU_SUBTYPE_SH5_103
349 bool "Support SH5-103 processor"
354 source "arch/sh/mm/Kconfig"
355 source "arch/sh/Kconfig.cpu"
359 config SOLUTION_ENGINE
362 config SH_SOLUTION_ENGINE
363 bool "SolutionEngine"
364 select SOLUTION_ENGINE
365 select CPU_HAS_IPR_IRQ
366 depends on CPU_SUBTYPE_SH7705 || CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7710 || \
367 CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7750S || \
370 Select SolutionEngine if configuring for a Hitachi SH7705, SH7709,
371 SH7710, SH7712, SH7750, SH7750S or SH7750R evaluation board.
373 config SH_7206_SOLUTION_ENGINE
374 bool "SolutionEngine7206"
375 select SOLUTION_ENGINE
376 depends on CPU_SUBTYPE_SH7206
378 Select 7206 SolutionEngine if configuring for a Hitachi SH7206
381 config SH_7619_SOLUTION_ENGINE
382 bool "SolutionEngine7619"
383 select SOLUTION_ENGINE
384 depends on CPU_SUBTYPE_SH7619
386 Select 7619 SolutionEngine if configuring for a Hitachi SH7619
389 config SH_7721_SOLUTION_ENGINE
390 bool "SolutionEngine7721"
391 select SOLUTION_ENGINE
392 depends on CPU_SUBTYPE_SH7721
394 Select 7721 SolutionEngine if configuring for a Hitachi SH7721
397 config SH_7722_SOLUTION_ENGINE
398 bool "SolutionEngine7722"
399 select SOLUTION_ENGINE
400 depends on CPU_SUBTYPE_SH7722
402 Select 7722 SolutionEngine if configuring for a Hitachi SH772
405 config SH_7751_SOLUTION_ENGINE
406 bool "SolutionEngine7751"
407 select SOLUTION_ENGINE
408 select CPU_HAS_IPR_IRQ
409 depends on CPU_SUBTYPE_SH7751
411 Select 7751 SolutionEngine if configuring for a Hitachi SH7751
414 config SH_7780_SOLUTION_ENGINE
415 bool "SolutionEngine7780"
416 select SOLUTION_ENGINE
417 select SYS_SUPPORTS_PCI
418 depends on CPU_SUBTYPE_SH7780
420 Select 7780 SolutionEngine if configuring for a Renesas SH7780
423 config SH_7343_SOLUTION_ENGINE
424 bool "SolutionEngine7343"
425 select SOLUTION_ENGINE
426 depends on CPU_SUBTYPE_SH7343
428 Select 7343 SolutionEngine if configuring for a Hitachi
429 SH7343 (SH-Mobile 3AS) evaluation board.
431 config SH_7751_SYSTEMH
433 depends on CPU_SUBTYPE_SH7751R
435 Select SystemH if you are configuring for a Renesas SystemH
436 7751R evaluation board.
440 select SYS_SUPPORTS_APM_EMULATION
441 select HD6446X_SERIES
442 depends on CPU_SUBTYPE_SH7709
444 Select HP6XX if configuring for a HP jornada HP6xx.
445 More information (hardware only) at
446 <http://www.hp.com/jornada/>.
450 select SYS_SUPPORTS_PCI
451 depends on CPU_SUBTYPE_SH7091
453 Select Dreamcast if configuring for a SEGA Dreamcast.
454 More information at <http://www.linux-sh.org>
457 bool "Interface CTP/PCI-SH03"
458 depends on CPU_SUBTYPE_SH7751
459 select CPU_HAS_IPR_IRQ
460 select SYS_SUPPORTS_PCI
462 CTP/PCI-SH03 is a CPU module computer that is produced
463 by Interface Corporation.
464 More information at <http://www.interface.co.jp>
466 config SH_SECUREEDGE5410
467 bool "SecureEdge5410"
468 depends on CPU_SUBTYPE_SH7751R
469 select CPU_HAS_IPR_IRQ
470 select SYS_SUPPORTS_PCI
472 Select SecureEdge5410 if configuring for a SnapGear SH board.
473 This includes both the OEM SecureEdge products as well as the
478 depends on CPU_SUBTYPE_SH7751R
479 select SYS_SUPPORTS_PCI
482 Select RTS7751R2D if configuring for a Renesas Technology
483 Sales SH-Graphics board.
487 depends on CPU_SUBTYPE_SH7203
491 depends on CPU_SUBTYPE_SH7780
492 select SYS_SUPPORTS_PCI
494 Select SDK7780 if configuring for a Renesas SH7780 SDK7780R3
499 depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
500 select SYS_SUPPORTS_PCI
505 depends on CPU_SUBTYPE_SH7785
506 select SYS_SUPPORTS_PCI
509 config SH_SH7785LCR_29BIT_PHYSMAPS
510 bool "SH7785LCR 29bit physmaps"
511 depends on SH_SH7785LCR
514 This board has 2 physical memory maps. It can be changed with
515 DIP switch(S2-5). If you set the DIP switch for S2-5 = ON,
516 you can access all on-board device in 29bit address mode.
520 depends on CPU_SUBTYPE_SH7722
522 Select Migo-R if configuring for the SH7722 Migo-R platform
523 by Renesas System Solutions Asia Pte. Ltd.
527 depends on CPU_SUBTYPE_SH7723
529 Renesas "AP-325RXA" support.
530 Compatible with ALGO SYSTEM CO.,LTD. "AP-320A"
534 depends on CPU_SUBTYPE_SH7763
536 Select SH7763RDP if configuring for a Renesas SH7763
541 depends on CPU_SUBTYPE_SH7705
543 config SH_SH4202_MICRODEV
544 bool "SH4-202 MicroDev"
545 depends on CPU_SUBTYPE_SH4_202
547 Select SH4-202 MicroDev if configuring for a SuperH MicroDev board
552 depends on CPU_SUBTYPE_SH7751R
553 select SYS_SUPPORTS_PCI
555 I-O DATA DEVICE, INC. "LANDISK Series" support.
559 depends on CPU_SUBTYPE_SH7751R
560 select CPU_HAS_IPR_IRQ
561 select SYS_SUPPORTS_PCI
563 Select Titan if you are configuring for a Nimble Microsystems
568 depends on CPU_SUBTYPE_SH7706
569 select CPU_HAS_IPR_IRQ
571 Select SHMIN if configuring for the SHMIN board.
575 depends on CPU_SUBTYPE_SH7751R
576 select SYS_SUPPORTS_PCI
578 Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2.
581 bool "SH-X3 Prototype board"
582 depends on CPU_SUBTYPE_SHX3
584 config SH_MAGIC_PANEL_R2
585 bool "Magic Panel R2"
586 depends on CPU_SUBTYPE_SH7720
588 Select Magic Panel R2 if configuring for Magic Panel R2.
591 bool "Hitachi Cayman"
592 depends on CPU_SUBTYPE_SH5_101 || CPU_SUBTYPE_SH5_103
593 select SYS_SUPPORTS_PCI
597 source "arch/sh/boards/renesas/rts7751r2d/Kconfig"
598 source "arch/sh/boards/renesas/r7780rp/Kconfig"
599 source "arch/sh/boards/renesas/sdk7780/Kconfig"
600 source "arch/sh/boards/renesas/migor/Kconfig"
601 source "arch/sh/boards/magicpanelr2/Kconfig"
603 menu "Timer and clock configuration"
607 prompt "TMU timer support"
608 depends on CPU_SH3 || CPU_SH4
610 select GENERIC_CLOCKEVENTS
612 This enables the use of the TMU as the system timer.
616 prompt "CMT timer support"
617 depends on CPU_SH2 && !CPU_SUBTYPE_MXG
619 This enables the use of the CMT as the system timer.
623 prompt "MTU2 timer support"
626 This enables the use of the MTU2 as the system timer.
630 default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \
632 default "86" if CPU_SUBTYPE_SH7619
633 default "140" if CPU_SUBTYPE_SH7206
634 default "142" if CPU_SUBTYPE_SH7203
635 default "238" if CPU_SUBTYPE_MXG
639 int "Peripheral clock frequency (in Hz)"
640 default "27000000" if CPU_SUBTYPE_SH7343
641 default "31250000" if CPU_SUBTYPE_SH7619
642 default "32000000" if CPU_SUBTYPE_SH7722
643 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
644 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
645 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
646 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG
647 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
648 default "66000000" if CPU_SUBTYPE_SH4_202
651 This option is used to specify the peripheral clock frequency.
652 This is necessary for determining the reference clock value on
653 platforms lacking an RTC.
656 int "CPU Mode Pin Setting"
658 default 6 if CPU_SUBTYPE_SH7206
659 default 5 if CPU_SUBTYPE_SH7619
662 MD2 - MD0 pin setting.
664 source "kernel/time/Kconfig"
668 menu "CPU Frequency scaling"
670 source "drivers/cpufreq/Kconfig"
673 tristate "SuperH CPU Frequency driver"
675 select CPU_FREQ_TABLE
677 This adds the cpufreq driver for SuperH. At present, only
678 the SH-4 is supported.
680 For details, take a look at <file:Documentation/cpu-freq>.
686 source "arch/sh/drivers/Kconfig"
693 menu "Kernel features"
695 source kernel/Kconfig.hz
698 bool "kexec system call (EXPERIMENTAL)"
699 depends on SUPERH32 && EXPERIMENTAL
701 kexec is a system call that implements the ability to shutdown your
702 current kernel, and to start another kernel. It is like a reboot
703 but it is independent of the system firmware. And like a reboot
704 you can start any kernel with it, not just Linux.
706 The name comes from the similarity to the exec system call.
708 It is an ongoing process to be certain the hardware in a machine
709 is properly shutdown, so do not be surprised if this code does not
710 initially work for you. It may help to enable device hotplugging
711 support. As of this writing the exact hardware interface is
712 strongly in flux, so no good recommendation can be made.
715 bool "kernel crash dumps (EXPERIMENTAL)"
716 depends on SUPERH32 && EXPERIMENTAL
718 Generate crash dump after being started by kexec.
719 This should be normally only set in special crash dump kernels
720 which are loaded in the main kernel with kexec-tools into
721 a specially reserved region and then later executed after
722 a crash by kdump/kexec. The crash dump kernel must be compiled
723 to a memory address not used by the main kernel using
726 For more details see Documentation/kdump/kdump.txt
729 bool "Symmetric multi-processing support"
730 depends on SYS_SUPPORTS_SMP
731 select USE_GENERIC_SMP_HELPERS
733 This enables support for systems with more than one CPU. If you have
734 a system with only one CPU, like most personal computers, say N. If
735 you have a system with more than one CPU, say Y.
737 If you say N here, the kernel will run on single and multiprocessor
738 machines, but will use only one CPU of a multiprocessor machine. If
739 you say Y here, the kernel will run on many, but not all,
740 singleprocessor machines. On a singleprocessor machine, the kernel
741 will run faster if you say N here.
743 People using multiprocessor machines who say Y here should also say
744 Y to "Enhanced Real Time Clock Support", below.
746 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
747 available at <http://www.tldp.org/docs.html#howto>.
749 If you don't know what to do here, say N.
752 int "Maximum number of CPUs (2-32)"
755 default "4" if CPU_SHX3
758 This allows you to specify the maximum number of CPUs which this
759 kernel will support. The maximum supported value is 32 and the
760 minimum value which makes sense is 2.
762 This is purely to save memory - each supported CPU adds
763 approximately eight kilobytes to the kernel image.
765 source "kernel/Kconfig.preempt"
769 depends on !SMP && SUPERH32
771 This enables support for gUSA (general UserSpace Atomicity).
772 This is the default implementation for both UP and non-ll/sc
773 CPUs, and is used by the libc, amongst others.
775 For additional information, design information can be found
776 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
778 This should only be disabled for special cases where alternate
779 atomicity implementations exist.
782 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
783 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
785 Enabling this option will allow the kernel to implement some
786 atomic operations using a software implemention of load-locked/
787 store-conditional (LLSC). On machines which do not have hardware
788 LLSC, this should be more efficient than the other alternative of
789 disabling insterrupts around the atomic sequence.
795 config ZERO_PAGE_OFFSET
796 hex "Zero page offset"
797 default "0x00004000" if SH_SH03
798 default "0x00010000" if PAGE_SIZE_64KB
799 default "0x00002000" if PAGE_SIZE_8KB
802 This sets the default offset of zero page.
804 config BOOT_LINK_OFFSET
805 hex "Link address offset for booting"
808 This option allows you to set the link address offset of the zImage.
809 This can be useful if you are on a board which has a small amount of
813 bool "Wakeup UBC on startup"
814 depends on CPU_SH4 && !CPU_SH4A
816 Selecting this option will wakeup the User Break Controller (UBC) on
817 startup. Although the UBC is left in an awake state when the processor
818 comes up, some boot loaders misbehave by putting the UBC to sleep in a
819 power saving state, which causes issues with things like ptrace().
824 bool "Default bootloader kernel arguments"
827 string "Initial kernel command string"
828 depends on CMDLINE_BOOL
829 default "console=ttySC1,115200"
835 # Even on SuperH devices which don't have an ISA bus,
836 # this variable helps the PCMCIA modules handle
837 # IRQ requesting properly -- Greg Banks.
839 # Though we're generally not interested in it when
840 # we're not using PCMCIA, so we make it dependent on
841 # PCMCIA outright. -- PFM.
844 depends on PCMCIA && HD6446X_SERIES
846 Find out whether you have ISA slots on your motherboard. ISA is the
847 name of a bus system, i.e. the way the CPU talks to the other stuff
848 inside your box. Other bus systems are PCI, EISA, MicroChannel
849 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
850 newer boards don't support it. If you have ISA, say Y, otherwise N.
855 The Extended Industry Standard Architecture (EISA) bus was
856 developed as an open alternative to the IBM MicroChannel bus.
858 The EISA bus provided some of the features of the IBM MicroChannel
859 bus while maintaining backward compatibility with cards made for
860 the older ISA bus. The EISA bus saw limited use between 1988 and
861 1995 when it was made obsolete by the PCI bus.
863 Say Y here if you are building a kernel for an EISA-based machine.
870 MicroChannel Architecture is found in some IBM PS/2 machines and
871 laptops. It is a bus system similar to PCI or ISA. See
872 <file:Documentation/mca.txt> (and especially the web page given
873 there) before attempting to build an MCA bus kernel.
879 tristate "SuperHyway Bus support"
880 depends on CPU_SUBTYPE_SH4_202
883 bool "Maple Bus support"
884 depends on SH_DREAMCAST
886 The Maple Bus is SEGA's serial communication bus for peripherals
887 on the Dreamcast. Without this bus support you won't be able to
888 get your Dreamcast keyboard etc to work, so most users
889 probably want to say 'Y' here, unless you are only using the
890 Dreamcast with a serial line terminal or a remote network
894 bool "Compact Flash Enabler support"
895 depends on SOLUTION_ENGINE || SH_SH03
897 Compact Flash is a small, removable mass storage device introduced
898 in 1994 originally as a PCMCIA device. If you say `Y' here, you
899 compile in support for Compact Flash devices directly connected to
900 a SuperH processor. A Compact Flash FAQ is available at
901 <http://www.compactflash.org/faqs/faq.htm>.
903 If your board has "Directly Connected" CompactFlash at area 5 or 6,
904 you may want to enable this option. Then, you can use CF as
905 primary IDE drive (only tested for SanDisk).
907 If in doubt, select 'N'.
910 prompt "Compact Flash Connection Area"
911 depends on CF_ENABLER
917 If your board has "Directly Connected" CompactFlash, You should
918 select the area where your CF is connected to.
920 - "Area5" if CompactFlash is connected to Area 5 (0x14000000)
921 - "Area6" if it is connected to Area 6 (0x18000000)
923 "Area6" will work for most boards.
932 depends on CF_ENABLER
933 default "0xb8000000" if CF_AREA6
934 default "0xb4000000" if CF_AREA5
936 source "arch/sh/drivers/pci/Kconfig"
938 source "drivers/pci/Kconfig"
940 source "drivers/pcmcia/Kconfig"
942 source "drivers/pci/hotplug/Kconfig"
946 menu "Executable file formats"
948 source "fs/Kconfig.binfmt"
952 menu "Power management options (EXPERIMENTAL)"
953 depends on EXPERIMENTAL && SYS_SUPPORTS_PM
955 config ARCH_SUSPEND_POSSIBLE
959 source kernel/power/Kconfig
965 source "drivers/Kconfig"
969 source "arch/sh/Kconfig.debug"
971 source "security/Kconfig"
973 source "crypto/Kconfig"