]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/st-ericsson/snowball/db8500_pins.h
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
[karo-tx-uboot.git] / board / st-ericsson / snowball / db8500_pins.h
1 /*
2  * Copyright (C) ST-Ericsson SA 2010
3  * Code ported from Nomadik GPIO driver in ST-Ericsson Linux kernel code.
4  * The purpose is that GPIO config found in kernel should work by simply
5  * copy-paste it to U-boot.
6  *
7  * Ported to U-boot by:
8  * Copyright (C) 2010 Joakim Axelsson <joakim.axelsson AT stericsson.com>
9  **
10  * License terms: GNU General Public License, version 2
11  * Author: Rabin Vincent <rabin.vincent@stericsson.com>
12  */
13
14 #ifndef __DB8500_PINS_H
15 #define __DB8500_PINS_H
16
17 #include <asm/arch/db8500_pincfg.h>
18
19 #define GPIO0_GPIO              PIN_CFG(0, GPIO)
20 #define GPIO0_U0_CTSn           PIN_CFG(0, ALT_A)
21 #define GPIO0_TRIG_OUT          PIN_CFG(0, ALT_B)
22 #define GPIO0_IP_TDO            PIN_CFG(0, ALT_C)
23
24 #define GPIO1_GPIO              PIN_CFG(1, GPIO)
25 #define GPIO1_U0_RTSn           PIN_CFG(1, ALT_A)
26 #define GPIO1_TRIG_IN           PIN_CFG(1, ALT_B)
27 #define GPIO1_IP_TDI            PIN_CFG(1, ALT_C)
28
29 #define GPIO2_GPIO              PIN_CFG(2, GPIO)
30 #define GPIO2_U0_RXD            PIN_CFG(2, ALT_A)
31 #define GPIO2_NONE              PIN_CFG(2, ALT_B)
32 #define GPIO2_IP_TMS            PIN_CFG(2, ALT_C)
33
34 #define GPIO3_GPIO              PIN_CFG(3, GPIO)
35 #define GPIO3_U0_TXD            PIN_CFG(3, ALT_A)
36 #define GPIO3_NONE              PIN_CFG(3, ALT_B)
37 #define GPIO3_IP_TCK            PIN_CFG(3, ALT_C)
38
39 #define GPIO4_GPIO              PIN_CFG(4, GPIO)
40 #define GPIO4_U1_RXD            PIN_CFG(4, ALT_A)
41 #define GPIO4_I2C4_SCL          PIN_CFG_PULL(4, ALT_B, UP)
42 #define GPIO4_IP_TRSTn          PIN_CFG(4, ALT_C)
43
44 #define GPIO5_GPIO              PIN_CFG(5, GPIO)
45 #define GPIO5_U1_TXD            PIN_CFG(5, ALT_A)
46 #define GPIO5_I2C4_SDA          PIN_CFG_PULL(5, ALT_B, UP)
47 #define GPIO5_IP_GPIO6          PIN_CFG(5, ALT_C)
48
49 #define GPIO6_GPIO              PIN_CFG(6, GPIO)
50 #define GPIO6_U1_CTSn           PIN_CFG(6, ALT_A)
51 #define GPIO6_I2C1_SCL          PIN_CFG_PULL(6, ALT_B, UP)
52 #define GPIO6_IP_GPIO0          PIN_CFG(6, ALT_C)
53
54 #define GPIO7_GPIO              PIN_CFG(7, GPIO)
55 #define GPIO7_U1_RTSn           PIN_CFG(7, ALT_A)
56 #define GPIO7_I2C1_SDA          PIN_CFG_PULL(7, ALT_B, UP)
57 #define GPIO7_IP_GPIO1          PIN_CFG(7, ALT_C)
58
59 #define GPIO8_GPIO              PIN_CFG(8, GPIO)
60 #define GPIO8_IPI2C_SDA         PIN_CFG_PULL(8, ALT_A, UP)
61 #define GPIO8_I2C2_SDA          PIN_CFG_PULL(8, ALT_B, UP)
62
63 #define GPIO9_GPIO              PIN_CFG(9, GPIO)
64 #define GPIO9_IPI2C_SCL         PIN_CFG_PULL(9, ALT_A, UP)
65 #define GPIO9_I2C2_SCL          PIN_CFG_PULL(9, ALT_B, UP)
66
67 #define GPIO10_GPIO             PIN_CFG(10, GPIO)
68 #define GPIO10_IPI2C_SDA        PIN_CFG_PULL(10, ALT_A, UP)
69 #define GPIO10_I2C2_SDA         PIN_CFG_PULL(10, ALT_B, UP)
70 #define GPIO10_IP_GPIO3         PIN_CFG(10, ALT_C)
71
72 #define GPIO11_GPIO             PIN_CFG(11, GPIO)
73 #define GPIO11_IPI2C_SCL        PIN_CFG_PULL(11, ALT_A, UP)
74 #define GPIO11_I2C2_SCL         PIN_CFG_PULL(11, ALT_B, UP)
75 #define GPIO11_IP_GPIO2         PIN_CFG(11, ALT_C)
76
77 #define GPIO12_GPIO             PIN_CFG(12, GPIO)
78 #define GPIO12_MSP0_TXD         PIN_CFG(12, ALT_A)
79 #define GPIO12_MSP0_RXD         PIN_CFG(12, ALT_B)
80
81 #define GPIO13_GPIO             PIN_CFG(13, GPIO)
82 #define GPIO13_MSP0_TFS         PIN_CFG(13, ALT_A)
83
84 #define GPIO14_GPIO             PIN_CFG(14, GPIO)
85 #define GPIO14_MSP0_TCK         PIN_CFG(14, ALT_A)
86
87 #define GPIO15_GPIO             PIN_CFG(15, GPIO)
88 #define GPIO15_MSP0_RXD         PIN_CFG(15, ALT_A)
89 #define GPIO15_MSP0_TXD         PIN_CFG(15, ALT_B)
90
91 #define GPIO16_GPIO             PIN_CFG(16, GPIO)
92 #define GPIO16_MSP0_RFS         PIN_CFG(16, ALT_A)
93 #define GPIO16_I2C1_SCL         PIN_CFG_PULL(16, ALT_B, UP)
94 #define GPIO16_SLIM0_DAT        PIN_CFG(16, ALT_C)
95
96 #define GPIO17_GPIO             PIN_CFG(17, GPIO)
97 #define GPIO17_MSP0_RCK         PIN_CFG(17, ALT_A)
98 #define GPIO17_I2C1_SDA         PIN_CFG_PULL(17, ALT_B, UP)
99 #define GPIO17_SLIM0_CLK        PIN_CFG(17, ALT_C)
100
101 #define GPIO18_GPIO             PIN_CFG(18, GPIO)
102 #define GPIO18_MC0_CMDDIR       PIN_CFG(18, ALT_A)
103 #define GPIO18_U2_RXD           PIN_CFG(18, ALT_B)
104 #define GPIO18_MS_IEP           PIN_CFG(18, ALT_C)
105
106 #define GPIO19_GPIO             PIN_CFG(19, GPIO)
107 #define GPIO19_MC0_DAT0DIR      PIN_CFG(19, ALT_A)
108 #define GPIO19_U2_TXD           PIN_CFG(19, ALT_B)
109 #define GPIO19_MS_DAT0DIR       PIN_CFG(19, ALT_C)
110
111 #define GPIO20_GPIO             PIN_CFG(20, GPIO)
112 #define GPIO20_MC0_DAT2DIR      PIN_CFG(20, ALT_A)
113 #define GPIO20_UARTMOD_TXD      PIN_CFG(20, ALT_B)
114 #define GPIO20_IP_TRIGOUT       PIN_CFG(20, ALT_C)
115
116 #define GPIO21_GPIO             PIN_CFG(21, GPIO)
117 #define GPIO21_MC0_DAT31DIR     PIN_CFG(21, ALT_A)
118 #define GPIO21_MSP0_SCK         PIN_CFG(21, ALT_B)
119 #define GPIO21_MS_DAT31DIR      PIN_CFG(21, ALT_C)
120
121 #define GPIO22_GPIO             PIN_CFG(22, GPIO)
122 #define GPIO22_MC0_FBCLK        PIN_CFG(22, ALT_A)
123 #define GPIO22_UARTMOD_RXD      PIN_CFG(22, ALT_B)
124 #define GPIO22_MS_FBCLK         PIN_CFG(22, ALT_C)
125
126 #define GPIO23_GPIO             PIN_CFG(23, GPIO)
127 #define GPIO23_MC0_CLK          PIN_CFG(23, ALT_A)
128 #define GPIO23_STMMOD_CLK       PIN_CFG(23, ALT_B)
129 #define GPIO23_MS_CLK           PIN_CFG(23, ALT_C)
130
131 #define GPIO24_GPIO             PIN_CFG(24, GPIO)
132 #define GPIO24_MC0_CMD          PIN_CFG(24, ALT_A)
133 #define GPIO24_UARTMOD_RXD      PIN_CFG(24, ALT_B)
134 #define GPIO24_MS_BS            PIN_CFG(24, ALT_C)
135
136 #define GPIO25_GPIO             PIN_CFG(25, GPIO)
137 #define GPIO25_MC0_DAT0         PIN_CFG(25, ALT_A)
138 #define GPIO25_STMMOD_DAT0      PIN_CFG(25, ALT_B)
139 #define GPIO25_MS_DAT0          PIN_CFG(25, ALT_C)
140
141 #define GPIO26_GPIO             PIN_CFG(26, GPIO)
142 #define GPIO26_MC0_DAT1         PIN_CFG(26, ALT_A)
143 #define GPIO26_STMMOD_DAT1      PIN_CFG(26, ALT_B)
144 #define GPIO26_MS_DAT1          PIN_CFG(26, ALT_C)
145
146 #define GPIO27_GPIO             PIN_CFG(27, GPIO)
147 #define GPIO27_MC0_DAT2         PIN_CFG(27, ALT_A)
148 #define GPIO27_STMMOD_DAT2      PIN_CFG(27, ALT_B)
149 #define GPIO27_MS_DAT2          PIN_CFG(27, ALT_C)
150
151 #define GPIO28_GPIO             PIN_CFG(28, GPIO)
152 #define GPIO28_MC0_DAT3         PIN_CFG(28, ALT_A)
153 #define GPIO28_STMMOD_DAT3      PIN_CFG(28, ALT_B)
154 #define GPIO28_MS_DAT3          PIN_CFG(28, ALT_C)
155
156 #define GPIO29_GPIO             PIN_CFG(29, GPIO)
157 #define GPIO29_MC0_DAT4         PIN_CFG(29, ALT_A)
158 #define GPIO29_SPI3_CLK         PIN_CFG(29, ALT_B)
159 #define GPIO29_U2_RXD           PIN_CFG(29, ALT_C)
160
161 #define GPIO30_GPIO             PIN_CFG(30, GPIO)
162 #define GPIO30_MC0_DAT5         PIN_CFG(30, ALT_A)
163 #define GPIO30_SPI3_RXD         PIN_CFG(30, ALT_B)
164 #define GPIO30_U2_TXD           PIN_CFG(30, ALT_C)
165
166 #define GPIO31_GPIO             PIN_CFG(31, GPIO)
167 #define GPIO31_MC0_DAT6         PIN_CFG(31, ALT_A)
168 #define GPIO31_SPI3_FRM         PIN_CFG(31, ALT_B)
169 #define GPIO31_U2_CTSn          PIN_CFG(31, ALT_C)
170
171 #define GPIO32_GPIO             PIN_CFG(32, GPIO)
172 #define GPIO32_MC0_DAT7         PIN_CFG(32, ALT_A)
173 #define GPIO32_SPI3_TXD         PIN_CFG(32, ALT_B)
174 #define GPIO32_U2_RTSn          PIN_CFG(32, ALT_C)
175
176 #define GPIO33_GPIO             PIN_CFG(33, GPIO)
177 #define GPIO33_MSP1_TXD         PIN_CFG(33, ALT_A)
178 #define GPIO33_MSP1_RXD         PIN_CFG(33, ALT_B)
179 #define GPIO33_U0_DTRn          PIN_CFG(33, ALT_C)
180
181 #define GPIO34_GPIO             PIN_CFG(34, GPIO)
182 #define GPIO34_MSP1_TFS         PIN_CFG(34, ALT_A)
183 #define GPIO34_NONE             PIN_CFG(34, ALT_B)
184 #define GPIO34_U0_DCDn          PIN_CFG(34, ALT_C)
185
186 #define GPIO35_GPIO             PIN_CFG(35, GPIO)
187 #define GPIO35_MSP1_TCK         PIN_CFG(35, ALT_A)
188 #define GPIO35_NONE             PIN_CFG(35, ALT_B)
189 #define GPIO35_U0_DSRn          PIN_CFG(35, ALT_C)
190
191 #define GPIO36_GPIO             PIN_CFG(36, GPIO)
192 #define GPIO36_MSP1_RXD         PIN_CFG(36, ALT_A)
193 #define GPIO36_MSP1_TXD         PIN_CFG(36, ALT_B)
194 #define GPIO36_U0_RIn           PIN_CFG(36, ALT_C)
195
196 #define GPIO64_GPIO             PIN_CFG(64, GPIO)
197 #define GPIO64_LCDB_DE          PIN_CFG(64, ALT_A)
198 #define GPIO64_KP_O1            PIN_CFG(64, ALT_B)
199 #define GPIO64_IP_GPIO4         PIN_CFG(64, ALT_C)
200
201 #define GPIO65_GPIO             PIN_CFG(65, GPIO)
202 #define GPIO65_LCDB_HSO         PIN_CFG(65, ALT_A)
203 #define GPIO65_KP_O0            PIN_CFG(65, ALT_B)
204 #define GPIO65_IP_GPIO5         PIN_CFG(65, ALT_C)
205
206 #define GPIO66_GPIO             PIN_CFG(66, GPIO)
207 #define GPIO66_LCDB_VSO         PIN_CFG(66, ALT_A)
208 #define GPIO66_KP_I1            PIN_CFG(66, ALT_B)
209 #define GPIO66_IP_GPIO6         PIN_CFG(66, ALT_C)
210
211 #define GPIO67_GPIO             PIN_CFG(67, GPIO)
212 #define GPIO67_LCDB_CLK         PIN_CFG(67, ALT_A)
213 #define GPIO67_KP_I0            PIN_CFG(67, ALT_B)
214 #define GPIO67_IP_GPIO7         PIN_CFG(67, ALT_C)
215
216 #define GPIO68_GPIO             PIN_CFG(68, GPIO)
217 #define GPIO68_LCD_VSI0         PIN_CFG(68, ALT_A)
218 #define GPIO68_KP_O7            PIN_CFG(68, ALT_B)
219 #define GPIO68_SM_CLE           PIN_CFG(68, ALT_C)
220
221 #define GPIO69_GPIO             PIN_CFG(69, GPIO)
222 #define GPIO69_LCD_VSI1         PIN_CFG(69, ALT_A)
223 #define GPIO69_KP_I7            PIN_CFG(69, ALT_B)
224 #define GPIO69_SM_ALE           PIN_CFG(69, ALT_C)
225
226 #define GPIO70_GPIO             PIN_CFG(70, GPIO)
227 #define GPIO70_LCD_D0           PIN_CFG(70, ALT_A)
228 #define GPIO70_KP_O5            PIN_CFG(70, ALT_B)
229 #define GPIO70_STMAPE_CLK       PIN_CFG(70, ALT_C)
230
231 #define GPIO71_GPIO             PIN_CFG(71, GPIO)
232 #define GPIO71_LCD_D1           PIN_CFG(71, ALT_A)
233 #define GPIO71_KP_O4            PIN_CFG(71, ALT_B)
234 #define GPIO71_STMAPE_DAT3      PIN_CFG(71, ALT_C)
235
236 #define GPIO72_GPIO             PIN_CFG(72, GPIO)
237 #define GPIO72_LCD_D2           PIN_CFG(72, ALT_A)
238 #define GPIO72_KP_O3            PIN_CFG(72, ALT_B)
239 #define GPIO72_STMAPE_DAT2      PIN_CFG(72, ALT_C)
240
241 #define GPIO73_GPIO             PIN_CFG(73, GPIO)
242 #define GPIO73_LCD_D3           PIN_CFG(73, ALT_A)
243 #define GPIO73_KP_O2            PIN_CFG(73, ALT_B)
244 #define GPIO73_STMAPE_DAT1      PIN_CFG(73, ALT_C)
245
246 #define GPIO74_GPIO             PIN_CFG(74, GPIO)
247 #define GPIO74_LCD_D4           PIN_CFG(74, ALT_A)
248 #define GPIO74_KP_I5            PIN_CFG(74, ALT_B)
249 #define GPIO74_STMAPE_DAT0      PIN_CFG(74, ALT_C)
250
251 #define GPIO75_GPIO             PIN_CFG(75, GPIO)
252 #define GPIO75_LCD_D5           PIN_CFG(75, ALT_A)
253 #define GPIO75_KP_I4            PIN_CFG(75, ALT_B)
254 #define GPIO75_U2_RXD           PIN_CFG(75, ALT_C)
255
256 #define GPIO76_GPIO             PIN_CFG(76, GPIO)
257 #define GPIO76_LCD_D6           PIN_CFG(76, ALT_A)
258 #define GPIO76_KP_I3            PIN_CFG(76, ALT_B)
259 #define GPIO76_U2_TXD           PIN_CFG(76, ALT_C)
260
261 #define GPIO77_GPIO             PIN_CFG(77, GPIO)
262 #define GPIO77_LCD_D7           PIN_CFG(77, ALT_A)
263 #define GPIO77_KP_I2            PIN_CFG(77, ALT_B)
264 #define GPIO77_NONE             PIN_CFG(77, ALT_C)
265
266 #define GPIO78_GPIO             PIN_CFG(78, GPIO)
267 #define GPIO78_LCD_D8           PIN_CFG(78, ALT_A)
268 #define GPIO78_KP_O6            PIN_CFG(78, ALT_B)
269 #define GPIO78_IP_GPIO2         PIN_CFG(78, ALT_C)
270
271 #define GPIO79_GPIO             PIN_CFG(79, GPIO)
272 #define GPIO79_LCD_D9           PIN_CFG(79, ALT_A)
273 #define GPIO79_KP_I6            PIN_CFG(79, ALT_B)
274 #define GPIO79_IP_GPIO3         PIN_CFG(79, ALT_C)
275
276 #define GPIO80_GPIO             PIN_CFG(80, GPIO)
277 #define GPIO80_LCD_D10          PIN_CFG(80, ALT_A)
278 #define GPIO80_KP_SKA0          PIN_CFG(80, ALT_B)
279 #define GPIO80_IP_GPIO4         PIN_CFG(80, ALT_C)
280
281 #define GPIO81_GPIO             PIN_CFG(81, GPIO)
282 #define GPIO81_LCD_D11          PIN_CFG(81, ALT_A)
283 #define GPIO81_KP_SKB0          PIN_CFG(81, ALT_B)
284 #define GPIO81_IP_GPIO5         PIN_CFG(81, ALT_C)
285
286 #define GPIO82_GPIO             PIN_CFG(82, GPIO)
287 #define GPIO82_LCD_D12          PIN_CFG(82, ALT_A)
288 #define GPIO82_KP_O5            PIN_CFG(82, ALT_B)
289
290 #define GPIO83_GPIO             PIN_CFG(83, GPIO)
291 #define GPIO83_LCD_D13          PIN_CFG(83, ALT_A)
292 #define GPIO83_KP_O4            PIN_CFG(83, ALT_B)
293
294 #define GPIO84_GPIO             PIN_CFG_PULL(84, GPIO, UP)
295 #define GPIO84_LCD_D14          PIN_CFG(84, ALT_A)
296 #define GPIO84_KP_I5            PIN_CFG(84, ALT_B)
297
298 #define GPIO85_GPIO             PIN_CFG(85, GPIO)
299 #define GPIO85_LCD_D15          PIN_CFG(85, ALT_A)
300 #define GPIO85_KP_I4            PIN_CFG(85, ALT_B)
301
302 #define GPIO86_GPIO             PIN_CFG(86, GPIO)
303 #define GPIO86_LCD_D16          PIN_CFG(86, ALT_A)
304 #define GPIO86_SM_ADQ0          PIN_CFG(86, ALT_B)
305 #define GPIO86_MC5_DAT0         PIN_CFG(86, ALT_C)
306
307 #define GPIO87_GPIO             PIN_CFG(87, GPIO)
308 #define GPIO87_LCD_D17          PIN_CFG(87, ALT_A)
309 #define GPIO87_SM_ADQ1          PIN_CFG(87, ALT_B)
310 #define GPIO87_MC5_DAT1         PIN_CFG(87, ALT_C)
311
312 #define GPIO88_GPIO             PIN_CFG(88, GPIO)
313 #define GPIO88_LCD_D18          PIN_CFG(88, ALT_A)
314 #define GPIO88_SM_ADQ2          PIN_CFG(88, ALT_B)
315 #define GPIO88_MC5_DAT2         PIN_CFG(88, ALT_C)
316
317 #define GPIO89_GPIO             PIN_CFG(89, GPIO)
318 #define GPIO89_LCD_D19          PIN_CFG(89, ALT_A)
319 #define GPIO89_SM_ADQ3          PIN_CFG(89, ALT_B)
320 #define GPIO89_MC5_DAT3         PIN_CFG(89, ALT_C)
321
322 #define GPIO90_GPIO             PIN_CFG(90, GPIO)
323 #define GPIO90_LCD_D20          PIN_CFG(90, ALT_A)
324 #define GPIO90_SM_ADQ4          PIN_CFG(90, ALT_B)
325 #define GPIO90_MC5_CMD          PIN_CFG(90, ALT_C)
326
327 #define GPIO91_GPIO             PIN_CFG(91, GPIO)
328 #define GPIO91_LCD_D21          PIN_CFG(91, ALT_A)
329 #define GPIO91_SM_ADQ5          PIN_CFG(91, ALT_B)
330 #define GPIO91_MC5_FBCLK        PIN_CFG(91, ALT_C)
331
332 #define GPIO92_GPIO             PIN_CFG(92, GPIO)
333 #define GPIO92_LCD_D22          PIN_CFG(92, ALT_A)
334 #define GPIO92_SM_ADQ6          PIN_CFG(92, ALT_B)
335 #define GPIO92_MC5_CLK          PIN_CFG(92, ALT_C)
336
337 #define GPIO93_GPIO             PIN_CFG(93, GPIO)
338 #define GPIO93_LCD_D23          PIN_CFG(93, ALT_A)
339 #define GPIO93_SM_ADQ7          PIN_CFG(93, ALT_B)
340 #define GPIO93_MC5_DAT4         PIN_CFG(93, ALT_C)
341
342 #define GPIO94_GPIO             PIN_CFG(94, GPIO)
343 #define GPIO94_KP_O7            PIN_CFG(94, ALT_A)
344 #define GPIO94_SM_ADVn          PIN_CFG(94, ALT_B)
345 #define GPIO94_MC5_DAT5         PIN_CFG(94, ALT_C)
346
347 #define GPIO95_GPIO             PIN_CFG(95, GPIO)
348 #define GPIO95_KP_I7            PIN_CFG(95, ALT_A)
349 #define GPIO95_SM_CS0n          PIN_CFG(95, ALT_B)
350 #define GPIO95_SM_PS0n          PIN_CFG(95, ALT_C)
351
352 #define GPIO96_GPIO             PIN_CFG(96, GPIO)
353 #define GPIO96_KP_O6            PIN_CFG(96, ALT_A)
354 #define GPIO96_SM_OEn           PIN_CFG(96, ALT_B)
355 #define GPIO96_MC5_DAT6         PIN_CFG(96, ALT_C)
356
357 #define GPIO97_GPIO             PIN_CFG(97, GPIO)
358 #define GPIO97_KP_I6            PIN_CFG(97, ALT_A)
359 #define GPIO97_SM_WEn           PIN_CFG(97, ALT_B)
360 #define GPIO97_MC5_DAT7         PIN_CFG(97, ALT_C)
361
362 #define GPIO128_GPIO            PIN_CFG(128, GPIO)
363 #define GPIO128_MC2_CLK         PIN_CFG(128, ALT_A)
364 #define GPIO128_SM_CKO          PIN_CFG(128, ALT_B)
365
366 #define GPIO129_GPIO            PIN_CFG(129, GPIO)
367 #define GPIO129_MC2_CMD         PIN_CFG(129, ALT_A)
368 #define GPIO129_SM_WAIT0n       PIN_CFG(129, ALT_B)
369
370 #define GPIO130_GPIO            PIN_CFG(130, GPIO)
371 #define GPIO130_MC2_FBCLK       PIN_CFG(130, ALT_A)
372 #define GPIO130_SM_FBCLK        PIN_CFG(130, ALT_B)
373 #define GPIO130_MC2_RSTN        PIN_CFG(130, ALT_C)
374
375 #define GPIO131_GPIO            PIN_CFG(131, GPIO)
376 #define GPIO131_MC2_DAT0        PIN_CFG(131, ALT_A)
377 #define GPIO131_SM_ADQ8         PIN_CFG(131, ALT_B)
378
379 #define GPIO132_GPIO            PIN_CFG(132, GPIO)
380 #define GPIO132_MC2_DAT1        PIN_CFG(132, ALT_A)
381 #define GPIO132_SM_ADQ9         PIN_CFG(132, ALT_B)
382
383 #define GPIO133_GPIO            PIN_CFG(133, GPIO)
384 #define GPIO133_MC2_DAT2        PIN_CFG(133, ALT_A)
385 #define GPIO133_SM_ADQ10        PIN_CFG(133, ALT_B)
386
387 #define GPIO134_GPIO            PIN_CFG(134, GPIO)
388 #define GPIO134_MC2_DAT3        PIN_CFG(134, ALT_A)
389 #define GPIO134_SM_ADQ11        PIN_CFG(134, ALT_B)
390
391 #define GPIO135_GPIO            PIN_CFG(135, GPIO)
392 #define GPIO135_MC2_DAT4        PIN_CFG(135, ALT_A)
393 #define GPIO135_SM_ADQ12        PIN_CFG(135, ALT_B)
394
395 #define GPIO136_GPIO            PIN_CFG(136, GPIO)
396 #define GPIO136_MC2_DAT5        PIN_CFG(136, ALT_A)
397 #define GPIO136_SM_ADQ13        PIN_CFG(136, ALT_B)
398
399 #define GPIO137_GPIO            PIN_CFG(137, GPIO)
400 #define GPIO137_MC2_DAT6        PIN_CFG(137, ALT_A)
401 #define GPIO137_SM_ADQ14        PIN_CFG(137, ALT_B)
402
403 #define GPIO138_GPIO            PIN_CFG(138, GPIO)
404 #define GPIO138_MC2_DAT7        PIN_CFG(138, ALT_A)
405 #define GPIO138_SM_ADQ15        PIN_CFG(138, ALT_B)
406
407 #define GPIO139_GPIO            PIN_CFG(139, GPIO)
408 #define GPIO139_SSP1_RXD        PIN_CFG(139, ALT_A)
409 #define GPIO139_SM_WAIT1n       PIN_CFG(139, ALT_B)
410 #define GPIO139_KP_O8           PIN_CFG(139, ALT_C)
411
412 #define GPIO140_GPIO            PIN_CFG(140, GPIO)
413 #define GPIO140_SSP1_TXD        PIN_CFG(140, ALT_A)
414 #define GPIO140_IP_GPIO7        PIN_CFG(140, ALT_B)
415 #define GPIO140_KP_SKA1         PIN_CFG(140, ALT_C)
416
417 #define GPIO141_GPIO            PIN_CFG(141, GPIO)
418 #define GPIO141_SSP1_CLK        PIN_CFG(141, ALT_A)
419 #define GPIO141_IP_GPIO2        PIN_CFG(141, ALT_B)
420 #define GPIO141_KP_O9           PIN_CFG(141, ALT_C)
421
422 #define GPIO142_GPIO            PIN_CFG(142, GPIO)
423 #define GPIO142_SSP1_FRM        PIN_CFG(142, ALT_A)
424 #define GPIO142_IP_GPIO3        PIN_CFG(142, ALT_B)
425 #define GPIO142_KP_SKB1         PIN_CFG(142, ALT_C)
426
427 #define GPIO143_GPIO            PIN_CFG(143, GPIO)
428 #define GPIO143_SSP0_CLK        PIN_CFG(143, ALT_A)
429
430 #define GPIO144_GPIO            PIN_CFG(144, GPIO)
431 #define GPIO144_SSP0_FRM        PIN_CFG(144, ALT_A)
432
433 #define GPIO145_GPIO            PIN_CFG(145, GPIO)
434 #define GPIO145_SSP0_RXD        PIN_CFG(145, ALT_A)
435
436 #define GPIO146_GPIO            PIN_CFG(146, GPIO)
437 #define GPIO146_SSP0_TXD        PIN_CFG(146, ALT_A)
438
439 #define GPIO147_GPIO            PIN_CFG(147, GPIO)
440 #define GPIO147_I2C0_SCL        PIN_CFG_PULL(147, ALT_A, UP)
441
442 #define GPIO148_GPIO            PIN_CFG(148, GPIO)
443 #define GPIO148_I2C0_SDA        PIN_CFG_PULL(148, ALT_A, UP)
444
445 #define GPIO149_GPIO            PIN_CFG(149, GPIO)
446 #define GPIO149_IP_GPIO0        PIN_CFG(149, ALT_A)
447 #define GPIO149_SM_CS1n         PIN_CFG(149, ALT_B)
448 #define GPIO149_SM_PS1n         PIN_CFG(149, ALT_C)
449
450 #define GPIO150_GPIO            PIN_CFG(150, GPIO)
451 #define GPIO150_IP_GPIO1        PIN_CFG(150, ALT_A)
452 #define GPIO150_LCDA_CLK        PIN_CFG(150, ALT_B)
453
454 #define GPIO151_GPIO            PIN_CFG(151, GPIO)
455 #define GPIO151_KP_SKA0         PIN_CFG(151, ALT_A)
456 #define GPIO151_LCD_VSI0        PIN_CFG(151, ALT_B)
457 #define GPIO151_KP_O8           PIN_CFG(151, ALT_C)
458
459 #define GPIO152_GPIO            PIN_CFG(152, GPIO)
460 #define GPIO152_KP_SKB0         PIN_CFG(152, ALT_A)
461 #define GPIO152_LCD_VSI1        PIN_CFG(152, ALT_B)
462 #define GPIO152_KP_O9           PIN_CFG(152, ALT_C)
463
464 #define GPIO153_GPIO            PIN_CFG(153, GPIO)
465 #define GPIO153_KP_I7           PIN_CFG_PULL(153, ALT_A, DOWN)
466 #define GPIO153_LCD_D24         PIN_CFG(153, ALT_B)
467 #define GPIO153_U2_RXD          PIN_CFG(153, ALT_C)
468
469 #define GPIO154_GPIO            PIN_CFG(154, GPIO)
470 #define GPIO154_KP_I6           PIN_CFG_PULL(154, ALT_A, DOWN)
471 #define GPIO154_LCD_D25         PIN_CFG(154, ALT_B)
472 #define GPIO154_U2_TXD          PIN_CFG(154, ALT_C)
473
474 #define GPIO155_GPIO            PIN_CFG(155, GPIO)
475 #define GPIO155_KP_I5           PIN_CFG_PULL(155, ALT_A, DOWN)
476 #define GPIO155_LCD_D26         PIN_CFG(155, ALT_B)
477 #define GPIO155_STMAPE_CLK      PIN_CFG(155, ALT_C)
478
479 #define GPIO156_GPIO            PIN_CFG(156, GPIO)
480 #define GPIO156_KP_I4           PIN_CFG_PULL(156, ALT_A, DOWN)
481 #define GPIO156_LCD_D27         PIN_CFG(156, ALT_B)
482 #define GPIO156_STMAPE_DAT3     PIN_CFG(156, ALT_C)
483
484 #define GPIO157_GPIO            PIN_CFG(157, GPIO)
485 #define GPIO157_KP_O7           PIN_CFG_PULL(157, ALT_A, UP)
486 #define GPIO157_LCD_D28         PIN_CFG(157, ALT_B)
487 #define GPIO157_STMAPE_DAT2     PIN_CFG(157, ALT_C)
488
489 #define GPIO158_GPIO            PIN_CFG(158, GPIO)
490 #define GPIO158_KP_O6           PIN_CFG_PULL(158, ALT_A, UP)
491 #define GPIO158_LCD_D29         PIN_CFG(158, ALT_B)
492 #define GPIO158_STMAPE_DAT1     PIN_CFG(158, ALT_C)
493
494 #define GPIO159_GPIO            PIN_CFG(159, GPIO)
495 #define GPIO159_KP_O5           PIN_CFG_PULL(159, ALT_A, UP)
496 #define GPIO159_LCD_D30         PIN_CFG(159, ALT_B)
497 #define GPIO159_STMAPE_DAT0     PIN_CFG(159, ALT_C)
498
499 #define GPIO160_GPIO            PIN_CFG(160, GPIO)
500 #define GPIO160_KP_O4           PIN_CFG_PULL(160, ALT_A, UP)
501 #define GPIO160_LCD_D31         PIN_CFG(160, ALT_B)
502 #define GPIO160_NONE            PIN_CFG(160, ALT_C)
503
504 #define GPIO161_GPIO            PIN_CFG(161, GPIO)
505 #define GPIO161_KP_I3           PIN_CFG_PULL(161, ALT_A, DOWN)
506 #define GPIO161_LCD_D32         PIN_CFG(161, ALT_B)
507 #define GPIO161_UARTMOD_RXD     PIN_CFG(161, ALT_C)
508
509 #define GPIO162_GPIO            PIN_CFG(162, GPIO)
510 #define GPIO162_KP_I2           PIN_CFG_PULL(162, ALT_A, DOWN)
511 #define GPIO162_LCD_D33         PIN_CFG(162, ALT_B)
512 #define GPIO162_UARTMOD_TXD     PIN_CFG(162, ALT_C)
513
514 #define GPIO163_GPIO            PIN_CFG(163, GPIO)
515 #define GPIO163_KP_I1           PIN_CFG_PULL(163, ALT_A, DOWN)
516 #define GPIO163_LCD_D34         PIN_CFG(163, ALT_B)
517 #define GPIO163_STMMOD_CLK      PIN_CFG(163, ALT_C)
518
519 #define GPIO164_GPIO            PIN_CFG(164, GPIO)
520 #define GPIO164_KP_I0           PIN_CFG_PULL(164, ALT_A, UP)
521 #define GPIO164_LCD_D35         PIN_CFG(164, ALT_B)
522 #define GPIO164_STMMOD_DAT3     PIN_CFG(164, ALT_C)
523
524 #define GPIO165_GPIO            PIN_CFG(165, GPIO)
525 #define GPIO165_KP_O3           PIN_CFG_PULL(165, ALT_A, UP)
526 #define GPIO165_LCD_D36         PIN_CFG(165, ALT_B)
527 #define GPIO165_STMMOD_DAT2     PIN_CFG(165, ALT_C)
528
529 #define GPIO166_GPIO            PIN_CFG(166, GPIO)
530 #define GPIO166_KP_O2           PIN_CFG_PULL(166, ALT_A, UP)
531 #define GPIO166_LCD_D37         PIN_CFG(166, ALT_B)
532 #define GPIO166_STMMOD_DAT1     PIN_CFG(166, ALT_C)
533
534 #define GPIO167_GPIO            PIN_CFG(167, GPIO)
535 #define GPIO167_KP_O1           PIN_CFG_PULL(167, ALT_A, UP)
536 #define GPIO167_LCD_D38         PIN_CFG(167, ALT_B)
537 #define GPIO167_STMMOD_DAT0     PIN_CFG(167, ALT_C)
538
539 #define GPIO168_GPIO            PIN_CFG(168, GPIO)
540 #define GPIO168_KP_O0           PIN_CFG_PULL(168, ALT_A, UP)
541 #define GPIO168_LCD_D39         PIN_CFG(168, ALT_B)
542 #define GPIO168_NONE            PIN_CFG(168, ALT_C)
543
544 #define GPIO169_GPIO            PIN_CFG(169, GPIO)
545 #define GPIO169_RF_PURn         PIN_CFG(169, ALT_A)
546 #define GPIO169_LCDA_DE         PIN_CFG(169, ALT_B)
547 #define GPIO169_USBSIM_PDC      PIN_CFG(169, ALT_C)
548
549 #define GPIO170_GPIO            PIN_CFG(170, GPIO)
550 #define GPIO170_MODEM_STATE     PIN_CFG(170, ALT_A)
551 #define GPIO170_LCDA_VSO        PIN_CFG(170, ALT_B)
552 #define GPIO170_KP_SKA1         PIN_CFG(170, ALT_C)
553
554 #define GPIO171_GPIO            PIN_CFG(171, GPIO)
555 #define GPIO171_MODEM_PWREN     PIN_CFG(171, ALT_A)
556 #define GPIO171_LCDA_HSO        PIN_CFG(171, ALT_B)
557 #define GPIO171_KP_SKB1         PIN_CFG(171, ALT_C)
558
559 #define GPIO192_GPIO            PIN_CFG(192, GPIO)
560 #define GPIO192_MSP2_SCK        PIN_CFG(192, ALT_A)
561
562 #define GPIO193_GPIO            PIN_CFG(193, GPIO)
563 #define GPIO193_MSP2_TXD        PIN_CFG(193, ALT_A)
564
565 #define GPIO194_GPIO            PIN_CFG(194, GPIO)
566 #define GPIO194_MSP2_TCK        PIN_CFG(194, ALT_A)
567
568 #define GPIO195_GPIO            PIN_CFG(195, GPIO)
569 #define GPIO195_MSP2_TFS        PIN_CFG(195, ALT_A)
570
571 #define GPIO196_GPIO            PIN_CFG(196, GPIO)
572 #define GPIO196_MSP2_RXD        PIN_CFG(196, ALT_A)
573
574 #define GPIO197_GPIO            PIN_CFG(197, GPIO)
575 #define GPIO197_MC4_DAT3        PIN_CFG(197, ALT_A)
576
577 #define GPIO198_GPIO            PIN_CFG(198, GPIO)
578 #define GPIO198_MC4_DAT2        PIN_CFG(198, ALT_A)
579
580 #define GPIO199_GPIO            PIN_CFG(199, GPIO)
581 #define GPIO199_MC4_DAT1        PIN_CFG(199, ALT_A)
582
583 #define GPIO200_GPIO            PIN_CFG(200, GPIO)
584 #define GPIO200_MC4_DAT0        PIN_CFG(200, ALT_A)
585
586 #define GPIO201_GPIO            PIN_CFG(201, GPIO)
587 #define GPIO201_MC4_CMD         PIN_CFG(201, ALT_A)
588
589 #define GPIO202_GPIO            PIN_CFG(202, GPIO)
590 #define GPIO202_MC4_FBCLK       PIN_CFG(202, ALT_A)
591 #define GPIO202_PWL             PIN_CFG(202, ALT_B)
592 #define GPIO202_MC4_RSTN        PIN_CFG(202, ALT_C)
593
594 #define GPIO203_GPIO            PIN_CFG(203, GPIO)
595 #define GPIO203_MC4_CLK         PIN_CFG(203, ALT_A)
596
597 #define GPIO204_GPIO            PIN_CFG(204, GPIO)
598 #define GPIO204_MC4_DAT7        PIN_CFG(204, ALT_A)
599
600 #define GPIO205_GPIO            PIN_CFG(205, GPIO)
601 #define GPIO205_MC4_DAT6        PIN_CFG(205, ALT_A)
602
603 #define GPIO206_GPIO            PIN_CFG(206, GPIO)
604 #define GPIO206_MC4_DAT5        PIN_CFG(206, ALT_A)
605
606 #define GPIO207_GPIO            PIN_CFG(207, GPIO)
607 #define GPIO207_MC4_DAT4        PIN_CFG(207, ALT_A)
608
609 #define GPIO208_GPIO            PIN_CFG(208, GPIO)
610 #define GPIO208_MC1_CLK         PIN_CFG(208, ALT_A)
611
612 #define GPIO209_GPIO            PIN_CFG(209, GPIO)
613 #define GPIO209_MC1_FBCLK       PIN_CFG(209, ALT_A)
614 #define GPIO209_SPI1_CLK        PIN_CFG(209, ALT_B)
615
616 #define GPIO210_GPIO            PIN_CFG(210, GPIO)
617 #define GPIO210_MC1_CMD         PIN_CFG(210, ALT_A)
618
619 #define GPIO211_GPIO            PIN_CFG(211, GPIO)
620 #define GPIO211_MC1_DAT0        PIN_CFG(211, ALT_A)
621
622 #define GPIO212_GPIO            PIN_CFG(212, GPIO)
623 #define GPIO212_MC1_DAT1        PIN_CFG(212, ALT_A)
624 #define GPIO212_SPI1_FRM        PIN_CFG(212, ALT_B)
625
626 #define GPIO213_GPIO            PIN_CFG(213, GPIO)
627 #define GPIO213_MC1_DAT2        PIN_CFG(213, ALT_A)
628 #define GPIO213_SPI1_TXD        PIN_CFG(213, ALT_B)
629
630 #define GPIO214_GPIO            PIN_CFG(214, GPIO)
631 #define GPIO214_MC1_DAT3        PIN_CFG(214, ALT_A)
632 #define GPIO214_SPI1_RXD        PIN_CFG(214, ALT_B)
633
634 #define GPIO215_GPIO            PIN_CFG(215, GPIO)
635 #define GPIO215_MC1_CMDDIR      PIN_CFG(215, ALT_A)
636 #define GPIO215_MC3_DAT2DIR     PIN_CFG(215, ALT_B)
637 #define GPIO215_CLKOUT1         PIN_CFG(215, ALT_C)
638
639 #define GPIO216_GPIO            PIN_CFG(216, GPIO)
640 #define GPIO216_MC1_DAT2DIR     PIN_CFG(216, ALT_A)
641 #define GPIO216_MC3_CMDDIR      PIN_CFG(216, ALT_B)
642 #define GPIO216_I2C3_SDA        PIN_CFG_PULL(216, ALT_C, UP)
643
644 #define GPIO217_GPIO            PIN_CFG(217, GPIO)
645 #define GPIO217_MC1_DAT0DIR     PIN_CFG(217, ALT_A)
646 #define GPIO217_MC3_DAT31DIR    PIN_CFG(217, ALT_B)
647 #define GPIO217_CLKOUT2         PIN_CFG(217, ALT_C)
648
649 #define GPIO218_GPIO            PIN_CFG(218, GPIO)
650 #define GPIO218_MC1_DAT31DIR    PIN_CFG(218, ALT_A)
651 #define GPIO218_MC3_DAT0DIR     PIN_CFG(218, ALT_B)
652 #define GPIO218_I2C3_SCL        PIN_CFG_PULL(218, ALT_C, UP)
653
654 #define GPIO219_GPIO            PIN_CFG(219, GPIO)
655 #define GPIO219_HSIR_FLA0       PIN_CFG(219, ALT_A)
656 #define GPIO219_MC3_CLK         PIN_CFG(219, ALT_B)
657
658 #define GPIO220_GPIO            PIN_CFG(220, GPIO)
659 #define GPIO220_HSIR_DAT0       PIN_CFG(220, ALT_A)
660 #define GPIO220_MC3_FBCLK       PIN_CFG(220, ALT_B)
661 #define GPIO220_SPI0_CLK        PIN_CFG(220, ALT_C)
662
663 #define GPIO221_GPIO            PIN_CFG(221, GPIO)
664 #define GPIO221_HSIR_RDY0       PIN_CFG(221, ALT_A)
665 #define GPIO221_MC3_CMD         PIN_CFG(221, ALT_B)
666
667 #define GPIO222_GPIO            PIN_CFG(222, GPIO)
668 #define GPIO222_HSIT_FLA0       PIN_CFG(222, ALT_A)
669 #define GPIO222_MC3_DAT0        PIN_CFG(222, ALT_B)
670
671 #define GPIO223_GPIO            PIN_CFG(223, GPIO)
672 #define GPIO223_HSIT_DAT0       PIN_CFG(223, ALT_A)
673 #define GPIO223_MC3_DAT1        PIN_CFG(223, ALT_B)
674 #define GPIO223_SPI0_FRM        PIN_CFG(223, ALT_C)
675
676 #define GPIO224_GPIO            PIN_CFG(224, GPIO)
677 #define GPIO224_HSIT_RDY0       PIN_CFG(224, ALT_A)
678 #define GPIO224_MC3_DAT2        PIN_CFG(224, ALT_B)
679 #define GPIO224_SPI0_TXD        PIN_CFG(224, ALT_C)
680
681 #define GPIO225_GPIO            PIN_CFG(225, GPIO)
682 #define GPIO225_HSIT_CAWAKE0    PIN_CFG(225, ALT_A)
683 #define GPIO225_MC3_DAT3        PIN_CFG(225, ALT_B)
684 #define GPIO225_SPI0_RXD        PIN_CFG(225, ALT_C)
685
686 #define GPIO226_GPIO            PIN_CFG(226, GPIO)
687 #define GPIO226_HSIT_ACWAKE0    PIN_CFG(226, ALT_A)
688 #define GPIO226_PWL             PIN_CFG(226, ALT_B)
689 #define GPIO226_USBSIM_PDC      PIN_CFG(226, ALT_C)
690
691 #define GPIO227_GPIO            PIN_CFG(227, GPIO)
692 #define GPIO227_CLKOUT1         PIN_CFG(227, ALT_A)
693
694 #define GPIO228_GPIO            PIN_CFG(228, GPIO)
695 #define GPIO228_CLKOUT2         PIN_CFG(228, ALT_A)
696
697 #define GPIO229_GPIO            PIN_CFG(229, GPIO)
698 #define GPIO229_CLKOUT1         PIN_CFG(229, ALT_A)
699 #define GPIO229_PWL             PIN_CFG(229, ALT_B)
700 #define GPIO229_I2C3_SDA        PIN_CFG_PULL(229, ALT_C, UP)
701
702 #define GPIO230_GPIO            PIN_CFG(230, GPIO)
703 #define GPIO230_CLKOUT2         PIN_CFG(230, ALT_A)
704 #define GPIO230_PWL             PIN_CFG(230, ALT_B)
705 #define GPIO230_I2C3_SCL        PIN_CFG_PULL(230, ALT_C, UP)
706
707 #define GPIO256_GPIO            PIN_CFG(256, GPIO)
708 #define GPIO256_USB_NXT         PIN_CFG(256, ALT_A)
709
710 #define GPIO257_GPIO            PIN_CFG(257, GPIO)
711 #define GPIO257_USB_STP         PIN_CFG(257, ALT_A)
712
713 #define GPIO258_GPIO            PIN_CFG(258, GPIO)
714 #define GPIO258_USB_XCLK        PIN_CFG(258, ALT_A)
715 #define GPIO258_NONE            PIN_CFG(258, ALT_B)
716 #define GPIO258_DDR_TRIG        PIN_CFG(258, ALT_C)
717
718 #define GPIO259_GPIO            PIN_CFG(259, GPIO)
719 #define GPIO259_USB_DIR         PIN_CFG(259, ALT_A)
720
721 #define GPIO260_GPIO            PIN_CFG(260, GPIO)
722 #define GPIO260_USB_DAT7        PIN_CFG(260, ALT_A)
723
724 #define GPIO261_GPIO            PIN_CFG(261, GPIO)
725 #define GPIO261_USB_DAT6        PIN_CFG(261, ALT_A)
726
727 #define GPIO262_GPIO            PIN_CFG(262, GPIO)
728 #define GPIO262_USB_DAT5        PIN_CFG(262, ALT_A)
729
730 #define GPIO263_GPIO            PIN_CFG(263, GPIO)
731 #define GPIO263_USB_DAT4        PIN_CFG(263, ALT_A)
732
733 #define GPIO264_GPIO            PIN_CFG(264, GPIO)
734 #define GPIO264_USB_DAT3        PIN_CFG(264, ALT_A)
735
736 #define GPIO265_GPIO            PIN_CFG(265, GPIO)
737 #define GPIO265_USB_DAT2        PIN_CFG(265, ALT_A)
738
739 #define GPIO266_GPIO            PIN_CFG(266, GPIO)
740 #define GPIO266_USB_DAT1        PIN_CFG(266, ALT_A)
741
742 #define GPIO267_GPIO            PIN_CFG(267, GPIO)
743 #define GPIO267_USB_DAT0        PIN_CFG(267, ALT_A)
744
745 #endif