Skip to content

Commit 7c1f282

Browse files
committed
clocksource/drivers/bcm_kona: Add the COMPILE_TEST option
Change the Kconfig option logic to fullfil with the current approach. A new Kconfig option is added, CONFIG_BCM_KONA_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>
1 parent 8c0e63c commit 7c1f282

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

arch/arm/mach-bcm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ config ARCH_BCM_MOBILE
8989
select HAVE_ARM_ARCH_TIMER
9090
select PINCTRL
9191
select ARCH_BCM_MOBILE_SMP if SMP
92+
select BCM_KONA_TIMER
9293
help
9394
This enables support for systems based on Broadcom mobile SoCs.
9495

drivers/clocksource/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ config BCM2835_TIMER
3434
help
3535
Enables the support for the BCM2835 timer driver.
3636

37+
config BCM_KONA_TIMER
38+
bool "BCM mobile timer driver" if COMPILE_TEST
39+
depends on GENERIC_CLOCKEVENTS
40+
select CLKSRC_MMIO
41+
help
42+
Enables the support for the BCM Kona mobile timer driver.
43+
3744
config DIGICOLOR_TIMER
3845
bool "Digicolor timer driver" if COMPILE_TEST
3946
depends on GENERIC_CLOCKEVENTS

drivers/clocksource/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ obj-$(CONFIG_MESON6_TIMER) += meson6_timer.o
3333
obj-$(CONFIG_TEGRA_TIMER) += tegra20_timer.o
3434
obj-$(CONFIG_VT8500_TIMER) += vt8500_timer.o
3535
obj-$(CONFIG_ARCH_NSPIRE) += zevio-timer.o
36-
obj-$(CONFIG_ARCH_BCM_MOBILE) += bcm_kona_timer.o
36+
obj-$(CONFIG_BCM_KONA_TIMER) += bcm_kona_timer.o
3737
obj-$(CONFIG_CADENCE_TTC_TIMER) += cadence_ttc_timer.o
3838
obj-$(CONFIG_CLKSRC_EFM32) += time-efm32.o
3939
obj-$(CONFIG_CLKSRC_STM32) += timer-stm32.o

0 commit comments

Comments
 (0)