提交 d7aef138 编写于 作者: J Jean Delvare 提交者: Jean Delvare

i2c: Fix OMAP clock prescaler to match the comment

Signed-off-by: NJean Delvare <khali@linux-fr.org>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 07125ab2
......@@ -231,8 +231,8 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
* 13 2 1
* 19.2 2 1
*/
if (fclk_rate > 16000000)
psc = (fclk_rate + 8000000) / 12000000;
if (fclk_rate > 12000000)
psc = fclk_rate / 12000000;
}
/* Setup clock prescaler to obtain approx 12MHz I2C module clock: */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册