OMAP24xx I2C: Add support for set-speed
authorHannes Petermaier <oe5hpm@oevsv.at>
Mon, 3 Feb 2014 20:22:18 +0000 (21:22 +0100)
committerHeiko Schocher <hs@denx.de>
Thu, 20 Feb 2014 05:48:23 +0000 (06:48 +0100)
commitd5243359e1afc957acd373dbbde1cf6c70ee5485
tree45813e1119488ea7a5e40a37b980a4982b227eeb
parentd22643e7e819a94a32652cfb041c24d4fd99a7ec
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>
drivers/i2c/omap24xx_i2c.c
include/i2c.h