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

clocksource/drivers/bcm2835: Add the COMPILE_TEST option

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

A new Kconfig option is added, CONFIG_BCM2835_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-bcm/Kconfig
··· 143 143 select ARM_TIMER_SP804 144 144 select HAVE_ARM_ARCH_TIMER if ARCH_MULTI_V7 145 145 select CLKSRC_OF 146 + select BCM2835_TIMER 146 147 select PINCTRL 147 148 select PINCTRL_BCM2835 148 149 help
+7
drivers/clocksource/Kconfig
··· 27 27 config CLKSRC_MMIO 28 28 bool 29 29 30 + config BCM2835_TIMER 31 + bool "BCM2835 timer driver" if COMPILE_TEST 32 + depends on GENERIC_CLOCKEVENTS 33 + select CLKSRC_MMIO 34 + help 35 + Enables the support for the BCM2835 timer driver. 36 + 30 37 config DIGICOLOR_TIMER 31 38 bool "Digicolor timer driver" if COMPILE_TEST 32 39 depends on GENERIC_CLOCKEVENTS
+1 -1
drivers/clocksource/Makefile
··· 19 19 obj-$(CONFIG_CLKSRC_DBX500_PRCMU) += clksrc-dbx500-prcmu.o 20 20 obj-$(CONFIG_ARMADA_370_XP_TIMER) += time-armada-370-xp.o 21 21 obj-$(CONFIG_ORION_TIMER) += time-orion.o 22 - obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o 22 + obj-$(CONFIG_BCM2835_TIMER) += bcm2835_timer.o 23 23 obj-$(CONFIG_ARCH_CLPS711X) += clps711x-timer.o 24 24 obj-$(CONFIG_ARCH_ATLAS7) += timer-atlas7.o 25 25 obj-$(CONFIG_ARCH_MOXART) += moxart_timer.o