i2c: mvtwsi: Add compatibility to DM
authormario.six@gdsys.cc <mario.six@gdsys.cc>
Thu, 21 Jul 2016 09:57:10 +0000 (11:57 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 26 Jul 2016 08:20:13 +0000 (10:20 +0200)
commit14a6ff2c4f22010e5d67f25508f09e3b53a1f1c4
treea7c787ce86307304796e715c2db8d07275bcfa8d
parentf8a10ed1fd9986362a39f2b18d89429dfdb078cb
i2c: mvtwsi: Add compatibility to DM

This patch adds the necessary functions and Kconfig entry to make the
MVTWSI I2C driver compatible with the driver model.

A possible device tree entry might look like this:

i2c@11100 {
compatible = "marvell,mv64xxx-i2c";
reg = <0x11000 0x20>;
clock-frequency = <100000>;
u-boot,i2c-slave-addr = <0x0>;
};

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/i2c/Kconfig
drivers/i2c/mvtwsi.c