[ARM/tegra] Add Tegra3 support
[linux-2.6.git] / arch / arm / mach-tegra / include / mach / pinmux-t3.h
1 /*
2  * linux/arch/arm/mach-tegra/include/mach/pinmux-t3.h
3  *
4  * Copyright (C) 2010 Google, Inc.
5  *
6  * This software is licensed under the terms of the GNU General Public
7  * License version 2, as published by the Free Software Foundation, and
8  * may be copied, distributed, and modified under those terms.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  */
16
17 #ifndef __MACH_TEGRA_PINMUX_T3_H
18 #define __MACH_TEGRA_PINMUX_T3_H
19
20 #define TEGRA_PINMUX_HAS_IO_DIRECTION   1
21
22 enum tegra_pingroup {
23         TEGRA_PINGROUP_ULPI_DATA0 = 0,
24         TEGRA_PINGROUP_ULPI_DATA1,
25         TEGRA_PINGROUP_ULPI_DATA2,
26         TEGRA_PINGROUP_ULPI_DATA3,
27         TEGRA_PINGROUP_ULPI_DATA4,
28         TEGRA_PINGROUP_ULPI_DATA5,
29         TEGRA_PINGROUP_ULPI_DATA6,
30         TEGRA_PINGROUP_ULPI_DATA7,
31         TEGRA_PINGROUP_ULPI_CLK,
32         TEGRA_PINGROUP_ULPI_DIR,
33         TEGRA_PINGROUP_ULPI_NXT,
34         TEGRA_PINGROUP_ULPI_STP,
35         TEGRA_PINGROUP_DAP3_FS,
36         TEGRA_PINGROUP_DAP3_DIN,
37         TEGRA_PINGROUP_DAP3_DOUT,
38         TEGRA_PINGROUP_DAP3_SCLK,
39         TEGRA_PINGROUP_GPIO_PV0,
40         TEGRA_PINGROUP_GPIO_PV1,
41         TEGRA_PINGROUP_SDMMC1_CLK,
42         TEGRA_PINGROUP_SDMMC1_CMD,
43         TEGRA_PINGROUP_SDMMC1_DAT3,
44         TEGRA_PINGROUP_SDMMC1_DAT2,
45         TEGRA_PINGROUP_SDMMC1_DAT1,
46         TEGRA_PINGROUP_SDMMC1_DAT0,
47         TEGRA_PINGROUP_GPIO_PV2,
48         TEGRA_PINGROUP_GPIO_PV3,
49         TEGRA_PINGROUP_CLK2_OUT,
50         TEGRA_PINGROUP_CLK2_REQ,
51         TEGRA_PINGROUP_LCD_PWR1,
52         TEGRA_PINGROUP_LCD_PWR2,
53         TEGRA_PINGROUP_LCD_SDIN,
54         TEGRA_PINGROUP_LCD_SDOUT,
55         TEGRA_PINGROUP_LCD_WR_N,
56         TEGRA_PINGROUP_LCD_CS0_N,
57         TEGRA_PINGROUP_LCD_DC0,
58         TEGRA_PINGROUP_LCD_SCK,
59         TEGRA_PINGROUP_LCD_PWR0,
60         TEGRA_PINGROUP_LCD_PCLK,
61         TEGRA_PINGROUP_LCD_DE,
62         TEGRA_PINGROUP_LCD_HSYNC,
63         TEGRA_PINGROUP_LCD_VSYNC,
64         TEGRA_PINGROUP_LCD_D0,
65         TEGRA_PINGROUP_LCD_D1,
66         TEGRA_PINGROUP_LCD_D2,
67         TEGRA_PINGROUP_LCD_D3,
68         TEGRA_PINGROUP_LCD_D4,
69         TEGRA_PINGROUP_LCD_D5,
70         TEGRA_PINGROUP_LCD_D6,
71         TEGRA_PINGROUP_LCD_D7,
72         TEGRA_PINGROUP_LCD_D8,
73         TEGRA_PINGROUP_LCD_D9,
74         TEGRA_PINGROUP_LCD_D10,
75         TEGRA_PINGROUP_LCD_D11,
76         TEGRA_PINGROUP_LCD_D12,
77         TEGRA_PINGROUP_LCD_D13,
78         TEGRA_PINGROUP_LCD_D14,
79         TEGRA_PINGROUP_LCD_D15,
80         TEGRA_PINGROUP_LCD_D16,
81         TEGRA_PINGROUP_LCD_D17,
82         TEGRA_PINGROUP_LCD_D18,
83         TEGRA_PINGROUP_LCD_D19,
84         TEGRA_PINGROUP_LCD_D20,
85         TEGRA_PINGROUP_LCD_D21,
86         TEGRA_PINGROUP_LCD_D22,
87         TEGRA_PINGROUP_LCD_D23,
88         TEGRA_PINGROUP_LCD_CS1_N,
89         TEGRA_PINGROUP_LCD_M1,
90         TEGRA_PINGROUP_LCD_DC1,
91         TEGRA_PINGROUP_HDMI_INT,
92         TEGRA_PINGROUP_DDC_SCL,
93         TEGRA_PINGROUP_DDC_SDA,
94         TEGRA_PINGROUP_CRT_HSYNC,
95         TEGRA_PINGROUP_CRT_VSYNC,
96         TEGRA_PINGROUP_VI_D0,
97         TEGRA_PINGROUP_VI_D1,
98         TEGRA_PINGROUP_VI_D2,
99         TEGRA_PINGROUP_VI_D3,
100         TEGRA_PINGROUP_VI_D4,
101         TEGRA_PINGROUP_VI_D5,
102         TEGRA_PINGROUP_VI_D6,
103         TEGRA_PINGROUP_VI_D7,
104         TEGRA_PINGROUP_VI_D8,
105         TEGRA_PINGROUP_VI_D9,
106         TEGRA_PINGROUP_VI_D10,
107         TEGRA_PINGROUP_VI_D11,
108         TEGRA_PINGROUP_VI_PCLK,
109         TEGRA_PINGROUP_VI_MCLK,
110         TEGRA_PINGROUP_VI_VSYNC,
111         TEGRA_PINGROUP_VI_HSYNC,
112         TEGRA_PINGROUP_UART2_RXD,
113         TEGRA_PINGROUP_UART2_TXD,
114         TEGRA_PINGROUP_UART2_RTS_N,
115         TEGRA_PINGROUP_UART2_CTS_N,
116         TEGRA_PINGROUP_UART3_TXD,
117         TEGRA_PINGROUP_UART3_RXD,
118         TEGRA_PINGROUP_UART3_CTS_N,
119         TEGRA_PINGROUP_UART3_RTS_N,
120         TEGRA_PINGROUP_GPIO_PU0,
121         TEGRA_PINGROUP_GPIO_PU1,
122         TEGRA_PINGROUP_GPIO_PU2,
123         TEGRA_PINGROUP_GPIO_PU3,
124         TEGRA_PINGROUP_GPIO_PU4,
125         TEGRA_PINGROUP_GPIO_PU5,
126         TEGRA_PINGROUP_GPIO_PU6,
127         TEGRA_PINGROUP_GEN1_I2C_SDA,
128         TEGRA_PINGROUP_GEN1_I2C_SCL,
129         TEGRA_PINGROUP_DAP4_FS,
130         TEGRA_PINGROUP_DAP4_DIN,
131         TEGRA_PINGROUP_DAP4_DOUT,
132         TEGRA_PINGROUP_DAP4_SCLK,
133         TEGRA_PINGROUP_CLK3_OUT,
134         TEGRA_PINGROUP_CLK3_REQ,
135         TEGRA_PINGROUP_GMI_WP_N,
136         TEGRA_PINGROUP_GMI_IORDY,
137         TEGRA_PINGROUP_GMI_WAIT,
138         TEGRA_PINGROUP_GMI_ADV_N,
139         TEGRA_PINGROUP_GMI_CLK,
140         TEGRA_PINGROUP_GMI_CS0_N,
141         TEGRA_PINGROUP_GMI_CS1_N,
142         TEGRA_PINGROUP_GMI_CS2_N,
143         TEGRA_PINGROUP_GMI_CS3_N,
144         TEGRA_PINGROUP_GMI_CS4_N,
145         TEGRA_PINGROUP_GMI_CS6_N,
146         TEGRA_PINGROUP_GMI_CS7_N,
147         TEGRA_PINGROUP_GMI_AD0,
148         TEGRA_PINGROUP_GMI_AD1,
149         TEGRA_PINGROUP_GMI_AD2,
150         TEGRA_PINGROUP_GMI_AD3,
151         TEGRA_PINGROUP_GMI_AD4,
152         TEGRA_PINGROUP_GMI_AD5,
153         TEGRA_PINGROUP_GMI_AD6,
154         TEGRA_PINGROUP_GMI_AD7,
155         TEGRA_PINGROUP_GMI_AD8,
156         TEGRA_PINGROUP_GMI_AD9,
157         TEGRA_PINGROUP_GMI_AD10,
158         TEGRA_PINGROUP_GMI_AD11,
159         TEGRA_PINGROUP_GMI_AD12,
160         TEGRA_PINGROUP_GMI_AD13,
161         TEGRA_PINGROUP_GMI_AD14,
162         TEGRA_PINGROUP_GMI_AD15,
163         TEGRA_PINGROUP_GMI_A16,
164         TEGRA_PINGROUP_GMI_A17,
165         TEGRA_PINGROUP_GMI_A18,
166         TEGRA_PINGROUP_GMI_A19,
167         TEGRA_PINGROUP_GMI_WR_N,
168         TEGRA_PINGROUP_GMI_OE_N,
169         TEGRA_PINGROUP_GMI_DQS,
170         TEGRA_PINGROUP_GMI_RST_N,
171         TEGRA_PINGROUP_GEN2_I2C_SCL,
172         TEGRA_PINGROUP_GEN2_I2C_SDA,
173         TEGRA_PINGROUP_SDMMC4_CLK,
174         TEGRA_PINGROUP_SDMMC4_CMD,
175         TEGRA_PINGROUP_SDMMC4_DAT0,
176         TEGRA_PINGROUP_SDMMC4_DAT1,
177         TEGRA_PINGROUP_SDMMC4_DAT2,
178         TEGRA_PINGROUP_SDMMC4_DAT3,
179         TEGRA_PINGROUP_SDMMC4_DAT4,
180         TEGRA_PINGROUP_SDMMC4_DAT5,
181         TEGRA_PINGROUP_SDMMC4_DAT6,
182         TEGRA_PINGROUP_SDMMC4_DAT7,
183         TEGRA_PINGROUP_SDMMC4_RST_N,
184         TEGRA_PINGROUP_CAM_MCLK,
185         TEGRA_PINGROUP_GPIO_PCC1,
186         TEGRA_PINGROUP_GPIO_PBB0,
187         TEGRA_PINGROUP_CAM_I2C_SCL,
188         TEGRA_PINGROUP_CAM_I2C_SDA,
189         TEGRA_PINGROUP_GPIO_PBB3,
190         TEGRA_PINGROUP_GPIO_PBB4,
191         TEGRA_PINGROUP_GPIO_PBB5,
192         TEGRA_PINGROUP_GPIO_PBB6,
193         TEGRA_PINGROUP_GPIO_PBB7,
194         TEGRA_PINGROUP_GPIO_PCC2,
195         TEGRA_PINGROUP_JTAG_RTCK,
196         TEGRA_PINGROUP_PWR_I2C_SCL,
197         TEGRA_PINGROUP_PWR_I2C_SDA,
198         TEGRA_PINGROUP_KB_ROW0,
199         TEGRA_PINGROUP_KB_ROW1,
200         TEGRA_PINGROUP_KB_ROW2,
201         TEGRA_PINGROUP_KB_ROW3,
202         TEGRA_PINGROUP_KB_ROW4,
203         TEGRA_PINGROUP_KB_ROW5,
204         TEGRA_PINGROUP_KB_ROW6,
205         TEGRA_PINGROUP_KB_ROW7,
206         TEGRA_PINGROUP_KB_ROW8,
207         TEGRA_PINGROUP_KB_ROW9,
208         TEGRA_PINGROUP_KB_ROW10,
209         TEGRA_PINGROUP_KB_ROW11,
210         TEGRA_PINGROUP_KB_ROW12,
211         TEGRA_PINGROUP_KB_ROW13,
212         TEGRA_PINGROUP_KB_ROW14,
213         TEGRA_PINGROUP_KB_ROW15,
214         TEGRA_PINGROUP_KB_COL0,
215         TEGRA_PINGROUP_KB_COL1,
216         TEGRA_PINGROUP_KB_COL2,
217         TEGRA_PINGROUP_KB_COL3,
218         TEGRA_PINGROUP_KB_COL4,
219         TEGRA_PINGROUP_KB_COL5,
220         TEGRA_PINGROUP_KB_COL6,
221         TEGRA_PINGROUP_KB_COL7,
222         TEGRA_PINGROUP_CLK_32K_OUT,
223         TEGRA_PINGROUP_SYS_CLK_REQ,
224         TEGRA_PINGROUP_CORE_PWR_REQ,
225         TEGRA_PINGROUP_CPU_PWR_REQ,
226         TEGRA_PINGROUP_PWR_INT_N,
227         TEGRA_PINGROUP_CLK_32K_IN,
228         TEGRA_PINGROUP_OWR,
229         TEGRA_PINGROUP_DAP1_FS,
230         TEGRA_PINGROUP_DAP1_DIN,
231         TEGRA_PINGROUP_DAP1_DOUT,
232         TEGRA_PINGROUP_DAP1_SCLK,
233         TEGRA_PINGROUP_CLK1_REQ,
234         TEGRA_PINGROUP_CLK1_OUT,
235         TEGRA_PINGROUP_SPDIF_IN,
236         TEGRA_PINGROUP_SPDIF_OUT,
237         TEGRA_PINGROUP_DAP2_FS,
238         TEGRA_PINGROUP_DAP2_DIN,
239         TEGRA_PINGROUP_DAP2_DOUT,
240         TEGRA_PINGROUP_DAP2_SCLK,
241         TEGRA_PINGROUP_SPI2_MOSI,
242         TEGRA_PINGROUP_SPI2_MISO,
243         TEGRA_PINGROUP_SPI2_CS0_N,
244         TEGRA_PINGROUP_SPI2_SCK,
245         TEGRA_PINGROUP_SPI1_MOSI,
246         TEGRA_PINGROUP_SPI1_SCK,
247         TEGRA_PINGROUP_SPI1_CS0_N,
248         TEGRA_PINGROUP_SPI1_MISO,
249         TEGRA_PINGROUP_SPI2_CS1_N,
250         TEGRA_PINGROUP_SPI2_CS2_N,
251         TEGRA_PINGROUP_SDMMC3_CLK,
252         TEGRA_PINGROUP_SDMMC3_CMD,
253         TEGRA_PINGROUP_SDMMC3_DAT0,
254         TEGRA_PINGROUP_SDMMC3_DAT1,
255         TEGRA_PINGROUP_SDMMC3_DAT2,
256         TEGRA_PINGROUP_SDMMC3_DAT3,
257         TEGRA_PINGROUP_SDMMC3_DAT4,
258         TEGRA_PINGROUP_SDMMC3_DAT5,
259         TEGRA_PINGROUP_SDMMC3_DAT6,
260         TEGRA_PINGROUP_SDMMC3_DAT7,
261         TEGRA_PINGROUP_PEX_L0_PRSNT_N,
262         TEGRA_PINGROUP_PEX_L0_RST_N,
263         TEGRA_PINGROUP_PEX_L0_CLKREQ_N,
264         TEGRA_PINGROUP_PEX_WAKE_N,
265         TEGRA_PINGROUP_PEX_L1_PRSNT_N,
266         TEGRA_PINGROUP_PEX_L1_RST_N,
267         TEGRA_PINGROUP_PEX_L1_CLKREQ_N,
268         TEGRA_PINGROUP_PEX_L2_PRSNT_N,
269         TEGRA_PINGROUP_PEX_L2_RST_N,
270         TEGRA_PINGROUP_PEX_L2_CLKREQ_N,
271         TEGRA_PINGROUP_HDMI_CEC,
272         TEGRA_MAX_PINGROUP,
273 };
274
275 #endif
276 enum tegra_drive_pingroup {
277         TEGRA_DRIVE_PINGROUP_AO1 = 0,
278         TEGRA_DRIVE_PINGROUP_AO2,
279         TEGRA_DRIVE_PINGROUP_AT1,
280         TEGRA_DRIVE_PINGROUP_AT2,
281         TEGRA_DRIVE_PINGROUP_AT3,
282         TEGRA_DRIVE_PINGROUP_AT4,
283         TEGRA_DRIVE_PINGROUP_AT5,
284         TEGRA_DRIVE_PINGROUP_CDEV1,
285         TEGRA_DRIVE_PINGROUP_CDEV2,
286         TEGRA_DRIVE_PINGROUP_CSUS,
287         TEGRA_DRIVE_PINGROUP_DAP1,
288         TEGRA_DRIVE_PINGROUP_DAP2,
289         TEGRA_DRIVE_PINGROUP_DAP3,
290         TEGRA_DRIVE_PINGROUP_DAP4,
291         TEGRA_DRIVE_PINGROUP_DBG,
292         TEGRA_DRIVE_PINGROUP_LCD1,
293         TEGRA_DRIVE_PINGROUP_LCD2,
294         TEGRA_DRIVE_PINGROUP_SDIO2,
295         TEGRA_DRIVE_PINGROUP_SDIO3,
296         TEGRA_DRIVE_PINGROUP_SPI,
297         TEGRA_DRIVE_PINGROUP_UAA,
298         TEGRA_DRIVE_PINGROUP_UAB,
299         TEGRA_DRIVE_PINGROUP_UART2,
300         TEGRA_DRIVE_PINGROUP_UART3,
301         TEGRA_DRIVE_PINGROUP_VI1,
302         TEGRA_DRIVE_PINGROUP_SDIO1,
303         TEGRA_DRIVE_PINGROUP_CRT,
304         TEGRA_DRIVE_PINGROUP_DDC,
305         TEGRA_DRIVE_PINGROUP_GMA,
306         TEGRA_DRIVE_PINGROUP_GMB,
307         TEGRA_DRIVE_PINGROUP_GMC,
308         TEGRA_DRIVE_PINGROUP_GMD,
309         TEGRA_DRIVE_PINGROUP_GME,
310         TEGRA_DRIVE_PINGROUP_GMF,
311         TEGRA_DRIVE_PINGROUP_GMG,
312         TEGRA_DRIVE_PINGROUP_GMH,
313         TEGRA_DRIVE_PINGROUP_OWR,
314         TEGRA_DRIVE_PINGROUP_UAD,
315         TEGRA_DRIVE_PINGROUP_GPV,
316         TEGRA_DRIVE_PINGROUP_DEV3,
317         TEGRA_DRIVE_PINGROUP_CEC,
318         TEGRA_MAX_DRIVE_PINGROUP,
319 };
320