From af3a8301a1a88a4e66c6f3887ada2ce5c31ef9b8 Mon Sep 17 00:00:00 2001 From: Silvano di Ninno Date: Tue, 20 Nov 2018 22:19:21 +0100 Subject: TEE-329-4: 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 e80fe229192578120a3ba98ae26fd3dbf121538f) --- plat/imx/imx8qxp/imx8qxp_bl31_setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plat/imx/imx8qxp/imx8qxp_bl31_setup.c b/plat/imx/imx8qxp/imx8qxp_bl31_setup.c index 89ee64a3..d465b24b 100644 --- a/plat/imx/imx8qxp/imx8qxp_bl31_setup.c +++ b/plat/imx/imx8qxp/imx8qxp_bl31_setup.c @@ -415,6 +415,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