I2C: mxc_i2c rework
authorMarek Vasut <marek.vasut@gmail.com>
Thu, 22 Sep 2011 09:22:12 +0000 (09:22 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 30 Sep 2011 20:01:05 +0000 (22:01 +0200)
commitdb84140bb7cfbe60d200cca72f79c37ec7ae87d6
tree51935923f2e7fee4b202bb178573c9a90098436c
parent37a6d2085e069166e830982bbe4676a1d7bb4674
I2C: mxc_i2c rework

Rewrite the mxc_i2c driver.
 * This version is much closer to Linux implementation.
 * Fixes IPG_PERCLK being incorrectly used as clock source
 * Fixes behaviour of the driver on iMX51
 * Clean up coding style a bit ;-)

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Jason Hui <jason.hui@linaro.org>
Acked-by: Jason Liu <jason.hui@linro.org>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Jason Liu <jason.hui@linro.org>
drivers/i2c/mxc_i2c.c