Skip to content

Commit 2f98270

Browse files
alexandrebelloniDaniel Lezcano
authored andcommitted
clocksource/drivers/timer-atmel-pit: Rework Kconfig option
Allow building the PIT driver when COMPILE_TEST is enabled. Also remove its default value so it can be disabled. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 6275f49 commit 2f98270

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/clocksource/Kconfig‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,11 @@ config ARMV7M_SYSTICK
399399
This options enables support for the ARMv7M system timer unit
400400

401401
config ATMEL_PIT
402+
bool "Atmel PIT support" if COMPILE_TEST
403+
depends on HAS_IOMEM
402404
select TIMER_OF if OF
403-
def_bool SOC_AT91SAM9 || SOC_SAMA5
405+
help
406+
Support for the Periodic Interval Timer found on Atmel SoCs.
404407

405408
config ATMEL_ST
406409
bool "Atmel ST timer support" if COMPILE_TEST

0 commit comments

Comments
 (0)