]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7646): cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products
authorSteven Toth <stoth@hauppauge.com>
Sat, 19 Apr 2008 04:18:47 +0000 (01:18 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:44 +0000 (14:09 -0300)
cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx25840/cx25840-core.c

index ae395f8cf292ed7a940e75e4025ea9d0fb8c8526..7fde678b2c4a5fbb0785af63a77cfbee86cb22d2 100644 (file)
@@ -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;
 }