aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHari Prasath <Hari.PrasathGE@microchip.com>2021-12-13 10:30:03 +0530
committerEugen Hristev <eugen.hristev@microchip.com>2021-12-16 11:41:45 +0200
commit9bf459c23dc03f3c4405650e3c8578265fd9d62c (patch)
treec602157c14218315f3b01d4254fa734e79f444fc /arch
parent85bffb8185bcdcc9f61282400da6c3004903dfbc (diff)
downloadu-boot-9bf459c23dc03f3c4405650e3c8578265fd9d62c.zip
u-boot-9bf459c23dc03f3c4405650e3c8578265fd9d62c.tar.gz
u-boot-9bf459c23dc03f3c4405650e3c8578265fd9d62c.tar.bz2
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. Signed-off-by: Hari Prasath <Hari.PrasathGE@microchip.com> Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-at91/arm926ejs/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/arm926ejs/Makefile b/arch/arm/mach-at91/arm926ejs/Makefile
index 8de6a2f..c1904d5 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