blob: a3d2a24e75c75fb19e4b2eac2f34cfff31541209 [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
Laurent Dufour3010a5e2018-06-07 17:06:08 -07004 select ARCH_HAS_PTE_SPECIAL
Rich Felker45624ac2016-02-12 22:05:11 +00005 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
Mark Salter09d8dd92013-10-07 22:15:58 -04006 select ARCH_MIGHT_HAVE_PC_PARPORT
Vladimir Murzin07c75d72017-06-28 10:16:57 +01007 select ARCH_NO_COHERENT_DMA_MMAP if !MMU
Rob Landley560b8c02015-02-10 14:08:35 -08008 select HAVE_PATA_PLATFORM
Jean-Christop PLAGNIOL-VILLARD6d803ba2010-11-17 10:04:33 +01009 select CLKDEV_LOOKUP
Christoph Hellwigff4c25f2019-02-03 20:12:02 +010010 select DMA_DECLARE_COHERENT
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070011 select HAVE_IDE if HAS_IOPORT_MAP
Tejun Heo534cfbe2011-12-08 10:22:08 -080012 select HAVE_MEMBLOCK_NODE_MAP
Paul Mundtadaf7fd2012-03-28 17:27:09 +090013 select ARCH_DISCARD_MEMBLOCK
Mathieu Desnoyers42d4b832008-02-02 15:10:34 -050014 select HAVE_OPROFILE
Paul Mundtd7b01f72008-12-10 20:17:15 +090015 select HAVE_ARCH_TRACEHOOK
Ingo Molnarcdd6c482009-09-21 12:02:48 +020016 select HAVE_PERF_EVENTS
Catalin Marinas9b2a60c2012-10-08 16:28:13 -070017 select HAVE_DEBUG_BUGVERBOSE
Mark Brown7563bbf2012-04-15 10:52:54 +010018 select ARCH_HAVE_CUSTOM_GPIO_H
Huang Yingdf013ff2011-07-13 13:14:22 +080019 select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
Riku Voipio957e3fa2014-12-12 16:57:44 -080020 select ARCH_HAS_GCOV_PROFILE_ALL
Paul Mundt72f0c132009-10-27 17:08:55 +090021 select PERF_USE_VMALLOC
Catalin Marinasb69ec422012-10-08 16:28:11 -070022 select HAVE_DEBUG_KMEMLEAK
Paul Mundtdf8ce252009-07-12 01:37:30 +090023 select HAVE_KERNEL_GZIP
Zhaoxiu Zengfff7fb02016-05-20 17:03:57 -070024 select CPU_NO_EFFICIENT_FFS
Paul Mundt07e88e12009-07-11 13:21:19 -040025 select HAVE_KERNEL_BZIP2
26 select HAVE_KERNEL_LZMA
Paul Mundt50cfa792011-01-14 15:52:54 +090027 select HAVE_KERNEL_XZ
Paul Mundtc7b16ef2010-01-13 13:29:19 +090028 select HAVE_KERNEL_LZO
Catalin Marinasaf1839e2012-10-08 16:28:08 -070029 select HAVE_UID16
Will Deaconc1d7e012012-07-30 14:42:46 -070030 select ARCH_WANT_IPC_PARSE_VERSION
Paul Mundta74f7e02009-09-16 14:30:34 +090031 select HAVE_SYSCALL_TRACEPOINTS
Paul Mundteaaaeef2010-06-14 15:16:53 +090032 select HAVE_REGS_AND_STACK_ACCESS_API
Rob Herring2ed86b12012-01-25 20:02:40 -060033 select MAY_HAVE_SPARSE_IRQ
Paul Mundted170922011-04-18 11:45:27 +090034 select IRQ_FORCED_THREADING
Paul Mundt6eac1af2009-05-08 19:48:47 +090035 select RTC_LIB
Paul Mundtf01789c2009-06-17 10:43:13 +090036 select GENERIC_ATOMIC64
Paul Mundt3d44ae42011-03-17 17:31:51 +090037 select GENERIC_IRQ_SHOW
Thomas Gleixnerea0588c2012-04-20 13:05:54 +000038 select GENERIC_SMP_IDLE_THREAD
Thomas Gleixnerdc775dd2013-03-21 22:49:59 +010039 select GENERIC_IDLE_POLL_SETUP
Anna-Maria Gleixner8cf200d2012-05-18 16:45:53 +000040 select GENERIC_CLOCKEVENTS
41 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
Christoph Hellwigeb01d422018-11-15 20:05:32 +010042 select GENERIC_PCI_IOMAP if PCI
Rich Felkerb46ed372016-05-26 22:18:52 +000043 select GENERIC_SCHED_CLOCK
Paul Mundt0e100e12012-05-25 13:02:48 +090044 select GENERIC_STRNCPY_FROM_USER
Paul Mundtcba8df42012-06-04 15:46:05 +090045 select GENERIC_STRNLEN_USER
David Howells786d35d2012-09-28 14:31:03 +093046 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
47 select MODULES_USE_ELF_RELA
Christoph Hellwigeb01d422018-11-15 20:05:32 +010048 select NO_GENERIC_PCI_IOPORT_MAP if PCI
Al Viro881e2522012-12-25 16:20:46 -050049 select OLD_SIGSUSPEND
Al Viro0679a852012-12-25 19:23:55 -050050 select OLD_SIGACTION
Christoph Hellwigeb01d422018-11-15 20:05:32 +010051 select PCI_DOMAINS if PCI
AKASHI Takahiro7a017722014-02-25 18:16:24 +090052 select HAVE_ARCH_AUDITSYSCALL
Rich Felker72cc5642016-07-15 03:46:52 +000053 select HAVE_FUTEX_CMPXCHG if FUTEX
Petr Mladek42a0bb32016-05-20 17:00:33 -070054 select HAVE_NMI
Christoph Hellwig86596f02018-04-05 09:44:52 +020055 select NEED_SG_DMA_LENGTH
56
Linus Torvalds1da177e2005-04-16 15:20:36 -070057 help
58 The SuperH is a RISC processor targeted for use in embedded systems
59 and consumer electronics; it was also used in the Sega Dreamcast
60 gaming console. The SuperH port has a home page at
61 <http://www.linux-sh.org/>.
62
Paul Mundt39d28a22007-11-08 18:39:33 +090063config SUPERH32
Masahiro Yamada104daea2018-05-28 18:21:40 +090064 def_bool "$(ARCH)" = "sh"
Chris Smithd39f5452008-09-05 17:15:39 +090065 select HAVE_KPROBES
66 select HAVE_KRETPROBES
Paul Mundt6d63e732010-01-19 14:00:14 +090067 select HAVE_IOREMAP_PROT if MMU && !X2TLB
Paul Mundt694f94f2008-10-31 16:20:36 +090068 select HAVE_FUNCTION_TRACER
Matt Flemingfad57fe2008-11-12 20:11:47 +090069 select HAVE_FTRACE_MCOUNT_RECORD
70 select HAVE_DYNAMIC_FTRACE
Paul Mundte4b053d2009-10-13 16:52:50 +090071 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
Will Deaconc1d7e012012-07-30 14:42:46 -070072 select ARCH_WANT_IPC_PARSE_VERSION
Matt Fleming327933f2009-07-11 00:29:03 +000073 select HAVE_FUNCTION_GRAPH_TRACER
Paul Mundtab6e5702008-12-11 18:46:46 +090074 select HAVE_ARCH_KGDB
Paul Mundt6fbfe8d2010-01-06 15:46:53 +090075 select HAVE_HW_BREAKPOINT
Frederic Weisbecker01027522010-04-11 18:55:56 +020076 select HAVE_MIXED_BREAKPOINTS_REGS
Sam Ravnborge583d6b2010-08-14 12:23:39 +000077 select PERF_EVENTS
Paul Mundt8dafc342009-04-02 11:56:38 +090078 select ARCH_HIBERNATION_POSSIBLE if MMU
Paul Mundt57b81332010-10-26 15:20:51 +090079 select SPARSE_IRQ
Masahiro Yamadad148eac2018-06-14 19:36:45 +090080 select HAVE_STACKPROTECTOR
Paul Mundtea0e1a92007-11-21 15:58:01 +090081
82config SUPERH64
Masahiro Yamada104daea2018-05-28 18:21:40 +090083 def_bool "$(ARCH)" = "sh64"
Jiri Slaby5f56a5d2016-05-20 17:00:16 -070084 select HAVE_EXIT_THREAD
Paul Mundt3a898c02012-05-24 15:05:29 +090085 select KALLSYMS
Paul Mundt39d28a22007-11-08 18:39:33 +090086
Paul Mundtf42b7e32008-07-29 20:12:51 +090087config ARCH_DEFCONFIG
88 string
89 default "arch/sh/configs/shx3_defconfig" if SUPERH32
90 default "arch/sh/configs/cayman_defconfig" if SUPERH64
91
Linus Torvalds1da177e2005-04-16 15:20:36 -070092config RWSEM_GENERIC_SPINLOCK
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090093 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070094
95config RWSEM_XCHGADD_ALGORITHM
96 bool
97
Paul Mundtfa691512007-03-08 19:41:21 +090098config GENERIC_BUG
99 def_bool y
Paul Mundta82d53e2007-11-21 18:22:05 +0900100 depends on BUG && SUPERH32
Paul Mundtfa691512007-03-08 19:41:21 +0900101
Paul Mundt3767f3f2009-06-15 00:00:42 +0900102config GENERIC_CSUM
103 def_bool y
104 depends on SUPERH64
105
Akinobu Mitae2268c72006-03-26 01:39:35 -0800106config GENERIC_HWEIGHT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900107 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -0800108
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109config GENERIC_CALIBRATE_DELAY
Paul Mundtcf204fa2008-09-08 20:47:42 +0900110 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111
Paul Mundtbdcab872008-08-04 14:09:15 +0900112config GENERIC_LOCKBREAK
113 def_bool y
114 depends on SMP && PREEMPT
115
Magnus Dammaf998a92008-12-04 22:45:12 +0900116config ARCH_SUSPEND_POSSIBLE
117 def_bool n
118
119config ARCH_HIBERNATION_POSSIBLE
120 def_bool n
Paul Mundt357d5942007-06-11 15:32:07 +0900121
Paul Mundt0a9b0db2007-01-24 21:56:20 +0900122config SYS_SUPPORTS_APM_EMULATION
123 bool
Magnus Dammaf998a92008-12-04 22:45:12 +0900124 select ARCH_SUSPEND_POSSIBLE
Paul Mundt357d5942007-06-11 15:32:07 +0900125
Paul Mundtffb4a732009-10-27 07:22:37 +0900126config SYS_SUPPORTS_HUGETLBFS
127 bool
128
Paul Mundt357d5942007-06-11 15:32:07 +0900129config SYS_SUPPORTS_SMP
130 bool
131
132config SYS_SUPPORTS_NUMA
133 bool
134
Paul Mundtafbfb522006-12-04 18:17:28 +0900135config STACKTRACE_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900136 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900137
138config LOCKDEP_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900139 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900140
David Howellsf0d1b0b2006-12-08 02:37:49 -0800141config ARCH_HAS_ILOG2_U32
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900142 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800143
144config ARCH_HAS_ILOG2_U64
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900145 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800146
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -0700147config NO_IOPORT_MAP
Paul Mundt37b7a972010-11-01 09:49:04 -0400148 def_bool !PCI
Paul Mundtc30b9c42012-05-21 18:19:18 +0900149 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
150 !SH_HP6XX && !SH_SOLUTION_ENGINE
Paul Mundt86e4dd52010-05-25 20:06:13 +0900151
Magnus Damme7cc9a72008-02-07 20:18:21 +0900152config IO_TRAPPED
153 bool
154
Paul Mundtb7e68d62012-03-29 16:05:10 +0900155config SWAP_IO_SPACE
156 bool
157
Paul Mundt01be5d62009-10-27 10:35:02 +0900158config DMA_COHERENT
159 bool
160
161config DMA_NONCOHERENT
162 def_bool !DMA_COHERENT
Christoph Hellwig6fa1d282018-05-11 08:36:53 +0200163 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
Paul Mundt01be5d62009-10-27 10:35:02 +0900164
Kirill A. Shutemov69543d62015-04-14 15:46:02 -0700165config PGTABLE_LEVELS
166 default 3 if X2TLB
167 default 2
168
Linus Torvalds1da177e2005-04-16 15:20:36 -0700169menu "System type"
170
Paul Mundtb5f42db2007-11-08 18:38:14 +0900171#
172# Processor families
173#
174config CPU_SH2
175 bool
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200176 select SH_INTC
Paul Mundtb5f42db2007-11-08 18:38:14 +0900177
178config CPU_SH2A
179 bool
180 select CPU_SH2
Paul Mundte2fcf742010-11-04 12:32:24 +0900181 select UNCACHED_MAPPING
Paul Mundtb5f42db2007-11-08 18:38:14 +0900182
Rich Felker5a846ab2016-03-17 23:09:37 +0000183config CPU_J2
184 bool
185 select CPU_SH2
186 select OF
187 select OF_EARLY_FLATTREE
188
Paul Mundtb5f42db2007-11-08 18:38:14 +0900189config CPU_SH3
190 bool
191 select CPU_HAS_INTEVT
192 select CPU_HAS_SR_RB
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200193 select SH_INTC
Magnus Dammfbfa8932014-02-20 12:54:47 +0100194 select SYS_SUPPORTS_SH_TMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900195
196config CPU_SH4
197 bool
198 select CPU_HAS_INTEVT
199 select CPU_HAS_SR_RB
Paul Mundtb5f42db2007-11-08 18:38:14 +0900200 select CPU_HAS_FPU if !CPU_SH4AL_DSP
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200201 select SH_INTC
Magnus Dammfbfa8932014-02-20 12:54:47 +0100202 select SYS_SUPPORTS_SH_TMU
Paul Mundtffb4a732009-10-27 07:22:37 +0900203 select SYS_SUPPORTS_HUGETLBFS if MMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900204
205config CPU_SH4A
206 bool
207 select CPU_SH4
208
209config CPU_SH4AL_DSP
210 bool
211 select CPU_SH4A
212 select CPU_HAS_DSP
213
Paul Mundtea0e1a92007-11-21 15:58:01 +0900214config CPU_SH5
215 bool
216 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100217 select SYS_SUPPORTS_SH_TMU
Paul Mundtffb4a732009-10-27 07:22:37 +0900218 select SYS_SUPPORTS_HUGETLBFS if MMU
Paul Mundtea0e1a92007-11-21 15:58:01 +0900219
Paul Mundtb5f42db2007-11-08 18:38:14 +0900220config CPU_SHX2
221 bool
222
223config CPU_SHX3
224 bool
Paul Mundt01be5d62009-10-27 10:35:02 +0900225 select DMA_COHERENT
Paul Mundt4b478ee2010-05-11 15:24:04 +0900226 select SYS_SUPPORTS_SMP
227 select SYS_SUPPORTS_NUMA
Paul Mundtb5f42db2007-11-08 18:38:14 +0900228
Paul Mundtdc65a972009-03-10 16:26:29 +0900229config ARCH_SHMOBILE
230 bool
Magnus Damm77594912009-03-13 15:23:04 +0000231 select ARCH_SUSPEND_POSSIBLE
Rafael J. Wysocki464ed182014-12-19 15:37:54 +0100232 select PM
Paul Mundtdc65a972009-03-10 16:26:29 +0900233
Matt Fleming86c8c042010-09-10 20:36:23 +0100234config CPU_HAS_PMU
235 depends on CPU_SH4 || CPU_SH4A
236 default y
237 bool
238
Paul Mundt3cc000b2009-04-11 08:39:27 +0900239if SUPERH32
240
Paul Mundtb5f42db2007-11-08 18:38:14 +0900241choice
242 prompt "Processor sub-type selection"
243
244#
245# Processor subtypes
246#
247
248# SH-2 Processor Support
249
250config CPU_SUBTYPE_SH7619
251 bool "Support SH7619 processor"
252 select CPU_SH2
Magnus Dammfbfa8932014-02-20 12:54:47 +0100253 select SYS_SUPPORTS_SH_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900254
Rich Felker5a846ab2016-03-17 23:09:37 +0000255config CPU_SUBTYPE_J2
256 bool "Support J2 processor"
257 select CPU_J2
Rich Felkerb4214e42016-02-15 18:36:13 +0000258 select SYS_SUPPORTS_SMP
259 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Rich Felker5a846ab2016-03-17 23:09:37 +0000260
Paul Mundtb5f42db2007-11-08 18:38:14 +0900261# SH-2A Processor Support
262
Peter Griffin28259992008-11-28 22:48:20 +0900263config CPU_SUBTYPE_SH7201
264 bool "Support SH7201 processor"
265 select CPU_SH2A
266 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100267 select SYS_SUPPORTS_SH_MTU2
Peter Griffin28259992008-11-28 22:48:20 +0900268
Paul Mundt6d01f512007-11-26 18:17:21 +0900269config CPU_SUBTYPE_SH7203
270 bool "Support SH7203 processor"
271 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900272 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100273 select SYS_SUPPORTS_SH_CMT
274 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchartb768ecbc2012-12-15 23:51:05 +0100275 select PINCTRL
Paul Mundt6d01f512007-11-26 18:17:21 +0900276
Paul Mundtb5f42db2007-11-08 18:38:14 +0900277config CPU_SUBTYPE_SH7206
278 bool "Support SH7206 processor"
279 select CPU_SH2A
Magnus Dammfbfa8932014-02-20 12:54:47 +0100280 select SYS_SUPPORTS_SH_CMT
281 select SYS_SUPPORTS_SH_MTU2
Paul Mundtb5f42db2007-11-08 18:38:14 +0900282
Paul Mundta8f67f42007-11-26 19:54:02 +0900283config CPU_SUBTYPE_SH7263
284 bool "Support SH7263 processor"
285 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900286 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100287 select SYS_SUPPORTS_SH_CMT
288 select SYS_SUPPORTS_SH_MTU2
Paul Mundta8f67f42007-11-26 19:54:02 +0900289
Phil Edworthy51ce3062012-05-09 07:59:27 +0100290config CPU_SUBTYPE_SH7264
291 bool "Support SH7264 processor"
292 select CPU_SH2A
293 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100294 select SYS_SUPPORTS_SH_CMT
295 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchart5946e7b2012-12-15 23:51:06 +0100296 select PINCTRL
Phil Edworthy51ce3062012-05-09 07:59:27 +0100297
Phil Edworthy0b25b7c2012-05-10 09:26:52 +0100298config CPU_SUBTYPE_SH7269
299 bool "Support SH7269 processor"
300 select CPU_SH2A
301 select CPU_HAS_FPU
Magnus Dammfbfa8932014-02-20 12:54:47 +0100302 select SYS_SUPPORTS_SH_CMT
303 select SYS_SUPPORTS_SH_MTU2
Laurent Pinchartfb872fc2012-12-15 23:51:07 +0100304 select PINCTRL
Phil Edworthy0b25b7c2012-05-10 09:26:52 +0100305
Paul Mundt2ad69902008-03-13 12:52:44 +0900306config CPU_SUBTYPE_MXG
307 bool "Support MX-G processor"
308 select CPU_SH2A
Magnus Dammfbfa8932014-02-20 12:54:47 +0100309 select SYS_SUPPORTS_SH_MTU2
Paul Mundt2ad69902008-03-13 12:52:44 +0900310 help
311 Select MX-G if running on an R8A03022BG part.
312
Paul Mundtb5f42db2007-11-08 18:38:14 +0900313# SH-3 Processor Support
314
315config CPU_SUBTYPE_SH7705
316 bool "Support SH7705 processor"
317 select CPU_SH3
318
319config CPU_SUBTYPE_SH7706
320 bool "Support SH7706 processor"
321 select CPU_SH3
322 help
323 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
324
325config CPU_SUBTYPE_SH7707
326 bool "Support SH7707 processor"
327 select CPU_SH3
328 help
329 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
330
331config CPU_SUBTYPE_SH7708
332 bool "Support SH7708 processor"
333 select CPU_SH3
334 help
335 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
336 if you have a 100 Mhz SH-3 HD6417708R CPU.
337
338config CPU_SUBTYPE_SH7709
339 bool "Support SH7709 processor"
340 select CPU_SH3
341 help
342 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
343
344config CPU_SUBTYPE_SH7710
345 bool "Support SH7710 processor"
346 select CPU_SH3
347 select CPU_HAS_DSP
348 help
349 Select SH7710 if you have a SH3-DSP SH7710 CPU.
350
351config CPU_SUBTYPE_SH7712
352 bool "Support SH7712 processor"
353 select CPU_SH3
354 select CPU_HAS_DSP
355 help
356 Select SH7712 if you have a SH3-DSP SH7712 CPU.
357
358config CPU_SUBTYPE_SH7720
359 bool "Support SH7720 processor"
360 select CPU_SH3
361 select CPU_HAS_DSP
Magnus Dammfbfa8932014-02-20 12:54:47 +0100362 select SYS_SUPPORTS_SH_CMT
Paul Mundt7b61ca52011-06-30 15:04:38 +0900363 select USB_OHCI_SH if USB_OHCI_HCD
Laurent Pinchart85db6bf2012-12-15 23:51:08 +0100364 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900365 help
366 Select SH7720 if you have a SH3-DSP SH7720 CPU.
367
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900368config CPU_SUBTYPE_SH7721
369 bool "Support SH7721 processor"
370 select CPU_SH3
371 select CPU_HAS_DSP
Magnus Dammfbfa8932014-02-20 12:54:47 +0100372 select SYS_SUPPORTS_SH_CMT
Paul Mundt7b61ca52011-06-30 15:04:38 +0900373 select USB_OHCI_SH if USB_OHCI_HCD
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900374 help
375 Select SH7721 if you have a SH3-DSP SH7721 CPU.
376
Paul Mundtb5f42db2007-11-08 18:38:14 +0900377# SH-4 Processor Support
378
379config CPU_SUBTYPE_SH7750
380 bool "Support SH7750 processor"
381 select CPU_SH4
382 help
383 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
384
385config CPU_SUBTYPE_SH7091
386 bool "Support SH7091 processor"
387 select CPU_SH4
388 help
389 Select SH7091 if you have an SH-4 based Sega device (such as
390 the Dreamcast, Naomi, and Naomi 2).
391
392config CPU_SUBTYPE_SH7750R
393 bool "Support SH7750R processor"
394 select CPU_SH4
395
396config CPU_SUBTYPE_SH7750S
397 bool "Support SH7750S processor"
398 select CPU_SH4
399
400config CPU_SUBTYPE_SH7751
401 bool "Support SH7751 processor"
402 select CPU_SH4
403 help
404 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
405 or if you have a HD6417751R CPU.
406
407config CPU_SUBTYPE_SH7751R
408 bool "Support SH7751R processor"
409 select CPU_SH4
410
411config CPU_SUBTYPE_SH7760
412 bool "Support SH7760 processor"
413 select CPU_SH4
414
415config CPU_SUBTYPE_SH4_202
416 bool "Support SH4-202 processor"
417 select CPU_SH4
418
419# SH-4A Processor Support
420
Paul Mundt178dd0c2008-04-09 17:56:18 +0900421config CPU_SUBTYPE_SH7723
422 bool "Support SH7723 processor"
423 select CPU_SH4A
424 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900425 select ARCH_SHMOBILE
Paul Mundt178dd0c2008-04-09 17:56:18 +0900426 select ARCH_SPARSEMEM_ENABLE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100427 select SYS_SUPPORTS_SH_CMT
Laurent Pinchart16941a82012-12-15 23:51:10 +0100428 select PINCTRL
Paul Mundt178dd0c2008-04-09 17:56:18 +0900429 help
430 Select SH7723 if you have an SH-MobileR2 CPU.
431
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900432config CPU_SUBTYPE_SH7724
433 bool "Support SH7724 processor"
434 select CPU_SH4A
435 select CPU_SHX2
Paul Mundt59fe7002009-04-16 15:43:42 +0900436 select ARCH_SHMOBILE
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900437 select ARCH_SPARSEMEM_ENABLE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100438 select SYS_SUPPORTS_SH_CMT
Laurent Pinchart18ebd222012-12-15 23:51:11 +0100439 select PINCTRL
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900440 help
441 Select SH7724 if you have an SH-MobileR2R CPU.
442
Nobuhiro Iwamatsufea88a02012-04-12 15:45:32 +0900443config CPU_SUBTYPE_SH7734
444 bool "Support SH7734 processor"
445 select CPU_SH4A
446 select CPU_SHX2
Laurent Pinchart2c172182012-12-15 23:51:12 +0100447 select PINCTRL
Nobuhiro Iwamatsufea88a02012-04-12 15:45:32 +0900448 help
449 Select SH7734 if you have a SH4A SH7734 CPU.
450
Yoshihiro Shimodac01f0f12009-08-21 16:30:28 +0900451config CPU_SUBTYPE_SH7757
452 bool "Support SH7757 processor"
453 select CPU_SH4A
454 select CPU_SHX2
Laurent Pincharteb61b772012-12-15 23:51:13 +0100455 select PINCTRL
Yoshihiro Shimodac01f0f12009-08-21 16:30:28 +0900456 help
457 Select SH7757 if you have a SH4A SH7757 CPU.
458
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900459config CPU_SUBTYPE_SH7763
460 bool "Support SH7763 processor"
461 select CPU_SH4A
Paul Mundt7b61ca52011-06-30 15:04:38 +0900462 select USB_OHCI_SH if USB_OHCI_HCD
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900463 help
464 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
465
Paul Mundtb5f42db2007-11-08 18:38:14 +0900466config CPU_SUBTYPE_SH7770
467 bool "Support SH7770 processor"
468 select CPU_SH4A
469
470config CPU_SUBTYPE_SH7780
471 bool "Support SH7780 processor"
472 select CPU_SH4A
473
474config CPU_SUBTYPE_SH7785
475 bool "Support SH7785 processor"
476 select CPU_SH4A
477 select CPU_SHX2
478 select ARCH_SPARSEMEM_ENABLE
479 select SYS_SUPPORTS_NUMA
Laurent Pinchart77bd27b2012-12-15 23:51:14 +0100480 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900481
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900482config CPU_SUBTYPE_SH7786
483 bool "Support SH7786 processor"
484 select CPU_SH4A
Paul Mundt37042fb2009-03-03 15:57:02 +0900485 select CPU_SHX3
Paul Mundt8263a672009-03-17 17:49:49 +0900486 select CPU_HAS_PTEAEX
Paul Mundt2eb2a432009-06-19 16:00:00 +0900487 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Paul Mundt7b61ca52011-06-30 15:04:38 +0900488 select USB_OHCI_SH if USB_OHCI_HCD
Paul Mundt7b61ca52011-06-30 15:04:38 +0900489 select USB_EHCI_SH if USB_EHCI_HCD
Laurent Pinchartc0fdbff2012-12-15 23:51:15 +0100490 select PINCTRL
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900491
Paul Mundtb5f42db2007-11-08 18:38:14 +0900492config CPU_SUBTYPE_SHX3
493 bool "Support SH-X3 processor"
494 select CPU_SH4A
495 select CPU_SHX3
Paul Mundt58402632008-09-05 15:36:39 +0900496 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Linus Walleijfdcfdfa2016-04-19 13:26:08 +0200497 select GPIOLIB
Laurent Pinchart3e347f02012-12-15 23:51:16 +0100498 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900499
500# SH4AL-DSP Processor Support
501
502config CPU_SUBTYPE_SH7343
503 bool "Support SH7343 processor"
504 select CPU_SH4AL_DSP
Paul Mundtdc65a972009-03-10 16:26:29 +0900505 select ARCH_SHMOBILE
Magnus Dammfbfa8932014-02-20 12:54:47 +0100506 select SYS_SUPPORTS_SH_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900507
508config CPU_SUBTYPE_SH7722
509 bool "Support SH7722 processor"
510 select CPU_SH4AL_DSP
511 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900512 select ARCH_SHMOBILE
Paul Mundtb5f42db2007-11-08 18:38:14 +0900513 select ARCH_SPARSEMEM_ENABLE
514 select SYS_SUPPORTS_NUMA
Magnus Dammfbfa8932014-02-20 12:54:47 +0100515 select SYS_SUPPORTS_SH_CMT
Laurent Pinchartef97c3c2012-12-15 23:51:09 +0100516 select PINCTRL
Paul Mundtb5f42db2007-11-08 18:38:14 +0900517
Magnus Damm9109a302008-02-08 17:31:24 +0900518config CPU_SUBTYPE_SH7366
519 bool "Support SH7366 processor"
520 select CPU_SH4AL_DSP
521 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900522 select ARCH_SHMOBILE
Magnus Damm9109a302008-02-08 17:31:24 +0900523 select ARCH_SPARSEMEM_ENABLE
524 select SYS_SUPPORTS_NUMA
Magnus Dammfbfa8932014-02-20 12:54:47 +0100525 select SYS_SUPPORTS_SH_CMT
Magnus Damm9109a302008-02-08 17:31:24 +0900526
Paul Mundt3cc000b2009-04-11 08:39:27 +0900527endchoice
528
529endif
530
531if SUPERH64
532
533choice
534 prompt "Processor sub-type selection"
535
Paul Mundtea0e1a92007-11-21 15:58:01 +0900536# SH-5 Processor Support
537
538config CPU_SUBTYPE_SH5_101
539 bool "Support SH5-101 processor"
540 select CPU_SH5
541
542config CPU_SUBTYPE_SH5_103
543 bool "Support SH5-103 processor"
Paul Mundt8ef97dd2008-02-14 15:30:54 +0900544 select CPU_SH5
Paul Mundtea0e1a92007-11-21 15:58:01 +0900545
Paul Mundtb5f42db2007-11-08 18:38:14 +0900546endchoice
547
Paul Mundt3cc000b2009-04-11 08:39:27 +0900548endif
549
Paul Mundtcad82442006-01-16 22:14:19 -0800550source "arch/sh/mm/Kconfig"
Paul Mundt939a24a2008-07-29 21:41:37 +0900551
Paul Mundt4690bdc2007-11-09 13:45:42 +0900552source "arch/sh/Kconfig.cpu"
Paul Mundtcad82442006-01-16 22:14:19 -0800553
Paul Mundt939a24a2008-07-29 21:41:37 +0900554source "arch/sh/boards/Kconfig"
Paul Mundtf3d22292007-05-14 17:29:12 +0900555
Paul Mundt32351a22007-03-12 14:38:59 +0900556menu "Timer and clock configuration"
557
Paul Mundtcad82442006-01-16 22:14:19 -0800558config SH_PCLK_FREQ
559 int "Peripheral clock frequency (in Hz)"
Paul Mundt8152a742009-12-29 11:09:30 +0900560 depends on SH_CLK_CPG_LEGACY
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900561 default "31250000" if CPU_SUBTYPE_SH7619
Paul Mundt8152a742009-12-29 11:09:30 +0900562 default "33333333" if CPU_SUBTYPE_SH7770 || \
563 CPU_SUBTYPE_SH7760 || \
564 CPU_SUBTYPE_SH7705 || \
565 CPU_SUBTYPE_SH7203 || \
566 CPU_SUBTYPE_SH7206 || \
567 CPU_SUBTYPE_SH7263 || \
Paul Mundt43a18392010-01-19 19:37:14 +0900568 CPU_SUBTYPE_MXG
Paul Mundt05627482007-05-15 16:25:47 +0900569 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
Paul Mundtcad82442006-01-16 22:14:19 -0800570 default "66000000" if CPU_SUBTYPE_SH4_202
Paul Mundt05627482007-05-15 16:25:47 +0900571 default "50000000"
Paul Mundtcad82442006-01-16 22:14:19 -0800572 help
573 This option is used to specify the peripheral clock frequency.
574 This is necessary for determining the reference clock value on
575 platforms lacking an RTC.
576
Paul Mundt36aa1e32009-05-22 14:00:34 +0900577config SH_CLK_CPG
578 def_bool y
579
Paul Mundt253b0882009-05-13 17:38:11 +0900580config SH_CLK_CPG_LEGACY
Paul Mundt36aa1e32009-05-22 14:00:34 +0900581 depends on SH_CLK_CPG
Paul Mundt43a18392010-01-19 19:37:14 +0900582 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
Phil Edworthy51ce3062012-05-09 07:59:27 +0100583 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
Paul Mundtbcb86e02012-05-10 17:20:56 +0900584 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
585 !CPU_SUBTYPE_SH7269
Paul Mundt253b0882009-05-13 17:38:11 +0900586
Paul Mundt32351a22007-03-12 14:38:59 +0900587endmenu
588
Paul Mundtcad82442006-01-16 22:14:19 -0800589menu "CPU Frequency scaling"
Paul Mundtcad82442006-01-16 22:14:19 -0800590source "drivers/cpufreq/Kconfig"
Paul Mundtcad82442006-01-16 22:14:19 -0800591endmenu
592
Paul Mundt9f5e8ee2006-11-24 11:22:57 +0900593source "arch/sh/drivers/Kconfig"
594
Paul Mundtcad82442006-01-16 22:14:19 -0800595endmenu
596
Paul Mundtcad82442006-01-16 22:14:19 -0800597menu "Kernel features"
598
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900599source "kernel/Kconfig.hz"
Paul Mundt91b91d02006-09-27 18:08:33 +0900600
Paul Mundtcad82442006-01-16 22:14:19 -0800601config KEXEC
602 bool "kexec system call (EXPERIMENTAL)"
Kees Cook0d57af12013-01-16 18:53:26 -0800603 depends on SUPERH32 && MMU
Dave Young2965faa2015-09-09 15:38:55 -0700604 select KEXEC_CORE
Paul Mundtcad82442006-01-16 22:14:19 -0800605 help
606 kexec is a system call that implements the ability to shutdown your
607 current kernel, and to start another kernel. It is like a reboot
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400608 but it is independent of the system firmware. And like a reboot
Paul Mundtcad82442006-01-16 22:14:19 -0800609 you can start any kernel with it, not just Linux.
610
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400611 The name comes from the similarity to the exec system call.
Paul Mundtcad82442006-01-16 22:14:19 -0800612
613 It is an ongoing process to be certain the hardware in a machine
614 is properly shutdown, so do not be surprised if this code does not
Geert Uytterhoevenbf220692013-08-20 21:38:03 +0200615 initially work for you. As of this writing the exact hardware
616 interface is strongly in flux, so no good recommendation can be
617 made.
Paul Mundtcad82442006-01-16 22:14:19 -0800618
Paul Mundt4d5ade52007-04-27 11:25:57 +0900619config CRASH_DUMP
620 bool "kernel crash dumps (EXPERIMENTAL)"
Kees Cook0d57af12013-01-16 18:53:26 -0800621 depends on SUPERH32 && BROKEN_ON_SMP
Paul Mundt4d5ade52007-04-27 11:25:57 +0900622 help
623 Generate crash dump after being started by kexec.
624 This should be normally only set in special crash dump kernels
625 which are loaded in the main kernel with kexec-tools into
626 a specially reserved region and then later executed after
627 a crash by kdump/kexec. The crash dump kernel must be compiled
628 to a memory address not used by the main kernel using
Simon Hormane66ac3f2011-09-15 20:13:00 +0900629 PHYSICAL_START.
Paul Mundt4d5ade52007-04-27 11:25:57 +0900630
631 For more details see Documentation/kdump/kdump.txt
632
Magnus Dammb7cf6dd2009-03-18 08:51:29 +0000633config KEXEC_JUMP
634 bool "kexec jump (EXPERIMENTAL)"
Kees Cook0d57af12013-01-16 18:53:26 -0800635 depends on SUPERH32 && KEXEC && HIBERNATION
Magnus Dammb7cf6dd2009-03-18 08:51:29 +0000636 help
637 Jump between original kernel and kexeced kernel and invoke
638 code via KEXEC
639
Simon Hormane66ac3f2011-09-15 20:13:00 +0900640config PHYSICAL_START
641 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
642 default MEMORY_START
643 ---help---
644 This gives the physical address where the kernel is loaded
645 and is ordinarily the same as MEMORY_START.
646
647 Different values are primarily used in the case of kexec on panic
648 where the fail safe kernel needs to run at a different address
649 than the panic-ed kernel.
650
Paul Mundtc4637d42008-07-30 15:30:52 +0900651config SECCOMP
652 bool "Enable seccomp to safely compute untrusted bytecode"
653 depends on PROC_FS
Paul Mundtc4637d42008-07-30 15:30:52 +0900654 help
655 This kernel feature is useful for number crunching applications
656 that may need to compute untrusted bytecode during their
657 execution. By using pipes or other transports made available to
658 the process as file descriptors supporting the read/write
659 syscalls, it's possible to isolate those applications in
660 their own address space using seccomp. Once seccomp is
661 enabled via prctl, it cannot be disabled and the task is only
662 allowed to execute a few safe syscalls defined by each seccomp
663 mode.
664
665 If unsure, say N.
666
Linus Torvalds1da177e2005-04-16 15:20:36 -0700667config SMP
668 bool "Symmetric multi-processing support"
Paul Mundt357d5942007-06-11 15:32:07 +0900669 depends on SYS_SUPPORTS_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700670 ---help---
671 This enables support for systems with more than one CPU. If you have
Robert Graffham4a474152014-01-23 15:55:29 -0800672 a system with only one CPU, say N. If you have a system with more
673 than one CPU, say Y.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700674
Robert Graffham4a474152014-01-23 15:55:29 -0800675 If you say N here, the kernel will run on uni- and multiprocessor
Linus Torvalds1da177e2005-04-16 15:20:36 -0700676 machines, but will use only one CPU of a multiprocessor machine. If
677 you say Y here, the kernel will run on many, but not all,
Robert Graffham4a474152014-01-23 15:55:29 -0800678 uniprocessor machines. On a uniprocessor machine, the kernel
Linus Torvalds1da177e2005-04-16 15:20:36 -0700679 will run faster if you say N here.
680
681 People using multiprocessor machines who say Y here should also say
682 Y to "Enhanced Real Time Clock Support", below.
683
Mauro Carvalho Chehabecf38672018-05-08 23:44:08 -0300684 See also <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO
Adrian Bunk03502fa2008-02-03 15:50:21 +0200685 available at <http://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700686
687 If you don't know what to do here, say N.
688
689config NR_CPUS
690 int "Maximum number of CPUs (2-32)"
691 range 2 32
692 depends on SMP
Paul Mundt2eb2a432009-06-19 16:00:00 +0900693 default "4" if CPU_SUBTYPE_SHX3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700694 default "2"
695 help
696 This allows you to specify the maximum number of CPUs which this
697 kernel will support. The maximum supported value is 32 and the
698 minimum value which makes sense is 2.
699
700 This is purely to save memory - each supported CPU adds
701 approximately eight kilobytes to the kernel image.
702
Paul Mundt763142d2010-04-26 19:08:55 +0900703config HOTPLUG_CPU
704 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
Stephen Rothwell40b31362013-05-21 13:49:35 +1000705 depends on SMP
Paul Mundt763142d2010-04-26 19:08:55 +0900706 help
707 Say Y here to experiment with turning CPUs off and on. CPUs
708 can be controlled through /sys/devices/system/cpu.
709
Paul Mundt83662462007-09-28 16:04:49 +0900710config GUSA
711 def_bool y
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900712 depends on !SMP && SUPERH32
Paul Mundt83662462007-09-28 16:04:49 +0900713 help
714 This enables support for gUSA (general UserSpace Atomicity).
715 This is the default implementation for both UP and non-ll/sc
716 CPUs, and is used by the libc, amongst others.
717
718 For additional information, design information can be found
719 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
720
721 This should only be disabled for special cases where alternate
722 atomicity implementations exist.
723
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900724config GUSA_RB
725 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
726 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
727 help
728 Enabling this option will allow the kernel to implement some
Matt LaPlante692105b2009-01-26 11:12:25 +0100729 atomic operations using a software implementation of load-locked/
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900730 store-conditional (LLSC). On machines which do not have hardware
731 LLSC, this should be more efficient than the other alternative of
Matt LaPlante692105b2009-01-26 11:12:25 +0100732 disabling interrupts around the atomic sequence.
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900733
Matt Fleming86c8c042010-09-10 20:36:23 +0100734config HW_PERF_EVENTS
735 bool "Enable hardware performance counter support for perf events"
736 depends on PERF_EVENTS && CPU_HAS_PMU
737 default y
738 help
739 Enable hardware performance counter support for perf events. If
740 disabled, perf events will use software events only.
741
Paul Mundt43b87742010-04-13 14:43:03 +0900742source "drivers/sh/Kconfig"
743
Paul Mundtcad82442006-01-16 22:14:19 -0800744endmenu
745
746menu "Boot options"
747
Rich Felker190fe192016-03-26 01:24:30 +0000748config USE_BUILTIN_DTB
749 bool "Use builtin DTB"
750 default n
751 depends on SH_DEVICE_TREE
752 help
753 Link a device tree blob for particular hardware into the kernel,
754 suppressing use of the DTB pointer provided by the bootloader.
755 This option should only be used with legacy bootloaders that are
756 not capable of providing a DTB to the kernel, or for experimental
757 hardware without stable device tree bindings.
758
759config BUILTIN_DTB_SOURCE
760 string "Source file for builtin DTB"
761 default ""
762 depends on USE_BUILTIN_DTB
763 help
764 Base name (without suffix, relative to arch/sh/boot/dts) for the
765 a DTS file that will be used to produce the DTB linked into the
766 kernel.
767
Paul Mundtcad82442006-01-16 22:14:19 -0800768config ZERO_PAGE_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900769 hex
770 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
771 SH_7751_SOLUTION_ENGINE
772 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
Paul Mundt7a847f82006-12-26 15:29:19 +0900773 default "0x00002000" if PAGE_SIZE_8KB
Paul Mundtcad82442006-01-16 22:14:19 -0800774 default "0x00001000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700775 help
Paul Mundtcad82442006-01-16 22:14:19 -0800776 This sets the default offset of zero page.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700777
Paul Mundtcad82442006-01-16 22:14:19 -0800778config BOOT_LINK_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900779 hex
780 default "0x00210000" if SH_SHMIN
Paul Mundta2e76c82009-05-10 00:54:39 +0900781 default "0x00400000" if SH_CAYMAN
Paul Mundtb412a49a2009-05-10 01:23:25 +0900782 default "0x00810000" if SH_7780_SOLUTION_ENGINE
783 default "0x009e0000" if SH_TITAN
784 default "0x01800000" if SH_SDK7780
785 default "0x02000000" if SH_EDOSK7760
Paul Mundtcad82442006-01-16 22:14:19 -0800786 default "0x00800000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700787 help
Paul Mundtcad82442006-01-16 22:14:19 -0800788 This option allows you to set the link address offset of the zImage.
789 This can be useful if you are on a board which has a small amount of
790 memory.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700791
Paul Mundtb412a49a2009-05-10 01:23:25 +0900792config ENTRY_OFFSET
793 hex
794 default "0x00001000" if PAGE_SIZE_4KB
795 default "0x00002000" if PAGE_SIZE_8KB
796 default "0x00004000" if PAGE_SIZE_16KB
797 default "0x00010000" if PAGE_SIZE_64KB
798 default "0x00000000"
799
Magnus Damm4705b2e2010-05-18 14:43:15 +0000800config ROMIMAGE_MMCIF
801 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
Kees Cook0d57af12013-01-16 18:53:26 -0800802 depends on CPU_SUBTYPE_SH7724
Magnus Damm4705b2e2010-05-18 14:43:15 +0000803 help
804 Say Y here to include experimental MMCIF loading code in
805 romImage. With this enabled it is possible to write the romImage
806 kernel image to an MMC card and boot the kernel straight from
807 the reset vector. At reset the processor Mask ROM will load the
808 first part of the romImage which in turn loads the rest the kernel
809 image to RAM using the MMCIF hardware block.
810
Pawel Molld724a9c2009-08-24 16:25:38 +0900811choice
812 prompt "Kernel command line"
813 optional
814 default CMDLINE_OVERWRITE
815 help
816 Setting this option allows the kernel command line arguments
817 to be set.
818
819config CMDLINE_OVERWRITE
820 bool "Overwrite bootloader kernel arguments"
821 help
822 Given string will overwrite any arguments passed in by
823 a bootloader.
824
825config CMDLINE_EXTEND
826 bool "Extend bootloader kernel arguments"
827 help
828 Given string will be concatenated with arguments passed in
829 by a bootloader.
830
831endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700832
Paul Mundtcad82442006-01-16 22:14:19 -0800833config CMDLINE
Pawel Molld724a9c2009-08-24 16:25:38 +0900834 string "Kernel command line arguments string"
835 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
Paul Mundtcad82442006-01-16 22:14:19 -0800836 default "console=ttySC1,115200"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700837
838endmenu
839
Paul Mundtcad82442006-01-16 22:14:19 -0800840menu "Bus options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700841
Paul Mundtcad82442006-01-16 22:14:19 -0800842config SUPERHYWAY
843 tristate "SuperHyway Bus support"
844 depends on CPU_SUBTYPE_SH4_202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700845
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900846config MAPLE
Paul Mundte16038a2009-01-09 15:12:30 +0900847 bool "Maple Bus support"
848 depends on SH_DREAMCAST
849 help
850 The Maple Bus is SEGA's serial communication bus for peripherals
851 on the Dreamcast. Without this bus support you won't be able to
852 get your Dreamcast keyboard etc to work, so most users
853 probably want to say 'Y' here, unless you are only using the
854 Dreamcast with a serial line terminal or a remote network
855 connection.
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900856
Linus Torvalds1da177e2005-04-16 15:20:36 -0700857endmenu
858
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900859menu "Power management options (EXPERIMENTAL)"
Johannes Bergf4cb5702007-12-08 02:14:00 +0100860
Magnus Dammc6f17cb2008-12-04 22:45:20 +0900861source "kernel/power/Kconfig"
862
863source "drivers/cpuidle/Kconfig"
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900864
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900865endmenu