From: Jingchang Lu Date: Wed, 7 Aug 2013 09:05:41 +0000 (+0800) Subject: i2c: imx: add INT flag and IEN bit operatation codes X-Git-Tag: v3.12-rc1~140^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=171408c21149dd3fd2ed33f19afe2cd558269253;p=pandora-kernel.git 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 Reviewed-by: Sascha Hauer Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed