mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 04:48:14 +00:00
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:
parent
3ff5fc2b35
commit
6ed98c45db
1 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include <drivers/generic_delay_timer.h>
|
#include <drivers/generic_delay_timer.h>
|
||||||
|
#include <drivers/partition/partition.h>
|
||||||
#include <plat/arm/common/plat_arm.h>
|
#include <plat/arm/common/plat_arm.h>
|
||||||
#include <plat/common/platform.h>
|
#include <plat/common/platform.h>
|
||||||
#include <platform_def.h>
|
#include <platform_def.h>
|
||||||
|
@ -94,7 +95,15 @@ void arm_bl2_el3_plat_arch_setup(void)
|
||||||
|
|
||||||
void bl2_el3_plat_arch_setup(void)
|
void bl2_el3_plat_arch_setup(void)
|
||||||
{
|
{
|
||||||
|
int __maybe_unused ret;
|
||||||
arm_bl2_el3_plat_arch_setup();
|
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)
|
void bl2_el3_plat_prepare_exit(void)
|
||||||
|
|
Loading…
Add table
Reference in a new issue