Commit 1259f778 authored by André Draszik's avatar André Draszik Committed by Simon Glass
Browse files

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: default avatarAndré Draszik <adraszik@tycoint.com>
Acked-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent 3c605027
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment