xref: /linux/drivers/media/tuners/max2165_priv.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *  Driver for Maxim MAX2165 silicon tuner
4  *
5  *  Copyright (c) 2009 David T. L. Wong <davidtlwong@gmail.com>
6  */
7 
8 #ifndef __MAX2165_PRIV_H__
9 #define __MAX2165_PRIV_H__
10 
11 #define REG_NDIV_INT 0x00
12 #define REG_NDIV_FRAC2 0x01
13 #define REG_NDIV_FRAC1 0x02
14 #define REG_NDIV_FRAC0 0x03
15 #define REG_TRACK_FILTER 0x04
16 #define REG_LNA 0x05
17 #define REG_PLL_CFG 0x06
18 #define REG_TEST 0x07
19 #define REG_SHUTDOWN 0x08
20 #define REG_VCO_CTRL 0x09
21 #define REG_BASEBAND_CTRL 0x0A
22 #define REG_DC_OFFSET_CTRL 0x0B
23 #define REG_DC_OFFSET_DAC 0x0C
24 #define REG_ROM_TABLE_ADDR 0x0D
25 
26 /* Read Only Registers */
27 #define REG_ROM_TABLE_DATA 0x10
28 #define REG_STATUS 0x11
29 #define REG_AUTOTUNE 0x12
30 
31 struct max2165_priv {
32 	struct max2165_config *config;
33 	struct i2c_adapter *i2c;
34 
35 	u32 frequency;
36 	u32 bandwidth;
37 
38 	u8 tf_ntch_low_cfg;
39 	u8 tf_ntch_hi_cfg;
40 	u8 tf_balun_low_ref;
41 	u8 tf_balun_hi_ref;
42 	u8 bb_filter_7mhz_cfg;
43 	u8 bb_filter_8mhz_cfg;
44 };
45 
46 #endif
47