diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-01-29 04:08:58 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-01-29 04:08:58 -0500 |
commit | f5ad881b425616741bf8696f70b2749abe54a936 (patch) | |
tree | fa7c4e3a3230360a27caaecc236ac34f517ddc3f /arch/sh/Kconfig | |
parent | 424f59d04d7450555ef2bf1eb4a5e2cd2ecf08cd (diff) |
sh: Use SYS_SUPPORTS_CMT for managing CMT timer dependencies.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 5407e1295e51..5784bcec1a16 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 | ||
@@ -188,6 +191,7 @@ choice | |||
188 | config CPU_SUBTYPE_SH7619 | 191 | config CPU_SUBTYPE_SH7619 |
189 | bool "Support SH7619 processor" | 192 | bool "Support SH7619 processor" |
190 | select CPU_SH2 | 193 | select CPU_SH2 |
194 | select SYS_SUPPORTS_CMT | ||
191 | 195 | ||
192 | # SH-2A Processor Support | 196 | # SH-2A Processor Support |
193 | 197 | ||
@@ -200,15 +204,18 @@ config CPU_SUBTYPE_SH7203 | |||
200 | bool "Support SH7203 processor" | 204 | bool "Support SH7203 processor" |
201 | select CPU_SH2A | 205 | select CPU_SH2A |
202 | select CPU_HAS_FPU | 206 | select CPU_HAS_FPU |
207 | select SYS_SUPPORTS_CMT | ||
203 | 208 | ||
204 | config CPU_SUBTYPE_SH7206 | 209 | config CPU_SUBTYPE_SH7206 |
205 | bool "Support SH7206 processor" | 210 | bool "Support SH7206 processor" |
206 | select CPU_SH2A | 211 | select CPU_SH2A |
212 | select SYS_SUPPORTS_CMT | ||
207 | 213 | ||
208 | config CPU_SUBTYPE_SH7263 | 214 | config CPU_SUBTYPE_SH7263 |
209 | bool "Support SH7263 processor" | 215 | bool "Support SH7263 processor" |
210 | select CPU_SH2A | 216 | select CPU_SH2A |
211 | select CPU_HAS_FPU | 217 | select CPU_HAS_FPU |
218 | select SYS_SUPPORTS_CMT | ||
212 | 219 | ||
213 | config CPU_SUBTYPE_MXG | 220 | config CPU_SUBTYPE_MXG |
214 | bool "Support MX-G processor" | 221 | bool "Support MX-G processor" |
@@ -324,6 +331,7 @@ config CPU_SUBTYPE_SH7723 | |||
324 | select CPU_SH4A | 331 | select CPU_SH4A |
325 | select CPU_SHX2 | 332 | select CPU_SHX2 |
326 | select ARCH_SPARSEMEM_ENABLE | 333 | select ARCH_SPARSEMEM_ENABLE |
334 | select SYS_SUPPORTS_CMT | ||
327 | help | 335 | help |
328 | Select SH7723 if you have an SH-MobileR2 CPU. | 336 | Select SH7723 if you have an SH-MobileR2 CPU. |
329 | 337 | ||
@@ -362,6 +370,7 @@ config CPU_SUBTYPE_SHX3 | |||
362 | config CPU_SUBTYPE_SH7343 | 370 | config CPU_SUBTYPE_SH7343 |
363 | bool "Support SH7343 processor" | 371 | bool "Support SH7343 processor" |
364 | select CPU_SH4AL_DSP | 372 | select CPU_SH4AL_DSP |
373 | select SYS_SUPPORTS_CMT | ||
365 | 374 | ||
366 | config CPU_SUBTYPE_SH7722 | 375 | config CPU_SUBTYPE_SH7722 |
367 | bool "Support SH7722 processor" | 376 | bool "Support SH7722 processor" |
@@ -369,6 +378,7 @@ config CPU_SUBTYPE_SH7722 | |||
369 | select CPU_SHX2 | 378 | select CPU_SHX2 |
370 | select ARCH_SPARSEMEM_ENABLE | 379 | select ARCH_SPARSEMEM_ENABLE |
371 | select SYS_SUPPORTS_NUMA | 380 | select SYS_SUPPORTS_NUMA |
381 | select SYS_SUPPORTS_CMT | ||
372 | 382 | ||
373 | config CPU_SUBTYPE_SH7366 | 383 | config CPU_SUBTYPE_SH7366 |
374 | bool "Support SH7366 processor" | 384 | bool "Support SH7366 processor" |
@@ -376,6 +386,7 @@ config CPU_SUBTYPE_SH7366 | |||
376 | select CPU_SHX2 | 386 | select CPU_SHX2 |
377 | select ARCH_SPARSEMEM_ENABLE | 387 | select ARCH_SPARSEMEM_ENABLE |
378 | select SYS_SUPPORTS_NUMA | 388 | select SYS_SUPPORTS_NUMA |
389 | select SYS_SUPPORTS_CMT | ||
379 | 390 | ||
380 | # SH-5 Processor Support | 391 | # SH-5 Processor Support |
381 | 392 | ||
@@ -397,34 +408,36 @@ source "arch/sh/boards/Kconfig" | |||
397 | 408 | ||
398 | menu "Timer and clock configuration" | 409 | menu "Timer and clock configuration" |
399 | 410 | ||
400 | config SH_TIMER_CMT | ||
401 | def_bool n | ||
402 | prompt "CMT support" | ||
403 | select GENERIC_TIME | ||
404 | select GENERIC_CLOCKEVENTS | ||
405 | help | ||
406 | This enables build of the CMT system timer driver. | ||
407 | |||
408 | config SH_TMU | 411 | config SH_TMU |
409 | def_bool y | 412 | bool "TMU timer support" |
410 | prompt "TMU timer support" | ||
411 | depends on CPU_SH3 || CPU_SH4 | 413 | depends on CPU_SH3 || CPU_SH4 |
414 | default y | ||
412 | select GENERIC_TIME | 415 | select GENERIC_TIME |
413 | select GENERIC_CLOCKEVENTS | 416 | select GENERIC_CLOCKEVENTS |
414 | help | 417 | help |
415 | This enables the use of the TMU as the system timer. | 418 | This enables the use of the TMU as the system timer. |
416 | 419 | ||
417 | config SH_CMT | 420 | config SH_CMT |
418 | def_bool y | 421 | bool "CMT timer support" |
419 | prompt "CMT timer support" | 422 | depends on SYS_SUPPORTS_CMT |
420 | depends on CPU_SH2 && !CPU_SUBTYPE_MXG | 423 | default y |
421 | help | 424 | help |
422 | This enables the use of the CMT as the system timer. | 425 | This enables the use of the CMT as the system timer. |
423 | 426 | ||
427 | # | ||
428 | # Support for the new-style CMT driver. This will replace SH_CMT | ||
429 | # once its other dependencies are merged. | ||
430 | # | ||
431 | config SH_TIMER_CMT | ||
432 | bool "CMT clockevents driver" | ||
433 | depends on SYS_SUPPORTS_CMT && !SH_CMT | ||
434 | select GENERIC_TIME | ||
435 | select GENERIC_CLOCKEVENTS | ||
436 | |||
424 | config SH_MTU2 | 437 | config SH_MTU2 |
425 | def_bool n | 438 | bool "MTU2 timer support" |
426 | prompt "MTU2 timer support" | ||
427 | depends on CPU_SH2A | 439 | depends on CPU_SH2A |
440 | default y | ||
428 | help | 441 | help |
429 | This enables the use of the MTU2 as the system timer. | 442 | This enables the use of the MTU2 as the system timer. |
430 | 443 | ||