Skip to contentSkip to conversation

ARM: mach-at91: fix timer.o compile condition

PATCH New Eugen Hristev 1 participant 2 messages Nov 11, 2020 – Nov 26, 2020

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

PATCH 1/1 ARM: mach-at91: fix timer.o compile condition

The AT91 architecture now has two possible timer blocks, the old PIT timer and the new PIT64B.
The timer.c file has an old non DM driver that works for platforms that do not use the ATMEL_PIT_TIMER DM-based driver.
Update the Makefile to select this old driver in case neither of the ATMEL_PIT_TIMER and the MCHP_PIT64B_TIMER are selected.

---
 arch/arm/mach-at91/armv7/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
arch/arm/mach-at91/armv7/Makefile +4 -1
index b46b90b28e..f5b2665957 100644
@@ -12,6 +12,9 @@ obj-$(CONFIG_SAMA5D4)	+= sama5d4_devices.o clock.o
 obj-$(CONFIG_SAMA7G5)	+= sama7g5_devices.o
 obj-y += cpu.o
 obj-y += reset.o
-ifeq ($(CONFIG_ATMEL_PIT_TIMER),)
+ifneq ($(CONFIG_ATMEL_PIT_TIMER),y)
+ifneq ($(CONFIG_MCHP_PIT64B_TIMER),y)
+# old non-DM timer driver
 obj-y += timer.o
 endif
+endif
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 ARM: mach-at91: fix timer.o compile condition

Quoted 10 lines · Eugen Hristev

The AT91 architecture now has two possible timer blocks, the old PIT timer and the new PIT64B.
The timer.c file has an old non DM driver that works for platforms that do not use the ATMEL_PIT_TIMER DM-based driver.
Update the Makefile to select this old driver in case neither of the ATMEL_PIT_TIMER and the MCHP_PIT64B_TIMER are selected.

---

Applied to u-boot-atmel/master