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

Makes it possible to use e.g mcu_spi0 for custom board detection.
Signed-off-by: Christian Gmeiner christian.gmeiner@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@420000", &dev);

Makes it possible to use e.g mcu_spi0 for custom board detection.
gentle ping
Signed-off-by: Christian Gmeiner christian.gmeiner@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@420000", &dev); -- 2.40.0

Hi Christian!
On March 28, 2023 thus sayeth Christian Gmeiner:
Makes it possible to use e.g mcu_spi0 for custom board detection.
Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com
arch/arm/mach-k3/am642_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
I had to pick up the patch from Vignesh[0] to test this out, however this works for me.
Reviewed-by: Bryan Brattlof bb@ti.com
~Bryan
[0]https://lore.kernel.org/u-boot/20230406075936.2590125-1-vigneshr@ti.com/

On Tue, Mar 28, 2023 at 04:13:14PM +0200, Christian Gmeiner wrote:
Makes it possible to use e.g mcu_spi0 for custom board detection.
Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com Reviewed-by: Bryan Brattlof bb@ti.com
Applied to u-boot/master, thanks!
participants (3)
-
Bryan Brattlof
-
Christian Gmeiner
-
Tom Rini