* [PATCH] ARM: mach-at91: Add compile time option to choose proper timer
@ 2021-12-13 5:00 Hari Prasath
2021-12-16 9:44 ` Eugen.Hristev
0 siblings, 1 reply; 2+ messages in thread
From: Hari Prasath @ 2021-12-13 5:00 UTC (permalink / raw)
To: u-boot; +Cc: Hari.PrasathGE, MPUSWLinux, Eugen.Hristev
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.
Signed-off-by: Hari Prasath <Hari.PrasathGE@microchip.com>
---
arch/arm/mach-at91/arm926ejs/Makefile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-at91/arm926ejs/Makefile b/arch/arm/mach-at91/arm926ejs/Makefile
index 8de6a2f966..c1904d535b 100644
--- a/arch/arm/mach-at91/arm926ejs/Makefile
+++ b/arch/arm/mach-at91/arm926ejs/Makefile
@@ -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
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: mach-at91: Add compile time option to choose proper timer
2021-12-13 5:00 [PATCH] ARM: mach-at91: Add compile time option to choose proper timer Hari Prasath
@ 2021-12-16 9:44 ` Eugen.Hristev
0 siblings, 0 replies; 2+ messages in thread
From: Eugen.Hristev @ 2021-12-16 9:44 UTC (permalink / raw)
To: Hari.PrasathGE, u-boot
On 12/13/21 7:00 AM, Hari Prasath wrote:
> 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.
>
> Signed-off-by: Hari Prasath <Hari.PrasathGE@microchip.com>
> ---
Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>
Applied to u-boot-at91/next , thanks !
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-16 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 5:00 [PATCH] ARM: mach-at91: Add compile time option to choose proper timer Hari Prasath
2021-12-16 9:44 ` Eugen.Hristev
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.