summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Granaghan <granaghan@google.com>2023-04-13 18:15:46 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-05 11:59:06 +0000
commitab6783815867275152e9fef03f3567426aabdf7d (patch)
tree8d27800037d43d74f112a5bd53900918896b93ee
parentb08b1eeca736388709381471cebbd80b6e969921 (diff)
downloadchrome-ec-ab6783815867275152e9fef03f3567426aabdf7d.tar.gz
cr50: Add get/set factory config command codes.
BUG=b:275356839 TEST=build Change-Id: I6de6de6a43cfe45860bbe9b4aa7cce211da0166e Signed-off-by: Brian Granaghan <granaghan@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4421422 Reviewed-by: Mary Ruthven <mruthven@chromium.org> Commit-Queue: Mary Ruthven <mruthven@chromium.org> (cherry picked from commit 92026fc84fab67bb0ee9b66b635cafb436165d8d) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4506019 Commit-Queue: Wei-Shuo Su <stevesu@google.com> Auto-Submit: Wei-Shuo Su <stevesu@google.com> Tested-by: Wei-Shuo Su <stevesu@google.com> Reviewed-by: Cheng Yueh <cyueh@chromium.org>
-rw-r--r--include/tpm_vendor_cmds.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/tpm_vendor_cmds.h b/include/tpm_vendor_cmds.h
index c1d3a1055e..ba8c1a208c 100644
--- a/include/tpm_vendor_cmds.h
+++ b/include/tpm_vendor_cmds.h
@@ -170,6 +170,37 @@ enum vendor_cmd_cc {
/* POP_LOG_ENTRY with a 64 bit previous timestamp in ms */
VENDOR_CC_POP_LOG_ENTRY_MS = 61,
+ /*
+ * Get/set AP RO configuration settings
+ *
+ * The message sent and received to this vendor command,
+ * with the exception * of SET responses, uses the
+ * following form:
+ *
+ * ```c
+ * struct __attribute__((__packed__)) command_msg {
+ * // Current version of the API
+ * uint8_t version;
+ * // Determines payload type, see
+ * // `arv_config_setting_command_e`.
+ * uint8_t command;
+ * // Type here depends on command
+ * struct command_data data;
+ * };
+ * ```
+ */
+ VENDOR_CC_GET_AP_RO_VERIFY_SETTING = 62,
+ VENDOR_CC_SET_AP_RO_VERIFY_SETTING = 63,
+
+ /* Ti50 only. */
+ VENDOR_CC_SET_CAPABILITY = 64,
+ VENDOR_CC_GET_TI50_STATS = 65,
+ VENDOR_CC_GET_CRASHLOG = 66,
+ VENDOR_CC_GET_CONSOLE_LOGS = 67,
+
+ VENDOR_CC_GET_FACTORY_CONFIG = 68,
+ VENDOR_CC_SET_FACTORY_CONFIG = 69,
+
LAST_VENDOR_COMMAND = 65535,
};