aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-08-08 23:08:57 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-21 16:04:24 -0400
commit15ba8202e6f9417abd1d6831aca4237407e0ff0b (patch)
tree6268f2bae01b680ae56af6c9d3ee6445dba185fd
parentca681fe0bc9358516c159a35e54069b1a43f25b2 (diff)
[media] af9035: enable AF9033 demod clock source for IT9135
Integrated RF tuner of IT9135 is connected to demod clock source named dyn0_clk. Enable that clock source in order to provide stable clock early enough. Cc: Bimow Chen <Bimow.Chen@ite.com.tw> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/usb/dvb-usb-v2/af9035.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c
index c82beac0e0cb..8ac0423c70d5 100644
--- a/drivers/media/usb/dvb-usb-v2/af9035.c
+++ b/drivers/media/usb/dvb-usb-v2/af9035.c
@@ -647,16 +647,19 @@ static int af9035_read_config(struct dvb_usb_device *d)
647 state->af9033_config[0].ts_mode = AF9033_TS_MODE_USB; 647 state->af9033_config[0].ts_mode = AF9033_TS_MODE_USB;
648 state->af9033_config[1].ts_mode = AF9033_TS_MODE_SERIAL; 648 state->af9033_config[1].ts_mode = AF9033_TS_MODE_SERIAL;
649 649
650 /* eeprom memory mapped location */
651 if (state->chip_type == 0x9135) { 650 if (state->chip_type == 0x9135) {
651 /* feed clock for integrated RF tuner */
652 state->af9033_config[0].dyn0_clk = true;
653 state->af9033_config[1].dyn0_clk = true;
654
652 if (state->chip_version == 0x02) { 655 if (state->chip_version == 0x02) {
653 state->af9033_config[0].tuner = AF9033_TUNER_IT9135_60; 656 state->af9033_config[0].tuner = AF9033_TUNER_IT9135_60;
654 state->af9033_config[1].tuner = AF9033_TUNER_IT9135_60; 657 state->af9033_config[1].tuner = AF9033_TUNER_IT9135_60;
655 tmp16 = 0x00461d; 658 tmp16 = 0x00461d; /* eeprom memory mapped location */
656 } else { 659 } else {
657 state->af9033_config[0].tuner = AF9033_TUNER_IT9135_38; 660 state->af9033_config[0].tuner = AF9033_TUNER_IT9135_38;
658 state->af9033_config[1].tuner = AF9033_TUNER_IT9135_38; 661 state->af9033_config[1].tuner = AF9033_TUNER_IT9135_38;
659 tmp16 = 0x00461b; 662 tmp16 = 0x00461b; /* eeprom memory mapped location */
660 } 663 }
661 664
662 /* check if eeprom exists */ 665 /* check if eeprom exists */