]> git.sur5r.net Git - u-boot/blob - arch/arm/mach-rmobile/pfc-r8a7795.c
arm: omap5: Fix generation of reserved-memory DT node
[u-boot] / arch / arm / mach-rmobile / pfc-r8a7795.c
1 /*
2  * arch/arm/cpu/armv8/rcar_gen3/pfc-r8a7795.c
3  *     This file is r8a7795 processor support - PFC hardware block.
4  *
5  * Copyright (C) 2015 Renesas Electronics Corporation
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9
10 #include <common.h>
11 #include <sh_pfc.h>
12 #include <asm/gpio.h>
13
14 #define CPU_32_PORT(fn, pfx, sfx)                               \
15         PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx),        \
16         PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx),     \
17         PORT_1(fn, pfx##31, sfx)
18
19 #define CPU_32_PORT1(fn, pfx, sfx)                              \
20         PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx),        \
21         PORT_10(fn, pfx##2, sfx)
22
23 #define CPU_32_PORT2(fn, pfx, sfx)                              \
24         PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx),        \
25         PORT_10(fn, pfx##2, sfx)
26
27 #define CPU_32_PORT_28(fn, pfx, sfx)                            \
28         PORT_10(fn, pfx, sfx),                                  \
29         PORT_10(fn, pfx##1, sfx),                               \
30         PORT_1(fn, pfx##20, sfx),                               \
31         PORT_1(fn, pfx##21, sfx),                               \
32         PORT_1(fn, pfx##22, sfx),                               \
33         PORT_1(fn, pfx##23, sfx),                               \
34         PORT_1(fn, pfx##24, sfx),                               \
35         PORT_1(fn, pfx##25, sfx),                               \
36         PORT_1(fn, pfx##26, sfx),                               \
37         PORT_1(fn, pfx##27, sfx)
38
39 #define CPU_32_PORT_26(fn, pfx, sfx)                            \
40         PORT_10(fn, pfx, sfx),                                  \
41         PORT_10(fn, pfx##1, sfx),                               \
42         PORT_1(fn, pfx##20, sfx),                               \
43         PORT_1(fn, pfx##21, sfx),                               \
44         PORT_1(fn, pfx##22, sfx),                               \
45         PORT_1(fn, pfx##23, sfx),                               \
46         PORT_1(fn, pfx##24, sfx),                               \
47         PORT_1(fn, pfx##25, sfx)
48
49 #define CPU_32_PORT_18(fn, pfx, sfx)                            \
50         PORT_10(fn, pfx, sfx),                                  \
51         PORT_1(fn, pfx##10, sfx),                               \
52         PORT_1(fn, pfx##11, sfx),                               \
53         PORT_1(fn, pfx##12, sfx),                               \
54         PORT_1(fn, pfx##13, sfx),                               \
55         PORT_1(fn, pfx##14, sfx),                               \
56         PORT_1(fn, pfx##15, sfx),                               \
57         PORT_1(fn, pfx##16, sfx),                               \
58         PORT_1(fn, pfx##17, sfx)
59
60 #define CPU_32_PORT_16(fn, pfx, sfx)                            \
61         PORT_10(fn, pfx, sfx),                                  \
62         PORT_1(fn, pfx##10, sfx),                               \
63         PORT_1(fn, pfx##11, sfx),                               \
64         PORT_1(fn, pfx##12, sfx),                               \
65         PORT_1(fn, pfx##13, sfx),                               \
66         PORT_1(fn, pfx##14, sfx),                               \
67         PORT_1(fn, pfx##15, sfx)
68
69 #define CPU_32_PORT_15(fn, pfx, sfx)                            \
70         PORT_10(fn, pfx, sfx),                                  \
71         PORT_1(fn, pfx##10, sfx),                               \
72         PORT_1(fn, pfx##11, sfx),                               \
73         PORT_1(fn, pfx##12, sfx),                               \
74         PORT_1(fn, pfx##13, sfx),                               \
75         PORT_1(fn, pfx##14, sfx)
76
77 #define CPU_32_PORT_4(fn, pfx, sfx)                             \
78         PORT_1(fn, pfx##0, sfx),                                \
79         PORT_1(fn, pfx##1, sfx),                                \
80         PORT_1(fn, pfx##2, sfx),                                \
81         PORT_1(fn, pfx##3, sfx)
82
83
84 /* --gen3-- */
85 /* GP_0_0_DATA -> GP_7_4_DATA */
86 /* except for GP0[16] - [31],
87                 GP1[28] - [31],
88                 GP2[15] - [31],
89                 GP3[16] - [31],
90                 GP4[18] - [31],
91                 GP5[26] - [31],
92                 GP7[4] - [31] */
93
94 #define CPU_ALL_PORT(fn, pfx, sfx)              \
95         CPU_32_PORT_16(fn, pfx##_0_, sfx),      \
96         CPU_32_PORT_28(fn, pfx##_1_, sfx),      \
97         CPU_32_PORT_15(fn, pfx##_2_, sfx),      \
98         CPU_32_PORT_16(fn, pfx##_3_, sfx),      \
99         CPU_32_PORT_18(fn, pfx##_4_, sfx),      \
100         CPU_32_PORT_26(fn, pfx##_5_, sfx),      \
101         CPU_32_PORT(fn, pfx##_6_, sfx),         \
102         CPU_32_PORT_4(fn, pfx##_7_, sfx)
103
104 #define _GP_GPIO(pfx, sfx) PINMUX_GPIO(GPIO_GP##pfx, GP##pfx##_DATA)
105 #define _GP_DATA(pfx, sfx) PINMUX_DATA(GP##pfx##_DATA, GP##pfx##_FN,    \
106                                        GP##pfx##_IN, GP##pfx##_OUT)
107
108 #define _GP_INOUTSEL(pfx, sfx) GP##pfx##_IN, GP##pfx##_OUT
109 #define _GP_INDT(pfx, sfx) GP##pfx##_DATA
110
111 #define GP_ALL(str)     CPU_ALL_PORT(_PORT_ALL, GP, str)
112 #define PINMUX_GPIO_GP_ALL()    CPU_ALL_PORT(_GP_GPIO, , unused)
113 #define PINMUX_DATA_GP_ALL()    CPU_ALL_PORT(_GP_DATA, , unused)
114
115
116 #define PORT_10_REV(fn, pfx, sfx)                               \
117         PORT_1(fn, pfx##9, sfx), PORT_1(fn, pfx##8, sfx),       \
118         PORT_1(fn, pfx##7, sfx), PORT_1(fn, pfx##6, sfx),       \
119         PORT_1(fn, pfx##5, sfx), PORT_1(fn, pfx##4, sfx),       \
120         PORT_1(fn, pfx##3, sfx), PORT_1(fn, pfx##2, sfx),       \
121         PORT_1(fn, pfx##1, sfx), PORT_1(fn, pfx##0, sfx)
122
123 #define CPU_32_PORT_REV(fn, pfx, sfx)                                   \
124         PORT_1(fn, pfx##31, sfx), PORT_1(fn, pfx##30, sfx),             \
125         PORT_10_REV(fn, pfx##2, sfx), PORT_10_REV(fn, pfx##1, sfx),     \
126         PORT_10_REV(fn, pfx, sfx)
127
128 #define GP_INOUTSEL(bank) CPU_32_PORT_REV(_GP_INOUTSEL, _##bank##_, unused)
129 #define GP_INDT(bank) CPU_32_PORT_REV(_GP_INDT, _##bank##_, unused)
130
131 #define PINMUX_IPSR_DATA(ipsr, fn) PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##fn)
132 #define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms) PINMUX_DATA(fn##_MARK, FN_##ms, \
133                                                           FN_##ipsr, FN_##fn)
134
135 enum {
136         PINMUX_RESERVED = 0,
137
138         PINMUX_DATA_BEGIN,
139         GP_ALL(DATA),
140         PINMUX_DATA_END,
141
142         PINMUX_INPUT_BEGIN,
143         GP_ALL(IN),
144         PINMUX_INPUT_END,
145
146         PINMUX_OUTPUT_BEGIN,
147         GP_ALL(OUT),
148         PINMUX_OUTPUT_END,
149
150         PINMUX_FUNCTION_BEGIN,
151         GP_ALL(FN),
152
153         /* GPSR0 */
154         GFN_D15,
155         GFN_D14,
156         GFN_D13,
157         GFN_D12,
158         GFN_D11,
159         GFN_D10,
160         GFN_D9,
161         GFN_D8,
162         GFN_D7,
163         GFN_D6,
164         GFN_D5,
165         GFN_D4,
166         GFN_D3,
167         GFN_D2,
168         GFN_D1,
169         GFN_D0,
170
171         /* GPSR1 */
172         GFN_EX_WAIT0_A,
173         GFN_WE1x,
174         GFN_WE0x,
175         GFN_RD_WRx,
176         GFN_RDx,
177         GFN_BSx,
178         GFN_CS1x_A26,
179         GFN_CS0x,
180         GFN_A19,
181         GFN_A18,
182         GFN_A17,
183         GFN_A16,
184         GFN_A15,
185         GFN_A14,
186         GFN_A13,
187         GFN_A12,
188         GFN_A11,
189         GFN_A10,
190         GFN_A9,
191         GFN_A8,
192         GFN_A7,
193         GFN_A6,
194         GFN_A5,
195         GFN_A4,
196         GFN_A3,
197         GFN_A2,
198         GFN_A1,
199         GFN_A0,
200
201         /* GPSR2 */
202         GFN_AVB_AVTP_CAPTURE_A,
203         GFN_AVB_AVTP_MATCH_A,
204         GFN_AVB_LINK,
205         GFN_AVB_PHY_INT,
206         GFN_AVB_MAGIC,
207         GFN_AVB_MDC,
208         GFN_PWM2_A,
209         GFN_PWM1_A,
210         GFN_PWM0,
211         GFN_IRQ5,
212         GFN_IRQ4,
213         GFN_IRQ3,
214         GFN_IRQ2,
215         GFN_IRQ1,
216         GFN_IRQ0,
217
218         /* GPSR3 */
219         GFN_SD1_WP,
220         GFN_SD1_CD,
221         GFN_SD0_WP,
222         GFN_SD0_CD,
223         GFN_SD1_DAT3,
224         GFN_SD1_DAT2,
225         GFN_SD1_DAT1,
226         GFN_SD1_DAT0,
227         GFN_SD1_CMD,
228         GFN_SD1_CLK,
229         GFN_SD0_DAT3,
230         GFN_SD0_DAT2,
231         GFN_SD0_DAT1,
232         GFN_SD0_DAT0,
233         GFN_SD0_CMD,
234         GFN_SD0_CLK,
235
236         /* GPSR4 */
237         FN_SD3_DS,
238         GFN_SD3_DAT7,
239         GFN_SD3_DAT6,
240         GFN_SD3_DAT5,
241         GFN_SD3_DAT4,
242         FN_SD3_DAT3,
243         FN_SD3_DAT2,
244         FN_SD3_DAT1,
245         FN_SD3_DAT0,
246         FN_SD3_CMD,
247         FN_SD3_CLK,
248         GFN_SD2_DS,
249         GFN_SD2_DAT3,
250         GFN_SD2_DAT2,
251         GFN_SD2_DAT1,
252         GFN_SD2_DAT0,
253         FN_SD2_CMD,
254         GFN_SD2_CLK,
255
256         /* GPSR5 */
257         GFN_MLB_DAT,
258         GFN_MLB_SIG,
259         GFN_MLB_CLK,
260         FN_MSIOF0_RXD,
261         GFN_MSIOF0_SS2,
262         FN_MSIOF0_TXD,
263         GFN_MSIOF0_SS1,
264         GFN_MSIOF0_SYNC,
265         FN_MSIOF0_SCK,
266         GFN_HRTS0x,
267         GFN_HCTS0x,
268         GFN_HTX0,
269         GFN_HRX0,
270         GFN_HSCK0,
271         GFN_RX2_A,
272         GFN_TX2_A,
273         GFN_SCK2,
274         GFN_RTS1x_TANS,
275         GFN_CTS1x,
276         GFN_TX1_A,
277         GFN_RX1_A,
278         GFN_RTS0x_TANS,
279         GFN_CTS0x,
280         GFN_TX0,
281         GFN_RX0,
282         GFN_SCK0,
283
284         /* GPSR6 */
285         GFN_USB31_OVC,
286         GFN_USB31_PWEN,
287         GFN_USB30_OVC,
288         GFN_USB30_PWEN,
289         GFN_USB1_OVC,
290         GFN_USB1_PWEN,
291         GFN_USB0_OVC,
292         GFN_USB0_PWEN,
293         GFN_AUDIO_CLKB_B,
294         GFN_AUDIO_CLKA_A,
295         GFN_SSI_SDATA9_A,
296         GFN_SSI_SDATA8,
297         GFN_SSI_SDATA7,
298         GFN_SSI_WS78,
299         GFN_SSI_SCK78,
300         GFN_SSI_SDATA6,
301         GFN_SSI_WS6,
302         GFN_SSI_SCK6,
303         FN_SSI_SDATA5,
304         FN_SSI_WS5,
305         FN_SSI_SCK5,
306         GFN_SSI_SDATA4,
307         GFN_SSI_WS4,
308         GFN_SSI_SCK4,
309         GFN_SSI_SDATA3,
310         GFN_SSI_WS34,
311         GFN_SSI_SCK34,
312         GFN_SSI_SDATA2_A,
313         GFN_SSI_SDATA1_A,
314         GFN_SSI_SDATA0,
315         GFN_SSI_WS0129,
316         GFN_SSI_SCK0129,
317
318         /* GPSR7 */
319         FN_HDMI1_CEC,
320         FN_HDMI0_CEC,
321         FN_AVS2,
322         FN_AVS1,
323
324         /* IPSR0 */
325         IFN_AVB_MDC,
326         FN_MSIOF2_SS2_C,
327         IFN_AVB_MAGIC,
328         FN_MSIOF2_S1_C,
329         FN_SCK4_A,
330         IFN_AVB_PHY_INT,
331         FN_MSIOF2_SYNC_C,
332         FN_RX4_A,
333         IFN_AVB_LINK,
334         FN_MSIOF2_SCK_C,
335         FN_TX4_A,
336         IFN_AVB_AVTP_MATCH_A,
337         FN_MSIOF2_RXD_C,
338         FN_CTS4x_A,
339         IFN_AVB_AVTP_CAPTURE_A,
340         FN_MSIOF2_TXD_C,
341         FN_RTS4x_TANS_A,
342         IFN_IRQ0,
343         FN_QPOLB,
344         FN_DU_CDE,
345         FN_VI4_DATA0_B,
346         FN_CAN0_TX_B,
347         FN_CANFD0_TX_B,
348         IFN_IRQ1,
349         FN_QPOLA,
350         FN_DU_DISP,
351         FN_VI4_DATA1_B,
352         FN_CAN0_RX_B,
353         FN_CANFD0_RX_B,
354
355         /* IPSR1 */
356         IFN_IRQ2,
357         FN_QCPV_QDE,
358         FN_DU_EXODDF_DU_ODDF_DISP_CDE,
359         FN_VI4_DATA2_B,
360         FN_PWM3_B,
361         IFN_IRQ3,
362         FN_QSTVB_QVE,
363         FN_A25,
364         FN_DU_DOTCLKOUT1,
365         FN_VI4_DATA3_B,
366         FN_PWM4_B,
367         IFN_IRQ4,
368         FN_QSTH_QHS,
369         FN_A24,
370         FN_DU_EXHSYNC_DU_HSYNC,
371         FN_VI4_DATA4_B,
372         FN_PWM5_B,
373         IFN_IRQ5,
374         FN_QSTB_QHE,
375         FN_A23,
376         FN_DU_EXVSYNC_DU_VSYNC,
377         FN_VI4_DATA5_B,
378         FN_PWM6_B,
379         IFN_PWM0,
380         FN_AVB_AVTP_PPS,
381         FN_A22,
382         FN_VI4_DATA6_B,
383         FN_IECLK_B,
384         IFN_PWM1_A,
385         FN_A21,
386         FN_HRX3_D,
387         FN_VI4_DATA7_B,
388         FN_IERX_B,
389         IFN_PWM2_A,
390         FN_PWMFSW0,
391         FN_A20,
392         FN_HTX3_D,
393         FN_IETX_B,
394         IFN_A0,
395         FN_LCDOUT16,
396         FN_MSIOF3_SYNC_B,
397         FN_VI4_DATA8,
398         FN_DU_DB0,
399         FN_PWM3_A,
400
401         /* IPSR2 */
402         IFN_A1,
403         FN_LCDOUT17,
404         FN_MSIOF3_TXD_B,
405         FN_VI4_DATA9,
406         FN_DU_DB1,
407         FN_PWM4_A,
408         IFN_A2,
409         FN_LCDOUT18,
410         FN_MSIOF3_SCK_B,
411         FN_VI4_DATA10,
412         FN_DU_DB2,
413         FN_PWM5_A,
414         IFN_A3,
415         FN_LCDOUT19,
416         FN_MSIOF3_RXD_B,
417         FN_VI4_DATA11,
418         FN_DU_DB3,
419         FN_PWM6_A,
420         IFN_A4,
421         FN_LCDOUT20,
422         FN_MSIOF3_SS1_B,
423         FN_VI4_DATA12,
424         FN_VI5_DATA12,
425         FN_DU_DB4,
426         IFN_A5,
427         FN_LCDOUT21,
428         FN_MSIOF3_SS2_B,
429         FN_SCK4_B,
430         FN_VI4_DATA13,
431         FN_VI5_DATA13,
432         FN_DU_DB5,
433         IFN_A6,
434         FN_LCDOUT22,
435         FN_MSIOF2_SS1_A,
436         FN_RX4_B,
437         FN_VI4_DATA14,
438         FN_VI5_DATA14,
439         FN_DU_DB6,
440         IFN_A7,
441         FN_LCDOUT23,
442         FN_MSIOF2_SS2_A,
443         FN_TX4_B,
444         FN_VI4_DATA15,
445         FN_V15_DATA15,
446         FN_DU_DB7,
447         IFN_A8,
448         FN_RX3_B,
449         FN_MSIOF2_SYNC_A,
450         FN_HRX4_B,
451         FN_SDA6_A,
452         FN_AVB_AVTP_MATCH_B,
453         FN_PWM1_B,
454
455         /* IPSR3 */
456         IFN_A9,
457         FN_MSIOF2_SCK_A,
458         FN_CTS4x_B,
459         FN_VI5_VSYNCx,
460         IFN_A10,
461         FN_MSIOF2_RXD_A,
462         FN_RTS4n_TANS_B,
463         FN_VI5_HSYNCx,
464         IFN_A11,
465         FN_TX3_B,
466         FN_MSIOF2_TXD_A,
467         FN_HTX4_B,
468         FN_HSCK4,
469         FN_VI5_FIELD,
470         FN_SCL6_A,
471         FN_AVB_AVTP_CAPTURE_B,
472         FN_PWM2_B,
473         FN_SPV_EVEN,
474         IFN_A12,
475         FN_LCDOUT12,
476         FN_MSIOF3_SCK_C,
477         FN_HRX4_A,
478         FN_VI5_DATA8,
479         FN_DU_DG4,
480         IFN_A13,
481         FN_LCDOUT13,
482         FN_MSIOF3_SYNC_C,
483         FN_HTX4_A,
484         FN_VI5_DATA9,
485         FN_DU_DG5,
486         IFN_A14,
487         FN_LCDOUT14,
488         FN_MSIOF3_RXD_C,
489         FN_HCTS4x,
490         FN_VI5_DATA10,
491         FN_DU_DG6,
492         IFN_A15,
493         FN_LCDOUT15,
494         FN_MSIOF3_TXD_C,
495         FN_HRTS4x,
496         FN_VI5_DATA11,
497         FN_DU_DG7,
498         IFN_A16,
499         FN_LCDOUT8,
500         FN_VI4_FIELD,
501         FN_DU_DG0,
502
503         /* IPSR4 */
504         IFN_A17,
505         FN_LCDOUT9,
506         FN_VI4_VSYNCx,
507         FN_DU_DG1,
508         IFN_A18,
509         FN_LCDOUT10,
510         FN_VI4_HSYNCx,
511         FN_DU_DG2,
512         IFN_A19,
513         FN_LCDOUT11,
514         FN_VI4_CLKENB,
515         FN_DU_DG3,
516         IFN_CS0x,
517         FN_VI5_CLKENB,
518         IFN_CS1x_A26,
519         FN_VI5_CLK,
520         FN_EX_WAIT0_B,
521         IFN_BSx,
522         FN_QSTVA_QVS,
523         FN_MSIOF3_SCK_D,
524         FN_SCK3,
525         FN_HSCK3,
526         FN_CAN1_TX,
527         FN_CANFD1_TX,
528         FN_IETX_A,
529         IFN_RDx,
530         FN_MSIOF3_SYNC_D,
531         FN_RX3_A,
532         FN_HRX3_A,
533         FN_CAN0_TX_A,
534         FN_CANFD0_TX_A,
535         IFN_RD_WRx,
536         FN_MSIOF3_RXD_D,
537         FN_TX3_A,
538         FN_HTX3_A,
539         FN_CAN0_RX_A,
540         FN_CANFD0_RX_A,
541
542         /* IPSR5 */
543         IFN_WE0x,
544         FN_MSIIOF3_TXD_D,
545         FN_CTS3x,
546         FN_HCTS3x,
547         FN_SCL6_B,
548         FN_CAN_CLK,
549         FN_IECLK_A,
550         IFN_WE1x,
551         FN_MSIOF3_SS1_D,
552         FN_RTS3x_TANS,
553         FN_HRTS3x,
554         FN_SDA6_B,
555         FN_CAN1_RX,
556         FN_CANFD1_RX,
557         FN_IERX_A,
558         IFN_EX_WAIT0_A,
559         FN_QCLK,
560         FN_VI4_CLK,
561         FN_DU_DOTCLKOUT0,
562         IFN_D0,
563         FN_MSIOF2_SS1_B,
564         FN_MSIOF3_SCK_A,
565         FN_VI4_DATA16,
566         FN_VI5_DATA0,
567         IFN_D1,
568         FN_MSIOF2_SS2_B,
569         FN_MSIOF3_SYNC_A,
570         FN_VI4_DATA17,
571         FN_VI5_DATA1,
572         IFN_D2,
573         FN_MSIOF3_RXD_A,
574         FN_VI4_DATA18,
575         FN_VI5_DATA2,
576         IFN_D3,
577         FN_MSIOF3_TXD_A,
578         FN_VI4_DATA19,
579         FN_VI5_DATA3,
580         IFN_D4,
581         FN_MSIOF2_SCK_B,
582         FN_VI4_DATA20,
583         FN_VI5_DATA4,
584
585         /* IPSR6 */
586         IFN_D5,
587         FN_MSIOF2_SYNC_B,
588         FN_VI4_DATA21,
589         FN_VI5_DATA5,
590         IFN_D6,
591         FN_MSIOF2_RXD_B,
592         FN_VI4_DATA22,
593         FN_VI5_DATA6,
594         IFN_D7,
595         FN_MSIOF2_TXD_B,
596         FN_VI4_DATA23,
597         FN_VI5_DATA7,
598         IFN_D8,
599         FN_LCDOUT0,
600         FN_MSIOF2_SCK_D,
601         FN_SCK4_C,
602         FN_VI4_DATA0_A,
603         FN_DU_DR0,
604         IFN_D9,
605         FN_LCDOUT1,
606         FN_MSIOF2_SYNC_D,
607         FN_VI4_DATA1_A,
608         FN_DU_DR1,
609         IFN_D10,
610         FN_LCDOUT2,
611         FN_MSIOF2_RXD_D,
612         FN_HRX3_B,
613         FN_VI4_DATA2_A,
614         FN_CTS4x_C,
615         FN_DU_DR2,
616         IFN_D11,
617         FN_LCDOUT3,
618         FN_MSIOF2_TXD_D,
619         FN_HTX3_B,
620         FN_VI4_DATA3_A,
621         FN_RTS4x_TANS_C,
622         FN_DU_DR3,
623         IFN_D12,
624         FN_LCDOUT4,
625         FN_MSIOF2_SS1_D,
626         FN_RX4_C,
627         FN_VI4_DATA4_A,
628         FN_DU_DR4,
629
630         /* IPSR7 */
631         IFN_D13,
632         FN_LCDOUT5,
633         FN_MSIOF2_SS2_D,
634         FN_TX4_C,
635         FN_VI4_DATA5_A,
636         FN_DU_DR5,
637         IFN_D14,
638         FN_LCDOUT6,
639         FN_MSIOF3_SS1_A,
640         FN_HRX3_C,
641         FN_VI4_DATA6_A,
642         FN_DU_DR6,
643         FN_SCL6_C,
644         IFN_D15,
645         FN_LCDOUT7,
646         FN_MSIOF3_SS2_A,
647         FN_HTX3_C,
648         FN_VI4_DATA7_A,
649         FN_DU_DR7,
650         FN_SDA6_C,
651         FN_FSCLKST,
652         IFN_SD0_CLK,
653         FN_MSIOF1_SCK_E,
654         FN_STP_OPWM_0_B,
655         IFN_SD0_CMD,
656         FN_MSIOF1_SYNC_E,
657         FN_STP_IVCXO27_0_B,
658         IFN_SD0_DAT0,
659         FN_MSIOF1_RXD_E,
660         FN_TS_SCK0_B,
661         FN_STP_ISCLK_0_B,
662         IFN_SD0_DAT1,
663         FN_MSIOF1_TXD_E,
664         FN_TS_SPSYNC0_B,
665         FN_STP_ISSYNC_0_B,
666
667         /* IPSR8 */
668         IFN_SD0_DAT2,
669         FN_MSIOF1_SS1_E,
670         FN_TS_SDAT0_B,
671         FN_STP_ISD_0_B,
672         IFN_SD0_DAT3,
673         FN_MSIOF1_SS2_E,
674         FN_TS_SDEN0_B,
675         FN_STP_ISEN_0_B,
676         IFN_SD1_CLK,
677         FN_MSIOF1_SCK_G,
678         FN_SIM0_CLK_A,
679
680         IFN_SD1_CMD,
681         FN_MSIOF1_SYNC_G,
682         FN_SIM0_D_A,
683         FN_STP_IVCXO27_1_B,
684
685         IFN_SD1_DAT0,
686         FN_SD2_DAT4,
687         FN_MSIOF1_RXD_G,
688         FN_TS_SCK1_B,
689         FN_STP_ISCLK_1_B,
690
691         IFN_SD1_DAT1,
692         FN_SD2_DAT5,
693         FN_MSIOF1_TXD_G,
694         FN_TS_SPSYNC1_B,
695         FN_STP_ISSYNC_1_B,
696
697         IFN_SD1_DAT2,
698         FN_SD2_DAT6,
699         FN_MSIOF1_SS1_G,
700         FN_TS_SDAT1_B,
701         FN_STP_IOD_1_B,
702         IFN_SD1_DAT3,
703         FN_SD2_DAT7,
704         FN_MSIOF1_SS2_G,
705         FN_TS_SDEN1_B,
706         FN_STP_ISEN_1_B,
707
708         /* IPSR9 */
709         IFN_SD2_CLK,
710         FN_SCKZ_A,
711         IFN_SD2_DAT0,
712         FN_MTSx_A,
713         IFN_SD2_DAT1,
714         FN_STMx_A,
715         IFN_SD2_DAT2,
716         FN_MDATA_A,
717         IFN_SD2_DAT3,
718         FN_SDATA_A,
719         IFN_SD2_DS,
720         FN_SATA_DEVSLP_B,
721         FN_VSP_A,
722         IFN_SD3_DAT4,
723         FN_SD2_CD_A,
724         IFN_SD3_DAT5,
725         FN_SD2_WP_A,
726
727         /* IPSR10 */
728         IFN_SD3_DAT6,
729         FN_SD3_CD,
730         IFN_SD3_DAT7,
731         FN_SD3_WP,
732         IFN_SD0_CD,
733         FN_SCL2_B,
734         FN_SIM0_RST_A,
735         IFN_SD0_WP,
736         FN_SDA2_B,
737         IFN_SD1_CD,
738         FN_SIM0_CLK_B,
739         IFN_SD1_WP,
740         FN_SIM0_D_B,
741         IFN_SCK0,
742         FN_HSCK1_B,
743         FN_MSIOF1_SS2_B,
744         FN_AUDIO_CLKC_B,
745         FN_SDA2_A,
746         FN_SIM0_RST_B,
747         FN_STP_OPWM__C,
748         FN_RIF0_CLK_B,
749         FN_ADICHS2,
750         IFN_RX0,
751         FN_HRX1_B,
752         FN_TS_SCK0_C,
753         FN_STP_ISCLK_0_C,
754         FN_RIF0_D0_B,
755
756         /* IPSR11 */
757         IFN_TX0,
758         FN_HTX1_B,
759         FN_TS_SPSYNC0_C,
760         FN_STP_ISSYNC_0_C,
761         FN_RIF0_D1_B,
762         IFN_CTS0x,
763         FN_HCTS1x_B,
764         FN_MSIOF1_SYNC_B,
765         FN_TS_SPSYNC1_C,
766         FN_STP_ISSYNC_1_C,
767         FN_RIF1_SYNC_B,
768         FN_AUDIO_CLKOUT_C,
769         FN_ADICS_SAMP,
770         IFN_RTS0x_TANS,
771         FN_HRTS1x_B,
772         FN_MSIOF1_SS1_B,
773         FN_AUDIO_CLKA_B,
774         FN_SCL2_A,
775         FN_STP_IVCXO27_1_C,
776         FN_RIF0_SYNC_B,
777         FN_ADICHS1,
778         IFN_RX1_A,
779         FN_HRX1_A,
780         FN_TS_SDAT0_C,
781         FN_STP_IDS_0_C,
782         FN_RIF1_CLK_C,
783         IFN_TX1_A,
784         FN_HTX1_A,
785         FN_TS_SDEN0_C,
786         FN_STP_ISEN_0_C,
787         FN_RIF1_D0_C,
788         IFN_CTS1x,
789         FN_HCTS1x_A,
790         FN_MSIOF1_RXD_B,
791         FN_TS_SDEN1_C,
792         FN_STP_ISEN_1_C,
793         FN_RIF1_D0_B,
794         FN_ADIDATA,
795         IFN_RTS1x_TANS,
796         FN_HRTS1x_A,
797         FN_MSIOF1_TXD_B,
798         FN_TS_SDAT1_C,
799         FN_STP_ISD_1_C,
800         FN_RIF1_D1_B,
801         FN_ADICHS0,
802         IFN_SCK2,
803         FN_SCIF_CLK_B,
804         FN_MSIOF1_SCK_B,
805         FN_TS_SCK1_C,
806         FN_STP_ISCLK_1_C,
807         FN_RIF1_CLK_B,
808         FN_ADICLK,
809
810         /* IPSR12 */
811         IFN_TX2_A,
812         FN_SD2_CD_B,
813         FN_SCL1_A,
814         FN_RSD_CLK_B,
815         FN_FMCLK_A,
816         FN_RIF1_D1_C,
817         FN_FSO_CFE_0_B,
818         IFN_RX2_A,
819         FN_SD2_WP_B,
820         FN_SDA1_A,
821         FN_RDS_DATA_B,
822         FN_RMIN_A,
823         FN_RIF1_SYNC_C,
824         FN_FSO_CEF_1_B,
825         IFN_HSCK0,
826         FN_MSIOF1_SCK_D,
827         FN_AUDIO_CLKB_A,
828         FN_SSI_SDATA1_B,
829         FN_TS_SCK0_D,
830         FN_STP_ISCLK_0_D,
831         FN_RIF0_CLK_C,
832         FN_AD_CLK,
833         IFN_HRX0,
834         FN_MSIOF1_RXD_D,
835         FN_SS1_SDATA2_B,
836         FN_TS_SDEN0_D,
837         FN_STP_ISEN_0_D,
838         FN_RIF0_D0_C,
839         FN_AD_DI,
840         IFN_HTX0,
841         FN_MSIOF1_TXD_D,
842         FN_SSI_SDATA9_B,
843         FN_TS_SDAT0_D,
844         FN_STP_ISD_0_D,
845         FN_RIF0_D1_C,
846         FN_AD_DO,
847         IFN_HCTS0x,
848         FN_RX2_B,
849         FN_MSIOF1_SYNC_D,
850         FN_SSI_SCK9_A,
851         FN_TS_SPSYNC0_D,
852         FN_STP_ISSYNC_0_D,
853         FN_RIF0_SYNC_C,
854         FN_AUDIO_CLKOUT1_A,
855         FN_AD_NSCx,
856         IFN_HRTS0x,
857         FN_TX2_B,
858         FN_MSIOF1_SS1_D,
859         FN_SSI_WS9_A,
860         FN_STP_IVCXO27_0_D,
861         FN_BPFCLK_A,
862         FN_AUDIO_CLKOUT2_A,
863         IFN_MSIOF0_SYNC,
864         FN_AUDIO_CLKOUT_A,
865
866         /* IPSR13 */
867         IFN_MSIOF0_SS1,
868         FN_RX5,
869         FN_AUDIO_CLKA_C,
870         FN_SSI_SCK2_A,
871         FN_RDS_CLK_A,
872         FN_STP_IVCXO27_0_C,
873         FN_AUDIO_CLKOUT3_A,
874         FN_TCLK1_B,
875         IFN_MSIOF0_SS2,
876         FN_TX5,
877         FN_MSIOF1_SS2_D,
878         FN_AUDIO_CLKC_A,
879         FN_SSI_WS2_A,
880         FN_RDS_DATA_A,
881         FN_STP_OPWM_0_D,
882         FN_AUDIO_CLKOUT_D,
883         FN_SPEEDIN_B,
884         IFN_MLB_CLK,
885         FN_MSIOF1_SCK_F,
886         FN_SCL1_B,
887         IFN_MLB_SIG,
888         FN_RX1_B,
889         FN_MSIOF1_SYNC_F,
890         FN_SDA1_B,
891         IFN_MLB_DAT,
892         FN_TX1_B,
893         FN_MSIOF1_RXD_F,
894         IFN_SSI_SCK0129,
895         FN_MSIOF1_TXD_F,
896         FN_MOUT0,
897         IFN_SSI_WS0129,
898         FN_MSIOF1_SS1_F,
899         FN_MOUT1,
900         IFN_SSI_SDATA0,
901         FN_MSIOF1_SS2_F,
902         FN_MOUT2,
903
904         /* IPSR14 */
905         IFN_SSI_SDATA1_A,
906         FN_MOUT5,
907         IFN_SSI_SDATA2_A,
908         FN_SSI_SCK1_B,
909         FN_MOUT6,
910         IFN_SSI_SCK34,
911         FN_MSIOF1_SS1_A,
912         FN_STP_OPWM_0_A,
913         IFN_SSI_WS34,
914         FN_HCTS2x_A,
915         FN_MSIOF1_SS2_A,
916         FN_STP_IVCXO27_0_A,
917         IFN_SSI_SDATA3,
918         FN_HRTS2x_A,
919         FN_MSIOF1_TXD_A,
920         FN_TS_SCK0_A,
921         FN_STP_ISCLK_0_A,
922         FN_RIF0_D1_A,
923         FN_RIF2_D0_A,
924         IFN_SSI_SCK4,
925         FN_HRX2_A,
926         FN_MSIOF1_SCK_A,
927         FN_TS_SDAT0_A,
928         FN_STP_ISD_0_A,
929         FN_RIF0_CLK_A,
930         FN_RIF2_CLK_A,
931         IFN_SSI_WS4,
932         FN_HTX2_A,
933         FN_MSIOF1_SYNC_A,
934         FN_TS_SDEN0_A,
935         FN_STP_ISEN_0_A,
936         FN_RIF0_SYNC_A,
937         FN_RIF2_SYNC_A,
938         IFN_SSI_SDATA4,
939         FN_HSCK2_A,
940         FN_MSIOF1_RXD_A,
941         FN_TS_SPSYNC0_A,
942         FN_STP_ISSYNC_0_A,
943         FN_RIF0_D0_A,
944         FN_RIF2_D1_A,
945
946         IFN_SSI_SCK6,
947         FN_USB2_PWEN,
948         FN_SIM0_RST_D,
949         FN_RDS_CLK_C,
950         IFN_SSI_WS6,
951         FN_USB2_OVC,
952         FN_SIM0_D_D,
953         IFN_SSI_SDATA6,
954         FN_SIM0_CLK_D,
955         FN_RSD_DATA_C,
956         FN_SATA_DEVSLP_A,
957         IFN_SSI_SCK78,
958         FN_HRX2_B,
959         FN_MSIOF1_SCK_C,
960         FN_TS_SCK1_A,
961         FN_STP_ISCLK_1_A,
962         FN_RIF1_CLK_A,
963         FN_RIF3_CLK_A,
964         IFN_SSI_WS78,
965         FN_HTX2_B,
966         FN_MSIOF1_SYNC_C,
967         FN_TS_SDT1_A,
968         FN_STP_ISD_1_A,
969         FN_RIF1_SYNC_A,
970         FN_RIF3_SYNC_A,
971         IFN_SSI_SDATA7,
972         FN_HCTS2x_B,
973         FN_MSIOF1_RXD_C,
974         FN_TS_SDEN1_A,
975         FN_STP_IEN_1_A,
976         FN_RIF1_D0_A,
977         FN_RIF3_D0_A,
978         FN_TCLK2_A,
979         IFN_SSI_SDATA8,
980         FN_HRTS2x_B,
981         FN_MSIOF1_TXD_C,
982         FN_TS_SPSYNC1_A,
983         FN_STP_ISSYNC_1_A,
984         FN_RIF1_D1_A,
985         FN_EIF3_D1_A,
986         IFN_SSI_SDATA9_A,
987         FN_HSCK2_B,
988         FN_MSIOF1_SS1_C,
989         FN_HSCK1_A,
990         FN_SSI_WS1_B,
991         FN_SCK1,
992         FN_STP_IVCXO27_1_A,
993         FN_SCK5,
994
995         /* IPSR16 */
996         IFN_AUDIO_CLKA_A,
997         FN_CC5_OSCOUT,
998         IFN_AUDIO_CLKB_B,
999         FN_SCIF_CLK_A,
1000         FN_DVC_MUTE,
1001         FN_STP_IVCXO27_1_D,
1002         FN_REMOCON_A,
1003         FN_TCLK1_A,
1004         FN_VSP_B,
1005         IFN_USB0_PWEN,
1006         FN_SIM0_RST_C,
1007         FN_TS_SCK1_D,
1008         FN_STP_ISCLK_1_D,
1009         FN_BPFCLK_B,
1010         FN_RIF3_CLK_B,
1011         FN_SCKZ_B,
1012         IFN_USB0_OVC,
1013         FN_SIM0_D_C,
1014         FN_TS_SDAT1_D,
1015         FN_STP_ISD_1_D,
1016         FN_RIF3_SYNC_B,
1017         FN_VSP_C,
1018         IFN_USB1_PWEN,
1019         FN_SIM0_CLK_C,
1020         FN_SSI_SCK1_A,
1021         FN_TS_SCK0_E,
1022         FN_STP_ISCLK_0_E,
1023         FN_FMCLK_B,
1024         FN_RIF2_CLK_B,
1025         FN_MTSx_B,
1026         FN_SPEEDIN_A,
1027         FN_VSP_D,
1028         IFN_USB1_OVC,
1029         FN_MSIOF1_SS2_C,
1030         FN_SSI_WS1_A,
1031         FN_TS_SDAT0_E,
1032         FN_STP_ISD_0_E,
1033         FN_FMIN_B,
1034         FN_RIF2_SYNC_B,
1035         FN_STMx_B,
1036         FN_REMOCON_B,
1037         IFN_USB30_PWEN,
1038         FN_AUDIO_CLKOUT_B,
1039         FN_SSI_SCK2_B,
1040         FN_TS_SDEN1_D,
1041         FN_STP_ISEN_1_D,
1042         FN_STP_OPWM_0_E,
1043         FN_RIF3_D0_B,
1044         FN_MDATA_B,
1045         FN_TCLK2_B,
1046         FN_TPU0TO0,
1047         IFN_USB30_OVC,
1048         FN_AUDIO_CLKOUT1_B,
1049         FN_SSI_WS2_B,
1050         FN_TS_SPSYNC1_D,
1051         FN_STP_ISSYNC_1_D,
1052         FN_STP_IVCXO27_0_E,
1053         FN_RIF3_D1_B,
1054         FN_SDATA_B,
1055         FN_RSO_TOE_B,
1056         FN_TPU0TO1,
1057
1058         /* IPSR17 */
1059         IFN_USB31_PWEN,
1060         FN_AUDIO_CLKOUT2_B,
1061         FN_SI_SCK9_B,
1062         FN_TS_SDEN0_E,
1063         FN_STP_ISEN_0_E,
1064         FN_RIF2_D0_B,
1065         FN_TPU0TO2,
1066         IFN_USB31_OVC,
1067         FN_AUDIO_CLKOUT3_B,
1068         FN_SSI_WS9_B,
1069         FN_TS_SPSYNC0_E,
1070         FN_STP_ISSYNC_0_E,
1071         FN_RIF2_D1_B,
1072         FN_TPU0TO3,
1073
1074         /* MOD_SEL0 */
1075         FN_SEL_MSIOF3_0, FN_SEL_MSIOF3_1,
1076         FN_SEL_MSIOF3_2, FN_SEL_MSIOF3_3,
1077         FN_SEL_MSIOF2_0, FN_SEL_MSIOF2_1,
1078         FN_SEL_MSIOF2_2, FN_SEL_MSIOF2_3,
1079         FN_SEL_MSIOF1_0, FN_SEL_MSIOF1_1,
1080         FN_SEL_MSIOF1_2, FN_SEL_MSIOF1_3,
1081         FN_SEL_MSIOF1_4, FN_SEL_MSIOF1_5,
1082         FN_SEL_MSIOF1_6,
1083         FN_SEL_LBSC_0, FN_SEL_LBSC_1,
1084         FN_SEL_IEBUS_0, FN_SEL_IEBUS_1,
1085         FN_SEL_I2C6_0, FN_SEL_I2C6_1,
1086         FN_SEL_I2C6_2,
1087         FN_SEL_I2C2_0, FN_SEL_I2C2_1,
1088         FN_SEL_I2C1_0, FN_SEL_I2C1_1,
1089         FN_SEL_HSCIF4_0, FN_SEL_HSCIF4_1,
1090         FN_SEL_HSCIF3_0, FN_SEL_HSCIF3_1,
1091         FN_SEL_HSCIF3_2, FN_SEL_HSCIF3_3,
1092         FN_SEL_HSCIF2_0, FN_SEL_HSCIF2_1,
1093         FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
1094         FN_SEL_FSO_1,
1095         FN_SEL_FM_0, FN_SEL_FM_1,
1096         FN_SEL_ETHERAVB_0, FN_SEL_ETHERAVB_1,
1097         FN_SEL_DRIF3_0, FN_SEL_DRIF3_1,
1098         FN_SEL_DRIF2_0, FN_SEL_DRIF2_1,
1099         FN_SEL_DRIF1_0, FN_SEL_DRIF1_1,
1100         FN_SEL_DRIF1_2,
1101         FN_SEL_DRIF0_0, FN_SEL_DRIF0_1,
1102         FN_SEL_DRIF0_2,
1103         FN_SEL_CANFD_0, FN_SEL_CANFD_1,
1104         FN_SEL_ADG_0, FN_SEL_ADG_1,
1105         FN_SEL_ADG_2, FN_SEL_ADG_3,
1106         FN_SEL_5LINE_0, FN_SEL_5LINE_1,
1107
1108         /* MOD_SEL1 */
1109         FN_SEL_TSIF1_0,
1110         FN_SEL_TSIF1_1,
1111         FN_SEL_TSIF1_2,
1112         FN_SEL_TSIF1_3,
1113         FN_SEL_TSIF0_0,
1114         FN_SEL_TSIF0_1,
1115         FN_SEL_TSIF0_2,
1116         FN_SEL_TSIF0_3,
1117         FN_SEL_TSIF0_4,
1118         FN_SEL_TIMER_TMU_0,
1119         FN_SEL_TIMER_TMU_1,
1120         FN_SEL_SSP1_1_0,
1121         FN_SEL_SSP1_1_1,
1122         FN_SEL_SSP1_1_2,
1123         FN_SEL_SSP1_1_3,
1124         FN_SEL_SSP1_0_0,
1125         FN_SEL_SSP1_0_1,
1126         FN_SEL_SSP1_0_2,
1127         FN_SEL_SSP1_0_3,
1128         FN_SEL_SSP1_0_4,
1129         FN_SEL_SSI_0,
1130         FN_SEL_SSI_1,
1131         FN_SEL_SPEED_PULSE_IF_0,
1132         FN_SEL_SPEED_PULSE_IF_1,
1133         FN_SEL_SIMCARD_0,
1134         FN_SEL_SIMCARD_1,
1135         FN_SEL_SIMCARD_2,
1136         FN_SEL_SIMCARD_3,
1137         FN_SEL_SDHI2_0,
1138         FN_SEL_SDHI2_1,
1139         FN_SEL_SCIF4_0,
1140         FN_SEL_SCIF4_1,
1141         FN_SEL_SCIF4_2,
1142         FN_SEL_SCIF3_0,
1143         FN_SEL_SCIF3_1,
1144         FN_SEL_SCIF2_0,
1145         FN_SEL_SCIF2_1,
1146         FN_SEL_SCIF1_0,
1147         FN_SEL_SCIF1_1,
1148         FN_SEL_SCIF_0,
1149         FN_SEL_SCIF_1,
1150         FN_SEL_REMOCON_0,
1151         FN_SEL_REMOCON_1,
1152         FN_SEL_RDS_0,
1153         FN_SEL_RDS_1,
1154         FN_SEL_RDS_2,
1155         FN_SEL_RCAN_0,
1156         FN_SEL_RCAN_1,
1157         FN_SEL_PWM6_0,
1158         FN_SEL_PWM6_1,
1159         FN_SEL_PWM5_0,
1160         FN_SEL_PWM5_1,
1161         FN_SEL_PWM4_0,
1162         FN_SEL_PWM4_1,
1163         FN_SEL_PWM3_0,
1164         FN_SEL_PWM3_1,
1165         FN_SEL_PWM2_0,
1166         FN_SEL_PWM2_1,
1167         FN_SEL_PWM1_0,
1168         FN_SEL_PWM1_1,
1169
1170         /* MOD_SEL2 */
1171         FN_I2C_SEL_5_0,
1172         FN_I2C_SEL_5_1,
1173         FN_I2C_SEL_3_0,
1174         FN_I2C_SEL_3_1,
1175         FN_I2C_SEL_0_0,
1176         FN_I2C_SEL_0_1,
1177         FN_SEL_VSP_0,
1178         FN_SEL_VSP_1,
1179         FN_SEL_VSP_2,
1180         FN_SEL_VSP_3,
1181         FN_SEL_VIN4_0,
1182         FN_SEL_VIN4_1,
1183
1184         PINMUX_FUNCTION_END,
1185
1186         PINMUX_MARK_BEGIN,
1187
1188         /* GPSR0 */
1189         D15_GMARK,
1190         D14_GMARK,
1191         D13_GMARK,
1192         D12_GMARK,
1193         D11_GMARK,
1194         D10_GMARK,
1195         D9_GMARK,
1196         D8_GMARK,
1197         D7_GMARK,
1198         D6_GMARK,
1199         D5_GMARK,
1200         D4_GMARK,
1201         D3_GMARK,
1202         D2_GMARK,
1203         D1_GMARK,
1204         D0_GMARK,
1205
1206         /* GPSR1 */
1207         EX_WAIT0_A_GMARK,
1208         WE1x_GMARK,
1209         WE0x_GMARK,
1210         RD_WRx_GMARK,
1211         RDx_GMARK,
1212         BSx_GMARK,
1213         CS1x_A26_GMARK,
1214         CS0x_GMARK,
1215         A19_GMARK,
1216         A18_GMARK,
1217         A17_GMARK,
1218         A16_GMARK,
1219         A15_GMARK,
1220         A14_GMARK,
1221         A13_GMARK,
1222         A12_GMARK,
1223         A11_GMARK,
1224         A10_GMARK,
1225         A9_GMARK,
1226         A8_GMARK,
1227         A7_GMARK,
1228         A6_GMARK,
1229         A5_GMARK,
1230         A4_GMARK,
1231         A3_GMARK,
1232         A2_GMARK,
1233         A1_GMARK,
1234         A0_GMARK,
1235
1236         /* GPSR2 */
1237         AVB_AVTP_CAPTURE_A_GMARK,
1238         AVB_AVTP_MATCH_A_GMARK,
1239         AVB_LINK_GMARK,
1240         AVB_PHY_INT_GMARK,
1241         AVB_MAGIC_GMARK,
1242         AVB_MDC_GMARK,
1243         PWM2_A_GMARK,
1244         PWM1_A_GMARK,
1245         PWM0_GMARK,
1246         IRQ5_GMARK,
1247         IRQ4_GMARK,
1248         IRQ3_GMARK,
1249         IRQ2_GMARK,
1250         IRQ1_GMARK,
1251         IRQ0_GMARK,
1252
1253         /* GPSR3 */
1254         SD1_WP_GMARK,
1255         SD1_CD_GMARK,
1256         SD0_WP_GMARK,
1257         SD0_CD_GMARK,
1258         SD1_DAT3_GMARK,
1259         SD1_DAT2_GMARK,
1260         SD1_DAT1_GMARK,
1261         SD1_DAT0_GMARK,
1262         SD1_CMD_GMARK,
1263         SD1_CLK_GMARK,
1264         SD0_DAT3_GMARK,
1265         SD0_DAT2_GMARK,
1266         SD0_DAT1_GMARK,
1267         SD0_DAT0_GMARK,
1268         SD0_CMD_GMARK,
1269         SD0_CLK_GMARK,
1270
1271         /* GPSR4 */
1272         SD3_DS_MARK,
1273         SD3_DAT7_GMARK,
1274         SD3_DAT6_GMARK,
1275         SD3_DAT5_GMARK,
1276         SD3_DAT4_GMARK,
1277         SD3_DAT3_MARK,
1278         SD3_DAT2_MARK,
1279         SD3_DAT1_MARK,
1280         SD3_DAT0_MARK,
1281         SD3_CMD_MARK,
1282         SD3_CLK_MARK,
1283         SD2_DS_GMARK,
1284         SD2_DAT3_GMARK,
1285         SD2_DAT2_GMARK,
1286         SD2_DAT1_GMARK,
1287         SD2_DAT0_GMARK,
1288         SD2_CMD_MARK,
1289         SD2_CLK_GMARK,
1290
1291         /* GPSR5 */
1292         MLB_DAT_GMARK,
1293         MLB_SIG_GMARK,
1294         MLB_CLK_GMARK,
1295         MSIOF0_RXD_MARK,
1296         MSIOF0_SS2_GMARK,
1297         MSIOF0_TXD_MARK,
1298         MSIOF0_SS1_GMARK,
1299         MSIOF0_SYNC_GMARK,
1300         MSIOF0_SCK_MARK,
1301         HRTS0x_GMARK,
1302         HCTS0x_GMARK,
1303         HTX0_GMARK,
1304         HRX0_GMARK,
1305         HSCK0_GMARK,
1306         RX2_A_GMARK,
1307         TX2_A_GMARK,
1308         SCK2_GMARK,
1309         RTS1x_TANS_GMARK,
1310         CTS1x_GMARK,
1311         TX1_A_GMARK,
1312         RX1_A_GMARK,
1313         RTS0x_TANS_GMARK,
1314         CTS0x_GMARK,
1315         TX0_GMARK,
1316         RX0_GMARK,
1317         SCK0_GMARK,
1318
1319         /* GPSR6 */
1320         USB31_OVC_GMARK,
1321         USB31_PWEN_GMARK,
1322         USB30_OVC_GMARK,
1323         USB30_PWEN_GMARK,
1324         USB1_OVC_GMARK,
1325         USB1_PWEN_GMARK,
1326         USB0_OVC_GMARK,
1327         USB0_PWEN_GMARK,
1328         AUDIO_CLKB_B_GMARK,
1329         AUDIO_CLKA_A_GMARK,
1330         SSI_SDATA9_A_GMARK,
1331         SSI_SDATA8_GMARK,
1332         SSI_SDATA7_GMARK,
1333         SSI_WS78_GMARK,
1334         SSI_SCK78_GMARK,
1335         SSI_SDATA6_GMARK,
1336         SSI_WS6_GMARK,
1337         SSI_SCK6_GMARK,
1338         SSI_SDATA5_MARK,
1339         SSI_WS5_MARK,
1340         SSI_SCK5_MARK,
1341         SSI_SDATA4_GMARK,
1342         SSI_WS4_GMARK,
1343         SSI_SCK4_GMARK,
1344         SSI_SDATA3_GMARK,
1345         SSI_WS34_GMARK,
1346         SSI_SCK34_GMARK,
1347         SSI_SDATA2_A_GMARK,
1348         SSI_SDATA1_A_GMARK,
1349         SSI_SDATA0_GMARK,
1350         SSI_WS0129_GMARK,
1351         SSI_SCK0129_GMARK,
1352
1353         /* GPSR7 */
1354         HDMI1_CEC_MARK,
1355         HDMI0_CEC_MARK,
1356         AVS2_MARK,
1357         AVS1_MARK,
1358
1359         /* IPSR0 */
1360         AVB_MDC_IMARK,
1361         MSIOF2_SS2_C_MARK,
1362         AVB_MAGIC_IMARK,
1363         MSIOF2_S1_C_MARK,
1364         SCK4_A_MARK,
1365         AVB_PHY_INT_IMARK,
1366         MSIOF2_SYNC_C_MARK,
1367         RX4_A_MARK,
1368         AVB_LINK_IMARK,
1369         MSIOF2_SCK_C_MARK,
1370         TX4_A_MARK,
1371         AVB_AVTP_MATCH_A_IMARK,
1372         MSIOF2_RXD_C_MARK,
1373         CTS4x_A_MARK,
1374         AVB_AVTP_CAPTURE_A_IMARK,
1375         MSIOF2_TXD_C_MARK,
1376         RTS4x_TANS_A_MARK,
1377         IRQ0_IMARK,
1378         QPOLB_MARK,
1379         DU_CDE_MARK,
1380         VI4_DATA0_B_MARK,
1381         CAN0_TX_B_MARK,
1382         CANFD0_TX_B_MARK,
1383         IRQ1_IMARK,
1384         QPOLA_MARK,
1385         DU_DISP_MARK,
1386         VI4_DATA1_B_MARK,
1387         CAN0_RX_B_MARK,
1388         CANFD0_RX_B_MARK,
1389
1390         /* IPSR1 */
1391         IRQ2_IMARK,
1392         QCPV_QDE_MARK,
1393         DU_EXODDF_DU_ODDF_DISP_CDE_MARK,
1394         VI4_DATA2_B_MARK,
1395         PWM3_B_MARK,
1396         IRQ3_IMARK,
1397         QSTVB_QVE_MARK,
1398         A25_MARK,
1399         DU_DOTCLKOUT1_MARK,
1400         VI4_DATA3_B_MARK,
1401         PWM4_B_MARK,
1402         IRQ4_IMARK,
1403         QSTH_QHS_MARK,
1404         A24_MARK,
1405         DU_EXHSYNC_DU_HSYNC_MARK,
1406         VI4_DATA4_B_MARK,
1407         PWM5_B_MARK,
1408         IRQ5_IMARK,
1409         QSTB_QHE_MARK,
1410         A23_MARK,
1411         DU_EXVSYNC_DU_VSYNC_MARK,
1412         VI4_DATA5_B_MARK,
1413         PWM6_B_MARK,
1414         PWM0_IMARK,
1415         AVB_AVTP_PPS_MARK,
1416         A22_MARK,
1417         VI4_DATA6_B_MARK,
1418         IECLK_B_MARK,
1419         PWM1_A_IMARK,
1420         A21_MARK,
1421         HRX3_D_MARK,
1422         VI4_DATA7_B_MARK,
1423         IERX_B_MARK,
1424         PWM2_A_IMARK,
1425         PWMFSW0_MARK,
1426         A20_MARK,
1427         HTX3_D_MARK,
1428         IETX_B_MARK,
1429         A0_IMARK,
1430         LCDOUT16_MARK,
1431         MSIOF3_SYNC_B_MARK,
1432         VI4_DATA8_MARK,
1433         DU_DB0_MARK,
1434         PWM3_A_MARK,
1435
1436         /* IPSR2 */
1437         A1_IMARK,
1438         LCDOUT17_MARK,
1439         MSIOF3_TXD_B_MARK,
1440         VI4_DATA9_MARK,
1441         DU_DB1_MARK,
1442         PWM4_A_MARK,
1443         A2_IMARK,
1444         LCDOUT18_MARK,
1445         MSIOF3_SCK_B_MARK,
1446         VI4_DATA10_MARK,
1447         DU_DB2_MARK,
1448         PWM5_A_MARK,
1449         A3_IMARK,
1450         LCDOUT19_MARK,
1451         MSIOF3_RXD_B_MARK,
1452         VI4_DATA11_MARK,
1453         DU_DB3_MARK,
1454         PWM6_A_MARK,
1455         A4_IMARK,
1456         LCDOUT20_MARK,
1457         MSIOF3_SS1_B_MARK,
1458         VI4_DATA12_MARK,
1459         VI5_DATA12_MARK,
1460         DU_DB4_MARK,
1461         A5_IMARK,
1462         LCDOUT21_MARK,
1463         MSIOF3_SS2_B_MARK,
1464         SCK4_B_MARK,
1465         VI4_DATA13_MARK,
1466         VI5_DATA13_MARK,
1467         DU_DB5_MARK,
1468         A6_IMARK,
1469         LCDOUT22_MARK,
1470         MSIOF2_SS1_A_MARK,
1471         RX4_B_MARK,
1472         VI4_DATA14_MARK,
1473         VI5_DATA14_MARK,
1474         DU_DB6_MARK,
1475         A7_IMARK,
1476         LCDOUT23_MARK,
1477         MSIOF2_SS2_A_MARK,
1478         TX4_B_MARK,
1479         VI4_DATA15_MARK,
1480         V15_DATA15_MARK,
1481         DU_DB7_MARK,
1482         A8_IMARK,
1483         RX3_B_MARK,
1484         MSIOF2_SYNC_A_MARK,
1485         HRX4_B_MARK,
1486         SDA6_A_MARK,
1487         AVB_AVTP_MATCH_B_MARK,
1488         PWM1_B_MARK,
1489
1490         /* IPSR3 */
1491         A9_IMARK,
1492         MSIOF2_SCK_A_MARK,
1493         CTS4x_B_MARK,
1494         VI5_VSYNCx_MARK,
1495         A10_IMARK,
1496         MSIOF2_RXD_A_MARK,
1497         RTS4n_TANS_B_MARK,
1498         VI5_HSYNCx_MARK,
1499         A11_IMARK,
1500         TX3_B_MARK,
1501         MSIOF2_TXD_A_MARK,
1502         HTX4_B_MARK,
1503         HSCK4_MARK,
1504         VI5_FIELD_MARK,
1505         SCL6_A_MARK,
1506         AVB_AVTP_CAPTURE_B_MARK,
1507         PWM2_B_MARK,
1508         SPV_EVEN_MARK,
1509         A12_IMARK,
1510         LCDOUT12_MARK,
1511         MSIOF3_SCK_C_MARK,
1512         HRX4_A_MARK,
1513         VI5_DATA8_MARK,
1514         DU_DG4_MARK,
1515         A13_IMARK,
1516         LCDOUT13_MARK,
1517         MSIOF3_SYNC_C_MARK,
1518         HTX4_A_MARK,
1519         VI5_DATA9_MARK,
1520         DU_DG5_MARK,
1521         A14_IMARK,
1522         LCDOUT14_MARK,
1523         MSIOF3_RXD_C_MARK,
1524         HCTS4x_MARK,
1525         VI5_DATA10_MARK,
1526         DU_DG6_MARK,
1527         A15_IMARK,
1528         LCDOUT15_MARK,
1529         MSIOF3_TXD_C_MARK,
1530         HRTS4x_MARK,
1531         VI5_DATA11_MARK,
1532         DU_DG7_MARK,
1533         A16_IMARK,
1534         LCDOUT8_MARK,
1535         VI4_FIELD_MARK,
1536         DU_DG0_MARK,
1537
1538         /* IPSR4 */
1539         A17_IMARK,
1540         LCDOUT9_MARK,
1541         VI4_VSYNCx_MARK,
1542         DU_DG1_MARK,
1543         A18_IMARK,
1544         LCDOUT10_MARK,
1545         VI4_HSYNCx_MARK,
1546         DU_DG2_MARK,
1547         A19_IMARK,
1548         LCDOUT11_MARK,
1549         VI4_CLKENB_MARK,
1550         DU_DG3_MARK,
1551         CS0x_IMARK,
1552         VI5_CLKENB_MARK,
1553         CS1x_A26_IMARK,
1554         VI5_CLK_MARK,
1555         EX_WAIT0_B_MARK,
1556         BSx_IMARK,
1557         QSTVA_QVS_MARK,
1558         MSIOF3_SCK_D_MARK,
1559         SCK3_MARK,
1560         HSCK3_MARK,
1561         CAN1_TX_MARK,
1562         CANFD1_TX_MARK,
1563         IETX_A_MARK,
1564         RDx_IMARK,
1565         MSIOF3_SYNC_D_MARK,
1566         RX3_A_MARK,
1567         HRX3_A_MARK,
1568         CAN0_TX_A_MARK,
1569         CANFD0_TX_A_MARK,
1570         RD_WRx_IMARK,
1571         MSIOF3_RXD_D_MARK,
1572         TX3_A_MARK,
1573         HTX3_A_MARK,
1574         CAN0_RX_A_MARK,
1575         CANFD0_RX_A_MARK,
1576
1577         /* IPSR5 */
1578         WE0x_IMARK,
1579         MSIIOF3_TXD_D_MARK,
1580         CTS3x_MARK,
1581         HCTS3x_MARK,
1582         SCL6_B_MARK,
1583         CAN_CLK_MARK,
1584         IECLK_A_MARK,
1585         WE1x_IMARK,
1586         MSIOF3_SS1_D_MARK,
1587         RTS3x_TANS_MARK,
1588         HRTS3x_MARK,
1589         SDA6_B_MARK,
1590         CAN1_RX_MARK,
1591         CANFD1_RX_MARK,
1592         IERX_A_MARK,
1593         EX_WAIT0_A_IMARK,
1594         QCLK_MARK,
1595         VI4_CLK_MARK,
1596         DU_DOTCLKOUT0_MARK,
1597         D0_IMARK,
1598         MSIOF2_SS1_B_MARK,
1599         MSIOF3_SCK_A_MARK,
1600         VI4_DATA16_MARK,
1601         VI5_DATA0_MARK,
1602         D1_IMARK,
1603         MSIOF2_SS2_B_MARK,
1604         MSIOF3_SYNC_A_MARK,
1605         VI4_DATA17_MARK,
1606         VI5_DATA1_MARK,
1607         D2_IMARK,
1608         MSIOF3_RXD_A_MARK,
1609         VI4_DATA18_MARK,
1610         VI5_DATA2_MARK,
1611         D3_IMARK,
1612         MSIOF3_TXD_A_MARK,
1613         VI4_DATA19_MARK,
1614         VI5_DATA3_MARK,
1615         D4_IMARK,
1616         MSIOF2_SCK_B_MARK,
1617         VI4_DATA20_MARK,
1618         VI5_DATA4_MARK,
1619
1620         /* IPSR6 */
1621         D5_IMARK,
1622         MSIOF2_SYNC_B_MARK,
1623         VI4_DATA21_MARK,
1624         VI5_DATA5_MARK,
1625         D6_IMARK,
1626         MSIOF2_RXD_B_MARK,
1627         VI4_DATA22_MARK,
1628         VI5_DATA6_MARK,
1629         D7_IMARK,
1630         MSIOF2_TXD_B_MARK,
1631         VI4_DATA23_MARK,
1632         VI5_DATA7_MARK,
1633         D8_IMARK,
1634         LCDOUT0_MARK,
1635         MSIOF2_SCK_D_MARK,
1636         SCK4_C_MARK,
1637         VI4_DATA0_A_MARK,
1638         DU_DR0_MARK,
1639         D9_IMARK,
1640         LCDOUT1_MARK,
1641         MSIOF2_SYNC_D_MARK,
1642         VI4_DATA1_A_MARK,
1643         DU_DR1_MARK,
1644         D10_IMARK,
1645         LCDOUT2_MARK,
1646         MSIOF2_RXD_D_MARK,
1647         HRX3_B_MARK,
1648         VI4_DATA2_A_MARK,
1649         CTS4x_C_MARK,
1650         DU_DR2_MARK,
1651         D11_IMARK,
1652         LCDOUT3_MARK,
1653         MSIOF2_TXD_D_MARK,
1654         HTX3_B_MARK,
1655         VI4_DATA3_A_MARK,
1656         RTS4x_TANS_C_MARK,
1657         DU_DR3_MARK,
1658         D12_IMARK,
1659         LCDOUT4_MARK,
1660         MSIOF2_SS1_D_MARK,
1661         RX4_C_MARK,
1662         VI4_DATA4_A_MARK,
1663         DU_DR4_MARK,
1664
1665         /* IPSR7 */
1666         D13_IMARK,
1667         LCDOUT5_MARK,
1668         MSIOF2_SS2_D_MARK,
1669         TX4_C_MARK,
1670         VI4_DATA5_A_MARK,
1671         DU_DR5_MARK,
1672         D14_IMARK,
1673         LCDOUT6_MARK,
1674         MSIOF3_SS1_A_MARK,
1675         HRX3_C_MARK,
1676         VI4_DATA6_A_MARK,
1677         DU_DR6_MARK,
1678         SCL6_C_MARK,
1679         D15_IMARK,
1680         LCDOUT7_MARK,
1681         MSIOF3_SS2_A_MARK,
1682         HTX3_C_MARK,
1683         VI4_DATA7_A_MARK,
1684         DU_DR7_MARK,
1685         SDA6_C_MARK,
1686         FSCLKST_MARK,
1687         SD0_CLK_IMARK,
1688         MSIOF1_SCK_E_MARK,
1689         STP_OPWM_0_B_MARK,
1690         SD0_CMD_IMARK,
1691         MSIOF1_SYNC_E_MARK,
1692         STP_IVCXO27_0_B_MARK,
1693         SD0_DAT0_IMARK,
1694         MSIOF1_RXD_E_MARK,
1695         TS_SCK0_B_MARK,
1696         STP_ISCLK_0_B_MARK,
1697         SD0_DAT1_IMARK,
1698         MSIOF1_TXD_E_MARK,
1699         TS_SPSYNC0_B_MARK,
1700         STP_ISSYNC_0_B_MARK,
1701
1702         /* IPSR8 */
1703         SD0_DAT2_IMARK,
1704         MSIOF1_SS1_E_MARK,
1705         TS_SDAT0_B_MARK,
1706         STP_ISD_0_B_MARK,
1707         SD0_DAT3_IMARK,
1708         MSIOF1_SS2_E_MARK,
1709         TS_SDEN0_B_MARK,
1710         STP_ISEN_0_B_MARK,
1711         SD1_CLK_IMARK,
1712         MSIOF1_SCK_G_MARK,
1713         SIM0_CLK_A_MARK,
1714
1715         SD1_CMD_IMARK,
1716         MSIOF1_SYNC_G_MARK,
1717         SIM0_D_A_MARK,
1718         STP_IVCXO27_1_B_MARK,
1719
1720         SD1_DAT0_IMARK,
1721         SD2_DAT4_MARK,
1722         MSIOF1_RXD_G_MARK,
1723         TS_SCK1_B_MARK,
1724         STP_ISCLK_1_B_MARK,
1725
1726         SD1_DAT1_IMARK,
1727         SD2_DAT5_MARK,
1728         MSIOF1_TXD_G_MARK,
1729         TS_SPSYNC1_B_MARK,
1730         STP_ISSYNC_1_B_MARK,
1731
1732         SD1_DAT2_IMARK,
1733         SD2_DAT6_MARK,
1734         MSIOF1_SS1_G_MARK,
1735         TS_SDAT1_B_MARK,
1736         STP_IOD_1_B_MARK,
1737         SD1_DAT3_IMARK,
1738         SD2_DAT7_MARK,
1739         MSIOF1_SS2_G_MARK,
1740         TS_SDEN1_B_MARK,
1741         STP_ISEN_1_B_MARK,
1742
1743         /* IPSR9 */
1744         SD2_CLK_IMARK,
1745         SCKZ_A_MARK,
1746         SD2_DAT0_IMARK,
1747         MTSx_A_MARK,
1748         SD2_DAT1_IMARK,
1749         STMx_A_MARK,
1750         SD2_DAT2_IMARK,
1751         MDATA_A_MARK,
1752         SD2_DAT3_IMARK,
1753         SDATA_A_MARK,
1754         SD2_DS_IMARK,
1755         SATA_DEVSLP_B_MARK,
1756         VSP_A_MARK,
1757         SD3_DAT4_IMARK,
1758         SD2_CD_A_MARK,
1759         SD3_DAT5_IMARK,
1760         SD2_WP_A_MARK,
1761
1762         /* IPSR10 */
1763         SD3_DAT6_IMARK,
1764         SD3_CD_MARK,
1765         SD3_DAT7_IMARK,
1766         SD3_WP_MARK,
1767         SD0_CD_IMARK,
1768         SCL2_B_MARK,
1769         SIM0_RST_A_MARK,
1770         SD0_WP_IMARK,
1771         SDA2_B_MARK,
1772         SD1_CD_IMARK,
1773         SIM0_CLK_B_MARK,
1774         SD1_WP_IMARK,
1775         SIM0_D_B_MARK,
1776         SCK0_IMARK,
1777         HSCK1_B_MARK,
1778         MSIOF1_SS2_B_MARK,
1779         AUDIO_CLKC_B_MARK,
1780         SDA2_A_MARK,
1781         SIM0_RST_B_MARK,
1782         STP_OPWM__C_MARK,
1783         RIF0_CLK_B_MARK,
1784         ADICHS2_MARK,
1785         RX0_IMARK,
1786         HRX1_B_MARK,
1787         TS_SCK0_C_MARK,
1788         STP_ISCLK_0_C_MARK,
1789         RIF0_D0_B_MARK,
1790
1791         /* IPSR11 */
1792         TX0_IMARK,
1793         HTX1_B_MARK,
1794         TS_SPSYNC0_C_MARK,
1795         STP_ISSYNC_0_C_MARK,
1796         RIF0_D1_B_MARK,
1797         CTS0x_IMARK,
1798         HCTS1x_B_MARK,
1799         MSIOF1_SYNC_B_MARK,
1800         TS_SPSYNC1_C_MARK,
1801         STP_ISSYNC_1_C_MARK,
1802         RIF1_SYNC_B_MARK,
1803         AUDIO_CLKOUT_C_MARK,
1804         ADICS_SAMP_MARK,
1805         RTS0x_TANS_IMARK,
1806         HRTS1x_B_MARK,
1807         MSIOF1_SS1_B_MARK,
1808         AUDIO_CLKA_B_MARK,
1809         SCL2_A_MARK,
1810         STP_IVCXO27_1_C_MARK,
1811         RIF0_SYNC_B_MARK,
1812         ADICHS1_MARK,
1813         RX1_A_IMARK,
1814         HRX1_A_MARK,
1815         TS_SDAT0_C_MARK,
1816         STP_IDS_0_C_MARK,
1817         RIF1_CLK_C_MARK,
1818         TX1_A_IMARK,
1819         HTX1_A_MARK,
1820         TS_SDEN0_C_MARK,
1821         STP_ISEN_0_C_MARK,
1822         RIF1_D0_C_MARK,
1823         CTS1x_IMARK,
1824         HCTS1x_A_MARK,
1825         MSIOF1_RXD_B_MARK,
1826         TS_SDEN1_C_MARK,
1827         STP_ISEN_1_C_MARK,
1828         RIF1_D0_B_MARK,
1829         ADIDATA_MARK,
1830         RTS1x_TANS_IMARK,
1831         HRTS1x_A_MARK,
1832         MSIOF1_TXD_B_MARK,
1833         TS_SDAT1_C_MARK,
1834         STP_ISD_1_C_MARK,
1835         RIF1_D1_B_MARK,
1836         ADICHS0_MARK,
1837         SCK2_IMARK,
1838         SCIF_CLK_B_MARK,
1839         MSIOF1_SCK_B_MARK,
1840         TS_SCK1_C_MARK,
1841         STP_ISCLK_1_C_MARK,
1842         RIF1_CLK_B_MARK,
1843         ADICLK_MARK,
1844
1845         /* IPSR12 */
1846         TX2_A_IMARK,
1847         SD2_CD_B_MARK,
1848         SCL1_A_MARK,
1849         RSD_CLK_B_MARK,
1850         FMCLK_A_MARK,
1851         RIF1_D1_C_MARK,
1852         FSO_CFE_0_B_MARK,
1853         RX2_A_IMARK,
1854         SD2_WP_B_MARK,
1855         SDA1_A_MARK,
1856         RDS_DATA_B_MARK,
1857         RMIN_A_MARK,
1858         RIF1_SYNC_C_MARK,
1859         FSO_CEF_1_B_MARK,
1860         HSCK0_IMARK,
1861         MSIOF1_SCK_D_MARK,
1862         AUDIO_CLKB_A_MARK,
1863         SSI_SDATA1_B_MARK,
1864         TS_SCK0_D_MARK,
1865         STP_ISCLK_0_D_MARK,
1866         RIF0_CLK_C_MARK,
1867         AD_CLK_MARK,
1868         HRX0_IMARK,
1869         MSIOF1_RXD_D_MARK,
1870         SS1_SDATA2_B_MARK,
1871         TS_SDEN0_D_MARK,
1872         STP_ISEN_0_D_MARK,
1873         RIF0_D0_C_MARK,
1874         AD_DI_MARK,
1875         HTX0_IMARK,
1876         MSIOF1_TXD_D_MARK,
1877         SSI_SDATA9_B_MARK,
1878         TS_SDAT0_D_MARK,
1879         STP_ISD_0_D_MARK,
1880         RIF0_D1_C_MARK,
1881         AD_DO_MARK,
1882         HCTS0x_IMARK,
1883         RX2_B_MARK,
1884         MSIOF1_SYNC_D_MARK,
1885         SSI_SCK9_A_MARK,
1886         TS_SPSYNC0_D_MARK,
1887         STP_ISSYNC_0_D_MARK,
1888         RIF0_SYNC_C_MARK,
1889         AUDIO_CLKOUT1_A_MARK,
1890         AD_NSCx_MARK,
1891         HRTS0x_IMARK,
1892         TX2_B_MARK,
1893         MSIOF1_SS1_D_MARK,
1894         SSI_WS9_A_MARK,
1895         STP_IVCXO27_0_D_MARK,
1896         BPFCLK_A_MARK,
1897         AUDIO_CLKOUT2_A_MARK,
1898         MSIOF0_SYNC_IMARK,
1899         AUDIO_CLKOUT_A_MARK,
1900
1901         /* IPSR13 */
1902         MSIOF0_SS1_IMARK,
1903         RX5_MARK,
1904         AUDIO_CLKA_C_MARK,
1905         SSI_SCK2_A_MARK,
1906         RDS_CLK_A_MARK,
1907         STP_IVCXO27_0_C_MARK,
1908         AUDIO_CLKOUT3_A_MARK,
1909         TCLK1_B_MARK,
1910         MSIOF0_SS2_IMARK,
1911         TX5_MARK,
1912         MSIOF1_SS2_D_MARK,
1913         AUDIO_CLKC_A_MARK,
1914         SSI_WS2_A_MARK,
1915         RDS_DATA_A_MARK,
1916         STP_OPWM_0_D_MARK,
1917         AUDIO_CLKOUT_D_MARK,
1918         SPEEDIN_B_MARK,
1919         MLB_CLK_IMARK,
1920         MSIOF1_SCK_F_MARK,
1921         SCL1_B_MARK,
1922         MLB_SIG_IMARK,
1923         RX1_B_MARK,
1924         MSIOF1_SYNC_F_MARK,
1925         SDA1_B_MARK,
1926         MLB_DAT_IMARK,
1927         TX1_B_MARK,
1928         MSIOF1_RXD_F_MARK,
1929         SSI_SCK0129_IMARK,
1930         MSIOF1_TXD_F_MARK,
1931         MOUT0_MARK,
1932         SSI_WS0129_IMARK,
1933         MSIOF1_SS1_F_MARK,
1934         MOUT1_MARK,
1935         SSI_SDATA0_IMARK,
1936         MSIOF1_SS2_F_MARK,
1937         MOUT2_MARK,
1938
1939         /* IPSR14 */
1940         SSI_SDATA1_A_IMARK,
1941         MOUT5_MARK,
1942         SSI_SDATA2_A_IMARK,
1943         SSI_SCK1_B_MARK,
1944         MOUT6_MARK,
1945         SSI_SCK34_IMARK,
1946         MSIOF1_SS1_A_MARK,
1947         STP_OPWM_0_A_MARK,
1948         SSI_WS34_IMARK,
1949         HCTS2x_A_MARK,
1950         MSIOF1_SS2_A_MARK,
1951         STP_IVCXO27_0_A_MARK,
1952         SSI_SDATA3_IMARK,
1953         HRTS2x_A_MARK,
1954         MSIOF1_TXD_A_MARK,
1955         TS_SCK0_A_MARK,
1956         STP_ISCLK_0_A_MARK,
1957         RIF0_D1_A_MARK,
1958         RIF2_D0_A_MARK,
1959         SSI_SCK4_IMARK,
1960         HRX2_A_MARK,
1961         MSIOF1_SCK_A_MARK,
1962         TS_SDAT0_A_MARK,
1963         STP_ISD_0_A_MARK,
1964         RIF0_CLK_A_MARK,
1965         RIF2_CLK_A_MARK,
1966         SSI_WS4_IMARK,
1967         HTX2_A_MARK,
1968         MSIOF1_SYNC_A_MARK,
1969         TS_SDEN0_A_MARK,
1970         STP_ISEN_0_A_MARK,
1971         RIF0_SYNC_A_MARK,
1972         RIF2_SYNC_A_MARK,
1973         SSI_SDATA4_IMARK,
1974         HSCK2_A_MARK,
1975         MSIOF1_RXD_A_MARK,
1976         TS_SPSYNC0_A_MARK,
1977         STP_ISSYNC_0_A_MARK,
1978         RIF0_D0_A_MARK,
1979         RIF2_D1_A_MARK,
1980
1981         SSI_SCK6_IMARK,
1982         USB2_PWEN_MARK,
1983         SIM0_RST_D_MARK,
1984         RDS_CLK_C_MARK,
1985         SSI_WS6_IMARK,
1986         USB2_OVC_MARK,
1987         SIM0_D_D_MARK,
1988         SSI_SDATA6_IMARK,
1989         SIM0_CLK_D_MARK,
1990         RSD_DATA_C_MARK,
1991         SATA_DEVSLP_A_MARK,
1992         SSI_SCK78_IMARK,
1993         HRX2_B_MARK,
1994         MSIOF1_SCK_C_MARK,
1995         TS_SCK1_A_MARK,
1996         STP_ISCLK_1_A_MARK,
1997         RIF1_CLK_A_MARK,
1998         RIF3_CLK_A_MARK,
1999         SSI_WS78_IMARK,
2000         HTX2_B_MARK,
2001         MSIOF1_SYNC_C_MARK,
2002         TS_SDT1_A_MARK,
2003         STP_ISD_1_A_MARK,
2004         RIF1_SYNC_A_MARK,
2005         RIF3_SYNC_A_MARK,
2006         SSI_SDATA7_IMARK,
2007         HCTS2x_B_MARK,
2008         MSIOF1_RXD_C_MARK,
2009         TS_SDEN1_A_MARK,
2010         STP_IEN_1_A_MARK,
2011         RIF1_D0_A_MARK,
2012         RIF3_D0_A_MARK,
2013         TCLK2_A_MARK,
2014         SSI_SDATA8_IMARK,
2015         HRTS2x_B_MARK,
2016         MSIOF1_TXD_C_MARK,
2017         TS_SPSYNC1_A_MARK,
2018         STP_ISSYNC_1_A_MARK,
2019         RIF1_D1_A_MARK,
2020         EIF3_D1_A_MARK,
2021         SSI_SDATA9_A_IMARK,
2022         HSCK2_B_MARK,
2023         MSIOF1_SS1_C_MARK,
2024         HSCK1_A_MARK,
2025         SSI_WS1_B_MARK,
2026         SCK1_MARK,
2027         STP_IVCXO27_1_A_MARK,
2028         SCK5_MARK,
2029
2030         /* IPSR16 */
2031         AUDIO_CLKA_A_IMARK,
2032         CC5_OSCOUT_MARK,
2033         AUDIO_CLKB_B_IMARK,
2034         SCIF_CLK_A_MARK,
2035         DVC_MUTE_MARK,
2036         STP_IVCXO27_1_D_MARK,
2037         REMOCON_A_MARK,
2038         TCLK1_A_MARK,
2039         VSP_B_MARK,
2040         USB0_PWEN_IMARK,
2041         SIM0_RST_C_MARK,
2042         TS_SCK1_D_MARK,
2043         STP_ISCLK_1_D_MARK,
2044         BPFCLK_B_MARK,
2045         RIF3_CLK_B_MARK,
2046         SCKZ_B_MARK,
2047         USB0_OVC_IMARK,
2048         SIM0_D_C_MARK,
2049         TS_SDAT1_D_MARK,
2050         STP_ISD_1_D_MARK,
2051         RIF3_SYNC_B_MARK,
2052         VSP_C_MARK,
2053         USB1_PWEN_IMARK,
2054         SIM0_CLK_C_MARK,
2055         SSI_SCK1_A_MARK,
2056         TS_SCK0_E_MARK,
2057         STP_ISCLK_0_E_MARK,
2058         FMCLK_B_MARK,
2059         RIF2_CLK_B_MARK,
2060         MTSx_B_MARK,
2061         SPEEDIN_A_MARK,
2062         VSP_D_MARK,
2063         USB1_OVC_IMARK,
2064         MSIOF1_SS2_C_MARK,
2065         SSI_WS1_A_MARK,
2066         TS_SDAT0_E_MARK,
2067         STP_ISD_0_E_MARK,
2068         FMIN_B_MARK,
2069         RIF2_SYNC_B_MARK,
2070         STMx_B_MARK,
2071         REMOCON_B_MARK,
2072         USB30_PWEN_IMARK,
2073         AUDIO_CLKOUT_B_MARK,
2074         SSI_SCK2_B_MARK,
2075         TS_SDEN1_D_MARK,
2076         STP_ISEN_1_D_MARK,
2077         STP_OPWM_0_E_MARK,
2078         RIF3_D0_B_MARK,
2079         MDATA_B_MARK,
2080         TCLK2_B_MARK,
2081         TPU0TO0_MARK,
2082         USB30_OVC_IMARK,
2083         AUDIO_CLKOUT1_B_MARK,
2084         SSI_WS2_B_MARK,
2085         TS_SPSYNC1_D_MARK,
2086         STP_ISSYNC_1_D_MARK,
2087         STP_IVCXO27_0_E_MARK,
2088         RIF3_D1_B_MARK,
2089         SDATA_B_MARK,
2090         RSO_TOE_B_MARK,
2091         TPU0TO1_MARK,
2092
2093         /* IPSR17 */
2094         USB31_PWEN_IMARK,
2095         AUDIO_CLKOUT2_B_MARK,
2096         SI_SCK9_B_MARK,
2097         TS_SDEN0_E_MARK,
2098         STP_ISEN_0_E_MARK,
2099         RIF2_D0_B_MARK,
2100         TPU0TO2_MARK,
2101         USB31_OVC_IMARK,
2102         AUDIO_CLKOUT3_B_MARK,
2103         SSI_WS9_B_MARK,
2104         TS_SPSYNC0_E_MARK,
2105         STP_ISSYNC_0_E_MARK,
2106         RIF2_D1_B_MARK,
2107         TPU0TO3_MARK,
2108
2109         PINMUX_MARK_END,
2110 };
2111
2112 static pinmux_enum_t pinmux_data[] = {
2113         PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
2114
2115         /* GPSR0 */
2116         PINMUX_DATA(D15_GMARK, GFN_D15),
2117         PINMUX_DATA(D14_GMARK, GFN_D14),
2118         PINMUX_DATA(D13_GMARK, GFN_D13),
2119         PINMUX_DATA(D12_GMARK, GFN_D12),
2120         PINMUX_DATA(D11_GMARK, GFN_D11),
2121         PINMUX_DATA(D10_GMARK, GFN_D10),
2122         PINMUX_DATA(D9_GMARK, GFN_D9),
2123         PINMUX_DATA(D8_GMARK, GFN_D8),
2124         PINMUX_DATA(D7_GMARK, GFN_D7),
2125         PINMUX_DATA(D6_GMARK, GFN_D6),
2126         PINMUX_DATA(D5_GMARK, GFN_D5),
2127         PINMUX_DATA(D4_GMARK, GFN_D4),
2128         PINMUX_DATA(D3_GMARK, GFN_D3),
2129         PINMUX_DATA(D2_GMARK, GFN_D2),
2130         PINMUX_DATA(D1_GMARK, GFN_D1),
2131         PINMUX_DATA(D0_GMARK, GFN_D0),
2132
2133         /* GPSR1 */
2134         PINMUX_DATA(EX_WAIT0_A_GMARK, GFN_EX_WAIT0_A),
2135         PINMUX_DATA(WE1x_GMARK, GFN_WE1x),
2136         PINMUX_DATA(WE0x_GMARK, GFN_WE0x),
2137         PINMUX_DATA(RD_WRx_GMARK, GFN_RD_WRx),
2138         PINMUX_DATA(RDx_GMARK, GFN_RDx),
2139         PINMUX_DATA(BSx_GMARK, GFN_BSx),
2140         PINMUX_DATA(CS1x_A26_GMARK, GFN_CS1x_A26),
2141         PINMUX_DATA(CS0x_GMARK, GFN_CS0x),
2142         PINMUX_DATA(A19_GMARK, GFN_A19),
2143         PINMUX_DATA(A18_GMARK, GFN_A18),
2144         PINMUX_DATA(A17_GMARK, GFN_A17),
2145         PINMUX_DATA(A16_GMARK, GFN_A16),
2146         PINMUX_DATA(A15_GMARK, GFN_A15),
2147         PINMUX_DATA(A14_GMARK, GFN_A14),
2148         PINMUX_DATA(A13_GMARK, GFN_A13),
2149         PINMUX_DATA(A12_GMARK, GFN_A12),
2150         PINMUX_DATA(A11_GMARK, GFN_A11),
2151         PINMUX_DATA(A10_GMARK, GFN_A10),
2152         PINMUX_DATA(A9_GMARK, GFN_A9),
2153         PINMUX_DATA(A8_GMARK, GFN_A8),
2154         PINMUX_DATA(A7_GMARK, GFN_A7),
2155         PINMUX_DATA(A6_GMARK, GFN_A6),
2156         PINMUX_DATA(A5_GMARK, GFN_A5),
2157         PINMUX_DATA(A4_GMARK, GFN_A4),
2158         PINMUX_DATA(A3_GMARK, GFN_A3),
2159         PINMUX_DATA(A2_GMARK, GFN_A2),
2160         PINMUX_DATA(A1_GMARK, GFN_A1),
2161         PINMUX_DATA(A0_GMARK, GFN_A0),
2162
2163         /* GPSR2 */
2164         PINMUX_DATA(AVB_AVTP_CAPTURE_A_GMARK, GFN_AVB_AVTP_CAPTURE_A),
2165         PINMUX_DATA(AVB_AVTP_MATCH_A_GMARK, GFN_AVB_AVTP_MATCH_A),
2166         PINMUX_DATA(AVB_LINK_GMARK, GFN_AVB_LINK),
2167         PINMUX_DATA(AVB_PHY_INT_GMARK, GFN_AVB_PHY_INT),
2168         PINMUX_DATA(AVB_MAGIC_GMARK, GFN_AVB_MAGIC),
2169         PINMUX_DATA(AVB_MDC_GMARK, GFN_AVB_MDC),
2170         PINMUX_DATA(PWM2_A_GMARK, GFN_PWM2_A),
2171         PINMUX_DATA(PWM1_A_GMARK, GFN_PWM1_A),
2172         PINMUX_DATA(PWM0_GMARK, GFN_PWM0),
2173         PINMUX_DATA(IRQ5_GMARK, GFN_IRQ5),
2174         PINMUX_DATA(IRQ4_GMARK, GFN_IRQ4),
2175         PINMUX_DATA(IRQ3_GMARK, GFN_IRQ3),
2176         PINMUX_DATA(IRQ2_GMARK, GFN_IRQ2),
2177         PINMUX_DATA(IRQ1_GMARK, GFN_IRQ1),
2178         PINMUX_DATA(IRQ0_GMARK, GFN_IRQ0),
2179
2180         /* GPSR3 */
2181         PINMUX_DATA(SD1_WP_GMARK, GFN_SD1_WP),
2182         PINMUX_DATA(SD1_CD_GMARK, GFN_SD1_CD),
2183         PINMUX_DATA(SD0_WP_GMARK, GFN_SD0_WP),
2184         PINMUX_DATA(SD0_CD_GMARK, GFN_SD0_CD),
2185         PINMUX_DATA(SD1_DAT3_GMARK, GFN_SD1_DAT3),
2186         PINMUX_DATA(SD1_DAT2_GMARK, GFN_SD1_DAT2),
2187         PINMUX_DATA(SD1_DAT1_GMARK, GFN_SD1_DAT1),
2188         PINMUX_DATA(SD1_DAT0_GMARK, GFN_SD1_DAT0),
2189         PINMUX_DATA(SD1_CMD_GMARK, GFN_SD1_CMD),
2190         PINMUX_DATA(SD1_CLK_GMARK, GFN_SD1_CLK),
2191         PINMUX_DATA(SD0_DAT3_GMARK, GFN_SD0_DAT3),
2192         PINMUX_DATA(SD0_DAT2_GMARK, GFN_SD0_DAT2),
2193         PINMUX_DATA(SD0_DAT1_GMARK, GFN_SD0_DAT1),
2194         PINMUX_DATA(SD0_DAT0_GMARK, GFN_SD0_DAT0),
2195         PINMUX_DATA(SD0_CMD_GMARK, GFN_SD0_CMD),
2196         PINMUX_DATA(SD0_CLK_GMARK, GFN_SD0_CLK),
2197
2198         /* GPSR4 */
2199         PINMUX_DATA(SD3_DS_MARK, FN_SD3_DS),
2200         PINMUX_DATA(SD3_DAT7_GMARK, GFN_SD3_DAT7),
2201         PINMUX_DATA(SD3_DAT6_GMARK, GFN_SD3_DAT6),
2202         PINMUX_DATA(SD3_DAT5_GMARK, GFN_SD3_DAT5),
2203         PINMUX_DATA(SD3_DAT4_GMARK, GFN_SD3_DAT4),
2204         PINMUX_DATA(SD3_DAT3_MARK, FN_SD3_DAT3),
2205         PINMUX_DATA(SD3_DAT2_MARK, FN_SD3_DAT2),
2206         PINMUX_DATA(SD3_DAT1_MARK, FN_SD3_DAT1),
2207         PINMUX_DATA(SD3_DAT0_MARK, FN_SD3_DAT0),
2208         PINMUX_DATA(SD3_CMD_MARK, FN_SD3_CMD),
2209         PINMUX_DATA(SD3_CLK_MARK, FN_SD3_CLK),
2210         PINMUX_DATA(SD2_DS_GMARK, GFN_SD2_DS),
2211         PINMUX_DATA(SD2_DAT3_GMARK, GFN_SD2_DAT3),
2212         PINMUX_DATA(SD2_DAT2_GMARK, GFN_SD2_DAT2),
2213         PINMUX_DATA(SD2_DAT1_GMARK, GFN_SD2_DAT1),
2214         PINMUX_DATA(SD2_DAT0_GMARK, GFN_SD2_DAT0),
2215         PINMUX_DATA(SD2_CMD_MARK, FN_SD2_CMD),
2216         PINMUX_DATA(SD2_CLK_GMARK, GFN_SD2_CLK),
2217
2218         /* GPSR5 */
2219         PINMUX_DATA(MLB_DAT_GMARK, GFN_MLB_DAT),
2220         PINMUX_DATA(MLB_SIG_GMARK, GFN_MLB_SIG),
2221         PINMUX_DATA(MLB_CLK_GMARK, GFN_MLB_CLK),
2222         PINMUX_DATA(MSIOF0_RXD_MARK, FN_MSIOF0_RXD),
2223         PINMUX_DATA(MSIOF0_SS2_GMARK, GFN_MSIOF0_SS2),
2224         PINMUX_DATA(MSIOF0_TXD_MARK, FN_MSIOF0_TXD),
2225         PINMUX_DATA(MSIOF0_SS1_GMARK, GFN_MSIOF0_SS1),
2226         PINMUX_DATA(MSIOF0_SYNC_GMARK, GFN_MSIOF0_SYNC),
2227         PINMUX_DATA(MSIOF0_SCK_MARK, FN_MSIOF0_SCK),
2228         PINMUX_DATA(HRTS0x_GMARK, GFN_HRTS0x),
2229         PINMUX_DATA(HCTS0x_GMARK, GFN_HCTS0x),
2230         PINMUX_DATA(HTX0_GMARK, GFN_HTX0),
2231         PINMUX_DATA(HRX0_GMARK, GFN_HRX0),
2232         PINMUX_DATA(HSCK0_GMARK, GFN_HSCK0),
2233         PINMUX_DATA(RX2_A_GMARK, GFN_RX2_A),
2234         PINMUX_DATA(TX2_A_GMARK, GFN_TX2_A),
2235         PINMUX_DATA(SCK2_GMARK, GFN_SCK2),
2236         PINMUX_DATA(RTS1x_TANS_GMARK, GFN_RTS1x_TANS),
2237         PINMUX_DATA(CTS1x_GMARK, GFN_CTS1x),
2238         PINMUX_DATA(TX1_A_GMARK, GFN_TX1_A),
2239         PINMUX_DATA(RX1_A_GMARK, GFN_RX1_A),
2240         PINMUX_DATA(RTS0x_TANS_GMARK, GFN_RTS0x_TANS),
2241         PINMUX_DATA(CTS0x_GMARK, GFN_CTS0x),
2242         PINMUX_DATA(TX0_GMARK, GFN_TX0),
2243         PINMUX_DATA(RX0_GMARK, GFN_RX0),
2244         PINMUX_DATA(SCK0_GMARK, GFN_SCK0),
2245
2246         /* GPSR6 */
2247         PINMUX_DATA(USB31_OVC_GMARK, GFN_USB31_OVC),
2248         PINMUX_DATA(USB31_PWEN_GMARK, GFN_USB31_PWEN),
2249         PINMUX_DATA(USB30_OVC_GMARK, GFN_USB30_OVC),
2250         PINMUX_DATA(USB30_PWEN_GMARK, GFN_USB30_PWEN),
2251         PINMUX_DATA(USB1_OVC_GMARK, GFN_USB1_OVC),
2252         PINMUX_DATA(USB1_PWEN_GMARK, GFN_USB1_PWEN),
2253         PINMUX_DATA(USB0_OVC_GMARK, GFN_USB0_OVC),
2254         PINMUX_DATA(USB0_PWEN_GMARK, GFN_USB0_PWEN),
2255         PINMUX_DATA(AUDIO_CLKB_B_GMARK, GFN_AUDIO_CLKB_B),
2256         PINMUX_DATA(AUDIO_CLKA_A_GMARK, GFN_AUDIO_CLKA_A),
2257         PINMUX_DATA(SSI_SDATA9_A_GMARK, GFN_SSI_SDATA9_A),
2258         PINMUX_DATA(SSI_SDATA8_GMARK, GFN_SSI_SDATA8),
2259         PINMUX_DATA(SSI_SDATA7_GMARK, GFN_SSI_SDATA7),
2260         PINMUX_DATA(SSI_WS78_GMARK, GFN_SSI_WS78),
2261         PINMUX_DATA(SSI_SCK78_GMARK, GFN_SSI_SCK78),
2262         PINMUX_DATA(SSI_SDATA6_GMARK, GFN_SSI_SDATA6),
2263         PINMUX_DATA(SSI_WS6_GMARK, GFN_SSI_WS6),
2264         PINMUX_DATA(SSI_SCK6_GMARK, GFN_SSI_SCK6),
2265         PINMUX_DATA(SSI_SDATA5_MARK, FN_SSI_SDATA5),
2266         PINMUX_DATA(SSI_WS5_MARK, FN_SSI_WS5),
2267         PINMUX_DATA(SSI_SCK5_MARK, FN_SSI_SCK5),
2268         PINMUX_DATA(SSI_SDATA4_GMARK, GFN_SSI_SDATA4),
2269         PINMUX_DATA(SSI_WS4_GMARK, GFN_SSI_WS4),
2270         PINMUX_DATA(SSI_SCK4_GMARK, GFN_SSI_SCK4),
2271         PINMUX_DATA(SSI_SDATA3_GMARK, GFN_SSI_SDATA3),
2272         PINMUX_DATA(SSI_WS34_GMARK, GFN_SSI_WS34),
2273         PINMUX_DATA(SSI_SCK34_GMARK, GFN_SSI_SCK34),
2274         PINMUX_DATA(SSI_SDATA2_A_GMARK, GFN_SSI_SDATA2_A),
2275         PINMUX_DATA(SSI_SDATA1_A_GMARK, GFN_SSI_SDATA1_A),
2276         PINMUX_DATA(SSI_SDATA0_GMARK, GFN_SSI_SDATA0),
2277         PINMUX_DATA(SSI_WS0129_GMARK, GFN_SSI_WS0129),
2278         PINMUX_DATA(SSI_SCK0129_GMARK, GFN_SSI_SCK0129),
2279
2280         /* GPSR7 */
2281         PINMUX_DATA(HDMI1_CEC_MARK, FN_HDMI1_CEC),
2282         PINMUX_DATA(HDMI0_CEC_MARK, FN_HDMI0_CEC),
2283         PINMUX_DATA(AVS2_MARK, FN_AVS2),
2284         PINMUX_DATA(AVS1_MARK, FN_AVS1),
2285
2286         /* ipsr setting .. underconstruction */
2287 };
2288
2289 static struct pinmux_gpio pinmux_gpios[] = {
2290         PINMUX_GPIO_GP_ALL(),
2291         /* GPSR0 */
2292         GPIO_GFN(D15),
2293         GPIO_GFN(D14),
2294         GPIO_GFN(D13),
2295         GPIO_GFN(D12),
2296         GPIO_GFN(D11),
2297         GPIO_GFN(D10),
2298         GPIO_GFN(D9),
2299         GPIO_GFN(D8),
2300         GPIO_GFN(D7),
2301         GPIO_GFN(D6),
2302         GPIO_GFN(D5),
2303         GPIO_GFN(D4),
2304         GPIO_GFN(D3),
2305         GPIO_GFN(D2),
2306         GPIO_GFN(D1),
2307         GPIO_GFN(D0),
2308         /* GPSR1 */
2309         GPIO_GFN(EX_WAIT0_A),
2310         GPIO_GFN(WE1x),
2311         GPIO_GFN(WE0x),
2312         GPIO_GFN(RD_WRx),
2313         GPIO_GFN(RDx),
2314         GPIO_GFN(BSx),
2315         GPIO_GFN(CS1x_A26),
2316         GPIO_GFN(CS0x),
2317         GPIO_GFN(A19),
2318         GPIO_GFN(A18),
2319         GPIO_GFN(A17),
2320         GPIO_GFN(A16),
2321         GPIO_GFN(A15),
2322         GPIO_GFN(A14),
2323         GPIO_GFN(A13),
2324         GPIO_GFN(A12),
2325         GPIO_GFN(A11),
2326         GPIO_GFN(A10),
2327         GPIO_GFN(A9),
2328         GPIO_GFN(A8),
2329         GPIO_GFN(A7),
2330         GPIO_GFN(A6),
2331         GPIO_GFN(A5),
2332         GPIO_GFN(A4),
2333         GPIO_GFN(A3),
2334         GPIO_GFN(A2),
2335         GPIO_GFN(A1),
2336         GPIO_GFN(A0),
2337
2338         /* GPSR2 */
2339         GPIO_GFN(AVB_AVTP_CAPTURE_A),
2340         GPIO_GFN(AVB_AVTP_MATCH_A),
2341         GPIO_GFN(AVB_LINK),
2342         GPIO_GFN(AVB_PHY_INT),
2343         GPIO_GFN(AVB_MAGIC),
2344         GPIO_GFN(AVB_MDC),
2345         GPIO_GFN(PWM2_A),
2346         GPIO_GFN(PWM1_A),
2347         GPIO_GFN(PWM0),
2348         GPIO_GFN(IRQ5),
2349         GPIO_GFN(IRQ4),
2350         GPIO_GFN(IRQ3),
2351         GPIO_GFN(IRQ2),
2352         GPIO_GFN(IRQ1),
2353         GPIO_GFN(IRQ0),
2354
2355         /* GPSR3 */
2356         GPIO_GFN(SD1_WP),
2357         GPIO_GFN(SD1_CD),
2358         GPIO_GFN(SD0_WP),
2359         GPIO_GFN(SD0_CD),
2360         GPIO_GFN(SD1_DAT3),
2361         GPIO_GFN(SD1_DAT2),
2362         GPIO_GFN(SD1_DAT1),
2363         GPIO_GFN(SD1_DAT0),
2364         GPIO_GFN(SD1_CMD),
2365         GPIO_GFN(SD1_CLK),
2366         GPIO_GFN(SD0_DAT3),
2367         GPIO_GFN(SD0_DAT2),
2368         GPIO_GFN(SD0_DAT1),
2369         GPIO_GFN(SD0_DAT0),
2370         GPIO_GFN(SD0_CMD),
2371         GPIO_GFN(SD0_CLK),
2372
2373         /* GPSR4 */
2374         GPIO_FN(SD3_DS),
2375         GPIO_GFN(SD3_DAT7),
2376         GPIO_GFN(SD3_DAT6),
2377         GPIO_GFN(SD3_DAT5),
2378         GPIO_GFN(SD3_DAT4),
2379         GPIO_FN(SD3_DAT3),
2380         GPIO_FN(SD3_DAT2),
2381         GPIO_FN(SD3_DAT1),
2382         GPIO_FN(SD3_DAT0),
2383         GPIO_FN(SD3_CMD),
2384         GPIO_FN(SD3_CLK),
2385         GPIO_GFN(SD2_DS),
2386         GPIO_GFN(SD2_DAT3),
2387         GPIO_GFN(SD2_DAT2),
2388         GPIO_GFN(SD2_DAT1),
2389         GPIO_GFN(SD2_DAT0),
2390         GPIO_FN(SD2_CMD),
2391         GPIO_GFN(SD2_CLK),
2392
2393         /* GPSR5 */
2394         GPIO_GFN(MLB_DAT),
2395         GPIO_GFN(MLB_SIG),
2396         GPIO_GFN(MLB_CLK),
2397         GPIO_FN(MSIOF0_RXD),
2398         GPIO_GFN(MSIOF0_SS2),
2399         GPIO_FN(MSIOF0_TXD),
2400         GPIO_GFN(MSIOF0_SS1),
2401         GPIO_GFN(MSIOF0_SYNC),
2402         GPIO_FN(MSIOF0_SCK),
2403         GPIO_GFN(HRTS0x),
2404         GPIO_GFN(HCTS0x),
2405         GPIO_GFN(HTX0),
2406         GPIO_GFN(HRX0),
2407         GPIO_GFN(HSCK0),
2408         GPIO_GFN(RX2_A),
2409         GPIO_GFN(TX2_A),
2410         GPIO_GFN(SCK2),
2411         GPIO_GFN(RTS1x_TANS),
2412         GPIO_GFN(CTS1x),
2413         GPIO_GFN(TX1_A),
2414         GPIO_GFN(RX1_A),
2415         GPIO_GFN(RTS0x_TANS),
2416         GPIO_GFN(CTS0x),
2417         GPIO_GFN(TX0),
2418         GPIO_GFN(RX0),
2419         GPIO_GFN(SCK0),
2420
2421         /* GPSR6 */
2422         GPIO_GFN(USB31_OVC),
2423         GPIO_GFN(USB31_PWEN),
2424         GPIO_GFN(USB30_OVC),
2425         GPIO_GFN(USB30_PWEN),
2426         GPIO_GFN(USB1_OVC),
2427         GPIO_GFN(USB1_PWEN),
2428         GPIO_GFN(USB0_OVC),
2429         GPIO_GFN(USB0_PWEN),
2430         GPIO_GFN(AUDIO_CLKB_B),
2431         GPIO_GFN(AUDIO_CLKA_A),
2432         GPIO_GFN(SSI_SDATA9_A),
2433         GPIO_GFN(SSI_SDATA8),
2434         GPIO_GFN(SSI_SDATA7),
2435         GPIO_GFN(SSI_WS78),
2436         GPIO_GFN(SSI_SCK78),
2437         GPIO_GFN(SSI_SDATA6),
2438         GPIO_GFN(SSI_WS6),
2439         GPIO_GFN(SSI_SCK6),
2440         GPIO_FN(SSI_SDATA5),
2441         GPIO_FN(SSI_WS5),
2442         GPIO_FN(SSI_SCK5),
2443         GPIO_GFN(SSI_SDATA4),
2444         GPIO_GFN(SSI_WS4),
2445         GPIO_GFN(SSI_SCK4),
2446         GPIO_GFN(SSI_SDATA3),
2447         GPIO_GFN(SSI_WS34),
2448         GPIO_GFN(SSI_SCK34),
2449         GPIO_GFN(SSI_SDATA2_A),
2450         GPIO_GFN(SSI_SDATA1_A),
2451         GPIO_GFN(SSI_SDATA0),
2452         GPIO_GFN(SSI_WS0129),
2453         GPIO_GFN(SSI_SCK0129),
2454
2455         /* GPSR7 */
2456         GPIO_FN(HDMI1_CEC),
2457         GPIO_FN(HDMI0_CEC),
2458         GPIO_FN(AVS2),
2459         GPIO_FN(AVS1),
2460
2461         /* IPSR0 */
2462         GPIO_IFN(AVB_MDC),
2463         GPIO_FN(MSIOF2_SS2_C),
2464         GPIO_IFN(AVB_MAGIC),
2465         GPIO_FN(MSIOF2_S1_C),
2466         GPIO_FN(SCK4_A),
2467         GPIO_IFN(AVB_PHY_INT),
2468         GPIO_FN(MSIOF2_SYNC_C),
2469         GPIO_FN(RX4_A),
2470         GPIO_IFN(AVB_LINK),
2471         GPIO_FN(MSIOF2_SCK_C),
2472         GPIO_FN(TX4_A),
2473         GPIO_IFN(AVB_AVTP_MATCH_A),
2474         GPIO_FN(MSIOF2_RXD_C),
2475         GPIO_FN(CTS4x_A),
2476         GPIO_IFN(AVB_AVTP_CAPTURE_A),
2477         GPIO_FN(MSIOF2_TXD_C),
2478         GPIO_FN(RTS4x_TANS_A),
2479         GPIO_IFN(IRQ0),
2480         GPIO_FN(QPOLB),
2481         GPIO_FN(DU_CDE),
2482         GPIO_FN(VI4_DATA0_B),
2483         GPIO_FN(CAN0_TX_B),
2484         GPIO_FN(CANFD0_TX_B),
2485         GPIO_IFN(IRQ1),
2486         GPIO_FN(QPOLA),
2487         GPIO_FN(DU_DISP),
2488         GPIO_FN(VI4_DATA1_B),
2489         GPIO_FN(CAN0_RX_B),
2490         GPIO_FN(CANFD0_RX_B),
2491
2492         /* IPSR1 */
2493         GPIO_IFN(IRQ2),
2494         GPIO_FN(QCPV_QDE),
2495         GPIO_FN(DU_EXODDF_DU_ODDF_DISP_CDE),
2496         GPIO_FN(VI4_DATA2_B),
2497         GPIO_FN(PWM3_B),
2498         GPIO_IFN(IRQ3),
2499         GPIO_FN(QSTVB_QVE),
2500         GPIO_FN(A25),
2501         GPIO_FN(DU_DOTCLKOUT1),
2502         GPIO_FN(VI4_DATA3_B),
2503         GPIO_FN(PWM4_B),
2504         GPIO_IFN(IRQ4),
2505         GPIO_FN(QSTH_QHS),
2506         GPIO_FN(A24),
2507         GPIO_FN(DU_EXHSYNC_DU_HSYNC),
2508         GPIO_FN(VI4_DATA4_B),
2509         GPIO_FN(PWM5_B),
2510         GPIO_IFN(IRQ5),
2511         GPIO_FN(QSTB_QHE),
2512         GPIO_FN(A23),
2513         GPIO_FN(DU_EXVSYNC_DU_VSYNC),
2514         GPIO_FN(VI4_DATA5_B),
2515         GPIO_FN(PWM6_B),
2516         GPIO_IFN(PWM0),
2517         GPIO_FN(AVB_AVTP_PPS),
2518         GPIO_FN(A22),
2519         GPIO_FN(VI4_DATA6_B),
2520         GPIO_FN(IECLK_B),
2521         GPIO_IFN(PWM1_A),
2522         GPIO_FN(A21),
2523         GPIO_FN(HRX3_D),
2524         GPIO_FN(VI4_DATA7_B),
2525         GPIO_FN(IERX_B),
2526         GPIO_IFN(PWM2_A),
2527         GPIO_FN(PWMFSW0),
2528         GPIO_FN(A20),
2529         GPIO_FN(HTX3_D),
2530         GPIO_FN(IETX_B),
2531         GPIO_IFN(A0),
2532         GPIO_FN(LCDOUT16),
2533         GPIO_FN(MSIOF3_SYNC_B),
2534         GPIO_FN(VI4_DATA8),
2535         GPIO_FN(DU_DB0),
2536         GPIO_FN(PWM3_A),
2537
2538         /* IPSR2 */
2539         GPIO_IFN(A1),
2540         GPIO_FN(LCDOUT17),
2541         GPIO_FN(MSIOF3_TXD_B),
2542         GPIO_FN(VI4_DATA9),
2543         GPIO_FN(DU_DB1),
2544         GPIO_FN(PWM4_A),
2545         GPIO_IFN(A2),
2546         GPIO_FN(LCDOUT18),
2547         GPIO_FN(MSIOF3_SCK_B),
2548         GPIO_FN(VI4_DATA10),
2549         GPIO_FN(DU_DB2),
2550         GPIO_FN(PWM5_A),
2551         GPIO_IFN(A3),
2552         GPIO_FN(LCDOUT19),
2553         GPIO_FN(MSIOF3_RXD_B),
2554         GPIO_FN(VI4_DATA11),
2555         GPIO_FN(DU_DB3),
2556         GPIO_FN(PWM6_A),
2557         GPIO_IFN(A4),
2558         GPIO_FN(LCDOUT20),
2559         GPIO_FN(MSIOF3_SS1_B),
2560         GPIO_FN(VI4_DATA12),
2561         GPIO_FN(VI5_DATA12),
2562         GPIO_FN(DU_DB4),
2563         GPIO_IFN(A5),
2564         GPIO_FN(LCDOUT21),
2565         GPIO_FN(MSIOF3_SS2_B),
2566         GPIO_FN(SCK4_B),
2567         GPIO_FN(VI4_DATA13),
2568         GPIO_FN(VI5_DATA13),
2569         GPIO_FN(DU_DB5),
2570         GPIO_IFN(A6),
2571         GPIO_FN(LCDOUT22),
2572         GPIO_FN(MSIOF2_SS1_A),
2573         GPIO_FN(RX4_B),
2574         GPIO_FN(VI4_DATA14),
2575         GPIO_FN(VI5_DATA14),
2576         GPIO_FN(DU_DB6),
2577         GPIO_IFN(A7),
2578         GPIO_FN(LCDOUT23),
2579         GPIO_FN(MSIOF2_SS2_A),
2580         GPIO_FN(TX4_B),
2581         GPIO_FN(VI4_DATA15),
2582         GPIO_FN(V15_DATA15),
2583         GPIO_FN(DU_DB7),
2584         GPIO_IFN(A8),
2585         GPIO_FN(RX3_B),
2586         GPIO_FN(MSIOF2_SYNC_A),
2587         GPIO_FN(HRX4_B),
2588         GPIO_FN(SDA6_A),
2589         GPIO_FN(AVB_AVTP_MATCH_B),
2590         GPIO_FN(PWM1_B),
2591
2592         /* IPSR3 */
2593         GPIO_IFN(A9),
2594         GPIO_FN(MSIOF2_SCK_A),
2595         GPIO_FN(CTS4x_B),
2596         GPIO_FN(VI5_VSYNCx),
2597         GPIO_IFN(A10),
2598         GPIO_FN(MSIOF2_RXD_A),
2599         GPIO_FN(RTS4n_TANS_B),
2600         GPIO_FN(VI5_HSYNCx),
2601         GPIO_IFN(A11),
2602         GPIO_FN(TX3_B),
2603         GPIO_FN(MSIOF2_TXD_A),
2604         GPIO_FN(HTX4_B),
2605         GPIO_FN(HSCK4),
2606         GPIO_FN(VI5_FIELD),
2607         GPIO_FN(SCL6_A),
2608         GPIO_FN(AVB_AVTP_CAPTURE_B),
2609         GPIO_FN(PWM2_B),
2610         GPIO_FN(SPV_EVEN),
2611         GPIO_IFN(A12),
2612         GPIO_FN(LCDOUT12),
2613         GPIO_FN(MSIOF3_SCK_C),
2614         GPIO_FN(HRX4_A),
2615         GPIO_FN(VI5_DATA8),
2616         GPIO_FN(DU_DG4),
2617         GPIO_IFN(A13),
2618         GPIO_FN(LCDOUT13),
2619         GPIO_FN(MSIOF3_SYNC_C),
2620         GPIO_FN(HTX4_A),
2621         GPIO_FN(VI5_DATA9),
2622         GPIO_FN(DU_DG5),
2623         GPIO_IFN(A14),
2624         GPIO_FN(LCDOUT14),
2625         GPIO_FN(MSIOF3_RXD_C),
2626         GPIO_FN(HCTS4x),
2627         GPIO_FN(VI5_DATA10),
2628         GPIO_FN(DU_DG6),
2629         GPIO_IFN(A15),
2630         GPIO_FN(LCDOUT15),
2631         GPIO_FN(MSIOF3_TXD_C),
2632         GPIO_FN(HRTS4x),
2633         GPIO_FN(VI5_DATA11),
2634         GPIO_FN(DU_DG7),
2635         GPIO_IFN(A16),
2636         GPIO_FN(LCDOUT8),
2637         GPIO_FN(VI4_FIELD),
2638         GPIO_FN(DU_DG0),
2639
2640         /* IPSR4 */
2641         GPIO_IFN(A17),
2642         GPIO_FN(LCDOUT9),
2643         GPIO_FN(VI4_VSYNCx),
2644         GPIO_FN(DU_DG1),
2645         GPIO_IFN(A18),
2646         GPIO_FN(LCDOUT10),
2647         GPIO_FN(VI4_HSYNCx),
2648         GPIO_FN(DU_DG2),
2649         GPIO_IFN(A19),
2650         GPIO_FN(LCDOUT11),
2651         GPIO_FN(VI4_CLKENB),
2652         GPIO_FN(DU_DG3),
2653         GPIO_IFN(CS0x),
2654         GPIO_FN(VI5_CLKENB),
2655         GPIO_IFN(CS1x_A26),
2656         GPIO_FN(VI5_CLK),
2657         GPIO_FN(EX_WAIT0_B),
2658         GPIO_IFN(BSx),
2659         GPIO_FN(QSTVA_QVS),
2660         GPIO_FN(MSIOF3_SCK_D),
2661         GPIO_FN(SCK3),
2662         GPIO_FN(HSCK3),
2663         GPIO_FN(CAN1_TX),
2664         GPIO_FN(CANFD1_TX),
2665         GPIO_FN(IETX_A),
2666         GPIO_IFN(RDx),
2667         GPIO_FN(MSIOF3_SYNC_D),
2668         GPIO_FN(RX3_A),
2669         GPIO_FN(HRX3_A),
2670         GPIO_FN(CAN0_TX_A),
2671         GPIO_FN(CANFD0_TX_A),
2672         GPIO_IFN(RD_WRx),
2673         GPIO_FN(MSIOF3_RXD_D),
2674         GPIO_FN(TX3_A),
2675         GPIO_FN(HTX3_A),
2676         GPIO_FN(CAN0_RX_A),
2677         GPIO_FN(CANFD0_RX_A),
2678
2679         /* IPSR5 */
2680         GPIO_IFN(WE0x),
2681         GPIO_FN(MSIIOF3_TXD_D),
2682         GPIO_FN(CTS3x),
2683         GPIO_FN(HCTS3x),
2684         GPIO_FN(SCL6_B),
2685         GPIO_FN(CAN_CLK),
2686         GPIO_FN(IECLK_A),
2687         GPIO_IFN(WE1x),
2688         GPIO_FN(MSIOF3_SS1_D),
2689         GPIO_FN(RTS3x_TANS),
2690         GPIO_FN(HRTS3x),
2691         GPIO_FN(SDA6_B),
2692         GPIO_FN(CAN1_RX),
2693         GPIO_FN(CANFD1_RX),
2694         GPIO_FN(IERX_A),
2695         GPIO_IFN(EX_WAIT0_A),
2696         GPIO_FN(QCLK),
2697         GPIO_FN(VI4_CLK),
2698         GPIO_FN(DU_DOTCLKOUT0),
2699         GPIO_IFN(D0),
2700         GPIO_FN(MSIOF2_SS1_B),
2701         GPIO_FN(MSIOF3_SCK_A),
2702         GPIO_FN(VI4_DATA16),
2703         GPIO_FN(VI5_DATA0),
2704         GPIO_IFN(D1),
2705         GPIO_FN(MSIOF2_SS2_B),
2706         GPIO_FN(MSIOF3_SYNC_A),
2707         GPIO_FN(VI4_DATA17),
2708         GPIO_FN(VI5_DATA1),
2709         GPIO_IFN(D2),
2710         GPIO_FN(MSIOF3_RXD_A),
2711         GPIO_FN(VI4_DATA18),
2712         GPIO_FN(VI5_DATA2),
2713         GPIO_IFN(D3),
2714         GPIO_FN(MSIOF3_TXD_A),
2715         GPIO_FN(VI4_DATA19),
2716         GPIO_FN(VI5_DATA3),
2717         GPIO_IFN(D4),
2718         GPIO_FN(MSIOF2_SCK_B),
2719         GPIO_FN(VI4_DATA20),
2720         GPIO_FN(VI5_DATA4),
2721
2722         /* IPSR6 */
2723         GPIO_IFN(D5),
2724         GPIO_FN(MSIOF2_SYNC_B),
2725         GPIO_FN(VI4_DATA21),
2726         GPIO_FN(VI5_DATA5),
2727         GPIO_IFN(D6),
2728         GPIO_FN(MSIOF2_RXD_B),
2729         GPIO_FN(VI4_DATA22),
2730         GPIO_FN(VI5_DATA6),
2731         GPIO_IFN(D7),
2732         GPIO_FN(MSIOF2_TXD_B),
2733         GPIO_FN(VI4_DATA23),
2734         GPIO_FN(VI5_DATA7),
2735         GPIO_IFN(D8),
2736         GPIO_FN(LCDOUT0),
2737         GPIO_FN(MSIOF2_SCK_D),
2738         GPIO_FN(SCK4_C),
2739         GPIO_FN(VI4_DATA0_A),
2740         GPIO_FN(DU_DR0),
2741         GPIO_IFN(D9),
2742         GPIO_FN(LCDOUT1),
2743         GPIO_FN(MSIOF2_SYNC_D),
2744         GPIO_FN(VI4_DATA1_A),
2745         GPIO_FN(DU_DR1),
2746         GPIO_IFN(D10),
2747         GPIO_FN(LCDOUT2),
2748         GPIO_FN(MSIOF2_RXD_D),
2749         GPIO_FN(HRX3_B),
2750         GPIO_FN(VI4_DATA2_A),
2751         GPIO_FN(CTS4x_C),
2752         GPIO_FN(DU_DR2),
2753         GPIO_IFN(D11),
2754         GPIO_FN(LCDOUT3),
2755         GPIO_FN(MSIOF2_TXD_D),
2756         GPIO_FN(HTX3_B),
2757         GPIO_FN(VI4_DATA3_A),
2758         GPIO_FN(RTS4x_TANS_C),
2759         GPIO_FN(DU_DR3),
2760         GPIO_IFN(D12),
2761         GPIO_FN(LCDOUT4),
2762         GPIO_FN(MSIOF2_SS1_D),
2763         GPIO_FN(RX4_C),
2764         GPIO_FN(VI4_DATA4_A),
2765         GPIO_FN(DU_DR4),
2766
2767         /* IPSR7 */
2768         GPIO_IFN(D13),
2769         GPIO_FN(LCDOUT5),
2770         GPIO_FN(MSIOF2_SS2_D),
2771         GPIO_FN(TX4_C),
2772         GPIO_FN(VI4_DATA5_A),
2773         GPIO_FN(DU_DR5),
2774         GPIO_IFN(D14),
2775         GPIO_FN(LCDOUT6),
2776         GPIO_FN(MSIOF3_SS1_A),
2777         GPIO_FN(HRX3_C),
2778         GPIO_FN(VI4_DATA6_A),
2779         GPIO_FN(DU_DR6),
2780         GPIO_FN(SCL6_C),
2781         GPIO_IFN(D15),
2782         GPIO_FN(LCDOUT7),
2783         GPIO_FN(MSIOF3_SS2_A),
2784         GPIO_FN(HTX3_C),
2785         GPIO_FN(VI4_DATA7_A),
2786         GPIO_FN(DU_DR7),
2787         GPIO_FN(SDA6_C),
2788         GPIO_FN(FSCLKST),
2789         GPIO_IFN(SD0_CLK),
2790         GPIO_FN(MSIOF1_SCK_E),
2791         GPIO_FN(STP_OPWM_0_B),
2792         GPIO_IFN(SD0_CMD),
2793         GPIO_FN(MSIOF1_SYNC_E),
2794         GPIO_FN(STP_IVCXO27_0_B),
2795         GPIO_IFN(SD0_DAT0),
2796         GPIO_FN(MSIOF1_RXD_E),
2797         GPIO_FN(TS_SCK0_B),
2798         GPIO_FN(STP_ISCLK_0_B),
2799         GPIO_IFN(SD0_DAT1),
2800         GPIO_FN(MSIOF1_TXD_E),
2801         GPIO_FN(TS_SPSYNC0_B),
2802         GPIO_FN(STP_ISSYNC_0_B),
2803
2804         /* IPSR8 */
2805         GPIO_IFN(SD0_DAT2),
2806         GPIO_FN(MSIOF1_SS1_E),
2807         GPIO_FN(TS_SDAT0_B),
2808         GPIO_FN(STP_ISD_0_B),
2809         GPIO_IFN(SD0_DAT3),
2810         GPIO_FN(MSIOF1_SS2_E),
2811         GPIO_FN(TS_SDEN0_B),
2812         GPIO_FN(STP_ISEN_0_B),
2813         GPIO_IFN(SD1_CLK),
2814         GPIO_FN(MSIOF1_SCK_G),
2815         GPIO_FN(SIM0_CLK_A),
2816
2817         GPIO_IFN(SD1_CMD),
2818         GPIO_FN(MSIOF1_SYNC_G),
2819         GPIO_FN(SIM0_D_A),
2820         GPIO_FN(STP_IVCXO27_1_B),
2821
2822         GPIO_IFN(SD1_DAT0),
2823         GPIO_FN(SD2_DAT4),
2824         GPIO_FN(MSIOF1_RXD_G),
2825         GPIO_FN(TS_SCK1_B),
2826         GPIO_FN(STP_ISCLK_1_B),
2827
2828         GPIO_IFN(SD1_DAT1),
2829         GPIO_FN(SD2_DAT5),
2830         GPIO_FN(MSIOF1_TXD_G),
2831         GPIO_FN(TS_SPSYNC1_B),
2832         GPIO_FN(STP_ISSYNC_1_B),
2833
2834         GPIO_IFN(SD1_DAT2),
2835         GPIO_FN(SD2_DAT6),
2836         GPIO_FN(MSIOF1_SS1_G),
2837         GPIO_FN(TS_SDAT1_B),
2838         GPIO_FN(STP_IOD_1_B),
2839         GPIO_IFN(SD1_DAT3),
2840         GPIO_FN(SD2_DAT7),
2841         GPIO_FN(MSIOF1_SS2_G),
2842         GPIO_FN(TS_SDEN1_B),
2843         GPIO_FN(STP_ISEN_1_B),
2844
2845         /* IPSR9 */
2846         GPIO_IFN(SD2_CLK),
2847         GPIO_FN(SCKZ_A),
2848         GPIO_IFN(SD2_DAT0),
2849         GPIO_FN(MTSx_A),
2850         GPIO_IFN(SD2_DAT1),
2851         GPIO_FN(STMx_A),
2852         GPIO_IFN(SD2_DAT2),
2853         GPIO_FN(MDATA_A),
2854         GPIO_IFN(SD2_DAT3),
2855         GPIO_FN(SDATA_A),
2856         GPIO_IFN(SD2_DS),
2857         GPIO_FN(SATA_DEVSLP_B),
2858         GPIO_FN(VSP_A),
2859         GPIO_IFN(SD3_DAT4),
2860         GPIO_FN(SD2_CD_A),
2861         GPIO_IFN(SD3_DAT5),
2862         GPIO_FN(SD2_WP_A),
2863
2864         /* IPSR10 */
2865         GPIO_IFN(SD3_DAT6),
2866         GPIO_FN(SD3_CD),
2867         GPIO_IFN(SD3_DAT7),
2868         GPIO_FN(SD3_WP),
2869         GPIO_IFN(SD0_CD),
2870         GPIO_FN(SCL2_B),
2871         GPIO_FN(SIM0_RST_A),
2872         GPIO_IFN(SD0_WP),
2873         GPIO_FN(SDA2_B),
2874         GPIO_IFN(SD1_CD),
2875         GPIO_FN(SIM0_CLK_B),
2876         GPIO_IFN(SD1_WP),
2877         GPIO_FN(SIM0_D_B),
2878         GPIO_IFN(SCK0),
2879         GPIO_FN(HSCK1_B),
2880         GPIO_FN(MSIOF1_SS2_B),
2881         GPIO_FN(AUDIO_CLKC_B),
2882         GPIO_FN(SDA2_A),
2883         GPIO_FN(SIM0_RST_B),
2884         GPIO_FN(STP_OPWM__C),
2885         GPIO_FN(RIF0_CLK_B),
2886         GPIO_FN(ADICHS2),
2887         GPIO_IFN(RX0),
2888         GPIO_FN(HRX1_B),
2889         GPIO_FN(TS_SCK0_C),
2890         GPIO_FN(STP_ISCLK_0_C),
2891         GPIO_FN(RIF0_D0_B),
2892
2893         /* IPSR11 */
2894         GPIO_IFN(TX0),
2895         GPIO_FN(HTX1_B),
2896         GPIO_FN(TS_SPSYNC0_C),
2897         GPIO_FN(STP_ISSYNC_0_C),
2898         GPIO_FN(RIF0_D1_B),
2899         GPIO_IFN(CTS0x),
2900         GPIO_FN(HCTS1x_B),
2901         GPIO_FN(MSIOF1_SYNC_B),
2902         GPIO_FN(TS_SPSYNC1_C),
2903         GPIO_FN(STP_ISSYNC_1_C),
2904         GPIO_FN(RIF1_SYNC_B),
2905         GPIO_FN(AUDIO_CLKOUT_C),
2906         GPIO_FN(ADICS_SAMP),
2907         GPIO_IFN(RTS0x_TANS),
2908         GPIO_FN(HRTS1x_B),
2909         GPIO_FN(MSIOF1_SS1_B),
2910         GPIO_FN(AUDIO_CLKA_B),
2911         GPIO_FN(SCL2_A),
2912         GPIO_FN(STP_IVCXO27_1_C),
2913         GPIO_FN(RIF0_SYNC_B),
2914         GPIO_FN(ADICHS1),
2915         GPIO_IFN(RX1_A),
2916         GPIO_FN(HRX1_A),
2917         GPIO_FN(TS_SDAT0_C),
2918         GPIO_FN(STP_IDS_0_C),
2919         GPIO_FN(RIF1_CLK_C),
2920         GPIO_IFN(TX1_A),
2921         GPIO_FN(HTX1_A),
2922         GPIO_FN(TS_SDEN0_C),
2923         GPIO_FN(STP_ISEN_0_C),
2924         GPIO_FN(RIF1_D0_C),
2925         GPIO_IFN(CTS1x),
2926         GPIO_FN(HCTS1x_A),
2927         GPIO_FN(MSIOF1_RXD_B),
2928         GPIO_FN(TS_SDEN1_C),
2929         GPIO_FN(STP_ISEN_1_C),
2930         GPIO_FN(RIF1_D0_B),
2931         GPIO_FN(ADIDATA),
2932         GPIO_IFN(RTS1x_TANS),
2933         GPIO_FN(HRTS1x_A),
2934         GPIO_FN(MSIOF1_TXD_B),
2935         GPIO_FN(TS_SDAT1_C),
2936         GPIO_FN(STP_ISD_1_C),
2937         GPIO_FN(RIF1_D1_B),
2938         GPIO_FN(ADICHS0),
2939         GPIO_IFN(SCK2),
2940         GPIO_FN(SCIF_CLK_B),
2941         GPIO_FN(MSIOF1_SCK_B),
2942         GPIO_FN(TS_SCK1_C),
2943         GPIO_FN(STP_ISCLK_1_C),
2944         GPIO_FN(RIF1_CLK_B),
2945         GPIO_FN(ADICLK),
2946
2947         /* IPSR12 */
2948         GPIO_IFN(TX2_A),
2949         GPIO_FN(SD2_CD_B),
2950         GPIO_FN(SCL1_A),
2951         GPIO_FN(RSD_CLK_B),
2952         GPIO_FN(FMCLK_A),
2953         GPIO_FN(RIF1_D1_C),
2954         GPIO_FN(FSO_CFE_0_B),
2955         GPIO_IFN(RX2_A),
2956         GPIO_FN(SD2_WP_B),
2957         GPIO_FN(SDA1_A),
2958         GPIO_FN(RDS_DATA_B),
2959         GPIO_FN(RMIN_A),
2960         GPIO_FN(RIF1_SYNC_C),
2961         GPIO_FN(FSO_CEF_1_B),
2962         GPIO_IFN(HSCK0),
2963         GPIO_FN(MSIOF1_SCK_D),
2964         GPIO_FN(AUDIO_CLKB_A),
2965         GPIO_FN(SSI_SDATA1_B),
2966         GPIO_FN(TS_SCK0_D),
2967         GPIO_FN(STP_ISCLK_0_D),
2968         GPIO_FN(RIF0_CLK_C),
2969         GPIO_FN(AD_CLK),
2970         GPIO_IFN(HRX0),
2971         GPIO_FN(MSIOF1_RXD_D),
2972         GPIO_FN(SS1_SDATA2_B),
2973         GPIO_FN(TS_SDEN0_D),
2974         GPIO_FN(STP_ISEN_0_D),
2975         GPIO_FN(RIF0_D0_C),
2976         GPIO_FN(AD_DI),
2977         GPIO_IFN(HTX0),
2978         GPIO_FN(MSIOF1_TXD_D),
2979         GPIO_FN(SSI_SDATA9_B),
2980         GPIO_FN(TS_SDAT0_D),
2981         GPIO_FN(STP_ISD_0_D),
2982         GPIO_FN(RIF0_D1_C),
2983         GPIO_FN(AD_DO),
2984         GPIO_IFN(HCTS0x),
2985         GPIO_FN(RX2_B),
2986         GPIO_FN(MSIOF1_SYNC_D),
2987         GPIO_FN(SSI_SCK9_A),
2988         GPIO_FN(TS_SPSYNC0_D),
2989         GPIO_FN(STP_ISSYNC_0_D),
2990         GPIO_FN(RIF0_SYNC_C),
2991         GPIO_FN(AUDIO_CLKOUT1_A),
2992         GPIO_FN(AD_NSCx),
2993         GPIO_IFN(HRTS0x),
2994         GPIO_FN(TX2_B),
2995         GPIO_FN(MSIOF1_SS1_D),
2996         GPIO_FN(SSI_WS9_A),
2997         GPIO_FN(STP_IVCXO27_0_D),
2998         GPIO_FN(BPFCLK_A),
2999         GPIO_FN(AUDIO_CLKOUT2_A),
3000         GPIO_IFN(MSIOF0_SYNC),
3001         GPIO_FN(AUDIO_CLKOUT_A),
3002
3003         /* IPSR13 */
3004         GPIO_IFN(MSIOF0_SS1),
3005         GPIO_FN(RX5),
3006         GPIO_FN(AUDIO_CLKA_C),
3007         GPIO_FN(SSI_SCK2_A),
3008         GPIO_FN(RDS_CLK_A),
3009         GPIO_FN(STP_IVCXO27_0_C),
3010         GPIO_FN(AUDIO_CLKOUT3_A),
3011         GPIO_FN(TCLK1_B),
3012         GPIO_IFN(MSIOF0_SS2),
3013         GPIO_FN(TX5),
3014         GPIO_FN(MSIOF1_SS2_D),
3015         GPIO_FN(AUDIO_CLKC_A),
3016         GPIO_FN(SSI_WS2_A),
3017         GPIO_FN(RDS_DATA_A),
3018         GPIO_FN(STP_OPWM_0_D),
3019         GPIO_FN(AUDIO_CLKOUT_D),
3020         GPIO_FN(SPEEDIN_B),
3021         GPIO_IFN(MLB_CLK),
3022         GPIO_FN(MSIOF1_SCK_F),
3023         GPIO_FN(SCL1_B),
3024         GPIO_IFN(MLB_SIG),
3025         GPIO_FN(RX1_B),
3026         GPIO_FN(MSIOF1_SYNC_F),
3027         GPIO_FN(SDA1_B),
3028         GPIO_IFN(MLB_DAT),
3029         GPIO_FN(TX1_B),
3030         GPIO_FN(MSIOF1_RXD_F),
3031         GPIO_IFN(SSI_SCK0129),
3032         GPIO_FN(MSIOF1_TXD_F),
3033         GPIO_FN(MOUT0),
3034         GPIO_IFN(SSI_WS0129),
3035         GPIO_FN(MSIOF1_SS1_F),
3036         GPIO_FN(MOUT1),
3037         GPIO_IFN(SSI_SDATA0),
3038         GPIO_FN(MSIOF1_SS2_F),
3039         GPIO_FN(MOUT2),
3040
3041         /* IPSR14 */
3042         GPIO_IFN(SSI_SDATA1_A),
3043         GPIO_FN(MOUT5),
3044         GPIO_IFN(SSI_SDATA2_A),
3045         GPIO_FN(SSI_SCK1_B),
3046         GPIO_FN(MOUT6),
3047         GPIO_IFN(SSI_SCK34),
3048         GPIO_FN(MSIOF1_SS1_A),
3049         GPIO_FN(STP_OPWM_0_A),
3050         GPIO_IFN(SSI_WS34),
3051         GPIO_FN(HCTS2x_A),
3052         GPIO_FN(MSIOF1_SS2_A),
3053         GPIO_FN(STP_IVCXO27_0_A),
3054         GPIO_IFN(SSI_SDATA3),
3055         GPIO_FN(HRTS2x_A),
3056         GPIO_FN(MSIOF1_TXD_A),
3057         GPIO_FN(TS_SCK0_A),
3058         GPIO_FN(STP_ISCLK_0_A),
3059         GPIO_FN(RIF0_D1_A),
3060         GPIO_FN(RIF2_D0_A),
3061         GPIO_IFN(SSI_SCK4),
3062         GPIO_FN(HRX2_A),
3063         GPIO_FN(MSIOF1_SCK_A),
3064         GPIO_FN(TS_SDAT0_A),
3065         GPIO_FN(STP_ISD_0_A),
3066         GPIO_FN(RIF0_CLK_A),
3067         GPIO_FN(RIF2_CLK_A),
3068         GPIO_IFN(SSI_WS4),
3069         GPIO_FN(HTX2_A),
3070         GPIO_FN(MSIOF1_SYNC_A),
3071         GPIO_FN(TS_SDEN0_A),
3072         GPIO_FN(STP_ISEN_0_A),
3073         GPIO_FN(RIF0_SYNC_A),
3074         GPIO_FN(RIF2_SYNC_A),
3075         GPIO_IFN(SSI_SDATA4),
3076         GPIO_FN(HSCK2_A),
3077         GPIO_FN(MSIOF1_RXD_A),
3078         GPIO_FN(TS_SPSYNC0_A),
3079         GPIO_FN(STP_ISSYNC_0_A),
3080         GPIO_FN(RIF0_D0_A),
3081         GPIO_FN(RIF2_D1_A),
3082
3083         GPIO_IFN(SSI_SCK6),
3084         GPIO_FN(USB2_PWEN),
3085         GPIO_FN(SIM0_RST_D),
3086         GPIO_FN(RDS_CLK_C),
3087         GPIO_IFN(SSI_WS6),
3088         GPIO_FN(USB2_OVC),
3089         GPIO_FN(SIM0_D_D),
3090         GPIO_IFN(SSI_SDATA6),
3091         GPIO_FN(SIM0_CLK_D),
3092         GPIO_FN(RSD_DATA_C),
3093         GPIO_FN(SATA_DEVSLP_A),
3094         GPIO_IFN(SSI_SCK78),
3095         GPIO_FN(HRX2_B),
3096         GPIO_FN(MSIOF1_SCK_C),
3097         GPIO_FN(TS_SCK1_A),
3098         GPIO_FN(STP_ISCLK_1_A),
3099         GPIO_FN(RIF1_CLK_A),
3100         GPIO_FN(RIF3_CLK_A),
3101         GPIO_IFN(SSI_WS78),
3102         GPIO_FN(HTX2_B),
3103         GPIO_FN(MSIOF1_SYNC_C),
3104         GPIO_FN(TS_SDT1_A),
3105         GPIO_FN(STP_ISD_1_A),
3106         GPIO_FN(RIF1_SYNC_A),
3107         GPIO_FN(RIF3_SYNC_A),
3108         GPIO_IFN(SSI_SDATA7),
3109         GPIO_FN(HCTS2x_B),
3110         GPIO_FN(MSIOF1_RXD_C),
3111         GPIO_FN(TS_SDEN1_A),
3112         GPIO_FN(STP_IEN_1_A),
3113         GPIO_FN(RIF1_D0_A),
3114         GPIO_FN(RIF3_D0_A),
3115         GPIO_FN(TCLK2_A),
3116         GPIO_IFN(SSI_SDATA8),
3117         GPIO_FN(HRTS2x_B),
3118         GPIO_FN(MSIOF1_TXD_C),
3119         GPIO_FN(TS_SPSYNC1_A),
3120         GPIO_FN(STP_ISSYNC_1_A),
3121         GPIO_FN(RIF1_D1_A),
3122         GPIO_FN(EIF3_D1_A),
3123         GPIO_IFN(SSI_SDATA9_A),
3124         GPIO_FN(HSCK2_B),
3125         GPIO_FN(MSIOF1_SS1_C),
3126         GPIO_FN(HSCK1_A),
3127         GPIO_FN(SSI_WS1_B),
3128         GPIO_FN(SCK1),
3129         GPIO_FN(STP_IVCXO27_1_A),
3130         GPIO_FN(SCK5),
3131
3132         /* IPSR16 */
3133         GPIO_IFN(AUDIO_CLKA_A),
3134         GPIO_FN(CC5_OSCOUT),
3135         GPIO_IFN(AUDIO_CLKB_B),
3136         GPIO_FN(SCIF_CLK_A),
3137         GPIO_FN(DVC_MUTE),
3138         GPIO_FN(STP_IVCXO27_1_D),
3139         GPIO_FN(REMOCON_A),
3140         GPIO_FN(TCLK1_A),
3141         GPIO_FN(VSP_B),
3142         GPIO_IFN(USB0_PWEN),
3143         GPIO_FN(SIM0_RST_C),
3144         GPIO_FN(TS_SCK1_D),
3145         GPIO_FN(STP_ISCLK_1_D),
3146         GPIO_FN(BPFCLK_B),
3147         GPIO_FN(RIF3_CLK_B),
3148         GPIO_FN(SCKZ_B),
3149         GPIO_IFN(USB0_OVC),
3150         GPIO_FN(SIM0_D_C),
3151         GPIO_FN(TS_SDAT1_D),
3152         GPIO_FN(STP_ISD_1_D),
3153         GPIO_FN(RIF3_SYNC_B),
3154         GPIO_FN(VSP_C),
3155         GPIO_IFN(USB1_PWEN),
3156         GPIO_FN(SIM0_CLK_C),
3157         GPIO_FN(SSI_SCK1_A),
3158         GPIO_FN(TS_SCK0_E),
3159         GPIO_FN(STP_ISCLK_0_E),
3160         GPIO_FN(FMCLK_B),
3161         GPIO_FN(RIF2_CLK_B),
3162         GPIO_FN(MTSx_B),
3163         GPIO_FN(SPEEDIN_A),
3164         GPIO_FN(VSP_D),
3165         GPIO_IFN(USB1_OVC),
3166         GPIO_FN(MSIOF1_SS2_C),
3167         GPIO_FN(SSI_WS1_A),
3168         GPIO_FN(TS_SDAT0_E),
3169         GPIO_FN(STP_ISD_0_E),
3170         GPIO_FN(FMIN_B),
3171         GPIO_FN(RIF2_SYNC_B),
3172         GPIO_FN(STMx_B),
3173         GPIO_FN(REMOCON_B),
3174         GPIO_IFN(USB30_PWEN),
3175         GPIO_FN(AUDIO_CLKOUT_B),
3176         GPIO_FN(SSI_SCK2_B),
3177         GPIO_FN(TS_SDEN1_D),
3178         GPIO_FN(STP_ISEN_1_D),
3179         GPIO_FN(STP_OPWM_0_E),
3180         GPIO_FN(RIF3_D0_B),
3181         GPIO_FN(MDATA_B),
3182         GPIO_FN(TCLK2_B),
3183         GPIO_FN(TPU0TO0),
3184         GPIO_IFN(USB30_OVC),
3185         GPIO_FN(AUDIO_CLKOUT1_B),
3186         GPIO_FN(SSI_WS2_B),
3187         GPIO_FN(TS_SPSYNC1_D),
3188         GPIO_FN(STP_ISSYNC_1_D),
3189         GPIO_FN(STP_IVCXO27_0_E),
3190         GPIO_FN(RIF3_D1_B),
3191         GPIO_FN(SDATA_B),
3192         GPIO_FN(RSO_TOE_B),
3193         GPIO_FN(TPU0TO1),
3194
3195         /* IPSR17 */
3196         GPIO_IFN(USB31_PWEN),
3197         GPIO_FN(AUDIO_CLKOUT2_B),
3198         GPIO_FN(SI_SCK9_B),
3199         GPIO_FN(TS_SDEN0_E),
3200         GPIO_FN(STP_ISEN_0_E),
3201         GPIO_FN(RIF2_D0_B),
3202         GPIO_FN(TPU0TO2),
3203         GPIO_IFN(USB31_OVC),
3204         GPIO_FN(AUDIO_CLKOUT3_B),
3205         GPIO_FN(SSI_WS9_B),
3206         GPIO_FN(TS_SPSYNC0_E),
3207         GPIO_FN(STP_ISSYNC_0_E),
3208         GPIO_FN(RIF2_D1_B),
3209         GPIO_FN(TPU0TO3),
3210 };
3211
3212 static struct pinmux_cfg_reg pinmux_config_regs[] = {
3213         /* GPSR0(0xE6060100) md[3:1] controls initial value */
3214         /*   md[3:1] .. 0     : 0x0000FFFF                  */
3215         /*           .. other : 0x00000000                  */
3216         { PINMUX_CFG_REG("GPSR0", 0xE6060100, 32, 1) {
3217                 0, 0,
3218                 0, 0,
3219                 0, 0,
3220                 0, 0,
3221                 0, 0,
3222                 0, 0,
3223                 0, 0,
3224                 0, 0,
3225
3226                 0, 0,
3227                 0, 0,
3228                 0, 0,
3229                 0, 0,
3230                 0, 0,
3231                 0, 0,
3232                 0, 0,
3233                 0, 0,
3234
3235                 GP_0_15_FN, GFN_D15,
3236                 GP_0_14_FN, GFN_D14,
3237                 GP_0_13_FN, GFN_D13,
3238                 GP_0_12_FN, GFN_D12,
3239                 GP_0_11_FN, GFN_D11,
3240                 GP_0_10_FN, GFN_D10,
3241                 GP_0_9_FN, GFN_D9,
3242                 GP_0_8_FN, GFN_D8,
3243                 GP_0_7_FN, GFN_D7,
3244                 GP_0_6_FN, GFN_D6,
3245                 GP_0_5_FN, GFN_D5,
3246                 GP_0_4_FN, GFN_D4,
3247                 GP_0_3_FN, GFN_D3,
3248                 GP_0_2_FN, GFN_D2,
3249                 GP_0_1_FN, GFN_D1,
3250                 GP_0_0_FN, GFN_D0 }
3251         },
3252         /* GPSR1(0xE6060104) is md[3:1] controls initial value */
3253         /*   md[3:1] .. 0     : 0x0EFFFFFF                     */
3254         /*           .. other : 0x00000000                     */
3255         { PINMUX_CFG_REG("GPSR1", 0xE6060104, 32, 1) {
3256                 0, 0,
3257                 0, 0,
3258                 0, 0,
3259                 0, 0,
3260                 GP_1_27_FN, GFN_EX_WAIT0_A,
3261                 GP_1_26_FN, GFN_WE1x,
3262                 GP_1_25_FN, GFN_WE0x,
3263                 GP_1_24_FN, GFN_RD_WRx,
3264                 GP_1_23_FN, GFN_RDx,
3265                 GP_1_22_FN, GFN_BSx,
3266                 GP_1_21_FN, GFN_CS1x_A26,
3267                 GP_1_20_FN, GFN_CS0x,
3268                 GP_1_19_FN, GFN_A19,
3269                 GP_1_18_FN, GFN_A18,
3270                 GP_1_17_FN, GFN_A17,
3271                 GP_1_16_FN, GFN_A16,
3272                 GP_1_15_FN, GFN_A15,
3273                 GP_1_14_FN, GFN_A14,
3274                 GP_1_13_FN, GFN_A13,
3275                 GP_1_12_FN, GFN_A12,
3276                 GP_1_11_FN, GFN_A11,
3277                 GP_1_10_FN, GFN_A10,
3278                 GP_1_9_FN, GFN_A9,
3279                 GP_1_8_FN, GFN_A8,
3280                 GP_1_7_FN, GFN_A7,
3281                 GP_1_6_FN, GFN_A6,
3282                 GP_1_5_FN, GFN_A5,
3283                 GP_1_4_FN, GFN_A4,
3284                 GP_1_3_FN, GFN_A3,
3285                 GP_1_2_FN, GFN_A2,
3286                 GP_1_1_FN, GFN_A1,
3287                 GP_1_0_FN, GFN_A0 }
3288         },
3289         /* GPSR2(0xE6060108) is md[3:1] controls               */
3290         /*   md[3:1] .. 0     : 0x000003C0                     */
3291         /*           .. other : 0x00000200                     */
3292         { PINMUX_CFG_REG("GPSR2", 0xE6060108, 32, 1) {
3293                 0, 0,
3294                 0, 0,
3295                 0, 0,
3296                 0, 0,
3297                 0, 0,
3298                 0, 0,
3299                 0, 0,
3300                 0, 0,
3301
3302                 0, 0,
3303                 0, 0,
3304                 0, 0,
3305                 0, 0,
3306                 0, 0,
3307                 0, 0,
3308                 0, 0,
3309                 0, 0,
3310
3311                 0, 0,
3312                 GP_2_14_FN, GFN_AVB_AVTP_CAPTURE_A,
3313                 GP_2_13_FN, GFN_AVB_AVTP_MATCH_A,
3314                 GP_2_12_FN, GFN_AVB_LINK,
3315                 GP_2_11_FN, GFN_AVB_PHY_INT,
3316                 GP_2_10_FN, GFN_AVB_MAGIC,
3317                 GP_2_9_FN, GFN_AVB_MDC,
3318                 GP_2_8_FN, GFN_PWM2_A,
3319                 GP_2_7_FN, GFN_PWM1_A,
3320                 GP_2_6_FN, GFN_PWM0,
3321                 GP_2_5_FN, GFN_IRQ5,
3322                 GP_2_4_FN, GFN_IRQ4,
3323                 GP_2_3_FN, GFN_IRQ3,
3324                 GP_2_2_FN, GFN_IRQ2,
3325                 GP_2_1_FN, GFN_IRQ1,
3326                 GP_2_0_FN, GFN_IRQ0 }
3327         },
3328
3329         /* GPSR3 */
3330         { PINMUX_CFG_REG("GPSR3", 0xE606010C, 32, 1) {
3331                 0, 0,
3332                 0, 0,
3333                 0, 0,
3334                 0, 0,
3335                 0, 0,
3336                 0, 0,
3337                 0, 0,
3338                 0, 0,
3339
3340                 0, 0,
3341                 0, 0,
3342                 0, 0,
3343                 0, 0,
3344                 0, 0,
3345                 0, 0,
3346                 0, 0,
3347                 0, 0,
3348
3349                 GP_3_15_FN, GFN_SD1_WP,
3350                 GP_3_14_FN, GFN_SD1_CD,
3351                 GP_3_13_FN, GFN_SD0_WP,
3352                 GP_3_12_FN, GFN_SD0_CD,
3353                 GP_3_11_FN, GFN_SD1_DAT3,
3354                 GP_3_10_FN, GFN_SD1_DAT2,
3355                 GP_3_9_FN, GFN_SD1_DAT1,
3356                 GP_3_8_FN, GFN_SD1_DAT0,
3357                 GP_3_7_FN, GFN_SD1_CMD,
3358                 GP_3_6_FN, GFN_SD1_CLK,
3359                 GP_3_5_FN, GFN_SD0_DAT3,
3360                 GP_3_4_FN, GFN_SD0_DAT2,
3361                 GP_3_3_FN, GFN_SD0_DAT1,
3362                 GP_3_2_FN, GFN_SD0_DAT0,
3363                 GP_3_1_FN, GFN_SD0_CMD,
3364                 GP_3_0_FN, GFN_SD0_CLK }
3365         },
3366         /* GPSR4 */
3367         { PINMUX_CFG_REG("GPSR4", 0xE6060110, 32, 1) {
3368                 0, 0,
3369                 0, 0,
3370                 0, 0,
3371                 0, 0,
3372                 0, 0,
3373                 0, 0,
3374                 0, 0,
3375                 0, 0,
3376
3377                 0, 0,
3378                 0, 0,
3379                 0, 0,
3380                 0, 0,
3381                 0, 0,
3382                 0, 0,
3383                 GP_4_17_FN, GPIO_FN_SD3_DS,
3384                 GP_4_16_FN, GFN_SD3_DAT7,
3385
3386                 GP_4_15_FN, GFN_SD3_DAT6,
3387                 GP_4_14_FN, GFN_SD3_DAT5,
3388                 GP_4_13_FN, GFN_SD3_DAT4,
3389                 GP_4_12_FN, FN_SD3_DAT3,
3390                 GP_4_11_FN, FN_SD3_DAT2,
3391                 GP_4_10_FN, FN_SD3_DAT1,
3392                 GP_4_9_FN, FN_SD3_DAT0,
3393                 GP_4_8_FN, FN_SD3_CMD,
3394                 GP_4_7_FN, FN_SD3_CLK,
3395                 GP_4_6_FN, GFN_SD2_DS,
3396                 GP_4_5_FN, GFN_SD2_DAT3,
3397                 GP_4_4_FN, GFN_SD2_DAT2,
3398                 GP_4_3_FN, GFN_SD2_DAT1,
3399                 GP_4_2_FN, GFN_SD2_DAT0,
3400                 GP_4_1_FN, FN_SD2_CMD,
3401                 GP_4_0_FN, GFN_SD2_CLK }
3402         },
3403         /* GPSR5 */
3404         { PINMUX_CFG_REG("GPSR5", 0xE6060114, 32, 1) {
3405                 0, 0,
3406                 0, 0,
3407                 0, 0,
3408                 0, 0,
3409                 0, 0,
3410                 0, 0,
3411                 GP_5_25_FN, GFN_MLB_DAT,
3412                 GP_5_24_FN, GFN_MLB_SIG,
3413
3414                 GP_5_23_FN, GFN_MLB_CLK,
3415                 GP_5_22_FN, FN_MSIOF0_RXD,
3416                 GP_5_21_FN, GFN_MSIOF0_SS2,
3417                 GP_5_20_FN, FN_MSIOF0_TXD,
3418                 GP_5_19_FN, GFN_MSIOF0_SS1,
3419                 GP_5_18_FN, GFN_MSIOF0_SYNC,
3420                 GP_5_17_FN, FN_MSIOF0_SCK,
3421                 GP_5_16_FN, GFN_HRTS0x,
3422                 GP_5_15_FN, GFN_HCTS0x,
3423                 GP_5_14_FN, GFN_HTX0,
3424                 GP_5_13_FN, GFN_HRX0,
3425                 GP_5_12_FN, GFN_HSCK0,
3426                 GP_5_11_FN, GFN_RX2_A,
3427                 GP_5_10_FN, GFN_TX2_A,
3428                 GP_5_9_FN, GFN_SCK2,
3429                 GP_5_8_FN, GFN_RTS1x_TANS,
3430                 GP_5_7_FN, GFN_CTS1x,
3431                 GP_5_6_FN, GFN_TX1_A,
3432                 GP_5_5_FN, GFN_RX1_A,
3433                 GP_5_4_FN, GFN_RTS0x_TANS,
3434                 GP_5_3_FN, GFN_CTS0x,
3435                 GP_5_2_FN, GFN_TX0,
3436                 GP_5_1_FN, GFN_RX0,
3437                 GP_5_0_FN, GFN_SCK0 }
3438         },
3439         /* GPSR6 */
3440         { PINMUX_CFG_REG("GPSR6", 0xE6060118, 32, 1) {
3441                 GP_6_31_FN, GFN_USB31_OVC,
3442                 GP_6_30_FN, GFN_USB31_PWEN,
3443                 GP_6_29_FN, GFN_USB30_OVC,
3444                 GP_6_28_FN, GFN_USB30_PWEN,
3445                 GP_6_27_FN, GFN_USB1_OVC,
3446                 GP_6_26_FN, GFN_USB1_PWEN,
3447                 GP_6_25_FN, GFN_USB0_OVC,
3448                 GP_6_24_FN, GFN_USB0_PWEN,
3449                 GP_6_23_FN, GFN_AUDIO_CLKB_B,
3450                 GP_6_22_FN, GFN_AUDIO_CLKA_A,
3451                 GP_6_21_FN, GFN_SSI_SDATA9_A,
3452                 GP_6_20_FN, GFN_SSI_SDATA8,
3453                 GP_6_19_FN, GFN_SSI_SDATA7,
3454                 GP_6_18_FN, GFN_SSI_WS78,
3455                 GP_6_17_FN, GFN_SSI_SCK78,
3456                 GP_6_16_FN, GFN_SSI_SDATA6,
3457                 GP_6_15_FN, GFN_SSI_WS6,
3458                 GP_6_14_FN, GFN_SSI_SCK6,
3459                 GP_6_13_FN, FN_SSI_SDATA5,
3460                 GP_6_12_FN, FN_SSI_WS5,
3461                 GP_6_11_FN, FN_SSI_SCK5,
3462                 GP_6_10_FN, GFN_SSI_SDATA4,
3463                 GP_6_9_FN, GFN_SSI_WS4,
3464                 GP_6_8_FN, GFN_SSI_SCK4,
3465                 GP_6_7_FN, GFN_SSI_SDATA3,
3466                 GP_6_6_FN, GFN_SSI_WS34,
3467                 GP_6_5_FN, GFN_SSI_SCK34,
3468                 GP_6_4_FN, GFN_SSI_SDATA2_A,
3469                 GP_6_3_FN, GFN_SSI_SDATA1_A,
3470                 GP_6_2_FN, GFN_SSI_SDATA0,
3471                 GP_6_1_FN, GFN_SSI_WS0129,
3472                 GP_6_0_FN, GFN_SSI_SCK0129 }
3473         },
3474         /* GPSR7 */
3475         { PINMUX_CFG_REG("GPSR7", 0xE606011C, 32, 1) {
3476                 0, 0,
3477                 0, 0,
3478                 0, 0,
3479                 0, 0,
3480                 0, 0,
3481                 0, 0,
3482                 0, 0,
3483                 0, 0,
3484
3485                 0, 0,
3486                 0, 0,
3487                 0, 0,
3488                 0, 0,
3489                 0, 0,
3490                 0, 0,
3491                 0, 0,
3492                 0, 0,
3493
3494                 0, 0,
3495                 0, 0,
3496                 0, 0,
3497                 0, 0,
3498                 0, 0,
3499                 0, 0,
3500                 0, 0,
3501                 0, 0,
3502
3503                 0, 0,
3504                 0, 0,
3505                 0, 0,
3506                 0, 0,
3507                 GP_7_3_FN, FN_HDMI1_CEC,
3508                 GP_7_2_FN, FN_HDMI0_CEC,
3509                 GP_7_1_FN, FN_AVS2,
3510                 GP_7_0_FN, FN_AVS1 }
3511         },
3512         { PINMUX_CFG_REG_VAR("IPSR0", 0xE6060200, 32,
3513                                 4, 4, 4, 4, 4, 4, 4, 4) {
3514                 /* IPSR0_31_28 [4] */
3515                 IFN_IRQ1, FN_QPOLA, 0, FN_DU_DISP,
3516                 FN_VI4_DATA1_B, FN_CAN0_RX_B, FN_CANFD0_RX_B, 0,
3517                 0, 0, 0, 0,
3518                 0, 0, 0, 0,
3519                 /* IPSR0_27_24 [4] */
3520                 IFN_IRQ0, FN_QPOLB, 0, FN_DU_CDE,
3521                 FN_VI4_DATA0_B, FN_CAN0_TX_B, FN_CANFD0_TX_B, 0,
3522                 0, 0, 0, 0,
3523                 0, 0, 0, 0,
3524                 /* IPSR0_23_20 [4] */
3525                 IFN_AVB_AVTP_CAPTURE_A, 0, FN_MSIOF2_TXD_C, FN_RTS4x_TANS_A,
3526                 0, 0, 0, 0,
3527                 0, 0, 0, 0,
3528                 0, 0, 0, 0,
3529                 /* IPSR0_19_16 [4] */
3530                 IFN_AVB_AVTP_MATCH_A, 0, FN_MSIOF2_RXD_C, FN_CTS4x_A,
3531                 0, 0, 0, 0,
3532                 0, 0, 0, 0,
3533                 0, 0, 0, 0,
3534                 /* IPSR0_15_12 [4] */
3535                 IFN_AVB_LINK, 0, FN_MSIOF2_SCK_C, FN_TX4_A,
3536                 0, 0, 0, 0,
3537                 0, 0, 0, 0,
3538                 0, 0, 0, 0,
3539                 /* IPSR0_11_8 [4] */
3540                 IFN_AVB_PHY_INT, 0, FN_MSIOF2_SYNC_C, FN_RX4_A,
3541                 0, 0, 0, 0,
3542                 0, 0, 0, 0,
3543                 0, 0, 0, 0,
3544                 /* IPSR0_7_4 [4] */
3545                 IFN_AVB_MAGIC, 0, FN_MSIOF2_S1_C, FN_SCK4_A,
3546                 0, 0, 0, 0,
3547                 0, 0, 0, 0,
3548                 0, 0, 0, 0,
3549                 /* IPSR0_3_0 [4] */
3550                 IFN_AVB_MDC, 0, FN_MSIOF2_SS2_C, 0,
3551                 0, 0, 0, 0,
3552                 0, 0, 0, 0,
3553                 0, 0, 0, 0,
3554                 }
3555         },
3556         { PINMUX_CFG_REG_VAR("IPSR1", 0xE6060204, 32,
3557                                 4, 4, 4, 4, 4, 4, 4, 4) {
3558                 /* IPSR1_31_28 [4] */
3559                 IFN_A0, FN_LCDOUT16, FN_MSIOF3_SYNC_B, 0,
3560                 FN_VI4_DATA8, 0, FN_DU_DB0, 0,
3561                 0, FN_PWM3_A, 0, 0,
3562                 0, 0, 0, 0,
3563                 /* IPSR1_27_24 [4] */
3564                 IFN_PWM2_A, FN_PWMFSW0, FN_A20, FN_HTX3_D,
3565                 0, 0, 0, 0,
3566                 0, FN_IETX_B, 0, 0,
3567                 0, 0, 0, 0,
3568                 /* IPSR1_23_20 [4] */
3569                 IFN_PWM1_A, 0, FN_A21, FN_HRX3_D,
3570                 FN_VI4_DATA7_B, 0, 0, 0,
3571                 0, FN_IERX_B, 0, 0,
3572                 0, 0, 0, 0,
3573                 /* IPSR1_19_16 [4] */
3574                 IFN_PWM0, FN_AVB_AVTP_PPS, FN_A22, 0,
3575                 FN_VI4_DATA6_B, 0, 0, 0,
3576                 0, FN_IECLK_B, 0, 0,
3577                 0, 0, 0, 0,
3578                 /* IPSR1_15_12 [4] */
3579                 IFN_IRQ5, FN_QSTB_QHE, FN_A23, FN_DU_EXVSYNC_DU_VSYNC,
3580                 FN_VI4_DATA5_B, 0, 0, 0,
3581                 0, FN_PWM6_B, 0, 0,
3582                 0, 0, 0, 0,
3583                 /* IPSR1_11_8 [4] */
3584                 IFN_IRQ4, FN_QSTH_QHS, FN_A24, FN_DU_EXHSYNC_DU_HSYNC,
3585                 FN_VI4_DATA4_B, 0, 0, 0,
3586                 0, FN_PWM5_B, 0, 0,
3587                 0, 0, 0, 0,
3588                 /* IPSR1_7_4 [4] */
3589                 IFN_IRQ3, FN_QSTVB_QVE, FN_A25, FN_DU_DOTCLKOUT1,
3590                 FN_VI4_DATA3_B, 0, 0,
3591                 0, FN_PWM4_B, 0, 0,
3592                 0, 0, 0, 0,
3593                 /* IPSR1_3_0 [4] */
3594                 IFN_IRQ2, FN_QCPV_QDE, 0, FN_DU_EXODDF_DU_ODDF_DISP_CDE,
3595                 FN_VI4_DATA2_B, 0, 0, 0,
3596                 0, FN_PWM3_B, 0, 0,
3597                 0, 0, 0, 0
3598                 }
3599         },
3600         { PINMUX_CFG_REG_VAR("IPSR2", 0xE6060208, 32,
3601                                 4, 4, 4, 4, 4, 4, 4, 4) {
3602                 /* IPSR2_31_28 [4] */
3603                 IFN_A8, FN_RX3_B, FN_MSIOF2_SYNC_A, FN_HRX4_B,
3604                 0, 0, 0, FN_SDA6_A,
3605                 FN_AVB_AVTP_MATCH_B, FN_PWM1_B, 0, 0,
3606                 0, 0, 0, 0,
3607                 /* IPSR2_27_24 [4] */
3608                 IFN_A7, FN_LCDOUT23, FN_MSIOF2_SS2_A, FN_TX4_B,
3609                 FN_VI4_DATA15, FN_V15_DATA15, FN_DU_DB7, 0,
3610                 0, 0, 0, 0,
3611                 0, 0, 0, 0,
3612                 /* IPSR2_23_20 [4] */
3613                 IFN_A6, FN_LCDOUT22, FN_MSIOF2_SS1_A, FN_RX4_B,
3614                 FN_VI4_DATA14, FN_VI5_DATA14, FN_DU_DB6, 0,
3615                 0, 0, 0, 0,
3616                 0, 0, 0, 0,
3617                 /* IPSR2_19_16 [4] */
3618                 IFN_A5, FN_LCDOUT21, FN_MSIOF3_SS2_B, FN_SCK4_B,
3619                 FN_VI4_DATA13, FN_VI5_DATA13, FN_DU_DB5, 0,
3620                 0, 0, 0, 0,
3621                 0, 0, 0, 0,
3622                 /* IPSR2_15_12 [4] */
3623                 IFN_A4, FN_LCDOUT20, FN_MSIOF3_SS1_B, 0,
3624                 FN_VI4_DATA12, FN_VI5_DATA12, FN_DU_DB4, 0,
3625                 0, 0, 0, 0,
3626                 0, 0, 0, 0,
3627                 /* IPSR2_11_8 [4] */
3628                 IFN_A3, FN_LCDOUT19, FN_MSIOF3_RXD_B, 0,
3629                 FN_VI4_DATA11, 0, FN_DU_DB3, 0,
3630                 0, FN_PWM6_A, 0, 0,
3631                 0, 0, 0, 0,
3632                 /* IPSR2_7_4 [4] */
3633                 IFN_A2, FN_LCDOUT18, FN_MSIOF3_SCK_B, 0,
3634                 FN_VI4_DATA10, 0, FN_DU_DB2, 0,
3635                 0, FN_PWM5_A, 0, 0,
3636                 0, 0, 0, 0,
3637                 /* IPSR2_3_0 [4] */
3638                 IFN_A1, FN_LCDOUT17, FN_MSIOF3_TXD_B, 0,
3639                 FN_VI4_DATA9, 0, FN_DU_DB1, 0,
3640                 0, FN_PWM4_A, 0, 0,
3641                 0, 0, 0, 0,
3642                 }
3643         },
3644         { PINMUX_CFG_REG_VAR("IPSR3", 0xE606020C, 32,
3645                                 4, 4, 4, 4, 4, 4, 4, 4) {
3646                 /* IPSR3_31_28 [4] */
3647                 IFN_A16, FN_LCDOUT8, 0, 0,
3648                 FN_VI4_FIELD, 0, FN_DU_DG0, 0,
3649                 0, 0, 0, 0,
3650                 0, 0, 0, 0,
3651                 /* IPSR3_27_24 [4] */
3652                 IFN_A15, FN_LCDOUT15, FN_MSIOF3_TXD_C, 0,
3653                 FN_HRTS4x, FN_VI5_DATA11, FN_DU_DG7, 0,
3654                 0, 0, 0, 0,
3655                 0, 0, 0, 0,
3656                 /* IPSR3_23_20 [4] */
3657                 IFN_A14, FN_LCDOUT14, FN_MSIOF3_RXD_C, 0,
3658                 FN_HCTS4x, FN_VI5_DATA10, FN_DU_DG6, 0,
3659                 0, 0, 0, 0,
3660                 0, 0, 0, 0,
3661                 /* IPSR3_19_16 [4] */
3662                 IFN_A13, FN_LCDOUT13, FN_MSIOF3_SYNC_C, 0,
3663                 FN_HTX4_A, FN_VI5_DATA9, FN_DU_DG5, 0,
3664                 0, 0, 0, 0,
3665                 0, 0, 0, 0,
3666                 /* IPSR3_15_12 [4] */
3667                 IFN_A12, FN_LCDOUT12, FN_MSIOF3_SCK_C, 0,
3668                 FN_HRX4_A, FN_VI5_DATA8, FN_DU_DG4, 0,
3669                 0, 0, 0, 0,
3670                 0, 0, 0, 0,
3671                 /* IPSR3_11_8 [4] */
3672                 IFN_A11, FN_TX3_B, FN_MSIOF2_TXD_A, FN_HTX4_B,
3673                 FN_HSCK4, FN_VI5_FIELD, 0, FN_SCL6_A,
3674                 FN_AVB_AVTP_CAPTURE_B, FN_PWM2_B, FN_SPV_EVEN, 0,
3675                 0, 0, 0, 0,
3676                 /* IPSR3_7_4 [4] */
3677                 IFN_A10, 0, FN_MSIOF2_RXD_A, FN_RTS4n_TANS_B,
3678                 0, FN_VI5_HSYNCx, 0, 0,
3679                 0, 0, 0, 0,
3680                 0, 0, 0, 0,
3681                 /* IPSR3_3_0 [4] */
3682                 IFN_A9, 0, FN_MSIOF2_SCK_A, FN_CTS4x_B,
3683                 0, FN_VI5_VSYNCx, 0, 0,
3684                 0, 0, 0, 0,
3685                 0, 0, 0, 0,
3686                 }
3687         },
3688         { PINMUX_CFG_REG_VAR("IPSR4", 0xE6060210, 32,
3689                                 4, 4, 4, 4, 4, 4, 4, 4) {
3690                 /* IPSR4_31_28 [4] */
3691                 IFN_RD_WRx, 0, FN_MSIOF3_RXD_D, FN_TX3_A,
3692                 FN_HTX3_A, 0, 0, 0,
3693                 FN_CAN0_RX_A, FN_CANFD0_RX_A, 0, 0,
3694                 0, 0, 0, 0,
3695                 /* IPSR4_27_24 [4] */
3696                 IFN_RDx, 0, FN_MSIOF3_SYNC_D, FN_RX3_A,
3697                 FN_HRX3_A, 0, 0, 0,
3698                 FN_CAN0_TX_A, FN_CANFD0_TX_A, 0, 0,
3699                 0, 0, 0, 0,
3700                 /* IPSR4_23_20 [4] */
3701                 IFN_BSx, FN_QSTVA_QVS, FN_MSIOF3_SCK_D, FN_SCK3,
3702                 FN_HSCK3, 0, 0, 0,
3703                 FN_CAN1_TX, FN_CANFD1_TX, FN_IETX_A, 0,
3704                 0, 0, 0, 0,
3705                 /* IPSR4_19_16 [4] */
3706                 IFN_CS1x_A26, 0, 0, 0,
3707                 0, FN_VI5_CLK, 0, FN_EX_WAIT0_B,
3708                 0, 0, 0, 0,
3709                 0, 0, 0, 0,
3710                 /* IPSR4_15_12 [4] */
3711                 IFN_CS0x, 0, 0, 0,
3712                 0, FN_VI5_CLKENB, 0, 0,
3713                 0, 0, 0, 0,
3714                 0, 0, 0, 0,
3715                 /* IPSR4_11_8 [4] */
3716                 IFN_A19, FN_LCDOUT11, 0, 0,
3717                 FN_VI4_CLKENB, 0, FN_DU_DG3, 0,
3718                 0, 0, 0, 0,
3719                 0, 0, 0, 0,
3720                 /* IPSR4_7_4 [4] */
3721                 IFN_A18, FN_LCDOUT10, 0, 0,
3722                 FN_VI4_HSYNCx, 0, FN_DU_DG2, 0,
3723                 0, 0, 0, 0,
3724                 0, 0, 0, 0,
3725                 /* IPSR4_3_0 [4] */
3726                 IFN_A17, FN_LCDOUT9, 0, 0,
3727                 FN_VI4_VSYNCx, 0, FN_DU_DG1, 0,
3728                 0, 0, 0, 0,
3729                 0, 0, 0, 0,
3730                 }
3731         },
3732         { PINMUX_CFG_REG_VAR("IPSR5", 0xE6060214, 32,
3733                                 4, 4, 4, 4, 4, 4, 4, 4) {
3734                 /* IPSR5_31_28 [4] */
3735                 IFN_D4, FN_MSIOF2_SCK_B, 0, 0,
3736                 FN_VI4_DATA20, FN_VI5_DATA4, 0, 0,
3737                 0, 0, 0, 0,
3738                 0, 0, 0, 0,
3739                 /* IPSR5_27_24 [4] */
3740                 IFN_D3, 0, FN_MSIOF3_TXD_A, 0,
3741                 FN_VI4_DATA19, FN_VI5_DATA3, 0, 0,
3742                 0, 0, 0, 0,
3743                 0, 0, 0, 0,
3744                 /* IPSR5_23_20 [4] */
3745                 IFN_D2, 0, FN_MSIOF3_RXD_A, 0,
3746                 FN_VI4_DATA18, FN_VI5_DATA2, 0, 0,
3747                 0, 0, 0, 0,
3748                 0, 0, 0, 0,
3749                 /* IPSR5_19_16 [4] */
3750                 IFN_D1, FN_MSIOF2_SS2_B, FN_MSIOF3_SYNC_A, 0,
3751                 FN_VI4_DATA17, FN_VI5_DATA1, 0, 0,
3752                 0, 0, 0, 0,
3753                 0, 0, 0, 0,
3754                 /* IPSR5_15_12 [4] */
3755                 IFN_D0, FN_MSIOF2_SS1_B, FN_MSIOF3_SCK_A, 0,
3756                 FN_VI4_DATA16, FN_VI5_DATA0, 0, 0,
3757                 0, 0, 0, 0,
3758                 0, 0, 0, 0,
3759                 /* IPSR5_11_8 [4] */
3760                 IFN_EX_WAIT0_A, FN_QCLK, 0, 0,
3761                 FN_VI4_CLK, 0, FN_DU_DOTCLKOUT0, 0,
3762                 0, 0, 0, 0,
3763                 0, 0, 0, 0,
3764                 /* IPSR5_7_4 [4] */
3765                 IFN_WE1x, 0, FN_MSIOF3_SS1_D, FN_RTS3x_TANS,
3766                 FN_HRTS3x, 0, 0, FN_SDA6_B,
3767                 FN_CAN1_RX, FN_CANFD1_RX, FN_IERX_A, 0,
3768                 0, 0, 0, 0,
3769                 /* IPSR5_3_0 [4] */
3770                 IFN_WE0x, 0, FN_MSIIOF3_TXD_D, FN_CTS3x,
3771                 FN_HCTS3x, 0, 0, FN_SCL6_B,
3772                 FN_CAN_CLK, 0, FN_IECLK_A, 0,
3773                 0, 0, 0, 0,
3774                 }
3775         },
3776         { PINMUX_CFG_REG_VAR("IPSR6", 0xE6060218, 32,
3777                                 4, 4, 4, 4, 4, 4, 4, 4) {
3778                 /* IPSR6_31_28 [4] */
3779                 IFN_D12, FN_LCDOUT4, FN_MSIOF2_SS1_D, FN_RX4_C,
3780                 FN_VI4_DATA4_A, 0, FN_DU_DR4, 0,
3781                 0, 0, 0, 0,
3782                 0, 0, 0, 0,
3783                 /* IPSR6_27_24 [4] */
3784                 IFN_D11, FN_LCDOUT3, FN_MSIOF2_TXD_D, FN_HTX3_B,
3785                 FN_VI4_DATA3_A, FN_RTS4x_TANS_C, FN_DU_DR3, 0,
3786                 0, 0, 0, 0,
3787                 0, 0, 0, 0,
3788                 /* IPSR6_23_20 [4] */
3789                 IFN_D10, FN_LCDOUT2, FN_MSIOF2_RXD_D, FN_HRX3_B,
3790                 FN_VI4_DATA2_A, FN_CTS4x_C, FN_DU_DR2, 0,
3791                 0, 0, 0, 0,
3792                 0, 0, 0, 0,
3793                 /* IPSR6_19_16 [4] */
3794                 IFN_D9, FN_LCDOUT1, FN_MSIOF2_SYNC_D, 0,
3795                 FN_VI4_DATA1_A, 0, FN_DU_DR1, 0,
3796                 0, 0, 0, 0,
3797                 0, 0, 0, 0,
3798                 /* IPSR6_15_12 [4] */
3799                 IFN_D8, FN_LCDOUT0, FN_MSIOF2_SCK_D, FN_SCK4_C,
3800                 FN_VI4_DATA0_A, 0, FN_DU_DR0, 0,
3801                 0, 0, 0, 0,
3802                 0, 0, 0, 0,
3803                 /* IPSR6_11_8 [4] */
3804                 IFN_D7, FN_MSIOF2_TXD_B, 0, 0,
3805                 FN_VI4_DATA23, FN_VI5_DATA7, 0, 0,
3806                 0, 0, 0, 0,
3807                 0, 0, 0, 0,
3808                 /* IPSR6_7_4 [4] */
3809                 IFN_D6, FN_MSIOF2_RXD_B, 0, 0,
3810                 FN_VI4_DATA22, FN_VI5_DATA6, 0, 0,
3811                 0, 0, 0, 0,
3812                 0, 0, 0, 0,
3813                 /* IPSR6_3_0 [4] */
3814                 IFN_D5, FN_MSIOF2_SYNC_B, 0, 0,
3815                 FN_VI4_DATA21, FN_VI5_DATA5, 0, 0,
3816                 0, 0, 0, 0,
3817                 0, 0, 0, 0,
3818                 }
3819         },
3820         { PINMUX_CFG_REG_VAR("IPSR7", 0xE606021C, 32,
3821                                 4, 4, 4, 4, 4, 4, 4, 4) {
3822                 /* IPSR7_31_28 [4] */
3823                 IFN_SD0_DAT1, 0, FN_MSIOF1_TXD_E, 0,
3824                 0, FN_TS_SPSYNC0_B, FN_STP_ISSYNC_0_B, 0,
3825                 0, 0, 0, 0,
3826                 0, 0, 0, 0,
3827                 /* IPSR7_27_24 [4] */
3828                 IFN_SD0_DAT0, 0, FN_MSIOF1_RXD_E, 0,
3829                 0, FN_TS_SCK0_B, FN_STP_ISCLK_0_B, 0,
3830                 0, 0, 0, 0,
3831                 0, 0, 0, 0,
3832                 /* IPSR7_23_20 [4] */
3833                 IFN_SD0_CMD, 0, FN_MSIOF1_SYNC_E, 0,
3834                 0, 0, FN_STP_IVCXO27_0_B, 0,
3835                 0, 0, 0, 0,
3836                 0, 0, 0, 0,
3837                 /* IPSR7_19_16 [4] */
3838                 IFN_SD0_CLK, 0, FN_MSIOF1_SCK_E, 0,
3839                 0, 0, FN_STP_OPWM_0_B, 0,
3840                 0, 0, 0, 0,
3841                 0, 0, 0, 0,
3842                 /* IPSR7_15_12 [4] */
3843                 FN_FSCLKST, 0, 0, 0,
3844                 0, 0, 0, 0,
3845                 0, 0, 0, 0,
3846                 0, 0, 0, 0,
3847                 /* IPSR7_11_8 [4] */
3848                 IFN_D15, FN_LCDOUT7, FN_MSIOF3_SS2_A, FN_HTX3_C,
3849                 FN_VI4_DATA7_A, 0, FN_DU_DR7, FN_SDA6_C,
3850                 0, 0, 0, 0,
3851                 0, 0, 0, 0,
3852                 /* IPSR7_7_4 [4] */
3853                 IFN_D14, FN_LCDOUT6, FN_MSIOF3_SS1_A, FN_HRX3_C,
3854                 FN_VI4_DATA6_A, 0, FN_DU_DR6, FN_SCL6_C,
3855                 0, 0, 0, 0,
3856                 0, 0, 0, 0,
3857                 /* IPSR7_3_0 [4] */
3858                 IFN_D13, FN_LCDOUT5, FN_MSIOF2_SS2_D, FN_TX4_C,
3859                 FN_VI4_DATA5_A, 0, FN_DU_DR5, 0,
3860                 0, 0, 0, 0,
3861                 0, 0, 0, 0,
3862                 }
3863         },
3864         { PINMUX_CFG_REG_VAR("IPSR8", 0xE6060220, 32,
3865                                 4, 4, 4, 4, 4, 4, 4, 4) {
3866                 /* IPSR8_31_28 [4] */
3867                 IFN_SD1_DAT3, FN_SD2_DAT7, FN_MSIOF1_SS2_G, 0,
3868                 0, FN_TS_SDEN1_B, FN_STP_ISEN_1_B, 0,
3869                 0, 0, 0, 0,
3870                 0, 0, 0, 0,
3871                 /* IPSR8_27_24 [4] */
3872                 IFN_SD1_DAT2, FN_SD2_DAT6, FN_MSIOF1_SS1_G, 0,
3873                 0, FN_TS_SDAT1_B, FN_STP_IOD_1_B, 0,
3874                 0, 0, 0, 0,
3875                 0, 0, 0, 0,
3876                 /* IPSR8_23_20 [4] */
3877                 IFN_SD1_DAT1, FN_SD2_DAT5, FN_MSIOF1_TXD_G, 0,
3878                 0, FN_TS_SPSYNC1_B, FN_STP_ISSYNC_1_B, 0,
3879                 0, 0, 0, 0,
3880                 0, 0, 0, 0,
3881                 /* IPSR8_19_16 [4] */
3882                 IFN_SD1_DAT0, FN_SD2_DAT4, FN_MSIOF1_RXD_G, 0,
3883                 0, FN_TS_SCK1_B, FN_STP_ISCLK_1_B, 0,
3884                 0, 0, 0, 0,
3885                 0, 0, 0, 0,
3886                 /* IPSR8_15_12 [4] */
3887                 IFN_SD1_CMD, 0, FN_MSIOF1_SYNC_G, 0,
3888                 0, FN_SIM0_D_A, FN_STP_IVCXO27_1_B, 0,
3889                 0, 0, 0, 0,
3890                 0, 0, 0, 0,
3891                 /* IPSR8_11_8 [4] */
3892                 IFN_SD1_CLK, 0, FN_MSIOF1_SCK_G, 0,
3893                 0, FN_SIM0_CLK_A, 0, 0,
3894                 0, 0, 0, 0,
3895                 0, 0, 0, 0,
3896                 /* IPSR8_7_4 [4] */
3897                 IFN_SD0_DAT3, 0, FN_MSIOF1_SS2_E, 0,
3898                 0, FN_TS_SDEN0_B, FN_STP_ISEN_0_B, 0,
3899                 0, 0, 0, 0,
3900                 0, 0, 0, 0,
3901                 /* IPSR8_3_0 [4] */
3902                 IFN_SD0_DAT2, 0, FN_MSIOF1_SS1_E, 0,
3903                 0, FN_TS_SDAT0_B, FN_STP_ISD_0_B, 0,
3904                 0, 0, 0, 0,
3905                 0, 0, 0, 0,
3906                 }
3907         },
3908         { PINMUX_CFG_REG_VAR("IPSR9", 0xE6060224, 32,
3909                                 4, 4, 4, 4, 4, 4, 4, 4) {
3910                 /* IPSR9_31_28 [4] */
3911                 IFN_SD3_DAT5, FN_SD2_WP_A, 0, 0,
3912                 0, 0, 0, 0,
3913                 0, 0, 0, 0,
3914                 0, 0, 0, 0,
3915                 /* IPSR9_27_24 [4] */
3916                 IFN_SD3_DAT4, FN_SD2_CD_A, 0, 0,
3917                 0, 0, 0, 0,
3918                 0, 0, 0, 0,
3919                 0, 0, 0, 0,
3920                 /* IPSR9_23_20 [4] */
3921                 IFN_SD2_DS, 0, 0, 0,
3922                 0, 0, 0, 0,
3923                 FN_SATA_DEVSLP_B, 0, 0, FN_VSP_A,
3924                 0, 0, 0, 0,
3925                 /* IPSR9_19_16 [4] */
3926                 IFN_SD2_DAT3, 0, 0, 0,
3927                 0, 0, 0, 0,
3928                 0, FN_SDATA_A, 0, 0,
3929                 0, 0, 0, 0,
3930                 /* IPSR9_15_12 [4] */
3931                 IFN_SD2_DAT2, 0, 0, 0,
3932                 0, 0, 0, 0,
3933                 0, FN_MDATA_A, 0, 0,
3934                 0, 0, 0, 0,
3935                 /* IPSR9_11_8 [4] */
3936                 IFN_SD2_DAT1, 0, 0, 0,
3937                 0, 0, 0, 0,
3938                 0, FN_STMx_A, 0, 0,
3939                 0, 0, 0, 0,
3940                 /* IPSR9_7_4 [4] */
3941                 IFN_SD2_DAT0, 0, 0, 0,
3942                 0, 0, 0, 0,
3943                 0, FN_MTSx_A, 0, 0,
3944                 0, 0, 0, 0,
3945                 /* IPSR9_3_0 [4] */
3946                 IFN_SD2_CLK, 0, 0, 0,
3947                 0, 0, 0, 0,
3948                 0, FN_SCKZ_A, 0, 0,
3949                 0, 0, 0, 0,
3950                 }
3951         },
3952         { PINMUX_CFG_REG_VAR("IPSR10", 0xE6060228, 32,
3953                                 4, 4, 4, 4, 4, 4, 4, 4) {
3954                 /* IPSR10_31_28 [4] */
3955                 IFN_RX0, FN_HRX1_B, 0, 0,
3956                 0, FN_TS_SCK0_C, FN_STP_ISCLK_0_C, FN_RIF0_D0_B,
3957                 0, 0, 0, 0,
3958                 0, 0, 0, 0,
3959                 /* IPSR10_27_24 [4] */
3960                 IFN_SCK0, FN_HSCK1_B, FN_MSIOF1_SS2_B, FN_AUDIO_CLKC_B,
3961                 FN_SDA2_A, FN_SIM0_RST_B, FN_STP_OPWM__C, FN_RIF0_CLK_B,
3962                 0, FN_ADICHS2, 0, 0,
3963                 0, 0, 0, 0,
3964                 /* IPSR10_23_20 [4] */
3965                 IFN_SD1_WP, 0, 0, 0,
3966                 0, FN_SIM0_D_B, 0, 0,
3967                 0, 0, 0, 0,
3968                 0, 0, 0, 0,
3969                 /* IPSR10_19_16 [4] */
3970                 IFN_SD1_CD, 0, 0, 0,
3971                 0, FN_SIM0_CLK_B, 0, 0,
3972                 0, 0, 0, 0,
3973                 0, 0, 0, 0,
3974                 /* IPSR10_15_12 [4] */
3975                 IFN_SD0_WP, 0, 0, 0,
3976                 FN_SDA2_B, 0, 0, 0,
3977                 0, 0, 0, 0,
3978                 0, 0, 0, 0,
3979                 /* IPSR10_11_8 [4] */
3980                 IFN_SD0_CD, 0, 0, 0,
3981                 FN_SCL2_B, FN_SIM0_RST_A, 0, 0,
3982                 0, 0, 0, 0,
3983                 0, 0, 0, 0,
3984                 /* IPSR10_7_4 [4] */
3985                 IFN_SD3_DAT7, FN_SD3_WP, 0, 0,
3986                 0, 0, 0, 0,
3987                 0, 0, 0, 0,
3988                 0, 0, 0, 0,
3989                 /* IPSR10_3_0 [4] */
3990                 IFN_SD3_DAT6, FN_SD3_CD, 0, 0,
3991                 0, 0, 0, 0,
3992                 0, 0, 0, 0,
3993                 0, 0, 0, 0,
3994                 }
3995         },
3996         { PINMUX_CFG_REG_VAR("IPSR11", 0xE606022C, 32,
3997                                 4, 4, 4, 4, 4, 4, 4, 4) {
3998                 /* IPSR11_31_28 [4] */
3999                 IFN_SCK2, FN_SCIF_CLK_B, FN_MSIOF1_SCK_B, 0,
4000                 0, FN_TS_SCK1_C, FN_STP_ISCLK_1_C, FN_RIF1_CLK_B,
4001                 0, FN_ADICLK, 0, 0,
4002                 0, 0, 0, 0,
4003                 /* IPSR11_27_24 [4] */
4004                 IFN_RTS1x_TANS, FN_HRTS1x_A, FN_MSIOF1_TXD_B, 0,
4005                 0, FN_TS_SDAT1_C, FN_STP_ISD_1_C, FN_RIF1_D1_B,
4006                 0, FN_ADICHS0, 0, 0,
4007                 0, 0, 0, 0,
4008                 /* IPSR11_23_20 [4] */
4009                 IFN_CTS1x, FN_HCTS1x_A, FN_MSIOF1_RXD_B, 0,
4010                 0, FN_TS_SDEN1_C, FN_STP_ISEN_1_C, FN_RIF1_D0_B,
4011                 0, FN_ADIDATA, 0, 0,
4012                 /* IPSR11_19_16 [4] */
4013                 IFN_TX1_A, FN_HTX1_A, 0, 0,
4014                 0, FN_TS_SDEN0_C, FN_STP_ISEN_0_C, FN_RIF1_D0_C,
4015                 0, 0, 0, 0,
4016                 0, 0, 0, 0,
4017                 /* IPSR11_15_12 [4] */
4018                 IFN_RX1_A, FN_HRX1_A, 0, 0,
4019                 0, FN_TS_SDAT0_C, FN_STP_IDS_0_C, FN_RIF1_CLK_C,
4020                 0, 0, 0, 0,
4021                 0, 0, 0, 0,
4022                 /* IPSR11_11_8 [4] */
4023                 IFN_RTS0x_TANS, FN_HRTS1x_B, FN_MSIOF1_SS1_B, FN_AUDIO_CLKA_B,
4024                 FN_SCL2_A, 0, FN_STP_IVCXO27_1_C, FN_RIF0_SYNC_B,
4025                 0, FN_ADICHS1, 0, 0,
4026                 0, 0, 0, 0,
4027                 /* IPSR11_7_4 [4] */
4028                 IFN_CTS0x, FN_HCTS1x_B, FN_MSIOF1_SYNC_B, 0,
4029                 0, FN_TS_SPSYNC1_C, FN_STP_ISSYNC_1_C, FN_RIF1_SYNC_B,
4030                 FN_AUDIO_CLKOUT_C, FN_ADICS_SAMP, 0, 0,
4031                 0, 0, 0, 0,
4032                 /* IPSR11_3_0 [4] */
4033                 IFN_TX0, FN_HTX1_B, 0, 0,
4034                 0, FN_TS_SPSYNC0_C, FN_STP_ISSYNC_0_C, FN_RIF0_D1_B,
4035                 0, 0, 0, 0,
4036                 0, 0, 0, 0,
4037                 }
4038         },
4039         { PINMUX_CFG_REG_VAR("IPSR12", 0xE6060230, 32,
4040                                 4, 4, 4, 4, 4, 4, 4, 4) {
4041                 /* IPSR12_31_28 [4] */
4042                 IFN_MSIOF0_SYNC, 0, 0, 0,
4043                 0, 0, 0, 0,
4044                 FN_AUDIO_CLKOUT_A, 0, 0, 0,
4045                 0, 0, 0, 0,
4046                 /* IPSR12_27_24 [4] */
4047                 IFN_HRTS0x, FN_TX2_B, FN_MSIOF1_SS1_D, 0,
4048                 FN_SSI_WS9_A, 0, FN_STP_IVCXO27_0_D, FN_BPFCLK_A,
4049                 FN_AUDIO_CLKOUT2_A, 0, 0, 0,
4050                 0, 0, 0, 0,
4051                 /* IPSR12_23_20 [4] */
4052                 IFN_HCTS0x, FN_RX2_B, FN_MSIOF1_SYNC_D, 0,
4053                 FN_SSI_SCK9_A, FN_TS_SPSYNC0_D, FN_STP_ISSYNC_0_D,
4054                 FN_RIF0_SYNC_C,
4055                 FN_AUDIO_CLKOUT1_A, FN_AD_NSCx, 0, 0,
4056                 0, 0, 0, 0,
4057                 /* IPSR12_19_16 [4] */
4058                 IFN_HTX0, 0, FN_MSIOF1_TXD_D, 0,
4059                 FN_SSI_SDATA9_B, FN_TS_SDAT0_D, FN_STP_ISD_0_D, FN_RIF0_D1_C,
4060                 0, FN_AD_DO, 0, 0,
4061                 0, 0, 0, 0,
4062                 /* IPSR12_15_12 [4] */
4063                 IFN_HRX0, 0, FN_MSIOF1_RXD_D, 0,
4064                 FN_SS1_SDATA2_B, FN_TS_SDEN0_D, FN_STP_ISEN_0_D, FN_RIF0_D0_C,
4065                 0, FN_AD_DI, 0, 0,
4066                 0, 0, 0, 0,
4067                 /* IPSR12_11_8 [4] */
4068                 IFN_HSCK0, 0, FN_MSIOF1_SCK_D, FN_AUDIO_CLKB_A,
4069                 FN_SSI_SDATA1_B, FN_TS_SCK0_D, FN_STP_ISCLK_0_D, FN_RIF0_CLK_C,
4070                 0, FN_AD_CLK, 0, 0,
4071                 0, 0, 0, 0,
4072                 /* IPSR12_7_4 [4] */
4073                 IFN_RX2_A, 0, 0, FN_SD2_WP_B,
4074                 FN_SDA1_A, FN_RDS_DATA_B, FN_RMIN_A, FN_RIF1_SYNC_C,
4075                 0, FN_FSO_CEF_1_B, 0, 0,
4076                 0, 0, 0, 0,
4077                 /* IPSR12_3_0 [4] */
4078                 IFN_TX2_A, 0, 0, FN_SD2_CD_B,
4079                 FN_SCL1_A, FN_RSD_CLK_B, FN_FMCLK_A, FN_RIF1_D1_C,
4080                 0, FN_FSO_CFE_0_B, 0, 0,
4081                 0, 0, 0, 0,
4082                 }
4083         },
4084         { PINMUX_CFG_REG_VAR("IPSR13", 0xE6060234, 32,
4085                                 4, 4, 4, 4, 4, 4, 4, 4) {
4086                 /* IPSR13_31_28 [4] */
4087                 IFN_SSI_SDATA0, 0, FN_MSIOF1_SS2_F, 0,
4088                 0, 0, 0, FN_MOUT2,
4089                 0, 0, 0, 0,
4090                 0, 0, 0, 0,
4091                 /* IPSR13_27_24 [4] */
4092                 IFN_SSI_WS0129, 0, FN_MSIOF1_SS1_F, 0,
4093                 0, 0, 0, FN_MOUT1,
4094                 0, 0, 0, 0,
4095                 0, 0, 0, 0,
4096                 /* IPSR13_23_20 [4] */
4097                 IFN_SSI_SCK0129, 0, FN_MSIOF1_TXD_F, 0,
4098                 0, 0, 0, FN_MOUT0,
4099                 0, 0, 0, 0,
4100                 0, 0, 0, 0,
4101                 /* IPSR13_19_16 [4] */
4102                 IFN_MLB_DAT, FN_TX1_B, FN_MSIOF1_RXD_F, 0,
4103                 0, 0, 0, 0,
4104                 0, 0, 0, 0,
4105                 0, 0, 0, 0,
4106                 /* IPSR13_15_12 [4] */
4107                 IFN_MLB_SIG, FN_RX1_B, FN_MSIOF1_SYNC_F, 0,
4108                 FN_SDA1_B, 0, 0, 0,
4109                 0, 0, 0, 0,
4110                 0, 0, 0, 0,
4111                 /* IPSR13_11_8 [4] */
4112                 IFN_MLB_CLK, 0, FN_MSIOF1_SCK_F, 0,
4113                 FN_SCL1_B, 0, 0, 0,
4114                 0, 0, 0, 0,
4115                 0, 0, 0, 0,
4116                 /* IPSR13_7_4 [4] */
4117                 IFN_MSIOF0_SS2, FN_TX5, FN_MSIOF1_SS2_D, FN_AUDIO_CLKC_A,
4118                 FN_SSI_WS2_A, FN_RDS_DATA_A, FN_STP_OPWM_0_D, 0,
4119                 FN_AUDIO_CLKOUT_D, 0, FN_SPEEDIN_B, 0,
4120                 /* IPSR13_3_0 [4] */
4121                 IFN_MSIOF0_SS1, FN_RX5, 0, FN_AUDIO_CLKA_C,
4122                 FN_SSI_SCK2_A, FN_RDS_CLK_A, FN_STP_IVCXO27_0_C, 0,
4123                 FN_AUDIO_CLKOUT3_A, 0, FN_TCLK1_B, 0,
4124                 0, 0, 0, 0,
4125                 }
4126         },
4127         { PINMUX_CFG_REG_VAR("IPSR14", 0xE6060238, 32,
4128                                 4, 4, 4, 4, 4, 4, 4, 4) {
4129                 /* IPSR14_31_28 [4] */
4130                 IFN_SSI_SDATA4, FN_HSCK2_A, FN_MSIOF1_RXD_A, 0,
4131                 0, FN_TS_SPSYNC0_A, FN_STP_ISSYNC_0_A, FN_RIF0_D0_A,
4132                 FN_RIF2_D1_A, 0, 0, 0,
4133                 0, 0, 0, 0,
4134                 /* IPSR14_27_24 [4] */
4135                 IFN_SSI_WS4, FN_HTX2_A, FN_MSIOF1_SYNC_A, 0,
4136                 0, FN_TS_SDEN0_A, FN_STP_ISEN_0_A, FN_RIF0_SYNC_A,
4137                 FN_RIF2_SYNC_A, 0, 0, 0,
4138                 0, 0, 0, 0,
4139                 /* IPSR14_23_20 [4] */
4140                 IFN_SSI_SCK4, FN_HRX2_A, FN_MSIOF1_SCK_A, 0,
4141                 0, FN_TS_SDAT0_A, FN_STP_ISD_0_A, FN_RIF0_CLK_A,
4142                 FN_RIF2_CLK_A, 0, 0, 0,
4143                 0, 0, 0, 0,
4144                 /* IPSR14_19_16 [4] */
4145                 IFN_SSI_SDATA3, FN_HRTS2x_A, FN_MSIOF1_TXD_A, 0,
4146                 0, FN_TS_SCK0_A, FN_STP_ISCLK_0_A, FN_RIF0_D1_A,
4147                 FN_RIF2_D0_A, 0, 0, 0,
4148                 0, 0, 0, 0,
4149                 /* IPSR14_15_12 [4] */
4150                 IFN_SSI_WS34, FN_HCTS2x_A, FN_MSIOF1_SS2_A, 0,
4151                 0, 0, FN_STP_IVCXO27_0_A, 0,
4152                 0, 0, 0, 0,
4153                 0, 0, 0, 0,
4154                 /* IPSR14_11_8 [4] */
4155                 IFN_SSI_SCK34, 0, FN_MSIOF1_SS1_A, 0,
4156                 0, 0, FN_STP_OPWM_0_A, 0,
4157                 0, 0, 0, 0,
4158                 0, 0, 0, 0,
4159                 /* IPSR14_7_4 [4] */
4160                 IFN_SSI_SDATA2_A, 0, 0, 0,
4161                 FN_SSI_SCK1_B, 0, 0, FN_MOUT6,
4162                 0, 0, 0, 0,
4163                 0, 0, 0, 0,
4164                 /* IPSR14_3_0 [4] */
4165                 IFN_SSI_SDATA1_A, 0, 0, 0,
4166                 0, 0, 0, FN_MOUT5,
4167                 0, 0, 0, 0,
4168                 0, 0, 0, 0,
4169                 }
4170         },
4171         { PINMUX_CFG_REG_VAR("IPSR15", 0xE606023C, 32,
4172                                 4, 4, 4, 4, 4, 4, 4, 4) {
4173                 /* IPSR15_31_28 [4] */
4174                 IFN_SSI_SDATA9_A, FN_HSCK2_B, FN_MSIOF1_SS1_C, FN_HSCK1_A,
4175                 FN_SSI_WS1_B, FN_SCK1, FN_STP_IVCXO27_1_A, FN_SCK5,
4176                 0, 0, 0, 0,
4177                 0, 0, 0, 0,
4178                 /* IPSR15_27_24 [4] */
4179                 IFN_SSI_SDATA8, FN_HRTS2x_B, FN_MSIOF1_TXD_C, 0,
4180                 0, FN_TS_SPSYNC1_A, FN_STP_ISSYNC_1_A, FN_RIF1_D1_A,
4181                 FN_EIF3_D1_A, 0, 0, 0,
4182                 0, 0, 0, 0,
4183                 /* IPSR15_23_20 [4] */
4184                 IFN_SSI_SDATA7, FN_HCTS2x_B, FN_MSIOF1_RXD_C, 0,
4185                 0, FN_TS_SDEN1_A, FN_STP_IEN_1_A, FN_RIF1_D0_A,
4186                 FN_RIF3_D0_A, 0, FN_TCLK2_A, 0,
4187                 /* IPSR15_19_16 [4] */
4188                 IFN_SSI_WS78, FN_HTX2_B, FN_MSIOF1_SYNC_C, 0,
4189                 0, FN_TS_SDT1_A, FN_STP_ISD_1_A, FN_RIF1_SYNC_A,
4190                 FN_RIF3_SYNC_A, 0, 0, 0,
4191                 0, 0, 0, 0,
4192                 /* IPSR15_15_12 [4] */
4193                 IFN_SSI_SCK78, FN_HRX2_B, FN_MSIOF1_SCK_C, 0,
4194                 0, FN_TS_SCK1_A, FN_STP_ISCLK_1_A, FN_RIF1_CLK_A,
4195                 FN_RIF3_CLK_A, 0, 0, 0,
4196                 0, 0, 0, 0,
4197                 /* IPSR15_11_8 [4] */
4198                 IFN_SSI_SDATA6, 0, 0, FN_SIM0_CLK_D,
4199                 0, 0, FN_RSD_DATA_C, 0,
4200                 FN_SATA_DEVSLP_A, 0, 0, 0,
4201                 0, 0, 0, 0,
4202                 /* IPSR15_7_4 [4] */
4203                 IFN_SSI_WS6, FN_USB2_OVC, 0, FN_SIM0_D_D,
4204                 0, 0, 0, 0,
4205                 0, 0, 0, 0,
4206                 0, 0, 0, 0,
4207                 /* IPSR15_3_0 [4] */
4208                 IFN_SSI_SCK6, FN_USB2_PWEN, 0, FN_SIM0_RST_D,
4209                 0, 0, FN_RDS_CLK_C, 0,
4210                 0, 0, 0, 0,
4211                 0, 0, 0, 0,
4212                 }
4213
4214         },
4215         { PINMUX_CFG_REG_VAR("IPSR16", 0xE6060240, 32,
4216                                 4, 4, 4, 4, 4, 4, 4, 4) {
4217                 /* IPSR16_31_28 [4] */
4218                 IFN_USB30_OVC, 0, FN_AUDIO_CLKOUT1_B, 0,
4219                 FN_SSI_WS2_B, FN_TS_SPSYNC1_D, FN_STP_ISSYNC_1_D,
4220                 FN_STP_IVCXO27_0_E,
4221                 FN_RIF3_D1_B, FN_SDATA_B, FN_RSO_TOE_B, FN_TPU0TO1,
4222                 0, 0, 0, 0,
4223                 /* IPSR16_27_24 [4] */
4224                 IFN_USB30_PWEN, 0, 0, FN_AUDIO_CLKOUT_B,
4225                 FN_SSI_SCK2_B, FN_TS_SDEN1_D, FN_STP_ISEN_1_D, FN_STP_OPWM_0_E,
4226                 FN_RIF3_D0_B, FN_MDATA_B, FN_TCLK2_B, FN_TPU0TO0,
4227                 0, 0, 0, 0,
4228                 /* IPSR16_23_20 [4] */
4229                 IFN_USB1_OVC, 0, FN_MSIOF1_SS2_C, 0,
4230                 FN_SSI_WS1_A, FN_TS_SDAT0_E, FN_STP_ISD_0_E, FN_FMIN_B,
4231                 FN_RIF2_SYNC_B, FN_STMx_B, FN_REMOCON_B, 0,
4232                 0, 0, 0, 0,
4233                 /* IPSR16_19_16 [4] */
4234                 IFN_USB1_PWEN, 0, 0, FN_SIM0_CLK_C,
4235                 FN_SSI_SCK1_A, FN_TS_SCK0_E, FN_STP_ISCLK_0_E, FN_FMCLK_B,
4236                 FN_RIF2_CLK_B, FN_MTSx_B, FN_SPEEDIN_A, FN_VSP_D,
4237                 0, 0, 0, 0,
4238                 /* IPSR16_15_12 [4] */
4239                 IFN_USB0_OVC, 0, 0, FN_SIM0_D_C,
4240                 0, FN_TS_SDAT1_D, FN_STP_ISD_1_D, 0,
4241                 FN_RIF3_SYNC_B, 0, 0, FN_VSP_C,
4242                 0, 0, 0, 0,
4243                 /* IPSR16_11_8 [4] */
4244                 IFN_USB0_PWEN, 0, 0, FN_SIM0_RST_C,
4245                 0, FN_TS_SCK1_D, FN_STP_ISCLK_1_D, FN_BPFCLK_B,
4246                 FN_RIF3_CLK_B, FN_SCKZ_B, 0, 0,
4247                 0, 0, 0, 0,
4248                 /* IPSR16_7_4 [4] */
4249                 IFN_AUDIO_CLKB_B, FN_SCIF_CLK_A, 0, 0,
4250                 FN_DVC_MUTE, 0, FN_STP_IVCXO27_1_D, FN_REMOCON_A,
4251                 0, 0, FN_TCLK1_A, FN_VSP_B,
4252                 0, 0, 0, 0,
4253                 /* IPSR16_3_0 [4] */
4254                 IFN_AUDIO_CLKA_A, 0, 0, 0,
4255                 0, 0, 0, 0,
4256                 0, 0, 0, FN_CC5_OSCOUT,
4257                 0, 0, 0, 0,
4258                 }
4259         },
4260         { PINMUX_CFG_REG_VAR("IPSR17", 0xE6060244, 32,
4261                                 1, 1, 1, 1, 1, 1, 1, 1,
4262                                 1, 1, 1, 1, 1, 1, 1, 1,
4263                                 1, 1, 1, 1, 1, 1, 1, 1,
4264                                 4, 4) {
4265                 /* reserved [31..24] */
4266                 0, 0,
4267                 0, 0,
4268                 0, 0,
4269                 0, 0,
4270                 0, 0,
4271                 0, 0,
4272                 0, 0,
4273                 0, 0,
4274                 /* reserved [23..16] */
4275                 0, 0,
4276                 0, 0,
4277                 0, 0,
4278                 0, 0,
4279                 0, 0,
4280                 0, 0,
4281                 0, 0,
4282                 0, 0,
4283                 /* reserved [15..8] */
4284                 0, 0,
4285                 0, 0,
4286                 0, 0,
4287                 0, 0,
4288                 0, 0,
4289                 0, 0,
4290                 0, 0,
4291                 0, 0,
4292                 /* IPSR17_7_4 [4] */
4293                 IFN_USB31_OVC, 0, 0, FN_AUDIO_CLKOUT3_B,
4294                 FN_SSI_WS9_B, FN_TS_SPSYNC0_E, FN_STP_ISSYNC_0_E, 0,
4295                 FN_RIF2_D1_B, 0, 0, FN_TPU0TO3,
4296                 0, 0, 0, 0,
4297                 /* IPSR17_3_0 [4] */
4298                 IFN_USB31_PWEN, 0, 0, FN_AUDIO_CLKOUT2_B,
4299                 FN_SI_SCK9_B, FN_TS_SDEN0_E, FN_STP_ISEN_0_E, 0,
4300                 FN_RIF2_D0_B, 0, 0, FN_TPU0TO2,
4301                 0, 0, 0, 0,
4302                 }
4303         },
4304         { PINMUX_CFG_REG_VAR("MOD_SEL0", 0xE6060500, 32,
4305                                 1, 2, 2, 3, 1, 1, 2, 1, 1, 1, 2,
4306                                 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1) {
4307                 /* RESERVED [1] */
4308                 0, 0,
4309                 /* SEL_MSIOF3 [2] */
4310                 FN_SEL_MSIOF3_0, FN_SEL_MSIOF3_1,
4311                 FN_SEL_MSIOF3_2, FN_SEL_MSIOF3_3,
4312                 /* SEL_MSIOF2 [2] */
4313                 FN_SEL_MSIOF2_0, FN_SEL_MSIOF2_1,
4314                 FN_SEL_MSIOF2_2, FN_SEL_MSIOF2_3,
4315                 /* SEL_MSIOF1 [3] */
4316                 FN_SEL_MSIOF1_0, FN_SEL_MSIOF1_1,
4317                 FN_SEL_MSIOF1_2, FN_SEL_MSIOF1_3,
4318                 FN_SEL_MSIOF1_4, FN_SEL_MSIOF1_5,
4319                 FN_SEL_MSIOF1_6, 0,
4320                 /* SEL_LBSC [1] */
4321                 FN_SEL_LBSC_0, FN_SEL_LBSC_1,
4322                 /* SEL_IEBUS [1] */
4323                 FN_SEL_IEBUS_0, FN_SEL_IEBUS_1,
4324                 /* SEL_I2C6 [2] */
4325                 FN_SEL_I2C6_0, FN_SEL_I2C6_1,
4326                 FN_SEL_I2C6_2, 0,
4327                 /* SEL_I2C2 [1] */
4328                 FN_SEL_I2C2_0, FN_SEL_I2C2_1,
4329                 /* SEL_I2C1 [1] */
4330                 FN_SEL_I2C1_0, FN_SEL_I2C1_1,
4331                 /* SEL_HSCIF4 [1] */
4332                 FN_SEL_HSCIF4_0, FN_SEL_HSCIF4_1,
4333                 /* SEL_HSCIF3 [2] */
4334                 FN_SEL_HSCIF3_0, FN_SEL_HSCIF3_1,
4335                 FN_SEL_HSCIF3_2, FN_SEL_HSCIF3_3,
4336                 /* SEL_HSCIF2 [1] */
4337                 FN_SEL_HSCIF2_0, FN_SEL_HSCIF2_1,
4338                 /* SEL_HSCIF1 [1] */
4339                 FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
4340                 /* SEL_FSO [1] */
4341                 0, FN_SEL_FSO_1,
4342                 /* SEL_FM [1] */
4343                 FN_SEL_FM_0, FN_SEL_FM_1,
4344                 /* SEL_ETHERAVB [1] */
4345                 FN_SEL_ETHERAVB_0, FN_SEL_ETHERAVB_1,
4346                 /* SEL_DRIF3 [1] */
4347                 FN_SEL_DRIF3_0, FN_SEL_DRIF3_1,
4348                 /* SEL_DRIF2 [1] */
4349                 FN_SEL_DRIF2_0, FN_SEL_DRIF2_1,
4350                 /* SEL_DRIF1 [2] */
4351                 FN_SEL_DRIF1_0, FN_SEL_DRIF1_1,
4352                 FN_SEL_DRIF1_2, 0,
4353                 /* SEL_DRIF0 [2] */
4354                 FN_SEL_DRIF0_0, FN_SEL_DRIF0_1,
4355                 FN_SEL_DRIF0_2, 0,
4356                 /* SEL_CANFD0 [1] */
4357                 FN_SEL_CANFD_0, FN_SEL_CANFD_1,
4358                 /* SEL_ADG [2] */
4359                 FN_SEL_ADG_0, FN_SEL_ADG_1,
4360                 FN_SEL_ADG_2, FN_SEL_ADG_3,
4361                 /* SEL_5LINE [1] */
4362                 FN_SEL_5LINE_0, FN_SEL_5LINE_1,
4363                 }
4364         },
4365         { PINMUX_CFG_REG_VAR("MOD_SEL1", 0xE6060504, 32,
4366                                 2, 3, 1, 2,
4367                                 3, 1, 1, 2, 1,
4368                                 2, 1, 1, 1, 1, 1, 2,
4369                                 1, 1, 1, 1, 1, 1, 1) {
4370                 /* SEL_TSIF1 [2] */
4371                 FN_SEL_TSIF1_0,
4372                 FN_SEL_TSIF1_1,
4373                 FN_SEL_TSIF1_2,
4374                 FN_SEL_TSIF1_3,
4375                 /* SEL_TSIF0 [3] */
4376                 FN_SEL_TSIF0_0,
4377                 FN_SEL_TSIF0_1,
4378                 FN_SEL_TSIF0_2,
4379                 FN_SEL_TSIF0_3,
4380                 FN_SEL_TSIF0_4,
4381                 0,
4382                 0,
4383                 0,
4384                 /* SEL_TIMER_TMU [1] */
4385                 FN_SEL_TIMER_TMU_0,
4386                 FN_SEL_TIMER_TMU_1,
4387                 /* SEL_SSP1_1 [2] */
4388                 FN_SEL_SSP1_1_0,
4389                 FN_SEL_SSP1_1_1,
4390                 FN_SEL_SSP1_1_2,
4391                 FN_SEL_SSP1_1_3,
4392                 /* SEL_SSP1_0 [3] */
4393                 FN_SEL_SSP1_0_0,
4394                 FN_SEL_SSP1_0_1,
4395                 FN_SEL_SSP1_0_2,
4396                 FN_SEL_SSP1_0_3,
4397                 FN_SEL_SSP1_0_4,
4398                 0,
4399                 0,
4400                 0,
4401                 /* SEL_SSI [1] */
4402                 FN_SEL_SSI_0,
4403                 FN_SEL_SSI_1,
4404                 /* SEL_SPEED_PULSE_IF [1] */
4405                 FN_SEL_SPEED_PULSE_IF_0,
4406                 FN_SEL_SPEED_PULSE_IF_1,
4407                 /* SEL_SIMCARD [2] */
4408                 FN_SEL_SIMCARD_0,
4409                 FN_SEL_SIMCARD_1,
4410                 FN_SEL_SIMCARD_2,
4411                 FN_SEL_SIMCARD_3,
4412                 /* SEL_SDHI2 [1] */
4413                 FN_SEL_SDHI2_0,
4414                 FN_SEL_SDHI2_1,
4415                 /* SEL_SCIF4 [2] */
4416                 FN_SEL_SCIF4_0,
4417                 FN_SEL_SCIF4_1,
4418                 FN_SEL_SCIF4_2,
4419                 0,
4420                 /* SEL_SCIF3 [1] */
4421                 FN_SEL_SCIF3_0,
4422                 FN_SEL_SCIF3_1,
4423                 /* SEL_SCIF2 [1] */
4424                 FN_SEL_SCIF2_0,
4425                 FN_SEL_SCIF2_1,
4426                 /* SEL_SCIF1 [1] */
4427                 FN_SEL_SCIF1_0,
4428                 FN_SEL_SCIF1_1,
4429                 /* SEL_SCIF [1] */
4430                 FN_SEL_SCIF_0,
4431                 FN_SEL_SCIF_1,
4432                 /* SEL_REMOCON [1] */
4433                 FN_SEL_REMOCON_0,
4434                 FN_SEL_REMOCON_1,
4435                 /* SEL_RDS [2] */
4436                 FN_SEL_RDS_0,
4437                 FN_SEL_RDS_1,
4438                 FN_SEL_RDS_2,
4439                 0,
4440                 /* SEL_RCAN [1] */
4441                 FN_SEL_RCAN_0,
4442                 FN_SEL_RCAN_1,
4443                 /* SEL_PWM6 [1] */
4444                 FN_SEL_PWM6_0,
4445                 FN_SEL_PWM6_1,
4446                 /* SEL_PWM5 [1] */
4447                 FN_SEL_PWM5_0,
4448                 FN_SEL_PWM5_1,
4449                 /* SEL_PWM4 [1] */
4450                 FN_SEL_PWM4_0,
4451                 FN_SEL_PWM4_1,
4452                 /* SEL_PWM3 [1] */
4453                 FN_SEL_PWM3_0,
4454                 FN_SEL_PWM3_1,
4455                 /* SEL_PWM2 [1] */
4456                 FN_SEL_PWM2_0,
4457                 FN_SEL_PWM2_1,
4458                 /* SEL_PWM1 [1] */
4459                 FN_SEL_PWM1_0,
4460                 FN_SEL_PWM1_1,
4461                 }
4462         },
4463         { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xE6060508, 32,
4464                                 1, 1, 1, 26, 2, 1) {
4465                 /* I2C_SEL_5 [1] */
4466                 FN_I2C_SEL_5_0,
4467                 FN_I2C_SEL_5_1,
4468                 /* I2C_SEL_3 [1] */
4469                 FN_I2C_SEL_3_0,
4470                 FN_I2C_SEL_3_1,
4471                 /* I2C_SEL_0 [1] */
4472                 FN_I2C_SEL_0_0,
4473                 FN_I2C_SEL_0_1,
4474                 /* reserved [26] */
4475                 /* SEL_VSP [2] */
4476                 FN_SEL_VSP_0,
4477                 FN_SEL_VSP_1,
4478                 FN_SEL_VSP_2,
4479                 FN_SEL_VSP_3,
4480                 /* SEL_VIN4 [1] */
4481                 FN_SEL_VIN4_0,
4482                 FN_SEL_VIN4_1,
4483                 }
4484         },
4485
4486         /* under construction */
4487         { PINMUX_CFG_REG("INOUTSEL0", 0xE6050004, 32, 1) {
4488                 0, 0,
4489                 0, 0,
4490                 0, 0,
4491                 0, 0,
4492                 0, 0,
4493                 0, 0,
4494                 0, 0,
4495                 0, 0,
4496
4497                 0, 0,
4498                 0, 0,
4499                 0, 0,
4500                 0, 0,
4501                 0, 0,
4502                 0, 0,
4503                 0, 0,
4504                 0, 0,
4505
4506                 GP_0_15_IN, GP_0_15_OUT,
4507                 GP_0_14_IN, GP_0_14_OUT,
4508                 GP_0_13_IN, GP_0_13_OUT,
4509                 GP_0_12_IN, GP_0_12_OUT,
4510                 GP_0_11_IN, GP_0_11_OUT,
4511                 GP_0_10_IN, GP_0_10_OUT,
4512                 GP_0_9_IN, GP_0_9_OUT,
4513                 GP_0_8_IN, GP_0_8_OUT,
4514                 GP_0_7_IN, GP_0_7_OUT,
4515                 GP_0_6_IN, GP_0_6_OUT,
4516                 GP_0_5_IN, GP_0_5_OUT,
4517                 GP_0_4_IN, GP_0_4_OUT,
4518                 GP_0_3_IN, GP_0_3_OUT,
4519                 GP_0_2_IN, GP_0_2_OUT,
4520                 GP_0_1_IN, GP_0_1_OUT,
4521                 GP_0_0_IN, GP_0_0_OUT,
4522                 }
4523         },
4524         { PINMUX_CFG_REG("INOUTSEL1", 0xE6051004, 32, 1) {
4525                 0, 0,
4526                 0, 0,
4527                 0, 0,
4528                 0, 0,
4529                 GP_1_27_IN, GP_1_27_OUT,
4530                 GP_1_26_IN, GP_1_26_OUT,
4531                 GP_1_25_IN, GP_1_25_OUT,
4532                 GP_1_24_IN, GP_1_24_OUT,
4533                 GP_1_23_IN, GP_1_23_OUT,
4534                 GP_1_22_IN, GP_1_22_OUT,
4535                 GP_1_21_IN, GP_1_21_OUT,
4536                 GP_1_20_IN, GP_1_20_OUT,
4537                 GP_1_19_IN, GP_1_19_OUT,
4538                 GP_1_18_IN, GP_1_18_OUT,
4539                 GP_1_17_IN, GP_1_17_OUT,
4540                 GP_1_16_IN, GP_1_16_OUT,
4541                 GP_1_15_IN, GP_1_15_OUT,
4542                 GP_1_14_IN, GP_1_14_OUT,
4543                 GP_1_13_IN, GP_1_13_OUT,
4544                 GP_1_12_IN, GP_1_12_OUT,
4545                 GP_1_11_IN, GP_1_11_OUT,
4546                 GP_1_10_IN, GP_1_10_OUT,
4547                 GP_1_9_IN, GP_1_9_OUT,
4548                 GP_1_8_IN, GP_1_8_OUT,
4549                 GP_1_7_IN, GP_1_7_OUT,
4550                 GP_1_6_IN, GP_1_6_OUT,
4551                 GP_1_5_IN, GP_1_5_OUT,
4552                 GP_1_4_IN, GP_1_4_OUT,
4553                 GP_1_3_IN, GP_1_3_OUT,
4554                 GP_1_2_IN, GP_1_2_OUT,
4555                 GP_1_1_IN, GP_1_1_OUT,
4556                 GP_1_0_IN, GP_1_0_OUT,
4557                 }
4558         },
4559         { PINMUX_CFG_REG("INOUTSEL2", 0xE6052004, 32, 1) {
4560                 0, 0,
4561                 0, 0,
4562                 0, 0,
4563                 0, 0,
4564                 0, 0,
4565                 0, 0,
4566                 0, 0,
4567                 0, 0,
4568
4569                 0, 0,
4570                 0, 0,
4571                 0, 0,
4572                 0, 0,
4573                 0, 0,
4574                 0, 0,
4575                 0, 0,
4576                 0, 0,
4577
4578                 0, 0,
4579                 GP_2_14_IN, GP_2_14_OUT,
4580                 GP_2_13_IN, GP_2_13_OUT,
4581                 GP_2_12_IN, GP_2_12_OUT,
4582                 GP_2_11_IN, GP_2_11_OUT,
4583                 GP_2_10_IN, GP_2_10_OUT,
4584                 GP_2_9_IN, GP_2_9_OUT,
4585                 GP_2_8_IN, GP_2_8_OUT,
4586                 GP_2_7_IN, GP_2_7_OUT,
4587                 GP_2_6_IN, GP_2_6_OUT,
4588                 GP_2_5_IN, GP_2_5_OUT,
4589                 GP_2_4_IN, GP_2_4_OUT,
4590                 GP_2_3_IN, GP_2_3_OUT,
4591                 GP_2_2_IN, GP_2_2_OUT,
4592                 GP_2_1_IN, GP_2_1_OUT,
4593                 GP_2_0_IN, GP_2_0_OUT,
4594                 }
4595         },
4596         { PINMUX_CFG_REG("INOUTSEL3", 0xE6053004, 32, 1) {
4597                 0, 0,
4598                 0, 0,
4599                 0, 0,
4600                 0, 0,
4601                 0, 0,
4602                 0, 0,
4603                 0, 0,
4604                 0, 0,
4605
4606                 0, 0,
4607                 0, 0,
4608                 0, 0,
4609                 0, 0,
4610                 0, 0,
4611                 0, 0,
4612                 0, 0,
4613                 0, 0,
4614
4615                 GP_3_15_IN, GP_3_15_OUT,
4616                 GP_3_14_IN, GP_3_14_OUT,
4617                 GP_3_13_IN, GP_3_13_OUT,
4618                 GP_3_12_IN, GP_3_12_OUT,
4619                 GP_3_11_IN, GP_3_11_OUT,
4620                 GP_3_10_IN, GP_3_10_OUT,
4621                 GP_3_9_IN, GP_3_9_OUT,
4622                 GP_3_8_IN, GP_3_8_OUT,
4623                 GP_3_7_IN, GP_3_7_OUT,
4624                 GP_3_6_IN, GP_3_6_OUT,
4625                 GP_3_5_IN, GP_3_5_OUT,
4626                 GP_3_4_IN, GP_3_4_OUT,
4627                 GP_3_3_IN, GP_3_3_OUT,
4628                 GP_3_2_IN, GP_3_2_OUT,
4629                 GP_3_1_IN, GP_3_1_OUT,
4630                 GP_3_0_IN, GP_3_0_OUT,
4631                 }
4632         },
4633         { PINMUX_CFG_REG("INOUTSEL4", 0xE6054004, 32, 1) {
4634                 0, 0,
4635                 0, 0,
4636                 0, 0,
4637                 0, 0,
4638                 0, 0,
4639                 0, 0,
4640                 0, 0,
4641                 0, 0,
4642
4643                 0, 0,
4644                 0, 0,
4645                 0, 0,
4646                 0, 0,
4647                 0, 0,
4648                 0, 0,
4649                 GP_4_17_IN, GP_4_17_OUT,
4650                 GP_4_16_IN, GP_4_16_OUT,
4651
4652                 GP_4_15_IN, GP_4_15_OUT,
4653                 GP_4_14_IN, GP_4_14_OUT,
4654                 GP_4_13_IN, GP_4_13_OUT,
4655                 GP_4_12_IN, GP_4_12_OUT,
4656                 GP_4_11_IN, GP_4_11_OUT,
4657                 GP_4_10_IN, GP_4_10_OUT,
4658                 GP_4_9_IN, GP_4_9_OUT,
4659                 GP_4_8_IN, GP_4_8_OUT,
4660                 GP_4_7_IN, GP_4_7_OUT,
4661                 GP_4_6_IN, GP_4_6_OUT,
4662                 GP_4_5_IN, GP_4_5_OUT,
4663                 GP_4_4_IN, GP_4_4_OUT,
4664                 GP_4_3_IN, GP_4_3_OUT,
4665                 GP_4_2_IN, GP_4_2_OUT,
4666                 GP_4_1_IN, GP_4_1_OUT,
4667                 GP_4_0_IN, GP_4_0_OUT,
4668                 }
4669         },
4670         { PINMUX_CFG_REG("INOUTSEL5", 0xE6055004, 32, 1) {
4671                 0, 0,
4672                 0, 0,
4673                 0, 0,
4674                 0, 0,
4675                 0, 0,
4676                 0, 0,
4677                 GP_5_25_IN, GP_5_25_OUT,
4678                 GP_5_24_IN, GP_5_24_OUT,
4679
4680                 GP_5_23_IN, GP_5_23_OUT,
4681                 GP_5_22_IN, GP_5_22_OUT,
4682                 GP_5_21_IN, GP_5_21_OUT,
4683                 GP_5_20_IN, GP_5_20_OUT,
4684                 GP_5_19_IN, GP_5_19_OUT,
4685                 GP_5_18_IN, GP_5_18_OUT,
4686                 GP_5_17_IN, GP_5_17_OUT,
4687                 GP_5_16_IN, GP_5_16_OUT,
4688
4689                 GP_5_15_IN, GP_5_15_OUT,
4690                 GP_5_14_IN, GP_5_14_OUT,
4691                 GP_5_13_IN, GP_5_13_OUT,
4692                 GP_5_12_IN, GP_5_12_OUT,
4693                 GP_5_11_IN, GP_5_11_OUT,
4694                 GP_5_10_IN, GP_5_10_OUT,
4695                 GP_5_9_IN, GP_5_9_OUT,
4696                 GP_5_8_IN, GP_5_8_OUT,
4697                 GP_5_7_IN, GP_5_7_OUT,
4698                 GP_5_6_IN, GP_5_6_OUT,
4699                 GP_5_5_IN, GP_5_5_OUT,
4700                 GP_5_4_IN, GP_5_4_OUT,
4701                 GP_5_3_IN, GP_5_3_OUT,
4702                 GP_5_2_IN, GP_5_2_OUT,
4703                 GP_5_1_IN, GP_5_1_OUT,
4704                 GP_5_0_IN, GP_5_0_OUT,
4705                 }
4706         },
4707         { PINMUX_CFG_REG("INOUTSEL6", 0xE6055404, 32, 1) {
4708                 GP_INOUTSEL(6)
4709                 }
4710         },
4711         { PINMUX_CFG_REG("INOUTSEL7", 0xE6055804, 32, 1) {
4712                 0, 0,
4713                 0, 0,
4714                 0, 0,
4715                 0, 0,
4716                 0, 0,
4717                 0, 0,
4718                 0, 0,
4719                 0, 0,
4720
4721                 0, 0,
4722                 0, 0,
4723                 0, 0,
4724                 0, 0,
4725                 0, 0,
4726                 0, 0,
4727                 0, 0,
4728                 0, 0,
4729
4730                 0, 0,
4731                 0, 0,
4732                 0, 0,
4733                 0, 0,
4734                 0, 0,
4735                 0, 0,
4736                 0, 0,
4737                 0, 0,
4738
4739                 0, 0,
4740                 0, 0,
4741                 0, 0,
4742                 0, 0,
4743                 GP_6_3_IN, GP_6_3_OUT,
4744                 GP_6_2_IN, GP_6_2_OUT,
4745                 GP_6_1_IN, GP_6_1_OUT,
4746                 GP_6_0_IN, GP_6_0_OUT,
4747                 }
4748         },
4749         { },
4750 };
4751
4752 static struct pinmux_data_reg pinmux_data_regs[] = {
4753         /* use OUTDT registers? */
4754         { PINMUX_DATA_REG("INDT0", 0xE6050008, 32) {
4755                 0, 0, 0, 0, 0, 0, 0, 0,
4756                 0, 0, 0, 0, 0, 0, 0, 0,
4757                 GP_0_15_DATA, GP_0_14_DATA, GP_0_13_DATA, GP_0_12_DATA,
4758                 GP_0_11_DATA, GP_0_10_DATA, GP_0_9_DATA, GP_0_8_DATA,
4759                 GP_0_7_DATA, GP_0_6_DATA, GP_0_5_DATA, GP_0_4_DATA,
4760                 GP_0_3_DATA, GP_0_2_DATA, GP_0_1_DATA, GP_0_0_DATA }
4761         },
4762         { PINMUX_DATA_REG("INDT1", 0xE6051008, 32) {
4763                 0, 0, 0, 0,
4764                 GP_1_27_DATA, GP_1_26_DATA, GP_1_25_DATA, GP_1_24_DATA,
4765                 GP_1_23_DATA, GP_1_22_DATA, GP_1_21_DATA, GP_1_20_DATA,
4766                 GP_1_19_DATA, GP_1_18_DATA, GP_1_17_DATA, GP_1_16_DATA,
4767                 GP_1_15_DATA, GP_1_14_DATA, GP_1_13_DATA, GP_1_12_DATA,
4768                 GP_1_11_DATA, GP_1_10_DATA, GP_1_9_DATA, GP_1_8_DATA,
4769                 GP_1_7_DATA, GP_1_6_DATA, GP_1_5_DATA, GP_1_4_DATA,
4770                 GP_1_3_DATA, GP_1_2_DATA, GP_1_1_DATA, GP_1_0_DATA }
4771         },
4772         { PINMUX_DATA_REG("INDT2", 0xE6052008, 32) {
4773                 0, 0, 0, 0, 0, 0, 0, 0,
4774                 0, 0, 0, 0, 0, 0, 0, 0,
4775                 0, GP_2_14_DATA, GP_2_13_DATA, GP_2_12_DATA,
4776                 GP_2_11_DATA, GP_2_10_DATA, GP_2_9_DATA, GP_2_8_DATA,
4777                 GP_2_7_DATA, GP_2_6_DATA, GP_2_5_DATA, GP_2_4_DATA,
4778                 GP_2_3_DATA, GP_2_2_DATA, GP_2_1_DATA, GP_2_0_DATA }
4779         },
4780         { PINMUX_DATA_REG("INDT3", 0xE6053008, 32) {
4781                 0, 0, 0, 0, 0, 0, 0, 0,
4782                 0, 0, 0, 0, 0, 0, 0, 0,
4783                 GP_3_15_DATA, GP_3_14_DATA, GP_3_13_DATA, GP_3_12_DATA,
4784                 GP_3_11_DATA, GP_3_10_DATA, GP_3_9_DATA, GP_3_8_DATA,
4785                 GP_3_7_DATA, GP_3_6_DATA, GP_3_5_DATA, GP_3_4_DATA,
4786                 GP_3_3_DATA, GP_3_2_DATA, GP_3_1_DATA, GP_3_0_DATA }
4787         },
4788         { PINMUX_DATA_REG("INDT4", 0xE6054008, 32) {
4789                 0, 0, 0, 0, 0, 0, 0, 0,
4790                 0, 0, 0, 0, 0, 0, GP_4_17_DATA, GP_4_16_DATA,
4791                 GP_4_15_DATA, GP_4_14_DATA, GP_4_13_DATA, GP_4_12_DATA,
4792                 GP_4_11_DATA, GP_4_10_DATA, GP_4_9_DATA, GP_4_8_DATA,
4793                 GP_4_7_DATA, GP_4_6_DATA, GP_4_5_DATA, GP_4_4_DATA,
4794                 GP_4_3_DATA, GP_4_2_DATA, GP_4_1_DATA, GP_4_0_DATA }
4795         },
4796         { PINMUX_DATA_REG("INDT5", 0xE6055008, 32) {
4797                 0, 0, 0, 0,
4798                 0, 0, GP_5_25_DATA, GP_5_24_DATA,
4799                 GP_5_23_DATA, GP_5_22_DATA, GP_5_21_DATA, GP_5_20_DATA,
4800                 GP_5_19_DATA, GP_5_18_DATA, GP_5_17_DATA, GP_5_16_DATA,
4801                 GP_5_15_DATA, GP_5_14_DATA, GP_5_13_DATA, GP_5_12_DATA,
4802                 GP_5_11_DATA, GP_5_10_DATA, GP_5_9_DATA, GP_5_8_DATA,
4803                 GP_5_7_DATA, GP_5_6_DATA, GP_5_5_DATA, GP_5_4_DATA,
4804                 GP_5_3_DATA, GP_5_2_DATA, GP_5_1_DATA, GP_5_0_DATA }
4805         },
4806         { PINMUX_DATA_REG("INDT6", 0xE6055408, 32) {
4807                 GP_INDT(6) }
4808         },
4809         { PINMUX_DATA_REG("INDT7", 0xE6055808, 32) {
4810                 0, 0, 0, 0, 0, 0, 0, 0,
4811                 0, 0, 0, 0, 0, 0, 0, 0,
4812                 0, 0, 0, 0, 0, 0, 0, 0,
4813                 0, 0, 0, 0,
4814                 GP_7_3_DATA, GP_7_2_DATA, GP_7_1_DATA, GP_7_0_DATA }
4815         },
4816 };
4817
4818 static struct pinmux_info r8a7795_pinmux_info = {
4819         .name = "r8a7795_pfc",
4820
4821         .unlock_reg = 0xe6060000, /* PMMR */
4822
4823         .reserved_id = PINMUX_RESERVED,
4824         .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END },
4825         .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
4826         .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
4827         .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END },
4828         .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
4829
4830         .first_gpio = GPIO_GP_0_0,
4831         .last_gpio = GPIO_FN_TPU0TO3,
4832
4833         .gpios = pinmux_gpios,
4834         .cfg_regs = pinmux_config_regs,
4835         .data_regs = pinmux_data_regs,
4836
4837         .gpio_data = pinmux_data,
4838         .gpio_data_size = ARRAY_SIZE(pinmux_data),
4839 };
4840
4841 void r8a7795_pinmux_init(void)
4842 {
4843         register_pinmux(&r8a7795_pinmux_info);
4844 }