blob: 63f7b6e9d2e134d7a5ab11b5b78d7d945abbfc1e [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001
2
3#ifndef __DCL_PMIC6253_HW_H_STRUCT__
4#define __DCL_PMIC6253_HW_H_STRUCT__
5
6
7#include "dcl_pmic_features.h"
8
9#if defined(PMIC_6253_REG_API)
10
11#define PMU_BASE MIXED_base
12#define PMU_END (PMU_BASE+0x1000)
13
14// =====================================================================================
15#define PMIC_VRF_CON (PMU_BASE+0x800)
16#define PMIC_VIO_CON (PMU_BASE+0x804)
17#define PMIC_VM_CON (PMU_BASE+0x808)
18#define PMIC_VRTC_CON (PMU_BASE+0x80C)
19#define PMIC_VTCXO_CON (PMU_BASE+0x810)
20#define PMIC_VA_CON (PMU_BASE+0x814)
21#define PMIC_VSIM_CON (PMU_BASE+0x818)
22#define PMIC_VSIM2_CON (PMU_BASE+0x81C)
23#define PMIC_VUSB_CON (PMU_BASE+0x820)
24#if defined(__DRV_PMU53_SPEC_V1__)
25#define PMIC_VBT_CON (PMU_BASE+0x824)
26#else // #if defined(__DRV_PMU53_SPEC_V1__)
27#define PMIC_DRIVER_CON4 (PMU_BASE+0x824)
28#endif // #if defined(__DRV_PMU53_SPEC_V1__)
29#define PMIC_VCAMD_CON (PMU_BASE+0x828)
30#define PMIC_VCAMA_CON (PMU_BASE+0x82C)
31#define PMIC_GPIO_CON (PMU_BASE+0x834)
32#define PMIC_VCORE_CON (PMU_BASE+0x840)
33#define PMIC_VCORE_CON1 (PMU_BASE+0x844)
34#define PMIC_VCORE_CON2 (PMU_BASE+0x848)
35#define PMIC_VCORE_CON3 (PMU_BASE+0x84C)
36#define PMIC_VCORE_CON5 (PMU_BASE+0x854)
37#define PMIC_STARTUP_CON0 (PMU_BASE+0x860)
38#define PMIC_STARTUP_CON1 (PMU_BASE+0x864)
39#define PMIC_CHR_CON0 (PMU_BASE+0x870)
40#define PMIC_CHR_CON1 (PMU_BASE+0x874)
41#define PMIC_CHR_CON2 (PMU_BASE+0x878)
42#define PMIC_CHR_CON3 (PMU_BASE+0x87C)
43//#define PMIC_CHR_CON4 (PMU_BASE+0x8F0) ==> In 0x8F0
44//#define PMIC_CHR_CON5 (PMU_BASE+0x8F4) ==> In 0x8F4
45#define PMIC_DRIVER_CON0 (PMU_BASE+0x880)
46#define PMIC_DRIVER_CON1 (PMU_BASE+0x884)
47#define PMIC_DRIVER_CON2 (PMU_BASE+0x888)
48#define PMIC_DRIVER_CON3 (PMU_BASE+0x88C)
49#if defined(__DRV_PMU53_SPEC_V1__)
50#define PMIC_DRIVER_CON4 (PMU_BASE+0x890)
51#else // #if defined(__DRV_PMU53_SPEC_V1__)
52#define PMIC_VBT_CON (PMU_BASE+0x890)
53#endif // #if defined(__DRV_PMU53_SPEC_V1__)
54#define PMIC_BOOST_CON0 (PMU_BASE+0x8A0)
55#define PMIC_BOOST_CON1 (PMU_BASE+0x8A4)
56#define PMIC_BOOST_CON2 (PMU_BASE+0x8A8)
57#define PMIC_CLASSD_CON0 (PMU_BASE+0x8B0)
58#define PMIC_CLASSD_CON1 (PMU_BASE+0x8B4)
59#define PMIC_CLASSD_CON2 (PMU_BASE+0x8B8)
60#define PMIC_CLASSD_CON3 (PMU_BASE+0x8BC)
61#define PMIC_TEST_CON2 (PMU_BASE+0x8C8)
62#define PMIC_OC_CON0 (PMU_BASE+0x8D0)
63#define PMIC_OC_CON1 (PMU_BASE+0x8D4)
64#define PMIC_OC_CON2 (PMU_BASE+0x8D8)
65#define PMIC_OC_CON3 (PMU_BASE+0x8DC)
66#define PMIC_OC_CON4 (PMU_BASE+0x8E0)
67#define PMIC_OC_CON5 (PMU_BASE+0x8E4)
68#define PMIC_CHR_CON4 (PMU_BASE+0x8F0)
69#define PMIC_CHR_CON5 (PMU_BASE+0x8F4)
70
71// =====================================================================================
72// (0x800) VRF CON
73#define VRF_EN_MASK 0x0001
74#define VRF_EN_SHIFT 0
75#define VRF_CAL_MASK 0x00F0
76#define VRF_CAL_SHIFT 4
77#define VRF_ON_SEL_MASK 0x0400
78#define VRF_ON_SEL_SHIFT 10
79#define VRF_OCFB_EN_MASK 0x1000
80#define VRF_OCFB_EN_SHIFT 12
81#define VRF_STATUS_MASK 0x8000
82#define VRF_STATUS_SHIFT 15
83
84// (0x804) VIO CON
85#define VIO_CAL_MASK 0x00F0
86#define VIO_CAL_SHIFT 4
87#define VIO_VD_SENSE_MASK 0x0200
88#define VIO_VD_SENSE_SHIFT 9
89#define VIO_OCFB_EN_MASK 0x1000
90#define VIO_OCFB_EN_SHIFT 12
91#define VIO_STATUS_MASK 0x8000
92#define VIO_STATUS_SHIFT 15
93
94// (0x808) VM CON
95#define VM_CAL_MASK 0x00F0
96#define VM_CAL_SHIFT 4
97#define VM_VD_SENSE_MASK 0x0200
98#define VM_VD_SENSE_SHIFT 9
99#define VM_OCFB_EN_MASK 0x1000
100#define VM_OCFB_EN_SHIFT 12
101#define VM_STATUS_MASK 0x8000
102#define VM_STATUS_SHIFT 15
103
104// (0x80C) VRTC CON
105#define VRTC_CAL_MASK 0x00F0
106#define VRTC_CAL_SHIFT 4
107#define VRTC_STATUS_MASK 0x8000
108#define VRTC_STATUS_SHIFT 15
109
110// (0x810) VTCXO CON
111#define VTCXO_EN_MASK 0x0001
112#define VTCXO_EN_SHIFT 0
113#define VTCXO_CAL_MASK 0x00F0
114#define VTCXO_CAL_SHIFT 4
115#define VTCXO_ON_SEL_MASK 0x0400
116#define VTCXO_ON_SEL_SHIFT 10
117#define VTCXO_CCI_SRCLKEN_MASK 0x0800
118#define VTCXO_CCI_SRCLKEN_SHIFT 11
119#define VTCXO_OCFB_EN_MASK 0x1000
120#define VTCXO_OCFB_EN_SHIFT 12
121#define VTCXO_STATUS_MASK 0x8000
122#define VTCXO_STATUS_SHIFT 15
123
124// (0x814) VA CON
125#define VA_CAL_MASK 0x00F0
126#define VA_CAL_SHIFT 4
127#define VA_VD_SENSE_MASK 0x0200
128#define VA_VD_SENSE_SHIFT 9
129#define VA_ON_SEL_MASK 0x0400
130#define VA_ON_SEL_SHIFT 10
131#define VA_OCFB_EN_MASK 0x1000
132#define VA_OCFB_EN_SHIFT 12
133#define VA_STATUS_MASK 0x8000
134#define VA_STATUS_SHIFT 15
135
136// (0x818) VSIM CON
137#define VSIM_CCI_EN_MASK 0x0001
138#define VSIM_CCI_EN_SHIFT 0
139#define VSIM_CAL_MASK 0x00F0
140#define VSIM_CAL_SHIFT 4
141#define VSIM_DATAL_MASK 0x0200
142#define VSIM_DATAL_SHIFT 9
143#define VSIM_CCI_SEL_MASK 0x0400
144#define VSIM_CCI_SEL_SHIFT 10
145#define VSIM_CCI_PWR_SAVING_MASK 0x0800
146#define VSIM_CCI_PWR_SAVING_SHIFT 11
147#define VSIM_OCFB_EN_MASK 0x1000
148#define VSIM_OCFB_EN_SHIFT 12
149#define VSIM_STATUS_MASK 0x8000
150#define VSIM_STATUS_SHIFT 15
151
152// (0x81C) VSIM2 CON
153#define VSIM2_CCI_EN_MASK 0x0001
154#define VSIM2_CCI_EN_SHIFT 0
155#define VSIM2_CAL_MASK 0x00F0
156#define VSIM2_CAL_SHIFT 4
157#define VSIM2_DATAL_MASK 0x0200
158#define VSIM2_DATAL_SHIFT 9
159#define VSIM2_SEL_MASK 0x0400
160#define VSIM2_SEL_SHIFT 10
161#define VSIM2_STATUS_MASK 0x8000
162#define VSIM2_STATUS_SHIFT 15
163
164// (0x820) VUSB CON
165#define VUSB_EN_MASK 0x0001
166#define VUSB_EN_SHIFT 0
167#define VUSB_CAL_MASK 0x00F0
168#define VUSB_CAL_SHIFT 4
169#define VUSB_OCFB_EN_MASK 0x1000
170#define VUSB_OCFB_EN_SHIFT 12
171#define VUSB_STATUS_MASK 0x8000
172#define VUSB_STATUS_SHIFT 15
173
174#if defined(__DRV_PMU53_SPEC_V1__)
175
176// (0x824) VBT CON
177#define VBT_EN_MASK 0x0001
178#define VBT_EN_SHIFT 0
179#define VBT_CAL_MASK 0x00F0
180#define VBT_CAL_SHIFT 4
181#define VBT_SEL_MASK 0x0400
182#define VBT_SEL_SHIFT 10
183#define VBT_OCFB_EN_MASK 0x1000
184#define VBT_OCFB_EN_SHIFT 12
185#define VBT_STATUS_MASK 0x8000
186#define VBT_STATUS_SHIFT 15
187
188#else // #if defined(__DRV_PMU53_SPEC_V1__)
189
190// (0x824) PMIC_DRIVER_CON4
191#define CCI_VIBR_EN_MASK 0x0001
192#define CCI_VIBR_EN_SHIFT 0
193#define VIBR_CAL_MASK 0x00F0
194#define VIBR_CAL_SHIFT 4
195#define VIBR_SEL_MASK 0x0400
196#define VIBR_SEL_SHIFT 10
197#define VIBR_OCFB_EN_MASK 0x1000
198#define VIBR_OCFB_EN_SHIFT 12
199#define VIBR_STATUS_MASK 0x8000
200#define VIBR_STATUS_SHIFT 15
201
202#endif // #if defined(__DRV_PMU53_SPEC_V1__)
203
204// (0x828) VCAMD CON
205#define VCAMD_EN_MASK 0x0001
206#define VCAMD_EN_SHIFT 0
207#define VCAMD_CAL_MASK 0x00F0
208#define VCAMD_CAL_SHIFT 4
209#define VCAMD_SEL_MASK 0x0C00
210#define VCAMD_SEL_SHIFT 10
211#define VCAMD_OCFB_EN_MASK 0x1000
212#define VCAMD_OCFB_EN_SHIFT 12
213#define VCAMD_STATUS_MASK 0x8000
214#define VCAMD_STATUS_SHIFT 15
215
216// (0x82C) VCAMA CON
217#define VCAMA_EN_MASK 0x0001
218#define VCAMA_EN_SHIFT 0
219#define VCAMA_CAL_MASK 0x00F0
220#define VCAMA_CAL_SHIFT 4
221#define VCAMA_SEL_MASK 0x0C00
222#define VCAMA_SEL_SHIFT 10
223#define VCAMA_OCFB_EN_MASK 0x1000
224#define VCAMA_OCFB_EN_SHIFT 12
225#define VCAMA_STATUS_MASK 0x8000
226#define VCAMA_STATUS_SHIFT 15
227
228// (0x834) GPIO CON
229#define GPIO_DRV_MASK 0x0100
230#define GPIO_DRV_SHIFT 8
231#define CCI_MTV_EN_MASK 0x0200
232#define CCI_MTV_EN_SHIFT 9
233
234// (0x840) VCORE CON
235#define VCORE_EN_FORCE_MASK 0x0002
236#define VCORE_EN_FORCE_SHIFT 1
237#define VCORE_CAL_MASK 0x00F0
238#define VCORE_CAL_SHIFT 4
239#define VCORE_VD_SENSE_MASK 0x0200
240#define VCORE_VD_SENSE_SHIFT 9
241#define VCORE_STATUS_MASK 0x8000
242#define VCORE_STATUS_SHIFT 15
243
244// (0x844) VCORE CON1
245#define VCORE_MODE_SET_MASK 0x0001
246#define VCORE_MODE_SET_SHIFT 0
247#define VCORE_ADC_IN_EDGE_MASK 0x0002
248#define VCORE_ADC_IN_EDGE_SHIFT 1
249#define VCORE_FAST_SLOW_MASK 0x0004
250#define VCORE_FAST_SLOW_SHIFT 2
251#define VCORE_PWMB_MASK 0x0008
252#define VCORE_PWMB_SHIFT 3
253#define VCORE_ACC_OUT_INIT_MASK 0x00F0
254#define VCORE_ACC_OUT_INIT_SHIFT 4
255
256// (0x848) VCORE CON2
257#define VCORE_VOLSEL_MASK 0x4000
258#define VCORE_VOLSEL_SHIFT 14
259#define VCORE_FBEN_MASK 0x8000
260#define VCORE_FBEN_SHIFT 15
261
262
263// (0x84C) VCORE CON3
264#define VCORE_CCI_VFBADJ_MASK 0x000F
265#define VCORE_CCI_VFBADJ_SHIFT 0
266#define VCORE_DIRECT_CTRL_EN_MASK 0x0010
267#define VCORE_DIRECT_CTRL_EN_SHIFT 4
268#define VCORE_DCVCKSEL_MASK 0x0020
269#define VCORE_DCVCKSEL_SHIFT 5
270#define VCORE_MODEEN_MASK 0x1800
271#define VCORE_MODEEN_SHIFT 11
272#define VCORE_MODECMP_MASK 0x2000
273#define VCORE_MODECMP_SHIFT 13
274#define VCORE_MODESEL1A_MASK 0x4000
275#define VCORE_MODESEL1A_SHIFT 14
276
277// (0x854) VCORE CON5
278#define VCORE_CCI_VFBADJ_SLP_MASK 0x000F
279#define VCORE_CCI_VFBADJ_SLP_SHIFT 0
280#define VCORE_CLK_SRC_SEL_MASK 0x0010
281#define VCORE_CLK_SRC_SEL_SHIFT 4
282
283// (0x860) STARTUP CON0
284#define UV_SEL_MASK 0x0003
285#define UV_SEL_SHIFT 0
286#define PWRKEY_VCORE_MASK 0x4000
287#define PWRKEY_VCORE_SHIFT 14
288#define PWRKEY_DEB_MASK 0x8000
289#define PWRKEY_DEB_SHIFT 15
290
291// (0x864) STARTUP CON1
292#define THR_SEL_MASK 0x0018
293#define THR_SEL_SHIFT 3
294
295// (0x870) CHR CON0
296#define CHR_EN_MASK 0x0001
297#define CHR_EN_SHIFT 0
298#define CHOFST_MASK 0x000E
299#define CHOFST_SHIFT 1
300#define CHR_CC_CURRENT_MASK 0x00F0
301#define CHR_CC_CURRENT_SHIFT 4
302#define CHRON_FORCE_MASK 0x0100
303#define CHRON_FORCE_SHIFT 8
304#define CV_RT_MASK 0x0600
305#define CV_RT_SHIFT 9
306#define CV_TUNE_MASK 0x3800
307#define CV_TUNE_SHIFT 11
308
309// (0x874) CHR CON1
310#define CAL_PRE_CC_MASK 0x0003
311#define CAL_PRE_CC_SHIFT 0
312#define PS_SEL_MASK 0x0040
313#define PS_SEL_SHIFT 6
314#define PS_SET_MASK 0x0080
315#define PS_SET_SHIFT 7
316#define CHROV_SEL_MASK 0x6000
317#define CHROV_SEL_SHIFT 13
318
319// (0x878) CHR CON2
320// We use CHR_RSV[0] as CV trim extra bit, the bit is the extension of CV_RT
321// But only control in CV_TRIM_CALIBRATION process
322#define CV_TRIM_EXTRA_MASK 0x0001
323#define CV_TRIM_EXTRA_SHIFT 0
324#define OVP_MASK 0x0400
325#define OVP_SHIFT 10
326#define CHRDET_MASK 0x0800
327#define CHRDET_SHIFT 11
328#define BAT_ON_MASK 0x1000
329#define BAT_ON_SHIFT 12
330#define BAD_BATT_MASK 0x2000
331#define BAD_BATT_SHIFT 13
332#define CV_MASK 0x4000
333#define CV_SHIFT 14
334
335// (0x87C) CHR CON3
336#define WDTIMER_TD_MASK 0x0003
337#define WDTIMER_TD_SHIFT 0
338#define WDTIMER_EN_MASK 0x0004
339#define WDTIMER_EN_SHIFT 2
340
341// (0x8F0) CHR CON4 ==> Refer 0x8F0
342#define WDTIMER_INT_EN_MASK 0x0001
343#define WDTIMER_INT_EN_SHIFT 0
344#define WDTIMER_FLAG_MASK 0x0002
345#define WDTIMER_FLAG_SHIFT 1
346#define WDTIMER_CNT_19_16_MASK 0xF000
347#define WDTIMER_CNT_19_16_SHIFT 12
348
349// (0x8F4) CHR CON5 ==> Refer 0x8F4
350#define WDTIMER_CNT_15_00_MASK 0xFFFF
351#define WDTIMER_CNT_15_00_SHIFT 0
352
353
354// (0x880) DRIVER CON0
355#define ISINKS_EN_MASK 0x0001
356#define ISINKS_EN_SHIFT 0
357#define ISINKS_FORCES_OFF_MASK 0x0002
358#define ISINKS_FORCES_OFF_SHIFT 1
359#define KPLED_TYPE_MASK 0x0004
360#define KPLED_TYPE_SHIFT 2
361#define CCI_KPLED_EN_MASK 0x0008
362#define CCI_KPLED_EN_SHIFT 3
363#define KPLED_FORCE_OFF_MASK 0x0010
364#define KPLED_FORCE_OFF_SHIFT 4
365#define KPLED_SEL_MASK 0x00E0
366#define KPLED_SEL_SHIFT 5
367#define ISINK1_STATUS_MASK 0x0800
368#define ISINK1_STATUS_SHIFT 11
369#define ISINK2_STATUS_MASK 0x1000
370#define ISINK2_STATUS_SHIFT 12
371#define ISINK3_STATUS_MASK 0x2000
372#define ISINK3_STATUS_SHIFT 13
373#define ISINK4_STATUS_MASK 0x4000
374#define ISINK4_STATUS_SHIFT 14
375#define KPLED_STATUS_MASK 0x8000
376#define KPLED_STATUS_SHIFT 15
377
378// (0x884) DRIVER CON1
379#define ISINKS_DIMM_MASK 0x001F
380#define ISINKS_DIMM_SHIFT 0
381#define ISINKS_CHSEL_MASK 0x0F00
382#define ISINKS_CHSEL_SHIFT 8
383
384// (0x888) DRIVER CON2
385#define ISINKS_IRSET_CAL_MASK 0x001F
386#define ISINKS_IRSET_CAL_SHIFT 0
387#define ISINKS_VLED_STEP_MASK 0x00C0
388#define ISINKS_VLED_STEP_SHIFT 6
389
390// (0x88C) DRIVER CON3
391#define VBL_EN_MASK 0x0001
392#define VBL_EN_SHIFT 0
393#define VBOOST_EN_MASK 0x0002
394#define VBOOST_EN_SHIFT 1
395#define BL_VGEN_FORCEON_MASK 0x0004
396#define BL_VGEN_FORCEON_SHIFT 2
397#define BL_MODE_MASK 0x0010
398#define BL_MODE_SHIFT 4
399#define BL_DIMM_DUTY_MASK 0x1F00
400#define BL_DIMM_DUTY_SHIFT 8
401
402#if defined(__DRV_PMU53_SPEC_V1__)
403
404// (0x890) DRIVER CON4
405#define CCI_VIBR_EN_MASK 0x0001
406#define CCI_VIBR_EN_SHIFT 0
407#define VIBR_SEL_MASK 0x000C
408#define VIBR_SEL_SHIFT 2
409#define VIBR_CAL_MASK 0x00F0
410#define VIBR_CAL_SHIFT 4
411#define VIBR_OCFB_EN_MASK 0x1000
412#define VIBR_OCFB_EN_SHIFT 12
413#define VIBR_STATUS_MASK 0x8000
414#define VIBR_STATUS_SHIFT 15
415
416#else // #if defined(__DRV_PMU53_SPEC_V1__)
417
418// (0x890) VBT CON ==> VBT move to 0x890
419#define VBT_EN_MASK 0x0001
420#define VBT_EN_SHIFT 0
421#define VBT_SEL_MASK 0x000C
422#define VBT_SEL_SHIFT 2
423#define VBT_CAL_MASK 0x00F0
424#define VBT_CAL_SHIFT 4
425#define VBT_OCFB_EN_MASK 0x1000
426#define VBT_OCFB_EN_SHIFT 12
427#define VBT_STATUS_MASK 0x8000
428#define VBT_STATUS_SHIFT 15
429
430#endif // #if defined(__DRV_PMU53_SPEC_V1__)
431
432// (0x8A0) BOOST CON0
433#define VBOOST_SYNC_EN_MASK 0x0001
434#define VBOOST_SYNC_EN_SHIFT 0
435#define VBOOST_SS_SPEED_MASK 0x0002
436#define VBOOST_SS_SPEED_SHIFT 1
437#define VBOOST_TUNE_MASK 0x00F0
438#define VBOOST_TUNE_SHIFT 4
439#define VBOOST_CAL_MASK 0x0F00
440#define VBOOST_CAL_SHIFT 8
441#define VBOOST_TRK_STATUS_MASK 0x4000
442#define VBOOST_TRK_STATUS_SHIFT 14
443#define VBOOST_STATUS_MASK 0x8000
444#define VBOOST_STATUS_SHIFT 15
445
446// (0x8A4) BOOST CON1
447#define VBOOST_ISNS_CAL_MASK 0x0007
448#define VBOOST_ISNS_CAL_SHIFT 0
449
450// (0x8A8) BOOST CON2
451#define VBOOST_FORCEON_CLK_MASK 0x0001
452#define VBOOST_FORCEON_CLK_SHIFT 0
453#define VBOOST_DISCLK_MASK 0x0002
454#define VBOOST_DISCLK_SHIFT 1
455#define VBOOST_I_SINK_CURRECT_MATCH 0x0009
456
457
458// (0x8B0) CLASSD CON0
459#define SPK_EN_MASK 0x0001
460#define SPK_EN_SHIFT 0
461#define SPK_RST_MASK 0x0002
462#define SPK_RST_SHIFT 1
463#define SPK_EMODE_MASK 0x0004
464#define SPK_EMODE_SHIFT 2
465#define SPK_MODE_MASK 0x0008
466#define SPK_MODE_SHIFT 3
467#define SPKAB_FLOAT_MASK 0x0010
468#define SPKAB_FLOAT_SHIFT 4
469#define SPKAB_SENDED_MASK 0x0020
470#define SPKAB_SENDED_SHIFT 5
471#define SPKAB_OC_EN_MASK 0x0040
472#define SPKAB_OC_EN_SHIFT 6
473#define SPKAB_DEPOP_EN_MASK 0x0080
474#define SPKAB_DEPOP_EN_SHIFT 7
475#define SPKAB_OBIAS_MASK 0x0300
476#define SPKAB_OBIAS_SHIFT 8
477
478// (0x8B4) CLASSD CON1
479#define SPK_DTIN_MASK 0x000F
480#define SPK_DTIN_SHIFT 0
481#define SPK_DTIP_MASK 0x00F0
482#define SPK_DTIP_SHIFT 4
483#define SPK_DTCN_MASK 0x0F00
484#define SPK_DTCN_SHIFT 8
485#define SPK_DTCP_MASK 0xF000
486#define SPK_DTCP_SHIFT 12
487
488// (0x8B8) CLASSD CON2
489#define SPK_DMODE_MASK 0x0003
490#define SPK_DMODE_SHIFT 0
491#define SPK_PCHG_MASK 0x000C
492#define SPK_PCHG_SHIFT 2
493#define SPK_DTCAL_MASK 0x0010
494#define SPK_DTCAL_SHIFT 4
495#define SPK_PMODE_MASK 0x0020
496#define SPK_PMODE_SHIFT 5
497#define SPK_CMODE_MASK 0x00C0
498#define SPK_CMODE_SHIFT 6
499#define SPK_CCODE_MASK 0x0F00
500#define SPK_CCODE_SHIFT 8
501
502// (0x8BC) CLASSD CON3
503#define SPK_EN_VIEW_CLK_MASK 0x0001
504#define SPK_EN_VIEW_CLK_SHIFT 0
505#define SPK_EN_VIEW_VREF_MASK 0x0002
506#define SPK_EN_VIEW_VREF_SHIFT 1
507#define SPK_SLEW_MASK 0x000C
508#define SPK_SLEW_SHIFT 2
509#define SPK_OC_EN_MASK 0x0010
510#define SPK_OC_EN_SHIFT 4
511#define SPK_OSCISEL_MASK 0x0020
512#define SPK_OSCISEL_SHIFT 5
513#define SPK_VOL_MASK 0x0700
514#define SPK_VOL_SHIFT 8
515
516// (0x8C8) TEST CON2
517#define ADC_TMR_MASK 0x0020
518#define ADC_TMR_SHIFT 5
519#define ADC_VBAT_OUT_EN_MASK 0x0040
520#define ADC_VBAT_OUT_EN_SHIFT 6
521#define ADC_ISENSE_OUT_EN_MASK 0x0080
522#define ADC_ISENSE_OUT_EN_SHIFT 7
523
524// (0x8D0) OC CON0
525#define VRF_OC_GEAR_MASK 0x0003
526#define VRF_OC_GEAR_SHIFT 0
527#define VRF_OC_AUTO_OFF_MASK 0x0004
528#define VRF_OC_AUTO_OFF_SHIFT 2
529#define VRF_OC_INT_EN_MASK 0x0008
530#define VRF_OC_INT_EN_SHIFT 3
531#define VIO_OC_GEAR_MASK 0x0030
532#define VIO_OC_GEAR_SHIFT 4
533#define VIO_OC_AUTO_OFF_MASK 0x0040
534#define VIO_OC_AUTO_OFF_SHIFT 6
535#define VIO_OC_INT_EN_MASK 0x0080
536#define VIO_OC_INT_EN_SHIFT 7
537#define VM_OC_GEAR_MASK 0x0300
538#define VM_OC_GEAR_SHIFT 8
539#define VM_OC_AUTO_OFF_MASK 0x0400
540#define VM_OC_AUTO_OFF_SHIFT 10
541#define VM_OC_INT_EN_MASK 0x0800
542#define VM_OC_INT_EN_SHIFT 11
543#define VA_OC_GEAR_MASK 0x3000
544#define VA_OC_GEAR_SHIFT 12
545#define VA_OC_AUTO_OFF_MASK 0x4000
546#define VA_OC_AUTO_OFF_SHIFT 14
547#define VA_OC_INT_EN_MASK 0x8000
548#define VA_OC_INT_EN_SHIFT 15
549
550// (0x8D4) OC CON1
551#define VTCXO_OC_GEAR_MASK 0x3000
552#define VTCXO_OC_GEAR_SHIFT 12
553#define VTCXO_OC_AUTO_OFF_MASK 0x4000
554#define VTCXO_OC_AUTO_OFF_SHIFT 14
555#define VTCXO_OC_INT_EN_MASK 0x8000
556#define VTCXO_OC_INT_EN_SHIFT 15
557
558// (0x8D8) OC CON2
559#define VBT_OC_GEAR_MASK 0x0003
560#define VBT_OC_GEAR_SHIFT 0
561#define VBT_OC_AUTO_OFF_MASK 0x0004
562#define VBT_OC_AUTO_OFF_SHIFT 2
563#define VBT_OC_INT_EN_MASK 0x0008
564#define VBT_OC_INT_EN_SHIFT 3
565#define VUSB_OC_GEAR_MASK 0x0030
566#define VUSB_OC_GEAR_SHIFT 4
567#define VUSB_OC_AUTO_OFF_MASK 0x0040
568#define VUSB_OC_AUTO_OFF_SHIFT 6
569#define VUSB_OC_INT_EN_MASK 0x0080
570#define VUSB_OC_INT_EN_SHIFT 7
571#define VCAMD_OC_GEAR_MASK 0x0300
572#define VCAMD_OC_GEAR_SHIFT 8
573#define VCAMD_OC_AUTO_OFF_MASK 0x0400
574#define VCAMD_OC_AUTO_OFF_SHIFT 10
575#define VCAMD_OC_INT_EN_MASK 0x0800
576#define VCAMD_OC_INT_EN_SHIFT 11
577#define VCAMA_OC_GEAR_MASK 0x3000
578#define VCAMA_OC_GEAR_SHIFT 12
579#define VCAMA_OC_AUTO_OFF_MASK 0x4000
580#define VCAMA_OC_AUTO_OFF_SHIFT 14
581#define VCAMA_OC_INT_EN_MASK 0x8000
582#define VCAMA_OC_INT_EN_SHIFT 15
583
584// (0x8DC) OC CON3
585#define VSPK_OC_GEAR_MASK 0x0003
586#define VSPK_OC_GEAR_SHIFT 0
587#define VSPK_OC_AUTO_OFF_MASK 0x0004
588#define VSPK_OC_AUTO_OFF_SHIFT 2
589#define VSPK_OC_INT_EN_MASK 0x0008
590#define VSPK_OC_INT_EN_SHIFT 3
591#define VIBR_OC_GEAR_MASK 0x0030
592#define VIBR_OC_GEAR_SHIFT 4
593#define VIBR_OC_AUTO_OFF_MASK 0x0040
594#define VIBR_OC_AUTO_OFF_SHIFT 6
595#define VIBR_OC_INT_EN_MASK 0x0080
596#define VIBR_OC_INT_EN_SHIFT 7
597#define VBOOST_OC_GEAR_MASK 0x0300
598#define VBOOST_OC_GEAR_SHIFT 8
599#define VBOOST_OC_AUTO_OFF_MASK 0x0400
600#define VBOOST_OC_AUTO_OFF_SHIFT 10
601#define VBOOST_OC_INT_EN_MASK 0x0800
602#define VBOOST_OC_INT_EN_SHIFT 11
603#define VSIM_OC_GEAR_MASK 0x3000
604#define VSIM_OC_GEAR_SHIFT 12
605#define VSIM_OC_AUTO_OFF_MASK 0x4000
606#define VSIM_OC_AUTO_OFF_SHIFT 14
607#define VSIM_OC_INT_EN_MASK 0x8000
608#define VSIM_OC_INT_EN_SHIFT 15
609
610// (0x8E0) OC CON4
611#define VIBR_STBTD_MASK 0x0003
612#define VIBR_STBTD_SHIFT 0
613#define VSIM_STBTD_MASK 0x000C
614#define VSIM_STBTD_SHIFT 2
615#define VBT_STBTD_MASK 0x0030
616#define VBT_STBTD_SHIFT 4
617#define VUSB_STBTD_MASK 0x00C0
618#define VUSB_STBTD_SHIFT 6
619#define VCAMD_STBTD_MASK 0x0300
620#define VCAMD_STBTD_SHIFT 8
621#define VCAMA_STBTD_MASK 0x0C00
622#define VCAMA_STBTD_SHIFT 10
623
624// (0x8E4) OC CON5
625#define SPK_OC_FLAG_MASK 0x0001
626#define SPK_OC_FLAG_SHIFT 0
627#define VIBR_OC_FLAG_MASK 0x0002
628#define VIBR_OC_FLAG_SHIFT 1
629#define VBOOST_OC_FLAG_MASK 0x0004
630#define VBOOST_OC_FLAG_SHIFT 2
631#define VSIM_OC_FLAG_MASK 0x0008
632#define VSIM_OC_FLAG_SHIFT 3
633#define VBT_OC_FLAG_MASK 0x0010
634#define VBT_OC_FLAG_SHIFT 4
635#define VUSB_OC_FLAG_MASK 0x0020
636#define VUSB_OC_FLAG_SHIFT 5
637#define VCAMD_OC_FLAG_MASK 0x0040
638#define VCAMD_OC_FLAG_SHIFT 6
639#define VCAMA_OC_FLAG_MASK 0x0080
640#define VCAMA_OC_FLAG_SHIFT 7
641#define VTCXO_OC_FLAG_MASK 0x0800
642#define VTCXO_OC_FLAG_SHIFT 11
643#define VRF_OC_FLAG_MASK 0x1000
644#define VRF_OC_FLAG_SHIFT 12
645#define VIO_OC_FLAG_MASK 0x2000
646#define VIO_OC_FLAG_SHIFT 13
647#define VM_OC_FLAG_MASK 0x4000
648#define VM_OC_FLAG_SHIFT 14
649#define VA_OC_FLAG_MASK 0x8000
650#define VA_OC_FLAG_SHIFT 15
651
652
653// (0x8F0) CHR CON4
654
655// (0x8F4) CHR CON5
656
657#endif // #if defined(PMIC_6253_REG_API)
658
659
660#endif // #ifndef __DCL_PMIC6253_HW_H_STRUCT__
661
662
663
664