xref: /openbmc/linux/arch/sh/Kconfig (revision 4e2b1084)
1ea0e1a9aSPaul Mundtconfig SUPERH
2ea0e1a9aSPaul Mundt	def_bool y
36a108a14SDavid Rientjes	select EXPERT
46d803ba7SJean-Christop PLAGNIOL-VILLARD	select CLKDEV_LOOKUP
586e4dd5aSPaul Mundt	select HAVE_IDE if HAS_IOPORT
695f72d1eSYinghai Lu	select HAVE_MEMBLOCK
742d4b839SMathieu Desnoyers	select HAVE_OPROFILE
89de90ac2SDmitry Baryshkov	select HAVE_GENERIC_DMA_COHERENT
9d7b01f78SPaul Mundt	select HAVE_ARCH_TRACEHOOK
10f802d969SPaul Mundt	select HAVE_DMA_API_DEBUG
1173c926beSPaul Mundt	select HAVE_DMA_ATTRS
12e360adbeSPeter Zijlstra	select HAVE_IRQ_WORK
13cdd6c482SIngo Molnar	select HAVE_PERF_EVENTS
1472f0c137SPaul Mundt	select PERF_USE_VMALLOC
15df8ce259SPaul Mundt	select HAVE_KERNEL_GZIP
1607e88e1bSPaul Mundt	select HAVE_KERNEL_BZIP2
1707e88e1bSPaul Mundt	select HAVE_KERNEL_LZMA
1850cfa79dSPaul Mundt	select HAVE_KERNEL_XZ
19c7b16efbSPaul Mundt	select HAVE_KERNEL_LZO
20a74f7e04SPaul Mundt	select HAVE_SYSCALL_TRACEPOINTS
21eaaaeef3SPaul Mundt	select HAVE_REGS_AND_STACK_ACCESS_API
2257b81330SPaul Mundt	select HAVE_GENERIC_HARDIRQS
2357b81330SPaul Mundt	select HAVE_SPARSE_IRQ
24ed170924SPaul Mundt	select IRQ_FORCED_THREADING
256eac1af0SPaul Mundt	select RTC_LIB
26f01789c6SPaul Mundt	select GENERIC_ATOMIC64
273d44ae40SPaul Mundt	select GENERIC_IRQ_SHOW
28ea0e1a9aSPaul Mundt	help
29ea0e1a9aSPaul Mundt	  The SuperH is a RISC processor targeted for use in embedded systems
30ea0e1a9aSPaul Mundt	  and consumer electronics; it was also used in the Sega Dreamcast
31ea0e1a9aSPaul Mundt	  gaming console.  The SuperH port has a home page at
32ea0e1a9aSPaul Mundt	  <http://www.linux-sh.org/>.
33ea0e1a9aSPaul Mundt
34ea0e1a9aSPaul Mundtconfig SUPERH32
353cc000b5SPaul Mundt	def_bool ARCH = "sh"
36d39f5450SChris Smith	select HAVE_KPROBES
37d39f5450SChris Smith	select HAVE_KRETPROBES
386d63e73dSPaul Mundt	select HAVE_IOREMAP_PROT if MMU && !X2TLB
39694f94f2SPaul Mundt	select HAVE_FUNCTION_TRACER
40fad57febSMatt Fleming	select HAVE_FTRACE_MCOUNT_RECORD
41fad57febSMatt Fleming	select HAVE_DYNAMIC_FTRACE
42c1340c05SMatt Fleming	select HAVE_FUNCTION_TRACE_MCOUNT_TEST
43e4b053d9SPaul Mundt	select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
44327933f5SMatt Fleming	select HAVE_FUNCTION_GRAPH_TRACER
45ab6e570bSPaul Mundt	select HAVE_ARCH_KGDB
466fbfe8d7SPaul Mundt	select HAVE_HW_BREAKPOINT
470102752eSFrederic Weisbecker	select HAVE_MIXED_BREAKPOINTS_REGS
48e583d6b3SSam Ravnborg	select PERF_EVENTS
498dafc346SPaul Mundt	select ARCH_HIBERNATION_POSSIBLE if MMU
5057b81330SPaul Mundt	select SPARSE_IRQ
51ea0e1a9aSPaul Mundt
52ea0e1a9aSPaul Mundtconfig SUPERH64
533cc000b5SPaul Mundt	def_bool ARCH = "sh64"
54ea0e1a9aSPaul Mundt
55f42b7e3dSPaul Mundtconfig ARCH_DEFCONFIG
56f42b7e3dSPaul Mundt	string
57f42b7e3dSPaul Mundt	default "arch/sh/configs/shx3_defconfig" if SUPERH32
58f42b7e3dSPaul Mundt	default "arch/sh/configs/cayman_defconfig" if SUPERH64
59f42b7e3dSPaul Mundt
60ea0e1a9aSPaul Mundtconfig RWSEM_GENERIC_SPINLOCK
61d7ef4fb3SHarvey Harrison	def_bool y
62ea0e1a9aSPaul Mundt
63ea0e1a9aSPaul Mundtconfig RWSEM_XCHGADD_ALGORITHM
64ea0e1a9aSPaul Mundt	bool
65ea0e1a9aSPaul Mundt
66ea0e1a9aSPaul Mundtconfig GENERIC_BUG
67ea0e1a9aSPaul Mundt	def_bool y
68a82d53ecSPaul Mundt	depends on BUG && SUPERH32
69ea0e1a9aSPaul Mundt
703767f3f1SPaul Mundtconfig GENERIC_CSUM
713767f3f1SPaul Mundt	def_bool y
723767f3f1SPaul Mundt	depends on SUPERH64
733767f3f1SPaul Mundt
74ea0e1a9aSPaul Mundtconfig GENERIC_FIND_NEXT_BIT
75d7ef4fb3SHarvey Harrison	def_bool y
76ea0e1a9aSPaul Mundt
770664996bSAkinobu Mitaconfig GENERIC_FIND_BIT_LE
780664996bSAkinobu Mita	def_bool y
790664996bSAkinobu Mita
80ea0e1a9aSPaul Mundtconfig GENERIC_HWEIGHT
81d7ef4fb3SHarvey Harrison	def_bool y
82ea0e1a9aSPaul Mundt
832eb2a436SPaul Mundtconfig IRQ_PER_CPU
842eb2a436SPaul Mundt	def_bool y
852eb2a436SPaul Mundt
862967dab1SMagnus Dammconfig GENERIC_GPIO
872967dab1SMagnus Damm	def_bool n
882967dab1SMagnus Damm
89ea0e1a9aSPaul Mundtconfig GENERIC_CALIBRATE_DELAY
90cf204fa7SPaul Mundt	bool
91ea0e1a9aSPaul Mundt
92ea0e1a9aSPaul Mundtconfig GENERIC_IOMAP
93ea0e1a9aSPaul Mundt	bool
94ea0e1a9aSPaul Mundt
95ea0e1a9aSPaul Mundtconfig GENERIC_CLOCKEVENTS
96938edae1SPaul Mundt	def_bool y
97ea0e1a9aSPaul Mundt
988c24594dSPaul Mundtconfig GENERIC_CLOCKEVENTS_BROADCAST
998c24594dSPaul Mundt	bool
1008c24594dSPaul Mundt
1016d134b9eSPaul Mundtconfig GENERIC_CMOS_UPDATE
1026d134b9eSPaul Mundt	def_bool y
1036d134b9eSPaul Mundt	depends on SH_SH03 || SH_DREAMCAST
1046d134b9eSPaul Mundt
105bdcab87bSPaul Mundtconfig GENERIC_LOCKBREAK
106bdcab87bSPaul Mundt	def_bool y
107bdcab87bSPaul Mundt	depends on SMP && PREEMPT
108bdcab87bSPaul Mundt
109ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_PM
110ea0e1a9aSPaul Mundt	bool
111af998a9aSMagnus Damm	depends on !SMP
112af998a9aSMagnus Damm
113af998a9aSMagnus Dammconfig ARCH_SUSPEND_POSSIBLE
114af998a9aSMagnus Damm	def_bool n
115af998a9aSMagnus Damm
116af998a9aSMagnus Dammconfig ARCH_HIBERNATION_POSSIBLE
117af998a9aSMagnus Damm	def_bool n
118ea0e1a9aSPaul Mundt
119ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_APM_EMULATION
120ea0e1a9aSPaul Mundt	bool
121af998a9aSMagnus Damm	select ARCH_SUSPEND_POSSIBLE
122ea0e1a9aSPaul Mundt
123ffb4a73dSPaul Mundtconfig SYS_SUPPORTS_HUGETLBFS
124ffb4a73dSPaul Mundt	bool
125ffb4a73dSPaul Mundt
126ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_SMP
127ea0e1a9aSPaul Mundt	bool
128ea0e1a9aSPaul Mundt
129ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_NUMA
130ea0e1a9aSPaul Mundt	bool
131ea0e1a9aSPaul Mundt
132ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_PCI
133ea0e1a9aSPaul Mundt	bool
134ea0e1a9aSPaul Mundt
135f5ad881bSPaul Mundtconfig SYS_SUPPORTS_CMT
136f5ad881bSPaul Mundt	bool
137f5ad881bSPaul Mundt
138d5ed4c2eSMagnus Dammconfig SYS_SUPPORTS_MTU2
139d5ed4c2eSMagnus Damm	bool
140d5ed4c2eSMagnus Damm
1419570ef20SMagnus Dammconfig SYS_SUPPORTS_TMU
1429570ef20SMagnus Damm	bool
1439570ef20SMagnus Damm
144ea0e1a9aSPaul Mundtconfig STACKTRACE_SUPPORT
145d7ef4fb3SHarvey Harrison	def_bool y
146ea0e1a9aSPaul Mundt
147ea0e1a9aSPaul Mundtconfig LOCKDEP_SUPPORT
148d7ef4fb3SHarvey Harrison	def_bool y
149ea0e1a9aSPaul Mundt
1505a89f1adSPaul Mundtconfig HAVE_LATENCYTOP_SUPPORT
1515a89f1adSPaul Mundt	def_bool y
1525a89f1adSPaul Mundt
153ea0e1a9aSPaul Mundtconfig ARCH_HAS_ILOG2_U32
154d7ef4fb3SHarvey Harrison	def_bool n
155ea0e1a9aSPaul Mundt
156ea0e1a9aSPaul Mundtconfig ARCH_HAS_ILOG2_U64
157d7ef4fb3SHarvey Harrison	def_bool n
158ea0e1a9aSPaul Mundt
159ea0e1a9aSPaul Mundtconfig ARCH_NO_VIRT_TO_BUS
160ea0e1a9aSPaul Mundt	def_bool y
161ea0e1a9aSPaul Mundt
162e869a90eSPaul Mundtconfig ARCH_HAS_DEFAULT_IDLE
163e869a90eSPaul Mundt	def_bool y
164e869a90eSPaul Mundt
1652e046b94SPaul Mundtconfig ARCH_HAS_CPU_IDLE_WAIT
1662e046b94SPaul Mundt	def_bool y
1672e046b94SPaul Mundt
16886e4dd5aSPaul Mundtconfig NO_IOPORT
16937b7a978SPaul Mundt	def_bool !PCI
1704e2b1084SPaul Mundt	depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN
17186e4dd5aSPaul Mundt
172e7cc9a73SMagnus Dammconfig IO_TRAPPED
173e7cc9a73SMagnus Damm	bool
174e7cc9a73SMagnus Damm
17501be5d63SPaul Mundtconfig DMA_COHERENT
17601be5d63SPaul Mundt	bool
17701be5d63SPaul Mundt
17801be5d63SPaul Mundtconfig DMA_NONCOHERENT
17901be5d63SPaul Mundt	def_bool !DMA_COHERENT
18001be5d63SPaul Mundt
1815cabbb62SFUJITA Tomonoriconfig NEED_DMA_MAP_STATE
1825cabbb62SFUJITA Tomonori	def_bool DMA_NONCOHERENT
1835cabbb62SFUJITA Tomonori
18418e98307SFUJITA Tomonoriconfig NEED_SG_DMA_LENGTH
18518e98307SFUJITA Tomonori	def_bool y
18618e98307SFUJITA Tomonori
187ea0e1a9aSPaul Mundtsource "init/Kconfig"
188ea0e1a9aSPaul Mundt
189dc52ddc0SMatt Helsleysource "kernel/Kconfig.freezer"
190dc52ddc0SMatt Helsley
191ea0e1a9aSPaul Mundtmenu "System type"
192ea0e1a9aSPaul Mundt
193ea0e1a9aSPaul Mundt#
194ea0e1a9aSPaul Mundt# Processor families
195ea0e1a9aSPaul Mundt#
196ea0e1a9aSPaul Mundtconfig CPU_SH2
197ea0e1a9aSPaul Mundt	bool
198ea0e1a9aSPaul Mundt
199ea0e1a9aSPaul Mundtconfig CPU_SH2A
200ea0e1a9aSPaul Mundt	bool
201ea0e1a9aSPaul Mundt	select CPU_SH2
202e2fcf74fSPaul Mundt	select UNCACHED_MAPPING
203ea0e1a9aSPaul Mundt
204ea0e1a9aSPaul Mundtconfig CPU_SH3
205ea0e1a9aSPaul Mundt	bool
206ea0e1a9aSPaul Mundt	select CPU_HAS_INTEVT
207ea0e1a9aSPaul Mundt	select CPU_HAS_SR_RB
2084fa48e17SPaul Mundt	select SYS_SUPPORTS_TMU
209ea0e1a9aSPaul Mundt
210ea0e1a9aSPaul Mundtconfig CPU_SH4
211ea0e1a9aSPaul Mundt	bool
212ea0e1a9aSPaul Mundt	select CPU_HAS_INTEVT
213ea0e1a9aSPaul Mundt	select CPU_HAS_SR_RB
214ea0e1a9aSPaul Mundt	select CPU_HAS_FPU if !CPU_SH4AL_DSP
2154fa48e17SPaul Mundt	select SYS_SUPPORTS_TMU
216ffb4a73dSPaul Mundt	select SYS_SUPPORTS_HUGETLBFS if MMU
217ea0e1a9aSPaul Mundt
218ea0e1a9aSPaul Mundtconfig CPU_SH4A
219ea0e1a9aSPaul Mundt	bool
220ea0e1a9aSPaul Mundt	select CPU_SH4
221ea0e1a9aSPaul Mundt
222ea0e1a9aSPaul Mundtconfig CPU_SH4AL_DSP
223ea0e1a9aSPaul Mundt	bool
224ea0e1a9aSPaul Mundt	select CPU_SH4A
225ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
226ea0e1a9aSPaul Mundt
227ea0e1a9aSPaul Mundtconfig CPU_SH5
228ea0e1a9aSPaul Mundt	bool
229ea0e1a9aSPaul Mundt	select CPU_HAS_FPU
230add47067SPaul Mundt	select SYS_SUPPORTS_TMU
231ffb4a73dSPaul Mundt	select SYS_SUPPORTS_HUGETLBFS if MMU
232ea0e1a9aSPaul Mundt
233ea0e1a9aSPaul Mundtconfig CPU_SHX2
234ea0e1a9aSPaul Mundt	bool
235ea0e1a9aSPaul Mundt
236ea0e1a9aSPaul Mundtconfig CPU_SHX3
237ea0e1a9aSPaul Mundt	bool
23801be5d63SPaul Mundt	select DMA_COHERENT
2394b478ee2SPaul Mundt	select SYS_SUPPORTS_SMP
2404b478ee2SPaul Mundt	select SYS_SUPPORTS_NUMA
241ea0e1a9aSPaul Mundt
242dc65a977SPaul Mundtconfig ARCH_SHMOBILE
243dc65a977SPaul Mundt	bool
24477594912SMagnus Damm	select ARCH_SUSPEND_POSSIBLE
245ac2c596bSMagnus Damm	select PM
246ac2c596bSMagnus Damm	select PM_RUNTIME
247dc65a977SPaul Mundt
24886c8c047SMatt Flemingconfig CPU_HAS_PMU
24986c8c047SMatt Fleming       depends on CPU_SH4 || CPU_SH4A
25086c8c047SMatt Fleming       default y
25186c8c047SMatt Fleming       bool
25286c8c047SMatt Fleming
2533cc000b5SPaul Mundtif SUPERH32
2543cc000b5SPaul Mundt
255ea0e1a9aSPaul Mundtchoice
256ea0e1a9aSPaul Mundt	prompt "Processor sub-type selection"
257ea0e1a9aSPaul Mundt
258ea0e1a9aSPaul Mundt#
259ea0e1a9aSPaul Mundt# Processor subtypes
260ea0e1a9aSPaul Mundt#
261ea0e1a9aSPaul Mundt
262ea0e1a9aSPaul Mundt# SH-2 Processor Support
263ea0e1a9aSPaul Mundt
264ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7619
265ea0e1a9aSPaul Mundt	bool "Support SH7619 processor"
266ea0e1a9aSPaul Mundt	select CPU_SH2
267f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
268ea0e1a9aSPaul Mundt
269ea0e1a9aSPaul Mundt# SH-2A Processor Support
270ea0e1a9aSPaul Mundt
2712825999eSPeter Griffinconfig CPU_SUBTYPE_SH7201
2722825999eSPeter Griffin	bool "Support SH7201 processor"
2732825999eSPeter Griffin	select CPU_SH2A
2742825999eSPeter Griffin	select CPU_HAS_FPU
275da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
2762825999eSPeter Griffin
2776d01f510SPaul Mundtconfig CPU_SUBTYPE_SH7203
2786d01f510SPaul Mundt	bool "Support SH7203 processor"
2796d01f510SPaul Mundt	select CPU_SH2A
28074d99a5eSPaul Mundt	select CPU_HAS_FPU
281f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
282da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
283f020c92dSPaul Mundt	select ARCH_WANT_OPTIONAL_GPIOLIB
2846d01f510SPaul Mundt
285ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7206
286ea0e1a9aSPaul Mundt	bool "Support SH7206 processor"
287ea0e1a9aSPaul Mundt	select CPU_SH2A
288f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
289da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
290ea0e1a9aSPaul Mundt
291a8f67f4bSPaul Mundtconfig CPU_SUBTYPE_SH7263
292a8f67f4bSPaul Mundt	bool "Support SH7263 processor"
293a8f67f4bSPaul Mundt	select CPU_SH2A
29474d99a5eSPaul Mundt	select CPU_HAS_FPU
295f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
296da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
297a8f67f4bSPaul Mundt
2982ad69908SPaul Mundtconfig CPU_SUBTYPE_MXG
2992ad69908SPaul Mundt	bool "Support MX-G processor"
3002ad69908SPaul Mundt	select CPU_SH2A
301da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
3022ad69908SPaul Mundt	help
3032ad69908SPaul Mundt	  Select MX-G if running on an R8A03022BG part.
3042ad69908SPaul Mundt
305ea0e1a9aSPaul Mundt# SH-3 Processor Support
306ea0e1a9aSPaul Mundt
307ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7705
308ea0e1a9aSPaul Mundt	bool "Support SH7705 processor"
309ea0e1a9aSPaul Mundt	select CPU_SH3
310ea0e1a9aSPaul Mundt
311ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7706
312ea0e1a9aSPaul Mundt	bool "Support SH7706 processor"
313ea0e1a9aSPaul Mundt	select CPU_SH3
314ea0e1a9aSPaul Mundt	help
315ea0e1a9aSPaul Mundt	  Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
316ea0e1a9aSPaul Mundt
317ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7707
318ea0e1a9aSPaul Mundt	bool "Support SH7707 processor"
319ea0e1a9aSPaul Mundt	select CPU_SH3
320ea0e1a9aSPaul Mundt	help
321ea0e1a9aSPaul Mundt	  Select SH7707 if you have a  60 Mhz SH-3 HD6417707 CPU.
322ea0e1a9aSPaul Mundt
323ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7708
324ea0e1a9aSPaul Mundt	bool "Support SH7708 processor"
325ea0e1a9aSPaul Mundt	select CPU_SH3
326ea0e1a9aSPaul Mundt	help
327ea0e1a9aSPaul Mundt	  Select SH7708 if you have a  60 Mhz SH-3 HD6417708S or
328ea0e1a9aSPaul Mundt	  if you have a 100 Mhz SH-3 HD6417708R CPU.
329ea0e1a9aSPaul Mundt
330ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7709
331ea0e1a9aSPaul Mundt	bool "Support SH7709 processor"
332ea0e1a9aSPaul Mundt	select CPU_SH3
333ea0e1a9aSPaul Mundt	help
334ea0e1a9aSPaul Mundt	  Select SH7709 if you have a  80 Mhz SH-3 HD6417709 CPU.
335ea0e1a9aSPaul Mundt
336ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7710
337ea0e1a9aSPaul Mundt	bool "Support SH7710 processor"
338ea0e1a9aSPaul Mundt	select CPU_SH3
339ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
340ea0e1a9aSPaul Mundt	help
341ea0e1a9aSPaul Mundt	  Select SH7710 if you have a SH3-DSP SH7710 CPU.
342ea0e1a9aSPaul Mundt
343ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7712
344ea0e1a9aSPaul Mundt	bool "Support SH7712 processor"
345ea0e1a9aSPaul Mundt	select CPU_SH3
346ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
347ea0e1a9aSPaul Mundt	help
348ea0e1a9aSPaul Mundt	  Select SH7712 if you have a SH3-DSP SH7712 CPU.
349ea0e1a9aSPaul Mundt
350ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7720
351ea0e1a9aSPaul Mundt	bool "Support SH7720 processor"
352ea0e1a9aSPaul Mundt	select CPU_SH3
353ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
3542b23a882SMagnus Damm	select SYS_SUPPORTS_CMT
355f020c92dSPaul Mundt	select ARCH_WANT_OPTIONAL_GPIOLIB
356e3e9887eSPaul Mundt	select USB_ARCH_HAS_OHCI
357ea0e1a9aSPaul Mundt	help
358ea0e1a9aSPaul Mundt	  Select SH7720 if you have a SH3-DSP SH7720 CPU.
359ea0e1a9aSPaul Mundt
36031a49c4bSYoshihiro Shimodaconfig CPU_SUBTYPE_SH7721
36131a49c4bSYoshihiro Shimoda	bool "Support SH7721 processor"
36231a49c4bSYoshihiro Shimoda	select CPU_SH3
36331a49c4bSYoshihiro Shimoda	select CPU_HAS_DSP
3642b23a882SMagnus Damm	select SYS_SUPPORTS_CMT
365e3e9887eSPaul Mundt	select USB_ARCH_HAS_OHCI
36631a49c4bSYoshihiro Shimoda	help
36731a49c4bSYoshihiro Shimoda	  Select SH7721 if you have a SH3-DSP SH7721 CPU.
36831a49c4bSYoshihiro Shimoda
369ea0e1a9aSPaul Mundt# SH-4 Processor Support
370ea0e1a9aSPaul Mundt
371ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750
372ea0e1a9aSPaul Mundt	bool "Support SH7750 processor"
373ea0e1a9aSPaul Mundt	select CPU_SH4
374ea0e1a9aSPaul Mundt	help
375ea0e1a9aSPaul Mundt	  Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
376ea0e1a9aSPaul Mundt
377ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7091
378ea0e1a9aSPaul Mundt	bool "Support SH7091 processor"
379ea0e1a9aSPaul Mundt	select CPU_SH4
380ea0e1a9aSPaul Mundt	help
381ea0e1a9aSPaul Mundt	  Select SH7091 if you have an SH-4 based Sega device (such as
382ea0e1a9aSPaul Mundt	  the Dreamcast, Naomi, and Naomi 2).
383ea0e1a9aSPaul Mundt
384ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750R
385ea0e1a9aSPaul Mundt	bool "Support SH7750R processor"
386ea0e1a9aSPaul Mundt	select CPU_SH4
387ea0e1a9aSPaul Mundt
388ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750S
389ea0e1a9aSPaul Mundt	bool "Support SH7750S processor"
390ea0e1a9aSPaul Mundt	select CPU_SH4
391ea0e1a9aSPaul Mundt
392ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7751
393ea0e1a9aSPaul Mundt	bool "Support SH7751 processor"
394ea0e1a9aSPaul Mundt	select CPU_SH4
395ea0e1a9aSPaul Mundt	help
396ea0e1a9aSPaul Mundt	  Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
397ea0e1a9aSPaul Mundt	  or if you have a HD6417751R CPU.
398ea0e1a9aSPaul Mundt
399ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7751R
400ea0e1a9aSPaul Mundt	bool "Support SH7751R processor"
401ea0e1a9aSPaul Mundt	select CPU_SH4
402ea0e1a9aSPaul Mundt
403ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7760
404ea0e1a9aSPaul Mundt	bool "Support SH7760 processor"
405ea0e1a9aSPaul Mundt	select CPU_SH4
406ea0e1a9aSPaul Mundt
407ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH4_202
408ea0e1a9aSPaul Mundt	bool "Support SH4-202 processor"
409ea0e1a9aSPaul Mundt	select CPU_SH4
410ea0e1a9aSPaul Mundt
411ea0e1a9aSPaul Mundt# SH-4A Processor Support
412ea0e1a9aSPaul Mundt
413178dd0cdSPaul Mundtconfig CPU_SUBTYPE_SH7723
414178dd0cdSPaul Mundt	bool "Support SH7723 processor"
415178dd0cdSPaul Mundt	select CPU_SH4A
416178dd0cdSPaul Mundt	select CPU_SHX2
417dc65a977SPaul Mundt	select ARCH_SHMOBILE
418178dd0cdSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
419f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
420f020c92dSPaul Mundt	select ARCH_WANT_OPTIONAL_GPIOLIB
421178dd0cdSPaul Mundt	help
422178dd0cdSPaul Mundt	  Select SH7723 if you have an SH-MobileR2 CPU.
423178dd0cdSPaul Mundt
4240207a2efSKuninori Morimotoconfig CPU_SUBTYPE_SH7724
4250207a2efSKuninori Morimoto	bool "Support SH7724 processor"
4260207a2efSKuninori Morimoto	select CPU_SH4A
4270207a2efSKuninori Morimoto	select CPU_SHX2
42859fe700dSPaul Mundt	select ARCH_SHMOBILE
4290207a2efSKuninori Morimoto	select ARCH_SPARSEMEM_ENABLE
4300207a2efSKuninori Morimoto	select SYS_SUPPORTS_CMT
431f020c92dSPaul Mundt	select ARCH_WANT_OPTIONAL_GPIOLIB
4320207a2efSKuninori Morimoto	help
4330207a2efSKuninori Morimoto	  Select SH7724 if you have an SH-MobileR2R CPU.
4340207a2efSKuninori Morimoto
435c01f0f1aSYoshihiro Shimodaconfig CPU_SUBTYPE_SH7757
436c01f0f1aSYoshihiro Shimoda	bool "Support SH7757 processor"
437c01f0f1aSYoshihiro Shimoda	select CPU_SH4A
438c01f0f1aSYoshihiro Shimoda	select CPU_SHX2
439f020c92dSPaul Mundt	select ARCH_WANT_OPTIONAL_GPIOLIB
4400fe48601SYoshihiro Shimoda	select USB_ARCH_HAS_OHCI
4410fe48601SYoshihiro Shimoda	select USB_ARCH_HAS_EHCI
442c01f0f1aSYoshihiro Shimoda	help
443c01f0f1aSYoshihiro Shimoda	  Select SH7757 if you have a SH4A SH7757 CPU.
444c01f0f1aSYoshihiro Shimoda
4457d740a06SYoshihiro Shimodaconfig CPU_SUBTYPE_SH7763
4467d740a06SYoshihiro Shimoda	bool "Support SH7763 processor"
4477d740a06SYoshihiro Shimoda	select CPU_SH4A
448e3e9887eSPaul Mundt	select USB_ARCH_HAS_OHCI
4497d740a06SYoshihiro Shimoda	help
4507d740a06SYoshihiro Shimoda	  Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
4517d740a06SYoshihiro Shimoda
452ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7770
453ea0e1a9aSPaul Mundt	bool "Support SH7770 processor"
454ea0e1a9aSPaul Mundt	select CPU_SH4A
455ea0e1a9aSPaul Mundt
456ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7780
457ea0e1a9aSPaul Mundt	bool "Support SH7780 processor"
458ea0e1a9aSPaul Mundt	select CPU_SH4A
459ea0e1a9aSPaul Mundt
460ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7785
461ea0e1a9aSPaul Mundt	bool "Support SH7785 processor"
462ea0e1a9aSPaul Mundt	select CPU_SH4A
463ea0e1a9aSPaul Mundt	select CPU_SHX2
464ea0e1a9aSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
465ea0e1a9aSPaul Mundt	select SYS_SUPPORTS_NUMA
466f020c92dSPaul Mundt	select ARCH_WANT_OPTIONAL_GPIOLIB
467ea0e1a9aSPaul Mundt
46855ba99ebSKuninori Morimotoconfig CPU_SUBTYPE_SH7786
46955ba99ebSKuninori Morimoto	bool "Support SH7786 processor"
47055ba99ebSKuninori Morimoto	select CPU_SH4A
47137042fbdSPaul Mundt	select CPU_SHX3
4728263a67eSPaul Mundt	select CPU_HAS_PTEAEX
4732eb2a436SPaul Mundt	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
474f020c92dSPaul Mundt	select ARCH_WANT_OPTIONAL_GPIOLIB
475e3e9887eSPaul Mundt	select USB_ARCH_HAS_OHCI
476e3e9887eSPaul Mundt	select USB_ARCH_HAS_EHCI
47755ba99ebSKuninori Morimoto
478ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SHX3
479ea0e1a9aSPaul Mundt	bool "Support SH-X3 processor"
480ea0e1a9aSPaul Mundt	select CPU_SH4A
481ea0e1a9aSPaul Mundt	select CPU_SHX3
4825840263eSPaul Mundt	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
483742759eaSPaul Mundt	select ARCH_REQUIRE_GPIOLIB
484ea0e1a9aSPaul Mundt
485ea0e1a9aSPaul Mundt# SH4AL-DSP Processor Support
486ea0e1a9aSPaul Mundt
487ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7343
488ea0e1a9aSPaul Mundt	bool "Support SH7343 processor"
489ea0e1a9aSPaul Mundt	select CPU_SH4AL_DSP
490dc65a977SPaul Mundt	select ARCH_SHMOBILE
491f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
492ea0e1a9aSPaul Mundt
493ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7722
494ea0e1a9aSPaul Mundt	bool "Support SH7722 processor"
495ea0e1a9aSPaul Mundt	select CPU_SH4AL_DSP
496ea0e1a9aSPaul Mundt	select CPU_SHX2
497dc65a977SPaul Mundt	select ARCH_SHMOBILE
498ea0e1a9aSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
499ea0e1a9aSPaul Mundt	select SYS_SUPPORTS_NUMA
500f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
501f020c92dSPaul Mundt	select ARCH_WANT_OPTIONAL_GPIOLIB
502ea0e1a9aSPaul Mundt
5039109a30eSMagnus Dammconfig CPU_SUBTYPE_SH7366
5049109a30eSMagnus Damm	bool "Support SH7366 processor"
5059109a30eSMagnus Damm	select CPU_SH4AL_DSP
5069109a30eSMagnus Damm	select CPU_SHX2
507dc65a977SPaul Mundt	select ARCH_SHMOBILE
5089109a30eSMagnus Damm	select ARCH_SPARSEMEM_ENABLE
5099109a30eSMagnus Damm	select SYS_SUPPORTS_NUMA
510f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
5119109a30eSMagnus Damm
5123cc000b5SPaul Mundtendchoice
5133cc000b5SPaul Mundt
5143cc000b5SPaul Mundtendif
5153cc000b5SPaul Mundt
5163cc000b5SPaul Mundtif SUPERH64
5173cc000b5SPaul Mundt
5183cc000b5SPaul Mundtchoice
5193cc000b5SPaul Mundt	prompt "Processor sub-type selection"
5203cc000b5SPaul Mundt
521ea0e1a9aSPaul Mundt# SH-5 Processor Support
522ea0e1a9aSPaul Mundt
523ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH5_101
524ea0e1a9aSPaul Mundt	bool "Support SH5-101 processor"
525ea0e1a9aSPaul Mundt	select CPU_SH5
526ea0e1a9aSPaul Mundt
527ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH5_103
528ea0e1a9aSPaul Mundt	bool "Support SH5-103 processor"
5298ef97dd7SPaul Mundt	select CPU_SH5
530ea0e1a9aSPaul Mundt
531ea0e1a9aSPaul Mundtendchoice
532ea0e1a9aSPaul Mundt
5333cc000b5SPaul Mundtendif
5343cc000b5SPaul Mundt
535ea0e1a9aSPaul Mundtsource "arch/sh/mm/Kconfig"
536939a24a6SPaul Mundt
537ea0e1a9aSPaul Mundtsource "arch/sh/Kconfig.cpu"
538ea0e1a9aSPaul Mundt
539939a24a6SPaul Mundtsource "arch/sh/boards/Kconfig"
540ea0e1a9aSPaul Mundt
541ea0e1a9aSPaul Mundtmenu "Timer and clock configuration"
542ea0e1a9aSPaul Mundt
5439570ef20SMagnus Dammconfig SH_TIMER_TMU
5449570ef20SMagnus Damm	bool "TMU timer driver"
545f19900b2SMagnus Damm	depends on SYS_SUPPORTS_TMU
5469570ef20SMagnus Damm	default y
5479570ef20SMagnus Damm	help
5489570ef20SMagnus Damm	  This enables the build of the TMU timer driver.
5499570ef20SMagnus Damm
550f5ad881bSPaul Mundtconfig SH_TIMER_CMT
551f425752fSMagnus Damm	bool "CMT timer driver"
552f425752fSMagnus Damm	depends on SYS_SUPPORTS_CMT
553f425752fSMagnus Damm	default y
554f425752fSMagnus Damm	help
555f425752fSMagnus Damm	  This enables build of the CMT timer driver.
556f5ad881bSPaul Mundt
557d5ed4c2eSMagnus Dammconfig SH_TIMER_MTU2
558d5ed4c2eSMagnus Damm	bool "MTU2 timer driver"
5593280c886SMagnus Damm	depends on SYS_SUPPORTS_MTU2
560d5ed4c2eSMagnus Damm	default y
561d5ed4c2eSMagnus Damm	help
562d5ed4c2eSMagnus Damm	  This enables build of the MTU2 timer driver.
563d5ed4c2eSMagnus Damm
564ea0e1a9aSPaul Mundtconfig SH_PCLK_FREQ
565ea0e1a9aSPaul Mundt	int "Peripheral clock frequency (in Hz)"
5668152a74bSPaul Mundt	depends on SH_CLK_CPG_LEGACY
567ea0e1a9aSPaul Mundt	default "31250000" if CPU_SUBTYPE_SH7619
5688152a74bSPaul Mundt	default "33333333" if CPU_SUBTYPE_SH7770 || \
5698152a74bSPaul Mundt			      CPU_SUBTYPE_SH7760 || \
5708152a74bSPaul Mundt			      CPU_SUBTYPE_SH7705 || \
5718152a74bSPaul Mundt			      CPU_SUBTYPE_SH7203 || \
5728152a74bSPaul Mundt			      CPU_SUBTYPE_SH7206 || \
5738152a74bSPaul Mundt			      CPU_SUBTYPE_SH7263 || \
57443a1839cSPaul Mundt			      CPU_SUBTYPE_MXG
575ea0e1a9aSPaul Mundt	default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
576ea0e1a9aSPaul Mundt	default "66000000" if CPU_SUBTYPE_SH4_202
577ea0e1a9aSPaul Mundt	default "50000000"
578ea0e1a9aSPaul Mundt	help
579ea0e1a9aSPaul Mundt	  This option is used to specify the peripheral clock frequency.
580ea0e1a9aSPaul Mundt	  This is necessary for determining the reference clock value on
581ea0e1a9aSPaul Mundt	  platforms lacking an RTC.
582ea0e1a9aSPaul Mundt
58336aa1e32SPaul Mundtconfig SH_CLK_CPG
58436aa1e32SPaul Mundt	def_bool y
58536aa1e32SPaul Mundt
586253b0887SPaul Mundtconfig SH_CLK_CPG_LEGACY
58736aa1e32SPaul Mundt	depends on SH_CLK_CPG
58843a1839cSPaul Mundt	def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
5895924ad0dSPaul Mundt		      !CPU_SHX3 && !CPU_SUBTYPE_SH7757
590253b0887SPaul Mundt
591ea0e1a9aSPaul Mundtsource "kernel/time/Kconfig"
592ea0e1a9aSPaul Mundt
593ea0e1a9aSPaul Mundtendmenu
594ea0e1a9aSPaul Mundt
595ea0e1a9aSPaul Mundtmenu "CPU Frequency scaling"
596ea0e1a9aSPaul Mundt
597ea0e1a9aSPaul Mundtsource "drivers/cpufreq/Kconfig"
598ea0e1a9aSPaul Mundt
599ea0e1a9aSPaul Mundtconfig SH_CPU_FREQ
600ea0e1a9aSPaul Mundt	tristate "SuperH CPU Frequency driver"
601ea0e1a9aSPaul Mundt	depends on CPU_FREQ
602ea0e1a9aSPaul Mundt	select CPU_FREQ_TABLE
603ea0e1a9aSPaul Mundt	help
6048a655053SPaul Mundt	  This adds the cpufreq driver for SuperH. Any CPU that supports
6058a655053SPaul Mundt	  clock rate rounding through the clock framework can use this
6068a655053SPaul Mundt	  driver. While it will make the kernel slightly larger, this is
6078a655053SPaul Mundt	  harmless for CPUs that don't support rate rounding. The driver
6088a655053SPaul Mundt	  will also generate a notice in the boot log before disabling
6098a655053SPaul Mundt	  itself if the CPU in question is not capable of rate rounding.
610ea0e1a9aSPaul Mundt
611ea0e1a9aSPaul Mundt	  For details, take a look at <file:Documentation/cpu-freq>.
612ea0e1a9aSPaul Mundt
613ea0e1a9aSPaul Mundt	  If unsure, say N.
614ea0e1a9aSPaul Mundt
615ea0e1a9aSPaul Mundtendmenu
616ea0e1a9aSPaul Mundt
617ea0e1a9aSPaul Mundtsource "arch/sh/drivers/Kconfig"
618ea0e1a9aSPaul Mundt
619ea0e1a9aSPaul Mundtendmenu
620ea0e1a9aSPaul Mundt
621ea0e1a9aSPaul Mundtmenu "Kernel features"
622ea0e1a9aSPaul Mundt
623ea0e1a9aSPaul Mundtsource kernel/Kconfig.hz
624ea0e1a9aSPaul Mundt
625ea0e1a9aSPaul Mundtconfig KEXEC
626ea0e1a9aSPaul Mundt	bool "kexec system call (EXPERIMENTAL)"
627f36b59d1SNobuhiro Iwamatsu	depends on SUPERH32 && EXPERIMENTAL && MMU
628ea0e1a9aSPaul Mundt	help
629ea0e1a9aSPaul Mundt	  kexec is a system call that implements the ability to shutdown your
630ea0e1a9aSPaul Mundt	  current kernel, and to start another kernel.  It is like a reboot
631ea0e1a9aSPaul Mundt	  but it is independent of the system firmware.  And like a reboot
632ea0e1a9aSPaul Mundt	  you can start any kernel with it, not just Linux.
633ea0e1a9aSPaul Mundt
634ea0e1a9aSPaul Mundt	  The name comes from the similarity to the exec system call.
635ea0e1a9aSPaul Mundt
636ea0e1a9aSPaul Mundt	  It is an ongoing process to be certain the hardware in a machine
637ea0e1a9aSPaul Mundt	  is properly shutdown, so do not be surprised if this code does not
638ea0e1a9aSPaul Mundt	  initially work for you.  It may help to enable device hotplugging
639ea0e1a9aSPaul Mundt	  support.  As of this writing the exact hardware interface is
640ea0e1a9aSPaul Mundt	  strongly in flux, so no good recommendation can be made.
641ea0e1a9aSPaul Mundt
642ea0e1a9aSPaul Mundtconfig CRASH_DUMP
643ea0e1a9aSPaul Mundt	bool "kernel crash dumps (EXPERIMENTAL)"
644d523e1aeSPaul Mundt	depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP
645ea0e1a9aSPaul Mundt	help
646ea0e1a9aSPaul Mundt	  Generate crash dump after being started by kexec.
647ea0e1a9aSPaul Mundt	  This should be normally only set in special crash dump kernels
648ea0e1a9aSPaul Mundt	  which are loaded in the main kernel with kexec-tools into
649ea0e1a9aSPaul Mundt	  a specially reserved region and then later executed after
650ea0e1a9aSPaul Mundt	  a crash by kdump/kexec. The crash dump kernel must be compiled
651ea0e1a9aSPaul Mundt	  to a memory address not used by the main kernel using
652ea0e1a9aSPaul Mundt	  MEMORY_START.
653ea0e1a9aSPaul Mundt
654ea0e1a9aSPaul Mundt	  For more details see Documentation/kdump/kdump.txt
655ea0e1a9aSPaul Mundt
656b7cf6ddcSMagnus Dammconfig KEXEC_JUMP
657b7cf6ddcSMagnus Damm	bool "kexec jump (EXPERIMENTAL)"
658b7cf6ddcSMagnus Damm	depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
659b7cf6ddcSMagnus Damm	help
660b7cf6ddcSMagnus Damm	  Jump between original kernel and kexeced kernel and invoke
661b7cf6ddcSMagnus Damm	  code via KEXEC
662b7cf6ddcSMagnus Damm
663c4637d47SPaul Mundtconfig SECCOMP
664c4637d47SPaul Mundt	bool "Enable seccomp to safely compute untrusted bytecode"
665c4637d47SPaul Mundt	depends on PROC_FS
666c4637d47SPaul Mundt	help
667c4637d47SPaul Mundt	  This kernel feature is useful for number crunching applications
668c4637d47SPaul Mundt	  that may need to compute untrusted bytecode during their
669c4637d47SPaul Mundt	  execution. By using pipes or other transports made available to
670c4637d47SPaul Mundt	  the process as file descriptors supporting the read/write
671c4637d47SPaul Mundt	  syscalls, it's possible to isolate those applications in
672c4637d47SPaul Mundt	  their own address space using seccomp. Once seccomp is
673c4637d47SPaul Mundt	  enabled via prctl, it cannot be disabled and the task is only
674c4637d47SPaul Mundt	  allowed to execute a few safe syscalls defined by each seccomp
675c4637d47SPaul Mundt	  mode.
676c4637d47SPaul Mundt
677c4637d47SPaul Mundt	  If unsure, say N.
678c4637d47SPaul Mundt
679ea0e1a9aSPaul Mundtconfig SMP
680ea0e1a9aSPaul Mundt	bool "Symmetric multi-processing support"
681ea0e1a9aSPaul Mundt	depends on SYS_SUPPORTS_SMP
682490f5de5SJens Axboe	select USE_GENERIC_SMP_HELPERS
683ea0e1a9aSPaul Mundt	---help---
684ea0e1a9aSPaul Mundt	  This enables support for systems with more than one CPU. If you have
685ea0e1a9aSPaul Mundt	  a system with only one CPU, like most personal computers, say N. If
686ea0e1a9aSPaul Mundt	  you have a system with more than one CPU, say Y.
687ea0e1a9aSPaul Mundt
688ea0e1a9aSPaul Mundt	  If you say N here, the kernel will run on single and multiprocessor
689ea0e1a9aSPaul Mundt	  machines, but will use only one CPU of a multiprocessor machine. If
690ea0e1a9aSPaul Mundt	  you say Y here, the kernel will run on many, but not all,
691ea0e1a9aSPaul Mundt	  singleprocessor machines. On a singleprocessor machine, the kernel
692ea0e1a9aSPaul Mundt	  will run faster if you say N here.
693ea0e1a9aSPaul Mundt
694ea0e1a9aSPaul Mundt	  People using multiprocessor machines who say Y here should also say
695ea0e1a9aSPaul Mundt	  Y to "Enhanced Real Time Clock Support", below.
696ea0e1a9aSPaul Mundt
69703502faaSAdrian Bunk	  See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
69803502faaSAdrian Bunk	  available at <http://www.tldp.org/docs.html#howto>.
699ea0e1a9aSPaul Mundt
700ea0e1a9aSPaul Mundt	  If you don't know what to do here, say N.
701ea0e1a9aSPaul Mundt
702ea0e1a9aSPaul Mundtconfig NR_CPUS
703ea0e1a9aSPaul Mundt	int "Maximum number of CPUs (2-32)"
704ea0e1a9aSPaul Mundt	range 2 32
705ea0e1a9aSPaul Mundt	depends on SMP
7062eb2a436SPaul Mundt	default "4" if CPU_SUBTYPE_SHX3
707ea0e1a9aSPaul Mundt	default "2"
708ea0e1a9aSPaul Mundt	help
709ea0e1a9aSPaul Mundt	  This allows you to specify the maximum number of CPUs which this
710ea0e1a9aSPaul Mundt	  kernel will support.  The maximum supported value is 32 and the
711ea0e1a9aSPaul Mundt	  minimum value which makes sense is 2.
712ea0e1a9aSPaul Mundt
713ea0e1a9aSPaul Mundt	  This is purely to save memory - each supported CPU adds
714ea0e1a9aSPaul Mundt	  approximately eight kilobytes to the kernel image.
715ea0e1a9aSPaul Mundt
716763142d1SPaul Mundtconfig HOTPLUG_CPU
717763142d1SPaul Mundt	bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
718763142d1SPaul Mundt	depends on SMP && HOTPLUG && EXPERIMENTAL
719763142d1SPaul Mundt	help
720763142d1SPaul Mundt	  Say Y here to experiment with turning CPUs off and on.  CPUs
721763142d1SPaul Mundt	  can be controlled through /sys/devices/system/cpu.
722763142d1SPaul Mundt
723ea0e1a9aSPaul Mundtsource "kernel/Kconfig.preempt"
724ea0e1a9aSPaul Mundt
725ea0e1a9aSPaul Mundtconfig GUSA
726ea0e1a9aSPaul Mundt	def_bool y
7271efe4ce3SStuart Menefy	depends on !SMP && SUPERH32
728ea0e1a9aSPaul Mundt	help
729ea0e1a9aSPaul Mundt	  This enables support for gUSA (general UserSpace Atomicity).
730ea0e1a9aSPaul Mundt	  This is the default implementation for both UP and non-ll/sc
731ea0e1a9aSPaul Mundt	  CPUs, and is used by the libc, amongst others.
732ea0e1a9aSPaul Mundt
733ea0e1a9aSPaul Mundt	  For additional information, design information can be found
734ea0e1a9aSPaul Mundt	  in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
735ea0e1a9aSPaul Mundt
736ea0e1a9aSPaul Mundt	  This should only be disabled for special cases where alternate
737ea0e1a9aSPaul Mundt	  atomicity implementations exist.
738ea0e1a9aSPaul Mundt
7391efe4ce3SStuart Menefyconfig GUSA_RB
7401efe4ce3SStuart Menefy	bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
7411efe4ce3SStuart Menefy	depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
7421efe4ce3SStuart Menefy	help
7431efe4ce3SStuart Menefy	  Enabling this option will allow the kernel to implement some
744692105b8SMatt LaPlante	  atomic operations using a software implementation of load-locked/
7451efe4ce3SStuart Menefy	  store-conditional (LLSC). On machines which do not have hardware
7461efe4ce3SStuart Menefy	  LLSC, this should be more efficient than the other alternative of
747692105b8SMatt LaPlante	  disabling interrupts around the atomic sequence.
7481efe4ce3SStuart Menefy
74986c8c047SMatt Flemingconfig HW_PERF_EVENTS
75086c8c047SMatt Fleming	bool "Enable hardware performance counter support for perf events"
75186c8c047SMatt Fleming	depends on PERF_EVENTS && CPU_HAS_PMU
75286c8c047SMatt Fleming	default y
75386c8c047SMatt Fleming	help
75486c8c047SMatt Fleming	  Enable hardware performance counter support for perf events. If
75586c8c047SMatt Fleming	  disabled, perf events will use software events only.
75686c8c047SMatt Fleming
75743b8774dSPaul Mundtsource "drivers/sh/Kconfig"
75843b8774dSPaul Mundt
759ea0e1a9aSPaul Mundtendmenu
760ea0e1a9aSPaul Mundt
761ea0e1a9aSPaul Mundtmenu "Boot options"
762ea0e1a9aSPaul Mundt
763ea0e1a9aSPaul Mundtconfig ZERO_PAGE_OFFSET
764b412a49aSPaul Mundt	hex
765b412a49aSPaul Mundt	default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
766b412a49aSPaul Mundt				SH_7751_SOLUTION_ENGINE
767b412a49aSPaul Mundt	default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
768ea0e1a9aSPaul Mundt	default "0x00002000" if PAGE_SIZE_8KB
769ea0e1a9aSPaul Mundt	default "0x00001000"
770ea0e1a9aSPaul Mundt	help
771ea0e1a9aSPaul Mundt	  This sets the default offset of zero page.
772ea0e1a9aSPaul Mundt
773ea0e1a9aSPaul Mundtconfig BOOT_LINK_OFFSET
774b412a49aSPaul Mundt	hex
775b412a49aSPaul Mundt	default "0x00210000" if SH_SHMIN
776a2e76c80SPaul Mundt	default "0x00400000" if SH_CAYMAN
777b412a49aSPaul Mundt	default "0x00810000" if SH_7780_SOLUTION_ENGINE
778b412a49aSPaul Mundt	default "0x009e0000" if SH_TITAN
779b412a49aSPaul Mundt	default "0x01800000" if SH_SDK7780
780b412a49aSPaul Mundt	default "0x02000000" if SH_EDOSK7760
781ea0e1a9aSPaul Mundt	default "0x00800000"
782ea0e1a9aSPaul Mundt	help
783ea0e1a9aSPaul Mundt	  This option allows you to set the link address offset of the zImage.
784ea0e1a9aSPaul Mundt	  This can be useful if you are on a board which has a small amount of
785ea0e1a9aSPaul Mundt	  memory.
786ea0e1a9aSPaul Mundt
787b412a49aSPaul Mundtconfig ENTRY_OFFSET
788b412a49aSPaul Mundt	hex
789b412a49aSPaul Mundt	default "0x00001000" if PAGE_SIZE_4KB
790b412a49aSPaul Mundt	default "0x00002000" if PAGE_SIZE_8KB
791b412a49aSPaul Mundt	default "0x00004000" if PAGE_SIZE_16KB
792b412a49aSPaul Mundt	default "0x00010000" if PAGE_SIZE_64KB
793b412a49aSPaul Mundt	default "0x00000000"
794b412a49aSPaul Mundt
7954705b2e8SMagnus Dammconfig ROMIMAGE_MMCIF
7964705b2e8SMagnus Damm	bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
7974705b2e8SMagnus Damm	depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL
7984705b2e8SMagnus Damm	help
7994705b2e8SMagnus Damm	  Say Y here to include experimental MMCIF loading code in
8004705b2e8SMagnus Damm	  romImage. With this enabled it is possible to write the romImage
8014705b2e8SMagnus Damm	  kernel image to an MMC card and boot the kernel straight from
8024705b2e8SMagnus Damm	  the reset vector. At reset the processor Mask ROM will load the
8034705b2e8SMagnus Damm	  first part of the romImage which in turn loads the rest the kernel
8044705b2e8SMagnus Damm	  image to RAM using the MMCIF hardware block.
8054705b2e8SMagnus Damm
806d724a9c9SPawel Mollchoice
807d724a9c9SPawel Moll	prompt "Kernel command line"
808d724a9c9SPawel Moll	optional
809d724a9c9SPawel Moll	default CMDLINE_OVERWRITE
810d724a9c9SPawel Moll	help
811d724a9c9SPawel Moll	  Setting this option allows the kernel command line arguments
812d724a9c9SPawel Moll	  to be set.
813d724a9c9SPawel Moll
814d724a9c9SPawel Mollconfig CMDLINE_OVERWRITE
815d724a9c9SPawel Moll	bool "Overwrite bootloader kernel arguments"
816d724a9c9SPawel Moll	help
817d724a9c9SPawel Moll	  Given string will overwrite any arguments passed in by
818d724a9c9SPawel Moll	  a bootloader.
819d724a9c9SPawel Moll
820d724a9c9SPawel Mollconfig CMDLINE_EXTEND
821d724a9c9SPawel Moll	bool "Extend bootloader kernel arguments"
822d724a9c9SPawel Moll	help
823d724a9c9SPawel Moll	  Given string will be concatenated with arguments passed in
824d724a9c9SPawel Moll	  by a bootloader.
825d724a9c9SPawel Moll
826d724a9c9SPawel Mollendchoice
827ea0e1a9aSPaul Mundt
828ea0e1a9aSPaul Mundtconfig CMDLINE
829d724a9c9SPawel Moll	string "Kernel command line arguments string"
830d724a9c9SPawel Moll	depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
831ea0e1a9aSPaul Mundt	default "console=ttySC1,115200"
832ea0e1a9aSPaul Mundt
833ea0e1a9aSPaul Mundtendmenu
834ea0e1a9aSPaul Mundt
835ea0e1a9aSPaul Mundtmenu "Bus options"
836ea0e1a9aSPaul Mundt
837ea0e1a9aSPaul Mundtconfig SUPERHYWAY
838ea0e1a9aSPaul Mundt	tristate "SuperHyway Bus support"
839ea0e1a9aSPaul Mundt	depends on CPU_SUBTYPE_SH4_202
840ea0e1a9aSPaul Mundt
841ea0e1a9aSPaul Mundtconfig MAPLE
842ea0e1a9aSPaul Mundt	bool "Maple Bus support"
843ea0e1a9aSPaul Mundt	depends on SH_DREAMCAST
844ea0e1a9aSPaul Mundt	help
845ea0e1a9aSPaul Mundt	 The Maple Bus is SEGA's serial communication bus for peripherals
846ea0e1a9aSPaul Mundt	 on the Dreamcast. Without this bus support you won't be able to
847ea0e1a9aSPaul Mundt	 get your Dreamcast keyboard etc to work, so most users
848ea0e1a9aSPaul Mundt	 probably want to say 'Y' here, unless you are only using the
849ea0e1a9aSPaul Mundt	 Dreamcast with a serial line terminal or a remote network
850ea0e1a9aSPaul Mundt	 connection.
851ea0e1a9aSPaul Mundt
8527693465dSPaul Mundtconfig PCI
8537693465dSPaul Mundt	bool "PCI support"
8547693465dSPaul Mundt	depends on SYS_SUPPORTS_PCI
855320e68daSPaul Mundt	select PCI_DOMAINS
8567693465dSPaul Mundt	help
8577693465dSPaul Mundt	  Find out whether you have a PCI motherboard. PCI is the name of a
8587693465dSPaul Mundt	  bus system, i.e. the way the CPU talks to the other stuff inside
8597693465dSPaul Mundt	  your box. If you have PCI, say Y, otherwise N.
860ea0e1a9aSPaul Mundt
861320e68daSPaul Mundtconfig PCI_DOMAINS
862320e68daSPaul Mundt	bool
863320e68daSPaul Mundt
864e16038abSPaul Mundtsource "drivers/pci/pcie/Kconfig"
865e16038abSPaul Mundt
866ea0e1a9aSPaul Mundtsource "drivers/pci/Kconfig"
867ea0e1a9aSPaul Mundt
868ea0e1a9aSPaul Mundtsource "drivers/pcmcia/Kconfig"
869ea0e1a9aSPaul Mundt
870ea0e1a9aSPaul Mundtsource "drivers/pci/hotplug/Kconfig"
871ea0e1a9aSPaul Mundt
872ea0e1a9aSPaul Mundtendmenu
873ea0e1a9aSPaul Mundt
874ea0e1a9aSPaul Mundtmenu "Executable file formats"
875ea0e1a9aSPaul Mundt
876ea0e1a9aSPaul Mundtsource "fs/Kconfig.binfmt"
877ea0e1a9aSPaul Mundt
878ea0e1a9aSPaul Mundtendmenu
879ea0e1a9aSPaul Mundt
880ea0e1a9aSPaul Mundtmenu "Power management options (EXPERIMENTAL)"
881af998a9aSMagnus Dammdepends on EXPERIMENTAL
882f4cb5700SJohannes Berg
883c6f17cb2SMagnus Dammsource "kernel/power/Kconfig"
884c6f17cb2SMagnus Damm
885c6f17cb2SMagnus Dammsource "drivers/cpuidle/Kconfig"
886ea0e1a9aSPaul Mundt
887ea0e1a9aSPaul Mundtendmenu
888ea0e1a9aSPaul Mundt
889ea0e1a9aSPaul Mundtsource "net/Kconfig"
890ea0e1a9aSPaul Mundt
891ea0e1a9aSPaul Mundtsource "drivers/Kconfig"
892ea0e1a9aSPaul Mundt
893ea0e1a9aSPaul Mundtsource "fs/Kconfig"
894ea0e1a9aSPaul Mundt
895ea0e1a9aSPaul Mundtsource "arch/sh/Kconfig.debug"
896ea0e1a9aSPaul Mundt
897ea0e1a9aSPaul Mundtsource "security/Kconfig"
898ea0e1a9aSPaul Mundt
899ea0e1a9aSPaul Mundtsource "crypto/Kconfig"
900ea0e1a9aSPaul Mundt
9015f737b39SMagnus Dammmenuconfig VIRTUALIZATION
9025f737b39SMagnus Damm	bool "Virtualization"
9035f737b39SMagnus Damm	default n
9045f737b39SMagnus Damm	---help---
9055f737b39SMagnus Damm	  Say Y here to get to see options for using your Linux host to run other
9065f737b39SMagnus Damm	  operating systems inside virtual machines (guests).
9075f737b39SMagnus Damm	  This option alone does not add any kernel code.
9085f737b39SMagnus Damm
9095f737b39SMagnus Damm	  If you say N, all options in this submenu will be skipped and disabled.
9105f737b39SMagnus Damm
9115f737b39SMagnus Dammif VIRTUALIZATION
9125f737b39SMagnus Damm
9135f737b39SMagnus Dammsource drivers/virtio/Kconfig
9145f737b39SMagnus Damm
9155f737b39SMagnus Dammendif # VIRTUALIZATION
9165f737b39SMagnus Damm
917ea0e1a9aSPaul Mundtsource "lib/Kconfig"
918