diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 12:22:29 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 04:40:27 -0600 |
commit | 6e64ec1256875f6fafa853a74108fb57fd769e98 (patch) | |
tree | c8773fba035b292d24cee7c52da6505564bbfe91 /include/tpm-v1.h | |
parent | 34a5e8a2f155589e6274fbeef4be0aacf5244a27 (diff) | |
download | u-boot-6e64ec1256875f6fafa853a74108fb57fd769e98.tar.gz |
tpm: Add a few new commands for v1
These are needed for the 2018 version of Chromium OS vboot. Add an
implementation for TPM v1, with v2 to come later.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/tpm-v1.h')
-rw-r--r-- | include/tpm-v1.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/tpm-v1.h b/include/tpm-v1.h index f9ffbb2656..be2eca946f 100644 --- a/include/tpm-v1.h +++ b/include/tpm-v1.h @@ -525,4 +525,32 @@ u32 tpm_find_key_sha1(const u8 auth[20], const u8 pubkey_digest[20], */ u32 tpm_get_random(void *data, u32 count); +/** + * tpm_finalise_physical_presence() - Finalise physical presence + * + * @return return code of the operation (0 = success) + */ +u32 tpm_finalise_physical_presence(void); + +/** + * tpm_nv_set_locked() - lock the non-volatile space + * + * @return return code of the operation (0 = success) + */ +u32 tpm_nv_set_locked(void); + +/** + * tpm_set_global_lock() - set the global lock + * + * @return return code of the operation (0 = success) + */ +u32 tpm_set_global_lock(void); + +/** + * tpm_resume() - start up the TPM from resume (after suspend) + * + * @return return code of the operation (0 = success) + */ +u32 tpm_resume(void); + #endif /* __TPM_V1_H */ |