blob: afc5d80353c568fd9be32c7f31ae1521b14ad47a [file] [log] [blame]
Laurent Pinchart881023d2012-12-15 23:51:22 +01001/*
2 * r8a7779 processor support - PFC hardware block
3 *
Vladimir Barinov54ee73c2013-04-16 22:17:28 +00004 * Copyright (C) 2011, 2013 Renesas Solutions Corp.
Laurent Pinchart881023d2012-12-15 23:51:22 +01005 * Copyright (C) 2011 Magnus Damm
Vladimir Barinov54ee73c2013-04-16 22:17:28 +00006 * Copyright (C) 2013 Cogent Embedded, Inc.
Laurent Pinchart881023d2012-12-15 23:51:22 +01007 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#include <linux/kernel.h>
Laurent Pinchart881023d2012-12-15 23:51:22 +010023
Laurent Pinchartc3323802012-12-15 23:51:55 +010024#include "sh_pfc.h"
25
Laurent Pinchart7417dae2013-03-07 23:47:18 +010026#define CPU_ALL_PORT(fn, sfx) \
27 PORT_GP_32(0, fn, sfx), \
28 PORT_GP_32(1, fn, sfx), \
29 PORT_GP_32(2, fn, sfx), \
30 PORT_GP_32(3, fn, sfx), \
31 PORT_GP_32(4, fn, sfx), \
32 PORT_GP_32(5, fn, sfx), \
Laurent Pincharte3d93b42013-07-15 15:14:22 +020033 PORT_GP_9(6, fn, sfx)
Laurent Pinchart881023d2012-12-15 23:51:22 +010034
35enum {
36 PINMUX_RESERVED = 0,
37
38 PINMUX_DATA_BEGIN,
39 GP_ALL(DATA), /* GP_0_0_DATA -> GP_6_8_DATA */
40 PINMUX_DATA_END,
41
Laurent Pinchart881023d2012-12-15 23:51:22 +010042 PINMUX_FUNCTION_BEGIN,
43 GP_ALL(FN), /* GP_0_0_FN -> GP_6_8_FN */
44
45 /* GPSR0 */
46 FN_AVS1, FN_AVS2, FN_IP0_7_6, FN_A17,
47 FN_A18, FN_A19, FN_IP0_9_8, FN_IP0_11_10,
48 FN_IP0_13_12, FN_IP0_15_14, FN_IP0_18_16, FN_IP0_22_19,
49 FN_IP0_24_23, FN_IP0_25, FN_IP0_27_26, FN_IP1_1_0,
50 FN_IP1_3_2, FN_IP1_6_4, FN_IP1_10_7, FN_IP1_14_11,
51 FN_IP1_18_15, FN_IP0_5_3, FN_IP0_30_28, FN_IP2_18_16,
52 FN_IP2_21_19, FN_IP2_30_28, FN_IP3_2_0, FN_IP3_11_9,
53 FN_IP3_14_12, FN_IP3_22_21, FN_IP3_26_24, FN_IP3_31_29,
54
55 /* GPSR1 */
56 FN_IP4_1_0, FN_IP4_4_2, FN_IP4_7_5, FN_IP4_10_8,
57 FN_IP4_11, FN_IP4_12, FN_IP4_13, FN_IP4_14,
58 FN_IP4_15, FN_IP4_16, FN_IP4_19_17, FN_IP4_22_20,
59 FN_IP4_23, FN_IP4_24, FN_IP4_25, FN_IP4_26,
60 FN_IP4_27, FN_IP4_28, FN_IP4_31_29, FN_IP5_2_0,
61 FN_IP5_3, FN_IP5_4, FN_IP5_5, FN_IP5_6,
62 FN_IP5_7, FN_IP5_8, FN_IP5_10_9, FN_IP5_12_11,
63 FN_IP5_14_13, FN_IP5_16_15, FN_IP5_20_17, FN_IP5_23_21,
64
65 /* GPSR2 */
66 FN_IP5_27_24, FN_IP8_20, FN_IP8_22_21, FN_IP8_24_23,
67 FN_IP8_27_25, FN_IP8_30_28, FN_IP9_1_0, FN_IP9_3_2,
68 FN_IP9_4, FN_IP9_5, FN_IP9_6, FN_IP9_7,
69 FN_IP9_9_8, FN_IP9_11_10, FN_IP9_13_12, FN_IP9_15_14,
70 FN_IP9_18_16, FN_IP9_21_19, FN_IP9_23_22, FN_IP9_25_24,
71 FN_IP9_27_26, FN_IP9_29_28, FN_IP10_2_0, FN_IP10_5_3,
72 FN_IP10_8_6, FN_IP10_11_9, FN_IP10_14_12, FN_IP10_17_15,
73 FN_IP10_20_18, FN_IP10_23_21, FN_IP10_25_24, FN_IP10_28_26,
74
75 /* GPSR3 */
76 FN_IP10_31_29, FN_IP11_2_0, FN_IP11_5_3, FN_IP11_8_6,
77 FN_IP11_11_9, FN_IP11_14_12, FN_IP11_17_15, FN_IP11_20_18,
78 FN_IP11_23_21, FN_IP11_26_24, FN_IP11_29_27, FN_IP12_2_0,
79 FN_IP12_5_3, FN_IP12_8_6, FN_IP12_11_9, FN_IP12_14_12,
80 FN_IP12_17_15, FN_IP7_16_15, FN_IP7_18_17, FN_IP7_28_27,
81 FN_IP7_30_29, FN_IP7_20_19, FN_IP7_22_21, FN_IP7_24_23,
82 FN_IP7_26_25, FN_IP1_20_19, FN_IP1_22_21, FN_IP1_24_23,
83 FN_IP5_28, FN_IP5_30_29, FN_IP6_1_0, FN_IP6_3_2,
84
85 /* GPSR4 */
86 FN_IP6_5_4, FN_IP6_7_6, FN_IP6_8, FN_IP6_11_9,
87 FN_IP6_14_12, FN_IP6_17_15, FN_IP6_19_18, FN_IP6_22_20,
88 FN_IP6_24_23, FN_IP6_26_25, FN_IP6_30_29, FN_IP7_1_0,
89 FN_IP7_3_2, FN_IP7_6_4, FN_IP7_9_7, FN_IP7_12_10,
90 FN_IP7_14_13, FN_IP2_7_4, FN_IP2_11_8, FN_IP2_15_12,
91 FN_IP1_28_25, FN_IP2_3_0, FN_IP8_3_0, FN_IP8_7_4,
92 FN_IP8_11_8, FN_IP8_15_12, FN_USB_PENC0, FN_USB_PENC1,
93 FN_IP0_2_0, FN_IP8_17_16, FN_IP8_18, FN_IP8_19,
94
95 /* GPSR5 */
96 FN_A1, FN_A2, FN_A3, FN_A4,
97 FN_A5, FN_A6, FN_A7, FN_A8,
98 FN_A9, FN_A10, FN_A11, FN_A12,
99 FN_A13, FN_A14, FN_A15, FN_A16,
100 FN_RD, FN_WE0, FN_WE1, FN_EX_WAIT0,
101 FN_IP3_23, FN_IP3_27, FN_IP3_28, FN_IP2_22,
102 FN_IP2_23, FN_IP2_24, FN_IP2_25, FN_IP2_26,
103 FN_IP2_27, FN_IP3_3, FN_IP3_4, FN_IP3_5,
104
105 /* GPSR6 */
106 FN_IP3_6, FN_IP3_7, FN_IP3_8, FN_IP3_15,
107 FN_IP3_16, FN_IP3_17, FN_IP3_18, FN_IP3_19,
108 FN_IP3_20,
109
110 /* IPSR0 */
111 FN_RD_WR, FN_FWE, FN_ATAG0, FN_VI1_R7,
112 FN_HRTS1, FN_RX4_C,
113 FN_CS1_A26, FN_HSPI_TX2, FN_SDSELF_B,
114 FN_CS0, FN_HSPI_CS2_B,
115 FN_CLKOUT, FN_TX3C_IRDA_TX_C, FN_PWM0_B,
116 FN_A25, FN_SD1_WP, FN_MMC0_D5, FN_FD5,
117 FN_HSPI_RX2, FN_VI1_R3, FN_TX5_B, FN_SSI_SDATA7_B,
118 FN_CTS0_B,
119 FN_A24, FN_SD1_CD, FN_MMC0_D4, FN_FD4,
120 FN_HSPI_CS2, FN_VI1_R2, FN_SSI_WS78_B,
121 FN_A23, FN_FCLE, FN_HSPI_CLK2, FN_VI1_R1,
122 FN_A22, FN_RX5_D, FN_HSPI_RX2_B, FN_VI1_R0,
123 FN_A21, FN_SCK5_D, FN_HSPI_CLK2_B,
124 FN_A20, FN_TX5_D, FN_HSPI_TX2_B,
125 FN_A0, FN_SD1_DAT3, FN_MMC0_D3, FN_FD3,
126 FN_BS, FN_SD1_DAT2, FN_MMC0_D2, FN_FD2,
127 FN_ATADIR0, FN_SDSELF, FN_HCTS1, FN_TX4_C,
128 FN_USB_PENC2, FN_SCK0, FN_PWM1, FN_PWMFSW0,
129 FN_SCIF_CLK, FN_TCLK0_C,
130
131 /* IPSR1 */
132 FN_EX_CS0, FN_RX3_C_IRDA_RX_C, FN_MMC0_D6,
133 FN_FD6, FN_EX_CS1, FN_MMC0_D7, FN_FD7,
134 FN_EX_CS2, FN_SD1_CLK, FN_MMC0_CLK, FN_FALE,
135 FN_ATACS00, FN_EX_CS3, FN_SD1_CMD, FN_MMC0_CMD,
136 FN_FRE, FN_ATACS10, FN_VI1_R4, FN_RX5_B,
137 FN_HSCK1, FN_SSI_SDATA8_B, FN_RTS0_B_TANS_B, FN_SSI_SDATA9,
138 FN_EX_CS4, FN_SD1_DAT0, FN_MMC0_D0, FN_FD0,
139 FN_ATARD0, FN_VI1_R5, FN_SCK5_B, FN_HTX1,
140 FN_TX2_E, FN_TX0_B, FN_SSI_SCK9, FN_EX_CS5,
141 FN_SD1_DAT1, FN_MMC0_D1, FN_FD1, FN_ATAWR0,
142 FN_VI1_R6, FN_HRX1, FN_RX2_E, FN_RX0_B,
143 FN_SSI_WS9, FN_MLB_CLK, FN_PWM2, FN_SCK4,
144 FN_MLB_SIG, FN_PWM3, FN_TX4, FN_MLB_DAT,
145 FN_PWM4, FN_RX4, FN_HTX0, FN_TX1,
146 FN_SDATA, FN_CTS0_C, FN_SUB_TCK, FN_CC5_STATE2,
147 FN_CC5_STATE10, FN_CC5_STATE18, FN_CC5_STATE26, FN_CC5_STATE34,
148
149 /* IPSR2 */
150 FN_HRX0, FN_RX1, FN_SCKZ, FN_RTS0_C_TANS_C,
151 FN_SUB_TDI, FN_CC5_STATE3, FN_CC5_STATE11, FN_CC5_STATE19,
152 FN_CC5_STATE27, FN_CC5_STATE35, FN_HSCK0, FN_SCK1,
153 FN_MTS, FN_PWM5, FN_SCK0_C, FN_SSI_SDATA9_B,
154 FN_SUB_TDO, FN_CC5_STATE0, FN_CC5_STATE8, FN_CC5_STATE16,
155 FN_CC5_STATE24, FN_CC5_STATE32, FN_HCTS0, FN_CTS1,
156 FN_STM, FN_PWM0_D, FN_RX0_C, FN_SCIF_CLK_C,
157 FN_SUB_TRST, FN_TCLK1_B, FN_CC5_OSCOUT, FN_HRTS0,
158 FN_RTS1_TANS, FN_MDATA, FN_TX0_C, FN_SUB_TMS,
159 FN_CC5_STATE1, FN_CC5_STATE9, FN_CC5_STATE17, FN_CC5_STATE25,
160 FN_CC5_STATE33, FN_DU0_DR0, FN_LCDOUT0, FN_DREQ0,
161 FN_GPS_CLK_B, FN_AUDATA0, FN_TX5_C, FN_DU0_DR1,
162 FN_LCDOUT1, FN_DACK0, FN_DRACK0, FN_GPS_SIGN_B,
163 FN_AUDATA1, FN_RX5_C, FN_DU0_DR2, FN_LCDOUT2,
164 FN_DU0_DR3, FN_LCDOUT3, FN_DU0_DR4, FN_LCDOUT4,
165 FN_DU0_DR5, FN_LCDOUT5, FN_DU0_DR6, FN_LCDOUT6,
166 FN_DU0_DR7, FN_LCDOUT7, FN_DU0_DG0, FN_LCDOUT8,
167 FN_DREQ1, FN_SCL2, FN_AUDATA2,
168
169 /* IPSR3 */
170 FN_DU0_DG1, FN_LCDOUT9, FN_DACK1, FN_SDA2,
171 FN_AUDATA3, FN_DU0_DG2, FN_LCDOUT10, FN_DU0_DG3,
172 FN_LCDOUT11, FN_DU0_DG4, FN_LCDOUT12, FN_DU0_DG5,
173 FN_LCDOUT13, FN_DU0_DG6, FN_LCDOUT14, FN_DU0_DG7,
174 FN_LCDOUT15, FN_DU0_DB0, FN_LCDOUT16, FN_EX_WAIT1,
175 FN_SCL1, FN_TCLK1, FN_AUDATA4, FN_DU0_DB1,
176 FN_LCDOUT17, FN_EX_WAIT2, FN_SDA1, FN_GPS_MAG_B,
177 FN_AUDATA5, FN_SCK5_C, FN_DU0_DB2, FN_LCDOUT18,
178 FN_DU0_DB3, FN_LCDOUT19, FN_DU0_DB4, FN_LCDOUT20,
179 FN_DU0_DB5, FN_LCDOUT21, FN_DU0_DB6, FN_LCDOUT22,
180 FN_DU0_DB7, FN_LCDOUT23, FN_DU0_DOTCLKIN, FN_QSTVA_QVS,
181 FN_TX3_D_IRDA_TX_D, FN_SCL3_B, FN_DU0_DOTCLKOUT0, FN_QCLK,
182 FN_DU0_DOTCLKOUT1, FN_QSTVB_QVE, FN_RX3_D_IRDA_RX_D, FN_SDA3_B,
183 FN_SDA2_C, FN_DACK0_B, FN_DRACK0_B, FN_DU0_EXHSYNC_DU0_HSYNC,
184 FN_QSTH_QHS, FN_DU0_EXVSYNC_DU0_VSYNC, FN_QSTB_QHE,
185 FN_DU0_EXODDF_DU0_ODDF_DISP_CDE, FN_QCPV_QDE, FN_CAN1_TX,
186 FN_TX2_C, FN_SCL2_C, FN_REMOCON,
187
188 /* IPSR4 */
189 FN_DU0_DISP, FN_QPOLA, FN_CAN_CLK_C, FN_SCK2_C,
190 FN_DU0_CDE, FN_QPOLB, FN_CAN1_RX, FN_RX2_C,
191 FN_DREQ0_B, FN_SSI_SCK78_B, FN_SCK0_B, FN_DU1_DR0,
192 FN_VI2_DATA0_VI2_B0, FN_PWM6, FN_SD3_CLK, FN_TX3_E_IRDA_TX_E,
193 FN_AUDCK, FN_PWMFSW0_B, FN_DU1_DR1, FN_VI2_DATA1_VI2_B1,
194 FN_PWM0, FN_SD3_CMD, FN_RX3_E_IRDA_RX_E, FN_AUDSYNC,
195 FN_CTS0_D, FN_DU1_DR2, FN_VI2_G0, FN_DU1_DR3,
196 FN_VI2_G1, FN_DU1_DR4, FN_VI2_G2, FN_DU1_DR5,
197 FN_VI2_G3, FN_DU1_DR6, FN_VI2_G4, FN_DU1_DR7,
198 FN_VI2_G5, FN_DU1_DG0, FN_VI2_DATA2_VI2_B2, FN_SCL1_B,
199 FN_SD3_DAT2, FN_SCK3_E, FN_AUDATA6, FN_TX0_D,
200 FN_DU1_DG1, FN_VI2_DATA3_VI2_B3, FN_SDA1_B, FN_SD3_DAT3,
201 FN_SCK5, FN_AUDATA7, FN_RX0_D, FN_DU1_DG2,
202 FN_VI2_G6, FN_DU1_DG3, FN_VI2_G7, FN_DU1_DG4,
203 FN_VI2_R0, FN_DU1_DG5, FN_VI2_R1, FN_DU1_DG6,
204 FN_VI2_R2, FN_DU1_DG7, FN_VI2_R3, FN_DU1_DB0,
205 FN_VI2_DATA4_VI2_B4, FN_SCL2_B, FN_SD3_DAT0, FN_TX5,
206 FN_SCK0_D,
207
208 /* IPSR5 */
209 FN_DU1_DB1, FN_VI2_DATA5_VI2_B5, FN_SDA2_B, FN_SD3_DAT1,
210 FN_RX5, FN_RTS0_D_TANS_D, FN_DU1_DB2, FN_VI2_R4,
211 FN_DU1_DB3, FN_VI2_R5, FN_DU1_DB4, FN_VI2_R6,
212 FN_DU1_DB5, FN_VI2_R7, FN_DU1_DB6, FN_SCL2_D,
213 FN_DU1_DB7, FN_SDA2_D, FN_DU1_DOTCLKIN, FN_VI2_CLKENB,
214 FN_HSPI_CS1, FN_SCL1_D, FN_DU1_DOTCLKOUT, FN_VI2_FIELD,
215 FN_SDA1_D, FN_DU1_EXHSYNC_DU1_HSYNC, FN_VI2_HSYNC,
216 FN_VI3_HSYNC, FN_DU1_EXVSYNC_DU1_VSYNC, FN_VI2_VSYNC, FN_VI3_VSYNC,
217 FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_VI2_CLK, FN_TX3_B_IRDA_TX_B,
218 FN_SD3_CD, FN_HSPI_TX1, FN_VI1_CLKENB, FN_VI3_CLKENB,
219 FN_AUDIO_CLKC, FN_TX2_D, FN_SPEEDIN, FN_GPS_SIGN_D,
220 FN_DU1_DISP, FN_VI2_DATA6_VI2_B6, FN_TCLK0, FN_QSTVA_B_QVS_B,
221 FN_HSPI_CLK1, FN_SCK2_D, FN_AUDIO_CLKOUT_B, FN_GPS_MAG_D,
222 FN_DU1_CDE, FN_VI2_DATA7_VI2_B7, FN_RX3_B_IRDA_RX_B,
223 FN_SD3_WP, FN_HSPI_RX1, FN_VI1_FIELD, FN_VI3_FIELD,
224 FN_AUDIO_CLKOUT, FN_RX2_D, FN_GPS_CLK_C, FN_GPS_CLK_D,
225 FN_AUDIO_CLKA, FN_CAN_TXCLK, FN_AUDIO_CLKB, FN_USB_OVC2,
226 FN_CAN_DEBUGOUT0, FN_MOUT0,
227
228 /* IPSR6 */
229 FN_SSI_SCK0129, FN_CAN_DEBUGOUT1, FN_MOUT1, FN_SSI_WS0129,
230 FN_CAN_DEBUGOUT2, FN_MOUT2, FN_SSI_SDATA0, FN_CAN_DEBUGOUT3,
231 FN_MOUT5, FN_SSI_SDATA1, FN_CAN_DEBUGOUT4, FN_MOUT6,
232 FN_SSI_SDATA2, FN_CAN_DEBUGOUT5, FN_SSI_SCK34, FN_CAN_DEBUGOUT6,
233 FN_CAN0_TX_B, FN_IERX, FN_SSI_SCK9_C, FN_SSI_WS34,
234 FN_CAN_DEBUGOUT7, FN_CAN0_RX_B, FN_IETX, FN_SSI_WS9_C,
235 FN_SSI_SDATA3, FN_PWM0_C, FN_CAN_DEBUGOUT8, FN_CAN_CLK_B,
236 FN_IECLK, FN_SCIF_CLK_B, FN_TCLK0_B, FN_SSI_SDATA4,
237 FN_CAN_DEBUGOUT9, FN_SSI_SDATA9_C, FN_SSI_SCK5, FN_ADICLK,
238 FN_CAN_DEBUGOUT10, FN_SCK3, FN_TCLK0_D, FN_SSI_WS5,
239 FN_ADICS_SAMP, FN_CAN_DEBUGOUT11, FN_TX3_IRDA_TX, FN_SSI_SDATA5,
240 FN_ADIDATA, FN_CAN_DEBUGOUT12, FN_RX3_IRDA_RX, FN_SSI_SCK6,
241 FN_ADICHS0, FN_CAN0_TX, FN_IERX_B,
242
243 /* IPSR7 */
244 FN_SSI_WS6, FN_ADICHS1, FN_CAN0_RX, FN_IETX_B,
245 FN_SSI_SDATA6, FN_ADICHS2, FN_CAN_CLK, FN_IECLK_B,
246 FN_SSI_SCK78, FN_CAN_DEBUGOUT13, FN_IRQ0_B, FN_SSI_SCK9_B,
247 FN_HSPI_CLK1_C, FN_SSI_WS78, FN_CAN_DEBUGOUT14, FN_IRQ1_B,
248 FN_SSI_WS9_B, FN_HSPI_CS1_C, FN_SSI_SDATA7, FN_CAN_DEBUGOUT15,
249 FN_IRQ2_B, FN_TCLK1_C, FN_HSPI_TX1_C, FN_SSI_SDATA8,
250 FN_VSP, FN_IRQ3_B, FN_HSPI_RX1_C, FN_SD0_CLK,
251 FN_ATACS01, FN_SCK1_B, FN_SD0_CMD, FN_ATACS11,
252 FN_TX1_B, FN_CC5_TDO, FN_SD0_DAT0, FN_ATADIR1,
253 FN_RX1_B, FN_CC5_TRST, FN_SD0_DAT1, FN_ATAG1,
254 FN_SCK2_B, FN_CC5_TMS, FN_SD0_DAT2, FN_ATARD1,
255 FN_TX2_B, FN_CC5_TCK, FN_SD0_DAT3, FN_ATAWR1,
256 FN_RX2_B, FN_CC5_TDI, FN_SD0_CD, FN_DREQ2,
257 FN_RTS1_B_TANS_B, FN_SD0_WP, FN_DACK2, FN_CTS1_B,
258
259 /* IPSR8 */
260 FN_HSPI_CLK0, FN_CTS0, FN_USB_OVC0, FN_AD_CLK,
261 FN_CC5_STATE4, FN_CC5_STATE12, FN_CC5_STATE20, FN_CC5_STATE28,
262 FN_CC5_STATE36, FN_HSPI_CS0, FN_RTS0_TANS, FN_USB_OVC1,
263 FN_AD_DI, FN_CC5_STATE5, FN_CC5_STATE13, FN_CC5_STATE21,
264 FN_CC5_STATE29, FN_CC5_STATE37, FN_HSPI_TX0, FN_TX0,
265 FN_CAN_DEBUG_HW_TRIGGER, FN_AD_DO, FN_CC5_STATE6, FN_CC5_STATE14,
266 FN_CC5_STATE22, FN_CC5_STATE30, FN_CC5_STATE38, FN_HSPI_RX0,
267 FN_RX0, FN_CAN_STEP0, FN_AD_NCS, FN_CC5_STATE7,
268 FN_CC5_STATE15, FN_CC5_STATE23, FN_CC5_STATE31, FN_CC5_STATE39,
269 FN_FMCLK, FN_RDS_CLK, FN_PCMOE, FN_BPFCLK,
270 FN_PCMWE, FN_FMIN, FN_RDS_DATA, FN_VI0_CLK,
271 FN_MMC1_CLK, FN_VI0_CLKENB, FN_TX1_C, FN_HTX1_B,
272 FN_MT1_SYNC, FN_VI0_FIELD, FN_RX1_C, FN_HRX1_B,
273 FN_VI0_HSYNC, FN_VI0_DATA0_B_VI0_B0_B, FN_CTS1_C, FN_TX4_D,
274 FN_MMC1_CMD, FN_HSCK1_B, FN_VI0_VSYNC, FN_VI0_DATA1_B_VI0_B1_B,
275 FN_RTS1_C_TANS_C, FN_RX4_D, FN_PWMFSW0_C,
276
277 /* IPSR9 */
278 FN_VI0_DATA0_VI0_B0, FN_HRTS1_B, FN_MT1_VCXO, FN_VI0_DATA1_VI0_B1,
279 FN_HCTS1_B, FN_MT1_PWM, FN_VI0_DATA2_VI0_B2, FN_MMC1_D0,
280 FN_VI0_DATA3_VI0_B3, FN_MMC1_D1, FN_VI0_DATA4_VI0_B4, FN_MMC1_D2,
281 FN_VI0_DATA5_VI0_B5, FN_MMC1_D3, FN_VI0_DATA6_VI0_B6, FN_MMC1_D4,
282 FN_ARM_TRACEDATA_0, FN_VI0_DATA7_VI0_B7, FN_MMC1_D5,
283 FN_ARM_TRACEDATA_1, FN_VI0_G0, FN_SSI_SCK78_C, FN_IRQ0,
284 FN_ARM_TRACEDATA_2, FN_VI0_G1, FN_SSI_WS78_C, FN_IRQ1,
285 FN_ARM_TRACEDATA_3, FN_VI0_G2, FN_ETH_TXD1, FN_MMC1_D6,
286 FN_ARM_TRACEDATA_4, FN_TS_SPSYNC0, FN_VI0_G3, FN_ETH_CRS_DV,
287 FN_MMC1_D7, FN_ARM_TRACEDATA_5, FN_TS_SDAT0, FN_VI0_G4,
288 FN_ETH_TX_EN, FN_SD2_DAT0_B, FN_ARM_TRACEDATA_6, FN_VI0_G5,
289 FN_ETH_RX_ER, FN_SD2_DAT1_B, FN_ARM_TRACEDATA_7, FN_VI0_G6,
290 FN_ETH_RXD0, FN_SD2_DAT2_B, FN_ARM_TRACEDATA_8, FN_VI0_G7,
291 FN_ETH_RXD1, FN_SD2_DAT3_B, FN_ARM_TRACEDATA_9,
292
293 /* IPSR10 */
294 FN_VI0_R0, FN_SSI_SDATA7_C, FN_SCK1_C, FN_DREQ1_B,
295 FN_ARM_TRACEDATA_10, FN_DREQ0_C, FN_VI0_R1, FN_SSI_SDATA8_C,
296 FN_DACK1_B, FN_ARM_TRACEDATA_11, FN_DACK0_C, FN_DRACK0_C,
297 FN_VI0_R2, FN_ETH_LINK, FN_SD2_CLK_B, FN_IRQ2,
298 FN_ARM_TRACEDATA_12, FN_VI0_R3, FN_ETH_MAGIC, FN_SD2_CMD_B,
299 FN_IRQ3, FN_ARM_TRACEDATA_13, FN_VI0_R4, FN_ETH_REFCLK,
300 FN_SD2_CD_B, FN_HSPI_CLK1_B, FN_ARM_TRACEDATA_14, FN_MT1_CLK,
301 FN_TS_SCK0, FN_VI0_R5, FN_ETH_TXD0, FN_SD2_WP_B, FN_HSPI_CS1_B,
302 FN_ARM_TRACEDATA_15, FN_MT1_D, FN_TS_SDEN0, FN_VI0_R6,
303 FN_ETH_MDC, FN_DREQ2_C, FN_HSPI_TX1_B, FN_TRACECLK,
304 FN_MT1_BEN, FN_PWMFSW0_D, FN_VI0_R7, FN_ETH_MDIO,
305 FN_DACK2_C, FN_HSPI_RX1_B, FN_SCIF_CLK_D, FN_TRACECTL,
306 FN_MT1_PEN, FN_VI1_CLK, FN_SIM_D, FN_SDA3,
307 FN_VI1_HSYNC, FN_VI3_CLK, FN_SSI_SCK4, FN_GPS_SIGN_C,
308 FN_PWMFSW0_E, FN_VI1_VSYNC, FN_AUDIO_CLKOUT_C, FN_SSI_WS4,
309 FN_SIM_CLK, FN_GPS_MAG_C, FN_SPV_TRST, FN_SCL3,
310
311 /* IPSR11 */
312 FN_VI1_DATA0_VI1_B0, FN_SD2_DAT0, FN_SIM_RST, FN_SPV_TCK,
313 FN_ADICLK_B, FN_VI1_DATA1_VI1_B1, FN_SD2_DAT1, FN_MT0_CLK,
314 FN_SPV_TMS, FN_ADICS_B_SAMP_B, FN_VI1_DATA2_VI1_B2, FN_SD2_DAT2,
315 FN_MT0_D, FN_SPVTDI, FN_ADIDATA_B, FN_VI1_DATA3_VI1_B3,
316 FN_SD2_DAT3, FN_MT0_BEN, FN_SPV_TDO, FN_ADICHS0_B,
317 FN_VI1_DATA4_VI1_B4, FN_SD2_CLK, FN_MT0_PEN, FN_SPA_TRST,
318 FN_HSPI_CLK1_D, FN_ADICHS1_B, FN_VI1_DATA5_VI1_B5, FN_SD2_CMD,
319 FN_MT0_SYNC, FN_SPA_TCK, FN_HSPI_CS1_D, FN_ADICHS2_B,
320 FN_VI1_DATA6_VI1_B6, FN_SD2_CD, FN_MT0_VCXO, FN_SPA_TMS,
321 FN_HSPI_TX1_D, FN_VI1_DATA7_VI1_B7, FN_SD2_WP, FN_MT0_PWM,
322 FN_SPA_TDI, FN_HSPI_RX1_D, FN_VI1_G0, FN_VI3_DATA0,
Laurent Pinchart2a028182013-01-09 22:32:25 +0100323 FN_TS_SCK1, FN_DREQ2_B, FN_TX2,
Laurent Pinchart881023d2012-12-15 23:51:22 +0100324 FN_SPA_TDO, FN_HCTS0_B, FN_VI1_G1, FN_VI3_DATA1,
325 FN_SSI_SCK1, FN_TS_SDEN1, FN_DACK2_B, FN_RX2, FN_HRTS0_B,
326
327 /* IPSR12 */
328 FN_VI1_G2, FN_VI3_DATA2, FN_SSI_WS1, FN_TS_SPSYNC1,
329 FN_SCK2, FN_HSCK0_B, FN_VI1_G3, FN_VI3_DATA3,
330 FN_SSI_SCK2, FN_TS_SDAT1, FN_SCL1_C, FN_HTX0_B,
331 FN_VI1_G4, FN_VI3_DATA4, FN_SSI_WS2, FN_SDA1_C,
332 FN_SIM_RST_B, FN_HRX0_B, FN_VI1_G5, FN_VI3_DATA5,
333 FN_GPS_CLK, FN_FSE, FN_TX4_B, FN_SIM_D_B,
334 FN_VI1_G6, FN_VI3_DATA6, FN_GPS_SIGN, FN_FRB,
335 FN_RX4_B, FN_SIM_CLK_B, FN_VI1_G7, FN_VI3_DATA7,
336 FN_GPS_MAG, FN_FCE, FN_SCK4_B,
337
338 FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, FN_SEL_SCIF5_2, FN_SEL_SCIF5_3,
339 FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, FN_SEL_SCIF4_3,
340 FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2,
341 FN_SEL_SCIF3_3, FN_SEL_SCIF3_4,
342 FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2,
343 FN_SEL_SCIF2_3, FN_SEL_SCIF2_4,
344 FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2,
345 FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, FN_SEL_SCIF0_3,
346 FN_SEL_SSI9_0, FN_SEL_SSI9_1, FN_SEL_SSI9_2,
347 FN_SEL_SSI8_0, FN_SEL_SSI8_1, FN_SEL_SSI8_2,
348 FN_SEL_SSI7_0, FN_SEL_SSI7_1, FN_SEL_SSI7_2,
349 FN_SEL_VI0_0, FN_SEL_VI0_1,
350 FN_SEL_SD2_0, FN_SEL_SD2_1,
351 FN_SEL_INT3_0, FN_SEL_INT3_1,
352 FN_SEL_INT2_0, FN_SEL_INT2_1,
353 FN_SEL_INT1_0, FN_SEL_INT1_1,
354 FN_SEL_INT0_0, FN_SEL_INT0_1,
355 FN_SEL_IE_0, FN_SEL_IE_1,
356 FN_SEL_EXBUS2_0, FN_SEL_EXBUS2_1, FN_SEL_EXBUS2_2,
357 FN_SEL_EXBUS1_0, FN_SEL_EXBUS1_1,
358 FN_SEL_EXBUS0_0, FN_SEL_EXBUS0_1, FN_SEL_EXBUS0_2,
359
360 FN_SEL_TMU1_0, FN_SEL_TMU1_1, FN_SEL_TMU1_2,
361 FN_SEL_TMU0_0, FN_SEL_TMU0_1, FN_SEL_TMU0_2, FN_SEL_TMU0_3,
362 FN_SEL_SCIF_0, FN_SEL_SCIF_1, FN_SEL_SCIF_2, FN_SEL_SCIF_3,
363 FN_SEL_CANCLK_0, FN_SEL_CANCLK_1, FN_SEL_CANCLK_2,
364 FN_SEL_CAN0_0, FN_SEL_CAN0_1,
365 FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
366 FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1,
367 FN_SEL_PWMFSW_0, FN_SEL_PWMFSW_1, FN_SEL_PWMFSW_2,
368 FN_SEL_PWMFSW_3, FN_SEL_PWMFSW_4,
369 FN_SEL_ADI_0, FN_SEL_ADI_1,
370 FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
371 FN_SEL_SIM_0, FN_SEL_SIM_1,
372 FN_SEL_HSPI2_0, FN_SEL_HSPI2_1,
373 FN_SEL_HSPI1_0, FN_SEL_HSPI1_1, FN_SEL_HSPI1_2, FN_SEL_HSPI1_3,
374 FN_SEL_I2C3_0, FN_SEL_I2C3_1,
375 FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
376 FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, FN_SEL_I2C1_3,
377 PINMUX_FUNCTION_END,
378
379 PINMUX_MARK_BEGIN,
380 AVS1_MARK, AVS2_MARK, A17_MARK, A18_MARK,
381 A19_MARK,
382
383 RD_WR_MARK, FWE_MARK, ATAG0_MARK, VI1_R7_MARK,
384 HRTS1_MARK, RX4_C_MARK,
385 CS1_A26_MARK, HSPI_TX2_MARK, SDSELF_B_MARK,
386 CS0_MARK, HSPI_CS2_B_MARK,
387 CLKOUT_MARK, TX3C_IRDA_TX_C_MARK, PWM0_B_MARK,
388 A25_MARK, SD1_WP_MARK, MMC0_D5_MARK, FD5_MARK,
389 HSPI_RX2_MARK, VI1_R3_MARK, TX5_B_MARK, SSI_SDATA7_B_MARK, CTS0_B_MARK,
390 A24_MARK, SD1_CD_MARK, MMC0_D4_MARK, FD4_MARK,
391 HSPI_CS2_MARK, VI1_R2_MARK, SSI_WS78_B_MARK,
392 A23_MARK, FCLE_MARK, HSPI_CLK2_MARK, VI1_R1_MARK,
393 A22_MARK, RX5_D_MARK, HSPI_RX2_B_MARK, VI1_R0_MARK,
394 A21_MARK, SCK5_D_MARK, HSPI_CLK2_B_MARK,
395 A20_MARK, TX5_D_MARK, HSPI_TX2_B_MARK,
396 A0_MARK, SD1_DAT3_MARK, MMC0_D3_MARK, FD3_MARK,
397 BS_MARK, SD1_DAT2_MARK, MMC0_D2_MARK, FD2_MARK,
398 ATADIR0_MARK, SDSELF_MARK, HCTS1_MARK, TX4_C_MARK,
Laurent Pinchart0f6e2e02013-03-07 13:36:36 +0100399 USB_PENC0_MARK, USB_PENC1_MARK, USB_PENC2_MARK,
400 SCK0_MARK, PWM1_MARK, PWMFSW0_MARK,
Laurent Pinchart881023d2012-12-15 23:51:22 +0100401 SCIF_CLK_MARK, TCLK0_C_MARK,
402
403 EX_CS0_MARK, RX3_C_IRDA_RX_C_MARK, MMC0_D6_MARK,
404 FD6_MARK, EX_CS1_MARK, MMC0_D7_MARK, FD7_MARK,
405 EX_CS2_MARK, SD1_CLK_MARK, MMC0_CLK_MARK, FALE_MARK,
406 ATACS00_MARK, EX_CS3_MARK, SD1_CMD_MARK, MMC0_CMD_MARK,
407 FRE_MARK, ATACS10_MARK, VI1_R4_MARK, RX5_B_MARK,
408 HSCK1_MARK, SSI_SDATA8_B_MARK, RTS0_B_TANS_B_MARK, SSI_SDATA9_MARK,
409 EX_CS4_MARK, SD1_DAT0_MARK, MMC0_D0_MARK, FD0_MARK,
410 ATARD0_MARK, VI1_R5_MARK, SCK5_B_MARK, HTX1_MARK,
411 TX2_E_MARK, TX0_B_MARK, SSI_SCK9_MARK, EX_CS5_MARK,
412 SD1_DAT1_MARK, MMC0_D1_MARK, FD1_MARK, ATAWR0_MARK,
413 VI1_R6_MARK, HRX1_MARK, RX2_E_MARK, RX0_B_MARK,
414 SSI_WS9_MARK, MLB_CLK_MARK, PWM2_MARK, SCK4_MARK,
415 MLB_SIG_MARK, PWM3_MARK, TX4_MARK, MLB_DAT_MARK,
416 PWM4_MARK, RX4_MARK, HTX0_MARK, TX1_MARK,
417 SDATA_MARK, CTS0_C_MARK, SUB_TCK_MARK, CC5_STATE2_MARK,
418 CC5_STATE10_MARK, CC5_STATE18_MARK, CC5_STATE26_MARK, CC5_STATE34_MARK,
419
420 HRX0_MARK, RX1_MARK, SCKZ_MARK, RTS0_C_TANS_C_MARK,
421 SUB_TDI_MARK, CC5_STATE3_MARK, CC5_STATE11_MARK, CC5_STATE19_MARK,
422 CC5_STATE27_MARK, CC5_STATE35_MARK, HSCK0_MARK, SCK1_MARK,
423 MTS_MARK, PWM5_MARK, SCK0_C_MARK, SSI_SDATA9_B_MARK,
424 SUB_TDO_MARK, CC5_STATE0_MARK, CC5_STATE8_MARK, CC5_STATE16_MARK,
425 CC5_STATE24_MARK, CC5_STATE32_MARK, HCTS0_MARK, CTS1_MARK,
426 STM_MARK, PWM0_D_MARK, RX0_C_MARK, SCIF_CLK_C_MARK,
427 SUB_TRST_MARK, TCLK1_B_MARK, CC5_OSCOUT_MARK, HRTS0_MARK,
428 RTS1_TANS_MARK, MDATA_MARK, TX0_C_MARK, SUB_TMS_MARK,
429 CC5_STATE1_MARK, CC5_STATE9_MARK, CC5_STATE17_MARK, CC5_STATE25_MARK,
430 CC5_STATE33_MARK, DU0_DR0_MARK, LCDOUT0_MARK, DREQ0_MARK,
431 GPS_CLK_B_MARK, AUDATA0_MARK, TX5_C_MARK, DU0_DR1_MARK,
432 LCDOUT1_MARK, DACK0_MARK, DRACK0_MARK, GPS_SIGN_B_MARK,
433 AUDATA1_MARK, RX5_C_MARK, DU0_DR2_MARK, LCDOUT2_MARK,
434 DU0_DR3_MARK, LCDOUT3_MARK, DU0_DR4_MARK, LCDOUT4_MARK,
435 DU0_DR5_MARK, LCDOUT5_MARK, DU0_DR6_MARK, LCDOUT6_MARK,
436 DU0_DR7_MARK, LCDOUT7_MARK, DU0_DG0_MARK, LCDOUT8_MARK,
437 DREQ1_MARK, SCL2_MARK, AUDATA2_MARK,
438
439 DU0_DG1_MARK, LCDOUT9_MARK, DACK1_MARK, SDA2_MARK,
440 AUDATA3_MARK, DU0_DG2_MARK, LCDOUT10_MARK, DU0_DG3_MARK,
441 LCDOUT11_MARK, DU0_DG4_MARK, LCDOUT12_MARK, DU0_DG5_MARK,
442 LCDOUT13_MARK, DU0_DG6_MARK, LCDOUT14_MARK, DU0_DG7_MARK,
443 LCDOUT15_MARK, DU0_DB0_MARK, LCDOUT16_MARK, EX_WAIT1_MARK,
444 SCL1_MARK, TCLK1_MARK, AUDATA4_MARK, DU0_DB1_MARK,
445 LCDOUT17_MARK, EX_WAIT2_MARK, SDA1_MARK, GPS_MAG_B_MARK,
446 AUDATA5_MARK, SCK5_C_MARK, DU0_DB2_MARK, LCDOUT18_MARK,
447 DU0_DB3_MARK, LCDOUT19_MARK, DU0_DB4_MARK, LCDOUT20_MARK,
448 DU0_DB5_MARK, LCDOUT21_MARK, DU0_DB6_MARK, LCDOUT22_MARK,
449 DU0_DB7_MARK, LCDOUT23_MARK, DU0_DOTCLKIN_MARK, QSTVA_QVS_MARK,
450 TX3_D_IRDA_TX_D_MARK, SCL3_B_MARK, DU0_DOTCLKOUT0_MARK, QCLK_MARK,
451 DU0_DOTCLKOUT1_MARK, QSTVB_QVE_MARK, RX3_D_IRDA_RX_D_MARK, SDA3_B_MARK,
452 SDA2_C_MARK, DACK0_B_MARK, DRACK0_B_MARK, DU0_EXHSYNC_DU0_HSYNC_MARK,
453 QSTH_QHS_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK, QSTB_QHE_MARK,
454 DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK, QCPV_QDE_MARK, CAN1_TX_MARK,
455 TX2_C_MARK, SCL2_C_MARK, REMOCON_MARK,
456
457 DU0_DISP_MARK, QPOLA_MARK, CAN_CLK_C_MARK, SCK2_C_MARK,
458 DU0_CDE_MARK, QPOLB_MARK, CAN1_RX_MARK, RX2_C_MARK,
459 DREQ0_B_MARK, SSI_SCK78_B_MARK, SCK0_B_MARK, DU1_DR0_MARK,
460 VI2_DATA0_VI2_B0_MARK, PWM6_MARK, SD3_CLK_MARK, TX3_E_IRDA_TX_E_MARK,
461 AUDCK_MARK, PWMFSW0_B_MARK, DU1_DR1_MARK, VI2_DATA1_VI2_B1_MARK,
462 PWM0_MARK, SD3_CMD_MARK, RX3_E_IRDA_RX_E_MARK, AUDSYNC_MARK,
463 CTS0_D_MARK, DU1_DR2_MARK, VI2_G0_MARK, DU1_DR3_MARK,
464 VI2_G1_MARK, DU1_DR4_MARK, VI2_G2_MARK, DU1_DR5_MARK,
465 VI2_G3_MARK, DU1_DR6_MARK, VI2_G4_MARK, DU1_DR7_MARK,
466 VI2_G5_MARK, DU1_DG0_MARK, VI2_DATA2_VI2_B2_MARK, SCL1_B_MARK,
467 SD3_DAT2_MARK, SCK3_E_MARK, AUDATA6_MARK, TX0_D_MARK,
468 DU1_DG1_MARK, VI2_DATA3_VI2_B3_MARK, SDA1_B_MARK, SD3_DAT3_MARK,
469 SCK5_MARK, AUDATA7_MARK, RX0_D_MARK, DU1_DG2_MARK,
470 VI2_G6_MARK, DU1_DG3_MARK, VI2_G7_MARK, DU1_DG4_MARK,
471 VI2_R0_MARK, DU1_DG5_MARK, VI2_R1_MARK, DU1_DG6_MARK,
472 VI2_R2_MARK, DU1_DG7_MARK, VI2_R3_MARK, DU1_DB0_MARK,
473 VI2_DATA4_VI2_B4_MARK, SCL2_B_MARK, SD3_DAT0_MARK, TX5_MARK,
474 SCK0_D_MARK,
475
476 DU1_DB1_MARK, VI2_DATA5_VI2_B5_MARK, SDA2_B_MARK, SD3_DAT1_MARK,
477 RX5_MARK, RTS0_D_TANS_D_MARK, DU1_DB2_MARK, VI2_R4_MARK,
478 DU1_DB3_MARK, VI2_R5_MARK, DU1_DB4_MARK, VI2_R6_MARK,
479 DU1_DB5_MARK, VI2_R7_MARK, DU1_DB6_MARK, SCL2_D_MARK,
480 DU1_DB7_MARK, SDA2_D_MARK, DU1_DOTCLKIN_MARK, VI2_CLKENB_MARK,
481 HSPI_CS1_MARK, SCL1_D_MARK, DU1_DOTCLKOUT_MARK, VI2_FIELD_MARK,
482 SDA1_D_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK, VI2_HSYNC_MARK,
483 VI3_HSYNC_MARK, DU1_EXVSYNC_DU1_VSYNC_MARK, VI2_VSYNC_MARK,
484 VI3_VSYNC_MARK, DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK, VI2_CLK_MARK,
485 TX3_B_IRDA_TX_B_MARK, SD3_CD_MARK, HSPI_TX1_MARK, VI1_CLKENB_MARK,
486 VI3_CLKENB_MARK, AUDIO_CLKC_MARK, TX2_D_MARK, SPEEDIN_MARK,
487 GPS_SIGN_D_MARK, DU1_DISP_MARK, VI2_DATA6_VI2_B6_MARK, TCLK0_MARK,
488 QSTVA_B_QVS_B_MARK, HSPI_CLK1_MARK, SCK2_D_MARK, AUDIO_CLKOUT_B_MARK,
489 GPS_MAG_D_MARK, DU1_CDE_MARK, VI2_DATA7_VI2_B7_MARK,
490 RX3_B_IRDA_RX_B_MARK, SD3_WP_MARK, HSPI_RX1_MARK, VI1_FIELD_MARK,
491 VI3_FIELD_MARK, AUDIO_CLKOUT_MARK, RX2_D_MARK, GPS_CLK_C_MARK,
492 GPS_CLK_D_MARK, AUDIO_CLKA_MARK, CAN_TXCLK_MARK, AUDIO_CLKB_MARK,
493 USB_OVC2_MARK, CAN_DEBUGOUT0_MARK, MOUT0_MARK,
494
495 SSI_SCK0129_MARK, CAN_DEBUGOUT1_MARK, MOUT1_MARK, SSI_WS0129_MARK,
496 CAN_DEBUGOUT2_MARK, MOUT2_MARK, SSI_SDATA0_MARK, CAN_DEBUGOUT3_MARK,
497 MOUT5_MARK, SSI_SDATA1_MARK, CAN_DEBUGOUT4_MARK, MOUT6_MARK,
498 SSI_SDATA2_MARK, CAN_DEBUGOUT5_MARK, SSI_SCK34_MARK,
499 CAN_DEBUGOUT6_MARK, CAN0_TX_B_MARK, IERX_MARK, SSI_SCK9_C_MARK,
500 SSI_WS34_MARK, CAN_DEBUGOUT7_MARK, CAN0_RX_B_MARK, IETX_MARK,
501 SSI_WS9_C_MARK, SSI_SDATA3_MARK, PWM0_C_MARK, CAN_DEBUGOUT8_MARK,
502 CAN_CLK_B_MARK, IECLK_MARK, SCIF_CLK_B_MARK, TCLK0_B_MARK,
503 SSI_SDATA4_MARK, CAN_DEBUGOUT9_MARK, SSI_SDATA9_C_MARK, SSI_SCK5_MARK,
504 ADICLK_MARK, CAN_DEBUGOUT10_MARK, SCK3_MARK, TCLK0_D_MARK,
505 SSI_WS5_MARK, ADICS_SAMP_MARK, CAN_DEBUGOUT11_MARK, TX3_IRDA_TX_MARK,
506 SSI_SDATA5_MARK, ADIDATA_MARK, CAN_DEBUGOUT12_MARK, RX3_IRDA_RX_MARK,
507 SSI_SCK6_MARK, ADICHS0_MARK, CAN0_TX_MARK, IERX_B_MARK,
508
509 SSI_WS6_MARK, ADICHS1_MARK, CAN0_RX_MARK, IETX_B_MARK,
510 SSI_SDATA6_MARK, ADICHS2_MARK, CAN_CLK_MARK, IECLK_B_MARK,
511 SSI_SCK78_MARK, CAN_DEBUGOUT13_MARK, IRQ0_B_MARK, SSI_SCK9_B_MARK,
512 HSPI_CLK1_C_MARK, SSI_WS78_MARK, CAN_DEBUGOUT14_MARK, IRQ1_B_MARK,
513 SSI_WS9_B_MARK, HSPI_CS1_C_MARK, SSI_SDATA7_MARK, CAN_DEBUGOUT15_MARK,
514 IRQ2_B_MARK, TCLK1_C_MARK, HSPI_TX1_C_MARK, SSI_SDATA8_MARK,
515 VSP_MARK, IRQ3_B_MARK, HSPI_RX1_C_MARK, SD0_CLK_MARK,
516 ATACS01_MARK, SCK1_B_MARK, SD0_CMD_MARK, ATACS11_MARK,
517 TX1_B_MARK, CC5_TDO_MARK, SD0_DAT0_MARK, ATADIR1_MARK,
518 RX1_B_MARK, CC5_TRST_MARK, SD0_DAT1_MARK, ATAG1_MARK,
519 SCK2_B_MARK, CC5_TMS_MARK, SD0_DAT2_MARK, ATARD1_MARK,
520 TX2_B_MARK, CC5_TCK_MARK, SD0_DAT3_MARK, ATAWR1_MARK,
521 RX2_B_MARK, CC5_TDI_MARK, SD0_CD_MARK, DREQ2_MARK,
522 RTS1_B_TANS_B_MARK, SD0_WP_MARK, DACK2_MARK, CTS1_B_MARK,
523
524 HSPI_CLK0_MARK, CTS0_MARK, USB_OVC0_MARK, AD_CLK_MARK,
525 CC5_STATE4_MARK, CC5_STATE12_MARK, CC5_STATE20_MARK, CC5_STATE28_MARK,
526 CC5_STATE36_MARK, HSPI_CS0_MARK, RTS0_TANS_MARK, USB_OVC1_MARK,
527 AD_DI_MARK, CC5_STATE5_MARK, CC5_STATE13_MARK, CC5_STATE21_MARK,
528 CC5_STATE29_MARK, CC5_STATE37_MARK, HSPI_TX0_MARK, TX0_MARK,
529 CAN_DEBUG_HW_TRIGGER_MARK, AD_DO_MARK, CC5_STATE6_MARK,
530 CC5_STATE14_MARK, CC5_STATE22_MARK, CC5_STATE30_MARK,
531 CC5_STATE38_MARK, HSPI_RX0_MARK, RX0_MARK, CAN_STEP0_MARK,
532 AD_NCS_MARK, CC5_STATE7_MARK, CC5_STATE15_MARK, CC5_STATE23_MARK,
533 CC5_STATE31_MARK, CC5_STATE39_MARK, FMCLK_MARK, RDS_CLK_MARK,
534 PCMOE_MARK, BPFCLK_MARK, PCMWE_MARK, FMIN_MARK, RDS_DATA_MARK,
535 VI0_CLK_MARK, MMC1_CLK_MARK, VI0_CLKENB_MARK, TX1_C_MARK, HTX1_B_MARK,
536 MT1_SYNC_MARK, VI0_FIELD_MARK, RX1_C_MARK, HRX1_B_MARK,
537 VI0_HSYNC_MARK, VI0_DATA0_B_VI0_B0_B_MARK, CTS1_C_MARK, TX4_D_MARK,
538 MMC1_CMD_MARK, HSCK1_B_MARK, VI0_VSYNC_MARK, VI0_DATA1_B_VI0_B1_B_MARK,
539 RTS1_C_TANS_C_MARK, RX4_D_MARK, PWMFSW0_C_MARK,
540
541 VI0_DATA0_VI0_B0_MARK, HRTS1_B_MARK, MT1_VCXO_MARK,
542 VI0_DATA1_VI0_B1_MARK, HCTS1_B_MARK, MT1_PWM_MARK,
543 VI0_DATA2_VI0_B2_MARK, MMC1_D0_MARK, VI0_DATA3_VI0_B3_MARK,
544 MMC1_D1_MARK, VI0_DATA4_VI0_B4_MARK, MMC1_D2_MARK,
545 VI0_DATA5_VI0_B5_MARK, MMC1_D3_MARK, VI0_DATA6_VI0_B6_MARK,
546 MMC1_D4_MARK, ARM_TRACEDATA_0_MARK, VI0_DATA7_VI0_B7_MARK,
547 MMC1_D5_MARK, ARM_TRACEDATA_1_MARK, VI0_G0_MARK, SSI_SCK78_C_MARK,
548 IRQ0_MARK, ARM_TRACEDATA_2_MARK, VI0_G1_MARK, SSI_WS78_C_MARK,
549 IRQ1_MARK, ARM_TRACEDATA_3_MARK, VI0_G2_MARK, ETH_TXD1_MARK,
550 MMC1_D6_MARK, ARM_TRACEDATA_4_MARK, TS_SPSYNC0_MARK, VI0_G3_MARK,
551 ETH_CRS_DV_MARK, MMC1_D7_MARK, ARM_TRACEDATA_5_MARK, TS_SDAT0_MARK,
552 VI0_G4_MARK, ETH_TX_EN_MARK, SD2_DAT0_B_MARK, ARM_TRACEDATA_6_MARK,
553 VI0_G5_MARK, ETH_RX_ER_MARK, SD2_DAT1_B_MARK, ARM_TRACEDATA_7_MARK,
554 VI0_G6_MARK, ETH_RXD0_MARK, SD2_DAT2_B_MARK, ARM_TRACEDATA_8_MARK,
555 VI0_G7_MARK, ETH_RXD1_MARK, SD2_DAT3_B_MARK, ARM_TRACEDATA_9_MARK,
556
557 VI0_R0_MARK, SSI_SDATA7_C_MARK, SCK1_C_MARK, DREQ1_B_MARK,
558 ARM_TRACEDATA_10_MARK, DREQ0_C_MARK, VI0_R1_MARK, SSI_SDATA8_C_MARK,
559 DACK1_B_MARK, ARM_TRACEDATA_11_MARK, DACK0_C_MARK, DRACK0_C_MARK,
560 VI0_R2_MARK, ETH_LINK_MARK, SD2_CLK_B_MARK, IRQ2_MARK,
561 ARM_TRACEDATA_12_MARK, VI0_R3_MARK, ETH_MAGIC_MARK, SD2_CMD_B_MARK,
562 IRQ3_MARK, ARM_TRACEDATA_13_MARK, VI0_R4_MARK, ETH_REFCLK_MARK,
563 SD2_CD_B_MARK, HSPI_CLK1_B_MARK, ARM_TRACEDATA_14_MARK, MT1_CLK_MARK,
564 TS_SCK0_MARK, VI0_R5_MARK, ETH_TXD0_MARK, SD2_WP_B_MARK,
565 HSPI_CS1_B_MARK, ARM_TRACEDATA_15_MARK, MT1_D_MARK, TS_SDEN0_MARK,
566 VI0_R6_MARK, ETH_MDC_MARK, DREQ2_C_MARK, HSPI_TX1_B_MARK,
567 TRACECLK_MARK, MT1_BEN_MARK, PWMFSW0_D_MARK, VI0_R7_MARK,
568 ETH_MDIO_MARK, DACK2_C_MARK, HSPI_RX1_B_MARK, SCIF_CLK_D_MARK,
569 TRACECTL_MARK, MT1_PEN_MARK, VI1_CLK_MARK, SIM_D_MARK, SDA3_MARK,
570 VI1_HSYNC_MARK, VI3_CLK_MARK, SSI_SCK4_MARK, GPS_SIGN_C_MARK,
571 PWMFSW0_E_MARK, VI1_VSYNC_MARK, AUDIO_CLKOUT_C_MARK, SSI_WS4_MARK,
572 SIM_CLK_MARK, GPS_MAG_C_MARK, SPV_TRST_MARK, SCL3_MARK,
573
574 VI1_DATA0_VI1_B0_MARK, SD2_DAT0_MARK, SIM_RST_MARK, SPV_TCK_MARK,
575 ADICLK_B_MARK, VI1_DATA1_VI1_B1_MARK, SD2_DAT1_MARK, MT0_CLK_MARK,
576 SPV_TMS_MARK, ADICS_B_SAMP_B_MARK, VI1_DATA2_VI1_B2_MARK,
577 SD2_DAT2_MARK, MT0_D_MARK, SPVTDI_MARK, ADIDATA_B_MARK,
578 VI1_DATA3_VI1_B3_MARK, SD2_DAT3_MARK, MT0_BEN_MARK, SPV_TDO_MARK,
579 ADICHS0_B_MARK, VI1_DATA4_VI1_B4_MARK, SD2_CLK_MARK, MT0_PEN_MARK,
580 SPA_TRST_MARK, HSPI_CLK1_D_MARK, ADICHS1_B_MARK,
581 VI1_DATA5_VI1_B5_MARK, SD2_CMD_MARK, MT0_SYNC_MARK, SPA_TCK_MARK,
582 HSPI_CS1_D_MARK, ADICHS2_B_MARK, VI1_DATA6_VI1_B6_MARK, SD2_CD_MARK,
583 MT0_VCXO_MARK, SPA_TMS_MARK, HSPI_TX1_D_MARK, VI1_DATA7_VI1_B7_MARK,
584 SD2_WP_MARK, MT0_PWM_MARK, SPA_TDI_MARK, HSPI_RX1_D_MARK,
Laurent Pinchart2a028182013-01-09 22:32:25 +0100585 VI1_G0_MARK, VI3_DATA0_MARK, TS_SCK1_MARK,
Laurent Pinchart881023d2012-12-15 23:51:22 +0100586 DREQ2_B_MARK, TX2_MARK, SPA_TDO_MARK, HCTS0_B_MARK,
587 VI1_G1_MARK, VI3_DATA1_MARK, SSI_SCK1_MARK, TS_SDEN1_MARK,
588 DACK2_B_MARK, RX2_MARK, HRTS0_B_MARK,
589
590 VI1_G2_MARK, VI3_DATA2_MARK, SSI_WS1_MARK, TS_SPSYNC1_MARK,
591 SCK2_MARK, HSCK0_B_MARK, VI1_G3_MARK, VI3_DATA3_MARK,
592 SSI_SCK2_MARK, TS_SDAT1_MARK, SCL1_C_MARK, HTX0_B_MARK,
593 VI1_G4_MARK, VI3_DATA4_MARK, SSI_WS2_MARK, SDA1_C_MARK,
594 SIM_RST_B_MARK, HRX0_B_MARK, VI1_G5_MARK, VI3_DATA5_MARK,
595 GPS_CLK_MARK, FSE_MARK, TX4_B_MARK, SIM_D_B_MARK,
596 VI1_G6_MARK, VI3_DATA6_MARK, GPS_SIGN_MARK, FRB_MARK,
597 RX4_B_MARK, SIM_CLK_B_MARK, VI1_G7_MARK, VI3_DATA7_MARK,
598 GPS_MAG_MARK, FCE_MARK, SCK4_B_MARK,
599 PINMUX_MARK_END,
600};
601
Laurent Pinchart533743d2013-07-15 13:03:20 +0200602static const u16 pinmux_data[] = {
Laurent Pinchart881023d2012-12-15 23:51:22 +0100603 PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
604
Geert Uytterhoevenab2d12c2015-11-25 11:25:35 +0100605 PINMUX_SINGLE(AVS1),
606 PINMUX_SINGLE(AVS1),
607 PINMUX_SINGLE(A17),
608 PINMUX_SINGLE(A18),
609 PINMUX_SINGLE(A19),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100610
Geert Uytterhoevenab2d12c2015-11-25 11:25:35 +0100611 PINMUX_SINGLE(USB_PENC0),
612 PINMUX_SINGLE(USB_PENC1),
Laurent Pinchart0f6e2e02013-03-07 13:36:36 +0100613
Laurent Pinchart881023d2012-12-15 23:51:22 +0100614 PINMUX_IPSR_DATA(IP0_2_0, USB_PENC2),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000615 PINMUX_IPSR_MSEL(IP0_2_0, SCK0, SEL_SCIF0_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100616 PINMUX_IPSR_DATA(IP0_2_0, PWM1),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000617 PINMUX_IPSR_MSEL(IP0_2_0, PWMFSW0, SEL_PWMFSW_0),
618 PINMUX_IPSR_MSEL(IP0_2_0, SCIF_CLK, SEL_SCIF_0),
619 PINMUX_IPSR_MSEL(IP0_2_0, TCLK0_C, SEL_TMU0_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100620 PINMUX_IPSR_DATA(IP0_5_3, BS),
621 PINMUX_IPSR_DATA(IP0_5_3, SD1_DAT2),
622 PINMUX_IPSR_DATA(IP0_5_3, MMC0_D2),
623 PINMUX_IPSR_DATA(IP0_5_3, FD2),
624 PINMUX_IPSR_DATA(IP0_5_3, ATADIR0),
625 PINMUX_IPSR_DATA(IP0_5_3, SDSELF),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000626 PINMUX_IPSR_MSEL(IP0_5_3, HCTS1, SEL_HSCIF1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100627 PINMUX_IPSR_DATA(IP0_5_3, TX4_C),
628 PINMUX_IPSR_DATA(IP0_7_6, A0),
629 PINMUX_IPSR_DATA(IP0_7_6, SD1_DAT3),
630 PINMUX_IPSR_DATA(IP0_7_6, MMC0_D3),
631 PINMUX_IPSR_DATA(IP0_7_6, FD3),
632 PINMUX_IPSR_DATA(IP0_9_8, A20),
633 PINMUX_IPSR_DATA(IP0_9_8, TX5_D),
634 PINMUX_IPSR_DATA(IP0_9_8, HSPI_TX2_B),
635 PINMUX_IPSR_DATA(IP0_11_10, A21),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000636 PINMUX_IPSR_MSEL(IP0_11_10, SCK5_D, SEL_SCIF5_3),
637 PINMUX_IPSR_MSEL(IP0_11_10, HSPI_CLK2_B, SEL_HSPI2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100638 PINMUX_IPSR_DATA(IP0_13_12, A22),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000639 PINMUX_IPSR_MSEL(IP0_13_12, RX5_D, SEL_SCIF5_3),
640 PINMUX_IPSR_MSEL(IP0_13_12, HSPI_RX2_B, SEL_HSPI2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100641 PINMUX_IPSR_DATA(IP0_13_12, VI1_R0),
642 PINMUX_IPSR_DATA(IP0_15_14, A23),
643 PINMUX_IPSR_DATA(IP0_15_14, FCLE),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000644 PINMUX_IPSR_MSEL(IP0_15_14, HSPI_CLK2, SEL_HSPI2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100645 PINMUX_IPSR_DATA(IP0_15_14, VI1_R1),
646 PINMUX_IPSR_DATA(IP0_18_16, A24),
647 PINMUX_IPSR_DATA(IP0_18_16, SD1_CD),
648 PINMUX_IPSR_DATA(IP0_18_16, MMC0_D4),
649 PINMUX_IPSR_DATA(IP0_18_16, FD4),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000650 PINMUX_IPSR_MSEL(IP0_18_16, HSPI_CS2, SEL_HSPI2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100651 PINMUX_IPSR_DATA(IP0_18_16, VI1_R2),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000652 PINMUX_IPSR_MSEL(IP0_18_16, SSI_WS78_B, SEL_SSI7_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100653 PINMUX_IPSR_DATA(IP0_22_19, A25),
654 PINMUX_IPSR_DATA(IP0_22_19, SD1_WP),
655 PINMUX_IPSR_DATA(IP0_22_19, MMC0_D5),
656 PINMUX_IPSR_DATA(IP0_22_19, FD5),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000657 PINMUX_IPSR_MSEL(IP0_22_19, HSPI_RX2, SEL_HSPI2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100658 PINMUX_IPSR_DATA(IP0_22_19, VI1_R3),
659 PINMUX_IPSR_DATA(IP0_22_19, TX5_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000660 PINMUX_IPSR_MSEL(IP0_22_19, SSI_SDATA7_B, SEL_SSI7_1),
661 PINMUX_IPSR_MSEL(IP0_22_19, CTS0_B, SEL_SCIF0_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100662 PINMUX_IPSR_DATA(IP0_24_23, CLKOUT),
663 PINMUX_IPSR_DATA(IP0_24_23, TX3C_IRDA_TX_C),
664 PINMUX_IPSR_DATA(IP0_24_23, PWM0_B),
665 PINMUX_IPSR_DATA(IP0_25, CS0),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000666 PINMUX_IPSR_MSEL(IP0_25, HSPI_CS2_B, SEL_HSPI2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100667 PINMUX_IPSR_DATA(IP0_27_26, CS1_A26),
668 PINMUX_IPSR_DATA(IP0_27_26, HSPI_TX2),
669 PINMUX_IPSR_DATA(IP0_27_26, SDSELF_B),
670 PINMUX_IPSR_DATA(IP0_30_28, RD_WR),
671 PINMUX_IPSR_DATA(IP0_30_28, FWE),
672 PINMUX_IPSR_DATA(IP0_30_28, ATAG0),
673 PINMUX_IPSR_DATA(IP0_30_28, VI1_R7),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000674 PINMUX_IPSR_MSEL(IP0_30_28, HRTS1, SEL_HSCIF1_0),
675 PINMUX_IPSR_MSEL(IP0_30_28, RX4_C, SEL_SCIF4_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100676
677 PINMUX_IPSR_DATA(IP1_1_0, EX_CS0),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000678 PINMUX_IPSR_MSEL(IP1_1_0, RX3_C_IRDA_RX_C, SEL_SCIF3_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100679 PINMUX_IPSR_DATA(IP1_1_0, MMC0_D6),
680 PINMUX_IPSR_DATA(IP1_1_0, FD6),
681 PINMUX_IPSR_DATA(IP1_3_2, EX_CS1),
682 PINMUX_IPSR_DATA(IP1_3_2, MMC0_D7),
683 PINMUX_IPSR_DATA(IP1_3_2, FD7),
684 PINMUX_IPSR_DATA(IP1_6_4, EX_CS2),
685 PINMUX_IPSR_DATA(IP1_6_4, SD1_CLK),
686 PINMUX_IPSR_DATA(IP1_6_4, MMC0_CLK),
687 PINMUX_IPSR_DATA(IP1_6_4, FALE),
688 PINMUX_IPSR_DATA(IP1_6_4, ATACS00),
689 PINMUX_IPSR_DATA(IP1_10_7, EX_CS3),
690 PINMUX_IPSR_DATA(IP1_10_7, SD1_CMD),
691 PINMUX_IPSR_DATA(IP1_10_7, MMC0_CMD),
692 PINMUX_IPSR_DATA(IP1_10_7, FRE),
693 PINMUX_IPSR_DATA(IP1_10_7, ATACS10),
694 PINMUX_IPSR_DATA(IP1_10_7, VI1_R4),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000695 PINMUX_IPSR_MSEL(IP1_10_7, RX5_B, SEL_SCIF5_1),
696 PINMUX_IPSR_MSEL(IP1_10_7, HSCK1, SEL_HSCIF1_0),
697 PINMUX_IPSR_MSEL(IP1_10_7, SSI_SDATA8_B, SEL_SSI8_1),
698 PINMUX_IPSR_MSEL(IP1_10_7, RTS0_B_TANS_B, SEL_SCIF0_1),
699 PINMUX_IPSR_MSEL(IP1_10_7, SSI_SDATA9, SEL_SSI9_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100700 PINMUX_IPSR_DATA(IP1_14_11, EX_CS4),
701 PINMUX_IPSR_DATA(IP1_14_11, SD1_DAT0),
702 PINMUX_IPSR_DATA(IP1_14_11, MMC0_D0),
703 PINMUX_IPSR_DATA(IP1_14_11, FD0),
704 PINMUX_IPSR_DATA(IP1_14_11, ATARD0),
705 PINMUX_IPSR_DATA(IP1_14_11, VI1_R5),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000706 PINMUX_IPSR_MSEL(IP1_14_11, SCK5_B, SEL_SCIF5_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100707 PINMUX_IPSR_DATA(IP1_14_11, HTX1),
708 PINMUX_IPSR_DATA(IP1_14_11, TX2_E),
709 PINMUX_IPSR_DATA(IP1_14_11, TX0_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000710 PINMUX_IPSR_MSEL(IP1_14_11, SSI_SCK9, SEL_SSI9_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100711 PINMUX_IPSR_DATA(IP1_18_15, EX_CS5),
712 PINMUX_IPSR_DATA(IP1_18_15, SD1_DAT1),
713 PINMUX_IPSR_DATA(IP1_18_15, MMC0_D1),
714 PINMUX_IPSR_DATA(IP1_18_15, FD1),
715 PINMUX_IPSR_DATA(IP1_18_15, ATAWR0),
716 PINMUX_IPSR_DATA(IP1_18_15, VI1_R6),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000717 PINMUX_IPSR_MSEL(IP1_18_15, HRX1, SEL_HSCIF1_0),
718 PINMUX_IPSR_MSEL(IP1_18_15, RX2_E, SEL_SCIF2_4),
719 PINMUX_IPSR_MSEL(IP1_18_15, RX0_B, SEL_SCIF0_1),
720 PINMUX_IPSR_MSEL(IP1_18_15, SSI_WS9, SEL_SSI9_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100721 PINMUX_IPSR_DATA(IP1_20_19, MLB_CLK),
722 PINMUX_IPSR_DATA(IP1_20_19, PWM2),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000723 PINMUX_IPSR_MSEL(IP1_20_19, SCK4, SEL_SCIF4_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100724 PINMUX_IPSR_DATA(IP1_22_21, MLB_SIG),
725 PINMUX_IPSR_DATA(IP1_22_21, PWM3),
726 PINMUX_IPSR_DATA(IP1_22_21, TX4),
727 PINMUX_IPSR_DATA(IP1_24_23, MLB_DAT),
728 PINMUX_IPSR_DATA(IP1_24_23, PWM4),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000729 PINMUX_IPSR_MSEL(IP1_24_23, RX4, SEL_SCIF4_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100730 PINMUX_IPSR_DATA(IP1_28_25, HTX0),
731 PINMUX_IPSR_DATA(IP1_28_25, TX1),
732 PINMUX_IPSR_DATA(IP1_28_25, SDATA),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000733 PINMUX_IPSR_MSEL(IP1_28_25, CTS0_C, SEL_SCIF0_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100734 PINMUX_IPSR_DATA(IP1_28_25, SUB_TCK),
735 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE2),
736 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE10),
737 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE18),
738 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE26),
739 PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE34),
740
Kuninori Morimoto75915142015-09-03 02:50:58 +0000741 PINMUX_IPSR_MSEL(IP2_3_0, HRX0, SEL_HSCIF0_0),
742 PINMUX_IPSR_MSEL(IP2_3_0, RX1, SEL_SCIF1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100743 PINMUX_IPSR_DATA(IP2_3_0, SCKZ),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000744 PINMUX_IPSR_MSEL(IP2_3_0, RTS0_C_TANS_C, SEL_SCIF0_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100745 PINMUX_IPSR_DATA(IP2_3_0, SUB_TDI),
746 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE3),
747 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE11),
748 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE19),
749 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE27),
750 PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE35),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000751 PINMUX_IPSR_MSEL(IP2_7_4, HSCK0, SEL_HSCIF0_0),
752 PINMUX_IPSR_MSEL(IP2_7_4, SCK1, SEL_SCIF1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100753 PINMUX_IPSR_DATA(IP2_7_4, MTS),
754 PINMUX_IPSR_DATA(IP2_7_4, PWM5),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000755 PINMUX_IPSR_MSEL(IP2_7_4, SCK0_C, SEL_SCIF0_2),
756 PINMUX_IPSR_MSEL(IP2_7_4, SSI_SDATA9_B, SEL_SSI9_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100757 PINMUX_IPSR_DATA(IP2_7_4, SUB_TDO),
758 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE0),
759 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE8),
760 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE16),
761 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE24),
762 PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE32),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000763 PINMUX_IPSR_MSEL(IP2_11_8, HCTS0, SEL_HSCIF0_0),
764 PINMUX_IPSR_MSEL(IP2_11_8, CTS1, SEL_SCIF1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100765 PINMUX_IPSR_DATA(IP2_11_8, STM),
766 PINMUX_IPSR_DATA(IP2_11_8, PWM0_D),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000767 PINMUX_IPSR_MSEL(IP2_11_8, RX0_C, SEL_SCIF0_2),
768 PINMUX_IPSR_MSEL(IP2_11_8, SCIF_CLK_C, SEL_SCIF_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100769 PINMUX_IPSR_DATA(IP2_11_8, SUB_TRST),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000770 PINMUX_IPSR_MSEL(IP2_11_8, TCLK1_B, SEL_TMU1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100771 PINMUX_IPSR_DATA(IP2_11_8, CC5_OSCOUT),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000772 PINMUX_IPSR_MSEL(IP2_15_12, HRTS0, SEL_HSCIF0_0),
773 PINMUX_IPSR_MSEL(IP2_15_12, RTS1_TANS, SEL_SCIF1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100774 PINMUX_IPSR_DATA(IP2_15_12, MDATA),
775 PINMUX_IPSR_DATA(IP2_15_12, TX0_C),
776 PINMUX_IPSR_DATA(IP2_15_12, SUB_TMS),
777 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE1),
778 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE9),
779 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE17),
780 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE25),
781 PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE33),
782 PINMUX_IPSR_DATA(IP2_18_16, DU0_DR0),
783 PINMUX_IPSR_DATA(IP2_18_16, LCDOUT0),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000784 PINMUX_IPSR_MSEL(IP2_18_16, DREQ0, SEL_EXBUS0_0),
785 PINMUX_IPSR_MSEL(IP2_18_16, GPS_CLK_B, SEL_GPS_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100786 PINMUX_IPSR_DATA(IP2_18_16, AUDATA0),
787 PINMUX_IPSR_DATA(IP2_18_16, TX5_C),
788 PINMUX_IPSR_DATA(IP2_21_19, DU0_DR1),
789 PINMUX_IPSR_DATA(IP2_21_19, LCDOUT1),
790 PINMUX_IPSR_DATA(IP2_21_19, DACK0),
791 PINMUX_IPSR_DATA(IP2_21_19, DRACK0),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000792 PINMUX_IPSR_MSEL(IP2_21_19, GPS_SIGN_B, SEL_GPS_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100793 PINMUX_IPSR_DATA(IP2_21_19, AUDATA1),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000794 PINMUX_IPSR_MSEL(IP2_21_19, RX5_C, SEL_SCIF5_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100795 PINMUX_IPSR_DATA(IP2_22, DU0_DR2),
796 PINMUX_IPSR_DATA(IP2_22, LCDOUT2),
797 PINMUX_IPSR_DATA(IP2_23, DU0_DR3),
798 PINMUX_IPSR_DATA(IP2_23, LCDOUT3),
799 PINMUX_IPSR_DATA(IP2_24, DU0_DR4),
800 PINMUX_IPSR_DATA(IP2_24, LCDOUT4),
801 PINMUX_IPSR_DATA(IP2_25, DU0_DR5),
802 PINMUX_IPSR_DATA(IP2_25, LCDOUT5),
803 PINMUX_IPSR_DATA(IP2_26, DU0_DR6),
804 PINMUX_IPSR_DATA(IP2_26, LCDOUT6),
805 PINMUX_IPSR_DATA(IP2_27, DU0_DR7),
806 PINMUX_IPSR_DATA(IP2_27, LCDOUT7),
807 PINMUX_IPSR_DATA(IP2_30_28, DU0_DG0),
808 PINMUX_IPSR_DATA(IP2_30_28, LCDOUT8),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000809 PINMUX_IPSR_MSEL(IP2_30_28, DREQ1, SEL_EXBUS1_0),
810 PINMUX_IPSR_MSEL(IP2_30_28, SCL2, SEL_I2C2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100811 PINMUX_IPSR_DATA(IP2_30_28, AUDATA2),
812
813 PINMUX_IPSR_DATA(IP3_2_0, DU0_DG1),
814 PINMUX_IPSR_DATA(IP3_2_0, LCDOUT9),
815 PINMUX_IPSR_DATA(IP3_2_0, DACK1),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000816 PINMUX_IPSR_MSEL(IP3_2_0, SDA2, SEL_I2C2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100817 PINMUX_IPSR_DATA(IP3_2_0, AUDATA3),
818 PINMUX_IPSR_DATA(IP3_3, DU0_DG2),
819 PINMUX_IPSR_DATA(IP3_3, LCDOUT10),
820 PINMUX_IPSR_DATA(IP3_4, DU0_DG3),
821 PINMUX_IPSR_DATA(IP3_4, LCDOUT11),
822 PINMUX_IPSR_DATA(IP3_5, DU0_DG4),
823 PINMUX_IPSR_DATA(IP3_5, LCDOUT12),
824 PINMUX_IPSR_DATA(IP3_6, DU0_DG5),
825 PINMUX_IPSR_DATA(IP3_6, LCDOUT13),
826 PINMUX_IPSR_DATA(IP3_7, DU0_DG6),
827 PINMUX_IPSR_DATA(IP3_7, LCDOUT14),
828 PINMUX_IPSR_DATA(IP3_8, DU0_DG7),
829 PINMUX_IPSR_DATA(IP3_8, LCDOUT15),
830 PINMUX_IPSR_DATA(IP3_11_9, DU0_DB0),
831 PINMUX_IPSR_DATA(IP3_11_9, LCDOUT16),
832 PINMUX_IPSR_DATA(IP3_11_9, EX_WAIT1),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000833 PINMUX_IPSR_MSEL(IP3_11_9, SCL1, SEL_I2C1_0),
834 PINMUX_IPSR_MSEL(IP3_11_9, TCLK1, SEL_TMU1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100835 PINMUX_IPSR_DATA(IP3_11_9, AUDATA4),
836 PINMUX_IPSR_DATA(IP3_14_12, DU0_DB1),
837 PINMUX_IPSR_DATA(IP3_14_12, LCDOUT17),
838 PINMUX_IPSR_DATA(IP3_14_12, EX_WAIT2),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000839 PINMUX_IPSR_MSEL(IP3_14_12, SDA1, SEL_I2C1_0),
840 PINMUX_IPSR_MSEL(IP3_14_12, GPS_MAG_B, SEL_GPS_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100841 PINMUX_IPSR_DATA(IP3_14_12, AUDATA5),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000842 PINMUX_IPSR_MSEL(IP3_14_12, SCK5_C, SEL_SCIF5_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100843 PINMUX_IPSR_DATA(IP3_15, DU0_DB2),
844 PINMUX_IPSR_DATA(IP3_15, LCDOUT18),
845 PINMUX_IPSR_DATA(IP3_16, DU0_DB3),
846 PINMUX_IPSR_DATA(IP3_16, LCDOUT19),
847 PINMUX_IPSR_DATA(IP3_17, DU0_DB4),
848 PINMUX_IPSR_DATA(IP3_17, LCDOUT20),
849 PINMUX_IPSR_DATA(IP3_18, DU0_DB5),
850 PINMUX_IPSR_DATA(IP3_18, LCDOUT21),
851 PINMUX_IPSR_DATA(IP3_19, DU0_DB6),
852 PINMUX_IPSR_DATA(IP3_19, LCDOUT22),
853 PINMUX_IPSR_DATA(IP3_20, DU0_DB7),
854 PINMUX_IPSR_DATA(IP3_20, LCDOUT23),
855 PINMUX_IPSR_DATA(IP3_22_21, DU0_DOTCLKIN),
856 PINMUX_IPSR_DATA(IP3_22_21, QSTVA_QVS),
857 PINMUX_IPSR_DATA(IP3_22_21, TX3_D_IRDA_TX_D),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000858 PINMUX_IPSR_MSEL(IP3_22_21, SCL3_B, SEL_I2C3_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100859 PINMUX_IPSR_DATA(IP3_23, DU0_DOTCLKOUT0),
860 PINMUX_IPSR_DATA(IP3_23, QCLK),
861 PINMUX_IPSR_DATA(IP3_26_24, DU0_DOTCLKOUT1),
862 PINMUX_IPSR_DATA(IP3_26_24, QSTVB_QVE),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000863 PINMUX_IPSR_MSEL(IP3_26_24, RX3_D_IRDA_RX_D, SEL_SCIF3_3),
864 PINMUX_IPSR_MSEL(IP3_26_24, SDA3_B, SEL_I2C3_1),
865 PINMUX_IPSR_MSEL(IP3_26_24, SDA2_C, SEL_I2C2_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100866 PINMUX_IPSR_DATA(IP3_26_24, DACK0_B),
867 PINMUX_IPSR_DATA(IP3_26_24, DRACK0_B),
868 PINMUX_IPSR_DATA(IP3_27, DU0_EXHSYNC_DU0_HSYNC),
869 PINMUX_IPSR_DATA(IP3_27, QSTH_QHS),
870 PINMUX_IPSR_DATA(IP3_28, DU0_EXVSYNC_DU0_VSYNC),
871 PINMUX_IPSR_DATA(IP3_28, QSTB_QHE),
872 PINMUX_IPSR_DATA(IP3_31_29, DU0_EXODDF_DU0_ODDF_DISP_CDE),
873 PINMUX_IPSR_DATA(IP3_31_29, QCPV_QDE),
874 PINMUX_IPSR_DATA(IP3_31_29, CAN1_TX),
875 PINMUX_IPSR_DATA(IP3_31_29, TX2_C),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000876 PINMUX_IPSR_MSEL(IP3_31_29, SCL2_C, SEL_I2C2_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100877 PINMUX_IPSR_DATA(IP3_31_29, REMOCON),
878
879 PINMUX_IPSR_DATA(IP4_1_0, DU0_DISP),
880 PINMUX_IPSR_DATA(IP4_1_0, QPOLA),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000881 PINMUX_IPSR_MSEL(IP4_1_0, CAN_CLK_C, SEL_CANCLK_2),
882 PINMUX_IPSR_MSEL(IP4_1_0, SCK2_C, SEL_SCIF2_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100883 PINMUX_IPSR_DATA(IP4_4_2, DU0_CDE),
884 PINMUX_IPSR_DATA(IP4_4_2, QPOLB),
885 PINMUX_IPSR_DATA(IP4_4_2, CAN1_RX),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000886 PINMUX_IPSR_MSEL(IP4_4_2, RX2_C, SEL_SCIF2_2),
887 PINMUX_IPSR_MSEL(IP4_4_2, DREQ0_B, SEL_EXBUS0_1),
888 PINMUX_IPSR_MSEL(IP4_4_2, SSI_SCK78_B, SEL_SSI7_1),
889 PINMUX_IPSR_MSEL(IP4_4_2, SCK0_B, SEL_SCIF0_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100890 PINMUX_IPSR_DATA(IP4_7_5, DU1_DR0),
891 PINMUX_IPSR_DATA(IP4_7_5, VI2_DATA0_VI2_B0),
892 PINMUX_IPSR_DATA(IP4_7_5, PWM6),
893 PINMUX_IPSR_DATA(IP4_7_5, SD3_CLK),
894 PINMUX_IPSR_DATA(IP4_7_5, TX3_E_IRDA_TX_E),
895 PINMUX_IPSR_DATA(IP4_7_5, AUDCK),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000896 PINMUX_IPSR_MSEL(IP4_7_5, PWMFSW0_B, SEL_PWMFSW_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100897 PINMUX_IPSR_DATA(IP4_10_8, DU1_DR1),
898 PINMUX_IPSR_DATA(IP4_10_8, VI2_DATA1_VI2_B1),
899 PINMUX_IPSR_DATA(IP4_10_8, PWM0),
900 PINMUX_IPSR_DATA(IP4_10_8, SD3_CMD),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000901 PINMUX_IPSR_MSEL(IP4_10_8, RX3_E_IRDA_RX_E, SEL_SCIF3_4),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100902 PINMUX_IPSR_DATA(IP4_10_8, AUDSYNC),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000903 PINMUX_IPSR_MSEL(IP4_10_8, CTS0_D, SEL_SCIF0_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100904 PINMUX_IPSR_DATA(IP4_11, DU1_DR2),
905 PINMUX_IPSR_DATA(IP4_11, VI2_G0),
906 PINMUX_IPSR_DATA(IP4_12, DU1_DR3),
907 PINMUX_IPSR_DATA(IP4_12, VI2_G1),
908 PINMUX_IPSR_DATA(IP4_13, DU1_DR4),
909 PINMUX_IPSR_DATA(IP4_13, VI2_G2),
910 PINMUX_IPSR_DATA(IP4_14, DU1_DR5),
911 PINMUX_IPSR_DATA(IP4_14, VI2_G3),
912 PINMUX_IPSR_DATA(IP4_15, DU1_DR6),
913 PINMUX_IPSR_DATA(IP4_15, VI2_G4),
914 PINMUX_IPSR_DATA(IP4_16, DU1_DR7),
915 PINMUX_IPSR_DATA(IP4_16, VI2_G5),
916 PINMUX_IPSR_DATA(IP4_19_17, DU1_DG0),
917 PINMUX_IPSR_DATA(IP4_19_17, VI2_DATA2_VI2_B2),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000918 PINMUX_IPSR_MSEL(IP4_19_17, SCL1_B, SEL_I2C1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100919 PINMUX_IPSR_DATA(IP4_19_17, SD3_DAT2),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000920 PINMUX_IPSR_MSEL(IP4_19_17, SCK3_E, SEL_SCIF3_4),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100921 PINMUX_IPSR_DATA(IP4_19_17, AUDATA6),
922 PINMUX_IPSR_DATA(IP4_19_17, TX0_D),
923 PINMUX_IPSR_DATA(IP4_22_20, DU1_DG1),
924 PINMUX_IPSR_DATA(IP4_22_20, VI2_DATA3_VI2_B3),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000925 PINMUX_IPSR_MSEL(IP4_22_20, SDA1_B, SEL_I2C1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100926 PINMUX_IPSR_DATA(IP4_22_20, SD3_DAT3),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000927 PINMUX_IPSR_MSEL(IP4_22_20, SCK5, SEL_SCIF5_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100928 PINMUX_IPSR_DATA(IP4_22_20, AUDATA7),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000929 PINMUX_IPSR_MSEL(IP4_22_20, RX0_D, SEL_SCIF0_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100930 PINMUX_IPSR_DATA(IP4_23, DU1_DG2),
931 PINMUX_IPSR_DATA(IP4_23, VI2_G6),
932 PINMUX_IPSR_DATA(IP4_24, DU1_DG3),
933 PINMUX_IPSR_DATA(IP4_24, VI2_G7),
934 PINMUX_IPSR_DATA(IP4_25, DU1_DG4),
935 PINMUX_IPSR_DATA(IP4_25, VI2_R0),
936 PINMUX_IPSR_DATA(IP4_26, DU1_DG5),
937 PINMUX_IPSR_DATA(IP4_26, VI2_R1),
938 PINMUX_IPSR_DATA(IP4_27, DU1_DG6),
939 PINMUX_IPSR_DATA(IP4_27, VI2_R2),
940 PINMUX_IPSR_DATA(IP4_28, DU1_DG7),
941 PINMUX_IPSR_DATA(IP4_28, VI2_R3),
942 PINMUX_IPSR_DATA(IP4_31_29, DU1_DB0),
943 PINMUX_IPSR_DATA(IP4_31_29, VI2_DATA4_VI2_B4),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000944 PINMUX_IPSR_MSEL(IP4_31_29, SCL2_B, SEL_I2C2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100945 PINMUX_IPSR_DATA(IP4_31_29, SD3_DAT0),
946 PINMUX_IPSR_DATA(IP4_31_29, TX5),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000947 PINMUX_IPSR_MSEL(IP4_31_29, SCK0_D, SEL_SCIF0_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100948
949 PINMUX_IPSR_DATA(IP5_2_0, DU1_DB1),
950 PINMUX_IPSR_DATA(IP5_2_0, VI2_DATA5_VI2_B5),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000951 PINMUX_IPSR_MSEL(IP5_2_0, SDA2_B, SEL_I2C2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100952 PINMUX_IPSR_DATA(IP5_2_0, SD3_DAT1),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000953 PINMUX_IPSR_MSEL(IP5_2_0, RX5, SEL_SCIF5_0),
954 PINMUX_IPSR_MSEL(IP5_2_0, RTS0_D_TANS_D, SEL_SCIF0_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100955 PINMUX_IPSR_DATA(IP5_3, DU1_DB2),
956 PINMUX_IPSR_DATA(IP5_3, VI2_R4),
957 PINMUX_IPSR_DATA(IP5_4, DU1_DB3),
958 PINMUX_IPSR_DATA(IP5_4, VI2_R5),
959 PINMUX_IPSR_DATA(IP5_5, DU1_DB4),
960 PINMUX_IPSR_DATA(IP5_5, VI2_R6),
961 PINMUX_IPSR_DATA(IP5_6, DU1_DB5),
962 PINMUX_IPSR_DATA(IP5_6, VI2_R7),
963 PINMUX_IPSR_DATA(IP5_7, DU1_DB6),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000964 PINMUX_IPSR_MSEL(IP5_7, SCL2_D, SEL_I2C2_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100965 PINMUX_IPSR_DATA(IP5_8, DU1_DB7),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000966 PINMUX_IPSR_MSEL(IP5_8, SDA2_D, SEL_I2C2_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100967 PINMUX_IPSR_DATA(IP5_10_9, DU1_DOTCLKIN),
968 PINMUX_IPSR_DATA(IP5_10_9, VI2_CLKENB),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000969 PINMUX_IPSR_MSEL(IP5_10_9, HSPI_CS1, SEL_HSPI1_0),
970 PINMUX_IPSR_MSEL(IP5_10_9, SCL1_D, SEL_I2C1_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100971 PINMUX_IPSR_DATA(IP5_12_11, DU1_DOTCLKOUT),
972 PINMUX_IPSR_DATA(IP5_12_11, VI2_FIELD),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000973 PINMUX_IPSR_MSEL(IP5_12_11, SDA1_D, SEL_I2C1_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100974 PINMUX_IPSR_DATA(IP5_14_13, DU1_EXHSYNC_DU1_HSYNC),
975 PINMUX_IPSR_DATA(IP5_14_13, VI2_HSYNC),
976 PINMUX_IPSR_DATA(IP5_14_13, VI3_HSYNC),
977 PINMUX_IPSR_DATA(IP5_16_15, DU1_EXVSYNC_DU1_VSYNC),
978 PINMUX_IPSR_DATA(IP5_16_15, VI2_VSYNC),
979 PINMUX_IPSR_DATA(IP5_16_15, VI3_VSYNC),
980 PINMUX_IPSR_DATA(IP5_20_17, DU1_EXODDF_DU1_ODDF_DISP_CDE),
981 PINMUX_IPSR_DATA(IP5_20_17, VI2_CLK),
982 PINMUX_IPSR_DATA(IP5_20_17, TX3_B_IRDA_TX_B),
983 PINMUX_IPSR_DATA(IP5_20_17, SD3_CD),
984 PINMUX_IPSR_DATA(IP5_20_17, HSPI_TX1),
985 PINMUX_IPSR_DATA(IP5_20_17, VI1_CLKENB),
986 PINMUX_IPSR_DATA(IP5_20_17, VI3_CLKENB),
987 PINMUX_IPSR_DATA(IP5_20_17, AUDIO_CLKC),
988 PINMUX_IPSR_DATA(IP5_20_17, TX2_D),
989 PINMUX_IPSR_DATA(IP5_20_17, SPEEDIN),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000990 PINMUX_IPSR_MSEL(IP5_20_17, GPS_SIGN_D, SEL_GPS_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100991 PINMUX_IPSR_DATA(IP5_23_21, DU1_DISP),
992 PINMUX_IPSR_DATA(IP5_23_21, VI2_DATA6_VI2_B6),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000993 PINMUX_IPSR_MSEL(IP5_23_21, TCLK0, SEL_TMU0_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100994 PINMUX_IPSR_DATA(IP5_23_21, QSTVA_B_QVS_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000995 PINMUX_IPSR_MSEL(IP5_23_21, HSPI_CLK1, SEL_HSPI1_0),
996 PINMUX_IPSR_MSEL(IP5_23_21, SCK2_D, SEL_SCIF2_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100997 PINMUX_IPSR_DATA(IP5_23_21, AUDIO_CLKOUT_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +0000998 PINMUX_IPSR_MSEL(IP5_23_21, GPS_MAG_D, SEL_GPS_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +0100999 PINMUX_IPSR_DATA(IP5_27_24, DU1_CDE),
1000 PINMUX_IPSR_DATA(IP5_27_24, VI2_DATA7_VI2_B7),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001001 PINMUX_IPSR_MSEL(IP5_27_24, RX3_B_IRDA_RX_B, SEL_SCIF3_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001002 PINMUX_IPSR_DATA(IP5_27_24, SD3_WP),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001003 PINMUX_IPSR_MSEL(IP5_27_24, HSPI_RX1, SEL_HSPI1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001004 PINMUX_IPSR_DATA(IP5_27_24, VI1_FIELD),
1005 PINMUX_IPSR_DATA(IP5_27_24, VI3_FIELD),
1006 PINMUX_IPSR_DATA(IP5_27_24, AUDIO_CLKOUT),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001007 PINMUX_IPSR_MSEL(IP5_27_24, RX2_D, SEL_SCIF2_3),
1008 PINMUX_IPSR_MSEL(IP5_27_24, GPS_CLK_C, SEL_GPS_2),
1009 PINMUX_IPSR_MSEL(IP5_27_24, GPS_CLK_D, SEL_GPS_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001010 PINMUX_IPSR_DATA(IP5_28, AUDIO_CLKA),
1011 PINMUX_IPSR_DATA(IP5_28, CAN_TXCLK),
1012 PINMUX_IPSR_DATA(IP5_30_29, AUDIO_CLKB),
1013 PINMUX_IPSR_DATA(IP5_30_29, USB_OVC2),
1014 PINMUX_IPSR_DATA(IP5_30_29, CAN_DEBUGOUT0),
1015 PINMUX_IPSR_DATA(IP5_30_29, MOUT0),
1016
1017 PINMUX_IPSR_DATA(IP6_1_0, SSI_SCK0129),
1018 PINMUX_IPSR_DATA(IP6_1_0, CAN_DEBUGOUT1),
1019 PINMUX_IPSR_DATA(IP6_1_0, MOUT1),
1020 PINMUX_IPSR_DATA(IP6_3_2, SSI_WS0129),
1021 PINMUX_IPSR_DATA(IP6_3_2, CAN_DEBUGOUT2),
1022 PINMUX_IPSR_DATA(IP6_3_2, MOUT2),
1023 PINMUX_IPSR_DATA(IP6_5_4, SSI_SDATA0),
1024 PINMUX_IPSR_DATA(IP6_5_4, CAN_DEBUGOUT3),
1025 PINMUX_IPSR_DATA(IP6_5_4, MOUT5),
1026 PINMUX_IPSR_DATA(IP6_7_6, SSI_SDATA1),
1027 PINMUX_IPSR_DATA(IP6_7_6, CAN_DEBUGOUT4),
1028 PINMUX_IPSR_DATA(IP6_7_6, MOUT6),
1029 PINMUX_IPSR_DATA(IP6_8, SSI_SDATA2),
1030 PINMUX_IPSR_DATA(IP6_8, CAN_DEBUGOUT5),
1031 PINMUX_IPSR_DATA(IP6_11_9, SSI_SCK34),
1032 PINMUX_IPSR_DATA(IP6_11_9, CAN_DEBUGOUT6),
1033 PINMUX_IPSR_DATA(IP6_11_9, CAN0_TX_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001034 PINMUX_IPSR_MSEL(IP6_11_9, IERX, SEL_IE_0),
1035 PINMUX_IPSR_MSEL(IP6_11_9, SSI_SCK9_C, SEL_SSI9_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001036 PINMUX_IPSR_DATA(IP6_14_12, SSI_WS34),
1037 PINMUX_IPSR_DATA(IP6_14_12, CAN_DEBUGOUT7),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001038 PINMUX_IPSR_MSEL(IP6_14_12, CAN0_RX_B, SEL_CAN0_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001039 PINMUX_IPSR_DATA(IP6_14_12, IETX),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001040 PINMUX_IPSR_MSEL(IP6_14_12, SSI_WS9_C, SEL_SSI9_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001041 PINMUX_IPSR_DATA(IP6_17_15, SSI_SDATA3),
1042 PINMUX_IPSR_DATA(IP6_17_15, PWM0_C),
1043 PINMUX_IPSR_DATA(IP6_17_15, CAN_DEBUGOUT8),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001044 PINMUX_IPSR_MSEL(IP6_17_15, CAN_CLK_B, SEL_CANCLK_1),
1045 PINMUX_IPSR_MSEL(IP6_17_15, IECLK, SEL_IE_0),
1046 PINMUX_IPSR_MSEL(IP6_17_15, SCIF_CLK_B, SEL_SCIF_1),
1047 PINMUX_IPSR_MSEL(IP6_17_15, TCLK0_B, SEL_TMU0_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001048 PINMUX_IPSR_DATA(IP6_19_18, SSI_SDATA4),
1049 PINMUX_IPSR_DATA(IP6_19_18, CAN_DEBUGOUT9),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001050 PINMUX_IPSR_MSEL(IP6_19_18, SSI_SDATA9_C, SEL_SSI9_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001051 PINMUX_IPSR_DATA(IP6_22_20, SSI_SCK5),
1052 PINMUX_IPSR_DATA(IP6_22_20, ADICLK),
1053 PINMUX_IPSR_DATA(IP6_22_20, CAN_DEBUGOUT10),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001054 PINMUX_IPSR_MSEL(IP6_22_20, SCK3, SEL_SCIF3_0),
1055 PINMUX_IPSR_MSEL(IP6_22_20, TCLK0_D, SEL_TMU0_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001056 PINMUX_IPSR_DATA(IP6_24_23, SSI_WS5),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001057 PINMUX_IPSR_MSEL(IP6_24_23, ADICS_SAMP, SEL_ADI_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001058 PINMUX_IPSR_DATA(IP6_24_23, CAN_DEBUGOUT11),
1059 PINMUX_IPSR_DATA(IP6_24_23, TX3_IRDA_TX),
1060 PINMUX_IPSR_DATA(IP6_26_25, SSI_SDATA5),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001061 PINMUX_IPSR_MSEL(IP6_26_25, ADIDATA, SEL_ADI_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001062 PINMUX_IPSR_DATA(IP6_26_25, CAN_DEBUGOUT12),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001063 PINMUX_IPSR_MSEL(IP6_26_25, RX3_IRDA_RX, SEL_SCIF3_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001064 PINMUX_IPSR_DATA(IP6_30_29, SSI_SCK6),
1065 PINMUX_IPSR_DATA(IP6_30_29, ADICHS0),
1066 PINMUX_IPSR_DATA(IP6_30_29, CAN0_TX),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001067 PINMUX_IPSR_MSEL(IP6_30_29, IERX_B, SEL_IE_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001068
1069 PINMUX_IPSR_DATA(IP7_1_0, SSI_WS6),
1070 PINMUX_IPSR_DATA(IP7_1_0, ADICHS1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001071 PINMUX_IPSR_MSEL(IP7_1_0, CAN0_RX, SEL_CAN0_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001072 PINMUX_IPSR_DATA(IP7_1_0, IETX_B),
1073 PINMUX_IPSR_DATA(IP7_3_2, SSI_SDATA6),
1074 PINMUX_IPSR_DATA(IP7_3_2, ADICHS2),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001075 PINMUX_IPSR_MSEL(IP7_3_2, CAN_CLK, SEL_CANCLK_0),
1076 PINMUX_IPSR_MSEL(IP7_3_2, IECLK_B, SEL_IE_1),
1077 PINMUX_IPSR_MSEL(IP7_6_4, SSI_SCK78, SEL_SSI7_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001078 PINMUX_IPSR_DATA(IP7_6_4, CAN_DEBUGOUT13),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001079 PINMUX_IPSR_MSEL(IP7_6_4, IRQ0_B, SEL_INT0_1),
1080 PINMUX_IPSR_MSEL(IP7_6_4, SSI_SCK9_B, SEL_SSI9_1),
1081 PINMUX_IPSR_MSEL(IP7_6_4, HSPI_CLK1_C, SEL_HSPI1_2),
1082 PINMUX_IPSR_MSEL(IP7_9_7, SSI_WS78, SEL_SSI7_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001083 PINMUX_IPSR_DATA(IP7_9_7, CAN_DEBUGOUT14),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001084 PINMUX_IPSR_MSEL(IP7_9_7, IRQ1_B, SEL_INT1_1),
1085 PINMUX_IPSR_MSEL(IP7_9_7, SSI_WS9_B, SEL_SSI9_1),
1086 PINMUX_IPSR_MSEL(IP7_9_7, HSPI_CS1_C, SEL_HSPI1_2),
1087 PINMUX_IPSR_MSEL(IP7_12_10, SSI_SDATA7, SEL_SSI7_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001088 PINMUX_IPSR_DATA(IP7_12_10, CAN_DEBUGOUT15),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001089 PINMUX_IPSR_MSEL(IP7_12_10, IRQ2_B, SEL_INT2_1),
1090 PINMUX_IPSR_MSEL(IP7_12_10, TCLK1_C, SEL_TMU1_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001091 PINMUX_IPSR_DATA(IP7_12_10, HSPI_TX1_C),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001092 PINMUX_IPSR_MSEL(IP7_14_13, SSI_SDATA8, SEL_SSI8_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001093 PINMUX_IPSR_DATA(IP7_14_13, VSP),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001094 PINMUX_IPSR_MSEL(IP7_14_13, IRQ3_B, SEL_INT3_1),
1095 PINMUX_IPSR_MSEL(IP7_14_13, HSPI_RX1_C, SEL_HSPI1_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001096 PINMUX_IPSR_DATA(IP7_16_15, SD0_CLK),
1097 PINMUX_IPSR_DATA(IP7_16_15, ATACS01),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001098 PINMUX_IPSR_MSEL(IP7_16_15, SCK1_B, SEL_SCIF1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001099 PINMUX_IPSR_DATA(IP7_18_17, SD0_CMD),
1100 PINMUX_IPSR_DATA(IP7_18_17, ATACS11),
1101 PINMUX_IPSR_DATA(IP7_18_17, TX1_B),
1102 PINMUX_IPSR_DATA(IP7_18_17, CC5_TDO),
1103 PINMUX_IPSR_DATA(IP7_20_19, SD0_DAT0),
1104 PINMUX_IPSR_DATA(IP7_20_19, ATADIR1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001105 PINMUX_IPSR_MSEL(IP7_20_19, RX1_B, SEL_SCIF1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001106 PINMUX_IPSR_DATA(IP7_20_19, CC5_TRST),
1107 PINMUX_IPSR_DATA(IP7_22_21, SD0_DAT1),
1108 PINMUX_IPSR_DATA(IP7_22_21, ATAG1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001109 PINMUX_IPSR_MSEL(IP7_22_21, SCK2_B, SEL_SCIF2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001110 PINMUX_IPSR_DATA(IP7_22_21, CC5_TMS),
1111 PINMUX_IPSR_DATA(IP7_24_23, SD0_DAT2),
1112 PINMUX_IPSR_DATA(IP7_24_23, ATARD1),
1113 PINMUX_IPSR_DATA(IP7_24_23, TX2_B),
1114 PINMUX_IPSR_DATA(IP7_24_23, CC5_TCK),
1115 PINMUX_IPSR_DATA(IP7_26_25, SD0_DAT3),
1116 PINMUX_IPSR_DATA(IP7_26_25, ATAWR1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001117 PINMUX_IPSR_MSEL(IP7_26_25, RX2_B, SEL_SCIF2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001118 PINMUX_IPSR_DATA(IP7_26_25, CC5_TDI),
1119 PINMUX_IPSR_DATA(IP7_28_27, SD0_CD),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001120 PINMUX_IPSR_MSEL(IP7_28_27, DREQ2, SEL_EXBUS2_0),
1121 PINMUX_IPSR_MSEL(IP7_28_27, RTS1_B_TANS_B, SEL_SCIF1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001122 PINMUX_IPSR_DATA(IP7_30_29, SD0_WP),
1123 PINMUX_IPSR_DATA(IP7_30_29, DACK2),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001124 PINMUX_IPSR_MSEL(IP7_30_29, CTS1_B, SEL_SCIF1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001125
1126 PINMUX_IPSR_DATA(IP8_3_0, HSPI_CLK0),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001127 PINMUX_IPSR_MSEL(IP8_3_0, CTS0, SEL_SCIF0_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001128 PINMUX_IPSR_DATA(IP8_3_0, USB_OVC0),
1129 PINMUX_IPSR_DATA(IP8_3_0, AD_CLK),
1130 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE4),
1131 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE12),
1132 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE20),
1133 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE28),
1134 PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE36),
1135 PINMUX_IPSR_DATA(IP8_7_4, HSPI_CS0),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001136 PINMUX_IPSR_MSEL(IP8_7_4, RTS0_TANS, SEL_SCIF0_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001137 PINMUX_IPSR_DATA(IP8_7_4, USB_OVC1),
1138 PINMUX_IPSR_DATA(IP8_7_4, AD_DI),
1139 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE5),
1140 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE13),
1141 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE21),
1142 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE29),
1143 PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE37),
1144 PINMUX_IPSR_DATA(IP8_11_8, HSPI_TX0),
1145 PINMUX_IPSR_DATA(IP8_11_8, TX0),
1146 PINMUX_IPSR_DATA(IP8_11_8, CAN_DEBUG_HW_TRIGGER),
1147 PINMUX_IPSR_DATA(IP8_11_8, AD_DO),
1148 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE6),
1149 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE14),
1150 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE22),
1151 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE30),
1152 PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE38),
1153 PINMUX_IPSR_DATA(IP8_15_12, HSPI_RX0),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001154 PINMUX_IPSR_MSEL(IP8_15_12, RX0, SEL_SCIF0_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001155 PINMUX_IPSR_DATA(IP8_15_12, CAN_STEP0),
1156 PINMUX_IPSR_DATA(IP8_15_12, AD_NCS),
1157 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE7),
1158 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE15),
1159 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE23),
1160 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE31),
1161 PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE39),
1162 PINMUX_IPSR_DATA(IP8_17_16, FMCLK),
1163 PINMUX_IPSR_DATA(IP8_17_16, RDS_CLK),
1164 PINMUX_IPSR_DATA(IP8_17_16, PCMOE),
1165 PINMUX_IPSR_DATA(IP8_18, BPFCLK),
1166 PINMUX_IPSR_DATA(IP8_18, PCMWE),
1167 PINMUX_IPSR_DATA(IP8_19, FMIN),
1168 PINMUX_IPSR_DATA(IP8_19, RDS_DATA),
1169 PINMUX_IPSR_DATA(IP8_20, VI0_CLK),
1170 PINMUX_IPSR_DATA(IP8_20, MMC1_CLK),
1171 PINMUX_IPSR_DATA(IP8_22_21, VI0_CLKENB),
1172 PINMUX_IPSR_DATA(IP8_22_21, TX1_C),
1173 PINMUX_IPSR_DATA(IP8_22_21, HTX1_B),
1174 PINMUX_IPSR_DATA(IP8_22_21, MT1_SYNC),
1175 PINMUX_IPSR_DATA(IP8_24_23, VI0_FIELD),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001176 PINMUX_IPSR_MSEL(IP8_24_23, RX1_C, SEL_SCIF1_2),
1177 PINMUX_IPSR_MSEL(IP8_24_23, HRX1_B, SEL_HSCIF1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001178 PINMUX_IPSR_DATA(IP8_27_25, VI0_HSYNC),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001179 PINMUX_IPSR_MSEL(IP8_27_25, VI0_DATA0_B_VI0_B0_B, SEL_VI0_1),
1180 PINMUX_IPSR_MSEL(IP8_27_25, CTS1_C, SEL_SCIF1_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001181 PINMUX_IPSR_DATA(IP8_27_25, TX4_D),
1182 PINMUX_IPSR_DATA(IP8_27_25, MMC1_CMD),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001183 PINMUX_IPSR_MSEL(IP8_27_25, HSCK1_B, SEL_HSCIF1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001184 PINMUX_IPSR_DATA(IP8_30_28, VI0_VSYNC),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001185 PINMUX_IPSR_MSEL(IP8_30_28, VI0_DATA1_B_VI0_B1_B, SEL_VI0_1),
1186 PINMUX_IPSR_MSEL(IP8_30_28, RTS1_C_TANS_C, SEL_SCIF1_2),
1187 PINMUX_IPSR_MSEL(IP8_30_28, RX4_D, SEL_SCIF4_3),
1188 PINMUX_IPSR_MSEL(IP8_30_28, PWMFSW0_C, SEL_PWMFSW_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001189
Kuninori Morimoto75915142015-09-03 02:50:58 +00001190 PINMUX_IPSR_MSEL(IP9_1_0, VI0_DATA0_VI0_B0, SEL_VI0_0),
1191 PINMUX_IPSR_MSEL(IP9_1_0, HRTS1_B, SEL_HSCIF1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001192 PINMUX_IPSR_DATA(IP9_1_0, MT1_VCXO),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001193 PINMUX_IPSR_MSEL(IP9_3_2, VI0_DATA1_VI0_B1, SEL_VI0_0),
1194 PINMUX_IPSR_MSEL(IP9_3_2, HCTS1_B, SEL_HSCIF1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001195 PINMUX_IPSR_DATA(IP9_3_2, MT1_PWM),
1196 PINMUX_IPSR_DATA(IP9_4, VI0_DATA2_VI0_B2),
1197 PINMUX_IPSR_DATA(IP9_4, MMC1_D0),
1198 PINMUX_IPSR_DATA(IP9_5, VI0_DATA3_VI0_B3),
1199 PINMUX_IPSR_DATA(IP9_5, MMC1_D1),
1200 PINMUX_IPSR_DATA(IP9_6, VI0_DATA4_VI0_B4),
1201 PINMUX_IPSR_DATA(IP9_6, MMC1_D2),
1202 PINMUX_IPSR_DATA(IP9_7, VI0_DATA5_VI0_B5),
1203 PINMUX_IPSR_DATA(IP9_7, MMC1_D3),
1204 PINMUX_IPSR_DATA(IP9_9_8, VI0_DATA6_VI0_B6),
1205 PINMUX_IPSR_DATA(IP9_9_8, MMC1_D4),
1206 PINMUX_IPSR_DATA(IP9_9_8, ARM_TRACEDATA_0),
1207 PINMUX_IPSR_DATA(IP9_11_10, VI0_DATA7_VI0_B7),
1208 PINMUX_IPSR_DATA(IP9_11_10, MMC1_D5),
1209 PINMUX_IPSR_DATA(IP9_11_10, ARM_TRACEDATA_1),
1210 PINMUX_IPSR_DATA(IP9_13_12, VI0_G0),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001211 PINMUX_IPSR_MSEL(IP9_13_12, SSI_SCK78_C, SEL_SSI7_2),
1212 PINMUX_IPSR_MSEL(IP9_13_12, IRQ0, SEL_INT0_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001213 PINMUX_IPSR_DATA(IP9_13_12, ARM_TRACEDATA_2),
1214 PINMUX_IPSR_DATA(IP9_15_14, VI0_G1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001215 PINMUX_IPSR_MSEL(IP9_15_14, SSI_WS78_C, SEL_SSI7_2),
1216 PINMUX_IPSR_MSEL(IP9_15_14, IRQ1, SEL_INT1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001217 PINMUX_IPSR_DATA(IP9_15_14, ARM_TRACEDATA_3),
1218 PINMUX_IPSR_DATA(IP9_18_16, VI0_G2),
1219 PINMUX_IPSR_DATA(IP9_18_16, ETH_TXD1),
1220 PINMUX_IPSR_DATA(IP9_18_16, MMC1_D6),
1221 PINMUX_IPSR_DATA(IP9_18_16, ARM_TRACEDATA_4),
1222 PINMUX_IPSR_DATA(IP9_18_16, TS_SPSYNC0),
1223 PINMUX_IPSR_DATA(IP9_21_19, VI0_G3),
1224 PINMUX_IPSR_DATA(IP9_21_19, ETH_CRS_DV),
1225 PINMUX_IPSR_DATA(IP9_21_19, MMC1_D7),
1226 PINMUX_IPSR_DATA(IP9_21_19, ARM_TRACEDATA_5),
1227 PINMUX_IPSR_DATA(IP9_21_19, TS_SDAT0),
1228 PINMUX_IPSR_DATA(IP9_23_22, VI0_G4),
1229 PINMUX_IPSR_DATA(IP9_23_22, ETH_TX_EN),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001230 PINMUX_IPSR_MSEL(IP9_23_22, SD2_DAT0_B, SEL_SD2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001231 PINMUX_IPSR_DATA(IP9_23_22, ARM_TRACEDATA_6),
1232 PINMUX_IPSR_DATA(IP9_25_24, VI0_G5),
1233 PINMUX_IPSR_DATA(IP9_25_24, ETH_RX_ER),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001234 PINMUX_IPSR_MSEL(IP9_25_24, SD2_DAT1_B, SEL_SD2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001235 PINMUX_IPSR_DATA(IP9_25_24, ARM_TRACEDATA_7),
1236 PINMUX_IPSR_DATA(IP9_27_26, VI0_G6),
1237 PINMUX_IPSR_DATA(IP9_27_26, ETH_RXD0),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001238 PINMUX_IPSR_MSEL(IP9_27_26, SD2_DAT2_B, SEL_SD2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001239 PINMUX_IPSR_DATA(IP9_27_26, ARM_TRACEDATA_8),
1240 PINMUX_IPSR_DATA(IP9_29_28, VI0_G7),
1241 PINMUX_IPSR_DATA(IP9_29_28, ETH_RXD1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001242 PINMUX_IPSR_MSEL(IP9_29_28, SD2_DAT3_B, SEL_SD2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001243 PINMUX_IPSR_DATA(IP9_29_28, ARM_TRACEDATA_9),
1244
1245 PINMUX_IPSR_DATA(IP10_2_0, VI0_R0),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001246 PINMUX_IPSR_MSEL(IP10_2_0, SSI_SDATA7_C, SEL_SSI7_2),
1247 PINMUX_IPSR_MSEL(IP10_2_0, SCK1_C, SEL_SCIF1_2),
1248 PINMUX_IPSR_MSEL(IP10_2_0, DREQ1_B, SEL_EXBUS1_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001249 PINMUX_IPSR_DATA(IP10_2_0, ARM_TRACEDATA_10),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001250 PINMUX_IPSR_MSEL(IP10_2_0, DREQ0_C, SEL_EXBUS0_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001251 PINMUX_IPSR_DATA(IP10_5_3, VI0_R1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001252 PINMUX_IPSR_MSEL(IP10_5_3, SSI_SDATA8_C, SEL_SSI8_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001253 PINMUX_IPSR_DATA(IP10_5_3, DACK1_B),
1254 PINMUX_IPSR_DATA(IP10_5_3, ARM_TRACEDATA_11),
1255 PINMUX_IPSR_DATA(IP10_5_3, DACK0_C),
1256 PINMUX_IPSR_DATA(IP10_5_3, DRACK0_C),
1257 PINMUX_IPSR_DATA(IP10_8_6, VI0_R2),
1258 PINMUX_IPSR_DATA(IP10_8_6, ETH_LINK),
1259 PINMUX_IPSR_DATA(IP10_8_6, SD2_CLK_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001260 PINMUX_IPSR_MSEL(IP10_8_6, IRQ2, SEL_INT2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001261 PINMUX_IPSR_DATA(IP10_8_6, ARM_TRACEDATA_12),
1262 PINMUX_IPSR_DATA(IP10_11_9, VI0_R3),
1263 PINMUX_IPSR_DATA(IP10_11_9, ETH_MAGIC),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001264 PINMUX_IPSR_MSEL(IP10_11_9, SD2_CMD_B, SEL_SD2_1),
1265 PINMUX_IPSR_MSEL(IP10_11_9, IRQ3, SEL_INT3_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001266 PINMUX_IPSR_DATA(IP10_11_9, ARM_TRACEDATA_13),
1267 PINMUX_IPSR_DATA(IP10_14_12, VI0_R4),
1268 PINMUX_IPSR_DATA(IP10_14_12, ETH_REFCLK),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001269 PINMUX_IPSR_MSEL(IP10_14_12, SD2_CD_B, SEL_SD2_1),
1270 PINMUX_IPSR_MSEL(IP10_14_12, HSPI_CLK1_B, SEL_HSPI1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001271 PINMUX_IPSR_DATA(IP10_14_12, ARM_TRACEDATA_14),
1272 PINMUX_IPSR_DATA(IP10_14_12, MT1_CLK),
1273 PINMUX_IPSR_DATA(IP10_14_12, TS_SCK0),
1274 PINMUX_IPSR_DATA(IP10_17_15, VI0_R5),
1275 PINMUX_IPSR_DATA(IP10_17_15, ETH_TXD0),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001276 PINMUX_IPSR_MSEL(IP10_17_15, SD2_WP_B, SEL_SD2_1),
1277 PINMUX_IPSR_MSEL(IP10_17_15, HSPI_CS1_B, SEL_HSPI1_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001278 PINMUX_IPSR_DATA(IP10_17_15, ARM_TRACEDATA_15),
1279 PINMUX_IPSR_DATA(IP10_17_15, MT1_D),
1280 PINMUX_IPSR_DATA(IP10_17_15, TS_SDEN0),
1281 PINMUX_IPSR_DATA(IP10_20_18, VI0_R6),
1282 PINMUX_IPSR_DATA(IP10_20_18, ETH_MDC),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001283 PINMUX_IPSR_MSEL(IP10_20_18, DREQ2_C, SEL_EXBUS2_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001284 PINMUX_IPSR_DATA(IP10_20_18, HSPI_TX1_B),
1285 PINMUX_IPSR_DATA(IP10_20_18, TRACECLK),
1286 PINMUX_IPSR_DATA(IP10_20_18, MT1_BEN),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001287 PINMUX_IPSR_MSEL(IP10_20_18, PWMFSW0_D, SEL_PWMFSW_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001288 PINMUX_IPSR_DATA(IP10_23_21, VI0_R7),
1289 PINMUX_IPSR_DATA(IP10_23_21, ETH_MDIO),
1290 PINMUX_IPSR_DATA(IP10_23_21, DACK2_C),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001291 PINMUX_IPSR_MSEL(IP10_23_21, HSPI_RX1_B, SEL_HSPI1_1),
1292 PINMUX_IPSR_MSEL(IP10_23_21, SCIF_CLK_D, SEL_SCIF_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001293 PINMUX_IPSR_DATA(IP10_23_21, TRACECTL),
1294 PINMUX_IPSR_DATA(IP10_23_21, MT1_PEN),
1295 PINMUX_IPSR_DATA(IP10_25_24, VI1_CLK),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001296 PINMUX_IPSR_MSEL(IP10_25_24, SIM_D, SEL_SIM_0),
1297 PINMUX_IPSR_MSEL(IP10_25_24, SDA3, SEL_I2C3_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001298 PINMUX_IPSR_DATA(IP10_28_26, VI1_HSYNC),
1299 PINMUX_IPSR_DATA(IP10_28_26, VI3_CLK),
1300 PINMUX_IPSR_DATA(IP10_28_26, SSI_SCK4),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001301 PINMUX_IPSR_MSEL(IP10_28_26, GPS_SIGN_C, SEL_GPS_2),
1302 PINMUX_IPSR_MSEL(IP10_28_26, PWMFSW0_E, SEL_PWMFSW_4),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001303 PINMUX_IPSR_DATA(IP10_31_29, VI1_VSYNC),
1304 PINMUX_IPSR_DATA(IP10_31_29, AUDIO_CLKOUT_C),
1305 PINMUX_IPSR_DATA(IP10_31_29, SSI_WS4),
1306 PINMUX_IPSR_DATA(IP10_31_29, SIM_CLK),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001307 PINMUX_IPSR_MSEL(IP10_31_29, GPS_MAG_C, SEL_GPS_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001308 PINMUX_IPSR_DATA(IP10_31_29, SPV_TRST),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001309 PINMUX_IPSR_MSEL(IP10_31_29, SCL3, SEL_I2C3_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001310
1311 PINMUX_IPSR_DATA(IP11_2_0, VI1_DATA0_VI1_B0),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001312 PINMUX_IPSR_MSEL(IP11_2_0, SD2_DAT0, SEL_SD2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001313 PINMUX_IPSR_DATA(IP11_2_0, SIM_RST),
1314 PINMUX_IPSR_DATA(IP11_2_0, SPV_TCK),
1315 PINMUX_IPSR_DATA(IP11_2_0, ADICLK_B),
1316 PINMUX_IPSR_DATA(IP11_5_3, VI1_DATA1_VI1_B1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001317 PINMUX_IPSR_MSEL(IP11_5_3, SD2_DAT1, SEL_SD2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001318 PINMUX_IPSR_DATA(IP11_5_3, MT0_CLK),
1319 PINMUX_IPSR_DATA(IP11_5_3, SPV_TMS),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001320 PINMUX_IPSR_MSEL(IP11_5_3, ADICS_B_SAMP_B, SEL_ADI_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001321 PINMUX_IPSR_DATA(IP11_8_6, VI1_DATA2_VI1_B2),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001322 PINMUX_IPSR_MSEL(IP11_8_6, SD2_DAT2, SEL_SD2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001323 PINMUX_IPSR_DATA(IP11_8_6, MT0_D),
1324 PINMUX_IPSR_DATA(IP11_8_6, SPVTDI),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001325 PINMUX_IPSR_MSEL(IP11_8_6, ADIDATA_B, SEL_ADI_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001326 PINMUX_IPSR_DATA(IP11_11_9, VI1_DATA3_VI1_B3),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001327 PINMUX_IPSR_MSEL(IP11_11_9, SD2_DAT3, SEL_SD2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001328 PINMUX_IPSR_DATA(IP11_11_9, MT0_BEN),
1329 PINMUX_IPSR_DATA(IP11_11_9, SPV_TDO),
1330 PINMUX_IPSR_DATA(IP11_11_9, ADICHS0_B),
1331 PINMUX_IPSR_DATA(IP11_14_12, VI1_DATA4_VI1_B4),
1332 PINMUX_IPSR_DATA(IP11_14_12, SD2_CLK),
1333 PINMUX_IPSR_DATA(IP11_14_12, MT0_PEN),
1334 PINMUX_IPSR_DATA(IP11_14_12, SPA_TRST),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001335 PINMUX_IPSR_MSEL(IP11_14_12, HSPI_CLK1_D, SEL_HSPI1_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001336 PINMUX_IPSR_DATA(IP11_14_12, ADICHS1_B),
1337 PINMUX_IPSR_DATA(IP11_17_15, VI1_DATA5_VI1_B5),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001338 PINMUX_IPSR_MSEL(IP11_17_15, SD2_CMD, SEL_SD2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001339 PINMUX_IPSR_DATA(IP11_17_15, MT0_SYNC),
1340 PINMUX_IPSR_DATA(IP11_17_15, SPA_TCK),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001341 PINMUX_IPSR_MSEL(IP11_17_15, HSPI_CS1_D, SEL_HSPI1_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001342 PINMUX_IPSR_DATA(IP11_17_15, ADICHS2_B),
1343 PINMUX_IPSR_DATA(IP11_20_18, VI1_DATA6_VI1_B6),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001344 PINMUX_IPSR_MSEL(IP11_20_18, SD2_CD, SEL_SD2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001345 PINMUX_IPSR_DATA(IP11_20_18, MT0_VCXO),
1346 PINMUX_IPSR_DATA(IP11_20_18, SPA_TMS),
1347 PINMUX_IPSR_DATA(IP11_20_18, HSPI_TX1_D),
1348 PINMUX_IPSR_DATA(IP11_23_21, VI1_DATA7_VI1_B7),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001349 PINMUX_IPSR_MSEL(IP11_23_21, SD2_WP, SEL_SD2_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001350 PINMUX_IPSR_DATA(IP11_23_21, MT0_PWM),
1351 PINMUX_IPSR_DATA(IP11_23_21, SPA_TDI),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001352 PINMUX_IPSR_MSEL(IP11_23_21, HSPI_RX1_D, SEL_HSPI1_3),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001353 PINMUX_IPSR_DATA(IP11_26_24, VI1_G0),
1354 PINMUX_IPSR_DATA(IP11_26_24, VI3_DATA0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001355 PINMUX_IPSR_DATA(IP11_26_24, TS_SCK1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001356 PINMUX_IPSR_MSEL(IP11_26_24, DREQ2_B, SEL_EXBUS2_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001357 PINMUX_IPSR_DATA(IP11_26_24, TX2),
1358 PINMUX_IPSR_DATA(IP11_26_24, SPA_TDO),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001359 PINMUX_IPSR_MSEL(IP11_26_24, HCTS0_B, SEL_HSCIF0_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001360 PINMUX_IPSR_DATA(IP11_29_27, VI1_G1),
1361 PINMUX_IPSR_DATA(IP11_29_27, VI3_DATA1),
1362 PINMUX_IPSR_DATA(IP11_29_27, SSI_SCK1),
1363 PINMUX_IPSR_DATA(IP11_29_27, TS_SDEN1),
1364 PINMUX_IPSR_DATA(IP11_29_27, DACK2_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001365 PINMUX_IPSR_MSEL(IP11_29_27, RX2, SEL_SCIF2_0),
1366 PINMUX_IPSR_MSEL(IP11_29_27, HRTS0_B, SEL_HSCIF0_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001367
1368 PINMUX_IPSR_DATA(IP12_2_0, VI1_G2),
1369 PINMUX_IPSR_DATA(IP12_2_0, VI3_DATA2),
1370 PINMUX_IPSR_DATA(IP12_2_0, SSI_WS1),
1371 PINMUX_IPSR_DATA(IP12_2_0, TS_SPSYNC1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001372 PINMUX_IPSR_MSEL(IP12_2_0, SCK2, SEL_SCIF2_0),
1373 PINMUX_IPSR_MSEL(IP12_2_0, HSCK0_B, SEL_HSCIF0_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001374 PINMUX_IPSR_DATA(IP12_5_3, VI1_G3),
1375 PINMUX_IPSR_DATA(IP12_5_3, VI3_DATA3),
1376 PINMUX_IPSR_DATA(IP12_5_3, SSI_SCK2),
1377 PINMUX_IPSR_DATA(IP12_5_3, TS_SDAT1),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001378 PINMUX_IPSR_MSEL(IP12_5_3, SCL1_C, SEL_I2C1_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001379 PINMUX_IPSR_DATA(IP12_5_3, HTX0_B),
1380 PINMUX_IPSR_DATA(IP12_8_6, VI1_G4),
1381 PINMUX_IPSR_DATA(IP12_8_6, VI3_DATA4),
1382 PINMUX_IPSR_DATA(IP12_8_6, SSI_WS2),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001383 PINMUX_IPSR_MSEL(IP12_8_6, SDA1_C, SEL_I2C1_2),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001384 PINMUX_IPSR_DATA(IP12_8_6, SIM_RST_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001385 PINMUX_IPSR_MSEL(IP12_8_6, HRX0_B, SEL_HSCIF0_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001386 PINMUX_IPSR_DATA(IP12_11_9, VI1_G5),
1387 PINMUX_IPSR_DATA(IP12_11_9, VI3_DATA5),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001388 PINMUX_IPSR_MSEL(IP12_11_9, GPS_CLK, SEL_GPS_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001389 PINMUX_IPSR_DATA(IP12_11_9, FSE),
1390 PINMUX_IPSR_DATA(IP12_11_9, TX4_B),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001391 PINMUX_IPSR_MSEL(IP12_11_9, SIM_D_B, SEL_SIM_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001392 PINMUX_IPSR_DATA(IP12_14_12, VI1_G6),
1393 PINMUX_IPSR_DATA(IP12_14_12, VI3_DATA6),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001394 PINMUX_IPSR_MSEL(IP12_14_12, GPS_SIGN, SEL_GPS_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001395 PINMUX_IPSR_DATA(IP12_14_12, FRB),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001396 PINMUX_IPSR_MSEL(IP12_14_12, RX4_B, SEL_SCIF4_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001397 PINMUX_IPSR_DATA(IP12_14_12, SIM_CLK_B),
1398 PINMUX_IPSR_DATA(IP12_17_15, VI1_G7),
1399 PINMUX_IPSR_DATA(IP12_17_15, VI3_DATA7),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001400 PINMUX_IPSR_MSEL(IP12_17_15, GPS_MAG, SEL_GPS_0),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001401 PINMUX_IPSR_DATA(IP12_17_15, FCE),
Kuninori Morimoto75915142015-09-03 02:50:58 +00001402 PINMUX_IPSR_MSEL(IP12_17_15, SCK4_B, SEL_SCIF4_1),
Laurent Pinchart881023d2012-12-15 23:51:22 +01001403};
1404
Laurent Pinchart44a45b52013-12-16 20:25:17 +01001405static const struct sh_pfc_pin pinmux_pins[] = {
Laurent Pinchart881023d2012-12-15 23:51:22 +01001406 PINMUX_GPIO_GP_ALL(),
Laurent Pincharta373ed02012-11-29 13:24:07 +01001407};
1408
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001409/* - DU0 -------------------------------------------------------------------- */
1410static const unsigned int du0_rgb666_pins[] = {
1411 /* R[7:2], G[7:2], B[7:2] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001412 RCAR_GP_PIN(5, 28), RCAR_GP_PIN(5, 27), RCAR_GP_PIN(5, 26),
1413 RCAR_GP_PIN(5, 25), RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 23),
1414 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 1), RCAR_GP_PIN(6, 0),
1415 RCAR_GP_PIN(5, 31), RCAR_GP_PIN(5, 30), RCAR_GP_PIN(5, 29),
1416 RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
1417 RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 3),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001418};
1419static const unsigned int du0_rgb666_mux[] = {
1420 DU0_DR7_MARK, DU0_DR6_MARK, DU0_DR5_MARK, DU0_DR4_MARK,
1421 DU0_DR3_MARK, DU0_DR2_MARK,
1422 DU0_DG7_MARK, DU0_DG6_MARK, DU0_DG5_MARK, DU0_DG4_MARK,
1423 DU0_DG3_MARK, DU0_DG2_MARK,
1424 DU0_DB7_MARK, DU0_DB6_MARK, DU0_DB5_MARK, DU0_DB4_MARK,
1425 DU0_DB3_MARK, DU0_DB2_MARK,
1426};
1427static const unsigned int du0_rgb888_pins[] = {
1428 /* R[7:0], G[7:0], B[7:0] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001429 RCAR_GP_PIN(5, 28), RCAR_GP_PIN(5, 27), RCAR_GP_PIN(5, 26),
1430 RCAR_GP_PIN(5, 25), RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 23),
1431 RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 23), RCAR_GP_PIN(6, 2),
1432 RCAR_GP_PIN(6, 1), RCAR_GP_PIN(6, 0), RCAR_GP_PIN(5, 31),
1433 RCAR_GP_PIN(5, 30), RCAR_GP_PIN(5, 29), RCAR_GP_PIN(0, 26),
1434 RCAR_GP_PIN(0, 25), RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 7),
1435 RCAR_GP_PIN(6, 6), RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 4),
1436 RCAR_GP_PIN(6, 3), RCAR_GP_PIN(0, 28), RCAR_GP_PIN(0, 27),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001437};
1438static const unsigned int du0_rgb888_mux[] = {
1439 DU0_DR7_MARK, DU0_DR6_MARK, DU0_DR5_MARK, DU0_DR4_MARK,
1440 DU0_DR3_MARK, DU0_DR2_MARK, DU0_DR1_MARK, DU0_DR0_MARK,
1441 DU0_DG7_MARK, DU0_DG6_MARK, DU0_DG5_MARK, DU0_DG4_MARK,
1442 DU0_DG3_MARK, DU0_DG2_MARK, DU0_DG1_MARK, DU0_DG0_MARK,
1443 DU0_DB7_MARK, DU0_DB6_MARK, DU0_DB5_MARK, DU0_DB4_MARK,
1444 DU0_DB3_MARK, DU0_DB2_MARK, DU0_DB1_MARK, DU0_DB0_MARK,
1445};
Laurent Pinchartba774cc2013-03-27 11:06:37 +01001446static const unsigned int du0_clk_in_pins[] = {
1447 /* CLKIN */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001448 RCAR_GP_PIN(0, 29),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001449};
Laurent Pinchartba774cc2013-03-27 11:06:37 +01001450static const unsigned int du0_clk_in_mux[] = {
1451 DU0_DOTCLKIN_MARK,
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001452};
Laurent Pinchartba774cc2013-03-27 11:06:37 +01001453static const unsigned int du0_clk_out_0_pins[] = {
1454 /* CLKOUT */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001455 RCAR_GP_PIN(5, 20),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001456};
Laurent Pinchartba774cc2013-03-27 11:06:37 +01001457static const unsigned int du0_clk_out_0_mux[] = {
1458 DU0_DOTCLKOUT0_MARK,
1459};
1460static const unsigned int du0_clk_out_1_pins[] = {
1461 /* CLKOUT */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001462 RCAR_GP_PIN(0, 30),
Laurent Pinchartba774cc2013-03-27 11:06:37 +01001463};
1464static const unsigned int du0_clk_out_1_mux[] = {
1465 DU0_DOTCLKOUT1_MARK,
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001466};
1467static const unsigned int du0_sync_0_pins[] = {
1468 /* VSYNC, HSYNC, DISP */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001469 RCAR_GP_PIN(5, 22), RCAR_GP_PIN(5, 21), RCAR_GP_PIN(0, 31),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001470};
1471static const unsigned int du0_sync_0_mux[] = {
1472 DU0_EXHSYNC_DU0_HSYNC_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK,
1473 DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK
1474};
1475static const unsigned int du0_sync_1_pins[] = {
1476 /* VSYNC, HSYNC, DISP */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001477 RCAR_GP_PIN(5, 22), RCAR_GP_PIN(5, 21), RCAR_GP_PIN(1, 0),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001478};
1479static const unsigned int du0_sync_1_mux[] = {
1480 DU0_EXHSYNC_DU0_HSYNC_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK,
1481 DU0_DISP_MARK
1482};
1483static const unsigned int du0_oddf_pins[] = {
1484 /* ODDF */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001485 RCAR_GP_PIN(0, 31),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001486};
1487static const unsigned int du0_oddf_mux[] = {
1488 DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK
1489};
1490static const unsigned int du0_cde_pins[] = {
1491 /* CDE */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001492 RCAR_GP_PIN(1, 1),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001493};
1494static const unsigned int du0_cde_mux[] = {
1495 DU0_CDE_MARK
1496};
1497/* - DU1 -------------------------------------------------------------------- */
1498static const unsigned int du1_rgb666_pins[] = {
1499 /* R[7:2], G[7:2], B[7:2] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001500 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 7),
1501 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 4),
1502 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 15),
1503 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 12),
1504 RCAR_GP_PIN(1, 25), RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 23),
1505 RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 20),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001506};
1507static const unsigned int du1_rgb666_mux[] = {
1508 DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
1509 DU1_DR3_MARK, DU1_DR2_MARK,
1510 DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
1511 DU1_DG3_MARK, DU1_DG2_MARK,
1512 DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
1513 DU1_DB3_MARK, DU1_DB2_MARK,
1514};
1515static const unsigned int du1_rgb888_pins[] = {
1516 /* R[7:0], G[7:0], B[7:0] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001517 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 7),
1518 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 4),
1519 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 17),
1520 RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14),
1521 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 11),
1522 RCAR_GP_PIN(1, 0), RCAR_GP_PIN(1, 25), RCAR_GP_PIN(1, 24),
1523 RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21),
1524 RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001525};
1526static const unsigned int du1_rgb888_mux[] = {
1527 DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
1528 DU1_DR3_MARK, DU1_DR2_MARK, DU1_DR1_MARK, DU1_DR0_MARK,
1529 DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
1530 DU1_DG3_MARK, DU1_DG2_MARK, DU1_DG1_MARK, DU1_DG0_MARK,
1531 DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
1532 DU1_DB3_MARK, DU1_DB2_MARK, DU1_DB1_MARK, DU1_DB0_MARK,
1533};
Laurent Pinchartba774cc2013-03-27 11:06:37 +01001534static const unsigned int du1_clk_in_pins[] = {
1535 /* CLKIN */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001536 RCAR_GP_PIN(1, 26),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001537};
Laurent Pinchartba774cc2013-03-27 11:06:37 +01001538static const unsigned int du1_clk_in_mux[] = {
1539 DU1_DOTCLKIN_MARK,
1540};
1541static const unsigned int du1_clk_out_pins[] = {
1542 /* CLKOUT */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001543 RCAR_GP_PIN(1, 27),
Laurent Pinchartba774cc2013-03-27 11:06:37 +01001544};
1545static const unsigned int du1_clk_out_mux[] = {
1546 DU1_DOTCLKOUT_MARK,
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001547};
1548static const unsigned int du1_sync_0_pins[] = {
1549 /* VSYNC, HSYNC, DISP */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001550 RCAR_GP_PIN(1, 29), RCAR_GP_PIN(1, 28), RCAR_GP_PIN(1, 30),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001551};
1552static const unsigned int du1_sync_0_mux[] = {
1553 DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK,
1554 DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK
1555};
1556static const unsigned int du1_sync_1_pins[] = {
1557 /* VSYNC, HSYNC, DISP */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001558 RCAR_GP_PIN(1, 29), RCAR_GP_PIN(1, 28), RCAR_GP_PIN(1, 31),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001559};
1560static const unsigned int du1_sync_1_mux[] = {
1561 DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK,
1562 DU1_DISP_MARK
1563};
1564static const unsigned int du1_oddf_pins[] = {
1565 /* ODDF */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001566 RCAR_GP_PIN(1, 30),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001567};
1568static const unsigned int du1_oddf_mux[] = {
1569 DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK
1570};
1571static const unsigned int du1_cde_pins[] = {
1572 /* CDE */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001573 RCAR_GP_PIN(2, 0),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01001574};
1575static const unsigned int du1_cde_mux[] = {
1576 DU1_CDE_MARK
1577};
Sergei Shtylyoveca4e3b2013-05-08 23:17:33 +00001578/* - Ether ------------------------------------------------------------------ */
1579static const unsigned int ether_rmii_pins[] = {
1580 /*
1581 * ETH_TXD0, ETH_TXD1, ETH_TX_EN, ETH_REFCLK,
1582 * ETH_RXD0, ETH_RXD1, ETH_CRS_DV, ETH_RX_ER,
1583 * ETH_MDIO, ETH_MDC
1584 */
1585 RCAR_GP_PIN(2, 27), RCAR_GP_PIN(2, 16), RCAR_GP_PIN(2, 18),
1586 RCAR_GP_PIN(2, 26),
1587 RCAR_GP_PIN(2, 20), RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 17),
1588 RCAR_GP_PIN(2, 19),
1589 RCAR_GP_PIN(2, 29), RCAR_GP_PIN(2, 28),
1590};
1591static const unsigned int ether_rmii_mux[] = {
1592 ETH_TXD0_MARK, ETH_TXD1_MARK, ETH_TX_EN_MARK, ETH_REFCLK_MARK,
1593 ETH_RXD0_MARK, ETH_RXD1_MARK, ETH_CRS_DV_MARK, ETH_RX_ER_MARK,
1594 ETH_MDIO_MARK, ETH_MDC_MARK,
1595};
1596static const unsigned int ether_link_pins[] = {
1597 /* ETH_LINK */
1598 RCAR_GP_PIN(2, 24),
1599};
1600static const unsigned int ether_link_mux[] = {
1601 ETH_LINK_MARK,
1602};
1603static const unsigned int ether_magic_pins[] = {
1604 /* ETH_MAGIC */
1605 RCAR_GP_PIN(2, 25),
1606};
1607static const unsigned int ether_magic_mux[] = {
1608 ETH_MAGIC_MARK,
1609};
Laurent Pinchartf5162382013-03-06 19:04:43 +01001610/* - HSPI0 ------------------------------------------------------------------ */
1611static const unsigned int hspi0_pins[] = {
1612 /* CLK, CS, RX, TX */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001613 RCAR_GP_PIN(4, 22), RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 25),
1614 RCAR_GP_PIN(4, 24),
Laurent Pinchartf5162382013-03-06 19:04:43 +01001615};
1616static const unsigned int hspi0_mux[] = {
1617 HSPI_CLK0_MARK, HSPI_CS0_MARK, HSPI_RX0_MARK, HSPI_TX0_MARK,
1618};
1619/* - HSPI1 ------------------------------------------------------------------ */
1620static const unsigned int hspi1_pins[] = {
1621 /* CLK, CS, RX, TX */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001622 RCAR_GP_PIN(1, 31), RCAR_GP_PIN(1, 26), RCAR_GP_PIN(2, 0),
1623 RCAR_GP_PIN(1, 30),
Laurent Pinchartf5162382013-03-06 19:04:43 +01001624};
1625static const unsigned int hspi1_mux[] = {
1626 HSPI_CLK1_MARK, HSPI_CS1_MARK, HSPI_RX1_MARK, HSPI_TX1_MARK,
1627};
1628static const unsigned int hspi1_b_pins[] = {
1629 /* CLK, CS, RX, TX */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001630 RCAR_GP_PIN(2, 26), RCAR_GP_PIN(2, 27), RCAR_GP_PIN(2, 29),
1631 RCAR_GP_PIN(2, 28),
Laurent Pinchartf5162382013-03-06 19:04:43 +01001632};
1633static const unsigned int hspi1_b_mux[] = {
1634 HSPI_CLK1_B_MARK, HSPI_CS1_B_MARK, HSPI_RX1_B_MARK, HSPI_TX1_B_MARK,
1635};
1636static const unsigned int hspi1_c_pins[] = {
1637 /* CLK, CS, RX, TX */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001638 RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 16),
1639 RCAR_GP_PIN(4, 15),
Laurent Pinchartf5162382013-03-06 19:04:43 +01001640};
1641static const unsigned int hspi1_c_mux[] = {
1642 HSPI_CLK1_C_MARK, HSPI_CS1_C_MARK, HSPI_RX1_C_MARK, HSPI_TX1_C_MARK,
1643};
1644static const unsigned int hspi1_d_pins[] = {
1645 /* CLK, CS, RX, TX */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001646 RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 8),
1647 RCAR_GP_PIN(3, 7),
Laurent Pinchartf5162382013-03-06 19:04:43 +01001648};
1649static const unsigned int hspi1_d_mux[] = {
1650 HSPI_CLK1_D_MARK, HSPI_CS1_D_MARK, HSPI_RX1_D_MARK, HSPI_TX1_D_MARK,
1651};
1652/* - HSPI2 ------------------------------------------------------------------ */
1653static const unsigned int hspi2_pins[] = {
1654 /* CLK, CS, RX, TX */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001655 RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
1656 RCAR_GP_PIN(0, 14),
Laurent Pinchartf5162382013-03-06 19:04:43 +01001657};
1658static const unsigned int hspi2_mux[] = {
1659 HSPI_CLK2_MARK, HSPI_CS2_MARK, HSPI_RX2_MARK, HSPI_TX2_MARK,
1660};
1661static const unsigned int hspi2_b_pins[] = {
1662 /* CLK, CS, RX, TX */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001663 RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 13), RCAR_GP_PIN(0, 8),
1664 RCAR_GP_PIN(0, 6),
Laurent Pinchartf5162382013-03-06 19:04:43 +01001665};
1666static const unsigned int hspi2_b_mux[] = {
1667 HSPI_CLK2_B_MARK, HSPI_CS2_B_MARK, HSPI_RX2_B_MARK, HSPI_TX2_B_MARK,
1668};
Phil Edworthy528e9472013-07-17 12:00:48 +01001669/* - I2C1 ------------------------------------------------------------------ */
1670static const unsigned int i2c1_pins[] = {
1671 /* SCL, SDA, */
1672 RCAR_GP_PIN(0, 27), RCAR_GP_PIN(0, 28),
1673};
1674static const unsigned int i2c1_mux[] = {
1675 SCL1_MARK, SDA1_MARK,
1676};
1677static const unsigned int i2c1_b_pins[] = {
1678 /* SCL, SDA, */
1679 RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 11),
1680};
1681static const unsigned int i2c1_b_mux[] = {
1682 SCL1_B_MARK, SDA1_B_MARK,
1683};
1684static const unsigned int i2c1_c_pins[] = {
1685 /* SCL, SDA, */
1686 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
1687};
1688static const unsigned int i2c1_c_mux[] = {
1689 SCL1_C_MARK, SDA1_C_MARK,
1690};
1691static const unsigned int i2c1_d_pins[] = {
1692 /* SCL, SDA, */
1693 RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 27),
1694};
1695static const unsigned int i2c1_d_mux[] = {
1696 SCL1_D_MARK, SDA1_D_MARK,
1697};
1698/* - I2C2 ------------------------------------------------------------------ */
1699static const unsigned int i2c2_pins[] = {
1700 /* SCL, SDA, */
1701 RCAR_GP_PIN(0, 25), RCAR_GP_PIN(0, 26),
1702};
1703static const unsigned int i2c2_mux[] = {
1704 SCL2_MARK, SDA2_MARK,
1705};
1706static const unsigned int i2c2_b_pins[] = {
1707 /* SCL, SDA, */
1708 RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
1709};
1710static const unsigned int i2c2_b_mux[] = {
1711 SCL2_B_MARK, SDA2_B_MARK,
1712};
1713static const unsigned int i2c2_c_pins[] = {
1714 /* SCL, SDA */
1715 RCAR_GP_PIN(0, 31), RCAR_GP_PIN(0, 30),
1716};
1717static const unsigned int i2c2_c_mux[] = {
1718 SCL2_C_MARK, SDA2_C_MARK,
1719};
1720static const unsigned int i2c2_d_pins[] = {
1721 /* SCL, SDA */
1722 RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 25),
1723};
1724static const unsigned int i2c2_d_mux[] = {
1725 SCL2_D_MARK, SDA2_D_MARK,
1726};
1727/* - I2C3 ------------------------------------------------------------------ */
1728static const unsigned int i2c3_pins[] = {
1729 /* SCL, SDA, */
1730 RCAR_GP_PIN(3, 0), RCAR_GP_PIN(2, 30),
1731};
1732static const unsigned int i2c3_mux[] = {
1733 SCL3_MARK, SDA3_MARK,
1734};
1735static const unsigned int i2c3_b_pins[] = {
1736 /* SCL, SDA, */
1737 RCAR_GP_PIN(0, 29), RCAR_GP_PIN(0, 30),
1738};
1739static const unsigned int i2c3_b_mux[] = {
1740 SCL3_B_MARK, SDA3_B_MARK,
1741};
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001742/* - INTC ------------------------------------------------------------------- */
1743static const unsigned int intc_irq0_pins[] = {
1744 /* IRQ */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001745 RCAR_GP_PIN(2, 14),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001746};
1747static const unsigned int intc_irq0_mux[] = {
1748 IRQ0_MARK,
1749};
1750static const unsigned int intc_irq0_b_pins[] = {
1751 /* IRQ */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001752 RCAR_GP_PIN(4, 13),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001753};
1754static const unsigned int intc_irq0_b_mux[] = {
1755 IRQ0_B_MARK,
1756};
1757static const unsigned int intc_irq1_pins[] = {
1758 /* IRQ */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001759 RCAR_GP_PIN(2, 15),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001760};
1761static const unsigned int intc_irq1_mux[] = {
1762 IRQ1_MARK,
1763};
1764static const unsigned int intc_irq1_b_pins[] = {
1765 /* IRQ */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001766 RCAR_GP_PIN(4, 14),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001767};
1768static const unsigned int intc_irq1_b_mux[] = {
1769 IRQ1_B_MARK,
1770};
1771static const unsigned int intc_irq2_pins[] = {
1772 /* IRQ */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001773 RCAR_GP_PIN(2, 24),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001774};
1775static const unsigned int intc_irq2_mux[] = {
1776 IRQ2_MARK,
1777};
1778static const unsigned int intc_irq2_b_pins[] = {
1779 /* IRQ */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001780 RCAR_GP_PIN(4, 15),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001781};
1782static const unsigned int intc_irq2_b_mux[] = {
1783 IRQ2_B_MARK,
1784};
1785static const unsigned int intc_irq3_pins[] = {
1786 /* IRQ */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001787 RCAR_GP_PIN(2, 25),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001788};
1789static const unsigned int intc_irq3_mux[] = {
1790 IRQ3_MARK,
1791};
1792static const unsigned int intc_irq3_b_pins[] = {
1793 /* IRQ */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001794 RCAR_GP_PIN(4, 16),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01001795};
1796static const unsigned int intc_irq3_b_mux[] = {
1797 IRQ3_B_MARK,
1798};
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001799/* - LSBC ------------------------------------------------------------------- */
1800static const unsigned int lbsc_cs0_pins[] = {
1801 /* CS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001802 RCAR_GP_PIN(0, 13),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001803};
1804static const unsigned int lbsc_cs0_mux[] = {
1805 CS0_MARK,
1806};
1807static const unsigned int lbsc_cs1_pins[] = {
1808 /* CS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001809 RCAR_GP_PIN(0, 14),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001810};
1811static const unsigned int lbsc_cs1_mux[] = {
1812 CS1_A26_MARK,
1813};
1814static const unsigned int lbsc_ex_cs0_pins[] = {
1815 /* CS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001816 RCAR_GP_PIN(0, 15),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001817};
1818static const unsigned int lbsc_ex_cs0_mux[] = {
1819 EX_CS0_MARK,
1820};
1821static const unsigned int lbsc_ex_cs1_pins[] = {
1822 /* CS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001823 RCAR_GP_PIN(0, 16),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001824};
1825static const unsigned int lbsc_ex_cs1_mux[] = {
1826 EX_CS1_MARK,
1827};
1828static const unsigned int lbsc_ex_cs2_pins[] = {
1829 /* CS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001830 RCAR_GP_PIN(0, 17),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001831};
1832static const unsigned int lbsc_ex_cs2_mux[] = {
1833 EX_CS2_MARK,
1834};
1835static const unsigned int lbsc_ex_cs3_pins[] = {
1836 /* CS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001837 RCAR_GP_PIN(0, 18),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001838};
1839static const unsigned int lbsc_ex_cs3_mux[] = {
1840 EX_CS3_MARK,
1841};
1842static const unsigned int lbsc_ex_cs4_pins[] = {
1843 /* CS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001844 RCAR_GP_PIN(0, 19),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001845};
1846static const unsigned int lbsc_ex_cs4_mux[] = {
1847 EX_CS4_MARK,
1848};
1849static const unsigned int lbsc_ex_cs5_pins[] = {
1850 /* CS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001851 RCAR_GP_PIN(0, 20),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01001852};
1853static const unsigned int lbsc_ex_cs5_mux[] = {
1854 EX_CS5_MARK,
1855};
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001856/* - MMCIF ------------------------------------------------------------------ */
1857static const unsigned int mmc0_data1_pins[] = {
1858 /* D[0] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001859 RCAR_GP_PIN(0, 19),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001860};
1861static const unsigned int mmc0_data1_mux[] = {
1862 MMC0_D0_MARK,
1863};
1864static const unsigned int mmc0_data4_pins[] = {
1865 /* D[0:3] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001866 RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 21),
1867 RCAR_GP_PIN(0, 2),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001868};
1869static const unsigned int mmc0_data4_mux[] = {
1870 MMC0_D0_MARK, MMC0_D1_MARK, MMC0_D2_MARK, MMC0_D3_MARK,
1871};
1872static const unsigned int mmc0_data8_pins[] = {
1873 /* D[0:7] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001874 RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 21),
1875 RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
1876 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 16),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001877};
1878static const unsigned int mmc0_data8_mux[] = {
1879 MMC0_D0_MARK, MMC0_D1_MARK, MMC0_D2_MARK, MMC0_D3_MARK,
1880 MMC0_D4_MARK, MMC0_D5_MARK, MMC0_D6_MARK, MMC0_D7_MARK,
1881};
1882static const unsigned int mmc0_ctrl_pins[] = {
1883 /* CMD, CLK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001884 RCAR_GP_PIN(0, 18), RCAR_GP_PIN(0, 17),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001885};
1886static const unsigned int mmc0_ctrl_mux[] = {
1887 MMC0_CMD_MARK, MMC0_CLK_MARK,
1888};
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001889static const unsigned int mmc1_data1_pins[] = {
1890 /* D[0] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001891 RCAR_GP_PIN(2, 8),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001892};
1893static const unsigned int mmc1_data1_mux[] = {
1894 MMC1_D0_MARK,
1895};
1896static const unsigned int mmc1_data4_pins[] = {
1897 /* D[0:3] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001898 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10),
1899 RCAR_GP_PIN(2, 11),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001900};
1901static const unsigned int mmc1_data4_mux[] = {
1902 MMC1_D0_MARK, MMC1_D1_MARK, MMC1_D2_MARK, MMC1_D3_MARK,
1903};
1904static const unsigned int mmc1_data8_pins[] = {
1905 /* D[0:7] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001906 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10),
1907 RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
1908 RCAR_GP_PIN(2, 16), RCAR_GP_PIN(2, 17),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001909};
1910static const unsigned int mmc1_data8_mux[] = {
1911 MMC1_D0_MARK, MMC1_D1_MARK, MMC1_D2_MARK, MMC1_D3_MARK,
1912 MMC1_D4_MARK, MMC1_D5_MARK, MMC1_D6_MARK, MMC1_D7_MARK,
1913};
1914static const unsigned int mmc1_ctrl_pins[] = {
1915 /* CMD, CLK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001916 RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 1),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01001917};
1918static const unsigned int mmc1_ctrl_mux[] = {
1919 MMC1_CMD_MARK, MMC1_CLK_MARK,
1920};
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001921/* - SCIF0 ------------------------------------------------------------------ */
1922static const unsigned int scif0_data_pins[] = {
1923 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001924 RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 24),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001925};
1926static const unsigned int scif0_data_mux[] = {
1927 RX0_MARK, TX0_MARK,
1928};
1929static const unsigned int scif0_clk_pins[] = {
1930 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001931 RCAR_GP_PIN(4, 28),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001932};
1933static const unsigned int scif0_clk_mux[] = {
1934 SCK0_MARK,
1935};
1936static const unsigned int scif0_ctrl_pins[] = {
1937 /* RTS, CTS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001938 RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 22),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001939};
1940static const unsigned int scif0_ctrl_mux[] = {
1941 RTS0_TANS_MARK, CTS0_MARK,
1942};
1943static const unsigned int scif0_data_b_pins[] = {
1944 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001945 RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 19),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001946};
1947static const unsigned int scif0_data_b_mux[] = {
1948 RX0_B_MARK, TX0_B_MARK,
1949};
1950static const unsigned int scif0_clk_b_pins[] = {
1951 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001952 RCAR_GP_PIN(1, 1),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001953};
1954static const unsigned int scif0_clk_b_mux[] = {
1955 SCK0_B_MARK,
1956};
1957static const unsigned int scif0_ctrl_b_pins[] = {
1958 /* RTS, CTS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001959 RCAR_GP_PIN(0, 18), RCAR_GP_PIN(0, 11),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001960};
1961static const unsigned int scif0_ctrl_b_mux[] = {
1962 RTS0_B_TANS_B_MARK, CTS0_B_MARK,
1963};
1964static const unsigned int scif0_data_c_pins[] = {
1965 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001966 RCAR_GP_PIN(4, 18), RCAR_GP_PIN(4, 19),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001967};
1968static const unsigned int scif0_data_c_mux[] = {
1969 RX0_C_MARK, TX0_C_MARK,
1970};
1971static const unsigned int scif0_clk_c_pins[] = {
1972 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001973 RCAR_GP_PIN(4, 17),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001974};
1975static const unsigned int scif0_clk_c_mux[] = {
1976 SCK0_C_MARK,
1977};
1978static const unsigned int scif0_ctrl_c_pins[] = {
1979 /* RTS, CTS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001980 RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 20),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001981};
1982static const unsigned int scif0_ctrl_c_mux[] = {
1983 RTS0_C_TANS_C_MARK, CTS0_C_MARK,
1984};
1985static const unsigned int scif0_data_d_pins[] = {
1986 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001987 RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 10),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001988};
1989static const unsigned int scif0_data_d_mux[] = {
1990 RX0_D_MARK, TX0_D_MARK,
1991};
1992static const unsigned int scif0_clk_d_pins[] = {
1993 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02001994 RCAR_GP_PIN(1, 18),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01001995};
1996static const unsigned int scif0_clk_d_mux[] = {
1997 SCK0_D_MARK,
1998};
1999static const unsigned int scif0_ctrl_d_pins[] = {
2000 /* RTS, CTS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002001 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 3),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002002};
2003static const unsigned int scif0_ctrl_d_mux[] = {
2004 RTS0_D_TANS_D_MARK, CTS0_D_MARK,
2005};
2006/* - SCIF1 ------------------------------------------------------------------ */
2007static const unsigned int scif1_data_pins[] = {
2008 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002009 RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 20),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002010};
2011static const unsigned int scif1_data_mux[] = {
2012 RX1_MARK, TX1_MARK,
2013};
2014static const unsigned int scif1_clk_pins[] = {
2015 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002016 RCAR_GP_PIN(4, 17),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002017};
2018static const unsigned int scif1_clk_mux[] = {
2019 SCK1_MARK,
2020};
2021static const unsigned int scif1_ctrl_pins[] = {
2022 /* RTS, CTS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002023 RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 18),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002024};
2025static const unsigned int scif1_ctrl_mux[] = {
2026 RTS1_TANS_MARK, CTS1_MARK,
2027};
2028static const unsigned int scif1_data_b_pins[] = {
2029 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002030 RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 18),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002031};
2032static const unsigned int scif1_data_b_mux[] = {
2033 RX1_B_MARK, TX1_B_MARK,
2034};
2035static const unsigned int scif1_clk_b_pins[] = {
2036 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002037 RCAR_GP_PIN(3, 17),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002038};
2039static const unsigned int scif1_clk_b_mux[] = {
2040 SCK1_B_MARK,
2041};
2042static const unsigned int scif1_ctrl_b_pins[] = {
2043 /* RTS, CTS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002044 RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 20),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002045};
2046static const unsigned int scif1_ctrl_b_mux[] = {
2047 RTS1_B_TANS_B_MARK, CTS1_B_MARK,
2048};
2049static const unsigned int scif1_data_c_pins[] = {
2050 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002051 RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 2),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002052};
2053static const unsigned int scif1_data_c_mux[] = {
2054 RX1_C_MARK, TX1_C_MARK,
2055};
2056static const unsigned int scif1_clk_c_pins[] = {
2057 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002058 RCAR_GP_PIN(2, 22),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002059};
2060static const unsigned int scif1_clk_c_mux[] = {
2061 SCK1_C_MARK,
2062};
2063static const unsigned int scif1_ctrl_c_pins[] = {
2064 /* RTS, CTS */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002065 RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002066};
2067static const unsigned int scif1_ctrl_c_mux[] = {
2068 RTS1_C_TANS_C_MARK, CTS1_C_MARK,
2069};
2070/* - SCIF2 ------------------------------------------------------------------ */
2071static const unsigned int scif2_data_pins[] = {
2072 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002073 RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 9),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002074};
2075static const unsigned int scif2_data_mux[] = {
2076 RX2_MARK, TX2_MARK,
2077};
2078static const unsigned int scif2_clk_pins[] = {
2079 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002080 RCAR_GP_PIN(3, 11),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002081};
2082static const unsigned int scif2_clk_mux[] = {
2083 SCK2_MARK,
2084};
2085static const unsigned int scif2_data_b_pins[] = {
2086 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002087 RCAR_GP_PIN(3, 24), RCAR_GP_PIN(3, 23),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002088};
2089static const unsigned int scif2_data_b_mux[] = {
2090 RX2_B_MARK, TX2_B_MARK,
2091};
2092static const unsigned int scif2_clk_b_pins[] = {
2093 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002094 RCAR_GP_PIN(3, 22),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002095};
2096static const unsigned int scif2_clk_b_mux[] = {
2097 SCK2_B_MARK,
2098};
2099static const unsigned int scif2_data_c_pins[] = {
2100 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002101 RCAR_GP_PIN(1, 1), RCAR_GP_PIN(0, 31),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002102};
2103static const unsigned int scif2_data_c_mux[] = {
2104 RX2_C_MARK, TX2_C_MARK,
2105};
2106static const unsigned int scif2_clk_c_pins[] = {
2107 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002108 RCAR_GP_PIN(1, 0),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002109};
2110static const unsigned int scif2_clk_c_mux[] = {
2111 SCK2_C_MARK,
2112};
2113static const unsigned int scif2_data_d_pins[] = {
2114 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002115 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(1, 30),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002116};
2117static const unsigned int scif2_data_d_mux[] = {
2118 RX2_D_MARK, TX2_D_MARK,
2119};
2120static const unsigned int scif2_clk_d_pins[] = {
2121 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002122 RCAR_GP_PIN(1, 31),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002123};
2124static const unsigned int scif2_clk_d_mux[] = {
2125 SCK2_D_MARK,
2126};
2127static const unsigned int scif2_data_e_pins[] = {
2128 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002129 RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 19),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002130};
2131static const unsigned int scif2_data_e_mux[] = {
2132 RX2_E_MARK, TX2_E_MARK,
2133};
2134/* - SCIF3 ------------------------------------------------------------------ */
2135static const unsigned int scif3_data_pins[] = {
2136 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002137 RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 8),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002138};
2139static const unsigned int scif3_data_mux[] = {
2140 RX3_IRDA_RX_MARK, TX3_IRDA_TX_MARK,
2141};
2142static const unsigned int scif3_clk_pins[] = {
2143 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002144 RCAR_GP_PIN(4, 7),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002145};
2146static const unsigned int scif3_clk_mux[] = {
2147 SCK3_MARK,
2148};
2149
2150static const unsigned int scif3_data_b_pins[] = {
2151 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002152 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(1, 30),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002153};
2154static const unsigned int scif3_data_b_mux[] = {
2155 RX3_B_IRDA_RX_B_MARK, TX3_B_IRDA_TX_B_MARK,
2156};
2157static const unsigned int scif3_data_c_pins[] = {
2158 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002159 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 12),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002160};
2161static const unsigned int scif3_data_c_mux[] = {
2162 RX3_C_IRDA_RX_C_MARK, TX3C_IRDA_TX_C_MARK,
2163};
2164static const unsigned int scif3_data_d_pins[] = {
2165 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002166 RCAR_GP_PIN(0, 30), RCAR_GP_PIN(0, 29),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002167};
2168static const unsigned int scif3_data_d_mux[] = {
2169 RX3_D_IRDA_RX_D_MARK, TX3_D_IRDA_TX_D_MARK,
2170};
2171static const unsigned int scif3_data_e_pins[] = {
2172 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002173 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002174};
2175static const unsigned int scif3_data_e_mux[] = {
2176 RX3_E_IRDA_RX_E_MARK, TX3_E_IRDA_TX_E_MARK,
2177};
2178static const unsigned int scif3_clk_e_pins[] = {
2179 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002180 RCAR_GP_PIN(1, 10),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002181};
2182static const unsigned int scif3_clk_e_mux[] = {
2183 SCK3_E_MARK,
2184};
2185/* - SCIF4 ------------------------------------------------------------------ */
2186static const unsigned int scif4_data_pins[] = {
2187 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002188 RCAR_GP_PIN(3, 27), RCAR_GP_PIN(3, 26),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002189};
2190static const unsigned int scif4_data_mux[] = {
2191 RX4_MARK, TX4_MARK,
2192};
2193static const unsigned int scif4_clk_pins[] = {
2194 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002195 RCAR_GP_PIN(3, 25),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002196};
2197static const unsigned int scif4_clk_mux[] = {
2198 SCK4_MARK,
2199};
2200static const unsigned int scif4_data_b_pins[] = {
2201 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002202 RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 14),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002203};
2204static const unsigned int scif4_data_b_mux[] = {
2205 RX4_B_MARK, TX4_B_MARK,
2206};
2207static const unsigned int scif4_clk_b_pins[] = {
2208 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002209 RCAR_GP_PIN(3, 16),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002210};
2211static const unsigned int scif4_clk_b_mux[] = {
2212 SCK4_B_MARK,
2213};
2214static const unsigned int scif4_data_c_pins[] = {
2215 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002216 RCAR_GP_PIN(0, 22), RCAR_GP_PIN(0, 21),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002217};
2218static const unsigned int scif4_data_c_mux[] = {
2219 RX4_C_MARK, TX4_C_MARK,
2220};
2221static const unsigned int scif4_data_d_pins[] = {
2222 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002223 RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002224};
2225static const unsigned int scif4_data_d_mux[] = {
2226 RX4_D_MARK, TX4_D_MARK,
2227};
2228/* - SCIF5 ------------------------------------------------------------------ */
2229static const unsigned int scif5_data_pins[] = {
2230 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002231 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002232};
2233static const unsigned int scif5_data_mux[] = {
2234 RX5_MARK, TX5_MARK,
2235};
2236static const unsigned int scif5_clk_pins[] = {
2237 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002238 RCAR_GP_PIN(1, 11),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002239};
2240static const unsigned int scif5_clk_mux[] = {
2241 SCK5_MARK,
2242};
2243static const unsigned int scif5_data_b_pins[] = {
2244 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002245 RCAR_GP_PIN(0, 18), RCAR_GP_PIN(0, 11),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002246};
2247static const unsigned int scif5_data_b_mux[] = {
2248 RX5_B_MARK, TX5_B_MARK,
2249};
2250static const unsigned int scif5_clk_b_pins[] = {
2251 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002252 RCAR_GP_PIN(0, 19),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002253};
2254static const unsigned int scif5_clk_b_mux[] = {
2255 SCK5_B_MARK,
2256};
2257static const unsigned int scif5_data_c_pins[] = {
2258 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002259 RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 23),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002260};
2261static const unsigned int scif5_data_c_mux[] = {
2262 RX5_C_MARK, TX5_C_MARK,
2263};
2264static const unsigned int scif5_clk_c_pins[] = {
2265 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002266 RCAR_GP_PIN(0, 28),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002267};
2268static const unsigned int scif5_clk_c_mux[] = {
2269 SCK5_C_MARK,
2270};
2271static const unsigned int scif5_data_d_pins[] = {
2272 /* RXD, TXD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002273 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 6),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002274};
2275static const unsigned int scif5_data_d_mux[] = {
2276 RX5_D_MARK, TX5_D_MARK,
2277};
2278static const unsigned int scif5_clk_d_pins[] = {
2279 /* SCK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002280 RCAR_GP_PIN(0, 7),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002281};
2282static const unsigned int scif5_clk_d_mux[] = {
2283 SCK5_D_MARK,
2284};
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002285/* - SDHI0 ------------------------------------------------------------------ */
2286static const unsigned int sdhi0_data1_pins[] = {
2287 /* D0 */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002288 RCAR_GP_PIN(3, 21),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002289};
2290static const unsigned int sdhi0_data1_mux[] = {
2291 SD0_DAT0_MARK,
2292};
2293static const unsigned int sdhi0_data4_pins[] = {
2294 /* D[0:3] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002295 RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 23),
2296 RCAR_GP_PIN(3, 24),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002297};
2298static const unsigned int sdhi0_data4_mux[] = {
2299 SD0_DAT0_MARK, SD0_DAT1_MARK, SD0_DAT2_MARK, SD0_DAT3_MARK,
2300};
2301static const unsigned int sdhi0_ctrl_pins[] = {
2302 /* CMD, CLK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002303 RCAR_GP_PIN(3, 18), RCAR_GP_PIN(3, 17),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002304};
2305static const unsigned int sdhi0_ctrl_mux[] = {
2306 SD0_CMD_MARK, SD0_CLK_MARK,
2307};
2308static const unsigned int sdhi0_cd_pins[] = {
2309 /* CD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002310 RCAR_GP_PIN(3, 19),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002311};
2312static const unsigned int sdhi0_cd_mux[] = {
2313 SD0_CD_MARK,
2314};
2315static const unsigned int sdhi0_wp_pins[] = {
2316 /* WP */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002317 RCAR_GP_PIN(3, 20),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002318};
2319static const unsigned int sdhi0_wp_mux[] = {
2320 SD0_WP_MARK,
2321};
2322/* - SDHI1 ------------------------------------------------------------------ */
2323static const unsigned int sdhi1_data1_pins[] = {
2324 /* D0 */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002325 RCAR_GP_PIN(0, 19),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002326};
2327static const unsigned int sdhi1_data1_mux[] = {
2328 SD1_DAT0_MARK,
2329};
2330static const unsigned int sdhi1_data4_pins[] = {
2331 /* D[0:3] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002332 RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 21),
2333 RCAR_GP_PIN(0, 2),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002334};
2335static const unsigned int sdhi1_data4_mux[] = {
2336 SD1_DAT0_MARK, SD1_DAT1_MARK, SD1_DAT2_MARK, SD1_DAT3_MARK,
2337};
2338static const unsigned int sdhi1_ctrl_pins[] = {
2339 /* CMD, CLK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002340 RCAR_GP_PIN(0, 18), RCAR_GP_PIN(0, 17),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002341};
2342static const unsigned int sdhi1_ctrl_mux[] = {
2343 SD1_CMD_MARK, SD1_CLK_MARK,
2344};
2345static const unsigned int sdhi1_cd_pins[] = {
2346 /* CD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002347 RCAR_GP_PIN(0, 10),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002348};
2349static const unsigned int sdhi1_cd_mux[] = {
2350 SD1_CD_MARK,
2351};
2352static const unsigned int sdhi1_wp_pins[] = {
2353 /* WP */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002354 RCAR_GP_PIN(0, 11),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002355};
2356static const unsigned int sdhi1_wp_mux[] = {
2357 SD1_WP_MARK,
2358};
2359/* - SDHI2 ------------------------------------------------------------------ */
2360static const unsigned int sdhi2_data1_pins[] = {
2361 /* D0 */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002362 RCAR_GP_PIN(3, 1),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002363};
2364static const unsigned int sdhi2_data1_mux[] = {
2365 SD2_DAT0_MARK,
2366};
2367static const unsigned int sdhi2_data4_pins[] = {
2368 /* D[0:3] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002369 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
2370 RCAR_GP_PIN(3, 4),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002371};
2372static const unsigned int sdhi2_data4_mux[] = {
2373 SD2_DAT0_MARK, SD2_DAT1_MARK, SD2_DAT2_MARK, SD2_DAT3_MARK,
2374};
2375static const unsigned int sdhi2_ctrl_pins[] = {
2376 /* CMD, CLK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002377 RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 5),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002378};
2379static const unsigned int sdhi2_ctrl_mux[] = {
2380 SD2_CMD_MARK, SD2_CLK_MARK,
2381};
2382static const unsigned int sdhi2_cd_pins[] = {
2383 /* CD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002384 RCAR_GP_PIN(3, 7),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002385};
2386static const unsigned int sdhi2_cd_mux[] = {
2387 SD2_CD_MARK,
2388};
2389static const unsigned int sdhi2_wp_pins[] = {
2390 /* WP */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002391 RCAR_GP_PIN(3, 8),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002392};
2393static const unsigned int sdhi2_wp_mux[] = {
2394 SD2_WP_MARK,
2395};
2396/* - SDHI3 ------------------------------------------------------------------ */
2397static const unsigned int sdhi3_data1_pins[] = {
2398 /* D0 */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002399 RCAR_GP_PIN(1, 18),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002400};
2401static const unsigned int sdhi3_data1_mux[] = {
2402 SD3_DAT0_MARK,
2403};
2404static const unsigned int sdhi3_data4_pins[] = {
2405 /* D[0:3] */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002406 RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 20),
2407 RCAR_GP_PIN(1, 21),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002408};
2409static const unsigned int sdhi3_data4_mux[] = {
2410 SD3_DAT0_MARK, SD3_DAT1_MARK, SD3_DAT2_MARK, SD3_DAT3_MARK,
2411};
2412static const unsigned int sdhi3_ctrl_pins[] = {
2413 /* CMD, CLK */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002414 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002415};
2416static const unsigned int sdhi3_ctrl_mux[] = {
2417 SD3_CMD_MARK, SD3_CLK_MARK,
2418};
2419static const unsigned int sdhi3_cd_pins[] = {
2420 /* CD */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002421 RCAR_GP_PIN(1, 30),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002422};
2423static const unsigned int sdhi3_cd_mux[] = {
2424 SD3_CD_MARK,
2425};
2426static const unsigned int sdhi3_wp_pins[] = {
2427 /* WP */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002428 RCAR_GP_PIN(2, 0),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002429};
2430static const unsigned int sdhi3_wp_mux[] = {
2431 SD3_WP_MARK,
2432};
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002433/* - USB0 ------------------------------------------------------------------- */
2434static const unsigned int usb0_pins[] = {
Laurent Pinchart350753b2013-05-21 12:39:31 +02002435 /* PENC */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002436 RCAR_GP_PIN(4, 26),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002437};
2438static const unsigned int usb0_mux[] = {
Laurent Pinchart350753b2013-05-21 12:39:31 +02002439 USB_PENC0_MARK,
2440};
2441static const unsigned int usb0_ovc_pins[] = {
2442 /* USB_OVC */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002443 RCAR_GP_PIN(4, 22),
Laurent Pinchart350753b2013-05-21 12:39:31 +02002444};
2445static const unsigned int usb0_ovc_mux[] = {
2446 USB_OVC0_MARK,
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002447};
2448/* - USB1 ------------------------------------------------------------------- */
2449static const unsigned int usb1_pins[] = {
Laurent Pinchart350753b2013-05-21 12:39:31 +02002450 /* PENC */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002451 RCAR_GP_PIN(4, 27),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002452};
2453static const unsigned int usb1_mux[] = {
Laurent Pinchart350753b2013-05-21 12:39:31 +02002454 USB_PENC1_MARK,
2455};
2456static const unsigned int usb1_ovc_pins[] = {
2457 /* USB_OVC */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002458 RCAR_GP_PIN(4, 24),
Laurent Pinchart350753b2013-05-21 12:39:31 +02002459};
2460static const unsigned int usb1_ovc_mux[] = {
2461 USB_OVC1_MARK,
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002462};
2463/* - USB2 ------------------------------------------------------------------- */
2464static const unsigned int usb2_pins[] = {
Laurent Pinchart350753b2013-05-21 12:39:31 +02002465 /* PENC */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002466 RCAR_GP_PIN(4, 28),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002467};
2468static const unsigned int usb2_mux[] = {
Laurent Pinchart350753b2013-05-21 12:39:31 +02002469 USB_PENC2_MARK,
2470};
2471static const unsigned int usb2_ovc_pins[] = {
2472 /* USB_OVC */
Laurent Pincharte21ea192013-04-08 12:05:31 +02002473 RCAR_GP_PIN(3, 29),
Laurent Pinchart350753b2013-05-21 12:39:31 +02002474};
2475static const unsigned int usb2_ovc_mux[] = {
2476 USB_OVC2_MARK,
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002477};
Vladimir Barinov54ee73c2013-04-16 22:17:28 +00002478/* - VIN0 ------------------------------------------------------------------- */
2479static const unsigned int vin0_data8_pins[] = {
2480 /* D[0:7] */
2481 RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
2482 RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
2483 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
2484};
2485static const unsigned int vin0_data8_mux[] = {
2486 VI0_DATA0_VI0_B0_MARK, VI0_DATA1_VI0_B1_MARK, VI0_DATA2_VI0_B2_MARK,
2487 VI0_DATA3_VI0_B3_MARK, VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
2488 VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
2489};
2490static const unsigned int vin0_clk_pins[] = {
2491 /* CLK */
2492 RCAR_GP_PIN(2, 1),
2493};
2494static const unsigned int vin0_clk_mux[] = {
2495 VI0_CLK_MARK,
2496};
2497static const unsigned int vin0_sync_pins[] = {
2498 /* HSYNC, VSYNC */
2499 RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 5),
2500};
2501static const unsigned int vin0_sync_mux[] = {
2502 VI0_HSYNC_MARK, VI0_VSYNC_MARK,
2503};
2504/* - VIN1 ------------------------------------------------------------------- */
2505static const unsigned int vin1_data8_pins[] = {
2506 /* D[0:7] */
2507 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
2508 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 6),
2509 RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 8),
2510};
2511static const unsigned int vin1_data8_mux[] = {
2512 VI1_DATA0_VI1_B0_MARK, VI1_DATA1_VI1_B1_MARK, VI1_DATA2_VI1_B2_MARK,
2513 VI1_DATA3_VI1_B3_MARK, VI1_DATA4_VI1_B4_MARK, VI1_DATA5_VI1_B5_MARK,
2514 VI1_DATA6_VI1_B6_MARK, VI1_DATA7_VI1_B7_MARK,
2515};
2516static const unsigned int vin1_clk_pins[] = {
2517 /* CLK */
2518 RCAR_GP_PIN(2, 30),
2519};
2520static const unsigned int vin1_clk_mux[] = {
2521 VI1_CLK_MARK,
2522};
2523static const unsigned int vin1_sync_pins[] = {
2524 /* HSYNC, VSYNC */
2525 RCAR_GP_PIN(2, 31), RCAR_GP_PIN(3, 0),
2526};
2527static const unsigned int vin1_sync_mux[] = {
2528 VI1_HSYNC_MARK, VI1_VSYNC_MARK,
2529};
2530/* - VIN2 ------------------------------------------------------------------- */
2531static const unsigned int vin2_data8_pins[] = {
2532 /* D[0:7] */
2533 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
2534 RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
2535 RCAR_GP_PIN(1, 31), RCAR_GP_PIN(2, 0),
2536};
2537static const unsigned int vin2_data8_mux[] = {
2538 VI2_DATA0_VI2_B0_MARK, VI2_DATA1_VI2_B1_MARK, VI2_DATA2_VI2_B2_MARK,
2539 VI2_DATA3_VI2_B3_MARK, VI2_DATA4_VI2_B4_MARK, VI2_DATA5_VI2_B5_MARK,
2540 VI2_DATA6_VI2_B6_MARK, VI2_DATA7_VI2_B7_MARK,
2541};
2542static const unsigned int vin2_clk_pins[] = {
2543 /* CLK */
2544 RCAR_GP_PIN(1, 30),
2545};
2546static const unsigned int vin2_clk_mux[] = {
2547 VI2_CLK_MARK,
2548};
2549static const unsigned int vin2_sync_pins[] = {
2550 /* HSYNC, VSYNC */
2551 RCAR_GP_PIN(1, 28), RCAR_GP_PIN(1, 29),
2552};
2553static const unsigned int vin2_sync_mux[] = {
2554 VI2_HSYNC_MARK, VI2_VSYNC_MARK,
2555};
2556/* - VIN3 ------------------------------------------------------------------- */
2557static const unsigned int vin3_data8_pins[] = {
2558 /* D[0:7] */
2559 RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
2560 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 14),
2561 RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16),
2562};
2563static const unsigned int vin3_data8_mux[] = {
2564 VI3_DATA0_MARK, VI3_DATA1_MARK, VI3_DATA2_MARK,
2565 VI3_DATA3_MARK, VI3_DATA4_MARK, VI3_DATA5_MARK,
2566 VI3_DATA6_MARK, VI3_DATA7_MARK,
2567};
2568static const unsigned int vin3_clk_pins[] = {
2569 /* CLK */
2570 RCAR_GP_PIN(2, 31),
2571};
2572static const unsigned int vin3_clk_mux[] = {
2573 VI3_CLK_MARK,
2574};
2575static const unsigned int vin3_sync_pins[] = {
2576 /* HSYNC, VSYNC */
2577 RCAR_GP_PIN(1, 28), RCAR_GP_PIN(1, 29),
2578};
2579static const unsigned int vin3_sync_mux[] = {
2580 VI3_HSYNC_MARK, VI3_VSYNC_MARK,
2581};
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002582
2583static const struct sh_pfc_pin_group pinmux_groups[] = {
2584 SH_PFC_PIN_GROUP(du0_rgb666),
2585 SH_PFC_PIN_GROUP(du0_rgb888),
Laurent Pinchartba774cc2013-03-27 11:06:37 +01002586 SH_PFC_PIN_GROUP(du0_clk_in),
2587 SH_PFC_PIN_GROUP(du0_clk_out_0),
2588 SH_PFC_PIN_GROUP(du0_clk_out_1),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002589 SH_PFC_PIN_GROUP(du0_sync_0),
2590 SH_PFC_PIN_GROUP(du0_sync_1),
2591 SH_PFC_PIN_GROUP(du0_oddf),
2592 SH_PFC_PIN_GROUP(du0_cde),
2593 SH_PFC_PIN_GROUP(du1_rgb666),
2594 SH_PFC_PIN_GROUP(du1_rgb888),
Laurent Pinchartba774cc2013-03-27 11:06:37 +01002595 SH_PFC_PIN_GROUP(du1_clk_in),
2596 SH_PFC_PIN_GROUP(du1_clk_out),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002597 SH_PFC_PIN_GROUP(du1_sync_0),
2598 SH_PFC_PIN_GROUP(du1_sync_1),
2599 SH_PFC_PIN_GROUP(du1_oddf),
2600 SH_PFC_PIN_GROUP(du1_cde),
Sergei Shtylyoveca4e3b2013-05-08 23:17:33 +00002601 SH_PFC_PIN_GROUP(ether_rmii),
2602 SH_PFC_PIN_GROUP(ether_link),
2603 SH_PFC_PIN_GROUP(ether_magic),
Laurent Pinchartf5162382013-03-06 19:04:43 +01002604 SH_PFC_PIN_GROUP(hspi0),
2605 SH_PFC_PIN_GROUP(hspi1),
2606 SH_PFC_PIN_GROUP(hspi1_b),
2607 SH_PFC_PIN_GROUP(hspi1_c),
2608 SH_PFC_PIN_GROUP(hspi1_d),
2609 SH_PFC_PIN_GROUP(hspi2),
2610 SH_PFC_PIN_GROUP(hspi2_b),
Phil Edworthy528e9472013-07-17 12:00:48 +01002611 SH_PFC_PIN_GROUP(i2c1),
2612 SH_PFC_PIN_GROUP(i2c1_b),
2613 SH_PFC_PIN_GROUP(i2c1_c),
2614 SH_PFC_PIN_GROUP(i2c1_d),
2615 SH_PFC_PIN_GROUP(i2c2),
2616 SH_PFC_PIN_GROUP(i2c2_b),
2617 SH_PFC_PIN_GROUP(i2c2_c),
2618 SH_PFC_PIN_GROUP(i2c2_d),
2619 SH_PFC_PIN_GROUP(i2c3),
2620 SH_PFC_PIN_GROUP(i2c3_b),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01002621 SH_PFC_PIN_GROUP(intc_irq0),
2622 SH_PFC_PIN_GROUP(intc_irq0_b),
2623 SH_PFC_PIN_GROUP(intc_irq1),
2624 SH_PFC_PIN_GROUP(intc_irq1_b),
2625 SH_PFC_PIN_GROUP(intc_irq2),
2626 SH_PFC_PIN_GROUP(intc_irq2_b),
2627 SH_PFC_PIN_GROUP(intc_irq3),
2628 SH_PFC_PIN_GROUP(intc_irq3_b),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01002629 SH_PFC_PIN_GROUP(lbsc_cs0),
2630 SH_PFC_PIN_GROUP(lbsc_cs1),
2631 SH_PFC_PIN_GROUP(lbsc_ex_cs0),
2632 SH_PFC_PIN_GROUP(lbsc_ex_cs1),
2633 SH_PFC_PIN_GROUP(lbsc_ex_cs2),
2634 SH_PFC_PIN_GROUP(lbsc_ex_cs3),
2635 SH_PFC_PIN_GROUP(lbsc_ex_cs4),
2636 SH_PFC_PIN_GROUP(lbsc_ex_cs5),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002637 SH_PFC_PIN_GROUP(mmc0_data1),
2638 SH_PFC_PIN_GROUP(mmc0_data4),
2639 SH_PFC_PIN_GROUP(mmc0_data8),
2640 SH_PFC_PIN_GROUP(mmc0_ctrl),
2641 SH_PFC_PIN_GROUP(mmc1_data1),
2642 SH_PFC_PIN_GROUP(mmc1_data4),
2643 SH_PFC_PIN_GROUP(mmc1_data8),
2644 SH_PFC_PIN_GROUP(mmc1_ctrl),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002645 SH_PFC_PIN_GROUP(scif0_data),
2646 SH_PFC_PIN_GROUP(scif0_clk),
2647 SH_PFC_PIN_GROUP(scif0_ctrl),
2648 SH_PFC_PIN_GROUP(scif0_data_b),
2649 SH_PFC_PIN_GROUP(scif0_clk_b),
2650 SH_PFC_PIN_GROUP(scif0_ctrl_b),
2651 SH_PFC_PIN_GROUP(scif0_data_c),
2652 SH_PFC_PIN_GROUP(scif0_clk_c),
2653 SH_PFC_PIN_GROUP(scif0_ctrl_c),
2654 SH_PFC_PIN_GROUP(scif0_data_d),
2655 SH_PFC_PIN_GROUP(scif0_clk_d),
2656 SH_PFC_PIN_GROUP(scif0_ctrl_d),
2657 SH_PFC_PIN_GROUP(scif1_data),
2658 SH_PFC_PIN_GROUP(scif1_clk),
2659 SH_PFC_PIN_GROUP(scif1_ctrl),
2660 SH_PFC_PIN_GROUP(scif1_data_b),
2661 SH_PFC_PIN_GROUP(scif1_clk_b),
2662 SH_PFC_PIN_GROUP(scif1_ctrl_b),
2663 SH_PFC_PIN_GROUP(scif1_data_c),
2664 SH_PFC_PIN_GROUP(scif1_clk_c),
2665 SH_PFC_PIN_GROUP(scif1_ctrl_c),
2666 SH_PFC_PIN_GROUP(scif2_data),
2667 SH_PFC_PIN_GROUP(scif2_clk),
2668 SH_PFC_PIN_GROUP(scif2_data_b),
2669 SH_PFC_PIN_GROUP(scif2_clk_b),
2670 SH_PFC_PIN_GROUP(scif2_data_c),
2671 SH_PFC_PIN_GROUP(scif2_clk_c),
2672 SH_PFC_PIN_GROUP(scif2_data_d),
2673 SH_PFC_PIN_GROUP(scif2_clk_d),
2674 SH_PFC_PIN_GROUP(scif2_data_e),
2675 SH_PFC_PIN_GROUP(scif3_data),
2676 SH_PFC_PIN_GROUP(scif3_clk),
2677 SH_PFC_PIN_GROUP(scif3_data_b),
2678 SH_PFC_PIN_GROUP(scif3_data_c),
2679 SH_PFC_PIN_GROUP(scif3_data_d),
2680 SH_PFC_PIN_GROUP(scif3_data_e),
2681 SH_PFC_PIN_GROUP(scif3_clk_e),
2682 SH_PFC_PIN_GROUP(scif4_data),
2683 SH_PFC_PIN_GROUP(scif4_clk),
2684 SH_PFC_PIN_GROUP(scif4_data_b),
2685 SH_PFC_PIN_GROUP(scif4_clk_b),
2686 SH_PFC_PIN_GROUP(scif4_data_c),
2687 SH_PFC_PIN_GROUP(scif4_data_d),
2688 SH_PFC_PIN_GROUP(scif5_data),
2689 SH_PFC_PIN_GROUP(scif5_clk),
2690 SH_PFC_PIN_GROUP(scif5_data_b),
2691 SH_PFC_PIN_GROUP(scif5_clk_b),
2692 SH_PFC_PIN_GROUP(scif5_data_c),
2693 SH_PFC_PIN_GROUP(scif5_clk_c),
2694 SH_PFC_PIN_GROUP(scif5_data_d),
2695 SH_PFC_PIN_GROUP(scif5_clk_d),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002696 SH_PFC_PIN_GROUP(sdhi0_data1),
2697 SH_PFC_PIN_GROUP(sdhi0_data4),
2698 SH_PFC_PIN_GROUP(sdhi0_ctrl),
2699 SH_PFC_PIN_GROUP(sdhi0_cd),
2700 SH_PFC_PIN_GROUP(sdhi0_wp),
2701 SH_PFC_PIN_GROUP(sdhi1_data1),
2702 SH_PFC_PIN_GROUP(sdhi1_data4),
2703 SH_PFC_PIN_GROUP(sdhi1_ctrl),
2704 SH_PFC_PIN_GROUP(sdhi1_cd),
2705 SH_PFC_PIN_GROUP(sdhi1_wp),
2706 SH_PFC_PIN_GROUP(sdhi2_data1),
2707 SH_PFC_PIN_GROUP(sdhi2_data4),
2708 SH_PFC_PIN_GROUP(sdhi2_ctrl),
2709 SH_PFC_PIN_GROUP(sdhi2_cd),
2710 SH_PFC_PIN_GROUP(sdhi2_wp),
2711 SH_PFC_PIN_GROUP(sdhi3_data1),
2712 SH_PFC_PIN_GROUP(sdhi3_data4),
2713 SH_PFC_PIN_GROUP(sdhi3_ctrl),
2714 SH_PFC_PIN_GROUP(sdhi3_cd),
2715 SH_PFC_PIN_GROUP(sdhi3_wp),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002716 SH_PFC_PIN_GROUP(usb0),
Laurent Pinchart350753b2013-05-21 12:39:31 +02002717 SH_PFC_PIN_GROUP(usb0_ovc),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002718 SH_PFC_PIN_GROUP(usb1),
Laurent Pinchart350753b2013-05-21 12:39:31 +02002719 SH_PFC_PIN_GROUP(usb1_ovc),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002720 SH_PFC_PIN_GROUP(usb2),
Laurent Pinchart350753b2013-05-21 12:39:31 +02002721 SH_PFC_PIN_GROUP(usb2_ovc),
Vladimir Barinov54ee73c2013-04-16 22:17:28 +00002722 SH_PFC_PIN_GROUP(vin0_data8),
2723 SH_PFC_PIN_GROUP(vin0_clk),
2724 SH_PFC_PIN_GROUP(vin0_sync),
2725 SH_PFC_PIN_GROUP(vin1_data8),
2726 SH_PFC_PIN_GROUP(vin1_clk),
2727 SH_PFC_PIN_GROUP(vin1_sync),
2728 SH_PFC_PIN_GROUP(vin2_data8),
2729 SH_PFC_PIN_GROUP(vin2_clk),
2730 SH_PFC_PIN_GROUP(vin2_sync),
2731 SH_PFC_PIN_GROUP(vin3_data8),
2732 SH_PFC_PIN_GROUP(vin3_clk),
2733 SH_PFC_PIN_GROUP(vin3_sync),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002734};
2735
2736static const char * const du0_groups[] = {
2737 "du0_rgb666",
2738 "du0_rgb888",
Laurent Pinchartba774cc2013-03-27 11:06:37 +01002739 "du0_clk_in",
2740 "du0_clk_out_0",
2741 "du0_clk_out_1",
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002742 "du0_sync_0",
2743 "du0_sync_1",
2744 "du0_oddf",
2745 "du0_cde",
2746};
2747
2748static const char * const du1_groups[] = {
2749 "du1_rgb666",
2750 "du1_rgb888",
Laurent Pinchartba774cc2013-03-27 11:06:37 +01002751 "du1_clk_in",
2752 "du1_clk_out",
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002753 "du1_sync_0",
2754 "du1_sync_1",
2755 "du1_oddf",
2756 "du1_cde",
2757};
2758
Sergei Shtylyoveca4e3b2013-05-08 23:17:33 +00002759static const char * const ether_groups[] = {
2760 "ether_rmii",
2761 "ether_link",
2762 "ether_magic",
2763};
2764
Laurent Pinchartf5162382013-03-06 19:04:43 +01002765static const char * const hspi0_groups[] = {
2766 "hspi0",
2767};
2768
2769static const char * const hspi1_groups[] = {
2770 "hspi1",
2771 "hspi1_b",
2772 "hspi1_c",
2773 "hspi1_d",
2774};
2775
2776static const char * const hspi2_groups[] = {
2777 "hspi2",
2778 "hspi2_b",
2779};
2780
Phil Edworthy528e9472013-07-17 12:00:48 +01002781static const char * const i2c1_groups[] = {
2782 "i2c1",
2783 "i2c1_b",
2784 "i2c1_c",
2785 "i2c1_d",
2786};
2787
2788static const char * const i2c2_groups[] = {
2789 "i2c2",
2790 "i2c2_b",
2791 "i2c2_c",
2792 "i2c2_d",
2793};
2794
2795static const char * const i2c3_groups[] = {
2796 "i2c3",
2797 "i2c3_b",
2798};
2799
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01002800static const char * const intc_groups[] = {
2801 "intc_irq0",
2802 "intc_irq0_b",
2803 "intc_irq1",
2804 "intc_irq1_b",
2805 "intc_irq2",
2806 "intc_irq2_b",
2807 "intc_irq3",
Kuninori Morimoto407cd592013-04-08 02:49:17 +00002808 "intc_irq3_b",
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01002809};
2810
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01002811static const char * const lbsc_groups[] = {
2812 "lbsc_cs0",
2813 "lbsc_cs1",
2814 "lbsc_ex_cs0",
2815 "lbsc_ex_cs1",
2816 "lbsc_ex_cs2",
2817 "lbsc_ex_cs3",
2818 "lbsc_ex_cs4",
2819 "lbsc_ex_cs5",
2820};
2821
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002822static const char * const mmc0_groups[] = {
2823 "mmc0_data1",
2824 "mmc0_data4",
2825 "mmc0_data8",
2826 "mmc0_ctrl",
2827};
2828
2829static const char * const mmc1_groups[] = {
2830 "mmc1_data1",
2831 "mmc1_data4",
2832 "mmc1_data8",
2833 "mmc1_ctrl",
2834};
2835
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002836static const char * const scif0_groups[] = {
2837 "scif0_data",
2838 "scif0_clk",
2839 "scif0_ctrl",
2840 "scif0_data_b",
2841 "scif0_clk_b",
2842 "scif0_ctrl_b",
2843 "scif0_data_c",
2844 "scif0_clk_c",
2845 "scif0_ctrl_c",
2846 "scif0_data_d",
2847 "scif0_clk_d",
2848 "scif0_ctrl_d",
2849};
2850
2851static const char * const scif1_groups[] = {
2852 "scif1_data",
2853 "scif1_clk",
2854 "scif1_ctrl",
2855 "scif1_data_b",
2856 "scif1_clk_b",
2857 "scif1_ctrl_b",
2858 "scif1_data_c",
2859 "scif1_clk_c",
2860 "scif1_ctrl_c",
2861};
2862
2863static const char * const scif2_groups[] = {
2864 "scif2_data",
2865 "scif2_clk",
2866 "scif2_data_b",
2867 "scif2_clk_b",
2868 "scif2_data_c",
2869 "scif2_clk_c",
2870 "scif2_data_d",
2871 "scif2_clk_d",
2872 "scif2_data_e",
2873};
2874
2875static const char * const scif3_groups[] = {
2876 "scif3_data",
2877 "scif3_clk",
2878 "scif3_data_b",
2879 "scif3_data_c",
2880 "scif3_data_d",
2881 "scif3_data_e",
2882 "scif3_clk_e",
2883};
2884
2885static const char * const scif4_groups[] = {
2886 "scif4_data",
2887 "scif4_clk",
2888 "scif4_data_b",
2889 "scif4_clk_b",
2890 "scif4_data_c",
2891 "scif4_data_d",
2892};
2893
2894static const char * const scif5_groups[] = {
2895 "scif5_data",
2896 "scif5_clk",
2897 "scif5_data_b",
2898 "scif5_clk_b",
2899 "scif5_data_c",
2900 "scif5_clk_c",
2901 "scif5_data_d",
2902 "scif5_clk_d",
2903};
2904
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002905static const char * const sdhi0_groups[] = {
2906 "sdhi0_data1",
2907 "sdhi0_data4",
2908 "sdhi0_ctrl",
2909 "sdhi0_cd",
2910 "sdhi0_wp",
2911};
2912
2913static const char * const sdhi1_groups[] = {
2914 "sdhi1_data1",
2915 "sdhi1_data4",
2916 "sdhi1_ctrl",
2917 "sdhi1_cd",
2918 "sdhi1_wp",
2919};
2920
2921static const char * const sdhi2_groups[] = {
2922 "sdhi2_data1",
2923 "sdhi2_data4",
2924 "sdhi2_ctrl",
2925 "sdhi2_cd",
2926 "sdhi2_wp",
2927};
2928
2929static const char * const sdhi3_groups[] = {
2930 "sdhi3_data1",
2931 "sdhi3_data4",
2932 "sdhi3_ctrl",
2933 "sdhi3_cd",
2934 "sdhi3_wp",
2935};
2936
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002937static const char * const usb0_groups[] = {
2938 "usb0",
Laurent Pinchart350753b2013-05-21 12:39:31 +02002939 "usb0_ovc",
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002940};
2941
2942static const char * const usb1_groups[] = {
2943 "usb1",
Laurent Pinchart350753b2013-05-21 12:39:31 +02002944 "usb1_ovc",
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002945};
2946
2947static const char * const usb2_groups[] = {
2948 "usb2",
Laurent Pinchart350753b2013-05-21 12:39:31 +02002949 "usb2_ovc",
Laurent Pinchart97d40c42013-03-07 13:38:51 +01002950};
2951
Vladimir Barinov54ee73c2013-04-16 22:17:28 +00002952static const char * const vin0_groups[] = {
2953 "vin0_data8",
2954 "vin0_clk",
2955 "vin0_sync",
2956};
2957
2958static const char * const vin1_groups[] = {
2959 "vin1_data8",
2960 "vin1_clk",
2961 "vin1_sync",
2962};
2963
2964static const char * const vin2_groups[] = {
2965 "vin2_data8",
2966 "vin2_clk",
2967 "vin2_sync",
2968};
2969
2970static const char * const vin3_groups[] = {
2971 "vin3_data8",
2972 "vin3_clk",
2973 "vin3_sync",
2974};
2975
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01002976static const struct sh_pfc_function pinmux_functions[] = {
2977 SH_PFC_FUNCTION(du0),
2978 SH_PFC_FUNCTION(du1),
Sergei Shtylyoveca4e3b2013-05-08 23:17:33 +00002979 SH_PFC_FUNCTION(ether),
Laurent Pinchartf5162382013-03-06 19:04:43 +01002980 SH_PFC_FUNCTION(hspi0),
2981 SH_PFC_FUNCTION(hspi1),
2982 SH_PFC_FUNCTION(hspi2),
Phil Edworthy528e9472013-07-17 12:00:48 +01002983 SH_PFC_FUNCTION(i2c1),
2984 SH_PFC_FUNCTION(i2c2),
2985 SH_PFC_FUNCTION(i2c3),
Laurent Pinchartfd9e7fe2013-03-07 13:38:51 +01002986 SH_PFC_FUNCTION(intc),
Laurent Pinchartf27f81f2013-03-07 13:38:51 +01002987 SH_PFC_FUNCTION(lbsc),
Laurent Pinchart6dbf2962013-03-06 19:04:43 +01002988 SH_PFC_FUNCTION(mmc0),
2989 SH_PFC_FUNCTION(mmc1),
2990 SH_PFC_FUNCTION(sdhi0),
2991 SH_PFC_FUNCTION(sdhi1),
2992 SH_PFC_FUNCTION(sdhi2),
2993 SH_PFC_FUNCTION(sdhi3),
Laurent Pinchart081b69b2013-03-06 19:04:43 +01002994 SH_PFC_FUNCTION(scif0),
2995 SH_PFC_FUNCTION(scif1),
2996 SH_PFC_FUNCTION(scif2),
2997 SH_PFC_FUNCTION(scif3),
2998 SH_PFC_FUNCTION(scif4),
2999 SH_PFC_FUNCTION(scif5),
Laurent Pinchart97d40c42013-03-07 13:38:51 +01003000 SH_PFC_FUNCTION(usb0),
3001 SH_PFC_FUNCTION(usb1),
3002 SH_PFC_FUNCTION(usb2),
Vladimir Barinov54ee73c2013-04-16 22:17:28 +00003003 SH_PFC_FUNCTION(vin0),
3004 SH_PFC_FUNCTION(vin1),
3005 SH_PFC_FUNCTION(vin2),
3006 SH_PFC_FUNCTION(vin3),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01003007};
3008
Laurent Pinchartcd3c1be2013-02-16 18:47:05 +01003009static const struct pinmux_cfg_reg pinmux_config_regs[] = {
Laurent Pinchart881023d2012-12-15 23:51:22 +01003010 { PINMUX_CFG_REG("GPSR0", 0xfffc0004, 32, 1) {
3011 GP_0_31_FN, FN_IP3_31_29,
3012 GP_0_30_FN, FN_IP3_26_24,
3013 GP_0_29_FN, FN_IP3_22_21,
3014 GP_0_28_FN, FN_IP3_14_12,
3015 GP_0_27_FN, FN_IP3_11_9,
3016 GP_0_26_FN, FN_IP3_2_0,
3017 GP_0_25_FN, FN_IP2_30_28,
3018 GP_0_24_FN, FN_IP2_21_19,
3019 GP_0_23_FN, FN_IP2_18_16,
3020 GP_0_22_FN, FN_IP0_30_28,
3021 GP_0_21_FN, FN_IP0_5_3,
3022 GP_0_20_FN, FN_IP1_18_15,
3023 GP_0_19_FN, FN_IP1_14_11,
3024 GP_0_18_FN, FN_IP1_10_7,
3025 GP_0_17_FN, FN_IP1_6_4,
3026 GP_0_16_FN, FN_IP1_3_2,
3027 GP_0_15_FN, FN_IP1_1_0,
3028 GP_0_14_FN, FN_IP0_27_26,
3029 GP_0_13_FN, FN_IP0_25,
3030 GP_0_12_FN, FN_IP0_24_23,
3031 GP_0_11_FN, FN_IP0_22_19,
3032 GP_0_10_FN, FN_IP0_18_16,
3033 GP_0_9_FN, FN_IP0_15_14,
3034 GP_0_8_FN, FN_IP0_13_12,
3035 GP_0_7_FN, FN_IP0_11_10,
3036 GP_0_6_FN, FN_IP0_9_8,
3037 GP_0_5_FN, FN_A19,
3038 GP_0_4_FN, FN_A18,
3039 GP_0_3_FN, FN_A17,
3040 GP_0_2_FN, FN_IP0_7_6,
3041 GP_0_1_FN, FN_AVS2,
3042 GP_0_0_FN, FN_AVS1 }
3043 },
3044 { PINMUX_CFG_REG("GPSR1", 0xfffc0008, 32, 1) {
3045 GP_1_31_FN, FN_IP5_23_21,
3046 GP_1_30_FN, FN_IP5_20_17,
3047 GP_1_29_FN, FN_IP5_16_15,
3048 GP_1_28_FN, FN_IP5_14_13,
3049 GP_1_27_FN, FN_IP5_12_11,
3050 GP_1_26_FN, FN_IP5_10_9,
3051 GP_1_25_FN, FN_IP5_8,
3052 GP_1_24_FN, FN_IP5_7,
3053 GP_1_23_FN, FN_IP5_6,
3054 GP_1_22_FN, FN_IP5_5,
3055 GP_1_21_FN, FN_IP5_4,
3056 GP_1_20_FN, FN_IP5_3,
3057 GP_1_19_FN, FN_IP5_2_0,
3058 GP_1_18_FN, FN_IP4_31_29,
3059 GP_1_17_FN, FN_IP4_28,
3060 GP_1_16_FN, FN_IP4_27,
3061 GP_1_15_FN, FN_IP4_26,
3062 GP_1_14_FN, FN_IP4_25,
3063 GP_1_13_FN, FN_IP4_24,
3064 GP_1_12_FN, FN_IP4_23,
3065 GP_1_11_FN, FN_IP4_22_20,
3066 GP_1_10_FN, FN_IP4_19_17,
3067 GP_1_9_FN, FN_IP4_16,
3068 GP_1_8_FN, FN_IP4_15,
3069 GP_1_7_FN, FN_IP4_14,
3070 GP_1_6_FN, FN_IP4_13,
3071 GP_1_5_FN, FN_IP4_12,
3072 GP_1_4_FN, FN_IP4_11,
3073 GP_1_3_FN, FN_IP4_10_8,
3074 GP_1_2_FN, FN_IP4_7_5,
3075 GP_1_1_FN, FN_IP4_4_2,
3076 GP_1_0_FN, FN_IP4_1_0 }
3077 },
3078 { PINMUX_CFG_REG("GPSR2", 0xfffc000c, 32, 1) {
3079 GP_2_31_FN, FN_IP10_28_26,
3080 GP_2_30_FN, FN_IP10_25_24,
3081 GP_2_29_FN, FN_IP10_23_21,
3082 GP_2_28_FN, FN_IP10_20_18,
3083 GP_2_27_FN, FN_IP10_17_15,
3084 GP_2_26_FN, FN_IP10_14_12,
3085 GP_2_25_FN, FN_IP10_11_9,
3086 GP_2_24_FN, FN_IP10_8_6,
3087 GP_2_23_FN, FN_IP10_5_3,
3088 GP_2_22_FN, FN_IP10_2_0,
3089 GP_2_21_FN, FN_IP9_29_28,
3090 GP_2_20_FN, FN_IP9_27_26,
3091 GP_2_19_FN, FN_IP9_25_24,
3092 GP_2_18_FN, FN_IP9_23_22,
3093 GP_2_17_FN, FN_IP9_21_19,
3094 GP_2_16_FN, FN_IP9_18_16,
3095 GP_2_15_FN, FN_IP9_15_14,
3096 GP_2_14_FN, FN_IP9_13_12,
3097 GP_2_13_FN, FN_IP9_11_10,
3098 GP_2_12_FN, FN_IP9_9_8,
3099 GP_2_11_FN, FN_IP9_7,
3100 GP_2_10_FN, FN_IP9_6,
3101 GP_2_9_FN, FN_IP9_5,
3102 GP_2_8_FN, FN_IP9_4,
3103 GP_2_7_FN, FN_IP9_3_2,
3104 GP_2_6_FN, FN_IP9_1_0,
3105 GP_2_5_FN, FN_IP8_30_28,
3106 GP_2_4_FN, FN_IP8_27_25,
3107 GP_2_3_FN, FN_IP8_24_23,
3108 GP_2_2_FN, FN_IP8_22_21,
3109 GP_2_1_FN, FN_IP8_20,
3110 GP_2_0_FN, FN_IP5_27_24 }
3111 },
3112 { PINMUX_CFG_REG("GPSR3", 0xfffc0010, 32, 1) {
3113 GP_3_31_FN, FN_IP6_3_2,
3114 GP_3_30_FN, FN_IP6_1_0,
3115 GP_3_29_FN, FN_IP5_30_29,
3116 GP_3_28_FN, FN_IP5_28,
3117 GP_3_27_FN, FN_IP1_24_23,
3118 GP_3_26_FN, FN_IP1_22_21,
3119 GP_3_25_FN, FN_IP1_20_19,
3120 GP_3_24_FN, FN_IP7_26_25,
3121 GP_3_23_FN, FN_IP7_24_23,
3122 GP_3_22_FN, FN_IP7_22_21,
3123 GP_3_21_FN, FN_IP7_20_19,
3124 GP_3_20_FN, FN_IP7_30_29,
3125 GP_3_19_FN, FN_IP7_28_27,
3126 GP_3_18_FN, FN_IP7_18_17,
3127 GP_3_17_FN, FN_IP7_16_15,
3128 GP_3_16_FN, FN_IP12_17_15,
3129 GP_3_15_FN, FN_IP12_14_12,
3130 GP_3_14_FN, FN_IP12_11_9,
3131 GP_3_13_FN, FN_IP12_8_6,
3132 GP_3_12_FN, FN_IP12_5_3,
3133 GP_3_11_FN, FN_IP12_2_0,
3134 GP_3_10_FN, FN_IP11_29_27,
3135 GP_3_9_FN, FN_IP11_26_24,
3136 GP_3_8_FN, FN_IP11_23_21,
3137 GP_3_7_FN, FN_IP11_20_18,
3138 GP_3_6_FN, FN_IP11_17_15,
3139 GP_3_5_FN, FN_IP11_14_12,
3140 GP_3_4_FN, FN_IP11_11_9,
3141 GP_3_3_FN, FN_IP11_8_6,
3142 GP_3_2_FN, FN_IP11_5_3,
3143 GP_3_1_FN, FN_IP11_2_0,
3144 GP_3_0_FN, FN_IP10_31_29 }
3145 },
3146 { PINMUX_CFG_REG("GPSR4", 0xfffc0014, 32, 1) {
3147 GP_4_31_FN, FN_IP8_19,
3148 GP_4_30_FN, FN_IP8_18,
3149 GP_4_29_FN, FN_IP8_17_16,
3150 GP_4_28_FN, FN_IP0_2_0,
3151 GP_4_27_FN, FN_USB_PENC1,
3152 GP_4_26_FN, FN_USB_PENC0,
3153 GP_4_25_FN, FN_IP8_15_12,
3154 GP_4_24_FN, FN_IP8_11_8,
3155 GP_4_23_FN, FN_IP8_7_4,
3156 GP_4_22_FN, FN_IP8_3_0,
3157 GP_4_21_FN, FN_IP2_3_0,
3158 GP_4_20_FN, FN_IP1_28_25,
3159 GP_4_19_FN, FN_IP2_15_12,
3160 GP_4_18_FN, FN_IP2_11_8,
3161 GP_4_17_FN, FN_IP2_7_4,
3162 GP_4_16_FN, FN_IP7_14_13,
3163 GP_4_15_FN, FN_IP7_12_10,
3164 GP_4_14_FN, FN_IP7_9_7,
3165 GP_4_13_FN, FN_IP7_6_4,
3166 GP_4_12_FN, FN_IP7_3_2,
3167 GP_4_11_FN, FN_IP7_1_0,
3168 GP_4_10_FN, FN_IP6_30_29,
3169 GP_4_9_FN, FN_IP6_26_25,
3170 GP_4_8_FN, FN_IP6_24_23,
3171 GP_4_7_FN, FN_IP6_22_20,
3172 GP_4_6_FN, FN_IP6_19_18,
3173 GP_4_5_FN, FN_IP6_17_15,
3174 GP_4_4_FN, FN_IP6_14_12,
3175 GP_4_3_FN, FN_IP6_11_9,
3176 GP_4_2_FN, FN_IP6_8,
3177 GP_4_1_FN, FN_IP6_7_6,
3178 GP_4_0_FN, FN_IP6_5_4 }
3179 },
3180 { PINMUX_CFG_REG("GPSR5", 0xfffc0018, 32, 1) {
3181 GP_5_31_FN, FN_IP3_5,
3182 GP_5_30_FN, FN_IP3_4,
3183 GP_5_29_FN, FN_IP3_3,
3184 GP_5_28_FN, FN_IP2_27,
3185 GP_5_27_FN, FN_IP2_26,
3186 GP_5_26_FN, FN_IP2_25,
3187 GP_5_25_FN, FN_IP2_24,
3188 GP_5_24_FN, FN_IP2_23,
3189 GP_5_23_FN, FN_IP2_22,
3190 GP_5_22_FN, FN_IP3_28,
3191 GP_5_21_FN, FN_IP3_27,
3192 GP_5_20_FN, FN_IP3_23,
3193 GP_5_19_FN, FN_EX_WAIT0,
3194 GP_5_18_FN, FN_WE1,
3195 GP_5_17_FN, FN_WE0,
3196 GP_5_16_FN, FN_RD,
3197 GP_5_15_FN, FN_A16,
3198 GP_5_14_FN, FN_A15,
3199 GP_5_13_FN, FN_A14,
3200 GP_5_12_FN, FN_A13,
3201 GP_5_11_FN, FN_A12,
3202 GP_5_10_FN, FN_A11,
3203 GP_5_9_FN, FN_A10,
3204 GP_5_8_FN, FN_A9,
3205 GP_5_7_FN, FN_A8,
3206 GP_5_6_FN, FN_A7,
3207 GP_5_5_FN, FN_A6,
3208 GP_5_4_FN, FN_A5,
3209 GP_5_3_FN, FN_A4,
3210 GP_5_2_FN, FN_A3,
3211 GP_5_1_FN, FN_A2,
3212 GP_5_0_FN, FN_A1 }
3213 },
3214 { PINMUX_CFG_REG("GPSR6", 0xfffc001c, 32, 1) {
3215 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3216 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3217 0, 0, 0, 0, 0, 0, 0, 0,
3218 0, 0,
3219 0, 0,
3220 0, 0,
3221 GP_6_8_FN, FN_IP3_20,
3222 GP_6_7_FN, FN_IP3_19,
3223 GP_6_6_FN, FN_IP3_18,
3224 GP_6_5_FN, FN_IP3_17,
3225 GP_6_4_FN, FN_IP3_16,
3226 GP_6_3_FN, FN_IP3_15,
3227 GP_6_2_FN, FN_IP3_8,
3228 GP_6_1_FN, FN_IP3_7,
3229 GP_6_0_FN, FN_IP3_6 }
3230 },
3231
3232 { PINMUX_CFG_REG_VAR("IPSR0", 0xfffc0020, 32,
3233 1, 3, 2, 1, 2, 4, 3, 2, 2, 2, 2, 2, 3, 3) {
3234 /* IP0_31 [1] */
3235 0, 0,
3236 /* IP0_30_28 [3] */
3237 FN_RD_WR, FN_FWE, FN_ATAG0, FN_VI1_R7,
3238 FN_HRTS1, FN_RX4_C, 0, 0,
3239 /* IP0_27_26 [2] */
3240 FN_CS1_A26, FN_HSPI_TX2, FN_SDSELF_B, 0,
3241 /* IP0_25 [1] */
3242 FN_CS0, FN_HSPI_CS2_B,
3243 /* IP0_24_23 [2] */
3244 FN_CLKOUT, FN_TX3C_IRDA_TX_C, FN_PWM0_B, 0,
3245 /* IP0_22_19 [4] */
3246 FN_A25, FN_SD1_WP, FN_MMC0_D5, FN_FD5,
3247 FN_HSPI_RX2, FN_VI1_R3, FN_TX5_B, FN_SSI_SDATA7_B,
3248 FN_CTS0_B, 0, 0, 0,
3249 0, 0, 0, 0,
3250 /* IP0_18_16 [3] */
3251 FN_A24, FN_SD1_CD, FN_MMC0_D4, FN_FD4,
3252 FN_HSPI_CS2, FN_VI1_R2, FN_SSI_WS78_B, 0,
3253 /* IP0_15_14 [2] */
3254 FN_A23, FN_FCLE, FN_HSPI_CLK2, FN_VI1_R1,
3255 /* IP0_13_12 [2] */
3256 FN_A22, FN_RX5_D, FN_HSPI_RX2_B, FN_VI1_R0,
3257 /* IP0_11_10 [2] */
3258 FN_A21, FN_SCK5_D, FN_HSPI_CLK2_B, 0,
3259 /* IP0_9_8 [2] */
3260 FN_A20, FN_TX5_D, FN_HSPI_TX2_B, 0,
3261 /* IP0_7_6 [2] */
3262 FN_A0, FN_SD1_DAT3, FN_MMC0_D3, FN_FD3,
3263 /* IP0_5_3 [3] */
3264 FN_BS, FN_SD1_DAT2, FN_MMC0_D2, FN_FD2,
3265 FN_ATADIR0, FN_SDSELF, FN_HCTS1, FN_TX4_C,
3266 /* IP0_2_0 [3] */
3267 FN_USB_PENC2, FN_SCK0, FN_PWM1, FN_PWMFSW0,
3268 FN_SCIF_CLK, FN_TCLK0_C, 0, 0 }
3269 },
3270 { PINMUX_CFG_REG_VAR("IPSR1", 0xfffc0024, 32,
3271 3, 4, 2, 2, 2, 4, 4, 4, 3, 2, 2) {
3272 /* IP1_31_29 [3] */
3273 0, 0, 0, 0, 0, 0, 0, 0,
3274 /* IP1_28_25 [4] */
3275 FN_HTX0, FN_TX1, FN_SDATA, FN_CTS0_C,
3276 FN_SUB_TCK, FN_CC5_STATE2, FN_CC5_STATE10, FN_CC5_STATE18,
3277 FN_CC5_STATE26, FN_CC5_STATE34, 0, 0,
3278 0, 0, 0, 0,
3279 /* IP1_24_23 [2] */
3280 FN_MLB_DAT, FN_PWM4, FN_RX4, 0,
3281 /* IP1_22_21 [2] */
3282 FN_MLB_SIG, FN_PWM3, FN_TX4, 0,
3283 /* IP1_20_19 [2] */
3284 FN_MLB_CLK, FN_PWM2, FN_SCK4, 0,
3285 /* IP1_18_15 [4] */
3286 FN_EX_CS5, FN_SD1_DAT1, FN_MMC0_D1, FN_FD1,
3287 FN_ATAWR0, FN_VI1_R6, FN_HRX1, FN_RX2_E,
3288 FN_RX0_B, FN_SSI_WS9, 0, 0,
3289 0, 0, 0, 0,
3290 /* IP1_14_11 [4] */
3291 FN_EX_CS4, FN_SD1_DAT0, FN_MMC0_D0, FN_FD0,
3292 FN_ATARD0, FN_VI1_R5, FN_SCK5_B, FN_HTX1,
3293 FN_TX2_E, FN_TX0_B, FN_SSI_SCK9, 0,
3294 0, 0, 0, 0,
3295 /* IP1_10_7 [4] */
3296 FN_EX_CS3, FN_SD1_CMD, FN_MMC0_CMD, FN_FRE,
3297 FN_ATACS10, FN_VI1_R4, FN_RX5_B, FN_HSCK1,
3298 FN_SSI_SDATA8_B, FN_RTS0_B_TANS_B, FN_SSI_SDATA9, 0,
3299 0, 0, 0, 0,
3300 /* IP1_6_4 [3] */
3301 FN_EX_CS2, FN_SD1_CLK, FN_MMC0_CLK, FN_FALE,
3302 FN_ATACS00, 0, 0, 0,
3303 /* IP1_3_2 [2] */
3304 FN_EX_CS1, FN_MMC0_D7, FN_FD7, 0,
3305 /* IP1_1_0 [2] */
3306 FN_EX_CS0, FN_RX3_C_IRDA_RX_C, FN_MMC0_D6, FN_FD6 }
3307 },
3308 { PINMUX_CFG_REG_VAR("IPSR2", 0xfffc0028, 32,
3309 1, 3, 1, 1, 1, 1, 1, 1, 3, 3, 4, 4, 4, 4) {
3310 /* IP2_31 [1] */
3311 0, 0,
3312 /* IP2_30_28 [3] */
3313 FN_DU0_DG0, FN_LCDOUT8, FN_DREQ1, FN_SCL2,
3314 FN_AUDATA2, 0, 0, 0,
3315 /* IP2_27 [1] */
3316 FN_DU0_DR7, FN_LCDOUT7,
3317 /* IP2_26 [1] */
3318 FN_DU0_DR6, FN_LCDOUT6,
3319 /* IP2_25 [1] */
3320 FN_DU0_DR5, FN_LCDOUT5,
3321 /* IP2_24 [1] */
3322 FN_DU0_DR4, FN_LCDOUT4,
3323 /* IP2_23 [1] */
3324 FN_DU0_DR3, FN_LCDOUT3,
3325 /* IP2_22 [1] */
3326 FN_DU0_DR2, FN_LCDOUT2,
3327 /* IP2_21_19 [3] */
3328 FN_DU0_DR1, FN_LCDOUT1, FN_DACK0, FN_DRACK0,
3329 FN_GPS_SIGN_B, FN_AUDATA1, FN_RX5_C, 0,
3330 /* IP2_18_16 [3] */
3331 FN_DU0_DR0, FN_LCDOUT0, FN_DREQ0, FN_GPS_CLK_B,
3332 FN_AUDATA0, FN_TX5_C, 0, 0,
3333 /* IP2_15_12 [4] */
3334 FN_HRTS0, FN_RTS1_TANS, FN_MDATA, FN_TX0_C,
3335 FN_SUB_TMS, FN_CC5_STATE1, FN_CC5_STATE9, FN_CC5_STATE17,
3336 FN_CC5_STATE25, FN_CC5_STATE33, 0, 0,
3337 0, 0, 0, 0,
3338 /* IP2_11_8 [4] */
3339 FN_HCTS0, FN_CTS1, FN_STM, FN_PWM0_D,
3340 FN_RX0_C, FN_SCIF_CLK_C, FN_SUB_TRST, FN_TCLK1_B,
3341 FN_CC5_OSCOUT, 0, 0, 0,
3342 0, 0, 0, 0,
3343 /* IP2_7_4 [4] */
3344 FN_HSCK0, FN_SCK1, FN_MTS, FN_PWM5,
3345 FN_SCK0_C, FN_SSI_SDATA9_B, FN_SUB_TDO, FN_CC5_STATE0,
3346 FN_CC5_STATE8, FN_CC5_STATE16, FN_CC5_STATE24, FN_CC5_STATE32,
3347 0, 0, 0, 0,
3348 /* IP2_3_0 [4] */
3349 FN_HRX0, FN_RX1, FN_SCKZ, FN_RTS0_C_TANS_C,
3350 FN_SUB_TDI, FN_CC5_STATE3, FN_CC5_STATE11, FN_CC5_STATE19,
3351 FN_CC5_STATE27, FN_CC5_STATE35, 0, 0,
3352 0, 0, 0, 0 }
3353 },
3354 { PINMUX_CFG_REG_VAR("IPSR3", 0xfffc002c, 32,
3355 3, 1, 1, 3, 1, 2, 1, 1, 1, 1, 1,
3356 1, 3, 3, 1, 1, 1, 1, 1, 1, 3) {
3357 /* IP3_31_29 [3] */
3358 FN_DU0_EXODDF_DU0_ODDF_DISP_CDE, FN_QCPV_QDE, FN_CAN1_TX, FN_TX2_C,
3359 FN_SCL2_C, FN_REMOCON, 0, 0,
3360 /* IP3_28 [1] */
3361 FN_DU0_EXVSYNC_DU0_VSYNC, FN_QSTB_QHE,
3362 /* IP3_27 [1] */
3363 FN_DU0_EXHSYNC_DU0_HSYNC, FN_QSTH_QHS,
3364 /* IP3_26_24 [3] */
3365 FN_DU0_DOTCLKOUT1, FN_QSTVB_QVE, FN_RX3_D_IRDA_RX_D, FN_SDA3_B,
3366 FN_SDA2_C, FN_DACK0_B, FN_DRACK0_B, 0,
3367 /* IP3_23 [1] */
3368 FN_DU0_DOTCLKOUT0, FN_QCLK,
3369 /* IP3_22_21 [2] */
3370 FN_DU0_DOTCLKIN, FN_QSTVA_QVS, FN_TX3_D_IRDA_TX_D, FN_SCL3_B,
3371 /* IP3_20 [1] */
3372 FN_DU0_DB7, FN_LCDOUT23,
3373 /* IP3_19 [1] */
3374 FN_DU0_DB6, FN_LCDOUT22,
3375 /* IP3_18 [1] */
3376 FN_DU0_DB5, FN_LCDOUT21,
3377 /* IP3_17 [1] */
3378 FN_DU0_DB4, FN_LCDOUT20,
3379 /* IP3_16 [1] */
3380 FN_DU0_DB3, FN_LCDOUT19,
3381 /* IP3_15 [1] */
3382 FN_DU0_DB2, FN_LCDOUT18,
3383 /* IP3_14_12 [3] */
3384 FN_DU0_DB1, FN_LCDOUT17, FN_EX_WAIT2, FN_SDA1,
3385 FN_GPS_MAG_B, FN_AUDATA5, FN_SCK5_C, 0,
3386 /* IP3_11_9 [3] */
3387 FN_DU0_DB0, FN_LCDOUT16, FN_EX_WAIT1, FN_SCL1,
3388 FN_TCLK1, FN_AUDATA4, 0, 0,
3389 /* IP3_8 [1] */
3390 FN_DU0_DG7, FN_LCDOUT15,
3391 /* IP3_7 [1] */
3392 FN_DU0_DG6, FN_LCDOUT14,
3393 /* IP3_6 [1] */
3394 FN_DU0_DG5, FN_LCDOUT13,
3395 /* IP3_5 [1] */
3396 FN_DU0_DG4, FN_LCDOUT12,
3397 /* IP3_4 [1] */
3398 FN_DU0_DG3, FN_LCDOUT11,
3399 /* IP3_3 [1] */
3400 FN_DU0_DG2, FN_LCDOUT10,
3401 /* IP3_2_0 [3] */
3402 FN_DU0_DG1, FN_LCDOUT9, FN_DACK1, FN_SDA2,
3403 FN_AUDATA3, 0, 0, 0 }
3404 },
3405 { PINMUX_CFG_REG_VAR("IPSR4", 0xfffc0030, 32,
3406 3, 1, 1, 1, 1, 1, 1, 3, 3,
3407 1, 1, 1, 1, 1, 1, 3, 3, 3, 2) {
3408 /* IP4_31_29 [3] */
3409 FN_DU1_DB0, FN_VI2_DATA4_VI2_B4, FN_SCL2_B, FN_SD3_DAT0,
3410 FN_TX5, FN_SCK0_D, 0, 0,
3411 /* IP4_28 [1] */
3412 FN_DU1_DG7, FN_VI2_R3,
3413 /* IP4_27 [1] */
3414 FN_DU1_DG6, FN_VI2_R2,
3415 /* IP4_26 [1] */
3416 FN_DU1_DG5, FN_VI2_R1,
3417 /* IP4_25 [1] */
3418 FN_DU1_DG4, FN_VI2_R0,
3419 /* IP4_24 [1] */
3420 FN_DU1_DG3, FN_VI2_G7,
3421 /* IP4_23 [1] */
3422 FN_DU1_DG2, FN_VI2_G6,
3423 /* IP4_22_20 [3] */
3424 FN_DU1_DG1, FN_VI2_DATA3_VI2_B3, FN_SDA1_B, FN_SD3_DAT3,
3425 FN_SCK5, FN_AUDATA7, FN_RX0_D, 0,
3426 /* IP4_19_17 [3] */
3427 FN_DU1_DG0, FN_VI2_DATA2_VI2_B2, FN_SCL1_B, FN_SD3_DAT2,
3428 FN_SCK3_E, FN_AUDATA6, FN_TX0_D, 0,
3429 /* IP4_16 [1] */
3430 FN_DU1_DR7, FN_VI2_G5,
3431 /* IP4_15 [1] */
3432 FN_DU1_DR6, FN_VI2_G4,
3433 /* IP4_14 [1] */
3434 FN_DU1_DR5, FN_VI2_G3,
3435 /* IP4_13 [1] */
3436 FN_DU1_DR4, FN_VI2_G2,
3437 /* IP4_12 [1] */
3438 FN_DU1_DR3, FN_VI2_G1,
3439 /* IP4_11 [1] */
3440 FN_DU1_DR2, FN_VI2_G0,
3441 /* IP4_10_8 [3] */
3442 FN_DU1_DR1, FN_VI2_DATA1_VI2_B1, FN_PWM0, FN_SD3_CMD,
3443 FN_RX3_E_IRDA_RX_E, FN_AUDSYNC, FN_CTS0_D, 0,
3444 /* IP4_7_5 [3] */
3445 FN_DU1_DR0, FN_VI2_DATA0_VI2_B0, FN_PWM6, FN_SD3_CLK,
3446 FN_TX3_E_IRDA_TX_E, FN_AUDCK, FN_PWMFSW0_B, 0,
3447 /* IP4_4_2 [3] */
3448 FN_DU0_CDE, FN_QPOLB, FN_CAN1_RX, FN_RX2_C,
3449 FN_DREQ0_B, FN_SSI_SCK78_B, FN_SCK0_B, 0,
3450 /* IP4_1_0 [2] */
3451 FN_DU0_DISP, FN_QPOLA, FN_CAN_CLK_C, FN_SCK2_C }
3452 },
3453 { PINMUX_CFG_REG_VAR("IPSR5", 0xfffc0034, 32,
3454 1, 2, 1, 4, 3, 4, 2, 2,
3455 2, 2, 1, 1, 1, 1, 1, 1, 3) {
3456 /* IP5_31 [1] */
3457 0, 0,
3458 /* IP5_30_29 [2] */
3459 FN_AUDIO_CLKB, FN_USB_OVC2, FN_CAN_DEBUGOUT0, FN_MOUT0,
3460 /* IP5_28 [1] */
3461 FN_AUDIO_CLKA, FN_CAN_TXCLK,
3462 /* IP5_27_24 [4] */
3463 FN_DU1_CDE, FN_VI2_DATA7_VI2_B7, FN_RX3_B_IRDA_RX_B, FN_SD3_WP,
3464 FN_HSPI_RX1, FN_VI1_FIELD, FN_VI3_FIELD, FN_AUDIO_CLKOUT,
3465 FN_RX2_D, FN_GPS_CLK_C, FN_GPS_CLK_D, 0,
3466 0, 0, 0, 0,
3467 /* IP5_23_21 [3] */
3468 FN_DU1_DISP, FN_VI2_DATA6_VI2_B6, FN_TCLK0, FN_QSTVA_B_QVS_B,
3469 FN_HSPI_CLK1, FN_SCK2_D, FN_AUDIO_CLKOUT_B, FN_GPS_MAG_D,
3470 /* IP5_20_17 [4] */
3471 FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_VI2_CLK, FN_TX3_B_IRDA_TX_B,
3472 FN_SD3_CD, FN_HSPI_TX1, FN_VI1_CLKENB, FN_VI3_CLKENB,
3473 FN_AUDIO_CLKC, FN_TX2_D, FN_SPEEDIN, FN_GPS_SIGN_D, 0,
3474 0, 0, 0, 0,
3475 /* IP5_16_15 [2] */
3476 FN_DU1_EXVSYNC_DU1_VSYNC, FN_VI2_VSYNC, FN_VI3_VSYNC, 0,
3477 /* IP5_14_13 [2] */
3478 FN_DU1_EXHSYNC_DU1_HSYNC, FN_VI2_HSYNC, FN_VI3_HSYNC, 0,
3479 /* IP5_12_11 [2] */
3480 FN_DU1_DOTCLKOUT, FN_VI2_FIELD, FN_SDA1_D, 0,
3481 /* IP5_10_9 [2] */
3482 FN_DU1_DOTCLKIN, FN_VI2_CLKENB, FN_HSPI_CS1, FN_SCL1_D,
3483 /* IP5_8 [1] */
3484 FN_DU1_DB7, FN_SDA2_D,
3485 /* IP5_7 [1] */
3486 FN_DU1_DB6, FN_SCL2_D,
3487 /* IP5_6 [1] */
3488 FN_DU1_DB5, FN_VI2_R7,
3489 /* IP5_5 [1] */
3490 FN_DU1_DB4, FN_VI2_R6,
3491 /* IP5_4 [1] */
3492 FN_DU1_DB3, FN_VI2_R5,
3493 /* IP5_3 [1] */
3494 FN_DU1_DB2, FN_VI2_R4,
3495 /* IP5_2_0 [3] */
3496 FN_DU1_DB1, FN_VI2_DATA5_VI2_B5, FN_SDA2_B, FN_SD3_DAT1,
3497 FN_RX5, FN_RTS0_D_TANS_D, 0, 0 }
3498 },
3499 { PINMUX_CFG_REG_VAR("IPSR6", 0xfffc0038, 32,
3500 1, 2, 2, 2, 2, 3, 2, 3, 3, 3, 1, 2, 2, 2, 2) {
3501 /* IP6_31 [1] */
3502 0, 0,
3503 /* IP6_30_29 [2] */
3504 FN_SSI_SCK6, FN_ADICHS0, FN_CAN0_TX, FN_IERX_B,
3505 /* IP_28_27 [2] */
3506 0, 0, 0, 0,
3507 /* IP6_26_25 [2] */
3508 FN_SSI_SDATA5, FN_ADIDATA, FN_CAN_DEBUGOUT12, FN_RX3_IRDA_RX,
3509 /* IP6_24_23 [2] */
3510 FN_SSI_WS5, FN_ADICS_SAMP, FN_CAN_DEBUGOUT11, FN_TX3_IRDA_TX,
3511 /* IP6_22_20 [3] */
3512 FN_SSI_SCK5, FN_ADICLK, FN_CAN_DEBUGOUT10, FN_SCK3,
3513 FN_TCLK0_D, 0, 0, 0,
3514 /* IP6_19_18 [2] */
3515 FN_SSI_SDATA4, FN_CAN_DEBUGOUT9, FN_SSI_SDATA9_C, 0,
3516 /* IP6_17_15 [3] */
3517 FN_SSI_SDATA3, FN_PWM0_C, FN_CAN_DEBUGOUT8, FN_CAN_CLK_B,
3518 FN_IECLK, FN_SCIF_CLK_B, FN_TCLK0_B, 0,
3519 /* IP6_14_12 [3] */
3520 FN_SSI_WS34, FN_CAN_DEBUGOUT7, FN_CAN0_RX_B, FN_IETX,
3521 FN_SSI_WS9_C, 0, 0, 0,
3522 /* IP6_11_9 [3] */
3523 FN_SSI_SCK34, FN_CAN_DEBUGOUT6, FN_CAN0_TX_B, FN_IERX,
3524 FN_SSI_SCK9_C, 0, 0, 0,
3525 /* IP6_8 [1] */
3526 FN_SSI_SDATA2, FN_CAN_DEBUGOUT5,
3527 /* IP6_7_6 [2] */
3528 FN_SSI_SDATA1, FN_CAN_DEBUGOUT4, FN_MOUT6, 0,
3529 /* IP6_5_4 [2] */
3530 FN_SSI_SDATA0, FN_CAN_DEBUGOUT3, FN_MOUT5, 0,
3531 /* IP6_3_2 [2] */
3532 FN_SSI_WS0129, FN_CAN_DEBUGOUT2, FN_MOUT2, 0,
3533 /* IP6_1_0 [2] */
3534 FN_SSI_SCK0129, FN_CAN_DEBUGOUT1, FN_MOUT1, 0 }
3535 },
3536 { PINMUX_CFG_REG_VAR("IPSR7", 0xfffc003c, 32,
3537 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2) {
3538 /* IP7_31 [1] */
3539 0, 0,
3540 /* IP7_30_29 [2] */
3541 FN_SD0_WP, FN_DACK2, FN_CTS1_B, 0,
3542 /* IP7_28_27 [2] */
3543 FN_SD0_CD, FN_DREQ2, FN_RTS1_B_TANS_B, 0,
3544 /* IP7_26_25 [2] */
3545 FN_SD0_DAT3, FN_ATAWR1, FN_RX2_B, FN_CC5_TDI,
3546 /* IP7_24_23 [2] */
3547 FN_SD0_DAT2, FN_ATARD1, FN_TX2_B, FN_CC5_TCK,
3548 /* IP7_22_21 [2] */
3549 FN_SD0_DAT1, FN_ATAG1, FN_SCK2_B, FN_CC5_TMS,
3550 /* IP7_20_19 [2] */
3551 FN_SD0_DAT0, FN_ATADIR1, FN_RX1_B, FN_CC5_TRST,
3552 /* IP7_18_17 [2] */
3553 FN_SD0_CMD, FN_ATACS11, FN_TX1_B, FN_CC5_TDO,
3554 /* IP7_16_15 [2] */
3555 FN_SD0_CLK, FN_ATACS01, FN_SCK1_B, 0,
3556 /* IP7_14_13 [2] */
3557 FN_SSI_SDATA8, FN_VSP, FN_IRQ3_B, FN_HSPI_RX1_C,
3558 /* IP7_12_10 [3] */
3559 FN_SSI_SDATA7, FN_CAN_DEBUGOUT15, FN_IRQ2_B, FN_TCLK1_C,
3560 FN_HSPI_TX1_C, 0, 0, 0,
3561 /* IP7_9_7 [3] */
3562 FN_SSI_WS78, FN_CAN_DEBUGOUT14, FN_IRQ1_B, FN_SSI_WS9_B,
3563 FN_HSPI_CS1_C, 0, 0, 0,
3564 /* IP7_6_4 [3] */
3565 FN_SSI_SCK78, FN_CAN_DEBUGOUT13, FN_IRQ0_B, FN_SSI_SCK9_B,
3566 FN_HSPI_CLK1_C, 0, 0, 0,
3567 /* IP7_3_2 [2] */
3568 FN_SSI_SDATA6, FN_ADICHS2, FN_CAN_CLK, FN_IECLK_B,
3569 /* IP7_1_0 [2] */
3570 FN_SSI_WS6, FN_ADICHS1, FN_CAN0_RX, FN_IETX_B }
3571 },
3572 { PINMUX_CFG_REG_VAR("IPSR8", 0xfffc0040, 32,
3573 1, 3, 3, 2, 2, 1, 1, 1, 2, 4, 4, 4, 4) {
3574 /* IP8_31 [1] */
3575 0, 0,
3576 /* IP8_30_28 [3] */
3577 FN_VI0_VSYNC, FN_VI0_DATA1_B_VI0_B1_B, FN_RTS1_C_TANS_C, FN_RX4_D,
3578 FN_PWMFSW0_C, 0, 0, 0,
3579 /* IP8_27_25 [3] */
3580 FN_VI0_HSYNC, FN_VI0_DATA0_B_VI0_B0_B, FN_CTS1_C, FN_TX4_D,
3581 FN_MMC1_CMD, FN_HSCK1_B, 0, 0,
3582 /* IP8_24_23 [2] */
3583 FN_VI0_FIELD, FN_RX1_C, FN_HRX1_B, 0,
3584 /* IP8_22_21 [2] */
3585 FN_VI0_CLKENB, FN_TX1_C, FN_HTX1_B, FN_MT1_SYNC,
3586 /* IP8_20 [1] */
3587 FN_VI0_CLK, FN_MMC1_CLK,
3588 /* IP8_19 [1] */
3589 FN_FMIN, FN_RDS_DATA,
3590 /* IP8_18 [1] */
3591 FN_BPFCLK, FN_PCMWE,
3592 /* IP8_17_16 [2] */
3593 FN_FMCLK, FN_RDS_CLK, FN_PCMOE, 0,
3594 /* IP8_15_12 [4] */
3595 FN_HSPI_RX0, FN_RX0, FN_CAN_STEP0, FN_AD_NCS,
3596 FN_CC5_STATE7, FN_CC5_STATE15, FN_CC5_STATE23, FN_CC5_STATE31,
3597 FN_CC5_STATE39, 0, 0, 0,
3598 0, 0, 0, 0,
3599 /* IP8_11_8 [4] */
3600 FN_HSPI_TX0, FN_TX0, FN_CAN_DEBUG_HW_TRIGGER, FN_AD_DO,
3601 FN_CC5_STATE6, FN_CC5_STATE14, FN_CC5_STATE22, FN_CC5_STATE30,
3602 FN_CC5_STATE38, 0, 0, 0,
3603 0, 0, 0, 0,
3604 /* IP8_7_4 [4] */
3605 FN_HSPI_CS0, FN_RTS0_TANS, FN_USB_OVC1, FN_AD_DI,
3606 FN_CC5_STATE5, FN_CC5_STATE13, FN_CC5_STATE21, FN_CC5_STATE29,
3607 FN_CC5_STATE37, 0, 0, 0,
3608 0, 0, 0, 0,
3609 /* IP8_3_0 [4] */
3610 FN_HSPI_CLK0, FN_CTS0, FN_USB_OVC0, FN_AD_CLK,
3611 FN_CC5_STATE4, FN_CC5_STATE12, FN_CC5_STATE20, FN_CC5_STATE28,
3612 FN_CC5_STATE36, 0, 0, 0,
3613 0, 0, 0, 0 }
3614 },
3615 { PINMUX_CFG_REG_VAR("IPSR9", 0xfffc0044, 32,
3616 2, 2, 2, 2, 2, 3, 3, 2, 2,
3617 2, 2, 1, 1, 1, 1, 2, 2) {
3618 /* IP9_31_30 [2] */
3619 0, 0, 0, 0,
3620 /* IP9_29_28 [2] */
3621 FN_VI0_G7, FN_ETH_RXD1, FN_SD2_DAT3_B, FN_ARM_TRACEDATA_9,
3622 /* IP9_27_26 [2] */
3623 FN_VI0_G6, FN_ETH_RXD0, FN_SD2_DAT2_B, FN_ARM_TRACEDATA_8,
3624 /* IP9_25_24 [2] */
3625 FN_VI0_G5, FN_ETH_RX_ER, FN_SD2_DAT1_B, FN_ARM_TRACEDATA_7,
3626 /* IP9_23_22 [2] */
3627 FN_VI0_G4, FN_ETH_TX_EN, FN_SD2_DAT0_B, FN_ARM_TRACEDATA_6,
3628 /* IP9_21_19 [3] */
3629 FN_VI0_G3, FN_ETH_CRS_DV, FN_MMC1_D7, FN_ARM_TRACEDATA_5,
3630 FN_TS_SDAT0, 0, 0, 0,
3631 /* IP9_18_16 [3] */
3632 FN_VI0_G2, FN_ETH_TXD1, FN_MMC1_D6, FN_ARM_TRACEDATA_4,
3633 FN_TS_SPSYNC0, 0, 0, 0,
3634 /* IP9_15_14 [2] */
3635 FN_VI0_G1, FN_SSI_WS78_C, FN_IRQ1, FN_ARM_TRACEDATA_3,
3636 /* IP9_13_12 [2] */
3637 FN_VI0_G0, FN_SSI_SCK78_C, FN_IRQ0, FN_ARM_TRACEDATA_2,
3638 /* IP9_11_10 [2] */
3639 FN_VI0_DATA7_VI0_B7, FN_MMC1_D5, FN_ARM_TRACEDATA_1, 0,
3640 /* IP9_9_8 [2] */
3641 FN_VI0_DATA6_VI0_B6, FN_MMC1_D4, FN_ARM_TRACEDATA_0, 0,
3642 /* IP9_7 [1] */
3643 FN_VI0_DATA5_VI0_B5, FN_MMC1_D3,
3644 /* IP9_6 [1] */
3645 FN_VI0_DATA4_VI0_B4, FN_MMC1_D2,
3646 /* IP9_5 [1] */
3647 FN_VI0_DATA3_VI0_B3, FN_MMC1_D1,
3648 /* IP9_4 [1] */
3649 FN_VI0_DATA2_VI0_B2, FN_MMC1_D0,
3650 /* IP9_3_2 [2] */
3651 FN_VI0_DATA1_VI0_B1, FN_HCTS1_B, FN_MT1_PWM, 0,
3652 /* IP9_1_0 [2] */
3653 FN_VI0_DATA0_VI0_B0, FN_HRTS1_B, FN_MT1_VCXO, 0 }
3654 },
3655 { PINMUX_CFG_REG_VAR("IPSR10", 0xfffc0048, 32,
3656 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3) {
3657 /* IP10_31_29 [3] */
3658 FN_VI1_VSYNC, FN_AUDIO_CLKOUT_C, FN_SSI_WS4, FN_SIM_CLK,
3659 FN_GPS_MAG_C, FN_SPV_TRST, FN_SCL3, 0,
3660 /* IP10_28_26 [3] */
3661 FN_VI1_HSYNC, FN_VI3_CLK, FN_SSI_SCK4, FN_GPS_SIGN_C,
3662 FN_PWMFSW0_E, 0, 0, 0,
3663 /* IP10_25_24 [2] */
3664 FN_VI1_CLK, FN_SIM_D, FN_SDA3, 0,
3665 /* IP10_23_21 [3] */
3666 FN_VI0_R7, FN_ETH_MDIO, FN_DACK2_C, FN_HSPI_RX1_B,
3667 FN_SCIF_CLK_D, FN_TRACECTL, FN_MT1_PEN, 0,
3668 /* IP10_20_18 [3] */
3669 FN_VI0_R6, FN_ETH_MDC, FN_DREQ2_C, FN_HSPI_TX1_B,
3670 FN_TRACECLK, FN_MT1_BEN, FN_PWMFSW0_D, 0,
3671 /* IP10_17_15 [3] */
3672 FN_VI0_R5, FN_ETH_TXD0, FN_SD2_WP_B, FN_HSPI_CS1_B,
3673 FN_ARM_TRACEDATA_15, FN_MT1_D, FN_TS_SDEN0, 0,
3674 /* IP10_14_12 [3] */
3675 FN_VI0_R4, FN_ETH_REFCLK, FN_SD2_CD_B, FN_HSPI_CLK1_B,
3676 FN_ARM_TRACEDATA_14, FN_MT1_CLK, FN_TS_SCK0, 0,
3677 /* IP10_11_9 [3] */
3678 FN_VI0_R3, FN_ETH_MAGIC, FN_SD2_CMD_B, FN_IRQ3,
3679 FN_ARM_TRACEDATA_13, 0, 0, 0,
3680 /* IP10_8_6 [3] */
3681 FN_VI0_R2, FN_ETH_LINK, FN_SD2_CLK_B, FN_IRQ2,
3682 FN_ARM_TRACEDATA_12, 0, 0, 0,
3683 /* IP10_5_3 [3] */
3684 FN_VI0_R1, FN_SSI_SDATA8_C, FN_DACK1_B, FN_ARM_TRACEDATA_11,
3685 FN_DACK0_C, FN_DRACK0_C, 0, 0,
3686 /* IP10_2_0 [3] */
3687 FN_VI0_R0, FN_SSI_SDATA7_C, FN_SCK1_C, FN_DREQ1_B,
3688 FN_ARM_TRACEDATA_10, FN_DREQ0_C, 0, 0 }
3689 },
3690 { PINMUX_CFG_REG_VAR("IPSR11", 0xfffc004c, 32,
3691 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3) {
3692 /* IP11_31_30 [2] */
3693 0, 0, 0, 0,
3694 /* IP11_29_27 [3] */
3695 FN_VI1_G1, FN_VI3_DATA1, FN_SSI_SCK1, FN_TS_SDEN1,
3696 FN_DACK2_B, FN_RX2, FN_HRTS0_B, 0,
3697 /* IP11_26_24 [3] */
Laurent Pinchart2a028182013-01-09 22:32:25 +01003698 FN_VI1_G0, FN_VI3_DATA0, 0, FN_TS_SCK1,
Laurent Pinchart881023d2012-12-15 23:51:22 +01003699 FN_DREQ2_B, FN_TX2, FN_SPA_TDO, FN_HCTS0_B,
3700 /* IP11_23_21 [3] */
3701 FN_VI1_DATA7_VI1_B7, FN_SD2_WP, FN_MT0_PWM, FN_SPA_TDI,
3702 FN_HSPI_RX1_D, 0, 0, 0,
3703 /* IP11_20_18 [3] */
3704 FN_VI1_DATA6_VI1_B6, FN_SD2_CD, FN_MT0_VCXO, FN_SPA_TMS,
3705 FN_HSPI_TX1_D, 0, 0, 0,
3706 /* IP11_17_15 [3] */
3707 FN_VI1_DATA5_VI1_B5, FN_SD2_CMD, FN_MT0_SYNC, FN_SPA_TCK,
3708 FN_HSPI_CS1_D, FN_ADICHS2_B, 0, 0,
3709 /* IP11_14_12 [3] */
3710 FN_VI1_DATA4_VI1_B4, FN_SD2_CLK, FN_MT0_PEN, FN_SPA_TRST,
3711 FN_HSPI_CLK1_D, FN_ADICHS1_B, 0, 0,
3712 /* IP11_11_9 [3] */
3713 FN_VI1_DATA3_VI1_B3, FN_SD2_DAT3, FN_MT0_BEN, FN_SPV_TDO,
3714 FN_ADICHS0_B, 0, 0, 0,
3715 /* IP11_8_6 [3] */
3716 FN_VI1_DATA2_VI1_B2, FN_SD2_DAT2, FN_MT0_D, FN_SPVTDI,
3717 FN_ADIDATA_B, 0, 0, 0,
3718 /* IP11_5_3 [3] */
3719 FN_VI1_DATA1_VI1_B1, FN_SD2_DAT1, FN_MT0_CLK, FN_SPV_TMS,
3720 FN_ADICS_B_SAMP_B, 0, 0, 0,
3721 /* IP11_2_0 [3] */
3722 FN_VI1_DATA0_VI1_B0, FN_SD2_DAT0, FN_SIM_RST, FN_SPV_TCK,
3723 FN_ADICLK_B, 0, 0, 0 }
3724 },
3725 { PINMUX_CFG_REG_VAR("IPSR12", 0xfffc0050, 32,
3726 4, 4, 4, 2, 3, 3, 3, 3, 3, 3) {
3727 /* IP12_31_28 [4] */
3728 0, 0, 0, 0, 0, 0, 0, 0,
3729 0, 0, 0, 0, 0, 0, 0, 0,
3730 /* IP12_27_24 [4] */
3731 0, 0, 0, 0, 0, 0, 0, 0,
3732 0, 0, 0, 0, 0, 0, 0, 0,
3733 /* IP12_23_20 [4] */
3734 0, 0, 0, 0, 0, 0, 0, 0,
3735 0, 0, 0, 0, 0, 0, 0, 0,
3736 /* IP12_19_18 [2] */
3737 0, 0, 0, 0,
3738 /* IP12_17_15 [3] */
3739 FN_VI1_G7, FN_VI3_DATA7, FN_GPS_MAG, FN_FCE,
3740 FN_SCK4_B, 0, 0, 0,
3741 /* IP12_14_12 [3] */
3742 FN_VI1_G6, FN_VI3_DATA6, FN_GPS_SIGN, FN_FRB,
3743 FN_RX4_B, FN_SIM_CLK_B, 0, 0,
3744 /* IP12_11_9 [3] */
3745 FN_VI1_G5, FN_VI3_DATA5, FN_GPS_CLK, FN_FSE,
3746 FN_TX4_B, FN_SIM_D_B, 0, 0,
3747 /* IP12_8_6 [3] */
3748 FN_VI1_G4, FN_VI3_DATA4, FN_SSI_WS2, FN_SDA1_C,
3749 FN_SIM_RST_B, FN_HRX0_B, 0, 0,
3750 /* IP12_5_3 [3] */
3751 FN_VI1_G3, FN_VI3_DATA3, FN_SSI_SCK2, FN_TS_SDAT1,
3752 FN_SCL1_C, FN_HTX0_B, 0, 0,
3753 /* IP12_2_0 [3] */
3754 FN_VI1_G2, FN_VI3_DATA2, FN_SSI_WS1, FN_TS_SPSYNC1,
3755 FN_SCK2, FN_HSCK0_B, 0, 0 }
3756 },
3757 { PINMUX_CFG_REG_VAR("MOD_SEL", 0xfffc0090, 32,
3758 2, 2, 3, 3, 2, 2, 2, 2, 2,
3759 1, 1, 1, 1, 1, 1, 1, 2, 1, 2) {
3760 /* SEL_SCIF5 [2] */
3761 FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, FN_SEL_SCIF5_2, FN_SEL_SCIF5_3,
3762 /* SEL_SCIF4 [2] */
3763 FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, FN_SEL_SCIF4_3,
3764 /* SEL_SCIF3 [3] */
3765 FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3,
3766 FN_SEL_SCIF3_4, 0, 0, 0,
3767 /* SEL_SCIF2 [3] */
3768 FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, FN_SEL_SCIF2_3,
3769 FN_SEL_SCIF2_4, 0, 0, 0,
3770 /* SEL_SCIF1 [2] */
3771 FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, 0,
3772 /* SEL_SCIF0 [2] */
3773 FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, FN_SEL_SCIF0_3,
3774 /* SEL_SSI9 [2] */
3775 FN_SEL_SSI9_0, FN_SEL_SSI9_1, FN_SEL_SSI9_2, 0,
3776 /* SEL_SSI8 [2] */
3777 FN_SEL_SSI8_0, FN_SEL_SSI8_1, FN_SEL_SSI8_2, 0,
3778 /* SEL_SSI7 [2] */
3779 FN_SEL_SSI7_0, FN_SEL_SSI7_1, FN_SEL_SSI7_2, 0,
3780 /* SEL_VI0 [1] */
3781 FN_SEL_VI0_0, FN_SEL_VI0_1,
3782 /* SEL_SD2 [1] */
3783 FN_SEL_SD2_0, FN_SEL_SD2_1,
3784 /* SEL_INT3 [1] */
3785 FN_SEL_INT3_0, FN_SEL_INT3_1,
3786 /* SEL_INT2 [1] */
3787 FN_SEL_INT2_0, FN_SEL_INT2_1,
3788 /* SEL_INT1 [1] */
3789 FN_SEL_INT1_0, FN_SEL_INT1_1,
3790 /* SEL_INT0 [1] */
3791 FN_SEL_INT0_0, FN_SEL_INT0_1,
3792 /* SEL_IE [1] */
3793 FN_SEL_IE_0, FN_SEL_IE_1,
3794 /* SEL_EXBUS2 [2] */
3795 FN_SEL_EXBUS2_0, FN_SEL_EXBUS2_1, FN_SEL_EXBUS2_2, 0,
3796 /* SEL_EXBUS1 [1] */
3797 FN_SEL_EXBUS1_0, FN_SEL_EXBUS1_1,
3798 /* SEL_EXBUS0 [2] */
3799 FN_SEL_EXBUS0_0, FN_SEL_EXBUS0_1, FN_SEL_EXBUS0_2, 0 }
3800 },
3801 { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xfffc0094, 32,
3802 2, 2, 2, 2, 1, 1, 1, 3, 1,
3803 2, 2, 2, 2, 1, 1, 2, 1, 2, 2) {
3804 /* SEL_TMU1 [2] */
3805 FN_SEL_TMU1_0, FN_SEL_TMU1_1, FN_SEL_TMU1_2, 0,
3806 /* SEL_TMU0 [2] */
3807 FN_SEL_TMU0_0, FN_SEL_TMU0_1, FN_SEL_TMU0_2, FN_SEL_TMU0_3,
3808 /* SEL_SCIF [2] */
3809 FN_SEL_SCIF_0, FN_SEL_SCIF_1, FN_SEL_SCIF_2, FN_SEL_SCIF_3,
3810 /* SEL_CANCLK [2] */
Phil Edworthyb9ffcc22013-06-03 08:52:28 +01003811 FN_SEL_CANCLK_0, FN_SEL_CANCLK_1, FN_SEL_CANCLK_2, 0,
Laurent Pinchart881023d2012-12-15 23:51:22 +01003812 /* SEL_CAN0 [1] */
3813 FN_SEL_CAN0_0, FN_SEL_CAN0_1,
3814 /* SEL_HSCIF1 [1] */
3815 FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
3816 /* SEL_HSCIF0 [1] */
3817 FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1,
3818 /* SEL_PWMFSW [3] */
3819 FN_SEL_PWMFSW_0, FN_SEL_PWMFSW_1, FN_SEL_PWMFSW_2,
3820 FN_SEL_PWMFSW_3, FN_SEL_PWMFSW_4, 0, 0, 0,
3821 /* SEL_ADI [1] */
3822 FN_SEL_ADI_0, FN_SEL_ADI_1,
3823 /* [2] */
3824 0, 0, 0, 0,
3825 /* [2] */
3826 0, 0, 0, 0,
3827 /* [2] */
3828 0, 0, 0, 0,
3829 /* SEL_GPS [2] */
3830 FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
3831 /* SEL_SIM [1] */
3832 FN_SEL_SIM_0, FN_SEL_SIM_1,
3833 /* SEL_HSPI2 [1] */
3834 FN_SEL_HSPI2_0, FN_SEL_HSPI2_1,
3835 /* SEL_HSPI1 [2] */
3836 FN_SEL_HSPI1_0, FN_SEL_HSPI1_1, FN_SEL_HSPI1_2, FN_SEL_HSPI1_3,
3837 /* SEL_I2C3 [1] */
3838 FN_SEL_I2C3_0, FN_SEL_I2C3_1,
3839 /* SEL_I2C2 [2] */
3840 FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
3841 /* SEL_I2C1 [2] */
3842 FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, FN_SEL_I2C1_3 }
3843 },
Laurent Pinchart881023d2012-12-15 23:51:22 +01003844 { },
3845};
3846
Laurent Pinchartcd3c1be2013-02-16 18:47:05 +01003847const struct sh_pfc_soc_info r8a7779_pinmux_info = {
Laurent Pinchart881023d2012-12-15 23:51:22 +01003848 .name = "r8a7779_pfc",
3849
3850 .unlock_reg = 0xfffc0000, /* PMMR */
3851
Laurent Pinchart881023d2012-12-15 23:51:22 +01003852 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
3853
Laurent Pincharta373ed02012-11-29 13:24:07 +01003854 .pins = pinmux_pins,
3855 .nr_pins = ARRAY_SIZE(pinmux_pins),
Laurent Pincharte8ebafd2013-01-03 13:07:05 +01003856 .groups = pinmux_groups,
3857 .nr_groups = ARRAY_SIZE(pinmux_groups),
3858 .functions = pinmux_functions,
3859 .nr_functions = ARRAY_SIZE(pinmux_functions),
3860
Laurent Pinchart881023d2012-12-15 23:51:22 +01003861 .cfg_regs = pinmux_config_regs,
Laurent Pinchart881023d2012-12-15 23:51:22 +01003862
Geert Uytterhoevenb8b47d62015-09-21 16:27:23 +02003863 .pinmux_data = pinmux_data,
3864 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
Laurent Pinchart881023d2012-12-15 23:51:22 +01003865};