src/security/tpm: query recovery mode from Cr50
commite371d421137901043ba495f8e4f5063be26b6764
authorKeith Short <keithshort@chromium.org>
Fri, 11 Jan 2019 14:52:32 +0000 (11 07:52 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 17 Jan 2019 13:01:52 +0000 (17 13:01 +0000)
treebc938bc8baad7084fea948eb9c3dfdd0743d9d05
parent49bfdb35f47bdce0b53c553b3b6fb67bcbc8796e
src/security/tpm: query recovery mode from Cr50

On the Sarien/Arcada platforms, the EC is not trusted to provide
the state of the ESC+REFRESH+PWR recovery combination. On these
platforms the Cr50 latches the state of REFRESH+PWR for use as the
recovery mode key combination.

BUG=b:122715254
BRANCH=none
TEST=Verify recovery mode screen shown after pressing REFRESH+PWR
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ie3ce519956f916023c8c52f1d11fa93331f52f3c
Reviewed-on: https://review.coreboot.org/c/30929
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/security/tpm/tss/tcg-2.0/tss_marshaling.c
src/security/tpm/tss/tcg-2.0/tss_structures.h
src/security/tpm/tss/vendor/cr50/cr50.c
src/security/tpm/tss/vendor/cr50/cr50.h