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