summaryrefslogtreecommitdiffstats
path: root/drivers/tpm/tpm_tis_lpc.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_lpc.c
parent42c8ec56c531c99e2a346358a12ba5b69481f9de (diff)
downloadtalos-obmc-uboot-f255d31f9063e50b56208fff439b63039cfd7ac6.tar.gz
talos-obmc-uboot-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_lpc.c')
-rw-r--r--drivers/tpm/tpm_tis_lpc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tpm/tpm_tis_lpc.c b/drivers/tpm/tpm_tis_lpc.c
index d09f8cee05..3109c504f3 100644
--- a/drivers/tpm/tpm_tis_lpc.c
+++ b/drivers/tpm/tpm_tis_lpc.c
@@ -15,6 +15,7 @@
#include <common.h>
#include <asm/io.h>
+#include <tis.h>
#include <tpm.h>
#define PREFIX "lpc_tpm: "
@@ -426,9 +427,6 @@ int tis_open(void)
{
u8 locality = 0; /* we use locality zero for everything. */
- if (tis_close())
- return TPM_DRIVER_ERR;
-
/* now request access to locality. */
tpm_write_word(TIS_ACCESS_REQUEST_USE, &lpc_tpm_dev[locality].access);
OpenPOWER on IntegriCloud