diff options
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-dvb.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-dvb.c | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c index 45784a384300..e236df23370e 100644 --- a/drivers/media/video/cx23885/cx23885-dvb.c +++ b/drivers/media/video/cx23885/cx23885-dvb.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include "lnbh24.h" | 49 | #include "lnbh24.h" |
50 | #include "cx24116.h" | 50 | #include "cx24116.h" |
51 | #include "cimax2.h" | 51 | #include "cimax2.h" |
52 | #include "lgs8gxx.h" | ||
52 | #include "netup-eeprom.h" | 53 | #include "netup-eeprom.h" |
53 | #include "netup-init.h" | 54 | #include "netup-init.h" |
54 | #include "lgdt3305.h" | 55 | #include "lgdt3305.h" |
@@ -420,10 +421,29 @@ static struct cx24116_config dvbworld_cx24116_config = { | |||
420 | .demod_address = 0x05, | 421 | .demod_address = 0x05, |
421 | }; | 422 | }; |
422 | 423 | ||
424 | static struct lgs8gxx_config mygica_x8506_lgs8gl5_config = { | ||
425 | .prod = LGS8GXX_PROD_LGS8GL5, | ||
426 | .demod_address = 0x19, | ||
427 | .serial_ts = 0, | ||
428 | .ts_clk_pol = 1, | ||
429 | .ts_clk_gated = 1, | ||
430 | .if_clk_freq = 30400, /* 30.4 MHz */ | ||
431 | .if_freq = 5380, /* 5.38 MHz */ | ||
432 | .if_neg_center = 1, | ||
433 | .ext_adc = 0, | ||
434 | .adc_signed = 0, | ||
435 | .if_neg_edge = 0, | ||
436 | }; | ||
437 | |||
438 | static struct xc5000_config mygica_x8506_xc5000_config = { | ||
439 | .i2c_address = 0x61, | ||
440 | .if_khz = 5380, | ||
441 | }; | ||
442 | |||
423 | static int dvb_register(struct cx23885_tsport *port) | 443 | static int dvb_register(struct cx23885_tsport *port) |
424 | { | 444 | { |
425 | struct cx23885_dev *dev = port->dev; | 445 | struct cx23885_dev *dev = port->dev; |
426 | struct cx23885_i2c *i2c_bus = NULL; | 446 | struct cx23885_i2c *i2c_bus = NULL, *i2c_bus2 = NULL; |
427 | struct videobuf_dvb_frontend *fe0; | 447 | struct videobuf_dvb_frontend *fe0; |
428 | int ret; | 448 | int ret; |
429 | 449 | ||
@@ -745,6 +765,19 @@ static int dvb_register(struct cx23885_tsport *port) | |||
745 | break; | 765 | break; |
746 | } | 766 | } |
747 | break; | 767 | break; |
768 | case CX23885_BOARD_MYGICA_X8506: | ||
769 | i2c_bus = &dev->i2c_bus[0]; | ||
770 | i2c_bus2 = &dev->i2c_bus[1]; | ||
771 | fe0->dvb.frontend = dvb_attach(lgs8gxx_attach, | ||
772 | &mygica_x8506_lgs8gl5_config, | ||
773 | &i2c_bus->i2c_adap); | ||
774 | if (fe0->dvb.frontend != NULL) { | ||
775 | dvb_attach(xc5000_attach, | ||
776 | fe0->dvb.frontend, | ||
777 | &i2c_bus2->i2c_adap, | ||
778 | &mygica_x8506_xc5000_config); | ||
779 | } | ||
780 | break; | ||
748 | default: | 781 | default: |
749 | printk(KERN_INFO "%s: The frontend of your DVB/ATSC card " | 782 | printk(KERN_INFO "%s: The frontend of your DVB/ATSC card " |
750 | " isn't supported yet\n", | 783 | " isn't supported yet\n", |