]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
I2C: mxc_i2c: Add support for Vybrid VF610 platform
authorAlison Wang <b18965@freescale.com>
Mon, 17 Jun 2013 07:30:39 +0000 (15:30 +0800)
committerHeiko Schocher <hs@denx.de>
Tue, 23 Jul 2013 06:34:57 +0000 (08:34 +0200)
commit30ea41a489cbfed311f904bd08cb3319f0e73b72
treec45a8caec2134234a6fec636a598280e25c0d7f5
parent1221b3d74a0d92f3fcb5ff3e8b6f721f562b8305
I2C: mxc_i2c: Add support for Vybrid VF610 platform

This patch adds support for Vybrid VF610 platform.

There are some differences between i.MX6 and Vybrid for I2C controller.
(1) The registers' offset are different.
(2) The I2C clock divider values are different.
(3) In I2C control register, the enable/disable/reset bit is inverted for Vybrid comparing to i.MX6.
(4) In I2C status register, the interrupt flag bit is cleared by writing "1" for Vybrid.
For i.MX6, this bit is cleared by writing "0".
(5) In I2C status register, the arbitration lost flag bit is cleared by writing "1" for Vybrid.
For i.MX6, this bit is cleared by writing "0".

Signed-off-by: Alison Wang <b18965@freescale.com>
drivers/i2c/mxc_i2c.c