fix(versal2): pass tl address to bl32

Pass transfer list address to BL32 as an argument during boot time.

Change-Id: Ic63649b9c41cfae2365ec5911dcab63a7dd005ff
Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
Maheedhar Bollapalli 2025-01-27 06:30:41 +00:00
parent 0791be8813
commit 1fb3446ed2
2 changed files with 5 additions and 0 deletions

View file

@ -45,6 +45,9 @@ int32_t transfer_list_populate_ep_info(entry_point_info_t *bl32,
continue;
case SECURE:
*bl32 = *ep;
if (!transfer_list_set_handoff_args(tl_hdr, ep)) {
ERROR("Invalid transfer list\n");
}
continue;
default:
ERROR("Unrecognized Image Security State %lu\n",

View file

@ -59,8 +59,10 @@ static inline void bl31_set_default_config(void)
bl32_image_ep_info.pc = BL32_BASE;
bl32_image_ep_info.spsr = arm_get_spsr_for_bl32_entry();
#if defined(SPD_opteed)
#if (TRANSFER_LIST == 0)
/* NS dtb addr passed to optee_os */
bl32_image_ep_info.args.arg3 = XILINX_OF_BOARD_DTB_ADDR;
#endif
#endif
bl33_image_ep_info.pc = plat_get_ns_image_entrypoint();
bl33_image_ep_info.spsr = (uint32_t)SPSR_64(MODE_EL2, MODE_SP_ELX,