blob: 3689c049e151fd07b76f08097c9508ed6b49d7fc [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001config SUPERH
Paul Mundtea0e1a92007-11-21 15:58:01 +09002 def_bool y
Paul Mundt7a440c92006-09-27 18:18:31 +09003 select EMBEDDED
David Brownell9483a572008-07-23 21:26:48 -07004 select HAVE_CLK
Paul Mundt86e4dd52010-05-25 20:06:13 +09005 select HAVE_IDE if HAS_IOPORT
Yinghai Lu95f72d12010-07-12 14:36:09 +10006 select HAVE_MEMBLOCK
Mathieu Desnoyers42d4b832008-02-02 15:10:34 -05007 select HAVE_OPROFILE
Dmitry Baryshkov9de90ac2008-07-18 13:30:31 +04008 select HAVE_GENERIC_DMA_COHERENT
Paul Mundtd7b01f72008-12-10 20:17:15 +09009 select HAVE_ARCH_TRACEHOOK
Paul Mundtf802d962009-04-09 10:36:54 -070010 select HAVE_DMA_API_DEBUG
Paul Mundt73c926b2009-10-20 12:55:56 +090011 select HAVE_DMA_ATTRS
Ingo Molnarcdd6c482009-09-21 12:02:48 +020012 select HAVE_PERF_EVENTS
Paul Mundt72f0c132009-10-27 17:08:55 +090013 select PERF_USE_VMALLOC
Paul Mundtdf8ce252009-07-12 01:37:30 +090014 select HAVE_KERNEL_GZIP
Paul Mundt07e88e12009-07-11 13:21:19 -040015 select HAVE_KERNEL_BZIP2
16 select HAVE_KERNEL_LZMA
Paul Mundtc7b16ef2010-01-13 13:29:19 +090017 select HAVE_KERNEL_LZO
Paul Mundta74f7e02009-09-16 14:30:34 +090018 select HAVE_SYSCALL_TRACEPOINTS
Paul Mundt6eac1af2009-05-08 19:48:47 +090019 select RTC_LIB
Paul Mundtf01789c2009-06-17 10:43:13 +090020 select GENERIC_ATOMIC64
Linus Torvalds1da177e2005-04-16 15:20:36 -070021 help
22 The SuperH is a RISC processor targeted for use in embedded systems
23 and consumer electronics; it was also used in the Sega Dreamcast
24 gaming console. The SuperH port has a home page at
25 <http://www.linux-sh.org/>.
26
Paul Mundt39d28a22007-11-08 18:39:33 +090027config SUPERH32
Paul Mundt3cc000b2009-04-11 08:39:27 +090028 def_bool ARCH = "sh"
Chris Smithd39f5452008-09-05 17:15:39 +090029 select HAVE_KPROBES
30 select HAVE_KRETPROBES
Paul Mundt6d63e732010-01-19 14:00:14 +090031 select HAVE_IOREMAP_PROT if MMU && !X2TLB
Paul Mundt694f94f2008-10-31 16:20:36 +090032 select HAVE_FUNCTION_TRACER
Matt Flemingfad57fe2008-11-12 20:11:47 +090033 select HAVE_FTRACE_MCOUNT_RECORD
34 select HAVE_DYNAMIC_FTRACE
Matt Flemingc1340c02009-06-28 14:05:44 +010035 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
Paul Mundte4b053d2009-10-13 16:52:50 +090036 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
Matt Fleming327933f2009-07-11 00:29:03 +000037 select HAVE_FUNCTION_GRAPH_TRACER
Paul Mundtab6e5702008-12-11 18:46:46 +090038 select HAVE_ARCH_KGDB
Paul Mundt6fbfe8d2010-01-06 15:46:53 +090039 select HAVE_HW_BREAKPOINT
Frederic Weisbecker01027522010-04-11 18:55:56 +020040 select HAVE_MIXED_BREAKPOINTS_REGS
Paul Mundt6c0ee6a2009-12-21 17:35:00 +090041 select PERF_EVENTS if HAVE_HW_BREAKPOINT
Paul Mundt8dafc342009-04-02 11:56:38 +090042 select ARCH_HIBERNATION_POSSIBLE if MMU
Paul Mundtea0e1a92007-11-21 15:58:01 +090043
44config SUPERH64
Paul Mundt3cc000b2009-04-11 08:39:27 +090045 def_bool ARCH = "sh64"
Paul Mundt39d28a22007-11-08 18:39:33 +090046
Paul Mundtf42b7e32008-07-29 20:12:51 +090047config ARCH_DEFCONFIG
48 string
49 default "arch/sh/configs/shx3_defconfig" if SUPERH32
50 default "arch/sh/configs/cayman_defconfig" if SUPERH64
51
Linus Torvalds1da177e2005-04-16 15:20:36 -070052config RWSEM_GENERIC_SPINLOCK
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090053 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070054
55config RWSEM_XCHGADD_ALGORITHM
56 bool
57
Paul Mundtfa691512007-03-08 19:41:21 +090058config GENERIC_BUG
59 def_bool y
Paul Mundta82d53e2007-11-21 18:22:05 +090060 depends on BUG && SUPERH32
Paul Mundtfa691512007-03-08 19:41:21 +090061
Paul Mundt3767f3f2009-06-15 00:00:42 +090062config GENERIC_CSUM
63 def_bool y
64 depends on SUPERH64
65
Akinobu Mitae2268c72006-03-26 01:39:35 -080066config GENERIC_FIND_NEXT_BIT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090067 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -080068
69config GENERIC_HWEIGHT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090070 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -080071
Linus Torvalds1da177e2005-04-16 15:20:36 -070072config GENERIC_HARDIRQS
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090073 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070074
Paul Mundt5093c9a2008-08-04 14:17:13 +090075config GENERIC_HARDIRQS_NO__DO_IRQ
76 def_bool y
77
Paul Mundt2eb2a432009-06-19 16:00:00 +090078config IRQ_PER_CPU
79 def_bool y
80
Paul Mundt4b842c82010-02-02 19:15:17 +090081config SPARSE_IRQ
82 def_bool y
83 depends on SUPERH32
84
Magnus Damm2967dab2008-10-08 20:41:43 +090085config GENERIC_GPIO
86 def_bool n
87
Linus Torvalds1da177e2005-04-16 15:20:36 -070088config GENERIC_CALIBRATE_DELAY
Paul Mundtcf204fa2008-09-08 20:47:42 +090089 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -070090
Paul Mundtcad82442006-01-16 22:14:19 -080091config GENERIC_IOMAP
92 bool
93
Paul Mundt57be2b42007-05-09 17:33:24 +090094config GENERIC_CLOCKEVENTS
Paul Mundt938edae2009-05-03 18:12:26 +090095 def_bool y
Paul Mundt57be2b42007-05-09 17:33:24 +090096
Paul Mundt8c245942008-08-06 18:37:07 +090097config GENERIC_CLOCKEVENTS_BROADCAST
98 bool
99
Paul Mundt6d134b92009-05-08 16:36:13 +0900100config GENERIC_CMOS_UPDATE
101 def_bool y
102 depends on SH_SH03 || SH_DREAMCAST
103
Paul Mundtbdcab872008-08-04 14:09:15 +0900104config GENERIC_LOCKBREAK
105 def_bool y
106 depends on SMP && PREEMPT
107
Paul Mundt357d5942007-06-11 15:32:07 +0900108config SYS_SUPPORTS_PM
109 bool
Magnus Dammaf998a92008-12-04 22:45:12 +0900110 depends on !SMP
111
112config ARCH_SUSPEND_POSSIBLE
113 def_bool n
114
115config ARCH_HIBERNATION_POSSIBLE
116 def_bool n
Paul Mundt357d5942007-06-11 15:32:07 +0900117
Paul Mundt0a9b0db2007-01-24 21:56:20 +0900118config SYS_SUPPORTS_APM_EMULATION
119 bool
Magnus Dammaf998a92008-12-04 22:45:12 +0900120 select ARCH_SUSPEND_POSSIBLE
Paul Mundt357d5942007-06-11 15:32:07 +0900121
Paul Mundtffb4a732009-10-27 07:22:37 +0900122config SYS_SUPPORTS_HUGETLBFS
123 bool
124
Paul Mundt357d5942007-06-11 15:32:07 +0900125config SYS_SUPPORTS_SMP
126 bool
127
128config SYS_SUPPORTS_NUMA
129 bool
130
131config SYS_SUPPORTS_PCI
132 bool
Paul Mundt0a9b0db2007-01-24 21:56:20 +0900133
Paul Mundtf5ad8812009-01-29 18:08:58 +0900134config SYS_SUPPORTS_CMT
135 bool
136
Magnus Dammd5ed4c22009-04-30 07:02:49 +0000137config SYS_SUPPORTS_MTU2
138 bool
139
Magnus Damm9570ef22009-05-01 06:51:00 +0000140config SYS_SUPPORTS_TMU
141 bool
142
Paul Mundtafbfb522006-12-04 18:17:28 +0900143config STACKTRACE_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900144 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900145
146config LOCKDEP_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900147 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900148
Paul Mundt5a89f1a2008-09-13 01:44:03 +0900149config HAVE_LATENCYTOP_SUPPORT
150 def_bool y
Paul Mundt5a89f1a2008-09-13 01:44:03 +0900151
David Howellsf0d1b0b2006-12-08 02:37:49 -0800152config ARCH_HAS_ILOG2_U32
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900153 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800154
155config ARCH_HAS_ILOG2_U64
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900156 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800157
Paul Mundte257ad02007-07-25 11:18:00 +0900158config ARCH_NO_VIRT_TO_BUS
159 def_bool y
160
Paul Mundte869a902009-04-02 13:08:31 +0900161config ARCH_HAS_DEFAULT_IDLE
162 def_bool y
163
Paul Mundt2e046b92009-06-19 14:40:51 +0900164config ARCH_HAS_CPU_IDLE_WAIT
165 def_bool y
166
Paul Mundt86e4dd52010-05-25 20:06:13 +0900167config NO_IOPORT
168 bool
169
Magnus Damme7cc9a72008-02-07 20:18:21 +0900170config IO_TRAPPED
171 bool
172
Paul Mundt01be5d62009-10-27 10:35:02 +0900173config DMA_COHERENT
174 bool
175
176config DMA_NONCOHERENT
177 def_bool !DMA_COHERENT
178
FUJITA Tomonori5cabbb62010-03-10 15:23:27 -0800179config NEED_DMA_MAP_STATE
180 def_bool DMA_NONCOHERENT
181
FUJITA Tomonori18e98302010-05-26 14:44:32 -0700182config NEED_SG_DMA_LENGTH
183 def_bool y
184
Linus Torvalds1da177e2005-04-16 15:20:36 -0700185source "init/Kconfig"
186
Matt Helsleydc52ddc2008-10-18 20:27:21 -0700187source "kernel/Kconfig.freezer"
188
Linus Torvalds1da177e2005-04-16 15:20:36 -0700189menu "System type"
190
Paul Mundtb5f42db2007-11-08 18:38:14 +0900191#
192# Processor families
193#
194config CPU_SH2
195 bool
196
197config CPU_SH2A
198 bool
199 select CPU_SH2
200
201config CPU_SH3
202 bool
203 select CPU_HAS_INTEVT
204 select CPU_HAS_SR_RB
Paul Mundt4fa48e12009-05-08 15:28:15 +0900205 select SYS_SUPPORTS_TMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900206
207config CPU_SH4
208 bool
209 select CPU_HAS_INTEVT
210 select CPU_HAS_SR_RB
Paul Mundtb5f42db2007-11-08 18:38:14 +0900211 select CPU_HAS_FPU if !CPU_SH4AL_DSP
Paul Mundt4fa48e12009-05-08 15:28:15 +0900212 select SYS_SUPPORTS_TMU
Paul Mundtffb4a732009-10-27 07:22:37 +0900213 select SYS_SUPPORTS_HUGETLBFS if MMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900214
215config CPU_SH4A
216 bool
217 select CPU_SH4
218
219config CPU_SH4AL_DSP
220 bool
221 select CPU_SH4A
222 select CPU_HAS_DSP
223
Paul Mundtea0e1a92007-11-21 15:58:01 +0900224config CPU_SH5
225 bool
226 select CPU_HAS_FPU
Paul Mundtadd47062009-05-08 16:12:17 +0900227 select SYS_SUPPORTS_TMU
Paul Mundtffb4a732009-10-27 07:22:37 +0900228 select SYS_SUPPORTS_HUGETLBFS if MMU
Paul Mundtea0e1a92007-11-21 15:58:01 +0900229
Paul Mundtb5f42db2007-11-08 18:38:14 +0900230config CPU_SHX2
231 bool
232
233config CPU_SHX3
234 bool
Paul Mundt01be5d62009-10-27 10:35:02 +0900235 select DMA_COHERENT
Paul Mundt4b478ee2010-05-11 15:24:04 +0900236 select SYS_SUPPORTS_SMP
237 select SYS_SUPPORTS_NUMA
Paul Mundtb5f42db2007-11-08 18:38:14 +0900238
Paul Mundtdc65a972009-03-10 16:26:29 +0900239config ARCH_SHMOBILE
240 bool
Magnus Damm77594912009-03-13 15:23:04 +0000241 select ARCH_SUSPEND_POSSIBLE
Magnus Dammac2c5962009-08-19 10:31:53 +0000242 select PM
243 select PM_RUNTIME
Paul Mundtdc65a972009-03-10 16:26:29 +0900244
Paul Mundt3cc000b2009-04-11 08:39:27 +0900245if SUPERH32
246
Paul Mundtb5f42db2007-11-08 18:38:14 +0900247choice
248 prompt "Processor sub-type selection"
249
250#
251# Processor subtypes
252#
253
254# SH-2 Processor Support
255
256config CPU_SUBTYPE_SH7619
257 bool "Support SH7619 processor"
258 select CPU_SH2
Paul Mundtf5ad8812009-01-29 18:08:58 +0900259 select SYS_SUPPORTS_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900260
261# 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 Dammda107c62009-04-30 07:06:26 +0000267 select SYS_SUPPORTS_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
Paul Mundtf5ad8812009-01-29 18:08:58 +0900273 select SYS_SUPPORTS_CMT
Magnus Dammda107c62009-04-30 07:06:26 +0000274 select SYS_SUPPORTS_MTU2
Paul Mundt6d01f512007-11-26 18:17:21 +0900275
Paul Mundtb5f42db2007-11-08 18:38:14 +0900276config CPU_SUBTYPE_SH7206
277 bool "Support SH7206 processor"
278 select CPU_SH2A
Paul Mundtf5ad8812009-01-29 18:08:58 +0900279 select SYS_SUPPORTS_CMT
Magnus Dammda107c62009-04-30 07:06:26 +0000280 select SYS_SUPPORTS_MTU2
Paul Mundtb5f42db2007-11-08 18:38:14 +0900281
Paul Mundta8f67f42007-11-26 19:54:02 +0900282config CPU_SUBTYPE_SH7263
283 bool "Support SH7263 processor"
284 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900285 select CPU_HAS_FPU
Paul Mundtf5ad8812009-01-29 18:08:58 +0900286 select SYS_SUPPORTS_CMT
Magnus Dammda107c62009-04-30 07:06:26 +0000287 select SYS_SUPPORTS_MTU2
Paul Mundta8f67f42007-11-26 19:54:02 +0900288
Paul Mundt2ad69902008-03-13 12:52:44 +0900289config CPU_SUBTYPE_MXG
290 bool "Support MX-G processor"
291 select CPU_SH2A
Magnus Dammda107c62009-04-30 07:06:26 +0000292 select SYS_SUPPORTS_MTU2
Paul Mundt2ad69902008-03-13 12:52:44 +0900293 help
294 Select MX-G if running on an R8A03022BG part.
295
Paul Mundtb5f42db2007-11-08 18:38:14 +0900296# SH-3 Processor Support
297
298config CPU_SUBTYPE_SH7705
299 bool "Support SH7705 processor"
300 select CPU_SH3
301
302config CPU_SUBTYPE_SH7706
303 bool "Support SH7706 processor"
304 select CPU_SH3
305 help
306 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
307
308config CPU_SUBTYPE_SH7707
309 bool "Support SH7707 processor"
310 select CPU_SH3
311 help
312 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
313
314config CPU_SUBTYPE_SH7708
315 bool "Support SH7708 processor"
316 select CPU_SH3
317 help
318 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
319 if you have a 100 Mhz SH-3 HD6417708R CPU.
320
321config CPU_SUBTYPE_SH7709
322 bool "Support SH7709 processor"
323 select CPU_SH3
324 help
325 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
326
327config CPU_SUBTYPE_SH7710
328 bool "Support SH7710 processor"
329 select CPU_SH3
330 select CPU_HAS_DSP
331 help
332 Select SH7710 if you have a SH3-DSP SH7710 CPU.
333
334config CPU_SUBTYPE_SH7712
335 bool "Support SH7712 processor"
336 select CPU_SH3
337 select CPU_HAS_DSP
338 help
339 Select SH7712 if you have a SH3-DSP SH7712 CPU.
340
341config CPU_SUBTYPE_SH7720
342 bool "Support SH7720 processor"
343 select CPU_SH3
344 select CPU_HAS_DSP
Magnus Damm2b23a882009-05-12 10:21:11 +0000345 select SYS_SUPPORTS_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900346 help
347 Select SH7720 if you have a SH3-DSP SH7720 CPU.
348
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900349config CPU_SUBTYPE_SH7721
350 bool "Support SH7721 processor"
351 select CPU_SH3
352 select CPU_HAS_DSP
Magnus Damm2b23a882009-05-12 10:21:11 +0000353 select SYS_SUPPORTS_CMT
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900354 help
355 Select SH7721 if you have a SH3-DSP SH7721 CPU.
356
Paul Mundtb5f42db2007-11-08 18:38:14 +0900357# SH-4 Processor Support
358
359config CPU_SUBTYPE_SH7750
360 bool "Support SH7750 processor"
361 select CPU_SH4
362 help
363 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
364
365config CPU_SUBTYPE_SH7091
366 bool "Support SH7091 processor"
367 select CPU_SH4
368 help
369 Select SH7091 if you have an SH-4 based Sega device (such as
370 the Dreamcast, Naomi, and Naomi 2).
371
372config CPU_SUBTYPE_SH7750R
373 bool "Support SH7750R processor"
374 select CPU_SH4
375
376config CPU_SUBTYPE_SH7750S
377 bool "Support SH7750S processor"
378 select CPU_SH4
379
380config CPU_SUBTYPE_SH7751
381 bool "Support SH7751 processor"
382 select CPU_SH4
383 help
384 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
385 or if you have a HD6417751R CPU.
386
387config CPU_SUBTYPE_SH7751R
388 bool "Support SH7751R processor"
389 select CPU_SH4
390
391config CPU_SUBTYPE_SH7760
392 bool "Support SH7760 processor"
393 select CPU_SH4
394
395config CPU_SUBTYPE_SH4_202
396 bool "Support SH4-202 processor"
397 select CPU_SH4
398
399# SH-4A Processor Support
400
Paul Mundt178dd0c2008-04-09 17:56:18 +0900401config CPU_SUBTYPE_SH7723
402 bool "Support SH7723 processor"
403 select CPU_SH4A
404 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900405 select ARCH_SHMOBILE
Paul Mundt178dd0c2008-04-09 17:56:18 +0900406 select ARCH_SPARSEMEM_ENABLE
Paul Mundtf5ad8812009-01-29 18:08:58 +0900407 select SYS_SUPPORTS_CMT
Paul Mundt178dd0c2008-04-09 17:56:18 +0900408 help
409 Select SH7723 if you have an SH-MobileR2 CPU.
410
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900411config CPU_SUBTYPE_SH7724
412 bool "Support SH7724 processor"
413 select CPU_SH4A
414 select CPU_SHX2
Paul Mundt59fe7002009-04-16 15:43:42 +0900415 select ARCH_SHMOBILE
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900416 select ARCH_SPARSEMEM_ENABLE
417 select SYS_SUPPORTS_CMT
418 help
419 Select SH7724 if you have an SH-MobileR2R CPU.
420
Yoshihiro Shimodac01f0f12009-08-21 16:30:28 +0900421config CPU_SUBTYPE_SH7757
422 bool "Support SH7757 processor"
423 select CPU_SH4A
424 select CPU_SHX2
425 help
426 Select SH7757 if you have a SH4A SH7757 CPU.
427
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900428config CPU_SUBTYPE_SH7763
429 bool "Support SH7763 processor"
430 select CPU_SH4A
431 help
432 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
433
Paul Mundtb5f42db2007-11-08 18:38:14 +0900434config CPU_SUBTYPE_SH7770
435 bool "Support SH7770 processor"
436 select CPU_SH4A
437
438config CPU_SUBTYPE_SH7780
439 bool "Support SH7780 processor"
440 select CPU_SH4A
441
442config CPU_SUBTYPE_SH7785
443 bool "Support SH7785 processor"
444 select CPU_SH4A
445 select CPU_SHX2
446 select ARCH_SPARSEMEM_ENABLE
447 select SYS_SUPPORTS_NUMA
448
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
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900455
Paul Mundtb5f42db2007-11-08 18:38:14 +0900456config CPU_SUBTYPE_SHX3
457 bool "Support SH-X3 processor"
458 select CPU_SH4A
459 select CPU_SHX3
Paul Mundt58402632008-09-05 15:36:39 +0900460 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Paul Mundtb5f42db2007-11-08 18:38:14 +0900461
462# SH4AL-DSP Processor Support
463
464config CPU_SUBTYPE_SH7343
465 bool "Support SH7343 processor"
466 select CPU_SH4AL_DSP
Paul Mundtdc65a972009-03-10 16:26:29 +0900467 select ARCH_SHMOBILE
Paul Mundtf5ad8812009-01-29 18:08:58 +0900468 select SYS_SUPPORTS_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900469
470config CPU_SUBTYPE_SH7722
471 bool "Support SH7722 processor"
472 select CPU_SH4AL_DSP
473 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900474 select ARCH_SHMOBILE
Paul Mundtb5f42db2007-11-08 18:38:14 +0900475 select ARCH_SPARSEMEM_ENABLE
476 select SYS_SUPPORTS_NUMA
Paul Mundtf5ad8812009-01-29 18:08:58 +0900477 select SYS_SUPPORTS_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900478
Magnus Damm9109a302008-02-08 17:31:24 +0900479config CPU_SUBTYPE_SH7366
480 bool "Support SH7366 processor"
481 select CPU_SH4AL_DSP
482 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900483 select ARCH_SHMOBILE
Magnus Damm9109a302008-02-08 17:31:24 +0900484 select ARCH_SPARSEMEM_ENABLE
485 select SYS_SUPPORTS_NUMA
Paul Mundtf5ad8812009-01-29 18:08:58 +0900486 select SYS_SUPPORTS_CMT
Magnus Damm9109a302008-02-08 17:31:24 +0900487
Paul Mundt3cc000b2009-04-11 08:39:27 +0900488endchoice
489
490endif
491
492if SUPERH64
493
494choice
495 prompt "Processor sub-type selection"
496
Paul Mundtea0e1a92007-11-21 15:58:01 +0900497# SH-5 Processor Support
498
499config CPU_SUBTYPE_SH5_101
500 bool "Support SH5-101 processor"
501 select CPU_SH5
502
503config CPU_SUBTYPE_SH5_103
504 bool "Support SH5-103 processor"
Paul Mundt8ef97dd2008-02-14 15:30:54 +0900505 select CPU_SH5
Paul Mundtea0e1a92007-11-21 15:58:01 +0900506
Paul Mundtb5f42db2007-11-08 18:38:14 +0900507endchoice
508
Paul Mundt3cc000b2009-04-11 08:39:27 +0900509endif
510
Paul Mundtcad82442006-01-16 22:14:19 -0800511source "arch/sh/mm/Kconfig"
Paul Mundt939a24a2008-07-29 21:41:37 +0900512
Paul Mundt4690bdc2007-11-09 13:45:42 +0900513source "arch/sh/Kconfig.cpu"
Paul Mundtcad82442006-01-16 22:14:19 -0800514
Paul Mundt939a24a2008-07-29 21:41:37 +0900515source "arch/sh/boards/Kconfig"
Paul Mundtf3d22292007-05-14 17:29:12 +0900516
Paul Mundt32351a22007-03-12 14:38:59 +0900517menu "Timer and clock configuration"
518
Magnus Damm9570ef22009-05-01 06:51:00 +0000519config SH_TIMER_TMU
520 bool "TMU timer driver"
Magnus Dammf19900b2009-05-12 10:25:54 +0000521 depends on SYS_SUPPORTS_TMU
Magnus Damm9570ef22009-05-01 06:51:00 +0000522 default y
Magnus Damm9570ef22009-05-01 06:51:00 +0000523 help
524 This enables the build of the TMU timer driver.
525
Paul Mundtf5ad8812009-01-29 18:08:58 +0900526config SH_TIMER_CMT
Magnus Dammf4257522009-04-30 04:09:26 +0000527 bool "CMT timer driver"
528 depends on SYS_SUPPORTS_CMT
529 default y
Magnus Dammf4257522009-04-30 04:09:26 +0000530 help
531 This enables build of the CMT timer driver.
Paul Mundtf5ad8812009-01-29 18:08:58 +0900532
Magnus Dammd5ed4c22009-04-30 07:02:49 +0000533config SH_TIMER_MTU2
534 bool "MTU2 timer driver"
Magnus Damm3280c882009-04-30 07:12:09 +0000535 depends on SYS_SUPPORTS_MTU2
Magnus Dammd5ed4c22009-04-30 07:02:49 +0000536 default y
Magnus Dammd5ed4c22009-04-30 07:02:49 +0000537 help
538 This enables build of the MTU2 timer driver.
539
Paul Mundtcad82442006-01-16 22:14:19 -0800540config SH_PCLK_FREQ
541 int "Peripheral clock frequency (in Hz)"
Paul Mundt8152a742009-12-29 11:09:30 +0900542 depends on SH_CLK_CPG_LEGACY
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900543 default "31250000" if CPU_SUBTYPE_SH7619
Paul Mundt8152a742009-12-29 11:09:30 +0900544 default "33333333" if CPU_SUBTYPE_SH7770 || \
545 CPU_SUBTYPE_SH7760 || \
546 CPU_SUBTYPE_SH7705 || \
547 CPU_SUBTYPE_SH7203 || \
548 CPU_SUBTYPE_SH7206 || \
549 CPU_SUBTYPE_SH7263 || \
Paul Mundt43a18392010-01-19 19:37:14 +0900550 CPU_SUBTYPE_MXG
Paul Mundt05627482007-05-15 16:25:47 +0900551 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
Paul Mundtcad82442006-01-16 22:14:19 -0800552 default "66000000" if CPU_SUBTYPE_SH4_202
Paul Mundt05627482007-05-15 16:25:47 +0900553 default "50000000"
Paul Mundtcad82442006-01-16 22:14:19 -0800554 help
555 This option is used to specify the peripheral clock frequency.
556 This is necessary for determining the reference clock value on
557 platforms lacking an RTC.
558
Paul Mundt36aa1e32009-05-22 14:00:34 +0900559config SH_CLK_CPG
560 def_bool y
561
Paul Mundt253b0882009-05-13 17:38:11 +0900562config SH_CLK_CPG_LEGACY
Paul Mundt36aa1e32009-05-22 14:00:34 +0900563 depends on SH_CLK_CPG
Paul Mundt43a18392010-01-19 19:37:14 +0900564 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
565 !CPU_SUBTYPE_SH7786
Paul Mundt253b0882009-05-13 17:38:11 +0900566
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900567config SH_CLK_MD
568 int "CPU Mode Pin Setting"
Paul Mundt6d01f512007-11-26 18:17:21 +0900569 depends on CPU_SH2
Paul Mundt357d5942007-06-11 15:32:07 +0900570 default 6 if CPU_SUBTYPE_SH7206
571 default 5 if CPU_SUBTYPE_SH7619
572 default 0
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900573 help
Yoshinori Sato11cbb702006-12-07 18:07:27 +0900574 MD2 - MD0 pin setting.
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900575
Paul Mundt57be2b42007-05-09 17:33:24 +0900576source "kernel/time/Kconfig"
577
Paul Mundt32351a22007-03-12 14:38:59 +0900578endmenu
579
Paul Mundtcad82442006-01-16 22:14:19 -0800580menu "CPU Frequency scaling"
581
582source "drivers/cpufreq/Kconfig"
583
584config SH_CPU_FREQ
585 tristate "SuperH CPU Frequency driver"
Paul Mundtcb5ec752007-07-20 13:38:19 +0900586 depends on CPU_FREQ
Paul Mundtcad82442006-01-16 22:14:19 -0800587 select CPU_FREQ_TABLE
588 help
Paul Mundt8a655052008-12-17 15:06:54 +0900589 This adds the cpufreq driver for SuperH. Any CPU that supports
590 clock rate rounding through the clock framework can use this
591 driver. While it will make the kernel slightly larger, this is
592 harmless for CPUs that don't support rate rounding. The driver
593 will also generate a notice in the boot log before disabling
594 itself if the CPU in question is not capable of rate rounding.
Paul Mundtcad82442006-01-16 22:14:19 -0800595
596 For details, take a look at <file:Documentation/cpu-freq>.
597
598 If unsure, say N.
599
600endmenu
601
Paul Mundt9f5e8ee2006-11-24 11:22:57 +0900602source "arch/sh/drivers/Kconfig"
603
Paul Mundtcad82442006-01-16 22:14:19 -0800604endmenu
605
Paul Mundtcad82442006-01-16 22:14:19 -0800606menu "Kernel features"
607
Paul Mundt91b91d02006-09-27 18:08:33 +0900608source kernel/Kconfig.hz
609
Paul Mundtcad82442006-01-16 22:14:19 -0800610config KEXEC
611 bool "kexec system call (EXPERIMENTAL)"
Nobuhiro Iwamatsuf36b59d2009-03-26 08:32:37 +0000612 depends on SUPERH32 && EXPERIMENTAL && MMU
Paul Mundtcad82442006-01-16 22:14:19 -0800613 help
614 kexec is a system call that implements the ability to shutdown your
615 current kernel, and to start another kernel. It is like a reboot
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400616 but it is independent of the system firmware. And like a reboot
Paul Mundtcad82442006-01-16 22:14:19 -0800617 you can start any kernel with it, not just Linux.
618
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400619 The name comes from the similarity to the exec system call.
Paul Mundtcad82442006-01-16 22:14:19 -0800620
621 It is an ongoing process to be certain the hardware in a machine
622 is properly shutdown, so do not be surprised if this code does not
623 initially work for you. It may help to enable device hotplugging
624 support. As of this writing the exact hardware interface is
625 strongly in flux, so no good recommendation can be made.
626
Paul Mundt4d5ade52007-04-27 11:25:57 +0900627config CRASH_DUMP
628 bool "kernel crash dumps (EXPERIMENTAL)"
Paul Mundtd523e1a2010-05-07 16:39:09 +0900629 depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP
Paul Mundt4d5ade52007-04-27 11:25:57 +0900630 help
631 Generate crash dump after being started by kexec.
632 This should be normally only set in special crash dump kernels
633 which are loaded in the main kernel with kexec-tools into
634 a specially reserved region and then later executed after
635 a crash by kdump/kexec. The crash dump kernel must be compiled
636 to a memory address not used by the main kernel using
637 MEMORY_START.
638
639 For more details see Documentation/kdump/kdump.txt
640
Magnus Dammb7cf6dd2009-03-18 08:51:29 +0000641config KEXEC_JUMP
642 bool "kexec jump (EXPERIMENTAL)"
643 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
644 help
645 Jump between original kernel and kexeced kernel and invoke
646 code via KEXEC
647
Paul Mundtc4637d42008-07-30 15:30:52 +0900648config SECCOMP
649 bool "Enable seccomp to safely compute untrusted bytecode"
650 depends on PROC_FS
Paul Mundtc4637d42008-07-30 15:30:52 +0900651 help
652 This kernel feature is useful for number crunching applications
653 that may need to compute untrusted bytecode during their
654 execution. By using pipes or other transports made available to
655 the process as file descriptors supporting the read/write
656 syscalls, it's possible to isolate those applications in
657 their own address space using seccomp. Once seccomp is
658 enabled via prctl, it cannot be disabled and the task is only
659 allowed to execute a few safe syscalls defined by each seccomp
660 mode.
661
662 If unsure, say N.
663
Linus Torvalds1da177e2005-04-16 15:20:36 -0700664config SMP
665 bool "Symmetric multi-processing support"
Paul Mundt357d5942007-06-11 15:32:07 +0900666 depends on SYS_SUPPORTS_SMP
Jens Axboe490f5de2008-06-10 20:52:59 +0200667 select USE_GENERIC_SMP_HELPERS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700668 ---help---
669 This enables support for systems with more than one CPU. If you have
670 a system with only one CPU, like most personal computers, say N. If
671 you have a system with more than one CPU, say Y.
672
673 If you say N here, the kernel will run on single and multiprocessor
674 machines, but will use only one CPU of a multiprocessor machine. If
675 you say Y here, the kernel will run on many, but not all,
676 singleprocessor machines. On a singleprocessor machine, the kernel
677 will run faster if you say N here.
678
679 People using multiprocessor machines who say Y here should also say
680 Y to "Enhanced Real Time Clock Support", below.
681
Adrian Bunk03502fa2008-02-03 15:50:21 +0200682 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
683 available at <http://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700684
685 If you don't know what to do here, say N.
686
687config NR_CPUS
688 int "Maximum number of CPUs (2-32)"
689 range 2 32
690 depends on SMP
Paul Mundt2eb2a432009-06-19 16:00:00 +0900691 default "4" if CPU_SUBTYPE_SHX3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700692 default "2"
693 help
694 This allows you to specify the maximum number of CPUs which this
695 kernel will support. The maximum supported value is 32 and the
696 minimum value which makes sense is 2.
697
698 This is purely to save memory - each supported CPU adds
699 approximately eight kilobytes to the kernel image.
700
Paul Mundt763142d2010-04-26 19:08:55 +0900701config HOTPLUG_CPU
702 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
703 depends on SMP && HOTPLUG && EXPERIMENTAL
704 help
705 Say Y here to experiment with turning CPUs off and on. CPUs
706 can be controlled through /sys/devices/system/cpu.
707
Paul Mundt91b91d02006-09-27 18:08:33 +0900708source "kernel/Kconfig.preempt"
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
Paul Mundt43b87742010-04-13 14:43:03 +0900734source "drivers/sh/Kconfig"
735
Paul Mundtcad82442006-01-16 22:14:19 -0800736endmenu
737
738menu "Boot options"
739
740config ZERO_PAGE_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900741 hex
742 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
743 SH_7751_SOLUTION_ENGINE
744 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
Paul Mundt7a847f82006-12-26 15:29:19 +0900745 default "0x00002000" if PAGE_SIZE_8KB
Paul Mundtcad82442006-01-16 22:14:19 -0800746 default "0x00001000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700747 help
Paul Mundtcad82442006-01-16 22:14:19 -0800748 This sets the default offset of zero page.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700749
Paul Mundtcad82442006-01-16 22:14:19 -0800750config BOOT_LINK_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900751 hex
752 default "0x00210000" if SH_SHMIN
Paul Mundta2e76c82009-05-10 00:54:39 +0900753 default "0x00400000" if SH_CAYMAN
Paul Mundtb412a49a2009-05-10 01:23:25 +0900754 default "0x00810000" if SH_7780_SOLUTION_ENGINE
755 default "0x009e0000" if SH_TITAN
756 default "0x01800000" if SH_SDK7780
757 default "0x02000000" if SH_EDOSK7760
Paul Mundtcad82442006-01-16 22:14:19 -0800758 default "0x00800000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700759 help
Paul Mundtcad82442006-01-16 22:14:19 -0800760 This option allows you to set the link address offset of the zImage.
761 This can be useful if you are on a board which has a small amount of
762 memory.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700763
Paul Mundtb412a49a2009-05-10 01:23:25 +0900764config ENTRY_OFFSET
765 hex
766 default "0x00001000" if PAGE_SIZE_4KB
767 default "0x00002000" if PAGE_SIZE_8KB
768 default "0x00004000" if PAGE_SIZE_16KB
769 default "0x00010000" if PAGE_SIZE_64KB
770 default "0x00000000"
771
Magnus Damm4705b2e2010-05-18 14:43:15 +0000772config ROMIMAGE_MMCIF
773 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
774 depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL
775 help
776 Say Y here to include experimental MMCIF loading code in
777 romImage. With this enabled it is possible to write the romImage
778 kernel image to an MMC card and boot the kernel straight from
779 the reset vector. At reset the processor Mask ROM will load the
780 first part of the romImage which in turn loads the rest the kernel
781 image to RAM using the MMCIF hardware block.
782
Pawel Molld724a9c2009-08-24 16:25:38 +0900783choice
784 prompt "Kernel command line"
785 optional
786 default CMDLINE_OVERWRITE
787 help
788 Setting this option allows the kernel command line arguments
789 to be set.
790
791config CMDLINE_OVERWRITE
792 bool "Overwrite bootloader kernel arguments"
793 help
794 Given string will overwrite any arguments passed in by
795 a bootloader.
796
797config CMDLINE_EXTEND
798 bool "Extend bootloader kernel arguments"
799 help
800 Given string will be concatenated with arguments passed in
801 by a bootloader.
802
803endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700804
Paul Mundtcad82442006-01-16 22:14:19 -0800805config CMDLINE
Pawel Molld724a9c2009-08-24 16:25:38 +0900806 string "Kernel command line arguments string"
807 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
Paul Mundtcad82442006-01-16 22:14:19 -0800808 default "console=ttySC1,115200"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809
810endmenu
811
Paul Mundtcad82442006-01-16 22:14:19 -0800812menu "Bus options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700813
Paul Mundtcad82442006-01-16 22:14:19 -0800814config SUPERHYWAY
815 tristate "SuperHyway Bus support"
816 depends on CPU_SUBTYPE_SH4_202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700817
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900818config MAPLE
Paul Mundte16038a2009-01-09 15:12:30 +0900819 bool "Maple Bus support"
820 depends on SH_DREAMCAST
821 help
822 The Maple Bus is SEGA's serial communication bus for peripherals
823 on the Dreamcast. Without this bus support you won't be able to
824 get your Dreamcast keyboard etc to work, so most users
825 probably want to say 'Y' here, unless you are only using the
826 Dreamcast with a serial line terminal or a remote network
827 connection.
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900828
Paul Mundt76934652009-10-27 10:36:55 +0900829config PCI
830 bool "PCI support"
831 depends on SYS_SUPPORTS_PCI
Paul Mundt320e68d2010-01-29 22:38:13 +0900832 select PCI_DOMAINS
Paul Mundt76934652009-10-27 10:36:55 +0900833 help
834 Find out whether you have a PCI motherboard. PCI is the name of a
835 bus system, i.e. the way the CPU talks to the other stuff inside
836 your box. If you have PCI, say Y, otherwise N.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700837
Paul Mundt320e68d2010-01-29 22:38:13 +0900838config PCI_DOMAINS
839 bool
840
Paul Mundte16038a2009-01-09 15:12:30 +0900841source "drivers/pci/pcie/Kconfig"
842
Linus Torvalds1da177e2005-04-16 15:20:36 -0700843source "drivers/pci/Kconfig"
844
845source "drivers/pcmcia/Kconfig"
846
847source "drivers/pci/hotplug/Kconfig"
848
849endmenu
850
851menu "Executable file formats"
852
853source "fs/Kconfig.binfmt"
854
855endmenu
856
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900857menu "Power management options (EXPERIMENTAL)"
Magnus Dammaf998a92008-12-04 22:45:12 +0900858depends on EXPERIMENTAL
Johannes Bergf4cb5702007-12-08 02:14:00 +0100859
Magnus Dammc6f17cb2008-12-04 22:45:20 +0900860source "kernel/power/Kconfig"
861
862source "drivers/cpuidle/Kconfig"
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900863
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900864endmenu
865
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700866source "net/Kconfig"
867
Linus Torvalds1da177e2005-04-16 15:20:36 -0700868source "drivers/Kconfig"
869
870source "fs/Kconfig"
871
Linus Torvalds1da177e2005-04-16 15:20:36 -0700872source "arch/sh/Kconfig.debug"
873
874source "security/Kconfig"
875
876source "crypto/Kconfig"
877
Magnus Damm5f737b32010-04-28 05:46:11 +0000878menuconfig VIRTUALIZATION
879 bool "Virtualization"
880 default n
881 ---help---
882 Say Y here to get to see options for using your Linux host to run other
883 operating systems inside virtual machines (guests).
884 This option alone does not add any kernel code.
885
886 If you say N, all options in this submenu will be skipped and disabled.
887
888if VIRTUALIZATION
889
890source drivers/virtio/Kconfig
891
892endif # VIRTUALIZATION
893
Linus Torvalds1da177e2005-04-16 15:20:36 -0700894source "lib/Kconfig"