From 6fe8b195fade423dd0ffca656c7af79a40c81440 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 15 Oct 2018 09:36:21 +0200 Subject: [PATCH] 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 --- include/common/tbbr/tbbr_img_def.h | 8 +++++++- include/drivers/io/io_storage.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) 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; -- 2.30.2