diff options
author | Simon Glass <sjg@chromium.org> | 2020-01-23 21:48:15 +0300 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2020-01-27 09:22:01 +0300 |
commit | 96fe11c3dace9038e2df0e7c4625d1c3e330425f (patch) | |
tree | 031e52df4c897ca563ccf299ba16b2eaa7fe53bd /drivers/i2c/designware_i2c_pci.c | |
parent | e71b6f6622d6a3380d866943799f36e473a3cd9b (diff) | |
download | u-boot-96fe11c3dace9038e2df0e7c4625d1c3e330425f.tar.xz |
i2c: designware_i2c: Add spike supression
Some versions of this peripheral include a spike-suppression phase of the
bus. Add support for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/designware_i2c_pci.c')
-rw-r--r-- | drivers/i2c/designware_i2c_pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/i2c/designware_i2c_pci.c b/drivers/i2c/designware_i2c_pci.c index 2b974a07c3..50f03e3d90 100644 --- a/drivers/i2c/designware_i2c_pci.c +++ b/drivers/i2c/designware_i2c_pci.c @@ -62,6 +62,8 @@ static int designware_i2c_pci_ofdata_to_platdata(struct udevice *dev) if (IS_ENABLED(CONFIG_INTEL_BAYTRAIL)) /* Use BayTrail specific timing values */ priv->scl_sda_cfg = &byt_config; + if (dev_get_driver_data(dev) == INTEL_APL) + priv->has_spk_cnt = true; return designware_i2c_ofdata_to_platdata(dev); } |