1 /*
2 	STV6110(A) Silicon tuner driver
3 
4 	Copyright (C) Manu Abraham <abraham.manu@gmail.com>
5 
6 	Copyright (C) ST Microelectronics
7 
8 	This program is free software; you can redistribute it and/or modify
9 	it under the terms of the GNU General Public License as published by
10 	the Free Software Foundation; either version 2 of the License, or
11 	(at your option) any later version.
12 
13 	This program is distributed in the hope that it will be useful,
14 	but WITHOUT ANY WARRANTY; without even the implied warranty of
15 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 	GNU General Public License for more details.
17 
18 	You should have received a copy of the GNU General Public License
19 	along with this program; if not, write to the Free Software
20 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22 
23 #ifndef __STV6110x_REG_H
24 #define __STV6110x_REG_H
25 
26 #define STV6110x_CTRL1				0x00
27 #define STV6110x_OFFST_CTRL1_K			3
28 #define STV6110x_WIDTH_CTRL1_K			5
29 #define STV6110x_OFFST_CTRL1_LPT		2
30 #define STV6110x_WIDTH_CTRL1_LPT		1
31 #define STV6110x_OFFST_CTRL1_RX			1
32 #define STV6110x_WIDTH_CTRL1_RX			1
33 #define STV6110x_OFFST_CTRL1_SYN		0
34 #define STV6110x_WIDTH_CTRL1_SYN		1
35 
36 #define STV6110x_CTRL2				0x01
37 #define STV6110x_OFFST_CTRL2_CO_DIV		6
38 #define STV6110x_WIDTH_CTRL2_CO_DIV		2
39 #define STV6110x_OFFST_CTRL2_RSVD		5
40 #define STV6110x_WIDTH_CTRL2_RSVD		1
41 #define STV6110x_OFFST_CTRL2_REFOUT_SEL		4
42 #define STV6110x_WIDTH_CTRL2_REFOUT_SEL		1
43 #define STV6110x_OFFST_CTRL2_BBGAIN		0
44 #define STV6110x_WIDTH_CTRL2_BBGAIN		4
45 
46 #define STV6110x_TNG0				0x02
47 #define STV6110x_OFFST_TNG0_N_DIV_7_0		0
48 #define STV6110x_WIDTH_TNG0_N_DIV_7_0		8
49 
50 #define STV6110x_TNG1				0x03
51 #define STV6110x_OFFST_TNG1_R_DIV		6
52 #define STV6110x_WIDTH_TNG1_R_DIV		2
53 #define STV6110x_OFFST_TNG1_PRESC32_ON		5
54 #define STV6110x_WIDTH_TNG1_PRESC32_ON		1
55 #define STV6110x_OFFST_TNG1_DIV4SEL		4
56 #define STV6110x_WIDTH_TNG1_DIV4SEL		1
57 #define STV6110x_OFFST_TNG1_N_DIV_11_8		0
58 #define STV6110x_WIDTH_TNG1_N_DIV_11_8		4
59 
60 
61 #define STV6110x_CTRL3				0x04
62 #define STV6110x_OFFST_CTRL3_DCLOOP_OFF		7
63 #define STV6110x_WIDTH_CTRL3_DCLOOP_OFF		1
64 #define STV6110x_OFFST_CTRL3_RCCLK_OFF		6
65 #define STV6110x_WIDTH_CTRL3_RCCLK_OFF		1
66 #define STV6110x_OFFST_CTRL3_ICP		5
67 #define STV6110x_WIDTH_CTRL3_ICP		1
68 #define STV6110x_OFFST_CTRL3_CF			0
69 #define STV6110x_WIDTH_CTRL3_CF			5
70 
71 #define STV6110x_STAT1				0x05
72 #define STV6110x_OFFST_STAT1_CALVCO_STRT	2
73 #define STV6110x_WIDTH_STAT1_CALVCO_STRT	1
74 #define STV6110x_OFFST_STAT1_CALRC_STRT		1
75 #define STV6110x_WIDTH_STAT1_CALRC_STRT		1
76 #define STV6110x_OFFST_STAT1_LOCK		0
77 #define STV6110x_WIDTH_STAT1_LOCK		1
78 
79 #define STV6110x_STAT2				0x06
80 #define STV6110x_STAT3				0x07
81 
82 #endif /* __STV6110x_REG_H */
83