summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/stv6110x_reg.h
blob: deb17d293b7970d93957aae0be8c2bb4aaa2d30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
	STV6110(A) Silicon tuner driver

	Copyright (C) Manu Abraham <abraham.manu@gmail.com>

	Copyright (C) ST Microelectronics

*/

#ifndef __STV6110x_REG_H
#define __STV6110x_REG_H

#define STV6110x_CTRL1				0x00
#define STV6110x_OFFST_CTRL1_K			3
#define STV6110x_WIDTH_CTRL1_K			5
#define STV6110x_OFFST_CTRL1_LPT		2
#define STV6110x_WIDTH_CTRL1_LPT		1
#define STV6110x_OFFST_CTRL1_RX			1
#define STV6110x_WIDTH_CTRL1_RX			1
#define STV6110x_OFFST_CTRL1_SYN		0
#define STV6110x_WIDTH_CTRL1_SYN		1

#define STV6110x_CTRL2				0x01
#define STV6110x_OFFST_CTRL2_CO_DIV		6
#define STV6110x_WIDTH_CTRL2_CO_DIV		2
#define STV6110x_OFFST_CTRL2_RSVD		5
#define STV6110x_WIDTH_CTRL2_RSVD		1
#define STV6110x_OFFST_CTRL2_REFOUT_SEL		4
#define STV6110x_WIDTH_CTRL2_REFOUT_SEL		1
#define STV6110x_OFFST_CTRL2_BBGAIN		0
#define STV6110x_WIDTH_CTRL2_BBGAIN		4

#define STV6110x_TNG0				0x02
#define STV6110x_OFFST_TNG0_N_DIV_7_0		0
#define STV6110x_WIDTH_TNG0_N_DIV_7_0		8

#define STV6110x_TNG1				0x03
#define STV6110x_OFFST_TNG1_R_DIV		6
#define STV6110x_WIDTH_TNG1_R_DIV		2
#define STV6110x_OFFST_TNG1_PRESC32_ON		5
#define STV6110x_WIDTH_TNG1_PRESC32_ON		1
#define STV6110x_OFFST_TNG1_DIV4SEL		4
#define STV6110x_WIDTH_TNG1_DIV4SEL		1
#define STV6110x_OFFST_TNG1_N_DIV_11_8		0
#define STV6110x_WIDTH_TNG1_N_DIV_11_8		4


#define STV6110x_CTRL3				0x04
#define STV6110x_OFFST_CTRL3_DCLOOP_OFF		7
#define STV6110x_WIDTH_CTRL3_DCLOOP_OFF		1
#define STV6110x_OFFST_CTRL3_RCCLK_OFF		6
#define STV6110x_WIDTH_CTRL3_RCCLK_OFF		1
#define STV6110x_OFFST_CTRL3_ICP		5
#define STV6110x_WIDTH_CTRL3_ICP		1
#define STV6110x_OFFST_CTRL3_CF			0
#define STV6110x_WIDTH_CTRL3_CF			5

#define STV6110x_STAT1				0x05
#define STV6110x_OFFST_STAT1_CALVCO_STRT	2
#define STV6110x_WIDTH_STAT1_CALVCO_STRT	1
#define STV6110x_OFFST_STAT1_CALRC_STRT		1
#define STV6110x_WIDTH_STAT1_CALRC_STRT		1
#define STV6110x_OFFST_STAT1_LOCK		0
#define STV6110x_WIDTH_STAT1_LOCK		1

#define STV6110x_STAT2				0x06
#define STV6110x_STAT3				0x07

#endif /* __STV6110x_REG_H */