From: Yann Gautier Date: Mon, 15 Oct 2018 07:36:21 +0000 (+0200) Subject: Add new defines for STM32MP1 platform X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6fe8b195fade423dd0ffca656c7af79a40c81440;p=project%2Fbcm63xx%2Fatf.git Add new defines for STM32MP1 platform To boot on eMMC or SD-cards, STM32MP1 platform needs: - GPT_IMAGE_ID to read GPT table on those devices - STM32_IMAGE_ID and IO_TYPE_STM32IMAGE to read images with STM32 header - IO_TYPE_MMC to have a IO for MMC devices Signed-off-by: Yann Gautier --- diff --git a/include/common/tbbr/tbbr_img_def.h b/include/common/tbbr/tbbr_img_def.h index a97914de..96bfb534 100644 --- a/include/common/tbbr/tbbr_img_def.h +++ b/include/common/tbbr/tbbr_img_def.h @@ -77,7 +77,13 @@ /* NT_FW_CONFIG */ #define NT_FW_CONFIG_ID U(27) +/* GPT Partition */ +#define GPT_IMAGE_ID U(28) + +/* Binary with STM32 header */ +#define STM32_IMAGE_ID U(29) + /* Define size of the array */ -#define MAX_NUMBER_IDS U(28) +#define MAX_NUMBER_IDS U(30) #endif /* __TBBR_IMG_DEF_H__ */ diff --git a/include/drivers/io/io_storage.h b/include/drivers/io/io_storage.h index 485ed8c0..02308e3a 100644 --- a/include/drivers/io/io_storage.h +++ b/include/drivers/io/io_storage.h @@ -22,6 +22,8 @@ typedef enum { IO_TYPE_DUMMY, IO_TYPE_FIRMWARE_IMAGE_PACKAGE, IO_TYPE_BLOCK, + IO_TYPE_MMC, + IO_TYPE_STM32IMAGE, IO_TYPE_MAX } io_type_t;