mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-05 18:59:58 +00:00
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 <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
b3ea016689
commit
2770b7d713
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue