summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvano di Ninno <silvano.dininno@nxp.com>2018-11-22 02:45:14 +0100
committerSilvano di Ninno <silvano.dininno@nxp.com>2018-11-26 09:56:08 +0100
commitcaa6f51d585bc98e40d872942204a2b1767412c7 (patch)
treedfc8c3f21d78c58e1891065f20a92e7de89c33e4
parentc411e20b8bd8bff740683580d095adb853a0452e (diff)
TEE-330-4: i.MX8QM: OP-TEE: Pass boot info to u-boot
If ATF loads OP-TEE, it will pass OP-TEE base address and size to the u-boot through boot information. This will help u-boot update device tree accordingly. Note that u-boot on i.MX 8QxP does not need this information to configure memory mapping. Query to the SC Firmware is used instead. Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com> (cherry picked from commit 70c1d422e520f8f1c201a7e4fe22870832240db7)
-rw-r--r--plat/imx/imx8qm/imx8qm_bl31_setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plat/imx/imx8qm/imx8qm_bl31_setup.c b/plat/imx/imx8qm/imx8qm_bl31_setup.c
index f6434d82..21068497 100644
--- a/plat/imx/imx8qm/imx8qm_bl31_setup.c
+++ b/plat/imx/imx8qm/imx8qm_bl31_setup.c
@@ -428,6 +428,10 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
bl32_image_ep_info.args.arg0 = BL32_SIZE;
bl32_image_ep_info.args.arg1 = BL32_BASE;
#endif
+#ifdef SPD_opteed
+ bl33_image_ep_info.args.arg1 = BL32_BASE;
+ bl33_image_ep_info.args.arg2 = BL32_SIZE;
+#endif
#endif
SET_SECURITY_STATE(bl33_image_ep_info.h.attr, NON_SECURE);