There is a Kconfig option for the field return, that is also documented, so using it here instead of providing a headerfile to patch.
Reviewed-by: Marco Felsch <[email protected]> Signed-off-by: Fabian Pflug <[email protected]> --- include/mach/imx/habv4-imx6-gencsf-template.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/mach/imx/habv4-imx6-gencsf-template.h b/include/mach/imx/habv4-imx6-gencsf-template.h index 45da2981cb..c24bf84b85 100644 --- a/include/mach/imx/habv4-imx6-gencsf-template.h +++ b/include/mach/imx/habv4-imx6-gencsf-template.h @@ -39,17 +39,12 @@ hab Engine = SETUP_HABV4_ENGINE hab Features = SETUP_HABV4_FEATURES #endif -/* -// allow fusing FIELD_RETURN -// # ocotp0.permanent_write_enable=1 -// # mw -l -d /dev/imx-ocotp 0xb8 0x1 +#if defined(CONFIG_HABV4_CSF_UNLOCK_FIELD_RETURN) hab [Unlock] hab Engine = OCOTP hab Features = FIELD RETURN -// device-specific UID: -// $ dd if=/sys/bus/nvmem/devices/imx-ocotp0/nvmem bs=4 skip=1 count=2 status=none | hexdump -ve '1/1 "0x%.2x, "' | sed 's/, $//' -hab UID = 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 -*/ +hab UID = HABV4_CSF_UNLOCK_UID +#endif hab [Install Key] /* verification key index in key store (0, 2...4) */ -- 2.47.3
