Hi, this fixes the HABv4 locking on i.MX8M devices and add additional features like: - key revocation - field-return burning - additional security related fuse defintions Changes in v2: - Link to v1: https://lore.barebox.org/barebox/Zmv2KyQq3ACxksc_@xxxxxxxxxxxxxx/ - adapt patch-1 commit message - make use of 'bool permanent' parameter instead of introducing new IMX_SRK_* flags. --- Marco Felsch (9): i.MX: HABv4: fix SRK_LOCK for i.MX8M devices nvmem: ocotp: add support to get/set srk_revoke sticky bit nvmem: ocotp: add support to query the field-return sticky bit hab: convert flags to use BIT() macro i.MX: HAB: add imx_hab_revoke_key support i.MX: HABv4: add more i.MX8M fuse defines i.MX8M: HABv4: add an option to allow key revocation i.MX8M: HABv4: add option to allow burning the field-return fuse i.MX: HAB: add imx_hab_field_return support arch/arm/mach-imx/Kconfig | 33 ++++++++++ drivers/hab/hab.c | 120 ++++++++++++++++++++++++++++++++++- drivers/nvmem/ocotp.c | 79 +++++++++++++++++++++++ include/hab.h | 9 ++- include/mach/imx/habv4-imx8-gencsf.h | 13 ++++ include/mach/imx/ocotp-fusemap.h | 13 ++++ include/mach/imx/ocotp.h | 3 + scripts/Makefile.lib | 1 + 8 files changed, 265 insertions(+), 6 deletions(-) --- base-commit: bafdf4b35d777d159ac4058efc86d36622ce5ccf change-id: 20240703-v2024-05-0-topic-hab-218bab0e829c Best regards, -- Marco Felsch <m.felsch@xxxxxxxxxxxxxx>