blob: ff3c137deac3b4ba5dd4080d685520e732cd9e40 [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
Linus Torvalds1da177e2005-04-16 15:20:36 -070017 help
18 The SuperH is a RISC processor targeted for use in embedded systems
19 and consumer electronics; it was also used in the Sega Dreamcast
20 gaming console. The SuperH port has a home page at
21 <http://www.linux-sh.org/>.
22
Paul Mundt39d28a22007-11-08 18:39:33 +090023config SUPERH32
Paul Mundtea0e1a92007-11-21 15:58:01 +090024 def_bool !SUPERH64
Chris Smithd39f5452008-09-05 17:15:39 +090025 select HAVE_KPROBES
26 select HAVE_KRETPROBES
Paul Mundt694f94f2008-10-31 16:20:36 +090027 select HAVE_FUNCTION_TRACER
Matt Flemingfad57fe2008-11-12 20:11:47 +090028 select HAVE_FTRACE_MCOUNT_RECORD
29 select HAVE_DYNAMIC_FTRACE
Paul Mundtab6e5702008-12-11 18:46:46 +090030 select HAVE_ARCH_KGDB
Paul Mundtea0e1a92007-11-21 15:58:01 +090031
32config SUPERH64
33 def_bool y if CPU_SH5
Paul Mundt39d28a22007-11-08 18:39:33 +090034
Paul Mundtf42b7e32008-07-29 20:12:51 +090035config ARCH_DEFCONFIG
36 string
37 default "arch/sh/configs/shx3_defconfig" if SUPERH32
38 default "arch/sh/configs/cayman_defconfig" if SUPERH64
39
Linus Torvalds1da177e2005-04-16 15:20:36 -070040config RWSEM_GENERIC_SPINLOCK
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090041 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070042
43config RWSEM_XCHGADD_ALGORITHM
44 bool
45
Paul Mundtfa691512007-03-08 19:41:21 +090046config GENERIC_BUG
47 def_bool y
Paul Mundta82d53e2007-11-21 18:22:05 +090048 depends on BUG && SUPERH32
Paul Mundtfa691512007-03-08 19:41:21 +090049
Akinobu Mitae2268c72006-03-26 01:39:35 -080050config GENERIC_FIND_NEXT_BIT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090051 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -080052
53config GENERIC_HWEIGHT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090054 def_bool y
Akinobu Mitae2268c72006-03-26 01:39:35 -080055
Linus Torvalds1da177e2005-04-16 15:20:36 -070056config GENERIC_HARDIRQS
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090057 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070058
Paul Mundt5093c9a2008-08-04 14:17:13 +090059config GENERIC_HARDIRQS_NO__DO_IRQ
60 def_bool y
Paul Mundtf9d62c02008-12-08 11:45:37 +090061 depends on SUPERH32 && (!SH_DREAMCAST && !SH_SH4202_MICRODEV && \
62 !SH_7751_SYSTEMH && !HD64461)
Paul Mundt5093c9a2008-08-04 14:17:13 +090063
Linus Torvalds1da177e2005-04-16 15:20:36 -070064config GENERIC_IRQ_PROBE
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +090065 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070066
Magnus Damm2967dab2008-10-08 20:41:43 +090067config GENERIC_GPIO
68 def_bool n
69
Linus Torvalds1da177e2005-04-16 15:20:36 -070070config GENERIC_CALIBRATE_DELAY
Paul Mundtcf204fa2008-09-08 20:47:42 +090071 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -070072
Paul Mundtcad82442006-01-16 22:14:19 -080073config GENERIC_IOMAP
74 bool
75
Paul Mundt45882142006-10-04 13:21:45 +090076config GENERIC_TIME
77 def_bool n
78
Paul Mundt57be2b42007-05-09 17:33:24 +090079config GENERIC_CLOCKEVENTS
80 def_bool n
81
Paul Mundt8c245942008-08-06 18:37:07 +090082config GENERIC_CLOCKEVENTS_BROADCAST
83 bool
84
Paul Mundtbdcab872008-08-04 14:09:15 +090085config GENERIC_LOCKBREAK
86 def_bool y
87 depends on SMP && PREEMPT
88
Paul Mundt357d5942007-06-11 15:32:07 +090089config SYS_SUPPORTS_PM
90 bool
Magnus Dammaf998a92008-12-04 22:45:12 +090091 depends on !SMP
92
93config ARCH_SUSPEND_POSSIBLE
94 def_bool n
95
96config ARCH_HIBERNATION_POSSIBLE
97 def_bool n
Paul Mundt357d5942007-06-11 15:32:07 +090098
Paul Mundt0a9b0db2007-01-24 21:56:20 +090099config SYS_SUPPORTS_APM_EMULATION
100 bool
Magnus Dammaf998a92008-12-04 22:45:12 +0900101 select ARCH_SUSPEND_POSSIBLE
Paul Mundt357d5942007-06-11 15:32:07 +0900102
103config SYS_SUPPORTS_SMP
104 bool
105
106config SYS_SUPPORTS_NUMA
107 bool
108
109config SYS_SUPPORTS_PCI
110 bool
Paul Mundt0a9b0db2007-01-24 21:56:20 +0900111
Paul Mundtafbfb522006-12-04 18:17:28 +0900112config STACKTRACE_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900113 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900114
115config LOCKDEP_SUPPORT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900116 def_bool y
Paul Mundtafbfb522006-12-04 18:17:28 +0900117
Paul Mundt5a89f1a2008-09-13 01:44:03 +0900118config HAVE_LATENCYTOP_SUPPORT
119 def_bool y
120 depends on !SMP
121
David Howellsf0d1b0b2006-12-08 02:37:49 -0800122config ARCH_HAS_ILOG2_U32
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900123 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800124
125config ARCH_HAS_ILOG2_U64
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900126 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -0800127
Paul Mundte257ad02007-07-25 11:18:00 +0900128config ARCH_NO_VIRT_TO_BUS
129 def_bool y
130
Magnus Damme7cc9a72008-02-07 20:18:21 +0900131config IO_TRAPPED
132 bool
133
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134source "init/Kconfig"
135
Matt Helsleydc52ddc2008-10-18 20:27:21 -0700136source "kernel/Kconfig.freezer"
137
Linus Torvalds1da177e2005-04-16 15:20:36 -0700138menu "System type"
139
Paul Mundtb5f42db2007-11-08 18:38:14 +0900140#
141# Processor families
142#
143config CPU_SH2
144 bool
145
146config CPU_SH2A
147 bool
148 select CPU_SH2
149
150config CPU_SH3
151 bool
152 select CPU_HAS_INTEVT
153 select CPU_HAS_SR_RB
154
155config CPU_SH4
156 bool
157 select CPU_HAS_INTEVT
158 select CPU_HAS_SR_RB
159 select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2
160 select CPU_HAS_FPU if !CPU_SH4AL_DSP
161
162config CPU_SH4A
163 bool
164 select CPU_SH4
165
166config CPU_SH4AL_DSP
167 bool
168 select CPU_SH4A
169 select CPU_HAS_DSP
170
Paul Mundtea0e1a92007-11-21 15:58:01 +0900171config CPU_SH5
172 bool
173 select CPU_HAS_FPU
174
Paul Mundtb5f42db2007-11-08 18:38:14 +0900175config CPU_SHX2
176 bool
177
178config CPU_SHX3
179 bool
180
181choice
182 prompt "Processor sub-type selection"
183
184#
185# Processor subtypes
186#
187
188# SH-2 Processor Support
189
190config CPU_SUBTYPE_SH7619
191 bool "Support SH7619 processor"
192 select CPU_SH2
193
194# SH-2A Processor Support
195
Peter Griffin28259992008-11-28 22:48:20 +0900196config CPU_SUBTYPE_SH7201
197 bool "Support SH7201 processor"
198 select CPU_SH2A
199 select CPU_HAS_FPU
200
Paul Mundt6d01f512007-11-26 18:17:21 +0900201config CPU_SUBTYPE_SH7203
202 bool "Support SH7203 processor"
203 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900204 select CPU_HAS_FPU
Paul Mundt6d01f512007-11-26 18:17:21 +0900205
Paul Mundtb5f42db2007-11-08 18:38:14 +0900206config CPU_SUBTYPE_SH7206
207 bool "Support SH7206 processor"
208 select CPU_SH2A
209
Paul Mundta8f67f42007-11-26 19:54:02 +0900210config CPU_SUBTYPE_SH7263
211 bool "Support SH7263 processor"
212 select CPU_SH2A
Paul Mundt74d99a52007-11-26 20:38:36 +0900213 select CPU_HAS_FPU
Paul Mundta8f67f42007-11-26 19:54:02 +0900214
Paul Mundt2ad69902008-03-13 12:52:44 +0900215config CPU_SUBTYPE_MXG
216 bool "Support MX-G processor"
217 select CPU_SH2A
218 help
219 Select MX-G if running on an R8A03022BG part.
220
Paul Mundtb5f42db2007-11-08 18:38:14 +0900221# SH-3 Processor Support
222
223config CPU_SUBTYPE_SH7705
224 bool "Support SH7705 processor"
225 select CPU_SH3
226
227config CPU_SUBTYPE_SH7706
228 bool "Support SH7706 processor"
229 select CPU_SH3
230 help
231 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
232
233config CPU_SUBTYPE_SH7707
234 bool "Support SH7707 processor"
235 select CPU_SH3
236 help
237 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
238
239config CPU_SUBTYPE_SH7708
240 bool "Support SH7708 processor"
241 select CPU_SH3
242 help
243 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
244 if you have a 100 Mhz SH-3 HD6417708R CPU.
245
246config CPU_SUBTYPE_SH7709
247 bool "Support SH7709 processor"
248 select CPU_SH3
249 help
250 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
251
252config CPU_SUBTYPE_SH7710
253 bool "Support SH7710 processor"
254 select CPU_SH3
255 select CPU_HAS_DSP
256 help
257 Select SH7710 if you have a SH3-DSP SH7710 CPU.
258
259config CPU_SUBTYPE_SH7712
260 bool "Support SH7712 processor"
261 select CPU_SH3
262 select CPU_HAS_DSP
263 help
264 Select SH7712 if you have a SH3-DSP SH7712 CPU.
265
266config CPU_SUBTYPE_SH7720
267 bool "Support SH7720 processor"
268 select CPU_SH3
269 select CPU_HAS_DSP
270 help
271 Select SH7720 if you have a SH3-DSP SH7720 CPU.
272
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +0900273config CPU_SUBTYPE_SH7721
274 bool "Support SH7721 processor"
275 select CPU_SH3
276 select CPU_HAS_DSP
277 help
278 Select SH7721 if you have a SH3-DSP SH7721 CPU.
279
Paul Mundtb5f42db2007-11-08 18:38:14 +0900280# SH-4 Processor Support
281
282config CPU_SUBTYPE_SH7750
283 bool "Support SH7750 processor"
284 select CPU_SH4
285 help
286 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
287
288config CPU_SUBTYPE_SH7091
289 bool "Support SH7091 processor"
290 select CPU_SH4
291 help
292 Select SH7091 if you have an SH-4 based Sega device (such as
293 the Dreamcast, Naomi, and Naomi 2).
294
295config CPU_SUBTYPE_SH7750R
296 bool "Support SH7750R processor"
297 select CPU_SH4
298
299config CPU_SUBTYPE_SH7750S
300 bool "Support SH7750S processor"
301 select CPU_SH4
302
303config CPU_SUBTYPE_SH7751
304 bool "Support SH7751 processor"
305 select CPU_SH4
306 help
307 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
308 or if you have a HD6417751R CPU.
309
310config CPU_SUBTYPE_SH7751R
311 bool "Support SH7751R processor"
312 select CPU_SH4
313
314config CPU_SUBTYPE_SH7760
315 bool "Support SH7760 processor"
316 select CPU_SH4
317
318config CPU_SUBTYPE_SH4_202
319 bool "Support SH4-202 processor"
320 select CPU_SH4
321
322# SH-4A Processor Support
323
Paul Mundt178dd0c2008-04-09 17:56:18 +0900324config CPU_SUBTYPE_SH7723
325 bool "Support SH7723 processor"
326 select CPU_SH4A
327 select CPU_SHX2
328 select ARCH_SPARSEMEM_ENABLE
Paul Mundt178dd0c2008-04-09 17:56:18 +0900329 help
330 Select SH7723 if you have an SH-MobileR2 CPU.
331
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900332config CPU_SUBTYPE_SH7763
333 bool "Support SH7763 processor"
334 select CPU_SH4A
335 help
336 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
337
Paul Mundtb5f42db2007-11-08 18:38:14 +0900338config CPU_SUBTYPE_SH7770
339 bool "Support SH7770 processor"
340 select CPU_SH4A
341
342config CPU_SUBTYPE_SH7780
343 bool "Support SH7780 processor"
344 select CPU_SH4A
345
346config CPU_SUBTYPE_SH7785
347 bool "Support SH7785 processor"
348 select CPU_SH4A
349 select CPU_SHX2
350 select ARCH_SPARSEMEM_ENABLE
351 select SYS_SUPPORTS_NUMA
352
353config CPU_SUBTYPE_SHX3
354 bool "Support SH-X3 processor"
355 select CPU_SH4A
356 select CPU_SHX3
357 select ARCH_SPARSEMEM_ENABLE
358 select SYS_SUPPORTS_NUMA
359 select SYS_SUPPORTS_SMP
Paul Mundt58402632008-09-05 15:36:39 +0900360 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Paul Mundtb5f42db2007-11-08 18:38:14 +0900361
362# SH4AL-DSP Processor Support
363
364config CPU_SUBTYPE_SH7343
365 bool "Support SH7343 processor"
366 select CPU_SH4AL_DSP
367
368config CPU_SUBTYPE_SH7722
369 bool "Support SH7722 processor"
370 select CPU_SH4AL_DSP
371 select CPU_SHX2
372 select ARCH_SPARSEMEM_ENABLE
373 select SYS_SUPPORTS_NUMA
374
Magnus Damm9109a302008-02-08 17:31:24 +0900375config CPU_SUBTYPE_SH7366
376 bool "Support SH7366 processor"
377 select CPU_SH4AL_DSP
378 select CPU_SHX2
379 select ARCH_SPARSEMEM_ENABLE
380 select SYS_SUPPORTS_NUMA
381
Paul Mundtea0e1a92007-11-21 15:58:01 +0900382# SH-5 Processor Support
383
384config CPU_SUBTYPE_SH5_101
385 bool "Support SH5-101 processor"
386 select CPU_SH5
387
388config CPU_SUBTYPE_SH5_103
389 bool "Support SH5-103 processor"
Paul Mundt8ef97dd2008-02-14 15:30:54 +0900390 select CPU_SH5
Paul Mundtea0e1a92007-11-21 15:58:01 +0900391
Paul Mundtb5f42db2007-11-08 18:38:14 +0900392endchoice
393
Paul Mundtcad82442006-01-16 22:14:19 -0800394source "arch/sh/mm/Kconfig"
Paul Mundt939a24a2008-07-29 21:41:37 +0900395
Paul Mundt4690bdc2007-11-09 13:45:42 +0900396source "arch/sh/Kconfig.cpu"
Paul Mundtcad82442006-01-16 22:14:19 -0800397
Paul Mundt939a24a2008-07-29 21:41:37 +0900398source "arch/sh/boards/Kconfig"
Paul Mundtf3d22292007-05-14 17:29:12 +0900399
Paul Mundt32351a22007-03-12 14:38:59 +0900400menu "Timer and clock configuration"
401
Paul Mundtcad82442006-01-16 22:14:19 -0800402config SH_TMU
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900403 def_bool y
404 prompt "TMU timer support"
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900405 depends on CPU_SH3 || CPU_SH4
Paul Mundt57be2b42007-05-09 17:33:24 +0900406 select GENERIC_TIME
407 select GENERIC_CLOCKEVENTS
Paul Mundtcad82442006-01-16 22:14:19 -0800408 help
409 This enables the use of the TMU as the system timer.
410
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900411config SH_CMT
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900412 def_bool y
413 prompt "CMT timer support"
Paul Mundt2ad69902008-03-13 12:52:44 +0900414 depends on CPU_SH2 && !CPU_SUBTYPE_MXG
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900415 help
416 This enables the use of the CMT as the system timer.
417
418config SH_MTU2
Harvey Harrisond7ef4fb2007-12-11 13:49:35 +0900419 def_bool n
420 prompt "MTU2 timer support"
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900421 depends on CPU_SH2A
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900422 help
423 This enables the use of the MTU2 as the system timer.
424
Paul Mundt417528a2006-11-20 11:18:30 +0900425config SH_TIMER_IRQ
426 int
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +0900427 default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \
428 CPU_SUBTYPE_SH7763
Paul Mundt417528a2006-11-20 11:18:30 +0900429 default "86" if CPU_SUBTYPE_SH7619
430 default "140" if CPU_SUBTYPE_SH7206
Paul Mundt2b2d4e72008-03-13 19:51:06 +0900431 default "142" if CPU_SUBTYPE_SH7203
Paul Mundt2ad69902008-03-13 12:52:44 +0900432 default "238" if CPU_SUBTYPE_MXG
Paul Mundt417528a2006-11-20 11:18:30 +0900433 default "16"
434
Paul Mundtcad82442006-01-16 22:14:19 -0800435config SH_PCLK_FREQ
436 int "Peripheral clock frequency (in Hz)"
Magnus Damm870e8a22007-07-25 10:49:21 +0900437 default "27000000" if CPU_SUBTYPE_SH7343
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900438 default "31250000" if CPU_SUBTYPE_SH7619
Paul Mundt05627482007-05-15 16:25:47 +0900439 default "32000000" if CPU_SUBTYPE_SH7722
Paul Mundt178dd0c2008-04-09 17:56:18 +0900440 default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900441 CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \
Paul Mundta8f67f42007-11-26 19:54:02 +0900442 CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \
Paul Mundt2ad69902008-03-13 12:52:44 +0900443 CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG
Paul Mundt05627482007-05-15 16:25:47 +0900444 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
Paul Mundtcad82442006-01-16 22:14:19 -0800445 default "66000000" if CPU_SUBTYPE_SH4_202
Paul Mundt05627482007-05-15 16:25:47 +0900446 default "50000000"
Paul Mundtcad82442006-01-16 22:14:19 -0800447 help
448 This option is used to specify the peripheral clock frequency.
449 This is necessary for determining the reference clock value on
450 platforms lacking an RTC.
451
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900452config SH_CLK_MD
453 int "CPU Mode Pin Setting"
Paul Mundt6d01f512007-11-26 18:17:21 +0900454 depends on CPU_SH2
Paul Mundt357d5942007-06-11 15:32:07 +0900455 default 6 if CPU_SUBTYPE_SH7206
456 default 5 if CPU_SUBTYPE_SH7619
457 default 0
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900458 help
Yoshinori Sato11cbb702006-12-07 18:07:27 +0900459 MD2 - MD0 pin setting.
Yoshinori Sato9d4436a2006-11-05 15:40:13 +0900460
Paul Mundt57be2b42007-05-09 17:33:24 +0900461source "kernel/time/Kconfig"
462
Paul Mundt32351a22007-03-12 14:38:59 +0900463endmenu
464
Paul Mundtcad82442006-01-16 22:14:19 -0800465menu "CPU Frequency scaling"
466
467source "drivers/cpufreq/Kconfig"
468
469config SH_CPU_FREQ
470 tristate "SuperH CPU Frequency driver"
Paul Mundtcb5ec752007-07-20 13:38:19 +0900471 depends on CPU_FREQ
Paul Mundtcad82442006-01-16 22:14:19 -0800472 select CPU_FREQ_TABLE
473 help
474 This adds the cpufreq driver for SuperH. At present, only
475 the SH-4 is supported.
476
477 For details, take a look at <file:Documentation/cpu-freq>.
478
479 If unsure, say N.
480
481endmenu
482
Paul Mundt9f5e8ee2006-11-24 11:22:57 +0900483source "arch/sh/drivers/Kconfig"
484
Paul Mundtcad82442006-01-16 22:14:19 -0800485endmenu
486
487config ISA_DMA_API
Adrian Bunkf5f826c2008-03-31 01:40:17 +0300488 bool
Paul Mundtcad82442006-01-16 22:14:19 -0800489
490menu "Kernel features"
491
Paul Mundt91b91d02006-09-27 18:08:33 +0900492source kernel/Kconfig.hz
493
Paul Mundtcad82442006-01-16 22:14:19 -0800494config KEXEC
495 bool "kexec system call (EXPERIMENTAL)"
Paul Mundt640f7482008-04-25 13:04:56 +0900496 depends on SUPERH32 && EXPERIMENTAL
Paul Mundtcad82442006-01-16 22:14:19 -0800497 help
498 kexec is a system call that implements the ability to shutdown your
499 current kernel, and to start another kernel. It is like a reboot
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400500 but it is independent of the system firmware. And like a reboot
Paul Mundtcad82442006-01-16 22:14:19 -0800501 you can start any kernel with it, not just Linux.
502
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400503 The name comes from the similarity to the exec system call.
Paul Mundtcad82442006-01-16 22:14:19 -0800504
505 It is an ongoing process to be certain the hardware in a machine
506 is properly shutdown, so do not be surprised if this code does not
507 initially work for you. It may help to enable device hotplugging
508 support. As of this writing the exact hardware interface is
509 strongly in flux, so no good recommendation can be made.
510
Paul Mundt4d5ade52007-04-27 11:25:57 +0900511config CRASH_DUMP
512 bool "kernel crash dumps (EXPERIMENTAL)"
Paul Mundt640f7482008-04-25 13:04:56 +0900513 depends on SUPERH32 && EXPERIMENTAL
Paul Mundt4d5ade52007-04-27 11:25:57 +0900514 help
515 Generate crash dump after being started by kexec.
516 This should be normally only set in special crash dump kernels
517 which are loaded in the main kernel with kexec-tools into
518 a specially reserved region and then later executed after
519 a crash by kdump/kexec. The crash dump kernel must be compiled
520 to a memory address not used by the main kernel using
521 MEMORY_START.
522
523 For more details see Documentation/kdump/kdump.txt
524
Paul Mundtc4637d42008-07-30 15:30:52 +0900525config SECCOMP
526 bool "Enable seccomp to safely compute untrusted bytecode"
527 depends on PROC_FS
Paul Mundtc4637d42008-07-30 15:30:52 +0900528 help
529 This kernel feature is useful for number crunching applications
530 that may need to compute untrusted bytecode during their
531 execution. By using pipes or other transports made available to
532 the process as file descriptors supporting the read/write
533 syscalls, it's possible to isolate those applications in
534 their own address space using seccomp. Once seccomp is
535 enabled via prctl, it cannot be disabled and the task is only
536 allowed to execute a few safe syscalls defined by each seccomp
537 mode.
538
539 If unsure, say N.
540
Linus Torvalds1da177e2005-04-16 15:20:36 -0700541config SMP
542 bool "Symmetric multi-processing support"
Paul Mundt357d5942007-06-11 15:32:07 +0900543 depends on SYS_SUPPORTS_SMP
Jens Axboe490f5de2008-06-10 20:52:59 +0200544 select USE_GENERIC_SMP_HELPERS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700545 ---help---
546 This enables support for systems with more than one CPU. If you have
547 a system with only one CPU, like most personal computers, say N. If
548 you have a system with more than one CPU, say Y.
549
550 If you say N here, the kernel will run on single and multiprocessor
551 machines, but will use only one CPU of a multiprocessor machine. If
552 you say Y here, the kernel will run on many, but not all,
553 singleprocessor machines. On a singleprocessor machine, the kernel
554 will run faster if you say N here.
555
556 People using multiprocessor machines who say Y here should also say
557 Y to "Enhanced Real Time Clock Support", below.
558
Adrian Bunk03502fa2008-02-03 15:50:21 +0200559 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
560 available at <http://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700561
562 If you don't know what to do here, say N.
563
564config NR_CPUS
565 int "Maximum number of CPUs (2-32)"
566 range 2 32
567 depends on SMP
Paul Mundt2b1bd1a2007-06-20 18:27:10 +0900568 default "4" if CPU_SHX3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700569 default "2"
570 help
571 This allows you to specify the maximum number of CPUs which this
572 kernel will support. The maximum supported value is 32 and the
573 minimum value which makes sense is 2.
574
575 This is purely to save memory - each supported CPU adds
576 approximately eight kilobytes to the kernel image.
577
Paul Mundt91b91d02006-09-27 18:08:33 +0900578source "kernel/Kconfig.preempt"
579
Paul Mundt83662462007-09-28 16:04:49 +0900580config GUSA
581 def_bool y
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900582 depends on !SMP && SUPERH32
Paul Mundt83662462007-09-28 16:04:49 +0900583 help
584 This enables support for gUSA (general UserSpace Atomicity).
585 This is the default implementation for both UP and non-ll/sc
586 CPUs, and is used by the libc, amongst others.
587
588 For additional information, design information can be found
589 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
590
591 This should only be disabled for special cases where alternate
592 atomicity implementations exist.
593
Stuart Menefy1efe4ce2007-11-30 16:12:36 +0900594config GUSA_RB
595 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
596 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
597 help
598 Enabling this option will allow the kernel to implement some
599 atomic operations using a software implemention of load-locked/
600 store-conditional (LLSC). On machines which do not have hardware
601 LLSC, this should be more efficient than the other alternative of
602 disabling insterrupts around the atomic sequence.
603
Paul Mundtcad82442006-01-16 22:14:19 -0800604endmenu
605
606menu "Boot options"
607
608config ZERO_PAGE_OFFSET
609 hex "Zero page offset"
Adrian Bunkf5f826c2008-03-31 01:40:17 +0300610 default "0x00004000" if SH_SH03
Paul Mundt7a847f82006-12-26 15:29:19 +0900611 default "0x00010000" if PAGE_SIZE_64KB
612 default "0x00002000" if PAGE_SIZE_8KB
Paul Mundtcad82442006-01-16 22:14:19 -0800613 default "0x00001000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700614 help
Paul Mundtcad82442006-01-16 22:14:19 -0800615 This sets the default offset of zero page.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700616
Paul Mundtcad82442006-01-16 22:14:19 -0800617config BOOT_LINK_OFFSET
618 hex "Link address offset for booting"
619 default "0x00800000"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700620 help
Paul Mundtcad82442006-01-16 22:14:19 -0800621 This option allows you to set the link address offset of the zImage.
622 This can be useful if you are on a board which has a small amount of
623 memory.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700624
Paul Mundtcad82442006-01-16 22:14:19 -0800625config UBC_WAKEUP
626 bool "Wakeup UBC on startup"
Paul Mundt0e3a9aa2007-11-06 15:55:36 +0900627 depends on CPU_SH4 && !CPU_SH4A
Paul Mundtcad82442006-01-16 22:14:19 -0800628 help
629 Selecting this option will wakeup the User Break Controller (UBC) on
630 startup. Although the UBC is left in an awake state when the processor
631 comes up, some boot loaders misbehave by putting the UBC to sleep in a
632 power saving state, which causes issues with things like ptrace().
Linus Torvalds1da177e2005-04-16 15:20:36 -0700633
634 If unsure, say N.
635
Paul Mundtcad82442006-01-16 22:14:19 -0800636config CMDLINE_BOOL
637 bool "Default bootloader kernel arguments"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700638
Paul Mundtcad82442006-01-16 22:14:19 -0800639config CMDLINE
640 string "Initial kernel command string"
641 depends on CMDLINE_BOOL
642 default "console=ttySC1,115200"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643
644endmenu
645
Paul Mundtcad82442006-01-16 22:14:19 -0800646menu "Bus options"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700647
648# Even on SuperH devices which don't have an ISA bus,
649# this variable helps the PCMCIA modules handle
650# IRQ requesting properly -- Greg Banks.
651#
652# Though we're generally not interested in it when
653# we're not using PCMCIA, so we make it dependent on
654# PCMCIA outright. -- PFM.
655config ISA
Paul Mundt357d5942007-06-11 15:32:07 +0900656 def_bool y
657 depends on PCMCIA && HD6446X_SERIES
Linus Torvalds1da177e2005-04-16 15:20:36 -0700658 help
659 Find out whether you have ISA slots on your motherboard. ISA is the
660 name of a bus system, i.e. the way the CPU talks to the other stuff
661 inside your box. Other bus systems are PCI, EISA, MicroChannel
662 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
663 newer boards don't support it. If you have ISA, say Y, otherwise N.
664
665config EISA
666 bool
667 ---help---
668 The Extended Industry Standard Architecture (EISA) bus was
669 developed as an open alternative to the IBM MicroChannel bus.
670
671 The EISA bus provided some of the features of the IBM MicroChannel
672 bus while maintaining backward compatibility with cards made for
673 the older ISA bus. The EISA bus saw limited use between 1988 and
674 1995 when it was made obsolete by the PCI bus.
675
676 Say Y here if you are building a kernel for an EISA-based machine.
677
678 Otherwise, say N.
679
680config MCA
681 bool
682 help
683 MicroChannel Architecture is found in some IBM PS/2 machines and
684 laptops. It is a bus system similar to PCI or ISA. See
685 <file:Documentation/mca.txt> (and especially the web page given
686 there) before attempting to build an MCA bus kernel.
687
688config SBUS
689 bool
690
Paul Mundtcad82442006-01-16 22:14:19 -0800691config SUPERHYWAY
692 tristate "SuperHyway Bus support"
693 depends on CPU_SUBTYPE_SH4_202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700694
Adrian McMenamin17be2d22007-09-21 15:55:55 +0900695config MAPLE
696 bool "Maple Bus support"
697 depends on SH_DREAMCAST
698 help
699 The Maple Bus is SEGA's serial communication bus for peripherals
700 on the Dreamcast. Without this bus support you won't be able to
701 get your Dreamcast keyboard etc to work, so most users
702 probably want to say 'Y' here, unless you are only using the
703 Dreamcast with a serial line terminal or a remote network
704 connection.
705
Paul Mundt824e55f2007-06-20 18:01:52 +0900706config CF_ENABLER
707 bool "Compact Flash Enabler support"
708 depends on SOLUTION_ENGINE || SH_SH03
709 ---help---
710 Compact Flash is a small, removable mass storage device introduced
711 in 1994 originally as a PCMCIA device. If you say `Y' here, you
712 compile in support for Compact Flash devices directly connected to
713 a SuperH processor. A Compact Flash FAQ is available at
714 <http://www.compactflash.org/faqs/faq.htm>.
715
716 If your board has "Directly Connected" CompactFlash at area 5 or 6,
717 you may want to enable this option. Then, you can use CF as
718 primary IDE drive (only tested for SanDisk).
719
720 If in doubt, select 'N'.
721
722choice
723 prompt "Compact Flash Connection Area"
724 depends on CF_ENABLER
725 default CF_AREA6
726
727config CF_AREA5
728 bool "Area5"
729 help
730 If your board has "Directly Connected" CompactFlash, You should
731 select the area where your CF is connected to.
732
733 - "Area5" if CompactFlash is connected to Area 5 (0x14000000)
734 - "Area6" if it is connected to Area 6 (0x18000000)
735
736 "Area6" will work for most boards.
737
738config CF_AREA6
739 bool "Area6"
740
741endchoice
742
743config CF_BASE_ADDR
744 hex
745 depends on CF_ENABLER
746 default "0xb8000000" if CF_AREA6
747 default "0xb4000000" if CF_AREA5
748
Linus Torvalds1da177e2005-04-16 15:20:36 -0700749source "arch/sh/drivers/pci/Kconfig"
750
751source "drivers/pci/Kconfig"
752
753source "drivers/pcmcia/Kconfig"
754
755source "drivers/pci/hotplug/Kconfig"
756
757endmenu
758
759menu "Executable file formats"
760
761source "fs/Kconfig.binfmt"
762
763endmenu
764
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900765menu "Power management options (EXPERIMENTAL)"
Magnus Dammaf998a92008-12-04 22:45:12 +0900766depends on EXPERIMENTAL
Johannes Bergf4cb5702007-12-08 02:14:00 +0100767
Magnus Dammc6f17cb2008-12-04 22:45:20 +0900768source "kernel/power/Kconfig"
769
770source "drivers/cpuidle/Kconfig"
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900771
Andriy Skulysh3aa770e2006-09-27 16:20:22 +0900772endmenu
773
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700774source "net/Kconfig"
775
Linus Torvalds1da177e2005-04-16 15:20:36 -0700776source "drivers/Kconfig"
777
778source "fs/Kconfig"
779
Linus Torvalds1da177e2005-04-16 15:20:36 -0700780source "arch/sh/Kconfig.debug"
781
782source "security/Kconfig"
783
784source "crypto/Kconfig"
785
786source "lib/Kconfig"