blob: 2f09e767288ee118181252e291a142a1715d1ffb [file] [log] [blame]
Hai Pham6c45a3c2024-01-28 16:52:03 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * R8A779H0 processor support - PFC hardware block.
4 *
5 * Copyright (C) 2023 Renesas Electronics Corp.
6 *
7 * This file is based on the drivers/pinctrl/renesas/pfc-r8a779a0.c
8 */
9
10#include <dm.h>
11#include <errno.h>
12#include <dm/pinctrl.h>
13#include <linux/bitops.h>
14#include <linux/kernel.h>
15
16#include "sh_pfc.h"
17
18#define CFG_FLAGS (SH_PFC_PIN_CFG_DRIVE_STRENGTH | SH_PFC_PIN_CFG_PULL_UP_DOWN)
19
20#define CPU_ALL_GP(fn, sfx) \
21 PORT_GP_CFG_19(0, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
22 PORT_GP_CFG_29(1, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
23 PORT_GP_CFG_1(1, 29, fn, sfx, CFG_FLAGS), \
24 PORT_GP_CFG_16(2, fn, sfx, CFG_FLAGS), \
25 PORT_GP_CFG_1(2, 17, fn, sfx, CFG_FLAGS), \
26 PORT_GP_CFG_1(2, 19, fn, sfx, CFG_FLAGS), \
27 PORT_GP_CFG_13(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
28 PORT_GP_CFG_1(3, 13, fn, sfx, CFG_FLAGS), \
29 PORT_GP_CFG_1(3, 14, fn, sfx, CFG_FLAGS), \
30 PORT_GP_CFG_1(3, 15, fn, sfx, CFG_FLAGS), \
31 PORT_GP_CFG_1(3, 16, fn, sfx, CFG_FLAGS), \
32 PORT_GP_CFG_1(3, 17, fn, sfx, CFG_FLAGS), \
33 PORT_GP_CFG_1(3, 18, fn, sfx, CFG_FLAGS), \
34 PORT_GP_CFG_1(3, 19, fn, sfx, CFG_FLAGS), \
35 PORT_GP_CFG_1(3, 20, fn, sfx, CFG_FLAGS), \
36 PORT_GP_CFG_1(3, 21, fn, sfx, CFG_FLAGS), \
37 PORT_GP_CFG_1(3, 22, fn, sfx, CFG_FLAGS), \
38 PORT_GP_CFG_1(3, 23, fn, sfx, CFG_FLAGS), \
39 PORT_GP_CFG_1(3, 24, fn, sfx, CFG_FLAGS), \
40 PORT_GP_CFG_1(3, 25, fn, sfx, CFG_FLAGS), \
41 PORT_GP_CFG_1(3, 26, fn, sfx, CFG_FLAGS), \
42 PORT_GP_CFG_1(3, 27, fn, sfx, CFG_FLAGS), \
43 PORT_GP_CFG_1(3, 28, fn, sfx, CFG_FLAGS), \
44 PORT_GP_CFG_1(3, 29, fn, sfx, CFG_FLAGS), \
45 PORT_GP_CFG_1(3, 30, fn, sfx, CFG_FLAGS), \
46 PORT_GP_CFG_1(3, 31, fn, sfx, CFG_FLAGS), \
47 PORT_GP_CFG_14(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
48 PORT_GP_CFG_1(4, 14, fn, sfx, CFG_FLAGS), \
49 PORT_GP_CFG_1(4, 15, fn, sfx, CFG_FLAGS), \
50 PORT_GP_CFG_1(4, 21, fn, sfx, CFG_FLAGS), \
51 PORT_GP_CFG_1(4, 23, fn, sfx, CFG_FLAGS), \
52 PORT_GP_CFG_1(4, 24, fn, sfx, CFG_FLAGS), \
53 PORT_GP_CFG_21(5, fn, sfx, CFG_FLAGS), \
54 PORT_GP_CFG_21(6, fn, sfx, CFG_FLAGS), \
55 PORT_GP_CFG_21(7, fn, sfx, CFG_FLAGS)
56
57#define CPU_ALL_NOGP(fn) \
58 PIN_NOGP_CFG(VDDQ_AVB0, "VDDQ_AVB0", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
59 PIN_NOGP_CFG(VDDQ_AVB1, "VDDQ_AVB1", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
60 PIN_NOGP_CFG(VDDQ_AVB2, "VDDQ_AVB2", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25)
61
62/*
63 * F_() : just information
64 * FM() : macro for FN_xxx / xxx_MARK
65 */
66
67/* GPSR0 */
68#define GPSR0_18 F_(MSIOF2_RXD, IP2SR0_11_8)
69#define GPSR0_17 F_(MSIOF2_SCK, IP2SR0_7_4)
70#define GPSR0_16 F_(MSIOF2_TXD, IP2SR0_3_0)
71#define GPSR0_15 F_(MSIOF2_SYNC, IP1SR0_31_28)
72#define GPSR0_14 F_(MSIOF2_SS1, IP1SR0_27_24)
73#define GPSR0_13 F_(MSIOF2_SS2, IP1SR0_23_20)
74#define GPSR0_12 F_(MSIOF5_RXD, IP1SR0_19_16)
75#define GPSR0_11 F_(MSIOF5_SCK, IP1SR0_15_12)
76#define GPSR0_10 F_(MSIOF5_TXD, IP1SR0_11_8)
77#define GPSR0_9 F_(MSIOF5_SYNC, IP1SR0_7_4)
78#define GPSR0_8 F_(MSIOF5_SS1, IP1SR0_3_0)
79#define GPSR0_7 F_(MSIOF5_SS2, IP0SR0_31_28)
80#define GPSR0_6 F_(IRQ0, IP0SR0_27_24)
81#define GPSR0_5 F_(IRQ1, IP0SR0_23_20)
82#define GPSR0_4 F_(IRQ2, IP0SR0_19_16)
83#define GPSR0_3 F_(IRQ3, IP0SR0_15_12)
84#define GPSR0_2 F_(GP0_02, IP0SR0_11_8)
85#define GPSR0_1 F_(GP0_01, IP0SR0_7_4)
86#define GPSR0_0 F_(GP0_00, IP0SR0_3_0)
87
88/* GPSR1 */
89#define GPSR1_29 F_(ERROROUTC_N_A, IP3SR1_23_20)
90#define GPSR1_28 F_(HTX3, IP3SR1_19_16)
91#define GPSR1_27 F_(HCTS3_N, IP3SR1_15_12)
92#define GPSR1_26 F_(HRTS3_N, IP3SR1_11_8)
93#define GPSR1_25 F_(HSCK3, IP3SR1_7_4)
94#define GPSR1_24 F_(HRX3, IP3SR1_3_0)
95#define GPSR1_23 F_(GP1_23, IP2SR1_31_28)
96#define GPSR1_22 F_(AUDIO_CLKIN, IP2SR1_27_24)
97#define GPSR1_21 F_(AUDIO_CLKOUT, IP2SR1_23_20)
98#define GPSR1_20 F_(SSI_SD, IP2SR1_19_16)
99#define GPSR1_19 F_(SSI_WS, IP2SR1_15_12)
100#define GPSR1_18 F_(SSI_SCK, IP2SR1_11_8)
101#define GPSR1_17 F_(SCIF_CLK, IP2SR1_7_4)
102#define GPSR1_16 F_(HRX0, IP2SR1_3_0)
103#define GPSR1_15 F_(HSCK0, IP1SR1_31_28)
104#define GPSR1_14 F_(HRTS0_N, IP1SR1_27_24)
105#define GPSR1_13 F_(HCTS0_N, IP1SR1_23_20)
106#define GPSR1_12 F_(HTX0, IP1SR1_19_16)
107#define GPSR1_11 F_(MSIOF0_RXD, IP1SR1_15_12)
108#define GPSR1_10 F_(MSIOF0_SCK, IP1SR1_11_8)
109#define GPSR1_9 F_(MSIOF0_TXD, IP1SR1_7_4)
110#define GPSR1_8 F_(MSIOF0_SYNC, IP1SR1_3_0)
111#define GPSR1_7 F_(MSIOF0_SS1, IP0SR1_31_28)
112#define GPSR1_6 F_(MSIOF0_SS2, IP0SR1_27_24)
113#define GPSR1_5 F_(MSIOF1_RXD, IP0SR1_23_20)
114#define GPSR1_4 F_(MSIOF1_TXD, IP0SR1_19_16)
115#define GPSR1_3 F_(MSIOF1_SCK, IP0SR1_15_12)
116#define GPSR1_2 F_(MSIOF1_SYNC, IP0SR1_11_8)
117#define GPSR1_1 F_(MSIOF1_SS1, IP0SR1_7_4)
118#define GPSR1_0 F_(MSIOF1_SS2, IP0SR1_3_0)
119
120/* GPSR2 */
121#define GPSR2_19 F_(CANFD1_RX, IP2SR2_15_12)
122#define GPSR2_17 F_(CANFD1_TX, IP2SR2_7_4)
123#define GPSR2_15 F_(CANFD3_RX, IP1SR2_31_28)
124#define GPSR2_14 F_(CANFD3_TX, IP1SR2_27_24)
125#define GPSR2_13 F_(CANFD2_RX, IP1SR2_23_20)
126#define GPSR2_12 F_(CANFD2_TX, IP1SR2_19_16)
127#define GPSR2_11 F_(CANFD0_RX, IP1SR2_15_12)
128#define GPSR2_10 F_(CANFD0_TX, IP1SR2_11_8)
129#define GPSR2_9 F_(CAN_CLK, IP1SR2_7_4)
130#define GPSR2_8 F_(TPU0TO0, IP1SR2_3_0)
131#define GPSR2_7 F_(TPU0TO1, IP0SR2_31_28)
132#define GPSR2_6 F_(FXR_TXDB, IP0SR2_27_24)
133#define GPSR2_5 F_(FXR_TXENB_N_A, IP0SR2_23_20)
134#define GPSR2_4 F_(RXDB_EXTFXR, IP0SR2_19_16)
135#define GPSR2_3 F_(CLK_EXTFXR, IP0SR2_15_12)
136#define GPSR2_2 F_(RXDA_EXTFXR, IP0SR2_11_8)
137#define GPSR2_1 F_(FXR_TXENA_N_A, IP0SR2_7_4)
138#define GPSR2_0 F_(FXR_TXDA, IP0SR2_3_0)
139
140/* GPSR3 */
141#define GPSR3_31 F_(TCLK4, IP3SR3_31_28)
142#define GPSR3_30 F_(TCLK3, IP3SR3_27_24)
143#define GPSR3_29 F_(RPC_INT_N, IP3SR3_23_20)
144#define GPSR3_28 F_(RPC_WP_N, IP3SR3_19_16)
145#define GPSR3_27 F_(RPC_RESET_N, IP3SR3_15_12)
146#define GPSR3_26 F_(QSPI1_IO3, IP3SR3_11_8)
147#define GPSR3_25 F_(QSPI1_SSL, IP3SR3_7_4)
148#define GPSR3_24 F_(QSPI1_IO2, IP3SR3_3_0)
149#define GPSR3_23 F_(QSPI1_MISO_IO1, IP2SR3_31_28)
150#define GPSR3_22 F_(QSPI1_SPCLK, IP2SR3_27_24)
151#define GPSR3_21 F_(QSPI1_MOSI_IO0, IP2SR3_23_20)
152#define GPSR3_20 F_(QSPI0_SPCLK, IP2SR3_19_16)
153#define GPSR3_19 F_(QSPI0_MOSI_IO0, IP2SR3_15_12)
154#define GPSR3_18 F_(QSPI0_MISO_IO1, IP2SR3_11_8)
155#define GPSR3_17 F_(QSPI0_IO2, IP2SR3_7_4)
156#define GPSR3_16 F_(QSPI0_IO3, IP2SR3_3_0)
157#define GPSR3_15 F_(QSPI0_SSL, IP1SR3_31_28)
158#define GPSR3_14 F_(PWM2, IP1SR3_27_24)
159#define GPSR3_13 F_(PWM1, IP1SR3_23_20)
160#define GPSR3_12 F_(SD_WP, IP1SR3_19_16)
161#define GPSR3_11 F_(SD_CD, IP1SR3_15_12)
162#define GPSR3_10 F_(MMC_SD_CMD, IP1SR3_11_8)
163#define GPSR3_9 F_(MMC_D6, IP1SR3_7_4)
164#define GPSR3_8 F_(MMC_D7, IP1SR3_3_0)
165#define GPSR3_7 F_(MMC_D4, IP0SR3_31_28)
166#define GPSR3_6 F_(MMC_D5, IP0SR3_27_24)
167#define GPSR3_5 F_(MMC_SD_D3, IP0SR3_23_20)
168#define GPSR3_4 F_(MMC_DS, IP0SR3_19_16)
169#define GPSR3_3 F_(MMC_SD_CLK, IP0SR3_15_12)
170#define GPSR3_2 F_(MMC_SD_D2, IP0SR3_11_8)
171#define GPSR3_1 F_(MMC_SD_D0, IP0SR3_7_4)
172#define GPSR3_0 F_(MMC_SD_D1, IP0SR3_3_0)
173
174/* GPSR4 */
175#define GPSR4_24 F_(AVS1, IP3SR4_3_0)
176#define GPSR4_23 F_(AVS0, IP2SR4_31_28)
177#define GPSR4_21 F_(PCIE0_CLKREQ_N, IP2SR4_23_20)
178#define GPSR4_15 F_(PWM4, IP1SR4_31_28)
179#define GPSR4_14 F_(PWM3, IP1SR4_27_24)
180#define GPSR4_13 F_(HSCK2, IP1SR4_23_20)
181#define GPSR4_12 F_(HCTS2_N, IP1SR4_19_16)
182#define GPSR4_11 F_(SCIF_CLK2, IP1SR4_15_12)
183#define GPSR4_10 F_(HRTS2_N, IP1SR4_11_8)
184#define GPSR4_9 F_(HTX2, IP1SR4_7_4)
185#define GPSR4_8 F_(HRX2, IP1SR4_3_0)
186#define GPSR4_7 F_(SDA3, IP0SR4_31_28)
187#define GPSR4_6 F_(SCL3, IP0SR4_27_24)
188#define GPSR4_5 F_(SDA2, IP0SR4_23_20)
189#define GPSR4_4 F_(SCL2, IP0SR4_19_16)
190#define GPSR4_3 F_(SDA1, IP0SR4_15_12)
191#define GPSR4_2 F_(SCL1, IP0SR4_11_8)
192#define GPSR4_1 F_(SDA0, IP0SR4_7_4)
193#define GPSR4_0 F_(SCL0, IP0SR4_3_0)
194
195/* GPSR 5 */
196#define GPSR5_20 F_(AVB2_RX_CTL, IP2SR5_19_16)
197#define GPSR5_19 F_(AVB2_TX_CTL, IP2SR5_15_12)
198#define GPSR5_18 F_(AVB2_RXC, IP2SR5_11_8)
199#define GPSR5_17 F_(AVB2_RD0, IP2SR5_7_4)
200#define GPSR5_16 F_(AVB2_TXC, IP2SR5_3_0)
201#define GPSR5_15 F_(AVB2_TD0, IP1SR5_31_28)
202#define GPSR5_14 F_(AVB2_RD1, IP1SR5_27_24)
203#define GPSR5_13 F_(AVB2_RD2, IP1SR5_23_20)
204#define GPSR5_12 F_(AVB2_TD1, IP1SR5_19_16)
205#define GPSR5_11 F_(AVB2_TD2, IP1SR5_15_12)
206#define GPSR5_10 F_(AVB2_MDIO, IP1SR5_11_8)
207#define GPSR5_9 F_(AVB2_RD3, IP1SR5_7_4)
208#define GPSR5_8 F_(AVB2_TD3, IP1SR5_3_0)
209#define GPSR5_7 F_(AVB2_TXCREFCLK, IP0SR5_31_28)
210#define GPSR5_6 F_(AVB2_MDC, IP0SR5_27_24)
211#define GPSR5_5 F_(AVB2_MAGIC, IP0SR5_23_20)
212#define GPSR5_4 F_(AVB2_PHY_INT, IP0SR5_19_16)
213#define GPSR5_3 F_(AVB2_LINK, IP0SR5_15_12)
214#define GPSR5_2 F_(AVB2_AVTP_MATCH, IP0SR5_11_8)
215#define GPSR5_1 F_(AVB2_AVTP_CAPTURE, IP0SR5_7_4)
216#define GPSR5_0 F_(AVB2_AVTP_PPS, IP0SR5_3_0)
217
218/* GPSR 6 */
219#define GPSR6_20 F_(AVB1_TXCREFCLK, IP2SR6_19_16)
220#define GPSR6_19 F_(AVB1_RD3, IP2SR6_15_12)
221#define GPSR6_18 F_(AVB1_TD3, IP2SR6_11_8)
222#define GPSR6_17 F_(AVB1_RD2, IP2SR6_7_4)
223#define GPSR6_16 F_(AVB1_TD2, IP2SR6_3_0)
224#define GPSR6_15 F_(AVB1_RD0, IP1SR6_31_28)
225#define GPSR6_14 F_(AVB1_RD1, IP1SR6_27_24)
226#define GPSR6_13 F_(AVB1_TD0, IP1SR6_23_20)
227#define GPSR6_12 F_(AVB1_TD1, IP1SR6_19_16)
228#define GPSR6_11 F_(AVB1_AVTP_CAPTURE, IP1SR6_15_12)
229#define GPSR6_10 F_(AVB1_AVTP_PPS, IP1SR6_11_8)
230#define GPSR6_9 F_(AVB1_RX_CTL, IP1SR6_7_4)
231#define GPSR6_8 F_(AVB1_RXC, IP1SR6_3_0)
232#define GPSR6_7 F_(AVB1_TX_CTL, IP0SR6_31_28)
233#define GPSR6_6 F_(AVB1_TXC, IP0SR6_27_24)
234#define GPSR6_5 F_(AVB1_AVTP_MATCH, IP0SR6_23_20)
235#define GPSR6_4 F_(AVB1_LINK, IP0SR6_19_16)
236#define GPSR6_3 F_(AVB1_PHY_INT, IP0SR6_15_12)
237#define GPSR6_2 F_(AVB1_MDC, IP0SR6_11_8)
238#define GPSR6_1 F_(AVB1_MAGIC, IP0SR6_7_4)
239#define GPSR6_0 F_(AVB1_MDIO, IP0SR6_3_0)
240
241/* GPSR7 */
242#define GPSR7_20 F_(AVB0_RX_CTL, IP2SR7_19_16)
243#define GPSR7_19 F_(AVB0_RXC, IP2SR7_15_12)
244#define GPSR7_18 F_(AVB0_RD0, IP2SR7_11_8)
245#define GPSR7_17 F_(AVB0_RD1, IP2SR7_7_4)
246#define GPSR7_16 F_(AVB0_TX_CTL, IP2SR7_3_0)
247#define GPSR7_15 F_(AVB0_TXC, IP1SR7_31_28)
248#define GPSR7_14 F_(AVB0_MDIO, IP1SR7_27_24)
249#define GPSR7_13 F_(AVB0_MDC, IP1SR7_23_20)
250#define GPSR7_12 F_(AVB0_RD2, IP1SR7_19_16)
251#define GPSR7_11 F_(AVB0_TD0, IP1SR7_15_12)
252#define GPSR7_10 F_(AVB0_MAGIC, IP1SR7_11_8)
253#define GPSR7_9 F_(AVB0_TXCREFCLK, IP1SR7_7_4)
254#define GPSR7_8 F_(AVB0_RD3, IP1SR7_3_0)
255#define GPSR7_7 F_(AVB0_TD1, IP0SR7_31_28)
256#define GPSR7_6 F_(AVB0_TD2, IP0SR7_27_24)
257#define GPSR7_5 F_(AVB0_PHY_INT, IP0SR7_23_20)
258#define GPSR7_4 F_(AVB0_LINK, IP0SR7_19_16)
259#define GPSR7_3 F_(AVB0_TD3, IP0SR7_15_12)
260#define GPSR7_2 F_(AVB0_AVTP_MATCH, IP0SR7_11_8)
261#define GPSR7_1 F_(AVB0_AVTP_CAPTURE, IP0SR7_7_4)
262#define GPSR7_0 F_(AVB0_AVTP_PPS, IP0SR7_3_0)
263
Hai Pham6c45a3c2024-01-28 16:52:03 +0100264/* SR0 */
265/* IP0SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
266#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)
267#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)
268#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)
269#define IP0SR0_15_12 FM(IRQ3) 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)
270#define IP0SR0_19_16 FM(IRQ2) 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)
271#define IP0SR0_23_20 FM(IRQ1) 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)
272#define IP0SR0_27_24 FM(IRQ0) 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)
273#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)
274
275/* IP1SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
276#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)
277#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)
278#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)
279#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)
280#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)
281#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)
282#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)
283#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)
284
285/* IP2SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
286#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)
287#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)
288#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)
289
290/* SR1 */
291/* IP0SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
292#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)
293#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)
294#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)
295#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)
296#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)
297#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)
298#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)
299#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)
300
301/* IP1SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
302#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)
303#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)
304#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)
305#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)
306#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)
307#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)
308#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)
309#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)
310
311/* IP2SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
312#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)
313#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)
314#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)
315#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)
316#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)
317#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)
318#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)
319#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)
320
321/* IP3SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
322#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)
323#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)
324#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)
325#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)
326#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)
327#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)
328
329/* SR2 */
330/* IP0SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
331#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)
332#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)
333#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)
334#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)
335#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)
336#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)
337#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)
338#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)
339
340/* IP1SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
341#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)
342#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)
343#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)
344#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)
345#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)
346#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)
347#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)
348#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)
349
350/* IP2SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
351#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)
352#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)
353
354/* SR3 */
355/* IP0SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
356#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)
357#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)
358#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)
359#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)
360#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)
361#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)
362#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)
363#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)
364
365/* IP1SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
366#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)
367#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)
368#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)
369#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)
370#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)
371#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)
372#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)
373#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)
374
375/* IP2SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
376#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)
377#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)
378#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)
379#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)
380#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)
381#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)
382#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)
383#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)
384
385/* IP3SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
386#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)
387#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)
388#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)
389#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)
390#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)
391#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)
392#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)
393#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)
394
395/* SR4 */
396/* IP0SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
397#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)
398#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)
399#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)
400#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)
401#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)
402#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)
403#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)
404#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)
405
406/* IP1SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
407#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)
408#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)
409#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)
410#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)
411#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)
412#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)
413#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)
414#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)
415
416/* IP2SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
417#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)
418#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)
419
420/* IP3SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
421#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)
422
423/* SR5 */
424/* IP0SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
425#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)
426#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)
427#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)
428#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)
429#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)
430#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)
431#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)
432#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)
433
434/* IP1SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
435#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)
436#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)
437#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)
438#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)
439#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)
440#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)
441#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)
442#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)
443
444/* IP2SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
445#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)
446#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)
447#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)
448#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)
449#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)
450
451/* SR6 */
452/* IP0SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
453#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)
454#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)
455#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)
456#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)
457#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)
458#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)
459#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)
460#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)
461
462/* IP1SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
463#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)
464#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)
465#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)
466#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)
467#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)
468#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)
469#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)
470#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)
471
472/* IP2SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
473#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)
474#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)
475#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)
476#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)
477#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)
478
479/* SR7 */
480/* IP0SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
481#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)
482#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)
483#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)
484#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)
485#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)
486#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)
487#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)
488#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)
489
490/* IP1SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
491#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)
492#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)
493#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)
494#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)
495#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)
496#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)
497#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)
498#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)
499
500/* IP2SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
501#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)
502#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)
503#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)
504#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)
505#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)
506
507#define PINMUX_GPSR \
508 GPSR3_31 \
509 GPSR3_30 \
510 GPSR1_29 GPSR3_29 \
511 GPSR1_28 GPSR3_28 \
512 GPSR1_27 GPSR3_27 \
513 GPSR1_26 GPSR3_26 \
514 GPSR1_25 GPSR3_25 \
515 GPSR1_24 GPSR3_24 GPSR4_24 \
516 GPSR1_23 GPSR3_23 GPSR4_23 \
517 GPSR1_22 GPSR3_22 \
518 GPSR1_21 GPSR3_21 GPSR4_21 \
519 GPSR1_20 GPSR3_20 GPSR5_20 GPSR6_20 GPSR7_20 \
520 GPSR1_19 GPSR2_19 GPSR3_19 GPSR5_19 GPSR6_19 GPSR7_19 \
521GPSR0_18 GPSR1_18 GPSR3_18 GPSR5_18 GPSR6_18 GPSR7_18 \
522GPSR0_17 GPSR1_17 GPSR2_17 GPSR3_17 GPSR5_17 GPSR6_17 GPSR7_17 \
523GPSR0_16 GPSR1_16 GPSR3_16 GPSR5_16 GPSR6_16 GPSR7_16 \
524GPSR0_15 GPSR1_15 GPSR2_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 GPSR7_15 \
525GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 GPSR7_14 \
526GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 GPSR7_13 \
527GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 GPSR7_12 \
528GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 GPSR7_11 \
529GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 GPSR7_10 \
530GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 GPSR7_9 \
531GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 GPSR7_8 \
532GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 GPSR7_7 \
533GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 GPSR7_6 \
534GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 GPSR7_5 \
535GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 GPSR7_4 \
536GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 \
537GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 \
538GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 \
539GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0
540
541#define PINMUX_IPSR \
542\
543FM(IP0SR0_3_0) IP0SR0_3_0 FM(IP1SR0_3_0) IP1SR0_3_0 FM(IP2SR0_3_0) IP2SR0_3_0 \
544FM(IP0SR0_7_4) IP0SR0_7_4 FM(IP1SR0_7_4) IP1SR0_7_4 FM(IP2SR0_7_4) IP2SR0_7_4 \
545FM(IP0SR0_11_8) IP0SR0_11_8 FM(IP1SR0_11_8) IP1SR0_11_8 FM(IP2SR0_11_8) IP2SR0_11_8 \
546FM(IP0SR0_15_12) IP0SR0_15_12 FM(IP1SR0_15_12) IP1SR0_15_12 \
547FM(IP0SR0_19_16) IP0SR0_19_16 FM(IP1SR0_19_16) IP1SR0_19_16 \
548FM(IP0SR0_23_20) IP0SR0_23_20 FM(IP1SR0_23_20) IP1SR0_23_20 \
549FM(IP0SR0_27_24) IP0SR0_27_24 FM(IP1SR0_27_24) IP1SR0_27_24 \
550FM(IP0SR0_31_28) IP0SR0_31_28 FM(IP1SR0_31_28) IP1SR0_31_28 \
551\
552FM(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 \
553FM(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 \
554FM(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 \
555FM(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 \
556FM(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 \
557FM(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 \
558FM(IP0SR1_27_24) IP0SR1_27_24 FM(IP1SR1_27_24) IP1SR1_27_24 FM(IP2SR1_27_24) IP2SR1_27_24 \
559FM(IP0SR1_31_28) IP0SR1_31_28 FM(IP1SR1_31_28) IP1SR1_31_28 FM(IP2SR1_31_28) IP2SR1_31_28 \
560\
561FM(IP0SR2_3_0) IP0SR2_3_0 FM(IP1SR2_3_0) IP1SR2_3_0 \
562FM(IP0SR2_7_4) IP0SR2_7_4 FM(IP1SR2_7_4) IP1SR2_7_4 FM(IP2SR2_7_4) IP2SR2_7_4 \
563FM(IP0SR2_11_8) IP0SR2_11_8 FM(IP1SR2_11_8) IP1SR2_11_8 \
564FM(IP0SR2_15_12) IP0SR2_15_12 FM(IP1SR2_15_12) IP1SR2_15_12 FM(IP2SR2_15_12) IP2SR2_15_12 \
565FM(IP0SR2_19_16) IP0SR2_19_16 FM(IP1SR2_19_16) IP1SR2_19_16 \
566FM(IP0SR2_23_20) IP0SR2_23_20 FM(IP1SR2_23_20) IP1SR2_23_20 \
567FM(IP0SR2_27_24) IP0SR2_27_24 FM(IP1SR2_27_24) IP1SR2_27_24 \
568FM(IP0SR2_31_28) IP0SR2_31_28 FM(IP1SR2_31_28) IP1SR2_31_28 \
569\
570FM(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 \
571FM(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 \
572FM(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 \
573FM(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 \
574FM(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 \
575FM(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 \
576FM(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 \
577FM(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 \
578\
579FM(IP0SR4_3_0) IP0SR4_3_0 FM(IP1SR4_3_0) IP1SR4_3_0 FM(IP3SR4_3_0) IP3SR4_3_0 \
580FM(IP0SR4_7_4) IP0SR4_7_4 FM(IP1SR4_7_4) IP1SR4_7_4 \
581FM(IP0SR4_11_8) IP0SR4_11_8 FM(IP1SR4_11_8) IP1SR4_11_8 \
582FM(IP0SR4_15_12) IP0SR4_15_12 FM(IP1SR4_15_12) IP1SR4_15_12 \
583FM(IP0SR4_19_16) IP0SR4_19_16 FM(IP1SR4_19_16) IP1SR4_19_16 \
584FM(IP0SR4_23_20) IP0SR4_23_20 FM(IP1SR4_23_20) IP1SR4_23_20 FM(IP2SR4_23_20) IP2SR4_23_20 \
585FM(IP0SR4_27_24) IP0SR4_27_24 FM(IP1SR4_27_24) IP1SR4_27_24 \
586FM(IP0SR4_31_28) IP0SR4_31_28 FM(IP1SR4_31_28) IP1SR4_31_28 FM(IP2SR4_31_28) IP2SR4_31_28 \
587\
588FM(IP0SR5_3_0) IP0SR5_3_0 FM(IP1SR5_3_0) IP1SR5_3_0 FM(IP2SR5_3_0) IP2SR5_3_0 \
589FM(IP0SR5_7_4) IP0SR5_7_4 FM(IP1SR5_7_4) IP1SR5_7_4 FM(IP2SR5_7_4) IP2SR5_7_4 \
590FM(IP0SR5_11_8) IP0SR5_11_8 FM(IP1SR5_11_8) IP1SR5_11_8 FM(IP2SR5_11_8) IP2SR5_11_8 \
591FM(IP0SR5_15_12) IP0SR5_15_12 FM(IP1SR5_15_12) IP1SR5_15_12 FM(IP2SR5_15_12) IP2SR5_15_12 \
592FM(IP0SR5_19_16) IP0SR5_19_16 FM(IP1SR5_19_16) IP1SR5_19_16 FM(IP2SR5_19_16) IP2SR5_19_16 \
593FM(IP0SR5_23_20) IP0SR5_23_20 FM(IP1SR5_23_20) IP1SR5_23_20 \
594FM(IP0SR5_27_24) IP0SR5_27_24 FM(IP1SR5_27_24) IP1SR5_27_24 \
595FM(IP0SR5_31_28) IP0SR5_31_28 FM(IP1SR5_31_28) IP1SR5_31_28 \
596\
597FM(IP0SR6_3_0) IP0SR6_3_0 FM(IP1SR6_3_0) IP1SR6_3_0 FM(IP2SR6_3_0) IP2SR6_3_0 \
598FM(IP0SR6_7_4) IP0SR6_7_4 FM(IP1SR6_7_4) IP1SR6_7_4 FM(IP2SR6_7_4) IP2SR6_7_4 \
599FM(IP0SR6_11_8) IP0SR6_11_8 FM(IP1SR6_11_8) IP1SR6_11_8 FM(IP2SR6_11_8) IP2SR6_11_8 \
600FM(IP0SR6_15_12) IP0SR6_15_12 FM(IP1SR6_15_12) IP1SR6_15_12 FM(IP2SR6_15_12) IP2SR6_15_12 \
601FM(IP0SR6_19_16) IP0SR6_19_16 FM(IP1SR6_19_16) IP1SR6_19_16 FM(IP2SR6_19_16) IP2SR6_19_16 \
602FM(IP0SR6_23_20) IP0SR6_23_20 FM(IP1SR6_23_20) IP1SR6_23_20 \
603FM(IP0SR6_27_24) IP0SR6_27_24 FM(IP1SR6_27_24) IP1SR6_27_24 \
604FM(IP0SR6_31_28) IP0SR6_31_28 FM(IP1SR6_31_28) IP1SR6_31_28 \
605\
606FM(IP0SR7_3_0) IP0SR7_3_0 FM(IP1SR7_3_0) IP1SR7_3_0 FM(IP2SR7_3_0) IP2SR7_3_0 \
607FM(IP0SR7_7_4) IP0SR7_7_4 FM(IP1SR7_7_4) IP1SR7_7_4 FM(IP2SR7_7_4) IP2SR7_7_4 \
608FM(IP0SR7_11_8) IP0SR7_11_8 FM(IP1SR7_11_8) IP1SR7_11_8 FM(IP2SR7_11_8) IP2SR7_11_8 \
609FM(IP0SR7_15_12) IP0SR7_15_12 FM(IP1SR7_15_12) IP1SR7_15_12 FM(IP2SR7_15_12) IP2SR7_15_12 \
610FM(IP0SR7_19_16) IP0SR7_19_16 FM(IP1SR7_19_16) IP1SR7_19_16 FM(IP2SR7_19_16) IP2SR7_19_16 \
611FM(IP0SR7_23_20) IP0SR7_23_20 FM(IP1SR7_23_20) IP1SR7_23_20 \
612FM(IP0SR7_27_24) IP0SR7_27_24 FM(IP1SR7_27_24) IP1SR7_27_24 \
613FM(IP0SR7_31_28) IP0SR7_31_28 FM(IP1SR7_31_28) IP1SR7_31_28 \
614
615/* MOD_SEL4 */ /* 0 */ /* 1 */
616#define MOD_SEL4_7 FM(SEL_SDA3_0) FM(SEL_SDA3_1)
617#define MOD_SEL4_6 FM(SEL_SCL3_0) FM(SEL_SCL3_1)
618#define MOD_SEL4_5 FM(SEL_SDA2_0) FM(SEL_SDA2_1)
619#define MOD_SEL4_4 FM(SEL_SCL2_0) FM(SEL_SCL2_1)
620#define MOD_SEL4_3 FM(SEL_SDA1_0) FM(SEL_SDA1_1)
621#define MOD_SEL4_2 FM(SEL_SCL1_0) FM(SEL_SCL1_1)
622#define MOD_SEL4_1 FM(SEL_SDA0_0) FM(SEL_SDA0_1)
623#define MOD_SEL4_0 FM(SEL_SCL0_0) FM(SEL_SCL0_1)
624
625#define PINMUX_MOD_SELS \
626\
627MOD_SEL4_7 \
628MOD_SEL4_6 \
629MOD_SEL4_5 \
630MOD_SEL4_4 \
631MOD_SEL4_3 \
632MOD_SEL4_2 \
633MOD_SEL4_1 \
634MOD_SEL4_0
635
636enum {
637 PINMUX_RESERVED = 0,
638
639 PINMUX_DATA_BEGIN,
640 GP_ALL(DATA),
641 PINMUX_DATA_END,
642
643#define F_(x, y)
644#define FM(x) FN_##x,
645 PINMUX_FUNCTION_BEGIN,
646 GP_ALL(FN),
647 PINMUX_GPSR
648 PINMUX_IPSR
649 PINMUX_MOD_SELS
650 PINMUX_FUNCTION_END,
651#undef F_
652#undef FM
653
654#define F_(x, y)
655#define FM(x) x##_MARK,
656 PINMUX_MARK_BEGIN,
657 PINMUX_GPSR
658 PINMUX_IPSR
659 PINMUX_MOD_SELS
660 PINMUX_MARK_END,
661#undef F_
662#undef FM
663};
664
665static const u16 pinmux_data[] = {
666 PINMUX_DATA_GP_ALL(),
667
668 /* IP0SR0 */
669 PINMUX_IPSR_GPSR(IP0SR0_3_0, ERROROUTC_N_B),
670 PINMUX_IPSR_GPSR(IP0SR0_3_0, TCLK2_B),
671
672 PINMUX_IPSR_GPSR(IP0SR0_7_4, MSIOF3_SS1),
673
674 PINMUX_IPSR_GPSR(IP0SR0_11_8, MSIOF3_SS2),
675
676 PINMUX_IPSR_GPSR(IP0SR0_15_12, IRQ3),
677 PINMUX_IPSR_GPSR(IP0SR0_15_12, MSIOF3_SCK),
678
679 PINMUX_IPSR_GPSR(IP0SR0_19_16, IRQ2),
680 PINMUX_IPSR_GPSR(IP0SR0_19_16, MSIOF3_TXD),
681
682 PINMUX_IPSR_GPSR(IP0SR0_23_20, IRQ1),
683 PINMUX_IPSR_GPSR(IP0SR0_23_20, MSIOF3_RXD),
684
685 PINMUX_IPSR_GPSR(IP0SR0_27_24, IRQ0),
686 PINMUX_IPSR_GPSR(IP0SR0_27_24, MSIOF3_SYNC),
687
688 PINMUX_IPSR_GPSR(IP0SR0_31_28, MSIOF5_SS2),
689
690 /* IP1SR0 */
691 PINMUX_IPSR_GPSR(IP1SR0_3_0, MSIOF5_SS1),
692
693 PINMUX_IPSR_GPSR(IP1SR0_7_4, MSIOF5_SYNC),
694
695 PINMUX_IPSR_GPSR(IP1SR0_11_8, MSIOF5_TXD),
696
697 PINMUX_IPSR_GPSR(IP1SR0_15_12, MSIOF5_SCK),
698
699 PINMUX_IPSR_GPSR(IP1SR0_19_16, MSIOF5_RXD),
700
701 PINMUX_IPSR_GPSR(IP1SR0_23_20, MSIOF2_SS2),
702 PINMUX_IPSR_GPSR(IP1SR0_23_20, TCLK1_A),
703 PINMUX_IPSR_GPSR(IP1SR0_23_20, IRQ2_B),
704
705 PINMUX_IPSR_GPSR(IP1SR0_27_24, MSIOF2_SS1),
706 PINMUX_IPSR_GPSR(IP1SR0_27_24, HTX1_A),
707 PINMUX_IPSR_GPSR(IP1SR0_27_24, TX1_A),
708
709 PINMUX_IPSR_GPSR(IP1SR0_31_28, MSIOF2_SYNC),
710 PINMUX_IPSR_GPSR(IP1SR0_31_28, HRX1_A),
711 PINMUX_IPSR_GPSR(IP1SR0_31_28, RX1_A),
712
713 /* IP2SR0 */
714 PINMUX_IPSR_GPSR(IP2SR0_3_0, MSIOF2_TXD),
715 PINMUX_IPSR_GPSR(IP2SR0_3_0, HCTS1_N_A),
716 PINMUX_IPSR_GPSR(IP2SR0_3_0, CTS1_N_A),
717
718 PINMUX_IPSR_GPSR(IP2SR0_7_4, MSIOF2_SCK),
719 PINMUX_IPSR_GPSR(IP2SR0_7_4, HRTS1_N_A),
720 PINMUX_IPSR_GPSR(IP2SR0_7_4, RTS1_N_A),
721
722 PINMUX_IPSR_GPSR(IP2SR0_11_8, MSIOF2_RXD),
723 PINMUX_IPSR_GPSR(IP2SR0_11_8, HSCK1_A),
724 PINMUX_IPSR_GPSR(IP2SR0_11_8, SCK1_A),
725
726 /* IP0SR1 */
727 PINMUX_IPSR_GPSR(IP0SR1_3_0, MSIOF1_SS2),
728 PINMUX_IPSR_GPSR(IP0SR1_3_0, HTX3_B),
729 PINMUX_IPSR_GPSR(IP0SR1_3_0, TX3_B),
730
731 PINMUX_IPSR_GPSR(IP0SR1_7_4, MSIOF1_SS1),
732 PINMUX_IPSR_GPSR(IP0SR1_7_4, HCTS3_N_B),
733 PINMUX_IPSR_GPSR(IP0SR1_7_4, RX3_B),
734
735 PINMUX_IPSR_GPSR(IP0SR1_11_8, MSIOF1_SYNC),
736 PINMUX_IPSR_GPSR(IP0SR1_11_8, HRTS3_N_B),
737 PINMUX_IPSR_GPSR(IP0SR1_11_8, RTS3_N_B),
738
739 PINMUX_IPSR_GPSR(IP0SR1_15_12, MSIOF1_SCK),
740 PINMUX_IPSR_GPSR(IP0SR1_15_12, HSCK3_B),
741 PINMUX_IPSR_GPSR(IP0SR1_15_12, CTS3_N_B),
742
743 PINMUX_IPSR_GPSR(IP0SR1_19_16, MSIOF1_TXD),
744 PINMUX_IPSR_GPSR(IP0SR1_19_16, HRX3_B),
745 PINMUX_IPSR_GPSR(IP0SR1_19_16, SCK3_B),
746
747 PINMUX_IPSR_GPSR(IP0SR1_23_20, MSIOF1_RXD),
748
749 PINMUX_IPSR_GPSR(IP0SR1_27_24, MSIOF0_SS2),
750 PINMUX_IPSR_GPSR(IP0SR1_27_24, HTX1_B),
751 PINMUX_IPSR_GPSR(IP0SR1_27_24, TX1_B),
752
753 PINMUX_IPSR_GPSR(IP0SR1_31_28, MSIOF0_SS1),
754 PINMUX_IPSR_GPSR(IP0SR1_31_28, HRX1_B),
755 PINMUX_IPSR_GPSR(IP0SR1_31_28, RX1_B),
756
757 /* IP1SR1 */
758 PINMUX_IPSR_GPSR(IP1SR1_3_0, MSIOF0_SYNC),
759 PINMUX_IPSR_GPSR(IP1SR1_3_0, HCTS1_N_B),
760 PINMUX_IPSR_GPSR(IP1SR1_3_0, CTS1_N_B),
761
762 PINMUX_IPSR_GPSR(IP1SR1_7_4, MSIOF0_TXD),
763 PINMUX_IPSR_GPSR(IP1SR1_7_4, HRTS1_N_B),
764 PINMUX_IPSR_GPSR(IP1SR1_7_4, RTS1_N_B),
765
766 PINMUX_IPSR_GPSR(IP1SR1_11_8, MSIOF0_SCK),
767 PINMUX_IPSR_GPSR(IP1SR1_11_8, HSCK1_B),
768 PINMUX_IPSR_GPSR(IP1SR1_11_8, SCK1_B),
769
770 PINMUX_IPSR_GPSR(IP1SR1_15_12, MSIOF0_RXD),
771
772 PINMUX_IPSR_GPSR(IP1SR1_19_16, HTX0),
773 PINMUX_IPSR_GPSR(IP1SR1_19_16, TX0),
774
775 PINMUX_IPSR_GPSR(IP1SR1_23_20, HCTS0_N),
776 PINMUX_IPSR_GPSR(IP1SR1_23_20, CTS0_N),
777
778 PINMUX_IPSR_GPSR(IP1SR1_27_24, HRTS0_N),
779 PINMUX_IPSR_GPSR(IP1SR1_27_24, RTS0_N),
780 PINMUX_IPSR_GPSR(IP1SR1_27_24, PWM0_B),
781
782 PINMUX_IPSR_GPSR(IP1SR1_31_28, HSCK0),
783 PINMUX_IPSR_GPSR(IP1SR1_31_28, SCK0),
784 PINMUX_IPSR_GPSR(IP1SR1_31_28, PWM0_A),
785
786 /* IP2SR1 */
787 PINMUX_IPSR_GPSR(IP2SR1_3_0, HRX0),
788 PINMUX_IPSR_GPSR(IP2SR1_3_0, RX0),
789
790 PINMUX_IPSR_GPSR(IP2SR1_7_4, SCIF_CLK),
791 PINMUX_IPSR_GPSR(IP2SR1_7_4, IRQ4_A),
792
793 PINMUX_IPSR_GPSR(IP2SR1_11_8, SSI_SCK),
794 PINMUX_IPSR_GPSR(IP2SR1_11_8, TCLK3_B),
795
796 PINMUX_IPSR_GPSR(IP2SR1_15_12, SSI_WS),
797 PINMUX_IPSR_GPSR(IP2SR1_15_12, TCLK4_B),
798
799 PINMUX_IPSR_GPSR(IP2SR1_19_16, SSI_SD),
800 PINMUX_IPSR_GPSR(IP2SR1_19_16, IRQ0_B),
801
802 PINMUX_IPSR_GPSR(IP2SR1_23_20, AUDIO_CLKOUT),
803 PINMUX_IPSR_GPSR(IP2SR1_23_20, IRQ1_B),
804
805 PINMUX_IPSR_GPSR(IP2SR1_27_24, AUDIO_CLKIN),
806 PINMUX_IPSR_GPSR(IP2SR1_27_24, PWM3_C),
807
808 PINMUX_IPSR_GPSR(IP2SR1_31_28, TCLK2_A),
809 PINMUX_IPSR_GPSR(IP2SR1_31_28, MSIOF4_SS1),
810 PINMUX_IPSR_GPSR(IP2SR1_31_28, IRQ3_B),
811
812 /* IP3SR1 */
813 PINMUX_IPSR_GPSR(IP3SR1_3_0, HRX3_A),
814 PINMUX_IPSR_GPSR(IP3SR1_3_0, SCK3_A),
815 PINMUX_IPSR_GPSR(IP3SR1_3_0, MSIOF4_SS2),
816
817 PINMUX_IPSR_GPSR(IP3SR1_7_4, HSCK3_A),
818 PINMUX_IPSR_GPSR(IP3SR1_7_4, CTS3_N_A),
819 PINMUX_IPSR_GPSR(IP3SR1_7_4, MSIOF4_SCK),
820 PINMUX_IPSR_GPSR(IP3SR1_7_4, TPU0TO0_B),
821
822 PINMUX_IPSR_GPSR(IP3SR1_11_8, HRTS3_N_A),
823 PINMUX_IPSR_GPSR(IP3SR1_11_8, RTS3_N_A),
824 PINMUX_IPSR_GPSR(IP3SR1_11_8, MSIOF4_TXD),
825 PINMUX_IPSR_GPSR(IP3SR1_11_8, TPU0TO1_B),
826
827 PINMUX_IPSR_GPSR(IP3SR1_15_12, HCTS3_N_A),
828 PINMUX_IPSR_GPSR(IP3SR1_15_12, RX3_A),
829 PINMUX_IPSR_GPSR(IP3SR1_15_12, MSIOF4_RXD),
830
831 PINMUX_IPSR_GPSR(IP3SR1_19_16, HTX3_A),
832 PINMUX_IPSR_GPSR(IP3SR1_19_16, TX3_A),
833 PINMUX_IPSR_GPSR(IP3SR1_19_16, MSIOF4_SYNC),
834
835 PINMUX_IPSR_GPSR(IP3SR1_23_20, ERROROUTC_N_A),
836
837 /* IP0SR2 */
838 PINMUX_IPSR_GPSR(IP0SR2_3_0, FXR_TXDA),
839 PINMUX_IPSR_GPSR(IP0SR2_3_0, TPU0TO2_B),
840
841 PINMUX_IPSR_GPSR(IP0SR2_7_4, FXR_TXENA_N_A),
842 PINMUX_IPSR_GPSR(IP0SR2_7_4, TPU0TO3_B),
843
844 PINMUX_IPSR_GPSR(IP0SR2_11_8, RXDA_EXTFXR),
845 PINMUX_IPSR_GPSR(IP0SR2_11_8, IRQ5),
846
847 PINMUX_IPSR_GPSR(IP0SR2_15_12, CLK_EXTFXR),
848 PINMUX_IPSR_GPSR(IP0SR2_15_12, IRQ4_B),
849
850 PINMUX_IPSR_GPSR(IP0SR2_19_16, RXDB_EXTFXR),
851
852 PINMUX_IPSR_GPSR(IP0SR2_23_20, FXR_TXENB_N_A),
853
854 PINMUX_IPSR_GPSR(IP0SR2_27_24, FXR_TXDB),
855
856 PINMUX_IPSR_GPSR(IP0SR2_31_28, TPU0TO1_A),
857 PINMUX_IPSR_GPSR(IP0SR2_31_28, TCLK2_C),
858
859 /* IP1SR2 */
860 PINMUX_IPSR_GPSR(IP1SR2_3_0, TPU0TO0_A),
861 PINMUX_IPSR_GPSR(IP1SR2_3_0, TCLK1_B),
862
863 PINMUX_IPSR_GPSR(IP1SR2_7_4, CAN_CLK),
864 PINMUX_IPSR_GPSR(IP1SR2_7_4, FXR_TXENA_N_B),
865
866 PINMUX_IPSR_GPSR(IP1SR2_11_8, CANFD0_TX),
867 PINMUX_IPSR_GPSR(IP1SR2_11_8, FXR_TXENB_N_B),
868
869 PINMUX_IPSR_GPSR(IP1SR2_15_12, CANFD0_RX),
870 PINMUX_IPSR_GPSR(IP1SR2_15_12, STPWT_EXTFXR),
871
872 PINMUX_IPSR_GPSR(IP1SR2_19_16, CANFD2_TX),
873 PINMUX_IPSR_GPSR(IP1SR2_19_16, TPU0TO2_A),
874 PINMUX_IPSR_GPSR(IP1SR2_19_16, TCLK3_C),
875
876 PINMUX_IPSR_GPSR(IP1SR2_23_20, CANFD2_RX),
877 PINMUX_IPSR_GPSR(IP1SR2_23_20, TPU0TO3_A),
878 PINMUX_IPSR_GPSR(IP1SR2_23_20, PWM1_B),
879 PINMUX_IPSR_GPSR(IP1SR2_23_20, TCLK4_C),
880
881 PINMUX_IPSR_GPSR(IP1SR2_27_24, CANFD3_TX),
882 PINMUX_IPSR_GPSR(IP1SR2_27_24, PWM2_B),
883
884 PINMUX_IPSR_GPSR(IP1SR2_31_28, CANFD3_RX),
885 PINMUX_IPSR_GPSR(IP1SR2_31_28, PWM3_B),
886
887 /* IP2SR2 */
888 PINMUX_IPSR_GPSR(IP2SR2_7_4, CANFD1_TX),
889 PINMUX_IPSR_GPSR(IP2SR2_7_4, PWM1_C),
890
891 PINMUX_IPSR_GPSR(IP2SR2_15_12, CANFD1_RX),
892 PINMUX_IPSR_GPSR(IP2SR2_15_12, PWM2_C),
893
894 /* IP0SR3 */
895 PINMUX_IPSR_GPSR(IP0SR3_3_0, MMC_SD_D1),
896
897 PINMUX_IPSR_GPSR(IP0SR3_7_4, MMC_SD_D0),
898
899 PINMUX_IPSR_GPSR(IP0SR3_11_8, MMC_SD_D2),
900
901 PINMUX_IPSR_GPSR(IP0SR3_15_12, MMC_SD_CLK),
902
903 PINMUX_IPSR_GPSR(IP0SR3_19_16, MMC_DS),
904
905 PINMUX_IPSR_GPSR(IP0SR3_23_20, MMC_SD_D3),
906
907 PINMUX_IPSR_GPSR(IP0SR3_27_24, MMC_D5),
908
909 PINMUX_IPSR_GPSR(IP0SR3_31_28, MMC_D4),
910
911 /* IP1SR3 */
912 PINMUX_IPSR_GPSR(IP1SR3_3_0, MMC_D7),
913
914 PINMUX_IPSR_GPSR(IP1SR3_7_4, MMC_D6),
915
916 PINMUX_IPSR_GPSR(IP1SR3_11_8, MMC_SD_CMD),
917
918 PINMUX_IPSR_GPSR(IP1SR3_15_12, SD_CD),
919
920 PINMUX_IPSR_GPSR(IP1SR3_19_16, SD_WP),
921
922 PINMUX_IPSR_GPSR(IP1SR3_23_20, PWM1_A),
923
924 PINMUX_IPSR_GPSR(IP1SR3_27_24, PWM2_A),
925
926 PINMUX_IPSR_GPSR(IP1SR3_31_28, QSPI0_SSL),
927
928 /* IP2SR3 */
929 PINMUX_IPSR_GPSR(IP2SR3_3_0, QSPI0_IO3),
930
931 PINMUX_IPSR_GPSR(IP2SR3_7_4, QSPI0_IO2),
932
933 PINMUX_IPSR_GPSR(IP2SR3_11_8, QSPI0_MISO_IO1),
934
935 PINMUX_IPSR_GPSR(IP2SR3_15_12, QSPI0_MOSI_IO0),
936
937 PINMUX_IPSR_GPSR(IP2SR3_19_16, QSPI0_SPCLK),
938
939 PINMUX_IPSR_GPSR(IP2SR3_23_20, QSPI1_MOSI_IO0),
940
941 PINMUX_IPSR_GPSR(IP2SR3_27_24, QSPI1_SPCLK),
942
943 PINMUX_IPSR_GPSR(IP2SR3_31_28, QSPI1_MISO_IO1),
944
945 /* IP3SR3 */
946 PINMUX_IPSR_GPSR(IP3SR3_3_0, QSPI1_IO2),
947
948 PINMUX_IPSR_GPSR(IP3SR3_7_4, QSPI1_SSL),
949
950 PINMUX_IPSR_GPSR(IP3SR3_11_8, QSPI1_IO3),
951
952 PINMUX_IPSR_GPSR(IP3SR3_15_12, RPC_RESET_N),
953
954 PINMUX_IPSR_GPSR(IP3SR3_19_16, RPC_WP_N),
955
956 PINMUX_IPSR_GPSR(IP3SR3_23_20, RPC_INT_N),
957
958 PINMUX_IPSR_GPSR(IP3SR3_27_24, TCLK3_A),
959
960 PINMUX_IPSR_GPSR(IP3SR3_31_28, TCLK4_A),
961
962 /* IP0SR4 */
963 PINMUX_IPSR_MSEL(IP0SR4_3_0, SCL0, SEL_SCL0_0),
964
965 PINMUX_IPSR_MSEL(IP0SR4_7_4, SDA0, SEL_SDA0_0),
966
967 PINMUX_IPSR_MSEL(IP0SR4_11_8, SCL1, SEL_SCL1_0),
968
969 PINMUX_IPSR_MSEL(IP0SR4_15_12, SDA1, SEL_SDA1_0),
970
971 PINMUX_IPSR_MSEL(IP0SR4_19_16, SCL2, SEL_SCL2_0),
972
973 PINMUX_IPSR_MSEL(IP0SR4_23_20, SDA2, SEL_SDA2_0),
974
975 PINMUX_IPSR_MSEL(IP0SR4_27_24, SCL3, SEL_SCL3_0),
976
977 PINMUX_IPSR_MSEL(IP0SR4_31_28, SDA3, SEL_SDA3_0),
978
979 /* IP1SR4 */
980 PINMUX_IPSR_GPSR(IP1SR4_3_0, HRX2),
981 PINMUX_IPSR_GPSR(IP1SR4_3_0, SCK4),
982
983 PINMUX_IPSR_GPSR(IP1SR4_7_4, HTX2),
984 PINMUX_IPSR_GPSR(IP1SR4_7_4, CTS4_N),
985
986 PINMUX_IPSR_GPSR(IP1SR4_11_8, HRTS2_N),
987 PINMUX_IPSR_GPSR(IP1SR4_11_8, RTS4_N),
988
989 PINMUX_IPSR_GPSR(IP1SR4_15_12, SCIF_CLK2),
990
991 PINMUX_IPSR_GPSR(IP1SR4_19_16, HCTS2_N),
992 PINMUX_IPSR_GPSR(IP1SR4_19_16, TX4),
993
994 PINMUX_IPSR_GPSR(IP1SR4_23_20, HSCK2),
995 PINMUX_IPSR_GPSR(IP1SR4_23_20, RX4),
996
997 PINMUX_IPSR_GPSR(IP1SR4_27_24, PWM3_A),
998
999 PINMUX_IPSR_GPSR(IP1SR4_31_28, PWM4),
1000
1001 /* IP2SR4 */
1002 PINMUX_IPSR_GPSR(IP2SR4_23_20, PCIE0_CLKREQ_N),
1003
1004 PINMUX_IPSR_GPSR(IP2SR4_31_28, AVS0),
1005
1006 /* IP3SR4 */
1007 PINMUX_IPSR_GPSR(IP3SR4_3_0, AVS1),
1008
1009 /* IP0SR5 */
1010 PINMUX_IPSR_GPSR(IP0SR5_3_0, AVB2_AVTP_PPS),
1011 PINMUX_IPSR_GPSR(IP0SR5_3_0, Ether_GPTP_PPS0),
1012
1013 PINMUX_IPSR_GPSR(IP0SR5_7_4, AVB2_AVTP_CAPTURE),
1014 PINMUX_IPSR_GPSR(IP0SR5_7_4, Ether_GPTP_CAPTURE),
1015
1016 PINMUX_IPSR_GPSR(IP0SR5_11_8, AVB2_AVTP_MATCH),
1017 PINMUX_IPSR_GPSR(IP0SR5_11_8, Ether_GPTP_MATCH),
1018
1019 PINMUX_IPSR_GPSR(IP0SR5_15_12, AVB2_LINK),
1020
1021 PINMUX_IPSR_GPSR(IP0SR5_19_16, AVB2_PHY_INT),
1022
1023 PINMUX_IPSR_GPSR(IP0SR5_23_20, AVB2_MAGIC),
1024 PINMUX_IPSR_GPSR(IP0SR5_23_20, Ether_GPTP_PPS1),
1025
1026 PINMUX_IPSR_GPSR(IP0SR5_27_24, AVB2_MDC),
1027
1028 PINMUX_IPSR_GPSR(IP0SR5_31_28, AVB2_TXCREFCLK),
1029
1030 /* IP1SR5 */
1031 PINMUX_IPSR_GPSR(IP1SR5_3_0, AVB2_TD3),
1032
1033 PINMUX_IPSR_GPSR(IP1SR5_7_4, AVB2_RD3),
1034
1035 PINMUX_IPSR_GPSR(IP1SR5_11_8, AVB2_MDIO),
1036
1037 PINMUX_IPSR_GPSR(IP1SR5_15_12, AVB2_TD2),
1038
1039 PINMUX_IPSR_GPSR(IP1SR5_19_16, AVB2_TD1),
1040
1041 PINMUX_IPSR_GPSR(IP1SR5_23_20, AVB2_RD2),
1042
1043 PINMUX_IPSR_GPSR(IP1SR5_27_24, AVB2_RD1),
1044
1045 PINMUX_IPSR_GPSR(IP1SR5_31_28, AVB2_TD0),
1046
1047 /* IP2SR5 */
1048 PINMUX_IPSR_GPSR(IP2SR5_3_0, AVB2_TXC),
1049
1050 PINMUX_IPSR_GPSR(IP2SR5_7_4, AVB2_RD0),
1051
1052 PINMUX_IPSR_GPSR(IP2SR5_11_8, AVB2_RXC),
1053
1054 PINMUX_IPSR_GPSR(IP2SR5_15_12, AVB2_TX_CTL),
1055
1056 PINMUX_IPSR_GPSR(IP2SR5_19_16, AVB2_RX_CTL),
1057
1058 /* IP0SR6 */
1059 PINMUX_IPSR_GPSR(IP0SR6_3_0, AVB1_MDIO),
1060
1061 PINMUX_IPSR_GPSR(IP0SR6_7_4, AVB1_MAGIC),
1062
1063 PINMUX_IPSR_GPSR(IP0SR6_11_8, AVB1_MDC),
1064
1065 PINMUX_IPSR_GPSR(IP0SR6_15_12, AVB1_PHY_INT),
1066
1067 PINMUX_IPSR_GPSR(IP0SR6_19_16, AVB1_LINK),
1068 PINMUX_IPSR_GPSR(IP0SR6_19_16, AVB1_MII_TX_ER),
1069
1070 PINMUX_IPSR_GPSR(IP0SR6_23_20, AVB1_AVTP_MATCH),
1071 PINMUX_IPSR_GPSR(IP0SR6_23_20, AVB1_MII_RX_ER),
1072
1073 PINMUX_IPSR_GPSR(IP0SR6_27_24, AVB1_TXC),
1074 PINMUX_IPSR_GPSR(IP0SR6_27_24, AVB1_MII_TXC),
1075
1076 PINMUX_IPSR_GPSR(IP0SR6_31_28, AVB1_TX_CTL),
1077 PINMUX_IPSR_GPSR(IP0SR6_31_28, AVB1_MII_TX_EN),
1078
1079 /* IP1SR6 */
1080 PINMUX_IPSR_GPSR(IP1SR6_3_0, AVB1_RXC),
1081 PINMUX_IPSR_GPSR(IP1SR6_3_0, AVB1_MII_RXC),
1082
1083 PINMUX_IPSR_GPSR(IP1SR6_7_4, AVB1_RX_CTL),
1084 PINMUX_IPSR_GPSR(IP1SR6_7_4, AVB1_MII_RX_DV),
1085
1086 PINMUX_IPSR_GPSR(IP1SR6_11_8, AVB1_AVTP_PPS),
1087 PINMUX_IPSR_GPSR(IP1SR6_11_8, AVB1_MII_COL),
1088
1089 PINMUX_IPSR_GPSR(IP1SR6_15_12, AVB1_AVTP_CAPTURE),
1090 PINMUX_IPSR_GPSR(IP1SR6_15_12, AVB1_MII_CRS),
1091
1092 PINMUX_IPSR_GPSR(IP1SR6_19_16, AVB1_TD1),
1093 PINMUX_IPSR_GPSR(IP1SR6_19_16, AVB1_MII_TD1),
1094
1095 PINMUX_IPSR_GPSR(IP1SR6_23_20, AVB1_TD0),
1096 PINMUX_IPSR_GPSR(IP1SR6_23_20, AVB1_MII_TD0),
1097
1098 PINMUX_IPSR_GPSR(IP1SR6_27_24, AVB1_RD1),
1099 PINMUX_IPSR_GPSR(IP1SR6_27_24, AVB1_MII_RD1),
1100
1101 PINMUX_IPSR_GPSR(IP1SR6_31_28, AVB1_RD0),
1102 PINMUX_IPSR_GPSR(IP1SR6_31_28, AVB1_MII_RD0),
1103
1104 /* IP2SR6 */
1105 PINMUX_IPSR_GPSR(IP2SR6_3_0, AVB1_TD2),
1106 PINMUX_IPSR_GPSR(IP2SR6_3_0, AVB1_MII_TD2),
1107
1108 PINMUX_IPSR_GPSR(IP2SR6_7_4, AVB1_RD2),
1109 PINMUX_IPSR_GPSR(IP2SR6_7_4, AVB1_MII_RD2),
1110
1111 PINMUX_IPSR_GPSR(IP2SR6_11_8, AVB1_TD3),
1112 PINMUX_IPSR_GPSR(IP2SR6_11_8, AVB1_MII_TD3),
1113
1114 PINMUX_IPSR_GPSR(IP2SR6_15_12, AVB1_RD3),
1115 PINMUX_IPSR_GPSR(IP2SR6_15_12, AVB1_MII_RD3),
1116
1117 PINMUX_IPSR_GPSR(IP2SR6_19_16, AVB1_TXCREFCLK),
1118
1119 /* IP0SR7 */
1120 PINMUX_IPSR_GPSR(IP0SR7_3_0, AVB0_AVTP_PPS),
1121 PINMUX_IPSR_GPSR(IP0SR7_3_0, AVB0_MII_COL),
1122
1123 PINMUX_IPSR_GPSR(IP0SR7_7_4, AVB0_AVTP_CAPTURE),
1124 PINMUX_IPSR_GPSR(IP0SR7_7_4, AVB0_MII_CRS),
1125
1126 PINMUX_IPSR_GPSR(IP0SR7_11_8, AVB0_AVTP_MATCH),
1127 PINMUX_IPSR_GPSR(IP0SR7_11_8, AVB0_MII_RX_ER),
1128 PINMUX_IPSR_GPSR(IP0SR7_11_8, CC5_OSCOUT),
1129
1130 PINMUX_IPSR_GPSR(IP0SR7_15_12, AVB0_TD3),
1131 PINMUX_IPSR_GPSR(IP0SR7_15_12, AVB0_MII_TD3),
1132
1133 PINMUX_IPSR_GPSR(IP0SR7_19_16, AVB0_LINK),
1134 PINMUX_IPSR_GPSR(IP0SR7_19_16, AVB0_MII_TX_ER),
1135
1136 PINMUX_IPSR_GPSR(IP0SR7_23_20, AVB0_PHY_INT),
1137
1138 PINMUX_IPSR_GPSR(IP0SR7_27_24, AVB0_TD2),
1139 PINMUX_IPSR_GPSR(IP0SR7_27_24, AVB0_MII_TD2),
1140
1141 PINMUX_IPSR_GPSR(IP0SR7_31_28, AVB0_TD1),
1142 PINMUX_IPSR_GPSR(IP0SR7_31_28, AVB0_MII_TD1),
1143
1144 /* IP1SR7 */
1145 PINMUX_IPSR_GPSR(IP1SR7_3_0, AVB0_RD3),
1146 PINMUX_IPSR_GPSR(IP1SR7_3_0, AVB0_MII_RD3),
1147
1148 PINMUX_IPSR_GPSR(IP1SR7_7_4, AVB0_TXCREFCLK),
1149
1150 PINMUX_IPSR_GPSR(IP1SR7_11_8, AVB0_MAGIC),
1151
1152 PINMUX_IPSR_GPSR(IP1SR7_15_12, AVB0_TD0),
1153 PINMUX_IPSR_GPSR(IP1SR7_15_12, AVB0_MII_TD0),
1154
1155 PINMUX_IPSR_GPSR(IP1SR7_19_16, AVB0_RD2),
1156 PINMUX_IPSR_GPSR(IP1SR7_19_16, AVB0_MII_RD2),
1157
1158 PINMUX_IPSR_GPSR(IP1SR7_23_20, AVB0_MDC),
1159
1160 PINMUX_IPSR_GPSR(IP1SR7_27_24, AVB0_MDIO),
1161
1162 PINMUX_IPSR_GPSR(IP1SR7_31_28, AVB0_TXC),
1163 PINMUX_IPSR_GPSR(IP1SR7_31_28, AVB0_MII_TXC),
1164
1165 /* IP2SR7 */
1166 PINMUX_IPSR_GPSR(IP2SR7_3_0, AVB0_TX_CTL),
1167 PINMUX_IPSR_GPSR(IP2SR7_3_0, AVB0_MII_TX_EN),
1168
1169 PINMUX_IPSR_GPSR(IP2SR7_7_4, AVB0_RD1),
1170 PINMUX_IPSR_GPSR(IP2SR7_7_4, AVB0_MII_RD1),
1171
1172 PINMUX_IPSR_GPSR(IP2SR7_11_8, AVB0_RD0),
1173 PINMUX_IPSR_GPSR(IP2SR7_11_8, AVB0_MII_RD0),
1174
1175 PINMUX_IPSR_GPSR(IP2SR7_15_12, AVB0_RXC),
1176 PINMUX_IPSR_GPSR(IP2SR7_15_12, AVB0_MII_RXC),
1177
1178 PINMUX_IPSR_GPSR(IP2SR7_19_16, AVB0_RX_CTL),
1179 PINMUX_IPSR_GPSR(IP2SR7_19_16, AVB0_MII_RX_DV),
1180};
1181
1182/*
1183 * Pins not associated with a GPIO port.
1184 */
1185enum {
1186 GP_ASSIGN_LAST(),
1187 NOGP_ALL(),
1188};
1189
1190static const struct sh_pfc_pin pinmux_pins[] = {
1191 PINMUX_GPIO_GP_ALL(),
1192 PINMUX_NOGP_ALL(),
1193};
1194
1195/* - AUDIO CLOCK ----------------------------------------- */
1196static const unsigned int audio_clkin_pins[] = {
1197 /* CLK IN */
1198 RCAR_GP_PIN(1, 22),
1199};
1200static const unsigned int audio_clkin_mux[] = {
1201 AUDIO_CLKIN_MARK,
1202};
1203static const unsigned int audio_clkout_pins[] = {
1204 /* CLK OUT */
1205 RCAR_GP_PIN(1, 21),
1206};
1207static const unsigned int audio_clkout_mux[] = {
1208 AUDIO_CLKOUT_MARK,
1209};
1210
1211/* - AVB0 ------------------------------------------------ */
1212static const unsigned int avb0_link_pins[] = {
1213 /* AVB0_LINK */
1214 RCAR_GP_PIN(7, 4),
1215};
1216static const unsigned int avb0_link_mux[] = {
1217 AVB0_LINK_MARK,
1218};
1219static const unsigned int avb0_magic_pins[] = {
1220 /* AVB0_MAGIC */
1221 RCAR_GP_PIN(7, 10),
1222};
1223static const unsigned int avb0_magic_mux[] = {
1224 AVB0_MAGIC_MARK,
1225};
1226static const unsigned int avb0_phy_int_pins[] = {
1227 /* AVB0_PHY_INT */
1228 RCAR_GP_PIN(7, 5),
1229};
1230static const unsigned int avb0_phy_int_mux[] = {
1231 AVB0_PHY_INT_MARK,
1232};
1233static const unsigned int avb0_mdio_pins[] = {
1234 /* AVB0_MDC, AVB0_MDIO */
1235 RCAR_GP_PIN(7, 13), RCAR_GP_PIN(7, 14),
1236};
1237static const unsigned int avb0_mdio_mux[] = {
1238 AVB0_MDC_MARK, AVB0_MDIO_MARK,
1239};
1240static const unsigned int avb0_rgmii_pins[] = {
1241 /*
1242 * AVB0_TX_CTL, AVB0_TXC, AVB0_TD0, AVB0_TD1, AVB0_TD2, AVB0_TD3,
1243 * AVB0_RX_CTL, AVB0_RXC, AVB0_RD0, AVB0_RD1, AVB0_RD2, AVB0_RD3,
1244 */
1245 RCAR_GP_PIN(7, 16), RCAR_GP_PIN(7, 15),
1246 RCAR_GP_PIN(7, 11), RCAR_GP_PIN(7, 7),
1247 RCAR_GP_PIN(7, 6), RCAR_GP_PIN(7, 3),
1248 RCAR_GP_PIN(7, 20), RCAR_GP_PIN(7, 19),
1249 RCAR_GP_PIN(7, 18), RCAR_GP_PIN(7, 17),
1250 RCAR_GP_PIN(7, 12), RCAR_GP_PIN(7, 8),
1251};
1252static const unsigned int avb0_rgmii_mux[] = {
1253 AVB0_TX_CTL_MARK, AVB0_TXC_MARK,
1254 AVB0_TD0_MARK, AVB0_TD1_MARK,
1255 AVB0_TD2_MARK, AVB0_TD3_MARK,
1256 AVB0_RX_CTL_MARK, AVB0_RXC_MARK,
1257 AVB0_RD0_MARK, AVB0_RD1_MARK,
1258 AVB0_RD2_MARK, AVB0_RD3_MARK,
1259};
1260static const unsigned int avb0_txcrefclk_pins[] = {
1261 /* AVB0_TXCREFCLK */
1262 RCAR_GP_PIN(7, 9),
1263};
1264static const unsigned int avb0_txcrefclk_mux[] = {
1265 AVB0_TXCREFCLK_MARK,
1266};
1267static const unsigned int avb0_avtp_pps_pins[] = {
1268 /* AVB0_AVTP_PPS */
1269 RCAR_GP_PIN(7, 0),
1270};
1271static const unsigned int avb0_avtp_pps_mux[] = {
1272 AVB0_AVTP_PPS_MARK,
1273};
1274static const unsigned int avb0_avtp_capture_pins[] = {
1275 /* AVB0_AVTP_CAPTURE */
1276 RCAR_GP_PIN(7, 1),
1277};
1278static const unsigned int avb0_avtp_capture_mux[] = {
1279 AVB0_AVTP_CAPTURE_MARK,
1280};
1281static const unsigned int avb0_avtp_match_pins[] = {
1282 /* AVB0_AVTP_MATCH */
1283 RCAR_GP_PIN(7, 2),
1284};
1285static const unsigned int avb0_avtp_match_mux[] = {
1286 AVB0_AVTP_MATCH_MARK,
1287};
1288
1289/* - AVB1 ------------------------------------------------ */
1290static const unsigned int avb1_link_pins[] = {
1291 /* AVB1_LINK */
1292 RCAR_GP_PIN(6, 4),
1293};
1294static const unsigned int avb1_link_mux[] = {
1295 AVB1_LINK_MARK,
1296};
1297static const unsigned int avb1_magic_pins[] = {
1298 /* AVB1_MAGIC */
1299 RCAR_GP_PIN(6, 1),
1300};
1301static const unsigned int avb1_magic_mux[] = {
1302 AVB1_MAGIC_MARK,
1303};
1304static const unsigned int avb1_phy_int_pins[] = {
1305 /* AVB1_PHY_INT */
1306 RCAR_GP_PIN(6, 3),
1307};
1308static const unsigned int avb1_phy_int_mux[] = {
1309 AVB1_PHY_INT_MARK,
1310};
1311static const unsigned int avb1_mdio_pins[] = {
1312 /* AVB1_MDC, AVB1_MDIO */
1313 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 0),
1314};
1315static const unsigned int avb1_mdio_mux[] = {
1316 AVB1_MDC_MARK, AVB1_MDIO_MARK,
1317};
1318static const unsigned int avb1_rgmii_pins[] = {
1319 /*
1320 * AVB1_TX_CTL, AVB1_TXC, AVB1_TD0, AVB1_TD1, AVB1_TD2, AVB1_TD3,
1321 * AVB1_RX_CTL, AVB1_RXC, AVB1_RD0, AVB1_RD1, AVB1_RD2, AVB1_RD3,
1322 */
1323 RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
1324 RCAR_GP_PIN(6, 13), RCAR_GP_PIN(6, 12),
1325 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 18),
1326 RCAR_GP_PIN(6, 9), RCAR_GP_PIN(6, 8),
1327 RCAR_GP_PIN(6, 15), RCAR_GP_PIN(6, 14),
1328 RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 19),
1329};
1330static const unsigned int avb1_rgmii_mux[] = {
1331 AVB1_TX_CTL_MARK, AVB1_TXC_MARK,
1332 AVB1_TD0_MARK, AVB1_TD1_MARK,
1333 AVB1_TD2_MARK, AVB1_TD3_MARK,
1334 AVB1_RX_CTL_MARK, AVB1_RXC_MARK,
1335 AVB1_RD0_MARK, AVB1_RD1_MARK,
1336 AVB1_RD2_MARK, AVB1_RD3_MARK,
1337};
1338static const unsigned int avb1_txcrefclk_pins[] = {
1339 /* AVB1_TXCREFCLK */
1340 RCAR_GP_PIN(6, 20),
1341};
1342static const unsigned int avb1_txcrefclk_mux[] = {
1343 AVB1_TXCREFCLK_MARK,
1344};
1345static const unsigned int avb1_avtp_pps_pins[] = {
1346 /* AVB1_AVTP_PPS */
1347 RCAR_GP_PIN(6, 10),
1348};
1349static const unsigned int avb1_avtp_pps_mux[] = {
1350 AVB1_AVTP_PPS_MARK,
1351};
1352static const unsigned int avb1_avtp_capture_pins[] = {
1353 /* AVB1_AVTP_CAPTURE */
1354 RCAR_GP_PIN(6, 11),
1355};
1356static const unsigned int avb1_avtp_capture_mux[] = {
1357 AVB1_AVTP_CAPTURE_MARK,
1358};
1359static const unsigned int avb1_avtp_match_pins[] = {
1360 /* AVB1_AVTP_MATCH */
1361 RCAR_GP_PIN(6, 5),
1362};
1363static const unsigned int avb1_avtp_match_mux[] = {
1364 AVB1_AVTP_MATCH_MARK,
1365};
1366
1367/* - AVB2 ------------------------------------------------ */
1368static const unsigned int avb2_link_pins[] = {
1369 /* AVB2_LINK */
1370 RCAR_GP_PIN(5, 3),
1371};
1372static const unsigned int avb2_link_mux[] = {
1373 AVB2_LINK_MARK,
1374};
1375static const unsigned int avb2_magic_pins[] = {
1376 /* AVB2_MAGIC */
1377 RCAR_GP_PIN(5, 5),
1378};
1379static const unsigned int avb2_magic_mux[] = {
1380 AVB2_MAGIC_MARK,
1381};
1382static const unsigned int avb2_phy_int_pins[] = {
1383 /* AVB2_PHY_INT */
1384 RCAR_GP_PIN(5, 4),
1385};
1386static const unsigned int avb2_phy_int_mux[] = {
1387 AVB2_PHY_INT_MARK,
1388};
1389static const unsigned int avb2_mdio_pins[] = {
1390 /* AVB2_MDC, AVB2_MDIO */
1391 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 10),
1392};
1393static const unsigned int avb2_mdio_mux[] = {
1394 AVB2_MDC_MARK, AVB2_MDIO_MARK,
1395};
1396static const unsigned int avb2_rgmii_pins[] = {
1397 /*
1398 * AVB2_TX_CTL, AVB2_TXC, AVB2_TD0, AVB2_TD1, AVB2_TD2, AVB2_TD3,
1399 * AVB2_RX_CTL, AVB2_RXC, AVB2_RD0, AVB2_RD1, AVB2_RD2, AVB2_RD3,
1400 */
1401 RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 16),
1402 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 12),
1403 RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 8),
1404 RCAR_GP_PIN(5, 20), RCAR_GP_PIN(5, 18),
1405 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 14),
1406 RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 9),
1407};
1408static const unsigned int avb2_rgmii_mux[] = {
1409 AVB2_TX_CTL_MARK, AVB2_TXC_MARK,
1410 AVB2_TD0_MARK, AVB2_TD1_MARK,
1411 AVB2_TD2_MARK, AVB2_TD3_MARK,
1412 AVB2_RX_CTL_MARK, AVB2_RXC_MARK,
1413 AVB2_RD0_MARK, AVB2_RD1_MARK,
1414 AVB2_RD2_MARK, AVB2_RD3_MARK,
1415};
1416static const unsigned int avb2_txcrefclk_pins[] = {
1417 /* AVB2_TXCREFCLK */
1418 RCAR_GP_PIN(5, 7),
1419};
1420static const unsigned int avb2_txcrefclk_mux[] = {
1421 AVB2_TXCREFCLK_MARK,
1422};
1423static const unsigned int avb2_avtp_pps_pins[] = {
1424 /* AVB2_AVTP_PPS */
1425 RCAR_GP_PIN(5, 0),
1426};
1427static const unsigned int avb2_avtp_pps_mux[] = {
1428 AVB2_AVTP_PPS_MARK,
1429};
1430static const unsigned int avb2_avtp_capture_pins[] = {
1431 /* AVB2_AVTP_CAPTURE */
1432 RCAR_GP_PIN(5, 1),
1433};
1434static const unsigned int avb2_avtp_capture_mux[] = {
1435 AVB2_AVTP_CAPTURE_MARK,
1436};
1437static const unsigned int avb2_avtp_match_pins[] = {
1438 /* AVB2_AVTP_MATCH */
1439 RCAR_GP_PIN(5, 2),
1440};
1441static const unsigned int avb2_avtp_match_mux[] = {
1442 AVB2_AVTP_MATCH_MARK,
1443};
1444
1445/* - CANFD0 ----------------------------------------------------------------- */
1446static const unsigned int canfd0_data_pins[] = {
1447 /* CANFD0_TX, CANFD0_RX */
1448 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
1449};
1450static const unsigned int canfd0_data_mux[] = {
1451 CANFD0_TX_MARK, CANFD0_RX_MARK,
1452};
1453
1454/* - CANFD1 ----------------------------------------------------------------- */
1455static const unsigned int canfd1_data_pins[] = {
1456 /* CANFD1_TX, CANFD1_RX */
1457 RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 19),
1458};
1459static const unsigned int canfd1_data_mux[] = {
1460 CANFD1_TX_MARK, CANFD1_RX_MARK,
1461};
1462
1463/* - CANFD2 ----------------------------------------------------------------- */
1464static const unsigned int canfd2_data_pins[] = {
1465 /* CANFD2_TX, CANFD2_RX */
1466 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
1467};
1468static const unsigned int canfd2_data_mux[] = {
1469 CANFD2_TX_MARK, CANFD2_RX_MARK,
1470};
1471
1472/* - CANFD3 ----------------------------------------------------------------- */
1473static const unsigned int canfd3_data_pins[] = {
1474 /* CANFD3_TX, CANFD3_RX */
1475 RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 15),
1476};
1477static const unsigned int canfd3_data_mux[] = {
1478 CANFD3_TX_MARK, CANFD3_RX_MARK,
1479};
1480
1481/* - CANFD Clock ------------------------------------------------------------ */
1482static const unsigned int can_clk_pins[] = {
1483 /* CAN_CLK */
1484 RCAR_GP_PIN(2, 9),
1485};
1486static const unsigned int can_clk_mux[] = {
1487 CAN_CLK_MARK,
1488};
1489
1490/* - HSCIF0 ----------------------------------------------------------------- */
1491static const unsigned int hscif0_data_pins[] = {
1492 /* HRX0, HTX0 */
1493 RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 12),
1494};
1495static const unsigned int hscif0_data_mux[] = {
1496 HRX0_MARK, HTX0_MARK,
1497};
1498static const unsigned int hscif0_clk_pins[] = {
1499 /* HSCK0 */
1500 RCAR_GP_PIN(1, 15),
1501};
1502static const unsigned int hscif0_clk_mux[] = {
1503 HSCK0_MARK,
1504};
1505static const unsigned int hscif0_ctrl_pins[] = {
1506 /* HRTS0_N, HCTS0_N */
1507 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
1508};
1509static const unsigned int hscif0_ctrl_mux[] = {
1510 HRTS0_N_MARK, HCTS0_N_MARK,
1511};
1512
1513/* - HSCIF1_A ----------------------------------------------------------------- */
1514static const unsigned int hscif1_data_a_pins[] = {
1515 /* HRX1_A, HTX1_A */
1516 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
1517};
1518static const unsigned int hscif1_data_a_mux[] = {
1519 HRX1_A_MARK, HTX1_A_MARK,
1520};
1521static const unsigned int hscif1_clk_a_pins[] = {
1522 /* HSCK1_A */
1523 RCAR_GP_PIN(0, 18),
1524};
1525static const unsigned int hscif1_clk_a_mux[] = {
1526 HSCK1_A_MARK,
1527};
1528static const unsigned int hscif1_ctrl_a_pins[] = {
1529 /* HRTS1_N_A, HCTS1_N_A */
1530 RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
1531};
1532static const unsigned int hscif1_ctrl_a_mux[] = {
1533 HRTS1_N_A_MARK, HCTS1_N_A_MARK,
1534};
1535
1536/* - HSCIF1_B ---------------------------------------------------------------- */
1537static const unsigned int hscif1_data_b_pins[] = {
1538 /* HRX1_B, HTX1_B */
1539 RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
1540};
1541static const unsigned int hscif1_data_b_mux[] = {
1542 HRX1_B_MARK, HTX1_B_MARK,
1543};
1544static const unsigned int hscif1_clk_b_pins[] = {
1545 /* HSCK1_B */
1546 RCAR_GP_PIN(1, 10),
1547};
1548static const unsigned int hscif1_clk_b_mux[] = {
1549 HSCK1_B_MARK,
1550};
1551static const unsigned int hscif1_ctrl_b_pins[] = {
1552 /* HRTS1_N_B, HCTS1_N_B */
1553 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
1554};
1555static const unsigned int hscif1_ctrl_b_mux[] = {
1556 HRTS1_N_B_MARK, HCTS1_N_B_MARK,
1557};
1558
1559/* - HSCIF2 ----------------------------------------------------------------- */
1560static const unsigned int hscif2_data_pins[] = {
1561 /* HRX2, HTX2 */
1562 RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
1563};
1564static const unsigned int hscif2_data_mux[] = {
1565 HRX2_MARK, HTX2_MARK,
1566};
1567static const unsigned int hscif2_clk_pins[] = {
1568 /* HSCK2 */
1569 RCAR_GP_PIN(4, 13),
1570};
1571static const unsigned int hscif2_clk_mux[] = {
1572 HSCK2_MARK,
1573};
1574static const unsigned int hscif2_ctrl_pins[] = {
1575 /* HRTS2_N, HCTS2_N */
1576 RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 12),
1577};
1578static const unsigned int hscif2_ctrl_mux[] = {
1579 HRTS2_N_MARK, HCTS2_N_MARK,
1580};
1581
1582/* - HSCIF3_A ----------------------------------------------------------------- */
1583static const unsigned int hscif3_data_a_pins[] = {
1584 /* HRX3_A, HTX3_A */
1585 RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 28),
1586};
1587static const unsigned int hscif3_data_a_mux[] = {
1588 HRX3_A_MARK, HTX3_A_MARK,
1589};
1590static const unsigned int hscif3_clk_a_pins[] = {
1591 /* HSCK3_A */
1592 RCAR_GP_PIN(1, 25),
1593};
1594static const unsigned int hscif3_clk_a_mux[] = {
1595 HSCK3_A_MARK,
1596};
1597static const unsigned int hscif3_ctrl_a_pins[] = {
1598 /* HRTS3_N_A, HCTS3_N_A */
1599 RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 27),
1600};
1601static const unsigned int hscif3_ctrl_a_mux[] = {
1602 HRTS3_N_A_MARK, HCTS3_N_A_MARK,
1603};
1604
1605/* - HSCIF3_B ----------------------------------------------------------------- */
1606static const unsigned int hscif3_data_b_pins[] = {
1607 /* HRX3_B, HTX3_B */
1608 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 0),
1609};
1610static const unsigned int hscif3_data_b_mux[] = {
1611 HRX3_B_MARK, HTX3_B_MARK,
1612};
1613static const unsigned int hscif3_clk_b_pins[] = {
1614 /* HSCK3_B */
1615 RCAR_GP_PIN(1, 3),
1616};
1617static const unsigned int hscif3_clk_b_mux[] = {
1618 HSCK3_B_MARK,
1619};
1620static const unsigned int hscif3_ctrl_b_pins[] = {
1621 /* HRTS3_N_B, HCTS3_N_B */
1622 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 1),
1623};
1624static const unsigned int hscif3_ctrl_b_mux[] = {
1625 HRTS3_N_B_MARK, HCTS3_N_B_MARK,
1626};
1627
1628/* - I2C0 ------------------------------------------------------------------- */
1629static const unsigned int i2c0_pins[] = {
1630 /* SDA0, SCL0 */
1631 RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 0),
1632};
1633static const unsigned int i2c0_mux[] = {
1634 SDA0_MARK, SCL0_MARK,
1635};
1636
1637/* - I2C1 ------------------------------------------------------------------- */
1638static const unsigned int i2c1_pins[] = {
1639 /* SDA1, SCL1 */
1640 RCAR_GP_PIN(4, 3), RCAR_GP_PIN(4, 2),
1641};
1642static const unsigned int i2c1_mux[] = {
1643 SDA1_MARK, SCL1_MARK,
1644};
1645
1646/* - I2C2 ------------------------------------------------------------------- */
1647static const unsigned int i2c2_pins[] = {
1648 /* SDA2, SCL2 */
1649 RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 4),
1650};
1651static const unsigned int i2c2_mux[] = {
1652 SDA2_MARK, SCL2_MARK,
1653};
1654
1655/* - I2C3 ------------------------------------------------------------------- */
1656static const unsigned int i2c3_pins[] = {
1657 /* SDA3, SCL3 */
1658 RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 6),
1659};
1660static const unsigned int i2c3_mux[] = {
1661 SDA3_MARK, SCL3_MARK,
1662};
1663
1664/* - MMC -------------------------------------------------------------------- */
1665static const unsigned int mmc_data_pins[] = {
1666 /* MMC_SD_D[0:3], MMC_D[4:7] */
1667 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
1668 RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 5),
1669 RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 6),
1670 RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
1671};
1672static const unsigned int mmc_data_mux[] = {
1673 MMC_SD_D0_MARK, MMC_SD_D1_MARK,
1674 MMC_SD_D2_MARK, MMC_SD_D3_MARK,
1675 MMC_D4_MARK, MMC_D5_MARK,
1676 MMC_D6_MARK, MMC_D7_MARK,
1677};
1678static const unsigned int mmc_ctrl_pins[] = {
1679 /* MMC_SD_CLK, MMC_SD_CMD */
1680 RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 10),
1681};
1682static const unsigned int mmc_ctrl_mux[] = {
1683 MMC_SD_CLK_MARK, MMC_SD_CMD_MARK,
1684};
1685static const unsigned int mmc_cd_pins[] = {
1686 /* SD_CD */
1687 RCAR_GP_PIN(3, 11),
1688};
1689static const unsigned int mmc_cd_mux[] = {
1690 SD_CD_MARK,
1691};
1692static const unsigned int mmc_wp_pins[] = {
1693 /* SD_WP */
1694 RCAR_GP_PIN(3, 12),
1695};
1696static const unsigned int mmc_wp_mux[] = {
1697 SD_WP_MARK,
1698};
1699static const unsigned int mmc_ds_pins[] = {
1700 /* MMC_DS */
1701 RCAR_GP_PIN(3, 4),
1702};
1703static const unsigned int mmc_ds_mux[] = {
1704 MMC_DS_MARK,
1705};
1706
1707/* - MSIOF0 ----------------------------------------------------------------- */
1708static const unsigned int msiof0_clk_pins[] = {
1709 /* MSIOF0_SCK */
1710 RCAR_GP_PIN(1, 10),
1711};
1712static const unsigned int msiof0_clk_mux[] = {
1713 MSIOF0_SCK_MARK,
1714};
1715static const unsigned int msiof0_sync_pins[] = {
1716 /* MSIOF0_SYNC */
1717 RCAR_GP_PIN(1, 8),
1718};
1719static const unsigned int msiof0_sync_mux[] = {
1720 MSIOF0_SYNC_MARK,
1721};
1722static const unsigned int msiof0_ss1_pins[] = {
1723 /* MSIOF0_SS1 */
1724 RCAR_GP_PIN(1, 7),
1725};
1726static const unsigned int msiof0_ss1_mux[] = {
1727 MSIOF0_SS1_MARK,
1728};
1729static const unsigned int msiof0_ss2_pins[] = {
1730 /* MSIOF0_SS2 */
1731 RCAR_GP_PIN(1, 6),
1732};
1733static const unsigned int msiof0_ss2_mux[] = {
1734 MSIOF0_SS2_MARK,
1735};
1736static const unsigned int msiof0_txd_pins[] = {
1737 /* MSIOF0_TXD */
1738 RCAR_GP_PIN(1, 9),
1739};
1740static const unsigned int msiof0_txd_mux[] = {
1741 MSIOF0_TXD_MARK,
1742};
1743static const unsigned int msiof0_rxd_pins[] = {
1744 /* MSIOF0_RXD */
1745 RCAR_GP_PIN(1, 11),
1746};
1747static const unsigned int msiof0_rxd_mux[] = {
1748 MSIOF0_RXD_MARK,
1749};
1750
1751/* - MSIOF1 ----------------------------------------------------------------- */
1752static const unsigned int msiof1_clk_pins[] = {
1753 /* MSIOF1_SCK */
1754 RCAR_GP_PIN(1, 3),
1755};
1756static const unsigned int msiof1_clk_mux[] = {
1757 MSIOF1_SCK_MARK,
1758};
1759static const unsigned int msiof1_sync_pins[] = {
1760 /* MSIOF1_SYNC */
1761 RCAR_GP_PIN(1, 2),
1762};
1763static const unsigned int msiof1_sync_mux[] = {
1764 MSIOF1_SYNC_MARK,
1765};
1766static const unsigned int msiof1_ss1_pins[] = {
1767 /* MSIOF1_SS1 */
1768 RCAR_GP_PIN(1, 1),
1769};
1770static const unsigned int msiof1_ss1_mux[] = {
1771 MSIOF1_SS1_MARK,
1772};
1773static const unsigned int msiof1_ss2_pins[] = {
1774 /* MSIOF1_SS2 */
1775 RCAR_GP_PIN(1, 0),
1776};
1777static const unsigned int msiof1_ss2_mux[] = {
1778 MSIOF1_SS2_MARK,
1779};
1780static const unsigned int msiof1_txd_pins[] = {
1781 /* MSIOF1_TXD */
1782 RCAR_GP_PIN(1, 4),
1783};
1784static const unsigned int msiof1_txd_mux[] = {
1785 MSIOF1_TXD_MARK,
1786};
1787static const unsigned int msiof1_rxd_pins[] = {
1788 /* MSIOF1_RXD */
1789 RCAR_GP_PIN(1, 5),
1790};
1791static const unsigned int msiof1_rxd_mux[] = {
1792 MSIOF1_RXD_MARK,
1793};
1794
1795/* - MSIOF2 ----------------------------------------------------------------- */
1796static const unsigned int msiof2_clk_pins[] = {
1797 /* MSIOF2_SCK */
1798 RCAR_GP_PIN(0, 17),
1799};
1800static const unsigned int msiof2_clk_mux[] = {
1801 MSIOF2_SCK_MARK,
1802};
1803static const unsigned int msiof2_sync_pins[] = {
1804 /* MSIOF2_SYNC */
1805 RCAR_GP_PIN(0, 15),
1806};
1807static const unsigned int msiof2_sync_mux[] = {
1808 MSIOF2_SYNC_MARK,
1809};
1810static const unsigned int msiof2_ss1_pins[] = {
1811 /* MSIOF2_SS1 */
1812 RCAR_GP_PIN(0, 14),
1813};
1814static const unsigned int msiof2_ss1_mux[] = {
1815 MSIOF2_SS1_MARK,
1816};
1817static const unsigned int msiof2_ss2_pins[] = {
1818 /* MSIOF2_SS2 */
1819 RCAR_GP_PIN(0, 13),
1820};
1821static const unsigned int msiof2_ss2_mux[] = {
1822 MSIOF2_SS2_MARK,
1823};
1824static const unsigned int msiof2_txd_pins[] = {
1825 /* MSIOF2_TXD */
1826 RCAR_GP_PIN(0, 16),
1827};
1828static const unsigned int msiof2_txd_mux[] = {
1829 MSIOF2_TXD_MARK,
1830};
1831static const unsigned int msiof2_rxd_pins[] = {
1832 /* MSIOF2_RXD */
1833 RCAR_GP_PIN(0, 18),
1834};
1835static const unsigned int msiof2_rxd_mux[] = {
1836 MSIOF2_RXD_MARK,
1837};
1838
1839/* - MSIOF3 ----------------------------------------------------------------- */
1840static const unsigned int msiof3_clk_pins[] = {
1841 /* MSIOF3_SCK */
1842 RCAR_GP_PIN(0, 3),
1843};
1844static const unsigned int msiof3_clk_mux[] = {
1845 MSIOF3_SCK_MARK,
1846};
1847static const unsigned int msiof3_sync_pins[] = {
1848 /* MSIOF3_SYNC */
1849 RCAR_GP_PIN(0, 6),
1850};
1851static const unsigned int msiof3_sync_mux[] = {
1852 MSIOF3_SYNC_MARK,
1853};
1854static const unsigned int msiof3_ss1_pins[] = {
1855 /* MSIOF3_SS1 */
1856 RCAR_GP_PIN(0, 1),
1857};
1858static const unsigned int msiof3_ss1_mux[] = {
1859 MSIOF3_SS1_MARK,
1860};
1861static const unsigned int msiof3_ss2_pins[] = {
1862 /* MSIOF3_SS2 */
1863 RCAR_GP_PIN(0, 2),
1864};
1865static const unsigned int msiof3_ss2_mux[] = {
1866 MSIOF3_SS2_MARK,
1867};
1868static const unsigned int msiof3_txd_pins[] = {
1869 /* MSIOF3_TXD */
1870 RCAR_GP_PIN(0, 4),
1871};
1872static const unsigned int msiof3_txd_mux[] = {
1873 MSIOF3_TXD_MARK,
1874};
1875static const unsigned int msiof3_rxd_pins[] = {
1876 /* MSIOF3_RXD */
1877 RCAR_GP_PIN(0, 5),
1878};
1879static const unsigned int msiof3_rxd_mux[] = {
1880 MSIOF3_RXD_MARK,
1881};
1882
1883/* - MSIOF4 ----------------------------------------------------------------- */
1884static const unsigned int msiof4_clk_pins[] = {
1885 /* MSIOF4_SCK */
1886 RCAR_GP_PIN(1, 25),
1887};
1888static const unsigned int msiof4_clk_mux[] = {
1889 MSIOF4_SCK_MARK,
1890};
1891static const unsigned int msiof4_sync_pins[] = {
1892 /* MSIOF4_SYNC */
1893 RCAR_GP_PIN(1, 28),
1894};
1895static const unsigned int msiof4_sync_mux[] = {
1896 MSIOF4_SYNC_MARK,
1897};
1898static const unsigned int msiof4_ss1_pins[] = {
1899 /* MSIOF4_SS1 */
1900 RCAR_GP_PIN(1, 23),
1901};
1902static const unsigned int msiof4_ss1_mux[] = {
1903 MSIOF4_SS1_MARK,
1904};
1905static const unsigned int msiof4_ss2_pins[] = {
1906 /* MSIOF4_SS2 */
1907 RCAR_GP_PIN(1, 24),
1908};
1909static const unsigned int msiof4_ss2_mux[] = {
1910 MSIOF4_SS2_MARK,
1911};
1912static const unsigned int msiof4_txd_pins[] = {
1913 /* MSIOF4_TXD */
1914 RCAR_GP_PIN(1, 26),
1915};
1916static const unsigned int msiof4_txd_mux[] = {
1917 MSIOF4_TXD_MARK,
1918};
1919static const unsigned int msiof4_rxd_pins[] = {
1920 /* MSIOF4_RXD */
1921 RCAR_GP_PIN(1, 27),
1922};
1923static const unsigned int msiof4_rxd_mux[] = {
1924 MSIOF4_RXD_MARK,
1925};
1926
1927/* - MSIOF5 ----------------------------------------------------------------- */
1928static const unsigned int msiof5_clk_pins[] = {
1929 /* MSIOF5_SCK */
1930 RCAR_GP_PIN(0, 11),
1931};
1932static const unsigned int msiof5_clk_mux[] = {
1933 MSIOF5_SCK_MARK,
1934};
1935static const unsigned int msiof5_sync_pins[] = {
1936 /* MSIOF5_SYNC */
1937 RCAR_GP_PIN(0, 9),
1938};
1939static const unsigned int msiof5_sync_mux[] = {
1940 MSIOF5_SYNC_MARK,
1941};
1942static const unsigned int msiof5_ss1_pins[] = {
1943 /* MSIOF5_SS1 */
1944 RCAR_GP_PIN(0, 8),
1945};
1946static const unsigned int msiof5_ss1_mux[] = {
1947 MSIOF5_SS1_MARK,
1948};
1949static const unsigned int msiof5_ss2_pins[] = {
1950 /* MSIOF5_SS2 */
1951 RCAR_GP_PIN(0, 7),
1952};
1953static const unsigned int msiof5_ss2_mux[] = {
1954 MSIOF5_SS2_MARK,
1955};
1956static const unsigned int msiof5_txd_pins[] = {
1957 /* MSIOF5_TXD */
1958 RCAR_GP_PIN(0, 10),
1959};
1960static const unsigned int msiof5_txd_mux[] = {
1961 MSIOF5_TXD_MARK,
1962};
1963static const unsigned int msiof5_rxd_pins[] = {
1964 /* MSIOF5_RXD */
1965 RCAR_GP_PIN(0, 12),
1966};
1967static const unsigned int msiof5_rxd_mux[] = {
1968 MSIOF5_RXD_MARK,
1969};
1970
1971/* - PCIE ------------------------------------------------------------------- */
1972static const unsigned int pcie0_clkreq_n_pins[] = {
1973 /* PCIE0_CLKREQ_N */
1974 RCAR_GP_PIN(4, 21),
1975};
1976
1977static const unsigned int pcie0_clkreq_n_mux[] = {
1978 PCIE0_CLKREQ_N_MARK,
1979};
1980
1981/* - PWM0_A ------------------------------------------------------------------- */
1982static const unsigned int pwm0_a_pins[] = {
1983 /* PWM0_A */
1984 RCAR_GP_PIN(1, 15),
1985};
1986static const unsigned int pwm0_a_mux[] = {
1987 PWM0_A_MARK,
1988};
1989
1990/* - PWM0_B ------------------------------------------------------------------- */
1991static const unsigned int pwm0_b_pins[] = {
1992 /* PWM0_B */
1993 RCAR_GP_PIN(1, 14),
1994};
1995static const unsigned int pwm0_b_mux[] = {
1996 PWM0_B_MARK,
1997};
1998
1999/* - PWM1_A ------------------------------------------------------------------- */
2000static const unsigned int pwm1_a_pins[] = {
2001 /* PWM1_A */
2002 RCAR_GP_PIN(3, 13),
2003};
2004static const unsigned int pwm1_a_mux[] = {
2005 PWM1_A_MARK,
2006};
2007
2008/* - PWM1_B ------------------------------------------------------------------- */
2009static const unsigned int pwm1_b_pins[] = {
2010 /* PWM1_B */
2011 RCAR_GP_PIN(2, 13),
2012};
2013static const unsigned int pwm1_b_mux[] = {
2014 PWM1_B_MARK,
2015};
2016
2017/* - PWM1_C ------------------------------------------------------------------- */
2018static const unsigned int pwm1_c_pins[] = {
2019 /* PWM1_C */
2020 RCAR_GP_PIN(2, 17),
2021};
2022static const unsigned int pwm1_c_mux[] = {
2023 PWM1_C_MARK,
2024};
2025
2026/* - PWM2_A ------------------------------------------------------------------- */
2027static const unsigned int pwm2_a_pins[] = {
2028 /* PWM2_A */
2029 RCAR_GP_PIN(3, 14),
2030};
2031static const unsigned int pwm2_a_mux[] = {
2032 PWM2_A_MARK,
2033};
2034
2035/* - PWM2_B ------------------------------------------------------------------- */
2036static const unsigned int pwm2_b_pins[] = {
2037 /* PWM2_B */
2038 RCAR_GP_PIN(2, 14),
2039};
2040static const unsigned int pwm2_b_mux[] = {
2041 PWM2_B_MARK,
2042};
2043
2044/* - PWM2_C ------------------------------------------------------------------- */
2045static const unsigned int pwm2_c_pins[] = {
2046 /* PWM2_C */
2047 RCAR_GP_PIN(2, 19),
2048};
2049static const unsigned int pwm2_c_mux[] = {
2050 PWM2_C_MARK,
2051};
2052
2053/* - PWM3_A ------------------------------------------------------------------- */
2054static const unsigned int pwm3_a_pins[] = {
2055 /* PWM3_A */
2056 RCAR_GP_PIN(4, 14),
2057};
2058static const unsigned int pwm3_a_mux[] = {
2059 PWM3_A_MARK,
2060};
2061
2062/* - PWM3_B ------------------------------------------------------------------- */
2063static const unsigned int pwm3_b_pins[] = {
2064 /* PWM3_B */
2065 RCAR_GP_PIN(2, 15),
2066};
2067static const unsigned int pwm3_b_mux[] = {
2068 PWM3_B_MARK,
2069};
2070
2071/* - PWM3_C ------------------------------------------------------------------- */
2072static const unsigned int pwm3_c_pins[] = {
2073 /* PWM3_C */
2074 RCAR_GP_PIN(1, 22),
2075};
2076static const unsigned int pwm3_c_mux[] = {
2077 PWM3_C_MARK,
2078};
2079
2080/* - PWM4 ------------------------------------------------------------------- */
2081static const unsigned int pwm4_pins[] = {
2082 /* PWM4 */
2083 RCAR_GP_PIN(4, 15),
2084};
2085static const unsigned int pwm4_mux[] = {
2086 PWM4_MARK,
2087};
2088
2089/* - QSPI0 ------------------------------------------------------------------ */
2090static const unsigned int qspi0_ctrl_pins[] = {
2091 /* SPCLK, SSL */
2092 RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 15),
2093};
2094static const unsigned int qspi0_ctrl_mux[] = {
2095 QSPI0_SPCLK_MARK, QSPI0_SSL_MARK,
2096};
2097static const unsigned int qspi0_data_pins[] = {
2098 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2099 RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 18),
2100 RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
2101};
2102static const unsigned int qspi0_data_mux[] = {
2103 QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK,
2104 QSPI0_IO2_MARK, QSPI0_IO3_MARK
2105};
2106
2107/* - QSPI1 ------------------------------------------------------------------ */
2108static const unsigned int qspi1_ctrl_pins[] = {
2109 /* SPCLK, SSL */
2110 RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 25),
2111};
2112static const unsigned int qspi1_ctrl_mux[] = {
2113 QSPI1_SPCLK_MARK, QSPI1_SSL_MARK,
2114};
2115static const unsigned int qspi1_data_pins[] = {
2116 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2117 RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 23),
2118 RCAR_GP_PIN(3, 24), RCAR_GP_PIN(3, 26),
2119};
2120static const unsigned int qspi1_data_mux[] = {
2121 QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK,
2122 QSPI1_IO2_MARK, QSPI1_IO3_MARK
2123};
2124
2125/* - SCIF0 ------------------------------------------------------------------ */
2126static const unsigned int scif0_data_pins[] = {
2127 /* RX0, TX0 */
2128 RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 12),
2129};
2130static const unsigned int scif0_data_mux[] = {
2131 RX0_MARK, TX0_MARK,
2132};
2133static const unsigned int scif0_clk_pins[] = {
2134 /* SCK0 */
2135 RCAR_GP_PIN(1, 15),
2136};
2137static const unsigned int scif0_clk_mux[] = {
2138 SCK0_MARK,
2139};
2140static const unsigned int scif0_ctrl_pins[] = {
2141 /* RTS0_N, CTS0_N */
2142 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
2143};
2144static const unsigned int scif0_ctrl_mux[] = {
2145 RTS0_N_MARK, CTS0_N_MARK,
2146};
2147
2148/* - SCIF1_A ------------------------------------------------------------------ */
2149static const unsigned int scif1_data_a_pins[] = {
2150 /* RX1_A, TX1_A */
2151 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
2152};
2153static const unsigned int scif1_data_a_mux[] = {
2154 RX1_A_MARK, TX1_A_MARK,
2155};
2156static const unsigned int scif1_clk_a_pins[] = {
2157 /* SCK1_A */
2158 RCAR_GP_PIN(0, 18),
2159};
2160static const unsigned int scif1_clk_a_mux[] = {
2161 SCK1_A_MARK,
2162};
2163static const unsigned int scif1_ctrl_a_pins[] = {
2164 /* RTS1_N_A, CTS1_N_A */
2165 RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
2166};
2167static const unsigned int scif1_ctrl_a_mux[] = {
2168 RTS1_N_A_MARK, CTS1_N_A_MARK,
2169};
2170
2171/* - SCIF1_B ------------------------------------------------------------------ */
2172static const unsigned int scif1_data_b_pins[] = {
2173 /* RX1_B, TX1_B */
2174 RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
2175};
2176static const unsigned int scif1_data_b_mux[] = {
2177 RX1_B_MARK, TX1_B_MARK,
2178};
2179static const unsigned int scif1_clk_b_pins[] = {
2180 /* SCK1_B */
2181 RCAR_GP_PIN(1, 10),
2182};
2183static const unsigned int scif1_clk_b_mux[] = {
2184 SCK1_B_MARK,
2185};
2186static const unsigned int scif1_ctrl_b_pins[] = {
2187 /* RTS1_N_B, CTS1_N_B */
2188 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
2189};
2190static const unsigned int scif1_ctrl_b_mux[] = {
2191 RTS1_N_B_MARK, CTS1_N_B_MARK,
2192};
2193
2194/* - SCIF3_A ------------------------------------------------------------------ */
2195static const unsigned int scif3_data_a_pins[] = {
2196 /* RX3_A, TX3_A */
2197 RCAR_GP_PIN(1, 27), RCAR_GP_PIN(1, 28),
2198};
2199static const unsigned int scif3_data_a_mux[] = {
2200 RX3_A_MARK, TX3_A_MARK,
2201};
2202static const unsigned int scif3_clk_a_pins[] = {
2203 /* SCK3_A */
2204 RCAR_GP_PIN(1, 24),
2205};
2206static const unsigned int scif3_clk_a_mux[] = {
2207 SCK3_A_MARK,
2208};
2209static const unsigned int scif3_ctrl_a_pins[] = {
2210 /* RTS3_N_A, CTS3_N_A */
2211 RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
2212};
2213static const unsigned int scif3_ctrl_a_mux[] = {
2214 RTS3_N_A_MARK, CTS3_N_A_MARK,
2215};
2216
2217/* - SCIF3_B ------------------------------------------------------------------ */
2218static const unsigned int scif3_data_b_pins[] = {
2219 /* RX3_B, TX3_B */
2220 RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 0),
2221};
2222static const unsigned int scif3_data_b_mux[] = {
2223 RX3_B_MARK, TX3_B_MARK,
2224};
2225static const unsigned int scif3_clk_b_pins[] = {
2226 /* SCK3_B */
2227 RCAR_GP_PIN(1, 4),
2228};
2229static const unsigned int scif3_clk_b_mux[] = {
2230 SCK3_B_MARK,
2231};
2232static const unsigned int scif3_ctrl_b_pins[] = {
2233 /* RTS3_N_B, CTS3_N_B */
2234 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3),
2235};
2236static const unsigned int scif3_ctrl_b_mux[] = {
2237 RTS3_N_B_MARK, CTS3_N_B_MARK,
2238};
2239
2240/* - SCIF4 ------------------------------------------------------------------ */
2241static const unsigned int scif4_data_pins[] = {
2242 /* RX4, TX4 */
2243 RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 12),
2244};
2245static const unsigned int scif4_data_mux[] = {
2246 RX4_MARK, TX4_MARK,
2247};
2248static const unsigned int scif4_clk_pins[] = {
2249 /* SCK4 */
2250 RCAR_GP_PIN(4, 8),
2251};
2252static const unsigned int scif4_clk_mux[] = {
2253 SCK4_MARK,
2254};
2255static const unsigned int scif4_ctrl_pins[] = {
2256 /* RTS4_N, CTS4_N */
2257 RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 9),
2258};
2259static const unsigned int scif4_ctrl_mux[] = {
2260 RTS4_N_MARK, CTS4_N_MARK,
2261};
2262
2263/* - SCIF Clock ------------------------------------------------------------- */
2264static const unsigned int scif_clk_pins[] = {
2265 /* SCIF_CLK */
2266 RCAR_GP_PIN(1, 17),
2267};
2268static const unsigned int scif_clk_mux[] = {
2269 SCIF_CLK_MARK,
2270};
2271
2272static const unsigned int scif_clk2_pins[] = {
2273 /* SCIF_CLK2 */
2274 RCAR_GP_PIN(4, 11),
2275};
2276static const unsigned int scif_clk2_mux[] = {
2277 SCIF_CLK2_MARK,
2278};
2279
2280/* - SSI ------------------------------------------------- */
2281static const unsigned int ssi_data_pins[] = {
2282 /* SSI_SD */
2283 RCAR_GP_PIN(1, 20),
2284};
2285static const unsigned int ssi_data_mux[] = {
2286 SSI_SD_MARK,
2287};
2288static const unsigned int ssi_ctrl_pins[] = {
2289 /* SSI_SCK, SSI_WS */
2290 RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
2291};
2292static const unsigned int ssi_ctrl_mux[] = {
2293 SSI_SCK_MARK, SSI_WS_MARK,
2294};
2295
2296/* - TPU_A ------------------------------------------------------------------- */
2297static const unsigned int tpu_to0_a_pins[] = {
2298 /* TPU0TO0_A */
2299 RCAR_GP_PIN(2, 8),
2300};
2301static const unsigned int tpu_to0_a_mux[] = {
2302 TPU0TO0_A_MARK,
2303};
2304static const unsigned int tpu_to1_a_pins[] = {
2305 /* TPU0TO1_A */
2306 RCAR_GP_PIN(2, 7),
2307};
2308static const unsigned int tpu_to1_a_mux[] = {
2309 TPU0TO1_A_MARK,
2310};
2311static const unsigned int tpu_to2_a_pins[] = {
2312 /* TPU0TO2_A */
2313 RCAR_GP_PIN(2, 12),
2314};
2315static const unsigned int tpu_to2_a_mux[] = {
2316 TPU0TO2_A_MARK,
2317};
2318static const unsigned int tpu_to3_a_pins[] = {
2319 /* TPU0TO3_A */
2320 RCAR_GP_PIN(2, 13),
2321};
2322static const unsigned int tpu_to3_a_mux[] = {
2323 TPU0TO3_A_MARK,
2324};
2325
2326/* - TPU_B ------------------------------------------------------------------- */
2327static const unsigned int tpu_to0_b_pins[] = {
2328 /* TPU0TO0_B */
2329 RCAR_GP_PIN(1, 25),
2330};
2331static const unsigned int tpu_to0_b_mux[] = {
2332 TPU0TO0_B_MARK,
2333};
2334static const unsigned int tpu_to1_b_pins[] = {
2335 /* TPU0TO1_B */
2336 RCAR_GP_PIN(1, 26),
2337};
2338static const unsigned int tpu_to1_b_mux[] = {
2339 TPU0TO1_B_MARK,
2340};
2341static const unsigned int tpu_to2_b_pins[] = {
2342 /* TPU0TO2_B */
2343 RCAR_GP_PIN(2, 0),
2344};
2345static const unsigned int tpu_to2_b_mux[] = {
2346 TPU0TO2_B_MARK,
2347};
2348static const unsigned int tpu_to3_b_pins[] = {
2349 /* TPU0TO3_B */
2350 RCAR_GP_PIN(2, 1),
2351};
2352static const unsigned int tpu_to3_b_mux[] = {
2353 TPU0TO3_B_MARK,
2354};
2355
2356static const struct sh_pfc_pin_group pinmux_groups[] = {
2357 SH_PFC_PIN_GROUP(audio_clkin),
2358 SH_PFC_PIN_GROUP(audio_clkout),
2359
2360 SH_PFC_PIN_GROUP(avb0_link),
2361 SH_PFC_PIN_GROUP(avb0_magic),
2362 SH_PFC_PIN_GROUP(avb0_phy_int),
2363 SH_PFC_PIN_GROUP(avb0_mdio),
2364 SH_PFC_PIN_GROUP(avb0_rgmii),
2365 SH_PFC_PIN_GROUP(avb0_txcrefclk),
2366 SH_PFC_PIN_GROUP(avb0_avtp_pps),
2367 SH_PFC_PIN_GROUP(avb0_avtp_capture),
2368 SH_PFC_PIN_GROUP(avb0_avtp_match),
2369
2370 SH_PFC_PIN_GROUP(avb1_link),
2371 SH_PFC_PIN_GROUP(avb1_magic),
2372 SH_PFC_PIN_GROUP(avb1_phy_int),
2373 SH_PFC_PIN_GROUP(avb1_mdio),
2374 SH_PFC_PIN_GROUP(avb1_rgmii),
2375 SH_PFC_PIN_GROUP(avb1_txcrefclk),
2376 SH_PFC_PIN_GROUP(avb1_avtp_pps),
2377 SH_PFC_PIN_GROUP(avb1_avtp_capture),
2378 SH_PFC_PIN_GROUP(avb1_avtp_match),
2379
2380 SH_PFC_PIN_GROUP(avb2_link),
2381 SH_PFC_PIN_GROUP(avb2_magic),
2382 SH_PFC_PIN_GROUP(avb2_phy_int),
2383 SH_PFC_PIN_GROUP(avb2_mdio),
2384 SH_PFC_PIN_GROUP(avb2_rgmii),
2385 SH_PFC_PIN_GROUP(avb2_txcrefclk),
2386 SH_PFC_PIN_GROUP(avb2_avtp_pps),
2387 SH_PFC_PIN_GROUP(avb2_avtp_capture),
2388 SH_PFC_PIN_GROUP(avb2_avtp_match),
2389
2390 SH_PFC_PIN_GROUP(canfd0_data),
2391 SH_PFC_PIN_GROUP(canfd1_data),
2392 SH_PFC_PIN_GROUP(canfd2_data),
2393 SH_PFC_PIN_GROUP(canfd3_data),
2394 SH_PFC_PIN_GROUP(can_clk),
2395
2396 SH_PFC_PIN_GROUP(hscif0_data),
2397 SH_PFC_PIN_GROUP(hscif0_clk),
2398 SH_PFC_PIN_GROUP(hscif0_ctrl),
2399 SH_PFC_PIN_GROUP(hscif1_data_a),
2400 SH_PFC_PIN_GROUP(hscif1_clk_a),
2401 SH_PFC_PIN_GROUP(hscif1_ctrl_a),
2402 SH_PFC_PIN_GROUP(hscif1_data_b),
2403 SH_PFC_PIN_GROUP(hscif1_clk_b),
2404 SH_PFC_PIN_GROUP(hscif1_ctrl_b),
2405 SH_PFC_PIN_GROUP(hscif2_data),
2406 SH_PFC_PIN_GROUP(hscif2_clk),
2407 SH_PFC_PIN_GROUP(hscif2_ctrl),
2408 SH_PFC_PIN_GROUP(hscif3_data_a),
2409 SH_PFC_PIN_GROUP(hscif3_clk_a),
2410 SH_PFC_PIN_GROUP(hscif3_ctrl_a),
2411 SH_PFC_PIN_GROUP(hscif3_data_b),
2412 SH_PFC_PIN_GROUP(hscif3_clk_b),
2413 SH_PFC_PIN_GROUP(hscif3_ctrl_b),
2414
2415 SH_PFC_PIN_GROUP(i2c0),
2416 SH_PFC_PIN_GROUP(i2c1),
2417 SH_PFC_PIN_GROUP(i2c2),
2418 SH_PFC_PIN_GROUP(i2c3),
2419
2420 BUS_DATA_PIN_GROUP(mmc_data, 1),
2421 BUS_DATA_PIN_GROUP(mmc_data, 4),
2422 BUS_DATA_PIN_GROUP(mmc_data, 8),
2423 SH_PFC_PIN_GROUP(mmc_ctrl),
2424 SH_PFC_PIN_GROUP(mmc_cd),
2425 SH_PFC_PIN_GROUP(mmc_wp),
2426 SH_PFC_PIN_GROUP(mmc_ds),
2427
2428 SH_PFC_PIN_GROUP(msiof0_clk),
2429 SH_PFC_PIN_GROUP(msiof0_sync),
2430 SH_PFC_PIN_GROUP(msiof0_ss1),
2431 SH_PFC_PIN_GROUP(msiof0_ss2),
2432 SH_PFC_PIN_GROUP(msiof0_txd),
2433 SH_PFC_PIN_GROUP(msiof0_rxd),
2434
2435 SH_PFC_PIN_GROUP(msiof1_clk),
2436 SH_PFC_PIN_GROUP(msiof1_sync),
2437 SH_PFC_PIN_GROUP(msiof1_ss1),
2438 SH_PFC_PIN_GROUP(msiof1_ss2),
2439 SH_PFC_PIN_GROUP(msiof1_txd),
2440 SH_PFC_PIN_GROUP(msiof1_rxd),
2441
2442 SH_PFC_PIN_GROUP(msiof2_clk),
2443 SH_PFC_PIN_GROUP(msiof2_sync),
2444 SH_PFC_PIN_GROUP(msiof2_ss1),
2445 SH_PFC_PIN_GROUP(msiof2_ss2),
2446 SH_PFC_PIN_GROUP(msiof2_txd),
2447 SH_PFC_PIN_GROUP(msiof2_rxd),
2448
2449 SH_PFC_PIN_GROUP(msiof3_clk),
2450 SH_PFC_PIN_GROUP(msiof3_sync),
2451 SH_PFC_PIN_GROUP(msiof3_ss1),
2452 SH_PFC_PIN_GROUP(msiof3_ss2),
2453 SH_PFC_PIN_GROUP(msiof3_txd),
2454 SH_PFC_PIN_GROUP(msiof3_rxd),
2455
2456 SH_PFC_PIN_GROUP(msiof4_clk),
2457 SH_PFC_PIN_GROUP(msiof4_sync),
2458 SH_PFC_PIN_GROUP(msiof4_ss1),
2459 SH_PFC_PIN_GROUP(msiof4_ss2),
2460 SH_PFC_PIN_GROUP(msiof4_txd),
2461 SH_PFC_PIN_GROUP(msiof4_rxd),
2462
2463 SH_PFC_PIN_GROUP(msiof5_clk),
2464 SH_PFC_PIN_GROUP(msiof5_sync),
2465 SH_PFC_PIN_GROUP(msiof5_ss1),
2466 SH_PFC_PIN_GROUP(msiof5_ss2),
2467 SH_PFC_PIN_GROUP(msiof5_txd),
2468 SH_PFC_PIN_GROUP(msiof5_rxd),
2469
2470 SH_PFC_PIN_GROUP(pcie0_clkreq_n),
2471
2472 SH_PFC_PIN_GROUP(pwm0_a),
2473 SH_PFC_PIN_GROUP(pwm0_b),
2474 SH_PFC_PIN_GROUP(pwm1_a),
2475 SH_PFC_PIN_GROUP(pwm1_b),
2476 SH_PFC_PIN_GROUP(pwm1_c),
2477 SH_PFC_PIN_GROUP(pwm2_a),
2478 SH_PFC_PIN_GROUP(pwm2_b),
2479 SH_PFC_PIN_GROUP(pwm2_c),
2480 SH_PFC_PIN_GROUP(pwm3_a),
2481 SH_PFC_PIN_GROUP(pwm3_b),
2482 SH_PFC_PIN_GROUP(pwm3_c),
2483 SH_PFC_PIN_GROUP(pwm4),
2484
2485 SH_PFC_PIN_GROUP(qspi0_ctrl),
2486 BUS_DATA_PIN_GROUP(qspi0_data, 2),
2487 BUS_DATA_PIN_GROUP(qspi0_data, 4),
2488 SH_PFC_PIN_GROUP(qspi1_ctrl),
2489 BUS_DATA_PIN_GROUP(qspi1_data, 2),
2490 BUS_DATA_PIN_GROUP(qspi1_data, 4),
2491
2492 SH_PFC_PIN_GROUP(scif0_data),
2493 SH_PFC_PIN_GROUP(scif0_clk),
2494 SH_PFC_PIN_GROUP(scif0_ctrl),
2495 SH_PFC_PIN_GROUP(scif1_data_a),
2496 SH_PFC_PIN_GROUP(scif1_clk_a),
2497 SH_PFC_PIN_GROUP(scif1_ctrl_a),
2498 SH_PFC_PIN_GROUP(scif1_data_b),
2499 SH_PFC_PIN_GROUP(scif1_clk_b),
2500 SH_PFC_PIN_GROUP(scif1_ctrl_b),
2501 SH_PFC_PIN_GROUP(scif3_data_a),
2502 SH_PFC_PIN_GROUP(scif3_clk_a),
2503 SH_PFC_PIN_GROUP(scif3_ctrl_a),
2504 SH_PFC_PIN_GROUP(scif3_data_b),
2505 SH_PFC_PIN_GROUP(scif3_clk_b),
2506 SH_PFC_PIN_GROUP(scif3_ctrl_b),
2507 SH_PFC_PIN_GROUP(scif4_data),
2508 SH_PFC_PIN_GROUP(scif4_clk),
2509 SH_PFC_PIN_GROUP(scif4_ctrl),
2510 SH_PFC_PIN_GROUP(scif_clk),
2511 SH_PFC_PIN_GROUP(scif_clk2),
2512
2513 SH_PFC_PIN_GROUP(ssi_data),
2514 SH_PFC_PIN_GROUP(ssi_ctrl),
2515
2516 SH_PFC_PIN_GROUP(tpu_to0_a),
2517 SH_PFC_PIN_GROUP(tpu_to0_b),
2518 SH_PFC_PIN_GROUP(tpu_to1_a),
2519 SH_PFC_PIN_GROUP(tpu_to1_b),
2520 SH_PFC_PIN_GROUP(tpu_to2_a),
2521 SH_PFC_PIN_GROUP(tpu_to2_b),
2522 SH_PFC_PIN_GROUP(tpu_to3_a),
2523 SH_PFC_PIN_GROUP(tpu_to3_b),
2524};
2525
2526static const char * const audio_clk_groups[] = {
2527 "audio_clkin",
2528 "audio_clkout",
2529};
2530
2531static const char * const avb0_groups[] = {
2532 "avb0_link",
2533 "avb0_magic",
2534 "avb0_phy_int",
2535 "avb0_mdio",
2536 "avb0_rgmii",
2537 "avb0_txcrefclk",
2538 "avb0_avtp_pps",
2539 "avb0_avtp_capture",
2540 "avb0_avtp_match",
2541};
2542
2543static const char * const avb1_groups[] = {
2544 "avb1_link",
2545 "avb1_magic",
2546 "avb1_phy_int",
2547 "avb1_mdio",
2548 "avb1_rgmii",
2549 "avb1_txcrefclk",
2550 "avb1_avtp_pps",
2551 "avb1_avtp_capture",
2552 "avb1_avtp_match",
2553};
2554
2555static const char * const avb2_groups[] = {
2556 "avb2_link",
2557 "avb2_magic",
2558 "avb2_phy_int",
2559 "avb2_mdio",
2560 "avb2_rgmii",
2561 "avb2_txcrefclk",
2562 "avb2_avtp_pps",
2563 "avb2_avtp_capture",
2564 "avb2_avtp_match",
2565};
2566
2567static const char * const canfd0_groups[] = {
2568 "canfd0_data",
2569};
2570
2571static const char * const canfd1_groups[] = {
2572 "canfd1_data",
2573};
2574
2575static const char * const canfd2_groups[] = {
2576 "canfd2_data",
2577};
2578
2579static const char * const canfd3_groups[] = {
2580 "canfd3_data",
2581};
2582
2583static const char * const can_clk_groups[] = {
2584 "can_clk",
2585};
2586
2587static const char * const hscif0_groups[] = {
2588 "hscif0_data",
2589 "hscif0_clk",
2590 "hscif0_ctrl",
2591};
2592
2593static const char * const hscif1_groups[] = {
2594 "hscif1_data_a",
2595 "hscif1_clk_a",
2596 "hscif1_ctrl_a",
2597 "hscif1_data_b",
2598 "hscif1_clk_b",
2599 "hscif1_ctrl_b",
2600};
2601
2602static const char * const hscif2_groups[] = {
2603 "hscif2_data",
2604 "hscif2_clk",
2605 "hscif2_ctrl",
2606};
2607
2608static const char * const hscif3_groups[] = {
2609 "hscif3_data_a",
2610 "hscif3_clk_a",
2611 "hscif3_ctrl_a",
2612 "hscif3_data_b",
2613 "hscif3_clk_b",
2614 "hscif3_ctrl_b",
2615};
2616
2617static const char * const i2c0_groups[] = {
2618 "i2c0",
2619};
2620
2621static const char * const i2c1_groups[] = {
2622 "i2c1",
2623};
2624
2625static const char * const i2c2_groups[] = {
2626 "i2c2",
2627};
2628
2629static const char * const i2c3_groups[] = {
2630 "i2c3",
2631};
2632
2633static const char * const mmc_groups[] = {
2634 "mmc_data1",
2635 "mmc_data4",
2636 "mmc_data8",
2637 "mmc_ctrl",
2638 "mmc_cd",
2639 "mmc_wp",
2640 "mmc_ds",
2641};
2642
2643static const char * const msiof0_groups[] = {
2644 "msiof0_clk",
2645 "msiof0_sync",
2646 "msiof0_ss1",
2647 "msiof0_ss2",
2648 "msiof0_txd",
2649 "msiof0_rxd",
2650};
2651
2652static const char * const msiof1_groups[] = {
2653 "msiof1_clk",
2654 "msiof1_sync",
2655 "msiof1_ss1",
2656 "msiof1_ss2",
2657 "msiof1_txd",
2658 "msiof1_rxd",
2659};
2660
2661static const char * const msiof2_groups[] = {
2662 "msiof2_clk",
2663 "msiof2_sync",
2664 "msiof2_ss1",
2665 "msiof2_ss2",
2666 "msiof2_txd",
2667 "msiof2_rxd",
2668};
2669
2670static const char * const msiof3_groups[] = {
2671 "msiof3_clk",
2672 "msiof3_sync",
2673 "msiof3_ss1",
2674 "msiof3_ss2",
2675 "msiof3_txd",
2676 "msiof3_rxd",
2677};
2678
2679static const char * const msiof4_groups[] = {
2680 "msiof4_clk",
2681 "msiof4_sync",
2682 "msiof4_ss1",
2683 "msiof4_ss2",
2684 "msiof4_txd",
2685 "msiof4_rxd",
2686};
2687
2688static const char * const msiof5_groups[] = {
2689 "msiof5_clk",
2690 "msiof5_sync",
2691 "msiof5_ss1",
2692 "msiof5_ss2",
2693 "msiof5_txd",
2694 "msiof5_rxd",
2695};
2696
2697static const char * const pcie_groups[] = {
2698 "pcie0_clkreq_n",
2699};
2700
2701static const char * const pwm0_groups[] = {
2702 "pwm0_a",
2703 "pwm0_b",
2704};
2705
2706static const char * const pwm1_groups[] = {
2707 "pwm1_a",
2708 "pwm1_b",
2709 "pwm1_c",
2710};
2711
2712static const char * const pwm2_groups[] = {
2713 "pwm2_a",
2714 "pwm2_b",
2715 "pwm2_c",
2716};
2717
2718static const char * const pwm3_groups[] = {
2719 "pwm3_a",
2720 "pwm3_b",
2721 "pwm3_c",
2722};
2723
2724static const char * const pwm4_groups[] = {
2725 "pwm4",
2726};
2727
2728static const char * const qspi0_groups[] = {
2729 "qspi0_ctrl",
2730 "qspi0_data2",
2731 "qspi0_data4",
2732};
2733
2734static const char * const qspi1_groups[] = {
2735 "qspi1_ctrl",
2736 "qspi1_data2",
2737 "qspi1_data4",
2738};
2739
2740static const char * const scif0_groups[] = {
2741 "scif0_data",
2742 "scif0_clk",
2743 "scif0_ctrl",
2744};
2745
2746static const char * const scif1_groups[] = {
2747 "scif1_data_a",
2748 "scif1_clk_a",
2749 "scif1_ctrl_a",
2750 "scif1_data_b",
2751 "scif1_clk_b",
2752 "scif1_ctrl_b",
2753};
2754
2755static const char * const scif3_groups[] = {
2756 "scif3_data_a",
2757 "scif3_clk_a",
2758 "scif3_ctrl_a",
2759 "scif3_data_b",
2760 "scif3_clk_b",
2761 "scif3_ctrl_b",
2762};
2763
2764static const char * const scif4_groups[] = {
2765 "scif4_data",
2766 "scif4_clk",
2767 "scif4_ctrl",
2768};
2769
2770static const char * const scif_clk_groups[] = {
2771 "scif_clk",
2772};
2773
2774static const char * const scif_clk2_groups[] = {
2775 "scif_clk2",
2776};
2777
2778static const char * const ssi_groups[] = {
2779 "ssi_data",
2780 "ssi_ctrl",
2781};
2782
2783static const char * const tpu_groups[] = {
2784 "tpu_to0_a",
2785 "tpu_to0_b",
2786 "tpu_to1_a",
2787 "tpu_to1_b",
2788 "tpu_to2_a",
2789 "tpu_to2_b",
2790 "tpu_to3_a",
2791 "tpu_to3_b",
2792};
2793
2794static const struct sh_pfc_function pinmux_functions[] = {
2795 SH_PFC_FUNCTION(audio_clk),
2796
2797 SH_PFC_FUNCTION(avb0),
2798 SH_PFC_FUNCTION(avb1),
2799 SH_PFC_FUNCTION(avb2),
2800
2801 SH_PFC_FUNCTION(canfd0),
2802 SH_PFC_FUNCTION(canfd1),
2803 SH_PFC_FUNCTION(canfd2),
2804 SH_PFC_FUNCTION(canfd3),
2805 SH_PFC_FUNCTION(can_clk),
2806
2807 SH_PFC_FUNCTION(hscif0),
2808 SH_PFC_FUNCTION(hscif1),
2809 SH_PFC_FUNCTION(hscif2),
2810 SH_PFC_FUNCTION(hscif3),
2811
2812 SH_PFC_FUNCTION(i2c0),
2813 SH_PFC_FUNCTION(i2c1),
2814 SH_PFC_FUNCTION(i2c2),
2815 SH_PFC_FUNCTION(i2c3),
2816
2817 SH_PFC_FUNCTION(mmc),
2818
2819 SH_PFC_FUNCTION(msiof0),
2820 SH_PFC_FUNCTION(msiof1),
2821 SH_PFC_FUNCTION(msiof2),
2822 SH_PFC_FUNCTION(msiof3),
2823 SH_PFC_FUNCTION(msiof4),
2824 SH_PFC_FUNCTION(msiof5),
2825
2826 SH_PFC_FUNCTION(pcie),
2827
2828 SH_PFC_FUNCTION(pwm0),
2829 SH_PFC_FUNCTION(pwm1),
2830 SH_PFC_FUNCTION(pwm2),
2831 SH_PFC_FUNCTION(pwm3),
2832 SH_PFC_FUNCTION(pwm4),
2833
2834 SH_PFC_FUNCTION(qspi0),
2835 SH_PFC_FUNCTION(qspi1),
2836
2837 SH_PFC_FUNCTION(scif0),
2838 SH_PFC_FUNCTION(scif1),
2839 SH_PFC_FUNCTION(scif3),
2840 SH_PFC_FUNCTION(scif4),
2841 SH_PFC_FUNCTION(scif_clk),
2842 SH_PFC_FUNCTION(scif_clk2),
2843
2844 SH_PFC_FUNCTION(ssi),
2845
2846 SH_PFC_FUNCTION(tpu),
2847};
2848
2849static const struct pinmux_cfg_reg pinmux_config_regs[] = {
2850#define F_(x, y) FN_##y
2851#define FM(x) FN_##x
2852 { PINMUX_CFG_REG_VAR("GPSR0", 0xE6050040, 32,
2853 GROUP(-13, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2854 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
2855 GROUP(
2856 /* GP0_31_19 RESERVED */
2857 GP_0_18_FN, GPSR0_18,
2858 GP_0_17_FN, GPSR0_17,
2859 GP_0_16_FN, GPSR0_16,
2860 GP_0_15_FN, GPSR0_15,
2861 GP_0_14_FN, GPSR0_14,
2862 GP_0_13_FN, GPSR0_13,
2863 GP_0_12_FN, GPSR0_12,
2864 GP_0_11_FN, GPSR0_11,
2865 GP_0_10_FN, GPSR0_10,
2866 GP_0_9_FN, GPSR0_9,
2867 GP_0_8_FN, GPSR0_8,
2868 GP_0_7_FN, GPSR0_7,
2869 GP_0_6_FN, GPSR0_6,
2870 GP_0_5_FN, GPSR0_5,
2871 GP_0_4_FN, GPSR0_4,
2872 GP_0_3_FN, GPSR0_3,
2873 GP_0_2_FN, GPSR0_2,
2874 GP_0_1_FN, GPSR0_1,
2875 GP_0_0_FN, GPSR0_0, ))
2876 },
2877 { PINMUX_CFG_REG("GPSR1", 0xE6050840, 32, 1, GROUP(
2878 0, 0,
2879 0, 0,
2880 GP_1_29_FN, GPSR1_29,
2881 GP_1_28_FN, GPSR1_28,
2882 GP_1_27_FN, GPSR1_27,
2883 GP_1_26_FN, GPSR1_26,
2884 GP_1_25_FN, GPSR1_25,
2885 GP_1_24_FN, GPSR1_24,
2886 GP_1_23_FN, GPSR1_23,
2887 GP_1_22_FN, GPSR1_22,
2888 GP_1_21_FN, GPSR1_21,
2889 GP_1_20_FN, GPSR1_20,
2890 GP_1_19_FN, GPSR1_19,
2891 GP_1_18_FN, GPSR1_18,
2892 GP_1_17_FN, GPSR1_17,
2893 GP_1_16_FN, GPSR1_16,
2894 GP_1_15_FN, GPSR1_15,
2895 GP_1_14_FN, GPSR1_14,
2896 GP_1_13_FN, GPSR1_13,
2897 GP_1_12_FN, GPSR1_12,
2898 GP_1_11_FN, GPSR1_11,
2899 GP_1_10_FN, GPSR1_10,
2900 GP_1_9_FN, GPSR1_9,
2901 GP_1_8_FN, GPSR1_8,
2902 GP_1_7_FN, GPSR1_7,
2903 GP_1_6_FN, GPSR1_6,
2904 GP_1_5_FN, GPSR1_5,
2905 GP_1_4_FN, GPSR1_4,
2906 GP_1_3_FN, GPSR1_3,
2907 GP_1_2_FN, GPSR1_2,
2908 GP_1_1_FN, GPSR1_1,
2909 GP_1_0_FN, GPSR1_0, ))
2910 },
2911 { PINMUX_CFG_REG_VAR("GPSR2", 0xE6058040, 32,
2912 GROUP(-12, 1, -1, 1, -1, 1, 1, 1, 1, 1, 1,
2913 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
2914 GROUP(
2915 /* GP2_31_20 RESERVED */
2916 GP_2_19_FN, GPSR2_19,
2917 /* GP2_18 RESERVED */
2918 GP_2_17_FN, GPSR2_17,
2919 /* GP2_16 RESERVED */
2920 GP_2_15_FN, GPSR2_15,
2921 GP_2_14_FN, GPSR2_14,
2922 GP_2_13_FN, GPSR2_13,
2923 GP_2_12_FN, GPSR2_12,
2924 GP_2_11_FN, GPSR2_11,
2925 GP_2_10_FN, GPSR2_10,
2926 GP_2_9_FN, GPSR2_9,
2927 GP_2_8_FN, GPSR2_8,
2928 GP_2_7_FN, GPSR2_7,
2929 GP_2_6_FN, GPSR2_6,
2930 GP_2_5_FN, GPSR2_5,
2931 GP_2_4_FN, GPSR2_4,
2932 GP_2_3_FN, GPSR2_3,
2933 GP_2_2_FN, GPSR2_2,
2934 GP_2_1_FN, GPSR2_1,
2935 GP_2_0_FN, GPSR2_0, ))
2936 },
2937 { PINMUX_CFG_REG("GPSR3", 0xE6058840, 32, 1, GROUP(
2938 GP_3_31_FN, GPSR3_31,
2939 GP_3_30_FN, GPSR3_30,
2940 GP_3_29_FN, GPSR3_29,
2941 GP_3_28_FN, GPSR3_28,
2942 GP_3_27_FN, GPSR3_27,
2943 GP_3_26_FN, GPSR3_26,
2944 GP_3_25_FN, GPSR3_25,
2945 GP_3_24_FN, GPSR3_24,
2946 GP_3_23_FN, GPSR3_23,
2947 GP_3_22_FN, GPSR3_22,
2948 GP_3_21_FN, GPSR3_21,
2949 GP_3_20_FN, GPSR3_20,
2950 GP_3_19_FN, GPSR3_19,
2951 GP_3_18_FN, GPSR3_18,
2952 GP_3_17_FN, GPSR3_17,
2953 GP_3_16_FN, GPSR3_16,
2954 GP_3_15_FN, GPSR3_15,
2955 GP_3_14_FN, GPSR3_14,
2956 GP_3_13_FN, GPSR3_13,
2957 GP_3_12_FN, GPSR3_12,
2958 GP_3_11_FN, GPSR3_11,
2959 GP_3_10_FN, GPSR3_10,
2960 GP_3_9_FN, GPSR3_9,
2961 GP_3_8_FN, GPSR3_8,
2962 GP_3_7_FN, GPSR3_7,
2963 GP_3_6_FN, GPSR3_6,
2964 GP_3_5_FN, GPSR3_5,
2965 GP_3_4_FN, GPSR3_4,
2966 GP_3_3_FN, GPSR3_3,
2967 GP_3_2_FN, GPSR3_2,
2968 GP_3_1_FN, GPSR3_1,
2969 GP_3_0_FN, GPSR3_0, ))
2970 },
2971 { PINMUX_CFG_REG_VAR("GPSR4", 0xE6060040, 32,
2972 GROUP(-7, 1, 1, -1, 1, -5, 1, 1, 1, 1, 1,
2973 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
2974 GROUP(
2975 /* GP4_31_25 RESERVED */
2976 GP_4_24_FN, GPSR4_24,
2977 GP_4_23_FN, GPSR4_23,
2978 /* GP4_22 RESERVED */
2979 GP_4_21_FN, GPSR4_21,
2980 /* GP4_20_16 RESERVED */
2981 GP_4_15_FN, GPSR4_15,
2982 GP_4_14_FN, GPSR4_14,
2983 GP_4_13_FN, GPSR4_13,
2984 GP_4_12_FN, GPSR4_12,
2985 GP_4_11_FN, GPSR4_11,
2986 GP_4_10_FN, GPSR4_10,
2987 GP_4_9_FN, GPSR4_9,
2988 GP_4_8_FN, GPSR4_8,
2989 GP_4_7_FN, GPSR4_7,
2990 GP_4_6_FN, GPSR4_6,
2991 GP_4_5_FN, GPSR4_5,
2992 GP_4_4_FN, GPSR4_4,
2993 GP_4_3_FN, GPSR4_3,
2994 GP_4_2_FN, GPSR4_2,
2995 GP_4_1_FN, GPSR4_1,
2996 GP_4_0_FN, GPSR4_0, ))
2997 },
2998 { PINMUX_CFG_REG_VAR("GPSR5", 0xE6060840, 32,
2999 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3000 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3001 GROUP(
3002 /* GP5_31_21 RESERVED */
3003 GP_5_20_FN, GPSR5_20,
3004 GP_5_19_FN, GPSR5_19,
3005 GP_5_18_FN, GPSR5_18,
3006 GP_5_17_FN, GPSR5_17,
3007 GP_5_16_FN, GPSR5_16,
3008 GP_5_15_FN, GPSR5_15,
3009 GP_5_14_FN, GPSR5_14,
3010 GP_5_13_FN, GPSR5_13,
3011 GP_5_12_FN, GPSR5_12,
3012 GP_5_11_FN, GPSR5_11,
3013 GP_5_10_FN, GPSR5_10,
3014 GP_5_9_FN, GPSR5_9,
3015 GP_5_8_FN, GPSR5_8,
3016 GP_5_7_FN, GPSR5_7,
3017 GP_5_6_FN, GPSR5_6,
3018 GP_5_5_FN, GPSR5_5,
3019 GP_5_4_FN, GPSR5_4,
3020 GP_5_3_FN, GPSR5_3,
3021 GP_5_2_FN, GPSR5_2,
3022 GP_5_1_FN, GPSR5_1,
3023 GP_5_0_FN, GPSR5_0, ))
3024 },
3025 { PINMUX_CFG_REG_VAR("GPSR6", 0xE6061040, 32,
3026 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3027 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3028 GROUP(
3029 /* GP6_31_21 RESERVED */
3030 GP_6_20_FN, GPSR6_20,
3031 GP_6_19_FN, GPSR6_19,
3032 GP_6_18_FN, GPSR6_18,
3033 GP_6_17_FN, GPSR6_17,
3034 GP_6_16_FN, GPSR6_16,
3035 GP_6_15_FN, GPSR6_15,
3036 GP_6_14_FN, GPSR6_14,
3037 GP_6_13_FN, GPSR6_13,
3038 GP_6_12_FN, GPSR6_12,
3039 GP_6_11_FN, GPSR6_11,
3040 GP_6_10_FN, GPSR6_10,
3041 GP_6_9_FN, GPSR6_9,
3042 GP_6_8_FN, GPSR6_8,
3043 GP_6_7_FN, GPSR6_7,
3044 GP_6_6_FN, GPSR6_6,
3045 GP_6_5_FN, GPSR6_5,
3046 GP_6_4_FN, GPSR6_4,
3047 GP_6_3_FN, GPSR6_3,
3048 GP_6_2_FN, GPSR6_2,
3049 GP_6_1_FN, GPSR6_1,
3050 GP_6_0_FN, GPSR6_0, ))
3051 },
3052 { PINMUX_CFG_REG_VAR("GPSR7", 0xE6061840, 32,
3053 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3054 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3055 GROUP(
3056 /* GP7_31_21 RESERVED */
3057 GP_7_20_FN, GPSR7_20,
3058 GP_7_19_FN, GPSR7_19,
3059 GP_7_18_FN, GPSR7_18,
3060 GP_7_17_FN, GPSR7_17,
3061 GP_7_16_FN, GPSR7_16,
3062 GP_7_15_FN, GPSR7_15,
3063 GP_7_14_FN, GPSR7_14,
3064 GP_7_13_FN, GPSR7_13,
3065 GP_7_12_FN, GPSR7_12,
3066 GP_7_11_FN, GPSR7_11,
3067 GP_7_10_FN, GPSR7_10,
3068 GP_7_9_FN, GPSR7_9,
3069 GP_7_8_FN, GPSR7_8,
3070 GP_7_7_FN, GPSR7_7,
3071 GP_7_6_FN, GPSR7_6,
3072 GP_7_5_FN, GPSR7_5,
3073 GP_7_4_FN, GPSR7_4,
3074 GP_7_3_FN, GPSR7_3,
3075 GP_7_2_FN, GPSR7_2,
3076 GP_7_1_FN, GPSR7_1,
3077 GP_7_0_FN, GPSR7_0, ))
3078 },
3079#undef F_
3080#undef FM
3081
3082#define F_(x, y) x,
3083#define FM(x) FN_##x,
3084 { PINMUX_CFG_REG("IP0SR0", 0xE6050060, 32, 4, GROUP(
3085 IP0SR0_31_28
3086 IP0SR0_27_24
3087 IP0SR0_23_20
3088 IP0SR0_19_16
3089 IP0SR0_15_12
3090 IP0SR0_11_8
3091 IP0SR0_7_4
3092 IP0SR0_3_0))
3093 },
3094 { PINMUX_CFG_REG("IP1SR0", 0xE6050064, 32, 4, GROUP(
3095 IP1SR0_31_28
3096 IP1SR0_27_24
3097 IP1SR0_23_20
3098 IP1SR0_19_16
3099 IP1SR0_15_12
3100 IP1SR0_11_8
3101 IP1SR0_7_4
3102 IP1SR0_3_0))
3103 },
3104 { PINMUX_CFG_REG_VAR("IP2SR0", 0xE6050068, 32,
3105 GROUP(-20, 4, 4, 4),
3106 GROUP(
3107 /* IP2SR0_31_12 RESERVED */
3108 IP2SR0_11_8
3109 IP2SR0_7_4
3110 IP2SR0_3_0))
3111 },
3112 { PINMUX_CFG_REG("IP0SR1", 0xE6050860, 32, 4, GROUP(
3113 IP0SR1_31_28
3114 IP0SR1_27_24
3115 IP0SR1_23_20
3116 IP0SR1_19_16
3117 IP0SR1_15_12
3118 IP0SR1_11_8
3119 IP0SR1_7_4
3120 IP0SR1_3_0))
3121 },
3122 { PINMUX_CFG_REG("IP1SR1", 0xE6050864, 32, 4, GROUP(
3123 IP1SR1_31_28
3124 IP1SR1_27_24
3125 IP1SR1_23_20
3126 IP1SR1_19_16
3127 IP1SR1_15_12
3128 IP1SR1_11_8
3129 IP1SR1_7_4
3130 IP1SR1_3_0))
3131 },
3132 { PINMUX_CFG_REG("IP2SR1", 0xE6050868, 32, 4, GROUP(
3133 IP2SR1_31_28
3134 IP2SR1_27_24
3135 IP2SR1_23_20
3136 IP2SR1_19_16
3137 IP2SR1_15_12
3138 IP2SR1_11_8
3139 IP2SR1_7_4
3140 IP2SR1_3_0))
3141 },
3142 { PINMUX_CFG_REG_VAR("IP3SR1", 0xE605086C, 32,
3143 GROUP(-8, 4, 4, 4, 4, 4, 4),
3144 GROUP(
3145 /* IP3SR1_31_24 RESERVED */
3146 IP3SR1_23_20
3147 IP3SR1_19_16
3148 IP3SR1_15_12
3149 IP3SR1_11_8
3150 IP3SR1_7_4
3151 IP3SR1_3_0))
3152 },
3153 { PINMUX_CFG_REG("IP0SR2", 0xE6058060, 32, 4, GROUP(
3154 IP0SR2_31_28
3155 IP0SR2_27_24
3156 IP0SR2_23_20
3157 IP0SR2_19_16
3158 IP0SR2_15_12
3159 IP0SR2_11_8
3160 IP0SR2_7_4
3161 IP0SR2_3_0))
3162 },
3163 { PINMUX_CFG_REG("IP1SR2", 0xE6058064, 32, 4, GROUP(
3164 IP1SR2_31_28
3165 IP1SR2_27_24
3166 IP1SR2_23_20
3167 IP1SR2_19_16
3168 IP1SR2_15_12
3169 IP1SR2_11_8
3170 IP1SR2_7_4
3171 IP1SR2_3_0))
3172 },
3173 { PINMUX_CFG_REG_VAR("IP2SR2", 0xE6058068, 32,
3174 GROUP(-16, 4, -4, 4, -4),
3175 GROUP(
3176 /* IP2SR2_31_16 RESERVED */
3177 IP2SR2_15_12
3178 /* IP2SR2_11_8 RESERVED */
3179 IP2SR2_7_4
3180 /* IP2SR2_3_0 RESERVED */))
3181 },
3182 { PINMUX_CFG_REG("IP0SR3", 0xE6058860, 32, 4, GROUP(
3183 IP0SR3_31_28
3184 IP0SR3_27_24
3185 IP0SR3_23_20
3186 IP0SR3_19_16
3187 IP0SR3_15_12
3188 IP0SR3_11_8
3189 IP0SR3_7_4
3190 IP0SR3_3_0))
3191 },
3192 { PINMUX_CFG_REG("IP1SR3", 0xE6058864, 32, 4, GROUP(
3193 IP1SR3_31_28
3194 IP1SR3_27_24
3195 IP1SR3_23_20
3196 IP1SR3_19_16
3197 IP1SR3_15_12
3198 IP1SR3_11_8
3199 IP1SR3_7_4
3200 IP1SR3_3_0))
3201 },
3202 { PINMUX_CFG_REG("IP2SR3", 0xE6058868, 32, 4, GROUP(
3203 IP2SR3_31_28
3204 IP2SR3_27_24
3205 IP2SR3_23_20
3206 IP2SR3_19_16
3207 IP2SR3_15_12
3208 IP2SR3_11_8
3209 IP2SR3_7_4
3210 IP2SR3_3_0))
3211 },
3212 { PINMUX_CFG_REG("IP3SR3", 0xE605886C, 32, 4, GROUP(
3213 IP3SR3_31_28
3214 IP3SR3_27_24
3215 IP3SR3_23_20
3216 IP3SR3_19_16
3217 IP3SR3_15_12
3218 IP3SR3_11_8
3219 IP3SR3_7_4
3220 IP3SR3_3_0))
3221 },
3222 { PINMUX_CFG_REG("IP0SR4", 0xE6060060, 32, 4, GROUP(
3223 IP0SR4_31_28
3224 IP0SR4_27_24
3225 IP0SR4_23_20
3226 IP0SR4_19_16
3227 IP0SR4_15_12
3228 IP0SR4_11_8
3229 IP0SR4_7_4
3230 IP0SR4_3_0))
3231 },
3232 { PINMUX_CFG_REG("IP1SR4", 0xE6060064, 32, 4, GROUP(
3233 IP1SR4_31_28
3234 IP1SR4_27_24
3235 IP1SR4_23_20
3236 IP1SR4_19_16
3237 IP1SR4_15_12
3238 IP1SR4_11_8
3239 IP1SR4_7_4
3240 IP1SR4_3_0))
3241 },
3242 { PINMUX_CFG_REG_VAR("IP2SR4", 0xE6060068, 32,
3243 GROUP(4, -4, 4, -20),
3244 GROUP(
3245 IP2SR4_31_28
3246 /* IP2SR4_27_24 RESERVED */
3247 IP2SR4_23_20
3248 /* IP2SR4_19_0 RESERVED */))
3249 },
3250 { PINMUX_CFG_REG_VAR("IP3SR4", 0xE606006C, 32,
3251 GROUP(-28, 4),
3252 GROUP(
3253 /* IP3SR4_31_4 RESERVED */
3254 IP3SR4_3_0))
3255 },
3256 { PINMUX_CFG_REG("IP0SR5", 0xE6060860, 32, 4, GROUP(
3257 IP0SR5_31_28
3258 IP0SR5_27_24
3259 IP0SR5_23_20
3260 IP0SR5_19_16
3261 IP0SR5_15_12
3262 IP0SR5_11_8
3263 IP0SR5_7_4
3264 IP0SR5_3_0))
3265 },
3266 { PINMUX_CFG_REG("IP1SR5", 0xE6060864, 32, 4, GROUP(
3267 IP1SR5_31_28
3268 IP1SR5_27_24
3269 IP1SR5_23_20
3270 IP1SR5_19_16
3271 IP1SR5_15_12
3272 IP1SR5_11_8
3273 IP1SR5_7_4
3274 IP1SR5_3_0))
3275 },
3276 { PINMUX_CFG_REG_VAR("IP2SR5", 0xE6060868, 32,
3277 GROUP(-12, 4, 4, 4, 4, 4),
3278 GROUP(
3279 /* IP2SR5_31_20 RESERVED */
3280 IP2SR5_19_16
3281 IP2SR5_15_12
3282 IP2SR5_11_8
3283 IP2SR5_7_4
3284 IP2SR5_3_0))
3285 },
3286 { PINMUX_CFG_REG("IP0SR6", 0xE6061060, 32, 4, GROUP(
3287 IP0SR6_31_28
3288 IP0SR6_27_24
3289 IP0SR6_23_20
3290 IP0SR6_19_16
3291 IP0SR6_15_12
3292 IP0SR6_11_8
3293 IP0SR6_7_4
3294 IP0SR6_3_0))
3295 },
3296 { PINMUX_CFG_REG("IP1SR6", 0xE6061064, 32, 4, GROUP(
3297 IP1SR6_31_28
3298 IP1SR6_27_24
3299 IP1SR6_23_20
3300 IP1SR6_19_16
3301 IP1SR6_15_12
3302 IP1SR6_11_8
3303 IP1SR6_7_4
3304 IP1SR6_3_0))
3305 },
3306 { PINMUX_CFG_REG_VAR("IP2SR6", 0xE6061068, 32,
3307 GROUP(-12, 4, 4, 4, 4, 4),
3308 GROUP(
3309 /* IP2SR6_31_20 RESERVED */
3310 IP2SR6_19_16
3311 IP2SR6_15_12
3312 IP2SR6_11_8
3313 IP2SR6_7_4
3314 IP2SR6_3_0))
3315 },
3316 { PINMUX_CFG_REG("IP0SR7", 0xE6061860, 32, 4, GROUP(
3317 IP0SR7_31_28
3318 IP0SR7_27_24
3319 IP0SR7_23_20
3320 IP0SR7_19_16
3321 IP0SR7_15_12
3322 IP0SR7_11_8
3323 IP0SR7_7_4
3324 IP0SR7_3_0))
3325 },
3326 { PINMUX_CFG_REG("IP1SR7", 0xE6061864, 32, 4, GROUP(
3327 IP1SR7_31_28
3328 IP1SR7_27_24
3329 IP1SR7_23_20
3330 IP1SR7_19_16
3331 IP1SR7_15_12
3332 IP1SR7_11_8
3333 IP1SR7_7_4
3334 IP1SR7_3_0))
3335 },
3336 { PINMUX_CFG_REG_VAR("IP2SR7", 0xE6061868, 32,
3337 GROUP(-12, 4, 4, 4, 4, 4),
3338 GROUP(
3339 /* IP2SR7_31_20 RESERVED */
3340 IP2SR7_19_16
3341 IP2SR7_15_12
3342 IP2SR7_11_8
3343 IP2SR7_7_4
3344 IP2SR7_3_0))
3345 },
3346#undef F_
3347#undef FM
3348
3349#define F_(x, y) x,
3350#define FM(x) FN_##x,
3351 { PINMUX_CFG_REG_VAR("MOD_SEL4", 0xE6060100, 32,
3352 GROUP(-24, 1, 1, 1, 1, 1, 1, 1, 1),
3353 GROUP(
3354 /* RESERVED 31-8 */
3355 MOD_SEL4_7
3356 MOD_SEL4_6
3357 MOD_SEL4_5
3358 MOD_SEL4_4
3359 MOD_SEL4_3
3360 MOD_SEL4_2
3361 MOD_SEL4_1
3362 MOD_SEL4_0))
3363 },
3364 { },
3365};
3366
3367static const struct pinmux_drive_reg pinmux_drive_regs[] = {
3368 { PINMUX_DRIVE_REG("DRV0CTRL0", 0xE6050080) {
3369 { RCAR_GP_PIN(0, 7), 28, 3 }, /* MSIOF5_SS2 */
3370 { RCAR_GP_PIN(0, 6), 24, 3 }, /* IRQ0 */
3371 { RCAR_GP_PIN(0, 5), 20, 3 }, /* IRQ1 */
3372 { RCAR_GP_PIN(0, 4), 16, 3 }, /* IRQ2 */
3373 { RCAR_GP_PIN(0, 3), 12, 3 }, /* IRQ3 */
3374 { RCAR_GP_PIN(0, 2), 8, 3 }, /* GP0_02 */
3375 { RCAR_GP_PIN(0, 1), 4, 3 }, /* GP0_01 */
3376 { RCAR_GP_PIN(0, 0), 0, 3 }, /* GP0_00 */
3377 } },
3378 { PINMUX_DRIVE_REG("DRV1CTRL0", 0xE6050084) {
3379 { RCAR_GP_PIN(0, 15), 28, 3 }, /* MSIOF2_SYNC */
3380 { RCAR_GP_PIN(0, 14), 24, 3 }, /* MSIOF2_SS1 */
3381 { RCAR_GP_PIN(0, 13), 20, 3 }, /* MSIOF2_SS2 */
3382 { RCAR_GP_PIN(0, 12), 16, 3 }, /* MSIOF5_RXD */
3383 { RCAR_GP_PIN(0, 11), 12, 3 }, /* MSIOF5_SCK */
3384 { RCAR_GP_PIN(0, 10), 8, 3 }, /* MSIOF5_TXD */
3385 { RCAR_GP_PIN(0, 9), 4, 3 }, /* MSIOF5_SYNC */
3386 { RCAR_GP_PIN(0, 8), 0, 3 }, /* MSIOF5_SS1 */
3387 } },
3388 { PINMUX_DRIVE_REG("DRV2CTRL0", 0xE6050088) {
3389 { RCAR_GP_PIN(0, 18), 8, 3 }, /* MSIOF2_RXD */
3390 { RCAR_GP_PIN(0, 17), 4, 3 }, /* MSIOF2_SCK */
3391 { RCAR_GP_PIN(0, 16), 0, 3 }, /* MSIOF2_TXD */
3392 } },
3393 { PINMUX_DRIVE_REG("DRV0CTRL1", 0xE6050880) {
3394 { RCAR_GP_PIN(1, 7), 28, 3 }, /* MSIOF0_SS1 */
3395 { RCAR_GP_PIN(1, 6), 24, 3 }, /* MSIOF0_SS2 */
3396 { RCAR_GP_PIN(1, 5), 20, 3 }, /* MSIOF1_RXD */
3397 { RCAR_GP_PIN(1, 4), 16, 3 }, /* MSIOF1_TXD */
3398 { RCAR_GP_PIN(1, 3), 12, 3 }, /* MSIOF1_SCK */
3399 { RCAR_GP_PIN(1, 2), 8, 3 }, /* MSIOF1_SYNC */
3400 { RCAR_GP_PIN(1, 1), 4, 3 }, /* MSIOF1_SS1 */
3401 { RCAR_GP_PIN(1, 0), 0, 3 }, /* MSIOF1_SS2 */
3402 } },
3403 { PINMUX_DRIVE_REG("DRV1CTRL1", 0xE6050884) {
3404 { RCAR_GP_PIN(1, 15), 28, 3 }, /* HSCK0 */
3405 { RCAR_GP_PIN(1, 14), 24, 3 }, /* HRTS0_N */
3406 { RCAR_GP_PIN(1, 13), 20, 3 }, /* HCTS0_N */
3407 { RCAR_GP_PIN(1, 12), 16, 3 }, /* HTX0 */
3408 { RCAR_GP_PIN(1, 11), 12, 3 }, /* MSIOF0_RXD */
3409 { RCAR_GP_PIN(1, 10), 8, 3 }, /* MSIOF0_SCK */
3410 { RCAR_GP_PIN(1, 9), 4, 3 }, /* MSIOF0_TXD */
3411 { RCAR_GP_PIN(1, 8), 0, 3 }, /* MSIOF0_SYNC */
3412 } },
3413 { PINMUX_DRIVE_REG("DRV2CTRL1", 0xE6050888) {
3414 { RCAR_GP_PIN(1, 23), 28, 3 }, /* GP1_23 */
3415 { RCAR_GP_PIN(1, 22), 24, 3 }, /* AUDIO_CLKIN */
3416 { RCAR_GP_PIN(1, 21), 20, 3 }, /* AUDIO_CLKOUT */
3417 { RCAR_GP_PIN(1, 20), 16, 3 }, /* SSI_SD */
3418 { RCAR_GP_PIN(1, 19), 12, 3 }, /* SSI_WS */
3419 { RCAR_GP_PIN(1, 18), 8, 3 }, /* SSI_SCK */
3420 { RCAR_GP_PIN(1, 17), 4, 3 }, /* SCIF_CLK */
3421 { RCAR_GP_PIN(1, 16), 0, 3 }, /* HRX0 */
3422 } },
3423 { PINMUX_DRIVE_REG("DRV3CTRL1", 0xE605088C) {
3424 { RCAR_GP_PIN(1, 29), 20, 2 }, /* ERROROUTC_N */
3425 { RCAR_GP_PIN(1, 28), 16, 3 }, /* HTX3 */
3426 { RCAR_GP_PIN(1, 27), 12, 3 }, /* HCTS3_N */
3427 { RCAR_GP_PIN(1, 26), 8, 3 }, /* HRTS3_N */
3428 { RCAR_GP_PIN(1, 25), 4, 3 }, /* HSCK3 */
3429 { RCAR_GP_PIN(1, 24), 0, 3 }, /* HRX3 */
3430 } },
3431 { PINMUX_DRIVE_REG("DRV0CTRL2", 0xE6058080) {
3432 { RCAR_GP_PIN(2, 7), 28, 3 }, /* TPU0TO1 */
3433 { RCAR_GP_PIN(2, 6), 24, 3 }, /* FXR_TXDB */
3434 { RCAR_GP_PIN(2, 5), 20, 3 }, /* FXR_TXENB_N */
3435 { RCAR_GP_PIN(2, 4), 16, 3 }, /* RXDB_EXTFXR */
3436 { RCAR_GP_PIN(2, 3), 12, 3 }, /* CLK_EXTFXR */
3437 { RCAR_GP_PIN(2, 2), 8, 3 }, /* RXDA_EXTFXR */
3438 { RCAR_GP_PIN(2, 1), 4, 3 }, /* FXR_TXENA_N */
3439 { RCAR_GP_PIN(2, 0), 0, 3 }, /* FXR_TXDA */
3440 } },
3441 { PINMUX_DRIVE_REG("DRV1CTRL2", 0xE6058084) {
3442 { RCAR_GP_PIN(2, 15), 28, 3 }, /* CANFD3_RX */
3443 { RCAR_GP_PIN(2, 14), 24, 3 }, /* CANFD3_TX */
3444 { RCAR_GP_PIN(2, 13), 20, 3 }, /* CANFD2_RX */
3445 { RCAR_GP_PIN(2, 12), 16, 3 }, /* CANFD2_TX */
3446 { RCAR_GP_PIN(2, 11), 12, 3 }, /* CANFD0_RX */
3447 { RCAR_GP_PIN(2, 10), 8, 3 }, /* CANFD0_TX */
3448 { RCAR_GP_PIN(2, 9), 4, 3 }, /* CAN_CLK */
3449 { RCAR_GP_PIN(2, 8), 0, 3 }, /* TPU0TO0 */
3450 } },
3451 { PINMUX_DRIVE_REG("DRV2CTRL2", 0xE6058088) {
3452 { RCAR_GP_PIN(2, 19), 12, 3 }, /* CANFD1_RX */
3453 { RCAR_GP_PIN(2, 17), 4, 3 }, /* CANFD1_TX */
3454 } },
3455 { PINMUX_DRIVE_REG("DRV0CTRL3", 0xE6058880) {
3456 { RCAR_GP_PIN(3, 7), 28, 3 }, /* MMC_D4 */
3457 { RCAR_GP_PIN(3, 6), 24, 3 }, /* MMC_D5 */
3458 { RCAR_GP_PIN(3, 5), 20, 3 }, /* MMC_SD_D3 */
3459 { RCAR_GP_PIN(3, 4), 16, 3 }, /* MMC_DS */
3460 { RCAR_GP_PIN(3, 3), 12, 3 }, /* MMC_SD_CLK */
3461 { RCAR_GP_PIN(3, 2), 8, 3 }, /* MMC_SD_D2 */
3462 { RCAR_GP_PIN(3, 1), 4, 3 }, /* MMC_SD_D0 */
3463 { RCAR_GP_PIN(3, 0), 0, 3 }, /* MMC_SD_D1 */
3464 } },
3465 { PINMUX_DRIVE_REG("DRV1CTRL3", 0xE6058884) {
3466 { RCAR_GP_PIN(3, 15), 28, 2 }, /* QSPI0_SSL */
3467 { RCAR_GP_PIN(3, 14), 24, 2 }, /* PWM2 */
3468 { RCAR_GP_PIN(3, 13), 20, 2 }, /* PWM1 */
3469 { RCAR_GP_PIN(3, 12), 16, 3 }, /* SD_WP */
3470 { RCAR_GP_PIN(3, 11), 12, 3 }, /* SD_CD */
3471 { RCAR_GP_PIN(3, 10), 8, 3 }, /* MMC_SD_CMD */
3472 { RCAR_GP_PIN(3, 9), 4, 3 }, /* MMC_D6*/
3473 { RCAR_GP_PIN(3, 8), 0, 3 }, /* MMC_D7 */
3474 } },
3475 { PINMUX_DRIVE_REG("DRV2CTRL3", 0xE6058888) {
3476 { RCAR_GP_PIN(3, 23), 28, 2 }, /* QSPI1_MISO_IO1 */
3477 { RCAR_GP_PIN(3, 22), 24, 2 }, /* QSPI1_SPCLK */
3478 { RCAR_GP_PIN(3, 21), 20, 2 }, /* QSPI1_MOSI_IO0 */
3479 { RCAR_GP_PIN(3, 20), 16, 2 }, /* QSPI0_SPCLK */
3480 { RCAR_GP_PIN(3, 19), 12, 2 }, /* QSPI0_MOSI_IO0 */
3481 { RCAR_GP_PIN(3, 18), 8, 2 }, /* QSPI0_MISO_IO1 */
3482 { RCAR_GP_PIN(3, 17), 4, 2 }, /* QSPI0_IO2 */
3483 { RCAR_GP_PIN(3, 16), 0, 2 }, /* QSPI0_IO3 */
3484 } },
3485 { PINMUX_DRIVE_REG("DRV3CTRL3", 0xE605888C) {
3486 { RCAR_GP_PIN(3, 31), 28, 2 }, /* TCLK4 */
3487 { RCAR_GP_PIN(3, 30), 24, 2 }, /* TCLK3 */
3488 { RCAR_GP_PIN(3, 29), 20, 2 }, /* RPC_INT_N */
3489 { RCAR_GP_PIN(3, 28), 16, 2 }, /* RPC_WP_N */
3490 { RCAR_GP_PIN(3, 27), 12, 2 }, /* RPC_RESET_N */
3491 { RCAR_GP_PIN(3, 26), 8, 2 }, /* QSPI1_IO3 */
3492 { RCAR_GP_PIN(3, 25), 4, 2 }, /* QSPI1_SSL */
3493 { RCAR_GP_PIN(3, 24), 0, 2 }, /* QSPI1_IO2 */
3494 } },
3495 { PINMUX_DRIVE_REG("DRV0CTRL4", 0xE6060080) {
3496 { RCAR_GP_PIN(4, 7), 28, 3 }, /* SDA3 */
3497 { RCAR_GP_PIN(4, 6), 24, 3 }, /* SCL3 */
3498 { RCAR_GP_PIN(4, 5), 20, 3 }, /* SDA2 */
3499 { RCAR_GP_PIN(4, 4), 16, 3 }, /* SCL2 */
3500 { RCAR_GP_PIN(4, 3), 12, 3 }, /* SDA1 */
3501 { RCAR_GP_PIN(4, 2), 8, 3 }, /* SCL1 */
3502 { RCAR_GP_PIN(4, 1), 4, 3 }, /* SDA0 */
3503 { RCAR_GP_PIN(4, 0), 0, 3 }, /* SCL0 */
3504 } },
3505 { PINMUX_DRIVE_REG("DRV1CTRL4", 0xE6060084) {
3506 { RCAR_GP_PIN(4, 15), 28, 3 }, /* PWM4 */
3507 { RCAR_GP_PIN(4, 14), 24, 3 }, /* PWM3 */
3508 { RCAR_GP_PIN(4, 13), 20, 3 }, /* HSCK2 */
3509 { RCAR_GP_PIN(4, 12), 16, 3 }, /* HCTS2_N */
3510 { RCAR_GP_PIN(4, 11), 12, 3 }, /* SCIF_CLK2 */
3511 { RCAR_GP_PIN(4, 10), 8, 3 }, /* HRTS2_N */
3512 { RCAR_GP_PIN(4, 9), 4, 3 }, /* HTX2 */
3513 { RCAR_GP_PIN(4, 8), 0, 3 }, /* HRX2 */
3514 } },
3515 { PINMUX_DRIVE_REG("DRV2CTRL4", 0xE6060088) {
3516 { RCAR_GP_PIN(4, 23), 28, 3 }, /* AVS0 */
3517 { RCAR_GP_PIN(4, 21), 20, 3 }, /* PCIE0_CLKREQ_N */
3518 } },
3519 { PINMUX_DRIVE_REG("DRV3CTRL4", 0xE606008C) {
3520 { RCAR_GP_PIN(4, 24), 0, 3 }, /* AVS1 */
3521 } },
3522 { PINMUX_DRIVE_REG("DRV0CTRL5", 0xE6060880) {
3523 { RCAR_GP_PIN(5, 7), 28, 3 }, /* AVB2_TXCREFCLK */
3524 { RCAR_GP_PIN(5, 6), 24, 3 }, /* AVB2_MDC */
3525 { RCAR_GP_PIN(5, 5), 20, 3 }, /* AVB2_MAGIC */
3526 { RCAR_GP_PIN(5, 4), 16, 3 }, /* AVB2_PHY_INT */
3527 { RCAR_GP_PIN(5, 3), 12, 3 }, /* AVB2_LINK */
3528 { RCAR_GP_PIN(5, 2), 8, 3 }, /* AVB2_AVTP_MATCH */
3529 { RCAR_GP_PIN(5, 1), 4, 3 }, /* AVB2_AVTP_CAPTURE */
3530 { RCAR_GP_PIN(5, 0), 0, 3 }, /* AVB2_AVTP_PPS */
3531 } },
3532 { PINMUX_DRIVE_REG("DRV1CTRL5", 0xE6060884) {
3533 { RCAR_GP_PIN(5, 15), 28, 3 }, /* AVB2_TD0 */
3534 { RCAR_GP_PIN(5, 14), 24, 3 }, /* AVB2_RD1 */
3535 { RCAR_GP_PIN(5, 13), 20, 3 }, /* AVB2_RD2 */
3536 { RCAR_GP_PIN(5, 12), 16, 3 }, /* AVB2_TD1 */
3537 { RCAR_GP_PIN(5, 11), 12, 3 }, /* AVB2_TD2 */
3538 { RCAR_GP_PIN(5, 10), 8, 3 }, /* AVB2_MDIO */
3539 { RCAR_GP_PIN(5, 9), 4, 3 }, /* AVB2_RD3 */
3540 { RCAR_GP_PIN(5, 8), 0, 3 }, /* AVB2_TD3 */
3541 } },
3542 { PINMUX_DRIVE_REG("DRV2CTRL5", 0xE6060888) {
3543 { RCAR_GP_PIN(5, 20), 16, 3 }, /* AVB2_RX_CTL */
3544 { RCAR_GP_PIN(5, 19), 12, 3 }, /* AVB2_TX_CTL */
3545 { RCAR_GP_PIN(5, 18), 8, 3 }, /* AVB2_RXC */
3546 { RCAR_GP_PIN(5, 17), 4, 3 }, /* AVB2_RD0 */
3547 { RCAR_GP_PIN(5, 16), 0, 3 }, /* AVB2_TXC */
3548 } },
3549 { PINMUX_DRIVE_REG("DRV0CTRL6", 0xE6061080) {
3550 { RCAR_GP_PIN(6, 7), 28, 3 }, /* AVB1_TX_CTL */
3551 { RCAR_GP_PIN(6, 6), 24, 3 }, /* AVB1_TXC */
3552 { RCAR_GP_PIN(6, 5), 20, 3 }, /* AVB1_AVTP_MATCH */
3553 { RCAR_GP_PIN(6, 4), 16, 3 }, /* AVB1_LINK */
3554 { RCAR_GP_PIN(6, 3), 12, 3 }, /* AVB1_PHY_INT */
3555 { RCAR_GP_PIN(6, 2), 8, 3 }, /* AVB1_MDC */
3556 { RCAR_GP_PIN(6, 1), 4, 3 }, /* AVB1_MAGIC */
3557 { RCAR_GP_PIN(6, 0), 0, 3 }, /* AVB1_MDIO */
3558 } },
3559 { PINMUX_DRIVE_REG("DRV1CTRL6", 0xE6061084) {
3560 { RCAR_GP_PIN(6, 15), 28, 3 }, /* AVB1_RD0 */
3561 { RCAR_GP_PIN(6, 14), 24, 3 }, /* AVB1_RD1 */
3562 { RCAR_GP_PIN(6, 13), 20, 3 }, /* AVB1_TD0 */
3563 { RCAR_GP_PIN(6, 12), 16, 3 }, /* AVB1_TD1 */
3564 { RCAR_GP_PIN(6, 11), 12, 3 }, /* AVB1_AVTP_CAPTURE */
3565 { RCAR_GP_PIN(6, 10), 8, 3 }, /* AVB1_AVTP_PPS */
3566 { RCAR_GP_PIN(6, 9), 4, 3 }, /* AVB1_RX_CTL */
3567 { RCAR_GP_PIN(6, 8), 0, 3 }, /* AVB1_RXC */
3568 } },
3569 { PINMUX_DRIVE_REG("DRV2CTRL6", 0xE6061088) {
3570 { RCAR_GP_PIN(6, 20), 16, 3 }, /* AVB1_TXCREFCLK */
3571 { RCAR_GP_PIN(6, 19), 12, 3 }, /* AVB1_RD3 */
3572 { RCAR_GP_PIN(6, 18), 8, 3 }, /* AVB1_TD3 */
3573 { RCAR_GP_PIN(6, 17), 4, 3 }, /* AVB1_RD2 */
3574 { RCAR_GP_PIN(6, 16), 0, 3 }, /* AVB1_TD2 */
3575 } },
3576 { PINMUX_DRIVE_REG("DRV0CTRL7", 0xE6061880) {
3577 { RCAR_GP_PIN(7, 7), 28, 3 }, /* AVB0_TD1 */
3578 { RCAR_GP_PIN(7, 6), 24, 3 }, /* AVB0_TD2 */
3579 { RCAR_GP_PIN(7, 5), 20, 3 }, /* AVB0_PHY_INT */
3580 { RCAR_GP_PIN(7, 4), 16, 3 }, /* AVB0_LINK */
3581 { RCAR_GP_PIN(7, 3), 12, 3 }, /* AVB0_TD3 */
3582 { RCAR_GP_PIN(7, 2), 8, 3 }, /* AVB0_AVTP_MATCH */
3583 { RCAR_GP_PIN(7, 1), 4, 3 }, /* AVB0_AVTP_CAPTURE */
3584 { RCAR_GP_PIN(7, 0), 0, 3 }, /* AVB0_AVTP_PPS */
3585 } },
3586 { PINMUX_DRIVE_REG("DRV1CTRL7", 0xE6061884) {
3587 { RCAR_GP_PIN(7, 15), 28, 3 }, /* AVB0_TXC */
3588 { RCAR_GP_PIN(7, 14), 24, 3 }, /* AVB0_MDIO */
3589 { RCAR_GP_PIN(7, 13), 20, 3 }, /* AVB0_MDC */
3590 { RCAR_GP_PIN(7, 12), 16, 3 }, /* AVB0_RD2 */
3591 { RCAR_GP_PIN(7, 11), 12, 3 }, /* AVB0_TD0 */
3592 { RCAR_GP_PIN(7, 10), 8, 3 }, /* AVB0_MAGIC */
3593 { RCAR_GP_PIN(7, 9), 4, 3 }, /* AVB0_TXCREFCLK */
3594 { RCAR_GP_PIN(7, 8), 0, 3 }, /* AVB0_RD3 */
3595 } },
3596 { PINMUX_DRIVE_REG("DRV2CTRL7", 0xE6061888) {
3597 { RCAR_GP_PIN(7, 20), 16, 3 }, /* AVB0_RX_CTL */
3598 { RCAR_GP_PIN(7, 19), 12, 3 }, /* AVB0_RXC */
3599 { RCAR_GP_PIN(7, 18), 8, 3 }, /* AVB0_RD0 */
3600 { RCAR_GP_PIN(7, 17), 4, 3 }, /* AVB0_RD1 */
3601 { RCAR_GP_PIN(7, 16), 0, 3 }, /* AVB0_TX_CTL */
3602 } },
3603 { },
3604};
3605
3606enum ioctrl_regs {
3607 POC0,
3608 POC1,
3609 POC3,
3610 POC4,
3611 POC5,
3612 POC6,
3613 POC7,
3614};
3615
3616static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] = {
3617 [POC0] = { 0xE60500A0, },
3618 [POC1] = { 0xE60508A0, },
3619 [POC3] = { 0xE60588A0, },
3620 [POC4] = { 0xE60600A0, },
3621 [POC5] = { 0xE60608A0, },
3622 [POC6] = { 0xE60610A0, },
3623 [POC7] = { 0xE60618A0, },
3624 { /* sentinel */ },
3625};
3626
3627static int r8a779h0_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
3628{
3629 int bit = pin & 0x1f;
3630
3631 switch (pin) {
3632 case RCAR_GP_PIN(0, 0) ... RCAR_GP_PIN(0, 18):
3633 *pocctrl = pinmux_ioctrl_regs[POC0].reg;
3634 return bit;
3635
3636 case RCAR_GP_PIN(1, 0) ... RCAR_GP_PIN(1, 28):
3637 *pocctrl = pinmux_ioctrl_regs[POC1].reg;
3638 return bit;
3639
3640 case RCAR_GP_PIN(3, 0) ... RCAR_GP_PIN(3, 12):
3641 *pocctrl = pinmux_ioctrl_regs[POC3].reg;
3642 return bit;
3643
3644 case RCAR_GP_PIN(4, 0) ... RCAR_GP_PIN(4, 13):
3645 *pocctrl = pinmux_ioctrl_regs[POC4].reg;
3646 return bit;
3647
3648 case PIN_VDDQ_AVB2:
3649 *pocctrl = pinmux_ioctrl_regs[POC5].reg;
3650 return 0;
3651
3652 case PIN_VDDQ_AVB1:
3653 *pocctrl = pinmux_ioctrl_regs[POC6].reg;
3654 return 0;
3655
3656 case PIN_VDDQ_AVB0:
3657 *pocctrl = pinmux_ioctrl_regs[POC7].reg;
3658 return 0;
3659
3660 default:
3661 return -EINVAL;
3662 }
3663}
3664
3665static const struct pinmux_bias_reg pinmux_bias_regs[] = {
3666 { PINMUX_BIAS_REG("PUEN0", 0xE60500C0, "PUD0", 0xE60500E0) {
3667 [ 0] = RCAR_GP_PIN(0, 0), /* GP0_00 */
3668 [ 1] = RCAR_GP_PIN(0, 1), /* GP0_01 */
3669 [ 2] = RCAR_GP_PIN(0, 2), /* GP0_02 */
3670 [ 3] = RCAR_GP_PIN(0, 3), /* IRQ3 */
3671 [ 4] = RCAR_GP_PIN(0, 4), /* IRQ2 */
3672 [ 5] = RCAR_GP_PIN(0, 5), /* IRQ1 */
3673 [ 6] = RCAR_GP_PIN(0, 6), /* IRQ0 */
3674 [ 7] = RCAR_GP_PIN(0, 7), /* MSIOF5_SS2 */
3675 [ 8] = RCAR_GP_PIN(0, 8), /* MSIOF5_SS1 */
3676 [ 9] = RCAR_GP_PIN(0, 9), /* MSIOF5_SYNC */
3677 [10] = RCAR_GP_PIN(0, 10), /* MSIOF5_TXD */
3678 [11] = RCAR_GP_PIN(0, 11), /* MSIOF5_SCK */
3679 [12] = RCAR_GP_PIN(0, 12), /* MSIOF5_RXD */
3680 [13] = RCAR_GP_PIN(0, 13), /* MSIOF2_SS2 */
3681 [14] = RCAR_GP_PIN(0, 14), /* MSIOF2_SS1 */
3682 [15] = RCAR_GP_PIN(0, 15), /* MSIOF2_SYNC */
3683 [16] = RCAR_GP_PIN(0, 16), /* MSIOF2_TXD */
3684 [17] = RCAR_GP_PIN(0, 17), /* MSIOF2_SCK */
3685 [18] = RCAR_GP_PIN(0, 18), /* MSIOF2_RXD */
3686 [19] = SH_PFC_PIN_NONE,
3687 [20] = SH_PFC_PIN_NONE,
3688 [21] = SH_PFC_PIN_NONE,
3689 [22] = SH_PFC_PIN_NONE,
3690 [23] = SH_PFC_PIN_NONE,
3691 [24] = SH_PFC_PIN_NONE,
3692 [25] = SH_PFC_PIN_NONE,
3693 [26] = SH_PFC_PIN_NONE,
3694 [27] = SH_PFC_PIN_NONE,
3695 [28] = SH_PFC_PIN_NONE,
3696 [29] = SH_PFC_PIN_NONE,
3697 [30] = SH_PFC_PIN_NONE,
3698 [31] = SH_PFC_PIN_NONE,
3699 } },
3700 { PINMUX_BIAS_REG("PUEN1", 0xE60508C0, "PUD1", 0xE60508E0) {
3701 [ 0] = RCAR_GP_PIN(1, 0), /* MSIOF1_SS2 */
3702 [ 1] = RCAR_GP_PIN(1, 1), /* MSIOF1_SS1 */
3703 [ 2] = RCAR_GP_PIN(1, 2), /* MSIOF1_SYNC */
3704 [ 3] = RCAR_GP_PIN(1, 3), /* MSIOF1_SCK */
3705 [ 4] = RCAR_GP_PIN(1, 4), /* MSIOF1_TXD */
3706 [ 5] = RCAR_GP_PIN(1, 5), /* MSIOF1_RXD */
3707 [ 6] = RCAR_GP_PIN(1, 6), /* MSIOF0_SS2 */
3708 [ 7] = RCAR_GP_PIN(1, 7), /* MSIOF0_SS1 */
3709 [ 8] = RCAR_GP_PIN(1, 8), /* MSIOF0_SYNC */
3710 [ 9] = RCAR_GP_PIN(1, 9), /* MSIOF0_TXD */
3711 [10] = RCAR_GP_PIN(1, 10), /* MSIOF0_SCK */
3712 [11] = RCAR_GP_PIN(1, 11), /* MSIOF0_RXD */
3713 [12] = RCAR_GP_PIN(1, 12), /* HTX0 */
3714 [13] = RCAR_GP_PIN(1, 13), /* HCTS0_N */
3715 [14] = RCAR_GP_PIN(1, 14), /* HRTS0_N */
3716 [15] = RCAR_GP_PIN(1, 15), /* HSCK0 */
3717 [16] = RCAR_GP_PIN(1, 16), /* HRX0 */
3718 [17] = RCAR_GP_PIN(1, 17), /* SCIF_CLK */
3719 [18] = RCAR_GP_PIN(1, 18), /* SSI_SCK */
3720 [19] = RCAR_GP_PIN(1, 19), /* SSI_WS */
3721 [20] = RCAR_GP_PIN(1, 20), /* SSI_SD */
3722 [21] = RCAR_GP_PIN(1, 21), /* AUDIO_CLKOUT */
3723 [22] = RCAR_GP_PIN(1, 22), /* AUDIO_CLKIN */
3724 [23] = RCAR_GP_PIN(1, 23), /* GP1_23 */
3725 [24] = RCAR_GP_PIN(1, 24), /* HRX3 */
3726 [25] = RCAR_GP_PIN(1, 25), /* HSCK3 */
3727 [26] = RCAR_GP_PIN(1, 26), /* HRTS3_N */
3728 [27] = RCAR_GP_PIN(1, 27), /* HCTS3_N */
3729 [28] = RCAR_GP_PIN(1, 28), /* HTX3 */
3730 [29] = RCAR_GP_PIN(1, 29), /* ERROROUTC_N */
3731 [30] = SH_PFC_PIN_NONE,
3732 [31] = SH_PFC_PIN_NONE,
3733 } },
3734 { PINMUX_BIAS_REG("PUEN2", 0xE60580C0, "PUD2", 0xE60580E0) {
3735 [ 0] = RCAR_GP_PIN(2, 0), /* FXR_TXDA */
3736 [ 1] = RCAR_GP_PIN(2, 1), /* FXR_TXENA_N */
3737 [ 2] = RCAR_GP_PIN(2, 2), /* RXDA_EXTFXR */
3738 [ 3] = RCAR_GP_PIN(2, 3), /* CLK_EXTFXR */
3739 [ 4] = RCAR_GP_PIN(2, 4), /* RXDB_EXTFXR */
3740 [ 5] = RCAR_GP_PIN(2, 5), /* FXR_TXENB_N */
3741 [ 6] = RCAR_GP_PIN(2, 6), /* FXR_TXDB */
3742 [ 7] = RCAR_GP_PIN(2, 7), /* TPU0TO1 */
3743 [ 8] = RCAR_GP_PIN(2, 8), /* TPU0TO0 */
3744 [ 9] = RCAR_GP_PIN(2, 9), /* CAN_CLK */
3745 [10] = RCAR_GP_PIN(2, 10), /* CANFD0_TX */
3746 [11] = RCAR_GP_PIN(2, 11), /* CANFD0_RX */
3747 [12] = RCAR_GP_PIN(2, 12), /* CANFD2_TX */
3748 [13] = RCAR_GP_PIN(2, 13), /* CANFD2_RX */
3749 [14] = RCAR_GP_PIN(2, 14), /* CANFD3_TX */
3750 [15] = RCAR_GP_PIN(2, 15), /* CANFD3_RX */
3751 [16] = SH_PFC_PIN_NONE,
3752 [17] = RCAR_GP_PIN(2, 17), /* CANFD1_TX */
3753 [18] = SH_PFC_PIN_NONE,
3754 [19] = RCAR_GP_PIN(2, 19), /* CANFD1_RX */
3755 [20] = SH_PFC_PIN_NONE,
3756 [21] = SH_PFC_PIN_NONE,
3757 [22] = SH_PFC_PIN_NONE,
3758 [23] = SH_PFC_PIN_NONE,
3759 [24] = SH_PFC_PIN_NONE,
3760 [25] = SH_PFC_PIN_NONE,
3761 [26] = SH_PFC_PIN_NONE,
3762 [27] = SH_PFC_PIN_NONE,
3763 [28] = SH_PFC_PIN_NONE,
3764 [29] = SH_PFC_PIN_NONE,
3765 [30] = SH_PFC_PIN_NONE,
3766 [31] = SH_PFC_PIN_NONE,
3767 } },
3768 { PINMUX_BIAS_REG("PUEN3", 0xE60588C0, "PUD3", 0xE60588E0) {
3769 [ 0] = RCAR_GP_PIN(3, 0), /* MMC_SD_D1 */
3770 [ 1] = RCAR_GP_PIN(3, 1), /* MMC_SD_D0 */
3771 [ 2] = RCAR_GP_PIN(3, 2), /* MMC_SD_D2 */
3772 [ 3] = RCAR_GP_PIN(3, 3), /* MMC_SD_CLK */
3773 [ 4] = RCAR_GP_PIN(3, 4), /* MMC_DS */
3774 [ 5] = RCAR_GP_PIN(3, 5), /* MMC_SD_D3 */
3775 [ 6] = RCAR_GP_PIN(3, 6), /* MMC_D5 */
3776 [ 7] = RCAR_GP_PIN(3, 7), /* MMC_D4 */
3777 [ 8] = RCAR_GP_PIN(3, 8), /* MMC_D7 */
3778 [ 9] = RCAR_GP_PIN(3, 9), /* MMC_D6 */
3779 [10] = RCAR_GP_PIN(3, 10), /* MMC_SD_CMD */
3780 [11] = RCAR_GP_PIN(3, 11), /* SD_CD */
3781 [12] = RCAR_GP_PIN(3, 12), /* SD_WP */
3782 [13] = RCAR_GP_PIN(3, 13), /* PWM1 */
3783 [14] = RCAR_GP_PIN(3, 14), /* PWM2 */
3784 [15] = RCAR_GP_PIN(3, 15), /* QSPI0_SSL */
3785 [16] = RCAR_GP_PIN(3, 16), /* QSPI0_IO3 */
3786 [17] = RCAR_GP_PIN(3, 17), /* QSPI0_IO2 */
3787 [18] = RCAR_GP_PIN(3, 18), /* QSPI0_MISO_IO1 */
3788 [19] = RCAR_GP_PIN(3, 19), /* QSPI0_MOSI_IO0 */
3789 [20] = RCAR_GP_PIN(3, 20), /* QSPI0_SPCLK */
3790 [21] = RCAR_GP_PIN(3, 21), /* QSPI1_MOSI_IO0 */
3791 [22] = RCAR_GP_PIN(3, 22), /* QSPI1_SPCLK */
3792 [23] = RCAR_GP_PIN(3, 23), /* QSPI1_MISO_IO1 */
3793 [24] = RCAR_GP_PIN(3, 24), /* QSPI1_IO2 */
3794 [25] = RCAR_GP_PIN(3, 25), /* QSPI1_SSL */
3795 [26] = RCAR_GP_PIN(3, 26), /* QSPI1_IO3 */
3796 [27] = RCAR_GP_PIN(3, 27), /* RPC_RESET_N */
3797 [28] = RCAR_GP_PIN(3, 28), /* RPC_WP_N */
3798 [29] = RCAR_GP_PIN(3, 29), /* RPC_INT_N */
3799 [30] = RCAR_GP_PIN(3, 30), /* TCLK3 */
3800 [31] = RCAR_GP_PIN(3, 31), /* TCLK4 */
3801 } },
3802 { PINMUX_BIAS_REG("PUEN4", 0xE60600C0, "PUD4", 0xE60600E0) {
3803 [ 0] = RCAR_GP_PIN(4, 0), /* SCL0 */
3804 [ 1] = RCAR_GP_PIN(4, 1), /* SDA0 */
3805 [ 2] = RCAR_GP_PIN(4, 2), /* SCL1 */
3806 [ 3] = RCAR_GP_PIN(4, 3), /* SDA1 */
3807 [ 4] = RCAR_GP_PIN(4, 4), /* SCL2 */
3808 [ 5] = RCAR_GP_PIN(4, 5), /* SDA2 */
3809 [ 6] = RCAR_GP_PIN(4, 6), /* SCL3 */
3810 [ 7] = RCAR_GP_PIN(4, 7), /* SDA3 */
3811 [ 8] = RCAR_GP_PIN(4, 8), /* HRX2 */
3812 [ 9] = RCAR_GP_PIN(4, 9), /* HTX2 */
3813 [10] = RCAR_GP_PIN(4, 10), /* HRTS2_N */
3814 [11] = RCAR_GP_PIN(4, 11), /* SCIF_CLK2 */
3815 [12] = RCAR_GP_PIN(4, 12), /* HCTS2_N */
3816 [13] = RCAR_GP_PIN(4, 13), /* HSCK2 */
3817 [14] = RCAR_GP_PIN(4, 14), /* PWM3 */
3818 [15] = RCAR_GP_PIN(4, 15), /* PWM4 */
3819 [16] = SH_PFC_PIN_NONE,
3820 [17] = SH_PFC_PIN_NONE,
3821 [18] = SH_PFC_PIN_NONE,
3822 [19] = SH_PFC_PIN_NONE,
3823 [20] = SH_PFC_PIN_NONE,
3824 [21] = RCAR_GP_PIN(4, 21), /* PCIE0_CLKREQ_N */
3825 [22] = SH_PFC_PIN_NONE,
3826 [23] = RCAR_GP_PIN(4, 23), /* AVS0 */
3827 [24] = RCAR_GP_PIN(4, 24), /* AVS1 */
3828 [25] = SH_PFC_PIN_NONE,
3829 [26] = SH_PFC_PIN_NONE,
3830 [27] = SH_PFC_PIN_NONE,
3831 [28] = SH_PFC_PIN_NONE,
3832 [29] = SH_PFC_PIN_NONE,
3833 [30] = SH_PFC_PIN_NONE,
3834 [31] = SH_PFC_PIN_NONE,
3835 } },
3836 { PINMUX_BIAS_REG("PUEN5", 0xE60608C0, "PUD5", 0xE60608E0) {
3837 [ 0] = RCAR_GP_PIN(5, 0), /* AVB2_AVTP_PPS */
3838 [ 1] = RCAR_GP_PIN(5, 1), /* AVB0_AVTP_CAPTURE */
3839 [ 2] = RCAR_GP_PIN(5, 2), /* AVB2_AVTP_MATCH */
3840 [ 3] = RCAR_GP_PIN(5, 3), /* AVB2_LINK */
3841 [ 4] = RCAR_GP_PIN(5, 4), /* AVB2_PHY_INT */
3842 [ 5] = RCAR_GP_PIN(5, 5), /* AVB2_MAGIC */
3843 [ 6] = RCAR_GP_PIN(5, 6), /* AVB2_MDC */
3844 [ 7] = RCAR_GP_PIN(5, 7), /* AVB2_TXCREFCLK */
3845 [ 8] = RCAR_GP_PIN(5, 8), /* AVB2_TD3 */
3846 [ 9] = RCAR_GP_PIN(5, 9), /* AVB2_RD3 */
3847 [10] = RCAR_GP_PIN(5, 10), /* AVB2_MDIO */
3848 [11] = RCAR_GP_PIN(5, 11), /* AVB2_TD2 */
3849 [12] = RCAR_GP_PIN(5, 12), /* AVB2_TD1 */
3850 [13] = RCAR_GP_PIN(5, 13), /* AVB2_RD2 */
3851 [14] = RCAR_GP_PIN(5, 14), /* AVB2_RD1 */
3852 [15] = RCAR_GP_PIN(5, 15), /* AVB2_TD0 */
3853 [16] = RCAR_GP_PIN(5, 16), /* AVB2_TXC */
3854 [17] = RCAR_GP_PIN(5, 17), /* AVB2_RD0 */
3855 [18] = RCAR_GP_PIN(5, 18), /* AVB2_RXC */
3856 [19] = RCAR_GP_PIN(5, 19), /* AVB2_TX_CTL */
3857 [20] = RCAR_GP_PIN(5, 20), /* AVB2_RX_CTL */
3858 [21] = SH_PFC_PIN_NONE,
3859 [22] = SH_PFC_PIN_NONE,
3860 [23] = SH_PFC_PIN_NONE,
3861 [24] = SH_PFC_PIN_NONE,
3862 [25] = SH_PFC_PIN_NONE,
3863 [26] = SH_PFC_PIN_NONE,
3864 [27] = SH_PFC_PIN_NONE,
3865 [28] = SH_PFC_PIN_NONE,
3866 [29] = SH_PFC_PIN_NONE,
3867 [30] = SH_PFC_PIN_NONE,
3868 [31] = SH_PFC_PIN_NONE,
3869 } },
3870 { PINMUX_BIAS_REG("PUEN6", 0xE60610C0, "PUD6", 0xE60610E0) {
3871 [ 0] = RCAR_GP_PIN(6, 0), /* AVB1_MDIO */
3872 [ 1] = RCAR_GP_PIN(6, 1), /* AVB1_MAGIC */
3873 [ 2] = RCAR_GP_PIN(6, 2), /* AVB1_MDC */
3874 [ 3] = RCAR_GP_PIN(6, 3), /* AVB1_PHY_INT */
3875 [ 4] = RCAR_GP_PIN(6, 4), /* AVB1_LINK */
3876 [ 5] = RCAR_GP_PIN(6, 5), /* AVB1_AVTP_MATCH */
3877 [ 6] = RCAR_GP_PIN(6, 6), /* AVB1_TXC */
3878 [ 7] = RCAR_GP_PIN(6, 7), /* AVB1_TX_CTL */
3879 [ 8] = RCAR_GP_PIN(6, 8), /* AVB1_RXC */
3880 [ 9] = RCAR_GP_PIN(6, 9), /* AVB1_RX_CTL */
3881 [10] = RCAR_GP_PIN(6, 10), /* AVB1_AVTP_PPS */
3882 [11] = RCAR_GP_PIN(6, 11), /* AVB1_AVTP_CAPTURE */
3883 [12] = RCAR_GP_PIN(6, 12), /* AVB1_TD1 */
3884 [13] = RCAR_GP_PIN(6, 13), /* AVB1_TD0 */
3885 [14] = RCAR_GP_PIN(6, 14), /* AVB1_RD1*/
3886 [15] = RCAR_GP_PIN(6, 15), /* AVB1_RD0 */
3887 [16] = RCAR_GP_PIN(6, 16), /* AVB1_TD2 */
3888 [17] = RCAR_GP_PIN(6, 17), /* AVB1_RD2 */
3889 [18] = RCAR_GP_PIN(6, 18), /* AVB1_TD3 */
3890 [19] = RCAR_GP_PIN(6, 19), /* AVB1_RD3 */
3891 [20] = RCAR_GP_PIN(6, 20), /* AVB1_TXCREFCLK */
3892 [21] = SH_PFC_PIN_NONE,
3893 [22] = SH_PFC_PIN_NONE,
3894 [23] = SH_PFC_PIN_NONE,
3895 [24] = SH_PFC_PIN_NONE,
3896 [25] = SH_PFC_PIN_NONE,
3897 [26] = SH_PFC_PIN_NONE,
3898 [27] = SH_PFC_PIN_NONE,
3899 [28] = SH_PFC_PIN_NONE,
3900 [29] = SH_PFC_PIN_NONE,
3901 [30] = SH_PFC_PIN_NONE,
3902 [31] = SH_PFC_PIN_NONE,
3903 } },
3904 { PINMUX_BIAS_REG("PUEN7", 0xE60618C0, "PUD7", 0xE60618E0) {
3905 [ 0] = RCAR_GP_PIN(7, 0), /* AVB0_AVTP_PPS */
3906 [ 1] = RCAR_GP_PIN(7, 1), /* AVB0_AVTP_CAPTURE */
3907 [ 2] = RCAR_GP_PIN(7, 2), /* AVB0_AVTP_MATCH */
3908 [ 3] = RCAR_GP_PIN(7, 3), /* AVB0_TD3 */
3909 [ 4] = RCAR_GP_PIN(7, 4), /* AVB0_LINK */
3910 [ 5] = RCAR_GP_PIN(7, 5), /* AVB0_PHY_INT */
3911 [ 6] = RCAR_GP_PIN(7, 6), /* AVB0_TD2 */
3912 [ 7] = RCAR_GP_PIN(7, 7), /* AVB0_TD1 */
3913 [ 8] = RCAR_GP_PIN(7, 8), /* AVB0_RD3 */
3914 [ 9] = RCAR_GP_PIN(7, 9), /* AVB0_TXCREFCLK */
3915 [10] = RCAR_GP_PIN(7, 10), /* AVB0_MAGIC */
3916 [11] = RCAR_GP_PIN(7, 11), /* AVB0_TD0 */
3917 [12] = RCAR_GP_PIN(7, 12), /* AVB0_RD2 */
3918 [13] = RCAR_GP_PIN(7, 13), /* AVB0_MDC */
3919 [14] = RCAR_GP_PIN(7, 14), /* AVB0_MDIO */
3920 [15] = RCAR_GP_PIN(7, 15), /* AVB0_TXC */
3921 [16] = RCAR_GP_PIN(7, 16), /* AVB0_TX_CTL */
3922 [17] = RCAR_GP_PIN(7, 17), /* AVB0_RD1 */
3923 [18] = RCAR_GP_PIN(7, 18), /* AVB0_RD0 */
3924 [19] = RCAR_GP_PIN(7, 19), /* AVB0_RXC */
3925 [20] = RCAR_GP_PIN(7, 20), /* AVB0_RX_CTL */
3926 [21] = SH_PFC_PIN_NONE,
3927 [22] = SH_PFC_PIN_NONE,
3928 [23] = SH_PFC_PIN_NONE,
3929 [24] = SH_PFC_PIN_NONE,
3930 [25] = SH_PFC_PIN_NONE,
3931 [26] = SH_PFC_PIN_NONE,
3932 [27] = SH_PFC_PIN_NONE,
3933 [28] = SH_PFC_PIN_NONE,
3934 [29] = SH_PFC_PIN_NONE,
3935 [30] = SH_PFC_PIN_NONE,
3936 [31] = SH_PFC_PIN_NONE,
3937 } },
3938 { /* sentinel */ },
3939};
3940
3941static const struct sh_pfc_soc_operations r8a779h0_pin_ops = {
3942 .pin_to_pocctrl = r8a779h0_pin_to_pocctrl,
3943 .get_bias = rcar_pinmux_get_bias,
3944 .set_bias = rcar_pinmux_set_bias,
3945};
3946
3947const struct sh_pfc_soc_info r8a779h0_pinmux_info = {
3948 .name = "r8a779h0_pfc",
3949 .ops = &r8a779h0_pin_ops,
3950 .unlock_reg = 0x1ff, /* PMMRn mask */
3951
3952 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
3953
3954 .pins = pinmux_pins,
3955 .nr_pins = ARRAY_SIZE(pinmux_pins),
3956 .groups = pinmux_groups,
3957 .nr_groups = ARRAY_SIZE(pinmux_groups),
3958 .functions = pinmux_functions,
3959 .nr_functions = ARRAY_SIZE(pinmux_functions),
3960
3961 .cfg_regs = pinmux_config_regs,
3962 .drive_regs = pinmux_drive_regs,
3963 .bias_regs = pinmux_bias_regs,
3964 .ioctrl_regs = pinmux_ioctrl_regs,
3965
3966 .pinmux_data = pinmux_data,
3967 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
3968};