i2c: mv64xxx: make the registers offset configurable
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 12 Jun 2013 16:53:31 +0000 (18:53 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 15 Jun 2013 11:37:40 +0000 (13:37 +0200)
commit004e8ed7cc67f4ba07cba95af269210db11a544c
tree2349f49501d14f6f48f30748f128a147531ea900
parent683e69b8bb4744a4088c80d05762c4258afe47e1
i2c: mv64xxx: make the registers offset configurable

The Allwinner i2c controller uses the same logic as the Marvell one, but
with slightly different register offsets.

Introduce a structure that will be passed by either the pdata or
associated to the compatible strings, and that holds the various
registers that might be needed.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c