1 // SPDX-License-Identifier: GPL-2.0
3 * R8A77990 processor support - PFC hardware block.
5 * Copyright (C) 2018 Renesas Electronics Corp.
7 * This file is based on the drivers/pinctrl/sh-pfc/pfc-r8a7796.c
9 * R8A7796 processor support - PFC hardware block.
11 * Copyright (C) 2016-2017 Renesas Electronics Corp.
14 #include <linux/kernel.h>
19 #define CFG_FLAGS (SH_PFC_PIN_CFG_PULL_UP | \
20 SH_PFC_PIN_CFG_PULL_DOWN)
22 #define CPU_ALL_PORT(fn, sfx) \
23 PORT_GP_CFG_18(0, fn, sfx, CFG_FLAGS), \
24 PORT_GP_CFG_23(1, fn, sfx, CFG_FLAGS), \
25 PORT_GP_CFG_26(2, fn, sfx, CFG_FLAGS), \
26 PORT_GP_CFG_12(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE), \
27 PORT_GP_CFG_1(3, 12, fn, sfx, CFG_FLAGS), \
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_11(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE), \
32 PORT_GP_CFG_20(5, fn, sfx, CFG_FLAGS), \
33 PORT_GP_CFG_9(6, fn, sfx, CFG_FLAGS), \
34 PORT_GP_CFG_1(6, 9, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
35 PORT_GP_CFG_1(6, 10, fn, sfx, CFG_FLAGS), \
36 PORT_GP_CFG_1(6, 11, fn, sfx, CFG_FLAGS), \
37 PORT_GP_CFG_1(6, 12, fn, sfx, CFG_FLAGS), \
38 PORT_GP_CFG_1(6, 13, fn, sfx, CFG_FLAGS), \
39 PORT_GP_CFG_1(6, 14, fn, sfx, CFG_FLAGS), \
40 PORT_GP_CFG_1(6, 15, fn, sfx, CFG_FLAGS), \
41 PORT_GP_CFG_1(6, 16, fn, sfx, CFG_FLAGS), \
42 PORT_GP_CFG_1(6, 17, fn, sfx, CFG_FLAGS)
44 * F_() : just information
45 * FM() : macro for FN_xxx / xxx_MARK
49 #define GPSR0_17 F_(SDA4, IP7_27_24)
50 #define GPSR0_16 F_(SCL4, IP7_23_20)
51 #define GPSR0_15 F_(D15, IP7_19_16)
52 #define GPSR0_14 F_(D14, IP7_15_12)
53 #define GPSR0_13 F_(D13, IP7_11_8)
54 #define GPSR0_12 F_(D12, IP7_7_4)
55 #define GPSR0_11 F_(D11, IP7_3_0)
56 #define GPSR0_10 F_(D10, IP6_31_28)
57 #define GPSR0_9 F_(D9, IP6_27_24)
58 #define GPSR0_8 F_(D8, IP6_23_20)
59 #define GPSR0_7 F_(D7, IP6_19_16)
60 #define GPSR0_6 F_(D6, IP6_15_12)
61 #define GPSR0_5 F_(D5, IP6_11_8)
62 #define GPSR0_4 F_(D4, IP6_7_4)
63 #define GPSR0_3 F_(D3, IP6_3_0)
64 #define GPSR0_2 F_(D2, IP5_31_28)
65 #define GPSR0_1 F_(D1, IP5_27_24)
66 #define GPSR0_0 F_(D0, IP5_23_20)
69 #define GPSR1_22 F_(WE0_N, IP5_19_16)
70 #define GPSR1_21 F_(CS0_N, IP5_15_12)
71 #define GPSR1_20 FM(CLKOUT)
72 #define GPSR1_19 F_(A19, IP5_11_8)
73 #define GPSR1_18 F_(A18, IP5_7_4)
74 #define GPSR1_17 F_(A17, IP5_3_0)
75 #define GPSR1_16 F_(A16, IP4_31_28)
76 #define GPSR1_15 F_(A15, IP4_27_24)
77 #define GPSR1_14 F_(A14, IP4_23_20)
78 #define GPSR1_13 F_(A13, IP4_19_16)
79 #define GPSR1_12 F_(A12, IP4_15_12)
80 #define GPSR1_11 F_(A11, IP4_11_8)
81 #define GPSR1_10 F_(A10, IP4_7_4)
82 #define GPSR1_9 F_(A9, IP4_3_0)
83 #define GPSR1_8 F_(A8, IP3_31_28)
84 #define GPSR1_7 F_(A7, IP3_27_24)
85 #define GPSR1_6 F_(A6, IP3_23_20)
86 #define GPSR1_5 F_(A5, IP3_19_16)
87 #define GPSR1_4 F_(A4, IP3_15_12)
88 #define GPSR1_3 F_(A3, IP3_11_8)
89 #define GPSR1_2 F_(A2, IP3_7_4)
90 #define GPSR1_1 F_(A1, IP3_3_0)
91 #define GPSR1_0 F_(A0, IP2_31_28)
94 #define GPSR2_25 F_(EX_WAIT0, IP2_27_24)
95 #define GPSR2_24 F_(RD_WR_N, IP2_23_20)
96 #define GPSR2_23 F_(RD_N, IP2_19_16)
97 #define GPSR2_22 F_(BS_N, IP2_15_12)
98 #define GPSR2_21 FM(AVB_PHY_INT)
99 #define GPSR2_20 F_(AVB_TXCREFCLK, IP2_3_0)
100 #define GPSR2_19 FM(AVB_RD3)
101 #define GPSR2_18 F_(AVB_RD2, IP1_31_28)
102 #define GPSR2_17 F_(AVB_RD1, IP1_27_24)
103 #define GPSR2_16 F_(AVB_RD0, IP1_23_20)
104 #define GPSR2_15 FM(AVB_RXC)
105 #define GPSR2_14 FM(AVB_RX_CTL)
106 #define GPSR2_13 F_(RPC_RESET_N, IP1_19_16)
107 #define GPSR2_12 F_(RPC_INT_N, IP1_15_12)
108 #define GPSR2_11 F_(QSPI1_SSL, IP1_11_8)
109 #define GPSR2_10 F_(QSPI1_IO3, IP1_7_4)
110 #define GPSR2_9 F_(QSPI1_IO2, IP1_3_0)
111 #define GPSR2_8 F_(QSPI1_MISO_IO1, IP0_31_28)
112 #define GPSR2_7 F_(QSPI1_MOSI_IO0, IP0_27_24)
113 #define GPSR2_6 F_(QSPI1_SPCLK, IP0_23_20)
114 #define GPSR2_5 FM(QSPI0_SSL)
115 #define GPSR2_4 F_(QSPI0_IO3, IP0_19_16)
116 #define GPSR2_3 F_(QSPI0_IO2, IP0_15_12)
117 #define GPSR2_2 F_(QSPI0_MISO_IO1, IP0_11_8)
118 #define GPSR2_1 F_(QSPI0_MOSI_IO0, IP0_7_4)
119 #define GPSR2_0 F_(QSPI0_SPCLK, IP0_3_0)
122 #define GPSR3_15 F_(SD1_WP, IP11_7_4)
123 #define GPSR3_14 F_(SD1_CD, IP11_3_0)
124 #define GPSR3_13 F_(SD0_WP, IP10_31_28)
125 #define GPSR3_12 F_(SD0_CD, IP10_27_24)
126 #define GPSR3_11 F_(SD1_DAT3, IP9_11_8)
127 #define GPSR3_10 F_(SD1_DAT2, IP9_7_4)
128 #define GPSR3_9 F_(SD1_DAT1, IP9_3_0)
129 #define GPSR3_8 F_(SD1_DAT0, IP8_31_28)
130 #define GPSR3_7 F_(SD1_CMD, IP8_27_24)
131 #define GPSR3_6 F_(SD1_CLK, IP8_23_20)
132 #define GPSR3_5 F_(SD0_DAT3, IP8_19_16)
133 #define GPSR3_4 F_(SD0_DAT2, IP8_15_12)
134 #define GPSR3_3 F_(SD0_DAT1, IP8_11_8)
135 #define GPSR3_2 F_(SD0_DAT0, IP8_7_4)
136 #define GPSR3_1 F_(SD0_CMD, IP8_3_0)
137 #define GPSR3_0 F_(SD0_CLK, IP7_31_28)
140 #define GPSR4_10 F_(SD3_DS, IP10_23_20)
141 #define GPSR4_9 F_(SD3_DAT7, IP10_19_16)
142 #define GPSR4_8 F_(SD3_DAT6, IP10_15_12)
143 #define GPSR4_7 F_(SD3_DAT5, IP10_11_8)
144 #define GPSR4_6 F_(SD3_DAT4, IP10_7_4)
145 #define GPSR4_5 F_(SD3_DAT3, IP10_3_0)
146 #define GPSR4_4 F_(SD3_DAT2, IP9_31_28)
147 #define GPSR4_3 F_(SD3_DAT1, IP9_27_24)
148 #define GPSR4_2 F_(SD3_DAT0, IP9_23_20)
149 #define GPSR4_1 F_(SD3_CMD, IP9_19_16)
150 #define GPSR4_0 F_(SD3_CLK, IP9_15_12)
153 #define GPSR5_19 F_(MLB_DAT, IP13_23_20)
154 #define GPSR5_18 F_(MLB_SIG, IP13_19_16)
155 #define GPSR5_17 F_(MLB_CLK, IP13_15_12)
156 #define GPSR5_16 F_(SSI_SDATA9, IP13_11_8)
157 #define GPSR5_15 F_(MSIOF0_SS2, IP13_7_4)
158 #define GPSR5_14 F_(MSIOF0_SS1, IP13_3_0)
159 #define GPSR5_13 F_(MSIOF0_SYNC, IP12_31_28)
160 #define GPSR5_12 F_(MSIOF0_TXD, IP12_27_24)
161 #define GPSR5_11 F_(MSIOF0_RXD, IP12_23_20)
162 #define GPSR5_10 F_(MSIOF0_SCK, IP12_19_16)
163 #define GPSR5_9 F_(RX2_A, IP12_15_12)
164 #define GPSR5_8 F_(TX2_A, IP12_11_8)
165 #define GPSR5_7 F_(SCK2_A, IP12_7_4)
166 #define GPSR5_6 F_(TX1, IP12_3_0)
167 #define GPSR5_5 F_(RX1, IP11_31_28)
168 #define GPSR5_4 F_(RTS0_N_TANS_A, IP11_23_20)
169 #define GPSR5_3 F_(CTS0_N_A, IP11_19_16)
170 #define GPSR5_2 F_(TX0_A, IP11_15_12)
171 #define GPSR5_1 F_(RX0_A, IP11_11_8)
172 #define GPSR5_0 F_(SCK0_A, IP11_27_24)
175 #define GPSR6_17 F_(USB30_PWEN, IP15_27_24)
176 #define GPSR6_16 F_(SSI_SDATA6, IP15_19_16)
177 #define GPSR6_15 F_(SSI_WS6, IP15_15_12)
178 #define GPSR6_14 F_(SSI_SCK6, IP15_11_8)
179 #define GPSR6_13 F_(SSI_SDATA5, IP15_7_4)
180 #define GPSR6_12 F_(SSI_WS5, IP15_3_0)
181 #define GPSR6_11 F_(SSI_SCK5, IP14_31_28)
182 #define GPSR6_10 F_(SSI_SDATA4, IP14_27_24)
183 #define GPSR6_9 F_(USB30_OVC, IP15_31_28)
184 #define GPSR6_8 F_(AUDIO_CLKA, IP15_23_20)
185 #define GPSR6_7 F_(SSI_SDATA3, IP14_23_20)
186 #define GPSR6_6 F_(SSI_WS349, IP14_19_16)
187 #define GPSR6_5 F_(SSI_SCK349, IP14_15_12)
188 #define GPSR6_4 F_(SSI_SDATA2, IP14_11_8)
189 #define GPSR6_3 F_(SSI_SDATA1, IP14_7_4)
190 #define GPSR6_2 F_(SSI_SDATA0, IP14_3_0)
191 #define GPSR6_1 F_(SSI_WS01239, IP13_31_28)
192 #define GPSR6_0 F_(SSI_SCK01239, IP13_27_24)
194 /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 - F */
195 #define IP0_3_0 FM(QSPI0_SPCLK) FM(HSCK4_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)
196 #define IP0_7_4 FM(QSPI0_MOSI_IO0) FM(HCTS4_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)
197 #define IP0_11_8 FM(QSPI0_MISO_IO1) FM(HRTS4_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)
198 #define IP0_15_12 FM(QSPI0_IO2) FM(HTX4_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)
199 #define IP0_19_16 FM(QSPI0_IO3) FM(HRX4_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)
200 #define IP0_23_20 FM(QSPI1_SPCLK) FM(RIF2_CLK_A) FM(HSCK4_B) FM(VI4_DATA0_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)
201 #define IP0_27_24 FM(QSPI1_MOSI_IO0) FM(RIF2_SYNC_A) FM(HTX4_B) FM(VI4_DATA1_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)
202 #define IP0_31_28 FM(QSPI1_MISO_IO1) FM(RIF2_D0_A) FM(HRX4_B) FM(VI4_DATA2_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)
203 #define IP1_3_0 FM(QSPI1_IO2) FM(RIF2_D1_A) FM(HTX3_C) FM(VI4_DATA3_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)
204 #define IP1_7_4 FM(QSPI1_IO3) FM(RIF3_CLK_A) FM(HRX3_C) FM(VI4_DATA4_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)
205 #define IP1_11_8 FM(QSPI1_SSL) FM(RIF3_SYNC_A) FM(HSCK3_C) FM(VI4_DATA5_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)
206 #define IP1_15_12 FM(RPC_INT_N) FM(RIF3_D0_A) FM(HCTS3_N_C) FM(VI4_DATA6_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)
207 #define IP1_19_16 FM(RPC_RESET_N) FM(RIF3_D1_A) FM(HRTS3_N_C) FM(VI4_DATA7_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)
208 #define IP1_23_20 FM(AVB_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)
209 #define IP1_27_24 FM(AVB_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)
210 #define IP1_31_28 FM(AVB_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)
211 #define IP2_3_0 FM(AVB_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)
212 #define IP2_7_4 FM(AVB_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)
213 #define IP2_11_8 FM(AVB_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)
214 #define IP2_15_12 FM(BS_N) FM(PWM0_A) FM(AVB_MAGIC) FM(VI4_CLK) F_(0, 0) FM(TX3_C) F_(0, 0) FM(VI5_CLK_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)
215 #define IP2_19_16 FM(RD_N) FM(PWM1_A) FM(AVB_LINK) FM(VI4_FIELD) F_(0, 0) FM(RX3_C) FM(FSCLKST2_N_A) FM(VI5_DATA0_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)
216 #define IP2_23_20 FM(RD_WR_N) FM(SCL7_A) FM(AVB_AVTP_MATCH_A) FM(VI4_VSYNC_N) FM(TX5_B) FM(SCK3_C) FM(PWM5_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)
217 #define IP2_27_24 FM(EX_WAIT0) FM(SDA7_A) FM(AVB_AVTP_CAPTURE_A) FM(VI4_HSYNC_N) FM(RX5_B) FM(PWM6_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)
218 #define IP2_31_28 FM(A0) FM(IRQ0) FM(PWM2_A) FM(MSIOF3_SS1_B) FM(VI5_CLK_A) FM(DU_CDE) FM(HRX3_D) FM(IERX) FM(QSTB_QHE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
219 #define IP3_3_0 FM(A1) FM(IRQ1) FM(PWM3_A) FM(DU_DOTCLKIN1) FM(VI5_DATA0_A) FM(DU_DISP_CDE) FM(SDA6_B) FM(IETX) FM(QCPV_QDE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
220 #define IP3_7_4 FM(A2) FM(IRQ2) FM(AVB_AVTP_PPS) FM(VI4_CLKENB) FM(VI5_DATA1_A) FM(DU_DISP) FM(SCL6_B) F_(0, 0) FM(QSTVB_QVE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
221 #define IP3_11_8 FM(A3) FM(CTS4_N_A) FM(PWM4_A) FM(VI4_DATA12) F_(0, 0) FM(DU_DOTCLKOUT0) FM(HTX3_D) FM(IECLK) FM(LCDOUT12) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
222 #define IP3_15_12 FM(A4) FM(RTS4_N_TANS_A) FM(MSIOF3_SYNC_B) FM(VI4_DATA8) FM(PWM2_B) FM(DU_DG4) FM(RIF2_CLK_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)
223 #define IP3_19_16 FM(A5) FM(SCK4_A) FM(MSIOF3_SCK_B) FM(VI4_DATA9) FM(PWM3_B) F_(0, 0) FM(RIF2_SYNC_B) F_(0, 0) FM(QPOLA) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
224 #define IP3_23_20 FM(A6) FM(RX4_A) FM(MSIOF3_RXD_B) FM(VI4_DATA10) F_(0, 0) F_(0, 0) FM(RIF2_D0_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)
225 #define IP3_27_24 FM(A7) FM(TX4_A) FM(MSIOF3_TXD_B) FM(VI4_DATA11) F_(0, 0) F_(0, 0) FM(RIF2_D1_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)
226 #define IP3_31_28 FM(A8) FM(SDA6_A) FM(RX3_B) FM(HRX4_C) FM(VI5_HSYNC_N_A) FM(DU_HSYNC) FM(VI4_DATA0_B) F_(0, 0) FM(QSTH_QHS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
228 /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 - F */
229 #define IP4_3_0 FM(A9) FM(TX5_A) FM(IRQ3) FM(VI4_DATA16) FM(VI5_VSYNC_N_A) FM(DU_DG7) F_(0, 0) F_(0, 0) FM(LCDOUT15) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
230 #define IP4_7_4 FM(A10) FM(IRQ4) FM(MSIOF2_SYNC_B) FM(VI4_DATA13) FM(VI5_FIELD_A) FM(DU_DG5) FM(FSCLKST2_N_B) F_(0, 0) FM(LCDOUT13) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
231 #define IP4_11_8 FM(A11) FM(SCL6_A) FM(TX3_B) FM(HTX4_C) F_(0, 0) FM(DU_VSYNC) FM(VI4_DATA1_B) F_(0, 0) FM(QSTVA_QVS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
232 #define IP4_15_12 FM(A12) FM(RX5_A) FM(MSIOF2_SS2_B) FM(VI4_DATA17) FM(VI5_DATA3_A) FM(DU_DG6) F_(0, 0) F_(0, 0) FM(LCDOUT14) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
233 #define IP4_19_16 FM(A13) FM(SCK5_A) FM(MSIOF2_SCK_B) FM(VI4_DATA14) FM(HRX4_D) FM(DU_DB2) F_(0, 0) F_(0, 0) FM(LCDOUT2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
234 #define IP4_23_20 FM(A14) FM(MSIOF1_SS1) FM(MSIOF2_RXD_B) FM(VI4_DATA15) FM(HTX4_D) FM(DU_DB3) F_(0, 0) F_(0, 0) FM(LCDOUT3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
235 #define IP4_27_24 FM(A15) FM(MSIOF1_SS2) FM(MSIOF2_TXD_B) FM(VI4_DATA18) FM(VI5_DATA4_A) FM(DU_DB4) F_(0, 0) F_(0, 0) FM(LCDOUT4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
236 #define IP4_31_28 FM(A16) FM(MSIOF1_SYNC) FM(MSIOF2_SS1_B) FM(VI4_DATA19) FM(VI5_DATA5_A) FM(DU_DB5) F_(0, 0) F_(0, 0) FM(LCDOUT5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
237 #define IP5_3_0 FM(A17) FM(MSIOF1_RXD) F_(0, 0) FM(VI4_DATA20) FM(VI5_DATA6_A) FM(DU_DB6) F_(0, 0) F_(0, 0) FM(LCDOUT6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
238 #define IP5_7_4 FM(A18) FM(MSIOF1_TXD) F_(0, 0) FM(VI4_DATA21) FM(VI5_DATA7_A) FM(DU_DB0) F_(0, 0) FM(HRX4_E) FM(LCDOUT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
239 #define IP5_11_8 FM(A19) FM(MSIOF1_SCK) F_(0, 0) FM(VI4_DATA22) FM(VI5_DATA2_A) FM(DU_DB1) F_(0, 0) FM(HTX4_E) FM(LCDOUT1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
240 #define IP5_15_12 FM(CS0_N) FM(SCL5) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR0) FM(VI4_DATA2_B) F_(0, 0) FM(LCDOUT16) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
241 #define IP5_19_16 FM(WE0_N) FM(SDA5) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR1) FM(VI4_DATA3_B) F_(0, 0) FM(LCDOUT17) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
242 #define IP5_23_20 FM(D0) FM(MSIOF3_SCK_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR2) FM(CTS4_N_C) F_(0, 0) FM(LCDOUT18) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
243 #define IP5_27_24 FM(D1) FM(MSIOF3_SYNC_A) FM(SCK3_A) FM(VI4_DATA23) FM(VI5_CLKENB_A) FM(DU_DB7) FM(RTS4_N_TANS_C) F_(0, 0) FM(LCDOUT7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
244 #define IP5_31_28 FM(D2) FM(MSIOF3_RXD_A) FM(RX5_C) F_(0, 0) FM(VI5_DATA14_A) FM(DU_DR3) FM(RX4_C) F_(0, 0) FM(LCDOUT19) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
245 #define IP6_3_0 FM(D3) FM(MSIOF3_TXD_A) FM(TX5_C) F_(0, 0) FM(VI5_DATA15_A) FM(DU_DR4) FM(TX4_C) F_(0, 0) FM(LCDOUT20) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
246 #define IP6_7_4 FM(D4) FM(CANFD1_TX) FM(HSCK3_B) FM(CAN1_TX) FM(RTS3_N_TANS_A) FM(MSIOF3_SS2_A) F_(0, 0) FM(VI5_DATA1_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)
247 #define IP6_11_8 FM(D5) FM(RX3_A) FM(HRX3_B) F_(0, 0) F_(0, 0) FM(DU_DR5) FM(VI4_DATA4_B) F_(0, 0) FM(LCDOUT21) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
248 #define IP6_15_12 FM(D6) FM(TX3_A) FM(HTX3_B) F_(0, 0) F_(0, 0) FM(DU_DR6) FM(VI4_DATA5_B) F_(0, 0) FM(LCDOUT22) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
249 #define IP6_19_16 FM(D7) FM(CANFD1_RX) FM(IRQ5) FM(CAN1_RX) FM(CTS3_N_A) F_(0, 0) F_(0, 0) FM(VI5_DATA2_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)
250 #define IP6_23_20 FM(D8) FM(MSIOF2_SCK_A) FM(SCK4_B) F_(0, 0) FM(VI5_DATA12_A) FM(DU_DR7) FM(RIF3_CLK_B) FM(HCTS3_N_E) FM(LCDOUT23) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
251 #define IP6_27_24 FM(D9) FM(MSIOF2_SYNC_A) F_(0, 0) F_(0, 0) FM(VI5_DATA10_A) FM(DU_DG0) FM(RIF3_SYNC_B) FM(HRX3_E) FM(LCDOUT8) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
252 #define IP6_31_28 FM(D10) FM(MSIOF2_RXD_A) F_(0, 0) F_(0, 0) FM(VI5_DATA13_A) FM(DU_DG1) FM(RIF3_D0_B) FM(HTX3_E) FM(LCDOUT9) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
253 #define IP7_3_0 FM(D11) FM(MSIOF2_TXD_A) F_(0, 0) F_(0, 0) FM(VI5_DATA11_A) FM(DU_DG2) FM(RIF3_D1_B) FM(HRTS3_N_E) FM(LCDOUT10) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
254 #define IP7_7_4 FM(D12) FM(CANFD0_TX) FM(TX4_B) FM(CAN0_TX) FM(VI5_DATA8_A) F_(0, 0) F_(0, 0) FM(VI5_DATA3_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)
255 #define IP7_11_8 FM(D13) FM(CANFD0_RX) FM(RX4_B) FM(CAN0_RX) FM(VI5_DATA9_A) FM(SCL7_B) F_(0, 0) FM(VI5_DATA4_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)
256 #define IP7_15_12 FM(D14) FM(CAN_CLK) FM(HRX3_A) FM(MSIOF2_SS2_A) F_(0, 0) FM(SDA7_B) F_(0, 0) FM(VI5_DATA5_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)
257 #define IP7_19_16 FM(D15) FM(MSIOF2_SS1_A) FM(HTX3_A) FM(MSIOF3_SS1_A) F_(0, 0) FM(DU_DG3) F_(0, 0) F_(0, 0) FM(LCDOUT11) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
258 #define IP7_23_20 FM(SCL4) FM(CS1_N_A26) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DOTCLKIN0) FM(VI4_DATA6_B) FM(VI5_DATA6_B) FM(QCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
259 #define IP7_27_24 FM(SDA4) FM(WE1_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(VI4_DATA7_B) FM(VI5_DATA7_B) FM(QPOLB) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
260 #define IP7_31_28 FM(SD0_CLK) FM(NFDATA8) FM(SCL1_C) FM(HSCK1_B) FM(SDA2_E) FM(FMCLK_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)
262 /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 - F */
263 #define IP8_3_0 FM(SD0_CMD) FM(NFDATA9) F_(0, 0) FM(HRX1_B) F_(0, 0) FM(SPEEDIN_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)
264 #define IP8_7_4 FM(SD0_DAT0) FM(NFDATA10) F_(0, 0) FM(HTX1_B) F_(0, 0) FM(REMOCON_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)
265 #define IP8_11_8 FM(SD0_DAT1) FM(NFDATA11) FM(SDA2_C) FM(HCTS1_N_B) F_(0, 0) FM(FMIN_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)
266 #define IP8_15_12 FM(SD0_DAT2) FM(NFDATA12) FM(SCL2_C) FM(HRTS1_N_B) F_(0, 0) FM(BPFCLK_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)
267 #define IP8_19_16 FM(SD0_DAT3) FM(NFDATA13) FM(SDA1_C) FM(SCL2_E) FM(SPEEDIN_C) FM(REMOCON_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)
268 #define IP8_23_20 FM(SD1_CLK) FM(NFDATA14_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)
269 #define IP8_27_24 FM(SD1_CMD) FM(NFDATA15_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)
270 #define IP8_31_28 FM(SD1_DAT0) FM(NFWP_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)
271 #define IP9_3_0 FM(SD1_DAT1) FM(NFCE_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)
272 #define IP9_7_4 FM(SD1_DAT2) FM(NFALE_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)
273 #define IP9_11_8 FM(SD1_DAT3) FM(NFRB_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)
274 #define IP9_15_12 FM(SD3_CLK) FM(NFWE_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)
275 #define IP9_19_16 FM(SD3_CMD) FM(NFRE_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)
276 #define IP9_23_20 FM(SD3_DAT0) FM(NFDATA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP9_27_24 FM(SD3_DAT1) FM(NFDATA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP9_31_28 FM(SD3_DAT2) FM(NFDATA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP10_3_0 FM(SD3_DAT3) FM(NFDATA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP10_7_4 FM(SD3_DAT4) FM(NFDATA4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP10_11_8 FM(SD3_DAT5) FM(NFDATA5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP10_15_12 FM(SD3_DAT6) FM(NFDATA6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP10_19_16 FM(SD3_DAT7) FM(NFDATA7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 #define IP10_23_20 FM(SD3_DS) FM(NFCLE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
285 #define IP10_27_24 FM(SD0_CD) FM(NFALE_A) FM(SD3_CD) FM(RIF0_CLK_B) FM(SCL2_B) FM(TCLK1_A) FM(SSI_SCK2_B) FM(TS_SCK0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
286 #define IP10_31_28 FM(SD0_WP) FM(NFRB_N_A) FM(SD3_WP) FM(RIF0_D0_B) FM(SDA2_B) FM(TCLK2_A) FM(SSI_WS2_B) FM(TS_SDAT0) 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 IP11_3_0 FM(SD1_CD) FM(NFCE_N_A) FM(SSI_SCK1) FM(RIF0_D1_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDEN0) 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 IP11_7_4 FM(SD1_WP) FM(NFWP_N_A) FM(SSI_WS1) FM(RIF0_SYNC_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0) 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 #define IP11_11_8 FM(RX0_A) FM(HRX1_A) FM(SSI_SCK2_A) FM(RIF1_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SCK1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
290 #define IP11_15_12 FM(TX0_A) FM(HTX1_A) FM(SSI_WS2_A) FM(RIF1_D0) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDAT1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
291 #define IP11_19_16 FM(CTS0_N_A) FM(NFDATA14_A) FM(AUDIO_CLKOUT_A) FM(RIF1_D1) FM(SCIF_CLK_A) FM(FMCLK_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)
292 #define IP11_23_20 FM(RTS0_N_TANS_A) FM(NFDATA15_A) FM(AUDIO_CLKOUT1_A) FM(RIF1_CLK) FM(SCL2_A) FM(FMIN_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)
293 #define IP11_27_24 FM(SCK0_A) FM(HSCK1_A) FM(USB3HS0_ID) FM(RTS1_N_TANS) FM(SDA2_A) FM(FMCLK_C) F_(0, 0) F_(0, 0) FM(USB0_ID) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
294 #define IP11_31_28 FM(RX1) FM(HRX2_B) FM(SSI_SCK9_B) FM(AUDIO_CLKOUT1_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)
296 /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 - F */
297 #define IP12_3_0 FM(TX1) FM(HTX2_B) FM(SSI_WS9_B) FM(AUDIO_CLKOUT3_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)
298 #define IP12_7_4 FM(SCK2_A) FM(HSCK0_A) FM(AUDIO_CLKB_A) FM(CTS1_N) FM(RIF0_CLK_A) FM(REMOCON_A) FM(SCIF_CLK_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)
299 #define IP12_11_8 FM(TX2_A) FM(HRX0_A) FM(AUDIO_CLKOUT2_A) F_(0, 0) FM(SCL1_A) F_(0, 0) FM(FSO_CFE_0_N_A) FM(TS_SDEN1) 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 #define IP12_15_12 FM(RX2_A) FM(HTX0_A) FM(AUDIO_CLKOUT3_A) F_(0, 0) FM(SDA1_A) F_(0, 0) FM(FSO_CFE_1_N_A) FM(TS_SPSYNC1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
301 #define IP12_19_16 FM(MSIOF0_SCK) F_(0, 0) FM(SSI_SCK78) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
302 #define IP12_23_20 FM(MSIOF0_RXD) F_(0, 0) FM(SSI_WS78) F_(0, 0) F_(0, 0) FM(TX2_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)
303 #define IP12_27_24 FM(MSIOF0_TXD) F_(0, 0) FM(SSI_SDATA7) F_(0, 0) F_(0, 0) FM(RX2_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)
304 #define IP12_31_28 FM(MSIOF0_SYNC) FM(AUDIO_CLKOUT_B) FM(SSI_SDATA8) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP13_3_0 FM(MSIOF0_SS1) FM(HRX2_A) FM(SSI_SCK4) FM(HCTS0_N_A) FM(BPFCLK_C) FM(SPEEDIN_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)
306 #define IP13_7_4 FM(MSIOF0_SS2) FM(HTX2_A) FM(SSI_WS4) FM(HRTS0_N_A) FM(FMIN_C) FM(BPFCLK_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)
307 #define IP13_11_8 FM(SSI_SDATA9) F_(0, 0) FM(AUDIO_CLKC_A) FM(SCK1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP13_15_12 FM(MLB_CLK) FM(RX0_B) F_(0, 0) FM(RIF0_D0_A) FM(SCL1_B) FM(TCLK1_B) F_(0, 0) F_(0, 0) FM(SIM0_RST_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
309 #define IP13_19_16 FM(MLB_SIG) FM(SCK0_B) F_(0, 0) FM(RIF0_D1_A) FM(SDA1_B) FM(TCLK2_B) F_(0, 0) F_(0, 0) FM(SIM0_D_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
310 #define IP13_23_20 FM(MLB_DAT) FM(TX0_B) F_(0, 0) FM(RIF0_SYNC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SIM0_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
311 #define IP13_27_24 FM(SSI_SCK01239) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
312 #define IP13_31_28 FM(SSI_WS01239) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP14_3_0 FM(SSI_SDATA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP14_7_4 FM(SSI_SDATA1) FM(AUDIO_CLKC_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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)
315 #define IP14_11_8 FM(SSI_SDATA2) FM(AUDIO_CLKOUT2_B) FM(SSI_SCK9_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM1_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)
316 #define IP14_15_12 FM(SSI_SCK349) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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)
317 #define IP14_19_16 FM(SSI_WS349) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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)
318 #define IP14_23_20 FM(SSI_SDATA3) FM(AUDIO_CLKOUT1_C) FM(AUDIO_CLKB_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM4_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)
319 #define IP14_27_24 FM(SSI_SDATA4) F_(0, 0) FM(SSI_WS9_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM5_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)
320 #define IP14_31_28 FM(SSI_SCK5) FM(HRX0_B) F_(0, 0) FM(USB0_PWEN_B) FM(SCL2_D) F_(0, 0) FM(PWM6_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)
321 #define IP15_3_0 FM(SSI_WS5) FM(HTX0_B) F_(0, 0) FM(USB0_OVC_B) FM(SDA2_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
322 #define IP15_7_4 FM(SSI_SDATA5) FM(HSCK0_B) FM(AUDIO_CLKB_C) FM(TPU0TO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP15_11_8 FM(SSI_SCK6) FM(HSCK2_A) FM(AUDIO_CLKC_C) FM(TPU0TO1) F_(0, 0) F_(0, 0) FM(FSO_CFE_0_N_B) F_(0, 0) FM(SIM0_RST_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
324 #define IP15_15_12 FM(SSI_WS6) FM(HCTS2_N_A) FM(AUDIO_CLKOUT2_C) FM(TPU0TO2) FM(SDA1_D) F_(0, 0) FM(FSO_CFE_1_N_B) F_(0, 0) FM(SIM0_D_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
325 #define IP15_19_16 FM(SSI_SDATA6) FM(HRTS2_N_A) FM(AUDIO_CLKOUT3_C) FM(TPU0TO3) FM(SCL1_D) F_(0, 0) FM(FSO_TOE_N_B) F_(0, 0) FM(SIM0_CLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
326 #define IP15_23_20 FM(AUDIO_CLKA) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP15_27_24 FM(USB30_PWEN) FM(USB0_PWEN_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)
328 #define IP15_31_28 FM(USB30_OVC) FM(USB0_OVC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(FSO_TOE_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)
330 #define PINMUX_GPSR \
344 GPSR1_19 GPSR2_19 GPSR5_19 \
345 GPSR1_18 GPSR2_18 GPSR5_18 \
346 GPSR0_17 GPSR1_17 GPSR2_17 GPSR5_17 GPSR6_17 \
347 GPSR0_16 GPSR1_16 GPSR2_16 GPSR5_16 GPSR6_16 \
348 GPSR0_15 GPSR1_15 GPSR2_15 GPSR3_15 GPSR5_15 GPSR6_15 \
349 GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR5_14 GPSR6_14 \
350 GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR5_13 GPSR6_13 \
351 GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR5_12 GPSR6_12 \
352 GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR5_11 GPSR6_11 \
353 GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 \
354 GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 \
355 GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 \
356 GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 \
357 GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 \
358 GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 \
359 GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 \
360 GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 \
361 GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 \
362 GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 \
363 GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0
365 #define PINMUX_IPSR \
367 FM(IP0_3_0) IP0_3_0 FM(IP1_3_0) IP1_3_0 FM(IP2_3_0) IP2_3_0 FM(IP3_3_0) IP3_3_0 \
368 FM(IP0_7_4) IP0_7_4 FM(IP1_7_4) IP1_7_4 FM(IP2_7_4) IP2_7_4 FM(IP3_7_4) IP3_7_4 \
369 FM(IP0_11_8) IP0_11_8 FM(IP1_11_8) IP1_11_8 FM(IP2_11_8) IP2_11_8 FM(IP3_11_8) IP3_11_8 \
370 FM(IP0_15_12) IP0_15_12 FM(IP1_15_12) IP1_15_12 FM(IP2_15_12) IP2_15_12 FM(IP3_15_12) IP3_15_12 \
371 FM(IP0_19_16) IP0_19_16 FM(IP1_19_16) IP1_19_16 FM(IP2_19_16) IP2_19_16 FM(IP3_19_16) IP3_19_16 \
372 FM(IP0_23_20) IP0_23_20 FM(IP1_23_20) IP1_23_20 FM(IP2_23_20) IP2_23_20 FM(IP3_23_20) IP3_23_20 \
373 FM(IP0_27_24) IP0_27_24 FM(IP1_27_24) IP1_27_24 FM(IP2_27_24) IP2_27_24 FM(IP3_27_24) IP3_27_24 \
374 FM(IP0_31_28) IP0_31_28 FM(IP1_31_28) IP1_31_28 FM(IP2_31_28) IP2_31_28 FM(IP3_31_28) IP3_31_28 \
376 FM(IP4_3_0) IP4_3_0 FM(IP5_3_0) IP5_3_0 FM(IP6_3_0) IP6_3_0 FM(IP7_3_0) IP7_3_0 \
377 FM(IP4_7_4) IP4_7_4 FM(IP5_7_4) IP5_7_4 FM(IP6_7_4) IP6_7_4 FM(IP7_7_4) IP7_7_4 \
378 FM(IP4_11_8) IP4_11_8 FM(IP5_11_8) IP5_11_8 FM(IP6_11_8) IP6_11_8 FM(IP7_11_8) IP7_11_8 \
379 FM(IP4_15_12) IP4_15_12 FM(IP5_15_12) IP5_15_12 FM(IP6_15_12) IP6_15_12 FM(IP7_15_12) IP7_15_12 \
380 FM(IP4_19_16) IP4_19_16 FM(IP5_19_16) IP5_19_16 FM(IP6_19_16) IP6_19_16 FM(IP7_19_16) IP7_19_16 \
381 FM(IP4_23_20) IP4_23_20 FM(IP5_23_20) IP5_23_20 FM(IP6_23_20) IP6_23_20 FM(IP7_23_20) IP7_23_20 \
382 FM(IP4_27_24) IP4_27_24 FM(IP5_27_24) IP5_27_24 FM(IP6_27_24) IP6_27_24 FM(IP7_27_24) IP7_27_24 \
383 FM(IP4_31_28) IP4_31_28 FM(IP5_31_28) IP5_31_28 FM(IP6_31_28) IP6_31_28 FM(IP7_31_28) IP7_31_28 \
385 FM(IP8_3_0) IP8_3_0 FM(IP9_3_0) IP9_3_0 FM(IP10_3_0) IP10_3_0 FM(IP11_3_0) IP11_3_0 \
386 FM(IP8_7_4) IP8_7_4 FM(IP9_7_4) IP9_7_4 FM(IP10_7_4) IP10_7_4 FM(IP11_7_4) IP11_7_4 \
387 FM(IP8_11_8) IP8_11_8 FM(IP9_11_8) IP9_11_8 FM(IP10_11_8) IP10_11_8 FM(IP11_11_8) IP11_11_8 \
388 FM(IP8_15_12) IP8_15_12 FM(IP9_15_12) IP9_15_12 FM(IP10_15_12) IP10_15_12 FM(IP11_15_12) IP11_15_12 \
389 FM(IP8_19_16) IP8_19_16 FM(IP9_19_16) IP9_19_16 FM(IP10_19_16) IP10_19_16 FM(IP11_19_16) IP11_19_16 \
390 FM(IP8_23_20) IP8_23_20 FM(IP9_23_20) IP9_23_20 FM(IP10_23_20) IP10_23_20 FM(IP11_23_20) IP11_23_20 \
391 FM(IP8_27_24) IP8_27_24 FM(IP9_27_24) IP9_27_24 FM(IP10_27_24) IP10_27_24 FM(IP11_27_24) IP11_27_24 \
392 FM(IP8_31_28) IP8_31_28 FM(IP9_31_28) IP9_31_28 FM(IP10_31_28) IP10_31_28 FM(IP11_31_28) IP11_31_28 \
394 FM(IP12_3_0) IP12_3_0 FM(IP13_3_0) IP13_3_0 FM(IP14_3_0) IP14_3_0 FM(IP15_3_0) IP15_3_0 \
395 FM(IP12_7_4) IP12_7_4 FM(IP13_7_4) IP13_7_4 FM(IP14_7_4) IP14_7_4 FM(IP15_7_4) IP15_7_4 \
396 FM(IP12_11_8) IP12_11_8 FM(IP13_11_8) IP13_11_8 FM(IP14_11_8) IP14_11_8 FM(IP15_11_8) IP15_11_8 \
397 FM(IP12_15_12) IP12_15_12 FM(IP13_15_12) IP13_15_12 FM(IP14_15_12) IP14_15_12 FM(IP15_15_12) IP15_15_12 \
398 FM(IP12_19_16) IP12_19_16 FM(IP13_19_16) IP13_19_16 FM(IP14_19_16) IP14_19_16 FM(IP15_19_16) IP15_19_16 \
399 FM(IP12_23_20) IP12_23_20 FM(IP13_23_20) IP13_23_20 FM(IP14_23_20) IP14_23_20 FM(IP15_23_20) IP15_23_20 \
400 FM(IP12_27_24) IP12_27_24 FM(IP13_27_24) IP13_27_24 FM(IP14_27_24) IP14_27_24 FM(IP15_27_24) IP15_27_24 \
401 FM(IP12_31_28) IP12_31_28 FM(IP13_31_28) IP13_31_28 FM(IP14_31_28) IP14_31_28 FM(IP15_31_28) IP15_31_28
403 /* The bit numbering in MOD_SEL fields is reversed */
404 #define REV4(f0, f1, f2, f3) f0 f2 f1 f3
405 #define REV8(f0, f1, f2, f3, f4, f5, f6, f7) f0 f4 f2 f6 f1 f5 f3 f7
407 /* MOD_SEL0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
408 #define MOD_SEL0_30_29 REV4(FM(SEL_ADGB_0), FM(SEL_ADGB_1), FM(SEL_ADGB_2), F_(0, 0))
409 #define MOD_SEL0_28 FM(SEL_DRIF0_0) FM(SEL_DRIF0_1)
410 #define MOD_SEL0_27_26 REV4(FM(SEL_FM_0), FM(SEL_FM_1), FM(SEL_FM_2), F_(0, 0))
411 #define MOD_SEL0_25 FM(SEL_FSO_0) FM(SEL_FSO_1)
412 #define MOD_SEL0_24 FM(SEL_HSCIF0_0) FM(SEL_HSCIF0_1)
413 #define MOD_SEL0_23 FM(SEL_HSCIF1_0) FM(SEL_HSCIF1_1)
414 #define MOD_SEL0_22 FM(SEL_HSCIF2_0) FM(SEL_HSCIF2_1)
415 #define MOD_SEL0_21_20 REV4(FM(SEL_I2C1_0), FM(SEL_I2C1_1), FM(SEL_I2C1_2), FM(SEL_I2C1_3))
416 #define MOD_SEL0_19_18_17 REV8(FM(SEL_I2C2_0), FM(SEL_I2C2_1), FM(SEL_I2C2_2), FM(SEL_I2C2_3), FM(SEL_I2C2_4), F_(0, 0), F_(0, 0), F_(0, 0))
417 #define MOD_SEL0_16 FM(SEL_NDFC_0) FM(SEL_NDFC_1)
418 #define MOD_SEL0_15 FM(SEL_PWM0_0) FM(SEL_PWM0_1)
419 #define MOD_SEL0_14 FM(SEL_PWM1_0) FM(SEL_PWM1_1)
420 #define MOD_SEL0_13_12 REV4(FM(SEL_PWM2_0), FM(SEL_PWM2_1), FM(SEL_PWM2_2), F_(0, 0))
421 #define MOD_SEL0_11_10 REV4(FM(SEL_PWM3_0), FM(SEL_PWM3_1), FM(SEL_PWM3_2), F_(0, 0))
422 #define MOD_SEL0_9 FM(SEL_PWM4_0) FM(SEL_PWM4_1)
423 #define MOD_SEL0_8 FM(SEL_PWM5_0) FM(SEL_PWM5_1)
424 #define MOD_SEL0_7 FM(SEL_PWM6_0) FM(SEL_PWM6_1)
425 #define MOD_SEL0_6_5 REV4(FM(SEL_REMOCON_0), FM(SEL_REMOCON_1), FM(SEL_REMOCON_2), F_(0, 0))
426 #define MOD_SEL0_4 FM(SEL_SCIF_0) FM(SEL_SCIF_1)
427 #define MOD_SEL0_3 FM(SEL_SCIF0_0) FM(SEL_SCIF0_1)
428 #define MOD_SEL0_2 FM(SEL_SCIF2_0) FM(SEL_SCIF2_1)
429 #define MOD_SEL0_1_0 REV4(FM(SEL_SPEED_PULSE_IF_0), FM(SEL_SPEED_PULSE_IF_1), FM(SEL_SPEED_PULSE_IF_2), F_(0, 0))
431 /* MOD_SEL1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
432 #define MOD_SEL1_31 FM(SEL_SIMCARD_0) FM(SEL_SIMCARD_1)
433 #define MOD_SEL1_30 FM(SEL_SSI2_0) FM(SEL_SSI2_1)
434 #define MOD_SEL1_29 FM(SEL_TIMER_TMU_0) FM(SEL_TIMER_TMU_1)
435 #define MOD_SEL1_28 FM(SEL_USB_20_CH0_0) FM(SEL_USB_20_CH0_1)
436 #define MOD_SEL1_26 FM(SEL_DRIF2_0) FM(SEL_DRIF2_1)
437 #define MOD_SEL1_25 FM(SEL_DRIF3_0) FM(SEL_DRIF3_1)
438 #define MOD_SEL1_24_23_22 REV8(FM(SEL_HSCIF3_0), FM(SEL_HSCIF3_1), FM(SEL_HSCIF3_2), FM(SEL_HSCIF3_3), FM(SEL_HSCIF3_4), F_(0, 0), F_(0, 0), F_(0, 0))
439 #define MOD_SEL1_21_20_19 REV8(FM(SEL_HSCIF4_0), FM(SEL_HSCIF4_1), FM(SEL_HSCIF4_2), FM(SEL_HSCIF4_3), FM(SEL_HSCIF4_4), F_(0, 0), F_(0, 0), F_(0, 0))
440 #define MOD_SEL1_18 FM(SEL_I2C6_0) FM(SEL_I2C6_1)
441 #define MOD_SEL1_17 FM(SEL_I2C7_0) FM(SEL_I2C7_1)
442 #define MOD_SEL1_16 FM(SEL_MSIOF2_0) FM(SEL_MSIOF2_1)
443 #define MOD_SEL1_15 FM(SEL_MSIOF3_0) FM(SEL_MSIOF3_1)
444 #define MOD_SEL1_14_13 REV4(FM(SEL_SCIF3_0), FM(SEL_SCIF3_1), FM(SEL_SCIF3_2), F_(0, 0))
445 #define MOD_SEL1_12_11 REV4(FM(SEL_SCIF4_0), FM(SEL_SCIF4_1), FM(SEL_SCIF4_2), F_(0, 0))
446 #define MOD_SEL1_10_9 REV4(FM(SEL_SCIF5_0), FM(SEL_SCIF5_1), FM(SEL_SCIF5_2), F_(0, 0))
447 #define MOD_SEL1_8 FM(SEL_VIN4_0) FM(SEL_VIN4_1)
448 #define MOD_SEL1_7 FM(SEL_VIN5_0) FM(SEL_VIN5_1)
449 #define MOD_SEL1_6_5 REV4(FM(SEL_ADGC_0), FM(SEL_ADGC_1), FM(SEL_ADGC_2), F_(0, 0))
450 #define MOD_SEL1_4 FM(SEL_SSI9_0) FM(SEL_SSI9_1)
452 #define PINMUX_MOD_SELS \
455 MOD_SEL0_30_29 MOD_SEL1_30 \
457 MOD_SEL0_28 MOD_SEL1_28 \
460 MOD_SEL0_25 MOD_SEL1_25 \
461 MOD_SEL0_24 MOD_SEL1_24_23_22 \
464 MOD_SEL0_21_20 MOD_SEL1_21_20_19 \
465 MOD_SEL0_19_18_17 MOD_SEL1_18 \
467 MOD_SEL0_16 MOD_SEL1_16 \
468 MOD_SEL0_15 MOD_SEL1_15 \
469 MOD_SEL0_14 MOD_SEL1_14_13 \
475 MOD_SEL0_8 MOD_SEL1_8 \
476 MOD_SEL0_7 MOD_SEL1_7 \
477 MOD_SEL0_6_5 MOD_SEL1_6_5 \
478 MOD_SEL0_4 MOD_SEL1_4 \
484 * These pins are not able to be muxed but have other properties
485 * that can be set, such as pull-up/pull-down enable.
487 #define PINMUX_STATIC \
488 FM(AVB_TX_CTL) FM(AVB_TXC) FM(AVB_TD0) FM(AVB_TD1) FM(AVB_TD2) \
490 FM(PRESETOUT_N) FM(FSCLKST_N) FM(TRST_N) FM(TCK) FM(TMS) FM(TDI) \
502 #define FM(x) FN_##x,
503 PINMUX_FUNCTION_BEGIN
,
513 #define FM(x) x##_MARK,
524 static const u16 pinmux_data
[] = {
525 PINMUX_DATA_GP_ALL(),
527 PINMUX_SINGLE(CLKOUT
),
528 PINMUX_SINGLE(AVB_PHY_INT
),
529 PINMUX_SINGLE(AVB_RD3
),
530 PINMUX_SINGLE(AVB_RXC
),
531 PINMUX_SINGLE(AVB_RX_CTL
),
532 PINMUX_SINGLE(QSPI0_SSL
),
535 PINMUX_IPSR_GPSR(IP0_3_0
, QSPI0_SPCLK
),
536 PINMUX_IPSR_MSEL(IP0_3_0
, HSCK4_A
, SEL_HSCIF4_0
),
538 PINMUX_IPSR_GPSR(IP0_7_4
, QSPI0_MOSI_IO0
),
539 PINMUX_IPSR_MSEL(IP0_7_4
, HCTS4_N_A
, SEL_HSCIF4_0
),
541 PINMUX_IPSR_GPSR(IP0_11_8
, QSPI0_MISO_IO1
),
542 PINMUX_IPSR_MSEL(IP0_11_8
, HRTS4_N_A
, SEL_HSCIF4_0
),
544 PINMUX_IPSR_GPSR(IP0_15_12
, QSPI0_IO2
),
545 PINMUX_IPSR_GPSR(IP0_15_12
, HTX4_A
),
547 PINMUX_IPSR_GPSR(IP0_19_16
, QSPI0_IO3
),
548 PINMUX_IPSR_MSEL(IP0_19_16
, HRX4_A
, SEL_HSCIF4_0
),
550 PINMUX_IPSR_GPSR(IP0_23_20
, QSPI1_SPCLK
),
551 PINMUX_IPSR_MSEL(IP0_23_20
, RIF2_CLK_A
, SEL_DRIF2_0
),
552 PINMUX_IPSR_MSEL(IP0_23_20
, HSCK4_B
, SEL_HSCIF4_1
),
553 PINMUX_IPSR_MSEL(IP0_23_20
, VI4_DATA0_A
, SEL_VIN4_0
),
555 PINMUX_IPSR_GPSR(IP0_27_24
, QSPI1_MOSI_IO0
),
556 PINMUX_IPSR_MSEL(IP0_27_24
, RIF2_SYNC_A
, SEL_DRIF2_0
),
557 PINMUX_IPSR_GPSR(IP0_27_24
, HTX4_B
),
558 PINMUX_IPSR_MSEL(IP0_27_24
, VI4_DATA1_A
, SEL_VIN4_0
),
560 PINMUX_IPSR_GPSR(IP0_31_28
, QSPI1_MISO_IO1
),
561 PINMUX_IPSR_MSEL(IP0_31_28
, RIF2_D0_A
, SEL_DRIF2_0
),
562 PINMUX_IPSR_MSEL(IP0_31_28
, HRX4_B
, SEL_HSCIF4_1
),
563 PINMUX_IPSR_MSEL(IP0_31_28
, VI4_DATA2_A
, SEL_VIN4_0
),
566 PINMUX_IPSR_GPSR(IP1_3_0
, QSPI1_IO2
),
567 PINMUX_IPSR_MSEL(IP1_3_0
, RIF2_D1_A
, SEL_DRIF2_0
),
568 PINMUX_IPSR_GPSR(IP1_3_0
, HTX3_C
),
569 PINMUX_IPSR_MSEL(IP1_3_0
, VI4_DATA3_A
, SEL_VIN4_0
),
571 PINMUX_IPSR_GPSR(IP1_7_4
, QSPI1_IO3
),
572 PINMUX_IPSR_MSEL(IP1_7_4
, RIF3_CLK_A
, SEL_DRIF3_0
),
573 PINMUX_IPSR_MSEL(IP1_7_4
, HRX3_C
, SEL_HSCIF3_2
),
574 PINMUX_IPSR_MSEL(IP1_7_4
, VI4_DATA4_A
, SEL_VIN4_0
),
576 PINMUX_IPSR_GPSR(IP1_11_8
, QSPI1_SSL
),
577 PINMUX_IPSR_MSEL(IP1_11_8
, RIF3_SYNC_A
, SEL_DRIF3_0
),
578 PINMUX_IPSR_MSEL(IP1_11_8
, HSCK3_C
, SEL_HSCIF3_2
),
579 PINMUX_IPSR_MSEL(IP1_11_8
, VI4_DATA5_A
, SEL_VIN4_0
),
581 PINMUX_IPSR_GPSR(IP1_15_12
, RPC_INT_N
),
582 PINMUX_IPSR_MSEL(IP1_15_12
, RIF3_D0_A
, SEL_DRIF3_0
),
583 PINMUX_IPSR_MSEL(IP1_15_12
, HCTS3_N_C
, SEL_HSCIF3_2
),
584 PINMUX_IPSR_MSEL(IP1_15_12
, VI4_DATA6_A
, SEL_VIN4_0
),
586 PINMUX_IPSR_GPSR(IP1_19_16
, RPC_RESET_N
),
587 PINMUX_IPSR_MSEL(IP1_19_16
, RIF3_D1_A
, SEL_DRIF3_0
),
588 PINMUX_IPSR_MSEL(IP1_19_16
, HRTS3_N_C
, SEL_HSCIF3_2
),
589 PINMUX_IPSR_MSEL(IP1_19_16
, VI4_DATA7_A
, SEL_VIN4_0
),
591 PINMUX_IPSR_GPSR(IP1_23_20
, AVB_RD0
),
593 PINMUX_IPSR_GPSR(IP1_27_24
, AVB_RD1
),
595 PINMUX_IPSR_GPSR(IP1_31_28
, AVB_RD2
),
598 PINMUX_IPSR_GPSR(IP2_3_0
, AVB_TXCREFCLK
),
600 PINMUX_IPSR_GPSR(IP2_7_4
, AVB_MDIO
),
602 PINMUX_IPSR_GPSR(IP2_11_8
, AVB_MDC
),
604 PINMUX_IPSR_GPSR(IP2_15_12
, BS_N
),
605 PINMUX_IPSR_MSEL(IP2_15_12
, PWM0_A
, SEL_PWM0_0
),
606 PINMUX_IPSR_GPSR(IP2_15_12
, AVB_MAGIC
),
607 PINMUX_IPSR_GPSR(IP2_15_12
, VI4_CLK
),
608 PINMUX_IPSR_GPSR(IP2_15_12
, TX3_C
),
609 PINMUX_IPSR_MSEL(IP2_15_12
, VI5_CLK_B
, SEL_VIN5_1
),
611 PINMUX_IPSR_GPSR(IP2_19_16
, RD_N
),
612 PINMUX_IPSR_MSEL(IP2_19_16
, PWM1_A
, SEL_PWM1_0
),
613 PINMUX_IPSR_GPSR(IP2_19_16
, AVB_LINK
),
614 PINMUX_IPSR_GPSR(IP2_19_16
, VI4_FIELD
),
615 PINMUX_IPSR_MSEL(IP2_19_16
, RX3_C
, SEL_SCIF3_2
),
616 PINMUX_IPSR_GPSR(IP2_19_16
, FSCLKST2_N_A
),
617 PINMUX_IPSR_MSEL(IP2_19_16
, VI5_DATA0_B
, SEL_VIN5_1
),
619 PINMUX_IPSR_GPSR(IP2_23_20
, RD_WR_N
),
620 PINMUX_IPSR_MSEL(IP2_23_20
, SCL7_A
, SEL_I2C7_0
),
621 PINMUX_IPSR_GPSR(IP2_23_20
, AVB_AVTP_MATCH_A
),
622 PINMUX_IPSR_GPSR(IP2_23_20
, VI4_VSYNC_N
),
623 PINMUX_IPSR_GPSR(IP2_23_20
, TX5_B
),
624 PINMUX_IPSR_MSEL(IP2_23_20
, SCK3_C
, SEL_SCIF3_2
),
625 PINMUX_IPSR_MSEL(IP2_23_20
, PWM5_A
, SEL_PWM5_0
),
627 PINMUX_IPSR_GPSR(IP2_27_24
, EX_WAIT0
),
628 PINMUX_IPSR_MSEL(IP2_27_24
, SDA7_A
, SEL_I2C7_0
),
629 PINMUX_IPSR_GPSR(IP2_27_24
, AVB_AVTP_CAPTURE_A
),
630 PINMUX_IPSR_GPSR(IP2_27_24
, VI4_HSYNC_N
),
631 PINMUX_IPSR_MSEL(IP2_27_24
, RX5_B
, SEL_SCIF5_1
),
632 PINMUX_IPSR_MSEL(IP2_27_24
, PWM6_A
, SEL_PWM6_0
),
634 PINMUX_IPSR_GPSR(IP2_31_28
, A0
),
635 PINMUX_IPSR_GPSR(IP2_31_28
, IRQ0
),
636 PINMUX_IPSR_MSEL(IP2_31_28
, PWM2_A
, SEL_PWM2_0
),
637 PINMUX_IPSR_MSEL(IP2_31_28
, MSIOF3_SS1_B
, SEL_MSIOF3_1
),
638 PINMUX_IPSR_MSEL(IP2_31_28
, VI5_CLK_A
, SEL_VIN5_0
),
639 PINMUX_IPSR_GPSR(IP2_31_28
, DU_CDE
),
640 PINMUX_IPSR_MSEL(IP2_31_28
, HRX3_D
, SEL_HSCIF3_3
),
641 PINMUX_IPSR_GPSR(IP2_31_28
, IERX
),
642 PINMUX_IPSR_GPSR(IP2_31_28
, QSTB_QHE
),
645 PINMUX_IPSR_GPSR(IP3_3_0
, A1
),
646 PINMUX_IPSR_GPSR(IP3_3_0
, IRQ1
),
647 PINMUX_IPSR_MSEL(IP3_3_0
, PWM3_A
, SEL_PWM3_0
),
648 PINMUX_IPSR_GPSR(IP3_3_0
, DU_DOTCLKIN1
),
649 PINMUX_IPSR_MSEL(IP3_3_0
, VI5_DATA0_A
, SEL_VIN5_0
),
650 PINMUX_IPSR_GPSR(IP3_3_0
, DU_DISP_CDE
),
651 PINMUX_IPSR_MSEL(IP3_3_0
, SDA6_B
, SEL_I2C6_1
),
652 PINMUX_IPSR_GPSR(IP3_3_0
, IETX
),
653 PINMUX_IPSR_GPSR(IP3_3_0
, QCPV_QDE
),
655 PINMUX_IPSR_GPSR(IP3_7_4
, A2
),
656 PINMUX_IPSR_GPSR(IP3_7_4
, IRQ2
),
657 PINMUX_IPSR_GPSR(IP3_7_4
, AVB_AVTP_PPS
),
658 PINMUX_IPSR_GPSR(IP3_7_4
, VI4_CLKENB
),
659 PINMUX_IPSR_MSEL(IP3_7_4
, VI5_DATA1_A
, SEL_VIN5_0
),
660 PINMUX_IPSR_GPSR(IP3_7_4
, DU_DISP
),
661 PINMUX_IPSR_MSEL(IP3_7_4
, SCL6_B
, SEL_I2C6_1
),
662 PINMUX_IPSR_GPSR(IP3_7_4
, QSTVB_QVE
),
664 PINMUX_IPSR_GPSR(IP3_11_8
, A3
),
665 PINMUX_IPSR_MSEL(IP3_11_8
, CTS4_N_A
, SEL_SCIF4_0
),
666 PINMUX_IPSR_MSEL(IP3_11_8
, PWM4_A
, SEL_PWM4_0
),
667 PINMUX_IPSR_GPSR(IP3_11_8
, VI4_DATA12
),
668 PINMUX_IPSR_GPSR(IP3_11_8
, DU_DOTCLKOUT0
),
669 PINMUX_IPSR_GPSR(IP3_11_8
, HTX3_D
),
670 PINMUX_IPSR_GPSR(IP3_11_8
, IECLK
),
671 PINMUX_IPSR_GPSR(IP3_11_8
, LCDOUT12
),
673 PINMUX_IPSR_GPSR(IP3_15_12
, A4
),
674 PINMUX_IPSR_MSEL(IP3_15_12
, RTS4_N_TANS_A
, SEL_SCIF4_0
),
675 PINMUX_IPSR_MSEL(IP3_15_12
, MSIOF3_SYNC_B
, SEL_MSIOF3_1
),
676 PINMUX_IPSR_GPSR(IP3_15_12
, VI4_DATA8
),
677 PINMUX_IPSR_MSEL(IP3_15_12
, PWM2_B
, SEL_PWM2_1
),
678 PINMUX_IPSR_GPSR(IP3_15_12
, DU_DG4
),
679 PINMUX_IPSR_MSEL(IP3_15_12
, RIF2_CLK_B
, SEL_DRIF2_1
),
681 PINMUX_IPSR_GPSR(IP3_19_16
, A5
),
682 PINMUX_IPSR_MSEL(IP3_19_16
, SCK4_A
, SEL_SCIF4_0
),
683 PINMUX_IPSR_MSEL(IP3_19_16
, MSIOF3_SCK_B
, SEL_MSIOF3_1
),
684 PINMUX_IPSR_GPSR(IP3_19_16
, VI4_DATA9
),
685 PINMUX_IPSR_MSEL(IP3_19_16
, PWM3_B
, SEL_PWM3_1
),
686 PINMUX_IPSR_MSEL(IP3_19_16
, RIF2_SYNC_B
, SEL_DRIF2_1
),
687 PINMUX_IPSR_GPSR(IP3_19_16
, QPOLA
),
689 PINMUX_IPSR_GPSR(IP3_23_20
, A6
),
690 PINMUX_IPSR_MSEL(IP3_23_20
, RX4_A
, SEL_SCIF4_0
),
691 PINMUX_IPSR_MSEL(IP3_23_20
, MSIOF3_RXD_B
, SEL_MSIOF3_1
),
692 PINMUX_IPSR_GPSR(IP3_23_20
, VI4_DATA10
),
693 PINMUX_IPSR_MSEL(IP3_23_20
, RIF2_D0_B
, SEL_DRIF2_1
),
695 PINMUX_IPSR_GPSR(IP3_27_24
, A7
),
696 PINMUX_IPSR_GPSR(IP3_27_24
, TX4_A
),
697 PINMUX_IPSR_GPSR(IP3_27_24
, MSIOF3_TXD_B
),
698 PINMUX_IPSR_GPSR(IP3_27_24
, VI4_DATA11
),
699 PINMUX_IPSR_MSEL(IP3_27_24
, RIF2_D1_B
, SEL_DRIF2_1
),
701 PINMUX_IPSR_GPSR(IP3_31_28
, A8
),
702 PINMUX_IPSR_MSEL(IP3_31_28
, SDA6_A
, SEL_I2C6_0
),
703 PINMUX_IPSR_MSEL(IP3_31_28
, RX3_B
, SEL_SCIF3_1
),
704 PINMUX_IPSR_MSEL(IP3_31_28
, HRX4_C
, SEL_HSCIF4_2
),
705 PINMUX_IPSR_MSEL(IP3_31_28
, VI5_HSYNC_N_A
, SEL_VIN5_0
),
706 PINMUX_IPSR_GPSR(IP3_31_28
, DU_HSYNC
),
707 PINMUX_IPSR_MSEL(IP3_31_28
, VI4_DATA0_B
, SEL_VIN4_1
),
708 PINMUX_IPSR_GPSR(IP3_31_28
, QSTH_QHS
),
711 PINMUX_IPSR_GPSR(IP4_3_0
, A9
),
712 PINMUX_IPSR_GPSR(IP4_3_0
, TX5_A
),
713 PINMUX_IPSR_GPSR(IP4_3_0
, IRQ3
),
714 PINMUX_IPSR_GPSR(IP4_3_0
, VI4_DATA16
),
715 PINMUX_IPSR_MSEL(IP4_3_0
, VI5_VSYNC_N_A
, SEL_VIN5_0
),
716 PINMUX_IPSR_GPSR(IP4_3_0
, DU_DG7
),
717 PINMUX_IPSR_GPSR(IP4_3_0
, LCDOUT15
),
719 PINMUX_IPSR_GPSR(IP4_7_4
, A10
),
720 PINMUX_IPSR_GPSR(IP4_7_4
, IRQ4
),
721 PINMUX_IPSR_MSEL(IP4_7_4
, MSIOF2_SYNC_B
, SEL_MSIOF2_1
),
722 PINMUX_IPSR_GPSR(IP4_7_4
, VI4_DATA13
),
723 PINMUX_IPSR_MSEL(IP4_7_4
, VI5_FIELD_A
, SEL_VIN5_0
),
724 PINMUX_IPSR_GPSR(IP4_7_4
, DU_DG5
),
725 PINMUX_IPSR_GPSR(IP4_7_4
, FSCLKST2_N_B
),
726 PINMUX_IPSR_GPSR(IP4_7_4
, LCDOUT13
),
728 PINMUX_IPSR_GPSR(IP4_11_8
, A11
),
729 PINMUX_IPSR_MSEL(IP4_11_8
, SCL6_A
, SEL_I2C6_0
),
730 PINMUX_IPSR_GPSR(IP4_11_8
, TX3_B
),
731 PINMUX_IPSR_GPSR(IP4_11_8
, HTX4_C
),
732 PINMUX_IPSR_GPSR(IP4_11_8
, DU_VSYNC
),
733 PINMUX_IPSR_MSEL(IP4_11_8
, VI4_DATA1_B
, SEL_VIN4_1
),
734 PINMUX_IPSR_GPSR(IP4_11_8
, QSTVA_QVS
),
736 PINMUX_IPSR_GPSR(IP4_15_12
, A12
),
737 PINMUX_IPSR_MSEL(IP4_15_12
, RX5_A
, SEL_SCIF5_0
),
738 PINMUX_IPSR_GPSR(IP4_15_12
, MSIOF2_SS2_B
),
739 PINMUX_IPSR_GPSR(IP4_15_12
, VI4_DATA17
),
740 PINMUX_IPSR_MSEL(IP4_15_12
, VI5_DATA3_A
, SEL_VIN5_0
),
741 PINMUX_IPSR_GPSR(IP4_15_12
, DU_DG6
),
742 PINMUX_IPSR_GPSR(IP4_15_12
, LCDOUT14
),
744 PINMUX_IPSR_GPSR(IP4_19_16
, A13
),
745 PINMUX_IPSR_MSEL(IP4_19_16
, SCK5_A
, SEL_SCIF5_0
),
746 PINMUX_IPSR_MSEL(IP4_19_16
, MSIOF2_SCK_B
, SEL_MSIOF2_1
),
747 PINMUX_IPSR_GPSR(IP4_19_16
, VI4_DATA14
),
748 PINMUX_IPSR_MSEL(IP4_19_16
, HRX4_D
, SEL_HSCIF4_3
),
749 PINMUX_IPSR_GPSR(IP4_19_16
, DU_DB2
),
750 PINMUX_IPSR_GPSR(IP4_19_16
, LCDOUT2
),
752 PINMUX_IPSR_GPSR(IP4_23_20
, A14
),
753 PINMUX_IPSR_GPSR(IP4_23_20
, MSIOF1_SS1
),
754 PINMUX_IPSR_MSEL(IP4_23_20
, MSIOF2_RXD_B
, SEL_MSIOF2_1
),
755 PINMUX_IPSR_GPSR(IP4_23_20
, VI4_DATA15
),
756 PINMUX_IPSR_GPSR(IP4_23_20
, HTX4_D
),
757 PINMUX_IPSR_GPSR(IP4_23_20
, DU_DB3
),
758 PINMUX_IPSR_GPSR(IP4_23_20
, LCDOUT3
),
760 PINMUX_IPSR_GPSR(IP4_27_24
, A15
),
761 PINMUX_IPSR_GPSR(IP4_27_24
, MSIOF1_SS2
),
762 PINMUX_IPSR_GPSR(IP4_27_24
, MSIOF2_TXD_B
),
763 PINMUX_IPSR_GPSR(IP4_27_24
, VI4_DATA18
),
764 PINMUX_IPSR_MSEL(IP4_27_24
, VI5_DATA4_A
, SEL_VIN5_0
),
765 PINMUX_IPSR_GPSR(IP4_27_24
, DU_DB4
),
766 PINMUX_IPSR_GPSR(IP4_27_24
, LCDOUT4
),
768 PINMUX_IPSR_GPSR(IP4_31_28
, A16
),
769 PINMUX_IPSR_GPSR(IP4_31_28
, MSIOF1_SYNC
),
770 PINMUX_IPSR_GPSR(IP4_31_28
, MSIOF2_SS1_B
),
771 PINMUX_IPSR_GPSR(IP4_31_28
, VI4_DATA19
),
772 PINMUX_IPSR_MSEL(IP4_31_28
, VI5_DATA5_A
, SEL_VIN5_0
),
773 PINMUX_IPSR_GPSR(IP4_31_28
, DU_DB5
),
774 PINMUX_IPSR_GPSR(IP4_31_28
, LCDOUT5
),
777 PINMUX_IPSR_GPSR(IP5_3_0
, A17
),
778 PINMUX_IPSR_GPSR(IP5_3_0
, MSIOF1_RXD
),
779 PINMUX_IPSR_GPSR(IP5_3_0
, VI4_DATA20
),
780 PINMUX_IPSR_MSEL(IP5_3_0
, VI5_DATA6_A
, SEL_VIN5_0
),
781 PINMUX_IPSR_GPSR(IP5_3_0
, DU_DB6
),
782 PINMUX_IPSR_GPSR(IP5_3_0
, LCDOUT6
),
784 PINMUX_IPSR_GPSR(IP5_7_4
, A18
),
785 PINMUX_IPSR_GPSR(IP5_7_4
, MSIOF1_TXD
),
786 PINMUX_IPSR_GPSR(IP5_7_4
, VI4_DATA21
),
787 PINMUX_IPSR_MSEL(IP5_7_4
, VI5_DATA7_A
, SEL_VIN5_0
),
788 PINMUX_IPSR_GPSR(IP5_7_4
, DU_DB0
),
789 PINMUX_IPSR_MSEL(IP5_7_4
, HRX4_E
, SEL_HSCIF4_4
),
790 PINMUX_IPSR_GPSR(IP5_7_4
, LCDOUT0
),
792 PINMUX_IPSR_GPSR(IP5_11_8
, A19
),
793 PINMUX_IPSR_GPSR(IP5_11_8
, MSIOF1_SCK
),
794 PINMUX_IPSR_GPSR(IP5_11_8
, VI4_DATA22
),
795 PINMUX_IPSR_MSEL(IP5_11_8
, VI5_DATA2_A
, SEL_VIN5_0
),
796 PINMUX_IPSR_GPSR(IP5_11_8
, DU_DB1
),
797 PINMUX_IPSR_GPSR(IP5_11_8
, HTX4_E
),
798 PINMUX_IPSR_GPSR(IP5_11_8
, LCDOUT1
),
800 PINMUX_IPSR_GPSR(IP5_15_12
, CS0_N
),
801 PINMUX_IPSR_GPSR(IP5_15_12
, SCL5
),
802 PINMUX_IPSR_GPSR(IP5_15_12
, DU_DR0
),
803 PINMUX_IPSR_MSEL(IP5_15_12
, VI4_DATA2_B
, SEL_VIN4_1
),
804 PINMUX_IPSR_GPSR(IP5_15_12
, LCDOUT16
),
806 PINMUX_IPSR_GPSR(IP5_19_16
, WE0_N
),
807 PINMUX_IPSR_GPSR(IP5_19_16
, SDA5
),
808 PINMUX_IPSR_GPSR(IP5_19_16
, DU_DR1
),
809 PINMUX_IPSR_MSEL(IP5_19_16
, VI4_DATA3_B
, SEL_VIN4_1
),
810 PINMUX_IPSR_GPSR(IP5_19_16
, LCDOUT17
),
812 PINMUX_IPSR_GPSR(IP5_23_20
, D0
),
813 PINMUX_IPSR_MSEL(IP5_23_20
, MSIOF3_SCK_A
, SEL_MSIOF3_0
),
814 PINMUX_IPSR_GPSR(IP5_23_20
, DU_DR2
),
815 PINMUX_IPSR_MSEL(IP5_23_20
, CTS4_N_C
, SEL_SCIF4_2
),
816 PINMUX_IPSR_GPSR(IP5_23_20
, LCDOUT18
),
818 PINMUX_IPSR_GPSR(IP5_27_24
, D1
),
819 PINMUX_IPSR_MSEL(IP5_27_24
, MSIOF3_SYNC_A
, SEL_MSIOF3_0
),
820 PINMUX_IPSR_MSEL(IP5_27_24
, SCK3_A
, SEL_SCIF3_0
),
821 PINMUX_IPSR_GPSR(IP5_27_24
, VI4_DATA23
),
822 PINMUX_IPSR_MSEL(IP5_27_24
, VI5_CLKENB_A
, SEL_VIN5_0
),
823 PINMUX_IPSR_GPSR(IP5_27_24
, DU_DB7
),
824 PINMUX_IPSR_MSEL(IP5_27_24
, RTS4_N_TANS_C
, SEL_SCIF4_2
),
825 PINMUX_IPSR_GPSR(IP5_27_24
, LCDOUT7
),
827 PINMUX_IPSR_GPSR(IP5_31_28
, D2
),
828 PINMUX_IPSR_MSEL(IP5_31_28
, MSIOF3_RXD_A
, SEL_MSIOF3_0
),
829 PINMUX_IPSR_MSEL(IP5_31_28
, RX5_C
, SEL_SCIF5_2
),
830 PINMUX_IPSR_MSEL(IP5_31_28
, VI5_DATA14_A
, SEL_VIN5_0
),
831 PINMUX_IPSR_GPSR(IP5_31_28
, DU_DR3
),
832 PINMUX_IPSR_MSEL(IP5_31_28
, RX4_C
, SEL_SCIF4_2
),
833 PINMUX_IPSR_GPSR(IP5_31_28
, LCDOUT19
),
836 PINMUX_IPSR_GPSR(IP6_3_0
, D3
),
837 PINMUX_IPSR_GPSR(IP6_3_0
, MSIOF3_TXD_A
),
838 PINMUX_IPSR_GPSR(IP6_3_0
, TX5_C
),
839 PINMUX_IPSR_MSEL(IP6_3_0
, VI5_DATA15_A
, SEL_VIN5_0
),
840 PINMUX_IPSR_GPSR(IP6_3_0
, DU_DR4
),
841 PINMUX_IPSR_GPSR(IP6_3_0
, TX4_C
),
842 PINMUX_IPSR_GPSR(IP6_3_0
, LCDOUT20
),
844 PINMUX_IPSR_GPSR(IP6_7_4
, D4
),
845 PINMUX_IPSR_GPSR(IP6_7_4
, CANFD1_TX
),
846 PINMUX_IPSR_MSEL(IP6_7_4
, HSCK3_B
, SEL_HSCIF3_1
),
847 PINMUX_IPSR_GPSR(IP6_7_4
, CAN1_TX
),
848 PINMUX_IPSR_MSEL(IP6_7_4
, RTS3_N_TANS_A
, SEL_SCIF3_0
),
849 PINMUX_IPSR_GPSR(IP6_7_4
, MSIOF3_SS2_A
),
850 PINMUX_IPSR_MSEL(IP6_7_4
, VI5_DATA1_B
, SEL_VIN5_1
),
852 PINMUX_IPSR_GPSR(IP6_11_8
, D5
),
853 PINMUX_IPSR_MSEL(IP6_11_8
, RX3_A
, SEL_SCIF3_0
),
854 PINMUX_IPSR_MSEL(IP6_11_8
, HRX3_B
, SEL_HSCIF3_1
),
855 PINMUX_IPSR_GPSR(IP6_11_8
, DU_DR5
),
856 PINMUX_IPSR_MSEL(IP6_11_8
, VI4_DATA4_B
, SEL_VIN4_1
),
857 PINMUX_IPSR_GPSR(IP6_11_8
, LCDOUT21
),
859 PINMUX_IPSR_GPSR(IP6_15_12
, D6
),
860 PINMUX_IPSR_GPSR(IP6_15_12
, TX3_A
),
861 PINMUX_IPSR_GPSR(IP6_15_12
, HTX3_B
),
862 PINMUX_IPSR_GPSR(IP6_15_12
, DU_DR6
),
863 PINMUX_IPSR_MSEL(IP6_15_12
, VI4_DATA5_B
, SEL_VIN4_1
),
864 PINMUX_IPSR_GPSR(IP6_15_12
, LCDOUT22
),
866 PINMUX_IPSR_GPSR(IP6_19_16
, D7
),
867 PINMUX_IPSR_GPSR(IP6_19_16
, CANFD1_RX
),
868 PINMUX_IPSR_GPSR(IP6_19_16
, IRQ5
),
869 PINMUX_IPSR_GPSR(IP6_19_16
, CAN1_RX
),
870 PINMUX_IPSR_MSEL(IP6_19_16
, CTS3_N_A
, SEL_SCIF3_0
),
871 PINMUX_IPSR_MSEL(IP6_19_16
, VI5_DATA2_B
, SEL_VIN5_1
),
873 PINMUX_IPSR_GPSR(IP6_23_20
, D8
),
874 PINMUX_IPSR_MSEL(IP6_23_20
, MSIOF2_SCK_A
, SEL_MSIOF2_0
),
875 PINMUX_IPSR_MSEL(IP6_23_20
, SCK4_B
, SEL_SCIF4_1
),
876 PINMUX_IPSR_MSEL(IP6_23_20
, VI5_DATA12_A
, SEL_VIN5_0
),
877 PINMUX_IPSR_GPSR(IP6_23_20
, DU_DR7
),
878 PINMUX_IPSR_MSEL(IP6_23_20
, RIF3_CLK_B
, SEL_DRIF3_1
),
879 PINMUX_IPSR_MSEL(IP6_23_20
, HCTS3_N_E
, SEL_HSCIF3_4
),
880 PINMUX_IPSR_GPSR(IP6_23_20
, LCDOUT23
),
882 PINMUX_IPSR_GPSR(IP6_27_24
, D9
),
883 PINMUX_IPSR_MSEL(IP6_27_24
, MSIOF2_SYNC_A
, SEL_MSIOF2_0
),
884 PINMUX_IPSR_MSEL(IP6_27_24
, VI5_DATA10_A
, SEL_VIN5_0
),
885 PINMUX_IPSR_GPSR(IP6_27_24
, DU_DG0
),
886 PINMUX_IPSR_MSEL(IP6_27_24
, RIF3_SYNC_B
, SEL_DRIF3_1
),
887 PINMUX_IPSR_MSEL(IP6_27_24
, HRX3_E
, SEL_HSCIF3_4
),
888 PINMUX_IPSR_GPSR(IP6_27_24
, LCDOUT8
),
890 PINMUX_IPSR_GPSR(IP6_31_28
, D10
),
891 PINMUX_IPSR_MSEL(IP6_31_28
, MSIOF2_RXD_A
, SEL_MSIOF2_0
),
892 PINMUX_IPSR_MSEL(IP6_31_28
, VI5_DATA13_A
, SEL_VIN5_0
),
893 PINMUX_IPSR_GPSR(IP6_31_28
, DU_DG1
),
894 PINMUX_IPSR_MSEL(IP6_31_28
, RIF3_D0_B
, SEL_DRIF3_1
),
895 PINMUX_IPSR_GPSR(IP6_31_28
, HTX3_E
),
896 PINMUX_IPSR_GPSR(IP6_31_28
, LCDOUT9
),
899 PINMUX_IPSR_GPSR(IP7_3_0
, D11
),
900 PINMUX_IPSR_GPSR(IP7_3_0
, MSIOF2_TXD_A
),
901 PINMUX_IPSR_MSEL(IP7_3_0
, VI5_DATA11_A
, SEL_VIN5_0
),
902 PINMUX_IPSR_GPSR(IP7_3_0
, DU_DG2
),
903 PINMUX_IPSR_MSEL(IP7_3_0
, RIF3_D1_B
, SEL_DRIF3_1
),
904 PINMUX_IPSR_MSEL(IP7_3_0
, HRTS3_N_E
, SEL_HSCIF3_4
),
905 PINMUX_IPSR_GPSR(IP7_3_0
, LCDOUT10
),
907 PINMUX_IPSR_GPSR(IP7_7_4
, D12
),
908 PINMUX_IPSR_GPSR(IP7_7_4
, CANFD0_TX
),
909 PINMUX_IPSR_GPSR(IP7_7_4
, TX4_B
),
910 PINMUX_IPSR_GPSR(IP7_7_4
, CAN0_TX
),
911 PINMUX_IPSR_MSEL(IP7_7_4
, VI5_DATA8_A
, SEL_VIN5_0
),
912 PINMUX_IPSR_MSEL(IP7_7_4
, VI5_DATA3_B
, SEL_VIN5_1
),
914 PINMUX_IPSR_GPSR(IP7_11_8
, D13
),
915 PINMUX_IPSR_GPSR(IP7_11_8
, CANFD0_RX
),
916 PINMUX_IPSR_MSEL(IP7_11_8
, RX4_B
, SEL_SCIF4_1
),
917 PINMUX_IPSR_GPSR(IP7_11_8
, CAN0_RX
),
918 PINMUX_IPSR_MSEL(IP7_11_8
, VI5_DATA9_A
, SEL_VIN5_0
),
919 PINMUX_IPSR_MSEL(IP7_11_8
, SCL7_B
, SEL_I2C7_1
),
920 PINMUX_IPSR_MSEL(IP7_11_8
, VI5_DATA4_B
, SEL_VIN5_1
),
922 PINMUX_IPSR_GPSR(IP7_15_12
, D14
),
923 PINMUX_IPSR_GPSR(IP7_15_12
, CAN_CLK
),
924 PINMUX_IPSR_MSEL(IP7_15_12
, HRX3_A
, SEL_HSCIF3_0
),
925 PINMUX_IPSR_GPSR(IP7_15_12
, MSIOF2_SS2_A
),
926 PINMUX_IPSR_MSEL(IP7_15_12
, SDA7_B
, SEL_I2C7_1
),
927 PINMUX_IPSR_MSEL(IP7_15_12
, VI5_DATA5_B
, SEL_VIN5_1
),
929 PINMUX_IPSR_GPSR(IP7_19_16
, D15
),
930 PINMUX_IPSR_GPSR(IP7_19_16
, MSIOF2_SS1_A
),
931 PINMUX_IPSR_GPSR(IP7_19_16
, HTX3_A
),
932 PINMUX_IPSR_GPSR(IP7_19_16
, MSIOF3_SS1_A
),
933 PINMUX_IPSR_GPSR(IP7_19_16
, DU_DG3
),
934 PINMUX_IPSR_GPSR(IP7_19_16
, LCDOUT11
),
936 PINMUX_IPSR_GPSR(IP7_23_20
, SCL4
),
937 PINMUX_IPSR_GPSR(IP7_23_20
, CS1_N_A26
),
938 PINMUX_IPSR_GPSR(IP7_23_20
, DU_DOTCLKIN0
),
939 PINMUX_IPSR_MSEL(IP7_23_20
, VI4_DATA6_B
, SEL_VIN4_1
),
940 PINMUX_IPSR_MSEL(IP7_23_20
, VI5_DATA6_B
, SEL_VIN5_1
),
941 PINMUX_IPSR_GPSR(IP7_23_20
, QCLK
),
943 PINMUX_IPSR_GPSR(IP7_27_24
, SDA4
),
944 PINMUX_IPSR_GPSR(IP7_27_24
, WE1_N
),
945 PINMUX_IPSR_MSEL(IP7_27_24
, VI4_DATA7_B
, SEL_VIN4_1
),
946 PINMUX_IPSR_MSEL(IP7_27_24
, VI5_DATA7_B
, SEL_VIN5_1
),
947 PINMUX_IPSR_GPSR(IP7_27_24
, QPOLB
),
949 PINMUX_IPSR_GPSR(IP7_31_28
, SD0_CLK
),
950 PINMUX_IPSR_GPSR(IP7_31_28
, NFDATA8
),
951 PINMUX_IPSR_MSEL(IP7_31_28
, SCL1_C
, SEL_I2C1_2
),
952 PINMUX_IPSR_MSEL(IP7_31_28
, HSCK1_B
, SEL_HSCIF1_1
),
953 PINMUX_IPSR_MSEL(IP7_31_28
, SDA2_E
, SEL_I2C2_4
),
954 PINMUX_IPSR_MSEL(IP7_31_28
, FMCLK_B
, SEL_FM_1
),
957 PINMUX_IPSR_GPSR(IP8_3_0
, SD0_CMD
),
958 PINMUX_IPSR_GPSR(IP8_3_0
, NFDATA9
),
959 PINMUX_IPSR_MSEL(IP8_3_0
, HRX1_B
, SEL_HSCIF1_1
),
960 PINMUX_IPSR_MSEL(IP8_3_0
, SPEEDIN_B
, SEL_SPEED_PULSE_IF_1
),
962 PINMUX_IPSR_GPSR(IP8_7_4
, SD0_DAT0
),
963 PINMUX_IPSR_GPSR(IP8_7_4
, NFDATA10
),
964 PINMUX_IPSR_GPSR(IP8_7_4
, HTX1_B
),
965 PINMUX_IPSR_MSEL(IP8_7_4
, REMOCON_B
, SEL_REMOCON_1
),
967 PINMUX_IPSR_GPSR(IP8_11_8
, SD0_DAT1
),
968 PINMUX_IPSR_GPSR(IP8_11_8
, NFDATA11
),
969 PINMUX_IPSR_MSEL(IP8_11_8
, SDA2_C
, SEL_I2C2_2
),
970 PINMUX_IPSR_MSEL(IP8_11_8
, HCTS1_N_B
, SEL_HSCIF1_1
),
971 PINMUX_IPSR_MSEL(IP8_11_8
, FMIN_B
, SEL_FM_1
),
973 PINMUX_IPSR_GPSR(IP8_15_12
, SD0_DAT2
),
974 PINMUX_IPSR_GPSR(IP8_15_12
, NFDATA12
),
975 PINMUX_IPSR_MSEL(IP8_15_12
, SCL2_C
, SEL_I2C2_2
),
976 PINMUX_IPSR_MSEL(IP8_15_12
, HRTS1_N_B
, SEL_HSCIF1_1
),
977 PINMUX_IPSR_GPSR(IP8_15_12
, BPFCLK_B
),
979 PINMUX_IPSR_GPSR(IP8_19_16
, SD0_DAT3
),
980 PINMUX_IPSR_GPSR(IP8_19_16
, NFDATA13
),
981 PINMUX_IPSR_MSEL(IP8_19_16
, SDA1_C
, SEL_I2C1_2
),
982 PINMUX_IPSR_MSEL(IP8_19_16
, SCL2_E
, SEL_I2C2_4
),
983 PINMUX_IPSR_MSEL(IP8_19_16
, SPEEDIN_C
, SEL_SPEED_PULSE_IF_2
),
984 PINMUX_IPSR_MSEL(IP8_19_16
, REMOCON_C
, SEL_REMOCON_2
),
986 PINMUX_IPSR_GPSR(IP8_23_20
, SD1_CLK
),
987 PINMUX_IPSR_MSEL(IP8_23_20
, NFDATA14_B
, SEL_NDFC_1
),
989 PINMUX_IPSR_GPSR(IP8_27_24
, SD1_CMD
),
990 PINMUX_IPSR_MSEL(IP8_27_24
, NFDATA15_B
, SEL_NDFC_1
),
992 PINMUX_IPSR_GPSR(IP8_31_28
, SD1_DAT0
),
993 PINMUX_IPSR_MSEL(IP8_31_28
, NFWP_N_B
, SEL_NDFC_1
),
996 PINMUX_IPSR_GPSR(IP9_3_0
, SD1_DAT1
),
997 PINMUX_IPSR_MSEL(IP9_3_0
, NFCE_N_B
, SEL_NDFC_1
),
999 PINMUX_IPSR_GPSR(IP9_7_4
, SD1_DAT2
),
1000 PINMUX_IPSR_MSEL(IP9_7_4
, NFALE_B
, SEL_NDFC_1
),
1002 PINMUX_IPSR_GPSR(IP9_11_8
, SD1_DAT3
),
1003 PINMUX_IPSR_MSEL(IP9_11_8
, NFRB_N_B
, SEL_NDFC_1
),
1005 PINMUX_IPSR_GPSR(IP9_15_12
, SD3_CLK
),
1006 PINMUX_IPSR_GPSR(IP9_15_12
, NFWE_N
),
1008 PINMUX_IPSR_GPSR(IP9_19_16
, SD3_CMD
),
1009 PINMUX_IPSR_GPSR(IP9_19_16
, NFRE_N
),
1011 PINMUX_IPSR_GPSR(IP9_23_20
, SD3_DAT0
),
1012 PINMUX_IPSR_GPSR(IP9_23_20
, NFDATA0
),
1014 PINMUX_IPSR_GPSR(IP9_27_24
, SD3_DAT1
),
1015 PINMUX_IPSR_GPSR(IP9_27_24
, NFDATA1
),
1017 PINMUX_IPSR_GPSR(IP9_31_28
, SD3_DAT2
),
1018 PINMUX_IPSR_GPSR(IP9_31_28
, NFDATA2
),
1021 PINMUX_IPSR_GPSR(IP10_3_0
, SD3_DAT3
),
1022 PINMUX_IPSR_GPSR(IP10_3_0
, NFDATA3
),
1024 PINMUX_IPSR_GPSR(IP10_7_4
, SD3_DAT4
),
1025 PINMUX_IPSR_GPSR(IP10_7_4
, NFDATA4
),
1027 PINMUX_IPSR_GPSR(IP10_11_8
, SD3_DAT5
),
1028 PINMUX_IPSR_GPSR(IP10_11_8
, NFDATA5
),
1030 PINMUX_IPSR_GPSR(IP10_15_12
, SD3_DAT6
),
1031 PINMUX_IPSR_GPSR(IP10_15_12
, NFDATA6
),
1033 PINMUX_IPSR_GPSR(IP10_19_16
, SD3_DAT7
),
1034 PINMUX_IPSR_GPSR(IP10_19_16
, NFDATA7
),
1036 PINMUX_IPSR_GPSR(IP10_23_20
, SD3_DS
),
1037 PINMUX_IPSR_GPSR(IP10_23_20
, NFCLE
),
1039 PINMUX_IPSR_GPSR(IP10_27_24
, SD0_CD
),
1040 PINMUX_IPSR_GPSR(IP10_27_24
, NFALE_A
),
1041 PINMUX_IPSR_GPSR(IP10_27_24
, SD3_CD
),
1042 PINMUX_IPSR_MSEL(IP10_27_24
, RIF0_CLK_B
, SEL_DRIF0_1
),
1043 PINMUX_IPSR_MSEL(IP10_27_24
, SCL2_B
, SEL_I2C2_1
),
1044 PINMUX_IPSR_MSEL(IP10_27_24
, TCLK1_A
, SEL_TIMER_TMU_0
),
1045 PINMUX_IPSR_MSEL(IP10_27_24
, SSI_SCK2_B
, SEL_SSI2_1
),
1046 PINMUX_IPSR_GPSR(IP10_27_24
, TS_SCK0
),
1048 PINMUX_IPSR_GPSR(IP10_31_28
, SD0_WP
),
1049 PINMUX_IPSR_GPSR(IP10_31_28
, NFRB_N_A
),
1050 PINMUX_IPSR_GPSR(IP10_31_28
, SD3_WP
),
1051 PINMUX_IPSR_MSEL(IP10_31_28
, RIF0_D0_B
, SEL_DRIF0_1
),
1052 PINMUX_IPSR_MSEL(IP10_31_28
, SDA2_B
, SEL_I2C2_1
),
1053 PINMUX_IPSR_MSEL(IP10_31_28
, TCLK2_A
, SEL_TIMER_TMU_0
),
1054 PINMUX_IPSR_MSEL(IP10_31_28
, SSI_WS2_B
, SEL_SSI2_1
),
1055 PINMUX_IPSR_GPSR(IP10_31_28
, TS_SDAT0
),
1058 PINMUX_IPSR_GPSR(IP11_3_0
, SD1_CD
),
1059 PINMUX_IPSR_MSEL(IP11_3_0
, NFCE_N_A
, SEL_NDFC_0
),
1060 PINMUX_IPSR_GPSR(IP11_3_0
, SSI_SCK1
),
1061 PINMUX_IPSR_MSEL(IP11_3_0
, RIF0_D1_B
, SEL_DRIF0_1
),
1062 PINMUX_IPSR_GPSR(IP11_3_0
, TS_SDEN0
),
1064 PINMUX_IPSR_GPSR(IP11_7_4
, SD1_WP
),
1065 PINMUX_IPSR_MSEL(IP11_7_4
, NFWP_N_A
, SEL_NDFC_0
),
1066 PINMUX_IPSR_GPSR(IP11_7_4
, SSI_WS1
),
1067 PINMUX_IPSR_MSEL(IP11_7_4
, RIF0_SYNC_B
, SEL_DRIF0_1
),
1068 PINMUX_IPSR_GPSR(IP11_7_4
, TS_SPSYNC0
),
1070 PINMUX_IPSR_MSEL(IP11_11_8
, RX0_A
, SEL_SCIF0_0
),
1071 PINMUX_IPSR_MSEL(IP11_11_8
, HRX1_A
, SEL_HSCIF1_0
),
1072 PINMUX_IPSR_MSEL(IP11_11_8
, SSI_SCK2_A
, SEL_SSI2_0
),
1073 PINMUX_IPSR_GPSR(IP11_11_8
, RIF1_SYNC
),
1074 PINMUX_IPSR_GPSR(IP11_11_8
, TS_SCK1
),
1076 PINMUX_IPSR_MSEL(IP11_15_12
, TX0_A
, SEL_SCIF0_0
),
1077 PINMUX_IPSR_GPSR(IP11_15_12
, HTX1_A
),
1078 PINMUX_IPSR_MSEL(IP11_15_12
, SSI_WS2_A
, SEL_SSI2_0
),
1079 PINMUX_IPSR_GPSR(IP11_15_12
, RIF1_D0
),
1080 PINMUX_IPSR_GPSR(IP11_15_12
, TS_SDAT1
),
1082 PINMUX_IPSR_MSEL(IP11_19_16
, CTS0_N_A
, SEL_SCIF0_0
),
1083 PINMUX_IPSR_MSEL(IP11_19_16
, NFDATA14_A
, SEL_NDFC_0
),
1084 PINMUX_IPSR_GPSR(IP11_19_16
, AUDIO_CLKOUT_A
),
1085 PINMUX_IPSR_GPSR(IP11_19_16
, RIF1_D1
),
1086 PINMUX_IPSR_MSEL(IP11_19_16
, SCIF_CLK_A
, SEL_SCIF_0
),
1087 PINMUX_IPSR_MSEL(IP11_19_16
, FMCLK_A
, SEL_FM_0
),
1089 PINMUX_IPSR_MSEL(IP11_23_20
, RTS0_N_TANS_A
, SEL_SCIF0_0
),
1090 PINMUX_IPSR_MSEL(IP11_23_20
, NFDATA15_A
, SEL_NDFC_0
),
1091 PINMUX_IPSR_GPSR(IP11_23_20
, AUDIO_CLKOUT1_A
),
1092 PINMUX_IPSR_GPSR(IP11_23_20
, RIF1_CLK
),
1093 PINMUX_IPSR_MSEL(IP11_23_20
, SCL2_A
, SEL_I2C2_0
),
1094 PINMUX_IPSR_MSEL(IP11_23_20
, FMIN_A
, SEL_FM_0
),
1096 PINMUX_IPSR_MSEL(IP11_27_24
, SCK0_A
, SEL_SCIF0_0
),
1097 PINMUX_IPSR_MSEL(IP11_27_24
, HSCK1_A
, SEL_HSCIF1_0
),
1098 PINMUX_IPSR_GPSR(IP11_27_24
, USB3HS0_ID
),
1099 PINMUX_IPSR_GPSR(IP11_27_24
, RTS1_N_TANS
),
1100 PINMUX_IPSR_MSEL(IP11_27_24
, SDA2_A
, SEL_I2C2_0
),
1101 PINMUX_IPSR_MSEL(IP11_27_24
, FMCLK_C
, SEL_FM_2
),
1102 PINMUX_IPSR_GPSR(IP11_27_24
, USB0_ID
),
1104 PINMUX_IPSR_GPSR(IP11_31_28
, RX1
),
1105 PINMUX_IPSR_MSEL(IP11_31_28
, HRX2_B
, SEL_HSCIF2_1
),
1106 PINMUX_IPSR_MSEL(IP11_31_28
, SSI_SCK9_B
, SEL_SSI9_1
),
1107 PINMUX_IPSR_GPSR(IP11_31_28
, AUDIO_CLKOUT1_B
),
1110 PINMUX_IPSR_GPSR(IP12_3_0
, TX1
),
1111 PINMUX_IPSR_GPSR(IP12_3_0
, HTX2_B
),
1112 PINMUX_IPSR_MSEL(IP12_3_0
, SSI_WS9_B
, SEL_SSI9_1
),
1113 PINMUX_IPSR_GPSR(IP12_3_0
, AUDIO_CLKOUT3_B
),
1115 PINMUX_IPSR_MSEL(IP12_7_4
, SCK2_A
, SEL_SCIF2_0
),
1116 PINMUX_IPSR_MSEL(IP12_7_4
, HSCK0_A
, SEL_HSCIF0_0
),
1117 PINMUX_IPSR_MSEL(IP12_7_4
, AUDIO_CLKB_A
, SEL_ADGB_0
),
1118 PINMUX_IPSR_GPSR(IP12_7_4
, CTS1_N
),
1119 PINMUX_IPSR_MSEL(IP12_7_4
, RIF0_CLK_A
, SEL_DRIF0_0
),
1120 PINMUX_IPSR_MSEL(IP12_7_4
, REMOCON_A
, SEL_REMOCON_0
),
1121 PINMUX_IPSR_MSEL(IP12_7_4
, SCIF_CLK_B
, SEL_SCIF_1
),
1123 PINMUX_IPSR_MSEL(IP12_11_8
, TX2_A
, SEL_SCIF2_0
),
1124 PINMUX_IPSR_MSEL(IP12_11_8
, HRX0_A
, SEL_HSCIF0_0
),
1125 PINMUX_IPSR_GPSR(IP12_11_8
, AUDIO_CLKOUT2_A
),
1126 PINMUX_IPSR_MSEL(IP12_11_8
, SCL1_A
, SEL_I2C1_0
),
1127 PINMUX_IPSR_MSEL(IP12_11_8
, FSO_CFE_0_N_A
, SEL_FSO_0
),
1128 PINMUX_IPSR_GPSR(IP12_11_8
, TS_SDEN1
),
1130 PINMUX_IPSR_MSEL(IP12_15_12
, RX2_A
, SEL_SCIF2_0
),
1131 PINMUX_IPSR_GPSR(IP12_15_12
, HTX0_A
),
1132 PINMUX_IPSR_GPSR(IP12_15_12
, AUDIO_CLKOUT3_A
),
1133 PINMUX_IPSR_MSEL(IP12_15_12
, SDA1_A
, SEL_I2C1_0
),
1134 PINMUX_IPSR_MSEL(IP12_15_12
, FSO_CFE_1_N_A
, SEL_FSO_0
),
1135 PINMUX_IPSR_GPSR(IP12_15_12
, TS_SPSYNC1
),
1137 PINMUX_IPSR_GPSR(IP12_19_16
, MSIOF0_SCK
),
1138 PINMUX_IPSR_GPSR(IP12_19_16
, SSI_SCK78
),
1140 PINMUX_IPSR_GPSR(IP12_23_20
, MSIOF0_RXD
),
1141 PINMUX_IPSR_GPSR(IP12_23_20
, SSI_WS78
),
1142 PINMUX_IPSR_MSEL(IP12_23_20
, TX2_B
, SEL_SCIF2_1
),
1144 PINMUX_IPSR_GPSR(IP12_27_24
, MSIOF0_TXD
),
1145 PINMUX_IPSR_GPSR(IP12_27_24
, SSI_SDATA7
),
1146 PINMUX_IPSR_MSEL(IP12_27_24
, RX2_B
, SEL_SCIF2_1
),
1148 PINMUX_IPSR_GPSR(IP12_31_28
, MSIOF0_SYNC
),
1149 PINMUX_IPSR_GPSR(IP12_31_28
, AUDIO_CLKOUT_B
),
1150 PINMUX_IPSR_GPSR(IP12_31_28
, SSI_SDATA8
),
1153 PINMUX_IPSR_GPSR(IP13_3_0
, MSIOF0_SS1
),
1154 PINMUX_IPSR_MSEL(IP13_3_0
, HRX2_A
, SEL_HSCIF2_0
),
1155 PINMUX_IPSR_GPSR(IP13_3_0
, SSI_SCK4
),
1156 PINMUX_IPSR_MSEL(IP13_3_0
, HCTS0_N_A
, SEL_HSCIF0_0
),
1157 PINMUX_IPSR_GPSR(IP13_3_0
, BPFCLK_C
),
1158 PINMUX_IPSR_MSEL(IP13_3_0
, SPEEDIN_A
, SEL_SPEED_PULSE_IF_0
),
1160 PINMUX_IPSR_GPSR(IP13_7_4
, MSIOF0_SS2
),
1161 PINMUX_IPSR_GPSR(IP13_7_4
, HTX2_A
),
1162 PINMUX_IPSR_GPSR(IP13_7_4
, SSI_WS4
),
1163 PINMUX_IPSR_MSEL(IP13_7_4
, HRTS0_N_A
, SEL_HSCIF0_0
),
1164 PINMUX_IPSR_MSEL(IP13_7_4
, FMIN_C
, SEL_FM_2
),
1165 PINMUX_IPSR_GPSR(IP13_7_4
, BPFCLK_A
),
1167 PINMUX_IPSR_GPSR(IP13_11_8
, SSI_SDATA9
),
1168 PINMUX_IPSR_MSEL(IP13_11_8
, AUDIO_CLKC_A
, SEL_ADGC_0
),
1169 PINMUX_IPSR_GPSR(IP13_11_8
, SCK1
),
1171 PINMUX_IPSR_GPSR(IP13_15_12
, MLB_CLK
),
1172 PINMUX_IPSR_MSEL(IP13_15_12
, RX0_B
, SEL_SCIF0_1
),
1173 PINMUX_IPSR_MSEL(IP13_15_12
, RIF0_D0_A
, SEL_DRIF0_0
),
1174 PINMUX_IPSR_MSEL(IP13_15_12
, SCL1_B
, SEL_I2C1_1
),
1175 PINMUX_IPSR_MSEL(IP13_15_12
, TCLK1_B
, SEL_TIMER_TMU_1
),
1176 PINMUX_IPSR_GPSR(IP13_15_12
, SIM0_RST_A
),
1178 PINMUX_IPSR_GPSR(IP13_19_16
, MLB_SIG
),
1179 PINMUX_IPSR_MSEL(IP13_19_16
, SCK0_B
, SEL_SCIF0_1
),
1180 PINMUX_IPSR_MSEL(IP13_19_16
, RIF0_D1_A
, SEL_DRIF0_0
),
1181 PINMUX_IPSR_MSEL(IP13_19_16
, SDA1_B
, SEL_I2C1_1
),
1182 PINMUX_IPSR_MSEL(IP13_19_16
, TCLK2_B
, SEL_TIMER_TMU_1
),
1183 PINMUX_IPSR_MSEL(IP13_19_16
, SIM0_D_A
, SEL_SIMCARD_0
),
1185 PINMUX_IPSR_GPSR(IP13_23_20
, MLB_DAT
),
1186 PINMUX_IPSR_MSEL(IP13_23_20
, TX0_B
, SEL_SCIF0_1
),
1187 PINMUX_IPSR_MSEL(IP13_23_20
, RIF0_SYNC_A
, SEL_DRIF0_0
),
1188 PINMUX_IPSR_GPSR(IP13_23_20
, SIM0_CLK_A
),
1190 PINMUX_IPSR_GPSR(IP13_27_24
, SSI_SCK01239
),
1192 PINMUX_IPSR_GPSR(IP13_31_28
, SSI_WS01239
),
1195 PINMUX_IPSR_GPSR(IP14_3_0
, SSI_SDATA0
),
1197 PINMUX_IPSR_GPSR(IP14_7_4
, SSI_SDATA1
),
1198 PINMUX_IPSR_MSEL(IP14_7_4
, AUDIO_CLKC_B
, SEL_ADGC_1
),
1199 PINMUX_IPSR_MSEL(IP14_7_4
, PWM0_B
, SEL_PWM0_1
),
1201 PINMUX_IPSR_GPSR(IP14_11_8
, SSI_SDATA2
),
1202 PINMUX_IPSR_GPSR(IP14_11_8
, AUDIO_CLKOUT2_B
),
1203 PINMUX_IPSR_MSEL(IP14_11_8
, SSI_SCK9_A
, SEL_SSI9_0
),
1204 PINMUX_IPSR_MSEL(IP14_11_8
, PWM1_B
, SEL_PWM1_1
),
1206 PINMUX_IPSR_GPSR(IP14_15_12
, SSI_SCK349
),
1207 PINMUX_IPSR_MSEL(IP14_15_12
, PWM2_C
, SEL_PWM2_2
),
1209 PINMUX_IPSR_GPSR(IP14_19_16
, SSI_WS349
),
1210 PINMUX_IPSR_MSEL(IP14_19_16
, PWM3_C
, SEL_PWM3_2
),
1212 PINMUX_IPSR_GPSR(IP14_23_20
, SSI_SDATA3
),
1213 PINMUX_IPSR_GPSR(IP14_23_20
, AUDIO_CLKOUT1_C
),
1214 PINMUX_IPSR_MSEL(IP14_23_20
, AUDIO_CLKB_B
, SEL_ADGB_1
),
1215 PINMUX_IPSR_MSEL(IP14_23_20
, PWM4_B
, SEL_PWM4_1
),
1217 PINMUX_IPSR_GPSR(IP14_27_24
, SSI_SDATA4
),
1218 PINMUX_IPSR_MSEL(IP14_27_24
, SSI_WS9_A
, SEL_SSI9_0
),
1219 PINMUX_IPSR_MSEL(IP14_27_24
, PWM5_B
, SEL_PWM5_1
),
1221 PINMUX_IPSR_GPSR(IP14_31_28
, SSI_SCK5
),
1222 PINMUX_IPSR_MSEL(IP14_31_28
, HRX0_B
, SEL_HSCIF0_1
),
1223 PINMUX_IPSR_GPSR(IP14_31_28
, USB0_PWEN_B
),
1224 PINMUX_IPSR_MSEL(IP14_31_28
, SCL2_D
, SEL_I2C2_3
),
1225 PINMUX_IPSR_MSEL(IP14_31_28
, PWM6_B
, SEL_PWM6_1
),
1228 PINMUX_IPSR_GPSR(IP15_3_0
, SSI_WS5
),
1229 PINMUX_IPSR_GPSR(IP15_3_0
, HTX0_B
),
1230 PINMUX_IPSR_MSEL(IP15_3_0
, USB0_OVC_B
, SEL_USB_20_CH0_1
),
1231 PINMUX_IPSR_MSEL(IP15_3_0
, SDA2_D
, SEL_I2C2_3
),
1233 PINMUX_IPSR_GPSR(IP15_7_4
, SSI_SDATA5
),
1234 PINMUX_IPSR_MSEL(IP15_7_4
, HSCK0_B
, SEL_HSCIF0_1
),
1235 PINMUX_IPSR_MSEL(IP15_7_4
, AUDIO_CLKB_C
, SEL_ADGB_2
),
1236 PINMUX_IPSR_GPSR(IP15_7_4
, TPU0TO0
),
1238 PINMUX_IPSR_GPSR(IP15_11_8
, SSI_SCK6
),
1239 PINMUX_IPSR_MSEL(IP15_11_8
, HSCK2_A
, SEL_HSCIF2_0
),
1240 PINMUX_IPSR_MSEL(IP15_11_8
, AUDIO_CLKC_C
, SEL_ADGC_2
),
1241 PINMUX_IPSR_GPSR(IP15_11_8
, TPU0TO1
),
1242 PINMUX_IPSR_MSEL(IP15_11_8
, FSO_CFE_0_N_B
, SEL_FSO_1
),
1243 PINMUX_IPSR_GPSR(IP15_11_8
, SIM0_RST_B
),
1245 PINMUX_IPSR_GPSR(IP15_15_12
, SSI_WS6
),
1246 PINMUX_IPSR_MSEL(IP15_15_12
, HCTS2_N_A
, SEL_HSCIF2_0
),
1247 PINMUX_IPSR_GPSR(IP15_15_12
, AUDIO_CLKOUT2_C
),
1248 PINMUX_IPSR_GPSR(IP15_15_12
, TPU0TO2
),
1249 PINMUX_IPSR_MSEL(IP15_15_12
, SDA1_D
, SEL_I2C1_3
),
1250 PINMUX_IPSR_MSEL(IP15_15_12
, FSO_CFE_1_N_B
, SEL_FSO_1
),
1251 PINMUX_IPSR_MSEL(IP15_15_12
, SIM0_D_B
, SEL_SIMCARD_1
),
1253 PINMUX_IPSR_GPSR(IP15_19_16
, SSI_SDATA6
),
1254 PINMUX_IPSR_MSEL(IP15_19_16
, HRTS2_N_A
, SEL_HSCIF2_0
),
1255 PINMUX_IPSR_GPSR(IP15_19_16
, AUDIO_CLKOUT3_C
),
1256 PINMUX_IPSR_GPSR(IP15_19_16
, TPU0TO3
),
1257 PINMUX_IPSR_MSEL(IP15_19_16
, SCL1_D
, SEL_I2C1_3
),
1258 PINMUX_IPSR_MSEL(IP15_19_16
, FSO_TOE_N_B
, SEL_FSO_1
),
1259 PINMUX_IPSR_GPSR(IP15_19_16
, SIM0_CLK_B
),
1261 PINMUX_IPSR_GPSR(IP15_23_20
, AUDIO_CLKA
),
1263 PINMUX_IPSR_GPSR(IP15_27_24
, USB30_PWEN
),
1264 PINMUX_IPSR_GPSR(IP15_27_24
, USB0_PWEN_A
),
1266 PINMUX_IPSR_GPSR(IP15_31_28
, USB30_OVC
),
1267 PINMUX_IPSR_MSEL(IP15_31_28
, USB0_OVC_A
, SEL_USB_20_CH0_0
),
1270 * Static pins can not be muxed between different functions but
1271 * still need mark entries in the pinmux list. Add each static
1272 * pin to the list without an associated function. The sh-pfc
1273 * core will do the right thing and skip trying to mux the pin
1274 * while still applying configuration to it.
1276 #define FM(x) PINMUX_DATA(x##_MARK, 0),
1282 * R8A77990 has 7 banks with 32 GPIOs in each => 224 GPIOs.
1283 * Physical layout rows: A - AE, cols: 1 - 25.
1285 #define ROW_GROUP_A(r) ('Z' - 'A' + 1 + (r))
1286 #define PIN_NUMBER(r, c) (((r) - 'A') * 25 + (c) + 300)
1287 #define PIN_A_NUMBER(r, c) PIN_NUMBER(ROW_GROUP_A(r), c)
1288 #define PIN_NONE U16_MAX
1290 static const struct sh_pfc_pin pinmux_pins
[] = {
1291 PINMUX_GPIO_GP_ALL(),
1294 * Pins not associated with a GPIO port.
1296 * The pin positions are different between different R8A77990
1297 * packages, all that is needed for the pfc driver is a unique
1298 * number for each pin. To this end use the pin layout from
1299 * R8A77990 to calculate a unique number for each pin.
1301 SH_PFC_PIN_NAMED_CFG('F', 1, TRST_N
, CFG_FLAGS
),
1302 SH_PFC_PIN_NAMED_CFG('F', 3, TMS
, CFG_FLAGS
),
1303 SH_PFC_PIN_NAMED_CFG('F', 4, TCK
, CFG_FLAGS
),
1304 SH_PFC_PIN_NAMED_CFG('G', 2, TDI
, CFG_FLAGS
),
1305 SH_PFC_PIN_NAMED_CFG('G', 3, FSCLKST_N
, CFG_FLAGS
),
1306 SH_PFC_PIN_NAMED_CFG('H', 1, ASEBRK
, CFG_FLAGS
),
1307 SH_PFC_PIN_NAMED_CFG('N', 1, AVB_TXC
, CFG_FLAGS
),
1308 SH_PFC_PIN_NAMED_CFG('N', 2, AVB_TD0
, CFG_FLAGS
),
1309 SH_PFC_PIN_NAMED_CFG('N', 3, AVB_TD1
, CFG_FLAGS
),
1310 SH_PFC_PIN_NAMED_CFG('N', 5, AVB_TD2
, CFG_FLAGS
),
1311 SH_PFC_PIN_NAMED_CFG('N', 6, AVB_TD3
, CFG_FLAGS
),
1312 SH_PFC_PIN_NAMED_CFG('P', 3, AVB_TX_CTL
, CFG_FLAGS
),
1313 SH_PFC_PIN_NAMED_CFG('P', 4, AVB_MDIO
, CFG_FLAGS
),
1314 SH_PFC_PIN_NAMED_CFG('P', 5, AVB_MDC
, CFG_FLAGS
),
1315 SH_PFC_PIN_NAMED_CFG('T', 21, MLB_REF
, CFG_FLAGS
),
1316 SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('D'), 3, PRESETOUT_N
, CFG_FLAGS
),
1319 /* - AUDIO CLOCK ------------------------------------------------------------ */
1320 static const unsigned int audio_clk_a_pins
[] = {
1325 static const unsigned int audio_clk_a_mux
[] = {
1329 static const unsigned int audio_clk_b_a_pins
[] = {
1334 static const unsigned int audio_clk_b_a_mux
[] = {
1338 static const unsigned int audio_clk_b_b_pins
[] = {
1343 static const unsigned int audio_clk_b_b_mux
[] = {
1347 static const unsigned int audio_clk_b_c_pins
[] = {
1352 static const unsigned int audio_clk_b_c_mux
[] = {
1356 static const unsigned int audio_clk_c_a_pins
[] = {
1361 static const unsigned int audio_clk_c_a_mux
[] = {
1365 static const unsigned int audio_clk_c_b_pins
[] = {
1370 static const unsigned int audio_clk_c_b_mux
[] = {
1374 static const unsigned int audio_clk_c_c_pins
[] = {
1379 static const unsigned int audio_clk_c_c_mux
[] = {
1383 static const unsigned int audio_clkout_a_pins
[] = {
1388 static const unsigned int audio_clkout_a_mux
[] = {
1389 AUDIO_CLKOUT_A_MARK
,
1392 static const unsigned int audio_clkout_b_pins
[] = {
1397 static const unsigned int audio_clkout_b_mux
[] = {
1398 AUDIO_CLKOUT_B_MARK
,
1401 static const unsigned int audio_clkout1_a_pins
[] = {
1406 static const unsigned int audio_clkout1_a_mux
[] = {
1407 AUDIO_CLKOUT1_A_MARK
,
1410 static const unsigned int audio_clkout1_b_pins
[] = {
1415 static const unsigned int audio_clkout1_b_mux
[] = {
1416 AUDIO_CLKOUT1_B_MARK
,
1419 static const unsigned int audio_clkout1_c_pins
[] = {
1424 static const unsigned int audio_clkout1_c_mux
[] = {
1425 AUDIO_CLKOUT1_C_MARK
,
1428 static const unsigned int audio_clkout2_a_pins
[] = {
1433 static const unsigned int audio_clkout2_a_mux
[] = {
1434 AUDIO_CLKOUT2_A_MARK
,
1437 static const unsigned int audio_clkout2_b_pins
[] = {
1442 static const unsigned int audio_clkout2_b_mux
[] = {
1443 AUDIO_CLKOUT2_B_MARK
,
1446 static const unsigned int audio_clkout2_c_pins
[] = {
1451 static const unsigned int audio_clkout2_c_mux
[] = {
1452 AUDIO_CLKOUT2_C_MARK
,
1455 static const unsigned int audio_clkout3_a_pins
[] = {
1460 static const unsigned int audio_clkout3_a_mux
[] = {
1461 AUDIO_CLKOUT3_A_MARK
,
1464 static const unsigned int audio_clkout3_b_pins
[] = {
1469 static const unsigned int audio_clkout3_b_mux
[] = {
1470 AUDIO_CLKOUT3_B_MARK
,
1473 static const unsigned int audio_clkout3_c_pins
[] = {
1478 static const unsigned int audio_clkout3_c_mux
[] = {
1479 AUDIO_CLKOUT3_C_MARK
,
1482 /* - EtherAVB --------------------------------------------------------------- */
1483 static const unsigned int avb_link_pins
[] = {
1488 static const unsigned int avb_link_mux
[] = {
1492 static const unsigned int avb_magic_pins
[] = {
1497 static const unsigned int avb_magic_mux
[] = {
1501 static const unsigned int avb_phy_int_pins
[] = {
1506 static const unsigned int avb_phy_int_mux
[] = {
1510 static const unsigned int avb_mii_pins
[] = {
1512 * AVB_RX_CTL, AVB_RXC, AVB_RD0,
1513 * AVB_RD1, AVB_RD2, AVB_RD3,
1516 RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
1517 RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 18), RCAR_GP_PIN(2, 19),
1521 static const unsigned int avb_mii_mux
[] = {
1522 AVB_RX_CTL_MARK
, AVB_RXC_MARK
, AVB_RD0_MARK
,
1523 AVB_RD1_MARK
, AVB_RD2_MARK
, AVB_RD3_MARK
,
1527 static const unsigned int avb_avtp_pps_pins
[] = {
1532 static const unsigned int avb_avtp_pps_mux
[] = {
1536 static const unsigned int avb_avtp_match_a_pins
[] = {
1537 /* AVB_AVTP_MATCH_A */
1541 static const unsigned int avb_avtp_match_a_mux
[] = {
1542 AVB_AVTP_MATCH_A_MARK
,
1545 static const unsigned int avb_avtp_capture_a_pins
[] = {
1546 /* AVB_AVTP_CAPTURE_A */
1550 static const unsigned int avb_avtp_capture_a_mux
[] = {
1551 AVB_AVTP_CAPTURE_A_MARK
,
1554 /* - CAN ------------------------------------------------------------------ */
1555 static const unsigned int can0_data_pins
[] = {
1557 RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
1560 static const unsigned int can0_data_mux
[] = {
1561 CAN0_TX_MARK
, CAN0_RX_MARK
,
1564 static const unsigned int can1_data_pins
[] = {
1566 RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 7),
1569 static const unsigned int can1_data_mux
[] = {
1570 CAN1_TX_MARK
, CAN1_RX_MARK
,
1573 /* - CAN Clock -------------------------------------------------------------- */
1574 static const unsigned int can_clk_pins
[] = {
1579 static const unsigned int can_clk_mux
[] = {
1583 /* - CAN FD --------------------------------------------------------------- */
1584 static const unsigned int canfd0_data_pins
[] = {
1586 RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
1589 static const unsigned int canfd0_data_mux
[] = {
1590 CANFD0_TX_MARK
, CANFD0_RX_MARK
,
1593 static const unsigned int canfd1_data_pins
[] = {
1595 RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 7),
1598 static const unsigned int canfd1_data_mux
[] = {
1599 CANFD1_TX_MARK
, CANFD1_RX_MARK
,
1602 /* - DRIF0 --------------------------------------------------------------- */
1603 static const unsigned int drif0_ctrl_a_pins
[] = {
1605 RCAR_GP_PIN(5, 7), RCAR_GP_PIN(5, 19),
1608 static const unsigned int drif0_ctrl_a_mux
[] = {
1609 RIF0_CLK_A_MARK
, RIF0_SYNC_A_MARK
,
1612 static const unsigned int drif0_data0_a_pins
[] = {
1617 static const unsigned int drif0_data0_a_mux
[] = {
1621 static const unsigned int drif0_data1_a_pins
[] = {
1626 static const unsigned int drif0_data1_a_mux
[] = {
1630 static const unsigned int drif0_ctrl_b_pins
[] = {
1632 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 15),
1635 static const unsigned int drif0_ctrl_b_mux
[] = {
1636 RIF0_CLK_B_MARK
, RIF0_SYNC_B_MARK
,
1639 static const unsigned int drif0_data0_b_pins
[] = {
1644 static const unsigned int drif0_data0_b_mux
[] = {
1648 static const unsigned int drif0_data1_b_pins
[] = {
1653 static const unsigned int drif0_data1_b_mux
[] = {
1657 /* - DRIF1 --------------------------------------------------------------- */
1658 static const unsigned int drif1_ctrl_pins
[] = {
1660 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 1),
1663 static const unsigned int drif1_ctrl_mux
[] = {
1664 RIF1_CLK_MARK
, RIF1_SYNC_MARK
,
1667 static const unsigned int drif1_data0_pins
[] = {
1672 static const unsigned int drif1_data0_mux
[] = {
1676 static const unsigned int drif1_data1_pins
[] = {
1681 static const unsigned int drif1_data1_mux
[] = {
1685 /* - DRIF2 --------------------------------------------------------------- */
1686 static const unsigned int drif2_ctrl_a_pins
[] = {
1688 RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7),
1691 static const unsigned int drif2_ctrl_a_mux
[] = {
1692 RIF2_CLK_A_MARK
, RIF2_SYNC_A_MARK
,
1695 static const unsigned int drif2_data0_a_pins
[] = {
1700 static const unsigned int drif2_data0_a_mux
[] = {
1704 static const unsigned int drif2_data1_a_pins
[] = {
1709 static const unsigned int drif2_data1_a_mux
[] = {
1713 static const unsigned int drif2_ctrl_b_pins
[] = {
1715 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
1718 static const unsigned int drif2_ctrl_b_mux
[] = {
1719 RIF2_CLK_B_MARK
, RIF2_SYNC_B_MARK
,
1722 static const unsigned int drif2_data0_b_pins
[] = {
1727 static const unsigned int drif2_data0_b_mux
[] = {
1731 static const unsigned int drif2_data1_b_pins
[] = {
1736 static const unsigned int drif2_data1_b_mux
[] = {
1740 /* - DRIF3 --------------------------------------------------------------- */
1741 static const unsigned int drif3_ctrl_a_pins
[] = {
1743 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
1746 static const unsigned int drif3_ctrl_a_mux
[] = {
1747 RIF3_CLK_A_MARK
, RIF3_SYNC_A_MARK
,
1750 static const unsigned int drif3_data0_a_pins
[] = {
1755 static const unsigned int drif3_data0_a_mux
[] = {
1759 static const unsigned int drif3_data1_a_pins
[] = {
1764 static const unsigned int drif3_data1_a_mux
[] = {
1768 static const unsigned int drif3_ctrl_b_pins
[] = {
1770 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 9),
1773 static const unsigned int drif3_ctrl_b_mux
[] = {
1774 RIF3_CLK_B_MARK
, RIF3_SYNC_B_MARK
,
1777 static const unsigned int drif3_data0_b_pins
[] = {
1782 static const unsigned int drif3_data0_b_mux
[] = {
1786 static const unsigned int drif3_data1_b_pins
[] = {
1791 static const unsigned int drif3_data1_b_mux
[] = {
1795 /* - DU --------------------------------------------------------------------- */
1796 static const unsigned int du_rgb666_pins
[] = {
1797 /* R[7:2], G[7:2], B[7:2] */
1798 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 5),
1799 RCAR_GP_PIN(0, 3), RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 0),
1800 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 10),
1801 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 11),
1802 RCAR_GP_PIN(0, 1), RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16),
1803 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
1805 static const unsigned int du_rgb666_mux
[] = {
1806 DU_DR7_MARK
, DU_DR6_MARK
, DU_DR5_MARK
, DU_DR4_MARK
,
1807 DU_DR3_MARK
, DU_DR2_MARK
,
1808 DU_DG7_MARK
, DU_DG6_MARK
, DU_DG5_MARK
, DU_DG4_MARK
,
1809 DU_DG3_MARK
, DU_DG2_MARK
,
1810 DU_DB7_MARK
, DU_DB6_MARK
, DU_DB5_MARK
, DU_DB4_MARK
,
1811 DU_DB3_MARK
, DU_DB2_MARK
,
1813 static const unsigned int du_rgb888_pins
[] = {
1814 /* R[7:0], G[7:0], B[7:0] */
1815 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 5),
1816 RCAR_GP_PIN(0, 3), RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 0),
1817 RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21),
1818 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 10),
1819 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 11),
1820 RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 9),
1821 RCAR_GP_PIN(0, 1), RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16),
1822 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
1823 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
1825 static const unsigned int du_rgb888_mux
[] = {
1826 DU_DR7_MARK
, DU_DR6_MARK
, DU_DR5_MARK
, DU_DR4_MARK
,
1827 DU_DR3_MARK
, DU_DR2_MARK
, DU_DR1_MARK
, DU_DR0_MARK
,
1828 DU_DG7_MARK
, DU_DG6_MARK
, DU_DG5_MARK
, DU_DG4_MARK
,
1829 DU_DG3_MARK
, DU_DG2_MARK
, DU_DG1_MARK
, DU_DG0_MARK
,
1830 DU_DB7_MARK
, DU_DB6_MARK
, DU_DB5_MARK
, DU_DB4_MARK
,
1831 DU_DB3_MARK
, DU_DB2_MARK
, DU_DB1_MARK
, DU_DB0_MARK
,
1833 static const unsigned int du_clk_in_0_pins
[] = {
1837 static const unsigned int du_clk_in_0_mux
[] = {
1840 static const unsigned int du_clk_in_1_pins
[] = {
1844 static const unsigned int du_clk_in_1_mux
[] = {
1847 static const unsigned int du_clk_out_0_pins
[] = {
1851 static const unsigned int du_clk_out_0_mux
[] = {
1854 static const unsigned int du_sync_pins
[] = {
1856 RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 8),
1858 static const unsigned int du_sync_mux
[] = {
1859 DU_VSYNC_MARK
, DU_HSYNC_MARK
1861 static const unsigned int du_disp_cde_pins
[] = {
1865 static const unsigned int du_disp_cde_mux
[] = {
1868 static const unsigned int du_cde_pins
[] = {
1872 static const unsigned int du_cde_mux
[] = {
1875 static const unsigned int du_disp_pins
[] = {
1879 static const unsigned int du_disp_mux
[] = {
1883 /* - HSCIF0 --------------------------------------------------*/
1884 static const unsigned int hscif0_data_a_pins
[] = {
1886 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
1889 static const unsigned int hscif0_data_a_mux
[] = {
1890 HRX0_A_MARK
, HTX0_A_MARK
,
1893 static const unsigned int hscif0_clk_a_pins
[] = {
1898 static const unsigned int hscif0_clk_a_mux
[] = {
1902 static const unsigned int hscif0_ctrl_a_pins
[] = {
1904 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 14),
1907 static const unsigned int hscif0_ctrl_a_mux
[] = {
1908 HRTS0_N_A_MARK
, HCTS0_N_A_MARK
,
1911 static const unsigned int hscif0_data_b_pins
[] = {
1913 RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
1916 static const unsigned int hscif0_data_b_mux
[] = {
1917 HRX0_B_MARK
, HTX0_B_MARK
,
1920 static const unsigned int hscif0_clk_b_pins
[] = {
1925 static const unsigned int hscif0_clk_b_mux
[] = {
1929 /* - HSCIF1 ------------------------------------------------- */
1930 static const unsigned int hscif1_data_a_pins
[] = {
1932 RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
1935 static const unsigned int hscif1_data_a_mux
[] = {
1936 HRX1_A_MARK
, HTX1_A_MARK
,
1939 static const unsigned int hscif1_clk_a_pins
[] = {
1944 static const unsigned int hscif1_clk_a_mux
[] = {
1948 static const unsigned int hscif1_data_b_pins
[] = {
1950 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2),
1953 static const unsigned int hscif1_data_b_mux
[] = {
1954 HRX1_B_MARK
, HTX1_B_MARK
,
1957 static const unsigned int hscif1_clk_b_pins
[] = {
1962 static const unsigned int hscif1_clk_b_mux
[] = {
1966 static const unsigned int hscif1_ctrl_b_pins
[] = {
1968 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3),
1971 static const unsigned int hscif1_ctrl_b_mux
[] = {
1972 HRTS1_N_B_MARK
, HCTS1_N_B_MARK
,
1975 /* - HSCIF2 ------------------------------------------------- */
1976 static const unsigned int hscif2_data_a_pins
[] = {
1978 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 15),
1981 static const unsigned int hscif2_data_a_mux
[] = {
1982 HRX2_A_MARK
, HTX2_A_MARK
,
1985 static const unsigned int hscif2_clk_a_pins
[] = {
1990 static const unsigned int hscif2_clk_a_mux
[] = {
1994 static const unsigned int hscif2_ctrl_a_pins
[] = {
1996 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 15),
1999 static const unsigned int hscif2_ctrl_a_mux
[] = {
2000 HRTS2_N_A_MARK
, HCTS2_N_A_MARK
,
2003 static const unsigned int hscif2_data_b_pins
[] = {
2005 RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
2008 static const unsigned int hscif2_data_b_mux
[] = {
2009 HRX2_B_MARK
, HTX2_B_MARK
,
2012 /* - HSCIF3 ------------------------------------------------*/
2013 static const unsigned int hscif3_data_a_pins
[] = {
2015 RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
2018 static const unsigned int hscif3_data_a_mux
[] = {
2019 HRX3_A_MARK
, HTX3_A_MARK
,
2022 static const unsigned int hscif3_data_b_pins
[] = {
2024 RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6),
2027 static const unsigned int hscif3_data_b_mux
[] = {
2028 HRX3_B_MARK
, HTX3_B_MARK
,
2031 static const unsigned int hscif3_clk_b_pins
[] = {
2036 static const unsigned int hscif3_clk_b_mux
[] = {
2040 static const unsigned int hscif3_data_c_pins
[] = {
2042 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 9),
2045 static const unsigned int hscif3_data_c_mux
[] = {
2046 HRX3_C_MARK
, HTX3_C_MARK
,
2049 static const unsigned int hscif3_clk_c_pins
[] = {
2054 static const unsigned int hscif3_clk_c_mux
[] = {
2058 static const unsigned int hscif3_ctrl_c_pins
[] = {
2060 RCAR_GP_PIN(2, 13), RCAR_GP_PIN(2, 12),
2063 static const unsigned int hscif3_ctrl_c_mux
[] = {
2064 HRTS3_N_C_MARK
, HCTS3_N_C_MARK
,
2067 static const unsigned int hscif3_data_d_pins
[] = {
2069 RCAR_GP_PIN(1, 0), RCAR_GP_PIN(1, 3),
2072 static const unsigned int hscif3_data_d_mux
[] = {
2073 HRX3_D_MARK
, HTX3_D_MARK
,
2076 static const unsigned int hscif3_data_e_pins
[] = {
2078 RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10),
2081 static const unsigned int hscif3_data_e_mux
[] = {
2082 HRX3_E_MARK
, HTX3_E_MARK
,
2085 static const unsigned int hscif3_ctrl_e_pins
[] = {
2087 RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 8),
2090 static const unsigned int hscif3_ctrl_e_mux
[] = {
2091 HRTS3_N_E_MARK
, HCTS3_N_E_MARK
,
2094 /* - HSCIF4 -------------------------------------------------- */
2095 static const unsigned int hscif4_data_a_pins
[] = {
2097 RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 3),
2100 static const unsigned int hscif4_data_a_mux
[] = {
2101 HRX4_A_MARK
, HTX4_A_MARK
,
2104 static const unsigned int hscif4_clk_a_pins
[] = {
2109 static const unsigned int hscif4_clk_a_mux
[] = {
2113 static const unsigned int hscif4_ctrl_a_pins
[] = {
2115 RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 1),
2118 static const unsigned int hscif4_ctrl_a_mux
[] = {
2119 HRTS4_N_A_MARK
, HCTS4_N_A_MARK
,
2122 static const unsigned int hscif4_data_b_pins
[] = {
2124 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 7),
2127 static const unsigned int hscif4_data_b_mux
[] = {
2128 HRX4_B_MARK
, HTX4_B_MARK
,
2131 static const unsigned int hscif4_clk_b_pins
[] = {
2136 static const unsigned int hscif4_clk_b_mux
[] = {
2140 static const unsigned int hscif4_data_c_pins
[] = {
2142 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
2145 static const unsigned int hscif4_data_c_mux
[] = {
2146 HRX4_C_MARK
, HTX4_C_MARK
,
2149 static const unsigned int hscif4_data_d_pins
[] = {
2151 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
2154 static const unsigned int hscif4_data_d_mux
[] = {
2155 HRX4_D_MARK
, HTX4_D_MARK
,
2158 static const unsigned int hscif4_data_e_pins
[] = {
2160 RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
2163 static const unsigned int hscif4_data_e_mux
[] = {
2164 HRX4_E_MARK
, HTX4_E_MARK
,
2167 /* - I2C -------------------------------------------------------------------- */
2168 static const unsigned int i2c1_a_pins
[] = {
2170 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
2173 static const unsigned int i2c1_a_mux
[] = {
2174 SCL1_A_MARK
, SDA1_A_MARK
,
2177 static const unsigned int i2c1_b_pins
[] = {
2179 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 18),
2182 static const unsigned int i2c1_b_mux
[] = {
2183 SCL1_B_MARK
, SDA1_B_MARK
,
2186 static const unsigned int i2c1_c_pins
[] = {
2188 RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 5),
2191 static const unsigned int i2c1_c_mux
[] = {
2192 SCL1_C_MARK
, SDA1_C_MARK
,
2195 static const unsigned int i2c1_d_pins
[] = {
2197 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 15),
2200 static const unsigned int i2c1_d_mux
[] = {
2201 SCL1_D_MARK
, SDA1_D_MARK
,
2204 static const unsigned int i2c2_a_pins
[] = {
2206 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 0),
2209 static const unsigned int i2c2_a_mux
[] = {
2210 SCL2_A_MARK
, SDA2_A_MARK
,
2213 static const unsigned int i2c2_b_pins
[] = {
2215 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
2218 static const unsigned int i2c2_b_mux
[] = {
2219 SCL2_B_MARK
, SDA2_B_MARK
,
2222 static const unsigned int i2c2_c_pins
[] = {
2224 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3),
2227 static const unsigned int i2c2_c_mux
[] = {
2228 SCL2_C_MARK
, SDA2_C_MARK
,
2231 static const unsigned int i2c2_d_pins
[] = {
2233 RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
2236 static const unsigned int i2c2_d_mux
[] = {
2237 SCL2_D_MARK
, SDA2_D_MARK
,
2240 static const unsigned int i2c2_e_pins
[] = {
2242 RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 0),
2245 static const unsigned int i2c2_e_mux
[] = {
2246 SCL2_E_MARK
, SDA2_E_MARK
,
2249 static const unsigned int i2c4_pins
[] = {
2251 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(0, 17),
2254 static const unsigned int i2c4_mux
[] = {
2255 SCL4_MARK
, SDA4_MARK
,
2258 static const unsigned int i2c5_pins
[] = {
2260 RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22),
2263 static const unsigned int i2c5_mux
[] = {
2264 SCL5_MARK
, SDA5_MARK
,
2267 static const unsigned int i2c6_a_pins
[] = {
2269 RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 8),
2272 static const unsigned int i2c6_a_mux
[] = {
2273 SCL6_A_MARK
, SDA6_A_MARK
,
2276 static const unsigned int i2c6_b_pins
[] = {
2278 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 1),
2281 static const unsigned int i2c6_b_mux
[] = {
2282 SCL6_B_MARK
, SDA6_B_MARK
,
2285 static const unsigned int i2c7_a_pins
[] = {
2287 RCAR_GP_PIN(2, 24), RCAR_GP_PIN(2, 25),
2290 static const unsigned int i2c7_a_mux
[] = {
2291 SCL7_A_MARK
, SDA7_A_MARK
,
2294 static const unsigned int i2c7_b_pins
[] = {
2296 RCAR_GP_PIN(0, 13), RCAR_GP_PIN(0, 14),
2299 static const unsigned int i2c7_b_mux
[] = {
2300 SCL7_B_MARK
, SDA7_B_MARK
,
2303 /* - INTC-EX ---------------------------------------------------------------- */
2304 static const unsigned int intc_ex_irq0_pins
[] = {
2308 static const unsigned int intc_ex_irq0_mux
[] = {
2311 static const unsigned int intc_ex_irq1_pins
[] = {
2315 static const unsigned int intc_ex_irq1_mux
[] = {
2318 static const unsigned int intc_ex_irq2_pins
[] = {
2322 static const unsigned int intc_ex_irq2_mux
[] = {
2325 static const unsigned int intc_ex_irq3_pins
[] = {
2329 static const unsigned int intc_ex_irq3_mux
[] = {
2332 static const unsigned int intc_ex_irq4_pins
[] = {
2336 static const unsigned int intc_ex_irq4_mux
[] = {
2339 static const unsigned int intc_ex_irq5_pins
[] = {
2343 static const unsigned int intc_ex_irq5_mux
[] = {
2347 /* - MSIOF0 ----------------------------------------------------------------- */
2348 static const unsigned int msiof0_clk_pins
[] = {
2353 static const unsigned int msiof0_clk_mux
[] = {
2357 static const unsigned int msiof0_sync_pins
[] = {
2362 static const unsigned int msiof0_sync_mux
[] = {
2366 static const unsigned int msiof0_ss1_pins
[] = {
2371 static const unsigned int msiof0_ss1_mux
[] = {
2375 static const unsigned int msiof0_ss2_pins
[] = {
2380 static const unsigned int msiof0_ss2_mux
[] = {
2384 static const unsigned int msiof0_txd_pins
[] = {
2389 static const unsigned int msiof0_txd_mux
[] = {
2393 static const unsigned int msiof0_rxd_pins
[] = {
2398 static const unsigned int msiof0_rxd_mux
[] = {
2402 /* - MSIOF1 ----------------------------------------------------------------- */
2403 static const unsigned int msiof1_clk_pins
[] = {
2408 static const unsigned int msiof1_clk_mux
[] = {
2412 static const unsigned int msiof1_sync_pins
[] = {
2417 static const unsigned int msiof1_sync_mux
[] = {
2421 static const unsigned int msiof1_ss1_pins
[] = {
2426 static const unsigned int msiof1_ss1_mux
[] = {
2430 static const unsigned int msiof1_ss2_pins
[] = {
2435 static const unsigned int msiof1_ss2_mux
[] = {
2439 static const unsigned int msiof1_txd_pins
[] = {
2444 static const unsigned int msiof1_txd_mux
[] = {
2448 static const unsigned int msiof1_rxd_pins
[] = {
2453 static const unsigned int msiof1_rxd_mux
[] = {
2457 /* - MSIOF2 ----------------------------------------------------------------- */
2458 static const unsigned int msiof2_clk_a_pins
[] = {
2463 static const unsigned int msiof2_clk_a_mux
[] = {
2467 static const unsigned int msiof2_sync_a_pins
[] = {
2472 static const unsigned int msiof2_sync_a_mux
[] = {
2476 static const unsigned int msiof2_ss1_a_pins
[] = {
2481 static const unsigned int msiof2_ss1_a_mux
[] = {
2485 static const unsigned int msiof2_ss2_a_pins
[] = {
2490 static const unsigned int msiof2_ss2_a_mux
[] = {
2494 static const unsigned int msiof2_txd_a_pins
[] = {
2499 static const unsigned int msiof2_txd_a_mux
[] = {
2503 static const unsigned int msiof2_rxd_a_pins
[] = {
2508 static const unsigned int msiof2_rxd_a_mux
[] = {
2512 static const unsigned int msiof2_clk_b_pins
[] = {
2517 static const unsigned int msiof2_clk_b_mux
[] = {
2521 static const unsigned int msiof2_sync_b_pins
[] = {
2526 static const unsigned int msiof2_sync_b_mux
[] = {
2530 static const unsigned int msiof2_ss1_b_pins
[] = {
2535 static const unsigned int msiof2_ss1_b_mux
[] = {
2539 static const unsigned int msiof2_ss2_b_pins
[] = {
2544 static const unsigned int msiof2_ss2_b_mux
[] = {
2548 static const unsigned int msiof2_txd_b_pins
[] = {
2553 static const unsigned int msiof2_txd_b_mux
[] = {
2557 static const unsigned int msiof2_rxd_b_pins
[] = {
2562 static const unsigned int msiof2_rxd_b_mux
[] = {
2566 /* - MSIOF3 ----------------------------------------------------------------- */
2567 static const unsigned int msiof3_clk_a_pins
[] = {
2572 static const unsigned int msiof3_clk_a_mux
[] = {
2576 static const unsigned int msiof3_sync_a_pins
[] = {
2581 static const unsigned int msiof3_sync_a_mux
[] = {
2585 static const unsigned int msiof3_ss1_a_pins
[] = {
2590 static const unsigned int msiof3_ss1_a_mux
[] = {
2594 static const unsigned int msiof3_ss2_a_pins
[] = {
2599 static const unsigned int msiof3_ss2_a_mux
[] = {
2603 static const unsigned int msiof3_txd_a_pins
[] = {
2608 static const unsigned int msiof3_txd_a_mux
[] = {
2612 static const unsigned int msiof3_rxd_a_pins
[] = {
2617 static const unsigned int msiof3_rxd_a_mux
[] = {
2621 static const unsigned int msiof3_clk_b_pins
[] = {
2626 static const unsigned int msiof3_clk_b_mux
[] = {
2630 static const unsigned int msiof3_sync_b_pins
[] = {
2635 static const unsigned int msiof3_sync_b_mux
[] = {
2639 static const unsigned int msiof3_ss1_b_pins
[] = {
2644 static const unsigned int msiof3_ss1_b_mux
[] = {
2648 static const unsigned int msiof3_txd_b_pins
[] = {
2653 static const unsigned int msiof3_txd_b_mux
[] = {
2657 static const unsigned int msiof3_rxd_b_pins
[] = {
2662 static const unsigned int msiof3_rxd_b_mux
[] = {
2666 /* - PWM0 --------------------------------------------------------------------*/
2667 static const unsigned int pwm0_a_pins
[] = {
2672 static const unsigned int pwm0_a_mux
[] = {
2676 static const unsigned int pwm0_b_pins
[] = {
2681 static const unsigned int pwm0_b_mux
[] = {
2685 /* - PWM1 --------------------------------------------------------------------*/
2686 static const unsigned int pwm1_a_pins
[] = {
2691 static const unsigned int pwm1_a_mux
[] = {
2695 static const unsigned int pwm1_b_pins
[] = {
2700 static const unsigned int pwm1_b_mux
[] = {
2704 /* - PWM2 --------------------------------------------------------------------*/
2705 static const unsigned int pwm2_a_pins
[] = {
2710 static const unsigned int pwm2_a_mux
[] = {
2714 static const unsigned int pwm2_b_pins
[] = {
2719 static const unsigned int pwm2_b_mux
[] = {
2723 static const unsigned int pwm2_c_pins
[] = {
2728 static const unsigned int pwm2_c_mux
[] = {
2732 /* - PWM3 --------------------------------------------------------------------*/
2733 static const unsigned int pwm3_a_pins
[] = {
2738 static const unsigned int pwm3_a_mux
[] = {
2742 static const unsigned int pwm3_b_pins
[] = {
2747 static const unsigned int pwm3_b_mux
[] = {
2751 static const unsigned int pwm3_c_pins
[] = {
2756 static const unsigned int pwm3_c_mux
[] = {
2760 /* - PWM4 --------------------------------------------------------------------*/
2761 static const unsigned int pwm4_a_pins
[] = {
2766 static const unsigned int pwm4_a_mux
[] = {
2770 static const unsigned int pwm4_b_pins
[] = {
2775 static const unsigned int pwm4_b_mux
[] = {
2779 /* - PWM5 --------------------------------------------------------------------*/
2780 static const unsigned int pwm5_a_pins
[] = {
2785 static const unsigned int pwm5_a_mux
[] = {
2789 static const unsigned int pwm5_b_pins
[] = {
2794 static const unsigned int pwm5_b_mux
[] = {
2798 /* - PWM6 --------------------------------------------------------------------*/
2799 static const unsigned int pwm6_a_pins
[] = {
2804 static const unsigned int pwm6_a_mux
[] = {
2808 static const unsigned int pwm6_b_pins
[] = {
2813 static const unsigned int pwm6_b_mux
[] = {
2817 /* - SCIF0 ------------------------------------------------------------------ */
2818 static const unsigned int scif0_data_a_pins
[] = {
2820 RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
2823 static const unsigned int scif0_data_a_mux
[] = {
2824 RX0_A_MARK
, TX0_A_MARK
,
2827 static const unsigned int scif0_clk_a_pins
[] = {
2832 static const unsigned int scif0_clk_a_mux
[] = {
2836 static const unsigned int scif0_ctrl_a_pins
[] = {
2838 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 3),
2841 static const unsigned int scif0_ctrl_a_mux
[] = {
2842 RTS0_N_TANS_A_MARK
, CTS0_N_A_MARK
,
2845 static const unsigned int scif0_data_b_pins
[] = {
2847 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 19),
2850 static const unsigned int scif0_data_b_mux
[] = {
2851 RX0_B_MARK
, TX0_B_MARK
,
2854 static const unsigned int scif0_clk_b_pins
[] = {
2859 static const unsigned int scif0_clk_b_mux
[] = {
2863 /* - SCIF1 ------------------------------------------------------------------ */
2864 static const unsigned int scif1_data_pins
[] = {
2866 RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
2869 static const unsigned int scif1_data_mux
[] = {
2873 static const unsigned int scif1_clk_pins
[] = {
2878 static const unsigned int scif1_clk_mux
[] = {
2882 static const unsigned int scif1_ctrl_pins
[] = {
2884 RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 7),
2887 static const unsigned int scif1_ctrl_mux
[] = {
2888 RTS1_N_TANS_MARK
, CTS1_N_MARK
,
2891 /* - SCIF2 ------------------------------------------------------------------ */
2892 static const unsigned int scif2_data_a_pins
[] = {
2894 RCAR_GP_PIN(5, 9), RCAR_GP_PIN(5, 8),
2897 static const unsigned int scif2_data_a_mux
[] = {
2898 RX2_A_MARK
, TX2_A_MARK
,
2901 static const unsigned int scif2_clk_a_pins
[] = {
2906 static const unsigned int scif2_clk_a_mux
[] = {
2910 static const unsigned int scif2_data_b_pins
[] = {
2912 RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 11),
2915 static const unsigned int scif2_data_b_mux
[] = {
2916 RX2_B_MARK
, TX2_B_MARK
,
2919 /* - SCIF3 ------------------------------------------------------------------ */
2920 static const unsigned int scif3_data_a_pins
[] = {
2922 RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6),
2925 static const unsigned int scif3_data_a_mux
[] = {
2926 RX3_A_MARK
, TX3_A_MARK
,
2929 static const unsigned int scif3_clk_a_pins
[] = {
2934 static const unsigned int scif3_clk_a_mux
[] = {
2938 static const unsigned int scif3_ctrl_a_pins
[] = {
2940 RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 7),
2943 static const unsigned int scif3_ctrl_a_mux
[] = {
2944 RTS3_N_TANS_A_MARK
, CTS3_N_A_MARK
,
2947 static const unsigned int scif3_data_b_pins
[] = {
2949 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
2952 static const unsigned int scif3_data_b_mux
[] = {
2953 RX3_B_MARK
, TX3_B_MARK
,
2956 static const unsigned int scif3_data_c_pins
[] = {
2958 RCAR_GP_PIN(2, 23), RCAR_GP_PIN(2, 22),
2961 static const unsigned int scif3_data_c_mux
[] = {
2962 RX3_C_MARK
, TX3_C_MARK
,
2965 static const unsigned int scif3_clk_c_pins
[] = {
2970 static const unsigned int scif3_clk_c_mux
[] = {
2974 /* - SCIF4 ------------------------------------------------------------------ */
2975 static const unsigned int scif4_data_a_pins
[] = {
2977 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
2980 static const unsigned int scif4_data_a_mux
[] = {
2981 RX4_A_MARK
, TX4_A_MARK
,
2984 static const unsigned int scif4_clk_a_pins
[] = {
2989 static const unsigned int scif4_clk_a_mux
[] = {
2993 static const unsigned int scif4_ctrl_a_pins
[] = {
2995 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3),
2998 static const unsigned int scif4_ctrl_a_mux
[] = {
2999 RTS4_N_TANS_A_MARK
, CTS4_N_A_MARK
,
3002 static const unsigned int scif4_data_b_pins
[] = {
3004 RCAR_GP_PIN(0, 13), RCAR_GP_PIN(0, 12),
3007 static const unsigned int scif4_data_b_mux
[] = {
3008 RX4_B_MARK
, TX4_B_MARK
,
3011 static const unsigned int scif4_clk_b_pins
[] = {
3016 static const unsigned int scif4_clk_b_mux
[] = {
3020 static const unsigned int scif4_data_c_pins
[] = {
3022 RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
3025 static const unsigned int scif4_data_c_mux
[] = {
3026 RX4_C_MARK
, TX4_C_MARK
,
3029 static const unsigned int scif4_ctrl_c_pins
[] = {
3031 RCAR_GP_PIN(0, 1), RCAR_GP_PIN(0, 0),
3034 static const unsigned int scif4_ctrl_c_mux
[] = {
3035 RTS4_N_TANS_C_MARK
, CTS4_N_C_MARK
,
3038 /* - SCIF5 ------------------------------------------------------------------ */
3039 static const unsigned int scif5_data_a_pins
[] = {
3041 RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 9),
3044 static const unsigned int scif5_data_a_mux
[] = {
3045 RX5_A_MARK
, TX5_A_MARK
,
3048 static const unsigned int scif5_clk_a_pins
[] = {
3053 static const unsigned int scif5_clk_a_mux
[] = {
3057 static const unsigned int scif5_data_b_pins
[] = {
3059 RCAR_GP_PIN(2, 25), RCAR_GP_PIN(2, 24),
3062 static const unsigned int scif5_data_b_mux
[] = {
3063 RX5_B_MARK
, TX5_B_MARK
,
3066 static const unsigned int scif5_data_c_pins
[] = {
3068 RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
3071 static const unsigned int scif5_data_c_mux
[] = {
3072 RX5_C_MARK
, TX5_C_MARK
,
3075 /* - SCIF Clock ------------------------------------------------------------- */
3076 static const unsigned int scif_clk_a_pins
[] = {
3081 static const unsigned int scif_clk_a_mux
[] = {
3085 static const unsigned int scif_clk_b_pins
[] = {
3090 static const unsigned int scif_clk_b_mux
[] = {
3094 /* - SDHI0 ------------------------------------------------------------------ */
3095 static const unsigned int sdhi0_data1_pins
[] = {
3100 static const unsigned int sdhi0_data1_mux
[] = {
3104 static const unsigned int sdhi0_data4_pins
[] = {
3106 RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
3107 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5),
3110 static const unsigned int sdhi0_data4_mux
[] = {
3111 SD0_DAT0_MARK
, SD0_DAT1_MARK
,
3112 SD0_DAT2_MARK
, SD0_DAT3_MARK
,
3115 static const unsigned int sdhi0_ctrl_pins
[] = {
3117 RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 1),
3120 static const unsigned int sdhi0_ctrl_mux
[] = {
3121 SD0_CLK_MARK
, SD0_CMD_MARK
,
3124 static const unsigned int sdhi0_cd_pins
[] = {
3129 static const unsigned int sdhi0_cd_mux
[] = {
3133 static const unsigned int sdhi0_wp_pins
[] = {
3138 static const unsigned int sdhi0_wp_mux
[] = {
3142 /* - SDHI1 ------------------------------------------------------------------ */
3143 static const unsigned int sdhi1_data1_pins
[] = {
3148 static const unsigned int sdhi1_data1_mux
[] = {
3152 static const unsigned int sdhi1_data4_pins
[] = {
3154 RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
3155 RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
3158 static const unsigned int sdhi1_data4_mux
[] = {
3159 SD1_DAT0_MARK
, SD1_DAT1_MARK
,
3160 SD1_DAT2_MARK
, SD1_DAT3_MARK
,
3163 static const unsigned int sdhi1_ctrl_pins
[] = {
3165 RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 7),
3168 static const unsigned int sdhi1_ctrl_mux
[] = {
3169 SD1_CLK_MARK
, SD1_CMD_MARK
,
3172 static const unsigned int sdhi1_cd_pins
[] = {
3177 static const unsigned int sdhi1_cd_mux
[] = {
3181 static const unsigned int sdhi1_wp_pins
[] = {
3186 static const unsigned int sdhi1_wp_mux
[] = {
3190 /* - SDHI3 ------------------------------------------------------------------ */
3191 static const unsigned int sdhi3_data1_pins
[] = {
3196 static const unsigned int sdhi3_data1_mux
[] = {
3200 static const unsigned int sdhi3_data4_pins
[] = {
3202 RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
3203 RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
3206 static const unsigned int sdhi3_data4_mux
[] = {
3207 SD3_DAT0_MARK
, SD3_DAT1_MARK
,
3208 SD3_DAT2_MARK
, SD3_DAT3_MARK
,
3211 static const unsigned int sdhi3_data8_pins
[] = {
3213 RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
3214 RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
3215 RCAR_GP_PIN(4, 6), RCAR_GP_PIN(4, 7),
3216 RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
3219 static const unsigned int sdhi3_data8_mux
[] = {
3220 SD3_DAT0_MARK
, SD3_DAT1_MARK
,
3221 SD3_DAT2_MARK
, SD3_DAT3_MARK
,
3222 SD3_DAT4_MARK
, SD3_DAT5_MARK
,
3223 SD3_DAT6_MARK
, SD3_DAT7_MARK
,
3226 static const unsigned int sdhi3_ctrl_pins
[] = {
3228 RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1),
3231 static const unsigned int sdhi3_ctrl_mux
[] = {
3232 SD3_CLK_MARK
, SD3_CMD_MARK
,
3235 static const unsigned int sdhi3_cd_pins
[] = {
3240 static const unsigned int sdhi3_cd_mux
[] = {
3244 static const unsigned int sdhi3_wp_pins
[] = {
3249 static const unsigned int sdhi3_wp_mux
[] = {
3253 static const unsigned int sdhi3_ds_pins
[] = {
3258 static const unsigned int sdhi3_ds_mux
[] = {
3262 /* - SSI -------------------------------------------------------------------- */
3263 static const unsigned int ssi0_data_pins
[] = {
3268 static const unsigned int ssi0_data_mux
[] = {
3272 static const unsigned int ssi01239_ctrl_pins
[] = {
3274 RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
3277 static const unsigned int ssi01239_ctrl_mux
[] = {
3278 SSI_SCK01239_MARK
, SSI_WS01239_MARK
,
3281 static const unsigned int ssi1_data_pins
[] = {
3286 static const unsigned int ssi1_data_mux
[] = {
3290 static const unsigned int ssi1_ctrl_pins
[] = {
3292 RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 15),
3295 static const unsigned int ssi1_ctrl_mux
[] = {
3296 SSI_SCK1_MARK
, SSI_WS1_MARK
,
3299 static const unsigned int ssi2_data_pins
[] = {
3304 static const unsigned int ssi2_data_mux
[] = {
3308 static const unsigned int ssi2_ctrl_a_pins
[] = {
3310 RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
3313 static const unsigned int ssi2_ctrl_a_mux
[] = {
3314 SSI_SCK2_A_MARK
, SSI_WS2_A_MARK
,
3317 static const unsigned int ssi2_ctrl_b_pins
[] = {
3319 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
3322 static const unsigned int ssi2_ctrl_b_mux
[] = {
3323 SSI_SCK2_B_MARK
, SSI_WS2_B_MARK
,
3326 static const unsigned int ssi3_data_pins
[] = {
3331 static const unsigned int ssi3_data_mux
[] = {
3335 static const unsigned int ssi349_ctrl_pins
[] = {
3337 RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 6),
3340 static const unsigned int ssi349_ctrl_mux
[] = {
3341 SSI_SCK349_MARK
, SSI_WS349_MARK
,
3344 static const unsigned int ssi4_data_pins
[] = {
3349 static const unsigned int ssi4_data_mux
[] = {
3353 static const unsigned int ssi4_ctrl_pins
[] = {
3355 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 15),
3358 static const unsigned int ssi4_ctrl_mux
[] = {
3359 SSI_SCK4_MARK
, SSI_WS4_MARK
,
3362 static const unsigned int ssi5_data_pins
[] = {
3367 static const unsigned int ssi5_data_mux
[] = {
3371 static const unsigned int ssi5_ctrl_pins
[] = {
3373 RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
3376 static const unsigned int ssi5_ctrl_mux
[] = {
3377 SSI_SCK5_MARK
, SSI_WS5_MARK
,
3380 static const unsigned int ssi6_data_pins
[] = {
3385 static const unsigned int ssi6_data_mux
[] = {
3389 static const unsigned int ssi6_ctrl_pins
[] = {
3391 RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
3394 static const unsigned int ssi6_ctrl_mux
[] = {
3395 SSI_SCK6_MARK
, SSI_WS6_MARK
,
3398 static const unsigned int ssi7_data_pins
[] = {
3403 static const unsigned int ssi7_data_mux
[] = {
3407 static const unsigned int ssi78_ctrl_pins
[] = {
3409 RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
3412 static const unsigned int ssi78_ctrl_mux
[] = {
3413 SSI_SCK78_MARK
, SSI_WS78_MARK
,
3416 static const unsigned int ssi8_data_pins
[] = {
3421 static const unsigned int ssi8_data_mux
[] = {
3425 static const unsigned int ssi9_data_pins
[] = {
3430 static const unsigned int ssi9_data_mux
[] = {
3434 static const unsigned int ssi9_ctrl_a_pins
[] = {
3436 RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 10),
3439 static const unsigned int ssi9_ctrl_a_mux
[] = {
3440 SSI_SCK9_A_MARK
, SSI_WS9_A_MARK
,
3443 static const unsigned int ssi9_ctrl_b_pins
[] = {
3445 RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
3448 static const unsigned int ssi9_ctrl_b_mux
[] = {
3449 SSI_SCK9_B_MARK
, SSI_WS9_B_MARK
,
3452 /* - TMU -------------------------------------------------------------------- */
3453 static const unsigned int tmu_tclk1_a_pins
[] = {
3458 static const unsigned int tmu_tclk1_a_mux
[] = {
3462 static const unsigned int tmu_tclk1_b_pins
[] = {
3467 static const unsigned int tmu_tclk1_b_mux
[] = {
3471 static const unsigned int tmu_tclk2_a_pins
[] = {
3476 static const unsigned int tmu_tclk2_a_mux
[] = {
3480 static const unsigned int tmu_tclk2_b_pins
[] = {
3485 static const unsigned int tmu_tclk2_b_mux
[] = {
3489 /* - USB0 ------------------------------------------------------------------- */
3490 static const unsigned int usb0_a_pins
[] = {
3492 RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 9),
3495 static const unsigned int usb0_a_mux
[] = {
3496 USB0_PWEN_A_MARK
, USB0_OVC_A_MARK
,
3499 static const unsigned int usb0_b_pins
[] = {
3501 RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
3504 static const unsigned int usb0_b_mux
[] = {
3505 USB0_PWEN_B_MARK
, USB0_OVC_B_MARK
,
3508 static const unsigned int usb0_id_pins
[] = {
3513 static const unsigned int usb0_id_mux
[] = {
3517 /* - USB30 ------------------------------------------------------------------ */
3518 static const unsigned int usb30_pins
[] = {
3520 RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 9),
3523 static const unsigned int usb30_mux
[] = {
3524 USB30_PWEN_MARK
, USB30_OVC_MARK
,
3527 static const unsigned int usb30_id_pins
[] = {
3532 static const unsigned int usb30_id_mux
[] = {
3536 /* - VIN4 ------------------------------------------------------------------- */
3537 static const unsigned int vin4_data18_a_pins
[] = {
3538 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9),
3539 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
3540 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
3541 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3542 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
3543 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
3544 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3545 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3546 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(0, 1),
3549 static const unsigned int vin4_data18_a_mux
[] = {
3550 VI4_DATA2_A_MARK
, VI4_DATA3_A_MARK
,
3551 VI4_DATA4_A_MARK
, VI4_DATA5_A_MARK
,
3552 VI4_DATA6_A_MARK
, VI4_DATA7_A_MARK
,
3553 VI4_DATA10_MARK
, VI4_DATA11_MARK
,
3554 VI4_DATA12_MARK
, VI4_DATA13_MARK
,
3555 VI4_DATA14_MARK
, VI4_DATA15_MARK
,
3556 VI4_DATA18_MARK
, VI4_DATA19_MARK
,
3557 VI4_DATA20_MARK
, VI4_DATA21_MARK
,
3558 VI4_DATA22_MARK
, VI4_DATA23_MARK
,
3561 static const union vin_data vin4_data_a_pins
= {
3563 RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7),
3564 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9),
3565 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
3566 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
3567 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
3568 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3569 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
3570 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
3571 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 12),
3572 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3573 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3574 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(0, 1),
3578 static const union vin_data vin4_data_a_mux
= {
3580 VI4_DATA0_A_MARK
, VI4_DATA1_A_MARK
,
3581 VI4_DATA2_A_MARK
, VI4_DATA3_A_MARK
,
3582 VI4_DATA4_A_MARK
, VI4_DATA5_A_MARK
,
3583 VI4_DATA6_A_MARK
, VI4_DATA7_A_MARK
,
3584 VI4_DATA8_MARK
, VI4_DATA9_MARK
,
3585 VI4_DATA10_MARK
, VI4_DATA11_MARK
,
3586 VI4_DATA12_MARK
, VI4_DATA13_MARK
,
3587 VI4_DATA14_MARK
, VI4_DATA15_MARK
,
3588 VI4_DATA16_MARK
, VI4_DATA17_MARK
,
3589 VI4_DATA18_MARK
, VI4_DATA19_MARK
,
3590 VI4_DATA20_MARK
, VI4_DATA21_MARK
,
3591 VI4_DATA22_MARK
, VI4_DATA23_MARK
,
3595 static const unsigned int vin4_data18_b_pins
[] = {
3596 RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22),
3597 RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6),
3598 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(0, 17),
3599 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3600 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
3601 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
3602 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3603 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3604 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(0, 1),
3607 static const unsigned int vin4_data18_b_mux
[] = {
3608 VI4_DATA2_B_MARK
, VI4_DATA3_B_MARK
,
3609 VI4_DATA4_B_MARK
, VI4_DATA5_B_MARK
,
3610 VI4_DATA6_B_MARK
, VI4_DATA7_B_MARK
,
3611 VI4_DATA10_MARK
, VI4_DATA11_MARK
,
3612 VI4_DATA12_MARK
, VI4_DATA13_MARK
,
3613 VI4_DATA14_MARK
, VI4_DATA15_MARK
,
3614 VI4_DATA18_MARK
, VI4_DATA19_MARK
,
3615 VI4_DATA20_MARK
, VI4_DATA21_MARK
,
3616 VI4_DATA22_MARK
, VI4_DATA23_MARK
,
3619 static const union vin_data vin4_data_b_pins
= {
3621 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
3622 RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22),
3623 RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6),
3624 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(0, 17),
3625 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
3626 RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3627 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
3628 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 14),
3629 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 12),
3630 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3631 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3632 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(0, 1),
3636 static const union vin_data vin4_data_b_mux
= {
3638 VI4_DATA0_B_MARK
, VI4_DATA1_B_MARK
,
3639 VI4_DATA2_B_MARK
, VI4_DATA3_B_MARK
,
3640 VI4_DATA4_B_MARK
, VI4_DATA5_B_MARK
,
3641 VI4_DATA6_B_MARK
, VI4_DATA7_B_MARK
,
3642 VI4_DATA8_MARK
, VI4_DATA9_MARK
,
3643 VI4_DATA10_MARK
, VI4_DATA11_MARK
,
3644 VI4_DATA12_MARK
, VI4_DATA13_MARK
,
3645 VI4_DATA14_MARK
, VI4_DATA15_MARK
,
3646 VI4_DATA16_MARK
, VI4_DATA17_MARK
,
3647 VI4_DATA18_MARK
, VI4_DATA19_MARK
,
3648 VI4_DATA20_MARK
, VI4_DATA21_MARK
,
3649 VI4_DATA22_MARK
, VI4_DATA23_MARK
,
3653 static const unsigned int vin4_sync_pins
[] = {
3655 RCAR_GP_PIN(2, 25), RCAR_GP_PIN(2, 24),
3658 static const unsigned int vin4_sync_mux
[] = {
3659 VI4_HSYNC_N_MARK
, VI4_VSYNC_N_MARK
,
3662 static const unsigned int vin4_field_pins
[] = {
3666 static const unsigned int vin4_field_mux
[] = {
3670 static const unsigned int vin4_clkenb_pins
[] = {
3674 static const unsigned int vin4_clkenb_mux
[] = {
3678 static const unsigned int vin4_clk_pins
[] = {
3682 static const unsigned int vin4_clk_mux
[] = {
3686 /* - VIN5 ------------------------------------------------------------------- */
3687 static const union vin_data16 vin5_data_a_pins
= {
3689 RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 2),
3690 RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 12),
3691 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
3692 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3693 RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
3694 RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 11),
3695 RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 10),
3696 RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
3700 static const union vin_data16 vin5_data_a_mux
= {
3702 VI5_DATA0_A_MARK
, VI5_DATA1_A_MARK
,
3703 VI5_DATA2_A_MARK
, VI5_DATA3_A_MARK
,
3704 VI5_DATA4_A_MARK
, VI5_DATA5_A_MARK
,
3705 VI5_DATA6_A_MARK
, VI5_DATA7_A_MARK
,
3706 VI5_DATA8_A_MARK
, VI5_DATA9_A_MARK
,
3707 VI5_DATA10_A_MARK
, VI5_DATA11_A_MARK
,
3708 VI5_DATA12_A_MARK
, VI5_DATA13_A_MARK
,
3709 VI5_DATA14_A_MARK
, VI5_DATA15_A_MARK
,
3713 static const unsigned int vin5_data8_b_pins
[] = {
3714 RCAR_GP_PIN(2, 23), RCAR_GP_PIN(0, 4),
3715 RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 12),
3716 RCAR_GP_PIN(0, 13), RCAR_GP_PIN(0, 14),
3717 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(0, 17),
3720 static const unsigned int vin5_data8_b_mux
[] = {
3721 VI5_DATA0_B_MARK
, VI5_DATA1_B_MARK
,
3722 VI5_DATA2_B_MARK
, VI5_DATA3_B_MARK
,
3723 VI5_DATA4_B_MARK
, VI5_DATA5_B_MARK
,
3724 VI5_DATA6_B_MARK
, VI5_DATA7_B_MARK
,
3727 static const unsigned int vin5_sync_a_pins
[] = {
3728 /* HSYNC_N, VSYNC_N */
3729 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 9),
3732 static const unsigned int vin5_sync_a_mux
[] = {
3733 VI5_HSYNC_N_A_MARK
, VI5_VSYNC_N_A_MARK
,
3736 static const unsigned int vin5_field_a_pins
[] = {
3740 static const unsigned int vin5_field_a_mux
[] = {
3744 static const unsigned int vin5_clkenb_a_pins
[] = {
3748 static const unsigned int vin5_clkenb_a_mux
[] = {
3752 static const unsigned int vin5_clk_a_pins
[] = {
3756 static const unsigned int vin5_clk_a_mux
[] = {
3760 static const unsigned int vin5_clk_b_pins
[] = {
3764 static const unsigned int vin5_clk_b_mux
[] = {
3768 static const struct {
3769 struct sh_pfc_pin_group common
[245];
3770 struct sh_pfc_pin_group automotive
[23];
3773 SH_PFC_PIN_GROUP(audio_clk_a
),
3774 SH_PFC_PIN_GROUP(audio_clk_b_a
),
3775 SH_PFC_PIN_GROUP(audio_clk_b_b
),
3776 SH_PFC_PIN_GROUP(audio_clk_b_c
),
3777 SH_PFC_PIN_GROUP(audio_clk_c_a
),
3778 SH_PFC_PIN_GROUP(audio_clk_c_b
),
3779 SH_PFC_PIN_GROUP(audio_clk_c_c
),
3780 SH_PFC_PIN_GROUP(audio_clkout_a
),
3781 SH_PFC_PIN_GROUP(audio_clkout_b
),
3782 SH_PFC_PIN_GROUP(audio_clkout1_a
),
3783 SH_PFC_PIN_GROUP(audio_clkout1_b
),
3784 SH_PFC_PIN_GROUP(audio_clkout1_c
),
3785 SH_PFC_PIN_GROUP(audio_clkout2_a
),
3786 SH_PFC_PIN_GROUP(audio_clkout2_b
),
3787 SH_PFC_PIN_GROUP(audio_clkout2_c
),
3788 SH_PFC_PIN_GROUP(audio_clkout3_a
),
3789 SH_PFC_PIN_GROUP(audio_clkout3_b
),
3790 SH_PFC_PIN_GROUP(audio_clkout3_c
),
3791 SH_PFC_PIN_GROUP(avb_link
),
3792 SH_PFC_PIN_GROUP(avb_magic
),
3793 SH_PFC_PIN_GROUP(avb_phy_int
),
3794 SH_PFC_PIN_GROUP(avb_mii
),
3795 SH_PFC_PIN_GROUP(avb_avtp_pps
),
3796 SH_PFC_PIN_GROUP(avb_avtp_match_a
),
3797 SH_PFC_PIN_GROUP(avb_avtp_capture_a
),
3798 SH_PFC_PIN_GROUP(can0_data
),
3799 SH_PFC_PIN_GROUP(can1_data
),
3800 SH_PFC_PIN_GROUP(can_clk
),
3801 SH_PFC_PIN_GROUP(du_rgb666
),
3802 SH_PFC_PIN_GROUP(du_rgb888
),
3803 SH_PFC_PIN_GROUP(du_clk_in_0
),
3804 SH_PFC_PIN_GROUP(du_clk_in_1
),
3805 SH_PFC_PIN_GROUP(du_clk_out_0
),
3806 SH_PFC_PIN_GROUP(du_sync
),
3807 SH_PFC_PIN_GROUP(du_disp_cde
),
3808 SH_PFC_PIN_GROUP(du_cde
),
3809 SH_PFC_PIN_GROUP(du_disp
),
3810 SH_PFC_PIN_GROUP(hscif0_data_a
),
3811 SH_PFC_PIN_GROUP(hscif0_clk_a
),
3812 SH_PFC_PIN_GROUP(hscif0_ctrl_a
),
3813 SH_PFC_PIN_GROUP(hscif0_data_b
),
3814 SH_PFC_PIN_GROUP(hscif0_clk_b
),
3815 SH_PFC_PIN_GROUP(hscif1_data_a
),
3816 SH_PFC_PIN_GROUP(hscif1_clk_a
),
3817 SH_PFC_PIN_GROUP(hscif1_data_b
),
3818 SH_PFC_PIN_GROUP(hscif1_clk_b
),
3819 SH_PFC_PIN_GROUP(hscif1_ctrl_b
),
3820 SH_PFC_PIN_GROUP(hscif2_data_a
),
3821 SH_PFC_PIN_GROUP(hscif2_clk_a
),
3822 SH_PFC_PIN_GROUP(hscif2_ctrl_a
),
3823 SH_PFC_PIN_GROUP(hscif2_data_b
),
3824 SH_PFC_PIN_GROUP(hscif3_data_a
),
3825 SH_PFC_PIN_GROUP(hscif3_data_b
),
3826 SH_PFC_PIN_GROUP(hscif3_clk_b
),
3827 SH_PFC_PIN_GROUP(hscif3_data_c
),
3828 SH_PFC_PIN_GROUP(hscif3_clk_c
),
3829 SH_PFC_PIN_GROUP(hscif3_ctrl_c
),
3830 SH_PFC_PIN_GROUP(hscif3_data_d
),
3831 SH_PFC_PIN_GROUP(hscif3_data_e
),
3832 SH_PFC_PIN_GROUP(hscif3_ctrl_e
),
3833 SH_PFC_PIN_GROUP(hscif4_data_a
),
3834 SH_PFC_PIN_GROUP(hscif4_clk_a
),
3835 SH_PFC_PIN_GROUP(hscif4_ctrl_a
),
3836 SH_PFC_PIN_GROUP(hscif4_data_b
),
3837 SH_PFC_PIN_GROUP(hscif4_clk_b
),
3838 SH_PFC_PIN_GROUP(hscif4_data_c
),
3839 SH_PFC_PIN_GROUP(hscif4_data_d
),
3840 SH_PFC_PIN_GROUP(hscif4_data_e
),
3841 SH_PFC_PIN_GROUP(i2c1_a
),
3842 SH_PFC_PIN_GROUP(i2c1_b
),
3843 SH_PFC_PIN_GROUP(i2c1_c
),
3844 SH_PFC_PIN_GROUP(i2c1_d
),
3845 SH_PFC_PIN_GROUP(i2c2_a
),
3846 SH_PFC_PIN_GROUP(i2c2_b
),
3847 SH_PFC_PIN_GROUP(i2c2_c
),
3848 SH_PFC_PIN_GROUP(i2c2_d
),
3849 SH_PFC_PIN_GROUP(i2c2_e
),
3850 SH_PFC_PIN_GROUP(i2c4
),
3851 SH_PFC_PIN_GROUP(i2c5
),
3852 SH_PFC_PIN_GROUP(i2c6_a
),
3853 SH_PFC_PIN_GROUP(i2c6_b
),
3854 SH_PFC_PIN_GROUP(i2c7_a
),
3855 SH_PFC_PIN_GROUP(i2c7_b
),
3856 SH_PFC_PIN_GROUP(intc_ex_irq0
),
3857 SH_PFC_PIN_GROUP(intc_ex_irq1
),
3858 SH_PFC_PIN_GROUP(intc_ex_irq2
),
3859 SH_PFC_PIN_GROUP(intc_ex_irq3
),
3860 SH_PFC_PIN_GROUP(intc_ex_irq4
),
3861 SH_PFC_PIN_GROUP(intc_ex_irq5
),
3862 SH_PFC_PIN_GROUP(msiof0_clk
),
3863 SH_PFC_PIN_GROUP(msiof0_sync
),
3864 SH_PFC_PIN_GROUP(msiof0_ss1
),
3865 SH_PFC_PIN_GROUP(msiof0_ss2
),
3866 SH_PFC_PIN_GROUP(msiof0_txd
),
3867 SH_PFC_PIN_GROUP(msiof0_rxd
),
3868 SH_PFC_PIN_GROUP(msiof1_clk
),
3869 SH_PFC_PIN_GROUP(msiof1_sync
),
3870 SH_PFC_PIN_GROUP(msiof1_ss1
),
3871 SH_PFC_PIN_GROUP(msiof1_ss2
),
3872 SH_PFC_PIN_GROUP(msiof1_txd
),
3873 SH_PFC_PIN_GROUP(msiof1_rxd
),
3874 SH_PFC_PIN_GROUP(msiof2_clk_a
),
3875 SH_PFC_PIN_GROUP(msiof2_sync_a
),
3876 SH_PFC_PIN_GROUP(msiof2_ss1_a
),
3877 SH_PFC_PIN_GROUP(msiof2_ss2_a
),
3878 SH_PFC_PIN_GROUP(msiof2_txd_a
),
3879 SH_PFC_PIN_GROUP(msiof2_rxd_a
),
3880 SH_PFC_PIN_GROUP(msiof2_clk_b
),
3881 SH_PFC_PIN_GROUP(msiof2_sync_b
),
3882 SH_PFC_PIN_GROUP(msiof2_ss1_b
),
3883 SH_PFC_PIN_GROUP(msiof2_ss2_b
),
3884 SH_PFC_PIN_GROUP(msiof2_txd_b
),
3885 SH_PFC_PIN_GROUP(msiof2_rxd_b
),
3886 SH_PFC_PIN_GROUP(msiof3_clk_a
),
3887 SH_PFC_PIN_GROUP(msiof3_sync_a
),
3888 SH_PFC_PIN_GROUP(msiof3_ss1_a
),
3889 SH_PFC_PIN_GROUP(msiof3_ss2_a
),
3890 SH_PFC_PIN_GROUP(msiof3_txd_a
),
3891 SH_PFC_PIN_GROUP(msiof3_rxd_a
),
3892 SH_PFC_PIN_GROUP(msiof3_clk_b
),
3893 SH_PFC_PIN_GROUP(msiof3_sync_b
),
3894 SH_PFC_PIN_GROUP(msiof3_ss1_b
),
3895 SH_PFC_PIN_GROUP(msiof3_txd_b
),
3896 SH_PFC_PIN_GROUP(msiof3_rxd_b
),
3897 SH_PFC_PIN_GROUP(pwm0_a
),
3898 SH_PFC_PIN_GROUP(pwm0_b
),
3899 SH_PFC_PIN_GROUP(pwm1_a
),
3900 SH_PFC_PIN_GROUP(pwm1_b
),
3901 SH_PFC_PIN_GROUP(pwm2_a
),
3902 SH_PFC_PIN_GROUP(pwm2_b
),
3903 SH_PFC_PIN_GROUP(pwm2_c
),
3904 SH_PFC_PIN_GROUP(pwm3_a
),
3905 SH_PFC_PIN_GROUP(pwm3_b
),
3906 SH_PFC_PIN_GROUP(pwm3_c
),
3907 SH_PFC_PIN_GROUP(pwm4_a
),
3908 SH_PFC_PIN_GROUP(pwm4_b
),
3909 SH_PFC_PIN_GROUP(pwm5_a
),
3910 SH_PFC_PIN_GROUP(pwm5_b
),
3911 SH_PFC_PIN_GROUP(pwm6_a
),
3912 SH_PFC_PIN_GROUP(pwm6_b
),
3913 SH_PFC_PIN_GROUP(scif0_data_a
),
3914 SH_PFC_PIN_GROUP(scif0_clk_a
),
3915 SH_PFC_PIN_GROUP(scif0_ctrl_a
),
3916 SH_PFC_PIN_GROUP(scif0_data_b
),
3917 SH_PFC_PIN_GROUP(scif0_clk_b
),
3918 SH_PFC_PIN_GROUP(scif1_data
),
3919 SH_PFC_PIN_GROUP(scif1_clk
),
3920 SH_PFC_PIN_GROUP(scif1_ctrl
),
3921 SH_PFC_PIN_GROUP(scif2_data_a
),
3922 SH_PFC_PIN_GROUP(scif2_clk_a
),
3923 SH_PFC_PIN_GROUP(scif2_data_b
),
3924 SH_PFC_PIN_GROUP(scif3_data_a
),
3925 SH_PFC_PIN_GROUP(scif3_clk_a
),
3926 SH_PFC_PIN_GROUP(scif3_ctrl_a
),
3927 SH_PFC_PIN_GROUP(scif3_data_b
),
3928 SH_PFC_PIN_GROUP(scif3_data_c
),
3929 SH_PFC_PIN_GROUP(scif3_clk_c
),
3930 SH_PFC_PIN_GROUP(scif4_data_a
),
3931 SH_PFC_PIN_GROUP(scif4_clk_a
),
3932 SH_PFC_PIN_GROUP(scif4_ctrl_a
),
3933 SH_PFC_PIN_GROUP(scif4_data_b
),
3934 SH_PFC_PIN_GROUP(scif4_clk_b
),
3935 SH_PFC_PIN_GROUP(scif4_data_c
),
3936 SH_PFC_PIN_GROUP(scif4_ctrl_c
),
3937 SH_PFC_PIN_GROUP(scif5_data_a
),
3938 SH_PFC_PIN_GROUP(scif5_clk_a
),
3939 SH_PFC_PIN_GROUP(scif5_data_b
),
3940 SH_PFC_PIN_GROUP(scif5_data_c
),
3941 SH_PFC_PIN_GROUP(scif_clk_a
),
3942 SH_PFC_PIN_GROUP(scif_clk_b
),
3943 SH_PFC_PIN_GROUP(sdhi0_data1
),
3944 SH_PFC_PIN_GROUP(sdhi0_data4
),
3945 SH_PFC_PIN_GROUP(sdhi0_ctrl
),
3946 SH_PFC_PIN_GROUP(sdhi0_cd
),
3947 SH_PFC_PIN_GROUP(sdhi0_wp
),
3948 SH_PFC_PIN_GROUP(sdhi1_data1
),
3949 SH_PFC_PIN_GROUP(sdhi1_data4
),
3950 SH_PFC_PIN_GROUP(sdhi1_ctrl
),
3951 SH_PFC_PIN_GROUP(sdhi1_cd
),
3952 SH_PFC_PIN_GROUP(sdhi1_wp
),
3953 SH_PFC_PIN_GROUP(sdhi3_data1
),
3954 SH_PFC_PIN_GROUP(sdhi3_data4
),
3955 SH_PFC_PIN_GROUP(sdhi3_data8
),
3956 SH_PFC_PIN_GROUP(sdhi3_ctrl
),
3957 SH_PFC_PIN_GROUP(sdhi3_cd
),
3958 SH_PFC_PIN_GROUP(sdhi3_wp
),
3959 SH_PFC_PIN_GROUP(sdhi3_ds
),
3960 SH_PFC_PIN_GROUP(ssi0_data
),
3961 SH_PFC_PIN_GROUP(ssi01239_ctrl
),
3962 SH_PFC_PIN_GROUP(ssi1_data
),
3963 SH_PFC_PIN_GROUP(ssi1_ctrl
),
3964 SH_PFC_PIN_GROUP(ssi2_data
),
3965 SH_PFC_PIN_GROUP(ssi2_ctrl_a
),
3966 SH_PFC_PIN_GROUP(ssi2_ctrl_b
),
3967 SH_PFC_PIN_GROUP(ssi3_data
),
3968 SH_PFC_PIN_GROUP(ssi349_ctrl
),
3969 SH_PFC_PIN_GROUP(ssi4_data
),
3970 SH_PFC_PIN_GROUP(ssi4_ctrl
),
3971 SH_PFC_PIN_GROUP(ssi5_data
),
3972 SH_PFC_PIN_GROUP(ssi5_ctrl
),
3973 SH_PFC_PIN_GROUP(ssi6_data
),
3974 SH_PFC_PIN_GROUP(ssi6_ctrl
),
3975 SH_PFC_PIN_GROUP(ssi7_data
),
3976 SH_PFC_PIN_GROUP(ssi78_ctrl
),
3977 SH_PFC_PIN_GROUP(ssi8_data
),
3978 SH_PFC_PIN_GROUP(ssi9_data
),
3979 SH_PFC_PIN_GROUP(ssi9_ctrl_a
),
3980 SH_PFC_PIN_GROUP(ssi9_ctrl_b
),
3981 SH_PFC_PIN_GROUP(tmu_tclk1_a
),
3982 SH_PFC_PIN_GROUP(tmu_tclk1_b
),
3983 SH_PFC_PIN_GROUP(tmu_tclk2_a
),
3984 SH_PFC_PIN_GROUP(tmu_tclk2_b
),
3985 SH_PFC_PIN_GROUP(usb0_a
),
3986 SH_PFC_PIN_GROUP(usb0_b
),
3987 SH_PFC_PIN_GROUP(usb0_id
),
3988 SH_PFC_PIN_GROUP(usb30
),
3989 SH_PFC_PIN_GROUP(usb30_id
),
3990 VIN_DATA_PIN_GROUP(vin4_data
, 8, _a
),
3991 VIN_DATA_PIN_GROUP(vin4_data
, 10, _a
),
3992 VIN_DATA_PIN_GROUP(vin4_data
, 12, _a
),
3993 VIN_DATA_PIN_GROUP(vin4_data
, 16, _a
),
3994 SH_PFC_PIN_GROUP(vin4_data18_a
),
3995 VIN_DATA_PIN_GROUP(vin4_data
, 20, _a
),
3996 VIN_DATA_PIN_GROUP(vin4_data
, 24, _a
),
3997 VIN_DATA_PIN_GROUP(vin4_data
, 8, _b
),
3998 VIN_DATA_PIN_GROUP(vin4_data
, 10, _b
),
3999 VIN_DATA_PIN_GROUP(vin4_data
, 12, _b
),
4000 VIN_DATA_PIN_GROUP(vin4_data
, 16, _b
),
4001 SH_PFC_PIN_GROUP(vin4_data18_b
),
4002 VIN_DATA_PIN_GROUP(vin4_data
, 20, _b
),
4003 VIN_DATA_PIN_GROUP(vin4_data
, 24, _b
),
4004 SH_PFC_PIN_GROUP(vin4_sync
),
4005 SH_PFC_PIN_GROUP(vin4_field
),
4006 SH_PFC_PIN_GROUP(vin4_clkenb
),
4007 SH_PFC_PIN_GROUP(vin4_clk
),
4008 VIN_DATA_PIN_GROUP(vin5_data
, 8, _a
),
4009 VIN_DATA_PIN_GROUP(vin5_data
, 10, _a
),
4010 VIN_DATA_PIN_GROUP(vin5_data
, 12, _a
),
4011 VIN_DATA_PIN_GROUP(vin5_data
, 16, _a
),
4012 SH_PFC_PIN_GROUP(vin5_data8_b
),
4013 SH_PFC_PIN_GROUP(vin5_sync_a
),
4014 SH_PFC_PIN_GROUP(vin5_field_a
),
4015 SH_PFC_PIN_GROUP(vin5_clkenb_a
),
4016 SH_PFC_PIN_GROUP(vin5_clk_a
),
4017 SH_PFC_PIN_GROUP(vin5_clk_b
),
4020 SH_PFC_PIN_GROUP(canfd0_data
),
4021 SH_PFC_PIN_GROUP(canfd1_data
),
4022 SH_PFC_PIN_GROUP(drif0_ctrl_a
),
4023 SH_PFC_PIN_GROUP(drif0_data0_a
),
4024 SH_PFC_PIN_GROUP(drif0_data1_a
),
4025 SH_PFC_PIN_GROUP(drif0_ctrl_b
),
4026 SH_PFC_PIN_GROUP(drif0_data0_b
),
4027 SH_PFC_PIN_GROUP(drif0_data1_b
),
4028 SH_PFC_PIN_GROUP(drif1_ctrl
),
4029 SH_PFC_PIN_GROUP(drif1_data0
),
4030 SH_PFC_PIN_GROUP(drif1_data1
),
4031 SH_PFC_PIN_GROUP(drif2_ctrl_a
),
4032 SH_PFC_PIN_GROUP(drif2_data0_a
),
4033 SH_PFC_PIN_GROUP(drif2_data1_a
),
4034 SH_PFC_PIN_GROUP(drif2_ctrl_b
),
4035 SH_PFC_PIN_GROUP(drif2_data0_b
),
4036 SH_PFC_PIN_GROUP(drif2_data1_b
),
4037 SH_PFC_PIN_GROUP(drif3_ctrl_a
),
4038 SH_PFC_PIN_GROUP(drif3_data0_a
),
4039 SH_PFC_PIN_GROUP(drif3_data1_a
),
4040 SH_PFC_PIN_GROUP(drif3_ctrl_b
),
4041 SH_PFC_PIN_GROUP(drif3_data0_b
),
4042 SH_PFC_PIN_GROUP(drif3_data1_b
),
4046 static const char * const audio_clk_groups
[] = {
4067 static const char * const avb_groups
[] = {
4074 "avb_avtp_capture_a",
4077 static const char * const can0_groups
[] = {
4081 static const char * const can1_groups
[] = {
4085 static const char * const can_clk_groups
[] = {
4089 static const char * const canfd0_groups
[] = {
4093 static const char * const canfd1_groups
[] = {
4097 static const char * const drif0_groups
[] = {
4106 static const char * const drif1_groups
[] = {
4112 static const char * const drif2_groups
[] = {
4121 static const char * const drif3_groups
[] = {
4130 static const char * const du_groups
[] = {
4142 static const char * const hscif0_groups
[] = {
4150 static const char * const hscif1_groups
[] = {
4158 static const char * const hscif2_groups
[] = {
4165 static const char * const hscif3_groups
[] = {
4177 static const char * const hscif4_groups
[] = {
4188 static const char * const i2c1_groups
[] = {
4195 static const char * const i2c2_groups
[] = {
4203 static const char * const i2c4_groups
[] = {
4207 static const char * const i2c5_groups
[] = {
4211 static const char * const i2c6_groups
[] = {
4216 static const char * const i2c7_groups
[] = {
4221 static const char * const intc_ex_groups
[] = {
4230 static const char * const msiof0_groups
[] = {
4239 static const char * const msiof1_groups
[] = {
4248 static const char * const msiof2_groups
[] = {
4263 static const char * const msiof3_groups
[] = {
4277 static const char * const pwm0_groups
[] = {
4282 static const char * const pwm1_groups
[] = {
4287 static const char * const pwm2_groups
[] = {
4293 static const char * const pwm3_groups
[] = {
4299 static const char * const pwm4_groups
[] = {
4304 static const char * const pwm5_groups
[] = {
4309 static const char * const pwm6_groups
[] = {
4314 static const char * const scif0_groups
[] = {
4322 static const char * const scif1_groups
[] = {
4328 static const char * const scif2_groups
[] = {
4334 static const char * const scif3_groups
[] = {
4343 static const char * const scif4_groups
[] = {
4353 static const char * const scif5_groups
[] = {
4360 static const char * const scif_clk_groups
[] = {
4365 static const char * const sdhi0_groups
[] = {
4373 static const char * const sdhi1_groups
[] = {
4381 static const char * const sdhi3_groups
[] = {
4391 static const char * const ssi_groups
[] = {
4415 static const char * const tmu_groups
[] = {
4422 static const char * const usb0_groups
[] = {
4428 static const char * const usb30_groups
[] = {
4433 static const char * const vin4_groups
[] = {
4454 static const char * const vin5_groups
[] = {
4467 static const struct {
4468 struct sh_pfc_function common
[45];
4469 struct sh_pfc_function automotive
[6];
4470 } pinmux_functions
= {
4472 SH_PFC_FUNCTION(audio_clk
),
4473 SH_PFC_FUNCTION(avb
),
4474 SH_PFC_FUNCTION(can0
),
4475 SH_PFC_FUNCTION(can1
),
4476 SH_PFC_FUNCTION(can_clk
),
4477 SH_PFC_FUNCTION(du
),
4478 SH_PFC_FUNCTION(hscif0
),
4479 SH_PFC_FUNCTION(hscif1
),
4480 SH_PFC_FUNCTION(hscif2
),
4481 SH_PFC_FUNCTION(hscif3
),
4482 SH_PFC_FUNCTION(hscif4
),
4483 SH_PFC_FUNCTION(i2c1
),
4484 SH_PFC_FUNCTION(i2c2
),
4485 SH_PFC_FUNCTION(i2c4
),
4486 SH_PFC_FUNCTION(i2c5
),
4487 SH_PFC_FUNCTION(i2c6
),
4488 SH_PFC_FUNCTION(i2c7
),
4489 SH_PFC_FUNCTION(intc_ex
),
4490 SH_PFC_FUNCTION(msiof0
),
4491 SH_PFC_FUNCTION(msiof1
),
4492 SH_PFC_FUNCTION(msiof2
),
4493 SH_PFC_FUNCTION(msiof3
),
4494 SH_PFC_FUNCTION(pwm0
),
4495 SH_PFC_FUNCTION(pwm1
),
4496 SH_PFC_FUNCTION(pwm2
),
4497 SH_PFC_FUNCTION(pwm3
),
4498 SH_PFC_FUNCTION(pwm4
),
4499 SH_PFC_FUNCTION(pwm5
),
4500 SH_PFC_FUNCTION(pwm6
),
4501 SH_PFC_FUNCTION(scif0
),
4502 SH_PFC_FUNCTION(scif1
),
4503 SH_PFC_FUNCTION(scif2
),
4504 SH_PFC_FUNCTION(scif3
),
4505 SH_PFC_FUNCTION(scif4
),
4506 SH_PFC_FUNCTION(scif5
),
4507 SH_PFC_FUNCTION(scif_clk
),
4508 SH_PFC_FUNCTION(sdhi0
),
4509 SH_PFC_FUNCTION(sdhi1
),
4510 SH_PFC_FUNCTION(sdhi3
),
4511 SH_PFC_FUNCTION(ssi
),
4512 SH_PFC_FUNCTION(tmu
),
4513 SH_PFC_FUNCTION(usb0
),
4514 SH_PFC_FUNCTION(usb30
),
4515 SH_PFC_FUNCTION(vin4
),
4516 SH_PFC_FUNCTION(vin5
),
4519 SH_PFC_FUNCTION(canfd0
),
4520 SH_PFC_FUNCTION(canfd1
),
4521 SH_PFC_FUNCTION(drif0
),
4522 SH_PFC_FUNCTION(drif1
),
4523 SH_PFC_FUNCTION(drif2
),
4524 SH_PFC_FUNCTION(drif3
),
4528 static const struct pinmux_cfg_reg pinmux_config_regs
[] = {
4529 #define F_(x, y) FN_##y
4530 #define FM(x) FN_##x
4531 { PINMUX_CFG_REG("GPSR0", 0xe6060100, 32, 1) {
4546 GP_0_17_FN
, GPSR0_17
,
4547 GP_0_16_FN
, GPSR0_16
,
4548 GP_0_15_FN
, GPSR0_15
,
4549 GP_0_14_FN
, GPSR0_14
,
4550 GP_0_13_FN
, GPSR0_13
,
4551 GP_0_12_FN
, GPSR0_12
,
4552 GP_0_11_FN
, GPSR0_11
,
4553 GP_0_10_FN
, GPSR0_10
,
4563 GP_0_0_FN
, GPSR0_0
, }
4565 { PINMUX_CFG_REG("GPSR1", 0xe6060104, 32, 1) {
4575 GP_1_22_FN
, GPSR1_22
,
4576 GP_1_21_FN
, GPSR1_21
,
4577 GP_1_20_FN
, GPSR1_20
,
4578 GP_1_19_FN
, GPSR1_19
,
4579 GP_1_18_FN
, GPSR1_18
,
4580 GP_1_17_FN
, GPSR1_17
,
4581 GP_1_16_FN
, GPSR1_16
,
4582 GP_1_15_FN
, GPSR1_15
,
4583 GP_1_14_FN
, GPSR1_14
,
4584 GP_1_13_FN
, GPSR1_13
,
4585 GP_1_12_FN
, GPSR1_12
,
4586 GP_1_11_FN
, GPSR1_11
,
4587 GP_1_10_FN
, GPSR1_10
,
4597 GP_1_0_FN
, GPSR1_0
, }
4599 { PINMUX_CFG_REG("GPSR2", 0xe6060108, 32, 1) {
4606 GP_2_25_FN
, GPSR2_25
,
4607 GP_2_24_FN
, GPSR2_24
,
4608 GP_2_23_FN
, GPSR2_23
,
4609 GP_2_22_FN
, GPSR2_22
,
4610 GP_2_21_FN
, GPSR2_21
,
4611 GP_2_20_FN
, GPSR2_20
,
4612 GP_2_19_FN
, GPSR2_19
,
4613 GP_2_18_FN
, GPSR2_18
,
4614 GP_2_17_FN
, GPSR2_17
,
4615 GP_2_16_FN
, GPSR2_16
,
4616 GP_2_15_FN
, GPSR2_15
,
4617 GP_2_14_FN
, GPSR2_14
,
4618 GP_2_13_FN
, GPSR2_13
,
4619 GP_2_12_FN
, GPSR2_12
,
4620 GP_2_11_FN
, GPSR2_11
,
4621 GP_2_10_FN
, GPSR2_10
,
4631 GP_2_0_FN
, GPSR2_0
, }
4633 { PINMUX_CFG_REG("GPSR3", 0xe606010c, 32, 1) {
4650 GP_3_15_FN
, GPSR3_15
,
4651 GP_3_14_FN
, GPSR3_14
,
4652 GP_3_13_FN
, GPSR3_13
,
4653 GP_3_12_FN
, GPSR3_12
,
4654 GP_3_11_FN
, GPSR3_11
,
4655 GP_3_10_FN
, GPSR3_10
,
4665 GP_3_0_FN
, GPSR3_0
, }
4667 { PINMUX_CFG_REG("GPSR4", 0xe6060110, 32, 1) {
4689 GP_4_10_FN
, GPSR4_10
,
4699 GP_4_0_FN
, GPSR4_0
, }
4701 { PINMUX_CFG_REG("GPSR5", 0xe6060114, 32, 1) {
4714 GP_5_19_FN
, GPSR5_19
,
4715 GP_5_18_FN
, GPSR5_18
,
4716 GP_5_17_FN
, GPSR5_17
,
4717 GP_5_16_FN
, GPSR5_16
,
4718 GP_5_15_FN
, GPSR5_15
,
4719 GP_5_14_FN
, GPSR5_14
,
4720 GP_5_13_FN
, GPSR5_13
,
4721 GP_5_12_FN
, GPSR5_12
,
4722 GP_5_11_FN
, GPSR5_11
,
4723 GP_5_10_FN
, GPSR5_10
,
4733 GP_5_0_FN
, GPSR5_0
, }
4735 { PINMUX_CFG_REG("GPSR6", 0xe6060118, 32, 1) {
4750 GP_6_17_FN
, GPSR6_17
,
4751 GP_6_16_FN
, GPSR6_16
,
4752 GP_6_15_FN
, GPSR6_15
,
4753 GP_6_14_FN
, GPSR6_14
,
4754 GP_6_13_FN
, GPSR6_13
,
4755 GP_6_12_FN
, GPSR6_12
,
4756 GP_6_11_FN
, GPSR6_11
,
4757 GP_6_10_FN
, GPSR6_10
,
4767 GP_6_0_FN
, GPSR6_0
, }
4773 #define FM(x) FN_##x,
4774 { PINMUX_CFG_REG("IPSR0", 0xe6060200, 32, 4) {
4784 { PINMUX_CFG_REG("IPSR1", 0xe6060204, 32, 4) {
4794 { PINMUX_CFG_REG("IPSR2", 0xe6060208, 32, 4) {
4804 { PINMUX_CFG_REG("IPSR3", 0xe606020c, 32, 4) {
4814 { PINMUX_CFG_REG("IPSR4", 0xe6060210, 32, 4) {
4824 { PINMUX_CFG_REG("IPSR5", 0xe6060214, 32, 4) {
4834 { PINMUX_CFG_REG("IPSR6", 0xe6060218, 32, 4) {
4844 { PINMUX_CFG_REG("IPSR7", 0xe606021c, 32, 4) {
4854 { PINMUX_CFG_REG("IPSR8", 0xe6060220, 32, 4) {
4864 { PINMUX_CFG_REG("IPSR9", 0xe6060224, 32, 4) {
4874 { PINMUX_CFG_REG("IPSR10", 0xe6060228, 32, 4) {
4884 { PINMUX_CFG_REG("IPSR11", 0xe606022c, 32, 4) {
4894 { PINMUX_CFG_REG("IPSR12", 0xe6060230, 32, 4) {
4904 { PINMUX_CFG_REG("IPSR13", 0xe6060234, 32, 4) {
4914 { PINMUX_CFG_REG("IPSR14", 0xe6060238, 32, 4) {
4924 { PINMUX_CFG_REG("IPSR15", 0xe606023c, 32, 4) {
4938 #define FM(x) FN_##x,
4939 { PINMUX_CFG_REG_VAR("MOD_SEL0", 0xe6060500, 32,
4940 1, 2, 1, 2, 1, 1, 1, 1, 2, 3, 1,
4941 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 2) {
4967 { PINMUX_CFG_REG_VAR("MOD_SEL1", 0xe6060504, 32,
4968 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1,
4969 1, 2, 2, 2, 1, 1, 2, 1, 4) {
4991 /* RESERVED 3, 2, 1, 0 */
4992 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
5001 static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs
[] = {
5002 [IOCTRL30
] = { 0xe6060380, },
5006 static int r8a77990_pin_to_pocctrl(struct sh_pfc
*pfc
, unsigned int pin
,
5011 *pocctrl
= pinmux_ioctrl_regs
[IOCTRL30
].reg
;
5013 if (pin
>= RCAR_GP_PIN(3, 0) && pin
<= RCAR_GP_PIN(3, 11))
5016 if (pin
>= RCAR_GP_PIN(4, 0) && pin
<= RCAR_GP_PIN(4, 10))
5017 bit
= (pin
& 0x1f) + 19;
5022 static const struct pinmux_bias_reg pinmux_bias_regs
[] = {
5023 { PINMUX_BIAS_REG("PUEN0", 0xe6060400, "PUD0", 0xe6060440) {
5024 [0] = RCAR_GP_PIN(2, 23), /* RD# */
5025 [1] = RCAR_GP_PIN(2, 22), /* BS# */
5026 [2] = RCAR_GP_PIN(2, 21), /* AVB_PHY_INT */
5027 [3] = PIN_NUMBER('P', 5), /* AVB_MDC */
5028 [4] = PIN_NUMBER('P', 4), /* AVB_MDIO */
5029 [5] = RCAR_GP_PIN(2, 20), /* AVB_TXCREFCLK */
5030 [6] = PIN_NUMBER('N', 6), /* AVB_TD3 */
5031 [7] = PIN_NUMBER('N', 5), /* AVB_TD2 */
5032 [8] = PIN_NUMBER('N', 3), /* AVB_TD1 */
5033 [9] = PIN_NUMBER('N', 2), /* AVB_TD0 */
5034 [10] = PIN_NUMBER('N', 1), /* AVB_TXC */
5035 [11] = PIN_NUMBER('P', 3), /* AVB_TX_CTL */
5036 [12] = RCAR_GP_PIN(2, 19), /* AVB_RD3 */
5037 [13] = RCAR_GP_PIN(2, 18), /* AVB_RD2 */
5038 [14] = RCAR_GP_PIN(2, 17), /* AVB_RD1 */
5039 [15] = RCAR_GP_PIN(2, 16), /* AVB_RD0 */
5040 [16] = RCAR_GP_PIN(2, 15), /* AVB_RXC */
5041 [17] = RCAR_GP_PIN(2, 14), /* AVB_RX_CTL */
5042 [18] = RCAR_GP_PIN(2, 13), /* RPC_RESET# */
5043 [19] = RCAR_GP_PIN(2, 12), /* RPC_INT# */
5044 [20] = RCAR_GP_PIN(2, 11), /* QSPI1_SSL */
5045 [21] = RCAR_GP_PIN(2, 10), /* QSPI1_IO3 */
5046 [22] = RCAR_GP_PIN(2, 9), /* QSPI1_IO2 */
5047 [23] = RCAR_GP_PIN(2, 8), /* QSPI1_MISO/IO1 */
5048 [24] = RCAR_GP_PIN(2, 7), /* QSPI1_MOSI/IO0 */
5049 [25] = RCAR_GP_PIN(2, 6), /* QSPI1_SPCLK */
5050 [26] = RCAR_GP_PIN(2, 5), /* QSPI0_SSL */
5051 [27] = RCAR_GP_PIN(2, 4), /* QSPI0_IO3 */
5052 [28] = RCAR_GP_PIN(2, 3), /* QSPI0_IO2 */
5053 [29] = RCAR_GP_PIN(2, 2), /* QSPI0_MISO/IO1 */
5054 [30] = RCAR_GP_PIN(2, 1), /* QSPI0_MOSI/IO0 */
5055 [31] = RCAR_GP_PIN(2, 0), /* QSPI0_SPCLK */
5057 { PINMUX_BIAS_REG("PUEN1", 0xe6060404, "PUD1", 0xe6060444) {
5058 [0] = RCAR_GP_PIN(0, 4), /* D4 */
5059 [1] = RCAR_GP_PIN(0, 3), /* D3 */
5060 [2] = RCAR_GP_PIN(0, 2), /* D2 */
5061 [3] = RCAR_GP_PIN(0, 1), /* D1 */
5062 [4] = RCAR_GP_PIN(0, 0), /* D0 */
5063 [5] = RCAR_GP_PIN(1, 22), /* WE0# */
5064 [6] = RCAR_GP_PIN(1, 21), /* CS0# */
5065 [7] = RCAR_GP_PIN(1, 20), /* CLKOUT */
5066 [8] = RCAR_GP_PIN(1, 19), /* A19 */
5067 [9] = RCAR_GP_PIN(1, 18), /* A18 */
5068 [10] = RCAR_GP_PIN(1, 17), /* A17 */
5069 [11] = RCAR_GP_PIN(1, 16), /* A16 */
5070 [12] = RCAR_GP_PIN(1, 15), /* A15 */
5071 [13] = RCAR_GP_PIN(1, 14), /* A14 */
5072 [14] = RCAR_GP_PIN(1, 13), /* A13 */
5073 [15] = RCAR_GP_PIN(1, 12), /* A12 */
5074 [16] = RCAR_GP_PIN(1, 11), /* A11 */
5075 [17] = RCAR_GP_PIN(1, 10), /* A10 */
5076 [18] = RCAR_GP_PIN(1, 9), /* A9 */
5077 [19] = RCAR_GP_PIN(1, 8), /* A8 */
5078 [20] = RCAR_GP_PIN(1, 7), /* A7 */
5079 [21] = RCAR_GP_PIN(1, 6), /* A6 */
5080 [22] = RCAR_GP_PIN(1, 5), /* A5 */
5081 [23] = RCAR_GP_PIN(1, 4), /* A4 */
5082 [24] = RCAR_GP_PIN(1, 3), /* A3 */
5083 [25] = RCAR_GP_PIN(1, 2), /* A2 */
5084 [26] = RCAR_GP_PIN(1, 1), /* A1 */
5085 [27] = RCAR_GP_PIN(1, 0), /* A0 */
5088 [30] = RCAR_GP_PIN(2, 25), /* PUEN_EX_WAIT0 */
5089 [31] = RCAR_GP_PIN(2, 24), /* PUEN_RD/WR# */
5091 { PINMUX_BIAS_REG("PUEN2", 0xe6060408, "PUD2", 0xe6060448) {
5092 [0] = RCAR_GP_PIN(3, 1), /* SD0_CMD */
5093 [1] = RCAR_GP_PIN(3, 0), /* SD0_CLK */
5094 [2] = PIN_NUMBER('H', 1), /* ASEBRK */
5096 [4] = PIN_NUMBER('G', 2), /* TDI */
5097 [5] = PIN_NUMBER('F', 3), /* TMS */
5098 [6] = PIN_NUMBER('F', 4), /* TCK */
5099 [7] = PIN_NUMBER('F', 1), /* TRST# */
5107 [15] = PIN_NUMBER('G', 3), /* FSCLKST# */
5108 [16] = RCAR_GP_PIN(0, 17), /* SDA4 */
5109 [17] = RCAR_GP_PIN(0, 16), /* SCL4 */
5112 [20] = PIN_A_NUMBER('D', 3), /* PRESETOUT# */
5113 [21] = RCAR_GP_PIN(0, 15), /* D15 */
5114 [22] = RCAR_GP_PIN(0, 14), /* D14 */
5115 [23] = RCAR_GP_PIN(0, 13), /* D13 */
5116 [24] = RCAR_GP_PIN(0, 12), /* D12 */
5117 [25] = RCAR_GP_PIN(0, 11), /* D11 */
5118 [26] = RCAR_GP_PIN(0, 10), /* D10 */
5119 [27] = RCAR_GP_PIN(0, 9), /* D9 */
5120 [28] = RCAR_GP_PIN(0, 8), /* D8 */
5121 [29] = RCAR_GP_PIN(0, 7), /* D7 */
5122 [30] = RCAR_GP_PIN(0, 6), /* D6 */
5123 [31] = RCAR_GP_PIN(0, 5), /* D5 */
5125 { PINMUX_BIAS_REG("PUEN3", 0xe606040c, "PUD3", 0xe606044c) {
5126 [0] = RCAR_GP_PIN(5, 0), /* SCK0_A */
5127 [1] = RCAR_GP_PIN(5, 4), /* RTS0#/TANS_A */
5128 [2] = RCAR_GP_PIN(5, 3), /* CTS0#_A */
5129 [3] = RCAR_GP_PIN(5, 2), /* TX0_A */
5130 [4] = RCAR_GP_PIN(5, 1), /* RX0_A */
5133 [7] = RCAR_GP_PIN(3, 15), /* SD1_WP */
5134 [8] = RCAR_GP_PIN(3, 14), /* SD1_CD */
5135 [9] = RCAR_GP_PIN(3, 13), /* SD0_WP */
5136 [10] = RCAR_GP_PIN(3, 12), /* SD0_CD */
5137 [11] = RCAR_GP_PIN(4, 10), /* SD3_DS */
5138 [12] = RCAR_GP_PIN(4, 9), /* SD3_DAT7 */
5139 [13] = RCAR_GP_PIN(4, 8), /* SD3_DAT6 */
5140 [14] = RCAR_GP_PIN(4, 7), /* SD3_DAT5 */
5141 [15] = RCAR_GP_PIN(4, 6), /* SD3_DAT4 */
5142 [16] = RCAR_GP_PIN(4, 5), /* SD3_DAT3 */
5143 [17] = RCAR_GP_PIN(4, 4), /* SD3_DAT2 */
5144 [18] = RCAR_GP_PIN(4, 3), /* SD3_DAT1 */
5145 [19] = RCAR_GP_PIN(4, 2), /* SD3_DAT0 */
5146 [20] = RCAR_GP_PIN(4, 1), /* SD3_CMD */
5147 [21] = RCAR_GP_PIN(4, 0), /* SD3_CLK */
5148 [22] = RCAR_GP_PIN(3, 11), /* SD1_DAT3 */
5149 [23] = RCAR_GP_PIN(3, 10), /* SD1_DAT2 */
5150 [24] = RCAR_GP_PIN(3, 9), /* SD1_DAT1 */
5151 [25] = RCAR_GP_PIN(3, 8), /* SD1_DAT0 */
5152 [26] = RCAR_GP_PIN(3, 7), /* SD1_CMD */
5153 [27] = RCAR_GP_PIN(3, 6), /* SD1_CLK */
5154 [28] = RCAR_GP_PIN(3, 5), /* SD0_DAT3 */
5155 [29] = RCAR_GP_PIN(3, 4), /* SD0_DAT2 */
5156 [30] = RCAR_GP_PIN(3, 3), /* SD0_DAT1 */
5157 [31] = RCAR_GP_PIN(3, 2), /* SD0_DAT0 */
5159 { PINMUX_BIAS_REG("PUEN4", 0xe6060410, "PUD4", 0xe6060450) {
5160 [0] = RCAR_GP_PIN(6, 8), /* AUDIO_CLKA */
5161 [1] = RCAR_GP_PIN(6, 16), /* SSI_SDATA6 */
5162 [2] = RCAR_GP_PIN(6, 15), /* SSI_WS6 */
5163 [3] = RCAR_GP_PIN(6, 14), /* SSI_SCK6 */
5164 [4] = RCAR_GP_PIN(6, 13), /* SSI_SDATA5 */
5165 [5] = RCAR_GP_PIN(6, 12), /* SSI_WS5 */
5166 [6] = RCAR_GP_PIN(6, 11), /* SSI_SCK5 */
5167 [7] = RCAR_GP_PIN(6, 10), /* SSI_SDATA4 */
5168 [8] = RCAR_GP_PIN(6, 7), /* SSI_SDATA3 */
5169 [9] = RCAR_GP_PIN(6, 6), /* SSI_WS349 */
5170 [10] = RCAR_GP_PIN(6, 5), /* SSI_SCK349 */
5171 [11] = RCAR_GP_PIN(6, 4), /* SSI_SDATA2 */
5172 [12] = RCAR_GP_PIN(6, 3), /* SSI_SDATA1 */
5173 [13] = RCAR_GP_PIN(6, 2), /* SSI_SDATA0 */
5174 [14] = RCAR_GP_PIN(6, 1), /* SSI_WS01239 */
5175 [15] = RCAR_GP_PIN(6, 0), /* SSI_SCK01239 */
5176 [16] = PIN_NUMBER('T', 21), /* MLB_REF */
5177 [17] = RCAR_GP_PIN(5, 19), /* MLB_DAT */
5178 [18] = RCAR_GP_PIN(5, 18), /* MLB_SIG */
5179 [19] = RCAR_GP_PIN(5, 17), /* MLB_CLK */
5180 [20] = RCAR_GP_PIN(5, 16), /* SSI_SDATA9 */
5181 [21] = RCAR_GP_PIN(5, 15), /* MSIOF0_SS2 */
5182 [22] = RCAR_GP_PIN(5, 14), /* MSIOF0_SS1 */
5183 [23] = RCAR_GP_PIN(5, 13), /* MSIOF0_SYNC */
5184 [24] = RCAR_GP_PIN(5, 12), /* MSIOF0_TXD */
5185 [25] = RCAR_GP_PIN(5, 11), /* MSIOF0_RXD */
5186 [26] = RCAR_GP_PIN(5, 10), /* MSIOF0_SCK */
5187 [27] = RCAR_GP_PIN(5, 9), /* RX2_A */
5188 [28] = RCAR_GP_PIN(5, 8), /* TX2_A */
5189 [29] = RCAR_GP_PIN(5, 7), /* SCK2_A */
5190 [30] = RCAR_GP_PIN(5, 6), /* TX1 */
5191 [31] = RCAR_GP_PIN(5, 5), /* RX1 */
5193 { PINMUX_BIAS_REG("PUEN5", 0xe6060414, "PUD5", 0xe6060454) {
5224 [30] = RCAR_GP_PIN(6, 9), /* PUEN_USB30_OVC */
5225 [31] = RCAR_GP_PIN(6, 17), /* PUEN_USB30_PWEN */
5230 static unsigned int r8a77990_pinmux_get_bias(struct sh_pfc
*pfc
,
5233 const struct pinmux_bias_reg
*reg
;
5236 reg
= sh_pfc_pin_to_bias_reg(pfc
, pin
, &bit
);
5238 return PIN_CONFIG_BIAS_DISABLE
;
5240 if (!(sh_pfc_read(pfc
, reg
->puen
) & BIT(bit
)))
5241 return PIN_CONFIG_BIAS_DISABLE
;
5242 else if (sh_pfc_read(pfc
, reg
->pud
) & BIT(bit
))
5243 return PIN_CONFIG_BIAS_PULL_UP
;
5245 return PIN_CONFIG_BIAS_PULL_DOWN
;
5248 static void r8a77990_pinmux_set_bias(struct sh_pfc
*pfc
, unsigned int pin
,
5251 const struct pinmux_bias_reg
*reg
;
5255 reg
= sh_pfc_pin_to_bias_reg(pfc
, pin
, &bit
);
5259 enable
= sh_pfc_read(pfc
, reg
->puen
) & ~BIT(bit
);
5260 if (bias
!= PIN_CONFIG_BIAS_DISABLE
)
5263 updown
= sh_pfc_read(pfc
, reg
->pud
) & ~BIT(bit
);
5264 if (bias
== PIN_CONFIG_BIAS_PULL_UP
)
5267 sh_pfc_write(pfc
, reg
->pud
, updown
);
5268 sh_pfc_write(pfc
, reg
->puen
, enable
);
5271 static const struct sh_pfc_soc_operations r8a77990_pinmux_ops
= {
5272 .pin_to_pocctrl
= r8a77990_pin_to_pocctrl
,
5273 .get_bias
= r8a77990_pinmux_get_bias
,
5274 .set_bias
= r8a77990_pinmux_set_bias
,
5277 #ifdef CONFIG_PINCTRL_PFC_R8A774C0
5278 const struct sh_pfc_soc_info r8a774c0_pinmux_info
= {
5279 .name
= "r8a774c0_pfc",
5280 .ops
= &r8a77990_pinmux_ops
,
5281 .unlock_reg
= 0xe6060000, /* PMMR */
5283 .function
= { PINMUX_FUNCTION_BEGIN
, PINMUX_FUNCTION_END
},
5285 .pins
= pinmux_pins
,
5286 .nr_pins
= ARRAY_SIZE(pinmux_pins
),
5287 .groups
= pinmux_groups
.common
,
5288 .nr_groups
= ARRAY_SIZE(pinmux_groups
.common
),
5289 .functions
= pinmux_functions
.common
,
5290 .nr_functions
= ARRAY_SIZE(pinmux_functions
.common
),
5292 .cfg_regs
= pinmux_config_regs
,
5293 .bias_regs
= pinmux_bias_regs
,
5294 .ioctrl_regs
= pinmux_ioctrl_regs
,
5296 .pinmux_data
= pinmux_data
,
5297 .pinmux_data_size
= ARRAY_SIZE(pinmux_data
),
5301 #ifdef CONFIG_PINCTRL_PFC_R8A77990
5302 const struct sh_pfc_soc_info r8a77990_pinmux_info
= {
5303 .name
= "r8a77990_pfc",
5304 .ops
= &r8a77990_pinmux_ops
,
5305 .unlock_reg
= 0xe6060000, /* PMMR */
5307 .function
= { PINMUX_FUNCTION_BEGIN
, PINMUX_FUNCTION_END
},
5309 .pins
= pinmux_pins
,
5310 .nr_pins
= ARRAY_SIZE(pinmux_pins
),
5311 .groups
= pinmux_groups
.common
,
5312 .nr_groups
= ARRAY_SIZE(pinmux_groups
.common
) +
5313 ARRAY_SIZE(pinmux_groups
.automotive
),
5314 .functions
= pinmux_functions
.common
,
5315 .nr_functions
= ARRAY_SIZE(pinmux_functions
.common
) +
5316 ARRAY_SIZE(pinmux_functions
.automotive
),
5318 .cfg_regs
= pinmux_config_regs
,
5319 .bias_regs
= pinmux_bias_regs
,
5320 .ioctrl_regs
= pinmux_ioctrl_regs
,
5322 .pinmux_data
= pinmux_data
,
5323 .pinmux_data_size
= ARRAY_SIZE(pinmux_data
),