[otp_ctrl] Update DIF to account for bus integrity error
Signed-off-by: Michael Schaffner <msf@google.com>
diff --git a/sw/device/lib/dif/dif_otp_ctrl.c b/sw/device/lib/dif/dif_otp_ctrl.c
index 44e31cb..e176587 100644
--- a/sw/device/lib/dif/dif_otp_ctrl.c
+++ b/sw/device/lib/dif/dif_otp_ctrl.c
@@ -338,6 +338,8 @@
[kDifOtpCtrlStatusCodeScramblingError] =
OTP_CTRL_STATUS_SCRAMBLING_FSM_ERROR_BIT,
[kDifOtpCtrlStatusCodeKdfError] = OTP_CTRL_STATUS_KEY_DERIV_FSM_ERROR_BIT,
+ [kDifOtpCtrlStatusCodeBusIntegError] =
+ OTP_CTRL_STATUS_BUS_INTEG_ERROR_BIT,
[kDifOtpCtrlStatusCodeDaiIdle] = OTP_CTRL_STATUS_DAI_IDLE_BIT,
[kDifOtpCtrlStatusCodeCheckPending] = OTP_CTRL_STATUS_CHECK_PENDING_BIT,
};
diff --git a/sw/device/lib/dif/dif_otp_ctrl.h b/sw/device/lib/dif/dif_otp_ctrl.h
index 4729950..2f17e16 100644
--- a/sw/device/lib/dif/dif_otp_ctrl.h
+++ b/sw/device/lib/dif/dif_otp_ctrl.h
@@ -313,7 +313,6 @@
* Indicates an error occurred in the `Secret2` partition.
*/
kDifOtpCtrlStatusCodeSecret2Error,
-
/**
* Indicates an error occurred in the direct access interface.
*/
@@ -322,7 +321,6 @@
* Indicates an error occurred in the lifecycle interface.
*/
kDifOtpCtrlStatusCodeLciError,
-
/**
* This is not a status code; rather, it represents the last error code which
* has a corresponding "cause" register.
@@ -330,7 +328,6 @@
* See `dif_otp_ctrl_status_t` for information on how to use this.
*/
kDifOtpCtrlStatusCodeHasCauseLast = kDifOtpCtrlStatusCodeLciError,
-
/**
* Indicates that an integrity or consistency check has timed out.
*
@@ -356,7 +353,12 @@
* This error is unrecoverable.
*/
kDifOtpCtrlStatusCodeKdfError,
-
+ /**
+ * Indicates a bus integrity error.
+ *
+ * This error will raise an alert.
+ */
+ kDifOtpCtrlStatusCodeBusIntegError,
/**
* Indicates that the direct access interface is idle.
*/