From 171408c21149dd3fd2ed33f19afe2cd558269253 Mon Sep 17 00:00:00 2001 From: Jingchang Lu Date: Wed, 7 Aug 2013 17:05:41 +0800 Subject: [PATCH] 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-format-patch failed