summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/mach-imx
diff options
context:
space:
mode:
authorBreno Lima <breno.lima@nxp.com>2021-03-25 12:30:12 +0300
committerStefano Babic <sbabic@denx.de>2021-04-08 10:18:29 +0300
commitf217470b392806be340e9c03d46e98bb29d7caec (patch)
tree49d83c656929031a4e22c713501ac6014e691cc3 /arch/arm/include/asm/mach-imx
parentcd8355664db363768b672f9a362044e2db9bd86c (diff)
downloadu-boot-f217470b392806be340e9c03d46e98bb29d7caec.tar.xz
imx: hab: Check if IVT header is HABv4
The HABv4 implementation in ROM checks if HAB major version in IVT header is 4.x. The current implementation in hab.c code is only validating HAB v4.0 and HAB v4.1 and may be incompatible with newer HABv4 versions. Modify verify_ivt_header() function to align with HABv4 implementation in ROM code. Signed-off-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/include/asm/mach-imx')
-rw-r--r--arch/arm/include/asm/mach-imx/hab.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/include/asm/mach-imx/hab.h b/arch/arm/include/asm/mach-imx/hab.h
index c4393ef443..62218818f9 100644
--- a/arch/arm/include/asm/mach-imx/hab.h
+++ b/arch/arm/include/asm/mach-imx/hab.h
@@ -18,8 +18,6 @@
*/
#define IVT_HEADER_MAGIC 0xD1
#define IVT_TOTAL_LENGTH 0x20
-#define IVT_HEADER_V1 0x40
-#define IVT_HEADER_V2 0x41
struct __packed ivt_header {
uint8_t magic;