From d708395d2f83295fba9d9b18823ce17046793590 Mon Sep 17 00:00:00 2001 From: Steve Sakoman Date: Mon, 19 Jul 2010 20:31:55 -0700 Subject: ARMV7: Modify i2c driver for more reliable operation on OMAP4 This patch modifies the init routine to follow the TRM recommendations. It also modifies the i2c_read_byte function to reflect subtle differences between the i2c controller in OMAP3 and OMAP4. Signed-off-by: Steve Sakoman Acked-by: Nishanth Menon Acked-by: Heiko Schocher Signed-off-by: Sandeep Paulraj --- drivers/i2c/omap24xx_i2c.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/i2c/omap24xx_i2c.h') diff --git a/drivers/i2c/omap24xx_i2c.h b/drivers/i2c/omap24xx_i2c.h index 92a3416..650e33a 100644 --- a/drivers/i2c/omap24xx_i2c.h +++ b/drivers/i2c/omap24xx_i2c.h @@ -85,6 +85,10 @@ #define I2C_SYSTEST_SDA_I (1 << 1) /* SDA line sense input value */ #define I2C_SYSTEST_SDA_O (1 << 0) /* SDA line drive output value */ +/* I2C System Status Register (I2C_SYSS): */ + +#define I2C_SYSS_RDONE (1 << 0) /* Internel reset monitoring */ + #define I2C_SCLL_SCLL 0 #define I2C_SCLL_SCLL_M 0xFF #define I2C_SCLL_HSSCLL 8 -- cgit v1.1