2 * r8a7792 processor support - PFC hardware block.
4 * Copyright (C) 2013-2014 Renesas Electronics Corporation
5 * Copyright (C) 2016 Cogent Embedded, Inc., <source@cogentembedded.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2
9 * as published by the Free Software Foundation.
12 #include <linux/kernel.h>
17 #define CPU_ALL_PORT(fn, sfx) \
18 PORT_GP_29(0, fn, sfx), \
19 PORT_GP_23(1, fn, sfx), \
20 PORT_GP_32(2, fn, sfx), \
21 PORT_GP_28(3, fn, sfx), \
22 PORT_GP_17(4, fn, sfx), \
23 PORT_GP_17(5, fn, sfx), \
24 PORT_GP_17(6, fn, sfx), \
25 PORT_GP_17(7, fn, sfx), \
26 PORT_GP_17(8, fn, sfx), \
27 PORT_GP_17(9, fn, sfx), \
28 PORT_GP_32(10, fn, sfx), \
29 PORT_GP_30(11, fn, sfx)
38 PINMUX_FUNCTION_BEGIN
,
42 FN_IP0_0
, FN_IP0_1
, FN_IP0_2
, FN_IP0_3
, FN_IP0_4
, FN_IP0_5
,
43 FN_IP0_6
, FN_IP0_7
, FN_IP0_8
, FN_IP0_9
, FN_IP0_10
, FN_IP0_11
,
44 FN_IP0_12
, FN_IP0_13
, FN_IP0_14
, FN_IP0_15
, FN_IP0_16
,
45 FN_IP0_17
, FN_IP0_18
, FN_IP0_19
, FN_IP0_20
, FN_IP0_21
,
46 FN_IP0_22
, FN_IP0_23
, FN_IP1_0
, FN_IP1_1
, FN_IP1_2
,
50 FN_IP1_5
, FN_IP1_6
, FN_IP1_7
, FN_IP1_8
, FN_IP1_9
, FN_IP1_10
,
51 FN_IP1_11
, FN_IP1_12
, FN_IP1_13
, FN_IP1_14
, FN_IP1_15
, FN_IP1_16
,
52 FN_DU1_DB2_C0_DATA12
, FN_DU1_DB3_C1_DATA13
, FN_DU1_DB4_C2_DATA14
,
53 FN_DU1_DB5_C3_DATA15
, FN_DU1_DB6_C4
, FN_DU1_DB7_C5
,
54 FN_DU1_EXHSYNC_DU1_HSYNC
, FN_DU1_EXVSYNC_DU1_VSYNC
,
55 FN_DU1_EXODDF_DU1_ODDF_DISP_CDE
, FN_DU1_DISP
, FN_DU1_CDE
,
58 FN_D0
, FN_D1
, FN_D2
, FN_D3
, FN_D4
, FN_D5
, FN_D6
, FN_D7
,
59 FN_D8
, FN_D9
, FN_D10
, FN_D11
, FN_D12
, FN_D13
, FN_D14
, FN_D15
,
60 FN_A0
, FN_A1
, FN_A2
, FN_A3
, FN_A4
, FN_A5
, FN_A6
, FN_A7
,
61 FN_A8
, FN_A9
, FN_A10
, FN_A11
, FN_A12
, FN_A13
, FN_A14
, FN_A15
,
64 FN_A16
, FN_A17
, FN_A18
, FN_A19
, FN_IP1_17
, FN_IP1_18
,
65 FN_CS1_N_A26
, FN_EX_CS0_N
, FN_EX_CS1_N
, FN_EX_CS2_N
, FN_EX_CS3_N
,
66 FN_EX_CS4_N
, FN_EX_CS5_N
, FN_BS_N
, FN_RD_N
, FN_RD_WR_N
,
67 FN_WE0_N
, FN_WE1_N
, FN_EX_WAIT0
, FN_IRQ0
, FN_IRQ1
, FN_IRQ2
, FN_IRQ3
,
68 FN_IP1_19
, FN_IP1_20
, FN_IP1_21
, FN_IP1_22
, FN_CS0_N
,
71 FN_VI0_CLK
, FN_VI0_CLKENB
, FN_VI0_HSYNC_N
, FN_VI0_VSYNC_N
,
72 FN_VI0_D0_B0_C0
, FN_VI0_D1_B1_C1
, FN_VI0_D2_B2_C2
, FN_VI0_D3_B3_C3
,
73 FN_VI0_D4_B4_C4
, FN_VI0_D5_B5_C5
, FN_VI0_D6_B6_C6
, FN_VI0_D7_B7_C7
,
74 FN_VI0_D8_G0_Y0
, FN_VI0_D9_G1_Y1
, FN_VI0_D10_G2_Y2
, FN_VI0_D11_G3_Y3
,
78 FN_VI1_CLK
, FN_VI1_CLKENB
, FN_VI1_HSYNC_N
, FN_VI1_VSYNC_N
,
79 FN_VI1_D0_B0_C0
, FN_VI1_D1_B1_C1
, FN_VI1_D2_B2_C2
, FN_VI1_D3_B3_C3
,
80 FN_VI1_D4_B4_C4
, FN_VI1_D5_B5_C5
, FN_VI1_D6_B6_C6
, FN_VI1_D7_B7_C7
,
81 FN_VI1_D8_G0_Y0
, FN_VI1_D9_G1_Y1
, FN_VI1_D10_G2_Y2
, FN_VI1_D11_G3_Y3
,
85 FN_IP2_0
, FN_IP2_1
, FN_IP2_2
, FN_IP2_3
, FN_IP2_4
, FN_IP2_5
, FN_IP2_6
,
86 FN_IP2_7
, FN_IP2_8
, FN_IP2_9
, FN_IP2_10
, FN_IP2_11
, FN_IP2_12
,
87 FN_IP2_13
, FN_IP2_14
, FN_IP2_15
, FN_IP2_16
,
90 FN_IP3_0
, FN_IP3_1
, FN_IP3_2
, FN_IP3_3
, FN_IP3_4
, FN_IP3_5
, FN_IP3_6
,
91 FN_IP3_7
, FN_IP3_8
, FN_IP3_9
, FN_IP3_10
, FN_IP3_11
, FN_IP3_12
,
92 FN_IP3_13
, FN_VI3_D10_Y2
, FN_IP3_14
, FN_VI3_FIELD
,
95 FN_VI4_CLK
, FN_IP4_0
, FN_IP4_1
, FN_IP4_3_2
, FN_IP4_4
, FN_IP4_6_5
,
96 FN_IP4_8_7
, FN_IP4_10_9
, FN_IP4_12_11
, FN_IP4_14_13
, FN_IP4_16_15
,
97 FN_IP4_18_17
, FN_IP4_20_19
, FN_IP4_21
, FN_IP4_22
, FN_IP4_23
, FN_IP4_24
,
100 FN_VI5_CLK
, FN_IP5_0
, FN_IP5_1
, FN_IP5_2
, FN_IP5_3
, FN_IP5_4
, FN_IP5_5
,
101 FN_IP5_6
, FN_IP5_7
, FN_IP5_8
, FN_IP5_9
, FN_IP5_10
, FN_IP5_11
,
102 FN_VI5_D9_Y1
, FN_VI5_D10_Y2
, FN_VI5_D11_Y3
, FN_VI5_FIELD
,
105 FN_IP6_0
, FN_IP6_1
, FN_HRTS0_N
, FN_IP6_2
, FN_IP6_3
, FN_IP6_4
, FN_IP6_5
,
106 FN_HCTS1_N
, FN_IP6_6
, FN_IP6_7
, FN_SCK0
, FN_CTS0_N
, FN_RTS0_N
,
107 FN_TX0
, FN_RX0
, FN_SCK1
, FN_CTS1_N
, FN_RTS1_N
, FN_TX1
, FN_RX1
,
108 FN_IP6_9_8
, FN_IP6_11_10
, FN_IP6_13_12
, FN_IP6_15_14
, FN_IP6_16
,
109 FN_IP6_18_17
, FN_SCIF_CLK
, FN_CAN0_TX
, FN_CAN0_RX
, FN_CAN_CLK
,
110 FN_CAN1_TX
, FN_CAN1_RX
,
113 FN_IP7_1_0
, FN_IP7_3_2
, FN_IP7_5_4
, FN_IP7_6
, FN_IP7_7
, FN_SD0_CLK
,
114 FN_SD0_CMD
, FN_SD0_DAT0
, FN_SD0_DAT1
, FN_SD0_DAT2
, FN_SD0_DAT3
,
115 FN_SD0_CD
, FN_SD0_WP
, FN_IP7_9_8
, FN_IP7_11_10
, FN_IP7_13_12
,
116 FN_IP7_15_14
, FN_IP7_16
, FN_IP7_17
, FN_IP7_18
, FN_IP7_19
, FN_IP7_20
,
117 FN_ADICLK
, FN_ADICS_SAMP
, FN_ADIDATA
, FN_ADICHS0
, FN_ADICHS1
,
118 FN_ADICHS2
, FN_AVS1
, FN_AVS2
,
121 FN_DU0_DR0_DATA0
, FN_DU0_DR1_DATA1
, FN_DU0_DR2_Y4_DATA2
,
122 FN_DU0_DR3_Y5_DATA3
, FN_DU0_DR4_Y6_DATA4
, FN_DU0_DR5_Y7_DATA5
,
123 FN_DU0_DR6_Y8_DATA6
, FN_DU0_DR7_Y9_DATA7
, FN_DU0_DG0_DATA8
,
124 FN_DU0_DG1_DATA9
, FN_DU0_DG2_C6_DATA10
, FN_DU0_DG3_C7_DATA11
,
125 FN_DU0_DG4_Y0_DATA12
, FN_DU0_DG5_Y1_DATA13
, FN_DU0_DG6_Y2_DATA14
,
126 FN_DU0_DG7_Y3_DATA15
, FN_DU0_DB0
, FN_DU0_DB1
, FN_DU0_DB2_C0
,
127 FN_DU0_DB3_C1
, FN_DU0_DB4_C2
, FN_DU0_DB5_C3
, FN_DU0_DB6_C4
,
131 FN_DU0_EXHSYNC_DU0_HSYNC
, FN_DU0_EXVSYNC_DU0_VSYNC
,
132 FN_DU0_EXODDF_DU0_ODDF_DISP_CDE
, FN_DU0_DISP
, FN_DU0_CDE
,
133 FN_DU1_DR2_Y4_DATA0
, FN_DU1_DR3_Y5_DATA1
, FN_DU1_DR4_Y6_DATA2
,
134 FN_DU1_DR5_Y7_DATA3
, FN_DU1_DR6_DATA4
, FN_DU1_DR7_DATA5
,
135 FN_DU1_DG2_C6_DATA6
, FN_DU1_DG3_C7_DATA7
, FN_DU1_DG4_Y0_DATA8
,
136 FN_DU1_DG5_Y1_DATA9
, FN_DU1_DG6_Y2_DATA10
, FN_DU1_DG7_Y3_DATA11
,
137 FN_A20
, FN_MOSI_IO0
, FN_A21
, FN_MISO_IO1
, FN_A22
, FN_IO2
,
138 FN_A23
, FN_IO3
, FN_A24
, FN_SPCLK
, FN_A25
, FN_SSL
,
141 FN_VI2_CLK
, FN_AVB_RX_CLK
, FN_VI2_CLKENB
, FN_AVB_RX_DV
,
142 FN_VI2_HSYNC_N
, FN_AVB_RXD0
, FN_VI2_VSYNC_N
, FN_AVB_RXD1
,
143 FN_VI2_D0_C0
, FN_AVB_RXD2
, FN_VI2_D1_C1
, FN_AVB_RXD3
,
144 FN_VI2_D2_C2
, FN_AVB_RXD4
, FN_VI2_D3_C3
, FN_AVB_RXD5
,
145 FN_VI2_D4_C4
, FN_AVB_RXD6
, FN_VI2_D5_C5
, FN_AVB_RXD7
,
146 FN_VI2_D6_C6
, FN_AVB_RX_ER
, FN_VI2_D7_C7
, FN_AVB_COL
,
147 FN_VI2_D8_Y0
, FN_AVB_TXD3
, FN_VI2_D9_Y1
, FN_AVB_TX_EN
,
148 FN_VI2_D10_Y2
, FN_AVB_TXD0
, FN_VI2_D11_Y3
, FN_AVB_TXD1
,
149 FN_VI2_FIELD
, FN_AVB_TXD2
,
152 FN_VI3_CLK
, FN_AVB_TX_CLK
, FN_VI3_CLKENB
, FN_AVB_TXD4
,
153 FN_VI3_HSYNC_N
, FN_AVB_TXD5
, FN_VI3_VSYNC_N
, FN_AVB_TXD6
,
154 FN_VI3_D0_C0
, FN_AVB_TXD7
, FN_VI3_D1_C1
, FN_AVB_TX_ER
,
155 FN_VI3_D2_C2
, FN_AVB_GTX_CLK
, FN_VI3_D3_C3
, FN_AVB_MDC
,
156 FN_VI3_D4_C4
, FN_AVB_MDIO
, FN_VI3_D5_C5
, FN_AVB_LINK
,
157 FN_VI3_D6_C6
, FN_AVB_MAGIC
, FN_VI3_D7_C7
, FN_AVB_PHY_INT
,
158 FN_VI3_D8_Y0
, FN_AVB_CRS
, FN_VI3_D9_Y1
, FN_AVB_GTXREFCLK
,
159 FN_VI3_D11_Y3
, FN_AVB_AVTP_MATCH
,
162 FN_VI4_CLKENB
, FN_VI0_D12_G4_Y4
, FN_VI4_HSYNC_N
, FN_VI0_D13_G5_Y5
,
163 FN_VI4_VSYNC_N
, FN_VI0_D14_G6_Y6
, FN_RDR_CLKOUT
,
164 FN_VI4_D0_C0
, FN_VI0_D15_G7_Y7
,
165 FN_VI4_D1_C1
, FN_VI0_D16_R0
, FN_VI1_D12_G4_Y4
,
166 FN_VI4_D2_C2
, FN_VI0_D17_R1
, FN_VI1_D13_G5_Y5
,
167 FN_VI4_D3_C3
, FN_VI0_D18_R2
, FN_VI1_D14_G6_Y6
,
168 FN_VI4_D4_C4
, FN_VI0_D19_R3
, FN_VI1_D15_G7_Y7
,
169 FN_VI4_D5_C5
, FN_VI0_D20_R4
, FN_VI2_D12_Y4
,
170 FN_VI4_D6_C6
, FN_VI0_D21_R5
, FN_VI2_D13_Y5
,
171 FN_VI4_D7_C7
, FN_VI0_D22_R6
, FN_VI2_D14_Y6
,
172 FN_VI4_D8_Y0
, FN_VI0_D23_R7
, FN_VI2_D15_Y7
,
173 FN_VI4_D9_Y1
, FN_VI3_D12_Y4
, FN_VI4_D10_Y2
, FN_VI3_D13_Y5
,
174 FN_VI4_D11_Y3
, FN_VI3_D14_Y6
, FN_VI4_FIELD
, FN_VI3_D15_Y7
,
177 FN_VI5_CLKENB
, FN_VI1_D12_G4_Y4_B
, FN_VI5_HSYNC_N
, FN_VI1_D13_G5_Y5_B
,
178 FN_VI5_VSYNC_N
, FN_VI1_D14_G6_Y6_B
, FN_VI5_D0_C0
, FN_VI1_D15_G7_Y7_B
,
179 FN_VI5_D1_C1
, FN_VI1_D16_R0
, FN_VI5_D2_C2
, FN_VI1_D17_R1
,
180 FN_VI5_D3_C3
, FN_VI1_D18_R2
, FN_VI5_D4_C4
, FN_VI1_D19_R3
,
181 FN_VI5_D5_C5
, FN_VI1_D20_R4
, FN_VI5_D6_C6
, FN_VI1_D21_R5
,
182 FN_VI5_D7_C7
, FN_VI1_D22_R6
, FN_VI5_D8_Y0
, FN_VI1_D23_R7
,
185 FN_MSIOF0_SCK
, FN_HSCK0
, FN_MSIOF0_SYNC
, FN_HCTS0_N
,
186 FN_MSIOF0_TXD
, FN_HTX0
, FN_MSIOF0_RXD
, FN_HRX0
,
187 FN_MSIOF1_SCK
, FN_HSCK1
, FN_MSIOF1_SYNC
, FN_HRTS1_N
,
188 FN_MSIOF1_TXD
, FN_HTX1
, FN_MSIOF1_RXD
, FN_HRX1
,
189 FN_DRACK0
, FN_SCK2
, FN_DACK0
, FN_TX2
, FN_DREQ0_N
, FN_RX2
,
190 FN_DACK1
, FN_SCK3
, FN_TX3
, FN_DREQ1_N
, FN_RX3
,
193 FN_PWM0
, FN_TCLK1
, FN_FSO_CFE_0
, FN_PWM1
, FN_TCLK2
, FN_FSO_CFE_1
,
194 FN_PWM2
, FN_TCLK3
, FN_FSO_TOE
, FN_PWM3
, FN_PWM4
,
195 FN_SSI_SCK34
, FN_TPU0TO0
, FN_SSI_WS34
, FN_TPU0TO1
,
196 FN_SSI_SDATA3
, FN_TPU0TO2
, FN_SSI_SCK4
, FN_TPU0TO3
,
197 FN_SSI_WS4
, FN_SSI_SDATA4
, FN_AUDIO_CLKOUT
,
198 FN_AUDIO_CLKA
, FN_AUDIO_CLKB
,
201 FN_SEL_VI1_0
, FN_SEL_VI1_1
,
205 DU1_DB2_C0_DATA12_MARK
, DU1_DB3_C1_DATA13_MARK
,
206 DU1_DB4_C2_DATA14_MARK
, DU1_DB5_C3_DATA15_MARK
,
207 DU1_DB6_C4_MARK
, DU1_DB7_C5_MARK
, DU1_EXHSYNC_DU1_HSYNC_MARK
,
208 DU1_EXVSYNC_DU1_VSYNC_MARK
, DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK
,
209 DU1_DISP_MARK
, DU1_CDE_MARK
,
211 D0_MARK
, D1_MARK
, D2_MARK
, D3_MARK
, D4_MARK
, D5_MARK
, D6_MARK
,
212 D7_MARK
, D8_MARK
, D9_MARK
, D10_MARK
, D11_MARK
, D12_MARK
, D13_MARK
,
213 D14_MARK
, D15_MARK
, A0_MARK
, A1_MARK
, A2_MARK
, A3_MARK
, A4_MARK
,
214 A5_MARK
, A6_MARK
, A7_MARK
, A8_MARK
, A9_MARK
, A10_MARK
, A11_MARK
,
215 A12_MARK
, A13_MARK
, A14_MARK
, A15_MARK
,
217 A16_MARK
, A17_MARK
, A18_MARK
, A19_MARK
, CS1_N_A26_MARK
,
218 EX_CS0_N_MARK
, EX_CS1_N_MARK
, EX_CS2_N_MARK
, EX_CS3_N_MARK
,
219 EX_CS4_N_MARK
, EX_CS5_N_MARK
, BS_N_MARK
, RD_N_MARK
, RD_WR_N_MARK
,
220 WE0_N_MARK
, WE1_N_MARK
, EX_WAIT0_MARK
,
221 IRQ0_MARK
, IRQ1_MARK
, IRQ2_MARK
, IRQ3_MARK
, CS0_N_MARK
,
223 VI0_CLK_MARK
, VI0_CLKENB_MARK
, VI0_HSYNC_N_MARK
, VI0_VSYNC_N_MARK
,
224 VI0_D0_B0_C0_MARK
, VI0_D1_B1_C1_MARK
, VI0_D2_B2_C2_MARK
,
225 VI0_D3_B3_C3_MARK
, VI0_D4_B4_C4_MARK
, VI0_D5_B5_C5_MARK
,
226 VI0_D6_B6_C6_MARK
, VI0_D7_B7_C7_MARK
, VI0_D8_G0_Y0_MARK
,
227 VI0_D9_G1_Y1_MARK
, VI0_D10_G2_Y2_MARK
, VI0_D11_G3_Y3_MARK
,
230 VI1_CLK_MARK
, VI1_CLKENB_MARK
, VI1_HSYNC_N_MARK
, VI1_VSYNC_N_MARK
,
231 VI1_D0_B0_C0_MARK
, VI1_D1_B1_C1_MARK
, VI1_D2_B2_C2_MARK
,
232 VI1_D3_B3_C3_MARK
, VI1_D4_B4_C4_MARK
, VI1_D5_B5_C5_MARK
,
233 VI1_D6_B6_C6_MARK
, VI1_D7_B7_C7_MARK
, VI1_D8_G0_Y0_MARK
,
234 VI1_D9_G1_Y1_MARK
, VI1_D10_G2_Y2_MARK
, VI1_D11_G3_Y3_MARK
,
237 VI3_D10_Y2_MARK
, VI3_FIELD_MARK
,
241 VI5_CLK_MARK
, VI5_D9_Y1_MARK
, VI5_D10_Y2_MARK
, VI5_D11_Y3_MARK
,
244 HRTS0_N_MARK
, HCTS1_N_MARK
, SCK0_MARK
, CTS0_N_MARK
, RTS0_N_MARK
,
245 TX0_MARK
, RX0_MARK
, SCK1_MARK
, CTS1_N_MARK
, RTS1_N_MARK
,
246 TX1_MARK
, RX1_MARK
, SCIF_CLK_MARK
, CAN0_TX_MARK
, CAN0_RX_MARK
,
247 CAN_CLK_MARK
, CAN1_TX_MARK
, CAN1_RX_MARK
,
249 SD0_CLK_MARK
, SD0_CMD_MARK
, SD0_DAT0_MARK
, SD0_DAT1_MARK
,
250 SD0_DAT2_MARK
, SD0_DAT3_MARK
, SD0_CD_MARK
, SD0_WP_MARK
,
251 ADICLK_MARK
, ADICS_SAMP_MARK
, ADIDATA_MARK
, ADICHS0_MARK
,
252 ADICHS1_MARK
, ADICHS2_MARK
, AVS1_MARK
, AVS2_MARK
,
255 DU0_DR0_DATA0_MARK
, DU0_DR1_DATA1_MARK
, DU0_DR2_Y4_DATA2_MARK
,
256 DU0_DR3_Y5_DATA3_MARK
, DU0_DR4_Y6_DATA4_MARK
, DU0_DR5_Y7_DATA5_MARK
,
257 DU0_DR6_Y8_DATA6_MARK
, DU0_DR7_Y9_DATA7_MARK
, DU0_DG0_DATA8_MARK
,
258 DU0_DG1_DATA9_MARK
, DU0_DG2_C6_DATA10_MARK
, DU0_DG3_C7_DATA11_MARK
,
259 DU0_DG4_Y0_DATA12_MARK
, DU0_DG5_Y1_DATA13_MARK
, DU0_DG6_Y2_DATA14_MARK
,
260 DU0_DG7_Y3_DATA15_MARK
, DU0_DB0_MARK
, DU0_DB1_MARK
,
261 DU0_DB2_C0_MARK
, DU0_DB3_C1_MARK
, DU0_DB4_C2_MARK
, DU0_DB5_C3_MARK
,
262 DU0_DB6_C4_MARK
, DU0_DB7_C5_MARK
,
265 DU0_EXHSYNC_DU0_HSYNC_MARK
, DU0_EXVSYNC_DU0_VSYNC_MARK
,
266 DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK
, DU0_DISP_MARK
, DU0_CDE_MARK
,
267 DU1_DR2_Y4_DATA0_MARK
, DU1_DR3_Y5_DATA1_MARK
, DU1_DR4_Y6_DATA2_MARK
,
268 DU1_DR5_Y7_DATA3_MARK
, DU1_DR6_DATA4_MARK
, DU1_DR7_DATA5_MARK
,
269 DU1_DG2_C6_DATA6_MARK
, DU1_DG3_C7_DATA7_MARK
, DU1_DG4_Y0_DATA8_MARK
,
270 DU1_DG5_Y1_DATA9_MARK
, DU1_DG6_Y2_DATA10_MARK
, DU1_DG7_Y3_DATA11_MARK
,
271 A20_MARK
, MOSI_IO0_MARK
, A21_MARK
, MISO_IO1_MARK
, A22_MARK
, IO2_MARK
,
272 A23_MARK
, IO3_MARK
, A24_MARK
, SPCLK_MARK
, A25_MARK
, SSL_MARK
,
275 VI2_CLK_MARK
, AVB_RX_CLK_MARK
, VI2_CLKENB_MARK
, AVB_RX_DV_MARK
,
276 VI2_HSYNC_N_MARK
, AVB_RXD0_MARK
, VI2_VSYNC_N_MARK
, AVB_RXD1_MARK
,
277 VI2_D0_C0_MARK
, AVB_RXD2_MARK
, VI2_D1_C1_MARK
, AVB_TX_CLK_MARK
,
278 VI2_D2_C2_MARK
, AVB_RXD4_MARK
, VI2_D3_C3_MARK
, AVB_RXD5_MARK
,
279 VI2_D4_C4_MARK
, AVB_RXD6_MARK
, VI2_D5_C5_MARK
, AVB_RXD7_MARK
,
280 VI2_D6_C6_MARK
, AVB_RX_ER_MARK
, VI2_D7_C7_MARK
, AVB_COL_MARK
,
281 VI2_D8_Y0_MARK
, AVB_RXD3_MARK
, VI2_D9_Y1_MARK
, AVB_TX_EN_MARK
,
282 VI2_D10_Y2_MARK
, AVB_TXD0_MARK
,
283 VI2_D11_Y3_MARK
, AVB_TXD1_MARK
, VI2_FIELD_MARK
, AVB_TXD2_MARK
,
286 VI3_CLK_MARK
, AVB_TXD3_MARK
, VI3_CLKENB_MARK
, AVB_TXD4_MARK
,
287 VI3_HSYNC_N_MARK
, AVB_TXD5_MARK
, VI3_VSYNC_N_MARK
, AVB_TXD6_MARK
,
288 VI3_D0_C0_MARK
, AVB_TXD7_MARK
, VI3_D1_C1_MARK
, AVB_TX_ER_MARK
,
289 VI3_D2_C2_MARK
, AVB_GTX_CLK_MARK
, VI3_D3_C3_MARK
, AVB_MDC_MARK
,
290 VI3_D4_C4_MARK
, AVB_MDIO_MARK
, VI3_D5_C5_MARK
, AVB_LINK_MARK
,
291 VI3_D6_C6_MARK
, AVB_MAGIC_MARK
, VI3_D7_C7_MARK
, AVB_PHY_INT_MARK
,
292 VI3_D8_Y0_MARK
, AVB_CRS_MARK
, VI3_D9_Y1_MARK
, AVB_GTXREFCLK_MARK
,
293 VI3_D11_Y3_MARK
, AVB_AVTP_MATCH_MARK
,
296 VI4_CLKENB_MARK
, VI0_D12_G4_Y4_MARK
, VI4_HSYNC_N_MARK
,
297 VI0_D13_G5_Y5_MARK
, VI4_VSYNC_N_MARK
, VI0_D14_G6_Y6_MARK
,
298 RDR_CLKOUT_MARK
, VI4_D0_C0_MARK
, VI0_D15_G7_Y7_MARK
, VI4_D1_C1_MARK
,
299 VI0_D16_R0_MARK
, VI1_D12_G4_Y4_MARK
, VI4_D2_C2_MARK
, VI0_D17_R1_MARK
,
300 VI1_D13_G5_Y5_MARK
, VI4_D3_C3_MARK
, VI0_D18_R2_MARK
, VI1_D14_G6_Y6_MARK
,
301 VI4_D4_C4_MARK
, VI0_D19_R3_MARK
, VI1_D15_G7_Y7_MARK
, VI4_D5_C5_MARK
,
302 VI0_D20_R4_MARK
, VI2_D12_Y4_MARK
, VI4_D6_C6_MARK
, VI0_D21_R5_MARK
,
303 VI2_D13_Y5_MARK
, VI4_D7_C7_MARK
, VI0_D22_R6_MARK
, VI2_D14_Y6_MARK
,
304 VI4_D8_Y0_MARK
, VI0_D23_R7_MARK
, VI2_D15_Y7_MARK
, VI4_D9_Y1_MARK
,
305 VI3_D12_Y4_MARK
, VI4_D10_Y2_MARK
, VI3_D13_Y5_MARK
, VI4_D11_Y3_MARK
,
306 VI3_D14_Y6_MARK
, VI4_FIELD_MARK
, VI3_D15_Y7_MARK
,
309 VI5_CLKENB_MARK
, VI1_D12_G4_Y4_B_MARK
, VI5_HSYNC_N_MARK
,
310 VI1_D13_G5_Y5_B_MARK
, VI5_VSYNC_N_MARK
, VI1_D14_G6_Y6_B_MARK
,
311 VI5_D0_C0_MARK
, VI1_D15_G7_Y7_B_MARK
, VI5_D1_C1_MARK
, VI1_D16_R0_MARK
,
312 VI5_D2_C2_MARK
, VI1_D17_R1_MARK
, VI5_D3_C3_MARK
, VI1_D18_R2_MARK
,
313 VI5_D4_C4_MARK
, VI1_D19_R3_MARK
, VI5_D5_C5_MARK
, VI1_D20_R4_MARK
,
314 VI5_D6_C6_MARK
, VI1_D21_R5_MARK
, VI5_D7_C7_MARK
, VI1_D22_R6_MARK
,
315 VI5_D8_Y0_MARK
, VI1_D23_R7_MARK
,
318 MSIOF0_SCK_MARK
, HSCK0_MARK
, MSIOF0_SYNC_MARK
, HCTS0_N_MARK
,
319 MSIOF0_TXD_MARK
, HTX0_MARK
, MSIOF0_RXD_MARK
, HRX0_MARK
,
320 MSIOF1_SCK_MARK
, HSCK1_MARK
, MSIOF1_SYNC_MARK
, HRTS1_N_MARK
,
321 MSIOF1_TXD_MARK
, HTX1_MARK
, MSIOF1_RXD_MARK
, HRX1_MARK
,
322 DRACK0_MARK
, SCK2_MARK
, DACK0_MARK
, TX2_MARK
, DREQ0_N_MARK
,
323 RX2_MARK
, DACK1_MARK
, SCK3_MARK
, TX3_MARK
, DREQ1_N_MARK
,
327 PWM0_MARK
, TCLK1_MARK
, FSO_CFE_0_MARK
, PWM1_MARK
, TCLK2_MARK
,
328 FSO_CFE_1_MARK
, PWM2_MARK
, TCLK3_MARK
, FSO_TOE_MARK
, PWM3_MARK
,
329 PWM4_MARK
, SSI_SCK34_MARK
, TPU0TO0_MARK
, SSI_WS34_MARK
, TPU0TO1_MARK
,
330 SSI_SDATA3_MARK
, TPU0TO2_MARK
, SSI_SCK4_MARK
, TPU0TO3_MARK
,
331 SSI_WS4_MARK
, SSI_SDATA4_MARK
, AUDIO_CLKOUT_MARK
, AUDIO_CLKA_MARK
,
336 static const u16 pinmux_data
[] = {
337 PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
339 PINMUX_SINGLE(DU1_DB2_C0_DATA12
),
340 PINMUX_SINGLE(DU1_DB3_C1_DATA13
),
341 PINMUX_SINGLE(DU1_DB4_C2_DATA14
),
342 PINMUX_SINGLE(DU1_DB5_C3_DATA15
),
343 PINMUX_SINGLE(DU1_DB6_C4
),
344 PINMUX_SINGLE(DU1_DB7_C5
),
345 PINMUX_SINGLE(DU1_EXHSYNC_DU1_HSYNC
),
346 PINMUX_SINGLE(DU1_EXVSYNC_DU1_VSYNC
),
347 PINMUX_SINGLE(DU1_EXODDF_DU1_ODDF_DISP_CDE
),
348 PINMUX_SINGLE(DU1_DISP
),
349 PINMUX_SINGLE(DU1_CDE
),
386 PINMUX_SINGLE(CS1_N_A26
),
387 PINMUX_SINGLE(EX_CS0_N
),
388 PINMUX_SINGLE(EX_CS1_N
),
389 PINMUX_SINGLE(EX_CS2_N
),
390 PINMUX_SINGLE(EX_CS3_N
),
391 PINMUX_SINGLE(EX_CS4_N
),
392 PINMUX_SINGLE(EX_CS5_N
),
395 PINMUX_SINGLE(RD_WR_N
),
396 PINMUX_SINGLE(WE0_N
),
397 PINMUX_SINGLE(WE1_N
),
398 PINMUX_SINGLE(EX_WAIT0
),
403 PINMUX_SINGLE(CS0_N
),
404 PINMUX_SINGLE(VI0_CLK
),
405 PINMUX_SINGLE(VI0_CLKENB
),
406 PINMUX_SINGLE(VI0_HSYNC_N
),
407 PINMUX_SINGLE(VI0_VSYNC_N
),
408 PINMUX_SINGLE(VI0_D0_B0_C0
),
409 PINMUX_SINGLE(VI0_D1_B1_C1
),
410 PINMUX_SINGLE(VI0_D2_B2_C2
),
411 PINMUX_SINGLE(VI0_D3_B3_C3
),
412 PINMUX_SINGLE(VI0_D4_B4_C4
),
413 PINMUX_SINGLE(VI0_D5_B5_C5
),
414 PINMUX_SINGLE(VI0_D6_B6_C6
),
415 PINMUX_SINGLE(VI0_D7_B7_C7
),
416 PINMUX_SINGLE(VI0_D8_G0_Y0
),
417 PINMUX_SINGLE(VI0_D9_G1_Y1
),
418 PINMUX_SINGLE(VI0_D10_G2_Y2
),
419 PINMUX_SINGLE(VI0_D11_G3_Y3
),
420 PINMUX_SINGLE(VI0_FIELD
),
421 PINMUX_SINGLE(VI1_CLK
),
422 PINMUX_SINGLE(VI1_CLKENB
),
423 PINMUX_SINGLE(VI1_HSYNC_N
),
424 PINMUX_SINGLE(VI1_VSYNC_N
),
425 PINMUX_SINGLE(VI1_D0_B0_C0
),
426 PINMUX_SINGLE(VI1_D1_B1_C1
),
427 PINMUX_SINGLE(VI1_D2_B2_C2
),
428 PINMUX_SINGLE(VI1_D3_B3_C3
),
429 PINMUX_SINGLE(VI1_D4_B4_C4
),
430 PINMUX_SINGLE(VI1_D5_B5_C5
),
431 PINMUX_SINGLE(VI1_D6_B6_C6
),
432 PINMUX_SINGLE(VI1_D7_B7_C7
),
433 PINMUX_SINGLE(VI1_D8_G0_Y0
),
434 PINMUX_SINGLE(VI1_D9_G1_Y1
),
435 PINMUX_SINGLE(VI1_D10_G2_Y2
),
436 PINMUX_SINGLE(VI1_D11_G3_Y3
),
437 PINMUX_SINGLE(VI1_FIELD
),
438 PINMUX_SINGLE(VI3_D10_Y2
),
439 PINMUX_SINGLE(VI3_FIELD
),
440 PINMUX_SINGLE(VI4_CLK
),
441 PINMUX_SINGLE(VI5_CLK
),
442 PINMUX_SINGLE(VI5_D9_Y1
),
443 PINMUX_SINGLE(VI5_D10_Y2
),
444 PINMUX_SINGLE(VI5_D11_Y3
),
445 PINMUX_SINGLE(VI5_FIELD
),
446 PINMUX_SINGLE(HRTS0_N
),
447 PINMUX_SINGLE(HCTS1_N
),
449 PINMUX_SINGLE(CTS0_N
),
450 PINMUX_SINGLE(RTS0_N
),
454 PINMUX_SINGLE(CTS1_N
),
455 PINMUX_SINGLE(RTS1_N
),
458 PINMUX_SINGLE(SCIF_CLK
),
459 PINMUX_SINGLE(CAN0_TX
),
460 PINMUX_SINGLE(CAN0_RX
),
461 PINMUX_SINGLE(CAN_CLK
),
462 PINMUX_SINGLE(CAN1_TX
),
463 PINMUX_SINGLE(CAN1_RX
),
464 PINMUX_SINGLE(SD0_CLK
),
465 PINMUX_SINGLE(SD0_CMD
),
466 PINMUX_SINGLE(SD0_DAT0
),
467 PINMUX_SINGLE(SD0_DAT1
),
468 PINMUX_SINGLE(SD0_DAT2
),
469 PINMUX_SINGLE(SD0_DAT3
),
470 PINMUX_SINGLE(SD0_CD
),
471 PINMUX_SINGLE(SD0_WP
),
472 PINMUX_SINGLE(ADICLK
),
473 PINMUX_SINGLE(ADICS_SAMP
),
474 PINMUX_SINGLE(ADIDATA
),
475 PINMUX_SINGLE(ADICHS0
),
476 PINMUX_SINGLE(ADICHS1
),
477 PINMUX_SINGLE(ADICHS2
),
482 PINMUX_IPSR_GPSR(IP0_0
, DU0_DR0_DATA0
),
483 PINMUX_IPSR_GPSR(IP0_1
, DU0_DR1_DATA1
),
484 PINMUX_IPSR_GPSR(IP0_2
, DU0_DR2_Y4_DATA2
),
485 PINMUX_IPSR_GPSR(IP0_3
, DU0_DR3_Y5_DATA3
),
486 PINMUX_IPSR_GPSR(IP0_4
, DU0_DR4_Y6_DATA4
),
487 PINMUX_IPSR_GPSR(IP0_5
, DU0_DR5_Y7_DATA5
),
488 PINMUX_IPSR_GPSR(IP0_6
, DU0_DR6_Y8_DATA6
),
489 PINMUX_IPSR_GPSR(IP0_7
, DU0_DR7_Y9_DATA7
),
490 PINMUX_IPSR_GPSR(IP0_8
, DU0_DG0_DATA8
),
491 PINMUX_IPSR_GPSR(IP0_9
, DU0_DG1_DATA9
),
492 PINMUX_IPSR_GPSR(IP0_10
, DU0_DG2_C6_DATA10
),
493 PINMUX_IPSR_GPSR(IP0_11
, DU0_DG3_C7_DATA11
),
494 PINMUX_IPSR_GPSR(IP0_12
, DU0_DG4_Y0_DATA12
),
495 PINMUX_IPSR_GPSR(IP0_13
, DU0_DG5_Y1_DATA13
),
496 PINMUX_IPSR_GPSR(IP0_14
, DU0_DG6_Y2_DATA14
),
497 PINMUX_IPSR_GPSR(IP0_15
, DU0_DG7_Y3_DATA15
),
498 PINMUX_IPSR_GPSR(IP0_16
, DU0_DB0
),
499 PINMUX_IPSR_GPSR(IP0_17
, DU0_DB1
),
500 PINMUX_IPSR_GPSR(IP0_18
, DU0_DB2_C0
),
501 PINMUX_IPSR_GPSR(IP0_19
, DU0_DB3_C1
),
502 PINMUX_IPSR_GPSR(IP0_20
, DU0_DB4_C2
),
503 PINMUX_IPSR_GPSR(IP0_21
, DU0_DB5_C3
),
504 PINMUX_IPSR_GPSR(IP0_22
, DU0_DB6_C4
),
505 PINMUX_IPSR_GPSR(IP0_23
, DU0_DB7_C5
),
508 PINMUX_IPSR_GPSR(IP1_0
, DU0_EXHSYNC_DU0_HSYNC
),
509 PINMUX_IPSR_GPSR(IP1_1
, DU0_EXVSYNC_DU0_VSYNC
),
510 PINMUX_IPSR_GPSR(IP1_2
, DU0_EXODDF_DU0_ODDF_DISP_CDE
),
511 PINMUX_IPSR_GPSR(IP1_3
, DU0_DISP
),
512 PINMUX_IPSR_GPSR(IP1_4
, DU0_CDE
),
513 PINMUX_IPSR_GPSR(IP1_5
, DU1_DR2_Y4_DATA0
),
514 PINMUX_IPSR_GPSR(IP1_6
, DU1_DR3_Y5_DATA1
),
515 PINMUX_IPSR_GPSR(IP1_7
, DU1_DR4_Y6_DATA2
),
516 PINMUX_IPSR_GPSR(IP1_8
, DU1_DR5_Y7_DATA3
),
517 PINMUX_IPSR_GPSR(IP1_9
, DU1_DR6_DATA4
),
518 PINMUX_IPSR_GPSR(IP1_10
, DU1_DR7_DATA5
),
519 PINMUX_IPSR_GPSR(IP1_11
, DU1_DG2_C6_DATA6
),
520 PINMUX_IPSR_GPSR(IP1_12
, DU1_DG3_C7_DATA7
),
521 PINMUX_IPSR_GPSR(IP1_13
, DU1_DG4_Y0_DATA8
),
522 PINMUX_IPSR_GPSR(IP1_14
, DU1_DG5_Y1_DATA9
),
523 PINMUX_IPSR_GPSR(IP1_15
, DU1_DG6_Y2_DATA10
),
524 PINMUX_IPSR_GPSR(IP1_16
, DU1_DG7_Y3_DATA11
),
525 PINMUX_IPSR_GPSR(IP1_17
, A20
),
526 PINMUX_IPSR_GPSR(IP1_17
, MOSI_IO0
),
527 PINMUX_IPSR_GPSR(IP1_18
, A21
),
528 PINMUX_IPSR_GPSR(IP1_18
, MISO_IO1
),
529 PINMUX_IPSR_GPSR(IP1_19
, A22
),
530 PINMUX_IPSR_GPSR(IP1_19
, IO2
),
531 PINMUX_IPSR_GPSR(IP1_20
, A23
),
532 PINMUX_IPSR_GPSR(IP1_20
, IO3
),
533 PINMUX_IPSR_GPSR(IP1_21
, A24
),
534 PINMUX_IPSR_GPSR(IP1_21
, SPCLK
),
535 PINMUX_IPSR_GPSR(IP1_22
, A25
),
536 PINMUX_IPSR_GPSR(IP1_22
, SSL
),
539 PINMUX_IPSR_GPSR(IP2_0
, VI2_CLK
),
540 PINMUX_IPSR_GPSR(IP2_0
, AVB_RX_CLK
),
541 PINMUX_IPSR_GPSR(IP2_1
, VI2_CLKENB
),
542 PINMUX_IPSR_GPSR(IP2_1
, AVB_RX_DV
),
543 PINMUX_IPSR_GPSR(IP2_2
, VI2_HSYNC_N
),
544 PINMUX_IPSR_GPSR(IP2_2
, AVB_RXD0
),
545 PINMUX_IPSR_GPSR(IP2_3
, VI2_VSYNC_N
),
546 PINMUX_IPSR_GPSR(IP2_3
, AVB_RXD1
),
547 PINMUX_IPSR_GPSR(IP2_4
, VI2_D0_C0
),
548 PINMUX_IPSR_GPSR(IP2_4
, AVB_RXD2
),
549 PINMUX_IPSR_GPSR(IP2_5
, VI2_D1_C1
),
550 PINMUX_IPSR_GPSR(IP2_5
, AVB_RXD3
),
551 PINMUX_IPSR_GPSR(IP2_6
, VI2_D2_C2
),
552 PINMUX_IPSR_GPSR(IP2_6
, AVB_RXD4
),
553 PINMUX_IPSR_GPSR(IP2_7
, VI2_D3_C3
),
554 PINMUX_IPSR_GPSR(IP2_7
, AVB_RXD5
),
555 PINMUX_IPSR_GPSR(IP2_8
, VI2_D4_C4
),
556 PINMUX_IPSR_GPSR(IP2_8
, AVB_RXD6
),
557 PINMUX_IPSR_GPSR(IP2_9
, VI2_D5_C5
),
558 PINMUX_IPSR_GPSR(IP2_9
, AVB_RXD7
),
559 PINMUX_IPSR_GPSR(IP2_10
, VI2_D6_C6
),
560 PINMUX_IPSR_GPSR(IP2_10
, AVB_RX_ER
),
561 PINMUX_IPSR_GPSR(IP2_11
, VI2_D7_C7
),
562 PINMUX_IPSR_GPSR(IP2_11
, AVB_COL
),
563 PINMUX_IPSR_GPSR(IP2_12
, VI2_D8_Y0
),
564 PINMUX_IPSR_GPSR(IP2_12
, AVB_TXD3
),
565 PINMUX_IPSR_GPSR(IP2_13
, VI2_D9_Y1
),
566 PINMUX_IPSR_GPSR(IP2_13
, AVB_TX_EN
),
567 PINMUX_IPSR_GPSR(IP2_14
, VI2_D10_Y2
),
568 PINMUX_IPSR_GPSR(IP2_14
, AVB_TXD0
),
569 PINMUX_IPSR_GPSR(IP2_15
, VI2_D11_Y3
),
570 PINMUX_IPSR_GPSR(IP2_15
, AVB_TXD1
),
571 PINMUX_IPSR_GPSR(IP2_16
, VI2_FIELD
),
572 PINMUX_IPSR_GPSR(IP2_16
, AVB_TXD2
),
575 PINMUX_IPSR_GPSR(IP3_0
, VI3_CLK
),
576 PINMUX_IPSR_GPSR(IP3_0
, AVB_TX_CLK
),
577 PINMUX_IPSR_GPSR(IP3_1
, VI3_CLKENB
),
578 PINMUX_IPSR_GPSR(IP3_1
, AVB_TXD4
),
579 PINMUX_IPSR_GPSR(IP3_2
, VI3_HSYNC_N
),
580 PINMUX_IPSR_GPSR(IP3_2
, AVB_TXD5
),
581 PINMUX_IPSR_GPSR(IP3_3
, VI3_VSYNC_N
),
582 PINMUX_IPSR_GPSR(IP3_3
, AVB_TXD6
),
583 PINMUX_IPSR_GPSR(IP3_4
, VI3_D0_C0
),
584 PINMUX_IPSR_GPSR(IP3_4
, AVB_TXD7
),
585 PINMUX_IPSR_GPSR(IP3_5
, VI3_D1_C1
),
586 PINMUX_IPSR_GPSR(IP3_5
, AVB_TX_ER
),
587 PINMUX_IPSR_GPSR(IP3_6
, VI3_D2_C2
),
588 PINMUX_IPSR_GPSR(IP3_6
, AVB_GTX_CLK
),
589 PINMUX_IPSR_GPSR(IP3_7
, VI3_D3_C3
),
590 PINMUX_IPSR_GPSR(IP3_7
, AVB_MDC
),
591 PINMUX_IPSR_GPSR(IP3_8
, VI3_D4_C4
),
592 PINMUX_IPSR_GPSR(IP3_8
, AVB_MDIO
),
593 PINMUX_IPSR_GPSR(IP3_9
, VI3_D5_C5
),
594 PINMUX_IPSR_GPSR(IP3_9
, AVB_LINK
),
595 PINMUX_IPSR_GPSR(IP3_10
, VI3_D6_C6
),
596 PINMUX_IPSR_GPSR(IP3_10
, AVB_MAGIC
),
597 PINMUX_IPSR_GPSR(IP3_11
, VI3_D7_C7
),
598 PINMUX_IPSR_GPSR(IP3_11
, AVB_PHY_INT
),
599 PINMUX_IPSR_GPSR(IP3_12
, VI3_D8_Y0
),
600 PINMUX_IPSR_GPSR(IP3_12
, AVB_CRS
),
601 PINMUX_IPSR_GPSR(IP3_13
, VI3_D9_Y1
),
602 PINMUX_IPSR_GPSR(IP3_13
, AVB_GTXREFCLK
),
603 PINMUX_IPSR_GPSR(IP3_14
, VI3_D11_Y3
),
604 PINMUX_IPSR_GPSR(IP3_14
, AVB_AVTP_MATCH
),
607 PINMUX_IPSR_GPSR(IP4_0
, VI4_CLKENB
),
608 PINMUX_IPSR_GPSR(IP4_0
, VI0_D12_G4_Y4
),
609 PINMUX_IPSR_GPSR(IP4_1
, VI4_HSYNC_N
),
610 PINMUX_IPSR_GPSR(IP4_1
, VI0_D13_G5_Y5
),
611 PINMUX_IPSR_GPSR(IP4_3_2
, VI4_VSYNC_N
),
612 PINMUX_IPSR_GPSR(IP4_3_2
, VI0_D14_G6_Y6
),
613 PINMUX_IPSR_GPSR(IP4_4
, VI4_D0_C0
),
614 PINMUX_IPSR_GPSR(IP4_4
, VI0_D15_G7_Y7
),
615 PINMUX_IPSR_GPSR(IP4_6_5
, VI4_D1_C1
),
616 PINMUX_IPSR_GPSR(IP4_6_5
, VI0_D16_R0
),
617 PINMUX_IPSR_MSEL(IP4_6_5
, VI1_D12_G4_Y4
, SEL_VI1_0
),
618 PINMUX_IPSR_GPSR(IP4_8_7
, VI4_D2_C2
),
619 PINMUX_IPSR_GPSR(IP4_8_7
, VI0_D17_R1
),
620 PINMUX_IPSR_MSEL(IP4_8_7
, VI1_D13_G5_Y5
, SEL_VI1_0
),
621 PINMUX_IPSR_GPSR(IP4_10_9
, VI4_D3_C3
),
622 PINMUX_IPSR_GPSR(IP4_10_9
, VI0_D18_R2
),
623 PINMUX_IPSR_MSEL(IP4_10_9
, VI1_D14_G6_Y6
, SEL_VI1_0
),
624 PINMUX_IPSR_GPSR(IP4_12_11
, VI4_D4_C4
),
625 PINMUX_IPSR_GPSR(IP4_12_11
, VI0_D19_R3
),
626 PINMUX_IPSR_MSEL(IP4_12_11
, VI1_D15_G7_Y7
, SEL_VI1_0
),
627 PINMUX_IPSR_GPSR(IP4_14_13
, VI4_D5_C5
),
628 PINMUX_IPSR_GPSR(IP4_14_13
, VI0_D20_R4
),
629 PINMUX_IPSR_GPSR(IP4_14_13
, VI2_D12_Y4
),
630 PINMUX_IPSR_GPSR(IP4_16_15
, VI4_D6_C6
),
631 PINMUX_IPSR_GPSR(IP4_16_15
, VI0_D21_R5
),
632 PINMUX_IPSR_GPSR(IP4_16_15
, VI2_D13_Y5
),
633 PINMUX_IPSR_GPSR(IP4_18_17
, VI4_D7_C7
),
634 PINMUX_IPSR_GPSR(IP4_18_17
, VI0_D22_R6
),
635 PINMUX_IPSR_GPSR(IP4_18_17
, VI2_D14_Y6
),
636 PINMUX_IPSR_GPSR(IP4_20_19
, VI4_D8_Y0
),
637 PINMUX_IPSR_GPSR(IP4_20_19
, VI0_D23_R7
),
638 PINMUX_IPSR_GPSR(IP4_20_19
, VI2_D15_Y7
),
639 PINMUX_IPSR_GPSR(IP4_21
, VI4_D9_Y1
),
640 PINMUX_IPSR_GPSR(IP4_21
, VI3_D12_Y4
),
641 PINMUX_IPSR_GPSR(IP4_22
, VI4_D10_Y2
),
642 PINMUX_IPSR_GPSR(IP4_22
, VI3_D13_Y5
),
643 PINMUX_IPSR_GPSR(IP4_23
, VI4_D11_Y3
),
644 PINMUX_IPSR_GPSR(IP4_23
, VI3_D14_Y6
),
645 PINMUX_IPSR_GPSR(IP4_24
, VI4_FIELD
),
646 PINMUX_IPSR_GPSR(IP4_24
, VI3_D15_Y7
),
649 PINMUX_IPSR_GPSR(IP5_0
, VI5_CLKENB
),
650 PINMUX_IPSR_MSEL(IP5_0
, VI1_D12_G4_Y4_B
, SEL_VI1_1
),
651 PINMUX_IPSR_GPSR(IP5_1
, VI5_HSYNC_N
),
652 PINMUX_IPSR_MSEL(IP5_1
, VI1_D13_G5_Y5_B
, SEL_VI1_1
),
653 PINMUX_IPSR_GPSR(IP5_2
, VI5_VSYNC_N
),
654 PINMUX_IPSR_MSEL(IP5_2
, VI1_D14_G6_Y6_B
, SEL_VI1_1
),
655 PINMUX_IPSR_GPSR(IP5_3
, VI5_D0_C0
),
656 PINMUX_IPSR_MSEL(IP5_3
, VI1_D15_G7_Y7_B
, SEL_VI1_1
),
657 PINMUX_IPSR_GPSR(IP5_4
, VI5_D1_C1
),
658 PINMUX_IPSR_GPSR(IP5_4
, VI1_D16_R0
),
659 PINMUX_IPSR_GPSR(IP5_5
, VI5_D2_C2
),
660 PINMUX_IPSR_GPSR(IP5_5
, VI1_D17_R1
),
661 PINMUX_IPSR_GPSR(IP5_6
, VI5_D3_C3
),
662 PINMUX_IPSR_GPSR(IP5_6
, VI1_D18_R2
),
663 PINMUX_IPSR_GPSR(IP5_7
, VI5_D4_C4
),
664 PINMUX_IPSR_GPSR(IP5_7
, VI1_D19_R3
),
665 PINMUX_IPSR_GPSR(IP5_8
, VI5_D5_C5
),
666 PINMUX_IPSR_GPSR(IP5_8
, VI1_D20_R4
),
667 PINMUX_IPSR_GPSR(IP5_9
, VI5_D6_C6
),
668 PINMUX_IPSR_GPSR(IP5_9
, VI1_D21_R5
),
669 PINMUX_IPSR_GPSR(IP5_10
, VI5_D7_C7
),
670 PINMUX_IPSR_GPSR(IP5_10
, VI1_D22_R6
),
671 PINMUX_IPSR_GPSR(IP5_11
, VI5_D8_Y0
),
672 PINMUX_IPSR_GPSR(IP5_11
, VI1_D23_R7
),
675 PINMUX_IPSR_GPSR(IP6_0
, MSIOF0_SCK
),
676 PINMUX_IPSR_GPSR(IP6_0
, HSCK0
),
677 PINMUX_IPSR_GPSR(IP6_1
, MSIOF0_SYNC
),
678 PINMUX_IPSR_GPSR(IP6_1
, HCTS0_N
),
679 PINMUX_IPSR_GPSR(IP6_2
, MSIOF0_TXD
),
680 PINMUX_IPSR_GPSR(IP6_2
, HTX0
),
681 PINMUX_IPSR_GPSR(IP6_3
, MSIOF0_RXD
),
682 PINMUX_IPSR_GPSR(IP6_3
, HRX0
),
683 PINMUX_IPSR_GPSR(IP6_4
, MSIOF1_SCK
),
684 PINMUX_IPSR_GPSR(IP6_4
, HSCK1
),
685 PINMUX_IPSR_GPSR(IP6_5
, MSIOF1_SYNC
),
686 PINMUX_IPSR_GPSR(IP6_5
, HRTS1_N
),
687 PINMUX_IPSR_GPSR(IP6_6
, MSIOF1_TXD
),
688 PINMUX_IPSR_GPSR(IP6_6
, HTX1
),
689 PINMUX_IPSR_GPSR(IP6_7
, MSIOF1_RXD
),
690 PINMUX_IPSR_GPSR(IP6_7
, HRX1
),
691 PINMUX_IPSR_GPSR(IP6_9_8
, DRACK0
),
692 PINMUX_IPSR_GPSR(IP6_9_8
, SCK2
),
693 PINMUX_IPSR_GPSR(IP6_11_10
, DACK0
),
694 PINMUX_IPSR_GPSR(IP6_11_10
, TX2
),
695 PINMUX_IPSR_GPSR(IP6_13_12
, DREQ0_N
),
696 PINMUX_IPSR_GPSR(IP6_13_12
, RX2
),
697 PINMUX_IPSR_GPSR(IP6_15_14
, DACK1
),
698 PINMUX_IPSR_GPSR(IP6_15_14
, SCK3
),
699 PINMUX_IPSR_GPSR(IP6_16
, TX3
),
700 PINMUX_IPSR_GPSR(IP6_18_17
, DREQ1_N
),
701 PINMUX_IPSR_GPSR(IP6_18_17
, RX3
),
704 PINMUX_IPSR_GPSR(IP7_1_0
, PWM0
),
705 PINMUX_IPSR_GPSR(IP7_1_0
, TCLK1
),
706 PINMUX_IPSR_GPSR(IP7_1_0
, FSO_CFE_0
),
707 PINMUX_IPSR_GPSR(IP7_3_2
, PWM1
),
708 PINMUX_IPSR_GPSR(IP7_3_2
, TCLK2
),
709 PINMUX_IPSR_GPSR(IP7_3_2
, FSO_CFE_1
),
710 PINMUX_IPSR_GPSR(IP7_5_4
, PWM2
),
711 PINMUX_IPSR_GPSR(IP7_5_4
, TCLK3
),
712 PINMUX_IPSR_GPSR(IP7_5_4
, FSO_TOE
),
713 PINMUX_IPSR_GPSR(IP7_6
, PWM3
),
714 PINMUX_IPSR_GPSR(IP7_7
, PWM4
),
715 PINMUX_IPSR_GPSR(IP7_9_8
, SSI_SCK34
),
716 PINMUX_IPSR_GPSR(IP7_9_8
, TPU0TO0
),
717 PINMUX_IPSR_GPSR(IP7_11_10
, SSI_WS34
),
718 PINMUX_IPSR_GPSR(IP7_11_10
, TPU0TO1
),
719 PINMUX_IPSR_GPSR(IP7_13_12
, SSI_SDATA3
),
720 PINMUX_IPSR_GPSR(IP7_13_12
, TPU0TO2
),
721 PINMUX_IPSR_GPSR(IP7_15_14
, SSI_SCK4
),
722 PINMUX_IPSR_GPSR(IP7_15_14
, TPU0TO3
),
723 PINMUX_IPSR_GPSR(IP7_16
, SSI_WS4
),
724 PINMUX_IPSR_GPSR(IP7_17
, SSI_SDATA4
),
725 PINMUX_IPSR_GPSR(IP7_18
, AUDIO_CLKOUT
),
726 PINMUX_IPSR_GPSR(IP7_19
, AUDIO_CLKA
),
727 PINMUX_IPSR_GPSR(IP7_20
, AUDIO_CLKB
),
730 static const struct sh_pfc_pin pinmux_pins
[] = {
731 PINMUX_GPIO_GP_ALL(),
734 /* - AVB -------------------------------------------------------------------- */
735 static const unsigned int avb_link_pins
[] = {
738 static const unsigned int avb_link_mux
[] = {
741 static const unsigned int avb_magic_pins
[] = {
744 static const unsigned int avb_magic_mux
[] = {
747 static const unsigned int avb_phy_int_pins
[] = {
750 static const unsigned int avb_phy_int_mux
[] = {
753 static const unsigned int avb_mdio_pins
[] = {
754 RCAR_GP_PIN(7, 7), RCAR_GP_PIN(7, 8),
756 static const unsigned int avb_mdio_mux
[] = {
757 AVB_MDC_MARK
, AVB_MDIO_MARK
,
759 static const unsigned int avb_mii_pins
[] = {
760 RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15), RCAR_GP_PIN(6, 16),
763 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3), RCAR_GP_PIN(6, 4),
766 RCAR_GP_PIN(6, 10), RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
767 RCAR_GP_PIN(7, 12), RCAR_GP_PIN(6, 13), RCAR_GP_PIN(7, 5),
768 RCAR_GP_PIN(7, 0), RCAR_GP_PIN(6, 11),
770 static const unsigned int avb_mii_mux
[] = {
771 AVB_TXD0_MARK
, AVB_TXD1_MARK
, AVB_TXD2_MARK
,
774 AVB_RXD0_MARK
, AVB_RXD1_MARK
, AVB_RXD2_MARK
,
777 AVB_RX_ER_MARK
, AVB_RX_CLK_MARK
, AVB_RX_DV_MARK
,
778 AVB_CRS_MARK
, AVB_TX_EN_MARK
, AVB_TX_ER_MARK
,
779 AVB_TX_CLK_MARK
, AVB_COL_MARK
,
781 static const unsigned int avb_gmii_pins
[] = {
782 RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15), RCAR_GP_PIN(6, 16),
783 RCAR_GP_PIN(6, 12), RCAR_GP_PIN(7, 1), RCAR_GP_PIN(7, 2),
784 RCAR_GP_PIN(7, 3), RCAR_GP_PIN(7, 4),
786 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3), RCAR_GP_PIN(6, 4),
787 RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 6), RCAR_GP_PIN(6, 7),
788 RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
790 RCAR_GP_PIN(6, 10), RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
791 RCAR_GP_PIN(7, 12), RCAR_GP_PIN(7, 6), RCAR_GP_PIN(7, 13),
792 RCAR_GP_PIN(6, 13), RCAR_GP_PIN(7, 5), RCAR_GP_PIN(7, 0),
795 static const unsigned int avb_gmii_mux
[] = {
796 AVB_TXD0_MARK
, AVB_TXD1_MARK
, AVB_TXD2_MARK
,
797 AVB_TXD3_MARK
, AVB_TXD4_MARK
, AVB_TXD5_MARK
,
798 AVB_TXD6_MARK
, AVB_TXD7_MARK
,
800 AVB_RXD0_MARK
, AVB_RXD1_MARK
, AVB_RXD2_MARK
,
801 AVB_RXD3_MARK
, AVB_RXD4_MARK
, AVB_RXD5_MARK
,
802 AVB_RXD6_MARK
, AVB_RXD7_MARK
,
804 AVB_RX_ER_MARK
, AVB_RX_CLK_MARK
, AVB_RX_DV_MARK
,
805 AVB_CRS_MARK
, AVB_GTX_CLK_MARK
, AVB_GTXREFCLK_MARK
,
806 AVB_TX_EN_MARK
, AVB_TX_ER_MARK
, AVB_TX_CLK_MARK
,
809 static const unsigned int avb_avtp_match_pins
[] = {
812 static const unsigned int avb_avtp_match_mux
[] = {
815 /* - CAN -------------------------------------------------------------------- */
816 static const unsigned int can0_data_pins
[] = {
818 RCAR_GP_PIN(10, 27), RCAR_GP_PIN(10, 28),
820 static const unsigned int can0_data_mux
[] = {
821 CAN0_TX_MARK
, CAN0_RX_MARK
,
823 static const unsigned int can1_data_pins
[] = {
825 RCAR_GP_PIN(10, 30), RCAR_GP_PIN(10, 31),
827 static const unsigned int can1_data_mux
[] = {
828 CAN1_TX_MARK
, CAN1_RX_MARK
,
830 static const unsigned int can_clk_pins
[] = {
834 static const unsigned int can_clk_mux
[] = {
837 /* - DU --------------------------------------------------------------------- */
838 static const unsigned int du0_rgb666_pins
[] = {
839 /* R[7:2], G[7:2], B[7:2] */
840 RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 5),
841 RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 3), RCAR_GP_PIN(0, 2),
842 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 13),
843 RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
844 RCAR_GP_PIN(0, 23), RCAR_GP_PIN(0, 22), RCAR_GP_PIN(0, 21),
845 RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 18),
847 static const unsigned int du0_rgb666_mux
[] = {
848 DU0_DR7_Y9_DATA7_MARK
, DU0_DR6_Y8_DATA6_MARK
, DU0_DR5_Y7_DATA5_MARK
,
849 DU0_DR4_Y6_DATA4_MARK
, DU0_DR3_Y5_DATA3_MARK
, DU0_DR2_Y4_DATA2_MARK
,
850 DU0_DG7_Y3_DATA15_MARK
, DU0_DG6_Y2_DATA14_MARK
, DU0_DG5_Y1_DATA13_MARK
,
851 DU0_DG4_Y0_DATA12_MARK
, DU0_DG3_C7_DATA11_MARK
, DU0_DG2_C6_DATA10_MARK
,
852 DU0_DB7_C5_MARK
, DU0_DB6_C4_MARK
, DU0_DB5_C3_MARK
,
853 DU0_DB4_C2_MARK
, DU0_DB3_C1_MARK
, DU0_DB2_C0_MARK
,
855 static const unsigned int du0_rgb888_pins
[] = {
856 /* R[7:0], G[7:0], B[7:0] */
857 RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 5),
858 RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 3), RCAR_GP_PIN(0, 2),
859 RCAR_GP_PIN(0, 1), RCAR_GP_PIN(0, 0),
860 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 13),
861 RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
862 RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 8),
863 RCAR_GP_PIN(0, 23), RCAR_GP_PIN(0, 22), RCAR_GP_PIN(0, 21),
864 RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 18),
865 RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
867 static const unsigned int du0_rgb888_mux
[] = {
868 DU0_DR7_Y9_DATA7_MARK
, DU0_DR6_Y8_DATA6_MARK
, DU0_DR5_Y7_DATA5_MARK
,
869 DU0_DR4_Y6_DATA4_MARK
, DU0_DR3_Y5_DATA3_MARK
, DU0_DR2_Y4_DATA2_MARK
,
870 DU0_DR1_DATA1_MARK
, DU0_DR0_DATA0_MARK
,
871 DU0_DG7_Y3_DATA15_MARK
, DU0_DG6_Y2_DATA14_MARK
, DU0_DG5_Y1_DATA13_MARK
,
872 DU0_DG4_Y0_DATA12_MARK
, DU0_DG3_C7_DATA11_MARK
, DU0_DG2_C6_DATA10_MARK
,
873 DU0_DG1_DATA9_MARK
, DU0_DG0_DATA8_MARK
,
874 DU0_DB7_C5_MARK
, DU0_DB6_C4_MARK
, DU0_DB5_C3_MARK
,
875 DU0_DB4_C2_MARK
, DU0_DB3_C1_MARK
, DU0_DB2_C0_MARK
,
876 DU0_DB1_MARK
, DU0_DB0_MARK
,
878 static const unsigned int du0_sync_pins
[] = {
879 /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */
880 RCAR_GP_PIN(0, 25), RCAR_GP_PIN(0, 24),
882 static const unsigned int du0_sync_mux
[] = {
883 DU0_EXVSYNC_DU0_VSYNC_MARK
, DU0_EXHSYNC_DU0_HSYNC_MARK
,
885 static const unsigned int du0_oddf_pins
[] = {
886 /* EXODDF/ODDF/DISP/CDE */
889 static const unsigned int du0_oddf_mux
[] = {
890 DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK
892 static const unsigned int du0_disp_pins
[] = {
896 static const unsigned int du0_disp_mux
[] = {
899 static const unsigned int du0_cde_pins
[] = {
903 static const unsigned int du0_cde_mux
[] = {
906 static const unsigned int du1_rgb666_pins
[] = {
907 /* R[7:2], G[7:2], B[7:2] */
908 RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3),
909 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 0),
910 RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 9),
911 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
912 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 15),
913 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 12),
915 static const unsigned int du1_rgb666_mux
[] = {
916 DU1_DR7_DATA5_MARK
, DU1_DR6_DATA4_MARK
, DU1_DR5_Y7_DATA3_MARK
,
917 DU1_DR4_Y6_DATA2_MARK
, DU1_DR3_Y5_DATA1_MARK
, DU1_DR2_Y4_DATA0_MARK
,
918 DU1_DG7_Y3_DATA11_MARK
, DU1_DG6_Y2_DATA10_MARK
, DU1_DG5_Y1_DATA9_MARK
,
919 DU1_DG4_Y0_DATA8_MARK
, DU1_DG3_C7_DATA7_MARK
, DU1_DG2_C6_DATA6_MARK
,
920 DU1_DB7_C5_MARK
, DU1_DB6_C4_MARK
, DU1_DB5_C3_DATA15_MARK
,
921 DU1_DB4_C2_DATA14_MARK
, DU1_DB3_C1_DATA13_MARK
, DU1_DB2_C0_DATA12_MARK
,
923 static const unsigned int du1_sync_pins
[] = {
924 /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */
925 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
927 static const unsigned int du1_sync_mux
[] = {
928 DU1_EXVSYNC_DU1_VSYNC_MARK
, DU1_EXHSYNC_DU1_HSYNC_MARK
,
930 static const unsigned int du1_oddf_pins
[] = {
931 /* EXODDF/ODDF/DISP/CDE */
934 static const unsigned int du1_oddf_mux
[] = {
935 DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK
937 static const unsigned int du1_disp_pins
[] = {
941 static const unsigned int du1_disp_mux
[] = {
944 static const unsigned int du1_cde_pins
[] = {
948 static const unsigned int du1_cde_mux
[] = {
951 /* - INTC ------------------------------------------------------------------- */
952 static const unsigned int intc_irq0_pins
[] = {
956 static const unsigned int intc_irq0_mux
[] = {
959 static const unsigned int intc_irq1_pins
[] = {
963 static const unsigned int intc_irq1_mux
[] = {
966 static const unsigned int intc_irq2_pins
[] = {
970 static const unsigned int intc_irq2_mux
[] = {
973 static const unsigned int intc_irq3_pins
[] = {
977 static const unsigned int intc_irq3_mux
[] = {
980 /* - LBSC ------------------------------------------------------------------- */
981 static const unsigned int lbsc_cs0_pins
[] = {
985 static const unsigned int lbsc_cs0_mux
[] = {
988 static const unsigned int lbsc_cs1_pins
[] = {
992 static const unsigned int lbsc_cs1_mux
[] = {
995 static const unsigned int lbsc_ex_cs0_pins
[] = {
999 static const unsigned int lbsc_ex_cs0_mux
[] = {
1002 static const unsigned int lbsc_ex_cs1_pins
[] = {
1006 static const unsigned int lbsc_ex_cs1_mux
[] = {
1009 static const unsigned int lbsc_ex_cs2_pins
[] = {
1013 static const unsigned int lbsc_ex_cs2_mux
[] = {
1016 static const unsigned int lbsc_ex_cs3_pins
[] = {
1020 static const unsigned int lbsc_ex_cs3_mux
[] = {
1023 static const unsigned int lbsc_ex_cs4_pins
[] = {
1027 static const unsigned int lbsc_ex_cs4_mux
[] = {
1030 static const unsigned int lbsc_ex_cs5_pins
[] = {
1034 static const unsigned int lbsc_ex_cs5_mux
[] = {
1037 /* - MSIOF0 ----------------------------------------------------------------- */
1038 static const unsigned int msiof0_clk_pins
[] = {
1042 static const unsigned int msiof0_clk_mux
[] = {
1045 static const unsigned int msiof0_sync_pins
[] = {
1049 static const unsigned int msiof0_sync_mux
[] = {
1052 static const unsigned int msiof0_rx_pins
[] = {
1056 static const unsigned int msiof0_rx_mux
[] = {
1059 static const unsigned int msiof0_tx_pins
[] = {
1063 static const unsigned int msiof0_tx_mux
[] = {
1066 /* - MSIOF1 ----------------------------------------------------------------- */
1067 static const unsigned int msiof1_clk_pins
[] = {
1071 static const unsigned int msiof1_clk_mux
[] = {
1074 static const unsigned int msiof1_sync_pins
[] = {
1078 static const unsigned int msiof1_sync_mux
[] = {
1081 static const unsigned int msiof1_rx_pins
[] = {
1085 static const unsigned int msiof1_rx_mux
[] = {
1088 static const unsigned int msiof1_tx_pins
[] = {
1092 static const unsigned int msiof1_tx_mux
[] = {
1095 /* - QSPI ------------------------------------------------------------------- */
1096 static const unsigned int qspi_ctrl_pins
[] = {
1098 RCAR_GP_PIN(3, 25), RCAR_GP_PIN(3, 26),
1100 static const unsigned int qspi_ctrl_mux
[] = {
1101 SPCLK_MARK
, SSL_MARK
,
1103 static const unsigned int qspi_data2_pins
[] = {
1104 /* MOSI_IO0, MISO_IO1 */
1105 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5),
1107 static const unsigned int qspi_data2_mux
[] = {
1108 MOSI_IO0_MARK
, MISO_IO1_MARK
,
1110 static const unsigned int qspi_data4_pins
[] = {
1111 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
1112 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 23),
1115 static const unsigned int qspi_data4_mux
[] = {
1116 MOSI_IO0_MARK
, MISO_IO1_MARK
, IO2_MARK
, IO3_MARK
,
1118 /* - SCIF0 ------------------------------------------------------------------ */
1119 static const unsigned int scif0_data_pins
[] = {
1121 RCAR_GP_PIN(10, 14), RCAR_GP_PIN(10, 13),
1123 static const unsigned int scif0_data_mux
[] = {
1126 static const unsigned int scif0_clk_pins
[] = {
1128 RCAR_GP_PIN(10, 10),
1130 static const unsigned int scif0_clk_mux
[] = {
1133 static const unsigned int scif0_ctrl_pins
[] = {
1135 RCAR_GP_PIN(10, 12), RCAR_GP_PIN(10, 11),
1137 static const unsigned int scif0_ctrl_mux
[] = {
1138 RTS0_N_MARK
, CTS0_N_MARK
,
1140 /* - SCIF3 ------------------------------------------------------------------ */
1141 static const unsigned int scif3_data_pins
[] = {
1143 RCAR_GP_PIN(10, 25), RCAR_GP_PIN(10, 24),
1145 static const unsigned int scif3_data_mux
[] = {
1148 static const unsigned int scif3_clk_pins
[] = {
1150 RCAR_GP_PIN(10, 23),
1152 static const unsigned int scif3_clk_mux
[] = {
1155 /* - SDHI0 ------------------------------------------------------------------ */
1156 static const unsigned int sdhi0_data1_pins
[] = {
1160 static const unsigned int sdhi0_data1_mux
[] = {
1163 static const unsigned int sdhi0_data4_pins
[] = {
1165 RCAR_GP_PIN(11, 7), RCAR_GP_PIN(11, 8),
1166 RCAR_GP_PIN(11, 9), RCAR_GP_PIN(11, 10),
1168 static const unsigned int sdhi0_data4_mux
[] = {
1169 SD0_DAT0_MARK
, SD0_DAT1_MARK
, SD0_DAT2_MARK
, SD0_DAT3_MARK
,
1171 static const unsigned int sdhi0_ctrl_pins
[] = {
1173 RCAR_GP_PIN(11, 5), RCAR_GP_PIN(11, 6),
1175 static const unsigned int sdhi0_ctrl_mux
[] = {
1176 SD0_CLK_MARK
, SD0_CMD_MARK
,
1178 static const unsigned int sdhi0_cd_pins
[] = {
1180 RCAR_GP_PIN(11, 11),
1182 static const unsigned int sdhi0_cd_mux
[] = {
1185 static const unsigned int sdhi0_wp_pins
[] = {
1187 RCAR_GP_PIN(11, 12),
1189 static const unsigned int sdhi0_wp_mux
[] = {
1192 /* - VIN0 ------------------------------------------------------------------- */
1193 static const union vin_data vin0_data_pins
= {
1196 RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
1197 RCAR_GP_PIN(4, 6), RCAR_GP_PIN(4, 7),
1198 RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
1199 RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 11),
1201 RCAR_GP_PIN(4, 12), RCAR_GP_PIN(4, 13),
1202 RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 15),
1203 RCAR_GP_PIN(8, 1), RCAR_GP_PIN(8, 2),
1204 RCAR_GP_PIN(8, 3), RCAR_GP_PIN(8, 4),
1206 RCAR_GP_PIN(8, 5), RCAR_GP_PIN(8, 6),
1207 RCAR_GP_PIN(8, 7), RCAR_GP_PIN(8, 8),
1208 RCAR_GP_PIN(8, 9), RCAR_GP_PIN(8, 10),
1209 RCAR_GP_PIN(8, 11), RCAR_GP_PIN(8, 12),
1212 static const union vin_data vin0_data_mux
= {
1215 VI0_D0_B0_C0_MARK
, VI0_D1_B1_C1_MARK
,
1216 VI0_D2_B2_C2_MARK
, VI0_D3_B3_C3_MARK
,
1217 VI0_D4_B4_C4_MARK
, VI0_D5_B5_C5_MARK
,
1218 VI0_D6_B6_C6_MARK
, VI0_D7_B7_C7_MARK
,
1220 VI0_D8_G0_Y0_MARK
, VI0_D9_G1_Y1_MARK
,
1221 VI0_D10_G2_Y2_MARK
, VI0_D11_G3_Y3_MARK
,
1222 VI0_D12_G4_Y4_MARK
, VI0_D13_G5_Y5_MARK
,
1223 VI0_D14_G6_Y6_MARK
, VI0_D15_G7_Y7_MARK
,
1225 VI0_D16_R0_MARK
, VI0_D17_R1_MARK
,
1226 VI0_D18_R2_MARK
, VI0_D19_R3_MARK
,
1227 VI0_D20_R4_MARK
, VI0_D21_R5_MARK
,
1228 VI0_D22_R6_MARK
, VI0_D23_R7_MARK
,
1231 static const unsigned int vin0_data18_pins
[] = {
1233 RCAR_GP_PIN(4, 6), RCAR_GP_PIN(4, 7),
1234 RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
1235 RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 11),
1237 RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 15),
1238 RCAR_GP_PIN(8, 1), RCAR_GP_PIN(8, 2),
1239 RCAR_GP_PIN(8, 3), RCAR_GP_PIN(8, 4),
1241 RCAR_GP_PIN(8, 7), RCAR_GP_PIN(8, 8),
1242 RCAR_GP_PIN(8, 9), RCAR_GP_PIN(8, 10),
1243 RCAR_GP_PIN(8, 11), RCAR_GP_PIN(8, 12),
1245 static const unsigned int vin0_data18_mux
[] = {
1247 VI0_D2_B2_C2_MARK
, VI0_D3_B3_C3_MARK
,
1248 VI0_D4_B4_C4_MARK
, VI0_D5_B5_C5_MARK
,
1249 VI0_D6_B6_C6_MARK
, VI0_D7_B7_C7_MARK
,
1251 VI0_D10_G2_Y2_MARK
, VI0_D11_G3_Y3_MARK
,
1252 VI0_D12_G4_Y4_MARK
, VI0_D13_G5_Y5_MARK
,
1253 VI0_D14_G6_Y6_MARK
, VI0_D15_G7_Y7_MARK
,
1255 VI0_D18_R2_MARK
, VI0_D19_R3_MARK
,
1256 VI0_D20_R4_MARK
, VI0_D21_R5_MARK
,
1257 VI0_D22_R6_MARK
, VI0_D23_R7_MARK
,
1259 static const unsigned int vin0_sync_pins
[] = {
1260 /* HSYNC#, VSYNC# */
1261 RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
1263 static const unsigned int vin0_sync_mux
[] = {
1264 VI0_HSYNC_N_MARK
, VI0_VSYNC_N_MARK
,
1266 static const unsigned int vin0_field_pins
[] = {
1269 static const unsigned int vin0_field_mux
[] = {
1272 static const unsigned int vin0_clkenb_pins
[] = {
1275 static const unsigned int vin0_clkenb_mux
[] = {
1278 static const unsigned int vin0_clk_pins
[] = {
1281 static const unsigned int vin0_clk_mux
[] = {
1284 /* - VIN1 ------------------------------------------------------------------- */
1285 static const union vin_data vin1_data_pins
= {
1288 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 5),
1289 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7),
1290 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
1291 RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
1293 RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 13),
1294 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 15),
1295 RCAR_GP_PIN(8, 5), RCAR_GP_PIN(8, 6),
1296 RCAR_GP_PIN(8, 7), RCAR_GP_PIN(8, 8),
1298 RCAR_GP_PIN(9, 5), RCAR_GP_PIN(9, 6),
1299 RCAR_GP_PIN(9, 7), RCAR_GP_PIN(9, 8),
1300 RCAR_GP_PIN(9, 9), RCAR_GP_PIN(9, 10),
1301 RCAR_GP_PIN(9, 11), RCAR_GP_PIN(9, 12),
1304 static const union vin_data vin1_data_mux
= {
1307 VI1_D0_B0_C0_MARK
, VI1_D1_B1_C1_MARK
,
1308 VI1_D2_B2_C2_MARK
, VI1_D3_B3_C3_MARK
,
1309 VI1_D4_B4_C4_MARK
, VI1_D5_B5_C5_MARK
,
1310 VI1_D6_B6_C6_MARK
, VI1_D7_B7_C7_MARK
,
1312 VI1_D8_G0_Y0_MARK
, VI1_D9_G1_Y1_MARK
,
1313 VI1_D10_G2_Y2_MARK
, VI1_D11_G3_Y3_MARK
,
1314 VI1_D12_G4_Y4_MARK
, VI1_D13_G5_Y5_MARK
,
1315 VI1_D14_G6_Y6_MARK
, VI1_D15_G7_Y7_MARK
,
1317 VI1_D16_R0_MARK
, VI1_D17_R1_MARK
,
1318 VI1_D18_R2_MARK
, VI1_D19_R3_MARK
,
1319 VI1_D20_R4_MARK
, VI1_D21_R5_MARK
,
1320 VI1_D22_R6_MARK
, VI1_D23_R7_MARK
,
1323 static const unsigned int vin1_data18_pins
[] = {
1325 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7),
1326 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
1327 RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
1329 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 15),
1330 RCAR_GP_PIN(8, 5), RCAR_GP_PIN(8, 6),
1331 RCAR_GP_PIN(8, 7), RCAR_GP_PIN(8, 8),
1333 RCAR_GP_PIN(9, 7), RCAR_GP_PIN(9, 8),
1334 RCAR_GP_PIN(9, 9), RCAR_GP_PIN(9, 10),
1335 RCAR_GP_PIN(9, 11), RCAR_GP_PIN(9, 12),
1337 static const unsigned int vin1_data18_mux
[] = {
1339 VI1_D2_B2_C2_MARK
, VI1_D3_B3_C3_MARK
,
1340 VI1_D4_B4_C4_MARK
, VI1_D5_B5_C5_MARK
,
1341 VI1_D6_B6_C6_MARK
, VI1_D7_B7_C7_MARK
,
1343 VI1_D10_G2_Y2_MARK
, VI1_D11_G3_Y3_MARK
,
1344 VI1_D12_G4_Y4_MARK
, VI1_D13_G5_Y5_MARK
,
1345 VI1_D14_G6_Y6_MARK
, VI1_D15_G7_Y7_MARK
,
1347 VI1_D18_R2_MARK
, VI1_D19_R3_MARK
,
1348 VI1_D20_R4_MARK
, VI1_D21_R5_MARK
,
1349 VI1_D22_R6_MARK
, VI1_D23_R7_MARK
,
1351 static const union vin_data vin1_data_b_pins
= {
1354 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 5),
1355 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7),
1356 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
1357 RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
1359 RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 13),
1360 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 15),
1361 RCAR_GP_PIN(9, 1), RCAR_GP_PIN(9, 2),
1362 RCAR_GP_PIN(9, 3), RCAR_GP_PIN(9, 4),
1364 RCAR_GP_PIN(9, 5), RCAR_GP_PIN(9, 6),
1365 RCAR_GP_PIN(9, 7), RCAR_GP_PIN(9, 8),
1366 RCAR_GP_PIN(9, 9), RCAR_GP_PIN(9, 10),
1367 RCAR_GP_PIN(9, 11), RCAR_GP_PIN(9, 12),
1370 static const union vin_data vin1_data_b_mux
= {
1373 VI1_D0_B0_C0_MARK
, VI1_D1_B1_C1_MARK
,
1374 VI1_D2_B2_C2_MARK
, VI1_D3_B3_C3_MARK
,
1375 VI1_D4_B4_C4_MARK
, VI1_D5_B5_C5_MARK
,
1376 VI1_D6_B6_C6_MARK
, VI1_D7_B7_C7_MARK
,
1378 VI1_D8_G0_Y0_MARK
, VI1_D9_G1_Y1_MARK
,
1379 VI1_D10_G2_Y2_MARK
, VI1_D11_G3_Y3_MARK
,
1380 VI1_D12_G4_Y4_B_MARK
, VI1_D13_G5_Y5_B_MARK
,
1381 VI1_D14_G6_Y6_B_MARK
, VI1_D15_G7_Y7_B_MARK
,
1383 VI1_D16_R0_MARK
, VI1_D17_R1_MARK
,
1384 VI1_D18_R2_MARK
, VI1_D19_R3_MARK
,
1385 VI1_D20_R4_MARK
, VI1_D21_R5_MARK
,
1386 VI1_D22_R6_MARK
, VI1_D23_R7_MARK
,
1389 static const unsigned int vin1_data18_b_pins
[] = {
1391 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7),
1392 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
1393 RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
1395 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 15),
1396 RCAR_GP_PIN(9, 1), RCAR_GP_PIN(9, 2),
1397 RCAR_GP_PIN(9, 3), RCAR_GP_PIN(9, 4),
1399 RCAR_GP_PIN(9, 7), RCAR_GP_PIN(9, 8),
1400 RCAR_GP_PIN(9, 9), RCAR_GP_PIN(9, 10),
1401 RCAR_GP_PIN(9, 11), RCAR_GP_PIN(9, 12),
1403 static const unsigned int vin1_data18_b_mux
[] = {
1405 VI1_D2_B2_C2_MARK
, VI1_D3_B3_C3_MARK
,
1406 VI1_D4_B4_C4_MARK
, VI1_D5_B5_C5_MARK
,
1407 VI1_D6_B6_C6_MARK
, VI1_D7_B7_C7_MARK
,
1409 VI1_D10_G2_Y2_MARK
, VI1_D11_G3_Y3_MARK
,
1410 VI1_D12_G4_Y4_B_MARK
, VI1_D13_G5_Y5_B_MARK
,
1411 VI1_D14_G6_Y6_B_MARK
, VI1_D15_G7_Y7_B_MARK
,
1413 VI1_D18_R2_MARK
, VI1_D19_R3_MARK
,
1414 VI1_D20_R4_MARK
, VI1_D21_R5_MARK
,
1415 VI1_D22_R6_MARK
, VI1_D23_R7_MARK
,
1417 static const unsigned int vin1_sync_pins
[] = {
1418 /* HSYNC#, VSYNC# */
1419 RCAR_GP_PIN(5, 2), RCAR_GP_PIN(5, 3),
1421 static const unsigned int vin1_sync_mux
[] = {
1422 VI1_HSYNC_N_MARK
, VI1_VSYNC_N_MARK
,
1424 static const unsigned int vin1_field_pins
[] = {
1427 static const unsigned int vin1_field_mux
[] = {
1430 static const unsigned int vin1_clkenb_pins
[] = {
1433 static const unsigned int vin1_clkenb_mux
[] = {
1436 static const unsigned int vin1_clk_pins
[] = {
1439 static const unsigned int vin1_clk_mux
[] = {
1442 /* - VIN2 ------------------------------------------------------------------- */
1443 static const union vin_data vin2_data_pins
= {
1445 RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 5),
1446 RCAR_GP_PIN(6, 6), RCAR_GP_PIN(6, 7),
1447 RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
1448 RCAR_GP_PIN(6, 10), RCAR_GP_PIN(6, 11),
1449 RCAR_GP_PIN(6, 12), RCAR_GP_PIN(6, 13),
1450 RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
1451 RCAR_GP_PIN(8, 9), RCAR_GP_PIN(8, 10),
1452 RCAR_GP_PIN(8, 11), RCAR_GP_PIN(8, 12),
1455 static const union vin_data vin2_data_mux
= {
1457 VI2_D0_C0_MARK
, VI2_D1_C1_MARK
,
1458 VI2_D2_C2_MARK
, VI2_D3_C3_MARK
,
1459 VI2_D4_C4_MARK
, VI2_D5_C5_MARK
,
1460 VI2_D6_C6_MARK
, VI2_D7_C7_MARK
,
1461 VI2_D8_Y0_MARK
, VI2_D9_Y1_MARK
,
1462 VI2_D10_Y2_MARK
, VI2_D11_Y3_MARK
,
1463 VI2_D12_Y4_MARK
, VI2_D13_Y5_MARK
,
1464 VI2_D14_Y6_MARK
, VI2_D15_Y7_MARK
,
1467 static const unsigned int vin2_sync_pins
[] = {
1468 /* HSYNC#, VSYNC# */
1469 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3),
1471 static const unsigned int vin2_sync_mux
[] = {
1472 VI2_HSYNC_N_MARK
, VI2_VSYNC_N_MARK
,
1474 static const unsigned int vin2_field_pins
[] = {
1477 static const unsigned int vin2_field_mux
[] = {
1480 static const unsigned int vin2_clkenb_pins
[] = {
1483 static const unsigned int vin2_clkenb_mux
[] = {
1486 static const unsigned int vin2_clk_pins
[] = {
1489 static const unsigned int vin2_clk_mux
[] = {
1492 /* - VIN3 ------------------------------------------------------------------- */
1493 static const union vin_data vin3_data_pins
= {
1495 RCAR_GP_PIN(7, 4), RCAR_GP_PIN(7, 5),
1496 RCAR_GP_PIN(7, 6), RCAR_GP_PIN(7, 7),
1497 RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 9),
1498 RCAR_GP_PIN(7, 10), RCAR_GP_PIN(7, 11),
1499 RCAR_GP_PIN(7, 12), RCAR_GP_PIN(7, 13),
1500 RCAR_GP_PIN(7, 14), RCAR_GP_PIN(7, 15),
1501 RCAR_GP_PIN(8, 13), RCAR_GP_PIN(8, 14),
1502 RCAR_GP_PIN(8, 15), RCAR_GP_PIN(8, 16),
1505 static const union vin_data vin3_data_mux
= {
1507 VI3_D0_C0_MARK
, VI3_D1_C1_MARK
,
1508 VI3_D2_C2_MARK
, VI3_D3_C3_MARK
,
1509 VI3_D4_C4_MARK
, VI3_D5_C5_MARK
,
1510 VI3_D6_C6_MARK
, VI3_D7_C7_MARK
,
1511 VI3_D8_Y0_MARK
, VI3_D9_Y1_MARK
,
1512 VI3_D10_Y2_MARK
, VI3_D11_Y3_MARK
,
1513 VI3_D12_Y4_MARK
, VI3_D13_Y5_MARK
,
1514 VI3_D14_Y6_MARK
, VI3_D15_Y7_MARK
,
1517 static const unsigned int vin3_sync_pins
[] = {
1518 /* HSYNC#, VSYNC# */
1519 RCAR_GP_PIN(7, 2), RCAR_GP_PIN(7, 3),
1521 static const unsigned int vin3_sync_mux
[] = {
1522 VI3_HSYNC_N_MARK
, VI3_VSYNC_N_MARK
,
1524 static const unsigned int vin3_field_pins
[] = {
1527 static const unsigned int vin3_field_mux
[] = {
1530 static const unsigned int vin3_clkenb_pins
[] = {
1533 static const unsigned int vin3_clkenb_mux
[] = {
1536 static const unsigned int vin3_clk_pins
[] = {
1539 static const unsigned int vin3_clk_mux
[] = {
1542 /* - VIN4 ------------------------------------------------------------------- */
1543 static const union vin_data vin4_data_pins
= {
1545 RCAR_GP_PIN(8, 4), RCAR_GP_PIN(8, 5),
1546 RCAR_GP_PIN(8, 6), RCAR_GP_PIN(8, 7),
1547 RCAR_GP_PIN(8, 8), RCAR_GP_PIN(8, 9),
1548 RCAR_GP_PIN(8, 10), RCAR_GP_PIN(8, 11),
1549 RCAR_GP_PIN(8, 12), RCAR_GP_PIN(8, 13),
1550 RCAR_GP_PIN(8, 14), RCAR_GP_PIN(8, 15),
1553 static const union vin_data vin4_data_mux
= {
1555 VI4_D0_C0_MARK
, VI4_D1_C1_MARK
,
1556 VI4_D2_C2_MARK
, VI4_D3_C3_MARK
,
1557 VI4_D4_C4_MARK
, VI4_D5_C5_MARK
,
1558 VI4_D6_C6_MARK
, VI4_D7_C7_MARK
,
1559 VI4_D8_Y0_MARK
, VI4_D9_Y1_MARK
,
1560 VI4_D10_Y2_MARK
, VI4_D11_Y3_MARK
,
1563 static const unsigned int vin4_sync_pins
[] = {
1564 /* HSYNC#, VSYNC# */
1565 RCAR_GP_PIN(8, 2), RCAR_GP_PIN(8, 3),
1567 static const unsigned int vin4_sync_mux
[] = {
1568 VI4_HSYNC_N_MARK
, VI4_VSYNC_N_MARK
,
1570 static const unsigned int vin4_field_pins
[] = {
1573 static const unsigned int vin4_field_mux
[] = {
1576 static const unsigned int vin4_clkenb_pins
[] = {
1579 static const unsigned int vin4_clkenb_mux
[] = {
1582 static const unsigned int vin4_clk_pins
[] = {
1585 static const unsigned int vin4_clk_mux
[] = {
1588 /* - VIN5 ------------------------------------------------------------------- */
1589 static const union vin_data vin5_data_pins
= {
1591 RCAR_GP_PIN(9, 4), RCAR_GP_PIN(9, 5),
1592 RCAR_GP_PIN(9, 6), RCAR_GP_PIN(9, 7),
1593 RCAR_GP_PIN(9, 8), RCAR_GP_PIN(9, 9),
1594 RCAR_GP_PIN(9, 10), RCAR_GP_PIN(9, 11),
1595 RCAR_GP_PIN(9, 12), RCAR_GP_PIN(9, 13),
1596 RCAR_GP_PIN(9, 14), RCAR_GP_PIN(9, 15),
1599 static const union vin_data vin5_data_mux
= {
1601 VI5_D0_C0_MARK
, VI5_D1_C1_MARK
,
1602 VI5_D2_C2_MARK
, VI5_D3_C3_MARK
,
1603 VI5_D4_C4_MARK
, VI5_D5_C5_MARK
,
1604 VI5_D6_C6_MARK
, VI5_D7_C7_MARK
,
1605 VI5_D8_Y0_MARK
, VI5_D9_Y1_MARK
,
1606 VI5_D10_Y2_MARK
, VI5_D11_Y3_MARK
,
1609 static const unsigned int vin5_sync_pins
[] = {
1610 /* HSYNC#, VSYNC# */
1611 RCAR_GP_PIN(9, 2), RCAR_GP_PIN(9, 3),
1613 static const unsigned int vin5_sync_mux
[] = {
1614 VI5_HSYNC_N_MARK
, VI5_VSYNC_N_MARK
,
1616 static const unsigned int vin5_field_pins
[] = {
1619 static const unsigned int vin5_field_mux
[] = {
1622 static const unsigned int vin5_clkenb_pins
[] = {
1625 static const unsigned int vin5_clkenb_mux
[] = {
1628 static const unsigned int vin5_clk_pins
[] = {
1631 static const unsigned int vin5_clk_mux
[] = {
1635 static const struct sh_pfc_pin_group pinmux_groups
[] = {
1636 SH_PFC_PIN_GROUP(avb_link
),
1637 SH_PFC_PIN_GROUP(avb_magic
),
1638 SH_PFC_PIN_GROUP(avb_phy_int
),
1639 SH_PFC_PIN_GROUP(avb_mdio
),
1640 SH_PFC_PIN_GROUP(avb_mii
),
1641 SH_PFC_PIN_GROUP(avb_gmii
),
1642 SH_PFC_PIN_GROUP(avb_avtp_match
),
1643 SH_PFC_PIN_GROUP(can0_data
),
1644 SH_PFC_PIN_GROUP(can1_data
),
1645 SH_PFC_PIN_GROUP(can_clk
),
1646 SH_PFC_PIN_GROUP(du0_rgb666
),
1647 SH_PFC_PIN_GROUP(du0_rgb888
),
1648 SH_PFC_PIN_GROUP(du0_sync
),
1649 SH_PFC_PIN_GROUP(du0_oddf
),
1650 SH_PFC_PIN_GROUP(du0_disp
),
1651 SH_PFC_PIN_GROUP(du0_cde
),
1652 SH_PFC_PIN_GROUP(du1_rgb666
),
1653 SH_PFC_PIN_GROUP(du1_sync
),
1654 SH_PFC_PIN_GROUP(du1_oddf
),
1655 SH_PFC_PIN_GROUP(du1_disp
),
1656 SH_PFC_PIN_GROUP(du1_cde
),
1657 SH_PFC_PIN_GROUP(intc_irq0
),
1658 SH_PFC_PIN_GROUP(intc_irq1
),
1659 SH_PFC_PIN_GROUP(intc_irq2
),
1660 SH_PFC_PIN_GROUP(intc_irq3
),
1661 SH_PFC_PIN_GROUP(lbsc_cs0
),
1662 SH_PFC_PIN_GROUP(lbsc_cs1
),
1663 SH_PFC_PIN_GROUP(lbsc_ex_cs0
),
1664 SH_PFC_PIN_GROUP(lbsc_ex_cs1
),
1665 SH_PFC_PIN_GROUP(lbsc_ex_cs2
),
1666 SH_PFC_PIN_GROUP(lbsc_ex_cs3
),
1667 SH_PFC_PIN_GROUP(lbsc_ex_cs4
),
1668 SH_PFC_PIN_GROUP(lbsc_ex_cs5
),
1669 SH_PFC_PIN_GROUP(msiof0_clk
),
1670 SH_PFC_PIN_GROUP(msiof0_sync
),
1671 SH_PFC_PIN_GROUP(msiof0_rx
),
1672 SH_PFC_PIN_GROUP(msiof0_tx
),
1673 SH_PFC_PIN_GROUP(msiof1_clk
),
1674 SH_PFC_PIN_GROUP(msiof1_sync
),
1675 SH_PFC_PIN_GROUP(msiof1_rx
),
1676 SH_PFC_PIN_GROUP(msiof1_tx
),
1677 SH_PFC_PIN_GROUP(qspi_ctrl
),
1678 SH_PFC_PIN_GROUP(qspi_data2
),
1679 SH_PFC_PIN_GROUP(qspi_data4
),
1680 SH_PFC_PIN_GROUP(scif0_data
),
1681 SH_PFC_PIN_GROUP(scif0_clk
),
1682 SH_PFC_PIN_GROUP(scif0_ctrl
),
1683 SH_PFC_PIN_GROUP(scif3_data
),
1684 SH_PFC_PIN_GROUP(scif3_clk
),
1685 SH_PFC_PIN_GROUP(sdhi0_data1
),
1686 SH_PFC_PIN_GROUP(sdhi0_data4
),
1687 SH_PFC_PIN_GROUP(sdhi0_ctrl
),
1688 SH_PFC_PIN_GROUP(sdhi0_cd
),
1689 SH_PFC_PIN_GROUP(sdhi0_wp
),
1690 VIN_DATA_PIN_GROUP(vin0_data
, 24),
1691 VIN_DATA_PIN_GROUP(vin0_data
, 20),
1692 SH_PFC_PIN_GROUP(vin0_data18
),
1693 VIN_DATA_PIN_GROUP(vin0_data
, 16),
1694 VIN_DATA_PIN_GROUP(vin0_data
, 12),
1695 VIN_DATA_PIN_GROUP(vin0_data
, 10),
1696 VIN_DATA_PIN_GROUP(vin0_data
, 8),
1697 SH_PFC_PIN_GROUP(vin0_sync
),
1698 SH_PFC_PIN_GROUP(vin0_field
),
1699 SH_PFC_PIN_GROUP(vin0_clkenb
),
1700 SH_PFC_PIN_GROUP(vin0_clk
),
1701 VIN_DATA_PIN_GROUP(vin1_data
, 24),
1702 VIN_DATA_PIN_GROUP(vin1_data
, 20),
1703 SH_PFC_PIN_GROUP(vin1_data18
),
1704 VIN_DATA_PIN_GROUP(vin1_data
, 16),
1705 VIN_DATA_PIN_GROUP(vin1_data
, 12),
1706 VIN_DATA_PIN_GROUP(vin1_data
, 10),
1707 VIN_DATA_PIN_GROUP(vin1_data
, 8),
1708 VIN_DATA_PIN_GROUP(vin1_data_b
, 24),
1709 VIN_DATA_PIN_GROUP(vin1_data_b
, 20),
1710 SH_PFC_PIN_GROUP(vin1_data18_b
),
1711 VIN_DATA_PIN_GROUP(vin1_data_b
, 16),
1712 SH_PFC_PIN_GROUP(vin1_sync
),
1713 SH_PFC_PIN_GROUP(vin1_field
),
1714 SH_PFC_PIN_GROUP(vin1_clkenb
),
1715 SH_PFC_PIN_GROUP(vin1_clk
),
1716 VIN_DATA_PIN_GROUP(vin2_data
, 16),
1717 VIN_DATA_PIN_GROUP(vin2_data
, 12),
1718 VIN_DATA_PIN_GROUP(vin2_data
, 10),
1719 VIN_DATA_PIN_GROUP(vin2_data
, 8),
1720 SH_PFC_PIN_GROUP(vin2_sync
),
1721 SH_PFC_PIN_GROUP(vin2_field
),
1722 SH_PFC_PIN_GROUP(vin2_clkenb
),
1723 SH_PFC_PIN_GROUP(vin2_clk
),
1724 VIN_DATA_PIN_GROUP(vin3_data
, 16),
1725 VIN_DATA_PIN_GROUP(vin3_data
, 12),
1726 VIN_DATA_PIN_GROUP(vin3_data
, 10),
1727 VIN_DATA_PIN_GROUP(vin3_data
, 8),
1728 SH_PFC_PIN_GROUP(vin3_sync
),
1729 SH_PFC_PIN_GROUP(vin3_field
),
1730 SH_PFC_PIN_GROUP(vin3_clkenb
),
1731 SH_PFC_PIN_GROUP(vin3_clk
),
1732 VIN_DATA_PIN_GROUP(vin4_data
, 12),
1733 VIN_DATA_PIN_GROUP(vin4_data
, 10),
1734 VIN_DATA_PIN_GROUP(vin4_data
, 8),
1735 SH_PFC_PIN_GROUP(vin4_sync
),
1736 SH_PFC_PIN_GROUP(vin4_field
),
1737 SH_PFC_PIN_GROUP(vin4_clkenb
),
1738 SH_PFC_PIN_GROUP(vin4_clk
),
1739 VIN_DATA_PIN_GROUP(vin5_data
, 12),
1740 VIN_DATA_PIN_GROUP(vin5_data
, 10),
1741 VIN_DATA_PIN_GROUP(vin5_data
, 8),
1742 SH_PFC_PIN_GROUP(vin5_sync
),
1743 SH_PFC_PIN_GROUP(vin5_field
),
1744 SH_PFC_PIN_GROUP(vin5_clkenb
),
1745 SH_PFC_PIN_GROUP(vin5_clk
),
1748 static const char * const avb_groups
[] = {
1758 static const char * const can0_groups
[] = {
1763 static const char * const can1_groups
[] = {
1768 static const char * const du0_groups
[] = {
1777 static const char * const du1_groups
[] = {
1785 static const char * const intc_groups
[] = {
1792 static const char * const lbsc_groups
[] = {
1803 static const char * const msiof0_groups
[] = {
1810 static const char * const msiof1_groups
[] = {
1817 static const char * const qspi_groups
[] = {
1823 static const char * const scif0_groups
[] = {
1829 static const char * const scif3_groups
[] = {
1834 static const char * const sdhi0_groups
[] = {
1842 static const char * const vin0_groups
[] = {
1856 static const char * const vin1_groups
[] = {
1873 static const char * const vin2_groups
[] = {
1884 static const char * const vin3_groups
[] = {
1895 static const char * const vin4_groups
[] = {
1905 static const char * const vin5_groups
[] = {
1915 static const struct sh_pfc_function pinmux_functions
[] = {
1916 SH_PFC_FUNCTION(avb
),
1917 SH_PFC_FUNCTION(can0
),
1918 SH_PFC_FUNCTION(can1
),
1919 SH_PFC_FUNCTION(du0
),
1920 SH_PFC_FUNCTION(du1
),
1921 SH_PFC_FUNCTION(intc
),
1922 SH_PFC_FUNCTION(lbsc
),
1923 SH_PFC_FUNCTION(msiof0
),
1924 SH_PFC_FUNCTION(msiof1
),
1925 SH_PFC_FUNCTION(qspi
),
1926 SH_PFC_FUNCTION(scif0
),
1927 SH_PFC_FUNCTION(scif3
),
1928 SH_PFC_FUNCTION(sdhi0
),
1929 SH_PFC_FUNCTION(vin0
),
1930 SH_PFC_FUNCTION(vin1
),
1931 SH_PFC_FUNCTION(vin2
),
1932 SH_PFC_FUNCTION(vin3
),
1933 SH_PFC_FUNCTION(vin4
),
1934 SH_PFC_FUNCTION(vin5
),
1937 static const struct pinmux_cfg_reg pinmux_config_regs
[] = {
1938 { PINMUX_CFG_REG("GPSR0", 0xE6060004, 32, 1) {
1942 GP_0_28_FN
, FN_IP1_4
,
1943 GP_0_27_FN
, FN_IP1_3
,
1944 GP_0_26_FN
, FN_IP1_2
,
1945 GP_0_25_FN
, FN_IP1_1
,
1946 GP_0_24_FN
, FN_IP1_0
,
1947 GP_0_23_FN
, FN_IP0_23
,
1948 GP_0_22_FN
, FN_IP0_22
,
1949 GP_0_21_FN
, FN_IP0_21
,
1950 GP_0_20_FN
, FN_IP0_20
,
1951 GP_0_19_FN
, FN_IP0_19
,
1952 GP_0_18_FN
, FN_IP0_18
,
1953 GP_0_17_FN
, FN_IP0_17
,
1954 GP_0_16_FN
, FN_IP0_16
,
1955 GP_0_15_FN
, FN_IP0_15
,
1956 GP_0_14_FN
, FN_IP0_14
,
1957 GP_0_13_FN
, FN_IP0_13
,
1958 GP_0_12_FN
, FN_IP0_12
,
1959 GP_0_11_FN
, FN_IP0_11
,
1960 GP_0_10_FN
, FN_IP0_10
,
1961 GP_0_9_FN
, FN_IP0_9
,
1962 GP_0_8_FN
, FN_IP0_8
,
1963 GP_0_7_FN
, FN_IP0_7
,
1964 GP_0_6_FN
, FN_IP0_6
,
1965 GP_0_5_FN
, FN_IP0_5
,
1966 GP_0_4_FN
, FN_IP0_4
,
1967 GP_0_3_FN
, FN_IP0_3
,
1968 GP_0_2_FN
, FN_IP0_2
,
1969 GP_0_1_FN
, FN_IP0_1
,
1970 GP_0_0_FN
, FN_IP0_0
}
1972 { PINMUX_CFG_REG("GPSR1", 0xE6060008, 32, 1) {
1982 GP_1_22_FN
, FN_DU1_CDE
,
1983 GP_1_21_FN
, FN_DU1_DISP
,
1984 GP_1_20_FN
, FN_DU1_EXODDF_DU1_ODDF_DISP_CDE
,
1985 GP_1_19_FN
, FN_DU1_EXVSYNC_DU1_VSYNC
,
1986 GP_1_18_FN
, FN_DU1_EXHSYNC_DU1_HSYNC
,
1987 GP_1_17_FN
, FN_DU1_DB7_C5
,
1988 GP_1_16_FN
, FN_DU1_DB6_C4
,
1989 GP_1_15_FN
, FN_DU1_DB5_C3_DATA15
,
1990 GP_1_14_FN
, FN_DU1_DB4_C2_DATA14
,
1991 GP_1_13_FN
, FN_DU1_DB3_C1_DATA13
,
1992 GP_1_12_FN
, FN_DU1_DB2_C0_DATA12
,
1993 GP_1_11_FN
, FN_IP1_16
,
1994 GP_1_10_FN
, FN_IP1_15
,
1995 GP_1_9_FN
, FN_IP1_14
,
1996 GP_1_8_FN
, FN_IP1_13
,
1997 GP_1_7_FN
, FN_IP1_12
,
1998 GP_1_6_FN
, FN_IP1_11
,
1999 GP_1_5_FN
, FN_IP1_10
,
2000 GP_1_4_FN
, FN_IP1_9
,
2001 GP_1_3_FN
, FN_IP1_8
,
2002 GP_1_2_FN
, FN_IP1_7
,
2003 GP_1_1_FN
, FN_IP1_6
,
2004 GP_1_0_FN
, FN_IP1_5
, }
2006 { PINMUX_CFG_REG("GPSR2", 0xE606000C, 32, 1) {
2040 { PINMUX_CFG_REG("GPSR3", 0xE6060010, 32, 1) {
2045 GP_3_27_FN
, FN_CS0_N
,
2046 GP_3_26_FN
, FN_IP1_22
,
2047 GP_3_25_FN
, FN_IP1_21
,
2048 GP_3_24_FN
, FN_IP1_20
,
2049 GP_3_23_FN
, FN_IP1_19
,
2050 GP_3_22_FN
, FN_IRQ3
,
2051 GP_3_21_FN
, FN_IRQ2
,
2052 GP_3_20_FN
, FN_IRQ1
,
2053 GP_3_19_FN
, FN_IRQ0
,
2054 GP_3_18_FN
, FN_EX_WAIT0
,
2055 GP_3_17_FN
, FN_WE1_N
,
2056 GP_3_16_FN
, FN_WE0_N
,
2057 GP_3_15_FN
, FN_RD_WR_N
,
2058 GP_3_14_FN
, FN_RD_N
,
2059 GP_3_13_FN
, FN_BS_N
,
2060 GP_3_12_FN
, FN_EX_CS5_N
,
2061 GP_3_11_FN
, FN_EX_CS4_N
,
2062 GP_3_10_FN
, FN_EX_CS3_N
,
2063 GP_3_9_FN
, FN_EX_CS2_N
,
2064 GP_3_8_FN
, FN_EX_CS1_N
,
2065 GP_3_7_FN
, FN_EX_CS0_N
,
2066 GP_3_6_FN
, FN_CS1_N_A26
,
2067 GP_3_5_FN
, FN_IP1_18
,
2068 GP_3_4_FN
, FN_IP1_17
,
2074 { PINMUX_CFG_REG("GPSR4", 0xE6060014, 32, 1) {
2090 GP_4_16_FN
, FN_VI0_FIELD
,
2091 GP_4_15_FN
, FN_VI0_D11_G3_Y3
,
2092 GP_4_14_FN
, FN_VI0_D10_G2_Y2
,
2093 GP_4_13_FN
, FN_VI0_D9_G1_Y1
,
2094 GP_4_12_FN
, FN_VI0_D8_G0_Y0
,
2095 GP_4_11_FN
, FN_VI0_D7_B7_C7
,
2096 GP_4_10_FN
, FN_VI0_D6_B6_C6
,
2097 GP_4_9_FN
, FN_VI0_D5_B5_C5
,
2098 GP_4_8_FN
, FN_VI0_D4_B4_C4
,
2099 GP_4_7_FN
, FN_VI0_D3_B3_C3
,
2100 GP_4_6_FN
, FN_VI0_D2_B2_C2
,
2101 GP_4_5_FN
, FN_VI0_D1_B1_C1
,
2102 GP_4_4_FN
, FN_VI0_D0_B0_C0
,
2103 GP_4_3_FN
, FN_VI0_VSYNC_N
,
2104 GP_4_2_FN
, FN_VI0_HSYNC_N
,
2105 GP_4_1_FN
, FN_VI0_CLKENB
,
2106 GP_4_0_FN
, FN_VI0_CLK
}
2108 { PINMUX_CFG_REG("GPSR5", 0xE6060018, 32, 1) {
2124 GP_5_16_FN
, FN_VI1_FIELD
,
2125 GP_5_15_FN
, FN_VI1_D11_G3_Y3
,
2126 GP_5_14_FN
, FN_VI1_D10_G2_Y2
,
2127 GP_5_13_FN
, FN_VI1_D9_G1_Y1
,
2128 GP_5_12_FN
, FN_VI1_D8_G0_Y0
,
2129 GP_5_11_FN
, FN_VI1_D7_B7_C7
,
2130 GP_5_10_FN
, FN_VI1_D6_B6_C6
,
2131 GP_5_9_FN
, FN_VI1_D5_B5_C5
,
2132 GP_5_8_FN
, FN_VI1_D4_B4_C4
,
2133 GP_5_7_FN
, FN_VI1_D3_B3_C3
,
2134 GP_5_6_FN
, FN_VI1_D2_B2_C2
,
2135 GP_5_5_FN
, FN_VI1_D1_B1_C1
,
2136 GP_5_4_FN
, FN_VI1_D0_B0_C0
,
2137 GP_5_3_FN
, FN_VI1_VSYNC_N
,
2138 GP_5_2_FN
, FN_VI1_HSYNC_N
,
2139 GP_5_1_FN
, FN_VI1_CLKENB
,
2140 GP_5_0_FN
, FN_VI1_CLK
}
2142 { PINMUX_CFG_REG("GPSR6", 0xE606001C, 32, 1) {
2158 GP_6_16_FN
, FN_IP2_16
,
2159 GP_6_15_FN
, FN_IP2_15
,
2160 GP_6_14_FN
, FN_IP2_14
,
2161 GP_6_13_FN
, FN_IP2_13
,
2162 GP_6_12_FN
, FN_IP2_12
,
2163 GP_6_11_FN
, FN_IP2_11
,
2164 GP_6_10_FN
, FN_IP2_10
,
2165 GP_6_9_FN
, FN_IP2_9
,
2166 GP_6_8_FN
, FN_IP2_8
,
2167 GP_6_7_FN
, FN_IP2_7
,
2168 GP_6_6_FN
, FN_IP2_6
,
2169 GP_6_5_FN
, FN_IP2_5
,
2170 GP_6_4_FN
, FN_IP2_4
,
2171 GP_6_3_FN
, FN_IP2_3
,
2172 GP_6_2_FN
, FN_IP2_2
,
2173 GP_6_1_FN
, FN_IP2_1
,
2174 GP_6_0_FN
, FN_IP2_0
}
2176 { PINMUX_CFG_REG("GPSR7", 0xE6060020, 32, 1) {
2192 GP_7_16_FN
, FN_VI3_FIELD
,
2193 GP_7_15_FN
, FN_IP3_14
,
2194 GP_7_14_FN
, FN_VI3_D10_Y2
,
2195 GP_7_13_FN
, FN_IP3_13
,
2196 GP_7_12_FN
, FN_IP3_12
,
2197 GP_7_11_FN
, FN_IP3_11
,
2198 GP_7_10_FN
, FN_IP3_10
,
2199 GP_7_9_FN
, FN_IP3_9
,
2200 GP_7_8_FN
, FN_IP3_8
,
2201 GP_7_7_FN
, FN_IP3_7
,
2202 GP_7_6_FN
, FN_IP3_6
,
2203 GP_7_5_FN
, FN_IP3_5
,
2204 GP_7_4_FN
, FN_IP3_4
,
2205 GP_7_3_FN
, FN_IP3_3
,
2206 GP_7_2_FN
, FN_IP3_2
,
2207 GP_7_1_FN
, FN_IP3_1
,
2208 GP_7_0_FN
, FN_IP3_0
}
2210 { PINMUX_CFG_REG("GPSR8", 0xE6060024, 32, 1) {
2226 GP_8_16_FN
, FN_IP4_24
,
2227 GP_8_15_FN
, FN_IP4_23
,
2228 GP_8_14_FN
, FN_IP4_22
,
2229 GP_8_13_FN
, FN_IP4_21
,
2230 GP_8_12_FN
, FN_IP4_20_19
,
2231 GP_8_11_FN
, FN_IP4_18_17
,
2232 GP_8_10_FN
, FN_IP4_16_15
,
2233 GP_8_9_FN
, FN_IP4_14_13
,
2234 GP_8_8_FN
, FN_IP4_12_11
,
2235 GP_8_7_FN
, FN_IP4_10_9
,
2236 GP_8_6_FN
, FN_IP4_8_7
,
2237 GP_8_5_FN
, FN_IP4_6_5
,
2238 GP_8_4_FN
, FN_IP4_4
,
2239 GP_8_3_FN
, FN_IP4_3_2
,
2240 GP_8_2_FN
, FN_IP4_1
,
2241 GP_8_1_FN
, FN_IP4_0
,
2242 GP_8_0_FN
, FN_VI4_CLK
}
2244 { PINMUX_CFG_REG("GPSR9", 0xE6060028, 32, 1) {
2260 GP_9_16_FN
, FN_VI5_FIELD
,
2261 GP_9_15_FN
, FN_VI5_D11_Y3
,
2262 GP_9_14_FN
, FN_VI5_D10_Y2
,
2263 GP_9_13_FN
, FN_VI5_D9_Y1
,
2264 GP_9_12_FN
, FN_IP5_11
,
2265 GP_9_11_FN
, FN_IP5_10
,
2266 GP_9_10_FN
, FN_IP5_9
,
2267 GP_9_9_FN
, FN_IP5_8
,
2268 GP_9_8_FN
, FN_IP5_7
,
2269 GP_9_7_FN
, FN_IP5_6
,
2270 GP_9_6_FN
, FN_IP5_5
,
2271 GP_9_5_FN
, FN_IP5_4
,
2272 GP_9_4_FN
, FN_IP5_3
,
2273 GP_9_3_FN
, FN_IP5_2
,
2274 GP_9_2_FN
, FN_IP5_1
,
2275 GP_9_1_FN
, FN_IP5_0
,
2276 GP_9_0_FN
, FN_VI5_CLK
}
2278 { PINMUX_CFG_REG("GPSR10", 0xE606002C, 32, 1) {
2279 GP_10_31_FN
, FN_CAN1_RX
,
2280 GP_10_30_FN
, FN_CAN1_TX
,
2281 GP_10_29_FN
, FN_CAN_CLK
,
2282 GP_10_28_FN
, FN_CAN0_RX
,
2283 GP_10_27_FN
, FN_CAN0_TX
,
2284 GP_10_26_FN
, FN_SCIF_CLK
,
2285 GP_10_25_FN
, FN_IP6_18_17
,
2286 GP_10_24_FN
, FN_IP6_16
,
2287 GP_10_23_FN
, FN_IP6_15_14
,
2288 GP_10_22_FN
, FN_IP6_13_12
,
2289 GP_10_21_FN
, FN_IP6_11_10
,
2290 GP_10_20_FN
, FN_IP6_9_8
,
2291 GP_10_19_FN
, FN_RX1
,
2292 GP_10_18_FN
, FN_TX1
,
2293 GP_10_17_FN
, FN_RTS1_N
,
2294 GP_10_16_FN
, FN_CTS1_N
,
2295 GP_10_15_FN
, FN_SCK1
,
2296 GP_10_14_FN
, FN_RX0
,
2297 GP_10_13_FN
, FN_TX0
,
2298 GP_10_12_FN
, FN_RTS0_N
,
2299 GP_10_11_FN
, FN_CTS0_N
,
2300 GP_10_10_FN
, FN_SCK0
,
2301 GP_10_9_FN
, FN_IP6_7
,
2302 GP_10_8_FN
, FN_IP6_6
,
2303 GP_10_7_FN
, FN_HCTS1_N
,
2304 GP_10_6_FN
, FN_IP6_5
,
2305 GP_10_5_FN
, FN_IP6_4
,
2306 GP_10_4_FN
, FN_IP6_3
,
2307 GP_10_3_FN
, FN_IP6_2
,
2308 GP_10_2_FN
, FN_HRTS0_N
,
2309 GP_10_1_FN
, FN_IP6_1
,
2310 GP_10_0_FN
, FN_IP6_0
}
2312 { PINMUX_CFG_REG("GPSR11", 0xE6060030, 32, 1) {
2315 GP_11_29_FN
, FN_AVS2
,
2316 GP_11_28_FN
, FN_AVS1
,
2317 GP_11_27_FN
, FN_ADICHS2
,
2318 GP_11_26_FN
, FN_ADICHS1
,
2319 GP_11_25_FN
, FN_ADICHS0
,
2320 GP_11_24_FN
, FN_ADIDATA
,
2321 GP_11_23_FN
, FN_ADICS_SAMP
,
2322 GP_11_22_FN
, FN_ADICLK
,
2323 GP_11_21_FN
, FN_IP7_20
,
2324 GP_11_20_FN
, FN_IP7_19
,
2325 GP_11_19_FN
, FN_IP7_18
,
2326 GP_11_18_FN
, FN_IP7_17
,
2327 GP_11_17_FN
, FN_IP7_16
,
2328 GP_11_16_FN
, FN_IP7_15_14
,
2329 GP_11_15_FN
, FN_IP7_13_12
,
2330 GP_11_14_FN
, FN_IP7_11_10
,
2331 GP_11_13_FN
, FN_IP7_9_8
,
2332 GP_11_12_FN
, FN_SD0_WP
,
2333 GP_11_11_FN
, FN_SD0_CD
,
2334 GP_11_10_FN
, FN_SD0_DAT3
,
2335 GP_11_9_FN
, FN_SD0_DAT2
,
2336 GP_11_8_FN
, FN_SD0_DAT1
,
2337 GP_11_7_FN
, FN_SD0_DAT0
,
2338 GP_11_6_FN
, FN_SD0_CMD
,
2339 GP_11_5_FN
, FN_SD0_CLK
,
2340 GP_11_4_FN
, FN_IP7_7
,
2341 GP_11_3_FN
, FN_IP7_6
,
2342 GP_11_2_FN
, FN_IP7_5_4
,
2343 GP_11_1_FN
, FN_IP7_3_2
,
2344 GP_11_0_FN
, FN_IP7_1_0
}
2346 { PINMUX_CFG_REG_VAR("IPSR0", 0xE6060040, 32,
2348 1, 1, 1, 1, 1, 1, 1, 1,
2349 1, 1, 1, 1, 1, 1, 1, 1,
2350 1, 1, 1, 1, 1, 1, 1, 1) {
2352 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2354 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2372 FN_DU0_DG7_Y3_DATA15
, 0,
2374 FN_DU0_DG6_Y2_DATA14
, 0,
2376 FN_DU0_DG5_Y1_DATA13
, 0,
2378 FN_DU0_DG4_Y0_DATA12
, 0,
2380 FN_DU0_DG3_C7_DATA11
, 0,
2382 FN_DU0_DG2_C6_DATA10
, 0,
2384 FN_DU0_DG1_DATA9
, 0,
2386 FN_DU0_DG0_DATA8
, 0,
2388 FN_DU0_DR7_Y9_DATA7
, 0,
2390 FN_DU0_DR6_Y8_DATA6
, 0,
2392 FN_DU0_DR5_Y7_DATA5
, 0,
2394 FN_DU0_DR4_Y6_DATA4
, 0,
2396 FN_DU0_DR3_Y5_DATA3
, 0,
2398 FN_DU0_DR2_Y4_DATA2
, 0,
2400 FN_DU0_DR1_DATA1
, 0,
2402 FN_DU0_DR0_DATA0
, 0 }
2404 { PINMUX_CFG_REG_VAR("IPSR1", 0xE6060044, 32,
2406 1, 1, 1, 1, 1, 1, 1, 1,
2407 1, 1, 1, 1, 1, 1, 1, 1,
2408 1, 1, 1, 1, 1, 1, 1, 1) {
2410 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2412 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2424 FN_A21
, FN_MISO_IO1
,
2426 FN_A20
, FN_MOSI_IO0
,
2428 FN_DU1_DG7_Y3_DATA11
, 0,
2430 FN_DU1_DG6_Y2_DATA10
, 0,
2432 FN_DU1_DG5_Y1_DATA9
, 0,
2434 FN_DU1_DG4_Y0_DATA8
, 0,
2436 FN_DU1_DG3_C7_DATA7
, 0,
2438 FN_DU1_DG2_C6_DATA6
, 0,
2440 FN_DU1_DR7_DATA5
, 0,
2442 FN_DU1_DR6_DATA4
, 0,
2444 FN_DU1_DR5_Y7_DATA3
, 0,
2446 FN_DU1_DR4_Y6_DATA2
, 0,
2448 FN_DU1_DR3_Y5_DATA1
, 0,
2450 FN_DU1_DR2_Y4_DATA0
, 0,
2456 FN_DU0_EXODDF_DU0_ODDF_DISP_CDE
, 0,
2458 FN_DU0_EXVSYNC_DU0_VSYNC
, 0,
2460 FN_DU0_EXHSYNC_DU0_HSYNC
, 0 }
2462 { PINMUX_CFG_REG_VAR("IPSR2", 0xE6060048, 32,
2465 1, 1, 1, 1, 1, 1, 1, 1,
2466 1, 1, 1, 1, 1, 1, 1, 1) {
2468 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2470 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2472 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2474 0, 0, 0, 0, 0, 0, 0, 0,
2476 FN_VI2_FIELD
, FN_AVB_TXD2
,
2478 FN_VI2_D11_Y3
, FN_AVB_TXD1
,
2480 FN_VI2_D10_Y2
, FN_AVB_TXD0
,
2482 FN_VI2_D9_Y1
, FN_AVB_TX_EN
,
2484 FN_VI2_D8_Y0
, FN_AVB_TXD3
,
2486 FN_VI2_D7_C7
, FN_AVB_COL
,
2488 FN_VI2_D6_C6
, FN_AVB_RX_ER
,
2490 FN_VI2_D5_C5
, FN_AVB_RXD7
,
2492 FN_VI2_D4_C4
, FN_AVB_RXD6
,
2494 FN_VI2_D3_C3
, FN_AVB_RXD5
,
2496 FN_VI2_D2_C2
, FN_AVB_RXD4
,
2498 FN_VI2_D1_C1
, FN_AVB_RXD3
,
2500 FN_VI2_D0_C0
, FN_AVB_RXD2
,
2502 FN_VI2_VSYNC_N
, FN_AVB_RXD1
,
2504 FN_VI2_HSYNC_N
, FN_AVB_RXD0
,
2506 FN_VI2_CLKENB
, FN_AVB_RX_DV
,
2508 FN_VI2_CLK
, FN_AVB_RX_CLK
}
2510 { PINMUX_CFG_REG_VAR("IPSR3", 0xE606004C, 32,
2513 1, 1, 1, 1, 1, 1, 1, 1,
2514 1, 1, 1, 1, 1, 1, 1, 1) {
2516 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2518 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2520 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2522 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2526 FN_VI3_D11_Y3
, FN_AVB_AVTP_MATCH
,
2528 FN_VI3_D9_Y1
, FN_AVB_GTXREFCLK
,
2530 FN_VI3_D8_Y0
, FN_AVB_CRS
,
2532 FN_VI3_D7_C7
, FN_AVB_PHY_INT
,
2534 FN_VI3_D6_C6
, FN_AVB_MAGIC
,
2536 FN_VI3_D5_C5
, FN_AVB_LINK
,
2538 FN_VI3_D4_C4
, FN_AVB_MDIO
,
2540 FN_VI3_D3_C3
, FN_AVB_MDC
,
2542 FN_VI3_D2_C2
, FN_AVB_GTX_CLK
,
2544 FN_VI3_D1_C1
, FN_AVB_TX_ER
,
2546 FN_VI3_D0_C0
, FN_AVB_TXD7
,
2548 FN_VI3_VSYNC_N
, FN_AVB_TXD6
,
2550 FN_VI3_HSYNC_N
, FN_AVB_TXD5
,
2552 FN_VI3_CLKENB
, FN_AVB_TXD4
,
2554 FN_VI3_CLK
, FN_AVB_TX_CLK
}
2556 { PINMUX_CFG_REG_VAR("IPSR4", 0xE6060050, 32,
2559 2, 2, 2, 2, 2, 1, 2, 1, 1) {
2561 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2563 0, 0, 0, 0, 0, 0, 0, 0,
2565 FN_VI4_FIELD
, FN_VI3_D15_Y7
,
2567 FN_VI4_D11_Y3
, FN_VI3_D14_Y6
,
2569 FN_VI4_D10_Y2
, FN_VI3_D13_Y5
,
2571 FN_VI4_D9_Y1
, FN_VI3_D12_Y4
,
2573 FN_VI4_D8_Y0
, FN_VI0_D23_R7
, FN_VI2_D15_Y7
, 0,
2575 FN_VI4_D7_C7
, FN_VI0_D22_R6
, FN_VI2_D14_Y6
, 0,
2577 FN_VI4_D6_C6
, FN_VI0_D21_R5
, FN_VI2_D13_Y5
, 0,
2579 FN_VI4_D5_C5
, FN_VI0_D20_R4
, FN_VI2_D12_Y4
, 0,
2581 FN_VI4_D4_C4
, FN_VI0_D19_R3
, FN_VI1_D15_G7_Y7
, 0,
2583 FN_VI4_D3_C3
, FN_VI0_D18_R2
, FN_VI1_D14_G6_Y6
, 0,
2585 FN_VI4_D2_C2
, 0, FN_VI0_D17_R1
, FN_VI1_D13_G5_Y5
,
2587 FN_VI4_D1_C1
, FN_VI0_D16_R0
, FN_VI1_D12_G4_Y4
, 0,
2589 FN_VI4_D0_C0
, FN_VI0_D15_G7_Y7
,
2591 FN_VI4_VSYNC_N
, FN_VI0_D14_G6_Y6
, 0, 0,
2593 FN_VI4_HSYNC_N
, FN_VI0_D13_G5_Y5
,
2595 FN_VI4_CLKENB
, FN_VI0_D12_G4_Y4
}
2597 { PINMUX_CFG_REG_VAR("IPSR5", 0xE6060054, 32,
2601 1, 1, 1, 1, 1, 1, 1, 1) {
2603 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2605 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2607 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2609 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2611 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2613 FN_VI5_D8_Y0
, FN_VI1_D23_R7
,
2615 FN_VI5_D7_C7
, FN_VI1_D22_R6
,
2617 FN_VI5_D6_C6
, FN_VI1_D21_R5
,
2619 FN_VI5_D5_C5
, FN_VI1_D20_R4
,
2621 FN_VI5_D4_C4
, FN_VI1_D19_R3
,
2623 FN_VI5_D3_C3
, FN_VI1_D18_R2
,
2625 FN_VI5_D2_C2
, FN_VI1_D17_R1
,
2627 FN_VI5_D1_C1
, FN_VI1_D16_R0
,
2629 FN_VI5_D0_C0
, FN_VI1_D15_G7_Y7_B
,
2631 FN_VI5_VSYNC_N
, FN_VI1_D14_G6_Y6_B
,
2633 FN_VI5_HSYNC_N
, FN_VI1_D13_G5_Y5_B
,
2635 FN_VI5_CLKENB
, FN_VI1_D12_G4_Y4_B
}
2637 { PINMUX_CFG_REG_VAR("IPSR6", 0xE6060058, 32,
2641 1, 1, 1, 1, 1, 1, 1, 1) {
2643 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2645 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2647 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2651 FN_DREQ1_N
, FN_RX3
, 0, 0,
2655 FN_DACK1
, FN_SCK3
, 0, 0,
2657 FN_DREQ0_N
, FN_RX2
, 0, 0,
2659 FN_DACK0
, FN_TX2
, 0, 0,
2661 FN_DRACK0
, FN_SCK2
, 0, 0,
2663 FN_MSIOF1_RXD
, FN_HRX1
,
2665 FN_MSIOF1_TXD
, FN_HTX1
,
2667 FN_MSIOF1_SYNC
, FN_HRTS1_N
,
2669 FN_MSIOF1_SCK
, FN_HSCK1
,
2671 FN_MSIOF0_RXD
, FN_HRX0
,
2673 FN_MSIOF0_TXD
, FN_HTX0
,
2675 FN_MSIOF0_SYNC
, FN_HCTS0_N
,
2677 FN_MSIOF0_SCK
, FN_HSCK0
}
2679 { PINMUX_CFG_REG_VAR("IPSR7", 0xE606005C, 32,
2685 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2687 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2689 0, 0, 0, 0, 0, 0, 0, 0,
2701 FN_SSI_SCK4
, FN_TPU0TO3
, 0, 0,
2703 FN_SSI_SDATA3
, FN_TPU0TO2
, 0, 0,
2705 FN_SSI_WS34
, FN_TPU0TO1
, 0, 0,
2707 FN_SSI_SCK34
, FN_TPU0TO0
, 0, 0,
2713 FN_PWM2
, FN_TCLK3
, FN_FSO_TOE
, 0,
2715 FN_PWM1
, FN_TCLK2
, FN_FSO_CFE_1
, 0,
2717 FN_PWM0
, FN_TCLK1
, FN_FSO_CFE_0
, 0 }
2722 const struct sh_pfc_soc_info r8a7792_pinmux_info
= {
2723 .name
= "r8a77920_pfc",
2724 .unlock_reg
= 0xe6060000, /* PMMR */
2726 .function
= { PINMUX_FUNCTION_BEGIN
, PINMUX_FUNCTION_END
},
2728 .pins
= pinmux_pins
,
2729 .nr_pins
= ARRAY_SIZE(pinmux_pins
),
2730 .groups
= pinmux_groups
,
2731 .nr_groups
= ARRAY_SIZE(pinmux_groups
),
2732 .functions
= pinmux_functions
,
2733 .nr_functions
= ARRAY_SIZE(pinmux_functions
),
2735 .cfg_regs
= pinmux_config_regs
,
2737 .pinmux_data
= pinmux_data
,
2738 .pinmux_data_size
= ARRAY_SIZE(pinmux_data
),