]> git.baikalelectronics.ru Git - uboot.git/commitdiff
tpm: Export tpm_clear_and_reenable()
authorSimon Glass <sjg@chromium.org>
Sat, 24 Nov 2018 04:29:33 +0000 (21:29 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Dec 2018 13:01:34 +0000 (06:01 -0700)
This function is intended to be exported but is not. Add it to the header
file.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/tpm-common.h

index 91a1484b3d63a04a53f0cd2160c9e731ec219eee..f9c2ca20539b96884bcfffa5950f6ce647024340 100644 (file)
@@ -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
  *