diff options
author | Rosen Kolev <rosen.kolev@amk-drives.bg> | 2011-09-29 11:57:02 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-10-07 15:42:48 +0200 |
commit | 502ecda2d17ed4b50b6c4d5afb04832013996173 (patch) | |
tree | 787e1797aac61a2d223bd9fbf6c259c20a365e78 /include/i2c | |
parent | c7efd11b38fa5c0ec264a2724735df07ec5f08d8 (diff) | |
download | barebox-502ecda2d17ed4b50b6c4d5afb04832013996173.tar.gz barebox-502ecda2d17ed4b50b6c4d5afb04832013996173.tar.xz |
Allow data-only i2c transfers
Modified the i2c_imx driver to support data-only transfers, without
command byte. This allows to construct more complex i2c transfers
and support non genuine devices like Atmel ATxx secure memory, where the
master reads data after a write command.
Signed-off-by: Rosen Kolev <rosen.kolev@amk-drives.bg>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/i2c')
-rw-r--r-- | include/i2c/i2c.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/i2c/i2c.h b/include/i2c/i2c.h index 2507d68a34..ccbf518c97 100644 --- a/include/i2c/i2c.h +++ b/include/i2c/i2c.h @@ -30,6 +30,7 @@ struct i2c_platform_data { #define I2C_NAME_SIZE 20 #define I2C_M_RD 0x0001 /* read data, from slave to master */ +#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 */ |