arm: tegra: Fix T12x pinmux table
[linux-3.10.git] / arch / arm / mach-tegra / include / mach / pinmux-t12.h
1 /*
2  * linux/arch/arm/mach-tegra/include/mach/pinmux-t12.h
3  *
4  * Copyright (C) 2010 Google, Inc.
5  * Copyright (C) 2011-2013 NVIDIA CORPORATION. All rights reserved.
6  *
7  * This software is licensed under the terms of the GNU General Public
8  * License version 2, as published by the Free Software Foundation, and
9  * may be copied, distributed, and modified under those terms.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  */
17
18 #ifndef __MACH_TEGRA_PINMUX_T12_H
19 #define __MACH_TEGRA_PINMUX_T12_H
20
21 void tegra12x_default_pinmux(void);
22
23 enum tegra_pingroup {
24         TEGRA_PINGROUP_ULPI_DATA0,
25         TEGRA_PINGROUP_ULPI_DATA1,
26         TEGRA_PINGROUP_ULPI_DATA2,
27         TEGRA_PINGROUP_ULPI_DATA3,
28         TEGRA_PINGROUP_ULPI_DATA4,
29         TEGRA_PINGROUP_ULPI_DATA5,
30         TEGRA_PINGROUP_ULPI_DATA6,
31         TEGRA_PINGROUP_ULPI_DATA7,
32         TEGRA_PINGROUP_ULPI_CLK,
33         TEGRA_PINGROUP_ULPI_DIR,
34         TEGRA_PINGROUP_ULPI_NXT,
35         TEGRA_PINGROUP_ULPI_STP,
36         TEGRA_PINGROUP_DAP3_FS,
37         TEGRA_PINGROUP_DAP3_DIN,
38         TEGRA_PINGROUP_DAP3_DOUT,
39         TEGRA_PINGROUP_DAP3_SCLK,
40         TEGRA_PINGROUP_GPIO_PV0,
41         TEGRA_PINGROUP_GPIO_PV1,
42         TEGRA_PINGROUP_SDMMC1_CLK,
43         TEGRA_PINGROUP_SDMMC1_CMD,
44         TEGRA_PINGROUP_SDMMC1_DAT3,
45         TEGRA_PINGROUP_SDMMC1_DAT2,
46         TEGRA_PINGROUP_SDMMC1_DAT1,
47         TEGRA_PINGROUP_SDMMC1_DAT0,
48         TEGRA_PINGROUP_CLK2_OUT,
49         TEGRA_PINGROUP_CLK2_REQ,
50         TEGRA_PINGROUP_HDMI_INT,
51         TEGRA_PINGROUP_DDC_SCL,
52         TEGRA_PINGROUP_DDC_SDA,
53         TEGRA_PINGROUP_UART2_RXD,
54         TEGRA_PINGROUP_UART2_TXD,
55         TEGRA_PINGROUP_UART2_RTS_N,
56         TEGRA_PINGROUP_UART2_CTS_N,
57         TEGRA_PINGROUP_UART3_TXD,
58         TEGRA_PINGROUP_UART3_RXD,
59         TEGRA_PINGROUP_UART3_CTS_N,
60         TEGRA_PINGROUP_UART3_RTS_N,
61         TEGRA_PINGROUP_GPIO_PU0,
62         TEGRA_PINGROUP_GPIO_PU1,
63         TEGRA_PINGROUP_GPIO_PU2,
64         TEGRA_PINGROUP_GPIO_PU3,
65         TEGRA_PINGROUP_GPIO_PU4,
66         TEGRA_PINGROUP_GPIO_PU5,
67         TEGRA_PINGROUP_GPIO_PU6,
68         TEGRA_PINGROUP_GEN1_I2C_SDA,
69         TEGRA_PINGROUP_GEN1_I2C_SCL,
70         TEGRA_PINGROUP_DAP4_FS,
71         TEGRA_PINGROUP_DAP4_DIN,
72         TEGRA_PINGROUP_DAP4_DOUT,
73         TEGRA_PINGROUP_DAP4_SCLK,
74         TEGRA_PINGROUP_CLK3_OUT,
75         TEGRA_PINGROUP_CLK3_REQ,
76         TEGRA_PINGROUP_GMI_WP_N,
77         TEGRA_PINGROUP_GMI_IORDY,
78         TEGRA_PINGROUP_GMI_WAIT,
79         TEGRA_PINGROUP_GMI_ADV_N,
80         TEGRA_PINGROUP_GMI_CLK,
81         TEGRA_PINGROUP_GMI_CS0_N,
82         TEGRA_PINGROUP_GMI_CS1_N,
83         TEGRA_PINGROUP_GMI_CS2_N,
84         TEGRA_PINGROUP_GMI_CS3_N,
85         TEGRA_PINGROUP_GMI_CS4_N,
86         TEGRA_PINGROUP_GMI_CS6_N,
87         TEGRA_PINGROUP_GMI_CS7_N,
88         TEGRA_PINGROUP_GMI_AD0,
89         TEGRA_PINGROUP_GMI_AD1,
90         TEGRA_PINGROUP_GMI_AD2,
91         TEGRA_PINGROUP_GMI_AD3,
92         TEGRA_PINGROUP_GMI_AD4,
93         TEGRA_PINGROUP_GMI_AD5,
94         TEGRA_PINGROUP_GMI_AD6,
95         TEGRA_PINGROUP_GMI_AD7,
96         TEGRA_PINGROUP_GMI_AD8,
97         TEGRA_PINGROUP_GMI_AD9,
98         TEGRA_PINGROUP_GMI_AD10,
99         TEGRA_PINGROUP_GMI_AD11,
100         TEGRA_PINGROUP_GMI_AD12,
101         TEGRA_PINGROUP_GMI_AD13,
102         TEGRA_PINGROUP_GMI_AD14,
103         TEGRA_PINGROUP_GMI_AD15,
104         TEGRA_PINGROUP_GMI_A16,
105         TEGRA_PINGROUP_GMI_A17,
106         TEGRA_PINGROUP_GMI_A18,
107         TEGRA_PINGROUP_GMI_A19,
108         TEGRA_PINGROUP_GMI_WR_N,
109         TEGRA_PINGROUP_GMI_OE_N,
110         TEGRA_PINGROUP_GMI_DQS_P,
111         TEGRA_PINGROUP_GMI_DQS = TEGRA_PINGROUP_GMI_DQS_P,
112         TEGRA_PINGROUP_GMI_RST_N,
113         TEGRA_PINGROUP_GPIO_PC7,
114         TEGRA_PINGROUP_GPIO_PI5,
115         TEGRA_PINGROUP_GPIO_PI7,
116         TEGRA_PINGROUP_GPIO_PK0,
117         TEGRA_PINGROUP_GPIO_PK1,
118         TEGRA_PINGROUP_GPIO_PJ0,
119         TEGRA_PINGROUP_GPIO_PJ2,
120         TEGRA_PINGROUP_GPIO_PK3,
121         TEGRA_PINGROUP_GPIO_PK4,
122         TEGRA_PINGROUP_GPIO_PK2,
123         TEGRA_PINGROUP_GPIO_PI3,
124         TEGRA_PINGROUP_GPIO_PI6,
125         TEGRA_PINGROUP_GPIO_PG0,
126         TEGRA_PINGROUP_GPIO_PG1,
127         TEGRA_PINGROUP_GPIO_PG2,
128         TEGRA_PINGROUP_GPIO_PG3,
129         TEGRA_PINGROUP_GPIO_PG4,
130         TEGRA_PINGROUP_GPIO_PG5,
131         TEGRA_PINGROUP_GPIO_PG6,
132         TEGRA_PINGROUP_GPIO_PG7,
133         TEGRA_PINGROUP_GPIO_PH0,
134         TEGRA_PINGROUP_GPIO_PH1,
135         TEGRA_PINGROUP_GPIO_PH2,
136         TEGRA_PINGROUP_GPIO_PH3,
137         TEGRA_PINGROUP_GPIO_PH4,
138         TEGRA_PINGROUP_GPIO_PH5,
139         TEGRA_PINGROUP_GPIO_PH6,
140         TEGRA_PINGROUP_GPIO_PH7,
141         TEGRA_PINGROUP_GPIO_PJ7,
142         TEGRA_PINGROUP_GPIO_PB0,
143         TEGRA_PINGROUP_GPIO_PB1,
144         TEGRA_PINGROUP_GPIO_PK7,
145         TEGRA_PINGROUP_GPIO_PI0,
146         TEGRA_PINGROUP_GPIO_PI1,
147         TEGRA_PINGROUP_GPIO_PI2,
148         TEGRA_PINGROUP_GPIO_PI4,
149         TEGRA_PINGROUP_GEN2_I2C_SCL,
150         TEGRA_PINGROUP_GEN2_I2C_SDA,
151         TEGRA_PINGROUP_SDMMC4_CLK,
152         TEGRA_PINGROUP_SDMMC4_CMD,
153         TEGRA_PINGROUP_SDMMC4_DAT0,
154         TEGRA_PINGROUP_SDMMC4_DAT1,
155         TEGRA_PINGROUP_SDMMC4_DAT2,
156         TEGRA_PINGROUP_SDMMC4_DAT3,
157         TEGRA_PINGROUP_SDMMC4_DAT4,
158         TEGRA_PINGROUP_SDMMC4_DAT5,
159         TEGRA_PINGROUP_SDMMC4_DAT6,
160         TEGRA_PINGROUP_SDMMC4_DAT7,
161         TEGRA_PINGROUP_SDMMC4_RST_N,
162         TEGRA_PINGROUP_CAM_MCLK,
163         TEGRA_PINGROUP_GPIO_PCC1,
164         TEGRA_PINGROUP_GPIO_PBB0,
165         TEGRA_PINGROUP_CAM_I2C_SCL,
166         TEGRA_PINGROUP_CAM_I2C_SDA,
167         TEGRA_PINGROUP_GPIO_PBB3,
168         TEGRA_PINGROUP_GPIO_PBB4,
169         TEGRA_PINGROUP_GPIO_PBB5,
170         TEGRA_PINGROUP_GPIO_PBB6,
171         TEGRA_PINGROUP_GPIO_PBB7,
172         TEGRA_PINGROUP_GPIO_PCC2,
173         TEGRA_PINGROUP_JTAG_RTCK,
174         TEGRA_PINGROUP_PWR_I2C_SCL,
175         TEGRA_PINGROUP_PWR_I2C_SDA,
176         TEGRA_PINGROUP_KB_ROW0,
177         TEGRA_PINGROUP_KB_ROW1,
178         TEGRA_PINGROUP_KB_ROW2,
179         TEGRA_PINGROUP_KB_ROW3,
180         TEGRA_PINGROUP_KB_ROW4,
181         TEGRA_PINGROUP_KB_ROW5,
182         TEGRA_PINGROUP_KB_ROW6,
183         TEGRA_PINGROUP_KB_ROW7,
184         TEGRA_PINGROUP_KB_ROW8,
185         TEGRA_PINGROUP_KB_ROW9,
186         TEGRA_PINGROUP_KB_ROW10,
187         TEGRA_PINGROUP_KB_ROW11,
188         TEGRA_PINGROUP_KB_ROW12,
189         TEGRA_PINGROUP_KB_ROW13,
190         TEGRA_PINGROUP_KB_ROW14,
191         TEGRA_PINGROUP_KB_ROW15,
192         TEGRA_PINGROUP_KB_COL0,
193         TEGRA_PINGROUP_KB_COL1,
194         TEGRA_PINGROUP_KB_COL2,
195         TEGRA_PINGROUP_KB_COL3,
196         TEGRA_PINGROUP_KB_COL4,
197         TEGRA_PINGROUP_KB_COL5,
198         TEGRA_PINGROUP_KB_COL6,
199         TEGRA_PINGROUP_KB_COL7,
200         TEGRA_PINGROUP_CLK_32K_OUT,
201         TEGRA_PINGROUP_SYS_CLK_REQ,
202         TEGRA_PINGROUP_CLK1_REQ,
203         TEGRA_PINGROUP_CLK1_OUT,
204         TEGRA_PINGROUP_CORE_PWR_REQ,
205         TEGRA_PINGROUP_CPU_PWR_REQ,
206         TEGRA_PINGROUP_PWR_INT_N,
207         TEGRA_PINGROUP_CLK_32K_IN,
208         TEGRA_PINGROUP_OWR,
209         TEGRA_PINGROUP_DAP1_FS,
210         TEGRA_PINGROUP_DAP1_DIN,
211         TEGRA_PINGROUP_DAP1_DOUT,
212         TEGRA_PINGROUP_DAP1_SCLK,
213         TEGRA_PINGROUP_DAP_MCLK1_REQ,
214         TEGRA_PINGROUP_DAP_MCLK1,
215         TEGRA_PINGROUP_SPDIF_IN,
216         TEGRA_PINGROUP_SPDIF_OUT,
217         TEGRA_PINGROUP_DAP2_FS,
218         TEGRA_PINGROUP_DAP2_DIN,
219         TEGRA_PINGROUP_DAP2_DOUT,
220         TEGRA_PINGROUP_DAP2_SCLK,
221         TEGRA_PINGROUP_SPI2_MOSI,
222         TEGRA_PINGROUP_SPI2_MISO,
223         TEGRA_PINGROUP_SPI2_CS0_N,
224         TEGRA_PINGROUP_SPI2_SCK,
225         TEGRA_PINGROUP_SPI1_MOSI,
226         TEGRA_PINGROUP_SPI1_SCK,
227         TEGRA_PINGROUP_SPI1_CS0_N,
228         TEGRA_PINGROUP_SPI1_MISO,
229         TEGRA_PINGROUP_DVFS_PWM,
230         TEGRA_PINGROUP_GPIO_X1_AUD,
231         TEGRA_PINGROUP_GPIO_X3_AUD,
232         TEGRA_PINGROUP_DVFS_CLK,
233         TEGRA_PINGROUP_GPIO_X4_AUD,
234         TEGRA_PINGROUP_GPIO_X5_AUD,
235         TEGRA_PINGROUP_GPIO_X6_AUD,
236         TEGRA_PINGROUP_GPIO_X7_AUD,
237         TEGRA_PINGROUP_SDMMC3_CLK,
238         TEGRA_PINGROUP_SDMMC3_CMD,
239         TEGRA_PINGROUP_SDMMC3_DAT0,
240         TEGRA_PINGROUP_SDMMC3_DAT1,
241         TEGRA_PINGROUP_SDMMC3_DAT2,
242         TEGRA_PINGROUP_SDMMC3_DAT3,
243         TEGRA_PINGROUP_PEX_L0_RST_N,
244         TEGRA_PINGROUP_PEX_L0_CLKREQ_N,
245         TEGRA_PINGROUP_PEX_WAKE_N,
246         TEGRA_PINGROUP_PEX_L1_RST_N,
247         TEGRA_PINGROUP_PEX_L1_CLKREQ_N,
248         TEGRA_PINGROUP_HDMI_CEC,
249         TEGRA_PINGROUP_SDMMC1_WP_N,
250         TEGRA_PINGROUP_SDMMC3_CD_N,
251         TEGRA_PINGROUP_SPI1_CS1_N,
252         TEGRA_PINGROUP_SPI1_CS2_N,
253         TEGRA_PINGROUP_GPIO_W2_AUD,
254         TEGRA_PINGROUP_GPIO_W3_AUD,
255         TEGRA_PINGROUP_USB_VBUS_EN0,
256         TEGRA_PINGROUP_USB_VBUS_EN1,
257         TEGRA_PINGROUP_SDMMC3_CLK_LB_OUT,
258         TEGRA_PINGROUP_SDMMC3_CLK_LB_IN,
259         TEGRA_PINGROUP_GMI_CLK_LB,
260         TEGRA_PINGROUP_RESET_OUT_N,
261         TEGRA_PINGROUP_KB_ROW16,
262         TEGRA_PINGROUP_KB_ROW17,
263         TEGRA_PINGROUP_USB_VBUS_EN2,
264         TEGRA_PINGROUP_GPIO_PFF2,
265         TEGRA_PINGROUP_DP_HPD,
266         TEGRA_MAX_PINGROUP,
267 };
268
269 enum tegra_drive_pingroup {
270         TEGRA_DRIVE_PINGROUP_AO1 = 0,
271         TEGRA_DRIVE_PINGROUP_AO2,
272         TEGRA_DRIVE_PINGROUP_AT1,
273         TEGRA_DRIVE_PINGROUP_AT2,
274         TEGRA_DRIVE_PINGROUP_AT3,
275         TEGRA_DRIVE_PINGROUP_AT4,
276         TEGRA_DRIVE_PINGROUP_AT5,
277         TEGRA_DRIVE_PINGROUP_CDEV1,
278         TEGRA_DRIVE_PINGROUP_CDEV2,
279         TEGRA_DRIVE_PINGROUP_CSUS,
280         TEGRA_DRIVE_PINGROUP_DAP1,
281         TEGRA_DRIVE_PINGROUP_DAP2,
282         TEGRA_DRIVE_PINGROUP_DAP3,
283         TEGRA_DRIVE_PINGROUP_DAP4,
284         TEGRA_DRIVE_PINGROUP_DBG,
285         TEGRA_DRIVE_PINGROUP_SDIO3,
286         TEGRA_DRIVE_PINGROUP_SPI,
287         TEGRA_DRIVE_PINGROUP_UAA,
288         TEGRA_DRIVE_PINGROUP_UAB,
289         TEGRA_DRIVE_PINGROUP_UART2,
290         TEGRA_DRIVE_PINGROUP_UART3,
291         TEGRA_DRIVE_PINGROUP_SDIO1,
292         TEGRA_DRIVE_PINGROUP_CRT,
293         TEGRA_DRIVE_PINGROUP_DDC,
294         TEGRA_DRIVE_PINGROUP_GMA,
295         TEGRA_DRIVE_PINGROUP_GME,
296         TEGRA_DRIVE_PINGROUP_GMF,
297         TEGRA_DRIVE_PINGROUP_GMG,
298         TEGRA_DRIVE_PINGROUP_GMH,
299         TEGRA_DRIVE_PINGROUP_OWR,
300         TEGRA_DRIVE_PINGROUP_UAD,
301         TEGRA_DRIVE_PINGROUP_GPV,
302         TEGRA_DRIVE_PINGROUP_DEV3,
303         TEGRA_DRIVE_PINGROUP_CEC,
304         TEGRA_DRIVE_PINGROUP_AT6,
305         TEGRA_DRIVE_PINGROUP_DAP5,
306         TEGRA_DRIVE_PINGROUP_VBUS,
307         TEGRA_MAX_DRIVE_PINGROUP,
308 };
309
310 #endif