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