blob: 41d8bda45163d6fa757829bd4bbc577931c0b274 [file] [log] [blame]
Laurent Pinchart881023d2012-12-15 23:51:22 +01001/*
2 * r8a7779 processor support - PFC hardware block
3 *
4 * Copyright (C) 2011 Renesas Solutions Corp.
5 * Copyright (C) 2011 Magnus Damm
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
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 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#include <linux/kernel.h>
Laurent Pinchart881023d2012-12-15 23:51:22 +010022
Laurent Pinchartc3323802012-12-15 23:51:55 +010023#include "sh_pfc.h"
24
Laurent Pinchart7417dae2013-03-07 23:47:18 +010025#define PORT_GP_1(bank, pin, fn, sfx) fn(bank, pin, GP_##bank##_##pin, sfx)
Laurent Pinchart881023d2012-12-15 23:51:22 +010026
Laurent Pinchart7417dae2013-03-07 23:47:18 +010027#define PORT_GP_32(bank, fn, sfx) \
28 PORT_GP_1(bank, 0, fn, sfx), PORT_GP_1(bank, 1, fn, sfx), \
29 PORT_GP_1(bank, 2, fn, sfx), PORT_GP_1(bank, 3, fn, sfx), \
30 PORT_GP_1(bank, 4, fn, sfx), PORT_GP_1(bank, 5, fn, sfx), \
31 PORT_GP_1(bank, 6, fn, sfx), PORT_GP_1(bank, 7, fn, sfx), \
32 PORT_GP_1(bank, 8, fn, sfx), PORT_GP_1(bank, 9, fn, sfx), \
33 PORT_GP_1(bank, 10, fn, sfx), PORT_GP_1(bank, 11, fn, sfx), \
34 PORT_GP_1(bank, 12, fn, sfx), PORT_GP_1(bank, 13, fn, sfx), \
35 PORT_GP_1(bank, 14, fn, sfx), PORT_GP_1(bank, 15, fn, sfx), \
36 PORT_GP_1(bank, 16, fn, sfx), PORT_GP_1(bank, 17, fn, sfx), \
37 PORT_GP_1(bank, 18, fn, sfx), PORT_GP_1(bank, 19, fn, sfx), \
38 PORT_GP_1(bank, 20, fn, sfx), PORT_GP_1(bank, 21, fn, sfx), \
39 PORT_GP_1(bank, 22, fn, sfx), PORT_GP_1(bank, 23, fn, sfx), \
40 PORT_GP_1(bank, 24, fn, sfx), PORT_GP_1(bank, 25, fn, sfx), \
41 PORT_GP_1(bank, 26, fn, sfx), PORT_GP_1(bank, 27, fn, sfx), \
42 PORT_GP_1(bank, 28, fn, sfx), PORT_GP_1(bank, 29, fn, sfx), \
43 PORT_GP_1(bank, 30, fn, sfx), PORT_GP_1(bank, 31, fn, sfx)
Laurent Pinchart881023d2012-12-15 23:51:22 +010044
Laurent Pinchart7417dae2013-03-07 23:47:18 +010045#define PORT_GP_32_9(bank, fn, sfx) \
46 PORT_GP_1(bank, 0, fn, sfx), PORT_GP_1(bank, 1, fn, sfx), \
47 PORT_GP_1(bank, 2, fn, sfx), PORT_GP_1(bank, 3, fn, sfx), \
48 PORT_GP_1(bank, 4, fn, sfx), PORT_GP_1(bank, 5, fn, sfx), \
49 PORT_GP_1(bank, 6, fn, sfx), PORT_GP_1(bank, 7, fn, sfx), \
50 PORT_GP_1(bank, 8, fn, sfx)
Laurent Pinchart881023d2012-12-15 23:51:22 +010051
Laurent Pinchart7417dae2013-03-07 23:47:18 +010052#define PORT_GP_32_REV(bank, fn, sfx) \
53 PORT_GP_1(bank, 31, fn, sfx), PORT_GP_1(bank, 30, fn, sfx), \
54 PORT_GP_1(bank, 29, fn, sfx), PORT_GP_1(bank, 28, fn, sfx), \
55 PORT_GP_1(bank, 27, fn, sfx), PORT_GP_1(bank, 26, fn, sfx), \
56 PORT_GP_1(bank, 25, fn, sfx), PORT_GP_1(bank, 24, fn, sfx), \
57 PORT_GP_1(bank, 23, fn, sfx), PORT_GP_1(bank, 22, fn, sfx), \
58 PORT_GP_1(bank, 21, fn, sfx), PORT_GP_1(bank, 20, fn, sfx), \
59 PORT_GP_1(bank, 19, fn, sfx), PORT_GP_1(bank, 18, fn, sfx), \
60 PORT_GP_1(bank, 17, fn, sfx), PORT_GP_1(bank, 16, fn, sfx), \
61 PORT_GP_1(bank, 15, fn, sfx), PORT_GP_1(bank, 14, fn, sfx), \
62 PORT_GP_1(bank, 13, fn, sfx), PORT_GP_1(bank, 12, fn, sfx), \
63 PORT_GP_1(bank, 11, fn, sfx), PORT_GP_1(bank, 10, fn, sfx), \
64 PORT_GP_1(bank, 9, fn, sfx), PORT_GP_1(bank, 8, fn, sfx), \
65 PORT_GP_1(bank, 7, fn, sfx), PORT_GP_1(bank, 6, fn, sfx), \
66 PORT_GP_1(bank, 5, fn, sfx), PORT_GP_1(bank, 4, fn, sfx), \
67 PORT_GP_1(bank, 3, fn, sfx), PORT_GP_1(bank, 2, fn, sfx), \
68 PORT_GP_1(bank, 1, fn, sfx), PORT_GP_1(bank, 0, fn, sfx)
Laurent Pinchart881023d2012-12-15 23:51:22 +010069
Laurent Pinchart7417dae2013-03-07 23:47:18 +010070#define CPU_ALL_PORT(fn, sfx) \
71 PORT_GP_32(0, fn, sfx), \
72 PORT_GP_32(1, fn, sfx), \
73 PORT_GP_32(2, fn, sfx), \
74 PORT_GP_32(3, fn, sfx), \
75 PORT_GP_32(4, fn, sfx), \
76 PORT_GP_32(5, fn, sfx), \
77 PORT_GP_32_9(6, fn, sfx)
Laurent Pinchart881023d2012-12-15 23:51:22 +010078
Laurent Pinchart7417dae2013-03-07 23:47:18 +010079#define _GP_PORT_ALL(bank, pin, name, sfx) name##_##sfx
80
81#define _GP_GPIO(bank, pin, _name, sfx) \
82 [(bank * 32) + pin] = { \
83 .name = __stringify(_name), \
84 .enum_id = _name##_DATA, \
85 }
86
87#define _GP_DATA(bank, pin, name, sfx) \
88 PINMUX_DATA(name##_DATA, name##_FN, name##_IN, name##_OUT)
89
90#define _GP_INOUTSEL(bank, pin, name, sfx) name##_IN, name##_OUT
91#define _GP_INDT(bank, pin, name, sfx) name##_DATA
92
93#define GP_ALL(str) CPU_ALL_PORT(_GP_PORT_ALL, str)
94#define PINMUX_GPIO_GP_ALL() CPU_ALL_PORT(_GP_GPIO, unused)
95#define PINMUX_DATA_GP_ALL() CPU_ALL_PORT(_GP_DATA, unused)
96
97#define GP_INOUTSEL(bank) PORT_GP_32_REV(bank, _GP_INOUTSEL, unused)
98#define GP_INDT(bank) PORT_GP_32_REV(bank, _GP_INDT, unused)
Laurent Pinchart881023d2012-12-15 23:51:22 +010099
100#define PINMUX_IPSR_DATA(ipsr, fn) PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##fn)
101#define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms) PINMUX_DATA(fn##_MARK, FN_##ms, \
102 FN_##ipsr, FN_##fn)
103
104enum {
105 PINMUX_RESERVED = 0,
106
107 PINMUX_DATA_BEGIN,
108 GP_ALL(DATA), /* GP_0_0_DATA -> GP_6_8_DATA */
109 PINMUX_DATA_END,
110
111 PINMUX_INPUT_BEGIN,
112 GP_ALL(IN), /* GP_0_0_IN -> GP_6_8_IN */
113 PINMUX_INPUT_END,
114
115 PINMUX_OUTPUT_BEGIN,
116 GP_ALL(OUT), /* GP_0_0_OUT -> GP_6_8_OUT */
117 PINMUX_OUTPUT_END,
118
119 PINMUX_FUNCTION_BEGIN,
120 GP_ALL(FN), /* GP_0_0_FN -> GP_6_8_FN */
121
122 /* GPSR0 */
123 FN_AVS1, FN_AVS2, FN_IP0_7_6, FN_A17,
124 FN_A18, FN_A19, FN_IP0_9_8, FN_IP0_11_10,
125 FN_IP0_13_12, FN_IP0_15_14, FN_IP0_18_16, FN_IP0_22_19,
126 FN_IP0_24_23, FN_IP0_25, FN_IP0_27_26, FN_IP1_1_0,
127 FN_IP1_3_2, FN_IP1_6_4, FN_IP1_10_7, FN_IP1_14_11,
128 FN_IP1_18_15, FN_IP0_5_3, FN_IP0_30_28, FN_IP2_18_16,
129 FN_IP2_21_19, FN_IP2_30_28, FN_IP3_2_0, FN_IP3_11_9,
130 FN_IP3_14_12, FN_IP3_22_21, FN_IP3_26_24, FN_IP3_31_29,
131
132 /* GPSR1 */
133 FN_IP4_1_0, FN_IP4_4_2, FN_IP4_7_5, FN_IP4_10_8,
134 FN_IP4_11, FN_IP4_12, FN_IP4_13, FN_IP4_14,
135 FN_IP4_15, FN_IP4_16, FN_IP4_19_17, FN_IP4_22_20,
136 FN_IP4_23, FN_IP4_24, FN_IP4_25, FN_IP4_26,
137 FN_IP4_27, FN_IP4_28, FN_IP4_31_29, FN_IP5_2_0,
138 FN_IP5_3, FN_IP5_4, FN_IP5_5, FN_IP5_6,
139 FN_IP5_7, FN_IP5_8, FN_IP5_10_9, FN_IP5_12_11,
140 FN_IP5_14_13, FN_IP5_16_15, FN_IP5_20_17, FN_IP5_23_21,
141
142 /* GPSR2 */
143 FN_IP5_27_24, FN_IP8_20, FN_IP8_22_21, FN_IP8_24_23,
144 FN_IP8_27_25, FN_IP8_30_28, FN_IP9_1_0, FN_IP9_3_2,
145 FN_IP9_4, FN_IP9_5, FN_IP9_6, FN_IP9_7,
146 FN_IP9_9_8, FN_IP9_11_10, FN_IP9_13_12, FN_IP9_15_14,
147 FN_IP9_18_16, FN_IP9_21_19, FN_IP9_23_22, FN_IP9_25_24,
148 FN_IP9_27_26, FN_IP9_29_28, FN_IP10_2_0, FN_IP10_5_3,
149 FN_IP10_8_6, FN_IP10_11_9, FN_IP10_14_12, FN_IP10_17_15,
150 FN_IP10_20_18, FN_IP10_23_21, FN_IP10_25_24, FN_IP10_28_26,
151
152 /* GPSR3 */
153 FN_IP10_31_29, FN_IP11_2_0, FN_IP11_5_3, FN_IP11_8_6,
154 FN_IP11_11_9, FN_IP11_14_12, FN_IP11_17_15, FN_IP11_20_18,
155 FN_IP11_23_21, FN_IP11_26_24, FN_IP11_29_27, FN_IP12_2_0,
156 FN_IP12_5_3, FN_IP12_8_6, FN_IP12_11_9, FN_IP12_14_12,
157 FN_IP12_17_15, FN_IP7_16_15, FN_IP7_18_17, FN_IP7_28_27,
158 FN_IP7_30_29, FN_IP7_20_19, FN_IP7_22_21, FN_IP7_24_23,
159 FN_IP7_26_25, FN_IP1_20_19, FN_IP1_22_21, FN_IP1_24_23,
160 FN_IP5_28, FN_IP5_30_29, FN_IP6_1_0, FN_IP6_3_2,
161
162 /* GPSR4 */
163 FN_IP6_5_4, FN_IP6_7_6, FN_IP6_8, FN_IP6_11_9,
164 FN_IP6_14_12, FN_IP6_17_15, FN_IP6_19_18, FN_IP6_22_20,
165 FN_IP6_24_23, FN_IP6_26_25, FN_IP6_30_29, FN_IP7_1_0,
166 FN_IP7_3_2, FN_IP7_6_4, FN_IP7_9_7, FN_IP7_12_10,
167 FN_IP7_14_13, FN_IP2_7_4, FN_IP2_11_8, FN_IP2_15_12,
168 FN_IP1_28_25, FN_IP2_3_0, FN_IP8_3_0, FN_IP8_7_4,
169 FN_IP8_11_8, FN_IP8_15_12, FN_USB_PENC0, FN_USB_PENC1,
170 FN_IP0_2_0, FN_IP8_17_16, FN_IP8_18, FN_IP8_19,
171
172 /* GPSR5 */
173 FN_A1, FN_A2, FN_A3, FN_A4,
174 FN_A5, FN_A6, FN_A7, FN_A8,
175 FN_A9, FN_A10, FN_A11, FN_A12,
176 FN_A13, FN_A14, FN_A15, FN_A16,
177 FN_RD, FN_WE0, FN_WE1, FN_EX_WAIT0,
178 FN_IP3_23, FN_IP3_27, FN_IP3_28, FN_IP2_22,
179 FN_IP2_23, FN_IP2_24, FN_IP2_25, FN_IP2_26,
180 FN_IP2_27, FN_IP3_3, FN_IP3_4, FN_IP3_5,
181
182 /* GPSR6 */
183 FN_IP3_6, FN_IP3_7, FN_IP3_8, FN_IP3_15,
184 FN_IP3_16, FN_IP3_17, FN_IP3_18, FN_IP3_19,
185 FN_IP3_20,
186
187 /* IPSR0 */
188 FN_RD_WR, FN_FWE, FN_ATAG0, FN_VI1_R7,
189 FN_HRTS1, FN_RX4_C,
190 FN_CS1_A26, FN_HSPI_TX2, FN_SDSELF_B,
191 FN_CS0, FN_HSPI_CS2_B,
192 FN_CLKOUT, FN_TX3C_IRDA_TX_C, FN_PWM0_B,
193 FN_A25, FN_SD1_WP, FN_MMC0_D5, FN_FD5,
194 FN_HSPI_RX2, FN_VI1_R3, FN_TX5_B, FN_SSI_SDATA7_B,
195 FN_CTS0_B,
196 FN_A24, FN_SD1_CD, FN_MMC0_D4, FN_FD4,
197 FN_HSPI_CS2, FN_VI1_R2, FN_SSI_WS78_B,
198 FN_A23, FN_FCLE, FN_HSPI_CLK2, FN_VI1_R1,
199 FN_A22, FN_RX5_D, FN_HSPI_RX2_B, FN_VI1_R0,
200 FN_A21, FN_SCK5_D, FN_HSPI_CLK2_B,
201 FN_A20, FN_TX5_D, FN_HSPI_TX2_B,
202 FN_A0, FN_SD1_DAT3, FN_MMC0_D3, FN_FD3,
203 FN_BS, FN_SD1_DAT2, FN_MMC0_D2, FN_FD2,
204 FN_ATADIR0, FN_SDSELF, FN_HCTS1, FN_TX4_C,
205 FN_USB_PENC2, FN_SCK0, FN_PWM1, FN_PWMFSW0,
206 FN_SCIF_CLK, FN_TCLK0_C,
207
208 /* IPSR1 */
209 FN_EX_CS0, FN_RX3_C_IRDA_RX_C, FN_MMC0_D6,
210 FN_FD6, FN_EX_CS1, FN_MMC0_D7, FN_FD7,
211 FN_EX_CS2, FN_SD1_CLK, FN_MMC0_CLK, FN_FALE,
212 FN_ATACS00, FN_EX_CS3, FN_SD1_CMD, FN_MMC0_CMD,
213 FN_FRE, FN_ATACS10, FN_VI1_R4, FN_RX5_B,
214 FN_HSCK1, FN_SSI_SDATA8_B, FN_RTS0_B_TANS_B, FN_SSI_SDATA9,
215 FN_EX_CS4, FN_SD1_DAT0, FN_MMC0_D0, FN_FD0,
216 FN_ATARD0, FN_VI1_R5, FN_SCK5_B, FN_HTX1,
217 FN_TX2_E, FN_TX0_B, FN_SSI_SCK9, FN_EX_CS5,
218 FN_SD1_DAT1, FN_MMC0_D1, FN_FD1, FN_ATAWR0,
219 FN_VI1_R6, FN_HRX1, FN_RX2_E, FN_RX0_B,
220 FN_SSI_WS9, FN_MLB_CLK, FN_PWM2, FN_SCK4,
221 FN_MLB_SIG, FN_PWM3, FN_TX4, FN_MLB_DAT,
222 FN_PWM4, FN_RX4, FN_HTX0, FN_TX1,
223 FN_SDATA, FN_CTS0_C, FN_SUB_TCK, FN_CC5_STATE2,
224 FN_CC5_STATE10, FN_CC5_STATE18, FN_CC5_STATE26, FN_CC5_STATE34,
225
226 /* IPSR2 */
227 FN_HRX0, FN_RX1, FN_SCKZ, FN_RTS0_C_TANS_C,
228 FN_SUB_TDI, FN_CC5_STATE3, FN_CC5_STATE11, FN_CC5_STATE19,
229 FN_CC5_STATE27, FN_CC5_STATE35, FN_HSCK0, FN_SCK1,
230 FN_MTS, FN_PWM5, FN_SCK0_C, FN_SSI_SDATA9_B,
231 FN_SUB_TDO, FN_CC5_STATE0, FN_CC5_STATE8, FN_CC5_STATE16,
232 FN_CC5_STATE24, FN_CC5_STATE32, FN_HCTS0, FN_CTS1,
233 FN_STM, FN_PWM0_D, FN_RX0_C, FN_SCIF_CLK_C,
234 FN_SUB_TRST, FN_TCLK1_B, FN_CC5_OSCOUT, FN_HRTS0,
235 FN_RTS1_TANS, FN_MDATA, FN_TX0_C, FN_SUB_TMS,
236 FN_CC5_STATE1, FN_CC5_STATE9, FN_CC5_STATE17, FN_CC5_STATE25,
237 FN_CC5_STATE33, FN_DU0_DR0, FN_LCDOUT0, FN_DREQ0,
238 FN_GPS_CLK_B, FN_AUDATA0, FN_TX5_C, FN_DU0_DR1,
239 FN_LCDOUT1, FN_DACK0, FN_DRACK0, FN_GPS_SIGN_B,
240 FN_AUDATA1, FN_RX5_C, FN_DU0_DR2, FN_LCDOUT2,
241 FN_DU0_DR3, FN_LCDOUT3, FN_DU0_DR4, FN_LCDOUT4,
242 FN_DU0_DR5, FN_LCDOUT5, FN_DU0_DR6, FN_LCDOUT6,
243 FN_DU0_DR7, FN_LCDOUT7, FN_DU0_DG0, FN_LCDOUT8,
244 FN_DREQ1, FN_SCL2, FN_AUDATA2,
245
246 /* IPSR3 */
247 FN_DU0_DG1, FN_LCDOUT9, FN_DACK1, FN_SDA2,
248 FN_AUDATA3, FN_DU0_DG2, FN_LCDOUT10, FN_DU0_DG3,
249 FN_LCDOUT11, FN_DU0_DG4, FN_LCDOUT12, FN_DU0_DG5,
250 FN_LCDOUT13, FN_DU0_DG6, FN_LCDOUT14, FN_DU0_DG7,
251 FN_LCDOUT15, FN_DU0_DB0, FN_LCDOUT16, FN_EX_WAIT1,
252 FN_SCL1, FN_TCLK1, FN_AUDATA4, FN_DU0_DB1,
253 FN_LCDOUT17, FN_EX_WAIT2, FN_SDA1, FN_GPS_MAG_B,
254 FN_AUDATA5, FN_SCK5_C, FN_DU0_DB2, FN_LCDOUT18,
255 FN_DU0_DB3, FN_LCDOUT19, FN_DU0_DB4, FN_LCDOUT20,
256 FN_DU0_DB5, FN_LCDOUT21, FN_DU0_DB6, FN_LCDOUT22,
257 FN_DU0_DB7, FN_LCDOUT23, FN_DU0_DOTCLKIN, FN_QSTVA_QVS,
258 FN_TX3_D_IRDA_TX_D, FN_SCL3_B, FN_DU0_DOTCLKOUT0, FN_QCLK,
259 FN_DU0_DOTCLKOUT1, FN_QSTVB_QVE, FN_RX3_D_IRDA_RX_D, FN_SDA3_B,
260 FN_SDA2_C, FN_DACK0_B, FN_DRACK0_B, FN_DU0_EXHSYNC_DU0_HSYNC,
261 FN_QSTH_QHS, FN_DU0_EXVSYNC_DU0_VSYNC, FN_QSTB_QHE,
262 FN_DU0_EXODDF_DU0_ODDF_DISP_CDE, FN_QCPV_QDE, FN_CAN1_TX,
263 FN_TX2_C, FN_SCL2_C, FN_REMOCON,
264
265 /* IPSR4 */
266 FN_DU0_DISP, FN_QPOLA, FN_CAN_CLK_C, FN_SCK2_C,
267 FN_DU0_CDE, FN_QPOLB, FN_CAN1_RX, FN_RX2_C,
268 FN_DREQ0_B, FN_SSI_SCK78_B, FN_SCK0_B, FN_DU1_DR0,
269 FN_VI2_DATA0_VI2_B0, FN_PWM6, FN_SD3_CLK, FN_TX3_E_IRDA_TX_E,
270 FN_AUDCK, FN_PWMFSW0_B, FN_DU1_DR1, FN_VI2_DATA1_VI2_B1,
271 FN_PWM0, FN_SD3_CMD, FN_RX3_E_IRDA_RX_E, FN_AUDSYNC,
272 FN_CTS0_D, FN_DU1_DR2, FN_VI2_G0, FN_DU1_DR3,
273 FN_VI2_G1, FN_DU1_DR4, FN_VI2_G2, FN_DU1_DR5,
274 FN_VI2_G3, FN_DU1_DR6, FN_VI2_G4, FN_DU1_DR7,
275 FN_VI2_G5, FN_DU1_DG0, FN_VI2_DATA2_VI2_B2, FN_SCL1_B,
276 FN_SD3_DAT2, FN_SCK3_E, FN_AUDATA6, FN_TX0_D,
277 FN_DU1_DG1, FN_VI2_DATA3_VI2_B3, FN_SDA1_B, FN_SD3_DAT3,
278 FN_SCK5, FN_AUDATA7, FN_RX0_D, FN_DU1_DG2,
279 FN_VI2_G6, FN_DU1_DG3, FN_VI2_G7, FN_DU1_DG4,
280 FN_VI2_R0, FN_DU1_DG5, FN_VI2_R1, FN_DU1_DG6,
281 FN_VI2_R2, FN_DU1_DG7, FN_VI2_R3, FN_DU1_DB0,
282 FN_VI2_DATA4_VI2_B4, FN_SCL2_B, FN_SD3_DAT0, FN_TX5,
283 FN_SCK0_D,
284
285 /* IPSR5 */
286 FN_DU1_DB1, FN_VI2_DATA5_VI2_B5, FN_SDA2_B, FN_SD3_DAT1,
287 FN_RX5, FN_RTS0_D_TANS_D, FN_DU1_DB2, FN_VI2_R4,
288 FN_DU1_DB3, FN_VI2_R5, FN_DU1_DB4, FN_VI2_R6,
289 FN_DU1_DB5, FN_VI2_R7, FN_DU1_DB6, FN_SCL2_D,
290 FN_DU1_DB7, FN_SDA2_D, FN_DU1_DOTCLKIN, FN_VI2_CLKENB,
291 FN_HSPI_CS1, FN_SCL1_D, FN_DU1_DOTCLKOUT, FN_VI2_FIELD,
292 FN_SDA1_D, FN_DU1_EXHSYNC_DU1_HSYNC, FN_VI2_HSYNC,
293 FN_VI3_HSYNC, FN_DU1_EXVSYNC_DU1_VSYNC, FN_VI2_VSYNC, FN_VI3_VSYNC,
294 FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_VI2_CLK, FN_TX3_B_IRDA_TX_B,
295 FN_SD3_CD, FN_HSPI_TX1, FN_VI1_CLKENB, FN_VI3_CLKENB,
296 FN_AUDIO_CLKC, FN_TX2_D, FN_SPEEDIN, FN_GPS_SIGN_D,
297 FN_DU1_DISP, FN_VI2_DATA6_VI2_B6, FN_TCLK0, FN_QSTVA_B_QVS_B,
298 FN_HSPI_CLK1, FN_SCK2_D, FN_AUDIO_CLKOUT_B, FN_GPS_MAG_D,
299 FN_DU1_CDE, FN_VI2_DATA7_VI2_B7, FN_RX3_B_IRDA_RX_B,
300 FN_SD3_WP, FN_HSPI_RX1, FN_VI1_FIELD, FN_VI3_FIELD,
301 FN_AUDIO_CLKOUT, FN_RX2_D, FN_GPS_CLK_C, FN_GPS_CLK_D,
302 FN_AUDIO_CLKA, FN_CAN_TXCLK, FN_AUDIO_CLKB, FN_USB_OVC2,
303 FN_CAN_DEBUGOUT0, FN_MOUT0,
304
305 /* IPSR6 */
306 FN_SSI_SCK0129, FN_CAN_DEBUGOUT1, FN_MOUT1, FN_SSI_WS0129,
307 FN_CAN_DEBUGOUT2, FN_MOUT2, FN_SSI_SDATA0, FN_CAN_DEBUGOUT3,
308 FN_MOUT5, FN_SSI_SDATA1, FN_CAN_DEBUGOUT4, FN_MOUT6,
309 FN_SSI_SDATA2, FN_CAN_DEBUGOUT5, FN_SSI_SCK34, FN_CAN_DEBUGOUT6,
310 FN_CAN0_TX_B, FN_IERX, FN_SSI_SCK9_C, FN_SSI_WS34,
311 FN_CAN_DEBUGOUT7, FN_CAN0_RX_B, FN_IETX, FN_SSI_WS9_C,
312 FN_SSI_SDATA3, FN_PWM0_C, FN_CAN_DEBUGOUT8, FN_CAN_CLK_B,
313 FN_IECLK, FN_SCIF_CLK_B, FN_TCLK0_B, FN_SSI_SDATA4,
314 FN_CAN_DEBUGOUT9, FN_SSI_SDATA9_C, FN_SSI_SCK5, FN_ADICLK,
315 FN_CAN_DEBUGOUT10, FN_SCK3, FN_TCLK0_D, FN_SSI_WS5,
316 FN_ADICS_SAMP, FN_CAN_DEBUGOUT11, FN_TX3_IRDA_TX, FN_SSI_SDATA5,
317 FN_ADIDATA, FN_CAN_DEBUGOUT12, FN_RX3_IRDA_RX, FN_SSI_SCK6,
318 FN_ADICHS0, FN_CAN0_TX, FN_IERX_B,
319
320 /* IPSR7 */
321 FN_SSI_WS6, FN_ADICHS1, FN_CAN0_RX, FN_IETX_B,
322 FN_SSI_SDATA6, FN_ADICHS2, FN_CAN_CLK, FN_IECLK_B,
323 FN_SSI_SCK78, FN_CAN_DEBUGOUT13, FN_IRQ0_B, FN_SSI_SCK9_B,
324 FN_HSPI_CLK1_C, FN_SSI_WS78, FN_CAN_DEBUGOUT14, FN_IRQ1_B,
325 FN_SSI_WS9_B, FN_HSPI_CS1_C, FN_SSI_SDATA7, FN_CAN_DEBUGOUT15,
326 FN_IRQ2_B, FN_TCLK1_C, FN_HSPI_TX1_C, FN_SSI_SDATA8,
327 FN_VSP, FN_IRQ3_B, FN_HSPI_RX1_C, FN_SD0_CLK,
328 FN_ATACS01, FN_SCK1_B, FN_SD0_CMD, FN_ATACS11,
329 FN_TX1_B, FN_CC5_TDO, FN_SD0_DAT0, FN_ATADIR1,
330 FN_RX1_B, FN_CC5_TRST, FN_SD0_DAT1, FN_ATAG1,
331 FN_SCK2_B, FN_CC5_TMS, FN_SD0_DAT2, FN_ATARD1,
332 FN_TX2_B, FN_CC5_TCK, FN_SD0_DAT3, FN_ATAWR1,
333 FN_RX2_B, FN_CC5_TDI, FN_SD0_CD, FN_DREQ2,
334 FN_RTS1_B_TANS_B, FN_SD0_WP, FN_DACK2, FN_CTS1_B,
335
336 /* IPSR8 */
337 FN_HSPI_CLK0, FN_CTS0, FN_USB_OVC0, FN_AD_CLK,
338 FN_CC5_STATE4, FN_CC5_STATE12, FN_CC5_STATE20, FN_CC5_STATE28,
339 FN_CC5_STATE36, FN_HSPI_CS0, FN_RTS0_TANS, FN_USB_OVC1,
340 FN_AD_DI, FN_CC5_STATE5, FN_CC5_STATE13, FN_CC5_STATE21,
341 FN_CC5_STATE29, FN_CC5_STATE37, FN_HSPI_TX0, FN_TX0,
342 FN_CAN_DEBUG_HW_TRIGGER, FN_AD_DO, FN_CC5_STATE6, FN_CC5_STATE14,
343 FN_CC5_STATE22, FN_CC5_STATE30, FN_CC5_STATE38, FN_HSPI_RX0,
344 FN_RX0, FN_CAN_STEP0, FN_AD_NCS, FN_CC5_STATE7,
345 FN_CC5_STATE15, FN_CC5_STATE23, FN_CC5_STATE31, FN_CC5_STATE39,
346 FN_FMCLK, FN_RDS_CLK, FN_PCMOE, FN_BPFCLK,
347 FN_PCMWE, FN_FMIN, FN_RDS_DATA, FN_VI0_CLK,
348 FN_MMC1_CLK, FN_VI0_CLKENB, FN_TX1_C, FN_HTX1_B,
349 FN_MT1_SYNC, FN_VI0_FIELD, FN_RX1_C, FN_HRX1_B,
350 FN_VI0_HSYNC, FN_VI0_DATA0_B_VI0_B0_B, FN_CTS1_C, FN_TX4_D,
351 FN_MMC1_CMD, FN_HSCK1_B, FN_VI0_VSYNC, FN_VI0_DATA1_B_VI0_B1_B,
352 FN_RTS1_C_TANS_C, FN_RX4_D, FN_PWMFSW0_C,
353
354 /* IPSR9 */
355 FN_VI0_DATA0_VI0_B0, FN_HRTS1_B, FN_MT1_VCXO, FN_VI0_DATA1_VI0_B1,
356 FN_HCTS1_B, FN_MT1_PWM, FN_VI0_DATA2_VI0_B2, FN_MMC1_D0,
357 FN_VI0_DATA3_VI0_B3, FN_MMC1_D1, FN_VI0_DATA4_VI0_B4, FN_MMC1_D2,
358 FN_VI0_DATA5_VI0_B5, FN_MMC1_D3, FN_VI0_DATA6_VI0_B6, FN_MMC1_D4,
359 FN_ARM_TRACEDATA_0, FN_VI0_DATA7_VI0_B7, FN_MMC1_D5,
360 FN_ARM_TRACEDATA_1, FN_VI0_G0, FN_SSI_SCK78_C, FN_IRQ0,
361 FN_ARM_TRACEDATA_2, FN_VI0_G1, FN_SSI_WS78_C, FN_IRQ1,
362 FN_ARM_TRACEDATA_3, FN_VI0_G2, FN_ETH_TXD1, FN_MMC1_D6,
363 FN_ARM_TRACEDATA_4, FN_TS_SPSYNC0, FN_VI0_G3, FN_ETH_CRS_DV,
364 FN_MMC1_D7, FN_ARM_TRACEDATA_5, FN_TS_SDAT0, FN_VI0_G4,
365 FN_ETH_TX_EN, FN_SD2_DAT0_B, FN_ARM_TRACEDATA_6, FN_VI0_G5,
366 FN_ETH_RX_ER, FN_SD2_DAT1_B, FN_ARM_TRACEDATA_7, FN_VI0_G6,
367 FN_ETH_RXD0, FN_SD2_DAT2_B, FN_ARM_TRACEDATA_8, FN_VI0_G7,
368 FN_ETH_RXD1, FN_SD2_DAT3_B, FN_ARM_TRACEDATA_9,
369
370 /* IPSR10 */
371 FN_VI0_R0, FN_SSI_SDATA7_C, FN_SCK1_C, FN_DREQ1_B,
372 FN_ARM_TRACEDATA_10, FN_DREQ0_C, FN_VI0_R1, FN_SSI_SDATA8_C,
373 FN_DACK1_B, FN_ARM_TRACEDATA_11, FN_DACK0_C, FN_DRACK0_C,
374 FN_VI0_R2, FN_ETH_LINK, FN_SD2_CLK_B, FN_IRQ2,
375 FN_ARM_TRACEDATA_12, FN_VI0_R3, FN_ETH_MAGIC, FN_SD2_CMD_B,
376 FN_IRQ3, FN_ARM_TRACEDATA_13, FN_VI0_R4, FN_ETH_REFCLK,
377 FN_SD2_CD_B, FN_HSPI_CLK1_B, FN_ARM_TRACEDATA_14, FN_MT1_CLK,
378 FN_TS_SCK0, FN_VI0_R5, FN_ETH_TXD0, FN_SD2_WP_B, FN_HSPI_CS1_B,
379 FN_ARM_TRACEDATA_15, FN_MT1_D, FN_TS_SDEN0, FN_VI0_R6,
380 FN_ETH_MDC, FN_DREQ2_C, FN_HSPI_TX1_B, FN_TRACECLK,
381 FN_MT1_BEN, FN_PWMFSW0_D, FN_VI0_R7, FN_ETH_MDIO,
382 FN_DACK2_C, FN_HSPI_RX1_B, FN_SCIF_CLK_D, FN_TRACECTL,
383 FN_MT1_PEN, FN_VI1_CLK, FN_SIM_D, FN_SDA3,
384 FN_VI1_HSYNC, FN_VI3_CLK, FN_SSI_SCK4, FN_GPS_SIGN_C,
385 FN_PWMFSW0_E, FN_VI1_VSYNC, FN_AUDIO_CLKOUT_C, FN_SSI_WS4,
386 FN_SIM_CLK, FN_GPS_MAG_C, FN_SPV_TRST, FN_SCL3,
387
388 /* IPSR11 */
389 FN_VI1_DATA0_VI1_B0, FN_SD2_DAT0, FN_SIM_RST, FN_SPV_TCK,
390 FN_ADICLK_B, FN_VI1_DATA1_VI1_B1, FN_SD2_DAT1, FN_MT0_CLK,
391 FN_SPV_TMS, FN_ADICS_B_SAMP_B, FN_VI1_DATA2_VI1_B2, FN_SD2_DAT2,
392 FN_MT0_D, FN_SPVTDI, FN_ADIDATA_B, FN_VI1_DATA3_VI1_B3,
393 FN_SD2_DAT3, FN_MT0_BEN, FN_SPV_TDO, FN_ADICHS0_B,
394 FN_VI1_DATA4_VI1_B4, FN_SD2_CLK, FN_MT0_PEN, FN_SPA_TRST,
395 FN_HSPI_CLK1_D, FN_ADICHS1_B, FN_VI1_DATA5_VI1_B5, FN_SD2_CMD,
396 FN_MT0_SYNC, FN_SPA_TCK, FN_HSPI_CS1_D, FN_ADICHS2_B,
397 FN_VI1_DATA6_VI1_B6, FN_SD2_CD, FN_MT0_VCXO, FN_SPA_TMS,
398 FN_HSPI_TX1_D, FN_VI1_DATA7_VI1_B7, FN_SD2_WP, FN_MT0_PWM,
399 FN_SPA_TDI, FN_HSPI_RX1_D, FN_VI1_G0, FN_VI3_DATA0,
Laurent Pinchart2a028182013-01-09 22:32:25 +0100400 FN_TS_SCK1, FN_DREQ2_B, FN_TX2,
Laurent Pinchart881023d2012-12-15 23:51:22 +0100401 FN_SPA_TDO, FN_HCTS0_B, FN_VI1_G1, FN_VI3_DATA1,
402 FN_SSI_SCK1, FN_TS_SDEN1, FN_DACK2_B, FN_RX2, FN_HRTS0_B,
403
404 /* IPSR12 */
405 FN_VI1_G2, FN_VI3_DATA2, FN_SSI_WS1, FN_TS_SPSYNC1,
406 FN_SCK2, FN_HSCK0_B, FN_VI1_G3, FN_VI3_DATA3,
407 FN_SSI_SCK2, FN_TS_SDAT1, FN_SCL1_C, FN_HTX0_B,
408 FN_VI1_G4, FN_VI3_DATA4, FN_SSI_WS2, FN_SDA1_C,
409 FN_SIM_RST_B, FN_HRX0_B, FN_VI1_G5, FN_VI3_DATA5,
410 FN_GPS_CLK, FN_FSE, FN_TX4_B, FN_SIM_D_B,
411 FN_VI1_G6, FN_VI3_DATA6, FN_GPS_SIGN, FN_FRB,
412 FN_RX4_B, FN_SIM_CLK_B, FN_VI1_G7, FN_VI3_DATA7,
413 FN_GPS_MAG, FN_FCE, FN_SCK4_B,
414
415 FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, FN_SEL_SCIF5_2, FN_SEL_SCIF5_3,
416 FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, FN_SEL_SCIF4_3,
417 FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2,
418 FN_SEL_SCIF3_3, FN_SEL_SCIF3_4,
419 FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2,
420 FN_SEL_SCIF2_3, FN_SEL_SCIF2_4,
421 FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2,
422 FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, FN_SEL_SCIF0_3,
423 FN_SEL_SSI9_0, FN_SEL_SSI9_1, FN_SEL_SSI9_2,
424 FN_SEL_SSI8_0, FN_SEL_SSI8_1, FN_SEL_SSI8_2,
425 FN_SEL_SSI7_0, FN_SEL_SSI7_1, FN_SEL_SSI7_2,
426 FN_SEL_VI0_0, FN_SEL_VI0_1,
427 FN_SEL_SD2_0, FN_SEL_SD2_1,
428 FN_SEL_INT3_0, FN_SEL_INT3_1,
429 FN_SEL_INT2_0, FN_SEL_INT2_1,
430 FN_SEL_INT1_0, FN_SEL_INT1_1,
431 FN_SEL_INT0_0, FN_SEL_INT0_1,
432 FN_SEL_IE_0, FN_SEL_IE_1,
433 FN_SEL_EXBUS2_0, FN_SEL_EXBUS2_1, FN_SEL_EXBUS2_2,
434 FN_SEL_EXBUS1_0, FN_SEL_EXBUS1_1,
435 FN_SEL_EXBUS0_0, FN_SEL_EXBUS0_1, FN_SEL_EXBUS0_2,
436
437 FN_SEL_TMU1_0, FN_SEL_TMU1_1, FN_SEL_TMU1_2,
438 FN_SEL_TMU0_0, FN_SEL_TMU0_1, FN_SEL_TMU0_2, FN_SEL_TMU0_3,
439 FN_SEL_SCIF_0, FN_SEL_SCIF_1, FN_SEL_SCIF_2, FN_SEL_SCIF_3,
440 FN_SEL_CANCLK_0, FN_SEL_CANCLK_1, FN_SEL_CANCLK_2,
441 FN_SEL_CAN0_0, FN_SEL_CAN0_1,
442 FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
443 FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1,
444 FN_SEL_PWMFSW_0, FN_SEL_PWMFSW_1, FN_SEL_PWMFSW_2,
445 FN_SEL_PWMFSW_3, FN_SEL_PWMFSW_4,
446 FN_SEL_ADI_0, FN_SEL_ADI_1,
447 FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
448 FN_SEL_SIM_0, FN_SEL_SIM_1,
449 FN_SEL_HSPI2_0, FN_SEL_HSPI2_1,
450 FN_SEL_HSPI1_0, FN_SEL_HSPI1_1, FN_SEL_HSPI1_2, FN_SEL_HSPI1_3,
451 FN_SEL_I2C3_0, FN_SEL_I2C3_1,
452 FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
453 FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, FN_SEL_I2C1_3,
454 PINMUX_FUNCTION_END,
455
456 PINMUX_MARK_BEGIN,
457 AVS1_MARK, AVS2_MARK, A17_MARK, A18_MARK,
458 A19_MARK,
459
460 RD_WR_MARK, FWE_MARK, ATAG0_MARK, VI1_R7_MARK,
461 HRTS1_MARK, RX4_C_MARK,
462 CS1_A26_MARK, HSPI_TX2_MARK, SDSELF_B_MARK,
463 CS0_MARK, HSPI_CS2_B_MARK,
464 CLKOUT_MARK, TX3C_IRDA_TX_C_MARK, PWM0_B_MARK,
465 A25_MARK, SD1_WP_MARK, MMC0_D5_MARK, FD5_MARK,
466 HSPI_RX2_MARK, VI1_R3_MARK, TX5_B_MARK, SSI_SDATA7_B_MARK, CTS0_B_MARK,
467 A24_MARK, SD1_CD_MARK, MMC0_D4_MARK, FD4_MARK,
468 HSPI_CS2_MARK, VI1_R2_MARK, SSI_WS78_B_MARK,
469 A23_MARK, FCLE_MARK, HSPI_CLK2_MARK, VI1_R1_MARK,
470 A22_MARK, RX5_D_MARK, HSPI_RX2_B_MARK, VI1_R0_MARK,
471 A21_MARK, SCK5_D_MARK, HSPI_CLK2_B_MARK,
472 A20_MARK, TX5_D_MARK, HSPI_TX2_B_MARK,
473 A0_MARK, SD1_DAT3_MARK, MMC0_D3_MARK, FD3_MARK,
474 BS_MARK, SD1_DAT2_MARK, MMC0_D2_MARK, FD2_MARK,
475 ATADIR0_MARK, SDSELF_MARK, HCTS1_MARK, TX4_C_MARK,
Laurent Pinchart0f6e2e02013-03-07 13:36:36 +0100476 USB_PENC0_MARK, USB_PENC1_MARK, USB_PENC2_MARK,
477 SCK0_MARK, PWM1_MARK, PWMFSW0_MARK,
Laurent Pinchart881023d2012-12-15 23:51:22 +0100478 SCIF_CLK_MARK, TCLK0_C_MARK,
479
480 EX_CS0_MARK, RX3_C_IRDA_RX_C_MARK, MMC0_D6_MARK,
481 FD6_MARK, EX_CS1_MARK, MMC0_D7_MARK, FD7_MARK,
482 EX_CS2_MARK, SD1_CLK_MARK, MMC0_CLK_MARK, FALE_MARK,
483 ATACS00_MARK, EX_CS3_MARK, SD1_CMD_MARK, MMC0_CMD_MARK,
484 FRE_MARK, ATACS10_MARK, VI1_R4_MARK, RX5_B_MARK,
485 HSCK1_MARK, SSI_SDATA8_B_MARK, RTS0_B_TANS_B_MARK, SSI_SDATA9_MARK,
486 EX_CS4_MARK, SD1_DAT0_MARK, MMC0_D0_MARK, FD0_MARK,
487 ATARD0_MARK, VI1_R5_MARK, SCK5_B_MARK, HTX1_MARK,
488 TX2_E_MARK, TX0_B_MARK, SSI_SCK9_MARK, EX_CS5_MARK,
489 SD1_DAT1_MARK, MMC0_D1_MARK, FD1_MARK, ATAWR0_MARK,
490 VI1_R6_MARK, HRX1_MARK, RX2_E_MARK, RX0_B_MARK,
491 SSI_WS9_MARK, MLB_CLK_MARK, PWM2_MARK, SCK4_MARK,
492 MLB_SIG_MARK, PWM3_MARK, TX4_MARK, MLB_DAT_MARK,
493 PWM4_MARK, RX4_MARK, HTX0_MARK, TX1_MARK,
494 SDATA_MARK, CTS0_C_MARK, SUB_TCK_MARK, CC5_STATE2_MARK,
495 CC5_STATE10_MARK, CC5_STATE18_MARK, CC5_STATE26_MARK, CC5_STATE34_MARK,
496
497 HRX0_MARK, RX1_MARK, SCKZ_MARK, RTS0_C_TANS_C_MARK,
498 SUB_TDI_MARK, CC5_STATE3_MARK, CC5_STATE11_MARK, CC5_STATE19_MARK,
499 CC5_STATE27_MARK, CC5_STATE35_MARK, HSCK0_MARK, SCK1_MARK,
500 MTS_MARK, PWM5_MARK, SCK0_C_MARK, SSI_SDATA9_B_MARK,
501 SUB_TDO_MARK, CC5_STATE0_MARK, CC5_STATE8_MARK, CC5_STATE16_MARK,
502 CC5_STATE24_MARK, CC5_STATE32_MARK, HCTS0_MARK, CTS1_MARK,
503 STM_MARK, PWM0_D_MARK, RX0_C_MARK, SCIF_CLK_C_MARK,
504 SUB_TRST_MARK, TCLK1_B_MARK, CC5_OSCOUT_MARK, HRTS0_MARK,
505 RTS1_TANS_MARK, MDATA_MARK, TX0_C_MARK, SUB_TMS_MARK,
506 CC5_STATE1_MARK, CC5_STATE9_MARK, CC5_STATE17_MARK, CC5_STATE25_MARK,
507 CC5_STATE33_MARK, DU0_DR0_MARK, LCDOUT0_MARK, DREQ0_MARK,
508 GPS_CLK_B_MARK, AUDATA0_MARK, TX5_C_MARK, DU0_DR1_MARK,
509 LCDOUT1_MARK, DACK0_MARK, DRACK0_MARK, GPS_SIGN_B_MARK,
510 AUDATA1_MARK, RX5_C_MARK, DU0_DR2_MARK, LCDOUT2_MARK,
511 DU0_DR3_MARK, LCDOUT3_MARK, DU0_DR4_MARK, LCDOUT4_MARK,
512 DU0_DR5_MARK, LCDOUT5_MARK, DU0_DR6_MARK, LCDOUT6_MARK,
513 DU0_DR7_MARK, LCDOUT7_MARK, DU0_DG0_MARK, LCDOUT8_MARK,
514 DREQ1_MARK, SCL2_MARK, AUDATA2_MARK,
515
516 DU0_DG1_MARK, LCDOUT9_MARK, DACK1_MARK, SDA2_MARK,
517 AUDATA3_MARK, DU0_DG2_MARK, LCDOUT10_MARK, DU0_DG3_MARK,
518 LCDOUT11_MARK, DU0_DG4_MARK, LCDOUT12_MARK, DU0_DG5_MARK,
519 LCDOUT13_MARK, DU0_DG6_MARK, LCDOUT14_MARK, DU0_DG7_MARK,
520 LCDOUT15_MARK, DU0_DB0_MARK, LCDOUT16_MARK, EX_WAIT1_MARK,
521 SCL1_MARK, TCLK1_MARK, AUDATA4_MARK, DU0_DB1_MARK,
522 LCDOUT17_MARK, EX_WAIT2_MARK, SDA1_MARK, GPS_MAG_B_MARK,
523 AUDATA5_MARK, SCK5_C_MARK, DU0_DB2_MARK, LCDOUT18_MARK,
524 DU0_DB3_MARK, LCDOUT19_MARK, DU0_DB4_MARK, LCDOUT20_MARK,
525 DU0_DB5_MARK, LCDOUT21_MARK, DU0_DB6_MARK, LCDOUT22_MARK,
526 DU0_DB7_MARK, LCDOUT23_MARK, DU0_DOTCLKIN_MARK, QSTVA_QVS_MARK,
527 TX3_D_IRDA_TX_D_MARK, SCL3_B_MARK, DU0_DOTCLKOUT0_MARK, QCLK_MARK,
528 DU0_DOTCLKOUT1_MARK, QSTVB_QVE_MARK, RX3_D_IRDA_RX_D_MARK, SDA3_B_MARK,
529 SDA2_C_MARK, DACK0_B_MARK, DRACK0_B_MARK, DU0_EXHSYNC_DU0_HSYNC_MARK,
530 QSTH_QHS_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK, QSTB_QHE_MARK,
531 DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK, QCPV_QDE_MARK, CAN1_TX_MARK,
532 TX2_C_MARK, SCL2_C_MARK, REMOCON_MARK,
533
534 DU0_DISP_MARK, QPOLA_MARK, CAN_CLK_C_MARK, SCK2_C_MARK,
535 DU0_CDE_MARK, QPOLB_MARK, CAN1_RX_MARK, RX2_C_MARK,
536 DREQ0_B_MARK, SSI_SCK78_B_MARK, SCK0_B_MARK, DU1_DR0_MARK,
537 VI2_DATA0_VI2_B0_MARK, PWM6_MARK, SD3_CLK_MARK, TX3_E_IRDA_TX_E_MARK,
538 AUDCK_MARK, PWMFSW0_B_MARK, DU1_DR1_MARK, VI2_DATA1_VI2_B1_MARK,
539 PWM0_MARK, SD3_CMD_MARK, RX3_E_IRDA_RX_E_MARK, AUDSYNC_MARK,
540 CTS0_D_MARK, DU1_DR2_MARK, VI2_G0_MARK, DU1_DR3_MARK,
541 VI2_G1_MARK, DU1_DR4_MARK, VI2_G2_MARK, DU1_DR5_MARK,
542 VI2_G3_MARK, DU1_DR6_MARK, VI2_G4_MARK, DU1_DR7_MARK,
543 VI2_G5_MARK, DU1_DG0_MARK, VI2_DATA2_VI2_B2_MARK, SCL1_B_MARK,
544 SD3_DAT2_MARK, SCK3_E_MARK, AUDATA6_MARK, TX0_D_MARK,
545 DU1_DG1_MARK, VI2_DATA3_VI2_B3_MARK, SDA1_B_MARK, SD3_DAT3_MARK,
546 SCK5_MARK, AUDATA7_MARK, RX0_D_MARK, DU1_DG2_MARK,
547 VI2_G6_MARK, DU1_DG3_MARK, VI2_G7_MARK, DU1_DG4_MARK,
548 VI2_R0_MARK, DU1_DG5_MARK, VI2_R1_MARK, DU1_DG6_MARK,
549 VI2_R2_MARK, DU1_DG7_MARK, VI2_R3_MARK, DU1_DB0_MARK,
550 VI2_DATA4_VI2_B4_MARK, SCL2_B_MARK, SD3_DAT0_MARK, TX5_MARK,
551 SCK0_D_MARK,
552
553 DU1_DB1_MARK, VI2_DATA5_VI2_B5_MARK, SDA2_B_MARK, SD3_DAT1_MARK,
554 RX5_MARK, RTS0_D_TANS_D_MARK, DU1_DB2_MARK, VI2_R4_MARK,
555 DU1_DB3_MARK, VI2_R5_MARK, DU1_DB4_MARK, VI2_R6_MARK,
556 DU1_DB5_MARK, VI2_R7_MARK, DU1_DB6_MARK, SCL2_D_MARK,
557 DU1_DB7_MARK, SDA2_D_MARK, DU1_DOTCLKIN_MARK, VI2_CLKENB_MARK,
558 HSPI_CS1_MARK, SCL1_D_MARK, DU1_DOTCLKOUT_MARK, VI2_FIELD_MARK,
559 SDA1_D_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK, VI2_HSYNC_MARK,
560 VI3_HSYNC_MARK, DU1_EXVSYNC_DU1_VSYNC_MARK, VI2_VSYNC_MARK,
561 VI3_VSYNC_MARK, DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK, VI2_CLK_MARK,
562 TX3_B_IRDA_TX_B_MARK, SD3_CD_MARK, HSPI_TX1_MARK, VI1_CLKENB_MARK,
563 VI3_CLKENB_MARK, AUDIO_CLKC_MARK, TX2_D_MARK, SPEEDIN_MARK,
564 GPS_SIGN_D_MARK, DU1_DISP_MARK, VI2_DATA6_VI2_B6_MARK, TCLK0_MARK,
565 QSTVA_B_QVS_B_MARK, HSPI_CLK1_MARK, SCK2_D_MARK, AUDIO_CLKOUT_B_MARK,
566 GPS_MAG_D_MARK, DU1_CDE_MARK, VI2_DATA7_VI2_B7_MARK,
567 RX3_B_IRDA_RX_B_MARK, SD3_WP_MARK, HSPI_RX1_MARK, VI1_FIELD_MARK,
568 VI3_FIELD_MARK, AUDIO_CLKOUT_MARK, RX2_D_MARK, GPS_CLK_C_MARK,
569 GPS_CLK_D_MARK, AUDIO_CLKA_MARK, CAN_TXCLK_MARK, AUDIO_CLKB_MARK,
570 USB_OVC2_MARK, CAN_DEBUGOUT0_MARK, MOUT0_MARK,
571
572 SSI_SCK0129_MARK, CAN_DEBUGOUT1_MARK, MOUT1_MARK, SSI_WS0129_MARK,
573 CAN_DEBUGOUT2_MARK, MOUT2_MARK, SSI_SDATA0_MARK, CAN_DEBUGOUT3_MARK,
574 MOUT5_MARK, SSI_SDATA1_MARK, CAN_DEBUGOUT4_MARK, MOUT6_MARK,
575 SSI_SDATA2_MARK, CAN_DEBUGOUT5_MARK, SSI_SCK34_MARK,
576 CAN_DEBUGOUT6_MARK, CAN0_TX_B_MARK, IERX_MARK, SSI_SCK9_C_MARK,
577 SSI_WS34_MARK, CAN_DEBUGOUT7_MARK, CAN0_RX_B_MARK, IETX_MARK,
578 SSI_WS9_C_MARK, SSI_SDATA3_MARK, PWM0_C_MARK, CAN_DEBUGOUT8_MARK,
579 CAN_CLK_B_MARK, IECLK_MARK, SCIF_CLK_B_MARK, TCLK0_B_MARK,
580 SSI_SDATA4_MARK, CAN_DEBUGOUT9_MARK, SSI_SDATA9_C_MARK, SSI_SCK5_MARK,
581 ADICLK_MARK, CAN_DEBUGOUT10_MARK, SCK3_MARK, TCLK0_D_MARK,
582 SSI_WS5_MARK, ADICS_SAMP_MARK, CAN_DEBUGOUT11_MARK, TX3_IRDA_TX_MARK,
583 SSI_SDATA5_MARK, ADIDATA_MARK, CAN_DEBUGOUT12_MARK, RX3_IRDA_RX_MARK,
584 SSI_SCK6_MARK, ADICHS0_MARK, CAN0_TX_MARK, IERX_B_MARK,
585
586 SSI_WS6_MARK, ADICHS1_MARK, CAN0_RX_MARK, IETX_B_MARK,
587 SSI_SDATA6_MARK, ADICHS2_MARK, CAN_CLK_MARK, IECLK_B_MARK,
588 SSI_SCK78_MARK, CAN_DEBUGOUT13_MARK, IRQ0_B_MARK, SSI_SCK9_B_MARK,
589 HSPI_CLK1_C_MARK, SSI_WS78_MARK, CAN_DEBUGOUT14_MARK, IRQ1_B_MARK,
590 SSI_WS9_B_MARK, HSPI_CS1_C_MARK, SSI_SDATA7_MARK, CAN_DEBUGOUT15_MARK,
591 IRQ2_B_MARK, TCLK1_C_MARK, HSPI_TX1_C_MARK, SSI_SDATA8_MARK,
592 VSP_MARK, IRQ3_B_MARK, HSPI_RX1_C_MARK, SD0_CLK_MARK,
593 ATACS01_MARK, SCK1_B_MARK, SD0_CMD_MARK, ATACS11_MARK,
594 TX1_B_MARK, CC5_TDO_MARK, SD0_DAT0_MARK, ATADIR1_MARK,
595 RX1_B_MARK, CC5_TRST_MARK, SD0_DAT1_MARK, ATAG1_MARK,
596 SCK2_B_MARK, CC5_TMS_MARK, SD0_DAT2_MARK, ATARD1_MARK,
597 TX2_B_MARK, CC5_TCK_MARK, SD0_DAT3_MARK, ATAWR1_MARK,
598 RX2_B_MARK, CC5_TDI_MARK, SD0_CD_MARK, DREQ2_MARK,
599 RTS1_B_TANS_B_MARK, SD0_WP_MARK, DACK2_MARK, CTS1_B_MARK,
600
601 HSPI_CLK0_MARK, CTS0_MARK, USB_OVC0_MARK, AD_CLK_MARK,
602 CC5_STATE4_MARK, CC5_STATE12_MARK, CC5_STATE20_MARK, CC5_STATE28_MARK,
603 CC5_STATE36_MARK, HSPI_CS0_MARK, RTS0_TANS_MARK, USB_OVC1_MARK,
604 AD_DI_MARK, CC5_STATE5_MARK, CC5_STATE13_MARK, CC5_STATE21_MARK,
605 CC5_STATE29_MARK, CC5_STATE37_MARK, HSPI_TX0_MARK, TX0_MARK,
606 CAN_DEBUG_HW_TRIGGER_MARK, AD_DO_MARK, CC5_STATE6_MARK,
607 CC5_STATE14_MARK, CC5_STATE22_MARK, CC5_STATE30_MARK,
608 CC5_STATE38_MARK, HSPI_RX0_MARK, RX0_MARK, CAN_STEP0_MARK,
609 AD_NCS_MARK, CC5_STATE7_MARK, CC5_STATE15_MARK, CC5_STATE23_MARK,
610 CC5_STATE31_MARK, CC5_STATE39_MARK, FMCLK_MARK, RDS_CLK_MARK,
611 PCMOE_MARK, BPFCLK_MARK, PCMWE_MARK, FMIN_MARK, RDS_DATA_MARK,
612 VI0_CLK_MARK, MMC1_CLK_MARK, VI0_CLKENB_MARK, TX1_C_MARK, HTX1_B_MARK,
613 MT1_SYNC_MARK, VI0_FIELD_MARK, RX1_C_MARK, HRX1_B_MARK,
614 VI0_HSYNC_MARK, VI0_DATA0_B_VI0_B0_B_MARK, CTS1_C_MARK, TX4_D_MARK,
615 MMC1_CMD_MARK, HSCK1_B_MARK, VI0_VSYNC_MARK, VI0_DATA1_B_VI0_B1_B_MARK,
616 RTS1_C_TANS_C_MARK, RX4_D_MARK, PWMFSW0_C_MARK,
617
618 VI0_DATA0_VI0_B0_MARK, HRTS1_B_MARK, MT1_VCXO_MARK,
619 VI0_DATA1_VI0_B1_MARK, HCTS1_B_MARK, MT1_PWM_MARK,
620 VI0_DATA2_VI0_B2_MARK, MMC1_D0_MARK, VI0_DATA3_VI0_B3_MARK,
621 MMC1_D1_MARK, VI0_DATA4_VI0_B4_MARK, MMC1_D2_MARK,
622 VI0_DATA5_VI0_B5_MARK, MMC1_D3_MARK, VI0_DATA6_VI0_B6_MARK,
623 MMC1_D4_MARK, ARM_TRACEDATA_0_MARK, VI0_DATA7_VI0_B7_MARK,
624 MMC1_D5_MARK, ARM_TRACEDATA_1_MARK, VI0_G0_MARK, SSI_SCK78_C_MARK,
625 IRQ0_MARK, ARM_TRACEDATA_2_MARK, VI0_G1_MARK, SSI_WS78_C_MARK,
626 IRQ1_MARK, ARM_TRACEDATA_3_MARK, VI0_G2_MARK, ETH_TXD1_MARK,
627 MMC1_D6_MARK, ARM_TRACEDATA_4_MARK, TS_SPSYNC0_MARK, VI0_G3_MARK,
628 ETH_CRS_DV_MARK, MMC1_D7_MARK, ARM_TRACEDATA_5_MARK, TS_SDAT0_MARK,
629 VI0_G4_MARK, ETH_TX_EN_MARK, SD2_DAT0_B_MARK, ARM_TRACEDATA_6_MARK,
630 VI0_G5_MARK, ETH_RX_ER_MARK, SD2_DAT1_B_MARK, ARM_TRACEDATA_7_MARK,
631 VI0_G6_MARK, ETH_RXD0_MARK, SD2_DAT2_B_MARK, ARM_TRACEDATA_8_MARK,
632 VI0_G7_MARK, ETH_RXD1_MARK, SD2_DAT3_B_MARK, ARM_TRACEDATA_9_MARK,
633
634 VI0_R0_MARK, SSI_SDATA7_C_MARK, SCK1_C_MARK, DREQ1_B_MARK,
635 ARM_TRACEDATA_10_MARK, DREQ0_C_MARK, VI0_R1_MARK, SSI_SDATA8_C_MARK,
636 DACK1_B_MARK, ARM_TRACEDATA_11_MARK, DACK0_C_MARK, DRACK0_C_MARK,
637 VI0_R2_MARK, ETH_LINK_MARK, SD2_CLK_B_MARK, IRQ2_MARK,
638 ARM_TRACEDATA_12_MARK, VI0_R3_MARK, ETH_MAGIC_MARK, SD2_CMD_B_MARK,
639 IRQ3_MARK, ARM_TRACEDATA_13_MARK, VI0_R4_MARK, ETH_REFCLK_MARK,
640 SD2_CD_B_MARK, HSPI_CLK1_B_MARK, ARM_TRACEDATA_14_MARK, MT1_CLK_MARK,
641 TS_SCK0_MARK, VI0_R5_MARK, ETH_TXD0_MARK, SD2_WP_B_MARK,
642 HSPI_CS1_B_MARK, ARM_TRACEDATA_15_MARK, MT1_D_MARK, TS_SDEN0_MARK,
643 VI0_R6_MARK, ETH_MDC_MARK, DREQ2_C_MARK, HSPI_TX1_B_MARK,
644 TRACECLK_MARK, MT1_BEN_MARK, PWMFSW0_D_MARK, VI0_R7_MARK,
645 ETH_MDIO_MARK, DACK2_C_MARK, HSPI_RX1_B_MARK, SCIF_CLK_D_MARK,
646 TRACECTL_MARK, MT1_PEN_MARK, VI1_CLK_MARK, SIM_D_MARK, SDA3_MARK,
647 VI1_HSYNC_MARK, VI3_CLK_MARK, SSI_SCK4_MARK, GPS_SIGN_C_MARK,
648 PWMFSW0_E_MARK, VI1_VSYNC_MARK, AUDIO_CLKOUT_C_MARK, SSI_WS4_MARK,
649 SIM_CLK_MARK, GPS_MAG_C_MARK, SPV_TRST_MARK, SCL3_MARK,
650
651 VI1_DATA0_VI1_B0_MARK, SD2_DAT0_MARK, SIM_RST_MARK, SPV_TCK_MARK,
652 ADICLK_B_MARK, VI1_DATA1_VI1_B1_MARK, SD2_DAT1_MARK, MT0_CLK_MARK,
653 SPV_TMS_MARK, ADICS_B_SAMP_B_MARK, VI1_DATA2_VI1_B2_MARK,
654 SD2_DAT2_MARK, MT0_D_MARK, SPVTDI_MARK, ADIDATA_B_MARK,
655 VI1_DATA3_VI1_B3_MARK, SD2_DAT3_MARK, MT0_BEN_MARK, SPV_TDO_MARK,
656 ADICHS0_B_MARK, VI1_DATA4_VI1_B4_MARK, SD2_CLK_MARK, MT0_PEN_MARK,
657 SPA_TRST_MARK, HSPI_CLK1_D_MARK, ADICHS1_B_MARK,
658 VI1_DATA5_VI1_B5_MARK, SD2_CMD_MARK, MT0_SYNC_MARK, SPA_TCK_MARK,
659 HSPI_CS1_D_MARK, ADICHS2_B_MARK, VI1_DATA6_VI1_B6_MARK, SD2_CD_MARK,
660 MT0_VCXO_MARK, SPA_TMS_MARK, HSPI_TX1_D_MARK, VI1_DATA7_VI1_B7_MARK,
661 SD2_WP_MARK, MT0_PWM_MARK, SPA_TDI_MARK, HSPI_RX1_D_MARK,
Laurent Pinchart2a028182013-01-09 22:32:25 +0100662 VI1_G0_MARK, VI3_DATA0_MARK, TS_SCK1_MARK,
Laurent Pinchart881023d2012-12-15 23:51:22 +0100663 DREQ2_B_MARK, TX2_MARK, SPA_TDO_MARK, HCTS0_B_MARK,
664 VI1_G1_MARK, VI3_DATA1_MARK, SSI_SCK1_MARK, TS_SDEN1_MARK,
665 DACK2_B_MARK, RX2_MARK, HRTS0_B_MARK,
666
667 VI1_G2_MARK, VI3_DATA2_MARK, SSI_WS1_MARK, TS_SPSYNC1_MARK,
668 SCK2_MARK, HSCK0_B_MARK, VI1_G3_MARK, VI3_DATA3_MARK,
669 SSI_SCK2_MARK, TS_SDAT1_MARK, SCL1_C_MARK, HTX0_B_MARK,
670 VI1_G4_MARK, VI3_DATA4_MARK, SSI_WS2_MARK, SDA1_C_MARK,
671 SIM_RST_B_MARK, HRX0_B_MARK, VI1_G5_MARK, VI3_DATA5_MARK,
672 GPS_CLK_MARK, FSE_MARK, TX4_B_MARK, SIM_D_B_MARK,
673 VI1_G6_MARK, VI3_DATA6_MARK, GPS_SIGN_MARK, FRB_MARK,
674 RX4_B_MARK, SIM_CLK_B_MARK, VI1_G7_MARK, VI3_DATA7_MARK,
675 GPS_MAG_MARK, FCE_MARK, SCK4_B_MARK,
676 PINMUX_MARK_END,
677};
678
Laurent Pinchartcd3c1be2013-02-16 18:47:05 +0100679static const pinmux_enum_t pinmux_data[] = {
Laurent Pinchart881023d2012-12-15 23:51:22 +0100680 PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
681
682 PINMUX_DATA(AVS1_MARK, FN_AVS1),
683 PINMUX_DATA(AVS1_MARK, FN_AVS1),
684 PINMUX_DATA(A17_MARK, FN_A17),
685 PINMUX_DATA(A18_MARK, FN_A18),
686 PINMUX_DATA(A19_MARK, FN_A19),
687
Laurent Pinchart0f6e2e02013-03-07 13:36:36 +0100688 PINMUX_DATA(USB_PENC0_MARK, FN_USB_PENC0),
689 PINMUX_DATA(USB_PENC1_MARK, FN_USB_PENC1),
690
Laurent Pinchart881023d2012-12-15 23:51:22 +0100691 PINMUX_IPSR_DATA(IP0_2_0, USB_PENC2),
692 PINMUX_IPSR_MODSEL_DATA(IP0_2_0, SCK0, SEL_SCIF0_0),
693 PINMUX_IPSR_DATA(IP0_2_0, PWM1),
694 PINMUX_IPSR_MODSEL_DATA(IP0_2_0, PWMFSW0, SEL_PWMFSW_0),
695 PINMUX_IPSR_MODSEL_DATA(IP0_2_0, SCIF_CLK, SEL_SCIF_0),
696 PINMUX_IPSR_MODSEL_DATA(IP0_2_0, TCLK0_C, SEL_TMU0_2),
697 PINMUX_IPSR_DATA(IP0_5_3, BS),
698 PINMUX_IPSR_DATA(IP0_5_3, SD1_DAT2),
699 PINMUX_IPSR_DATA(IP0_5_3, MMC0_D2),
700 PINMUX_IPSR_DATA(IP0_5_3, FD2),
701 PINMUX_IPSR_DATA(IP0_5_3, ATADIR0),
702 PINMUX_IPSR_DATA(IP0_5_3, SDSELF),
703 PINMUX_IPSR_MODSEL_DATA(IP0_5_3, HCTS1, SEL_HSCIF1_0),
704 PINMUX_IPSR_DATA(IP0_5_3, TX4_C),
705 PINMUX_IPSR_DATA(IP0_7_6, A0),
706 PINMUX_IPSR_DATA(IP0_7_6, SD1_DAT3),
707 PINMUX_IPSR_DATA(IP0_7_6, MMC0_D3),
708 PINMUX_IPSR_DATA(IP0_7_6, FD3),
709 PINMUX_IPSR_DATA(IP0_9_8, A20),
710 PINMUX_IPSR_DATA(IP0_9_8, TX5_D),
711 PINMUX_IPSR_DATA(IP0_9_8, HSPI_TX2_B),
712 PINMUX_IPSR_DATA(IP0_11_10, A21),
713 PINMUX_IPSR_MODSEL_DATA(IP0_11_10, SCK5_D, SEL_SCIF5_3),
714 PINMUX_IPSR_MODSEL_DATA(IP0_11_10, HSPI_CLK2_B, SEL_HSPI2_1),
715 PINMUX_IPSR_DATA(IP0_13_12, A22),
716 PINMUX_IPSR_MODSEL_DATA(IP0_13_12, RX5_D, SEL_SCIF5_3),
717 PINMUX_IPSR_MODSEL_DATA(IP0_13_12, HSPI_RX2_B, SEL_HSPI2_1),
718 PINMUX_IPSR_DATA(IP0_13_12, VI1_R0),
719 PINMUX_IPSR_DATA(IP0_15_14, A23),
720 PINMUX_IPSR_DATA(IP0_15_14, FCLE),
721 PINMUX_IPSR_MODSEL_DATA(IP0_15_14, HSPI_CLK2, SEL_HSPI2_0),
722 PINMUX_IPSR_DATA(IP0_15_14, VI1_R1),
723 PINMUX_IPSR_DATA(IP0_18_16, A24),
724 PINMUX_IPSR_DATA(IP0_18_16, SD1_CD),
725 PINMUX_IPSR_DATA(IP0_18_16, MMC0_D4),
726 PINMUX_IPSR_DATA(IP0_18_16, FD4),
727 PINMUX_IPSR_MODSEL_DATA(IP0_18_16, HSPI_CS2, SEL_HSPI2_0),
728 PINMUX_IPSR_DATA(IP0_18_16, VI1_R2),
729 PINMUX_IPSR_MODSEL_DATA(IP0_18_16, SSI_WS78_B, SEL_SSI7_1),
730 PINMUX_IPSR_DATA(IP0_22_19, A25),
731 PINMUX_IPSR_DATA(IP0_22_19, SD1_WP),
732 PINMUX_IPSR_DATA(IP0_22_19, MMC0_D5),
733 PINMUX_IPSR_DATA(IP0_22_19, FD5),
734 PINMUX_IPSR_MODSEL_DATA(IP0_22_19, HSPI_RX2, SEL_HSPI2_0),
735 PINMUX_IPSR_DATA(IP0_22_19, VI1_R3),
736 PINMUX_IPSR_DATA(IP0_22_19, TX5_B),
737 PINMUX_IPSR_MODSEL_DATA(IP0_22_19, SSI_SDATA7_B, SEL_SSI7_1),
738 PINMUX_IPSR_MODSEL_DATA(IP0_22_19, CTS0_B, SEL_SCIF0_1),
739 PINMUX_IPSR_DATA(IP0_24_23, CLKOUT),
740 PINMUX_IPSR_DATA(IP0_24_23, TX3C_IRDA_TX_C),
741 PINMUX_IPSR_DATA(IP0_24_23, PWM0_B),
742 PINMUX_IPSR_DATA(IP0_25, CS0),
743 PINMUX_IPSR_MODSEL_DATA(IP0_25, HSPI_CS2_B, SEL_HSPI2_1),
744 PINMUX_IPSR_DATA(IP0_27_26, CS1_A26),
745 PINMUX_IPSR_DATA(IP0_27_26, HSPI_TX2),
746 PINMUX_IPSR_DATA(IP0_27_26, SDSELF_B),
747 PINMUX_IPSR_DATA(IP0_30_28, RD_WR),
748 PINMUX_IPSR_DATA(IP0_30_28, FWE),
749 PINMUX_IPSR_DATA(IP0_30_28, ATAG0),
750 PINMUX_IPSR_DATA(IP0_30_28, VI1_R7),
751 PINMUX_IPSR_MODSEL_DATA(IP0_30_28, HRTS1, SEL_HSCIF1_0),
752 PINMUX_IPSR_MODSEL_DATA(IP0_30_28, RX4_C, SEL_SCIF4_2),
753
754 PINMUX_IPSR_DATA(IP1_1_0, EX_CS0),
755 PINMUX_IPSR_MODSEL_DATA(IP1_1_0, RX3_C_IRDA_RX_C, SEL_SCIF3_2),
756 PINMUX_IPSR_DATA(IP1_1_0, MMC0_D6),
757 PINMUX_IPSR_DATA(IP1_1_0, FD6),
758 PINMUX_IPSR_DATA(IP1_3_2, EX_CS1),
759 PINMUX_IPSR_DATA(IP1_3_2, MMC0_D7),
760 PINMUX_IPSR_DATA(IP1_3_2, FD7),
761 PINMUX_IPSR_DATA(IP1_6_4, EX_CS2),
762 PINMUX_IPSR_DATA(IP1_6_4, SD1_CLK),
763 PINMUX_IPSR_DATA(IP1_6_4, MMC0_CLK),
764 PINMUX_IPSR_DATA(IP1_6_4, FALE),
765 PINMUX_IPSR_DATA(IP1_6_4, ATACS00),
766 PINMUX_IPSR_DATA(IP1_10_7, EX_CS3),
767 PINMUX_IPSR_DATA(IP1_10_7, SD1_CMD),
768 PINMUX_IPSR_DATA(IP1_10_7, MMC0_CMD),
769 PINMUX_IPSR_DATA(IP1_10_7, FRE),
770 PINMUX_IPSR_DATA(IP1_10_7, ATACS10),
771 PINMUX_IPSR_DATA(IP1_10_7, VI1_R4),
772 PINMUX_IPSR_MODSEL_DATA(IP1_10_7, RX5_B, SEL_SCIF5_1),
773 PINMUX_IPSR_MODSEL_DATA(IP1_10_7, HSCK1, SEL_HSCIF1_0),
774 PINMUX_IPSR_MODSEL_DATA(IP1_10_7, SSI_SDATA8_B, SEL_SSI8_1),
775 PINMUX_IPSR_MODSEL_DATA(IP1_10_7, RTS0_B_TANS_B, SEL_SCIF0_1),
776 PINMUX_IPSR_MODSEL_DATA(IP1_10_7, SSI_SDATA9, SEL_SSI9_0),
777 PINMUX_IPSR_DATA(IP1_14_11, EX_CS4),
778 PINMUX_IPSR_DATA(IP1_14_11, SD1_DAT0),
779 PINMUX_IPSR_DATA(IP1_14_11, MMC0_D0),
780 PINMUX_IPSR_DATA(IP1_14_11, FD0),
781 PINMUX_IPSR_DATA(IP1_14_11, ATARD0),
782 PINMUX_IPSR_DATA(IP1_14_11, VI1_R5),
783 PINMUX_IPSR_MODSEL_DATA(IP1_14_11, SCK5_B, SEL_SCIF5_1),
784 PINMUX_IPSR_DATA(IP1_14_11, HTX1),
785 PINMUX_IPSR_DATA(IP1_14_11, TX2_E),
786 PINMUX_IPSR_DATA(IP1_14_11, TX0_B),
787 PINMUX_IPSR_MODSEL_DATA(IP1_14_11, SSI_SCK9, SEL_SSI9_0),
788 PINMUX_IPSR_DATA(IP1_18_15, EX_CS5),
789 PINMUX_IPSR_DATA(IP1_18_15, SD1_DAT1),
790 PINMUX_IPSR_DATA(IP1_18_15, MMC0_D1),
791 PINMUX_IPSR_DATA(IP1_18_15, FD1),
792 PINMUX_IPSR_DATA(IP1_18_15, ATAWR0),
793 PINMUX_IPSR_DATA(IP1_18_15, VI1_R6),
794 PINMUX_IPSR_MODSEL_DATA(IP1_18_15, HRX1, SEL_HSCIF1_0),
795 PINMUX_IPSR_MODSEL_DATA(IP1_18_15, RX2_E, SEL_SCIF2_4),
796 PINMUX_IPSR_MODSEL_DATA(IP1_18_15, RX0_B, SEL_SCIF0_1),
797 PINMUX_IPSR_MODSEL_DATA(IP1_18_15, SSI_WS9, SEL_SSI9_0),
798 PINMUX_IPSR_DATA(IP1_20_19, MLB_CLK),
799 PINMUX_IPSR_DATA(IP1_20_19, PWM2),
800 PINMUX_IPSR_MODSEL_DATA(IP1_20_19, SCK4, SEL_SCIF4_0),
801 PINMUX_IPSR_DATA(IP1_22_21, MLB_SIG),
802 PINMUX_IPSR_DATA(IP1_22_21, PWM3),
803 PINMUX_IPSR_DATA(IP1_22_21, TX4),
804 PINMUX_IPSR_DATA(IP1_24_23, MLB_DAT),
805 PINMUX_IPSR_DATA(IP1_24_23, PWM4),
806 PINMUX_IPSR_MODSEL_DATA(IP1_24_23, RX4, SEL_SCIF4_0),
807 PINMUX_IPSR_DATA(IP1_28_25, HTX0),
808 PINMUX_IPSR_DATA(IP1_28_25, TX1),
809 PINMUX_IPSR_DATA(IP1_28_25, SDATA),
810 PINMUX_IPSR_MODSEL_DATA(IP1_28_25, CTS0_C, SEL_SCIF0_2),
811 PINMUX_IPSR_DATA(IP1_28_25, SUB_TCK),
812 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE2),
813 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE10),
814 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE18),
815 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE26),
816 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE34),
817
818 PINMUX_IPSR_MODSEL_DATA(IP2_3_0, HRX0, SEL_HSCIF0_0),
819 PINMUX_IPSR_MODSEL_DATA(IP2_3_0, RX1, SEL_SCIF1_0),
820 PINMUX_IPSR_DATA(IP2_3_0, SCKZ),
821 PINMUX_IPSR_MODSEL_DATA(IP2_3_0, RTS0_C_TANS_C, SEL_SCIF0_2),
822 PINMUX_IPSR_DATA(IP2_3_0, SUB_TDI),
823 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE3),
824 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE11),
825 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE19),
826 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE27),
827 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE35),
828 PINMUX_IPSR_MODSEL_DATA(IP2_7_4, HSCK0, SEL_HSCIF0_0),
829 PINMUX_IPSR_MODSEL_DATA(IP2_7_4, SCK1, SEL_SCIF1_0),
830 PINMUX_IPSR_DATA(IP2_7_4, MTS),
831 PINMUX_IPSR_DATA(IP2_7_4, PWM5),
832 PINMUX_IPSR_MODSEL_DATA(IP2_7_4, SCK0_C, SEL_SCIF0_2),
833 PINMUX_IPSR_MODSEL_DATA(IP2_7_4, SSI_SDATA9_B, SEL_SSI9_1),
834 PINMUX_IPSR_DATA(IP2_7_4, SUB_TDO),
835 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE0),
836 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE8),
837 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE16),
838 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE24),
839 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE32),
840 PINMUX_IPSR_MODSEL_DATA(IP2_11_8, HCTS0, SEL_HSCIF0_0),
841 PINMUX_IPSR_MODSEL_DATA(IP2_11_8, CTS1, SEL_SCIF1_0),
842 PINMUX_IPSR_DATA(IP2_11_8, STM),
843 PINMUX_IPSR_DATA(IP2_11_8, PWM0_D),
844 PINMUX_IPSR_MODSEL_DATA(IP2_11_8, RX0_C, SEL_SCIF0_2),
845 PINMUX_IPSR_MODSEL_DATA(IP2_11_8, SCIF_CLK_C, SEL_SCIF_2),
846 PINMUX_IPSR_DATA(IP2_11_8, SUB_TRST),
847 PINMUX_IPSR_MODSEL_DATA(IP2_11_8, TCLK1_B, SEL_TMU1_1),
848 PINMUX_IPSR_DATA(IP2_11_8, CC5_OSCOUT),
849 PINMUX_IPSR_MODSEL_DATA(IP2_15_12, HRTS0, SEL_HSCIF0_0),
850 PINMUX_IPSR_MODSEL_DATA(IP2_15_12, RTS1_TANS, SEL_SCIF1_0),
851 PINMUX_IPSR_DATA(IP2_15_12, MDATA),
852 PINMUX_IPSR_DATA(IP2_15_12, TX0_C),
853 PINMUX_IPSR_DATA(IP2_15_12, SUB_TMS),
854 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE1),
855 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE9),
856 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE17),
857 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE25),
858 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE33),
859 PINMUX_IPSR_DATA(IP2_18_16, DU0_DR0),
860 PINMUX_IPSR_DATA(IP2_18_16, LCDOUT0),
861 PINMUX_IPSR_MODSEL_DATA(IP2_18_16, DREQ0, SEL_EXBUS0_0),
862 PINMUX_IPSR_MODSEL_DATA(IP2_18_16, GPS_CLK_B, SEL_GPS_1),
863 PINMUX_IPSR_DATA(IP2_18_16, AUDATA0),
864 PINMUX_IPSR_DATA(IP2_18_16, TX5_C),
865 PINMUX_IPSR_DATA(IP2_21_19, DU0_DR1),
866 PINMUX_IPSR_DATA(IP2_21_19, LCDOUT1),
867 PINMUX_IPSR_DATA(IP2_21_19, DACK0),
868 PINMUX_IPSR_DATA(IP2_21_19, DRACK0),
869 PINMUX_IPSR_MODSEL_DATA(IP2_21_19, GPS_SIGN_B, SEL_GPS_1),
870 PINMUX_IPSR_DATA(IP2_21_19, AUDATA1),
871 PINMUX_IPSR_MODSEL_DATA(IP2_21_19, RX5_C, SEL_SCIF5_2),
872 PINMUX_IPSR_DATA(IP2_22, DU0_DR2),
873 PINMUX_IPSR_DATA(IP2_22, LCDOUT2),
874 PINMUX_IPSR_DATA(IP2_23, DU0_DR3),
875 PINMUX_IPSR_DATA(IP2_23, LCDOUT3),
876 PINMUX_IPSR_DATA(IP2_24, DU0_DR4),
877 PINMUX_IPSR_DATA(IP2_24, LCDOUT4),
878 PINMUX_IPSR_DATA(IP2_25, DU0_DR5),
879 PINMUX_IPSR_DATA(IP2_25, LCDOUT5),
880 PINMUX_IPSR_DATA(IP2_26, DU0_DR6),
881 PINMUX_IPSR_DATA(IP2_26, LCDOUT6),
882 PINMUX_IPSR_DATA(IP2_27, DU0_DR7),
883 PINMUX_IPSR_DATA(IP2_27, LCDOUT7),
884 PINMUX_IPSR_DATA(IP2_30_28, DU0_DG0),
885 PINMUX_IPSR_DATA(IP2_30_28, LCDOUT8),
886 PINMUX_IPSR_MODSEL_DATA(IP2_30_28, DREQ1, SEL_EXBUS1_0),
887 PINMUX_IPSR_MODSEL_DATA(IP2_30_28, SCL2, SEL_I2C2_0),
888 PINMUX_IPSR_DATA(IP2_30_28, AUDATA2),
889
890 PINMUX_IPSR_DATA(IP3_2_0, DU0_DG1),
891 PINMUX_IPSR_DATA(IP3_2_0, LCDOUT9),
892 PINMUX_IPSR_DATA(IP3_2_0, DACK1),
893 PINMUX_IPSR_MODSEL_DATA(IP3_2_0, SDA2, SEL_I2C2_0),
894 PINMUX_IPSR_DATA(IP3_2_0, AUDATA3),
895 PINMUX_IPSR_DATA(IP3_3, DU0_DG2),
896 PINMUX_IPSR_DATA(IP3_3, LCDOUT10),
897 PINMUX_IPSR_DATA(IP3_4, DU0_DG3),
898 PINMUX_IPSR_DATA(IP3_4, LCDOUT11),
899 PINMUX_IPSR_DATA(IP3_5, DU0_DG4),
900 PINMUX_IPSR_DATA(IP3_5, LCDOUT12),
901 PINMUX_IPSR_DATA(IP3_6, DU0_DG5),
902 PINMUX_IPSR_DATA(IP3_6, LCDOUT13),
903 PINMUX_IPSR_DATA(IP3_7, DU0_DG6),
904 PINMUX_IPSR_DATA(IP3_7, LCDOUT14),
905 PINMUX_IPSR_DATA(IP3_8, DU0_DG7),
906 PINMUX_IPSR_DATA(IP3_8, LCDOUT15),
907 PINMUX_IPSR_DATA(IP3_11_9, DU0_DB0),
908 PINMUX_IPSR_DATA(IP3_11_9, LCDOUT16),
909 PINMUX_IPSR_DATA(IP3_11_9, EX_WAIT1),
910 PINMUX_IPSR_MODSEL_DATA(IP3_11_9, SCL1, SEL_I2C1_0),
911 PINMUX_IPSR_MODSEL_DATA(IP3_11_9, TCLK1, SEL_TMU1_0),
912 PINMUX_IPSR_DATA(IP3_11_9, AUDATA4),
913 PINMUX_IPSR_DATA(IP3_14_12, DU0_DB1),
914 PINMUX_IPSR_DATA(IP3_14_12, LCDOUT17),
915 PINMUX_IPSR_DATA(IP3_14_12, EX_WAIT2),
916 PINMUX_IPSR_MODSEL_DATA(IP3_14_12, SDA1, SEL_I2C1_0),
917 PINMUX_IPSR_MODSEL_DATA(IP3_14_12, GPS_MAG_B, SEL_GPS_1),
918 PINMUX_IPSR_DATA(IP3_14_12, AUDATA5),
919 PINMUX_IPSR_MODSEL_DATA(IP3_14_12, SCK5_C, SEL_SCIF5_2),
920 PINMUX_IPSR_DATA(IP3_15, DU0_DB2),
921 PINMUX_IPSR_DATA(IP3_15, LCDOUT18),
922 PINMUX_IPSR_DATA(IP3_16, DU0_DB3),
923 PINMUX_IPSR_DATA(IP3_16, LCDOUT19),
924 PINMUX_IPSR_DATA(IP3_17, DU0_DB4),
925 PINMUX_IPSR_DATA(IP3_17, LCDOUT20),
926 PINMUX_IPSR_DATA(IP3_18, DU0_DB5),
927 PINMUX_IPSR_DATA(IP3_18, LCDOUT21),
928 PINMUX_IPSR_DATA(IP3_19, DU0_DB6),
929 PINMUX_IPSR_DATA(IP3_19, LCDOUT22),
930 PINMUX_IPSR_DATA(IP3_20, DU0_DB7),
931 PINMUX_IPSR_DATA(IP3_20, LCDOUT23),
932 PINMUX_IPSR_DATA(IP3_22_21, DU0_DOTCLKIN),
933 PINMUX_IPSR_DATA(IP3_22_21, QSTVA_QVS),
934 PINMUX_IPSR_DATA(IP3_22_21, TX3_D_IRDA_TX_D),
935 PINMUX_IPSR_MODSEL_DATA(IP3_22_21, SCL3_B, SEL_I2C3_1),
936 PINMUX_IPSR_DATA(IP3_23, DU0_DOTCLKOUT0),
937 PINMUX_IPSR_DATA(IP3_23, QCLK),
938 PINMUX_IPSR_DATA(IP3_26_24, DU0_DOTCLKOUT1),
939 PINMUX_IPSR_DATA(IP3_26_24, QSTVB_QVE),
940 PINMUX_IPSR_MODSEL_DATA(IP3_26_24, RX3_D_IRDA_RX_D, SEL_SCIF3_3),
941 PINMUX_IPSR_MODSEL_DATA(IP3_26_24, SDA3_B, SEL_I2C3_1),
942 PINMUX_IPSR_MODSEL_DATA(IP3_26_24, SDA2_C, SEL_I2C2_2),
943 PINMUX_IPSR_DATA(IP3_26_24, DACK0_B),
944 PINMUX_IPSR_DATA(IP3_26_24, DRACK0_B),
945 PINMUX_IPSR_DATA(IP3_27, DU0_EXHSYNC_DU0_HSYNC),
946 PINMUX_IPSR_DATA(IP3_27, QSTH_QHS),
947 PINMUX_IPSR_DATA(IP3_28, DU0_EXVSYNC_DU0_VSYNC),
948 PINMUX_IPSR_DATA(IP3_28, QSTB_QHE),
949 PINMUX_IPSR_DATA(IP3_31_29, DU0_EXODDF_DU0_ODDF_DISP_CDE),
950 PINMUX_IPSR_DATA(IP3_31_29, QCPV_QDE),
951 PINMUX_IPSR_DATA(IP3_31_29, CAN1_TX),
952 PINMUX_IPSR_DATA(IP3_31_29, TX2_C),
953 PINMUX_IPSR_MODSEL_DATA(IP3_31_29, SCL2_C, SEL_I2C2_2),
954 PINMUX_IPSR_DATA(IP3_31_29, REMOCON),
955
956 PINMUX_IPSR_DATA(IP4_1_0, DU0_DISP),
957 PINMUX_IPSR_DATA(IP4_1_0, QPOLA),
958 PINMUX_IPSR_MODSEL_DATA(IP4_1_0, CAN_CLK_C, SEL_CANCLK_2),
959 PINMUX_IPSR_MODSEL_DATA(IP4_1_0, SCK2_C, SEL_SCIF2_2),
960 PINMUX_IPSR_DATA(IP4_4_2, DU0_CDE),
961 PINMUX_IPSR_DATA(IP4_4_2, QPOLB),
962 PINMUX_IPSR_DATA(IP4_4_2, CAN1_RX),
963 PINMUX_IPSR_MODSEL_DATA(IP4_4_2, RX2_C, SEL_SCIF2_2),
964 PINMUX_IPSR_MODSEL_DATA(IP4_4_2, DREQ0_B, SEL_EXBUS0_1),
965 PINMUX_IPSR_MODSEL_DATA(IP4_4_2, SSI_SCK78_B, SEL_SSI7_1),
966 PINMUX_IPSR_MODSEL_DATA(IP4_4_2, SCK0_B, SEL_SCIF0_1),
967 PINMUX_IPSR_DATA(IP4_7_5, DU1_DR0),
968 PINMUX_IPSR_DATA(IP4_7_5, VI2_DATA0_VI2_B0),
969 PINMUX_IPSR_DATA(IP4_7_5, PWM6),
970 PINMUX_IPSR_DATA(IP4_7_5, SD3_CLK),
971 PINMUX_IPSR_DATA(IP4_7_5, TX3_E_IRDA_TX_E),
972 PINMUX_IPSR_DATA(IP4_7_5, AUDCK),
973 PINMUX_IPSR_MODSEL_DATA(IP4_7_5, PWMFSW0_B, SEL_PWMFSW_1),
974 PINMUX_IPSR_DATA(IP4_10_8, DU1_DR1),
975 PINMUX_IPSR_DATA(IP4_10_8, VI2_DATA1_VI2_B1),
976 PINMUX_IPSR_DATA(IP4_10_8, PWM0),
977 PINMUX_IPSR_DATA(IP4_10_8, SD3_CMD),
978 PINMUX_IPSR_MODSEL_DATA(IP4_10_8, RX3_E_IRDA_RX_E, SEL_SCIF3_4),
979 PINMUX_IPSR_DATA(IP4_10_8, AUDSYNC),
980 PINMUX_IPSR_MODSEL_DATA(IP4_10_8, CTS0_D, SEL_SCIF0_3),
981 PINMUX_IPSR_DATA(IP4_11, DU1_DR2),
982 PINMUX_IPSR_DATA(IP4_11, VI2_G0),
983 PINMUX_IPSR_DATA(IP4_12, DU1_DR3),
984 PINMUX_IPSR_DATA(IP4_12, VI2_G1),
985 PINMUX_IPSR_DATA(IP4_13, DU1_DR4),
986 PINMUX_IPSR_DATA(IP4_13, VI2_G2),
987 PINMUX_IPSR_DATA(IP4_14, DU1_DR5),
988 PINMUX_IPSR_DATA(IP4_14, VI2_G3),
989 PINMUX_IPSR_DATA(IP4_15, DU1_DR6),
990 PINMUX_IPSR_DATA(IP4_15, VI2_G4),
991 PINMUX_IPSR_DATA(IP4_16, DU1_DR7),
992 PINMUX_IPSR_DATA(IP4_16, VI2_G5),
993 PINMUX_IPSR_DATA(IP4_19_17, DU1_DG0),
994 PINMUX_IPSR_DATA(IP4_19_17, VI2_DATA2_VI2_B2),
995 PINMUX_IPSR_MODSEL_DATA(IP4_19_17, SCL1_B, SEL_I2C1_1),
996 PINMUX_IPSR_DATA(IP4_19_17, SD3_DAT2),
997 PINMUX_IPSR_MODSEL_DATA(IP4_19_17, SCK3_E, SEL_SCIF3_4),
998 PINMUX_IPSR_DATA(IP4_19_17, AUDATA6),
999 PINMUX_IPSR_DATA(IP4_19_17, TX0_D),
1000 PINMUX_IPSR_DATA(IP4_22_20, DU1_DG1),
1001 PINMUX_IPSR_DATA(IP4_22_20, VI2_DATA3_VI2_B3),
1002 PINMUX_IPSR_MODSEL_DATA(IP4_22_20, SDA1_B, SEL_I2C1_1),
1003 PINMUX_IPSR_DATA(IP4_22_20, SD3_DAT3),
1004 PINMUX_IPSR_MODSEL_DATA(IP4_22_20, SCK5, SEL_SCIF5_0),
1005 PINMUX_IPSR_DATA(IP4_22_20, AUDATA7),
1006 PINMUX_IPSR_MODSEL_DATA(IP4_22_20, RX0_D, SEL_SCIF0_3),
1007 PINMUX_IPSR_DATA(IP4_23, DU1_DG2),
1008 PINMUX_IPSR_DATA(IP4_23, VI2_G6),
1009 PINMUX_IPSR_DATA(IP4_24, DU1_DG3),
1010 PINMUX_IPSR_DATA(IP4_24, VI2_G7),
1011 PINMUX_IPSR_DATA(IP4_25, DU1_DG4),
1012 PINMUX_IPSR_DATA(IP4_25, VI2_R0),
1013 PINMUX_IPSR_DATA(IP4_26, DU1_DG5),
1014 PINMUX_IPSR_DATA(IP4_26, VI2_R1),
1015 PINMUX_IPSR_DATA(IP4_27, DU1_DG6),
1016 PINMUX_IPSR_DATA(IP4_27, VI2_R2),
1017 PINMUX_IPSR_DATA(IP4_28, DU1_DG7),
1018 PINMUX_IPSR_DATA(IP4_28, VI2_R3),
1019 PINMUX_IPSR_DATA(IP4_31_29, DU1_DB0),
1020 PINMUX_IPSR_DATA(IP4_31_29, VI2_DATA4_VI2_B4),
1021 PINMUX_IPSR_MODSEL_DATA(IP4_31_29, SCL2_B, SEL_I2C2_1),
1022 PINMUX_IPSR_DATA(IP4_31_29, SD3_DAT0),
1023 PINMUX_IPSR_DATA(IP4_31_29, TX5),
1024 PINMUX_IPSR_MODSEL_DATA(IP4_31_29, SCK0_D, SEL_SCIF0_3),
1025
1026 PINMUX_IPSR_DATA(IP5_2_0, DU1_DB1),
1027 PINMUX_IPSR_DATA(IP5_2_0, VI2_DATA5_VI2_B5),
1028 PINMUX_IPSR_MODSEL_DATA(IP5_2_0, SDA2_B, SEL_I2C2_1),
1029 PINMUX_IPSR_DATA(IP5_2_0, SD3_DAT1),
1030 PINMUX_IPSR_MODSEL_DATA(IP5_2_0, RX5, SEL_SCIF5_0),
1031 PINMUX_IPSR_MODSEL_DATA(IP5_2_0, RTS0_D_TANS_D, SEL_SCIF0_3),
1032 PINMUX_IPSR_DATA(IP5_3, DU1_DB2),
1033 PINMUX_IPSR_DATA(IP5_3, VI2_R4),
1034 PINMUX_IPSR_DATA(IP5_4, DU1_DB3),
1035 PINMUX_IPSR_DATA(IP5_4, VI2_R5),
1036 PINMUX_IPSR_DATA(IP5_5, DU1_DB4),
1037 PINMUX_IPSR_DATA(IP5_5, VI2_R6),
1038 PINMUX_IPSR_DATA(IP5_6, DU1_DB5),
1039 PINMUX_IPSR_DATA(IP5_6, VI2_R7),
1040 PINMUX_IPSR_DATA(IP5_7, DU1_DB6),
1041 PINMUX_IPSR_MODSEL_DATA(IP5_7, SCL2_D, SEL_I2C2_3),
1042 PINMUX_IPSR_DATA(IP5_8, DU1_DB7),
1043 PINMUX_IPSR_MODSEL_DATA(IP5_8, SDA2_D, SEL_I2C2_3),
1044 PINMUX_IPSR_DATA(IP5_10_9, DU1_DOTCLKIN),
1045 PINMUX_IPSR_DATA(IP5_10_9, VI2_CLKENB),
1046 PINMUX_IPSR_MODSEL_DATA(IP5_10_9, HSPI_CS1, SEL_HSPI1_0),
1047 PINMUX_IPSR_MODSEL_DATA(IP5_10_9, SCL1_D, SEL_I2C1_3),
1048 PINMUX_IPSR_DATA(IP5_12_11, DU1_DOTCLKOUT),
1049 PINMUX_IPSR_DATA(IP5_12_11, VI2_FIELD),
1050 PINMUX_IPSR_MODSEL_DATA(IP5_12_11, SDA1_D, SEL_I2C1_3),
1051 PINMUX_IPSR_DATA(IP5_14_13, DU1_EXHSYNC_DU1_HSYNC),
1052 PINMUX_IPSR_DATA(IP5_14_13, VI2_HSYNC),
1053 PINMUX_IPSR_DATA(IP5_14_13, VI3_HSYNC),
1054 PINMUX_IPSR_DATA(IP5_16_15, DU1_EXVSYNC_DU1_VSYNC),
1055 PINMUX_IPSR_DATA(IP5_16_15, VI2_VSYNC),
1056 PINMUX_IPSR_DATA(IP5_16_15, VI3_VSYNC),
1057 PINMUX_IPSR_DATA(IP5_20_17, DU1_EXODDF_DU1_ODDF_DISP_CDE),
1058 PINMUX_IPSR_DATA(IP5_20_17, VI2_CLK),
1059 PINMUX_IPSR_DATA(IP5_20_17, TX3_B_IRDA_TX_B),
1060 PINMUX_IPSR_DATA(IP5_20_17, SD3_CD),
1061 PINMUX_IPSR_DATA(IP5_20_17, HSPI_TX1),
1062 PINMUX_IPSR_DATA(IP5_20_17, VI1_CLKENB),
1063 PINMUX_IPSR_DATA(IP5_20_17, VI3_CLKENB),
1064 PINMUX_IPSR_DATA(IP5_20_17, AUDIO_CLKC),
1065 PINMUX_IPSR_DATA(IP5_20_17, TX2_D),
1066 PINMUX_IPSR_DATA(IP5_20_17, SPEEDIN),
1067 PINMUX_IPSR_MODSEL_DATA(IP5_20_17, GPS_SIGN_D, SEL_GPS_3),
1068 PINMUX_IPSR_DATA(IP5_23_21, DU1_DISP),
1069 PINMUX_IPSR_DATA(IP5_23_21, VI2_DATA6_VI2_B6),
1070 PINMUX_IPSR_MODSEL_DATA(IP5_23_21, TCLK0, SEL_TMU0_0),
1071 PINMUX_IPSR_DATA(IP5_23_21, QSTVA_B_QVS_B),
1072 PINMUX_IPSR_MODSEL_DATA(IP5_23_21, HSPI_CLK1, SEL_HSPI1_0),
1073 PINMUX_IPSR_MODSEL_DATA(IP5_23_21, SCK2_D, SEL_SCIF2_3),
1074 PINMUX_IPSR_DATA(IP5_23_21, AUDIO_CLKOUT_B),
1075 PINMUX_IPSR_MODSEL_DATA(IP5_23_21, GPS_MAG_D, SEL_GPS_3),
1076 PINMUX_IPSR_DATA(IP5_27_24, DU1_CDE),
1077 PINMUX_IPSR_DATA(IP5_27_24, VI2_DATA7_VI2_B7),
1078 PINMUX_IPSR_MODSEL_DATA(IP5_27_24, RX3_B_IRDA_RX_B, SEL_SCIF3_1),
1079 PINMUX_IPSR_DATA(IP5_27_24, SD3_WP),
1080 PINMUX_IPSR_MODSEL_DATA(IP5_27_24, HSPI_RX1, SEL_HSPI1_0),
1081 PINMUX_IPSR_DATA(IP5_27_24, VI1_FIELD),
1082 PINMUX_IPSR_DATA(IP5_27_24, VI3_FIELD),
1083 PINMUX_IPSR_DATA(IP5_27_24, AUDIO_CLKOUT),
1084 PINMUX_IPSR_MODSEL_DATA(IP5_27_24, RX2_D, SEL_SCIF2_3),
1085 PINMUX_IPSR_MODSEL_DATA(IP5_27_24, GPS_CLK_C, SEL_GPS_2),
1086 PINMUX_IPSR_MODSEL_DATA(IP5_27_24, GPS_CLK_D, SEL_GPS_3),
1087 PINMUX_IPSR_DATA(IP5_28, AUDIO_CLKA),
1088 PINMUX_IPSR_DATA(IP5_28, CAN_TXCLK),
1089 PINMUX_IPSR_DATA(IP5_30_29, AUDIO_CLKB),
1090 PINMUX_IPSR_DATA(IP5_30_29, USB_OVC2),
1091 PINMUX_IPSR_DATA(IP5_30_29, CAN_DEBUGOUT0),
1092 PINMUX_IPSR_DATA(IP5_30_29, MOUT0),
1093
1094 PINMUX_IPSR_DATA(IP6_1_0, SSI_SCK0129),
1095 PINMUX_IPSR_DATA(IP6_1_0, CAN_DEBUGOUT1),
1096 PINMUX_IPSR_DATA(IP6_1_0, MOUT1),
1097 PINMUX_IPSR_DATA(IP6_3_2, SSI_WS0129),
1098 PINMUX_IPSR_DATA(IP6_3_2, CAN_DEBUGOUT2),
1099 PINMUX_IPSR_DATA(IP6_3_2, MOUT2),
1100 PINMUX_IPSR_DATA(IP6_5_4, SSI_SDATA0),
1101 PINMUX_IPSR_DATA(IP6_5_4, CAN_DEBUGOUT3),
1102 PINMUX_IPSR_DATA(IP6_5_4, MOUT5),
1103 PINMUX_IPSR_DATA(IP6_7_6, SSI_SDATA1),
1104 PINMUX_IPSR_DATA(IP6_7_6, CAN_DEBUGOUT4),
1105 PINMUX_IPSR_DATA(IP6_7_6, MOUT6),
1106 PINMUX_IPSR_DATA(IP6_8, SSI_SDATA2),
1107 PINMUX_IPSR_DATA(IP6_8, CAN_DEBUGOUT5),
1108 PINMUX_IPSR_DATA(IP6_11_9, SSI_SCK34),
1109 PINMUX_IPSR_DATA(IP6_11_9, CAN_DEBUGOUT6),
1110 PINMUX_IPSR_DATA(IP6_11_9, CAN0_TX_B),
1111 PINMUX_IPSR_MODSEL_DATA(IP6_11_9, IERX, SEL_IE_0),
1112 PINMUX_IPSR_MODSEL_DATA(IP6_11_9, SSI_SCK9_C, SEL_SSI9_2),
1113 PINMUX_IPSR_DATA(IP6_14_12, SSI_WS34),
1114 PINMUX_IPSR_DATA(IP6_14_12, CAN_DEBUGOUT7),
1115 PINMUX_IPSR_MODSEL_DATA(IP6_14_12, CAN0_RX_B, SEL_CAN0_1),
1116 PINMUX_IPSR_DATA(IP6_14_12, IETX),
1117 PINMUX_IPSR_MODSEL_DATA(IP6_14_12, SSI_WS9_C, SEL_SSI9_2),
1118 PINMUX_IPSR_DATA(IP6_17_15, SSI_SDATA3),
1119 PINMUX_IPSR_DATA(IP6_17_15, PWM0_C),
1120 PINMUX_IPSR_DATA(IP6_17_15, CAN_DEBUGOUT8),
1121 PINMUX_IPSR_MODSEL_DATA(IP6_17_15, CAN_CLK_B, SEL_CANCLK_1),
1122 PINMUX_IPSR_MODSEL_DATA(IP6_17_15, IECLK, SEL_IE_0),
1123 PINMUX_IPSR_MODSEL_DATA(IP6_17_15, SCIF_CLK_B, SEL_SCIF_1),
1124 PINMUX_IPSR_MODSEL_DATA(IP6_17_15, TCLK0_B, SEL_TMU0_1),
1125 PINMUX_IPSR_DATA(IP6_19_18, SSI_SDATA4),
1126 PINMUX_IPSR_DATA(IP6_19_18, CAN_DEBUGOUT9),
1127 PINMUX_IPSR_MODSEL_DATA(IP6_19_18, SSI_SDATA9_C, SEL_SSI9_2),
1128 PINMUX_IPSR_DATA(IP6_22_20, SSI_SCK5),
1129 PINMUX_IPSR_DATA(IP6_22_20, ADICLK),
1130 PINMUX_IPSR_DATA(IP6_22_20, CAN_DEBUGOUT10),
1131 PINMUX_IPSR_MODSEL_DATA(IP6_22_20, SCK3, SEL_SCIF3_0),
1132 PINMUX_IPSR_MODSEL_DATA(IP6_22_20, TCLK0_D, SEL_TMU0_3),
1133 PINMUX_IPSR_DATA(IP6_24_23, SSI_WS5),
1134 PINMUX_IPSR_MODSEL_DATA(IP6_24_23, ADICS_SAMP, SEL_ADI_0),
1135 PINMUX_IPSR_DATA(IP6_24_23, CAN_DEBUGOUT11),
1136 PINMUX_IPSR_DATA(IP6_24_23, TX3_IRDA_TX),
1137 PINMUX_IPSR_DATA(IP6_26_25, SSI_SDATA5),
1138 PINMUX_IPSR_MODSEL_DATA(IP6_26_25, ADIDATA, SEL_ADI_0),
1139 PINMUX_IPSR_DATA(IP6_26_25, CAN_DEBUGOUT12),
1140 PINMUX_IPSR_MODSEL_DATA(IP6_26_25, RX3_IRDA_RX, SEL_SCIF3_0),
1141 PINMUX_IPSR_DATA(IP6_30_29, SSI_SCK6),
1142 PINMUX_IPSR_DATA(IP6_30_29, ADICHS0),
1143 PINMUX_IPSR_DATA(IP6_30_29, CAN0_TX),
1144 PINMUX_IPSR_MODSEL_DATA(IP6_30_29, IERX_B, SEL_IE_1),
1145
1146 PINMUX_IPSR_DATA(IP7_1_0, SSI_WS6),
1147 PINMUX_IPSR_DATA(IP7_1_0, ADICHS1),
1148 PINMUX_IPSR_MODSEL_DATA(IP7_1_0, CAN0_RX, SEL_CAN0_0),
1149 PINMUX_IPSR_DATA(IP7_1_0, IETX_B),
1150 PINMUX_IPSR_DATA(IP7_3_2, SSI_SDATA6),
1151 PINMUX_IPSR_DATA(IP7_3_2, ADICHS2),
1152 PINMUX_IPSR_MODSEL_DATA(IP7_3_2, CAN_CLK, SEL_CANCLK_0),
1153 PINMUX_IPSR_MODSEL_DATA(IP7_3_2, IECLK_B, SEL_IE_1),
1154 PINMUX_IPSR_MODSEL_DATA(IP7_6_4, SSI_SCK78, SEL_SSI7_0),
1155 PINMUX_IPSR_DATA(IP7_6_4, CAN_DEBUGOUT13),
1156 PINMUX_IPSR_MODSEL_DATA(IP7_6_4, IRQ0_B, SEL_INT0_1),
1157 PINMUX_IPSR_MODSEL_DATA(IP7_6_4, SSI_SCK9_B, SEL_SSI9_1),
1158 PINMUX_IPSR_MODSEL_DATA(IP7_6_4, HSPI_CLK1_C, SEL_HSPI1_2),
1159 PINMUX_IPSR_MODSEL_DATA(IP7_9_7, SSI_WS78, SEL_SSI7_0),
1160 PINMUX_IPSR_DATA(IP7_9_7, CAN_DEBUGOUT14),
1161 PINMUX_IPSR_MODSEL_DATA(IP7_9_7, IRQ1_B, SEL_INT1_1),
1162 PINMUX_IPSR_MODSEL_DATA(IP7_9_7, SSI_WS9_B, SEL_SSI9_1),
1163 PINMUX_IPSR_MODSEL_DATA(IP7_9_7, HSPI_CS1_C, SEL_HSPI1_2),
1164 PINMUX_IPSR_MODSEL_DATA(IP7_12_10, SSI_SDATA7, SEL_SSI7_0),
1165 PINMUX_IPSR_DATA(IP7_12_10, CAN_DEBUGOUT15),
1166 PINMUX_IPSR_MODSEL_DATA(IP7_12_10, IRQ2_B, SEL_INT2_1),
1167 PINMUX_IPSR_MODSEL_DATA(IP7_12_10, TCLK1_C, SEL_TMU1_2),
1168 PINMUX_IPSR_DATA(IP7_12_10, HSPI_TX1_C),
1169 PINMUX_IPSR_MODSEL_DATA(IP7_14_13, SSI_SDATA8, SEL_SSI8_0),
1170 PINMUX_IPSR_DATA(IP7_14_13, VSP),
1171 PINMUX_IPSR_MODSEL_DATA(IP7_14_13, IRQ3_B, SEL_INT3_1),
1172 PINMUX_IPSR_MODSEL_DATA(IP7_14_13, HSPI_RX1_C, SEL_HSPI1_2),
1173 PINMUX_IPSR_DATA(IP7_16_15, SD0_CLK),
1174 PINMUX_IPSR_DATA(IP7_16_15, ATACS01),
1175 PINMUX_IPSR_MODSEL_DATA(IP7_16_15, SCK1_B, SEL_SCIF1_1),
1176 PINMUX_IPSR_DATA(IP7_18_17, SD0_CMD),
1177 PINMUX_IPSR_DATA(IP7_18_17, ATACS11),
1178 PINMUX_IPSR_DATA(IP7_18_17, TX1_B),
1179 PINMUX_IPSR_DATA(IP7_18_17, CC5_TDO),
1180 PINMUX_IPSR_DATA(IP7_20_19, SD0_DAT0),
1181 PINMUX_IPSR_DATA(IP7_20_19, ATADIR1),
1182 PINMUX_IPSR_MODSEL_DATA(IP7_20_19, RX1_B, SEL_SCIF1_1),
1183 PINMUX_IPSR_DATA(IP7_20_19, CC5_TRST),
1184 PINMUX_IPSR_DATA(IP7_22_21, SD0_DAT1),
1185 PINMUX_IPSR_DATA(IP7_22_21, ATAG1),
1186 PINMUX_IPSR_MODSEL_DATA(IP7_22_21, SCK2_B, SEL_SCIF2_1),
1187 PINMUX_IPSR_DATA(IP7_22_21, CC5_TMS),
1188 PINMUX_IPSR_DATA(IP7_24_23, SD0_DAT2),
1189 PINMUX_IPSR_DATA(IP7_24_23, ATARD1),
1190 PINMUX_IPSR_DATA(IP7_24_23, TX2_B),
1191 PINMUX_IPSR_DATA(IP7_24_23, CC5_TCK),
1192 PINMUX_IPSR_DATA(IP7_26_25, SD0_DAT3),
1193 PINMUX_IPSR_DATA(IP7_26_25, ATAWR1),
1194 PINMUX_IPSR_MODSEL_DATA(IP7_26_25, RX2_B, SEL_SCIF2_1),
1195 PINMUX_IPSR_DATA(IP7_26_25, CC5_TDI),
1196 PINMUX_IPSR_DATA(IP7_28_27, SD0_CD),
1197 PINMUX_IPSR_MODSEL_DATA(IP7_28_27, DREQ2, SEL_EXBUS2_0),
1198 PINMUX_IPSR_MODSEL_DATA(IP7_28_27, RTS1_B_TANS_B, SEL_SCIF1_1),
1199 PINMUX_IPSR_DATA(IP7_30_29, SD0_WP),
1200 PINMUX_IPSR_DATA(IP7_30_29, DACK2),
1201 PINMUX_IPSR_MODSEL_DATA(IP7_30_29, CTS1_B, SEL_SCIF1_1),
1202
1203 PINMUX_IPSR_DATA(IP8_3_0, HSPI_CLK0),
1204 PINMUX_IPSR_MODSEL_DATA(IP8_3_0, CTS0, SEL_SCIF0_0),
1205 PINMUX_IPSR_DATA(IP8_3_0, USB_OVC0),
1206 PINMUX_IPSR_DATA(IP8_3_0, AD_CLK),
1207 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE4),
1208 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE12),
1209 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE20),
1210 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE28),
1211 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE36),
1212 PINMUX_IPSR_DATA(IP8_7_4, HSPI_CS0),
1213 PINMUX_IPSR_MODSEL_DATA(IP8_7_4, RTS0_TANS, SEL_SCIF0_0),
1214 PINMUX_IPSR_DATA(IP8_7_4, USB_OVC1),
1215 PINMUX_IPSR_DATA(IP8_7_4, AD_DI),
1216 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE5),
1217 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE13),
1218 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE21),
1219 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE29),
1220 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE37),
1221 PINMUX_IPSR_DATA(IP8_11_8, HSPI_TX0),
1222 PINMUX_IPSR_DATA(IP8_11_8, TX0),
1223 PINMUX_IPSR_DATA(IP8_11_8, CAN_DEBUG_HW_TRIGGER),
1224 PINMUX_IPSR_DATA(IP8_11_8, AD_DO),
1225 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE6),
1226 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE14),
1227 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE22),
1228 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE30),
1229 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE38),
1230 PINMUX_IPSR_DATA(IP8_15_12, HSPI_RX0),
1231 PINMUX_IPSR_MODSEL_DATA(IP8_15_12, RX0, SEL_SCIF0_0),
1232 PINMUX_IPSR_DATA(IP8_15_12, CAN_STEP0),
1233 PINMUX_IPSR_DATA(IP8_15_12, AD_NCS),
1234 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE7),
1235 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE15),
1236 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE23),
1237 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE31),
1238 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE39),
1239 PINMUX_IPSR_DATA(IP8_17_16, FMCLK),
1240 PINMUX_IPSR_DATA(IP8_17_16, RDS_CLK),
1241 PINMUX_IPSR_DATA(IP8_17_16, PCMOE),
1242 PINMUX_IPSR_DATA(IP8_18, BPFCLK),
1243 PINMUX_IPSR_DATA(IP8_18, PCMWE),
1244 PINMUX_IPSR_DATA(IP8_19, FMIN),
1245 PINMUX_IPSR_DATA(IP8_19, RDS_DATA),
1246 PINMUX_IPSR_DATA(IP8_20, VI0_CLK),
1247 PINMUX_IPSR_DATA(IP8_20, MMC1_CLK),
1248 PINMUX_IPSR_DATA(IP8_22_21, VI0_CLKENB),
1249 PINMUX_IPSR_DATA(IP8_22_21, TX1_C),
1250 PINMUX_IPSR_DATA(IP8_22_21, HTX1_B),
1251 PINMUX_IPSR_DATA(IP8_22_21, MT1_SYNC),
1252 PINMUX_IPSR_DATA(IP8_24_23, VI0_FIELD),
1253 PINMUX_IPSR_MODSEL_DATA(IP8_24_23, RX1_C, SEL_SCIF1_2),
1254 PINMUX_IPSR_MODSEL_DATA(IP8_24_23, HRX1_B, SEL_HSCIF1_1),
1255 PINMUX_IPSR_DATA(IP8_27_25, VI0_HSYNC),
1256 PINMUX_IPSR_MODSEL_DATA(IP8_27_25, VI0_DATA0_B_VI0_B0_B, SEL_VI0_1),
1257 PINMUX_IPSR_MODSEL_DATA(IP8_27_25, CTS1_C, SEL_SCIF1_2),
1258 PINMUX_IPSR_DATA(IP8_27_25, TX4_D),
1259 PINMUX_IPSR_DATA(IP8_27_25, MMC1_CMD),
1260 PINMUX_IPSR_MODSEL_DATA(IP8_27_25, HSCK1_B, SEL_HSCIF1_1),
1261 PINMUX_IPSR_DATA(IP8_30_28, VI0_VSYNC),
1262 PINMUX_IPSR_MODSEL_DATA(IP8_30_28, VI0_DATA1_B_VI0_B1_B, SEL_VI0_1),
1263 PINMUX_IPSR_MODSEL_DATA(IP8_30_28, RTS1_C_TANS_C, SEL_SCIF1_2),
1264 PINMUX_IPSR_MODSEL_DATA(IP8_30_28, RX4_D, SEL_SCIF4_3),
1265 PINMUX_IPSR_MODSEL_DATA(IP8_30_28, PWMFSW0_C, SEL_PWMFSW_2),
1266
1267 PINMUX_IPSR_MODSEL_DATA(IP9_1_0, VI0_DATA0_VI0_B0, SEL_VI0_0),
1268 PINMUX_IPSR_MODSEL_DATA(IP9_1_0, HRTS1_B, SEL_HSCIF1_1),
1269 PINMUX_IPSR_DATA(IP9_1_0, MT1_VCXO),
1270 PINMUX_IPSR_MODSEL_DATA(IP9_3_2, VI0_DATA1_VI0_B1, SEL_VI0_0),
1271 PINMUX_IPSR_MODSEL_DATA(IP9_3_2, HCTS1_B, SEL_HSCIF1_1),
1272 PINMUX_IPSR_DATA(IP9_3_2, MT1_PWM),
1273 PINMUX_IPSR_DATA(IP9_4, VI0_DATA2_VI0_B2),
1274 PINMUX_IPSR_DATA(IP9_4, MMC1_D0),
1275 PINMUX_IPSR_DATA(IP9_5, VI0_DATA3_VI0_B3),
1276 PINMUX_IPSR_DATA(IP9_5, MMC1_D1),
1277 PINMUX_IPSR_DATA(IP9_6, VI0_DATA4_VI0_B4),
1278 PINMUX_IPSR_DATA(IP9_6, MMC1_D2),
1279 PINMUX_IPSR_DATA(IP9_7, VI0_DATA5_VI0_B5),
1280 PINMUX_IPSR_DATA(IP9_7, MMC1_D3),
1281 PINMUX_IPSR_DATA(IP9_9_8, VI0_DATA6_VI0_B6),
1282 PINMUX_IPSR_DATA(IP9_9_8, MMC1_D4),
1283 PINMUX_IPSR_DATA(IP9_9_8, ARM_TRACEDATA_0),
1284 PINMUX_IPSR_DATA(IP9_11_10, VI0_DATA7_VI0_B7),
1285 PINMUX_IPSR_DATA(IP9_11_10, MMC1_D5),
1286 PINMUX_IPSR_DATA(IP9_11_10, ARM_TRACEDATA_1),
1287 PINMUX_IPSR_DATA(IP9_13_12, VI0_G0),
1288 PINMUX_IPSR_MODSEL_DATA(IP9_13_12, SSI_SCK78_C, SEL_SSI7_2),
1289 PINMUX_IPSR_MODSEL_DATA(IP9_13_12, IRQ0, SEL_INT0_0),
1290 PINMUX_IPSR_DATA(IP9_13_12, ARM_TRACEDATA_2),
1291 PINMUX_IPSR_DATA(IP9_15_14, VI0_G1),
1292 PINMUX_IPSR_MODSEL_DATA(IP9_15_14, SSI_WS78_C, SEL_SSI7_2),
1293 PINMUX_IPSR_MODSEL_DATA(IP9_15_14, IRQ1, SEL_INT1_0),
1294 PINMUX_IPSR_DATA(IP9_15_14, ARM_TRACEDATA_3),
1295 PINMUX_IPSR_DATA(IP9_18_16, VI0_G2),
1296 PINMUX_IPSR_DATA(IP9_18_16, ETH_TXD1),
1297 PINMUX_IPSR_DATA(IP9_18_16, MMC1_D6),
1298 PINMUX_IPSR_DATA(IP9_18_16, ARM_TRACEDATA_4),
1299 PINMUX_IPSR_DATA(IP9_18_16, TS_SPSYNC0),
1300 PINMUX_IPSR_DATA(IP9_21_19, VI0_G3),
1301 PINMUX_IPSR_DATA(IP9_21_19, ETH_CRS_DV),
1302 PINMUX_IPSR_DATA(IP9_21_19, MMC1_D7),
1303 PINMUX_IPSR_DATA(IP9_21_19, ARM_TRACEDATA_5),
1304 PINMUX_IPSR_DATA(IP9_21_19, TS_SDAT0),
1305 PINMUX_IPSR_DATA(IP9_23_22, VI0_G4),
1306 PINMUX_IPSR_DATA(IP9_23_22, ETH_TX_EN),
1307 PINMUX_IPSR_MODSEL_DATA(IP9_23_22, SD2_DAT0_B, SEL_SD2_1),
1308 PINMUX_IPSR_DATA(IP9_23_22, ARM_TRACEDATA_6),
1309 PINMUX_IPSR_DATA(IP9_25_24, VI0_G5),
1310 PINMUX_IPSR_DATA(IP9_25_24, ETH_RX_ER),
1311 PINMUX_IPSR_MODSEL_DATA(IP9_25_24, SD2_DAT1_B, SEL_SD2_1),
1312 PINMUX_IPSR_DATA(IP9_25_24, ARM_TRACEDATA_7),
1313 PINMUX_IPSR_DATA(IP9_27_26, VI0_G6),
1314 PINMUX_IPSR_DATA(IP9_27_26, ETH_RXD0),
1315 PINMUX_IPSR_MODSEL_DATA(IP9_27_26, SD2_DAT2_B, SEL_SD2_1),
1316 PINMUX_IPSR_DATA(IP9_27_26, ARM_TRACEDATA_8),
1317 PINMUX_IPSR_DATA(IP9_29_28, VI0_G7),
1318 PINMUX_IPSR_DATA(IP9_29_28, ETH_RXD1),
1319 PINMUX_IPSR_MODSEL_DATA(IP9_29_28, SD2_DAT3_B, SEL_SD2_1),
1320 PINMUX_IPSR_DATA(IP9_29_28, ARM_TRACEDATA_9),
1321
1322 PINMUX_IPSR_DATA(IP10_2_0, VI0_R0),
1323 PINMUX_IPSR_MODSEL_DATA(IP10_2_0, SSI_SDATA7_C, SEL_SSI7_2),
1324 PINMUX_IPSR_MODSEL_DATA(IP10_2_0, SCK1_C, SEL_SCIF1_2),
1325 PINMUX_IPSR_MODSEL_DATA(IP10_2_0, DREQ1_B, SEL_EXBUS1_0),
1326 PINMUX_IPSR_DATA(IP10_2_0, ARM_TRACEDATA_10),
1327 PINMUX_IPSR_MODSEL_DATA(IP10_2_0, DREQ0_C, SEL_EXBUS0_2),
1328 PINMUX_IPSR_DATA(IP10_5_3, VI0_R1),
1329 PINMUX_IPSR_MODSEL_DATA(IP10_5_3, SSI_SDATA8_C, SEL_SSI8_2),
1330 PINMUX_IPSR_DATA(IP10_5_3, DACK1_B),
1331 PINMUX_IPSR_DATA(IP10_5_3, ARM_TRACEDATA_11),
1332 PINMUX_IPSR_DATA(IP10_5_3, DACK0_C),
1333 PINMUX_IPSR_DATA(IP10_5_3, DRACK0_C),
1334 PINMUX_IPSR_DATA(IP10_8_6, VI0_R2),
1335 PINMUX_IPSR_DATA(IP10_8_6, ETH_LINK),
1336 PINMUX_IPSR_DATA(IP10_8_6, SD2_CLK_B),
1337 PINMUX_IPSR_MODSEL_DATA(IP10_8_6, IRQ2, SEL_INT2_0),
1338 PINMUX_IPSR_DATA(IP10_8_6, ARM_TRACEDATA_12),
1339 PINMUX_IPSR_DATA(IP10_11_9, VI0_R3),
1340 PINMUX_IPSR_DATA(IP10_11_9, ETH_MAGIC),
1341 PINMUX_IPSR_MODSEL_DATA(IP10_11_9, SD2_CMD_B, SEL_SD2_1),
1342 PINMUX_IPSR_MODSEL_DATA(IP10_11_9, IRQ3, SEL_INT3_0),
1343 PINMUX_IPSR_DATA(IP10_11_9, ARM_TRACEDATA_13),
1344 PINMUX_IPSR_DATA(IP10_14_12, VI0_R4),
1345 PINMUX_IPSR_DATA(IP10_14_12, ETH_REFCLK),
1346 PINMUX_IPSR_MODSEL_DATA(IP10_14_12, SD2_CD_B, SEL_SD2_1),
1347 PINMUX_IPSR_MODSEL_DATA(IP10_14_12, HSPI_CLK1_B, SEL_HSPI1_1),
1348 PINMUX_IPSR_DATA(IP10_14_12, ARM_TRACEDATA_14),
1349 PINMUX_IPSR_DATA(IP10_14_12, MT1_CLK),
1350 PINMUX_IPSR_DATA(IP10_14_12, TS_SCK0),
1351 PINMUX_IPSR_DATA(IP10_17_15, VI0_R5),
1352 PINMUX_IPSR_DATA(IP10_17_15, ETH_TXD0),
1353 PINMUX_IPSR_MODSEL_DATA(IP10_17_15, SD2_WP_B, SEL_SD2_1),
1354 PINMUX_IPSR_MODSEL_DATA(IP10_17_15, HSPI_CS1_B, SEL_HSPI1_1),
1355 PINMUX_IPSR_DATA(IP10_17_15, ARM_TRACEDATA_15),
1356 PINMUX_IPSR_DATA(IP10_17_15, MT1_D),
1357 PINMUX_IPSR_DATA(IP10_17_15, TS_SDEN0),
1358 PINMUX_IPSR_DATA(IP10_20_18, VI0_R6),
1359 PINMUX_IPSR_DATA(IP10_20_18, ETH_MDC),
1360 PINMUX_IPSR_MODSEL_DATA(IP10_20_18, DREQ2_C, SEL_EXBUS2_2),
1361 PINMUX_IPSR_DATA(IP10_20_18, HSPI_TX1_B),
1362 PINMUX_IPSR_DATA(IP10_20_18, TRACECLK),
1363 PINMUX_IPSR_DATA(IP10_20_18, MT1_BEN),
1364 PINMUX_IPSR_MODSEL_DATA(IP10_20_18, PWMFSW0_D, SEL_PWMFSW_3),
1365 PINMUX_IPSR_DATA(IP10_23_21, VI0_R7),
1366 PINMUX_IPSR_DATA(IP10_23_21, ETH_MDIO),
1367 PINMUX_IPSR_DATA(IP10_23_21, DACK2_C),
1368 PINMUX_IPSR_MODSEL_DATA(IP10_23_21, HSPI_RX1_B, SEL_HSPI1_1),
1369 PINMUX_IPSR_MODSEL_DATA(IP10_23_21, SCIF_CLK_D, SEL_SCIF_3),
1370 PINMUX_IPSR_DATA(IP10_23_21, TRACECTL),
1371 PINMUX_IPSR_DATA(IP10_23_21, MT1_PEN),
1372 PINMUX_IPSR_DATA(IP10_25_24, VI1_CLK),
1373 PINMUX_IPSR_MODSEL_DATA(IP10_25_24, SIM_D, SEL_SIM_0),
1374 PINMUX_IPSR_MODSEL_DATA(IP10_25_24, SDA3, SEL_I2C3_0),
1375 PINMUX_IPSR_DATA(IP10_28_26, VI1_HSYNC),
1376 PINMUX_IPSR_DATA(IP10_28_26, VI3_CLK),
1377 PINMUX_IPSR_DATA(IP10_28_26, SSI_SCK4),
1378 PINMUX_IPSR_MODSEL_DATA(IP10_28_26, GPS_SIGN_C, SEL_GPS_2),
1379 PINMUX_IPSR_MODSEL_DATA(IP10_28_26, PWMFSW0_E, SEL_PWMFSW_4),
1380 PINMUX_IPSR_DATA(IP10_31_29, VI1_VSYNC),
1381 PINMUX_IPSR_DATA(IP10_31_29, AUDIO_CLKOUT_C),
1382 PINMUX_IPSR_DATA(IP10_31_29, SSI_WS4),
1383 PINMUX_IPSR_DATA(IP10_31_29, SIM_CLK),
1384 PINMUX_IPSR_MODSEL_DATA(IP10_31_29, GPS_MAG_C, SEL_GPS_2),
1385 PINMUX_IPSR_DATA(IP10_31_29, SPV_TRST),
1386 PINMUX_IPSR_MODSEL_DATA(IP10_31_29, SCL3, SEL_I2C3_0),
1387
1388 PINMUX_IPSR_DATA(IP11_2_0, VI1_DATA0_VI1_B0),
1389 PINMUX_IPSR_MODSEL_DATA(IP11_2_0, SD2_DAT0, SEL_SD2_0),
1390 PINMUX_IPSR_DATA(IP11_2_0, SIM_RST),
1391 PINMUX_IPSR_DATA(IP11_2_0, SPV_TCK),
1392 PINMUX_IPSR_DATA(IP11_2_0, ADICLK_B),
1393 PINMUX_IPSR_DATA(IP11_5_3, VI1_DATA1_VI1_B1),
1394 PINMUX_IPSR_MODSEL_DATA(IP11_5_3, SD2_DAT1, SEL_SD2_0),
1395 PINMUX_IPSR_DATA(IP11_5_3, MT0_CLK),
1396 PINMUX_IPSR_DATA(IP11_5_3, SPV_TMS),
1397 PINMUX_IPSR_MODSEL_DATA(IP11_5_3, ADICS_B_SAMP_B, SEL_ADI_1),
1398 PINMUX_IPSR_DATA(IP11_8_6, VI1_DATA2_VI1_B2),
1399 PINMUX_IPSR_MODSEL_DATA(IP11_8_6, SD2_DAT2, SEL_SD2_0),
1400 PINMUX_IPSR_DATA(IP11_8_6, MT0_D),
1401 PINMUX_IPSR_DATA(IP11_8_6, SPVTDI),
1402 PINMUX_IPSR_MODSEL_DATA(IP11_8_6, ADIDATA_B, SEL_ADI_1),
1403 PINMUX_IPSR_DATA(IP11_11_9, VI1_DATA3_VI1_B3),
1404 PINMUX_IPSR_MODSEL_DATA(IP11_11_9, SD2_DAT3, SEL_SD2_0),
1405 PINMUX_IPSR_DATA(IP11_11_9, MT0_BEN),
1406 PINMUX_IPSR_DATA(IP11_11_9, SPV_TDO),
1407 PINMUX_IPSR_DATA(IP11_11_9, ADICHS0_B),
1408 PINMUX_IPSR_DATA(IP11_14_12, VI1_DATA4_VI1_B4),
1409 PINMUX_IPSR_DATA(IP11_14_12, SD2_CLK),
1410 PINMUX_IPSR_DATA(IP11_14_12, MT0_PEN),
1411 PINMUX_IPSR_DATA(IP11_14_12, SPA_TRST),
1412 PINMUX_IPSR_MODSEL_DATA(IP11_14_12, HSPI_CLK1_D, SEL_HSPI1_3),
1413 PINMUX_IPSR_DATA(IP11_14_12, ADICHS1_B),
1414 PINMUX_IPSR_DATA(IP11_17_15, VI1_DATA5_VI1_B5),
1415 PINMUX_IPSR_MODSEL_DATA(IP11_17_15, SD2_CMD, SEL_SD2_0),
1416 PINMUX_IPSR_DATA(IP11_17_15, MT0_SYNC),
1417 PINMUX_IPSR_DATA(IP11_17_15, SPA_TCK),
1418 PINMUX_IPSR_MODSEL_DATA(IP11_17_15, HSPI_CS1_D, SEL_HSPI1_3),
1419 PINMUX_IPSR_DATA(IP11_17_15, ADICHS2_B),
1420 PINMUX_IPSR_DATA(IP11_20_18, VI1_DATA6_VI1_B6),
1421 PINMUX_IPSR_MODSEL_DATA(IP11_20_18, SD2_CD, SEL_SD2_0),
1422 PINMUX_IPSR_DATA(IP11_20_18, MT0_VCXO),
1423 PINMUX_IPSR_DATA(IP11_20_18, SPA_TMS),
1424 PINMUX_IPSR_DATA(IP11_20_18, HSPI_TX1_D),
1425 PINMUX_IPSR_DATA(IP11_23_21, VI1_DATA7_VI1_B7),
1426 PINMUX_IPSR_MODSEL_DATA(IP11_23_21, SD2_WP, SEL_SD2_0),
1427 PINMUX_IPSR_DATA(IP11_23_21, MT0_PWM),
1428 PINMUX_IPSR_DATA(IP11_23_21, SPA_TDI),
1429 PINMUX_IPSR_MODSEL_DATA(IP11_23_21, HSPI_RX1_D, SEL_HSPI1_3),
1430 PINMUX_IPSR_DATA(IP11_26_24, VI1_G0),
1431 PINMUX_IPSR_DATA(IP11_26_24, VI3_DATA0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001432 PINMUX_IPSR_DATA(IP11_26_24, TS_SCK1),
1433 PINMUX_IPSR_MODSEL_DATA(IP11_26_24, DREQ2_B, SEL_EXBUS2_1),
1434 PINMUX_IPSR_DATA(IP11_26_24, TX2),
1435 PINMUX_IPSR_DATA(IP11_26_24, SPA_TDO),
1436 PINMUX_IPSR_MODSEL_DATA(IP11_26_24, HCTS0_B, SEL_HSCIF0_1),
1437 PINMUX_IPSR_DATA(IP11_29_27, VI1_G1),
1438 PINMUX_IPSR_DATA(IP11_29_27, VI3_DATA1),
1439 PINMUX_IPSR_DATA(IP11_29_27, SSI_SCK1),
1440 PINMUX_IPSR_DATA(IP11_29_27, TS_SDEN1),
1441 PINMUX_IPSR_DATA(IP11_29_27, DACK2_B),
1442 PINMUX_IPSR_MODSEL_DATA(IP11_29_27, RX2, SEL_SCIF2_0),
1443 PINMUX_IPSR_MODSEL_DATA(IP11_29_27, HRTS0_B, SEL_HSCIF0_1),
1444
1445 PINMUX_IPSR_DATA(IP12_2_0, VI1_G2),
1446 PINMUX_IPSR_DATA(IP12_2_0, VI3_DATA2),
1447 PINMUX_IPSR_DATA(IP12_2_0, SSI_WS1),
1448 PINMUX_IPSR_DATA(IP12_2_0, TS_SPSYNC1),
1449 PINMUX_IPSR_MODSEL_DATA(IP12_2_0, SCK2, SEL_SCIF2_0),
1450 PINMUX_IPSR_MODSEL_DATA(IP12_2_0, HSCK0_B, SEL_HSCIF0_1),
1451 PINMUX_IPSR_DATA(IP12_5_3, VI1_G3),
1452 PINMUX_IPSR_DATA(IP12_5_3, VI3_DATA3),
1453 PINMUX_IPSR_DATA(IP12_5_3, SSI_SCK2),
1454 PINMUX_IPSR_DATA(IP12_5_3, TS_SDAT1),
1455 PINMUX_IPSR_MODSEL_DATA(IP12_5_3, SCL1_C, SEL_I2C1_2),
1456 PINMUX_IPSR_DATA(IP12_5_3, HTX0_B),
1457 PINMUX_IPSR_DATA(IP12_8_6, VI1_G4),
1458 PINMUX_IPSR_DATA(IP12_8_6, VI3_DATA4),
1459 PINMUX_IPSR_DATA(IP12_8_6, SSI_WS2),
1460 PINMUX_IPSR_MODSEL_DATA(IP12_8_6, SDA1_C, SEL_I2C1_2),
1461 PINMUX_IPSR_DATA(IP12_8_6, SIM_RST_B),
1462 PINMUX_IPSR_MODSEL_DATA(IP12_8_6, HRX0_B, SEL_HSCIF0_1),
1463 PINMUX_IPSR_DATA(IP12_11_9, VI1_G5),
1464 PINMUX_IPSR_DATA(IP12_11_9, VI3_DATA5),
1465 PINMUX_IPSR_MODSEL_DATA(IP12_11_9, GPS_CLK, SEL_GPS_0),
1466 PINMUX_IPSR_DATA(IP12_11_9, FSE),
1467 PINMUX_IPSR_DATA(IP12_11_9, TX4_B),
1468 PINMUX_IPSR_MODSEL_DATA(IP12_11_9, SIM_D_B, SEL_SIM_1),
1469 PINMUX_IPSR_DATA(IP12_14_12, VI1_G6),
1470 PINMUX_IPSR_DATA(IP12_14_12, VI3_DATA6),
1471 PINMUX_IPSR_MODSEL_DATA(IP12_14_12, GPS_SIGN, SEL_GPS_0),
1472 PINMUX_IPSR_DATA(IP12_14_12, FRB),
1473 PINMUX_IPSR_MODSEL_DATA(IP12_14_12, RX4_B, SEL_SCIF4_1),
1474 PINMUX_IPSR_DATA(IP12_14_12, SIM_CLK_B),
1475 PINMUX_IPSR_DATA(IP12_17_15, VI1_G7),
1476 PINMUX_IPSR_DATA(IP12_17_15, VI3_DATA7),
1477 PINMUX_IPSR_MODSEL_DATA(IP12_17_15, GPS_MAG, SEL_GPS_0),
1478 PINMUX_IPSR_DATA(IP12_17_15, FCE),
1479 PINMUX_IPSR_MODSEL_DATA(IP12_17_15, SCK4_B, SEL_SCIF4_1),
1480};
1481
Laurent Pincharta3db40a2013-01-02 14:53:37 +01001482static struct sh_pfc_pin pinmux_pins[] = {
Laurent Pinchart881023d2012-12-15 23:51:22 +01001483 PINMUX_GPIO_GP_ALL(),
Laurent Pincharta373ed02012-11-29 13:24:07 +01001484};
1485
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001486/* - DU0 -------------------------------------------------------------------- */
1487static const unsigned int du0_rgb666_pins[] = {
1488 /* R[7:2], G[7:2], B[7:2] */
1489 188, 187, 186, 185, 184, 183,
1490 194, 193, 192, 191, 190, 189,
1491 200, 199, 198, 197, 196, 195,
1492};
1493static const unsigned int du0_rgb666_mux[] = {
1494 DU0_DR7_MARK, DU0_DR6_MARK, DU0_DR5_MARK, DU0_DR4_MARK,
1495 DU0_DR3_MARK, DU0_DR2_MARK,
1496 DU0_DG7_MARK, DU0_DG6_MARK, DU0_DG5_MARK, DU0_DG4_MARK,
1497 DU0_DG3_MARK, DU0_DG2_MARK,
1498 DU0_DB7_MARK, DU0_DB6_MARK, DU0_DB5_MARK, DU0_DB4_MARK,
1499 DU0_DB3_MARK, DU0_DB2_MARK,
1500};
1501static const unsigned int du0_rgb888_pins[] = {
1502 /* R[7:0], G[7:0], B[7:0] */
1503 188, 187, 186, 185, 184, 183, 24, 23,
1504 194, 193, 192, 191, 190, 189, 26, 25,
1505 200, 199, 198, 197, 196, 195, 28, 27,
1506};
1507static const unsigned int du0_rgb888_mux[] = {
1508 DU0_DR7_MARK, DU0_DR6_MARK, DU0_DR5_MARK, DU0_DR4_MARK,
1509 DU0_DR3_MARK, DU0_DR2_MARK, DU0_DR1_MARK, DU0_DR0_MARK,
1510 DU0_DG7_MARK, DU0_DG6_MARK, DU0_DG5_MARK, DU0_DG4_MARK,
1511 DU0_DG3_MARK, DU0_DG2_MARK, DU0_DG1_MARK, DU0_DG0_MARK,
1512 DU0_DB7_MARK, DU0_DB6_MARK, DU0_DB5_MARK, DU0_DB4_MARK,
1513 DU0_DB3_MARK, DU0_DB2_MARK, DU0_DB1_MARK, DU0_DB0_MARK,
1514};
1515static const unsigned int du0_clk_0_pins[] = {
1516 /* CLKIN, CLKOUT */
1517 29, 180,
1518};
1519static const unsigned int du0_clk_0_mux[] = {
1520 DU0_DOTCLKIN_MARK, DU0_DOTCLKOUT0_MARK,
1521};
1522static const unsigned int du0_clk_1_pins[] = {
1523 /* CLKIN, CLKOUT */
1524 29, 30,
1525};
1526static const unsigned int du0_clk_1_mux[] = {
1527 DU0_DOTCLKIN_MARK, DU0_DOTCLKOUT1_MARK,
1528};
1529static const unsigned int du0_sync_0_pins[] = {
1530 /* VSYNC, HSYNC, DISP */
1531 182, 181, 31,
1532};
1533static const unsigned int du0_sync_0_mux[] = {
1534 DU0_EXHSYNC_DU0_HSYNC_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK,
1535 DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK
1536};
1537static const unsigned int du0_sync_1_pins[] = {
1538 /* VSYNC, HSYNC, DISP */
1539 182, 181, 32,
1540};
1541static const unsigned int du0_sync_1_mux[] = {
1542 DU0_EXHSYNC_DU0_HSYNC_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK,
1543 DU0_DISP_MARK
1544};
1545static const unsigned int du0_oddf_pins[] = {
1546 /* ODDF */
1547 31,
1548};
1549static const unsigned int du0_oddf_mux[] = {
1550 DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK
1551};
1552static const unsigned int du0_cde_pins[] = {
1553 /* CDE */
1554 33,
1555};
1556static const unsigned int du0_cde_mux[] = {
1557 DU0_CDE_MARK
1558};
1559/* - DU1 -------------------------------------------------------------------- */
1560static const unsigned int du1_rgb666_pins[] = {
1561 /* R[7:2], G[7:2], B[7:2] */
1562 41, 40, 39, 38, 37, 36,
1563 49, 48, 47, 46, 45, 44,
1564 57, 56, 55, 54, 53, 52,
1565};
1566static const unsigned int du1_rgb666_mux[] = {
1567 DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
1568 DU1_DR3_MARK, DU1_DR2_MARK,
1569 DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
1570 DU1_DG3_MARK, DU1_DG2_MARK,
1571 DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
1572 DU1_DB3_MARK, DU1_DB2_MARK,
1573};
1574static const unsigned int du1_rgb888_pins[] = {
1575 /* R[7:0], G[7:0], B[7:0] */
1576 41, 40, 39, 38, 37, 36, 35, 34,
1577 49, 48, 47, 46, 45, 44, 43, 32,
1578 57, 56, 55, 54, 53, 52, 51, 50,
1579};
1580static const unsigned int du1_rgb888_mux[] = {
1581 DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
1582 DU1_DR3_MARK, DU1_DR2_MARK, DU1_DR1_MARK, DU1_DR0_MARK,
1583 DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
1584 DU1_DG3_MARK, DU1_DG2_MARK, DU1_DG1_MARK, DU1_DG0_MARK,
1585 DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
1586 DU1_DB3_MARK, DU1_DB2_MARK, DU1_DB1_MARK, DU1_DB0_MARK,
1587};
1588static const unsigned int du1_clk_pins[] = {
1589 /* CLKIN, CLKOUT */
1590 58, 59,
1591};
1592static const unsigned int du1_clk_mux[] = {
1593 DU1_DOTCLKIN_MARK, DU1_DOTCLKOUT_MARK,
1594};
1595static const unsigned int du1_sync_0_pins[] = {
1596 /* VSYNC, HSYNC, DISP */
1597 61, 60, 62,
1598};
1599static const unsigned int du1_sync_0_mux[] = {
1600 DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK,
1601 DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK
1602};
1603static const unsigned int du1_sync_1_pins[] = {
1604 /* VSYNC, HSYNC, DISP */
1605 61, 60, 63,
1606};
1607static const unsigned int du1_sync_1_mux[] = {
1608 DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK,
1609 DU1_DISP_MARK
1610};
1611static const unsigned int du1_oddf_pins[] = {
1612 /* ODDF */
1613 62,
1614};
1615static const unsigned int du1_oddf_mux[] = {
1616 DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK
1617};
1618static const unsigned int du1_cde_pins[] = {
1619 /* CDE */
1620 64,
1621};
1622static const unsigned int du1_cde_mux[] = {
1623 DU1_CDE_MARK
1624};
Laurent Pinchartf5162382013-03-06 19:04:43 +01001625/* - HSPI0 ------------------------------------------------------------------ */
1626static const unsigned int hspi0_pins[] = {
1627 /* CLK, CS, RX, TX */
1628 150, 151, 153, 152,
1629};
1630static const unsigned int hspi0_mux[] = {
1631 HSPI_CLK0_MARK, HSPI_CS0_MARK, HSPI_RX0_MARK, HSPI_TX0_MARK,
1632};
1633/* - HSPI1 ------------------------------------------------------------------ */
1634static const unsigned int hspi1_pins[] = {
1635 /* CLK, CS, RX, TX */
1636 63, 58, 64, 62,
1637};
1638static const unsigned int hspi1_mux[] = {
1639 HSPI_CLK1_MARK, HSPI_CS1_MARK, HSPI_RX1_MARK, HSPI_TX1_MARK,
1640};
1641static const unsigned int hspi1_b_pins[] = {
1642 /* CLK, CS, RX, TX */
1643 90, 91, 93, 92,
1644};
1645static const unsigned int hspi1_b_mux[] = {
1646 HSPI_CLK1_B_MARK, HSPI_CS1_B_MARK, HSPI_RX1_B_MARK, HSPI_TX1_B_MARK,
1647};
1648static const unsigned int hspi1_c_pins[] = {
1649 /* CLK, CS, RX, TX */
1650 141, 142, 144, 143,
1651};
1652static const unsigned int hspi1_c_mux[] = {
1653 HSPI_CLK1_C_MARK, HSPI_CS1_C_MARK, HSPI_RX1_C_MARK, HSPI_TX1_C_MARK,
1654};
1655static const unsigned int hspi1_d_pins[] = {
1656 /* CLK, CS, RX, TX */
1657 101, 102, 104, 103,
1658};
1659static const unsigned int hspi1_d_mux[] = {
1660 HSPI_CLK1_D_MARK, HSPI_CS1_D_MARK, HSPI_RX1_D_MARK, HSPI_TX1_D_MARK,
1661};
1662/* - HSPI2 ------------------------------------------------------------------ */
1663static const unsigned int hspi2_pins[] = {
1664 /* CLK, CS, RX, TX */
1665 9, 10, 11, 14,
1666};
1667static const unsigned int hspi2_mux[] = {
1668 HSPI_CLK2_MARK, HSPI_CS2_MARK, HSPI_RX2_MARK, HSPI_TX2_MARK,
1669};
1670static const unsigned int hspi2_b_pins[] = {
1671 /* CLK, CS, RX, TX */
1672 7, 13, 8, 6,
1673};
1674static const unsigned int hspi2_b_mux[] = {
1675 HSPI_CLK2_B_MARK, HSPI_CS2_B_MARK, HSPI_RX2_B_MARK, HSPI_TX2_B_MARK,
1676};
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001677/* - INTC ------------------------------------------------------------------- */
1678static const unsigned int intc_irq0_pins[] = {
1679 /* IRQ */
1680 78,
1681};
1682static const unsigned int intc_irq0_mux[] = {
1683 IRQ0_MARK,
1684};
1685static const unsigned int intc_irq0_b_pins[] = {
1686 /* IRQ */
1687 141,
1688};
1689static const unsigned int intc_irq0_b_mux[] = {
1690 IRQ0_B_MARK,
1691};
1692static const unsigned int intc_irq1_pins[] = {
1693 /* IRQ */
1694 79,
1695};
1696static const unsigned int intc_irq1_mux[] = {
1697 IRQ1_MARK,
1698};
1699static const unsigned int intc_irq1_b_pins[] = {
1700 /* IRQ */
1701 142,
1702};
1703static const unsigned int intc_irq1_b_mux[] = {
1704 IRQ1_B_MARK,
1705};
1706static const unsigned int intc_irq2_pins[] = {
1707 /* IRQ */
1708 88,
1709};
1710static const unsigned int intc_irq2_mux[] = {
1711 IRQ2_MARK,
1712};
1713static const unsigned int intc_irq2_b_pins[] = {
1714 /* IRQ */
1715 143,
1716};
1717static const unsigned int intc_irq2_b_mux[] = {
1718 IRQ2_B_MARK,
1719};
1720static const unsigned int intc_irq3_pins[] = {
1721 /* IRQ */
1722 89,
1723};
1724static const unsigned int intc_irq3_mux[] = {
1725 IRQ3_MARK,
1726};
1727static const unsigned int intc_irq3_b_pins[] = {
1728 /* IRQ */
1729 144,
1730};
1731static const unsigned int intc_irq3_b_mux[] = {
1732 IRQ3_B_MARK,
1733};
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001734/* - LSBC ------------------------------------------------------------------- */
1735static const unsigned int lbsc_cs0_pins[] = {
1736 /* CS */
1737 13,
1738};
1739static const unsigned int lbsc_cs0_mux[] = {
1740 CS0_MARK,
1741};
1742static const unsigned int lbsc_cs1_pins[] = {
1743 /* CS */
1744 14,
1745};
1746static const unsigned int lbsc_cs1_mux[] = {
1747 CS1_A26_MARK,
1748};
1749static const unsigned int lbsc_ex_cs0_pins[] = {
1750 /* CS */
1751 15,
1752};
1753static const unsigned int lbsc_ex_cs0_mux[] = {
1754 EX_CS0_MARK,
1755};
1756static const unsigned int lbsc_ex_cs1_pins[] = {
1757 /* CS */
1758 16,
1759};
1760static const unsigned int lbsc_ex_cs1_mux[] = {
1761 EX_CS1_MARK,
1762};
1763static const unsigned int lbsc_ex_cs2_pins[] = {
1764 /* CS */
1765 17,
1766};
1767static const unsigned int lbsc_ex_cs2_mux[] = {
1768 EX_CS2_MARK,
1769};
1770static const unsigned int lbsc_ex_cs3_pins[] = {
1771 /* CS */
1772 18,
1773};
1774static const unsigned int lbsc_ex_cs3_mux[] = {
1775 EX_CS3_MARK,
1776};
1777static const unsigned int lbsc_ex_cs4_pins[] = {
1778 /* CS */
1779 19,
1780};
1781static const unsigned int lbsc_ex_cs4_mux[] = {
1782 EX_CS4_MARK,
1783};
1784static const unsigned int lbsc_ex_cs5_pins[] = {
1785 /* CS */
1786 20,
1787};
1788static const unsigned int lbsc_ex_cs5_mux[] = {
1789 EX_CS5_MARK,
1790};
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001791/* - MMCIF ------------------------------------------------------------------ */
1792static const unsigned int mmc0_data1_pins[] = {
1793 /* D[0] */
1794 19,
1795};
1796static const unsigned int mmc0_data1_mux[] = {
1797 MMC0_D0_MARK,
1798};
1799static const unsigned int mmc0_data4_pins[] = {
1800 /* D[0:3] */
1801 19, 20, 21, 2,
1802};
1803static const unsigned int mmc0_data4_mux[] = {
1804 MMC0_D0_MARK, MMC0_D1_MARK, MMC0_D2_MARK, MMC0_D3_MARK,
1805};
1806static const unsigned int mmc0_data8_pins[] = {
1807 /* D[0:7] */
1808 19, 20, 21, 2, 10, 11, 15, 16,
1809};
1810static const unsigned int mmc0_data8_mux[] = {
1811 MMC0_D0_MARK, MMC0_D1_MARK, MMC0_D2_MARK, MMC0_D3_MARK,
1812 MMC0_D4_MARK, MMC0_D5_MARK, MMC0_D6_MARK, MMC0_D7_MARK,
1813};
1814static const unsigned int mmc0_ctrl_pins[] = {
1815 /* CMD, CLK */
1816 18, 17,
1817};
1818static const unsigned int mmc0_ctrl_mux[] = {
1819 MMC0_CMD_MARK, MMC0_CLK_MARK,
1820};
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001821static const unsigned int mmc1_data1_pins[] = {
1822 /* D[0] */
1823 72,
1824};
1825static const unsigned int mmc1_data1_mux[] = {
1826 MMC1_D0_MARK,
1827};
1828static const unsigned int mmc1_data4_pins[] = {
1829 /* D[0:3] */
1830 72, 73, 74, 75,
1831};
1832static const unsigned int mmc1_data4_mux[] = {
1833 MMC1_D0_MARK, MMC1_D1_MARK, MMC1_D2_MARK, MMC1_D3_MARK,
1834};
1835static const unsigned int mmc1_data8_pins[] = {
1836 /* D[0:7] */
1837 72, 73, 74, 75, 76, 77, 80, 81,
1838};
1839static const unsigned int mmc1_data8_mux[] = {
1840 MMC1_D0_MARK, MMC1_D1_MARK, MMC1_D2_MARK, MMC1_D3_MARK,
1841 MMC1_D4_MARK, MMC1_D5_MARK, MMC1_D6_MARK, MMC1_D7_MARK,
1842};
1843static const unsigned int mmc1_ctrl_pins[] = {
1844 /* CMD, CLK */
1845 68, 65,
1846};
1847static const unsigned int mmc1_ctrl_mux[] = {
1848 MMC1_CMD_MARK, MMC1_CLK_MARK,
1849};
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001850/* - SCIF0 ------------------------------------------------------------------ */
1851static const unsigned int scif0_data_pins[] = {
1852 /* RXD, TXD */
1853 153, 152,
1854};
1855static const unsigned int scif0_data_mux[] = {
1856 RX0_MARK, TX0_MARK,
1857};
1858static const unsigned int scif0_clk_pins[] = {
1859 /* SCK */
1860 156,
1861};
1862static const unsigned int scif0_clk_mux[] = {
1863 SCK0_MARK,
1864};
1865static const unsigned int scif0_ctrl_pins[] = {
1866 /* RTS, CTS */
1867 151, 150,
1868};
1869static const unsigned int scif0_ctrl_mux[] = {
1870 RTS0_TANS_MARK, CTS0_MARK,
1871};
1872static const unsigned int scif0_data_b_pins[] = {
1873 /* RXD, TXD */
1874 20, 19,
1875};
1876static const unsigned int scif0_data_b_mux[] = {
1877 RX0_B_MARK, TX0_B_MARK,
1878};
1879static const unsigned int scif0_clk_b_pins[] = {
1880 /* SCK */
1881 33,
1882};
1883static const unsigned int scif0_clk_b_mux[] = {
1884 SCK0_B_MARK,
1885};
1886static const unsigned int scif0_ctrl_b_pins[] = {
1887 /* RTS, CTS */
1888 18, 11,
1889};
1890static const unsigned int scif0_ctrl_b_mux[] = {
1891 RTS0_B_TANS_B_MARK, CTS0_B_MARK,
1892};
1893static const unsigned int scif0_data_c_pins[] = {
1894 /* RXD, TXD */
1895 146, 147,
1896};
1897static const unsigned int scif0_data_c_mux[] = {
1898 RX0_C_MARK, TX0_C_MARK,
1899};
1900static const unsigned int scif0_clk_c_pins[] = {
1901 /* SCK */
1902 145,
1903};
1904static const unsigned int scif0_clk_c_mux[] = {
1905 SCK0_C_MARK,
1906};
1907static const unsigned int scif0_ctrl_c_pins[] = {
1908 /* RTS, CTS */
1909 149, 148,
1910};
1911static const unsigned int scif0_ctrl_c_mux[] = {
1912 RTS0_C_TANS_C_MARK, CTS0_C_MARK,
1913};
1914static const unsigned int scif0_data_d_pins[] = {
1915 /* RXD, TXD */
1916 43, 42,
1917};
1918static const unsigned int scif0_data_d_mux[] = {
1919 RX0_D_MARK, TX0_D_MARK,
1920};
1921static const unsigned int scif0_clk_d_pins[] = {
1922 /* SCK */
1923 50,
1924};
1925static const unsigned int scif0_clk_d_mux[] = {
1926 SCK0_D_MARK,
1927};
1928static const unsigned int scif0_ctrl_d_pins[] = {
1929 /* RTS, CTS */
1930 51, 35,
1931};
1932static const unsigned int scif0_ctrl_d_mux[] = {
1933 RTS0_D_TANS_D_MARK, CTS0_D_MARK,
1934};
1935/* - SCIF1 ------------------------------------------------------------------ */
1936static const unsigned int scif1_data_pins[] = {
1937 /* RXD, TXD */
1938 149, 148,
1939};
1940static const unsigned int scif1_data_mux[] = {
1941 RX1_MARK, TX1_MARK,
1942};
1943static const unsigned int scif1_clk_pins[] = {
1944 /* SCK */
1945 145,
1946};
1947static const unsigned int scif1_clk_mux[] = {
1948 SCK1_MARK,
1949};
1950static const unsigned int scif1_ctrl_pins[] = {
1951 /* RTS, CTS */
1952 147, 146,
1953};
1954static const unsigned int scif1_ctrl_mux[] = {
1955 RTS1_TANS_MARK, CTS1_MARK,
1956};
1957static const unsigned int scif1_data_b_pins[] = {
1958 /* RXD, TXD */
1959 117, 114,
1960};
1961static const unsigned int scif1_data_b_mux[] = {
1962 RX1_B_MARK, TX1_B_MARK,
1963};
1964static const unsigned int scif1_clk_b_pins[] = {
1965 /* SCK */
1966 113,
1967};
1968static const unsigned int scif1_clk_b_mux[] = {
1969 SCK1_B_MARK,
1970};
1971static const unsigned int scif1_ctrl_b_pins[] = {
1972 /* RTS, CTS */
1973 115, 116,
1974};
1975static const unsigned int scif1_ctrl_b_mux[] = {
1976 RTS1_B_TANS_B_MARK, CTS1_B_MARK,
1977};
1978static const unsigned int scif1_data_c_pins[] = {
1979 /* RXD, TXD */
1980 67, 66,
1981};
1982static const unsigned int scif1_data_c_mux[] = {
1983 RX1_C_MARK, TX1_C_MARK,
1984};
1985static const unsigned int scif1_clk_c_pins[] = {
1986 /* SCK */
1987 86,
1988};
1989static const unsigned int scif1_clk_c_mux[] = {
1990 SCK1_C_MARK,
1991};
1992static const unsigned int scif1_ctrl_c_pins[] = {
1993 /* RTS, CTS */
1994 69, 68,
1995};
1996static const unsigned int scif1_ctrl_c_mux[] = {
1997 RTS1_C_TANS_C_MARK, CTS1_C_MARK,
1998};
1999/* - SCIF2 ------------------------------------------------------------------ */
2000static const unsigned int scif2_data_pins[] = {
2001 /* RXD, TXD */
2002 106, 105,
2003};
2004static const unsigned int scif2_data_mux[] = {
2005 RX2_MARK, TX2_MARK,
2006};
2007static const unsigned int scif2_clk_pins[] = {
2008 /* SCK */
2009 107,
2010};
2011static const unsigned int scif2_clk_mux[] = {
2012 SCK2_MARK,
2013};
2014static const unsigned int scif2_data_b_pins[] = {
2015 /* RXD, TXD */
2016 120, 119,
2017};
2018static const unsigned int scif2_data_b_mux[] = {
2019 RX2_B_MARK, TX2_B_MARK,
2020};
2021static const unsigned int scif2_clk_b_pins[] = {
2022 /* SCK */
2023 118,
2024};
2025static const unsigned int scif2_clk_b_mux[] = {
2026 SCK2_B_MARK,
2027};
2028static const unsigned int scif2_data_c_pins[] = {
2029 /* RXD, TXD */
2030 33, 31,
2031};
2032static const unsigned int scif2_data_c_mux[] = {
2033 RX2_C_MARK, TX2_C_MARK,
2034};
2035static const unsigned int scif2_clk_c_pins[] = {
2036 /* SCK */
2037 32,
2038};
2039static const unsigned int scif2_clk_c_mux[] = {
2040 SCK2_C_MARK,
2041};
2042static const unsigned int scif2_data_d_pins[] = {
2043 /* RXD, TXD */
2044 64, 62,
2045};
2046static const unsigned int scif2_data_d_mux[] = {
2047 RX2_D_MARK, TX2_D_MARK,
2048};
2049static const unsigned int scif2_clk_d_pins[] = {
2050 /* SCK */
2051 63,
2052};
2053static const unsigned int scif2_clk_d_mux[] = {
2054 SCK2_D_MARK,
2055};
2056static const unsigned int scif2_data_e_pins[] = {
2057 /* RXD, TXD */
2058 20, 19,
2059};
2060static const unsigned int scif2_data_e_mux[] = {
2061 RX2_E_MARK, TX2_E_MARK,
2062};
2063/* - SCIF3 ------------------------------------------------------------------ */
2064static const unsigned int scif3_data_pins[] = {
2065 /* RXD, TXD */
2066 137, 136,
2067};
2068static const unsigned int scif3_data_mux[] = {
2069 RX3_IRDA_RX_MARK, TX3_IRDA_TX_MARK,
2070};
2071static const unsigned int scif3_clk_pins[] = {
2072 /* SCK */
2073 135,
2074};
2075static const unsigned int scif3_clk_mux[] = {
2076 SCK3_MARK,
2077};
2078
2079static const unsigned int scif3_data_b_pins[] = {
2080 /* RXD, TXD */
2081 64, 62,
2082};
2083static const unsigned int scif3_data_b_mux[] = {
2084 RX3_B_IRDA_RX_B_MARK, TX3_B_IRDA_TX_B_MARK,
2085};
2086static const unsigned int scif3_data_c_pins[] = {
2087 /* RXD, TXD */
2088 15, 12,
2089};
2090static const unsigned int scif3_data_c_mux[] = {
2091 RX3_C_IRDA_RX_C_MARK, TX3C_IRDA_TX_C_MARK,
2092};
2093static const unsigned int scif3_data_d_pins[] = {
2094 /* RXD, TXD */
2095 30, 29,
2096};
2097static const unsigned int scif3_data_d_mux[] = {
2098 RX3_D_IRDA_RX_D_MARK, TX3_D_IRDA_TX_D_MARK,
2099};
2100static const unsigned int scif3_data_e_pins[] = {
2101 /* RXD, TXD */
2102 35, 34,
2103};
2104static const unsigned int scif3_data_e_mux[] = {
2105 RX3_E_IRDA_RX_E_MARK, TX3_E_IRDA_TX_E_MARK,
2106};
2107static const unsigned int scif3_clk_e_pins[] = {
2108 /* SCK */
2109 42,
2110};
2111static const unsigned int scif3_clk_e_mux[] = {
2112 SCK3_E_MARK,
2113};
2114/* - SCIF4 ------------------------------------------------------------------ */
2115static const unsigned int scif4_data_pins[] = {
2116 /* RXD, TXD */
2117 123, 122,
2118};
2119static const unsigned int scif4_data_mux[] = {
2120 RX4_MARK, TX4_MARK,
2121};
2122static const unsigned int scif4_clk_pins[] = {
2123 /* SCK */
2124 121,
2125};
2126static const unsigned int scif4_clk_mux[] = {
2127 SCK4_MARK,
2128};
2129static const unsigned int scif4_data_b_pins[] = {
2130 /* RXD, TXD */
2131 111, 110,
2132};
2133static const unsigned int scif4_data_b_mux[] = {
2134 RX4_B_MARK, TX4_B_MARK,
2135};
2136static const unsigned int scif4_clk_b_pins[] = {
2137 /* SCK */
2138 112,
2139};
2140static const unsigned int scif4_clk_b_mux[] = {
2141 SCK4_B_MARK,
2142};
2143static const unsigned int scif4_data_c_pins[] = {
2144 /* RXD, TXD */
2145 22, 21,
2146};
2147static const unsigned int scif4_data_c_mux[] = {
2148 RX4_C_MARK, TX4_C_MARK,
2149};
2150static const unsigned int scif4_data_d_pins[] = {
2151 /* RXD, TXD */
2152 69, 68,
2153};
2154static const unsigned int scif4_data_d_mux[] = {
2155 RX4_D_MARK, TX4_D_MARK,
2156};
2157/* - SCIF5 ------------------------------------------------------------------ */
2158static const unsigned int scif5_data_pins[] = {
2159 /* RXD, TXD */
2160 51, 50,
2161};
2162static const unsigned int scif5_data_mux[] = {
2163 RX5_MARK, TX5_MARK,
2164};
2165static const unsigned int scif5_clk_pins[] = {
2166 /* SCK */
2167 43,
2168};
2169static const unsigned int scif5_clk_mux[] = {
2170 SCK5_MARK,
2171};
2172static const unsigned int scif5_data_b_pins[] = {
2173 /* RXD, TXD */
2174 18, 11,
2175};
2176static const unsigned int scif5_data_b_mux[] = {
2177 RX5_B_MARK, TX5_B_MARK,
2178};
2179static const unsigned int scif5_clk_b_pins[] = {
2180 /* SCK */
2181 19,
2182};
2183static const unsigned int scif5_clk_b_mux[] = {
2184 SCK5_B_MARK,
2185};
2186static const unsigned int scif5_data_c_pins[] = {
2187 /* RXD, TXD */
2188 24, 23,
2189};
2190static const unsigned int scif5_data_c_mux[] = {
2191 RX5_C_MARK, TX5_C_MARK,
2192};
2193static const unsigned int scif5_clk_c_pins[] = {
2194 /* SCK */
2195 28,
2196};
2197static const unsigned int scif5_clk_c_mux[] = {
2198 SCK5_C_MARK,
2199};
2200static const unsigned int scif5_data_d_pins[] = {
2201 /* RXD, TXD */
2202 8, 6,
2203};
2204static const unsigned int scif5_data_d_mux[] = {
2205 RX5_D_MARK, TX5_D_MARK,
2206};
2207static const unsigned int scif5_clk_d_pins[] = {
2208 /* SCK */
2209 7,
2210};
2211static const unsigned int scif5_clk_d_mux[] = {
2212 SCK5_D_MARK,
2213};
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002214/* - SDHI0 ------------------------------------------------------------------ */
2215static const unsigned int sdhi0_data1_pins[] = {
2216 /* D0 */
2217 117,
2218};
2219static const unsigned int sdhi0_data1_mux[] = {
2220 SD0_DAT0_MARK,
2221};
2222static const unsigned int sdhi0_data4_pins[] = {
2223 /* D[0:3] */
2224 117, 118, 119, 120,
2225};
2226static const unsigned int sdhi0_data4_mux[] = {
2227 SD0_DAT0_MARK, SD0_DAT1_MARK, SD0_DAT2_MARK, SD0_DAT3_MARK,
2228};
2229static const unsigned int sdhi0_ctrl_pins[] = {
2230 /* CMD, CLK */
2231 114, 113,
2232};
2233static const unsigned int sdhi0_ctrl_mux[] = {
2234 SD0_CMD_MARK, SD0_CLK_MARK,
2235};
2236static const unsigned int sdhi0_cd_pins[] = {
2237 /* CD */
2238 115,
2239};
2240static const unsigned int sdhi0_cd_mux[] = {
2241 SD0_CD_MARK,
2242};
2243static const unsigned int sdhi0_wp_pins[] = {
2244 /* WP */
2245 116,
2246};
2247static const unsigned int sdhi0_wp_mux[] = {
2248 SD0_WP_MARK,
2249};
2250/* - SDHI1 ------------------------------------------------------------------ */
2251static const unsigned int sdhi1_data1_pins[] = {
2252 /* D0 */
2253 19,
2254};
2255static const unsigned int sdhi1_data1_mux[] = {
2256 SD1_DAT0_MARK,
2257};
2258static const unsigned int sdhi1_data4_pins[] = {
2259 /* D[0:3] */
2260 19, 20, 21, 2,
2261};
2262static const unsigned int sdhi1_data4_mux[] = {
2263 SD1_DAT0_MARK, SD1_DAT1_MARK, SD1_DAT2_MARK, SD1_DAT3_MARK,
2264};
2265static const unsigned int sdhi1_ctrl_pins[] = {
2266 /* CMD, CLK */
2267 18, 17,
2268};
2269static const unsigned int sdhi1_ctrl_mux[] = {
2270 SD1_CMD_MARK, SD1_CLK_MARK,
2271};
2272static const unsigned int sdhi1_cd_pins[] = {
2273 /* CD */
2274 10,
2275};
2276static const unsigned int sdhi1_cd_mux[] = {
2277 SD1_CD_MARK,
2278};
2279static const unsigned int sdhi1_wp_pins[] = {
2280 /* WP */
2281 11,
2282};
2283static const unsigned int sdhi1_wp_mux[] = {
2284 SD1_WP_MARK,
2285};
2286/* - SDHI2 ------------------------------------------------------------------ */
2287static const unsigned int sdhi2_data1_pins[] = {
2288 /* D0 */
2289 97,
2290};
2291static const unsigned int sdhi2_data1_mux[] = {
2292 SD2_DAT0_MARK,
2293};
2294static const unsigned int sdhi2_data4_pins[] = {
2295 /* D[0:3] */
2296 97, 98, 99, 100,
2297};
2298static const unsigned int sdhi2_data4_mux[] = {
2299 SD2_DAT0_MARK, SD2_DAT1_MARK, SD2_DAT2_MARK, SD2_DAT3_MARK,
2300};
2301static const unsigned int sdhi2_ctrl_pins[] = {
2302 /* CMD, CLK */
2303 102, 101,
2304};
2305static const unsigned int sdhi2_ctrl_mux[] = {
2306 SD2_CMD_MARK, SD2_CLK_MARK,
2307};
2308static const unsigned int sdhi2_cd_pins[] = {
2309 /* CD */
2310 103,
2311};
2312static const unsigned int sdhi2_cd_mux[] = {
2313 SD2_CD_MARK,
2314};
2315static const unsigned int sdhi2_wp_pins[] = {
2316 /* WP */
2317 104,
2318};
2319static const unsigned int sdhi2_wp_mux[] = {
2320 SD2_WP_MARK,
2321};
2322/* - SDHI3 ------------------------------------------------------------------ */
2323static const unsigned int sdhi3_data1_pins[] = {
2324 /* D0 */
2325 50,
2326};
2327static const unsigned int sdhi3_data1_mux[] = {
2328 SD3_DAT0_MARK,
2329};
2330static const unsigned int sdhi3_data4_pins[] = {
2331 /* D[0:3] */
2332 50, 51, 52, 53,
2333};
2334static const unsigned int sdhi3_data4_mux[] = {
2335 SD3_DAT0_MARK, SD3_DAT1_MARK, SD3_DAT2_MARK, SD3_DAT3_MARK,
2336};
2337static const unsigned int sdhi3_ctrl_pins[] = {
2338 /* CMD, CLK */
2339 35, 34,
2340};
2341static const unsigned int sdhi3_ctrl_mux[] = {
2342 SD3_CMD_MARK, SD3_CLK_MARK,
2343};
2344static const unsigned int sdhi3_cd_pins[] = {
2345 /* CD */
2346 62,
2347};
2348static const unsigned int sdhi3_cd_mux[] = {
2349 SD3_CD_MARK,
2350};
2351static const unsigned int sdhi3_wp_pins[] = {
2352 /* WP */
2353 64,
2354};
2355static const unsigned int sdhi3_wp_mux[] = {
2356 SD3_WP_MARK,
2357};
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002358/* - USB0 ------------------------------------------------------------------- */
2359static const unsigned int usb0_pins[] = {
2360 /* OVC */
2361 150, 154,
2362};
2363static const unsigned int usb0_mux[] = {
2364 USB_OVC0_MARK, USB_PENC0_MARK,
2365};
2366/* - USB1 ------------------------------------------------------------------- */
2367static const unsigned int usb1_pins[] = {
2368 /* OVC */
2369 152, 155,
2370};
2371static const unsigned int usb1_mux[] = {
2372 USB_OVC1_MARK, USB_PENC1_MARK,
2373};
2374/* - USB2 ------------------------------------------------------------------- */
2375static const unsigned int usb2_pins[] = {
2376 /* OVC, PENC */
2377 125, 156,
2378};
2379static const unsigned int usb2_mux[] = {
2380 USB_OVC2_MARK, USB_PENC2_MARK,
2381};
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002382
2383static const struct sh_pfc_pin_group pinmux_groups[] = {
2384 SH_PFC_PIN_GROUP(du0_rgb666),
2385 SH_PFC_PIN_GROUP(du0_rgb888),
2386 SH_PFC_PIN_GROUP(du0_clk_0),
2387 SH_PFC_PIN_GROUP(du0_clk_1),
2388 SH_PFC_PIN_GROUP(du0_sync_0),
2389 SH_PFC_PIN_GROUP(du0_sync_1),
2390 SH_PFC_PIN_GROUP(du0_oddf),
2391 SH_PFC_PIN_GROUP(du0_cde),
2392 SH_PFC_PIN_GROUP(du1_rgb666),
2393 SH_PFC_PIN_GROUP(du1_rgb888),
2394 SH_PFC_PIN_GROUP(du1_clk),
2395 SH_PFC_PIN_GROUP(du1_sync_0),
2396 SH_PFC_PIN_GROUP(du1_sync_1),
2397 SH_PFC_PIN_GROUP(du1_oddf),
2398 SH_PFC_PIN_GROUP(du1_cde),
Laurent Pinchartf5162382013-03-06 19:04:43 +01002399 SH_PFC_PIN_GROUP(hspi0),
2400 SH_PFC_PIN_GROUP(hspi1),
2401 SH_PFC_PIN_GROUP(hspi1_b),
2402 SH_PFC_PIN_GROUP(hspi1_c),
2403 SH_PFC_PIN_GROUP(hspi1_d),
2404 SH_PFC_PIN_GROUP(hspi2),
2405 SH_PFC_PIN_GROUP(hspi2_b),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01002406 SH_PFC_PIN_GROUP(intc_irq0),
2407 SH_PFC_PIN_GROUP(intc_irq0_b),
2408 SH_PFC_PIN_GROUP(intc_irq1),
2409 SH_PFC_PIN_GROUP(intc_irq1_b),
2410 SH_PFC_PIN_GROUP(intc_irq2),
2411 SH_PFC_PIN_GROUP(intc_irq2_b),
2412 SH_PFC_PIN_GROUP(intc_irq3),
2413 SH_PFC_PIN_GROUP(intc_irq3_b),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01002414 SH_PFC_PIN_GROUP(lbsc_cs0),
2415 SH_PFC_PIN_GROUP(lbsc_cs1),
2416 SH_PFC_PIN_GROUP(lbsc_ex_cs0),
2417 SH_PFC_PIN_GROUP(lbsc_ex_cs1),
2418 SH_PFC_PIN_GROUP(lbsc_ex_cs2),
2419 SH_PFC_PIN_GROUP(lbsc_ex_cs3),
2420 SH_PFC_PIN_GROUP(lbsc_ex_cs4),
2421 SH_PFC_PIN_GROUP(lbsc_ex_cs5),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002422 SH_PFC_PIN_GROUP(mmc0_data1),
2423 SH_PFC_PIN_GROUP(mmc0_data4),
2424 SH_PFC_PIN_GROUP(mmc0_data8),
2425 SH_PFC_PIN_GROUP(mmc0_ctrl),
2426 SH_PFC_PIN_GROUP(mmc1_data1),
2427 SH_PFC_PIN_GROUP(mmc1_data4),
2428 SH_PFC_PIN_GROUP(mmc1_data8),
2429 SH_PFC_PIN_GROUP(mmc1_ctrl),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002430 SH_PFC_PIN_GROUP(scif0_data),
2431 SH_PFC_PIN_GROUP(scif0_clk),
2432 SH_PFC_PIN_GROUP(scif0_ctrl),
2433 SH_PFC_PIN_GROUP(scif0_data_b),
2434 SH_PFC_PIN_GROUP(scif0_clk_b),
2435 SH_PFC_PIN_GROUP(scif0_ctrl_b),
2436 SH_PFC_PIN_GROUP(scif0_data_c),
2437 SH_PFC_PIN_GROUP(scif0_clk_c),
2438 SH_PFC_PIN_GROUP(scif0_ctrl_c),
2439 SH_PFC_PIN_GROUP(scif0_data_d),
2440 SH_PFC_PIN_GROUP(scif0_clk_d),
2441 SH_PFC_PIN_GROUP(scif0_ctrl_d),
2442 SH_PFC_PIN_GROUP(scif1_data),
2443 SH_PFC_PIN_GROUP(scif1_clk),
2444 SH_PFC_PIN_GROUP(scif1_ctrl),
2445 SH_PFC_PIN_GROUP(scif1_data_b),
2446 SH_PFC_PIN_GROUP(scif1_clk_b),
2447 SH_PFC_PIN_GROUP(scif1_ctrl_b),
2448 SH_PFC_PIN_GROUP(scif1_data_c),
2449 SH_PFC_PIN_GROUP(scif1_clk_c),
2450 SH_PFC_PIN_GROUP(scif1_ctrl_c),
2451 SH_PFC_PIN_GROUP(scif2_data),
2452 SH_PFC_PIN_GROUP(scif2_clk),
2453 SH_PFC_PIN_GROUP(scif2_data_b),
2454 SH_PFC_PIN_GROUP(scif2_clk_b),
2455 SH_PFC_PIN_GROUP(scif2_data_c),
2456 SH_PFC_PIN_GROUP(scif2_clk_c),
2457 SH_PFC_PIN_GROUP(scif2_data_d),
2458 SH_PFC_PIN_GROUP(scif2_clk_d),
2459 SH_PFC_PIN_GROUP(scif2_data_e),
2460 SH_PFC_PIN_GROUP(scif3_data),
2461 SH_PFC_PIN_GROUP(scif3_clk),
2462 SH_PFC_PIN_GROUP(scif3_data_b),
2463 SH_PFC_PIN_GROUP(scif3_data_c),
2464 SH_PFC_PIN_GROUP(scif3_data_d),
2465 SH_PFC_PIN_GROUP(scif3_data_e),
2466 SH_PFC_PIN_GROUP(scif3_clk_e),
2467 SH_PFC_PIN_GROUP(scif4_data),
2468 SH_PFC_PIN_GROUP(scif4_clk),
2469 SH_PFC_PIN_GROUP(scif4_data_b),
2470 SH_PFC_PIN_GROUP(scif4_clk_b),
2471 SH_PFC_PIN_GROUP(scif4_data_c),
2472 SH_PFC_PIN_GROUP(scif4_data_d),
2473 SH_PFC_PIN_GROUP(scif5_data),
2474 SH_PFC_PIN_GROUP(scif5_clk),
2475 SH_PFC_PIN_GROUP(scif5_data_b),
2476 SH_PFC_PIN_GROUP(scif5_clk_b),
2477 SH_PFC_PIN_GROUP(scif5_data_c),
2478 SH_PFC_PIN_GROUP(scif5_clk_c),
2479 SH_PFC_PIN_GROUP(scif5_data_d),
2480 SH_PFC_PIN_GROUP(scif5_clk_d),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002481 SH_PFC_PIN_GROUP(sdhi0_data1),
2482 SH_PFC_PIN_GROUP(sdhi0_data4),
2483 SH_PFC_PIN_GROUP(sdhi0_ctrl),
2484 SH_PFC_PIN_GROUP(sdhi0_cd),
2485 SH_PFC_PIN_GROUP(sdhi0_wp),
2486 SH_PFC_PIN_GROUP(sdhi1_data1),
2487 SH_PFC_PIN_GROUP(sdhi1_data4),
2488 SH_PFC_PIN_GROUP(sdhi1_ctrl),
2489 SH_PFC_PIN_GROUP(sdhi1_cd),
2490 SH_PFC_PIN_GROUP(sdhi1_wp),
2491 SH_PFC_PIN_GROUP(sdhi2_data1),
2492 SH_PFC_PIN_GROUP(sdhi2_data4),
2493 SH_PFC_PIN_GROUP(sdhi2_ctrl),
2494 SH_PFC_PIN_GROUP(sdhi2_cd),
2495 SH_PFC_PIN_GROUP(sdhi2_wp),
2496 SH_PFC_PIN_GROUP(sdhi3_data1),
2497 SH_PFC_PIN_GROUP(sdhi3_data4),
2498 SH_PFC_PIN_GROUP(sdhi3_ctrl),
2499 SH_PFC_PIN_GROUP(sdhi3_cd),
2500 SH_PFC_PIN_GROUP(sdhi3_wp),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002501 SH_PFC_PIN_GROUP(usb0),
2502 SH_PFC_PIN_GROUP(usb1),
2503 SH_PFC_PIN_GROUP(usb2),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002504};
2505
2506static const char * const du0_groups[] = {
2507 "du0_rgb666",
2508 "du0_rgb888",
2509 "du0_clk_0",
2510 "du0_clk_1",
2511 "du0_sync_0",
2512 "du0_sync_1",
2513 "du0_oddf",
2514 "du0_cde",
2515};
2516
2517static const char * const du1_groups[] = {
2518 "du1_rgb666",
2519 "du1_rgb888",
2520 "du1_clk",
2521 "du1_sync_0",
2522 "du1_sync_1",
2523 "du1_oddf",
2524 "du1_cde",
2525};
2526
Laurent Pinchartf5162382013-03-06 19:04:43 +01002527static const char * const hspi0_groups[] = {
2528 "hspi0",
2529};
2530
2531static const char * const hspi1_groups[] = {
2532 "hspi1",
2533 "hspi1_b",
2534 "hspi1_c",
2535 "hspi1_d",
2536};
2537
2538static const char * const hspi2_groups[] = {
2539 "hspi2",
2540 "hspi2_b",
2541};
2542
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01002543static const char * const intc_groups[] = {
2544 "intc_irq0",
2545 "intc_irq0_b",
2546 "intc_irq1",
2547 "intc_irq1_b",
2548 "intc_irq2",
2549 "intc_irq2_b",
2550 "intc_irq3",
2551 "intc_irq4_b",
2552};
2553
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01002554static const char * const lbsc_groups[] = {
2555 "lbsc_cs0",
2556 "lbsc_cs1",
2557 "lbsc_ex_cs0",
2558 "lbsc_ex_cs1",
2559 "lbsc_ex_cs2",
2560 "lbsc_ex_cs3",
2561 "lbsc_ex_cs4",
2562 "lbsc_ex_cs5",
2563};
2564
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002565static const char * const mmc0_groups[] = {
2566 "mmc0_data1",
2567 "mmc0_data4",
2568 "mmc0_data8",
2569 "mmc0_ctrl",
2570};
2571
2572static const char * const mmc1_groups[] = {
2573 "mmc1_data1",
2574 "mmc1_data4",
2575 "mmc1_data8",
2576 "mmc1_ctrl",
2577};
2578
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002579static const char * const scif0_groups[] = {
2580 "scif0_data",
2581 "scif0_clk",
2582 "scif0_ctrl",
2583 "scif0_data_b",
2584 "scif0_clk_b",
2585 "scif0_ctrl_b",
2586 "scif0_data_c",
2587 "scif0_clk_c",
2588 "scif0_ctrl_c",
2589 "scif0_data_d",
2590 "scif0_clk_d",
2591 "scif0_ctrl_d",
2592};
2593
2594static const char * const scif1_groups[] = {
2595 "scif1_data",
2596 "scif1_clk",
2597 "scif1_ctrl",
2598 "scif1_data_b",
2599 "scif1_clk_b",
2600 "scif1_ctrl_b",
2601 "scif1_data_c",
2602 "scif1_clk_c",
2603 "scif1_ctrl_c",
2604};
2605
2606static const char * const scif2_groups[] = {
2607 "scif2_data",
2608 "scif2_clk",
2609 "scif2_data_b",
2610 "scif2_clk_b",
2611 "scif2_data_c",
2612 "scif2_clk_c",
2613 "scif2_data_d",
2614 "scif2_clk_d",
2615 "scif2_data_e",
2616};
2617
2618static const char * const scif3_groups[] = {
2619 "scif3_data",
2620 "scif3_clk",
2621 "scif3_data_b",
2622 "scif3_data_c",
2623 "scif3_data_d",
2624 "scif3_data_e",
2625 "scif3_clk_e",
2626};
2627
2628static const char * const scif4_groups[] = {
2629 "scif4_data",
2630 "scif4_clk",
2631 "scif4_data_b",
2632 "scif4_clk_b",
2633 "scif4_data_c",
2634 "scif4_data_d",
2635};
2636
2637static const char * const scif5_groups[] = {
2638 "scif5_data",
2639 "scif5_clk",
2640 "scif5_data_b",
2641 "scif5_clk_b",
2642 "scif5_data_c",
2643 "scif5_clk_c",
2644 "scif5_data_d",
2645 "scif5_clk_d",
2646};
2647
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002648static const char * const sdhi0_groups[] = {
2649 "sdhi0_data1",
2650 "sdhi0_data4",
2651 "sdhi0_ctrl",
2652 "sdhi0_cd",
2653 "sdhi0_wp",
2654};
2655
2656static const char * const sdhi1_groups[] = {
2657 "sdhi1_data1",
2658 "sdhi1_data4",
2659 "sdhi1_ctrl",
2660 "sdhi1_cd",
2661 "sdhi1_wp",
2662};
2663
2664static const char * const sdhi2_groups[] = {
2665 "sdhi2_data1",
2666 "sdhi2_data4",
2667 "sdhi2_ctrl",
2668 "sdhi2_cd",
2669 "sdhi2_wp",
2670};
2671
2672static const char * const sdhi3_groups[] = {
2673 "sdhi3_data1",
2674 "sdhi3_data4",
2675 "sdhi3_ctrl",
2676 "sdhi3_cd",
2677 "sdhi3_wp",
2678};
2679
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002680static const char * const usb0_groups[] = {
2681 "usb0",
2682};
2683
2684static const char * const usb1_groups[] = {
2685 "usb1",
2686};
2687
2688static const char * const usb2_groups[] = {
2689 "usb2",
2690};
2691
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002692static const struct sh_pfc_function pinmux_functions[] = {
2693 SH_PFC_FUNCTION(du0),
2694 SH_PFC_FUNCTION(du1),
Laurent Pinchartf5162382013-03-06 19:04:43 +01002695 SH_PFC_FUNCTION(hspi0),
2696 SH_PFC_FUNCTION(hspi1),
2697 SH_PFC_FUNCTION(hspi2),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01002698 SH_PFC_FUNCTION(intc),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01002699 SH_PFC_FUNCTION(lbsc),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002700 SH_PFC_FUNCTION(mmc0),
2701 SH_PFC_FUNCTION(mmc1),
2702 SH_PFC_FUNCTION(sdhi0),
2703 SH_PFC_FUNCTION(sdhi1),
2704 SH_PFC_FUNCTION(sdhi2),
2705 SH_PFC_FUNCTION(sdhi3),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002706 SH_PFC_FUNCTION(scif0),
2707 SH_PFC_FUNCTION(scif1),
2708 SH_PFC_FUNCTION(scif2),
2709 SH_PFC_FUNCTION(scif3),
2710 SH_PFC_FUNCTION(scif4),
2711 SH_PFC_FUNCTION(scif5),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002712 SH_PFC_FUNCTION(usb0),
2713 SH_PFC_FUNCTION(usb1),
2714 SH_PFC_FUNCTION(usb2),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002715};
2716
Laurent Pinchartcd3c1be2013-02-16 18:47:05 +01002717static const struct pinmux_cfg_reg pinmux_config_regs[] = {
Laurent Pinchart881023d2012-12-15 23:51:22 +01002718 { PINMUX_CFG_REG("GPSR0", 0xfffc0004, 32, 1) {
2719 GP_0_31_FN, FN_IP3_31_29,
2720 GP_0_30_FN, FN_IP3_26_24,
2721 GP_0_29_FN, FN_IP3_22_21,
2722 GP_0_28_FN, FN_IP3_14_12,
2723 GP_0_27_FN, FN_IP3_11_9,
2724 GP_0_26_FN, FN_IP3_2_0,
2725 GP_0_25_FN, FN_IP2_30_28,
2726 GP_0_24_FN, FN_IP2_21_19,
2727 GP_0_23_FN, FN_IP2_18_16,
2728 GP_0_22_FN, FN_IP0_30_28,
2729 GP_0_21_FN, FN_IP0_5_3,
2730 GP_0_20_FN, FN_IP1_18_15,
2731 GP_0_19_FN, FN_IP1_14_11,
2732 GP_0_18_FN, FN_IP1_10_7,
2733 GP_0_17_FN, FN_IP1_6_4,
2734 GP_0_16_FN, FN_IP1_3_2,
2735 GP_0_15_FN, FN_IP1_1_0,
2736 GP_0_14_FN, FN_IP0_27_26,
2737 GP_0_13_FN, FN_IP0_25,
2738 GP_0_12_FN, FN_IP0_24_23,
2739 GP_0_11_FN, FN_IP0_22_19,
2740 GP_0_10_FN, FN_IP0_18_16,
2741 GP_0_9_FN, FN_IP0_15_14,
2742 GP_0_8_FN, FN_IP0_13_12,
2743 GP_0_7_FN, FN_IP0_11_10,
2744 GP_0_6_FN, FN_IP0_9_8,
2745 GP_0_5_FN, FN_A19,
2746 GP_0_4_FN, FN_A18,
2747 GP_0_3_FN, FN_A17,
2748 GP_0_2_FN, FN_IP0_7_6,
2749 GP_0_1_FN, FN_AVS2,
2750 GP_0_0_FN, FN_AVS1 }
2751 },
2752 { PINMUX_CFG_REG("GPSR1", 0xfffc0008, 32, 1) {
2753 GP_1_31_FN, FN_IP5_23_21,
2754 GP_1_30_FN, FN_IP5_20_17,
2755 GP_1_29_FN, FN_IP5_16_15,
2756 GP_1_28_FN, FN_IP5_14_13,
2757 GP_1_27_FN, FN_IP5_12_11,
2758 GP_1_26_FN, FN_IP5_10_9,
2759 GP_1_25_FN, FN_IP5_8,
2760 GP_1_24_FN, FN_IP5_7,
2761 GP_1_23_FN, FN_IP5_6,
2762 GP_1_22_FN, FN_IP5_5,
2763 GP_1_21_FN, FN_IP5_4,
2764 GP_1_20_FN, FN_IP5_3,
2765 GP_1_19_FN, FN_IP5_2_0,
2766 GP_1_18_FN, FN_IP4_31_29,
2767 GP_1_17_FN, FN_IP4_28,
2768 GP_1_16_FN, FN_IP4_27,
2769 GP_1_15_FN, FN_IP4_26,
2770 GP_1_14_FN, FN_IP4_25,
2771 GP_1_13_FN, FN_IP4_24,
2772 GP_1_12_FN, FN_IP4_23,
2773 GP_1_11_FN, FN_IP4_22_20,
2774 GP_1_10_FN, FN_IP4_19_17,
2775 GP_1_9_FN, FN_IP4_16,
2776 GP_1_8_FN, FN_IP4_15,
2777 GP_1_7_FN, FN_IP4_14,
2778 GP_1_6_FN, FN_IP4_13,
2779 GP_1_5_FN, FN_IP4_12,
2780 GP_1_4_FN, FN_IP4_11,
2781 GP_1_3_FN, FN_IP4_10_8,
2782 GP_1_2_FN, FN_IP4_7_5,
2783 GP_1_1_FN, FN_IP4_4_2,
2784 GP_1_0_FN, FN_IP4_1_0 }
2785 },
2786 { PINMUX_CFG_REG("GPSR2", 0xfffc000c, 32, 1) {
2787 GP_2_31_FN, FN_IP10_28_26,
2788 GP_2_30_FN, FN_IP10_25_24,
2789 GP_2_29_FN, FN_IP10_23_21,
2790 GP_2_28_FN, FN_IP10_20_18,
2791 GP_2_27_FN, FN_IP10_17_15,
2792 GP_2_26_FN, FN_IP10_14_12,
2793 GP_2_25_FN, FN_IP10_11_9,
2794 GP_2_24_FN, FN_IP10_8_6,
2795 GP_2_23_FN, FN_IP10_5_3,
2796 GP_2_22_FN, FN_IP10_2_0,
2797 GP_2_21_FN, FN_IP9_29_28,
2798 GP_2_20_FN, FN_IP9_27_26,
2799 GP_2_19_FN, FN_IP9_25_24,
2800 GP_2_18_FN, FN_IP9_23_22,
2801 GP_2_17_FN, FN_IP9_21_19,
2802 GP_2_16_FN, FN_IP9_18_16,
2803 GP_2_15_FN, FN_IP9_15_14,
2804 GP_2_14_FN, FN_IP9_13_12,
2805 GP_2_13_FN, FN_IP9_11_10,
2806 GP_2_12_FN, FN_IP9_9_8,
2807 GP_2_11_FN, FN_IP9_7,
2808 GP_2_10_FN, FN_IP9_6,
2809 GP_2_9_FN, FN_IP9_5,
2810 GP_2_8_FN, FN_IP9_4,
2811 GP_2_7_FN, FN_IP9_3_2,
2812 GP_2_6_FN, FN_IP9_1_0,
2813 GP_2_5_FN, FN_IP8_30_28,
2814 GP_2_4_FN, FN_IP8_27_25,
2815 GP_2_3_FN, FN_IP8_24_23,
2816 GP_2_2_FN, FN_IP8_22_21,
2817 GP_2_1_FN, FN_IP8_20,
2818 GP_2_0_FN, FN_IP5_27_24 }
2819 },
2820 { PINMUX_CFG_REG("GPSR3", 0xfffc0010, 32, 1) {
2821 GP_3_31_FN, FN_IP6_3_2,
2822 GP_3_30_FN, FN_IP6_1_0,
2823 GP_3_29_FN, FN_IP5_30_29,
2824 GP_3_28_FN, FN_IP5_28,
2825 GP_3_27_FN, FN_IP1_24_23,
2826 GP_3_26_FN, FN_IP1_22_21,
2827 GP_3_25_FN, FN_IP1_20_19,
2828 GP_3_24_FN, FN_IP7_26_25,
2829 GP_3_23_FN, FN_IP7_24_23,
2830 GP_3_22_FN, FN_IP7_22_21,
2831 GP_3_21_FN, FN_IP7_20_19,
2832 GP_3_20_FN, FN_IP7_30_29,
2833 GP_3_19_FN, FN_IP7_28_27,
2834 GP_3_18_FN, FN_IP7_18_17,
2835 GP_3_17_FN, FN_IP7_16_15,
2836 GP_3_16_FN, FN_IP12_17_15,
2837 GP_3_15_FN, FN_IP12_14_12,
2838 GP_3_14_FN, FN_IP12_11_9,
2839 GP_3_13_FN, FN_IP12_8_6,
2840 GP_3_12_FN, FN_IP12_5_3,
2841 GP_3_11_FN, FN_IP12_2_0,
2842 GP_3_10_FN, FN_IP11_29_27,
2843 GP_3_9_FN, FN_IP11_26_24,
2844 GP_3_8_FN, FN_IP11_23_21,
2845 GP_3_7_FN, FN_IP11_20_18,
2846 GP_3_6_FN, FN_IP11_17_15,
2847 GP_3_5_FN, FN_IP11_14_12,
2848 GP_3_4_FN, FN_IP11_11_9,
2849 GP_3_3_FN, FN_IP11_8_6,
2850 GP_3_2_FN, FN_IP11_5_3,
2851 GP_3_1_FN, FN_IP11_2_0,
2852 GP_3_0_FN, FN_IP10_31_29 }
2853 },
2854 { PINMUX_CFG_REG("GPSR4", 0xfffc0014, 32, 1) {
2855 GP_4_31_FN, FN_IP8_19,
2856 GP_4_30_FN, FN_IP8_18,
2857 GP_4_29_FN, FN_IP8_17_16,
2858 GP_4_28_FN, FN_IP0_2_0,
2859 GP_4_27_FN, FN_USB_PENC1,
2860 GP_4_26_FN, FN_USB_PENC0,
2861 GP_4_25_FN, FN_IP8_15_12,
2862 GP_4_24_FN, FN_IP8_11_8,
2863 GP_4_23_FN, FN_IP8_7_4,
2864 GP_4_22_FN, FN_IP8_3_0,
2865 GP_4_21_FN, FN_IP2_3_0,
2866 GP_4_20_FN, FN_IP1_28_25,
2867 GP_4_19_FN, FN_IP2_15_12,
2868 GP_4_18_FN, FN_IP2_11_8,
2869 GP_4_17_FN, FN_IP2_7_4,
2870 GP_4_16_FN, FN_IP7_14_13,
2871 GP_4_15_FN, FN_IP7_12_10,
2872 GP_4_14_FN, FN_IP7_9_7,
2873 GP_4_13_FN, FN_IP7_6_4,
2874 GP_4_12_FN, FN_IP7_3_2,
2875 GP_4_11_FN, FN_IP7_1_0,
2876 GP_4_10_FN, FN_IP6_30_29,
2877 GP_4_9_FN, FN_IP6_26_25,
2878 GP_4_8_FN, FN_IP6_24_23,
2879 GP_4_7_FN, FN_IP6_22_20,
2880 GP_4_6_FN, FN_IP6_19_18,
2881 GP_4_5_FN, FN_IP6_17_15,
2882 GP_4_4_FN, FN_IP6_14_12,
2883 GP_4_3_FN, FN_IP6_11_9,
2884 GP_4_2_FN, FN_IP6_8,
2885 GP_4_1_FN, FN_IP6_7_6,
2886 GP_4_0_FN, FN_IP6_5_4 }
2887 },
2888 { PINMUX_CFG_REG("GPSR5", 0xfffc0018, 32, 1) {
2889 GP_5_31_FN, FN_IP3_5,
2890 GP_5_30_FN, FN_IP3_4,
2891 GP_5_29_FN, FN_IP3_3,
2892 GP_5_28_FN, FN_IP2_27,
2893 GP_5_27_FN, FN_IP2_26,
2894 GP_5_26_FN, FN_IP2_25,
2895 GP_5_25_FN, FN_IP2_24,
2896 GP_5_24_FN, FN_IP2_23,
2897 GP_5_23_FN, FN_IP2_22,
2898 GP_5_22_FN, FN_IP3_28,
2899 GP_5_21_FN, FN_IP3_27,
2900 GP_5_20_FN, FN_IP3_23,
2901 GP_5_19_FN, FN_EX_WAIT0,
2902 GP_5_18_FN, FN_WE1,
2903 GP_5_17_FN, FN_WE0,
2904 GP_5_16_FN, FN_RD,
2905 GP_5_15_FN, FN_A16,
2906 GP_5_14_FN, FN_A15,
2907 GP_5_13_FN, FN_A14,
2908 GP_5_12_FN, FN_A13,
2909 GP_5_11_FN, FN_A12,
2910 GP_5_10_FN, FN_A11,
2911 GP_5_9_FN, FN_A10,
2912 GP_5_8_FN, FN_A9,
2913 GP_5_7_FN, FN_A8,
2914 GP_5_6_FN, FN_A7,
2915 GP_5_5_FN, FN_A6,
2916 GP_5_4_FN, FN_A5,
2917 GP_5_3_FN, FN_A4,
2918 GP_5_2_FN, FN_A3,
2919 GP_5_1_FN, FN_A2,
2920 GP_5_0_FN, FN_A1 }
2921 },
2922 { PINMUX_CFG_REG("GPSR6", 0xfffc001c, 32, 1) {
2923 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2924 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2925 0, 0, 0, 0, 0, 0, 0, 0,
2926 0, 0,
2927 0, 0,
2928 0, 0,
2929 GP_6_8_FN, FN_IP3_20,
2930 GP_6_7_FN, FN_IP3_19,
2931 GP_6_6_FN, FN_IP3_18,
2932 GP_6_5_FN, FN_IP3_17,
2933 GP_6_4_FN, FN_IP3_16,
2934 GP_6_3_FN, FN_IP3_15,
2935 GP_6_2_FN, FN_IP3_8,
2936 GP_6_1_FN, FN_IP3_7,
2937 GP_6_0_FN, FN_IP3_6 }
2938 },
2939
2940 { PINMUX_CFG_REG_VAR("IPSR0", 0xfffc0020, 32,
2941 1, 3, 2, 1, 2, 4, 3, 2, 2, 2, 2, 2, 3, 3) {
2942 /* IP0_31 [1] */
2943 0, 0,
2944 /* IP0_30_28 [3] */
2945 FN_RD_WR, FN_FWE, FN_ATAG0, FN_VI1_R7,
2946 FN_HRTS1, FN_RX4_C, 0, 0,
2947 /* IP0_27_26 [2] */
2948 FN_CS1_A26, FN_HSPI_TX2, FN_SDSELF_B, 0,
2949 /* IP0_25 [1] */
2950 FN_CS0, FN_HSPI_CS2_B,
2951 /* IP0_24_23 [2] */
2952 FN_CLKOUT, FN_TX3C_IRDA_TX_C, FN_PWM0_B, 0,
2953 /* IP0_22_19 [4] */
2954 FN_A25, FN_SD1_WP, FN_MMC0_D5, FN_FD5,
2955 FN_HSPI_RX2, FN_VI1_R3, FN_TX5_B, FN_SSI_SDATA7_B,
2956 FN_CTS0_B, 0, 0, 0,
2957 0, 0, 0, 0,
2958 /* IP0_18_16 [3] */
2959 FN_A24, FN_SD1_CD, FN_MMC0_D4, FN_FD4,
2960 FN_HSPI_CS2, FN_VI1_R2, FN_SSI_WS78_B, 0,
2961 /* IP0_15_14 [2] */
2962 FN_A23, FN_FCLE, FN_HSPI_CLK2, FN_VI1_R1,
2963 /* IP0_13_12 [2] */
2964 FN_A22, FN_RX5_D, FN_HSPI_RX2_B, FN_VI1_R0,
2965 /* IP0_11_10 [2] */
2966 FN_A21, FN_SCK5_D, FN_HSPI_CLK2_B, 0,
2967 /* IP0_9_8 [2] */
2968 FN_A20, FN_TX5_D, FN_HSPI_TX2_B, 0,
2969 /* IP0_7_6 [2] */
2970 FN_A0, FN_SD1_DAT3, FN_MMC0_D3, FN_FD3,
2971 /* IP0_5_3 [3] */
2972 FN_BS, FN_SD1_DAT2, FN_MMC0_D2, FN_FD2,
2973 FN_ATADIR0, FN_SDSELF, FN_HCTS1, FN_TX4_C,
2974 /* IP0_2_0 [3] */
2975 FN_USB_PENC2, FN_SCK0, FN_PWM1, FN_PWMFSW0,
2976 FN_SCIF_CLK, FN_TCLK0_C, 0, 0 }
2977 },
2978 { PINMUX_CFG_REG_VAR("IPSR1", 0xfffc0024, 32,
2979 3, 4, 2, 2, 2, 4, 4, 4, 3, 2, 2) {
2980 /* IP1_31_29 [3] */
2981 0, 0, 0, 0, 0, 0, 0, 0,
2982 /* IP1_28_25 [4] */
2983 FN_HTX0, FN_TX1, FN_SDATA, FN_CTS0_C,
2984 FN_SUB_TCK, FN_CC5_STATE2, FN_CC5_STATE10, FN_CC5_STATE18,
2985 FN_CC5_STATE26, FN_CC5_STATE34, 0, 0,
2986 0, 0, 0, 0,
2987 /* IP1_24_23 [2] */
2988 FN_MLB_DAT, FN_PWM4, FN_RX4, 0,
2989 /* IP1_22_21 [2] */
2990 FN_MLB_SIG, FN_PWM3, FN_TX4, 0,
2991 /* IP1_20_19 [2] */
2992 FN_MLB_CLK, FN_PWM2, FN_SCK4, 0,
2993 /* IP1_18_15 [4] */
2994 FN_EX_CS5, FN_SD1_DAT1, FN_MMC0_D1, FN_FD1,
2995 FN_ATAWR0, FN_VI1_R6, FN_HRX1, FN_RX2_E,
2996 FN_RX0_B, FN_SSI_WS9, 0, 0,
2997 0, 0, 0, 0,
2998 /* IP1_14_11 [4] */
2999 FN_EX_CS4, FN_SD1_DAT0, FN_MMC0_D0, FN_FD0,
3000 FN_ATARD0, FN_VI1_R5, FN_SCK5_B, FN_HTX1,
3001 FN_TX2_E, FN_TX0_B, FN_SSI_SCK9, 0,
3002 0, 0, 0, 0,
3003 /* IP1_10_7 [4] */
3004 FN_EX_CS3, FN_SD1_CMD, FN_MMC0_CMD, FN_FRE,
3005 FN_ATACS10, FN_VI1_R4, FN_RX5_B, FN_HSCK1,
3006 FN_SSI_SDATA8_B, FN_RTS0_B_TANS_B, FN_SSI_SDATA9, 0,
3007 0, 0, 0, 0,
3008 /* IP1_6_4 [3] */
3009 FN_EX_CS2, FN_SD1_CLK, FN_MMC0_CLK, FN_FALE,
3010 FN_ATACS00, 0, 0, 0,
3011 /* IP1_3_2 [2] */
3012 FN_EX_CS1, FN_MMC0_D7, FN_FD7, 0,
3013 /* IP1_1_0 [2] */
3014 FN_EX_CS0, FN_RX3_C_IRDA_RX_C, FN_MMC0_D6, FN_FD6 }
3015 },
3016 { PINMUX_CFG_REG_VAR("IPSR2", 0xfffc0028, 32,
3017 1, 3, 1, 1, 1, 1, 1, 1, 3, 3, 4, 4, 4, 4) {
3018 /* IP2_31 [1] */
3019 0, 0,
3020 /* IP2_30_28 [3] */
3021 FN_DU0_DG0, FN_LCDOUT8, FN_DREQ1, FN_SCL2,
3022 FN_AUDATA2, 0, 0, 0,
3023 /* IP2_27 [1] */
3024 FN_DU0_DR7, FN_LCDOUT7,
3025 /* IP2_26 [1] */
3026 FN_DU0_DR6, FN_LCDOUT6,
3027 /* IP2_25 [1] */
3028 FN_DU0_DR5, FN_LCDOUT5,
3029 /* IP2_24 [1] */
3030 FN_DU0_DR4, FN_LCDOUT4,
3031 /* IP2_23 [1] */
3032 FN_DU0_DR3, FN_LCDOUT3,
3033 /* IP2_22 [1] */
3034 FN_DU0_DR2, FN_LCDOUT2,
3035 /* IP2_21_19 [3] */
3036 FN_DU0_DR1, FN_LCDOUT1, FN_DACK0, FN_DRACK0,
3037 FN_GPS_SIGN_B, FN_AUDATA1, FN_RX5_C, 0,
3038 /* IP2_18_16 [3] */
3039 FN_DU0_DR0, FN_LCDOUT0, FN_DREQ0, FN_GPS_CLK_B,
3040 FN_AUDATA0, FN_TX5_C, 0, 0,
3041 /* IP2_15_12 [4] */
3042 FN_HRTS0, FN_RTS1_TANS, FN_MDATA, FN_TX0_C,
3043 FN_SUB_TMS, FN_CC5_STATE1, FN_CC5_STATE9, FN_CC5_STATE17,
3044 FN_CC5_STATE25, FN_CC5_STATE33, 0, 0,
3045 0, 0, 0, 0,
3046 /* IP2_11_8 [4] */
3047 FN_HCTS0, FN_CTS1, FN_STM, FN_PWM0_D,
3048 FN_RX0_C, FN_SCIF_CLK_C, FN_SUB_TRST, FN_TCLK1_B,
3049 FN_CC5_OSCOUT, 0, 0, 0,
3050 0, 0, 0, 0,
3051 /* IP2_7_4 [4] */
3052 FN_HSCK0, FN_SCK1, FN_MTS, FN_PWM5,
3053 FN_SCK0_C, FN_SSI_SDATA9_B, FN_SUB_TDO, FN_CC5_STATE0,
3054 FN_CC5_STATE8, FN_CC5_STATE16, FN_CC5_STATE24, FN_CC5_STATE32,
3055 0, 0, 0, 0,
3056 /* IP2_3_0 [4] */
3057 FN_HRX0, FN_RX1, FN_SCKZ, FN_RTS0_C_TANS_C,
3058 FN_SUB_TDI, FN_CC5_STATE3, FN_CC5_STATE11, FN_CC5_STATE19,
3059 FN_CC5_STATE27, FN_CC5_STATE35, 0, 0,
3060 0, 0, 0, 0 }
3061 },
3062 { PINMUX_CFG_REG_VAR("IPSR3", 0xfffc002c, 32,
3063 3, 1, 1, 3, 1, 2, 1, 1, 1, 1, 1,
3064 1, 3, 3, 1, 1, 1, 1, 1, 1, 3) {
3065 /* IP3_31_29 [3] */
3066 FN_DU0_EXODDF_DU0_ODDF_DISP_CDE, FN_QCPV_QDE, FN_CAN1_TX, FN_TX2_C,
3067 FN_SCL2_C, FN_REMOCON, 0, 0,
3068 /* IP3_28 [1] */
3069 FN_DU0_EXVSYNC_DU0_VSYNC, FN_QSTB_QHE,
3070 /* IP3_27 [1] */
3071 FN_DU0_EXHSYNC_DU0_HSYNC, FN_QSTH_QHS,
3072 /* IP3_26_24 [3] */
3073 FN_DU0_DOTCLKOUT1, FN_QSTVB_QVE, FN_RX3_D_IRDA_RX_D, FN_SDA3_B,
3074 FN_SDA2_C, FN_DACK0_B, FN_DRACK0_B, 0,
3075 /* IP3_23 [1] */
3076 FN_DU0_DOTCLKOUT0, FN_QCLK,
3077 /* IP3_22_21 [2] */
3078 FN_DU0_DOTCLKIN, FN_QSTVA_QVS, FN_TX3_D_IRDA_TX_D, FN_SCL3_B,
3079 /* IP3_20 [1] */
3080 FN_DU0_DB7, FN_LCDOUT23,
3081 /* IP3_19 [1] */
3082 FN_DU0_DB6, FN_LCDOUT22,
3083 /* IP3_18 [1] */
3084 FN_DU0_DB5, FN_LCDOUT21,
3085 /* IP3_17 [1] */
3086 FN_DU0_DB4, FN_LCDOUT20,
3087 /* IP3_16 [1] */
3088 FN_DU0_DB3, FN_LCDOUT19,
3089 /* IP3_15 [1] */
3090 FN_DU0_DB2, FN_LCDOUT18,
3091 /* IP3_14_12 [3] */
3092 FN_DU0_DB1, FN_LCDOUT17, FN_EX_WAIT2, FN_SDA1,
3093 FN_GPS_MAG_B, FN_AUDATA5, FN_SCK5_C, 0,
3094 /* IP3_11_9 [3] */
3095 FN_DU0_DB0, FN_LCDOUT16, FN_EX_WAIT1, FN_SCL1,
3096 FN_TCLK1, FN_AUDATA4, 0, 0,
3097 /* IP3_8 [1] */
3098 FN_DU0_DG7, FN_LCDOUT15,
3099 /* IP3_7 [1] */
3100 FN_DU0_DG6, FN_LCDOUT14,
3101 /* IP3_6 [1] */
3102 FN_DU0_DG5, FN_LCDOUT13,
3103 /* IP3_5 [1] */
3104 FN_DU0_DG4, FN_LCDOUT12,
3105 /* IP3_4 [1] */
3106 FN_DU0_DG3, FN_LCDOUT11,
3107 /* IP3_3 [1] */
3108 FN_DU0_DG2, FN_LCDOUT10,
3109 /* IP3_2_0 [3] */
3110 FN_DU0_DG1, FN_LCDOUT9, FN_DACK1, FN_SDA2,
3111 FN_AUDATA3, 0, 0, 0 }
3112 },
3113 { PINMUX_CFG_REG_VAR("IPSR4", 0xfffc0030, 32,
3114 3, 1, 1, 1, 1, 1, 1, 3, 3,
3115 1, 1, 1, 1, 1, 1, 3, 3, 3, 2) {
3116 /* IP4_31_29 [3] */
3117 FN_DU1_DB0, FN_VI2_DATA4_VI2_B4, FN_SCL2_B, FN_SD3_DAT0,
3118 FN_TX5, FN_SCK0_D, 0, 0,
3119 /* IP4_28 [1] */
3120 FN_DU1_DG7, FN_VI2_R3,
3121 /* IP4_27 [1] */
3122 FN_DU1_DG6, FN_VI2_R2,
3123 /* IP4_26 [1] */
3124 FN_DU1_DG5, FN_VI2_R1,
3125 /* IP4_25 [1] */
3126 FN_DU1_DG4, FN_VI2_R0,
3127 /* IP4_24 [1] */
3128 FN_DU1_DG3, FN_VI2_G7,
3129 /* IP4_23 [1] */
3130 FN_DU1_DG2, FN_VI2_G6,
3131 /* IP4_22_20 [3] */
3132 FN_DU1_DG1, FN_VI2_DATA3_VI2_B3, FN_SDA1_B, FN_SD3_DAT3,
3133 FN_SCK5, FN_AUDATA7, FN_RX0_D, 0,
3134 /* IP4_19_17 [3] */
3135 FN_DU1_DG0, FN_VI2_DATA2_VI2_B2, FN_SCL1_B, FN_SD3_DAT2,
3136 FN_SCK3_E, FN_AUDATA6, FN_TX0_D, 0,
3137 /* IP4_16 [1] */
3138 FN_DU1_DR7, FN_VI2_G5,
3139 /* IP4_15 [1] */
3140 FN_DU1_DR6, FN_VI2_G4,
3141 /* IP4_14 [1] */
3142 FN_DU1_DR5, FN_VI2_G3,
3143 /* IP4_13 [1] */
3144 FN_DU1_DR4, FN_VI2_G2,
3145 /* IP4_12 [1] */
3146 FN_DU1_DR3, FN_VI2_G1,
3147 /* IP4_11 [1] */
3148 FN_DU1_DR2, FN_VI2_G0,
3149 /* IP4_10_8 [3] */
3150 FN_DU1_DR1, FN_VI2_DATA1_VI2_B1, FN_PWM0, FN_SD3_CMD,
3151 FN_RX3_E_IRDA_RX_E, FN_AUDSYNC, FN_CTS0_D, 0,
3152 /* IP4_7_5 [3] */
3153 FN_DU1_DR0, FN_VI2_DATA0_VI2_B0, FN_PWM6, FN_SD3_CLK,
3154 FN_TX3_E_IRDA_TX_E, FN_AUDCK, FN_PWMFSW0_B, 0,
3155 /* IP4_4_2 [3] */
3156 FN_DU0_CDE, FN_QPOLB, FN_CAN1_RX, FN_RX2_C,
3157 FN_DREQ0_B, FN_SSI_SCK78_B, FN_SCK0_B, 0,
3158 /* IP4_1_0 [2] */
3159 FN_DU0_DISP, FN_QPOLA, FN_CAN_CLK_C, FN_SCK2_C }
3160 },
3161 { PINMUX_CFG_REG_VAR("IPSR5", 0xfffc0034, 32,
3162 1, 2, 1, 4, 3, 4, 2, 2,
3163 2, 2, 1, 1, 1, 1, 1, 1, 3) {
3164 /* IP5_31 [1] */
3165 0, 0,
3166 /* IP5_30_29 [2] */
3167 FN_AUDIO_CLKB, FN_USB_OVC2, FN_CAN_DEBUGOUT0, FN_MOUT0,
3168 /* IP5_28 [1] */
3169 FN_AUDIO_CLKA, FN_CAN_TXCLK,
3170 /* IP5_27_24 [4] */
3171 FN_DU1_CDE, FN_VI2_DATA7_VI2_B7, FN_RX3_B_IRDA_RX_B, FN_SD3_WP,
3172 FN_HSPI_RX1, FN_VI1_FIELD, FN_VI3_FIELD, FN_AUDIO_CLKOUT,
3173 FN_RX2_D, FN_GPS_CLK_C, FN_GPS_CLK_D, 0,
3174 0, 0, 0, 0,
3175 /* IP5_23_21 [3] */
3176 FN_DU1_DISP, FN_VI2_DATA6_VI2_B6, FN_TCLK0, FN_QSTVA_B_QVS_B,
3177 FN_HSPI_CLK1, FN_SCK2_D, FN_AUDIO_CLKOUT_B, FN_GPS_MAG_D,
3178 /* IP5_20_17 [4] */
3179 FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_VI2_CLK, FN_TX3_B_IRDA_TX_B,
3180 FN_SD3_CD, FN_HSPI_TX1, FN_VI1_CLKENB, FN_VI3_CLKENB,
3181 FN_AUDIO_CLKC, FN_TX2_D, FN_SPEEDIN, FN_GPS_SIGN_D, 0,
3182 0, 0, 0, 0,
3183 /* IP5_16_15 [2] */
3184 FN_DU1_EXVSYNC_DU1_VSYNC, FN_VI2_VSYNC, FN_VI3_VSYNC, 0,
3185 /* IP5_14_13 [2] */
3186 FN_DU1_EXHSYNC_DU1_HSYNC, FN_VI2_HSYNC, FN_VI3_HSYNC, 0,
3187 /* IP5_12_11 [2] */
3188 FN_DU1_DOTCLKOUT, FN_VI2_FIELD, FN_SDA1_D, 0,
3189 /* IP5_10_9 [2] */
3190 FN_DU1_DOTCLKIN, FN_VI2_CLKENB, FN_HSPI_CS1, FN_SCL1_D,
3191 /* IP5_8 [1] */
3192 FN_DU1_DB7, FN_SDA2_D,
3193 /* IP5_7 [1] */
3194 FN_DU1_DB6, FN_SCL2_D,
3195 /* IP5_6 [1] */
3196 FN_DU1_DB5, FN_VI2_R7,
3197 /* IP5_5 [1] */
3198 FN_DU1_DB4, FN_VI2_R6,
3199 /* IP5_4 [1] */
3200 FN_DU1_DB3, FN_VI2_R5,
3201 /* IP5_3 [1] */
3202 FN_DU1_DB2, FN_VI2_R4,
3203 /* IP5_2_0 [3] */
3204 FN_DU1_DB1, FN_VI2_DATA5_VI2_B5, FN_SDA2_B, FN_SD3_DAT1,
3205 FN_RX5, FN_RTS0_D_TANS_D, 0, 0 }
3206 },
3207 { PINMUX_CFG_REG_VAR("IPSR6", 0xfffc0038, 32,
3208 1, 2, 2, 2, 2, 3, 2, 3, 3, 3, 1, 2, 2, 2, 2) {
3209 /* IP6_31 [1] */
3210 0, 0,
3211 /* IP6_30_29 [2] */
3212 FN_SSI_SCK6, FN_ADICHS0, FN_CAN0_TX, FN_IERX_B,
3213 /* IP_28_27 [2] */
3214 0, 0, 0, 0,
3215 /* IP6_26_25 [2] */
3216 FN_SSI_SDATA5, FN_ADIDATA, FN_CAN_DEBUGOUT12, FN_RX3_IRDA_RX,
3217 /* IP6_24_23 [2] */
3218 FN_SSI_WS5, FN_ADICS_SAMP, FN_CAN_DEBUGOUT11, FN_TX3_IRDA_TX,
3219 /* IP6_22_20 [3] */
3220 FN_SSI_SCK5, FN_ADICLK, FN_CAN_DEBUGOUT10, FN_SCK3,
3221 FN_TCLK0_D, 0, 0, 0,
3222 /* IP6_19_18 [2] */
3223 FN_SSI_SDATA4, FN_CAN_DEBUGOUT9, FN_SSI_SDATA9_C, 0,
3224 /* IP6_17_15 [3] */
3225 FN_SSI_SDATA3, FN_PWM0_C, FN_CAN_DEBUGOUT8, FN_CAN_CLK_B,
3226 FN_IECLK, FN_SCIF_CLK_B, FN_TCLK0_B, 0,
3227 /* IP6_14_12 [3] */
3228 FN_SSI_WS34, FN_CAN_DEBUGOUT7, FN_CAN0_RX_B, FN_IETX,
3229 FN_SSI_WS9_C, 0, 0, 0,
3230 /* IP6_11_9 [3] */
3231 FN_SSI_SCK34, FN_CAN_DEBUGOUT6, FN_CAN0_TX_B, FN_IERX,
3232 FN_SSI_SCK9_C, 0, 0, 0,
3233 /* IP6_8 [1] */
3234 FN_SSI_SDATA2, FN_CAN_DEBUGOUT5,
3235 /* IP6_7_6 [2] */
3236 FN_SSI_SDATA1, FN_CAN_DEBUGOUT4, FN_MOUT6, 0,
3237 /* IP6_5_4 [2] */
3238 FN_SSI_SDATA0, FN_CAN_DEBUGOUT3, FN_MOUT5, 0,
3239 /* IP6_3_2 [2] */
3240 FN_SSI_WS0129, FN_CAN_DEBUGOUT2, FN_MOUT2, 0,
3241 /* IP6_1_0 [2] */
3242 FN_SSI_SCK0129, FN_CAN_DEBUGOUT1, FN_MOUT1, 0 }
3243 },
3244 { PINMUX_CFG_REG_VAR("IPSR7", 0xfffc003c, 32,
3245 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2) {
3246 /* IP7_31 [1] */
3247 0, 0,
3248 /* IP7_30_29 [2] */
3249 FN_SD0_WP, FN_DACK2, FN_CTS1_B, 0,
3250 /* IP7_28_27 [2] */
3251 FN_SD0_CD, FN_DREQ2, FN_RTS1_B_TANS_B, 0,
3252 /* IP7_26_25 [2] */
3253 FN_SD0_DAT3, FN_ATAWR1, FN_RX2_B, FN_CC5_TDI,
3254 /* IP7_24_23 [2] */
3255 FN_SD0_DAT2, FN_ATARD1, FN_TX2_B, FN_CC5_TCK,
3256 /* IP7_22_21 [2] */
3257 FN_SD0_DAT1, FN_ATAG1, FN_SCK2_B, FN_CC5_TMS,
3258 /* IP7_20_19 [2] */
3259 FN_SD0_DAT0, FN_ATADIR1, FN_RX1_B, FN_CC5_TRST,
3260 /* IP7_18_17 [2] */
3261 FN_SD0_CMD, FN_ATACS11, FN_TX1_B, FN_CC5_TDO,
3262 /* IP7_16_15 [2] */
3263 FN_SD0_CLK, FN_ATACS01, FN_SCK1_B, 0,
3264 /* IP7_14_13 [2] */
3265 FN_SSI_SDATA8, FN_VSP, FN_IRQ3_B, FN_HSPI_RX1_C,
3266 /* IP7_12_10 [3] */
3267 FN_SSI_SDATA7, FN_CAN_DEBUGOUT15, FN_IRQ2_B, FN_TCLK1_C,
3268 FN_HSPI_TX1_C, 0, 0, 0,
3269 /* IP7_9_7 [3] */
3270 FN_SSI_WS78, FN_CAN_DEBUGOUT14, FN_IRQ1_B, FN_SSI_WS9_B,
3271 FN_HSPI_CS1_C, 0, 0, 0,
3272 /* IP7_6_4 [3] */
3273 FN_SSI_SCK78, FN_CAN_DEBUGOUT13, FN_IRQ0_B, FN_SSI_SCK9_B,
3274 FN_HSPI_CLK1_C, 0, 0, 0,
3275 /* IP7_3_2 [2] */
3276 FN_SSI_SDATA6, FN_ADICHS2, FN_CAN_CLK, FN_IECLK_B,
3277 /* IP7_1_0 [2] */
3278 FN_SSI_WS6, FN_ADICHS1, FN_CAN0_RX, FN_IETX_B }
3279 },
3280 { PINMUX_CFG_REG_VAR("IPSR8", 0xfffc0040, 32,
3281 1, 3, 3, 2, 2, 1, 1, 1, 2, 4, 4, 4, 4) {
3282 /* IP8_31 [1] */
3283 0, 0,
3284 /* IP8_30_28 [3] */
3285 FN_VI0_VSYNC, FN_VI0_DATA1_B_VI0_B1_B, FN_RTS1_C_TANS_C, FN_RX4_D,
3286 FN_PWMFSW0_C, 0, 0, 0,
3287 /* IP8_27_25 [3] */
3288 FN_VI0_HSYNC, FN_VI0_DATA0_B_VI0_B0_B, FN_CTS1_C, FN_TX4_D,
3289 FN_MMC1_CMD, FN_HSCK1_B, 0, 0,
3290 /* IP8_24_23 [2] */
3291 FN_VI0_FIELD, FN_RX1_C, FN_HRX1_B, 0,
3292 /* IP8_22_21 [2] */
3293 FN_VI0_CLKENB, FN_TX1_C, FN_HTX1_B, FN_MT1_SYNC,
3294 /* IP8_20 [1] */
3295 FN_VI0_CLK, FN_MMC1_CLK,
3296 /* IP8_19 [1] */
3297 FN_FMIN, FN_RDS_DATA,
3298 /* IP8_18 [1] */
3299 FN_BPFCLK, FN_PCMWE,
3300 /* IP8_17_16 [2] */
3301 FN_FMCLK, FN_RDS_CLK, FN_PCMOE, 0,
3302 /* IP8_15_12 [4] */
3303 FN_HSPI_RX0, FN_RX0, FN_CAN_STEP0, FN_AD_NCS,
3304 FN_CC5_STATE7, FN_CC5_STATE15, FN_CC5_STATE23, FN_CC5_STATE31,
3305 FN_CC5_STATE39, 0, 0, 0,
3306 0, 0, 0, 0,
3307 /* IP8_11_8 [4] */
3308 FN_HSPI_TX0, FN_TX0, FN_CAN_DEBUG_HW_TRIGGER, FN_AD_DO,
3309 FN_CC5_STATE6, FN_CC5_STATE14, FN_CC5_STATE22, FN_CC5_STATE30,
3310 FN_CC5_STATE38, 0, 0, 0,
3311 0, 0, 0, 0,
3312 /* IP8_7_4 [4] */
3313 FN_HSPI_CS0, FN_RTS0_TANS, FN_USB_OVC1, FN_AD_DI,
3314 FN_CC5_STATE5, FN_CC5_STATE13, FN_CC5_STATE21, FN_CC5_STATE29,
3315 FN_CC5_STATE37, 0, 0, 0,
3316 0, 0, 0, 0,
3317 /* IP8_3_0 [4] */
3318 FN_HSPI_CLK0, FN_CTS0, FN_USB_OVC0, FN_AD_CLK,
3319 FN_CC5_STATE4, FN_CC5_STATE12, FN_CC5_STATE20, FN_CC5_STATE28,
3320 FN_CC5_STATE36, 0, 0, 0,
3321 0, 0, 0, 0 }
3322 },
3323 { PINMUX_CFG_REG_VAR("IPSR9", 0xfffc0044, 32,
3324 2, 2, 2, 2, 2, 3, 3, 2, 2,
3325 2, 2, 1, 1, 1, 1, 2, 2) {
3326 /* IP9_31_30 [2] */
3327 0, 0, 0, 0,
3328 /* IP9_29_28 [2] */
3329 FN_VI0_G7, FN_ETH_RXD1, FN_SD2_DAT3_B, FN_ARM_TRACEDATA_9,
3330 /* IP9_27_26 [2] */
3331 FN_VI0_G6, FN_ETH_RXD0, FN_SD2_DAT2_B, FN_ARM_TRACEDATA_8,
3332 /* IP9_25_24 [2] */
3333 FN_VI0_G5, FN_ETH_RX_ER, FN_SD2_DAT1_B, FN_ARM_TRACEDATA_7,
3334 /* IP9_23_22 [2] */
3335 FN_VI0_G4, FN_ETH_TX_EN, FN_SD2_DAT0_B, FN_ARM_TRACEDATA_6,
3336 /* IP9_21_19 [3] */
3337 FN_VI0_G3, FN_ETH_CRS_DV, FN_MMC1_D7, FN_ARM_TRACEDATA_5,
3338 FN_TS_SDAT0, 0, 0, 0,
3339 /* IP9_18_16 [3] */
3340 FN_VI0_G2, FN_ETH_TXD1, FN_MMC1_D6, FN_ARM_TRACEDATA_4,
3341 FN_TS_SPSYNC0, 0, 0, 0,
3342 /* IP9_15_14 [2] */
3343 FN_VI0_G1, FN_SSI_WS78_C, FN_IRQ1, FN_ARM_TRACEDATA_3,
3344 /* IP9_13_12 [2] */
3345 FN_VI0_G0, FN_SSI_SCK78_C, FN_IRQ0, FN_ARM_TRACEDATA_2,
3346 /* IP9_11_10 [2] */
3347 FN_VI0_DATA7_VI0_B7, FN_MMC1_D5, FN_ARM_TRACEDATA_1, 0,
3348 /* IP9_9_8 [2] */
3349 FN_VI0_DATA6_VI0_B6, FN_MMC1_D4, FN_ARM_TRACEDATA_0, 0,
3350 /* IP9_7 [1] */
3351 FN_VI0_DATA5_VI0_B5, FN_MMC1_D3,
3352 /* IP9_6 [1] */
3353 FN_VI0_DATA4_VI0_B4, FN_MMC1_D2,
3354 /* IP9_5 [1] */
3355 FN_VI0_DATA3_VI0_B3, FN_MMC1_D1,
3356 /* IP9_4 [1] */
3357 FN_VI0_DATA2_VI0_B2, FN_MMC1_D0,
3358 /* IP9_3_2 [2] */
3359 FN_VI0_DATA1_VI0_B1, FN_HCTS1_B, FN_MT1_PWM, 0,
3360 /* IP9_1_0 [2] */
3361 FN_VI0_DATA0_VI0_B0, FN_HRTS1_B, FN_MT1_VCXO, 0 }
3362 },
3363 { PINMUX_CFG_REG_VAR("IPSR10", 0xfffc0048, 32,
3364 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3) {
3365 /* IP10_31_29 [3] */
3366 FN_VI1_VSYNC, FN_AUDIO_CLKOUT_C, FN_SSI_WS4, FN_SIM_CLK,
3367 FN_GPS_MAG_C, FN_SPV_TRST, FN_SCL3, 0,
3368 /* IP10_28_26 [3] */
3369 FN_VI1_HSYNC, FN_VI3_CLK, FN_SSI_SCK4, FN_GPS_SIGN_C,
3370 FN_PWMFSW0_E, 0, 0, 0,
3371 /* IP10_25_24 [2] */
3372 FN_VI1_CLK, FN_SIM_D, FN_SDA3, 0,
3373 /* IP10_23_21 [3] */
3374 FN_VI0_R7, FN_ETH_MDIO, FN_DACK2_C, FN_HSPI_RX1_B,
3375 FN_SCIF_CLK_D, FN_TRACECTL, FN_MT1_PEN, 0,
3376 /* IP10_20_18 [3] */
3377 FN_VI0_R6, FN_ETH_MDC, FN_DREQ2_C, FN_HSPI_TX1_B,
3378 FN_TRACECLK, FN_MT1_BEN, FN_PWMFSW0_D, 0,
3379 /* IP10_17_15 [3] */
3380 FN_VI0_R5, FN_ETH_TXD0, FN_SD2_WP_B, FN_HSPI_CS1_B,
3381 FN_ARM_TRACEDATA_15, FN_MT1_D, FN_TS_SDEN0, 0,
3382 /* IP10_14_12 [3] */
3383 FN_VI0_R4, FN_ETH_REFCLK, FN_SD2_CD_B, FN_HSPI_CLK1_B,
3384 FN_ARM_TRACEDATA_14, FN_MT1_CLK, FN_TS_SCK0, 0,
3385 /* IP10_11_9 [3] */
3386 FN_VI0_R3, FN_ETH_MAGIC, FN_SD2_CMD_B, FN_IRQ3,
3387 FN_ARM_TRACEDATA_13, 0, 0, 0,
3388 /* IP10_8_6 [3] */
3389 FN_VI0_R2, FN_ETH_LINK, FN_SD2_CLK_B, FN_IRQ2,
3390 FN_ARM_TRACEDATA_12, 0, 0, 0,
3391 /* IP10_5_3 [3] */
3392 FN_VI0_R1, FN_SSI_SDATA8_C, FN_DACK1_B, FN_ARM_TRACEDATA_11,
3393 FN_DACK0_C, FN_DRACK0_C, 0, 0,
3394 /* IP10_2_0 [3] */
3395 FN_VI0_R0, FN_SSI_SDATA7_C, FN_SCK1_C, FN_DREQ1_B,
3396 FN_ARM_TRACEDATA_10, FN_DREQ0_C, 0, 0 }
3397 },
3398 { PINMUX_CFG_REG_VAR("IPSR11", 0xfffc004c, 32,
3399 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3) {
3400 /* IP11_31_30 [2] */
3401 0, 0, 0, 0,
3402 /* IP11_29_27 [3] */
3403 FN_VI1_G1, FN_VI3_DATA1, FN_SSI_SCK1, FN_TS_SDEN1,
3404 FN_DACK2_B, FN_RX2, FN_HRTS0_B, 0,
3405 /* IP11_26_24 [3] */
Laurent Pinchart2a028182013-01-09 22:32:25 +01003406 FN_VI1_G0, FN_VI3_DATA0, 0, FN_TS_SCK1,
Laurent Pinchart881023d2012-12-15 23:51:22 +01003407 FN_DREQ2_B, FN_TX2, FN_SPA_TDO, FN_HCTS0_B,
3408 /* IP11_23_21 [3] */
3409 FN_VI1_DATA7_VI1_B7, FN_SD2_WP, FN_MT0_PWM, FN_SPA_TDI,
3410 FN_HSPI_RX1_D, 0, 0, 0,
3411 /* IP11_20_18 [3] */
3412 FN_VI1_DATA6_VI1_B6, FN_SD2_CD, FN_MT0_VCXO, FN_SPA_TMS,
3413 FN_HSPI_TX1_D, 0, 0, 0,
3414 /* IP11_17_15 [3] */
3415 FN_VI1_DATA5_VI1_B5, FN_SD2_CMD, FN_MT0_SYNC, FN_SPA_TCK,
3416 FN_HSPI_CS1_D, FN_ADICHS2_B, 0, 0,
3417 /* IP11_14_12 [3] */
3418 FN_VI1_DATA4_VI1_B4, FN_SD2_CLK, FN_MT0_PEN, FN_SPA_TRST,
3419 FN_HSPI_CLK1_D, FN_ADICHS1_B, 0, 0,
3420 /* IP11_11_9 [3] */
3421 FN_VI1_DATA3_VI1_B3, FN_SD2_DAT3, FN_MT0_BEN, FN_SPV_TDO,
3422 FN_ADICHS0_B, 0, 0, 0,
3423 /* IP11_8_6 [3] */
3424 FN_VI1_DATA2_VI1_B2, FN_SD2_DAT2, FN_MT0_D, FN_SPVTDI,
3425 FN_ADIDATA_B, 0, 0, 0,
3426 /* IP11_5_3 [3] */
3427 FN_VI1_DATA1_VI1_B1, FN_SD2_DAT1, FN_MT0_CLK, FN_SPV_TMS,
3428 FN_ADICS_B_SAMP_B, 0, 0, 0,
3429 /* IP11_2_0 [3] */
3430 FN_VI1_DATA0_VI1_B0, FN_SD2_DAT0, FN_SIM_RST, FN_SPV_TCK,
3431 FN_ADICLK_B, 0, 0, 0 }
3432 },
3433 { PINMUX_CFG_REG_VAR("IPSR12", 0xfffc0050, 32,
3434 4, 4, 4, 2, 3, 3, 3, 3, 3, 3) {
3435 /* IP12_31_28 [4] */
3436 0, 0, 0, 0, 0, 0, 0, 0,
3437 0, 0, 0, 0, 0, 0, 0, 0,
3438 /* IP12_27_24 [4] */
3439 0, 0, 0, 0, 0, 0, 0, 0,
3440 0, 0, 0, 0, 0, 0, 0, 0,
3441 /* IP12_23_20 [4] */
3442 0, 0, 0, 0, 0, 0, 0, 0,
3443 0, 0, 0, 0, 0, 0, 0, 0,
3444 /* IP12_19_18 [2] */
3445 0, 0, 0, 0,
3446 /* IP12_17_15 [3] */
3447 FN_VI1_G7, FN_VI3_DATA7, FN_GPS_MAG, FN_FCE,
3448 FN_SCK4_B, 0, 0, 0,
3449 /* IP12_14_12 [3] */
3450 FN_VI1_G6, FN_VI3_DATA6, FN_GPS_SIGN, FN_FRB,
3451 FN_RX4_B, FN_SIM_CLK_B, 0, 0,
3452 /* IP12_11_9 [3] */
3453 FN_VI1_G5, FN_VI3_DATA5, FN_GPS_CLK, FN_FSE,
3454 FN_TX4_B, FN_SIM_D_B, 0, 0,
3455 /* IP12_8_6 [3] */
3456 FN_VI1_G4, FN_VI3_DATA4, FN_SSI_WS2, FN_SDA1_C,
3457 FN_SIM_RST_B, FN_HRX0_B, 0, 0,
3458 /* IP12_5_3 [3] */
3459 FN_VI1_G3, FN_VI3_DATA3, FN_SSI_SCK2, FN_TS_SDAT1,
3460 FN_SCL1_C, FN_HTX0_B, 0, 0,
3461 /* IP12_2_0 [3] */
3462 FN_VI1_G2, FN_VI3_DATA2, FN_SSI_WS1, FN_TS_SPSYNC1,
3463 FN_SCK2, FN_HSCK0_B, 0, 0 }
3464 },
3465 { PINMUX_CFG_REG_VAR("MOD_SEL", 0xfffc0090, 32,
3466 2, 2, 3, 3, 2, 2, 2, 2, 2,
3467 1, 1, 1, 1, 1, 1, 1, 2, 1, 2) {
3468 /* SEL_SCIF5 [2] */
3469 FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, FN_SEL_SCIF5_2, FN_SEL_SCIF5_3,
3470 /* SEL_SCIF4 [2] */
3471 FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, FN_SEL_SCIF4_3,
3472 /* SEL_SCIF3 [3] */
3473 FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3,
3474 FN_SEL_SCIF3_4, 0, 0, 0,
3475 /* SEL_SCIF2 [3] */
3476 FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, FN_SEL_SCIF2_3,
3477 FN_SEL_SCIF2_4, 0, 0, 0,
3478 /* SEL_SCIF1 [2] */
3479 FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, 0,
3480 /* SEL_SCIF0 [2] */
3481 FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, FN_SEL_SCIF0_3,
3482 /* SEL_SSI9 [2] */
3483 FN_SEL_SSI9_0, FN_SEL_SSI9_1, FN_SEL_SSI9_2, 0,
3484 /* SEL_SSI8 [2] */
3485 FN_SEL_SSI8_0, FN_SEL_SSI8_1, FN_SEL_SSI8_2, 0,
3486 /* SEL_SSI7 [2] */
3487 FN_SEL_SSI7_0, FN_SEL_SSI7_1, FN_SEL_SSI7_2, 0,
3488 /* SEL_VI0 [1] */
3489 FN_SEL_VI0_0, FN_SEL_VI0_1,
3490 /* SEL_SD2 [1] */
3491 FN_SEL_SD2_0, FN_SEL_SD2_1,
3492 /* SEL_INT3 [1] */
3493 FN_SEL_INT3_0, FN_SEL_INT3_1,
3494 /* SEL_INT2 [1] */
3495 FN_SEL_INT2_0, FN_SEL_INT2_1,
3496 /* SEL_INT1 [1] */
3497 FN_SEL_INT1_0, FN_SEL_INT1_1,
3498 /* SEL_INT0 [1] */
3499 FN_SEL_INT0_0, FN_SEL_INT0_1,
3500 /* SEL_IE [1] */
3501 FN_SEL_IE_0, FN_SEL_IE_1,
3502 /* SEL_EXBUS2 [2] */
3503 FN_SEL_EXBUS2_0, FN_SEL_EXBUS2_1, FN_SEL_EXBUS2_2, 0,
3504 /* SEL_EXBUS1 [1] */
3505 FN_SEL_EXBUS1_0, FN_SEL_EXBUS1_1,
3506 /* SEL_EXBUS0 [2] */
3507 FN_SEL_EXBUS0_0, FN_SEL_EXBUS0_1, FN_SEL_EXBUS0_2, 0 }
3508 },
3509 { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xfffc0094, 32,
3510 2, 2, 2, 2, 1, 1, 1, 3, 1,
3511 2, 2, 2, 2, 1, 1, 2, 1, 2, 2) {
3512 /* SEL_TMU1 [2] */
3513 FN_SEL_TMU1_0, FN_SEL_TMU1_1, FN_SEL_TMU1_2, 0,
3514 /* SEL_TMU0 [2] */
3515 FN_SEL_TMU0_0, FN_SEL_TMU0_1, FN_SEL_TMU0_2, FN_SEL_TMU0_3,
3516 /* SEL_SCIF [2] */
3517 FN_SEL_SCIF_0, FN_SEL_SCIF_1, FN_SEL_SCIF_2, FN_SEL_SCIF_3,
3518 /* SEL_CANCLK [2] */
3519 FN_SEL_CANCLK_0, FN_SEL_CANCLK_1, FN_SEL_CANCLK_2,
3520 /* SEL_CAN0 [1] */
3521 FN_SEL_CAN0_0, FN_SEL_CAN0_1,
3522 /* SEL_HSCIF1 [1] */
3523 FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
3524 /* SEL_HSCIF0 [1] */
3525 FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1,
3526 /* SEL_PWMFSW [3] */
3527 FN_SEL_PWMFSW_0, FN_SEL_PWMFSW_1, FN_SEL_PWMFSW_2,
3528 FN_SEL_PWMFSW_3, FN_SEL_PWMFSW_4, 0, 0, 0,
3529 /* SEL_ADI [1] */
3530 FN_SEL_ADI_0, FN_SEL_ADI_1,
3531 /* [2] */
3532 0, 0, 0, 0,
3533 /* [2] */
3534 0, 0, 0, 0,
3535 /* [2] */
3536 0, 0, 0, 0,
3537 /* SEL_GPS [2] */
3538 FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
3539 /* SEL_SIM [1] */
3540 FN_SEL_SIM_0, FN_SEL_SIM_1,
3541 /* SEL_HSPI2 [1] */
3542 FN_SEL_HSPI2_0, FN_SEL_HSPI2_1,
3543 /* SEL_HSPI1 [2] */
3544 FN_SEL_HSPI1_0, FN_SEL_HSPI1_1, FN_SEL_HSPI1_2, FN_SEL_HSPI1_3,
3545 /* SEL_I2C3 [1] */
3546 FN_SEL_I2C3_0, FN_SEL_I2C3_1,
3547 /* SEL_I2C2 [2] */
3548 FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
3549 /* SEL_I2C1 [2] */
3550 FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, FN_SEL_I2C1_3 }
3551 },
3552 { PINMUX_CFG_REG("INOUTSEL0", 0xffc40004, 32, 1) { GP_INOUTSEL(0) } },
3553 { PINMUX_CFG_REG("INOUTSEL1", 0xffc41004, 32, 1) { GP_INOUTSEL(1) } },
3554 { PINMUX_CFG_REG("INOUTSEL2", 0xffc42004, 32, 1) { GP_INOUTSEL(2) } },
3555 { PINMUX_CFG_REG("INOUTSEL3", 0xffc43004, 32, 1) { GP_INOUTSEL(3) } },
3556 { PINMUX_CFG_REG("INOUTSEL4", 0xffc44004, 32, 1) { GP_INOUTSEL(4) } },
3557 { PINMUX_CFG_REG("INOUTSEL5", 0xffc45004, 32, 1) { GP_INOUTSEL(5) } },
3558 { PINMUX_CFG_REG("INOUTSEL6", 0xffc46004, 32, 1) {
3559 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3560 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3561 0, 0, 0, 0, 0, 0, 0, 0,
3562 0, 0,
3563 0, 0,
3564 0, 0,
3565 GP_6_8_IN, GP_6_8_OUT,
3566 GP_6_7_IN, GP_6_7_OUT,
3567 GP_6_6_IN, GP_6_6_OUT,
3568 GP_6_5_IN, GP_6_5_OUT,
3569 GP_6_4_IN, GP_6_4_OUT,
3570 GP_6_3_IN, GP_6_3_OUT,
3571 GP_6_2_IN, GP_6_2_OUT,
3572 GP_6_1_IN, GP_6_1_OUT,
3573 GP_6_0_IN, GP_6_0_OUT, }
3574 },
3575 { },
3576};
3577
Laurent Pinchartcd3c1be2013-02-16 18:47:05 +01003578static const struct pinmux_data_reg pinmux_data_regs[] = {
Laurent Pinchart881023d2012-12-15 23:51:22 +01003579 { PINMUX_DATA_REG("INDT0", 0xffc40008, 32) { GP_INDT(0) } },
3580 { PINMUX_DATA_REG("INDT1", 0xffc41008, 32) { GP_INDT(1) } },
3581 { PINMUX_DATA_REG("INDT2", 0xffc42008, 32) { GP_INDT(2) } },
3582 { PINMUX_DATA_REG("INDT3", 0xffc43008, 32) { GP_INDT(3) } },
3583 { PINMUX_DATA_REG("INDT4", 0xffc44008, 32) { GP_INDT(4) } },
3584 { PINMUX_DATA_REG("INDT5", 0xffc45008, 32) { GP_INDT(5) } },
3585 { PINMUX_DATA_REG("INDT6", 0xffc46008, 32) {
3586 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3587 0, 0, 0, 0, 0, 0, 0, GP_6_8_DATA,
3588 GP_6_7_DATA, GP_6_6_DATA, GP_6_5_DATA, GP_6_4_DATA,
3589 GP_6_3_DATA, GP_6_2_DATA, GP_6_1_DATA, GP_6_0_DATA }
3590 },
3591 { },
3592};
3593
Laurent Pinchartcd3c1be2013-02-16 18:47:05 +01003594const struct sh_pfc_soc_info r8a7779_pinmux_info = {
Laurent Pinchart881023d2012-12-15 23:51:22 +01003595 .name = "r8a7779_pfc",
3596
3597 .unlock_reg = 0xfffc0000, /* PMMR */
3598
Laurent Pinchart881023d2012-12-15 23:51:22 +01003599 .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
3600 .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
Laurent Pinchart881023d2012-12-15 23:51:22 +01003601 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
3602
Laurent Pincharta373ed02012-11-29 13:24:07 +01003603 .pins = pinmux_pins,
3604 .nr_pins = ARRAY_SIZE(pinmux_pins),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01003605 .groups = pinmux_groups,
3606 .nr_groups = ARRAY_SIZE(pinmux_groups),
3607 .functions = pinmux_functions,
3608 .nr_functions = ARRAY_SIZE(pinmux_functions),
3609
Laurent Pinchart881023d2012-12-15 23:51:22 +01003610 .cfg_regs = pinmux_config_regs,
3611 .data_regs = pinmux_data_regs,
3612
3613 .gpio_data = pinmux_data,
3614 .gpio_data_size = ARRAY_SIZE(pinmux_data),
3615};