blob: 70afb30e0b321183e908c30851e91b0fbe4b57e2 [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
37 select HAVE_FUTEX_CMPXCHG if FUTEX
38 select HAVE_FTRACE_MCOUNT_RECORD
39 select HAVE_HW_BREAKPOINT
Christoph Hellwig582dc532020-07-14 14:18:48 +020040 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 Smithd39f5452008-09-05 17:15:39 +090046 select HAVE_KPROBES
47 select HAVE_KRETPROBES
Frederic Weisbecker01027522010-04-11 18:55:56 +020048 select HAVE_MIXED_BREAKPOINTS_REGS
Christoph Hellwig582dc532020-07-14 14:18:48 +020049 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
50 select HAVE_NMI
Christoph Hellwig582dc532020-07-14 14:18:48 +020051 select HAVE_PATA_PLATFORM
52 select HAVE_PERF_EVENTS
53 select HAVE_REGS_AND_STACK_ACCESS_API
54 select HAVE_UID16
Thomas Gleixnercd1a41c2021-02-10 00:40:52 +010055 select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS
Masahiro Yamadad148eac2018-06-14 19:36:45 +090056 select HAVE_STACKPROTECTOR
Christoph Hellwig582dc532020-07-14 14:18:48 +020057 select HAVE_SYSCALL_TRACEPOINTS
58 select IRQ_FORCED_THREADING
Christoph Hellwig582dc532020-07-14 14:18:48 +020059 select MODULES_USE_ELF_RELA
60 select NEED_SG_DMA_LENGTH
Christoph Hellwigcd57d072020-07-14 14:18:55 +020061 select NO_DMA if !MMU && !DMA_COHERENT
Christoph Hellwig582dc532020-07-14 14:18:48 +020062 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 Hellwig5e6e9852020-09-03 16:22:35 +020069 select SET_FS
Christoph Hellwig582dc532020-07-14 14:18:48 +020070 select SPARSE_IRQ
Masahiro Yamada4aae6832021-07-31 14:22:32 +090071 select TRACE_IRQFLAGS_SUPPORT
Arnd Bergmann37744fe2020-04-20 11:37:12 +020072 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 Mundt39d28a22007-11-08 18:39:33 +090077
Paul Mundtfa691512007-03-08 19:41:21 +090078config GENERIC_BUG
79 def_bool y
Arnd Bergmann37744fe2020-04-20 11:37:12 +020080 depends on BUG
Paul Mundt3767f3f2009-06-15 00:00:42 +090081
Akinobu Mitae2268c72006-03-26 01:39:35 -080082config GENERIC_HWEIGHT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090083 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -080084
Linus Torvalds1da177e2005-04-16 15:20:36 -070085config GENERIC_CALIBRATE_DELAY
Paul Mundtcf204fa2008-09-08 20:47:42 +090086 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -070087
Paul Mundtbdcab872008-08-04 14:09:15 +090088config GENERIC_LOCKBREAK
89 def_bool y
Thomas Gleixner7be60cc2019-10-15 21:18:05 +020090 depends on SMP && PREEMPTION
Paul Mundtbdcab872008-08-04 14:09:15 +090091
Magnus Dammaf998a92008-12-04 22:45:12 +090092config ARCH_SUSPEND_POSSIBLE
93 def_bool n
94
95config ARCH_HIBERNATION_POSSIBLE
96 def_bool n
Paul Mundt357d5942007-06-11 15:32:07 +090097
Paul Mundt0a9b0db2007-01-24 21:56:20 +090098config SYS_SUPPORTS_APM_EMULATION
99 bool
Magnus Dammaf998a92008-12-04 22:45:12 +0900100 select ARCH_SUSPEND_POSSIBLE
Paul Mundt357d5942007-06-11 15:32:07 +0900101
102config SYS_SUPPORTS_SMP
103 bool
104
105config SYS_SUPPORTS_NUMA
106 bool
107
Paul Mundtafbfb522006-12-04 18:17:28 +0900108config STACKTRACE_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900109 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900110
111config LOCKDEP_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900112 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900113
David Howellsf0d1b0b2006-12-08 02:37:49 -0800114config ARCH_HAS_ILOG2_U32
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900115 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800116
117config ARCH_HAS_ILOG2_U64
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900118 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800119
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -0700120config NO_IOPORT_MAP
Paul Mundt37b7a972010-11-01 09:49:04 -0400121 def_bool !PCI
Geert Uytterhoeven8a8e5462020-06-17 08:55:38 +0200122 depends on !SH_SH4202_MICRODEV && !SH_SHMIN && !SH_HP6XX && \
123 !SH_SOLUTION_ENGINE
Paul Mundt86e4dd52010-05-25 20:06:13 +0900124
Magnus Damme7cc9a72008-02-07 20:18:21 +0900125config IO_TRAPPED
126 bool
127
Paul Mundtb7e68d62012-03-29 16:05:10 +0900128config SWAP_IO_SPACE
129 bool
130
Paul Mundt01be5d62009-10-27 10:35:02 +0900131config DMA_COHERENT
132 bool
133
134config DMA_NONCOHERENT
Christoph Hellwigcd57d072020-07-14 14:18:55 +0200135 def_bool !NO_DMA && !DMA_COHERENT
Christoph Hellwig6dfdf672020-07-14 14:18:56 +0200136 select ARCH_HAS_DMA_PREP_COHERENT
Christoph Hellwig6fa1d282018-05-11 08:36:53 +0200137 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
Christoph Hellwig6dfdf672020-07-14 14:18:56 +0200138 select DMA_DIRECT_REMAP
Paul Mundt01be5d62009-10-27 10:35:02 +0900139
Kirill A. Shutemov69543d62015-04-14 15:46:02 -0700140config PGTABLE_LEVELS
141 default 3 if X2TLB
142 default 2
143
Linus Torvalds1da177e2005-04-16 15:20:36 -0700144menu "System type"
145
Paul Mundtb5f42db2007-11-08 18:38:14 +0900146#
147# Processor families
148#
149config CPU_SH2
150 bool
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200151 select SH_INTC
Paul Mundtb5f42db2007-11-08 18:38:14 +0900152
153config CPU_SH2A
154 bool
155 select CPU_SH2
Paul Mundte2fcf742010-11-04 12:32:24 +0900156 select UNCACHED_MAPPING
Paul Mundtb5f42db2007-11-08 18:38:14 +0900157
Rich Felker5a846ab2016-03-17 23:09:37 +0000158config CPU_J2
159 bool
160 select CPU_SH2
161 select OF
162 select OF_EARLY_FLATTREE
163
Paul Mundtb5f42db2007-11-08 18:38:14 +0900164config CPU_SH3
165 bool
166 select CPU_HAS_INTEVT
167 select CPU_HAS_SR_RB
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200168 select SH_INTC
Magnus Dammfbfa8932014-02-20 12:54:47 +0100169 select SYS_SUPPORTS_SH_TMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900170
171config CPU_SH4
172 bool
Anshuman Khandual855f9a82021-05-04 18:38:13 -0700173 select ARCH_SUPPORTS_HUGETLBFS if MMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900174 select CPU_HAS_INTEVT
175 select CPU_HAS_SR_RB
Paul Mundtb5f42db2007-11-08 18:38:14 +0900176 select CPU_HAS_FPU if !CPU_SH4AL_DSP
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200177 select SH_INTC
Magnus Dammfbfa8932014-02-20 12:54:47 +0100178 select SYS_SUPPORTS_SH_TMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900179
180config CPU_SH4A
181 bool
182 select CPU_SH4
183
184config CPU_SH4AL_DSP
185 bool
186 select CPU_SH4A
187 select CPU_HAS_DSP
188
189config CPU_SHX2
190 bool
191
192config CPU_SHX3
193 bool
Paul Mundt01be5d62009-10-27 10:35:02 +0900194 select DMA_COHERENT
Paul Mundt4b478ee2010-05-11 15:24:04 +0900195 select SYS_SUPPORTS_SMP
196 select SYS_SUPPORTS_NUMA
Paul Mundtb5f42db2007-11-08 18:38:14 +0900197
Paul Mundtdc65a972009-03-10 16:26:29 +0900198config ARCH_SHMOBILE
199 bool
Magnus Damm77594912009-03-13 15:23:04 +0000200 select ARCH_SUSPEND_POSSIBLE
Rafael J. Wysocki464ed182014-12-19 15:37:54 +0100201 select PM
Paul Mundtdc65a972009-03-10 16:26:29 +0900202
Matt Fleming86c8c042010-09-10 20:36:23 +0100203config CPU_HAS_PMU
204 depends on CPU_SH4 || CPU_SH4A
205 default y
206 bool
207
Paul Mundtb5f42db2007-11-08 18:38:14 +0900208choice
209 prompt "Processor sub-type selection"
210
211#
212# Processor subtypes
213#
214
215# SH-2 Processor Support
216
217config CPU_SUBTYPE_SH7619
218 bool "Support SH7619 processor"
219 select CPU_SH2
Magnus Dammfbfa8932014-02-20 12:54:47 +0100220 select SYS_SUPPORTS_SH_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900221
Rich Felker5a846ab2016-03-17 23:09:37 +0000222config CPU_SUBTYPE_J2
223 bool "Support J2 processor"
224 select CPU_J2
Rich Felkerb4214e42016-02-15 18:36:13 +0000225 select SYS_SUPPORTS_SMP
226 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Rich Felker5a846ab2016-03-17 23:09:37 +0000227
Paul Mundtb5f42db2007-11-08 18:38:14 +0900228# SH-2A Processor Support
229
Peter Griffin28259992008-11-28 22:48:20 +0900230config CPU_SUBTYPE_SH7201
231 bool "Support SH7201 processor"
232 select CPU_SH2A
233 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100234 select SYS_SUPPORTS_SH_MTU2
Peter Griffin28259992008-11-28 22:48:20 +0900235
Paul Mundt6d01f512007-11-26 18:17:21 +0900236config CPU_SUBTYPE_SH7203
237 bool "Support SH7203 processor"
238 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900239 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100240 select SYS_SUPPORTS_SH_CMT
241 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchartb768ecbc2012-12-15 23:51:05 +0100242 select PINCTRL
Paul Mundt6d01f512007-11-26 18:17:21 +0900243
Paul Mundtb5f42db2007-11-08 18:38:14 +0900244config CPU_SUBTYPE_SH7206
245 bool "Support SH7206 processor"
246 select CPU_SH2A
Magnus Dammfbfa8932014-02-20 12:54:47 +0100247 select SYS_SUPPORTS_SH_CMT
248 select SYS_SUPPORTS_SH_MTU2
Paul Mundtb5f42db2007-11-08 18:38:14 +0900249
Paul Mundta8f67f42007-11-26 19:54:02 +0900250config CPU_SUBTYPE_SH7263
251 bool "Support SH7263 processor"
252 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900253 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100254 select SYS_SUPPORTS_SH_CMT
255 select SYS_SUPPORTS_SH_MTU2
Paul Mundta8f67f42007-11-26 19:54:02 +0900256
Phil Edworthy51ce3062012-05-09 07:59:27 +0100257config CPU_SUBTYPE_SH7264
258 bool "Support SH7264 processor"
259 select CPU_SH2A
260 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100261 select SYS_SUPPORTS_SH_CMT
262 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchart5946e7b2012-12-15 23:51:06 +0100263 select PINCTRL
Phil Edworthy51ce3062012-05-09 07:59:27 +0100264
Phil Edworthy0b25b7c2012-05-10 09:26:52 +0100265config CPU_SUBTYPE_SH7269
266 bool "Support SH7269 processor"
267 select CPU_SH2A
268 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100269 select SYS_SUPPORTS_SH_CMT
270 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchartfb872fc2012-12-15 23:51:07 +0100271 select PINCTRL
Phil Edworthy0b25b7c2012-05-10 09:26:52 +0100272
Paul Mundt2ad69902008-03-13 12:52:44 +0900273config CPU_SUBTYPE_MXG
274 bool "Support MX-G processor"
275 select CPU_SH2A
Magnus Dammfbfa8932014-02-20 12:54:47 +0100276 select SYS_SUPPORTS_SH_MTU2
Paul Mundt2ad69902008-03-13 12:52:44 +0900277 help
278 Select MX-G if running on an R8A03022BG part.
279
Paul Mundtb5f42db2007-11-08 18:38:14 +0900280# SH-3 Processor Support
281
282config CPU_SUBTYPE_SH7705
283 bool "Support SH7705 processor"
284 select CPU_SH3
285
286config 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
292config 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
298config 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
305config 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
311config 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
318config 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
325config CPU_SUBTYPE_SH7720
326 bool "Support SH7720 processor"
327 select CPU_SH3
328 select CPU_HAS_DSP
Magnus Dammfbfa8932014-02-20 12:54:47 +0100329 select SYS_SUPPORTS_SH_CMT
Paul Mundt7b61ca52011-06-30 15:04:38 +0900330 select USB_OHCI_SH if USB_OHCI_HCD
Laurent Pinchart85db6bf2012-12-15 23:51:08 +0100331 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900332 help
333 Select SH7720 if you have a SH3-DSP SH7720 CPU.
334
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900335config CPU_SUBTYPE_SH7721
336 bool "Support SH7721 processor"
337 select CPU_SH3
338 select CPU_HAS_DSP
Magnus Dammfbfa8932014-02-20 12:54:47 +0100339 select SYS_SUPPORTS_SH_CMT
Paul Mundt7b61ca52011-06-30 15:04:38 +0900340 select USB_OHCI_SH if USB_OHCI_HCD
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900341 help
342 Select SH7721 if you have a SH3-DSP SH7721 CPU.
343
Paul Mundtb5f42db2007-11-08 18:38:14 +0900344# SH-4 Processor Support
345
346config 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
352config 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
359config CPU_SUBTYPE_SH7750R
360 bool "Support SH7750R processor"
361 select CPU_SH4
362
363config CPU_SUBTYPE_SH7750S
364 bool "Support SH7750S processor"
365 select CPU_SH4
366
367config 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
374config CPU_SUBTYPE_SH7751R
375 bool "Support SH7751R processor"
376 select CPU_SH4
377
378config CPU_SUBTYPE_SH7760
379 bool "Support SH7760 processor"
380 select CPU_SH4
381
382config CPU_SUBTYPE_SH4_202
383 bool "Support SH4-202 processor"
384 select CPU_SH4
385
386# SH-4A Processor Support
387
Paul Mundt178dd0c2008-04-09 17:56:18 +0900388config CPU_SUBTYPE_SH7723
389 bool "Support SH7723 processor"
390 select CPU_SH4A
391 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900392 select ARCH_SHMOBILE
Paul Mundt178dd0c2008-04-09 17:56:18 +0900393 select ARCH_SPARSEMEM_ENABLE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100394 select SYS_SUPPORTS_SH_CMT
Laurent Pinchart16941a82012-12-15 23:51:10 +0100395 select PINCTRL
Paul Mundt178dd0c2008-04-09 17:56:18 +0900396 help
397 Select SH7723 if you have an SH-MobileR2 CPU.
398
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900399config CPU_SUBTYPE_SH7724
400 bool "Support SH7724 processor"
401 select CPU_SH4A
402 select CPU_SHX2
Paul Mundt59fe7002009-04-16 15:43:42 +0900403 select ARCH_SHMOBILE
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900404 select ARCH_SPARSEMEM_ENABLE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100405 select SYS_SUPPORTS_SH_CMT
Laurent Pinchart18ebd222012-12-15 23:51:11 +0100406 select PINCTRL
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900407 help
408 Select SH7724 if you have an SH-MobileR2R CPU.
409
Nobuhiro Iwamatsufea88a02012-04-12 15:45:32 +0900410config CPU_SUBTYPE_SH7734
411 bool "Support SH7734 processor"
412 select CPU_SH4A
413 select CPU_SHX2
Laurent Pinchart2c172182012-12-15 23:51:12 +0100414 select PINCTRL
Nobuhiro Iwamatsufea88a02012-04-12 15:45:32 +0900415 help
416 Select SH7734 if you have a SH4A SH7734 CPU.
417
Yoshihiro Shimodac01f0f12009-08-21 16:30:28 +0900418config CPU_SUBTYPE_SH7757
419 bool "Support SH7757 processor"
420 select CPU_SH4A
421 select CPU_SHX2
Laurent Pincharteb61b772012-12-15 23:51:13 +0100422 select PINCTRL
Yoshihiro Shimodac01f0f12009-08-21 16:30:28 +0900423 help
424 Select SH7757 if you have a SH4A SH7757 CPU.
425
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900426config CPU_SUBTYPE_SH7763
427 bool "Support SH7763 processor"
428 select CPU_SH4A
Paul Mundt7b61ca52011-06-30 15:04:38 +0900429 select USB_OHCI_SH if USB_OHCI_HCD
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900430 help
431 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
432
Paul Mundtb5f42db2007-11-08 18:38:14 +0900433config CPU_SUBTYPE_SH7770
434 bool "Support SH7770 processor"
435 select CPU_SH4A
436
437config CPU_SUBTYPE_SH7780
438 bool "Support SH7780 processor"
439 select CPU_SH4A
440
441config 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 Pinchart77bd27b2012-12-15 23:51:14 +0100447 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900448
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900449config CPU_SUBTYPE_SH7786
450 bool "Support SH7786 processor"
451 select CPU_SH4A
Paul Mundt37042fb2009-03-03 15:57:02 +0900452 select CPU_SHX3
Paul Mundt8263a672009-03-17 17:49:49 +0900453 select CPU_HAS_PTEAEX
Paul Mundt2eb2a432009-06-19 16:00:00 +0900454 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Paul Mundt7b61ca52011-06-30 15:04:38 +0900455 select USB_OHCI_SH if USB_OHCI_HCD
Paul Mundt7b61ca52011-06-30 15:04:38 +0900456 select USB_EHCI_SH if USB_EHCI_HCD
Laurent Pinchartc0fdbff2012-12-15 23:51:15 +0100457 select PINCTRL
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900458
Paul Mundtb5f42db2007-11-08 18:38:14 +0900459config CPU_SUBTYPE_SHX3
460 bool "Support SH-X3 processor"
461 select CPU_SH4A
462 select CPU_SHX3
Paul Mundt58402632008-09-05 15:36:39 +0900463 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Linus Walleijfdcfdfa2016-04-19 13:26:08 +0200464 select GPIOLIB
Laurent Pinchart3e347f02012-12-15 23:51:16 +0100465 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900466
467# SH4AL-DSP Processor Support
468
469config CPU_SUBTYPE_SH7343
470 bool "Support SH7343 processor"
471 select CPU_SH4AL_DSP
Paul Mundtdc65a972009-03-10 16:26:29 +0900472 select ARCH_SHMOBILE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100473 select SYS_SUPPORTS_SH_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900474
475config CPU_SUBTYPE_SH7722
476 bool "Support SH7722 processor"
477 select CPU_SH4AL_DSP
478 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900479 select ARCH_SHMOBILE
Paul Mundtb5f42db2007-11-08 18:38:14 +0900480 select ARCH_SPARSEMEM_ENABLE
481 select SYS_SUPPORTS_NUMA
Magnus Dammfbfa8932014-02-20 12:54:47 +0100482 select SYS_SUPPORTS_SH_CMT
Laurent Pinchartef97c3c2012-12-15 23:51:09 +0100483 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900484
Magnus Damm9109a302008-02-08 17:31:24 +0900485config CPU_SUBTYPE_SH7366
486 bool "Support SH7366 processor"
487 select CPU_SH4AL_DSP
488 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900489 select ARCH_SHMOBILE
Magnus Damm9109a302008-02-08 17:31:24 +0900490 select ARCH_SPARSEMEM_ENABLE
491 select SYS_SUPPORTS_NUMA
Magnus Dammfbfa8932014-02-20 12:54:47 +0100492 select SYS_SUPPORTS_SH_CMT
Magnus Damm9109a302008-02-08 17:31:24 +0900493
Paul Mundt3cc000b2009-04-11 08:39:27 +0900494endchoice
495
Paul Mundtcad82442006-01-16 22:14:19 -0800496source "arch/sh/mm/Kconfig"
Paul Mundt939a24a2008-07-29 21:41:37 +0900497
Paul Mundt4690bdc2007-11-09 13:45:42 +0900498source "arch/sh/Kconfig.cpu"
Paul Mundtcad82442006-01-16 22:14:19 -0800499
Paul Mundt939a24a2008-07-29 21:41:37 +0900500source "arch/sh/boards/Kconfig"
Paul Mundtf3d22292007-05-14 17:29:12 +0900501
Paul Mundt32351a22007-03-12 14:38:59 +0900502menu "Timer and clock configuration"
503
Paul Mundtcad82442006-01-16 22:14:19 -0800504config SH_PCLK_FREQ
505 int "Peripheral clock frequency (in Hz)"
Paul Mundt8152a742009-12-29 11:09:30 +0900506 depends on SH_CLK_CPG_LEGACY
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900507 default "31250000" if CPU_SUBTYPE_SH7619
Paul Mundt8152a742009-12-29 11:09:30 +0900508 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 Mundt43a18392010-01-19 19:37:14 +0900514 CPU_SUBTYPE_MXG
Paul Mundt05627482007-05-15 16:25:47 +0900515 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
Paul Mundtcad82442006-01-16 22:14:19 -0800516 default "66000000" if CPU_SUBTYPE_SH4_202
Paul Mundt05627482007-05-15 16:25:47 +0900517 default "50000000"
Paul Mundtcad82442006-01-16 22:14:19 -0800518 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 Mundt36aa1e32009-05-22 14:00:34 +0900523config SH_CLK_CPG
524 def_bool y
525
Paul Mundt253b0882009-05-13 17:38:11 +0900526config SH_CLK_CPG_LEGACY
Paul Mundt36aa1e32009-05-22 14:00:34 +0900527 depends on SH_CLK_CPG
Paul Mundt43a18392010-01-19 19:37:14 +0900528 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
Phil Edworthy51ce3062012-05-09 07:59:27 +0100529 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
Paul Mundtbcb86e02012-05-10 17:20:56 +0900530 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
531 !CPU_SUBTYPE_SH7269
Paul Mundt253b0882009-05-13 17:38:11 +0900532
Paul Mundt32351a22007-03-12 14:38:59 +0900533endmenu
534
Paul Mundtcad82442006-01-16 22:14:19 -0800535menu "CPU Frequency scaling"
Paul Mundtcad82442006-01-16 22:14:19 -0800536source "drivers/cpufreq/Kconfig"
Paul Mundtcad82442006-01-16 22:14:19 -0800537endmenu
538
Paul Mundt9f5e8ee2006-11-24 11:22:57 +0900539source "arch/sh/drivers/Kconfig"
540
Paul Mundtcad82442006-01-16 22:14:19 -0800541endmenu
542
Paul Mundtcad82442006-01-16 22:14:19 -0800543menu "Kernel features"
544
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900545source "kernel/Kconfig.hz"
Paul Mundt91b91d02006-09-27 18:08:33 +0900546
Paul Mundtcad82442006-01-16 22:14:19 -0800547config KEXEC
548 bool "kexec system call (EXPERIMENTAL)"
Arnd Bergmann37744fe2020-04-20 11:37:12 +0200549 depends on MMU
Dave Young2965faa2015-09-09 15:38:55 -0700550 select KEXEC_CORE
Paul Mundtcad82442006-01-16 22:14:19 -0800551 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 LaPlante1f1332f2006-06-29 01:32:47 -0400554 but it is independent of the system firmware. And like a reboot
Paul Mundtcad82442006-01-16 22:14:19 -0800555 you can start any kernel with it, not just Linux.
556
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400557 The name comes from the similarity to the exec system call.
Paul Mundtcad82442006-01-16 22:14:19 -0800558
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 Uytterhoevenbf220692013-08-20 21:38:03 +0200561 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 Mundtcad82442006-01-16 22:14:19 -0800564
Paul Mundt4d5ade52007-04-27 11:25:57 +0900565config CRASH_DUMP
566 bool "kernel crash dumps (EXPERIMENTAL)"
Arnd Bergmann37744fe2020-04-20 11:37:12 +0200567 depends on BROKEN_ON_SMP
Paul Mundt4d5ade52007-04-27 11:25:57 +0900568 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 Hormane66ac3f2011-09-15 20:13:00 +0900575 PHYSICAL_START.
Paul Mundt4d5ade52007-04-27 11:25:57 +0900576
Mauro Carvalho Chehab330d4812019-06-13 15:21:39 -0300577 For more details see Documentation/admin-guide/kdump/kdump.rst
Paul Mundt4d5ade52007-04-27 11:25:57 +0900578
Magnus Dammb7cf6dd2009-03-18 08:51:29 +0000579config KEXEC_JUMP
580 bool "kexec jump (EXPERIMENTAL)"
Arnd Bergmann37744fe2020-04-20 11:37:12 +0200581 depends on KEXEC && HIBERNATION
Magnus Dammb7cf6dd2009-03-18 08:51:29 +0000582 help
583 Jump between original kernel and kexeced kernel and invoke
584 code via KEXEC
585
Simon Hormane66ac3f2011-09-15 20:13:00 +0900586config PHYSICAL_START
587 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
588 default MEMORY_START
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900589 help
Simon Hormane66ac3f2011-09-15 20:13:00 +0900590 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 Torvalds1da177e2005-04-16 15:20:36 -0700597config SMP
598 bool "Symmetric multi-processing support"
Paul Mundt357d5942007-06-11 15:32:07 +0900599 depends on SYS_SUPPORTS_SMP
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900600 help
Linus Torvalds1da177e2005-04-16 15:20:36 -0700601 This enables support for systems with more than one CPU. If you have
Robert Graffham4a474152014-01-23 15:55:29 -0800602 a system with only one CPU, say N. If you have a system with more
603 than one CPU, say Y.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604
Robert Graffham4a474152014-01-23 15:55:29 -0800605 If you say N here, the kernel will run on uni- and multiprocessor
Linus Torvalds1da177e2005-04-16 15:20:36 -0700606 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 Graffham4a474152014-01-23 15:55:29 -0800608 uniprocessor machines. On a uniprocessor machine, the kernel
Linus Torvalds1da177e2005-04-16 15:20:36 -0700609 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 Chehab4f4cfa62019-06-27 14:56:51 -0300614 See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
Alexander A. Klimov91194e92020-07-12 13:11:18 +0200615 available at <https://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700616
617 If you don't know what to do here, say N.
618
619config NR_CPUS
620 int "Maximum number of CPUs (2-32)"
621 range 2 32
622 depends on SMP
Paul Mundt2eb2a432009-06-19 16:00:00 +0900623 default "4" if CPU_SUBTYPE_SHX3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700624 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 Mundt763142d2010-04-26 19:08:55 +0900633config HOTPLUG_CPU
634 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
Stephen Rothwell40b31362013-05-21 13:49:35 +1000635 depends on SMP
Paul Mundt763142d2010-04-26 19:08:55 +0900636 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 Mundt83662462007-09-28 16:04:49 +0900640config GUSA
641 def_bool y
Arnd Bergmann37744fe2020-04-20 11:37:12 +0200642 depends on !SMP
Paul Mundt83662462007-09-28 16:04:49 +0900643 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 Menefy1efe4ce2007-11-30 16:12:36 +0900654config 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 LaPlante692105b2009-01-26 11:12:25 +0100659 atomic operations using a software implementation of load-locked/
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900660 store-conditional (LLSC). On machines which do not have hardware
661 LLSC, this should be more efficient than the other alternative of
Matt LaPlante692105b2009-01-26 11:12:25 +0100662 disabling interrupts around the atomic sequence.
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900663
Matt Fleming86c8c042010-09-10 20:36:23 +0100664config 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 Mundt43b87742010-04-13 14:43:03 +0900672source "drivers/sh/Kconfig"
673
Paul Mundtcad82442006-01-16 22:14:19 -0800674endmenu
675
676menu "Boot options"
677
Rich Felker190fe192016-03-26 01:24:30 +0000678config 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
689config 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 Mundtcad82442006-01-16 22:14:19 -0800698config ZERO_PAGE_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900699 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 Mundt7a847f82006-12-26 15:29:19 +0900703 default "0x00002000" if PAGE_SIZE_8KB
Paul Mundtcad82442006-01-16 22:14:19 -0800704 default "0x00001000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700705 help
Paul Mundtcad82442006-01-16 22:14:19 -0800706 This sets the default offset of zero page.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700707
Paul Mundtcad82442006-01-16 22:14:19 -0800708config BOOT_LINK_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900709 hex
710 default "0x00210000" if SH_SHMIN
Paul Mundtb412a49a2009-05-10 01:23:25 +0900711 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 Mundtcad82442006-01-16 22:14:19 -0800715 default "0x00800000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700716 help
Paul Mundtcad82442006-01-16 22:14:19 -0800717 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 Torvalds1da177e2005-04-16 15:20:36 -0700720
Paul Mundtb412a49a2009-05-10 01:23:25 +0900721config 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 Damm4705b2e2010-05-18 14:43:15 +0000729config ROMIMAGE_MMCIF
730 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
Kees Cook0d57af12013-01-16 18:53:26 -0800731 depends on CPU_SUBTYPE_SH7724
Magnus Damm4705b2e2010-05-18 14:43:15 +0000732 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 Molld724a9c2009-08-24 16:25:38 +0900740choice
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
748config CMDLINE_OVERWRITE
749 bool "Overwrite bootloader kernel arguments"
750 help
751 Given string will overwrite any arguments passed in by
752 a bootloader.
753
754config 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
760endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761
Paul Mundtcad82442006-01-16 22:14:19 -0800762config CMDLINE
Pawel Molld724a9c2009-08-24 16:25:38 +0900763 string "Kernel command line arguments string"
764 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
Paul Mundtcad82442006-01-16 22:14:19 -0800765 default "console=ttySC1,115200"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700766
767endmenu
768
Paul Mundtcad82442006-01-16 22:14:19 -0800769menu "Bus options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700770
Paul Mundtcad82442006-01-16 22:14:19 -0800771config SUPERHYWAY
772 tristate "SuperHyway Bus support"
773 depends on CPU_SUBTYPE_SH4_202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700774
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900775config MAPLE
Paul Mundte16038a2009-01-09 15:12:30 +0900776 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 McMenamin17be2d22007-09-21 15:55:55 +0900785
Linus Torvalds1da177e2005-04-16 15:20:36 -0700786endmenu
787
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900788menu "Power management options (EXPERIMENTAL)"
Johannes Bergf4cb5702007-12-08 02:14:00 +0100789
Magnus Dammc6f17cb2008-12-04 22:45:20 +0900790source "kernel/power/Kconfig"
791
792source "drivers/cpuidle/Kconfig"
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900793
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900794endmenu