diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2018-02-21 19:02:39 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-02-23 03:36:31 -0800 |
commit | d015bc937c0eecf1cb8f1b163874ea69c890dea4 (patch) | |
tree | f9368bb54d787e7ff160c5c1683e841c6910bcb1 /include | |
parent | 1850d5908a348e31d61b2816f6f086fd4d3596de (diff) | |
download | chrome-ec-d015bc937c0eecf1cb8f1b163874ea69c890dea4.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.
Change-Id: I96aed1619d364c80a2f35ca8dc41241f1a444103
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/930568
Reviewed-by: Randall Spangler <rspangler@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 { |