]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
serial: atmel-usart: include arch specific headers only for AT91
authorRobert Marko <robert.marko@sartura.hr>
Mon, 12 Jan 2026 13:12:41 +0000 (14:12 +0100)
committerEugen Hristev <eugen.hristev@linaro.org>
Wed, 4 Feb 2026 12:12:56 +0000 (14:12 +0200)
Microchip LAN969x will not include any arch specific clk.h nor hardware.h,
so in order to support it only include <asm/arch/clk.h> and
<asm/arch/hardware.h> when AT91 is selected.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
drivers/serial/atmel_usart.c

index d6c3d4cbcc89cb80ec067265b936a2cd6139a0fe..fb1c76fea8d6a35e844f80791c770b3d74f87b8f 100644 (file)
 #if CONFIG_IS_ENABLED(DM_SERIAL)
 #include <dm/platform_data/atmel_serial.h>
 #endif
+#if IS_ENABLED(CONFIG_ARCH_AT91)
 #include <asm/arch/clk.h>
 #include <asm/arch/hardware.h>
+#endif
 
 #include "atmel_usart.h"