2 * $Id: cx88-cards.c,v 1.90 2005/07/28 02:47:42 mkrufky Exp $
4 * device driver for Conexant 2388x based TV cards
7 * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #include <linux/init.h>
25 #include <linux/module.h>
26 #include <linux/pci.h>
27 #include <linux/delay.h>
31 /* ------------------------------------------------------------------ */
32 /* board config info */
34 struct cx88_board cx88_boards[] = {
35 [CX88_BOARD_UNKNOWN] = {
36 .name = "UNKNOWN/GENERIC",
39 .tuner_addr = ADDR_UNSET,
40 .radio_addr = ADDR_UNSET,
42 .type = CX88_VMUX_COMPOSITE1,
45 .type = CX88_VMUX_COMPOSITE2,
48 .type = CX88_VMUX_COMPOSITE3,
51 .type = CX88_VMUX_COMPOSITE4,
55 [CX88_BOARD_HAUPPAUGE] = {
56 .name = "Hauppauge WinTV 34xxx models",
59 .tuner_addr = ADDR_UNSET,
60 .radio_addr = ADDR_UNSET,
61 .tda9887_conf = TDA9887_PRESENT,
63 .type = CX88_VMUX_TELEVISION,
65 .gpio0 = 0xff00, // internal decoder
67 .type = CX88_VMUX_DEBUG,
69 .gpio0 = 0xff01, // mono from tuner chip
71 .type = CX88_VMUX_COMPOSITE1,
75 .type = CX88_VMUX_SVIDEO,
85 .name = "GDI Black Gold",
88 .tuner_addr = ADDR_UNSET,
89 .radio_addr = ADDR_UNSET,
91 .type = CX88_VMUX_TELEVISION,
94 .type = CX88_VMUX_SVIDEO,
98 [CX88_BOARD_PIXELVIEW] = {
100 .tuner_type = TUNER_PHILIPS_PAL,
102 .tuner_addr = ADDR_UNSET,
103 .radio_addr = ADDR_UNSET,
105 .type = CX88_VMUX_TELEVISION,
107 .gpio0 = 0xff00, // internal decoder
109 .type = CX88_VMUX_COMPOSITE1,
112 .type = CX88_VMUX_SVIDEO,
120 [CX88_BOARD_ATI_WONDER_PRO] = {
121 .name = "ATI TV Wonder Pro",
122 .tuner_type = TUNER_PHILIPS_4IN1,
124 .tuner_addr = ADDR_UNSET,
125 .radio_addr = ADDR_UNSET,
126 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
128 .type = CX88_VMUX_TELEVISION,
132 .type = CX88_VMUX_COMPOSITE1,
136 .type = CX88_VMUX_SVIDEO,
141 [CX88_BOARD_WINFAST2000XP_EXPERT] = {
142 .name = "Leadtek Winfast 2000XP Expert",
143 .tuner_type = TUNER_PHILIPS_4IN1,
145 .tuner_addr = ADDR_UNSET,
146 .radio_addr = ADDR_UNSET,
147 .tda9887_conf = TDA9887_PRESENT,
149 .type = CX88_VMUX_TELEVISION,
156 .type = CX88_VMUX_COMPOSITE1,
163 .type = CX88_VMUX_SVIDEO,
178 [CX88_BOARD_AVERTV_303] = {
179 .name = "AverTV Studio 303 (M126)",
180 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
182 .tuner_addr = ADDR_UNSET,
183 .radio_addr = ADDR_UNSET,
184 .tda9887_conf = TDA9887_PRESENT,
186 .type = CX88_VMUX_TELEVISION,
190 .type = CX88_VMUX_COMPOSITE1,
194 .type = CX88_VMUX_SVIDEO,
202 [CX88_BOARD_MSI_TVANYWHERE_MASTER] = {
203 // added gpio values thanks to Michal
204 // values for PAL from DScaler
205 .name = "MSI TV-@nywhere Master",
206 .tuner_type = TUNER_MT2032,
208 .tuner_addr = ADDR_UNSET,
209 .radio_addr = ADDR_UNSET,
210 .tda9887_conf = TDA9887_PRESENT,
212 .type = CX88_VMUX_TELEVISION,
218 .type = CX88_VMUX_COMPOSITE1,
224 .type = CX88_VMUX_SVIDEO,
234 [CX88_BOARD_WINFAST_DV2000] = {
235 .name = "Leadtek Winfast DV2000",
236 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
238 .tuner_addr = ADDR_UNSET,
239 .radio_addr = ADDR_UNSET,
240 .tda9887_conf = TDA9887_PRESENT,
242 .type = CX88_VMUX_TELEVISION,
250 .type = CX88_VMUX_COMPOSITE1,
257 .type = CX88_VMUX_SVIDEO,
272 [CX88_BOARD_LEADTEK_PVR2000] = {
273 // gpio values for PAL version from regspy by DScaler
274 .name = "Leadtek PVR 2000",
275 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
277 .tuner_addr = ADDR_UNSET,
278 .radio_addr = ADDR_UNSET,
279 .tda9887_conf = TDA9887_PRESENT,
281 .type = CX88_VMUX_TELEVISION,
285 .type = CX88_VMUX_COMPOSITE1,
289 .type = CX88_VMUX_SVIDEO,
299 [CX88_BOARD_IODATA_GVVCP3PCI] = {
300 .name = "IODATA GV-VCP3/PCI",
301 .tuner_type = TUNER_ABSENT,
303 .tuner_addr = ADDR_UNSET,
304 .radio_addr = ADDR_UNSET,
306 .type = CX88_VMUX_COMPOSITE1,
309 .type = CX88_VMUX_COMPOSITE2,
312 .type = CX88_VMUX_SVIDEO,
316 [CX88_BOARD_PROLINK_PLAYTVPVR] = {
317 .name = "Prolink PlayTV PVR",
318 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
320 .tuner_addr = ADDR_UNSET,
321 .radio_addr = ADDR_UNSET,
322 .tda9887_conf = TDA9887_PRESENT,
324 .type = CX88_VMUX_TELEVISION,
328 .type = CX88_VMUX_COMPOSITE1,
332 .type = CX88_VMUX_SVIDEO,
341 [CX88_BOARD_ASUS_PVR_416] = {
342 .name = "ASUS PVR-416",
343 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
345 .tuner_addr = ADDR_UNSET,
346 .radio_addr = ADDR_UNSET,
347 .tda9887_conf = TDA9887_PRESENT,
349 .type = CX88_VMUX_TELEVISION,
353 .type = CX88_VMUX_SVIDEO,
355 .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
363 [CX88_BOARD_MSI_TVANYWHERE] = {
364 .name = "MSI TV-@nywhere",
365 .tuner_type = TUNER_MT2032,
367 .tuner_addr = ADDR_UNSET,
368 .radio_addr = ADDR_UNSET,
369 .tda9887_conf = TDA9887_PRESENT,
371 .type = CX88_VMUX_TELEVISION,
376 .type = CX88_VMUX_COMPOSITE1,
381 .type = CX88_VMUX_SVIDEO,
387 [CX88_BOARD_KWORLD_DVB_T] = {
388 .name = "KWorld/VStream XPert DVB-T",
389 .tuner_type = TUNER_ABSENT,
391 .tuner_addr = ADDR_UNSET,
392 .radio_addr = ADDR_UNSET,
394 .type = CX88_VMUX_COMPOSITE1,
399 .type = CX88_VMUX_SVIDEO,
406 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = {
407 .name = "DViCO FusionHDTV DVB-T1",
408 .tuner_type = TUNER_ABSENT, /* No analog tuner */
410 .tuner_addr = ADDR_UNSET,
411 .radio_addr = ADDR_UNSET,
413 .type = CX88_VMUX_COMPOSITE1,
417 .type = CX88_VMUX_SVIDEO,
423 [CX88_BOARD_KWORLD_LTV883] = {
424 .name = "KWorld LTV883RF",
425 .tuner_type = TUNER_TNF_8831BGFF,
427 .tuner_addr = ADDR_UNSET,
428 .radio_addr = ADDR_UNSET,
430 .type = CX88_VMUX_TELEVISION,
434 .type = CX88_VMUX_DEBUG,
436 .gpio0 = 0x07f9, // mono from tuner chip
438 .type = CX88_VMUX_COMPOSITE1,
442 .type = CX88_VMUX_SVIDEO,
451 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = {
452 .name = "DViCO FusionHDTV 3 Gold-Q",
453 .tuner_type = TUNER_MICROTUNE_4042FI5,
455 .tuner_addr = ADDR_UNSET,
456 .radio_addr = ADDR_UNSET,
458 GPIO[0] resets DT3302 DTV receiver
461 GPIO[1] mutes analog audio output connector
462 0 - enable selected source
464 GPIO[2] selects source for analog audio output connector
465 0 - analog audio input connector on tab
466 1 - analog DAC output from CX23881 chip
467 GPIO[3] selects RF input connector on tuner module
468 0 - RF connector labeled CABLE
469 1 - RF connector labeled ANT
470 GPIO[4] selects high RF for QAM256 mode
475 .type = CX88_VMUX_TELEVISION,
479 .type = CX88_VMUX_CABLE,
483 .type = CX88_VMUX_COMPOSITE1,
487 .type = CX88_VMUX_SVIDEO,
493 [CX88_BOARD_HAUPPAUGE_DVB_T1] = {
494 .name = "Hauppauge Nova-T DVB-T",
495 .tuner_type = TUNER_ABSENT,
497 .tuner_addr = ADDR_UNSET,
498 .radio_addr = ADDR_UNSET,
500 .type = CX88_VMUX_DVB,
505 [CX88_BOARD_CONEXANT_DVB_T1] = {
506 .name = "Conexant DVB-T reference design",
507 .tuner_type = TUNER_ABSENT,
509 .tuner_addr = ADDR_UNSET,
510 .radio_addr = ADDR_UNSET,
512 .type = CX88_VMUX_DVB,
517 [CX88_BOARD_PROVIDEO_PV259] = {
518 .name = "Provideo PV259",
519 .tuner_type = TUNER_PHILIPS_FQ1216ME,
521 .tuner_addr = ADDR_UNSET,
522 .radio_addr = ADDR_UNSET,
524 .type = CX88_VMUX_TELEVISION,
529 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = {
530 .name = "DViCO FusionHDTV DVB-T Plus",
531 .tuner_type = TUNER_ABSENT, /* No analog tuner */
533 .tuner_addr = ADDR_UNSET,
534 .radio_addr = ADDR_UNSET,
536 .type = CX88_VMUX_COMPOSITE1,
540 .type = CX88_VMUX_SVIDEO,
546 [CX88_BOARD_DNTV_LIVE_DVB_T] = {
547 .name = "digitalnow DNTV Live! DVB-T",
548 .tuner_type = TUNER_ABSENT,
550 .tuner_addr = ADDR_UNSET,
551 .radio_addr = ADDR_UNSET,
553 .type = CX88_VMUX_COMPOSITE1,
558 .type = CX88_VMUX_SVIDEO,
565 [CX88_BOARD_PCHDTV_HD3000] = {
566 .name = "pcHDTV HD3000 HDTV",
567 .tuner_type = TUNER_THOMSON_DTT7610,
569 .tuner_addr = ADDR_UNSET,
570 .radio_addr = ADDR_UNSET,
572 .type = CX88_VMUX_TELEVISION,
579 .type = CX88_VMUX_COMPOSITE1,
586 .type = CX88_VMUX_SVIDEO,
603 [CX88_BOARD_HAUPPAUGE_ROSLYN] = {
604 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
605 // GPIO values obtained from regspy, courtesy Sean Covel
606 .name = "Hauppauge WinTV 28xxx (Roslyn) models",
609 .tuner_addr = ADDR_UNSET,
610 .radio_addr = ADDR_UNSET,
612 .type = CX88_VMUX_TELEVISION,
614 .gpio0 = 0xed12, // internal decoder
617 .type = CX88_VMUX_DEBUG,
619 .gpio0 = 0xff01, // mono from tuner chip
621 .type = CX88_VMUX_COMPOSITE1,
625 .type = CX88_VMUX_SVIDEO,
637 [CX88_BOARD_DIGITALLOGIC_MEC] = {
638 .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)",
639 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
641 .tuner_addr = ADDR_UNSET,
642 .radio_addr = ADDR_UNSET,
643 .tda9887_conf = TDA9887_PRESENT,
645 .type = CX88_VMUX_TELEVISION,
649 .type = CX88_VMUX_COMPOSITE1,
653 .type = CX88_VMUX_SVIDEO,
663 [CX88_BOARD_IODATA_GVBCTV7E] = {
664 .name = "IODATA GV/BCTV7E",
665 .tuner_type = TUNER_PHILIPS_FQ1286,
667 .tuner_addr = ADDR_UNSET,
668 .radio_addr = ADDR_UNSET,
669 .tda9887_conf = TDA9887_PRESENT,
671 .type = CX88_VMUX_TELEVISION,
675 .type = CX88_VMUX_COMPOSITE1,
679 .type = CX88_VMUX_SVIDEO,
684 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
685 .name = "PixelView PlayTV Ultra Pro (Stereo)",
686 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
687 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
689 .tuner_addr = ADDR_UNSET,
690 .radio_addr = ADDR_UNSET,
692 .type = CX88_VMUX_TELEVISION,
694 .gpio0 = 0xbf61, /* internal decoder */
696 .type = CX88_VMUX_COMPOSITE1,
700 .type = CX88_VMUX_SVIDEO,
709 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = {
710 .name = "DViCO FusionHDTV 3 Gold-T",
711 .tuner_type = TUNER_THOMSON_DTT7611,
713 .tuner_addr = ADDR_UNSET,
714 .radio_addr = ADDR_UNSET,
715 /* See DViCO FusionHDTV 3 Gold-Q for GPIO documentation. */
717 .type = CX88_VMUX_TELEVISION,
721 .type = CX88_VMUX_COMPOSITE1,
725 .type = CX88_VMUX_SVIDEO,
731 [CX88_BOARD_ADSTECH_DVB_T_PCI] = {
732 .name = "ADS Tech Instant TV DVB-T PCI",
733 .tuner_type = TUNER_ABSENT,
735 .tuner_addr = ADDR_UNSET,
736 .radio_addr = ADDR_UNSET,
738 .type = CX88_VMUX_COMPOSITE1,
743 .type = CX88_VMUX_SVIDEO,
750 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = {
751 .name = "TerraTec Cinergy 1400 DVB-T",
752 .tuner_type = TUNER_ABSENT,
754 .type = CX88_VMUX_DVB,
760 const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
762 /* ------------------------------------------------------------------ */
763 /* PCI subsystem IDs */
765 struct cx88_subid cx88_subids[] = {
769 .card = CX88_BOARD_HAUPPAUGE,
773 .card = CX88_BOARD_HAUPPAUGE,
777 .card = CX88_BOARD_GDI,
780 .subdevice = 0x0107, /* with mpeg encoder */
781 .card = CX88_BOARD_GDI,
783 .subvendor = PCI_VENDOR_ID_ATI,
785 .card = CX88_BOARD_ATI_WONDER_PRO,
789 .card = CX88_BOARD_WINFAST2000XP_EXPERT,
792 .subdevice = 0x6613, /* NTSC */
793 .card = CX88_BOARD_WINFAST2000XP_EXPERT,
797 .card = CX88_BOARD_WINFAST_DV2000,
801 .card = CX88_BOARD_LEADTEK_PVR2000,
805 .card = CX88_BOARD_LEADTEK_PVR2000,
809 .card = CX88_BOARD_AVERTV_303,
813 .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
817 .card = CX88_BOARD_IODATA_GVVCP3PCI,
820 .subdevice = 0x4823, /* with mpeg encoder */
821 .card = CX88_BOARD_ASUS_PVR_416,
825 .card = CX88_BOARD_KWORLD_DVB_T,
829 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
833 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
837 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
841 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
845 .card = CX88_BOARD_CONEXANT_DVB_T1,
849 .card = CX88_BOARD_PROVIDEO_PV259,
853 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
857 .card = CX88_BOARD_PIXELVIEW,
860 .subdevice = 0x3000, /* HD-3000 card */
861 .card = CX88_BOARD_PCHDTV_HD3000,
865 .card = CX88_BOARD_DNTV_LIVE_DVB_T,
869 .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
873 .card = CX88_BOARD_DIGITALLOGIC_MEC,
877 .card = CX88_BOARD_IODATA_GVBCTV7E,
881 .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
885 .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
888 const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
890 /* ----------------------------------------------------------------------- */
891 /* some leadtek specific stuff */
893 static void __devinit leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
895 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
898 * Byte 0 is 1 on the NTSC board.
901 if (eeprom_data[4] != 0x7d ||
902 eeprom_data[5] != 0x10 ||
903 eeprom_data[7] != 0x66) {
904 printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
910 core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
912 printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
913 "tuner=%d, eeprom[0]=0x%02x\n",
914 core->name, core->tuner_type, eeprom_data[0]);
918 /* ----------------------------------------------------------------------- */
920 static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
924 tveeprom_hauppauge_analog(&tv, eeprom_data);
925 core->tuner_type = tv.tuner_type;
926 core->has_radio = tv.has_radio;
929 static int hauppauge_eeprom_dvb(struct cx88_core *core, u8 *ee)
934 /* Make sure we support the board model */
935 model = ee[0x1f] << 24 | ee[0x1e] << 16 | ee[0x1d] << 8 | ee[0x1c];
943 printk("%s: warning: unknown hauppauge model #%d\n",
948 /* Make sure we support the tuner */
951 case 0x4B: /* dtt 7595 */
952 case 0x4C: /* dtt 7592 */
955 printk("%s: error: unknown hauppauge tuner 0x%02x\n",
959 printk(KERN_INFO "%s: hauppauge eeprom: model=%d, tuner=%d\n",
960 core->name, model, tuner);
964 /* ----------------------------------------------------------------------- */
965 /* some GDI (was: Modular Technology) specific stuff */
972 [ 0x01 ] = { .id = TUNER_ABSENT,
974 [ 0x02 ] = { .id = TUNER_ABSENT,
976 [ 0x03 ] = { .id = TUNER_ABSENT,
978 [ 0x04 ] = { .id = TUNER_ABSENT,
980 [ 0x05 ] = { .id = TUNER_ABSENT,
983 [ 0x10 ] = { .id = TUNER_ABSENT,
985 .name = "TEMIC_4049" },
986 [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
987 .name = "TEMIC_4136" },
988 [ 0x12 ] = { .id = TUNER_ABSENT,
989 .name = "TEMIC_4146" },
991 [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
993 .name = "PHILIPS_FQ1216_MK3" },
994 [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
995 .name = "PHILIPS_FQ1236_MK3" },
996 [ 0x22 ] = { .id = TUNER_ABSENT,
997 .name = "PHILIPS_FI1236_MK3" },
998 [ 0x23 ] = { .id = TUNER_ABSENT,
999 .name = "PHILIPS_FI1216_MK3" },
1002 static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
1004 char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
1005 ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
1007 printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
1008 name ? name : "unknown");
1011 core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
1012 core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
1015 /* ----------------------------------------------------------------------- */
1017 void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
1021 if (0 == pci->subsystem_vendor &&
1022 0 == pci->subsystem_device) {
1023 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
1024 "%s: be autodetected. Please pass card=<n> insmod option to\n"
1025 "%s: workaround that. Redirect complaints to the vendor of\n"
1026 "%s: the TV card. Best regards,\n"
1028 core->name,core->name,core->name,core->name,core->name);
1030 printk("%s: Your board isn't known (yet) to the driver. You can\n"
1031 "%s: try to pick one of the existing card configs via\n"
1032 "%s: card=<n> insmod option. Updating to the latest\n"
1033 "%s: version might help as well.\n",
1034 core->name,core->name,core->name,core->name);
1036 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
1038 for (i = 0; i < cx88_bcount; i++)
1039 printk("%s: card=%d -> %s\n",
1040 core->name, i, cx88_boards[i].name);
1043 void cx88_card_setup(struct cx88_core *core)
1045 static u8 eeprom[128];
1047 if (0 == core->i2c_rc) {
1048 core->i2c_client.addr = 0xa0 >> 1;
1049 tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
1052 switch (core->board) {
1053 case CX88_BOARD_HAUPPAUGE:
1054 case CX88_BOARD_HAUPPAUGE_ROSLYN:
1055 if (0 == core->i2c_rc)
1056 hauppauge_eeprom(core,eeprom+8);
1058 case CX88_BOARD_GDI:
1059 if (0 == core->i2c_rc)
1060 gdi_eeprom(core,eeprom);
1062 case CX88_BOARD_WINFAST2000XP_EXPERT:
1063 if (0 == core->i2c_rc)
1064 leadtek_eeprom(core,eeprom);
1066 case CX88_BOARD_HAUPPAUGE_DVB_T1:
1067 if (0 == core->i2c_rc)
1068 hauppauge_eeprom_dvb(core,eeprom);
1070 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
1071 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
1072 /* GPIO0:0 is hooked to mt352 reset pin */
1073 cx_set(MO_GP0_IO, 0x00000101);
1074 cx_clear(MO_GP0_IO, 0x00000001);
1076 cx_set(MO_GP0_IO, 0x00000101);
1078 case CX88_BOARD_KWORLD_DVB_T:
1079 case CX88_BOARD_DNTV_LIVE_DVB_T:
1080 cx_set(MO_GP0_IO, 0x00000707);
1081 cx_set(MO_GP2_IO, 0x00000101);
1082 cx_clear(MO_GP2_IO, 0x00000001);
1084 cx_clear(MO_GP0_IO, 0x00000007);
1085 cx_set(MO_GP2_IO, 0x00000101);
1088 if (cx88_boards[core->board].radio.type == CX88_RADIO)
1089 core->has_radio = 1;
1092 /* ------------------------------------------------------------------ */
1094 EXPORT_SYMBOL(cx88_boards);
1095 EXPORT_SYMBOL(cx88_bcount);
1096 EXPORT_SYMBOL(cx88_subids);
1097 EXPORT_SYMBOL(cx88_idcount);
1098 EXPORT_SYMBOL(cx88_card_list);
1099 EXPORT_SYMBOL(cx88_card_setup);
1105 * kate: eol "unix"; indent-width 3; remove-trailing-space on; replace-trailing-space-save on; tab-width 8; replace-tabs off; space-indent off; mixed-indent off