blob: 6d110a4f7f65580eead807c846aa0894b1fb054a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# For a description of the syntax of this configuration file,
3# see Documentation/kbuild/kconfig-language.txt.
4#
5
6mainmenu "Linux/SuperH Kernel Configuration"
7
8config SUPERH
Paul Mundtea0e1a92007-11-21 15:58:01 +09009 def_bool y
Paul Mundt7a440c92006-09-27 18:18:31 +090010 select EMBEDDED
David Brownell9483a572008-07-23 21:26:48 -070011 select HAVE_CLK
Sam Ravnborgec7748b2008-02-09 10:46:40 +010012 select HAVE_IDE
Mathieu Desnoyers42d4b832008-02-02 15:10:34 -050013 select HAVE_OPROFILE
Dmitry Baryshkov9de90ac2008-07-18 13:30:31 +040014 select HAVE_GENERIC_DMA_COHERENT
Paul Mundt21944782008-09-17 23:26:44 +090015 select HAVE_IOREMAP_PROT if MMU
Paul Mundtd7b01f72008-12-10 20:17:15 +090016 select HAVE_ARCH_TRACEHOOK
Paul Mundtf802d962009-04-09 10:36:54 -070017 select HAVE_DMA_API_DEBUG
Paul Mundtbb38c222009-06-24 01:41:05 +090018 select HAVE_PERF_COUNTERS
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 Mundt694f94f2008-10-31 16:20:36 +090031 select HAVE_FUNCTION_TRACER
Matt Flemingfad57fe2008-11-12 20:11:47 +090032 select HAVE_FTRACE_MCOUNT_RECORD
33 select HAVE_DYNAMIC_FTRACE
Matt Flemingc1340c02009-06-28 14:05:44 +010034 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
Matt Flemingc652d782009-07-06 20:16:33 +090035 select HAVE_FTRACE_SYSCALLS
Matt Fleming327933f2009-07-11 00:29:03 +000036 select HAVE_FUNCTION_GRAPH_TRACER
Paul Mundtab6e5702008-12-11 18:46:46 +090037 select HAVE_ARCH_KGDB
Paul Mundt8dafc342009-04-02 11:56:38 +090038 select ARCH_HIBERNATION_POSSIBLE if MMU
Paul Mundtea0e1a92007-11-21 15:58:01 +090039
40config SUPERH64
Paul Mundt3cc000b2009-04-11 08:39:27 +090041 def_bool ARCH = "sh64"
Paul Mundt39d28a22007-11-08 18:39:33 +090042
Paul Mundtf42b7e32008-07-29 20:12:51 +090043config ARCH_DEFCONFIG
44 string
45 default "arch/sh/configs/shx3_defconfig" if SUPERH32
46 default "arch/sh/configs/cayman_defconfig" if SUPERH64
47
Linus Torvalds1da177e2005-04-16 15:20:36 -070048config RWSEM_GENERIC_SPINLOCK
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090049 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070050
51config RWSEM_XCHGADD_ALGORITHM
52 bool
53
Paul Mundtfa691512007-03-08 19:41:21 +090054config GENERIC_BUG
55 def_bool y
Paul Mundta82d53e2007-11-21 18:22:05 +090056 depends on BUG && SUPERH32
Paul Mundtfa691512007-03-08 19:41:21 +090057
Paul Mundt3767f3f2009-06-15 00:00:42 +090058config GENERIC_CSUM
59 def_bool y
60 depends on SUPERH64
61
Akinobu Mitae2268c72006-03-26 01:39:35 -080062config GENERIC_FIND_NEXT_BIT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090063 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -080064
65config GENERIC_HWEIGHT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090066 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -080067
Linus Torvalds1da177e2005-04-16 15:20:36 -070068config GENERIC_HARDIRQS
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090069 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070070
Paul Mundt5093c9a2008-08-04 14:17:13 +090071config GENERIC_HARDIRQS_NO__DO_IRQ
72 def_bool y
73
Linus Torvalds1da177e2005-04-16 15:20:36 -070074config GENERIC_IRQ_PROBE
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090075 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070076
Paul Mundt2eb2a432009-06-19 16:00:00 +090077config IRQ_PER_CPU
78 def_bool y
79
Magnus Damm2967dab2008-10-08 20:41:43 +090080config GENERIC_GPIO
81 def_bool n
82
Linus Torvalds1da177e2005-04-16 15:20:36 -070083config GENERIC_CALIBRATE_DELAY
Paul Mundtcf204fa2008-09-08 20:47:42 +090084 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -070085
Paul Mundtcad82442006-01-16 22:14:19 -080086config GENERIC_IOMAP
87 bool
88
Paul Mundt45882142006-10-04 13:21:45 +090089config GENERIC_TIME
john stultz75634312009-05-01 13:10:28 -070090 def_bool y
Paul Mundt45882142006-10-04 13:21:45 +090091
Paul Mundt57be2b42007-05-09 17:33:24 +090092config GENERIC_CLOCKEVENTS
Paul Mundt938edae2009-05-03 18:12:26 +090093 def_bool y
Paul Mundt57be2b42007-05-09 17:33:24 +090094
Paul Mundt8c245942008-08-06 18:37:07 +090095config GENERIC_CLOCKEVENTS_BROADCAST
96 bool
97
Paul Mundt6d134b92009-05-08 16:36:13 +090098config GENERIC_CMOS_UPDATE
99 def_bool y
100 depends on SH_SH03 || SH_DREAMCAST
101
Paul Mundtbdcab872008-08-04 14:09:15 +0900102config GENERIC_LOCKBREAK
103 def_bool y
104 depends on SMP && PREEMPT
105
Paul Mundt357d5942007-06-11 15:32:07 +0900106config SYS_SUPPORTS_PM
107 bool
Magnus Dammaf998a92008-12-04 22:45:12 +0900108 depends on !SMP
109
110config ARCH_SUSPEND_POSSIBLE
111 def_bool n
112
113config ARCH_HIBERNATION_POSSIBLE
114 def_bool n
Paul Mundt357d5942007-06-11 15:32:07 +0900115
Paul Mundt0a9b0db2007-01-24 21:56:20 +0900116config SYS_SUPPORTS_APM_EMULATION
117 bool
Magnus Dammaf998a92008-12-04 22:45:12 +0900118 select ARCH_SUSPEND_POSSIBLE
Paul Mundt357d5942007-06-11 15:32:07 +0900119
120config SYS_SUPPORTS_SMP
121 bool
122
123config SYS_SUPPORTS_NUMA
124 bool
125
126config SYS_SUPPORTS_PCI
127 bool
Paul Mundt0a9b0db2007-01-24 21:56:20 +0900128
Paul Mundtf5ad8812009-01-29 18:08:58 +0900129config SYS_SUPPORTS_CMT
130 bool
131
Magnus Dammd5ed4c22009-04-30 07:02:49 +0000132config SYS_SUPPORTS_MTU2
133 bool
134
Magnus Damm9570ef22009-05-01 06:51:00 +0000135config SYS_SUPPORTS_TMU
136 bool
137
Paul Mundtafbfb522006-12-04 18:17:28 +0900138config STACKTRACE_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900139 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900140
141config LOCKDEP_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900142 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900143
Paul Mundt5a89f1a2008-09-13 01:44:03 +0900144config HAVE_LATENCYTOP_SUPPORT
145 def_bool y
146 depends on !SMP
147
David Howellsf0d1b0b2006-12-08 02:37:49 -0800148config ARCH_HAS_ILOG2_U32
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900149 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800150
151config ARCH_HAS_ILOG2_U64
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900152 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800153
Paul Mundte257ad02007-07-25 11:18:00 +0900154config ARCH_NO_VIRT_TO_BUS
155 def_bool y
156
Paul Mundte869a902009-04-02 13:08:31 +0900157config ARCH_HAS_DEFAULT_IDLE
158 def_bool y
159
Paul Mundt2e046b92009-06-19 14:40:51 +0900160config ARCH_HAS_CPU_IDLE_WAIT
161 def_bool y
162
Magnus Damme7cc9a72008-02-07 20:18:21 +0900163config IO_TRAPPED
164 bool
165
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166source "init/Kconfig"
167
Matt Helsleydc52ddc2008-10-18 20:27:21 -0700168source "kernel/Kconfig.freezer"
169
Linus Torvalds1da177e2005-04-16 15:20:36 -0700170menu "System type"
171
Paul Mundtb5f42db2007-11-08 18:38:14 +0900172#
173# Processor families
174#
175config CPU_SH2
176 bool
177
178config CPU_SH2A
179 bool
180 select CPU_SH2
181
182config CPU_SH3
183 bool
184 select CPU_HAS_INTEVT
185 select CPU_HAS_SR_RB
Paul Mundt4fa48e12009-05-08 15:28:15 +0900186 select SYS_SUPPORTS_TMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900187
188config CPU_SH4
189 bool
190 select CPU_HAS_INTEVT
191 select CPU_HAS_SR_RB
Paul Mundtb5f42db2007-11-08 18:38:14 +0900192 select CPU_HAS_FPU if !CPU_SH4AL_DSP
Paul Mundt4fa48e12009-05-08 15:28:15 +0900193 select SYS_SUPPORTS_TMU
Paul Mundtb5f42db2007-11-08 18:38:14 +0900194
195config CPU_SH4A
196 bool
197 select CPU_SH4
198
199config CPU_SH4AL_DSP
200 bool
201 select CPU_SH4A
202 select CPU_HAS_DSP
203
Paul Mundtea0e1a92007-11-21 15:58:01 +0900204config CPU_SH5
205 bool
206 select CPU_HAS_FPU
Paul Mundtadd47062009-05-08 16:12:17 +0900207 select SYS_SUPPORTS_TMU
Paul Mundtea0e1a92007-11-21 15:58:01 +0900208
Paul Mundtb5f42db2007-11-08 18:38:14 +0900209config CPU_SHX2
210 bool
211
212config CPU_SHX3
213 bool
214
Paul Mundtdc65a972009-03-10 16:26:29 +0900215config ARCH_SHMOBILE
216 bool
Magnus Damm77594912009-03-13 15:23:04 +0000217 select ARCH_SUSPEND_POSSIBLE
Paul Mundtdc65a972009-03-10 16:26:29 +0900218
Paul Mundt3cc000b2009-04-11 08:39:27 +0900219if SUPERH32
220
Paul Mundtb5f42db2007-11-08 18:38:14 +0900221choice
222 prompt "Processor sub-type selection"
223
224#
225# Processor subtypes
226#
227
228# SH-2 Processor Support
229
230config CPU_SUBTYPE_SH7619
231 bool "Support SH7619 processor"
232 select CPU_SH2
Paul Mundtf5ad8812009-01-29 18:08:58 +0900233 select SYS_SUPPORTS_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900234
235# SH-2A Processor Support
236
Peter Griffin28259992008-11-28 22:48:20 +0900237config CPU_SUBTYPE_SH7201
238 bool "Support SH7201 processor"
239 select CPU_SH2A
240 select CPU_HAS_FPU
Magnus Dammda107c62009-04-30 07:06:26 +0000241 select SYS_SUPPORTS_MTU2
Peter Griffin28259992008-11-28 22:48:20 +0900242
Paul Mundt6d01f512007-11-26 18:17:21 +0900243config CPU_SUBTYPE_SH7203
244 bool "Support SH7203 processor"
245 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900246 select CPU_HAS_FPU
Paul Mundtf5ad8812009-01-29 18:08:58 +0900247 select SYS_SUPPORTS_CMT
Magnus Dammda107c62009-04-30 07:06:26 +0000248 select SYS_SUPPORTS_MTU2
Paul Mundt6d01f512007-11-26 18:17:21 +0900249
Paul Mundtb5f42db2007-11-08 18:38:14 +0900250config CPU_SUBTYPE_SH7206
251 bool "Support SH7206 processor"
252 select CPU_SH2A
Paul Mundtf5ad8812009-01-29 18:08:58 +0900253 select SYS_SUPPORTS_CMT
Magnus Dammda107c62009-04-30 07:06:26 +0000254 select SYS_SUPPORTS_MTU2
Paul Mundtb5f42db2007-11-08 18:38:14 +0900255
Paul Mundta8f67f42007-11-26 19:54:02 +0900256config CPU_SUBTYPE_SH7263
257 bool "Support SH7263 processor"
258 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900259 select CPU_HAS_FPU
Paul Mundtf5ad8812009-01-29 18:08:58 +0900260 select SYS_SUPPORTS_CMT
Magnus Dammda107c62009-04-30 07:06:26 +0000261 select SYS_SUPPORTS_MTU2
Paul Mundta8f67f42007-11-26 19:54:02 +0900262
Paul Mundt2ad69902008-03-13 12:52:44 +0900263config CPU_SUBTYPE_MXG
264 bool "Support MX-G processor"
265 select CPU_SH2A
Magnus Dammda107c62009-04-30 07:06:26 +0000266 select SYS_SUPPORTS_MTU2
Paul Mundt2ad69902008-03-13 12:52:44 +0900267 help
268 Select MX-G if running on an R8A03022BG part.
269
Paul Mundtb5f42db2007-11-08 18:38:14 +0900270# SH-3 Processor Support
271
272config CPU_SUBTYPE_SH7705
273 bool "Support SH7705 processor"
274 select CPU_SH3
275
276config CPU_SUBTYPE_SH7706
277 bool "Support SH7706 processor"
278 select CPU_SH3
279 help
280 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
281
282config CPU_SUBTYPE_SH7707
283 bool "Support SH7707 processor"
284 select CPU_SH3
285 help
286 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
287
288config CPU_SUBTYPE_SH7708
289 bool "Support SH7708 processor"
290 select CPU_SH3
291 help
292 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
293 if you have a 100 Mhz SH-3 HD6417708R CPU.
294
295config CPU_SUBTYPE_SH7709
296 bool "Support SH7709 processor"
297 select CPU_SH3
298 help
299 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
300
301config CPU_SUBTYPE_SH7710
302 bool "Support SH7710 processor"
303 select CPU_SH3
304 select CPU_HAS_DSP
305 help
306 Select SH7710 if you have a SH3-DSP SH7710 CPU.
307
308config CPU_SUBTYPE_SH7712
309 bool "Support SH7712 processor"
310 select CPU_SH3
311 select CPU_HAS_DSP
312 help
313 Select SH7712 if you have a SH3-DSP SH7712 CPU.
314
315config CPU_SUBTYPE_SH7720
316 bool "Support SH7720 processor"
317 select CPU_SH3
318 select CPU_HAS_DSP
Magnus Damm2b23a882009-05-12 10:21:11 +0000319 select SYS_SUPPORTS_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900320 help
321 Select SH7720 if you have a SH3-DSP SH7720 CPU.
322
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900323config CPU_SUBTYPE_SH7721
324 bool "Support SH7721 processor"
325 select CPU_SH3
326 select CPU_HAS_DSP
Magnus Damm2b23a882009-05-12 10:21:11 +0000327 select SYS_SUPPORTS_CMT
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900328 help
329 Select SH7721 if you have a SH3-DSP SH7721 CPU.
330
Paul Mundtb5f42db2007-11-08 18:38:14 +0900331# SH-4 Processor Support
332
333config CPU_SUBTYPE_SH7750
334 bool "Support SH7750 processor"
335 select CPU_SH4
336 help
337 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
338
339config CPU_SUBTYPE_SH7091
340 bool "Support SH7091 processor"
341 select CPU_SH4
342 help
343 Select SH7091 if you have an SH-4 based Sega device (such as
344 the Dreamcast, Naomi, and Naomi 2).
345
346config CPU_SUBTYPE_SH7750R
347 bool "Support SH7750R processor"
348 select CPU_SH4
349
350config CPU_SUBTYPE_SH7750S
351 bool "Support SH7750S processor"
352 select CPU_SH4
353
354config CPU_SUBTYPE_SH7751
355 bool "Support SH7751 processor"
356 select CPU_SH4
357 help
358 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
359 or if you have a HD6417751R CPU.
360
361config CPU_SUBTYPE_SH7751R
362 bool "Support SH7751R processor"
363 select CPU_SH4
364
365config CPU_SUBTYPE_SH7760
366 bool "Support SH7760 processor"
367 select CPU_SH4
368
369config CPU_SUBTYPE_SH4_202
370 bool "Support SH4-202 processor"
371 select CPU_SH4
372
373# SH-4A Processor Support
374
Paul Mundt178dd0c2008-04-09 17:56:18 +0900375config CPU_SUBTYPE_SH7723
376 bool "Support SH7723 processor"
377 select CPU_SH4A
378 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900379 select ARCH_SHMOBILE
Paul Mundt178dd0c2008-04-09 17:56:18 +0900380 select ARCH_SPARSEMEM_ENABLE
Paul Mundtf5ad8812009-01-29 18:08:58 +0900381 select SYS_SUPPORTS_CMT
Paul Mundt178dd0c2008-04-09 17:56:18 +0900382 help
383 Select SH7723 if you have an SH-MobileR2 CPU.
384
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900385config CPU_SUBTYPE_SH7724
386 bool "Support SH7724 processor"
387 select CPU_SH4A
388 select CPU_SHX2
Paul Mundt59fe7002009-04-16 15:43:42 +0900389 select ARCH_SHMOBILE
Kuninori Morimoto0207a2e2009-04-16 14:40:56 +0900390 select ARCH_SPARSEMEM_ENABLE
391 select SYS_SUPPORTS_CMT
392 help
393 Select SH7724 if you have an SH-MobileR2R CPU.
394
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900395config CPU_SUBTYPE_SH7763
396 bool "Support SH7763 processor"
397 select CPU_SH4A
398 help
399 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
400
Paul Mundtb5f42db2007-11-08 18:38:14 +0900401config CPU_SUBTYPE_SH7770
402 bool "Support SH7770 processor"
403 select CPU_SH4A
404
405config CPU_SUBTYPE_SH7780
406 bool "Support SH7780 processor"
407 select CPU_SH4A
408
409config CPU_SUBTYPE_SH7785
410 bool "Support SH7785 processor"
411 select CPU_SH4A
412 select CPU_SHX2
413 select ARCH_SPARSEMEM_ENABLE
414 select SYS_SUPPORTS_NUMA
415
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900416config CPU_SUBTYPE_SH7786
417 bool "Support SH7786 processor"
418 select CPU_SH4A
Paul Mundt37042fb2009-03-03 15:57:02 +0900419 select CPU_SHX3
Paul Mundt8263a672009-03-17 17:49:49 +0900420 select CPU_HAS_PTEAEX
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900421 select ARCH_SPARSEMEM_ENABLE
422 select SYS_SUPPORTS_NUMA
Paul Mundt2eb2a432009-06-19 16:00:00 +0900423 select SYS_SUPPORTS_SMP
424 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Kuninori Morimoto55ba99e2009-03-03 15:40:25 +0900425
Paul Mundtb5f42db2007-11-08 18:38:14 +0900426config CPU_SUBTYPE_SHX3
427 bool "Support SH-X3 processor"
428 select CPU_SH4A
429 select CPU_SHX3
430 select ARCH_SPARSEMEM_ENABLE
431 select SYS_SUPPORTS_NUMA
432 select SYS_SUPPORTS_SMP
Paul Mundt58402632008-09-05 15:36:39 +0900433 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Paul Mundtb5f42db2007-11-08 18:38:14 +0900434
435# SH4AL-DSP Processor Support
436
437config CPU_SUBTYPE_SH7343
438 bool "Support SH7343 processor"
439 select CPU_SH4AL_DSP
Paul Mundtdc65a972009-03-10 16:26:29 +0900440 select ARCH_SHMOBILE
Paul Mundtf5ad8812009-01-29 18:08:58 +0900441 select SYS_SUPPORTS_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900442
443config CPU_SUBTYPE_SH7722
444 bool "Support SH7722 processor"
445 select CPU_SH4AL_DSP
446 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900447 select ARCH_SHMOBILE
Paul Mundtb5f42db2007-11-08 18:38:14 +0900448 select ARCH_SPARSEMEM_ENABLE
449 select SYS_SUPPORTS_NUMA
Paul Mundtf5ad8812009-01-29 18:08:58 +0900450 select SYS_SUPPORTS_CMT
Paul Mundtb5f42db2007-11-08 18:38:14 +0900451
Magnus Damm9109a302008-02-08 17:31:24 +0900452config CPU_SUBTYPE_SH7366
453 bool "Support SH7366 processor"
454 select CPU_SH4AL_DSP
455 select CPU_SHX2
Paul Mundtdc65a972009-03-10 16:26:29 +0900456 select ARCH_SHMOBILE
Magnus Damm9109a302008-02-08 17:31:24 +0900457 select ARCH_SPARSEMEM_ENABLE
458 select SYS_SUPPORTS_NUMA
Paul Mundtf5ad8812009-01-29 18:08:58 +0900459 select SYS_SUPPORTS_CMT
Magnus Damm9109a302008-02-08 17:31:24 +0900460
Paul Mundt3cc000b2009-04-11 08:39:27 +0900461endchoice
462
463endif
464
465if SUPERH64
466
467choice
468 prompt "Processor sub-type selection"
469
Paul Mundtea0e1a92007-11-21 15:58:01 +0900470# SH-5 Processor Support
471
472config CPU_SUBTYPE_SH5_101
473 bool "Support SH5-101 processor"
474 select CPU_SH5
475
476config CPU_SUBTYPE_SH5_103
477 bool "Support SH5-103 processor"
Paul Mundt8ef97dd2008-02-14 15:30:54 +0900478 select CPU_SH5
Paul Mundtea0e1a92007-11-21 15:58:01 +0900479
Paul Mundtb5f42db2007-11-08 18:38:14 +0900480endchoice
481
Paul Mundt3cc000b2009-04-11 08:39:27 +0900482endif
483
Paul Mundtcad82442006-01-16 22:14:19 -0800484source "arch/sh/mm/Kconfig"
Paul Mundt939a24a2008-07-29 21:41:37 +0900485
Paul Mundt4690bdc2007-11-09 13:45:42 +0900486source "arch/sh/Kconfig.cpu"
Paul Mundtcad82442006-01-16 22:14:19 -0800487
Paul Mundt939a24a2008-07-29 21:41:37 +0900488source "arch/sh/boards/Kconfig"
Paul Mundtf3d22292007-05-14 17:29:12 +0900489
Paul Mundt32351a22007-03-12 14:38:59 +0900490menu "Timer and clock configuration"
491
Magnus Damm9570ef22009-05-01 06:51:00 +0000492config SH_TIMER_TMU
493 bool "TMU timer driver"
Magnus Dammf19900b2009-05-12 10:25:54 +0000494 depends on SYS_SUPPORTS_TMU
Magnus Damm9570ef22009-05-01 06:51:00 +0000495 default y
Magnus Damm9570ef22009-05-01 06:51:00 +0000496 help
497 This enables the build of the TMU timer driver.
498
Paul Mundtf5ad8812009-01-29 18:08:58 +0900499config SH_TIMER_CMT
Magnus Dammf4257522009-04-30 04:09:26 +0000500 bool "CMT timer driver"
501 depends on SYS_SUPPORTS_CMT
502 default y
Magnus Dammf4257522009-04-30 04:09:26 +0000503 help
504 This enables build of the CMT timer driver.
Paul Mundtf5ad8812009-01-29 18:08:58 +0900505
Magnus Dammd5ed4c22009-04-30 07:02:49 +0000506config SH_TIMER_MTU2
507 bool "MTU2 timer driver"
Magnus Damm3280c882009-04-30 07:12:09 +0000508 depends on SYS_SUPPORTS_MTU2
Magnus Dammd5ed4c22009-04-30 07:02:49 +0000509 default y
Magnus Dammd5ed4c22009-04-30 07:02:49 +0000510 help
511 This enables build of the MTU2 timer driver.
512
Paul Mundtcad82442006-01-16 22:14:19 -0800513config SH_PCLK_FREQ
514 int "Peripheral clock frequency (in Hz)"
Magnus Damm870e8a22007-07-25 10:49:21 +0900515 default "27000000" if CPU_SUBTYPE_SH7343
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900516 default "31250000" if CPU_SUBTYPE_SH7619
Paul Mundt05627482007-05-15 16:25:47 +0900517 default "32000000" if CPU_SUBTYPE_SH7722
Paul Mundt178dd0c2008-04-09 17:56:18 +0900518 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900519 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
Paul Mundta8f67f42007-11-26 19:54:02 +0900520 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
Paul Mundta4b1fdd2009-03-05 17:52:34 +0900521 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \
Kuninori Morimoto47785412009-05-29 07:41:26 +0000522 CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724
Paul Mundt05627482007-05-15 16:25:47 +0900523 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
Paul Mundtcad82442006-01-16 22:14:19 -0800524 default "66000000" if CPU_SUBTYPE_SH4_202
Paul Mundt05627482007-05-15 16:25:47 +0900525 default "50000000"
Paul Mundtcad82442006-01-16 22:14:19 -0800526 help
527 This option is used to specify the peripheral clock frequency.
528 This is necessary for determining the reference clock value on
529 platforms lacking an RTC.
530
Paul Mundt36aa1e32009-05-22 14:00:34 +0900531config SH_CLK_CPG
532 def_bool y
533
Paul Mundt253b0882009-05-13 17:38:11 +0900534config SH_CLK_CPG_LEGACY
Paul Mundt36aa1e32009-05-22 14:00:34 +0900535 depends on SH_CLK_CPG
Magnus Damm46e93712009-06-04 07:37:59 +0000536 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE
Paul Mundt253b0882009-05-13 17:38:11 +0900537
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900538config SH_CLK_MD
539 int "CPU Mode Pin Setting"
Paul Mundt6d01f512007-11-26 18:17:21 +0900540 depends on CPU_SH2
Paul Mundt357d5942007-06-11 15:32:07 +0900541 default 6 if CPU_SUBTYPE_SH7206
542 default 5 if CPU_SUBTYPE_SH7619
543 default 0
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900544 help
Yoshinori Sato11cbb702006-12-07 18:07:27 +0900545 MD2 - MD0 pin setting.
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900546
Paul Mundt57be2b42007-05-09 17:33:24 +0900547source "kernel/time/Kconfig"
548
Paul Mundt32351a22007-03-12 14:38:59 +0900549endmenu
550
Paul Mundtcad82442006-01-16 22:14:19 -0800551menu "CPU Frequency scaling"
552
553source "drivers/cpufreq/Kconfig"
554
555config SH_CPU_FREQ
556 tristate "SuperH CPU Frequency driver"
Paul Mundtcb5ec752007-07-20 13:38:19 +0900557 depends on CPU_FREQ
Paul Mundtcad82442006-01-16 22:14:19 -0800558 select CPU_FREQ_TABLE
559 help
Paul Mundt8a655052008-12-17 15:06:54 +0900560 This adds the cpufreq driver for SuperH. Any CPU that supports
561 clock rate rounding through the clock framework can use this
562 driver. While it will make the kernel slightly larger, this is
563 harmless for CPUs that don't support rate rounding. The driver
564 will also generate a notice in the boot log before disabling
565 itself if the CPU in question is not capable of rate rounding.
Paul Mundtcad82442006-01-16 22:14:19 -0800566
567 For details, take a look at <file:Documentation/cpu-freq>.
568
569 If unsure, say N.
570
571endmenu
572
Paul Mundt9f5e8ee2006-11-24 11:22:57 +0900573source "arch/sh/drivers/Kconfig"
574
Paul Mundtcad82442006-01-16 22:14:19 -0800575endmenu
576
Paul Mundtcad82442006-01-16 22:14:19 -0800577menu "Kernel features"
578
Paul Mundt91b91d02006-09-27 18:08:33 +0900579source kernel/Kconfig.hz
580
Paul Mundtcad82442006-01-16 22:14:19 -0800581config KEXEC
582 bool "kexec system call (EXPERIMENTAL)"
Nobuhiro Iwamatsuf36b59d2009-03-26 08:32:37 +0000583 depends on SUPERH32 && EXPERIMENTAL && MMU
Paul Mundtcad82442006-01-16 22:14:19 -0800584 help
585 kexec is a system call that implements the ability to shutdown your
586 current kernel, and to start another kernel. It is like a reboot
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400587 but it is independent of the system firmware. And like a reboot
Paul Mundtcad82442006-01-16 22:14:19 -0800588 you can start any kernel with it, not just Linux.
589
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400590 The name comes from the similarity to the exec system call.
Paul Mundtcad82442006-01-16 22:14:19 -0800591
592 It is an ongoing process to be certain the hardware in a machine
593 is properly shutdown, so do not be surprised if this code does not
594 initially work for you. It may help to enable device hotplugging
595 support. As of this writing the exact hardware interface is
596 strongly in flux, so no good recommendation can be made.
597
Paul Mundt4d5ade52007-04-27 11:25:57 +0900598config CRASH_DUMP
599 bool "kernel crash dumps (EXPERIMENTAL)"
Paul Mundt640f7482008-04-25 13:04:56 +0900600 depends on SUPERH32 && EXPERIMENTAL
Paul Mundt4d5ade52007-04-27 11:25:57 +0900601 help
602 Generate crash dump after being started by kexec.
603 This should be normally only set in special crash dump kernels
604 which are loaded in the main kernel with kexec-tools into
605 a specially reserved region and then later executed after
606 a crash by kdump/kexec. The crash dump kernel must be compiled
607 to a memory address not used by the main kernel using
608 MEMORY_START.
609
610 For more details see Documentation/kdump/kdump.txt
611
Magnus Dammb7cf6dd2009-03-18 08:51:29 +0000612config KEXEC_JUMP
613 bool "kexec jump (EXPERIMENTAL)"
614 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
615 help
616 Jump between original kernel and kexeced kernel and invoke
617 code via KEXEC
618
Paul Mundtc4637d42008-07-30 15:30:52 +0900619config SECCOMP
620 bool "Enable seccomp to safely compute untrusted bytecode"
621 depends on PROC_FS
Paul Mundtc4637d42008-07-30 15:30:52 +0900622 help
623 This kernel feature is useful for number crunching applications
624 that may need to compute untrusted bytecode during their
625 execution. By using pipes or other transports made available to
626 the process as file descriptors supporting the read/write
627 syscalls, it's possible to isolate those applications in
628 their own address space using seccomp. Once seccomp is
629 enabled via prctl, it cannot be disabled and the task is only
630 allowed to execute a few safe syscalls defined by each seccomp
631 mode.
632
633 If unsure, say N.
634
Linus Torvalds1da177e2005-04-16 15:20:36 -0700635config SMP
636 bool "Symmetric multi-processing support"
Paul Mundt357d5942007-06-11 15:32:07 +0900637 depends on SYS_SUPPORTS_SMP
Jens Axboe490f5de2008-06-10 20:52:59 +0200638 select USE_GENERIC_SMP_HELPERS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700639 ---help---
640 This enables support for systems with more than one CPU. If you have
641 a system with only one CPU, like most personal computers, say N. If
642 you have a system with more than one CPU, say Y.
643
644 If you say N here, the kernel will run on single and multiprocessor
645 machines, but will use only one CPU of a multiprocessor machine. If
646 you say Y here, the kernel will run on many, but not all,
647 singleprocessor machines. On a singleprocessor machine, the kernel
648 will run faster if you say N here.
649
650 People using multiprocessor machines who say Y here should also say
651 Y to "Enhanced Real Time Clock Support", below.
652
Adrian Bunk03502fa2008-02-03 15:50:21 +0200653 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
654 available at <http://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700655
656 If you don't know what to do here, say N.
657
658config NR_CPUS
659 int "Maximum number of CPUs (2-32)"
660 range 2 32
661 depends on SMP
Paul Mundt2eb2a432009-06-19 16:00:00 +0900662 default "4" if CPU_SUBTYPE_SHX3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700663 default "2"
664 help
665 This allows you to specify the maximum number of CPUs which this
666 kernel will support. The maximum supported value is 32 and the
667 minimum value which makes sense is 2.
668
669 This is purely to save memory - each supported CPU adds
670 approximately eight kilobytes to the kernel image.
671
Paul Mundt91b91d02006-09-27 18:08:33 +0900672source "kernel/Kconfig.preempt"
673
Paul Mundt83662462007-09-28 16:04:49 +0900674config GUSA
675 def_bool y
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900676 depends on !SMP && SUPERH32
Paul Mundt83662462007-09-28 16:04:49 +0900677 help
678 This enables support for gUSA (general UserSpace Atomicity).
679 This is the default implementation for both UP and non-ll/sc
680 CPUs, and is used by the libc, amongst others.
681
682 For additional information, design information can be found
683 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
684
685 This should only be disabled for special cases where alternate
686 atomicity implementations exist.
687
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900688config GUSA_RB
689 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
690 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
691 help
692 Enabling this option will allow the kernel to implement some
Matt LaPlante692105b2009-01-26 11:12:25 +0100693 atomic operations using a software implementation of load-locked/
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900694 store-conditional (LLSC). On machines which do not have hardware
695 LLSC, this should be more efficient than the other alternative of
Matt LaPlante692105b2009-01-26 11:12:25 +0100696 disabling interrupts around the atomic sequence.
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900697
Paul Mundt54ff3282009-06-11 10:33:09 +0300698config SPARSE_IRQ
699 bool "Support sparse irq numbering"
700 depends on EXPERIMENTAL
701 help
702 This enables support for sparse irqs. This is useful in general
703 as most CPUs have a fairly sparse array of IRQ vectors, which
704 the irq_desc then maps directly on to. Systems with a high
705 number of off-chip IRQs will want to treat this as
706 experimental until they have been independently verified.
707
708 If you don't know what to do here, say N.
709
Paul Mundtcad82442006-01-16 22:14:19 -0800710endmenu
711
712menu "Boot options"
713
714config ZERO_PAGE_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900715 hex
716 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
717 SH_7751_SOLUTION_ENGINE
718 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
Paul Mundt7a847f82006-12-26 15:29:19 +0900719 default "0x00002000" if PAGE_SIZE_8KB
Paul Mundtcad82442006-01-16 22:14:19 -0800720 default "0x00001000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700721 help
Paul Mundtcad82442006-01-16 22:14:19 -0800722 This sets the default offset of zero page.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700723
Paul Mundtcad82442006-01-16 22:14:19 -0800724config BOOT_LINK_OFFSET
Paul Mundtb412a49a2009-05-10 01:23:25 +0900725 hex
726 default "0x00210000" if SH_SHMIN
Paul Mundta2e76c82009-05-10 00:54:39 +0900727 default "0x00400000" if SH_CAYMAN
Paul Mundtb412a49a2009-05-10 01:23:25 +0900728 default "0x00810000" if SH_7780_SOLUTION_ENGINE
729 default "0x009e0000" if SH_TITAN
730 default "0x01800000" if SH_SDK7780
731 default "0x02000000" if SH_EDOSK7760
Paul Mundtcad82442006-01-16 22:14:19 -0800732 default "0x00800000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700733 help
Paul Mundtcad82442006-01-16 22:14:19 -0800734 This option allows you to set the link address offset of the zImage.
735 This can be useful if you are on a board which has a small amount of
736 memory.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700737
Paul Mundtb412a49a2009-05-10 01:23:25 +0900738config ENTRY_OFFSET
739 hex
740 default "0x00001000" if PAGE_SIZE_4KB
741 default "0x00002000" if PAGE_SIZE_8KB
742 default "0x00004000" if PAGE_SIZE_16KB
743 default "0x00010000" if PAGE_SIZE_64KB
744 default "0x00000000"
745
Paul Mundtcad82442006-01-16 22:14:19 -0800746config UBC_WAKEUP
747 bool "Wakeup UBC on startup"
Paul Mundt0e3a9aa2007-11-06 15:55:36 +0900748 depends on CPU_SH4 && !CPU_SH4A
Paul Mundtcad82442006-01-16 22:14:19 -0800749 help
750 Selecting this option will wakeup the User Break Controller (UBC) on
751 startup. Although the UBC is left in an awake state when the processor
752 comes up, some boot loaders misbehave by putting the UBC to sleep in a
753 power saving state, which causes issues with things like ptrace().
Linus Torvalds1da177e2005-04-16 15:20:36 -0700754
755 If unsure, say N.
756
Paul Mundtcad82442006-01-16 22:14:19 -0800757config CMDLINE_BOOL
758 bool "Default bootloader kernel arguments"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700759
Paul Mundtcad82442006-01-16 22:14:19 -0800760config CMDLINE
761 string "Initial kernel command string"
762 depends on CMDLINE_BOOL
763 default "console=ttySC1,115200"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700764
765endmenu
766
Paul Mundtcad82442006-01-16 22:14:19 -0800767menu "Bus options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700768
Paul Mundtcad82442006-01-16 22:14:19 -0800769config SUPERHYWAY
770 tristate "SuperHyway Bus support"
771 depends on CPU_SUBTYPE_SH4_202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700772
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900773config MAPLE
Paul Mundte16038a2009-01-09 15:12:30 +0900774 bool "Maple Bus support"
775 depends on SH_DREAMCAST
776 help
777 The Maple Bus is SEGA's serial communication bus for peripherals
778 on the Dreamcast. Without this bus support you won't be able to
779 get your Dreamcast keyboard etc to work, so most users
780 probably want to say 'Y' here, unless you are only using the
781 Dreamcast with a serial line terminal or a remote network
782 connection.
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900783
Linus Torvalds1da177e2005-04-16 15:20:36 -0700784source "arch/sh/drivers/pci/Kconfig"
785
Paul Mundte16038a2009-01-09 15:12:30 +0900786source "drivers/pci/pcie/Kconfig"
787
Linus Torvalds1da177e2005-04-16 15:20:36 -0700788source "drivers/pci/Kconfig"
789
790source "drivers/pcmcia/Kconfig"
791
792source "drivers/pci/hotplug/Kconfig"
793
794endmenu
795
796menu "Executable file formats"
797
798source "fs/Kconfig.binfmt"
799
800endmenu
801
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900802menu "Power management options (EXPERIMENTAL)"
Magnus Dammaf998a92008-12-04 22:45:12 +0900803depends on EXPERIMENTAL
Johannes Bergf4cb5702007-12-08 02:14:00 +0100804
Magnus Dammc6f17cb2008-12-04 22:45:20 +0900805source "kernel/power/Kconfig"
806
807source "drivers/cpuidle/Kconfig"
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900808
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900809endmenu
810
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700811source "net/Kconfig"
812
Linus Torvalds1da177e2005-04-16 15:20:36 -0700813source "drivers/Kconfig"
814
815source "fs/Kconfig"
816
Linus Torvalds1da177e2005-04-16 15:20:36 -0700817source "arch/sh/Kconfig.debug"
818
819source "security/Kconfig"
820
821source "crypto/Kconfig"
822
823source "lib/Kconfig"