]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/include/asm/mach-imx/hab.h
imx: hab: Check if CSF is valid before authenticating image
[people/ms/u-boot.git] / arch / arm / include / asm / mach-imx / hab.h
index a0cb19db2fb9de96231966f4bdcde60cf1df479e..bb732030e97e931440d168d6e32f0badd8e1133c 100644 (file)
@@ -38,6 +38,12 @@ struct ivt {
        uint32_t reserved2;     /* Reserved should be zero */
 };
 
+struct __packed hab_hdr {
+       u8 tag;              /* Tag field */
+       u8 len[2];           /* Length field in bytes (big-endian) */
+       u8 par;              /* Parameters field */
+};
+
 /* -------- start of HAB API updates ------------*/
 /* The following are taken from HAB4 SIS */
 
@@ -182,6 +188,8 @@ typedef void hapi_clock_init_t(void);
 #define HAB_CID_ROM 0 /**< ROM Caller ID */
 #define HAB_CID_UBOOT 1 /**< UBOOT Caller ID*/
 
+#define HAB_CMD_HDR          0xD4  /* CSF Header */
+
 #define IVT_SIZE                       0x20
 #define CSF_PAD_SIZE                   0x2000