diff options
author | Ye Li <ye.li@nxp.com> | 2023-01-31 11:42:18 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2023-03-29 21:15:42 +0300 |
commit | 84f7da68e09c02eda2677242ba35bc72c085b57e (patch) | |
tree | 5ad6f2f92f47a60841d9b1092e5f4d12d7a02eee /arch | |
parent | 8b956bdddd308137b848e5ca87da0115abdb86d7 (diff) | |
download | u-boot-84f7da68e09c02eda2677242ba35bc72c085b57e.tar.xz |
imx: imx8ulp: configure XRDC for DRAM access from S400
Need to add DRAM access permission for S400, as S400 needs to access
it When SPL calls image authentication
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/imx8ulp/rdc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx8ulp/rdc.c b/arch/arm/mach-imx/imx8ulp/rdc.c index c36c0ac743..86310ca0b8 100644 --- a/arch/arm/mach-imx/imx8ulp/rdc.c +++ b/arch/arm/mach-imx/imx8ulp/rdc.c @@ -286,6 +286,11 @@ void xrdc_init_mrc(void) xrdc_config_mrc_dx_perm(5, 0, 1, 1); xrdc_config_mrc_w3_w4(5, 0, 0x0, 0x80000FFF); + /* Set MRC6 for DDR access from Sentinel */ + xrdc_config_mrc_w0_w1(6, 0, CFG_SYS_SDRAM_BASE, PHYS_SDRAM_SIZE); + xrdc_config_mrc_dx_perm(6, 0, 4, 1); + xrdc_config_mrc_w3_w4(6, 0, 0x0, 0x80000FFF); + /* The MRC8 is for SRAM1 */ xrdc_config_mrc_w0_w1(8, 0, 0x21000000, 0x10000); /* Allow for all domains: So domain 2/3 (HIFI DSP/LPAV) is ok to access */ |