diff options
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 63 |
1 files changed, 54 insertions, 9 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index ebabe518e729..8d50d527c595 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -107,6 +107,9 @@ config SYS_SUPPORTS_NUMA | |||
107 | config SYS_SUPPORTS_PCI | 107 | config SYS_SUPPORTS_PCI |
108 | bool | 108 | bool |
109 | 109 | ||
110 | config SYS_SUPPORTS_CMT | ||
111 | bool | ||
112 | |||
110 | config STACKTRACE_SUPPORT | 113 | config STACKTRACE_SUPPORT |
111 | def_bool y | 114 | def_bool y |
112 | 115 | ||
@@ -176,6 +179,10 @@ config CPU_SHX2 | |||
176 | config CPU_SHX3 | 179 | config CPU_SHX3 |
177 | bool | 180 | bool |
178 | 181 | ||
182 | config ARCH_SHMOBILE | ||
183 | bool | ||
184 | select ARCH_SUSPEND_POSSIBLE | ||
185 | |||
179 | choice | 186 | choice |
180 | prompt "Processor sub-type selection" | 187 | prompt "Processor sub-type selection" |
181 | 188 | ||
@@ -188,6 +195,7 @@ choice | |||
188 | config CPU_SUBTYPE_SH7619 | 195 | config CPU_SUBTYPE_SH7619 |
189 | bool "Support SH7619 processor" | 196 | bool "Support SH7619 processor" |
190 | select CPU_SH2 | 197 | select CPU_SH2 |
198 | select SYS_SUPPORTS_CMT | ||
191 | 199 | ||
192 | # SH-2A Processor Support | 200 | # SH-2A Processor Support |
193 | 201 | ||
@@ -200,15 +208,18 @@ config CPU_SUBTYPE_SH7203 | |||
200 | bool "Support SH7203 processor" | 208 | bool "Support SH7203 processor" |
201 | select CPU_SH2A | 209 | select CPU_SH2A |
202 | select CPU_HAS_FPU | 210 | select CPU_HAS_FPU |
211 | select SYS_SUPPORTS_CMT | ||
203 | 212 | ||
204 | config CPU_SUBTYPE_SH7206 | 213 | config CPU_SUBTYPE_SH7206 |
205 | bool "Support SH7206 processor" | 214 | bool "Support SH7206 processor" |
206 | select CPU_SH2A | 215 | select CPU_SH2A |
216 | select SYS_SUPPORTS_CMT | ||
207 | 217 | ||
208 | config CPU_SUBTYPE_SH7263 | 218 | config CPU_SUBTYPE_SH7263 |
209 | bool "Support SH7263 processor" | 219 | bool "Support SH7263 processor" |
210 | select CPU_SH2A | 220 | select CPU_SH2A |
211 | select CPU_HAS_FPU | 221 | select CPU_HAS_FPU |
222 | select SYS_SUPPORTS_CMT | ||
212 | 223 | ||
213 | config CPU_SUBTYPE_MXG | 224 | config CPU_SUBTYPE_MXG |
214 | bool "Support MX-G processor" | 225 | bool "Support MX-G processor" |
@@ -323,7 +334,9 @@ config CPU_SUBTYPE_SH7723 | |||
323 | bool "Support SH7723 processor" | 334 | bool "Support SH7723 processor" |
324 | select CPU_SH4A | 335 | select CPU_SH4A |
325 | select CPU_SHX2 | 336 | select CPU_SHX2 |
337 | select ARCH_SHMOBILE | ||
326 | select ARCH_SPARSEMEM_ENABLE | 338 | select ARCH_SPARSEMEM_ENABLE |
339 | select SYS_SUPPORTS_CMT | ||
327 | help | 340 | help |
328 | Select SH7723 if you have an SH-MobileR2 CPU. | 341 | Select SH7723 if you have an SH-MobileR2 CPU. |
329 | 342 | ||
@@ -348,6 +361,14 @@ config CPU_SUBTYPE_SH7785 | |||
348 | select ARCH_SPARSEMEM_ENABLE | 361 | select ARCH_SPARSEMEM_ENABLE |
349 | select SYS_SUPPORTS_NUMA | 362 | select SYS_SUPPORTS_NUMA |
350 | 363 | ||
364 | config CPU_SUBTYPE_SH7786 | ||
365 | bool "Support SH7786 processor" | ||
366 | select CPU_SH4A | ||
367 | select CPU_SHX3 | ||
368 | select CPU_HAS_PTEAEX | ||
369 | select ARCH_SPARSEMEM_ENABLE | ||
370 | select SYS_SUPPORTS_NUMA | ||
371 | |||
351 | config CPU_SUBTYPE_SHX3 | 372 | config CPU_SUBTYPE_SHX3 |
352 | bool "Support SH-X3 processor" | 373 | bool "Support SH-X3 processor" |
353 | select CPU_SH4A | 374 | select CPU_SH4A |
@@ -362,20 +383,26 @@ config CPU_SUBTYPE_SHX3 | |||
362 | config CPU_SUBTYPE_SH7343 | 383 | config CPU_SUBTYPE_SH7343 |
363 | bool "Support SH7343 processor" | 384 | bool "Support SH7343 processor" |
364 | select CPU_SH4AL_DSP | 385 | select CPU_SH4AL_DSP |
386 | select ARCH_SHMOBILE | ||
387 | select SYS_SUPPORTS_CMT | ||
365 | 388 | ||
366 | config CPU_SUBTYPE_SH7722 | 389 | config CPU_SUBTYPE_SH7722 |
367 | bool "Support SH7722 processor" | 390 | bool "Support SH7722 processor" |
368 | select CPU_SH4AL_DSP | 391 | select CPU_SH4AL_DSP |
369 | select CPU_SHX2 | 392 | select CPU_SHX2 |
393 | select ARCH_SHMOBILE | ||
370 | select ARCH_SPARSEMEM_ENABLE | 394 | select ARCH_SPARSEMEM_ENABLE |
371 | select SYS_SUPPORTS_NUMA | 395 | select SYS_SUPPORTS_NUMA |
396 | select SYS_SUPPORTS_CMT | ||
372 | 397 | ||
373 | config CPU_SUBTYPE_SH7366 | 398 | config CPU_SUBTYPE_SH7366 |
374 | bool "Support SH7366 processor" | 399 | bool "Support SH7366 processor" |
375 | select CPU_SH4AL_DSP | 400 | select CPU_SH4AL_DSP |
376 | select CPU_SHX2 | 401 | select CPU_SHX2 |
402 | select ARCH_SHMOBILE | ||
377 | select ARCH_SPARSEMEM_ENABLE | 403 | select ARCH_SPARSEMEM_ENABLE |
378 | select SYS_SUPPORTS_NUMA | 404 | select SYS_SUPPORTS_NUMA |
405 | select SYS_SUPPORTS_CMT | ||
379 | 406 | ||
380 | # SH-5 Processor Support | 407 | # SH-5 Processor Support |
381 | 408 | ||
@@ -398,25 +425,34 @@ source "arch/sh/boards/Kconfig" | |||
398 | menu "Timer and clock configuration" | 425 | menu "Timer and clock configuration" |
399 | 426 | ||
400 | config SH_TMU | 427 | config SH_TMU |
401 | def_bool y | 428 | bool "TMU timer support" |
402 | prompt "TMU timer support" | ||
403 | depends on CPU_SH3 || CPU_SH4 | 429 | depends on CPU_SH3 || CPU_SH4 |
430 | default y | ||
404 | select GENERIC_TIME | 431 | select GENERIC_TIME |
405 | select GENERIC_CLOCKEVENTS | 432 | select GENERIC_CLOCKEVENTS |
406 | help | 433 | help |
407 | This enables the use of the TMU as the system timer. | 434 | This enables the use of the TMU as the system timer. |
408 | 435 | ||
409 | config SH_CMT | 436 | config SH_CMT |
410 | def_bool y | 437 | bool "CMT timer support" |
411 | prompt "CMT timer support" | 438 | depends on SYS_SUPPORTS_CMT && CPU_SH2 |
412 | depends on CPU_SH2 && !CPU_SUBTYPE_MXG | 439 | default y |
413 | help | 440 | help |
414 | This enables the use of the CMT as the system timer. | 441 | This enables the use of the CMT as the system timer. |
415 | 442 | ||
443 | # | ||
444 | # Support for the new-style CMT driver. This will replace SH_CMT | ||
445 | # once its other dependencies are merged. | ||
446 | # | ||
447 | config SH_TIMER_CMT | ||
448 | bool "CMT clockevents driver" | ||
449 | depends on SYS_SUPPORTS_CMT && !SH_CMT | ||
450 | select GENERIC_CLOCKEVENTS | ||
451 | |||
416 | config SH_MTU2 | 452 | config SH_MTU2 |
417 | def_bool n | 453 | bool "MTU2 timer support" |
418 | prompt "MTU2 timer support" | ||
419 | depends on CPU_SH2A | 454 | depends on CPU_SH2A |
455 | default y | ||
420 | help | 456 | help |
421 | This enables the use of the MTU2 as the system timer. | 457 | This enables the use of the MTU2 as the system timer. |
422 | 458 | ||
@@ -426,7 +462,8 @@ config SH_TIMER_IRQ | |||
426 | CPU_SUBTYPE_SH7763 | 462 | CPU_SUBTYPE_SH7763 |
427 | default "86" if CPU_SUBTYPE_SH7619 | 463 | default "86" if CPU_SUBTYPE_SH7619 |
428 | default "140" if CPU_SUBTYPE_SH7206 | 464 | default "140" if CPU_SUBTYPE_SH7206 |
429 | default "142" if CPU_SUBTYPE_SH7203 | 465 | default "142" if CPU_SUBTYPE_SH7203 && SH_CMT |
466 | default "153" if CPU_SUBTYPE_SH7203 && SH_MTU2 | ||
430 | default "238" if CPU_SUBTYPE_MXG | 467 | default "238" if CPU_SUBTYPE_MXG |
431 | default "16" | 468 | default "16" |
432 | 469 | ||
@@ -438,7 +475,8 @@ config SH_PCLK_FREQ | |||
438 | default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \ | 475 | default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \ |
439 | CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \ | 476 | CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \ |
440 | CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \ | 477 | CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \ |
441 | CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG | 478 | CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \ |
479 | CPU_SUBTYPE_SH7786 | ||
442 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R | 480 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R |
443 | default "66000000" if CPU_SUBTYPE_SH4_202 | 481 | default "66000000" if CPU_SUBTYPE_SH4_202 |
444 | default "50000000" | 482 | default "50000000" |
@@ -521,6 +559,13 @@ config CRASH_DUMP | |||
521 | 559 | ||
522 | For more details see Documentation/kdump/kdump.txt | 560 | For more details see Documentation/kdump/kdump.txt |
523 | 561 | ||
562 | config KEXEC_JUMP | ||
563 | bool "kexec jump (EXPERIMENTAL)" | ||
564 | depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL | ||
565 | help | ||
566 | Jump between original kernel and kexeced kernel and invoke | ||
567 | code via KEXEC | ||
568 | |||
524 | config SECCOMP | 569 | config SECCOMP |
525 | bool "Enable seccomp to safely compute untrusted bytecode" | 570 | bool "Enable seccomp to safely compute untrusted bytecode" |
526 | depends on PROC_FS | 571 | depends on PROC_FS |