提交 2770b7d7 编写于 作者: S Steven Toth 提交者: Mauro Carvalho Chehab

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: NSteven Toth <stoth@hauppauge.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 b3ea0166
...@@ -1268,6 +1268,12 @@ static int cx25840_probe(struct i2c_client *client) ...@@ -1268,6 +1268,12 @@ static int cx25840_probe(struct i2c_client *client)
state->id = id; state->id = id;
state->rev = device_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; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册