mbox series

[v4,0/2] imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN

Message ID 20241101084921.4134231-1-paul.geurts@prodrive-technologies.com
Headers show
Series imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN | expand

Message

Paul Geurts Nov. 1, 2024, 8:49 a.m. UTC
The imx_hab_is_enabled function makes sure SPL and U-Boot only blocks
the boot process when HAB is actually enabled. Currently only the
SEC_CONFIG fuse is checked for this, as this is the fuse that closes the
board for HAB. The Field return fuse however is used to permanently
disable HAB. This fuse is not taken into account.

Take the FIELD_RETURN fuse into account as well when deciding whether
HAB is enabled.

v2:
 - Split up into two commits
v3:
 - Fixed support for i.MX8M Plus, which has a fuse pattern
v4:
 - Dropped the _t suffix from the struct imx_fuse_t
 - Processed v3 comments