blob: 8cf2e040c0fe4e740af5ab0dd190b4bd29b683d0 [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_sw.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 * removed!
74 * removed!
75 * removed!
76 * removed!
77 * removed!
78 * removed!
79 * removed!
80 * removed!
81 *------------------------------------------------------------------------------
82 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
83 *============================================================================
84 ****************************************************************************/
85
86#ifndef __DCL_PMIC6320_SW_H_STRUCT__
87#define __DCL_PMIC6320_SW_H_STRUCT__
88
89#include "dcl_pmic_features.h"
90
91#ifdef PMIC_6320_REG_API
92
93#define PMIC6320_ECO_1_VERSION 0x01
94#define PMIC6320_ECO_2_VERSION 0x02
95
96// Combinational functions
97extern void pmic6320_customization_init(void);
98
99typedef enum
100{
101 STATUS_VSIM1_EN,
102 STATUS_VSIM2_EN,
103 OC_STATUS_VSIM1,
104 OC_STATUS_VSIM2,
105 RG_SIMLS2_SRST_CONF,
106 RG_SIMLS2_SCLK_CONF,
107 RG_SIMLS1_SRST_CONF,
108 RG_SIMLS1_SCLK_CONF,
109 RG_SIMLS_TDSEL,
110 RG_SIMAP_TDSEL,
111 RG_SIMLS_RDSEL,
112 RG_SIMAP_RDSEL,
113 RG_OCTL_SIM1_AP_SRST,
114 RG_OCTL_SIM1_AP_SCLK,
115 RG_OCTL_SIMLS1_SRST,
116 RG_OCTL_SIMLS1_SCLK,
117 RG_OCTL_SIM2_AP_SRST,
118 RG_OCTL_SIM2_AP_SCLK,
119 RG_OCTL_SIMLS2_SRST,
120 RG_OCTL_SIMLS2_SCLK,
121 RG_VIO18_MODESET,
122 RG_VPA_MODESET,
123 VPA_EN,
124 RG_VRF18_MODESET,
125 RG_VRF18_BK_LDO,
126 VRF18_EN_CTRL,
127 VRF18_EN,
128 RG_VRF18_2_MODESET,
129 RG_VRF18_2_BK_LDO,
130 VRF18_2_EN_CTRL,
131 VRF18_2_EN_SEL,
132 VRF18_2_EN,
133 VRF28_ON_CTRL,
134 RG_VRF28_EN,
135 VRF28_SRCLK_EN_SEL,
136 VRF28_ON_2_CTRL,
137 RG_VRF28_2_EN,
138 VRF28_2_SRCLK_EN_SEL,
139 RG_VSIM1_EN,
140 RG_VSIM1_STBTD,
141 QI_VSIM1_MODE,
142 VSIM1_SRCLK_MODE_SEL,
143 VSIM1_LP_MODE_SET,
144 VSIM1_LP_SEL,
145 RG_VSIM2_EN,
146 RG_VSIM2_STBTD,
147 QI_VSIM2_MODE,
148 VSIM2_SRCLK_MODE_SEL,
149 VSIM2_THER_SHDN_EN,
150 VSIM2_LP_MODE_SET,
151 VSIM2_LP_SEL,
152 QI_VSIM1_OC_STATUS,
153 QI_VSIM2_OC_STATUS,
154 RG_VSIM1_CAL,
155 RG_VSIM1_VOSEL,
156 RG_VSIM1_STB_SEL,
157 RG_VSIM1_OCFB,
158 RG_VSIM1_NDIS_EN,
159 RG_VSIM2_CAL,
160 RG_VSIM2_VOSEL,
161 RG_VSIM2_STB_SEL,
162 RG_VSIM2_OCFB,
163 RG_VSIM2_NDIS_EN,
164 VSIM1_ON_CTRL,
165 VSIM2_ON_CTRL,
166}PMIC_FLAGS_LIST_ENUM;
167
168#endif // #ifdef PMIC_6320_REG_API
169#endif // #ifndef __DCL_PMIC6320_SW_H_STRUCT__
170