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 <asm/arch/clk.h> and
<asm/arch/hardware.h> when AT91 is selected.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
This commit is contained in:
Robert Marko
2026-01-12 14:12:41 +01:00
committed by Eugen Hristev
parent 757a7cbb3e
commit a155dbc9f2

View File

@@ -20,8 +20,10 @@
#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"