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