feat(bl2): add gpt support

This includes initialization of the partition with
the GPT_IMAGE_ID.

Change-Id: I51b09d82ff40207369d76011556f40169196af22
Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
This commit is contained in:
Harsimran Singh Tungal 2023-10-20 11:24:07 +01:00 committed by hartun01-arm
parent 3ff5fc2b35
commit 6ed98c45db

View file

@ -7,6 +7,7 @@
#include <assert.h>
#include <drivers/generic_delay_timer.h>
#include <drivers/partition/partition.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <platform_def.h>
@ -94,7 +95,15 @@ void arm_bl2_el3_plat_arch_setup(void)
void bl2_el3_plat_arch_setup(void)
{
int __maybe_unused ret;
arm_bl2_el3_plat_arch_setup();
#if ARM_GPT_SUPPORT
ret = gpt_partition_init();
if (ret != 0) {
ERROR("GPT partition initialisation failed!\n");
panic();
}
#endif /* ARM_GPT_SUPPORT */
}
void bl2_el3_plat_prepare_exit(void)