blob: e454ff109cb11ac2f4ce0a828d9de3eee079d22b [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2012
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*****************************************************************************
37 *
38 * Filename:
39 * ---------
40 * dcl_pmic6320_hw.h
41 *
42 * Project:
43 * --------
44 * Maui_Software
45 *
46 * Description:
47 * ------------
48 * This file is for PMIC 6320
49 *
50 * Author:
51 * -------
52 * -------
53 *
54 *============================================================================
55 * HISTORY
56 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
57 *------------------------------------------------------------------------------
58 * removed!
59 * removed!
60 * removed!
61 *
62 * removed!
63 * removed!
64 * removed!
65 * removed!
66 * removed!
67 * removed!
68 * removed!
69 * removed!
70 * removed!
71 * removed!
72 * removed!
73 *------------------------------------------------------------------------------
74 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
75 *============================================================================
76 ****************************************************************************/
77
78#ifndef __DCL_PMIC6320_HW_H_STRUCT__
79#define __DCL_PMIC6320_HW_H_STRUCT__
80
81
82#include "dcl_pmic_features.h"
83
84#if defined(PMIC_6320_REG_API)
85
86#define PMIC_BASE (0x0000)
87#define DEW_BASE (0xBC00)
88#define MT6320_E1_CID 0x1020
89
90//register number
91#define CHR_CON0 0x0000
92#define CHR_CON1 0x0002
93#define CHR_CON2 0x0004
94#define CHR_CON3 0x0006
95#define CHR_CON4 0x0008
96#define CHR_CON5 0x000A
97#define CHR_CON6 0x000C
98#define CHR_CON7 0x000E
99#define CHR_CON8 0x0010
100#define CHR_CON9 0x0012
101#define CHR_CON10 0x0014
102#define CHR_CON11 0x0016
103#define CHR_CON12 0x0018
104#define CHR_CON13 0x001A
105#define CHR_CON14 0x001C
106#define CHR_CON15 0x001E
107#define CHR_CON16 0x0020
108#define CHR_CON17 0x0022
109#define CHR_CON18 0x0024
110#define CHR_CON19 0x0026
111#define CHR_CON20 0x0028
112#define CHR_CON21 0x002A
113#define CHR_CON22 0x002C
114#define CHR_CON23 0x002E
115#define CHR_CON24 0x0030
116#define CHR_CON25 0x0032
117#define CHR_CON26 0x0034
118#define CHR_CON27 0x0036
119#define CHR_CON28 0x0038
120#define CHR_CON29 0x003A
121#define CID 0x0100
122#define TOP_CKPDN 0x0102
123#define TOP_CKPDN2 0x0108
124#define TOP_GPIO_CKPDN 0x010E
125#define TOP_RST_CON 0x0114
126#define WRP_CKPDN 0x011A
127#define WRP_RST_CON 0x0120
128#define TOP_RST_MISC 0x0126
129#define TOP_CKCON1 0x0128
130#define TOP_CKCON2 0x012A
131#define TOP_CKTST1 0x012C
132#define TOP_CKTST2 0x012E
133#define OC_DEG_EN 0x0130
134#define OC_CTL0 0x0132
135#define OC_CTL1 0x0134
136#define OC_CTL2 0x0136
137#define INT_RSV 0x0138
138#define TEST_CON0 0x013A
139#define TEST_CON1 0x013C
140#define STATUS0 0x013E
141#define STATUS1 0x0140
142#define PGSTATUS 0x0142
143#define CHRSTATUS 0x0144
144#define OCSTATUS0 0x0146
145#define OCSTATUS1 0x0148
146#define OCSTATUS2 0x014A
147#define SIMLS_CON 0x014C
148#define TEST_OUT_L 0x014E
149#define TEST_OUT_H 0x0150
150#define TDSEL_CON 0x0152
151#define RDSEL_CON 0x0154
152#define GPIO_SMT_CON0 0x0156
153#define GPIO_SMT_CON1 0x0158
154#define GPIO_SMT_CON2 0x015A
155#define GPIO_SMT_CON3 0x015C
156#define DRV_CON0 0x015E
157#define DRV_CON1 0x0160
158#define DRV_CON2 0x0162
159#define DRV_CON3 0x0164
160#define DRV_CON4 0x0166
161#define DRV_CON5 0x0168
162#define DRV_CON6 0x016A
163#define DRV_CON7 0x016C
164#define DRV_CON8 0x016E
165#define DRV_CON9 0x0170
166#define DRV_CON10 0x0172
167#define DRV_CON11 0x0174
168#define DRV_CON12 0x0176
169#define INT_CON0 0x0178
170#define INT_CON1 0x017E
171#define INT_STATUS0 0x0184
172#define INT_STATUS1 0x0186
173#define FQMTR_CON0 0x0188
174#define FQMTR_CON1 0x018A
175#define FQMTR_CON2 0x018C
176#define EFUSE_CON0 0x018E
177#define EFUSE_CON1 0x0190
178#define EFUSE_CON2 0x0192
179#define EFUSE_CON3 0x0194
180#define EFUSE_CON4 0x0196
181#define EFUSE_CON5 0x0198
182#define EFUSE_CON6 0x019A
183#define EFUSE_VAL_0_15 0x019C
184#define EFUSE_VAL_16_31 0x019E
185#define EFUSE_VAL_32_47 0x01A0
186#define EFUSE_VAL_48_63 0x01A2
187#define EFUSE_VAL_64_79 0x01A4
188#define EFUSE_VAL_80_95 0x01A6
189#define EFUSE_VAL_96_111 0x01A8
190#define EFUSE_VAL_112_127 0x01AA
191#define EFUSE_VAL_128_143 0x01AC
192#define EFUSE_VAL_144_159 0x01AE
193#define EFUSE_VAL_160_175 0x01B0
194#define EFUSE_VAL_176_191 0x01B2
195#define EFUSE_DOUT_0_15 0x01B4
196#define EFUSE_DOUT_16_31 0x01B6
197#define EFUSE_DOUT_32_47 0x01B8
198#define EFUSE_DOUT_48_63 0x01BA
199#define EFUSE_DOUT_64_79 0x01BC
200#define EFUSE_DOUT_80_95 0x01BE
201#define EFUSE_DOUT_96_111 0x01C0
202#define EFUSE_DOUT_112_127 0x01C2
203#define EFUSE_DOUT_128_143 0x01C4
204#define EFUSE_DOUT_144_159 0x01C6
205#define EFUSE_DOUT_160_175 0x01C8
206#define EFUSE_DOUT_176_191 0x01CA
207#define SPI_CON 0x01CC
208#define BUCK_CON0 0x0200
209#define BUCK_CON1 0x0202
210#define BUCK_CON2 0x0204
211#define VPROC_CON0 0x0206
212#define VPROC_CON1 0x0208
213#define VPROC_CON2 0x020A
214#define VPROC_CON3 0x020C
215#define VPROC_CON4 0x020E
216#define VPROC_CON5 0x0210
217#define VPROC_CON6 0x0212
218#define VPROC_CON7 0x0214
219#define VPROC_CON8 0x0216
220#define VPROC_CON9 0x0218
221#define VPROC_CON10 0x021A
222#define VPROC_CON11 0x021C
223#define VPROC_CON12 0x021E
224#define VPROC_CON13 0x0220
225#define VPROC_CON14 0x0222
226#define VPROC_CON15 0x0224
227#define VPROC_CON16 0x0226
228#define VPROC_CON17 0x0228
229#define VPROC_CON18 0x022A
230#define VSRAM_CON0 0x022C
231#define VSRAM_CON1 0x022E
232#define VSRAM_CON2 0x0230
233#define VSRAM_CON3 0x0232
234#define VSRAM_CON4 0x0234
235#define VSRAM_CON5 0x0236
236#define VSRAM_CON6 0x0238
237#define VSRAM_CON7 0x023A
238#define VSRAM_CON8 0x023C
239#define VSRAM_CON9 0x023E
240#define VSRAM_CON10 0x0240
241#define VSRAM_CON11 0x0242
242#define VSRAM_CON12 0x0244
243#define VSRAM_CON13 0x0246
244#define VSRAM_CON14 0x0248
245#define VSRAM_CON15 0x024A
246#define VSRAM_CON16 0x024C
247#define VSRAM_CON17 0x024E
248#define VSRAM_CON18 0x0250
249#define VSRAM_CON19 0x0252
250#define VSRAM_CON20 0x0254
251#define VSRAM_CON21 0x0256
252#define VCORE_CON0 0x0258
253#define VCORE_CON1 0x025A
254#define VCORE_CON2 0x025C
255#define VCORE_CON3 0x025E
256#define VCORE_CON4 0x0260
257#define VCORE_CON5 0x0262
258#define VCORE_CON6 0x0264
259#define VCORE_CON7 0x0266
260#define VCORE_CON8 0x0268
261#define VCORE_CON9 0x026A
262#define VCORE_CON10 0x026C
263#define VCORE_CON11 0x026E
264#define VCORE_CON12 0x0270
265#define VCORE_CON13 0x0272
266#define VCORE_CON14 0x0274
267#define VCORE_CON15 0x0276
268#define VCORE_CON16 0x0278
269#define VCORE_CON17 0x027A
270#define VCORE_CON18 0x027C
271#define VM_CON0 0x027E
272#define VM_CON1 0x0280
273#define VM_CON2 0x0282
274#define VM_CON3 0x0284
275#define VM_CON4 0x0286
276#define VM_CON5 0x0288
277#define VM_CON6 0x028A
278#define VM_CON7 0x028C
279#define VM_CON8 0x028E
280#define VM_CON9 0x0290
281#define VM_CON10 0x0292
282#define VM_CON11 0x0294
283#define VM_CON12 0x0296
284#define VM_CON13 0x0298
285#define VM_CON14 0x029A
286#define VM_CON15 0x029C
287#define VM_CON16 0x029E
288#define VM_CON17 0x02A0
289#define VM_CON18 0x02A2
290#define VIO18_CON0 0x0300
291#define VIO18_CON1 0x0302
292#define VIO18_CON2 0x0304
293#define VIO18_CON3 0x0306
294#define VIO18_CON4 0x0308
295#define VIO18_CON5 0x030A
296#define VIO18_CON6 0x030C
297#define VIO18_CON7 0x030E
298#define VIO18_CON8 0x0310
299#define VIO18_CON9 0x0312
300#define VIO18_CON10 0x0314
301#define VIO18_CON11 0x0316
302#define VIO18_CON12 0x0318
303#define VIO18_CON13 0x031A
304#define VIO18_CON14 0x031C
305#define VIO18_CON15 0x031E
306#define VIO18_CON16 0x0320
307#define VIO18_CON17 0x0322
308#define VIO18_CON18 0x0324
309#define VPA_CON0 0x0326
310#define VPA_CON1 0x0328
311#define VPA_CON2 0x032A
312#define VPA_CON3 0x032C
313#define VPA_CON4 0x032E
314#define VPA_CON5 0x0330
315#define VPA_CON6 0x0332
316#define VPA_CON7 0x0334
317#define VPA_CON8 0x0336
318#define VPA_CON9 0x0338
319#define VPA_CON10 0x033A
320#define VPA_CON11 0x033C
321#define VPA_CON12 0x033E
322#define VPA_CON13 0x0340
323#define VPA_CON14 0x0342
324#define VPA_CON15 0x0344
325#define VPA_CON16 0x0346
326#define VPA_CON17 0x0348
327#define VPA_CON18 0x034A
328#define VPA_CON19 0x034C
329#define VPA_CON20 0x034E
330#define VRF18_CON0 0x0350
331#define VRF18_CON1 0x0352
332#define VRF18_CON2 0x0354
333#define VRF18_CON3 0x0356
334#define VRF18_CON4 0x0358
335#define VRF18_CON5 0x035A
336#define VRF18_CON6 0x035C
337#define VRF18_CON7 0x035E
338#define VRF18_CON8 0x0360
339#define VRF18_CON9 0x0362
340#define VRF18_CON10 0x0364
341#define VRF18_CON11 0x0366
342#define VRF18_CON12 0x0368
343#define VRF18_CON13 0x036A
344#define VRF18_CON14 0x036C
345#define VRF18_CON15 0x036E
346#define VRF18_CON16 0x0370
347#define VRF18_CON17 0x0372
348#define VRF18_CON18 0x0374
349#define VRF18_CON19 0x0376
350#define VRF18_CON20 0x0378
351#define VRF18_2_CON0 0x037A
352#define VRF18_2_CON1 0x037C
353#define VRF18_2_CON2 0x037E
354#define VRF18_2_CON3 0x0380
355#define VRF18_2_CON4 0x0382
356#define VRF18_2_CON5 0x0384
357#define VRF18_2_CON6 0x0386
358#define VRF18_2_CON7 0x0388
359#define VRF18_2_CON8 0x038A
360#define VRF18_2_CON9 0x038C
361#define VRF18_2_CON10 0x038E
362#define VRF18_2_CON11 0x0390
363#define VRF18_2_CON12 0x0392
364#define VRF18_2_CON13 0x0394
365#define VRF18_2_CON14 0x0396
366#define VRF18_2_CON15 0x0398
367#define VRF18_2_CON16 0x039A
368#define VRF18_2_CON17 0x039C
369#define VRF18_2_CON18 0x039E
370#define BUCK_K_CON0 0x03A0
371#define BUCK_K_CON1 0x03A2
372#define ANALDO_CON0 0x0400
373#define ANALDO_CON1 0x0402
374#define ANALDO_CON2 0x0404
375#define ANALDO_CON3 0x0406
376#define ANALDO_CON4 0x0408
377#define ANALDO_CON5 0x040A
378#define ANALDO_CON6 0x040C
379#define ANALDO_CON7 0x040E
380#define ANALDO_CON8 0x0410
381#define ANALDO_CON9 0x0412
382#define ANALDO_CON10 0x0414
383#define ANALDO_CON11 0x0416
384#define ANALDO_CON12 0x0418
385#define ANALDO_CON13 0x041A
386#define ANALDO_CON14 0x041C
387#define ANALDO_CON15 0x041E
388#define DIGLDO_CON0 0x0420
389#define DIGLDO_CON2 0x0422
390#define DIGLDO_CON3 0x0424
391#define DIGLDO_CON5 0x0426
392#define DIGLDO_CON6 0x0428
393#define DIGLDO_CON7 0x042A
394#define DIGLDO_CON8 0x042C
395#define DIGLDO_CON9 0x042E
396#define DIGLDO_CON10 0x0430
397#define DIGLDO_CON11 0x0432
398#define DIGLDO_CON12 0x0434
399#define DIGLDO_CON13 0x0436
400#define DIGLDO_CON14 0x0438
401#define DIGLDO_CON15 0x043A
402#define DIGLDO_CON16 0x043C
403#define DIGLDO_CON17 0x043E
404#define DIGLDO_CON18 0x0440
405#define DIGLDO_CON19 0x0442
406#define DIGLDO_CON20 0x0444
407#define DIGLDO_CON21 0x0446
408#define DIGLDO_CON23 0x0448
409#define DIGLDO_CON24 0x044A
410#define DIGLDO_CON26 0x044C
411#define DIGLDO_CON27 0x044E
412#define DIGLDO_CON28 0x0450
413#define DIGLDO_CON29 0x0452
414#define DIGLDO_CON30 0x0454
415#define DIGLDO_CON31 0x0456
416#define DIGLDO_CON32 0x0458
417#define DIGLDO_CON33 0x045A
418#define DIGLDO_CON34 0x045C
419#define DIGLDO_CON35 0x045E
420#define DIGLDO_CON36 0x0460
421#define DIGLDO_CON37 0x0462
422#define DIGLDO_CON38 0x0464
423#define DIGLDO_CON39 0x0466
424#define DIGLDO_CON40 0x0468
425#define DIGLDO_CON41 0x046A
426#define DIGLDO_CON42 0x046C
427#define DIGLDO_CON43 0x046E
428#define DIGLDO_CON44 0x0470
429#define STRUP_CON0 0x0500
430#define STRUP_CON2 0x0502
431#define STRUP_CON3 0x0504
432#define STRUP_CON4 0x0506
433#define STRUP_CON5 0x0508
434#define STRUP_CON6 0x050A
435#define STRUP_CON7 0x050C
436#define STRUP_CON8 0x050E
437#define STRUP_CON9 0x0510
438#define AUXADC_ADC0 0x0512
439#define AUXADC_ADC1 0x0514
440#define AUXADC_ADC2 0x0516
441#define AUXADC_ADC3 0x0518
442#define AUXADC_ADC4 0x051A
443#define AUXADC_ADC5 0x051C
444#define AUXADC_ADC6 0x051E
445#define AUXADC_ADC7 0x0520
446#define AUXADC_ADC8 0x0522
447#define AUXADC_ADC9 0x0524
448#define AUXADC_ADC10 0x0526
449#define AUXADC_ADC11 0x0528
450#define AUXADC_ADC12 0x052A
451#define AUXADC_ADC13 0x052C
452#define AUXADC_ADC14 0x052E
453#define AUXADC_ADC15 0x0530
454#define AUXADC_ADC16 0x0532
455#define AUXADC_ADC17 0x0534
456#define AUXADC_ADC18 0x0536
457#define AUXADC_ADC19 0x0538
458#define AUXADC_ADC20 0x053A
459#define AUXADC_ADC21 0x053C
460#define AUXADC_ADC22 0x053E
461#define AUXADC_CON0 0x0540
462#define AUXADC_CON1 0x0542
463#define AUXADC_CON2 0x0544
464#define AUXADC_CON3 0x0546
465#define AUXADC_CON4 0x0548
466#define AUXADC_CON5 0x054A
467#define AUXADC_CON6 0x054C
468#define AUXADC_CON7 0x054E
469#define AUXADC_CON8 0x0550
470#define AUXADC_CON9 0x0552
471#define AUXADC_CON10 0x0554
472#define AUXADC_CON11 0x0556
473#define AUXADC_CON12 0x0558
474#define AUXADC_CON13 0x055A
475#define AUXADC_CON14 0x055C
476#define FLASH_CON0 0x055E
477#define FLASH_CON1 0x0560
478#define FLASH_CON2 0x0562
479#define KPLED_CON0 0x0564
480#define KPLED_CON1 0x0566
481#define KPLED_CON2 0x0568
482#define ISINKS_CON0 0x056A
483#define ISINKS_CON1 0x056C
484#define ISINKS_CON2 0x056E
485#define ISINKS_CON3 0x0570
486#define ISINKS_CON4 0x0572
487#define ISINKS_CON5 0x0574
488#define ISINKS_CON6 0x0576
489#define ISINKS_CON7 0x0578
490#define ISINKS_CON8 0x057A
491#define ISINKS_CON9 0x057C
492#define ISINKS_CON10 0x057E
493#define ISINKS_CON11 0x0580
494#define ACCDET_CON0 0x0582
495#define ACCDET_CON1 0x0584
496#define ACCDET_CON2 0x0586
497#define ACCDET_CON3 0x0588
498#define ACCDET_CON4 0x058A
499#define ACCDET_CON5 0x058C
500#define ACCDET_CON6 0x058E
501#define ACCDET_CON7 0x0590
502#define ACCDET_CON8 0x0592
503#define ACCDET_CON9 0x0594
504#define ACCDET_CON10 0x0596
505#define ACCDET_CON11 0x0598
506#define ACCDET_CON12 0x059A
507#define ACCDET_CON13 0x059C
508#define ACCDET_CON14 0x059E
509#define ACCDET_CON15 0x05A0
510#define ACCDET_CON16 0x05A2
511#define SPK_CON0 0x0600
512#define SPK_CON1 0x0602
513#define SPK_CON2 0x0604
514#define SPK_CON3 0x0606
515#define SPK_CON4 0x0608
516#define SPK_CON5 0x060A
517#define SPK_CON6 0x060C
518#define SPK_CON7 0x060E
519#define SPK_CON8 0x0610
520#define SPK_CON9 0x0612
521#define SPK_CON10 0x0614
522#define SPK_CON11 0x0616
523#define FGADC_CON0 0x0618
524#define FGADC_CON1 0x061A
525#define FGADC_CON2 0x061C
526#define FGADC_CON3 0x061E
527#define FGADC_CON4 0x0620
528#define FGADC_CON5 0x0622
529#define FGADC_CON6 0x0624
530#define FGADC_CON7 0x0626
531#define FGADC_CON8 0x0628
532#define FGADC_CON9 0x062A
533#define FGADC_CON10 0x062C
534#define FGADC_CON11 0x062E
535#define FGADC_CON12 0x0630
536#define FGADC_CON13 0x0632
537#define FGADC_CON14 0x0634
538#define FGADC_CON15 0x0636
539#define FGADC_CON16 0x0638
540#define FGADC_CON17 0x063A
541#define FGADC_CON18 0x063C
542#define FGADC_CON19 0x063E
543#define RTC_MIX_CON0 0x0640
544#define RTC_MIX_CON1 0x0642
545#define AUDDAC_CON0 0x0700
546#define AUDBUF_CFG0 0x0702
547#define AUDBUF_CFG1 0x0704
548#define AUDBUF_CFG2 0x0706
549#define AUDBUF_CFG3 0x0708
550#define AUDBUF_CFG4 0x070A
551#define IBIASDIST_CFG0 0x070C
552#define AUDACCDEPOP_CFG0 0x070E
553#define AUD_IV_CFG0 0x0710
554#define AUDCLKGEN_CFG0 0x0712
555#define AUDLDO_CFG0 0x0714
556#define AUDLDO_CFG1 0x0716
557#define AUDNVREGGLB_CFG0 0x0718
558#define AUD_NCP0 0x071A
559#define AUDPREAMP_CON0 0x071C
560#define AUDADC_CON0 0x071E
561#define AUDADC_CON1 0x0720
562#define AUDADC_CON2 0x0722
563#define AUDADC_CON3 0x0724
564#define AUDADC_CON4 0x0726
565#define AUDADC_CON5 0x0728
566#define AUDADC_CON6 0x072A
567#define AUDDIGMI_CON0 0x072C
568#define AUDLSBUF_CON0 0x072E
569#define AUDLSBUF_CON1 0x0730
570#define AUDENCSPARE_CON0 0x0732
571#define AUDENCCLKSQ_CON0 0x0734
572#define AUDPREAMPGAIN_CON0 0x0736
573#define ZCD_CON0 0x0738
574#define ZCD_CON1 0x073A
575#define ZCD_CON2 0x073C
576#define ZCD_CON3 0x073E
577#define ZCD_CON4 0x0740
578#define ZCD_CON5 0x0742
579#define NCP_CLKDIV_CON0 0x0744
580#define NCP_CLKDIV_CON1 0x0746
581
582//mask is HEX
583//shift is Integer
584#define STATUS_VSIM1_EN_MASK 0x1
585#define STATUS_VSIM1_EN_SHIFT 12
586#define STATUS_VSIM2_EN_MASK 0x1
587#define STATUS_VSIM2_EN_SHIFT 11
588#define OC_STATUS_VSIM1_MASK 0x1
589#define OC_STATUS_VSIM1_SHIFT 12
590#define OC_STATUS_VSIM2_MASK 0x1
591#define OC_STATUS_VSIM2_SHIFT 11
592#define RG_SIMLS2_SRST_CONF_MASK 0xF
593#define RG_SIMLS2_SRST_CONF_SHIFT 12
594#define RG_SIMLS2_SCLK_CONF_MASK 0xF
595#define RG_SIMLS2_SCLK_CONF_SHIFT 8
596#define RG_SIMLS1_SRST_CONF_MASK 0xF
597#define RG_SIMLS1_SRST_CONF_SHIFT 4
598#define RG_SIMLS1_SCLK_CONF_MASK 0xF
599#define RG_SIMLS1_SCLK_CONF_SHIFT 0
600#define RG_SIMLS_TDSEL_MASK 0x3
601#define RG_SIMLS_TDSEL_SHIFT 7
602#define RG_SIMAP_TDSEL_MASK 0x1
603#define RG_SIMAP_TDSEL_SHIFT 0
604#define RG_SIMLS_RDSEL_MASK 0x3
605#define RG_SIMLS_RDSEL_SHIFT 7
606#define RG_SIMAP_RDSEL_MASK 0x1
607#define RG_SIMAP_RDSEL_SHIFT 0
608#define RG_OCTL_SIM1_AP_SRST_MASK 0xF
609#define RG_OCTL_SIM1_AP_SRST_SHIFT 12
610#define RG_OCTL_SIM1_AP_SCLK_MASK 0xF
611#define RG_OCTL_SIM1_AP_SCLK_SHIFT 8
612#define RG_OCTL_SIMLS1_SRST_MASK 0xF
613#define RG_OCTL_SIMLS1_SRST_SHIFT 12
614#define RG_OCTL_SIMLS1_SCLK_MASK 0xF
615#define RG_OCTL_SIMLS1_SCLK_SHIFT 8
616#define RG_OCTL_SIM2_AP_SRST_MASK 0xF
617#define RG_OCTL_SIM2_AP_SRST_SHIFT 4
618#define RG_OCTL_SIM2_AP_SCLK_MASK 0xF
619#define RG_OCTL_SIM2_AP_SCLK_SHIFT 0
620#define RG_OCTL_SIMLS2_SRST_MASK 0xF
621#define RG_OCTL_SIMLS2_SRST_SHIFT 4
622#define RG_OCTL_SIMLS2_SCLK_MASK 0xF
623#define RG_OCTL_SIMLS2_SCLK_SHIFT 0
624#define RG_VIO18_MODESET_MASK 0x1
625#define RG_VIO18_MODESET_SHIFT 8
626#define RG_VPA_MODESET_MASK 0x1
627#define RG_VPA_MODESET_SHIFT 8
628#define VPA_EN_MASK 0x1
629#define VPA_EN_SHIFT 0
630#define RG_VRF18_MODESET_MASK 0x1
631#define RG_VRF18_MODESET_SHIFT 8
632#define RG_VRF18_BK_LDO_MASK 0x1
633#define RG_VRF18_BK_LDO_SHIFT 1
634#define VRF18_EN_CTRL_MASK 0x1
635#define VRF18_EN_CTRL_SHIFT 0
636#define VRF18_EN_MASK 0x1
637#define VRF18_EN_SHIFT 0
638#define RG_VRF18_2_MODESET_MASK 0x1
639#define RG_VRF18_2_MODESET_SHIFT 8
640#define RG_VRF18_2_BK_LDO_MASK 0x1
641#define RG_VRF18_2_BK_LDO_SHIFT 1
642#define VRF18_2_EN_CTRL_MASK 0x1
643#define VRF18_2_EN_CTRL_SHIFT 0
644#define VRF18_2_EN_SEL_MASK 0x7
645#define VRF18_2_EN_SEL_SHIFT 0
646#define VRF18_2_EN_MASK 0x1
647#define VRF18_2_EN_SHIFT 0
648#define VRF28_ON_CTRL_MASK 0x1
649#define VRF28_ON_CTRL_SHIFT 14
650#define RG_VRF28_EN_MASK 0x1
651#define RG_VRF28_EN_SHIFT 12
652#define VRF28_SRCLK_EN_SEL_MASK 0x7
653#define VRF28_SRCLK_EN_SEL_SHIFT 4
654#define VRF28_ON_2_CTRL_MASK 0x1
655#define VRF28_ON_2_CTRL_SHIFT 14
656#define RG_VRF28_2_EN_MASK 0x1
657#define RG_VRF28_2_EN_SHIFT 12
658#define VRF28_2_SRCLK_EN_SEL_MASK 0x7
659#define VRF28_2_SRCLK_EN_SEL_SHIFT 4
660#define RG_VSIM1_EN_MASK 0x1
661#define RG_VSIM1_EN_SHIFT 15
662#define RG_VSIM1_STBTD_MASK 0x3
663#define RG_VSIM1_STBTD_SHIFT 12
664#define QI_VSIM1_MODE_MASK 0x1
665#define QI_VSIM1_MODE_SHIFT 7
666#define VSIM1_SRCLK_MODE_SEL_MASK 0x7
667#define VSIM1_SRCLK_MODE_SEL_SHIFT 4
668#define VSIM1_LP_MODE_SET_MASK 0x1
669#define VSIM1_LP_MODE_SET_SHIFT 1
670#define VSIM1_LP_SEL_MASK 0x1
671#define VSIM1_LP_SEL_SHIFT 0
672#define RG_VSIM2_EN_MASK 0x1
673#define RG_VSIM2_EN_SHIFT 15
674#define RG_VSIM2_STBTD_MASK 0x3
675#define RG_VSIM2_STBTD_SHIFT 12
676#define QI_VSIM2_MODE_MASK 0x1
677#define QI_VSIM2_MODE_SHIFT 7
678#define VSIM2_SRCLK_MODE_SEL_MASK 0x7
679#define VSIM2_SRCLK_MODE_SEL_SHIFT 4
680#define VSIM2_THER_SHDN_EN_MASK 0x1
681#define VSIM2_THER_SHDN_EN_SHIFT 2
682#define VSIM2_LP_MODE_SET_MASK 0x1
683#define VSIM2_LP_MODE_SET_SHIFT 1
684#define VSIM2_LP_SEL_MASK 0x1
685#define VSIM2_LP_SEL_SHIFT 0
686#define QI_VSIM1_OC_STATUS_MASK 0x1
687#define QI_VSIM1_OC_STATUS_SHIFT 3
688#define QI_VSIM2_OC_STATUS_MASK 0x1
689#define QI_VSIM2_OC_STATUS_SHIFT 2
690#define RG_VSIM1_CAL_MASK 0xF
691#define RG_VSIM1_CAL_SHIFT 8
692#define RG_VSIM1_VOSEL_MASK 0x7
693#define RG_VSIM1_VOSEL_SHIFT 5
694#define RG_VSIM1_STB_SEL_MASK 0x1
695#define RG_VSIM1_STB_SEL_SHIFT 4
696#define RG_VSIM1_OCFB_MASK 0x1
697#define RG_VSIM1_OCFB_SHIFT 2
698#define RG_VSIM1_NDIS_EN_MASK 0x1
699#define RG_VSIM1_NDIS_EN_SHIFT 0
700#define RG_VSIM2_CAL_MASK 0xF
701#define RG_VSIM2_CAL_SHIFT 8
702#define RG_VSIM2_VOSEL_MASK 0x7
703#define RG_VSIM2_VOSEL_SHIFT 5
704#define RG_VSIM2_STB_SEL_MASK 0x1
705#define RG_VSIM2_STB_SEL_SHIFT 4
706#define RG_VSIM2_OCFB_MASK 0x1
707#define RG_VSIM2_OCFB_SHIFT 2
708#define RG_VSIM2_NDIS_EN_MASK 0x1
709#define RG_VSIM2_NDIS_EN_SHIFT 0
710#define VSIM1_ON_CTRL_MASK 0x1
711#define VSIM1_ON_CTRL_SHIFT 9
712#define VSIM2_ON_CTRL_MASK 0x1
713#define VSIM2_ON_CTRL_SHIFT 8
714
715/* =================================================================*/
716
717#define DEW_EVENT_OUT_EN (DEW_BASE+0x0)
718#define DEW_DIO_EN (DEW_BASE+0x2)
719#define DEW_EVENT_SRC_EN (DEW_BASE+0x4)
720#define DEW_EVENT_SRC (DEW_BASE+0x6)
721#define DEW_EVENT_FLAG (DEW_BASE+0x8)
722#define DEW_READ_TEST (DEW_BASE+0xA)
723#define DEW_WRITE_TEST (DEW_BASE+0xC)
724#define DEW_CRC_EN (DEW_BASE+0xE)
725#define DEW_CRC_VAL (DEW_BASE+0x10)
726#define DEW_MON_GRP_SEL (DEW_BASE+0x12)
727#define DEW_MON_FLAG_SEL (DEW_BASE+0x14)
728#define DEW_EVENT_TEST (DEW_BASE+0x16)
729#define DEW_CIPHER_KEY_SEL (DEW_BASE+0x18)
730#define DEW_CIPHER_IV_SEL (DEW_BASE+0x1A)
731#define DEW_CIPHER_LOAD (DEW_BASE+0x1C)
732#define DEW_CIPHER_START (DEW_BASE+0x1E)
733#define DEW_CIPHER_RDY (DEW_BASE+0x20)
734#define DEW_CIPHER_MODE (DEW_BASE+0x22)
735#define DEW_CIPHER_SWRST (DEW_BASE+0x24)
736#define DEW_CIPHER_IV0 (DEW_BASE+0x26)
737#define DEW_CIPHER_IV1 (DEW_BASE+0x28)
738#define DEW_CIPHER_IV2 (DEW_BASE+0x2A)
739#define DEW_CIPHER_IV3 (DEW_BASE+0x2C)
740#define DEW_CIPHER_IV4 (DEW_BASE+0x2E)
741#define DEW_CIPHER_IV5 (DEW_BASE+0x30)
742
743#endif // #ifdef PMIC_6320_REG_API
744#endif // #ifndef __DCL_PMIC6320_HW_H_STRUCT__
745