mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2] HAB: fuse recommended OCOTP_DIR_BT_DIS
@ 2018-08-10 11:43 Bastian Stender
  0 siblings, 0 replies; only message in thread
From: Bastian Stender @ 2018-08-10 11:43 UTC (permalink / raw)
  To: barebox; +Cc: Bastian Stender

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>
---
Changes since v1:
  - removed accidentally added empty line
---
 drivers/hab/hab.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c
index 0d71f5bf26..03bb65e0fa 100644
--- a/drivers/hab/hab.c
+++ b/drivers/hab/hab.c
@@ -161,6 +161,12 @@ 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);
 }
 
-- 
2.18.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-10 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-10 11:43 [PATCH v2] HAB: fuse recommended OCOTP_DIR_BT_DIS Bastian Stender

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox