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