diff options
Diffstat (limited to 'arch/arm/plat-pxa/include/plat')
-rw-r--r-- | arch/arm/plat-pxa/include/plat/mfp.h | 73 |
1 files changed, 71 insertions, 2 deletions
diff --git a/arch/arm/plat-pxa/include/plat/mfp.h b/arch/arm/plat-pxa/include/plat/mfp.h index 64019464c8db..22086e696e8e 100644 --- a/arch/arm/plat-pxa/include/plat/mfp.h +++ b/arch/arm/plat-pxa/include/plat/mfp.h | |||
@@ -150,6 +150,74 @@ enum { | |||
150 | MFP_PIN_GPIO125, | 150 | MFP_PIN_GPIO125, |
151 | MFP_PIN_GPIO126, | 151 | MFP_PIN_GPIO126, |
152 | MFP_PIN_GPIO127, | 152 | MFP_PIN_GPIO127, |
153 | |||
154 | MFP_PIN_GPIO128, | ||
155 | MFP_PIN_GPIO129, | ||
156 | MFP_PIN_GPIO130, | ||
157 | MFP_PIN_GPIO131, | ||
158 | MFP_PIN_GPIO132, | ||
159 | MFP_PIN_GPIO133, | ||
160 | MFP_PIN_GPIO134, | ||
161 | MFP_PIN_GPIO135, | ||
162 | MFP_PIN_GPIO136, | ||
163 | MFP_PIN_GPIO137, | ||
164 | MFP_PIN_GPIO138, | ||
165 | MFP_PIN_GPIO139, | ||
166 | MFP_PIN_GPIO140, | ||
167 | MFP_PIN_GPIO141, | ||
168 | MFP_PIN_GPIO142, | ||
169 | MFP_PIN_GPIO143, | ||
170 | MFP_PIN_GPIO144, | ||
171 | MFP_PIN_GPIO145, | ||
172 | MFP_PIN_GPIO146, | ||
173 | MFP_PIN_GPIO147, | ||
174 | MFP_PIN_GPIO148, | ||
175 | MFP_PIN_GPIO149, | ||
176 | MFP_PIN_GPIO150, | ||
177 | MFP_PIN_GPIO151, | ||
178 | MFP_PIN_GPIO152, | ||
179 | MFP_PIN_GPIO153, | ||
180 | MFP_PIN_GPIO154, | ||
181 | MFP_PIN_GPIO155, | ||
182 | MFP_PIN_GPIO156, | ||
183 | MFP_PIN_GPIO157, | ||
184 | MFP_PIN_GPIO158, | ||
185 | MFP_PIN_GPIO159, | ||
186 | MFP_PIN_GPIO160, | ||
187 | MFP_PIN_GPIO161, | ||
188 | MFP_PIN_GPIO162, | ||
189 | MFP_PIN_GPIO163, | ||
190 | MFP_PIN_GPIO164, | ||
191 | MFP_PIN_GPIO165, | ||
192 | MFP_PIN_GPIO166, | ||
193 | MFP_PIN_GPIO167, | ||
194 | MFP_PIN_GPIO168, | ||
195 | MFP_PIN_GPIO169, | ||
196 | MFP_PIN_GPIO170, | ||
197 | MFP_PIN_GPIO171, | ||
198 | MFP_PIN_GPIO172, | ||
199 | MFP_PIN_GPIO173, | ||
200 | MFP_PIN_GPIO174, | ||
201 | MFP_PIN_GPIO175, | ||
202 | MFP_PIN_GPIO176, | ||
203 | MFP_PIN_GPIO177, | ||
204 | MFP_PIN_GPIO178, | ||
205 | MFP_PIN_GPIO179, | ||
206 | MFP_PIN_GPIO180, | ||
207 | MFP_PIN_GPIO181, | ||
208 | MFP_PIN_GPIO182, | ||
209 | MFP_PIN_GPIO183, | ||
210 | MFP_PIN_GPIO184, | ||
211 | MFP_PIN_GPIO185, | ||
212 | MFP_PIN_GPIO186, | ||
213 | MFP_PIN_GPIO187, | ||
214 | MFP_PIN_GPIO188, | ||
215 | MFP_PIN_GPIO189, | ||
216 | MFP_PIN_GPIO190, | ||
217 | MFP_PIN_GPIO191, | ||
218 | |||
219 | MFP_PIN_GPIO255 = 255, | ||
220 | |||
153 | MFP_PIN_GPIO0_2, | 221 | MFP_PIN_GPIO0_2, |
154 | MFP_PIN_GPIO1_2, | 222 | MFP_PIN_GPIO1_2, |
155 | MFP_PIN_GPIO2_2, | 223 | MFP_PIN_GPIO2_2, |
@@ -325,8 +393,9 @@ typedef unsigned long mfp_cfg_t; | |||
325 | #define MFP_PULL_LOW (0x1 << 21) | 393 | #define MFP_PULL_LOW (0x1 << 21) |
326 | #define MFP_PULL_HIGH (0x2 << 21) | 394 | #define MFP_PULL_HIGH (0x2 << 21) |
327 | #define MFP_PULL_BOTH (0x3 << 21) | 395 | #define MFP_PULL_BOTH (0x3 << 21) |
328 | #define MFP_PULL_MASK (0x3 << 21) | 396 | #define MFP_PULL_FLOAT (0x4 << 21) |
329 | #define MFP_PULL(x) (((x) >> 21) & 0x3) | 397 | #define MFP_PULL_MASK (0x7 << 21) |
398 | #define MFP_PULL(x) (((x) >> 21) & 0x7) | ||
330 | 399 | ||
331 | #define MFP_CFG_DEFAULT (MFP_AF0 | MFP_DS03X | MFP_LPM_DEFAULT |\ | 400 | #define MFP_CFG_DEFAULT (MFP_AF0 | MFP_DS03X | MFP_LPM_DEFAULT |\ |
332 | MFP_LPM_EDGE_NONE | MFP_PULL_NONE) | 401 | MFP_LPM_EDGE_NONE | MFP_PULL_NONE) |