diff options
author | Namyoon Woo <namyoon@google.com> | 2020-05-13 19:09:35 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-01 17:49:45 +0000 |
commit | 77f11cd9e99bc1d6a63acee45a3d457b7f205523 (patch) | |
tree | 801ab6fb0ad27213797a09026645d62d8c3708d4 /include | |
parent | 5a60b3b215125e8d2c145e17867fcfaaae682dcd (diff) | |
download | chrome-ec-77f11cd9e99bc1d6a63acee45a3d457b7f205523.tar.gz |
Introduce TPM_BOARD_CFG register
This patch adds the TPM vendor-defined register, TPM_BOARD_CFG,
which indicates the board configuration status. This register is
attributed as one-time-programmable and the value is maintained
across deep sleeps. Cr50 allows a write on this register right after
a cr50 reset until it receives a TPM2_PCR_Extend command.
BUG=b:148691139
TEST=none
Signed-off-by: Namyoon Woo <namyoon@google.com>
Change-Id: I89ae5a53c15990ef78812aec5da81a59f04d7d98
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2202838
Tested-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Commit-Queue: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/tpm_registers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tpm_registers.h b/include/tpm_registers.h index dcdbe41566..d02bc9e276 100644 --- a/include/tpm_registers.h +++ b/include/tpm_registers.h @@ -104,9 +104,10 @@ struct tpm_cmd_header { void tpm_alt_extension(struct tpm_cmd_header *tpmh, size_t buffer_size); /* - * The only TPM2 command we care about on the driver level, see + * The only TPM2 commands we care about on the driver level, see * crosbug.com/p/55667 for detals. */ +#define TPM2_PCR_Extend 0x00000182 #define TPM2_PCR_Read 0x0000017e #define TPM2_Startup 0x00000144 |