summaryrefslogtreecommitdiffstats
path: root/drivers/tpm/tpm_tis_i2c.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-22 18:31:31 -0600
committerSimon Glass <sjg@chromium.org>2015-08-31 07:57:28 -0600
commitf255d31f9063e50b56208fff439b63039cfd7ac6 (patch)
tree4162cd0097a7936ac2a49240d76992b53949621f /drivers/tpm/tpm_tis_i2c.c
parent42c8ec56c531c99e2a346358a12ba5b69481f9de (diff)
downloadu-boot-f255d31f9063e50b56208fff439b63039cfd7ac6.tar.gz
u-boot-f255d31f9063e50b56208fff439b63039cfd7ac6.tar.xz
u-boot-f255d31f9063e50b56208fff439b63039cfd7ac6.zip
dm: tpm: Add a uclass for Trusted Platform Modules
Add a new uclass for TPMs which uses almost the same TIS (TPM Interface Specification) as is currently implemented. Since init() is handled by the normal driver model probe() method, we don't need to implement that. Also rename the transfer method to xfer() which is a less clumbsy name. Once all drivers and users are converted to driver model we can remove the old code. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Christophe Ricard<christophe-h.ricard@st.com> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/tpm/tpm_tis_i2c.c')
-rw-r--r--drivers/tpm/tpm_tis_i2c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tpm/tpm_tis_i2c.c b/drivers/tpm/tpm_tis_i2c.c
index 4b2ef94aa7..645f702215 100644
--- a/drivers/tpm/tpm_tis_i2c.c
+++ b/drivers/tpm/tpm_tis_i2c.c
@@ -25,12 +25,14 @@
#include <fdtdec.h>
#include <linux/compiler.h>
#include <i2c.h>
+#include <tis.h>
#include <tpm.h>
#include <asm-generic/errno.h>
#include <linux/types.h>
#include <linux/unaligned/be_byteshift.h>
#include "tpm_tis_i2c.h"
+#include "tpm_internal.h"
DECLARE_GLOBAL_DATA_PTR;