summaryrefslogtreecommitdiffstats
path: root/include/tpm-common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-06 14:23:40 -0700
committerTom Rini <trini@konsulko.com>2021-03-02 15:53:37 -0500
commit6719cbe31afef2cba4bc10b33350b38c4a51c3ac (patch)
tree8d89c0a703f86a2ef5d55f28e1876c3b53f981c8 /include/tpm-common.h
parenteadcbc7896e8d3eefafc8a34dee125a7d7eecead (diff)
downloadu-boot-6719cbe31afef2cba4bc10b33350b38c4a51c3ac.tar.gz
u-boot-6719cbe31afef2cba4bc10b33350b38c4a51c3ac.tar.xz
u-boot-6719cbe31afef2cba4bc10b33350b38c4a51c3ac.zip
tpm: Add TPM2 support for read/write values
Implement this API function for TPM2. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/tpm-common.h')
-rw-r--r--include/tpm-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tpm-common.h b/include/tpm-common.h
index c1309a2735..998b4fbb41 100644
--- a/include/tpm-common.h
+++ b/include/tpm-common.h
@@ -55,6 +55,8 @@ enum tpm_version {
* @buf: Buffer used during the exchanges with the chip
* @pcr_count: Number of PCR per bank
* @pcr_select_min: Minimum size in bytes of the pcrSelect array
+ * @plat_hier_disabled: Platform hierarchy has been disabled (TPM is locked
+ * down until next reboot)
*/
struct tpm_chip_priv {
enum tpm_version version;
@@ -66,6 +68,7 @@ struct tpm_chip_priv {
/* TPM v2 specific data */
uint pcr_count;
uint pcr_select_min;
+ bool plat_hier_disabled;
};
/**