162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ciconfig SUPERH
362306a36Sopenharmony_ci	def_bool y
462306a36Sopenharmony_ci	select ARCH_32BIT_OFF_T
562306a36Sopenharmony_ci	select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM && MMU
662306a36Sopenharmony_ci	select ARCH_ENABLE_MEMORY_HOTREMOVE if SPARSEMEM && MMU
762306a36Sopenharmony_ci	select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
862306a36Sopenharmony_ci	select ARCH_HAS_BINFMT_FLAT if !MMU
962306a36Sopenharmony_ci	select ARCH_HAS_CPU_FINALIZE_INIT
1062306a36Sopenharmony_ci	select ARCH_HAS_CURRENT_STACK_POINTER
1162306a36Sopenharmony_ci	select ARCH_HAS_GIGANTIC_PAGE
1262306a36Sopenharmony_ci	select ARCH_HAS_GCOV_PROFILE_ALL
1362306a36Sopenharmony_ci	select ARCH_HAS_PTE_SPECIAL
1462306a36Sopenharmony_ci	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
1562306a36Sopenharmony_ci	select ARCH_HIBERNATION_POSSIBLE if MMU
1662306a36Sopenharmony_ci	select ARCH_MIGHT_HAVE_PC_PARPORT
1762306a36Sopenharmony_ci	select ARCH_WANT_IPC_PARSE_VERSION
1862306a36Sopenharmony_ci	select CPU_NO_EFFICIENT_FFS
1962306a36Sopenharmony_ci	select DMA_DECLARE_COHERENT
2062306a36Sopenharmony_ci	select GENERIC_ATOMIC64
2162306a36Sopenharmony_ci	select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
2262306a36Sopenharmony_ci	select GENERIC_IDLE_POLL_SETUP
2362306a36Sopenharmony_ci	select GENERIC_IRQ_SHOW
2462306a36Sopenharmony_ci	select GENERIC_LIB_ASHLDI3
2562306a36Sopenharmony_ci	select GENERIC_LIB_ASHRDI3
2662306a36Sopenharmony_ci	select GENERIC_LIB_LSHRDI3
2762306a36Sopenharmony_ci	select GENERIC_PCI_IOMAP if PCI
2862306a36Sopenharmony_ci	select GENERIC_SCHED_CLOCK
2962306a36Sopenharmony_ci	select GENERIC_SMP_IDLE_THREAD
3062306a36Sopenharmony_ci	select GUP_GET_PXX_LOW_HIGH if X2TLB
3162306a36Sopenharmony_ci	select HAS_IOPORT if HAS_IOPORT_MAP
3262306a36Sopenharmony_ci	select GENERIC_IOREMAP if MMU
3362306a36Sopenharmony_ci	select HAVE_ARCH_AUDITSYSCALL
3462306a36Sopenharmony_ci	select HAVE_ARCH_KGDB
3562306a36Sopenharmony_ci	select HAVE_ARCH_SECCOMP_FILTER
3662306a36Sopenharmony_ci	select HAVE_ARCH_TRACEHOOK
3762306a36Sopenharmony_ci	select HAVE_DEBUG_BUGVERBOSE
3862306a36Sopenharmony_ci	select HAVE_DEBUG_KMEMLEAK
3962306a36Sopenharmony_ci	select HAVE_DYNAMIC_FTRACE
4062306a36Sopenharmony_ci	select HAVE_FAST_GUP if MMU
4162306a36Sopenharmony_ci	select HAVE_FUNCTION_GRAPH_TRACER
4262306a36Sopenharmony_ci	select HAVE_FUNCTION_TRACER
4362306a36Sopenharmony_ci	select HAVE_FTRACE_MCOUNT_RECORD
4462306a36Sopenharmony_ci	select HAVE_HW_BREAKPOINT
4562306a36Sopenharmony_ci	select HAVE_IOREMAP_PROT if MMU && !X2TLB
4662306a36Sopenharmony_ci	select HAVE_KERNEL_BZIP2
4762306a36Sopenharmony_ci	select HAVE_KERNEL_GZIP
4862306a36Sopenharmony_ci	select HAVE_KERNEL_LZMA
4962306a36Sopenharmony_ci	select HAVE_KERNEL_LZO
5062306a36Sopenharmony_ci	select HAVE_KERNEL_XZ
5162306a36Sopenharmony_ci	select HAVE_KPROBES
5262306a36Sopenharmony_ci	select HAVE_KRETPROBES
5362306a36Sopenharmony_ci	select HAVE_MIXED_BREAKPOINTS_REGS
5462306a36Sopenharmony_ci	select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
5562306a36Sopenharmony_ci	select HAVE_NMI
5662306a36Sopenharmony_ci	select HAVE_PATA_PLATFORM
5762306a36Sopenharmony_ci	select HAVE_PERF_EVENTS
5862306a36Sopenharmony_ci	select HAVE_REGS_AND_STACK_ACCESS_API
5962306a36Sopenharmony_ci	select HAVE_UID16
6062306a36Sopenharmony_ci	select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS
6162306a36Sopenharmony_ci	select HAVE_STACKPROTECTOR
6262306a36Sopenharmony_ci	select HAVE_SYSCALL_TRACEPOINTS
6362306a36Sopenharmony_ci	select IRQ_FORCED_THREADING
6462306a36Sopenharmony_ci	select LOCK_MM_AND_FIND_VMA
6562306a36Sopenharmony_ci	select MODULES_USE_ELF_RELA
6662306a36Sopenharmony_ci	select NEED_SG_DMA_LENGTH
6762306a36Sopenharmony_ci	select NO_DMA if !MMU && !DMA_COHERENT
6862306a36Sopenharmony_ci	select NO_GENERIC_PCI_IOPORT_MAP if PCI
6962306a36Sopenharmony_ci	select OLD_SIGACTION
7062306a36Sopenharmony_ci	select OLD_SIGSUSPEND
7162306a36Sopenharmony_ci	select PCI_DOMAINS if PCI
7262306a36Sopenharmony_ci	select PERF_EVENTS
7362306a36Sopenharmony_ci	select PERF_USE_VMALLOC
7462306a36Sopenharmony_ci	select RTC_LIB
7562306a36Sopenharmony_ci	select SPARSE_IRQ
7662306a36Sopenharmony_ci	select TRACE_IRQFLAGS_SUPPORT
7762306a36Sopenharmony_ci	help
7862306a36Sopenharmony_ci	  The SuperH is a RISC processor targeted for use in embedded systems
7962306a36Sopenharmony_ci	  and consumer electronics; it was also used in the Sega Dreamcast
8062306a36Sopenharmony_ci	  gaming console.  The SuperH port has a home page at
8162306a36Sopenharmony_ci	  <http://www.linux-sh.org/>.
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ciconfig GENERIC_BUG
8462306a36Sopenharmony_ci	def_bool y
8562306a36Sopenharmony_ci	depends on BUG
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ciconfig GENERIC_HWEIGHT
8862306a36Sopenharmony_ci	def_bool y
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ciconfig GENERIC_CALIBRATE_DELAY
9162306a36Sopenharmony_ci	bool
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ciconfig GENERIC_LOCKBREAK
9462306a36Sopenharmony_ci	def_bool y
9562306a36Sopenharmony_ci	depends on SMP && PREEMPTION
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ciconfig ARCH_SUSPEND_POSSIBLE
9862306a36Sopenharmony_ci	def_bool n
9962306a36Sopenharmony_ci
10062306a36Sopenharmony_ciconfig ARCH_HIBERNATION_POSSIBLE
10162306a36Sopenharmony_ci	def_bool n
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciconfig SYS_SUPPORTS_APM_EMULATION
10462306a36Sopenharmony_ci	bool
10562306a36Sopenharmony_ci	select ARCH_SUSPEND_POSSIBLE
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ciconfig SYS_SUPPORTS_SMP
10862306a36Sopenharmony_ci	bool
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ciconfig SYS_SUPPORTS_NUMA
11162306a36Sopenharmony_ci	bool
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ciconfig STACKTRACE_SUPPORT
11462306a36Sopenharmony_ci	def_bool y
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ciconfig LOCKDEP_SUPPORT
11762306a36Sopenharmony_ci	def_bool y
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ciconfig ARCH_HAS_ILOG2_U32
12062306a36Sopenharmony_ci	def_bool n
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ciconfig ARCH_HAS_ILOG2_U64
12362306a36Sopenharmony_ci	def_bool n
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ciconfig NO_IOPORT_MAP
12662306a36Sopenharmony_ci	def_bool !PCI
12762306a36Sopenharmony_ci	depends on !SH_SH4202_MICRODEV && !SH_SHMIN && !SH_HP6XX && \
12862306a36Sopenharmony_ci		   !SH_SOLUTION_ENGINE
12962306a36Sopenharmony_ci
13062306a36Sopenharmony_ciconfig IO_TRAPPED
13162306a36Sopenharmony_ci	bool
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ciconfig SWAP_IO_SPACE
13462306a36Sopenharmony_ci	bool
13562306a36Sopenharmony_ci
13662306a36Sopenharmony_ciconfig DMA_COHERENT
13762306a36Sopenharmony_ci	bool
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ciconfig DMA_NONCOHERENT
14062306a36Sopenharmony_ci	def_bool !NO_DMA && !DMA_COHERENT
14162306a36Sopenharmony_ci	select ARCH_HAS_DMA_PREP_COHERENT
14262306a36Sopenharmony_ci	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
14362306a36Sopenharmony_ci	select DMA_DIRECT_REMAP
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_ciconfig PGTABLE_LEVELS
14662306a36Sopenharmony_ci	default 3 if X2TLB
14762306a36Sopenharmony_ci	default 2
14862306a36Sopenharmony_ci
14962306a36Sopenharmony_cimenu "System type"
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_ci#
15262306a36Sopenharmony_ci# Processor families
15362306a36Sopenharmony_ci#
15462306a36Sopenharmony_ciconfig CPU_SH2
15562306a36Sopenharmony_ci	bool
15662306a36Sopenharmony_ci	select SH_INTC
15762306a36Sopenharmony_ci
15862306a36Sopenharmony_ciconfig CPU_SH2A
15962306a36Sopenharmony_ci	bool
16062306a36Sopenharmony_ci	select CPU_SH2
16162306a36Sopenharmony_ci	select UNCACHED_MAPPING
16262306a36Sopenharmony_ci
16362306a36Sopenharmony_ciconfig CPU_J2
16462306a36Sopenharmony_ci	bool
16562306a36Sopenharmony_ci	select CPU_SH2
16662306a36Sopenharmony_ci	select OF
16762306a36Sopenharmony_ci	select OF_EARLY_FLATTREE
16862306a36Sopenharmony_ci
16962306a36Sopenharmony_ciconfig CPU_SH3
17062306a36Sopenharmony_ci	bool
17162306a36Sopenharmony_ci	select CPU_HAS_INTEVT
17262306a36Sopenharmony_ci	select CPU_HAS_SR_RB
17362306a36Sopenharmony_ci	select SH_INTC
17462306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_TMU
17562306a36Sopenharmony_ci
17662306a36Sopenharmony_ciconfig CPU_SH4
17762306a36Sopenharmony_ci	bool
17862306a36Sopenharmony_ci	select ARCH_SUPPORTS_HUGETLBFS if MMU
17962306a36Sopenharmony_ci	select CPU_HAS_INTEVT
18062306a36Sopenharmony_ci	select CPU_HAS_SR_RB
18162306a36Sopenharmony_ci	select CPU_HAS_FPU if !CPU_SH4AL_DSP
18262306a36Sopenharmony_ci	select SH_INTC
18362306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_TMU
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ciconfig CPU_SH4A
18662306a36Sopenharmony_ci	bool
18762306a36Sopenharmony_ci	select CPU_SH4
18862306a36Sopenharmony_ci
18962306a36Sopenharmony_ciconfig CPU_SH4AL_DSP
19062306a36Sopenharmony_ci	bool
19162306a36Sopenharmony_ci	select CPU_SH4A
19262306a36Sopenharmony_ci	select CPU_HAS_DSP
19362306a36Sopenharmony_ci
19462306a36Sopenharmony_ciconfig CPU_SHX2
19562306a36Sopenharmony_ci	bool
19662306a36Sopenharmony_ci
19762306a36Sopenharmony_ciconfig CPU_SHX3
19862306a36Sopenharmony_ci	bool
19962306a36Sopenharmony_ci	select DMA_COHERENT
20062306a36Sopenharmony_ci	select SYS_SUPPORTS_SMP
20162306a36Sopenharmony_ci	select SYS_SUPPORTS_NUMA
20262306a36Sopenharmony_ci
20362306a36Sopenharmony_ciconfig ARCH_SHMOBILE
20462306a36Sopenharmony_ci	bool
20562306a36Sopenharmony_ci	select ARCH_SUSPEND_POSSIBLE
20662306a36Sopenharmony_ci	select PM
20762306a36Sopenharmony_ci
20862306a36Sopenharmony_ciconfig CPU_HAS_PMU
20962306a36Sopenharmony_ci       depends on CPU_SH4 || CPU_SH4A
21062306a36Sopenharmony_ci       default y
21162306a36Sopenharmony_ci       bool
21262306a36Sopenharmony_ci
21362306a36Sopenharmony_cichoice
21462306a36Sopenharmony_ci	prompt "Processor sub-type selection"
21562306a36Sopenharmony_ci
21662306a36Sopenharmony_ci#
21762306a36Sopenharmony_ci# Processor subtypes
21862306a36Sopenharmony_ci#
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ci# SH-2 Processor Support
22162306a36Sopenharmony_ci
22262306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7619
22362306a36Sopenharmony_ci	bool "Support SH7619 processor"
22462306a36Sopenharmony_ci	select CPU_SH2
22562306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
22662306a36Sopenharmony_ci
22762306a36Sopenharmony_ciconfig CPU_SUBTYPE_J2
22862306a36Sopenharmony_ci	bool "Support J2 processor"
22962306a36Sopenharmony_ci	select CPU_J2
23062306a36Sopenharmony_ci	select SYS_SUPPORTS_SMP
23162306a36Sopenharmony_ci	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
23262306a36Sopenharmony_ci
23362306a36Sopenharmony_ci# SH-2A Processor Support
23462306a36Sopenharmony_ci
23562306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7201
23662306a36Sopenharmony_ci	bool "Support SH7201 processor"
23762306a36Sopenharmony_ci	select CPU_SH2A
23862306a36Sopenharmony_ci	select CPU_HAS_FPU
23962306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_MTU2
24062306a36Sopenharmony_ci 
24162306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7203
24262306a36Sopenharmony_ci	bool "Support SH7203 processor"
24362306a36Sopenharmony_ci	select CPU_SH2A
24462306a36Sopenharmony_ci	select CPU_HAS_FPU
24562306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
24662306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_MTU2
24762306a36Sopenharmony_ci	select PINCTRL
24862306a36Sopenharmony_ci
24962306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7206
25062306a36Sopenharmony_ci	bool "Support SH7206 processor"
25162306a36Sopenharmony_ci	select CPU_SH2A
25262306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
25362306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_MTU2
25462306a36Sopenharmony_ci
25562306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7263
25662306a36Sopenharmony_ci	bool "Support SH7263 processor"
25762306a36Sopenharmony_ci	select CPU_SH2A
25862306a36Sopenharmony_ci	select CPU_HAS_FPU
25962306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
26062306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_MTU2
26162306a36Sopenharmony_ci
26262306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7264
26362306a36Sopenharmony_ci	bool "Support SH7264 processor"
26462306a36Sopenharmony_ci	select CPU_SH2A
26562306a36Sopenharmony_ci	select CPU_HAS_FPU
26662306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
26762306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_MTU2
26862306a36Sopenharmony_ci	select PINCTRL
26962306a36Sopenharmony_ci
27062306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7269
27162306a36Sopenharmony_ci	bool "Support SH7269 processor"
27262306a36Sopenharmony_ci	select CPU_SH2A
27362306a36Sopenharmony_ci	select CPU_HAS_FPU
27462306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
27562306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_MTU2
27662306a36Sopenharmony_ci	select PINCTRL
27762306a36Sopenharmony_ci
27862306a36Sopenharmony_ciconfig CPU_SUBTYPE_MXG
27962306a36Sopenharmony_ci	bool "Support MX-G processor"
28062306a36Sopenharmony_ci	select CPU_SH2A
28162306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_MTU2
28262306a36Sopenharmony_ci	help
28362306a36Sopenharmony_ci	  Select MX-G if running on an R8A03022BG part.
28462306a36Sopenharmony_ci
28562306a36Sopenharmony_ci# SH-3 Processor Support
28662306a36Sopenharmony_ci
28762306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7705
28862306a36Sopenharmony_ci	bool "Support SH7705 processor"
28962306a36Sopenharmony_ci	select CPU_SH3
29062306a36Sopenharmony_ci
29162306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7706
29262306a36Sopenharmony_ci	bool "Support SH7706 processor"
29362306a36Sopenharmony_ci	select CPU_SH3
29462306a36Sopenharmony_ci	help
29562306a36Sopenharmony_ci	  Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
29662306a36Sopenharmony_ci
29762306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7707
29862306a36Sopenharmony_ci	bool "Support SH7707 processor"
29962306a36Sopenharmony_ci	select CPU_SH3
30062306a36Sopenharmony_ci	help
30162306a36Sopenharmony_ci	  Select SH7707 if you have a  60 Mhz SH-3 HD6417707 CPU.
30262306a36Sopenharmony_ci
30362306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7708
30462306a36Sopenharmony_ci	bool "Support SH7708 processor"
30562306a36Sopenharmony_ci	select CPU_SH3
30662306a36Sopenharmony_ci	help
30762306a36Sopenharmony_ci	  Select SH7708 if you have a  60 Mhz SH-3 HD6417708S or
30862306a36Sopenharmony_ci	  if you have a 100 Mhz SH-3 HD6417708R CPU.
30962306a36Sopenharmony_ci
31062306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7709
31162306a36Sopenharmony_ci	bool "Support SH7709 processor"
31262306a36Sopenharmony_ci	select CPU_SH3
31362306a36Sopenharmony_ci	help
31462306a36Sopenharmony_ci	  Select SH7709 if you have a  80 Mhz SH-3 HD6417709 CPU.
31562306a36Sopenharmony_ci
31662306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7710
31762306a36Sopenharmony_ci	bool "Support SH7710 processor"
31862306a36Sopenharmony_ci	select CPU_SH3
31962306a36Sopenharmony_ci	select CPU_HAS_DSP
32062306a36Sopenharmony_ci	help
32162306a36Sopenharmony_ci	  Select SH7710 if you have a SH3-DSP SH7710 CPU.
32262306a36Sopenharmony_ci
32362306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7712
32462306a36Sopenharmony_ci	bool "Support SH7712 processor"
32562306a36Sopenharmony_ci	select CPU_SH3
32662306a36Sopenharmony_ci	select CPU_HAS_DSP
32762306a36Sopenharmony_ci	help
32862306a36Sopenharmony_ci	  Select SH7712 if you have a SH3-DSP SH7712 CPU.
32962306a36Sopenharmony_ci
33062306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7720
33162306a36Sopenharmony_ci	bool "Support SH7720 processor"
33262306a36Sopenharmony_ci	select CPU_SH3
33362306a36Sopenharmony_ci	select CPU_HAS_DSP
33462306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
33562306a36Sopenharmony_ci	select USB_OHCI_SH if USB_OHCI_HCD
33662306a36Sopenharmony_ci	select PINCTRL
33762306a36Sopenharmony_ci	help
33862306a36Sopenharmony_ci	  Select SH7720 if you have a SH3-DSP SH7720 CPU.
33962306a36Sopenharmony_ci
34062306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7721
34162306a36Sopenharmony_ci	bool "Support SH7721 processor"
34262306a36Sopenharmony_ci	select CPU_SH3
34362306a36Sopenharmony_ci	select CPU_HAS_DSP
34462306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
34562306a36Sopenharmony_ci	select USB_OHCI_SH if USB_OHCI_HCD
34662306a36Sopenharmony_ci	help
34762306a36Sopenharmony_ci	  Select SH7721 if you have a SH3-DSP SH7721 CPU.
34862306a36Sopenharmony_ci
34962306a36Sopenharmony_ci# SH-4 Processor Support
35062306a36Sopenharmony_ci
35162306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7750
35262306a36Sopenharmony_ci	bool "Support SH7750 processor"
35362306a36Sopenharmony_ci	select CPU_SH4
35462306a36Sopenharmony_ci	help
35562306a36Sopenharmony_ci	  Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
35662306a36Sopenharmony_ci
35762306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7091
35862306a36Sopenharmony_ci	bool "Support SH7091 processor"
35962306a36Sopenharmony_ci	select CPU_SH4
36062306a36Sopenharmony_ci	help
36162306a36Sopenharmony_ci	  Select SH7091 if you have an SH-4 based Sega device (such as
36262306a36Sopenharmony_ci	  the Dreamcast, Naomi, and Naomi 2).
36362306a36Sopenharmony_ci
36462306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7750R
36562306a36Sopenharmony_ci	bool "Support SH7750R processor"
36662306a36Sopenharmony_ci	select CPU_SH4
36762306a36Sopenharmony_ci
36862306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7750S
36962306a36Sopenharmony_ci	bool "Support SH7750S processor"
37062306a36Sopenharmony_ci	select CPU_SH4
37162306a36Sopenharmony_ci
37262306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7751
37362306a36Sopenharmony_ci	bool "Support SH7751 processor"
37462306a36Sopenharmony_ci	select CPU_SH4
37562306a36Sopenharmony_ci	help
37662306a36Sopenharmony_ci	  Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
37762306a36Sopenharmony_ci	  or if you have a HD6417751R CPU.
37862306a36Sopenharmony_ci
37962306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7751R
38062306a36Sopenharmony_ci	bool "Support SH7751R processor"
38162306a36Sopenharmony_ci	select CPU_SH4
38262306a36Sopenharmony_ci
38362306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7760
38462306a36Sopenharmony_ci	bool "Support SH7760 processor"
38562306a36Sopenharmony_ci	select CPU_SH4
38662306a36Sopenharmony_ci
38762306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH4_202
38862306a36Sopenharmony_ci	bool "Support SH4-202 processor"
38962306a36Sopenharmony_ci	select CPU_SH4
39062306a36Sopenharmony_ci
39162306a36Sopenharmony_ci# SH-4A Processor Support
39262306a36Sopenharmony_ci
39362306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7723
39462306a36Sopenharmony_ci	bool "Support SH7723 processor"
39562306a36Sopenharmony_ci	select CPU_SH4A
39662306a36Sopenharmony_ci	select CPU_SHX2
39762306a36Sopenharmony_ci	select ARCH_SHMOBILE
39862306a36Sopenharmony_ci	select ARCH_SPARSEMEM_ENABLE
39962306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
40062306a36Sopenharmony_ci	select PINCTRL
40162306a36Sopenharmony_ci	help
40262306a36Sopenharmony_ci	  Select SH7723 if you have an SH-MobileR2 CPU.
40362306a36Sopenharmony_ci
40462306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7724
40562306a36Sopenharmony_ci	bool "Support SH7724 processor"
40662306a36Sopenharmony_ci	select CPU_SH4A
40762306a36Sopenharmony_ci	select CPU_SHX2
40862306a36Sopenharmony_ci	select ARCH_SHMOBILE
40962306a36Sopenharmony_ci	select ARCH_SPARSEMEM_ENABLE
41062306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
41162306a36Sopenharmony_ci	select PINCTRL
41262306a36Sopenharmony_ci	help
41362306a36Sopenharmony_ci	  Select SH7724 if you have an SH-MobileR2R CPU.
41462306a36Sopenharmony_ci
41562306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7734
41662306a36Sopenharmony_ci	bool "Support SH7734 processor"
41762306a36Sopenharmony_ci	select CPU_SH4A
41862306a36Sopenharmony_ci	select CPU_SHX2
41962306a36Sopenharmony_ci	select PINCTRL
42062306a36Sopenharmony_ci	help
42162306a36Sopenharmony_ci	  Select SH7734 if you have a SH4A SH7734 CPU.
42262306a36Sopenharmony_ci
42362306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7757
42462306a36Sopenharmony_ci	bool "Support SH7757 processor"
42562306a36Sopenharmony_ci	select CPU_SH4A
42662306a36Sopenharmony_ci	select CPU_SHX2
42762306a36Sopenharmony_ci	select PINCTRL
42862306a36Sopenharmony_ci	help
42962306a36Sopenharmony_ci	  Select SH7757 if you have a SH4A SH7757 CPU.
43062306a36Sopenharmony_ci
43162306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7763
43262306a36Sopenharmony_ci	bool "Support SH7763 processor"
43362306a36Sopenharmony_ci	select CPU_SH4A
43462306a36Sopenharmony_ci	select USB_OHCI_SH if USB_OHCI_HCD
43562306a36Sopenharmony_ci	help
43662306a36Sopenharmony_ci	  Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
43762306a36Sopenharmony_ci
43862306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7770
43962306a36Sopenharmony_ci	bool "Support SH7770 processor"
44062306a36Sopenharmony_ci	select CPU_SH4A
44162306a36Sopenharmony_ci
44262306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7780
44362306a36Sopenharmony_ci	bool "Support SH7780 processor"
44462306a36Sopenharmony_ci	select CPU_SH4A
44562306a36Sopenharmony_ci
44662306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7785
44762306a36Sopenharmony_ci	bool "Support SH7785 processor"
44862306a36Sopenharmony_ci	select CPU_SH4A
44962306a36Sopenharmony_ci	select CPU_SHX2
45062306a36Sopenharmony_ci	select ARCH_SPARSEMEM_ENABLE
45162306a36Sopenharmony_ci	select SYS_SUPPORTS_NUMA
45262306a36Sopenharmony_ci	select PINCTRL
45362306a36Sopenharmony_ci
45462306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7786
45562306a36Sopenharmony_ci	bool "Support SH7786 processor"
45662306a36Sopenharmony_ci	select CPU_SH4A
45762306a36Sopenharmony_ci	select CPU_SHX3
45862306a36Sopenharmony_ci	select CPU_HAS_PTEAEX
45962306a36Sopenharmony_ci	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
46062306a36Sopenharmony_ci	select USB_OHCI_SH if USB_OHCI_HCD
46162306a36Sopenharmony_ci	select USB_EHCI_SH if USB_EHCI_HCD
46262306a36Sopenharmony_ci	select PINCTRL
46362306a36Sopenharmony_ci
46462306a36Sopenharmony_ciconfig CPU_SUBTYPE_SHX3
46562306a36Sopenharmony_ci	bool "Support SH-X3 processor"
46662306a36Sopenharmony_ci	select CPU_SH4A
46762306a36Sopenharmony_ci	select CPU_SHX3
46862306a36Sopenharmony_ci	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
46962306a36Sopenharmony_ci	select GPIOLIB
47062306a36Sopenharmony_ci	select PINCTRL
47162306a36Sopenharmony_ci
47262306a36Sopenharmony_ci# SH4AL-DSP Processor Support
47362306a36Sopenharmony_ci
47462306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7343
47562306a36Sopenharmony_ci	bool "Support SH7343 processor"
47662306a36Sopenharmony_ci	select CPU_SH4AL_DSP
47762306a36Sopenharmony_ci	select ARCH_SHMOBILE
47862306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
47962306a36Sopenharmony_ci
48062306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7722
48162306a36Sopenharmony_ci	bool "Support SH7722 processor"
48262306a36Sopenharmony_ci	select CPU_SH4AL_DSP
48362306a36Sopenharmony_ci	select CPU_SHX2
48462306a36Sopenharmony_ci	select ARCH_SHMOBILE
48562306a36Sopenharmony_ci	select ARCH_SPARSEMEM_ENABLE
48662306a36Sopenharmony_ci	select SYS_SUPPORTS_NUMA
48762306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
48862306a36Sopenharmony_ci	select PINCTRL
48962306a36Sopenharmony_ci
49062306a36Sopenharmony_ciconfig CPU_SUBTYPE_SH7366
49162306a36Sopenharmony_ci	bool "Support SH7366 processor"
49262306a36Sopenharmony_ci	select CPU_SH4AL_DSP
49362306a36Sopenharmony_ci	select CPU_SHX2
49462306a36Sopenharmony_ci	select ARCH_SHMOBILE
49562306a36Sopenharmony_ci	select ARCH_SPARSEMEM_ENABLE
49662306a36Sopenharmony_ci	select SYS_SUPPORTS_NUMA
49762306a36Sopenharmony_ci	select SYS_SUPPORTS_SH_CMT
49862306a36Sopenharmony_ci
49962306a36Sopenharmony_ciendchoice
50062306a36Sopenharmony_ci
50162306a36Sopenharmony_cisource "arch/sh/mm/Kconfig"
50262306a36Sopenharmony_ci 
50362306a36Sopenharmony_cisource "arch/sh/Kconfig.cpu"
50462306a36Sopenharmony_ci
50562306a36Sopenharmony_cisource "arch/sh/boards/Kconfig"
50662306a36Sopenharmony_ci
50762306a36Sopenharmony_cimenu "Timer and clock configuration"
50862306a36Sopenharmony_ci
50962306a36Sopenharmony_ciconfig SH_PCLK_FREQ
51062306a36Sopenharmony_ci	int "Peripheral clock frequency (in Hz)"
51162306a36Sopenharmony_ci	depends on SH_CLK_CPG_LEGACY
51262306a36Sopenharmony_ci	default "31250000" if CPU_SUBTYPE_SH7619
51362306a36Sopenharmony_ci	default "33333333" if CPU_SUBTYPE_SH7770 || \
51462306a36Sopenharmony_ci			      CPU_SUBTYPE_SH7760 || \
51562306a36Sopenharmony_ci			      CPU_SUBTYPE_SH7705 || \
51662306a36Sopenharmony_ci			      CPU_SUBTYPE_SH7203 || \
51762306a36Sopenharmony_ci			      CPU_SUBTYPE_SH7206 || \
51862306a36Sopenharmony_ci			      CPU_SUBTYPE_SH7263 || \
51962306a36Sopenharmony_ci			      CPU_SUBTYPE_MXG
52062306a36Sopenharmony_ci	default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
52162306a36Sopenharmony_ci	default "66000000" if CPU_SUBTYPE_SH4_202
52262306a36Sopenharmony_ci	default "50000000"
52362306a36Sopenharmony_ci	help
52462306a36Sopenharmony_ci	  This option is used to specify the peripheral clock frequency.
52562306a36Sopenharmony_ci	  This is necessary for determining the reference clock value on
52662306a36Sopenharmony_ci	  platforms lacking an RTC.
52762306a36Sopenharmony_ci
52862306a36Sopenharmony_ciconfig SH_CLK_CPG
52962306a36Sopenharmony_ci	def_bool y
53062306a36Sopenharmony_ci
53162306a36Sopenharmony_ciconfig SH_CLK_CPG_LEGACY
53262306a36Sopenharmony_ci	depends on SH_CLK_CPG
53362306a36Sopenharmony_ci	def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
53462306a36Sopenharmony_ci		      !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
53562306a36Sopenharmony_ci		      !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
53662306a36Sopenharmony_ci		      !CPU_SUBTYPE_SH7269
53762306a36Sopenharmony_ci
53862306a36Sopenharmony_ciendmenu
53962306a36Sopenharmony_ci
54062306a36Sopenharmony_cimenu "CPU Frequency scaling"
54162306a36Sopenharmony_cisource "drivers/cpufreq/Kconfig"
54262306a36Sopenharmony_ciendmenu
54362306a36Sopenharmony_ci
54462306a36Sopenharmony_cisource "arch/sh/drivers/Kconfig"
54562306a36Sopenharmony_ci
54662306a36Sopenharmony_ciendmenu
54762306a36Sopenharmony_ci
54862306a36Sopenharmony_cimenu "Kernel features"
54962306a36Sopenharmony_ci
55062306a36Sopenharmony_cisource "kernel/Kconfig.hz"
55162306a36Sopenharmony_ci
55262306a36Sopenharmony_ciconfig ARCH_SUPPORTS_KEXEC
55362306a36Sopenharmony_ci	def_bool MMU
55462306a36Sopenharmony_ci
55562306a36Sopenharmony_ciconfig ARCH_SUPPORTS_CRASH_DUMP
55662306a36Sopenharmony_ci	def_bool BROKEN_ON_SMP
55762306a36Sopenharmony_ci
55862306a36Sopenharmony_ciconfig ARCH_SUPPORTS_KEXEC_JUMP
55962306a36Sopenharmony_ci	def_bool y
56062306a36Sopenharmony_ci
56162306a36Sopenharmony_ciconfig PHYSICAL_START
56262306a36Sopenharmony_ci	hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
56362306a36Sopenharmony_ci	default MEMORY_START
56462306a36Sopenharmony_ci	help
56562306a36Sopenharmony_ci	  This gives the physical address where the kernel is loaded
56662306a36Sopenharmony_ci	  and is ordinarily the same as MEMORY_START.
56762306a36Sopenharmony_ci
56862306a36Sopenharmony_ci	  Different values are primarily used in the case of kexec on panic
56962306a36Sopenharmony_ci	  where the fail safe kernel needs to run at a different address
57062306a36Sopenharmony_ci	  than the panic-ed kernel.
57162306a36Sopenharmony_ci
57262306a36Sopenharmony_ciconfig SMP
57362306a36Sopenharmony_ci	bool "Symmetric multi-processing support"
57462306a36Sopenharmony_ci	depends on SYS_SUPPORTS_SMP
57562306a36Sopenharmony_ci	help
57662306a36Sopenharmony_ci	  This enables support for systems with more than one CPU. If you have
57762306a36Sopenharmony_ci	  a system with only one CPU, say N. If you have a system with more
57862306a36Sopenharmony_ci	  than one CPU, say Y.
57962306a36Sopenharmony_ci
58062306a36Sopenharmony_ci	  If you say N here, the kernel will run on uni- and multiprocessor
58162306a36Sopenharmony_ci	  machines, but will use only one CPU of a multiprocessor machine. If
58262306a36Sopenharmony_ci	  you say Y here, the kernel will run on many, but not all,
58362306a36Sopenharmony_ci	  uniprocessor machines. On a uniprocessor machine, the kernel
58462306a36Sopenharmony_ci	  will run faster if you say N here.
58562306a36Sopenharmony_ci
58662306a36Sopenharmony_ci	  People using multiprocessor machines who say Y here should also say
58762306a36Sopenharmony_ci	  Y to "Enhanced Real Time Clock Support", below.
58862306a36Sopenharmony_ci
58962306a36Sopenharmony_ci	  See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
59062306a36Sopenharmony_ci	  available at <https://www.tldp.org/docs.html#howto>.
59162306a36Sopenharmony_ci
59262306a36Sopenharmony_ci	  If you don't know what to do here, say N.
59362306a36Sopenharmony_ci
59462306a36Sopenharmony_ciconfig NR_CPUS
59562306a36Sopenharmony_ci	int "Maximum number of CPUs (2-32)"
59662306a36Sopenharmony_ci	range 2 32
59762306a36Sopenharmony_ci	depends on SMP
59862306a36Sopenharmony_ci	default "4" if CPU_SUBTYPE_SHX3
59962306a36Sopenharmony_ci	default "2"
60062306a36Sopenharmony_ci	help
60162306a36Sopenharmony_ci	  This allows you to specify the maximum number of CPUs which this
60262306a36Sopenharmony_ci	  kernel will support.  The maximum supported value is 32 and the
60362306a36Sopenharmony_ci	  minimum value which makes sense is 2.
60462306a36Sopenharmony_ci
60562306a36Sopenharmony_ci	  This is purely to save memory - each supported CPU adds
60662306a36Sopenharmony_ci	  approximately eight kilobytes to the kernel image.
60762306a36Sopenharmony_ci
60862306a36Sopenharmony_ciconfig HOTPLUG_CPU
60962306a36Sopenharmony_ci	bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
61062306a36Sopenharmony_ci	depends on SMP
61162306a36Sopenharmony_ci	help
61262306a36Sopenharmony_ci	  Say Y here to experiment with turning CPUs off and on.  CPUs
61362306a36Sopenharmony_ci	  can be controlled through /sys/devices/system/cpu.
61462306a36Sopenharmony_ci
61562306a36Sopenharmony_ciconfig GUSA
61662306a36Sopenharmony_ci	def_bool y
61762306a36Sopenharmony_ci	depends on !SMP
61862306a36Sopenharmony_ci	help
61962306a36Sopenharmony_ci	  This enables support for gUSA (general UserSpace Atomicity).
62062306a36Sopenharmony_ci	  This is the default implementation for both UP and non-ll/sc
62162306a36Sopenharmony_ci	  CPUs, and is used by the libc, amongst others.
62262306a36Sopenharmony_ci
62362306a36Sopenharmony_ci	  For additional information, design information can be found 
62462306a36Sopenharmony_ci	  in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
62562306a36Sopenharmony_ci
62662306a36Sopenharmony_ci	  This should only be disabled for special cases where alternate
62762306a36Sopenharmony_ci	  atomicity implementations exist.
62862306a36Sopenharmony_ci
62962306a36Sopenharmony_ciconfig GUSA_RB
63062306a36Sopenharmony_ci	bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
63162306a36Sopenharmony_ci	depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
63262306a36Sopenharmony_ci	help
63362306a36Sopenharmony_ci	  Enabling this option will allow the kernel to implement some
63462306a36Sopenharmony_ci	  atomic operations using a software implementation of load-locked/
63562306a36Sopenharmony_ci	  store-conditional (LLSC). On machines which do not have hardware
63662306a36Sopenharmony_ci	  LLSC, this should be more efficient than the other alternative of
63762306a36Sopenharmony_ci	  disabling interrupts around the atomic sequence.
63862306a36Sopenharmony_ci
63962306a36Sopenharmony_ciconfig HW_PERF_EVENTS
64062306a36Sopenharmony_ci	bool "Enable hardware performance counter support for perf events"
64162306a36Sopenharmony_ci	depends on PERF_EVENTS && CPU_HAS_PMU
64262306a36Sopenharmony_ci	default y
64362306a36Sopenharmony_ci	help
64462306a36Sopenharmony_ci	  Enable hardware performance counter support for perf events. If
64562306a36Sopenharmony_ci	  disabled, perf events will use software events only.
64662306a36Sopenharmony_ci
64762306a36Sopenharmony_cisource "drivers/sh/Kconfig"
64862306a36Sopenharmony_ci
64962306a36Sopenharmony_ciendmenu
65062306a36Sopenharmony_ci
65162306a36Sopenharmony_cimenu "Boot options"
65262306a36Sopenharmony_ci
65362306a36Sopenharmony_ciconfig USE_BUILTIN_DTB
65462306a36Sopenharmony_ci	bool "Use builtin DTB"
65562306a36Sopenharmony_ci	default n
65662306a36Sopenharmony_ci	depends on SH_DEVICE_TREE
65762306a36Sopenharmony_ci	help
65862306a36Sopenharmony_ci	  Link a device tree blob for particular hardware into the kernel,
65962306a36Sopenharmony_ci	  suppressing use of the DTB pointer provided by the bootloader.
66062306a36Sopenharmony_ci	  This option should only be used with legacy bootloaders that are
66162306a36Sopenharmony_ci	  not capable of providing a DTB to the kernel, or for experimental
66262306a36Sopenharmony_ci	  hardware without stable device tree bindings.
66362306a36Sopenharmony_ci
66462306a36Sopenharmony_ciconfig BUILTIN_DTB_SOURCE
66562306a36Sopenharmony_ci	string "Source file for builtin DTB"
66662306a36Sopenharmony_ci	default ""
66762306a36Sopenharmony_ci	depends on USE_BUILTIN_DTB
66862306a36Sopenharmony_ci	help
66962306a36Sopenharmony_ci	  Base name (without suffix, relative to arch/sh/boot/dts) for the
67062306a36Sopenharmony_ci	  a DTS file that will be used to produce the DTB linked into the
67162306a36Sopenharmony_ci	  kernel.
67262306a36Sopenharmony_ci
67362306a36Sopenharmony_ciconfig ZERO_PAGE_OFFSET
67462306a36Sopenharmony_ci	hex
67562306a36Sopenharmony_ci	default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
67662306a36Sopenharmony_ci				SH_7751_SOLUTION_ENGINE
67762306a36Sopenharmony_ci	default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
67862306a36Sopenharmony_ci	default "0x00002000" if PAGE_SIZE_8KB
67962306a36Sopenharmony_ci	default "0x00001000"
68062306a36Sopenharmony_ci	help
68162306a36Sopenharmony_ci	  This sets the default offset of zero page.
68262306a36Sopenharmony_ci
68362306a36Sopenharmony_ciconfig BOOT_LINK_OFFSET
68462306a36Sopenharmony_ci	hex
68562306a36Sopenharmony_ci	default "0x00210000" if SH_SHMIN
68662306a36Sopenharmony_ci	default "0x00810000" if SH_7780_SOLUTION_ENGINE
68762306a36Sopenharmony_ci	default "0x009e0000" if SH_TITAN
68862306a36Sopenharmony_ci	default "0x01800000" if SH_SDK7780
68962306a36Sopenharmony_ci	default "0x02000000" if SH_EDOSK7760
69062306a36Sopenharmony_ci	default "0x00800000"
69162306a36Sopenharmony_ci	help
69262306a36Sopenharmony_ci	  This option allows you to set the link address offset of the zImage.
69362306a36Sopenharmony_ci	  This can be useful if you are on a board which has a small amount of
69462306a36Sopenharmony_ci	  memory.
69562306a36Sopenharmony_ci
69662306a36Sopenharmony_ciconfig ENTRY_OFFSET
69762306a36Sopenharmony_ci	hex
69862306a36Sopenharmony_ci	default "0x00001000" if PAGE_SIZE_4KB
69962306a36Sopenharmony_ci	default "0x00002000" if PAGE_SIZE_8KB
70062306a36Sopenharmony_ci	default "0x00004000" if PAGE_SIZE_16KB
70162306a36Sopenharmony_ci	default "0x00010000" if PAGE_SIZE_64KB
70262306a36Sopenharmony_ci	default "0x00000000"
70362306a36Sopenharmony_ci
70462306a36Sopenharmony_ciconfig ROMIMAGE_MMCIF
70562306a36Sopenharmony_ci	bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
70662306a36Sopenharmony_ci	depends on CPU_SUBTYPE_SH7724
70762306a36Sopenharmony_ci	help
70862306a36Sopenharmony_ci	  Say Y here to include experimental MMCIF loading code in
70962306a36Sopenharmony_ci	  romImage. With this enabled it is possible to write the romImage
71062306a36Sopenharmony_ci	  kernel image to an MMC card and boot the kernel straight from
71162306a36Sopenharmony_ci	  the reset vector. At reset the processor Mask ROM will load the
71262306a36Sopenharmony_ci	  first part of the romImage which in turn loads the rest the kernel
71362306a36Sopenharmony_ci	  image to RAM using the MMCIF hardware block.
71462306a36Sopenharmony_ci
71562306a36Sopenharmony_cichoice
71662306a36Sopenharmony_ci	prompt "Kernel command line"
71762306a36Sopenharmony_ci	optional
71862306a36Sopenharmony_ci	default CMDLINE_OVERWRITE
71962306a36Sopenharmony_ci	help
72062306a36Sopenharmony_ci	  Setting this option allows the kernel command line arguments
72162306a36Sopenharmony_ci	  to be set.
72262306a36Sopenharmony_ci
72362306a36Sopenharmony_ciconfig CMDLINE_OVERWRITE
72462306a36Sopenharmony_ci	bool "Overwrite bootloader kernel arguments"
72562306a36Sopenharmony_ci	help
72662306a36Sopenharmony_ci	  Given string will overwrite any arguments passed in by
72762306a36Sopenharmony_ci	  a bootloader.
72862306a36Sopenharmony_ci
72962306a36Sopenharmony_ciconfig CMDLINE_EXTEND
73062306a36Sopenharmony_ci	bool "Extend bootloader kernel arguments"
73162306a36Sopenharmony_ci	help
73262306a36Sopenharmony_ci	  Given string will be concatenated with arguments passed in
73362306a36Sopenharmony_ci	  by a bootloader.
73462306a36Sopenharmony_ci
73562306a36Sopenharmony_ciendchoice
73662306a36Sopenharmony_ci
73762306a36Sopenharmony_ciconfig CMDLINE
73862306a36Sopenharmony_ci	string "Kernel command line arguments string"
73962306a36Sopenharmony_ci	depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
74062306a36Sopenharmony_ci	default "console=ttySC1,115200"
74162306a36Sopenharmony_ci
74262306a36Sopenharmony_ciendmenu
74362306a36Sopenharmony_ci
74462306a36Sopenharmony_cimenu "Bus options"
74562306a36Sopenharmony_ci
74662306a36Sopenharmony_ciconfig SUPERHYWAY
74762306a36Sopenharmony_ci	tristate "SuperHyway Bus support"
74862306a36Sopenharmony_ci	depends on CPU_SUBTYPE_SH4_202
74962306a36Sopenharmony_ci
75062306a36Sopenharmony_ciconfig MAPLE
75162306a36Sopenharmony_ci	bool "Maple Bus support"
75262306a36Sopenharmony_ci	depends on SH_DREAMCAST
75362306a36Sopenharmony_ci	help
75462306a36Sopenharmony_ci	 The Maple Bus is SEGA's serial communication bus for peripherals
75562306a36Sopenharmony_ci	 on the Dreamcast. Without this bus support you won't be able to
75662306a36Sopenharmony_ci	 get your Dreamcast keyboard etc to work, so most users
75762306a36Sopenharmony_ci	 probably want to say 'Y' here, unless you are only using the
75862306a36Sopenharmony_ci	 Dreamcast with a serial line terminal or a remote network
75962306a36Sopenharmony_ci	 connection.
76062306a36Sopenharmony_ci
76162306a36Sopenharmony_ciendmenu
76262306a36Sopenharmony_ci
76362306a36Sopenharmony_cimenu "Power management options (EXPERIMENTAL)"
76462306a36Sopenharmony_ci
76562306a36Sopenharmony_cisource "kernel/power/Kconfig"
76662306a36Sopenharmony_ci
76762306a36Sopenharmony_cisource "drivers/cpuidle/Kconfig"
76862306a36Sopenharmony_ci
76962306a36Sopenharmony_ciendmenu
770