diff mbox series

[U-Boot,4/5] tpm: add more useful NV storage permission flags

Message ID 20171003155228.9702-4-git@andred.net
State Superseded
Delegated to: Simon Glass
Headers show
Series [U-Boot,1/5] SPL: fix printing of image name | expand

Commit Message

André Draszik Oct. 3, 2017, 3:52 p.m. UTC
From: André Draszik <adraszik@tycoint.com>

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>
---
 include/tpm.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Simon Glass Nov. 17, 2017, 2:05 p.m. UTC | #1
On 3 October 2017 at 09:52, André Draszik <git@andred.net> wrote:
> From: André Draszik <adraszik@tycoint.com>
>
> 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>
> ---
>  include/tpm.h | 3 +++
>  1 file changed, 3 insertions(+)

Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass Nov. 17, 2017, 3:41 p.m. UTC | #2
On 3 October 2017 at 09:52, André Draszik <git@andred.net> wrote:
> From: André Draszik <adraszik@tycoint.com>
>
> 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>
> ---
>  include/tpm.h | 3 +++
>  1 file changed, 3 insertions(+)

Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm thanks!
diff mbox series

Patch

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,