i2c-davinci: Fix TX setup for more SoCs
authorJon Povey <jon.povey@racelogic.co.uk>
Tue, 12 Oct 2010 04:47:05 +0000 (13:47 +0900)
committerBen Dooks <ben-linux@fluff.org>
Mon, 18 Oct 2010 00:25:33 +0000 (01:25 +0100)
commitc5b4afec8e669bbe265daea24037fccfc42c4fe3
treedc711356af9d49180cca3806b93ee2fa7548befe
parent85a331881dd52a93e7d4c57bcaf5486cc8718465
i2c-davinci: Fix TX setup for more SoCs

This patch is an improvement to 4bba0fd8d1c6d405df666e2573e1a1f917098be0
which got to mainline a little early.

Sudhakar Rajashekhara explains that at least OMAP-L138 requires MDR mode
settings before DXR for correct behaviour, so load MDR first with
STT cleared and later load again with STT set.

Tested on DM355 connected to Techwell TW2836 and Wolfson WM8985

Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk>
Acked-by: Troy Kisky <troy.kisky@boundarydevices.com>
Tested-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-davinci.c