i2c: delay value too low

Reported-by: Tomasz Wlostowski
parent 9b0b02a0
......@@ -27,7 +27,7 @@ static void set_sda(struct fd_dev *fd, int val)
if (val)
reg |= FD_I2CR_SDA_OUT;
fd_writel(fd, reg, FD_REG_I2CR);
ndelay(1250); /* 400kHz -> 2.5us/loop */
ndelay(2000);
}
static void set_scl(struct fd_dev *fd, int val)
......@@ -38,7 +38,7 @@ static void set_scl(struct fd_dev *fd, int val)
if (val)
reg |= FD_I2CR_SCL_OUT;
fd_writel(fd, reg, FD_REG_I2CR);
ndelay(1250); /* 400kHz -> 2.5us/loop */
ndelay(2000);
}
static int get_sda(struct fd_dev *fd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment