diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-05-15 11:57:13 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-25 20:12:57 -0400 |
commit | 2dc6d97e1edd50634fa9f3dba4746d77cb1b9328 (patch) | |
tree | 22aebd86494f681574b1495482dc67b0e79421ea /include/tpm-v2.h | |
parent | 1922df201003b8736579aed70148a283bb62e33f (diff) | |
download | u-boot-2dc6d97e1edd50634fa9f3dba4746d77cb1b9328.zip u-boot-2dc6d97e1edd50634fa9f3dba4746d77cb1b9328.tar.gz u-boot-2dc6d97e1edd50634fa9f3dba4746d77cb1b9328.tar.bz2 |
tpm: add TPM2_SelfTest command support
Add support for the TPM2_Selftest 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 a9c604d..29422ee 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -134,4 +134,13 @@ enum tpm2_algorithms { */ u32 tpm2_startup(enum tpm2_startup_types mode); +/** + * Issue a TPM2_SelfTest command. + * + * @full_test Asking to perform all tests or only the untested ones + * + * @return code of the operation + */ +u32 tpm2_self_test(enum tpm2_yes_no full_test); + #endif /* __TPM_V2_H */ |