diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2023-01-25 10:43:06 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2023-01-30 22:29:01 -0600 |
commit | 981eedc9de7cda241dd71fca242a2e262da47b9c (patch) | |
tree | e2216b1c220bb0cba1c080f9f93301ad2bfc8d1b | |
parent | b5ae22b98fe0de5108c0ff60bdb4844558a14a8f (diff) |
arm: mach-k3: am62a7_init: Open up FSS_DAT_REG3 firewall
On security enforced (HS-SE) devices ROM firewalls OSPI data region3 that
is present in above 64bit region. Open this up in bootloader to allow
Linux to access OSPI flashes in mmap mode.
Without this kernel will crash when accessing this region due to
firewall violations on HS-SE devices.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: Judith Mendez <jm@ti.com>
-rw-r--r-- | arch/arm/mach-k3/am62a7_init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/am62a7_init.c b/arch/arm/mach-k3/am62a7_init.c index aeb2e4087f..926585725a 100644 --- a/arch/arm/mach-k3/am62a7_init.c +++ b/arch/arm/mach-k3/am62a7_init.c @@ -17,6 +17,9 @@ #if defined(CONFIG_SPL_BUILD) +struct fwl_data cbass_main_fwls[] = { + { "FSS_DAT_REG3", 7, 8 }, +}; /* * This uninitialized global variable would normal end up in the .bss section, @@ -174,6 +177,9 @@ 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) |