]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: Remove ROM firewalls on GP devices
authorAndrew Davis <afd@ti.com>
Fri, 15 Jul 2022 16:21:27 +0000 (11:21 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 25 Jul 2022 18:57:27 +0000 (14:57 -0400)
This isn't strictly needed as these firewalls should all be disabled on
GP, but it also doesn't hurt, so do this unconditionally to remove this
use of CONFIG_TI_SECURE_DEVICE.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-k3/am654_init.c
arch/arm/mach-k3/j721e_init.c

index 6e833a6641ae07e6565ef8aee063ec6b58233588..768fdd69602f4ddb6cd0a6b176db04d92bdd7766 100644 (file)
@@ -27,7 +27,6 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 #ifdef CONFIG_K3_LOAD_SYSFW
-#ifdef CONFIG_TI_SECURE_DEVICE
 struct fwl_data main_cbass_fwls[] = {
        { "MMCSD1_CFG", 2057, 1 },
        { "MMCSD0_CFG", 2058, 1 },
@@ -44,7 +43,6 @@ struct fwl_data main_cbass_fwls[] = {
        { "MCU_CPSW0", 1220, 1 },
 };
 #endif
-#endif
 
 static void ctrl_mmr_unlock(void)
 {
@@ -237,10 +235,8 @@ void board_init_f(ulong dummy)
        preloader_console_init();
 
        /* Disable ROM configured firewalls right after loading sysfw */
-#ifdef CONFIG_TI_SECURE_DEVICE
        remove_fwl_configs(main_cbass_fwls, ARRAY_SIZE(main_cbass_fwls));
        remove_fwl_configs(mcu_cbass_fwls, ARRAY_SIZE(mcu_cbass_fwls));
-#endif
 #else
        /* Prepare console output */
        preloader_console_init();
index cb9f7eebec1a38deafd294479296e821683a1829..1bea05aa513869e0c5f4168fcb844fb1eea99e43 100644 (file)
@@ -25,7 +25,6 @@
 #include <remoteproc.h>
 
 #ifdef CONFIG_K3_LOAD_SYSFW
-#ifdef CONFIG_TI_SECURE_DEVICE
 struct fwl_data cbass_hc_cfg0_fwls[] = {
        { "PCIE0_CFG", 2560, 8 },
        { "PCIE1_CFG", 2561, 8 },
@@ -63,7 +62,6 @@ struct fwl_data cbass_hc_cfg0_fwls[] = {
        { "WKUP_CTRL_MMR0", 131, 16 },
 };
 #endif
-#endif
 
 static void ctrl_mmr_unlock(void)
 {
@@ -254,7 +252,6 @@ void board_init_f(ulong dummy)
        preloader_console_init();
 
        /* Disable ROM configured firewalls right after loading sysfw */
-#ifdef CONFIG_TI_SECURE_DEVICE
        remove_fwl_configs(cbass_hc_cfg0_fwls, ARRAY_SIZE(cbass_hc_cfg0_fwls));
        remove_fwl_configs(cbass_hc0_fwls, ARRAY_SIZE(cbass_hc0_fwls));
        remove_fwl_configs(cbass_rc_cfg0_fwls, ARRAY_SIZE(cbass_rc_cfg0_fwls));
@@ -262,7 +259,6 @@ void board_init_f(ulong dummy)
        remove_fwl_configs(infra_cbass0_fwls, ARRAY_SIZE(infra_cbass0_fwls));
        remove_fwl_configs(mcu_cbass0_fwls, ARRAY_SIZE(mcu_cbass0_fwls));
        remove_fwl_configs(wkup_cbass0_fwls, ARRAY_SIZE(wkup_cbass0_fwls));
-#endif
 #else
        /* Prepare console output */
        preloader_console_init();