Skip to content

Commit bfed0ed

Browse files
robherringDaniel Lezcano
authored andcommitted
clocksource/drivers/versatile: Allow CONFIG_CLKSRC_VERSATILE to be disabled
The timer-versatile driver provides a sched_clock for certain Arm Ltd. reference platforms. Specifically, it is used on Versatile and 32-bit VExpress. It is not needed for those platforms with an arch timer (all the 64-bit ones) yet CONFIG_MFD_VEXPRESS_SYSREG does still need to be enabled. In that case, the timer-versatile can only be disabled when COMPILE_TEST is enabled which is not desirable. Let's use the sub-arch kconfig symbols instead. Realview platforms don't have the sysregs that this driver uses so correct the help text. Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200417212045.16917-1-robh@kernel.org
1 parent 25259f7 commit bfed0ed

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/clocksource/Kconfig‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,11 @@ config CLKSRC_VERSATILE
562562
bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
563563
depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
564564
select TIMER_OF
565-
default y if MFD_VEXPRESS_SYSREG
565+
default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM
566566
help
567567
This option enables clock source based on free running
568568
counter available in the "System Registers" block of
569-
ARM Versatile, RealView and Versatile Express reference
570-
platforms.
569+
ARM Versatile and Versatile Express reference platforms.
571570

572571
config CLKSRC_MIPS_GIC
573572
bool

0 commit comments

Comments
 (0)