diff options
author | Jun Chen <jun.chen@vatics.com> | 2020-03-02 16:58:54 +0800 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2020-03-16 08:03:53 +0100 |
commit | 70c894f85e9e116b8f215f522ed96b60ac60f201 (patch) | |
tree | 60dbe3a780ba6e8cb11c60c8f13fdf98c68fbc91 /drivers/i2c/designware_i2c.c | |
parent | 0c17bb1cbe87c5b00880d3445b46c437f3f22e02 (diff) | |
download | u-boot-70c894f85e9e116b8f215f522ed96b60ac60f201.zip u-boot-70c894f85e9e116b8f215f522ed96b60ac60f201.tar.gz u-boot-70c894f85e9e116b8f215f522ed96b60ac60f201.tar.bz2 |
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>
Diffstat (limited to 'drivers/i2c/designware_i2c.c')
-rw-r--r-- | drivers/i2c/designware_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index 0b5e70a..9186fcb 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; |