arm: mach-k3: Print version of DM firmware during boot process
authorMoteen Shah <m-shah@ti.com>
Mon, 9 Jun 2025 08:14:34 +0000 (13:44 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 18 Jun 2025 18:20:25 +0000 (12:20 -0600)
Print DM firmware's version in the boot up process of K3 devices,
having DM capability(DM as a separate binary).

Signed-off-by: Moteen Shah <m-shah@ti.com>
arch/arm/mach-k3/am62ax/am62a7_init.c
arch/arm/mach-k3/am62px/am62p5_init.c
arch/arm/mach-k3/j721e/j721e_init.c
arch/arm/mach-k3/j721s2/j721s2_init.c
arch/arm/mach-k3/j722s/j722s_init.c
arch/arm/mach-k3/j784s4/j784s4_init.c

index edd43a1..ac4d300 100644 (file)
@@ -172,6 +172,10 @@ void board_init_f(ulong dummy)
        /* Output System Firmware version info */
        k3_sysfw_print_ver();
 
+       /* Output DM Firmware version info */
+       if (IS_ENABLED(CONFIG_ARM64))
+               k3_dm_print_ver();
+
        if (IS_ENABLED(CONFIG_ESM_K3)) {
                /* Probe/configure ESM0 */
                ret = uclass_get_device_by_name(UCLASS_MISC, "esm@420000", &dev);
index 6e3c66e..44a2d44 100644 (file)
@@ -224,6 +224,10 @@ void board_init_f(ulong dummy)
        /* Output System Firmware version info */
        k3_sysfw_print_ver();
 
+       /* Output DM Firmware version info */
+       if (IS_ENABLED(CONFIG_ARM64))
+               k3_dm_print_ver();
+
        if (IS_ENABLED(CONFIG_K3_AM62A_DDRSS)) {
                ret = uclass_get_device(UCLASS_RAM, 0, &dev);
                if (ret)
index f31c20f..4982434 100644 (file)
@@ -374,6 +374,10 @@ void board_init_f(ulong dummy)
        /* Output System Firmware version info */
        k3_sysfw_print_ver();
 
+       /* Output DM Firmware version info */
+       if (IS_ENABLED(CONFIG_ARM64))
+               k3_dm_print_ver();
+
        /* Perform board detection */
        do_board_detect();
 
index 5941fa2..528590f 100644 (file)
@@ -232,6 +232,10 @@ void k3_spl_init(void)
 
        /* Output System Firmware version info */
        k3_sysfw_print_ver();
+
+       /* Output DM Firmware version info */
+       if (IS_ENABLED(CONFIG_ARM64))
+               k3_dm_print_ver();
 }
 
 bool check_rom_loaded_sysfw(void)
index af21137..d8123f2 100644 (file)
@@ -150,6 +150,10 @@ static void k3_spl_init(void)
 
        /* Output System Firmware version info */
        k3_sysfw_print_ver();
+
+       /* Output DM Firmware version info */
+       if (IS_ENABLED(CONFIG_ARM64))
+               k3_dm_print_ver();
 }
 
 static void k3_mem_init(void)
index 787cf62..ccf2981 100644 (file)
@@ -208,6 +208,10 @@ void k3_spl_init(void)
 
        /* Output System Firmware version info */
        k3_sysfw_print_ver();
+
+       /* Output DM Firmware version info */
+       if (IS_ENABLED(CONFIG_ARM64))
+               k3_dm_print_ver();
 }
 
 void k3_mem_init(void)