summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-05-15 11:57:12 +0200
committerTom Rini <trini@konsulko.com>2018-05-25 20:12:57 -0400
commit1922df201003b8736579aed70148a283bb62e33f (patch)
tree26ff3f167da436a5eac5613f61d81197e7291259 /include
parentbcdf6b9f26fe9cd452f5f309a6e410ea4513e60b (diff)
tpm: add TPM2_Startup command support
Add support for the TPM2_Startup command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/tpm-v2.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index fac0808426..a9c604dd52 100644
--- a/include/tpm-v2.h
+++ b/include/tpm-v2.h
@@ -125,4 +125,13 @@ enum tpm2_algorithms {
TPM2_ALG_NULL = 0x10,
};
+/**
+ * Issue a TPM2_Startup command.
+ *
+ * @mode TPM startup mode
+ *
+ * @return code of the operation
+ */
+u32 tpm2_startup(enum tpm2_startup_types mode);
+
#endif /* __TPM_V2_H */