i2c: mv64xxx: Fix timing issue on Armada XP (errata FE-8471889)
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 22 Aug 2013 14:19:06 +0000 (16:19 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 23 Aug 2013 08:15:51 +0000 (10:15 +0200)
commitc1d15b68aab86f1f3b602fa65e7618c0065d46e6
tree929537c122d396ce4e763b1e73a199a64eb70663
parent930ab3d403ae43f19d7e6d972139e02c9b8a5ec6
i2c: mv64xxx: Fix timing issue on Armada XP (errata FE-8471889)

All the Armada XP (mv78230, mv78260 and mv78460) have a silicon issue
in the I2C controller which violate the i2c repeated start
timing. The I2C standard requires a minimum of 4.7us for the repeated
start condition whereas the I2C controller of the Armada XP this time
is 2.9us.

So this patch adds a 5us delay for the start case only if the
the compatible i2c-mv78230 is set.

Based on the initals patches from Zbigniew Bodek

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Zbigniew Bodek <zbb@semihalf.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c