aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-dvb.c
diff options
context:
space:
mode:
authorIgor M. Liplianin <liplianin@netup.ru>2009-06-19 04:45:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-23 02:14:12 -0400
commitf867c3f4eab1d5006df4f3734fab1134feffbeba (patch)
tree201173fa992dab326ec674def03247e58863149e /drivers/media/video/cx23885/cx23885-dvb.c
parentee1ebcfea6ee16491f88e8023554dd214e1ba85c (diff)
V4L/DVB (12098): Create table for customize stv0900 ts registers.
Signed-off-by: Igor M. Liplianin <liplianin@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-dvb.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-dvb.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 236eea0c41e5..48de57b61f63 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -45,6 +45,7 @@
45#include "dibx000_common.h" 45#include "dibx000_common.h"
46#include "zl10353.h" 46#include "zl10353.h"
47#include "stv0900.h" 47#include "stv0900.h"
48#include "stv0900_reg.h"
48#include "stv6110.h" 49#include "stv6110.h"
49#include "lnbh24.h" 50#include "lnbh24.h"
50#include "cx24116.h" 51#include "cx24116.h"
@@ -370,13 +371,25 @@ static struct zl10353_config dvico_fusionhdtv_xc3028 = {
370 .disable_i2c_gate_ctrl = 1, 371 .disable_i2c_gate_ctrl = 1,
371}; 372};
372 373
374static struct stv0900_reg stv0900_ts_regs[] = {
375 { R0900_TSGENERAL, 0x00 },
376 { R0900_P1_TSSPEED, 0x40 },
377 { R0900_P2_TSSPEED, 0x40 },
378 { R0900_P1_TSCFGM, 0xc0 },
379 { R0900_P2_TSCFGM, 0xc0 },
380 { R0900_P1_TSCFGH, 0xe0 },
381 { R0900_P2_TSCFGH, 0xe0 },
382 { R0900_P1_TSCFGL, 0x20 },
383 { R0900_P2_TSCFGL, 0x20 },
384 { 0xffff, 0xff }, /* terminate */
385};
386
373static struct stv0900_config netup_stv0900_config = { 387static struct stv0900_config netup_stv0900_config = {
374 .demod_address = 0x68, 388 .demod_address = 0x68,
375 .xtal = 27000000, 389 .xtal = 27000000,
376 .clkmode = 3,/* 0-CLKI, 2-XTALI, else AUTO */ 390 .clkmode = 3,/* 0-CLKI, 2-XTALI, else AUTO */
377 .diseqc_mode = 2,/* 2/3 PWM */ 391 .diseqc_mode = 2,/* 2/3 PWM */
378 .path1_mode = 2,/*Serial continues clock */ 392 .ts_config_regs = stv0900_ts_regs,
379 .path2_mode = 2,/*Serial continues clock */
380 .tun1_maddress = 0,/* 0x60 */ 393 .tun1_maddress = 0,/* 0x60 */
381 .tun2_maddress = 3,/* 0x63 */ 394 .tun2_maddress = 3,/* 0x63 */
382 .tun1_adc = 1,/* 1 Vpp */ 395 .tun1_adc = 1,/* 1 Vpp */