diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2013-12-11 15:49:28 +0900 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2014-01-13 08:16:48 +0100 |
commit | da1ed0d20e992296aaafb75e545890bce933d340 (patch) | |
tree | e43996bfbeed451cfbe801ab8711d26e89478530 /drivers/i2c/rcar_i2c.c | |
parent | ad5e14ecdd098cb1441b53862cb22e1c4ef05838 (diff) | |
download | u-boot-imx-da1ed0d20e992296aaafb75e545890bce933d340.zip u-boot-imx-da1ed0d20e992296aaafb75e545890bce933d340.tar.gz u-boot-imx-da1ed0d20e992296aaafb75e545890bce933d340.tar.bz2 |
rcar_i2c: Clear status before start master receive
Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Diffstat (limited to 'drivers/i2c/rcar_i2c.c')
-rw-r--r-- | drivers/i2c/rcar_i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index 01c98d4..50cebd6 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -119,6 +119,8 @@ rcar_i2c_raw_read(struct rcar_i2c *dev, u8 chip, uint addr) /* set slave address, receive */ writel((chip << 1) | 1, &dev->icmar); + /* clear status */ + writel(0, &dev->icmsr); /* start master receive */ writel(MCR_MDBS | MCR_MIE | MCR_ESG, &dev->icmcr); |