]> git.samba.org - sfrench/cifs-2.6.git/commitdiff
clocksource/drivers/bcm_kona: Add the COMPILE_TEST option
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 2 Jun 2016 17:20:36 +0000 (19:20 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 28 Jun 2016 08:22:06 +0000 (10:22 +0200)
Change the Kconfig option logic to fullfil with the current approach.

A new Kconfig option is added, CONFIG_BCM_KONA_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
arch/arm/mach-bcm/Kconfig
drivers/clocksource/Kconfig
drivers/clocksource/Makefile

index 1284ce1d03e0f36a78a660c49b804dc80b559540..4f1709b318226aa9c65c920106ac310d055e30f7 100644 (file)
@@ -89,6 +89,7 @@ config ARCH_BCM_MOBILE
        select HAVE_ARM_ARCH_TIMER
        select PINCTRL
        select ARCH_BCM_MOBILE_SMP if SMP
+       select BCM_KONA_TIMER
        help
          This enables support for systems based on Broadcom mobile SoCs.
 
index 01ecd8833ed147094156f73346a7bc60804da1bc..a3cccf568a9fe9e7849c2f53f3caa754b449e896 100644 (file)
@@ -34,6 +34,13 @@ config BCM2835_TIMER
        help
          Enables the support for the BCM2835 timer driver.
 
+config BCM_KONA_TIMER
+       bool "BCM mobile timer driver" if COMPILE_TEST
+       depends on GENERIC_CLOCKEVENTS
+       select CLKSRC_MMIO
+       help
+         Enables the support for the BCM Kona mobile timer driver.
+
 config DIGICOLOR_TIMER
        bool "Digicolor timer driver" if COMPILE_TEST
        depends on GENERIC_CLOCKEVENTS
index 008d8a0da7524df8dae0eec0dafdae5e0f177465..df99c9279b6f9db5403f03cc2f2bb6bbe77854ab 100644 (file)
@@ -33,7 +33,7 @@ obj-$(CONFIG_MESON6_TIMER)    += meson6_timer.o
 obj-$(CONFIG_TEGRA_TIMER)      += tegra20_timer.o
 obj-$(CONFIG_VT8500_TIMER)     += vt8500_timer.o
 obj-$(CONFIG_ARCH_NSPIRE)      += zevio-timer.o
-obj-$(CONFIG_ARCH_BCM_MOBILE)  += bcm_kona_timer.o
+obj-$(CONFIG_BCM_KONA_TIMER)   += bcm_kona_timer.o
 obj-$(CONFIG_CADENCE_TTC_TIMER)        += cadence_ttc_timer.o
 obj-$(CONFIG_CLKSRC_EFM32)     += time-efm32.o
 obj-$(CONFIG_CLKSRC_STM32)     += timer-stm32.o