diff options
author | Ben Dooks <ben@simtec.co.uk> | 2009-07-30 18:23:24 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-07-30 18:22:52 -0400 |
commit | 89c52ed4687faca6bf0eabf6d46eaee4a14376b3 (patch) | |
tree | 25be4ed15cbabc424c78ff69d082a7da385addba | |
parent | d6fc87d3f7d236892e4d0003a07cd2b5171e5e27 (diff) |
ARM: Add ARCH_HAS_CPUFREQ for presence of CPUFREQ driver
Add ARCH_HAS_CPUFREQ so that each machine config can select
it if they have CPUFREQ driver support. This means that the
CPUFREQ specific area does not need the if statement updating
each time a new machine is added.
Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
-rw-r--r-- | arch/arm/Kconfig | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index aef63c8e3d2d..7dbaabd8df3f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -126,6 +126,13 @@ config ARCH_HAS_ILOG2_U32 | |||
126 | config ARCH_HAS_ILOG2_U64 | 126 | config ARCH_HAS_ILOG2_U64 |
127 | bool | 127 | bool |
128 | 128 | ||
129 | config ARCH_HAS_CPUFREQ | ||
130 | bool | ||
131 | help | ||
132 | Internal node to signify that the ARCH has CPUFREQ support | ||
133 | and that the relevant menu configurations are displayed for | ||
134 | it. | ||
135 | |||
129 | config GENERIC_HWEIGHT | 136 | config GENERIC_HWEIGHT |
130 | bool | 137 | bool |
131 | default y | 138 | default y |
@@ -203,6 +210,7 @@ config ARCH_AAEC2000 | |||
203 | config ARCH_INTEGRATOR | 210 | config ARCH_INTEGRATOR |
204 | bool "ARM Ltd. Integrator family" | 211 | bool "ARM Ltd. Integrator family" |
205 | select ARM_AMBA | 212 | select ARM_AMBA |
213 | select ARCH_HAS_CPUFREQ | ||
206 | select HAVE_CLK | 214 | select HAVE_CLK |
207 | select COMMON_CLKDEV | 215 | select COMMON_CLKDEV |
208 | select ICST525 | 216 | select ICST525 |
@@ -509,6 +517,7 @@ config ARCH_PXA | |||
509 | bool "PXA2xx/PXA3xx-based" | 517 | bool "PXA2xx/PXA3xx-based" |
510 | depends on MMU | 518 | depends on MMU |
511 | select ARCH_MTD_XIP | 519 | select ARCH_MTD_XIP |
520 | select ARCH_HAS_CPUFREQ | ||
512 | select GENERIC_GPIO | 521 | select GENERIC_GPIO |
513 | select HAVE_CLK | 522 | select HAVE_CLK |
514 | select COMMON_CLKDEV | 523 | select COMMON_CLKDEV |
@@ -551,6 +560,7 @@ config ARCH_SA1100 | |||
551 | select ISA | 560 | select ISA |
552 | select ARCH_SPARSEMEM_ENABLE | 561 | select ARCH_SPARSEMEM_ENABLE |
553 | select ARCH_MTD_XIP | 562 | select ARCH_MTD_XIP |
563 | select ARCH_HAS_CPUFREQ | ||
554 | select GENERIC_GPIO | 564 | select GENERIC_GPIO |
555 | select GENERIC_TIME | 565 | select GENERIC_TIME |
556 | select GENERIC_CLOCKEVENTS | 566 | select GENERIC_CLOCKEVENTS |
@@ -573,6 +583,7 @@ config ARCH_S3C64XX | |||
573 | bool "Samsung S3C64XX" | 583 | bool "Samsung S3C64XX" |
574 | select GENERIC_GPIO | 584 | select GENERIC_GPIO |
575 | select HAVE_CLK | 585 | select HAVE_CLK |
586 | select ARCH_HAS_CPUFREQ | ||
576 | help | 587 | help |
577 | Samsung S3C64XX series based systems | 588 | Samsung S3C64XX series based systems |
578 | 589 | ||
@@ -632,6 +643,7 @@ config ARCH_OMAP | |||
632 | select GENERIC_GPIO | 643 | select GENERIC_GPIO |
633 | select HAVE_CLK | 644 | select HAVE_CLK |
634 | select ARCH_REQUIRE_GPIOLIB | 645 | select ARCH_REQUIRE_GPIOLIB |
646 | select ARCH_HAS_CPUFREQ | ||
635 | select GENERIC_TIME | 647 | select GENERIC_TIME |
636 | select GENERIC_CLOCKEVENTS | 648 | select GENERIC_CLOCKEVENTS |
637 | help | 649 | help |
@@ -1241,7 +1253,7 @@ endmenu | |||
1241 | 1253 | ||
1242 | menu "CPU Power Management" | 1254 | menu "CPU Power Management" |
1243 | 1255 | ||
1244 | if (ARCH_SA1100 || ARCH_INTEGRATOR || ARCH_OMAP || ARCH_PXA || ARCH_S3C64XX) | 1256 | if ARCH_HAS_CPUFREQ |
1245 | 1257 | ||
1246 | source "drivers/cpufreq/Kconfig" | 1258 | source "drivers/cpufreq/Kconfig" |
1247 | 1259 | ||