[PATCH 10/11] arm: socfpga: axe5-eagle: move lowlevel init to separate function

Michael Tretter m.tretter at pengutronix.de
Wed Oct 7 03:55:55 PDT 2026


Move the lowlevel initialization to a separate function to be able to
reuse it in the xload entry point.

Drop the debug message that lowlevel init is finished, because the
message isn't really useful.

Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
 arch/arm/boards/arrow-axe5-eagle/lowlevel.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/arrow-axe5-eagle/lowlevel.c b/arch/arm/boards/arrow-axe5-eagle/lowlevel.c
index b0a2d6673e0f..bf98515f28d8 100644
--- a/arch/arm/boards/arrow-axe5-eagle/lowlevel.c
+++ b/arch/arm/boards/arrow-axe5-eagle/lowlevel.c
@@ -13,7 +13,7 @@
 
 extern char __dtb_z_socfpga_agilex5_axe5_eagle_start[];
 
-static noinline void axe5_eagle_continue(void)
+static void axe5_eagle_lowlevel_init(void)
 {
 	void __iomem *uart = IOMEM(SOCFPGA_UART_BASE(0));
 
@@ -21,8 +21,11 @@ static noinline void axe5_eagle_continue(void)
 
 	socfpga_uart_setup(uart);
 	pbl_set_putc(socfpga_uart_putc, uart);
+}
 
-	pr_debug("Lowlevel init done\n");
+static noinline void axe5_eagle_continue(void)
+{
+	axe5_eagle_lowlevel_init();
 
 	agilex5_barebox_entry(__dtb_z_socfpga_agilex5_axe5_eagle_start);
 }

-- 
2.47.3




More information about the barebox mailing list