blob: 50d8981b8d11d493484fd81c0faf57ff9a19fecb [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
9 bool
10 default y
Paul Mundt7a440c92006-09-27 18:18:31 +090011 select EMBEDDED
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 help
13 The SuperH is a RISC processor targeted for use in embedded systems
14 and consumer electronics; it was also used in the Sega Dreamcast
15 gaming console. The SuperH port has a home page at
16 <http://www.linux-sh.org/>.
17
Linus Torvalds1da177e2005-04-16 15:20:36 -070018config RWSEM_GENERIC_SPINLOCK
19 bool
20 default y
21
22config RWSEM_XCHGADD_ALGORITHM
23 bool
24
Paul Mundtfa691512007-03-08 19:41:21 +090025config GENERIC_BUG
26 def_bool y
27 depends on BUG
28
Akinobu Mitae2268c72006-03-26 01:39:35 -080029config GENERIC_FIND_NEXT_BIT
30 bool
31 default y
32
33config GENERIC_HWEIGHT
34 bool
35 default y
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037config GENERIC_HARDIRQS
38 bool
39 default y
40
41config GENERIC_IRQ_PROBE
42 bool
43 default y
44
45config GENERIC_CALIBRATE_DELAY
46 bool
47 default y
48
Paul Mundtcad82442006-01-16 22:14:19 -080049config GENERIC_IOMAP
50 bool
51
Paul Mundt45882142006-10-04 13:21:45 +090052config GENERIC_TIME
53 def_bool n
54
Paul Mundt57be2b42007-05-09 17:33:24 +090055config GENERIC_CLOCKEVENTS
56 def_bool n
57
Paul Mundt357d5942007-06-11 15:32:07 +090058config SYS_SUPPORTS_PM
59 bool
60
Paul Mundt0a9b0db2007-01-24 21:56:20 +090061config SYS_SUPPORTS_APM_EMULATION
62 bool
Paul Mundt357d5942007-06-11 15:32:07 +090063 select SYS_SUPPORTS_PM
64
65config SYS_SUPPORTS_SMP
66 bool
67
68config SYS_SUPPORTS_NUMA
69 bool
70
71config SYS_SUPPORTS_PCI
72 bool
Paul Mundt0a9b0db2007-01-24 21:56:20 +090073
viro@ZenIV.linux.org.uka08b6b72005-09-06 01:48:42 +010074config ARCH_MAY_HAVE_PC_FDC
75 bool
viro@ZenIV.linux.org.uka08b6b72005-09-06 01:48:42 +010076
Paul Mundtafbfb522006-12-04 18:17:28 +090077config STACKTRACE_SUPPORT
78 bool
79 default y
80
81config LOCKDEP_SUPPORT
82 bool
83 default y
84
David Howellsf0d1b0b2006-12-08 02:37:49 -080085config ARCH_HAS_ILOG2_U32
86 bool
87 default n
88
89config ARCH_HAS_ILOG2_U64
90 bool
91 default n
92
Paul Mundte257ad02007-07-25 11:18:00 +090093config ARCH_NO_VIRT_TO_BUS
94 def_bool y
95
Linus Torvalds1da177e2005-04-16 15:20:36 -070096source "init/Kconfig"
97
98menu "System type"
99
Paul Mundtb5f42db2007-11-08 18:38:14 +0900100#
101# Processor families
102#
103config CPU_SH2
104 bool
105
106config CPU_SH2A
107 bool
108 select CPU_SH2
109
110config CPU_SH3
111 bool
112 select CPU_HAS_INTEVT
113 select CPU_HAS_SR_RB
114
115config CPU_SH4
116 bool
117 select CPU_HAS_INTEVT
118 select CPU_HAS_SR_RB
119 select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2
120 select CPU_HAS_FPU if !CPU_SH4AL_DSP
121
122config CPU_SH4A
123 bool
124 select CPU_SH4
125
126config CPU_SH4AL_DSP
127 bool
128 select CPU_SH4A
129 select CPU_HAS_DSP
130
131config CPU_SHX2
132 bool
133
134config CPU_SHX3
135 bool
136
137choice
138 prompt "Processor sub-type selection"
139
140#
141# Processor subtypes
142#
143
144# SH-2 Processor Support
145
146config CPU_SUBTYPE_SH7619
147 bool "Support SH7619 processor"
148 select CPU_SH2
149
150# SH-2A Processor Support
151
152config CPU_SUBTYPE_SH7206
153 bool "Support SH7206 processor"
154 select CPU_SH2A
155
156# SH-3 Processor Support
157
158config CPU_SUBTYPE_SH7705
159 bool "Support SH7705 processor"
160 select CPU_SH3
161
162config CPU_SUBTYPE_SH7706
163 bool "Support SH7706 processor"
164 select CPU_SH3
165 help
166 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
167
168config CPU_SUBTYPE_SH7707
169 bool "Support SH7707 processor"
170 select CPU_SH3
171 help
172 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
173
174config CPU_SUBTYPE_SH7708
175 bool "Support SH7708 processor"
176 select CPU_SH3
177 help
178 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
179 if you have a 100 Mhz SH-3 HD6417708R CPU.
180
181config CPU_SUBTYPE_SH7709
182 bool "Support SH7709 processor"
183 select CPU_SH3
184 help
185 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
186
187config CPU_SUBTYPE_SH7710
188 bool "Support SH7710 processor"
189 select CPU_SH3
190 select CPU_HAS_DSP
191 help
192 Select SH7710 if you have a SH3-DSP SH7710 CPU.
193
194config CPU_SUBTYPE_SH7712
195 bool "Support SH7712 processor"
196 select CPU_SH3
197 select CPU_HAS_DSP
198 help
199 Select SH7712 if you have a SH3-DSP SH7712 CPU.
200
201config CPU_SUBTYPE_SH7720
202 bool "Support SH7720 processor"
203 select CPU_SH3
204 select CPU_HAS_DSP
205 help
206 Select SH7720 if you have a SH3-DSP SH7720 CPU.
207
208# SH-4 Processor Support
209
210config CPU_SUBTYPE_SH7750
211 bool "Support SH7750 processor"
212 select CPU_SH4
213 help
214 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
215
216config CPU_SUBTYPE_SH7091
217 bool "Support SH7091 processor"
218 select CPU_SH4
219 help
220 Select SH7091 if you have an SH-4 based Sega device (such as
221 the Dreamcast, Naomi, and Naomi 2).
222
223config CPU_SUBTYPE_SH7750R
224 bool "Support SH7750R processor"
225 select CPU_SH4
226
227config CPU_SUBTYPE_SH7750S
228 bool "Support SH7750S processor"
229 select CPU_SH4
230
231config CPU_SUBTYPE_SH7751
232 bool "Support SH7751 processor"
233 select CPU_SH4
234 help
235 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
236 or if you have a HD6417751R CPU.
237
238config CPU_SUBTYPE_SH7751R
239 bool "Support SH7751R processor"
240 select CPU_SH4
241
242config CPU_SUBTYPE_SH7760
243 bool "Support SH7760 processor"
244 select CPU_SH4
245
246config CPU_SUBTYPE_SH4_202
247 bool "Support SH4-202 processor"
248 select CPU_SH4
249
250# SH-4A Processor Support
251
252config CPU_SUBTYPE_SH7770
253 bool "Support SH7770 processor"
254 select CPU_SH4A
255
256config CPU_SUBTYPE_SH7780
257 bool "Support SH7780 processor"
258 select CPU_SH4A
259
260config CPU_SUBTYPE_SH7785
261 bool "Support SH7785 processor"
262 select CPU_SH4A
263 select CPU_SHX2
264 select ARCH_SPARSEMEM_ENABLE
265 select SYS_SUPPORTS_NUMA
266
267config CPU_SUBTYPE_SHX3
268 bool "Support SH-X3 processor"
269 select CPU_SH4A
270 select CPU_SHX3
271 select ARCH_SPARSEMEM_ENABLE
272 select SYS_SUPPORTS_NUMA
273 select SYS_SUPPORTS_SMP
274
275# SH4AL-DSP Processor Support
276
277config CPU_SUBTYPE_SH7343
278 bool "Support SH7343 processor"
279 select CPU_SH4AL_DSP
280
281config CPU_SUBTYPE_SH7722
282 bool "Support SH7722 processor"
283 select CPU_SH4AL_DSP
284 select CPU_SHX2
285 select ARCH_SPARSEMEM_ENABLE
286 select SYS_SUPPORTS_NUMA
287
288endchoice
289
Paul Mundtcad82442006-01-16 22:14:19 -0800290source "arch/sh/mm/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700291
Paul Mundtcad82442006-01-16 22:14:19 -0800292menu "Processor features"
293
Paul Mundt53644082006-11-21 11:12:19 +0900294choice
295 prompt "Endianess selection"
296 default CPU_LITTLE_ENDIAN
Paul Mundtcad82442006-01-16 22:14:19 -0800297 help
298 Some SuperH machines can be configured for either little or big
Paul Mundt53644082006-11-21 11:12:19 +0900299 endian byte order. These modes require different kernels.
300
301config CPU_LITTLE_ENDIAN
302 bool "Little Endian"
303
304config CPU_BIG_ENDIAN
305 bool "Big Endian"
306
307endchoice
Paul Mundtcad82442006-01-16 22:14:19 -0800308
Linus Torvalds1da177e2005-04-16 15:20:36 -0700309config SH_FPU
310 bool "FPU support"
Paul Mundt1db4e9b2007-09-11 18:10:23 +0900311 depends on CPU_HAS_FPU
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312 default y
313 help
314 Selecting this option will enable support for SH processors that
315 have FPU units (ie, SH77xx).
316
317 This option must be set in order to enable the FPU.
318
Takashi YOSHII4b565682006-09-27 17:15:32 +0900319config SH_FPU_EMU
320 bool "FPU emulation support"
321 depends on !SH_FPU && EXPERIMENTAL
322 default n
323 help
324 Selecting this option will enable support for software FPU emulation.
325 Most SH-3 users will want to say Y here, whereas most SH-4 users will
326 want to say N.
327
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328config SH_DSP
329 bool "DSP support"
Paul Mundtac79fd52007-07-25 16:26:10 +0900330 depends on CPU_HAS_DSP
331 default y
Linus Torvalds1da177e2005-04-16 15:20:36 -0700332 help
333 Selecting this option will enable support for SH processors that
Paul Mundte5723e02006-09-27 17:38:11 +0900334 have DSP units (ie, SH2-DSP, SH3-DSP, and SH4AL-DSP).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700335
336 This option must be set in order to enable the DSP.
337
338config SH_ADC
339 bool "ADC support"
340 depends on CPU_SH3
341 default y
342 help
343 Selecting this option will allow the Linux kernel to use SH3 on-chip
344 ADC module.
345
346 If unsure, say N.
347
Linus Torvalds1da177e2005-04-16 15:20:36 -0700348config SH_STORE_QUEUES
349 bool "Support for Store Queues"
350 depends on CPU_SH4
351 help
352 Selecting this option will enable an in-kernel API for manipulating
353 the store queues integrated in the SH-4 processors.
354
Paul Mundt45ed2852007-03-08 18:12:17 +0900355config SPECULATIVE_EXECUTION
356 bool "Speculative subroutine return"
357 depends on CPU_SUBTYPE_SH7780 && EXPERIMENTAL
358 help
359 This enables support for a speculative instruction fetch for
360 subroutine return. There are various pitfalls associated with
361 this, as outlined in the SH7780 hardware manual.
362
363 If unsure, say N.
364
Paul Mundtcad82442006-01-16 22:14:19 -0800365config CPU_HAS_INTEVT
366 bool
367
Paul Mundtba463932006-09-27 18:01:16 +0900368config CPU_HAS_MASKREG_IRQ
369 bool
370
Jamie Lenehanea0f8fe2006-12-06 12:05:02 +0900371config CPU_HAS_IPR_IRQ
372 bool
373
Paul Mundtcad82442006-01-16 22:14:19 -0800374config CPU_HAS_SR_RB
Paul Mundtc81134b2007-10-31 15:22:45 +0900375 bool
Paul Mundtcad82442006-01-16 22:14:19 -0800376 help
377 This will enable the use of SR.RB register bank usage. Processors
378 that are lacking this bit must have another method in place for
379 accomplishing what is taken care of by the banked registers.
380
381 See <file:Documentation/sh/register-banks.txt> for further
382 information on SR.RB and register banking in the kernel in general.
383
Stuart Menefy9b3a53a2006-11-24 11:42:24 +0900384config CPU_HAS_PTEA
385 bool
386
Paul Mundtac79fd52007-07-25 16:26:10 +0900387config CPU_HAS_DSP
388 bool
389
Paul Mundt1db4e9b2007-09-11 18:10:23 +0900390config CPU_HAS_FPU
391 bool
392
Paul Mundtcad82442006-01-16 22:14:19 -0800393endmenu
394
Paul Mundtf3d22292007-05-14 17:29:12 +0900395menu "Board support"
396
397config SOLUTION_ENGINE
398 bool
399
400config SH_SOLUTION_ENGINE
401 bool "SolutionEngine"
402 select SOLUTION_ENGINE
Magnus Damm56386f62007-07-20 18:44:49 +0900403 select CPU_HAS_IPR_IRQ
Nobuhiro Iwamatsua8199072007-11-05 07:44:41 +0900404 depends on CPU_SUBTYPE_SH7705 || CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7710 || \
405 CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7750S || \
406 CPU_SUBTYPE_SH7750R
Paul Mundtf3d22292007-05-14 17:29:12 +0900407 help
Nobuhiro Iwamatsua8199072007-11-05 07:44:41 +0900408 Select SolutionEngine if configuring for a Hitachi SH7705, SH7709,
409 SH7710, SH7712, SH7750, SH7750S or SH7750R evaluation board.
Paul Mundtf3d22292007-05-14 17:29:12 +0900410
411config SH_7206_SOLUTION_ENGINE
412 bool "SolutionEngine7206"
413 select SOLUTION_ENGINE
414 depends on CPU_SUBTYPE_SH7206
415 help
416 Select 7206 SolutionEngine if configuring for a Hitachi SH7206
417 evaluation board.
418
419config SH_7619_SOLUTION_ENGINE
420 bool "SolutionEngine7619"
421 select SOLUTION_ENGINE
422 depends on CPU_SUBTYPE_SH7619
423 help
424 Select 7619 SolutionEngine if configuring for a Hitachi SH7619
425 evaluation board.
426
427config SH_7722_SOLUTION_ENGINE
428 bool "SolutionEngine7722"
429 select SOLUTION_ENGINE
430 depends on CPU_SUBTYPE_SH7722
431 help
432 Select 7722 SolutionEngine if configuring for a Hitachi SH772
433 evaluation board.
434
435config SH_7751_SOLUTION_ENGINE
436 bool "SolutionEngine7751"
437 select SOLUTION_ENGINE
Magnus Damm56386f62007-07-20 18:44:49 +0900438 select CPU_HAS_IPR_IRQ
Paul Mundtf3d22292007-05-14 17:29:12 +0900439 depends on CPU_SUBTYPE_SH7751
440 help
441 Select 7751 SolutionEngine if configuring for a Hitachi SH7751
442 evaluation board.
443
444config SH_7780_SOLUTION_ENGINE
445 bool "SolutionEngine7780"
446 select SOLUTION_ENGINE
Paul Mundt357d5942007-06-11 15:32:07 +0900447 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900448 depends on CPU_SUBTYPE_SH7780
449 help
450 Select 7780 SolutionEngine if configuring for a Renesas SH7780
451 evaluation board.
452
Paul Mundtf3d22292007-05-14 17:29:12 +0900453config SH_7343_SOLUTION_ENGINE
454 bool "SolutionEngine7343"
455 select SOLUTION_ENGINE
456 depends on CPU_SUBTYPE_SH7343
457 help
458 Select 7343 SolutionEngine if configuring for a Hitachi
459 SH7343 (SH-Mobile 3AS) evaluation board.
460
Paul Mundtf3d22292007-05-14 17:29:12 +0900461config SH_7751_SYSTEMH
462 bool "SystemH7751R"
463 depends on CPU_SUBTYPE_SH7751R
464 help
465 Select SystemH if you are configuring for a Renesas SystemH
466 7751R evaluation board.
467
468config SH_HP6XX
469 bool "HP6XX"
470 select SYS_SUPPORTS_APM_EMULATION
Paul Mundt357d5942007-06-11 15:32:07 +0900471 select HD6446X_SERIES
Paul Mundtf3d22292007-05-14 17:29:12 +0900472 depends on CPU_SUBTYPE_SH7709
473 help
474 Select HP6XX if configuring for a HP jornada HP6xx.
475 More information (hardware only) at
476 <http://www.hp.com/jornada/>.
477
Paul Mundtf3d22292007-05-14 17:29:12 +0900478config SH_DREAMCAST
479 bool "Dreamcast"
Paul Mundt357d5942007-06-11 15:32:07 +0900480 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900481 depends on CPU_SUBTYPE_SH7091
482 help
483 Select Dreamcast if configuring for a SEGA Dreamcast.
Adrian McMenaminad07b102007-10-15 10:38:31 +0900484 More information at <http://www.linux-sh.org>
Paul Mundtf3d22292007-05-14 17:29:12 +0900485
486config SH_MPC1211
487 bool "Interface MPC1211"
488 depends on CPU_SUBTYPE_SH7751 && BROKEN
489 help
490 CTP/PCI-SH02 is a CPU module computer that is produced
491 by Interface Corporation.
492 More information at <http://www.interface.co.jp>
493
494config SH_SH03
495 bool "Interface CTP/PCI-SH03"
Magnus Dammd59645d2007-08-03 14:23:35 +0900496 depends on CPU_SUBTYPE_SH7751
Magnus Damm56386f62007-07-20 18:44:49 +0900497 select CPU_HAS_IPR_IRQ
Paul Mundt357d5942007-06-11 15:32:07 +0900498 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900499 help
500 CTP/PCI-SH03 is a CPU module computer that is produced
501 by Interface Corporation.
502 More information at <http://www.interface.co.jp>
503
504config SH_SECUREEDGE5410
505 bool "SecureEdge5410"
506 depends on CPU_SUBTYPE_SH7751R
Magnus Damm56386f62007-07-20 18:44:49 +0900507 select CPU_HAS_IPR_IRQ
Paul Mundt357d5942007-06-11 15:32:07 +0900508 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900509 help
510 Select SecureEdge5410 if configuring for a SnapGear SH board.
511 This includes both the OEM SecureEdge products as well as the
512 SME product line.
513
514config SH_HS7751RVOIP
515 bool "HS7751RVOIP"
516 depends on CPU_SUBTYPE_SH7751R
517 help
518 Select HS7751RVOIP if configuring for a Renesas Technology
519 Sales VoIP board.
520
521config SH_7710VOIPGW
522 bool "SH7710-VOIP-GW"
523 depends on CPU_SUBTYPE_SH7710
524 help
525 Select this option to build a kernel for the SH7710 based
526 VOIP GW.
527
528config SH_RTS7751R2D
529 bool "RTS7751R2D"
530 depends on CPU_SUBTYPE_SH7751R
Paul Mundt357d5942007-06-11 15:32:07 +0900531 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900532 help
533 Select RTS7751R2D if configuring for a Renesas Technology
534 Sales SH-Graphics board.
535
536config SH_HIGHLANDER
537 bool "Highlander"
538 depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
Paul Mundt357d5942007-06-11 15:32:07 +0900539 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900540
541config SH_EDOSK7705
542 bool "EDOSK7705"
543 depends on CPU_SUBTYPE_SH7705
544
545config SH_SH4202_MICRODEV
546 bool "SH4-202 MicroDev"
547 depends on CPU_SUBTYPE_SH4_202
548 help
549 Select SH4-202 MicroDev if configuring for a SuperH MicroDev board
550 with an SH4-202 CPU.
551
552config SH_LANDISK
553 bool "LANDISK"
554 depends on CPU_SUBTYPE_SH7751R
Paul Mundt357d5942007-06-11 15:32:07 +0900555 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900556 help
557 I-O DATA DEVICE, INC. "LANDISK Series" support.
558
559config SH_TITAN
560 bool "TITAN"
561 depends on CPU_SUBTYPE_SH7751R
Magnus Damm56386f62007-07-20 18:44:49 +0900562 select CPU_HAS_IPR_IRQ
Paul Mundt357d5942007-06-11 15:32:07 +0900563 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900564 help
565 Select Titan if you are configuring for a Nimble Microsystems
566 NetEngine NP51R.
567
568config SH_SHMIN
569 bool "SHMIN"
570 depends on CPU_SUBTYPE_SH7706
Magnus Damm56386f62007-07-20 18:44:49 +0900571 select CPU_HAS_IPR_IRQ
Paul Mundtf3d22292007-05-14 17:29:12 +0900572 help
573 Select SHMIN if configuring for the SHMIN board.
574
575config SH_LBOX_RE2
576 bool "L-BOX RE2"
577 depends on CPU_SUBTYPE_SH7751R
Paul Mundt357d5942007-06-11 15:32:07 +0900578 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900579 help
580 Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2.
581
Paul Mundt94807a32007-08-08 15:22:04 +0900582config SH_X3PROTO
583 bool "SH-X3 Prototype board"
584 depends on CPU_SUBTYPE_SHX3
585
Markus Brunnerded54312007-09-12 11:54:58 +0900586config SH_MAGIC_PANEL_R2
587 bool "Magic Panel R2"
588 depends on CPU_SUBTYPE_SH7720
589 help
590 Select Magic Panel R2 if configuring for Magic Panel R2.
591
Paul Mundtf3d22292007-05-14 17:29:12 +0900592endmenu
593
594source "arch/sh/boards/renesas/hs7751rvoip/Kconfig"
595source "arch/sh/boards/renesas/rts7751r2d/Kconfig"
596source "arch/sh/boards/renesas/r7780rp/Kconfig"
Markus Brunnerded54312007-09-12 11:54:58 +0900597source "arch/sh/boards/magicpanelr2/Kconfig"
Paul Mundtf3d22292007-05-14 17:29:12 +0900598
Paul Mundt32351a22007-03-12 14:38:59 +0900599menu "Timer and clock configuration"
600
Paul Mundtcad82442006-01-16 22:14:19 -0800601config SH_TMU
602 bool "TMU timer support"
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900603 depends on CPU_SH3 || CPU_SH4
Paul Mundt57be2b42007-05-09 17:33:24 +0900604 select GENERIC_TIME
605 select GENERIC_CLOCKEVENTS
Paul Mundtcad82442006-01-16 22:14:19 -0800606 default y
607 help
608 This enables the use of the TMU as the system timer.
609
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900610config SH_CMT
611 bool "CMT timer support"
612 depends on CPU_SH2
613 default y
614 help
615 This enables the use of the CMT as the system timer.
616
617config SH_MTU2
618 bool "MTU2 timer support"
619 depends on CPU_SH2A
620 default n
621 help
622 This enables the use of the MTU2 as the system timer.
623
Paul Mundt417528a2006-11-20 11:18:30 +0900624config SH_TIMER_IRQ
625 int
Paul Mundt32351a22007-03-12 14:38:59 +0900626 default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
Paul Mundt417528a2006-11-20 11:18:30 +0900627 default "86" if CPU_SUBTYPE_SH7619
628 default "140" if CPU_SUBTYPE_SH7206
629 default "16"
630
Paul Mundtcad82442006-01-16 22:14:19 -0800631config SH_PCLK_FREQ
632 int "Peripheral clock frequency (in Hz)"
Magnus Damm870e8a22007-07-25 10:49:21 +0900633 default "27000000" if CPU_SUBTYPE_SH7343
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900634 default "31250000" if CPU_SUBTYPE_SH7619
Paul Mundt05627482007-05-15 16:25:47 +0900635 default "32000000" if CPU_SUBTYPE_SH7722
Magnus Dammd89ddd12007-07-25 11:42:56 +0900636 default "33333333" if CPU_SUBTYPE_SH7770 || \
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900637 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
638 CPU_SUBTYPE_SH7206
Paul Mundt05627482007-05-15 16:25:47 +0900639 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
Paul Mundtcad82442006-01-16 22:14:19 -0800640 default "66000000" if CPU_SUBTYPE_SH4_202
Paul Mundt05627482007-05-15 16:25:47 +0900641 default "50000000"
Paul Mundtcad82442006-01-16 22:14:19 -0800642 help
643 This option is used to specify the peripheral clock frequency.
644 This is necessary for determining the reference clock value on
645 platforms lacking an RTC.
646
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900647config SH_CLK_MD
648 int "CPU Mode Pin Setting"
649 depends on CPU_SUBTYPE_SH7619 || CPU_SUBTYPE_SH7206
Paul Mundt357d5942007-06-11 15:32:07 +0900650 default 6 if CPU_SUBTYPE_SH7206
651 default 5 if CPU_SUBTYPE_SH7619
652 default 0
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900653 help
Yoshinori Sato11cbb702006-12-07 18:07:27 +0900654 MD2 - MD0 pin setting.
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900655
Paul Mundt57be2b42007-05-09 17:33:24 +0900656source "kernel/time/Kconfig"
657
Paul Mundt32351a22007-03-12 14:38:59 +0900658endmenu
659
Paul Mundtcad82442006-01-16 22:14:19 -0800660menu "CPU Frequency scaling"
661
662source "drivers/cpufreq/Kconfig"
663
664config SH_CPU_FREQ
665 tristate "SuperH CPU Frequency driver"
Paul Mundtcb5ec752007-07-20 13:38:19 +0900666 depends on CPU_FREQ
Paul Mundtcad82442006-01-16 22:14:19 -0800667 select CPU_FREQ_TABLE
668 help
669 This adds the cpufreq driver for SuperH. At present, only
670 the SH-4 is supported.
671
672 For details, take a look at <file:Documentation/cpu-freq>.
673
674 If unsure, say N.
675
676endmenu
677
Paul Mundt9f5e8ee2006-11-24 11:22:57 +0900678source "arch/sh/drivers/Kconfig"
679
Paul Mundtcad82442006-01-16 22:14:19 -0800680endmenu
681
682config ISA_DMA_API
683 bool
Adrian Bunk05efc672006-02-17 13:52:42 -0800684 depends on SH_MPC1211
Paul Mundtcad82442006-01-16 22:14:19 -0800685 default y
686
687menu "Kernel features"
688
Paul Mundt91b91d02006-09-27 18:08:33 +0900689source kernel/Kconfig.hz
690
Paul Mundtcad82442006-01-16 22:14:19 -0800691config KEXEC
692 bool "kexec system call (EXPERIMENTAL)"
693 depends on EXPERIMENTAL
694 help
695 kexec is a system call that implements the ability to shutdown your
696 current kernel, and to start another kernel. It is like a reboot
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400697 but it is independent of the system firmware. And like a reboot
Paul Mundtcad82442006-01-16 22:14:19 -0800698 you can start any kernel with it, not just Linux.
699
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400700 The name comes from the similarity to the exec system call.
Paul Mundtcad82442006-01-16 22:14:19 -0800701
702 It is an ongoing process to be certain the hardware in a machine
703 is properly shutdown, so do not be surprised if this code does not
704 initially work for you. It may help to enable device hotplugging
705 support. As of this writing the exact hardware interface is
706 strongly in flux, so no good recommendation can be made.
707
Paul Mundt4d5ade52007-04-27 11:25:57 +0900708config CRASH_DUMP
709 bool "kernel crash dumps (EXPERIMENTAL)"
710 depends on EXPERIMENTAL
711 help
712 Generate crash dump after being started by kexec.
713 This should be normally only set in special crash dump kernels
714 which are loaded in the main kernel with kexec-tools into
715 a specially reserved region and then later executed after
716 a crash by kdump/kexec. The crash dump kernel must be compiled
717 to a memory address not used by the main kernel using
718 MEMORY_START.
719
720 For more details see Documentation/kdump/kdump.txt
721
Linus Torvalds1da177e2005-04-16 15:20:36 -0700722config SMP
723 bool "Symmetric multi-processing support"
Paul Mundt357d5942007-06-11 15:32:07 +0900724 depends on SYS_SUPPORTS_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700725 ---help---
726 This enables support for systems with more than one CPU. If you have
727 a system with only one CPU, like most personal computers, say N. If
728 you have a system with more than one CPU, say Y.
729
730 If you say N here, the kernel will run on single and multiprocessor
731 machines, but will use only one CPU of a multiprocessor machine. If
732 you say Y here, the kernel will run on many, but not all,
733 singleprocessor machines. On a singleprocessor machine, the kernel
734 will run faster if you say N here.
735
736 People using multiprocessor machines who say Y here should also say
737 Y to "Enhanced Real Time Clock Support", below.
738
739 See also the <file:Documentation/smp.txt>,
740 <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available
741 at <http://www.tldp.org/docs.html#howto>.
742
743 If you don't know what to do here, say N.
744
745config NR_CPUS
746 int "Maximum number of CPUs (2-32)"
747 range 2 32
748 depends on SMP
Paul Mundt2b1bd1a2007-06-20 18:27:10 +0900749 default "4" if CPU_SHX3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700750 default "2"
751 help
752 This allows you to specify the maximum number of CPUs which this
753 kernel will support. The maximum supported value is 32 and the
754 minimum value which makes sense is 2.
755
756 This is purely to save memory - each supported CPU adds
757 approximately eight kilobytes to the kernel image.
758
Paul Mundt91b91d02006-09-27 18:08:33 +0900759source "kernel/Kconfig.preempt"
760
Paul Mundt83662462007-09-28 16:04:49 +0900761config GUSA
762 def_bool y
763 depends on !SMP
764 help
765 This enables support for gUSA (general UserSpace Atomicity).
766 This is the default implementation for both UP and non-ll/sc
767 CPUs, and is used by the libc, amongst others.
768
769 For additional information, design information can be found
770 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
771
772 This should only be disabled for special cases where alternate
773 atomicity implementations exist.
774
Paul Mundtcad82442006-01-16 22:14:19 -0800775endmenu
776
777menu "Boot options"
778
779config ZERO_PAGE_OFFSET
780 hex "Zero page offset"
781 default "0x00004000" if SH_MPC1211 || SH_SH03
Paul Mundt7a847f82006-12-26 15:29:19 +0900782 default "0x00010000" if PAGE_SIZE_64KB
783 default "0x00002000" if PAGE_SIZE_8KB
Paul Mundtcad82442006-01-16 22:14:19 -0800784 default "0x00001000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700785 help
Paul Mundtcad82442006-01-16 22:14:19 -0800786 This sets the default offset of zero page.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700787
Paul Mundtcad82442006-01-16 22:14:19 -0800788config BOOT_LINK_OFFSET
789 hex "Link address offset for booting"
790 default "0x00800000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700791 help
Paul Mundtcad82442006-01-16 22:14:19 -0800792 This option allows you to set the link address offset of the zImage.
793 This can be useful if you are on a board which has a small amount of
794 memory.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700795
Paul Mundtcad82442006-01-16 22:14:19 -0800796config UBC_WAKEUP
797 bool "Wakeup UBC on startup"
Paul Mundt0e3a9aa2007-11-06 15:55:36 +0900798 depends on CPU_SH4 && !CPU_SH4A
Paul Mundtcad82442006-01-16 22:14:19 -0800799 help
800 Selecting this option will wakeup the User Break Controller (UBC) on
801 startup. Although the UBC is left in an awake state when the processor
802 comes up, some boot loaders misbehave by putting the UBC to sleep in a
803 power saving state, which causes issues with things like ptrace().
Linus Torvalds1da177e2005-04-16 15:20:36 -0700804
805 If unsure, say N.
806
Paul Mundtcad82442006-01-16 22:14:19 -0800807config CMDLINE_BOOL
808 bool "Default bootloader kernel arguments"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809
Paul Mundtcad82442006-01-16 22:14:19 -0800810config CMDLINE
811 string "Initial kernel command string"
812 depends on CMDLINE_BOOL
813 default "console=ttySC1,115200"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700814
815endmenu
816
Paul Mundtcad82442006-01-16 22:14:19 -0800817menu "Bus options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700818
819# Even on SuperH devices which don't have an ISA bus,
820# this variable helps the PCMCIA modules handle
821# IRQ requesting properly -- Greg Banks.
822#
823# Though we're generally not interested in it when
824# we're not using PCMCIA, so we make it dependent on
825# PCMCIA outright. -- PFM.
826config ISA
Paul Mundt357d5942007-06-11 15:32:07 +0900827 def_bool y
828 depends on PCMCIA && HD6446X_SERIES
Linus Torvalds1da177e2005-04-16 15:20:36 -0700829 help
830 Find out whether you have ISA slots on your motherboard. ISA is the
831 name of a bus system, i.e. the way the CPU talks to the other stuff
832 inside your box. Other bus systems are PCI, EISA, MicroChannel
833 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
834 newer boards don't support it. If you have ISA, say Y, otherwise N.
835
836config EISA
837 bool
838 ---help---
839 The Extended Industry Standard Architecture (EISA) bus was
840 developed as an open alternative to the IBM MicroChannel bus.
841
842 The EISA bus provided some of the features of the IBM MicroChannel
843 bus while maintaining backward compatibility with cards made for
844 the older ISA bus. The EISA bus saw limited use between 1988 and
845 1995 when it was made obsolete by the PCI bus.
846
847 Say Y here if you are building a kernel for an EISA-based machine.
848
849 Otherwise, say N.
850
851config MCA
852 bool
853 help
854 MicroChannel Architecture is found in some IBM PS/2 machines and
855 laptops. It is a bus system similar to PCI or ISA. See
856 <file:Documentation/mca.txt> (and especially the web page given
857 there) before attempting to build an MCA bus kernel.
858
859config SBUS
860 bool
861
Paul Mundtcad82442006-01-16 22:14:19 -0800862config SUPERHYWAY
863 tristate "SuperHyway Bus support"
864 depends on CPU_SUBTYPE_SH4_202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700865
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900866config MAPLE
867 bool "Maple Bus support"
868 depends on SH_DREAMCAST
869 help
870 The Maple Bus is SEGA's serial communication bus for peripherals
871 on the Dreamcast. Without this bus support you won't be able to
872 get your Dreamcast keyboard etc to work, so most users
873 probably want to say 'Y' here, unless you are only using the
874 Dreamcast with a serial line terminal or a remote network
875 connection.
876
Paul Mundt824e55f2007-06-20 18:01:52 +0900877config CF_ENABLER
878 bool "Compact Flash Enabler support"
879 depends on SOLUTION_ENGINE || SH_SH03
880 ---help---
881 Compact Flash is a small, removable mass storage device introduced
882 in 1994 originally as a PCMCIA device. If you say `Y' here, you
883 compile in support for Compact Flash devices directly connected to
884 a SuperH processor. A Compact Flash FAQ is available at
885 <http://www.compactflash.org/faqs/faq.htm>.
886
887 If your board has "Directly Connected" CompactFlash at area 5 or 6,
888 you may want to enable this option. Then, you can use CF as
889 primary IDE drive (only tested for SanDisk).
890
891 If in doubt, select 'N'.
892
893choice
894 prompt "Compact Flash Connection Area"
895 depends on CF_ENABLER
896 default CF_AREA6
897
898config CF_AREA5
899 bool "Area5"
900 help
901 If your board has "Directly Connected" CompactFlash, You should
902 select the area where your CF is connected to.
903
904 - "Area5" if CompactFlash is connected to Area 5 (0x14000000)
905 - "Area6" if it is connected to Area 6 (0x18000000)
906
907 "Area6" will work for most boards.
908
909config CF_AREA6
910 bool "Area6"
911
912endchoice
913
914config CF_BASE_ADDR
915 hex
916 depends on CF_ENABLER
917 default "0xb8000000" if CF_AREA6
918 default "0xb4000000" if CF_AREA5
919
Linus Torvalds1da177e2005-04-16 15:20:36 -0700920source "arch/sh/drivers/pci/Kconfig"
921
922source "drivers/pci/Kconfig"
923
924source "drivers/pcmcia/Kconfig"
925
926source "drivers/pci/hotplug/Kconfig"
927
928endmenu
929
930menu "Executable file formats"
931
932source "fs/Kconfig.binfmt"
933
934endmenu
935
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900936menu "Power management options (EXPERIMENTAL)"
Paul Mundt357d5942007-06-11 15:32:07 +0900937depends on EXPERIMENTAL && SYS_SUPPORTS_PM
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900938
939source kernel/power/Kconfig
940
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900941endmenu
942
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700943source "net/Kconfig"
944
Linus Torvalds1da177e2005-04-16 15:20:36 -0700945source "drivers/Kconfig"
946
947source "fs/Kconfig"
948
Mathieu Desnoyers09caded2007-10-18 23:41:05 -0700949source "kernel/Kconfig.instrumentation"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700950
951source "arch/sh/Kconfig.debug"
952
953source "security/Kconfig"
954
955source "crypto/Kconfig"
956
957source "lib/Kconfig"