summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacky Bai <ping.bai@nxp.com>2020-10-22 16:18:51 +0800
committerJacky Bai <ping.bai@nxp.com>2020-10-23 18:04:53 +0800
commit48733cb4e773a7584ced601de9d717efa3d73815 (patch)
treeef012106ad3e001edde04ac8e2f29ef9afb1dc01
parentf683b0a998ac870a1972591356842e6e5c458bf6 (diff)
MLK-24913: plat: imx8mp: change the bl31 physical load address
on i.MX8MP A1 silicon, the OCRAM space is extended to 512K + 64K, currently, OCRAM @0x960000-0x980000 is reserved for BL31, it will leave the last 64KB in non-continuous space. To provide a continuous 384KB + 64KB space for generic use, so Move the BL31 space to 0x970000-0x990000 range. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
-rw-r--r--plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c2
-rw-r--r--plat/imx/imx8m/imx8mp/include/platform_def.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c b/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c
index 2683371b..f5ce699a 100644
--- a/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c
+++ b/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c
@@ -147,7 +147,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
imx_csu_init(csu_cfg);
/* config the ocram memory range for secure access */
- mmio_write_32(IMX_IOMUX_GPR_BASE + 0x2c, 0xc1);
+ mmio_write_32(IMX_IOMUX_GPR_BASE + 0x2c, 0xE1);
imx8m_caam_init();
diff --git a/plat/imx/imx8m/imx8mp/include/platform_def.h b/plat/imx/imx8m/imx8mp/include/platform_def.h
index e869f52d..d32789c5 100644
--- a/plat/imx/imx8m/imx8mp/include/platform_def.h
+++ b/plat/imx/imx8m/imx8mp/include/platform_def.h
@@ -31,8 +31,8 @@
#define PLAT_WAIT_RET_STATE U(1)
#define PLAT_STOP_OFF_STATE U(3)
-#define BL31_BASE U(0x960000)
-#define BL31_LIMIT U(0x980000)
+#define BL31_BASE U(0x970000)
+#define BL31_LIMIT U(0x990000)
/* non-secure uboot base */
#define PLAT_NS_IMAGE_OFFSET U(0x40200000)