Commit 583c8714 authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab

V4L/DVB: tm6000: add different tuner reset for terratec

[mchehab@redhat.com: Fix CodingStyle]
Signed-off-by: default avatarStefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d46ca932
...@@ -269,13 +269,29 @@ int tm6000_tuner_callback(void *ptr, int component, int command, int arg) ...@@ -269,13 +269,29 @@ int tm6000_tuner_callback(void *ptr, int component, int command, int arg)
/* Reset codes during load firmware */ /* Reset codes during load firmware */
switch (arg) { switch (arg) {
case 0: case 0:
tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN, /* newer tuner can faster reset */
switch (dev->model) {
case TM6010_BOARD_TERRATEC_CINERGY_HYBRID_XE:
tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
dev->tuner_reset_gpio, 0x01);
msleep(60);
tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
dev->tuner_reset_gpio, 0x00);
msleep(75);
tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
dev->tuner_reset_gpio, 0x01);
msleep(60);
break;
default:
tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
dev->tuner_reset_gpio, 0x00); dev->tuner_reset_gpio, 0x00);
msleep(130); msleep(130);
tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN, tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
dev->tuner_reset_gpio, 0x01); dev->tuner_reset_gpio, 0x01);
msleep(130); msleep(130);
break; break;
}
break;
case 1: case 1:
tm6000_set_reg (dev, REQ_04_EN_DISABLE_MCU_INT, tm6000_set_reg (dev, REQ_04_EN_DISABLE_MCU_INT,
0x02, 0x01); 0x02, 0x01);
......
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