xref: /linux/drivers/pinctrl/renesas/pfc-r8a7778.c (revision 077365a941166f3a7f5894017f9d26d17cdec00e)
1*077365a9SGeert Uytterhoeven // SPDX-License-Identifier: GPL-2.0
2*077365a9SGeert Uytterhoeven /*
3*077365a9SGeert Uytterhoeven  * r8a7778 processor support - PFC hardware block
4*077365a9SGeert Uytterhoeven  *
5*077365a9SGeert Uytterhoeven  * Copyright (C) 2013  Renesas Solutions Corp.
6*077365a9SGeert Uytterhoeven  * Copyright (C) 2013  Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
7*077365a9SGeert Uytterhoeven  * Copyright (C) 2013  Cogent Embedded, Inc.
8*077365a9SGeert Uytterhoeven  * Copyright (C) 2015  Ulrich Hecht
9*077365a9SGeert Uytterhoeven  *
10*077365a9SGeert Uytterhoeven  * based on
11*077365a9SGeert Uytterhoeven  * Copyright (C) 2011  Renesas Solutions Corp.
12*077365a9SGeert Uytterhoeven  * Copyright (C) 2011  Magnus Damm
13*077365a9SGeert Uytterhoeven  */
14*077365a9SGeert Uytterhoeven 
15*077365a9SGeert Uytterhoeven #include <linux/io.h>
16*077365a9SGeert Uytterhoeven #include <linux/kernel.h>
17*077365a9SGeert Uytterhoeven #include <linux/pinctrl/pinconf-generic.h>
18*077365a9SGeert Uytterhoeven 
19*077365a9SGeert Uytterhoeven #include "core.h"
20*077365a9SGeert Uytterhoeven #include "sh_pfc.h"
21*077365a9SGeert Uytterhoeven 
22*077365a9SGeert Uytterhoeven #define PORT_GP_PUP_1(bank, pin, fn, sfx)	\
23*077365a9SGeert Uytterhoeven 	PORT_GP_CFG_1(bank, pin, fn, sfx, SH_PFC_PIN_CFG_PULL_UP)
24*077365a9SGeert Uytterhoeven 
25*077365a9SGeert Uytterhoeven #define CPU_ALL_GP(fn, sfx)		\
26*077365a9SGeert Uytterhoeven 	PORT_GP_CFG_32(0, fn, sfx, SH_PFC_PIN_CFG_PULL_UP),		\
27*077365a9SGeert Uytterhoeven 	PORT_GP_CFG_32(1, fn, sfx, SH_PFC_PIN_CFG_PULL_UP),		\
28*077365a9SGeert Uytterhoeven 	PORT_GP_CFG_32(2, fn, sfx, SH_PFC_PIN_CFG_PULL_UP),		\
29*077365a9SGeert Uytterhoeven 	PORT_GP_CFG_32(3, fn, sfx, SH_PFC_PIN_CFG_PULL_UP),		\
30*077365a9SGeert Uytterhoeven 	PORT_GP_CFG_27(4, fn, sfx, SH_PFC_PIN_CFG_PULL_UP)
31*077365a9SGeert Uytterhoeven 
32*077365a9SGeert Uytterhoeven #define CPU_ALL_NOGP(fn)		\
33*077365a9SGeert Uytterhoeven 	PIN_NOGP(CLKOUT, "B25", fn),	\
34*077365a9SGeert Uytterhoeven 	PIN_NOGP(CS0, "A20", fn),	\
35*077365a9SGeert Uytterhoeven 	PIN_NOGP(CS1_A26, "C20", fn)
36*077365a9SGeert Uytterhoeven 
37*077365a9SGeert Uytterhoeven enum {
38*077365a9SGeert Uytterhoeven 	PINMUX_RESERVED = 0,
39*077365a9SGeert Uytterhoeven 
40*077365a9SGeert Uytterhoeven 	PINMUX_DATA_BEGIN,
41*077365a9SGeert Uytterhoeven 	GP_ALL(DATA), /* GP_0_0_DATA -> GP_4_26_DATA */
42*077365a9SGeert Uytterhoeven 	PINMUX_DATA_END,
43*077365a9SGeert Uytterhoeven 
44*077365a9SGeert Uytterhoeven 	PINMUX_FUNCTION_BEGIN,
45*077365a9SGeert Uytterhoeven 	GP_ALL(FN), /* GP_0_0_FN -> GP_4_26_FN */
46*077365a9SGeert Uytterhoeven 
47*077365a9SGeert Uytterhoeven 	/* GPSR0 */
48*077365a9SGeert Uytterhoeven 	FN_IP0_1_0,	FN_PENC0,	FN_PENC1,	FN_IP0_4_2,
49*077365a9SGeert Uytterhoeven 	FN_IP0_7_5,	FN_IP0_11_8,	FN_IP0_14_12,	FN_A1,
50*077365a9SGeert Uytterhoeven 	FN_A2,		FN_A3,		FN_IP0_15,	FN_IP0_16,
51*077365a9SGeert Uytterhoeven 	FN_IP0_17,	FN_IP0_18,	FN_IP0_19,	FN_IP0_20,
52*077365a9SGeert Uytterhoeven 	FN_IP0_21,	FN_IP0_22,	FN_IP0_23,	FN_IP0_24,
53*077365a9SGeert Uytterhoeven 	FN_IP0_25,	FN_IP0_26,	FN_IP0_27,	FN_IP0_28,
54*077365a9SGeert Uytterhoeven 	FN_IP0_29,	FN_IP0_30,	FN_IP1_0,	FN_IP1_1,
55*077365a9SGeert Uytterhoeven 	FN_IP1_4_2,	FN_IP1_7_5,	FN_IP1_10_8,	FN_IP1_14_11,
56*077365a9SGeert Uytterhoeven 
57*077365a9SGeert Uytterhoeven 	/* GPSR1 */
58*077365a9SGeert Uytterhoeven 	FN_IP1_23_21,	FN_WE0,		FN_IP1_24,	FN_IP1_27_25,
59*077365a9SGeert Uytterhoeven 	FN_IP1_29_28,	FN_IP2_2_0,	FN_IP2_5_3,	FN_IP2_8_6,
60*077365a9SGeert Uytterhoeven 	FN_IP2_11_9,	FN_IP2_13_12,	FN_IP2_16_14,	FN_IP2_17,
61*077365a9SGeert Uytterhoeven 	FN_IP2_30,	FN_IP2_31,	FN_IP3_1_0,	FN_IP3_4_2,
62*077365a9SGeert Uytterhoeven 	FN_IP3_7_5,	FN_IP3_9_8,	FN_IP3_12_10,	FN_IP3_15_13,
63*077365a9SGeert Uytterhoeven 	FN_IP3_18_16,	FN_IP3_20_19,	FN_IP3_23_21,	FN_IP3_26_24,
64*077365a9SGeert Uytterhoeven 	FN_IP3_27,	FN_IP3_28,	FN_IP3_29,	FN_IP3_30,
65*077365a9SGeert Uytterhoeven 	FN_IP3_31,	FN_IP4_0,	FN_IP4_3_1,	FN_IP4_6_4,
66*077365a9SGeert Uytterhoeven 
67*077365a9SGeert Uytterhoeven 	/* GPSR2 */
68*077365a9SGeert Uytterhoeven 	FN_IP4_7,	FN_IP4_8,	FN_IP4_10_9,	FN_IP4_12_11,
69*077365a9SGeert Uytterhoeven 	FN_IP4_14_13,	FN_IP4_16_15,	FN_IP4_20_17,	FN_IP4_24_21,
70*077365a9SGeert Uytterhoeven 	FN_IP4_26_25,	FN_IP4_28_27,	FN_IP4_30_29,	FN_IP5_1_0,
71*077365a9SGeert Uytterhoeven 	FN_IP5_3_2,	FN_IP5_5_4,	FN_IP5_6,	FN_IP5_7,
72*077365a9SGeert Uytterhoeven 	FN_IP5_9_8,	FN_IP5_11_10,	FN_IP5_12,	FN_IP5_14_13,
73*077365a9SGeert Uytterhoeven 	FN_IP5_17_15,	FN_IP5_20_18,	FN_AUDIO_CLKA,	FN_AUDIO_CLKB,
74*077365a9SGeert Uytterhoeven 	FN_IP5_22_21,	FN_IP5_25_23,	FN_IP5_28_26,	FN_IP5_30_29,
75*077365a9SGeert Uytterhoeven 	FN_IP6_1_0,	FN_IP6_4_2,	FN_IP6_6_5,	FN_IP6_7,
76*077365a9SGeert Uytterhoeven 
77*077365a9SGeert Uytterhoeven 	/* GPSR3 */
78*077365a9SGeert Uytterhoeven 	FN_IP6_8,	FN_IP6_9,	FN_SSI_SCK34,	FN_IP6_10,
79*077365a9SGeert Uytterhoeven 	FN_IP6_12_11,	FN_IP6_13,	FN_IP6_15_14,	FN_IP6_16,
80*077365a9SGeert Uytterhoeven 	FN_IP6_18_17,	FN_IP6_20_19,	FN_IP6_21,	FN_IP6_23_22,
81*077365a9SGeert Uytterhoeven 	FN_IP6_25_24,	FN_IP6_27_26,	FN_IP6_29_28,	FN_IP6_31_30,
82*077365a9SGeert Uytterhoeven 	FN_IP7_1_0,	FN_IP7_3_2,	FN_IP7_5_4,	FN_IP7_8_6,
83*077365a9SGeert Uytterhoeven 	FN_IP7_11_9,	FN_IP7_14_12,	FN_IP7_17_15,	FN_IP7_20_18,
84*077365a9SGeert Uytterhoeven 	FN_IP7_21,	FN_IP7_24_22,	FN_IP7_28_25,	FN_IP7_31_29,
85*077365a9SGeert Uytterhoeven 	FN_IP8_2_0,	FN_IP8_5_3,	FN_IP8_8_6,	FN_IP8_10_9,
86*077365a9SGeert Uytterhoeven 
87*077365a9SGeert Uytterhoeven 	/* GPSR4 */
88*077365a9SGeert Uytterhoeven 	FN_IP8_13_11,	FN_IP8_15_14,	FN_IP8_18_16,	FN_IP8_21_19,
89*077365a9SGeert Uytterhoeven 	FN_IP8_23_22,	FN_IP8_26_24,	FN_IP8_29_27,	FN_IP9_2_0,
90*077365a9SGeert Uytterhoeven 	FN_IP9_5_3,	FN_IP9_8_6,	FN_IP9_11_9,	FN_IP9_14_12,
91*077365a9SGeert Uytterhoeven 	FN_IP9_17_15,	FN_IP9_20_18,	FN_IP9_23_21,	FN_IP9_26_24,
92*077365a9SGeert Uytterhoeven 	FN_IP9_29_27,	FN_IP10_2_0,	FN_IP10_5_3,	FN_IP10_8_6,
93*077365a9SGeert Uytterhoeven 	FN_IP10_12_9,	FN_IP10_15_13,	FN_IP10_18_16,	FN_IP10_21_19,
94*077365a9SGeert Uytterhoeven 	FN_IP10_24_22,	FN_AVS1,	FN_AVS2,
95*077365a9SGeert Uytterhoeven 
96*077365a9SGeert Uytterhoeven 	/* IPSR0 */
97*077365a9SGeert Uytterhoeven 	FN_PRESETOUT,	FN_PWM1,	FN_AUDATA0,	FN_ARM_TRACEDATA_0,
98*077365a9SGeert Uytterhoeven 	FN_GPSCLK_C,	FN_USB_OVC0,	FN_TX2_E,	FN_SDA2_B,
99*077365a9SGeert Uytterhoeven 	FN_AUDATA1,	FN_ARM_TRACEDATA_1,		FN_GPSIN_C,
100*077365a9SGeert Uytterhoeven 	FN_USB_OVC1,	FN_RX2_E,	FN_SCL2_B,	FN_SD1_DAT2_A,
101*077365a9SGeert Uytterhoeven 	FN_MMC_D2,	FN_BS,		FN_ATADIR0_A,	FN_SDSELF_A,
102*077365a9SGeert Uytterhoeven 	FN_PWM4_B,	FN_SD1_DAT3_A,	FN_MMC_D3,	FN_A0,
103*077365a9SGeert Uytterhoeven 	FN_ATAG0_A,	FN_REMOCON_B,	FN_A4,		FN_A5,
104*077365a9SGeert Uytterhoeven 	FN_A6,		FN_A7,		FN_A8,		FN_A9,
105*077365a9SGeert Uytterhoeven 	FN_A10,		FN_A11,		FN_A12,		FN_A13,
106*077365a9SGeert Uytterhoeven 	FN_A14,		FN_A15,		FN_A16,		FN_A17,
107*077365a9SGeert Uytterhoeven 	FN_A18,		FN_A19,
108*077365a9SGeert Uytterhoeven 
109*077365a9SGeert Uytterhoeven 	/* IPSR1 */
110*077365a9SGeert Uytterhoeven 	FN_A20,		FN_HSPI_CS1_B,	FN_A21,		FN_HSPI_CLK1_B,
111*077365a9SGeert Uytterhoeven 	FN_A22,		FN_HRTS0_B,	FN_RX2_B,	FN_DREQ2_A,
112*077365a9SGeert Uytterhoeven 	FN_A23,		FN_HTX0_B,	FN_TX2_B,	FN_DACK2_A,
113*077365a9SGeert Uytterhoeven 	FN_TS_SDEN0_A,	FN_SD1_CD_A,	FN_MMC_D6,	FN_A24,
114*077365a9SGeert Uytterhoeven 	FN_DREQ1_A,	FN_HRX0_B,	FN_TS_SPSYNC0_A,
115*077365a9SGeert Uytterhoeven 	FN_SD1_WP_A,	FN_MMC_D7,	FN_A25,	FN_DACK1_A,
116*077365a9SGeert Uytterhoeven 	FN_HCTS0_B,	FN_RX3_C,	FN_TS_SDAT0_A,	FN_CLKOUT,
117*077365a9SGeert Uytterhoeven 	FN_HSPI_TX1_B,	FN_PWM0_B,	FN_CS0,		FN_HSPI_RX1_B,
118*077365a9SGeert Uytterhoeven 	FN_SSI_SCK1_B,	FN_ATAG0_B,	FN_CS1_A26,	FN_SDA2_A,
119*077365a9SGeert Uytterhoeven 	FN_SCK2_B,	FN_MMC_D5,	FN_ATADIR0_B,	FN_RD_WR,
120*077365a9SGeert Uytterhoeven 	FN_WE1,		FN_ATAWR0_B,	FN_SSI_WS1_B,	FN_EX_CS0,
121*077365a9SGeert Uytterhoeven 	FN_SCL2_A,	FN_TX3_C,	FN_TS_SCK0_A,	FN_EX_CS1,
122*077365a9SGeert Uytterhoeven 	FN_MMC_D4,
123*077365a9SGeert Uytterhoeven 
124*077365a9SGeert Uytterhoeven 	/* IPSR2 */
125*077365a9SGeert Uytterhoeven 	FN_SD1_CLK_A,	FN_MMC_CLK,	FN_ATACS00,	FN_EX_CS2,
126*077365a9SGeert Uytterhoeven 	FN_SD1_CMD_A,	FN_MMC_CMD,	FN_ATACS10,	FN_EX_CS3,
127*077365a9SGeert Uytterhoeven 	FN_SD1_DAT0_A,	FN_MMC_D0,	FN_ATARD0,	FN_EX_CS4,
128*077365a9SGeert Uytterhoeven 	FN_EX_WAIT1_A,	FN_SD1_DAT1_A,	FN_MMC_D1,	FN_ATAWR0_A,
129*077365a9SGeert Uytterhoeven 	FN_EX_CS5,	FN_EX_WAIT2_A,	FN_DREQ0_A,	FN_RX3_A,
130*077365a9SGeert Uytterhoeven 	FN_DACK0,	FN_TX3_A,	FN_DRACK0,	FN_EX_WAIT0,
131*077365a9SGeert Uytterhoeven 	FN_PWM0_C,	FN_D0,		FN_D1,		FN_D2,
132*077365a9SGeert Uytterhoeven 	FN_D3,		FN_D4,		FN_D5,		FN_D6,
133*077365a9SGeert Uytterhoeven 	FN_D7,		FN_D8,		FN_D9,		FN_D10,
134*077365a9SGeert Uytterhoeven 	FN_D11,		FN_RD_WR_B,	FN_IRQ0,	FN_MLB_CLK,
135*077365a9SGeert Uytterhoeven 	FN_IRQ1_A,
136*077365a9SGeert Uytterhoeven 
137*077365a9SGeert Uytterhoeven 	/* IPSR3 */
138*077365a9SGeert Uytterhoeven 	FN_MLB_SIG,	FN_RX5_B,	FN_SDA3_A,	FN_IRQ2_A,
139*077365a9SGeert Uytterhoeven 	FN_MLB_DAT,	FN_TX5_B,	FN_SCL3_A,	FN_IRQ3_A,
140*077365a9SGeert Uytterhoeven 	FN_SDSELF_B,	FN_SD1_CMD_B,	FN_SCIF_CLK,	FN_AUDIO_CLKOUT_B,
141*077365a9SGeert Uytterhoeven 	FN_CAN_CLK_B,	FN_SDA3_B,	FN_SD1_CLK_B,	FN_HTX0_A,
142*077365a9SGeert Uytterhoeven 	FN_TX0_A,	FN_SD1_DAT0_B,	FN_HRX0_A,	FN_RX0_A,
143*077365a9SGeert Uytterhoeven 	FN_SD1_DAT1_B,	FN_HSCK0,	FN_SCK0,	FN_SCL3_B,
144*077365a9SGeert Uytterhoeven 	FN_SD1_DAT2_B,	FN_HCTS0_A,	FN_CTS0,	FN_SD1_DAT3_B,
145*077365a9SGeert Uytterhoeven 	FN_HRTS0_A,	FN_RTS0,	FN_SSI_SCK4,	FN_DU0_DR0,
146*077365a9SGeert Uytterhoeven 	FN_LCDOUT0,	FN_AUDATA2,	FN_ARM_TRACEDATA_2,
147*077365a9SGeert Uytterhoeven 	FN_SDA3_C,	FN_ADICHS1,	FN_TS_SDEN0_B,	FN_SSI_WS4,
148*077365a9SGeert Uytterhoeven 	FN_DU0_DR1,	FN_LCDOUT1,	FN_AUDATA3,	FN_ARM_TRACEDATA_3,
149*077365a9SGeert Uytterhoeven 	FN_SCL3_C,	FN_ADICHS2,	FN_TS_SPSYNC0_B,
150*077365a9SGeert Uytterhoeven 	FN_DU0_DR2,	FN_LCDOUT2,	FN_DU0_DR3,	FN_LCDOUT3,
151*077365a9SGeert Uytterhoeven 	FN_DU0_DR4,	FN_LCDOUT4,	FN_DU0_DR5,	FN_LCDOUT5,
152*077365a9SGeert Uytterhoeven 	FN_DU0_DR6,	FN_LCDOUT6,
153*077365a9SGeert Uytterhoeven 
154*077365a9SGeert Uytterhoeven 	/* IPSR4 */
155*077365a9SGeert Uytterhoeven 	FN_DU0_DR7,	FN_LCDOUT7,	FN_DU0_DG0,	FN_LCDOUT8,
156*077365a9SGeert Uytterhoeven 	FN_AUDATA4,	FN_ARM_TRACEDATA_4,		FN_TX1_D,
157*077365a9SGeert Uytterhoeven 	FN_CAN0_TX_A,	FN_ADICHS0,	FN_DU0_DG1,	FN_LCDOUT9,
158*077365a9SGeert Uytterhoeven 	FN_AUDATA5,	FN_ARM_TRACEDATA_5,		FN_RX1_D,
159*077365a9SGeert Uytterhoeven 	FN_CAN0_RX_A,	FN_ADIDATA,	FN_DU0_DG2,	FN_LCDOUT10,
160*077365a9SGeert Uytterhoeven 	FN_DU0_DG3,	FN_LCDOUT11,	FN_DU0_DG4,	FN_LCDOUT12,
161*077365a9SGeert Uytterhoeven 	FN_RX0_B,	FN_DU0_DG5,	FN_LCDOUT13,	FN_TX0_B,
162*077365a9SGeert Uytterhoeven 	FN_DU0_DG6,	FN_LCDOUT14,	FN_RX4_A,	FN_DU0_DG7,
163*077365a9SGeert Uytterhoeven 	FN_LCDOUT15,	FN_TX4_A,	FN_SSI_SCK2_B,	FN_VI0_R0_B,
164*077365a9SGeert Uytterhoeven 	FN_DU0_DB0,	FN_LCDOUT16,	FN_AUDATA6,	FN_ARM_TRACEDATA_6,
165*077365a9SGeert Uytterhoeven 	FN_GPSCLK_A,	FN_PWM0_A,	FN_ADICLK,	FN_TS_SDAT0_B,
166*077365a9SGeert Uytterhoeven 	FN_AUDIO_CLKC,	FN_VI0_R1_B,	FN_DU0_DB1,	FN_LCDOUT17,
167*077365a9SGeert Uytterhoeven 	FN_AUDATA7,	FN_ARM_TRACEDATA_7,		FN_GPSIN_A,
168*077365a9SGeert Uytterhoeven 	FN_ADICS_SAMP,	FN_TS_SCK0_B,	FN_VI0_R2_B,	FN_DU0_DB2,
169*077365a9SGeert Uytterhoeven 	FN_LCDOUT18,	FN_VI0_R3_B,	FN_DU0_DB3,	FN_LCDOUT19,
170*077365a9SGeert Uytterhoeven 	FN_VI0_R4_B,	FN_DU0_DB4,	FN_LCDOUT20,
171*077365a9SGeert Uytterhoeven 
172*077365a9SGeert Uytterhoeven 	/* IPSR5 */
173*077365a9SGeert Uytterhoeven 	FN_VI0_R5_B,	FN_DU0_DB5,	FN_LCDOUT21,	FN_VI1_DATA10_B,
174*077365a9SGeert Uytterhoeven 	FN_DU0_DB6,	FN_LCDOUT22,	FN_VI1_DATA11_B,
175*077365a9SGeert Uytterhoeven 	FN_DU0_DB7,	FN_LCDOUT23,	FN_DU0_DOTCLKIN,
176*077365a9SGeert Uytterhoeven 	FN_QSTVA_QVS,	FN_DU0_DOTCLKO_UT0,		FN_QCLK,
177*077365a9SGeert Uytterhoeven 	FN_DU0_DOTCLKO_UT1,		FN_QSTVB_QVE,	FN_AUDIO_CLKOUT_A,
178*077365a9SGeert Uytterhoeven 	FN_REMOCON_C,	FN_SSI_WS2_B,	FN_DU0_EXHSYNC_DU0_HSYNC,
179*077365a9SGeert Uytterhoeven 	FN_QSTH_QHS,	FN_DU0_EXVSYNC_DU0_VSYNC,	FN_QSTB_QHE,
180*077365a9SGeert Uytterhoeven 	FN_DU0_EXODDF_DU0_ODDF_DISP_CDE,
181*077365a9SGeert Uytterhoeven 	FN_QCPV_QDE,	FN_FMCLK_D,	FN_SSI_SCK1_A,	FN_DU0_DISP,
182*077365a9SGeert Uytterhoeven 	FN_QPOLA,	FN_AUDCK,	FN_ARM_TRACECLK,
183*077365a9SGeert Uytterhoeven 	FN_BPFCLK_D,	FN_SSI_WS1_A,	FN_DU0_CDE,	FN_QPOLB,
184*077365a9SGeert Uytterhoeven 	FN_AUDSYNC,	FN_ARM_TRACECTL,		FN_FMIN_D,
185*077365a9SGeert Uytterhoeven 	FN_SD1_CD_B,	FN_SSI_SCK78,	FN_HSPI_RX0_B,	FN_TX1_B,
186*077365a9SGeert Uytterhoeven 	FN_SD1_WP_B,	FN_SSI_WS78,	FN_HSPI_CLK0_B,	FN_RX1_B,
187*077365a9SGeert Uytterhoeven 	FN_CAN_CLK_D,	FN_SSI_SDATA8,	FN_SSI_SCK2_A,	FN_HSPI_CS0_B,
188*077365a9SGeert Uytterhoeven 	FN_TX2_A,	FN_CAN0_TX_B,	FN_SSI_SDATA7,	FN_HSPI_TX0_B,
189*077365a9SGeert Uytterhoeven 	FN_RX2_A,	FN_CAN0_RX_B,
190*077365a9SGeert Uytterhoeven 
191*077365a9SGeert Uytterhoeven 	/* IPSR6 */
192*077365a9SGeert Uytterhoeven 	FN_SSI_SCK6,	FN_HSPI_RX2_A,	FN_FMCLK_B,	FN_CAN1_TX_B,
193*077365a9SGeert Uytterhoeven 	FN_SSI_WS6,	FN_HSPI_CLK2_A,	FN_BPFCLK_B,	FN_CAN1_RX_B,
194*077365a9SGeert Uytterhoeven 	FN_SSI_SDATA6,	FN_HSPI_TX2_A,	FN_FMIN_B,	FN_SSI_SCK5,
195*077365a9SGeert Uytterhoeven 	FN_RX4_C,	FN_SSI_WS5,	FN_TX4_C,	FN_SSI_SDATA5,
196*077365a9SGeert Uytterhoeven 	FN_RX0_D,	FN_SSI_WS34,	FN_ARM_TRACEDATA_8,
197*077365a9SGeert Uytterhoeven 	FN_SSI_SDATA4,	FN_SSI_WS2_A,	FN_ARM_TRACEDATA_9,
198*077365a9SGeert Uytterhoeven 	FN_SSI_SDATA3,	FN_ARM_TRACEDATA_10,
199*077365a9SGeert Uytterhoeven 	FN_SSI_SCK012,	FN_ARM_TRACEDATA_11,
200*077365a9SGeert Uytterhoeven 	FN_TX0_D,	FN_SSI_WS012,	FN_ARM_TRACEDATA_12,
201*077365a9SGeert Uytterhoeven 	FN_SSI_SDATA2,	FN_HSPI_CS2_A,	FN_ARM_TRACEDATA_13,
202*077365a9SGeert Uytterhoeven 	FN_SDA1_A,	FN_SSI_SDATA1,	FN_ARM_TRACEDATA_14,
203*077365a9SGeert Uytterhoeven 	FN_SCL1_A,	FN_SCK2_A,	FN_SSI_SDATA0,
204*077365a9SGeert Uytterhoeven 	FN_ARM_TRACEDATA_15,
205*077365a9SGeert Uytterhoeven 	FN_SD0_CLK,	FN_SUB_TDO,	FN_SD0_CMD,	FN_SUB_TRST,
206*077365a9SGeert Uytterhoeven 	FN_SD0_DAT0,	FN_SUB_TMS,	FN_SD0_DAT1,	FN_SUB_TCK,
207*077365a9SGeert Uytterhoeven 	FN_SD0_DAT2,	FN_SUB_TDI,
208*077365a9SGeert Uytterhoeven 
209*077365a9SGeert Uytterhoeven 	/* IPSR7 */
210*077365a9SGeert Uytterhoeven 	FN_SD0_DAT3,	FN_IRQ1_B,	FN_SD0_CD,	FN_TX5_A,
211*077365a9SGeert Uytterhoeven 	FN_SD0_WP,	FN_RX5_A,	FN_VI1_CLKENB,	FN_HSPI_CLK0_A,
212*077365a9SGeert Uytterhoeven 	FN_HTX1_A,	FN_RTS1_C,	FN_VI1_FIELD,	FN_HSPI_CS0_A,
213*077365a9SGeert Uytterhoeven 	FN_HRX1_A,	FN_SCK1_C,	FN_VI1_HSYNC,	FN_HSPI_RX0_A,
214*077365a9SGeert Uytterhoeven 	FN_HRTS1_A,	FN_FMCLK_A,	FN_RX1_C,	FN_VI1_VSYNC,
215*077365a9SGeert Uytterhoeven 	FN_HSPI_TX0,	FN_HCTS1_A,	FN_BPFCLK_A,	FN_TX1_C,
216*077365a9SGeert Uytterhoeven 	FN_TCLK0,	FN_HSCK1_A,	FN_FMIN_A,	FN_IRQ2_C,
217*077365a9SGeert Uytterhoeven 	FN_CTS1_C,	FN_SPEEDIN,	FN_VI0_CLK,	FN_CAN_CLK_A,
218*077365a9SGeert Uytterhoeven 	FN_VI0_CLKENB,	FN_SD2_DAT2_B,	FN_VI1_DATA0,	FN_DU1_DG6,
219*077365a9SGeert Uytterhoeven 	FN_HSPI_RX1_A,	FN_RX4_B,	FN_VI0_FIELD,	FN_SD2_DAT3_B,
220*077365a9SGeert Uytterhoeven 	FN_VI0_R3_C,	FN_VI1_DATA1,	FN_DU1_DG7,	FN_HSPI_CLK1_A,
221*077365a9SGeert Uytterhoeven 	FN_TX4_B,	FN_VI0_HSYNC,	FN_SD2_CD_B,	FN_VI1_DATA2,
222*077365a9SGeert Uytterhoeven 	FN_DU1_DR2,	FN_HSPI_CS1_A,	FN_RX3_B,
223*077365a9SGeert Uytterhoeven 
224*077365a9SGeert Uytterhoeven 	/* IPSR8 */
225*077365a9SGeert Uytterhoeven 	FN_VI0_VSYNC,	FN_SD2_WP_B,	FN_VI1_DATA3,	FN_DU1_DR3,
226*077365a9SGeert Uytterhoeven 	FN_HSPI_TX1_A,	FN_TX3_B,	FN_VI0_DATA0_VI0_B0,
227*077365a9SGeert Uytterhoeven 	FN_DU1_DG2,	FN_IRQ2_B,	FN_RX3_D,	FN_VI0_DATA1_VI0_B1,
228*077365a9SGeert Uytterhoeven 	FN_DU1_DG3,	FN_IRQ3_B,	FN_TX3_D,	FN_VI0_DATA2_VI0_B2,
229*077365a9SGeert Uytterhoeven 	FN_DU1_DG4,	FN_RX0_C,	FN_VI0_DATA3_VI0_B3,
230*077365a9SGeert Uytterhoeven 	FN_DU1_DG5,	FN_TX1_A,	FN_TX0_C,	FN_VI0_DATA4_VI0_B4,
231*077365a9SGeert Uytterhoeven 	FN_DU1_DB2,	FN_RX1_A,	FN_VI0_DATA5_VI0_B5,
232*077365a9SGeert Uytterhoeven 	FN_DU1_DB3,	FN_SCK1_A,	FN_PWM4,	FN_HSCK1_B,
233*077365a9SGeert Uytterhoeven 	FN_VI0_DATA6_VI0_G0,		FN_DU1_DB4,	FN_CTS1_A,
234*077365a9SGeert Uytterhoeven 	FN_PWM5,	FN_VI0_DATA7_VI0_G1,		FN_DU1_DB5,
235*077365a9SGeert Uytterhoeven 	FN_RTS1_A,	FN_VI0_G2,	FN_SD2_CLK_B,	FN_VI1_DATA4,
236*077365a9SGeert Uytterhoeven 	FN_DU1_DR4,	FN_HTX1_B,	FN_VI0_G3,	FN_SD2_CMD_B,
237*077365a9SGeert Uytterhoeven 	FN_VI1_DATA5,	FN_DU1_DR5,	FN_HRX1_B,
238*077365a9SGeert Uytterhoeven 
239*077365a9SGeert Uytterhoeven 	/* IPSR9 */
240*077365a9SGeert Uytterhoeven 	FN_VI0_G4,	FN_SD2_DAT0_B,	FN_VI1_DATA6,	FN_DU1_DR6,
241*077365a9SGeert Uytterhoeven 	FN_HRTS1_B,	FN_VI0_G5,	FN_SD2_DAT1_B,	FN_VI1_DATA7,
242*077365a9SGeert Uytterhoeven 	FN_DU1_DR7,	FN_HCTS1_B,	FN_VI0_R0_A,	FN_VI1_CLK,
243*077365a9SGeert Uytterhoeven 	FN_ETH_REF_CLK,	FN_DU1_DOTCLKIN,		FN_VI0_R1_A,
244*077365a9SGeert Uytterhoeven 	FN_VI1_DATA8,	FN_DU1_DB6,	FN_ETH_TXD0,	FN_PWM2,
245*077365a9SGeert Uytterhoeven 	FN_TCLK1,	FN_VI0_R2_A,	FN_VI1_DATA9,	FN_DU1_DB7,
246*077365a9SGeert Uytterhoeven 	FN_ETH_TXD1,	FN_PWM3,	FN_VI0_R3_A,	FN_ETH_CRS_DV,
247*077365a9SGeert Uytterhoeven 	FN_IECLK,	FN_SCK2_C,	FN_VI0_R4_A,	FN_ETH_TX_EN,
248*077365a9SGeert Uytterhoeven 	FN_IETX,	FN_TX2_C,	FN_VI0_R5_A,	FN_ETH_RX_ER,
249*077365a9SGeert Uytterhoeven 	FN_FMCLK_C,	FN_IERX,	FN_RX2_C,	FN_VI1_DATA10_A,
250*077365a9SGeert Uytterhoeven 	FN_DU1_DOTCLKOUT,		FN_ETH_RXD0,	FN_BPFCLK_C,
251*077365a9SGeert Uytterhoeven 	FN_TX2_D,	FN_SDA2_C,	FN_VI1_DATA11_A,
252*077365a9SGeert Uytterhoeven 	FN_DU1_EXHSYNC_DU1_HSYNC,	FN_ETH_RXD1,	FN_FMIN_C,
253*077365a9SGeert Uytterhoeven 	FN_RX2_D,	FN_SCL2_C,
254*077365a9SGeert Uytterhoeven 
255*077365a9SGeert Uytterhoeven 	/* IPSR10 */
256*077365a9SGeert Uytterhoeven 	FN_SD2_CLK_A,	FN_DU1_EXVSYNC_DU1_VSYNC,	FN_ATARD1,
257*077365a9SGeert Uytterhoeven 	FN_ETH_MDC,	FN_SDA1_B,	FN_SD2_CMD_A,
258*077365a9SGeert Uytterhoeven 	FN_DU1_EXODDF_DU1_ODDF_DISP_CDE,		FN_ATAWR1,
259*077365a9SGeert Uytterhoeven 	FN_ETH_MDIO,	FN_SCL1_B,	FN_SD2_DAT0_A,	FN_DU1_DISP,
260*077365a9SGeert Uytterhoeven 	FN_ATACS01,	FN_DREQ1_B,	FN_ETH_LINK,	FN_CAN1_RX_A,
261*077365a9SGeert Uytterhoeven 	FN_SD2_DAT1_A,	FN_DU1_CDE,	FN_ATACS11,	FN_DACK1_B,
262*077365a9SGeert Uytterhoeven 	FN_ETH_MAGIC,	FN_CAN1_TX_A,	FN_PWM6,	FN_SD2_DAT2_A,
263*077365a9SGeert Uytterhoeven 	FN_VI1_DATA12,	FN_DREQ2_B,	FN_ATADIR1,	FN_HSPI_CLK2_B,
264*077365a9SGeert Uytterhoeven 	FN_GPSCLK_B,	FN_SD2_DAT3_A,	FN_VI1_DATA13,	FN_DACK2_B,
265*077365a9SGeert Uytterhoeven 	FN_ATAG1,	FN_HSPI_CS2_B,	FN_GPSIN_B,	FN_SD2_CD_A,
266*077365a9SGeert Uytterhoeven 	FN_VI1_DATA14,	FN_EX_WAIT1_B,	FN_DREQ0_B,	FN_HSPI_RX2_B,
267*077365a9SGeert Uytterhoeven 	FN_REMOCON_A,	FN_SD2_WP_A,	FN_VI1_DATA15,	FN_EX_WAIT2_B,
268*077365a9SGeert Uytterhoeven 	FN_DACK0_B,	FN_HSPI_TX2_B,	FN_CAN_CLK_C,
269*077365a9SGeert Uytterhoeven 
270*077365a9SGeert Uytterhoeven 	/* SEL */
271*077365a9SGeert Uytterhoeven 	FN_SEL_SCIF5_A,	FN_SEL_SCIF5_B,
272*077365a9SGeert Uytterhoeven 	FN_SEL_SCIF4_A,	FN_SEL_SCIF4_B,	FN_SEL_SCIF4_C,
273*077365a9SGeert Uytterhoeven 	FN_SEL_SCIF3_A,	FN_SEL_SCIF3_B,	FN_SEL_SCIF3_C,	FN_SEL_SCIF3_D,
274*077365a9SGeert Uytterhoeven 	FN_SEL_SCIF2_A,	FN_SEL_SCIF2_B,	FN_SEL_SCIF2_C,	FN_SEL_SCIF2_D,	FN_SEL_SCIF2_E,
275*077365a9SGeert Uytterhoeven 	FN_SEL_SCIF1_A,	FN_SEL_SCIF1_B,	FN_SEL_SCIF1_C,	FN_SEL_SCIF1_D,
276*077365a9SGeert Uytterhoeven 	FN_SEL_SCIF0_A,	FN_SEL_SCIF0_B,	FN_SEL_SCIF0_C,	FN_SEL_SCIF0_D,
277*077365a9SGeert Uytterhoeven 	FN_SEL_SSI2_A,	FN_SEL_SSI2_B,
278*077365a9SGeert Uytterhoeven 	FN_SEL_SSI1_A,	FN_SEL_SSI1_B,
279*077365a9SGeert Uytterhoeven 	FN_SEL_VI1_A,	FN_SEL_VI1_B,
280*077365a9SGeert Uytterhoeven 	FN_SEL_VI0_A,	FN_SEL_VI0_B,	FN_SEL_VI0_C,	FN_SEL_VI0_D,
281*077365a9SGeert Uytterhoeven 	FN_SEL_SD2_A,	FN_SEL_SD2_B,
282*077365a9SGeert Uytterhoeven 	FN_SEL_SD1_A,	FN_SEL_SD1_B,
283*077365a9SGeert Uytterhoeven 	FN_SEL_IRQ3_A,	FN_SEL_IRQ3_B,
284*077365a9SGeert Uytterhoeven 	FN_SEL_IRQ2_A,	FN_SEL_IRQ2_B,	FN_SEL_IRQ2_C,
285*077365a9SGeert Uytterhoeven 	FN_SEL_IRQ1_A,	FN_SEL_IRQ1_B,
286*077365a9SGeert Uytterhoeven 	FN_SEL_DREQ2_A,	FN_SEL_DREQ2_B,
287*077365a9SGeert Uytterhoeven 	FN_SEL_DREQ1_A,	FN_SEL_DREQ1_B,
288*077365a9SGeert Uytterhoeven 	FN_SEL_DREQ0_A,	FN_SEL_DREQ0_B,
289*077365a9SGeert Uytterhoeven 	FN_SEL_WAIT2_A,	FN_SEL_WAIT2_B,
290*077365a9SGeert Uytterhoeven 	FN_SEL_WAIT1_A,	FN_SEL_WAIT1_B,
291*077365a9SGeert Uytterhoeven 	FN_SEL_CAN1_A,	FN_SEL_CAN1_B,
292*077365a9SGeert Uytterhoeven 	FN_SEL_CAN0_A,	FN_SEL_CAN0_B,
293*077365a9SGeert Uytterhoeven 	FN_SEL_CANCLK_A,	FN_SEL_CANCLK_B,
294*077365a9SGeert Uytterhoeven 	FN_SEL_CANCLK_C,	FN_SEL_CANCLK_D,
295*077365a9SGeert Uytterhoeven 	FN_SEL_HSCIF1_A,	FN_SEL_HSCIF1_B,
296*077365a9SGeert Uytterhoeven 	FN_SEL_HSCIF0_A,	FN_SEL_HSCIF0_B,
297*077365a9SGeert Uytterhoeven 	FN_SEL_REMOCON_A,	FN_SEL_REMOCON_B,	FN_SEL_REMOCON_C,
298*077365a9SGeert Uytterhoeven 	FN_SEL_FM_A,	FN_SEL_FM_B,	FN_SEL_FM_C,	FN_SEL_FM_D,
299*077365a9SGeert Uytterhoeven 	FN_SEL_GPS_A,	FN_SEL_GPS_B,	FN_SEL_GPS_C,
300*077365a9SGeert Uytterhoeven 	FN_SEL_TSIF0_A,	FN_SEL_TSIF0_B,
301*077365a9SGeert Uytterhoeven 	FN_SEL_HSPI2_A,	FN_SEL_HSPI2_B,
302*077365a9SGeert Uytterhoeven 	FN_SEL_HSPI1_A,	FN_SEL_HSPI1_B,
303*077365a9SGeert Uytterhoeven 	FN_SEL_HSPI0_A,	FN_SEL_HSPI0_B,
304*077365a9SGeert Uytterhoeven 	FN_SEL_I2C3_A,	FN_SEL_I2C3_B,	FN_SEL_I2C3_C,
305*077365a9SGeert Uytterhoeven 	FN_SEL_I2C2_A,	FN_SEL_I2C2_B,	FN_SEL_I2C2_C,
306*077365a9SGeert Uytterhoeven 	FN_SEL_I2C1_A,	FN_SEL_I2C1_B,
307*077365a9SGeert Uytterhoeven 	PINMUX_FUNCTION_END,
308*077365a9SGeert Uytterhoeven 
309*077365a9SGeert Uytterhoeven 	PINMUX_MARK_BEGIN,
310*077365a9SGeert Uytterhoeven 
311*077365a9SGeert Uytterhoeven 	/* GPSR0 */
312*077365a9SGeert Uytterhoeven 	PENC0_MARK,	PENC1_MARK,	A1_MARK,	A2_MARK,	A3_MARK,
313*077365a9SGeert Uytterhoeven 
314*077365a9SGeert Uytterhoeven 	/* GPSR1 */
315*077365a9SGeert Uytterhoeven 	WE0_MARK,
316*077365a9SGeert Uytterhoeven 
317*077365a9SGeert Uytterhoeven 	/* GPSR2 */
318*077365a9SGeert Uytterhoeven 	AUDIO_CLKA_MARK,
319*077365a9SGeert Uytterhoeven 	AUDIO_CLKB_MARK,
320*077365a9SGeert Uytterhoeven 
321*077365a9SGeert Uytterhoeven 	/* GPSR3 */
322*077365a9SGeert Uytterhoeven 	SSI_SCK34_MARK,
323*077365a9SGeert Uytterhoeven 
324*077365a9SGeert Uytterhoeven 	/* GPSR4 */
325*077365a9SGeert Uytterhoeven 	AVS1_MARK,
326*077365a9SGeert Uytterhoeven 	AVS2_MARK,
327*077365a9SGeert Uytterhoeven 
328*077365a9SGeert Uytterhoeven 	VI0_R0_C_MARK,		/* see sel_vi0 */
329*077365a9SGeert Uytterhoeven 	VI0_R1_C_MARK,		/* see sel_vi0 */
330*077365a9SGeert Uytterhoeven 	VI0_R2_C_MARK,		/* see sel_vi0 */
331*077365a9SGeert Uytterhoeven 	/* VI0_R3_C_MARK, */
332*077365a9SGeert Uytterhoeven 	VI0_R4_C_MARK,		/* see sel_vi0 */
333*077365a9SGeert Uytterhoeven 	VI0_R5_C_MARK,		/* see sel_vi0 */
334*077365a9SGeert Uytterhoeven 
335*077365a9SGeert Uytterhoeven 	VI0_R0_D_MARK,		/* see sel_vi0 */
336*077365a9SGeert Uytterhoeven 	VI0_R1_D_MARK,		/* see sel_vi0 */
337*077365a9SGeert Uytterhoeven 	VI0_R2_D_MARK,		/* see sel_vi0 */
338*077365a9SGeert Uytterhoeven 	VI0_R3_D_MARK,		/* see sel_vi0 */
339*077365a9SGeert Uytterhoeven 	VI0_R4_D_MARK,		/* see sel_vi0 */
340*077365a9SGeert Uytterhoeven 	VI0_R5_D_MARK,		/* see sel_vi0 */
341*077365a9SGeert Uytterhoeven 
342*077365a9SGeert Uytterhoeven 	/* IPSR0 */
343*077365a9SGeert Uytterhoeven 	PRESETOUT_MARK,	PWM1_MARK,	AUDATA0_MARK,
344*077365a9SGeert Uytterhoeven 	ARM_TRACEDATA_0_MARK,		GPSCLK_C_MARK,	USB_OVC0_MARK,
345*077365a9SGeert Uytterhoeven 	TX2_E_MARK,	SDA2_B_MARK,	AUDATA1_MARK,	ARM_TRACEDATA_1_MARK,
346*077365a9SGeert Uytterhoeven 	GPSIN_C_MARK,	USB_OVC1_MARK,	RX2_E_MARK,	SCL2_B_MARK,
347*077365a9SGeert Uytterhoeven 	SD1_DAT2_A_MARK,		MMC_D2_MARK,	BS_MARK,
348*077365a9SGeert Uytterhoeven 	ATADIR0_A_MARK,	SDSELF_A_MARK,	PWM4_B_MARK,	SD1_DAT3_A_MARK,
349*077365a9SGeert Uytterhoeven 	MMC_D3_MARK,	A0_MARK,	ATAG0_A_MARK,	REMOCON_B_MARK,
350*077365a9SGeert Uytterhoeven 	A4_MARK,	A5_MARK,	A6_MARK,	A7_MARK,
351*077365a9SGeert Uytterhoeven 	A8_MARK,	A9_MARK,	A10_MARK,	A11_MARK,
352*077365a9SGeert Uytterhoeven 	A12_MARK,	A13_MARK,	A14_MARK,	A15_MARK,
353*077365a9SGeert Uytterhoeven 	A16_MARK,	A17_MARK,	A18_MARK,	A19_MARK,
354*077365a9SGeert Uytterhoeven 
355*077365a9SGeert Uytterhoeven 	/* IPSR1 */
356*077365a9SGeert Uytterhoeven 	A20_MARK,	HSPI_CS1_B_MARK,		A21_MARK,
357*077365a9SGeert Uytterhoeven 	HSPI_CLK1_B_MARK,		A22_MARK,	HRTS0_B_MARK,
358*077365a9SGeert Uytterhoeven 	RX2_B_MARK,	DREQ2_A_MARK,	A23_MARK,	HTX0_B_MARK,
359*077365a9SGeert Uytterhoeven 	TX2_B_MARK,	DACK2_A_MARK,	TS_SDEN0_A_MARK,
360*077365a9SGeert Uytterhoeven 	SD1_CD_A_MARK,	MMC_D6_MARK,	A24_MARK,	DREQ1_A_MARK,
361*077365a9SGeert Uytterhoeven 	HRX0_B_MARK,	TS_SPSYNC0_A_MARK,		SD1_WP_A_MARK,
362*077365a9SGeert Uytterhoeven 	MMC_D7_MARK,	A25_MARK,	DACK1_A_MARK,	HCTS0_B_MARK,
363*077365a9SGeert Uytterhoeven 	RX3_C_MARK,	TS_SDAT0_A_MARK,		CLKOUT_MARK,
364*077365a9SGeert Uytterhoeven 	HSPI_TX1_B_MARK,		PWM0_B_MARK,	CS0_MARK,
365*077365a9SGeert Uytterhoeven 	HSPI_RX1_B_MARK,		SSI_SCK1_B_MARK,
366*077365a9SGeert Uytterhoeven 	ATAG0_B_MARK,	CS1_A26_MARK,	SDA2_A_MARK,	SCK2_B_MARK,
367*077365a9SGeert Uytterhoeven 	MMC_D5_MARK,	ATADIR0_B_MARK,	RD_WR_MARK,	WE1_MARK,
368*077365a9SGeert Uytterhoeven 	ATAWR0_B_MARK,	SSI_WS1_B_MARK,	EX_CS0_MARK,	SCL2_A_MARK,
369*077365a9SGeert Uytterhoeven 	TX3_C_MARK,	TS_SCK0_A_MARK,	EX_CS1_MARK,	MMC_D4_MARK,
370*077365a9SGeert Uytterhoeven 
371*077365a9SGeert Uytterhoeven 	/* IPSR2 */
372*077365a9SGeert Uytterhoeven 	SD1_CLK_A_MARK,	MMC_CLK_MARK,	ATACS00_MARK,	EX_CS2_MARK,
373*077365a9SGeert Uytterhoeven 	SD1_CMD_A_MARK,	MMC_CMD_MARK,	ATACS10_MARK,	EX_CS3_MARK,
374*077365a9SGeert Uytterhoeven 	SD1_DAT0_A_MARK,		MMC_D0_MARK,	ATARD0_MARK,
375*077365a9SGeert Uytterhoeven 	EX_CS4_MARK,	EX_WAIT1_A_MARK,		SD1_DAT1_A_MARK,
376*077365a9SGeert Uytterhoeven 	MMC_D1_MARK,	ATAWR0_A_MARK,	EX_CS5_MARK,	EX_WAIT2_A_MARK,
377*077365a9SGeert Uytterhoeven 	DREQ0_A_MARK,	RX3_A_MARK,	DACK0_MARK,	TX3_A_MARK,
378*077365a9SGeert Uytterhoeven 	DRACK0_MARK,	EX_WAIT0_MARK,	PWM0_C_MARK,	D0_MARK,
379*077365a9SGeert Uytterhoeven 	D1_MARK,	D2_MARK,	D3_MARK,	D4_MARK,
380*077365a9SGeert Uytterhoeven 	D5_MARK,	D6_MARK,	D7_MARK,	D8_MARK,
381*077365a9SGeert Uytterhoeven 	D9_MARK,	D10_MARK,	D11_MARK,	RD_WR_B_MARK,
382*077365a9SGeert Uytterhoeven 	IRQ0_MARK,	MLB_CLK_MARK,	IRQ1_A_MARK,
383*077365a9SGeert Uytterhoeven 
384*077365a9SGeert Uytterhoeven 	/* IPSR3 */
385*077365a9SGeert Uytterhoeven 	MLB_SIG_MARK,	RX5_B_MARK,	SDA3_A_MARK,	IRQ2_A_MARK,
386*077365a9SGeert Uytterhoeven 	MLB_DAT_MARK,	TX5_B_MARK,	SCL3_A_MARK,	IRQ3_A_MARK,
387*077365a9SGeert Uytterhoeven 	SDSELF_B_MARK,	SD1_CMD_B_MARK,	SCIF_CLK_MARK,	AUDIO_CLKOUT_B_MARK,
388*077365a9SGeert Uytterhoeven 	CAN_CLK_B_MARK,	SDA3_B_MARK,	SD1_CLK_B_MARK,	HTX0_A_MARK,
389*077365a9SGeert Uytterhoeven 	TX0_A_MARK,	SD1_DAT0_B_MARK,		HRX0_A_MARK,
390*077365a9SGeert Uytterhoeven 	RX0_A_MARK,	SD1_DAT1_B_MARK,		HSCK0_MARK,
391*077365a9SGeert Uytterhoeven 	SCK0_MARK,	SCL3_B_MARK,	SD1_DAT2_B_MARK,
392*077365a9SGeert Uytterhoeven 	HCTS0_A_MARK,	CTS0_MARK,	SD1_DAT3_B_MARK,
393*077365a9SGeert Uytterhoeven 	HRTS0_A_MARK,	RTS0_MARK,	SSI_SCK4_MARK,
394*077365a9SGeert Uytterhoeven 	DU0_DR0_MARK,	LCDOUT0_MARK,	AUDATA2_MARK,	ARM_TRACEDATA_2_MARK,
395*077365a9SGeert Uytterhoeven 	SDA3_C_MARK,	ADICHS1_MARK,	TS_SDEN0_B_MARK,
396*077365a9SGeert Uytterhoeven 	SSI_WS4_MARK,	DU0_DR1_MARK,	LCDOUT1_MARK,	AUDATA3_MARK,
397*077365a9SGeert Uytterhoeven 	ARM_TRACEDATA_3_MARK,		SCL3_C_MARK,	ADICHS2_MARK,
398*077365a9SGeert Uytterhoeven 	TS_SPSYNC0_B_MARK,		DU0_DR2_MARK,	LCDOUT2_MARK,
399*077365a9SGeert Uytterhoeven 	DU0_DR3_MARK,	LCDOUT3_MARK,	DU0_DR4_MARK,	LCDOUT4_MARK,
400*077365a9SGeert Uytterhoeven 	DU0_DR5_MARK,	LCDOUT5_MARK,	DU0_DR6_MARK,	LCDOUT6_MARK,
401*077365a9SGeert Uytterhoeven 
402*077365a9SGeert Uytterhoeven 	/* IPSR4 */
403*077365a9SGeert Uytterhoeven 	DU0_DR7_MARK,	LCDOUT7_MARK,	DU0_DG0_MARK,	LCDOUT8_MARK,
404*077365a9SGeert Uytterhoeven 	AUDATA4_MARK,	ARM_TRACEDATA_4_MARK,
405*077365a9SGeert Uytterhoeven 	TX1_D_MARK,	CAN0_TX_A_MARK,	ADICHS0_MARK,	DU0_DG1_MARK,
406*077365a9SGeert Uytterhoeven 	LCDOUT9_MARK,	AUDATA5_MARK,	ARM_TRACEDATA_5_MARK,
407*077365a9SGeert Uytterhoeven 	RX1_D_MARK,	CAN0_RX_A_MARK,	ADIDATA_MARK,	DU0_DG2_MARK,
408*077365a9SGeert Uytterhoeven 	LCDOUT10_MARK,	DU0_DG3_MARK,	LCDOUT11_MARK,	DU0_DG4_MARK,
409*077365a9SGeert Uytterhoeven 	LCDOUT12_MARK,	RX0_B_MARK,	DU0_DG5_MARK,	LCDOUT13_MARK,
410*077365a9SGeert Uytterhoeven 	TX0_B_MARK,	DU0_DG6_MARK,	LCDOUT14_MARK,	RX4_A_MARK,
411*077365a9SGeert Uytterhoeven 	DU0_DG7_MARK,	LCDOUT15_MARK,	TX4_A_MARK,	SSI_SCK2_B_MARK,
412*077365a9SGeert Uytterhoeven 	VI0_R0_B_MARK,	DU0_DB0_MARK,	LCDOUT16_MARK,	AUDATA6_MARK,
413*077365a9SGeert Uytterhoeven 	ARM_TRACEDATA_6_MARK,		GPSCLK_A_MARK,	PWM0_A_MARK,
414*077365a9SGeert Uytterhoeven 	ADICLK_MARK,	TS_SDAT0_B_MARK,		AUDIO_CLKC_MARK,
415*077365a9SGeert Uytterhoeven 	VI0_R1_B_MARK,	DU0_DB1_MARK,	LCDOUT17_MARK,	AUDATA7_MARK,
416*077365a9SGeert Uytterhoeven 	ARM_TRACEDATA_7_MARK,		GPSIN_A_MARK,	ADICS_SAMP_MARK,
417*077365a9SGeert Uytterhoeven 	TS_SCK0_B_MARK,	VI0_R2_B_MARK,	DU0_DB2_MARK,	LCDOUT18_MARK,
418*077365a9SGeert Uytterhoeven 	VI0_R3_B_MARK,	DU0_DB3_MARK,	LCDOUT19_MARK,	VI0_R4_B_MARK,
419*077365a9SGeert Uytterhoeven 	DU0_DB4_MARK,	LCDOUT20_MARK,
420*077365a9SGeert Uytterhoeven 
421*077365a9SGeert Uytterhoeven 	/* IPSR5 */
422*077365a9SGeert Uytterhoeven 	VI0_R5_B_MARK,	DU0_DB5_MARK,	LCDOUT21_MARK,	VI1_DATA10_B_MARK,
423*077365a9SGeert Uytterhoeven 	DU0_DB6_MARK,	LCDOUT22_MARK,	VI1_DATA11_B_MARK,
424*077365a9SGeert Uytterhoeven 	DU0_DB7_MARK,	LCDOUT23_MARK,	DU0_DOTCLKIN_MARK,
425*077365a9SGeert Uytterhoeven 	QSTVA_QVS_MARK,	DU0_DOTCLKO_UT0_MARK,
426*077365a9SGeert Uytterhoeven 	QCLK_MARK,	DU0_DOTCLKO_UT1_MARK,		QSTVB_QVE_MARK,
427*077365a9SGeert Uytterhoeven 	AUDIO_CLKOUT_A_MARK,		REMOCON_C_MARK,	SSI_WS2_B_MARK,
428*077365a9SGeert Uytterhoeven 	DU0_EXHSYNC_DU0_HSYNC_MARK,	QSTH_QHS_MARK,
429*077365a9SGeert Uytterhoeven 	DU0_EXVSYNC_DU0_VSYNC_MARK,	QSTB_QHE_MARK,
430*077365a9SGeert Uytterhoeven 	DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK,
431*077365a9SGeert Uytterhoeven 	QCPV_QDE_MARK,	FMCLK_D_MARK,	SSI_SCK1_A_MARK,
432*077365a9SGeert Uytterhoeven 	DU0_DISP_MARK,	QPOLA_MARK,	AUDCK_MARK,	ARM_TRACECLK_MARK,
433*077365a9SGeert Uytterhoeven 	BPFCLK_D_MARK,	SSI_WS1_A_MARK,	DU0_CDE_MARK,	QPOLB_MARK,
434*077365a9SGeert Uytterhoeven 	AUDSYNC_MARK,	ARM_TRACECTL_MARK,		FMIN_D_MARK,
435*077365a9SGeert Uytterhoeven 	SD1_CD_B_MARK,	SSI_SCK78_MARK,	HSPI_RX0_B_MARK,
436*077365a9SGeert Uytterhoeven 	TX1_B_MARK,	SD1_WP_B_MARK,	SSI_WS78_MARK,	HSPI_CLK0_B_MARK,
437*077365a9SGeert Uytterhoeven 	RX1_B_MARK,	CAN_CLK_D_MARK,	SSI_SDATA8_MARK,
438*077365a9SGeert Uytterhoeven 	SSI_SCK2_A_MARK,		HSPI_CS0_B_MARK,
439*077365a9SGeert Uytterhoeven 	TX2_A_MARK,	CAN0_TX_B_MARK,	SSI_SDATA7_MARK,
440*077365a9SGeert Uytterhoeven 	HSPI_TX0_B_MARK,		RX2_A_MARK,	CAN0_RX_B_MARK,
441*077365a9SGeert Uytterhoeven 
442*077365a9SGeert Uytterhoeven 	/* IPSR6 */
443*077365a9SGeert Uytterhoeven 	SSI_SCK6_MARK,	HSPI_RX2_A_MARK,		FMCLK_B_MARK,
444*077365a9SGeert Uytterhoeven 	CAN1_TX_B_MARK,	SSI_WS6_MARK,	HSPI_CLK2_A_MARK,
445*077365a9SGeert Uytterhoeven 	BPFCLK_B_MARK,	CAN1_RX_B_MARK,	SSI_SDATA6_MARK,
446*077365a9SGeert Uytterhoeven 	HSPI_TX2_A_MARK,		FMIN_B_MARK,	SSI_SCK5_MARK,
447*077365a9SGeert Uytterhoeven 	RX4_C_MARK,	SSI_WS5_MARK,	TX4_C_MARK,	SSI_SDATA5_MARK,
448*077365a9SGeert Uytterhoeven 	RX0_D_MARK,	SSI_WS34_MARK,	ARM_TRACEDATA_8_MARK,
449*077365a9SGeert Uytterhoeven 	SSI_SDATA4_MARK,		SSI_WS2_A_MARK,	ARM_TRACEDATA_9_MARK,
450*077365a9SGeert Uytterhoeven 	SSI_SDATA3_MARK,		ARM_TRACEDATA_10_MARK,
451*077365a9SGeert Uytterhoeven 	SSI_SCK012_MARK,		ARM_TRACEDATA_11_MARK,
452*077365a9SGeert Uytterhoeven 	TX0_D_MARK,	SSI_WS012_MARK,	ARM_TRACEDATA_12_MARK,
453*077365a9SGeert Uytterhoeven 	SSI_SDATA2_MARK,		HSPI_CS2_A_MARK,
454*077365a9SGeert Uytterhoeven 	ARM_TRACEDATA_13_MARK,		SDA1_A_MARK,	SSI_SDATA1_MARK,
455*077365a9SGeert Uytterhoeven 	ARM_TRACEDATA_14_MARK,		SCL1_A_MARK,	SCK2_A_MARK,
456*077365a9SGeert Uytterhoeven 	SSI_SDATA0_MARK,		ARM_TRACEDATA_15_MARK,
457*077365a9SGeert Uytterhoeven 	SD0_CLK_MARK,	SUB_TDO_MARK,	SD0_CMD_MARK,	SUB_TRST_MARK,
458*077365a9SGeert Uytterhoeven 	SD0_DAT0_MARK,	SUB_TMS_MARK,	SD0_DAT1_MARK,	SUB_TCK_MARK,
459*077365a9SGeert Uytterhoeven 	SD0_DAT2_MARK,	SUB_TDI_MARK,
460*077365a9SGeert Uytterhoeven 
461*077365a9SGeert Uytterhoeven 	/* IPSR7 */
462*077365a9SGeert Uytterhoeven 	SD0_DAT3_MARK,	IRQ1_B_MARK,	SD0_CD_MARK,	TX5_A_MARK,
463*077365a9SGeert Uytterhoeven 	SD0_WP_MARK,	RX5_A_MARK,	VI1_CLKENB_MARK,
464*077365a9SGeert Uytterhoeven 	HSPI_CLK0_A_MARK,	HTX1_A_MARK,	RTS1_C_MARK,	VI1_FIELD_MARK,
465*077365a9SGeert Uytterhoeven 	HSPI_CS0_A_MARK,	HRX1_A_MARK,	SCK1_C_MARK,	VI1_HSYNC_MARK,
466*077365a9SGeert Uytterhoeven 	HSPI_RX0_A_MARK,	HRTS1_A_MARK,	FMCLK_A_MARK,	RX1_C_MARK,
467*077365a9SGeert Uytterhoeven 	VI1_VSYNC_MARK,	HSPI_TX0_MARK,	HCTS1_A_MARK,	BPFCLK_A_MARK,
468*077365a9SGeert Uytterhoeven 	TX1_C_MARK,	TCLK0_MARK,	HSCK1_A_MARK,	FMIN_A_MARK,
469*077365a9SGeert Uytterhoeven 	IRQ2_C_MARK,	CTS1_C_MARK,	SPEEDIN_MARK,	VI0_CLK_MARK,
470*077365a9SGeert Uytterhoeven 	CAN_CLK_A_MARK,	VI0_CLKENB_MARK,		SD2_DAT2_B_MARK,
471*077365a9SGeert Uytterhoeven 	VI1_DATA0_MARK,	DU1_DG6_MARK,	HSPI_RX1_A_MARK,
472*077365a9SGeert Uytterhoeven 	RX4_B_MARK,	VI0_FIELD_MARK,	SD2_DAT3_B_MARK,
473*077365a9SGeert Uytterhoeven 	VI0_R3_C_MARK,	VI1_DATA1_MARK,	DU1_DG7_MARK,	HSPI_CLK1_A_MARK,
474*077365a9SGeert Uytterhoeven 	TX4_B_MARK,	VI0_HSYNC_MARK,	SD2_CD_B_MARK,	VI1_DATA2_MARK,
475*077365a9SGeert Uytterhoeven 	DU1_DR2_MARK,	HSPI_CS1_A_MARK,		RX3_B_MARK,
476*077365a9SGeert Uytterhoeven 
477*077365a9SGeert Uytterhoeven 	/* IPSR8 */
478*077365a9SGeert Uytterhoeven 	VI0_VSYNC_MARK,	SD2_WP_B_MARK,	VI1_DATA3_MARK,	DU1_DR3_MARK,
479*077365a9SGeert Uytterhoeven 	HSPI_TX1_A_MARK,		TX3_B_MARK,	VI0_DATA0_VI0_B0_MARK,
480*077365a9SGeert Uytterhoeven 	DU1_DG2_MARK,	IRQ2_B_MARK,	RX3_D_MARK,	VI0_DATA1_VI0_B1_MARK,
481*077365a9SGeert Uytterhoeven 	DU1_DG3_MARK,	IRQ3_B_MARK,	TX3_D_MARK,	VI0_DATA2_VI0_B2_MARK,
482*077365a9SGeert Uytterhoeven 	DU1_DG4_MARK,	RX0_C_MARK,	VI0_DATA3_VI0_B3_MARK,
483*077365a9SGeert Uytterhoeven 	DU1_DG5_MARK,	TX1_A_MARK,	TX0_C_MARK,	VI0_DATA4_VI0_B4_MARK,
484*077365a9SGeert Uytterhoeven 	DU1_DB2_MARK,	RX1_A_MARK,	VI0_DATA5_VI0_B5_MARK,
485*077365a9SGeert Uytterhoeven 	DU1_DB3_MARK,	SCK1_A_MARK,	PWM4_MARK,	HSCK1_B_MARK,
486*077365a9SGeert Uytterhoeven 	VI0_DATA6_VI0_G0_MARK,		DU1_DB4_MARK,	CTS1_A_MARK,
487*077365a9SGeert Uytterhoeven 	PWM5_MARK,	VI0_DATA7_VI0_G1_MARK,		DU1_DB5_MARK,
488*077365a9SGeert Uytterhoeven 	RTS1_A_MARK,	VI0_G2_MARK,	SD2_CLK_B_MARK,	VI1_DATA4_MARK,
489*077365a9SGeert Uytterhoeven 	DU1_DR4_MARK,	HTX1_B_MARK,	VI0_G3_MARK,	SD2_CMD_B_MARK,
490*077365a9SGeert Uytterhoeven 	VI1_DATA5_MARK,	DU1_DR5_MARK,	HRX1_B_MARK,
491*077365a9SGeert Uytterhoeven 
492*077365a9SGeert Uytterhoeven 	/* IPSR9 */
493*077365a9SGeert Uytterhoeven 	VI0_G4_MARK,	SD2_DAT0_B_MARK,		VI1_DATA6_MARK,
494*077365a9SGeert Uytterhoeven 	DU1_DR6_MARK,	HRTS1_B_MARK,	VI0_G5_MARK,	SD2_DAT1_B_MARK,
495*077365a9SGeert Uytterhoeven 	VI1_DATA7_MARK,	DU1_DR7_MARK,	HCTS1_B_MARK,	VI0_R0_A_MARK,
496*077365a9SGeert Uytterhoeven 	VI1_CLK_MARK,	ETH_REF_CLK_MARK,		DU1_DOTCLKIN_MARK,
497*077365a9SGeert Uytterhoeven 	VI0_R1_A_MARK,	VI1_DATA8_MARK,	DU1_DB6_MARK,	ETH_TXD0_MARK,
498*077365a9SGeert Uytterhoeven 	PWM2_MARK,	TCLK1_MARK,	VI0_R2_A_MARK,	VI1_DATA9_MARK,
499*077365a9SGeert Uytterhoeven 	DU1_DB7_MARK,	ETH_TXD1_MARK,	PWM3_MARK,	VI0_R3_A_MARK,
500*077365a9SGeert Uytterhoeven 	ETH_CRS_DV_MARK,		IECLK_MARK,	SCK2_C_MARK,
501*077365a9SGeert Uytterhoeven 	VI0_R4_A_MARK,			ETH_TX_EN_MARK,	IETX_MARK,
502*077365a9SGeert Uytterhoeven 	TX2_C_MARK,	VI0_R5_A_MARK,	ETH_RX_ER_MARK,	FMCLK_C_MARK,
503*077365a9SGeert Uytterhoeven 	IERX_MARK,	RX2_C_MARK,	VI1_DATA10_A_MARK,
504*077365a9SGeert Uytterhoeven 	DU1_DOTCLKOUT_MARK,		ETH_RXD0_MARK,
505*077365a9SGeert Uytterhoeven 	BPFCLK_C_MARK,	TX2_D_MARK,	SDA2_C_MARK,	VI1_DATA11_A_MARK,
506*077365a9SGeert Uytterhoeven 	DU1_EXHSYNC_DU1_HSYNC_MARK,	ETH_RXD1_MARK,	FMIN_C_MARK,
507*077365a9SGeert Uytterhoeven 	RX2_D_MARK,	SCL2_C_MARK,
508*077365a9SGeert Uytterhoeven 
509*077365a9SGeert Uytterhoeven 	/* IPSR10 */
510*077365a9SGeert Uytterhoeven 	SD2_CLK_A_MARK,	DU1_EXVSYNC_DU1_VSYNC_MARK,	ATARD1_MARK,
511*077365a9SGeert Uytterhoeven 	ETH_MDC_MARK,	SDA1_B_MARK,	SD2_CMD_A_MARK,
512*077365a9SGeert Uytterhoeven 	DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK,		ATAWR1_MARK,
513*077365a9SGeert Uytterhoeven 	ETH_MDIO_MARK,	SCL1_B_MARK,	SD2_DAT0_A_MARK,
514*077365a9SGeert Uytterhoeven 	DU1_DISP_MARK,	ATACS01_MARK,	DREQ1_B_MARK,	ETH_LINK_MARK,
515*077365a9SGeert Uytterhoeven 	CAN1_RX_A_MARK,	SD2_DAT1_A_MARK,		DU1_CDE_MARK,
516*077365a9SGeert Uytterhoeven 	ATACS11_MARK,	DACK1_B_MARK,	ETH_MAGIC_MARK,	CAN1_TX_A_MARK,
517*077365a9SGeert Uytterhoeven 	PWM6_MARK,	SD2_DAT2_A_MARK,		VI1_DATA12_MARK,
518*077365a9SGeert Uytterhoeven 	DREQ2_B_MARK,	ATADIR1_MARK,	HSPI_CLK2_B_MARK,
519*077365a9SGeert Uytterhoeven 	GPSCLK_B_MARK,	SD2_DAT3_A_MARK,		VI1_DATA13_MARK,
520*077365a9SGeert Uytterhoeven 	DACK2_B_MARK,	ATAG1_MARK,	HSPI_CS2_B_MARK,
521*077365a9SGeert Uytterhoeven 	GPSIN_B_MARK,	SD2_CD_A_MARK,	VI1_DATA14_MARK,
522*077365a9SGeert Uytterhoeven 	EX_WAIT1_B_MARK,		DREQ0_B_MARK,	HSPI_RX2_B_MARK,
523*077365a9SGeert Uytterhoeven 	REMOCON_A_MARK,	SD2_WP_A_MARK,	VI1_DATA15_MARK,
524*077365a9SGeert Uytterhoeven 	EX_WAIT2_B_MARK,		DACK0_B_MARK,
525*077365a9SGeert Uytterhoeven 	HSPI_TX2_B_MARK,		CAN_CLK_C_MARK,
526*077365a9SGeert Uytterhoeven 
527*077365a9SGeert Uytterhoeven 	PINMUX_MARK_END,
528*077365a9SGeert Uytterhoeven };
529*077365a9SGeert Uytterhoeven 
530*077365a9SGeert Uytterhoeven static const u16 pinmux_data[] = {
531*077365a9SGeert Uytterhoeven 	PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
532*077365a9SGeert Uytterhoeven 
533*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(PENC0),
534*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(PENC1),
535*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(A1),
536*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(A2),
537*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(A3),
538*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(WE0),
539*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(AUDIO_CLKA),
540*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(AUDIO_CLKB),
541*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(SSI_SCK34),
542*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(AVS1),
543*077365a9SGeert Uytterhoeven 	PINMUX_SINGLE(AVS2),
544*077365a9SGeert Uytterhoeven 
545*077365a9SGeert Uytterhoeven 	/* IPSR0 */
546*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_1_0,	PRESETOUT),
547*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_1_0,	PWM1),
548*077365a9SGeert Uytterhoeven 
549*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_4_2,	AUDATA0),
550*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_4_2,	ARM_TRACEDATA_0),
551*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP0_4_2,	GPSCLK_C,	SEL_GPS_C),
552*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_4_2,	USB_OVC0),
553*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_4_2,	TX2_E),
554*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP0_4_2,	SDA2_B,		SEL_I2C2_B),
555*077365a9SGeert Uytterhoeven 
556*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_7_5,	AUDATA1),
557*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_7_5,	ARM_TRACEDATA_1),
558*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP0_7_5,	GPSIN_C,	SEL_GPS_C),
559*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_7_5,	USB_OVC1),
560*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP0_7_5,	RX2_E,		SEL_SCIF2_E),
561*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP0_7_5,	SCL2_B,		SEL_I2C2_B),
562*077365a9SGeert Uytterhoeven 
563*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP0_11_8,	SD1_DAT2_A,	SEL_SD1_A),
564*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_11_8,	MMC_D2),
565*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_11_8,	BS),
566*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_11_8,	ATADIR0_A),
567*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_11_8,	SDSELF_A),
568*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_11_8,	PWM4_B),
569*077365a9SGeert Uytterhoeven 
570*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP0_14_12,	SD1_DAT3_A,	SEL_SD1_A),
571*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_14_12,	MMC_D3),
572*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_14_12,	A0),
573*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_14_12,	ATAG0_A),
574*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP0_14_12,	REMOCON_B,	SEL_REMOCON_B),
575*077365a9SGeert Uytterhoeven 
576*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_15,	A4),
577*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_16,	A5),
578*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_17,	A6),
579*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_18,	A7),
580*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_19,	A8),
581*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_20,	A9),
582*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_21,	A10),
583*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_22,	A11),
584*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_23,	A12),
585*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_24,	A13),
586*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_25,	A14),
587*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_26,	A15),
588*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_27,	A16),
589*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_28,	A17),
590*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_29,	A18),
591*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP0_30,	A19),
592*077365a9SGeert Uytterhoeven 
593*077365a9SGeert Uytterhoeven 	/* IPSR1 */
594*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_0,		A20),
595*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_0,		HSPI_CS1_B,	SEL_HSPI1_B),
596*077365a9SGeert Uytterhoeven 
597*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_1,		A21),
598*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_1,		HSPI_CLK1_B,	SEL_HSPI1_B),
599*077365a9SGeert Uytterhoeven 
600*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_4_2,	A22),
601*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_4_2,	HRTS0_B,	SEL_HSCIF0_B),
602*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_4_2,	RX2_B,		SEL_SCIF2_B),
603*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_4_2,	DREQ2_A,	SEL_DREQ2_A),
604*077365a9SGeert Uytterhoeven 
605*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_7_5,	A23),
606*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_7_5,	HTX0_B),
607*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_7_5,	TX2_B),
608*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_7_5,	DACK2_A),
609*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_7_5,	TS_SDEN0_A,	SEL_TSIF0_A),
610*077365a9SGeert Uytterhoeven 
611*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_10_8,	SD1_CD_A,	SEL_SD1_A),
612*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_10_8,	MMC_D6),
613*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_10_8,	A24),
614*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_10_8,	DREQ1_A,	SEL_DREQ1_A),
615*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_10_8,	HRX0_B,		SEL_HSCIF0_B),
616*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_10_8,	TS_SPSYNC0_A,	SEL_TSIF0_A),
617*077365a9SGeert Uytterhoeven 
618*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_14_11,	SD1_WP_A,	SEL_SD1_A),
619*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_14_11,	MMC_D7),
620*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_14_11,	A25),
621*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_14_11,	DACK1_A),
622*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_14_11,	HCTS0_B,	SEL_HSCIF0_B),
623*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_14_11,	RX3_C,		SEL_SCIF3_C),
624*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_14_11,	TS_SDAT0_A,	SEL_TSIF0_A),
625*077365a9SGeert Uytterhoeven 
626*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP1_16_15,	CLKOUT),
627*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP1_16_15,	HSPI_TX1_B),
628*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP1_16_15,	PWM0_B),
629*077365a9SGeert Uytterhoeven 
630*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP1_17,	CS0),
631*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGM(IP1_17,	HSPI_RX1_B,	SEL_HSPI1_B),
632*077365a9SGeert Uytterhoeven 
633*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGM(IP1_20_18,	SSI_SCK1_B,	SEL_SSI1_B),
634*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP1_20_18,	ATAG0_B),
635*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP1_20_18,	CS1_A26),
636*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGM(IP1_20_18,	SDA2_A,		SEL_I2C2_A),
637*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGM(IP1_20_18,	SCK2_B,		SEL_SCIF2_B),
638*077365a9SGeert Uytterhoeven 
639*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_23_21,	MMC_D5),
640*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_23_21,	ATADIR0_B),
641*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_23_21,	RD_WR),
642*077365a9SGeert Uytterhoeven 
643*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_24,	WE1),
644*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_24,	ATAWR0_B),
645*077365a9SGeert Uytterhoeven 
646*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_27_25,	SSI_WS1_B,	SEL_SSI1_B),
647*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_27_25,	EX_CS0),
648*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_27_25,	SCL2_A,		SEL_I2C2_A),
649*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_27_25,	TX3_C),
650*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP1_27_25,	TS_SCK0_A,	SEL_TSIF0_A),
651*077365a9SGeert Uytterhoeven 
652*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_29_28,	EX_CS1),
653*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP1_29_28,	MMC_D4),
654*077365a9SGeert Uytterhoeven 
655*077365a9SGeert Uytterhoeven 	/* IPSR2 */
656*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_2_0,	SD1_CLK_A),
657*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_2_0,	MMC_CLK),
658*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_2_0,	ATACS00),
659*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_2_0,	EX_CS2),
660*077365a9SGeert Uytterhoeven 
661*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP2_5_3,	SD1_CMD_A,	SEL_SD1_A),
662*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_5_3,	MMC_CMD),
663*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_5_3,	ATACS10),
664*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_5_3,	EX_CS3),
665*077365a9SGeert Uytterhoeven 
666*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP2_8_6,	SD1_DAT0_A,	SEL_SD1_A),
667*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_8_6,	MMC_D0),
668*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_8_6,	ATARD0),
669*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_8_6,	EX_CS4),
670*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP2_8_6,	EX_WAIT1_A,	SEL_WAIT1_A),
671*077365a9SGeert Uytterhoeven 
672*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP2_11_9,	SD1_DAT1_A,	SEL_SD1_A),
673*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_11_9,	MMC_D1),
674*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_11_9,	ATAWR0_A),
675*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_11_9,	EX_CS5),
676*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP2_11_9,	EX_WAIT2_A,	SEL_WAIT2_A),
677*077365a9SGeert Uytterhoeven 
678*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP2_13_12,	DREQ0_A,	SEL_DREQ0_A),
679*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP2_13_12,	RX3_A,		SEL_SCIF3_A),
680*077365a9SGeert Uytterhoeven 
681*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_16_14,	DACK0),
682*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_16_14,	TX3_A),
683*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_16_14,	DRACK0),
684*077365a9SGeert Uytterhoeven 
685*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_17,	EX_WAIT0),
686*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_17,	PWM0_C),
687*077365a9SGeert Uytterhoeven 
688*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_18,	D0),
689*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_19,	D1),
690*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_20,	D2),
691*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_21,	D3),
692*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_22,	D4),
693*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_23,	D5),
694*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_24,	D6),
695*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_25,	D7),
696*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_26,	D8),
697*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_27,	D9),
698*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_28,	D10),
699*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_NOGP(IP2_29,	D11),
700*077365a9SGeert Uytterhoeven 
701*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_30,	RD_WR_B),
702*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_30,	IRQ0),
703*077365a9SGeert Uytterhoeven 
704*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP2_31,	MLB_CLK),
705*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP2_31,	IRQ1_A,		SEL_IRQ1_A),
706*077365a9SGeert Uytterhoeven 
707*077365a9SGeert Uytterhoeven 	/* IPSR3 */
708*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_1_0,	MLB_SIG),
709*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_1_0,	RX5_B,		SEL_SCIF5_B),
710*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_1_0,	SDA3_A,		SEL_I2C3_A),
711*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_1_0,	IRQ2_A,		SEL_IRQ2_A),
712*077365a9SGeert Uytterhoeven 
713*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_4_2,	MLB_DAT),
714*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_4_2,	TX5_B),
715*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_4_2,	SCL3_A,		SEL_I2C3_A),
716*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_4_2,	IRQ3_A,		SEL_IRQ3_A),
717*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_4_2,	SDSELF_B),
718*077365a9SGeert Uytterhoeven 
719*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_7_5,	SD1_CMD_B,	SEL_SD1_B),
720*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_7_5,	SCIF_CLK),
721*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_7_5,	AUDIO_CLKOUT_B),
722*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_7_5,	CAN_CLK_B,	SEL_CANCLK_B),
723*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_7_5,	SDA3_B,		SEL_I2C3_B),
724*077365a9SGeert Uytterhoeven 
725*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_9_8,	SD1_CLK_B),
726*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_9_8,	HTX0_A),
727*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_9_8,	TX0_A),
728*077365a9SGeert Uytterhoeven 
729*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_12_10,	SD1_DAT0_B,	SEL_SD1_B),
730*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_12_10,	HRX0_A,		SEL_HSCIF0_A),
731*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_12_10,	RX0_A,		SEL_SCIF0_A),
732*077365a9SGeert Uytterhoeven 
733*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_15_13,	SD1_DAT1_B,	SEL_SD1_B),
734*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_15_13,	HSCK0,		SEL_HSCIF0_A),
735*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_15_13,	SCK0),
736*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_15_13,	SCL3_B,		SEL_I2C3_B),
737*077365a9SGeert Uytterhoeven 
738*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_18_16,	SD1_DAT2_B,	SEL_SD1_B),
739*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_18_16,	HCTS0_A,	SEL_HSCIF0_A),
740*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_18_16,	CTS0),
741*077365a9SGeert Uytterhoeven 
742*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_20_19,	SD1_DAT3_B,	SEL_SD1_B),
743*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_20_19,	HRTS0_A,	SEL_HSCIF0_A),
744*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_20_19,	RTS0),
745*077365a9SGeert Uytterhoeven 
746*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_23_21,	SSI_SCK4),
747*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_23_21,	DU0_DR0),
748*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_23_21,	LCDOUT0),
749*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_23_21,	AUDATA2),
750*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_23_21,	ARM_TRACEDATA_2),
751*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_23_21,	SDA3_C,		SEL_I2C3_C),
752*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_23_21,	ADICHS1),
753*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_23_21,	TS_SDEN0_B,	SEL_TSIF0_B),
754*077365a9SGeert Uytterhoeven 
755*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_26_24,	SSI_WS4),
756*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_26_24,	DU0_DR1),
757*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_26_24,	LCDOUT1),
758*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_26_24,	AUDATA3),
759*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_26_24,	ARM_TRACEDATA_3),
760*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_26_24,	SCL3_C,		SEL_I2C3_C),
761*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_26_24,	ADICHS2),
762*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP3_26_24,	TS_SPSYNC0_B,	SEL_TSIF0_B),
763*077365a9SGeert Uytterhoeven 
764*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_27,	DU0_DR2),
765*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_27,	LCDOUT2),
766*077365a9SGeert Uytterhoeven 
767*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_28,	DU0_DR3),
768*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_28,	LCDOUT3),
769*077365a9SGeert Uytterhoeven 
770*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_29,	DU0_DR4),
771*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_29,	LCDOUT4),
772*077365a9SGeert Uytterhoeven 
773*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_30,	DU0_DR5),
774*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_30,	LCDOUT5),
775*077365a9SGeert Uytterhoeven 
776*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_31,	DU0_DR6),
777*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP3_31,	LCDOUT6),
778*077365a9SGeert Uytterhoeven 
779*077365a9SGeert Uytterhoeven 	/* IPSR4 */
780*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_0,		DU0_DR7),
781*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_0,		LCDOUT7),
782*077365a9SGeert Uytterhoeven 
783*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_3_1,	DU0_DG0),
784*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_3_1,	LCDOUT8),
785*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_3_1,	AUDATA4),
786*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_3_1,	ARM_TRACEDATA_4),
787*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_3_1,	TX1_D),
788*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_3_1,	CAN0_TX_A),
789*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_3_1,	ADICHS0),
790*077365a9SGeert Uytterhoeven 
791*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_6_4,	DU0_DG1),
792*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_6_4,	LCDOUT9),
793*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_6_4,	AUDATA5),
794*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_6_4,	ARM_TRACEDATA_5),
795*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_6_4,	RX1_D,		SEL_SCIF1_D),
796*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_6_4,	CAN0_RX_A,	SEL_CAN0_A),
797*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_6_4,	ADIDATA),
798*077365a9SGeert Uytterhoeven 
799*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_7,		DU0_DG2),
800*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_7,		LCDOUT10),
801*077365a9SGeert Uytterhoeven 
802*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_8,		DU0_DG3),
803*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_8,		LCDOUT11),
804*077365a9SGeert Uytterhoeven 
805*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_10_9,	DU0_DG4),
806*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_10_9,	LCDOUT12),
807*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_10_9,	RX0_B,		SEL_SCIF0_B),
808*077365a9SGeert Uytterhoeven 
809*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_12_11,	DU0_DG5),
810*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_12_11,	LCDOUT13),
811*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_12_11,	TX0_B),
812*077365a9SGeert Uytterhoeven 
813*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_14_13,	DU0_DG6),
814*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_14_13,	LCDOUT14),
815*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_14_13,	RX4_A,		SEL_SCIF4_A),
816*077365a9SGeert Uytterhoeven 
817*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_16_15,	DU0_DG7),
818*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_16_15,	LCDOUT15),
819*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_16_15,	TX4_A),
820*077365a9SGeert Uytterhoeven 
821*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_20_17,	SSI_SCK2_B,	SEL_SSI2_B),
822*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R0_B_MARK,	FN_IP4_20_17,	FN_VI0_R0_B,	FN_SEL_VI0_B), /* see sel_vi0 */
823*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R0_D_MARK,	FN_IP4_20_17,	FN_VI0_R0_B,	FN_SEL_VI0_D), /* see sel_vi0 */
824*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_20_17,	DU0_DB0),
825*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_20_17,	LCDOUT16),
826*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_20_17,	AUDATA6),
827*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_20_17,	ARM_TRACEDATA_6),
828*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_20_17,	GPSCLK_A,	SEL_GPS_A),
829*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_20_17,	PWM0_A),
830*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_20_17,	ADICLK),
831*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_20_17,	TS_SDAT0_B,	SEL_TSIF0_B),
832*077365a9SGeert Uytterhoeven 
833*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_24_21,	AUDIO_CLKC),
834*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R1_B_MARK,	FN_IP4_24_21,	FN_VI0_R1_B,	FN_SEL_VI0_B), /* see sel_vi0 */
835*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R1_D_MARK,	FN_IP4_24_21,	FN_VI0_R1_B,	FN_SEL_VI0_D), /* see sel_vi0 */
836*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_24_21,	DU0_DB1),
837*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_24_21,	LCDOUT17),
838*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_24_21,	AUDATA7),
839*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_24_21,	ARM_TRACEDATA_7),
840*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_24_21,	GPSIN_A,	SEL_GPS_A),
841*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_24_21,	ADICS_SAMP),
842*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_24_21,	TS_SCK0_B,	SEL_TSIF0_B),
843*077365a9SGeert Uytterhoeven 
844*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R2_B_MARK,	FN_IP4_26_25,	FN_VI0_R2_B,	FN_SEL_VI0_B), /* see sel_vi0 */
845*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R2_D_MARK,	FN_IP4_26_25,	FN_VI0_R2_B,	FN_SEL_VI0_D), /* see sel_vi0 */
846*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_26_25,	DU0_DB2),
847*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_26_25,	LCDOUT18),
848*077365a9SGeert Uytterhoeven 
849*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP4_28_27,	VI0_R3_B,	SEL_VI0_B),
850*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_28_27,	DU0_DB3),
851*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_28_27,	LCDOUT19),
852*077365a9SGeert Uytterhoeven 
853*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R4_B_MARK,	FN_IP4_30_29,	FN_VI0_R4_B,	FN_SEL_VI0_B), /* see sel_vi0 */
854*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R4_D_MARK,	FN_IP4_30_29,	FN_VI0_R4_B,	FN_SEL_VI0_D), /* see sel_vi0 */
855*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_30_29,	DU0_DB4),
856*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP4_30_29,	LCDOUT20),
857*077365a9SGeert Uytterhoeven 
858*077365a9SGeert Uytterhoeven 	/* IPSR5 */
859*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R5_B_MARK,	FN_IP5_1_0,	FN_VI0_R5_B,	FN_SEL_VI0_B), /* see sel_vi0 */
860*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R5_D_MARK,	FN_IP5_1_0,	FN_VI0_R5_B,	FN_SEL_VI0_D), /* see sel_vi0 */
861*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_1_0,	DU0_DB5),
862*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_1_0,	LCDOUT21),
863*077365a9SGeert Uytterhoeven 
864*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_3_2,	VI1_DATA10_B,	SEL_VI1_B),
865*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_3_2,	DU0_DB6),
866*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_3_2,	LCDOUT22),
867*077365a9SGeert Uytterhoeven 
868*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_5_4,	VI1_DATA11_B,	SEL_VI1_B),
869*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_5_4,	DU0_DB7),
870*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_5_4,	LCDOUT23),
871*077365a9SGeert Uytterhoeven 
872*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_6,		DU0_DOTCLKIN),
873*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_6,		QSTVA_QVS),
874*077365a9SGeert Uytterhoeven 
875*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_7,		DU0_DOTCLKO_UT0),
876*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_7,		QCLK),
877*077365a9SGeert Uytterhoeven 
878*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_9_8,	DU0_DOTCLKO_UT1),
879*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_9_8,	QSTVB_QVE),
880*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_9_8,	AUDIO_CLKOUT_A),
881*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_9_8,	REMOCON_C,	SEL_REMOCON_C),
882*077365a9SGeert Uytterhoeven 
883*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_11_10,	SSI_WS2_B,	SEL_SSI2_B),
884*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_11_10,	DU0_EXHSYNC_DU0_HSYNC),
885*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_11_10,	QSTH_QHS),
886*077365a9SGeert Uytterhoeven 
887*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_12,	DU0_EXVSYNC_DU0_VSYNC),
888*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_12,	QSTB_QHE),
889*077365a9SGeert Uytterhoeven 
890*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_14_13,	DU0_EXODDF_DU0_ODDF_DISP_CDE),
891*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_14_13,	QCPV_QDE),
892*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_14_13,	FMCLK_D,	SEL_FM_D),
893*077365a9SGeert Uytterhoeven 
894*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_17_15,	SSI_SCK1_A,	SEL_SSI1_A),
895*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_17_15,	DU0_DISP),
896*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_17_15,	QPOLA),
897*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_17_15,	AUDCK),
898*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_17_15,	ARM_TRACECLK),
899*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_17_15,	BPFCLK_D),
900*077365a9SGeert Uytterhoeven 
901*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_20_18,	SSI_WS1_A,	SEL_SSI1_A),
902*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_20_18,	DU0_CDE),
903*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_20_18,	QPOLB),
904*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_20_18,	AUDSYNC),
905*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_20_18,	ARM_TRACECTL),
906*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_20_18,	FMIN_D,		SEL_FM_D),
907*077365a9SGeert Uytterhoeven 
908*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_22_21,	SD1_CD_B,	SEL_SD1_B),
909*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_22_21,	SSI_SCK78),
910*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_22_21,	HSPI_RX0_B,	SEL_HSPI0_B),
911*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_22_21,	TX1_B),
912*077365a9SGeert Uytterhoeven 
913*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_25_23,	SD1_WP_B,	SEL_SD1_B),
914*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_25_23,	SSI_WS78),
915*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_25_23,	HSPI_CLK0_B,	SEL_HSPI0_B),
916*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_25_23,	RX1_B,		SEL_SCIF1_B),
917*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_25_23,	CAN_CLK_D,	SEL_CANCLK_D),
918*077365a9SGeert Uytterhoeven 
919*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_28_26,	SSI_SDATA8),
920*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_28_26,	SSI_SCK2_A,	SEL_SSI2_A),
921*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_28_26,	HSPI_CS0_B,	SEL_HSPI0_B),
922*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_28_26,	TX2_A),
923*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_28_26,	CAN0_TX_B),
924*077365a9SGeert Uytterhoeven 
925*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_30_29,	SSI_SDATA7),
926*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP5_30_29,	HSPI_TX0_B),
927*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_30_29,	RX2_A,		SEL_SCIF2_A),
928*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP5_30_29,	CAN0_RX_B,	SEL_CAN0_B),
929*077365a9SGeert Uytterhoeven 
930*077365a9SGeert Uytterhoeven 	/* IPSR6 */
931*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_1_0,	SSI_SCK6),
932*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_1_0,	HSPI_RX2_A,	SEL_HSPI2_A),
933*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_1_0,	FMCLK_B,	SEL_FM_B),
934*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_1_0,	CAN1_TX_B),
935*077365a9SGeert Uytterhoeven 
936*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_4_2,	SSI_WS6),
937*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_4_2,	HSPI_CLK2_A,	SEL_HSPI2_A),
938*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_4_2,	BPFCLK_B),
939*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_4_2,	CAN1_RX_B,	SEL_CAN1_B),
940*077365a9SGeert Uytterhoeven 
941*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_6_5,	SSI_SDATA6),
942*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_6_5,	HSPI_TX2_A),
943*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_6_5,	FMIN_B,		SEL_FM_B),
944*077365a9SGeert Uytterhoeven 
945*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_7,		SSI_SCK5),
946*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_7,		RX4_C,		SEL_SCIF4_C),
947*077365a9SGeert Uytterhoeven 
948*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_8,		SSI_WS5),
949*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_8,		TX4_C),
950*077365a9SGeert Uytterhoeven 
951*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_9,		SSI_SDATA5),
952*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_9,		RX0_D,		SEL_SCIF0_D),
953*077365a9SGeert Uytterhoeven 
954*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_10,	SSI_WS34),
955*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_10,	ARM_TRACEDATA_8),
956*077365a9SGeert Uytterhoeven 
957*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_12_11,	SSI_SDATA4),
958*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_12_11,	SSI_WS2_A,	SEL_SSI2_A),
959*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_12_11,	ARM_TRACEDATA_9),
960*077365a9SGeert Uytterhoeven 
961*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_13,	SSI_SDATA3),
962*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_13,	ARM_TRACEDATA_10),
963*077365a9SGeert Uytterhoeven 
964*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_15_14,	SSI_SCK012),
965*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_15_14,	ARM_TRACEDATA_11),
966*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_15_14,	TX0_D),
967*077365a9SGeert Uytterhoeven 
968*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_16,	SSI_WS012),
969*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_16,	ARM_TRACEDATA_12),
970*077365a9SGeert Uytterhoeven 
971*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_18_17,	SSI_SDATA2),
972*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_18_17,	HSPI_CS2_A,	SEL_HSPI2_A),
973*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_18_17,	ARM_TRACEDATA_13),
974*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_18_17,	SDA1_A,		SEL_I2C1_A),
975*077365a9SGeert Uytterhoeven 
976*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_20_19,	SSI_SDATA1),
977*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_20_19,	ARM_TRACEDATA_14),
978*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_20_19,	SCL1_A,		SEL_I2C1_A),
979*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP6_20_19,	SCK2_A,		SEL_SCIF2_A),
980*077365a9SGeert Uytterhoeven 
981*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_21,	SSI_SDATA0),
982*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_21,	ARM_TRACEDATA_15),
983*077365a9SGeert Uytterhoeven 
984*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_23_22,	SD0_CLK),
985*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_23_22,	SUB_TDO),
986*077365a9SGeert Uytterhoeven 
987*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_25_24,	SD0_CMD),
988*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_25_24,	SUB_TRST),
989*077365a9SGeert Uytterhoeven 
990*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_27_26,	SD0_DAT0),
991*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_27_26,	SUB_TMS),
992*077365a9SGeert Uytterhoeven 
993*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_29_28,	SD0_DAT1),
994*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_29_28,	SUB_TCK),
995*077365a9SGeert Uytterhoeven 
996*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_31_30,	SD0_DAT2),
997*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP6_31_30,	SUB_TDI),
998*077365a9SGeert Uytterhoeven 
999*077365a9SGeert Uytterhoeven 	/* IPSR7 */
1000*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_1_0,	SD0_DAT3),
1001*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_1_0,	IRQ1_B,		SEL_IRQ1_B),
1002*077365a9SGeert Uytterhoeven 
1003*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_3_2,	SD0_CD),
1004*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_3_2,	TX5_A),
1005*077365a9SGeert Uytterhoeven 
1006*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_5_4,	SD0_WP),
1007*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_5_4,	RX5_A,		SEL_SCIF5_A),
1008*077365a9SGeert Uytterhoeven 
1009*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_8_6,	VI1_CLKENB),
1010*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_8_6,	HSPI_CLK0_A,	SEL_HSPI0_A),
1011*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_8_6,	HTX1_A),
1012*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_8_6,	RTS1_C,		SEL_SCIF1_C),
1013*077365a9SGeert Uytterhoeven 
1014*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_11_9,	VI1_FIELD),
1015*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_11_9,	HSPI_CS0_A,	SEL_HSPI0_A),
1016*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_11_9,	HRX1_A,		SEL_HSCIF1_A),
1017*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_11_9,	SCK1_C,		SEL_SCIF1_C),
1018*077365a9SGeert Uytterhoeven 
1019*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_14_12,	VI1_HSYNC),
1020*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_14_12,	HSPI_RX0_A,	SEL_HSPI0_A),
1021*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_14_12,	HRTS1_A,	SEL_HSCIF1_A),
1022*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_14_12,	FMCLK_A,	SEL_FM_A),
1023*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_14_12,	RX1_C,		SEL_SCIF1_C),
1024*077365a9SGeert Uytterhoeven 
1025*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_17_15,	VI1_VSYNC),
1026*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_17_15,	HSPI_TX0),
1027*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_17_15,	HCTS1_A,	SEL_HSCIF1_A),
1028*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_17_15,	BPFCLK_A),
1029*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_17_15,	TX1_C),
1030*077365a9SGeert Uytterhoeven 
1031*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_20_18,	TCLK0),
1032*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_20_18,	HSCK1_A,	SEL_HSCIF1_A),
1033*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_20_18,	FMIN_A,		SEL_FM_A),
1034*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_20_18,	IRQ2_C,		SEL_IRQ2_C),
1035*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_20_18,	CTS1_C,		SEL_SCIF1_C),
1036*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_20_18,	SPEEDIN),
1037*077365a9SGeert Uytterhoeven 
1038*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_21,	VI0_CLK),
1039*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_21,	CAN_CLK_A,	SEL_CANCLK_A),
1040*077365a9SGeert Uytterhoeven 
1041*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_24_22,	VI0_CLKENB),
1042*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_24_22,	SD2_DAT2_B,	SEL_SD2_B),
1043*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_24_22,	VI1_DATA0),
1044*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_24_22,	DU1_DG6),
1045*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_24_22,	HSPI_RX1_A,	SEL_HSPI1_A),
1046*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_24_22,	RX4_B,		SEL_SCIF4_B),
1047*077365a9SGeert Uytterhoeven 
1048*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_28_25,	VI0_FIELD),
1049*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_28_25,	SD2_DAT3_B,	SEL_SD2_B),
1050*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R3_C_MARK,	FN_IP7_28_25,	FN_VI0_R3_C,	FN_SEL_VI0_C), /* see sel_vi0 */
1051*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R3_D_MARK,	FN_IP7_28_25,	FN_VI0_R3_C,	FN_SEL_VI0_D), /* see sel_vi0 */
1052*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_28_25,	VI1_DATA1),
1053*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_28_25,	DU1_DG7),
1054*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_28_25,	HSPI_CLK1_A,	SEL_HSPI1_A),
1055*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_28_25,	TX4_B),
1056*077365a9SGeert Uytterhoeven 
1057*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_31_29,	VI0_HSYNC),
1058*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_31_29,	SD2_CD_B,	SEL_SD2_B),
1059*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_31_29,	VI1_DATA2),
1060*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP7_31_29,	DU1_DR2),
1061*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_31_29,	HSPI_CS1_A,	SEL_HSPI1_A),
1062*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP7_31_29,	RX3_B,		SEL_SCIF3_B),
1063*077365a9SGeert Uytterhoeven 
1064*077365a9SGeert Uytterhoeven 	/* IPSR8 */
1065*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_2_0,	VI0_VSYNC),
1066*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_2_0,	SD2_WP_B,	SEL_SD2_B),
1067*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_2_0,	VI1_DATA3),
1068*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_2_0,	DU1_DR3),
1069*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_2_0,	HSPI_TX1_A),
1070*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_2_0,	TX3_B),
1071*077365a9SGeert Uytterhoeven 
1072*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_5_3,	VI0_DATA0_VI0_B0),
1073*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_5_3,	DU1_DG2),
1074*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_5_3,	IRQ2_B,		SEL_IRQ2_B),
1075*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_5_3,	RX3_D,		SEL_SCIF3_D),
1076*077365a9SGeert Uytterhoeven 
1077*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_8_6,	VI0_DATA1_VI0_B1),
1078*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_8_6,	DU1_DG3),
1079*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_8_6,	IRQ3_B,		SEL_IRQ3_B),
1080*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_8_6,	TX3_D),
1081*077365a9SGeert Uytterhoeven 
1082*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_10_9,	VI0_DATA2_VI0_B2),
1083*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_10_9,	DU1_DG4),
1084*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_10_9,	RX0_C,		SEL_SCIF0_C),
1085*077365a9SGeert Uytterhoeven 
1086*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_13_11,	VI0_DATA3_VI0_B3),
1087*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_13_11,	DU1_DG5),
1088*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_13_11,	TX1_A),
1089*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_13_11,	TX0_C),
1090*077365a9SGeert Uytterhoeven 
1091*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_15_14,	VI0_DATA4_VI0_B4),
1092*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_15_14,	DU1_DB2),
1093*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_15_14,	RX1_A,		SEL_SCIF1_A),
1094*077365a9SGeert Uytterhoeven 
1095*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_18_16,	VI0_DATA5_VI0_B5),
1096*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_18_16,	DU1_DB3),
1097*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_18_16,	SCK1_A,		SEL_SCIF1_A),
1098*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_18_16,	PWM4),
1099*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_18_16,	HSCK1_B,	SEL_HSCIF1_B),
1100*077365a9SGeert Uytterhoeven 
1101*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_21_19,	VI0_DATA6_VI0_G0),
1102*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_21_19,	DU1_DB4),
1103*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_21_19,	CTS1_A,		SEL_SCIF1_A),
1104*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_21_19,	PWM5),
1105*077365a9SGeert Uytterhoeven 
1106*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_23_22,	VI0_DATA7_VI0_G1),
1107*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_23_22,	DU1_DB5),
1108*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_23_22,	RTS1_A,		SEL_SCIF1_A),
1109*077365a9SGeert Uytterhoeven 
1110*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_26_24,	VI0_G2),
1111*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_26_24,	SD2_CLK_B),
1112*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_26_24,	VI1_DATA4),
1113*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_26_24,	DU1_DR4),
1114*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_26_24,	HTX1_B),
1115*077365a9SGeert Uytterhoeven 
1116*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_29_27,	VI0_G3),
1117*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_29_27,	SD2_CMD_B,	SEL_SD2_B),
1118*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_29_27,	VI1_DATA5),
1119*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP8_29_27,	DU1_DR5),
1120*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP8_29_27,	HRX1_B,		SEL_HSCIF1_B),
1121*077365a9SGeert Uytterhoeven 
1122*077365a9SGeert Uytterhoeven 	/* IPSR9 */
1123*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_2_0,	VI0_G4),
1124*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_2_0,	SD2_DAT0_B,	SEL_SD2_B),
1125*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_2_0,	VI1_DATA6),
1126*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_2_0,	DU1_DR6),
1127*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_2_0,	HRTS1_B,	SEL_HSCIF1_B),
1128*077365a9SGeert Uytterhoeven 
1129*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_5_3,	VI0_G5),
1130*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_5_3,	SD2_DAT1_B,	SEL_SD2_B),
1131*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_5_3,	VI1_DATA7),
1132*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_5_3,	DU1_DR7),
1133*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_5_3,	HCTS1_B,	SEL_HSCIF1_B),
1134*077365a9SGeert Uytterhoeven 
1135*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R0_A_MARK,	FN_IP9_8_6,	FN_VI0_R0_A,	FN_SEL_VI0_A), /* see sel_vi0 */
1136*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R0_C_MARK,	FN_IP9_8_6,	FN_VI0_R0_A,	FN_SEL_VI0_C), /* see sel_vi0 */
1137*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_8_6,	VI1_CLK),
1138*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_8_6,	ETH_REF_CLK),
1139*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_8_6,	DU1_DOTCLKIN),
1140*077365a9SGeert Uytterhoeven 
1141*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R1_A_MARK,	FN_IP9_11_9,	FN_VI0_R1_A,	FN_SEL_VI0_A), /* see sel_vi0 */
1142*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R1_C_MARK,	FN_IP9_11_9,	FN_VI0_R1_A,	FN_SEL_VI0_C), /* see sel_vi0 */
1143*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_11_9,	VI1_DATA8),
1144*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_11_9,	DU1_DB6),
1145*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_11_9,	ETH_TXD0),
1146*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_11_9,	PWM2),
1147*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_11_9,	TCLK1),
1148*077365a9SGeert Uytterhoeven 
1149*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R2_A_MARK,	FN_IP9_14_12,	FN_VI0_R2_A,	FN_SEL_VI0_A), /* see sel_vi0 */
1150*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R2_C_MARK,	FN_IP9_14_12,	FN_VI0_R2_A,	FN_SEL_VI0_C), /* see sel_vi0 */
1151*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_14_12,	VI1_DATA9),
1152*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_14_12,	DU1_DB7),
1153*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_14_12,	ETH_TXD1),
1154*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_14_12,	PWM3),
1155*077365a9SGeert Uytterhoeven 
1156*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_17_15,	VI0_R3_A,	SEL_VI0_A),
1157*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_17_15,	ETH_CRS_DV),
1158*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_17_15,	IECLK),
1159*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_17_15,	SCK2_C,		SEL_SCIF2_C),
1160*077365a9SGeert Uytterhoeven 
1161*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R4_A_MARK,	FN_IP9_20_18,	FN_VI0_R4_A,	FN_SEL_VI0_A), /* see sel_vi0 */
1162*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R3_C_MARK,	FN_IP9_20_18,	FN_VI0_R4_A,	FN_SEL_VI0_C), /* see sel_vi0 */
1163*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_20_18,	ETH_TX_EN),
1164*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_20_18,	IETX),
1165*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_20_18,	TX2_C),
1166*077365a9SGeert Uytterhoeven 
1167*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R5_A_MARK,	FN_IP9_23_21,	FN_VI0_R5_A,	FN_SEL_VI0_A), /* see sel_vi0 */
1168*077365a9SGeert Uytterhoeven 	PINMUX_DATA(VI0_R5_C_MARK,	FN_IP9_23_21,	FN_VI0_R5_A,	FN_SEL_VI0_C), /* see sel_vi0 */
1169*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_23_21,	ETH_RX_ER),
1170*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_23_21,	FMCLK_C,	SEL_FM_C),
1171*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_23_21,	IERX),
1172*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_23_21,	RX2_C,		SEL_SCIF2_C),
1173*077365a9SGeert Uytterhoeven 
1174*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_26_24,	VI1_DATA10_A,	SEL_VI1_A),
1175*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_26_24,	DU1_DOTCLKOUT),
1176*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_26_24,	ETH_RXD0),
1177*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_26_24,	BPFCLK_C),
1178*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_26_24,	TX2_D),
1179*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_26_24,	SDA2_C,		SEL_I2C2_C),
1180*077365a9SGeert Uytterhoeven 
1181*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_29_27,	VI1_DATA11_A,	SEL_VI1_A),
1182*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_29_27,	DU1_EXHSYNC_DU1_HSYNC),
1183*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP9_29_27,	ETH_RXD1),
1184*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_29_27,	FMIN_C,		SEL_FM_C),
1185*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_29_27,	RX2_D,		SEL_SCIF2_D),
1186*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP9_29_27,	SCL2_C,		SEL_I2C2_C),
1187*077365a9SGeert Uytterhoeven 
1188*077365a9SGeert Uytterhoeven 	/* IPSR10 */
1189*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_2_0,	SD2_CLK_A),
1190*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_2_0,	DU1_EXVSYNC_DU1_VSYNC),
1191*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_2_0,	ATARD1),
1192*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_2_0,	ETH_MDC),
1193*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_2_0,	SDA1_B,		SEL_I2C1_B),
1194*077365a9SGeert Uytterhoeven 
1195*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_5_3,	SD2_CMD_A,	SEL_SD2_A),
1196*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_5_3,	DU1_EXODDF_DU1_ODDF_DISP_CDE),
1197*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_5_3,	ATAWR1),
1198*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_5_3,	ETH_MDIO),
1199*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_5_3,	SCL1_B,		SEL_I2C1_B),
1200*077365a9SGeert Uytterhoeven 
1201*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_8_6,	SD2_DAT0_A,	SEL_SD2_A),
1202*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_8_6,	DU1_DISP),
1203*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_8_6,	ATACS01),
1204*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_8_6,	DREQ1_B,	SEL_DREQ1_B),
1205*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_8_6,	ETH_LINK),
1206*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_8_6,	CAN1_RX_A,	SEL_CAN1_A),
1207*077365a9SGeert Uytterhoeven 
1208*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_12_9,	SD2_DAT1_A,	SEL_SD2_A),
1209*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_12_9,	DU1_CDE),
1210*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_12_9,	ATACS11),
1211*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_12_9,	DACK1_B),
1212*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_12_9,	ETH_MAGIC),
1213*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_12_9,	CAN1_TX_A),
1214*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_12_9,	PWM6),
1215*077365a9SGeert Uytterhoeven 
1216*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_15_13,	SD2_DAT2_A,	SEL_SD2_A),
1217*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_15_13,	VI1_DATA12),
1218*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_15_13,	DREQ2_B,	SEL_DREQ2_B),
1219*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_15_13,	ATADIR1),
1220*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_15_13,	HSPI_CLK2_B,	SEL_HSPI2_B),
1221*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_15_13,	GPSCLK_B,	SEL_GPS_B),
1222*077365a9SGeert Uytterhoeven 
1223*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_18_16,	SD2_DAT3_A,	SEL_SD2_A),
1224*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_18_16,	VI1_DATA13),
1225*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_18_16,	DACK2_B),
1226*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_18_16,	ATAG1),
1227*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_18_16,	HSPI_CS2_B,	SEL_HSPI2_B),
1228*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_18_16,	GPSIN_B,	SEL_GPS_B),
1229*077365a9SGeert Uytterhoeven 
1230*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_21_19,	SD2_CD_A,	SEL_SD2_A),
1231*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_21_19,	VI1_DATA14),
1232*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_21_19,	EX_WAIT1_B,	SEL_WAIT1_B),
1233*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_21_19,	DREQ0_B,	SEL_DREQ0_B),
1234*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_21_19,	HSPI_RX2_B,	SEL_HSPI2_B),
1235*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_21_19,	REMOCON_A,	SEL_REMOCON_A),
1236*077365a9SGeert Uytterhoeven 
1237*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_24_22,	SD2_WP_A,	SEL_SD2_A),
1238*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_24_22,	VI1_DATA15),
1239*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_24_22,	EX_WAIT2_B,	SEL_WAIT2_B),
1240*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_24_22,	DACK0_B),
1241*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_GPSR(IP10_24_22,	HSPI_TX2_B),
1242*077365a9SGeert Uytterhoeven 	PINMUX_IPSR_MSEL(IP10_24_22,	CAN_CLK_C,	SEL_CANCLK_C),
1243*077365a9SGeert Uytterhoeven };
1244*077365a9SGeert Uytterhoeven 
1245*077365a9SGeert Uytterhoeven /*
1246*077365a9SGeert Uytterhoeven  * Pins not associated with a GPIO port.
1247*077365a9SGeert Uytterhoeven  */
1248*077365a9SGeert Uytterhoeven enum {
1249*077365a9SGeert Uytterhoeven 	GP_ASSIGN_LAST(),
1250*077365a9SGeert Uytterhoeven 	NOGP_ALL(),
1251*077365a9SGeert Uytterhoeven };
1252*077365a9SGeert Uytterhoeven 
1253*077365a9SGeert Uytterhoeven static const struct sh_pfc_pin pinmux_pins[] = {
1254*077365a9SGeert Uytterhoeven 	PINMUX_GPIO_GP_ALL(),
1255*077365a9SGeert Uytterhoeven 	PINMUX_NOGP_ALL(),
1256*077365a9SGeert Uytterhoeven };
1257*077365a9SGeert Uytterhoeven 
1258*077365a9SGeert Uytterhoeven /* - macro */
1259*077365a9SGeert Uytterhoeven #define SH_PFC_PINS(name, args...) \
1260*077365a9SGeert Uytterhoeven 	static const unsigned int name ##_pins[] = { args }
1261*077365a9SGeert Uytterhoeven #define SH_PFC_MUX1(name, arg1)					\
1262*077365a9SGeert Uytterhoeven 	static const unsigned int name ##_mux[]  = { arg1##_MARK }
1263*077365a9SGeert Uytterhoeven #define SH_PFC_MUX2(name, arg1, arg2)					\
1264*077365a9SGeert Uytterhoeven 	static const unsigned int name ##_mux[]  = { arg1##_MARK, arg2##_MARK, }
1265*077365a9SGeert Uytterhoeven #define SH_PFC_MUX3(name, arg1, arg2, arg3)					\
1266*077365a9SGeert Uytterhoeven 	static const unsigned int name ##_mux[]  = { arg1##_MARK, arg2##_MARK,	\
1267*077365a9SGeert Uytterhoeven 						     arg3##_MARK }
1268*077365a9SGeert Uytterhoeven #define SH_PFC_MUX4(name, arg1, arg2, arg3, arg4)			\
1269*077365a9SGeert Uytterhoeven 	static const unsigned int name ##_mux[]  = { arg1##_MARK, arg2##_MARK, \
1270*077365a9SGeert Uytterhoeven 						     arg3##_MARK, arg4##_MARK }
1271*077365a9SGeert Uytterhoeven #define SH_PFC_MUX8(name, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
1272*077365a9SGeert Uytterhoeven 	static const unsigned int name ##_mux[]  = { arg1##_MARK, arg2##_MARK, \
1273*077365a9SGeert Uytterhoeven 						     arg3##_MARK, arg4##_MARK, \
1274*077365a9SGeert Uytterhoeven 						     arg5##_MARK, arg6##_MARK, \
1275*077365a9SGeert Uytterhoeven 						     arg7##_MARK, arg8##_MARK, }
1276*077365a9SGeert Uytterhoeven 
1277*077365a9SGeert Uytterhoeven /* - AUDIO macro -------------------------------------------------------------*/
1278*077365a9SGeert Uytterhoeven #define AUDIO_PFC_PIN(name, pin)	SH_PFC_PINS(name, pin)
1279*077365a9SGeert Uytterhoeven #define AUDIO_PFC_DAT(name, pin)	SH_PFC_MUX1(name, pin)
1280*077365a9SGeert Uytterhoeven 
1281*077365a9SGeert Uytterhoeven /* - AUDIO clock -------------------------------------------------------------*/
1282*077365a9SGeert Uytterhoeven AUDIO_PFC_PIN(audio_clk_a,	RCAR_GP_PIN(2, 22));
1283*077365a9SGeert Uytterhoeven AUDIO_PFC_DAT(audio_clk_a,	AUDIO_CLKA);
1284*077365a9SGeert Uytterhoeven AUDIO_PFC_PIN(audio_clk_b,	RCAR_GP_PIN(2, 23));
1285*077365a9SGeert Uytterhoeven AUDIO_PFC_DAT(audio_clk_b,	AUDIO_CLKB);
1286*077365a9SGeert Uytterhoeven AUDIO_PFC_PIN(audio_clk_c,	RCAR_GP_PIN(2, 7));
1287*077365a9SGeert Uytterhoeven AUDIO_PFC_DAT(audio_clk_c,	AUDIO_CLKC);
1288*077365a9SGeert Uytterhoeven AUDIO_PFC_PIN(audio_clkout_a,	RCAR_GP_PIN(2, 16));
1289*077365a9SGeert Uytterhoeven AUDIO_PFC_DAT(audio_clkout_a,	AUDIO_CLKOUT_A);
1290*077365a9SGeert Uytterhoeven AUDIO_PFC_PIN(audio_clkout_b,	RCAR_GP_PIN(1, 16));
1291*077365a9SGeert Uytterhoeven AUDIO_PFC_DAT(audio_clkout_b,	AUDIO_CLKOUT_B);
1292*077365a9SGeert Uytterhoeven 
1293*077365a9SGeert Uytterhoeven /* - CAN macro --------_----------------------------------------------------- */
1294*077365a9SGeert Uytterhoeven #define CAN_PFC_PINS(name, args...)		SH_PFC_PINS(name, args)
1295*077365a9SGeert Uytterhoeven #define CAN_PFC_DATA(name, tx, rx)		SH_PFC_MUX2(name, tx, rx)
1296*077365a9SGeert Uytterhoeven #define CAN_PFC_CLK(name, clk)			SH_PFC_MUX1(name, clk)
1297*077365a9SGeert Uytterhoeven 
1298*077365a9SGeert Uytterhoeven /* - CAN0 ------------------------------------------------------------------- */
1299*077365a9SGeert Uytterhoeven CAN_PFC_PINS(can0_data_a,	RCAR_GP_PIN(1, 30),	RCAR_GP_PIN(1, 31));
1300*077365a9SGeert Uytterhoeven CAN_PFC_DATA(can0_data_a,	CAN0_TX_A,		CAN0_RX_A);
1301*077365a9SGeert Uytterhoeven CAN_PFC_PINS(can0_data_b,	RCAR_GP_PIN(2, 26),	RCAR_GP_PIN(2, 27));
1302*077365a9SGeert Uytterhoeven CAN_PFC_DATA(can0_data_b,	CAN0_TX_B,		CAN0_RX_B);
1303*077365a9SGeert Uytterhoeven 
1304*077365a9SGeert Uytterhoeven /* - CAN1 ------------------------------------------------------------------- */
1305*077365a9SGeert Uytterhoeven CAN_PFC_PINS(can1_data_a,	RCAR_GP_PIN(4, 20),	RCAR_GP_PIN(4, 19));
1306*077365a9SGeert Uytterhoeven CAN_PFC_DATA(can1_data_a,	CAN1_TX_A,		CAN1_RX_A);
1307*077365a9SGeert Uytterhoeven CAN_PFC_PINS(can1_data_b,	RCAR_GP_PIN(2, 28),	RCAR_GP_PIN(2, 29));
1308*077365a9SGeert Uytterhoeven CAN_PFC_DATA(can1_data_b,	CAN1_TX_B,		CAN1_RX_B);
1309*077365a9SGeert Uytterhoeven 
1310*077365a9SGeert Uytterhoeven /* - CAN_CLK  --------------------------------------------------------------- */
1311*077365a9SGeert Uytterhoeven CAN_PFC_PINS(can_clk_a,		RCAR_GP_PIN(3, 24));
1312*077365a9SGeert Uytterhoeven CAN_PFC_CLK(can_clk_a,		CAN_CLK_A);
1313*077365a9SGeert Uytterhoeven CAN_PFC_PINS(can_clk_b,		RCAR_GP_PIN(1, 16));
1314*077365a9SGeert Uytterhoeven CAN_PFC_CLK(can_clk_b,		CAN_CLK_B);
1315*077365a9SGeert Uytterhoeven CAN_PFC_PINS(can_clk_c,		RCAR_GP_PIN(4, 24));
1316*077365a9SGeert Uytterhoeven CAN_PFC_CLK(can_clk_c,		CAN_CLK_C);
1317*077365a9SGeert Uytterhoeven CAN_PFC_PINS(can_clk_d,		RCAR_GP_PIN(2, 25));
1318*077365a9SGeert Uytterhoeven CAN_PFC_CLK(can_clk_d,		CAN_CLK_D);
1319*077365a9SGeert Uytterhoeven 
1320*077365a9SGeert Uytterhoeven /* - Ether ------------------------------------------------------------------ */
1321*077365a9SGeert Uytterhoeven SH_PFC_PINS(ether_rmii,		RCAR_GP_PIN(4, 10),	RCAR_GP_PIN(4, 11),
1322*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 13),	RCAR_GP_PIN(4, 9),
1323*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 15),	RCAR_GP_PIN(4, 16),
1324*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 12),	RCAR_GP_PIN(4, 14),
1325*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 18),	RCAR_GP_PIN(4, 17));
1326*077365a9SGeert Uytterhoeven static const unsigned int ether_rmii_mux[] = {
1327*077365a9SGeert Uytterhoeven 	ETH_TXD0_MARK, ETH_TXD1_MARK, ETH_TX_EN_MARK,  ETH_REF_CLK_MARK,
1328*077365a9SGeert Uytterhoeven 	ETH_RXD0_MARK, ETH_RXD1_MARK, ETH_CRS_DV_MARK, ETH_RX_ER_MARK,
1329*077365a9SGeert Uytterhoeven 	ETH_MDIO_MARK, ETH_MDC_MARK,
1330*077365a9SGeert Uytterhoeven };
1331*077365a9SGeert Uytterhoeven SH_PFC_PINS(ether_link,		RCAR_GP_PIN(4, 19));
1332*077365a9SGeert Uytterhoeven SH_PFC_MUX1(ether_link,		ETH_LINK);
1333*077365a9SGeert Uytterhoeven SH_PFC_PINS(ether_magic,	RCAR_GP_PIN(4, 20));
1334*077365a9SGeert Uytterhoeven SH_PFC_MUX1(ether_magic,	ETH_MAGIC);
1335*077365a9SGeert Uytterhoeven 
1336*077365a9SGeert Uytterhoeven /* - SCIF macro ------------------------------------------------------------- */
1337*077365a9SGeert Uytterhoeven #define SCIF_PFC_PIN(name, args...)	SH_PFC_PINS(name, args)
1338*077365a9SGeert Uytterhoeven #define SCIF_PFC_DAT(name, tx, rx)	SH_PFC_MUX2(name, tx, rx)
1339*077365a9SGeert Uytterhoeven #define SCIF_PFC_CTR(name, cts, rts)	SH_PFC_MUX2(name, cts, rts)
1340*077365a9SGeert Uytterhoeven #define SCIF_PFC_CLK(name, sck)		SH_PFC_MUX1(name, sck)
1341*077365a9SGeert Uytterhoeven 
1342*077365a9SGeert Uytterhoeven /* - HSCIF0 ----------------------------------------------------------------- */
1343*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif0_data_a,	RCAR_GP_PIN(1, 17),	RCAR_GP_PIN(1, 18));
1344*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(hscif0_data_a,	HTX0_A,			HRX0_A);
1345*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif0_data_b,	RCAR_GP_PIN(0, 29),	RCAR_GP_PIN(0, 30));
1346*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(hscif0_data_b,	HTX0_B,			HRX0_B);
1347*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif0_ctrl_a,	RCAR_GP_PIN(1, 20),	RCAR_GP_PIN(1, 21));
1348*077365a9SGeert Uytterhoeven SCIF_PFC_CTR(hscif0_ctrl_a,	HCTS0_A,		HRTS0_A);
1349*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif0_ctrl_b,	RCAR_GP_PIN(0, 31),	RCAR_GP_PIN(0, 28));
1350*077365a9SGeert Uytterhoeven SCIF_PFC_CTR(hscif0_ctrl_b,	HCTS0_B,		HRTS0_B);
1351*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif0_clk,	RCAR_GP_PIN(1, 19));
1352*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(hscif0_clk,	HSCK0);
1353*077365a9SGeert Uytterhoeven 
1354*077365a9SGeert Uytterhoeven /* - HSCIF1 ----------------------------------------------------------------- */
1355*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif1_data_a,	RCAR_GP_PIN(3, 19),	RCAR_GP_PIN(3, 20));
1356*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(hscif1_data_a,	HTX1_A,			HRX1_A);
1357*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif1_data_b,	RCAR_GP_PIN(4, 5),	RCAR_GP_PIN(4, 6));
1358*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(hscif1_data_b,	HTX1_B,			HRX1_B);
1359*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif1_ctrl_a,	RCAR_GP_PIN(3, 22),	RCAR_GP_PIN(3, 21));
1360*077365a9SGeert Uytterhoeven SCIF_PFC_CTR(hscif1_ctrl_a,	HCTS1_A,		HRTS1_A);
1361*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif1_ctrl_b,	RCAR_GP_PIN(4, 8),	RCAR_GP_PIN(4, 7));
1362*077365a9SGeert Uytterhoeven SCIF_PFC_CTR(hscif1_ctrl_b,	HCTS1_B,		HRTS1_B);
1363*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif1_clk_a,	RCAR_GP_PIN(3, 23));
1364*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(hscif1_clk_a,	HSCK1_A);
1365*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(hscif1_clk_b,	RCAR_GP_PIN(4, 2));
1366*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(hscif1_clk_b,	HSCK1_B);
1367*077365a9SGeert Uytterhoeven 
1368*077365a9SGeert Uytterhoeven /* - HSPI macro --------------------------------------------------------------*/
1369*077365a9SGeert Uytterhoeven #define HSPI_PFC_PIN(name, args...)		SH_PFC_PINS(name, args)
1370*077365a9SGeert Uytterhoeven #define HSPI_PFC_DAT(name, clk, cs, rx, tx)	SH_PFC_MUX4(name, clk, cs, rx, tx)
1371*077365a9SGeert Uytterhoeven 
1372*077365a9SGeert Uytterhoeven /* - HSPI0 -------------------------------------------------------------------*/
1373*077365a9SGeert Uytterhoeven HSPI_PFC_PIN(hspi0_a,	RCAR_GP_PIN(3, 19),	RCAR_GP_PIN(3, 20),
1374*077365a9SGeert Uytterhoeven 			RCAR_GP_PIN(3, 21),	RCAR_GP_PIN(3, 22));
1375*077365a9SGeert Uytterhoeven HSPI_PFC_DAT(hspi0_a,	HSPI_CLK0_A,		HSPI_CS0_A,
1376*077365a9SGeert Uytterhoeven 			HSPI_RX0_A,		HSPI_TX0);
1377*077365a9SGeert Uytterhoeven 
1378*077365a9SGeert Uytterhoeven HSPI_PFC_PIN(hspi0_b,	RCAR_GP_PIN(2, 25),	RCAR_GP_PIN(2, 26),
1379*077365a9SGeert Uytterhoeven 			RCAR_GP_PIN(2, 24),	RCAR_GP_PIN(2, 27));
1380*077365a9SGeert Uytterhoeven HSPI_PFC_DAT(hspi0_b,	HSPI_CLK0_B,		HSPI_CS0_B,
1381*077365a9SGeert Uytterhoeven 			HSPI_RX0_B,		HSPI_TX0_B);
1382*077365a9SGeert Uytterhoeven 
1383*077365a9SGeert Uytterhoeven /* - HSPI1 -------------------------------------------------------------------*/
1384*077365a9SGeert Uytterhoeven HSPI_PFC_PIN(hspi1_a,	RCAR_GP_PIN(3, 26),	RCAR_GP_PIN(3, 27),
1385*077365a9SGeert Uytterhoeven 			RCAR_GP_PIN(3, 25),	RCAR_GP_PIN(3, 28));
1386*077365a9SGeert Uytterhoeven HSPI_PFC_DAT(hspi1_a,	HSPI_CLK1_A,		HSPI_CS1_A,
1387*077365a9SGeert Uytterhoeven 			HSPI_RX1_A,		HSPI_TX1_A);
1388*077365a9SGeert Uytterhoeven 
1389*077365a9SGeert Uytterhoeven HSPI_PFC_PIN(hspi1_b,	RCAR_GP_PIN(0, 27),	RCAR_GP_PIN(0, 26),
1390*077365a9SGeert Uytterhoeven 			PIN_CS0,		PIN_CLKOUT);
1391*077365a9SGeert Uytterhoeven HSPI_PFC_DAT(hspi1_b,	HSPI_CLK1_B,		HSPI_CS1_B,
1392*077365a9SGeert Uytterhoeven 			HSPI_RX1_B,		HSPI_TX1_B);
1393*077365a9SGeert Uytterhoeven 
1394*077365a9SGeert Uytterhoeven /* - HSPI2 -------------------------------------------------------------------*/
1395*077365a9SGeert Uytterhoeven HSPI_PFC_PIN(hspi2_a,	RCAR_GP_PIN(2, 29),	RCAR_GP_PIN(3, 8),
1396*077365a9SGeert Uytterhoeven 			RCAR_GP_PIN(2, 28),	RCAR_GP_PIN(2, 30));
1397*077365a9SGeert Uytterhoeven HSPI_PFC_DAT(hspi2_a,	HSPI_CLK2_A,		HSPI_CS2_A,
1398*077365a9SGeert Uytterhoeven 			HSPI_RX2_A,		HSPI_TX2_A);
1399*077365a9SGeert Uytterhoeven 
1400*077365a9SGeert Uytterhoeven HSPI_PFC_PIN(hspi2_b,	RCAR_GP_PIN(4, 21),	RCAR_GP_PIN(4, 22),
1401*077365a9SGeert Uytterhoeven 			RCAR_GP_PIN(4, 23),	RCAR_GP_PIN(4, 24));
1402*077365a9SGeert Uytterhoeven HSPI_PFC_DAT(hspi2_b,	HSPI_CLK2_B,		HSPI_CS2_B,
1403*077365a9SGeert Uytterhoeven 			HSPI_RX2_B,		HSPI_TX2_B);
1404*077365a9SGeert Uytterhoeven 
1405*077365a9SGeert Uytterhoeven /* - I2C macro ------------------------------------------------------------- */
1406*077365a9SGeert Uytterhoeven #define I2C_PFC_PIN(name, args...)	SH_PFC_PINS(name, args)
1407*077365a9SGeert Uytterhoeven #define I2C_PFC_MUX(name, sda, scl)	SH_PFC_MUX2(name, sda, scl)
1408*077365a9SGeert Uytterhoeven 
1409*077365a9SGeert Uytterhoeven /* - I2C1 ------------------------------------------------------------------ */
1410*077365a9SGeert Uytterhoeven I2C_PFC_PIN(i2c1_a,	RCAR_GP_PIN(3, 8),	RCAR_GP_PIN(3, 9));
1411*077365a9SGeert Uytterhoeven I2C_PFC_MUX(i2c1_a,	SDA1_A,			SCL1_A);
1412*077365a9SGeert Uytterhoeven I2C_PFC_PIN(i2c1_b,	RCAR_GP_PIN(4, 17),	RCAR_GP_PIN(4, 18));
1413*077365a9SGeert Uytterhoeven I2C_PFC_MUX(i2c1_b,	SDA1_B,			SCL1_B);
1414*077365a9SGeert Uytterhoeven 
1415*077365a9SGeert Uytterhoeven /* - I2C2 ------------------------------------------------------------------ */
1416*077365a9SGeert Uytterhoeven I2C_PFC_PIN(i2c2_a,	PIN_CS1_A26,		RCAR_GP_PIN(1, 3));
1417*077365a9SGeert Uytterhoeven I2C_PFC_MUX(i2c2_a,	SDA2_A,			SCL2_A);
1418*077365a9SGeert Uytterhoeven I2C_PFC_PIN(i2c2_b,	RCAR_GP_PIN(0, 3),	RCAR_GP_PIN(0, 4));
1419*077365a9SGeert Uytterhoeven I2C_PFC_MUX(i2c2_b,	SDA2_B,			SCL2_B);
1420*077365a9SGeert Uytterhoeven I2C_PFC_PIN(i2c2_c,	RCAR_GP_PIN(4, 15),	RCAR_GP_PIN(4, 16));
1421*077365a9SGeert Uytterhoeven I2C_PFC_MUX(i2c2_c,	SDA2_C,			SCL2_C);
1422*077365a9SGeert Uytterhoeven 
1423*077365a9SGeert Uytterhoeven /* - I2C3 ------------------------------------------------------------------ */
1424*077365a9SGeert Uytterhoeven I2C_PFC_PIN(i2c3_a,	RCAR_GP_PIN(1, 14),	RCAR_GP_PIN(1, 15));
1425*077365a9SGeert Uytterhoeven I2C_PFC_MUX(i2c3_a,	SDA3_A,			SCL3_A);
1426*077365a9SGeert Uytterhoeven I2C_PFC_PIN(i2c3_b,	RCAR_GP_PIN(1, 16),	RCAR_GP_PIN(1, 19));
1427*077365a9SGeert Uytterhoeven I2C_PFC_MUX(i2c3_b,	SDA3_B,			SCL3_B);
1428*077365a9SGeert Uytterhoeven I2C_PFC_PIN(i2c3_c,	RCAR_GP_PIN(1, 22),	RCAR_GP_PIN(1, 23));
1429*077365a9SGeert Uytterhoeven I2C_PFC_MUX(i2c3_c,	SDA3_C,			SCL3_C);
1430*077365a9SGeert Uytterhoeven 
1431*077365a9SGeert Uytterhoeven /* - MMC macro -------------------------------------------------------------- */
1432*077365a9SGeert Uytterhoeven #define MMC_PFC_PINS(name, args...)		SH_PFC_PINS(name, args)
1433*077365a9SGeert Uytterhoeven #define MMC_PFC_CTRL(name, clk, cmd)		SH_PFC_MUX2(name, clk, cmd)
1434*077365a9SGeert Uytterhoeven #define MMC_PFC_DAT1(name, d0)			SH_PFC_MUX1(name, d0)
1435*077365a9SGeert Uytterhoeven #define MMC_PFC_DAT4(name, d0, d1, d2, d3)	SH_PFC_MUX4(name, d0, d1, d2, d3)
1436*077365a9SGeert Uytterhoeven #define MMC_PFC_DAT8(name, d0, d1, d2, d3, d4, d5, d6, d7)	\
1437*077365a9SGeert Uytterhoeven 			SH_PFC_MUX8(name, d0, d1, d2, d3, d4, d5, d6, d7)
1438*077365a9SGeert Uytterhoeven 
1439*077365a9SGeert Uytterhoeven /* - MMC -------------------------------------------------------------------- */
1440*077365a9SGeert Uytterhoeven MMC_PFC_PINS(mmc_ctrl,		RCAR_GP_PIN(1, 5),	RCAR_GP_PIN(1, 6));
1441*077365a9SGeert Uytterhoeven MMC_PFC_CTRL(mmc_ctrl,		MMC_CLK,		MMC_CMD);
1442*077365a9SGeert Uytterhoeven MMC_PFC_PINS(mmc_data1,		RCAR_GP_PIN(1, 7));
1443*077365a9SGeert Uytterhoeven MMC_PFC_DAT1(mmc_data1,		MMC_D0);
1444*077365a9SGeert Uytterhoeven MMC_PFC_PINS(mmc_data4,		RCAR_GP_PIN(1, 7),	RCAR_GP_PIN(1, 8),
1445*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(0, 5),	RCAR_GP_PIN(0, 6));
1446*077365a9SGeert Uytterhoeven MMC_PFC_DAT4(mmc_data4,		MMC_D0,			MMC_D1,
1447*077365a9SGeert Uytterhoeven 				MMC_D2,			MMC_D3);
1448*077365a9SGeert Uytterhoeven MMC_PFC_PINS(mmc_data8,		RCAR_GP_PIN(1, 7),	RCAR_GP_PIN(1, 8),
1449*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(0, 5),	RCAR_GP_PIN(0, 6),
1450*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(1, 4),	RCAR_GP_PIN(1, 0),
1451*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(0, 30),	RCAR_GP_PIN(0, 31));
1452*077365a9SGeert Uytterhoeven MMC_PFC_DAT8(mmc_data8,		MMC_D0,			MMC_D1,
1453*077365a9SGeert Uytterhoeven 				MMC_D2,			MMC_D3,
1454*077365a9SGeert Uytterhoeven 				MMC_D4,			MMC_D5,
1455*077365a9SGeert Uytterhoeven 				MMC_D6,			MMC_D7);
1456*077365a9SGeert Uytterhoeven 
1457*077365a9SGeert Uytterhoeven /* - SCIF CLOCK ------------------------------------------------------------- */
1458*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif_clk,		RCAR_GP_PIN(1, 16));
1459*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(scif_clk,		SCIF_CLK);
1460*077365a9SGeert Uytterhoeven 
1461*077365a9SGeert Uytterhoeven /* - SCIF0 ------------------------------------------------------------------ */
1462*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif0_data_a,	RCAR_GP_PIN(1, 17),	RCAR_GP_PIN(1, 18));
1463*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif0_data_a,	TX0_A,			RX0_A);
1464*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif0_data_b,	RCAR_GP_PIN(2, 3),	RCAR_GP_PIN(2, 2));
1465*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif0_data_b,	TX0_B,			RX0_B);
1466*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif0_data_c,	RCAR_GP_PIN(4, 0),	RCAR_GP_PIN(3, 31));
1467*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif0_data_c,	TX0_C,			RX0_C);
1468*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif0_data_d,	RCAR_GP_PIN(3, 6),	RCAR_GP_PIN(3, 1));
1469*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif0_data_d,	TX0_D,			RX0_D);
1470*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif0_ctrl,	RCAR_GP_PIN(1, 20),	RCAR_GP_PIN(1, 21));
1471*077365a9SGeert Uytterhoeven SCIF_PFC_CTR(scif0_ctrl,	CTS0,			RTS0);
1472*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif0_clk,		RCAR_GP_PIN(1, 19));
1473*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(scif0_clk,		SCK0);
1474*077365a9SGeert Uytterhoeven 
1475*077365a9SGeert Uytterhoeven /* - SCIF1 ------------------------------------------------------------------ */
1476*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif1_data_a,	RCAR_GP_PIN(4, 0),	RCAR_GP_PIN(4, 1));
1477*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif1_data_a,	TX1_A,			RX1_A);
1478*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif1_data_b,	RCAR_GP_PIN(2, 24),	RCAR_GP_PIN(2, 25));
1479*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif1_data_b,	TX1_B,			RX1_B);
1480*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif1_data_c,	RCAR_GP_PIN(3, 22),	RCAR_GP_PIN(3, 21));
1481*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif1_data_c,	TX1_C,			RX1_C);
1482*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif1_data_d,	RCAR_GP_PIN(1, 30),	RCAR_GP_PIN(1, 31));
1483*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif1_data_d,	TX1_D,			RX1_D);
1484*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif1_ctrl_a,	RCAR_GP_PIN(4, 3),	RCAR_GP_PIN(4, 4));
1485*077365a9SGeert Uytterhoeven SCIF_PFC_CTR(scif1_ctrl_a,	CTS1_A,			RTS1_A);
1486*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif1_ctrl_c,	RCAR_GP_PIN(3, 23),	RCAR_GP_PIN(3, 19));
1487*077365a9SGeert Uytterhoeven SCIF_PFC_CTR(scif1_ctrl_c,	CTS1_C,			RTS1_C);
1488*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif1_clk_a,	RCAR_GP_PIN(4, 2));
1489*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(scif1_clk_a,	SCK1_A);
1490*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif1_clk_c,	RCAR_GP_PIN(3, 20));
1491*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(scif1_clk_c,	SCK1_C);
1492*077365a9SGeert Uytterhoeven 
1493*077365a9SGeert Uytterhoeven /* - SCIF2 ------------------------------------------------------------------ */
1494*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif2_data_a,	RCAR_GP_PIN(2, 26),	RCAR_GP_PIN(2, 27));
1495*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif2_data_a,	TX2_A,			RX2_A);
1496*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif2_data_b,	RCAR_GP_PIN(0, 29),	RCAR_GP_PIN(0, 28));
1497*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif2_data_b,	TX2_B,			RX2_B);
1498*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif2_data_c,	RCAR_GP_PIN(4, 13),	RCAR_GP_PIN(4, 14));
1499*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif2_data_c,	TX2_C,			RX2_C);
1500*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif2_data_d,	RCAR_GP_PIN(4, 15),	RCAR_GP_PIN(4, 16));
1501*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif2_data_d,	TX2_D,			RX2_D);
1502*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif2_data_e,	RCAR_GP_PIN(0, 3),	RCAR_GP_PIN(0, 4));
1503*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif2_data_e,	TX2_E,			RX2_E);
1504*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif2_clk_a,	RCAR_GP_PIN(3, 9));
1505*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(scif2_clk_a,	SCK2_A);
1506*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif2_clk_b,	PIN_CS1_A26);
1507*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(scif2_clk_b,	SCK2_B);
1508*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif2_clk_c,	RCAR_GP_PIN(4, 12));
1509*077365a9SGeert Uytterhoeven SCIF_PFC_CLK(scif2_clk_c,	SCK2_C);
1510*077365a9SGeert Uytterhoeven 
1511*077365a9SGeert Uytterhoeven /* - SCIF3 ------------------------------------------------------------------ */
1512*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif3_data_a,	RCAR_GP_PIN(1, 10),	RCAR_GP_PIN(1, 9));
1513*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif3_data_a,	TX3_A,			RX3_A);
1514*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif3_data_b,	RCAR_GP_PIN(3, 28),	RCAR_GP_PIN(3, 27));
1515*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif3_data_b,	TX3_B,			RX3_B);
1516*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif3_data_c,	RCAR_GP_PIN(1, 3),	RCAR_GP_PIN(0, 31));
1517*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif3_data_c,	TX3_C,			RX3_C);
1518*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif3_data_d,	RCAR_GP_PIN(3, 30),	RCAR_GP_PIN(3, 29));
1519*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif3_data_d,	TX3_D,			RX3_D);
1520*077365a9SGeert Uytterhoeven 
1521*077365a9SGeert Uytterhoeven /* - SCIF4 ------------------------------------------------------------------ */
1522*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif4_data_a,	RCAR_GP_PIN(2, 5),	RCAR_GP_PIN(2, 4));
1523*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif4_data_a,	TX4_A,			RX4_A);
1524*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif4_data_b,	RCAR_GP_PIN(3, 26),	RCAR_GP_PIN(3, 25));
1525*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif4_data_b,	TX4_B,			RX4_B);
1526*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif4_data_c,	RCAR_GP_PIN(3, 0),	RCAR_GP_PIN(2, 31));
1527*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif4_data_c,	TX4_C,			RX4_C);
1528*077365a9SGeert Uytterhoeven 
1529*077365a9SGeert Uytterhoeven /* - SCIF5 ------------------------------------------------------------------ */
1530*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif5_data_a,	RCAR_GP_PIN(3, 17),	RCAR_GP_PIN(3, 18));
1531*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif5_data_a,	TX5_A,			RX5_A);
1532*077365a9SGeert Uytterhoeven SCIF_PFC_PIN(scif5_data_b,	RCAR_GP_PIN(1, 15),	RCAR_GP_PIN(1, 14));
1533*077365a9SGeert Uytterhoeven SCIF_PFC_DAT(scif5_data_b,	TX5_B,			RX5_B);
1534*077365a9SGeert Uytterhoeven 
1535*077365a9SGeert Uytterhoeven /* - SDHI macro ------------------------------------------------------------- */
1536*077365a9SGeert Uytterhoeven #define SDHI_PFC_PINS(name, args...)		SH_PFC_PINS(name, args)
1537*077365a9SGeert Uytterhoeven #define SDHI_PFC_DAT1(name, d0)			SH_PFC_MUX1(name, d0)
1538*077365a9SGeert Uytterhoeven #define SDHI_PFC_DAT4(name, d0, d1, d2, d3)	SH_PFC_MUX4(name, d0, d1, d2, d3)
1539*077365a9SGeert Uytterhoeven #define SDHI_PFC_CTRL(name, clk, cmd)		SH_PFC_MUX2(name, clk, cmd)
1540*077365a9SGeert Uytterhoeven #define SDHI_PFC_CDPN(name, cd)			SH_PFC_MUX1(name, cd)
1541*077365a9SGeert Uytterhoeven #define SDHI_PFC_WPPN(name, wp)			SH_PFC_MUX1(name, wp)
1542*077365a9SGeert Uytterhoeven 
1543*077365a9SGeert Uytterhoeven /* - SDHI0 ------------------------------------------------------------------ */
1544*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi0_cd,		RCAR_GP_PIN(3, 17));
1545*077365a9SGeert Uytterhoeven SDHI_PFC_CDPN(sdhi0_cd,		SD0_CD);
1546*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi0_ctrl,	RCAR_GP_PIN(3, 11),	RCAR_GP_PIN(3, 12));
1547*077365a9SGeert Uytterhoeven SDHI_PFC_CTRL(sdhi0_ctrl,	SD0_CLK,		SD0_CMD);
1548*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi0_data1,	RCAR_GP_PIN(3, 13));
1549*077365a9SGeert Uytterhoeven SDHI_PFC_DAT1(sdhi0_data1,	SD0_DAT0);
1550*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi0_data4,	RCAR_GP_PIN(3, 13),	RCAR_GP_PIN(3, 14),
1551*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(3, 15),	RCAR_GP_PIN(3, 16));
1552*077365a9SGeert Uytterhoeven SDHI_PFC_DAT4(sdhi0_data4,	SD0_DAT0,		SD0_DAT1,
1553*077365a9SGeert Uytterhoeven 				SD0_DAT2,		SD0_DAT3);
1554*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi0_wp,		RCAR_GP_PIN(3, 18));
1555*077365a9SGeert Uytterhoeven SDHI_PFC_WPPN(sdhi0_wp,		SD0_WP);
1556*077365a9SGeert Uytterhoeven 
1557*077365a9SGeert Uytterhoeven /* - SDHI1 ------------------------------------------------------------------ */
1558*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_cd_a,	RCAR_GP_PIN(0, 30));
1559*077365a9SGeert Uytterhoeven SDHI_PFC_CDPN(sdhi1_cd_a,	SD1_CD_A);
1560*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_cd_b,	RCAR_GP_PIN(2, 24));
1561*077365a9SGeert Uytterhoeven SDHI_PFC_CDPN(sdhi1_cd_b,	SD1_CD_B);
1562*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_ctrl_a,	RCAR_GP_PIN(1, 5),	RCAR_GP_PIN(1, 6));
1563*077365a9SGeert Uytterhoeven SDHI_PFC_CTRL(sdhi1_ctrl_a,	SD1_CLK_A,		SD1_CMD_A);
1564*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_ctrl_b,	RCAR_GP_PIN(1, 17),	RCAR_GP_PIN(1, 16));
1565*077365a9SGeert Uytterhoeven SDHI_PFC_CTRL(sdhi1_ctrl_b,	SD1_CLK_B,		SD1_CMD_B);
1566*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_data1_a,	RCAR_GP_PIN(1, 7));
1567*077365a9SGeert Uytterhoeven SDHI_PFC_DAT1(sdhi1_data1_a,	SD1_DAT0_A);
1568*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_data1_b,	RCAR_GP_PIN(1, 18));
1569*077365a9SGeert Uytterhoeven SDHI_PFC_DAT1(sdhi1_data1_b,	SD1_DAT0_B);
1570*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_data4_a,	RCAR_GP_PIN(1, 7),	RCAR_GP_PIN(1, 8),
1571*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(0, 5),	RCAR_GP_PIN(0, 6));
1572*077365a9SGeert Uytterhoeven SDHI_PFC_DAT4(sdhi1_data4_a,	SD1_DAT0_A,		SD1_DAT1_A,
1573*077365a9SGeert Uytterhoeven 				SD1_DAT2_A,		SD1_DAT3_A);
1574*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_data4_b,	RCAR_GP_PIN(1, 18),	RCAR_GP_PIN(1, 19),
1575*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(1, 20),	RCAR_GP_PIN(1, 21));
1576*077365a9SGeert Uytterhoeven SDHI_PFC_DAT4(sdhi1_data4_b,	SD1_DAT0_B,		SD1_DAT1_B,
1577*077365a9SGeert Uytterhoeven 				SD1_DAT2_B,		SD1_DAT3_B);
1578*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_wp_a,	RCAR_GP_PIN(0, 31));
1579*077365a9SGeert Uytterhoeven SDHI_PFC_WPPN(sdhi1_wp_a,	SD1_WP_A);
1580*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi1_wp_b,	RCAR_GP_PIN(2, 25));
1581*077365a9SGeert Uytterhoeven SDHI_PFC_WPPN(sdhi1_wp_b,	SD1_WP_B);
1582*077365a9SGeert Uytterhoeven 
1583*077365a9SGeert Uytterhoeven /* - SDH2 ------------------------------------------------------------------- */
1584*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_cd_a,	RCAR_GP_PIN(4, 23));
1585*077365a9SGeert Uytterhoeven SDHI_PFC_CDPN(sdhi2_cd_a,	SD2_CD_A);
1586*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_cd_b,	RCAR_GP_PIN(3, 27));
1587*077365a9SGeert Uytterhoeven SDHI_PFC_CDPN(sdhi2_cd_b,	SD2_CD_B);
1588*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_ctrl_a,	RCAR_GP_PIN(4, 17),	RCAR_GP_PIN(4, 18));
1589*077365a9SGeert Uytterhoeven SDHI_PFC_CTRL(sdhi2_ctrl_a,	SD2_CLK_A,		SD2_CMD_A);
1590*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_ctrl_b,	RCAR_GP_PIN(4, 5),	RCAR_GP_PIN(4, 6));
1591*077365a9SGeert Uytterhoeven SDHI_PFC_CTRL(sdhi2_ctrl_b,	SD2_CLK_B,		SD2_CMD_B);
1592*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_data1_a,	RCAR_GP_PIN(4, 19));
1593*077365a9SGeert Uytterhoeven SDHI_PFC_DAT1(sdhi2_data1_a,	SD2_DAT0_A);
1594*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_data1_b,	RCAR_GP_PIN(4, 7));
1595*077365a9SGeert Uytterhoeven SDHI_PFC_DAT1(sdhi2_data1_b,	SD2_DAT0_B);
1596*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_data4_a,	RCAR_GP_PIN(4, 19),	RCAR_GP_PIN(4, 20),
1597*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 21),	RCAR_GP_PIN(4, 22));
1598*077365a9SGeert Uytterhoeven SDHI_PFC_DAT4(sdhi2_data4_a,	SD2_DAT0_A,		SD2_DAT1_A,
1599*077365a9SGeert Uytterhoeven 				SD2_DAT2_A,		SD2_DAT3_A);
1600*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_data4_b,	RCAR_GP_PIN(4, 7),	RCAR_GP_PIN(4, 8),
1601*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(3, 25),	RCAR_GP_PIN(3, 26));
1602*077365a9SGeert Uytterhoeven SDHI_PFC_DAT4(sdhi2_data4_b,	SD2_DAT0_B,		SD2_DAT1_B,
1603*077365a9SGeert Uytterhoeven 				SD2_DAT2_B,		SD2_DAT3_B);
1604*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_wp_a,	RCAR_GP_PIN(4, 24));
1605*077365a9SGeert Uytterhoeven SDHI_PFC_WPPN(sdhi2_wp_a,	SD2_WP_A);
1606*077365a9SGeert Uytterhoeven SDHI_PFC_PINS(sdhi2_wp_b,	RCAR_GP_PIN(3, 28));
1607*077365a9SGeert Uytterhoeven SDHI_PFC_WPPN(sdhi2_wp_b,	SD2_WP_B);
1608*077365a9SGeert Uytterhoeven 
1609*077365a9SGeert Uytterhoeven /* - SSI macro -------------------------------------------------------------- */
1610*077365a9SGeert Uytterhoeven #define SSI_PFC_PINS(name, args...)		SH_PFC_PINS(name, args)
1611*077365a9SGeert Uytterhoeven #define SSI_PFC_CTRL(name, sck, ws)		SH_PFC_MUX2(name, sck, ws)
1612*077365a9SGeert Uytterhoeven #define SSI_PFC_DATA(name, d)			SH_PFC_MUX1(name, d)
1613*077365a9SGeert Uytterhoeven 
1614*077365a9SGeert Uytterhoeven /* - SSI 0/1/2 -------------------------------------------------------------- */
1615*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi012_ctrl,	RCAR_GP_PIN(3, 6),	RCAR_GP_PIN(3, 7));
1616*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi012_ctrl,	SSI_SCK012,		SSI_WS012);
1617*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi0_data,		RCAR_GP_PIN(3, 10));
1618*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi0_data,		SSI_SDATA0);
1619*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi1_a_ctrl,	RCAR_GP_PIN(2, 20),	RCAR_GP_PIN(2, 21));
1620*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi1_a_ctrl,	SSI_SCK1_A,		SSI_WS1_A);
1621*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi1_b_ctrl,	PIN_CS1_A26,		RCAR_GP_PIN(1, 3));
1622*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi1_b_ctrl,	SSI_SCK1_B,		SSI_WS1_B);
1623*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi1_data,		RCAR_GP_PIN(3, 9));
1624*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi1_data,		SSI_SDATA1);
1625*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi2_a_ctrl,	RCAR_GP_PIN(2, 26),	RCAR_GP_PIN(3, 4));
1626*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi2_a_ctrl,	SSI_SCK2_A,		SSI_WS2_A);
1627*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi2_b_ctrl,	RCAR_GP_PIN(2, 6),	RCAR_GP_PIN(2, 17));
1628*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi2_b_ctrl,	SSI_SCK2_B,		SSI_WS2_B);
1629*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi2_data,		RCAR_GP_PIN(3, 8));
1630*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi2_data,		SSI_SDATA2);
1631*077365a9SGeert Uytterhoeven 
1632*077365a9SGeert Uytterhoeven /* - SSI 3/4 ---------------------------------------------------------------- */
1633*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi34_ctrl,	RCAR_GP_PIN(3, 2),	RCAR_GP_PIN(3, 3));
1634*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi34_ctrl,	SSI_SCK34,		SSI_WS34);
1635*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi3_data,		RCAR_GP_PIN(3, 5));
1636*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi3_data,		SSI_SDATA3);
1637*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi4_ctrl,		RCAR_GP_PIN(1, 22),     RCAR_GP_PIN(1, 23));
1638*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi4_ctrl,		SSI_SCK4,               SSI_WS4);
1639*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi4_data,		RCAR_GP_PIN(3, 4));
1640*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi4_data,		SSI_SDATA4);
1641*077365a9SGeert Uytterhoeven 
1642*077365a9SGeert Uytterhoeven /* - SSI 5 ------------------------------------------------------------------ */
1643*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi5_ctrl,		RCAR_GP_PIN(2, 31),	RCAR_GP_PIN(3, 0));
1644*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi5_ctrl,		SSI_SCK5,		SSI_WS5);
1645*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi5_data,		RCAR_GP_PIN(3, 1));
1646*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi5_data,		SSI_SDATA5);
1647*077365a9SGeert Uytterhoeven 
1648*077365a9SGeert Uytterhoeven /* - SSI 6 ------------------------------------------------------------------ */
1649*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi6_ctrl,		RCAR_GP_PIN(2, 28),	RCAR_GP_PIN(2, 29));
1650*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi6_ctrl,		SSI_SCK6,		SSI_WS6);
1651*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi6_data,		RCAR_GP_PIN(2, 30));
1652*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi6_data,		SSI_SDATA6);
1653*077365a9SGeert Uytterhoeven 
1654*077365a9SGeert Uytterhoeven /* - SSI 7/8  --------------------------------------------------------------- */
1655*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi78_ctrl,	RCAR_GP_PIN(2, 24),	RCAR_GP_PIN(2, 25));
1656*077365a9SGeert Uytterhoeven SSI_PFC_CTRL(ssi78_ctrl,	SSI_SCK78,		SSI_WS78);
1657*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi7_data,		RCAR_GP_PIN(2, 27));
1658*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi7_data,		SSI_SDATA7);
1659*077365a9SGeert Uytterhoeven SSI_PFC_PINS(ssi8_data,		RCAR_GP_PIN(2, 26));
1660*077365a9SGeert Uytterhoeven SSI_PFC_DATA(ssi8_data,		SSI_SDATA8);
1661*077365a9SGeert Uytterhoeven 
1662*077365a9SGeert Uytterhoeven /* - USB0 ------------------------------------------------------------------- */
1663*077365a9SGeert Uytterhoeven SH_PFC_PINS(usb0,		RCAR_GP_PIN(0, 1));
1664*077365a9SGeert Uytterhoeven SH_PFC_MUX1(usb0,		PENC0);
1665*077365a9SGeert Uytterhoeven SH_PFC_PINS(usb0_ovc,		RCAR_GP_PIN(0, 3));
1666*077365a9SGeert Uytterhoeven SH_PFC_MUX1(usb0_ovc,		USB_OVC0);
1667*077365a9SGeert Uytterhoeven 
1668*077365a9SGeert Uytterhoeven /* - USB1 ------------------------------------------------------------------- */
1669*077365a9SGeert Uytterhoeven SH_PFC_PINS(usb1,		RCAR_GP_PIN(0, 2));
1670*077365a9SGeert Uytterhoeven SH_PFC_MUX1(usb1,		PENC1);
1671*077365a9SGeert Uytterhoeven SH_PFC_PINS(usb1_ovc,		RCAR_GP_PIN(0, 4));
1672*077365a9SGeert Uytterhoeven SH_PFC_MUX1(usb1_ovc,		USB_OVC1);
1673*077365a9SGeert Uytterhoeven 
1674*077365a9SGeert Uytterhoeven /* - VIN macros ------------------------------------------------------------- */
1675*077365a9SGeert Uytterhoeven #define VIN_PFC_PINS(name, args...)		SH_PFC_PINS(name, args)
1676*077365a9SGeert Uytterhoeven #define VIN_PFC_DAT8(name, d0, d1, d2, d3, d4, d5, d6, d7)	\
1677*077365a9SGeert Uytterhoeven 	SH_PFC_MUX8(name, d0, d1, d2, d3, d4, d5, d6, d7)
1678*077365a9SGeert Uytterhoeven #define VIN_PFC_CLK(name, clk)			SH_PFC_MUX1(name, clk)
1679*077365a9SGeert Uytterhoeven #define VIN_PFC_SYNC(name, hsync, vsync)	SH_PFC_MUX2(name, hsync, vsync)
1680*077365a9SGeert Uytterhoeven 
1681*077365a9SGeert Uytterhoeven /* - VIN0 ------------------------------------------------------------------- */
1682*077365a9SGeert Uytterhoeven VIN_PFC_PINS(vin0_data8,	RCAR_GP_PIN(3, 29),	RCAR_GP_PIN(3, 30),
1683*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(3, 31),	RCAR_GP_PIN(4, 0),
1684*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 1),	RCAR_GP_PIN(4, 2),
1685*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 3),	RCAR_GP_PIN(4, 4));
1686*077365a9SGeert Uytterhoeven VIN_PFC_DAT8(vin0_data8,	VI0_DATA0_VI0_B0,	VI0_DATA1_VI0_B1,
1687*077365a9SGeert Uytterhoeven 				VI0_DATA2_VI0_B2,	VI0_DATA3_VI0_B3,
1688*077365a9SGeert Uytterhoeven 				VI0_DATA4_VI0_B4,	VI0_DATA5_VI0_B5,
1689*077365a9SGeert Uytterhoeven 				VI0_DATA6_VI0_G0,	VI0_DATA7_VI0_G1);
1690*077365a9SGeert Uytterhoeven VIN_PFC_PINS(vin0_clk,		RCAR_GP_PIN(3, 24));
1691*077365a9SGeert Uytterhoeven VIN_PFC_CLK(vin0_clk,		VI0_CLK);
1692*077365a9SGeert Uytterhoeven VIN_PFC_PINS(vin0_sync,		RCAR_GP_PIN(3, 27),	RCAR_GP_PIN(3, 28));
1693*077365a9SGeert Uytterhoeven VIN_PFC_SYNC(vin0_sync,		VI0_HSYNC,		VI0_VSYNC);
1694*077365a9SGeert Uytterhoeven /* - VIN1 ------------------------------------------------------------------- */
1695*077365a9SGeert Uytterhoeven VIN_PFC_PINS(vin1_data8,	RCAR_GP_PIN(3, 25),	RCAR_GP_PIN(3, 26),
1696*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(3, 27),	RCAR_GP_PIN(3, 28),
1697*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 5),	RCAR_GP_PIN(4, 6),
1698*077365a9SGeert Uytterhoeven 				RCAR_GP_PIN(4, 7),	RCAR_GP_PIN(4, 8));
1699*077365a9SGeert Uytterhoeven VIN_PFC_DAT8(vin1_data8,	VI1_DATA0,		VI1_DATA1,
1700*077365a9SGeert Uytterhoeven 				VI1_DATA2,		VI1_DATA3,
1701*077365a9SGeert Uytterhoeven 				VI1_DATA4,		VI1_DATA5,
1702*077365a9SGeert Uytterhoeven 				VI1_DATA6,		VI1_DATA7);
1703*077365a9SGeert Uytterhoeven VIN_PFC_PINS(vin1_clk,		RCAR_GP_PIN(4, 9));
1704*077365a9SGeert Uytterhoeven VIN_PFC_CLK(vin1_clk,		VI1_CLK);
1705*077365a9SGeert Uytterhoeven VIN_PFC_PINS(vin1_sync,		RCAR_GP_PIN(3, 21),	RCAR_GP_PIN(3, 22));
1706*077365a9SGeert Uytterhoeven VIN_PFC_SYNC(vin1_sync,		VI1_HSYNC,		VI1_VSYNC);
1707*077365a9SGeert Uytterhoeven 
1708*077365a9SGeert Uytterhoeven static const struct sh_pfc_pin_group pinmux_groups[] = {
1709*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(audio_clk_a),
1710*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(audio_clk_b),
1711*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(audio_clk_c),
1712*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(audio_clkout_a),
1713*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(audio_clkout_b),
1714*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(can0_data_a),
1715*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(can0_data_b),
1716*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(can1_data_a),
1717*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(can1_data_b),
1718*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(can_clk_a),
1719*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(can_clk_b),
1720*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(can_clk_c),
1721*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(can_clk_d),
1722*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ether_rmii),
1723*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ether_link),
1724*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ether_magic),
1725*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif0_data_a),
1726*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif0_data_b),
1727*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif0_ctrl_a),
1728*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif0_ctrl_b),
1729*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif0_clk),
1730*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif1_data_a),
1731*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif1_data_b),
1732*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif1_ctrl_a),
1733*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif1_ctrl_b),
1734*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif1_clk_a),
1735*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hscif1_clk_b),
1736*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hspi0_a),
1737*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hspi0_b),
1738*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hspi1_a),
1739*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hspi1_b),
1740*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hspi2_a),
1741*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(hspi2_b),
1742*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(i2c1_a),
1743*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(i2c1_b),
1744*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(i2c2_a),
1745*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(i2c2_b),
1746*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(i2c2_c),
1747*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(i2c3_a),
1748*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(i2c3_b),
1749*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(i2c3_c),
1750*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(mmc_ctrl),
1751*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(mmc_data1),
1752*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(mmc_data4),
1753*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(mmc_data8),
1754*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif_clk),
1755*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif0_data_a),
1756*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif0_data_b),
1757*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif0_data_c),
1758*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif0_data_d),
1759*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif0_ctrl),
1760*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif0_clk),
1761*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif1_data_a),
1762*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif1_data_b),
1763*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif1_data_c),
1764*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif1_data_d),
1765*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif1_ctrl_a),
1766*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif1_ctrl_c),
1767*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif1_clk_a),
1768*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif1_clk_c),
1769*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif2_data_a),
1770*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif2_data_b),
1771*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif2_data_c),
1772*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif2_data_d),
1773*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif2_data_e),
1774*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif2_clk_a),
1775*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif2_clk_b),
1776*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif2_clk_c),
1777*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif3_data_a),
1778*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif3_data_b),
1779*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif3_data_c),
1780*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif3_data_d),
1781*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif4_data_a),
1782*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif4_data_b),
1783*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif4_data_c),
1784*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif5_data_a),
1785*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(scif5_data_b),
1786*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi0_cd),
1787*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi0_ctrl),
1788*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi0_data1),
1789*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi0_data4),
1790*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi0_wp),
1791*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_cd_a),
1792*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_cd_b),
1793*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_ctrl_a),
1794*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_ctrl_b),
1795*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_data1_a),
1796*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_data1_b),
1797*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_data4_a),
1798*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_data4_b),
1799*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_wp_a),
1800*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi1_wp_b),
1801*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_cd_a),
1802*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_cd_b),
1803*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_ctrl_a),
1804*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_ctrl_b),
1805*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_data1_a),
1806*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_data1_b),
1807*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_data4_a),
1808*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_data4_b),
1809*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_wp_a),
1810*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(sdhi2_wp_b),
1811*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi012_ctrl),
1812*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi0_data),
1813*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi1_a_ctrl),
1814*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi1_b_ctrl),
1815*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi1_data),
1816*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi2_a_ctrl),
1817*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi2_b_ctrl),
1818*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi2_data),
1819*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi34_ctrl),
1820*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi3_data),
1821*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi4_ctrl),
1822*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi4_data),
1823*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi5_ctrl),
1824*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi5_data),
1825*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi6_ctrl),
1826*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi6_data),
1827*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi78_ctrl),
1828*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi7_data),
1829*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(ssi8_data),
1830*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(usb0),
1831*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(usb0_ovc),
1832*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(usb1),
1833*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(usb1_ovc),
1834*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(vin0_data8),
1835*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(vin0_clk),
1836*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(vin0_sync),
1837*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(vin1_data8),
1838*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(vin1_clk),
1839*077365a9SGeert Uytterhoeven 	SH_PFC_PIN_GROUP(vin1_sync),
1840*077365a9SGeert Uytterhoeven };
1841*077365a9SGeert Uytterhoeven 
1842*077365a9SGeert Uytterhoeven static const char * const audio_clk_groups[] = {
1843*077365a9SGeert Uytterhoeven 	"audio_clk_a",
1844*077365a9SGeert Uytterhoeven 	"audio_clk_b",
1845*077365a9SGeert Uytterhoeven 	"audio_clk_c",
1846*077365a9SGeert Uytterhoeven 	"audio_clkout_a",
1847*077365a9SGeert Uytterhoeven 	"audio_clkout_b",
1848*077365a9SGeert Uytterhoeven };
1849*077365a9SGeert Uytterhoeven 
1850*077365a9SGeert Uytterhoeven static const char * const can0_groups[] = {
1851*077365a9SGeert Uytterhoeven 	"can0_data_a",
1852*077365a9SGeert Uytterhoeven 	"can0_data_b",
1853*077365a9SGeert Uytterhoeven 	"can_clk_a",
1854*077365a9SGeert Uytterhoeven 	"can_clk_b",
1855*077365a9SGeert Uytterhoeven 	"can_clk_c",
1856*077365a9SGeert Uytterhoeven 	"can_clk_d",
1857*077365a9SGeert Uytterhoeven };
1858*077365a9SGeert Uytterhoeven 
1859*077365a9SGeert Uytterhoeven static const char * const can1_groups[] = {
1860*077365a9SGeert Uytterhoeven 	"can1_data_a",
1861*077365a9SGeert Uytterhoeven 	"can1_data_b",
1862*077365a9SGeert Uytterhoeven 	"can_clk_a",
1863*077365a9SGeert Uytterhoeven 	"can_clk_b",
1864*077365a9SGeert Uytterhoeven 	"can_clk_c",
1865*077365a9SGeert Uytterhoeven 	"can_clk_d",
1866*077365a9SGeert Uytterhoeven };
1867*077365a9SGeert Uytterhoeven 
1868*077365a9SGeert Uytterhoeven static const char * const ether_groups[] = {
1869*077365a9SGeert Uytterhoeven 	"ether_rmii",
1870*077365a9SGeert Uytterhoeven 	"ether_link",
1871*077365a9SGeert Uytterhoeven 	"ether_magic",
1872*077365a9SGeert Uytterhoeven };
1873*077365a9SGeert Uytterhoeven 
1874*077365a9SGeert Uytterhoeven static const char * const hscif0_groups[] = {
1875*077365a9SGeert Uytterhoeven 	"hscif0_data_a",
1876*077365a9SGeert Uytterhoeven 	"hscif0_data_b",
1877*077365a9SGeert Uytterhoeven 	"hscif0_ctrl_a",
1878*077365a9SGeert Uytterhoeven 	"hscif0_ctrl_b",
1879*077365a9SGeert Uytterhoeven 	"hscif0_clk",
1880*077365a9SGeert Uytterhoeven };
1881*077365a9SGeert Uytterhoeven 
1882*077365a9SGeert Uytterhoeven static const char * const hscif1_groups[] = {
1883*077365a9SGeert Uytterhoeven 	"hscif1_data_a",
1884*077365a9SGeert Uytterhoeven 	"hscif1_data_b",
1885*077365a9SGeert Uytterhoeven 	"hscif1_ctrl_a",
1886*077365a9SGeert Uytterhoeven 	"hscif1_ctrl_b",
1887*077365a9SGeert Uytterhoeven 	"hscif1_clk_a",
1888*077365a9SGeert Uytterhoeven 	"hscif1_clk_b",
1889*077365a9SGeert Uytterhoeven };
1890*077365a9SGeert Uytterhoeven 
1891*077365a9SGeert Uytterhoeven static const char * const hspi0_groups[] = {
1892*077365a9SGeert Uytterhoeven 	"hspi0_a",
1893*077365a9SGeert Uytterhoeven 	"hspi0_b",
1894*077365a9SGeert Uytterhoeven };
1895*077365a9SGeert Uytterhoeven 
1896*077365a9SGeert Uytterhoeven static const char * const hspi1_groups[] = {
1897*077365a9SGeert Uytterhoeven 	"hspi1_a",
1898*077365a9SGeert Uytterhoeven 	"hspi1_b",
1899*077365a9SGeert Uytterhoeven };
1900*077365a9SGeert Uytterhoeven 
1901*077365a9SGeert Uytterhoeven static const char * const hspi2_groups[] = {
1902*077365a9SGeert Uytterhoeven 	"hspi2_a",
1903*077365a9SGeert Uytterhoeven 	"hspi2_b",
1904*077365a9SGeert Uytterhoeven };
1905*077365a9SGeert Uytterhoeven 
1906*077365a9SGeert Uytterhoeven static const char * const i2c1_groups[] = {
1907*077365a9SGeert Uytterhoeven 	"i2c1_a",
1908*077365a9SGeert Uytterhoeven 	"i2c1_b",
1909*077365a9SGeert Uytterhoeven };
1910*077365a9SGeert Uytterhoeven 
1911*077365a9SGeert Uytterhoeven static const char * const i2c2_groups[] = {
1912*077365a9SGeert Uytterhoeven 	"i2c2_a",
1913*077365a9SGeert Uytterhoeven 	"i2c2_b",
1914*077365a9SGeert Uytterhoeven 	"i2c2_c",
1915*077365a9SGeert Uytterhoeven };
1916*077365a9SGeert Uytterhoeven 
1917*077365a9SGeert Uytterhoeven static const char * const i2c3_groups[] = {
1918*077365a9SGeert Uytterhoeven 	"i2c3_a",
1919*077365a9SGeert Uytterhoeven 	"i2c3_b",
1920*077365a9SGeert Uytterhoeven 	"i2c3_c",
1921*077365a9SGeert Uytterhoeven };
1922*077365a9SGeert Uytterhoeven 
1923*077365a9SGeert Uytterhoeven static const char * const mmc_groups[] = {
1924*077365a9SGeert Uytterhoeven 	"mmc_ctrl",
1925*077365a9SGeert Uytterhoeven 	"mmc_data1",
1926*077365a9SGeert Uytterhoeven 	"mmc_data4",
1927*077365a9SGeert Uytterhoeven 	"mmc_data8",
1928*077365a9SGeert Uytterhoeven };
1929*077365a9SGeert Uytterhoeven 
1930*077365a9SGeert Uytterhoeven static const char * const scif_clk_groups[] = {
1931*077365a9SGeert Uytterhoeven 	"scif_clk",
1932*077365a9SGeert Uytterhoeven };
1933*077365a9SGeert Uytterhoeven 
1934*077365a9SGeert Uytterhoeven static const char * const scif0_groups[] = {
1935*077365a9SGeert Uytterhoeven 	"scif0_data_a",
1936*077365a9SGeert Uytterhoeven 	"scif0_data_b",
1937*077365a9SGeert Uytterhoeven 	"scif0_data_c",
1938*077365a9SGeert Uytterhoeven 	"scif0_data_d",
1939*077365a9SGeert Uytterhoeven 	"scif0_ctrl",
1940*077365a9SGeert Uytterhoeven 	"scif0_clk",
1941*077365a9SGeert Uytterhoeven };
1942*077365a9SGeert Uytterhoeven 
1943*077365a9SGeert Uytterhoeven static const char * const scif1_groups[] = {
1944*077365a9SGeert Uytterhoeven 	"scif1_data_a",
1945*077365a9SGeert Uytterhoeven 	"scif1_data_b",
1946*077365a9SGeert Uytterhoeven 	"scif1_data_c",
1947*077365a9SGeert Uytterhoeven 	"scif1_data_d",
1948*077365a9SGeert Uytterhoeven 	"scif1_ctrl_a",
1949*077365a9SGeert Uytterhoeven 	"scif1_ctrl_c",
1950*077365a9SGeert Uytterhoeven 	"scif1_clk_a",
1951*077365a9SGeert Uytterhoeven 	"scif1_clk_c",
1952*077365a9SGeert Uytterhoeven };
1953*077365a9SGeert Uytterhoeven 
1954*077365a9SGeert Uytterhoeven static const char * const scif2_groups[] = {
1955*077365a9SGeert Uytterhoeven 	"scif2_data_a",
1956*077365a9SGeert Uytterhoeven 	"scif2_data_b",
1957*077365a9SGeert Uytterhoeven 	"scif2_data_c",
1958*077365a9SGeert Uytterhoeven 	"scif2_data_d",
1959*077365a9SGeert Uytterhoeven 	"scif2_data_e",
1960*077365a9SGeert Uytterhoeven 	"scif2_clk_a",
1961*077365a9SGeert Uytterhoeven 	"scif2_clk_b",
1962*077365a9SGeert Uytterhoeven 	"scif2_clk_c",
1963*077365a9SGeert Uytterhoeven };
1964*077365a9SGeert Uytterhoeven 
1965*077365a9SGeert Uytterhoeven static const char * const scif3_groups[] = {
1966*077365a9SGeert Uytterhoeven 	"scif3_data_a",
1967*077365a9SGeert Uytterhoeven 	"scif3_data_b",
1968*077365a9SGeert Uytterhoeven 	"scif3_data_c",
1969*077365a9SGeert Uytterhoeven 	"scif3_data_d",
1970*077365a9SGeert Uytterhoeven };
1971*077365a9SGeert Uytterhoeven 
1972*077365a9SGeert Uytterhoeven static const char * const scif4_groups[] = {
1973*077365a9SGeert Uytterhoeven 	"scif4_data_a",
1974*077365a9SGeert Uytterhoeven 	"scif4_data_b",
1975*077365a9SGeert Uytterhoeven 	"scif4_data_c",
1976*077365a9SGeert Uytterhoeven };
1977*077365a9SGeert Uytterhoeven 
1978*077365a9SGeert Uytterhoeven static const char * const scif5_groups[] = {
1979*077365a9SGeert Uytterhoeven 	"scif5_data_a",
1980*077365a9SGeert Uytterhoeven 	"scif5_data_b",
1981*077365a9SGeert Uytterhoeven };
1982*077365a9SGeert Uytterhoeven 
1983*077365a9SGeert Uytterhoeven 
1984*077365a9SGeert Uytterhoeven static const char * const sdhi0_groups[] = {
1985*077365a9SGeert Uytterhoeven 	"sdhi0_cd",
1986*077365a9SGeert Uytterhoeven 	"sdhi0_ctrl",
1987*077365a9SGeert Uytterhoeven 	"sdhi0_data1",
1988*077365a9SGeert Uytterhoeven 	"sdhi0_data4",
1989*077365a9SGeert Uytterhoeven 	"sdhi0_wp",
1990*077365a9SGeert Uytterhoeven };
1991*077365a9SGeert Uytterhoeven 
1992*077365a9SGeert Uytterhoeven static const char * const sdhi1_groups[] = {
1993*077365a9SGeert Uytterhoeven 	"sdhi1_cd_a",
1994*077365a9SGeert Uytterhoeven 	"sdhi1_cd_b",
1995*077365a9SGeert Uytterhoeven 	"sdhi1_ctrl_a",
1996*077365a9SGeert Uytterhoeven 	"sdhi1_ctrl_b",
1997*077365a9SGeert Uytterhoeven 	"sdhi1_data1_a",
1998*077365a9SGeert Uytterhoeven 	"sdhi1_data1_b",
1999*077365a9SGeert Uytterhoeven 	"sdhi1_data4_a",
2000*077365a9SGeert Uytterhoeven 	"sdhi1_data4_b",
2001*077365a9SGeert Uytterhoeven 	"sdhi1_wp_a",
2002*077365a9SGeert Uytterhoeven 	"sdhi1_wp_b",
2003*077365a9SGeert Uytterhoeven };
2004*077365a9SGeert Uytterhoeven 
2005*077365a9SGeert Uytterhoeven static const char * const sdhi2_groups[] = {
2006*077365a9SGeert Uytterhoeven 	"sdhi2_cd_a",
2007*077365a9SGeert Uytterhoeven 	"sdhi2_cd_b",
2008*077365a9SGeert Uytterhoeven 	"sdhi2_ctrl_a",
2009*077365a9SGeert Uytterhoeven 	"sdhi2_ctrl_b",
2010*077365a9SGeert Uytterhoeven 	"sdhi2_data1_a",
2011*077365a9SGeert Uytterhoeven 	"sdhi2_data1_b",
2012*077365a9SGeert Uytterhoeven 	"sdhi2_data4_a",
2013*077365a9SGeert Uytterhoeven 	"sdhi2_data4_b",
2014*077365a9SGeert Uytterhoeven 	"sdhi2_wp_a",
2015*077365a9SGeert Uytterhoeven 	"sdhi2_wp_b",
2016*077365a9SGeert Uytterhoeven };
2017*077365a9SGeert Uytterhoeven 
2018*077365a9SGeert Uytterhoeven static const char * const ssi_groups[] = {
2019*077365a9SGeert Uytterhoeven 	"ssi012_ctrl",
2020*077365a9SGeert Uytterhoeven 	"ssi0_data",
2021*077365a9SGeert Uytterhoeven 	"ssi1_a_ctrl",
2022*077365a9SGeert Uytterhoeven 	"ssi1_b_ctrl",
2023*077365a9SGeert Uytterhoeven 	"ssi1_data",
2024*077365a9SGeert Uytterhoeven 	"ssi2_a_ctrl",
2025*077365a9SGeert Uytterhoeven 	"ssi2_b_ctrl",
2026*077365a9SGeert Uytterhoeven 	"ssi2_data",
2027*077365a9SGeert Uytterhoeven 	"ssi34_ctrl",
2028*077365a9SGeert Uytterhoeven 	"ssi3_data",
2029*077365a9SGeert Uytterhoeven 	"ssi4_ctrl",
2030*077365a9SGeert Uytterhoeven 	"ssi4_data",
2031*077365a9SGeert Uytterhoeven 	"ssi5_ctrl",
2032*077365a9SGeert Uytterhoeven 	"ssi5_data",
2033*077365a9SGeert Uytterhoeven 	"ssi6_ctrl",
2034*077365a9SGeert Uytterhoeven 	"ssi6_data",
2035*077365a9SGeert Uytterhoeven 	"ssi78_ctrl",
2036*077365a9SGeert Uytterhoeven 	"ssi7_data",
2037*077365a9SGeert Uytterhoeven 	"ssi8_data",
2038*077365a9SGeert Uytterhoeven };
2039*077365a9SGeert Uytterhoeven 
2040*077365a9SGeert Uytterhoeven static const char * const usb0_groups[] = {
2041*077365a9SGeert Uytterhoeven 	"usb0",
2042*077365a9SGeert Uytterhoeven 	"usb0_ovc",
2043*077365a9SGeert Uytterhoeven };
2044*077365a9SGeert Uytterhoeven 
2045*077365a9SGeert Uytterhoeven static const char * const usb1_groups[] = {
2046*077365a9SGeert Uytterhoeven 	"usb1",
2047*077365a9SGeert Uytterhoeven 	"usb1_ovc",
2048*077365a9SGeert Uytterhoeven };
2049*077365a9SGeert Uytterhoeven 
2050*077365a9SGeert Uytterhoeven static const char * const vin0_groups[] = {
2051*077365a9SGeert Uytterhoeven 	"vin0_data8",
2052*077365a9SGeert Uytterhoeven 	"vin0_clk",
2053*077365a9SGeert Uytterhoeven 	"vin0_sync",
2054*077365a9SGeert Uytterhoeven };
2055*077365a9SGeert Uytterhoeven 
2056*077365a9SGeert Uytterhoeven static const char * const vin1_groups[] = {
2057*077365a9SGeert Uytterhoeven 	"vin1_data8",
2058*077365a9SGeert Uytterhoeven 	"vin1_clk",
2059*077365a9SGeert Uytterhoeven 	"vin1_sync",
2060*077365a9SGeert Uytterhoeven };
2061*077365a9SGeert Uytterhoeven 
2062*077365a9SGeert Uytterhoeven static const struct sh_pfc_function pinmux_functions[] = {
2063*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(audio_clk),
2064*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(can0),
2065*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(can1),
2066*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(ether),
2067*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(hscif0),
2068*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(hscif1),
2069*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(hspi0),
2070*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(hspi1),
2071*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(hspi2),
2072*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(i2c1),
2073*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(i2c2),
2074*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(i2c3),
2075*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(mmc),
2076*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(scif_clk),
2077*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(scif0),
2078*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(scif1),
2079*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(scif2),
2080*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(scif3),
2081*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(scif4),
2082*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(scif5),
2083*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(sdhi0),
2084*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(sdhi1),
2085*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(sdhi2),
2086*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(ssi),
2087*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(usb0),
2088*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(usb1),
2089*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(vin0),
2090*077365a9SGeert Uytterhoeven 	SH_PFC_FUNCTION(vin1),
2091*077365a9SGeert Uytterhoeven };
2092*077365a9SGeert Uytterhoeven 
2093*077365a9SGeert Uytterhoeven static const struct pinmux_cfg_reg pinmux_config_regs[] = {
2094*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG("GPSR0", 0xfffc0004, 32, 1, GROUP(
2095*077365a9SGeert Uytterhoeven 		GP_0_31_FN,	FN_IP1_14_11,
2096*077365a9SGeert Uytterhoeven 		GP_0_30_FN,	FN_IP1_10_8,
2097*077365a9SGeert Uytterhoeven 		GP_0_29_FN,	FN_IP1_7_5,
2098*077365a9SGeert Uytterhoeven 		GP_0_28_FN,	FN_IP1_4_2,
2099*077365a9SGeert Uytterhoeven 		GP_0_27_FN,	FN_IP1_1,
2100*077365a9SGeert Uytterhoeven 		GP_0_26_FN,	FN_IP1_0,
2101*077365a9SGeert Uytterhoeven 		GP_0_25_FN,	FN_IP0_30,
2102*077365a9SGeert Uytterhoeven 		GP_0_24_FN,	FN_IP0_29,
2103*077365a9SGeert Uytterhoeven 		GP_0_23_FN,	FN_IP0_28,
2104*077365a9SGeert Uytterhoeven 		GP_0_22_FN,	FN_IP0_27,
2105*077365a9SGeert Uytterhoeven 		GP_0_21_FN,	FN_IP0_26,
2106*077365a9SGeert Uytterhoeven 		GP_0_20_FN,	FN_IP0_25,
2107*077365a9SGeert Uytterhoeven 		GP_0_19_FN,	FN_IP0_24,
2108*077365a9SGeert Uytterhoeven 		GP_0_18_FN,	FN_IP0_23,
2109*077365a9SGeert Uytterhoeven 		GP_0_17_FN,	FN_IP0_22,
2110*077365a9SGeert Uytterhoeven 		GP_0_16_FN,	FN_IP0_21,
2111*077365a9SGeert Uytterhoeven 		GP_0_15_FN,	FN_IP0_20,
2112*077365a9SGeert Uytterhoeven 		GP_0_14_FN,	FN_IP0_19,
2113*077365a9SGeert Uytterhoeven 		GP_0_13_FN,	FN_IP0_18,
2114*077365a9SGeert Uytterhoeven 		GP_0_12_FN,	FN_IP0_17,
2115*077365a9SGeert Uytterhoeven 		GP_0_11_FN,	FN_IP0_16,
2116*077365a9SGeert Uytterhoeven 		GP_0_10_FN,	FN_IP0_15,
2117*077365a9SGeert Uytterhoeven 		GP_0_9_FN,	FN_A3,
2118*077365a9SGeert Uytterhoeven 		GP_0_8_FN,	FN_A2,
2119*077365a9SGeert Uytterhoeven 		GP_0_7_FN,	FN_A1,
2120*077365a9SGeert Uytterhoeven 		GP_0_6_FN,	FN_IP0_14_12,
2121*077365a9SGeert Uytterhoeven 		GP_0_5_FN,	FN_IP0_11_8,
2122*077365a9SGeert Uytterhoeven 		GP_0_4_FN,	FN_IP0_7_5,
2123*077365a9SGeert Uytterhoeven 		GP_0_3_FN,	FN_IP0_4_2,
2124*077365a9SGeert Uytterhoeven 		GP_0_2_FN,	FN_PENC1,
2125*077365a9SGeert Uytterhoeven 		GP_0_1_FN,	FN_PENC0,
2126*077365a9SGeert Uytterhoeven 		GP_0_0_FN,	FN_IP0_1_0 ))
2127*077365a9SGeert Uytterhoeven 	},
2128*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG("GPSR1", 0xfffc0008, 32, 1, GROUP(
2129*077365a9SGeert Uytterhoeven 		GP_1_31_FN,	FN_IP4_6_4,
2130*077365a9SGeert Uytterhoeven 		GP_1_30_FN,	FN_IP4_3_1,
2131*077365a9SGeert Uytterhoeven 		GP_1_29_FN,	FN_IP4_0,
2132*077365a9SGeert Uytterhoeven 		GP_1_28_FN,	FN_IP3_31,
2133*077365a9SGeert Uytterhoeven 		GP_1_27_FN,	FN_IP3_30,
2134*077365a9SGeert Uytterhoeven 		GP_1_26_FN,	FN_IP3_29,
2135*077365a9SGeert Uytterhoeven 		GP_1_25_FN,	FN_IP3_28,
2136*077365a9SGeert Uytterhoeven 		GP_1_24_FN,	FN_IP3_27,
2137*077365a9SGeert Uytterhoeven 		GP_1_23_FN,	FN_IP3_26_24,
2138*077365a9SGeert Uytterhoeven 		GP_1_22_FN,	FN_IP3_23_21,
2139*077365a9SGeert Uytterhoeven 		GP_1_21_FN,	FN_IP3_20_19,
2140*077365a9SGeert Uytterhoeven 		GP_1_20_FN,	FN_IP3_18_16,
2141*077365a9SGeert Uytterhoeven 		GP_1_19_FN,	FN_IP3_15_13,
2142*077365a9SGeert Uytterhoeven 		GP_1_18_FN,	FN_IP3_12_10,
2143*077365a9SGeert Uytterhoeven 		GP_1_17_FN,	FN_IP3_9_8,
2144*077365a9SGeert Uytterhoeven 		GP_1_16_FN,	FN_IP3_7_5,
2145*077365a9SGeert Uytterhoeven 		GP_1_15_FN,	FN_IP3_4_2,
2146*077365a9SGeert Uytterhoeven 		GP_1_14_FN,	FN_IP3_1_0,
2147*077365a9SGeert Uytterhoeven 		GP_1_13_FN,	FN_IP2_31,
2148*077365a9SGeert Uytterhoeven 		GP_1_12_FN,	FN_IP2_30,
2149*077365a9SGeert Uytterhoeven 		GP_1_11_FN,	FN_IP2_17,
2150*077365a9SGeert Uytterhoeven 		GP_1_10_FN,	FN_IP2_16_14,
2151*077365a9SGeert Uytterhoeven 		GP_1_9_FN,	FN_IP2_13_12,
2152*077365a9SGeert Uytterhoeven 		GP_1_8_FN,	FN_IP2_11_9,
2153*077365a9SGeert Uytterhoeven 		GP_1_7_FN,	FN_IP2_8_6,
2154*077365a9SGeert Uytterhoeven 		GP_1_6_FN,	FN_IP2_5_3,
2155*077365a9SGeert Uytterhoeven 		GP_1_5_FN,	FN_IP2_2_0,
2156*077365a9SGeert Uytterhoeven 		GP_1_4_FN,	FN_IP1_29_28,
2157*077365a9SGeert Uytterhoeven 		GP_1_3_FN,	FN_IP1_27_25,
2158*077365a9SGeert Uytterhoeven 		GP_1_2_FN,	FN_IP1_24,
2159*077365a9SGeert Uytterhoeven 		GP_1_1_FN,	FN_WE0,
2160*077365a9SGeert Uytterhoeven 		GP_1_0_FN,	FN_IP1_23_21 ))
2161*077365a9SGeert Uytterhoeven 	},
2162*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG("GPSR2", 0xfffc000c, 32, 1, GROUP(
2163*077365a9SGeert Uytterhoeven 		GP_2_31_FN,	FN_IP6_7,
2164*077365a9SGeert Uytterhoeven 		GP_2_30_FN,	FN_IP6_6_5,
2165*077365a9SGeert Uytterhoeven 		GP_2_29_FN,	FN_IP6_4_2,
2166*077365a9SGeert Uytterhoeven 		GP_2_28_FN,	FN_IP6_1_0,
2167*077365a9SGeert Uytterhoeven 		GP_2_27_FN,	FN_IP5_30_29,
2168*077365a9SGeert Uytterhoeven 		GP_2_26_FN,	FN_IP5_28_26,
2169*077365a9SGeert Uytterhoeven 		GP_2_25_FN,	FN_IP5_25_23,
2170*077365a9SGeert Uytterhoeven 		GP_2_24_FN,	FN_IP5_22_21,
2171*077365a9SGeert Uytterhoeven 		GP_2_23_FN,	FN_AUDIO_CLKB,
2172*077365a9SGeert Uytterhoeven 		GP_2_22_FN,	FN_AUDIO_CLKA,
2173*077365a9SGeert Uytterhoeven 		GP_2_21_FN,	FN_IP5_20_18,
2174*077365a9SGeert Uytterhoeven 		GP_2_20_FN,	FN_IP5_17_15,
2175*077365a9SGeert Uytterhoeven 		GP_2_19_FN,	FN_IP5_14_13,
2176*077365a9SGeert Uytterhoeven 		GP_2_18_FN,	FN_IP5_12,
2177*077365a9SGeert Uytterhoeven 		GP_2_17_FN,	FN_IP5_11_10,
2178*077365a9SGeert Uytterhoeven 		GP_2_16_FN,	FN_IP5_9_8,
2179*077365a9SGeert Uytterhoeven 		GP_2_15_FN,	FN_IP5_7,
2180*077365a9SGeert Uytterhoeven 		GP_2_14_FN,	FN_IP5_6,
2181*077365a9SGeert Uytterhoeven 		GP_2_13_FN,	FN_IP5_5_4,
2182*077365a9SGeert Uytterhoeven 		GP_2_12_FN,	FN_IP5_3_2,
2183*077365a9SGeert Uytterhoeven 		GP_2_11_FN,	FN_IP5_1_0,
2184*077365a9SGeert Uytterhoeven 		GP_2_10_FN,	FN_IP4_30_29,
2185*077365a9SGeert Uytterhoeven 		GP_2_9_FN,	FN_IP4_28_27,
2186*077365a9SGeert Uytterhoeven 		GP_2_8_FN,	FN_IP4_26_25,
2187*077365a9SGeert Uytterhoeven 		GP_2_7_FN,	FN_IP4_24_21,
2188*077365a9SGeert Uytterhoeven 		GP_2_6_FN,	FN_IP4_20_17,
2189*077365a9SGeert Uytterhoeven 		GP_2_5_FN,	FN_IP4_16_15,
2190*077365a9SGeert Uytterhoeven 		GP_2_4_FN,	FN_IP4_14_13,
2191*077365a9SGeert Uytterhoeven 		GP_2_3_FN,	FN_IP4_12_11,
2192*077365a9SGeert Uytterhoeven 		GP_2_2_FN,	FN_IP4_10_9,
2193*077365a9SGeert Uytterhoeven 		GP_2_1_FN,	FN_IP4_8,
2194*077365a9SGeert Uytterhoeven 		GP_2_0_FN,	FN_IP4_7 ))
2195*077365a9SGeert Uytterhoeven 	},
2196*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG("GPSR3", 0xfffc0010, 32, 1, GROUP(
2197*077365a9SGeert Uytterhoeven 		GP_3_31_FN,	FN_IP8_10_9,
2198*077365a9SGeert Uytterhoeven 		GP_3_30_FN,	FN_IP8_8_6,
2199*077365a9SGeert Uytterhoeven 		GP_3_29_FN,	FN_IP8_5_3,
2200*077365a9SGeert Uytterhoeven 		GP_3_28_FN,	FN_IP8_2_0,
2201*077365a9SGeert Uytterhoeven 		GP_3_27_FN,	FN_IP7_31_29,
2202*077365a9SGeert Uytterhoeven 		GP_3_26_FN,	FN_IP7_28_25,
2203*077365a9SGeert Uytterhoeven 		GP_3_25_FN,	FN_IP7_24_22,
2204*077365a9SGeert Uytterhoeven 		GP_3_24_FN,	FN_IP7_21,
2205*077365a9SGeert Uytterhoeven 		GP_3_23_FN,	FN_IP7_20_18,
2206*077365a9SGeert Uytterhoeven 		GP_3_22_FN,	FN_IP7_17_15,
2207*077365a9SGeert Uytterhoeven 		GP_3_21_FN,	FN_IP7_14_12,
2208*077365a9SGeert Uytterhoeven 		GP_3_20_FN,	FN_IP7_11_9,
2209*077365a9SGeert Uytterhoeven 		GP_3_19_FN,	FN_IP7_8_6,
2210*077365a9SGeert Uytterhoeven 		GP_3_18_FN,	FN_IP7_5_4,
2211*077365a9SGeert Uytterhoeven 		GP_3_17_FN,	FN_IP7_3_2,
2212*077365a9SGeert Uytterhoeven 		GP_3_16_FN,	FN_IP7_1_0,
2213*077365a9SGeert Uytterhoeven 		GP_3_15_FN,	FN_IP6_31_30,
2214*077365a9SGeert Uytterhoeven 		GP_3_14_FN,	FN_IP6_29_28,
2215*077365a9SGeert Uytterhoeven 		GP_3_13_FN,	FN_IP6_27_26,
2216*077365a9SGeert Uytterhoeven 		GP_3_12_FN,	FN_IP6_25_24,
2217*077365a9SGeert Uytterhoeven 		GP_3_11_FN,	FN_IP6_23_22,
2218*077365a9SGeert Uytterhoeven 		GP_3_10_FN,	FN_IP6_21,
2219*077365a9SGeert Uytterhoeven 		GP_3_9_FN,	FN_IP6_20_19,
2220*077365a9SGeert Uytterhoeven 		GP_3_8_FN,	FN_IP6_18_17,
2221*077365a9SGeert Uytterhoeven 		GP_3_7_FN,	FN_IP6_16,
2222*077365a9SGeert Uytterhoeven 		GP_3_6_FN,	FN_IP6_15_14,
2223*077365a9SGeert Uytterhoeven 		GP_3_5_FN,	FN_IP6_13,
2224*077365a9SGeert Uytterhoeven 		GP_3_4_FN,	FN_IP6_12_11,
2225*077365a9SGeert Uytterhoeven 		GP_3_3_FN,	FN_IP6_10,
2226*077365a9SGeert Uytterhoeven 		GP_3_2_FN,	FN_SSI_SCK34,
2227*077365a9SGeert Uytterhoeven 		GP_3_1_FN,	FN_IP6_9,
2228*077365a9SGeert Uytterhoeven 		GP_3_0_FN,	FN_IP6_8 ))
2229*077365a9SGeert Uytterhoeven 	},
2230*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG("GPSR4", 0xfffc0014, 32, 1, GROUP(
2231*077365a9SGeert Uytterhoeven 		0, 0,
2232*077365a9SGeert Uytterhoeven 		0, 0,
2233*077365a9SGeert Uytterhoeven 		0, 0,
2234*077365a9SGeert Uytterhoeven 		0, 0,
2235*077365a9SGeert Uytterhoeven 		0, 0,
2236*077365a9SGeert Uytterhoeven 		GP_4_26_FN,	FN_AVS2,
2237*077365a9SGeert Uytterhoeven 		GP_4_25_FN,	FN_AVS1,
2238*077365a9SGeert Uytterhoeven 		GP_4_24_FN,	FN_IP10_24_22,
2239*077365a9SGeert Uytterhoeven 		GP_4_23_FN,	FN_IP10_21_19,
2240*077365a9SGeert Uytterhoeven 		GP_4_22_FN,	FN_IP10_18_16,
2241*077365a9SGeert Uytterhoeven 		GP_4_21_FN,	FN_IP10_15_13,
2242*077365a9SGeert Uytterhoeven 		GP_4_20_FN,	FN_IP10_12_9,
2243*077365a9SGeert Uytterhoeven 		GP_4_19_FN,	FN_IP10_8_6,
2244*077365a9SGeert Uytterhoeven 		GP_4_18_FN,	FN_IP10_5_3,
2245*077365a9SGeert Uytterhoeven 		GP_4_17_FN,	FN_IP10_2_0,
2246*077365a9SGeert Uytterhoeven 		GP_4_16_FN,	FN_IP9_29_27,
2247*077365a9SGeert Uytterhoeven 		GP_4_15_FN,	FN_IP9_26_24,
2248*077365a9SGeert Uytterhoeven 		GP_4_14_FN,	FN_IP9_23_21,
2249*077365a9SGeert Uytterhoeven 		GP_4_13_FN,	FN_IP9_20_18,
2250*077365a9SGeert Uytterhoeven 		GP_4_12_FN,	FN_IP9_17_15,
2251*077365a9SGeert Uytterhoeven 		GP_4_11_FN,	FN_IP9_14_12,
2252*077365a9SGeert Uytterhoeven 		GP_4_10_FN,	FN_IP9_11_9,
2253*077365a9SGeert Uytterhoeven 		GP_4_9_FN,	FN_IP9_8_6,
2254*077365a9SGeert Uytterhoeven 		GP_4_8_FN,	FN_IP9_5_3,
2255*077365a9SGeert Uytterhoeven 		GP_4_7_FN,	FN_IP9_2_0,
2256*077365a9SGeert Uytterhoeven 		GP_4_6_FN,	FN_IP8_29_27,
2257*077365a9SGeert Uytterhoeven 		GP_4_5_FN,	FN_IP8_26_24,
2258*077365a9SGeert Uytterhoeven 		GP_4_4_FN,	FN_IP8_23_22,
2259*077365a9SGeert Uytterhoeven 		GP_4_3_FN,	FN_IP8_21_19,
2260*077365a9SGeert Uytterhoeven 		GP_4_2_FN,	FN_IP8_18_16,
2261*077365a9SGeert Uytterhoeven 		GP_4_1_FN,	FN_IP8_15_14,
2262*077365a9SGeert Uytterhoeven 		GP_4_0_FN,	FN_IP8_13_11 ))
2263*077365a9SGeert Uytterhoeven 	},
2264*077365a9SGeert Uytterhoeven 
2265*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR0", 0xfffc0020, 32,
2266*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2267*077365a9SGeert Uytterhoeven 				   1, 1, 1, 1, 1, 3, 4, 3, 3, 2),
2268*077365a9SGeert Uytterhoeven 			     GROUP(
2269*077365a9SGeert Uytterhoeven 		/* IP0_31 [1] */
2270*077365a9SGeert Uytterhoeven 		0,	0,
2271*077365a9SGeert Uytterhoeven 		/* IP0_30 [1] */
2272*077365a9SGeert Uytterhoeven 		FN_A19,	0,
2273*077365a9SGeert Uytterhoeven 		/* IP0_29 [1] */
2274*077365a9SGeert Uytterhoeven 		FN_A18,	0,
2275*077365a9SGeert Uytterhoeven 		/* IP0_28 [1] */
2276*077365a9SGeert Uytterhoeven 		FN_A17,	0,
2277*077365a9SGeert Uytterhoeven 		/* IP0_27 [1] */
2278*077365a9SGeert Uytterhoeven 		FN_A16,	0,
2279*077365a9SGeert Uytterhoeven 		/* IP0_26 [1] */
2280*077365a9SGeert Uytterhoeven 		FN_A15,	0,
2281*077365a9SGeert Uytterhoeven 		/* IP0_25 [1] */
2282*077365a9SGeert Uytterhoeven 		FN_A14,	0,
2283*077365a9SGeert Uytterhoeven 		/* IP0_24 [1] */
2284*077365a9SGeert Uytterhoeven 		FN_A13,	0,
2285*077365a9SGeert Uytterhoeven 		/* IP0_23 [1] */
2286*077365a9SGeert Uytterhoeven 		FN_A12,	0,
2287*077365a9SGeert Uytterhoeven 		/* IP0_22 [1] */
2288*077365a9SGeert Uytterhoeven 		FN_A11,	0,
2289*077365a9SGeert Uytterhoeven 		/* IP0_21 [1] */
2290*077365a9SGeert Uytterhoeven 		FN_A10,	0,
2291*077365a9SGeert Uytterhoeven 		/* IP0_20 [1] */
2292*077365a9SGeert Uytterhoeven 		FN_A9,	0,
2293*077365a9SGeert Uytterhoeven 		/* IP0_19 [1] */
2294*077365a9SGeert Uytterhoeven 		FN_A8,	0,
2295*077365a9SGeert Uytterhoeven 		/* IP0_18 [1] */
2296*077365a9SGeert Uytterhoeven 		FN_A7,	0,
2297*077365a9SGeert Uytterhoeven 		/* IP0_17 [1] */
2298*077365a9SGeert Uytterhoeven 		FN_A6,	0,
2299*077365a9SGeert Uytterhoeven 		/* IP0_16 [1] */
2300*077365a9SGeert Uytterhoeven 		FN_A5,	0,
2301*077365a9SGeert Uytterhoeven 		/* IP0_15 [1] */
2302*077365a9SGeert Uytterhoeven 		FN_A4,	0,
2303*077365a9SGeert Uytterhoeven 		/* IP0_14_12 [3] */
2304*077365a9SGeert Uytterhoeven 		FN_SD1_DAT3_A,	FN_MMC_D3,	0,		FN_A0,
2305*077365a9SGeert Uytterhoeven 		FN_ATAG0_A,	0,		FN_REMOCON_B,	0,
2306*077365a9SGeert Uytterhoeven 		/* IP0_11_8 [4] */
2307*077365a9SGeert Uytterhoeven 		FN_SD1_DAT2_A,	FN_MMC_D2,	0,		FN_BS,
2308*077365a9SGeert Uytterhoeven 		FN_ATADIR0_A,	0,		FN_SDSELF_A,	0,
2309*077365a9SGeert Uytterhoeven 		FN_PWM4_B,	0,		0,		0,
2310*077365a9SGeert Uytterhoeven 		0,		0,		0,		0,
2311*077365a9SGeert Uytterhoeven 		/* IP0_7_5 [3] */
2312*077365a9SGeert Uytterhoeven 		FN_AUDATA1,	FN_ARM_TRACEDATA_1,	FN_GPSIN_C,	FN_USB_OVC1,
2313*077365a9SGeert Uytterhoeven 		FN_RX2_E,	FN_SCL2_B,		0,		0,
2314*077365a9SGeert Uytterhoeven 		/* IP0_4_2 [3] */
2315*077365a9SGeert Uytterhoeven 		FN_AUDATA0,	FN_ARM_TRACEDATA_0,	FN_GPSCLK_C,	FN_USB_OVC0,
2316*077365a9SGeert Uytterhoeven 		FN_TX2_E,	FN_SDA2_B,		0,		0,
2317*077365a9SGeert Uytterhoeven 		/* IP0_1_0 [2] */
2318*077365a9SGeert Uytterhoeven 		FN_PRESETOUT,	0,	FN_PWM1,	0,
2319*077365a9SGeert Uytterhoeven 		))
2320*077365a9SGeert Uytterhoeven 	},
2321*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR1", 0xfffc0024, 32,
2322*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 2, 3, 1, 3, 3, 1, 2, 4, 3, 3,
2323*077365a9SGeert Uytterhoeven 				   3, 1, 1),
2324*077365a9SGeert Uytterhoeven 			     GROUP(
2325*077365a9SGeert Uytterhoeven 		/* IP1_31 [1] */
2326*077365a9SGeert Uytterhoeven 		0,	0,
2327*077365a9SGeert Uytterhoeven 		/* IP1_30 [1] */
2328*077365a9SGeert Uytterhoeven 		0,	0,
2329*077365a9SGeert Uytterhoeven 		/* IP1_29_28 [2] */
2330*077365a9SGeert Uytterhoeven 		FN_EX_CS1,	FN_MMC_D4,	0,	0,
2331*077365a9SGeert Uytterhoeven 		/* IP1_27_25 [3] */
2332*077365a9SGeert Uytterhoeven 		FN_SSI_WS1_B,	FN_EX_CS0,	FN_SCL2_A,	FN_TX3_C,
2333*077365a9SGeert Uytterhoeven 		FN_TS_SCK0_A,	0,		0,		0,
2334*077365a9SGeert Uytterhoeven 		/* IP1_24 [1] */
2335*077365a9SGeert Uytterhoeven 		FN_WE1,		FN_ATAWR0_B,
2336*077365a9SGeert Uytterhoeven 		/* IP1_23_21 [3] */
2337*077365a9SGeert Uytterhoeven 		FN_MMC_D5,	FN_ATADIR0_B,	0,		FN_RD_WR,
2338*077365a9SGeert Uytterhoeven 		0,		0,		0,		0,
2339*077365a9SGeert Uytterhoeven 		/* IP1_20_18 [3] */
2340*077365a9SGeert Uytterhoeven 		FN_SSI_SCK1_B,	FN_ATAG0_B,	FN_CS1_A26,	FN_SDA2_A,
2341*077365a9SGeert Uytterhoeven 		FN_SCK2_B,	0,		0,		0,
2342*077365a9SGeert Uytterhoeven 		/* IP1_17 [1] */
2343*077365a9SGeert Uytterhoeven 		FN_CS0,		FN_HSPI_RX1_B,
2344*077365a9SGeert Uytterhoeven 		/* IP1_16_15 [2] */
2345*077365a9SGeert Uytterhoeven 		FN_CLKOUT,	FN_HSPI_TX1_B,	FN_PWM0_B,	0,
2346*077365a9SGeert Uytterhoeven 		/* IP1_14_11 [4] */
2347*077365a9SGeert Uytterhoeven 		FN_SD1_WP_A,	FN_MMC_D7,	0,		FN_A25,
2348*077365a9SGeert Uytterhoeven 		FN_DACK1_A,	0,		FN_HCTS0_B,	FN_RX3_C,
2349*077365a9SGeert Uytterhoeven 		FN_TS_SDAT0_A,	0,		0,		0,
2350*077365a9SGeert Uytterhoeven 		0,		0,		0,		0,
2351*077365a9SGeert Uytterhoeven 		/* IP1_10_8 [3] */
2352*077365a9SGeert Uytterhoeven 		FN_SD1_CD_A,	FN_MMC_D6,	0,		FN_A24,
2353*077365a9SGeert Uytterhoeven 		FN_DREQ1_A,	0,		FN_HRX0_B,	FN_TS_SPSYNC0_A,
2354*077365a9SGeert Uytterhoeven 		/* IP1_7_5 [3] */
2355*077365a9SGeert Uytterhoeven 		FN_A23,		FN_HTX0_B,	FN_TX2_B,	FN_DACK2_A,
2356*077365a9SGeert Uytterhoeven 		FN_TS_SDEN0_A,	0,		0,		0,
2357*077365a9SGeert Uytterhoeven 		/* IP1_4_2 [3] */
2358*077365a9SGeert Uytterhoeven 		FN_A22,		FN_HRTS0_B,	FN_RX2_B,	FN_DREQ2_A,
2359*077365a9SGeert Uytterhoeven 		0,		0,		0,		0,
2360*077365a9SGeert Uytterhoeven 		/* IP1_1 [1] */
2361*077365a9SGeert Uytterhoeven 		FN_A21,		FN_HSPI_CLK1_B,
2362*077365a9SGeert Uytterhoeven 		/* IP1_0 [1] */
2363*077365a9SGeert Uytterhoeven 		FN_A20,		FN_HSPI_CS1_B,
2364*077365a9SGeert Uytterhoeven 		))
2365*077365a9SGeert Uytterhoeven 	},
2366*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR2", 0xfffc0028, 32,
2367*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2368*077365a9SGeert Uytterhoeven 				   1, 1, 1, 3, 2, 3, 3, 3, 3),
2369*077365a9SGeert Uytterhoeven 			     GROUP(
2370*077365a9SGeert Uytterhoeven 		/* IP2_31 [1] */
2371*077365a9SGeert Uytterhoeven 		FN_MLB_CLK,	FN_IRQ1_A,
2372*077365a9SGeert Uytterhoeven 		/* IP2_30 [1] */
2373*077365a9SGeert Uytterhoeven 		FN_RD_WR_B,	FN_IRQ0,
2374*077365a9SGeert Uytterhoeven 		/* IP2_29 [1] */
2375*077365a9SGeert Uytterhoeven 		FN_D11,		0,
2376*077365a9SGeert Uytterhoeven 		/* IP2_28 [1] */
2377*077365a9SGeert Uytterhoeven 		FN_D10,		0,
2378*077365a9SGeert Uytterhoeven 		/* IP2_27 [1] */
2379*077365a9SGeert Uytterhoeven 		FN_D9,		0,
2380*077365a9SGeert Uytterhoeven 		/* IP2_26 [1] */
2381*077365a9SGeert Uytterhoeven 		FN_D8,		0,
2382*077365a9SGeert Uytterhoeven 		/* IP2_25 [1] */
2383*077365a9SGeert Uytterhoeven 		FN_D7,		0,
2384*077365a9SGeert Uytterhoeven 		/* IP2_24 [1] */
2385*077365a9SGeert Uytterhoeven 		FN_D6,		0,
2386*077365a9SGeert Uytterhoeven 		/* IP2_23 [1] */
2387*077365a9SGeert Uytterhoeven 		FN_D5,		0,
2388*077365a9SGeert Uytterhoeven 		/* IP2_22 [1] */
2389*077365a9SGeert Uytterhoeven 		FN_D4,		0,
2390*077365a9SGeert Uytterhoeven 		/* IP2_21 [1] */
2391*077365a9SGeert Uytterhoeven 		FN_D3,		0,
2392*077365a9SGeert Uytterhoeven 		/* IP2_20 [1] */
2393*077365a9SGeert Uytterhoeven 		FN_D2,		0,
2394*077365a9SGeert Uytterhoeven 		/* IP2_19 [1] */
2395*077365a9SGeert Uytterhoeven 		FN_D1,		0,
2396*077365a9SGeert Uytterhoeven 		/* IP2_18 [1] */
2397*077365a9SGeert Uytterhoeven 		FN_D0,		0,
2398*077365a9SGeert Uytterhoeven 		/* IP2_17 [1] */
2399*077365a9SGeert Uytterhoeven 		FN_EX_WAIT0,	FN_PWM0_C,
2400*077365a9SGeert Uytterhoeven 		/* IP2_16_14 [3] */
2401*077365a9SGeert Uytterhoeven 		FN_DACK0,	0,	0,	FN_TX3_A,
2402*077365a9SGeert Uytterhoeven 		FN_DRACK0,	0,	0,	0,
2403*077365a9SGeert Uytterhoeven 		/* IP2_13_12 [2] */
2404*077365a9SGeert Uytterhoeven 		FN_DREQ0_A,	0,	0,	FN_RX3_A,
2405*077365a9SGeert Uytterhoeven 		/* IP2_11_9 [3] */
2406*077365a9SGeert Uytterhoeven 		FN_SD1_DAT1_A,	FN_MMC_D1,	0,	FN_ATAWR0_A,
2407*077365a9SGeert Uytterhoeven 		FN_EX_CS5,	FN_EX_WAIT2_A,	0,	0,
2408*077365a9SGeert Uytterhoeven 		/* IP2_8_6 [3] */
2409*077365a9SGeert Uytterhoeven 		FN_SD1_DAT0_A,	FN_MMC_D0,	0,	FN_ATARD0,
2410*077365a9SGeert Uytterhoeven 		FN_EX_CS4,	FN_EX_WAIT1_A,	0,	0,
2411*077365a9SGeert Uytterhoeven 		/* IP2_5_3 [3] */
2412*077365a9SGeert Uytterhoeven 		FN_SD1_CMD_A,	FN_MMC_CMD,	0,	FN_ATACS10,
2413*077365a9SGeert Uytterhoeven 		FN_EX_CS3,	0,		0,	0,
2414*077365a9SGeert Uytterhoeven 		/* IP2_2_0 [3] */
2415*077365a9SGeert Uytterhoeven 		FN_SD1_CLK_A,	FN_MMC_CLK,	0,	FN_ATACS00,
2416*077365a9SGeert Uytterhoeven 		FN_EX_CS2,	0,		0,	0,
2417*077365a9SGeert Uytterhoeven 		))
2418*077365a9SGeert Uytterhoeven 	},
2419*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR3", 0xfffc002c, 32,
2420*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 1, 1, 1, 3, 3, 2, 3, 3, 3, 2,
2421*077365a9SGeert Uytterhoeven 				   3, 3, 2),
2422*077365a9SGeert Uytterhoeven 			     GROUP(
2423*077365a9SGeert Uytterhoeven 		/* IP3_31 [1] */
2424*077365a9SGeert Uytterhoeven 		FN_DU0_DR6,	FN_LCDOUT6,
2425*077365a9SGeert Uytterhoeven 		/* IP3_30 [1] */
2426*077365a9SGeert Uytterhoeven 		FN_DU0_DR5,	FN_LCDOUT5,
2427*077365a9SGeert Uytterhoeven 		/* IP3_29 [1] */
2428*077365a9SGeert Uytterhoeven 		FN_DU0_DR4,	FN_LCDOUT4,
2429*077365a9SGeert Uytterhoeven 		/* IP3_28 [1] */
2430*077365a9SGeert Uytterhoeven 		FN_DU0_DR3,	FN_LCDOUT3,
2431*077365a9SGeert Uytterhoeven 		/* IP3_27 [1] */
2432*077365a9SGeert Uytterhoeven 		FN_DU0_DR2,	FN_LCDOUT2,
2433*077365a9SGeert Uytterhoeven 		/* IP3_26_24 [3] */
2434*077365a9SGeert Uytterhoeven 		FN_SSI_WS4,		FN_DU0_DR1,	FN_LCDOUT1,	FN_AUDATA3,
2435*077365a9SGeert Uytterhoeven 		FN_ARM_TRACEDATA_3,	FN_SCL3_C,	FN_ADICHS2,	FN_TS_SPSYNC0_B,
2436*077365a9SGeert Uytterhoeven 		/* IP3_23_21 [3] */
2437*077365a9SGeert Uytterhoeven 		FN_SSI_SCK4,		FN_DU0_DR0,	FN_LCDOUT0,	FN_AUDATA2,
2438*077365a9SGeert Uytterhoeven 		FN_ARM_TRACEDATA_2,	FN_SDA3_C,	FN_ADICHS1,	FN_TS_SDEN0_B,
2439*077365a9SGeert Uytterhoeven 		/* IP3_20_19 [2] */
2440*077365a9SGeert Uytterhoeven 		FN_SD1_DAT3_B,	FN_HRTS0_A,	FN_RTS0,	0,
2441*077365a9SGeert Uytterhoeven 		/* IP3_18_16 [3] */
2442*077365a9SGeert Uytterhoeven 		FN_SD1_DAT2_B,	FN_HCTS0_A,	FN_CTS0,	0,
2443*077365a9SGeert Uytterhoeven 		0,		0,		0,		0,
2444*077365a9SGeert Uytterhoeven 		/* IP3_15_13 [3] */
2445*077365a9SGeert Uytterhoeven 		FN_SD1_DAT1_B,	FN_HSCK0,	FN_SCK0,	FN_SCL3_B,
2446*077365a9SGeert Uytterhoeven 		0,		0,		0,		0,
2447*077365a9SGeert Uytterhoeven 		/* IP3_12_10 [3] */
2448*077365a9SGeert Uytterhoeven 		FN_SD1_DAT0_B,	FN_HRX0_A,	FN_RX0_A,	0,
2449*077365a9SGeert Uytterhoeven 		0,		0,		0,		0,
2450*077365a9SGeert Uytterhoeven 		/* IP3_9_8 [2] */
2451*077365a9SGeert Uytterhoeven 		FN_SD1_CLK_B,	FN_HTX0_A,	FN_TX0_A,	0,
2452*077365a9SGeert Uytterhoeven 		/* IP3_7_5 [3] */
2453*077365a9SGeert Uytterhoeven 		FN_SD1_CMD_B,	FN_SCIF_CLK,	FN_AUDIO_CLKOUT_B,	FN_CAN_CLK_B,
2454*077365a9SGeert Uytterhoeven 		FN_SDA3_B,	0,		0,			0,
2455*077365a9SGeert Uytterhoeven 		/* IP3_4_2 [3] */
2456*077365a9SGeert Uytterhoeven 		FN_MLB_DAT,	FN_TX5_B,	FN_SCL3_A,	FN_IRQ3_A,
2457*077365a9SGeert Uytterhoeven 		FN_SDSELF_B,	0,		0,		0,
2458*077365a9SGeert Uytterhoeven 		/* IP3_1_0 [2] */
2459*077365a9SGeert Uytterhoeven 		FN_MLB_SIG,	FN_RX5_B,	FN_SDA3_A,	FN_IRQ2_A,
2460*077365a9SGeert Uytterhoeven 		))
2461*077365a9SGeert Uytterhoeven 	},
2462*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR4", 0xfffc0030, 32,
2463*077365a9SGeert Uytterhoeven 			     GROUP(1, 2, 2, 2, 4, 4, 2, 2, 2, 2, 1, 1,
2464*077365a9SGeert Uytterhoeven 				   3, 3, 1),
2465*077365a9SGeert Uytterhoeven 			     GROUP(
2466*077365a9SGeert Uytterhoeven 		/* IP4_31 [1] */
2467*077365a9SGeert Uytterhoeven 		0,	0,
2468*077365a9SGeert Uytterhoeven 		/* IP4_30_29 [2] */
2469*077365a9SGeert Uytterhoeven 		FN_VI0_R4_B,	FN_DU0_DB4,	FN_LCDOUT20,	0,
2470*077365a9SGeert Uytterhoeven 		/* IP4_28_27 [2] */
2471*077365a9SGeert Uytterhoeven 		FN_VI0_R3_B,	FN_DU0_DB3,	FN_LCDOUT19,	0,
2472*077365a9SGeert Uytterhoeven 		/* IP4_26_25 [2] */
2473*077365a9SGeert Uytterhoeven 		FN_VI0_R2_B,	FN_DU0_DB2,	FN_LCDOUT18,	0,
2474*077365a9SGeert Uytterhoeven 		/* IP4_24_21 [4] */
2475*077365a9SGeert Uytterhoeven 		FN_AUDIO_CLKC,	FN_VI0_R1_B,		FN_DU0_DB1,	FN_LCDOUT17,
2476*077365a9SGeert Uytterhoeven 		FN_AUDATA7,	FN_ARM_TRACEDATA_7,	FN_GPSIN_A,	0,
2477*077365a9SGeert Uytterhoeven 		FN_ADICS_SAMP,	FN_TS_SCK0_B,		0,		0,
2478*077365a9SGeert Uytterhoeven 		0,		0,			0,		0,
2479*077365a9SGeert Uytterhoeven 		/* IP4_20_17 [4] */
2480*077365a9SGeert Uytterhoeven 		FN_SSI_SCK2_B,	FN_VI0_R0_B,		FN_DU0_DB0,	FN_LCDOUT16,
2481*077365a9SGeert Uytterhoeven 		FN_AUDATA6,	FN_ARM_TRACEDATA_6,	FN_GPSCLK_A,	FN_PWM0_A,
2482*077365a9SGeert Uytterhoeven 		FN_ADICLK,	FN_TS_SDAT0_B,		0,		0,
2483*077365a9SGeert Uytterhoeven 		0,		0,			0,		0,
2484*077365a9SGeert Uytterhoeven 		/* IP4_16_15 [2] */
2485*077365a9SGeert Uytterhoeven 		FN_DU0_DG7,	FN_LCDOUT15,	FN_TX4_A,	0,
2486*077365a9SGeert Uytterhoeven 		/* IP4_14_13 [2] */
2487*077365a9SGeert Uytterhoeven 		FN_DU0_DG6,	FN_LCDOUT14,	FN_RX4_A,	0,
2488*077365a9SGeert Uytterhoeven 		/* IP4_12_11 [2] */
2489*077365a9SGeert Uytterhoeven 		FN_DU0_DG5,	FN_LCDOUT13,	FN_TX0_B,	0,
2490*077365a9SGeert Uytterhoeven 		/* IP4_10_9 [2] */
2491*077365a9SGeert Uytterhoeven 		FN_DU0_DG4,	FN_LCDOUT12,	FN_RX0_B,	0,
2492*077365a9SGeert Uytterhoeven 		/* IP4_8 [1] */
2493*077365a9SGeert Uytterhoeven 		FN_DU0_DG3,	FN_LCDOUT11,
2494*077365a9SGeert Uytterhoeven 		/* IP4_7 [1] */
2495*077365a9SGeert Uytterhoeven 		FN_DU0_DG2,	FN_LCDOUT10,
2496*077365a9SGeert Uytterhoeven 		/* IP4_6_4 [3] */
2497*077365a9SGeert Uytterhoeven 		FN_DU0_DG1,	FN_LCDOUT9,	FN_AUDATA5,	FN_ARM_TRACEDATA_5,
2498*077365a9SGeert Uytterhoeven 		FN_RX1_D,	FN_CAN0_RX_A,	FN_ADIDATA,	0,
2499*077365a9SGeert Uytterhoeven 		/* IP4_3_1 [3] */
2500*077365a9SGeert Uytterhoeven 		FN_DU0_DG0,	FN_LCDOUT8,	FN_AUDATA4,	FN_ARM_TRACEDATA_4,
2501*077365a9SGeert Uytterhoeven 		FN_TX1_D,	FN_CAN0_TX_A,	FN_ADICHS0,	0,
2502*077365a9SGeert Uytterhoeven 		/* IP4_0 [1] */
2503*077365a9SGeert Uytterhoeven 		FN_DU0_DR7,	FN_LCDOUT7,
2504*077365a9SGeert Uytterhoeven 		))
2505*077365a9SGeert Uytterhoeven 	},
2506*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR5", 0xfffc0034, 32,
2507*077365a9SGeert Uytterhoeven 			     GROUP(1, 2, 3, 3, 2, 3, 3, 2, 1, 2, 2, 1,
2508*077365a9SGeert Uytterhoeven 				   1, 2, 2, 2),
2509*077365a9SGeert Uytterhoeven 			     GROUP(
2510*077365a9SGeert Uytterhoeven 
2511*077365a9SGeert Uytterhoeven 		/* IP5_31 [1] */
2512*077365a9SGeert Uytterhoeven 		0, 0,
2513*077365a9SGeert Uytterhoeven 		/* IP5_30_29 [2] */
2514*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA7,	FN_HSPI_TX0_B,	FN_RX2_A,	FN_CAN0_RX_B,
2515*077365a9SGeert Uytterhoeven 		/* IP5_28_26 [3] */
2516*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA8,	FN_SSI_SCK2_A,	FN_HSPI_CS0_B,	FN_TX2_A,
2517*077365a9SGeert Uytterhoeven 		FN_CAN0_TX_B,	0,		0,		0,
2518*077365a9SGeert Uytterhoeven 		/* IP5_25_23 [3] */
2519*077365a9SGeert Uytterhoeven 		FN_SD1_WP_B,	FN_SSI_WS78,	FN_HSPI_CLK0_B,	FN_RX1_B,
2520*077365a9SGeert Uytterhoeven 		FN_CAN_CLK_D,	0,		0,		0,
2521*077365a9SGeert Uytterhoeven 		/* IP5_22_21 [2] */
2522*077365a9SGeert Uytterhoeven 		FN_SD1_CD_B,	FN_SSI_SCK78,	FN_HSPI_RX0_B,	FN_TX1_B,
2523*077365a9SGeert Uytterhoeven 		/* IP5_20_18 [3] */
2524*077365a9SGeert Uytterhoeven 		FN_SSI_WS1_A,		FN_DU0_CDE,	FN_QPOLB,	FN_AUDSYNC,
2525*077365a9SGeert Uytterhoeven 		FN_ARM_TRACECTL,	FN_FMIN_D,	0,		0,
2526*077365a9SGeert Uytterhoeven 		/* IP5_17_15 [3] */
2527*077365a9SGeert Uytterhoeven 		FN_SSI_SCK1_A,		FN_DU0_DISP,	FN_QPOLA,	FN_AUDCK,
2528*077365a9SGeert Uytterhoeven 		FN_ARM_TRACECLK,	FN_BPFCLK_D,	0,		0,
2529*077365a9SGeert Uytterhoeven 		/* IP5_14_13 [2] */
2530*077365a9SGeert Uytterhoeven 		FN_DU0_EXODDF_DU0_ODDF_DISP_CDE,	FN_QCPV_QDE,
2531*077365a9SGeert Uytterhoeven 		FN_FMCLK_D,				0,
2532*077365a9SGeert Uytterhoeven 		/* IP5_12 [1] */
2533*077365a9SGeert Uytterhoeven 		FN_DU0_EXVSYNC_DU0_VSYNC,	FN_QSTB_QHE,
2534*077365a9SGeert Uytterhoeven 		/* IP5_11_10 [2] */
2535*077365a9SGeert Uytterhoeven 		FN_SSI_WS2_B,	FN_DU0_EXHSYNC_DU0_HSYNC,
2536*077365a9SGeert Uytterhoeven 		FN_QSTH_QHS,	0,
2537*077365a9SGeert Uytterhoeven 		/* IP5_9_8 [2] */
2538*077365a9SGeert Uytterhoeven 		FN_DU0_DOTCLKO_UT1,	FN_QSTVB_QVE,
2539*077365a9SGeert Uytterhoeven 		FN_AUDIO_CLKOUT_A,	FN_REMOCON_C,
2540*077365a9SGeert Uytterhoeven 		/* IP5_7 [1] */
2541*077365a9SGeert Uytterhoeven 		FN_DU0_DOTCLKO_UT0,	FN_QCLK,
2542*077365a9SGeert Uytterhoeven 		/* IP5_6 [1] */
2543*077365a9SGeert Uytterhoeven 		FN_DU0_DOTCLKIN,	FN_QSTVA_QVS,
2544*077365a9SGeert Uytterhoeven 		/* IP5_5_4 [2] */
2545*077365a9SGeert Uytterhoeven 		FN_VI1_DATA11_B,	FN_DU0_DB7,	FN_LCDOUT23,	0,
2546*077365a9SGeert Uytterhoeven 		/* IP5_3_2 [2] */
2547*077365a9SGeert Uytterhoeven 		FN_VI1_DATA10_B,	FN_DU0_DB6,	FN_LCDOUT22,	0,
2548*077365a9SGeert Uytterhoeven 		/* IP5_1_0 [2] */
2549*077365a9SGeert Uytterhoeven 		FN_VI0_R5_B,		FN_DU0_DB5,	FN_LCDOUT21,	0,
2550*077365a9SGeert Uytterhoeven 		))
2551*077365a9SGeert Uytterhoeven 	},
2552*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR6", 0xfffc0038, 32,
2553*077365a9SGeert Uytterhoeven 			     GROUP(2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 1, 2,
2554*077365a9SGeert Uytterhoeven 				   1, 1, 1, 1, 2, 3, 2),
2555*077365a9SGeert Uytterhoeven 			     GROUP(
2556*077365a9SGeert Uytterhoeven 		/* IP6_31_30 [2] */
2557*077365a9SGeert Uytterhoeven 		FN_SD0_DAT2,	0,	FN_SUB_TDI,	0,
2558*077365a9SGeert Uytterhoeven 		/* IP6_29_28 [2] */
2559*077365a9SGeert Uytterhoeven 		FN_SD0_DAT1,	0,	FN_SUB_TCK,	0,
2560*077365a9SGeert Uytterhoeven 		/* IP6_27_26 [2] */
2561*077365a9SGeert Uytterhoeven 		FN_SD0_DAT0,	0,	FN_SUB_TMS,	0,
2562*077365a9SGeert Uytterhoeven 		/* IP6_25_24 [2] */
2563*077365a9SGeert Uytterhoeven 		FN_SD0_CMD,	0,	FN_SUB_TRST,	0,
2564*077365a9SGeert Uytterhoeven 		/* IP6_23_22 [2] */
2565*077365a9SGeert Uytterhoeven 		FN_SD0_CLK,	0,	FN_SUB_TDO,	0,
2566*077365a9SGeert Uytterhoeven 		/* IP6_21 [1] */
2567*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA0,		FN_ARM_TRACEDATA_15,
2568*077365a9SGeert Uytterhoeven 		/* IP6_20_19 [2] */
2569*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA1,		FN_ARM_TRACEDATA_14,
2570*077365a9SGeert Uytterhoeven 		FN_SCL1_A,		FN_SCK2_A,
2571*077365a9SGeert Uytterhoeven 		/* IP6_18_17 [2] */
2572*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA2,		FN_HSPI_CS2_A,
2573*077365a9SGeert Uytterhoeven 		FN_ARM_TRACEDATA_13,	FN_SDA1_A,
2574*077365a9SGeert Uytterhoeven 		/* IP6_16 [1] */
2575*077365a9SGeert Uytterhoeven 		FN_SSI_WS012,		FN_ARM_TRACEDATA_12,
2576*077365a9SGeert Uytterhoeven 		/* IP6_15_14 [2] */
2577*077365a9SGeert Uytterhoeven 		FN_SSI_SCK012,		FN_ARM_TRACEDATA_11,
2578*077365a9SGeert Uytterhoeven 		FN_TX0_D,		0,
2579*077365a9SGeert Uytterhoeven 		/* IP6_13 [1] */
2580*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA3,		FN_ARM_TRACEDATA_10,
2581*077365a9SGeert Uytterhoeven 		/* IP6_12_11 [2] */
2582*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA4,		FN_SSI_WS2_A,
2583*077365a9SGeert Uytterhoeven 		FN_ARM_TRACEDATA_9,	0,
2584*077365a9SGeert Uytterhoeven 		/* IP6_10 [1] */
2585*077365a9SGeert Uytterhoeven 		FN_SSI_WS34,		FN_ARM_TRACEDATA_8,
2586*077365a9SGeert Uytterhoeven 		/* IP6_9 [1] */
2587*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA5,		FN_RX0_D,
2588*077365a9SGeert Uytterhoeven 		/* IP6_8 [1] */
2589*077365a9SGeert Uytterhoeven 		FN_SSI_WS5,		FN_TX4_C,
2590*077365a9SGeert Uytterhoeven 		/* IP6_7 [1] */
2591*077365a9SGeert Uytterhoeven 		FN_SSI_SCK5,		FN_RX4_C,
2592*077365a9SGeert Uytterhoeven 		/* IP6_6_5 [2] */
2593*077365a9SGeert Uytterhoeven 		FN_SSI_SDATA6,		FN_HSPI_TX2_A,
2594*077365a9SGeert Uytterhoeven 		FN_FMIN_B,		0,
2595*077365a9SGeert Uytterhoeven 		/* IP6_4_2 [3] */
2596*077365a9SGeert Uytterhoeven 		FN_SSI_WS6,		FN_HSPI_CLK2_A,
2597*077365a9SGeert Uytterhoeven 		FN_BPFCLK_B,		FN_CAN1_RX_B,
2598*077365a9SGeert Uytterhoeven 		0,	0,	0,	0,
2599*077365a9SGeert Uytterhoeven 		/* IP6_1_0 [2] */
2600*077365a9SGeert Uytterhoeven 		FN_SSI_SCK6,		FN_HSPI_RX2_A,
2601*077365a9SGeert Uytterhoeven 		FN_FMCLK_B,		FN_CAN1_TX_B,
2602*077365a9SGeert Uytterhoeven 		))
2603*077365a9SGeert Uytterhoeven 	},
2604*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR7", 0xfffc003c, 32,
2605*077365a9SGeert Uytterhoeven 			     GROUP(3, 4, 3, 1, 3, 3, 3, 3, 3, 2, 2, 2),
2606*077365a9SGeert Uytterhoeven 			     GROUP(
2607*077365a9SGeert Uytterhoeven 
2608*077365a9SGeert Uytterhoeven 		/* IP7_31_29 [3] */
2609*077365a9SGeert Uytterhoeven 		FN_VI0_HSYNC,	FN_SD2_CD_B,	FN_VI1_DATA2,	FN_DU1_DR2,
2610*077365a9SGeert Uytterhoeven 		0,		FN_HSPI_CS1_A,	FN_RX3_B,	0,
2611*077365a9SGeert Uytterhoeven 		/* IP7_28_25 [4] */
2612*077365a9SGeert Uytterhoeven 		FN_VI0_FIELD,	FN_SD2_DAT3_B,	FN_VI0_R3_C,	FN_VI1_DATA1,
2613*077365a9SGeert Uytterhoeven 		FN_DU1_DG7,	0,		FN_HSPI_CLK1_A,	FN_TX4_B,
2614*077365a9SGeert Uytterhoeven 		0,	0,	0,	0,
2615*077365a9SGeert Uytterhoeven 		0,	0,	0,	0,
2616*077365a9SGeert Uytterhoeven 		/* IP7_24_22 [3] */
2617*077365a9SGeert Uytterhoeven 		FN_VI0_CLKENB,	FN_SD2_DAT2_B,	FN_VI1_DATA0,	FN_DU1_DG6,
2618*077365a9SGeert Uytterhoeven 		0,		FN_HSPI_RX1_A,	FN_RX4_B,	0,
2619*077365a9SGeert Uytterhoeven 		/* IP7_21 [1] */
2620*077365a9SGeert Uytterhoeven 		FN_VI0_CLK,	FN_CAN_CLK_A,
2621*077365a9SGeert Uytterhoeven 		/* IP7_20_18 [3] */
2622*077365a9SGeert Uytterhoeven 		FN_TCLK0,	FN_HSCK1_A,	FN_FMIN_A,	0,
2623*077365a9SGeert Uytterhoeven 		FN_IRQ2_C,	FN_CTS1_C,	FN_SPEEDIN,	0,
2624*077365a9SGeert Uytterhoeven 		/* IP7_17_15 [3] */
2625*077365a9SGeert Uytterhoeven 		FN_VI1_VSYNC,	FN_HSPI_TX0,	FN_HCTS1_A,	FN_BPFCLK_A,
2626*077365a9SGeert Uytterhoeven 		0,		FN_TX1_C,	0,		0,
2627*077365a9SGeert Uytterhoeven 		/* IP7_14_12 [3] */
2628*077365a9SGeert Uytterhoeven 		FN_VI1_HSYNC,	FN_HSPI_RX0_A,	FN_HRTS1_A,	FN_FMCLK_A,
2629*077365a9SGeert Uytterhoeven 		0,		FN_RX1_C,	0,		0,
2630*077365a9SGeert Uytterhoeven 		/* IP7_11_9 [3] */
2631*077365a9SGeert Uytterhoeven 		FN_VI1_FIELD,	FN_HSPI_CS0_A,	FN_HRX1_A,	0,
2632*077365a9SGeert Uytterhoeven 		FN_SCK1_C,	0,		0,		0,
2633*077365a9SGeert Uytterhoeven 		/* IP7_8_6 [3] */
2634*077365a9SGeert Uytterhoeven 		FN_VI1_CLKENB,	FN_HSPI_CLK0_A,	FN_HTX1_A,	0,
2635*077365a9SGeert Uytterhoeven 		FN_RTS1_C,	0,		0,		0,
2636*077365a9SGeert Uytterhoeven 		/* IP7_5_4 [2] */
2637*077365a9SGeert Uytterhoeven 		FN_SD0_WP,	0,		FN_RX5_A,	0,
2638*077365a9SGeert Uytterhoeven 		/* IP7_3_2 [2] */
2639*077365a9SGeert Uytterhoeven 		FN_SD0_CD,	0,		FN_TX5_A,	0,
2640*077365a9SGeert Uytterhoeven 		/* IP7_1_0 [2] */
2641*077365a9SGeert Uytterhoeven 		FN_SD0_DAT3,	0,		FN_IRQ1_B,	0,
2642*077365a9SGeert Uytterhoeven 		))
2643*077365a9SGeert Uytterhoeven 	},
2644*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR8", 0xfffc0040, 32,
2645*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 3, 3, 2, 3, 3, 2, 3, 2, 3, 3, 3),
2646*077365a9SGeert Uytterhoeven 			     GROUP(
2647*077365a9SGeert Uytterhoeven 		/* IP8_31 [1] */
2648*077365a9SGeert Uytterhoeven 		0, 0,
2649*077365a9SGeert Uytterhoeven 		/* IP8_30 [1] */
2650*077365a9SGeert Uytterhoeven 		0, 0,
2651*077365a9SGeert Uytterhoeven 		/* IP8_29_27 [3] */
2652*077365a9SGeert Uytterhoeven 		FN_VI0_G3,	FN_SD2_CMD_B,	FN_VI1_DATA5,	FN_DU1_DR5,
2653*077365a9SGeert Uytterhoeven 		0,		FN_HRX1_B,	0,		0,
2654*077365a9SGeert Uytterhoeven 		/* IP8_26_24 [3] */
2655*077365a9SGeert Uytterhoeven 		FN_VI0_G2,	FN_SD2_CLK_B,	FN_VI1_DATA4,	FN_DU1_DR4,
2656*077365a9SGeert Uytterhoeven 		0,		FN_HTX1_B,	0,		0,
2657*077365a9SGeert Uytterhoeven 		/* IP8_23_22 [2] */
2658*077365a9SGeert Uytterhoeven 		FN_VI0_DATA7_VI0_G1,	FN_DU1_DB5,
2659*077365a9SGeert Uytterhoeven 		FN_RTS1_A,		0,
2660*077365a9SGeert Uytterhoeven 		/* IP8_21_19 [3] */
2661*077365a9SGeert Uytterhoeven 		FN_VI0_DATA6_VI0_G0,	FN_DU1_DB4,
2662*077365a9SGeert Uytterhoeven 		FN_CTS1_A,		FN_PWM5,
2663*077365a9SGeert Uytterhoeven 		0,	0,	0,	0,
2664*077365a9SGeert Uytterhoeven 		/* IP8_18_16 [3] */
2665*077365a9SGeert Uytterhoeven 		FN_VI0_DATA5_VI0_B5,	FN_DU1_DB3,	FN_SCK1_A,	FN_PWM4,
2666*077365a9SGeert Uytterhoeven 		0,			FN_HSCK1_B,	0,		0,
2667*077365a9SGeert Uytterhoeven 		/* IP8_15_14 [2] */
2668*077365a9SGeert Uytterhoeven 		FN_VI0_DATA4_VI0_B4,	FN_DU1_DB2,	FN_RX1_A,	0,
2669*077365a9SGeert Uytterhoeven 		/* IP8_13_11 [3] */
2670*077365a9SGeert Uytterhoeven 		FN_VI0_DATA3_VI0_B3,	FN_DU1_DG5,	FN_TX1_A,	FN_TX0_C,
2671*077365a9SGeert Uytterhoeven 		0,			 0,		0,		0,
2672*077365a9SGeert Uytterhoeven 		/* IP8_10_9 [2] */
2673*077365a9SGeert Uytterhoeven 		FN_VI0_DATA2_VI0_B2,	FN_DU1_DG4,	FN_RX0_C,	0,
2674*077365a9SGeert Uytterhoeven 		/* IP8_8_6 [3] */
2675*077365a9SGeert Uytterhoeven 		FN_VI0_DATA1_VI0_B1,	FN_DU1_DG3,	FN_IRQ3_B,	FN_TX3_D,
2676*077365a9SGeert Uytterhoeven 		0,			 0,		0,		0,
2677*077365a9SGeert Uytterhoeven 		/* IP8_5_3 [3] */
2678*077365a9SGeert Uytterhoeven 		FN_VI0_DATA0_VI0_B0,	FN_DU1_DG2,	FN_IRQ2_B,	FN_RX3_D,
2679*077365a9SGeert Uytterhoeven 		0,			 0,		0,		0,
2680*077365a9SGeert Uytterhoeven 		/* IP8_2_0 [3] */
2681*077365a9SGeert Uytterhoeven 		FN_VI0_VSYNC,		FN_SD2_WP_B,	FN_VI1_DATA3,	FN_DU1_DR3,
2682*077365a9SGeert Uytterhoeven 		0,			FN_HSPI_TX1_A,	FN_TX3_B,	0,
2683*077365a9SGeert Uytterhoeven 		))
2684*077365a9SGeert Uytterhoeven 	},
2685*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR9", 0xfffc0044, 32,
2686*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3),
2687*077365a9SGeert Uytterhoeven 			     GROUP(
2688*077365a9SGeert Uytterhoeven 		/* IP9_31 [1] */
2689*077365a9SGeert Uytterhoeven 		0, 0,
2690*077365a9SGeert Uytterhoeven 		/* IP9_30 [1] */
2691*077365a9SGeert Uytterhoeven 		0, 0,
2692*077365a9SGeert Uytterhoeven 		/* IP9_29_27 [3] */
2693*077365a9SGeert Uytterhoeven 		FN_VI1_DATA11_A,	FN_DU1_EXHSYNC_DU1_HSYNC,
2694*077365a9SGeert Uytterhoeven 		FN_ETH_RXD1,		FN_FMIN_C,
2695*077365a9SGeert Uytterhoeven 		0,			FN_RX2_D,
2696*077365a9SGeert Uytterhoeven 		FN_SCL2_C,		0,
2697*077365a9SGeert Uytterhoeven 		/* IP9_26_24 [3] */
2698*077365a9SGeert Uytterhoeven 		FN_VI1_DATA10_A,	FN_DU1_DOTCLKOUT,
2699*077365a9SGeert Uytterhoeven 		FN_ETH_RXD0,		FN_BPFCLK_C,
2700*077365a9SGeert Uytterhoeven 		0,			FN_TX2_D,
2701*077365a9SGeert Uytterhoeven 		FN_SDA2_C,		0,
2702*077365a9SGeert Uytterhoeven 		/* IP9_23_21 [3] */
2703*077365a9SGeert Uytterhoeven 		FN_VI0_R5_A,	0,		FN_ETH_RX_ER,	FN_FMCLK_C,
2704*077365a9SGeert Uytterhoeven 		FN_IERX,	FN_RX2_C,	0,		0,
2705*077365a9SGeert Uytterhoeven 		/* IP9_20_18 [3] */
2706*077365a9SGeert Uytterhoeven 		FN_VI0_R4_A,	FN_ETH_TX_EN,	0,		0,
2707*077365a9SGeert Uytterhoeven 		FN_IETX,	FN_TX2_C,	0,		0,
2708*077365a9SGeert Uytterhoeven 		/* IP9_17_15 [3] */
2709*077365a9SGeert Uytterhoeven 		FN_VI0_R3_A,	FN_ETH_CRS_DV,	0,		FN_IECLK,
2710*077365a9SGeert Uytterhoeven 		FN_SCK2_C,	0,		0,		0,
2711*077365a9SGeert Uytterhoeven 		/* IP9_14_12 [3] */
2712*077365a9SGeert Uytterhoeven 		FN_VI0_R2_A,	FN_VI1_DATA9,	FN_DU1_DB7,	FN_ETH_TXD1,
2713*077365a9SGeert Uytterhoeven 		0,		FN_PWM3,	0,		0,
2714*077365a9SGeert Uytterhoeven 		/* IP9_11_9 [3] */
2715*077365a9SGeert Uytterhoeven 		FN_VI0_R1_A,	FN_VI1_DATA8,	FN_DU1_DB6,	FN_ETH_TXD0,
2716*077365a9SGeert Uytterhoeven 		0,		FN_PWM2,	FN_TCLK1,	0,
2717*077365a9SGeert Uytterhoeven 		/* IP9_8_6 [3] */
2718*077365a9SGeert Uytterhoeven 		FN_VI0_R0_A,	FN_VI1_CLK,	FN_ETH_REF_CLK,	FN_DU1_DOTCLKIN,
2719*077365a9SGeert Uytterhoeven 		0,		0,		0,		0,
2720*077365a9SGeert Uytterhoeven 		/* IP9_5_3 [3] */
2721*077365a9SGeert Uytterhoeven 		FN_VI0_G5,	FN_SD2_DAT1_B,	FN_VI1_DATA7,	FN_DU1_DR7,
2722*077365a9SGeert Uytterhoeven 		0,		FN_HCTS1_B,	0,		0,
2723*077365a9SGeert Uytterhoeven 		/* IP9_2_0 [3] */
2724*077365a9SGeert Uytterhoeven 		FN_VI0_G4,	FN_SD2_DAT0_B,	FN_VI1_DATA6,	FN_DU1_DR6,
2725*077365a9SGeert Uytterhoeven 		0,		FN_HRTS1_B,	0,		0,
2726*077365a9SGeert Uytterhoeven 		))
2727*077365a9SGeert Uytterhoeven 	},
2728*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("IPSR10", 0xfffc0048, 32,
2729*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 4,
2730*077365a9SGeert Uytterhoeven 				   3, 3, 3),
2731*077365a9SGeert Uytterhoeven 			     GROUP(
2732*077365a9SGeert Uytterhoeven 
2733*077365a9SGeert Uytterhoeven 		/* IP10_31 [1] */
2734*077365a9SGeert Uytterhoeven 		0, 0,
2735*077365a9SGeert Uytterhoeven 		/* IP10_30 [1] */
2736*077365a9SGeert Uytterhoeven 		0, 0,
2737*077365a9SGeert Uytterhoeven 		/* IP10_29 [1] */
2738*077365a9SGeert Uytterhoeven 		0, 0,
2739*077365a9SGeert Uytterhoeven 		/* IP10_28 [1] */
2740*077365a9SGeert Uytterhoeven 		0, 0,
2741*077365a9SGeert Uytterhoeven 		/* IP10_27 [1] */
2742*077365a9SGeert Uytterhoeven 		0, 0,
2743*077365a9SGeert Uytterhoeven 		/* IP10_26 [1] */
2744*077365a9SGeert Uytterhoeven 		0, 0,
2745*077365a9SGeert Uytterhoeven 		/* IP10_25 [1] */
2746*077365a9SGeert Uytterhoeven 		0, 0,
2747*077365a9SGeert Uytterhoeven 		/* IP10_24_22 [3] */
2748*077365a9SGeert Uytterhoeven 		FN_SD2_WP_A,	FN_VI1_DATA15,	FN_EX_WAIT2_B,	FN_DACK0_B,
2749*077365a9SGeert Uytterhoeven 		FN_HSPI_TX2_B,	FN_CAN_CLK_C,	0,		0,
2750*077365a9SGeert Uytterhoeven 		/* IP10_21_19 [3] */
2751*077365a9SGeert Uytterhoeven 		FN_SD2_CD_A,	FN_VI1_DATA14,	FN_EX_WAIT1_B,	FN_DREQ0_B,
2752*077365a9SGeert Uytterhoeven 		FN_HSPI_RX2_B,	FN_REMOCON_A,	0,		0,
2753*077365a9SGeert Uytterhoeven 		/* IP10_18_16 [3] */
2754*077365a9SGeert Uytterhoeven 		FN_SD2_DAT3_A,	FN_VI1_DATA13,	FN_DACK2_B,	FN_ATAG1,
2755*077365a9SGeert Uytterhoeven 		FN_HSPI_CS2_B,	FN_GPSIN_B,	0,		0,
2756*077365a9SGeert Uytterhoeven 		/* IP10_15_13 [3] */
2757*077365a9SGeert Uytterhoeven 		FN_SD2_DAT2_A,	FN_VI1_DATA12,	FN_DREQ2_B,	FN_ATADIR1,
2758*077365a9SGeert Uytterhoeven 		FN_HSPI_CLK2_B,	FN_GPSCLK_B,	0,		0,
2759*077365a9SGeert Uytterhoeven 		/* IP10_12_9 [4] */
2760*077365a9SGeert Uytterhoeven 		FN_SD2_DAT1_A,	FN_DU1_CDE,	FN_ATACS11,	FN_DACK1_B,
2761*077365a9SGeert Uytterhoeven 		FN_ETH_MAGIC,	FN_CAN1_TX_A,	0,		FN_PWM6,
2762*077365a9SGeert Uytterhoeven 		0, 0, 0, 0,
2763*077365a9SGeert Uytterhoeven 		0, 0, 0, 0,
2764*077365a9SGeert Uytterhoeven 		/* IP10_8_6 [3] */
2765*077365a9SGeert Uytterhoeven 		FN_SD2_DAT0_A,	FN_DU1_DISP,	FN_ATACS01,	FN_DREQ1_B,
2766*077365a9SGeert Uytterhoeven 		FN_ETH_LINK,	FN_CAN1_RX_A,	0,		0,
2767*077365a9SGeert Uytterhoeven 		/* IP10_5_3 [3] */
2768*077365a9SGeert Uytterhoeven 		FN_SD2_CMD_A,	FN_DU1_EXODDF_DU1_ODDF_DISP_CDE,
2769*077365a9SGeert Uytterhoeven 		FN_ATAWR1,	FN_ETH_MDIO,
2770*077365a9SGeert Uytterhoeven 		FN_SCL1_B,	0,
2771*077365a9SGeert Uytterhoeven 		0,		0,
2772*077365a9SGeert Uytterhoeven 		/* IP10_2_0 [3] */
2773*077365a9SGeert Uytterhoeven 		FN_SD2_CLK_A,	FN_DU1_EXVSYNC_DU1_VSYNC,
2774*077365a9SGeert Uytterhoeven 		FN_ATARD1,	FN_ETH_MDC,
2775*077365a9SGeert Uytterhoeven 		FN_SDA1_B,	0,
2776*077365a9SGeert Uytterhoeven 		0,		0,
2777*077365a9SGeert Uytterhoeven 		))
2778*077365a9SGeert Uytterhoeven 	},
2779*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("MOD_SEL0", 0xfffc0050, 32,
2780*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 2, 2, 3, 2, 2, 1, 1, 1, 1, 2,
2781*077365a9SGeert Uytterhoeven 				   1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1),
2782*077365a9SGeert Uytterhoeven 			     GROUP(
2783*077365a9SGeert Uytterhoeven 
2784*077365a9SGeert Uytterhoeven 		/* SEL 31  [1] */
2785*077365a9SGeert Uytterhoeven 		0, 0,
2786*077365a9SGeert Uytterhoeven 		/* SEL_30 (SCIF5) [1] */
2787*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF5_A,		FN_SEL_SCIF5_B,
2788*077365a9SGeert Uytterhoeven 		/* SEL_29_28 (SCIF4) [2] */
2789*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF4_A,		FN_SEL_SCIF4_B,
2790*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF4_C,		0,
2791*077365a9SGeert Uytterhoeven 		/* SEL_27_26 (SCIF3) [2] */
2792*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF3_A,		FN_SEL_SCIF3_B,
2793*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF3_C,		FN_SEL_SCIF3_D,
2794*077365a9SGeert Uytterhoeven 		/* SEL_25_23 (SCIF2) [3] */
2795*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF2_A,		FN_SEL_SCIF2_B,
2796*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF2_C,		FN_SEL_SCIF2_D,
2797*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF2_E,		0,
2798*077365a9SGeert Uytterhoeven 		0,			0,
2799*077365a9SGeert Uytterhoeven 		/* SEL_22_21 (SCIF1) [2] */
2800*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF1_A,		FN_SEL_SCIF1_B,
2801*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF1_C,		FN_SEL_SCIF1_D,
2802*077365a9SGeert Uytterhoeven 		/* SEL_20_19 (SCIF0) [2] */
2803*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF0_A,		FN_SEL_SCIF0_B,
2804*077365a9SGeert Uytterhoeven 		FN_SEL_SCIF0_C,		FN_SEL_SCIF0_D,
2805*077365a9SGeert Uytterhoeven 		/* SEL_18 [1] */
2806*077365a9SGeert Uytterhoeven 		0, 0,
2807*077365a9SGeert Uytterhoeven 		/* SEL_17 (SSI2) [1] */
2808*077365a9SGeert Uytterhoeven 		FN_SEL_SSI2_A,		FN_SEL_SSI2_B,
2809*077365a9SGeert Uytterhoeven 		/* SEL_16 (SSI1) [1] */
2810*077365a9SGeert Uytterhoeven 		FN_SEL_SSI1_A,		FN_SEL_SSI1_B,
2811*077365a9SGeert Uytterhoeven 		/* SEL_15 (VI1) [1] */
2812*077365a9SGeert Uytterhoeven 		FN_SEL_VI1_A,		FN_SEL_VI1_B,
2813*077365a9SGeert Uytterhoeven 		/* SEL_14_13 (VI0) [2] */
2814*077365a9SGeert Uytterhoeven 		FN_SEL_VI0_A,		FN_SEL_VI0_B,
2815*077365a9SGeert Uytterhoeven 		FN_SEL_VI0_C,		FN_SEL_VI0_D,
2816*077365a9SGeert Uytterhoeven 		/* SEL_12 [1] */
2817*077365a9SGeert Uytterhoeven 		0, 0,
2818*077365a9SGeert Uytterhoeven 		/* SEL_11 (SD2) [1] */
2819*077365a9SGeert Uytterhoeven 		FN_SEL_SD2_A,		FN_SEL_SD2_B,
2820*077365a9SGeert Uytterhoeven 		/* SEL_10 (SD1) [1] */
2821*077365a9SGeert Uytterhoeven 		FN_SEL_SD1_A,		FN_SEL_SD1_B,
2822*077365a9SGeert Uytterhoeven 		/* SEL_9 (IRQ3) [1] */
2823*077365a9SGeert Uytterhoeven 		FN_SEL_IRQ3_A,		FN_SEL_IRQ3_B,
2824*077365a9SGeert Uytterhoeven 		/* SEL_8_7 (IRQ2) [2] */
2825*077365a9SGeert Uytterhoeven 		FN_SEL_IRQ2_A,		FN_SEL_IRQ2_B,
2826*077365a9SGeert Uytterhoeven 		FN_SEL_IRQ2_C,		0,
2827*077365a9SGeert Uytterhoeven 		/* SEL_6 (IRQ1) [1] */
2828*077365a9SGeert Uytterhoeven 		FN_SEL_IRQ1_A,		FN_SEL_IRQ1_B,
2829*077365a9SGeert Uytterhoeven 		/* SEL_5 [1] */
2830*077365a9SGeert Uytterhoeven 		0, 0,
2831*077365a9SGeert Uytterhoeven 		/* SEL_4 (DREQ2) [1] */
2832*077365a9SGeert Uytterhoeven 		FN_SEL_DREQ2_A,		FN_SEL_DREQ2_B,
2833*077365a9SGeert Uytterhoeven 		/* SEL_3 (DREQ1) [1] */
2834*077365a9SGeert Uytterhoeven 		FN_SEL_DREQ1_A,		FN_SEL_DREQ1_B,
2835*077365a9SGeert Uytterhoeven 		/* SEL_2 (DREQ0) [1] */
2836*077365a9SGeert Uytterhoeven 		FN_SEL_DREQ0_A,		FN_SEL_DREQ0_B,
2837*077365a9SGeert Uytterhoeven 		/* SEL_1 (WAIT2) [1] */
2838*077365a9SGeert Uytterhoeven 		FN_SEL_WAIT2_A,		FN_SEL_WAIT2_B,
2839*077365a9SGeert Uytterhoeven 		/* SEL_0 (WAIT1) [1] */
2840*077365a9SGeert Uytterhoeven 		FN_SEL_WAIT1_A,		FN_SEL_WAIT1_B,
2841*077365a9SGeert Uytterhoeven 		))
2842*077365a9SGeert Uytterhoeven 	},
2843*077365a9SGeert Uytterhoeven 	{ PINMUX_CFG_REG_VAR("MOD_SEL1", 0xfffc0054, 32,
2844*077365a9SGeert Uytterhoeven 			     GROUP(1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1,
2845*077365a9SGeert Uytterhoeven 				   1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 2, 2, 1),
2846*077365a9SGeert Uytterhoeven 			     GROUP(
2847*077365a9SGeert Uytterhoeven 
2848*077365a9SGeert Uytterhoeven 		/* SEL_31 [1] */
2849*077365a9SGeert Uytterhoeven 		0, 0,
2850*077365a9SGeert Uytterhoeven 		/* SEL_30 [1] */
2851*077365a9SGeert Uytterhoeven 		0, 0,
2852*077365a9SGeert Uytterhoeven 		/* SEL_29 [1] */
2853*077365a9SGeert Uytterhoeven 		0, 0,
2854*077365a9SGeert Uytterhoeven 		/* SEL_28 [1] */
2855*077365a9SGeert Uytterhoeven 		0, 0,
2856*077365a9SGeert Uytterhoeven 		/* SEL_27 (CAN1) [1] */
2857*077365a9SGeert Uytterhoeven 		FN_SEL_CAN1_A,		FN_SEL_CAN1_B,
2858*077365a9SGeert Uytterhoeven 		/* SEL_26 (CAN0) [1] */
2859*077365a9SGeert Uytterhoeven 		FN_SEL_CAN0_A,		FN_SEL_CAN0_B,
2860*077365a9SGeert Uytterhoeven 		/* SEL_25_24 (CANCLK) [2] */
2861*077365a9SGeert Uytterhoeven 		FN_SEL_CANCLK_A,	FN_SEL_CANCLK_B,
2862*077365a9SGeert Uytterhoeven 		FN_SEL_CANCLK_C,	FN_SEL_CANCLK_D,
2863*077365a9SGeert Uytterhoeven 		/* SEL_23 (HSCIF1) [1] */
2864*077365a9SGeert Uytterhoeven 		FN_SEL_HSCIF1_A,	FN_SEL_HSCIF1_B,
2865*077365a9SGeert Uytterhoeven 		/* SEL_22 (HSCIF0) [1] */
2866*077365a9SGeert Uytterhoeven 		FN_SEL_HSCIF0_A,	FN_SEL_HSCIF0_B,
2867*077365a9SGeert Uytterhoeven 		/* SEL_21 [1] */
2868*077365a9SGeert Uytterhoeven 		0, 0,
2869*077365a9SGeert Uytterhoeven 		/* SEL_20 [1] */
2870*077365a9SGeert Uytterhoeven 		0, 0,
2871*077365a9SGeert Uytterhoeven 		/* SEL_19 [1] */
2872*077365a9SGeert Uytterhoeven 		0, 0,
2873*077365a9SGeert Uytterhoeven 		/* SEL_18 [1] */
2874*077365a9SGeert Uytterhoeven 		0, 0,
2875*077365a9SGeert Uytterhoeven 		/* SEL_17 [1] */
2876*077365a9SGeert Uytterhoeven 		0, 0,
2877*077365a9SGeert Uytterhoeven 		/* SEL_16 [1] */
2878*077365a9SGeert Uytterhoeven 		0, 0,
2879*077365a9SGeert Uytterhoeven 		/* SEL_15 [1] */
2880*077365a9SGeert Uytterhoeven 		0, 0,
2881*077365a9SGeert Uytterhoeven 		/* SEL_14_13 (REMOCON) [2] */
2882*077365a9SGeert Uytterhoeven 		FN_SEL_REMOCON_A,	FN_SEL_REMOCON_B,
2883*077365a9SGeert Uytterhoeven 		FN_SEL_REMOCON_C,	0,
2884*077365a9SGeert Uytterhoeven 		/* SEL_12_11 (FM) [2] */
2885*077365a9SGeert Uytterhoeven 		FN_SEL_FM_A,		FN_SEL_FM_B,
2886*077365a9SGeert Uytterhoeven 		FN_SEL_FM_C,		FN_SEL_FM_D,
2887*077365a9SGeert Uytterhoeven 		/* SEL_10_9 (GPS) [2] */
2888*077365a9SGeert Uytterhoeven 		FN_SEL_GPS_A,		FN_SEL_GPS_B,
2889*077365a9SGeert Uytterhoeven 		FN_SEL_GPS_C,		0,
2890*077365a9SGeert Uytterhoeven 		/* SEL_8 (TSIF0) [1] */
2891*077365a9SGeert Uytterhoeven 		FN_SEL_TSIF0_A,		FN_SEL_TSIF0_B,
2892*077365a9SGeert Uytterhoeven 		/* SEL_7 (HSPI2) [1] */
2893*077365a9SGeert Uytterhoeven 		FN_SEL_HSPI2_A,		FN_SEL_HSPI2_B,
2894*077365a9SGeert Uytterhoeven 		/* SEL_6 (HSPI1) [1] */
2895*077365a9SGeert Uytterhoeven 		FN_SEL_HSPI1_A,		FN_SEL_HSPI1_B,
2896*077365a9SGeert Uytterhoeven 		/* SEL_5 (HSPI0) [1] */
2897*077365a9SGeert Uytterhoeven 		FN_SEL_HSPI0_A,		FN_SEL_HSPI0_B,
2898*077365a9SGeert Uytterhoeven 		/* SEL_4_3 (I2C3) [2] */
2899*077365a9SGeert Uytterhoeven 		FN_SEL_I2C3_A,		FN_SEL_I2C3_B,
2900*077365a9SGeert Uytterhoeven 		FN_SEL_I2C3_C,		0,
2901*077365a9SGeert Uytterhoeven 		/* SEL_2_1 (I2C2) [2] */
2902*077365a9SGeert Uytterhoeven 		FN_SEL_I2C2_A,		FN_SEL_I2C2_B,
2903*077365a9SGeert Uytterhoeven 		FN_SEL_I2C2_C,		0,
2904*077365a9SGeert Uytterhoeven 		/* SEL_0 (I2C1) [1] */
2905*077365a9SGeert Uytterhoeven 		FN_SEL_I2C1_A,		FN_SEL_I2C1_B,
2906*077365a9SGeert Uytterhoeven 		))
2907*077365a9SGeert Uytterhoeven 	},
2908*077365a9SGeert Uytterhoeven 	{ },
2909*077365a9SGeert Uytterhoeven };
2910*077365a9SGeert Uytterhoeven 
2911*077365a9SGeert Uytterhoeven static const struct pinmux_bias_reg pinmux_bias_regs[] = {
2912*077365a9SGeert Uytterhoeven 	{ PINMUX_BIAS_REG("PUPR0", 0x100, "N/A", 0) {
2913*077365a9SGeert Uytterhoeven 		[ 0] = RCAR_GP_PIN(0,  6),	/* A0 */
2914*077365a9SGeert Uytterhoeven 		[ 1] = RCAR_GP_PIN(0,  7),	/* A1 */
2915*077365a9SGeert Uytterhoeven 		[ 2] = RCAR_GP_PIN(0,  8),	/* A2 */
2916*077365a9SGeert Uytterhoeven 		[ 3] = RCAR_GP_PIN(0,  9),	/* A3 */
2917*077365a9SGeert Uytterhoeven 		[ 4] = RCAR_GP_PIN(0, 10),	/* A4 */
2918*077365a9SGeert Uytterhoeven 		[ 5] = RCAR_GP_PIN(0, 11),	/* A5 */
2919*077365a9SGeert Uytterhoeven 		[ 6] = RCAR_GP_PIN(0, 12),	/* A6 */
2920*077365a9SGeert Uytterhoeven 		[ 7] = RCAR_GP_PIN(0, 13),	/* A7 */
2921*077365a9SGeert Uytterhoeven 		[ 8] = RCAR_GP_PIN(0, 14),	/* A8 */
2922*077365a9SGeert Uytterhoeven 		[ 9] = RCAR_GP_PIN(0, 15),	/* A9 */
2923*077365a9SGeert Uytterhoeven 		[10] = RCAR_GP_PIN(0, 16),	/* A10 */
2924*077365a9SGeert Uytterhoeven 		[11] = RCAR_GP_PIN(0, 17),	/* A11 */
2925*077365a9SGeert Uytterhoeven 		[12] = RCAR_GP_PIN(0, 18),	/* A12 */
2926*077365a9SGeert Uytterhoeven 		[13] = RCAR_GP_PIN(0, 19),	/* A13 */
2927*077365a9SGeert Uytterhoeven 		[14] = RCAR_GP_PIN(0, 20),	/* A14 */
2928*077365a9SGeert Uytterhoeven 		[15] = RCAR_GP_PIN(0, 21),	/* A15 */
2929*077365a9SGeert Uytterhoeven 		[16] = RCAR_GP_PIN(0, 22),	/* A16 */
2930*077365a9SGeert Uytterhoeven 		[17] = RCAR_GP_PIN(0, 23),	/* A17 */
2931*077365a9SGeert Uytterhoeven 		[18] = RCAR_GP_PIN(0, 24),	/* A18 */
2932*077365a9SGeert Uytterhoeven 		[19] = RCAR_GP_PIN(0, 25),	/* A19 */
2933*077365a9SGeert Uytterhoeven 		[20] = RCAR_GP_PIN(0, 26),	/* A20 */
2934*077365a9SGeert Uytterhoeven 		[21] = RCAR_GP_PIN(0, 27),	/* A21 */
2935*077365a9SGeert Uytterhoeven 		[22] = RCAR_GP_PIN(0, 28),	/* A22 */
2936*077365a9SGeert Uytterhoeven 		[23] = RCAR_GP_PIN(0, 29),	/* A23 */
2937*077365a9SGeert Uytterhoeven 		[24] = RCAR_GP_PIN(0, 30),	/* A24 */
2938*077365a9SGeert Uytterhoeven 		[25] = RCAR_GP_PIN(0, 31),	/* A25 */
2939*077365a9SGeert Uytterhoeven 		[26] = RCAR_GP_PIN(1,  3),	/* /EX_CS0 */
2940*077365a9SGeert Uytterhoeven 		[27] = RCAR_GP_PIN(1,  4),	/* /EX_CS1 */
2941*077365a9SGeert Uytterhoeven 		[28] = RCAR_GP_PIN(1,  5),	/* /EX_CS2 */
2942*077365a9SGeert Uytterhoeven 		[29] = RCAR_GP_PIN(1,  6),	/* /EX_CS3 */
2943*077365a9SGeert Uytterhoeven 		[30] = RCAR_GP_PIN(1,  7),	/* /EX_CS4 */
2944*077365a9SGeert Uytterhoeven 		[31] = RCAR_GP_PIN(1,  8),	/* /EX_CS5 */
2945*077365a9SGeert Uytterhoeven 	} },
2946*077365a9SGeert Uytterhoeven 	{ PINMUX_BIAS_REG("PUPR1", 0x104, "N/A", 0) {
2947*077365a9SGeert Uytterhoeven 		[ 0] = RCAR_GP_PIN(0,  0),	/* /PRESETOUT	*/
2948*077365a9SGeert Uytterhoeven 		[ 1] = RCAR_GP_PIN(0,  5),	/* /BS		*/
2949*077365a9SGeert Uytterhoeven 		[ 2] = RCAR_GP_PIN(1,  0),	/* RD//WR	*/
2950*077365a9SGeert Uytterhoeven 		[ 3] = RCAR_GP_PIN(1,  1),	/* /WE0		*/
2951*077365a9SGeert Uytterhoeven 		[ 4] = RCAR_GP_PIN(1,  2),	/* /WE1		*/
2952*077365a9SGeert Uytterhoeven 		[ 5] = RCAR_GP_PIN(1, 11),	/* EX_WAIT0	*/
2953*077365a9SGeert Uytterhoeven 		[ 6] = RCAR_GP_PIN(1,  9),	/* DREQ0	*/
2954*077365a9SGeert Uytterhoeven 		[ 7] = RCAR_GP_PIN(1, 10),	/* DACK0	*/
2955*077365a9SGeert Uytterhoeven 		[ 8] = RCAR_GP_PIN(1, 12),	/* IRQ0		*/
2956*077365a9SGeert Uytterhoeven 		[ 9] = RCAR_GP_PIN(1, 13),	/* IRQ1		*/
2957*077365a9SGeert Uytterhoeven 		[10] = SH_PFC_PIN_NONE,
2958*077365a9SGeert Uytterhoeven 		[11] = SH_PFC_PIN_NONE,
2959*077365a9SGeert Uytterhoeven 		[12] = SH_PFC_PIN_NONE,
2960*077365a9SGeert Uytterhoeven 		[13] = SH_PFC_PIN_NONE,
2961*077365a9SGeert Uytterhoeven 		[14] = SH_PFC_PIN_NONE,
2962*077365a9SGeert Uytterhoeven 		[15] = SH_PFC_PIN_NONE,
2963*077365a9SGeert Uytterhoeven 		[16] = SH_PFC_PIN_NONE,
2964*077365a9SGeert Uytterhoeven 		[17] = SH_PFC_PIN_NONE,
2965*077365a9SGeert Uytterhoeven 		[18] = SH_PFC_PIN_NONE,
2966*077365a9SGeert Uytterhoeven 		[19] = SH_PFC_PIN_NONE,
2967*077365a9SGeert Uytterhoeven 		[20] = SH_PFC_PIN_NONE,
2968*077365a9SGeert Uytterhoeven 		[21] = SH_PFC_PIN_NONE,
2969*077365a9SGeert Uytterhoeven 		[22] = SH_PFC_PIN_NONE,
2970*077365a9SGeert Uytterhoeven 		[23] = SH_PFC_PIN_NONE,
2971*077365a9SGeert Uytterhoeven 		[24] = SH_PFC_PIN_NONE,
2972*077365a9SGeert Uytterhoeven 		[25] = SH_PFC_PIN_NONE,
2973*077365a9SGeert Uytterhoeven 		[26] = SH_PFC_PIN_NONE,
2974*077365a9SGeert Uytterhoeven 		[27] = SH_PFC_PIN_NONE,
2975*077365a9SGeert Uytterhoeven 		[28] = SH_PFC_PIN_NONE,
2976*077365a9SGeert Uytterhoeven 		[29] = SH_PFC_PIN_NONE,
2977*077365a9SGeert Uytterhoeven 		[30] = SH_PFC_PIN_NONE,
2978*077365a9SGeert Uytterhoeven 		[31] = SH_PFC_PIN_NONE,
2979*077365a9SGeert Uytterhoeven 	} },
2980*077365a9SGeert Uytterhoeven 	{ PINMUX_BIAS_REG("PUPR2", 0x108, "N/A", 0) {
2981*077365a9SGeert Uytterhoeven 		[ 0] = RCAR_GP_PIN(1, 22),	/* DU0_DR0	*/
2982*077365a9SGeert Uytterhoeven 		[ 1] = RCAR_GP_PIN(1, 23),	/* DU0_DR1	*/
2983*077365a9SGeert Uytterhoeven 		[ 2] = RCAR_GP_PIN(1, 24),	/* DU0_DR2	*/
2984*077365a9SGeert Uytterhoeven 		[ 3] = RCAR_GP_PIN(1, 25),	/* DU0_DR3	*/
2985*077365a9SGeert Uytterhoeven 		[ 4] = RCAR_GP_PIN(1, 26),	/* DU0_DR4	*/
2986*077365a9SGeert Uytterhoeven 		[ 5] = RCAR_GP_PIN(1, 27),	/* DU0_DR5	*/
2987*077365a9SGeert Uytterhoeven 		[ 6] = RCAR_GP_PIN(1, 28),	/* DU0_DR6	*/
2988*077365a9SGeert Uytterhoeven 		[ 7] = RCAR_GP_PIN(1, 29),	/* DU0_DR7	*/
2989*077365a9SGeert Uytterhoeven 		[ 8] = RCAR_GP_PIN(1, 30),	/* DU0_DG0	*/
2990*077365a9SGeert Uytterhoeven 		[ 9] = RCAR_GP_PIN(1, 31),	/* DU0_DG1	*/
2991*077365a9SGeert Uytterhoeven 		[10] = RCAR_GP_PIN(2,  0),	/* DU0_DG2	*/
2992*077365a9SGeert Uytterhoeven 		[11] = RCAR_GP_PIN(2,  1),	/* DU0_DG3	*/
2993*077365a9SGeert Uytterhoeven 		[12] = RCAR_GP_PIN(2,  2),	/* DU0_DG4	*/
2994*077365a9SGeert Uytterhoeven 		[13] = RCAR_GP_PIN(2,  3),	/* DU0_DG5	*/
2995*077365a9SGeert Uytterhoeven 		[14] = RCAR_GP_PIN(2,  4),	/* DU0_DG6	*/
2996*077365a9SGeert Uytterhoeven 		[15] = RCAR_GP_PIN(2,  5),	/* DU0_DG7	*/
2997*077365a9SGeert Uytterhoeven 		[16] = RCAR_GP_PIN(2,  6),	/* DU0_DB0	*/
2998*077365a9SGeert Uytterhoeven 		[17] = RCAR_GP_PIN(2,  7),	/* DU0_DB1	*/
2999*077365a9SGeert Uytterhoeven 		[18] = RCAR_GP_PIN(2,  8),	/* DU0_DB2	*/
3000*077365a9SGeert Uytterhoeven 		[19] = RCAR_GP_PIN(2,  9),	/* DU0_DB3	*/
3001*077365a9SGeert Uytterhoeven 		[20] = RCAR_GP_PIN(2, 10),	/* DU0_DB4	*/
3002*077365a9SGeert Uytterhoeven 		[21] = RCAR_GP_PIN(2, 11),	/* DU0_DB5	*/
3003*077365a9SGeert Uytterhoeven 		[22] = RCAR_GP_PIN(2, 12),	/* DU0_DB6	*/
3004*077365a9SGeert Uytterhoeven 		[23] = RCAR_GP_PIN(2, 13),	/* DU0_DB7	*/
3005*077365a9SGeert Uytterhoeven 		[24] = RCAR_GP_PIN(2, 14),	/* DU0_DOTCLKIN	*/
3006*077365a9SGeert Uytterhoeven 		[25] = RCAR_GP_PIN(2, 15),	/* DU0_DOTCLKOUT0 */
3007*077365a9SGeert Uytterhoeven 		[26] = RCAR_GP_PIN(2, 17),	/* DU0_HSYNC	*/
3008*077365a9SGeert Uytterhoeven 		[27] = RCAR_GP_PIN(2, 18),	/* DU0_VSYNC	*/
3009*077365a9SGeert Uytterhoeven 		[28] = RCAR_GP_PIN(2, 19),	/* DU0_EXODDF	*/
3010*077365a9SGeert Uytterhoeven 		[29] = RCAR_GP_PIN(2, 20),	/* DU0_DISP	*/
3011*077365a9SGeert Uytterhoeven 		[30] = RCAR_GP_PIN(2, 21),	/* DU0_CDE	*/
3012*077365a9SGeert Uytterhoeven 		[31] = RCAR_GP_PIN(2, 16),	/* DU0_DOTCLKOUT1 */
3013*077365a9SGeert Uytterhoeven 	} },
3014*077365a9SGeert Uytterhoeven 	{ PINMUX_BIAS_REG("PUPR3", 0x10c, "N/A", 0) {
3015*077365a9SGeert Uytterhoeven 		[ 0] = RCAR_GP_PIN(3, 24),	/* VI0_CLK	*/
3016*077365a9SGeert Uytterhoeven 		[ 1] = RCAR_GP_PIN(3, 25),	/* VI0_CLKENB	*/
3017*077365a9SGeert Uytterhoeven 		[ 2] = RCAR_GP_PIN(3, 26),	/* VI0_FIELD	*/
3018*077365a9SGeert Uytterhoeven 		[ 3] = RCAR_GP_PIN(3, 27),	/* /VI0_HSYNC	*/
3019*077365a9SGeert Uytterhoeven 		[ 4] = RCAR_GP_PIN(3, 28),	/* /VI0_VSYNC	*/
3020*077365a9SGeert Uytterhoeven 		[ 5] = RCAR_GP_PIN(3, 29),	/* VI0_DATA0	*/
3021*077365a9SGeert Uytterhoeven 		[ 6] = RCAR_GP_PIN(3, 30),	/* VI0_DATA1	*/
3022*077365a9SGeert Uytterhoeven 		[ 7] = RCAR_GP_PIN(3, 31),	/* VI0_DATA2	*/
3023*077365a9SGeert Uytterhoeven 		[ 8] = RCAR_GP_PIN(4,  0),	/* VI0_DATA3	*/
3024*077365a9SGeert Uytterhoeven 		[ 9] = RCAR_GP_PIN(4,  1),	/* VI0_DATA4	*/
3025*077365a9SGeert Uytterhoeven 		[10] = RCAR_GP_PIN(4,  2),	/* VI0_DATA5	*/
3026*077365a9SGeert Uytterhoeven 		[11] = RCAR_GP_PIN(4,  3),	/* VI0_DATA6	*/
3027*077365a9SGeert Uytterhoeven 		[12] = RCAR_GP_PIN(4,  4),	/* VI0_DATA7	*/
3028*077365a9SGeert Uytterhoeven 		[13] = RCAR_GP_PIN(4,  5),	/* VI0_G2	*/
3029*077365a9SGeert Uytterhoeven 		[14] = RCAR_GP_PIN(4,  6),	/* VI0_G3	*/
3030*077365a9SGeert Uytterhoeven 		[15] = RCAR_GP_PIN(4,  7),	/* VI0_G4	*/
3031*077365a9SGeert Uytterhoeven 		[16] = RCAR_GP_PIN(4,  8),	/* VI0_G5	*/
3032*077365a9SGeert Uytterhoeven 		[17] = RCAR_GP_PIN(4, 21),	/* VI1_DATA12	*/
3033*077365a9SGeert Uytterhoeven 		[18] = RCAR_GP_PIN(4, 22),	/* VI1_DATA13	*/
3034*077365a9SGeert Uytterhoeven 		[19] = RCAR_GP_PIN(4, 23),	/* VI1_DATA14	*/
3035*077365a9SGeert Uytterhoeven 		[20] = RCAR_GP_PIN(4, 24),	/* VI1_DATA15	*/
3036*077365a9SGeert Uytterhoeven 		[21] = RCAR_GP_PIN(4,  9),	/* ETH_REF_CLK	*/
3037*077365a9SGeert Uytterhoeven 		[22] = RCAR_GP_PIN(4, 10),	/* ETH_TXD0	*/
3038*077365a9SGeert Uytterhoeven 		[23] = RCAR_GP_PIN(4, 11),	/* ETH_TXD1	*/
3039*077365a9SGeert Uytterhoeven 		[24] = RCAR_GP_PIN(4, 12),	/* ETH_CRS_DV	*/
3040*077365a9SGeert Uytterhoeven 		[25] = RCAR_GP_PIN(4, 13),	/* ETH_TX_EN	*/
3041*077365a9SGeert Uytterhoeven 		[26] = RCAR_GP_PIN(4, 14),	/* ETH_RX_ER	*/
3042*077365a9SGeert Uytterhoeven 		[27] = RCAR_GP_PIN(4, 15),	/* ETH_RXD0	*/
3043*077365a9SGeert Uytterhoeven 		[28] = RCAR_GP_PIN(4, 16),	/* ETH_RXD1	*/
3044*077365a9SGeert Uytterhoeven 		[29] = RCAR_GP_PIN(4, 17),	/* ETH_MDC	*/
3045*077365a9SGeert Uytterhoeven 		[30] = RCAR_GP_PIN(4, 18),	/* ETH_MDIO	*/
3046*077365a9SGeert Uytterhoeven 		[31] = RCAR_GP_PIN(4, 19),	/* ETH_LINK	*/
3047*077365a9SGeert Uytterhoeven 	} },
3048*077365a9SGeert Uytterhoeven 	{ PINMUX_BIAS_REG("PUPR4", 0x110, "N/A", 0) {
3049*077365a9SGeert Uytterhoeven 		[ 0] = RCAR_GP_PIN(3,  6),	/* SSI_SCK012	*/
3050*077365a9SGeert Uytterhoeven 		[ 1] = RCAR_GP_PIN(3,  7),	/* SSI_WS012	*/
3051*077365a9SGeert Uytterhoeven 		[ 2] = RCAR_GP_PIN(3, 10),	/* SSI_SDATA0	*/
3052*077365a9SGeert Uytterhoeven 		[ 3] = RCAR_GP_PIN(3,  9),	/* SSI_SDATA1	*/
3053*077365a9SGeert Uytterhoeven 		[ 4] = RCAR_GP_PIN(3,  8),	/* SSI_SDATA2	*/
3054*077365a9SGeert Uytterhoeven 		[ 5] = RCAR_GP_PIN(3,  2),	/* SSI_SCK34	*/
3055*077365a9SGeert Uytterhoeven 		[ 6] = RCAR_GP_PIN(3,  3),	/* SSI_WS34	*/
3056*077365a9SGeert Uytterhoeven 		[ 7] = RCAR_GP_PIN(3,  5),	/* SSI_SDATA3	*/
3057*077365a9SGeert Uytterhoeven 		[ 8] = RCAR_GP_PIN(3,  4),	/* SSI_SDATA4	*/
3058*077365a9SGeert Uytterhoeven 		[ 9] = RCAR_GP_PIN(2, 31),	/* SSI_SCK5	*/
3059*077365a9SGeert Uytterhoeven 		[10] = RCAR_GP_PIN(3,  0),	/* SSI_WS5	*/
3060*077365a9SGeert Uytterhoeven 		[11] = RCAR_GP_PIN(3,  1),	/* SSI_SDATA5	*/
3061*077365a9SGeert Uytterhoeven 		[12] = RCAR_GP_PIN(2, 28),	/* SSI_SCK6	*/
3062*077365a9SGeert Uytterhoeven 		[13] = RCAR_GP_PIN(2, 29),	/* SSI_WS6	*/
3063*077365a9SGeert Uytterhoeven 		[14] = RCAR_GP_PIN(2, 30),	/* SSI_SDATA6	*/
3064*077365a9SGeert Uytterhoeven 		[15] = RCAR_GP_PIN(2, 24),	/* SSI_SCK78	*/
3065*077365a9SGeert Uytterhoeven 		[16] = RCAR_GP_PIN(2, 25),	/* SSI_WS78	*/
3066*077365a9SGeert Uytterhoeven 		[17] = RCAR_GP_PIN(2, 27),	/* SSI_SDATA7	*/
3067*077365a9SGeert Uytterhoeven 		[18] = RCAR_GP_PIN(2, 26),	/* SSI_SDATA8	*/
3068*077365a9SGeert Uytterhoeven 		[19] = RCAR_GP_PIN(3, 23),	/* TCLK0	*/
3069*077365a9SGeert Uytterhoeven 		[20] = RCAR_GP_PIN(3, 11),	/* SD0_CLK	*/
3070*077365a9SGeert Uytterhoeven 		[21] = RCAR_GP_PIN(3, 12),	/* SD0_CMD	*/
3071*077365a9SGeert Uytterhoeven 		[22] = RCAR_GP_PIN(3, 13),	/* SD0_DAT0	*/
3072*077365a9SGeert Uytterhoeven 		[23] = RCAR_GP_PIN(3, 14),	/* SD0_DAT1	*/
3073*077365a9SGeert Uytterhoeven 		[24] = RCAR_GP_PIN(3, 15),	/* SD0_DAT2	*/
3074*077365a9SGeert Uytterhoeven 		[25] = RCAR_GP_PIN(3, 16),	/* SD0_DAT3	*/
3075*077365a9SGeert Uytterhoeven 		[26] = RCAR_GP_PIN(3, 17),	/* SD0_CD	*/
3076*077365a9SGeert Uytterhoeven 		[27] = RCAR_GP_PIN(3, 18),	/* SD0_WP	*/
3077*077365a9SGeert Uytterhoeven 		[28] = RCAR_GP_PIN(2, 22),	/* AUDIO_CLKA	*/
3078*077365a9SGeert Uytterhoeven 		[29] = RCAR_GP_PIN(2, 23),	/* AUDIO_CLKB	*/
3079*077365a9SGeert Uytterhoeven 		[30] = RCAR_GP_PIN(1, 14),	/* IRQ2		*/
3080*077365a9SGeert Uytterhoeven 		[31] = RCAR_GP_PIN(1, 15),	/* IRQ3		*/
3081*077365a9SGeert Uytterhoeven 	} },
3082*077365a9SGeert Uytterhoeven 	{ PINMUX_BIAS_REG("PUPR5", 0x114, "N/A", 0) {
3083*077365a9SGeert Uytterhoeven 		[ 0] = RCAR_GP_PIN(0,  1),	/* PENC0	*/
3084*077365a9SGeert Uytterhoeven 		[ 1] = RCAR_GP_PIN(0,  2),	/* PENC1	*/
3085*077365a9SGeert Uytterhoeven 		[ 2] = RCAR_GP_PIN(0,  3),	/* USB_OVC0	*/
3086*077365a9SGeert Uytterhoeven 		[ 3] = RCAR_GP_PIN(0,  4),	/* USB_OVC1	*/
3087*077365a9SGeert Uytterhoeven 		[ 4] = RCAR_GP_PIN(1, 16),	/* SCIF_CLK	*/
3088*077365a9SGeert Uytterhoeven 		[ 5] = RCAR_GP_PIN(1, 17),	/* TX0		*/
3089*077365a9SGeert Uytterhoeven 		[ 6] = RCAR_GP_PIN(1, 18),	/* RX0		*/
3090*077365a9SGeert Uytterhoeven 		[ 7] = RCAR_GP_PIN(1, 19),	/* SCK0		*/
3091*077365a9SGeert Uytterhoeven 		[ 8] = RCAR_GP_PIN(1, 20),	/* /CTS0	*/
3092*077365a9SGeert Uytterhoeven 		[ 9] = RCAR_GP_PIN(1, 21),	/* /RTS0	*/
3093*077365a9SGeert Uytterhoeven 		[10] = RCAR_GP_PIN(3, 19),	/* HSPI_CLK0	*/
3094*077365a9SGeert Uytterhoeven 		[11] = RCAR_GP_PIN(3, 20),	/* /HSPI_CS0	*/
3095*077365a9SGeert Uytterhoeven 		[12] = RCAR_GP_PIN(3, 21),	/* HSPI_RX0	*/
3096*077365a9SGeert Uytterhoeven 		[13] = RCAR_GP_PIN(3, 22),	/* HSPI_TX0	*/
3097*077365a9SGeert Uytterhoeven 		[14] = RCAR_GP_PIN(4, 20),	/* ETH_MAGIC	*/
3098*077365a9SGeert Uytterhoeven 		[15] = RCAR_GP_PIN(4, 25),	/* AVS1		*/
3099*077365a9SGeert Uytterhoeven 		[16] = RCAR_GP_PIN(4, 26),	/* AVS2		*/
3100*077365a9SGeert Uytterhoeven 		[17] = SH_PFC_PIN_NONE,
3101*077365a9SGeert Uytterhoeven 		[18] = SH_PFC_PIN_NONE,
3102*077365a9SGeert Uytterhoeven 		[19] = SH_PFC_PIN_NONE,
3103*077365a9SGeert Uytterhoeven 		[20] = SH_PFC_PIN_NONE,
3104*077365a9SGeert Uytterhoeven 		[21] = SH_PFC_PIN_NONE,
3105*077365a9SGeert Uytterhoeven 		[22] = SH_PFC_PIN_NONE,
3106*077365a9SGeert Uytterhoeven 		[23] = SH_PFC_PIN_NONE,
3107*077365a9SGeert Uytterhoeven 		[24] = SH_PFC_PIN_NONE,
3108*077365a9SGeert Uytterhoeven 		[25] = SH_PFC_PIN_NONE,
3109*077365a9SGeert Uytterhoeven 		[26] = SH_PFC_PIN_NONE,
3110*077365a9SGeert Uytterhoeven 		[27] = SH_PFC_PIN_NONE,
3111*077365a9SGeert Uytterhoeven 		[28] = SH_PFC_PIN_NONE,
3112*077365a9SGeert Uytterhoeven 		[29] = SH_PFC_PIN_NONE,
3113*077365a9SGeert Uytterhoeven 		[30] = SH_PFC_PIN_NONE,
3114*077365a9SGeert Uytterhoeven 		[31] = SH_PFC_PIN_NONE,
3115*077365a9SGeert Uytterhoeven 	} },
3116*077365a9SGeert Uytterhoeven 	{ /* sentinel */ },
3117*077365a9SGeert Uytterhoeven };
3118*077365a9SGeert Uytterhoeven 
3119*077365a9SGeert Uytterhoeven static unsigned int r8a7778_pinmux_get_bias(struct sh_pfc *pfc,
3120*077365a9SGeert Uytterhoeven 					    unsigned int pin)
3121*077365a9SGeert Uytterhoeven {
3122*077365a9SGeert Uytterhoeven 	const struct pinmux_bias_reg *reg;
3123*077365a9SGeert Uytterhoeven 	void __iomem *addr;
3124*077365a9SGeert Uytterhoeven 	unsigned int bit;
3125*077365a9SGeert Uytterhoeven 
3126*077365a9SGeert Uytterhoeven 	reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit);
3127*077365a9SGeert Uytterhoeven 	if (!reg)
3128*077365a9SGeert Uytterhoeven 		return PIN_CONFIG_BIAS_DISABLE;
3129*077365a9SGeert Uytterhoeven 
3130*077365a9SGeert Uytterhoeven 	addr = pfc->windows->virt + reg->puen;
3131*077365a9SGeert Uytterhoeven 
3132*077365a9SGeert Uytterhoeven 	if (ioread32(addr) & BIT(bit))
3133*077365a9SGeert Uytterhoeven 		return PIN_CONFIG_BIAS_PULL_UP;
3134*077365a9SGeert Uytterhoeven 	else
3135*077365a9SGeert Uytterhoeven 		return PIN_CONFIG_BIAS_DISABLE;
3136*077365a9SGeert Uytterhoeven }
3137*077365a9SGeert Uytterhoeven 
3138*077365a9SGeert Uytterhoeven static void r8a7778_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
3139*077365a9SGeert Uytterhoeven 				   unsigned int bias)
3140*077365a9SGeert Uytterhoeven {
3141*077365a9SGeert Uytterhoeven 	const struct pinmux_bias_reg *reg;
3142*077365a9SGeert Uytterhoeven 	void __iomem *addr;
3143*077365a9SGeert Uytterhoeven 	unsigned int bit;
3144*077365a9SGeert Uytterhoeven 	u32 value;
3145*077365a9SGeert Uytterhoeven 
3146*077365a9SGeert Uytterhoeven 	reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit);
3147*077365a9SGeert Uytterhoeven 	if (!reg)
3148*077365a9SGeert Uytterhoeven 		return;
3149*077365a9SGeert Uytterhoeven 
3150*077365a9SGeert Uytterhoeven 	addr = pfc->windows->virt + reg->puen;
3151*077365a9SGeert Uytterhoeven 
3152*077365a9SGeert Uytterhoeven 	value = ioread32(addr) & ~BIT(bit);
3153*077365a9SGeert Uytterhoeven 	if (bias == PIN_CONFIG_BIAS_PULL_UP)
3154*077365a9SGeert Uytterhoeven 		value |= BIT(bit);
3155*077365a9SGeert Uytterhoeven 	iowrite32(value, addr);
3156*077365a9SGeert Uytterhoeven }
3157*077365a9SGeert Uytterhoeven 
3158*077365a9SGeert Uytterhoeven static const struct sh_pfc_soc_operations r8a7778_pfc_ops = {
3159*077365a9SGeert Uytterhoeven 	.get_bias = r8a7778_pinmux_get_bias,
3160*077365a9SGeert Uytterhoeven 	.set_bias = r8a7778_pinmux_set_bias,
3161*077365a9SGeert Uytterhoeven };
3162*077365a9SGeert Uytterhoeven 
3163*077365a9SGeert Uytterhoeven const struct sh_pfc_soc_info r8a7778_pinmux_info = {
3164*077365a9SGeert Uytterhoeven 	.name = "r8a7778_pfc",
3165*077365a9SGeert Uytterhoeven 	.ops  = &r8a7778_pfc_ops,
3166*077365a9SGeert Uytterhoeven 
3167*077365a9SGeert Uytterhoeven 	.unlock_reg = 0xfffc0000, /* PMMR */
3168*077365a9SGeert Uytterhoeven 
3169*077365a9SGeert Uytterhoeven 	.function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
3170*077365a9SGeert Uytterhoeven 
3171*077365a9SGeert Uytterhoeven 	.pins = pinmux_pins,
3172*077365a9SGeert Uytterhoeven 	.nr_pins = ARRAY_SIZE(pinmux_pins),
3173*077365a9SGeert Uytterhoeven 
3174*077365a9SGeert Uytterhoeven 	.groups = pinmux_groups,
3175*077365a9SGeert Uytterhoeven 	.nr_groups = ARRAY_SIZE(pinmux_groups),
3176*077365a9SGeert Uytterhoeven 
3177*077365a9SGeert Uytterhoeven 	.functions = pinmux_functions,
3178*077365a9SGeert Uytterhoeven 	.nr_functions = ARRAY_SIZE(pinmux_functions),
3179*077365a9SGeert Uytterhoeven 
3180*077365a9SGeert Uytterhoeven 	.cfg_regs = pinmux_config_regs,
3181*077365a9SGeert Uytterhoeven 	.bias_regs = pinmux_bias_regs,
3182*077365a9SGeert Uytterhoeven 
3183*077365a9SGeert Uytterhoeven 	.pinmux_data = pinmux_data,
3184*077365a9SGeert Uytterhoeven 	.pinmux_data_size = ARRAY_SIZE(pinmux_data),
3185*077365a9SGeert Uytterhoeven };
3186