ARM: mvebu: Add quirk for i2c for the OpenBlocks AX3-4 board
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 7 Jan 2014 15:26:01 +0000 (16:26 +0100)
committerJason Cooper <jason@lakedaemon.net>
Tue, 14 Jan 2014 02:00:01 +0000 (02:00 +0000)
commit85e618a1be2b2092318178d1d66bdad49cbbeeeb
tree2483f00992cf05a521e864d5ae8e227fca430094
parentaf8d1c63afcbf36eea06789c92e22d4af118d2fb
ARM: mvebu: Add quirk for i2c for the OpenBlocks AX3-4 board

The first variants of Armada XP SoCs (A0 stepping) have issues related
to the i2c controller which prevent to use the offload mechanism and
lead to a kernel hang during boot.

This commit add quirk in the mvebu platform code to check the SoC
version and then update the compatible string for the i2c controller
according to the revision of the SoC. Currently only some OpenBlocks
AX3-4 boards are known to use an A0 revision so the check is done only
for these boards.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: stable@vger.kernel.org # v3.12+: af8d1c63afcb: ARM: mvebu: Add support to get the ID and the revision of a SoC
Cc: stable@vger.kernel.org # v3.12+
Fixes: 930ab3d403ae (i2c: mv64xxx: Add I2C Transaction Generator support)
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/armada-370-xp.c