Skip to content

Commit

Permalink
[media] stv0367: Add support for 16Mhz reference clock
Browse files Browse the repository at this point in the history
The B2100A dvb NIM card from ST has 2x stv0367 demodulators
and 2x TDA18212 silicon tuners, with a 16Mhz crystal. To
get this working properly with the upstream driver we need
to add support for the 16Mhz reference clock.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Peter Griffin authored and Mauro Carvalho Chehab committed Aug 11, 2015
1 parent 86a1028 commit 6930f66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/media/dvb-frontends/stv0367.c
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,11 @@ static int stv0367ter_init(struct dvb_frontend *fe)

switch (state->config->xtal) {
/*set internal freq to 53.125MHz */
case 16000000:
stv0367_writereg(state, R367TER_PLLMDIV, 0x2);
stv0367_writereg(state, R367TER_PLLNDIV, 0x1b);
stv0367_writereg(state, R367TER_PLLSETUP, 0x18);
break;
case 25000000:
stv0367_writereg(state, R367TER_PLLMDIV, 0xa);
stv0367_writereg(state, R367TER_PLLNDIV, 0x55);
Expand Down

0 comments on commit 6930f66

Please sign in to comment.