]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00281611 i2c: imx: update i2c clock divider for each transaction
authorFugang Duan <B38611@freescale.com>
Fri, 27 Sep 2013 07:13:19 +0000 (15:13 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:55:48 +0000 (09:55 +0800)
commit26cca5b0404d2bff637efb6e486fe128be15cd5a
treeb6c16ecfefa6c2615a1a654ae6507bde28007888
parent982d244c9eb32eaefb40225314661aea487d87cb
ENGR00281611 i2c: imx: update i2c clock divider for each transaction

i.MX6 I2C clk is from IPG_PERCLK which is sourced from IPG_CLK.
Under normal operation, IPG_CLK is 66MHz, ipg_perclk is at 22MHz.
In low bus freq mode, IPG_CLK is at 12MHz and IPG_PERCLK is down
to 4MHz. So the I2C driver must update the divider register for
each transaction when the current IPG_PERCLK is not equal to the
clock of previous transaction.

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/i2c/busses/i2c-imx.c