mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 05:34:30 +08:00
i2c: designware_i2c: Fix IC_CON register setting for high speed mode
IC_CON[2:1] should be 3 for high speed mode Signed-off-by: Jun Chen <ptchentw@gmail.com> Signed-off-by: Jun Chen <jun.chen@vatics.com>
This commit is contained in:
parent
0c17bb1cbe
commit
70c894f85e
@ -274,7 +274,7 @@ static int _dw_i2c_set_bus_speed(struct dw_i2c *priv, struct i2c_regs *i2c_base,
|
||||
|
||||
switch (config.speed_mode) {
|
||||
case IC_SPEED_MODE_HIGH:
|
||||
cntl |= IC_CON_SPD_SS;
|
||||
cntl |= IC_CON_SPD_HS;
|
||||
writel(config.scl_hcnt, &i2c_base->ic_hs_scl_hcnt);
|
||||
writel(config.scl_lcnt, &i2c_base->ic_hs_scl_lcnt);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user