rockchip: i2c: enable i2c controller for rk3066 and rk3188
authorAlexander Kochetkov <al.kochet@gmail.com>
Mon, 26 Feb 2018 17:42:54 +0000 (20:42 +0300)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 20 Jul 2018 23:55:25 +0000 (01:55 +0200)
commit5944bd9a25291560405e5d86612a75a6791acf23
tree4ac8ac2eef0e04582b83ff66df3bbf504fad6342
parent0dd1fc09bb16869fd8adaaad082cd554c60b2c1a
rockchip: i2c: enable i2c controller for rk3066 and rk3188

rk3066 and rk3188 has two I2C controller implementations.
Current I2C driver wan't work with legacy implementation.
Switching between controllers is performed using a bit inside
GFR_SOC_CON1 register. The bit setting is performed by pinctrl
driver. The patch ask pinctrl to do settings.

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
[fix warnings by including the rk3228 variant in the compatible-list]:
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/i2c/rk_i2c.c