refactor(bl2): make post image handling platform-specific

In certain instances a platform may need to make modifications to an
image after it has been loaded by BL2. The existing common
implementation is a thin wrapper for a more generic arm post image
handler. To enable platforms to make changes to images when
they're loaded, move this into platform code.

Change-Id: I44025391056adb2d8a8eb4ea5984257b02027181
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
This commit is contained in:
Harrison Mutai 2023-10-18 09:58:48 +01:00
parent 58f00553d6
commit ed5672070d
5 changed files with 21 additions and 6 deletions

View file

@ -16,3 +16,8 @@ void bl2_platform_setup(void)
{
arm_bl2_platform_setup();
}
int bl2_plat_handle_post_image_load(unsigned int image_id)
{
return arm_bl2_plat_handle_post_image_load(image_id);
}

View file

@ -120,3 +120,8 @@ struct bl_params *plat_get_next_bl_params(void)
return arm_bl_params;
}
int bl2_plat_handle_post_image_load(unsigned int image_id)
{
return arm_bl2_plat_handle_post_image_load(image_id);
}

View file

@ -39,3 +39,8 @@ void bl2_platform_setup(void)
generic_delay_timer_init();
#endif /* USE_SP804_TIMER */
}
int bl2_plat_handle_post_image_load(unsigned int image_id)
{
return arm_bl2_plat_handle_post_image_load(image_id);
}

View file

@ -318,8 +318,3 @@ int arm_bl2_plat_handle_post_image_load(unsigned int image_id)
#endif
return arm_bl2_handle_post_image_load(image_id);
}
int bl2_plat_handle_post_image_load(unsigned int image_id)
{
return arm_bl2_plat_handle_post_image_load(image_id);
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-2023, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -84,3 +84,8 @@ void bl2_platform_setup(void)
# endif /* EL3_PAYLOAD_BASE */
#endif /* CSS_USE_SCMI_SDS_DRIVER */
int bl2_plat_handle_post_image_load(unsigned int image_id)
{
return arm_bl2_plat_handle_post_image_load(image_id);
}