Commit ad5f74c0 authored by Igor M. Liplianin's avatar Igor M. Liplianin Committed by Mauro Carvalho Chehab

V4L/DVB (12486): cx88: fix TBS 8920 card support

It does matter to set explicitly gpio0 value in
cx88_board structure for TBS 8920 card.
Signed-off-by: default avatarIgor M. Liplianin <liplianin@me.by>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent decee2e8
...@@ -1953,7 +1953,8 @@ static const struct cx88_board cx88_boards[] = { ...@@ -1953,7 +1953,8 @@ static const struct cx88_board cx88_boards[] = {
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.input = {{ .input = {{
.type = CX88_VMUX_DVB, .type = CX88_VMUX_DVB,
.vmux = 1, .vmux = 0,
.gpio0 = 0x8080,
} }, } },
.mpeg = CX88_MPEG_DVB, .mpeg = CX88_MPEG_DVB,
}, },
...@@ -3211,7 +3212,11 @@ static void cx88_card_setup(struct cx88_core *core) ...@@ -3211,7 +3212,11 @@ static void cx88_card_setup(struct cx88_core *core)
case CX88_BOARD_PROF_6200: case CX88_BOARD_PROF_6200:
case CX88_BOARD_PROF_7300: case CX88_BOARD_PROF_7300:
case CX88_BOARD_SATTRADE_ST4200: case CX88_BOARD_SATTRADE_ST4200:
cx_write(MO_GP0_IO, 0x8000);
msleep(100);
cx_write(MO_SRST_IO, 0); cx_write(MO_SRST_IO, 0);
msleep(10);
cx_write(MO_GP0_IO, 0x8080);
msleep(100); msleep(100);
cx_write(MO_SRST_IO, 1); cx_write(MO_SRST_IO, 1);
msleep(100); msleep(100);
......
...@@ -424,17 +424,16 @@ static int tevii_dvbs_set_voltage(struct dvb_frontend *fe, ...@@ -424,17 +424,16 @@ static int tevii_dvbs_set_voltage(struct dvb_frontend *fe,
struct cx8802_dev *dev= fe->dvb->priv; struct cx8802_dev *dev= fe->dvb->priv;
struct cx88_core *core = dev->core; struct cx88_core *core = dev->core;
cx_set(MO_GP0_IO, 0x6040);
switch (voltage) { switch (voltage) {
case SEC_VOLTAGE_13: case SEC_VOLTAGE_13:
printk("LNB Voltage SEC_VOLTAGE_13\n"); cx_clear(MO_GP0_IO, 0x20);
cx_write(MO_GP0_IO, 0x00006040);
break; break;
case SEC_VOLTAGE_18: case SEC_VOLTAGE_18:
printk("LNB Voltage SEC_VOLTAGE_18\n"); cx_set(MO_GP0_IO, 0x20);
cx_write(MO_GP0_IO, 0x00006060);
break; break;
case SEC_VOLTAGE_OFF: case SEC_VOLTAGE_OFF:
printk("LNB Voltage SEC_VOLTAGE_off\n"); cx_clear(MO_GP0_IO, 0x20);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment