xref: /linux/drivers/media/dvb-frontends/lgdt330x_priv.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*c942fddfSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
29a0bf528SMauro Carvalho Chehab /*
39a0bf528SMauro Carvalho Chehab  *    Support for LGDT3302 and LGDT3303 - VSB/QAM
49a0bf528SMauro Carvalho Chehab  *
59a0bf528SMauro Carvalho Chehab  *    Copyright (C) 2005 Wilson Michaels <wilsonmichaels@earthlink.net>
69a0bf528SMauro Carvalho Chehab  */
79a0bf528SMauro Carvalho Chehab 
89a0bf528SMauro Carvalho Chehab #ifndef _LGDT330X_PRIV_
99a0bf528SMauro Carvalho Chehab #define _LGDT330X_PRIV_
109a0bf528SMauro Carvalho Chehab 
119a0bf528SMauro Carvalho Chehab /* i2c control register addresses */
129a0bf528SMauro Carvalho Chehab enum I2C_REG {
139a0bf528SMauro Carvalho Chehab 	TOP_CONTROL= 0x00,
149a0bf528SMauro Carvalho Chehab 	IRQ_MASK= 0x01,
159a0bf528SMauro Carvalho Chehab 	IRQ_STATUS= 0x02,
169a0bf528SMauro Carvalho Chehab 	VSB_CARRIER_FREQ0= 0x16,
179a0bf528SMauro Carvalho Chehab 	VSB_CARRIER_FREQ1= 0x17,
189a0bf528SMauro Carvalho Chehab 	VSB_CARRIER_FREQ2= 0x18,
199a0bf528SMauro Carvalho Chehab 	VSB_CARRIER_FREQ3= 0x19,
209a0bf528SMauro Carvalho Chehab 	CARRIER_MSEQAM1= 0x1a,
219a0bf528SMauro Carvalho Chehab 	CARRIER_MSEQAM2= 0x1b,
229a0bf528SMauro Carvalho Chehab 	CARRIER_LOCK= 0x1c,
239a0bf528SMauro Carvalho Chehab 	TIMING_RECOVERY= 0x1d,
249a0bf528SMauro Carvalho Chehab 	AGC_DELAY0= 0x2a,
259a0bf528SMauro Carvalho Chehab 	AGC_DELAY1= 0x2b,
269a0bf528SMauro Carvalho Chehab 	AGC_DELAY2= 0x2c,
279a0bf528SMauro Carvalho Chehab 	AGC_RF_BANDWIDTH0= 0x2d,
289a0bf528SMauro Carvalho Chehab 	AGC_RF_BANDWIDTH1= 0x2e,
299a0bf528SMauro Carvalho Chehab 	AGC_RF_BANDWIDTH2= 0x2f,
309a0bf528SMauro Carvalho Chehab 	AGC_LOOP_BANDWIDTH0= 0x30,
319a0bf528SMauro Carvalho Chehab 	AGC_LOOP_BANDWIDTH1= 0x31,
329a0bf528SMauro Carvalho Chehab 	AGC_FUNC_CTRL1= 0x32,
339a0bf528SMauro Carvalho Chehab 	AGC_FUNC_CTRL2= 0x33,
349a0bf528SMauro Carvalho Chehab 	AGC_FUNC_CTRL3= 0x34,
359a0bf528SMauro Carvalho Chehab 	AGC_RFIF_ACC0= 0x39,
369a0bf528SMauro Carvalho Chehab 	AGC_RFIF_ACC1= 0x3a,
379a0bf528SMauro Carvalho Chehab 	AGC_RFIF_ACC2= 0x3b,
389a0bf528SMauro Carvalho Chehab 	AGC_STATUS= 0x3f,
399a0bf528SMauro Carvalho Chehab 	SYNC_STATUS_VSB= 0x43,
409a0bf528SMauro Carvalho Chehab 	DEMUX_CONTROL= 0x66,
419a0bf528SMauro Carvalho Chehab 	LGDT3302_EQPH_ERR0= 0x47,
429a0bf528SMauro Carvalho Chehab 	LGDT3302_EQ_ERR1= 0x48,
439a0bf528SMauro Carvalho Chehab 	LGDT3302_EQ_ERR2= 0x49,
449a0bf528SMauro Carvalho Chehab 	LGDT3302_PH_ERR1= 0x4a,
459a0bf528SMauro Carvalho Chehab 	LGDT3302_PH_ERR2= 0x4b,
469a0bf528SMauro Carvalho Chehab 	LGDT3302_PACKET_ERR_COUNTER1= 0x6a,
479a0bf528SMauro Carvalho Chehab 	LGDT3302_PACKET_ERR_COUNTER2= 0x6b,
489a0bf528SMauro Carvalho Chehab 	LGDT3303_EQPH_ERR0= 0x6e,
499a0bf528SMauro Carvalho Chehab 	LGDT3303_EQ_ERR1= 0x6f,
509a0bf528SMauro Carvalho Chehab 	LGDT3303_EQ_ERR2= 0x70,
519a0bf528SMauro Carvalho Chehab 	LGDT3303_PH_ERR1= 0x71,
529a0bf528SMauro Carvalho Chehab 	LGDT3303_PH_ERR2= 0x72,
539a0bf528SMauro Carvalho Chehab 	LGDT3303_PACKET_ERR_COUNTER1= 0x8b,
549a0bf528SMauro Carvalho Chehab 	LGDT3303_PACKET_ERR_COUNTER2= 0x8c,
559a0bf528SMauro Carvalho Chehab };
569a0bf528SMauro Carvalho Chehab 
579a0bf528SMauro Carvalho Chehab #endif /* _LGDT330X_PRIV_ */
58