u-boot/arch/arm/mach-k3
Manorit Chawdhry 30a7ee87fd Kconfig: j721s2: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region
On K3 HS-SE devices all the firewalls are locked by default
until sysfw comes up. Rom configures some of the firewall for its usage
along with the SRAM for R5 but the PSRAM region is still locked.

The K3 MCU Scratchpad for j721s2 was set to a PSRAM region triggering the
firewall exception before sysfw came up. The exception started happening
after adding multi dtb support that accesses the scratchpad for reading
EEPROM contents.

Old map:
┌─────────────────────────────────────┐ 0x41c00000
│                 SPL                 │
├─────────────────────────────────────┤ 0x41c61f20 (approx)
│                STACK                │
├─────────────────────────────────────┤ 0x41c65f20
│             Global data             │
│  sizeof(struct global_data) = 0xd8  │
├─────────────────────────────────────┤ gd->malloc_base = 0x41c66000
│                HEAP                 │
│  CONFIG_SYS_MALLOC_F_LEN = 0x10000  │
├─────────────────────────────────────┤ CONFIG_SPL_BSS_START_ADDR
│               SPL BSS               │ (0x41c76000)
│  CONFIG_SPL_BSS_MAX_SIZE = 0xA000   │
├─────────────────────────────────────┤ (0x41c80000)
│               DM DATA               │
├─────────────────────────────────────┤ (0x41c84130) (approx)
│                EMPTY                │
└─────────────────────────────────────┘ CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX
				        (0x41cffbfc)

New map:
┌─────────────────────────────────────┐ 0x41c00000
│                 SPL                 │
├─────────────────────────────────────┤ 0x41c61f20 (approx)
│                STACK                │
├─────────────────────────────────────┤ 0x41c65f20
│             Global data             │
│  sizeof(struct global_data) = 0xd8  │
├─────────────────────────────────────┤ gd->malloc_base = 0x41c66000
│                HEAP                 │
│  CONFIG_SYS_MALLOC_F_LEN = 0x10000  │
├─────────────────────────────────────┤ CONFIG_SPL_BSS_START_ADDR
│               SPL BSS               │ (0x41c76000)
│  CONFIG_SPL_BSS_MAX_SIZE = 0xA000   │
├─────────────────────────────────────┤ (0x41c80000)
│               DM DATA               │
├─────────────────────────────────────┤ (0x41c84130) (approx)
│                EMPTY                │
├─────────────────────────────────────┤ SYS_K3_MCU_SCRATCHPAD_BASE
│              SCRATCHPAD             │ (0x41cff9fc)
│ SYS_K3_MCU_SCRATCHPAD_SIZE = 0x200  │
└─────────────────────────────────────┘ CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX
				        (0x41cffbfc)

Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com>
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
2023-05-04 13:06:22 -04:00
..
am62ax arm: mach-k3: am62a7: Enable QoS for DSS 2023-05-03 09:05:24 -04:00
am62x arm: mach-k3: am62: Introduce autogenerated SoC data 2022-06-10 13:37:32 -04:00
include/mach arm: mach-k3: am62a7: Enable QoS for DSS 2023-05-03 09:05:24 -04:00
j721e clk: ti: k3: Update driver to account for divider flags 2021-09-17 14:47:03 -04:00
j721s2 arm: K3: Add basic support for J721S2 SoC definition 2022-02-08 09:41:26 -05:00
j7200 clk: ti: k3: Update driver to account for divider flags 2021-09-17 14:47:03 -04:00
am62a7_init.c arm: mach-k3: am62a7: Enable QoS for DSS 2023-05-03 09:05:24 -04:00
am625_init.c arm: mach-k3: Move sysfw-loader.h out of mach includes 2023-04-24 13:18:48 -04:00
am642_init.c arm: mach-k3: Workaround errata ID i2331 2023-05-03 09:05:24 -04:00
am654_init.c arm: mach-k3: Remove empty sys_proto.h include 2023-04-24 13:18:48 -04:00
arm64-mmu.c arm: mach-k3: introduce basic files to support the am62a 2022-12-09 14:10:28 -05:00
cache.S arm: mach-k3: Clean non-coherent lines out of L3 cache 2020-08-11 10:18:27 +05:30
common.c arm: mach-k3: common: don't reconfigure background firewalls 2023-05-02 14:24:36 -04:00
common.h arm: mach-k3: common: don't reconfigure background firewalls 2023-05-02 14:24:36 -04:00
config.mk arm: k3: config.mk: Read software revision information from file on HS 2022-07-25 14:57:27 -04:00
config_secure.mk global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
j721e_init.c arm: mach-k3: j7200: Fix firewall warnings at boot time 2023-05-03 09:05:24 -04:00
j721s2_init.c arch: mach-k3: j721s2_init: Disable the firewalls 2023-04-25 15:31:27 -04:00
Kconfig Kconfig: j721s2: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region 2023-05-04 13:06:22 -04:00
lowlevel_init.S armv7r: K3: Allow SPL to run only on core 0 2018-11-26 22:52:11 -05:00
Makefile arm: mach-k3: introduce basic files to support the am62a 2022-12-09 14:10:28 -05:00
r5_mpu.c global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_* 2022-12-05 16:06:07 -05:00
security.c arm: mach-k3: Remove empty sys_proto.h include 2023-04-24 13:18:48 -04:00
sysfw-loader.c arm: mach-k3: Remove empty sys_proto.h include 2023-04-24 13:18:48 -04:00
sysfw-loader.h arm: mach-k3: Move sysfw-loader.h out of mach includes 2023-04-24 13:18:48 -04:00