^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) config SUPERH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) select ARCH_32BIT_OFF_T
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) select ARCH_HAVE_CUSTOM_GPIO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) select ARCH_HAS_BINFMT_FLAT if !MMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) select ARCH_HAS_GIGANTIC_PAGE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) select ARCH_HAS_GCOV_PROFILE_ALL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) select ARCH_HAS_PTE_SPECIAL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) select ARCH_HIBERNATION_POSSIBLE if MMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) select ARCH_MIGHT_HAVE_PC_PARPORT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) select ARCH_WANT_IPC_PARSE_VERSION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) select CLKDEV_LOOKUP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) select CPU_NO_EFFICIENT_FFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) select DMA_DECLARE_COHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) select GENERIC_ATOMIC64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) select GENERIC_CLOCKEVENTS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) select GENERIC_IDLE_POLL_SETUP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) select GENERIC_IRQ_SHOW
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) select GENERIC_PCI_IOMAP if PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) select GENERIC_SCHED_CLOCK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) select GENERIC_STRNCPY_FROM_USER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) select GENERIC_STRNLEN_USER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) select GENERIC_SMP_IDLE_THREAD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) select GUP_GET_PTE_LOW_HIGH if X2TLB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) select HAVE_ARCH_AUDITSYSCALL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) select HAVE_ARCH_KGDB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) select HAVE_ARCH_SECCOMP_FILTER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) select HAVE_ARCH_TRACEHOOK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) select HAVE_DEBUG_BUGVERBOSE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) select HAVE_DEBUG_KMEMLEAK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) select HAVE_DYNAMIC_FTRACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) select HAVE_FAST_GUP if MMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) select HAVE_FUNCTION_GRAPH_TRACER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) select HAVE_FUNCTION_TRACER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) select HAVE_FUTEX_CMPXCHG if FUTEX
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) select HAVE_FTRACE_MCOUNT_RECORD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) select HAVE_HW_BREAKPOINT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) select HAVE_IDE if HAS_IOPORT_MAP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) select HAVE_IOREMAP_PROT if MMU && !X2TLB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) select HAVE_KERNEL_BZIP2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) select HAVE_KERNEL_GZIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) select HAVE_KERNEL_LZMA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) select HAVE_KERNEL_LZO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) select HAVE_KERNEL_XZ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) select HAVE_KPROBES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) select HAVE_KRETPROBES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) select HAVE_MIXED_BREAKPOINTS_REGS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) select HAVE_NMI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) select HAVE_OPROFILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) select HAVE_PATA_PLATFORM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) select HAVE_PERF_EVENTS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) select HAVE_REGS_AND_STACK_ACCESS_API
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) select HAVE_UID16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) select HAVE_STACKPROTECTOR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) select HAVE_SYSCALL_TRACEPOINTS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) select IRQ_FORCED_THREADING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) select MAY_HAVE_SPARSE_IRQ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) select MODULES_USE_ELF_RELA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) select NEED_SG_DMA_LENGTH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) select NO_DMA if !MMU && !DMA_COHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) select NO_GENERIC_PCI_IOPORT_MAP if PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) select OLD_SIGACTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) select OLD_SIGSUSPEND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) select PCI_DOMAINS if PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) select PERF_EVENTS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) select PERF_USE_VMALLOC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) select RTC_LIB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) select SET_FS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) select SPARSE_IRQ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) The SuperH is a RISC processor targeted for use in embedded systems
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) and consumer electronics; it was also used in the Sega Dreamcast
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) gaming console. The SuperH port has a home page at
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) <http://www.linux-sh.org/>.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) config GENERIC_BUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) depends on BUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) config GENERIC_HWEIGHT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) config GENERIC_CALIBRATE_DELAY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) config GENERIC_LOCKBREAK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) depends on SMP && PREEMPTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) config ARCH_SUSPEND_POSSIBLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) def_bool n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) config ARCH_HIBERNATION_POSSIBLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) def_bool n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) config SYS_SUPPORTS_APM_EMULATION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) select ARCH_SUSPEND_POSSIBLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) config SYS_SUPPORTS_HUGETLBFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) config SYS_SUPPORTS_SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) config SYS_SUPPORTS_NUMA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) config STACKTRACE_SUPPORT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) config LOCKDEP_SUPPORT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) config ARCH_HAS_ILOG2_U32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) def_bool n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) config ARCH_HAS_ILOG2_U64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) def_bool n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) config NO_IOPORT_MAP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) def_bool !PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) depends on !SH_SH4202_MICRODEV && !SH_SHMIN && !SH_HP6XX && \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) !SH_SOLUTION_ENGINE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) config IO_TRAPPED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) config SWAP_IO_SPACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) config DMA_COHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) config DMA_NONCOHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) def_bool !NO_DMA && !DMA_COHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) select ARCH_HAS_DMA_PREP_COHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) select ARCH_HAS_SYNC_DMA_FOR_DEVICE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) select DMA_DIRECT_REMAP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) config PGTABLE_LEVELS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) default 3 if X2TLB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) default 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) menu "System type"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) # Processor families
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) config CPU_SH2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) select SH_INTC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) config CPU_SH2A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) select CPU_SH2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) select UNCACHED_MAPPING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) config CPU_J2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) select CPU_SH2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) select OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) select OF_EARLY_FLATTREE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) config CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) select CPU_HAS_INTEVT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) select CPU_HAS_SR_RB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) select SH_INTC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) select SYS_SUPPORTS_SH_TMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) config CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) select CPU_HAS_INTEVT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) select CPU_HAS_SR_RB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) select CPU_HAS_FPU if !CPU_SH4AL_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) select SH_INTC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) select SYS_SUPPORTS_SH_TMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) select SYS_SUPPORTS_HUGETLBFS if MMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) config CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) config CPU_SH4AL_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) select CPU_HAS_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) config CPU_SHX2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) config CPU_SHX3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) select DMA_COHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) select SYS_SUPPORTS_SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) select SYS_SUPPORTS_NUMA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) config ARCH_SHMOBILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) select ARCH_SUSPEND_POSSIBLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) select PM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) config CPU_HAS_PMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) depends on CPU_SH4 || CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) choice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) prompt "Processor sub-type selection"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) # Processor subtypes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) # SH-2 Processor Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) config CPU_SUBTYPE_SH7619
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) bool "Support SH7619 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) select CPU_SH2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) config CPU_SUBTYPE_J2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) bool "Support J2 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) select CPU_J2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) select SYS_SUPPORTS_SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) select GENERIC_CLOCKEVENTS_BROADCAST if SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) # SH-2A Processor Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) config CPU_SUBTYPE_SH7201
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) bool "Support SH7201 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) select CPU_SH2A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) select CPU_HAS_FPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) select SYS_SUPPORTS_SH_MTU2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) config CPU_SUBTYPE_SH7203
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) bool "Support SH7203 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) select CPU_SH2A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) select CPU_HAS_FPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) select SYS_SUPPORTS_SH_MTU2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) config CPU_SUBTYPE_SH7206
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) bool "Support SH7206 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) select CPU_SH2A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) select SYS_SUPPORTS_SH_MTU2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) config CPU_SUBTYPE_SH7263
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) bool "Support SH7263 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) select CPU_SH2A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) select CPU_HAS_FPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) select SYS_SUPPORTS_SH_MTU2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) config CPU_SUBTYPE_SH7264
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) bool "Support SH7264 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) select CPU_SH2A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) select CPU_HAS_FPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) select SYS_SUPPORTS_SH_MTU2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) config CPU_SUBTYPE_SH7269
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) bool "Support SH7269 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) select CPU_SH2A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) select CPU_HAS_FPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) select SYS_SUPPORTS_SH_MTU2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) config CPU_SUBTYPE_MXG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) bool "Support MX-G processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) select CPU_SH2A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) select SYS_SUPPORTS_SH_MTU2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) Select MX-G if running on an R8A03022BG part.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) # SH-3 Processor Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) config CPU_SUBTYPE_SH7705
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) bool "Support SH7705 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) config CPU_SUBTYPE_SH7706
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) bool "Support SH7706 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) config CPU_SUBTYPE_SH7707
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299) bool "Support SH7707 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302) Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) config CPU_SUBTYPE_SH7708
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305) bool "Support SH7708 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309) if you have a 100 Mhz SH-3 HD6417708R CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) config CPU_SUBTYPE_SH7709
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) bool "Support SH7709 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) config CPU_SUBTYPE_SH7710
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318) bool "Support SH7710 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) select CPU_HAS_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) Select SH7710 if you have a SH3-DSP SH7710 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) config CPU_SUBTYPE_SH7712
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) bool "Support SH7712 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) select CPU_HAS_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) Select SH7712 if you have a SH3-DSP SH7712 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) config CPU_SUBTYPE_SH7720
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) bool "Support SH7720 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) select CPU_HAS_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336) select USB_OHCI_SH if USB_OHCI_HCD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) Select SH7720 if you have a SH3-DSP SH7720 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) config CPU_SUBTYPE_SH7721
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) bool "Support SH7721 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) select CPU_SH3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) select CPU_HAS_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346) select USB_OHCI_SH if USB_OHCI_HCD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348) Select SH7721 if you have a SH3-DSP SH7721 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) # SH-4 Processor Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352) config CPU_SUBTYPE_SH7750
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) bool "Support SH7750 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) config CPU_SUBTYPE_SH7091
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) bool "Support SH7091 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362) Select SH7091 if you have an SH-4 based Sega device (such as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) the Dreamcast, Naomi, and Naomi 2).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365) config CPU_SUBTYPE_SH7750R
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) bool "Support SH7750R processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) config CPU_SUBTYPE_SH7750S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) bool "Support SH7750S processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) config CPU_SUBTYPE_SH7751
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) bool "Support SH7751 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) or if you have a HD6417751R CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380) config CPU_SUBTYPE_SH7751R
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) bool "Support SH7751R processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) config CPU_SUBTYPE_SH7760
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385) bool "Support SH7760 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) config CPU_SUBTYPE_SH4_202
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389) bool "Support SH4-202 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) select CPU_SH4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392) # SH-4A Processor Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394) config CPU_SUBTYPE_SH7723
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) bool "Support SH7723 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) select CPU_SHX2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398) select ARCH_SHMOBILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 399) select ARCH_SPARSEMEM_ENABLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 400) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 401) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 402) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 403) Select SH7723 if you have an SH-MobileR2 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 404)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 405) config CPU_SUBTYPE_SH7724
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 406) bool "Support SH7724 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 407) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 408) select CPU_SHX2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 409) select ARCH_SHMOBILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 410) select ARCH_SPARSEMEM_ENABLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 411) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 412) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 413) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 414) Select SH7724 if you have an SH-MobileR2R CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 415)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 416) config CPU_SUBTYPE_SH7734
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 417) bool "Support SH7734 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 418) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 419) select CPU_SHX2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 420) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 421) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 422) Select SH7734 if you have a SH4A SH7734 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 423)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 424) config CPU_SUBTYPE_SH7757
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 425) bool "Support SH7757 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 426) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 427) select CPU_SHX2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 428) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 429) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 430) Select SH7757 if you have a SH4A SH7757 CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 431)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 432) config CPU_SUBTYPE_SH7763
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 433) bool "Support SH7763 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 434) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 435) select USB_OHCI_SH if USB_OHCI_HCD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 436) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 437) Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 438)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 439) config CPU_SUBTYPE_SH7770
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 440) bool "Support SH7770 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 441) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 442)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 443) config CPU_SUBTYPE_SH7780
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 444) bool "Support SH7780 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 445) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 446)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 447) config CPU_SUBTYPE_SH7785
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 448) bool "Support SH7785 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 449) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 450) select CPU_SHX2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 451) select ARCH_SPARSEMEM_ENABLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 452) select SYS_SUPPORTS_NUMA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 453) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 454)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 455) config CPU_SUBTYPE_SH7786
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 456) bool "Support SH7786 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 457) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 458) select CPU_SHX3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 459) select CPU_HAS_PTEAEX
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 460) select GENERIC_CLOCKEVENTS_BROADCAST if SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 461) select USB_OHCI_SH if USB_OHCI_HCD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 462) select USB_EHCI_SH if USB_EHCI_HCD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 463) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 464)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 465) config CPU_SUBTYPE_SHX3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 466) bool "Support SH-X3 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 467) select CPU_SH4A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 468) select CPU_SHX3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 469) select GENERIC_CLOCKEVENTS_BROADCAST if SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 470) select GPIOLIB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 471) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 472)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 473) # SH4AL-DSP Processor Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 474)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 475) config CPU_SUBTYPE_SH7343
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 476) bool "Support SH7343 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 477) select CPU_SH4AL_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 478) select ARCH_SHMOBILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 479) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 480)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 481) config CPU_SUBTYPE_SH7722
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 482) bool "Support SH7722 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 483) select CPU_SH4AL_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 484) select CPU_SHX2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 485) select ARCH_SHMOBILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 486) select ARCH_SPARSEMEM_ENABLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 487) select SYS_SUPPORTS_NUMA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 488) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 489) select PINCTRL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 490)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 491) config CPU_SUBTYPE_SH7366
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 492) bool "Support SH7366 processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 493) select CPU_SH4AL_DSP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 494) select CPU_SHX2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 495) select ARCH_SHMOBILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 496) select ARCH_SPARSEMEM_ENABLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 497) select SYS_SUPPORTS_NUMA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 498) select SYS_SUPPORTS_SH_CMT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 499)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 500) endchoice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 501)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 502) source "arch/sh/mm/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 503)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 504) source "arch/sh/Kconfig.cpu"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 505)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 506) source "arch/sh/boards/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 507)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 508) menu "Timer and clock configuration"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 509)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 510) config SH_PCLK_FREQ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 511) int "Peripheral clock frequency (in Hz)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 512) depends on SH_CLK_CPG_LEGACY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 513) default "31250000" if CPU_SUBTYPE_SH7619
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 514) default "33333333" if CPU_SUBTYPE_SH7770 || \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 515) CPU_SUBTYPE_SH7760 || \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 516) CPU_SUBTYPE_SH7705 || \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 517) CPU_SUBTYPE_SH7203 || \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 518) CPU_SUBTYPE_SH7206 || \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 519) CPU_SUBTYPE_SH7263 || \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 520) CPU_SUBTYPE_MXG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 521) default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 522) default "66000000" if CPU_SUBTYPE_SH4_202
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 523) default "50000000"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 524) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 525) This option is used to specify the peripheral clock frequency.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 526) This is necessary for determining the reference clock value on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 527) platforms lacking an RTC.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 528)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 529) config SH_CLK_CPG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 530) def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 531)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 532) config SH_CLK_CPG_LEGACY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 533) depends on SH_CLK_CPG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 534) def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 535) !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 536) !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 537) !CPU_SUBTYPE_SH7269
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 538)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 539) endmenu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 540)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 541) menu "CPU Frequency scaling"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 542) source "drivers/cpufreq/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 543) endmenu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 544)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 545) source "arch/sh/drivers/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 546)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 547) endmenu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 548)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 549) menu "Kernel features"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 550)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 551) source "kernel/Kconfig.hz"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 552)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 553) config KEXEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 554) bool "kexec system call (EXPERIMENTAL)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 555) depends on MMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 556) select KEXEC_CORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 557) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 558) kexec is a system call that implements the ability to shutdown your
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 559) current kernel, and to start another kernel. It is like a reboot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 560) but it is independent of the system firmware. And like a reboot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 561) you can start any kernel with it, not just Linux.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 562)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 563) The name comes from the similarity to the exec system call.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 564)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 565) It is an ongoing process to be certain the hardware in a machine
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 566) is properly shutdown, so do not be surprised if this code does not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 567) initially work for you. As of this writing the exact hardware
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 568) interface is strongly in flux, so no good recommendation can be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 569) made.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 570)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 571) config CRASH_DUMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 572) bool "kernel crash dumps (EXPERIMENTAL)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 573) depends on BROKEN_ON_SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 574) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 575) Generate crash dump after being started by kexec.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 576) This should be normally only set in special crash dump kernels
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 577) which are loaded in the main kernel with kexec-tools into
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 578) a specially reserved region and then later executed after
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 579) a crash by kdump/kexec. The crash dump kernel must be compiled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 580) to a memory address not used by the main kernel using
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 581) PHYSICAL_START.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 582)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 583) For more details see Documentation/admin-guide/kdump/kdump.rst
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 584)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 585) config KEXEC_JUMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 586) bool "kexec jump (EXPERIMENTAL)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 587) depends on KEXEC && HIBERNATION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 588) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 589) Jump between original kernel and kexeced kernel and invoke
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 590) code via KEXEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 591)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 592) config PHYSICAL_START
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 593) hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 594) default MEMORY_START
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 595) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 596) This gives the physical address where the kernel is loaded
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 597) and is ordinarily the same as MEMORY_START.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 598)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 599) Different values are primarily used in the case of kexec on panic
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 600) where the fail safe kernel needs to run at a different address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 601) than the panic-ed kernel.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 602)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 603) config SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 604) bool "Symmetric multi-processing support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 605) depends on SYS_SUPPORTS_SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 606) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 607) This enables support for systems with more than one CPU. If you have
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 608) a system with only one CPU, say N. If you have a system with more
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 609) than one CPU, say Y.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 610)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 611) If you say N here, the kernel will run on uni- and multiprocessor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 612) machines, but will use only one CPU of a multiprocessor machine. If
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 613) you say Y here, the kernel will run on many, but not all,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 614) uniprocessor machines. On a uniprocessor machine, the kernel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 615) will run faster if you say N here.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 616)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 617) People using multiprocessor machines who say Y here should also say
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 618) Y to "Enhanced Real Time Clock Support", below.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 619)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 620) See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 621) available at <https://www.tldp.org/docs.html#howto>.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 622)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 623) If you don't know what to do here, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 624)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 625) config NR_CPUS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 626) int "Maximum number of CPUs (2-32)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 627) range 2 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 628) depends on SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 629) default "4" if CPU_SUBTYPE_SHX3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 630) default "2"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 631) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 632) This allows you to specify the maximum number of CPUs which this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 633) kernel will support. The maximum supported value is 32 and the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 634) minimum value which makes sense is 2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 635)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 636) This is purely to save memory - each supported CPU adds
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 637) approximately eight kilobytes to the kernel image.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 638)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 639) config HOTPLUG_CPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 640) bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 641) depends on SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 642) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 643) Say Y here to experiment with turning CPUs off and on. CPUs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 644) can be controlled through /sys/devices/system/cpu.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 645)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 646) config GUSA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 647) def_bool y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 648) depends on !SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 649) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 650) This enables support for gUSA (general UserSpace Atomicity).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 651) This is the default implementation for both UP and non-ll/sc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 652) CPUs, and is used by the libc, amongst others.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 653)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 654) For additional information, design information can be found
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 655) in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 656)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 657) This should only be disabled for special cases where alternate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 658) atomicity implementations exist.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 659)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 660) config GUSA_RB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 661) bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 662) depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 663) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 664) Enabling this option will allow the kernel to implement some
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 665) atomic operations using a software implementation of load-locked/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 666) store-conditional (LLSC). On machines which do not have hardware
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 667) LLSC, this should be more efficient than the other alternative of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 668) disabling interrupts around the atomic sequence.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 669)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 670) config HW_PERF_EVENTS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 671) bool "Enable hardware performance counter support for perf events"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 672) depends on PERF_EVENTS && CPU_HAS_PMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 673) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 674) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 675) Enable hardware performance counter support for perf events. If
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 676) disabled, perf events will use software events only.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 677)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 678) source "drivers/sh/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 679)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 680) endmenu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 681)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 682) menu "Boot options"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 683)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 684) config USE_BUILTIN_DTB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 685) bool "Use builtin DTB"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 686) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 687) depends on SH_DEVICE_TREE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 688) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 689) Link a device tree blob for particular hardware into the kernel,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 690) suppressing use of the DTB pointer provided by the bootloader.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 691) This option should only be used with legacy bootloaders that are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 692) not capable of providing a DTB to the kernel, or for experimental
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 693) hardware without stable device tree bindings.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 694)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 695) config BUILTIN_DTB_SOURCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 696) string "Source file for builtin DTB"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 697) default ""
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 698) depends on USE_BUILTIN_DTB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 699) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 700) Base name (without suffix, relative to arch/sh/boot/dts) for the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 701) a DTS file that will be used to produce the DTB linked into the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 702) kernel.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 703)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 704) config ZERO_PAGE_OFFSET
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 705) hex
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 706) default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 707) SH_7751_SOLUTION_ENGINE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 708) default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 709) default "0x00002000" if PAGE_SIZE_8KB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 710) default "0x00001000"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 711) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 712) This sets the default offset of zero page.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 713)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 714) config BOOT_LINK_OFFSET
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 715) hex
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 716) default "0x00210000" if SH_SHMIN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 717) default "0x00810000" if SH_7780_SOLUTION_ENGINE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 718) default "0x009e0000" if SH_TITAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 719) default "0x01800000" if SH_SDK7780
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 720) default "0x02000000" if SH_EDOSK7760
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 721) default "0x00800000"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 722) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 723) This option allows you to set the link address offset of the zImage.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 724) This can be useful if you are on a board which has a small amount of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 725) memory.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 726)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 727) config ENTRY_OFFSET
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 728) hex
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 729) default "0x00001000" if PAGE_SIZE_4KB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 730) default "0x00002000" if PAGE_SIZE_8KB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 731) default "0x00004000" if PAGE_SIZE_16KB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 732) default "0x00010000" if PAGE_SIZE_64KB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 733) default "0x00000000"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 734)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 735) config ROMIMAGE_MMCIF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 736) bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 737) depends on CPU_SUBTYPE_SH7724
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 738) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 739) Say Y here to include experimental MMCIF loading code in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 740) romImage. With this enabled it is possible to write the romImage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 741) kernel image to an MMC card and boot the kernel straight from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 742) the reset vector. At reset the processor Mask ROM will load the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 743) first part of the romImage which in turn loads the rest the kernel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 744) image to RAM using the MMCIF hardware block.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 745)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 746) choice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 747) prompt "Kernel command line"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 748) optional
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 749) default CMDLINE_OVERWRITE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 750) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 751) Setting this option allows the kernel command line arguments
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 752) to be set.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 753)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 754) config CMDLINE_OVERWRITE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 755) bool "Overwrite bootloader kernel arguments"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 756) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 757) Given string will overwrite any arguments passed in by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 758) a bootloader.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 759)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 760) config CMDLINE_EXTEND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 761) bool "Extend bootloader kernel arguments"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 762) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 763) Given string will be concatenated with arguments passed in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 764) by a bootloader.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 765)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 766) endchoice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 767)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 768) config CMDLINE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 769) string "Kernel command line arguments string"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 770) depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 771) default "console=ttySC1,115200"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 772)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 773) endmenu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 774)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 775) menu "Bus options"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 776)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 777) config SUPERHYWAY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 778) tristate "SuperHyway Bus support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 779) depends on CPU_SUBTYPE_SH4_202
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 780)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 781) config MAPLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 782) bool "Maple Bus support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 783) depends on SH_DREAMCAST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 784) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 785) The Maple Bus is SEGA's serial communication bus for peripherals
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 786) on the Dreamcast. Without this bus support you won't be able to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 787) get your Dreamcast keyboard etc to work, so most users
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 788) probably want to say 'Y' here, unless you are only using the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 789) Dreamcast with a serial line terminal or a remote network
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 790) connection.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 791)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 792) endmenu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 793)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 794) menu "Power management options (EXPERIMENTAL)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 795)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 796) source "kernel/power/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 797)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 798) source "drivers/cpuidle/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 799)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 800) endmenu