]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: am642: move do_dt_magic() after sysfw loading
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 28 Mar 2023 14:13:14 +0000 (16:13 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 Apr 2023 17:18:49 +0000 (13:18 -0400)
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>
arch/arm/mach-k3/am642_init.c

index 5d53358cf26a8c64db1adc41c9a11b1ac7174214..0c295e7fe28822dbd6386da06d0872a0d8ea55e4 100644 (file)
@@ -183,8 +183,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
@@ -211,6 +209,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);