From 1b39412c6f4b8ba8c9e0169f7cce6674a2acc6f6 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Wed, 21 Feb 2018 19:02:39 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/930568 Reviewed-by: Randall Spangler (cherry picked from commit d015bc937c0eecf1cb8f1b163874ea69c890dea4) Change-Id: I33b1d8350ff5d017211e5e6de5f6e92f7e8392da Reviewed-on: https://chromium-review.googlesource.com/947420 Reviewed-by: Furquan Shaikh Commit-Queue: Furquan Shaikh Tested-by: Furquan Shaikh Trybot-Ready: Furquan Shaikh --- include/tpm_vendor_cmds.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 { -- cgit v1.2.1