Skip to contentSkip to conversation

ARM: mach-at91: Add compile time option to choose proper timer

PATCH In review Hari Prasath 2 participants 2 messages Dec 13, 2021 – Dec 16, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mach-at91: Add compile time option to choose proper timer

New SoC's of AT91 family with ARM-9 core includes a regular timer and a 64-bit timer.This patch adds a compile time option to the Makefile such that the old timer driver is chosen and compiled as default if none of timer configuration options are explicitly defined in the board configs.

---
 arch/arm/mach-at91/arm926ejs/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
arch/arm/mach-at91/arm926ejs/Makefile +5 -2
index 8de6a2f966..c1904d535b 100644
@@ -20,8 +20,11 @@ obj-$(CONFIG_AT91_LED)	+= led.o
 obj-y += clock.o
 obj-y += cpu.o
 obj-y	+= reset.o
-ifeq ($(CONFIG_ATMEL_PIT_TIMER),)
-obj-y	+= timer.o
+ifneq ($(CONFIG_ATMEL_PIT_TIMER),y)
+ifneq ($(CONFIG_MCHP_PIT64B_TIMER),y)
+# old non-DM timer driver
+obj-y += timer.o
+endif
 endif
 
 ifndef CONFIG_SKIP_LOWLEVEL_INIT
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Hari Prasath

New SoC's of AT91 family with ARM-9 core includes a regular timer and a 64-bit timer.This patch adds a compile time option to the Makefile such that the old timer driver is chosen and compiled as default if none of timer configuration options are explicitly defined in the board configs.

---

Applied to u-boot-at91/next , thanks !