Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] stv0367: Add support for 16Mhz reference clock

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>

authored by

Peter Griffin and committed by
Mauro Carvalho Chehab
6930f669 86a10283

+5
+5
drivers/media/dvb-frontends/stv0367.c
··· 1554 1554 1555 1555 switch (state->config->xtal) { 1556 1556 /*set internal freq to 53.125MHz */ 1557 + case 16000000: 1558 + stv0367_writereg(state, R367TER_PLLMDIV, 0x2); 1559 + stv0367_writereg(state, R367TER_PLLNDIV, 0x1b); 1560 + stv0367_writereg(state, R367TER_PLLSETUP, 0x18); 1561 + break; 1557 1562 case 25000000: 1558 1563 stv0367_writereg(state, R367TER_PLLMDIV, 0xa); 1559 1564 stv0367_writereg(state, R367TER_PLLNDIV, 0x55);