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

clocksource/drivers/nspire: Add the COMPILE_TEST option

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

A new Kconfig option is added, CONFIG_NSPIRE_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-nspire/Kconfig
··· 7 7 select ARM_AMBA 8 8 select ARM_VIC 9 9 select ARM_TIMER_SP804 10 + select NSPIRE_TIMER 10 11 help 11 12 This enables support for systems using the TI-NSPIRE CPU
+7
drivers/clocksource/Kconfig
··· 199 199 help 200 200 Enables support for the U300 timer. 201 201 202 + config NSPIRE_TIMER 203 + bool "NSpire timer driver" if COMPILE_TEST 204 + depends on GENERIC_CLOCKEVENTS 205 + select CLKSRC_MMIO 206 + help 207 + Enables support for the Nspire timer. 208 + 202 209 config CLKSRC_DBX500_PRCMU_SCHED_CLOCK 203 210 bool "Clocksource PRCMU Timer sched_clock" 204 211 depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
+1 -1
drivers/clocksource/Makefile
··· 32 32 obj-$(CONFIG_MESON6_TIMER) += meson6_timer.o 33 33 obj-$(CONFIG_TEGRA_TIMER) += tegra20_timer.o 34 34 obj-$(CONFIG_VT8500_TIMER) += vt8500_timer.o 35 - obj-$(CONFIG_ARCH_NSPIRE) += zevio-timer.o 35 + obj-$(CONFIG_NSPIRE_TIMER) += zevio-timer.o 36 36 obj-$(CONFIG_BCM_KONA_TIMER) += bcm_kona_timer.o 37 37 obj-$(CONFIG_CADENCE_TTC_TIMER) += cadence_ttc_timer.o 38 38 obj-$(CONFIG_CLKSRC_EFM32) += time-efm32.o