[PATCH 3/4] serial: atmel-usart: include arch specific headers only for AT91
Robert Marko
robert.marko at sartura.hr
Tue Dec 30 22:01:38 CET 2025
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 at sartura.hr>
---
drivers/serial/atmel_usart.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c
index d6c3d4cbcc8..4c992d14c3c 100644
--- a/drivers/serial/atmel_usart.c
+++ b/drivers/serial/atmel_usart.c
@@ -20,8 +20,10 @@
#if CONFIG_IS_ENABLED(DM_SERIAL)
#include <dm/platform_data/atmel_serial.h>
#endif
+#if CONFIG_IS_ENABLED(ARCH_AT91)
#include <asm/arch/clk.h>
#include <asm/arch/hardware.h>
+#endif
#include "atmel_usart.h"
--
2.52.0
More information about the U-Boot
mailing list