blob: 2474a04ceac438975fcb0acb8daf730fbbb1edbe [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002config SUPERH
Paul Mundtea0e1a92007-11-21 15:58:01 +09003 def_bool y
Christoph Hellwig582dc532020-07-14 14:18:48 +02004 select ARCH_32BIT_OFF_T
Anshuman Khandual91024b32021-05-04 18:38:17 -07005 select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM && MMU
6 select ARCH_ENABLE_MEMORY_HOTREMOVE if SPARSEMEM && MMU
Mark Brown7563bbf2012-04-15 10:52:54 +01007 select ARCH_HAVE_CUSTOM_GPIO_H
Huang Yingdf013ff2011-07-13 13:14:22 +08008 select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
Christoph Hellwig582dc532020-07-14 14:18:48 +02009 select ARCH_HAS_BINFMT_FLAT if !MMU
10 select ARCH_HAS_GIGANTIC_PAGE
Riku Voipio957e3fa2014-12-12 16:57:44 -080011 select ARCH_HAS_GCOV_PROFILE_ALL
Christoph Hellwig582dc532020-07-14 14:18:48 +020012 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 Deaconc1d7e012012-07-30 14:42:46 -070016 select ARCH_WANT_IPC_PARSE_VERSION
Christoph Hellwig582dc532020-07-14 14:18:48 +020017 select CPU_NO_EFFICIENT_FFS
18 select DMA_DECLARE_COHERENT
Paul Mundtf01789c2009-06-17 10:43:13 +090019 select GENERIC_ATOMIC64
Anna-Maria Gleixner8cf200d2012-05-18 16:45:53 +000020 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
Christoph Hellwig582dc532020-07-14 14:18:48 +020021 select GENERIC_IDLE_POLL_SETUP
22 select GENERIC_IRQ_SHOW
Christoph Hellwigeb01d422018-11-15 20:05:32 +010023 select GENERIC_PCI_IOMAP if PCI
Rich Felkerb46ed372016-05-26 22:18:52 +000024 select GENERIC_SCHED_CLOCK
Christoph Hellwig582dc532020-07-14 14:18:48 +020025 select GENERIC_SMP_IDLE_THREAD
Christoph Hellwig3c9b9ac2019-07-11 20:57:00 -070026 select GUP_GET_PTE_LOW_HIGH if X2TLB
Christoph Hellwig582dc532020-07-14 14:18:48 +020027 select HAVE_ARCH_AUDITSYSCALL
28 select HAVE_ARCH_KGDB
Michael Karcher0bb605c2020-07-23 01:13:21 +020029 select HAVE_ARCH_SECCOMP_FILTER
Christoph Hellwig582dc532020-07-14 14:18:48 +020030 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 Hellwig582dc532020-07-14 14:18:48 +020037 select HAVE_FTRACE_MCOUNT_RECORD
38 select HAVE_HW_BREAKPOINT
Christoph Hellwig582dc532020-07-14 14:18:48 +020039 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 Smithd39f5452008-09-05 17:15:39 +090045 select HAVE_KPROBES
46 select HAVE_KRETPROBES
Frederic Weisbecker01027522010-04-11 18:55:56 +020047 select HAVE_MIXED_BREAKPOINTS_REGS
Christoph Hellwig582dc532020-07-14 14:18:48 +020048 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
49 select HAVE_NMI
Christoph Hellwig582dc532020-07-14 14:18:48 +020050 select HAVE_PATA_PLATFORM
51 select HAVE_PERF_EVENTS
52 select HAVE_REGS_AND_STACK_ACCESS_API
53 select HAVE_UID16
Thomas Gleixnercd1a41c2021-02-10 00:40:52 +010054 select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS
Masahiro Yamadad148eac2018-06-14 19:36:45 +090055 select HAVE_STACKPROTECTOR
Christoph Hellwig582dc532020-07-14 14:18:48 +020056 select HAVE_SYSCALL_TRACEPOINTS
57 select IRQ_FORCED_THREADING
Christoph Hellwig582dc532020-07-14 14:18:48 +020058 select MODULES_USE_ELF_RELA
59 select NEED_SG_DMA_LENGTH
Christoph Hellwigcd57d072020-07-14 14:18:55 +020060 select NO_DMA if !MMU && !DMA_COHERENT
Christoph Hellwig582dc532020-07-14 14:18:48 +020061 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 Hellwig5e6e9852020-09-03 16:22:35 +020068 select SET_FS
Christoph Hellwig582dc532020-07-14 14:18:48 +020069 select SPARSE_IRQ
Masahiro Yamada4aae6832021-07-31 14:22:32 +090070 select TRACE_IRQFLAGS_SUPPORT
Arnd Bergmann37744fe2020-04-20 11:37:12 +020071 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 Mundt39d28a22007-11-08 18:39:33 +090076
Paul Mundtfa691512007-03-08 19:41:21 +090077config GENERIC_BUG
78 def_bool y
Arnd Bergmann37744fe2020-04-20 11:37:12 +020079 depends on BUG
Paul Mundt3767f3f2009-06-15 00:00:42 +090080
Akinobu Mitae2268c72006-03-26 01:39:35 -080081config GENERIC_HWEIGHT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090082 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -080083
Linus Torvalds1da177e2005-04-16 15:20:36 -070084config GENERIC_CALIBRATE_DELAY
Paul Mundtcf204fa2008-09-08 20:47:42 +090085 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -070086
Paul Mundtbdcab872008-08-04 14:09:15 +090087config GENERIC_LOCKBREAK
88 def_bool y
Thomas Gleixner7be60cc2019-10-15 21:18:05 +020089 depends on SMP && PREEMPTION
Paul Mundtbdcab872008-08-04 14:09:15 +090090
Magnus Dammaf998a92008-12-04 22:45:12 +090091config ARCH_SUSPEND_POSSIBLE
92 def_bool n
93
94config ARCH_HIBERNATION_POSSIBLE
95 def_bool n
Paul Mundt357d5942007-06-11 15:32:07 +090096
Paul Mundt0a9b0db2007-01-24 21:56:20 +090097config SYS_SUPPORTS_APM_EMULATION
98 bool
Magnus Dammaf998a92008-12-04 22:45:12 +090099 select ARCH_SUSPEND_POSSIBLE
Paul Mundt357d5942007-06-11 15:32:07 +0900100
101config SYS_SUPPORTS_SMP
102 bool
103
104config SYS_SUPPORTS_NUMA
105 bool
106
Paul Mundtafbfb522006-12-04 18:17:28 +0900107config STACKTRACE_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900108 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900109
110config LOCKDEP_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900111 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900112
David Howellsf0d1b0b2006-12-08 02:37:49 -0800113config ARCH_HAS_ILOG2_U32
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900114 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800115
116config ARCH_HAS_ILOG2_U64
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900117 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800118
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -0700119config NO_IOPORT_MAP
Paul Mundt37b7a972010-11-01 09:49:04 -0400120 def_bool !PCI
Geert Uytterhoeven8a8e5462020-06-17 08:55:38 +0200121 depends on !SH_SH4202_MICRODEV && !SH_SHMIN && !SH_HP6XX && \
122 !SH_SOLUTION_ENGINE
Paul Mundt86e4dd52010-05-25 20:06:13 +0900123
Magnus Damme7cc9a72008-02-07 20:18:21 +0900124config IO_TRAPPED
125 bool
126
Paul Mundtb7e68d62012-03-29 16:05:10 +0900127config SWAP_IO_SPACE
128 bool
129
Paul Mundt01be5d62009-10-27 10:35:02 +0900130config DMA_COHERENT
131 bool
132
133config DMA_NONCOHERENT
Christoph Hellwigcd57d072020-07-14 14:18:55 +0200134 def_bool !NO_DMA && !DMA_COHERENT
Christoph Hellwig6dfdf672020-07-14 14:18:56 +0200135 select ARCH_HAS_DMA_PREP_COHERENT
Christoph Hellwig6fa1d282018-05-11 08:36:53 +0200136 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
Christoph Hellwig6dfdf672020-07-14 14:18:56 +0200137 select DMA_DIRECT_REMAP
Paul Mundt01be5d62009-10-27 10:35:02 +0900138
Kirill A. Shutemov69543d62015-04-14 15:46:02 -0700139config PGTABLE_LEVELS
140 default 3 if X2TLB
141 default 2
142
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143menu "System type"
144
Paul Mundtb5f42db2007-11-08 18:38:14 +0900145#
146# Processor families
147#
148config CPU_SH2
149 bool
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200150 select SH_INTC
Paul Mundtb5f42db2007-11-08 18:38:14 +0900151
152config CPU_SH2A
153 bool
154 select CPU_SH2
Paul Mundte2fcf742010-11-04 12:32:24 +0900155 select UNCACHED_MAPPING
Paul Mundtb5f42db2007-11-08 18:38:14 +0900156
Rich Felker5a846ab2016-03-17 23:09:37 +0000157config CPU_J2
158 bool
159 select CPU_SH2
160 select OF
161 select OF_EARLY_FLATTREE
162
Paul Mundtb5f42db2007-11-08 18:38:14 +0900163config CPU_SH3
164 bool
165 select CPU_HAS_INTEVT
166 select CPU_HAS_SR_RB
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200167 select SH_INTC
Magnus Dammfbfa8932014-02-20 12:54:47 +0100168 select SYS_SUPPORTS_SH_TMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900169
170config CPU_SH4
171 bool
Anshuman Khandual855f9a82021-05-04 18:38:13 -0700172 select ARCH_SUPPORTS_HUGETLBFS if MMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900173 select CPU_HAS_INTEVT
174 select CPU_HAS_SR_RB
Paul Mundtb5f42db2007-11-08 18:38:14 +0900175 select CPU_HAS_FPU if !CPU_SH4AL_DSP
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200176 select SH_INTC
Magnus Dammfbfa8932014-02-20 12:54:47 +0100177 select SYS_SUPPORTS_SH_TMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900178
179config CPU_SH4A
180 bool
181 select CPU_SH4
182
183config CPU_SH4AL_DSP
184 bool
185 select CPU_SH4A
186 select CPU_HAS_DSP
187
188config CPU_SHX2
189 bool
190
191config CPU_SHX3
192 bool
Paul Mundt01be5d62009-10-27 10:35:02 +0900193 select DMA_COHERENT
Paul Mundt4b478ee2010-05-11 15:24:04 +0900194 select SYS_SUPPORTS_SMP
195 select SYS_SUPPORTS_NUMA
Paul Mundtb5f42db2007-11-08 18:38:14 +0900196
Paul Mundtdc65a972009-03-10 16:26:29 +0900197config ARCH_SHMOBILE
198 bool
Magnus Damm77594912009-03-13 15:23:04 +0000199 select ARCH_SUSPEND_POSSIBLE
Rafael J. Wysocki464ed182014-12-19 15:37:54 +0100200 select PM
Paul Mundtdc65a972009-03-10 16:26:29 +0900201
Matt Fleming86c8c042010-09-10 20:36:23 +0100202config CPU_HAS_PMU
203 depends on CPU_SH4 || CPU_SH4A
204 default y
205 bool
206
Paul Mundtb5f42db2007-11-08 18:38:14 +0900207choice
208 prompt "Processor sub-type selection"
209
210#
211# Processor subtypes
212#
213
214# SH-2 Processor Support
215
216config CPU_SUBTYPE_SH7619
217 bool "Support SH7619 processor"
218 select CPU_SH2
Magnus Dammfbfa8932014-02-20 12:54:47 +0100219 select SYS_SUPPORTS_SH_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900220
Rich Felker5a846ab2016-03-17 23:09:37 +0000221config CPU_SUBTYPE_J2
222 bool "Support J2 processor"
223 select CPU_J2
Rich Felkerb4214e42016-02-15 18:36:13 +0000224 select SYS_SUPPORTS_SMP
225 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Rich Felker5a846ab2016-03-17 23:09:37 +0000226
Paul Mundtb5f42db2007-11-08 18:38:14 +0900227# SH-2A Processor Support
228
Peter Griffin28259992008-11-28 22:48:20 +0900229config CPU_SUBTYPE_SH7201
230 bool "Support SH7201 processor"
231 select CPU_SH2A
232 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100233 select SYS_SUPPORTS_SH_MTU2
Peter Griffin28259992008-11-28 22:48:20 +0900234
Paul Mundt6d01f512007-11-26 18:17:21 +0900235config CPU_SUBTYPE_SH7203
236 bool "Support SH7203 processor"
237 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900238 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100239 select SYS_SUPPORTS_SH_CMT
240 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchartb768ecbc2012-12-15 23:51:05 +0100241 select PINCTRL
Paul Mundt6d01f512007-11-26 18:17:21 +0900242
Paul Mundtb5f42db2007-11-08 18:38:14 +0900243config CPU_SUBTYPE_SH7206
244 bool "Support SH7206 processor"
245 select CPU_SH2A
Magnus Dammfbfa8932014-02-20 12:54:47 +0100246 select SYS_SUPPORTS_SH_CMT
247 select SYS_SUPPORTS_SH_MTU2
Paul Mundtb5f42db2007-11-08 18:38:14 +0900248
Paul Mundta8f67f42007-11-26 19:54:02 +0900249config CPU_SUBTYPE_SH7263
250 bool "Support SH7263 processor"
251 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900252 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100253 select SYS_SUPPORTS_SH_CMT
254 select SYS_SUPPORTS_SH_MTU2
Paul Mundta8f67f42007-11-26 19:54:02 +0900255
Phil Edworthy51ce3062012-05-09 07:59:27 +0100256config CPU_SUBTYPE_SH7264
257 bool "Support SH7264 processor"
258 select CPU_SH2A
259 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100260 select SYS_SUPPORTS_SH_CMT
261 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchart5946e7b2012-12-15 23:51:06 +0100262 select PINCTRL
Phil Edworthy51ce3062012-05-09 07:59:27 +0100263
Phil Edworthy0b25b7c2012-05-10 09:26:52 +0100264config CPU_SUBTYPE_SH7269
265 bool "Support SH7269 processor"
266 select CPU_SH2A
267 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100268 select SYS_SUPPORTS_SH_CMT
269 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchartfb872fc2012-12-15 23:51:07 +0100270 select PINCTRL
Phil Edworthy0b25b7c2012-05-10 09:26:52 +0100271
Paul Mundt2ad69902008-03-13 12:52:44 +0900272config CPU_SUBTYPE_MXG
273 bool "Support MX-G processor"
274 select CPU_SH2A
Magnus Dammfbfa8932014-02-20 12:54:47 +0100275 select SYS_SUPPORTS_SH_MTU2
Paul Mundt2ad69902008-03-13 12:52:44 +0900276 help
277 Select MX-G if running on an R8A03022BG part.
278
Paul Mundtb5f42db2007-11-08 18:38:14 +0900279# SH-3 Processor Support
280
281config CPU_SUBTYPE_SH7705
282 bool "Support SH7705 processor"
283 select CPU_SH3
284
285config 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
291config 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
297config 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
304config 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
310config 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
317config 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
324config CPU_SUBTYPE_SH7720
325 bool "Support SH7720 processor"
326 select CPU_SH3
327 select CPU_HAS_DSP
Magnus Dammfbfa8932014-02-20 12:54:47 +0100328 select SYS_SUPPORTS_SH_CMT
Paul Mundt7b61ca52011-06-30 15:04:38 +0900329 select USB_OHCI_SH if USB_OHCI_HCD
Laurent Pinchart85db6bf2012-12-15 23:51:08 +0100330 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900331 help
332 Select SH7720 if you have a SH3-DSP SH7720 CPU.
333
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900334config CPU_SUBTYPE_SH7721
335 bool "Support SH7721 processor"
336 select CPU_SH3
337 select CPU_HAS_DSP
Magnus Dammfbfa8932014-02-20 12:54:47 +0100338 select SYS_SUPPORTS_SH_CMT
Paul Mundt7b61ca52011-06-30 15:04:38 +0900339 select USB_OHCI_SH if USB_OHCI_HCD
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900340 help
341 Select SH7721 if you have a SH3-DSP SH7721 CPU.
342
Paul Mundtb5f42db2007-11-08 18:38:14 +0900343# SH-4 Processor Support
344
345config 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
351config 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
358config CPU_SUBTYPE_SH7750R
359 bool "Support SH7750R processor"
360 select CPU_SH4
361
362config CPU_SUBTYPE_SH7750S
363 bool "Support SH7750S processor"
364 select CPU_SH4
365
366config 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
373config CPU_SUBTYPE_SH7751R
374 bool "Support SH7751R processor"
375 select CPU_SH4
376
377config CPU_SUBTYPE_SH7760
378 bool "Support SH7760 processor"
379 select CPU_SH4
380
381config CPU_SUBTYPE_SH4_202
382 bool "Support SH4-202 processor"
383 select CPU_SH4
384
385# SH-4A Processor Support
386
Paul Mundt178dd0c2008-04-09 17:56:18 +0900387config CPU_SUBTYPE_SH7723
388 bool "Support SH7723 processor"
389 select CPU_SH4A
390 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900391 select ARCH_SHMOBILE
Paul Mundt178dd0c2008-04-09 17:56:18 +0900392 select ARCH_SPARSEMEM_ENABLE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100393 select SYS_SUPPORTS_SH_CMT
Laurent Pinchart16941a82012-12-15 23:51:10 +0100394 select PINCTRL
Paul Mundt178dd0c2008-04-09 17:56:18 +0900395 help
396 Select SH7723 if you have an SH-MobileR2 CPU.
397
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900398config CPU_SUBTYPE_SH7724
399 bool "Support SH7724 processor"
400 select CPU_SH4A
401 select CPU_SHX2
Paul Mundt59fe7002009-04-16 15:43:42 +0900402 select ARCH_SHMOBILE
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900403 select ARCH_SPARSEMEM_ENABLE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100404 select SYS_SUPPORTS_SH_CMT
Laurent Pinchart18ebd222012-12-15 23:51:11 +0100405 select PINCTRL
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900406 help
407 Select SH7724 if you have an SH-MobileR2R CPU.
408
Nobuhiro Iwamatsufea88a02012-04-12 15:45:32 +0900409config CPU_SUBTYPE_SH7734
410 bool "Support SH7734 processor"
411 select CPU_SH4A
412 select CPU_SHX2
Laurent Pinchart2c172182012-12-15 23:51:12 +0100413 select PINCTRL
Nobuhiro Iwamatsufea88a02012-04-12 15:45:32 +0900414 help
415 Select SH7734 if you have a SH4A SH7734 CPU.
416
Yoshihiro Shimodac01f0f12009-08-21 16:30:28 +0900417config CPU_SUBTYPE_SH7757
418 bool "Support SH7757 processor"
419 select CPU_SH4A
420 select CPU_SHX2
Laurent Pincharteb61b772012-12-15 23:51:13 +0100421 select PINCTRL
Yoshihiro Shimodac01f0f12009-08-21 16:30:28 +0900422 help
423 Select SH7757 if you have a SH4A SH7757 CPU.
424
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900425config CPU_SUBTYPE_SH7763
426 bool "Support SH7763 processor"
427 select CPU_SH4A
Paul Mundt7b61ca52011-06-30 15:04:38 +0900428 select USB_OHCI_SH if USB_OHCI_HCD
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900429 help
430 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
431
Paul Mundtb5f42db2007-11-08 18:38:14 +0900432config CPU_SUBTYPE_SH7770
433 bool "Support SH7770 processor"
434 select CPU_SH4A
435
436config CPU_SUBTYPE_SH7780
437 bool "Support SH7780 processor"
438 select CPU_SH4A
439
440config 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 Pinchart77bd27b2012-12-15 23:51:14 +0100446 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900447
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900448config CPU_SUBTYPE_SH7786
449 bool "Support SH7786 processor"
450 select CPU_SH4A
Paul Mundt37042fb2009-03-03 15:57:02 +0900451 select CPU_SHX3
Paul Mundt8263a672009-03-17 17:49:49 +0900452 select CPU_HAS_PTEAEX
Paul Mundt2eb2a432009-06-19 16:00:00 +0900453 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Paul Mundt7b61ca52011-06-30 15:04:38 +0900454 select USB_OHCI_SH if USB_OHCI_HCD
Paul Mundt7b61ca52011-06-30 15:04:38 +0900455 select USB_EHCI_SH if USB_EHCI_HCD
Laurent Pinchartc0fdbff2012-12-15 23:51:15 +0100456 select PINCTRL
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900457
Paul Mundtb5f42db2007-11-08 18:38:14 +0900458config CPU_SUBTYPE_SHX3
459 bool "Support SH-X3 processor"
460 select CPU_SH4A
461 select CPU_SHX3
Paul Mundt58402632008-09-05 15:36:39 +0900462 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Linus Walleijfdcfdfa2016-04-19 13:26:08 +0200463 select GPIOLIB
Laurent Pinchart3e347f02012-12-15 23:51:16 +0100464 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900465
466# SH4AL-DSP Processor Support
467
468config CPU_SUBTYPE_SH7343
469 bool "Support SH7343 processor"
470 select CPU_SH4AL_DSP
Paul Mundtdc65a972009-03-10 16:26:29 +0900471 select ARCH_SHMOBILE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100472 select SYS_SUPPORTS_SH_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900473
474config CPU_SUBTYPE_SH7722
475 bool "Support SH7722 processor"
476 select CPU_SH4AL_DSP
477 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900478 select ARCH_SHMOBILE
Paul Mundtb5f42db2007-11-08 18:38:14 +0900479 select ARCH_SPARSEMEM_ENABLE
480 select SYS_SUPPORTS_NUMA
Magnus Dammfbfa8932014-02-20 12:54:47 +0100481 select SYS_SUPPORTS_SH_CMT
Laurent Pinchartef97c3c2012-12-15 23:51:09 +0100482 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900483
Magnus Damm9109a302008-02-08 17:31:24 +0900484config CPU_SUBTYPE_SH7366
485 bool "Support SH7366 processor"
486 select CPU_SH4AL_DSP
487 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900488 select ARCH_SHMOBILE
Magnus Damm9109a302008-02-08 17:31:24 +0900489 select ARCH_SPARSEMEM_ENABLE
490 select SYS_SUPPORTS_NUMA
Magnus Dammfbfa8932014-02-20 12:54:47 +0100491 select SYS_SUPPORTS_SH_CMT
Magnus Damm9109a302008-02-08 17:31:24 +0900492
Paul Mundt3cc000b2009-04-11 08:39:27 +0900493endchoice
494
Paul Mundtcad82442006-01-16 22:14:19 -0800495source "arch/sh/mm/Kconfig"
Paul Mundt939a24a2008-07-29 21:41:37 +0900496
Paul Mundt4690bdc2007-11-09 13:45:42 +0900497source "arch/sh/Kconfig.cpu"
Paul Mundtcad82442006-01-16 22:14:19 -0800498
Paul Mundt939a24a2008-07-29 21:41:37 +0900499source "arch/sh/boards/Kconfig"
Paul Mundtf3d22292007-05-14 17:29:12 +0900500
Paul Mundt32351a22007-03-12 14:38:59 +0900501menu "Timer and clock configuration"
502
Paul Mundtcad82442006-01-16 22:14:19 -0800503config SH_PCLK_FREQ
504 int "Peripheral clock frequency (in Hz)"
Paul Mundt8152a742009-12-29 11:09:30 +0900505 depends on SH_CLK_CPG_LEGACY
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900506 default "31250000" if CPU_SUBTYPE_SH7619
Paul Mundt8152a742009-12-29 11:09:30 +0900507 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 Mundt43a18392010-01-19 19:37:14 +0900513 CPU_SUBTYPE_MXG
Paul Mundt05627482007-05-15 16:25:47 +0900514 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
Paul Mundtcad82442006-01-16 22:14:19 -0800515 default "66000000" if CPU_SUBTYPE_SH4_202
Paul Mundt05627482007-05-15 16:25:47 +0900516 default "50000000"
Paul Mundtcad82442006-01-16 22:14:19 -0800517 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 Mundt36aa1e32009-05-22 14:00:34 +0900522config SH_CLK_CPG
523 def_bool y
524
Paul Mundt253b0882009-05-13 17:38:11 +0900525config SH_CLK_CPG_LEGACY
Paul Mundt36aa1e32009-05-22 14:00:34 +0900526 depends on SH_CLK_CPG
Paul Mundt43a18392010-01-19 19:37:14 +0900527 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
Phil Edworthy51ce3062012-05-09 07:59:27 +0100528 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
Paul Mundtbcb86e02012-05-10 17:20:56 +0900529 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
530 !CPU_SUBTYPE_SH7269
Paul Mundt253b0882009-05-13 17:38:11 +0900531
Paul Mundt32351a22007-03-12 14:38:59 +0900532endmenu
533
Paul Mundtcad82442006-01-16 22:14:19 -0800534menu "CPU Frequency scaling"
Paul Mundtcad82442006-01-16 22:14:19 -0800535source "drivers/cpufreq/Kconfig"
Paul Mundtcad82442006-01-16 22:14:19 -0800536endmenu
537
Paul Mundt9f5e8ee2006-11-24 11:22:57 +0900538source "arch/sh/drivers/Kconfig"
539
Paul Mundtcad82442006-01-16 22:14:19 -0800540endmenu
541
Paul Mundtcad82442006-01-16 22:14:19 -0800542menu "Kernel features"
543
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900544source "kernel/Kconfig.hz"
Paul Mundt91b91d02006-09-27 18:08:33 +0900545
Paul Mundtcad82442006-01-16 22:14:19 -0800546config KEXEC
547 bool "kexec system call (EXPERIMENTAL)"
Arnd Bergmann37744fe2020-04-20 11:37:12 +0200548 depends on MMU
Dave Young2965faa2015-09-09 15:38:55 -0700549 select KEXEC_CORE
Paul Mundtcad82442006-01-16 22:14:19 -0800550 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 LaPlante1f1332f2006-06-29 01:32:47 -0400553 but it is independent of the system firmware. And like a reboot
Paul Mundtcad82442006-01-16 22:14:19 -0800554 you can start any kernel with it, not just Linux.
555
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400556 The name comes from the similarity to the exec system call.
Paul Mundtcad82442006-01-16 22:14:19 -0800557
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 Uytterhoevenbf220692013-08-20 21:38:03 +0200560 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 Mundtcad82442006-01-16 22:14:19 -0800563
Paul Mundt4d5ade52007-04-27 11:25:57 +0900564config CRASH_DUMP
565 bool "kernel crash dumps (EXPERIMENTAL)"
Arnd Bergmann37744fe2020-04-20 11:37:12 +0200566 depends on BROKEN_ON_SMP
Paul Mundt4d5ade52007-04-27 11:25:57 +0900567 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 Hormane66ac3f2011-09-15 20:13:00 +0900574 PHYSICAL_START.
Paul Mundt4d5ade52007-04-27 11:25:57 +0900575
Mauro Carvalho Chehab330d4812019-06-13 15:21:39 -0300576 For more details see Documentation/admin-guide/kdump/kdump.rst
Paul Mundt4d5ade52007-04-27 11:25:57 +0900577
Magnus Dammb7cf6dd2009-03-18 08:51:29 +0000578config KEXEC_JUMP
579 bool "kexec jump (EXPERIMENTAL)"
Arnd Bergmann37744fe2020-04-20 11:37:12 +0200580 depends on KEXEC && HIBERNATION
Magnus Dammb7cf6dd2009-03-18 08:51:29 +0000581 help
582 Jump between original kernel and kexeced kernel and invoke
583 code via KEXEC
584
Simon Hormane66ac3f2011-09-15 20:13:00 +0900585config PHYSICAL_START
586 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
587 default MEMORY_START
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900588 help
Simon Hormane66ac3f2011-09-15 20:13:00 +0900589 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 Torvalds1da177e2005-04-16 15:20:36 -0700596config SMP
597 bool "Symmetric multi-processing support"
Paul Mundt357d5942007-06-11 15:32:07 +0900598 depends on SYS_SUPPORTS_SMP
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900599 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700600 This enables support for systems with more than one CPU. If you have
Robert Graffham4a474152014-01-23 15:55:29 -0800601 a system with only one CPU, say N. If you have a system with more
602 than one CPU, say Y.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700603
Robert Graffham4a474152014-01-23 15:55:29 -0800604 If you say N here, the kernel will run on uni- and multiprocessor
Linus Torvalds1da177e2005-04-16 15:20:36 -0700605 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 Graffham4a474152014-01-23 15:55:29 -0800607 uniprocessor machines. On a uniprocessor machine, the kernel
Linus Torvalds1da177e2005-04-16 15:20:36 -0700608 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 Chehab4f4cfa62019-06-27 14:56:51 -0300613 See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
Alexander A. Klimov91194e92020-07-12 13:11:18 +0200614 available at <https://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700615
616 If you don't know what to do here, say N.
617
618config NR_CPUS
619 int "Maximum number of CPUs (2-32)"
620 range 2 32
621 depends on SMP
Paul Mundt2eb2a432009-06-19 16:00:00 +0900622 default "4" if CPU_SUBTYPE_SHX3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700623 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 Mundt763142d2010-04-26 19:08:55 +0900632config HOTPLUG_CPU
633 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
Stephen Rothwell40b31362013-05-21 13:49:35 +1000634 depends on SMP
Paul Mundt763142d2010-04-26 19:08:55 +0900635 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 Mundt83662462007-09-28 16:04:49 +0900639config GUSA
640 def_bool y
Arnd Bergmann37744fe2020-04-20 11:37:12 +0200641 depends on !SMP
Paul Mundt83662462007-09-28 16:04:49 +0900642 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 Menefy1efe4ce2007-11-30 16:12:36 +0900653config 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 LaPlante692105b2009-01-26 11:12:25 +0100658 atomic operations using a software implementation of load-locked/
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900659 store-conditional (LLSC). On machines which do not have hardware
660 LLSC, this should be more efficient than the other alternative of
Matt LaPlante692105b2009-01-26 11:12:25 +0100661 disabling interrupts around the atomic sequence.
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900662
Matt Fleming86c8c042010-09-10 20:36:23 +0100663config 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 Mundt43b87742010-04-13 14:43:03 +0900671source "drivers/sh/Kconfig"
672
Paul Mundtcad82442006-01-16 22:14:19 -0800673endmenu
674
675menu "Boot options"
676
Rich Felker190fe192016-03-26 01:24:30 +0000677config 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
688config 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 Mundtcad82442006-01-16 22:14:19 -0800697config ZERO_PAGE_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900698 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 Mundt7a847f82006-12-26 15:29:19 +0900702 default "0x00002000" if PAGE_SIZE_8KB
Paul Mundtcad82442006-01-16 22:14:19 -0800703 default "0x00001000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700704 help
Paul Mundtcad82442006-01-16 22:14:19 -0800705 This sets the default offset of zero page.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700706
Paul Mundtcad82442006-01-16 22:14:19 -0800707config BOOT_LINK_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900708 hex
709 default "0x00210000" if SH_SHMIN
Paul Mundtb412a49a2009-05-10 01:23:25 +0900710 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 Mundtcad82442006-01-16 22:14:19 -0800714 default "0x00800000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700715 help
Paul Mundtcad82442006-01-16 22:14:19 -0800716 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 Torvalds1da177e2005-04-16 15:20:36 -0700719
Paul Mundtb412a49a2009-05-10 01:23:25 +0900720config 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 Damm4705b2e2010-05-18 14:43:15 +0000728config ROMIMAGE_MMCIF
729 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
Kees Cook0d57af12013-01-16 18:53:26 -0800730 depends on CPU_SUBTYPE_SH7724
Magnus Damm4705b2e2010-05-18 14:43:15 +0000731 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 Molld724a9c2009-08-24 16:25:38 +0900739choice
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
747config CMDLINE_OVERWRITE
748 bool "Overwrite bootloader kernel arguments"
749 help
750 Given string will overwrite any arguments passed in by
751 a bootloader.
752
753config 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
759endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700760
Paul Mundtcad82442006-01-16 22:14:19 -0800761config CMDLINE
Pawel Molld724a9c2009-08-24 16:25:38 +0900762 string "Kernel command line arguments string"
763 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
Paul Mundtcad82442006-01-16 22:14:19 -0800764 default "console=ttySC1,115200"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765
766endmenu
767
Paul Mundtcad82442006-01-16 22:14:19 -0800768menu "Bus options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700769
Paul Mundtcad82442006-01-16 22:14:19 -0800770config SUPERHYWAY
771 tristate "SuperHyway Bus support"
772 depends on CPU_SUBTYPE_SH4_202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700773
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900774config MAPLE
Paul Mundte16038a2009-01-09 15:12:30 +0900775 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 McMenamin17be2d22007-09-21 15:55:55 +0900784
Linus Torvalds1da177e2005-04-16 15:20:36 -0700785endmenu
786
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900787menu "Power management options (EXPERIMENTAL)"
Johannes Bergf4cb5702007-12-08 02:14:00 +0100788
Magnus Dammc6f17cb2008-12-04 22:45:20 +0900789source "kernel/power/Kconfig"
790
791source "drivers/cpuidle/Kconfig"
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900792
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900793endmenu