diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-07-24 00:26:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:13 -0400 |
commit | 9483a578df27fe7603605d565eefe039c1ba5845 (patch) | |
tree | e8f071d503b26d23d22556ec5d115cd67a45d47c /arch/arm | |
parent | d7ce20b2024d318b9ba88859226af1441270d99f (diff) |
add HAVE_CLK to Kconfig, for driver dependencies
Flag platforms as HAVE_CLK (or not) in Kconfig, based on whether they
support <linux/clk.h> calls, so that otherwise portable drivers which need
those calls can list that dependency.
Something like this is a prerequisite for merging the musb_hdrc driver,
currently used on platforms including Davinci, OMAP2430, OMAP3xx ... and
the discrete TUSB6010 chip, which doesn't have a natural platform
dependency. (Used with OMAP 2420 in current Nokia N8x0 tablets.)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Acked-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d048f6887d0b..6fb4f03369f2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -198,12 +198,14 @@ choice | |||
198 | config ARCH_AAEC2000 | 198 | config ARCH_AAEC2000 |
199 | bool "Agilent AAEC-2000 based" | 199 | bool "Agilent AAEC-2000 based" |
200 | select ARM_AMBA | 200 | select ARM_AMBA |
201 | select HAVE_CLK | ||
201 | help | 202 | help |
202 | This enables support for systems based on the Agilent AAEC-2000 | 203 | This enables support for systems based on the Agilent AAEC-2000 |
203 | 204 | ||
204 | config ARCH_INTEGRATOR | 205 | config ARCH_INTEGRATOR |
205 | bool "ARM Ltd. Integrator family" | 206 | bool "ARM Ltd. Integrator family" |
206 | select ARM_AMBA | 207 | select ARM_AMBA |
208 | select HAVE_CLK | ||
207 | select ICST525 | 209 | select ICST525 |
208 | help | 210 | help |
209 | Support for ARM's Integrator platform. | 211 | Support for ARM's Integrator platform. |
@@ -211,6 +213,7 @@ config ARCH_INTEGRATOR | |||
211 | config ARCH_REALVIEW | 213 | config ARCH_REALVIEW |
212 | bool "ARM Ltd. RealView family" | 214 | bool "ARM Ltd. RealView family" |
213 | select ARM_AMBA | 215 | select ARM_AMBA |
216 | select HAVE_CLK | ||
214 | select ICST307 | 217 | select ICST307 |
215 | select GENERIC_TIME | 218 | select GENERIC_TIME |
216 | select GENERIC_CLOCKEVENTS | 219 | select GENERIC_CLOCKEVENTS |
@@ -221,6 +224,7 @@ config ARCH_VERSATILE | |||
221 | bool "ARM Ltd. Versatile family" | 224 | bool "ARM Ltd. Versatile family" |
222 | select ARM_AMBA | 225 | select ARM_AMBA |
223 | select ARM_VIC | 226 | select ARM_VIC |
227 | select HAVE_CLK | ||
224 | select ICST307 | 228 | select ICST307 |
225 | select GENERIC_TIME | 229 | select GENERIC_TIME |
226 | select GENERIC_CLOCKEVENTS | 230 | select GENERIC_CLOCKEVENTS |
@@ -262,6 +266,8 @@ config ARCH_EP93XX | |||
262 | select ARM_AMBA | 266 | select ARM_AMBA |
263 | select ARM_VIC | 267 | select ARM_VIC |
264 | select GENERIC_GPIO | 268 | select GENERIC_GPIO |
269 | select HAVE_CLK | ||
270 | select HAVE_CLK | ||
265 | select HAVE_GPIO_LIB | 271 | select HAVE_GPIO_LIB |
266 | help | 272 | help |
267 | This enables support for the Cirrus EP93xx series of CPUs. | 273 | This enables support for the Cirrus EP93xx series of CPUs. |
@@ -381,6 +387,7 @@ config ARCH_NS9XXX | |||
381 | select GENERIC_GPIO | 387 | select GENERIC_GPIO |
382 | select GENERIC_TIME | 388 | select GENERIC_TIME |
383 | select GENERIC_CLOCKEVENTS | 389 | select GENERIC_CLOCKEVENTS |
390 | select HAVE_CLK | ||
384 | help | 391 | help |
385 | Say Y here if you intend to run this kernel on a NetSilicon NS9xxx | 392 | Say Y here if you intend to run this kernel on a NetSilicon NS9xxx |
386 | System. | 393 | System. |
@@ -430,6 +437,7 @@ config ARCH_ORION5X | |||
430 | 437 | ||
431 | config ARCH_PNX4008 | 438 | config ARCH_PNX4008 |
432 | bool "Philips Nexperia PNX4008 Mobile" | 439 | bool "Philips Nexperia PNX4008 Mobile" |
440 | select HAVE_CLK | ||
433 | help | 441 | help |
434 | This enables support for Philips PNX4008 mobile platform. | 442 | This enables support for Philips PNX4008 mobile platform. |
435 | 443 | ||
@@ -438,6 +446,7 @@ config ARCH_PXA | |||
438 | depends on MMU | 446 | depends on MMU |
439 | select ARCH_MTD_XIP | 447 | select ARCH_MTD_XIP |
440 | select GENERIC_GPIO | 448 | select GENERIC_GPIO |
449 | select HAVE_CLK | ||
441 | select HAVE_GPIO_LIB | 450 | select HAVE_GPIO_LIB |
442 | select GENERIC_TIME | 451 | select GENERIC_TIME |
443 | select GENERIC_CLOCKEVENTS | 452 | select GENERIC_CLOCKEVENTS |
@@ -468,6 +477,7 @@ config ARCH_SA1100 | |||
468 | select GENERIC_GPIO | 477 | select GENERIC_GPIO |
469 | select GENERIC_TIME | 478 | select GENERIC_TIME |
470 | select GENERIC_CLOCKEVENTS | 479 | select GENERIC_CLOCKEVENTS |
480 | select HAVE_CLK | ||
471 | select TICK_ONESHOT | 481 | select TICK_ONESHOT |
472 | select HAVE_GPIO_LIB | 482 | select HAVE_GPIO_LIB |
473 | help | 483 | help |
@@ -476,6 +486,7 @@ config ARCH_SA1100 | |||
476 | config ARCH_S3C2410 | 486 | config ARCH_S3C2410 |
477 | bool "Samsung S3C2410, S3C2412, S3C2413, S3C2440, S3C2442, S3C2443" | 487 | bool "Samsung S3C2410, S3C2412, S3C2413, S3C2440, S3C2442, S3C2443" |
478 | select GENERIC_GPIO | 488 | select GENERIC_GPIO |
489 | select HAVE_CLK | ||
479 | help | 490 | help |
480 | Samsung S3C2410X CPU based systems, such as the Simtec Electronics | 491 | Samsung S3C2410X CPU based systems, such as the Simtec Electronics |
481 | BAST (<http://www.simtec.co.uk/products/EB110ITX/>), the IPAQ 1940 or | 492 | BAST (<http://www.simtec.co.uk/products/EB110ITX/>), the IPAQ 1940 or |
@@ -503,12 +514,14 @@ config ARCH_DAVINCI | |||
503 | select GENERIC_TIME | 514 | select GENERIC_TIME |
504 | select GENERIC_CLOCKEVENTS | 515 | select GENERIC_CLOCKEVENTS |
505 | select GENERIC_GPIO | 516 | select GENERIC_GPIO |
517 | select HAVE_CLK | ||
506 | help | 518 | help |
507 | Support for TI's DaVinci platform. | 519 | Support for TI's DaVinci platform. |
508 | 520 | ||
509 | config ARCH_OMAP | 521 | config ARCH_OMAP |
510 | bool "TI OMAP" | 522 | bool "TI OMAP" |
511 | select GENERIC_GPIO | 523 | select GENERIC_GPIO |
524 | select HAVE_CLK | ||
512 | select HAVE_GPIO_LIB | 525 | select HAVE_GPIO_LIB |
513 | select GENERIC_TIME | 526 | select GENERIC_TIME |
514 | select GENERIC_CLOCKEVENTS | 527 | select GENERIC_CLOCKEVENTS |