Go to the documentation of this file.
15 #ifndef __MFD_WM831X_AUXADC_H__
16 #define __MFD_WM831X_AUXADC_H__
21 #define WM831X_AUX_DATA_SRC_MASK 0xF000
22 #define WM831X_AUX_DATA_SRC_SHIFT 12
23 #define WM831X_AUX_DATA_SRC_WIDTH 4
24 #define WM831X_AUX_DATA_MASK 0x0FFF
25 #define WM831X_AUX_DATA_SHIFT 0
26 #define WM831X_AUX_DATA_WIDTH 12
31 #define WM831X_AUX_ENA 0x8000
32 #define WM831X_AUX_ENA_MASK 0x8000
33 #define WM831X_AUX_ENA_SHIFT 15
34 #define WM831X_AUX_ENA_WIDTH 1
35 #define WM831X_AUX_CVT_ENA 0x4000
36 #define WM831X_AUX_CVT_ENA_MASK 0x4000
37 #define WM831X_AUX_CVT_ENA_SHIFT 14
38 #define WM831X_AUX_CVT_ENA_WIDTH 1
39 #define WM831X_AUX_SLPENA 0x1000
40 #define WM831X_AUX_SLPENA_MASK 0x1000
41 #define WM831X_AUX_SLPENA_SHIFT 12
42 #define WM831X_AUX_SLPENA_WIDTH 1
43 #define WM831X_AUX_FRC_ENA 0x0800
44 #define WM831X_AUX_FRC_ENA_MASK 0x0800
45 #define WM831X_AUX_FRC_ENA_SHIFT 11
46 #define WM831X_AUX_FRC_ENA_WIDTH 1
47 #define WM831X_AUX_RATE_MASK 0x003F
48 #define WM831X_AUX_RATE_SHIFT 0
49 #define WM831X_AUX_RATE_WIDTH 6
54 #define WM831X_AUX_CAL_SEL 0x8000
55 #define WM831X_AUX_CAL_SEL_MASK 0x8000
56 #define WM831X_AUX_CAL_SEL_SHIFT 15
57 #define WM831X_AUX_CAL_SEL_WIDTH 1
58 #define WM831X_AUX_BKUP_BATT_SEL 0x0400
59 #define WM831X_AUX_BKUP_BATT_SEL_MASK 0x0400
60 #define WM831X_AUX_BKUP_BATT_SEL_SHIFT 10
61 #define WM831X_AUX_BKUP_BATT_SEL_WIDTH 1
62 #define WM831X_AUX_WALL_SEL 0x0200
63 #define WM831X_AUX_WALL_SEL_MASK 0x0200
64 #define WM831X_AUX_WALL_SEL_SHIFT 9
65 #define WM831X_AUX_WALL_SEL_WIDTH 1
66 #define WM831X_AUX_BATT_SEL 0x0100
67 #define WM831X_AUX_BATT_SEL_MASK 0x0100
68 #define WM831X_AUX_BATT_SEL_SHIFT 8
69 #define WM831X_AUX_BATT_SEL_WIDTH 1
70 #define WM831X_AUX_USB_SEL 0x0080
71 #define WM831X_AUX_USB_SEL_MASK 0x0080
72 #define WM831X_AUX_USB_SEL_SHIFT 7
73 #define WM831X_AUX_USB_SEL_WIDTH 1
74 #define WM831X_AUX_SYSVDD_SEL 0x0040
75 #define WM831X_AUX_SYSVDD_SEL_MASK 0x0040
76 #define WM831X_AUX_SYSVDD_SEL_SHIFT 6
77 #define WM831X_AUX_SYSVDD_SEL_WIDTH 1
78 #define WM831X_AUX_BATT_TEMP_SEL 0x0020
79 #define WM831X_AUX_BATT_TEMP_SEL_MASK 0x0020
80 #define WM831X_AUX_BATT_TEMP_SEL_SHIFT 5
81 #define WM831X_AUX_BATT_TEMP_SEL_WIDTH 1
82 #define WM831X_AUX_CHIP_TEMP_SEL 0x0010
83 #define WM831X_AUX_CHIP_TEMP_SEL_MASK 0x0010
84 #define WM831X_AUX_CHIP_TEMP_SEL_SHIFT 4
85 #define WM831X_AUX_CHIP_TEMP_SEL_WIDTH 1
86 #define WM831X_AUX_AUX4_SEL 0x0008
87 #define WM831X_AUX_AUX4_SEL_MASK 0x0008
88 #define WM831X_AUX_AUX4_SEL_SHIFT 3
89 #define WM831X_AUX_AUX4_SEL_WIDTH 1
90 #define WM831X_AUX_AUX3_SEL 0x0004
91 #define WM831X_AUX_AUX3_SEL_MASK 0x0004
92 #define WM831X_AUX_AUX3_SEL_SHIFT 2
93 #define WM831X_AUX_AUX3_SEL_WIDTH 1
94 #define WM831X_AUX_AUX2_SEL 0x0002
95 #define WM831X_AUX_AUX2_SEL_MASK 0x0002
96 #define WM831X_AUX_AUX2_SEL_SHIFT 1
97 #define WM831X_AUX_AUX2_SEL_WIDTH 1
98 #define WM831X_AUX_AUX1_SEL 0x0001
99 #define WM831X_AUX_AUX1_SEL_MASK 0x0001
100 #define WM831X_AUX_AUX1_SEL_SHIFT 0
101 #define WM831X_AUX_AUX1_SEL_WIDTH 1
106 #define WM831X_DCOMP4_STS 0x0800
107 #define WM831X_DCOMP4_STS_MASK 0x0800
108 #define WM831X_DCOMP4_STS_SHIFT 11
109 #define WM831X_DCOMP4_STS_WIDTH 1
110 #define WM831X_DCOMP3_STS 0x0400
111 #define WM831X_DCOMP3_STS_MASK 0x0400
112 #define WM831X_DCOMP3_STS_SHIFT 10
113 #define WM831X_DCOMP3_STS_WIDTH 1
114 #define WM831X_DCOMP2_STS 0x0200
115 #define WM831X_DCOMP2_STS_MASK 0x0200
116 #define WM831X_DCOMP2_STS_SHIFT 9
117 #define WM831X_DCOMP2_STS_WIDTH 1
118 #define WM831X_DCOMP1_STS 0x0100
119 #define WM831X_DCOMP1_STS_MASK 0x0100
120 #define WM831X_DCOMP1_STS_SHIFT 8
121 #define WM831X_DCOMP1_STS_WIDTH 1
122 #define WM831X_DCMP4_ENA 0x0008
123 #define WM831X_DCMP4_ENA_MASK 0x0008
124 #define WM831X_DCMP4_ENA_SHIFT 3
125 #define WM831X_DCMP4_ENA_WIDTH 1
126 #define WM831X_DCMP3_ENA 0x0004
127 #define WM831X_DCMP3_ENA_MASK 0x0004
128 #define WM831X_DCMP3_ENA_SHIFT 2
129 #define WM831X_DCMP3_ENA_WIDTH 1
130 #define WM831X_DCMP2_ENA 0x0002
131 #define WM831X_DCMP2_ENA_MASK 0x0002
132 #define WM831X_DCMP2_ENA_SHIFT 1
133 #define WM831X_DCMP2_ENA_WIDTH 1
134 #define WM831X_DCMP1_ENA 0x0001
135 #define WM831X_DCMP1_ENA_MASK 0x0001
136 #define WM831X_DCMP1_ENA_SHIFT 0
137 #define WM831X_DCMP1_ENA_WIDTH 1
142 #define WM831X_DCMP1_SRC_MASK 0xE000
143 #define WM831X_DCMP1_SRC_SHIFT 13
144 #define WM831X_DCMP1_SRC_WIDTH 3
145 #define WM831X_DCMP1_GT 0x1000
146 #define WM831X_DCMP1_GT_MASK 0x1000
147 #define WM831X_DCMP1_GT_SHIFT 12
148 #define WM831X_DCMP1_GT_WIDTH 1
149 #define WM831X_DCMP1_THR_MASK 0x0FFF
150 #define WM831X_DCMP1_THR_SHIFT 0
151 #define WM831X_DCMP1_THR_WIDTH 12
156 #define WM831X_DCMP2_SRC_MASK 0xE000
157 #define WM831X_DCMP2_SRC_SHIFT 13
158 #define WM831X_DCMP2_SRC_WIDTH 3
159 #define WM831X_DCMP2_GT 0x1000
160 #define WM831X_DCMP2_GT_MASK 0x1000
161 #define WM831X_DCMP2_GT_SHIFT 12
162 #define WM831X_DCMP2_GT_WIDTH 1
163 #define WM831X_DCMP2_THR_MASK 0x0FFF
164 #define WM831X_DCMP2_THR_SHIFT 0
165 #define WM831X_DCMP2_THR_WIDTH 12
170 #define WM831X_DCMP3_SRC_MASK 0xE000
171 #define WM831X_DCMP3_SRC_SHIFT 13
172 #define WM831X_DCMP3_SRC_WIDTH 3
173 #define WM831X_DCMP3_GT 0x1000
174 #define WM831X_DCMP3_GT_MASK 0x1000
175 #define WM831X_DCMP3_GT_SHIFT 12
176 #define WM831X_DCMP3_GT_WIDTH 1
177 #define WM831X_DCMP3_THR_MASK 0x0FFF
178 #define WM831X_DCMP3_THR_SHIFT 0
179 #define WM831X_DCMP3_THR_WIDTH 12
184 #define WM831X_DCMP4_SRC_MASK 0xE000
185 #define WM831X_DCMP4_SRC_SHIFT 13
186 #define WM831X_DCMP4_SRC_WIDTH 3
187 #define WM831X_DCMP4_GT 0x1000
188 #define WM831X_DCMP4_GT_MASK 0x1000
189 #define WM831X_DCMP4_GT_SHIFT 12
190 #define WM831X_DCMP4_GT_WIDTH 1
191 #define WM831X_DCMP4_THR_MASK 0x0FFF
192 #define WM831X_DCMP4_THR_SHIFT 0
193 #define WM831X_DCMP4_THR_WIDTH 12
195 #define WM831X_AUX_CAL_FACTOR 0xfff
196 #define WM831X_AUX_CAL_NOMINAL 0x222