blob: e6721b8e9dc1a2d6880468907a478953111ff81d [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
Paul Mundt39d28a22007-11-08 18:39:33 +090018config SUPERH32
19 def_bool y
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021config RWSEM_GENERIC_SPINLOCK
22 bool
23 default y
24
25config RWSEM_XCHGADD_ALGORITHM
26 bool
27
Paul Mundtfa691512007-03-08 19:41:21 +090028config GENERIC_BUG
29 def_bool y
30 depends on BUG
31
Akinobu Mitae2268c72006-03-26 01:39:35 -080032config GENERIC_FIND_NEXT_BIT
33 bool
34 default y
35
36config GENERIC_HWEIGHT
37 bool
38 default y
39
Linus Torvalds1da177e2005-04-16 15:20:36 -070040config GENERIC_HARDIRQS
41 bool
42 default y
43
44config GENERIC_IRQ_PROBE
45 bool
46 default y
47
48config GENERIC_CALIBRATE_DELAY
49 bool
50 default y
51
Paul Mundtcad82442006-01-16 22:14:19 -080052config GENERIC_IOMAP
53 bool
54
Paul Mundt45882142006-10-04 13:21:45 +090055config GENERIC_TIME
56 def_bool n
57
Paul Mundt57be2b42007-05-09 17:33:24 +090058config GENERIC_CLOCKEVENTS
59 def_bool n
60
Paul Mundt357d5942007-06-11 15:32:07 +090061config SYS_SUPPORTS_PM
62 bool
63
Paul Mundt0a9b0db2007-01-24 21:56:20 +090064config SYS_SUPPORTS_APM_EMULATION
65 bool
Paul Mundt357d5942007-06-11 15:32:07 +090066 select SYS_SUPPORTS_PM
67
68config SYS_SUPPORTS_SMP
69 bool
70
71config SYS_SUPPORTS_NUMA
72 bool
73
74config SYS_SUPPORTS_PCI
75 bool
Paul Mundt0a9b0db2007-01-24 21:56:20 +090076
viro@ZenIV.linux.org.uka08b6b72005-09-06 01:48:42 +010077config ARCH_MAY_HAVE_PC_FDC
78 bool
viro@ZenIV.linux.org.uka08b6b72005-09-06 01:48:42 +010079
Paul Mundtafbfb522006-12-04 18:17:28 +090080config STACKTRACE_SUPPORT
81 bool
82 default y
83
84config LOCKDEP_SUPPORT
85 bool
86 default y
87
David Howellsf0d1b0b2006-12-08 02:37:49 -080088config ARCH_HAS_ILOG2_U32
89 bool
90 default n
91
92config ARCH_HAS_ILOG2_U64
93 bool
94 default n
95
Paul Mundte257ad02007-07-25 11:18:00 +090096config ARCH_NO_VIRT_TO_BUS
97 def_bool y
98
Linus Torvalds1da177e2005-04-16 15:20:36 -070099source "init/Kconfig"
100
101menu "System type"
102
Paul Mundtb5f42db2007-11-08 18:38:14 +0900103#
104# Processor families
105#
106config CPU_SH2
107 bool
108
109config CPU_SH2A
110 bool
111 select CPU_SH2
112
113config CPU_SH3
114 bool
115 select CPU_HAS_INTEVT
116 select CPU_HAS_SR_RB
117
118config CPU_SH4
119 bool
120 select CPU_HAS_INTEVT
121 select CPU_HAS_SR_RB
122 select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2
123 select CPU_HAS_FPU if !CPU_SH4AL_DSP
124
125config CPU_SH4A
126 bool
127 select CPU_SH4
128
129config CPU_SH4AL_DSP
130 bool
131 select CPU_SH4A
132 select CPU_HAS_DSP
133
134config CPU_SHX2
135 bool
136
137config CPU_SHX3
138 bool
139
140choice
141 prompt "Processor sub-type selection"
142
143#
144# Processor subtypes
145#
146
147# SH-2 Processor Support
148
149config CPU_SUBTYPE_SH7619
150 bool "Support SH7619 processor"
151 select CPU_SH2
152
153# SH-2A Processor Support
154
155config CPU_SUBTYPE_SH7206
156 bool "Support SH7206 processor"
157 select CPU_SH2A
158
159# SH-3 Processor Support
160
161config CPU_SUBTYPE_SH7705
162 bool "Support SH7705 processor"
163 select CPU_SH3
164
165config CPU_SUBTYPE_SH7706
166 bool "Support SH7706 processor"
167 select CPU_SH3
168 help
169 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
170
171config CPU_SUBTYPE_SH7707
172 bool "Support SH7707 processor"
173 select CPU_SH3
174 help
175 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
176
177config CPU_SUBTYPE_SH7708
178 bool "Support SH7708 processor"
179 select CPU_SH3
180 help
181 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
182 if you have a 100 Mhz SH-3 HD6417708R CPU.
183
184config CPU_SUBTYPE_SH7709
185 bool "Support SH7709 processor"
186 select CPU_SH3
187 help
188 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
189
190config CPU_SUBTYPE_SH7710
191 bool "Support SH7710 processor"
192 select CPU_SH3
193 select CPU_HAS_DSP
194 help
195 Select SH7710 if you have a SH3-DSP SH7710 CPU.
196
197config CPU_SUBTYPE_SH7712
198 bool "Support SH7712 processor"
199 select CPU_SH3
200 select CPU_HAS_DSP
201 help
202 Select SH7712 if you have a SH3-DSP SH7712 CPU.
203
204config CPU_SUBTYPE_SH7720
205 bool "Support SH7720 processor"
206 select CPU_SH3
207 select CPU_HAS_DSP
208 help
209 Select SH7720 if you have a SH3-DSP SH7720 CPU.
210
211# SH-4 Processor Support
212
213config CPU_SUBTYPE_SH7750
214 bool "Support SH7750 processor"
215 select CPU_SH4
216 help
217 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
218
219config CPU_SUBTYPE_SH7091
220 bool "Support SH7091 processor"
221 select CPU_SH4
222 help
223 Select SH7091 if you have an SH-4 based Sega device (such as
224 the Dreamcast, Naomi, and Naomi 2).
225
226config CPU_SUBTYPE_SH7750R
227 bool "Support SH7750R processor"
228 select CPU_SH4
229
230config CPU_SUBTYPE_SH7750S
231 bool "Support SH7750S processor"
232 select CPU_SH4
233
234config CPU_SUBTYPE_SH7751
235 bool "Support SH7751 processor"
236 select CPU_SH4
237 help
238 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
239 or if you have a HD6417751R CPU.
240
241config CPU_SUBTYPE_SH7751R
242 bool "Support SH7751R processor"
243 select CPU_SH4
244
245config CPU_SUBTYPE_SH7760
246 bool "Support SH7760 processor"
247 select CPU_SH4
248
249config CPU_SUBTYPE_SH4_202
250 bool "Support SH4-202 processor"
251 select CPU_SH4
252
253# SH-4A Processor Support
254
255config CPU_SUBTYPE_SH7770
256 bool "Support SH7770 processor"
257 select CPU_SH4A
258
259config CPU_SUBTYPE_SH7780
260 bool "Support SH7780 processor"
261 select CPU_SH4A
262
263config CPU_SUBTYPE_SH7785
264 bool "Support SH7785 processor"
265 select CPU_SH4A
266 select CPU_SHX2
267 select ARCH_SPARSEMEM_ENABLE
268 select SYS_SUPPORTS_NUMA
269
270config CPU_SUBTYPE_SHX3
271 bool "Support SH-X3 processor"
272 select CPU_SH4A
273 select CPU_SHX3
274 select ARCH_SPARSEMEM_ENABLE
275 select SYS_SUPPORTS_NUMA
276 select SYS_SUPPORTS_SMP
277
278# SH4AL-DSP Processor Support
279
280config CPU_SUBTYPE_SH7343
281 bool "Support SH7343 processor"
282 select CPU_SH4AL_DSP
283
284config CPU_SUBTYPE_SH7722
285 bool "Support SH7722 processor"
286 select CPU_SH4AL_DSP
287 select CPU_SHX2
288 select ARCH_SPARSEMEM_ENABLE
289 select SYS_SUPPORTS_NUMA
290
291endchoice
292
Paul Mundtcad82442006-01-16 22:14:19 -0800293source "arch/sh/mm/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700294
Paul Mundtcad82442006-01-16 22:14:19 -0800295menu "Processor features"
296
Paul Mundt53644082006-11-21 11:12:19 +0900297choice
298 prompt "Endianess selection"
299 default CPU_LITTLE_ENDIAN
Paul Mundtcad82442006-01-16 22:14:19 -0800300 help
301 Some SuperH machines can be configured for either little or big
Paul Mundt53644082006-11-21 11:12:19 +0900302 endian byte order. These modes require different kernels.
303
304config CPU_LITTLE_ENDIAN
305 bool "Little Endian"
306
307config CPU_BIG_ENDIAN
308 bool "Big Endian"
309
310endchoice
Paul Mundtcad82442006-01-16 22:14:19 -0800311
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312config SH_FPU
313 bool "FPU support"
Paul Mundt1db4e9b2007-09-11 18:10:23 +0900314 depends on CPU_HAS_FPU
Linus Torvalds1da177e2005-04-16 15:20:36 -0700315 default y
316 help
317 Selecting this option will enable support for SH processors that
318 have FPU units (ie, SH77xx).
319
320 This option must be set in order to enable the FPU.
321
Takashi YOSHII4b565682006-09-27 17:15:32 +0900322config SH_FPU_EMU
323 bool "FPU emulation support"
324 depends on !SH_FPU && EXPERIMENTAL
325 default n
326 help
327 Selecting this option will enable support for software FPU emulation.
328 Most SH-3 users will want to say Y here, whereas most SH-4 users will
329 want to say N.
330
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331config SH_DSP
332 bool "DSP support"
Paul Mundtac79fd52007-07-25 16:26:10 +0900333 depends on CPU_HAS_DSP
334 default y
Linus Torvalds1da177e2005-04-16 15:20:36 -0700335 help
336 Selecting this option will enable support for SH processors that
Paul Mundte5723e02006-09-27 17:38:11 +0900337 have DSP units (ie, SH2-DSP, SH3-DSP, and SH4AL-DSP).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338
339 This option must be set in order to enable the DSP.
340
341config SH_ADC
342 bool "ADC support"
343 depends on CPU_SH3
344 default y
345 help
346 Selecting this option will allow the Linux kernel to use SH3 on-chip
347 ADC module.
348
349 If unsure, say N.
350
Linus Torvalds1da177e2005-04-16 15:20:36 -0700351config SH_STORE_QUEUES
352 bool "Support for Store Queues"
353 depends on CPU_SH4
354 help
355 Selecting this option will enable an in-kernel API for manipulating
356 the store queues integrated in the SH-4 processors.
357
Paul Mundt45ed2852007-03-08 18:12:17 +0900358config SPECULATIVE_EXECUTION
359 bool "Speculative subroutine return"
360 depends on CPU_SUBTYPE_SH7780 && EXPERIMENTAL
361 help
362 This enables support for a speculative instruction fetch for
363 subroutine return. There are various pitfalls associated with
364 this, as outlined in the SH7780 hardware manual.
365
366 If unsure, say N.
367
Paul Mundtcad82442006-01-16 22:14:19 -0800368config CPU_HAS_INTEVT
369 bool
370
Paul Mundtba463932006-09-27 18:01:16 +0900371config CPU_HAS_MASKREG_IRQ
372 bool
373
Jamie Lenehanea0f8fe2006-12-06 12:05:02 +0900374config CPU_HAS_IPR_IRQ
375 bool
376
Paul Mundtcad82442006-01-16 22:14:19 -0800377config CPU_HAS_SR_RB
Paul Mundtc81134b2007-10-31 15:22:45 +0900378 bool
Paul Mundtcad82442006-01-16 22:14:19 -0800379 help
380 This will enable the use of SR.RB register bank usage. Processors
381 that are lacking this bit must have another method in place for
382 accomplishing what is taken care of by the banked registers.
383
384 See <file:Documentation/sh/register-banks.txt> for further
385 information on SR.RB and register banking in the kernel in general.
386
Stuart Menefy9b3a53a2006-11-24 11:42:24 +0900387config CPU_HAS_PTEA
388 bool
389
Paul Mundtac79fd52007-07-25 16:26:10 +0900390config CPU_HAS_DSP
391 bool
392
Paul Mundt1db4e9b2007-09-11 18:10:23 +0900393config CPU_HAS_FPU
394 bool
395
Paul Mundtcad82442006-01-16 22:14:19 -0800396endmenu
397
Paul Mundtf3d22292007-05-14 17:29:12 +0900398menu "Board support"
399
400config SOLUTION_ENGINE
401 bool
402
403config SH_SOLUTION_ENGINE
404 bool "SolutionEngine"
405 select SOLUTION_ENGINE
Magnus Damm56386f62007-07-20 18:44:49 +0900406 select CPU_HAS_IPR_IRQ
Nobuhiro Iwamatsua8199072007-11-05 07:44:41 +0900407 depends on CPU_SUBTYPE_SH7705 || CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7710 || \
408 CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7750S || \
409 CPU_SUBTYPE_SH7750R
Paul Mundtf3d22292007-05-14 17:29:12 +0900410 help
Nobuhiro Iwamatsua8199072007-11-05 07:44:41 +0900411 Select SolutionEngine if configuring for a Hitachi SH7705, SH7709,
412 SH7710, SH7712, SH7750, SH7750S or SH7750R evaluation board.
Paul Mundtf3d22292007-05-14 17:29:12 +0900413
414config SH_7206_SOLUTION_ENGINE
415 bool "SolutionEngine7206"
416 select SOLUTION_ENGINE
417 depends on CPU_SUBTYPE_SH7206
418 help
419 Select 7206 SolutionEngine if configuring for a Hitachi SH7206
420 evaluation board.
421
422config SH_7619_SOLUTION_ENGINE
423 bool "SolutionEngine7619"
424 select SOLUTION_ENGINE
425 depends on CPU_SUBTYPE_SH7619
426 help
427 Select 7619 SolutionEngine if configuring for a Hitachi SH7619
428 evaluation board.
429
430config SH_7722_SOLUTION_ENGINE
431 bool "SolutionEngine7722"
432 select SOLUTION_ENGINE
433 depends on CPU_SUBTYPE_SH7722
434 help
435 Select 7722 SolutionEngine if configuring for a Hitachi SH772
436 evaluation board.
437
438config SH_7751_SOLUTION_ENGINE
439 bool "SolutionEngine7751"
440 select SOLUTION_ENGINE
Magnus Damm56386f62007-07-20 18:44:49 +0900441 select CPU_HAS_IPR_IRQ
Paul Mundtf3d22292007-05-14 17:29:12 +0900442 depends on CPU_SUBTYPE_SH7751
443 help
444 Select 7751 SolutionEngine if configuring for a Hitachi SH7751
445 evaluation board.
446
447config SH_7780_SOLUTION_ENGINE
448 bool "SolutionEngine7780"
449 select SOLUTION_ENGINE
Paul Mundt357d5942007-06-11 15:32:07 +0900450 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900451 depends on CPU_SUBTYPE_SH7780
452 help
453 Select 7780 SolutionEngine if configuring for a Renesas SH7780
454 evaluation board.
455
Paul Mundtf3d22292007-05-14 17:29:12 +0900456config SH_7343_SOLUTION_ENGINE
457 bool "SolutionEngine7343"
458 select SOLUTION_ENGINE
459 depends on CPU_SUBTYPE_SH7343
460 help
461 Select 7343 SolutionEngine if configuring for a Hitachi
462 SH7343 (SH-Mobile 3AS) evaluation board.
463
Paul Mundtf3d22292007-05-14 17:29:12 +0900464config SH_7751_SYSTEMH
465 bool "SystemH7751R"
466 depends on CPU_SUBTYPE_SH7751R
467 help
468 Select SystemH if you are configuring for a Renesas SystemH
469 7751R evaluation board.
470
471config SH_HP6XX
472 bool "HP6XX"
473 select SYS_SUPPORTS_APM_EMULATION
Paul Mundt357d5942007-06-11 15:32:07 +0900474 select HD6446X_SERIES
Paul Mundtf3d22292007-05-14 17:29:12 +0900475 depends on CPU_SUBTYPE_SH7709
476 help
477 Select HP6XX if configuring for a HP jornada HP6xx.
478 More information (hardware only) at
479 <http://www.hp.com/jornada/>.
480
Paul Mundtf3d22292007-05-14 17:29:12 +0900481config SH_DREAMCAST
482 bool "Dreamcast"
Paul Mundt357d5942007-06-11 15:32:07 +0900483 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900484 depends on CPU_SUBTYPE_SH7091
485 help
486 Select Dreamcast if configuring for a SEGA Dreamcast.
Adrian McMenaminad07b102007-10-15 10:38:31 +0900487 More information at <http://www.linux-sh.org>
Paul Mundtf3d22292007-05-14 17:29:12 +0900488
489config SH_MPC1211
490 bool "Interface MPC1211"
491 depends on CPU_SUBTYPE_SH7751 && BROKEN
492 help
493 CTP/PCI-SH02 is a CPU module computer that is produced
494 by Interface Corporation.
495 More information at <http://www.interface.co.jp>
496
497config SH_SH03
498 bool "Interface CTP/PCI-SH03"
Magnus Dammd59645d2007-08-03 14:23:35 +0900499 depends on CPU_SUBTYPE_SH7751
Magnus Damm56386f62007-07-20 18:44:49 +0900500 select CPU_HAS_IPR_IRQ
Paul Mundt357d5942007-06-11 15:32:07 +0900501 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900502 help
503 CTP/PCI-SH03 is a CPU module computer that is produced
504 by Interface Corporation.
505 More information at <http://www.interface.co.jp>
506
507config SH_SECUREEDGE5410
508 bool "SecureEdge5410"
509 depends on CPU_SUBTYPE_SH7751R
Magnus Damm56386f62007-07-20 18:44:49 +0900510 select CPU_HAS_IPR_IRQ
Paul Mundt357d5942007-06-11 15:32:07 +0900511 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900512 help
513 Select SecureEdge5410 if configuring for a SnapGear SH board.
514 This includes both the OEM SecureEdge products as well as the
515 SME product line.
516
517config SH_HS7751RVOIP
518 bool "HS7751RVOIP"
519 depends on CPU_SUBTYPE_SH7751R
520 help
521 Select HS7751RVOIP if configuring for a Renesas Technology
522 Sales VoIP board.
523
524config SH_7710VOIPGW
525 bool "SH7710-VOIP-GW"
526 depends on CPU_SUBTYPE_SH7710
527 help
528 Select this option to build a kernel for the SH7710 based
529 VOIP GW.
530
531config SH_RTS7751R2D
532 bool "RTS7751R2D"
533 depends on CPU_SUBTYPE_SH7751R
Paul Mundt357d5942007-06-11 15:32:07 +0900534 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900535 help
536 Select RTS7751R2D if configuring for a Renesas Technology
537 Sales SH-Graphics board.
538
539config SH_HIGHLANDER
540 bool "Highlander"
541 depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
Paul Mundt357d5942007-06-11 15:32:07 +0900542 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900543
544config SH_EDOSK7705
545 bool "EDOSK7705"
546 depends on CPU_SUBTYPE_SH7705
547
548config SH_SH4202_MICRODEV
549 bool "SH4-202 MicroDev"
550 depends on CPU_SUBTYPE_SH4_202
551 help
552 Select SH4-202 MicroDev if configuring for a SuperH MicroDev board
553 with an SH4-202 CPU.
554
555config SH_LANDISK
556 bool "LANDISK"
557 depends on CPU_SUBTYPE_SH7751R
Paul Mundt357d5942007-06-11 15:32:07 +0900558 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900559 help
560 I-O DATA DEVICE, INC. "LANDISK Series" support.
561
562config SH_TITAN
563 bool "TITAN"
564 depends on CPU_SUBTYPE_SH7751R
Magnus Damm56386f62007-07-20 18:44:49 +0900565 select CPU_HAS_IPR_IRQ
Paul Mundt357d5942007-06-11 15:32:07 +0900566 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900567 help
568 Select Titan if you are configuring for a Nimble Microsystems
569 NetEngine NP51R.
570
571config SH_SHMIN
572 bool "SHMIN"
573 depends on CPU_SUBTYPE_SH7706
Magnus Damm56386f62007-07-20 18:44:49 +0900574 select CPU_HAS_IPR_IRQ
Paul Mundtf3d22292007-05-14 17:29:12 +0900575 help
576 Select SHMIN if configuring for the SHMIN board.
577
578config SH_LBOX_RE2
579 bool "L-BOX RE2"
580 depends on CPU_SUBTYPE_SH7751R
Paul Mundt357d5942007-06-11 15:32:07 +0900581 select SYS_SUPPORTS_PCI
Paul Mundtf3d22292007-05-14 17:29:12 +0900582 help
583 Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2.
584
Paul Mundt94807a32007-08-08 15:22:04 +0900585config SH_X3PROTO
586 bool "SH-X3 Prototype board"
587 depends on CPU_SUBTYPE_SHX3
588
Markus Brunnerded54312007-09-12 11:54:58 +0900589config SH_MAGIC_PANEL_R2
590 bool "Magic Panel R2"
591 depends on CPU_SUBTYPE_SH7720
592 help
593 Select Magic Panel R2 if configuring for Magic Panel R2.
594
Paul Mundtf3d22292007-05-14 17:29:12 +0900595endmenu
596
597source "arch/sh/boards/renesas/hs7751rvoip/Kconfig"
598source "arch/sh/boards/renesas/rts7751r2d/Kconfig"
599source "arch/sh/boards/renesas/r7780rp/Kconfig"
Markus Brunnerded54312007-09-12 11:54:58 +0900600source "arch/sh/boards/magicpanelr2/Kconfig"
Paul Mundtf3d22292007-05-14 17:29:12 +0900601
Paul Mundt32351a22007-03-12 14:38:59 +0900602menu "Timer and clock configuration"
603
Paul Mundtcad82442006-01-16 22:14:19 -0800604config SH_TMU
605 bool "TMU timer support"
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900606 depends on CPU_SH3 || CPU_SH4
Paul Mundt57be2b42007-05-09 17:33:24 +0900607 select GENERIC_TIME
608 select GENERIC_CLOCKEVENTS
Paul Mundtcad82442006-01-16 22:14:19 -0800609 default y
610 help
611 This enables the use of the TMU as the system timer.
612
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900613config SH_CMT
614 bool "CMT timer support"
615 depends on CPU_SH2
616 default y
617 help
618 This enables the use of the CMT as the system timer.
619
620config SH_MTU2
621 bool "MTU2 timer support"
622 depends on CPU_SH2A
623 default n
624 help
625 This enables the use of the MTU2 as the system timer.
626
Paul Mundt417528a2006-11-20 11:18:30 +0900627config SH_TIMER_IRQ
628 int
Paul Mundt32351a22007-03-12 14:38:59 +0900629 default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
Paul Mundt417528a2006-11-20 11:18:30 +0900630 default "86" if CPU_SUBTYPE_SH7619
631 default "140" if CPU_SUBTYPE_SH7206
632 default "16"
633
Paul Mundtcad82442006-01-16 22:14:19 -0800634config SH_PCLK_FREQ
635 int "Peripheral clock frequency (in Hz)"
Magnus Damm870e8a22007-07-25 10:49:21 +0900636 default "27000000" if CPU_SUBTYPE_SH7343
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900637 default "31250000" if CPU_SUBTYPE_SH7619
Paul Mundt05627482007-05-15 16:25:47 +0900638 default "32000000" if CPU_SUBTYPE_SH7722
Magnus Dammd89ddd12007-07-25 11:42:56 +0900639 default "33333333" if CPU_SUBTYPE_SH7770 || \
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900640 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
641 CPU_SUBTYPE_SH7206
Paul Mundt05627482007-05-15 16:25:47 +0900642 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
Paul Mundtcad82442006-01-16 22:14:19 -0800643 default "66000000" if CPU_SUBTYPE_SH4_202
Paul Mundt05627482007-05-15 16:25:47 +0900644 default "50000000"
Paul Mundtcad82442006-01-16 22:14:19 -0800645 help
646 This option is used to specify the peripheral clock frequency.
647 This is necessary for determining the reference clock value on
648 platforms lacking an RTC.
649
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900650config SH_CLK_MD
651 int "CPU Mode Pin Setting"
652 depends on CPU_SUBTYPE_SH7619 || CPU_SUBTYPE_SH7206
Paul Mundt357d5942007-06-11 15:32:07 +0900653 default 6 if CPU_SUBTYPE_SH7206
654 default 5 if CPU_SUBTYPE_SH7619
655 default 0
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900656 help
Yoshinori Sato11cbb702006-12-07 18:07:27 +0900657 MD2 - MD0 pin setting.
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900658
Paul Mundt57be2b42007-05-09 17:33:24 +0900659source "kernel/time/Kconfig"
660
Paul Mundt32351a22007-03-12 14:38:59 +0900661endmenu
662
Paul Mundtcad82442006-01-16 22:14:19 -0800663menu "CPU Frequency scaling"
664
665source "drivers/cpufreq/Kconfig"
666
667config SH_CPU_FREQ
668 tristate "SuperH CPU Frequency driver"
Paul Mundtcb5ec752007-07-20 13:38:19 +0900669 depends on CPU_FREQ
Paul Mundtcad82442006-01-16 22:14:19 -0800670 select CPU_FREQ_TABLE
671 help
672 This adds the cpufreq driver for SuperH. At present, only
673 the SH-4 is supported.
674
675 For details, take a look at <file:Documentation/cpu-freq>.
676
677 If unsure, say N.
678
679endmenu
680
Paul Mundt9f5e8ee2006-11-24 11:22:57 +0900681source "arch/sh/drivers/Kconfig"
682
Paul Mundtcad82442006-01-16 22:14:19 -0800683endmenu
684
685config ISA_DMA_API
686 bool
Adrian Bunk05efc672006-02-17 13:52:42 -0800687 depends on SH_MPC1211
Paul Mundtcad82442006-01-16 22:14:19 -0800688 default y
689
690menu "Kernel features"
691
Paul Mundt91b91d02006-09-27 18:08:33 +0900692source kernel/Kconfig.hz
693
Paul Mundtcad82442006-01-16 22:14:19 -0800694config KEXEC
695 bool "kexec system call (EXPERIMENTAL)"
696 depends on EXPERIMENTAL
697 help
698 kexec is a system call that implements the ability to shutdown your
699 current kernel, and to start another kernel. It is like a reboot
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400700 but it is independent of the system firmware. And like a reboot
Paul Mundtcad82442006-01-16 22:14:19 -0800701 you can start any kernel with it, not just Linux.
702
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400703 The name comes from the similarity to the exec system call.
Paul Mundtcad82442006-01-16 22:14:19 -0800704
705 It is an ongoing process to be certain the hardware in a machine
706 is properly shutdown, so do not be surprised if this code does not
707 initially work for you. It may help to enable device hotplugging
708 support. As of this writing the exact hardware interface is
709 strongly in flux, so no good recommendation can be made.
710
Paul Mundt4d5ade52007-04-27 11:25:57 +0900711config CRASH_DUMP
712 bool "kernel crash dumps (EXPERIMENTAL)"
713 depends on EXPERIMENTAL
714 help
715 Generate crash dump after being started by kexec.
716 This should be normally only set in special crash dump kernels
717 which are loaded in the main kernel with kexec-tools into
718 a specially reserved region and then later executed after
719 a crash by kdump/kexec. The crash dump kernel must be compiled
720 to a memory address not used by the main kernel using
721 MEMORY_START.
722
723 For more details see Documentation/kdump/kdump.txt
724
Linus Torvalds1da177e2005-04-16 15:20:36 -0700725config SMP
726 bool "Symmetric multi-processing support"
Paul Mundt357d5942007-06-11 15:32:07 +0900727 depends on SYS_SUPPORTS_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700728 ---help---
729 This enables support for systems with more than one CPU. If you have
730 a system with only one CPU, like most personal computers, say N. If
731 you have a system with more than one CPU, say Y.
732
733 If you say N here, the kernel will run on single and multiprocessor
734 machines, but will use only one CPU of a multiprocessor machine. If
735 you say Y here, the kernel will run on many, but not all,
736 singleprocessor machines. On a singleprocessor machine, the kernel
737 will run faster if you say N here.
738
739 People using multiprocessor machines who say Y here should also say
740 Y to "Enhanced Real Time Clock Support", below.
741
742 See also the <file:Documentation/smp.txt>,
743 <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available
744 at <http://www.tldp.org/docs.html#howto>.
745
746 If you don't know what to do here, say N.
747
748config NR_CPUS
749 int "Maximum number of CPUs (2-32)"
750 range 2 32
751 depends on SMP
Paul Mundt2b1bd1a2007-06-20 18:27:10 +0900752 default "4" if CPU_SHX3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700753 default "2"
754 help
755 This allows you to specify the maximum number of CPUs which this
756 kernel will support. The maximum supported value is 32 and the
757 minimum value which makes sense is 2.
758
759 This is purely to save memory - each supported CPU adds
760 approximately eight kilobytes to the kernel image.
761
Paul Mundt91b91d02006-09-27 18:08:33 +0900762source "kernel/Kconfig.preempt"
763
Paul Mundt83662462007-09-28 16:04:49 +0900764config GUSA
765 def_bool y
766 depends on !SMP
767 help
768 This enables support for gUSA (general UserSpace Atomicity).
769 This is the default implementation for both UP and non-ll/sc
770 CPUs, and is used by the libc, amongst others.
771
772 For additional information, design information can be found
773 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
774
775 This should only be disabled for special cases where alternate
776 atomicity implementations exist.
777
Paul Mundtcad82442006-01-16 22:14:19 -0800778endmenu
779
780menu "Boot options"
781
782config ZERO_PAGE_OFFSET
783 hex "Zero page offset"
784 default "0x00004000" if SH_MPC1211 || SH_SH03
Paul Mundt7a847f82006-12-26 15:29:19 +0900785 default "0x00010000" if PAGE_SIZE_64KB
786 default "0x00002000" if PAGE_SIZE_8KB
Paul Mundtcad82442006-01-16 22:14:19 -0800787 default "0x00001000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700788 help
Paul Mundtcad82442006-01-16 22:14:19 -0800789 This sets the default offset of zero page.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700790
Paul Mundtcad82442006-01-16 22:14:19 -0800791config BOOT_LINK_OFFSET
792 hex "Link address offset for booting"
793 default "0x00800000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700794 help
Paul Mundtcad82442006-01-16 22:14:19 -0800795 This option allows you to set the link address offset of the zImage.
796 This can be useful if you are on a board which has a small amount of
797 memory.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700798
Paul Mundtcad82442006-01-16 22:14:19 -0800799config UBC_WAKEUP
800 bool "Wakeup UBC on startup"
Paul Mundt0e3a9aa2007-11-06 15:55:36 +0900801 depends on CPU_SH4 && !CPU_SH4A
Paul Mundtcad82442006-01-16 22:14:19 -0800802 help
803 Selecting this option will wakeup the User Break Controller (UBC) on
804 startup. Although the UBC is left in an awake state when the processor
805 comes up, some boot loaders misbehave by putting the UBC to sleep in a
806 power saving state, which causes issues with things like ptrace().
Linus Torvalds1da177e2005-04-16 15:20:36 -0700807
808 If unsure, say N.
809
Paul Mundtcad82442006-01-16 22:14:19 -0800810config CMDLINE_BOOL
811 bool "Default bootloader kernel arguments"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700812
Paul Mundtcad82442006-01-16 22:14:19 -0800813config CMDLINE
814 string "Initial kernel command string"
815 depends on CMDLINE_BOOL
816 default "console=ttySC1,115200"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700817
818endmenu
819
Paul Mundtcad82442006-01-16 22:14:19 -0800820menu "Bus options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700821
822# Even on SuperH devices which don't have an ISA bus,
823# this variable helps the PCMCIA modules handle
824# IRQ requesting properly -- Greg Banks.
825#
826# Though we're generally not interested in it when
827# we're not using PCMCIA, so we make it dependent on
828# PCMCIA outright. -- PFM.
829config ISA
Paul Mundt357d5942007-06-11 15:32:07 +0900830 def_bool y
831 depends on PCMCIA && HD6446X_SERIES
Linus Torvalds1da177e2005-04-16 15:20:36 -0700832 help
833 Find out whether you have ISA slots on your motherboard. ISA is the
834 name of a bus system, i.e. the way the CPU talks to the other stuff
835 inside your box. Other bus systems are PCI, EISA, MicroChannel
836 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
837 newer boards don't support it. If you have ISA, say Y, otherwise N.
838
839config EISA
840 bool
841 ---help---
842 The Extended Industry Standard Architecture (EISA) bus was
843 developed as an open alternative to the IBM MicroChannel bus.
844
845 The EISA bus provided some of the features of the IBM MicroChannel
846 bus while maintaining backward compatibility with cards made for
847 the older ISA bus. The EISA bus saw limited use between 1988 and
848 1995 when it was made obsolete by the PCI bus.
849
850 Say Y here if you are building a kernel for an EISA-based machine.
851
852 Otherwise, say N.
853
854config MCA
855 bool
856 help
857 MicroChannel Architecture is found in some IBM PS/2 machines and
858 laptops. It is a bus system similar to PCI or ISA. See
859 <file:Documentation/mca.txt> (and especially the web page given
860 there) before attempting to build an MCA bus kernel.
861
862config SBUS
863 bool
864
Paul Mundtcad82442006-01-16 22:14:19 -0800865config SUPERHYWAY
866 tristate "SuperHyway Bus support"
867 depends on CPU_SUBTYPE_SH4_202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700868
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900869config MAPLE
870 bool "Maple Bus support"
871 depends on SH_DREAMCAST
872 help
873 The Maple Bus is SEGA's serial communication bus for peripherals
874 on the Dreamcast. Without this bus support you won't be able to
875 get your Dreamcast keyboard etc to work, so most users
876 probably want to say 'Y' here, unless you are only using the
877 Dreamcast with a serial line terminal or a remote network
878 connection.
879
Paul Mundt824e55f2007-06-20 18:01:52 +0900880config CF_ENABLER
881 bool "Compact Flash Enabler support"
882 depends on SOLUTION_ENGINE || SH_SH03
883 ---help---
884 Compact Flash is a small, removable mass storage device introduced
885 in 1994 originally as a PCMCIA device. If you say `Y' here, you
886 compile in support for Compact Flash devices directly connected to
887 a SuperH processor. A Compact Flash FAQ is available at
888 <http://www.compactflash.org/faqs/faq.htm>.
889
890 If your board has "Directly Connected" CompactFlash at area 5 or 6,
891 you may want to enable this option. Then, you can use CF as
892 primary IDE drive (only tested for SanDisk).
893
894 If in doubt, select 'N'.
895
896choice
897 prompt "Compact Flash Connection Area"
898 depends on CF_ENABLER
899 default CF_AREA6
900
901config CF_AREA5
902 bool "Area5"
903 help
904 If your board has "Directly Connected" CompactFlash, You should
905 select the area where your CF is connected to.
906
907 - "Area5" if CompactFlash is connected to Area 5 (0x14000000)
908 - "Area6" if it is connected to Area 6 (0x18000000)
909
910 "Area6" will work for most boards.
911
912config CF_AREA6
913 bool "Area6"
914
915endchoice
916
917config CF_BASE_ADDR
918 hex
919 depends on CF_ENABLER
920 default "0xb8000000" if CF_AREA6
921 default "0xb4000000" if CF_AREA5
922
Linus Torvalds1da177e2005-04-16 15:20:36 -0700923source "arch/sh/drivers/pci/Kconfig"
924
925source "drivers/pci/Kconfig"
926
927source "drivers/pcmcia/Kconfig"
928
929source "drivers/pci/hotplug/Kconfig"
930
931endmenu
932
933menu "Executable file formats"
934
935source "fs/Kconfig.binfmt"
936
937endmenu
938
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900939menu "Power management options (EXPERIMENTAL)"
Paul Mundt357d5942007-06-11 15:32:07 +0900940depends on EXPERIMENTAL && SYS_SUPPORTS_PM
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900941
942source kernel/power/Kconfig
943
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900944endmenu
945
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700946source "net/Kconfig"
947
Linus Torvalds1da177e2005-04-16 15:20:36 -0700948source "drivers/Kconfig"
949
950source "fs/Kconfig"
951
Mathieu Desnoyers09caded2007-10-18 23:41:05 -0700952source "kernel/Kconfig.instrumentation"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700953
954source "arch/sh/Kconfig.debug"
955
956source "security/Kconfig"
957
958source "crypto/Kconfig"
959
960source "lib/Kconfig"