1
2
3
4
5
6
7
8 #ifndef TDA18218_PRIV_H
9 #define TDA18218_PRIV_H
10
11 #include "tda18218.h"
12
13 #define R00_ID 0x00
14 #define R01_R1 0x01
15 #define R02_R2 0x02
16 #define R03_R3 0x03
17 #define R04_R4 0x04
18 #define R05_R5 0x05
19 #define R06_R6 0x06
20 #define R07_MD1 0x07
21 #define R08_PSM1 0x08
22 #define R09_MD2 0x09
23 #define R0A_MD3 0x0a
24 #define R0B_MD4 0x0b
25 #define R0C_MD5 0x0c
26 #define R0D_MD6 0x0d
27 #define R0E_MD7 0x0e
28 #define R0F_MD8 0x0f
29 #define R10_CD1 0x10
30 #define R11_CD2 0x11
31 #define R12_CD3 0x12
32 #define R13_CD4 0x13
33 #define R14_CD5 0x14
34 #define R15_CD6 0x15
35 #define R16_CD7 0x16
36 #define R17_PD1 0x17
37 #define R18_PD2 0x18
38 #define R19_XTOUT 0x19
39 #define R1A_IF1 0x1a
40 #define R1B_IF2 0x1b
41 #define R1C_AGC2B 0x1c
42 #define R1D_PSM2 0x1d
43 #define R1E_PSM3 0x1e
44 #define R1F_PSM4 0x1f
45 #define R20_AGC11 0x20
46 #define R21_AGC12 0x21
47 #define R22_AGC13 0x22
48 #define R23_AGC21 0x23
49 #define R24_AGC22 0x24
50 #define R25_AAGC 0x25
51 #define R26_RC 0x26
52 #define R27_RSSI 0x27
53 #define R28_IRCAL1 0x28
54 #define R29_IRCAL2 0x29
55 #define R2A_IRCAL3 0x2a
56 #define R2B_IRCAL4 0x2b
57 #define R2C_RFCAL1 0x2c
58 #define R2D_RFCAL2 0x2d
59 #define R2E_RFCAL3 0x2e
60 #define R2F_RFCAL4 0x2f
61 #define R30_RFCAL5 0x30
62 #define R31_RFCAL6 0x31
63 #define R32_RFCAL7 0x32
64 #define R33_RFCAL8 0x33
65 #define R34_RFCAL9 0x34
66 #define R35_RFCAL10 0x35
67 #define R36_RFCALRAM1 0x36
68 #define R37_RFCALRAM2 0x37
69 #define R38_MARGIN 0x38
70 #define R39_FMAX1 0x39
71 #define R3A_FMAX2 0x3a
72
73 #define TDA18218_NUM_REGS 59
74
75 struct tda18218_priv {
76 struct tda18218_config *cfg;
77 struct i2c_adapter *i2c;
78
79 u32 if_frequency;
80
81 u8 regs[TDA18218_NUM_REGS];
82 };
83
84 #endif