diff options
author | Jacky Bai <ping.bai@nxp.com> | 2020-03-27 20:28:19 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2020-11-18 09:12:32 +0800 |
commit | 758075db1eef1417a691df183d44dd06c33c57ad (patch) | |
tree | 95f22a6fb0f9bc2627004992a427bf677074cdcf | |
parent | dec4cda8441ebf55cb972e2880c43ecad65db98b (diff) |
plat: imx8mp: Enable BL32 fdt overlay support on imx8mp
Allow OP-TEE to generate a device-tree overlay binary
that will be applied by u-boot on the regular dtb.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
-rw-r--r-- | plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c | 5 | ||||
-rw-r--r-- | plat/imx/imx8m/imx8mp/include/platform_def.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c b/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c index e852e9a61..3e8147615 100644 --- a/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c +++ b/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c @@ -162,6 +162,11 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, #ifdef SPD_trusty bl32_image_ep_info.args.arg0 = BL32_SIZE; bl32_image_ep_info.args.arg1 = BL32_BASE; +#else + /* Make sure memory is clean */ + mmio_write_32(BL32_FDT_OVERLAY_ADDR, 0); + bl33_image_ep_info.args.arg3 = BL32_FDT_OVERLAY_ADDR; + bl32_image_ep_info.args.arg3 = BL32_FDT_OVERLAY_ADDR; #endif #endif diff --git a/plat/imx/imx8m/imx8mp/include/platform_def.h b/plat/imx/imx8m/imx8mp/include/platform_def.h index 4d5e91a07..4f93b4d49 100644 --- a/plat/imx/imx8m/imx8mp/include/platform_def.h +++ b/plat/imx/imx8m/imx8mp/include/platform_def.h @@ -40,6 +40,8 @@ /* non-secure uboot base */ #define PLAT_NS_IMAGE_OFFSET U(0x40200000) +#define BL32_FDT_OVERLAY_ADDR (PLAT_NS_IMAGE_OFFSET + 0x3000000) + /* GICv3 base address */ #define PLAT_GICD_BASE U(0x38800000) #define PLAT_GICR_BASE U(0x38880000) |