1291f7856SCong Dang // SPDX-License-Identifier: GPL-2.0
2291f7856SCong Dang /*
3291f7856SCong Dang * R8A779H0 processor support - PFC hardware block.
4291f7856SCong Dang *
5291f7856SCong Dang * Copyright (C) 2023 Renesas Electronics Corp.
6291f7856SCong Dang *
7291f7856SCong Dang * This file is based on the drivers/pinctrl/renesas/pfc-r8a779a0.c
8291f7856SCong Dang */
9291f7856SCong Dang
10291f7856SCong Dang #include <linux/errno.h>
11291f7856SCong Dang #include <linux/io.h>
12291f7856SCong Dang #include <linux/kernel.h>
13291f7856SCong Dang
14291f7856SCong Dang #include "sh_pfc.h"
15291f7856SCong Dang
16291f7856SCong Dang #define CFG_FLAGS (SH_PFC_PIN_CFG_DRIVE_STRENGTH | SH_PFC_PIN_CFG_PULL_UP_DOWN)
17291f7856SCong Dang
18291f7856SCong Dang #define CPU_ALL_GP(fn, sfx) \
19291f7856SCong Dang PORT_GP_CFG_19(0, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
20291f7856SCong Dang PORT_GP_CFG_29(1, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
21291f7856SCong Dang PORT_GP_CFG_1(1, 29, fn, sfx, CFG_FLAGS), \
22291f7856SCong Dang PORT_GP_CFG_16(2, fn, sfx, CFG_FLAGS), \
23291f7856SCong Dang PORT_GP_CFG_1(2, 17, fn, sfx, CFG_FLAGS), \
24291f7856SCong Dang PORT_GP_CFG_1(2, 19, fn, sfx, CFG_FLAGS), \
25291f7856SCong Dang PORT_GP_CFG_13(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
26291f7856SCong Dang PORT_GP_CFG_1(3, 13, fn, sfx, CFG_FLAGS), \
27291f7856SCong Dang PORT_GP_CFG_1(3, 14, fn, sfx, CFG_FLAGS), \
28291f7856SCong Dang PORT_GP_CFG_1(3, 15, fn, sfx, CFG_FLAGS), \
29291f7856SCong Dang PORT_GP_CFG_1(3, 16, fn, sfx, CFG_FLAGS), \
30291f7856SCong Dang PORT_GP_CFG_1(3, 17, fn, sfx, CFG_FLAGS), \
31291f7856SCong Dang PORT_GP_CFG_1(3, 18, fn, sfx, CFG_FLAGS), \
32291f7856SCong Dang PORT_GP_CFG_1(3, 19, fn, sfx, CFG_FLAGS), \
33291f7856SCong Dang PORT_GP_CFG_1(3, 20, fn, sfx, CFG_FLAGS), \
34291f7856SCong Dang PORT_GP_CFG_1(3, 21, fn, sfx, CFG_FLAGS), \
35291f7856SCong Dang PORT_GP_CFG_1(3, 22, fn, sfx, CFG_FLAGS), \
36291f7856SCong Dang PORT_GP_CFG_1(3, 23, fn, sfx, CFG_FLAGS), \
37291f7856SCong Dang PORT_GP_CFG_1(3, 24, fn, sfx, CFG_FLAGS), \
38291f7856SCong Dang PORT_GP_CFG_1(3, 25, fn, sfx, CFG_FLAGS), \
39291f7856SCong Dang PORT_GP_CFG_1(3, 26, fn, sfx, CFG_FLAGS), \
40291f7856SCong Dang PORT_GP_CFG_1(3, 27, fn, sfx, CFG_FLAGS), \
41291f7856SCong Dang PORT_GP_CFG_1(3, 28, fn, sfx, CFG_FLAGS), \
42291f7856SCong Dang PORT_GP_CFG_1(3, 29, fn, sfx, CFG_FLAGS), \
43291f7856SCong Dang PORT_GP_CFG_1(3, 30, fn, sfx, CFG_FLAGS), \
44291f7856SCong Dang PORT_GP_CFG_1(3, 31, fn, sfx, CFG_FLAGS), \
45291f7856SCong Dang PORT_GP_CFG_14(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
46291f7856SCong Dang PORT_GP_CFG_1(4, 14, fn, sfx, CFG_FLAGS), \
47291f7856SCong Dang PORT_GP_CFG_1(4, 15, fn, sfx, CFG_FLAGS), \
48291f7856SCong Dang PORT_GP_CFG_1(4, 21, fn, sfx, CFG_FLAGS), \
49291f7856SCong Dang PORT_GP_CFG_1(4, 23, fn, sfx, CFG_FLAGS), \
50291f7856SCong Dang PORT_GP_CFG_1(4, 24, fn, sfx, CFG_FLAGS), \
51291f7856SCong Dang PORT_GP_CFG_21(5, fn, sfx, CFG_FLAGS), \
52291f7856SCong Dang PORT_GP_CFG_21(6, fn, sfx, CFG_FLAGS), \
53291f7856SCong Dang PORT_GP_CFG_21(7, fn, sfx, CFG_FLAGS)
54291f7856SCong Dang
55291f7856SCong Dang #define CPU_ALL_NOGP(fn) \
56291f7856SCong Dang PIN_NOGP_CFG(VDDQ_AVB0, "VDDQ_AVB0", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
57291f7856SCong Dang PIN_NOGP_CFG(VDDQ_AVB1, "VDDQ_AVB1", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
58291f7856SCong Dang PIN_NOGP_CFG(VDDQ_AVB2, "VDDQ_AVB2", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25)
59291f7856SCong Dang
60291f7856SCong Dang /*
61291f7856SCong Dang * F_() : just information
62291f7856SCong Dang * FM() : macro for FN_xxx / xxx_MARK
63291f7856SCong Dang */
64291f7856SCong Dang
65291f7856SCong Dang /* GPSR0 */
66291f7856SCong Dang #define GPSR0_18 F_(MSIOF2_RXD, IP2SR0_11_8)
67291f7856SCong Dang #define GPSR0_17 F_(MSIOF2_SCK, IP2SR0_7_4)
68291f7856SCong Dang #define GPSR0_16 F_(MSIOF2_TXD, IP2SR0_3_0)
69291f7856SCong Dang #define GPSR0_15 F_(MSIOF2_SYNC, IP1SR0_31_28)
70291f7856SCong Dang #define GPSR0_14 F_(MSIOF2_SS1, IP1SR0_27_24)
71291f7856SCong Dang #define GPSR0_13 F_(MSIOF2_SS2, IP1SR0_23_20)
72291f7856SCong Dang #define GPSR0_12 F_(MSIOF5_RXD, IP1SR0_19_16)
73291f7856SCong Dang #define GPSR0_11 F_(MSIOF5_SCK, IP1SR0_15_12)
74291f7856SCong Dang #define GPSR0_10 F_(MSIOF5_TXD, IP1SR0_11_8)
75291f7856SCong Dang #define GPSR0_9 F_(MSIOF5_SYNC, IP1SR0_7_4)
76291f7856SCong Dang #define GPSR0_8 F_(MSIOF5_SS1, IP1SR0_3_0)
77291f7856SCong Dang #define GPSR0_7 F_(MSIOF5_SS2, IP0SR0_31_28)
78c3bec954SGeert Uytterhoeven #define GPSR0_6 F_(IRQ0_A, IP0SR0_27_24)
79c3bec954SGeert Uytterhoeven #define GPSR0_5 F_(IRQ1_A, IP0SR0_23_20)
80c3bec954SGeert Uytterhoeven #define GPSR0_4 F_(IRQ2_A, IP0SR0_19_16)
81c3bec954SGeert Uytterhoeven #define GPSR0_3 F_(IRQ3_A, IP0SR0_15_12)
82291f7856SCong Dang #define GPSR0_2 F_(GP0_02, IP0SR0_11_8)
83291f7856SCong Dang #define GPSR0_1 F_(GP0_01, IP0SR0_7_4)
84291f7856SCong Dang #define GPSR0_0 F_(GP0_00, IP0SR0_3_0)
85291f7856SCong Dang
86291f7856SCong Dang /* GPSR1 */
87291f7856SCong Dang #define GPSR1_29 F_(ERROROUTC_N_A, IP3SR1_23_20)
88291f7856SCong Dang #define GPSR1_28 F_(HTX3, IP3SR1_19_16)
89291f7856SCong Dang #define GPSR1_27 F_(HCTS3_N, IP3SR1_15_12)
90291f7856SCong Dang #define GPSR1_26 F_(HRTS3_N, IP3SR1_11_8)
91291f7856SCong Dang #define GPSR1_25 F_(HSCK3, IP3SR1_7_4)
92291f7856SCong Dang #define GPSR1_24 F_(HRX3, IP3SR1_3_0)
93291f7856SCong Dang #define GPSR1_23 F_(GP1_23, IP2SR1_31_28)
94291f7856SCong Dang #define GPSR1_22 F_(AUDIO_CLKIN, IP2SR1_27_24)
95291f7856SCong Dang #define GPSR1_21 F_(AUDIO_CLKOUT, IP2SR1_23_20)
96291f7856SCong Dang #define GPSR1_20 F_(SSI_SD, IP2SR1_19_16)
97291f7856SCong Dang #define GPSR1_19 F_(SSI_WS, IP2SR1_15_12)
98291f7856SCong Dang #define GPSR1_18 F_(SSI_SCK, IP2SR1_11_8)
99291f7856SCong Dang #define GPSR1_17 F_(SCIF_CLK, IP2SR1_7_4)
100291f7856SCong Dang #define GPSR1_16 F_(HRX0, IP2SR1_3_0)
101291f7856SCong Dang #define GPSR1_15 F_(HSCK0, IP1SR1_31_28)
102291f7856SCong Dang #define GPSR1_14 F_(HRTS0_N, IP1SR1_27_24)
103291f7856SCong Dang #define GPSR1_13 F_(HCTS0_N, IP1SR1_23_20)
104291f7856SCong Dang #define GPSR1_12 F_(HTX0, IP1SR1_19_16)
105291f7856SCong Dang #define GPSR1_11 F_(MSIOF0_RXD, IP1SR1_15_12)
106291f7856SCong Dang #define GPSR1_10 F_(MSIOF0_SCK, IP1SR1_11_8)
107291f7856SCong Dang #define GPSR1_9 F_(MSIOF0_TXD, IP1SR1_7_4)
108291f7856SCong Dang #define GPSR1_8 F_(MSIOF0_SYNC, IP1SR1_3_0)
109291f7856SCong Dang #define GPSR1_7 F_(MSIOF0_SS1, IP0SR1_31_28)
110291f7856SCong Dang #define GPSR1_6 F_(MSIOF0_SS2, IP0SR1_27_24)
111291f7856SCong Dang #define GPSR1_5 F_(MSIOF1_RXD, IP0SR1_23_20)
112291f7856SCong Dang #define GPSR1_4 F_(MSIOF1_TXD, IP0SR1_19_16)
113291f7856SCong Dang #define GPSR1_3 F_(MSIOF1_SCK, IP0SR1_15_12)
114291f7856SCong Dang #define GPSR1_2 F_(MSIOF1_SYNC, IP0SR1_11_8)
115291f7856SCong Dang #define GPSR1_1 F_(MSIOF1_SS1, IP0SR1_7_4)
116291f7856SCong Dang #define GPSR1_0 F_(MSIOF1_SS2, IP0SR1_3_0)
117291f7856SCong Dang
118291f7856SCong Dang /* GPSR2 */
119291f7856SCong Dang #define GPSR2_19 F_(CANFD1_RX, IP2SR2_15_12)
120291f7856SCong Dang #define GPSR2_17 F_(CANFD1_TX, IP2SR2_7_4)
121291f7856SCong Dang #define GPSR2_15 F_(CANFD3_RX, IP1SR2_31_28)
122291f7856SCong Dang #define GPSR2_14 F_(CANFD3_TX, IP1SR2_27_24)
123291f7856SCong Dang #define GPSR2_13 F_(CANFD2_RX, IP1SR2_23_20)
124291f7856SCong Dang #define GPSR2_12 F_(CANFD2_TX, IP1SR2_19_16)
125291f7856SCong Dang #define GPSR2_11 F_(CANFD0_RX, IP1SR2_15_12)
126291f7856SCong Dang #define GPSR2_10 F_(CANFD0_TX, IP1SR2_11_8)
127291f7856SCong Dang #define GPSR2_9 F_(CAN_CLK, IP1SR2_7_4)
128291f7856SCong Dang #define GPSR2_8 F_(TPU0TO0, IP1SR2_3_0)
129291f7856SCong Dang #define GPSR2_7 F_(TPU0TO1, IP0SR2_31_28)
130291f7856SCong Dang #define GPSR2_6 F_(FXR_TXDB, IP0SR2_27_24)
131291f7856SCong Dang #define GPSR2_5 F_(FXR_TXENB_N_A, IP0SR2_23_20)
132291f7856SCong Dang #define GPSR2_4 F_(RXDB_EXTFXR, IP0SR2_19_16)
133291f7856SCong Dang #define GPSR2_3 F_(CLK_EXTFXR, IP0SR2_15_12)
134291f7856SCong Dang #define GPSR2_2 F_(RXDA_EXTFXR, IP0SR2_11_8)
135291f7856SCong Dang #define GPSR2_1 F_(FXR_TXENA_N_A, IP0SR2_7_4)
136291f7856SCong Dang #define GPSR2_0 F_(FXR_TXDA, IP0SR2_3_0)
137291f7856SCong Dang
138291f7856SCong Dang /* GPSR3 */
139291f7856SCong Dang #define GPSR3_31 F_(TCLK4, IP3SR3_31_28)
140291f7856SCong Dang #define GPSR3_30 F_(TCLK3, IP3SR3_27_24)
141291f7856SCong Dang #define GPSR3_29 F_(RPC_INT_N, IP3SR3_23_20)
142291f7856SCong Dang #define GPSR3_28 F_(RPC_WP_N, IP3SR3_19_16)
143291f7856SCong Dang #define GPSR3_27 F_(RPC_RESET_N, IP3SR3_15_12)
144291f7856SCong Dang #define GPSR3_26 F_(QSPI1_IO3, IP3SR3_11_8)
145291f7856SCong Dang #define GPSR3_25 F_(QSPI1_SSL, IP3SR3_7_4)
146291f7856SCong Dang #define GPSR3_24 F_(QSPI1_IO2, IP3SR3_3_0)
147291f7856SCong Dang #define GPSR3_23 F_(QSPI1_MISO_IO1, IP2SR3_31_28)
148291f7856SCong Dang #define GPSR3_22 F_(QSPI1_SPCLK, IP2SR3_27_24)
149291f7856SCong Dang #define GPSR3_21 F_(QSPI1_MOSI_IO0, IP2SR3_23_20)
150291f7856SCong Dang #define GPSR3_20 F_(QSPI0_SPCLK, IP2SR3_19_16)
151291f7856SCong Dang #define GPSR3_19 F_(QSPI0_MOSI_IO0, IP2SR3_15_12)
152291f7856SCong Dang #define GPSR3_18 F_(QSPI0_MISO_IO1, IP2SR3_11_8)
153291f7856SCong Dang #define GPSR3_17 F_(QSPI0_IO2, IP2SR3_7_4)
154291f7856SCong Dang #define GPSR3_16 F_(QSPI0_IO3, IP2SR3_3_0)
155291f7856SCong Dang #define GPSR3_15 F_(QSPI0_SSL, IP1SR3_31_28)
156291f7856SCong Dang #define GPSR3_14 F_(PWM2, IP1SR3_27_24)
157291f7856SCong Dang #define GPSR3_13 F_(PWM1, IP1SR3_23_20)
158291f7856SCong Dang #define GPSR3_12 F_(SD_WP, IP1SR3_19_16)
159291f7856SCong Dang #define GPSR3_11 F_(SD_CD, IP1SR3_15_12)
160291f7856SCong Dang #define GPSR3_10 F_(MMC_SD_CMD, IP1SR3_11_8)
161291f7856SCong Dang #define GPSR3_9 F_(MMC_D6, IP1SR3_7_4)
162291f7856SCong Dang #define GPSR3_8 F_(MMC_D7, IP1SR3_3_0)
163291f7856SCong Dang #define GPSR3_7 F_(MMC_D4, IP0SR3_31_28)
164291f7856SCong Dang #define GPSR3_6 F_(MMC_D5, IP0SR3_27_24)
165291f7856SCong Dang #define GPSR3_5 F_(MMC_SD_D3, IP0SR3_23_20)
166291f7856SCong Dang #define GPSR3_4 F_(MMC_DS, IP0SR3_19_16)
167291f7856SCong Dang #define GPSR3_3 F_(MMC_SD_CLK, IP0SR3_15_12)
168291f7856SCong Dang #define GPSR3_2 F_(MMC_SD_D2, IP0SR3_11_8)
169291f7856SCong Dang #define GPSR3_1 F_(MMC_SD_D0, IP0SR3_7_4)
170291f7856SCong Dang #define GPSR3_0 F_(MMC_SD_D1, IP0SR3_3_0)
171291f7856SCong Dang
172291f7856SCong Dang /* GPSR4 */
173291f7856SCong Dang #define GPSR4_24 F_(AVS1, IP3SR4_3_0)
174291f7856SCong Dang #define GPSR4_23 F_(AVS0, IP2SR4_31_28)
175291f7856SCong Dang #define GPSR4_21 F_(PCIE0_CLKREQ_N, IP2SR4_23_20)
176291f7856SCong Dang #define GPSR4_15 F_(PWM4, IP1SR4_31_28)
177291f7856SCong Dang #define GPSR4_14 F_(PWM3, IP1SR4_27_24)
178291f7856SCong Dang #define GPSR4_13 F_(HSCK2, IP1SR4_23_20)
179291f7856SCong Dang #define GPSR4_12 F_(HCTS2_N, IP1SR4_19_16)
180291f7856SCong Dang #define GPSR4_11 F_(SCIF_CLK2, IP1SR4_15_12)
181291f7856SCong Dang #define GPSR4_10 F_(HRTS2_N, IP1SR4_11_8)
182291f7856SCong Dang #define GPSR4_9 F_(HTX2, IP1SR4_7_4)
183291f7856SCong Dang #define GPSR4_8 F_(HRX2, IP1SR4_3_0)
184291f7856SCong Dang #define GPSR4_7 F_(SDA3, IP0SR4_31_28)
185291f7856SCong Dang #define GPSR4_6 F_(SCL3, IP0SR4_27_24)
186291f7856SCong Dang #define GPSR4_5 F_(SDA2, IP0SR4_23_20)
187291f7856SCong Dang #define GPSR4_4 F_(SCL2, IP0SR4_19_16)
188291f7856SCong Dang #define GPSR4_3 F_(SDA1, IP0SR4_15_12)
189291f7856SCong Dang #define GPSR4_2 F_(SCL1, IP0SR4_11_8)
190291f7856SCong Dang #define GPSR4_1 F_(SDA0, IP0SR4_7_4)
191291f7856SCong Dang #define GPSR4_0 F_(SCL0, IP0SR4_3_0)
192291f7856SCong Dang
193291f7856SCong Dang /* GPSR 5 */
194291f7856SCong Dang #define GPSR5_20 F_(AVB2_RX_CTL, IP2SR5_19_16)
195291f7856SCong Dang #define GPSR5_19 F_(AVB2_TX_CTL, IP2SR5_15_12)
196291f7856SCong Dang #define GPSR5_18 F_(AVB2_RXC, IP2SR5_11_8)
197291f7856SCong Dang #define GPSR5_17 F_(AVB2_RD0, IP2SR5_7_4)
198291f7856SCong Dang #define GPSR5_16 F_(AVB2_TXC, IP2SR5_3_0)
199291f7856SCong Dang #define GPSR5_15 F_(AVB2_TD0, IP1SR5_31_28)
200291f7856SCong Dang #define GPSR5_14 F_(AVB2_RD1, IP1SR5_27_24)
201291f7856SCong Dang #define GPSR5_13 F_(AVB2_RD2, IP1SR5_23_20)
202291f7856SCong Dang #define GPSR5_12 F_(AVB2_TD1, IP1SR5_19_16)
203291f7856SCong Dang #define GPSR5_11 F_(AVB2_TD2, IP1SR5_15_12)
204291f7856SCong Dang #define GPSR5_10 F_(AVB2_MDIO, IP1SR5_11_8)
205291f7856SCong Dang #define GPSR5_9 F_(AVB2_RD3, IP1SR5_7_4)
206291f7856SCong Dang #define GPSR5_8 F_(AVB2_TD3, IP1SR5_3_0)
207291f7856SCong Dang #define GPSR5_7 F_(AVB2_TXCREFCLK, IP0SR5_31_28)
208291f7856SCong Dang #define GPSR5_6 F_(AVB2_MDC, IP0SR5_27_24)
209291f7856SCong Dang #define GPSR5_5 F_(AVB2_MAGIC, IP0SR5_23_20)
210291f7856SCong Dang #define GPSR5_4 F_(AVB2_PHY_INT, IP0SR5_19_16)
211291f7856SCong Dang #define GPSR5_3 F_(AVB2_LINK, IP0SR5_15_12)
212291f7856SCong Dang #define GPSR5_2 F_(AVB2_AVTP_MATCH, IP0SR5_11_8)
213291f7856SCong Dang #define GPSR5_1 F_(AVB2_AVTP_CAPTURE, IP0SR5_7_4)
214291f7856SCong Dang #define GPSR5_0 F_(AVB2_AVTP_PPS, IP0SR5_3_0)
215291f7856SCong Dang
216291f7856SCong Dang /* GPSR 6 */
217291f7856SCong Dang #define GPSR6_20 F_(AVB1_TXCREFCLK, IP2SR6_19_16)
218291f7856SCong Dang #define GPSR6_19 F_(AVB1_RD3, IP2SR6_15_12)
219291f7856SCong Dang #define GPSR6_18 F_(AVB1_TD3, IP2SR6_11_8)
220291f7856SCong Dang #define GPSR6_17 F_(AVB1_RD2, IP2SR6_7_4)
221291f7856SCong Dang #define GPSR6_16 F_(AVB1_TD2, IP2SR6_3_0)
222291f7856SCong Dang #define GPSR6_15 F_(AVB1_RD0, IP1SR6_31_28)
223291f7856SCong Dang #define GPSR6_14 F_(AVB1_RD1, IP1SR6_27_24)
224291f7856SCong Dang #define GPSR6_13 F_(AVB1_TD0, IP1SR6_23_20)
225291f7856SCong Dang #define GPSR6_12 F_(AVB1_TD1, IP1SR6_19_16)
226291f7856SCong Dang #define GPSR6_11 F_(AVB1_AVTP_CAPTURE, IP1SR6_15_12)
227291f7856SCong Dang #define GPSR6_10 F_(AVB1_AVTP_PPS, IP1SR6_11_8)
228291f7856SCong Dang #define GPSR6_9 F_(AVB1_RX_CTL, IP1SR6_7_4)
229291f7856SCong Dang #define GPSR6_8 F_(AVB1_RXC, IP1SR6_3_0)
230291f7856SCong Dang #define GPSR6_7 F_(AVB1_TX_CTL, IP0SR6_31_28)
231291f7856SCong Dang #define GPSR6_6 F_(AVB1_TXC, IP0SR6_27_24)
232291f7856SCong Dang #define GPSR6_5 F_(AVB1_AVTP_MATCH, IP0SR6_23_20)
233291f7856SCong Dang #define GPSR6_4 F_(AVB1_LINK, IP0SR6_19_16)
234291f7856SCong Dang #define GPSR6_3 F_(AVB1_PHY_INT, IP0SR6_15_12)
235291f7856SCong Dang #define GPSR6_2 F_(AVB1_MDC, IP0SR6_11_8)
236291f7856SCong Dang #define GPSR6_1 F_(AVB1_MAGIC, IP0SR6_7_4)
237291f7856SCong Dang #define GPSR6_0 F_(AVB1_MDIO, IP0SR6_3_0)
238291f7856SCong Dang
239291f7856SCong Dang /* GPSR7 */
240291f7856SCong Dang #define GPSR7_20 F_(AVB0_RX_CTL, IP2SR7_19_16)
241291f7856SCong Dang #define GPSR7_19 F_(AVB0_RXC, IP2SR7_15_12)
242291f7856SCong Dang #define GPSR7_18 F_(AVB0_RD0, IP2SR7_11_8)
243291f7856SCong Dang #define GPSR7_17 F_(AVB0_RD1, IP2SR7_7_4)
244291f7856SCong Dang #define GPSR7_16 F_(AVB0_TX_CTL, IP2SR7_3_0)
245291f7856SCong Dang #define GPSR7_15 F_(AVB0_TXC, IP1SR7_31_28)
246291f7856SCong Dang #define GPSR7_14 F_(AVB0_MDIO, IP1SR7_27_24)
247291f7856SCong Dang #define GPSR7_13 F_(AVB0_MDC, IP1SR7_23_20)
248291f7856SCong Dang #define GPSR7_12 F_(AVB0_RD2, IP1SR7_19_16)
249291f7856SCong Dang #define GPSR7_11 F_(AVB0_TD0, IP1SR7_15_12)
250291f7856SCong Dang #define GPSR7_10 F_(AVB0_MAGIC, IP1SR7_11_8)
251291f7856SCong Dang #define GPSR7_9 F_(AVB0_TXCREFCLK, IP1SR7_7_4)
252291f7856SCong Dang #define GPSR7_8 F_(AVB0_RD3, IP1SR7_3_0)
253291f7856SCong Dang #define GPSR7_7 F_(AVB0_TD1, IP0SR7_31_28)
254291f7856SCong Dang #define GPSR7_6 F_(AVB0_TD2, IP0SR7_27_24)
255291f7856SCong Dang #define GPSR7_5 F_(AVB0_PHY_INT, IP0SR7_23_20)
256291f7856SCong Dang #define GPSR7_4 F_(AVB0_LINK, IP0SR7_19_16)
257291f7856SCong Dang #define GPSR7_3 F_(AVB0_TD3, IP0SR7_15_12)
258291f7856SCong Dang #define GPSR7_2 F_(AVB0_AVTP_MATCH, IP0SR7_11_8)
259291f7856SCong Dang #define GPSR7_1 F_(AVB0_AVTP_CAPTURE, IP0SR7_7_4)
260291f7856SCong Dang #define GPSR7_0 F_(AVB0_AVTP_PPS, IP0SR7_3_0)
261291f7856SCong Dang
262291f7856SCong Dang
263291f7856SCong Dang /* SR0 */
264291f7856SCong Dang /* IP0SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
265291f7856SCong Dang #define IP0SR0_3_0 F_(0, 0) FM(ERROROUTC_N_B) FM(TCLK2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
266291f7856SCong Dang #define IP0SR0_7_4 F_(0, 0) FM(MSIOF3_SS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
267291f7856SCong Dang #define IP0SR0_11_8 F_(0, 0) FM(MSIOF3_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
268c3bec954SGeert Uytterhoeven #define IP0SR0_15_12 FM(IRQ3_A) FM(MSIOF3_SCK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
269c3bec954SGeert Uytterhoeven #define IP0SR0_19_16 FM(IRQ2_A) FM(MSIOF3_TXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
270c3bec954SGeert Uytterhoeven #define IP0SR0_23_20 FM(IRQ1_A) FM(MSIOF3_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
271c3bec954SGeert Uytterhoeven #define IP0SR0_27_24 FM(IRQ0_A) FM(MSIOF3_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
272291f7856SCong Dang #define IP0SR0_31_28 FM(MSIOF5_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
273291f7856SCong Dang
274291f7856SCong Dang /* IP1SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
275291f7856SCong Dang #define IP1SR0_3_0 FM(MSIOF5_SS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
276291f7856SCong Dang #define IP1SR0_7_4 FM(MSIOF5_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
277291f7856SCong Dang #define IP1SR0_11_8 FM(MSIOF5_TXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
278291f7856SCong Dang #define IP1SR0_15_12 FM(MSIOF5_SCK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
279291f7856SCong Dang #define IP1SR0_19_16 FM(MSIOF5_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
280291f7856SCong Dang #define IP1SR0_23_20 FM(MSIOF2_SS2) FM(TCLK1_A) FM(IRQ2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
281291f7856SCong Dang #define IP1SR0_27_24 FM(MSIOF2_SS1) FM(HTX1_A) FM(TX1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
282291f7856SCong Dang #define IP1SR0_31_28 FM(MSIOF2_SYNC) FM(HRX1_A) FM(RX1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
283291f7856SCong Dang
284291f7856SCong Dang /* IP2SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
285291f7856SCong Dang #define IP2SR0_3_0 FM(MSIOF2_TXD) FM(HCTS1_N_A) FM(CTS1_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
286291f7856SCong Dang #define IP2SR0_7_4 FM(MSIOF2_SCK) FM(HRTS1_N_A) FM(RTS1_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
287291f7856SCong Dang #define IP2SR0_11_8 FM(MSIOF2_RXD) FM(HSCK1_A) FM(SCK1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
288291f7856SCong Dang
289291f7856SCong Dang /* SR1 */
290291f7856SCong Dang /* IP0SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
291291f7856SCong Dang #define IP0SR1_3_0 FM(MSIOF1_SS2) FM(HTX3_B) FM(TX3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
292291f7856SCong Dang #define IP0SR1_7_4 FM(MSIOF1_SS1) FM(HCTS3_N_B) FM(RX3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
293291f7856SCong Dang #define IP0SR1_11_8 FM(MSIOF1_SYNC) FM(HRTS3_N_B) FM(RTS3_N_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
294291f7856SCong Dang #define IP0SR1_15_12 FM(MSIOF1_SCK) FM(HSCK3_B) FM(CTS3_N_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
295291f7856SCong Dang #define IP0SR1_19_16 FM(MSIOF1_TXD) FM(HRX3_B) FM(SCK3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
296291f7856SCong Dang #define IP0SR1_23_20 FM(MSIOF1_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
297291f7856SCong Dang #define IP0SR1_27_24 FM(MSIOF0_SS2) FM(HTX1_B) FM(TX1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
298291f7856SCong Dang #define IP0SR1_31_28 FM(MSIOF0_SS1) FM(HRX1_B) FM(RX1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
299291f7856SCong Dang
300291f7856SCong Dang /* IP1SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
301291f7856SCong Dang #define IP1SR1_3_0 FM(MSIOF0_SYNC) FM(HCTS1_N_B) FM(CTS1_N_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
302291f7856SCong Dang #define IP1SR1_7_4 FM(MSIOF0_TXD) FM(HRTS1_N_B) FM(RTS1_N_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
303291f7856SCong Dang #define IP1SR1_11_8 FM(MSIOF0_SCK) FM(HSCK1_B) FM(SCK1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
304291f7856SCong Dang #define IP1SR1_15_12 FM(MSIOF0_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
305291f7856SCong Dang #define IP1SR1_19_16 FM(HTX0) FM(TX0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
306291f7856SCong Dang #define IP1SR1_23_20 FM(HCTS0_N) FM(CTS0_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
307291f7856SCong Dang #define IP1SR1_27_24 FM(HRTS0_N) FM(RTS0_N) FM(PWM0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
308291f7856SCong Dang #define IP1SR1_31_28 FM(HSCK0) FM(SCK0) FM(PWM0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
309291f7856SCong Dang
310291f7856SCong Dang /* IP2SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
311291f7856SCong Dang #define IP2SR1_3_0 FM(HRX0) FM(RX0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
312291f7856SCong Dang #define IP2SR1_7_4 FM(SCIF_CLK) FM(IRQ4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
313291f7856SCong Dang #define IP2SR1_11_8 FM(SSI_SCK) FM(TCLK3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
314291f7856SCong Dang #define IP2SR1_15_12 FM(SSI_WS) FM(TCLK4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
315291f7856SCong Dang #define IP2SR1_19_16 FM(SSI_SD) FM(IRQ0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
316291f7856SCong Dang #define IP2SR1_23_20 FM(AUDIO_CLKOUT) FM(IRQ1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
317291f7856SCong Dang #define IP2SR1_27_24 FM(AUDIO_CLKIN) FM(PWM3_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
318291f7856SCong Dang #define IP2SR1_31_28 F_(0, 0) FM(TCLK2_A) FM(MSIOF4_SS1) FM(IRQ3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
319291f7856SCong Dang
320291f7856SCong Dang /* IP3SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
321291f7856SCong Dang #define IP3SR1_3_0 FM(HRX3_A) FM(SCK3_A) FM(MSIOF4_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
322291f7856SCong Dang #define IP3SR1_7_4 FM(HSCK3_A) FM(CTS3_N_A) FM(MSIOF4_SCK) FM(TPU0TO0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
323291f7856SCong Dang #define IP3SR1_11_8 FM(HRTS3_N_A) FM(RTS3_N_A) FM(MSIOF4_TXD) FM(TPU0TO1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
324291f7856SCong Dang #define IP3SR1_15_12 FM(HCTS3_N_A) FM(RX3_A) FM(MSIOF4_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
325291f7856SCong Dang #define IP3SR1_19_16 FM(HTX3_A) FM(TX3_A) FM(MSIOF4_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
326291f7856SCong Dang #define IP3SR1_23_20 FM(ERROROUTC_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
327291f7856SCong Dang
328291f7856SCong Dang /* SR2 */
329291f7856SCong Dang /* IP0SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
330291f7856SCong Dang #define IP0SR2_3_0 FM(FXR_TXDA) F_(0, 0) FM(TPU0TO2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
331291f7856SCong Dang #define IP0SR2_7_4 FM(FXR_TXENA_N_A) F_(0, 0) FM(TPU0TO3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
332291f7856SCong Dang #define IP0SR2_11_8 FM(RXDA_EXTFXR) F_(0, 0) FM(IRQ5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
333291f7856SCong Dang #define IP0SR2_15_12 FM(CLK_EXTFXR) F_(0, 0) FM(IRQ4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
334291f7856SCong Dang #define IP0SR2_19_16 FM(RXDB_EXTFXR) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
335291f7856SCong Dang #define IP0SR2_23_20 FM(FXR_TXENB_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
336291f7856SCong Dang #define IP0SR2_27_24 FM(FXR_TXDB) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
337291f7856SCong Dang #define IP0SR2_31_28 FM(TPU0TO1_A) F_(0, 0) F_(0, 0) FM(TCLK2_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
338291f7856SCong Dang
339291f7856SCong Dang /* IP1SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
340291f7856SCong Dang #define IP1SR2_3_0 FM(TPU0TO0_A) F_(0, 0) F_(0, 0) FM(TCLK1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
341291f7856SCong Dang #define IP1SR2_7_4 FM(CAN_CLK) FM(FXR_TXENA_N_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
342291f7856SCong Dang #define IP1SR2_11_8 FM(CANFD0_TX) FM(FXR_TXENB_N_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
343291f7856SCong Dang #define IP1SR2_15_12 FM(CANFD0_RX) FM(STPWT_EXTFXR) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
344291f7856SCong Dang #define IP1SR2_19_16 FM(CANFD2_TX) FM(TPU0TO2_A) F_(0, 0) FM(TCLK3_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
345291f7856SCong Dang #define IP1SR2_23_20 FM(CANFD2_RX) FM(TPU0TO3_A) FM(PWM1_B) FM(TCLK4_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
346291f7856SCong Dang #define IP1SR2_27_24 FM(CANFD3_TX) F_(0, 0) FM(PWM2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
347291f7856SCong Dang #define IP1SR2_31_28 FM(CANFD3_RX) F_(0, 0) FM(PWM3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
348291f7856SCong Dang
349291f7856SCong Dang /* IP2SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
350291f7856SCong Dang #define IP2SR2_7_4 FM(CANFD1_TX) F_(0, 0) FM(PWM1_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
351291f7856SCong Dang #define IP2SR2_15_12 FM(CANFD1_RX) F_(0, 0) FM(PWM2_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
352291f7856SCong Dang
353291f7856SCong Dang /* SR3 */
354291f7856SCong Dang /* IP0SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
355291f7856SCong Dang #define IP0SR3_3_0 FM(MMC_SD_D1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
356291f7856SCong Dang #define IP0SR3_7_4 FM(MMC_SD_D0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
357291f7856SCong Dang #define IP0SR3_11_8 FM(MMC_SD_D2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
358291f7856SCong Dang #define IP0SR3_15_12 FM(MMC_SD_CLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
359291f7856SCong Dang #define IP0SR3_19_16 FM(MMC_DS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
360291f7856SCong Dang #define IP0SR3_23_20 FM(MMC_SD_D3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
361291f7856SCong Dang #define IP0SR3_27_24 FM(MMC_D5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
362291f7856SCong Dang #define IP0SR3_31_28 FM(MMC_D4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
363291f7856SCong Dang
364291f7856SCong Dang /* IP1SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
365291f7856SCong Dang #define IP1SR3_3_0 FM(MMC_D7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
366291f7856SCong Dang #define IP1SR3_7_4 FM(MMC_D6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
367291f7856SCong Dang #define IP1SR3_11_8 FM(MMC_SD_CMD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
368291f7856SCong Dang #define IP1SR3_15_12 FM(SD_CD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
369291f7856SCong Dang #define IP1SR3_19_16 FM(SD_WP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
370291f7856SCong Dang #define IP1SR3_23_20 FM(PWM1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
371291f7856SCong Dang #define IP1SR3_27_24 FM(PWM2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
372291f7856SCong Dang #define IP1SR3_31_28 FM(QSPI0_SSL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
373291f7856SCong Dang
374291f7856SCong Dang /* IP2SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
375291f7856SCong Dang #define IP2SR3_3_0 FM(QSPI0_IO3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
376291f7856SCong Dang #define IP2SR3_7_4 FM(QSPI0_IO2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
377291f7856SCong Dang #define IP2SR3_11_8 FM(QSPI0_MISO_IO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
378291f7856SCong Dang #define IP2SR3_15_12 FM(QSPI0_MOSI_IO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
379291f7856SCong Dang #define IP2SR3_19_16 FM(QSPI0_SPCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
380291f7856SCong Dang #define IP2SR3_23_20 FM(QSPI1_MOSI_IO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
381291f7856SCong Dang #define IP2SR3_27_24 FM(QSPI1_SPCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
382291f7856SCong Dang #define IP2SR3_31_28 FM(QSPI1_MISO_IO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
383291f7856SCong Dang
384291f7856SCong Dang /* IP3SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
385291f7856SCong Dang #define IP3SR3_3_0 FM(QSPI1_IO2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
386291f7856SCong Dang #define IP3SR3_7_4 FM(QSPI1_SSL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
387291f7856SCong Dang #define IP3SR3_11_8 FM(QSPI1_IO3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
388291f7856SCong Dang #define IP3SR3_15_12 FM(RPC_RESET_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
389291f7856SCong Dang #define IP3SR3_19_16 FM(RPC_WP_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
390291f7856SCong Dang #define IP3SR3_23_20 FM(RPC_INT_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
391291f7856SCong Dang #define IP3SR3_27_24 FM(TCLK3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
392291f7856SCong Dang #define IP3SR3_31_28 FM(TCLK4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
393291f7856SCong Dang
394291f7856SCong Dang /* SR4 */
395291f7856SCong Dang /* IP0SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
396291f7856SCong Dang #define IP0SR4_3_0 FM(SCL0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
397291f7856SCong Dang #define IP0SR4_7_4 FM(SDA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
398291f7856SCong Dang #define IP0SR4_11_8 FM(SCL1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
399291f7856SCong Dang #define IP0SR4_15_12 FM(SDA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
400291f7856SCong Dang #define IP0SR4_19_16 FM(SCL2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
401291f7856SCong Dang #define IP0SR4_23_20 FM(SDA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
402291f7856SCong Dang #define IP0SR4_27_24 FM(SCL3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
403291f7856SCong Dang #define IP0SR4_31_28 FM(SDA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
404291f7856SCong Dang
405291f7856SCong Dang /* IP1SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
406291f7856SCong Dang #define IP1SR4_3_0 FM(HRX2) FM(SCK4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
407291f7856SCong Dang #define IP1SR4_7_4 FM(HTX2) FM(CTS4_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
408291f7856SCong Dang #define IP1SR4_11_8 FM(HRTS2_N) FM(RTS4_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
409291f7856SCong Dang #define IP1SR4_15_12 FM(SCIF_CLK2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
410291f7856SCong Dang #define IP1SR4_19_16 FM(HCTS2_N) FM(TX4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
411291f7856SCong Dang #define IP1SR4_23_20 FM(HSCK2) FM(RX4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
412291f7856SCong Dang #define IP1SR4_27_24 FM(PWM3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
413291f7856SCong Dang #define IP1SR4_31_28 FM(PWM4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
414291f7856SCong Dang
415291f7856SCong Dang /* IP2SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
416291f7856SCong Dang #define IP2SR4_23_20 FM(PCIE0_CLKREQ_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
417291f7856SCong Dang #define IP2SR4_31_28 FM(AVS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
418291f7856SCong Dang
419291f7856SCong Dang /* IP3SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
420291f7856SCong Dang #define IP3SR4_3_0 FM(AVS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
421291f7856SCong Dang
422291f7856SCong Dang /* SR5 */
423291f7856SCong Dang /* IP0SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
424291f7856SCong Dang #define IP0SR5_3_0 FM(AVB2_AVTP_PPS) FM(Ether_GPTP_PPS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
425291f7856SCong Dang #define IP0SR5_7_4 FM(AVB2_AVTP_CAPTURE) FM(Ether_GPTP_CAPTURE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
426291f7856SCong Dang #define IP0SR5_11_8 FM(AVB2_AVTP_MATCH) FM(Ether_GPTP_MATCH) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
427291f7856SCong Dang #define IP0SR5_15_12 FM(AVB2_LINK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
428291f7856SCong Dang #define IP0SR5_19_16 FM(AVB2_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
429291f7856SCong Dang #define IP0SR5_23_20 FM(AVB2_MAGIC) FM(Ether_GPTP_PPS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
430291f7856SCong Dang #define IP0SR5_27_24 FM(AVB2_MDC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
431291f7856SCong Dang #define IP0SR5_31_28 FM(AVB2_TXCREFCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
432291f7856SCong Dang
433291f7856SCong Dang /* IP1SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
434291f7856SCong Dang #define IP1SR5_3_0 FM(AVB2_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
435291f7856SCong Dang #define IP1SR5_7_4 FM(AVB2_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
436291f7856SCong Dang #define IP1SR5_11_8 FM(AVB2_MDIO) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
437291f7856SCong Dang #define IP1SR5_15_12 FM(AVB2_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
438291f7856SCong Dang #define IP1SR5_19_16 FM(AVB2_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
439291f7856SCong Dang #define IP1SR5_23_20 FM(AVB2_RD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
440291f7856SCong Dang #define IP1SR5_27_24 FM(AVB2_RD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
441291f7856SCong Dang #define IP1SR5_31_28 FM(AVB2_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
442291f7856SCong Dang
443291f7856SCong Dang /* IP2SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
444291f7856SCong Dang #define IP2SR5_3_0 FM(AVB2_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
445291f7856SCong Dang #define IP2SR5_7_4 FM(AVB2_RD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
446291f7856SCong Dang #define IP2SR5_11_8 FM(AVB2_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
447291f7856SCong Dang #define IP2SR5_15_12 FM(AVB2_TX_CTL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
448291f7856SCong Dang #define IP2SR5_19_16 FM(AVB2_RX_CTL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
449291f7856SCong Dang
450291f7856SCong Dang /* SR6 */
451291f7856SCong Dang /* IP0SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
452291f7856SCong Dang #define IP0SR6_3_0 FM(AVB1_MDIO) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
453291f7856SCong Dang #define IP0SR6_7_4 FM(AVB1_MAGIC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
454291f7856SCong Dang #define IP0SR6_11_8 FM(AVB1_MDC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
455291f7856SCong Dang #define IP0SR6_15_12 FM(AVB1_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
456291f7856SCong Dang #define IP0SR6_19_16 FM(AVB1_LINK) FM(AVB1_MII_TX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
457291f7856SCong Dang #define IP0SR6_23_20 FM(AVB1_AVTP_MATCH) FM(AVB1_MII_RX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
458291f7856SCong Dang #define IP0SR6_27_24 FM(AVB1_TXC) FM(AVB1_MII_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
459291f7856SCong Dang #define IP0SR6_31_28 FM(AVB1_TX_CTL) FM(AVB1_MII_TX_EN) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
460291f7856SCong Dang
461291f7856SCong Dang /* IP1SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
462291f7856SCong Dang #define IP1SR6_3_0 FM(AVB1_RXC) FM(AVB1_MII_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
463291f7856SCong Dang #define IP1SR6_7_4 FM(AVB1_RX_CTL) FM(AVB1_MII_RX_DV) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
464291f7856SCong Dang #define IP1SR6_11_8 FM(AVB1_AVTP_PPS) FM(AVB1_MII_COL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
465291f7856SCong Dang #define IP1SR6_15_12 FM(AVB1_AVTP_CAPTURE) FM(AVB1_MII_CRS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
466291f7856SCong Dang #define IP1SR6_19_16 FM(AVB1_TD1) FM(AVB1_MII_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
467291f7856SCong Dang #define IP1SR6_23_20 FM(AVB1_TD0) FM(AVB1_MII_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
468291f7856SCong Dang #define IP1SR6_27_24 FM(AVB1_RD1) FM(AVB1_MII_RD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
469291f7856SCong Dang #define IP1SR6_31_28 FM(AVB1_RD0) FM(AVB1_MII_RD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
470291f7856SCong Dang
471291f7856SCong Dang /* IP2SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
472291f7856SCong Dang #define IP2SR6_3_0 FM(AVB1_TD2) FM(AVB1_MII_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
473291f7856SCong Dang #define IP2SR6_7_4 FM(AVB1_RD2) FM(AVB1_MII_RD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
474291f7856SCong Dang #define IP2SR6_11_8 FM(AVB1_TD3) FM(AVB1_MII_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
475291f7856SCong Dang #define IP2SR6_15_12 FM(AVB1_RD3) FM(AVB1_MII_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
476291f7856SCong Dang #define IP2SR6_19_16 FM(AVB1_TXCREFCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
477291f7856SCong Dang
478291f7856SCong Dang /* SR7 */
479291f7856SCong Dang /* IP0SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
480291f7856SCong Dang #define IP0SR7_3_0 FM(AVB0_AVTP_PPS) FM(AVB0_MII_COL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
481291f7856SCong Dang #define IP0SR7_7_4 FM(AVB0_AVTP_CAPTURE) FM(AVB0_MII_CRS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
482291f7856SCong Dang #define IP0SR7_11_8 FM(AVB0_AVTP_MATCH) FM(AVB0_MII_RX_ER) FM(CC5_OSCOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
483291f7856SCong Dang #define IP0SR7_15_12 FM(AVB0_TD3) FM(AVB0_MII_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
484291f7856SCong Dang #define IP0SR7_19_16 FM(AVB0_LINK) FM(AVB0_MII_TX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
485291f7856SCong Dang #define IP0SR7_23_20 FM(AVB0_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
486291f7856SCong Dang #define IP0SR7_27_24 FM(AVB0_TD2) FM(AVB0_MII_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
487291f7856SCong Dang #define IP0SR7_31_28 FM(AVB0_TD1) FM(AVB0_MII_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
488291f7856SCong Dang
489291f7856SCong Dang /* IP1SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
490291f7856SCong Dang #define IP1SR7_3_0 FM(AVB0_RD3) FM(AVB0_MII_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
491291f7856SCong Dang #define IP1SR7_7_4 FM(AVB0_TXCREFCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
492291f7856SCong Dang #define IP1SR7_11_8 FM(AVB0_MAGIC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
493291f7856SCong Dang #define IP1SR7_15_12 FM(AVB0_TD0) FM(AVB0_MII_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
494291f7856SCong Dang #define IP1SR7_19_16 FM(AVB0_RD2) FM(AVB0_MII_RD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
495291f7856SCong Dang #define IP1SR7_23_20 FM(AVB0_MDC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
496291f7856SCong Dang #define IP1SR7_27_24 FM(AVB0_MDIO) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
497291f7856SCong Dang #define IP1SR7_31_28 FM(AVB0_TXC) FM(AVB0_MII_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
498291f7856SCong Dang
499291f7856SCong Dang /* IP2SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
500291f7856SCong Dang #define IP2SR7_3_0 FM(AVB0_TX_CTL) FM(AVB0_MII_TX_EN) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
501291f7856SCong Dang #define IP2SR7_7_4 FM(AVB0_RD1) FM(AVB0_MII_RD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
502291f7856SCong Dang #define IP2SR7_11_8 FM(AVB0_RD0) FM(AVB0_MII_RD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
503291f7856SCong Dang #define IP2SR7_15_12 FM(AVB0_RXC) FM(AVB0_MII_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
504291f7856SCong Dang #define IP2SR7_19_16 FM(AVB0_RX_CTL) FM(AVB0_MII_RX_DV) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
505291f7856SCong Dang
506291f7856SCong Dang #define PINMUX_GPSR \
507291f7856SCong Dang GPSR3_31 \
508291f7856SCong Dang GPSR3_30 \
509291f7856SCong Dang GPSR1_29 GPSR3_29 \
510291f7856SCong Dang GPSR1_28 GPSR3_28 \
511291f7856SCong Dang GPSR1_27 GPSR3_27 \
512291f7856SCong Dang GPSR1_26 GPSR3_26 \
513291f7856SCong Dang GPSR1_25 GPSR3_25 \
514291f7856SCong Dang GPSR1_24 GPSR3_24 GPSR4_24 \
515291f7856SCong Dang GPSR1_23 GPSR3_23 GPSR4_23 \
516291f7856SCong Dang GPSR1_22 GPSR3_22 \
517291f7856SCong Dang GPSR1_21 GPSR3_21 GPSR4_21 \
518291f7856SCong Dang GPSR1_20 GPSR3_20 GPSR5_20 GPSR6_20 GPSR7_20 \
519291f7856SCong Dang GPSR1_19 GPSR2_19 GPSR3_19 GPSR5_19 GPSR6_19 GPSR7_19 \
520291f7856SCong Dang GPSR0_18 GPSR1_18 GPSR3_18 GPSR5_18 GPSR6_18 GPSR7_18 \
521291f7856SCong Dang GPSR0_17 GPSR1_17 GPSR2_17 GPSR3_17 GPSR5_17 GPSR6_17 GPSR7_17 \
522291f7856SCong Dang GPSR0_16 GPSR1_16 GPSR3_16 GPSR5_16 GPSR6_16 GPSR7_16 \
523291f7856SCong Dang GPSR0_15 GPSR1_15 GPSR2_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 GPSR7_15 \
524291f7856SCong Dang GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 GPSR7_14 \
525291f7856SCong Dang GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 GPSR7_13 \
526291f7856SCong Dang GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 GPSR7_12 \
527291f7856SCong Dang GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 GPSR7_11 \
528291f7856SCong Dang GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 GPSR7_10 \
529291f7856SCong Dang GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 GPSR7_9 \
530291f7856SCong Dang GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 GPSR7_8 \
531291f7856SCong Dang GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 GPSR7_7 \
532291f7856SCong Dang GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 GPSR7_6 \
533291f7856SCong Dang GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 GPSR7_5 \
534291f7856SCong Dang GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 GPSR7_4 \
535291f7856SCong Dang GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 \
536291f7856SCong Dang GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 \
537291f7856SCong Dang GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 \
538291f7856SCong Dang GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0
539291f7856SCong Dang
540291f7856SCong Dang #define PINMUX_IPSR \
541291f7856SCong Dang \
542291f7856SCong Dang FM(IP0SR0_3_0) IP0SR0_3_0 FM(IP1SR0_3_0) IP1SR0_3_0 FM(IP2SR0_3_0) IP2SR0_3_0 \
543291f7856SCong Dang FM(IP0SR0_7_4) IP0SR0_7_4 FM(IP1SR0_7_4) IP1SR0_7_4 FM(IP2SR0_7_4) IP2SR0_7_4 \
544291f7856SCong Dang FM(IP0SR0_11_8) IP0SR0_11_8 FM(IP1SR0_11_8) IP1SR0_11_8 FM(IP2SR0_11_8) IP2SR0_11_8 \
545291f7856SCong Dang FM(IP0SR0_15_12) IP0SR0_15_12 FM(IP1SR0_15_12) IP1SR0_15_12 \
546291f7856SCong Dang FM(IP0SR0_19_16) IP0SR0_19_16 FM(IP1SR0_19_16) IP1SR0_19_16 \
547291f7856SCong Dang FM(IP0SR0_23_20) IP0SR0_23_20 FM(IP1SR0_23_20) IP1SR0_23_20 \
548291f7856SCong Dang FM(IP0SR0_27_24) IP0SR0_27_24 FM(IP1SR0_27_24) IP1SR0_27_24 \
549291f7856SCong Dang FM(IP0SR0_31_28) IP0SR0_31_28 FM(IP1SR0_31_28) IP1SR0_31_28 \
550291f7856SCong Dang \
551291f7856SCong Dang FM(IP0SR1_3_0) IP0SR1_3_0 FM(IP1SR1_3_0) IP1SR1_3_0 FM(IP2SR1_3_0) IP2SR1_3_0 FM(IP3SR1_3_0) IP3SR1_3_0 \
552291f7856SCong Dang FM(IP0SR1_7_4) IP0SR1_7_4 FM(IP1SR1_7_4) IP1SR1_7_4 FM(IP2SR1_7_4) IP2SR1_7_4 FM(IP3SR1_7_4) IP3SR1_7_4 \
553291f7856SCong Dang FM(IP0SR1_11_8) IP0SR1_11_8 FM(IP1SR1_11_8) IP1SR1_11_8 FM(IP2SR1_11_8) IP2SR1_11_8 FM(IP3SR1_11_8) IP3SR1_11_8 \
554291f7856SCong Dang FM(IP0SR1_15_12) IP0SR1_15_12 FM(IP1SR1_15_12) IP1SR1_15_12 FM(IP2SR1_15_12) IP2SR1_15_12 FM(IP3SR1_15_12) IP3SR1_15_12 \
555291f7856SCong Dang FM(IP0SR1_19_16) IP0SR1_19_16 FM(IP1SR1_19_16) IP1SR1_19_16 FM(IP2SR1_19_16) IP2SR1_19_16 FM(IP3SR1_19_16) IP3SR1_19_16 \
556291f7856SCong Dang FM(IP0SR1_23_20) IP0SR1_23_20 FM(IP1SR1_23_20) IP1SR1_23_20 FM(IP2SR1_23_20) IP2SR1_23_20 FM(IP3SR1_23_20) IP3SR1_23_20 \
557291f7856SCong Dang FM(IP0SR1_27_24) IP0SR1_27_24 FM(IP1SR1_27_24) IP1SR1_27_24 FM(IP2SR1_27_24) IP2SR1_27_24 \
558291f7856SCong Dang FM(IP0SR1_31_28) IP0SR1_31_28 FM(IP1SR1_31_28) IP1SR1_31_28 FM(IP2SR1_31_28) IP2SR1_31_28 \
559291f7856SCong Dang \
560291f7856SCong Dang FM(IP0SR2_3_0) IP0SR2_3_0 FM(IP1SR2_3_0) IP1SR2_3_0 \
561291f7856SCong Dang FM(IP0SR2_7_4) IP0SR2_7_4 FM(IP1SR2_7_4) IP1SR2_7_4 FM(IP2SR2_7_4) IP2SR2_7_4 \
562291f7856SCong Dang FM(IP0SR2_11_8) IP0SR2_11_8 FM(IP1SR2_11_8) IP1SR2_11_8 \
563291f7856SCong Dang FM(IP0SR2_15_12) IP0SR2_15_12 FM(IP1SR2_15_12) IP1SR2_15_12 FM(IP2SR2_15_12) IP2SR2_15_12 \
564291f7856SCong Dang FM(IP0SR2_19_16) IP0SR2_19_16 FM(IP1SR2_19_16) IP1SR2_19_16 \
565291f7856SCong Dang FM(IP0SR2_23_20) IP0SR2_23_20 FM(IP1SR2_23_20) IP1SR2_23_20 \
566291f7856SCong Dang FM(IP0SR2_27_24) IP0SR2_27_24 FM(IP1SR2_27_24) IP1SR2_27_24 \
567291f7856SCong Dang FM(IP0SR2_31_28) IP0SR2_31_28 FM(IP1SR2_31_28) IP1SR2_31_28 \
568291f7856SCong Dang \
569291f7856SCong Dang FM(IP0SR3_3_0) IP0SR3_3_0 FM(IP1SR3_3_0) IP1SR3_3_0 FM(IP2SR3_3_0) IP2SR3_3_0 FM(IP3SR3_3_0) IP3SR3_3_0 \
570291f7856SCong Dang FM(IP0SR3_7_4) IP0SR3_7_4 FM(IP1SR3_7_4) IP1SR3_7_4 FM(IP2SR3_7_4) IP2SR3_7_4 FM(IP3SR3_7_4) IP3SR3_7_4 \
571291f7856SCong Dang FM(IP0SR3_11_8) IP0SR3_11_8 FM(IP1SR3_11_8) IP1SR3_11_8 FM(IP2SR3_11_8) IP2SR3_11_8 FM(IP3SR3_11_8) IP3SR3_11_8 \
572291f7856SCong Dang FM(IP0SR3_15_12) IP0SR3_15_12 FM(IP1SR3_15_12) IP1SR3_15_12 FM(IP2SR3_15_12) IP2SR3_15_12 FM(IP3SR3_15_12) IP3SR3_15_12 \
573291f7856SCong Dang FM(IP0SR3_19_16) IP0SR3_19_16 FM(IP1SR3_19_16) IP1SR3_19_16 FM(IP2SR3_19_16) IP2SR3_19_16 FM(IP3SR3_19_16) IP3SR3_19_16 \
574291f7856SCong Dang FM(IP0SR3_23_20) IP0SR3_23_20 FM(IP1SR3_23_20) IP1SR3_23_20 FM(IP2SR3_23_20) IP2SR3_23_20 FM(IP3SR3_23_20) IP3SR3_23_20 \
575291f7856SCong Dang FM(IP0SR3_27_24) IP0SR3_27_24 FM(IP1SR3_27_24) IP1SR3_27_24 FM(IP2SR3_27_24) IP2SR3_27_24 FM(IP3SR3_27_24) IP3SR3_27_24 \
576291f7856SCong Dang FM(IP0SR3_31_28) IP0SR3_31_28 FM(IP1SR3_31_28) IP1SR3_31_28 FM(IP2SR3_31_28) IP2SR3_31_28 FM(IP3SR3_31_28) IP3SR3_31_28 \
577291f7856SCong Dang \
578291f7856SCong Dang FM(IP0SR4_3_0) IP0SR4_3_0 FM(IP1SR4_3_0) IP1SR4_3_0 FM(IP3SR4_3_0) IP3SR4_3_0 \
579291f7856SCong Dang FM(IP0SR4_7_4) IP0SR4_7_4 FM(IP1SR4_7_4) IP1SR4_7_4 \
580291f7856SCong Dang FM(IP0SR4_11_8) IP0SR4_11_8 FM(IP1SR4_11_8) IP1SR4_11_8 \
581291f7856SCong Dang FM(IP0SR4_15_12) IP0SR4_15_12 FM(IP1SR4_15_12) IP1SR4_15_12 \
582291f7856SCong Dang FM(IP0SR4_19_16) IP0SR4_19_16 FM(IP1SR4_19_16) IP1SR4_19_16 \
583291f7856SCong Dang FM(IP0SR4_23_20) IP0SR4_23_20 FM(IP1SR4_23_20) IP1SR4_23_20 FM(IP2SR4_23_20) IP2SR4_23_20 \
584291f7856SCong Dang FM(IP0SR4_27_24) IP0SR4_27_24 FM(IP1SR4_27_24) IP1SR4_27_24 \
585291f7856SCong Dang FM(IP0SR4_31_28) IP0SR4_31_28 FM(IP1SR4_31_28) IP1SR4_31_28 FM(IP2SR4_31_28) IP2SR4_31_28 \
586291f7856SCong Dang \
587291f7856SCong Dang FM(IP0SR5_3_0) IP0SR5_3_0 FM(IP1SR5_3_0) IP1SR5_3_0 FM(IP2SR5_3_0) IP2SR5_3_0 \
588291f7856SCong Dang FM(IP0SR5_7_4) IP0SR5_7_4 FM(IP1SR5_7_4) IP1SR5_7_4 FM(IP2SR5_7_4) IP2SR5_7_4 \
589291f7856SCong Dang FM(IP0SR5_11_8) IP0SR5_11_8 FM(IP1SR5_11_8) IP1SR5_11_8 FM(IP2SR5_11_8) IP2SR5_11_8 \
590291f7856SCong Dang FM(IP0SR5_15_12) IP0SR5_15_12 FM(IP1SR5_15_12) IP1SR5_15_12 FM(IP2SR5_15_12) IP2SR5_15_12 \
591291f7856SCong Dang FM(IP0SR5_19_16) IP0SR5_19_16 FM(IP1SR5_19_16) IP1SR5_19_16 FM(IP2SR5_19_16) IP2SR5_19_16 \
592291f7856SCong Dang FM(IP0SR5_23_20) IP0SR5_23_20 FM(IP1SR5_23_20) IP1SR5_23_20 \
593291f7856SCong Dang FM(IP0SR5_27_24) IP0SR5_27_24 FM(IP1SR5_27_24) IP1SR5_27_24 \
594291f7856SCong Dang FM(IP0SR5_31_28) IP0SR5_31_28 FM(IP1SR5_31_28) IP1SR5_31_28 \
595291f7856SCong Dang \
596291f7856SCong Dang FM(IP0SR6_3_0) IP0SR6_3_0 FM(IP1SR6_3_0) IP1SR6_3_0 FM(IP2SR6_3_0) IP2SR6_3_0 \
597291f7856SCong Dang FM(IP0SR6_7_4) IP0SR6_7_4 FM(IP1SR6_7_4) IP1SR6_7_4 FM(IP2SR6_7_4) IP2SR6_7_4 \
598291f7856SCong Dang FM(IP0SR6_11_8) IP0SR6_11_8 FM(IP1SR6_11_8) IP1SR6_11_8 FM(IP2SR6_11_8) IP2SR6_11_8 \
599291f7856SCong Dang FM(IP0SR6_15_12) IP0SR6_15_12 FM(IP1SR6_15_12) IP1SR6_15_12 FM(IP2SR6_15_12) IP2SR6_15_12 \
600291f7856SCong Dang FM(IP0SR6_19_16) IP0SR6_19_16 FM(IP1SR6_19_16) IP1SR6_19_16 FM(IP2SR6_19_16) IP2SR6_19_16 \
601291f7856SCong Dang FM(IP0SR6_23_20) IP0SR6_23_20 FM(IP1SR6_23_20) IP1SR6_23_20 \
602291f7856SCong Dang FM(IP0SR6_27_24) IP0SR6_27_24 FM(IP1SR6_27_24) IP1SR6_27_24 \
603291f7856SCong Dang FM(IP0SR6_31_28) IP0SR6_31_28 FM(IP1SR6_31_28) IP1SR6_31_28 \
604291f7856SCong Dang \
605291f7856SCong Dang FM(IP0SR7_3_0) IP0SR7_3_0 FM(IP1SR7_3_0) IP1SR7_3_0 FM(IP2SR7_3_0) IP2SR7_3_0 \
606291f7856SCong Dang FM(IP0SR7_7_4) IP0SR7_7_4 FM(IP1SR7_7_4) IP1SR7_7_4 FM(IP2SR7_7_4) IP2SR7_7_4 \
607291f7856SCong Dang FM(IP0SR7_11_8) IP0SR7_11_8 FM(IP1SR7_11_8) IP1SR7_11_8 FM(IP2SR7_11_8) IP2SR7_11_8 \
608291f7856SCong Dang FM(IP0SR7_15_12) IP0SR7_15_12 FM(IP1SR7_15_12) IP1SR7_15_12 FM(IP2SR7_15_12) IP2SR7_15_12 \
609291f7856SCong Dang FM(IP0SR7_19_16) IP0SR7_19_16 FM(IP1SR7_19_16) IP1SR7_19_16 FM(IP2SR7_19_16) IP2SR7_19_16 \
610291f7856SCong Dang FM(IP0SR7_23_20) IP0SR7_23_20 FM(IP1SR7_23_20) IP1SR7_23_20 \
611291f7856SCong Dang FM(IP0SR7_27_24) IP0SR7_27_24 FM(IP1SR7_27_24) IP1SR7_27_24 \
612291f7856SCong Dang FM(IP0SR7_31_28) IP0SR7_31_28 FM(IP1SR7_31_28) IP1SR7_31_28 \
613291f7856SCong Dang
614291f7856SCong Dang /* MOD_SEL4 */ /* 0 */ /* 1 */
615291f7856SCong Dang #define MOD_SEL4_7 FM(SEL_SDA3_0) FM(SEL_SDA3_1)
616291f7856SCong Dang #define MOD_SEL4_6 FM(SEL_SCL3_0) FM(SEL_SCL3_1)
617291f7856SCong Dang #define MOD_SEL4_5 FM(SEL_SDA2_0) FM(SEL_SDA2_1)
618291f7856SCong Dang #define MOD_SEL4_4 FM(SEL_SCL2_0) FM(SEL_SCL2_1)
619291f7856SCong Dang #define MOD_SEL4_3 FM(SEL_SDA1_0) FM(SEL_SDA1_1)
620291f7856SCong Dang #define MOD_SEL4_2 FM(SEL_SCL1_0) FM(SEL_SCL1_1)
621291f7856SCong Dang #define MOD_SEL4_1 FM(SEL_SDA0_0) FM(SEL_SDA0_1)
622291f7856SCong Dang #define MOD_SEL4_0 FM(SEL_SCL0_0) FM(SEL_SCL0_1)
623291f7856SCong Dang
624291f7856SCong Dang #define PINMUX_MOD_SELS \
625291f7856SCong Dang \
626291f7856SCong Dang MOD_SEL4_7 \
627291f7856SCong Dang MOD_SEL4_6 \
628291f7856SCong Dang MOD_SEL4_5 \
629291f7856SCong Dang MOD_SEL4_4 \
630291f7856SCong Dang MOD_SEL4_3 \
631291f7856SCong Dang MOD_SEL4_2 \
632291f7856SCong Dang MOD_SEL4_1 \
633291f7856SCong Dang MOD_SEL4_0
634291f7856SCong Dang
635291f7856SCong Dang enum {
636291f7856SCong Dang PINMUX_RESERVED = 0,
637291f7856SCong Dang
638291f7856SCong Dang PINMUX_DATA_BEGIN,
639291f7856SCong Dang GP_ALL(DATA),
640291f7856SCong Dang PINMUX_DATA_END,
641291f7856SCong Dang
642291f7856SCong Dang #define F_(x, y)
643291f7856SCong Dang #define FM(x) FN_##x,
644291f7856SCong Dang PINMUX_FUNCTION_BEGIN,
645291f7856SCong Dang GP_ALL(FN),
646291f7856SCong Dang PINMUX_GPSR
647291f7856SCong Dang PINMUX_IPSR
648291f7856SCong Dang PINMUX_MOD_SELS
649291f7856SCong Dang PINMUX_FUNCTION_END,
650291f7856SCong Dang #undef F_
651291f7856SCong Dang #undef FM
652291f7856SCong Dang
653291f7856SCong Dang #define F_(x, y)
654291f7856SCong Dang #define FM(x) x##_MARK,
655291f7856SCong Dang PINMUX_MARK_BEGIN,
656291f7856SCong Dang PINMUX_GPSR
657291f7856SCong Dang PINMUX_IPSR
658291f7856SCong Dang PINMUX_MOD_SELS
659291f7856SCong Dang PINMUX_MARK_END,
660291f7856SCong Dang #undef F_
661291f7856SCong Dang #undef FM
662291f7856SCong Dang };
663291f7856SCong Dang
664291f7856SCong Dang static const u16 pinmux_data[] = {
665291f7856SCong Dang PINMUX_DATA_GP_ALL(),
666291f7856SCong Dang
667291f7856SCong Dang /* IP0SR0 */
668291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_3_0, ERROROUTC_N_B),
669291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_3_0, TCLK2_B),
670291f7856SCong Dang
671291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_7_4, MSIOF3_SS1),
672291f7856SCong Dang
673291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_11_8, MSIOF3_SS2),
674291f7856SCong Dang
675c3bec954SGeert Uytterhoeven PINMUX_IPSR_GPSR(IP0SR0_15_12, IRQ3_A),
676291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_15_12, MSIOF3_SCK),
677291f7856SCong Dang
678c3bec954SGeert Uytterhoeven PINMUX_IPSR_GPSR(IP0SR0_19_16, IRQ2_A),
679291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_19_16, MSIOF3_TXD),
680291f7856SCong Dang
681c3bec954SGeert Uytterhoeven PINMUX_IPSR_GPSR(IP0SR0_23_20, IRQ1_A),
682291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_23_20, MSIOF3_RXD),
683291f7856SCong Dang
684c3bec954SGeert Uytterhoeven PINMUX_IPSR_GPSR(IP0SR0_27_24, IRQ0_A),
685291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_27_24, MSIOF3_SYNC),
686291f7856SCong Dang
687291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR0_31_28, MSIOF5_SS2),
688291f7856SCong Dang
689291f7856SCong Dang /* IP1SR0 */
690291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_3_0, MSIOF5_SS1),
691291f7856SCong Dang
692291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_7_4, MSIOF5_SYNC),
693291f7856SCong Dang
694291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_11_8, MSIOF5_TXD),
695291f7856SCong Dang
696291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_15_12, MSIOF5_SCK),
697291f7856SCong Dang
698291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_19_16, MSIOF5_RXD),
699291f7856SCong Dang
700291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_23_20, MSIOF2_SS2),
701291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_23_20, TCLK1_A),
702291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_23_20, IRQ2_B),
703291f7856SCong Dang
704291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_27_24, MSIOF2_SS1),
705291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_27_24, HTX1_A),
706291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_27_24, TX1_A),
707291f7856SCong Dang
708291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_31_28, MSIOF2_SYNC),
709291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_31_28, HRX1_A),
710291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR0_31_28, RX1_A),
711291f7856SCong Dang
712291f7856SCong Dang /* IP2SR0 */
713291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_3_0, MSIOF2_TXD),
714291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_3_0, HCTS1_N_A),
715291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_3_0, CTS1_N_A),
716291f7856SCong Dang
717291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_7_4, MSIOF2_SCK),
718291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_7_4, HRTS1_N_A),
719291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_7_4, RTS1_N_A),
720291f7856SCong Dang
721291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_11_8, MSIOF2_RXD),
722291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_11_8, HSCK1_A),
723291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR0_11_8, SCK1_A),
724291f7856SCong Dang
725291f7856SCong Dang /* IP0SR1 */
726291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_3_0, MSIOF1_SS2),
727291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_3_0, HTX3_B),
728291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_3_0, TX3_B),
729291f7856SCong Dang
730291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_7_4, MSIOF1_SS1),
731291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_7_4, HCTS3_N_B),
732291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_7_4, RX3_B),
733291f7856SCong Dang
734291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_11_8, MSIOF1_SYNC),
735291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_11_8, HRTS3_N_B),
736291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_11_8, RTS3_N_B),
737291f7856SCong Dang
738291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_15_12, MSIOF1_SCK),
739291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_15_12, HSCK3_B),
740291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_15_12, CTS3_N_B),
741291f7856SCong Dang
742291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_19_16, MSIOF1_TXD),
743291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_19_16, HRX3_B),
744291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_19_16, SCK3_B),
745291f7856SCong Dang
746291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_23_20, MSIOF1_RXD),
747291f7856SCong Dang
748291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_27_24, MSIOF0_SS2),
749291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_27_24, HTX1_B),
750291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_27_24, TX1_B),
751291f7856SCong Dang
752291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_31_28, MSIOF0_SS1),
753291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_31_28, HRX1_B),
754291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR1_31_28, RX1_B),
755291f7856SCong Dang
756291f7856SCong Dang /* IP1SR1 */
757291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_3_0, MSIOF0_SYNC),
758291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_3_0, HCTS1_N_B),
759291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_3_0, CTS1_N_B),
760291f7856SCong Dang
761291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_7_4, MSIOF0_TXD),
762291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_7_4, HRTS1_N_B),
763291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_7_4, RTS1_N_B),
764291f7856SCong Dang
765291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_11_8, MSIOF0_SCK),
766291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_11_8, HSCK1_B),
767291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_11_8, SCK1_B),
768291f7856SCong Dang
769291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_15_12, MSIOF0_RXD),
770291f7856SCong Dang
771291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_19_16, HTX0),
772291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_19_16, TX0),
773291f7856SCong Dang
774291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_23_20, HCTS0_N),
775291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_23_20, CTS0_N),
776291f7856SCong Dang
777291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_27_24, HRTS0_N),
778291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_27_24, RTS0_N),
779291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_27_24, PWM0_B),
780291f7856SCong Dang
781291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_31_28, HSCK0),
782291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_31_28, SCK0),
783291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR1_31_28, PWM0_A),
784291f7856SCong Dang
785291f7856SCong Dang /* IP2SR1 */
786291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_3_0, HRX0),
787291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_3_0, RX0),
788291f7856SCong Dang
789291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_7_4, SCIF_CLK),
790291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_7_4, IRQ4_A),
791291f7856SCong Dang
792291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_11_8, SSI_SCK),
793291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_11_8, TCLK3_B),
794291f7856SCong Dang
795291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_15_12, SSI_WS),
796291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_15_12, TCLK4_B),
797291f7856SCong Dang
798291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_19_16, SSI_SD),
799291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_19_16, IRQ0_B),
800291f7856SCong Dang
801291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_23_20, AUDIO_CLKOUT),
802291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_23_20, IRQ1_B),
803291f7856SCong Dang
804291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_27_24, AUDIO_CLKIN),
805291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_27_24, PWM3_C),
806291f7856SCong Dang
807291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_31_28, TCLK2_A),
808291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_31_28, MSIOF4_SS1),
809291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR1_31_28, IRQ3_B),
810291f7856SCong Dang
811291f7856SCong Dang /* IP3SR1 */
812291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_3_0, HRX3_A),
813291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_3_0, SCK3_A),
814291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_3_0, MSIOF4_SS2),
815291f7856SCong Dang
816291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_7_4, HSCK3_A),
817291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_7_4, CTS3_N_A),
818291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_7_4, MSIOF4_SCK),
819291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_7_4, TPU0TO0_B),
820291f7856SCong Dang
821291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_11_8, HRTS3_N_A),
822291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_11_8, RTS3_N_A),
823291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_11_8, MSIOF4_TXD),
824291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_11_8, TPU0TO1_B),
825291f7856SCong Dang
826291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_15_12, HCTS3_N_A),
827291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_15_12, RX3_A),
828291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_15_12, MSIOF4_RXD),
829291f7856SCong Dang
830291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_19_16, HTX3_A),
831291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_19_16, TX3_A),
832291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_19_16, MSIOF4_SYNC),
833291f7856SCong Dang
834291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR1_23_20, ERROROUTC_N_A),
835291f7856SCong Dang
836291f7856SCong Dang /* IP0SR2 */
837291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_3_0, FXR_TXDA),
838291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_3_0, TPU0TO2_B),
839291f7856SCong Dang
840291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_7_4, FXR_TXENA_N_A),
841291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_7_4, TPU0TO3_B),
842291f7856SCong Dang
843291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_11_8, RXDA_EXTFXR),
844291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_11_8, IRQ5),
845291f7856SCong Dang
846291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_15_12, CLK_EXTFXR),
847291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_15_12, IRQ4_B),
848291f7856SCong Dang
849291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_19_16, RXDB_EXTFXR),
850291f7856SCong Dang
851291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_23_20, FXR_TXENB_N_A),
852291f7856SCong Dang
853291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_27_24, FXR_TXDB),
854291f7856SCong Dang
855291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_31_28, TPU0TO1_A),
856291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR2_31_28, TCLK2_C),
857291f7856SCong Dang
858291f7856SCong Dang /* IP1SR2 */
859291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_3_0, TPU0TO0_A),
860291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_3_0, TCLK1_B),
861291f7856SCong Dang
862291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_7_4, CAN_CLK),
863291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_7_4, FXR_TXENA_N_B),
864291f7856SCong Dang
865291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_11_8, CANFD0_TX),
866291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_11_8, FXR_TXENB_N_B),
867291f7856SCong Dang
868291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_15_12, CANFD0_RX),
869291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_15_12, STPWT_EXTFXR),
870291f7856SCong Dang
871291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_19_16, CANFD2_TX),
872291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_19_16, TPU0TO2_A),
873291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_19_16, TCLK3_C),
874291f7856SCong Dang
875291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_23_20, CANFD2_RX),
876291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_23_20, TPU0TO3_A),
877291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_23_20, PWM1_B),
878291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_23_20, TCLK4_C),
879291f7856SCong Dang
880291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_27_24, CANFD3_TX),
881291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_27_24, PWM2_B),
882291f7856SCong Dang
883291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_31_28, CANFD3_RX),
884291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR2_31_28, PWM3_B),
885291f7856SCong Dang
886291f7856SCong Dang /* IP2SR2 */
887291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR2_7_4, CANFD1_TX),
888291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR2_7_4, PWM1_C),
889291f7856SCong Dang
890291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR2_15_12, CANFD1_RX),
891291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR2_15_12, PWM2_C),
892291f7856SCong Dang
893291f7856SCong Dang /* IP0SR3 */
894291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR3_3_0, MMC_SD_D1),
895291f7856SCong Dang
896291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR3_7_4, MMC_SD_D0),
897291f7856SCong Dang
898291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR3_11_8, MMC_SD_D2),
899291f7856SCong Dang
900291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR3_15_12, MMC_SD_CLK),
901291f7856SCong Dang
902291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR3_19_16, MMC_DS),
903291f7856SCong Dang
904291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR3_23_20, MMC_SD_D3),
905291f7856SCong Dang
906291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR3_27_24, MMC_D5),
907291f7856SCong Dang
908291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR3_31_28, MMC_D4),
909291f7856SCong Dang
910291f7856SCong Dang /* IP1SR3 */
911291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR3_3_0, MMC_D7),
912291f7856SCong Dang
913291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR3_7_4, MMC_D6),
914291f7856SCong Dang
915291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR3_11_8, MMC_SD_CMD),
916291f7856SCong Dang
917291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR3_15_12, SD_CD),
918291f7856SCong Dang
919291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR3_19_16, SD_WP),
920291f7856SCong Dang
921291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR3_23_20, PWM1_A),
922291f7856SCong Dang
923291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR3_27_24, PWM2_A),
924291f7856SCong Dang
925291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR3_31_28, QSPI0_SSL),
926291f7856SCong Dang
927291f7856SCong Dang /* IP2SR3 */
928291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR3_3_0, QSPI0_IO3),
929291f7856SCong Dang
930291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR3_7_4, QSPI0_IO2),
931291f7856SCong Dang
932291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR3_11_8, QSPI0_MISO_IO1),
933291f7856SCong Dang
934291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR3_15_12, QSPI0_MOSI_IO0),
935291f7856SCong Dang
936291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR3_19_16, QSPI0_SPCLK),
937291f7856SCong Dang
938291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR3_23_20, QSPI1_MOSI_IO0),
939291f7856SCong Dang
940291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR3_27_24, QSPI1_SPCLK),
941291f7856SCong Dang
942291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR3_31_28, QSPI1_MISO_IO1),
943291f7856SCong Dang
944291f7856SCong Dang /* IP3SR3 */
945291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR3_3_0, QSPI1_IO2),
946291f7856SCong Dang
947291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR3_7_4, QSPI1_SSL),
948291f7856SCong Dang
949291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR3_11_8, QSPI1_IO3),
950291f7856SCong Dang
951291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR3_15_12, RPC_RESET_N),
952291f7856SCong Dang
953291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR3_19_16, RPC_WP_N),
954291f7856SCong Dang
955291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR3_23_20, RPC_INT_N),
956291f7856SCong Dang
957291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR3_27_24, TCLK3_A),
958291f7856SCong Dang
959291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR3_31_28, TCLK4_A),
960291f7856SCong Dang
961291f7856SCong Dang /* IP0SR4 */
962291f7856SCong Dang PINMUX_IPSR_MSEL(IP0SR4_3_0, SCL0, SEL_SCL0_0),
963291f7856SCong Dang
964291f7856SCong Dang PINMUX_IPSR_MSEL(IP0SR4_7_4, SDA0, SEL_SDA0_0),
965291f7856SCong Dang
966291f7856SCong Dang PINMUX_IPSR_MSEL(IP0SR4_11_8, SCL1, SEL_SCL1_0),
967291f7856SCong Dang
968291f7856SCong Dang PINMUX_IPSR_MSEL(IP0SR4_15_12, SDA1, SEL_SDA1_0),
969291f7856SCong Dang
970291f7856SCong Dang PINMUX_IPSR_MSEL(IP0SR4_19_16, SCL2, SEL_SCL2_0),
971291f7856SCong Dang
972291f7856SCong Dang PINMUX_IPSR_MSEL(IP0SR4_23_20, SDA2, SEL_SDA2_0),
973291f7856SCong Dang
974291f7856SCong Dang PINMUX_IPSR_MSEL(IP0SR4_27_24, SCL3, SEL_SCL3_0),
975291f7856SCong Dang
976291f7856SCong Dang PINMUX_IPSR_MSEL(IP0SR4_31_28, SDA3, SEL_SDA3_0),
977291f7856SCong Dang
978291f7856SCong Dang /* IP1SR4 */
979291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_3_0, HRX2),
980291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_3_0, SCK4),
981291f7856SCong Dang
982291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_7_4, HTX2),
983291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_7_4, CTS4_N),
984291f7856SCong Dang
985291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_11_8, HRTS2_N),
986291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_11_8, RTS4_N),
987291f7856SCong Dang
988291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_15_12, SCIF_CLK2),
989291f7856SCong Dang
990291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_19_16, HCTS2_N),
991291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_19_16, TX4),
992291f7856SCong Dang
993291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_23_20, HSCK2),
994291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_23_20, RX4),
995291f7856SCong Dang
996291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_27_24, PWM3_A),
997291f7856SCong Dang
998291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR4_31_28, PWM4),
999291f7856SCong Dang
1000291f7856SCong Dang /* IP2SR4 */
1001291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR4_23_20, PCIE0_CLKREQ_N),
1002291f7856SCong Dang
1003291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR4_31_28, AVS0),
1004291f7856SCong Dang
1005291f7856SCong Dang /* IP3SR4 */
1006291f7856SCong Dang PINMUX_IPSR_GPSR(IP3SR4_3_0, AVS1),
1007291f7856SCong Dang
1008291f7856SCong Dang /* IP0SR5 */
1009291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_3_0, AVB2_AVTP_PPS),
1010291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_3_0, Ether_GPTP_PPS0),
1011291f7856SCong Dang
1012291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_7_4, AVB2_AVTP_CAPTURE),
1013291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_7_4, Ether_GPTP_CAPTURE),
1014291f7856SCong Dang
1015291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_11_8, AVB2_AVTP_MATCH),
1016291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_11_8, Ether_GPTP_MATCH),
1017291f7856SCong Dang
1018291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_15_12, AVB2_LINK),
1019291f7856SCong Dang
1020291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_19_16, AVB2_PHY_INT),
1021291f7856SCong Dang
1022291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_23_20, AVB2_MAGIC),
1023291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_23_20, Ether_GPTP_PPS1),
1024291f7856SCong Dang
1025291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_27_24, AVB2_MDC),
1026291f7856SCong Dang
1027291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR5_31_28, AVB2_TXCREFCLK),
1028291f7856SCong Dang
1029291f7856SCong Dang /* IP1SR5 */
1030291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR5_3_0, AVB2_TD3),
1031291f7856SCong Dang
1032291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR5_7_4, AVB2_RD3),
1033291f7856SCong Dang
1034291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR5_11_8, AVB2_MDIO),
1035291f7856SCong Dang
1036291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR5_15_12, AVB2_TD2),
1037291f7856SCong Dang
1038291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR5_19_16, AVB2_TD1),
1039291f7856SCong Dang
1040291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR5_23_20, AVB2_RD2),
1041291f7856SCong Dang
1042291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR5_27_24, AVB2_RD1),
1043291f7856SCong Dang
1044291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR5_31_28, AVB2_TD0),
1045291f7856SCong Dang
1046291f7856SCong Dang /* IP2SR5 */
1047291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR5_3_0, AVB2_TXC),
1048291f7856SCong Dang
1049291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR5_7_4, AVB2_RD0),
1050291f7856SCong Dang
1051291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR5_11_8, AVB2_RXC),
1052291f7856SCong Dang
1053291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR5_15_12, AVB2_TX_CTL),
1054291f7856SCong Dang
1055291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR5_19_16, AVB2_RX_CTL),
1056291f7856SCong Dang
1057291f7856SCong Dang /* IP0SR6 */
1058291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_3_0, AVB1_MDIO),
1059291f7856SCong Dang
1060291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_7_4, AVB1_MAGIC),
1061291f7856SCong Dang
1062291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_11_8, AVB1_MDC),
1063291f7856SCong Dang
1064291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_15_12, AVB1_PHY_INT),
1065291f7856SCong Dang
1066291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_19_16, AVB1_LINK),
1067291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_19_16, AVB1_MII_TX_ER),
1068291f7856SCong Dang
1069291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_23_20, AVB1_AVTP_MATCH),
1070291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_23_20, AVB1_MII_RX_ER),
1071291f7856SCong Dang
1072291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_27_24, AVB1_TXC),
1073291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_27_24, AVB1_MII_TXC),
1074291f7856SCong Dang
1075291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_31_28, AVB1_TX_CTL),
1076291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR6_31_28, AVB1_MII_TX_EN),
1077291f7856SCong Dang
1078291f7856SCong Dang /* IP1SR6 */
1079291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_3_0, AVB1_RXC),
1080291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_3_0, AVB1_MII_RXC),
1081291f7856SCong Dang
1082291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_7_4, AVB1_RX_CTL),
1083291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_7_4, AVB1_MII_RX_DV),
1084291f7856SCong Dang
1085291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_11_8, AVB1_AVTP_PPS),
1086291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_11_8, AVB1_MII_COL),
1087291f7856SCong Dang
1088291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_15_12, AVB1_AVTP_CAPTURE),
1089291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_15_12, AVB1_MII_CRS),
1090291f7856SCong Dang
1091291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_19_16, AVB1_TD1),
1092291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_19_16, AVB1_MII_TD1),
1093291f7856SCong Dang
1094291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_23_20, AVB1_TD0),
1095291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_23_20, AVB1_MII_TD0),
1096291f7856SCong Dang
1097291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_27_24, AVB1_RD1),
1098291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_27_24, AVB1_MII_RD1),
1099291f7856SCong Dang
1100291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_31_28, AVB1_RD0),
1101291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR6_31_28, AVB1_MII_RD0),
1102291f7856SCong Dang
1103291f7856SCong Dang /* IP2SR6 */
1104291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_3_0, AVB1_TD2),
1105291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_3_0, AVB1_MII_TD2),
1106291f7856SCong Dang
1107291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_7_4, AVB1_RD2),
1108291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_7_4, AVB1_MII_RD2),
1109291f7856SCong Dang
1110291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_11_8, AVB1_TD3),
1111291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_11_8, AVB1_MII_TD3),
1112291f7856SCong Dang
1113291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_15_12, AVB1_RD3),
1114291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_15_12, AVB1_MII_RD3),
1115291f7856SCong Dang
1116291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR6_19_16, AVB1_TXCREFCLK),
1117291f7856SCong Dang
1118291f7856SCong Dang /* IP0SR7 */
1119291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_3_0, AVB0_AVTP_PPS),
1120291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_3_0, AVB0_MII_COL),
1121291f7856SCong Dang
1122291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_7_4, AVB0_AVTP_CAPTURE),
1123291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_7_4, AVB0_MII_CRS),
1124291f7856SCong Dang
1125291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_11_8, AVB0_AVTP_MATCH),
1126291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_11_8, AVB0_MII_RX_ER),
1127291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_11_8, CC5_OSCOUT),
1128291f7856SCong Dang
1129291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_15_12, AVB0_TD3),
1130291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_15_12, AVB0_MII_TD3),
1131291f7856SCong Dang
1132291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_19_16, AVB0_LINK),
1133291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_19_16, AVB0_MII_TX_ER),
1134291f7856SCong Dang
1135291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_23_20, AVB0_PHY_INT),
1136291f7856SCong Dang
1137291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_27_24, AVB0_TD2),
1138291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_27_24, AVB0_MII_TD2),
1139291f7856SCong Dang
1140291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_31_28, AVB0_TD1),
1141291f7856SCong Dang PINMUX_IPSR_GPSR(IP0SR7_31_28, AVB0_MII_TD1),
1142291f7856SCong Dang
1143291f7856SCong Dang /* IP1SR7 */
1144291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_3_0, AVB0_RD3),
1145291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_3_0, AVB0_MII_RD3),
1146291f7856SCong Dang
1147291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_7_4, AVB0_TXCREFCLK),
1148291f7856SCong Dang
1149291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_11_8, AVB0_MAGIC),
1150291f7856SCong Dang
1151291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_15_12, AVB0_TD0),
1152291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_15_12, AVB0_MII_TD0),
1153291f7856SCong Dang
1154291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_19_16, AVB0_RD2),
1155291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_19_16, AVB0_MII_RD2),
1156291f7856SCong Dang
1157291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_23_20, AVB0_MDC),
1158291f7856SCong Dang
1159291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_27_24, AVB0_MDIO),
1160291f7856SCong Dang
1161291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_31_28, AVB0_TXC),
1162291f7856SCong Dang PINMUX_IPSR_GPSR(IP1SR7_31_28, AVB0_MII_TXC),
1163291f7856SCong Dang
1164291f7856SCong Dang /* IP2SR7 */
1165291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_3_0, AVB0_TX_CTL),
1166291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_3_0, AVB0_MII_TX_EN),
1167291f7856SCong Dang
1168291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_7_4, AVB0_RD1),
1169291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_7_4, AVB0_MII_RD1),
1170291f7856SCong Dang
1171291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_11_8, AVB0_RD0),
1172291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_11_8, AVB0_MII_RD0),
1173291f7856SCong Dang
1174291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_15_12, AVB0_RXC),
1175291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_15_12, AVB0_MII_RXC),
1176291f7856SCong Dang
1177291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_19_16, AVB0_RX_CTL),
1178291f7856SCong Dang PINMUX_IPSR_GPSR(IP2SR7_19_16, AVB0_MII_RX_DV),
1179291f7856SCong Dang };
1180291f7856SCong Dang
1181291f7856SCong Dang /*
1182291f7856SCong Dang * Pins not associated with a GPIO port.
1183291f7856SCong Dang */
1184291f7856SCong Dang enum {
1185291f7856SCong Dang GP_ASSIGN_LAST(),
1186291f7856SCong Dang NOGP_ALL(),
1187291f7856SCong Dang };
1188291f7856SCong Dang
1189291f7856SCong Dang static const struct sh_pfc_pin pinmux_pins[] = {
1190291f7856SCong Dang PINMUX_GPIO_GP_ALL(),
1191291f7856SCong Dang PINMUX_NOGP_ALL(),
1192291f7856SCong Dang };
1193291f7856SCong Dang
119497191e53SCong Dang /* - AUDIO CLOCK ----------------------------------------- */
119597191e53SCong Dang static const unsigned int audio_clkin_pins[] = {
119697191e53SCong Dang /* CLK IN */
119797191e53SCong Dang RCAR_GP_PIN(1, 22),
119897191e53SCong Dang };
119997191e53SCong Dang static const unsigned int audio_clkin_mux[] = {
120097191e53SCong Dang AUDIO_CLKIN_MARK,
120197191e53SCong Dang };
120297191e53SCong Dang static const unsigned int audio_clkout_pins[] = {
120397191e53SCong Dang /* CLK OUT */
120497191e53SCong Dang RCAR_GP_PIN(1, 21),
120597191e53SCong Dang };
120697191e53SCong Dang static const unsigned int audio_clkout_mux[] = {
120797191e53SCong Dang AUDIO_CLKOUT_MARK,
120897191e53SCong Dang };
120997191e53SCong Dang
121073f35ebbSCong Dang /* - AVB0 ------------------------------------------------ */
121173f35ebbSCong Dang static const unsigned int avb0_link_pins[] = {
121273f35ebbSCong Dang /* AVB0_LINK */
121373f35ebbSCong Dang RCAR_GP_PIN(7, 4),
121473f35ebbSCong Dang };
121573f35ebbSCong Dang static const unsigned int avb0_link_mux[] = {
121673f35ebbSCong Dang AVB0_LINK_MARK,
121773f35ebbSCong Dang };
121873f35ebbSCong Dang static const unsigned int avb0_magic_pins[] = {
121973f35ebbSCong Dang /* AVB0_MAGIC */
122073f35ebbSCong Dang RCAR_GP_PIN(7, 10),
122173f35ebbSCong Dang };
122273f35ebbSCong Dang static const unsigned int avb0_magic_mux[] = {
122373f35ebbSCong Dang AVB0_MAGIC_MARK,
122473f35ebbSCong Dang };
122573f35ebbSCong Dang static const unsigned int avb0_phy_int_pins[] = {
122673f35ebbSCong Dang /* AVB0_PHY_INT */
122773f35ebbSCong Dang RCAR_GP_PIN(7, 5),
122873f35ebbSCong Dang };
122973f35ebbSCong Dang static const unsigned int avb0_phy_int_mux[] = {
123073f35ebbSCong Dang AVB0_PHY_INT_MARK,
123173f35ebbSCong Dang };
123273f35ebbSCong Dang static const unsigned int avb0_mdio_pins[] = {
123373f35ebbSCong Dang /* AVB0_MDC, AVB0_MDIO */
123473f35ebbSCong Dang RCAR_GP_PIN(7, 13), RCAR_GP_PIN(7, 14),
123573f35ebbSCong Dang };
123673f35ebbSCong Dang static const unsigned int avb0_mdio_mux[] = {
123773f35ebbSCong Dang AVB0_MDC_MARK, AVB0_MDIO_MARK,
123873f35ebbSCong Dang };
12396d8fc3e4SGeert Uytterhoeven static const unsigned int avb0_mii_pins[] = {
12406d8fc3e4SGeert Uytterhoeven /*
12416d8fc3e4SGeert Uytterhoeven * AVB0_MII_TD0, AVB0_MII_TD1, AVB0_MII_TD2,
12426d8fc3e4SGeert Uytterhoeven * AVB0_MII_TD3, AVB0_MII_RD0, AVB0_MII_RD1,
12436d8fc3e4SGeert Uytterhoeven * AVB0_MII_RD2, AVB0_MII_RD3, AVB0_MII_TXC,
12446d8fc3e4SGeert Uytterhoeven * AVB0_MII_TX_EN, AVB0_MII_TX_ER, AVB0_MII_RXC,
12456d8fc3e4SGeert Uytterhoeven * AVB0_MII_RX_DV, AVB0_MII_RX_ER, AVB0_MII_CRS,
12466d8fc3e4SGeert Uytterhoeven * AVB0_MII_COL
12476d8fc3e4SGeert Uytterhoeven */
12486d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(7, 11), RCAR_GP_PIN(7, 7), RCAR_GP_PIN(7, 6),
12496d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(7, 3), RCAR_GP_PIN(7, 18), RCAR_GP_PIN(7, 17),
12506d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(7, 12), RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 15),
12516d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(7, 16), RCAR_GP_PIN(7, 4), RCAR_GP_PIN(7, 19),
12526d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(7, 20), RCAR_GP_PIN(7, 2), RCAR_GP_PIN(7, 1),
12536d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(7, 0),
12546d8fc3e4SGeert Uytterhoeven };
12556d8fc3e4SGeert Uytterhoeven static const unsigned int avb0_mii_mux[] = {
12566d8fc3e4SGeert Uytterhoeven AVB0_MII_TD0_MARK, AVB0_MII_TD1_MARK, AVB0_MII_TD2_MARK,
12576d8fc3e4SGeert Uytterhoeven AVB0_MII_TD3_MARK, AVB0_MII_RD0_MARK, AVB0_MII_RD1_MARK,
12586d8fc3e4SGeert Uytterhoeven AVB0_MII_RD2_MARK, AVB0_MII_RD3_MARK, AVB0_MII_TXC_MARK,
12596d8fc3e4SGeert Uytterhoeven AVB0_MII_TX_EN_MARK, AVB0_MII_TX_ER_MARK, AVB0_MII_RXC_MARK,
12606d8fc3e4SGeert Uytterhoeven AVB0_MII_RX_DV_MARK, AVB0_MII_RX_ER_MARK, AVB0_MII_CRS_MARK,
12616d8fc3e4SGeert Uytterhoeven AVB0_MII_COL_MARK,
12626d8fc3e4SGeert Uytterhoeven };
126373f35ebbSCong Dang static const unsigned int avb0_rgmii_pins[] = {
126473f35ebbSCong Dang /*
126573f35ebbSCong Dang * AVB0_TX_CTL, AVB0_TXC, AVB0_TD0, AVB0_TD1, AVB0_TD2, AVB0_TD3,
126673f35ebbSCong Dang * AVB0_RX_CTL, AVB0_RXC, AVB0_RD0, AVB0_RD1, AVB0_RD2, AVB0_RD3,
126773f35ebbSCong Dang */
126873f35ebbSCong Dang RCAR_GP_PIN(7, 16), RCAR_GP_PIN(7, 15),
126973f35ebbSCong Dang RCAR_GP_PIN(7, 11), RCAR_GP_PIN(7, 7),
127073f35ebbSCong Dang RCAR_GP_PIN(7, 6), RCAR_GP_PIN(7, 3),
127173f35ebbSCong Dang RCAR_GP_PIN(7, 20), RCAR_GP_PIN(7, 19),
127273f35ebbSCong Dang RCAR_GP_PIN(7, 18), RCAR_GP_PIN(7, 17),
127373f35ebbSCong Dang RCAR_GP_PIN(7, 12), RCAR_GP_PIN(7, 8),
127473f35ebbSCong Dang };
127573f35ebbSCong Dang static const unsigned int avb0_rgmii_mux[] = {
127673f35ebbSCong Dang AVB0_TX_CTL_MARK, AVB0_TXC_MARK,
127773f35ebbSCong Dang AVB0_TD0_MARK, AVB0_TD1_MARK,
127873f35ebbSCong Dang AVB0_TD2_MARK, AVB0_TD3_MARK,
127973f35ebbSCong Dang AVB0_RX_CTL_MARK, AVB0_RXC_MARK,
128073f35ebbSCong Dang AVB0_RD0_MARK, AVB0_RD1_MARK,
128173f35ebbSCong Dang AVB0_RD2_MARK, AVB0_RD3_MARK,
128273f35ebbSCong Dang };
128373f35ebbSCong Dang static const unsigned int avb0_txcrefclk_pins[] = {
128473f35ebbSCong Dang /* AVB0_TXCREFCLK */
128573f35ebbSCong Dang RCAR_GP_PIN(7, 9),
128673f35ebbSCong Dang };
128773f35ebbSCong Dang static const unsigned int avb0_txcrefclk_mux[] = {
128873f35ebbSCong Dang AVB0_TXCREFCLK_MARK,
128973f35ebbSCong Dang };
129073f35ebbSCong Dang static const unsigned int avb0_avtp_pps_pins[] = {
129173f35ebbSCong Dang /* AVB0_AVTP_PPS */
129273f35ebbSCong Dang RCAR_GP_PIN(7, 0),
129373f35ebbSCong Dang };
129473f35ebbSCong Dang static const unsigned int avb0_avtp_pps_mux[] = {
129573f35ebbSCong Dang AVB0_AVTP_PPS_MARK,
129673f35ebbSCong Dang };
129773f35ebbSCong Dang static const unsigned int avb0_avtp_capture_pins[] = {
129873f35ebbSCong Dang /* AVB0_AVTP_CAPTURE */
129973f35ebbSCong Dang RCAR_GP_PIN(7, 1),
130073f35ebbSCong Dang };
130173f35ebbSCong Dang static const unsigned int avb0_avtp_capture_mux[] = {
130273f35ebbSCong Dang AVB0_AVTP_CAPTURE_MARK,
130373f35ebbSCong Dang };
130473f35ebbSCong Dang static const unsigned int avb0_avtp_match_pins[] = {
130573f35ebbSCong Dang /* AVB0_AVTP_MATCH */
130673f35ebbSCong Dang RCAR_GP_PIN(7, 2),
130773f35ebbSCong Dang };
130873f35ebbSCong Dang static const unsigned int avb0_avtp_match_mux[] = {
130973f35ebbSCong Dang AVB0_AVTP_MATCH_MARK,
131073f35ebbSCong Dang };
1311291f7856SCong Dang
131273f35ebbSCong Dang /* - AVB1 ------------------------------------------------ */
131373f35ebbSCong Dang static const unsigned int avb1_link_pins[] = {
131473f35ebbSCong Dang /* AVB1_LINK */
131573f35ebbSCong Dang RCAR_GP_PIN(6, 4),
131673f35ebbSCong Dang };
131773f35ebbSCong Dang static const unsigned int avb1_link_mux[] = {
131873f35ebbSCong Dang AVB1_LINK_MARK,
131973f35ebbSCong Dang };
132073f35ebbSCong Dang static const unsigned int avb1_magic_pins[] = {
132173f35ebbSCong Dang /* AVB1_MAGIC */
132273f35ebbSCong Dang RCAR_GP_PIN(6, 1),
132373f35ebbSCong Dang };
132473f35ebbSCong Dang static const unsigned int avb1_magic_mux[] = {
132573f35ebbSCong Dang AVB1_MAGIC_MARK,
132673f35ebbSCong Dang };
132773f35ebbSCong Dang static const unsigned int avb1_phy_int_pins[] = {
132873f35ebbSCong Dang /* AVB1_PHY_INT */
132973f35ebbSCong Dang RCAR_GP_PIN(6, 3),
133073f35ebbSCong Dang };
133173f35ebbSCong Dang static const unsigned int avb1_phy_int_mux[] = {
133273f35ebbSCong Dang AVB1_PHY_INT_MARK,
133373f35ebbSCong Dang };
133473f35ebbSCong Dang static const unsigned int avb1_mdio_pins[] = {
133573f35ebbSCong Dang /* AVB1_MDC, AVB1_MDIO */
133673f35ebbSCong Dang RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 0),
133773f35ebbSCong Dang };
133873f35ebbSCong Dang static const unsigned int avb1_mdio_mux[] = {
133973f35ebbSCong Dang AVB1_MDC_MARK, AVB1_MDIO_MARK,
134073f35ebbSCong Dang };
13416d8fc3e4SGeert Uytterhoeven static const unsigned int avb1_mii_pins[] = {
13426d8fc3e4SGeert Uytterhoeven /*
13436d8fc3e4SGeert Uytterhoeven * AVB1_MII_TD0, AVB1_MII_TD1, AVB1_MII_TD2,
13446d8fc3e4SGeert Uytterhoeven * AVB1_MII_TD3, AVB1_MII_RD0, AVB1_MII_RD1,
13456d8fc3e4SGeert Uytterhoeven * AVB1_MII_RD2, AVB1_MII_RD3, AVB1_MII_TXC,
13466d8fc3e4SGeert Uytterhoeven * AVB1_MII_TX_EN, AVB1_MII_TX_ER, AVB1_MII_RXC,
13476d8fc3e4SGeert Uytterhoeven * AVB1_MII_RX_DV, AVB1_MII_RX_ER, AVB1_MII_CRS,
13486d8fc3e4SGeert Uytterhoeven * AVB1_MII_COL
13496d8fc3e4SGeert Uytterhoeven */
13506d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(6, 13), RCAR_GP_PIN(6, 12), RCAR_GP_PIN(6, 16),
13516d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(6, 18), RCAR_GP_PIN(6, 15), RCAR_GP_PIN(6, 14),
13526d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 19), RCAR_GP_PIN(6, 6),
13536d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 8),
13546d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(6, 9), RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 11),
13556d8fc3e4SGeert Uytterhoeven RCAR_GP_PIN(6, 10),
13566d8fc3e4SGeert Uytterhoeven };
13576d8fc3e4SGeert Uytterhoeven static const unsigned int avb1_mii_mux[] = {
13586d8fc3e4SGeert Uytterhoeven AVB1_MII_TD0_MARK, AVB1_MII_TD1_MARK, AVB1_MII_TD2_MARK,
13596d8fc3e4SGeert Uytterhoeven AVB1_MII_TD3_MARK, AVB1_MII_RD0_MARK, AVB1_MII_RD1_MARK,
13606d8fc3e4SGeert Uytterhoeven AVB1_MII_RD2_MARK, AVB1_MII_RD3_MARK, AVB1_MII_TXC_MARK,
13616d8fc3e4SGeert Uytterhoeven AVB1_MII_TX_EN_MARK, AVB1_MII_TX_ER_MARK, AVB1_MII_RXC_MARK,
13626d8fc3e4SGeert Uytterhoeven AVB1_MII_RX_DV_MARK, AVB1_MII_RX_ER_MARK, AVB1_MII_CRS_MARK,
13636d8fc3e4SGeert Uytterhoeven AVB1_MII_COL_MARK,
13646d8fc3e4SGeert Uytterhoeven };
136573f35ebbSCong Dang static const unsigned int avb1_rgmii_pins[] = {
136673f35ebbSCong Dang /*
136773f35ebbSCong Dang * AVB1_TX_CTL, AVB1_TXC, AVB1_TD0, AVB1_TD1, AVB1_TD2, AVB1_TD3,
136873f35ebbSCong Dang * AVB1_RX_CTL, AVB1_RXC, AVB1_RD0, AVB1_RD1, AVB1_RD2, AVB1_RD3,
136973f35ebbSCong Dang */
137073f35ebbSCong Dang RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
137173f35ebbSCong Dang RCAR_GP_PIN(6, 13), RCAR_GP_PIN(6, 12),
137273f35ebbSCong Dang RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 18),
137373f35ebbSCong Dang RCAR_GP_PIN(6, 9), RCAR_GP_PIN(6, 8),
137473f35ebbSCong Dang RCAR_GP_PIN(6, 15), RCAR_GP_PIN(6, 14),
137573f35ebbSCong Dang RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 19),
137673f35ebbSCong Dang };
137773f35ebbSCong Dang static const unsigned int avb1_rgmii_mux[] = {
137873f35ebbSCong Dang AVB1_TX_CTL_MARK, AVB1_TXC_MARK,
137973f35ebbSCong Dang AVB1_TD0_MARK, AVB1_TD1_MARK,
138073f35ebbSCong Dang AVB1_TD2_MARK, AVB1_TD3_MARK,
138173f35ebbSCong Dang AVB1_RX_CTL_MARK, AVB1_RXC_MARK,
138273f35ebbSCong Dang AVB1_RD0_MARK, AVB1_RD1_MARK,
138373f35ebbSCong Dang AVB1_RD2_MARK, AVB1_RD3_MARK,
138473f35ebbSCong Dang };
138573f35ebbSCong Dang static const unsigned int avb1_txcrefclk_pins[] = {
138673f35ebbSCong Dang /* AVB1_TXCREFCLK */
138773f35ebbSCong Dang RCAR_GP_PIN(6, 20),
138873f35ebbSCong Dang };
138973f35ebbSCong Dang static const unsigned int avb1_txcrefclk_mux[] = {
139073f35ebbSCong Dang AVB1_TXCREFCLK_MARK,
139173f35ebbSCong Dang };
139273f35ebbSCong Dang static const unsigned int avb1_avtp_pps_pins[] = {
139373f35ebbSCong Dang /* AVB1_AVTP_PPS */
139473f35ebbSCong Dang RCAR_GP_PIN(6, 10),
139573f35ebbSCong Dang };
139673f35ebbSCong Dang static const unsigned int avb1_avtp_pps_mux[] = {
139773f35ebbSCong Dang AVB1_AVTP_PPS_MARK,
139873f35ebbSCong Dang };
139973f35ebbSCong Dang static const unsigned int avb1_avtp_capture_pins[] = {
140073f35ebbSCong Dang /* AVB1_AVTP_CAPTURE */
140173f35ebbSCong Dang RCAR_GP_PIN(6, 11),
140273f35ebbSCong Dang };
140373f35ebbSCong Dang static const unsigned int avb1_avtp_capture_mux[] = {
140473f35ebbSCong Dang AVB1_AVTP_CAPTURE_MARK,
140573f35ebbSCong Dang };
140673f35ebbSCong Dang static const unsigned int avb1_avtp_match_pins[] = {
140773f35ebbSCong Dang /* AVB1_AVTP_MATCH */
140873f35ebbSCong Dang RCAR_GP_PIN(6, 5),
140973f35ebbSCong Dang };
141073f35ebbSCong Dang static const unsigned int avb1_avtp_match_mux[] = {
141173f35ebbSCong Dang AVB1_AVTP_MATCH_MARK,
141273f35ebbSCong Dang };
141373f35ebbSCong Dang
141473f35ebbSCong Dang /* - AVB2 ------------------------------------------------ */
141573f35ebbSCong Dang static const unsigned int avb2_link_pins[] = {
141673f35ebbSCong Dang /* AVB2_LINK */
141773f35ebbSCong Dang RCAR_GP_PIN(5, 3),
141873f35ebbSCong Dang };
141973f35ebbSCong Dang static const unsigned int avb2_link_mux[] = {
142073f35ebbSCong Dang AVB2_LINK_MARK,
142173f35ebbSCong Dang };
142273f35ebbSCong Dang static const unsigned int avb2_magic_pins[] = {
142373f35ebbSCong Dang /* AVB2_MAGIC */
142473f35ebbSCong Dang RCAR_GP_PIN(5, 5),
142573f35ebbSCong Dang };
142673f35ebbSCong Dang static const unsigned int avb2_magic_mux[] = {
142773f35ebbSCong Dang AVB2_MAGIC_MARK,
142873f35ebbSCong Dang };
142973f35ebbSCong Dang static const unsigned int avb2_phy_int_pins[] = {
143073f35ebbSCong Dang /* AVB2_PHY_INT */
143173f35ebbSCong Dang RCAR_GP_PIN(5, 4),
143273f35ebbSCong Dang };
143373f35ebbSCong Dang static const unsigned int avb2_phy_int_mux[] = {
143473f35ebbSCong Dang AVB2_PHY_INT_MARK,
143573f35ebbSCong Dang };
143673f35ebbSCong Dang static const unsigned int avb2_mdio_pins[] = {
143773f35ebbSCong Dang /* AVB2_MDC, AVB2_MDIO */
143873f35ebbSCong Dang RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 10),
143973f35ebbSCong Dang };
144073f35ebbSCong Dang static const unsigned int avb2_mdio_mux[] = {
144173f35ebbSCong Dang AVB2_MDC_MARK, AVB2_MDIO_MARK,
144273f35ebbSCong Dang };
144373f35ebbSCong Dang static const unsigned int avb2_rgmii_pins[] = {
144473f35ebbSCong Dang /*
144573f35ebbSCong Dang * AVB2_TX_CTL, AVB2_TXC, AVB2_TD0, AVB2_TD1, AVB2_TD2, AVB2_TD3,
144673f35ebbSCong Dang * AVB2_RX_CTL, AVB2_RXC, AVB2_RD0, AVB2_RD1, AVB2_RD2, AVB2_RD3,
144773f35ebbSCong Dang */
144873f35ebbSCong Dang RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 16),
144973f35ebbSCong Dang RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 12),
145073f35ebbSCong Dang RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 8),
145173f35ebbSCong Dang RCAR_GP_PIN(5, 20), RCAR_GP_PIN(5, 18),
145273f35ebbSCong Dang RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 14),
145373f35ebbSCong Dang RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 9),
145473f35ebbSCong Dang };
145573f35ebbSCong Dang static const unsigned int avb2_rgmii_mux[] = {
145673f35ebbSCong Dang AVB2_TX_CTL_MARK, AVB2_TXC_MARK,
145773f35ebbSCong Dang AVB2_TD0_MARK, AVB2_TD1_MARK,
145873f35ebbSCong Dang AVB2_TD2_MARK, AVB2_TD3_MARK,
145973f35ebbSCong Dang AVB2_RX_CTL_MARK, AVB2_RXC_MARK,
146073f35ebbSCong Dang AVB2_RD0_MARK, AVB2_RD1_MARK,
146173f35ebbSCong Dang AVB2_RD2_MARK, AVB2_RD3_MARK,
146273f35ebbSCong Dang };
146373f35ebbSCong Dang static const unsigned int avb2_txcrefclk_pins[] = {
146473f35ebbSCong Dang /* AVB2_TXCREFCLK */
146573f35ebbSCong Dang RCAR_GP_PIN(5, 7),
146673f35ebbSCong Dang };
146773f35ebbSCong Dang static const unsigned int avb2_txcrefclk_mux[] = {
146873f35ebbSCong Dang AVB2_TXCREFCLK_MARK,
146973f35ebbSCong Dang };
147073f35ebbSCong Dang static const unsigned int avb2_avtp_pps_pins[] = {
147173f35ebbSCong Dang /* AVB2_AVTP_PPS */
147273f35ebbSCong Dang RCAR_GP_PIN(5, 0),
147373f35ebbSCong Dang };
147473f35ebbSCong Dang static const unsigned int avb2_avtp_pps_mux[] = {
147573f35ebbSCong Dang AVB2_AVTP_PPS_MARK,
147673f35ebbSCong Dang };
147773f35ebbSCong Dang static const unsigned int avb2_avtp_capture_pins[] = {
147873f35ebbSCong Dang /* AVB2_AVTP_CAPTURE */
147973f35ebbSCong Dang RCAR_GP_PIN(5, 1),
148073f35ebbSCong Dang };
148173f35ebbSCong Dang static const unsigned int avb2_avtp_capture_mux[] = {
148273f35ebbSCong Dang AVB2_AVTP_CAPTURE_MARK,
148373f35ebbSCong Dang };
148473f35ebbSCong Dang static const unsigned int avb2_avtp_match_pins[] = {
148573f35ebbSCong Dang /* AVB2_AVTP_MATCH */
148673f35ebbSCong Dang RCAR_GP_PIN(5, 2),
148773f35ebbSCong Dang };
148873f35ebbSCong Dang static const unsigned int avb2_avtp_match_mux[] = {
148973f35ebbSCong Dang AVB2_AVTP_MATCH_MARK,
149073f35ebbSCong Dang };
149173f35ebbSCong Dang
14922acf13ceSCong Dang /* - CANFD0 ----------------------------------------------------------------- */
14932acf13ceSCong Dang static const unsigned int canfd0_data_pins[] = {
14942acf13ceSCong Dang /* CANFD0_TX, CANFD0_RX */
14952acf13ceSCong Dang RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
14962acf13ceSCong Dang };
14972acf13ceSCong Dang static const unsigned int canfd0_data_mux[] = {
14982acf13ceSCong Dang CANFD0_TX_MARK, CANFD0_RX_MARK,
14992acf13ceSCong Dang };
15002acf13ceSCong Dang
15012acf13ceSCong Dang /* - CANFD1 ----------------------------------------------------------------- */
15022acf13ceSCong Dang static const unsigned int canfd1_data_pins[] = {
15032acf13ceSCong Dang /* CANFD1_TX, CANFD1_RX */
15042acf13ceSCong Dang RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 19),
15052acf13ceSCong Dang };
15062acf13ceSCong Dang static const unsigned int canfd1_data_mux[] = {
15072acf13ceSCong Dang CANFD1_TX_MARK, CANFD1_RX_MARK,
15082acf13ceSCong Dang };
15092acf13ceSCong Dang
15102acf13ceSCong Dang /* - CANFD2 ----------------------------------------------------------------- */
15112acf13ceSCong Dang static const unsigned int canfd2_data_pins[] = {
15122acf13ceSCong Dang /* CANFD2_TX, CANFD2_RX */
15132acf13ceSCong Dang RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
15142acf13ceSCong Dang };
15152acf13ceSCong Dang static const unsigned int canfd2_data_mux[] = {
15162acf13ceSCong Dang CANFD2_TX_MARK, CANFD2_RX_MARK,
15172acf13ceSCong Dang };
15182acf13ceSCong Dang
15192acf13ceSCong Dang /* - CANFD3 ----------------------------------------------------------------- */
15202acf13ceSCong Dang static const unsigned int canfd3_data_pins[] = {
15212acf13ceSCong Dang /* CANFD3_TX, CANFD3_RX */
15222acf13ceSCong Dang RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 15),
15232acf13ceSCong Dang };
15242acf13ceSCong Dang static const unsigned int canfd3_data_mux[] = {
15252acf13ceSCong Dang CANFD3_TX_MARK, CANFD3_RX_MARK,
15262acf13ceSCong Dang };
15272acf13ceSCong Dang
15282acf13ceSCong Dang /* - CANFD Clock ------------------------------------------------------------ */
15292acf13ceSCong Dang static const unsigned int can_clk_pins[] = {
15302acf13ceSCong Dang /* CAN_CLK */
15312acf13ceSCong Dang RCAR_GP_PIN(2, 9),
15322acf13ceSCong Dang };
15332acf13ceSCong Dang static const unsigned int can_clk_mux[] = {
15342acf13ceSCong Dang CAN_CLK_MARK,
15352acf13ceSCong Dang };
15362acf13ceSCong Dang
1537a0974d84SCong Dang /* - HSCIF0 ----------------------------------------------------------------- */
1538a0974d84SCong Dang static const unsigned int hscif0_data_pins[] = {
1539a0974d84SCong Dang /* HRX0, HTX0 */
1540a0974d84SCong Dang RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 12),
1541a0974d84SCong Dang };
1542a0974d84SCong Dang static const unsigned int hscif0_data_mux[] = {
1543a0974d84SCong Dang HRX0_MARK, HTX0_MARK,
1544a0974d84SCong Dang };
1545a0974d84SCong Dang static const unsigned int hscif0_clk_pins[] = {
1546a0974d84SCong Dang /* HSCK0 */
1547a0974d84SCong Dang RCAR_GP_PIN(1, 15),
1548a0974d84SCong Dang };
1549a0974d84SCong Dang static const unsigned int hscif0_clk_mux[] = {
1550a0974d84SCong Dang HSCK0_MARK,
1551a0974d84SCong Dang };
1552a0974d84SCong Dang static const unsigned int hscif0_ctrl_pins[] = {
1553a0974d84SCong Dang /* HRTS0_N, HCTS0_N */
1554a0974d84SCong Dang RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
1555a0974d84SCong Dang };
1556a0974d84SCong Dang static const unsigned int hscif0_ctrl_mux[] = {
1557a0974d84SCong Dang HRTS0_N_MARK, HCTS0_N_MARK,
1558a0974d84SCong Dang };
1559a0974d84SCong Dang
1560*71062e52SGeert Uytterhoeven /* - HSCIF1 ------------------------------------------------------------------- */
1561a0974d84SCong Dang static const unsigned int hscif1_data_a_pins[] = {
1562a0974d84SCong Dang /* HRX1_A, HTX1_A */
1563a0974d84SCong Dang RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
1564a0974d84SCong Dang };
1565a0974d84SCong Dang static const unsigned int hscif1_data_a_mux[] = {
1566a0974d84SCong Dang HRX1_A_MARK, HTX1_A_MARK,
1567a0974d84SCong Dang };
1568a0974d84SCong Dang static const unsigned int hscif1_clk_a_pins[] = {
1569a0974d84SCong Dang /* HSCK1_A */
1570a0974d84SCong Dang RCAR_GP_PIN(0, 18),
1571a0974d84SCong Dang };
1572a0974d84SCong Dang static const unsigned int hscif1_clk_a_mux[] = {
1573a0974d84SCong Dang HSCK1_A_MARK,
1574a0974d84SCong Dang };
1575a0974d84SCong Dang static const unsigned int hscif1_ctrl_a_pins[] = {
1576a0974d84SCong Dang /* HRTS1_N_A, HCTS1_N_A */
1577a0974d84SCong Dang RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
1578a0974d84SCong Dang };
1579a0974d84SCong Dang static const unsigned int hscif1_ctrl_a_mux[] = {
1580a0974d84SCong Dang HRTS1_N_A_MARK, HCTS1_N_A_MARK,
1581a0974d84SCong Dang };
1582a0974d84SCong Dang
1583a0974d84SCong Dang static const unsigned int hscif1_data_b_pins[] = {
1584a0974d84SCong Dang /* HRX1_B, HTX1_B */
1585a0974d84SCong Dang RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
1586a0974d84SCong Dang };
1587a0974d84SCong Dang static const unsigned int hscif1_data_b_mux[] = {
1588a0974d84SCong Dang HRX1_B_MARK, HTX1_B_MARK,
1589a0974d84SCong Dang };
1590a0974d84SCong Dang static const unsigned int hscif1_clk_b_pins[] = {
1591a0974d84SCong Dang /* HSCK1_B */
1592a0974d84SCong Dang RCAR_GP_PIN(1, 10),
1593a0974d84SCong Dang };
1594a0974d84SCong Dang static const unsigned int hscif1_clk_b_mux[] = {
1595a0974d84SCong Dang HSCK1_B_MARK,
1596a0974d84SCong Dang };
1597a0974d84SCong Dang static const unsigned int hscif1_ctrl_b_pins[] = {
1598a0974d84SCong Dang /* HRTS1_N_B, HCTS1_N_B */
1599a0974d84SCong Dang RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
1600a0974d84SCong Dang };
1601a0974d84SCong Dang static const unsigned int hscif1_ctrl_b_mux[] = {
1602a0974d84SCong Dang HRTS1_N_B_MARK, HCTS1_N_B_MARK,
1603a0974d84SCong Dang };
1604a0974d84SCong Dang
1605a0974d84SCong Dang /* - HSCIF2 ----------------------------------------------------------------- */
1606a0974d84SCong Dang static const unsigned int hscif2_data_pins[] = {
1607a0974d84SCong Dang /* HRX2, HTX2 */
1608a0974d84SCong Dang RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
1609a0974d84SCong Dang };
1610a0974d84SCong Dang static const unsigned int hscif2_data_mux[] = {
1611a0974d84SCong Dang HRX2_MARK, HTX2_MARK,
1612a0974d84SCong Dang };
1613a0974d84SCong Dang static const unsigned int hscif2_clk_pins[] = {
1614a0974d84SCong Dang /* HSCK2 */
1615a0974d84SCong Dang RCAR_GP_PIN(4, 13),
1616a0974d84SCong Dang };
1617a0974d84SCong Dang static const unsigned int hscif2_clk_mux[] = {
1618a0974d84SCong Dang HSCK2_MARK,
1619a0974d84SCong Dang };
1620a0974d84SCong Dang static const unsigned int hscif2_ctrl_pins[] = {
1621a0974d84SCong Dang /* HRTS2_N, HCTS2_N */
1622a0974d84SCong Dang RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 12),
1623a0974d84SCong Dang };
1624a0974d84SCong Dang static const unsigned int hscif2_ctrl_mux[] = {
1625a0974d84SCong Dang HRTS2_N_MARK, HCTS2_N_MARK,
1626a0974d84SCong Dang };
1627a0974d84SCong Dang
1628*71062e52SGeert Uytterhoeven /* - HSCIF3 ------------------------------------------------------------------- */
1629a0974d84SCong Dang static const unsigned int hscif3_data_a_pins[] = {
1630a0974d84SCong Dang /* HRX3_A, HTX3_A */
1631a0974d84SCong Dang RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 28),
1632a0974d84SCong Dang };
1633a0974d84SCong Dang static const unsigned int hscif3_data_a_mux[] = {
1634a0974d84SCong Dang HRX3_A_MARK, HTX3_A_MARK,
1635a0974d84SCong Dang };
1636a0974d84SCong Dang static const unsigned int hscif3_clk_a_pins[] = {
1637a0974d84SCong Dang /* HSCK3_A */
1638a0974d84SCong Dang RCAR_GP_PIN(1, 25),
1639a0974d84SCong Dang };
1640a0974d84SCong Dang static const unsigned int hscif3_clk_a_mux[] = {
1641a0974d84SCong Dang HSCK3_A_MARK,
1642a0974d84SCong Dang };
1643a0974d84SCong Dang static const unsigned int hscif3_ctrl_a_pins[] = {
1644a0974d84SCong Dang /* HRTS3_N_A, HCTS3_N_A */
1645a0974d84SCong Dang RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 27),
1646a0974d84SCong Dang };
1647a0974d84SCong Dang static const unsigned int hscif3_ctrl_a_mux[] = {
1648a0974d84SCong Dang HRTS3_N_A_MARK, HCTS3_N_A_MARK,
1649a0974d84SCong Dang };
1650a0974d84SCong Dang
1651a0974d84SCong Dang static const unsigned int hscif3_data_b_pins[] = {
1652a0974d84SCong Dang /* HRX3_B, HTX3_B */
1653a0974d84SCong Dang RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 0),
1654a0974d84SCong Dang };
1655a0974d84SCong Dang static const unsigned int hscif3_data_b_mux[] = {
1656a0974d84SCong Dang HRX3_B_MARK, HTX3_B_MARK,
1657a0974d84SCong Dang };
1658a0974d84SCong Dang static const unsigned int hscif3_clk_b_pins[] = {
1659a0974d84SCong Dang /* HSCK3_B */
1660a0974d84SCong Dang RCAR_GP_PIN(1, 3),
1661a0974d84SCong Dang };
1662a0974d84SCong Dang static const unsigned int hscif3_clk_b_mux[] = {
1663a0974d84SCong Dang HSCK3_B_MARK,
1664a0974d84SCong Dang };
1665a0974d84SCong Dang static const unsigned int hscif3_ctrl_b_pins[] = {
1666a0974d84SCong Dang /* HRTS3_N_B, HCTS3_N_B */
1667a0974d84SCong Dang RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 1),
1668a0974d84SCong Dang };
1669a0974d84SCong Dang static const unsigned int hscif3_ctrl_b_mux[] = {
1670a0974d84SCong Dang HRTS3_N_B_MARK, HCTS3_N_B_MARK,
1671a0974d84SCong Dang };
1672a0974d84SCong Dang
16732a9d0273SCong Dang /* - I2C0 ------------------------------------------------------------------- */
16742a9d0273SCong Dang static const unsigned int i2c0_pins[] = {
16752a9d0273SCong Dang /* SDA0, SCL0 */
16762a9d0273SCong Dang RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 0),
16772a9d0273SCong Dang };
16782a9d0273SCong Dang static const unsigned int i2c0_mux[] = {
16792a9d0273SCong Dang SDA0_MARK, SCL0_MARK,
16802a9d0273SCong Dang };
16812a9d0273SCong Dang
16822a9d0273SCong Dang /* - I2C1 ------------------------------------------------------------------- */
16832a9d0273SCong Dang static const unsigned int i2c1_pins[] = {
16842a9d0273SCong Dang /* SDA1, SCL1 */
16852a9d0273SCong Dang RCAR_GP_PIN(4, 3), RCAR_GP_PIN(4, 2),
16862a9d0273SCong Dang };
16872a9d0273SCong Dang static const unsigned int i2c1_mux[] = {
16882a9d0273SCong Dang SDA1_MARK, SCL1_MARK,
16892a9d0273SCong Dang };
16902a9d0273SCong Dang
16912a9d0273SCong Dang /* - I2C2 ------------------------------------------------------------------- */
16922a9d0273SCong Dang static const unsigned int i2c2_pins[] = {
16932a9d0273SCong Dang /* SDA2, SCL2 */
16942a9d0273SCong Dang RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 4),
16952a9d0273SCong Dang };
16962a9d0273SCong Dang static const unsigned int i2c2_mux[] = {
16972a9d0273SCong Dang SDA2_MARK, SCL2_MARK,
16982a9d0273SCong Dang };
16992a9d0273SCong Dang
17002a9d0273SCong Dang /* - I2C3 ------------------------------------------------------------------- */
17012a9d0273SCong Dang static const unsigned int i2c3_pins[] = {
17022a9d0273SCong Dang /* SDA3, SCL3 */
17032a9d0273SCong Dang RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 6),
17042a9d0273SCong Dang };
17052a9d0273SCong Dang static const unsigned int i2c3_mux[] = {
17062a9d0273SCong Dang SDA3_MARK, SCL3_MARK,
17072a9d0273SCong Dang };
17082a9d0273SCong Dang
170921fc4d19SGeert Uytterhoeven /* - INTC-EX ---------------------------------------------------------------- */
171021fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq0_a_pins[] = {
171121fc4d19SGeert Uytterhoeven /* IRQ0_A */
171221fc4d19SGeert Uytterhoeven RCAR_GP_PIN(0, 6),
171321fc4d19SGeert Uytterhoeven };
171421fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq0_a_mux[] = {
171521fc4d19SGeert Uytterhoeven IRQ0_A_MARK,
171621fc4d19SGeert Uytterhoeven };
171721fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq0_b_pins[] = {
171821fc4d19SGeert Uytterhoeven /* IRQ0_B */
171921fc4d19SGeert Uytterhoeven RCAR_GP_PIN(1, 20),
172021fc4d19SGeert Uytterhoeven };
172121fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq0_b_mux[] = {
172221fc4d19SGeert Uytterhoeven IRQ0_B_MARK,
172321fc4d19SGeert Uytterhoeven };
172421fc4d19SGeert Uytterhoeven
172521fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq1_a_pins[] = {
172621fc4d19SGeert Uytterhoeven /* IRQ1_A */
172721fc4d19SGeert Uytterhoeven RCAR_GP_PIN(0, 5),
172821fc4d19SGeert Uytterhoeven };
172921fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq1_a_mux[] = {
173021fc4d19SGeert Uytterhoeven IRQ1_A_MARK,
173121fc4d19SGeert Uytterhoeven };
173221fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq1_b_pins[] = {
173321fc4d19SGeert Uytterhoeven /* IRQ1_B */
173421fc4d19SGeert Uytterhoeven RCAR_GP_PIN(1, 21),
173521fc4d19SGeert Uytterhoeven };
173621fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq1_b_mux[] = {
173721fc4d19SGeert Uytterhoeven IRQ1_B_MARK,
173821fc4d19SGeert Uytterhoeven };
173921fc4d19SGeert Uytterhoeven
174021fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq2_a_pins[] = {
174121fc4d19SGeert Uytterhoeven /* IRQ2_A */
174221fc4d19SGeert Uytterhoeven RCAR_GP_PIN(0, 4),
174321fc4d19SGeert Uytterhoeven };
174421fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq2_a_mux[] = {
174521fc4d19SGeert Uytterhoeven IRQ2_A_MARK,
174621fc4d19SGeert Uytterhoeven };
174721fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq2_b_pins[] = {
174821fc4d19SGeert Uytterhoeven /* IRQ2_B */
174921fc4d19SGeert Uytterhoeven RCAR_GP_PIN(0, 13),
175021fc4d19SGeert Uytterhoeven };
175121fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq2_b_mux[] = {
175221fc4d19SGeert Uytterhoeven IRQ2_B_MARK,
175321fc4d19SGeert Uytterhoeven };
175421fc4d19SGeert Uytterhoeven
175521fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq3_a_pins[] = {
175621fc4d19SGeert Uytterhoeven /* IRQ3_A */
175721fc4d19SGeert Uytterhoeven RCAR_GP_PIN(0, 3),
175821fc4d19SGeert Uytterhoeven };
175921fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq3_a_mux[] = {
176021fc4d19SGeert Uytterhoeven IRQ3_A_MARK,
176121fc4d19SGeert Uytterhoeven };
176221fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq3_b_pins[] = {
176321fc4d19SGeert Uytterhoeven /* IRQ3_B */
176421fc4d19SGeert Uytterhoeven RCAR_GP_PIN(1, 23),
176521fc4d19SGeert Uytterhoeven };
176621fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq3_b_mux[] = {
176721fc4d19SGeert Uytterhoeven IRQ3_B_MARK,
176821fc4d19SGeert Uytterhoeven };
176921fc4d19SGeert Uytterhoeven
177021fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq4_a_pins[] = {
177121fc4d19SGeert Uytterhoeven /* IRQ4_A */
177221fc4d19SGeert Uytterhoeven RCAR_GP_PIN(1, 17),
177321fc4d19SGeert Uytterhoeven };
177421fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq4_a_mux[] = {
177521fc4d19SGeert Uytterhoeven IRQ4_A_MARK,
177621fc4d19SGeert Uytterhoeven };
177721fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq4_b_pins[] = {
177821fc4d19SGeert Uytterhoeven /* IRQ4_B */
177921fc4d19SGeert Uytterhoeven RCAR_GP_PIN(2, 3),
178021fc4d19SGeert Uytterhoeven };
178121fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq4_b_mux[] = {
178221fc4d19SGeert Uytterhoeven IRQ4_B_MARK,
178321fc4d19SGeert Uytterhoeven };
178421fc4d19SGeert Uytterhoeven
178521fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq5_pins[] = {
178621fc4d19SGeert Uytterhoeven /* IRQ5 */
178721fc4d19SGeert Uytterhoeven RCAR_GP_PIN(2, 2),
178821fc4d19SGeert Uytterhoeven };
178921fc4d19SGeert Uytterhoeven static const unsigned int intc_ex_irq5_mux[] = {
179021fc4d19SGeert Uytterhoeven IRQ5_MARK,
179121fc4d19SGeert Uytterhoeven };
179221fc4d19SGeert Uytterhoeven
17934ab1ee6fSCong Dang /* - MMC -------------------------------------------------------------------- */
17944ab1ee6fSCong Dang static const unsigned int mmc_data_pins[] = {
17954ab1ee6fSCong Dang /* MMC_SD_D[0:3], MMC_D[4:7] */
17964ab1ee6fSCong Dang RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
17974ab1ee6fSCong Dang RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 5),
17984ab1ee6fSCong Dang RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 6),
17994ab1ee6fSCong Dang RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
18004ab1ee6fSCong Dang };
18014ab1ee6fSCong Dang static const unsigned int mmc_data_mux[] = {
18024ab1ee6fSCong Dang MMC_SD_D0_MARK, MMC_SD_D1_MARK,
18034ab1ee6fSCong Dang MMC_SD_D2_MARK, MMC_SD_D3_MARK,
18044ab1ee6fSCong Dang MMC_D4_MARK, MMC_D5_MARK,
18054ab1ee6fSCong Dang MMC_D6_MARK, MMC_D7_MARK,
18064ab1ee6fSCong Dang };
18074ab1ee6fSCong Dang static const unsigned int mmc_ctrl_pins[] = {
18084ab1ee6fSCong Dang /* MMC_SD_CLK, MMC_SD_CMD */
18094ab1ee6fSCong Dang RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 10),
18104ab1ee6fSCong Dang };
18114ab1ee6fSCong Dang static const unsigned int mmc_ctrl_mux[] = {
18124ab1ee6fSCong Dang MMC_SD_CLK_MARK, MMC_SD_CMD_MARK,
18134ab1ee6fSCong Dang };
18144ab1ee6fSCong Dang static const unsigned int mmc_cd_pins[] = {
18154ab1ee6fSCong Dang /* SD_CD */
18164ab1ee6fSCong Dang RCAR_GP_PIN(3, 11),
18174ab1ee6fSCong Dang };
18184ab1ee6fSCong Dang static const unsigned int mmc_cd_mux[] = {
18194ab1ee6fSCong Dang SD_CD_MARK,
18204ab1ee6fSCong Dang };
18214ab1ee6fSCong Dang static const unsigned int mmc_wp_pins[] = {
18224ab1ee6fSCong Dang /* SD_WP */
18234ab1ee6fSCong Dang RCAR_GP_PIN(3, 12),
18244ab1ee6fSCong Dang };
18254ab1ee6fSCong Dang static const unsigned int mmc_wp_mux[] = {
18264ab1ee6fSCong Dang SD_WP_MARK,
18274ab1ee6fSCong Dang };
18284ab1ee6fSCong Dang static const unsigned int mmc_ds_pins[] = {
18294ab1ee6fSCong Dang /* MMC_DS */
18304ab1ee6fSCong Dang RCAR_GP_PIN(3, 4),
18314ab1ee6fSCong Dang };
18324ab1ee6fSCong Dang static const unsigned int mmc_ds_mux[] = {
18334ab1ee6fSCong Dang MMC_DS_MARK,
18344ab1ee6fSCong Dang };
18354ab1ee6fSCong Dang
1836b33c4b4bSCong Dang /* - MSIOF0 ----------------------------------------------------------------- */
1837b33c4b4bSCong Dang static const unsigned int msiof0_clk_pins[] = {
1838b33c4b4bSCong Dang /* MSIOF0_SCK */
1839b33c4b4bSCong Dang RCAR_GP_PIN(1, 10),
1840b33c4b4bSCong Dang };
1841b33c4b4bSCong Dang static const unsigned int msiof0_clk_mux[] = {
1842b33c4b4bSCong Dang MSIOF0_SCK_MARK,
1843b33c4b4bSCong Dang };
1844b33c4b4bSCong Dang static const unsigned int msiof0_sync_pins[] = {
1845b33c4b4bSCong Dang /* MSIOF0_SYNC */
1846b33c4b4bSCong Dang RCAR_GP_PIN(1, 8),
1847b33c4b4bSCong Dang };
1848b33c4b4bSCong Dang static const unsigned int msiof0_sync_mux[] = {
1849b33c4b4bSCong Dang MSIOF0_SYNC_MARK,
1850b33c4b4bSCong Dang };
1851b33c4b4bSCong Dang static const unsigned int msiof0_ss1_pins[] = {
1852b33c4b4bSCong Dang /* MSIOF0_SS1 */
1853b33c4b4bSCong Dang RCAR_GP_PIN(1, 7),
1854b33c4b4bSCong Dang };
1855b33c4b4bSCong Dang static const unsigned int msiof0_ss1_mux[] = {
1856b33c4b4bSCong Dang MSIOF0_SS1_MARK,
1857b33c4b4bSCong Dang };
1858b33c4b4bSCong Dang static const unsigned int msiof0_ss2_pins[] = {
1859b33c4b4bSCong Dang /* MSIOF0_SS2 */
1860b33c4b4bSCong Dang RCAR_GP_PIN(1, 6),
1861b33c4b4bSCong Dang };
1862b33c4b4bSCong Dang static const unsigned int msiof0_ss2_mux[] = {
1863b33c4b4bSCong Dang MSIOF0_SS2_MARK,
1864b33c4b4bSCong Dang };
1865b33c4b4bSCong Dang static const unsigned int msiof0_txd_pins[] = {
1866b33c4b4bSCong Dang /* MSIOF0_TXD */
1867b33c4b4bSCong Dang RCAR_GP_PIN(1, 9),
1868b33c4b4bSCong Dang };
1869b33c4b4bSCong Dang static const unsigned int msiof0_txd_mux[] = {
1870b33c4b4bSCong Dang MSIOF0_TXD_MARK,
1871b33c4b4bSCong Dang };
1872b33c4b4bSCong Dang static const unsigned int msiof0_rxd_pins[] = {
1873b33c4b4bSCong Dang /* MSIOF0_RXD */
1874b33c4b4bSCong Dang RCAR_GP_PIN(1, 11),
1875b33c4b4bSCong Dang };
1876b33c4b4bSCong Dang static const unsigned int msiof0_rxd_mux[] = {
1877b33c4b4bSCong Dang MSIOF0_RXD_MARK,
1878b33c4b4bSCong Dang };
1879b33c4b4bSCong Dang
1880b33c4b4bSCong Dang /* - MSIOF1 ----------------------------------------------------------------- */
1881b33c4b4bSCong Dang static const unsigned int msiof1_clk_pins[] = {
1882b33c4b4bSCong Dang /* MSIOF1_SCK */
1883b33c4b4bSCong Dang RCAR_GP_PIN(1, 3),
1884b33c4b4bSCong Dang };
1885b33c4b4bSCong Dang static const unsigned int msiof1_clk_mux[] = {
1886b33c4b4bSCong Dang MSIOF1_SCK_MARK,
1887b33c4b4bSCong Dang };
1888b33c4b4bSCong Dang static const unsigned int msiof1_sync_pins[] = {
1889b33c4b4bSCong Dang /* MSIOF1_SYNC */
1890b33c4b4bSCong Dang RCAR_GP_PIN(1, 2),
1891b33c4b4bSCong Dang };
1892b33c4b4bSCong Dang static const unsigned int msiof1_sync_mux[] = {
1893b33c4b4bSCong Dang MSIOF1_SYNC_MARK,
1894b33c4b4bSCong Dang };
1895b33c4b4bSCong Dang static const unsigned int msiof1_ss1_pins[] = {
1896b33c4b4bSCong Dang /* MSIOF1_SS1 */
1897b33c4b4bSCong Dang RCAR_GP_PIN(1, 1),
1898b33c4b4bSCong Dang };
1899b33c4b4bSCong Dang static const unsigned int msiof1_ss1_mux[] = {
1900b33c4b4bSCong Dang MSIOF1_SS1_MARK,
1901b33c4b4bSCong Dang };
1902b33c4b4bSCong Dang static const unsigned int msiof1_ss2_pins[] = {
1903b33c4b4bSCong Dang /* MSIOF1_SS2 */
1904b33c4b4bSCong Dang RCAR_GP_PIN(1, 0),
1905b33c4b4bSCong Dang };
1906b33c4b4bSCong Dang static const unsigned int msiof1_ss2_mux[] = {
1907b33c4b4bSCong Dang MSIOF1_SS2_MARK,
1908b33c4b4bSCong Dang };
1909b33c4b4bSCong Dang static const unsigned int msiof1_txd_pins[] = {
1910b33c4b4bSCong Dang /* MSIOF1_TXD */
1911b33c4b4bSCong Dang RCAR_GP_PIN(1, 4),
1912b33c4b4bSCong Dang };
1913b33c4b4bSCong Dang static const unsigned int msiof1_txd_mux[] = {
1914b33c4b4bSCong Dang MSIOF1_TXD_MARK,
1915b33c4b4bSCong Dang };
1916b33c4b4bSCong Dang static const unsigned int msiof1_rxd_pins[] = {
1917b33c4b4bSCong Dang /* MSIOF1_RXD */
1918b33c4b4bSCong Dang RCAR_GP_PIN(1, 5),
1919b33c4b4bSCong Dang };
1920b33c4b4bSCong Dang static const unsigned int msiof1_rxd_mux[] = {
1921b33c4b4bSCong Dang MSIOF1_RXD_MARK,
1922b33c4b4bSCong Dang };
1923b33c4b4bSCong Dang
1924b33c4b4bSCong Dang /* - MSIOF2 ----------------------------------------------------------------- */
1925b33c4b4bSCong Dang static const unsigned int msiof2_clk_pins[] = {
1926b33c4b4bSCong Dang /* MSIOF2_SCK */
1927b33c4b4bSCong Dang RCAR_GP_PIN(0, 17),
1928b33c4b4bSCong Dang };
1929b33c4b4bSCong Dang static const unsigned int msiof2_clk_mux[] = {
1930b33c4b4bSCong Dang MSIOF2_SCK_MARK,
1931b33c4b4bSCong Dang };
1932b33c4b4bSCong Dang static const unsigned int msiof2_sync_pins[] = {
1933b33c4b4bSCong Dang /* MSIOF2_SYNC */
1934b33c4b4bSCong Dang RCAR_GP_PIN(0, 15),
1935b33c4b4bSCong Dang };
1936b33c4b4bSCong Dang static const unsigned int msiof2_sync_mux[] = {
1937b33c4b4bSCong Dang MSIOF2_SYNC_MARK,
1938b33c4b4bSCong Dang };
1939b33c4b4bSCong Dang static const unsigned int msiof2_ss1_pins[] = {
1940b33c4b4bSCong Dang /* MSIOF2_SS1 */
1941b33c4b4bSCong Dang RCAR_GP_PIN(0, 14),
1942b33c4b4bSCong Dang };
1943b33c4b4bSCong Dang static const unsigned int msiof2_ss1_mux[] = {
1944b33c4b4bSCong Dang MSIOF2_SS1_MARK,
1945b33c4b4bSCong Dang };
1946b33c4b4bSCong Dang static const unsigned int msiof2_ss2_pins[] = {
1947b33c4b4bSCong Dang /* MSIOF2_SS2 */
1948b33c4b4bSCong Dang RCAR_GP_PIN(0, 13),
1949b33c4b4bSCong Dang };
1950b33c4b4bSCong Dang static const unsigned int msiof2_ss2_mux[] = {
1951b33c4b4bSCong Dang MSIOF2_SS2_MARK,
1952b33c4b4bSCong Dang };
1953b33c4b4bSCong Dang static const unsigned int msiof2_txd_pins[] = {
1954b33c4b4bSCong Dang /* MSIOF2_TXD */
1955b33c4b4bSCong Dang RCAR_GP_PIN(0, 16),
1956b33c4b4bSCong Dang };
1957b33c4b4bSCong Dang static const unsigned int msiof2_txd_mux[] = {
1958b33c4b4bSCong Dang MSIOF2_TXD_MARK,
1959b33c4b4bSCong Dang };
1960b33c4b4bSCong Dang static const unsigned int msiof2_rxd_pins[] = {
1961b33c4b4bSCong Dang /* MSIOF2_RXD */
1962b33c4b4bSCong Dang RCAR_GP_PIN(0, 18),
1963b33c4b4bSCong Dang };
1964b33c4b4bSCong Dang static const unsigned int msiof2_rxd_mux[] = {
1965b33c4b4bSCong Dang MSIOF2_RXD_MARK,
1966b33c4b4bSCong Dang };
1967b33c4b4bSCong Dang
1968b33c4b4bSCong Dang /* - MSIOF3 ----------------------------------------------------------------- */
1969b33c4b4bSCong Dang static const unsigned int msiof3_clk_pins[] = {
1970b33c4b4bSCong Dang /* MSIOF3_SCK */
1971b33c4b4bSCong Dang RCAR_GP_PIN(0, 3),
1972b33c4b4bSCong Dang };
1973b33c4b4bSCong Dang static const unsigned int msiof3_clk_mux[] = {
1974b33c4b4bSCong Dang MSIOF3_SCK_MARK,
1975b33c4b4bSCong Dang };
1976b33c4b4bSCong Dang static const unsigned int msiof3_sync_pins[] = {
1977b33c4b4bSCong Dang /* MSIOF3_SYNC */
1978b33c4b4bSCong Dang RCAR_GP_PIN(0, 6),
1979b33c4b4bSCong Dang };
1980b33c4b4bSCong Dang static const unsigned int msiof3_sync_mux[] = {
1981b33c4b4bSCong Dang MSIOF3_SYNC_MARK,
1982b33c4b4bSCong Dang };
1983b33c4b4bSCong Dang static const unsigned int msiof3_ss1_pins[] = {
1984b33c4b4bSCong Dang /* MSIOF3_SS1 */
1985b33c4b4bSCong Dang RCAR_GP_PIN(0, 1),
1986b33c4b4bSCong Dang };
1987b33c4b4bSCong Dang static const unsigned int msiof3_ss1_mux[] = {
1988b33c4b4bSCong Dang MSIOF3_SS1_MARK,
1989b33c4b4bSCong Dang };
1990b33c4b4bSCong Dang static const unsigned int msiof3_ss2_pins[] = {
1991b33c4b4bSCong Dang /* MSIOF3_SS2 */
1992b33c4b4bSCong Dang RCAR_GP_PIN(0, 2),
1993b33c4b4bSCong Dang };
1994b33c4b4bSCong Dang static const unsigned int msiof3_ss2_mux[] = {
1995b33c4b4bSCong Dang MSIOF3_SS2_MARK,
1996b33c4b4bSCong Dang };
1997b33c4b4bSCong Dang static const unsigned int msiof3_txd_pins[] = {
1998b33c4b4bSCong Dang /* MSIOF3_TXD */
1999b33c4b4bSCong Dang RCAR_GP_PIN(0, 4),
2000b33c4b4bSCong Dang };
2001b33c4b4bSCong Dang static const unsigned int msiof3_txd_mux[] = {
2002b33c4b4bSCong Dang MSIOF3_TXD_MARK,
2003b33c4b4bSCong Dang };
2004b33c4b4bSCong Dang static const unsigned int msiof3_rxd_pins[] = {
2005b33c4b4bSCong Dang /* MSIOF3_RXD */
2006b33c4b4bSCong Dang RCAR_GP_PIN(0, 5),
2007b33c4b4bSCong Dang };
2008b33c4b4bSCong Dang static const unsigned int msiof3_rxd_mux[] = {
2009b33c4b4bSCong Dang MSIOF3_RXD_MARK,
2010b33c4b4bSCong Dang };
2011b33c4b4bSCong Dang
2012b33c4b4bSCong Dang /* - MSIOF4 ----------------------------------------------------------------- */
2013b33c4b4bSCong Dang static const unsigned int msiof4_clk_pins[] = {
2014b33c4b4bSCong Dang /* MSIOF4_SCK */
2015b33c4b4bSCong Dang RCAR_GP_PIN(1, 25),
2016b33c4b4bSCong Dang };
2017b33c4b4bSCong Dang static const unsigned int msiof4_clk_mux[] = {
2018b33c4b4bSCong Dang MSIOF4_SCK_MARK,
2019b33c4b4bSCong Dang };
2020b33c4b4bSCong Dang static const unsigned int msiof4_sync_pins[] = {
2021b33c4b4bSCong Dang /* MSIOF4_SYNC */
2022b33c4b4bSCong Dang RCAR_GP_PIN(1, 28),
2023b33c4b4bSCong Dang };
2024b33c4b4bSCong Dang static const unsigned int msiof4_sync_mux[] = {
2025b33c4b4bSCong Dang MSIOF4_SYNC_MARK,
2026b33c4b4bSCong Dang };
2027b33c4b4bSCong Dang static const unsigned int msiof4_ss1_pins[] = {
2028b33c4b4bSCong Dang /* MSIOF4_SS1 */
2029b33c4b4bSCong Dang RCAR_GP_PIN(1, 23),
2030b33c4b4bSCong Dang };
2031b33c4b4bSCong Dang static const unsigned int msiof4_ss1_mux[] = {
2032b33c4b4bSCong Dang MSIOF4_SS1_MARK,
2033b33c4b4bSCong Dang };
2034b33c4b4bSCong Dang static const unsigned int msiof4_ss2_pins[] = {
2035b33c4b4bSCong Dang /* MSIOF4_SS2 */
2036b33c4b4bSCong Dang RCAR_GP_PIN(1, 24),
2037b33c4b4bSCong Dang };
2038b33c4b4bSCong Dang static const unsigned int msiof4_ss2_mux[] = {
2039b33c4b4bSCong Dang MSIOF4_SS2_MARK,
2040b33c4b4bSCong Dang };
2041b33c4b4bSCong Dang static const unsigned int msiof4_txd_pins[] = {
2042b33c4b4bSCong Dang /* MSIOF4_TXD */
2043b33c4b4bSCong Dang RCAR_GP_PIN(1, 26),
2044b33c4b4bSCong Dang };
2045b33c4b4bSCong Dang static const unsigned int msiof4_txd_mux[] = {
2046b33c4b4bSCong Dang MSIOF4_TXD_MARK,
2047b33c4b4bSCong Dang };
2048b33c4b4bSCong Dang static const unsigned int msiof4_rxd_pins[] = {
2049b33c4b4bSCong Dang /* MSIOF4_RXD */
2050b33c4b4bSCong Dang RCAR_GP_PIN(1, 27),
2051b33c4b4bSCong Dang };
2052b33c4b4bSCong Dang static const unsigned int msiof4_rxd_mux[] = {
2053b33c4b4bSCong Dang MSIOF4_RXD_MARK,
2054b33c4b4bSCong Dang };
2055b33c4b4bSCong Dang
2056b33c4b4bSCong Dang /* - MSIOF5 ----------------------------------------------------------------- */
2057b33c4b4bSCong Dang static const unsigned int msiof5_clk_pins[] = {
2058b33c4b4bSCong Dang /* MSIOF5_SCK */
2059b33c4b4bSCong Dang RCAR_GP_PIN(0, 11),
2060b33c4b4bSCong Dang };
2061b33c4b4bSCong Dang static const unsigned int msiof5_clk_mux[] = {
2062b33c4b4bSCong Dang MSIOF5_SCK_MARK,
2063b33c4b4bSCong Dang };
2064b33c4b4bSCong Dang static const unsigned int msiof5_sync_pins[] = {
2065b33c4b4bSCong Dang /* MSIOF5_SYNC */
2066b33c4b4bSCong Dang RCAR_GP_PIN(0, 9),
2067b33c4b4bSCong Dang };
2068b33c4b4bSCong Dang static const unsigned int msiof5_sync_mux[] = {
2069b33c4b4bSCong Dang MSIOF5_SYNC_MARK,
2070b33c4b4bSCong Dang };
2071b33c4b4bSCong Dang static const unsigned int msiof5_ss1_pins[] = {
2072b33c4b4bSCong Dang /* MSIOF5_SS1 */
2073b33c4b4bSCong Dang RCAR_GP_PIN(0, 8),
2074b33c4b4bSCong Dang };
2075b33c4b4bSCong Dang static const unsigned int msiof5_ss1_mux[] = {
2076b33c4b4bSCong Dang MSIOF5_SS1_MARK,
2077b33c4b4bSCong Dang };
2078b33c4b4bSCong Dang static const unsigned int msiof5_ss2_pins[] = {
2079b33c4b4bSCong Dang /* MSIOF5_SS2 */
2080b33c4b4bSCong Dang RCAR_GP_PIN(0, 7),
2081b33c4b4bSCong Dang };
2082b33c4b4bSCong Dang static const unsigned int msiof5_ss2_mux[] = {
2083b33c4b4bSCong Dang MSIOF5_SS2_MARK,
2084b33c4b4bSCong Dang };
2085b33c4b4bSCong Dang static const unsigned int msiof5_txd_pins[] = {
2086b33c4b4bSCong Dang /* MSIOF5_TXD */
2087b33c4b4bSCong Dang RCAR_GP_PIN(0, 10),
2088b33c4b4bSCong Dang };
2089b33c4b4bSCong Dang static const unsigned int msiof5_txd_mux[] = {
2090b33c4b4bSCong Dang MSIOF5_TXD_MARK,
2091b33c4b4bSCong Dang };
2092b33c4b4bSCong Dang static const unsigned int msiof5_rxd_pins[] = {
2093b33c4b4bSCong Dang /* MSIOF5_RXD */
2094b33c4b4bSCong Dang RCAR_GP_PIN(0, 12),
2095b33c4b4bSCong Dang };
2096b33c4b4bSCong Dang static const unsigned int msiof5_rxd_mux[] = {
2097b33c4b4bSCong Dang MSIOF5_RXD_MARK,
2098b33c4b4bSCong Dang };
2099b33c4b4bSCong Dang
21001604b978SCong Dang /* - PCIE ------------------------------------------------------------------- */
21011604b978SCong Dang static const unsigned int pcie0_clkreq_n_pins[] = {
21021604b978SCong Dang /* PCIE0_CLKREQ_N */
21031604b978SCong Dang RCAR_GP_PIN(4, 21),
21041604b978SCong Dang };
21051604b978SCong Dang
21061604b978SCong Dang static const unsigned int pcie0_clkreq_n_mux[] = {
21071604b978SCong Dang PCIE0_CLKREQ_N_MARK,
21081604b978SCong Dang };
21091604b978SCong Dang
2110*71062e52SGeert Uytterhoeven /* - PWM0 --------------------------------------------------------------------- */
21114759b702SCong Dang static const unsigned int pwm0_a_pins[] = {
21124759b702SCong Dang /* PWM0_A */
21134759b702SCong Dang RCAR_GP_PIN(1, 15),
21144759b702SCong Dang };
21154759b702SCong Dang static const unsigned int pwm0_a_mux[] = {
21164759b702SCong Dang PWM0_A_MARK,
21174759b702SCong Dang };
21184759b702SCong Dang
21194759b702SCong Dang static const unsigned int pwm0_b_pins[] = {
21204759b702SCong Dang /* PWM0_B */
21214759b702SCong Dang RCAR_GP_PIN(1, 14),
21224759b702SCong Dang };
21234759b702SCong Dang static const unsigned int pwm0_b_mux[] = {
21244759b702SCong Dang PWM0_B_MARK,
21254759b702SCong Dang };
21264759b702SCong Dang
2127*71062e52SGeert Uytterhoeven /* - PWM1 --------------------------------------------------------------------- */
21284759b702SCong Dang static const unsigned int pwm1_a_pins[] = {
21294759b702SCong Dang /* PWM1_A */
21304759b702SCong Dang RCAR_GP_PIN(3, 13),
21314759b702SCong Dang };
21324759b702SCong Dang static const unsigned int pwm1_a_mux[] = {
21334759b702SCong Dang PWM1_A_MARK,
21344759b702SCong Dang };
21354759b702SCong Dang
21364759b702SCong Dang static const unsigned int pwm1_b_pins[] = {
21374759b702SCong Dang /* PWM1_B */
21384759b702SCong Dang RCAR_GP_PIN(2, 13),
21394759b702SCong Dang };
21404759b702SCong Dang static const unsigned int pwm1_b_mux[] = {
21414759b702SCong Dang PWM1_B_MARK,
21424759b702SCong Dang };
21434759b702SCong Dang
21444759b702SCong Dang static const unsigned int pwm1_c_pins[] = {
21454759b702SCong Dang /* PWM1_C */
21464759b702SCong Dang RCAR_GP_PIN(2, 17),
21474759b702SCong Dang };
21484759b702SCong Dang static const unsigned int pwm1_c_mux[] = {
21494759b702SCong Dang PWM1_C_MARK,
21504759b702SCong Dang };
21514759b702SCong Dang
2152*71062e52SGeert Uytterhoeven /* - PWM2 --------------------------------------------------------------------- */
21534759b702SCong Dang static const unsigned int pwm2_a_pins[] = {
21544759b702SCong Dang /* PWM2_A */
21554759b702SCong Dang RCAR_GP_PIN(3, 14),
21564759b702SCong Dang };
21574759b702SCong Dang static const unsigned int pwm2_a_mux[] = {
21584759b702SCong Dang PWM2_A_MARK,
21594759b702SCong Dang };
21604759b702SCong Dang
21614759b702SCong Dang static const unsigned int pwm2_b_pins[] = {
21624759b702SCong Dang /* PWM2_B */
21634759b702SCong Dang RCAR_GP_PIN(2, 14),
21644759b702SCong Dang };
21654759b702SCong Dang static const unsigned int pwm2_b_mux[] = {
21664759b702SCong Dang PWM2_B_MARK,
21674759b702SCong Dang };
21684759b702SCong Dang
21694759b702SCong Dang static const unsigned int pwm2_c_pins[] = {
21704759b702SCong Dang /* PWM2_C */
21714759b702SCong Dang RCAR_GP_PIN(2, 19),
21724759b702SCong Dang };
21734759b702SCong Dang static const unsigned int pwm2_c_mux[] = {
21744759b702SCong Dang PWM2_C_MARK,
21754759b702SCong Dang };
21764759b702SCong Dang
2177*71062e52SGeert Uytterhoeven /* - PWM3 --------------------------------------------------------------------- */
21784759b702SCong Dang static const unsigned int pwm3_a_pins[] = {
21794759b702SCong Dang /* PWM3_A */
21804759b702SCong Dang RCAR_GP_PIN(4, 14),
21814759b702SCong Dang };
21824759b702SCong Dang static const unsigned int pwm3_a_mux[] = {
21834759b702SCong Dang PWM3_A_MARK,
21844759b702SCong Dang };
21854759b702SCong Dang
21864759b702SCong Dang static const unsigned int pwm3_b_pins[] = {
21874759b702SCong Dang /* PWM3_B */
21884759b702SCong Dang RCAR_GP_PIN(2, 15),
21894759b702SCong Dang };
21904759b702SCong Dang static const unsigned int pwm3_b_mux[] = {
21914759b702SCong Dang PWM3_B_MARK,
21924759b702SCong Dang };
21934759b702SCong Dang
21944759b702SCong Dang static const unsigned int pwm3_c_pins[] = {
21954759b702SCong Dang /* PWM3_C */
21964759b702SCong Dang RCAR_GP_PIN(1, 22),
21974759b702SCong Dang };
21984759b702SCong Dang static const unsigned int pwm3_c_mux[] = {
21994759b702SCong Dang PWM3_C_MARK,
22004759b702SCong Dang };
22014759b702SCong Dang
22024759b702SCong Dang /* - PWM4 ------------------------------------------------------------------- */
22034759b702SCong Dang static const unsigned int pwm4_pins[] = {
22044759b702SCong Dang /* PWM4 */
22054759b702SCong Dang RCAR_GP_PIN(4, 15),
22064759b702SCong Dang };
22074759b702SCong Dang static const unsigned int pwm4_mux[] = {
22084759b702SCong Dang PWM4_MARK,
22094759b702SCong Dang };
22104759b702SCong Dang
2211e79da260SCong Dang /* - QSPI0 ------------------------------------------------------------------ */
2212e79da260SCong Dang static const unsigned int qspi0_ctrl_pins[] = {
2213e79da260SCong Dang /* SPCLK, SSL */
2214e79da260SCong Dang RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 15),
2215e79da260SCong Dang };
2216e79da260SCong Dang static const unsigned int qspi0_ctrl_mux[] = {
2217e79da260SCong Dang QSPI0_SPCLK_MARK, QSPI0_SSL_MARK,
2218e79da260SCong Dang };
2219e79da260SCong Dang static const unsigned int qspi0_data_pins[] = {
2220e79da260SCong Dang /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2221e79da260SCong Dang RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 18),
2222e79da260SCong Dang RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
2223e79da260SCong Dang };
2224e79da260SCong Dang static const unsigned int qspi0_data_mux[] = {
2225e79da260SCong Dang QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK,
2226e79da260SCong Dang QSPI0_IO2_MARK, QSPI0_IO3_MARK
2227e79da260SCong Dang };
2228e79da260SCong Dang
2229e79da260SCong Dang /* - QSPI1 ------------------------------------------------------------------ */
2230e79da260SCong Dang static const unsigned int qspi1_ctrl_pins[] = {
2231e79da260SCong Dang /* SPCLK, SSL */
2232e79da260SCong Dang RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 25),
2233e79da260SCong Dang };
2234e79da260SCong Dang static const unsigned int qspi1_ctrl_mux[] = {
2235e79da260SCong Dang QSPI1_SPCLK_MARK, QSPI1_SSL_MARK,
2236e79da260SCong Dang };
2237e79da260SCong Dang static const unsigned int qspi1_data_pins[] = {
2238e79da260SCong Dang /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2239e79da260SCong Dang RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 23),
2240e79da260SCong Dang RCAR_GP_PIN(3, 24), RCAR_GP_PIN(3, 26),
2241e79da260SCong Dang };
2242e79da260SCong Dang static const unsigned int qspi1_data_mux[] = {
2243e79da260SCong Dang QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK,
2244e79da260SCong Dang QSPI1_IO2_MARK, QSPI1_IO3_MARK
2245e79da260SCong Dang };
2246e79da260SCong Dang
2247bc56b11cSCong Dang /* - SCIF0 ------------------------------------------------------------------ */
2248bc56b11cSCong Dang static const unsigned int scif0_data_pins[] = {
2249bc56b11cSCong Dang /* RX0, TX0 */
2250bc56b11cSCong Dang RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 12),
2251bc56b11cSCong Dang };
2252bc56b11cSCong Dang static const unsigned int scif0_data_mux[] = {
2253bc56b11cSCong Dang RX0_MARK, TX0_MARK,
2254bc56b11cSCong Dang };
2255bc56b11cSCong Dang static const unsigned int scif0_clk_pins[] = {
2256bc56b11cSCong Dang /* SCK0 */
2257bc56b11cSCong Dang RCAR_GP_PIN(1, 15),
2258bc56b11cSCong Dang };
2259bc56b11cSCong Dang static const unsigned int scif0_clk_mux[] = {
2260bc56b11cSCong Dang SCK0_MARK,
2261bc56b11cSCong Dang };
2262bc56b11cSCong Dang static const unsigned int scif0_ctrl_pins[] = {
2263bc56b11cSCong Dang /* RTS0_N, CTS0_N */
2264bc56b11cSCong Dang RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
2265bc56b11cSCong Dang };
2266bc56b11cSCong Dang static const unsigned int scif0_ctrl_mux[] = {
2267bc56b11cSCong Dang RTS0_N_MARK, CTS0_N_MARK,
2268bc56b11cSCong Dang };
2269bc56b11cSCong Dang
2270*71062e52SGeert Uytterhoeven /* - SCIF1 -------------------------------------------------------------------- */
2271bc56b11cSCong Dang static const unsigned int scif1_data_a_pins[] = {
2272bc56b11cSCong Dang /* RX1_A, TX1_A */
2273bc56b11cSCong Dang RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
2274bc56b11cSCong Dang };
2275bc56b11cSCong Dang static const unsigned int scif1_data_a_mux[] = {
2276bc56b11cSCong Dang RX1_A_MARK, TX1_A_MARK,
2277bc56b11cSCong Dang };
2278bc56b11cSCong Dang static const unsigned int scif1_clk_a_pins[] = {
2279bc56b11cSCong Dang /* SCK1_A */
2280bc56b11cSCong Dang RCAR_GP_PIN(0, 18),
2281bc56b11cSCong Dang };
2282bc56b11cSCong Dang static const unsigned int scif1_clk_a_mux[] = {
2283bc56b11cSCong Dang SCK1_A_MARK,
2284bc56b11cSCong Dang };
2285bc56b11cSCong Dang static const unsigned int scif1_ctrl_a_pins[] = {
2286bc56b11cSCong Dang /* RTS1_N_A, CTS1_N_A */
2287bc56b11cSCong Dang RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
2288bc56b11cSCong Dang };
2289bc56b11cSCong Dang static const unsigned int scif1_ctrl_a_mux[] = {
2290bc56b11cSCong Dang RTS1_N_A_MARK, CTS1_N_A_MARK,
2291bc56b11cSCong Dang };
2292bc56b11cSCong Dang
2293bc56b11cSCong Dang static const unsigned int scif1_data_b_pins[] = {
2294bc56b11cSCong Dang /* RX1_B, TX1_B */
2295bc56b11cSCong Dang RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
2296bc56b11cSCong Dang };
2297bc56b11cSCong Dang static const unsigned int scif1_data_b_mux[] = {
2298bc56b11cSCong Dang RX1_B_MARK, TX1_B_MARK,
2299bc56b11cSCong Dang };
2300bc56b11cSCong Dang static const unsigned int scif1_clk_b_pins[] = {
2301bc56b11cSCong Dang /* SCK1_B */
2302bc56b11cSCong Dang RCAR_GP_PIN(1, 10),
2303bc56b11cSCong Dang };
2304bc56b11cSCong Dang static const unsigned int scif1_clk_b_mux[] = {
2305bc56b11cSCong Dang SCK1_B_MARK,
2306bc56b11cSCong Dang };
2307bc56b11cSCong Dang static const unsigned int scif1_ctrl_b_pins[] = {
2308bc56b11cSCong Dang /* RTS1_N_B, CTS1_N_B */
2309bc56b11cSCong Dang RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
2310bc56b11cSCong Dang };
2311bc56b11cSCong Dang static const unsigned int scif1_ctrl_b_mux[] = {
2312bc56b11cSCong Dang RTS1_N_B_MARK, CTS1_N_B_MARK,
2313bc56b11cSCong Dang };
2314bc56b11cSCong Dang
2315*71062e52SGeert Uytterhoeven /* - SCIF3 -------------------------------------------------------------------- */
2316bc56b11cSCong Dang static const unsigned int scif3_data_a_pins[] = {
2317bc56b11cSCong Dang /* RX3_A, TX3_A */
2318bc56b11cSCong Dang RCAR_GP_PIN(1, 27), RCAR_GP_PIN(1, 28),
2319bc56b11cSCong Dang };
2320bc56b11cSCong Dang static const unsigned int scif3_data_a_mux[] = {
2321bc56b11cSCong Dang RX3_A_MARK, TX3_A_MARK,
2322bc56b11cSCong Dang };
2323bc56b11cSCong Dang static const unsigned int scif3_clk_a_pins[] = {
2324bc56b11cSCong Dang /* SCK3_A */
2325bc56b11cSCong Dang RCAR_GP_PIN(1, 24),
2326bc56b11cSCong Dang };
2327bc56b11cSCong Dang static const unsigned int scif3_clk_a_mux[] = {
2328bc56b11cSCong Dang SCK3_A_MARK,
2329bc56b11cSCong Dang };
2330bc56b11cSCong Dang static const unsigned int scif3_ctrl_a_pins[] = {
2331bc56b11cSCong Dang /* RTS3_N_A, CTS3_N_A */
2332bc56b11cSCong Dang RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
2333bc56b11cSCong Dang };
2334bc56b11cSCong Dang static const unsigned int scif3_ctrl_a_mux[] = {
2335bc56b11cSCong Dang RTS3_N_A_MARK, CTS3_N_A_MARK,
2336bc56b11cSCong Dang };
2337bc56b11cSCong Dang
2338bc56b11cSCong Dang static const unsigned int scif3_data_b_pins[] = {
2339bc56b11cSCong Dang /* RX3_B, TX3_B */
2340bc56b11cSCong Dang RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 0),
2341bc56b11cSCong Dang };
2342bc56b11cSCong Dang static const unsigned int scif3_data_b_mux[] = {
2343bc56b11cSCong Dang RX3_B_MARK, TX3_B_MARK,
2344bc56b11cSCong Dang };
2345bc56b11cSCong Dang static const unsigned int scif3_clk_b_pins[] = {
2346bc56b11cSCong Dang /* SCK3_B */
2347bc56b11cSCong Dang RCAR_GP_PIN(1, 4),
2348bc56b11cSCong Dang };
2349bc56b11cSCong Dang static const unsigned int scif3_clk_b_mux[] = {
2350bc56b11cSCong Dang SCK3_B_MARK,
2351bc56b11cSCong Dang };
2352bc56b11cSCong Dang static const unsigned int scif3_ctrl_b_pins[] = {
2353bc56b11cSCong Dang /* RTS3_N_B, CTS3_N_B */
2354bc56b11cSCong Dang RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3),
2355bc56b11cSCong Dang };
2356bc56b11cSCong Dang static const unsigned int scif3_ctrl_b_mux[] = {
2357bc56b11cSCong Dang RTS3_N_B_MARK, CTS3_N_B_MARK,
2358bc56b11cSCong Dang };
2359bc56b11cSCong Dang
2360bc56b11cSCong Dang /* - SCIF4 ------------------------------------------------------------------ */
2361bc56b11cSCong Dang static const unsigned int scif4_data_pins[] = {
2362bc56b11cSCong Dang /* RX4, TX4 */
2363bc56b11cSCong Dang RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 12),
2364bc56b11cSCong Dang };
2365bc56b11cSCong Dang static const unsigned int scif4_data_mux[] = {
2366bc56b11cSCong Dang RX4_MARK, TX4_MARK,
2367bc56b11cSCong Dang };
2368bc56b11cSCong Dang static const unsigned int scif4_clk_pins[] = {
2369bc56b11cSCong Dang /* SCK4 */
2370bc56b11cSCong Dang RCAR_GP_PIN(4, 8),
2371bc56b11cSCong Dang };
2372bc56b11cSCong Dang static const unsigned int scif4_clk_mux[] = {
2373bc56b11cSCong Dang SCK4_MARK,
2374bc56b11cSCong Dang };
2375bc56b11cSCong Dang static const unsigned int scif4_ctrl_pins[] = {
2376bc56b11cSCong Dang /* RTS4_N, CTS4_N */
2377bc56b11cSCong Dang RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 9),
2378bc56b11cSCong Dang };
2379bc56b11cSCong Dang static const unsigned int scif4_ctrl_mux[] = {
2380bc56b11cSCong Dang RTS4_N_MARK, CTS4_N_MARK,
2381bc56b11cSCong Dang };
2382bc56b11cSCong Dang
2383fbaff036SCong Dang /* - SCIF Clock ------------------------------------------------------------- */
2384fbaff036SCong Dang static const unsigned int scif_clk_pins[] = {
2385fbaff036SCong Dang /* SCIF_CLK */
2386fbaff036SCong Dang RCAR_GP_PIN(1, 17),
2387fbaff036SCong Dang };
2388fbaff036SCong Dang static const unsigned int scif_clk_mux[] = {
2389fbaff036SCong Dang SCIF_CLK_MARK,
2390fbaff036SCong Dang };
2391fbaff036SCong Dang
2392fbaff036SCong Dang static const unsigned int scif_clk2_pins[] = {
2393fbaff036SCong Dang /* SCIF_CLK2 */
2394fbaff036SCong Dang RCAR_GP_PIN(4, 11),
2395fbaff036SCong Dang };
2396fbaff036SCong Dang static const unsigned int scif_clk2_mux[] = {
2397fbaff036SCong Dang SCIF_CLK2_MARK,
2398fbaff036SCong Dang };
2399fbaff036SCong Dang
240097191e53SCong Dang /* - SSI ------------------------------------------------- */
240197191e53SCong Dang static const unsigned int ssi_data_pins[] = {
240297191e53SCong Dang /* SSI_SD */
240397191e53SCong Dang RCAR_GP_PIN(1, 20),
240497191e53SCong Dang };
240597191e53SCong Dang static const unsigned int ssi_data_mux[] = {
240697191e53SCong Dang SSI_SD_MARK,
240797191e53SCong Dang };
240897191e53SCong Dang static const unsigned int ssi_ctrl_pins[] = {
240997191e53SCong Dang /* SSI_SCK, SSI_WS */
241097191e53SCong Dang RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
241197191e53SCong Dang };
241297191e53SCong Dang static const unsigned int ssi_ctrl_mux[] = {
241397191e53SCong Dang SSI_SCK_MARK, SSI_WS_MARK,
241497191e53SCong Dang };
241597191e53SCong Dang
2416*71062e52SGeert Uytterhoeven /* - TPU --------------------------------------------------------------------- */
24174759b702SCong Dang static const unsigned int tpu_to0_a_pins[] = {
24184759b702SCong Dang /* TPU0TO0_A */
24194759b702SCong Dang RCAR_GP_PIN(2, 8),
24204759b702SCong Dang };
24214759b702SCong Dang static const unsigned int tpu_to0_a_mux[] = {
24224759b702SCong Dang TPU0TO0_A_MARK,
24234759b702SCong Dang };
24244759b702SCong Dang static const unsigned int tpu_to1_a_pins[] = {
24254759b702SCong Dang /* TPU0TO1_A */
24264759b702SCong Dang RCAR_GP_PIN(2, 7),
24274759b702SCong Dang };
24284759b702SCong Dang static const unsigned int tpu_to1_a_mux[] = {
24294759b702SCong Dang TPU0TO1_A_MARK,
24304759b702SCong Dang };
24314759b702SCong Dang static const unsigned int tpu_to2_a_pins[] = {
24324759b702SCong Dang /* TPU0TO2_A */
24334759b702SCong Dang RCAR_GP_PIN(2, 12),
24344759b702SCong Dang };
24354759b702SCong Dang static const unsigned int tpu_to2_a_mux[] = {
24364759b702SCong Dang TPU0TO2_A_MARK,
24374759b702SCong Dang };
24384759b702SCong Dang static const unsigned int tpu_to3_a_pins[] = {
24394759b702SCong Dang /* TPU0TO3_A */
24404759b702SCong Dang RCAR_GP_PIN(2, 13),
24414759b702SCong Dang };
24424759b702SCong Dang static const unsigned int tpu_to3_a_mux[] = {
24434759b702SCong Dang TPU0TO3_A_MARK,
24444759b702SCong Dang };
24454759b702SCong Dang
24464759b702SCong Dang static const unsigned int tpu_to0_b_pins[] = {
24474759b702SCong Dang /* TPU0TO0_B */
24484759b702SCong Dang RCAR_GP_PIN(1, 25),
24494759b702SCong Dang };
24504759b702SCong Dang static const unsigned int tpu_to0_b_mux[] = {
24514759b702SCong Dang TPU0TO0_B_MARK,
24524759b702SCong Dang };
24534759b702SCong Dang static const unsigned int tpu_to1_b_pins[] = {
24544759b702SCong Dang /* TPU0TO1_B */
24554759b702SCong Dang RCAR_GP_PIN(1, 26),
24564759b702SCong Dang };
24574759b702SCong Dang static const unsigned int tpu_to1_b_mux[] = {
24584759b702SCong Dang TPU0TO1_B_MARK,
24594759b702SCong Dang };
24604759b702SCong Dang static const unsigned int tpu_to2_b_pins[] = {
24614759b702SCong Dang /* TPU0TO2_B */
24624759b702SCong Dang RCAR_GP_PIN(2, 0),
24634759b702SCong Dang };
24644759b702SCong Dang static const unsigned int tpu_to2_b_mux[] = {
24654759b702SCong Dang TPU0TO2_B_MARK,
24664759b702SCong Dang };
24674759b702SCong Dang static const unsigned int tpu_to3_b_pins[] = {
24684759b702SCong Dang /* TPU0TO3_B */
24694759b702SCong Dang RCAR_GP_PIN(2, 1),
24704759b702SCong Dang };
24714759b702SCong Dang static const unsigned int tpu_to3_b_mux[] = {
24724759b702SCong Dang TPU0TO3_B_MARK,
24734759b702SCong Dang };
24744759b702SCong Dang
247573f35ebbSCong Dang static const struct sh_pfc_pin_group pinmux_groups[] = {
247697191e53SCong Dang SH_PFC_PIN_GROUP(audio_clkin),
247797191e53SCong Dang SH_PFC_PIN_GROUP(audio_clkout),
247897191e53SCong Dang
247973f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_link),
248073f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_magic),
248173f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_phy_int),
248273f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_mdio),
24836d8fc3e4SGeert Uytterhoeven SH_PFC_PIN_GROUP(avb0_mii),
248473f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_rgmii),
248573f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_txcrefclk),
248673f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_avtp_pps),
248773f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_avtp_capture),
248873f35ebbSCong Dang SH_PFC_PIN_GROUP(avb0_avtp_match),
248973f35ebbSCong Dang
249073f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_link),
249173f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_magic),
249273f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_phy_int),
249373f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_mdio),
24946d8fc3e4SGeert Uytterhoeven SH_PFC_PIN_GROUP(avb1_mii),
249573f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_rgmii),
249673f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_txcrefclk),
249773f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_avtp_pps),
249873f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_avtp_capture),
249973f35ebbSCong Dang SH_PFC_PIN_GROUP(avb1_avtp_match),
250073f35ebbSCong Dang
250173f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_link),
250273f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_magic),
250373f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_phy_int),
250473f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_mdio),
250573f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_rgmii),
250673f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_txcrefclk),
250773f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_avtp_pps),
250873f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_avtp_capture),
250973f35ebbSCong Dang SH_PFC_PIN_GROUP(avb2_avtp_match),
25104ab1ee6fSCong Dang
25112acf13ceSCong Dang SH_PFC_PIN_GROUP(canfd0_data),
25122acf13ceSCong Dang SH_PFC_PIN_GROUP(canfd1_data),
25132acf13ceSCong Dang SH_PFC_PIN_GROUP(canfd2_data),
25142acf13ceSCong Dang SH_PFC_PIN_GROUP(canfd3_data),
25152acf13ceSCong Dang SH_PFC_PIN_GROUP(can_clk),
25162acf13ceSCong Dang
2517a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif0_data),
2518a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif0_clk),
2519a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif0_ctrl),
2520a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif1_data_a),
2521a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif1_clk_a),
2522a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif1_ctrl_a),
2523a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif1_data_b),
2524a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif1_clk_b),
2525a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif1_ctrl_b),
2526a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif2_data),
2527a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif2_clk),
2528a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif2_ctrl),
2529a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif3_data_a),
2530a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif3_clk_a),
2531a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif3_ctrl_a),
2532a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif3_data_b),
2533a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif3_clk_b),
2534a0974d84SCong Dang SH_PFC_PIN_GROUP(hscif3_ctrl_b),
2535a0974d84SCong Dang
25362a9d0273SCong Dang SH_PFC_PIN_GROUP(i2c0),
25372a9d0273SCong Dang SH_PFC_PIN_GROUP(i2c1),
25382a9d0273SCong Dang SH_PFC_PIN_GROUP(i2c2),
25392a9d0273SCong Dang SH_PFC_PIN_GROUP(i2c3),
25402a9d0273SCong Dang
254121fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq0_a),
254221fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq0_b),
254321fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq1_a),
254421fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq1_b),
254521fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq2_a),
254621fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq2_b),
254721fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq3_a),
254821fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq3_b),
254921fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq4_a),
255021fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq4_b),
255121fc4d19SGeert Uytterhoeven SH_PFC_PIN_GROUP(intc_ex_irq5),
255221fc4d19SGeert Uytterhoeven
25534ab1ee6fSCong Dang BUS_DATA_PIN_GROUP(mmc_data, 1),
25544ab1ee6fSCong Dang BUS_DATA_PIN_GROUP(mmc_data, 4),
25554ab1ee6fSCong Dang BUS_DATA_PIN_GROUP(mmc_data, 8),
25564ab1ee6fSCong Dang SH_PFC_PIN_GROUP(mmc_ctrl),
25574ab1ee6fSCong Dang SH_PFC_PIN_GROUP(mmc_cd),
25584ab1ee6fSCong Dang SH_PFC_PIN_GROUP(mmc_wp),
25594ab1ee6fSCong Dang SH_PFC_PIN_GROUP(mmc_ds),
2560e79da260SCong Dang
2561b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof0_clk),
2562b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof0_sync),
2563b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof0_ss1),
2564b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof0_ss2),
2565b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof0_txd),
2566b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof0_rxd),
2567b33c4b4bSCong Dang
2568b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof1_clk),
2569b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof1_sync),
2570b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof1_ss1),
2571b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof1_ss2),
2572b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof1_txd),
2573b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof1_rxd),
2574b33c4b4bSCong Dang
2575b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof2_clk),
2576b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof2_sync),
2577b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof2_ss1),
2578b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof2_ss2),
2579b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof2_txd),
2580b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof2_rxd),
2581b33c4b4bSCong Dang
2582b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof3_clk),
2583b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof3_sync),
2584b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof3_ss1),
2585b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof3_ss2),
2586b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof3_txd),
2587b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof3_rxd),
2588b33c4b4bSCong Dang
2589b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof4_clk),
2590b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof4_sync),
2591b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof4_ss1),
2592b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof4_ss2),
2593b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof4_txd),
2594b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof4_rxd),
2595b33c4b4bSCong Dang
2596b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof5_clk),
2597b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof5_sync),
2598b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof5_ss1),
2599b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof5_ss2),
2600b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof5_txd),
2601b33c4b4bSCong Dang SH_PFC_PIN_GROUP(msiof5_rxd),
2602b33c4b4bSCong Dang
26031604b978SCong Dang SH_PFC_PIN_GROUP(pcie0_clkreq_n),
26041604b978SCong Dang
26054759b702SCong Dang SH_PFC_PIN_GROUP(pwm0_a),
26064759b702SCong Dang SH_PFC_PIN_GROUP(pwm0_b),
26074759b702SCong Dang SH_PFC_PIN_GROUP(pwm1_a),
26084759b702SCong Dang SH_PFC_PIN_GROUP(pwm1_b),
26094759b702SCong Dang SH_PFC_PIN_GROUP(pwm1_c),
26104759b702SCong Dang SH_PFC_PIN_GROUP(pwm2_a),
26114759b702SCong Dang SH_PFC_PIN_GROUP(pwm2_b),
26124759b702SCong Dang SH_PFC_PIN_GROUP(pwm2_c),
26134759b702SCong Dang SH_PFC_PIN_GROUP(pwm3_a),
26144759b702SCong Dang SH_PFC_PIN_GROUP(pwm3_b),
26154759b702SCong Dang SH_PFC_PIN_GROUP(pwm3_c),
26164759b702SCong Dang SH_PFC_PIN_GROUP(pwm4),
26174759b702SCong Dang
2618e79da260SCong Dang SH_PFC_PIN_GROUP(qspi0_ctrl),
2619e79da260SCong Dang BUS_DATA_PIN_GROUP(qspi0_data, 2),
2620e79da260SCong Dang BUS_DATA_PIN_GROUP(qspi0_data, 4),
2621e79da260SCong Dang SH_PFC_PIN_GROUP(qspi1_ctrl),
2622e79da260SCong Dang BUS_DATA_PIN_GROUP(qspi1_data, 2),
2623e79da260SCong Dang BUS_DATA_PIN_GROUP(qspi1_data, 4),
2624bc56b11cSCong Dang
2625bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif0_data),
2626bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif0_clk),
2627bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif0_ctrl),
2628bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif1_data_a),
2629bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif1_clk_a),
2630bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif1_ctrl_a),
2631bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif1_data_b),
2632bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif1_clk_b),
2633bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif1_ctrl_b),
2634bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif3_data_a),
2635bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif3_clk_a),
2636bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif3_ctrl_a),
2637bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif3_data_b),
2638bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif3_clk_b),
2639bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif3_ctrl_b),
2640bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif4_data),
2641bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif4_clk),
2642bc56b11cSCong Dang SH_PFC_PIN_GROUP(scif4_ctrl),
2643fbaff036SCong Dang SH_PFC_PIN_GROUP(scif_clk),
2644fbaff036SCong Dang SH_PFC_PIN_GROUP(scif_clk2),
26454759b702SCong Dang
264697191e53SCong Dang SH_PFC_PIN_GROUP(ssi_data),
264797191e53SCong Dang SH_PFC_PIN_GROUP(ssi_ctrl),
264897191e53SCong Dang
26494759b702SCong Dang SH_PFC_PIN_GROUP(tpu_to0_a),
26504759b702SCong Dang SH_PFC_PIN_GROUP(tpu_to0_b),
26514759b702SCong Dang SH_PFC_PIN_GROUP(tpu_to1_a),
26524759b702SCong Dang SH_PFC_PIN_GROUP(tpu_to1_b),
26534759b702SCong Dang SH_PFC_PIN_GROUP(tpu_to2_a),
26544759b702SCong Dang SH_PFC_PIN_GROUP(tpu_to2_b),
26554759b702SCong Dang SH_PFC_PIN_GROUP(tpu_to3_a),
26564759b702SCong Dang SH_PFC_PIN_GROUP(tpu_to3_b),
265773f35ebbSCong Dang };
265873f35ebbSCong Dang
265997191e53SCong Dang static const char * const audio_clk_groups[] = {
266097191e53SCong Dang "audio_clkin",
266197191e53SCong Dang "audio_clkout",
266297191e53SCong Dang };
266397191e53SCong Dang
266473f35ebbSCong Dang static const char * const avb0_groups[] = {
266573f35ebbSCong Dang "avb0_link",
266673f35ebbSCong Dang "avb0_magic",
266773f35ebbSCong Dang "avb0_phy_int",
266873f35ebbSCong Dang "avb0_mdio",
26696d8fc3e4SGeert Uytterhoeven "avb0_mii",
267073f35ebbSCong Dang "avb0_rgmii",
267173f35ebbSCong Dang "avb0_txcrefclk",
267273f35ebbSCong Dang "avb0_avtp_pps",
267373f35ebbSCong Dang "avb0_avtp_capture",
267473f35ebbSCong Dang "avb0_avtp_match",
267573f35ebbSCong Dang };
267673f35ebbSCong Dang
267773f35ebbSCong Dang static const char * const avb1_groups[] = {
267873f35ebbSCong Dang "avb1_link",
267973f35ebbSCong Dang "avb1_magic",
268073f35ebbSCong Dang "avb1_phy_int",
268173f35ebbSCong Dang "avb1_mdio",
26826d8fc3e4SGeert Uytterhoeven "avb1_mii",
268373f35ebbSCong Dang "avb1_rgmii",
268473f35ebbSCong Dang "avb1_txcrefclk",
268573f35ebbSCong Dang "avb1_avtp_pps",
268673f35ebbSCong Dang "avb1_avtp_capture",
268773f35ebbSCong Dang "avb1_avtp_match",
268873f35ebbSCong Dang };
268973f35ebbSCong Dang
269073f35ebbSCong Dang static const char * const avb2_groups[] = {
269173f35ebbSCong Dang "avb2_link",
269273f35ebbSCong Dang "avb2_magic",
269373f35ebbSCong Dang "avb2_phy_int",
269473f35ebbSCong Dang "avb2_mdio",
269573f35ebbSCong Dang "avb2_rgmii",
269673f35ebbSCong Dang "avb2_txcrefclk",
269773f35ebbSCong Dang "avb2_avtp_pps",
269873f35ebbSCong Dang "avb2_avtp_capture",
269973f35ebbSCong Dang "avb2_avtp_match",
2700291f7856SCong Dang };
2701291f7856SCong Dang
27022acf13ceSCong Dang static const char * const canfd0_groups[] = {
27032acf13ceSCong Dang "canfd0_data",
27042acf13ceSCong Dang };
27052acf13ceSCong Dang
27062acf13ceSCong Dang static const char * const canfd1_groups[] = {
27072acf13ceSCong Dang "canfd1_data",
27082acf13ceSCong Dang };
27092acf13ceSCong Dang
27102acf13ceSCong Dang static const char * const canfd2_groups[] = {
27112acf13ceSCong Dang "canfd2_data",
27122acf13ceSCong Dang };
27132acf13ceSCong Dang
27142acf13ceSCong Dang static const char * const canfd3_groups[] = {
27152acf13ceSCong Dang "canfd3_data",
27162acf13ceSCong Dang };
27172acf13ceSCong Dang
27182acf13ceSCong Dang static const char * const can_clk_groups[] = {
27192acf13ceSCong Dang "can_clk",
27202acf13ceSCong Dang };
27212acf13ceSCong Dang
2722a0974d84SCong Dang static const char * const hscif0_groups[] = {
2723a0974d84SCong Dang "hscif0_data",
2724a0974d84SCong Dang "hscif0_clk",
2725a0974d84SCong Dang "hscif0_ctrl",
2726a0974d84SCong Dang };
2727a0974d84SCong Dang
2728a0974d84SCong Dang static const char * const hscif1_groups[] = {
2729a0974d84SCong Dang "hscif1_data_a",
2730a0974d84SCong Dang "hscif1_clk_a",
2731a0974d84SCong Dang "hscif1_ctrl_a",
2732a0974d84SCong Dang "hscif1_data_b",
2733a0974d84SCong Dang "hscif1_clk_b",
2734a0974d84SCong Dang "hscif1_ctrl_b",
2735a0974d84SCong Dang };
2736a0974d84SCong Dang
2737a0974d84SCong Dang static const char * const hscif2_groups[] = {
2738a0974d84SCong Dang "hscif2_data",
2739a0974d84SCong Dang "hscif2_clk",
2740a0974d84SCong Dang "hscif2_ctrl",
2741a0974d84SCong Dang };
2742a0974d84SCong Dang
2743a0974d84SCong Dang static const char * const hscif3_groups[] = {
2744a0974d84SCong Dang "hscif3_data_a",
2745a0974d84SCong Dang "hscif3_clk_a",
2746a0974d84SCong Dang "hscif3_ctrl_a",
2747a0974d84SCong Dang "hscif3_data_b",
2748a0974d84SCong Dang "hscif3_clk_b",
2749a0974d84SCong Dang "hscif3_ctrl_b",
2750a0974d84SCong Dang };
2751a0974d84SCong Dang
27522a9d0273SCong Dang static const char * const i2c0_groups[] = {
27532a9d0273SCong Dang "i2c0",
27542a9d0273SCong Dang };
27552a9d0273SCong Dang
27562a9d0273SCong Dang static const char * const i2c1_groups[] = {
27572a9d0273SCong Dang "i2c1",
27582a9d0273SCong Dang };
27592a9d0273SCong Dang
27602a9d0273SCong Dang static const char * const i2c2_groups[] = {
27612a9d0273SCong Dang "i2c2",
27622a9d0273SCong Dang };
27632a9d0273SCong Dang
27642a9d0273SCong Dang static const char * const i2c3_groups[] = {
27652a9d0273SCong Dang "i2c3",
27662a9d0273SCong Dang };
27672a9d0273SCong Dang
276821fc4d19SGeert Uytterhoeven static const char * const intc_ex_groups[] = {
276921fc4d19SGeert Uytterhoeven "intc_ex_irq0_a",
277021fc4d19SGeert Uytterhoeven "intc_ex_irq0_b",
277121fc4d19SGeert Uytterhoeven "intc_ex_irq1_a",
277221fc4d19SGeert Uytterhoeven "intc_ex_irq1_b",
277321fc4d19SGeert Uytterhoeven "intc_ex_irq2_a",
277421fc4d19SGeert Uytterhoeven "intc_ex_irq2_b",
277521fc4d19SGeert Uytterhoeven "intc_ex_irq3_a",
277621fc4d19SGeert Uytterhoeven "intc_ex_irq3_b",
277721fc4d19SGeert Uytterhoeven "intc_ex_irq4_a",
277821fc4d19SGeert Uytterhoeven "intc_ex_irq4_b",
277921fc4d19SGeert Uytterhoeven "intc_ex_irq5",
278021fc4d19SGeert Uytterhoeven };
278121fc4d19SGeert Uytterhoeven
27824ab1ee6fSCong Dang static const char * const mmc_groups[] = {
27834ab1ee6fSCong Dang "mmc_data1",
27844ab1ee6fSCong Dang "mmc_data4",
27854ab1ee6fSCong Dang "mmc_data8",
27864ab1ee6fSCong Dang "mmc_ctrl",
27874ab1ee6fSCong Dang "mmc_cd",
27884ab1ee6fSCong Dang "mmc_wp",
27894ab1ee6fSCong Dang "mmc_ds",
27904ab1ee6fSCong Dang };
27914ab1ee6fSCong Dang
2792b33c4b4bSCong Dang static const char * const msiof0_groups[] = {
2793b33c4b4bSCong Dang "msiof0_clk",
2794b33c4b4bSCong Dang "msiof0_sync",
2795b33c4b4bSCong Dang "msiof0_ss1",
2796b33c4b4bSCong Dang "msiof0_ss2",
2797b33c4b4bSCong Dang "msiof0_txd",
2798b33c4b4bSCong Dang "msiof0_rxd",
2799b33c4b4bSCong Dang };
2800b33c4b4bSCong Dang
2801b33c4b4bSCong Dang static const char * const msiof1_groups[] = {
2802b33c4b4bSCong Dang "msiof1_clk",
2803b33c4b4bSCong Dang "msiof1_sync",
2804b33c4b4bSCong Dang "msiof1_ss1",
2805b33c4b4bSCong Dang "msiof1_ss2",
2806b33c4b4bSCong Dang "msiof1_txd",
2807b33c4b4bSCong Dang "msiof1_rxd",
2808b33c4b4bSCong Dang };
2809b33c4b4bSCong Dang
2810b33c4b4bSCong Dang static const char * const msiof2_groups[] = {
2811b33c4b4bSCong Dang "msiof2_clk",
2812b33c4b4bSCong Dang "msiof2_sync",
2813b33c4b4bSCong Dang "msiof2_ss1",
2814b33c4b4bSCong Dang "msiof2_ss2",
2815b33c4b4bSCong Dang "msiof2_txd",
2816b33c4b4bSCong Dang "msiof2_rxd",
2817b33c4b4bSCong Dang };
2818b33c4b4bSCong Dang
2819b33c4b4bSCong Dang static const char * const msiof3_groups[] = {
2820b33c4b4bSCong Dang "msiof3_clk",
2821b33c4b4bSCong Dang "msiof3_sync",
2822b33c4b4bSCong Dang "msiof3_ss1",
2823b33c4b4bSCong Dang "msiof3_ss2",
2824b33c4b4bSCong Dang "msiof3_txd",
2825b33c4b4bSCong Dang "msiof3_rxd",
2826b33c4b4bSCong Dang };
2827b33c4b4bSCong Dang
2828b33c4b4bSCong Dang static const char * const msiof4_groups[] = {
2829b33c4b4bSCong Dang "msiof4_clk",
2830b33c4b4bSCong Dang "msiof4_sync",
2831b33c4b4bSCong Dang "msiof4_ss1",
2832b33c4b4bSCong Dang "msiof4_ss2",
2833b33c4b4bSCong Dang "msiof4_txd",
2834b33c4b4bSCong Dang "msiof4_rxd",
2835b33c4b4bSCong Dang };
2836b33c4b4bSCong Dang
2837b33c4b4bSCong Dang static const char * const msiof5_groups[] = {
2838b33c4b4bSCong Dang "msiof5_clk",
2839b33c4b4bSCong Dang "msiof5_sync",
2840b33c4b4bSCong Dang "msiof5_ss1",
2841b33c4b4bSCong Dang "msiof5_ss2",
2842b33c4b4bSCong Dang "msiof5_txd",
2843b33c4b4bSCong Dang "msiof5_rxd",
2844b33c4b4bSCong Dang };
2845b33c4b4bSCong Dang
28461604b978SCong Dang static const char * const pcie_groups[] = {
28471604b978SCong Dang "pcie0_clkreq_n",
28481604b978SCong Dang };
28491604b978SCong Dang
28504759b702SCong Dang static const char * const pwm0_groups[] = {
28514759b702SCong Dang "pwm0_a",
28524759b702SCong Dang "pwm0_b",
28534759b702SCong Dang };
28544759b702SCong Dang
28554759b702SCong Dang static const char * const pwm1_groups[] = {
28564759b702SCong Dang "pwm1_a",
28574759b702SCong Dang "pwm1_b",
28584759b702SCong Dang "pwm1_c",
28594759b702SCong Dang };
28604759b702SCong Dang
28614759b702SCong Dang static const char * const pwm2_groups[] = {
28624759b702SCong Dang "pwm2_a",
28634759b702SCong Dang "pwm2_b",
28644759b702SCong Dang "pwm2_c",
28654759b702SCong Dang };
28664759b702SCong Dang
28674759b702SCong Dang static const char * const pwm3_groups[] = {
28684759b702SCong Dang "pwm3_a",
28694759b702SCong Dang "pwm3_b",
28704759b702SCong Dang "pwm3_c",
28714759b702SCong Dang };
28724759b702SCong Dang
28734759b702SCong Dang static const char * const pwm4_groups[] = {
28744759b702SCong Dang "pwm4",
28754759b702SCong Dang };
28764759b702SCong Dang
2877e79da260SCong Dang static const char * const qspi0_groups[] = {
2878e79da260SCong Dang "qspi0_ctrl",
2879e79da260SCong Dang "qspi0_data2",
2880e79da260SCong Dang "qspi0_data4",
2881e79da260SCong Dang };
2882e79da260SCong Dang
2883e79da260SCong Dang static const char * const qspi1_groups[] = {
2884e79da260SCong Dang "qspi1_ctrl",
2885e79da260SCong Dang "qspi1_data2",
2886e79da260SCong Dang "qspi1_data4",
2887e79da260SCong Dang };
2888e79da260SCong Dang
2889bc56b11cSCong Dang static const char * const scif0_groups[] = {
2890bc56b11cSCong Dang "scif0_data",
2891bc56b11cSCong Dang "scif0_clk",
2892bc56b11cSCong Dang "scif0_ctrl",
2893bc56b11cSCong Dang };
2894bc56b11cSCong Dang
2895bc56b11cSCong Dang static const char * const scif1_groups[] = {
2896bc56b11cSCong Dang "scif1_data_a",
2897bc56b11cSCong Dang "scif1_clk_a",
2898bc56b11cSCong Dang "scif1_ctrl_a",
2899bc56b11cSCong Dang "scif1_data_b",
2900bc56b11cSCong Dang "scif1_clk_b",
2901bc56b11cSCong Dang "scif1_ctrl_b",
2902bc56b11cSCong Dang };
2903bc56b11cSCong Dang
2904bc56b11cSCong Dang static const char * const scif3_groups[] = {
2905bc56b11cSCong Dang "scif3_data_a",
2906bc56b11cSCong Dang "scif3_clk_a",
2907bc56b11cSCong Dang "scif3_ctrl_a",
2908bc56b11cSCong Dang "scif3_data_b",
2909bc56b11cSCong Dang "scif3_clk_b",
2910bc56b11cSCong Dang "scif3_ctrl_b",
2911bc56b11cSCong Dang };
2912bc56b11cSCong Dang
2913bc56b11cSCong Dang static const char * const scif4_groups[] = {
2914bc56b11cSCong Dang "scif4_data",
2915bc56b11cSCong Dang "scif4_clk",
2916bc56b11cSCong Dang "scif4_ctrl",
2917bc56b11cSCong Dang };
2918bc56b11cSCong Dang
2919fbaff036SCong Dang static const char * const scif_clk_groups[] = {
2920fbaff036SCong Dang "scif_clk",
2921fbaff036SCong Dang };
2922fbaff036SCong Dang
2923fbaff036SCong Dang static const char * const scif_clk2_groups[] = {
2924fbaff036SCong Dang "scif_clk2",
2925fbaff036SCong Dang };
2926fbaff036SCong Dang
292797191e53SCong Dang static const char * const ssi_groups[] = {
292897191e53SCong Dang "ssi_data",
292997191e53SCong Dang "ssi_ctrl",
293097191e53SCong Dang };
293197191e53SCong Dang
29324759b702SCong Dang static const char * const tpu_groups[] = {
29334759b702SCong Dang "tpu_to0_a",
29344759b702SCong Dang "tpu_to0_b",
29354759b702SCong Dang "tpu_to1_a",
29364759b702SCong Dang "tpu_to1_b",
29374759b702SCong Dang "tpu_to2_a",
29384759b702SCong Dang "tpu_to2_b",
29394759b702SCong Dang "tpu_to3_a",
29404759b702SCong Dang "tpu_to3_b",
29414759b702SCong Dang };
29424759b702SCong Dang
2943291f7856SCong Dang static const struct sh_pfc_function pinmux_functions[] = {
294497191e53SCong Dang SH_PFC_FUNCTION(audio_clk),
294597191e53SCong Dang
294673f35ebbSCong Dang SH_PFC_FUNCTION(avb0),
294773f35ebbSCong Dang SH_PFC_FUNCTION(avb1),
294873f35ebbSCong Dang SH_PFC_FUNCTION(avb2),
29494ab1ee6fSCong Dang
29502acf13ceSCong Dang SH_PFC_FUNCTION(canfd0),
29512acf13ceSCong Dang SH_PFC_FUNCTION(canfd1),
29522acf13ceSCong Dang SH_PFC_FUNCTION(canfd2),
29532acf13ceSCong Dang SH_PFC_FUNCTION(canfd3),
29542acf13ceSCong Dang SH_PFC_FUNCTION(can_clk),
29552acf13ceSCong Dang
2956a0974d84SCong Dang SH_PFC_FUNCTION(hscif0),
2957a0974d84SCong Dang SH_PFC_FUNCTION(hscif1),
2958a0974d84SCong Dang SH_PFC_FUNCTION(hscif2),
2959a0974d84SCong Dang SH_PFC_FUNCTION(hscif3),
2960a0974d84SCong Dang
29612a9d0273SCong Dang SH_PFC_FUNCTION(i2c0),
29622a9d0273SCong Dang SH_PFC_FUNCTION(i2c1),
29632a9d0273SCong Dang SH_PFC_FUNCTION(i2c2),
29642a9d0273SCong Dang SH_PFC_FUNCTION(i2c3),
29652a9d0273SCong Dang
296621fc4d19SGeert Uytterhoeven SH_PFC_FUNCTION(intc_ex),
296721fc4d19SGeert Uytterhoeven
29684ab1ee6fSCong Dang SH_PFC_FUNCTION(mmc),
2969e79da260SCong Dang
2970b33c4b4bSCong Dang SH_PFC_FUNCTION(msiof0),
2971b33c4b4bSCong Dang SH_PFC_FUNCTION(msiof1),
2972b33c4b4bSCong Dang SH_PFC_FUNCTION(msiof2),
2973b33c4b4bSCong Dang SH_PFC_FUNCTION(msiof3),
2974b33c4b4bSCong Dang SH_PFC_FUNCTION(msiof4),
2975b33c4b4bSCong Dang SH_PFC_FUNCTION(msiof5),
2976b33c4b4bSCong Dang
29771604b978SCong Dang SH_PFC_FUNCTION(pcie),
29781604b978SCong Dang
29794759b702SCong Dang SH_PFC_FUNCTION(pwm0),
29804759b702SCong Dang SH_PFC_FUNCTION(pwm1),
29814759b702SCong Dang SH_PFC_FUNCTION(pwm2),
29824759b702SCong Dang SH_PFC_FUNCTION(pwm3),
29834759b702SCong Dang SH_PFC_FUNCTION(pwm4),
29844759b702SCong Dang
2985e79da260SCong Dang SH_PFC_FUNCTION(qspi0),
2986e79da260SCong Dang SH_PFC_FUNCTION(qspi1),
2987bc56b11cSCong Dang
2988bc56b11cSCong Dang SH_PFC_FUNCTION(scif0),
2989bc56b11cSCong Dang SH_PFC_FUNCTION(scif1),
2990bc56b11cSCong Dang SH_PFC_FUNCTION(scif3),
2991bc56b11cSCong Dang SH_PFC_FUNCTION(scif4),
2992fbaff036SCong Dang SH_PFC_FUNCTION(scif_clk),
2993fbaff036SCong Dang SH_PFC_FUNCTION(scif_clk2),
29944759b702SCong Dang
299597191e53SCong Dang SH_PFC_FUNCTION(ssi),
299697191e53SCong Dang
29974759b702SCong Dang SH_PFC_FUNCTION(tpu),
2998291f7856SCong Dang };
2999291f7856SCong Dang
3000291f7856SCong Dang static const struct pinmux_cfg_reg pinmux_config_regs[] = {
3001291f7856SCong Dang #define F_(x, y) FN_##y
3002291f7856SCong Dang #define FM(x) FN_##x
3003291f7856SCong Dang { PINMUX_CFG_REG_VAR("GPSR0", 0xE6050040, 32,
3004291f7856SCong Dang GROUP(-13, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3005291f7856SCong Dang 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3006291f7856SCong Dang GROUP(
3007291f7856SCong Dang /* GP0_31_19 RESERVED */
3008291f7856SCong Dang GP_0_18_FN, GPSR0_18,
3009291f7856SCong Dang GP_0_17_FN, GPSR0_17,
3010291f7856SCong Dang GP_0_16_FN, GPSR0_16,
3011291f7856SCong Dang GP_0_15_FN, GPSR0_15,
3012291f7856SCong Dang GP_0_14_FN, GPSR0_14,
3013291f7856SCong Dang GP_0_13_FN, GPSR0_13,
3014291f7856SCong Dang GP_0_12_FN, GPSR0_12,
3015291f7856SCong Dang GP_0_11_FN, GPSR0_11,
3016291f7856SCong Dang GP_0_10_FN, GPSR0_10,
3017291f7856SCong Dang GP_0_9_FN, GPSR0_9,
3018291f7856SCong Dang GP_0_8_FN, GPSR0_8,
3019291f7856SCong Dang GP_0_7_FN, GPSR0_7,
3020291f7856SCong Dang GP_0_6_FN, GPSR0_6,
3021291f7856SCong Dang GP_0_5_FN, GPSR0_5,
3022291f7856SCong Dang GP_0_4_FN, GPSR0_4,
3023291f7856SCong Dang GP_0_3_FN, GPSR0_3,
3024291f7856SCong Dang GP_0_2_FN, GPSR0_2,
3025291f7856SCong Dang GP_0_1_FN, GPSR0_1,
3026291f7856SCong Dang GP_0_0_FN, GPSR0_0, ))
3027291f7856SCong Dang },
3028291f7856SCong Dang { PINMUX_CFG_REG("GPSR1", 0xE6050840, 32, 1, GROUP(
3029291f7856SCong Dang 0, 0,
3030291f7856SCong Dang 0, 0,
3031291f7856SCong Dang GP_1_29_FN, GPSR1_29,
3032291f7856SCong Dang GP_1_28_FN, GPSR1_28,
3033291f7856SCong Dang GP_1_27_FN, GPSR1_27,
3034291f7856SCong Dang GP_1_26_FN, GPSR1_26,
3035291f7856SCong Dang GP_1_25_FN, GPSR1_25,
3036291f7856SCong Dang GP_1_24_FN, GPSR1_24,
3037291f7856SCong Dang GP_1_23_FN, GPSR1_23,
3038291f7856SCong Dang GP_1_22_FN, GPSR1_22,
3039291f7856SCong Dang GP_1_21_FN, GPSR1_21,
3040291f7856SCong Dang GP_1_20_FN, GPSR1_20,
3041291f7856SCong Dang GP_1_19_FN, GPSR1_19,
3042291f7856SCong Dang GP_1_18_FN, GPSR1_18,
3043291f7856SCong Dang GP_1_17_FN, GPSR1_17,
3044291f7856SCong Dang GP_1_16_FN, GPSR1_16,
3045291f7856SCong Dang GP_1_15_FN, GPSR1_15,
3046291f7856SCong Dang GP_1_14_FN, GPSR1_14,
3047291f7856SCong Dang GP_1_13_FN, GPSR1_13,
3048291f7856SCong Dang GP_1_12_FN, GPSR1_12,
3049291f7856SCong Dang GP_1_11_FN, GPSR1_11,
3050291f7856SCong Dang GP_1_10_FN, GPSR1_10,
3051291f7856SCong Dang GP_1_9_FN, GPSR1_9,
3052291f7856SCong Dang GP_1_8_FN, GPSR1_8,
3053291f7856SCong Dang GP_1_7_FN, GPSR1_7,
3054291f7856SCong Dang GP_1_6_FN, GPSR1_6,
3055291f7856SCong Dang GP_1_5_FN, GPSR1_5,
3056291f7856SCong Dang GP_1_4_FN, GPSR1_4,
3057291f7856SCong Dang GP_1_3_FN, GPSR1_3,
3058291f7856SCong Dang GP_1_2_FN, GPSR1_2,
3059291f7856SCong Dang GP_1_1_FN, GPSR1_1,
3060291f7856SCong Dang GP_1_0_FN, GPSR1_0, ))
3061291f7856SCong Dang },
3062291f7856SCong Dang { PINMUX_CFG_REG_VAR("GPSR2", 0xE6058040, 32,
3063291f7856SCong Dang GROUP(-12, 1, -1, 1, -1, 1, 1, 1, 1, 1, 1,
3064291f7856SCong Dang 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3065291f7856SCong Dang GROUP(
3066291f7856SCong Dang /* GP2_31_20 RESERVED */
3067291f7856SCong Dang GP_2_19_FN, GPSR2_19,
3068291f7856SCong Dang /* GP2_18 RESERVED */
3069291f7856SCong Dang GP_2_17_FN, GPSR2_17,
3070291f7856SCong Dang /* GP2_16 RESERVED */
3071291f7856SCong Dang GP_2_15_FN, GPSR2_15,
3072291f7856SCong Dang GP_2_14_FN, GPSR2_14,
3073291f7856SCong Dang GP_2_13_FN, GPSR2_13,
3074291f7856SCong Dang GP_2_12_FN, GPSR2_12,
3075291f7856SCong Dang GP_2_11_FN, GPSR2_11,
3076291f7856SCong Dang GP_2_10_FN, GPSR2_10,
3077291f7856SCong Dang GP_2_9_FN, GPSR2_9,
3078291f7856SCong Dang GP_2_8_FN, GPSR2_8,
3079291f7856SCong Dang GP_2_7_FN, GPSR2_7,
3080291f7856SCong Dang GP_2_6_FN, GPSR2_6,
3081291f7856SCong Dang GP_2_5_FN, GPSR2_5,
3082291f7856SCong Dang GP_2_4_FN, GPSR2_4,
3083291f7856SCong Dang GP_2_3_FN, GPSR2_3,
3084291f7856SCong Dang GP_2_2_FN, GPSR2_2,
3085291f7856SCong Dang GP_2_1_FN, GPSR2_1,
3086291f7856SCong Dang GP_2_0_FN, GPSR2_0, ))
3087291f7856SCong Dang },
3088291f7856SCong Dang { PINMUX_CFG_REG("GPSR3", 0xE6058840, 32, 1, GROUP(
3089291f7856SCong Dang GP_3_31_FN, GPSR3_31,
3090291f7856SCong Dang GP_3_30_FN, GPSR3_30,
3091291f7856SCong Dang GP_3_29_FN, GPSR3_29,
3092291f7856SCong Dang GP_3_28_FN, GPSR3_28,
3093291f7856SCong Dang GP_3_27_FN, GPSR3_27,
3094291f7856SCong Dang GP_3_26_FN, GPSR3_26,
3095291f7856SCong Dang GP_3_25_FN, GPSR3_25,
3096291f7856SCong Dang GP_3_24_FN, GPSR3_24,
3097291f7856SCong Dang GP_3_23_FN, GPSR3_23,
3098291f7856SCong Dang GP_3_22_FN, GPSR3_22,
3099291f7856SCong Dang GP_3_21_FN, GPSR3_21,
3100291f7856SCong Dang GP_3_20_FN, GPSR3_20,
3101291f7856SCong Dang GP_3_19_FN, GPSR3_19,
3102291f7856SCong Dang GP_3_18_FN, GPSR3_18,
3103291f7856SCong Dang GP_3_17_FN, GPSR3_17,
3104291f7856SCong Dang GP_3_16_FN, GPSR3_16,
3105291f7856SCong Dang GP_3_15_FN, GPSR3_15,
3106291f7856SCong Dang GP_3_14_FN, GPSR3_14,
3107291f7856SCong Dang GP_3_13_FN, GPSR3_13,
3108291f7856SCong Dang GP_3_12_FN, GPSR3_12,
3109291f7856SCong Dang GP_3_11_FN, GPSR3_11,
3110291f7856SCong Dang GP_3_10_FN, GPSR3_10,
3111291f7856SCong Dang GP_3_9_FN, GPSR3_9,
3112291f7856SCong Dang GP_3_8_FN, GPSR3_8,
3113291f7856SCong Dang GP_3_7_FN, GPSR3_7,
3114291f7856SCong Dang GP_3_6_FN, GPSR3_6,
3115291f7856SCong Dang GP_3_5_FN, GPSR3_5,
3116291f7856SCong Dang GP_3_4_FN, GPSR3_4,
3117291f7856SCong Dang GP_3_3_FN, GPSR3_3,
3118291f7856SCong Dang GP_3_2_FN, GPSR3_2,
3119291f7856SCong Dang GP_3_1_FN, GPSR3_1,
3120291f7856SCong Dang GP_3_0_FN, GPSR3_0, ))
3121291f7856SCong Dang },
3122291f7856SCong Dang { PINMUX_CFG_REG_VAR("GPSR4", 0xE6060040, 32,
3123291f7856SCong Dang GROUP(-7, 1, 1, -1, 1, -5, 1, 1, 1, 1, 1,
3124291f7856SCong Dang 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3125291f7856SCong Dang GROUP(
3126291f7856SCong Dang /* GP4_31_25 RESERVED */
3127291f7856SCong Dang GP_4_24_FN, GPSR4_24,
3128291f7856SCong Dang GP_4_23_FN, GPSR4_23,
3129291f7856SCong Dang /* GP4_22 RESERVED */
3130291f7856SCong Dang GP_4_21_FN, GPSR4_21,
3131291f7856SCong Dang /* GP4_20_16 RESERVED */
3132291f7856SCong Dang GP_4_15_FN, GPSR4_15,
3133291f7856SCong Dang GP_4_14_FN, GPSR4_14,
3134291f7856SCong Dang GP_4_13_FN, GPSR4_13,
3135291f7856SCong Dang GP_4_12_FN, GPSR4_12,
3136291f7856SCong Dang GP_4_11_FN, GPSR4_11,
3137291f7856SCong Dang GP_4_10_FN, GPSR4_10,
3138291f7856SCong Dang GP_4_9_FN, GPSR4_9,
3139291f7856SCong Dang GP_4_8_FN, GPSR4_8,
3140291f7856SCong Dang GP_4_7_FN, GPSR4_7,
3141291f7856SCong Dang GP_4_6_FN, GPSR4_6,
3142291f7856SCong Dang GP_4_5_FN, GPSR4_5,
3143291f7856SCong Dang GP_4_4_FN, GPSR4_4,
3144291f7856SCong Dang GP_4_3_FN, GPSR4_3,
3145291f7856SCong Dang GP_4_2_FN, GPSR4_2,
3146291f7856SCong Dang GP_4_1_FN, GPSR4_1,
3147291f7856SCong Dang GP_4_0_FN, GPSR4_0, ))
3148291f7856SCong Dang },
3149291f7856SCong Dang { PINMUX_CFG_REG_VAR("GPSR5", 0xE6060840, 32,
3150291f7856SCong Dang GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3151291f7856SCong Dang 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3152291f7856SCong Dang GROUP(
3153291f7856SCong Dang /* GP5_31_21 RESERVED */
3154291f7856SCong Dang GP_5_20_FN, GPSR5_20,
3155291f7856SCong Dang GP_5_19_FN, GPSR5_19,
3156291f7856SCong Dang GP_5_18_FN, GPSR5_18,
3157291f7856SCong Dang GP_5_17_FN, GPSR5_17,
3158291f7856SCong Dang GP_5_16_FN, GPSR5_16,
3159291f7856SCong Dang GP_5_15_FN, GPSR5_15,
3160291f7856SCong Dang GP_5_14_FN, GPSR5_14,
3161291f7856SCong Dang GP_5_13_FN, GPSR5_13,
3162291f7856SCong Dang GP_5_12_FN, GPSR5_12,
3163291f7856SCong Dang GP_5_11_FN, GPSR5_11,
3164291f7856SCong Dang GP_5_10_FN, GPSR5_10,
3165291f7856SCong Dang GP_5_9_FN, GPSR5_9,
3166291f7856SCong Dang GP_5_8_FN, GPSR5_8,
3167291f7856SCong Dang GP_5_7_FN, GPSR5_7,
3168291f7856SCong Dang GP_5_6_FN, GPSR5_6,
3169291f7856SCong Dang GP_5_5_FN, GPSR5_5,
3170291f7856SCong Dang GP_5_4_FN, GPSR5_4,
3171291f7856SCong Dang GP_5_3_FN, GPSR5_3,
3172291f7856SCong Dang GP_5_2_FN, GPSR5_2,
3173291f7856SCong Dang GP_5_1_FN, GPSR5_1,
3174291f7856SCong Dang GP_5_0_FN, GPSR5_0, ))
3175291f7856SCong Dang },
3176291f7856SCong Dang { PINMUX_CFG_REG_VAR("GPSR6", 0xE6061040, 32,
3177291f7856SCong Dang GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3178291f7856SCong Dang 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3179291f7856SCong Dang GROUP(
3180291f7856SCong Dang /* GP6_31_21 RESERVED */
3181291f7856SCong Dang GP_6_20_FN, GPSR6_20,
3182291f7856SCong Dang GP_6_19_FN, GPSR6_19,
3183291f7856SCong Dang GP_6_18_FN, GPSR6_18,
3184291f7856SCong Dang GP_6_17_FN, GPSR6_17,
3185291f7856SCong Dang GP_6_16_FN, GPSR6_16,
3186291f7856SCong Dang GP_6_15_FN, GPSR6_15,
3187291f7856SCong Dang GP_6_14_FN, GPSR6_14,
3188291f7856SCong Dang GP_6_13_FN, GPSR6_13,
3189291f7856SCong Dang GP_6_12_FN, GPSR6_12,
3190291f7856SCong Dang GP_6_11_FN, GPSR6_11,
3191291f7856SCong Dang GP_6_10_FN, GPSR6_10,
3192291f7856SCong Dang GP_6_9_FN, GPSR6_9,
3193291f7856SCong Dang GP_6_8_FN, GPSR6_8,
3194291f7856SCong Dang GP_6_7_FN, GPSR6_7,
3195291f7856SCong Dang GP_6_6_FN, GPSR6_6,
3196291f7856SCong Dang GP_6_5_FN, GPSR6_5,
3197291f7856SCong Dang GP_6_4_FN, GPSR6_4,
3198291f7856SCong Dang GP_6_3_FN, GPSR6_3,
3199291f7856SCong Dang GP_6_2_FN, GPSR6_2,
3200291f7856SCong Dang GP_6_1_FN, GPSR6_1,
3201291f7856SCong Dang GP_6_0_FN, GPSR6_0, ))
3202291f7856SCong Dang },
3203291f7856SCong Dang { PINMUX_CFG_REG_VAR("GPSR7", 0xE6061840, 32,
3204291f7856SCong Dang GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3205291f7856SCong Dang 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3206291f7856SCong Dang GROUP(
3207291f7856SCong Dang /* GP7_31_21 RESERVED */
3208291f7856SCong Dang GP_7_20_FN, GPSR7_20,
3209291f7856SCong Dang GP_7_19_FN, GPSR7_19,
3210291f7856SCong Dang GP_7_18_FN, GPSR7_18,
3211291f7856SCong Dang GP_7_17_FN, GPSR7_17,
3212291f7856SCong Dang GP_7_16_FN, GPSR7_16,
3213291f7856SCong Dang GP_7_15_FN, GPSR7_15,
3214291f7856SCong Dang GP_7_14_FN, GPSR7_14,
3215291f7856SCong Dang GP_7_13_FN, GPSR7_13,
3216291f7856SCong Dang GP_7_12_FN, GPSR7_12,
3217291f7856SCong Dang GP_7_11_FN, GPSR7_11,
3218291f7856SCong Dang GP_7_10_FN, GPSR7_10,
3219291f7856SCong Dang GP_7_9_FN, GPSR7_9,
3220291f7856SCong Dang GP_7_8_FN, GPSR7_8,
3221291f7856SCong Dang GP_7_7_FN, GPSR7_7,
3222291f7856SCong Dang GP_7_6_FN, GPSR7_6,
3223291f7856SCong Dang GP_7_5_FN, GPSR7_5,
3224291f7856SCong Dang GP_7_4_FN, GPSR7_4,
3225291f7856SCong Dang GP_7_3_FN, GPSR7_3,
3226291f7856SCong Dang GP_7_2_FN, GPSR7_2,
3227291f7856SCong Dang GP_7_1_FN, GPSR7_1,
3228291f7856SCong Dang GP_7_0_FN, GPSR7_0, ))
3229291f7856SCong Dang },
3230291f7856SCong Dang #undef F_
3231291f7856SCong Dang #undef FM
3232291f7856SCong Dang
3233291f7856SCong Dang #define F_(x, y) x,
3234291f7856SCong Dang #define FM(x) FN_##x,
3235291f7856SCong Dang { PINMUX_CFG_REG("IP0SR0", 0xE6050060, 32, 4, GROUP(
3236291f7856SCong Dang IP0SR0_31_28
3237291f7856SCong Dang IP0SR0_27_24
3238291f7856SCong Dang IP0SR0_23_20
3239291f7856SCong Dang IP0SR0_19_16
3240291f7856SCong Dang IP0SR0_15_12
3241291f7856SCong Dang IP0SR0_11_8
3242291f7856SCong Dang IP0SR0_7_4
3243291f7856SCong Dang IP0SR0_3_0))
3244291f7856SCong Dang },
3245291f7856SCong Dang { PINMUX_CFG_REG("IP1SR0", 0xE6050064, 32, 4, GROUP(
3246291f7856SCong Dang IP1SR0_31_28
3247291f7856SCong Dang IP1SR0_27_24
3248291f7856SCong Dang IP1SR0_23_20
3249291f7856SCong Dang IP1SR0_19_16
3250291f7856SCong Dang IP1SR0_15_12
3251291f7856SCong Dang IP1SR0_11_8
3252291f7856SCong Dang IP1SR0_7_4
3253291f7856SCong Dang IP1SR0_3_0))
3254291f7856SCong Dang },
3255291f7856SCong Dang { PINMUX_CFG_REG_VAR("IP2SR0", 0xE6050068, 32,
3256291f7856SCong Dang GROUP(-20, 4, 4, 4),
3257291f7856SCong Dang GROUP(
3258291f7856SCong Dang /* IP2SR0_31_12 RESERVED */
3259291f7856SCong Dang IP2SR0_11_8
3260291f7856SCong Dang IP2SR0_7_4
3261291f7856SCong Dang IP2SR0_3_0))
3262291f7856SCong Dang },
3263291f7856SCong Dang { PINMUX_CFG_REG("IP0SR1", 0xE6050860, 32, 4, GROUP(
3264291f7856SCong Dang IP0SR1_31_28
3265291f7856SCong Dang IP0SR1_27_24
3266291f7856SCong Dang IP0SR1_23_20
3267291f7856SCong Dang IP0SR1_19_16
3268291f7856SCong Dang IP0SR1_15_12
3269291f7856SCong Dang IP0SR1_11_8
3270291f7856SCong Dang IP0SR1_7_4
3271291f7856SCong Dang IP0SR1_3_0))
3272291f7856SCong Dang },
3273291f7856SCong Dang { PINMUX_CFG_REG("IP1SR1", 0xE6050864, 32, 4, GROUP(
3274291f7856SCong Dang IP1SR1_31_28
3275291f7856SCong Dang IP1SR1_27_24
3276291f7856SCong Dang IP1SR1_23_20
3277291f7856SCong Dang IP1SR1_19_16
3278291f7856SCong Dang IP1SR1_15_12
3279291f7856SCong Dang IP1SR1_11_8
3280291f7856SCong Dang IP1SR1_7_4
3281291f7856SCong Dang IP1SR1_3_0))
3282291f7856SCong Dang },
3283291f7856SCong Dang { PINMUX_CFG_REG("IP2SR1", 0xE6050868, 32, 4, GROUP(
3284291f7856SCong Dang IP2SR1_31_28
3285291f7856SCong Dang IP2SR1_27_24
3286291f7856SCong Dang IP2SR1_23_20
3287291f7856SCong Dang IP2SR1_19_16
3288291f7856SCong Dang IP2SR1_15_12
3289291f7856SCong Dang IP2SR1_11_8
3290291f7856SCong Dang IP2SR1_7_4
3291291f7856SCong Dang IP2SR1_3_0))
3292291f7856SCong Dang },
3293291f7856SCong Dang { PINMUX_CFG_REG_VAR("IP3SR1", 0xE605086C, 32,
3294291f7856SCong Dang GROUP(-8, 4, 4, 4, 4, 4, 4),
3295291f7856SCong Dang GROUP(
3296291f7856SCong Dang /* IP3SR1_31_24 RESERVED */
3297291f7856SCong Dang IP3SR1_23_20
3298291f7856SCong Dang IP3SR1_19_16
3299291f7856SCong Dang IP3SR1_15_12
3300291f7856SCong Dang IP3SR1_11_8
3301291f7856SCong Dang IP3SR1_7_4
3302291f7856SCong Dang IP3SR1_3_0))
3303291f7856SCong Dang },
3304291f7856SCong Dang { PINMUX_CFG_REG("IP0SR2", 0xE6058060, 32, 4, GROUP(
3305291f7856SCong Dang IP0SR2_31_28
3306291f7856SCong Dang IP0SR2_27_24
3307291f7856SCong Dang IP0SR2_23_20
3308291f7856SCong Dang IP0SR2_19_16
3309291f7856SCong Dang IP0SR2_15_12
3310291f7856SCong Dang IP0SR2_11_8
3311291f7856SCong Dang IP0SR2_7_4
3312291f7856SCong Dang IP0SR2_3_0))
3313291f7856SCong Dang },
3314291f7856SCong Dang { PINMUX_CFG_REG("IP1SR2", 0xE6058064, 32, 4, GROUP(
3315291f7856SCong Dang IP1SR2_31_28
3316291f7856SCong Dang IP1SR2_27_24
3317291f7856SCong Dang IP1SR2_23_20
3318291f7856SCong Dang IP1SR2_19_16
3319291f7856SCong Dang IP1SR2_15_12
3320291f7856SCong Dang IP1SR2_11_8
3321291f7856SCong Dang IP1SR2_7_4
3322291f7856SCong Dang IP1SR2_3_0))
3323291f7856SCong Dang },
3324291f7856SCong Dang { PINMUX_CFG_REG_VAR("IP2SR2", 0xE6058068, 32,
3325291f7856SCong Dang GROUP(-16, 4, -4, 4, -4),
3326291f7856SCong Dang GROUP(
3327291f7856SCong Dang /* IP2SR2_31_16 RESERVED */
3328291f7856SCong Dang IP2SR2_15_12
3329291f7856SCong Dang /* IP2SR2_11_8 RESERVED */
3330291f7856SCong Dang IP2SR2_7_4
3331291f7856SCong Dang /* IP2SR2_3_0 RESERVED */))
3332291f7856SCong Dang },
3333291f7856SCong Dang { PINMUX_CFG_REG("IP0SR3", 0xE6058860, 32, 4, GROUP(
3334291f7856SCong Dang IP0SR3_31_28
3335291f7856SCong Dang IP0SR3_27_24
3336291f7856SCong Dang IP0SR3_23_20
3337291f7856SCong Dang IP0SR3_19_16
3338291f7856SCong Dang IP0SR3_15_12
3339291f7856SCong Dang IP0SR3_11_8
3340291f7856SCong Dang IP0SR3_7_4
3341291f7856SCong Dang IP0SR3_3_0))
3342291f7856SCong Dang },
3343291f7856SCong Dang { PINMUX_CFG_REG("IP1SR3", 0xE6058864, 32, 4, GROUP(
3344291f7856SCong Dang IP1SR3_31_28
3345291f7856SCong Dang IP1SR3_27_24
3346291f7856SCong Dang IP1SR3_23_20
3347291f7856SCong Dang IP1SR3_19_16
3348291f7856SCong Dang IP1SR3_15_12
3349291f7856SCong Dang IP1SR3_11_8
3350291f7856SCong Dang IP1SR3_7_4
3351291f7856SCong Dang IP1SR3_3_0))
3352291f7856SCong Dang },
3353291f7856SCong Dang { PINMUX_CFG_REG("IP2SR3", 0xE6058868, 32, 4, GROUP(
3354291f7856SCong Dang IP2SR3_31_28
3355291f7856SCong Dang IP2SR3_27_24
3356291f7856SCong Dang IP2SR3_23_20
3357291f7856SCong Dang IP2SR3_19_16
3358291f7856SCong Dang IP2SR3_15_12
3359291f7856SCong Dang IP2SR3_11_8
3360291f7856SCong Dang IP2SR3_7_4
3361291f7856SCong Dang IP2SR3_3_0))
3362291f7856SCong Dang },
3363291f7856SCong Dang { PINMUX_CFG_REG("IP3SR3", 0xE605886C, 32, 4, GROUP(
3364291f7856SCong Dang IP3SR3_31_28
3365291f7856SCong Dang IP3SR3_27_24
3366291f7856SCong Dang IP3SR3_23_20
3367291f7856SCong Dang IP3SR3_19_16
3368291f7856SCong Dang IP3SR3_15_12
3369291f7856SCong Dang IP3SR3_11_8
3370291f7856SCong Dang IP3SR3_7_4
3371291f7856SCong Dang IP3SR3_3_0))
3372291f7856SCong Dang },
3373291f7856SCong Dang { PINMUX_CFG_REG("IP0SR4", 0xE6060060, 32, 4, GROUP(
3374291f7856SCong Dang IP0SR4_31_28
3375291f7856SCong Dang IP0SR4_27_24
3376291f7856SCong Dang IP0SR4_23_20
3377291f7856SCong Dang IP0SR4_19_16
3378291f7856SCong Dang IP0SR4_15_12
3379291f7856SCong Dang IP0SR4_11_8
3380291f7856SCong Dang IP0SR4_7_4
3381291f7856SCong Dang IP0SR4_3_0))
3382291f7856SCong Dang },
3383291f7856SCong Dang { PINMUX_CFG_REG("IP1SR4", 0xE6060064, 32, 4, GROUP(
3384291f7856SCong Dang IP1SR4_31_28
3385291f7856SCong Dang IP1SR4_27_24
3386291f7856SCong Dang IP1SR4_23_20
3387291f7856SCong Dang IP1SR4_19_16
3388291f7856SCong Dang IP1SR4_15_12
3389291f7856SCong Dang IP1SR4_11_8
3390291f7856SCong Dang IP1SR4_7_4
3391291f7856SCong Dang IP1SR4_3_0))
3392291f7856SCong Dang },
3393291f7856SCong Dang { PINMUX_CFG_REG_VAR("IP2SR4", 0xE6060068, 32,
3394291f7856SCong Dang GROUP(4, -4, 4, -20),
3395291f7856SCong Dang GROUP(
3396291f7856SCong Dang IP2SR4_31_28
3397291f7856SCong Dang /* IP2SR4_27_24 RESERVED */
3398291f7856SCong Dang IP2SR4_23_20
3399291f7856SCong Dang /* IP2SR4_19_0 RESERVED */))
3400291f7856SCong Dang },
3401291f7856SCong Dang { PINMUX_CFG_REG_VAR("IP3SR4", 0xE606006C, 32,
3402291f7856SCong Dang GROUP(-28, 4),
3403291f7856SCong Dang GROUP(
3404291f7856SCong Dang /* IP3SR4_31_4 RESERVED */
3405291f7856SCong Dang IP3SR4_3_0))
3406291f7856SCong Dang },
3407291f7856SCong Dang { PINMUX_CFG_REG("IP0SR5", 0xE6060860, 32, 4, GROUP(
3408291f7856SCong Dang IP0SR5_31_28
3409291f7856SCong Dang IP0SR5_27_24
3410291f7856SCong Dang IP0SR5_23_20
3411291f7856SCong Dang IP0SR5_19_16
3412291f7856SCong Dang IP0SR5_15_12
3413291f7856SCong Dang IP0SR5_11_8
3414291f7856SCong Dang IP0SR5_7_4
3415291f7856SCong Dang IP0SR5_3_0))
3416291f7856SCong Dang },
3417291f7856SCong Dang { PINMUX_CFG_REG("IP1SR5", 0xE6060864, 32, 4, GROUP(
3418291f7856SCong Dang IP1SR5_31_28
3419291f7856SCong Dang IP1SR5_27_24
3420291f7856SCong Dang IP1SR5_23_20
3421291f7856SCong Dang IP1SR5_19_16
3422291f7856SCong Dang IP1SR5_15_12
3423291f7856SCong Dang IP1SR5_11_8
3424291f7856SCong Dang IP1SR5_7_4
3425291f7856SCong Dang IP1SR5_3_0))
3426291f7856SCong Dang },
3427291f7856SCong Dang { PINMUX_CFG_REG_VAR("IP2SR5", 0xE6060868, 32,
3428291f7856SCong Dang GROUP(-12, 4, 4, 4, 4, 4),
3429291f7856SCong Dang GROUP(
3430291f7856SCong Dang /* IP2SR5_31_20 RESERVED */
3431291f7856SCong Dang IP2SR5_19_16
3432291f7856SCong Dang IP2SR5_15_12
3433291f7856SCong Dang IP2SR5_11_8
3434291f7856SCong Dang IP2SR5_7_4
3435291f7856SCong Dang IP2SR5_3_0))
3436291f7856SCong Dang },
3437291f7856SCong Dang { PINMUX_CFG_REG("IP0SR6", 0xE6061060, 32, 4, GROUP(
3438291f7856SCong Dang IP0SR6_31_28
3439291f7856SCong Dang IP0SR6_27_24
3440291f7856SCong Dang IP0SR6_23_20
3441291f7856SCong Dang IP0SR6_19_16
3442291f7856SCong Dang IP0SR6_15_12
3443291f7856SCong Dang IP0SR6_11_8
3444291f7856SCong Dang IP0SR6_7_4
3445291f7856SCong Dang IP0SR6_3_0))
3446291f7856SCong Dang },
3447291f7856SCong Dang { PINMUX_CFG_REG("IP1SR6", 0xE6061064, 32, 4, GROUP(
3448291f7856SCong Dang IP1SR6_31_28
3449291f7856SCong Dang IP1SR6_27_24
3450291f7856SCong Dang IP1SR6_23_20
3451291f7856SCong Dang IP1SR6_19_16
3452291f7856SCong Dang IP1SR6_15_12
3453291f7856SCong Dang IP1SR6_11_8
3454291f7856SCong Dang IP1SR6_7_4
3455291f7856SCong Dang IP1SR6_3_0))
3456291f7856SCong Dang },
3457291f7856SCong Dang { PINMUX_CFG_REG_VAR("IP2SR6", 0xE6061068, 32,
3458291f7856SCong Dang GROUP(-12, 4, 4, 4, 4, 4),
3459291f7856SCong Dang GROUP(
3460291f7856SCong Dang /* IP2SR6_31_20 RESERVED */
3461291f7856SCong Dang IP2SR6_19_16
3462291f7856SCong Dang IP2SR6_15_12
3463291f7856SCong Dang IP2SR6_11_8
3464291f7856SCong Dang IP2SR6_7_4
3465291f7856SCong Dang IP2SR6_3_0))
3466291f7856SCong Dang },
3467291f7856SCong Dang { PINMUX_CFG_REG("IP0SR7", 0xE6061860, 32, 4, GROUP(
3468291f7856SCong Dang IP0SR7_31_28
3469291f7856SCong Dang IP0SR7_27_24
3470291f7856SCong Dang IP0SR7_23_20
3471291f7856SCong Dang IP0SR7_19_16
3472291f7856SCong Dang IP0SR7_15_12
3473291f7856SCong Dang IP0SR7_11_8
3474291f7856SCong Dang IP0SR7_7_4
3475291f7856SCong Dang IP0SR7_3_0))
3476291f7856SCong Dang },
3477291f7856SCong Dang { PINMUX_CFG_REG("IP1SR7", 0xE6061864, 32, 4, GROUP(
3478291f7856SCong Dang IP1SR7_31_28
3479291f7856SCong Dang IP1SR7_27_24
3480291f7856SCong Dang IP1SR7_23_20
3481291f7856SCong Dang IP1SR7_19_16
3482291f7856SCong Dang IP1SR7_15_12
3483291f7856SCong Dang IP1SR7_11_8
3484291f7856SCong Dang IP1SR7_7_4
3485291f7856SCong Dang IP1SR7_3_0))
3486291f7856SCong Dang },
3487291f7856SCong Dang { PINMUX_CFG_REG_VAR("IP2SR7", 0xE6061868, 32,
3488291f7856SCong Dang GROUP(-12, 4, 4, 4, 4, 4),
3489291f7856SCong Dang GROUP(
3490291f7856SCong Dang /* IP2SR7_31_20 RESERVED */
3491291f7856SCong Dang IP2SR7_19_16
3492291f7856SCong Dang IP2SR7_15_12
3493291f7856SCong Dang IP2SR7_11_8
3494291f7856SCong Dang IP2SR7_7_4
3495291f7856SCong Dang IP2SR7_3_0))
3496291f7856SCong Dang },
3497291f7856SCong Dang #undef F_
3498291f7856SCong Dang #undef FM
3499291f7856SCong Dang
3500291f7856SCong Dang #define F_(x, y) x,
3501291f7856SCong Dang #define FM(x) FN_##x,
3502291f7856SCong Dang { PINMUX_CFG_REG_VAR("MOD_SEL4", 0xE6060100, 32,
3503291f7856SCong Dang GROUP(-24, 1, 1, 1, 1, 1, 1, 1, 1),
3504291f7856SCong Dang GROUP(
3505291f7856SCong Dang /* RESERVED 31-8 */
3506291f7856SCong Dang MOD_SEL4_7
3507291f7856SCong Dang MOD_SEL4_6
3508291f7856SCong Dang MOD_SEL4_5
3509291f7856SCong Dang MOD_SEL4_4
3510291f7856SCong Dang MOD_SEL4_3
3511291f7856SCong Dang MOD_SEL4_2
3512291f7856SCong Dang MOD_SEL4_1
3513291f7856SCong Dang MOD_SEL4_0))
3514291f7856SCong Dang },
3515291f7856SCong Dang { },
3516291f7856SCong Dang };
3517291f7856SCong Dang
3518291f7856SCong Dang static const struct pinmux_drive_reg pinmux_drive_regs[] = {
3519291f7856SCong Dang { PINMUX_DRIVE_REG("DRV0CTRL0", 0xE6050080) {
3520291f7856SCong Dang { RCAR_GP_PIN(0, 7), 28, 3 }, /* MSIOF5_SS2 */
3521291f7856SCong Dang { RCAR_GP_PIN(0, 6), 24, 3 }, /* IRQ0 */
3522291f7856SCong Dang { RCAR_GP_PIN(0, 5), 20, 3 }, /* IRQ1 */
3523291f7856SCong Dang { RCAR_GP_PIN(0, 4), 16, 3 }, /* IRQ2 */
3524291f7856SCong Dang { RCAR_GP_PIN(0, 3), 12, 3 }, /* IRQ3 */
3525291f7856SCong Dang { RCAR_GP_PIN(0, 2), 8, 3 }, /* GP0_02 */
3526291f7856SCong Dang { RCAR_GP_PIN(0, 1), 4, 3 }, /* GP0_01 */
3527291f7856SCong Dang { RCAR_GP_PIN(0, 0), 0, 3 }, /* GP0_00 */
3528291f7856SCong Dang } },
3529291f7856SCong Dang { PINMUX_DRIVE_REG("DRV1CTRL0", 0xE6050084) {
3530291f7856SCong Dang { RCAR_GP_PIN(0, 15), 28, 3 }, /* MSIOF2_SYNC */
3531291f7856SCong Dang { RCAR_GP_PIN(0, 14), 24, 3 }, /* MSIOF2_SS1 */
3532291f7856SCong Dang { RCAR_GP_PIN(0, 13), 20, 3 }, /* MSIOF2_SS2 */
3533291f7856SCong Dang { RCAR_GP_PIN(0, 12), 16, 3 }, /* MSIOF5_RXD */
3534291f7856SCong Dang { RCAR_GP_PIN(0, 11), 12, 3 }, /* MSIOF5_SCK */
3535291f7856SCong Dang { RCAR_GP_PIN(0, 10), 8, 3 }, /* MSIOF5_TXD */
3536291f7856SCong Dang { RCAR_GP_PIN(0, 9), 4, 3 }, /* MSIOF5_SYNC */
3537291f7856SCong Dang { RCAR_GP_PIN(0, 8), 0, 3 }, /* MSIOF5_SS1 */
3538291f7856SCong Dang } },
3539291f7856SCong Dang { PINMUX_DRIVE_REG("DRV2CTRL0", 0xE6050088) {
3540291f7856SCong Dang { RCAR_GP_PIN(0, 18), 8, 3 }, /* MSIOF2_RXD */
3541291f7856SCong Dang { RCAR_GP_PIN(0, 17), 4, 3 }, /* MSIOF2_SCK */
3542291f7856SCong Dang { RCAR_GP_PIN(0, 16), 0, 3 }, /* MSIOF2_TXD */
3543291f7856SCong Dang } },
3544291f7856SCong Dang { PINMUX_DRIVE_REG("DRV0CTRL1", 0xE6050880) {
3545291f7856SCong Dang { RCAR_GP_PIN(1, 7), 28, 3 }, /* MSIOF0_SS1 */
3546291f7856SCong Dang { RCAR_GP_PIN(1, 6), 24, 3 }, /* MSIOF0_SS2 */
3547291f7856SCong Dang { RCAR_GP_PIN(1, 5), 20, 3 }, /* MSIOF1_RXD */
3548291f7856SCong Dang { RCAR_GP_PIN(1, 4), 16, 3 }, /* MSIOF1_TXD */
3549291f7856SCong Dang { RCAR_GP_PIN(1, 3), 12, 3 }, /* MSIOF1_SCK */
3550291f7856SCong Dang { RCAR_GP_PIN(1, 2), 8, 3 }, /* MSIOF1_SYNC */
3551291f7856SCong Dang { RCAR_GP_PIN(1, 1), 4, 3 }, /* MSIOF1_SS1 */
3552291f7856SCong Dang { RCAR_GP_PIN(1, 0), 0, 3 }, /* MSIOF1_SS2 */
3553291f7856SCong Dang } },
3554291f7856SCong Dang { PINMUX_DRIVE_REG("DRV1CTRL1", 0xE6050884) {
3555291f7856SCong Dang { RCAR_GP_PIN(1, 15), 28, 3 }, /* HSCK0 */
3556291f7856SCong Dang { RCAR_GP_PIN(1, 14), 24, 3 }, /* HRTS0_N */
3557291f7856SCong Dang { RCAR_GP_PIN(1, 13), 20, 3 }, /* HCTS0_N */
3558291f7856SCong Dang { RCAR_GP_PIN(1, 12), 16, 3 }, /* HTX0 */
3559291f7856SCong Dang { RCAR_GP_PIN(1, 11), 12, 3 }, /* MSIOF0_RXD */
3560291f7856SCong Dang { RCAR_GP_PIN(1, 10), 8, 3 }, /* MSIOF0_SCK */
3561291f7856SCong Dang { RCAR_GP_PIN(1, 9), 4, 3 }, /* MSIOF0_TXD */
3562291f7856SCong Dang { RCAR_GP_PIN(1, 8), 0, 3 }, /* MSIOF0_SYNC */
3563291f7856SCong Dang } },
3564291f7856SCong Dang { PINMUX_DRIVE_REG("DRV2CTRL1", 0xE6050888) {
3565291f7856SCong Dang { RCAR_GP_PIN(1, 23), 28, 3 }, /* GP1_23 */
3566291f7856SCong Dang { RCAR_GP_PIN(1, 22), 24, 3 }, /* AUDIO_CLKIN */
3567291f7856SCong Dang { RCAR_GP_PIN(1, 21), 20, 3 }, /* AUDIO_CLKOUT */
3568291f7856SCong Dang { RCAR_GP_PIN(1, 20), 16, 3 }, /* SSI_SD */
3569291f7856SCong Dang { RCAR_GP_PIN(1, 19), 12, 3 }, /* SSI_WS */
3570291f7856SCong Dang { RCAR_GP_PIN(1, 18), 8, 3 }, /* SSI_SCK */
3571291f7856SCong Dang { RCAR_GP_PIN(1, 17), 4, 3 }, /* SCIF_CLK */
3572291f7856SCong Dang { RCAR_GP_PIN(1, 16), 0, 3 }, /* HRX0 */
3573291f7856SCong Dang } },
3574291f7856SCong Dang { PINMUX_DRIVE_REG("DRV3CTRL1", 0xE605088C) {
3575291f7856SCong Dang { RCAR_GP_PIN(1, 29), 20, 2 }, /* ERROROUTC_N */
3576291f7856SCong Dang { RCAR_GP_PIN(1, 28), 16, 3 }, /* HTX3 */
3577291f7856SCong Dang { RCAR_GP_PIN(1, 27), 12, 3 }, /* HCTS3_N */
3578291f7856SCong Dang { RCAR_GP_PIN(1, 26), 8, 3 }, /* HRTS3_N */
3579291f7856SCong Dang { RCAR_GP_PIN(1, 25), 4, 3 }, /* HSCK3 */
3580291f7856SCong Dang { RCAR_GP_PIN(1, 24), 0, 3 }, /* HRX3 */
3581291f7856SCong Dang } },
3582291f7856SCong Dang { PINMUX_DRIVE_REG("DRV0CTRL2", 0xE6058080) {
3583291f7856SCong Dang { RCAR_GP_PIN(2, 7), 28, 3 }, /* TPU0TO1 */
3584291f7856SCong Dang { RCAR_GP_PIN(2, 6), 24, 3 }, /* FXR_TXDB */
3585291f7856SCong Dang { RCAR_GP_PIN(2, 5), 20, 3 }, /* FXR_TXENB_N */
3586291f7856SCong Dang { RCAR_GP_PIN(2, 4), 16, 3 }, /* RXDB_EXTFXR */
3587291f7856SCong Dang { RCAR_GP_PIN(2, 3), 12, 3 }, /* CLK_EXTFXR */
3588291f7856SCong Dang { RCAR_GP_PIN(2, 2), 8, 3 }, /* RXDA_EXTFXR */
3589291f7856SCong Dang { RCAR_GP_PIN(2, 1), 4, 3 }, /* FXR_TXENA_N */
3590291f7856SCong Dang { RCAR_GP_PIN(2, 0), 0, 3 }, /* FXR_TXDA */
3591291f7856SCong Dang } },
3592291f7856SCong Dang { PINMUX_DRIVE_REG("DRV1CTRL2", 0xE6058084) {
3593291f7856SCong Dang { RCAR_GP_PIN(2, 15), 28, 3 }, /* CANFD3_RX */
3594291f7856SCong Dang { RCAR_GP_PIN(2, 14), 24, 3 }, /* CANFD3_TX */
3595291f7856SCong Dang { RCAR_GP_PIN(2, 13), 20, 3 }, /* CANFD2_RX */
3596291f7856SCong Dang { RCAR_GP_PIN(2, 12), 16, 3 }, /* CANFD2_TX */
3597291f7856SCong Dang { RCAR_GP_PIN(2, 11), 12, 3 }, /* CANFD0_RX */
3598291f7856SCong Dang { RCAR_GP_PIN(2, 10), 8, 3 }, /* CANFD0_TX */
3599291f7856SCong Dang { RCAR_GP_PIN(2, 9), 4, 3 }, /* CAN_CLK */
3600291f7856SCong Dang { RCAR_GP_PIN(2, 8), 0, 3 }, /* TPU0TO0 */
3601291f7856SCong Dang } },
3602291f7856SCong Dang { PINMUX_DRIVE_REG("DRV2CTRL2", 0xE6058088) {
3603291f7856SCong Dang { RCAR_GP_PIN(2, 19), 12, 3 }, /* CANFD1_RX */
3604291f7856SCong Dang { RCAR_GP_PIN(2, 17), 4, 3 }, /* CANFD1_TX */
3605291f7856SCong Dang } },
3606291f7856SCong Dang { PINMUX_DRIVE_REG("DRV0CTRL3", 0xE6058880) {
3607291f7856SCong Dang { RCAR_GP_PIN(3, 7), 28, 3 }, /* MMC_D4 */
3608291f7856SCong Dang { RCAR_GP_PIN(3, 6), 24, 3 }, /* MMC_D5 */
3609291f7856SCong Dang { RCAR_GP_PIN(3, 5), 20, 3 }, /* MMC_SD_D3 */
3610291f7856SCong Dang { RCAR_GP_PIN(3, 4), 16, 3 }, /* MMC_DS */
3611291f7856SCong Dang { RCAR_GP_PIN(3, 3), 12, 3 }, /* MMC_SD_CLK */
3612291f7856SCong Dang { RCAR_GP_PIN(3, 2), 8, 3 }, /* MMC_SD_D2 */
3613291f7856SCong Dang { RCAR_GP_PIN(3, 1), 4, 3 }, /* MMC_SD_D0 */
3614291f7856SCong Dang { RCAR_GP_PIN(3, 0), 0, 3 }, /* MMC_SD_D1 */
3615291f7856SCong Dang } },
3616291f7856SCong Dang { PINMUX_DRIVE_REG("DRV1CTRL3", 0xE6058884) {
3617291f7856SCong Dang { RCAR_GP_PIN(3, 15), 28, 2 }, /* QSPI0_SSL */
3618291f7856SCong Dang { RCAR_GP_PIN(3, 14), 24, 2 }, /* PWM2 */
3619291f7856SCong Dang { RCAR_GP_PIN(3, 13), 20, 2 }, /* PWM1 */
3620291f7856SCong Dang { RCAR_GP_PIN(3, 12), 16, 3 }, /* SD_WP */
3621291f7856SCong Dang { RCAR_GP_PIN(3, 11), 12, 3 }, /* SD_CD */
3622291f7856SCong Dang { RCAR_GP_PIN(3, 10), 8, 3 }, /* MMC_SD_CMD */
3623291f7856SCong Dang { RCAR_GP_PIN(3, 9), 4, 3 }, /* MMC_D6*/
3624291f7856SCong Dang { RCAR_GP_PIN(3, 8), 0, 3 }, /* MMC_D7 */
3625291f7856SCong Dang } },
3626291f7856SCong Dang { PINMUX_DRIVE_REG("DRV2CTRL3", 0xE6058888) {
3627291f7856SCong Dang { RCAR_GP_PIN(3, 23), 28, 2 }, /* QSPI1_MISO_IO1 */
3628291f7856SCong Dang { RCAR_GP_PIN(3, 22), 24, 2 }, /* QSPI1_SPCLK */
3629291f7856SCong Dang { RCAR_GP_PIN(3, 21), 20, 2 }, /* QSPI1_MOSI_IO0 */
3630291f7856SCong Dang { RCAR_GP_PIN(3, 20), 16, 2 }, /* QSPI0_SPCLK */
3631291f7856SCong Dang { RCAR_GP_PIN(3, 19), 12, 2 }, /* QSPI0_MOSI_IO0 */
3632291f7856SCong Dang { RCAR_GP_PIN(3, 18), 8, 2 }, /* QSPI0_MISO_IO1 */
3633291f7856SCong Dang { RCAR_GP_PIN(3, 17), 4, 2 }, /* QSPI0_IO2 */
3634291f7856SCong Dang { RCAR_GP_PIN(3, 16), 0, 2 }, /* QSPI0_IO3 */
3635291f7856SCong Dang } },
3636291f7856SCong Dang { PINMUX_DRIVE_REG("DRV3CTRL3", 0xE605888C) {
3637291f7856SCong Dang { RCAR_GP_PIN(3, 31), 28, 2 }, /* TCLK4 */
3638291f7856SCong Dang { RCAR_GP_PIN(3, 30), 24, 2 }, /* TCLK3 */
3639291f7856SCong Dang { RCAR_GP_PIN(3, 29), 20, 2 }, /* RPC_INT_N */
3640291f7856SCong Dang { RCAR_GP_PIN(3, 28), 16, 2 }, /* RPC_WP_N */
3641291f7856SCong Dang { RCAR_GP_PIN(3, 27), 12, 2 }, /* RPC_RESET_N */
3642291f7856SCong Dang { RCAR_GP_PIN(3, 26), 8, 2 }, /* QSPI1_IO3 */
3643291f7856SCong Dang { RCAR_GP_PIN(3, 25), 4, 2 }, /* QSPI1_SSL */
3644291f7856SCong Dang { RCAR_GP_PIN(3, 24), 0, 2 }, /* QSPI1_IO2 */
3645291f7856SCong Dang } },
3646291f7856SCong Dang { PINMUX_DRIVE_REG("DRV0CTRL4", 0xE6060080) {
3647291f7856SCong Dang { RCAR_GP_PIN(4, 7), 28, 3 }, /* SDA3 */
3648291f7856SCong Dang { RCAR_GP_PIN(4, 6), 24, 3 }, /* SCL3 */
3649291f7856SCong Dang { RCAR_GP_PIN(4, 5), 20, 3 }, /* SDA2 */
3650291f7856SCong Dang { RCAR_GP_PIN(4, 4), 16, 3 }, /* SCL2 */
3651291f7856SCong Dang { RCAR_GP_PIN(4, 3), 12, 3 }, /* SDA1 */
3652291f7856SCong Dang { RCAR_GP_PIN(4, 2), 8, 3 }, /* SCL1 */
3653291f7856SCong Dang { RCAR_GP_PIN(4, 1), 4, 3 }, /* SDA0 */
3654291f7856SCong Dang { RCAR_GP_PIN(4, 0), 0, 3 }, /* SCL0 */
3655291f7856SCong Dang } },
3656291f7856SCong Dang { PINMUX_DRIVE_REG("DRV1CTRL4", 0xE6060084) {
3657291f7856SCong Dang { RCAR_GP_PIN(4, 15), 28, 3 }, /* PWM4 */
3658291f7856SCong Dang { RCAR_GP_PIN(4, 14), 24, 3 }, /* PWM3 */
3659291f7856SCong Dang { RCAR_GP_PIN(4, 13), 20, 3 }, /* HSCK2 */
3660291f7856SCong Dang { RCAR_GP_PIN(4, 12), 16, 3 }, /* HCTS2_N */
3661291f7856SCong Dang { RCAR_GP_PIN(4, 11), 12, 3 }, /* SCIF_CLK2 */
3662291f7856SCong Dang { RCAR_GP_PIN(4, 10), 8, 3 }, /* HRTS2_N */
3663291f7856SCong Dang { RCAR_GP_PIN(4, 9), 4, 3 }, /* HTX2 */
3664291f7856SCong Dang { RCAR_GP_PIN(4, 8), 0, 3 }, /* HRX2 */
3665291f7856SCong Dang } },
3666291f7856SCong Dang { PINMUX_DRIVE_REG("DRV2CTRL4", 0xE6060088) {
3667291f7856SCong Dang { RCAR_GP_PIN(4, 23), 28, 3 }, /* AVS0 */
3668291f7856SCong Dang { RCAR_GP_PIN(4, 21), 20, 3 }, /* PCIE0_CLKREQ_N */
3669291f7856SCong Dang } },
3670291f7856SCong Dang { PINMUX_DRIVE_REG("DRV3CTRL4", 0xE606008C) {
3671291f7856SCong Dang { RCAR_GP_PIN(4, 24), 0, 3 }, /* AVS1 */
3672291f7856SCong Dang } },
3673291f7856SCong Dang { PINMUX_DRIVE_REG("DRV0CTRL5", 0xE6060880) {
3674291f7856SCong Dang { RCAR_GP_PIN(5, 7), 28, 3 }, /* AVB2_TXCREFCLK */
3675291f7856SCong Dang { RCAR_GP_PIN(5, 6), 24, 3 }, /* AVB2_MDC */
3676291f7856SCong Dang { RCAR_GP_PIN(5, 5), 20, 3 }, /* AVB2_MAGIC */
3677291f7856SCong Dang { RCAR_GP_PIN(5, 4), 16, 3 }, /* AVB2_PHY_INT */
3678291f7856SCong Dang { RCAR_GP_PIN(5, 3), 12, 3 }, /* AVB2_LINK */
3679291f7856SCong Dang { RCAR_GP_PIN(5, 2), 8, 3 }, /* AVB2_AVTP_MATCH */
3680291f7856SCong Dang { RCAR_GP_PIN(5, 1), 4, 3 }, /* AVB2_AVTP_CAPTURE */
3681291f7856SCong Dang { RCAR_GP_PIN(5, 0), 0, 3 }, /* AVB2_AVTP_PPS */
3682291f7856SCong Dang } },
3683291f7856SCong Dang { PINMUX_DRIVE_REG("DRV1CTRL5", 0xE6060884) {
3684291f7856SCong Dang { RCAR_GP_PIN(5, 15), 28, 3 }, /* AVB2_TD0 */
3685291f7856SCong Dang { RCAR_GP_PIN(5, 14), 24, 3 }, /* AVB2_RD1 */
3686291f7856SCong Dang { RCAR_GP_PIN(5, 13), 20, 3 }, /* AVB2_RD2 */
3687291f7856SCong Dang { RCAR_GP_PIN(5, 12), 16, 3 }, /* AVB2_TD1 */
3688291f7856SCong Dang { RCAR_GP_PIN(5, 11), 12, 3 }, /* AVB2_TD2 */
3689291f7856SCong Dang { RCAR_GP_PIN(5, 10), 8, 3 }, /* AVB2_MDIO */
3690291f7856SCong Dang { RCAR_GP_PIN(5, 9), 4, 3 }, /* AVB2_RD3 */
3691291f7856SCong Dang { RCAR_GP_PIN(5, 8), 0, 3 }, /* AVB2_TD3 */
3692291f7856SCong Dang } },
3693291f7856SCong Dang { PINMUX_DRIVE_REG("DRV2CTRL5", 0xE6060888) {
3694291f7856SCong Dang { RCAR_GP_PIN(5, 20), 16, 3 }, /* AVB2_RX_CTL */
3695291f7856SCong Dang { RCAR_GP_PIN(5, 19), 12, 3 }, /* AVB2_TX_CTL */
3696291f7856SCong Dang { RCAR_GP_PIN(5, 18), 8, 3 }, /* AVB2_RXC */
3697291f7856SCong Dang { RCAR_GP_PIN(5, 17), 4, 3 }, /* AVB2_RD0 */
3698291f7856SCong Dang { RCAR_GP_PIN(5, 16), 0, 3 }, /* AVB2_TXC */
3699291f7856SCong Dang } },
3700291f7856SCong Dang { PINMUX_DRIVE_REG("DRV0CTRL6", 0xE6061080) {
3701291f7856SCong Dang { RCAR_GP_PIN(6, 7), 28, 3 }, /* AVB1_TX_CTL */
3702291f7856SCong Dang { RCAR_GP_PIN(6, 6), 24, 3 }, /* AVB1_TXC */
3703291f7856SCong Dang { RCAR_GP_PIN(6, 5), 20, 3 }, /* AVB1_AVTP_MATCH */
3704291f7856SCong Dang { RCAR_GP_PIN(6, 4), 16, 3 }, /* AVB1_LINK */
3705291f7856SCong Dang { RCAR_GP_PIN(6, 3), 12, 3 }, /* AVB1_PHY_INT */
3706291f7856SCong Dang { RCAR_GP_PIN(6, 2), 8, 3 }, /* AVB1_MDC */
3707291f7856SCong Dang { RCAR_GP_PIN(6, 1), 4, 3 }, /* AVB1_MAGIC */
3708291f7856SCong Dang { RCAR_GP_PIN(6, 0), 0, 3 }, /* AVB1_MDIO */
3709291f7856SCong Dang } },
3710291f7856SCong Dang { PINMUX_DRIVE_REG("DRV1CTRL6", 0xE6061084) {
3711291f7856SCong Dang { RCAR_GP_PIN(6, 15), 28, 3 }, /* AVB1_RD0 */
3712291f7856SCong Dang { RCAR_GP_PIN(6, 14), 24, 3 }, /* AVB1_RD1 */
3713291f7856SCong Dang { RCAR_GP_PIN(6, 13), 20, 3 }, /* AVB1_TD0 */
3714291f7856SCong Dang { RCAR_GP_PIN(6, 12), 16, 3 }, /* AVB1_TD1 */
3715291f7856SCong Dang { RCAR_GP_PIN(6, 11), 12, 3 }, /* AVB1_AVTP_CAPTURE */
3716291f7856SCong Dang { RCAR_GP_PIN(6, 10), 8, 3 }, /* AVB1_AVTP_PPS */
3717291f7856SCong Dang { RCAR_GP_PIN(6, 9), 4, 3 }, /* AVB1_RX_CTL */
3718291f7856SCong Dang { RCAR_GP_PIN(6, 8), 0, 3 }, /* AVB1_RXC */
3719291f7856SCong Dang } },
3720291f7856SCong Dang { PINMUX_DRIVE_REG("DRV2CTRL6", 0xE6061088) {
3721291f7856SCong Dang { RCAR_GP_PIN(6, 20), 16, 3 }, /* AVB1_TXCREFCLK */
3722291f7856SCong Dang { RCAR_GP_PIN(6, 19), 12, 3 }, /* AVB1_RD3 */
3723291f7856SCong Dang { RCAR_GP_PIN(6, 18), 8, 3 }, /* AVB1_TD3 */
3724291f7856SCong Dang { RCAR_GP_PIN(6, 17), 4, 3 }, /* AVB1_RD2 */
3725291f7856SCong Dang { RCAR_GP_PIN(6, 16), 0, 3 }, /* AVB1_TD2 */
3726291f7856SCong Dang } },
3727291f7856SCong Dang { PINMUX_DRIVE_REG("DRV0CTRL7", 0xE6061880) {
3728291f7856SCong Dang { RCAR_GP_PIN(7, 7), 28, 3 }, /* AVB0_TD1 */
3729291f7856SCong Dang { RCAR_GP_PIN(7, 6), 24, 3 }, /* AVB0_TD2 */
3730291f7856SCong Dang { RCAR_GP_PIN(7, 5), 20, 3 }, /* AVB0_PHY_INT */
3731291f7856SCong Dang { RCAR_GP_PIN(7, 4), 16, 3 }, /* AVB0_LINK */
3732291f7856SCong Dang { RCAR_GP_PIN(7, 3), 12, 3 }, /* AVB0_TD3 */
3733291f7856SCong Dang { RCAR_GP_PIN(7, 2), 8, 3 }, /* AVB0_AVTP_MATCH */
3734291f7856SCong Dang { RCAR_GP_PIN(7, 1), 4, 3 }, /* AVB0_AVTP_CAPTURE */
3735291f7856SCong Dang { RCAR_GP_PIN(7, 0), 0, 3 }, /* AVB0_AVTP_PPS */
3736291f7856SCong Dang } },
3737291f7856SCong Dang { PINMUX_DRIVE_REG("DRV1CTRL7", 0xE6061884) {
3738291f7856SCong Dang { RCAR_GP_PIN(7, 15), 28, 3 }, /* AVB0_TXC */
3739291f7856SCong Dang { RCAR_GP_PIN(7, 14), 24, 3 }, /* AVB0_MDIO */
3740291f7856SCong Dang { RCAR_GP_PIN(7, 13), 20, 3 }, /* AVB0_MDC */
3741291f7856SCong Dang { RCAR_GP_PIN(7, 12), 16, 3 }, /* AVB0_RD2 */
3742291f7856SCong Dang { RCAR_GP_PIN(7, 11), 12, 3 }, /* AVB0_TD0 */
3743291f7856SCong Dang { RCAR_GP_PIN(7, 10), 8, 3 }, /* AVB0_MAGIC */
3744291f7856SCong Dang { RCAR_GP_PIN(7, 9), 4, 3 }, /* AVB0_TXCREFCLK */
3745291f7856SCong Dang { RCAR_GP_PIN(7, 8), 0, 3 }, /* AVB0_RD3 */
3746291f7856SCong Dang } },
3747291f7856SCong Dang { PINMUX_DRIVE_REG("DRV2CTRL7", 0xE6061888) {
3748291f7856SCong Dang { RCAR_GP_PIN(7, 20), 16, 3 }, /* AVB0_RX_CTL */
3749291f7856SCong Dang { RCAR_GP_PIN(7, 19), 12, 3 }, /* AVB0_RXC */
3750291f7856SCong Dang { RCAR_GP_PIN(7, 18), 8, 3 }, /* AVB0_RD0 */
3751291f7856SCong Dang { RCAR_GP_PIN(7, 17), 4, 3 }, /* AVB0_RD1 */
3752291f7856SCong Dang { RCAR_GP_PIN(7, 16), 0, 3 }, /* AVB0_TX_CTL */
3753291f7856SCong Dang } },
3754291f7856SCong Dang { },
3755291f7856SCong Dang };
3756291f7856SCong Dang
3757291f7856SCong Dang enum ioctrl_regs {
3758291f7856SCong Dang POC0,
3759291f7856SCong Dang POC1,
3760291f7856SCong Dang POC3,
3761291f7856SCong Dang POC4,
3762291f7856SCong Dang POC5,
3763291f7856SCong Dang POC6,
3764291f7856SCong Dang POC7,
3765291f7856SCong Dang };
3766291f7856SCong Dang
3767291f7856SCong Dang static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] = {
3768291f7856SCong Dang [POC0] = { 0xE60500A0, },
3769291f7856SCong Dang [POC1] = { 0xE60508A0, },
3770291f7856SCong Dang [POC3] = { 0xE60588A0, },
3771291f7856SCong Dang [POC4] = { 0xE60600A0, },
3772291f7856SCong Dang [POC5] = { 0xE60608A0, },
3773291f7856SCong Dang [POC6] = { 0xE60610A0, },
3774291f7856SCong Dang [POC7] = { 0xE60618A0, },
3775291f7856SCong Dang { /* sentinel */ },
3776291f7856SCong Dang };
3777291f7856SCong Dang
r8a779h0_pin_to_pocctrl(unsigned int pin,u32 * pocctrl)3778291f7856SCong Dang static int r8a779h0_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
3779291f7856SCong Dang {
3780291f7856SCong Dang int bit = pin & 0x1f;
3781291f7856SCong Dang
3782291f7856SCong Dang switch (pin) {
3783291f7856SCong Dang case RCAR_GP_PIN(0, 0) ... RCAR_GP_PIN(0, 18):
3784291f7856SCong Dang *pocctrl = pinmux_ioctrl_regs[POC0].reg;
3785291f7856SCong Dang return bit;
3786291f7856SCong Dang
3787291f7856SCong Dang case RCAR_GP_PIN(1, 0) ... RCAR_GP_PIN(1, 28):
3788291f7856SCong Dang *pocctrl = pinmux_ioctrl_regs[POC1].reg;
3789291f7856SCong Dang return bit;
3790291f7856SCong Dang
3791291f7856SCong Dang case RCAR_GP_PIN(3, 0) ... RCAR_GP_PIN(3, 12):
3792291f7856SCong Dang *pocctrl = pinmux_ioctrl_regs[POC3].reg;
3793291f7856SCong Dang return bit;
3794291f7856SCong Dang
3795291f7856SCong Dang case RCAR_GP_PIN(4, 0) ... RCAR_GP_PIN(4, 13):
3796291f7856SCong Dang *pocctrl = pinmux_ioctrl_regs[POC4].reg;
3797291f7856SCong Dang return bit;
3798291f7856SCong Dang
3799291f7856SCong Dang case PIN_VDDQ_AVB2:
3800291f7856SCong Dang *pocctrl = pinmux_ioctrl_regs[POC5].reg;
3801291f7856SCong Dang return 0;
3802291f7856SCong Dang
3803291f7856SCong Dang case PIN_VDDQ_AVB1:
3804291f7856SCong Dang *pocctrl = pinmux_ioctrl_regs[POC6].reg;
3805291f7856SCong Dang return 0;
3806291f7856SCong Dang
3807291f7856SCong Dang case PIN_VDDQ_AVB0:
3808291f7856SCong Dang *pocctrl = pinmux_ioctrl_regs[POC7].reg;
3809291f7856SCong Dang return 0;
3810291f7856SCong Dang
3811291f7856SCong Dang default:
3812291f7856SCong Dang return -EINVAL;
3813291f7856SCong Dang }
3814291f7856SCong Dang }
3815291f7856SCong Dang
3816291f7856SCong Dang static const struct pinmux_bias_reg pinmux_bias_regs[] = {
3817291f7856SCong Dang { PINMUX_BIAS_REG("PUEN0", 0xE60500C0, "PUD0", 0xE60500E0) {
3818291f7856SCong Dang [ 0] = RCAR_GP_PIN(0, 0), /* GP0_00 */
3819291f7856SCong Dang [ 1] = RCAR_GP_PIN(0, 1), /* GP0_01 */
3820291f7856SCong Dang [ 2] = RCAR_GP_PIN(0, 2), /* GP0_02 */
3821291f7856SCong Dang [ 3] = RCAR_GP_PIN(0, 3), /* IRQ3 */
3822291f7856SCong Dang [ 4] = RCAR_GP_PIN(0, 4), /* IRQ2 */
3823291f7856SCong Dang [ 5] = RCAR_GP_PIN(0, 5), /* IRQ1 */
3824291f7856SCong Dang [ 6] = RCAR_GP_PIN(0, 6), /* IRQ0 */
3825291f7856SCong Dang [ 7] = RCAR_GP_PIN(0, 7), /* MSIOF5_SS2 */
3826291f7856SCong Dang [ 8] = RCAR_GP_PIN(0, 8), /* MSIOF5_SS1 */
3827291f7856SCong Dang [ 9] = RCAR_GP_PIN(0, 9), /* MSIOF5_SYNC */
3828291f7856SCong Dang [10] = RCAR_GP_PIN(0, 10), /* MSIOF5_TXD */
3829291f7856SCong Dang [11] = RCAR_GP_PIN(0, 11), /* MSIOF5_SCK */
3830291f7856SCong Dang [12] = RCAR_GP_PIN(0, 12), /* MSIOF5_RXD */
3831291f7856SCong Dang [13] = RCAR_GP_PIN(0, 13), /* MSIOF2_SS2 */
3832291f7856SCong Dang [14] = RCAR_GP_PIN(0, 14), /* MSIOF2_SS1 */
3833291f7856SCong Dang [15] = RCAR_GP_PIN(0, 15), /* MSIOF2_SYNC */
3834291f7856SCong Dang [16] = RCAR_GP_PIN(0, 16), /* MSIOF2_TXD */
3835291f7856SCong Dang [17] = RCAR_GP_PIN(0, 17), /* MSIOF2_SCK */
3836291f7856SCong Dang [18] = RCAR_GP_PIN(0, 18), /* MSIOF2_RXD */
3837291f7856SCong Dang [19] = SH_PFC_PIN_NONE,
3838291f7856SCong Dang [20] = SH_PFC_PIN_NONE,
3839291f7856SCong Dang [21] = SH_PFC_PIN_NONE,
3840291f7856SCong Dang [22] = SH_PFC_PIN_NONE,
3841291f7856SCong Dang [23] = SH_PFC_PIN_NONE,
3842291f7856SCong Dang [24] = SH_PFC_PIN_NONE,
3843291f7856SCong Dang [25] = SH_PFC_PIN_NONE,
3844291f7856SCong Dang [26] = SH_PFC_PIN_NONE,
3845291f7856SCong Dang [27] = SH_PFC_PIN_NONE,
3846291f7856SCong Dang [28] = SH_PFC_PIN_NONE,
3847291f7856SCong Dang [29] = SH_PFC_PIN_NONE,
3848291f7856SCong Dang [30] = SH_PFC_PIN_NONE,
3849291f7856SCong Dang [31] = SH_PFC_PIN_NONE,
3850291f7856SCong Dang } },
3851291f7856SCong Dang { PINMUX_BIAS_REG("PUEN1", 0xE60508C0, "PUD1", 0xE60508E0) {
3852291f7856SCong Dang [ 0] = RCAR_GP_PIN(1, 0), /* MSIOF1_SS2 */
3853291f7856SCong Dang [ 1] = RCAR_GP_PIN(1, 1), /* MSIOF1_SS1 */
3854291f7856SCong Dang [ 2] = RCAR_GP_PIN(1, 2), /* MSIOF1_SYNC */
3855291f7856SCong Dang [ 3] = RCAR_GP_PIN(1, 3), /* MSIOF1_SCK */
3856291f7856SCong Dang [ 4] = RCAR_GP_PIN(1, 4), /* MSIOF1_TXD */
3857291f7856SCong Dang [ 5] = RCAR_GP_PIN(1, 5), /* MSIOF1_RXD */
3858291f7856SCong Dang [ 6] = RCAR_GP_PIN(1, 6), /* MSIOF0_SS2 */
3859291f7856SCong Dang [ 7] = RCAR_GP_PIN(1, 7), /* MSIOF0_SS1 */
3860291f7856SCong Dang [ 8] = RCAR_GP_PIN(1, 8), /* MSIOF0_SYNC */
3861291f7856SCong Dang [ 9] = RCAR_GP_PIN(1, 9), /* MSIOF0_TXD */
3862291f7856SCong Dang [10] = RCAR_GP_PIN(1, 10), /* MSIOF0_SCK */
3863291f7856SCong Dang [11] = RCAR_GP_PIN(1, 11), /* MSIOF0_RXD */
3864291f7856SCong Dang [12] = RCAR_GP_PIN(1, 12), /* HTX0 */
3865291f7856SCong Dang [13] = RCAR_GP_PIN(1, 13), /* HCTS0_N */
3866291f7856SCong Dang [14] = RCAR_GP_PIN(1, 14), /* HRTS0_N */
3867291f7856SCong Dang [15] = RCAR_GP_PIN(1, 15), /* HSCK0 */
3868291f7856SCong Dang [16] = RCAR_GP_PIN(1, 16), /* HRX0 */
3869291f7856SCong Dang [17] = RCAR_GP_PIN(1, 17), /* SCIF_CLK */
3870291f7856SCong Dang [18] = RCAR_GP_PIN(1, 18), /* SSI_SCK */
3871291f7856SCong Dang [19] = RCAR_GP_PIN(1, 19), /* SSI_WS */
3872291f7856SCong Dang [20] = RCAR_GP_PIN(1, 20), /* SSI_SD */
3873291f7856SCong Dang [21] = RCAR_GP_PIN(1, 21), /* AUDIO_CLKOUT */
3874291f7856SCong Dang [22] = RCAR_GP_PIN(1, 22), /* AUDIO_CLKIN */
3875291f7856SCong Dang [23] = RCAR_GP_PIN(1, 23), /* GP1_23 */
3876291f7856SCong Dang [24] = RCAR_GP_PIN(1, 24), /* HRX3 */
3877291f7856SCong Dang [25] = RCAR_GP_PIN(1, 25), /* HSCK3 */
3878291f7856SCong Dang [26] = RCAR_GP_PIN(1, 26), /* HRTS3_N */
3879291f7856SCong Dang [27] = RCAR_GP_PIN(1, 27), /* HCTS3_N */
3880291f7856SCong Dang [28] = RCAR_GP_PIN(1, 28), /* HTX3 */
3881291f7856SCong Dang [29] = RCAR_GP_PIN(1, 29), /* ERROROUTC_N */
3882291f7856SCong Dang [30] = SH_PFC_PIN_NONE,
3883291f7856SCong Dang [31] = SH_PFC_PIN_NONE,
3884291f7856SCong Dang } },
3885291f7856SCong Dang { PINMUX_BIAS_REG("PUEN2", 0xE60580C0, "PUD2", 0xE60580E0) {
3886291f7856SCong Dang [ 0] = RCAR_GP_PIN(2, 0), /* FXR_TXDA */
3887291f7856SCong Dang [ 1] = RCAR_GP_PIN(2, 1), /* FXR_TXENA_N */
3888291f7856SCong Dang [ 2] = RCAR_GP_PIN(2, 2), /* RXDA_EXTFXR */
3889291f7856SCong Dang [ 3] = RCAR_GP_PIN(2, 3), /* CLK_EXTFXR */
3890291f7856SCong Dang [ 4] = RCAR_GP_PIN(2, 4), /* RXDB_EXTFXR */
3891291f7856SCong Dang [ 5] = RCAR_GP_PIN(2, 5), /* FXR_TXENB_N */
3892291f7856SCong Dang [ 6] = RCAR_GP_PIN(2, 6), /* FXR_TXDB */
3893291f7856SCong Dang [ 7] = RCAR_GP_PIN(2, 7), /* TPU0TO1 */
3894291f7856SCong Dang [ 8] = RCAR_GP_PIN(2, 8), /* TPU0TO0 */
3895291f7856SCong Dang [ 9] = RCAR_GP_PIN(2, 9), /* CAN_CLK */
3896291f7856SCong Dang [10] = RCAR_GP_PIN(2, 10), /* CANFD0_TX */
3897291f7856SCong Dang [11] = RCAR_GP_PIN(2, 11), /* CANFD0_RX */
3898291f7856SCong Dang [12] = RCAR_GP_PIN(2, 12), /* CANFD2_TX */
3899291f7856SCong Dang [13] = RCAR_GP_PIN(2, 13), /* CANFD2_RX */
3900291f7856SCong Dang [14] = RCAR_GP_PIN(2, 14), /* CANFD3_TX */
3901291f7856SCong Dang [15] = RCAR_GP_PIN(2, 15), /* CANFD3_RX */
3902291f7856SCong Dang [16] = SH_PFC_PIN_NONE,
3903291f7856SCong Dang [17] = RCAR_GP_PIN(2, 17), /* CANFD1_TX */
3904291f7856SCong Dang [18] = SH_PFC_PIN_NONE,
3905291f7856SCong Dang [19] = RCAR_GP_PIN(2, 19), /* CANFD1_RX */
3906291f7856SCong Dang [20] = SH_PFC_PIN_NONE,
3907291f7856SCong Dang [21] = SH_PFC_PIN_NONE,
3908291f7856SCong Dang [22] = SH_PFC_PIN_NONE,
3909291f7856SCong Dang [23] = SH_PFC_PIN_NONE,
3910291f7856SCong Dang [24] = SH_PFC_PIN_NONE,
3911291f7856SCong Dang [25] = SH_PFC_PIN_NONE,
3912291f7856SCong Dang [26] = SH_PFC_PIN_NONE,
3913291f7856SCong Dang [27] = SH_PFC_PIN_NONE,
3914291f7856SCong Dang [28] = SH_PFC_PIN_NONE,
3915291f7856SCong Dang [29] = SH_PFC_PIN_NONE,
3916291f7856SCong Dang [30] = SH_PFC_PIN_NONE,
3917291f7856SCong Dang [31] = SH_PFC_PIN_NONE,
3918291f7856SCong Dang } },
3919291f7856SCong Dang { PINMUX_BIAS_REG("PUEN3", 0xE60588C0, "PUD3", 0xE60588E0) {
3920291f7856SCong Dang [ 0] = RCAR_GP_PIN(3, 0), /* MMC_SD_D1 */
3921291f7856SCong Dang [ 1] = RCAR_GP_PIN(3, 1), /* MMC_SD_D0 */
3922291f7856SCong Dang [ 2] = RCAR_GP_PIN(3, 2), /* MMC_SD_D2 */
3923291f7856SCong Dang [ 3] = RCAR_GP_PIN(3, 3), /* MMC_SD_CLK */
3924291f7856SCong Dang [ 4] = RCAR_GP_PIN(3, 4), /* MMC_DS */
3925291f7856SCong Dang [ 5] = RCAR_GP_PIN(3, 5), /* MMC_SD_D3 */
3926291f7856SCong Dang [ 6] = RCAR_GP_PIN(3, 6), /* MMC_D5 */
3927291f7856SCong Dang [ 7] = RCAR_GP_PIN(3, 7), /* MMC_D4 */
3928291f7856SCong Dang [ 8] = RCAR_GP_PIN(3, 8), /* MMC_D7 */
3929291f7856SCong Dang [ 9] = RCAR_GP_PIN(3, 9), /* MMC_D6 */
3930291f7856SCong Dang [10] = RCAR_GP_PIN(3, 10), /* MMC_SD_CMD */
3931291f7856SCong Dang [11] = RCAR_GP_PIN(3, 11), /* SD_CD */
3932291f7856SCong Dang [12] = RCAR_GP_PIN(3, 12), /* SD_WP */
3933291f7856SCong Dang [13] = RCAR_GP_PIN(3, 13), /* PWM1 */
3934291f7856SCong Dang [14] = RCAR_GP_PIN(3, 14), /* PWM2 */
3935291f7856SCong Dang [15] = RCAR_GP_PIN(3, 15), /* QSPI0_SSL */
3936291f7856SCong Dang [16] = RCAR_GP_PIN(3, 16), /* QSPI0_IO3 */
3937291f7856SCong Dang [17] = RCAR_GP_PIN(3, 17), /* QSPI0_IO2 */
3938291f7856SCong Dang [18] = RCAR_GP_PIN(3, 18), /* QSPI0_MISO_IO1 */
3939291f7856SCong Dang [19] = RCAR_GP_PIN(3, 19), /* QSPI0_MOSI_IO0 */
3940291f7856SCong Dang [20] = RCAR_GP_PIN(3, 20), /* QSPI0_SPCLK */
3941291f7856SCong Dang [21] = RCAR_GP_PIN(3, 21), /* QSPI1_MOSI_IO0 */
3942291f7856SCong Dang [22] = RCAR_GP_PIN(3, 22), /* QSPI1_SPCLK */
3943291f7856SCong Dang [23] = RCAR_GP_PIN(3, 23), /* QSPI1_MISO_IO1 */
3944291f7856SCong Dang [24] = RCAR_GP_PIN(3, 24), /* QSPI1_IO2 */
3945291f7856SCong Dang [25] = RCAR_GP_PIN(3, 25), /* QSPI1_SSL */
3946291f7856SCong Dang [26] = RCAR_GP_PIN(3, 26), /* QSPI1_IO3 */
3947291f7856SCong Dang [27] = RCAR_GP_PIN(3, 27), /* RPC_RESET_N */
3948291f7856SCong Dang [28] = RCAR_GP_PIN(3, 28), /* RPC_WP_N */
3949291f7856SCong Dang [29] = RCAR_GP_PIN(3, 29), /* RPC_INT_N */
3950291f7856SCong Dang [30] = RCAR_GP_PIN(3, 30), /* TCLK3 */
3951291f7856SCong Dang [31] = RCAR_GP_PIN(3, 31), /* TCLK4 */
3952291f7856SCong Dang } },
3953291f7856SCong Dang { PINMUX_BIAS_REG("PUEN4", 0xE60600C0, "PUD4", 0xE60600E0) {
3954291f7856SCong Dang [ 0] = RCAR_GP_PIN(4, 0), /* SCL0 */
3955291f7856SCong Dang [ 1] = RCAR_GP_PIN(4, 1), /* SDA0 */
3956291f7856SCong Dang [ 2] = RCAR_GP_PIN(4, 2), /* SCL1 */
3957291f7856SCong Dang [ 3] = RCAR_GP_PIN(4, 3), /* SDA1 */
3958291f7856SCong Dang [ 4] = RCAR_GP_PIN(4, 4), /* SCL2 */
3959291f7856SCong Dang [ 5] = RCAR_GP_PIN(4, 5), /* SDA2 */
3960291f7856SCong Dang [ 6] = RCAR_GP_PIN(4, 6), /* SCL3 */
3961291f7856SCong Dang [ 7] = RCAR_GP_PIN(4, 7), /* SDA3 */
3962291f7856SCong Dang [ 8] = RCAR_GP_PIN(4, 8), /* HRX2 */
3963291f7856SCong Dang [ 9] = RCAR_GP_PIN(4, 9), /* HTX2 */
3964291f7856SCong Dang [10] = RCAR_GP_PIN(4, 10), /* HRTS2_N */
3965291f7856SCong Dang [11] = RCAR_GP_PIN(4, 11), /* SCIF_CLK2 */
3966291f7856SCong Dang [12] = RCAR_GP_PIN(4, 12), /* HCTS2_N */
3967291f7856SCong Dang [13] = RCAR_GP_PIN(4, 13), /* HSCK2 */
3968291f7856SCong Dang [14] = RCAR_GP_PIN(4, 14), /* PWM3 */
3969291f7856SCong Dang [15] = RCAR_GP_PIN(4, 15), /* PWM4 */
3970291f7856SCong Dang [16] = SH_PFC_PIN_NONE,
3971291f7856SCong Dang [17] = SH_PFC_PIN_NONE,
3972291f7856SCong Dang [18] = SH_PFC_PIN_NONE,
3973291f7856SCong Dang [19] = SH_PFC_PIN_NONE,
3974291f7856SCong Dang [20] = SH_PFC_PIN_NONE,
3975291f7856SCong Dang [21] = RCAR_GP_PIN(4, 21), /* PCIE0_CLKREQ_N */
3976291f7856SCong Dang [22] = SH_PFC_PIN_NONE,
3977291f7856SCong Dang [23] = RCAR_GP_PIN(4, 23), /* AVS0 */
3978291f7856SCong Dang [24] = RCAR_GP_PIN(4, 24), /* AVS1 */
3979291f7856SCong Dang [25] = SH_PFC_PIN_NONE,
3980291f7856SCong Dang [26] = SH_PFC_PIN_NONE,
3981291f7856SCong Dang [27] = SH_PFC_PIN_NONE,
3982291f7856SCong Dang [28] = SH_PFC_PIN_NONE,
3983291f7856SCong Dang [29] = SH_PFC_PIN_NONE,
3984291f7856SCong Dang [30] = SH_PFC_PIN_NONE,
3985291f7856SCong Dang [31] = SH_PFC_PIN_NONE,
3986291f7856SCong Dang } },
3987291f7856SCong Dang { PINMUX_BIAS_REG("PUEN5", 0xE60608C0, "PUD5", 0xE60608E0) {
3988291f7856SCong Dang [ 0] = RCAR_GP_PIN(5, 0), /* AVB2_AVTP_PPS */
3989291f7856SCong Dang [ 1] = RCAR_GP_PIN(5, 1), /* AVB0_AVTP_CAPTURE */
3990291f7856SCong Dang [ 2] = RCAR_GP_PIN(5, 2), /* AVB2_AVTP_MATCH */
3991291f7856SCong Dang [ 3] = RCAR_GP_PIN(5, 3), /* AVB2_LINK */
3992291f7856SCong Dang [ 4] = RCAR_GP_PIN(5, 4), /* AVB2_PHY_INT */
3993291f7856SCong Dang [ 5] = RCAR_GP_PIN(5, 5), /* AVB2_MAGIC */
3994291f7856SCong Dang [ 6] = RCAR_GP_PIN(5, 6), /* AVB2_MDC */
3995291f7856SCong Dang [ 7] = RCAR_GP_PIN(5, 7), /* AVB2_TXCREFCLK */
3996291f7856SCong Dang [ 8] = RCAR_GP_PIN(5, 8), /* AVB2_TD3 */
3997291f7856SCong Dang [ 9] = RCAR_GP_PIN(5, 9), /* AVB2_RD3 */
3998291f7856SCong Dang [10] = RCAR_GP_PIN(5, 10), /* AVB2_MDIO */
3999291f7856SCong Dang [11] = RCAR_GP_PIN(5, 11), /* AVB2_TD2 */
4000291f7856SCong Dang [12] = RCAR_GP_PIN(5, 12), /* AVB2_TD1 */
4001291f7856SCong Dang [13] = RCAR_GP_PIN(5, 13), /* AVB2_RD2 */
4002291f7856SCong Dang [14] = RCAR_GP_PIN(5, 14), /* AVB2_RD1 */
4003291f7856SCong Dang [15] = RCAR_GP_PIN(5, 15), /* AVB2_TD0 */
4004291f7856SCong Dang [16] = RCAR_GP_PIN(5, 16), /* AVB2_TXC */
4005291f7856SCong Dang [17] = RCAR_GP_PIN(5, 17), /* AVB2_RD0 */
4006291f7856SCong Dang [18] = RCAR_GP_PIN(5, 18), /* AVB2_RXC */
4007291f7856SCong Dang [19] = RCAR_GP_PIN(5, 19), /* AVB2_TX_CTL */
4008291f7856SCong Dang [20] = RCAR_GP_PIN(5, 20), /* AVB2_RX_CTL */
4009291f7856SCong Dang [21] = SH_PFC_PIN_NONE,
4010291f7856SCong Dang [22] = SH_PFC_PIN_NONE,
4011291f7856SCong Dang [23] = SH_PFC_PIN_NONE,
4012291f7856SCong Dang [24] = SH_PFC_PIN_NONE,
4013291f7856SCong Dang [25] = SH_PFC_PIN_NONE,
4014291f7856SCong Dang [26] = SH_PFC_PIN_NONE,
4015291f7856SCong Dang [27] = SH_PFC_PIN_NONE,
4016291f7856SCong Dang [28] = SH_PFC_PIN_NONE,
4017291f7856SCong Dang [29] = SH_PFC_PIN_NONE,
4018291f7856SCong Dang [30] = SH_PFC_PIN_NONE,
4019291f7856SCong Dang [31] = SH_PFC_PIN_NONE,
4020291f7856SCong Dang } },
4021291f7856SCong Dang { PINMUX_BIAS_REG("PUEN6", 0xE60610C0, "PUD6", 0xE60610E0) {
4022291f7856SCong Dang [ 0] = RCAR_GP_PIN(6, 0), /* AVB1_MDIO */
4023291f7856SCong Dang [ 1] = RCAR_GP_PIN(6, 1), /* AVB1_MAGIC */
4024291f7856SCong Dang [ 2] = RCAR_GP_PIN(6, 2), /* AVB1_MDC */
4025291f7856SCong Dang [ 3] = RCAR_GP_PIN(6, 3), /* AVB1_PHY_INT */
4026291f7856SCong Dang [ 4] = RCAR_GP_PIN(6, 4), /* AVB1_LINK */
4027291f7856SCong Dang [ 5] = RCAR_GP_PIN(6, 5), /* AVB1_AVTP_MATCH */
4028291f7856SCong Dang [ 6] = RCAR_GP_PIN(6, 6), /* AVB1_TXC */
4029291f7856SCong Dang [ 7] = RCAR_GP_PIN(6, 7), /* AVB1_TX_CTL */
4030291f7856SCong Dang [ 8] = RCAR_GP_PIN(6, 8), /* AVB1_RXC */
4031291f7856SCong Dang [ 9] = RCAR_GP_PIN(6, 9), /* AVB1_RX_CTL */
4032291f7856SCong Dang [10] = RCAR_GP_PIN(6, 10), /* AVB1_AVTP_PPS */
4033291f7856SCong Dang [11] = RCAR_GP_PIN(6, 11), /* AVB1_AVTP_CAPTURE */
4034291f7856SCong Dang [12] = RCAR_GP_PIN(6, 12), /* AVB1_TD1 */
4035291f7856SCong Dang [13] = RCAR_GP_PIN(6, 13), /* AVB1_TD0 */
4036291f7856SCong Dang [14] = RCAR_GP_PIN(6, 14), /* AVB1_RD1*/
4037291f7856SCong Dang [15] = RCAR_GP_PIN(6, 15), /* AVB1_RD0 */
4038291f7856SCong Dang [16] = RCAR_GP_PIN(6, 16), /* AVB1_TD2 */
4039291f7856SCong Dang [17] = RCAR_GP_PIN(6, 17), /* AVB1_RD2 */
4040291f7856SCong Dang [18] = RCAR_GP_PIN(6, 18), /* AVB1_TD3 */
4041291f7856SCong Dang [19] = RCAR_GP_PIN(6, 19), /* AVB1_RD3 */
4042291f7856SCong Dang [20] = RCAR_GP_PIN(6, 20), /* AVB1_TXCREFCLK */
4043291f7856SCong Dang [21] = SH_PFC_PIN_NONE,
4044291f7856SCong Dang [22] = SH_PFC_PIN_NONE,
4045291f7856SCong Dang [23] = SH_PFC_PIN_NONE,
4046291f7856SCong Dang [24] = SH_PFC_PIN_NONE,
4047291f7856SCong Dang [25] = SH_PFC_PIN_NONE,
4048291f7856SCong Dang [26] = SH_PFC_PIN_NONE,
4049291f7856SCong Dang [27] = SH_PFC_PIN_NONE,
4050291f7856SCong Dang [28] = SH_PFC_PIN_NONE,
4051291f7856SCong Dang [29] = SH_PFC_PIN_NONE,
4052291f7856SCong Dang [30] = SH_PFC_PIN_NONE,
4053291f7856SCong Dang [31] = SH_PFC_PIN_NONE,
4054291f7856SCong Dang } },
4055291f7856SCong Dang { PINMUX_BIAS_REG("PUEN7", 0xE60618C0, "PUD7", 0xE60618E0) {
4056291f7856SCong Dang [ 0] = RCAR_GP_PIN(7, 0), /* AVB0_AVTP_PPS */
4057291f7856SCong Dang [ 1] = RCAR_GP_PIN(7, 1), /* AVB0_AVTP_CAPTURE */
4058291f7856SCong Dang [ 2] = RCAR_GP_PIN(7, 2), /* AVB0_AVTP_MATCH */
4059291f7856SCong Dang [ 3] = RCAR_GP_PIN(7, 3), /* AVB0_TD3 */
4060291f7856SCong Dang [ 4] = RCAR_GP_PIN(7, 4), /* AVB0_LINK */
4061291f7856SCong Dang [ 5] = RCAR_GP_PIN(7, 5), /* AVB0_PHY_INT */
4062291f7856SCong Dang [ 6] = RCAR_GP_PIN(7, 6), /* AVB0_TD2 */
4063291f7856SCong Dang [ 7] = RCAR_GP_PIN(7, 7), /* AVB0_TD1 */
4064291f7856SCong Dang [ 8] = RCAR_GP_PIN(7, 8), /* AVB0_RD3 */
4065291f7856SCong Dang [ 9] = RCAR_GP_PIN(7, 9), /* AVB0_TXCREFCLK */
4066291f7856SCong Dang [10] = RCAR_GP_PIN(7, 10), /* AVB0_MAGIC */
4067291f7856SCong Dang [11] = RCAR_GP_PIN(7, 11), /* AVB0_TD0 */
4068291f7856SCong Dang [12] = RCAR_GP_PIN(7, 12), /* AVB0_RD2 */
4069291f7856SCong Dang [13] = RCAR_GP_PIN(7, 13), /* AVB0_MDC */
4070291f7856SCong Dang [14] = RCAR_GP_PIN(7, 14), /* AVB0_MDIO */
4071291f7856SCong Dang [15] = RCAR_GP_PIN(7, 15), /* AVB0_TXC */
4072291f7856SCong Dang [16] = RCAR_GP_PIN(7, 16), /* AVB0_TX_CTL */
4073291f7856SCong Dang [17] = RCAR_GP_PIN(7, 17), /* AVB0_RD1 */
4074291f7856SCong Dang [18] = RCAR_GP_PIN(7, 18), /* AVB0_RD0 */
4075291f7856SCong Dang [19] = RCAR_GP_PIN(7, 19), /* AVB0_RXC */
4076291f7856SCong Dang [20] = RCAR_GP_PIN(7, 20), /* AVB0_RX_CTL */
4077291f7856SCong Dang [21] = SH_PFC_PIN_NONE,
4078291f7856SCong Dang [22] = SH_PFC_PIN_NONE,
4079291f7856SCong Dang [23] = SH_PFC_PIN_NONE,
4080291f7856SCong Dang [24] = SH_PFC_PIN_NONE,
4081291f7856SCong Dang [25] = SH_PFC_PIN_NONE,
4082291f7856SCong Dang [26] = SH_PFC_PIN_NONE,
4083291f7856SCong Dang [27] = SH_PFC_PIN_NONE,
4084291f7856SCong Dang [28] = SH_PFC_PIN_NONE,
4085291f7856SCong Dang [29] = SH_PFC_PIN_NONE,
4086291f7856SCong Dang [30] = SH_PFC_PIN_NONE,
4087291f7856SCong Dang [31] = SH_PFC_PIN_NONE,
4088291f7856SCong Dang } },
4089291f7856SCong Dang { /* sentinel */ },
4090291f7856SCong Dang };
4091291f7856SCong Dang
4092291f7856SCong Dang static const struct sh_pfc_soc_operations r8a779h0_pin_ops = {
4093291f7856SCong Dang .pin_to_pocctrl = r8a779h0_pin_to_pocctrl,
4094291f7856SCong Dang .get_bias = rcar_pinmux_get_bias,
4095291f7856SCong Dang .set_bias = rcar_pinmux_set_bias,
4096291f7856SCong Dang };
4097291f7856SCong Dang
4098291f7856SCong Dang const struct sh_pfc_soc_info r8a779h0_pinmux_info = {
4099291f7856SCong Dang .name = "r8a779h0_pfc",
4100291f7856SCong Dang .ops = &r8a779h0_pin_ops,
4101291f7856SCong Dang .unlock_reg = 0x1ff, /* PMMRn mask */
4102291f7856SCong Dang
4103291f7856SCong Dang .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
4104291f7856SCong Dang
4105291f7856SCong Dang .pins = pinmux_pins,
4106291f7856SCong Dang .nr_pins = ARRAY_SIZE(pinmux_pins),
4107291f7856SCong Dang .groups = pinmux_groups,
4108291f7856SCong Dang .nr_groups = ARRAY_SIZE(pinmux_groups),
4109291f7856SCong Dang .functions = pinmux_functions,
4110291f7856SCong Dang .nr_functions = ARRAY_SIZE(pinmux_functions),
4111291f7856SCong Dang
4112291f7856SCong Dang .cfg_regs = pinmux_config_regs,
4113291f7856SCong Dang .drive_regs = pinmux_drive_regs,
4114291f7856SCong Dang .bias_regs = pinmux_bias_regs,
4115291f7856SCong Dang .ioctrl_regs = pinmux_ioctrl_regs,
4116291f7856SCong Dang
4117291f7856SCong Dang .pinmux_data = pinmux_data,
4118291f7856SCong Dang .pinmux_data_size = ARRAY_SIZE(pinmux_data),
4119291f7856SCong Dang };
4120