xref: /openbmc/linux/arch/sh/Kconfig (revision 0102752e)
1ea0e1a9aSPaul Mundt#
2ea0e1a9aSPaul Mundt# For a description of the syntax of this configuration file,
3ea0e1a9aSPaul Mundt# see Documentation/kbuild/kconfig-language.txt.
4ea0e1a9aSPaul Mundt#
5ea0e1a9aSPaul Mundt
6ea0e1a9aSPaul Mundtmainmenu "Linux/SuperH Kernel Configuration"
7ea0e1a9aSPaul Mundt
8ea0e1a9aSPaul Mundtconfig SUPERH
9ea0e1a9aSPaul Mundt	def_bool y
10ea0e1a9aSPaul Mundt	select EMBEDDED
119483a578SDavid Brownell	select HAVE_CLK
12ec7748b5SSam Ravnborg	select HAVE_IDE
13c601a51aSMatt Fleming	select HAVE_LMB
1442d4b839SMathieu Desnoyers	select HAVE_OPROFILE
159de90ac2SDmitry Baryshkov	select HAVE_GENERIC_DMA_COHERENT
16d7b01f78SPaul Mundt	select HAVE_ARCH_TRACEHOOK
17f802d969SPaul Mundt	select HAVE_DMA_API_DEBUG
1873c926beSPaul Mundt	select HAVE_DMA_ATTRS
19cdd6c482SIngo Molnar	select HAVE_PERF_EVENTS
2072f0c137SPaul Mundt	select PERF_USE_VMALLOC
21df8ce259SPaul Mundt	select HAVE_KERNEL_GZIP
2207e88e1bSPaul Mundt	select HAVE_KERNEL_BZIP2
2307e88e1bSPaul Mundt	select HAVE_KERNEL_LZMA
24c7b16efbSPaul Mundt	select HAVE_KERNEL_LZO
25a74f7e04SPaul Mundt	select HAVE_SYSCALL_TRACEPOINTS
266eac1af0SPaul Mundt	select RTC_LIB
27f01789c6SPaul Mundt	select GENERIC_ATOMIC64
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
486c0ee6a4SPaul Mundt	select PERF_EVENTS if HAVE_HW_BREAKPOINT
498dafc346SPaul Mundt	select ARCH_HIBERNATION_POSSIBLE if MMU
50ea0e1a9aSPaul Mundt
51ea0e1a9aSPaul Mundtconfig SUPERH64
523cc000b5SPaul Mundt	def_bool ARCH = "sh64"
53ea0e1a9aSPaul Mundt
54f42b7e3dSPaul Mundtconfig ARCH_DEFCONFIG
55f42b7e3dSPaul Mundt	string
56f42b7e3dSPaul Mundt	default "arch/sh/configs/shx3_defconfig" if SUPERH32
57f42b7e3dSPaul Mundt	default "arch/sh/configs/cayman_defconfig" if SUPERH64
58f42b7e3dSPaul Mundt
59ea0e1a9aSPaul Mundtconfig RWSEM_GENERIC_SPINLOCK
60d7ef4fb3SHarvey Harrison	def_bool y
61ea0e1a9aSPaul Mundt
62ea0e1a9aSPaul Mundtconfig RWSEM_XCHGADD_ALGORITHM
63ea0e1a9aSPaul Mundt	bool
64ea0e1a9aSPaul Mundt
65ea0e1a9aSPaul Mundtconfig GENERIC_BUG
66ea0e1a9aSPaul Mundt	def_bool y
67a82d53ecSPaul Mundt	depends on BUG && SUPERH32
68ea0e1a9aSPaul Mundt
693767f3f1SPaul Mundtconfig GENERIC_CSUM
703767f3f1SPaul Mundt	def_bool y
713767f3f1SPaul Mundt	depends on SUPERH64
723767f3f1SPaul Mundt
73ea0e1a9aSPaul Mundtconfig GENERIC_FIND_NEXT_BIT
74d7ef4fb3SHarvey Harrison	def_bool y
75ea0e1a9aSPaul Mundt
76ea0e1a9aSPaul Mundtconfig GENERIC_HWEIGHT
77d7ef4fb3SHarvey Harrison	def_bool y
78ea0e1a9aSPaul Mundt
79ea0e1a9aSPaul Mundtconfig GENERIC_HARDIRQS
80d7ef4fb3SHarvey Harrison	def_bool y
81ea0e1a9aSPaul Mundt
825093c9a4SPaul Mundtconfig GENERIC_HARDIRQS_NO__DO_IRQ
835093c9a4SPaul Mundt	def_bool y
845093c9a4SPaul Mundt
852eb2a436SPaul Mundtconfig IRQ_PER_CPU
862eb2a436SPaul Mundt	def_bool y
872eb2a436SPaul Mundt
884b842c85SPaul Mundtconfig SPARSE_IRQ
894b842c85SPaul Mundt	def_bool y
904b842c85SPaul Mundt	depends on SUPERH32
914b842c85SPaul Mundt
922967dab1SMagnus Dammconfig GENERIC_GPIO
932967dab1SMagnus Damm	def_bool n
942967dab1SMagnus Damm
95ea0e1a9aSPaul Mundtconfig GENERIC_CALIBRATE_DELAY
96cf204fa7SPaul Mundt	bool
97ea0e1a9aSPaul Mundt
98ea0e1a9aSPaul Mundtconfig GENERIC_IOMAP
99ea0e1a9aSPaul Mundt	bool
100ea0e1a9aSPaul Mundt
101ea0e1a9aSPaul Mundtconfig GENERIC_TIME
10275634311Sjohn stultz	def_bool y
103ea0e1a9aSPaul Mundt
104ea0e1a9aSPaul Mundtconfig GENERIC_CLOCKEVENTS
105938edae1SPaul Mundt	def_bool y
106ea0e1a9aSPaul Mundt
1078c24594dSPaul Mundtconfig GENERIC_CLOCKEVENTS_BROADCAST
1088c24594dSPaul Mundt	bool
1098c24594dSPaul Mundt
1106d134b9eSPaul Mundtconfig GENERIC_CMOS_UPDATE
1116d134b9eSPaul Mundt	def_bool y
1126d134b9eSPaul Mundt	depends on SH_SH03 || SH_DREAMCAST
1136d134b9eSPaul Mundt
114bdcab87bSPaul Mundtconfig GENERIC_LOCKBREAK
115bdcab87bSPaul Mundt	def_bool y
116bdcab87bSPaul Mundt	depends on SMP && PREEMPT
117bdcab87bSPaul Mundt
118ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_PM
119ea0e1a9aSPaul Mundt	bool
120af998a9aSMagnus Damm	depends on !SMP
121af998a9aSMagnus Damm
122af998a9aSMagnus Dammconfig ARCH_SUSPEND_POSSIBLE
123af998a9aSMagnus Damm	def_bool n
124af998a9aSMagnus Damm
125af998a9aSMagnus Dammconfig ARCH_HIBERNATION_POSSIBLE
126af998a9aSMagnus Damm	def_bool n
127ea0e1a9aSPaul Mundt
128ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_APM_EMULATION
129ea0e1a9aSPaul Mundt	bool
130af998a9aSMagnus Damm	select ARCH_SUSPEND_POSSIBLE
131ea0e1a9aSPaul Mundt
132ffb4a73dSPaul Mundtconfig SYS_SUPPORTS_HUGETLBFS
133ffb4a73dSPaul Mundt	bool
134ffb4a73dSPaul Mundt
135ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_SMP
136ea0e1a9aSPaul Mundt	bool
137ea0e1a9aSPaul Mundt
138ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_NUMA
139ea0e1a9aSPaul Mundt	bool
140ea0e1a9aSPaul Mundt
141ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_PCI
142ea0e1a9aSPaul Mundt	bool
143ea0e1a9aSPaul Mundt
144f5ad881bSPaul Mundtconfig SYS_SUPPORTS_CMT
145f5ad881bSPaul Mundt	bool
146f5ad881bSPaul Mundt
147d5ed4c2eSMagnus Dammconfig SYS_SUPPORTS_MTU2
148d5ed4c2eSMagnus Damm	bool
149d5ed4c2eSMagnus Damm
1509570ef20SMagnus Dammconfig SYS_SUPPORTS_TMU
1519570ef20SMagnus Damm	bool
1529570ef20SMagnus Damm
153ea0e1a9aSPaul Mundtconfig STACKTRACE_SUPPORT
154d7ef4fb3SHarvey Harrison	def_bool y
155ea0e1a9aSPaul Mundt
156ea0e1a9aSPaul Mundtconfig LOCKDEP_SUPPORT
157d7ef4fb3SHarvey Harrison	def_bool y
158ea0e1a9aSPaul Mundt
1595a89f1adSPaul Mundtconfig HAVE_LATENCYTOP_SUPPORT
1605a89f1adSPaul Mundt	def_bool y
1615a89f1adSPaul Mundt	depends on !SMP
1625a89f1adSPaul Mundt
163ea0e1a9aSPaul Mundtconfig ARCH_HAS_ILOG2_U32
164d7ef4fb3SHarvey Harrison	def_bool n
165ea0e1a9aSPaul Mundt
166ea0e1a9aSPaul Mundtconfig ARCH_HAS_ILOG2_U64
167d7ef4fb3SHarvey Harrison	def_bool n
168ea0e1a9aSPaul Mundt
169ea0e1a9aSPaul Mundtconfig ARCH_NO_VIRT_TO_BUS
170ea0e1a9aSPaul Mundt	def_bool y
171ea0e1a9aSPaul Mundt
172e869a90eSPaul Mundtconfig ARCH_HAS_DEFAULT_IDLE
173e869a90eSPaul Mundt	def_bool y
174e869a90eSPaul Mundt
1752e046b94SPaul Mundtconfig ARCH_HAS_CPU_IDLE_WAIT
1762e046b94SPaul Mundt	def_bool y
1772e046b94SPaul Mundt
178e7cc9a73SMagnus Dammconfig IO_TRAPPED
179e7cc9a73SMagnus Damm	bool
180e7cc9a73SMagnus Damm
18101be5d63SPaul Mundtconfig DMA_COHERENT
18201be5d63SPaul Mundt	bool
18301be5d63SPaul Mundt
18401be5d63SPaul Mundtconfig DMA_NONCOHERENT
18501be5d63SPaul Mundt	def_bool !DMA_COHERENT
18601be5d63SPaul Mundt
1875cabbb62SFUJITA Tomonoriconfig NEED_DMA_MAP_STATE
1885cabbb62SFUJITA Tomonori	def_bool DMA_NONCOHERENT
1895cabbb62SFUJITA Tomonori
190ea0e1a9aSPaul Mundtsource "init/Kconfig"
191ea0e1a9aSPaul Mundt
192dc52ddc0SMatt Helsleysource "kernel/Kconfig.freezer"
193dc52ddc0SMatt Helsley
194ea0e1a9aSPaul Mundtmenu "System type"
195ea0e1a9aSPaul Mundt
196ea0e1a9aSPaul Mundt#
197ea0e1a9aSPaul Mundt# Processor families
198ea0e1a9aSPaul Mundt#
199ea0e1a9aSPaul Mundtconfig CPU_SH2
200ea0e1a9aSPaul Mundt	bool
201ea0e1a9aSPaul Mundt
202ea0e1a9aSPaul Mundtconfig CPU_SH2A
203ea0e1a9aSPaul Mundt	bool
204ea0e1a9aSPaul Mundt	select CPU_SH2
205ea0e1a9aSPaul Mundt
206ea0e1a9aSPaul Mundtconfig CPU_SH3
207ea0e1a9aSPaul Mundt	bool
208ea0e1a9aSPaul Mundt	select CPU_HAS_INTEVT
209ea0e1a9aSPaul Mundt	select CPU_HAS_SR_RB
2104fa48e17SPaul Mundt	select SYS_SUPPORTS_TMU
211ea0e1a9aSPaul Mundt
212ea0e1a9aSPaul Mundtconfig CPU_SH4
213ea0e1a9aSPaul Mundt	bool
214ea0e1a9aSPaul Mundt	select CPU_HAS_INTEVT
215ea0e1a9aSPaul Mundt	select CPU_HAS_SR_RB
216ea0e1a9aSPaul Mundt	select CPU_HAS_FPU if !CPU_SH4AL_DSP
2174fa48e17SPaul Mundt	select SYS_SUPPORTS_TMU
218ffb4a73dSPaul Mundt	select SYS_SUPPORTS_HUGETLBFS if MMU
219ea0e1a9aSPaul Mundt
220ea0e1a9aSPaul Mundtconfig CPU_SH4A
221ea0e1a9aSPaul Mundt	bool
222ea0e1a9aSPaul Mundt	select CPU_SH4
223ea0e1a9aSPaul Mundt
224ea0e1a9aSPaul Mundtconfig CPU_SH4AL_DSP
225ea0e1a9aSPaul Mundt	bool
226ea0e1a9aSPaul Mundt	select CPU_SH4A
227ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
228ea0e1a9aSPaul Mundt
229ea0e1a9aSPaul Mundtconfig CPU_SH5
230ea0e1a9aSPaul Mundt	bool
231ea0e1a9aSPaul Mundt	select CPU_HAS_FPU
232add47067SPaul Mundt	select SYS_SUPPORTS_TMU
233ffb4a73dSPaul Mundt	select SYS_SUPPORTS_HUGETLBFS if MMU
234ea0e1a9aSPaul Mundt
235ea0e1a9aSPaul Mundtconfig CPU_SHX2
236ea0e1a9aSPaul Mundt	bool
237ea0e1a9aSPaul Mundt
238ea0e1a9aSPaul Mundtconfig CPU_SHX3
239ea0e1a9aSPaul Mundt	bool
24001be5d63SPaul Mundt	select DMA_COHERENT
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
2483cc000b5SPaul Mundtif SUPERH32
2493cc000b5SPaul Mundt
250ea0e1a9aSPaul Mundtchoice
251ea0e1a9aSPaul Mundt	prompt "Processor sub-type selection"
252ea0e1a9aSPaul Mundt
253ea0e1a9aSPaul Mundt#
254ea0e1a9aSPaul Mundt# Processor subtypes
255ea0e1a9aSPaul Mundt#
256ea0e1a9aSPaul Mundt
257ea0e1a9aSPaul Mundt# SH-2 Processor Support
258ea0e1a9aSPaul Mundt
259ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7619
260ea0e1a9aSPaul Mundt	bool "Support SH7619 processor"
261ea0e1a9aSPaul Mundt	select CPU_SH2
262f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
263ea0e1a9aSPaul Mundt
264ea0e1a9aSPaul Mundt# SH-2A Processor Support
265ea0e1a9aSPaul Mundt
2662825999eSPeter Griffinconfig CPU_SUBTYPE_SH7201
2672825999eSPeter Griffin	bool "Support SH7201 processor"
2682825999eSPeter Griffin	select CPU_SH2A
2692825999eSPeter Griffin	select CPU_HAS_FPU
270da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
2712825999eSPeter Griffin
2726d01f510SPaul Mundtconfig CPU_SUBTYPE_SH7203
2736d01f510SPaul Mundt	bool "Support SH7203 processor"
2746d01f510SPaul Mundt	select CPU_SH2A
27574d99a5eSPaul Mundt	select CPU_HAS_FPU
276f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
277da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
2786d01f510SPaul Mundt
279ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7206
280ea0e1a9aSPaul Mundt	bool "Support SH7206 processor"
281ea0e1a9aSPaul Mundt	select CPU_SH2A
282f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
283da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
284ea0e1a9aSPaul Mundt
285a8f67f4bSPaul Mundtconfig CPU_SUBTYPE_SH7263
286a8f67f4bSPaul Mundt	bool "Support SH7263 processor"
287a8f67f4bSPaul Mundt	select CPU_SH2A
28874d99a5eSPaul Mundt	select CPU_HAS_FPU
289f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
290da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
291a8f67f4bSPaul Mundt
2922ad69908SPaul Mundtconfig CPU_SUBTYPE_MXG
2932ad69908SPaul Mundt	bool "Support MX-G processor"
2942ad69908SPaul Mundt	select CPU_SH2A
295da107c6eSMagnus Damm	select SYS_SUPPORTS_MTU2
2962ad69908SPaul Mundt	help
2972ad69908SPaul Mundt	  Select MX-G if running on an R8A03022BG part.
2982ad69908SPaul Mundt
299ea0e1a9aSPaul Mundt# SH-3 Processor Support
300ea0e1a9aSPaul Mundt
301ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7705
302ea0e1a9aSPaul Mundt	bool "Support SH7705 processor"
303ea0e1a9aSPaul Mundt	select CPU_SH3
304ea0e1a9aSPaul Mundt
305ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7706
306ea0e1a9aSPaul Mundt	bool "Support SH7706 processor"
307ea0e1a9aSPaul Mundt	select CPU_SH3
308ea0e1a9aSPaul Mundt	help
309ea0e1a9aSPaul Mundt	  Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
310ea0e1a9aSPaul Mundt
311ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7707
312ea0e1a9aSPaul Mundt	bool "Support SH7707 processor"
313ea0e1a9aSPaul Mundt	select CPU_SH3
314ea0e1a9aSPaul Mundt	help
315ea0e1a9aSPaul Mundt	  Select SH7707 if you have a  60 Mhz SH-3 HD6417707 CPU.
316ea0e1a9aSPaul Mundt
317ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7708
318ea0e1a9aSPaul Mundt	bool "Support SH7708 processor"
319ea0e1a9aSPaul Mundt	select CPU_SH3
320ea0e1a9aSPaul Mundt	help
321ea0e1a9aSPaul Mundt	  Select SH7708 if you have a  60 Mhz SH-3 HD6417708S or
322ea0e1a9aSPaul Mundt	  if you have a 100 Mhz SH-3 HD6417708R CPU.
323ea0e1a9aSPaul Mundt
324ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7709
325ea0e1a9aSPaul Mundt	bool "Support SH7709 processor"
326ea0e1a9aSPaul Mundt	select CPU_SH3
327ea0e1a9aSPaul Mundt	help
328ea0e1a9aSPaul Mundt	  Select SH7709 if you have a  80 Mhz SH-3 HD6417709 CPU.
329ea0e1a9aSPaul Mundt
330ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7710
331ea0e1a9aSPaul Mundt	bool "Support SH7710 processor"
332ea0e1a9aSPaul Mundt	select CPU_SH3
333ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
334ea0e1a9aSPaul Mundt	help
335ea0e1a9aSPaul Mundt	  Select SH7710 if you have a SH3-DSP SH7710 CPU.
336ea0e1a9aSPaul Mundt
337ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7712
338ea0e1a9aSPaul Mundt	bool "Support SH7712 processor"
339ea0e1a9aSPaul Mundt	select CPU_SH3
340ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
341ea0e1a9aSPaul Mundt	help
342ea0e1a9aSPaul Mundt	  Select SH7712 if you have a SH3-DSP SH7712 CPU.
343ea0e1a9aSPaul Mundt
344ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7720
345ea0e1a9aSPaul Mundt	bool "Support SH7720 processor"
346ea0e1a9aSPaul Mundt	select CPU_SH3
347ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
3482b23a882SMagnus Damm	select SYS_SUPPORTS_CMT
349ea0e1a9aSPaul Mundt	help
350ea0e1a9aSPaul Mundt	  Select SH7720 if you have a SH3-DSP SH7720 CPU.
351ea0e1a9aSPaul Mundt
35231a49c4bSYoshihiro Shimodaconfig CPU_SUBTYPE_SH7721
35331a49c4bSYoshihiro Shimoda	bool "Support SH7721 processor"
35431a49c4bSYoshihiro Shimoda	select CPU_SH3
35531a49c4bSYoshihiro Shimoda	select CPU_HAS_DSP
3562b23a882SMagnus Damm	select SYS_SUPPORTS_CMT
35731a49c4bSYoshihiro Shimoda	help
35831a49c4bSYoshihiro Shimoda	  Select SH7721 if you have a SH3-DSP SH7721 CPU.
35931a49c4bSYoshihiro Shimoda
360ea0e1a9aSPaul Mundt# SH-4 Processor Support
361ea0e1a9aSPaul Mundt
362ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750
363ea0e1a9aSPaul Mundt	bool "Support SH7750 processor"
364ea0e1a9aSPaul Mundt	select CPU_SH4
365ea0e1a9aSPaul Mundt	help
366ea0e1a9aSPaul Mundt	  Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
367ea0e1a9aSPaul Mundt
368ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7091
369ea0e1a9aSPaul Mundt	bool "Support SH7091 processor"
370ea0e1a9aSPaul Mundt	select CPU_SH4
371ea0e1a9aSPaul Mundt	help
372ea0e1a9aSPaul Mundt	  Select SH7091 if you have an SH-4 based Sega device (such as
373ea0e1a9aSPaul Mundt	  the Dreamcast, Naomi, and Naomi 2).
374ea0e1a9aSPaul Mundt
375ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750R
376ea0e1a9aSPaul Mundt	bool "Support SH7750R processor"
377ea0e1a9aSPaul Mundt	select CPU_SH4
378ea0e1a9aSPaul Mundt
379ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750S
380ea0e1a9aSPaul Mundt	bool "Support SH7750S processor"
381ea0e1a9aSPaul Mundt	select CPU_SH4
382ea0e1a9aSPaul Mundt
383ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7751
384ea0e1a9aSPaul Mundt	bool "Support SH7751 processor"
385ea0e1a9aSPaul Mundt	select CPU_SH4
386ea0e1a9aSPaul Mundt	help
387ea0e1a9aSPaul Mundt	  Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
388ea0e1a9aSPaul Mundt	  or if you have a HD6417751R CPU.
389ea0e1a9aSPaul Mundt
390ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7751R
391ea0e1a9aSPaul Mundt	bool "Support SH7751R processor"
392ea0e1a9aSPaul Mundt	select CPU_SH4
393ea0e1a9aSPaul Mundt
394ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7760
395ea0e1a9aSPaul Mundt	bool "Support SH7760 processor"
396ea0e1a9aSPaul Mundt	select CPU_SH4
397ea0e1a9aSPaul Mundt
398ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH4_202
399ea0e1a9aSPaul Mundt	bool "Support SH4-202 processor"
400ea0e1a9aSPaul Mundt	select CPU_SH4
401ea0e1a9aSPaul Mundt
402ea0e1a9aSPaul Mundt# SH-4A Processor Support
403ea0e1a9aSPaul Mundt
404178dd0cdSPaul Mundtconfig CPU_SUBTYPE_SH7723
405178dd0cdSPaul Mundt	bool "Support SH7723 processor"
406178dd0cdSPaul Mundt	select CPU_SH4A
407178dd0cdSPaul Mundt	select CPU_SHX2
408dc65a977SPaul Mundt	select ARCH_SHMOBILE
409178dd0cdSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
410f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
411178dd0cdSPaul Mundt	help
412178dd0cdSPaul Mundt	  Select SH7723 if you have an SH-MobileR2 CPU.
413178dd0cdSPaul Mundt
4140207a2efSKuninori Morimotoconfig CPU_SUBTYPE_SH7724
4150207a2efSKuninori Morimoto	bool "Support SH7724 processor"
4160207a2efSKuninori Morimoto	select CPU_SH4A
4170207a2efSKuninori Morimoto	select CPU_SHX2
41859fe700dSPaul Mundt	select ARCH_SHMOBILE
4190207a2efSKuninori Morimoto	select ARCH_SPARSEMEM_ENABLE
4200207a2efSKuninori Morimoto	select SYS_SUPPORTS_CMT
4210207a2efSKuninori Morimoto	help
4220207a2efSKuninori Morimoto	  Select SH7724 if you have an SH-MobileR2R CPU.
4230207a2efSKuninori Morimoto
424c01f0f1aSYoshihiro Shimodaconfig CPU_SUBTYPE_SH7757
425c01f0f1aSYoshihiro Shimoda	bool "Support SH7757 processor"
426c01f0f1aSYoshihiro Shimoda	select CPU_SH4A
427c01f0f1aSYoshihiro Shimoda	select CPU_SHX2
428c01f0f1aSYoshihiro Shimoda	help
429c01f0f1aSYoshihiro Shimoda	  Select SH7757 if you have a SH4A SH7757 CPU.
430c01f0f1aSYoshihiro Shimoda
4317d740a06SYoshihiro Shimodaconfig CPU_SUBTYPE_SH7763
4327d740a06SYoshihiro Shimoda	bool "Support SH7763 processor"
4337d740a06SYoshihiro Shimoda	select CPU_SH4A
4347d740a06SYoshihiro Shimoda	help
4357d740a06SYoshihiro Shimoda	  Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
4367d740a06SYoshihiro Shimoda
437ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7770
438ea0e1a9aSPaul Mundt	bool "Support SH7770 processor"
439ea0e1a9aSPaul Mundt	select CPU_SH4A
440ea0e1a9aSPaul Mundt
441ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7780
442ea0e1a9aSPaul Mundt	bool "Support SH7780 processor"
443ea0e1a9aSPaul Mundt	select CPU_SH4A
444ea0e1a9aSPaul Mundt
445ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7785
446ea0e1a9aSPaul Mundt	bool "Support SH7785 processor"
447ea0e1a9aSPaul Mundt	select CPU_SH4A
448ea0e1a9aSPaul Mundt	select CPU_SHX2
449ea0e1a9aSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
450ea0e1a9aSPaul Mundt	select SYS_SUPPORTS_NUMA
451ea0e1a9aSPaul Mundt
45255ba99ebSKuninori Morimotoconfig CPU_SUBTYPE_SH7786
45355ba99ebSKuninori Morimoto	bool "Support SH7786 processor"
45455ba99ebSKuninori Morimoto	select CPU_SH4A
45537042fbdSPaul Mundt	select CPU_SHX3
4568263a67eSPaul Mundt	select CPU_HAS_PTEAEX
45755ba99ebSKuninori Morimoto	select ARCH_SPARSEMEM_ENABLE
45855ba99ebSKuninori Morimoto	select SYS_SUPPORTS_NUMA
4592eb2a436SPaul Mundt	select SYS_SUPPORTS_SMP
4602eb2a436SPaul Mundt	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
46155ba99ebSKuninori Morimoto
462ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SHX3
463ea0e1a9aSPaul Mundt	bool "Support SH-X3 processor"
464ea0e1a9aSPaul Mundt	select CPU_SH4A
465ea0e1a9aSPaul Mundt	select CPU_SHX3
466ea0e1a9aSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
467ea0e1a9aSPaul Mundt	select SYS_SUPPORTS_NUMA
468ea0e1a9aSPaul Mundt	select SYS_SUPPORTS_SMP
4695840263eSPaul Mundt	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
470ea0e1a9aSPaul Mundt
471ea0e1a9aSPaul Mundt# SH4AL-DSP Processor Support
472ea0e1a9aSPaul Mundt
473ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7343
474ea0e1a9aSPaul Mundt	bool "Support SH7343 processor"
475ea0e1a9aSPaul Mundt	select CPU_SH4AL_DSP
476dc65a977SPaul Mundt	select ARCH_SHMOBILE
477f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
478ea0e1a9aSPaul Mundt
479ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7722
480ea0e1a9aSPaul Mundt	bool "Support SH7722 processor"
481ea0e1a9aSPaul Mundt	select CPU_SH4AL_DSP
482ea0e1a9aSPaul Mundt	select CPU_SHX2
483dc65a977SPaul Mundt	select ARCH_SHMOBILE
484ea0e1a9aSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
485ea0e1a9aSPaul Mundt	select SYS_SUPPORTS_NUMA
486f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
487ea0e1a9aSPaul Mundt
4889109a30eSMagnus Dammconfig CPU_SUBTYPE_SH7366
4899109a30eSMagnus Damm	bool "Support SH7366 processor"
4909109a30eSMagnus Damm	select CPU_SH4AL_DSP
4919109a30eSMagnus Damm	select CPU_SHX2
492dc65a977SPaul Mundt	select ARCH_SHMOBILE
4939109a30eSMagnus Damm	select ARCH_SPARSEMEM_ENABLE
4949109a30eSMagnus Damm	select SYS_SUPPORTS_NUMA
495f5ad881bSPaul Mundt	select SYS_SUPPORTS_CMT
4969109a30eSMagnus Damm
4973cc000b5SPaul Mundtendchoice
4983cc000b5SPaul Mundt
4993cc000b5SPaul Mundtendif
5003cc000b5SPaul Mundt
5013cc000b5SPaul Mundtif SUPERH64
5023cc000b5SPaul Mundt
5033cc000b5SPaul Mundtchoice
5043cc000b5SPaul Mundt	prompt "Processor sub-type selection"
5053cc000b5SPaul Mundt
506ea0e1a9aSPaul Mundt# SH-5 Processor Support
507ea0e1a9aSPaul Mundt
508ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH5_101
509ea0e1a9aSPaul Mundt	bool "Support SH5-101 processor"
510ea0e1a9aSPaul Mundt	select CPU_SH5
511ea0e1a9aSPaul Mundt
512ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH5_103
513ea0e1a9aSPaul Mundt	bool "Support SH5-103 processor"
5148ef97dd7SPaul Mundt	select CPU_SH5
515ea0e1a9aSPaul Mundt
516ea0e1a9aSPaul Mundtendchoice
517ea0e1a9aSPaul Mundt
5183cc000b5SPaul Mundtendif
5193cc000b5SPaul Mundt
520ea0e1a9aSPaul Mundtsource "arch/sh/mm/Kconfig"
521939a24a6SPaul Mundt
522ea0e1a9aSPaul Mundtsource "arch/sh/Kconfig.cpu"
523ea0e1a9aSPaul Mundt
524939a24a6SPaul Mundtsource "arch/sh/boards/Kconfig"
525ea0e1a9aSPaul Mundt
526ea0e1a9aSPaul Mundtmenu "Timer and clock configuration"
527ea0e1a9aSPaul Mundt
5289570ef20SMagnus Dammconfig SH_TIMER_TMU
5299570ef20SMagnus Damm	bool "TMU timer driver"
530f19900b2SMagnus Damm	depends on SYS_SUPPORTS_TMU
5319570ef20SMagnus Damm	default y
5329570ef20SMagnus Damm	help
5339570ef20SMagnus Damm	  This enables the build of the TMU timer driver.
5349570ef20SMagnus Damm
535f5ad881bSPaul Mundtconfig SH_TIMER_CMT
536f425752fSMagnus Damm	bool "CMT timer driver"
537f425752fSMagnus Damm	depends on SYS_SUPPORTS_CMT
538f425752fSMagnus Damm	default y
539f425752fSMagnus Damm	help
540f425752fSMagnus Damm	  This enables build of the CMT timer driver.
541f5ad881bSPaul Mundt
542d5ed4c2eSMagnus Dammconfig SH_TIMER_MTU2
543d5ed4c2eSMagnus Damm	bool "MTU2 timer driver"
5443280c886SMagnus Damm	depends on SYS_SUPPORTS_MTU2
545d5ed4c2eSMagnus Damm	default y
546d5ed4c2eSMagnus Damm	help
547d5ed4c2eSMagnus Damm	  This enables build of the MTU2 timer driver.
548d5ed4c2eSMagnus Damm
549ea0e1a9aSPaul Mundtconfig SH_PCLK_FREQ
550ea0e1a9aSPaul Mundt	int "Peripheral clock frequency (in Hz)"
5518152a74bSPaul Mundt	depends on SH_CLK_CPG_LEGACY
552ea0e1a9aSPaul Mundt	default "31250000" if CPU_SUBTYPE_SH7619
5538152a74bSPaul Mundt	default "33333333" if CPU_SUBTYPE_SH7770 || \
5548152a74bSPaul Mundt			      CPU_SUBTYPE_SH7760 || \
5558152a74bSPaul Mundt			      CPU_SUBTYPE_SH7705 || \
5568152a74bSPaul Mundt			      CPU_SUBTYPE_SH7203 || \
5578152a74bSPaul Mundt			      CPU_SUBTYPE_SH7206 || \
5588152a74bSPaul Mundt			      CPU_SUBTYPE_SH7263 || \
55943a1839cSPaul Mundt			      CPU_SUBTYPE_MXG
560ea0e1a9aSPaul Mundt	default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
561ea0e1a9aSPaul Mundt	default "66000000" if CPU_SUBTYPE_SH4_202
562ea0e1a9aSPaul Mundt	default "50000000"
563ea0e1a9aSPaul Mundt	help
564ea0e1a9aSPaul Mundt	  This option is used to specify the peripheral clock frequency.
565ea0e1a9aSPaul Mundt	  This is necessary for determining the reference clock value on
566ea0e1a9aSPaul Mundt	  platforms lacking an RTC.
567ea0e1a9aSPaul Mundt
56836aa1e32SPaul Mundtconfig SH_CLK_CPG
56936aa1e32SPaul Mundt	def_bool y
57036aa1e32SPaul Mundt
571253b0887SPaul Mundtconfig SH_CLK_CPG_LEGACY
57236aa1e32SPaul Mundt	depends on SH_CLK_CPG
57343a1839cSPaul Mundt	def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
57443a1839cSPaul Mundt		      !CPU_SUBTYPE_SH7786
575253b0887SPaul Mundt
576ea0e1a9aSPaul Mundtconfig SH_CLK_MD
577ea0e1a9aSPaul Mundt	int "CPU Mode Pin Setting"
5786d01f510SPaul Mundt	depends on CPU_SH2
579ea0e1a9aSPaul Mundt	default 6 if CPU_SUBTYPE_SH7206
580ea0e1a9aSPaul Mundt	default 5 if CPU_SUBTYPE_SH7619
581ea0e1a9aSPaul Mundt	default 0
582ea0e1a9aSPaul Mundt	help
583ea0e1a9aSPaul Mundt	  MD2 - MD0 pin setting.
584ea0e1a9aSPaul Mundt
585ea0e1a9aSPaul Mundtsource "kernel/time/Kconfig"
586ea0e1a9aSPaul Mundt
587ea0e1a9aSPaul Mundtendmenu
588ea0e1a9aSPaul Mundt
589ea0e1a9aSPaul Mundtmenu "CPU Frequency scaling"
590ea0e1a9aSPaul Mundt
591ea0e1a9aSPaul Mundtsource "drivers/cpufreq/Kconfig"
592ea0e1a9aSPaul Mundt
593ea0e1a9aSPaul Mundtconfig SH_CPU_FREQ
594ea0e1a9aSPaul Mundt	tristate "SuperH CPU Frequency driver"
595ea0e1a9aSPaul Mundt	depends on CPU_FREQ
596ea0e1a9aSPaul Mundt	select CPU_FREQ_TABLE
597ea0e1a9aSPaul Mundt	help
5988a655053SPaul Mundt	  This adds the cpufreq driver for SuperH. Any CPU that supports
5998a655053SPaul Mundt	  clock rate rounding through the clock framework can use this
6008a655053SPaul Mundt	  driver. While it will make the kernel slightly larger, this is
6018a655053SPaul Mundt	  harmless for CPUs that don't support rate rounding. The driver
6028a655053SPaul Mundt	  will also generate a notice in the boot log before disabling
6038a655053SPaul Mundt	  itself if the CPU in question is not capable of rate rounding.
604ea0e1a9aSPaul Mundt
605ea0e1a9aSPaul Mundt	  For details, take a look at <file:Documentation/cpu-freq>.
606ea0e1a9aSPaul Mundt
607ea0e1a9aSPaul Mundt	  If unsure, say N.
608ea0e1a9aSPaul Mundt
609ea0e1a9aSPaul Mundtendmenu
610ea0e1a9aSPaul Mundt
611ea0e1a9aSPaul Mundtsource "arch/sh/drivers/Kconfig"
612ea0e1a9aSPaul Mundt
613ea0e1a9aSPaul Mundtendmenu
614ea0e1a9aSPaul Mundt
615ea0e1a9aSPaul Mundtmenu "Kernel features"
616ea0e1a9aSPaul Mundt
617ea0e1a9aSPaul Mundtsource kernel/Kconfig.hz
618ea0e1a9aSPaul Mundt
619ea0e1a9aSPaul Mundtconfig KEXEC
620ea0e1a9aSPaul Mundt	bool "kexec system call (EXPERIMENTAL)"
621f36b59d1SNobuhiro Iwamatsu	depends on SUPERH32 && EXPERIMENTAL && MMU
622ea0e1a9aSPaul Mundt	help
623ea0e1a9aSPaul Mundt	  kexec is a system call that implements the ability to shutdown your
624ea0e1a9aSPaul Mundt	  current kernel, and to start another kernel.  It is like a reboot
625ea0e1a9aSPaul Mundt	  but it is independent of the system firmware.  And like a reboot
626ea0e1a9aSPaul Mundt	  you can start any kernel with it, not just Linux.
627ea0e1a9aSPaul Mundt
628ea0e1a9aSPaul Mundt	  The name comes from the similarity to the exec system call.
629ea0e1a9aSPaul Mundt
630ea0e1a9aSPaul Mundt	  It is an ongoing process to be certain the hardware in a machine
631ea0e1a9aSPaul Mundt	  is properly shutdown, so do not be surprised if this code does not
632ea0e1a9aSPaul Mundt	  initially work for you.  It may help to enable device hotplugging
633ea0e1a9aSPaul Mundt	  support.  As of this writing the exact hardware interface is
634ea0e1a9aSPaul Mundt	  strongly in flux, so no good recommendation can be made.
635ea0e1a9aSPaul Mundt
636ea0e1a9aSPaul Mundtconfig CRASH_DUMP
637ea0e1a9aSPaul Mundt	bool "kernel crash dumps (EXPERIMENTAL)"
638640f7487SPaul Mundt	depends on SUPERH32 && EXPERIMENTAL
639ea0e1a9aSPaul Mundt	help
640ea0e1a9aSPaul Mundt	  Generate crash dump after being started by kexec.
641ea0e1a9aSPaul Mundt	  This should be normally only set in special crash dump kernels
642ea0e1a9aSPaul Mundt	  which are loaded in the main kernel with kexec-tools into
643ea0e1a9aSPaul Mundt	  a specially reserved region and then later executed after
644ea0e1a9aSPaul Mundt	  a crash by kdump/kexec. The crash dump kernel must be compiled
645ea0e1a9aSPaul Mundt	  to a memory address not used by the main kernel using
646ea0e1a9aSPaul Mundt	  MEMORY_START.
647ea0e1a9aSPaul Mundt
648ea0e1a9aSPaul Mundt	  For more details see Documentation/kdump/kdump.txt
649ea0e1a9aSPaul Mundt
650b7cf6ddcSMagnus Dammconfig KEXEC_JUMP
651b7cf6ddcSMagnus Damm	bool "kexec jump (EXPERIMENTAL)"
652b7cf6ddcSMagnus Damm	depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
653b7cf6ddcSMagnus Damm	help
654b7cf6ddcSMagnus Damm	  Jump between original kernel and kexeced kernel and invoke
655b7cf6ddcSMagnus Damm	  code via KEXEC
656b7cf6ddcSMagnus Damm
657c4637d47SPaul Mundtconfig SECCOMP
658c4637d47SPaul Mundt	bool "Enable seccomp to safely compute untrusted bytecode"
659c4637d47SPaul Mundt	depends on PROC_FS
660c4637d47SPaul Mundt	help
661c4637d47SPaul Mundt	  This kernel feature is useful for number crunching applications
662c4637d47SPaul Mundt	  that may need to compute untrusted bytecode during their
663c4637d47SPaul Mundt	  execution. By using pipes or other transports made available to
664c4637d47SPaul Mundt	  the process as file descriptors supporting the read/write
665c4637d47SPaul Mundt	  syscalls, it's possible to isolate those applications in
666c4637d47SPaul Mundt	  their own address space using seccomp. Once seccomp is
667c4637d47SPaul Mundt	  enabled via prctl, it cannot be disabled and the task is only
668c4637d47SPaul Mundt	  allowed to execute a few safe syscalls defined by each seccomp
669c4637d47SPaul Mundt	  mode.
670c4637d47SPaul Mundt
671c4637d47SPaul Mundt	  If unsure, say N.
672c4637d47SPaul Mundt
673ea0e1a9aSPaul Mundtconfig SMP
674ea0e1a9aSPaul Mundt	bool "Symmetric multi-processing support"
675ea0e1a9aSPaul Mundt	depends on SYS_SUPPORTS_SMP
676490f5de5SJens Axboe	select USE_GENERIC_SMP_HELPERS
677ea0e1a9aSPaul Mundt	---help---
678ea0e1a9aSPaul Mundt	  This enables support for systems with more than one CPU. If you have
679ea0e1a9aSPaul Mundt	  a system with only one CPU, like most personal computers, say N. If
680ea0e1a9aSPaul Mundt	  you have a system with more than one CPU, say Y.
681ea0e1a9aSPaul Mundt
682ea0e1a9aSPaul Mundt	  If you say N here, the kernel will run on single and multiprocessor
683ea0e1a9aSPaul Mundt	  machines, but will use only one CPU of a multiprocessor machine. If
684ea0e1a9aSPaul Mundt	  you say Y here, the kernel will run on many, but not all,
685ea0e1a9aSPaul Mundt	  singleprocessor machines. On a singleprocessor machine, the kernel
686ea0e1a9aSPaul Mundt	  will run faster if you say N here.
687ea0e1a9aSPaul Mundt
688ea0e1a9aSPaul Mundt	  People using multiprocessor machines who say Y here should also say
689ea0e1a9aSPaul Mundt	  Y to "Enhanced Real Time Clock Support", below.
690ea0e1a9aSPaul Mundt
69103502faaSAdrian Bunk	  See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
69203502faaSAdrian Bunk	  available at <http://www.tldp.org/docs.html#howto>.
693ea0e1a9aSPaul Mundt
694ea0e1a9aSPaul Mundt	  If you don't know what to do here, say N.
695ea0e1a9aSPaul Mundt
696ea0e1a9aSPaul Mundtconfig NR_CPUS
697ea0e1a9aSPaul Mundt	int "Maximum number of CPUs (2-32)"
698ea0e1a9aSPaul Mundt	range 2 32
699ea0e1a9aSPaul Mundt	depends on SMP
7002eb2a436SPaul Mundt	default "4" if CPU_SUBTYPE_SHX3
701ea0e1a9aSPaul Mundt	default "2"
702ea0e1a9aSPaul Mundt	help
703ea0e1a9aSPaul Mundt	  This allows you to specify the maximum number of CPUs which this
704ea0e1a9aSPaul Mundt	  kernel will support.  The maximum supported value is 32 and the
705ea0e1a9aSPaul Mundt	  minimum value which makes sense is 2.
706ea0e1a9aSPaul Mundt
707ea0e1a9aSPaul Mundt	  This is purely to save memory - each supported CPU adds
708ea0e1a9aSPaul Mundt	  approximately eight kilobytes to the kernel image.
709ea0e1a9aSPaul Mundt
710ea0e1a9aSPaul Mundtsource "kernel/Kconfig.preempt"
711ea0e1a9aSPaul Mundt
712ea0e1a9aSPaul Mundtconfig GUSA
713ea0e1a9aSPaul Mundt	def_bool y
7141efe4ce3SStuart Menefy	depends on !SMP && SUPERH32
715ea0e1a9aSPaul Mundt	help
716ea0e1a9aSPaul Mundt	  This enables support for gUSA (general UserSpace Atomicity).
717ea0e1a9aSPaul Mundt	  This is the default implementation for both UP and non-ll/sc
718ea0e1a9aSPaul Mundt	  CPUs, and is used by the libc, amongst others.
719ea0e1a9aSPaul Mundt
720ea0e1a9aSPaul Mundt	  For additional information, design information can be found
721ea0e1a9aSPaul Mundt	  in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
722ea0e1a9aSPaul Mundt
723ea0e1a9aSPaul Mundt	  This should only be disabled for special cases where alternate
724ea0e1a9aSPaul Mundt	  atomicity implementations exist.
725ea0e1a9aSPaul Mundt
7261efe4ce3SStuart Menefyconfig GUSA_RB
7271efe4ce3SStuart Menefy	bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
7281efe4ce3SStuart Menefy	depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
7291efe4ce3SStuart Menefy	help
7301efe4ce3SStuart Menefy	  Enabling this option will allow the kernel to implement some
731692105b8SMatt LaPlante	  atomic operations using a software implementation of load-locked/
7321efe4ce3SStuart Menefy	  store-conditional (LLSC). On machines which do not have hardware
7331efe4ce3SStuart Menefy	  LLSC, this should be more efficient than the other alternative of
734692105b8SMatt LaPlante	  disabling interrupts around the atomic sequence.
7351efe4ce3SStuart Menefy
736ea0e1a9aSPaul Mundtendmenu
737ea0e1a9aSPaul Mundt
738ea0e1a9aSPaul Mundtmenu "Boot options"
739ea0e1a9aSPaul Mundt
740ea0e1a9aSPaul Mundtconfig ZERO_PAGE_OFFSET
741b412a49aSPaul Mundt	hex
742b412a49aSPaul Mundt	default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
743b412a49aSPaul Mundt				SH_7751_SOLUTION_ENGINE
744b412a49aSPaul Mundt	default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
745ea0e1a9aSPaul Mundt	default "0x00002000" if PAGE_SIZE_8KB
746ea0e1a9aSPaul Mundt	default "0x00001000"
747ea0e1a9aSPaul Mundt	help
748ea0e1a9aSPaul Mundt	  This sets the default offset of zero page.
749ea0e1a9aSPaul Mundt
750ea0e1a9aSPaul Mundtconfig BOOT_LINK_OFFSET
751b412a49aSPaul Mundt	hex
752b412a49aSPaul Mundt	default "0x00210000" if SH_SHMIN
753a2e76c80SPaul Mundt	default "0x00400000" if SH_CAYMAN
754b412a49aSPaul Mundt	default "0x00810000" if SH_7780_SOLUTION_ENGINE
755b412a49aSPaul Mundt	default "0x009e0000" if SH_TITAN
756b412a49aSPaul Mundt	default "0x01800000" if SH_SDK7780
757b412a49aSPaul Mundt	default "0x02000000" if SH_EDOSK7760
758ea0e1a9aSPaul Mundt	default "0x00800000"
759ea0e1a9aSPaul Mundt	help
760ea0e1a9aSPaul Mundt	  This option allows you to set the link address offset of the zImage.
761ea0e1a9aSPaul Mundt	  This can be useful if you are on a board which has a small amount of
762ea0e1a9aSPaul Mundt	  memory.
763ea0e1a9aSPaul Mundt
764b412a49aSPaul Mundtconfig ENTRY_OFFSET
765b412a49aSPaul Mundt	hex
766b412a49aSPaul Mundt	default "0x00001000" if PAGE_SIZE_4KB
767b412a49aSPaul Mundt	default "0x00002000" if PAGE_SIZE_8KB
768b412a49aSPaul Mundt	default "0x00004000" if PAGE_SIZE_16KB
769b412a49aSPaul Mundt	default "0x00010000" if PAGE_SIZE_64KB
770b412a49aSPaul Mundt	default "0x00000000"
771b412a49aSPaul Mundt
772d724a9c9SPawel Mollchoice
773d724a9c9SPawel Moll	prompt "Kernel command line"
774d724a9c9SPawel Moll	optional
775d724a9c9SPawel Moll	default CMDLINE_OVERWRITE
776d724a9c9SPawel Moll	help
777d724a9c9SPawel Moll	  Setting this option allows the kernel command line arguments
778d724a9c9SPawel Moll	  to be set.
779d724a9c9SPawel Moll
780d724a9c9SPawel Mollconfig CMDLINE_OVERWRITE
781d724a9c9SPawel Moll	bool "Overwrite bootloader kernel arguments"
782d724a9c9SPawel Moll	help
783d724a9c9SPawel Moll	  Given string will overwrite any arguments passed in by
784d724a9c9SPawel Moll	  a bootloader.
785d724a9c9SPawel Moll
786d724a9c9SPawel Mollconfig CMDLINE_EXTEND
787d724a9c9SPawel Moll	bool "Extend bootloader kernel arguments"
788d724a9c9SPawel Moll	help
789d724a9c9SPawel Moll	  Given string will be concatenated with arguments passed in
790d724a9c9SPawel Moll	  by a bootloader.
791d724a9c9SPawel Moll
792d724a9c9SPawel Mollendchoice
793ea0e1a9aSPaul Mundt
794ea0e1a9aSPaul Mundtconfig CMDLINE
795d724a9c9SPawel Moll	string "Kernel command line arguments string"
796d724a9c9SPawel Moll	depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
797ea0e1a9aSPaul Mundt	default "console=ttySC1,115200"
798ea0e1a9aSPaul Mundt
799ea0e1a9aSPaul Mundtendmenu
800ea0e1a9aSPaul Mundt
801ea0e1a9aSPaul Mundtmenu "Bus options"
802ea0e1a9aSPaul Mundt
803ea0e1a9aSPaul Mundtconfig SUPERHYWAY
804ea0e1a9aSPaul Mundt	tristate "SuperHyway Bus support"
805ea0e1a9aSPaul Mundt	depends on CPU_SUBTYPE_SH4_202
806ea0e1a9aSPaul Mundt
807ea0e1a9aSPaul Mundtconfig MAPLE
808ea0e1a9aSPaul Mundt	bool "Maple Bus support"
809ea0e1a9aSPaul Mundt	depends on SH_DREAMCAST
810ea0e1a9aSPaul Mundt	help
811ea0e1a9aSPaul Mundt	 The Maple Bus is SEGA's serial communication bus for peripherals
812ea0e1a9aSPaul Mundt	 on the Dreamcast. Without this bus support you won't be able to
813ea0e1a9aSPaul Mundt	 get your Dreamcast keyboard etc to work, so most users
814ea0e1a9aSPaul Mundt	 probably want to say 'Y' here, unless you are only using the
815ea0e1a9aSPaul Mundt	 Dreamcast with a serial line terminal or a remote network
816ea0e1a9aSPaul Mundt	 connection.
817ea0e1a9aSPaul Mundt
8187693465dSPaul Mundtconfig PCI
8197693465dSPaul Mundt	bool "PCI support"
8207693465dSPaul Mundt	depends on SYS_SUPPORTS_PCI
821320e68daSPaul Mundt	select PCI_DOMAINS
8227693465dSPaul Mundt	help
8237693465dSPaul Mundt	  Find out whether you have a PCI motherboard. PCI is the name of a
8247693465dSPaul Mundt	  bus system, i.e. the way the CPU talks to the other stuff inside
8257693465dSPaul Mundt	  your box. If you have PCI, say Y, otherwise N.
826ea0e1a9aSPaul Mundt
827320e68daSPaul Mundtconfig PCI_DOMAINS
828320e68daSPaul Mundt	bool
829320e68daSPaul Mundt
830e16038abSPaul Mundtsource "drivers/pci/pcie/Kconfig"
831e16038abSPaul Mundt
832ea0e1a9aSPaul Mundtsource "drivers/pci/Kconfig"
833ea0e1a9aSPaul Mundt
834ea0e1a9aSPaul Mundtsource "drivers/pcmcia/Kconfig"
835ea0e1a9aSPaul Mundt
836ea0e1a9aSPaul Mundtsource "drivers/pci/hotplug/Kconfig"
837ea0e1a9aSPaul Mundt
838ea0e1a9aSPaul Mundtendmenu
839ea0e1a9aSPaul Mundt
840ea0e1a9aSPaul Mundtmenu "Executable file formats"
841ea0e1a9aSPaul Mundt
842ea0e1a9aSPaul Mundtsource "fs/Kconfig.binfmt"
843ea0e1a9aSPaul Mundt
844ea0e1a9aSPaul Mundtendmenu
845ea0e1a9aSPaul Mundt
846ea0e1a9aSPaul Mundtmenu "Power management options (EXPERIMENTAL)"
847af998a9aSMagnus Dammdepends on EXPERIMENTAL
848f4cb5700SJohannes Berg
849c6f17cb2SMagnus Dammsource "kernel/power/Kconfig"
850c6f17cb2SMagnus Damm
851c6f17cb2SMagnus Dammsource "drivers/cpuidle/Kconfig"
852ea0e1a9aSPaul Mundt
853ea0e1a9aSPaul Mundtendmenu
854ea0e1a9aSPaul Mundt
855ea0e1a9aSPaul Mundtsource "net/Kconfig"
856ea0e1a9aSPaul Mundt
857ea0e1a9aSPaul Mundtsource "drivers/Kconfig"
858ea0e1a9aSPaul Mundt
859ea0e1a9aSPaul Mundtsource "fs/Kconfig"
860ea0e1a9aSPaul Mundt
861ea0e1a9aSPaul Mundtsource "arch/sh/Kconfig.debug"
862ea0e1a9aSPaul Mundt
863ea0e1a9aSPaul Mundtsource "security/Kconfig"
864ea0e1a9aSPaul Mundt
865ea0e1a9aSPaul Mundtsource "crypto/Kconfig"
866ea0e1a9aSPaul Mundt
867ea0e1a9aSPaul Mundtsource "lib/Kconfig"
868