* [U-Boot] [PATCH] i2c: designware: Allow sending restart conditions
@ 2017-08-07 18:45 Marek Vasut
2017-08-09 4:04 ` Heiko Schocher
2017-08-10 10:08 ` Heiko Schocher
0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2017-08-07 18:45 UTC (permalink / raw)
To: u-boot
Allow sending restart conditions upon direction change as this is
required by some chips.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Heiko Schocher <hs@denx.de>
---
drivers/i2c/designware_i2c.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] i2c: designware: Allow sending restart conditions
2017-08-07 18:45 [U-Boot] [PATCH] i2c: designware: Allow sending restart conditions Marek Vasut
@ 2017-08-09 4:04 ` Heiko Schocher
2017-08-10 10:08 ` Heiko Schocher
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Schocher @ 2017-08-09 4:04 UTC (permalink / raw)
To: u-boot
Hello Marek,
Am 07.08.2017 um 20:45 schrieb Marek Vasut:
> Allow sending restart conditions upon direction change as this is
> required by some chips.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Stefan Roese <sr@denx.de>
> Cc: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Heiko Schocher <hs@denx.de>
> ---
> drivers/i2c/designware_i2c.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks!
Reviewed-by: Heiko Schocher <hs@denxx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] i2c: designware: Allow sending restart conditions
2017-08-07 18:45 [U-Boot] [PATCH] i2c: designware: Allow sending restart conditions Marek Vasut
2017-08-09 4:04 ` Heiko Schocher
@ 2017-08-10 10:08 ` Heiko Schocher
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Schocher @ 2017-08-10 10:08 UTC (permalink / raw)
To: u-boot
Hello Marek,
Am 07.08.2017 um 20:45 schrieb Marek Vasut:
> Allow sending restart conditions upon direction change as this is
> required by some chips.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Stefan Roese <sr@denx.de>
> Cc: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Heiko Schocher <hs@denx.de>
> ---
> drivers/i2c/designware_i2c.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
applied to u-boot-i2c.git
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-10 10:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 18:45 [U-Boot] [PATCH] i2c: designware: Allow sending restart conditions Marek Vasut
2017-08-09 4:04 ` Heiko Schocher
2017-08-10 10:08 ` Heiko Schocher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox