From: Jun Chen Date: Mon, 2 Mar 2020 08:58:54 +0000 (+0800) Subject: i2c: designware_i2c: Fix IC_CON register setting for high speed mode X-Git-Tag: v2020.07-rc1~41^2~8^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70c894f85e9e116b8f215f522ed96b60ac60f201;p=oweals%2Fu-boot.git 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 Signed-off-by: Jun Chen --- diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index 0b5e70af59..9186fcb7dc 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -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;