From 047c89263645b7ab71162b40f60815487662fbec Mon Sep 17 00:00:00 2001 From: Vladimir Barinov Date: Mon, 14 Jan 2019 16:41:09 +0300 Subject: [PATCH 094/122] lvds: ti9x4: fix remote gpio enablement on UB913 This fix enablemnet of remote gpios on UB913 Signed-off-by: Vladimir Barinov --- drivers/media/i2c/soc_camera/ti9x4.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/soc_camera/ti9x4.c b/drivers/media/i2c/soc_camera/ti9x4.c index 7b8209b..db60ebd 100644 --- a/drivers/media/i2c/soc_camera/ti9x4.c +++ b/drivers/media/i2c/soc_camera/ti9x4.c @@ -325,8 +325,15 @@ static int ti9x4_initialize(struct i2c_client *client) usleep_range(1000, 1500); /* wait 1ms */ client->addr = priv->ti9x3_addr_map[idx]; /* TI9X3 I2C addr */ - reg8_write(client, 0x0d, 0xf0); /* Enable all remote GPIOs */ - reg8_write(client, 0x0e, 0xf0); /* Enable serializer GPIOs */ + switch (priv->ser_id) { + case TI913_ID: + reg8_write(client, 0x0d, 0x55); /* Enable remote GPIO0/1 */ + break; + case TI953_ID: + reg8_write(client, 0x0d, 0xf0); /* Enable all remote GPIOs */ + reg8_write(client, 0x0e, 0xf0); /* Enable serializer GPIOs */ + break; + } client->addr = priv->des_addr; } -- 2.7.4