diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-08-31 18:11:10 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-09-03 00:51:15 +0300 |
commit | c7fa7aeff85cbd71c724e7a7b167c24356de9c5f (patch) | |
tree | 83f095e0bbc6cfbb2b5693dd46b178497c6798ed /drivers/i2c/busses/i2c-designware-core.h | |
parent | 96742775a3c0649b88140803737ffa1915eb4509 (diff) | |
download | linux-c7fa7aeff85cbd71c724e7a7b167c24356de9c5f.tar.xz |
i2c: designware: allow IP specific sda_hold_time
Because some old designware IPs were not supporting setting an SDA hold
time, vendors developed their own solution. Add a way for the final driver
to provide its own SDA hold time handling.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-core.h')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-designware-core.h b/drivers/i2c/busses/i2c-designware-core.h index e367b1af4ab2..f6cad20a86ff 100644 --- a/drivers/i2c/busses/i2c-designware-core.h +++ b/drivers/i2c/busses/i2c-designware-core.h @@ -269,6 +269,7 @@ struct dw_i2c_dev { void (*disable)(struct dw_i2c_dev *dev); void (*disable_int)(struct dw_i2c_dev *dev); int (*init)(struct dw_i2c_dev *dev); + int (*set_sda_hold_time)(struct dw_i2c_dev *dev); int mode; struct i2c_bus_recovery_info rinfo; }; |