aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorClément Léger <clement.leger@bootlin.com>2022-03-31 10:55:06 +0200
committerEugen Hristev <eugen.hristev@microchip.com>2022-04-01 15:42:46 +0300
commit70fb1ae9dd30b1dc6cf0c6ba585f822ef58106e5 (patch)
tree9a35f4e20af3766f0e3f80a411d37d97bb199900 /arch/arm/mach-at91
parent746b738224addbbe2d0b2e0faf8e526548192c4a (diff)
downloadu-boot-70fb1ae9dd30b1dc6cf0c6ba585f822ef58106e5.zip
u-boot-70fb1ae9dd30b1dc6cf0c6ba585f822ef58106e5.tar.gz
u-boot-70fb1ae9dd30b1dc6cf0c6ba585f822ef58106e5.tar.bz2
timer: atmel_tcb_timer: add atmel_tcb driver
Add a driver for the timer counter block that can be found on sama5d2. This driver will be used when booting under OP-TEE since the pit timer which is part of the SYSC is secured. Channel 1 & 2 are configured to be chained together which allows to have a 64bits counter. Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/armv7/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/armv7/Makefile b/arch/arm/mach-at91/armv7/Makefile
index 246050b..f395b55 100644
--- a/arch/arm/mach-at91/armv7/Makefile
+++ b/arch/arm/mach-at91/armv7/Makefile
@@ -14,9 +14,11 @@ obj-y += cpu.o
ifndef CONFIG_$(SPL_TPL_)SYSRESET
obj-y += reset.o
endif
+ifneq ($(CONFIG_ATMEL_TCB_TIMER),y)
ifneq ($(CONFIG_ATMEL_PIT_TIMER),y)
ifneq ($(CONFIG_MCHP_PIT64B_TIMER),y)
# old non-DM timer driver
obj-y += timer.o
endif
endif
+endif