From caa6f51d585bc98e40d872942204a2b1767412c7 Mon Sep 17 00:00:00 2001 From: Silvano di Ninno Date: Thu, 22 Nov 2018 02:45:14 +0100 Subject: 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 (cherry picked from commit 70c1d422e520f8f1c201a7e4fe22870832240db7) --- plat/imx/imx8qm/imx8qm_bl31_setup.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3