mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
Merge tag 'bugfixes-for-v2020.04' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c
i2c bugfixes for 2020.04
- i2c: designware_i2c: Correct the selection of speed mode
Fixes: d96440d1e3
("i2c: designware_i2c: Add support for fast-plus speed")
This commit is contained in:
commit
42a2de54d0
1 changed files with 2 additions and 2 deletions
|
@ -212,9 +212,9 @@ static int calc_bus_speed(struct dw_i2c *priv, int speed, ulong bus_clk,
|
|||
if (speed >= I2C_SPEED_HIGH_RATE &&
|
||||
(!scl_sda_cfg || scl_sda_cfg->has_high_speed))
|
||||
i2c_spd = IC_SPEED_MODE_HIGH;
|
||||
else if (speed >= I2C_SPEED_FAST_RATE)
|
||||
i2c_spd = IC_SPEED_MODE_FAST_PLUS;
|
||||
else if (speed >= I2C_SPEED_FAST_PLUS_RATE)
|
||||
i2c_spd = IC_SPEED_MODE_FAST_PLUS;
|
||||
else if (speed >= I2C_SPEED_FAST_RATE)
|
||||
i2c_spd = IC_SPEED_MODE_FAST;
|
||||
else
|
||||
i2c_spd = IC_SPEED_MODE_STANDARD;
|
||||
|
|
Loading…
Add table
Reference in a new issue