xref: /linux/arch/sh/Kconfig (revision 90a871f74b70027779a4f312c0c74b6a89e22412)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2ea0e1a9aSPaul Mundtconfig SUPERH
3ea0e1a9aSPaul Mundt	def_bool y
4582dc536SChristoph Hellwig	select ARCH_32BIT_OFF_T
58690bbcfSMathieu Desnoyers	select ARCH_HAS_CPU_CACHE_ALIASING
6df013ffbSHuang Ying	select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
7582dc536SChristoph Hellwig	select ARCH_HAS_BINFMT_FLAT if !MMU
801eb454eSThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT
92792d84eSKees Cook	select ARCH_HAS_CURRENT_STACK_POINTER
10582dc536SChristoph Hellwig	select ARCH_HAS_GIGANTIC_PAGE
11957e3facSRiku Voipio	select ARCH_HAS_GCOV_PROFILE_ALL
12582dc536SChristoph Hellwig	select ARCH_HAS_PTE_SPECIAL
13582dc536SChristoph Hellwig	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
14582dc536SChristoph Hellwig	select ARCH_HIBERNATION_POSSIBLE if MMU
15582dc536SChristoph Hellwig	select ARCH_MIGHT_HAVE_PC_PARPORT
16c1d7e01dSWill Deacon	select ARCH_WANT_IPC_PARSE_VERSION
17c81a748eSPaul E. McKenney	select ARCH_NEED_CMPXCHG_1_EMU
18582dc536SChristoph Hellwig	select CPU_NO_EFFICIENT_FFS
19582dc536SChristoph Hellwig	select DMA_DECLARE_COHERENT
20f01789c6SPaul Mundt	select GENERIC_ATOMIC64
218cf200d8SAnna-Maria Gleixner	select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
22582dc536SChristoph Hellwig	select GENERIC_IDLE_POLL_SETUP
23582dc536SChristoph Hellwig	select GENERIC_IRQ_SHOW
248bc6666fSGeert Uytterhoeven	select GENERIC_LIB_ASHLDI3
258bc6666fSGeert Uytterhoeven	select GENERIC_LIB_ASHRDI3
268bc6666fSGeert Uytterhoeven	select GENERIC_LIB_LSHRDI3
27eb01d42aSChristoph Hellwig	select GENERIC_PCI_IOMAP if PCI
28b46ed370SRich Felker	select GENERIC_SCHED_CLOCK
29582dc536SChristoph Hellwig	select GENERIC_SMP_IDLE_THREAD
306ca297d4SPeter Zijlstra	select GUP_GET_PXX_LOW_HIGH if X2TLB
31fcbfe812SNiklas Schnelle	select HAS_IOPORT if HAS_IOPORT_MAP
320453c9a7SBaoquan He	select GENERIC_IOREMAP if MMU
33582dc536SChristoph Hellwig	select HAVE_ARCH_AUDITSYSCALL
34582dc536SChristoph Hellwig	select HAVE_ARCH_KGDB
350bb605c2SMichael Karcher	select HAVE_ARCH_SECCOMP_FILTER
36582dc536SChristoph Hellwig	select HAVE_ARCH_TRACEHOOK
37582dc536SChristoph Hellwig	select HAVE_DEBUG_BUGVERBOSE
38582dc536SChristoph Hellwig	select HAVE_DEBUG_KMEMLEAK
39582dc536SChristoph Hellwig	select HAVE_DYNAMIC_FTRACE
4025176ad0SDavid Hildenbrand	select HAVE_GUP_FAST if MMU
41582dc536SChristoph Hellwig	select HAVE_FUNCTION_GRAPH_TRACER
42582dc536SChristoph Hellwig	select HAVE_FUNCTION_TRACER
43582dc536SChristoph Hellwig	select HAVE_HW_BREAKPOINT
44582dc536SChristoph Hellwig	select HAVE_IOREMAP_PROT if MMU && !X2TLB
45582dc536SChristoph Hellwig	select HAVE_KERNEL_BZIP2
46582dc536SChristoph Hellwig	select HAVE_KERNEL_GZIP
47582dc536SChristoph Hellwig	select HAVE_KERNEL_LZMA
48582dc536SChristoph Hellwig	select HAVE_KERNEL_LZO
49582dc536SChristoph Hellwig	select HAVE_KERNEL_XZ
50d39f5450SChris Smith	select HAVE_KPROBES
51d39f5450SChris Smith	select HAVE_KRETPROBES
520102752eSFrederic Weisbecker	select HAVE_MIXED_BREAKPOINTS_REGS
53582dc536SChristoph Hellwig	select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
54582dc536SChristoph Hellwig	select HAVE_NMI
55582dc536SChristoph Hellwig	select HAVE_PATA_PLATFORM
56582dc536SChristoph Hellwig	select HAVE_PERF_EVENTS
57582dc536SChristoph Hellwig	select HAVE_REGS_AND_STACK_ACCESS_API
58582dc536SChristoph Hellwig	select HAVE_UID16
59cd1a41ceSThomas Gleixner	select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS
60d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
61582dc536SChristoph Hellwig	select HAVE_SYSCALL_TRACEPOINTS
62582dc536SChristoph Hellwig	select IRQ_FORCED_THREADING
63a050ba1eSLinus Torvalds	select LOCK_MM_AND_FIND_VMA
64582dc536SChristoph Hellwig	select MODULES_USE_ELF_RELA
65582dc536SChristoph Hellwig	select NEED_SG_DMA_LENGTH
66cd57d07bSChristoph Hellwig	select NO_DMA if !MMU && !DMA_COHERENT
67582dc536SChristoph Hellwig	select NO_GENERIC_PCI_IOPORT_MAP if PCI
68582dc536SChristoph Hellwig	select OLD_SIGACTION
69582dc536SChristoph Hellwig	select OLD_SIGSUSPEND
70582dc536SChristoph Hellwig	select PCI_DOMAINS if PCI
71582dc536SChristoph Hellwig	select PERF_EVENTS
72582dc536SChristoph Hellwig	select PERF_USE_VMALLOC
73582dc536SChristoph Hellwig	select RTC_LIB
74582dc536SChristoph Hellwig	select SPARSE_IRQ
754aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
7637744feeSArnd Bergmann	help
7737744feeSArnd Bergmann	  The SuperH is a RISC processor targeted for use in embedded systems
7837744feeSArnd Bergmann	  and consumer electronics; it was also used in the Sega Dreamcast
7937744feeSArnd Bergmann	  gaming console.  The SuperH port has a home page at
8037744feeSArnd Bergmann	  <http://www.linux-sh.org/>.
81ea0e1a9aSPaul Mundt
82ea0e1a9aSPaul Mundtconfig GENERIC_BUG
83ea0e1a9aSPaul Mundt	def_bool y
8437744feeSArnd Bergmann	depends on BUG
853767f3f1SPaul Mundt
86ea0e1a9aSPaul Mundtconfig GENERIC_HWEIGHT
87d7ef4fb3SHarvey Harrison	def_bool y
88ea0e1a9aSPaul Mundt
89ea0e1a9aSPaul Mundtconfig GENERIC_CALIBRATE_DELAY
90cf204fa7SPaul Mundt	bool
91ea0e1a9aSPaul Mundt
92bdcab87bSPaul Mundtconfig GENERIC_LOCKBREAK
93bdcab87bSPaul Mundt	def_bool y
947be60ccbSThomas Gleixner	depends on SMP && PREEMPTION
95bdcab87bSPaul Mundt
96af998a9aSMagnus Dammconfig ARCH_SUSPEND_POSSIBLE
97af998a9aSMagnus Damm	def_bool n
98af998a9aSMagnus Damm
99af998a9aSMagnus Dammconfig ARCH_HIBERNATION_POSSIBLE
100af998a9aSMagnus Damm	def_bool n
101ea0e1a9aSPaul Mundt
102ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_APM_EMULATION
103ea0e1a9aSPaul Mundt	bool
104af998a9aSMagnus Damm	select ARCH_SUSPEND_POSSIBLE
105ea0e1a9aSPaul Mundt
106ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_SMP
107ea0e1a9aSPaul Mundt	bool
108ea0e1a9aSPaul Mundt
109ea0e1a9aSPaul Mundtconfig SYS_SUPPORTS_NUMA
110ea0e1a9aSPaul Mundt	bool
111ea0e1a9aSPaul Mundt
112ea0e1a9aSPaul Mundtconfig STACKTRACE_SUPPORT
113d7ef4fb3SHarvey Harrison	def_bool y
114ea0e1a9aSPaul Mundt
115ea0e1a9aSPaul Mundtconfig LOCKDEP_SUPPORT
116d7ef4fb3SHarvey Harrison	def_bool y
117ea0e1a9aSPaul Mundt
118ea0e1a9aSPaul Mundtconfig ARCH_HAS_ILOG2_U32
119d7ef4fb3SHarvey Harrison	def_bool n
120ea0e1a9aSPaul Mundt
121ea0e1a9aSPaul Mundtconfig ARCH_HAS_ILOG2_U64
122d7ef4fb3SHarvey Harrison	def_bool n
123ea0e1a9aSPaul Mundt
124ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
12537b7a978SPaul Mundt	def_bool !PCI
12610c88ca5SArtur Rojek	depends on !SH_SHMIN && !SH_HP6XX && !SH_SOLUTION_ENGINE && \
12710c88ca5SArtur Rojek		   !SH_DREAMCAST
12886e4dd5aSPaul Mundt
129e7cc9a73SMagnus Dammconfig IO_TRAPPED
130e7cc9a73SMagnus Damm	bool
131e7cc9a73SMagnus Damm
132b7e68d68SPaul Mundtconfig SWAP_IO_SPACE
133b7e68d68SPaul Mundt	bool
134b7e68d68SPaul Mundt
13501be5d63SPaul Mundtconfig DMA_COHERENT
13601be5d63SPaul Mundt	bool
13701be5d63SPaul Mundt
13801be5d63SPaul Mundtconfig DMA_NONCOHERENT
139cd57d07bSChristoph Hellwig	def_bool !NO_DMA && !DMA_COHERENT
1406dfdf673SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
1416fa1d28eSChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1426dfdf673SChristoph Hellwig	select DMA_DIRECT_REMAP
14301be5d63SPaul Mundt
14469543d63SKirill A. Shutemovconfig PGTABLE_LEVELS
14569543d63SKirill A. Shutemov	default 3 if X2TLB
14669543d63SKirill A. Shutemov	default 2
14769543d63SKirill A. Shutemov
148ea0e1a9aSPaul Mundtmenu "System type"
149ea0e1a9aSPaul Mundt
150ea0e1a9aSPaul Mundt#
151ea0e1a9aSPaul Mundt# Processor families
152ea0e1a9aSPaul Mundt#
153ea0e1a9aSPaul Mundtconfig CPU_SH2
154ea0e1a9aSPaul Mundt	bool
155049d2804SGeert Uytterhoeven	select SH_INTC
156ea0e1a9aSPaul Mundt
157ea0e1a9aSPaul Mundtconfig CPU_SH2A
158ea0e1a9aSPaul Mundt	bool
159ea0e1a9aSPaul Mundt	select CPU_SH2
160e2fcf74fSPaul Mundt	select UNCACHED_MAPPING
161ea0e1a9aSPaul Mundt
1625a846abaSRich Felkerconfig CPU_J2
1635a846abaSRich Felker	bool
1645a846abaSRich Felker	select CPU_SH2
1655a846abaSRich Felker	select OF
1665a846abaSRich Felker	select OF_EARLY_FLATTREE
1675a846abaSRich Felker
168ea0e1a9aSPaul Mundtconfig CPU_SH3
169ea0e1a9aSPaul Mundt	bool
170ea0e1a9aSPaul Mundt	select CPU_HAS_INTEVT
171ea0e1a9aSPaul Mundt	select CPU_HAS_SR_RB
172049d2804SGeert Uytterhoeven	select SH_INTC
173fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_TMU
174ea0e1a9aSPaul Mundt
175ea0e1a9aSPaul Mundtconfig CPU_SH4
176ea0e1a9aSPaul Mundt	bool
177855f9a8eSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS if MMU
178ea0e1a9aSPaul Mundt	select CPU_HAS_INTEVT
179ea0e1a9aSPaul Mundt	select CPU_HAS_SR_RB
180ea0e1a9aSPaul Mundt	select CPU_HAS_FPU if !CPU_SH4AL_DSP
181049d2804SGeert Uytterhoeven	select SH_INTC
182fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_TMU
183ea0e1a9aSPaul Mundt
184ea0e1a9aSPaul Mundtconfig CPU_SH4A
185ea0e1a9aSPaul Mundt	bool
186ea0e1a9aSPaul Mundt	select CPU_SH4
187ea0e1a9aSPaul Mundt
188ea0e1a9aSPaul Mundtconfig CPU_SH4AL_DSP
189ea0e1a9aSPaul Mundt	bool
190ea0e1a9aSPaul Mundt	select CPU_SH4A
191ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
192ea0e1a9aSPaul Mundt
193ea0e1a9aSPaul Mundtconfig CPU_SHX2
194ea0e1a9aSPaul Mundt	bool
195ea0e1a9aSPaul Mundt
196ea0e1a9aSPaul Mundtconfig CPU_SHX3
197ea0e1a9aSPaul Mundt	bool
19801be5d63SPaul Mundt	select DMA_COHERENT
1994b478ee2SPaul Mundt	select SYS_SUPPORTS_SMP
2004b478ee2SPaul Mundt	select SYS_SUPPORTS_NUMA
201ea0e1a9aSPaul Mundt
202dc65a977SPaul Mundtconfig ARCH_SHMOBILE
203dc65a977SPaul Mundt	bool
20477594912SMagnus Damm	select ARCH_SUSPEND_POSSIBLE
205464ed18eSRafael J. Wysocki	select PM
206dc65a977SPaul Mundt
20786c8c047SMatt Flemingconfig CPU_HAS_PMU
20886c8c047SMatt Fleming       depends on CPU_SH4 || CPU_SH4A
20986c8c047SMatt Fleming       default y
21086c8c047SMatt Fleming       bool
21186c8c047SMatt Fleming
212ea0e1a9aSPaul Mundtchoice
213ea0e1a9aSPaul Mundt	prompt "Processor sub-type selection"
214ea0e1a9aSPaul Mundt
215ea0e1a9aSPaul Mundt#
216ea0e1a9aSPaul Mundt# Processor subtypes
217ea0e1a9aSPaul Mundt#
218ea0e1a9aSPaul Mundt
219ea0e1a9aSPaul Mundt# SH-2 Processor Support
220ea0e1a9aSPaul Mundt
221ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7619
222ea0e1a9aSPaul Mundt	bool "Support SH7619 processor"
223ea0e1a9aSPaul Mundt	select CPU_SH2
224fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
225ea0e1a9aSPaul Mundt
2265a846abaSRich Felkerconfig CPU_SUBTYPE_J2
2275a846abaSRich Felker	bool "Support J2 processor"
2285a846abaSRich Felker	select CPU_J2
229b4214e41SRich Felker	select SYS_SUPPORTS_SMP
230b4214e41SRich Felker	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
2315a846abaSRich Felker
232ea0e1a9aSPaul Mundt# SH-2A Processor Support
233ea0e1a9aSPaul Mundt
2342825999eSPeter Griffinconfig CPU_SUBTYPE_SH7201
2352825999eSPeter Griffin	bool "Support SH7201 processor"
2362825999eSPeter Griffin	select CPU_SH2A
2372825999eSPeter Griffin	select CPU_HAS_FPU
238fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_MTU2
2392825999eSPeter Griffin
2406d01f510SPaul Mundtconfig CPU_SUBTYPE_SH7203
2416d01f510SPaul Mundt	bool "Support SH7203 processor"
2426d01f510SPaul Mundt	select CPU_SH2A
24374d99a5eSPaul Mundt	select CPU_HAS_FPU
244fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
245fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_MTU2
246b768ecbcSLaurent Pinchart	select PINCTRL
2476d01f510SPaul Mundt
248ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7206
249ea0e1a9aSPaul Mundt	bool "Support SH7206 processor"
250ea0e1a9aSPaul Mundt	select CPU_SH2A
251fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
252fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_MTU2
253ea0e1a9aSPaul Mundt
254a8f67f4bSPaul Mundtconfig CPU_SUBTYPE_SH7263
255a8f67f4bSPaul Mundt	bool "Support SH7263 processor"
256a8f67f4bSPaul Mundt	select CPU_SH2A
25774d99a5eSPaul Mundt	select CPU_HAS_FPU
258fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
259fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_MTU2
260a8f67f4bSPaul Mundt
26151ce3068SPhil Edworthyconfig CPU_SUBTYPE_SH7264
26251ce3068SPhil Edworthy	bool "Support SH7264 processor"
26351ce3068SPhil Edworthy	select CPU_SH2A
26451ce3068SPhil Edworthy	select CPU_HAS_FPU
265fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
266fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_MTU2
2675946e7bbSLaurent Pinchart	select PINCTRL
26851ce3068SPhil Edworthy
2690b25b7c8SPhil Edworthyconfig CPU_SUBTYPE_SH7269
2700b25b7c8SPhil Edworthy	bool "Support SH7269 processor"
2710b25b7c8SPhil Edworthy	select CPU_SH2A
2720b25b7c8SPhil Edworthy	select CPU_HAS_FPU
273fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
274fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_MTU2
275fb872fccSLaurent Pinchart	select PINCTRL
2760b25b7c8SPhil Edworthy
2772ad69908SPaul Mundtconfig CPU_SUBTYPE_MXG
2782ad69908SPaul Mundt	bool "Support MX-G processor"
2792ad69908SPaul Mundt	select CPU_SH2A
280fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_MTU2
2812ad69908SPaul Mundt	help
2822ad69908SPaul Mundt	  Select MX-G if running on an R8A03022BG part.
2832ad69908SPaul Mundt
284ea0e1a9aSPaul Mundt# SH-3 Processor Support
285ea0e1a9aSPaul Mundt
286ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7705
287ea0e1a9aSPaul Mundt	bool "Support SH7705 processor"
288ea0e1a9aSPaul Mundt	select CPU_SH3
289ea0e1a9aSPaul Mundt
290ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7706
291ea0e1a9aSPaul Mundt	bool "Support SH7706 processor"
292ea0e1a9aSPaul Mundt	select CPU_SH3
293ea0e1a9aSPaul Mundt	help
294ea0e1a9aSPaul Mundt	  Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
295ea0e1a9aSPaul Mundt
296ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7707
297ea0e1a9aSPaul Mundt	bool "Support SH7707 processor"
298ea0e1a9aSPaul Mundt	select CPU_SH3
299ea0e1a9aSPaul Mundt	help
300ea0e1a9aSPaul Mundt	  Select SH7707 if you have a  60 Mhz SH-3 HD6417707 CPU.
301ea0e1a9aSPaul Mundt
302ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7708
303ea0e1a9aSPaul Mundt	bool "Support SH7708 processor"
304ea0e1a9aSPaul Mundt	select CPU_SH3
305ea0e1a9aSPaul Mundt	help
306ea0e1a9aSPaul Mundt	  Select SH7708 if you have a  60 Mhz SH-3 HD6417708S or
307ea0e1a9aSPaul Mundt	  if you have a 100 Mhz SH-3 HD6417708R CPU.
308ea0e1a9aSPaul Mundt
309ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7709
310ea0e1a9aSPaul Mundt	bool "Support SH7709 processor"
311ea0e1a9aSPaul Mundt	select CPU_SH3
312ea0e1a9aSPaul Mundt	help
313ea0e1a9aSPaul Mundt	  Select SH7709 if you have a  80 Mhz SH-3 HD6417709 CPU.
314ea0e1a9aSPaul Mundt
315ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7710
316ea0e1a9aSPaul Mundt	bool "Support SH7710 processor"
317ea0e1a9aSPaul Mundt	select CPU_SH3
318ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
319ea0e1a9aSPaul Mundt	help
320ea0e1a9aSPaul Mundt	  Select SH7710 if you have a SH3-DSP SH7710 CPU.
321ea0e1a9aSPaul Mundt
322ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7712
323ea0e1a9aSPaul Mundt	bool "Support SH7712 processor"
324ea0e1a9aSPaul Mundt	select CPU_SH3
325ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
326ea0e1a9aSPaul Mundt	help
327ea0e1a9aSPaul Mundt	  Select SH7712 if you have a SH3-DSP SH7712 CPU.
328ea0e1a9aSPaul Mundt
329ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7720
330ea0e1a9aSPaul Mundt	bool "Support SH7720 processor"
331ea0e1a9aSPaul Mundt	select CPU_SH3
332ea0e1a9aSPaul Mundt	select CPU_HAS_DSP
333fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
3347b61ca5dSPaul Mundt	select USB_OHCI_SH if USB_OHCI_HCD
33585db6bffSLaurent Pinchart	select PINCTRL
336ea0e1a9aSPaul Mundt	help
337ea0e1a9aSPaul Mundt	  Select SH7720 if you have a SH3-DSP SH7720 CPU.
338ea0e1a9aSPaul Mundt
33931a49c4bSYoshihiro Shimodaconfig CPU_SUBTYPE_SH7721
34031a49c4bSYoshihiro Shimoda	bool "Support SH7721 processor"
34131a49c4bSYoshihiro Shimoda	select CPU_SH3
34231a49c4bSYoshihiro Shimoda	select CPU_HAS_DSP
343fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
3447b61ca5dSPaul Mundt	select USB_OHCI_SH if USB_OHCI_HCD
34531a49c4bSYoshihiro Shimoda	help
34631a49c4bSYoshihiro Shimoda	  Select SH7721 if you have a SH3-DSP SH7721 CPU.
34731a49c4bSYoshihiro Shimoda
348ea0e1a9aSPaul Mundt# SH-4 Processor Support
349ea0e1a9aSPaul Mundt
350ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750
351ea0e1a9aSPaul Mundt	bool "Support SH7750 processor"
352ea0e1a9aSPaul Mundt	select CPU_SH4
353ea0e1a9aSPaul Mundt	help
354ea0e1a9aSPaul Mundt	  Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
355ea0e1a9aSPaul Mundt
356ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7091
357ea0e1a9aSPaul Mundt	bool "Support SH7091 processor"
358ea0e1a9aSPaul Mundt	select CPU_SH4
359ea0e1a9aSPaul Mundt	help
360ea0e1a9aSPaul Mundt	  Select SH7091 if you have an SH-4 based Sega device (such as
361ea0e1a9aSPaul Mundt	  the Dreamcast, Naomi, and Naomi 2).
362ea0e1a9aSPaul Mundt
363ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750R
364ea0e1a9aSPaul Mundt	bool "Support SH7750R processor"
365ea0e1a9aSPaul Mundt	select CPU_SH4
366ea0e1a9aSPaul Mundt
367ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7750S
368ea0e1a9aSPaul Mundt	bool "Support SH7750S processor"
369ea0e1a9aSPaul Mundt	select CPU_SH4
370ea0e1a9aSPaul Mundt
371ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7751
372ea0e1a9aSPaul Mundt	bool "Support SH7751 processor"
373ea0e1a9aSPaul Mundt	select CPU_SH4
374ea0e1a9aSPaul Mundt	help
375ea0e1a9aSPaul Mundt	  Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
376ea0e1a9aSPaul Mundt	  or if you have a HD6417751R CPU.
377ea0e1a9aSPaul Mundt
378ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7751R
379ea0e1a9aSPaul Mundt	bool "Support SH7751R processor"
380ea0e1a9aSPaul Mundt	select CPU_SH4
381ea0e1a9aSPaul Mundt
382ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7760
383ea0e1a9aSPaul Mundt	bool "Support SH7760 processor"
384ea0e1a9aSPaul Mundt	select CPU_SH4
385ea0e1a9aSPaul Mundt
386ea0e1a9aSPaul Mundt# SH-4A Processor Support
387ea0e1a9aSPaul Mundt
388178dd0cdSPaul Mundtconfig CPU_SUBTYPE_SH7723
389178dd0cdSPaul Mundt	bool "Support SH7723 processor"
390178dd0cdSPaul Mundt	select CPU_SH4A
391178dd0cdSPaul Mundt	select CPU_SHX2
392dc65a977SPaul Mundt	select ARCH_SHMOBILE
393178dd0cdSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
394fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
39516941a89SLaurent Pinchart	select PINCTRL
396178dd0cdSPaul Mundt	help
397178dd0cdSPaul Mundt	  Select SH7723 if you have an SH-MobileR2 CPU.
398178dd0cdSPaul Mundt
3990207a2efSKuninori Morimotoconfig CPU_SUBTYPE_SH7724
4000207a2efSKuninori Morimoto	bool "Support SH7724 processor"
4010207a2efSKuninori Morimoto	select CPU_SH4A
4020207a2efSKuninori Morimoto	select CPU_SHX2
40359fe700dSPaul Mundt	select ARCH_SHMOBILE
4040207a2efSKuninori Morimoto	select ARCH_SPARSEMEM_ENABLE
405fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
40618ebd228SLaurent Pinchart	select PINCTRL
4070207a2efSKuninori Morimoto	help
4080207a2efSKuninori Morimoto	  Select SH7724 if you have an SH-MobileR2R CPU.
4090207a2efSKuninori Morimoto
410fea88a0cSNobuhiro Iwamatsuconfig CPU_SUBTYPE_SH7734
411fea88a0cSNobuhiro Iwamatsu	bool "Support SH7734 processor"
412fea88a0cSNobuhiro Iwamatsu	select CPU_SH4A
413fea88a0cSNobuhiro Iwamatsu	select CPU_SHX2
4142c172182SLaurent Pinchart	select PINCTRL
415fea88a0cSNobuhiro Iwamatsu	help
416fea88a0cSNobuhiro Iwamatsu	  Select SH7734 if you have a SH4A SH7734 CPU.
417fea88a0cSNobuhiro Iwamatsu
418c01f0f1aSYoshihiro Shimodaconfig CPU_SUBTYPE_SH7757
419c01f0f1aSYoshihiro Shimoda	bool "Support SH7757 processor"
420c01f0f1aSYoshihiro Shimoda	select CPU_SH4A
421c01f0f1aSYoshihiro Shimoda	select CPU_SHX2
422eb61b772SLaurent Pinchart	select PINCTRL
423c01f0f1aSYoshihiro Shimoda	help
424c01f0f1aSYoshihiro Shimoda	  Select SH7757 if you have a SH4A SH7757 CPU.
425c01f0f1aSYoshihiro Shimoda
4267d740a06SYoshihiro Shimodaconfig CPU_SUBTYPE_SH7763
4277d740a06SYoshihiro Shimoda	bool "Support SH7763 processor"
4287d740a06SYoshihiro Shimoda	select CPU_SH4A
4297b61ca5dSPaul Mundt	select USB_OHCI_SH if USB_OHCI_HCD
4307d740a06SYoshihiro Shimoda	help
4317d740a06SYoshihiro Shimoda	  Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
4327d740a06SYoshihiro Shimoda
433ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7770
434ea0e1a9aSPaul Mundt	bool "Support SH7770 processor"
435ea0e1a9aSPaul Mundt	select CPU_SH4A
436ea0e1a9aSPaul Mundt
437ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7780
438ea0e1a9aSPaul Mundt	bool "Support SH7780 processor"
439ea0e1a9aSPaul Mundt	select CPU_SH4A
440ea0e1a9aSPaul Mundt
441ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7785
442ea0e1a9aSPaul Mundt	bool "Support SH7785 processor"
443ea0e1a9aSPaul Mundt	select CPU_SH4A
444ea0e1a9aSPaul Mundt	select CPU_SHX2
445ea0e1a9aSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
446ea0e1a9aSPaul Mundt	select SYS_SUPPORTS_NUMA
44777bd27b2SLaurent Pinchart	select PINCTRL
448ea0e1a9aSPaul Mundt
44955ba99ebSKuninori Morimotoconfig CPU_SUBTYPE_SH7786
45055ba99ebSKuninori Morimoto	bool "Support SH7786 processor"
45155ba99ebSKuninori Morimoto	select CPU_SH4A
45237042fbdSPaul Mundt	select CPU_SHX3
4538263a67eSPaul Mundt	select CPU_HAS_PTEAEX
4542eb2a436SPaul Mundt	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
4557b61ca5dSPaul Mundt	select USB_OHCI_SH if USB_OHCI_HCD
4567b61ca5dSPaul Mundt	select USB_EHCI_SH if USB_EHCI_HCD
457c0fdbff9SLaurent Pinchart	select PINCTRL
45855ba99ebSKuninori Morimoto
459ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SHX3
460ea0e1a9aSPaul Mundt	bool "Support SH-X3 processor"
461ea0e1a9aSPaul Mundt	select CPU_SH4A
462ea0e1a9aSPaul Mundt	select CPU_SHX3
4635840263eSPaul Mundt	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
464fdcfdfa1SLinus Walleij	select GPIOLIB
4653e347f08SLaurent Pinchart	select PINCTRL
466ea0e1a9aSPaul Mundt
467ea0e1a9aSPaul Mundt# SH4AL-DSP Processor Support
468ea0e1a9aSPaul Mundt
469ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7343
470ea0e1a9aSPaul Mundt	bool "Support SH7343 processor"
471ea0e1a9aSPaul Mundt	select CPU_SH4AL_DSP
472dc65a977SPaul Mundt	select ARCH_SHMOBILE
473fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
474ea0e1a9aSPaul Mundt
475ea0e1a9aSPaul Mundtconfig CPU_SUBTYPE_SH7722
476ea0e1a9aSPaul Mundt	bool "Support SH7722 processor"
477ea0e1a9aSPaul Mundt	select CPU_SH4AL_DSP
478ea0e1a9aSPaul Mundt	select CPU_SHX2
479dc65a977SPaul Mundt	select ARCH_SHMOBILE
480ea0e1a9aSPaul Mundt	select ARCH_SPARSEMEM_ENABLE
481ea0e1a9aSPaul Mundt	select SYS_SUPPORTS_NUMA
482fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
483ef97c3c1SLaurent Pinchart	select PINCTRL
484ea0e1a9aSPaul Mundt
4859109a30eSMagnus Dammconfig CPU_SUBTYPE_SH7366
4869109a30eSMagnus Damm	bool "Support SH7366 processor"
4879109a30eSMagnus Damm	select CPU_SH4AL_DSP
4889109a30eSMagnus Damm	select CPU_SHX2
489dc65a977SPaul Mundt	select ARCH_SHMOBILE
4909109a30eSMagnus Damm	select ARCH_SPARSEMEM_ENABLE
4919109a30eSMagnus Damm	select SYS_SUPPORTS_NUMA
492fbfa8934SMagnus Damm	select SYS_SUPPORTS_SH_CMT
4939109a30eSMagnus Damm
4943cc000b5SPaul Mundtendchoice
4953cc000b5SPaul Mundt
496ea0e1a9aSPaul Mundtsource "arch/sh/mm/Kconfig"
497939a24a6SPaul Mundt
498ea0e1a9aSPaul Mundtsource "arch/sh/Kconfig.cpu"
499ea0e1a9aSPaul Mundt
500939a24a6SPaul Mundtsource "arch/sh/boards/Kconfig"
501ea0e1a9aSPaul Mundt
502ea0e1a9aSPaul Mundtmenu "Timer and clock configuration"
503ea0e1a9aSPaul Mundt
504ea0e1a9aSPaul Mundtconfig SH_PCLK_FREQ
505ea0e1a9aSPaul Mundt	int "Peripheral clock frequency (in Hz)"
5068152a74bSPaul Mundt	depends on SH_CLK_CPG_LEGACY
507ea0e1a9aSPaul Mundt	default "31250000" if CPU_SUBTYPE_SH7619
5088152a74bSPaul Mundt	default "33333333" if CPU_SUBTYPE_SH7770 || \
5098152a74bSPaul Mundt			      CPU_SUBTYPE_SH7760 || \
5108152a74bSPaul Mundt			      CPU_SUBTYPE_SH7705 || \
5118152a74bSPaul Mundt			      CPU_SUBTYPE_SH7203 || \
5128152a74bSPaul Mundt			      CPU_SUBTYPE_SH7206 || \
5138152a74bSPaul Mundt			      CPU_SUBTYPE_SH7263 || \
51443a1839cSPaul Mundt			      CPU_SUBTYPE_MXG
515ea0e1a9aSPaul Mundt	default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
516ea0e1a9aSPaul Mundt	default "50000000"
517ea0e1a9aSPaul Mundt	help
518ea0e1a9aSPaul Mundt	  This option is used to specify the peripheral clock frequency.
519ea0e1a9aSPaul Mundt	  This is necessary for determining the reference clock value on
520ea0e1a9aSPaul Mundt	  platforms lacking an RTC.
521ea0e1a9aSPaul Mundt
52236aa1e32SPaul Mundtconfig SH_CLK_CPG
52336aa1e32SPaul Mundt	def_bool y
52436aa1e32SPaul Mundt
525253b0887SPaul Mundtconfig SH_CLK_CPG_LEGACY
52636aa1e32SPaul Mundt	depends on SH_CLK_CPG
52743a1839cSPaul Mundt	def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
52851ce3068SPhil Edworthy		      !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
529bcb86e0aSPaul Mundt		      !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
530bcb86e0aSPaul Mundt		      !CPU_SUBTYPE_SH7269
531253b0887SPaul Mundt
532ea0e1a9aSPaul Mundtendmenu
533ea0e1a9aSPaul Mundt
534ea0e1a9aSPaul Mundtmenu "CPU Frequency scaling"
535ea0e1a9aSPaul Mundtsource "drivers/cpufreq/Kconfig"
536ea0e1a9aSPaul Mundtendmenu
537ea0e1a9aSPaul Mundt
538ea0e1a9aSPaul Mundtsource "arch/sh/drivers/Kconfig"
539ea0e1a9aSPaul Mundt
540ea0e1a9aSPaul Mundtendmenu
541ea0e1a9aSPaul Mundt
542ea0e1a9aSPaul Mundtmenu "Kernel features"
543ea0e1a9aSPaul Mundt
5448636a1f9SMasahiro Yamadasource "kernel/Kconfig.hz"
545ea0e1a9aSPaul Mundt
54640445d06SEric DeVolderconfig ARCH_SUPPORTS_KEXEC
54740445d06SEric DeVolder	def_bool MMU
548ea0e1a9aSPaul Mundt
54940445d06SEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
55040445d06SEric DeVolder	def_bool BROKEN_ON_SMP
551ea0e1a9aSPaul Mundt
55231daa343SDave Vasilevskyconfig ARCH_DEFAULT_CRASH_DUMP
55331daa343SDave Vasilevsky	def_bool y
55431daa343SDave Vasilevsky
55540445d06SEric DeVolderconfig ARCH_SUPPORTS_KEXEC_JUMP
55640445d06SEric DeVolder	def_bool y
557b7cf6ddcSMagnus Damm
558e66ac3f2SSimon Hormanconfig PHYSICAL_START
559e66ac3f2SSimon Horman	hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
560e66ac3f2SSimon Horman	default MEMORY_START
561a7f7f624SMasahiro Yamada	help
562e66ac3f2SSimon Horman	  This gives the physical address where the kernel is loaded
563e66ac3f2SSimon Horman	  and is ordinarily the same as MEMORY_START.
564e66ac3f2SSimon Horman
565e66ac3f2SSimon Horman	  Different values are primarily used in the case of kexec on panic
566e66ac3f2SSimon Horman	  where the fail safe kernel needs to run at a different address
567e66ac3f2SSimon Horman	  than the panic-ed kernel.
568e66ac3f2SSimon Horman
569ea0e1a9aSPaul Mundtconfig SMP
570ea0e1a9aSPaul Mundt	bool "Symmetric multi-processing support"
571ea0e1a9aSPaul Mundt	depends on SYS_SUPPORTS_SMP
572a7f7f624SMasahiro Yamada	help
573ea0e1a9aSPaul Mundt	  This enables support for systems with more than one CPU. If you have
5744a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
5754a474157SRobert Graffham	  than one CPU, say Y.
576ea0e1a9aSPaul Mundt
5774a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
578ea0e1a9aSPaul Mundt	  machines, but will use only one CPU of a multiprocessor machine. If
579ea0e1a9aSPaul Mundt	  you say Y here, the kernel will run on many, but not all,
5804a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
581ea0e1a9aSPaul Mundt	  will run faster if you say N here.
582ea0e1a9aSPaul Mundt
583ea0e1a9aSPaul Mundt	  People using multiprocessor machines who say Y here should also say
584ea0e1a9aSPaul Mundt	  Y to "Enhanced Real Time Clock Support", below.
585ea0e1a9aSPaul Mundt
5864f4cfa6cSMauro Carvalho Chehab	  See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
58791194e9bSAlexander A. Klimov	  available at <https://www.tldp.org/docs.html#howto>.
588ea0e1a9aSPaul Mundt
589ea0e1a9aSPaul Mundt	  If you don't know what to do here, say N.
590ea0e1a9aSPaul Mundt
591ea0e1a9aSPaul Mundtconfig NR_CPUS
592ea0e1a9aSPaul Mundt	int "Maximum number of CPUs (2-32)"
593ea0e1a9aSPaul Mundt	range 2 32
594ea0e1a9aSPaul Mundt	depends on SMP
5952eb2a436SPaul Mundt	default "4" if CPU_SUBTYPE_SHX3
596ea0e1a9aSPaul Mundt	default "2"
597ea0e1a9aSPaul Mundt	help
598ea0e1a9aSPaul Mundt	  This allows you to specify the maximum number of CPUs which this
599ea0e1a9aSPaul Mundt	  kernel will support.  The maximum supported value is 32 and the
600ea0e1a9aSPaul Mundt	  minimum value which makes sense is 2.
601ea0e1a9aSPaul Mundt
602ea0e1a9aSPaul Mundt	  This is purely to save memory - each supported CPU adds
603ea0e1a9aSPaul Mundt	  approximately eight kilobytes to the kernel image.
604ea0e1a9aSPaul Mundt
605763142d1SPaul Mundtconfig HOTPLUG_CPU
606763142d1SPaul Mundt	bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
60740b31360SStephen Rothwell	depends on SMP
608763142d1SPaul Mundt	help
609763142d1SPaul Mundt	  Say Y here to experiment with turning CPUs off and on.  CPUs
610763142d1SPaul Mundt	  can be controlled through /sys/devices/system/cpu.
611763142d1SPaul Mundt
612ea0e1a9aSPaul Mundtconfig GUSA
613ea0e1a9aSPaul Mundt	def_bool y
61437744feeSArnd Bergmann	depends on !SMP
615ea0e1a9aSPaul Mundt	help
616ea0e1a9aSPaul Mundt	  This enables support for gUSA (general UserSpace Atomicity).
617ea0e1a9aSPaul Mundt	  This is the default implementation for both UP and non-ll/sc
618ea0e1a9aSPaul Mundt	  CPUs, and is used by the libc, amongst others.
619ea0e1a9aSPaul Mundt
620ea0e1a9aSPaul Mundt	  For additional information, design information can be found
621ea0e1a9aSPaul Mundt	  in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
622ea0e1a9aSPaul Mundt
623ea0e1a9aSPaul Mundt	  This should only be disabled for special cases where alternate
624ea0e1a9aSPaul Mundt	  atomicity implementations exist.
625ea0e1a9aSPaul Mundt
6261efe4ce3SStuart Menefyconfig GUSA_RB
6271efe4ce3SStuart Menefy	bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
6281efe4ce3SStuart Menefy	depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
6291efe4ce3SStuart Menefy	help
6301efe4ce3SStuart Menefy	  Enabling this option will allow the kernel to implement some
631692105b8SMatt LaPlante	  atomic operations using a software implementation of load-locked/
6321efe4ce3SStuart Menefy	  store-conditional (LLSC). On machines which do not have hardware
6331efe4ce3SStuart Menefy	  LLSC, this should be more efficient than the other alternative of
634692105b8SMatt LaPlante	  disabling interrupts around the atomic sequence.
6351efe4ce3SStuart Menefy
63686c8c047SMatt Flemingconfig HW_PERF_EVENTS
63786c8c047SMatt Fleming	bool "Enable hardware performance counter support for perf events"
63886c8c047SMatt Fleming	depends on PERF_EVENTS && CPU_HAS_PMU
63986c8c047SMatt Fleming	default y
64086c8c047SMatt Fleming	help
64186c8c047SMatt Fleming	  Enable hardware performance counter support for perf events. If
64286c8c047SMatt Fleming	  disabled, perf events will use software events only.
64386c8c047SMatt Fleming
64443b8774dSPaul Mundtsource "drivers/sh/Kconfig"
64543b8774dSPaul Mundt
646ea0e1a9aSPaul Mundtendmenu
647ea0e1a9aSPaul Mundt
648ea0e1a9aSPaul Mundtmenu "Boot options"
649ea0e1a9aSPaul Mundt
650*21bcc499SMasahiro Yamadaconfig BUILTIN_DTB
651190fe191SRich Felker	bool "Use builtin DTB"
652190fe191SRich Felker	default n
653190fe191SRich Felker	depends on SH_DEVICE_TREE
654*21bcc499SMasahiro Yamada	select GENERIC_BUILTIN_DTB
655190fe191SRich Felker	help
656190fe191SRich Felker	  Link a device tree blob for particular hardware into the kernel,
657190fe191SRich Felker	  suppressing use of the DTB pointer provided by the bootloader.
658190fe191SRich Felker	  This option should only be used with legacy bootloaders that are
659190fe191SRich Felker	  not capable of providing a DTB to the kernel, or for experimental
660190fe191SRich Felker	  hardware without stable device tree bindings.
661190fe191SRich Felker
662*21bcc499SMasahiro Yamadaconfig BUILTIN_DTB_NAME
663190fe191SRich Felker	string "Source file for builtin DTB"
664190fe191SRich Felker	default ""
665*21bcc499SMasahiro Yamada	depends on BUILTIN_DTB
666190fe191SRich Felker	help
667190fe191SRich Felker	  Base name (without suffix, relative to arch/sh/boot/dts) for the
668190fe191SRich Felker	  a DTS file that will be used to produce the DTB linked into the
669190fe191SRich Felker	  kernel.
670190fe191SRich Felker
671ea0e1a9aSPaul Mundtconfig ZERO_PAGE_OFFSET
672b412a49aSPaul Mundt	hex
673b412a49aSPaul Mundt	default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
674b412a49aSPaul Mundt				SH_7751_SOLUTION_ENGINE
675b412a49aSPaul Mundt	default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
676ea0e1a9aSPaul Mundt	default "0x00002000" if PAGE_SIZE_8KB
677ea0e1a9aSPaul Mundt	default "0x00001000"
678ea0e1a9aSPaul Mundt	help
679ea0e1a9aSPaul Mundt	  This sets the default offset of zero page.
680ea0e1a9aSPaul Mundt
681ea0e1a9aSPaul Mundtconfig BOOT_LINK_OFFSET
682b412a49aSPaul Mundt	hex
683b412a49aSPaul Mundt	default "0x00210000" if SH_SHMIN
684b412a49aSPaul Mundt	default "0x00810000" if SH_7780_SOLUTION_ENGINE
685b412a49aSPaul Mundt	default "0x009e0000" if SH_TITAN
686b412a49aSPaul Mundt	default "0x01800000" if SH_SDK7780
687b412a49aSPaul Mundt	default "0x02000000" if SH_EDOSK7760
688ea0e1a9aSPaul Mundt	default "0x00800000"
689ea0e1a9aSPaul Mundt	help
690ea0e1a9aSPaul Mundt	  This option allows you to set the link address offset of the zImage.
691ea0e1a9aSPaul Mundt	  This can be useful if you are on a board which has a small amount of
692ea0e1a9aSPaul Mundt	  memory.
693ea0e1a9aSPaul Mundt
694b412a49aSPaul Mundtconfig ENTRY_OFFSET
695b412a49aSPaul Mundt	hex
696b412a49aSPaul Mundt	default "0x00001000" if PAGE_SIZE_4KB
697b412a49aSPaul Mundt	default "0x00002000" if PAGE_SIZE_8KB
698b412a49aSPaul Mundt	default "0x00004000" if PAGE_SIZE_16KB
699b412a49aSPaul Mundt	default "0x00010000" if PAGE_SIZE_64KB
700b412a49aSPaul Mundt	default "0x00000000"
701b412a49aSPaul Mundt
7024705b2e8SMagnus Dammconfig ROMIMAGE_MMCIF
7034705b2e8SMagnus Damm	bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
7040d57af1eSKees Cook	depends on CPU_SUBTYPE_SH7724
7054705b2e8SMagnus Damm	help
7064705b2e8SMagnus Damm	  Say Y here to include experimental MMCIF loading code in
7074705b2e8SMagnus Damm	  romImage. With this enabled it is possible to write the romImage
7084705b2e8SMagnus Damm	  kernel image to an MMC card and boot the kernel straight from
7094705b2e8SMagnus Damm	  the reset vector. At reset the processor Mask ROM will load the
7104705b2e8SMagnus Damm	  first part of the romImage which in turn loads the rest the kernel
7114705b2e8SMagnus Damm	  image to RAM using the MMCIF hardware block.
7124705b2e8SMagnus Damm
713d724a9c9SPawel Mollchoice
714d724a9c9SPawel Moll	prompt "Kernel command line"
715d724a9c9SPawel Moll	default CMDLINE_OVERWRITE
716d724a9c9SPawel Moll	help
717d724a9c9SPawel Moll	  Setting this option allows the kernel command line arguments
718d724a9c9SPawel Moll	  to be set.
719d724a9c9SPawel Moll
720d724a9c9SPawel Mollconfig CMDLINE_OVERWRITE
721d724a9c9SPawel Moll	bool "Overwrite bootloader kernel arguments"
722d724a9c9SPawel Moll	help
723d724a9c9SPawel Moll	  Given string will overwrite any arguments passed in by
724d724a9c9SPawel Moll	  a bootloader.
725d724a9c9SPawel Moll
726d724a9c9SPawel Mollconfig CMDLINE_EXTEND
727d724a9c9SPawel Moll	bool "Extend bootloader kernel arguments"
728d724a9c9SPawel Moll	help
729d724a9c9SPawel Moll	  Given string will be concatenated with arguments passed in
730d724a9c9SPawel Moll	  by a bootloader.
731d724a9c9SPawel Moll
732d9a1dab6SMasahiro Yamadaconfig CMDLINE_FROM_BOOTLOADER
733d9a1dab6SMasahiro Yamada	bool "Use bootloader kernel arguments"
734d9a1dab6SMasahiro Yamada	help
735d9a1dab6SMasahiro Yamada	  Uses the command-line options passed by the boot loader.
736d9a1dab6SMasahiro Yamada
737d724a9c9SPawel Mollendchoice
738ea0e1a9aSPaul Mundt
739ea0e1a9aSPaul Mundtconfig CMDLINE
740d724a9c9SPawel Moll	string "Kernel command line arguments string"
741d724a9c9SPawel Moll	depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
742ea0e1a9aSPaul Mundt	default "console=ttySC1,115200"
743ea0e1a9aSPaul Mundt
744ea0e1a9aSPaul Mundtendmenu
745ea0e1a9aSPaul Mundt
746ea0e1a9aSPaul Mundtmenu "Bus options"
747ea0e1a9aSPaul Mundt
748ea0e1a9aSPaul Mundtconfig MAPLE
749ea0e1a9aSPaul Mundt	bool "Maple Bus support"
750ea0e1a9aSPaul Mundt	depends on SH_DREAMCAST
751ea0e1a9aSPaul Mundt	help
752ea0e1a9aSPaul Mundt	 The Maple Bus is SEGA's serial communication bus for peripherals
753ea0e1a9aSPaul Mundt	 on the Dreamcast. Without this bus support you won't be able to
754ea0e1a9aSPaul Mundt	 get your Dreamcast keyboard etc to work, so most users
755ea0e1a9aSPaul Mundt	 probably want to say 'Y' here, unless you are only using the
756ea0e1a9aSPaul Mundt	 Dreamcast with a serial line terminal or a remote network
757ea0e1a9aSPaul Mundt	 connection.
758ea0e1a9aSPaul Mundt
759ea0e1a9aSPaul Mundtendmenu
760ea0e1a9aSPaul Mundt
761ea0e1a9aSPaul Mundtmenu "Power management options (EXPERIMENTAL)"
762f4cb5700SJohannes Berg
763c6f17cb2SMagnus Dammsource "kernel/power/Kconfig"
764c6f17cb2SMagnus Damm
765c6f17cb2SMagnus Dammsource "drivers/cpuidle/Kconfig"
766ea0e1a9aSPaul Mundt
767ea0e1a9aSPaul Mundtendmenu
768