summaryrefslogtreecommitdiff
path: root/include/tpm-v1.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-21 06:24:52 -0700
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2023-02-28 09:44:33 +0200
commita11be4c303eabb142e074c7ca14b6ae0d293f0cb (patch)
tree99ebfce19f20a994bdc246bff46b39758675512e /include/tpm-v1.h
parent4fef65715196364cb28ddbd7396b6015d78c778c (diff)
downloadu-boot-a11be4c303eabb142e074c7ca14b6ae0d293f0cb.tar.gz
u-boot-a11be4c303eabb142e074c7ca14b6ae0d293f0cb.tar.bz2
u-boot-a11be4c303eabb142e074c7ca14b6ae0d293f0cb.zip
tpm: Implement tpm_auto_start() for TPMv1.2
Add an implementation of this, moving the common call to tpm_init() up into the common API implementation. Add a test. Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/tpm-v1.h')
-rw-r--r--include/tpm-v1.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/tpm-v1.h b/include/tpm-v1.h
index 33d53fb695..60b71e2a4b 100644
--- a/include/tpm-v1.h
+++ b/include/tpm-v1.h
@@ -591,4 +591,15 @@ u32 tpm_set_global_lock(struct udevice *dev);
*/
u32 tpm1_resume(struct udevice *dev);
+/**
+ * tpm1_auto_start() - start up the TPM
+ *
+ * This does not do a self test.
+ *
+ * @dev TPM device
+ * Return: TPM2_RC_SUCCESS, on success, or when the TPM returns
+ * TPM_INVALID_POSTINIT; TPM_FAILEDSELFTEST, if the TPM is in failure state
+ */
+u32 tpm1_auto_start(struct udevice *dev);
+
#endif /* __TPM_V1_H */