Skip to content

Commit 0309f71

Browse files
brooniedlezcano
authored andcommitted
clocksource/drivers:sp804: Make user selectable
The sp804 is currently only user selectable if COMPILE_TEST, this was done by commit dfc82fa ("clocksource/drivers/sp804: Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804") in order to avoid it being spuriously offered on platforms that won't have the hardware since it's generally only seen on Arm based platforms. This config is overly restrictive, while platforms that rely on the SP804 do select it in their Kconfig there are others such as the Arm fast models which have a SP804 available but currently unused by Linux. Relax the dependency to allow it to be user selectable on arm and arm64 to avoid surprises and in case someone comes up with a use for extra timer hardware. Fixes: dfc82fa ("clocksource/drivers/sp804: Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804") Reported-by: Ross Burton <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 1d58f7f commit 0309f71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clocksource/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ config ARM_GT_INITIAL_PRESCALER_VAL
400400
This affects CPU_FREQ max delta from the initial frequency.
401401

402402
config ARM_TIMER_SP804
403-
bool "Support for Dual Timer SP804 module" if COMPILE_TEST
403+
bool "Support for Dual Timer SP804 module"
404+
depends on ARM || ARM64 || COMPILE_TEST
404405
depends on GENERIC_SCHED_CLOCK && HAVE_CLK
405406
select CLKSRC_MMIO
406407
select TIMER_OF if OF

0 commit comments

Comments
 (0)