i2c: nomadik: support elder Nomadiks
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 9 Jun 2013 22:00:58 +0000 (00:00 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 15 Jun 2013 14:18:39 +0000 (16:18 +0200)
commit3a205be5e8746aac70d4f5083cef4b3becfbab91
tree64f604e74e538acef7565419c9cc78587033d3c7
parent3d66ac7d81ac70dfaab8a573f7ad2be94f7d6da3
i2c: nomadik: support elder Nomadiks

The Nomadik I2C block was introduced with the Nomadik STn8815
SoC (the STn8810 incidentally is identical to the one named
i2c-stu300.c). However as developments have only been tested
on the DB8500 family, it was not properly working with the
STn8815 anymore.

Rectify this by adding some vendor variant data in the same
manner as other PrimeCells, and switch code path depending
on version.

Tested on the S8815 Nomadik dongle.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-nomadik.c