diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2008-03-29 20:28:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:09:40 -0400 |
commit | c9dd82c2f978e4ebac1cbb7cee8d379d1090154b (patch) | |
tree | 2f55edb1a1b7fc4611455fd56c2f8b8bfc5c33ed /drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |
parent | 11d3f323930ef625c1018ed13adeb04127c356e0 (diff) |
V4L/DVB (7471): SkyStar2: preparing support for the rev2.8
Support is prepared, but the CX24113-driver .c-file is missing. After sorting out the NDA problems, the file will be there immediatly.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/b2c2/flexcop-fe-tuner.c')
-rw-r--r-- | drivers/media/dvb/b2c2/flexcop-fe-tuner.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c index 46d6f5d8cd1c..6759c3ad234a 100644 --- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c +++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |||
@@ -19,6 +19,11 @@ | |||
19 | #include "dvb-pll.h" | 19 | #include "dvb-pll.h" |
20 | #include "tuner-simple.h" | 20 | #include "tuner-simple.h" |
21 | 21 | ||
22 | #include "cx24123.h" | ||
23 | #include "cx24113.h" | ||
24 | |||
25 | #include "isl6421.h" | ||
26 | |||
22 | /* lnb control */ | 27 | /* lnb control */ |
23 | 28 | ||
24 | static int flexcop_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage) | 29 | static int flexcop_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage) |
@@ -476,11 +481,54 @@ static struct stv0297_config alps_tdee4_stv0297_config = { | |||
476 | // .pll_set = alps_tdee4_stv0297_pll_set, | 481 | // .pll_set = alps_tdee4_stv0297_pll_set, |
477 | }; | 482 | }; |
478 | 483 | ||
484 | |||
485 | static struct cx24123_config skystar2_rev2_8_cx24123_config = { | ||
486 | .demod_address = 0x55, | ||
487 | .dont_use_pll = 1, | ||
488 | .agc_callback = cx24113_agc_callback, | ||
489 | }; | ||
490 | |||
491 | static const struct cx24113_config skystar2_rev2_8_cx24113_config = { | ||
492 | .i2c_addr = 0x54, | ||
493 | .xtal_khz = 10111, | ||
494 | }; | ||
495 | |||
479 | /* try to figure out the frontend, each card/box can have on of the following list */ | 496 | /* try to figure out the frontend, each card/box can have on of the following list */ |
480 | int flexcop_frontend_init(struct flexcop_device *fc) | 497 | int flexcop_frontend_init(struct flexcop_device *fc) |
481 | { | 498 | { |
482 | struct dvb_frontend_ops *ops; | 499 | struct dvb_frontend_ops *ops; |
483 | struct i2c_adapter *i2c = &fc->fc_i2c_adap[0].i2c_adap; | 500 | struct i2c_adapter *i2c = &fc->fc_i2c_adap[0].i2c_adap; |
501 | struct i2c_adapter *i2c_tuner; | ||
502 | |||
503 | /* try the sky v2.8 (cx24123, isl6421) */ | ||
504 | fc->fe = dvb_attach(cx24123_attach, | ||
505 | &skystar2_rev2_8_cx24123_config, i2c); | ||
506 | if (fc->fe != NULL) { | ||
507 | i2c_tuner = cx24123_get_tuner_i2c_adapter(fc->fe); | ||
508 | if (i2c_tuner != NULL) { | ||
509 | if (dvb_attach(cx24113_attach, fc->fe, | ||
510 | &skystar2_rev2_8_cx24113_config, | ||
511 | i2c_tuner) == NULL) | ||
512 | err("CX24113 could NOT be attached"); | ||
513 | else | ||
514 | info("CX24113 successfully attached"); | ||
515 | } | ||
516 | |||
517 | fc->dev_type = FC_SKY_REV28; | ||
518 | |||
519 | fc->fc_i2c_adap[2].no_base_addr = 1; | ||
520 | if (dvb_attach(isl6421_attach, fc->fe, | ||
521 | &fc->fc_i2c_adap[2].i2c_adap, 0x08, 0, 0) == NULL) | ||
522 | err("ISL6421 could NOT be attached"); | ||
523 | else | ||
524 | info("ISL6421 successfully attached"); | ||
525 | |||
526 | /* TODO on i2c_adap[1] addr 0x11 (EEPROM) there seems to be an | ||
527 | * IR-receiver (PIC16F818) - but the card has no input for | ||
528 | * that ??? */ | ||
529 | |||
530 | goto fe_found; | ||
531 | } | ||
484 | 532 | ||
485 | /* try the sky v2.6 (stv0299/Samsung tbmu24112(sl1935)) */ | 533 | /* try the sky v2.6 (stv0299/Samsung tbmu24112(sl1935)) */ |
486 | fc->fe = dvb_attach(stv0299_attach, &samsung_tbmu24112_config, i2c); | 534 | fc->fe = dvb_attach(stv0299_attach, &samsung_tbmu24112_config, i2c); |