summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Draszik <adraszik@tycoint.com>2017-10-03 18:55:53 +0300
committerSimon Glass <sjg@chromium.org>2017-11-17 17:15:52 +0300
commit1259f778c9b419f02e2c155996b2d15ff262901e (patch)
treecf2d902b0c5e4cd403fce8618878cf47c4426629
parent3c6050277b54f536e7effbe850dcc970a27387ab (diff)
downloadu-boot-1259f778c9b419f02e2c155996b2d15ff262901e.tar.xz
tpm: add more useful NV storage permission flags
TPM_NV_PER_PPREAD: physical presence needed for reading TPM_NV_PER_WRITEDEFINE: persistent write lock by writing size 0 TPM_NV_PER_WRITEALL: write in one go Signed-off-by: André Draszik <adraszik@tycoint.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/tpm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tpm.h b/include/tpm.h
index 2a7528dd48..760d94865c 100644
--- a/include/tpm.h
+++ b/include/tpm.h
@@ -84,9 +84,12 @@ enum tpm_capability_areas {
};
#define TPM_NV_PER_GLOBALLOCK (1U << 15)
+#define TPM_NV_PER_PPREAD (1U << 16)
#define TPM_NV_PER_PPWRITE (1U << 0)
#define TPM_NV_PER_READ_STCLEAR (1U << 31)
#define TPM_NV_PER_WRITE_STCLEAR (1U << 14)
+#define TPM_NV_PER_WRITEDEFINE (1U << 13)
+#define TPM_NV_PER_WRITEALL (1U << 12)
enum {
TPM_PUBEK_SIZE = 256,