summaryrefslogtreecommitdiff
path: root/include/tpm.h
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2015-10-06 22:54:43 +0200
committerSimon Glass <sjg@chromium.org>2015-10-23 09:42:28 -0600
commitc2b0f600a1707450ef985e28363893987f36fd8a (patch)
tree981149157b60b2df47424e14a7ebdd71cefde480 /include/tpm.h
parent302c5dba0a6eeb5846b628d3d59978dc0751def9 (diff)
downloadu-boot-c2b0f600a1707450ef985e28363893987f36fd8a.tar.gz
u-boot-c2b0f600a1707450ef985e28363893987f36fd8a.tar.bz2
u-boot-c2b0f600a1707450ef985e28363893987f36fd8a.zip
dm: tpm: Remove every compilation switch for TPM driver model
As every TPM drivers support UCLASS_TPM, we can only rely on DM_TPM functions. This simplify a bit the code. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/tpm.h')
-rw-r--r--include/tpm.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/tpm.h b/include/tpm.h
index 086b672718..9a6585d3d4 100644
--- a/include/tpm.h
+++ b/include/tpm.h
@@ -8,8 +8,6 @@
#ifndef __TPM_H
#define __TPM_H
-#include <tis.h>
-
/*
* Here is a partial implementation of TPM commands. Please consult TCG Main
* Specification for definitions of TPM commands.
@@ -196,8 +194,6 @@ struct tpm_permanent_flags {
u8 disable_full_da_logic_info;
} __packed;
-#ifdef CONFIG_DM_TPM
-
/* Max buffer size supported by our tpm */
#define TPM_DEV_BUFSIZE 1260
@@ -375,8 +371,6 @@ int tpm_get_desc(struct udevice *dev, char *buf, int size);
int tpm_xfer(struct udevice *dev, const uint8_t *sendbuf, size_t send_size,
uint8_t *recvbuf, size_t *recv_size);
-#endif /* CONFIG_DM_TPM */
-
/**
* Initialize TPM device. It must be called before any TPM commands.
*