]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx: hab: Check if IVT header is HABv4
authorBreno Lima <breno.lima@nxp.com>
Thu, 25 Mar 2021 09:30:12 +0000 (17:30 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 07:18:29 +0000 (09:18 +0200)
commitf217470b392806be340e9c03d46e98bb29d7caec
tree49d83c656929031a4e22c713501ac6014e691cc3
parentcd8355664db363768b672f9a362044e2db9bd86c
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>
arch/arm/include/asm/mach-imx/hab.h
arch/arm/mach-imx/hab.c