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