]> Pileus Git - ~andy/linux/commit
i2c: imx: add INT flag and IEN bit operatation codes
authorJingchang Lu <b35083@freescale.com>
Wed, 7 Aug 2013 09:05:41 +0000 (17:05 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Aug 2013 14:13:48 +0000 (16:13 +0200)
commit171408c21149dd3fd2ed33f19afe2cd558269253
tree1c60898b4f9f9c1f923f26415077ad2ec5a4b088
parent8cc7331ff372b9d03f8b2eb1422052bd99430611
i2c: imx: add INT flag and IEN bit operatation codes

This add bits operation macro that differ between SoCs.
Interrupt flags clear operation in I2SR differ between SoCs:
write zero to clear(w0c) INT flag on i.MX,
but write one to clear(w1c) INT flag on Vybrid.
I2C module enable operation in I2CR also differ between SoCs:
set I2CR_IEN bit enable the module on i.MX,
but clear I2CR_IEN bit enable the module on Vybrid.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c