From: Bastian Stender <bst@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Bastian Stender <bst@pengutronix.de>
Subject: [PATCH 2/2] HAB: fuse recommended OCOTP_DIR_BT_DIS
Date: Fri, 10 Aug 2018 12:42:20 +0200 [thread overview]
Message-ID: <20180810104220.4391-2-bst@pengutronix.de> (raw)
In-Reply-To: <20180810104220.4391-1-bst@pengutronix.de>
This is now recommended for all systems. Especially for the HAB usecase
disallowing alternative boot selection after WDOG reset is essential.
Signed-off-by: Bastian Stender <bst@pengutronix.de>
---
drivers/hab/hab.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c
index 0d71f5bf26..423f69e5b1 100644
--- a/drivers/hab/hab.c
+++ b/drivers/hab/hab.c
@@ -161,7 +161,14 @@ static int imx_hab_permanent_write_enable_ocotp(int enable)
static int imx_hab_lockdown_device_ocotp(void)
{
+ int ret;
+
+ ret = imx_ocotp_write_field(OCOTP_DIR_BT_DIS, 1);
+ if (ret < 0)
+ return ret;
+
return imx_ocotp_write_field(OCOTP_SEC_CONFIG_1, 1);
+
}
static int imx_hab_device_locked_down_ocotp(void)
--
2.18.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2018-08-10 10:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-10 10:42 [PATCH 1/2] ARM: imx: add fusemap entries for i.MX6SDL silicon revision >=1.4 Bastian Stender
2018-08-10 10:42 ` Bastian Stender [this message]
2018-08-21 7:42 ` Sascha Hauer
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=20180810104220.4391-2-bst@pengutronix.de \
--to=bst@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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