summaryrefslogtreecommitdiff
path: root/drivers/i2c/omap24xx_i2c.h
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2010-07-19 20:31:55 -0700
committerSandeep Paulraj <s-paulraj@ti.com>2010-08-05 10:11:24 -0400
commitd708395d2f83295fba9d9b18823ce17046793590 (patch)
tree55341b83e3c4ed864af43932aa03d6df3308000c /drivers/i2c/omap24xx_i2c.h
parent674e0b217f794800048d80de09a71255b890a53e (diff)
downloadu-boot-imx-d708395d2f83295fba9d9b18823ce17046793590.zip
u-boot-imx-d708395d2f83295fba9d9b18823ce17046793590.tar.gz
u-boot-imx-d708395d2f83295fba9d9b18823ce17046793590.tar.bz2
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 <steve@sakoman.com> Acked-by: Nishanth Menon <menon.nishanth@gmail.com> Acked-by: Heiko Schocher <hs@denx.de> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'drivers/i2c/omap24xx_i2c.h')
-rw-r--r--drivers/i2c/omap24xx_i2c.h4
1 files changed, 4 insertions, 0 deletions
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