]> git.baikalelectronics.ru Git - uboot.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)
commita6fd845a2ca4739f7e9027918e7a27dd032ef043
tree49d83c656929031a4e22c713501ac6014e691cc3
parent1f2692cf268fb35e79eb29140f3df92d4d95ee96
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