Add new defines for STM32MP1 platform
authorYann Gautier <yann.gautier@st.com>
Mon, 15 Oct 2018 07:36:21 +0000 (09:36 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 15 Oct 2018 07:36:21 +0000 (09:36 +0200)
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>
include/common/tbbr/tbbr_img_def.h
include/drivers/io/io_storage.h

index a97914de6a53dd8df99a085d8d4f43fe71873b31..96bfb5341a6843ecc447a2769ecb213f9c333184 100644 (file)
 /* 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__ */
index 485ed8c0ff0f51f1c727c0e17e1d106a57a92e51..02308e3a27f4a935b5506093b004dfc0753c3701 100644 (file)
@@ -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;