V4L/DVB: tm6000: Add additional GPIO for UT821 during frmware loading
authorBee Hock Goh <beehock@gmail.com>
Sun, 25 Apr 2010 06:50:57 +0000 (03:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:18 +0000 (12:58 -0300)
Signed-off-by: Bee Hock Goh <beehock@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-cards.c

index fad0aef082b62e66d80344ebfb878f149fc48f66..3c652f26ebc2447fc406be353ca62a256bd65f91 100644 (file)
@@ -349,6 +349,22 @@ int tm6000_tuner_callback(void *ptr, int component, int command, int arg)
                case 0:
                        /* newer tuner can faster reset */
                        switch (dev->model) {
+                       case TM5600_BOARD_10MOONS_UT821:
+                               tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
+                                              dev->gpio.tuner_reset, 0x01);
+                               tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
+                                              0x300, 0x01);
+                               msleep(10);
+                               tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
+                                              dev->gpio.tuner_reset, 0x00);
+                               tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
+                                              0x300, 0x00);
+                               msleep(10);
+                               tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
+                                              dev->gpio.tuner_reset, 0x01);
+                               tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN,
+                                              0x300, 0x01);
+                               break;
                        case TM6010_BOARD_HAUPPAUGE_900H:
                        case TM6010_BOARD_TERRATEC_CINERGY_HYBRID_XE:
                        case TM6010_BOARD_TWINHAN_TU501: