2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
6 mainmenu "Linux/SuperH Kernel Configuration"
12 The SuperH is a RISC processor targeted for use in embedded systems
13 and consumer electronics; it was also used in the Sega Dreamcast
14 gaming console. The SuperH port has a home page at
15 <http://www.linux-sh.org/>.
23 config RWSEM_GENERIC_SPINLOCK
26 config RWSEM_XCHGADD_ALGORITHM
31 depends on BUG && SUPERH32
33 config GENERIC_FIND_NEXT_BIT
36 config GENERIC_HWEIGHT
39 config GENERIC_HARDIRQS
42 config GENERIC_IRQ_PROBE
45 config GENERIC_CALIBRATE_DELAY
54 config GENERIC_CLOCKEVENTS
57 config SYS_SUPPORTS_PM
60 config SYS_SUPPORTS_APM_EMULATION
62 select SYS_SUPPORTS_PM
64 config SYS_SUPPORTS_SMP
67 config SYS_SUPPORTS_NUMA
70 config SYS_SUPPORTS_PCI
73 config ARCH_MAY_HAVE_PC_FDC
76 config STACKTRACE_SUPPORT
79 config LOCKDEP_SUPPORT
82 config ARCH_HAS_ILOG2_U32
85 config ARCH_HAS_ILOG2_U64
88 config ARCH_NO_VIRT_TO_BUS
107 select CPU_HAS_INTEVT
112 select CPU_HAS_INTEVT
114 select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2
115 select CPU_HAS_FPU if !CPU_SH4AL_DSP
137 prompt "Processor sub-type selection"
143 # SH-2 Processor Support
145 config CPU_SUBTYPE_SH7619
146 bool "Support SH7619 processor"
149 # SH-2A Processor Support
151 config CPU_SUBTYPE_SH7203
152 bool "Support SH7203 processor"
156 config CPU_SUBTYPE_SH7206
157 bool "Support SH7206 processor"
160 config CPU_SUBTYPE_SH7263
161 bool "Support SH7263 processor"
165 # SH-3 Processor Support
167 config CPU_SUBTYPE_SH7705
168 bool "Support SH7705 processor"
171 config CPU_SUBTYPE_SH7706
172 bool "Support SH7706 processor"
175 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
177 config CPU_SUBTYPE_SH7707
178 bool "Support SH7707 processor"
181 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
183 config CPU_SUBTYPE_SH7708
184 bool "Support SH7708 processor"
187 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
188 if you have a 100 Mhz SH-3 HD6417708R CPU.
190 config CPU_SUBTYPE_SH7709
191 bool "Support SH7709 processor"
194 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
196 config CPU_SUBTYPE_SH7710
197 bool "Support SH7710 processor"
201 Select SH7710 if you have a SH3-DSP SH7710 CPU.
203 config CPU_SUBTYPE_SH7712
204 bool "Support SH7712 processor"
208 Select SH7712 if you have a SH3-DSP SH7712 CPU.
210 config CPU_SUBTYPE_SH7720
211 bool "Support SH7720 processor"
215 Select SH7720 if you have a SH3-DSP SH7720 CPU.
217 config CPU_SUBTYPE_SH7721
218 bool "Support SH7721 processor"
222 Select SH7721 if you have a SH3-DSP SH7721 CPU.
224 # SH-4 Processor Support
226 config CPU_SUBTYPE_SH7750
227 bool "Support SH7750 processor"
230 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
232 config CPU_SUBTYPE_SH7091
233 bool "Support SH7091 processor"
236 Select SH7091 if you have an SH-4 based Sega device (such as
237 the Dreamcast, Naomi, and Naomi 2).
239 config CPU_SUBTYPE_SH7750R
240 bool "Support SH7750R processor"
243 config CPU_SUBTYPE_SH7750S
244 bool "Support SH7750S processor"
247 config CPU_SUBTYPE_SH7751
248 bool "Support SH7751 processor"
251 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
252 or if you have a HD6417751R CPU.
254 config CPU_SUBTYPE_SH7751R
255 bool "Support SH7751R processor"
258 config CPU_SUBTYPE_SH7760
259 bool "Support SH7760 processor"
262 config CPU_SUBTYPE_SH4_202
263 bool "Support SH4-202 processor"
266 # SH-4A Processor Support
268 config CPU_SUBTYPE_SH7763
269 bool "Support SH7763 processor"
272 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
274 config CPU_SUBTYPE_SH7770
275 bool "Support SH7770 processor"
278 config CPU_SUBTYPE_SH7780
279 bool "Support SH7780 processor"
282 config CPU_SUBTYPE_SH7785
283 bool "Support SH7785 processor"
286 select ARCH_SPARSEMEM_ENABLE
287 select SYS_SUPPORTS_NUMA
289 config CPU_SUBTYPE_SHX3
290 bool "Support SH-X3 processor"
293 select ARCH_SPARSEMEM_ENABLE
294 select SYS_SUPPORTS_NUMA
295 select SYS_SUPPORTS_SMP
297 # SH4AL-DSP Processor Support
299 config CPU_SUBTYPE_SH7343
300 bool "Support SH7343 processor"
303 config CPU_SUBTYPE_SH7722
304 bool "Support SH7722 processor"
307 select ARCH_SPARSEMEM_ENABLE
308 select SYS_SUPPORTS_NUMA
310 # SH-5 Processor Support
312 config CPU_SUBTYPE_SH5_101
313 bool "Support SH5-101 processor"
316 config CPU_SUBTYPE_SH5_103
317 bool "Support SH5-103 processor"
321 source "arch/sh/mm/Kconfig"
322 source "arch/sh/Kconfig.cpu"
326 config SOLUTION_ENGINE
329 config SH_SOLUTION_ENGINE
330 bool "SolutionEngine"
331 select SOLUTION_ENGINE
332 select CPU_HAS_IPR_IRQ
333 depends on CPU_SUBTYPE_SH7705 || CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7710 || \
334 CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7750S || \
337 Select SolutionEngine if configuring for a Hitachi SH7705, SH7709,
338 SH7710, SH7712, SH7750, SH7750S or SH7750R evaluation board.
340 config SH_7206_SOLUTION_ENGINE
341 bool "SolutionEngine7206"
342 select SOLUTION_ENGINE
343 depends on CPU_SUBTYPE_SH7206
345 Select 7206 SolutionEngine if configuring for a Hitachi SH7206
348 config SH_7619_SOLUTION_ENGINE
349 bool "SolutionEngine7619"
350 select SOLUTION_ENGINE
351 depends on CPU_SUBTYPE_SH7619
353 Select 7619 SolutionEngine if configuring for a Hitachi SH7619
356 config SH_7722_SOLUTION_ENGINE
357 bool "SolutionEngine7722"
358 select SOLUTION_ENGINE
359 depends on CPU_SUBTYPE_SH7722
361 Select 7722 SolutionEngine if configuring for a Hitachi SH772
364 config SH_7751_SOLUTION_ENGINE
365 bool "SolutionEngine7751"
366 select SOLUTION_ENGINE
367 select CPU_HAS_IPR_IRQ
368 depends on CPU_SUBTYPE_SH7751
370 Select 7751 SolutionEngine if configuring for a Hitachi SH7751
373 config SH_7780_SOLUTION_ENGINE
374 bool "SolutionEngine7780"
375 select SOLUTION_ENGINE
376 select SYS_SUPPORTS_PCI
377 depends on CPU_SUBTYPE_SH7780
379 Select 7780 SolutionEngine if configuring for a Renesas SH7780
382 config SH_7343_SOLUTION_ENGINE
383 bool "SolutionEngine7343"
384 select SOLUTION_ENGINE
385 depends on CPU_SUBTYPE_SH7343
387 Select 7343 SolutionEngine if configuring for a Hitachi
388 SH7343 (SH-Mobile 3AS) evaluation board.
390 config SH_7751_SYSTEMH
392 depends on CPU_SUBTYPE_SH7751R
394 Select SystemH if you are configuring for a Renesas SystemH
395 7751R evaluation board.
399 select SYS_SUPPORTS_APM_EMULATION
400 select HD6446X_SERIES
401 depends on CPU_SUBTYPE_SH7709
403 Select HP6XX if configuring for a HP jornada HP6xx.
404 More information (hardware only) at
405 <http://www.hp.com/jornada/>.
409 select SYS_SUPPORTS_PCI
410 depends on CPU_SUBTYPE_SH7091
412 Select Dreamcast if configuring for a SEGA Dreamcast.
413 More information at <http://www.linux-sh.org>
416 bool "Interface MPC1211"
417 depends on CPU_SUBTYPE_SH7751 && BROKEN
419 CTP/PCI-SH02 is a CPU module computer that is produced
420 by Interface Corporation.
421 More information at <http://www.interface.co.jp>
424 bool "Interface CTP/PCI-SH03"
425 depends on CPU_SUBTYPE_SH7751
426 select CPU_HAS_IPR_IRQ
427 select SYS_SUPPORTS_PCI
429 CTP/PCI-SH03 is a CPU module computer that is produced
430 by Interface Corporation.
431 More information at <http://www.interface.co.jp>
433 config SH_SECUREEDGE5410
434 bool "SecureEdge5410"
435 depends on CPU_SUBTYPE_SH7751R
436 select CPU_HAS_IPR_IRQ
437 select SYS_SUPPORTS_PCI
439 Select SecureEdge5410 if configuring for a SnapGear SH board.
440 This includes both the OEM SecureEdge products as well as the
444 bool "SH7710-VOIP-GW"
445 depends on CPU_SUBTYPE_SH7710
447 Select this option to build a kernel for the SH7710 based
452 depends on CPU_SUBTYPE_SH7751R
453 select SYS_SUPPORTS_PCI
455 Select RTS7751R2D if configuring for a Renesas Technology
456 Sales SH-Graphics board.
460 depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
461 select SYS_SUPPORTS_PCI
465 depends on CPU_SUBTYPE_SH7705
467 config SH_SH4202_MICRODEV
468 bool "SH4-202 MicroDev"
469 depends on CPU_SUBTYPE_SH4_202
471 Select SH4-202 MicroDev if configuring for a SuperH MicroDev board
476 depends on CPU_SUBTYPE_SH7751R
477 select SYS_SUPPORTS_PCI
479 I-O DATA DEVICE, INC. "LANDISK Series" support.
483 depends on CPU_SUBTYPE_SH7751R
484 select CPU_HAS_IPR_IRQ
485 select SYS_SUPPORTS_PCI
487 Select Titan if you are configuring for a Nimble Microsystems
492 depends on CPU_SUBTYPE_SH7706
493 select CPU_HAS_IPR_IRQ
495 Select SHMIN if configuring for the SHMIN board.
499 depends on CPU_SUBTYPE_SH7751R
500 select SYS_SUPPORTS_PCI
502 Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2.
505 bool "SH-X3 Prototype board"
506 depends on CPU_SUBTYPE_SHX3
508 config SH_MAGIC_PANEL_R2
509 bool "Magic Panel R2"
510 depends on CPU_SUBTYPE_SH7720
512 Select Magic Panel R2 if configuring for Magic Panel R2.
515 bool "Hitachi Cayman"
516 depends on CPU_SUBTYPE_SH5_101 || CPU_SUBTYPE_SH5_103
517 select SYS_SUPPORTS_PCI
521 source "arch/sh/boards/renesas/rts7751r2d/Kconfig"
522 source "arch/sh/boards/renesas/r7780rp/Kconfig"
523 source "arch/sh/boards/magicpanelr2/Kconfig"
525 menu "Timer and clock configuration"
529 prompt "TMU timer support"
530 depends on CPU_SH3 || CPU_SH4
532 select GENERIC_CLOCKEVENTS
534 This enables the use of the TMU as the system timer.
538 prompt "CMT timer support"
541 This enables the use of the CMT as the system timer.
545 prompt "MTU2 timer support"
548 This enables the use of the MTU2 as the system timer.
552 default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \
554 default "86" if CPU_SUBTYPE_SH7619
555 default "140" if CPU_SUBTYPE_SH7206
559 int "Peripheral clock frequency (in Hz)"
560 default "27000000" if CPU_SUBTYPE_SH7343
561 default "31250000" if CPU_SUBTYPE_SH7619
562 default "32000000" if CPU_SUBTYPE_SH7722
563 default "33333333" if CPU_SUBTYPE_SH7770 || \
564 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
565 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
567 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
568 default "66000000" if CPU_SUBTYPE_SH4_202
571 This option is used to specify the peripheral clock frequency.
572 This is necessary for determining the reference clock value on
573 platforms lacking an RTC.
576 int "CPU Mode Pin Setting"
578 default 6 if CPU_SUBTYPE_SH7206
579 default 5 if CPU_SUBTYPE_SH7619
582 MD2 - MD0 pin setting.
584 source "kernel/time/Kconfig"
588 menu "CPU Frequency scaling"
590 source "drivers/cpufreq/Kconfig"
593 tristate "SuperH CPU Frequency driver"
595 select CPU_FREQ_TABLE
597 This adds the cpufreq driver for SuperH. At present, only
598 the SH-4 is supported.
600 For details, take a look at <file:Documentation/cpu-freq>.
606 source "arch/sh/drivers/Kconfig"
612 depends on SH_MPC1211
614 menu "Kernel features"
616 source kernel/Kconfig.hz
619 bool "kexec system call (EXPERIMENTAL)"
620 depends on EXPERIMENTAL
622 kexec is a system call that implements the ability to shutdown your
623 current kernel, and to start another kernel. It is like a reboot
624 but it is independent of the system firmware. And like a reboot
625 you can start any kernel with it, not just Linux.
627 The name comes from the similarity to the exec system call.
629 It is an ongoing process to be certain the hardware in a machine
630 is properly shutdown, so do not be surprised if this code does not
631 initially work for you. It may help to enable device hotplugging
632 support. As of this writing the exact hardware interface is
633 strongly in flux, so no good recommendation can be made.
636 bool "kernel crash dumps (EXPERIMENTAL)"
637 depends on EXPERIMENTAL
639 Generate crash dump after being started by kexec.
640 This should be normally only set in special crash dump kernels
641 which are loaded in the main kernel with kexec-tools into
642 a specially reserved region and then later executed after
643 a crash by kdump/kexec. The crash dump kernel must be compiled
644 to a memory address not used by the main kernel using
647 For more details see Documentation/kdump/kdump.txt
650 bool "Symmetric multi-processing support"
651 depends on SYS_SUPPORTS_SMP
653 This enables support for systems with more than one CPU. If you have
654 a system with only one CPU, like most personal computers, say N. If
655 you have a system with more than one CPU, say Y.
657 If you say N here, the kernel will run on single and multiprocessor
658 machines, but will use only one CPU of a multiprocessor machine. If
659 you say Y here, the kernel will run on many, but not all,
660 singleprocessor machines. On a singleprocessor machine, the kernel
661 will run faster if you say N here.
663 People using multiprocessor machines who say Y here should also say
664 Y to "Enhanced Real Time Clock Support", below.
666 See also the <file:Documentation/smp.txt>,
667 <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available
668 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_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 implemention 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 insterrupts around the atomic sequence.
716 config ZERO_PAGE_OFFSET
717 hex "Zero page offset"
718 default "0x00004000" if SH_MPC1211 || SH_SH03
719 default "0x00010000" if PAGE_SIZE_64KB
720 default "0x00002000" if PAGE_SIZE_8KB
723 This sets the default offset of zero page.
725 config BOOT_LINK_OFFSET
726 hex "Link address offset for booting"
729 This option allows you to set the link address offset of the zImage.
730 This can be useful if you are on a board which has a small amount of
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"
756 # Even on SuperH devices which don't have an ISA bus,
757 # this variable helps the PCMCIA modules handle
758 # IRQ requesting properly -- Greg Banks.
760 # Though we're generally not interested in it when
761 # we're not using PCMCIA, so we make it dependent on
762 # PCMCIA outright. -- PFM.
765 depends on PCMCIA && HD6446X_SERIES
767 Find out whether you have ISA slots on your motherboard. ISA is the
768 name of a bus system, i.e. the way the CPU talks to the other stuff
769 inside your box. Other bus systems are PCI, EISA, MicroChannel
770 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
771 newer boards don't support it. If you have ISA, say Y, otherwise N.
776 The Extended Industry Standard Architecture (EISA) bus was
777 developed as an open alternative to the IBM MicroChannel bus.
779 The EISA bus provided some of the features of the IBM MicroChannel
780 bus while maintaining backward compatibility with cards made for
781 the older ISA bus. The EISA bus saw limited use between 1988 and
782 1995 when it was made obsolete by the PCI bus.
784 Say Y here if you are building a kernel for an EISA-based machine.
791 MicroChannel Architecture is found in some IBM PS/2 machines and
792 laptops. It is a bus system similar to PCI or ISA. See
793 <file:Documentation/mca.txt> (and especially the web page given
794 there) before attempting to build an MCA bus kernel.
800 tristate "SuperHyway Bus support"
801 depends on CPU_SUBTYPE_SH4_202
804 bool "Maple Bus support"
805 depends on SH_DREAMCAST
807 The Maple Bus is SEGA's serial communication bus for peripherals
808 on the Dreamcast. Without this bus support you won't be able to
809 get your Dreamcast keyboard etc to work, so most users
810 probably want to say 'Y' here, unless you are only using the
811 Dreamcast with a serial line terminal or a remote network
815 bool "Compact Flash Enabler support"
816 depends on SOLUTION_ENGINE || SH_SH03
818 Compact Flash is a small, removable mass storage device introduced
819 in 1994 originally as a PCMCIA device. If you say `Y' here, you
820 compile in support for Compact Flash devices directly connected to
821 a SuperH processor. A Compact Flash FAQ is available at
822 <http://www.compactflash.org/faqs/faq.htm>.
824 If your board has "Directly Connected" CompactFlash at area 5 or 6,
825 you may want to enable this option. Then, you can use CF as
826 primary IDE drive (only tested for SanDisk).
828 If in doubt, select 'N'.
831 prompt "Compact Flash Connection Area"
832 depends on CF_ENABLER
838 If your board has "Directly Connected" CompactFlash, You should
839 select the area where your CF is connected to.
841 - "Area5" if CompactFlash is connected to Area 5 (0x14000000)
842 - "Area6" if it is connected to Area 6 (0x18000000)
844 "Area6" will work for most boards.
853 depends on CF_ENABLER
854 default "0xb8000000" if CF_AREA6
855 default "0xb4000000" if CF_AREA5
857 source "arch/sh/drivers/pci/Kconfig"
859 source "drivers/pci/Kconfig"
861 source "drivers/pcmcia/Kconfig"
863 source "drivers/pci/hotplug/Kconfig"
867 menu "Executable file formats"
869 source "fs/Kconfig.binfmt"
873 menu "Power management options (EXPERIMENTAL)"
874 depends on EXPERIMENTAL && SYS_SUPPORTS_PM
876 source kernel/power/Kconfig
882 source "drivers/Kconfig"
886 source "kernel/Kconfig.instrumentation"
888 source "arch/sh/Kconfig.debug"
890 source "security/Kconfig"
892 source "crypto/Kconfig"