diff options
author | Simon Glass <sjg@chromium.org> | 2015-08-22 18:31:31 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-31 07:57:28 -0600 |
commit | f255d31f9063e50b56208fff439b63039cfd7ac6 (patch) | |
tree | 4162cd0097a7936ac2a49240d76992b53949621f /include/tis.h | |
parent | 42c8ec56c531c99e2a346358a12ba5b69481f9de (diff) |
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 'include/tis.h')
-rw-r--r-- | include/tis.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tis.h b/include/tis.h index 40a1f867627..1985d9e60e6 100644 --- a/include/tis.h +++ b/include/tis.h @@ -7,6 +7,8 @@ #ifndef __TIS_H #define __TIS_H +#ifndef CONFIG_DM_TPM + #include <common.h> /* Low-level interface to access TPM */ @@ -53,5 +55,6 @@ int tis_close(void); */ int tis_sendrecv(const uint8_t *sendbuf, size_t send_size, uint8_t *recvbuf, size_t *recv_len); +#endif #endif /* __TIS_H */ |