aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jang <josephjang@google.com>2021-04-15 12:49:07 +0800
committerJoseph Jang <josephjang@google.com>2021-04-29 15:44:36 +0000
commit95f65fb58388a04ecc52e15afc323212c3c476ae (patch)
tree17fb42361842a50fdaf1e9212b718d52c15c8235
parent467e3ad09b4d10e9c988c1426678be584f3d1936 (diff)
downloadgeneric-95f65fb58388a04ecc52e15afc323212c3c476ae.tar.gz
sjtag: Add a new command to get SJTAG_ALLOW
Bug: 185860435 Change-Id: I5310f4652a8504d3f9ba908e5a6cb998de10bba9 Reviewed-on: https://nugget-os-review.googlesource.com/c/host/generic/+/41844 Tested-by: Joseph Jang <josephjang@google.com> Reviewed-by: Randall Spangler <rspangler@google.com> Reviewed-by: Bill Richardson <wfrichar@google.com> Presubmit-Verified: TreeHugger Robot <android-build-prod@system.gserviceaccount.com>
-rw-r--r--nugget/include/app_nugget.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/nugget/include/app_nugget.h b/nugget/include/app_nugget.h
index 6a51365..e0b6497 100644
--- a/nugget/include/app_nugget.h
+++ b/nugget/include/app_nugget.h
@@ -350,6 +350,26 @@ enum nugget_sjtag_user_consent_cfg {
* @errors APP_ERROR_BOGUS_ARGS
*/
+enum nugget_sjtag_avb_boot_lock_result {
+ AVB_BOOT_LOCK_DISABLED,
+ AVB_BOOT_LOCK_ENABLED,
+ AVB_BOOT_LOCK_ERROR,
+};
+
+#define NUGGET_PARAM_SJTAG_ALLOW 0x0013
+/*
+ * Get the SJTAG ALLOW
+ *
+ * This always returns the current state of the SJTAG ALLOW feature.
+ *
+ * @param args <none>
+ * @param arg_len 0
+ * @param reply 0(DISALLOW) OR 1(ALLOW)
+ * @param reply_len 1 byte
+ *
+ * @errors APP_ERROR_BOGUS_ARGS
+ */
+
/****************************************************************************/
/* Test related commands */