Skip to content

Commit

Permalink
i2c: Fix OMAP clock prescaler to match the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Dec 10, 2006
1 parent 07125ab commit d7aef13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
Expand Down

0 comments on commit d7aef13

Please sign in to comment.