[U-Boot] [PATCH 10/21] tpm: Export tpm_clear_and_reenable()
Simon Glass
sjg at chromium.org
Sat Nov 24 04:29:33 UTC 2018
This function is intended to be exported but is not. Add it to the header
file.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
include/tpm-common.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/tpm-common.h b/include/tpm-common.h
index 91a1484b3d6..f9c2ca20539 100644
--- a/include/tpm-common.h
+++ b/include/tpm-common.h
@@ -209,6 +209,14 @@ int tpm_open(struct udevice *dev);
*/
int tpm_close(struct udevice *dev);
+/**
+ * tpm_clear_and_reenable() - Force clear the TPM and reenable it
+ *
+ * @dev: TPM device
+ * @return 0 on success, -ve on failure
+ */
+u32 tpm_clear_and_reenable(struct udevice *dev);
+
/**
* tpm_get_desc() - Get a text description of the TPM
*
--
2.20.0.rc0.387.gc7a69e6b6c-goog
More information about the U-Boot
mailing list