diff options
author | Peter De Schrijver <pdeschrijver@nvidia.com> | 2011-12-14 10:03:24 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2011-12-17 23:15:33 -0500 |
commit | 241682c8e0df98e710776ea09a7748938ca2578f (patch) | |
tree | 9d84534502bf0a4ccb7089a8735dcc733f43eb80 | |
parent | 31e37a183e79e4ba6b6640d65279fa1e8394d24a (diff) |
arm/tegra: pinmux tables and definitions for tegra30
Define the pinmuxing and pindrive tables for tegra30. The pinmux table defines
the available functions for each pinmux group. The pindrive table defines the
default pullup or pulldowns for each group.
Derived from code by Scott Williams (scwilliams@nvidia.com)
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Colin Cross <ccross@android.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/mach-tegra/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/pinmux-tegra30.h | 320 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/pinmux.h | 53 | ||||
-rw-r--r-- | arch/arm/mach-tegra/pinmux-tegra30-tables.c | 376 | ||||
-rw-r--r-- | arch/arm/mach-tegra/pinmux.c | 48 |
5 files changed, 798 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile index 48e0c2b87b2b..ced566e5cc14 100644 --- a/arch/arm/mach-tegra/Makefile +++ b/arch/arm/mach-tegra/Makefile | |||
@@ -10,6 +10,7 @@ obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += powergate.o | |||
10 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_clocks.o | 10 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_clocks.o |
11 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o | 11 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o |
12 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += pinmux-tegra20-tables.o | 12 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += pinmux-tegra20-tables.o |
13 | obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += pinmux-tegra30-tables.o | ||
13 | obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o | 14 | obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o |
14 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 15 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
15 | obj-$(CONFIG_TEGRA_SYSTEM_DMA) += dma.o | 16 | obj-$(CONFIG_TEGRA_SYSTEM_DMA) += dma.o |
diff --git a/arch/arm/mach-tegra/include/mach/pinmux-tegra30.h b/arch/arm/mach-tegra/include/mach/pinmux-tegra30.h new file mode 100644 index 000000000000..c1aee3eb2df1 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/pinmux-tegra30.h | |||
@@ -0,0 +1,320 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-tegra/include/mach/pinmux-tegra30.h | ||
3 | * | ||
4 | * Copyright (C) 2010 Google, Inc. | ||
5 | * Copyright (C) 2010,2011 Nvidia, Inc. | ||
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_TEGRA30_H | ||
19 | #define __MACH_TEGRA_PINMUX_TEGRA30_H | ||
20 | |||
21 | enum tegra_pingroup { | ||
22 | TEGRA_PINGROUP_ULPI_DATA0 = 0, | ||
23 | TEGRA_PINGROUP_ULPI_DATA1, | ||
24 | TEGRA_PINGROUP_ULPI_DATA2, | ||
25 | TEGRA_PINGROUP_ULPI_DATA3, | ||
26 | TEGRA_PINGROUP_ULPI_DATA4, | ||
27 | TEGRA_PINGROUP_ULPI_DATA5, | ||
28 | TEGRA_PINGROUP_ULPI_DATA6, | ||
29 | TEGRA_PINGROUP_ULPI_DATA7, | ||
30 | TEGRA_PINGROUP_ULPI_CLK, | ||
31 | TEGRA_PINGROUP_ULPI_DIR, | ||
32 | TEGRA_PINGROUP_ULPI_NXT, | ||
33 | TEGRA_PINGROUP_ULPI_STP, | ||
34 | TEGRA_PINGROUP_DAP3_FS, | ||
35 | TEGRA_PINGROUP_DAP3_DIN, | ||
36 | TEGRA_PINGROUP_DAP3_DOUT, | ||
37 | TEGRA_PINGROUP_DAP3_SCLK, | ||
38 | TEGRA_PINGROUP_GPIO_PV0, | ||
39 | TEGRA_PINGROUP_GPIO_PV1, | ||
40 | TEGRA_PINGROUP_SDMMC1_CLK, | ||
41 | TEGRA_PINGROUP_SDMMC1_CMD, | ||
42 | TEGRA_PINGROUP_SDMMC1_DAT3, | ||
43 | TEGRA_PINGROUP_SDMMC1_DAT2, | ||
44 | TEGRA_PINGROUP_SDMMC1_DAT1, | ||
45 | TEGRA_PINGROUP_SDMMC1_DAT0, | ||
46 | TEGRA_PINGROUP_GPIO_PV2, | ||
47 | TEGRA_PINGROUP_GPIO_PV3, | ||
48 | TEGRA_PINGROUP_CLK2_OUT, | ||
49 | TEGRA_PINGROUP_CLK2_REQ, | ||
50 | TEGRA_PINGROUP_LCD_PWR1, | ||
51 | TEGRA_PINGROUP_LCD_PWR2, | ||
52 | TEGRA_PINGROUP_LCD_SDIN, | ||
53 | TEGRA_PINGROUP_LCD_SDOUT, | ||
54 | TEGRA_PINGROUP_LCD_WR_N, | ||
55 | TEGRA_PINGROUP_LCD_CS0_N, | ||
56 | TEGRA_PINGROUP_LCD_DC0, | ||
57 | TEGRA_PINGROUP_LCD_SCK, | ||
58 | TEGRA_PINGROUP_LCD_PWR0, | ||
59 | TEGRA_PINGROUP_LCD_PCLK, | ||
60 | TEGRA_PINGROUP_LCD_DE, | ||
61 | TEGRA_PINGROUP_LCD_HSYNC, | ||
62 | TEGRA_PINGROUP_LCD_VSYNC, | ||
63 | TEGRA_PINGROUP_LCD_D0, | ||
64 | TEGRA_PINGROUP_LCD_D1, | ||
65 | TEGRA_PINGROUP_LCD_D2, | ||
66 | TEGRA_PINGROUP_LCD_D3, | ||
67 | TEGRA_PINGROUP_LCD_D4, | ||
68 | TEGRA_PINGROUP_LCD_D5, | ||
69 | TEGRA_PINGROUP_LCD_D6, | ||
70 | TEGRA_PINGROUP_LCD_D7, | ||
71 | TEGRA_PINGROUP_LCD_D8, | ||
72 | TEGRA_PINGROUP_LCD_D9, | ||
73 | TEGRA_PINGROUP_LCD_D10, | ||
74 | TEGRA_PINGROUP_LCD_D11, | ||
75 | TEGRA_PINGROUP_LCD_D12, | ||
76 | TEGRA_PINGROUP_LCD_D13, | ||
77 | TEGRA_PINGROUP_LCD_D14, | ||
78 | TEGRA_PINGROUP_LCD_D15, | ||
79 | TEGRA_PINGROUP_LCD_D16, | ||
80 | TEGRA_PINGROUP_LCD_D17, | ||
81 | TEGRA_PINGROUP_LCD_D18, | ||
82 | TEGRA_PINGROUP_LCD_D19, | ||
83 | TEGRA_PINGROUP_LCD_D20, | ||
84 | TEGRA_PINGROUP_LCD_D21, | ||
85 | TEGRA_PINGROUP_LCD_D22, | ||
86 | TEGRA_PINGROUP_LCD_D23, | ||
87 | TEGRA_PINGROUP_LCD_CS1_N, | ||
88 | TEGRA_PINGROUP_LCD_M1, | ||
89 | TEGRA_PINGROUP_LCD_DC1, | ||
90 | TEGRA_PINGROUP_HDMI_INT, | ||
91 | TEGRA_PINGROUP_DDC_SCL, | ||
92 | TEGRA_PINGROUP_DDC_SDA, | ||
93 | TEGRA_PINGROUP_CRT_HSYNC, | ||
94 | TEGRA_PINGROUP_CRT_VSYNC, | ||
95 | TEGRA_PINGROUP_VI_D0, | ||
96 | TEGRA_PINGROUP_VI_D1, | ||
97 | TEGRA_PINGROUP_VI_D2, | ||
98 | TEGRA_PINGROUP_VI_D3, | ||
99 | TEGRA_PINGROUP_VI_D4, | ||
100 | TEGRA_PINGROUP_VI_D5, | ||
101 | TEGRA_PINGROUP_VI_D6, | ||
102 | TEGRA_PINGROUP_VI_D7, | ||
103 | TEGRA_PINGROUP_VI_D8, | ||
104 | TEGRA_PINGROUP_VI_D9, | ||
105 | TEGRA_PINGROUP_VI_D10, | ||
106 | TEGRA_PINGROUP_VI_D11, | ||
107 | TEGRA_PINGROUP_VI_PCLK, | ||
108 | TEGRA_PINGROUP_VI_MCLK, | ||
109 | TEGRA_PINGROUP_VI_VSYNC, | ||
110 | TEGRA_PINGROUP_VI_HSYNC, | ||
111 | TEGRA_PINGROUP_UART2_RXD, | ||
112 | TEGRA_PINGROUP_UART2_TXD, | ||
113 | TEGRA_PINGROUP_UART2_RTS_N, | ||
114 | TEGRA_PINGROUP_UART2_CTS_N, | ||
115 | TEGRA_PINGROUP_UART3_TXD, | ||
116 | TEGRA_PINGROUP_UART3_RXD, | ||
117 | TEGRA_PINGROUP_UART3_CTS_N, | ||
118 | TEGRA_PINGROUP_UART3_RTS_N, | ||
119 | TEGRA_PINGROUP_GPIO_PU0, | ||
120 | TEGRA_PINGROUP_GPIO_PU1, | ||
121 | TEGRA_PINGROUP_GPIO_PU2, | ||
122 | TEGRA_PINGROUP_GPIO_PU3, | ||
123 | TEGRA_PINGROUP_GPIO_PU4, | ||
124 | TEGRA_PINGROUP_GPIO_PU5, | ||
125 | TEGRA_PINGROUP_GPIO_PU6, | ||
126 | TEGRA_PINGROUP_GEN1_I2C_SDA, | ||
127 | TEGRA_PINGROUP_GEN1_I2C_SCL, | ||
128 | TEGRA_PINGROUP_DAP4_FS, | ||
129 | TEGRA_PINGROUP_DAP4_DIN, | ||
130 | TEGRA_PINGROUP_DAP4_DOUT, | ||
131 | TEGRA_PINGROUP_DAP4_SCLK, | ||
132 | TEGRA_PINGROUP_CLK3_OUT, | ||
133 | TEGRA_PINGROUP_CLK3_REQ, | ||
134 | TEGRA_PINGROUP_GMI_WP_N, | ||
135 | TEGRA_PINGROUP_GMI_IORDY, | ||
136 | TEGRA_PINGROUP_GMI_WAIT, | ||
137 | TEGRA_PINGROUP_GMI_ADV_N, | ||
138 | TEGRA_PINGROUP_GMI_CLK, | ||
139 | TEGRA_PINGROUP_GMI_CS0_N, | ||
140 | TEGRA_PINGROUP_GMI_CS1_N, | ||
141 | TEGRA_PINGROUP_GMI_CS2_N, | ||
142 | TEGRA_PINGROUP_GMI_CS3_N, | ||
143 | TEGRA_PINGROUP_GMI_CS4_N, | ||
144 | TEGRA_PINGROUP_GMI_CS6_N, | ||
145 | TEGRA_PINGROUP_GMI_CS7_N, | ||
146 | TEGRA_PINGROUP_GMI_AD0, | ||
147 | TEGRA_PINGROUP_GMI_AD1, | ||
148 | TEGRA_PINGROUP_GMI_AD2, | ||
149 | TEGRA_PINGROUP_GMI_AD3, | ||
150 | TEGRA_PINGROUP_GMI_AD4, | ||
151 | TEGRA_PINGROUP_GMI_AD5, | ||
152 | TEGRA_PINGROUP_GMI_AD6, | ||
153 | TEGRA_PINGROUP_GMI_AD7, | ||
154 | TEGRA_PINGROUP_GMI_AD8, | ||
155 | TEGRA_PINGROUP_GMI_AD9, | ||
156 | TEGRA_PINGROUP_GMI_AD10, | ||
157 | TEGRA_PINGROUP_GMI_AD11, | ||
158 | TEGRA_PINGROUP_GMI_AD12, | ||
159 | TEGRA_PINGROUP_GMI_AD13, | ||
160 | TEGRA_PINGROUP_GMI_AD14, | ||
161 | TEGRA_PINGROUP_GMI_AD15, | ||
162 | TEGRA_PINGROUP_GMI_A16, | ||
163 | TEGRA_PINGROUP_GMI_A17, | ||
164 | TEGRA_PINGROUP_GMI_A18, | ||
165 | TEGRA_PINGROUP_GMI_A19, | ||
166 | TEGRA_PINGROUP_GMI_WR_N, | ||
167 | TEGRA_PINGROUP_GMI_OE_N, | ||
168 | TEGRA_PINGROUP_GMI_DQS, | ||
169 | TEGRA_PINGROUP_GMI_RST_N, | ||
170 | TEGRA_PINGROUP_GEN2_I2C_SCL, | ||
171 | TEGRA_PINGROUP_GEN2_I2C_SDA, | ||
172 | TEGRA_PINGROUP_SDMMC4_CLK, | ||
173 | TEGRA_PINGROUP_SDMMC4_CMD, | ||
174 | TEGRA_PINGROUP_SDMMC4_DAT0, | ||
175 | TEGRA_PINGROUP_SDMMC4_DAT1, | ||
176 | TEGRA_PINGROUP_SDMMC4_DAT2, | ||
177 | TEGRA_PINGROUP_SDMMC4_DAT3, | ||
178 | TEGRA_PINGROUP_SDMMC4_DAT4, | ||
179 | TEGRA_PINGROUP_SDMMC4_DAT5, | ||
180 | TEGRA_PINGROUP_SDMMC4_DAT6, | ||
181 | TEGRA_PINGROUP_SDMMC4_DAT7, | ||
182 | TEGRA_PINGROUP_SDMMC4_RST_N, | ||
183 | TEGRA_PINGROUP_CAM_MCLK, | ||
184 | TEGRA_PINGROUP_GPIO_PCC1, | ||
185 | TEGRA_PINGROUP_GPIO_PBB0, | ||
186 | TEGRA_PINGROUP_CAM_I2C_SCL, | ||
187 | TEGRA_PINGROUP_CAM_I2C_SDA, | ||
188 | TEGRA_PINGROUP_GPIO_PBB3, | ||
189 | TEGRA_PINGROUP_GPIO_PBB4, | ||
190 | TEGRA_PINGROUP_GPIO_PBB5, | ||
191 | TEGRA_PINGROUP_GPIO_PBB6, | ||
192 | TEGRA_PINGROUP_GPIO_PBB7, | ||
193 | TEGRA_PINGROUP_GPIO_PCC2, | ||
194 | TEGRA_PINGROUP_JTAG_RTCK, | ||
195 | TEGRA_PINGROUP_PWR_I2C_SCL, | ||
196 | TEGRA_PINGROUP_PWR_I2C_SDA, | ||
197 | TEGRA_PINGROUP_KB_ROW0, | ||
198 | TEGRA_PINGROUP_KB_ROW1, | ||
199 | TEGRA_PINGROUP_KB_ROW2, | ||
200 | TEGRA_PINGROUP_KB_ROW3, | ||
201 | TEGRA_PINGROUP_KB_ROW4, | ||
202 | TEGRA_PINGROUP_KB_ROW5, | ||
203 | TEGRA_PINGROUP_KB_ROW6, | ||
204 | TEGRA_PINGROUP_KB_ROW7, | ||
205 | TEGRA_PINGROUP_KB_ROW8, | ||
206 | TEGRA_PINGROUP_KB_ROW9, | ||
207 | TEGRA_PINGROUP_KB_ROW10, | ||
208 | TEGRA_PINGROUP_KB_ROW11, | ||
209 | TEGRA_PINGROUP_KB_ROW12, | ||
210 | TEGRA_PINGROUP_KB_ROW13, | ||
211 | TEGRA_PINGROUP_KB_ROW14, | ||
212 | TEGRA_PINGROUP_KB_ROW15, | ||
213 | TEGRA_PINGROUP_KB_COL0, | ||
214 | TEGRA_PINGROUP_KB_COL1, | ||
215 | TEGRA_PINGROUP_KB_COL2, | ||
216 | TEGRA_PINGROUP_KB_COL3, | ||
217 | TEGRA_PINGROUP_KB_COL4, | ||
218 | TEGRA_PINGROUP_KB_COL5, | ||
219 | TEGRA_PINGROUP_KB_COL6, | ||
220 | TEGRA_PINGROUP_KB_COL7, | ||
221 | TEGRA_PINGROUP_CLK_32K_OUT, | ||
222 | TEGRA_PINGROUP_SYS_CLK_REQ, | ||
223 | TEGRA_PINGROUP_CORE_PWR_REQ, | ||
224 | TEGRA_PINGROUP_CPU_PWR_REQ, | ||
225 | TEGRA_PINGROUP_PWR_INT_N, | ||
226 | TEGRA_PINGROUP_CLK_32K_IN, | ||
227 | TEGRA_PINGROUP_OWR, | ||
228 | TEGRA_PINGROUP_DAP1_FS, | ||
229 | TEGRA_PINGROUP_DAP1_DIN, | ||
230 | TEGRA_PINGROUP_DAP1_DOUT, | ||
231 | TEGRA_PINGROUP_DAP1_SCLK, | ||
232 | TEGRA_PINGROUP_CLK1_REQ, | ||
233 | TEGRA_PINGROUP_CLK1_OUT, | ||
234 | TEGRA_PINGROUP_SPDIF_IN, | ||
235 | TEGRA_PINGROUP_SPDIF_OUT, | ||
236 | TEGRA_PINGROUP_DAP2_FS, | ||
237 | TEGRA_PINGROUP_DAP2_DIN, | ||
238 | TEGRA_PINGROUP_DAP2_DOUT, | ||
239 | TEGRA_PINGROUP_DAP2_SCLK, | ||
240 | TEGRA_PINGROUP_SPI2_MOSI, | ||
241 | TEGRA_PINGROUP_SPI2_MISO, | ||
242 | TEGRA_PINGROUP_SPI2_CS0_N, | ||
243 | TEGRA_PINGROUP_SPI2_SCK, | ||
244 | TEGRA_PINGROUP_SPI1_MOSI, | ||
245 | TEGRA_PINGROUP_SPI1_SCK, | ||
246 | TEGRA_PINGROUP_SPI1_CS0_N, | ||
247 | TEGRA_PINGROUP_SPI1_MISO, | ||
248 | TEGRA_PINGROUP_SPI2_CS1_N, | ||
249 | TEGRA_PINGROUP_SPI2_CS2_N, | ||
250 | TEGRA_PINGROUP_SDMMC3_CLK, | ||
251 | TEGRA_PINGROUP_SDMMC3_CMD, | ||
252 | TEGRA_PINGROUP_SDMMC3_DAT0, | ||
253 | TEGRA_PINGROUP_SDMMC3_DAT1, | ||
254 | TEGRA_PINGROUP_SDMMC3_DAT2, | ||
255 | TEGRA_PINGROUP_SDMMC3_DAT3, | ||
256 | TEGRA_PINGROUP_SDMMC3_DAT4, | ||
257 | TEGRA_PINGROUP_SDMMC3_DAT5, | ||
258 | TEGRA_PINGROUP_SDMMC3_DAT6, | ||
259 | TEGRA_PINGROUP_SDMMC3_DAT7, | ||
260 | TEGRA_PINGROUP_PEX_L0_PRSNT_N, | ||
261 | TEGRA_PINGROUP_PEX_L0_RST_N, | ||
262 | TEGRA_PINGROUP_PEX_L0_CLKREQ_N, | ||
263 | TEGRA_PINGROUP_PEX_WAKE_N, | ||
264 | TEGRA_PINGROUP_PEX_L1_PRSNT_N, | ||
265 | TEGRA_PINGROUP_PEX_L1_RST_N, | ||
266 | TEGRA_PINGROUP_PEX_L1_CLKREQ_N, | ||
267 | TEGRA_PINGROUP_PEX_L2_PRSNT_N, | ||
268 | TEGRA_PINGROUP_PEX_L2_RST_N, | ||
269 | TEGRA_PINGROUP_PEX_L2_CLKREQ_N, | ||
270 | TEGRA_PINGROUP_HDMI_CEC, | ||
271 | TEGRA_MAX_PINGROUP, | ||
272 | }; | ||
273 | |||
274 | enum tegra_drive_pingroup { | ||
275 | TEGRA_DRIVE_PINGROUP_AO1 = 0, | ||
276 | TEGRA_DRIVE_PINGROUP_AO2, | ||
277 | TEGRA_DRIVE_PINGROUP_AT1, | ||
278 | TEGRA_DRIVE_PINGROUP_AT2, | ||
279 | TEGRA_DRIVE_PINGROUP_AT3, | ||
280 | TEGRA_DRIVE_PINGROUP_AT4, | ||
281 | TEGRA_DRIVE_PINGROUP_AT5, | ||
282 | TEGRA_DRIVE_PINGROUP_CDEV1, | ||
283 | TEGRA_DRIVE_PINGROUP_CDEV2, | ||
284 | TEGRA_DRIVE_PINGROUP_CSUS, | ||
285 | TEGRA_DRIVE_PINGROUP_DAP1, | ||
286 | TEGRA_DRIVE_PINGROUP_DAP2, | ||
287 | TEGRA_DRIVE_PINGROUP_DAP3, | ||
288 | TEGRA_DRIVE_PINGROUP_DAP4, | ||
289 | TEGRA_DRIVE_PINGROUP_DBG, | ||
290 | TEGRA_DRIVE_PINGROUP_LCD1, | ||
291 | TEGRA_DRIVE_PINGROUP_LCD2, | ||
292 | TEGRA_DRIVE_PINGROUP_SDIO2, | ||
293 | TEGRA_DRIVE_PINGROUP_SDIO3, | ||
294 | TEGRA_DRIVE_PINGROUP_SPI, | ||
295 | TEGRA_DRIVE_PINGROUP_UAA, | ||
296 | TEGRA_DRIVE_PINGROUP_UAB, | ||
297 | TEGRA_DRIVE_PINGROUP_UART2, | ||
298 | TEGRA_DRIVE_PINGROUP_UART3, | ||
299 | TEGRA_DRIVE_PINGROUP_VI1, | ||
300 | TEGRA_DRIVE_PINGROUP_SDIO1, | ||
301 | TEGRA_DRIVE_PINGROUP_CRT, | ||
302 | TEGRA_DRIVE_PINGROUP_DDC, | ||
303 | TEGRA_DRIVE_PINGROUP_GMA, | ||
304 | TEGRA_DRIVE_PINGROUP_GMB, | ||
305 | TEGRA_DRIVE_PINGROUP_GMC, | ||
306 | TEGRA_DRIVE_PINGROUP_GMD, | ||
307 | TEGRA_DRIVE_PINGROUP_GME, | ||
308 | TEGRA_DRIVE_PINGROUP_GMF, | ||
309 | TEGRA_DRIVE_PINGROUP_GMG, | ||
310 | TEGRA_DRIVE_PINGROUP_GMH, | ||
311 | TEGRA_DRIVE_PINGROUP_OWR, | ||
312 | TEGRA_DRIVE_PINGROUP_UAD, | ||
313 | TEGRA_DRIVE_PINGROUP_GPV, | ||
314 | TEGRA_DRIVE_PINGROUP_DEV3, | ||
315 | TEGRA_DRIVE_PINGROUP_CEC, | ||
316 | TEGRA_MAX_DRIVE_PINGROUP, | ||
317 | }; | ||
318 | |||
319 | #endif | ||
320 | |||
diff --git a/arch/arm/mach-tegra/include/mach/pinmux.h b/arch/arm/mach-tegra/include/mach/pinmux.h index 988c6c5ec9ec..055f1792c8ff 100644 --- a/arch/arm/mach-tegra/include/mach/pinmux.h +++ b/arch/arm/mach-tegra/include/mach/pinmux.h | |||
@@ -24,6 +24,7 @@ enum tegra_mux_func { | |||
24 | TEGRA_MUX_RSVD2 = 0x8001, | 24 | TEGRA_MUX_RSVD2 = 0x8001, |
25 | TEGRA_MUX_RSVD3 = 0x8002, | 25 | TEGRA_MUX_RSVD3 = 0x8002, |
26 | TEGRA_MUX_RSVD4 = 0x8003, | 26 | TEGRA_MUX_RSVD4 = 0x8003, |
27 | TEGRA_MUX_INVALID = 0x4000, | ||
27 | TEGRA_MUX_NONE = -1, | 28 | TEGRA_MUX_NONE = -1, |
28 | TEGRA_MUX_AHB_CLK, | 29 | TEGRA_MUX_AHB_CLK, |
29 | TEGRA_MUX_APB_CLK, | 30 | TEGRA_MUX_APB_CLK, |
@@ -85,6 +86,49 @@ enum tegra_mux_func { | |||
85 | TEGRA_MUX_VI, | 86 | TEGRA_MUX_VI, |
86 | TEGRA_MUX_VI_SENSOR_CLK, | 87 | TEGRA_MUX_VI_SENSOR_CLK, |
87 | TEGRA_MUX_XIO, | 88 | TEGRA_MUX_XIO, |
89 | TEGRA_MUX_BLINK, | ||
90 | TEGRA_MUX_CEC, | ||
91 | TEGRA_MUX_CLK12, | ||
92 | TEGRA_MUX_DAP, | ||
93 | TEGRA_MUX_DAPSDMMC2, | ||
94 | TEGRA_MUX_DDR, | ||
95 | TEGRA_MUX_DEV3, | ||
96 | TEGRA_MUX_DTV, | ||
97 | TEGRA_MUX_VI_ALT1, | ||
98 | TEGRA_MUX_VI_ALT2, | ||
99 | TEGRA_MUX_VI_ALT3, | ||
100 | TEGRA_MUX_EMC_DLL, | ||
101 | TEGRA_MUX_EXTPERIPH1, | ||
102 | TEGRA_MUX_EXTPERIPH2, | ||
103 | TEGRA_MUX_EXTPERIPH3, | ||
104 | TEGRA_MUX_GMI_ALT, | ||
105 | TEGRA_MUX_HDA, | ||
106 | TEGRA_MUX_HSI, | ||
107 | TEGRA_MUX_I2C4, | ||
108 | TEGRA_MUX_I2C5, | ||
109 | TEGRA_MUX_I2CPWR, | ||
110 | TEGRA_MUX_I2S0, | ||
111 | TEGRA_MUX_I2S1, | ||
112 | TEGRA_MUX_I2S2, | ||
113 | TEGRA_MUX_I2S3, | ||
114 | TEGRA_MUX_I2S4, | ||
115 | TEGRA_MUX_NAND_ALT, | ||
116 | TEGRA_MUX_POPSDIO4, | ||
117 | TEGRA_MUX_POPSDMMC4, | ||
118 | TEGRA_MUX_PWM0, | ||
119 | TEGRA_MUX_PWM1, | ||
120 | TEGRA_MUX_PWM2, | ||
121 | TEGRA_MUX_PWM3, | ||
122 | TEGRA_MUX_SATA, | ||
123 | TEGRA_MUX_SPI5, | ||
124 | TEGRA_MUX_SPI6, | ||
125 | TEGRA_MUX_SYSCLK, | ||
126 | TEGRA_MUX_VGP1, | ||
127 | TEGRA_MUX_VGP2, | ||
128 | TEGRA_MUX_VGP3, | ||
129 | TEGRA_MUX_VGP4, | ||
130 | TEGRA_MUX_VGP5, | ||
131 | TEGRA_MUX_VGP6, | ||
88 | TEGRA_MUX_SAFE, | 132 | TEGRA_MUX_SAFE, |
89 | TEGRA_MAX_MUX, | 133 | TEGRA_MAX_MUX, |
90 | }; | 134 | }; |
@@ -115,6 +159,12 @@ enum tegra_vddio { | |||
115 | TEGRA_VDDIO_SYS, | 159 | TEGRA_VDDIO_SYS, |
116 | TEGRA_VDDIO_AUDIO, | 160 | TEGRA_VDDIO_AUDIO, |
117 | TEGRA_VDDIO_SD, | 161 | TEGRA_VDDIO_SD, |
162 | TEGRA_VDDIO_CAM, | ||
163 | TEGRA_VDDIO_GMI, | ||
164 | TEGRA_VDDIO_PEXCTL, | ||
165 | TEGRA_VDDIO_SDMMC1, | ||
166 | TEGRA_VDDIO_SDMMC3, | ||
167 | TEGRA_VDDIO_SDMMC4, | ||
118 | }; | 168 | }; |
119 | 169 | ||
120 | struct tegra_pingroup_config { | 170 | struct tegra_pingroup_config { |
@@ -230,6 +280,9 @@ typedef void (*pinmux_init) (const struct tegra_pingroup_desc **pg, | |||
230 | void tegra20_pinmux_init(const struct tegra_pingroup_desc **pg, int *pg_max, | 280 | void tegra20_pinmux_init(const struct tegra_pingroup_desc **pg, int *pg_max, |
231 | const struct tegra_drive_pingroup_desc **pgdrive, int *pgdrive_max); | 281 | const struct tegra_drive_pingroup_desc **pgdrive, int *pgdrive_max); |
232 | 282 | ||
283 | void tegra30_pinmux_init(const struct tegra_pingroup_desc **pg, int *pg_max, | ||
284 | const struct tegra_drive_pingroup_desc **pgdrive, int *pgdrive_max); | ||
285 | |||
233 | int tegra_pinmux_set_tristate(int pg, enum tegra_tristate tristate); | 286 | int tegra_pinmux_set_tristate(int pg, enum tegra_tristate tristate); |
234 | int tegra_pinmux_set_pullupdown(int pg, enum tegra_pullupdown pupd); | 287 | int tegra_pinmux_set_pullupdown(int pg, enum tegra_pullupdown pupd); |
235 | 288 | ||
diff --git a/arch/arm/mach-tegra/pinmux-tegra30-tables.c b/arch/arm/mach-tegra/pinmux-tegra30-tables.c new file mode 100644 index 000000000000..8b6db9a9152f --- /dev/null +++ b/arch/arm/mach-tegra/pinmux-tegra30-tables.c | |||
@@ -0,0 +1,376 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-tegra/pinmux-tegra30-tables.c | ||
3 | * | ||
4 | * Common pinmux configurations for Tegra30 SoCs | ||
5 | * | ||
6 | * Copyright (C) 2010,2011 NVIDIA Corporation | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2 of the License. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
13 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
14 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
15 | * more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License along | ||
18 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
20 | */ | ||
21 | |||
22 | #include <linux/kernel.h> | ||
23 | #include <linux/errno.h> | ||
24 | #include <linux/spinlock.h> | ||
25 | #include <linux/io.h> | ||
26 | #include <linux/init.h> | ||
27 | #include <linux/string.h> | ||
28 | |||
29 | #include <mach/iomap.h> | ||
30 | #include <mach/pinmux.h> | ||
31 | #include <mach/pinmux-tegra30.h> | ||
32 | #include <mach/suspend.h> | ||
33 | |||
34 | #define PINGROUP_REG_A 0x868 | ||
35 | #define MUXCTL_REG_A 0x3000 | ||
36 | |||
37 | #define DRIVE_PINGROUP(pg_name, r) \ | ||
38 | [TEGRA_DRIVE_PINGROUP_ ## pg_name] = { \ | ||
39 | .name = #pg_name, \ | ||
40 | .reg_bank = 0, \ | ||
41 | .reg = ((r) - PINGROUP_REG_A) \ | ||
42 | } | ||
43 | |||
44 | static const struct tegra_drive_pingroup_desc tegra_soc_drive_pingroups[TEGRA_MAX_DRIVE_PINGROUP] = { | ||
45 | DRIVE_PINGROUP(AO1, 0x868), | ||
46 | DRIVE_PINGROUP(AO2, 0x86c), | ||
47 | DRIVE_PINGROUP(AT1, 0x870), | ||
48 | DRIVE_PINGROUP(AT2, 0x874), | ||
49 | DRIVE_PINGROUP(AT3, 0x878), | ||
50 | DRIVE_PINGROUP(AT4, 0x87c), | ||
51 | DRIVE_PINGROUP(AT5, 0x880), | ||
52 | DRIVE_PINGROUP(CDEV1, 0x884), | ||
53 | DRIVE_PINGROUP(CDEV2, 0x888), | ||
54 | DRIVE_PINGROUP(CSUS, 0x88c), | ||
55 | DRIVE_PINGROUP(DAP1, 0x890), | ||
56 | DRIVE_PINGROUP(DAP2, 0x894), | ||
57 | DRIVE_PINGROUP(DAP3, 0x898), | ||
58 | DRIVE_PINGROUP(DAP4, 0x89c), | ||
59 | DRIVE_PINGROUP(DBG, 0x8a0), | ||
60 | DRIVE_PINGROUP(LCD1, 0x8a4), | ||
61 | DRIVE_PINGROUP(LCD2, 0x8a8), | ||
62 | DRIVE_PINGROUP(SDIO2, 0x8ac), | ||
63 | DRIVE_PINGROUP(SDIO3, 0x8b0), | ||
64 | DRIVE_PINGROUP(SPI, 0x8b4), | ||
65 | DRIVE_PINGROUP(UAA, 0x8b8), | ||
66 | DRIVE_PINGROUP(UAB, 0x8bc), | ||
67 | DRIVE_PINGROUP(UART2, 0x8c0), | ||
68 | DRIVE_PINGROUP(UART3, 0x8c4), | ||
69 | DRIVE_PINGROUP(VI1, 0x8c8), | ||
70 | DRIVE_PINGROUP(SDIO1, 0x8ec), | ||
71 | DRIVE_PINGROUP(CRT, 0x8f8), | ||
72 | DRIVE_PINGROUP(DDC, 0x8fc), | ||
73 | DRIVE_PINGROUP(GMA, 0x900), | ||
74 | DRIVE_PINGROUP(GMB, 0x904), | ||
75 | DRIVE_PINGROUP(GMC, 0x908), | ||
76 | DRIVE_PINGROUP(GMD, 0x90c), | ||
77 | DRIVE_PINGROUP(GME, 0x910), | ||
78 | DRIVE_PINGROUP(GMF, 0x914), | ||
79 | DRIVE_PINGROUP(GMG, 0x918), | ||
80 | DRIVE_PINGROUP(GMH, 0x91c), | ||
81 | DRIVE_PINGROUP(OWR, 0x920), | ||
82 | DRIVE_PINGROUP(UAD, 0x924), | ||
83 | DRIVE_PINGROUP(GPV, 0x928), | ||
84 | DRIVE_PINGROUP(DEV3, 0x92c), | ||
85 | DRIVE_PINGROUP(CEC, 0x938), | ||
86 | }; | ||
87 | |||
88 | #define PINGROUP(pg_name, vdd, f0, f1, f2, f3, fs, iod, reg) \ | ||
89 | [TEGRA_PINGROUP_ ## pg_name] = { \ | ||
90 | .name = #pg_name, \ | ||
91 | .vddio = TEGRA_VDDIO_ ## vdd, \ | ||
92 | .funcs = { \ | ||
93 | TEGRA_MUX_ ## f0, \ | ||
94 | TEGRA_MUX_ ## f1, \ | ||
95 | TEGRA_MUX_ ## f2, \ | ||
96 | TEGRA_MUX_ ## f3, \ | ||
97 | }, \ | ||
98 | .func_safe = TEGRA_MUX_ ## fs, \ | ||
99 | .tri_bank = 1, \ | ||
100 | .tri_reg = ((reg) - MUXCTL_REG_A), \ | ||
101 | .tri_bit = 4, \ | ||
102 | .mux_bank = 1, \ | ||
103 | .mux_reg = ((reg) - MUXCTL_REG_A), \ | ||
104 | .mux_bit = 0, \ | ||
105 | .pupd_bank = 1, \ | ||
106 | .pupd_reg = ((reg) - MUXCTL_REG_A), \ | ||
107 | .pupd_bit = 2, \ | ||
108 | .io_default = TEGRA_PIN_ ## iod, \ | ||
109 | .od_bit = 6, \ | ||
110 | .lock_bit = 7, \ | ||
111 | .ioreset_bit = 8, \ | ||
112 | } | ||
113 | |||
114 | static const struct tegra_pingroup_desc tegra_soc_pingroups[TEGRA_MAX_PINGROUP] = { | ||
115 | /* NAME VDD f0 f1 f2 f3 fSafe io reg */ | ||
116 | PINGROUP(ULPI_DATA0, BB, SPI3, HSI, UARTA, ULPI, RSVD, INPUT, 0x3000), | ||
117 | PINGROUP(ULPI_DATA1, BB, SPI3, HSI, UARTA, ULPI, RSVD, INPUT, 0x3004), | ||
118 | PINGROUP(ULPI_DATA2, BB, SPI3, HSI, UARTA, ULPI, RSVD, INPUT, 0x3008), | ||
119 | PINGROUP(ULPI_DATA3, BB, SPI3, HSI, UARTA, ULPI, RSVD, INPUT, 0x300c), | ||
120 | PINGROUP(ULPI_DATA4, BB, SPI2, HSI, UARTA, ULPI, RSVD, INPUT, 0x3010), | ||
121 | PINGROUP(ULPI_DATA5, BB, SPI2, HSI, UARTA, ULPI, RSVD, INPUT, 0x3014), | ||
122 | PINGROUP(ULPI_DATA6, BB, SPI2, HSI, UARTA, ULPI, RSVD, INPUT, 0x3018), | ||
123 | PINGROUP(ULPI_DATA7, BB, SPI2, HSI, UARTA, ULPI, RSVD, INPUT, 0x301c), | ||
124 | PINGROUP(ULPI_CLK, BB, SPI1, RSVD, UARTD, ULPI, RSVD, INPUT, 0x3020), | ||
125 | PINGROUP(ULPI_DIR, BB, SPI1, RSVD, UARTD, ULPI, RSVD, INPUT, 0x3024), | ||
126 | PINGROUP(ULPI_NXT, BB, SPI1, RSVD, UARTD, ULPI, RSVD, INPUT, 0x3028), | ||
127 | PINGROUP(ULPI_STP, BB, SPI1, RSVD, UARTD, ULPI, RSVD, INPUT, 0x302c), | ||
128 | PINGROUP(DAP3_FS, BB, I2S2, RSVD1, DISPLAYA, DISPLAYB, RSVD, INPUT, 0x3030), | ||
129 | PINGROUP(DAP3_DIN, BB, I2S2, RSVD1, DISPLAYA, DISPLAYB, RSVD, INPUT, 0x3034), | ||
130 | PINGROUP(DAP3_DOUT, BB, I2S2, RSVD1, DISPLAYA, DISPLAYB, RSVD, INPUT, 0x3038), | ||
131 | PINGROUP(DAP3_SCLK, BB, I2S2, RSVD1, DISPLAYA, DISPLAYB, RSVD, INPUT, 0x303c), | ||
132 | PINGROUP(GPIO_PV0, BB, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3040), | ||
133 | PINGROUP(GPIO_PV1, BB, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3044), | ||
134 | PINGROUP(SDMMC1_CLK, SDMMC1, SDIO1, RSVD1, RSVD2, INVALID, RSVD, INPUT, 0x3048), | ||
135 | PINGROUP(SDMMC1_CMD, SDMMC1, SDIO1, RSVD1, RSVD2, INVALID, RSVD, INPUT, 0x304c), | ||
136 | PINGROUP(SDMMC1_DAT3, SDMMC1, SDIO1, RSVD1, UARTE, INVALID, RSVD, INPUT, 0x3050), | ||
137 | PINGROUP(SDMMC1_DAT2, SDMMC1, SDIO1, RSVD1, UARTE, INVALID, RSVD, INPUT, 0x3054), | ||
138 | PINGROUP(SDMMC1_DAT1, SDMMC1, SDIO1, RSVD1, UARTE, INVALID, RSVD, INPUT, 0x3058), | ||
139 | PINGROUP(SDMMC1_DAT0, SDMMC1, SDIO1, RSVD1, UARTE, INVALID, RSVD, INPUT, 0x305c), | ||
140 | PINGROUP(GPIO_PV2, SDMMC1, OWR, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3060), | ||
141 | PINGROUP(GPIO_PV3, SDMMC1, INVALID, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3064), | ||
142 | PINGROUP(CLK2_OUT, SDMMC1, EXTPERIPH2, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3068), | ||
143 | PINGROUP(CLK2_REQ, SDMMC1, DAP, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x306c), | ||
144 | PINGROUP(LCD_PWR1, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3070), | ||
145 | PINGROUP(LCD_PWR2, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x3074), | ||
146 | PINGROUP(LCD_SDIN, LCD, DISPLAYA, DISPLAYB, SPI5, RSVD, RSVD, OUTPUT, 0x3078), | ||
147 | PINGROUP(LCD_SDOUT, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x307c), | ||
148 | PINGROUP(LCD_WR_N, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x3080), | ||
149 | PINGROUP(LCD_CS0_N, LCD, DISPLAYA, DISPLAYB, SPI5, RSVD, RSVD, OUTPUT, 0x3084), | ||
150 | PINGROUP(LCD_DC0, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3088), | ||
151 | PINGROUP(LCD_SCK, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x308c), | ||
152 | PINGROUP(LCD_PWR0, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x3090), | ||
153 | PINGROUP(LCD_PCLK, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3094), | ||
154 | PINGROUP(LCD_DE, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3098), | ||
155 | PINGROUP(LCD_HSYNC, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x309c), | ||
156 | PINGROUP(LCD_VSYNC, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30a0), | ||
157 | PINGROUP(LCD_D0, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30a4), | ||
158 | PINGROUP(LCD_D1, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30a8), | ||
159 | PINGROUP(LCD_D2, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30ac), | ||
160 | PINGROUP(LCD_D3, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30b0), | ||
161 | PINGROUP(LCD_D4, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30b4), | ||
162 | PINGROUP(LCD_D5, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30b8), | ||
163 | PINGROUP(LCD_D6, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30bc), | ||
164 | PINGROUP(LCD_D7, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30c0), | ||
165 | PINGROUP(LCD_D8, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30c4), | ||
166 | PINGROUP(LCD_D9, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30c8), | ||
167 | PINGROUP(LCD_D10, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30cc), | ||
168 | PINGROUP(LCD_D11, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30d0), | ||
169 | PINGROUP(LCD_D12, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30d4), | ||
170 | PINGROUP(LCD_D13, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30d8), | ||
171 | PINGROUP(LCD_D14, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30dc), | ||
172 | PINGROUP(LCD_D15, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30e0), | ||
173 | PINGROUP(LCD_D16, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30e4), | ||
174 | PINGROUP(LCD_D17, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30e8), | ||
175 | PINGROUP(LCD_D18, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30ec), | ||
176 | PINGROUP(LCD_D19, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30f0), | ||
177 | PINGROUP(LCD_D20, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30f4), | ||
178 | PINGROUP(LCD_D21, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30f8), | ||
179 | PINGROUP(LCD_D22, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30fc), | ||
180 | PINGROUP(LCD_D23, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3100), | ||
181 | PINGROUP(LCD_CS1_N, LCD, DISPLAYA, DISPLAYB, SPI5, RSVD2, RSVD, OUTPUT, 0x3104), | ||
182 | PINGROUP(LCD_M1, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3108), | ||
183 | PINGROUP(LCD_DC1, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x310c), | ||
184 | PINGROUP(HDMI_INT, LCD, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3110), | ||
185 | PINGROUP(DDC_SCL, LCD, I2C4, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3114), | ||
186 | PINGROUP(DDC_SDA, LCD, I2C4, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3118), | ||
187 | PINGROUP(CRT_HSYNC, LCD, CRT, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x311c), | ||
188 | PINGROUP(CRT_VSYNC, LCD, CRT, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3120), | ||
189 | PINGROUP(VI_D0, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x3124), | ||
190 | PINGROUP(VI_D1, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3128), | ||
191 | PINGROUP(VI_D2, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x312c), | ||
192 | PINGROUP(VI_D3, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3130), | ||
193 | PINGROUP(VI_D4, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3134), | ||
194 | PINGROUP(VI_D5, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3138), | ||
195 | PINGROUP(VI_D6, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x313c), | ||
196 | PINGROUP(VI_D7, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3140), | ||
197 | PINGROUP(VI_D8, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3144), | ||
198 | PINGROUP(VI_D9, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3148), | ||
199 | PINGROUP(VI_D10, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x314c), | ||
200 | PINGROUP(VI_D11, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x3150), | ||
201 | PINGROUP(VI_PCLK, VI, RSVD1, SDIO2, VI, RSVD2, RSVD, INPUT, 0x3154), | ||
202 | PINGROUP(VI_MCLK, VI, VI, INVALID, INVALID, INVALID, RSVD, INPUT, 0x3158), | ||
203 | PINGROUP(VI_VSYNC, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x315c), | ||
204 | PINGROUP(VI_HSYNC, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x3160), | ||
205 | PINGROUP(UART2_RXD, UART, IRDA, SPDIF, UARTA, SPI4, RSVD, INPUT, 0x3164), | ||
206 | PINGROUP(UART2_TXD, UART, IRDA, SPDIF, UARTA, SPI4, RSVD, INPUT, 0x3168), | ||
207 | PINGROUP(UART2_RTS_N, UART, UARTA, UARTB, GMI, SPI4, RSVD, INPUT, 0x316c), | ||
208 | PINGROUP(UART2_CTS_N, UART, UARTA, UARTB, GMI, SPI4, RSVD, INPUT, 0x3170), | ||
209 | PINGROUP(UART3_TXD, UART, UARTC, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x3174), | ||
210 | PINGROUP(UART3_RXD, UART, UARTC, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x3178), | ||
211 | PINGROUP(UART3_CTS_N, UART, UARTC, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x317c), | ||
212 | PINGROUP(UART3_RTS_N, UART, UARTC, PWM0, GMI, RSVD2, RSVD, INPUT, 0x3180), | ||
213 | PINGROUP(GPIO_PU0, UART, OWR, UARTA, GMI, RSVD1, RSVD, INPUT, 0x3184), | ||
214 | PINGROUP(GPIO_PU1, UART, RSVD1, UARTA, GMI, RSVD2, RSVD, INPUT, 0x3188), | ||
215 | PINGROUP(GPIO_PU2, UART, RSVD1, UARTA, GMI, RSVD2, RSVD, INPUT, 0x318c), | ||
216 | PINGROUP(GPIO_PU3, UART, PWM0, UARTA, GMI, RSVD1, RSVD, INPUT, 0x3190), | ||
217 | PINGROUP(GPIO_PU4, UART, PWM1, UARTA, GMI, RSVD1, RSVD, INPUT, 0x3194), | ||
218 | PINGROUP(GPIO_PU5, UART, PWM2, UARTA, GMI, RSVD1, RSVD, INPUT, 0x3198), | ||
219 | PINGROUP(GPIO_PU6, UART, PWM3, UARTA, GMI, RSVD1, RSVD, INPUT, 0x319c), | ||
220 | PINGROUP(GEN1_I2C_SDA, UART, I2C, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x31a0), | ||
221 | PINGROUP(GEN1_I2C_SCL, UART, I2C, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x31a4), | ||
222 | PINGROUP(DAP4_FS, UART, I2S3, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x31a8), | ||
223 | PINGROUP(DAP4_DIN, UART, I2S3, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x31ac), | ||
224 | PINGROUP(DAP4_DOUT, UART, I2S3, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x31b0), | ||
225 | PINGROUP(DAP4_SCLK, UART, I2S3, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x31b4), | ||
226 | PINGROUP(CLK3_OUT, UART, EXTPERIPH3, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x31b8), | ||
227 | PINGROUP(CLK3_REQ, UART, DEV3, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x31bc), | ||
228 | PINGROUP(GMI_WP_N, GMI, RSVD1, NAND, GMI, GMI_ALT, RSVD, INPUT, 0x31c0), | ||
229 | PINGROUP(GMI_IORDY, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31c4), | ||
230 | PINGROUP(GMI_WAIT, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31c8), | ||
231 | PINGROUP(GMI_ADV_N, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31cc), | ||
232 | PINGROUP(GMI_CLK, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31d0), | ||
233 | PINGROUP(GMI_CS0_N, GMI, RSVD1, NAND, GMI, INVALID, RSVD, INPUT, 0x31d4), | ||
234 | PINGROUP(GMI_CS1_N, GMI, RSVD1, NAND, GMI, DTV, RSVD, INPUT, 0x31d8), | ||
235 | PINGROUP(GMI_CS2_N, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31dc), | ||
236 | PINGROUP(GMI_CS3_N, GMI, RSVD1, NAND, GMI, GMI_ALT, RSVD, INPUT, 0x31e0), | ||
237 | PINGROUP(GMI_CS4_N, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31e4), | ||
238 | PINGROUP(GMI_CS6_N, GMI, NAND, NAND_ALT, GMI, SATA, RSVD, INPUT, 0x31e8), | ||
239 | PINGROUP(GMI_CS7_N, GMI, NAND, NAND_ALT, GMI, GMI_ALT, RSVD, INPUT, 0x31ec), | ||
240 | PINGROUP(GMI_AD0, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31f0), | ||
241 | PINGROUP(GMI_AD1, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31f4), | ||
242 | PINGROUP(GMI_AD2, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31f8), | ||
243 | PINGROUP(GMI_AD3, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31fc), | ||
244 | PINGROUP(GMI_AD4, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3200), | ||
245 | PINGROUP(GMI_AD5, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3204), | ||
246 | PINGROUP(GMI_AD6, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3208), | ||
247 | PINGROUP(GMI_AD7, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x320c), | ||
248 | PINGROUP(GMI_AD8, GMI, PWM0, NAND, GMI, RSVD2, RSVD, INPUT, 0x3210), | ||
249 | PINGROUP(GMI_AD9, GMI, PWM1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3214), | ||
250 | PINGROUP(GMI_AD10, GMI, PWM2, NAND, GMI, RSVD2, RSVD, INPUT, 0x3218), | ||
251 | PINGROUP(GMI_AD11, GMI, PWM3, NAND, GMI, RSVD2, RSVD, INPUT, 0x321c), | ||
252 | PINGROUP(GMI_AD12, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3220), | ||
253 | PINGROUP(GMI_AD13, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3224), | ||
254 | PINGROUP(GMI_AD14, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3228), | ||
255 | PINGROUP(GMI_AD15, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x322c), | ||
256 | PINGROUP(GMI_A16, GMI, UARTD, SPI4, GMI, GMI_ALT, RSVD, INPUT, 0x3230), | ||
257 | PINGROUP(GMI_A17, GMI, UARTD, SPI4, GMI, INVALID, RSVD, INPUT, 0x3234), | ||
258 | PINGROUP(GMI_A18, GMI, UARTD, SPI4, GMI, INVALID, RSVD, INPUT, 0x3238), | ||
259 | PINGROUP(GMI_A19, GMI, UARTD, SPI4, GMI, RSVD3, RSVD, INPUT, 0x323c), | ||
260 | PINGROUP(GMI_WR_N, GMI, RSVD1, NAND, GMI, RSVD3, RSVD, INPUT, 0x3240), | ||
261 | PINGROUP(GMI_OE_N, GMI, RSVD1, NAND, GMI, RSVD3, RSVD, INPUT, 0x3244), | ||
262 | PINGROUP(GMI_DQS, GMI, RSVD1, NAND, GMI, RSVD3, RSVD, INPUT, 0x3248), | ||
263 | PINGROUP(GMI_RST_N, GMI, NAND, NAND_ALT, GMI, RSVD3, RSVD, INPUT, 0x324c), | ||
264 | PINGROUP(GEN2_I2C_SCL, GMI, I2C2, INVALID, GMI, RSVD3, RSVD, INPUT, 0x3250), | ||
265 | PINGROUP(GEN2_I2C_SDA, GMI, I2C2, INVALID, GMI, RSVD3, RSVD, INPUT, 0x3254), | ||
266 | PINGROUP(SDMMC4_CLK, SDMMC4, INVALID, NAND, GMI, SDIO4, RSVD, INPUT, 0x3258), | ||
267 | PINGROUP(SDMMC4_CMD, SDMMC4, I2C3, NAND, GMI, SDIO4, RSVD, INPUT, 0x325c), | ||
268 | PINGROUP(SDMMC4_DAT0, SDMMC4, UARTE, SPI3, GMI, SDIO4, RSVD, INPUT, 0x3260), | ||
269 | PINGROUP(SDMMC4_DAT1, SDMMC4, UARTE, SPI3, GMI, SDIO4, RSVD, INPUT, 0x3264), | ||
270 | PINGROUP(SDMMC4_DAT2, SDMMC4, UARTE, SPI3, GMI, SDIO4, RSVD, INPUT, 0x3268), | ||
271 | PINGROUP(SDMMC4_DAT3, SDMMC4, UARTE, SPI3, GMI, SDIO4, RSVD, INPUT, 0x326c), | ||
272 | PINGROUP(SDMMC4_DAT4, SDMMC4, I2C3, I2S4, GMI, SDIO4, RSVD, INPUT, 0x3270), | ||
273 | PINGROUP(SDMMC4_DAT5, SDMMC4, VGP3, I2S4, GMI, SDIO4, RSVD, INPUT, 0x3274), | ||
274 | PINGROUP(SDMMC4_DAT6, SDMMC4, VGP4, I2S4, GMI, SDIO4, RSVD, INPUT, 0x3278), | ||
275 | PINGROUP(SDMMC4_DAT7, SDMMC4, VGP5, I2S4, GMI, SDIO4, RSVD, INPUT, 0x327c), | ||
276 | PINGROUP(SDMMC4_RST_N, SDMMC4, VGP6, RSVD1, RSVD2, POPSDMMC4, RSVD, INPUT, 0x3280), | ||
277 | PINGROUP(CAM_MCLK, CAM, VI, INVALID, VI_ALT2, POPSDMMC4, RSVD, INPUT, 0x3284), | ||
278 | PINGROUP(GPIO_PCC1, CAM, I2S4, RSVD1, RSVD2, POPSDMMC4, RSVD, INPUT, 0x3288), | ||
279 | PINGROUP(GPIO_PBB0, CAM, I2S4, RSVD1, RSVD2, POPSDMMC4, RSVD, INPUT, 0x328c), | ||
280 | PINGROUP(CAM_I2C_SCL, CAM, INVALID, I2C3, RSVD2, POPSDMMC4, RSVD, INPUT, 0x3290), | ||
281 | PINGROUP(CAM_I2C_SDA, CAM, INVALID, I2C3, RSVD2, POPSDMMC4, RSVD, INPUT, 0x3294), | ||
282 | PINGROUP(GPIO_PBB3, CAM, VGP3, DISPLAYA, DISPLAYB, POPSDMMC4, RSVD, INPUT, 0x3298), | ||
283 | PINGROUP(GPIO_PBB4, CAM, VGP4, DISPLAYA, DISPLAYB, POPSDMMC4, RSVD, INPUT, 0x329c), | ||
284 | PINGROUP(GPIO_PBB5, CAM, VGP5, DISPLAYA, DISPLAYB, POPSDMMC4, RSVD, INPUT, 0x32a0), | ||
285 | PINGROUP(GPIO_PBB6, CAM, VGP6, DISPLAYA, DISPLAYB, POPSDMMC4, RSVD, INPUT, 0x32a4), | ||
286 | PINGROUP(GPIO_PBB7, CAM, I2S4, RSVD1, RSVD2, POPSDMMC4, RSVD, INPUT, 0x32a8), | ||
287 | PINGROUP(GPIO_PCC2, CAM, I2S4, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x32ac), | ||
288 | PINGROUP(JTAG_RTCK, SYS, RTCK, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x32b0), | ||
289 | PINGROUP(PWR_I2C_SCL, SYS, I2CPWR, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x32b4), | ||
290 | PINGROUP(PWR_I2C_SDA, SYS, I2CPWR, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x32b8), | ||
291 | PINGROUP(KB_ROW0, SYS, KBC, INVALID, RSVD2, RSVD3, RSVD, INPUT, 0x32bc), | ||
292 | PINGROUP(KB_ROW1, SYS, KBC, INVALID, RSVD2, RSVD3, RSVD, INPUT, 0x32c0), | ||
293 | PINGROUP(KB_ROW2, SYS, KBC, INVALID, RSVD2, RSVD3, RSVD, INPUT, 0x32c4), | ||
294 | PINGROUP(KB_ROW3, SYS, KBC, INVALID, RSVD2, INVALID, RSVD, INPUT, 0x32c8), | ||
295 | PINGROUP(KB_ROW4, SYS, KBC, INVALID, TRACE, RSVD3, RSVD, INPUT, 0x32cc), | ||
296 | PINGROUP(KB_ROW5, SYS, KBC, INVALID, TRACE, OWR, RSVD, INPUT, 0x32d0), | ||
297 | PINGROUP(KB_ROW6, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32d4), | ||
298 | PINGROUP(KB_ROW7, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32d8), | ||
299 | PINGROUP(KB_ROW8, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32dc), | ||
300 | PINGROUP(KB_ROW9, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32e0), | ||
301 | PINGROUP(KB_ROW10, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32e4), | ||
302 | PINGROUP(KB_ROW11, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32e8), | ||
303 | PINGROUP(KB_ROW12, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32ec), | ||
304 | PINGROUP(KB_ROW13, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32f0), | ||
305 | PINGROUP(KB_ROW14, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32f4), | ||
306 | PINGROUP(KB_ROW15, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32f8), | ||
307 | PINGROUP(KB_COL0, SYS, KBC, INVALID, TRACE, INVALID, RSVD, INPUT, 0x32fc), | ||
308 | PINGROUP(KB_COL1, SYS, KBC, INVALID, TRACE, INVALID, RSVD, INPUT, 0x3300), | ||
309 | PINGROUP(KB_COL2, SYS, KBC, INVALID, TRACE, RSVD, RSVD, INPUT, 0x3304), | ||
310 | PINGROUP(KB_COL3, SYS, KBC, INVALID, TRACE, RSVD, RSVD, INPUT, 0x3308), | ||
311 | PINGROUP(KB_COL4, SYS, KBC, INVALID, TRACE, RSVD, RSVD, INPUT, 0x330c), | ||
312 | PINGROUP(KB_COL5, SYS, KBC, INVALID, TRACE, RSVD, RSVD, INPUT, 0x3310), | ||
313 | PINGROUP(KB_COL6, SYS, KBC, INVALID, TRACE, INVALID, RSVD, INPUT, 0x3314), | ||
314 | PINGROUP(KB_COL7, SYS, KBC, INVALID, TRACE, INVALID, RSVD, INPUT, 0x3318), | ||
315 | PINGROUP(CLK_32K_OUT, SYS, BLINK, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x331c), | ||
316 | PINGROUP(SYS_CLK_REQ, SYS, SYSCLK, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3320), | ||
317 | PINGROUP(CORE_PWR_REQ, SYS, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3324), | ||
318 | PINGROUP(CPU_PWR_REQ, SYS, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3328), | ||
319 | PINGROUP(PWR_INT_N, SYS, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x332c), | ||
320 | PINGROUP(CLK_32K_IN, SYS, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3330), | ||
321 | PINGROUP(OWR, SYS, OWR, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3334), | ||
322 | PINGROUP(DAP1_FS, AUDIO, I2S0, HDA, GMI, SDIO2, RSVD, INPUT, 0x3338), | ||
323 | PINGROUP(DAP1_DIN, AUDIO, I2S0, HDA, GMI, SDIO2, RSVD, INPUT, 0x333c), | ||
324 | PINGROUP(DAP1_DOUT, AUDIO, I2S0, HDA, GMI, SDIO2, RSVD, INPUT, 0x3340), | ||
325 | PINGROUP(DAP1_SCLK, AUDIO, I2S0, HDA, GMI, SDIO2, RSVD, INPUT, 0x3344), | ||
326 | PINGROUP(CLK1_REQ, AUDIO, DAP, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x3348), | ||
327 | PINGROUP(CLK1_OUT, AUDIO, EXTPERIPH1, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x334c), | ||
328 | PINGROUP(SPDIF_IN, AUDIO, SPDIF, HDA, INVALID, DAPSDMMC2, RSVD, INPUT, 0x3350), | ||
329 | PINGROUP(SPDIF_OUT, AUDIO, SPDIF, RSVD1, INVALID, DAPSDMMC2, RSVD, INPUT, 0x3354), | ||
330 | PINGROUP(DAP2_FS, AUDIO, I2S1, HDA, RSVD2, GMI, RSVD, INPUT, 0x3358), | ||
331 | PINGROUP(DAP2_DIN, AUDIO, I2S1, HDA, RSVD2, GMI, RSVD, INPUT, 0x335c), | ||
332 | PINGROUP(DAP2_DOUT, AUDIO, I2S1, HDA, RSVD2, GMI, RSVD, INPUT, 0x3360), | ||
333 | PINGROUP(DAP2_SCLK, AUDIO, I2S1, HDA, RSVD2, GMI, RSVD, INPUT, 0x3364), | ||
334 | PINGROUP(SPI2_MOSI, AUDIO, SPI6, SPI2, INVALID, GMI, RSVD, INPUT, 0x3368), | ||
335 | PINGROUP(SPI2_MISO, AUDIO, SPI6, SPI2, INVALID, GMI, RSVD, INPUT, 0x336c), | ||
336 | PINGROUP(SPI2_CS0_N, AUDIO, SPI6, SPI2, INVALID, GMI, RSVD, INPUT, 0x3370), | ||
337 | PINGROUP(SPI2_SCK, AUDIO, SPI6, SPI2, INVALID, GMI, RSVD, INPUT, 0x3374), | ||
338 | PINGROUP(SPI1_MOSI, AUDIO, SPI2, SPI1, INVALID, GMI, RSVD, INPUT, 0x3378), | ||
339 | PINGROUP(SPI1_SCK, AUDIO, SPI2, SPI1, INVALID, GMI, RSVD, INPUT, 0x337c), | ||
340 | PINGROUP(SPI1_CS0_N, AUDIO, SPI2, SPI1, INVALID, GMI, RSVD, INPUT, 0x3380), | ||
341 | PINGROUP(SPI1_MISO, AUDIO, INVALID, SPI1, INVALID, RSVD3, RSVD, INPUT, 0x3384), | ||
342 | PINGROUP(SPI2_CS1_N, AUDIO, INVALID, SPI2, INVALID, INVALID, RSVD, INPUT, 0x3388), | ||
343 | PINGROUP(SPI2_CS2_N, AUDIO, INVALID, SPI2, INVALID, INVALID, RSVD, INPUT, 0x338c), | ||
344 | PINGROUP(SDMMC3_CLK, SDMMC3, UARTA, PWM2, SDIO3, INVALID, RSVD, INPUT, 0x3390), | ||
345 | PINGROUP(SDMMC3_CMD, SDMMC3, UARTA, PWM3, SDIO3, INVALID, RSVD, INPUT, 0x3394), | ||
346 | PINGROUP(SDMMC3_DAT0, SDMMC3, RSVD, RSVD1, SDIO3, INVALID, RSVD, INPUT, 0x3398), | ||
347 | PINGROUP(SDMMC3_DAT1, SDMMC3, RSVD, RSVD1, SDIO3, INVALID, RSVD, INPUT, 0x339c), | ||
348 | PINGROUP(SDMMC3_DAT2, SDMMC3, RSVD, PWM1, SDIO3, INVALID, RSVD, INPUT, 0x33a0), | ||
349 | PINGROUP(SDMMC3_DAT3, SDMMC3, RSVD, PWM0, SDIO3, INVALID, RSVD, INPUT, 0x33a4), | ||
350 | PINGROUP(SDMMC3_DAT4, SDMMC3, PWM1, INVALID, SDIO3, INVALID, RSVD, INPUT, 0x33a8), | ||
351 | PINGROUP(SDMMC3_DAT5, SDMMC3, PWM0, INVALID, SDIO3, INVALID, RSVD, INPUT, 0x33ac), | ||
352 | PINGROUP(SDMMC3_DAT6, SDMMC3, SPDIF, INVALID, SDIO3, INVALID, RSVD, INPUT, 0x33b0), | ||
353 | PINGROUP(SDMMC3_DAT7, SDMMC3, SPDIF, INVALID, SDIO3, INVALID, RSVD, INPUT, 0x33b4), | ||
354 | PINGROUP(PEX_L0_PRSNT_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33b8), | ||
355 | PINGROUP(PEX_L0_RST_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33bc), | ||
356 | PINGROUP(PEX_L0_CLKREQ_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33c0), | ||
357 | PINGROUP(PEX_WAKE_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33c4), | ||
358 | PINGROUP(PEX_L1_PRSNT_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33c8), | ||
359 | PINGROUP(PEX_L1_RST_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33cc), | ||
360 | PINGROUP(PEX_L1_CLKREQ_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33d0), | ||
361 | PINGROUP(PEX_L2_PRSNT_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33d4), | ||
362 | PINGROUP(PEX_L2_RST_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33d8), | ||
363 | PINGROUP(PEX_L2_CLKREQ_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33dc), | ||
364 | PINGROUP(HDMI_CEC, SYS, CEC, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x33e0), | ||
365 | }; | ||
366 | |||
367 | void __init tegra30_pinmux_init(const struct tegra_pingroup_desc **pg, | ||
368 | int *pg_max, const struct tegra_drive_pingroup_desc **pgdrive, | ||
369 | int *pgdrive_max) | ||
370 | { | ||
371 | *pg = tegra_soc_pingroups; | ||
372 | *pg_max = TEGRA_MAX_PINGROUP; | ||
373 | *pgdrive = tegra_soc_drive_pingroups; | ||
374 | *pgdrive_max = TEGRA_MAX_DRIVE_PINGROUP; | ||
375 | } | ||
376 | |||
diff --git a/arch/arm/mach-tegra/pinmux.c b/arch/arm/mach-tegra/pinmux.c index 45ebd8ceccca..ac35d2b76850 100644 --- a/arch/arm/mach-tegra/pinmux.c +++ b/arch/arm/mach-tegra/pinmux.c | |||
@@ -100,6 +100,49 @@ static char *tegra_mux_names[TEGRA_MAX_MUX] = { | |||
100 | [TEGRA_MUX_VI] = "VI", | 100 | [TEGRA_MUX_VI] = "VI", |
101 | [TEGRA_MUX_VI_SENSOR_CLK] = "VI_SENSOR_CLK", | 101 | [TEGRA_MUX_VI_SENSOR_CLK] = "VI_SENSOR_CLK", |
102 | [TEGRA_MUX_XIO] = "XIO", | 102 | [TEGRA_MUX_XIO] = "XIO", |
103 | [TEGRA_MUX_BLINK] = "BLINK", | ||
104 | [TEGRA_MUX_CEC] = "CEC", | ||
105 | [TEGRA_MUX_CLK12] = "CLK12", | ||
106 | [TEGRA_MUX_DAP] = "DAP", | ||
107 | [TEGRA_MUX_DAPSDMMC2] = "DAPSDMMC2", | ||
108 | [TEGRA_MUX_DDR] = "DDR", | ||
109 | [TEGRA_MUX_DEV3] = "DEV3", | ||
110 | [TEGRA_MUX_DTV] = "DTV", | ||
111 | [TEGRA_MUX_VI_ALT1] = "VI_ALT1", | ||
112 | [TEGRA_MUX_VI_ALT2] = "VI_ALT2", | ||
113 | [TEGRA_MUX_VI_ALT3] = "VI_ALT3", | ||
114 | [TEGRA_MUX_EMC_DLL] = "EMC_DLL", | ||
115 | [TEGRA_MUX_EXTPERIPH1] = "EXTPERIPH1", | ||
116 | [TEGRA_MUX_EXTPERIPH2] = "EXTPERIPH2", | ||
117 | [TEGRA_MUX_EXTPERIPH3] = "EXTPERIPH3", | ||
118 | [TEGRA_MUX_GMI_ALT] = "GMI_ALT", | ||
119 | [TEGRA_MUX_HDA] = "HDA", | ||
120 | [TEGRA_MUX_HSI] = "HSI", | ||
121 | [TEGRA_MUX_I2C4] = "I2C4", | ||
122 | [TEGRA_MUX_I2C5] = "I2C5", | ||
123 | [TEGRA_MUX_I2CPWR] = "I2CPWR", | ||
124 | [TEGRA_MUX_I2S0] = "I2S0", | ||
125 | [TEGRA_MUX_I2S1] = "I2S1", | ||
126 | [TEGRA_MUX_I2S2] = "I2S2", | ||
127 | [TEGRA_MUX_I2S3] = "I2S3", | ||
128 | [TEGRA_MUX_I2S4] = "I2S4", | ||
129 | [TEGRA_MUX_NAND_ALT] = "NAND_ALT", | ||
130 | [TEGRA_MUX_POPSDIO4] = "POPSDIO4", | ||
131 | [TEGRA_MUX_POPSDMMC4] = "POPSDMMC4", | ||
132 | [TEGRA_MUX_PWM0] = "PWM0", | ||
133 | [TEGRA_MUX_PWM1] = "PWM2", | ||
134 | [TEGRA_MUX_PWM2] = "PWM2", | ||
135 | [TEGRA_MUX_PWM3] = "PWM3", | ||
136 | [TEGRA_MUX_SATA] = "SATA", | ||
137 | [TEGRA_MUX_SPI5] = "SPI5", | ||
138 | [TEGRA_MUX_SPI6] = "SPI6", | ||
139 | [TEGRA_MUX_SYSCLK] = "SYSCLK", | ||
140 | [TEGRA_MUX_VGP1] = "VGP1", | ||
141 | [TEGRA_MUX_VGP2] = "VGP2", | ||
142 | [TEGRA_MUX_VGP3] = "VGP3", | ||
143 | [TEGRA_MUX_VGP4] = "VGP4", | ||
144 | [TEGRA_MUX_VGP5] = "VGP5", | ||
145 | [TEGRA_MUX_VGP6] = "VGP6", | ||
103 | [TEGRA_MUX_SAFE] = "<safe>", | 146 | [TEGRA_MUX_SAFE] = "<safe>", |
104 | }; | 147 | }; |
105 | 148 | ||
@@ -667,7 +710,12 @@ void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *co | |||
667 | } | 710 | } |
668 | 711 | ||
669 | static struct of_device_id tegra_pinmux_of_match[] __devinitdata = { | 712 | static struct of_device_id tegra_pinmux_of_match[] __devinitdata = { |
713 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
670 | { .compatible = "nvidia,tegra20-pinmux", tegra20_pinmux_init }, | 714 | { .compatible = "nvidia,tegra20-pinmux", tegra20_pinmux_init }, |
715 | #endif | ||
716 | #ifdef CONFIG_ARCH_TEGRA_3x_SOC | ||
717 | { .compatible = "nvidia,tegra30-pinmux", tegra30_pinmux_init }, | ||
718 | #endif | ||
671 | { }, | 719 | { }, |
672 | }; | 720 | }; |
673 | 721 | ||