]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clocksource/drivers/prcmu: Fix Kconfig and add COMPILE_TEST option
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 1 Nov 2015 20:16:01 +0000 (21:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Dec 2015 08:41:50 +0000 (09:41 +0100)
Let the platform's Kconfig to select the clock instead of having a reverse
dependency from the driver to the platform options.

Add the COMPILE_TEST option for the compilation test coverage.

This change is debatable as the option itself in the Kconfig allows to
select the driver for the platform or not. This change will make the prcmu
timer always selected.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/Kconfig
drivers/clocksource/Kconfig

index c9ac19b24e5a5da7bbfbf7aa7afcaff34f067e96..5eacdd61e61c35ffa7edcaa64d05e4948abe05ab 100644 (file)
@@ -32,6 +32,7 @@ config UX500_SOC_DB8500
        select PINCTRL_AB8540
        select REGULATOR
        select REGULATOR_DB8500_PRCMU
+       select CLKSRC_DBX500_PRCMU
        select PM_GENERIC_DOMAINS if PM
 
 config MACH_MOP500
index 847b3b1b70f4925b4e223392cf7eaceb0895f67c..e3ba5b45f357bada353827f11fe9675c627a187c 100644 (file)
@@ -123,9 +123,7 @@ config CLKSRC_NOMADIK_MTU_SCHED_CLOCK
          Use the Multi Timer Unit as the sched_clock.
 
 config CLKSRC_DBX500_PRCMU
-       bool "Clocksource PRCMU Timer"
-       depends on UX500_SOC_DB8500
-       default y
+       bool "Clocksource PRCMU Timer" if COMPILE_TEST
        help
          Use the always on PRCMU Timer as clocksource