diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-06-03 09:11:21 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-06-28 04:22:16 -0400 |
commit | 568c0342e494fa4c05377c6c83c653afa350985a (patch) | |
tree | 8433e272779c94b2130877d9cd27b7a0567cd1bc | |
parent | c12547a00dfd3aaacfd5ce362ee4b9585c320054 (diff) |
clocksource/drivers/integrator-ap: Add the COMPILE_TEST option
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_INTEGRATOR_AP_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-integrator/Kconfig | 2 | ||||
-rw-r--r-- | drivers/clocksource/Kconfig | 7 | ||||
-rw-r--r-- | drivers/clocksource/Makefile | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-integrator/Kconfig b/arch/arm/mach-integrator/Kconfig index b2a85ba13f08..291262e5aeaf 100644 --- a/arch/arm/mach-integrator/Kconfig +++ b/arch/arm/mach-integrator/Kconfig | |||
@@ -20,7 +20,7 @@ if ARCH_INTEGRATOR | |||
20 | 20 | ||
21 | config ARCH_INTEGRATOR_AP | 21 | config ARCH_INTEGRATOR_AP |
22 | bool "Support Integrator/AP and Integrator/PP2 platforms" | 22 | bool "Support Integrator/AP and Integrator/PP2 platforms" |
23 | select CLKSRC_MMIO | 23 | select INTEGRATOR_AP_TIMER |
24 | select MIGHT_HAVE_PCI | 24 | select MIGHT_HAVE_PCI |
25 | select SERIAL_AMBA_PL010 if TTY | 25 | select SERIAL_AMBA_PL010 if TTY |
26 | select SERIAL_AMBA_PL010_CONSOLE if TTY | 26 | select SERIAL_AMBA_PL010_CONSOLE if TTY |
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 7e5709a1e4f0..8055b37347ff 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig | |||
@@ -214,6 +214,13 @@ config KEYSTONE_TIMER | |||
214 | help | 214 | help |
215 | Enables support for the Keystone timer. | 215 | Enables support for the Keystone timer. |
216 | 216 | ||
217 | config INTEGRATOR_AP_TIMER | ||
218 | bool "Integrator-ap timer driver" if COMPILE_TEST | ||
219 | depends on GENERIC_CLOCKEVENTS | ||
220 | select CLKSRC_MMIO | ||
221 | help | ||
222 | Enables support for the Integrator-ap timer. | ||
223 | |||
217 | config CLKSRC_DBX500_PRCMU_SCHED_CLOCK | 224 | config CLKSRC_DBX500_PRCMU_SCHED_CLOCK |
218 | bool "Clocksource PRCMU Timer sched_clock" | 225 | bool "Clocksource PRCMU Timer sched_clock" |
219 | depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK) | 226 | depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK) |
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index a8184319c41f..fd9d6df0bbc0 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile | |||
@@ -57,7 +57,7 @@ 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_KEYSTONE_TIMER) += timer-keystone.o | 59 | obj-$(CONFIG_KEYSTONE_TIMER) += timer-keystone.o |
60 | obj-$(CONFIG_ARCH_INTEGRATOR_AP) += timer-integrator-ap.o | 60 | obj-$(CONFIG_INTEGRATOR_AP_TIMER) += 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 |
63 | obj-$(CONFIG_CLKSRC_TANGO_XTAL) += tango_xtal.o | 63 | obj-$(CONFIG_CLKSRC_TANGO_XTAL) += tango_xtal.o |