tpm: add more useful NV storage permission flags
authorAndré Draszik <adraszik@tycoint.com>
Tue, 3 Oct 2017 15:55:53 +0000 (16:55 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Nov 2017 14:15:52 +0000 (07:15 -0700)
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>
include/tpm.h

index 2a7528dd486c2ce639d7d0234884d6d3886dd7fa..760d94865c3330abf7a1b8f727b6e039c9bf27a5 100644 (file)
@@ -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,