All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: mach-at91: fix timer.o compile condition
@ 2020-11-11 16:46 Eugen Hristev
  2020-11-26  8:18 ` Eugen.Hristev at microchip.com
  0 siblings, 1 reply; 2+ messages in thread
From: Eugen Hristev @ 2020-11-11 16:46 UTC (permalink / raw)
  To: u-boot

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.

Suggested-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 arch/arm/mach-at91/armv7/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-at91/armv7/Makefile b/arch/arm/mach-at91/armv7/Makefile
index b46b90b28e..f5b2665957 100644
--- a/arch/arm/mach-at91/armv7/Makefile
+++ b/arch/arm/mach-at91/armv7/Makefile
@@ -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
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: mach-at91: fix timer.o compile condition
  2020-11-11 16:46 [PATCH] ARM: mach-at91: fix timer.o compile condition Eugen Hristev
@ 2020-11-26  8:18 ` Eugen.Hristev at microchip.com
  0 siblings, 0 replies; 2+ messages in thread
From: Eugen.Hristev at microchip.com @ 2020-11-26  8:18 UTC (permalink / raw)
  To: u-boot

On 11.11.2020 18:46, Eugen Hristev wrote:
> 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.
> 
> Suggested-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> ---

Applied to u-boot-atmel/master

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-26  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 16:46 [PATCH] ARM: mach-at91: fix timer.o compile condition Eugen Hristev
2020-11-26  8:18 ` Eugen.Hristev at microchip.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.