summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHannes Petermaier <oe5hpm@oevsv.at>2014-02-03 21:22:18 +0100
committerHeiko Schocher <hs@denx.de>2014-02-20 06:48:23 +0100
commitd5243359e1afc957acd373dbbde1cf6c70ee5485 (patch)
tree45813e1119488ea7a5e40a37b980a4982b227eeb /include
parentd22643e7e819a94a32652cfb041c24d4fd99a7ec (diff)
downloadu-boot-imx-d5243359e1afc957acd373dbbde1cf6c70ee5485.zip
u-boot-imx-d5243359e1afc957acd373dbbde1cf6c70ee5485.tar.gz
u-boot-imx-d5243359e1afc957acd373dbbde1cf6c70ee5485.tar.bz2
OMAP24xx I2C: Add support for set-speed
Adds support for set-speed on the OMAP24xx I2C Adapter. Changes to omap24_i2c_write(...) for polling ARDY Bit from IRQ-Status. Otherwise on a subsequent call the transfer of last byte from the predecessor is aborted and therefore lost. For exmaple when i2c_write(...) is followed by a i2c_setspeed(...) (which has to deactivate and activate master for changing psc,...). Minor cosmetical changes. Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at> Cc: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index f93a183..1b4078e 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -68,6 +68,7 @@ struct i2c_adapter {
uint (*set_bus_speed)(struct i2c_adapter *adap,
uint speed);
int speed;
+ int waitdelay;
int slaveaddr;
int init_done;
int hwadapnr;