]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: am62a7: Disable firewalls only after loading SYSFW
authorAndrew Davis <afd@ti.com>
Fri, 2 Feb 2024 00:24:46 +0000 (18:24 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 4 Mar 2024 18:41:04 +0000 (13:41 -0500)
Currently we do this multiple times, instead just do it once after loading
SYSFW in R5 SPL.

Signed-off-by: Andrew Davis <afd@ti.com>
arch/arm/mach-k3/am62a7_init.c

index d72e19936b9b7e06b7ca4af73fa7a88972ffe995..ccbde5bdd8539be247491ef5e045a5b533dc32d7 100644 (file)
@@ -142,6 +142,9 @@ void board_init_f(ulong dummy)
                panic("ROM has not loaded TIFS firmware\n");
 
        k3_sysfw_loader(true, NULL, NULL);
+
+       /* Disable ROM configured firewalls right after loading sysfw */
+       remove_fwl_configs(cbass_main_fwls, ARRAY_SIZE(cbass_main_fwls));
 #endif
 
 #if defined(CONFIG_CPU_V7R)
@@ -170,9 +173,6 @@ void board_init_f(ulong dummy)
        /* Output System Firmware version info */
        k3_sysfw_print_ver();
 
-       /* Disable ROM configured firewalls right after loading sysfw */
-       remove_fwl_configs(cbass_main_fwls, ARRAY_SIZE(cbass_main_fwls));
-
 #if defined(CONFIG_K3_AM62A_DDRSS)
        ret = uclass_get_device(UCLASS_RAM, 0, &dev);
        if (ret)