• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 	STV6110(A) Silicon tuner driver
4 
5 	Copyright (C) Manu Abraham <abraham.manu@gmail.com>
6 
7 	Copyright (C) ST Microelectronics
8 
9 */
10 
11 #ifndef __STV6110x_REG_H
12 #define __STV6110x_REG_H
13 
14 #define STV6110x_CTRL1				0x00
15 #define STV6110x_OFFST_CTRL1_K			3
16 #define STV6110x_WIDTH_CTRL1_K			5
17 #define STV6110x_OFFST_CTRL1_LPT		2
18 #define STV6110x_WIDTH_CTRL1_LPT		1
19 #define STV6110x_OFFST_CTRL1_RX			1
20 #define STV6110x_WIDTH_CTRL1_RX			1
21 #define STV6110x_OFFST_CTRL1_SYN		0
22 #define STV6110x_WIDTH_CTRL1_SYN		1
23 
24 #define STV6110x_CTRL2				0x01
25 #define STV6110x_OFFST_CTRL2_CO_DIV		6
26 #define STV6110x_WIDTH_CTRL2_CO_DIV		2
27 #define STV6110x_OFFST_CTRL2_RSVD		5
28 #define STV6110x_WIDTH_CTRL2_RSVD		1
29 #define STV6110x_OFFST_CTRL2_REFOUT_SEL		4
30 #define STV6110x_WIDTH_CTRL2_REFOUT_SEL		1
31 #define STV6110x_OFFST_CTRL2_BBGAIN		0
32 #define STV6110x_WIDTH_CTRL2_BBGAIN		4
33 
34 #define STV6110x_TNG0				0x02
35 #define STV6110x_OFFST_TNG0_N_DIV_7_0		0
36 #define STV6110x_WIDTH_TNG0_N_DIV_7_0		8
37 
38 #define STV6110x_TNG1				0x03
39 #define STV6110x_OFFST_TNG1_R_DIV		6
40 #define STV6110x_WIDTH_TNG1_R_DIV		2
41 #define STV6110x_OFFST_TNG1_PRESC32_ON		5
42 #define STV6110x_WIDTH_TNG1_PRESC32_ON		1
43 #define STV6110x_OFFST_TNG1_DIV4SEL		4
44 #define STV6110x_WIDTH_TNG1_DIV4SEL		1
45 #define STV6110x_OFFST_TNG1_N_DIV_11_8		0
46 #define STV6110x_WIDTH_TNG1_N_DIV_11_8		4
47 
48 
49 #define STV6110x_CTRL3				0x04
50 #define STV6110x_OFFST_CTRL3_DCLOOP_OFF		7
51 #define STV6110x_WIDTH_CTRL3_DCLOOP_OFF		1
52 #define STV6110x_OFFST_CTRL3_RCCLK_OFF		6
53 #define STV6110x_WIDTH_CTRL3_RCCLK_OFF		1
54 #define STV6110x_OFFST_CTRL3_ICP		5
55 #define STV6110x_WIDTH_CTRL3_ICP		1
56 #define STV6110x_OFFST_CTRL3_CF			0
57 #define STV6110x_WIDTH_CTRL3_CF			5
58 
59 #define STV6110x_STAT1				0x05
60 #define STV6110x_OFFST_STAT1_CALVCO_STRT	2
61 #define STV6110x_WIDTH_STAT1_CALVCO_STRT	1
62 #define STV6110x_OFFST_STAT1_CALRC_STRT		1
63 #define STV6110x_WIDTH_STAT1_CALRC_STRT		1
64 #define STV6110x_OFFST_STAT1_LOCK		0
65 #define STV6110x_WIDTH_STAT1_LOCK		1
66 
67 #define STV6110x_STAT2				0x06
68 #define STV6110x_STAT3				0x07
69 
70 #endif /* __STV6110x_REG_H */
71