summaryrefslogtreecommitdiff
path: root/include/tpm-common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-23 21:29:33 -0700
committerSimon Glass <sjg@chromium.org>2018-12-05 06:01:34 -0700
commit5e69b8bc049cbc357c3d13a6e83e43161642de57 (patch)
treed2773d76d57fbf4d808c529b9606df2d9e14992e /include/tpm-common.h
parent0a60a0a65fa98f265c79f3928d8628aabcba8a92 (diff)
tpm: Export tpm_clear_and_reenable()
This function is intended to be exported but is not. Add it to the header file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/tpm-common.h')
-rw-r--r--include/tpm-common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tpm-common.h b/include/tpm-common.h
index 91a1484b3d..f9c2ca2053 100644
--- a/include/tpm-common.h
+++ b/include/tpm-common.h
@@ -210,6 +210,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
*
* @dev: Device to check