diff options
author | Simon Glass <sjg@chromium.org> | 2021-07-18 14:18:03 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-08-01 09:05:24 -0600 |
commit | d8f105dd7170bcb0370b8ce18503834cdeeec7c1 (patch) | |
tree | e5b08bbef92a14f1e518f2fe392a21ccc7ccbc6b /include/tpm-v2.h | |
parent | 0c0ddada656f9d642a5c3904bc225b2b4fb49fe4 (diff) | |
download | u-boot-d8f105dd7170bcb0370b8ce18503834cdeeec7c1.tar.gz |
sandbox: tpm: Support nvdata in TPM2
Add support for this feature in the TPM2 emulator, to support Chromium OS
vboot.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/tpm-v2.h')
-rw-r--r-- | include/tpm-v2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h index 247b386967..949a13c917 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -32,6 +32,8 @@ struct udevice; #define TPM2_MAX_TPM_PROPERTIES ((TPM2_MAX_CAP_BUFFER - sizeof(u32) /* TPM2_CAP */ - \ sizeof(u32)) / sizeof(struct tpms_tagged_property)) +#define TPM2_HDR_LEN 10 + /* * We deviate from this draft of the specification by increasing the value of * TPM2_NUM_PCR_BANKS from 3 to 16 to ensure compatibility with TPM2 |