diff options
author | Jean-Christop PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-11-17 04:04:33 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-26 05:51:04 -0500 |
commit | 6d803ba736abb5e122dede70a4720e4843dd6df4 (patch) | |
tree | 6d01199e41ede3ae3931664f7bd10a68dbcc42e6 /arch/arm/Kconfig | |
parent | 64d2dc384e41e2b7acead6804593ddaaf8aad8e1 (diff) |
ARM: 6483/1: arm & sh: factorised duplicated clkdev.c
factorise some generic infrastructure to assist looking up struct clks
for the ARM & SH architecture.
as the code is identical at 99%
put the arch specific code for allocation as example in asm/clkdev.h
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r-- | arch/arm/Kconfig | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a19a5266d5fc..0e51342b3c02 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -221,7 +221,7 @@ config ARCH_INTEGRATOR | |||
221 | bool "ARM Ltd. Integrator family" | 221 | bool "ARM Ltd. Integrator family" |
222 | select ARM_AMBA | 222 | select ARM_AMBA |
223 | select ARCH_HAS_CPUFREQ | 223 | select ARCH_HAS_CPUFREQ |
224 | select COMMON_CLKDEV | 224 | select CLKDEV_LOOKUP |
225 | select ICST | 225 | select ICST |
226 | select GENERIC_CLOCKEVENTS | 226 | select GENERIC_CLOCKEVENTS |
227 | select PLAT_VERSATILE | 227 | select PLAT_VERSATILE |
@@ -231,7 +231,7 @@ config ARCH_INTEGRATOR | |||
231 | config ARCH_REALVIEW | 231 | config ARCH_REALVIEW |
232 | bool "ARM Ltd. RealView family" | 232 | bool "ARM Ltd. RealView family" |
233 | select ARM_AMBA | 233 | select ARM_AMBA |
234 | select COMMON_CLKDEV | 234 | select CLKDEV_LOOKUP |
235 | select ICST | 235 | select ICST |
236 | select GENERIC_CLOCKEVENTS | 236 | select GENERIC_CLOCKEVENTS |
237 | select ARCH_WANT_OPTIONAL_GPIOLIB | 237 | select ARCH_WANT_OPTIONAL_GPIOLIB |
@@ -245,7 +245,7 @@ config ARCH_VERSATILE | |||
245 | bool "ARM Ltd. Versatile family" | 245 | bool "ARM Ltd. Versatile family" |
246 | select ARM_AMBA | 246 | select ARM_AMBA |
247 | select ARM_VIC | 247 | select ARM_VIC |
248 | select COMMON_CLKDEV | 248 | select CLKDEV_LOOKUP |
249 | select ICST | 249 | select ICST |
250 | select GENERIC_CLOCKEVENTS | 250 | select GENERIC_CLOCKEVENTS |
251 | select ARCH_WANT_OPTIONAL_GPIOLIB | 251 | select ARCH_WANT_OPTIONAL_GPIOLIB |
@@ -259,7 +259,7 @@ config ARCH_VEXPRESS | |||
259 | select ARCH_WANT_OPTIONAL_GPIOLIB | 259 | select ARCH_WANT_OPTIONAL_GPIOLIB |
260 | select ARM_AMBA | 260 | select ARM_AMBA |
261 | select ARM_TIMER_SP804 | 261 | select ARM_TIMER_SP804 |
262 | select COMMON_CLKDEV | 262 | select CLKDEV_LOOKUP |
263 | select GENERIC_CLOCKEVENTS | 263 | select GENERIC_CLOCKEVENTS |
264 | select HAVE_CLK | 264 | select HAVE_CLK |
265 | select ICST | 265 | select ICST |
@@ -280,7 +280,7 @@ config ARCH_BCMRING | |||
280 | depends on MMU | 280 | depends on MMU |
281 | select CPU_V6 | 281 | select CPU_V6 |
282 | select ARM_AMBA | 282 | select ARM_AMBA |
283 | select COMMON_CLKDEV | 283 | select CLKDEV_LOOKUP |
284 | select GENERIC_CLOCKEVENTS | 284 | select GENERIC_CLOCKEVENTS |
285 | select ARCH_WANT_OPTIONAL_GPIOLIB | 285 | select ARCH_WANT_OPTIONAL_GPIOLIB |
286 | help | 286 | help |
@@ -327,7 +327,7 @@ config ARCH_EP93XX | |||
327 | select CPU_ARM920T | 327 | select CPU_ARM920T |
328 | select ARM_AMBA | 328 | select ARM_AMBA |
329 | select ARM_VIC | 329 | select ARM_VIC |
330 | select COMMON_CLKDEV | 330 | select CLKDEV_LOOKUP |
331 | select ARCH_REQUIRE_GPIOLIB | 331 | select ARCH_REQUIRE_GPIOLIB |
332 | select ARCH_HAS_HOLES_MEMORYMODEL | 332 | select ARCH_HAS_HOLES_MEMORYMODEL |
333 | select ARCH_USES_GETTIMEOFFSET | 333 | select ARCH_USES_GETTIMEOFFSET |
@@ -347,14 +347,14 @@ config ARCH_MXC | |||
347 | bool "Freescale MXC/iMX-based" | 347 | bool "Freescale MXC/iMX-based" |
348 | select GENERIC_CLOCKEVENTS | 348 | select GENERIC_CLOCKEVENTS |
349 | select ARCH_REQUIRE_GPIOLIB | 349 | select ARCH_REQUIRE_GPIOLIB |
350 | select COMMON_CLKDEV | 350 | select CLKDEV_LOOKUP |
351 | help | 351 | help |
352 | Support for Freescale MXC/iMX-based family of processors | 352 | Support for Freescale MXC/iMX-based family of processors |
353 | 353 | ||
354 | config ARCH_STMP3XXX | 354 | config ARCH_STMP3XXX |
355 | bool "Freescale STMP3xxx" | 355 | bool "Freescale STMP3xxx" |
356 | select CPU_ARM926T | 356 | select CPU_ARM926T |
357 | select COMMON_CLKDEV | 357 | select CLKDEV_LOOKUP |
358 | select ARCH_REQUIRE_GPIOLIB | 358 | select ARCH_REQUIRE_GPIOLIB |
359 | select GENERIC_CLOCKEVENTS | 359 | select GENERIC_CLOCKEVENTS |
360 | select USB_ARCH_HAS_EHCI | 360 | select USB_ARCH_HAS_EHCI |
@@ -472,7 +472,7 @@ config ARCH_LPC32XX | |||
472 | select HAVE_IDE | 472 | select HAVE_IDE |
473 | select ARM_AMBA | 473 | select ARM_AMBA |
474 | select USB_ARCH_HAS_OHCI | 474 | select USB_ARCH_HAS_OHCI |
475 | select COMMON_CLKDEV | 475 | select CLKDEV_LOOKUP |
476 | select GENERIC_TIME | 476 | select GENERIC_TIME |
477 | select GENERIC_CLOCKEVENTS | 477 | select GENERIC_CLOCKEVENTS |
478 | help | 478 | help |
@@ -506,7 +506,7 @@ config ARCH_MMP | |||
506 | bool "Marvell PXA168/910/MMP2" | 506 | bool "Marvell PXA168/910/MMP2" |
507 | depends on MMU | 507 | depends on MMU |
508 | select ARCH_REQUIRE_GPIOLIB | 508 | select ARCH_REQUIRE_GPIOLIB |
509 | select COMMON_CLKDEV | 509 | select CLKDEV_LOOKUP |
510 | select GENERIC_CLOCKEVENTS | 510 | select GENERIC_CLOCKEVENTS |
511 | select TICK_ONESHOT | 511 | select TICK_ONESHOT |
512 | select PLAT_PXA | 512 | select PLAT_PXA |
@@ -539,7 +539,7 @@ config ARCH_W90X900 | |||
539 | bool "Nuvoton W90X900 CPU" | 539 | bool "Nuvoton W90X900 CPU" |
540 | select CPU_ARM926T | 540 | select CPU_ARM926T |
541 | select ARCH_REQUIRE_GPIOLIB | 541 | select ARCH_REQUIRE_GPIOLIB |
542 | select COMMON_CLKDEV | 542 | select CLKDEV_LOOKUP |
543 | select GENERIC_CLOCKEVENTS | 543 | select GENERIC_CLOCKEVENTS |
544 | help | 544 | help |
545 | Support for Nuvoton (Winbond logic dept.) ARM9 processor, | 545 | Support for Nuvoton (Winbond logic dept.) ARM9 processor, |
@@ -553,7 +553,7 @@ config ARCH_W90X900 | |||
553 | config ARCH_NUC93X | 553 | config ARCH_NUC93X |
554 | bool "Nuvoton NUC93X CPU" | 554 | bool "Nuvoton NUC93X CPU" |
555 | select CPU_ARM926T | 555 | select CPU_ARM926T |
556 | select COMMON_CLKDEV | 556 | select CLKDEV_LOOKUP |
557 | help | 557 | help |
558 | Support for Nuvoton (Winbond logic dept.) NUC93X MCU,The NUC93X is a | 558 | Support for Nuvoton (Winbond logic dept.) NUC93X MCU,The NUC93X is a |
559 | low-power and high performance MPEG-4/JPEG multimedia controller chip. | 559 | low-power and high performance MPEG-4/JPEG multimedia controller chip. |
@@ -564,7 +564,7 @@ config ARCH_TEGRA | |||
564 | select GENERIC_CLOCKEVENTS | 564 | select GENERIC_CLOCKEVENTS |
565 | select GENERIC_GPIO | 565 | select GENERIC_GPIO |
566 | select HAVE_CLK | 566 | select HAVE_CLK |
567 | select COMMON_CLKDEV | 567 | select CLKDEV_LOOKUP |
568 | select ARCH_HAS_BARRIERS if CACHE_L2X0 | 568 | select ARCH_HAS_BARRIERS if CACHE_L2X0 |
569 | select ARCH_HAS_CPUFREQ | 569 | select ARCH_HAS_CPUFREQ |
570 | help | 570 | help |
@@ -574,7 +574,7 @@ config ARCH_TEGRA | |||
574 | config ARCH_PNX4008 | 574 | config ARCH_PNX4008 |
575 | bool "Philips Nexperia PNX4008 Mobile" | 575 | bool "Philips Nexperia PNX4008 Mobile" |
576 | select CPU_ARM926T | 576 | select CPU_ARM926T |
577 | select COMMON_CLKDEV | 577 | select CLKDEV_LOOKUP |
578 | select ARCH_USES_GETTIMEOFFSET | 578 | select ARCH_USES_GETTIMEOFFSET |
579 | help | 579 | help |
580 | This enables support for Philips PNX4008 mobile platform. | 580 | This enables support for Philips PNX4008 mobile platform. |
@@ -584,7 +584,7 @@ config ARCH_PXA | |||
584 | depends on MMU | 584 | depends on MMU |
585 | select ARCH_MTD_XIP | 585 | select ARCH_MTD_XIP |
586 | select ARCH_HAS_CPUFREQ | 586 | select ARCH_HAS_CPUFREQ |
587 | select COMMON_CLKDEV | 587 | select CLKDEV_LOOKUP |
588 | select ARCH_REQUIRE_GPIOLIB | 588 | select ARCH_REQUIRE_GPIOLIB |
589 | select GENERIC_CLOCKEVENTS | 589 | select GENERIC_CLOCKEVENTS |
590 | select TICK_ONESHOT | 590 | select TICK_ONESHOT |
@@ -761,7 +761,7 @@ config ARCH_TCC_926 | |||
761 | bool "Telechips TCC ARM926-based systems" | 761 | bool "Telechips TCC ARM926-based systems" |
762 | select CPU_ARM926T | 762 | select CPU_ARM926T |
763 | select HAVE_CLK | 763 | select HAVE_CLK |
764 | select COMMON_CLKDEV | 764 | select CLKDEV_LOOKUP |
765 | select GENERIC_CLOCKEVENTS | 765 | select GENERIC_CLOCKEVENTS |
766 | help | 766 | help |
767 | Support for Telechips TCC ARM926-based systems. | 767 | Support for Telechips TCC ARM926-based systems. |
@@ -785,7 +785,7 @@ config ARCH_U300 | |||
785 | select ARM_AMBA | 785 | select ARM_AMBA |
786 | select ARM_VIC | 786 | select ARM_VIC |
787 | select GENERIC_CLOCKEVENTS | 787 | select GENERIC_CLOCKEVENTS |
788 | select COMMON_CLKDEV | 788 | select CLKDEV_LOOKUP |
789 | select GENERIC_GPIO | 789 | select GENERIC_GPIO |
790 | help | 790 | help |
791 | Support for ST-Ericsson U300 series mobile platforms. | 791 | Support for ST-Ericsson U300 series mobile platforms. |
@@ -795,7 +795,7 @@ config ARCH_U8500 | |||
795 | select CPU_V7 | 795 | select CPU_V7 |
796 | select ARM_AMBA | 796 | select ARM_AMBA |
797 | select GENERIC_CLOCKEVENTS | 797 | select GENERIC_CLOCKEVENTS |
798 | select COMMON_CLKDEV | 798 | select CLKDEV_LOOKUP |
799 | select ARCH_REQUIRE_GPIOLIB | 799 | select ARCH_REQUIRE_GPIOLIB |
800 | help | 800 | help |
801 | Support for ST-Ericsson's Ux500 architecture | 801 | Support for ST-Ericsson's Ux500 architecture |
@@ -805,7 +805,7 @@ config ARCH_NOMADIK | |||
805 | select ARM_AMBA | 805 | select ARM_AMBA |
806 | select ARM_VIC | 806 | select ARM_VIC |
807 | select CPU_ARM926T | 807 | select CPU_ARM926T |
808 | select COMMON_CLKDEV | 808 | select CLKDEV_LOOKUP |
809 | select GENERIC_CLOCKEVENTS | 809 | select GENERIC_CLOCKEVENTS |
810 | select ARCH_REQUIRE_GPIOLIB | 810 | select ARCH_REQUIRE_GPIOLIB |
811 | help | 811 | help |
@@ -817,7 +817,7 @@ config ARCH_DAVINCI | |||
817 | select ARCH_REQUIRE_GPIOLIB | 817 | select ARCH_REQUIRE_GPIOLIB |
818 | select ZONE_DMA | 818 | select ZONE_DMA |
819 | select HAVE_IDE | 819 | select HAVE_IDE |
820 | select COMMON_CLKDEV | 820 | select CLKDEV_LOOKUP |
821 | select GENERIC_ALLOCATOR | 821 | select GENERIC_ALLOCATOR |
822 | select ARCH_HAS_HOLES_MEMORYMODEL | 822 | select ARCH_HAS_HOLES_MEMORYMODEL |
823 | help | 823 | help |
@@ -837,7 +837,7 @@ config PLAT_SPEAR | |||
837 | bool "ST SPEAr" | 837 | bool "ST SPEAr" |
838 | select ARM_AMBA | 838 | select ARM_AMBA |
839 | select ARCH_REQUIRE_GPIOLIB | 839 | select ARCH_REQUIRE_GPIOLIB |
840 | select COMMON_CLKDEV | 840 | select CLKDEV_LOOKUP |
841 | select GENERIC_CLOCKEVENTS | 841 | select GENERIC_CLOCKEVENTS |
842 | select HAVE_CLK | 842 | select HAVE_CLK |
843 | help | 843 | help |