diff options
author | Jun Chen <jun.chen@vatics.com> | 2020-03-02 16:58:56 +0800 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2020-03-16 08:04:17 +0100 |
commit | be26342314a6aacc1bb1e53ad00dfb4b836f0134 (patch) | |
tree | 630401ebf5efe91915bcb4e8dd0c8b505031d653 /drivers/i2c/designware_i2c.c | |
parent | 565e328b959b58c181fdec33b2e161ada90dd521 (diff) | |
download | u-boot-be26342314a6aacc1bb1e53ad00dfb4b836f0134.zip u-boot-be26342314a6aacc1bb1e53ad00dfb4b836f0134.tar.gz u-boot-be26342314a6aacc1bb1e53ad00dfb4b836f0134.tar.bz2 |
i2c: designware_i2c: remove 'has_high_speed'
Remove 'has_high_speed' config since we can check high speed support
from IC_COMP_PARAM_1 register.
Signed-off-by: Jun Chen <ptchentw@gmail.com>
Signed-off-by: Jun Chen <jun.chen@vatics.com>
Diffstat (limited to 'drivers/i2c/designware_i2c.c')
-rw-r--r-- | drivers/i2c/designware_i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index f4fbf3b..74aef77 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -212,8 +212,7 @@ static int calc_bus_speed(struct dw_i2c *priv, int speed, ulong bus_clk, if (priv) scl_sda_cfg = priv->scl_sda_cfg; /* Allow high speed if there is no config, or the config allows it */ - if (speed >= I2C_SPEED_HIGH_RATE && - (!scl_sda_cfg || scl_sda_cfg->has_high_speed)) + if (speed >= I2C_SPEED_HIGH_RATE) i2c_spd = IC_SPEED_MODE_HIGH; else if (speed >= I2C_SPEED_FAST_PLUS_RATE) i2c_spd = IC_SPEED_MODE_FAST_PLUS; |