diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-05-15 11:57:12 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-25 20:12:57 -0400 |
commit | 1922df201003b8736579aed70148a283bb62e33f (patch) | |
tree | 26ff3f167da436a5eac5613f61d81197e7291259 /include/tpm-v2.h | |
parent | bcdf6b9f26fe9cd452f5f309a6e410ea4513e60b (diff) | |
download | u-boot-1922df201003b8736579aed70148a283bb62e33f.zip u-boot-1922df201003b8736579aed70148a283bb62e33f.tar.gz u-boot-1922df201003b8736579aed70148a283bb62e33f.tar.bz2 |
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/tpm-v2.h')
-rw-r--r-- | include/tpm-v2.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h index fac0808..a9c604d 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 */ |