[PATCH] arm: mach-k3: am642: move do_dt_magic() after sysfw loading

Christian Gmeiner christian.gmeiner at gmail.com
Tue Mar 28 16:13:14 CEST 2023


Makes it possible to use e.g mcu_spi0 for custom board detection.

Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
 arch/arm/mach-k3/am642_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-k3/am642_init.c b/arch/arm/mach-k3/am642_init.c
index 96f292ea75..2478ac162b 100644
--- a/arch/arm/mach-k3/am642_init.c
+++ b/arch/arm/mach-k3/am642_init.c
@@ -185,8 +185,6 @@ void board_init_f(ulong dummy)
 
 	preloader_console_init();
 
-	do_dt_magic();
-
 #if defined(CONFIG_K3_LOAD_SYSFW)
 	/*
 	 * Process pinctrl for serial3 a.k.a. MAIN UART1 module and continue
@@ -213,6 +211,8 @@ void board_init_f(ulong dummy)
 	/* Output System Firmware version info */
 	k3_sysfw_print_ver();
 
+	do_dt_magic();
+
 #if defined(CONFIG_ESM_K3)
 	/* Probe/configure ESM0 */
 	ret = uclass_get_device_by_name(UCLASS_MISC, "esm at 420000", &dev);
-- 
2.40.0



More information about the U-Boot mailing list