From: Steven Toth Date: Sat, 19 Apr 2008 04:18:47 +0000 (-0300) Subject: V4L/DVB (7646): cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products X-Git-Tag: v2.6.26-rc1~1084^2~79 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2770b7d7136f9c6a51ae7fd1d29fa58caf2bcf1c;p=linux-2.6-omap-h63xx.git V4L/DVB (7646): cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c index ae395f8cf29..7fde678b2c4 100644 --- a/drivers/media/video/cx25840/cx25840-core.c +++ b/drivers/media/video/cx25840/cx25840-core.c @@ -1268,6 +1268,12 @@ static int cx25840_probe(struct i2c_client *client) state->id = id; state->rev = device_id; + if (state->is_cx23885) { + /* Drive GPIO2 direction and values */ + cx25840_write(client, 0x160, 0x1d); + cx25840_write(client, 0x164, 0x00); + } + return 0; }