summaryrefslogtreecommitdiff
path: root/lib/tpm-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tpm-common.c')
-rw-r--r--lib/tpm-common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tpm-common.c b/lib/tpm-common.c
index 6afe59b1fe..2bf0b41e26 100644
--- a/lib/tpm-common.c
+++ b/lib/tpm-common.c
@@ -12,6 +12,13 @@
#include <tpm-common.h>
#include "tpm-utils.h"
+enum tpm_version tpm_get_version(struct udevice *dev)
+{
+ struct tpm_chip_priv *priv = dev_get_uclass_priv(dev);
+
+ return priv->version;
+}
+
int pack_byte_string(u8 *str, size_t size, const char *format, ...)
{
va_list args;