[PATCH 2/2] ARM: socfpga: arria10-init: setup uart earlier
Steffen Trumtrar
s.trumtrar at pengutronix.de
Thu Nov 13 23:23:16 PST 2025
From: Bruno Knittel <bruno.knittel at bruker.com>
Dedicated peripherals like GPIO but especially UART can be enabled and
used before the FPGA is configured.
This commit ensures socfpga_uart_setup_ll() is done before FPGA
configuration and allows to have UART debug output as early as possible.
Signed-off-by: Bruno Knittel <bruno.knittel at bruker.com>
Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
---
arch/arm/mach-socfpga/arria10-init.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-socfpga/arria10-init.c b/arch/arm/mach-socfpga/arria10-init.c
index 14cee3196a..7b438a8947 100644
--- a/arch/arm/mach-socfpga/arria10-init.c
+++ b/arch/arm/mach-socfpga/arria10-init.c
@@ -146,10 +146,6 @@ void arria10_finish_io(uint32_t *pinmux)
arria10_reset_deassert_shared_peripherals();
arria10_reset_deassert_fpga_peripherals();
-
- socfpga_uart_setup_ll();
-
- puts_ll("lowlevel init done\n");
}
/*
* First C function to initialize the critical hardware early
@@ -197,4 +193,8 @@ void arria10_init(struct arria10_mainpll_cfg *mainpll,
/* deassert peripheral resets */
arria10_reset_deassert_dedicated_peripherals();
+
+ socfpga_uart_setup_ll();
+
+ puts_ll("lowlevel init done\n");
}
--
2.46.0
More information about the barebox
mailing list