Merge tag 'fsl-qoriq-2022-10-18' of https://source.denx.de/u-boot/custodians/u-boot...
[platform/kernel/u-boot.git] / arch / arm / mach-at91 / arm926ejs / Makefile
index 8de6a2f..902dd3a 100644 (file)
@@ -16,12 +16,16 @@ obj-$(CONFIG_AT91SAM9N12)   += at91sam9n12_devices.o
 obj-$(CONFIG_AT91SAM9X5)       += at91sam9x5_devices.o
 obj-$(CONFIG_SAM9X60)          += sam9x60_devices.o
 obj-$(CONFIG_AT91_EFLASH)      += eflash.o
-obj-$(CONFIG_AT91_LED) += led.o
 obj-y += clock.o
 obj-y += cpu.o
+ifndef CONFIG_$(SPL_TPL_)SYSRESET
 obj-y  += reset.o
-ifeq ($(CONFIG_ATMEL_PIT_TIMER),)
-obj-y  += timer.o
+endif
+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