Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # |
2 | # For a description of the syntax of this configuration file, | |
3 | # see Documentation/kbuild/kconfig-language.txt. | |
4 | # | |
5 | ||
6 | mainmenu "Linux/SuperH Kernel Configuration" | |
7 | ||
8 | config SUPERH | |
ea0e1a9a | 9 | def_bool y |
7a440c95 | 10 | select EMBEDDED |
9483a578 | 11 | select HAVE_CLK |
ec7748b5 | 12 | select HAVE_IDE |
42d4b839 | 13 | select HAVE_OPROFILE |
9de90ac2 | 14 | select HAVE_GENERIC_DMA_COHERENT |
21944781 | 15 | select HAVE_IOREMAP_PROT if MMU |
d7b01f78 | 16 | select HAVE_ARCH_TRACEHOOK |
f802d969 | 17 | select HAVE_DMA_API_DEBUG |
9c93e596 | 18 | select HAVE_PERF_COUNTER |
6eac1af0 | 19 | select RTC_LIB |
f01789c6 | 20 | select GENERIC_ATOMIC64 |
1da177e4 LT |
21 | help |
22 | The SuperH is a RISC processor targeted for use in embedded systems | |
23 | and consumer electronics; it was also used in the Sega Dreamcast | |
24 | gaming console. The SuperH port has a home page at | |
25 | <http://www.linux-sh.org/>. | |
26 | ||
39d28a2d | 27 | config SUPERH32 |
3cc000b5 | 28 | def_bool ARCH = "sh" |
d39f5450 CS |
29 | select HAVE_KPROBES |
30 | select HAVE_KRETPROBES | |
694f94f2 | 31 | select HAVE_FUNCTION_TRACER |
fad57feb MF |
32 | select HAVE_FTRACE_MCOUNT_RECORD |
33 | select HAVE_DYNAMIC_FTRACE | |
ab6e570b | 34 | select HAVE_ARCH_KGDB |
8dafc346 | 35 | select ARCH_HIBERNATION_POSSIBLE if MMU |
ea0e1a9a PM |
36 | |
37 | config SUPERH64 | |
3cc000b5 | 38 | def_bool ARCH = "sh64" |
39d28a2d | 39 | |
f42b7e3d PM |
40 | config ARCH_DEFCONFIG |
41 | string | |
42 | default "arch/sh/configs/shx3_defconfig" if SUPERH32 | |
43 | default "arch/sh/configs/cayman_defconfig" if SUPERH64 | |
44 | ||
1da177e4 | 45 | config RWSEM_GENERIC_SPINLOCK |
d7ef4fb3 | 46 | def_bool y |
1da177e4 LT |
47 | |
48 | config RWSEM_XCHGADD_ALGORITHM | |
49 | bool | |
50 | ||
fa691511 PM |
51 | config GENERIC_BUG |
52 | def_bool y | |
a82d53ec | 53 | depends on BUG && SUPERH32 |
fa691511 | 54 | |
3767f3f1 PM |
55 | config GENERIC_CSUM |
56 | def_bool y | |
57 | depends on SUPERH64 | |
58 | ||
e2268c71 | 59 | config GENERIC_FIND_NEXT_BIT |
d7ef4fb3 | 60 | def_bool y |
e2268c71 AM |
61 | |
62 | config GENERIC_HWEIGHT | |
d7ef4fb3 | 63 | def_bool y |
e2268c71 | 64 | |
1da177e4 | 65 | config GENERIC_HARDIRQS |
d7ef4fb3 | 66 | def_bool y |
1da177e4 | 67 | |
5093c9a4 PM |
68 | config GENERIC_HARDIRQS_NO__DO_IRQ |
69 | def_bool y | |
70 | ||
1da177e4 | 71 | config GENERIC_IRQ_PROBE |
d7ef4fb3 | 72 | def_bool y |
1da177e4 | 73 | |
2967dab1 MD |
74 | config GENERIC_GPIO |
75 | def_bool n | |
76 | ||
1da177e4 | 77 | config GENERIC_CALIBRATE_DELAY |
cf204fa7 | 78 | bool |
1da177e4 | 79 | |
cad82448 PM |
80 | config GENERIC_IOMAP |
81 | bool | |
82 | ||
45882145 | 83 | config GENERIC_TIME |
75634311 | 84 | def_bool y |
45882145 | 85 | |
57be2b48 | 86 | config GENERIC_CLOCKEVENTS |
938edae1 | 87 | def_bool y |
57be2b48 | 88 | |
8c24594d PM |
89 | config GENERIC_CLOCKEVENTS_BROADCAST |
90 | bool | |
91 | ||
6d134b9e PM |
92 | config GENERIC_CMOS_UPDATE |
93 | def_bool y | |
94 | depends on SH_SH03 || SH_DREAMCAST | |
95 | ||
bdcab87b PM |
96 | config GENERIC_LOCKBREAK |
97 | def_bool y | |
98 | depends on SMP && PREEMPT | |
99 | ||
357d5946 PM |
100 | config SYS_SUPPORTS_PM |
101 | bool | |
af998a9a MD |
102 | depends on !SMP |
103 | ||
104 | config ARCH_SUSPEND_POSSIBLE | |
105 | def_bool n | |
106 | ||
107 | config ARCH_HIBERNATION_POSSIBLE | |
108 | def_bool n | |
357d5946 | 109 | |
0a9b0db1 PM |
110 | config SYS_SUPPORTS_APM_EMULATION |
111 | bool | |
af998a9a | 112 | select ARCH_SUSPEND_POSSIBLE |
357d5946 PM |
113 | |
114 | config SYS_SUPPORTS_SMP | |
115 | bool | |
116 | ||
117 | config SYS_SUPPORTS_NUMA | |
118 | bool | |
119 | ||
120 | config SYS_SUPPORTS_PCI | |
121 | bool | |
0a9b0db1 | 122 | |
f5ad881b PM |
123 | config SYS_SUPPORTS_CMT |
124 | bool | |
125 | ||
d5ed4c2e MD |
126 | config SYS_SUPPORTS_MTU2 |
127 | bool | |
128 | ||
9570ef20 MD |
129 | config SYS_SUPPORTS_TMU |
130 | bool | |
131 | ||
afbfb52e | 132 | config STACKTRACE_SUPPORT |
d7ef4fb3 | 133 | def_bool y |
afbfb52e PM |
134 | |
135 | config LOCKDEP_SUPPORT | |
d7ef4fb3 | 136 | def_bool y |
afbfb52e | 137 | |
5a89f1ad PM |
138 | config HAVE_LATENCYTOP_SUPPORT |
139 | def_bool y | |
140 | depends on !SMP | |
141 | ||
f0d1b0b3 | 142 | config ARCH_HAS_ILOG2_U32 |
d7ef4fb3 | 143 | def_bool n |
f0d1b0b3 DH |
144 | |
145 | config ARCH_HAS_ILOG2_U64 | |
d7ef4fb3 | 146 | def_bool n |
f0d1b0b3 | 147 | |
e257ad06 PM |
148 | config ARCH_NO_VIRT_TO_BUS |
149 | def_bool y | |
150 | ||
e869a90e PM |
151 | config ARCH_HAS_DEFAULT_IDLE |
152 | def_bool y | |
153 | ||
e7cc9a73 MD |
154 | config IO_TRAPPED |
155 | bool | |
156 | ||
1da177e4 LT |
157 | source "init/Kconfig" |
158 | ||
dc52ddc0 MH |
159 | source "kernel/Kconfig.freezer" |
160 | ||
1da177e4 LT |
161 | menu "System type" |
162 | ||
b5f42db0 PM |
163 | # |
164 | # Processor families | |
165 | # | |
166 | config CPU_SH2 | |
167 | bool | |
168 | ||
169 | config CPU_SH2A | |
170 | bool | |
171 | select CPU_SH2 | |
172 | ||
173 | config CPU_SH3 | |
174 | bool | |
175 | select CPU_HAS_INTEVT | |
176 | select CPU_HAS_SR_RB | |
4fa48e17 | 177 | select SYS_SUPPORTS_TMU |
b5f42db0 PM |
178 | |
179 | config CPU_SH4 | |
180 | bool | |
181 | select CPU_HAS_INTEVT | |
182 | select CPU_HAS_SR_RB | |
b5f42db0 | 183 | select CPU_HAS_FPU if !CPU_SH4AL_DSP |
4fa48e17 | 184 | select SYS_SUPPORTS_TMU |
b5f42db0 PM |
185 | |
186 | config CPU_SH4A | |
187 | bool | |
188 | select CPU_SH4 | |
189 | ||
190 | config CPU_SH4AL_DSP | |
191 | bool | |
192 | select CPU_SH4A | |
193 | select CPU_HAS_DSP | |
194 | ||
ea0e1a9a PM |
195 | config CPU_SH5 |
196 | bool | |
197 | select CPU_HAS_FPU | |
add47067 | 198 | select SYS_SUPPORTS_TMU |
ea0e1a9a | 199 | |
b5f42db0 PM |
200 | config CPU_SHX2 |
201 | bool | |
202 | ||
203 | config CPU_SHX3 | |
204 | bool | |
205 | ||
dc65a977 PM |
206 | config ARCH_SHMOBILE |
207 | bool | |
77594912 | 208 | select ARCH_SUSPEND_POSSIBLE |
dc65a977 | 209 | |
3cc000b5 PM |
210 | if SUPERH32 |
211 | ||
b5f42db0 PM |
212 | choice |
213 | prompt "Processor sub-type selection" | |
214 | ||
215 | # | |
216 | # Processor subtypes | |
217 | # | |
218 | ||
219 | # SH-2 Processor Support | |
220 | ||
221 | config CPU_SUBTYPE_SH7619 | |
222 | bool "Support SH7619 processor" | |
223 | select CPU_SH2 | |
f5ad881b | 224 | select SYS_SUPPORTS_CMT |
b5f42db0 PM |
225 | |
226 | # SH-2A Processor Support | |
227 | ||
2825999e PG |
228 | config CPU_SUBTYPE_SH7201 |
229 | bool "Support SH7201 processor" | |
230 | select CPU_SH2A | |
231 | select CPU_HAS_FPU | |
da107c6e | 232 | select SYS_SUPPORTS_MTU2 |
2825999e | 233 | |
6d01f510 PM |
234 | config CPU_SUBTYPE_SH7203 |
235 | bool "Support SH7203 processor" | |
236 | select CPU_SH2A | |
74d99a5e | 237 | select CPU_HAS_FPU |
f5ad881b | 238 | select SYS_SUPPORTS_CMT |
da107c6e | 239 | select SYS_SUPPORTS_MTU2 |
6d01f510 | 240 | |
b5f42db0 PM |
241 | config CPU_SUBTYPE_SH7206 |
242 | bool "Support SH7206 processor" | |
243 | select CPU_SH2A | |
f5ad881b | 244 | select SYS_SUPPORTS_CMT |
da107c6e | 245 | select SYS_SUPPORTS_MTU2 |
b5f42db0 | 246 | |
a8f67f4b PM |
247 | config CPU_SUBTYPE_SH7263 |
248 | bool "Support SH7263 processor" | |
249 | select CPU_SH2A | |
74d99a5e | 250 | select CPU_HAS_FPU |
f5ad881b | 251 | select SYS_SUPPORTS_CMT |
da107c6e | 252 | select SYS_SUPPORTS_MTU2 |
a8f67f4b | 253 | |
2ad69908 PM |
254 | config CPU_SUBTYPE_MXG |
255 | bool "Support MX-G processor" | |
256 | select CPU_SH2A | |
da107c6e | 257 | select SYS_SUPPORTS_MTU2 |
2ad69908 PM |
258 | help |
259 | Select MX-G if running on an R8A03022BG part. | |
260 | ||
b5f42db0 PM |
261 | # SH-3 Processor Support |
262 | ||
263 | config CPU_SUBTYPE_SH7705 | |
264 | bool "Support SH7705 processor" | |
265 | select CPU_SH3 | |
266 | ||
267 | config CPU_SUBTYPE_SH7706 | |
268 | bool "Support SH7706 processor" | |
269 | select CPU_SH3 | |
270 | help | |
271 | Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU. | |
272 | ||
273 | config CPU_SUBTYPE_SH7707 | |
274 | bool "Support SH7707 processor" | |
275 | select CPU_SH3 | |
276 | help | |
277 | Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU. | |
278 | ||
279 | config CPU_SUBTYPE_SH7708 | |
280 | bool "Support SH7708 processor" | |
281 | select CPU_SH3 | |
282 | help | |
283 | Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or | |
284 | if you have a 100 Mhz SH-3 HD6417708R CPU. | |
285 | ||
286 | config CPU_SUBTYPE_SH7709 | |
287 | bool "Support SH7709 processor" | |
288 | select CPU_SH3 | |
289 | help | |
290 | Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU. | |
291 | ||
292 | config CPU_SUBTYPE_SH7710 | |
293 | bool "Support SH7710 processor" | |
294 | select CPU_SH3 | |
295 | select CPU_HAS_DSP | |
296 | help | |
297 | Select SH7710 if you have a SH3-DSP SH7710 CPU. | |
298 | ||
299 | config CPU_SUBTYPE_SH7712 | |
300 | bool "Support SH7712 processor" | |
301 | select CPU_SH3 | |
302 | select CPU_HAS_DSP | |
303 | help | |
304 | Select SH7712 if you have a SH3-DSP SH7712 CPU. | |
305 | ||
306 | config CPU_SUBTYPE_SH7720 | |
307 | bool "Support SH7720 processor" | |
308 | select CPU_SH3 | |
309 | select CPU_HAS_DSP | |
2b23a882 | 310 | select SYS_SUPPORTS_CMT |
b5f42db0 PM |
311 | help |
312 | Select SH7720 if you have a SH3-DSP SH7720 CPU. | |
313 | ||
31a49c4b YS |
314 | config CPU_SUBTYPE_SH7721 |
315 | bool "Support SH7721 processor" | |
316 | select CPU_SH3 | |
317 | select CPU_HAS_DSP | |
2b23a882 | 318 | select SYS_SUPPORTS_CMT |
31a49c4b YS |
319 | help |
320 | Select SH7721 if you have a SH3-DSP SH7721 CPU. | |
321 | ||
b5f42db0 PM |
322 | # SH-4 Processor Support |
323 | ||
324 | config CPU_SUBTYPE_SH7750 | |
325 | bool "Support SH7750 processor" | |
326 | select CPU_SH4 | |
327 | help | |
328 | Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU. | |
329 | ||
330 | config CPU_SUBTYPE_SH7091 | |
331 | bool "Support SH7091 processor" | |
332 | select CPU_SH4 | |
333 | help | |
334 | Select SH7091 if you have an SH-4 based Sega device (such as | |
335 | the Dreamcast, Naomi, and Naomi 2). | |
336 | ||
337 | config CPU_SUBTYPE_SH7750R | |
338 | bool "Support SH7750R processor" | |
339 | select CPU_SH4 | |
340 | ||
341 | config CPU_SUBTYPE_SH7750S | |
342 | bool "Support SH7750S processor" | |
343 | select CPU_SH4 | |
344 | ||
345 | config CPU_SUBTYPE_SH7751 | |
346 | bool "Support SH7751 processor" | |
347 | select CPU_SH4 | |
348 | help | |
349 | Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU, | |
350 | or if you have a HD6417751R CPU. | |
351 | ||
352 | config CPU_SUBTYPE_SH7751R | |
353 | bool "Support SH7751R processor" | |
354 | select CPU_SH4 | |
355 | ||
356 | config CPU_SUBTYPE_SH7760 | |
357 | bool "Support SH7760 processor" | |
358 | select CPU_SH4 | |
359 | ||
360 | config CPU_SUBTYPE_SH4_202 | |
361 | bool "Support SH4-202 processor" | |
362 | select CPU_SH4 | |
363 | ||
364 | # SH-4A Processor Support | |
365 | ||
178dd0cd PM |
366 | config CPU_SUBTYPE_SH7723 |
367 | bool "Support SH7723 processor" | |
368 | select CPU_SH4A | |
369 | select CPU_SHX2 | |
dc65a977 | 370 | select ARCH_SHMOBILE |
178dd0cd | 371 | select ARCH_SPARSEMEM_ENABLE |
f5ad881b | 372 | select SYS_SUPPORTS_CMT |
178dd0cd PM |
373 | help |
374 | Select SH7723 if you have an SH-MobileR2 CPU. | |
375 | ||
0207a2ef KM |
376 | config CPU_SUBTYPE_SH7724 |
377 | bool "Support SH7724 processor" | |
378 | select CPU_SH4A | |
379 | select CPU_SHX2 | |
59fe700d | 380 | select ARCH_SHMOBILE |
0207a2ef KM |
381 | select ARCH_SPARSEMEM_ENABLE |
382 | select SYS_SUPPORTS_CMT | |
383 | help | |
384 | Select SH7724 if you have an SH-MobileR2R CPU. | |
385 | ||
7d740a06 YS |
386 | config CPU_SUBTYPE_SH7763 |
387 | bool "Support SH7763 processor" | |
388 | select CPU_SH4A | |
389 | help | |
390 | Select SH7763 if you have a SH4A SH7763(R5S77631) CPU. | |
391 | ||
b5f42db0 PM |
392 | config CPU_SUBTYPE_SH7770 |
393 | bool "Support SH7770 processor" | |
394 | select CPU_SH4A | |
395 | ||
396 | config CPU_SUBTYPE_SH7780 | |
397 | bool "Support SH7780 processor" | |
398 | select CPU_SH4A | |
399 | ||
400 | config CPU_SUBTYPE_SH7785 | |
401 | bool "Support SH7785 processor" | |
402 | select CPU_SH4A | |
403 | select CPU_SHX2 | |
55ba99eb KM |
404 | select ARCH_SPARSEMEM_ENABLE |
405 | select SYS_SUPPORTS_NUMA | |
406 | ||
407 | config CPU_SUBTYPE_SH7786 | |
408 | bool "Support SH7786 processor" | |
409 | select CPU_SH4A | |
37042fbd | 410 | select CPU_SHX3 |
8263a67e | 411 | select CPU_HAS_PTEAEX |
b5f42db0 PM |
412 | select ARCH_SPARSEMEM_ENABLE |
413 | select SYS_SUPPORTS_NUMA | |
414 | ||
415 | config CPU_SUBTYPE_SHX3 | |
416 | bool "Support SH-X3 processor" | |
417 | select CPU_SH4A | |
418 | select CPU_SHX3 | |
419 | select ARCH_SPARSEMEM_ENABLE | |
420 | select SYS_SUPPORTS_NUMA | |
421 | select SYS_SUPPORTS_SMP | |
5840263e | 422 | select GENERIC_CLOCKEVENTS_BROADCAST if SMP |
b5f42db0 PM |
423 | |
424 | # SH4AL-DSP Processor Support | |
425 | ||
426 | config CPU_SUBTYPE_SH7343 | |
427 | bool "Support SH7343 processor" | |
428 | select CPU_SH4AL_DSP | |
dc65a977 | 429 | select ARCH_SHMOBILE |
f5ad881b | 430 | select SYS_SUPPORTS_CMT |
b5f42db0 PM |
431 | |
432 | config CPU_SUBTYPE_SH7722 | |
433 | bool "Support SH7722 processor" | |
434 | select CPU_SH4AL_DSP | |
435 | select CPU_SHX2 | |
dc65a977 | 436 | select ARCH_SHMOBILE |
b5f42db0 PM |
437 | select ARCH_SPARSEMEM_ENABLE |
438 | select SYS_SUPPORTS_NUMA | |
f5ad881b | 439 | select SYS_SUPPORTS_CMT |
9109a30e MD |
440 | |
441 | config CPU_SUBTYPE_SH7366 | |
442 | bool "Support SH7366 processor" | |
443 | select CPU_SH4AL_DSP | |
444 | select CPU_SHX2 | |
dc65a977 | 445 | select ARCH_SHMOBILE |
9109a30e MD |
446 | select ARCH_SPARSEMEM_ENABLE |
447 | select SYS_SUPPORTS_NUMA | |
f5ad881b | 448 | select SYS_SUPPORTS_CMT |
b5f42db0 | 449 | |
3cc000b5 PM |
450 | endchoice |
451 | ||
452 | endif | |
453 | ||
454 | if SUPERH64 | |
455 | ||
456 | choice | |
457 | prompt "Processor sub-type selection" | |
458 | ||
ea0e1a9a PM |
459 | # SH-5 Processor Support |
460 | ||
461 | config CPU_SUBTYPE_SH5_101 | |
462 | bool "Support SH5-101 processor" | |
463 | select CPU_SH5 | |
464 | ||
465 | config CPU_SUBTYPE_SH5_103 | |
466 | bool "Support SH5-103 processor" | |
8ef97dd7 | 467 | select CPU_SH5 |
ea0e1a9a | 468 | |
b5f42db0 PM |
469 | endchoice |
470 | ||
3cc000b5 PM |
471 | endif |
472 | ||
f3d22298 | 473 | source "arch/sh/mm/Kconfig" |
939a24a6 | 474 | |
4690bdc7 | 475 | source "arch/sh/Kconfig.cpu" |
f3d22298 | 476 | |
939a24a6 | 477 | source "arch/sh/boards/Kconfig" |
32351a28 | 478 | |
32351a28 PM |
479 | menu "Timer and clock configuration" |
480 | ||
9570ef20 MD |
481 | config SH_TIMER_TMU |
482 | bool "TMU timer driver" | |
f19900b2 | 483 | depends on SYS_SUPPORTS_TMU |
9570ef20 | 484 | default y |
9570ef20 MD |
485 | help |
486 | This enables the build of the TMU timer driver. | |
487 | ||
f5ad881b | 488 | config SH_TIMER_CMT |
f425752f MD |
489 | bool "CMT timer driver" |
490 | depends on SYS_SUPPORTS_CMT | |
491 | default y | |
f425752f MD |
492 | help |
493 | This enables build of the CMT timer driver. | |
f5ad881b | 494 | |
d5ed4c2e MD |
495 | config SH_TIMER_MTU2 |
496 | bool "MTU2 timer driver" | |
3280c886 | 497 | depends on SYS_SUPPORTS_MTU2 |
d5ed4c2e | 498 | default y |
d5ed4c2e MD |
499 | help |
500 | This enables build of the MTU2 timer driver. | |
501 | ||
cad82448 PM |
502 | config SH_PCLK_FREQ |
503 | int "Peripheral clock frequency (in Hz)" | |
870e8a24 | 504 | default "27000000" if CPU_SUBTYPE_SH7343 |
9d4436a6 | 505 | default "31250000" if CPU_SUBTYPE_SH7619 |
05627486 | 506 | default "32000000" if CPU_SUBTYPE_SH7722 |
178dd0cd | 507 | default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \ |
9d4436a6 | 508 | CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \ |
a8f67f4b | 509 | CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \ |
a4b1fddc | 510 | CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \ |
47785414 | 511 | CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724 |
05627486 | 512 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R |
cad82448 | 513 | default "66000000" if CPU_SUBTYPE_SH4_202 |
05627486 | 514 | default "50000000" |
1da177e4 | 515 | help |
cad82448 PM |
516 | This option is used to specify the peripheral clock frequency. |
517 | This is necessary for determining the reference clock value on | |
518 | platforms lacking an RTC. | |
1da177e4 | 519 | |
36aa1e32 PM |
520 | config SH_CLK_CPG |
521 | def_bool y | |
522 | ||
253b0887 | 523 | config SH_CLK_CPG_LEGACY |
36aa1e32 | 524 | depends on SH_CLK_CPG |
46e9371c | 525 | def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE |
253b0887 | 526 | |
9d4436a6 YS |
527 | config SH_CLK_MD |
528 | int "CPU Mode Pin Setting" | |
6d01f510 | 529 | depends on CPU_SH2 |
357d5946 PM |
530 | default 6 if CPU_SUBTYPE_SH7206 |
531 | default 5 if CPU_SUBTYPE_SH7619 | |
532 | default 0 | |
9d4436a6 | 533 | help |
11cbb70e | 534 | MD2 - MD0 pin setting. |
9d4436a6 | 535 | |
57be2b48 PM |
536 | source "kernel/time/Kconfig" |
537 | ||
32351a28 PM |
538 | endmenu |
539 | ||
cad82448 PM |
540 | menu "CPU Frequency scaling" |
541 | ||
542 | source "drivers/cpufreq/Kconfig" | |
1da177e4 | 543 | |
cad82448 PM |
544 | config SH_CPU_FREQ |
545 | tristate "SuperH CPU Frequency driver" | |
cb5ec75b | 546 | depends on CPU_FREQ |
cad82448 | 547 | select CPU_FREQ_TABLE |
1da177e4 | 548 | help |
8a655053 PM |
549 | This adds the cpufreq driver for SuperH. Any CPU that supports |
550 | clock rate rounding through the clock framework can use this | |
551 | driver. While it will make the kernel slightly larger, this is | |
552 | harmless for CPUs that don't support rate rounding. The driver | |
553 | will also generate a notice in the boot log before disabling | |
554 | itself if the CPU in question is not capable of rate rounding. | |
1da177e4 | 555 | |
cad82448 | 556 | For details, take a look at <file:Documentation/cpu-freq>. |
1da177e4 LT |
557 | |
558 | If unsure, say N. | |
559 | ||
cad82448 PM |
560 | endmenu |
561 | ||
9f5e8eee PM |
562 | source "arch/sh/drivers/Kconfig" |
563 | ||
cad82448 | 564 | endmenu |
1da177e4 | 565 | |
cad82448 PM |
566 | menu "Kernel features" |
567 | ||
91b91d01 PM |
568 | source kernel/Kconfig.hz |
569 | ||
cad82448 PM |
570 | config KEXEC |
571 | bool "kexec system call (EXPERIMENTAL)" | |
f36b59d1 | 572 | depends on SUPERH32 && EXPERIMENTAL && MMU |
1da177e4 | 573 | help |
cad82448 PM |
574 | kexec is a system call that implements the ability to shutdown your |
575 | current kernel, and to start another kernel. It is like a reboot | |
1f1332f7 | 576 | but it is independent of the system firmware. And like a reboot |
cad82448 PM |
577 | you can start any kernel with it, not just Linux. |
578 | ||
1f1332f7 | 579 | The name comes from the similarity to the exec system call. |
cad82448 PM |
580 | |
581 | It is an ongoing process to be certain the hardware in a machine | |
582 | is properly shutdown, so do not be surprised if this code does not | |
583 | initially work for you. It may help to enable device hotplugging | |
584 | support. As of this writing the exact hardware interface is | |
585 | strongly in flux, so no good recommendation can be made. | |
586 | ||
4d5ade5b PM |
587 | config CRASH_DUMP |
588 | bool "kernel crash dumps (EXPERIMENTAL)" | |
640f7487 | 589 | depends on SUPERH32 && EXPERIMENTAL |
4d5ade5b PM |
590 | help |
591 | Generate crash dump after being started by kexec. | |
592 | This should be normally only set in special crash dump kernels | |
593 | which are loaded in the main kernel with kexec-tools into | |
594 | a specially reserved region and then later executed after | |
595 | a crash by kdump/kexec. The crash dump kernel must be compiled | |
596 | to a memory address not used by the main kernel using | |
597 | MEMORY_START. | |
598 | ||
599 | For more details see Documentation/kdump/kdump.txt | |
600 | ||
b7cf6ddc MD |
601 | config KEXEC_JUMP |
602 | bool "kexec jump (EXPERIMENTAL)" | |
603 | depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL | |
604 | help | |
605 | Jump between original kernel and kexeced kernel and invoke | |
606 | code via KEXEC | |
607 | ||
c4637d47 PM |
608 | config SECCOMP |
609 | bool "Enable seccomp to safely compute untrusted bytecode" | |
610 | depends on PROC_FS | |
c4637d47 PM |
611 | help |
612 | This kernel feature is useful for number crunching applications | |
613 | that may need to compute untrusted bytecode during their | |
614 | execution. By using pipes or other transports made available to | |
615 | the process as file descriptors supporting the read/write | |
616 | syscalls, it's possible to isolate those applications in | |
617 | their own address space using seccomp. Once seccomp is | |
618 | enabled via prctl, it cannot be disabled and the task is only | |
619 | allowed to execute a few safe syscalls defined by each seccomp | |
620 | mode. | |
621 | ||
622 | If unsure, say N. | |
623 | ||
1da177e4 LT |
624 | config SMP |
625 | bool "Symmetric multi-processing support" | |
357d5946 | 626 | depends on SYS_SUPPORTS_SMP |
490f5de5 | 627 | select USE_GENERIC_SMP_HELPERS |
1da177e4 LT |
628 | ---help--- |
629 | This enables support for systems with more than one CPU. If you have | |
630 | a system with only one CPU, like most personal computers, say N. If | |
631 | you have a system with more than one CPU, say Y. | |
632 | ||
633 | If you say N here, the kernel will run on single and multiprocessor | |
634 | machines, but will use only one CPU of a multiprocessor machine. If | |
635 | you say Y here, the kernel will run on many, but not all, | |
636 | singleprocessor machines. On a singleprocessor machine, the kernel | |
637 | will run faster if you say N here. | |
638 | ||
639 | People using multiprocessor machines who say Y here should also say | |
640 | Y to "Enhanced Real Time Clock Support", below. | |
641 | ||
03502faa AB |
642 | See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO |
643 | available at <http://www.tldp.org/docs.html#howto>. | |
1da177e4 LT |
644 | |
645 | If you don't know what to do here, say N. | |
646 | ||
647 | config NR_CPUS | |
648 | int "Maximum number of CPUs (2-32)" | |
649 | range 2 32 | |
650 | depends on SMP | |
2b1bd1ac | 651 | default "4" if CPU_SHX3 |
1da177e4 LT |
652 | default "2" |
653 | help | |
654 | This allows you to specify the maximum number of CPUs which this | |
655 | kernel will support. The maximum supported value is 32 and the | |
656 | minimum value which makes sense is 2. | |
657 | ||
658 | This is purely to save memory - each supported CPU adds | |
659 | approximately eight kilobytes to the kernel image. | |
660 | ||
91b91d01 PM |
661 | source "kernel/Kconfig.preempt" |
662 | ||
83662461 PM |
663 | config GUSA |
664 | def_bool y | |
1efe4ce3 | 665 | depends on !SMP && SUPERH32 |
83662461 PM |
666 | help |
667 | This enables support for gUSA (general UserSpace Atomicity). | |
668 | This is the default implementation for both UP and non-ll/sc | |
669 | CPUs, and is used by the libc, amongst others. | |
670 | ||
671 | For additional information, design information can be found | |
672 | in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>. | |
673 | ||
674 | This should only be disabled for special cases where alternate | |
675 | atomicity implementations exist. | |
676 | ||
1efe4ce3 SM |
677 | config GUSA_RB |
678 | bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)" | |
679 | depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A) | |
680 | help | |
681 | Enabling this option will allow the kernel to implement some | |
692105b8 | 682 | atomic operations using a software implementation of load-locked/ |
1efe4ce3 SM |
683 | store-conditional (LLSC). On machines which do not have hardware |
684 | LLSC, this should be more efficient than the other alternative of | |
692105b8 | 685 | disabling interrupts around the atomic sequence. |
1efe4ce3 | 686 | |
54ff328b PM |
687 | config SPARSE_IRQ |
688 | bool "Support sparse irq numbering" | |
689 | depends on EXPERIMENTAL | |
690 | help | |
691 | This enables support for sparse irqs. This is useful in general | |
692 | as most CPUs have a fairly sparse array of IRQ vectors, which | |
693 | the irq_desc then maps directly on to. Systems with a high | |
694 | number of off-chip IRQs will want to treat this as | |
695 | experimental until they have been independently verified. | |
696 | ||
697 | If you don't know what to do here, say N. | |
698 | ||
cad82448 | 699 | endmenu |
1da177e4 | 700 | |
cad82448 | 701 | menu "Boot options" |
1da177e4 | 702 | |
cad82448 | 703 | config ZERO_PAGE_OFFSET |
b412a49a PM |
704 | hex |
705 | default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \ | |
706 | SH_7751_SOLUTION_ENGINE | |
707 | default "0x00004000" if PAGE_SIZE_16KB || SH_SH03 | |
7a847f81 | 708 | default "0x00002000" if PAGE_SIZE_8KB |
cad82448 | 709 | default "0x00001000" |
1da177e4 | 710 | help |
cad82448 | 711 | This sets the default offset of zero page. |
1da177e4 | 712 | |
cad82448 | 713 | config BOOT_LINK_OFFSET |
b412a49a PM |
714 | hex |
715 | default "0x00210000" if SH_SHMIN | |
a2e76c80 | 716 | default "0x00400000" if SH_CAYMAN |
b412a49a PM |
717 | default "0x00810000" if SH_7780_SOLUTION_ENGINE |
718 | default "0x009e0000" if SH_TITAN | |
719 | default "0x01800000" if SH_SDK7780 | |
720 | default "0x02000000" if SH_EDOSK7760 | |
cad82448 PM |
721 | default "0x00800000" |
722 | help | |
723 | This option allows you to set the link address offset of the zImage. | |
724 | This can be useful if you are on a board which has a small amount of | |
725 | memory. | |
1da177e4 | 726 | |
b412a49a PM |
727 | config ENTRY_OFFSET |
728 | hex | |
729 | default "0x00001000" if PAGE_SIZE_4KB | |
730 | default "0x00002000" if PAGE_SIZE_8KB | |
731 | default "0x00004000" if PAGE_SIZE_16KB | |
732 | default "0x00010000" if PAGE_SIZE_64KB | |
733 | default "0x00000000" | |
734 | ||
cad82448 PM |
735 | config UBC_WAKEUP |
736 | bool "Wakeup UBC on startup" | |
0e3a9aab | 737 | depends on CPU_SH4 && !CPU_SH4A |
cad82448 PM |
738 | help |
739 | Selecting this option will wakeup the User Break Controller (UBC) on | |
740 | startup. Although the UBC is left in an awake state when the processor | |
741 | comes up, some boot loaders misbehave by putting the UBC to sleep in a | |
742 | power saving state, which causes issues with things like ptrace(). | |
1da177e4 | 743 | |
cad82448 | 744 | If unsure, say N. |
1da177e4 | 745 | |
cad82448 PM |
746 | config CMDLINE_BOOL |
747 | bool "Default bootloader kernel arguments" | |
1da177e4 | 748 | |
cad82448 PM |
749 | config CMDLINE |
750 | string "Initial kernel command string" | |
751 | depends on CMDLINE_BOOL | |
752 | default "console=ttySC1,115200" | |
1da177e4 LT |
753 | |
754 | endmenu | |
755 | ||
cad82448 | 756 | menu "Bus options" |
1da177e4 | 757 | |
cad82448 PM |
758 | config SUPERHYWAY |
759 | tristate "SuperHyway Bus support" | |
760 | depends on CPU_SUBTYPE_SH4_202 | |
1da177e4 | 761 | |
17be2d2b | 762 | config MAPLE |
e16038ab PM |
763 | bool "Maple Bus support" |
764 | depends on SH_DREAMCAST | |
765 | help | |
766 | The Maple Bus is SEGA's serial communication bus for peripherals | |
767 | on the Dreamcast. Without this bus support you won't be able to | |
768 | get your Dreamcast keyboard etc to work, so most users | |
769 | probably want to say 'Y' here, unless you are only using the | |
770 | Dreamcast with a serial line terminal or a remote network | |
771 | connection. | |
17be2d2b | 772 | |
1da177e4 LT |
773 | source "arch/sh/drivers/pci/Kconfig" |
774 | ||
e16038ab PM |
775 | source "drivers/pci/pcie/Kconfig" |
776 | ||
1da177e4 LT |
777 | source "drivers/pci/Kconfig" |
778 | ||
779 | source "drivers/pcmcia/Kconfig" | |
780 | ||
781 | source "drivers/pci/hotplug/Kconfig" | |
782 | ||
783 | endmenu | |
784 | ||
785 | menu "Executable file formats" | |
786 | ||
787 | source "fs/Kconfig.binfmt" | |
788 | ||
789 | endmenu | |
790 | ||
3aa770e7 | 791 | menu "Power management options (EXPERIMENTAL)" |
af998a9a | 792 | depends on EXPERIMENTAL |
f4cb5700 | 793 | |
c6f17cb2 MD |
794 | source "kernel/power/Kconfig" |
795 | ||
796 | source "drivers/cpuidle/Kconfig" | |
3aa770e7 | 797 | |
3aa770e7 AS |
798 | endmenu |
799 | ||
d5950b43 SR |
800 | source "net/Kconfig" |
801 | ||
1da177e4 LT |
802 | source "drivers/Kconfig" |
803 | ||
804 | source "fs/Kconfig" | |
805 | ||
1da177e4 LT |
806 | source "arch/sh/Kconfig.debug" |
807 | ||
808 | source "security/Kconfig" | |
809 | ||
810 | source "crypto/Kconfig" | |
811 | ||
812 | source "lib/Kconfig" |