Commit 1259f778c9b419f02e2c155996b2d15ff262901e

Authored by André Draszik
Committed by Simon Glass
1 parent 3c6050277b

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>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -84,9 +84,12 @@
84 84 };
85 85  
86 86 #define TPM_NV_PER_GLOBALLOCK (1U << 15)
  87 +#define TPM_NV_PER_PPREAD (1U << 16)
87 88 #define TPM_NV_PER_PPWRITE (1U << 0)
88 89 #define TPM_NV_PER_READ_STCLEAR (1U << 31)
89 90 #define TPM_NV_PER_WRITE_STCLEAR (1U << 14)
  91 +#define TPM_NV_PER_WRITEDEFINE (1U << 13)
  92 +#define TPM_NV_PER_WRITEALL (1U << 12)
90 93  
91 94 enum {
92 95 TPM_PUBEK_SIZE = 256,