Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource/drivers/prima2: Add the COMPILE_TEST option

Change the Kconfig option logic to fullfil with the current approach.

A new Kconfig option is added, CONFIG_PRIMA2_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>

+9 -1
+1
arch/arm/mach-prima2/Kconfig
··· 39 39 default y 40 40 select SIRF_IRQ 41 41 select ZONE_DMA 42 + select PRIMA2_TIMER 42 43 help 43 44 Support for CSR SiRFSoC ARM Cortex A9 Platform 44 45
+7
drivers/clocksource/Kconfig
··· 184 184 help 185 185 Enables support for the Mxs timer. 186 186 187 + config PRIMA2_TIMER 188 + bool "Prima2 timer driver" if COMPILE_TEST 189 + depends on GENERIC_CLOCKEVENTS 190 + select CLKSRC_MMIO 191 + help 192 + Enables support for the Prima2 timer. 193 + 187 194 config CLKSRC_DBX500_PRCMU_SCHED_CLOCK 188 195 bool "Clocksource PRCMU Timer sched_clock" 189 196 depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
+1 -1
drivers/clocksource/Makefile
··· 25 25 obj-$(CONFIG_MOXART_TIMER) += moxart_timer.o 26 26 obj-$(CONFIG_MXS_TIMER) += mxs_timer.o 27 27 obj-$(CONFIG_CLKSRC_PXA) += pxa_timer.o 28 - obj-$(CONFIG_ARCH_PRIMA2) += timer-prima2.o 28 + obj-$(CONFIG_PRIMA2_TIMER) += timer-prima2.o 29 29 obj-$(CONFIG_ARCH_U300) += timer-u300.o 30 30 obj-$(CONFIG_SUN4I_TIMER) += sun4i_timer.o 31 31 obj-$(CONFIG_SUN5I_HSTIMER) += timer-sun5i.o