From 48733cb4e773a7584ced601de9d717efa3d73815 Mon Sep 17 00:00:00 2001 From: Jacky Bai Date: Thu, 22 Oct 2020 16:18:51 +0800 Subject: 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 Reviewed-by: Ye Li --- plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c | 2 +- plat/imx/imx8m/imx8mp/include/platform_def.h | 4 ++-- 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) -- cgit v1.2.3