Commit d7aef138 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare

i2c: Fix OMAP clock prescaler to match the comment

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 07125ab2
...@@ -231,8 +231,8 @@ static int omap_i2c_init(struct omap_i2c_dev *dev) ...@@ -231,8 +231,8 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
* 13 2 1 * 13 2 1
* 19.2 2 1 * 19.2 2 1
*/ */
if (fclk_rate > 16000000) if (fclk_rate > 12000000)
psc = (fclk_rate + 8000000) / 12000000; psc = fclk_rate / 12000000;
} }
/* Setup clock prescaler to obtain approx 12MHz I2C module clock: */ /* Setup clock prescaler to obtain approx 12MHz I2C module clock: */
......
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