mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
i2c: Fix OMAP clock prescaler to match the comment
Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
07125ab2c2
commit
d7aef138f3
1 changed files with 2 additions and 2 deletions
|
@ -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: */
|
||||||
|
|
Loading…
Add table
Reference in a new issue