summaryrefslogtreecommitdiff
path: root/drivers/timer
diff options
context:
space:
mode:
authorEugen Hristev <[email protected]>2022-04-04 11:35:50 +0300
committerEugen Hristev <[email protected]>2022-04-26 09:53:49 +0300
commite135d2c2f385fc1cefcea64cf775c6f0267945a2 (patch)
tree1422b3d525945cd7662ed85789ff50c3c2e19223 /drivers/timer
parent0fbc893cfe7603f1bff1266dd92ffff525b7909d (diff)
timers: atmel_tcb: introduce CONFIG_SPL_ATMEL_TCB
This commit allows the ATMEL_TCB driver to be unselected in SPL and be selected in u-boot proper. The SPL can use a different timer. By having a separate Kconfig for ATMEL_TCB in SPL, the size of the SPL decreases by 1 KByte. Signed-off-by: Eugen Hristev <[email protected]>
Diffstat (limited to 'drivers/timer')
-rw-r--r--drivers/timer/Kconfig8
-rw-r--r--drivers/timer/Makefile2
2 files changed, 9 insertions, 1 deletions
diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig
index 672746a1816..68e90b8660b 100644
--- a/drivers/timer/Kconfig
+++ b/drivers/timer/Kconfig
@@ -98,6 +98,14 @@ config ATMEL_TCB_TIMER
Select this to enable the use of the timer counter as a monotonic
counter.
+config SPL_ATMEL_TCB_TIMER
+ bool "Atmel timer counter support in SPL"
+ depends on SPL_TIMER
+ depends on ARCH_AT91
+ help
+ Select this to enable the use of the timer counter as a monotonic
+ counter in SPL.
+
config CADENCE_TTC_TIMER
bool "Cadence TTC (Triple Timer Counter)"
depends on TIMER
diff --git a/drivers/timer/Makefile b/drivers/timer/Makefile
index 17f9f1d0441..ae01a258e3d 100644
--- a/drivers/timer/Makefile
+++ b/drivers/timer/Makefile
@@ -8,7 +8,7 @@ obj-$(CONFIG_ANDES_PLMT_TIMER) += andes_plmt_timer.o
obj-$(CONFIG_ARC_TIMER) += arc_timer.o
obj-$(CONFIG_AST_TIMER) += ast_timer.o
obj-$(CONFIG_ATMEL_PIT_TIMER) += atmel_pit_timer.o
-obj-$(CONFIG_ATMEL_TCB_TIMER) += atmel_tcb_timer.o
+obj-$(CONFIG_$(SPL_)ATMEL_TCB_TIMER) += atmel_tcb_timer.o
obj-$(CONFIG_CADENCE_TTC_TIMER) += cadence-ttc.o
obj-$(CONFIG_DESIGNWARE_APB_TIMER) += dw-apb-timer.o
obj-$(CONFIG_MPC83XX_TIMER) += mpc83xx_timer.o