提交 a4094a76 编写于 作者: R Richard Zhao 提交者: Ben Dooks

i2c: imx: only imx1 needs disable delay

check cpu_is_mx1() when disable delay.
Signed-off-by: NRichard Zhao <linuxzsc@gmail.com>
Signed-off-by: NBen Dooks <ben-linux@fluff.org>
上级 43309f3b
...@@ -225,11 +225,13 @@ static void i2c_imx_stop(struct imx_i2c_struct *i2c_imx) ...@@ -225,11 +225,13 @@ static void i2c_imx_stop(struct imx_i2c_struct *i2c_imx)
writeb(temp, i2c_imx->base + IMX_I2C_I2CR); writeb(temp, i2c_imx->base + IMX_I2C_I2CR);
i2c_imx->stopped = 1; i2c_imx->stopped = 1;
} }
/* if (cpu_is_mx1()) {
* This delay caused by an i.MXL hardware bug. /*
* If no (or too short) delay, no "STOP" bit will be generated. * This delay caused by an i.MXL hardware bug.
*/ * If no (or too short) delay, no "STOP" bit will be generated.
udelay(i2c_imx->disable_delay); */
udelay(i2c_imx->disable_delay);
}
if (!i2c_imx->stopped) if (!i2c_imx->stopped)
i2c_imx_bus_busy(i2c_imx, 0); i2c_imx_bus_busy(i2c_imx, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册