diff options
author | Keith Short <keithshort@chromium.org> | 2019-01-22 16:59:13 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-30 13:06:41 -0800 |
commit | 54c06033f3813013296c9945d6ed13cd258a1db8 (patch) | |
tree | 36ab20ac4690c825e2d024c5b96047fd3ab92099 /include | |
parent | cc98aa2569f249071d75b435ac400a4c060c43fb (diff) | |
download | chrome-ec-54c06033f3813013296c9945d6ed13cd258a1db8.tar.gz |
cr50: Add VENDOR_CC_GET_PWR_BTN to query power button
Add the new TPM command VENDOR_CC_GET_PWR_BTN used to query whether
there has been a recent (within 10 seconds) power button press by the
user. This is used by coreboot on Sarien/Arcada to confirm user
presence prior to enabling developer mode and prior to launching closed
source diagnostics.
BUG=b:119346609
BRANCH=cr50
TEST=make buildall. Tested power button query from coreboot recovery
screen screen on Arcada and Sarien platforms.
Change-Id: I20f91204fe30dda27b0d14b755bcd357938029f5
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1432313
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/tpm_vendor_cmds.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tpm_vendor_cmds.h b/include/tpm_vendor_cmds.h index 499e2c3fa2..a2e2b6920e 100644 --- a/include/tpm_vendor_cmds.h +++ b/include/tpm_vendor_cmds.h @@ -116,6 +116,13 @@ enum vendor_cmd_cc { */ VENDOR_CC_SN_INC_RMA = 42, + /* + * Gets the latched state of a power button press to indicate user + * recent user presence. The power button state is automatically cleared + * after PRESENCE_TIMEOUT. + */ + VENDOR_CC_GET_PWR_BTN = 43, + LAST_VENDOR_COMMAND = 65535, }; |