diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2018-02-21 19:02:39 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2018-03-03 00:29:28 +0000 |
commit | 1b39412c6f4b8ba8c9e0169f7cce6674a2acc6f6 (patch) | |
tree | f9368bb54d787e7ff160c5c1683e841c6910bcb1 /include | |
parent | ee8cc561b9e21b994130df421e7b91109fb8e225 (diff) | |
download | chrome-ec-1b39412c6f4b8ba8c9e0169f7cce6674a2acc6f6.tar.gz |
cr50: expose spihash PP polling to the host
When running the spihash command using gsctool (as opposed to the
running it from the Cr50 console), the operator needs to be prompted
when the PP button needs to be pressed.
This patch extends spihash command implementation by adding a new
subcommand for polling physical presence.
BRANCH=cr50, cr50-mp
BUG=b:73668125
TEST=with the appropriate gsctool changes the user is periodically
prompted to press the physical presence button, and eventually it
is possible to set up spi hash access to AP and EC.
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/930568
Reviewed-by: Randall Spangler <rspangler@chromium.org>
(cherry picked from commit d015bc937c0eecf1cb8f1b163874ea69c890dea4)
Change-Id: I33b1d8350ff5d017211e5e6de5f6e92f7e8392da
Reviewed-on: https://chromium-review.googlesource.com/947420
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Trybot-Ready: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/tpm_vendor_cmds.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tpm_vendor_cmds.h b/include/tpm_vendor_cmds.h index b5d20c7200..1cdfb7599c 100644 --- a/include/tpm_vendor_cmds.h +++ b/include/tpm_vendor_cmds.h @@ -124,6 +124,8 @@ enum vendor_cc_spi_hash_request_subcmd { SPI_HASH_SUBCMD_SHA256 = 4, /* Read SPI data */ SPI_HASH_SUBCMD_DUMP = 5, + /* Poll spi hash PP state. */ + SPI_HASH_PP_POLL = 6, }; enum vendor_cc_spi_hash_request_flags { |