blob: 19ab182bef6172ba41ac10b13bf8c11e06fdcc95 [file] [log] [blame]
Dong Aisheng4f6a16b2012-05-15 15:49:03 +08001/*
2 * imx51 pinctrl driver based on imx pinmux core
3 *
4 * Copyright (C) 2012 Freescale Semiconductor, Inc.
5 * Copyright (C) 2012 Linaro, Inc.
6 *
7 * Author: Dong Aisheng <dong.aisheng@linaro.org>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 */
14
15#include <linux/err.h>
16#include <linux/init.h>
17#include <linux/io.h>
18#include <linux/module.h>
19#include <linux/of.h>
20#include <linux/of_device.h>
21#include <linux/pinctrl/pinctrl.h>
22
23#include "pinctrl-imx.h"
24
25enum imx51_pads {
Shawn Guoe1641532013-02-20 10:32:52 +080026 MX51_PAD_RESERVE0 = 0,
27 MX51_PAD_RESERVE1 = 1,
28 MX51_PAD_RESERVE2 = 2,
29 MX51_PAD_RESERVE3 = 3,
30 MX51_PAD_RESERVE4 = 4,
31 MX51_PAD_RESERVE5 = 5,
32 MX51_PAD_RESERVE6 = 6,
33 MX51_PAD_EIM_DA0 = 7,
34 MX51_PAD_EIM_DA1 = 8,
35 MX51_PAD_EIM_DA2 = 9,
36 MX51_PAD_EIM_DA3 = 10,
37 MX51_PAD_EIM_DA4 = 11,
38 MX51_PAD_EIM_DA5 = 12,
39 MX51_PAD_EIM_DA6 = 13,
40 MX51_PAD_EIM_DA7 = 14,
41 MX51_PAD_EIM_DA8 = 15,
42 MX51_PAD_EIM_DA9 = 16,
43 MX51_PAD_EIM_DA10 = 17,
44 MX51_PAD_EIM_DA11 = 18,
45 MX51_PAD_EIM_DA12 = 19,
46 MX51_PAD_EIM_DA13 = 20,
47 MX51_PAD_EIM_DA14 = 21,
48 MX51_PAD_EIM_DA15 = 22,
49 MX51_PAD_EIM_D16 = 23,
50 MX51_PAD_EIM_D17 = 24,
51 MX51_PAD_EIM_D18 = 25,
52 MX51_PAD_EIM_D19 = 26,
53 MX51_PAD_EIM_D20 = 27,
54 MX51_PAD_EIM_D21 = 28,
55 MX51_PAD_EIM_D22 = 29,
56 MX51_PAD_EIM_D23 = 30,
57 MX51_PAD_EIM_D24 = 31,
58 MX51_PAD_EIM_D25 = 32,
59 MX51_PAD_EIM_D26 = 33,
60 MX51_PAD_EIM_D27 = 34,
61 MX51_PAD_EIM_D28 = 35,
62 MX51_PAD_EIM_D29 = 36,
63 MX51_PAD_EIM_D30 = 37,
64 MX51_PAD_EIM_D31 = 38,
65 MX51_PAD_EIM_A16 = 39,
66 MX51_PAD_EIM_A17 = 40,
67 MX51_PAD_EIM_A18 = 41,
68 MX51_PAD_EIM_A19 = 42,
69 MX51_PAD_EIM_A20 = 43,
70 MX51_PAD_EIM_A21 = 44,
71 MX51_PAD_EIM_A22 = 45,
72 MX51_PAD_EIM_A23 = 46,
73 MX51_PAD_EIM_A24 = 47,
74 MX51_PAD_EIM_A25 = 48,
75 MX51_PAD_EIM_A26 = 49,
76 MX51_PAD_EIM_A27 = 50,
77 MX51_PAD_EIM_EB0 = 51,
78 MX51_PAD_EIM_EB1 = 52,
79 MX51_PAD_EIM_EB2 = 53,
80 MX51_PAD_EIM_EB3 = 54,
81 MX51_PAD_EIM_OE = 55,
82 MX51_PAD_EIM_CS0 = 56,
83 MX51_PAD_EIM_CS1 = 57,
84 MX51_PAD_EIM_CS2 = 58,
85 MX51_PAD_EIM_CS3 = 59,
86 MX51_PAD_EIM_CS4 = 60,
87 MX51_PAD_EIM_CS5 = 61,
88 MX51_PAD_EIM_DTACK = 62,
89 MX51_PAD_EIM_LBA = 63,
90 MX51_PAD_EIM_CRE = 64,
91 MX51_PAD_DRAM_CS1 = 65,
92 MX51_PAD_NANDF_WE_B = 66,
93 MX51_PAD_NANDF_RE_B = 67,
94 MX51_PAD_NANDF_ALE = 68,
95 MX51_PAD_NANDF_CLE = 69,
96 MX51_PAD_NANDF_WP_B = 70,
97 MX51_PAD_NANDF_RB0 = 71,
98 MX51_PAD_NANDF_RB1 = 72,
99 MX51_PAD_NANDF_RB2 = 73,
100 MX51_PAD_NANDF_RB3 = 74,
101 MX51_PAD_GPIO_NAND = 75,
102 MX51_PAD_NANDF_CS0 = 76,
103 MX51_PAD_NANDF_CS1 = 77,
104 MX51_PAD_NANDF_CS2 = 78,
105 MX51_PAD_NANDF_CS3 = 79,
106 MX51_PAD_NANDF_CS4 = 80,
107 MX51_PAD_NANDF_CS5 = 81,
108 MX51_PAD_NANDF_CS6 = 82,
109 MX51_PAD_NANDF_CS7 = 83,
110 MX51_PAD_NANDF_RDY_INT = 84,
111 MX51_PAD_NANDF_D15 = 85,
112 MX51_PAD_NANDF_D14 = 86,
113 MX51_PAD_NANDF_D13 = 87,
114 MX51_PAD_NANDF_D12 = 88,
115 MX51_PAD_NANDF_D11 = 89,
116 MX51_PAD_NANDF_D10 = 90,
117 MX51_PAD_NANDF_D9 = 91,
118 MX51_PAD_NANDF_D8 = 92,
119 MX51_PAD_NANDF_D7 = 93,
120 MX51_PAD_NANDF_D6 = 94,
121 MX51_PAD_NANDF_D5 = 95,
122 MX51_PAD_NANDF_D4 = 96,
123 MX51_PAD_NANDF_D3 = 97,
124 MX51_PAD_NANDF_D2 = 98,
125 MX51_PAD_NANDF_D1 = 99,
126 MX51_PAD_NANDF_D0 = 100,
127 MX51_PAD_CSI1_D8 = 101,
128 MX51_PAD_CSI1_D9 = 102,
129 MX51_PAD_CSI1_D10 = 103,
130 MX51_PAD_CSI1_D11 = 104,
131 MX51_PAD_CSI1_D12 = 105,
132 MX51_PAD_CSI1_D13 = 106,
133 MX51_PAD_CSI1_D14 = 107,
134 MX51_PAD_CSI1_D15 = 108,
135 MX51_PAD_CSI1_D16 = 109,
136 MX51_PAD_CSI1_D17 = 110,
137 MX51_PAD_CSI1_D18 = 111,
138 MX51_PAD_CSI1_D19 = 112,
139 MX51_PAD_CSI1_VSYNC = 113,
140 MX51_PAD_CSI1_HSYNC = 114,
141 MX51_PAD_CSI2_D12 = 115,
142 MX51_PAD_CSI2_D13 = 116,
143 MX51_PAD_CSI2_D14 = 117,
144 MX51_PAD_CSI2_D15 = 118,
145 MX51_PAD_CSI2_D16 = 119,
146 MX51_PAD_CSI2_D17 = 120,
147 MX51_PAD_CSI2_D18 = 121,
148 MX51_PAD_CSI2_D19 = 122,
149 MX51_PAD_CSI2_VSYNC = 123,
150 MX51_PAD_CSI2_HSYNC = 124,
151 MX51_PAD_CSI2_PIXCLK = 125,
152 MX51_PAD_I2C1_CLK = 126,
153 MX51_PAD_I2C1_DAT = 127,
154 MX51_PAD_AUD3_BB_TXD = 128,
155 MX51_PAD_AUD3_BB_RXD = 129,
156 MX51_PAD_AUD3_BB_CK = 130,
157 MX51_PAD_AUD3_BB_FS = 131,
158 MX51_PAD_CSPI1_MOSI = 132,
159 MX51_PAD_CSPI1_MISO = 133,
160 MX51_PAD_CSPI1_SS0 = 134,
161 MX51_PAD_CSPI1_SS1 = 135,
162 MX51_PAD_CSPI1_RDY = 136,
163 MX51_PAD_CSPI1_SCLK = 137,
164 MX51_PAD_UART1_RXD = 138,
165 MX51_PAD_UART1_TXD = 139,
166 MX51_PAD_UART1_RTS = 140,
167 MX51_PAD_UART1_CTS = 141,
168 MX51_PAD_UART2_RXD = 142,
169 MX51_PAD_UART2_TXD = 143,
170 MX51_PAD_UART3_RXD = 144,
171 MX51_PAD_UART3_TXD = 145,
172 MX51_PAD_OWIRE_LINE = 146,
173 MX51_PAD_KEY_ROW0 = 147,
174 MX51_PAD_KEY_ROW1 = 148,
175 MX51_PAD_KEY_ROW2 = 149,
176 MX51_PAD_KEY_ROW3 = 150,
177 MX51_PAD_KEY_COL0 = 151,
178 MX51_PAD_KEY_COL1 = 152,
179 MX51_PAD_KEY_COL2 = 153,
180 MX51_PAD_KEY_COL3 = 154,
181 MX51_PAD_KEY_COL4 = 155,
182 MX51_PAD_KEY_COL5 = 156,
183 MX51_PAD_RESERVE7 = 157,
184 MX51_PAD_USBH1_CLK = 158,
185 MX51_PAD_USBH1_DIR = 159,
186 MX51_PAD_USBH1_STP = 160,
187 MX51_PAD_USBH1_NXT = 161,
188 MX51_PAD_USBH1_DATA0 = 162,
189 MX51_PAD_USBH1_DATA1 = 163,
190 MX51_PAD_USBH1_DATA2 = 164,
191 MX51_PAD_USBH1_DATA3 = 165,
192 MX51_PAD_USBH1_DATA4 = 166,
193 MX51_PAD_USBH1_DATA5 = 167,
194 MX51_PAD_USBH1_DATA6 = 168,
195 MX51_PAD_USBH1_DATA7 = 169,
196 MX51_PAD_DI1_PIN11 = 170,
197 MX51_PAD_DI1_PIN12 = 171,
198 MX51_PAD_DI1_PIN13 = 172,
199 MX51_PAD_DI1_D0_CS = 173,
200 MX51_PAD_DI1_D1_CS = 174,
201 MX51_PAD_DISPB2_SER_DIN = 175,
202 MX51_PAD_DISPB2_SER_DIO = 176,
203 MX51_PAD_DISPB2_SER_CLK = 177,
204 MX51_PAD_DISPB2_SER_RS = 178,
205 MX51_PAD_DISP1_DAT0 = 179,
206 MX51_PAD_DISP1_DAT1 = 180,
207 MX51_PAD_DISP1_DAT2 = 181,
208 MX51_PAD_DISP1_DAT3 = 182,
209 MX51_PAD_DISP1_DAT4 = 183,
210 MX51_PAD_DISP1_DAT5 = 184,
211 MX51_PAD_DISP1_DAT6 = 185,
212 MX51_PAD_DISP1_DAT7 = 186,
213 MX51_PAD_DISP1_DAT8 = 187,
214 MX51_PAD_DISP1_DAT9 = 188,
215 MX51_PAD_DISP1_DAT10 = 189,
216 MX51_PAD_DISP1_DAT11 = 190,
217 MX51_PAD_DISP1_DAT12 = 191,
218 MX51_PAD_DISP1_DAT13 = 192,
219 MX51_PAD_DISP1_DAT14 = 193,
220 MX51_PAD_DISP1_DAT15 = 194,
221 MX51_PAD_DISP1_DAT16 = 195,
222 MX51_PAD_DISP1_DAT17 = 196,
223 MX51_PAD_DISP1_DAT18 = 197,
224 MX51_PAD_DISP1_DAT19 = 198,
225 MX51_PAD_DISP1_DAT20 = 199,
226 MX51_PAD_DISP1_DAT21 = 200,
227 MX51_PAD_DISP1_DAT22 = 201,
228 MX51_PAD_DISP1_DAT23 = 202,
229 MX51_PAD_DI1_PIN3 = 203,
230 MX51_PAD_DI1_PIN2 = 204,
231 MX51_PAD_RESERVE8 = 205,
232 MX51_PAD_DI_GP2 = 206,
233 MX51_PAD_DI_GP3 = 207,
234 MX51_PAD_DI2_PIN4 = 208,
235 MX51_PAD_DI2_PIN2 = 209,
236 MX51_PAD_DI2_PIN3 = 210,
237 MX51_PAD_DI2_DISP_CLK = 211,
238 MX51_PAD_DI_GP4 = 212,
239 MX51_PAD_DISP2_DAT0 = 213,
240 MX51_PAD_DISP2_DAT1 = 214,
241 MX51_PAD_DISP2_DAT2 = 215,
242 MX51_PAD_DISP2_DAT3 = 216,
243 MX51_PAD_DISP2_DAT4 = 217,
244 MX51_PAD_DISP2_DAT5 = 218,
245 MX51_PAD_DISP2_DAT6 = 219,
246 MX51_PAD_DISP2_DAT7 = 220,
247 MX51_PAD_DISP2_DAT8 = 221,
248 MX51_PAD_DISP2_DAT9 = 222,
249 MX51_PAD_DISP2_DAT10 = 223,
250 MX51_PAD_DISP2_DAT11 = 224,
251 MX51_PAD_DISP2_DAT12 = 225,
252 MX51_PAD_DISP2_DAT13 = 226,
253 MX51_PAD_DISP2_DAT14 = 227,
254 MX51_PAD_DISP2_DAT15 = 228,
255 MX51_PAD_SD1_CMD = 229,
256 MX51_PAD_SD1_CLK = 230,
257 MX51_PAD_SD1_DATA0 = 231,
258 MX51_PAD_SD1_DATA1 = 232,
259 MX51_PAD_SD1_DATA2 = 233,
260 MX51_PAD_SD1_DATA3 = 234,
261 MX51_PAD_GPIO1_0 = 235,
262 MX51_PAD_GPIO1_1 = 236,
263 MX51_PAD_SD2_CMD = 237,
264 MX51_PAD_SD2_CLK = 238,
265 MX51_PAD_SD2_DATA0 = 239,
266 MX51_PAD_SD2_DATA1 = 240,
267 MX51_PAD_SD2_DATA2 = 241,
268 MX51_PAD_SD2_DATA3 = 242,
269 MX51_PAD_GPIO1_2 = 243,
270 MX51_PAD_GPIO1_3 = 244,
271 MX51_PAD_PMIC_INT_REQ = 245,
272 MX51_PAD_GPIO1_4 = 246,
273 MX51_PAD_GPIO1_5 = 247,
274 MX51_PAD_GPIO1_6 = 248,
275 MX51_PAD_GPIO1_7 = 249,
276 MX51_PAD_GPIO1_8 = 250,
277 MX51_PAD_GPIO1_9 = 251,
278 MX51_PAD_RESERVE9 = 252,
279 MX51_PAD_RESERVE10 = 253,
280 MX51_PAD_RESERVE11 = 254,
281 MX51_PAD_RESERVE12 = 255,
282 MX51_PAD_RESERVE13 = 256,
283 MX51_PAD_RESERVE14 = 257,
284 MX51_PAD_RESERVE15 = 258,
285 MX51_PAD_RESERVE16 = 259,
286 MX51_PAD_RESERVE17 = 260,
287 MX51_PAD_RESERVE18 = 261,
288 MX51_PAD_RESERVE19 = 262,
289 MX51_PAD_RESERVE20 = 263,
290 MX51_PAD_RESERVE21 = 264,
291 MX51_PAD_RESERVE22 = 265,
292 MX51_PAD_RESERVE23 = 266,
293 MX51_PAD_RESERVE24 = 267,
294 MX51_PAD_RESERVE25 = 268,
295 MX51_PAD_RESERVE26 = 269,
296 MX51_PAD_RESERVE27 = 270,
297 MX51_PAD_RESERVE28 = 271,
298 MX51_PAD_RESERVE29 = 272,
299 MX51_PAD_RESERVE30 = 273,
300 MX51_PAD_RESERVE31 = 274,
301 MX51_PAD_RESERVE32 = 275,
302 MX51_PAD_RESERVE33 = 276,
303 MX51_PAD_RESERVE34 = 277,
304 MX51_PAD_RESERVE35 = 278,
305 MX51_PAD_RESERVE36 = 279,
306 MX51_PAD_RESERVE37 = 280,
307 MX51_PAD_RESERVE38 = 281,
308 MX51_PAD_RESERVE39 = 282,
309 MX51_PAD_RESERVE40 = 283,
310 MX51_PAD_RESERVE41 = 284,
311 MX51_PAD_RESERVE42 = 285,
312 MX51_PAD_RESERVE43 = 286,
313 MX51_PAD_RESERVE44 = 287,
314 MX51_PAD_RESERVE45 = 288,
315 MX51_PAD_RESERVE46 = 289,
316 MX51_PAD_RESERVE47 = 290,
317 MX51_PAD_RESERVE48 = 291,
318 MX51_PAD_RESERVE49 = 292,
319 MX51_PAD_RESERVE50 = 293,
320 MX51_PAD_RESERVE51 = 294,
321 MX51_PAD_RESERVE52 = 295,
322 MX51_PAD_RESERVE53 = 296,
323 MX51_PAD_RESERVE54 = 297,
324 MX51_PAD_RESERVE55 = 298,
325 MX51_PAD_RESERVE56 = 299,
326 MX51_PAD_RESERVE57 = 300,
327 MX51_PAD_RESERVE58 = 301,
328 MX51_PAD_RESERVE59 = 302,
329 MX51_PAD_RESERVE60 = 303,
330 MX51_PAD_RESERVE61 = 304,
331 MX51_PAD_RESERVE62 = 305,
332 MX51_PAD_RESERVE63 = 306,
333 MX51_PAD_RESERVE64 = 307,
334 MX51_PAD_RESERVE65 = 308,
335 MX51_PAD_RESERVE66 = 309,
336 MX51_PAD_RESERVE67 = 310,
337 MX51_PAD_RESERVE68 = 311,
338 MX51_PAD_RESERVE69 = 312,
339 MX51_PAD_RESERVE70 = 313,
340 MX51_PAD_RESERVE71 = 314,
341 MX51_PAD_RESERVE72 = 315,
342 MX51_PAD_RESERVE73 = 316,
343 MX51_PAD_RESERVE74 = 317,
344 MX51_PAD_RESERVE75 = 318,
345 MX51_PAD_RESERVE76 = 319,
346 MX51_PAD_RESERVE77 = 320,
347 MX51_PAD_RESERVE78 = 321,
348 MX51_PAD_RESERVE79 = 322,
349 MX51_PAD_RESERVE80 = 323,
350 MX51_PAD_RESERVE81 = 324,
351 MX51_PAD_RESERVE82 = 325,
352 MX51_PAD_RESERVE83 = 326,
353 MX51_PAD_RESERVE84 = 327,
354 MX51_PAD_RESERVE85 = 328,
355 MX51_PAD_RESERVE86 = 329,
356 MX51_PAD_RESERVE87 = 330,
357 MX51_PAD_RESERVE88 = 331,
358 MX51_PAD_RESERVE89 = 332,
359 MX51_PAD_RESERVE90 = 333,
360 MX51_PAD_RESERVE91 = 334,
361 MX51_PAD_RESERVE92 = 335,
362 MX51_PAD_RESERVE93 = 336,
363 MX51_PAD_RESERVE94 = 337,
364 MX51_PAD_RESERVE95 = 338,
365 MX51_PAD_RESERVE96 = 339,
366 MX51_PAD_RESERVE97 = 340,
367 MX51_PAD_RESERVE98 = 341,
368 MX51_PAD_RESERVE99 = 342,
369 MX51_PAD_RESERVE100 = 343,
370 MX51_PAD_RESERVE101 = 344,
371 MX51_PAD_RESERVE102 = 345,
372 MX51_PAD_RESERVE103 = 346,
373 MX51_PAD_RESERVE104 = 347,
374 MX51_PAD_RESERVE105 = 348,
375 MX51_PAD_RESERVE106 = 349,
376 MX51_PAD_RESERVE107 = 350,
377 MX51_PAD_RESERVE108 = 351,
378 MX51_PAD_RESERVE109 = 352,
379 MX51_PAD_RESERVE110 = 353,
380 MX51_PAD_RESERVE111 = 354,
381 MX51_PAD_RESERVE112 = 355,
382 MX51_PAD_RESERVE113 = 356,
383 MX51_PAD_RESERVE114 = 357,
384 MX51_PAD_RESERVE115 = 358,
385 MX51_PAD_RESERVE116 = 359,
386 MX51_PAD_RESERVE117 = 360,
387 MX51_PAD_RESERVE118 = 361,
388 MX51_PAD_RESERVE119 = 362,
389 MX51_PAD_RESERVE120 = 363,
390 MX51_PAD_RESERVE121 = 364,
391 MX51_PAD_CSI1_PIXCLK = 365,
392 MX51_PAD_CSI1_MCLK = 366,
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800393};
394
395/* Pad names for the pinmux subsystem */
396static const struct pinctrl_pin_desc imx51_pinctrl_pads[] = {
Shawn Guoe1641532013-02-20 10:32:52 +0800397 IMX_PINCTRL_PIN(MX51_PAD_RESERVE0),
398 IMX_PINCTRL_PIN(MX51_PAD_RESERVE1),
399 IMX_PINCTRL_PIN(MX51_PAD_RESERVE2),
400 IMX_PINCTRL_PIN(MX51_PAD_RESERVE3),
401 IMX_PINCTRL_PIN(MX51_PAD_RESERVE4),
402 IMX_PINCTRL_PIN(MX51_PAD_RESERVE5),
403 IMX_PINCTRL_PIN(MX51_PAD_RESERVE6),
404 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA0),
405 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA1),
406 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA2),
407 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA3),
408 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA4),
409 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA5),
410 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA6),
411 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA7),
412 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA8),
413 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA9),
414 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA10),
415 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA11),
416 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA12),
417 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA13),
418 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA14),
419 IMX_PINCTRL_PIN(MX51_PAD_EIM_DA15),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800420 IMX_PINCTRL_PIN(MX51_PAD_EIM_D16),
421 IMX_PINCTRL_PIN(MX51_PAD_EIM_D17),
422 IMX_PINCTRL_PIN(MX51_PAD_EIM_D18),
423 IMX_PINCTRL_PIN(MX51_PAD_EIM_D19),
424 IMX_PINCTRL_PIN(MX51_PAD_EIM_D20),
425 IMX_PINCTRL_PIN(MX51_PAD_EIM_D21),
426 IMX_PINCTRL_PIN(MX51_PAD_EIM_D22),
427 IMX_PINCTRL_PIN(MX51_PAD_EIM_D23),
428 IMX_PINCTRL_PIN(MX51_PAD_EIM_D24),
429 IMX_PINCTRL_PIN(MX51_PAD_EIM_D25),
430 IMX_PINCTRL_PIN(MX51_PAD_EIM_D26),
431 IMX_PINCTRL_PIN(MX51_PAD_EIM_D27),
432 IMX_PINCTRL_PIN(MX51_PAD_EIM_D28),
433 IMX_PINCTRL_PIN(MX51_PAD_EIM_D29),
434 IMX_PINCTRL_PIN(MX51_PAD_EIM_D30),
435 IMX_PINCTRL_PIN(MX51_PAD_EIM_D31),
436 IMX_PINCTRL_PIN(MX51_PAD_EIM_A16),
437 IMX_PINCTRL_PIN(MX51_PAD_EIM_A17),
438 IMX_PINCTRL_PIN(MX51_PAD_EIM_A18),
439 IMX_PINCTRL_PIN(MX51_PAD_EIM_A19),
440 IMX_PINCTRL_PIN(MX51_PAD_EIM_A20),
441 IMX_PINCTRL_PIN(MX51_PAD_EIM_A21),
442 IMX_PINCTRL_PIN(MX51_PAD_EIM_A22),
443 IMX_PINCTRL_PIN(MX51_PAD_EIM_A23),
444 IMX_PINCTRL_PIN(MX51_PAD_EIM_A24),
445 IMX_PINCTRL_PIN(MX51_PAD_EIM_A25),
446 IMX_PINCTRL_PIN(MX51_PAD_EIM_A26),
447 IMX_PINCTRL_PIN(MX51_PAD_EIM_A27),
448 IMX_PINCTRL_PIN(MX51_PAD_EIM_EB0),
449 IMX_PINCTRL_PIN(MX51_PAD_EIM_EB1),
450 IMX_PINCTRL_PIN(MX51_PAD_EIM_EB2),
451 IMX_PINCTRL_PIN(MX51_PAD_EIM_EB3),
452 IMX_PINCTRL_PIN(MX51_PAD_EIM_OE),
453 IMX_PINCTRL_PIN(MX51_PAD_EIM_CS0),
454 IMX_PINCTRL_PIN(MX51_PAD_EIM_CS1),
455 IMX_PINCTRL_PIN(MX51_PAD_EIM_CS2),
456 IMX_PINCTRL_PIN(MX51_PAD_EIM_CS3),
457 IMX_PINCTRL_PIN(MX51_PAD_EIM_CS4),
458 IMX_PINCTRL_PIN(MX51_PAD_EIM_CS5),
459 IMX_PINCTRL_PIN(MX51_PAD_EIM_DTACK),
460 IMX_PINCTRL_PIN(MX51_PAD_EIM_LBA),
461 IMX_PINCTRL_PIN(MX51_PAD_EIM_CRE),
462 IMX_PINCTRL_PIN(MX51_PAD_DRAM_CS1),
463 IMX_PINCTRL_PIN(MX51_PAD_NANDF_WE_B),
464 IMX_PINCTRL_PIN(MX51_PAD_NANDF_RE_B),
465 IMX_PINCTRL_PIN(MX51_PAD_NANDF_ALE),
466 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CLE),
467 IMX_PINCTRL_PIN(MX51_PAD_NANDF_WP_B),
468 IMX_PINCTRL_PIN(MX51_PAD_NANDF_RB0),
469 IMX_PINCTRL_PIN(MX51_PAD_NANDF_RB1),
470 IMX_PINCTRL_PIN(MX51_PAD_NANDF_RB2),
471 IMX_PINCTRL_PIN(MX51_PAD_NANDF_RB3),
472 IMX_PINCTRL_PIN(MX51_PAD_GPIO_NAND),
473 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS0),
474 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS1),
475 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS2),
476 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS3),
477 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS4),
478 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS5),
479 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS6),
480 IMX_PINCTRL_PIN(MX51_PAD_NANDF_CS7),
481 IMX_PINCTRL_PIN(MX51_PAD_NANDF_RDY_INT),
482 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D15),
483 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D14),
484 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D13),
485 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D12),
486 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D11),
487 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D10),
488 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D9),
489 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D8),
490 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D7),
491 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D6),
492 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D5),
493 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D4),
494 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D3),
495 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D2),
496 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D1),
497 IMX_PINCTRL_PIN(MX51_PAD_NANDF_D0),
498 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D8),
499 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D9),
500 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D10),
501 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D11),
502 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D12),
503 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D13),
504 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D14),
505 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D15),
506 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D16),
507 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D17),
508 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D18),
509 IMX_PINCTRL_PIN(MX51_PAD_CSI1_D19),
510 IMX_PINCTRL_PIN(MX51_PAD_CSI1_VSYNC),
511 IMX_PINCTRL_PIN(MX51_PAD_CSI1_HSYNC),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800512 IMX_PINCTRL_PIN(MX51_PAD_CSI2_D12),
513 IMX_PINCTRL_PIN(MX51_PAD_CSI2_D13),
514 IMX_PINCTRL_PIN(MX51_PAD_CSI2_D14),
515 IMX_PINCTRL_PIN(MX51_PAD_CSI2_D15),
516 IMX_PINCTRL_PIN(MX51_PAD_CSI2_D16),
517 IMX_PINCTRL_PIN(MX51_PAD_CSI2_D17),
518 IMX_PINCTRL_PIN(MX51_PAD_CSI2_D18),
519 IMX_PINCTRL_PIN(MX51_PAD_CSI2_D19),
520 IMX_PINCTRL_PIN(MX51_PAD_CSI2_VSYNC),
521 IMX_PINCTRL_PIN(MX51_PAD_CSI2_HSYNC),
522 IMX_PINCTRL_PIN(MX51_PAD_CSI2_PIXCLK),
523 IMX_PINCTRL_PIN(MX51_PAD_I2C1_CLK),
524 IMX_PINCTRL_PIN(MX51_PAD_I2C1_DAT),
525 IMX_PINCTRL_PIN(MX51_PAD_AUD3_BB_TXD),
526 IMX_PINCTRL_PIN(MX51_PAD_AUD3_BB_RXD),
527 IMX_PINCTRL_PIN(MX51_PAD_AUD3_BB_CK),
528 IMX_PINCTRL_PIN(MX51_PAD_AUD3_BB_FS),
529 IMX_PINCTRL_PIN(MX51_PAD_CSPI1_MOSI),
530 IMX_PINCTRL_PIN(MX51_PAD_CSPI1_MISO),
531 IMX_PINCTRL_PIN(MX51_PAD_CSPI1_SS0),
532 IMX_PINCTRL_PIN(MX51_PAD_CSPI1_SS1),
533 IMX_PINCTRL_PIN(MX51_PAD_CSPI1_RDY),
534 IMX_PINCTRL_PIN(MX51_PAD_CSPI1_SCLK),
535 IMX_PINCTRL_PIN(MX51_PAD_UART1_RXD),
536 IMX_PINCTRL_PIN(MX51_PAD_UART1_TXD),
537 IMX_PINCTRL_PIN(MX51_PAD_UART1_RTS),
538 IMX_PINCTRL_PIN(MX51_PAD_UART1_CTS),
539 IMX_PINCTRL_PIN(MX51_PAD_UART2_RXD),
540 IMX_PINCTRL_PIN(MX51_PAD_UART2_TXD),
541 IMX_PINCTRL_PIN(MX51_PAD_UART3_RXD),
542 IMX_PINCTRL_PIN(MX51_PAD_UART3_TXD),
543 IMX_PINCTRL_PIN(MX51_PAD_OWIRE_LINE),
544 IMX_PINCTRL_PIN(MX51_PAD_KEY_ROW0),
545 IMX_PINCTRL_PIN(MX51_PAD_KEY_ROW1),
546 IMX_PINCTRL_PIN(MX51_PAD_KEY_ROW2),
547 IMX_PINCTRL_PIN(MX51_PAD_KEY_ROW3),
548 IMX_PINCTRL_PIN(MX51_PAD_KEY_COL0),
549 IMX_PINCTRL_PIN(MX51_PAD_KEY_COL1),
550 IMX_PINCTRL_PIN(MX51_PAD_KEY_COL2),
551 IMX_PINCTRL_PIN(MX51_PAD_KEY_COL3),
552 IMX_PINCTRL_PIN(MX51_PAD_KEY_COL4),
553 IMX_PINCTRL_PIN(MX51_PAD_KEY_COL5),
Shawn Guoe1641532013-02-20 10:32:52 +0800554 IMX_PINCTRL_PIN(MX51_PAD_RESERVE7),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800555 IMX_PINCTRL_PIN(MX51_PAD_USBH1_CLK),
556 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DIR),
557 IMX_PINCTRL_PIN(MX51_PAD_USBH1_STP),
558 IMX_PINCTRL_PIN(MX51_PAD_USBH1_NXT),
559 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA0),
560 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA1),
561 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA2),
562 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA3),
563 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA4),
564 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA5),
565 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA6),
566 IMX_PINCTRL_PIN(MX51_PAD_USBH1_DATA7),
567 IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN11),
568 IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN12),
569 IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN13),
570 IMX_PINCTRL_PIN(MX51_PAD_DI1_D0_CS),
571 IMX_PINCTRL_PIN(MX51_PAD_DI1_D1_CS),
572 IMX_PINCTRL_PIN(MX51_PAD_DISPB2_SER_DIN),
573 IMX_PINCTRL_PIN(MX51_PAD_DISPB2_SER_DIO),
574 IMX_PINCTRL_PIN(MX51_PAD_DISPB2_SER_CLK),
575 IMX_PINCTRL_PIN(MX51_PAD_DISPB2_SER_RS),
576 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT0),
577 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT1),
578 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT2),
579 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT3),
580 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT4),
581 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT5),
582 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT6),
583 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT7),
584 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT8),
585 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT9),
586 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT10),
587 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT11),
588 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT12),
589 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT13),
590 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT14),
591 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT15),
592 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT16),
593 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT17),
594 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT18),
595 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT19),
596 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT20),
597 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT21),
598 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT22),
599 IMX_PINCTRL_PIN(MX51_PAD_DISP1_DAT23),
600 IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN3),
601 IMX_PINCTRL_PIN(MX51_PAD_DI1_PIN2),
Shawn Guoe1641532013-02-20 10:32:52 +0800602 IMX_PINCTRL_PIN(MX51_PAD_RESERVE8),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800603 IMX_PINCTRL_PIN(MX51_PAD_DI_GP2),
604 IMX_PINCTRL_PIN(MX51_PAD_DI_GP3),
605 IMX_PINCTRL_PIN(MX51_PAD_DI2_PIN4),
606 IMX_PINCTRL_PIN(MX51_PAD_DI2_PIN2),
607 IMX_PINCTRL_PIN(MX51_PAD_DI2_PIN3),
608 IMX_PINCTRL_PIN(MX51_PAD_DI2_DISP_CLK),
609 IMX_PINCTRL_PIN(MX51_PAD_DI_GP4),
610 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT0),
611 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT1),
612 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT2),
613 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT3),
614 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT4),
615 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT5),
616 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT6),
617 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT7),
618 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT8),
619 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT9),
620 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT10),
621 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT11),
622 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT12),
623 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT13),
624 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT14),
625 IMX_PINCTRL_PIN(MX51_PAD_DISP2_DAT15),
626 IMX_PINCTRL_PIN(MX51_PAD_SD1_CMD),
627 IMX_PINCTRL_PIN(MX51_PAD_SD1_CLK),
628 IMX_PINCTRL_PIN(MX51_PAD_SD1_DATA0),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800629 IMX_PINCTRL_PIN(MX51_PAD_SD1_DATA1),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800630 IMX_PINCTRL_PIN(MX51_PAD_SD1_DATA2),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800631 IMX_PINCTRL_PIN(MX51_PAD_SD1_DATA3),
632 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_0),
633 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_1),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800634 IMX_PINCTRL_PIN(MX51_PAD_SD2_CMD),
635 IMX_PINCTRL_PIN(MX51_PAD_SD2_CLK),
636 IMX_PINCTRL_PIN(MX51_PAD_SD2_DATA0),
637 IMX_PINCTRL_PIN(MX51_PAD_SD2_DATA1),
638 IMX_PINCTRL_PIN(MX51_PAD_SD2_DATA2),
639 IMX_PINCTRL_PIN(MX51_PAD_SD2_DATA3),
640 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_2),
641 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_3),
642 IMX_PINCTRL_PIN(MX51_PAD_PMIC_INT_REQ),
643 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_4),
644 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_5),
645 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_6),
646 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_7),
647 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_8),
648 IMX_PINCTRL_PIN(MX51_PAD_GPIO1_9),
Shawn Guoe1641532013-02-20 10:32:52 +0800649 IMX_PINCTRL_PIN(MX51_PAD_RESERVE9),
650 IMX_PINCTRL_PIN(MX51_PAD_RESERVE10),
651 IMX_PINCTRL_PIN(MX51_PAD_RESERVE11),
652 IMX_PINCTRL_PIN(MX51_PAD_RESERVE12),
653 IMX_PINCTRL_PIN(MX51_PAD_RESERVE13),
654 IMX_PINCTRL_PIN(MX51_PAD_RESERVE14),
655 IMX_PINCTRL_PIN(MX51_PAD_RESERVE15),
656 IMX_PINCTRL_PIN(MX51_PAD_RESERVE16),
657 IMX_PINCTRL_PIN(MX51_PAD_RESERVE17),
658 IMX_PINCTRL_PIN(MX51_PAD_RESERVE18),
659 IMX_PINCTRL_PIN(MX51_PAD_RESERVE19),
660 IMX_PINCTRL_PIN(MX51_PAD_RESERVE20),
661 IMX_PINCTRL_PIN(MX51_PAD_RESERVE21),
662 IMX_PINCTRL_PIN(MX51_PAD_RESERVE22),
663 IMX_PINCTRL_PIN(MX51_PAD_RESERVE23),
664 IMX_PINCTRL_PIN(MX51_PAD_RESERVE24),
665 IMX_PINCTRL_PIN(MX51_PAD_RESERVE25),
666 IMX_PINCTRL_PIN(MX51_PAD_RESERVE26),
667 IMX_PINCTRL_PIN(MX51_PAD_RESERVE27),
668 IMX_PINCTRL_PIN(MX51_PAD_RESERVE28),
669 IMX_PINCTRL_PIN(MX51_PAD_RESERVE29),
670 IMX_PINCTRL_PIN(MX51_PAD_RESERVE30),
671 IMX_PINCTRL_PIN(MX51_PAD_RESERVE31),
672 IMX_PINCTRL_PIN(MX51_PAD_RESERVE32),
673 IMX_PINCTRL_PIN(MX51_PAD_RESERVE33),
674 IMX_PINCTRL_PIN(MX51_PAD_RESERVE34),
675 IMX_PINCTRL_PIN(MX51_PAD_RESERVE35),
676 IMX_PINCTRL_PIN(MX51_PAD_RESERVE36),
677 IMX_PINCTRL_PIN(MX51_PAD_RESERVE37),
678 IMX_PINCTRL_PIN(MX51_PAD_RESERVE38),
679 IMX_PINCTRL_PIN(MX51_PAD_RESERVE39),
680 IMX_PINCTRL_PIN(MX51_PAD_RESERVE40),
681 IMX_PINCTRL_PIN(MX51_PAD_RESERVE41),
682 IMX_PINCTRL_PIN(MX51_PAD_RESERVE42),
683 IMX_PINCTRL_PIN(MX51_PAD_RESERVE43),
684 IMX_PINCTRL_PIN(MX51_PAD_RESERVE44),
685 IMX_PINCTRL_PIN(MX51_PAD_RESERVE45),
686 IMX_PINCTRL_PIN(MX51_PAD_RESERVE46),
687 IMX_PINCTRL_PIN(MX51_PAD_RESERVE47),
688 IMX_PINCTRL_PIN(MX51_PAD_RESERVE48),
689 IMX_PINCTRL_PIN(MX51_PAD_RESERVE49),
690 IMX_PINCTRL_PIN(MX51_PAD_RESERVE50),
691 IMX_PINCTRL_PIN(MX51_PAD_RESERVE51),
692 IMX_PINCTRL_PIN(MX51_PAD_RESERVE52),
693 IMX_PINCTRL_PIN(MX51_PAD_RESERVE53),
694 IMX_PINCTRL_PIN(MX51_PAD_RESERVE54),
695 IMX_PINCTRL_PIN(MX51_PAD_RESERVE55),
696 IMX_PINCTRL_PIN(MX51_PAD_RESERVE56),
697 IMX_PINCTRL_PIN(MX51_PAD_RESERVE57),
698 IMX_PINCTRL_PIN(MX51_PAD_RESERVE58),
699 IMX_PINCTRL_PIN(MX51_PAD_RESERVE59),
700 IMX_PINCTRL_PIN(MX51_PAD_RESERVE60),
701 IMX_PINCTRL_PIN(MX51_PAD_RESERVE61),
702 IMX_PINCTRL_PIN(MX51_PAD_RESERVE62),
703 IMX_PINCTRL_PIN(MX51_PAD_RESERVE63),
704 IMX_PINCTRL_PIN(MX51_PAD_RESERVE64),
705 IMX_PINCTRL_PIN(MX51_PAD_RESERVE65),
706 IMX_PINCTRL_PIN(MX51_PAD_RESERVE66),
707 IMX_PINCTRL_PIN(MX51_PAD_RESERVE67),
708 IMX_PINCTRL_PIN(MX51_PAD_RESERVE68),
709 IMX_PINCTRL_PIN(MX51_PAD_RESERVE69),
710 IMX_PINCTRL_PIN(MX51_PAD_RESERVE70),
711 IMX_PINCTRL_PIN(MX51_PAD_RESERVE71),
712 IMX_PINCTRL_PIN(MX51_PAD_RESERVE72),
713 IMX_PINCTRL_PIN(MX51_PAD_RESERVE73),
714 IMX_PINCTRL_PIN(MX51_PAD_RESERVE74),
715 IMX_PINCTRL_PIN(MX51_PAD_RESERVE75),
716 IMX_PINCTRL_PIN(MX51_PAD_RESERVE76),
717 IMX_PINCTRL_PIN(MX51_PAD_RESERVE77),
718 IMX_PINCTRL_PIN(MX51_PAD_RESERVE78),
719 IMX_PINCTRL_PIN(MX51_PAD_RESERVE79),
720 IMX_PINCTRL_PIN(MX51_PAD_RESERVE80),
721 IMX_PINCTRL_PIN(MX51_PAD_RESERVE81),
722 IMX_PINCTRL_PIN(MX51_PAD_RESERVE82),
723 IMX_PINCTRL_PIN(MX51_PAD_RESERVE83),
724 IMX_PINCTRL_PIN(MX51_PAD_RESERVE84),
725 IMX_PINCTRL_PIN(MX51_PAD_RESERVE85),
726 IMX_PINCTRL_PIN(MX51_PAD_RESERVE86),
727 IMX_PINCTRL_PIN(MX51_PAD_RESERVE87),
728 IMX_PINCTRL_PIN(MX51_PAD_RESERVE88),
729 IMX_PINCTRL_PIN(MX51_PAD_RESERVE89),
730 IMX_PINCTRL_PIN(MX51_PAD_RESERVE90),
731 IMX_PINCTRL_PIN(MX51_PAD_RESERVE91),
732 IMX_PINCTRL_PIN(MX51_PAD_RESERVE92),
733 IMX_PINCTRL_PIN(MX51_PAD_RESERVE93),
734 IMX_PINCTRL_PIN(MX51_PAD_RESERVE94),
735 IMX_PINCTRL_PIN(MX51_PAD_RESERVE95),
736 IMX_PINCTRL_PIN(MX51_PAD_RESERVE96),
737 IMX_PINCTRL_PIN(MX51_PAD_RESERVE97),
738 IMX_PINCTRL_PIN(MX51_PAD_RESERVE98),
739 IMX_PINCTRL_PIN(MX51_PAD_RESERVE99),
740 IMX_PINCTRL_PIN(MX51_PAD_RESERVE100),
741 IMX_PINCTRL_PIN(MX51_PAD_RESERVE101),
742 IMX_PINCTRL_PIN(MX51_PAD_RESERVE102),
743 IMX_PINCTRL_PIN(MX51_PAD_RESERVE103),
744 IMX_PINCTRL_PIN(MX51_PAD_RESERVE104),
745 IMX_PINCTRL_PIN(MX51_PAD_RESERVE105),
746 IMX_PINCTRL_PIN(MX51_PAD_RESERVE106),
747 IMX_PINCTRL_PIN(MX51_PAD_RESERVE107),
748 IMX_PINCTRL_PIN(MX51_PAD_RESERVE108),
749 IMX_PINCTRL_PIN(MX51_PAD_RESERVE109),
750 IMX_PINCTRL_PIN(MX51_PAD_RESERVE110),
751 IMX_PINCTRL_PIN(MX51_PAD_RESERVE111),
752 IMX_PINCTRL_PIN(MX51_PAD_RESERVE112),
753 IMX_PINCTRL_PIN(MX51_PAD_RESERVE113),
754 IMX_PINCTRL_PIN(MX51_PAD_RESERVE114),
755 IMX_PINCTRL_PIN(MX51_PAD_RESERVE115),
756 IMX_PINCTRL_PIN(MX51_PAD_RESERVE116),
757 IMX_PINCTRL_PIN(MX51_PAD_RESERVE117),
758 IMX_PINCTRL_PIN(MX51_PAD_RESERVE118),
759 IMX_PINCTRL_PIN(MX51_PAD_RESERVE119),
760 IMX_PINCTRL_PIN(MX51_PAD_RESERVE120),
761 IMX_PINCTRL_PIN(MX51_PAD_RESERVE121),
762 IMX_PINCTRL_PIN(MX51_PAD_CSI1_PIXCLK),
763 IMX_PINCTRL_PIN(MX51_PAD_CSI1_MCLK),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800764};
765
766static struct imx_pinctrl_soc_info imx51_pinctrl_info = {
767 .pins = imx51_pinctrl_pads,
768 .npins = ARRAY_SIZE(imx51_pinctrl_pads),
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800769};
770
Bill Pemberton99688ed2012-11-19 13:24:27 -0500771static struct of_device_id imx51_pinctrl_of_match[] = {
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800772 { .compatible = "fsl,imx51-iomuxc", },
773 { /* sentinel */ }
774};
775
Greg Kroah-Hartman150632b2012-12-21 13:10:23 -0800776static int imx51_pinctrl_probe(struct platform_device *pdev)
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800777{
778 return imx_pinctrl_probe(pdev, &imx51_pinctrl_info);
779}
780
781static struct platform_driver imx51_pinctrl_driver = {
782 .driver = {
783 .name = "imx51-pinctrl",
784 .owner = THIS_MODULE,
Sachin Kamat606fca92013-09-28 17:38:48 +0530785 .of_match_table = imx51_pinctrl_of_match,
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800786 },
787 .probe = imx51_pinctrl_probe,
Bill Pemberton2a36f082012-11-19 13:21:27 -0500788 .remove = imx_pinctrl_remove,
Dong Aisheng4f6a16b2012-05-15 15:49:03 +0800789};
790
791static int __init imx51_pinctrl_init(void)
792{
793 return platform_driver_register(&imx51_pinctrl_driver);
794}
795arch_initcall(imx51_pinctrl_init);
796
797static void __exit imx51_pinctrl_exit(void)
798{
799 platform_driver_unregister(&imx51_pinctrl_driver);
800}
801module_exit(imx51_pinctrl_exit);
802MODULE_AUTHOR("Dong Aisheng <dong.aisheng@linaro.org>");
803MODULE_DESCRIPTION("Freescale IMX51 pinctrl driver");
804MODULE_LICENSE("GPL v2");