diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-06-03 09:05:05 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-06-28 04:22:15 -0400 |
commit | c12547a00dfd3aaacfd5ce362ee4b9585c320054 (patch) | |
tree | 3934efc7eaa4ad01c031622ea5edfaebf1d97d71 | |
parent | d683b9dcc8a8d743f7b660ff3b77ccfbe652e4b9 (diff) |
clocksource/drivers/keystone: Add the COMPILE_TEST option
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_KEYSTONE_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>
-rw-r--r-- | arch/arm/mach-keystone/Kconfig | 2 | ||||
-rw-r--r-- | drivers/clocksource/Kconfig | 8 | ||||
-rw-r--r-- | drivers/clocksource/Makefile | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/mach-keystone/Kconfig b/arch/arm/mach-keystone/Kconfig index ea955f6db8b7..bac577badc7e 100644 --- a/arch/arm/mach-keystone/Kconfig +++ b/arch/arm/mach-keystone/Kconfig | |||
@@ -4,7 +4,7 @@ config ARCH_KEYSTONE | |||
4 | depends on ARM_PATCH_PHYS_VIRT | 4 | depends on ARM_PATCH_PHYS_VIRT |
5 | select ARM_GIC | 5 | select ARM_GIC |
6 | select HAVE_ARM_ARCH_TIMER | 6 | select HAVE_ARM_ARCH_TIMER |
7 | select CLKSRC_MMIO | 7 | select KEYSTONE_TIMER |
8 | select ARM_ERRATA_798181 if SMP | 8 | select ARM_ERRATA_798181 if SMP |
9 | select COMMON_CLK_KEYSTONE | 9 | select COMMON_CLK_KEYSTONE |
10 | select ARCH_SUPPORTS_BIG_ENDIAN | 10 | select ARCH_SUPPORTS_BIG_ENDIAN |
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 0cfc4bf1c8ac..7e5709a1e4f0 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig | |||
@@ -206,6 +206,14 @@ config NSPIRE_TIMER | |||
206 | help | 206 | help |
207 | Enables support for the Nspire timer. | 207 | Enables support for the Nspire timer. |
208 | 208 | ||
209 | config KEYSTONE_TIMER | ||
210 | bool "Keystone timer driver" if COMPILE_TEST | ||
211 | depends on GENERIC_CLOCKEVENTS | ||
212 | depends on ARM || ARM64 | ||
213 | select CLKSRC_MMIO | ||
214 | help | ||
215 | Enables support for the Keystone timer. | ||
216 | |||
209 | config CLKSRC_DBX500_PRCMU_SCHED_CLOCK | 217 | config CLKSRC_DBX500_PRCMU_SCHED_CLOCK |
210 | bool "Clocksource PRCMU Timer sched_clock" | 218 | bool "Clocksource PRCMU Timer sched_clock" |
211 | depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK) | 219 | depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK) |
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index d888c986cc43..a8184319c41f 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile | |||
@@ -56,7 +56,7 @@ obj-$(CONFIG_ARMV7M_SYSTICK) += armv7m_systick.o | |||
56 | obj-$(CONFIG_ARM_TIMER_SP804) += timer-sp804.o | 56 | obj-$(CONFIG_ARM_TIMER_SP804) += timer-sp804.o |
57 | obj-$(CONFIG_CLKSRC_METAG_GENERIC) += metag_generic.o | 57 | obj-$(CONFIG_CLKSRC_METAG_GENERIC) += metag_generic.o |
58 | obj-$(CONFIG_ARCH_HAS_TICK_BROADCAST) += dummy_timer.o | 58 | obj-$(CONFIG_ARCH_HAS_TICK_BROADCAST) += dummy_timer.o |
59 | obj-$(CONFIG_ARCH_KEYSTONE) += timer-keystone.o | 59 | obj-$(CONFIG_KEYSTONE_TIMER) += timer-keystone.o |
60 | obj-$(CONFIG_ARCH_INTEGRATOR_AP) += timer-integrator-ap.o | 60 | obj-$(CONFIG_ARCH_INTEGRATOR_AP) += timer-integrator-ap.o |
61 | obj-$(CONFIG_CLKSRC_VERSATILE) += versatile.o | 61 | obj-$(CONFIG_CLKSRC_VERSATILE) += versatile.o |
62 | obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o | 62 | obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o |