20 #include <linux/module.h>
32 #define _GPIO(offset) (offset)
34 #define TEGRA_PIN_VI_GP6_PA0 _GPIO(0)
35 #define TEGRA_PIN_UART3_CTS_N_PA1 _GPIO(1)
36 #define TEGRA_PIN_DAP2_FS_PA2 _GPIO(2)
37 #define TEGRA_PIN_DAP2_SCLK_PA3 _GPIO(3)
38 #define TEGRA_PIN_DAP2_DIN_PA4 _GPIO(4)
39 #define TEGRA_PIN_DAP2_DOUT_PA5 _GPIO(5)
40 #define TEGRA_PIN_SDIO3_CLK_PA6 _GPIO(6)
41 #define TEGRA_PIN_SDIO3_CMD_PA7 _GPIO(7)
42 #define TEGRA_PIN_GMI_AD17_PB0 _GPIO(8)
43 #define TEGRA_PIN_GMI_AD18_PB1 _GPIO(9)
44 #define TEGRA_PIN_LCD_PWR0_PB2 _GPIO(10)
45 #define TEGRA_PIN_LCD_PCLK_PB3 _GPIO(11)
46 #define TEGRA_PIN_SDIO3_DAT3_PB4 _GPIO(12)
47 #define TEGRA_PIN_SDIO3_DAT2_PB5 _GPIO(13)
48 #define TEGRA_PIN_SDIO3_DAT1_PB6 _GPIO(14)
49 #define TEGRA_PIN_SDIO3_DAT0_PB7 _GPIO(15)
50 #define TEGRA_PIN_UART3_RTS_N_PC0 _GPIO(16)
51 #define TEGRA_PIN_LCD_PWR1_PC1 _GPIO(17)
52 #define TEGRA_PIN_UART2_TXD_PC2 _GPIO(18)
53 #define TEGRA_PIN_UART2_RXD_PC3 _GPIO(19)
54 #define TEGRA_PIN_GEN1_I2C_SCL_PC4 _GPIO(20)
55 #define TEGRA_PIN_GEN1_I2C_SDA_PC5 _GPIO(21)
56 #define TEGRA_PIN_LCD_PWR2_PC6 _GPIO(22)
57 #define TEGRA_PIN_GMI_WP_N_PC7 _GPIO(23)
58 #define TEGRA_PIN_SDIO3_DAT5_PD0 _GPIO(24)
59 #define TEGRA_PIN_SDIO3_DAT4_PD1 _GPIO(25)
60 #define TEGRA_PIN_VI_GP5_PD2 _GPIO(26)
61 #define TEGRA_PIN_SDIO3_DAT6_PD3 _GPIO(27)
62 #define TEGRA_PIN_SDIO3_DAT7_PD4 _GPIO(28)
63 #define TEGRA_PIN_VI_D1_PD5 _GPIO(29)
64 #define TEGRA_PIN_VI_VSYNC_PD6 _GPIO(30)
65 #define TEGRA_PIN_VI_HSYNC_PD7 _GPIO(31)
66 #define TEGRA_PIN_LCD_D0_PE0 _GPIO(32)
67 #define TEGRA_PIN_LCD_D1_PE1 _GPIO(33)
68 #define TEGRA_PIN_LCD_D2_PE2 _GPIO(34)
69 #define TEGRA_PIN_LCD_D3_PE3 _GPIO(35)
70 #define TEGRA_PIN_LCD_D4_PE4 _GPIO(36)
71 #define TEGRA_PIN_LCD_D5_PE5 _GPIO(37)
72 #define TEGRA_PIN_LCD_D6_PE6 _GPIO(38)
73 #define TEGRA_PIN_LCD_D7_PE7 _GPIO(39)
74 #define TEGRA_PIN_LCD_D8_PF0 _GPIO(40)
75 #define TEGRA_PIN_LCD_D9_PF1 _GPIO(41)
76 #define TEGRA_PIN_LCD_D10_PF2 _GPIO(42)
77 #define TEGRA_PIN_LCD_D11_PF3 _GPIO(43)
78 #define TEGRA_PIN_LCD_D12_PF4 _GPIO(44)
79 #define TEGRA_PIN_LCD_D13_PF5 _GPIO(45)
80 #define TEGRA_PIN_LCD_D14_PF6 _GPIO(46)
81 #define TEGRA_PIN_LCD_D15_PF7 _GPIO(47)
82 #define TEGRA_PIN_GMI_AD0_PG0 _GPIO(48)
83 #define TEGRA_PIN_GMI_AD1_PG1 _GPIO(49)
84 #define TEGRA_PIN_GMI_AD2_PG2 _GPIO(50)
85 #define TEGRA_PIN_GMI_AD3_PG3 _GPIO(51)
86 #define TEGRA_PIN_GMI_AD4_PG4 _GPIO(52)
87 #define TEGRA_PIN_GMI_AD5_PG5 _GPIO(53)
88 #define TEGRA_PIN_GMI_AD6_PG6 _GPIO(54)
89 #define TEGRA_PIN_GMI_AD7_PG7 _GPIO(55)
90 #define TEGRA_PIN_GMI_AD8_PH0 _GPIO(56)
91 #define TEGRA_PIN_GMI_AD9_PH1 _GPIO(57)
92 #define TEGRA_PIN_GMI_AD10_PH2 _GPIO(58)
93 #define TEGRA_PIN_GMI_AD11_PH3 _GPIO(59)
94 #define TEGRA_PIN_GMI_AD12_PH4 _GPIO(60)
95 #define TEGRA_PIN_GMI_AD13_PH5 _GPIO(61)
96 #define TEGRA_PIN_GMI_AD14_PH6 _GPIO(62)
97 #define TEGRA_PIN_GMI_AD15_PH7 _GPIO(63)
98 #define TEGRA_PIN_GMI_HIOW_N_PI0 _GPIO(64)
99 #define TEGRA_PIN_GMI_HIOR_N_PI1 _GPIO(65)
100 #define TEGRA_PIN_GMI_CS5_N_PI2 _GPIO(66)
101 #define TEGRA_PIN_GMI_CS6_N_PI3 _GPIO(67)
102 #define TEGRA_PIN_GMI_RST_N_PI4 _GPIO(68)
103 #define TEGRA_PIN_GMI_IORDY_PI5 _GPIO(69)
104 #define TEGRA_PIN_GMI_CS7_N_PI6 _GPIO(70)
105 #define TEGRA_PIN_GMI_WAIT_PI7 _GPIO(71)
106 #define TEGRA_PIN_GMI_CS0_N_PJ0 _GPIO(72)
107 #define TEGRA_PIN_LCD_DE_PJ1 _GPIO(73)
108 #define TEGRA_PIN_GMI_CS1_N_PJ2 _GPIO(74)
109 #define TEGRA_PIN_LCD_HSYNC_PJ3 _GPIO(75)
110 #define TEGRA_PIN_LCD_VSYNC_PJ4 _GPIO(76)
111 #define TEGRA_PIN_UART2_CTS_N_PJ5 _GPIO(77)
112 #define TEGRA_PIN_UART2_RTS_N_PJ6 _GPIO(78)
113 #define TEGRA_PIN_GMI_AD16_PJ7 _GPIO(79)
114 #define TEGRA_PIN_GMI_ADV_N_PK0 _GPIO(80)
115 #define TEGRA_PIN_GMI_CLK_PK1 _GPIO(81)
116 #define TEGRA_PIN_GMI_CS4_N_PK2 _GPIO(82)
117 #define TEGRA_PIN_GMI_CS2_N_PK3 _GPIO(83)
118 #define TEGRA_PIN_GMI_CS3_N_PK4 _GPIO(84)
119 #define TEGRA_PIN_SPDIF_OUT_PK5 _GPIO(85)
120 #define TEGRA_PIN_SPDIF_IN_PK6 _GPIO(86)
121 #define TEGRA_PIN_GMI_AD19_PK7 _GPIO(87)
122 #define TEGRA_PIN_VI_D2_PL0 _GPIO(88)
123 #define TEGRA_PIN_VI_D3_PL1 _GPIO(89)
124 #define TEGRA_PIN_VI_D4_PL2 _GPIO(90)
125 #define TEGRA_PIN_VI_D5_PL3 _GPIO(91)
126 #define TEGRA_PIN_VI_D6_PL4 _GPIO(92)
127 #define TEGRA_PIN_VI_D7_PL5 _GPIO(93)
128 #define TEGRA_PIN_VI_D8_PL6 _GPIO(94)
129 #define TEGRA_PIN_VI_D9_PL7 _GPIO(95)
130 #define TEGRA_PIN_LCD_D16_PM0 _GPIO(96)
131 #define TEGRA_PIN_LCD_D17_PM1 _GPIO(97)
132 #define TEGRA_PIN_LCD_D18_PM2 _GPIO(98)
133 #define TEGRA_PIN_LCD_D19_PM3 _GPIO(99)
134 #define TEGRA_PIN_LCD_D20_PM4 _GPIO(100)
135 #define TEGRA_PIN_LCD_D21_PM5 _GPIO(101)
136 #define TEGRA_PIN_LCD_D22_PM6 _GPIO(102)
137 #define TEGRA_PIN_LCD_D23_PM7 _GPIO(103)
138 #define TEGRA_PIN_DAP1_FS_PN0 _GPIO(104)
139 #define TEGRA_PIN_DAP1_DIN_PN1 _GPIO(105)
140 #define TEGRA_PIN_DAP1_DOUT_PN2 _GPIO(106)
141 #define TEGRA_PIN_DAP1_SCLK_PN3 _GPIO(107)
142 #define TEGRA_PIN_LCD_CS0_N_PN4 _GPIO(108)
143 #define TEGRA_PIN_LCD_SDOUT_PN5 _GPIO(109)
144 #define TEGRA_PIN_LCD_DC0_PN6 _GPIO(110)
145 #define TEGRA_PIN_HDMI_INT_N_PN7 _GPIO(111)
146 #define TEGRA_PIN_ULPI_DATA7_PO0 _GPIO(112)
147 #define TEGRA_PIN_ULPI_DATA0_PO1 _GPIO(113)
148 #define TEGRA_PIN_ULPI_DATA1_PO2 _GPIO(114)
149 #define TEGRA_PIN_ULPI_DATA2_PO3 _GPIO(115)
150 #define TEGRA_PIN_ULPI_DATA3_PO4 _GPIO(116)
151 #define TEGRA_PIN_ULPI_DATA4_PO5 _GPIO(117)
152 #define TEGRA_PIN_ULPI_DATA5_PO6 _GPIO(118)
153 #define TEGRA_PIN_ULPI_DATA6_PO7 _GPIO(119)
154 #define TEGRA_PIN_DAP3_FS_PP0 _GPIO(120)
155 #define TEGRA_PIN_DAP3_DIN_PP1 _GPIO(121)
156 #define TEGRA_PIN_DAP3_DOUT_PP2 _GPIO(122)
157 #define TEGRA_PIN_DAP3_SCLK_PP3 _GPIO(123)
158 #define TEGRA_PIN_DAP4_FS_PP4 _GPIO(124)
159 #define TEGRA_PIN_DAP4_DIN_PP5 _GPIO(125)
160 #define TEGRA_PIN_DAP4_DOUT_PP6 _GPIO(126)
161 #define TEGRA_PIN_DAP4_SCLK_PP7 _GPIO(127)
162 #define TEGRA_PIN_KB_COL0_PQ0 _GPIO(128)
163 #define TEGRA_PIN_KB_COL1_PQ1 _GPIO(129)
164 #define TEGRA_PIN_KB_COL2_PQ2 _GPIO(130)
165 #define TEGRA_PIN_KB_COL3_PQ3 _GPIO(131)
166 #define TEGRA_PIN_KB_COL4_PQ4 _GPIO(132)
167 #define TEGRA_PIN_KB_COL5_PQ5 _GPIO(133)
168 #define TEGRA_PIN_KB_COL6_PQ6 _GPIO(134)
169 #define TEGRA_PIN_KB_COL7_PQ7 _GPIO(135)
170 #define TEGRA_PIN_KB_ROW0_PR0 _GPIO(136)
171 #define TEGRA_PIN_KB_ROW1_PR1 _GPIO(137)
172 #define TEGRA_PIN_KB_ROW2_PR2 _GPIO(138)
173 #define TEGRA_PIN_KB_ROW3_PR3 _GPIO(139)
174 #define TEGRA_PIN_KB_ROW4_PR4 _GPIO(140)
175 #define TEGRA_PIN_KB_ROW5_PR5 _GPIO(141)
176 #define TEGRA_PIN_KB_ROW6_PR6 _GPIO(142)
177 #define TEGRA_PIN_KB_ROW7_PR7 _GPIO(143)
178 #define TEGRA_PIN_KB_ROW8_PS0 _GPIO(144)
179 #define TEGRA_PIN_KB_ROW9_PS1 _GPIO(145)
180 #define TEGRA_PIN_KB_ROW10_PS2 _GPIO(146)
181 #define TEGRA_PIN_KB_ROW11_PS3 _GPIO(147)
182 #define TEGRA_PIN_KB_ROW12_PS4 _GPIO(148)
183 #define TEGRA_PIN_KB_ROW13_PS5 _GPIO(149)
184 #define TEGRA_PIN_KB_ROW14_PS6 _GPIO(150)
185 #define TEGRA_PIN_KB_ROW15_PS7 _GPIO(151)
186 #define TEGRA_PIN_VI_PCLK_PT0 _GPIO(152)
187 #define TEGRA_PIN_VI_MCLK_PT1 _GPIO(153)
188 #define TEGRA_PIN_VI_D10_PT2 _GPIO(154)
189 #define TEGRA_PIN_VI_D11_PT3 _GPIO(155)
190 #define TEGRA_PIN_VI_D0_PT4 _GPIO(156)
191 #define TEGRA_PIN_GEN2_I2C_SCL_PT5 _GPIO(157)
192 #define TEGRA_PIN_GEN2_I2C_SDA_PT6 _GPIO(158)
193 #define TEGRA_PIN_GMI_DPD_PT7 _GPIO(159)
194 #define TEGRA_PIN_PU0 _GPIO(160)
195 #define TEGRA_PIN_PU1 _GPIO(161)
196 #define TEGRA_PIN_PU2 _GPIO(162)
197 #define TEGRA_PIN_PU3 _GPIO(163)
198 #define TEGRA_PIN_PU4 _GPIO(164)
199 #define TEGRA_PIN_PU5 _GPIO(165)
200 #define TEGRA_PIN_PU6 _GPIO(166)
201 #define TEGRA_PIN_JTAG_RTCK_PU7 _GPIO(167)
202 #define TEGRA_PIN_PV0 _GPIO(168)
203 #define TEGRA_PIN_PV1 _GPIO(169)
204 #define TEGRA_PIN_PV2 _GPIO(170)
205 #define TEGRA_PIN_PV3 _GPIO(171)
206 #define TEGRA_PIN_PV4 _GPIO(172)
207 #define TEGRA_PIN_PV5 _GPIO(173)
208 #define TEGRA_PIN_PV6 _GPIO(174)
209 #define TEGRA_PIN_LCD_DC1_PV7 _GPIO(175)
210 #define TEGRA_PIN_LCD_CS1_N_PW0 _GPIO(176)
211 #define TEGRA_PIN_LCD_M1_PW1 _GPIO(177)
212 #define TEGRA_PIN_SPI2_CS1_N_PW2 _GPIO(178)
213 #define TEGRA_PIN_SPI2_CS2_N_PW3 _GPIO(179)
214 #define TEGRA_PIN_DAP_MCLK1_PW4 _GPIO(180)
215 #define TEGRA_PIN_DAP_MCLK2_PW5 _GPIO(181)
216 #define TEGRA_PIN_UART3_TXD_PW6 _GPIO(182)
217 #define TEGRA_PIN_UART3_RXD_PW7 _GPIO(183)
218 #define TEGRA_PIN_SPI2_MOSI_PX0 _GPIO(184)
219 #define TEGRA_PIN_SPI2_MISO_PX1 _GPIO(185)
220 #define TEGRA_PIN_SPI2_SCK_PX2 _GPIO(186)
221 #define TEGRA_PIN_SPI2_CS0_N_PX3 _GPIO(187)
222 #define TEGRA_PIN_SPI1_MOSI_PX4 _GPIO(188)
223 #define TEGRA_PIN_SPI1_SCK_PX5 _GPIO(189)
224 #define TEGRA_PIN_SPI1_CS0_N_PX6 _GPIO(190)
225 #define TEGRA_PIN_SPI1_MISO_PX7 _GPIO(191)
226 #define TEGRA_PIN_ULPI_CLK_PY0 _GPIO(192)
227 #define TEGRA_PIN_ULPI_DIR_PY1 _GPIO(193)
228 #define TEGRA_PIN_ULPI_NXT_PY2 _GPIO(194)
229 #define TEGRA_PIN_ULPI_STP_PY3 _GPIO(195)
230 #define TEGRA_PIN_SDIO1_DAT3_PY4 _GPIO(196)
231 #define TEGRA_PIN_SDIO1_DAT2_PY5 _GPIO(197)
232 #define TEGRA_PIN_SDIO1_DAT1_PY6 _GPIO(198)
233 #define TEGRA_PIN_SDIO1_DAT0_PY7 _GPIO(199)
234 #define TEGRA_PIN_SDIO1_CLK_PZ0 _GPIO(200)
235 #define TEGRA_PIN_SDIO1_CMD_PZ1 _GPIO(201)
236 #define TEGRA_PIN_LCD_SDIN_PZ2 _GPIO(202)
237 #define TEGRA_PIN_LCD_WR_N_PZ3 _GPIO(203)
238 #define TEGRA_PIN_LCD_SCK_PZ4 _GPIO(204)
239 #define TEGRA_PIN_SYS_CLK_REQ_PZ5 _GPIO(205)
240 #define TEGRA_PIN_PWR_I2C_SCL_PZ6 _GPIO(206)
241 #define TEGRA_PIN_PWR_I2C_SDA_PZ7 _GPIO(207)
242 #define TEGRA_PIN_GMI_AD20_PAA0 _GPIO(208)
243 #define TEGRA_PIN_GMI_AD21_PAA1 _GPIO(209)
244 #define TEGRA_PIN_GMI_AD22_PAA2 _GPIO(210)
245 #define TEGRA_PIN_GMI_AD23_PAA3 _GPIO(211)
246 #define TEGRA_PIN_GMI_AD24_PAA4 _GPIO(212)
247 #define TEGRA_PIN_GMI_AD25_PAA5 _GPIO(213)
248 #define TEGRA_PIN_GMI_AD26_PAA6 _GPIO(214)
249 #define TEGRA_PIN_GMI_AD27_PAA7 _GPIO(215)
250 #define TEGRA_PIN_LED_BLINK_PBB0 _GPIO(216)
251 #define TEGRA_PIN_VI_GP0_PBB1 _GPIO(217)
252 #define TEGRA_PIN_CAM_I2C_SCL_PBB2 _GPIO(218)
253 #define TEGRA_PIN_CAM_I2C_SDA_PBB3 _GPIO(219)
254 #define TEGRA_PIN_VI_GP3_PBB4 _GPIO(220)
255 #define TEGRA_PIN_VI_GP4_PBB5 _GPIO(221)
256 #define TEGRA_PIN_PBB6 _GPIO(222)
257 #define TEGRA_PIN_PBB7 _GPIO(223)
260 #define NUM_GPIOS (TEGRA_PIN_PBB7 + 1)
261 #define _PIN(offset) (NUM_GPIOS + (offset))
263 #define TEGRA_PIN_CRT_HSYNC _PIN(30)
264 #define TEGRA_PIN_CRT_VSYNC _PIN(31)
265 #define TEGRA_PIN_DDC_SCL _PIN(32)
266 #define TEGRA_PIN_DDC_SDA _PIN(33)
267 #define TEGRA_PIN_OWC _PIN(34)
268 #define TEGRA_PIN_CORE_PWR_REQ _PIN(35)
269 #define TEGRA_PIN_CPU_PWR_REQ _PIN(36)
270 #define TEGRA_PIN_PWR_INT_N _PIN(37)
271 #define TEGRA_PIN_CLK_32_K_IN _PIN(38)
272 #define TEGRA_PIN_DDR_COMP_PD _PIN(39)
273 #define TEGRA_PIN_DDR_COMP_PU _PIN(40)
274 #define TEGRA_PIN_DDR_A0 _PIN(41)
275 #define TEGRA_PIN_DDR_A1 _PIN(42)
276 #define TEGRA_PIN_DDR_A2 _PIN(43)
277 #define TEGRA_PIN_DDR_A3 _PIN(44)
278 #define TEGRA_PIN_DDR_A4 _PIN(45)
279 #define TEGRA_PIN_DDR_A5 _PIN(46)
280 #define TEGRA_PIN_DDR_A6 _PIN(47)
281 #define TEGRA_PIN_DDR_A7 _PIN(48)
282 #define TEGRA_PIN_DDR_A8 _PIN(49)
283 #define TEGRA_PIN_DDR_A9 _PIN(50)
284 #define TEGRA_PIN_DDR_A10 _PIN(51)
285 #define TEGRA_PIN_DDR_A11 _PIN(52)
286 #define TEGRA_PIN_DDR_A12 _PIN(53)
287 #define TEGRA_PIN_DDR_A13 _PIN(54)
288 #define TEGRA_PIN_DDR_A14 _PIN(55)
289 #define TEGRA_PIN_DDR_CAS_N _PIN(56)
290 #define TEGRA_PIN_DDR_BA0 _PIN(57)
291 #define TEGRA_PIN_DDR_BA1 _PIN(58)
292 #define TEGRA_PIN_DDR_BA2 _PIN(59)
293 #define TEGRA_PIN_DDR_DQS0P _PIN(60)
294 #define TEGRA_PIN_DDR_DQS0N _PIN(61)
295 #define TEGRA_PIN_DDR_DQS1P _PIN(62)
296 #define TEGRA_PIN_DDR_DQS1N _PIN(63)
297 #define TEGRA_PIN_DDR_DQS2P _PIN(64)
298 #define TEGRA_PIN_DDR_DQS2N _PIN(65)
299 #define TEGRA_PIN_DDR_DQS3P _PIN(66)
300 #define TEGRA_PIN_DDR_DQS3N _PIN(67)
301 #define TEGRA_PIN_DDR_CKE0 _PIN(68)
302 #define TEGRA_PIN_DDR_CKE1 _PIN(69)
303 #define TEGRA_PIN_DDR_CLK _PIN(70)
304 #define TEGRA_PIN_DDR_CLK_N _PIN(71)
305 #define TEGRA_PIN_DDR_DM0 _PIN(72)
306 #define TEGRA_PIN_DDR_DM1 _PIN(73)
307 #define TEGRA_PIN_DDR_DM2 _PIN(74)
308 #define TEGRA_PIN_DDR_DM3 _PIN(75)
309 #define TEGRA_PIN_DDR_ODT _PIN(76)
310 #define TEGRA_PIN_DDR_QUSE0 _PIN(77)
311 #define TEGRA_PIN_DDR_QUSE1 _PIN(78)
312 #define TEGRA_PIN_DDR_QUSE2 _PIN(79)
313 #define TEGRA_PIN_DDR_QUSE3 _PIN(80)
314 #define TEGRA_PIN_DDR_RAS_N _PIN(81)
315 #define TEGRA_PIN_DDR_WE_N _PIN(82)
316 #define TEGRA_PIN_DDR_DQ0 _PIN(83)
317 #define TEGRA_PIN_DDR_DQ1 _PIN(84)
318 #define TEGRA_PIN_DDR_DQ2 _PIN(85)
319 #define TEGRA_PIN_DDR_DQ3 _PIN(86)
320 #define TEGRA_PIN_DDR_DQ4 _PIN(87)
321 #define TEGRA_PIN_DDR_DQ5 _PIN(88)
322 #define TEGRA_PIN_DDR_DQ6 _PIN(89)
323 #define TEGRA_PIN_DDR_DQ7 _PIN(90)
324 #define TEGRA_PIN_DDR_DQ8 _PIN(91)
325 #define TEGRA_PIN_DDR_DQ9 _PIN(92)
326 #define TEGRA_PIN_DDR_DQ10 _PIN(93)
327 #define TEGRA_PIN_DDR_DQ11 _PIN(94)
328 #define TEGRA_PIN_DDR_DQ12 _PIN(95)
329 #define TEGRA_PIN_DDR_DQ13 _PIN(96)
330 #define TEGRA_PIN_DDR_DQ14 _PIN(97)
331 #define TEGRA_PIN_DDR_DQ15 _PIN(98)
332 #define TEGRA_PIN_DDR_DQ16 _PIN(99)
333 #define TEGRA_PIN_DDR_DQ17 _PIN(100)
334 #define TEGRA_PIN_DDR_DQ18 _PIN(101)
335 #define TEGRA_PIN_DDR_DQ19 _PIN(102)
336 #define TEGRA_PIN_DDR_DQ20 _PIN(103)
337 #define TEGRA_PIN_DDR_DQ21 _PIN(104)
338 #define TEGRA_PIN_DDR_DQ22 _PIN(105)
339 #define TEGRA_PIN_DDR_DQ23 _PIN(106)
340 #define TEGRA_PIN_DDR_DQ24 _PIN(107)
341 #define TEGRA_PIN_DDR_DQ25 _PIN(108)
342 #define TEGRA_PIN_DDR_DQ26 _PIN(109)
343 #define TEGRA_PIN_DDR_DQ27 _PIN(110)
344 #define TEGRA_PIN_DDR_DQ28 _PIN(111)
345 #define TEGRA_PIN_DDR_DQ29 _PIN(112)
346 #define TEGRA_PIN_DDR_DQ30 _PIN(113)
347 #define TEGRA_PIN_DDR_DQ31 _PIN(114)
348 #define TEGRA_PIN_DDR_CS0_N _PIN(115)
349 #define TEGRA_PIN_DDR_CS1_N _PIN(116)
350 #define TEGRA_PIN_SYS_RESET _PIN(117)
351 #define TEGRA_PIN_JTAG_TRST_N _PIN(118)
352 #define TEGRA_PIN_JTAG_TDO _PIN(119)
353 #define TEGRA_PIN_JTAG_TMS _PIN(120)
354 #define TEGRA_PIN_JTAG_TCK _PIN(121)
355 #define TEGRA_PIN_JTAG_TDI _PIN(122)
356 #define TEGRA_PIN_TEST_MODE_EN _PIN(123)
358 static const struct pinctrl_pin_desc tegra20_pins[] = {
683 static const unsigned ata_pins[] = {
689 static const unsigned atb_pins[] = {
694 static const unsigned atc_pins[] = {
714 static const unsigned atd_pins[] = {
721 static const unsigned ate_pins[] = {
728 static const unsigned cdev1_pins[] = {
732 static const unsigned cdev2_pins[] = {
736 static const unsigned crtp_pins[] = {
741 static const unsigned csus_pins[] = {
745 static const unsigned dap1_pins[] = {
752 static const unsigned dap2_pins[] = {
759 static const unsigned dap3_pins[] = {
766 static const unsigned dap4_pins[] = {
773 static const unsigned ddc_pins[] = {
778 static const unsigned dta_pins[] = {
783 static const unsigned dtb_pins[] = {
788 static const unsigned dtc_pins[] = {
793 static const unsigned dtd_pins[] = {
805 static const unsigned dte_pins[] = {
813 static const unsigned dtf_pins[] = {
818 static const unsigned gma_pins[] = {
825 static const unsigned gmb_pins[] = {
829 static const unsigned gmc_pins[] = {
836 static const unsigned gmd_pins[] = {
841 static const unsigned gme_pins[] = {
848 static const unsigned gpu_pins[] = {
858 static const unsigned gpu7_pins[] = {
862 static const unsigned gpv_pins[] = {
868 static const unsigned hdint_pins[] = {
872 static const unsigned i2cp_pins[] = {
877 static const unsigned irrx_pins[] = {
881 static const unsigned irtx_pins[] = {
885 static const unsigned kbca_pins[] = {
891 static const unsigned kbcb_pins[] = {
903 static const unsigned kbcc_pins[] = {
908 static const unsigned kbcd_pins[] = {
915 static const unsigned kbce_pins[] = {
919 static const unsigned kbcf_pins[] = {
927 static const unsigned lcsn_pins[] = {
931 static const unsigned ld0_pins[] = {
935 static const unsigned ld1_pins[] = {
939 static const unsigned ld2_pins[] = {
943 static const unsigned ld3_pins[] = {
947 static const unsigned ld4_pins[] = {
951 static const unsigned ld5_pins[] = {
955 static const unsigned ld6_pins[] = {
959 static const unsigned ld7_pins[] = {
963 static const unsigned ld8_pins[] = {
967 static const unsigned ld9_pins[] = {
971 static const unsigned ld10_pins[] = {
975 static const unsigned ld11_pins[] = {
979 static const unsigned ld12_pins[] = {
983 static const unsigned ld13_pins[] = {
987 static const unsigned ld14_pins[] = {
991 static const unsigned ld15_pins[] = {
995 static const unsigned ld16_pins[] = {
999 static const unsigned ld17_pins[] = {
1003 static const unsigned ldc_pins[] = {
1007 static const unsigned ldi_pins[] = {
1011 static const unsigned lhp0_pins[] = {
1015 static const unsigned lhp1_pins[] = {
1019 static const unsigned lhp2_pins[] = {
1023 static const unsigned lhs_pins[] = {
1027 static const unsigned lm0_pins[] = {
1031 static const unsigned lm1_pins[] = {
1035 static const unsigned lpp_pins[] = {
1039 static const unsigned lpw0_pins[] = {
1043 static const unsigned lpw1_pins[] = {
1047 static const unsigned lpw2_pins[] = {
1051 static const unsigned lsc0_pins[] = {
1055 static const unsigned lsc1_pins[] = {
1059 static const unsigned lsck_pins[] = {
1063 static const unsigned lsda_pins[] = {
1067 static const unsigned lsdi_pins[] = {
1071 static const unsigned lspi_pins[] = {
1075 static const unsigned lvp0_pins[] = {
1079 static const unsigned lvp1_pins[] = {
1083 static const unsigned lvs_pins[] = {
1087 static const unsigned ls_pins[] = {
1099 static const unsigned lc_pins[] = {
1110 static const unsigned ld17_0_pins[] = {
1131 static const unsigned ld19_18_pins[] = {
1136 static const unsigned ld21_20_pins[] = {
1141 static const unsigned ld23_22_pins[] = {
1146 static const unsigned owc_pins[] = {
1150 static const unsigned pmc_pins[] = {
1158 static const unsigned pta_pins[] = {
1163 static const unsigned rm_pins[] = {
1168 static const unsigned sdb_pins[] = {
1172 static const unsigned sdc_pins[] = {
1179 static const unsigned sdd_pins[] = {
1183 static const unsigned sdio1_pins[] = {
1192 static const unsigned slxa_pins[] = {
1196 static const unsigned slxc_pins[] = {
1200 static const unsigned slxd_pins[] = {
1204 static const unsigned slxk_pins[] = {
1208 static const unsigned spdi_pins[] = {
1212 static const unsigned spdo_pins[] = {
1216 static const unsigned spia_pins[] = {
1220 static const unsigned spib_pins[] = {
1224 static const unsigned spic_pins[] = {
1229 static const unsigned spid_pins[] = {
1233 static const unsigned spie_pins[] = {
1238 static const unsigned spif_pins[] = {
1242 static const unsigned spig_pins[] = {
1246 static const unsigned spih_pins[] = {
1250 static const unsigned uaa_pins[] = {
1257 static const unsigned uab_pins[] = {
1264 static const unsigned uac_pins[] = {
1271 static const unsigned ck32_pins[] = {
1275 static const unsigned uad_pins[] = {
1280 static const unsigned uca_pins[] = {
1285 static const unsigned ucb_pins[] = {
1290 static const unsigned uda_pins[] = {
1297 static const unsigned ddrc_pins[] = {
1302 static const unsigned pmca_pins[] = {
1306 static const unsigned pmcb_pins[] = {
1310 static const unsigned pmcc_pins[] = {
1314 static const unsigned pmcd_pins[] = {
1318 static const unsigned pmce_pins[] = {
1322 static const unsigned xm2c_pins[] = {
1369 static const unsigned xm2d_pins[] = {
1404 static const unsigned drive_ao1_pins[] = {
1418 static const unsigned drive_ao2_pins[] = {
1443 static const unsigned drive_at1_pins[] = {
1459 static const unsigned drive_at2_pins[] = {
1481 static const unsigned drive_cdev1_pins[] = {
1485 static const unsigned drive_cdev2_pins[] = {
1489 static const unsigned drive_csus_pins[] = {
1493 static const unsigned drive_dap1_pins[] = {
1502 static const unsigned drive_dap2_pins[] = {
1509 static const unsigned drive_dap3_pins[] = {
1516 static const unsigned drive_dap4_pins[] = {
1523 static const unsigned drive_dbg_pins[] = {
1542 static const unsigned drive_lcd1_pins[] = {
1553 static const unsigned drive_lcd2_pins[] = {
1589 static const unsigned drive_sdmmc2_pins[] = {
1596 static const unsigned drive_sdmmc3_pins[] = {
1608 static const unsigned drive_spi_pins[] = {
1621 static const unsigned drive_uaa_pins[] = {
1628 static const unsigned drive_uab_pins[] = {
1639 static const unsigned drive_uart2_pins[] = {
1646 static const unsigned drive_uart3_pins[] = {
1653 static const unsigned drive_vi1_pins[] = {
1671 static const unsigned drive_vi2_pins[] = {
1681 static const unsigned drive_xm2a_pins[] = {
1710 static const unsigned drive_xm2c_pins[] = {
1725 static const unsigned drive_xm2d_pins[] = {
1764 static const unsigned drive_xm2clk_pins[] = {
1769 static const unsigned drive_sdio1_pins[] = {
1778 static const unsigned drive_crt_pins[] = {
1783 static const unsigned drive_ddc_pins[] = {
1788 static const unsigned drive_gma_pins[] = {
1795 static const unsigned drive_gmb_pins[] = {
1799 static const unsigned drive_gmc_pins[] = {
1806 static const unsigned drive_gmd_pins[] = {
1811 static const unsigned drive_gme_pins[] = {
1818 static const unsigned drive_owr_pins[] = {
1822 static const unsigned drive_uda_pins[] = {
1897 static const char *
const ahb_clk_groups[] = {
1901 static const char *
const apb_clk_groups[] = {
1905 static const char *
const audio_sync_groups[] = {
1909 static const char *
const crt_groups[] = {
1914 static const char *
const dap1_groups[] = {
1918 static const char *
const dap2_groups[] = {
1922 static const char *
const dap3_groups[] = {
1926 static const char *
const dap4_groups[] = {
1930 static const char *
const dap5_groups[] = {
1934 static const char *
const displaya_groups[] = {
1977 static const char *
const displayb_groups[] = {
2020 static const char *
const emc_test0_dll_groups[] = {
2024 static const char *
const emc_test1_dll_groups[] = {
2028 static const char *
const gmi_groups[] = {
2055 static const char *
const gmi_int_groups[] = {
2059 static const char *
const hdmi_groups[] = {
2070 static const char *
const i2cp_groups[] = {
2074 static const char *
const i2c1_groups[] = {
2082 static const char *
const i2c2_groups[] = {
2087 static const char *
const i2c3_groups[] = {
2091 static const char *
const ide_groups[] = {
2100 static const char *
const irda_groups[] = {
2104 static const char *
const kbc_groups[] = {
2113 static const char *
const mio_groups[] = {
2119 static const char *
const mipi_hs_groups[] = {
2124 static const char *
const nand_groups[] = {
2140 static const char *
const osc_groups[] = {
2145 static const char *
const owr_groups[] = {
2151 static const char *
const pcie_groups[] = {
2157 static const char *
const plla_out_groups[] = {
2161 static const char *
const pllc_out1_groups[] = {
2165 static const char *
const pllm_out1_groups[] = {
2169 static const char *
const pllp_out2_groups[] = {
2173 static const char *
const pllp_out3_groups[] = {
2177 static const char *
const pllp_out4_groups[] = {
2181 static const char *
const pwm_groups[] = {
2189 static const char *
const pwr_intr_groups[] = {
2193 static const char *
const pwr_on_groups[] = {
2197 static const char *
const rsvd1_groups[] = {
2207 static const char *
const rsvd2_groups[] = {
2231 static const char *
const rsvd3_groups[] = {
2257 static const char *
const rsvd4_groups[] = {
2317 static const char *
const rtck_groups[] = {
2321 static const char *
const sdio1_groups[] = {
2325 static const char *
const sdio2_groups[] = {
2336 static const char *
const sdio3_groups[] = {
2346 static const char *
const sdio4_groups[] = {
2354 static const char *
const sflash_groups[] = {
2359 static const char *
const spdif_groups[] = {
2367 static const char *
const spi1_groups[] = {
2379 static const char *
const spi2_groups[] = {
2396 static const char *
const spi2_alt_groups[] = {
2403 static const char *
const spi3_groups[] = {
2424 static const char *
const spi4_groups[] = {
2435 static const char *
const trace_groups[] = {
2440 static const char *
const twc_groups[] = {
2445 static const char *
const uarta_groups[] = {
2457 static const char *
const uartb_groups[] = {
2462 static const char *
const uartc_groups[] = {
2467 static const char *
const uartd_groups[] = {
2472 static const char *
const uarte_groups[] = {
2477 static const char *
const ulpi_groups[] = {
2483 static const char *
const vi_groups[] = {
2492 static const char *
const vi_sensor_clk_groups[] = {
2496 static const char *
const xio_groups[] = {
2520 #define FUNCTION(fname) \
2523 .groups = fname##_groups, \
2524 .ngroups = ARRAY_SIZE(fname##_groups), \
2595 #define TRISTATE_REG_A 0x14
2596 #define PIN_MUX_CTL_REG_A 0x80
2597 #define PULLUPDOWN_REG_A 0xa0
2598 #define PINGROUP_REG_A 0x868
2601 #define MUX_PG(pg_name, f0, f1, f2, f3, f_safe, \
2602 tri_r, tri_b, mux_r, mux_b, pupd_r, pupd_b) \
2605 .pins = pg_name##_pins, \
2606 .npins = ARRAY_SIZE(pg_name##_pins), \
2613 .func_safe = TEGRA_MUX_ ## f_safe, \
2614 .mux_reg = ((mux_r) - PIN_MUX_CTL_REG_A), \
2617 .pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A), \
2619 .pupd_bit = pupd_b, \
2620 .tri_reg = ((tri_r) - TRISTATE_REG_A), \
2626 .ioreset_reg = -1, \
2631 #define PULL_PG(pg_name, pupd_r, pupd_b) \
2634 .pins = pg_name##_pins, \
2635 .npins = ARRAY_SIZE(pg_name##_pins), \
2637 .pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A), \
2639 .pupd_bit = pupd_b, \
2644 .ioreset_reg = -1, \
2649 #define DRV_PG_EXT(pg_name, r, hsm_b, schmitt_b, lpmd_b, \
2651 slwr_b, slwr_w, slwf_b, slwf_w) \
2653 .name = "drive_" #pg_name, \
2654 .pins = drive_##pg_name##_pins, \
2655 .npins = ARRAY_SIZE(drive_##pg_name##_pins), \
2662 .ioreset_reg = -1, \
2663 .drv_reg = ((r) - PINGROUP_REG_A), \
2666 .schmitt_bit = schmitt_b, \
2667 .lpmd_bit = lpmd_b, \
2668 .drvdn_bit = drvdn_b, \
2670 .drvup_bit = drvup_b, \
2672 .slwr_bit = slwr_b, \
2673 .slwr_width = slwr_w, \
2674 .slwf_bit = slwf_b, \
2675 .slwf_width = slwf_w, \
2679 #define DRV_PG(pg_name, r) \
2680 DRV_PG_EXT(pg_name, r, 2, 3, 4, 12, 20, 28, 2, 30, 2)
2684 MUX_PG(ata,
IDE, NAND, GMI,
RSVD4,
IDE, 0x14, 0, 0x80, 24, 0xa0, 0),
2685 MUX_PG(atb,
IDE, NAND, GMI, SDIO4,
IDE, 0x14, 1, 0x80, 16, 0xa0, 2),
2686 MUX_PG(atc,
IDE, NAND, GMI, SDIO4,
IDE, 0x14, 2, 0x80, 22, 0xa0, 4),
2687 MUX_PG(atd,
IDE, NAND, GMI, SDIO4,
IDE, 0x14, 3, 0x80, 20, 0xa0, 6),
2688 MUX_PG(ate,
IDE, NAND, GMI,
RSVD4,
IDE, 0x18, 25, 0x80, 12, 0xa0, 8),
2689 MUX_PG(cdev1,
OSC, PLLA_OUT, PLLM_OUT1, AUDIO_SYNC,
OSC, 0x14, 4, 0x88, 2, 0xa8, 0),
2690 MUX_PG(cdev2,
OSC, AHB_CLK, APB_CLK, PLLP_OUT4,
OSC, 0x14, 5, 0x88, 4, 0xa8, 2),
2691 MUX_PG(crtp, CRT,
RSVD2,
RSVD3,
RSVD4,
RSVD2, 0x20, 14, 0x98, 20, 0xa4, 24),
2692 MUX_PG(csus, PLLC_OUT1, PLLP_OUT2, PLLP_OUT3, VI_SENSOR_CLK, PLLC_OUT1, 0x14, 6, 0x88, 6, 0xac, 24),
2693 MUX_PG(dap1, DAP1,
RSVD2, GMI, SDIO2, DAP1, 0x14, 7, 0x88, 20, 0xa0, 10),
2694 MUX_PG(dap2, DAP2, TWC,
RSVD3, GMI, DAP2, 0x14, 8, 0x88, 22, 0xa0, 12),
2695 MUX_PG(dap3, DAP3,
RSVD2,
RSVD3,
RSVD4, DAP3, 0x14, 9, 0x88, 24, 0xa0, 14),
2696 MUX_PG(dap4, DAP4,
RSVD2, GMI,
RSVD4, DAP4, 0x14, 10, 0x88, 26, 0xa0, 16),
2697 MUX_PG(ddc, I2C2,
RSVD2,
RSVD3,
RSVD4,
RSVD4, 0x18, 31, 0x88, 0, 0xb0, 28),
2698 MUX_PG(dta, RSVD1, SDIO2, VI,
RSVD4,
RSVD4, 0x14, 11, 0x84, 20, 0xa0, 18),
2699 MUX_PG(dtb, RSVD1,
RSVD2, VI,
SPI1, RSVD1, 0x14, 12, 0x84, 22, 0xa0, 20),
2700 MUX_PG(dtc, RSVD1,
RSVD2, VI,
RSVD4, RSVD1, 0x14, 13, 0x84, 26, 0xa0, 22),
2701 MUX_PG(dtd, RSVD1, SDIO2, VI,
RSVD4, RSVD1, 0x14, 14, 0x84, 28, 0xa0, 24),
2702 MUX_PG(dte, RSVD1,
RSVD2, VI,
SPI1, RSVD1, 0x14, 15, 0x84, 30, 0xa0, 26),
2703 MUX_PG(dtf, I2C3,
RSVD2, VI,
RSVD4,
RSVD4, 0x20, 12, 0x98, 30, 0xa0, 28),
2704 MUX_PG(gma, UARTE, SPI3, GMI, SDIO4, SPI3, 0x14, 28, 0x84, 0, 0xb0, 20),
2705 MUX_PG(gmb,
IDE, NAND, GMI, GMI_INT, GMI, 0x18, 29, 0x88, 28, 0xb0, 22),
2706 MUX_PG(gmc, UARTD, SPI4, GMI, SFLASH, SPI4, 0x14, 29, 0x84, 2, 0xb0, 24),
2707 MUX_PG(gmd, RSVD1, NAND, GMI, SFLASH, GMI, 0x18, 30, 0x88, 30, 0xb0, 26),
2708 MUX_PG(gme, RSVD1, DAP5, GMI, SDIO4, GMI, 0x18, 0, 0x8c, 0, 0xa8, 24),
2709 MUX_PG(
gpu, PWM, UARTA, GMI,
RSVD4,
RSVD4, 0x14, 16, 0x8c, 4, 0xa4, 20),
2710 MUX_PG(gpu7, RTCK,
RSVD2,
RSVD3,
RSVD4, RTCK, 0x20, 11, 0x98, 28, 0xa4, 6),
2711 MUX_PG(gpv,
PCIE,
RSVD2,
RSVD3,
RSVD4,
PCIE, 0x14, 17, 0x8c, 2, 0xa0, 30),
2712 MUX_PG(hdint,
HDMI,
RSVD2,
RSVD3,
RSVD4,
HDMI, 0x1c, 23, 0x84, 4, -1, -1),
2713 MUX_PG(i2cp, I2CP,
RSVD2,
RSVD3,
RSVD4,
RSVD4, 0x14, 18, 0x88, 8, 0xa4, 2),
2714 MUX_PG(irrx, UARTA, UARTB, GMI, SPI4, UARTB, 0x14, 20, 0x88, 18, 0xa8, 22),
2715 MUX_PG(irtx, UARTA, UARTB, GMI, SPI4, UARTB, 0x14, 19, 0x88, 16, 0xa8, 20),
2716 MUX_PG(kbca, KBC, NAND, SDIO2, EMC_TEST0_DLL, KBC, 0x14, 22, 0x88, 10, 0xa4, 8),
2717 MUX_PG(kbcb, KBC, NAND, SDIO2, MIO, KBC, 0x14, 21, 0x88, 12, 0xa4, 10),
2718 MUX_PG(kbcc, KBC, NAND,
TRACE, EMC_TEST1_DLL, KBC, 0x18, 26, 0x88, 14, 0xa4, 12),
2719 MUX_PG(kbcd, KBC, NAND, SDIO2, MIO, KBC, 0x20, 10, 0x98, 26, 0xa4, 14),
2720 MUX_PG(kbce, KBC, NAND, OWR,
RSVD4, KBC, 0x14, 26, 0x80, 28, 0xb0, 2),
2721 MUX_PG(kbcf, KBC, NAND,
TRACE, MIO, KBC, 0x14, 27, 0x80, 26, 0xb0, 0),
2722 MUX_PG(lcsn, DISPLAYA, DISPLAYB, SPI3,
RSVD4,
RSVD4, 0x1c, 31, 0x90, 12, -1, -1),
2723 MUX_PG(ld0, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 0, 0x94, 0, -1, -1),
2724 MUX_PG(ld1, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 1, 0x94, 2, -1, -1),
2725 MUX_PG(ld2, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 2, 0x94, 4, -1, -1),
2726 MUX_PG(ld3, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 3, 0x94, 6, -1, -1),
2727 MUX_PG(ld4, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 4, 0x94, 8, -1, -1),
2728 MUX_PG(ld5, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 5, 0x94, 10, -1, -1),
2729 MUX_PG(ld6, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 6, 0x94, 12, -1, -1),
2730 MUX_PG(ld7, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 7, 0x94, 14, -1, -1),
2731 MUX_PG(ld8, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 8, 0x94, 16, -1, -1),
2732 MUX_PG(ld9, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 9, 0x94, 18, -1, -1),
2733 MUX_PG(ld10, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 10, 0x94, 20, -1, -1),
2734 MUX_PG(ld11, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 11, 0x94, 22, -1, -1),
2735 MUX_PG(ld12, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 12, 0x94, 24, -1, -1),
2736 MUX_PG(ld13, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 13, 0x94, 26, -1, -1),
2737 MUX_PG(ld14, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 14, 0x94, 28, -1, -1),
2738 MUX_PG(ld15, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 15, 0x94, 30, -1, -1),
2739 MUX_PG(ld16, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 16, 0x98, 0, -1, -1),
2740 MUX_PG(ld17, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x1c, 17, 0x98, 2, -1, -1),
2741 MUX_PG(ldc, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x1c, 30, 0x90, 14, -1, -1),
2742 MUX_PG(ldi, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x20, 6, 0x98, 16, -1, -1),
2743 MUX_PG(lhp0, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x1c, 18, 0x98, 10, -1, -1),
2744 MUX_PG(lhp1, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x1c, 19, 0x98, 4, -1, -1),
2745 MUX_PG(lhp2, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x1c, 20, 0x98, 6, -1, -1),
2746 MUX_PG(lhs, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x20, 7, 0x90, 22, -1, -1),
2747 MUX_PG(lm0, DISPLAYA, DISPLAYB, SPI3,
RSVD4,
RSVD4, 0x1c, 24, 0x90, 26, -1, -1),
2748 MUX_PG(lm1, DISPLAYA, DISPLAYB,
RSVD3, CRT,
RSVD3, 0x1c, 25, 0x90, 28, -1, -1),
2749 MUX_PG(lpp, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x20, 8, 0x98, 14, -1, -1),
2750 MUX_PG(lpw0, DISPLAYA, DISPLAYB, SPI3,
HDMI, DISPLAYA, 0x20, 3, 0x90, 0, -1, -1),
2751 MUX_PG(lpw1, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x20, 4, 0x90, 2, -1, -1),
2752 MUX_PG(lpw2, DISPLAYA, DISPLAYB, SPI3,
HDMI, DISPLAYA, 0x20, 5, 0x90, 4, -1, -1),
2753 MUX_PG(lsc0, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 27, 0x90, 18, -1, -1),
2754 MUX_PG(lsc1, DISPLAYA, DISPLAYB, SPI3,
HDMI, DISPLAYA, 0x1c, 28, 0x90, 20, -1, -1),
2755 MUX_PG(lsck, DISPLAYA, DISPLAYB, SPI3,
HDMI, DISPLAYA, 0x1c, 29, 0x90, 16, -1, -1),
2756 MUX_PG(lsda, DISPLAYA, DISPLAYB, SPI3,
HDMI, DISPLAYA, 0x20, 1, 0x90, 8, -1, -1),
2757 MUX_PG(lsdi, DISPLAYA, DISPLAYB, SPI3,
RSVD4, DISPLAYA, 0x20, 2, 0x90, 6, -1, -1),
2758 MUX_PG(lspi, DISPLAYA, DISPLAYB, XIO,
HDMI, DISPLAYA, 0x20, 0, 0x90, 10, -1, -1),
2759 MUX_PG(lvp0, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x1c, 21, 0x90, 30, -1, -1),
2760 MUX_PG(lvp1, DISPLAYA, DISPLAYB,
RSVD3,
RSVD4,
RSVD4, 0x1c, 22, 0x98, 8, -1, -1),
2761 MUX_PG(lvs, DISPLAYA, DISPLAYB, XIO,
RSVD4,
RSVD4, 0x1c, 26, 0x90, 24, -1, -1),
2762 MUX_PG(owc, OWR,
RSVD2,
RSVD3,
RSVD4, OWR, 0x14, 31, 0x84, 8, 0xb0, 30),
2763 MUX_PG(pmc,
PWR_ON, PWR_INTR,
RSVD3,
RSVD4,
PWR_ON, 0x14, 23, 0x98, 18, -1, -1),
2764 MUX_PG(pta, I2C2,
HDMI, GMI,
RSVD4,
RSVD4, 0x14, 24, 0x98, 22, 0xa4, 4),
2765 MUX_PG(rm,
I2C1,
RSVD2,
RSVD3,
RSVD4,
RSVD4, 0x14, 25, 0x80, 14, 0xa4, 0),
2766 MUX_PG(sdb, UARTA, PWM, SDIO3, SPI2, PWM, 0x20, 15, 0x8c, 10, -1, -1),
2767 MUX_PG(sdc, PWM, TWC, SDIO3, SPI3, TWC, 0x18, 1, 0x8c, 12, 0xac, 28),
2768 MUX_PG(sdd, UARTA, PWM, SDIO3, SPI3, PWM, 0x18, 2, 0x8c, 14, 0xac, 30),
2769 MUX_PG(sdio1, SDIO1,
RSVD2, UARTE, UARTA,
RSVD2, 0x14, 30, 0x80, 30, 0xb0, 18),
2770 MUX_PG(slxa,
PCIE, SPI4, SDIO3, SPI2,
PCIE, 0x18, 3, 0x84, 6, 0xa4, 22),
2771 MUX_PG(slxc,
SPDIF, SPI4, SDIO3, SPI2, SPI4, 0x18, 5, 0x84, 10, 0xa4, 26),
2772 MUX_PG(slxd,
SPDIF, SPI4, SDIO3, SPI2, SPI4, 0x18, 6, 0x84, 12, 0xa4, 28),
2773 MUX_PG(slxk,
PCIE, SPI4, SDIO3, SPI2,
PCIE, 0x18, 7, 0x84, 14, 0xa4, 30),
2774 MUX_PG(spdi,
SPDIF,
RSVD2,
I2C1, SDIO2,
RSVD2, 0x18, 8, 0x8c, 8, 0xa4, 16),
2775 MUX_PG(spdo,
SPDIF,
RSVD2,
I2C1, SDIO2,
RSVD2, 0x18, 9, 0x8c, 6, 0xa4, 18),
2776 MUX_PG(spia,
SPI1, SPI2, SPI3, GMI, GMI, 0x18, 10, 0x8c, 30, 0xa8, 4),
2777 MUX_PG(spib,
SPI1, SPI2, SPI3, GMI, GMI, 0x18, 11, 0x8c, 28, 0xa8, 6),
2778 MUX_PG(spic,
SPI1, SPI2, SPI3, GMI, GMI, 0x18, 12, 0x8c, 26, 0xa8, 8),
2779 MUX_PG(spid, SPI2,
SPI1, SPI2_ALT, GMI, GMI, 0x18, 13, 0x8c, 24, 0xa8, 10),
2780 MUX_PG(spie, SPI2,
SPI1, SPI2_ALT, GMI, GMI, 0x18, 14, 0x8c, 22, 0xa8, 12),
2781 MUX_PG(spif, SPI3,
SPI1, SPI2,
RSVD4,
RSVD4, 0x18, 15, 0x8c, 20, 0xa8, 14),
2782 MUX_PG(spig, SPI3, SPI2, SPI2_ALT,
I2C1, SPI2_ALT, 0x18, 16, 0x8c, 18, 0xa8, 16),
2783 MUX_PG(spih, SPI3, SPI2, SPI2_ALT,
I2C1, SPI2_ALT, 0x18, 17, 0x8c, 16, 0xa8, 18),
2784 MUX_PG(uaa, SPI3, MIPI_HS, UARTA, ULPI, MIPI_HS, 0x18, 18, 0x80, 0, 0xac, 0),
2785 MUX_PG(uab, SPI2, MIPI_HS, UARTA, ULPI, MIPI_HS, 0x18, 19, 0x80, 2, 0xac, 2),
2786 MUX_PG(uac, OWR,
RSVD2,
RSVD3,
RSVD4,
RSVD4, 0x18, 20, 0x80, 4, 0xac, 4),
2787 MUX_PG(uad,
IRDA,
SPDIF, UARTA, SPI4,
SPDIF, 0x18, 21, 0x80, 6, 0xac, 6),
2788 MUX_PG(uca, UARTC,
RSVD2, GMI,
RSVD4,
RSVD4, 0x18, 22, 0x84, 16, 0xac, 8),
2789 MUX_PG(ucb, UARTC, PWM, GMI,
RSVD4,
RSVD4, 0x18, 23, 0x84, 18, 0xac, 10),
2790 MUX_PG(uda,
SPI1,
RSVD2, UARTD, ULPI,
RSVD2, 0x20, 13, 0x80, 8, 0xb0, 16),
2832 DRV_PG_EXT(xm2a, 0x8c4, -1, -1, 4, 14, 19, 24, 4, 28, 4),
2833 DRV_PG_EXT(xm2c, 0x8c8, -1, 3, -1, 14, 19, 24, 4, 28, 4),
2834 DRV_PG_EXT(xm2d, 0x8cc, -1, 3, -1, 14, 19, 24, 4, 28, 4),
2835 DRV_PG_EXT(xm2clk, 0x8d0, -1, -1, -1, 14, 19, 24, 4, 28, 4),
2851 .pins = tegra20_pins,
2853 .functions = tegra20_functions,
2855 .groups = tegra20_groups,
2865 { .compatible =
"nvidia,tegra20-pinmux", },
2871 .name =
"tegra20-pinctrl",
2873 .of_match_table = tegra20_pinctrl_of_match,
2875 .probe = tegra20_pinctrl_probe,
2879 static int __init tegra20_pinctrl_init(
void)
2885 static void __exit tegra20_pinctrl_exit(
void)