From: Robert Marko Date: Mon, 12 Jan 2026 13:12:41 +0000 (+0100) Subject: serial: atmel-usart: include arch specific headers only for AT91 X-Git-Tag: v2026.04-rc2~4^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a155dbc9f2bb2f060531ec7f9565cde0e6d92b25;p=thirdparty%2Fu-boot.git serial: atmel-usart: include arch specific headers only for AT91 Microchip LAN969x will not include any arch specific clk.h nor hardware.h, so in order to support it only include and when AT91 is selected. Signed-off-by: Robert Marko --- diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index d6c3d4cbcc8..fb1c76fea8d 100644 --- a/drivers/serial/atmel_usart.c +++ b/drivers/serial/atmel_usart.c @@ -20,8 +20,10 @@ #if CONFIG_IS_ENABLED(DM_SERIAL) #include #endif +#if IS_ENABLED(CONFIG_ARCH_AT91) #include #include +#endif #include "atmel_usart.h"