summaryrefslogtreecommitdiffstats
path: root/include/i2c
diff options
context:
space:
mode:
authorJan Weitzel <j.weitzel@phytec.de>2013-09-26 13:40:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-27 16:24:37 +0200
commitc988b8bf7fd74574f0913c76417145bf02ab8fd5 (patch)
treef5a08f6c0ec5341692006b2ccd6c736b37eb053f /include/i2c
parent0b342aca51ae90358ad31690473b294025774135 (diff)
downloadbarebox-c988b8bf7fd74574f0913c76417145bf02ab8fd5.tar.gz
barebox-c988b8bf7fd74574f0913c76417145bf02ab8fd5.tar.xz
i2c-omap: Update driver
The driver didn't work well with at24 driver. NACKS are lost. Errors are lost in isr due to the local variable err. Also we didn't wait for bus free in omap_i2c_xfer_msg. Fix issues and get other improvements from linux kernel Tested on OMAP4 and AM335x Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/i2c')
-rw-r--r--include/i2c/i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/i2c/i2c.h b/include/i2c/i2c.h
index 46185ac921..81e5daa200 100644
--- a/include/i2c/i2c.h
+++ b/include/i2c/i2c.h
@@ -36,6 +36,7 @@ struct i2c_platform_data {
#define I2C_M_DATA_ONLY 0x0002 /* transfer data bytes only */
#define I2C_M_TEN 0x0010 /* this is a ten bit chip address */
#define I2C_M_IGNORE_NAK 0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */
+#define I2C_M_STOP 0x8000 /* if I2C_FUNC_PROTOCOL_MANGLING */
/**
* struct i2c_msg - an I2C transaction segment beginning with START