diff options
author | Harsimran Singh Tungal <harsimransingh.tungal@arm.com> | 2023-10-20 11:24:07 +0100 |
---|---|---|
committer | hartun01-arm <harsimransingh.tungal@arm.com> | 2023-10-31 23:00:37 +0100 |
commit | 6ed98c45db01023d52a47eb4ede0ffb44de85f00 (patch) | |
tree | 894881a4bc774d6381543e2e04d45ac775716128 | |
parent | 3ff5fc2b35638afea2fad3cd0c76dcadc1adb8c2 (diff) |
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>
-rw-r--r-- | plat/arm/common/arm_bl2_el3_setup.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plat/arm/common/arm_bl2_el3_setup.c b/plat/arm/common/arm_bl2_el3_setup.c index b598c592a..01e0db0bc 100644 --- a/plat/arm/common/arm_bl2_el3_setup.c +++ b/plat/arm/common/arm_bl2_el3_setup.c @@ -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) |