Commit | Line | Data |
---|---|---|
8c8e2e88 S |
1 | /* |
2 | * Generated by MTK SP Drv_CodeGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013. | |
3 | * Mon Mar 19 18:10:35 2018 | |
4 | * Do Not Modify the File. | |
5 | */ | |
6 | ||
7 | #ifndef __CUST_GPIO_USAGE_H__ | |
8 | #define __CUST_GPIO_USAGE_H__ | |
9 | ||
10 | ||
11 | #define GPIO_PMIC_EINT_PIN (GPIO2 | 0x80000000) | |
12 | #define GPIO_PMIC_EINT_PIN_M_GPIO GPIO_MODE_00 | |
13 | #define GPIO_PMIC_EINT_PIN_M_EINT GPIO_PMIC_EINT_PIN_M_GPIO | |
14 | ||
15 | #define GPIO_CAMERA_CMPDN1_PIN (GPIO5 | 0x80000000) | |
16 | #define GPIO_CAMERA_CMPDN1_PIN_M_GPIO GPIO_MODE_00 | |
17 | ||
18 | #define GPIO_CAMERA_CMRST1_PIN (GPIO6 | 0x80000000) | |
19 | #define GPIO_CAMERA_CMRST1_PIN_M_GPIO GPIO_MODE_00 | |
20 | ||
21 | #define GPIO_AUD_CLK_MOSI_PIN (GPIO7 | 0x80000000) | |
22 | #define GPIO_AUD_CLK_MOSI_PIN_M_GPIO GPIO_MODE_00 | |
23 | #define GPIO_AUD_CLK_MOSI_PIN_M_CLK GPIO_MODE_01 | |
24 | ||
25 | #define GPIO_AUD_DAT_MISO_PIN (GPIO8 | 0x80000000) | |
26 | #define GPIO_AUD_DAT_MISO_PIN_M_GPIO GPIO_MODE_00 | |
27 | #define GPIO_AUD_DAT_MISO_PIN_M_AUD_MISO GPIO_MODE_01 | |
28 | ||
29 | #define GPIO_AUD_DAT_MOSI_PIN (GPIO9 | 0x80000000) | |
30 | #define GPIO_AUD_DAT_MOSI_PIN_M_GPIO GPIO_MODE_00 | |
31 | #define GPIO_AUD_DAT_MOSI_PIN_M_AUD_MOSI GPIO_MODE_01 | |
32 | ||
33 | #define GPIO_NFC_OSC_EN_PIN (GPIO13 | 0x80000000) | |
34 | #define GPIO_NFC_OSC_EN_PIN_M_GPIO GPIO_MODE_00 | |
35 | #define GPIO_NFC_OSC_EN_PIN_M_CLK GPIO_MODE_01 | |
36 | ||
37 | #define GPIO_HALL_1_PIN (GPIO18 | 0x80000000) | |
38 | #define GPIO_HALL_1_PIN_M_GPIO GPIO_MODE_00 | |
39 | #define GPIO_HALL_1_PIN_M_CLK GPIO_MODE_01 | |
40 | ||
41 | #define GPIO_NFC_VENB_PIN (GPIO19 | 0x80000000) | |
42 | #define GPIO_NFC_VENB_PIN_M_GPIO GPIO_MODE_00 | |
43 | #define GPIO_NFC_VENB_PIN_M_PCM_SYNC GPIO_MODE_01 | |
44 | ||
45 | #define GPIO_HALL_2_PIN (GPIO20 | 0x80000000) | |
46 | #define GPIO_HALL_2_PIN_M_GPIO GPIO_MODE_00 | |
47 | ||
48 | #define GPIO_SUB_CAM_ID_PIN (GPIO22 | 0x80000000) | |
49 | #define GPIO_SUB_CAM_ID_PIN_M_GPIO GPIO_MODE_00 | |
50 | #define GPIO_SUB_CAM_ID_PIN_M_PWM GPIO_MODE_01 | |
51 | ||
52 | #define GPIO_ACCDET_EINT_PIN (GPIO23 | 0x80000000) | |
53 | #define GPIO_ACCDET_EINT_PIN_M_GPIO GPIO_MODE_00 | |
54 | #define GPIO_ACCDET_EINT_PIN_M_PWM GPIO_MODE_01 | |
55 | #define GPIO_ACCDET_EINT_PIN_M_EINT GPIO_ACCDET_EINT_PIN_M_GPIO | |
56 | ||
57 | #define GPIO_MAIN_CAM_ID_PIN (GPIO24 | 0x80000000) | |
58 | #define GPIO_MAIN_CAM_ID_PIN_M_GPIO GPIO_MODE_00 | |
59 | #define GPIO_MAIN_CAM_ID_PIN_M_CLK GPIO_MODE_01 | |
60 | #define GPIO_MAIN_CAM_ID_PIN_M_KCOL GPIO_MODE_06 | |
61 | #define GPIO_MAIN_CAM_ID_PIN_CLK CLK_OUT0 | |
62 | #define GPIO_MAIN_CAM_ID_PIN_FREQ GPIO_CLKSRC_NONE | |
63 | ||
64 | #define GPIO_CTP_RST_PIN (GPIO25 | 0x80000000) | |
65 | #define GPIO_CTP_RST_PIN_M_GPIO GPIO_MODE_00 | |
66 | #define GPIO_CTP_RST_PIN_M_CLK GPIO_MODE_01 | |
67 | #define GPIO_CTP_RST_PIN_M_KCOL GPIO_MODE_06 | |
68 | #define GPIO_CTP_RST_PIN_CLK CLK_OUT1 | |
69 | #define GPIO_CTP_RST_PIN_FREQ GPIO_CLKSRC_NONE | |
70 | ||
71 | #define GPIO_HDMI_POWER_CONTROL (GPIO27 | 0x80000000) | |
72 | #define GPIO_HDMI_POWER_CONTROL_M_GPIO GPIO_MODE_00 | |
73 | #define GPIO_HDMI_POWER_CONTROL_M_KCOL GPIO_MODE_06 | |
74 | ||
75 | #define GPIO_CAMERA_CMPDN_PIN (GPIO29 | 0x80000000) | |
76 | #define GPIO_CAMERA_CMPDN_PIN_M_GPIO GPIO_MODE_00 | |
77 | ||
78 | #define GPIO_CTP_EINT_PIN (GPIO30 | 0x80000000) | |
79 | #define GPIO_CTP_EINT_PIN_M_GPIO GPIO_MODE_00 | |
80 | #define GPIO_CTP_EINT_PIN_M_CLK GPIO_MODE_02 | |
81 | #define GPIO_CTP_EINT_PIN_M_EINT GPIO_CTP_EINT_PIN_M_GPIO | |
82 | #define GPIO_CTP_EINT_PIN_CLK CLK_OUT3 | |
83 | #define GPIO_CTP_EINT_PIN_FREQ GPIO_CLKSRC_NONE | |
84 | ||
85 | #define GPIO_GSE_1_EINT_PIN (GPIO31 | 0x80000000) | |
86 | #define GPIO_GSE_1_EINT_PIN_M_GPIO GPIO_MODE_00 | |
87 | #define GPIO_GSE_1_EINT_PIN_M_CLK GPIO_MODE_01 | |
88 | #define GPIO_GSE_1_EINT_PIN_M_EINT GPIO_GSE_1_EINT_PIN_M_GPIO | |
89 | #define GPIO_GSE_1_EINT_PIN_CLK CLK_OUT4 | |
90 | #define GPIO_GSE_1_EINT_PIN_FREQ GPIO_CLKSRC_NONE | |
91 | ||
92 | #define GPIO_GSE_2_EINT_PIN (GPIO32 | 0x80000000) | |
93 | #define GPIO_GSE_2_EINT_PIN_M_GPIO GPIO_MODE_00 | |
94 | #define GPIO_GSE_2_EINT_PIN_M_CLK GPIO_MODE_01 | |
95 | #define GPIO_GSE_2_EINT_PIN_M_EINT GPIO_GSE_2_EINT_PIN_M_GPIO | |
96 | #define GPIO_GSE_2_EINT_PIN_CLK CLK_OUT5 | |
97 | #define GPIO_GSE_2_EINT_PIN_FREQ GPIO_CLKSRC_NONE | |
98 | ||
99 | #define GPIO_KPD_KROW0_PIN (GPIO33 | 0x80000000) | |
100 | #define GPIO_KPD_KROW0_PIN_M_GPIO GPIO_MODE_00 | |
101 | #define GPIO_KPD_KROW0_PIN_M_KROW GPIO_MODE_01 | |
102 | ||
103 | #define GPIO_CAMERA_CMRST_PIN (GPIO34 | 0x80000000) | |
104 | #define GPIO_CAMERA_CMRST_PIN_M_GPIO GPIO_MODE_00 | |
105 | #define GPIO_CAMERA_CMRST_PIN_M_KROW GPIO_MODE_01 | |
106 | ||
107 | #define GPIO_OTG_DRVVBUS_PIN (GPIO35 | 0x80000000) | |
108 | #define GPIO_OTG_DRVVBUS_PIN_M_GPIO GPIO_MODE_00 | |
109 | #define GPIO_OTG_DRVVBUS_PIN_M_KROW GPIO_MODE_01 | |
110 | ||
111 | #define GPIO_KPD_KCOL0_PIN (GPIO36 | 0x80000000) | |
112 | #define GPIO_KPD_KCOL0_PIN_M_GPIO GPIO_MODE_00 | |
113 | #define GPIO_KPD_KCOL0_PIN_M_KCOL GPIO_MODE_01 | |
114 | ||
115 | #define GPIO_KPD_KCOL1_PIN (GPIO37 | 0x80000000) | |
116 | #define GPIO_KPD_KCOL1_PIN_M_GPIO GPIO_MODE_00 | |
117 | #define GPIO_KPD_KCOL1_PIN_M_KCOL GPIO_MODE_01 | |
118 | ||
119 | #define GPIO_OTG_IDDIG_EINT_PIN (GPIO38 | 0x80000000) | |
120 | #define GPIO_OTG_IDDIG_EINT_PIN_M_GPIO GPIO_MODE_00 | |
121 | #define GPIO_OTG_IDDIG_EINT_PIN_M_KCOL GPIO_MODE_01 | |
122 | #define GPIO_OTG_IDDIG_EINT_PIN_M_IDDIG GPIO_MODE_02 | |
123 | ||
124 | #define GPIO_MSDC1_INSI (GPIO43 | 0x80000000) | |
125 | #define GPIO_MSDC1_INSI_M_GPIO GPIO_MODE_00 | |
126 | #define GPIO_MSDC1_INSI_M_CLK GPIO_MODE_01 | |
127 | #define GPIO_MSDC1_INSI_M_KROW GPIO_MODE_03 | |
128 | #define GPIO_MSDC1_INSI_M_PWM GPIO_MODE_02 | |
129 | #define GPIO_MSDC1_INSI_M_EINT GPIO_MSDC1_INSI_M_GPIO | |
130 | #define GPIO_MSDC1_INSI_CLK CLK_OUT4 | |
131 | #define GPIO_MSDC1_INSI_FREQ GPIO_CLKSRC_NONE | |
132 | ||
133 | #define GPIO_CTP_EN_PIN (GPIO45 | 0x80000000) | |
134 | #define GPIO_CTP_EN_PIN_M_GPIO GPIO_MODE_00 | |
135 | ||
136 | #define GPIO_MHALL_EINT_PIN (GPIO50 | 0x80000000) | |
137 | #define GPIO_MHALL_EINT_PIN_M_GPIO GPIO_MODE_00 | |
138 | #define GPIO_MHALL_EINT_PIN_M_CLK GPIO_MODE_02 | |
139 | #define GPIO_MHALL_EINT_PIN_M_EINT GPIO_MHALL_EINT_PIN_M_GPIO | |
140 | #define GPIO_MHALL_EINT_PIN_CLK CLK_OUT3 | |
141 | #define GPIO_MHALL_EINT_PIN_FREQ GPIO_CLKSRC_NONE | |
142 | ||
143 | #define GPIO_ALS_EINT_PIN (GPIO51 | 0x80000000) | |
144 | #define GPIO_ALS_EINT_PIN_M_GPIO GPIO_MODE_00 | |
145 | #define GPIO_ALS_EINT_PIN_M_CLK GPIO_MODE_04 | |
146 | #define GPIO_ALS_EINT_PIN_M_EINT GPIO_ALS_EINT_PIN_M_GPIO | |
147 | #define GPIO_ALS_EINT_PIN_CLK CLK_OUT1 | |
148 | #define GPIO_ALS_EINT_PIN_FREQ GPIO_CLKSRC_NONE | |
149 | ||
150 | #define GPIO_I2C1_SDA_PIN (GPIO57 | 0x80000000) | |
151 | #define GPIO_I2C1_SDA_PIN_M_GPIO GPIO_MODE_00 | |
152 | #define GPIO_I2C1_SDA_PIN_M_SDA GPIO_MODE_01 | |
153 | ||
154 | #define GPIO_I2C1_SCA_PIN (GPIO58 | 0x80000000) | |
155 | #define GPIO_I2C1_SCA_PIN_M_GPIO GPIO_MODE_00 | |
156 | #define GPIO_I2C1_SCA_PIN_M_SCL GPIO_MODE_01 | |
157 | ||
158 | #define GPIO_I2C0_SDA_PIN (GPIO75 | 0x80000000) | |
159 | #define GPIO_I2C0_SDA_PIN_M_GPIO GPIO_MODE_00 | |
160 | #define GPIO_I2C0_SDA_PIN_M_SDA GPIO_MODE_01 | |
161 | ||
162 | #define GPIO_I2C0_SCA_PIN (GPIO76 | 0x80000000) | |
163 | #define GPIO_I2C0_SCA_PIN_M_GPIO GPIO_MODE_00 | |
164 | #define GPIO_I2C0_SCA_PIN_M_SCL GPIO_MODE_01 | |
165 | ||
166 | #define GPIO_UART_URXD1_PIN (GPIO79 | 0x80000000) | |
167 | #define GPIO_UART_URXD1_PIN_M_GPIO GPIO_MODE_00 | |
168 | #define GPIO_UART_URXD1_PIN_M_URXD GPIO_MODE_01 | |
169 | ||
170 | #define GPIO_UART_UTXD1_PIN (GPIO80 | 0x80000000) | |
171 | #define GPIO_UART_UTXD1_PIN_M_GPIO GPIO_MODE_00 | |
172 | #define GPIO_UART_UTXD1_PIN_M_UTXD GPIO_MODE_01 | |
173 | ||
174 | #define GPIO_LCM_RST (GPIO83 | 0x80000000) | |
175 | #define GPIO_LCM_RST_M_GPIO GPIO_MODE_00 | |
176 | ||
177 | #define GPIO_LCM_PWR_EN (GPIO85 | 0x80000000) | |
178 | #define GPIO_LCM_PWR_EN_M_GPIO GPIO_MODE_00 | |
179 | ||
180 | #define GPIO_CAMERA_FLASH_EN_PIN (GPIO117 | 0x80000000) | |
181 | #define GPIO_CAMERA_FLASH_EN_PIN_M_GPIO GPIO_MODE_00 | |
182 | #define GPIO_CAMERA_FLASH_EN_PIN_M_ANT_SEL GPIO_MODE_03 | |
183 | ||
184 | #define GPIO_GPS_LNA_PIN (GPIO118 | 0x80000000) | |
185 | #define GPIO_GPS_LNA_PIN_M_GPIO GPIO_MODE_00 | |
186 | #define GPIO_GPS_LNA_PIN_M_CMDAT GPIO_MODE_01 | |
187 | #define GPIO_GPS_LNA_PIN_M_CMCSD GPIO_MODE_02 | |
188 | #define GPIO_GPS_LNA_PIN_M_ANT_SEL GPIO_MODE_03 | |
189 | #define GPIO_GPS_LNA_PIN_M_DBG_MON_B GPIO_MODE_07 | |
190 | ||
191 | ||
192 | /*Output for default variable names*/ | |
193 | /*@XXX_XX_PIN in gpio.cmp */ | |
194 | ||
195 | ||
196 | ||
197 | ||
198 | /*Output for default variable names*/ | |
199 | /*@XXX_XX_PIN in gpio.cmp */ | |
200 | ||
201 | ||
202 | ||
203 | #endif /* __CUST_GPIO_USAGE_H__ */ | |
204 | ||
205 |