diff options
author | Tom Rini <trini@konsulko.com> | 2017-08-10 07:22:59 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-10 07:22:59 -0400 |
commit | b24065c4ef21687787a74eef22dfa9232096f965 (patch) | |
tree | b6fcc2d1e4f2bad093c1cc335e0523847026f4aa /drivers/i2c/designware_i2c.c | |
parent | 4edc31c5931b22e06f33a33d9a8f30cc3248cf1e (diff) | |
parent | 014e47f028526689aaa8ecb2e9164572937afe44 (diff) |
Merge git://git.denx.de/u-boot-i2c
Diffstat (limited to 'drivers/i2c/designware_i2c.c')
-rw-r--r-- | drivers/i2c/designware_i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index d4df35a69a..8cfed2194c 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -374,7 +374,8 @@ static void __dw_i2c_init(struct i2c_regs *i2c_base, int speed, int slaveaddr) /* Disable i2c */ dw_i2c_enable(i2c_base, false); - writel((IC_CON_SD | IC_CON_SPD_FS | IC_CON_MM), &i2c_base->ic_con); + writel(IC_CON_SD | IC_CON_RE | IC_CON_SPD_FS | IC_CON_MM, + &i2c_base->ic_con); writel(IC_RX_TL, &i2c_base->ic_rx_tl); writel(IC_TX_TL, &i2c_base->ic_tx_tl); writel(IC_STOP_DET, &i2c_base->ic_intr_mask); |