From: Fabian Pflug <f.pflug@pengutronix.de>
To: Marco Felsch <m.felsch@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>,
Lucas Stach <l.stach@pengutronix.de>,
Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: Fabian Pflug <f.pflug@pengutronix.de>
Subject: [PATCH v4 2/5] arm: mach-imx6: use kconfig for field return
Date: Fri, 19 Dec 2025 14:39:54 +0100 [thread overview]
Message-ID: <20251219-v2025-11-0-topic-imx6-field-return-v4-2-57eec237ceaf@pengutronix.de> (raw)
In-Reply-To: <20251219-v2025-11-0-topic-imx6-field-return-v4-0-57eec237ceaf@pengutronix.de>
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 <m.felsch@pengutronix.de>
Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
---
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..a793496d49 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 = CONFIG_HABV4_CSF_UNLOCK_UID
+#endif
hab [Install Key]
/* verification key index in key store (0, 2...4) */
--
2.47.3
next prev parent reply other threads:[~2025-12-19 13:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 13:39 [PATCH v4 0/5] i.mx: hab/ocotop: extend field return to i.MX6 Fabian Pflug
2025-12-19 13:39 ` [PATCH v4 1/5] i.MX: HAB: fix field return unlock fuse uid Fabian Pflug
2025-12-19 13:39 ` Fabian Pflug [this message]
2025-12-19 13:39 ` [PATCH v4 3/5] nvmem: ocotp: extend support to query the sticky bit Fabian Pflug
2025-12-19 13:39 ` [PATCH v4 4/5] i.MX: HAB: extend field_return support to imx6 Fabian Pflug
2025-12-19 13:39 ` [PATCH v4 5/5] commands: hab: extend by field_return fuse burn Fabian Pflug
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251219-v2025-11-0-topic-imx6-field-return-v4-2-57eec237ceaf@pengutronix.de \
--to=f.pflug@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=l.stach@pengutronix.de \
--cc=m.felsch@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox