]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
i2c: i2c-omap: Fix standard and fast mode prescalers
authorEero Nurkkala <ext-eero.nurkkala@nokia.com>
Wed, 26 Nov 2008 13:44:15 +0000 (15:44 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 8 Jan 2009 13:35:45 +0000 (15:35 +0200)
commitd3282b387ddc630393d6158e8d6cffb7b1d8a42a
tree62b6d046dd614b1e008bda104abb49f4673353d7
parent3487568e15df6e133f5f55779dec614dbeb68a99
i2c: i2c-omap: Fix standard and fast mode prescalers

The prescalers for 100 kHz and 400 kHz mode
are wrong for omap 3430 and omap 2430. The
internal clock is the fclock divided by the
prescaler. The PSC is an 8 bit field in
omap3430 and omap2430. Moreover, the scll and
sclh values should be adjusted properly.
Having the correct prescaler is important in
the process of getting a finite i2c clock. In
addition, the prescaler is used in the process
of activating the correct noise filter and thus,
lets more error resilient i2c communications.

Signed-off-by: Eero Nurkkala <ext-eero.nurkkala@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c