diff options
author | Matt Vertescher <mvertescher@google.com> | 2022-10-19 11:24:45 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-07 18:38:28 +0000 |
commit | e4cf6678ef70819323473e55df0e0bd5bdfffe2b (patch) | |
tree | 41ad4e83626ae349c2bd0bf5e533fe748ade9be0 /include | |
parent | 6fb42d210a39ed93bf8596cd94103f497fdcd869 (diff) | |
download | chrome-ec-e4cf6678ef70819323473e55df0e0bd5bdfffe2b.tar.gz |
gsctool: Add AP RO verify SPI read/write addressing config mode command
This patch adds the ability to get and set the AP RO verification
SPI read/write addressing mode configuration setting from `gsctool` by
adding a new `-C` command flag with an optional argument.
BUG=b:250972056
TEST=Running gsctool locally to set and get the SPI addressing mode to
verify communication and handlers are working properly:
$ gsctool -D -C 3byte
...
$ gsctool -D -C
...
3byte
$ gsctool -D -C 4byte
...
$ gsctool -D -C
...
4byte
Change-Id: I2ad4af65615310cf1477adfda7df1bfdf0e0a914
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3966474
Tested-by: Matt Vertescher <mvertescher@google.com>
Reviewed-by: Alyssa Haroldsen <kupiakos@google.com>
Auto-Submit: Matt Vertescher <mvertescher@google.com>
Commit-Queue: Matt Vertescher <mvertescher@google.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/tpm_vendor_cmds.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/tpm_vendor_cmds.h b/include/tpm_vendor_cmds.h index c1d3a1055e..2be888c6a3 100644 --- a/include/tpm_vendor_cmds.h +++ b/include/tpm_vendor_cmds.h @@ -170,6 +170,28 @@ 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, + LAST_VENDOR_COMMAND = 65535, }; |