diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2017-09-06 17:34:35 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-10-02 21:59:33 -0500 |
commit | 6c22ac75211b140e56f28825fb3518f5b07aa305 (patch) | |
tree | 6d4d0553724d7f34886405ed591f836080decb88 /libstb/drivers/tpm_i2c_interface.h | |
parent | 47cb47a1c0dad85514773fd7686fb50e5ace3966 (diff) | |
download | skiboot-6c22ac75211b140e56f28825fb3518f5b07aa305.zip skiboot-6c22ac75211b140e56f28825fb3518f5b07aa305.tar.gz skiboot-6c22ac75211b140e56f28825fb3518f5b07aa305.tar.bz2 |
i2c: Move tpm i2c wrapper code into core
The TPM code has a wrapper around the main i2c API to allow synchronous use.
Move it into core/i2c.c so it can be used by other possible users. In
particular, a future patch will use this to drive OpenCAPI device resets
during boot time.
Cc: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
Cc: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb/drivers/tpm_i2c_interface.h')
-rw-r--r-- | libstb/drivers/tpm_i2c_interface.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libstb/drivers/tpm_i2c_interface.h b/libstb/drivers/tpm_i2c_interface.h index 0ac021e..d2acc1a 100644 --- a/libstb/drivers/tpm_i2c_interface.h +++ b/libstb/drivers/tpm_i2c_interface.h @@ -20,7 +20,6 @@ #include <i2c.h> #include <stdlib.h> -extern void tpm_i2c_request_complete(int rc, struct i2c_request *req); extern int tpm_i2c_request_send(int tpm_bus_id, int tpm_dev_addr, int read_write, uint32_t offset, uint32_t offset_bytes, void* buf, size_t buflen); |