aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2018-10-15 09:36:21 +0200
committerYann Gautier <yann.gautier@st.com>2018-10-15 09:36:21 +0200
commit6fe8b195fade423dd0ffca656c7af79a40c81440 (patch)
treebaf1762790b21d25ac9bb52587fb1e7eb6654b7f /include
parent8e2e5e8b182abfc2034a4730804b870f0cc2d7f9 (diff)
downloadplatform_external_arm-trusted-firmware-6fe8b195fade423dd0ffca656c7af79a40c81440.tar.gz
platform_external_arm-trusted-firmware-6fe8b195fade423dd0ffca656c7af79a40c81440.tar.bz2
platform_external_arm-trusted-firmware-6fe8b195fade423dd0ffca656c7af79a40c81440.zip
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 <yann.gautier@st.com>
Diffstat (limited to 'include')
-rw-r--r--include/common/tbbr/tbbr_img_def.h8
-rw-r--r--include/drivers/io/io_storage.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/common/tbbr/tbbr_img_def.h b/include/common/tbbr/tbbr_img_def.h
index a97914de6..96bfb5341 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 485ed8c0f..02308e3a2 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;