diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:00:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:00:16 -0500 |
commit | 7ae1c76ee5b58fe5bd55a07f99a3359333270b86 (patch) | |
tree | 2e6907d46978dadebdef488c6b5f9bca34023a72 | |
parent | b274776c54c320763bc12eb035c0e244f76ccb43 (diff) | |
parent | 62508a5d25e355cc19c3ade3c3b7dddc6d326cc5 (diff) |
Merge tag 'sh-pinmux' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull sh-mobile pinctrl conversion from Arnd Bergmann:
"This is another cleanup series, containing the move of the Renesas
SH-Mobile pin controller code from arch/arm/mach-shmobile over to the
generic pinctrl subsystem, changing it over to the common interfaces
in the process.
Based on agreement between Olof, Paul Mundt, Linus Walleij and Simon,
we're merging this large branch of pinctrl conversion through arm-soc,
even though it contains the corresponding conversions for arch/sh.
Main reason for this is tight dependencies (that will now mostly be
broken) between the arch/sh and mach-shmobile implementations.
There will be more of this in 3.10 to do device-tree bindings, but
this is the initial conversion."
* tag 'sh-pinmux' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (81 commits)
sh-pfc: sh_pfc_probe() sizeof() fix
sh-pfc: Move sh_pfc.h from include/linux/ to driver directory
sh-pfc: Remove pinmux_info definition
sh: Remove unused sh_pfc_register_info() function
sh: shx3: pinmux: Use driver-provided pinmux info
sh: sh7786: pinmux: Use driver-provided pinmux info
sh: sh7785: pinmux: Use driver-provided pinmux info
sh: sh7757: pinmux: Use driver-provided pinmux info
sh: sh7734: pinmux: Use driver-provided pinmux info
sh: sh7724: pinmux: Use driver-provided pinmux info
sh: sh7723: pinmux: Use driver-provided pinmux info
sh: sh7722: pinmux: Use driver-provided pinmux info
sh: sh7720: pinmux: Use driver-provided pinmux info
sh: sh7269: pinmux: Use driver-provided pinmux info
sh: sh7264: pinmux: Use driver-provided pinmux info
sh: sh7203: pinmux: Use driver-provided pinmux info
ARM: shmobile: sh73a0: Use driver-provided pinmux info
ARM: shmobile: sh7372: Use driver-provided pinmux info
ARM: shmobile: r8a7779: Use driver-provided pinmux info
ARM: shmobile: r8a7740: Use driver-provided pinmux info
...
54 files changed, 21897 insertions, 21520 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c038431f2567..482ba91e73a7 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -698,6 +698,7 @@ config ARCH_SHMOBILE | |||
698 | select MULTI_IRQ_HANDLER | 698 | select MULTI_IRQ_HANDLER |
699 | select NEED_MACH_MEMORY_H | 699 | select NEED_MACH_MEMORY_H |
700 | select NO_IOPORT | 700 | select NO_IOPORT |
701 | select PINCTRL | ||
701 | select PM_GENERIC_DOMAINS if PM | 702 | select PM_GENERIC_DOMAINS if PM |
702 | select SPARSE_IRQ | 703 | select SPARSE_IRQ |
703 | help | 704 | help |
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 0b7147928aa3..a1e931337d41 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile | |||
@@ -19,13 +19,6 @@ smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o | |||
19 | smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o | 19 | smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o |
20 | smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o | 20 | smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o |
21 | 21 | ||
22 | # Pinmux setup | ||
23 | pfc-y := | ||
24 | pfc-$(CONFIG_ARCH_SH7372) += pfc-sh7372.o | ||
25 | pfc-$(CONFIG_ARCH_SH73A0) += pfc-sh73a0.o | ||
26 | pfc-$(CONFIG_ARCH_R8A7740) += pfc-r8a7740.o | ||
27 | pfc-$(CONFIG_ARCH_R8A7779) += pfc-r8a7779.o | ||
28 | |||
29 | # IRQ objects | 22 | # IRQ objects |
30 | obj-$(CONFIG_ARCH_SH7372) += entry-intc.o | 23 | obj-$(CONFIG_ARCH_SH7372) += entry-intc.o |
31 | obj-$(CONFIG_ARCH_R8A7740) += entry-intc.o | 24 | obj-$(CONFIG_ARCH_R8A7740) += entry-intc.o |
@@ -51,4 +44,3 @@ obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o | |||
51 | 44 | ||
52 | # Framework support | 45 | # Framework support |
53 | obj-$(CONFIG_SMP) += $(smp-y) | 46 | obj-$(CONFIG_SMP) += $(smp-y) |
54 | obj-$(CONFIG_GENERIC_GPIO) += $(pfc-y) | ||
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 03c69f9979aa..b580979923eb 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c | |||
@@ -68,6 +68,32 @@ void __init r8a7740_map_io(void) | |||
68 | iotable_init(r8a7740_io_desc, ARRAY_SIZE(r8a7740_io_desc)); | 68 | iotable_init(r8a7740_io_desc, ARRAY_SIZE(r8a7740_io_desc)); |
69 | } | 69 | } |
70 | 70 | ||
71 | /* PFC */ | ||
72 | static struct resource r8a7740_pfc_resources[] = { | ||
73 | [0] = { | ||
74 | .start = 0xe6050000, | ||
75 | .end = 0xe6057fff, | ||
76 | .flags = IORESOURCE_MEM, | ||
77 | }, | ||
78 | [1] = { | ||
79 | .start = 0xe605800c, | ||
80 | .end = 0xe605802b, | ||
81 | .flags = IORESOURCE_MEM, | ||
82 | } | ||
83 | }; | ||
84 | |||
85 | static struct platform_device r8a7740_pfc_device = { | ||
86 | .name = "pfc-r8a7740", | ||
87 | .id = -1, | ||
88 | .resource = r8a7740_pfc_resources, | ||
89 | .num_resources = ARRAY_SIZE(r8a7740_pfc_resources), | ||
90 | }; | ||
91 | |||
92 | void __init r8a7740_pinmux_init(void) | ||
93 | { | ||
94 | platform_device_register(&r8a7740_pfc_device); | ||
95 | } | ||
96 | |||
71 | /* SCIFA0 */ | 97 | /* SCIFA0 */ |
72 | static struct plat_sci_port scif0_platform_data = { | 98 | static struct plat_sci_port scif0_platform_data = { |
73 | .mapbase = 0xe6c40000, | 99 | .mapbase = 0xe6c40000, |
diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index a181ced09e45..344eb79658f9 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c | |||
@@ -60,6 +60,31 @@ void __init r8a7779_map_io(void) | |||
60 | iotable_init(r8a7779_io_desc, ARRAY_SIZE(r8a7779_io_desc)); | 60 | iotable_init(r8a7779_io_desc, ARRAY_SIZE(r8a7779_io_desc)); |
61 | } | 61 | } |
62 | 62 | ||
63 | static struct resource r8a7779_pfc_resources[] = { | ||
64 | [0] = { | ||
65 | .start = 0xfffc0000, | ||
66 | .end = 0xfffc023b, | ||
67 | .flags = IORESOURCE_MEM, | ||
68 | }, | ||
69 | [1] = { | ||
70 | .start = 0xffc40000, | ||
71 | .end = 0xffc46fff, | ||
72 | .flags = IORESOURCE_MEM, | ||
73 | } | ||
74 | }; | ||
75 | |||
76 | static struct platform_device r8a7779_pfc_device = { | ||
77 | .name = "pfc-r8a7779", | ||
78 | .id = -1, | ||
79 | .resource = r8a7779_pfc_resources, | ||
80 | .num_resources = ARRAY_SIZE(r8a7779_pfc_resources), | ||
81 | }; | ||
82 | |||
83 | void __init r8a7779_pinmux_init(void) | ||
84 | { | ||
85 | platform_device_register(&r8a7779_pfc_device); | ||
86 | } | ||
87 | |||
63 | static struct plat_sci_port scif0_platform_data = { | 88 | static struct plat_sci_port scif0_platform_data = { |
64 | .mapbase = 0xffe40000, | 89 | .mapbase = 0xffe40000, |
65 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 90 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index 191ae72e21ba..d2079d5e3334 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c | |||
@@ -60,6 +60,32 @@ void __init sh7372_map_io(void) | |||
60 | iotable_init(sh7372_io_desc, ARRAY_SIZE(sh7372_io_desc)); | 60 | iotable_init(sh7372_io_desc, ARRAY_SIZE(sh7372_io_desc)); |
61 | } | 61 | } |
62 | 62 | ||
63 | /* PFC */ | ||
64 | static struct resource sh7372_pfc_resources[] = { | ||
65 | [0] = { | ||
66 | .start = 0xe6050000, | ||
67 | .end = 0xe6057fff, | ||
68 | .flags = IORESOURCE_MEM, | ||
69 | }, | ||
70 | [1] = { | ||
71 | .start = 0xe605800c, | ||
72 | .end = 0xe6058027, | ||
73 | .flags = IORESOURCE_MEM, | ||
74 | } | ||
75 | }; | ||
76 | |||
77 | static struct platform_device sh7372_pfc_device = { | ||
78 | .name = "pfc-sh7372", | ||
79 | .id = -1, | ||
80 | .resource = sh7372_pfc_resources, | ||
81 | .num_resources = ARRAY_SIZE(sh7372_pfc_resources), | ||
82 | }; | ||
83 | |||
84 | void __init sh7372_pinmux_init(void) | ||
85 | { | ||
86 | platform_device_register(&sh7372_pfc_device); | ||
87 | } | ||
88 | |||
63 | /* SCIFA0 */ | 89 | /* SCIFA0 */ |
64 | static struct plat_sci_port scif0_platform_data = { | 90 | static struct plat_sci_port scif0_platform_data = { |
65 | .mapbase = 0xe6c40000, | 91 | .mapbase = 0xe6c40000, |
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 8c2d6424f470..48f7f583647a 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c | |||
@@ -57,6 +57,31 @@ void __init sh73a0_map_io(void) | |||
57 | iotable_init(sh73a0_io_desc, ARRAY_SIZE(sh73a0_io_desc)); | 57 | iotable_init(sh73a0_io_desc, ARRAY_SIZE(sh73a0_io_desc)); |
58 | } | 58 | } |
59 | 59 | ||
60 | static struct resource sh73a0_pfc_resources[] = { | ||
61 | [0] = { | ||
62 | .start = 0xe6050000, | ||
63 | .end = 0xe6057fff, | ||
64 | .flags = IORESOURCE_MEM, | ||
65 | }, | ||
66 | [1] = { | ||
67 | .start = 0xe605801c, | ||
68 | .end = 0xe6058027, | ||
69 | .flags = IORESOURCE_MEM, | ||
70 | } | ||
71 | }; | ||
72 | |||
73 | static struct platform_device sh73a0_pfc_device = { | ||
74 | .name = "pfc-sh73a0", | ||
75 | .id = -1, | ||
76 | .resource = sh73a0_pfc_resources, | ||
77 | .num_resources = ARRAY_SIZE(sh73a0_pfc_resources), | ||
78 | }; | ||
79 | |||
80 | void __init sh73a0_pinmux_init(void) | ||
81 | { | ||
82 | platform_device_register(&sh73a0_pfc_device); | ||
83 | } | ||
84 | |||
60 | static struct plat_sci_port scif0_platform_data = { | 85 | static struct plat_sci_port scif0_platform_data = { |
61 | .mapbase = 0xe6c40000, | 86 | .mapbase = 0xe6c40000, |
62 | .flags = UPF_BOOT_AUTOCONF, | 87 | .flags = UPF_BOOT_AUTOCONF, |
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 87f720037ff7..479146c180cb 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -272,6 +272,7 @@ config CPU_SUBTYPE_SH7203 | |||
272 | select SYS_SUPPORTS_CMT | 272 | select SYS_SUPPORTS_CMT |
273 | select SYS_SUPPORTS_MTU2 | 273 | select SYS_SUPPORTS_MTU2 |
274 | select ARCH_WANT_OPTIONAL_GPIOLIB | 274 | select ARCH_WANT_OPTIONAL_GPIOLIB |
275 | select PINCTRL | ||
275 | 276 | ||
276 | config CPU_SUBTYPE_SH7206 | 277 | config CPU_SUBTYPE_SH7206 |
277 | bool "Support SH7206 processor" | 278 | bool "Support SH7206 processor" |
@@ -292,6 +293,7 @@ config CPU_SUBTYPE_SH7264 | |||
292 | select CPU_HAS_FPU | 293 | select CPU_HAS_FPU |
293 | select SYS_SUPPORTS_CMT | 294 | select SYS_SUPPORTS_CMT |
294 | select SYS_SUPPORTS_MTU2 | 295 | select SYS_SUPPORTS_MTU2 |
296 | select PINCTRL | ||
295 | 297 | ||
296 | config CPU_SUBTYPE_SH7269 | 298 | config CPU_SUBTYPE_SH7269 |
297 | bool "Support SH7269 processor" | 299 | bool "Support SH7269 processor" |
@@ -299,6 +301,7 @@ config CPU_SUBTYPE_SH7269 | |||
299 | select CPU_HAS_FPU | 301 | select CPU_HAS_FPU |
300 | select SYS_SUPPORTS_CMT | 302 | select SYS_SUPPORTS_CMT |
301 | select SYS_SUPPORTS_MTU2 | 303 | select SYS_SUPPORTS_MTU2 |
304 | select PINCTRL | ||
302 | 305 | ||
303 | config CPU_SUBTYPE_MXG | 306 | config CPU_SUBTYPE_MXG |
304 | bool "Support MX-G processor" | 307 | bool "Support MX-G processor" |
@@ -360,6 +363,7 @@ config CPU_SUBTYPE_SH7720 | |||
360 | select ARCH_WANT_OPTIONAL_GPIOLIB | 363 | select ARCH_WANT_OPTIONAL_GPIOLIB |
361 | select USB_ARCH_HAS_OHCI | 364 | select USB_ARCH_HAS_OHCI |
362 | select USB_OHCI_SH if USB_OHCI_HCD | 365 | select USB_OHCI_SH if USB_OHCI_HCD |
366 | select PINCTRL | ||
363 | help | 367 | help |
364 | Select SH7720 if you have a SH3-DSP SH7720 CPU. | 368 | Select SH7720 if you have a SH3-DSP SH7720 CPU. |
365 | 369 | ||
@@ -425,6 +429,7 @@ config CPU_SUBTYPE_SH7723 | |||
425 | select ARCH_SPARSEMEM_ENABLE | 429 | select ARCH_SPARSEMEM_ENABLE |
426 | select SYS_SUPPORTS_CMT | 430 | select SYS_SUPPORTS_CMT |
427 | select ARCH_WANT_OPTIONAL_GPIOLIB | 431 | select ARCH_WANT_OPTIONAL_GPIOLIB |
432 | select PINCTRL | ||
428 | help | 433 | help |
429 | Select SH7723 if you have an SH-MobileR2 CPU. | 434 | Select SH7723 if you have an SH-MobileR2 CPU. |
430 | 435 | ||
@@ -436,6 +441,7 @@ config CPU_SUBTYPE_SH7724 | |||
436 | select ARCH_SPARSEMEM_ENABLE | 441 | select ARCH_SPARSEMEM_ENABLE |
437 | select SYS_SUPPORTS_CMT | 442 | select SYS_SUPPORTS_CMT |
438 | select ARCH_WANT_OPTIONAL_GPIOLIB | 443 | select ARCH_WANT_OPTIONAL_GPIOLIB |
444 | select PINCTRL | ||
439 | help | 445 | help |
440 | Select SH7724 if you have an SH-MobileR2R CPU. | 446 | Select SH7724 if you have an SH-MobileR2R CPU. |
441 | 447 | ||
@@ -446,6 +452,7 @@ config CPU_SUBTYPE_SH7734 | |||
446 | select ARCH_WANT_OPTIONAL_GPIOLIB | 452 | select ARCH_WANT_OPTIONAL_GPIOLIB |
447 | select USB_ARCH_HAS_OHCI | 453 | select USB_ARCH_HAS_OHCI |
448 | select USB_ARCH_HAS_EHCI | 454 | select USB_ARCH_HAS_EHCI |
455 | select PINCTRL | ||
449 | help | 456 | help |
450 | Select SH7734 if you have a SH4A SH7734 CPU. | 457 | Select SH7734 if you have a SH4A SH7734 CPU. |
451 | 458 | ||
@@ -456,6 +463,7 @@ config CPU_SUBTYPE_SH7757 | |||
456 | select ARCH_WANT_OPTIONAL_GPIOLIB | 463 | select ARCH_WANT_OPTIONAL_GPIOLIB |
457 | select USB_ARCH_HAS_OHCI | 464 | select USB_ARCH_HAS_OHCI |
458 | select USB_ARCH_HAS_EHCI | 465 | select USB_ARCH_HAS_EHCI |
466 | select PINCTRL | ||
459 | help | 467 | help |
460 | Select SH7757 if you have a SH4A SH7757 CPU. | 468 | Select SH7757 if you have a SH4A SH7757 CPU. |
461 | 469 | ||
@@ -482,6 +490,7 @@ config CPU_SUBTYPE_SH7785 | |||
482 | select ARCH_SPARSEMEM_ENABLE | 490 | select ARCH_SPARSEMEM_ENABLE |
483 | select SYS_SUPPORTS_NUMA | 491 | select SYS_SUPPORTS_NUMA |
484 | select ARCH_WANT_OPTIONAL_GPIOLIB | 492 | select ARCH_WANT_OPTIONAL_GPIOLIB |
493 | select PINCTRL | ||
485 | 494 | ||
486 | config CPU_SUBTYPE_SH7786 | 495 | config CPU_SUBTYPE_SH7786 |
487 | bool "Support SH7786 processor" | 496 | bool "Support SH7786 processor" |
@@ -494,6 +503,7 @@ config CPU_SUBTYPE_SH7786 | |||
494 | select USB_OHCI_SH if USB_OHCI_HCD | 503 | select USB_OHCI_SH if USB_OHCI_HCD |
495 | select USB_ARCH_HAS_EHCI | 504 | select USB_ARCH_HAS_EHCI |
496 | select USB_EHCI_SH if USB_EHCI_HCD | 505 | select USB_EHCI_SH if USB_EHCI_HCD |
506 | select PINCTRL | ||
497 | 507 | ||
498 | config CPU_SUBTYPE_SHX3 | 508 | config CPU_SUBTYPE_SHX3 |
499 | bool "Support SH-X3 processor" | 509 | bool "Support SH-X3 processor" |
@@ -501,6 +511,7 @@ config CPU_SUBTYPE_SHX3 | |||
501 | select CPU_SHX3 | 511 | select CPU_SHX3 |
502 | select GENERIC_CLOCKEVENTS_BROADCAST if SMP | 512 | select GENERIC_CLOCKEVENTS_BROADCAST if SMP |
503 | select ARCH_REQUIRE_GPIOLIB | 513 | select ARCH_REQUIRE_GPIOLIB |
514 | select PINCTRL | ||
504 | 515 | ||
505 | # SH4AL-DSP Processor Support | 516 | # SH4AL-DSP Processor Support |
506 | 517 | ||
@@ -519,6 +530,7 @@ config CPU_SUBTYPE_SH7722 | |||
519 | select SYS_SUPPORTS_NUMA | 530 | select SYS_SUPPORTS_NUMA |
520 | select SYS_SUPPORTS_CMT | 531 | select SYS_SUPPORTS_CMT |
521 | select ARCH_WANT_OPTIONAL_GPIOLIB | 532 | select ARCH_WANT_OPTIONAL_GPIOLIB |
533 | select PINCTRL | ||
522 | 534 | ||
523 | config CPU_SUBTYPE_SH7366 | 535 | config CPU_SUBTYPE_SH7366 |
524 | bool "Support SH7366 processor" | 536 | bool "Support SH7366 processor" |
diff --git a/arch/sh/include/asm/gpio.h b/arch/sh/include/asm/gpio.h index 04f53d31489f..7dfe15e2e990 100644 --- a/arch/sh/include/asm/gpio.h +++ b/arch/sh/include/asm/gpio.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | #define ARCH_NR_GPIOS 512 | 22 | #define ARCH_NR_GPIOS 512 |
23 | #include <linux/sh_pfc.h> | 23 | #include <asm-generic/gpio.h> |
24 | 24 | ||
25 | #ifdef CONFIG_GPIOLIB | 25 | #ifdef CONFIG_GPIOLIB |
26 | 26 | ||
diff --git a/arch/sh/include/cpu-common/cpu/pfc.h b/arch/sh/include/cpu-common/cpu/pfc.h new file mode 100644 index 000000000000..e538813286a8 --- /dev/null +++ b/arch/sh/include/cpu-common/cpu/pfc.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * SH Pin Function Control Initialization | ||
3 | * | ||
4 | * Copyright (C) 2012 Renesas Solutions Corp. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | ||
15 | |||
16 | #ifndef __ARCH_SH_CPU_PFC_H__ | ||
17 | #define __ARCH_SH_CPU_PFC_H__ | ||
18 | |||
19 | #include <linux/types.h> | ||
20 | |||
21 | struct resource; | ||
22 | |||
23 | int sh_pfc_register(const char *name, | ||
24 | struct resource *resource, u32 num_resources); | ||
25 | |||
26 | #endif /* __ARCH_SH_CPU_PFC_H__ */ | ||
diff --git a/arch/sh/include/cpu-sh4/cpu/sh7723.h b/arch/sh/include/cpu-sh4/cpu/sh7723.h index 6fae50cb1e94..668da89bdac4 100644 --- a/arch/sh/include/cpu-sh4/cpu/sh7723.h +++ b/arch/sh/include/cpu-sh4/cpu/sh7723.h | |||
@@ -184,7 +184,7 @@ enum { | |||
184 | /* SIUA */ | 184 | /* SIUA */ |
185 | GPIO_FN_SIUAFCK, GPIO_FN_SIUAILR, GPIO_FN_SIUAIBT, GPIO_FN_SIUAISLD, | 185 | GPIO_FN_SIUAFCK, GPIO_FN_SIUAILR, GPIO_FN_SIUAIBT, GPIO_FN_SIUAISLD, |
186 | GPIO_FN_SIUAOLR, GPIO_FN_SIUAOBT, GPIO_FN_SIUAOSLD, GPIO_FN_SIUAMCK, | 186 | GPIO_FN_SIUAOLR, GPIO_FN_SIUAOBT, GPIO_FN_SIUAOSLD, GPIO_FN_SIUAMCK, |
187 | GPIO_FN_SIUAISPD, GPIO_FN_SIUOSPD, | 187 | GPIO_FN_SIUAISPD, GPIO_FN_SIUAOSPD, |
188 | 188 | ||
189 | /* SIUB */ | 189 | /* SIUB */ |
190 | GPIO_FN_SIUBFCK, GPIO_FN_SIUBILR, GPIO_FN_SIUBIBT, GPIO_FN_SIUBISLD, | 190 | GPIO_FN_SIUBFCK, GPIO_FN_SIUBILR, GPIO_FN_SIUBIBT, GPIO_FN_SIUBISLD, |
diff --git a/arch/sh/include/cpu-sh4/cpu/sh7786.h b/arch/sh/include/cpu-sh4/cpu/sh7786.h index 977862f9072a..0df09e638f09 100644 --- a/arch/sh/include/cpu-sh4/cpu/sh7786.h +++ b/arch/sh/include/cpu-sh4/cpu/sh7786.h | |||
@@ -32,16 +32,14 @@ enum { | |||
32 | GPIO_PD3, GPIO_PD2, GPIO_PD1, GPIO_PD0, | 32 | GPIO_PD3, GPIO_PD2, GPIO_PD1, GPIO_PD0, |
33 | 33 | ||
34 | /* PE */ | 34 | /* PE */ |
35 | GPIO_PE5, GPIO_PE4, GPIO_PE3, GPIO_PE2, | 35 | GPIO_PE7, GPIO_PE6, |
36 | GPIO_PE1, GPIO_PE0, | ||
37 | 36 | ||
38 | /* PF */ | 37 | /* PF */ |
39 | GPIO_PF7, GPIO_PF6, GPIO_PF5, GPIO_PF4, | 38 | GPIO_PF7, GPIO_PF6, GPIO_PF5, GPIO_PF4, |
40 | GPIO_PF3, GPIO_PF2, GPIO_PF1, GPIO_PF0, | 39 | GPIO_PF3, GPIO_PF2, GPIO_PF1, GPIO_PF0, |
41 | 40 | ||
42 | /* PG */ | 41 | /* PG */ |
43 | GPIO_PG7, GPIO_PG6, GPIO_PG5, GPIO_PG4, | 42 | GPIO_PG7, GPIO_PG6, GPIO_PG5, |
44 | GPIO_PG3, GPIO_PG2, GPIO_PG1, GPIO_PG0, | ||
45 | 43 | ||
46 | /* PH */ | 44 | /* PH */ |
47 | GPIO_PH7, GPIO_PH6, GPIO_PH5, GPIO_PH4, | 45 | GPIO_PH7, GPIO_PH6, GPIO_PH5, GPIO_PH4, |
@@ -49,7 +47,7 @@ enum { | |||
49 | 47 | ||
50 | /* PJ */ | 48 | /* PJ */ |
51 | GPIO_PJ7, GPIO_PJ6, GPIO_PJ5, GPIO_PJ4, | 49 | GPIO_PJ7, GPIO_PJ6, GPIO_PJ5, GPIO_PJ4, |
52 | GPIO_PJ3, GPIO_PJ2, GPIO_PJ1, GPIO_PJ0, | 50 | GPIO_PJ3, GPIO_PJ2, GPIO_PJ1, |
53 | 51 | ||
54 | /* DU */ | 52 | /* DU */ |
55 | GPIO_FN_DCLKIN, GPIO_FN_DCLKOUT, GPIO_FN_ODDF, | 53 | GPIO_FN_DCLKIN, GPIO_FN_DCLKOUT, GPIO_FN_ODDF, |
diff --git a/arch/sh/kernel/cpu/Makefile b/arch/sh/kernel/cpu/Makefile index fa58bfd30d82..accc7ca722e1 100644 --- a/arch/sh/kernel/cpu/Makefile +++ b/arch/sh/kernel/cpu/Makefile | |||
@@ -18,4 +18,4 @@ obj-$(CONFIG_ARCH_SHMOBILE) += shmobile/ | |||
18 | obj-$(CONFIG_SH_ADC) += adc.o | 18 | obj-$(CONFIG_SH_ADC) += adc.o |
19 | obj-$(CONFIG_SH_CLK_CPG_LEGACY) += clock-cpg.o | 19 | obj-$(CONFIG_SH_CLK_CPG_LEGACY) += clock-cpg.o |
20 | 20 | ||
21 | obj-y += irq/ init.o clock.o fpu.o proc.o | 21 | obj-y += irq/ init.o clock.o fpu.o pfc.o proc.o |
diff --git a/arch/sh/kernel/cpu/pfc.c b/arch/sh/kernel/cpu/pfc.c new file mode 100644 index 000000000000..d766564ef7c2 --- /dev/null +++ b/arch/sh/kernel/cpu/pfc.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * SH Pin Function Control Initialization | ||
3 | * | ||
4 | * Copyright (C) 2012 Renesas Solutions Corp. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | ||
15 | |||
16 | #include <linux/init.h> | ||
17 | #include <linux/platform_device.h> | ||
18 | |||
19 | #include <cpu/pfc.h> | ||
20 | |||
21 | static struct platform_device sh_pfc_device = { | ||
22 | .id = -1, | ||
23 | }; | ||
24 | |||
25 | int __init sh_pfc_register(const char *name, | ||
26 | struct resource *resource, u32 num_resources) | ||
27 | { | ||
28 | sh_pfc_device.name = name; | ||
29 | sh_pfc_device.num_resources = num_resources; | ||
30 | sh_pfc_device.resource = resource; | ||
31 | |||
32 | return platform_device_register(&sh_pfc_device); | ||
33 | } | ||
diff --git a/arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c b/arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c index c465af7283fc..96c6c2634cb4 100644 --- a/arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c +++ b/arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c | |||
@@ -10,1588 +10,10 @@ | |||
10 | 10 | ||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/gpio.h> | 13 | #include <cpu/pfc.h> |
14 | #include <cpu/sh7203.h> | ||
15 | |||
16 | enum { | ||
17 | PINMUX_RESERVED = 0, | ||
18 | |||
19 | PINMUX_DATA_BEGIN, | ||
20 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
21 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
22 | PB12_DATA, | ||
23 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
24 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
25 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, | ||
26 | PC14_DATA, PC13_DATA, PC12_DATA, | ||
27 | PC11_DATA, PC10_DATA, PC9_DATA, PC8_DATA, | ||
28 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
29 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
30 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
31 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
32 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
33 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
34 | PE15_DATA, PE14_DATA, PE13_DATA, PE12_DATA, | ||
35 | PE11_DATA, PE10_DATA, PE9_DATA, PE8_DATA, | ||
36 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
37 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
38 | PF30_DATA, PF29_DATA, PF28_DATA, | ||
39 | PF27_DATA, PF26_DATA, PF25_DATA, PF24_DATA, | ||
40 | PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA, | ||
41 | PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA, | ||
42 | PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA, | ||
43 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
44 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
45 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
46 | PINMUX_DATA_END, | ||
47 | |||
48 | PINMUX_INPUT_BEGIN, | ||
49 | FORCE_IN, | ||
50 | PA7_IN, PA6_IN, PA5_IN, PA4_IN, | ||
51 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
52 | PB11_IN, PB10_IN, PB9_IN, PB8_IN, | ||
53 | PC14_IN, PC13_IN, PC12_IN, | ||
54 | PC11_IN, PC10_IN, PC9_IN, PC8_IN, | ||
55 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
56 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
57 | PD15_IN, PD14_IN, PD13_IN, PD12_IN, | ||
58 | PD11_IN, PD10_IN, PD9_IN, PD8_IN, | ||
59 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
60 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
61 | PE15_IN, PE14_IN, PE13_IN, PE12_IN, | ||
62 | PE11_IN, PE10_IN, PE9_IN, PE8_IN, | ||
63 | PE7_IN, PE6_IN, PE5_IN, PE4_IN, | ||
64 | PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
65 | PF30_IN, PF29_IN, PF28_IN, | ||
66 | PF27_IN, PF26_IN, PF25_IN, PF24_IN, | ||
67 | PF23_IN, PF22_IN, PF21_IN, PF20_IN, | ||
68 | PF19_IN, PF18_IN, PF17_IN, PF16_IN, | ||
69 | PF15_IN, PF14_IN, PF13_IN, PF12_IN, | ||
70 | PF11_IN, PF10_IN, PF9_IN, PF8_IN, | ||
71 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
72 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
73 | PINMUX_INPUT_END, | ||
74 | |||
75 | PINMUX_OUTPUT_BEGIN, | ||
76 | FORCE_OUT, | ||
77 | PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT, | ||
78 | PC14_OUT, PC13_OUT, PC12_OUT, | ||
79 | PC11_OUT, PC10_OUT, PC9_OUT, PC8_OUT, | ||
80 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
81 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
82 | PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT, | ||
83 | PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT, | ||
84 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
85 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
86 | PE15_OUT, PE14_OUT, PE13_OUT, PE12_OUT, | ||
87 | PE11_OUT, PE10_OUT, PE9_OUT, PE8_OUT, | ||
88 | PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT, | ||
89 | PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
90 | PF30_OUT, PF29_OUT, PF28_OUT, | ||
91 | PF27_OUT, PF26_OUT, PF25_OUT, PF24_OUT, | ||
92 | PF23_OUT, PF22_OUT, PF21_OUT, PF20_OUT, | ||
93 | PF19_OUT, PF18_OUT, PF17_OUT, PF16_OUT, | ||
94 | PF15_OUT, PF14_OUT, PF13_OUT, PF12_OUT, | ||
95 | PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT, | ||
96 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
97 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
98 | PINMUX_OUTPUT_END, | ||
99 | |||
100 | PINMUX_FUNCTION_BEGIN, | ||
101 | PB11_IOR_IN, PB11_IOR_OUT, | ||
102 | PB10_IOR_IN, PB10_IOR_OUT, | ||
103 | PB9_IOR_IN, PB9_IOR_OUT, | ||
104 | PB8_IOR_IN, PB8_IOR_OUT, | ||
105 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, | ||
106 | PB11MD_0, PB11MD_1, | ||
107 | PB10MD_0, PB10MD_1, | ||
108 | PB9MD_00, PB9MD_01, PB9MD_10, | ||
109 | PB8MD_00, PB8MD_01, PB8MD_10, | ||
110 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, | ||
111 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, | ||
112 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, | ||
113 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, | ||
114 | PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, | ||
115 | PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, | ||
116 | PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, | ||
117 | PB0MD_00, PB0MD_01, PB0MD_10, PB0MD_11, | ||
118 | |||
119 | PB12IRQ_00, PB12IRQ_01, PB12IRQ_10, | ||
120 | |||
121 | PC14MD_0, PC14MD_1, | ||
122 | PC13MD_0, PC13MD_1, | ||
123 | PC12MD_0, PC12MD_1, | ||
124 | PC11MD_00, PC11MD_01, PC11MD_10, | ||
125 | PC10MD_00, PC10MD_01, PC10MD_10, | ||
126 | PC9MD_0, PC9MD_1, | ||
127 | PC8MD_0, PC8MD_1, | ||
128 | PC7MD_0, PC7MD_1, | ||
129 | PC6MD_0, PC6MD_1, | ||
130 | PC5MD_0, PC5MD_1, | ||
131 | PC4MD_0, PC4MD_1, | ||
132 | PC3MD_0, PC3MD_1, | ||
133 | PC2MD_0, PC2MD_1, | ||
134 | PC1MD_0, PC1MD_1, | ||
135 | PC0MD_00, PC0MD_01, PC0MD_10, | ||
136 | |||
137 | PD15MD_000, PD15MD_001, PD15MD_010, PD15MD_100, PD15MD_101, | ||
138 | PD14MD_000, PD14MD_001, PD14MD_010, PD14MD_101, | ||
139 | PD13MD_000, PD13MD_001, PD13MD_010, PD13MD_100, PD13MD_101, | ||
140 | PD12MD_000, PD12MD_001, PD12MD_010, PD12MD_100, PD12MD_101, | ||
141 | PD11MD_000, PD11MD_001, PD11MD_010, PD11MD_100, PD11MD_101, | ||
142 | PD10MD_000, PD10MD_001, PD10MD_010, PD10MD_100, PD10MD_101, | ||
143 | PD9MD_000, PD9MD_001, PD9MD_010, PD9MD_100, PD9MD_101, | ||
144 | PD8MD_000, PD8MD_001, PD8MD_010, PD8MD_100, PD8MD_101, | ||
145 | PD7MD_000, PD7MD_001, PD7MD_010, PD7MD_011, PD7MD_100, PD7MD_101, | ||
146 | PD6MD_000, PD6MD_001, PD6MD_010, PD6MD_011, PD6MD_100, PD6MD_101, | ||
147 | PD5MD_000, PD5MD_001, PD5MD_010, PD5MD_011, PD5MD_100, PD5MD_101, | ||
148 | PD4MD_000, PD4MD_001, PD4MD_010, PD4MD_011, PD4MD_100, PD4MD_101, | ||
149 | PD3MD_000, PD3MD_001, PD3MD_010, PD3MD_011, PD3MD_100, PD3MD_101, | ||
150 | PD2MD_000, PD2MD_001, PD2MD_010, PD2MD_011, PD2MD_100, PD2MD_101, | ||
151 | PD1MD_000, PD1MD_001, PD1MD_010, PD1MD_011, PD1MD_100, PD1MD_101, | ||
152 | PD0MD_000, PD0MD_001, PD0MD_010, PD0MD_011, PD0MD_100, PD0MD_101, | ||
153 | |||
154 | PE15MD_00, PE15MD_01, PE15MD_11, | ||
155 | PE14MD_00, PE14MD_01, PE14MD_11, | ||
156 | PE13MD_00, PE13MD_11, | ||
157 | PE12MD_00, PE12MD_11, | ||
158 | PE11MD_000, PE11MD_001, PE11MD_010, PE11MD_100, | ||
159 | PE10MD_000, PE10MD_001, PE10MD_010, PE10MD_100, | ||
160 | PE9MD_00, PE9MD_01, PE9MD_10, PE9MD_11, | ||
161 | PE8MD_00, PE8MD_01, PE8MD_10, PE8MD_11, | ||
162 | PE7MD_000, PE7MD_001, PE7MD_010, PE7MD_011, PE7MD_100, | ||
163 | PE6MD_000, PE6MD_001, PE6MD_010, PE6MD_011, PE6MD_100, | ||
164 | PE5MD_000, PE5MD_001, PE5MD_010, PE5MD_011, PE5MD_100, | ||
165 | PE4MD_000, PE4MD_001, PE4MD_010, PE4MD_011, PE4MD_100, | ||
166 | PE3MD_00, PE3MD_01, PE3MD_11, | ||
167 | PE2MD_00, PE2MD_01, PE2MD_11, | ||
168 | PE1MD_00, PE1MD_01, PE1MD_10, PE1MD_11, | ||
169 | PE0MD_000, PE0MD_001, PE0MD_011, PE0MD_100, | ||
170 | |||
171 | PF30MD_0, PF30MD_1, | ||
172 | PF29MD_0, PF29MD_1, | ||
173 | PF28MD_0, PF28MD_1, | ||
174 | PF27MD_0, PF27MD_1, | ||
175 | PF26MD_0, PF26MD_1, | ||
176 | PF25MD_0, PF25MD_1, | ||
177 | PF24MD_0, PF24MD_1, | ||
178 | PF23MD_00, PF23MD_01, PF23MD_10, | ||
179 | PF22MD_00, PF22MD_01, PF22MD_10, | ||
180 | PF21MD_00, PF21MD_01, PF21MD_10, | ||
181 | PF20MD_00, PF20MD_01, PF20MD_10, | ||
182 | PF19MD_00, PF19MD_01, PF19MD_10, | ||
183 | PF18MD_00, PF18MD_01, PF18MD_10, | ||
184 | PF17MD_00, PF17MD_01, PF17MD_10, | ||
185 | PF16MD_00, PF16MD_01, PF16MD_10, | ||
186 | PF15MD_00, PF15MD_01, PF15MD_10, | ||
187 | PF14MD_00, PF14MD_01, PF14MD_10, | ||
188 | PF13MD_00, PF13MD_01, PF13MD_10, | ||
189 | PF12MD_00, PF12MD_01, PF12MD_10, | ||
190 | PF11MD_00, PF11MD_01, PF11MD_10, | ||
191 | PF10MD_00, PF10MD_01, PF10MD_10, | ||
192 | PF9MD_00, PF9MD_01, PF9MD_10, | ||
193 | PF8MD_00, PF8MD_01, PF8MD_10, | ||
194 | PF7MD_00, PF7MD_01, PF7MD_10, PF7MD_11, | ||
195 | PF6MD_00, PF6MD_01, PF6MD_10, PF6MD_11, | ||
196 | PF5MD_00, PF5MD_01, PF5MD_10, PF5MD_11, | ||
197 | PF4MD_00, PF4MD_01, PF4MD_10, PF4MD_11, | ||
198 | PF3MD_00, PF3MD_01, PF3MD_10, PF3MD_11, | ||
199 | PF2MD_00, PF2MD_01, PF2MD_10, PF2MD_11, | ||
200 | PF1MD_00, PF1MD_01, PF1MD_10, PF1MD_11, | ||
201 | PF0MD_00, PF0MD_01, PF0MD_10, PF0MD_11, | ||
202 | PINMUX_FUNCTION_END, | ||
203 | |||
204 | PINMUX_MARK_BEGIN, | ||
205 | PINT7_PB_MARK, PINT6_PB_MARK, PINT5_PB_MARK, PINT4_PB_MARK, | ||
206 | PINT3_PB_MARK, PINT2_PB_MARK, PINT1_PB_MARK, PINT0_PB_MARK, | ||
207 | PINT7_PD_MARK, PINT6_PD_MARK, PINT5_PD_MARK, PINT4_PD_MARK, | ||
208 | PINT3_PD_MARK, PINT2_PD_MARK, PINT1_PD_MARK, PINT0_PD_MARK, | ||
209 | IRQ7_PB_MARK, IRQ6_PB_MARK, IRQ5_PB_MARK, IRQ4_PB_MARK, | ||
210 | IRQ3_PB_MARK, IRQ2_PB_MARK, IRQ1_PB_MARK, IRQ0_PB_MARK, | ||
211 | IRQ7_PD_MARK, IRQ6_PD_MARK, IRQ5_PD_MARK, IRQ4_PD_MARK, | ||
212 | IRQ3_PD_MARK, IRQ2_PD_MARK, IRQ1_PD_MARK, IRQ0_PD_MARK, | ||
213 | IRQ7_PE_MARK, IRQ6_PE_MARK, IRQ5_PE_MARK, IRQ4_PE_MARK, | ||
214 | IRQ3_PE_MARK, IRQ2_PE_MARK, IRQ1_PE_MARK, IRQ0_PE_MARK, | ||
215 | WDTOVF_MARK, IRQOUT_MARK, REFOUT_MARK, IRQOUT_REFOUT_MARK, | ||
216 | UBCTRG_MARK, | ||
217 | CTX1_MARK, CRX1_MARK, CTX0_MARK, CTX0_CTX1_MARK, | ||
218 | CRX0_MARK, CRX0_CRX1_MARK, | ||
219 | SDA3_MARK, SCL3_MARK, | ||
220 | SDA2_MARK, SCL2_MARK, | ||
221 | SDA1_MARK, SCL1_MARK, | ||
222 | SDA0_MARK, SCL0_MARK, | ||
223 | TEND0_PD_MARK, TEND0_PE_MARK, DACK0_PD_MARK, DACK0_PE_MARK, | ||
224 | DREQ0_PD_MARK, DREQ0_PE_MARK, TEND1_PD_MARK, TEND1_PE_MARK, | ||
225 | DACK1_PD_MARK, DACK1_PE_MARK, DREQ1_PD_MARK, DREQ1_PE_MARK, | ||
226 | DACK2_MARK, DREQ2_MARK, DACK3_MARK, DREQ3_MARK, | ||
227 | ADTRG_PD_MARK, ADTRG_PE_MARK, | ||
228 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, | ||
229 | D27_MARK, D26_MARK, D25_MARK, D24_MARK, | ||
230 | D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
231 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
232 | A25_MARK, A24_MARK, A23_MARK, A22_MARK, | ||
233 | A21_MARK, CS4_MARK, MRES_MARK, BS_MARK, | ||
234 | IOIS16_MARK, CS1_MARK, CS6_CE1B_MARK, CE2B_MARK, | ||
235 | CS5_CE1A_MARK, CE2A_MARK, FRAME_MARK, WAIT_MARK, | ||
236 | RDWR_MARK, CKE_MARK, CASU_MARK, BREQ_MARK, | ||
237 | RASU_MARK, BACK_MARK, CASL_MARK, RASL_MARK, | ||
238 | WE3_DQMUU_AH_ICIO_WR_MARK, WE2_DQMUL_ICIORD_MARK, | ||
239 | WE1_DQMLU_WE_MARK, WE0_DQMLL_MARK, | ||
240 | CS3_MARK, CS2_MARK, A1_MARK, A0_MARK, CS7_MARK, | ||
241 | TIOC4D_MARK, TIOC4C_MARK, TIOC4B_MARK, TIOC4A_MARK, | ||
242 | TIOC3D_MARK, TIOC3C_MARK, TIOC3B_MARK, TIOC3A_MARK, | ||
243 | TIOC2B_MARK, TIOC1B_MARK, TIOC2A_MARK, TIOC1A_MARK, | ||
244 | TIOC0D_MARK, TIOC0C_MARK, TIOC0B_MARK, TIOC0A_MARK, | ||
245 | TCLKD_PD_MARK, TCLKC_PD_MARK, TCLKB_PD_MARK, TCLKA_PD_MARK, | ||
246 | TCLKD_PF_MARK, TCLKC_PF_MARK, TCLKB_PF_MARK, TCLKA_PF_MARK, | ||
247 | SCS0_PD_MARK, SSO0_PD_MARK, SSI0_PD_MARK, SSCK0_PD_MARK, | ||
248 | SCS0_PF_MARK, SSO0_PF_MARK, SSI0_PF_MARK, SSCK0_PF_MARK, | ||
249 | SCS1_PD_MARK, SSO1_PD_MARK, SSI1_PD_MARK, SSCK1_PD_MARK, | ||
250 | SCS1_PF_MARK, SSO1_PF_MARK, SSI1_PF_MARK, SSCK1_PF_MARK, | ||
251 | TXD0_MARK, RXD0_MARK, SCK0_MARK, | ||
252 | TXD1_MARK, RXD1_MARK, SCK1_MARK, | ||
253 | TXD2_MARK, RXD2_MARK, SCK2_MARK, | ||
254 | RTS3_MARK, CTS3_MARK, TXD3_MARK, | ||
255 | RXD3_MARK, SCK3_MARK, | ||
256 | AUDIO_CLK_MARK, | ||
257 | SSIDATA3_MARK, SSIWS3_MARK, SSISCK3_MARK, | ||
258 | SSIDATA2_MARK, SSIWS2_MARK, SSISCK2_MARK, | ||
259 | SSIDATA1_MARK, SSIWS1_MARK, SSISCK1_MARK, | ||
260 | SSIDATA0_MARK, SSIWS0_MARK, SSISCK0_MARK, | ||
261 | FCE_MARK, FRB_MARK, | ||
262 | NAF7_MARK, NAF6_MARK, NAF5_MARK, NAF4_MARK, | ||
263 | NAF3_MARK, NAF2_MARK, NAF1_MARK, NAF0_MARK, | ||
264 | FSC_MARK, FOE_MARK, FCDE_MARK, FWE_MARK, | ||
265 | LCD_VEPWC_MARK, LCD_VCPWC_MARK, LCD_CLK_MARK, LCD_FLM_MARK, | ||
266 | LCD_M_DISP_MARK, LCD_CL2_MARK, LCD_CL1_MARK, LCD_DON_MARK, | ||
267 | LCD_DATA15_MARK, LCD_DATA14_MARK, LCD_DATA13_MARK, LCD_DATA12_MARK, | ||
268 | LCD_DATA11_MARK, LCD_DATA10_MARK, LCD_DATA9_MARK, LCD_DATA8_MARK, | ||
269 | LCD_DATA7_MARK, LCD_DATA6_MARK, LCD_DATA5_MARK, LCD_DATA4_MARK, | ||
270 | LCD_DATA3_MARK, LCD_DATA2_MARK, LCD_DATA1_MARK, LCD_DATA0_MARK, | ||
271 | PINMUX_MARK_END, | ||
272 | }; | ||
273 | |||
274 | static pinmux_enum_t pinmux_data[] = { | ||
275 | |||
276 | /* PA */ | ||
277 | PINMUX_DATA(PA7_DATA, PA7_IN), | ||
278 | PINMUX_DATA(PA6_DATA, PA6_IN), | ||
279 | PINMUX_DATA(PA5_DATA, PA5_IN), | ||
280 | PINMUX_DATA(PA4_DATA, PA4_IN), | ||
281 | PINMUX_DATA(PA3_DATA, PA3_IN), | ||
282 | PINMUX_DATA(PA2_DATA, PA2_IN), | ||
283 | PINMUX_DATA(PA1_DATA, PA1_IN), | ||
284 | PINMUX_DATA(PA0_DATA, PA0_IN), | ||
285 | |||
286 | /* PB */ | ||
287 | PINMUX_DATA(PB12_DATA, PB12MD_00, FORCE_OUT), | ||
288 | PINMUX_DATA(WDTOVF_MARK, PB12MD_01), | ||
289 | PINMUX_DATA(IRQOUT_MARK, PB12MD_10, PB12IRQ_00), | ||
290 | PINMUX_DATA(REFOUT_MARK, PB12MD_10, PB12IRQ_01), | ||
291 | PINMUX_DATA(IRQOUT_REFOUT_MARK, PB12MD_10, PB12IRQ_10), | ||
292 | PINMUX_DATA(UBCTRG_MARK, PB12MD_11), | ||
293 | |||
294 | PINMUX_DATA(PB11_DATA, PB11MD_0, PB11_IN, PB11_OUT), | ||
295 | PINMUX_DATA(CTX1_MARK, PB11MD_1), | ||
296 | |||
297 | PINMUX_DATA(PB10_DATA, PB10MD_0, PB10_IN, PB10_OUT), | ||
298 | PINMUX_DATA(CRX1_MARK, PB10MD_1), | ||
299 | |||
300 | PINMUX_DATA(PB9_DATA, PB9MD_00, PB9_IN, PB9_OUT), | ||
301 | PINMUX_DATA(CTX0_MARK, PB9MD_01), | ||
302 | PINMUX_DATA(CTX0_CTX1_MARK, PB9MD_10), | ||
303 | |||
304 | PINMUX_DATA(PB8_DATA, PB8MD_00, PB8_IN, PB8_OUT), | ||
305 | PINMUX_DATA(CRX0_MARK, PB8MD_01), | ||
306 | PINMUX_DATA(CRX0_CRX1_MARK, PB8MD_10), | ||
307 | |||
308 | PINMUX_DATA(PB7_DATA, PB7MD_00, FORCE_IN), | ||
309 | PINMUX_DATA(SDA3_MARK, PB7MD_01), | ||
310 | PINMUX_DATA(PINT7_PB_MARK, PB7MD_10), | ||
311 | PINMUX_DATA(IRQ7_PB_MARK, PB7MD_11), | ||
312 | |||
313 | PINMUX_DATA(PB6_DATA, PB6MD_00, FORCE_IN), | ||
314 | PINMUX_DATA(SCL3_MARK, PB6MD_01), | ||
315 | PINMUX_DATA(PINT6_PB_MARK, PB6MD_10), | ||
316 | PINMUX_DATA(IRQ6_PB_MARK, PB6MD_11), | ||
317 | |||
318 | PINMUX_DATA(PB5_DATA, PB5MD_00, FORCE_IN), | ||
319 | PINMUX_DATA(SDA2_MARK, PB6MD_01), | ||
320 | PINMUX_DATA(PINT5_PB_MARK, PB6MD_10), | ||
321 | PINMUX_DATA(IRQ5_PB_MARK, PB6MD_11), | ||
322 | |||
323 | PINMUX_DATA(PB4_DATA, PB4MD_00, FORCE_IN), | ||
324 | PINMUX_DATA(SCL2_MARK, PB4MD_01), | ||
325 | PINMUX_DATA(PINT4_PB_MARK, PB4MD_10), | ||
326 | PINMUX_DATA(IRQ4_PB_MARK, PB4MD_11), | ||
327 | |||
328 | PINMUX_DATA(PB3_DATA, PB3MD_00, FORCE_IN), | ||
329 | PINMUX_DATA(SDA1_MARK, PB3MD_01), | ||
330 | PINMUX_DATA(PINT3_PB_MARK, PB3MD_10), | ||
331 | PINMUX_DATA(IRQ3_PB_MARK, PB3MD_11), | ||
332 | |||
333 | PINMUX_DATA(PB2_DATA, PB2MD_00, FORCE_IN), | ||
334 | PINMUX_DATA(SCL1_MARK, PB2MD_01), | ||
335 | PINMUX_DATA(PINT2_PB_MARK, PB2MD_10), | ||
336 | PINMUX_DATA(IRQ2_PB_MARK, PB2MD_11), | ||
337 | |||
338 | PINMUX_DATA(PB1_DATA, PB1MD_00, FORCE_IN), | ||
339 | PINMUX_DATA(SDA0_MARK, PB1MD_01), | ||
340 | PINMUX_DATA(PINT1_PB_MARK, PB1MD_10), | ||
341 | PINMUX_DATA(IRQ1_PB_MARK, PB1MD_11), | ||
342 | |||
343 | PINMUX_DATA(PB0_DATA, PB0MD_00, FORCE_IN), | ||
344 | PINMUX_DATA(SCL0_MARK, PB0MD_01), | ||
345 | PINMUX_DATA(PINT0_PB_MARK, PB0MD_10), | ||
346 | PINMUX_DATA(IRQ0_PB_MARK, PB0MD_11), | ||
347 | |||
348 | /* PC */ | ||
349 | PINMUX_DATA(PC14_DATA, PC14MD_0, PC14_IN, PC14_OUT), | ||
350 | PINMUX_DATA(WAIT_MARK, PC14MD_1), | ||
351 | |||
352 | PINMUX_DATA(PC13_DATA, PC13MD_0, PC13_IN, PC13_OUT), | ||
353 | PINMUX_DATA(RDWR_MARK, PC13MD_1), | ||
354 | |||
355 | PINMUX_DATA(PC12_DATA, PC12MD_0, PC12_IN, PC12_OUT), | ||
356 | PINMUX_DATA(CKE_MARK, PC12MD_1), | ||
357 | |||
358 | PINMUX_DATA(PC11_DATA, PC11MD_00, PC11_IN, PC11_OUT), | ||
359 | PINMUX_DATA(CASU_MARK, PC11MD_01), | ||
360 | PINMUX_DATA(BREQ_MARK, PC11MD_10), | ||
361 | |||
362 | PINMUX_DATA(PC10_DATA, PC10MD_00, PC10_IN, PC10_OUT), | ||
363 | PINMUX_DATA(RASU_MARK, PC10MD_01), | ||
364 | PINMUX_DATA(BACK_MARK, PC10MD_10), | ||
365 | |||
366 | PINMUX_DATA(PC9_DATA, PC9MD_0, PC9_IN, PC9_OUT), | ||
367 | PINMUX_DATA(CASL_MARK, PC9MD_1), | ||
368 | |||
369 | PINMUX_DATA(PC8_DATA, PC8MD_0, PC8_IN, PC8_OUT), | ||
370 | PINMUX_DATA(RASL_MARK, PC8MD_1), | ||
371 | |||
372 | PINMUX_DATA(PC7_DATA, PC7MD_0, PC7_IN, PC7_OUT), | ||
373 | PINMUX_DATA(WE3_DQMUU_AH_ICIO_WR_MARK, PC7MD_1), | ||
374 | |||
375 | PINMUX_DATA(PC6_DATA, PC6MD_0, PC6_IN, PC6_OUT), | ||
376 | PINMUX_DATA(WE2_DQMUL_ICIORD_MARK, PC6MD_1), | ||
377 | |||
378 | PINMUX_DATA(PC5_DATA, PC5MD_0, PC5_IN, PC5_OUT), | ||
379 | PINMUX_DATA(WE1_DQMLU_WE_MARK, PC5MD_1), | ||
380 | |||
381 | PINMUX_DATA(PC4_DATA, PC4MD_0, PC4_IN, PC4_OUT), | ||
382 | PINMUX_DATA(WE0_DQMLL_MARK, PC4MD_1), | ||
383 | |||
384 | PINMUX_DATA(PC3_DATA, PC3MD_0, PC3_IN, PC3_OUT), | ||
385 | PINMUX_DATA(CS3_MARK, PC3MD_1), | ||
386 | |||
387 | PINMUX_DATA(PC2_DATA, PC2MD_0, PC2_IN, PC2_OUT), | ||
388 | PINMUX_DATA(CS2_MARK, PC2MD_1), | ||
389 | |||
390 | PINMUX_DATA(PC1_DATA, PC1MD_0, PC1_IN, PC1_OUT), | ||
391 | PINMUX_DATA(A1_MARK, PC1MD_1), | ||
392 | |||
393 | PINMUX_DATA(PC0_DATA, PC0MD_00, PC0_IN, PC0_OUT), | ||
394 | PINMUX_DATA(A0_MARK, PC0MD_01), | ||
395 | PINMUX_DATA(CS7_MARK, PC0MD_10), | ||
396 | |||
397 | /* PD */ | ||
398 | PINMUX_DATA(PD15_DATA, PD15MD_000, PD15_IN, PD15_OUT), | ||
399 | PINMUX_DATA(D31_MARK, PD15MD_001), | ||
400 | PINMUX_DATA(PINT7_PD_MARK, PD15MD_010), | ||
401 | PINMUX_DATA(ADTRG_PD_MARK, PD15MD_100), | ||
402 | PINMUX_DATA(TIOC4D_MARK, PD15MD_101), | ||
403 | |||
404 | PINMUX_DATA(PD14_DATA, PD14MD_000, PD14_IN, PD14_OUT), | ||
405 | PINMUX_DATA(D30_MARK, PD14MD_001), | ||
406 | PINMUX_DATA(PINT6_PD_MARK, PD14MD_010), | ||
407 | PINMUX_DATA(TIOC4C_MARK, PD14MD_101), | ||
408 | |||
409 | PINMUX_DATA(PD13_DATA, PD13MD_000, PD13_IN, PD13_OUT), | ||
410 | PINMUX_DATA(D29_MARK, PD13MD_001), | ||
411 | PINMUX_DATA(PINT5_PD_MARK, PD13MD_010), | ||
412 | PINMUX_DATA(TEND1_PD_MARK, PD13MD_100), | ||
413 | PINMUX_DATA(TIOC4B_MARK, PD13MD_101), | ||
414 | |||
415 | PINMUX_DATA(PD12_DATA, PD12MD_000, PD12_IN, PD12_OUT), | ||
416 | PINMUX_DATA(D28_MARK, PD12MD_001), | ||
417 | PINMUX_DATA(PINT4_PD_MARK, PD12MD_010), | ||
418 | PINMUX_DATA(DACK1_PD_MARK, PD12MD_100), | ||
419 | PINMUX_DATA(TIOC4A_MARK, PD12MD_101), | ||
420 | |||
421 | PINMUX_DATA(PD11_DATA, PD11MD_000, PD11_IN, PD11_OUT), | ||
422 | PINMUX_DATA(D27_MARK, PD11MD_001), | ||
423 | PINMUX_DATA(PINT3_PD_MARK, PD11MD_010), | ||
424 | PINMUX_DATA(DREQ1_PD_MARK, PD11MD_100), | ||
425 | PINMUX_DATA(TIOC3D_MARK, PD11MD_101), | ||
426 | |||
427 | PINMUX_DATA(PD10_DATA, PD10MD_000, PD10_IN, PD10_OUT), | ||
428 | PINMUX_DATA(D26_MARK, PD10MD_001), | ||
429 | PINMUX_DATA(PINT2_PD_MARK, PD10MD_010), | ||
430 | PINMUX_DATA(TEND0_PD_MARK, PD10MD_100), | ||
431 | PINMUX_DATA(TIOC3C_MARK, PD10MD_101), | ||
432 | |||
433 | PINMUX_DATA(PD9_DATA, PD9MD_000, PD9_IN, PD9_OUT), | ||
434 | PINMUX_DATA(D25_MARK, PD9MD_001), | ||
435 | PINMUX_DATA(PINT1_PD_MARK, PD9MD_010), | ||
436 | PINMUX_DATA(DACK0_PD_MARK, PD9MD_100), | ||
437 | PINMUX_DATA(TIOC3B_MARK, PD9MD_101), | ||
438 | |||
439 | PINMUX_DATA(PD8_DATA, PD8MD_000, PD8_IN, PD8_OUT), | ||
440 | PINMUX_DATA(D24_MARK, PD8MD_001), | ||
441 | PINMUX_DATA(PINT0_PD_MARK, PD8MD_010), | ||
442 | PINMUX_DATA(DREQ0_PD_MARK, PD8MD_100), | ||
443 | PINMUX_DATA(TIOC3A_MARK, PD8MD_101), | ||
444 | |||
445 | PINMUX_DATA(PD7_DATA, PD7MD_000, PD7_IN, PD7_OUT), | ||
446 | PINMUX_DATA(D23_MARK, PD7MD_001), | ||
447 | PINMUX_DATA(IRQ7_PD_MARK, PD7MD_010), | ||
448 | PINMUX_DATA(SCS1_PD_MARK, PD7MD_011), | ||
449 | PINMUX_DATA(TCLKD_PD_MARK, PD7MD_100), | ||
450 | PINMUX_DATA(TIOC2B_MARK, PD7MD_101), | ||
451 | |||
452 | PINMUX_DATA(PD6_DATA, PD6MD_000, PD6_IN, PD6_OUT), | ||
453 | PINMUX_DATA(D22_MARK, PD6MD_001), | ||
454 | PINMUX_DATA(IRQ6_PD_MARK, PD6MD_010), | ||
455 | PINMUX_DATA(SSO1_PD_MARK, PD6MD_011), | ||
456 | PINMUX_DATA(TCLKC_PD_MARK, PD6MD_100), | ||
457 | PINMUX_DATA(TIOC2A_MARK, PD6MD_101), | ||
458 | |||
459 | PINMUX_DATA(PD5_DATA, PD5MD_000, PD5_IN, PD5_OUT), | ||
460 | PINMUX_DATA(D21_MARK, PD5MD_001), | ||
461 | PINMUX_DATA(IRQ5_PD_MARK, PD5MD_010), | ||
462 | PINMUX_DATA(SSI1_PD_MARK, PD5MD_011), | ||
463 | PINMUX_DATA(TCLKB_PD_MARK, PD5MD_100), | ||
464 | PINMUX_DATA(TIOC1B_MARK, PD5MD_101), | ||
465 | |||
466 | PINMUX_DATA(PD4_DATA, PD4MD_000, PD4_IN, PD4_OUT), | ||
467 | PINMUX_DATA(D20_MARK, PD4MD_001), | ||
468 | PINMUX_DATA(IRQ4_PD_MARK, PD4MD_010), | ||
469 | PINMUX_DATA(SSCK1_PD_MARK, PD4MD_011), | ||
470 | PINMUX_DATA(TCLKA_PD_MARK, PD4MD_100), | ||
471 | PINMUX_DATA(TIOC1A_MARK, PD4MD_101), | ||
472 | |||
473 | PINMUX_DATA(PD3_DATA, PD3MD_000, PD3_IN, PD3_OUT), | ||
474 | PINMUX_DATA(D19_MARK, PD3MD_001), | ||
475 | PINMUX_DATA(IRQ3_PD_MARK, PD3MD_010), | ||
476 | PINMUX_DATA(SCS0_PD_MARK, PD3MD_011), | ||
477 | PINMUX_DATA(DACK3_MARK, PD3MD_100), | ||
478 | PINMUX_DATA(TIOC0D_MARK, PD3MD_101), | ||
479 | |||
480 | PINMUX_DATA(PD2_DATA, PD2MD_000, PD2_IN, PD2_OUT), | ||
481 | PINMUX_DATA(D18_MARK, PD2MD_001), | ||
482 | PINMUX_DATA(IRQ2_PD_MARK, PD2MD_010), | ||
483 | PINMUX_DATA(SSO0_PD_MARK, PD2MD_011), | ||
484 | PINMUX_DATA(DREQ3_MARK, PD2MD_100), | ||
485 | PINMUX_DATA(TIOC0C_MARK, PD2MD_101), | ||
486 | |||
487 | PINMUX_DATA(PD1_DATA, PD1MD_000, PD1_IN, PD1_OUT), | ||
488 | PINMUX_DATA(D17_MARK, PD1MD_001), | ||
489 | PINMUX_DATA(IRQ1_PD_MARK, PD1MD_010), | ||
490 | PINMUX_DATA(SSI0_PD_MARK, PD1MD_011), | ||
491 | PINMUX_DATA(DACK2_MARK, PD1MD_100), | ||
492 | PINMUX_DATA(TIOC0B_MARK, PD1MD_101), | ||
493 | |||
494 | PINMUX_DATA(PD0_DATA, PD0MD_000, PD0_IN, PD0_OUT), | ||
495 | PINMUX_DATA(D16_MARK, PD0MD_001), | ||
496 | PINMUX_DATA(IRQ0_PD_MARK, PD0MD_010), | ||
497 | PINMUX_DATA(SSCK0_PD_MARK, PD0MD_011), | ||
498 | PINMUX_DATA(DREQ2_MARK, PD0MD_100), | ||
499 | PINMUX_DATA(TIOC0A_MARK, PD0MD_101), | ||
500 | |||
501 | /* PE */ | ||
502 | PINMUX_DATA(PE15_DATA, PE15MD_00, PE15_IN, PE15_OUT), | ||
503 | PINMUX_DATA(IOIS16_MARK, PE15MD_01), | ||
504 | PINMUX_DATA(RTS3_MARK, PE15MD_11), | ||
505 | |||
506 | PINMUX_DATA(PE14_DATA, PE14MD_00, PE14_IN, PE14_OUT), | ||
507 | PINMUX_DATA(CS1_MARK, PE14MD_01), | ||
508 | PINMUX_DATA(CTS3_MARK, PE14MD_11), | ||
509 | |||
510 | PINMUX_DATA(PE13_DATA, PE13MD_00, PE13_IN, PE13_OUT), | ||
511 | PINMUX_DATA(TXD3_MARK, PE13MD_11), | ||
512 | |||
513 | PINMUX_DATA(PE12_DATA, PE12MD_00, PE12_IN, PE12_OUT), | ||
514 | PINMUX_DATA(RXD3_MARK, PE12MD_11), | ||
515 | |||
516 | PINMUX_DATA(PE11_DATA, PE11MD_000, PE11_IN, PE11_OUT), | ||
517 | PINMUX_DATA(CS6_CE1B_MARK, PE11MD_001), | ||
518 | PINMUX_DATA(IRQ7_PE_MARK, PE11MD_010), | ||
519 | PINMUX_DATA(TEND1_PE_MARK, PE11MD_100), | ||
520 | |||
521 | PINMUX_DATA(PE10_DATA, PE10MD_000, PE10_IN, PE10_OUT), | ||
522 | PINMUX_DATA(CE2B_MARK, PE10MD_001), | ||
523 | PINMUX_DATA(IRQ6_PE_MARK, PE10MD_010), | ||
524 | PINMUX_DATA(TEND0_PE_MARK, PE10MD_100), | ||
525 | |||
526 | PINMUX_DATA(PE9_DATA, PE9MD_00, PE9_IN, PE9_OUT), | ||
527 | PINMUX_DATA(CS5_CE1A_MARK, PE9MD_01), | ||
528 | PINMUX_DATA(IRQ5_PE_MARK, PE9MD_10), | ||
529 | PINMUX_DATA(SCK3_MARK, PE9MD_11), | ||
530 | |||
531 | PINMUX_DATA(PE8_DATA, PE8MD_00, PE8_IN, PE8_OUT), | ||
532 | PINMUX_DATA(CE2A_MARK, PE8MD_01), | ||
533 | PINMUX_DATA(IRQ4_PE_MARK, PE8MD_10), | ||
534 | PINMUX_DATA(SCK2_MARK, PE8MD_11), | ||
535 | |||
536 | PINMUX_DATA(PE7_DATA, PE7MD_000, PE7_IN, PE7_OUT), | ||
537 | PINMUX_DATA(FRAME_MARK, PE7MD_001), | ||
538 | PINMUX_DATA(IRQ3_PE_MARK, PE7MD_010), | ||
539 | PINMUX_DATA(TXD2_MARK, PE7MD_011), | ||
540 | PINMUX_DATA(DACK1_PE_MARK, PE7MD_100), | ||
541 | |||
542 | PINMUX_DATA(PE6_DATA, PE6MD_000, PE6_IN, PE6_OUT), | ||
543 | PINMUX_DATA(A25_MARK, PE6MD_001), | ||
544 | PINMUX_DATA(IRQ2_PE_MARK, PE6MD_010), | ||
545 | PINMUX_DATA(RXD2_MARK, PE6MD_011), | ||
546 | PINMUX_DATA(DREQ1_PE_MARK, PE6MD_100), | ||
547 | |||
548 | PINMUX_DATA(PE5_DATA, PE5MD_000, PE5_IN, PE5_OUT), | ||
549 | PINMUX_DATA(A24_MARK, PE5MD_001), | ||
550 | PINMUX_DATA(IRQ1_PE_MARK, PE5MD_010), | ||
551 | PINMUX_DATA(TXD1_MARK, PE5MD_011), | ||
552 | PINMUX_DATA(DACK0_PE_MARK, PE5MD_100), | ||
553 | |||
554 | PINMUX_DATA(PE4_DATA, PE4MD_000, PE4_IN, PE4_OUT), | ||
555 | PINMUX_DATA(A23_MARK, PE4MD_001), | ||
556 | PINMUX_DATA(IRQ0_PE_MARK, PE4MD_010), | ||
557 | PINMUX_DATA(RXD1_MARK, PE4MD_011), | ||
558 | PINMUX_DATA(DREQ0_PE_MARK, PE4MD_100), | ||
559 | |||
560 | PINMUX_DATA(PE3_DATA, PE3MD_00, PE3_IN, PE3_OUT), | ||
561 | PINMUX_DATA(A22_MARK, PE3MD_01), | ||
562 | PINMUX_DATA(SCK1_MARK, PE3MD_11), | ||
563 | |||
564 | PINMUX_DATA(PE2_DATA, PE2MD_00, PE2_IN, PE2_OUT), | ||
565 | PINMUX_DATA(A21_MARK, PE2MD_01), | ||
566 | PINMUX_DATA(SCK0_MARK, PE2MD_11), | ||
567 | |||
568 | PINMUX_DATA(PE1_DATA, PE1MD_00, PE1_IN, PE1_OUT), | ||
569 | PINMUX_DATA(CS4_MARK, PE1MD_01), | ||
570 | PINMUX_DATA(MRES_MARK, PE1MD_10), | ||
571 | PINMUX_DATA(TXD0_MARK, PE1MD_11), | ||
572 | |||
573 | PINMUX_DATA(PE0_DATA, PE0MD_000, PE0_IN, PE0_OUT), | ||
574 | PINMUX_DATA(BS_MARK, PE0MD_001), | ||
575 | PINMUX_DATA(RXD0_MARK, PE0MD_011), | ||
576 | PINMUX_DATA(ADTRG_PE_MARK, PE0MD_100), | ||
577 | |||
578 | /* PF */ | ||
579 | PINMUX_DATA(PF30_DATA, PF30MD_0, PF30_IN, PF30_OUT), | ||
580 | PINMUX_DATA(AUDIO_CLK_MARK, PF30MD_1), | ||
581 | |||
582 | PINMUX_DATA(PF29_DATA, PF29MD_0, PF29_IN, PF29_OUT), | ||
583 | PINMUX_DATA(SSIDATA3_MARK, PF29MD_1), | ||
584 | |||
585 | PINMUX_DATA(PF28_DATA, PF28MD_0, PF28_IN, PF28_OUT), | ||
586 | PINMUX_DATA(SSIWS3_MARK, PF28MD_1), | ||
587 | |||
588 | PINMUX_DATA(PF27_DATA, PF27MD_0, PF27_IN, PF27_OUT), | ||
589 | PINMUX_DATA(SSISCK3_MARK, PF27MD_1), | ||
590 | |||
591 | PINMUX_DATA(PF26_DATA, PF26MD_0, PF26_IN, PF26_OUT), | ||
592 | PINMUX_DATA(SSIDATA2_MARK, PF26MD_1), | ||
593 | |||
594 | PINMUX_DATA(PF25_DATA, PF25MD_0, PF25_IN, PF25_OUT), | ||
595 | PINMUX_DATA(SSIWS2_MARK, PF25MD_1), | ||
596 | |||
597 | PINMUX_DATA(PF24_DATA, PF24MD_0, PF24_IN, PF24_OUT), | ||
598 | PINMUX_DATA(SSISCK2_MARK, PF24MD_1), | ||
599 | |||
600 | PINMUX_DATA(PF23_DATA, PF23MD_00, PF23_IN, PF23_OUT), | ||
601 | PINMUX_DATA(SSIDATA1_MARK, PF23MD_01), | ||
602 | PINMUX_DATA(LCD_VEPWC_MARK, PF23MD_10), | ||
603 | |||
604 | PINMUX_DATA(PF22_DATA, PF22MD_00, PF22_IN, PF22_OUT), | ||
605 | PINMUX_DATA(SSIWS1_MARK, PF22MD_01), | ||
606 | PINMUX_DATA(LCD_VCPWC_MARK, PF22MD_10), | ||
607 | |||
608 | PINMUX_DATA(PF21_DATA, PF21MD_00, PF21_IN, PF21_OUT), | ||
609 | PINMUX_DATA(SSISCK1_MARK, PF21MD_01), | ||
610 | PINMUX_DATA(LCD_CLK_MARK, PF21MD_10), | ||
611 | |||
612 | PINMUX_DATA(PF20_DATA, PF20MD_00, PF20_IN, PF20_OUT), | ||
613 | PINMUX_DATA(SSIDATA0_MARK, PF20MD_01), | ||
614 | PINMUX_DATA(LCD_FLM_MARK, PF20MD_10), | ||
615 | |||
616 | PINMUX_DATA(PF19_DATA, PF19MD_00, PF19_IN, PF19_OUT), | ||
617 | PINMUX_DATA(SSIWS0_MARK, PF19MD_01), | ||
618 | PINMUX_DATA(LCD_M_DISP_MARK, PF19MD_10), | ||
619 | |||
620 | PINMUX_DATA(PF18_DATA, PF18MD_00, PF18_IN, PF18_OUT), | ||
621 | PINMUX_DATA(SSISCK0_MARK, PF18MD_01), | ||
622 | PINMUX_DATA(LCD_CL2_MARK, PF18MD_10), | ||
623 | |||
624 | PINMUX_DATA(PF17_DATA, PF17MD_00, PF17_IN, PF17_OUT), | ||
625 | PINMUX_DATA(FCE_MARK, PF17MD_01), | ||
626 | PINMUX_DATA(LCD_CL1_MARK, PF17MD_10), | ||
627 | |||
628 | PINMUX_DATA(PF16_DATA, PF16MD_00, PF16_IN, PF16_OUT), | ||
629 | PINMUX_DATA(FRB_MARK, PF16MD_01), | ||
630 | PINMUX_DATA(LCD_DON_MARK, PF16MD_10), | ||
631 | |||
632 | PINMUX_DATA(PF15_DATA, PF15MD_00, PF15_IN, PF15_OUT), | ||
633 | PINMUX_DATA(NAF7_MARK, PF15MD_01), | ||
634 | PINMUX_DATA(LCD_DATA15_MARK, PF15MD_10), | ||
635 | |||
636 | PINMUX_DATA(PF14_DATA, PF14MD_00, PF14_IN, PF14_OUT), | ||
637 | PINMUX_DATA(NAF6_MARK, PF14MD_01), | ||
638 | PINMUX_DATA(LCD_DATA14_MARK, PF14MD_10), | ||
639 | |||
640 | PINMUX_DATA(PF13_DATA, PF13MD_00, PF13_IN, PF13_OUT), | ||
641 | PINMUX_DATA(NAF5_MARK, PF13MD_01), | ||
642 | PINMUX_DATA(LCD_DATA13_MARK, PF13MD_10), | ||
643 | |||
644 | PINMUX_DATA(PF12_DATA, PF12MD_00, PF12_IN, PF12_OUT), | ||
645 | PINMUX_DATA(NAF4_MARK, PF12MD_01), | ||
646 | PINMUX_DATA(LCD_DATA12_MARK, PF12MD_10), | ||
647 | |||
648 | PINMUX_DATA(PF11_DATA, PF11MD_00, PF11_IN, PF11_OUT), | ||
649 | PINMUX_DATA(NAF3_MARK, PF11MD_01), | ||
650 | PINMUX_DATA(LCD_DATA11_MARK, PF11MD_10), | ||
651 | |||
652 | PINMUX_DATA(PF10_DATA, PF10MD_00, PF10_IN, PF10_OUT), | ||
653 | PINMUX_DATA(NAF2_MARK, PF10MD_01), | ||
654 | PINMUX_DATA(LCD_DATA10_MARK, PF10MD_10), | ||
655 | |||
656 | PINMUX_DATA(PF9_DATA, PF9MD_00, PF9_IN, PF9_OUT), | ||
657 | PINMUX_DATA(NAF1_MARK, PF9MD_01), | ||
658 | PINMUX_DATA(LCD_DATA9_MARK, PF9MD_10), | ||
659 | |||
660 | PINMUX_DATA(PF8_DATA, PF8MD_00, PF8_IN, PF8_OUT), | ||
661 | PINMUX_DATA(NAF0_MARK, PF8MD_01), | ||
662 | PINMUX_DATA(LCD_DATA8_MARK, PF8MD_10), | ||
663 | |||
664 | PINMUX_DATA(PF7_DATA, PF7MD_00, PF7_IN, PF7_OUT), | ||
665 | PINMUX_DATA(FSC_MARK, PF7MD_01), | ||
666 | PINMUX_DATA(LCD_DATA7_MARK, PF7MD_10), | ||
667 | PINMUX_DATA(SCS1_PF_MARK, PF7MD_11), | ||
668 | |||
669 | PINMUX_DATA(PF6_DATA, PF6MD_00, PF6_IN, PF6_OUT), | ||
670 | PINMUX_DATA(FOE_MARK, PF6MD_01), | ||
671 | PINMUX_DATA(LCD_DATA6_MARK, PF6MD_10), | ||
672 | PINMUX_DATA(SSO1_PF_MARK, PF6MD_11), | ||
673 | |||
674 | PINMUX_DATA(PF5_DATA, PF5MD_00, PF5_IN, PF5_OUT), | ||
675 | PINMUX_DATA(FCDE_MARK, PF5MD_01), | ||
676 | PINMUX_DATA(LCD_DATA5_MARK, PF5MD_10), | ||
677 | PINMUX_DATA(SSI1_PF_MARK, PF5MD_11), | ||
678 | |||
679 | PINMUX_DATA(PF4_DATA, PF4MD_00, PF4_IN, PF4_OUT), | ||
680 | PINMUX_DATA(FWE_MARK, PF4MD_01), | ||
681 | PINMUX_DATA(LCD_DATA4_MARK, PF4MD_10), | ||
682 | PINMUX_DATA(SSCK1_PF_MARK, PF4MD_11), | ||
683 | |||
684 | PINMUX_DATA(PF3_DATA, PF3MD_00, PF3_IN, PF3_OUT), | ||
685 | PINMUX_DATA(TCLKD_PF_MARK, PF3MD_01), | ||
686 | PINMUX_DATA(LCD_DATA3_MARK, PF3MD_10), | ||
687 | PINMUX_DATA(SCS0_PF_MARK, PF3MD_11), | ||
688 | |||
689 | PINMUX_DATA(PF2_DATA, PF2MD_00, PF2_IN, PF2_OUT), | ||
690 | PINMUX_DATA(TCLKC_PF_MARK, PF2MD_01), | ||
691 | PINMUX_DATA(LCD_DATA2_MARK, PF2MD_10), | ||
692 | PINMUX_DATA(SSO0_PF_MARK, PF2MD_11), | ||
693 | |||
694 | PINMUX_DATA(PF1_DATA, PF1MD_00, PF1_IN, PF1_OUT), | ||
695 | PINMUX_DATA(TCLKB_PF_MARK, PF1MD_01), | ||
696 | PINMUX_DATA(LCD_DATA1_MARK, PF1MD_10), | ||
697 | PINMUX_DATA(SSI0_PF_MARK, PF1MD_11), | ||
698 | |||
699 | PINMUX_DATA(PF0_DATA, PF0MD_00, PF0_IN, PF0_OUT), | ||
700 | PINMUX_DATA(TCLKA_PF_MARK, PF0MD_01), | ||
701 | PINMUX_DATA(LCD_DATA0_MARK, PF0MD_10), | ||
702 | PINMUX_DATA(SSCK0_PF_MARK, PF0MD_11), | ||
703 | }; | ||
704 | |||
705 | static struct pinmux_gpio pinmux_gpios[] = { | ||
706 | |||
707 | /* PA */ | ||
708 | PINMUX_GPIO(GPIO_PA7, PA7_DATA), | ||
709 | PINMUX_GPIO(GPIO_PA6, PA6_DATA), | ||
710 | PINMUX_GPIO(GPIO_PA5, PA5_DATA), | ||
711 | PINMUX_GPIO(GPIO_PA4, PA4_DATA), | ||
712 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
713 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
714 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
715 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
716 | |||
717 | /* PB */ | ||
718 | PINMUX_GPIO(GPIO_PB12, PB12_DATA), | ||
719 | PINMUX_GPIO(GPIO_PB11, PB11_DATA), | ||
720 | PINMUX_GPIO(GPIO_PB10, PB10_DATA), | ||
721 | PINMUX_GPIO(GPIO_PB9, PB9_DATA), | ||
722 | PINMUX_GPIO(GPIO_PB8, PB8_DATA), | ||
723 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
724 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
725 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
726 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
727 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
728 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
729 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
730 | PINMUX_GPIO(GPIO_PB0, PB0_DATA), | ||
731 | |||
732 | /* PC */ | ||
733 | PINMUX_GPIO(GPIO_PC14, PC14_DATA), | ||
734 | PINMUX_GPIO(GPIO_PC13, PC13_DATA), | ||
735 | PINMUX_GPIO(GPIO_PC12, PC12_DATA), | ||
736 | PINMUX_GPIO(GPIO_PC11, PC11_DATA), | ||
737 | PINMUX_GPIO(GPIO_PC10, PC10_DATA), | ||
738 | PINMUX_GPIO(GPIO_PC9, PC9_DATA), | ||
739 | PINMUX_GPIO(GPIO_PC8, PC8_DATA), | ||
740 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
741 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
742 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
743 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
744 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
745 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
746 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
747 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
748 | |||
749 | /* PD */ | ||
750 | PINMUX_GPIO(GPIO_PD15, PD15_DATA), | ||
751 | PINMUX_GPIO(GPIO_PD14, PD14_DATA), | ||
752 | PINMUX_GPIO(GPIO_PD13, PD13_DATA), | ||
753 | PINMUX_GPIO(GPIO_PD12, PD12_DATA), | ||
754 | PINMUX_GPIO(GPIO_PD11, PD11_DATA), | ||
755 | PINMUX_GPIO(GPIO_PD10, PD10_DATA), | ||
756 | PINMUX_GPIO(GPIO_PD9, PD9_DATA), | ||
757 | PINMUX_GPIO(GPIO_PD8, PD8_DATA), | ||
758 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
759 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
760 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
761 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
762 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
763 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
764 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
765 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
766 | |||
767 | /* PE */ | ||
768 | PINMUX_GPIO(GPIO_PE15, PE15_DATA), | ||
769 | PINMUX_GPIO(GPIO_PE14, PE14_DATA), | ||
770 | PINMUX_GPIO(GPIO_PE13, PE13_DATA), | ||
771 | PINMUX_GPIO(GPIO_PE12, PE12_DATA), | ||
772 | PINMUX_GPIO(GPIO_PE11, PE11_DATA), | ||
773 | PINMUX_GPIO(GPIO_PE10, PE10_DATA), | ||
774 | PINMUX_GPIO(GPIO_PE9, PE9_DATA), | ||
775 | PINMUX_GPIO(GPIO_PE8, PE8_DATA), | ||
776 | PINMUX_GPIO(GPIO_PE7, PE7_DATA), | ||
777 | PINMUX_GPIO(GPIO_PE6, PE6_DATA), | ||
778 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
779 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
780 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
781 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
782 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
783 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
784 | |||
785 | /* PF */ | ||
786 | PINMUX_GPIO(GPIO_PF30, PF30_DATA), | ||
787 | PINMUX_GPIO(GPIO_PF29, PF29_DATA), | ||
788 | PINMUX_GPIO(GPIO_PF28, PF28_DATA), | ||
789 | PINMUX_GPIO(GPIO_PF27, PF27_DATA), | ||
790 | PINMUX_GPIO(GPIO_PF26, PF26_DATA), | ||
791 | PINMUX_GPIO(GPIO_PF25, PF25_DATA), | ||
792 | PINMUX_GPIO(GPIO_PF24, PF24_DATA), | ||
793 | PINMUX_GPIO(GPIO_PF23, PF23_DATA), | ||
794 | PINMUX_GPIO(GPIO_PF22, PF22_DATA), | ||
795 | PINMUX_GPIO(GPIO_PF21, PF21_DATA), | ||
796 | PINMUX_GPIO(GPIO_PF20, PF20_DATA), | ||
797 | PINMUX_GPIO(GPIO_PF19, PF19_DATA), | ||
798 | PINMUX_GPIO(GPIO_PF18, PF18_DATA), | ||
799 | PINMUX_GPIO(GPIO_PF17, PF17_DATA), | ||
800 | PINMUX_GPIO(GPIO_PF16, PF16_DATA), | ||
801 | PINMUX_GPIO(GPIO_PF15, PF15_DATA), | ||
802 | PINMUX_GPIO(GPIO_PF14, PF14_DATA), | ||
803 | PINMUX_GPIO(GPIO_PF13, PF13_DATA), | ||
804 | PINMUX_GPIO(GPIO_PF12, PF12_DATA), | ||
805 | PINMUX_GPIO(GPIO_PF11, PF11_DATA), | ||
806 | PINMUX_GPIO(GPIO_PF10, PF10_DATA), | ||
807 | PINMUX_GPIO(GPIO_PF9, PF9_DATA), | ||
808 | PINMUX_GPIO(GPIO_PF8, PF8_DATA), | ||
809 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
810 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
811 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
812 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
813 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
814 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
815 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
816 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
817 | |||
818 | /* INTC */ | ||
819 | PINMUX_GPIO(GPIO_FN_PINT7_PB, PINT7_PB_MARK), | ||
820 | PINMUX_GPIO(GPIO_FN_PINT6_PB, PINT6_PB_MARK), | ||
821 | PINMUX_GPIO(GPIO_FN_PINT5_PB, PINT5_PB_MARK), | ||
822 | PINMUX_GPIO(GPIO_FN_PINT4_PB, PINT4_PB_MARK), | ||
823 | PINMUX_GPIO(GPIO_FN_PINT3_PB, PINT3_PB_MARK), | ||
824 | PINMUX_GPIO(GPIO_FN_PINT2_PB, PINT2_PB_MARK), | ||
825 | PINMUX_GPIO(GPIO_FN_PINT1_PB, PINT1_PB_MARK), | ||
826 | PINMUX_GPIO(GPIO_FN_PINT0_PB, PINT0_PB_MARK), | ||
827 | PINMUX_GPIO(GPIO_FN_PINT7_PD, PINT7_PD_MARK), | ||
828 | PINMUX_GPIO(GPIO_FN_PINT6_PD, PINT6_PD_MARK), | ||
829 | PINMUX_GPIO(GPIO_FN_PINT5_PD, PINT5_PD_MARK), | ||
830 | PINMUX_GPIO(GPIO_FN_PINT4_PD, PINT4_PD_MARK), | ||
831 | PINMUX_GPIO(GPIO_FN_PINT3_PD, PINT3_PD_MARK), | ||
832 | PINMUX_GPIO(GPIO_FN_PINT2_PD, PINT2_PD_MARK), | ||
833 | PINMUX_GPIO(GPIO_FN_PINT1_PD, PINT1_PD_MARK), | ||
834 | PINMUX_GPIO(GPIO_FN_PINT0_PD, PINT0_PD_MARK), | ||
835 | PINMUX_GPIO(GPIO_FN_IRQ7_PB, IRQ7_PB_MARK), | ||
836 | PINMUX_GPIO(GPIO_FN_IRQ6_PB, IRQ6_PB_MARK), | ||
837 | PINMUX_GPIO(GPIO_FN_IRQ5_PB, IRQ5_PB_MARK), | ||
838 | PINMUX_GPIO(GPIO_FN_IRQ4_PB, IRQ4_PB_MARK), | ||
839 | PINMUX_GPIO(GPIO_FN_IRQ3_PB, IRQ3_PB_MARK), | ||
840 | PINMUX_GPIO(GPIO_FN_IRQ2_PB, IRQ2_PB_MARK), | ||
841 | PINMUX_GPIO(GPIO_FN_IRQ1_PB, IRQ1_PB_MARK), | ||
842 | PINMUX_GPIO(GPIO_FN_IRQ0_PB, IRQ0_PB_MARK), | ||
843 | PINMUX_GPIO(GPIO_FN_IRQ7_PD, IRQ7_PD_MARK), | ||
844 | PINMUX_GPIO(GPIO_FN_IRQ6_PD, IRQ6_PD_MARK), | ||
845 | PINMUX_GPIO(GPIO_FN_IRQ5_PD, IRQ5_PD_MARK), | ||
846 | PINMUX_GPIO(GPIO_FN_IRQ4_PD, IRQ4_PD_MARK), | ||
847 | PINMUX_GPIO(GPIO_FN_IRQ3_PD, IRQ3_PD_MARK), | ||
848 | PINMUX_GPIO(GPIO_FN_IRQ2_PD, IRQ2_PD_MARK), | ||
849 | PINMUX_GPIO(GPIO_FN_IRQ1_PD, IRQ1_PD_MARK), | ||
850 | PINMUX_GPIO(GPIO_FN_IRQ0_PD, IRQ0_PD_MARK), | ||
851 | PINMUX_GPIO(GPIO_FN_IRQ7_PE, IRQ7_PE_MARK), | ||
852 | PINMUX_GPIO(GPIO_FN_IRQ6_PE, IRQ6_PE_MARK), | ||
853 | PINMUX_GPIO(GPIO_FN_IRQ5_PE, IRQ5_PE_MARK), | ||
854 | PINMUX_GPIO(GPIO_FN_IRQ4_PE, IRQ4_PE_MARK), | ||
855 | PINMUX_GPIO(GPIO_FN_IRQ3_PE, IRQ3_PE_MARK), | ||
856 | PINMUX_GPIO(GPIO_FN_IRQ2_PE, IRQ2_PE_MARK), | ||
857 | PINMUX_GPIO(GPIO_FN_IRQ1_PE, IRQ1_PE_MARK), | ||
858 | PINMUX_GPIO(GPIO_FN_IRQ0_PE, IRQ0_PE_MARK), | ||
859 | |||
860 | PINMUX_GPIO(GPIO_FN_WDTOVF, WDTOVF_MARK), | ||
861 | PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), | ||
862 | PINMUX_GPIO(GPIO_FN_REFOUT, REFOUT_MARK), | ||
863 | PINMUX_GPIO(GPIO_FN_IRQOUT_REFOUT, IRQOUT_REFOUT_MARK), | ||
864 | PINMUX_GPIO(GPIO_FN_UBCTRG, UBCTRG_MARK), | ||
865 | |||
866 | /* CAN */ | ||
867 | PINMUX_GPIO(GPIO_FN_CTX1, CTX1_MARK), | ||
868 | PINMUX_GPIO(GPIO_FN_CRX1, CRX1_MARK), | ||
869 | PINMUX_GPIO(GPIO_FN_CTX0, CTX0_MARK), | ||
870 | PINMUX_GPIO(GPIO_FN_CTX0_CTX1, CTX0_CTX1_MARK), | ||
871 | PINMUX_GPIO(GPIO_FN_CRX0, CRX0_MARK), | ||
872 | PINMUX_GPIO(GPIO_FN_CRX0_CRX1, CRX0_CRX1_MARK), | ||
873 | |||
874 | /* IIC3 */ | ||
875 | PINMUX_GPIO(GPIO_FN_SDA3, SDA3_MARK), | ||
876 | PINMUX_GPIO(GPIO_FN_SCL3, SCL3_MARK), | ||
877 | PINMUX_GPIO(GPIO_FN_SDA2, SDA2_MARK), | ||
878 | PINMUX_GPIO(GPIO_FN_SCL2, SCL2_MARK), | ||
879 | PINMUX_GPIO(GPIO_FN_SDA1, SDA1_MARK), | ||
880 | PINMUX_GPIO(GPIO_FN_SCL1, SCL1_MARK), | ||
881 | PINMUX_GPIO(GPIO_FN_SDA0, SDA0_MARK), | ||
882 | PINMUX_GPIO(GPIO_FN_SCL0, SCL0_MARK), | ||
883 | |||
884 | /* DMAC */ | ||
885 | PINMUX_GPIO(GPIO_FN_TEND0_PD, TEND0_PD_MARK), | ||
886 | PINMUX_GPIO(GPIO_FN_TEND0_PE, TEND0_PE_MARK), | ||
887 | PINMUX_GPIO(GPIO_FN_DACK0_PD, DACK0_PD_MARK), | ||
888 | PINMUX_GPIO(GPIO_FN_DACK0_PE, DACK0_PE_MARK), | ||
889 | PINMUX_GPIO(GPIO_FN_DREQ0_PD, DREQ0_PD_MARK), | ||
890 | PINMUX_GPIO(GPIO_FN_DREQ0_PE, DREQ0_PE_MARK), | ||
891 | PINMUX_GPIO(GPIO_FN_TEND1_PD, TEND1_PD_MARK), | ||
892 | PINMUX_GPIO(GPIO_FN_TEND1_PE, TEND1_PE_MARK), | ||
893 | PINMUX_GPIO(GPIO_FN_DACK1_PD, DACK1_PD_MARK), | ||
894 | PINMUX_GPIO(GPIO_FN_DACK1_PE, DACK1_PE_MARK), | ||
895 | PINMUX_GPIO(GPIO_FN_DREQ1_PD, DREQ1_PD_MARK), | ||
896 | PINMUX_GPIO(GPIO_FN_DREQ1_PE, DREQ1_PE_MARK), | ||
897 | PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), | ||
898 | PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), | ||
899 | PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), | ||
900 | PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), | ||
901 | |||
902 | /* ADC */ | ||
903 | PINMUX_GPIO(GPIO_FN_ADTRG_PD, ADTRG_PD_MARK), | ||
904 | PINMUX_GPIO(GPIO_FN_ADTRG_PE, ADTRG_PE_MARK), | ||
905 | |||
906 | /* BSC */ | ||
907 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
908 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
909 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
910 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
911 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
912 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
913 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
914 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
915 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
916 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
917 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
918 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
919 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
920 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
921 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
922 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
923 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
924 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
925 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
926 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
927 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
928 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
929 | PINMUX_GPIO(GPIO_FN_MRES, MRES_MARK), | ||
930 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
931 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
932 | PINMUX_GPIO(GPIO_FN_CS1, CS1_MARK), | ||
933 | PINMUX_GPIO(GPIO_FN_CS6_CE1B, CS6_CE1B_MARK), | ||
934 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
935 | PINMUX_GPIO(GPIO_FN_CS5_CE1A, CS5_CE1A_MARK), | ||
936 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
937 | PINMUX_GPIO(GPIO_FN_FRAME, FRAME_MARK), | ||
938 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
939 | PINMUX_GPIO(GPIO_FN_RDWR, RDWR_MARK), | ||
940 | PINMUX_GPIO(GPIO_FN_CKE, CKE_MARK), | ||
941 | PINMUX_GPIO(GPIO_FN_CASU, CASU_MARK), | ||
942 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
943 | PINMUX_GPIO(GPIO_FN_RASU, RASU_MARK), | ||
944 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
945 | PINMUX_GPIO(GPIO_FN_CASL, CASL_MARK), | ||
946 | PINMUX_GPIO(GPIO_FN_RASL, RASL_MARK), | ||
947 | PINMUX_GPIO(GPIO_FN_WE3_DQMUU_AH_ICIO_WR, WE3_DQMUU_AH_ICIO_WR_MARK), | ||
948 | PINMUX_GPIO(GPIO_FN_WE2_DQMUL_ICIORD, WE2_DQMUL_ICIORD_MARK), | ||
949 | PINMUX_GPIO(GPIO_FN_WE1_DQMLU_WE, WE1_DQMLU_WE_MARK), | ||
950 | PINMUX_GPIO(GPIO_FN_WE0_DQMLL, WE0_DQMLL_MARK), | ||
951 | PINMUX_GPIO(GPIO_FN_CS3, CS3_MARK), | ||
952 | PINMUX_GPIO(GPIO_FN_CS2, CS2_MARK), | ||
953 | PINMUX_GPIO(GPIO_FN_A1, A1_MARK), | ||
954 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
955 | PINMUX_GPIO(GPIO_FN_CS7, CS7_MARK), | ||
956 | |||
957 | /* TMU */ | ||
958 | PINMUX_GPIO(GPIO_FN_TIOC4D, TIOC4D_MARK), | ||
959 | PINMUX_GPIO(GPIO_FN_TIOC4C, TIOC4C_MARK), | ||
960 | PINMUX_GPIO(GPIO_FN_TIOC4B, TIOC4B_MARK), | ||
961 | PINMUX_GPIO(GPIO_FN_TIOC4A, TIOC4A_MARK), | ||
962 | PINMUX_GPIO(GPIO_FN_TIOC3D, TIOC3D_MARK), | ||
963 | PINMUX_GPIO(GPIO_FN_TIOC3C, TIOC3C_MARK), | ||
964 | PINMUX_GPIO(GPIO_FN_TIOC3B, TIOC3B_MARK), | ||
965 | PINMUX_GPIO(GPIO_FN_TIOC3A, TIOC3A_MARK), | ||
966 | PINMUX_GPIO(GPIO_FN_TIOC2B, TIOC2B_MARK), | ||
967 | PINMUX_GPIO(GPIO_FN_TIOC1B, TIOC1B_MARK), | ||
968 | PINMUX_GPIO(GPIO_FN_TIOC2A, TIOC2A_MARK), | ||
969 | PINMUX_GPIO(GPIO_FN_TIOC1A, TIOC1A_MARK), | ||
970 | PINMUX_GPIO(GPIO_FN_TIOC0D, TIOC0D_MARK), | ||
971 | PINMUX_GPIO(GPIO_FN_TIOC0C, TIOC0C_MARK), | ||
972 | PINMUX_GPIO(GPIO_FN_TIOC0B, TIOC0B_MARK), | ||
973 | PINMUX_GPIO(GPIO_FN_TIOC0A, TIOC0A_MARK), | ||
974 | PINMUX_GPIO(GPIO_FN_TCLKD_PD, TCLKD_PD_MARK), | ||
975 | PINMUX_GPIO(GPIO_FN_TCLKC_PD, TCLKC_PD_MARK), | ||
976 | PINMUX_GPIO(GPIO_FN_TCLKB_PD, TCLKB_PD_MARK), | ||
977 | PINMUX_GPIO(GPIO_FN_TCLKA_PD, TCLKA_PD_MARK), | ||
978 | PINMUX_GPIO(GPIO_FN_TCLKD_PF, TCLKD_PF_MARK), | ||
979 | PINMUX_GPIO(GPIO_FN_TCLKC_PF, TCLKC_PF_MARK), | ||
980 | PINMUX_GPIO(GPIO_FN_TCLKB_PF, TCLKB_PF_MARK), | ||
981 | PINMUX_GPIO(GPIO_FN_TCLKA_PF, TCLKA_PF_MARK), | ||
982 | |||
983 | /* SSU */ | ||
984 | PINMUX_GPIO(GPIO_FN_SCS0_PD, SCS0_PD_MARK), | ||
985 | PINMUX_GPIO(GPIO_FN_SSO0_PD, SSO0_PD_MARK), | ||
986 | PINMUX_GPIO(GPIO_FN_SSI0_PD, SSI0_PD_MARK), | ||
987 | PINMUX_GPIO(GPIO_FN_SSCK0_PD, SSCK0_PD_MARK), | ||
988 | PINMUX_GPIO(GPIO_FN_SCS0_PF, SCS0_PF_MARK), | ||
989 | PINMUX_GPIO(GPIO_FN_SSO0_PF, SSO0_PF_MARK), | ||
990 | PINMUX_GPIO(GPIO_FN_SSI0_PF, SSI0_PF_MARK), | ||
991 | PINMUX_GPIO(GPIO_FN_SSCK0_PF, SSCK0_PF_MARK), | ||
992 | PINMUX_GPIO(GPIO_FN_SCS1_PD, SCS1_PD_MARK), | ||
993 | PINMUX_GPIO(GPIO_FN_SSO1_PD, SSO1_PD_MARK), | ||
994 | PINMUX_GPIO(GPIO_FN_SSI1_PD, SSI1_PD_MARK), | ||
995 | PINMUX_GPIO(GPIO_FN_SSCK1_PD, SSCK1_PD_MARK), | ||
996 | PINMUX_GPIO(GPIO_FN_SCS1_PF, SCS1_PF_MARK), | ||
997 | PINMUX_GPIO(GPIO_FN_SSO1_PF, SSO1_PF_MARK), | ||
998 | PINMUX_GPIO(GPIO_FN_SSI1_PF, SSI1_PF_MARK), | ||
999 | PINMUX_GPIO(GPIO_FN_SSCK1_PF, SSCK1_PF_MARK), | ||
1000 | |||
1001 | /* SCIF */ | ||
1002 | PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), | ||
1003 | PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), | ||
1004 | PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), | ||
1005 | PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), | ||
1006 | PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), | ||
1007 | PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), | ||
1008 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
1009 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
1010 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
1011 | PINMUX_GPIO(GPIO_FN_RTS3, RTS3_MARK), | ||
1012 | PINMUX_GPIO(GPIO_FN_CTS3, CTS3_MARK), | ||
1013 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
1014 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
1015 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
1016 | |||
1017 | /* SSI */ | ||
1018 | PINMUX_GPIO(GPIO_FN_AUDIO_CLK, AUDIO_CLK_MARK), | ||
1019 | PINMUX_GPIO(GPIO_FN_SSIDATA3, SSIDATA3_MARK), | ||
1020 | PINMUX_GPIO(GPIO_FN_SSIWS3, SSIWS3_MARK), | ||
1021 | PINMUX_GPIO(GPIO_FN_SSISCK3, SSISCK3_MARK), | ||
1022 | PINMUX_GPIO(GPIO_FN_SSIDATA2, SSIDATA2_MARK), | ||
1023 | PINMUX_GPIO(GPIO_FN_SSIWS2, SSIWS2_MARK), | ||
1024 | PINMUX_GPIO(GPIO_FN_SSISCK2, SSISCK2_MARK), | ||
1025 | PINMUX_GPIO(GPIO_FN_SSIDATA1, SSIDATA1_MARK), | ||
1026 | PINMUX_GPIO(GPIO_FN_SSIWS1, SSIWS1_MARK), | ||
1027 | PINMUX_GPIO(GPIO_FN_SSISCK1, SSISCK1_MARK), | ||
1028 | PINMUX_GPIO(GPIO_FN_SSIDATA0, SSIDATA0_MARK), | ||
1029 | PINMUX_GPIO(GPIO_FN_SSIWS0, SSIWS0_MARK), | ||
1030 | PINMUX_GPIO(GPIO_FN_SSISCK0, SSISCK0_MARK), | ||
1031 | |||
1032 | /* FLCTL */ | ||
1033 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1034 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1035 | PINMUX_GPIO(GPIO_FN_NAF7, NAF7_MARK), | ||
1036 | PINMUX_GPIO(GPIO_FN_NAF6, NAF6_MARK), | ||
1037 | PINMUX_GPIO(GPIO_FN_NAF5, NAF5_MARK), | ||
1038 | PINMUX_GPIO(GPIO_FN_NAF4, NAF4_MARK), | ||
1039 | PINMUX_GPIO(GPIO_FN_NAF3, NAF3_MARK), | ||
1040 | PINMUX_GPIO(GPIO_FN_NAF2, NAF2_MARK), | ||
1041 | PINMUX_GPIO(GPIO_FN_NAF1, NAF1_MARK), | ||
1042 | PINMUX_GPIO(GPIO_FN_NAF0, NAF0_MARK), | ||
1043 | PINMUX_GPIO(GPIO_FN_FSC, FSC_MARK), | ||
1044 | PINMUX_GPIO(GPIO_FN_FOE, FOE_MARK), | ||
1045 | PINMUX_GPIO(GPIO_FN_FCDE, FCDE_MARK), | ||
1046 | PINMUX_GPIO(GPIO_FN_FWE, FWE_MARK), | ||
1047 | |||
1048 | /* LCDC */ | ||
1049 | PINMUX_GPIO(GPIO_FN_LCD_VEPWC, LCD_VEPWC_MARK), | ||
1050 | PINMUX_GPIO(GPIO_FN_LCD_VCPWC, LCD_VCPWC_MARK), | ||
1051 | PINMUX_GPIO(GPIO_FN_LCD_CLK, LCD_CLK_MARK), | ||
1052 | PINMUX_GPIO(GPIO_FN_LCD_FLM, LCD_FLM_MARK), | ||
1053 | PINMUX_GPIO(GPIO_FN_LCD_M_DISP, LCD_M_DISP_MARK), | ||
1054 | PINMUX_GPIO(GPIO_FN_LCD_CL2, LCD_CL2_MARK), | ||
1055 | PINMUX_GPIO(GPIO_FN_LCD_CL1, LCD_CL1_MARK), | ||
1056 | PINMUX_GPIO(GPIO_FN_LCD_DON, LCD_DON_MARK), | ||
1057 | PINMUX_GPIO(GPIO_FN_LCD_DATA15, LCD_DATA15_MARK), | ||
1058 | PINMUX_GPIO(GPIO_FN_LCD_DATA14, LCD_DATA14_MARK), | ||
1059 | PINMUX_GPIO(GPIO_FN_LCD_DATA13, LCD_DATA13_MARK), | ||
1060 | PINMUX_GPIO(GPIO_FN_LCD_DATA12, LCD_DATA12_MARK), | ||
1061 | PINMUX_GPIO(GPIO_FN_LCD_DATA11, LCD_DATA11_MARK), | ||
1062 | PINMUX_GPIO(GPIO_FN_LCD_DATA10, LCD_DATA10_MARK), | ||
1063 | PINMUX_GPIO(GPIO_FN_LCD_DATA9, LCD_DATA9_MARK), | ||
1064 | PINMUX_GPIO(GPIO_FN_LCD_DATA8, LCD_DATA8_MARK), | ||
1065 | PINMUX_GPIO(GPIO_FN_LCD_DATA7, LCD_DATA7_MARK), | ||
1066 | PINMUX_GPIO(GPIO_FN_LCD_DATA6, LCD_DATA6_MARK), | ||
1067 | PINMUX_GPIO(GPIO_FN_LCD_DATA5, LCD_DATA5_MARK), | ||
1068 | PINMUX_GPIO(GPIO_FN_LCD_DATA4, LCD_DATA4_MARK), | ||
1069 | PINMUX_GPIO(GPIO_FN_LCD_DATA3, LCD_DATA3_MARK), | ||
1070 | PINMUX_GPIO(GPIO_FN_LCD_DATA2, LCD_DATA2_MARK), | ||
1071 | PINMUX_GPIO(GPIO_FN_LCD_DATA1, LCD_DATA1_MARK), | ||
1072 | PINMUX_GPIO(GPIO_FN_LCD_DATA0, LCD_DATA0_MARK), | ||
1073 | }; | ||
1074 | |||
1075 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1076 | { PINMUX_CFG_REG("PBIORL", 0xfffe3886, 16, 1) { | ||
1077 | 0, 0, | ||
1078 | 0, 0, | ||
1079 | 0, 0, | ||
1080 | 0, 0, | ||
1081 | PB11_IN, PB11_OUT, | ||
1082 | PB10_IN, PB10_OUT, | ||
1083 | PB9_IN, PB9_OUT, | ||
1084 | PB8_IN, PB8_OUT, | ||
1085 | 0, 0, | ||
1086 | 0, 0, | ||
1087 | 0, 0, | ||
1088 | 0, 0, | ||
1089 | 0, 0, | ||
1090 | 0, 0, | ||
1091 | 0, 0, | ||
1092 | 0, 0 } | ||
1093 | }, | ||
1094 | { PINMUX_CFG_REG("PBCRL4", 0xfffe3890, 16, 4) { | ||
1095 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1096 | |||
1097 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1098 | |||
1099 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1100 | |||
1101 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, | ||
1102 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1103 | }, | ||
1104 | { PINMUX_CFG_REG("PBCRL3", 0xfffe3892, 16, 4) { | ||
1105 | PB11MD_0, PB11MD_1, | ||
1106 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1107 | |||
1108 | PB10MD_0, PB10MD_1, | ||
1109 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1110 | |||
1111 | PB9MD_00, PB9MD_01, PB9MD_10, 0, | ||
1112 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1113 | |||
1114 | PB8MD_00, PB8MD_01, PB8MD_10, 0, | ||
1115 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1116 | }, | ||
1117 | { PINMUX_CFG_REG("PBCRL2", 0xfffe3894, 16, 4) { | ||
1118 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, | ||
1119 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1120 | |||
1121 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, | ||
1122 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1123 | |||
1124 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, | ||
1125 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1126 | |||
1127 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, | ||
1128 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1129 | }, | ||
1130 | { PINMUX_CFG_REG("PBCRL1", 0xfffe3896, 16, 4) { | ||
1131 | PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, | ||
1132 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1133 | |||
1134 | PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, | ||
1135 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1136 | |||
1137 | PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, | ||
1138 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1139 | |||
1140 | PB0MD_00, PB0MD_01, PB0MD_10, PB0MD_11, | ||
1141 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1142 | }, | ||
1143 | { PINMUX_CFG_REG("IFCR", 0xfffe38a2, 16, 4) { | ||
1144 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1145 | |||
1146 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1147 | |||
1148 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1149 | |||
1150 | PB12IRQ_00, PB12IRQ_01, PB12IRQ_10, 0, | ||
1151 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1152 | }, | ||
1153 | { PINMUX_CFG_REG("PCIORL", 0xfffe3906, 16, 1) { | ||
1154 | 0, 0, | ||
1155 | PC14_IN, PC14_OUT, | ||
1156 | PC13_IN, PC13_OUT, | ||
1157 | PC12_IN, PC12_OUT, | ||
1158 | PC11_IN, PC11_OUT, | ||
1159 | PC10_IN, PC10_OUT, | ||
1160 | PC9_IN, PC9_OUT, | ||
1161 | PC8_IN, PC8_OUT, | ||
1162 | PC7_IN, PC7_OUT, | ||
1163 | PC6_IN, PC6_OUT, | ||
1164 | PC5_IN, PC5_OUT, | ||
1165 | PC4_IN, PC4_OUT, | ||
1166 | PC3_IN, PC3_OUT, | ||
1167 | PC2_IN, PC2_OUT, | ||
1168 | PC1_IN, PC1_OUT, | ||
1169 | PC0_IN, PC0_OUT } | ||
1170 | }, | ||
1171 | { PINMUX_CFG_REG("PCCRL4", 0xfffe3910, 16, 4) { | ||
1172 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1173 | |||
1174 | PC14MD_0, PC14MD_1, | ||
1175 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1176 | |||
1177 | PC13MD_0, PC13MD_1, | ||
1178 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1179 | |||
1180 | PC12MD_0, PC12MD_1, | ||
1181 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1182 | }, | ||
1183 | { PINMUX_CFG_REG("PCCRL3", 0xfffe3912, 16, 4) { | ||
1184 | PC11MD_00, PC11MD_01, PC11MD_10, 0, | ||
1185 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1186 | |||
1187 | PC10MD_00, PC10MD_01, PC10MD_10, 0, | ||
1188 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1189 | |||
1190 | PC9MD_0, PC9MD_1, | ||
1191 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1192 | |||
1193 | PC8MD_0, PC8MD_1, | ||
1194 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1195 | }, | ||
1196 | { PINMUX_CFG_REG("PCCRL2", 0xfffe3914, 16, 4) { | ||
1197 | PC7MD_0, PC7MD_1, | ||
1198 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1199 | |||
1200 | PC6MD_0, PC6MD_1, | ||
1201 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1202 | |||
1203 | PC5MD_0, PC5MD_1, | ||
1204 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1205 | |||
1206 | PC4MD_0, PC4MD_1, | ||
1207 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1208 | }, | ||
1209 | { PINMUX_CFG_REG("PCCRL1", 0xfffe3916, 16, 4) { | ||
1210 | PC3MD_0, PC3MD_1, | ||
1211 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1212 | |||
1213 | PC2MD_0, PC2MD_1, | ||
1214 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1215 | |||
1216 | PC1MD_0, PC1MD_1, | ||
1217 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1218 | |||
1219 | PC0MD_00, PC0MD_01, PC0MD_10, 0, | ||
1220 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1221 | }, | ||
1222 | { PINMUX_CFG_REG("PDIORL", 0xfffe3986, 16, 1) { | ||
1223 | PD15_IN, PD15_OUT, | ||
1224 | PD14_IN, PD14_OUT, | ||
1225 | PD13_IN, PD13_OUT, | ||
1226 | PD12_IN, PD12_OUT, | ||
1227 | PD11_IN, PD11_OUT, | ||
1228 | PD10_IN, PD10_OUT, | ||
1229 | PD9_IN, PD9_OUT, | ||
1230 | PD8_IN, PD8_OUT, | ||
1231 | PD7_IN, PD7_OUT, | ||
1232 | PD6_IN, PD6_OUT, | ||
1233 | PD5_IN, PD5_OUT, | ||
1234 | PD4_IN, PD4_OUT, | ||
1235 | PD3_IN, PD3_OUT, | ||
1236 | PD2_IN, PD2_OUT, | ||
1237 | PD1_IN, PD1_OUT, | ||
1238 | PD0_IN, PD0_OUT } | ||
1239 | }, | ||
1240 | { PINMUX_CFG_REG("PDCRL4", 0xfffe3990, 16, 4) { | ||
1241 | PD15MD_000, PD15MD_001, PD15MD_010, 0, | ||
1242 | PD15MD_100, PD15MD_101, 0, 0, | ||
1243 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1244 | |||
1245 | PD14MD_000, PD14MD_001, PD14MD_010, 0, | ||
1246 | 0, PD14MD_101, 0, 0, | ||
1247 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1248 | |||
1249 | PD13MD_000, PD13MD_001, PD13MD_010, 0, | ||
1250 | PD13MD_100, PD13MD_101, 0, 0, | ||
1251 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1252 | |||
1253 | PD12MD_000, PD12MD_001, PD12MD_010, 0, | ||
1254 | PD12MD_100, PD12MD_101, 0, 0, | ||
1255 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1256 | }, | ||
1257 | { PINMUX_CFG_REG("PDCRL3", 0xfffe3992, 16, 4) { | ||
1258 | PD11MD_000, PD11MD_001, PD11MD_010, 0, | ||
1259 | PD11MD_100, PD11MD_101, 0, 0, | ||
1260 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1261 | |||
1262 | PD10MD_000, PD10MD_001, PD10MD_010, 0, | ||
1263 | PD10MD_100, PD10MD_101, 0, 0, | ||
1264 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1265 | |||
1266 | PD9MD_000, PD9MD_001, PD9MD_010, 0, | ||
1267 | PD9MD_100, PD9MD_101, 0, 0, | ||
1268 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1269 | |||
1270 | PD8MD_000, PD8MD_001, PD8MD_010, 0, | ||
1271 | PD8MD_100, PD8MD_101, 0, 0, | ||
1272 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1273 | }, | ||
1274 | { PINMUX_CFG_REG("PDCRL2", 0xfffe3994, 16, 4) { | ||
1275 | PD7MD_000, PD7MD_001, PD7MD_010, PD7MD_011, | ||
1276 | PD7MD_100, PD7MD_101, 0, 0, | ||
1277 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1278 | |||
1279 | PD6MD_000, PD6MD_001, PD6MD_010, PD6MD_011, | ||
1280 | PD6MD_100, PD6MD_101, 0, 0, | ||
1281 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1282 | |||
1283 | PD5MD_000, PD5MD_001, PD5MD_010, PD5MD_011, | ||
1284 | PD5MD_100, PD5MD_101, 0, 0, | ||
1285 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1286 | |||
1287 | PD4MD_000, PD4MD_001, PD4MD_010, PD4MD_011, | ||
1288 | PD4MD_100, PD4MD_101, 0, 0, | ||
1289 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1290 | }, | ||
1291 | { PINMUX_CFG_REG("PDCRL1", 0xfffe3996, 16, 4) { | ||
1292 | PD3MD_000, PD3MD_001, PD3MD_010, PD3MD_011, | ||
1293 | PD3MD_100, PD3MD_101, 0, 0, | ||
1294 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1295 | |||
1296 | PD2MD_000, PD2MD_001, PD2MD_010, PD2MD_011, | ||
1297 | PD2MD_100, PD2MD_101, 0, 0, | ||
1298 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1299 | |||
1300 | PD1MD_000, PD1MD_001, PD1MD_010, PD1MD_011, | ||
1301 | PD1MD_100, PD1MD_101, 0, 0, | ||
1302 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1303 | |||
1304 | PD0MD_000, PD0MD_001, PD0MD_010, PD0MD_011, | ||
1305 | PD0MD_100, PD0MD_101, 0, 0, | ||
1306 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1307 | }, | ||
1308 | { PINMUX_CFG_REG("PEIORL", 0xfffe3a06, 16, 1) { | ||
1309 | PE15_IN, PE15_OUT, | ||
1310 | PE14_IN, PE14_OUT, | ||
1311 | PE13_IN, PE13_OUT, | ||
1312 | PE12_IN, PE12_OUT, | ||
1313 | PE11_IN, PE11_OUT, | ||
1314 | PE10_IN, PE10_OUT, | ||
1315 | PE9_IN, PE9_OUT, | ||
1316 | PE8_IN, PE8_OUT, | ||
1317 | PE7_IN, PE7_OUT, | ||
1318 | PE6_IN, PE6_OUT, | ||
1319 | PE5_IN, PE5_OUT, | ||
1320 | PE4_IN, PE4_OUT, | ||
1321 | PE3_IN, PE3_OUT, | ||
1322 | PE2_IN, PE2_OUT, | ||
1323 | PE1_IN, PE1_OUT, | ||
1324 | PE0_IN, PE0_OUT } | ||
1325 | }, | ||
1326 | { PINMUX_CFG_REG("PECRL4", 0xfffe3a10, 16, 4) { | ||
1327 | PE15MD_00, PE15MD_01, 0, PE15MD_11, | ||
1328 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1329 | |||
1330 | PE14MD_00, PE14MD_01, 0, PE14MD_11, | ||
1331 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1332 | |||
1333 | PE13MD_00, 0, 0, PE13MD_11, | ||
1334 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1335 | |||
1336 | PE12MD_00, 0, 0, PE12MD_11, | ||
1337 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1338 | }, | ||
1339 | { PINMUX_CFG_REG("PECRL3", 0xfffe3a12, 16, 4) { | ||
1340 | PE11MD_000, PE11MD_001, PE11MD_010, 0, | ||
1341 | PE11MD_100, 0, 0, 0, | ||
1342 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1343 | |||
1344 | PE10MD_000, PE10MD_001, PE10MD_010, 0, | ||
1345 | PE10MD_100, 0, 0, 0, | ||
1346 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1347 | |||
1348 | PE9MD_00, PE9MD_01, PE9MD_10, PE9MD_11, | ||
1349 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1350 | |||
1351 | PE8MD_00, PE8MD_01, PE8MD_10, PE8MD_11, | ||
1352 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1353 | }, | ||
1354 | { PINMUX_CFG_REG("PECRL2", 0xfffe3a14, 16, 4) { | ||
1355 | PE7MD_000, PE7MD_001, PE7MD_010, PE7MD_011, | ||
1356 | PE7MD_100, 0, 0, 0, | ||
1357 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1358 | |||
1359 | PE6MD_000, PE6MD_001, PE6MD_010, PE6MD_011, | ||
1360 | PE6MD_100, 0, 0, 0, | ||
1361 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1362 | |||
1363 | PE5MD_000, PE5MD_001, PE5MD_010, PE5MD_011, | ||
1364 | PE5MD_100, 0, 0, 0, | ||
1365 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1366 | |||
1367 | PE4MD_000, PE4MD_001, PE4MD_010, PE4MD_011, | ||
1368 | PE4MD_100, 0, 0, 0, | ||
1369 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1370 | }, | ||
1371 | { PINMUX_CFG_REG("PECRL1", 0xfffe3a16, 16, 4) { | ||
1372 | PE3MD_00, PE3MD_01, 0, PE3MD_11, | ||
1373 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1374 | |||
1375 | PE2MD_00, PE2MD_01, 0, PE2MD_11, | ||
1376 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1377 | |||
1378 | PE1MD_00, PE1MD_01, PE1MD_10, PE1MD_11, | ||
1379 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1380 | |||
1381 | PE0MD_000, PE0MD_001, 0, PE0MD_011, | ||
1382 | PE0MD_100, 0, 0, 0, | ||
1383 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1384 | }, | ||
1385 | { PINMUX_CFG_REG("PFIORH", 0xfffe3a84, 16, 1) { | ||
1386 | 0, 0, | ||
1387 | PF30_IN, PF30_OUT, | ||
1388 | PF29_IN, PF29_OUT, | ||
1389 | PF28_IN, PF28_OUT, | ||
1390 | PF27_IN, PF27_OUT, | ||
1391 | PF26_IN, PF26_OUT, | ||
1392 | PF25_IN, PF25_OUT, | ||
1393 | PF24_IN, PF24_OUT, | ||
1394 | PF23_IN, PF23_OUT, | ||
1395 | PF22_IN, PF22_OUT, | ||
1396 | PF21_IN, PF21_OUT, | ||
1397 | PF20_IN, PF20_OUT, | ||
1398 | PF19_IN, PF19_OUT, | ||
1399 | PF18_IN, PF18_OUT, | ||
1400 | PF17_IN, PF17_OUT, | ||
1401 | PF16_IN, PF16_OUT } | ||
1402 | }, | ||
1403 | { PINMUX_CFG_REG("PFIORL", 0xfffe3a86, 16, 1) { | ||
1404 | PF15_IN, PF15_OUT, | ||
1405 | PF14_IN, PF14_OUT, | ||
1406 | PF13_IN, PF13_OUT, | ||
1407 | PF12_IN, PF12_OUT, | ||
1408 | PF11_IN, PF11_OUT, | ||
1409 | PF10_IN, PF10_OUT, | ||
1410 | PF9_IN, PF9_OUT, | ||
1411 | PF8_IN, PF8_OUT, | ||
1412 | PF7_IN, PF7_OUT, | ||
1413 | PF6_IN, PF6_OUT, | ||
1414 | PF5_IN, PF5_OUT, | ||
1415 | PF4_IN, PF4_OUT, | ||
1416 | PF3_IN, PF3_OUT, | ||
1417 | PF2_IN, PF2_OUT, | ||
1418 | PF1_IN, PF1_OUT, | ||
1419 | PF0_IN, PF0_OUT } | ||
1420 | }, | ||
1421 | { PINMUX_CFG_REG("PFCRH4", 0xfffe3a88, 16, 4) { | ||
1422 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1423 | |||
1424 | PF30MD_0, PF30MD_1, | ||
1425 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1426 | |||
1427 | PF29MD_0, PF29MD_1, | ||
1428 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1429 | |||
1430 | PF28MD_0, PF28MD_1, | ||
1431 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1432 | }, | ||
1433 | { PINMUX_CFG_REG("PFCRH3", 0xfffe3a8a, 16, 4) { | ||
1434 | PF27MD_0, PF27MD_1, | ||
1435 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1436 | |||
1437 | PF26MD_0, PF26MD_1, | ||
1438 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1439 | |||
1440 | PF25MD_0, PF25MD_1, | ||
1441 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1442 | |||
1443 | PF24MD_0, PF24MD_1, | ||
1444 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1445 | }, | ||
1446 | { PINMUX_CFG_REG("PFCRH2", 0xfffe3a8c, 16, 4) { | ||
1447 | PF23MD_00, PF23MD_01, PF23MD_10, 0, | ||
1448 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1449 | |||
1450 | PF22MD_00, PF22MD_01, PF22MD_10, 0, | ||
1451 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1452 | |||
1453 | PF21MD_00, PF21MD_01, PF21MD_10, 0, | ||
1454 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1455 | |||
1456 | PF20MD_00, PF20MD_01, PF20MD_10, 0, | ||
1457 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1458 | }, | ||
1459 | { PINMUX_CFG_REG("PFCRH1", 0xfffe3a8e, 16, 4) { | ||
1460 | PF19MD_00, PF19MD_01, PF19MD_10, 0, | ||
1461 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1462 | |||
1463 | PF18MD_00, PF18MD_01, PF18MD_10, 0, | ||
1464 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1465 | |||
1466 | PF17MD_00, PF17MD_01, PF17MD_10, 0, | ||
1467 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1468 | |||
1469 | PF16MD_00, PF16MD_01, PF16MD_10, 0, | ||
1470 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1471 | }, | ||
1472 | { PINMUX_CFG_REG("PFCRL4", 0xfffe3a90, 16, 4) { | ||
1473 | PF15MD_00, PF15MD_01, PF15MD_10, 0, | ||
1474 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1475 | |||
1476 | PF14MD_00, PF14MD_01, PF14MD_10, 0, | ||
1477 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1478 | |||
1479 | PF13MD_00, PF13MD_01, PF13MD_10, 0, | ||
1480 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1481 | |||
1482 | PF12MD_00, PF12MD_01, PF12MD_10, 0, | ||
1483 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1484 | }, | ||
1485 | { PINMUX_CFG_REG("PFCRL3", 0xfffe3a92, 16, 4) { | ||
1486 | PF11MD_00, PF11MD_01, PF11MD_10, 0, | ||
1487 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1488 | |||
1489 | PF10MD_00, PF10MD_01, PF10MD_10, 0, | ||
1490 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1491 | |||
1492 | PF9MD_00, PF9MD_01, PF9MD_10, 0, | ||
1493 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1494 | |||
1495 | PF8MD_00, PF8MD_01, PF8MD_10, 0, | ||
1496 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1497 | }, | ||
1498 | { PINMUX_CFG_REG("PFCRL2", 0xfffe3a94, 16, 4) { | ||
1499 | PF7MD_00, PF7MD_01, PF7MD_10, PF7MD_11, | ||
1500 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1501 | |||
1502 | PF6MD_00, PF6MD_01, PF6MD_10, PF6MD_11, | ||
1503 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1504 | |||
1505 | PF5MD_00, PF5MD_01, PF5MD_10, PF5MD_11, | ||
1506 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1507 | |||
1508 | PF4MD_00, PF4MD_01, PF4MD_10, PF4MD_11, | ||
1509 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1510 | }, | ||
1511 | { PINMUX_CFG_REG("PFCRL1", 0xfffe3a96, 16, 4) { | ||
1512 | PF3MD_00, PF3MD_01, PF3MD_10, PF3MD_11, | ||
1513 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1514 | |||
1515 | PF2MD_00, PF2MD_01, PF2MD_10, PF2MD_11, | ||
1516 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1517 | |||
1518 | PF1MD_00, PF1MD_01, PF1MD_10, PF1MD_11, | ||
1519 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1520 | |||
1521 | PF0MD_00, PF0MD_01, PF0MD_10, PF0MD_11, | ||
1522 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1523 | }, | ||
1524 | {} | ||
1525 | }; | ||
1526 | |||
1527 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1528 | { PINMUX_DATA_REG("PADRL", 0xfffe3802, 16) { | ||
1529 | 0, 0, 0, 0, | ||
1530 | 0, 0, 0, 0, | ||
1531 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
1532 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA } | ||
1533 | }, | ||
1534 | { PINMUX_DATA_REG("PBDRL", 0xfffe3882, 16) { | ||
1535 | 0, 0, 0, PB12_DATA, | ||
1536 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
1537 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
1538 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA } | ||
1539 | }, | ||
1540 | { PINMUX_DATA_REG("PCDRL", 0xfffe3902, 16) { | ||
1541 | 0, PC14_DATA, PC13_DATA, PC12_DATA, | ||
1542 | PC11_DATA, PC10_DATA, PC9_DATA, PC8_DATA, | ||
1543 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
1544 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
1545 | }, | ||
1546 | { PINMUX_DATA_REG("PDDRL", 0xfffe3982, 16) { | ||
1547 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
1548 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
1549 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
1550 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
1551 | }, | ||
1552 | { PINMUX_DATA_REG("PEDRL", 0xfffe3a02, 16) { | ||
1553 | PE15_DATA, PE14_DATA, PE13_DATA, PE12_DATA, | ||
1554 | PE11_DATA, PE10_DATA, PE9_DATA, PE8_DATA, | ||
1555 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
1556 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA } | ||
1557 | }, | ||
1558 | { PINMUX_DATA_REG("PFDRH", 0xfffe3a80, 16) { | ||
1559 | 0, PF30_DATA, PF29_DATA, PF28_DATA, | ||
1560 | PF27_DATA, PF26_DATA, PF25_DATA, PF24_DATA, | ||
1561 | PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA, | ||
1562 | PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA } | ||
1563 | }, | ||
1564 | { PINMUX_DATA_REG("PFDRL", 0xfffe3a82, 16) { | ||
1565 | PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA, | ||
1566 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
1567 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
1568 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
1569 | }, | ||
1570 | { }, | ||
1571 | }; | ||
1572 | |||
1573 | static struct pinmux_info sh7203_pinmux_info = { | ||
1574 | .name = "sh7203_pfc", | ||
1575 | .reserved_id = PINMUX_RESERVED, | ||
1576 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1577 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN }, | ||
1578 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT }, | ||
1579 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1580 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1581 | |||
1582 | .first_gpio = GPIO_PA7, | ||
1583 | .last_gpio = GPIO_FN_LCD_DATA0, | ||
1584 | |||
1585 | .gpios = pinmux_gpios, | ||
1586 | .cfg_regs = pinmux_config_regs, | ||
1587 | .data_regs = pinmux_data_regs, | ||
1588 | |||
1589 | .gpio_data = pinmux_data, | ||
1590 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1591 | }; | ||
1592 | 14 | ||
1593 | static int __init plat_pinmux_setup(void) | 15 | static int __init plat_pinmux_setup(void) |
1594 | { | 16 | { |
1595 | return register_pinmux(&sh7203_pinmux_info); | 17 | return sh_pfc_register("pfc-sh7203", NULL, 0); |
1596 | } | 18 | } |
1597 | arch_initcall(plat_pinmux_setup); | 19 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c b/arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c index b055b55d6f27..b1b7c1bae127 100644 --- a/arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c +++ b/arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c | |||
@@ -10,2127 +10,10 @@ | |||
10 | 10 | ||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/gpio.h> | 13 | #include <cpu/pfc.h> |
14 | #include <cpu/sh7264.h> | ||
15 | |||
16 | enum { | ||
17 | PINMUX_RESERVED = 0, | ||
18 | |||
19 | PINMUX_DATA_BEGIN, | ||
20 | /* Port A */ | ||
21 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
22 | /* Port B */ | ||
23 | PB22_DATA, PB21_DATA, PB20_DATA, | ||
24 | PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA, | ||
25 | PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA, | ||
26 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
27 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
28 | PB3_DATA, PB2_DATA, PB1_DATA, | ||
29 | /* Port C */ | ||
30 | PC10_DATA, PC9_DATA, PC8_DATA, | ||
31 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
32 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
33 | /* Port D */ | ||
34 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
35 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
36 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
37 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
38 | /* Port E */ | ||
39 | PE5_DATA, PE4_DATA, | ||
40 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
41 | /* Port F */ | ||
42 | PF12_DATA, | ||
43 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
44 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
45 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
46 | /* Port G */ | ||
47 | PG24_DATA, | ||
48 | PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA, | ||
49 | PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA, | ||
50 | PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA, | ||
51 | PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA, | ||
52 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
53 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
54 | /* Port H */ | ||
55 | /* NOTE - Port H does not have a Data Register, but PH Data is | ||
56 | connected to PH Port Register */ | ||
57 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
58 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
59 | /* Port I - not on device */ | ||
60 | /* Port J */ | ||
61 | PJ12_DATA, | ||
62 | PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA, | ||
63 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
64 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA, | ||
65 | /* Port K */ | ||
66 | PK12_DATA, | ||
67 | PK11_DATA, PK10_DATA, PK9_DATA, PK8_DATA, | ||
68 | PK7_DATA, PK6_DATA, PK5_DATA, PK4_DATA, | ||
69 | PK3_DATA, PK2_DATA, PK1_DATA, PK0_DATA, | ||
70 | PINMUX_DATA_END, | ||
71 | |||
72 | PINMUX_INPUT_BEGIN, | ||
73 | FORCE_IN, | ||
74 | /* Port A */ | ||
75 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
76 | /* Port B */ | ||
77 | PB22_IN, PB21_IN, PB20_IN, | ||
78 | PB19_IN, PB18_IN, PB17_IN, PB16_IN, | ||
79 | PB15_IN, PB14_IN, PB13_IN, PB12_IN, | ||
80 | PB11_IN, PB10_IN, PB9_IN, PB8_IN, | ||
81 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
82 | PB3_IN, PB2_IN, PB1_IN, | ||
83 | /* Port C */ | ||
84 | PC10_IN, PC9_IN, PC8_IN, | ||
85 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
86 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
87 | /* Port D */ | ||
88 | PD15_IN, PD14_IN, PD13_IN, PD12_IN, | ||
89 | PD11_IN, PD10_IN, PD9_IN, PD8_IN, | ||
90 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
91 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
92 | /* Port E */ | ||
93 | PE5_IN, PE4_IN, | ||
94 | PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
95 | /* Port F */ | ||
96 | PF12_IN, | ||
97 | PF11_IN, PF10_IN, PF9_IN, PF8_IN, | ||
98 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
99 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
100 | /* Port G */ | ||
101 | PG24_IN, | ||
102 | PG23_IN, PG22_IN, PG21_IN, PG20_IN, | ||
103 | PG19_IN, PG18_IN, PG17_IN, PG16_IN, | ||
104 | PG15_IN, PG14_IN, PG13_IN, PG12_IN, | ||
105 | PG11_IN, PG10_IN, PG9_IN, PG8_IN, | ||
106 | PG7_IN, PG6_IN, PG5_IN, PG4_IN, | ||
107 | PG3_IN, PG2_IN, PG1_IN, PG0_IN, | ||
108 | /* Port H - Port H does not have a Data Register */ | ||
109 | /* Port I - not on device */ | ||
110 | /* Port J */ | ||
111 | PJ12_IN, | ||
112 | PJ11_IN, PJ10_IN, PJ9_IN, PJ8_IN, | ||
113 | PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN, | ||
114 | PJ3_IN, PJ2_IN, PJ1_IN, PJ0_IN, | ||
115 | /* Port K */ | ||
116 | PK12_IN, | ||
117 | PK11_IN, PK10_IN, PK9_IN, PK8_IN, | ||
118 | PK7_IN, PK6_IN, PK5_IN, PK4_IN, | ||
119 | PK3_IN, PK2_IN, PK1_IN, PK0_IN, | ||
120 | PINMUX_INPUT_END, | ||
121 | |||
122 | PINMUX_OUTPUT_BEGIN, | ||
123 | FORCE_OUT, | ||
124 | /* Port A */ | ||
125 | PA3_OUT, PA2_OUT, PA1_OUT, PA0_OUT, | ||
126 | /* Port B */ | ||
127 | PB22_OUT, PB21_OUT, PB20_OUT, | ||
128 | PB19_OUT, PB18_OUT, PB17_OUT, PB16_OUT, | ||
129 | PB15_OUT, PB14_OUT, PB13_OUT, PB12_OUT, | ||
130 | PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT, | ||
131 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
132 | PB3_OUT, PB2_OUT, PB1_OUT, | ||
133 | /* Port C */ | ||
134 | PC10_OUT, PC9_OUT, PC8_OUT, | ||
135 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
136 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
137 | /* Port D */ | ||
138 | PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT, | ||
139 | PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT, | ||
140 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
141 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
142 | /* Port E */ | ||
143 | PE5_OUT, PE4_OUT, | ||
144 | PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
145 | /* Port F */ | ||
146 | PF12_OUT, | ||
147 | PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT, | ||
148 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
149 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
150 | /* Port G */ | ||
151 | PG24_OUT, | ||
152 | PG23_OUT, PG22_OUT, PG21_OUT, PG20_OUT, | ||
153 | PG19_OUT, PG18_OUT, PG17_OUT, PG16_OUT, | ||
154 | PG15_OUT, PG14_OUT, PG13_OUT, PG12_OUT, | ||
155 | PG11_OUT, PG10_OUT, PG9_OUT, PG8_OUT, | ||
156 | PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT, | ||
157 | PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT, | ||
158 | /* Port H - Port H does not have a Data Register */ | ||
159 | /* Port I - not on device */ | ||
160 | /* Port J */ | ||
161 | PJ12_OUT, | ||
162 | PJ11_OUT, PJ10_OUT, PJ9_OUT, PJ8_OUT, | ||
163 | PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT, | ||
164 | PJ3_OUT, PJ2_OUT, PJ1_OUT, PJ0_OUT, | ||
165 | /* Port K */ | ||
166 | PK12_OUT, | ||
167 | PK11_OUT, PK10_OUT, PK9_OUT, PK8_OUT, | ||
168 | PK7_OUT, PK6_OUT, PK5_OUT, PK4_OUT, | ||
169 | PK3_OUT, PK2_OUT, PK1_OUT, PK0_OUT, | ||
170 | PINMUX_OUTPUT_END, | ||
171 | |||
172 | PINMUX_FUNCTION_BEGIN, | ||
173 | /* Port A */ | ||
174 | PA3_IOR_IN, PA3_IOR_OUT, | ||
175 | PA2_IOR_IN, PA2_IOR_OUT, | ||
176 | PA1_IOR_IN, PA1_IOR_OUT, | ||
177 | PA0_IOR_IN, PA0_IOR_OUT, | ||
178 | |||
179 | /* Port B */ | ||
180 | PB11_IOR_IN, PB11_IOR_OUT, | ||
181 | PB10_IOR_IN, PB10_IOR_OUT, | ||
182 | PB9_IOR_IN, PB9_IOR_OUT, | ||
183 | PB8_IOR_IN, PB8_IOR_OUT, | ||
184 | |||
185 | PB22MD_00, PB22MD_01, PB22MD_10, | ||
186 | PB21MD_0, PB21MD_1, | ||
187 | PB20MD_0, PB20MD_1, | ||
188 | PB19MD_00, PB19MD_01, PB19MD_10, PB19MD_11, | ||
189 | PB18MD_00, PB18MD_01, PB18MD_10, PB18MD_11, | ||
190 | PB17MD_00, PB17MD_01, PB17MD_10, PB17MD_11, | ||
191 | PB16MD_00, PB16MD_01, PB16MD_10, PB16MD_11, | ||
192 | PB15MD_00, PB15MD_01, PB15MD_10, PB15MD_11, | ||
193 | PB14MD_00, PB14MD_01, PB14MD_10, PB14MD_11, | ||
194 | PB13MD_00, PB13MD_01, PB13MD_10, PB13MD_11, | ||
195 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, | ||
196 | PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11, | ||
197 | PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11, | ||
198 | PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11, | ||
199 | PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11, | ||
200 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, | ||
201 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, | ||
202 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, | ||
203 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, | ||
204 | PB3MD_0, PB3MD_1, | ||
205 | PB2MD_0, PB2MD_1, | ||
206 | PB1MD_0, PB1MD_1, | ||
207 | |||
208 | /* Port C */ | ||
209 | PC14_IOR_IN, PC14_IOR_OUT, | ||
210 | PC13_IOR_IN, PC13_IOR_OUT, | ||
211 | PC12_IOR_IN, PC12_IOR_OUT, | ||
212 | PC11_IOR_IN, PC11_IOR_OUT, | ||
213 | PC10_IOR_IN, PC10_IOR_OUT, | ||
214 | PC9_IOR_IN, PC9_IOR_OUT, | ||
215 | PC8_IOR_IN, PC8_IOR_OUT, | ||
216 | PC7_IOR_IN, PC7_IOR_OUT, | ||
217 | PC6_IOR_IN, PC6_IOR_OUT, | ||
218 | PC5_IOR_IN, PC5_IOR_OUT, | ||
219 | PC4_IOR_IN, PC4_IOR_OUT, | ||
220 | PC3_IOR_IN, PC3_IOR_OUT, | ||
221 | PC2_IOR_IN, PC2_IOR_OUT, | ||
222 | PC1_IOR_IN, PC1_IOR_OUT, | ||
223 | PC0_IOR_IN, PC0_IOR_OUT, | ||
224 | |||
225 | PC10MD_0, PC10MD_1, | ||
226 | PC9MD_0, PC9MD_1, | ||
227 | PC8MD_00, PC8MD_01, PC8MD_10, PC8MD_11, | ||
228 | PC7MD_00, PC7MD_01, PC7MD_10, PC7MD_11, | ||
229 | PC6MD_00, PC6MD_01, PC6MD_10, PC6MD_11, | ||
230 | PC5MD_00, PC5MD_01, PC5MD_10, PC5MD_11, | ||
231 | PC4MD_0, PC4MD_1, | ||
232 | PC3MD_0, PC3MD_1, | ||
233 | PC2MD_0, PC2MD_1, | ||
234 | PC1MD_0, PC1MD_1, | ||
235 | PC0MD_0, PC0MD_1, | ||
236 | |||
237 | /* Port D */ | ||
238 | PD15_IOR_IN, PD15_IOR_OUT, | ||
239 | PD14_IOR_IN, PD14_IOR_OUT, | ||
240 | PD13_IOR_IN, PD13_IOR_OUT, | ||
241 | PD12_IOR_IN, PD12_IOR_OUT, | ||
242 | PD11_IOR_IN, PD11_IOR_OUT, | ||
243 | PD10_IOR_IN, PD10_IOR_OUT, | ||
244 | PD9_IOR_IN, PD9_IOR_OUT, | ||
245 | PD8_IOR_IN, PD8_IOR_OUT, | ||
246 | PD7_IOR_IN, PD7_IOR_OUT, | ||
247 | PD6_IOR_IN, PD6_IOR_OUT, | ||
248 | PD5_IOR_IN, PD5_IOR_OUT, | ||
249 | PD4_IOR_IN, PD4_IOR_OUT, | ||
250 | PD3_IOR_IN, PD3_IOR_OUT, | ||
251 | PD2_IOR_IN, PD2_IOR_OUT, | ||
252 | PD1_IOR_IN, PD1_IOR_OUT, | ||
253 | PD0_IOR_IN, PD0_IOR_OUT, | ||
254 | |||
255 | PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11, | ||
256 | PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11, | ||
257 | PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11, | ||
258 | PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11, | ||
259 | PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11, | ||
260 | PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11, | ||
261 | PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11, | ||
262 | PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11, | ||
263 | PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11, | ||
264 | PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11, | ||
265 | PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11, | ||
266 | PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11, | ||
267 | PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11, | ||
268 | PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11, | ||
269 | PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11, | ||
270 | PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11, | ||
271 | |||
272 | /* Port E */ | ||
273 | PE5_IOR_IN, PE5_IOR_OUT, | ||
274 | PE4_IOR_IN, PE4_IOR_OUT, | ||
275 | PE3_IOR_IN, PE3_IOR_OUT, | ||
276 | PE2_IOR_IN, PE2_IOR_OUT, | ||
277 | PE1_IOR_IN, PE1_IOR_OUT, | ||
278 | PE0_IOR_IN, PE0_IOR_OUT, | ||
279 | |||
280 | PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11, | ||
281 | PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11, | ||
282 | PE3MD_00, PE3MD_01, PE3MD_10, PE3MD_11, | ||
283 | PE2MD_00, PE2MD_01, PE2MD_10, PE2MD_11, | ||
284 | PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011, | ||
285 | PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111, | ||
286 | PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, | ||
287 | |||
288 | /* Port F */ | ||
289 | PF12_IOR_IN, PF12_IOR_OUT, | ||
290 | PF11_IOR_IN, PF11_IOR_OUT, | ||
291 | PF10_IOR_IN, PF10_IOR_OUT, | ||
292 | PF9_IOR_IN, PF9_IOR_OUT, | ||
293 | PF8_IOR_IN, PF8_IOR_OUT, | ||
294 | PF7_IOR_IN, PF7_IOR_OUT, | ||
295 | PF6_IOR_IN, PF6_IOR_OUT, | ||
296 | PF5_IOR_IN, PF5_IOR_OUT, | ||
297 | PF4_IOR_IN, PF4_IOR_OUT, | ||
298 | PF3_IOR_IN, PF3_IOR_OUT, | ||
299 | PF2_IOR_IN, PF2_IOR_OUT, | ||
300 | PF1_IOR_IN, PF1_IOR_OUT, | ||
301 | PF0_IOR_IN, PF0_IOR_OUT, | ||
302 | |||
303 | PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011, | ||
304 | PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111, | ||
305 | PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011, | ||
306 | PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111, | ||
307 | PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011, | ||
308 | PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111, | ||
309 | PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011, | ||
310 | PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111, | ||
311 | PF8MD_00, PF8MD_01, PF8MD_10, PF8MD_11, | ||
312 | PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011, | ||
313 | PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111, | ||
314 | PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011, | ||
315 | PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111, | ||
316 | PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011, | ||
317 | PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111, | ||
318 | PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011, | ||
319 | PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111, | ||
320 | PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011, | ||
321 | PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111, | ||
322 | PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011, | ||
323 | PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111, | ||
324 | PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011, | ||
325 | PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111, | ||
326 | PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011, | ||
327 | PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111, | ||
328 | |||
329 | /* Port G */ | ||
330 | PG24_IOR_IN, PG24_IOR_OUT, | ||
331 | PG23_IOR_IN, PG23_IOR_OUT, | ||
332 | PG22_IOR_IN, PG22_IOR_OUT, | ||
333 | PG21_IOR_IN, PG21_IOR_OUT, | ||
334 | PG20_IOR_IN, PG20_IOR_OUT, | ||
335 | PG19_IOR_IN, PG19_IOR_OUT, | ||
336 | PG18_IOR_IN, PG18_IOR_OUT, | ||
337 | PG17_IOR_IN, PG17_IOR_OUT, | ||
338 | PG16_IOR_IN, PG16_IOR_OUT, | ||
339 | PG15_IOR_IN, PG15_IOR_OUT, | ||
340 | PG14_IOR_IN, PG14_IOR_OUT, | ||
341 | PG13_IOR_IN, PG13_IOR_OUT, | ||
342 | PG12_IOR_IN, PG12_IOR_OUT, | ||
343 | PG11_IOR_IN, PG11_IOR_OUT, | ||
344 | PG10_IOR_IN, PG10_IOR_OUT, | ||
345 | PG9_IOR_IN, PG9_IOR_OUT, | ||
346 | PG8_IOR_IN, PG8_IOR_OUT, | ||
347 | PG7_IOR_IN, PG7_IOR_OUT, | ||
348 | PG6_IOR_IN, PG6_IOR_OUT, | ||
349 | PG5_IOR_IN, PG5_IOR_OUT, | ||
350 | PG4_IOR_IN, PG4_IOR_OUT, | ||
351 | PG3_IOR_IN, PG3_IOR_OUT, | ||
352 | PG2_IOR_IN, PG2_IOR_OUT, | ||
353 | PG1_IOR_IN, PG1_IOR_OUT, | ||
354 | PG0_IOR_IN, PG0_IOR_OUT, | ||
355 | |||
356 | PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, | ||
357 | PG23MD_00, PG23MD_01, PG23MD_10, PG23MD_11, | ||
358 | PG22MD_00, PG22MD_01, PG22MD_10, PG22MD_11, | ||
359 | PG21MD_00, PG21MD_01, PG21MD_10, PG21MD_11, | ||
360 | PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011, | ||
361 | PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111, | ||
362 | PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011, | ||
363 | PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111, | ||
364 | PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011, | ||
365 | PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111, | ||
366 | PG17MD_000, PG17MD_001, PG17MD_010, PG17MD_011, | ||
367 | PG17MD_100, PG17MD_101, PG17MD_110, PG17MD_111, | ||
368 | PG16MD_000, PG16MD_001, PG16MD_010, PG16MD_011, | ||
369 | PG16MD_100, PG16MD_101, PG16MD_110, PG16MD_111, | ||
370 | PG15MD_000, PG15MD_001, PG15MD_010, PG15MD_011, | ||
371 | PG15MD_100, PG15MD_101, PG15MD_110, PG15MD_111, | ||
372 | PG14MD_000, PG14MD_001, PG14MD_010, PG14MD_011, | ||
373 | PG14MD_100, PG14MD_101, PG14MD_110, PG14MD_111, | ||
374 | PG13MD_000, PG13MD_001, PG13MD_010, PG13MD_011, | ||
375 | PG13MD_100, PG13MD_101, PG13MD_110, PG13MD_111, | ||
376 | PG12MD_000, PG12MD_001, PG12MD_010, PG12MD_011, | ||
377 | PG12MD_100, PG12MD_101, PG12MD_110, PG12MD_111, | ||
378 | PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011, | ||
379 | PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111, | ||
380 | PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011, | ||
381 | PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111, | ||
382 | PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011, | ||
383 | PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111, | ||
384 | PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011, | ||
385 | PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111, | ||
386 | PG7MD_00, PG7MD_01, PG7MD_10, PG7MD_11, | ||
387 | PG6MD_00, PG6MD_01, PG6MD_10, PG6MD_11, | ||
388 | PG5MD_00, PG5MD_01, PG5MD_10, PG5MD_11, | ||
389 | PG4MD_00, PG4MD_01, PG4MD_10, PG4MD_11, | ||
390 | PG3MD_00, PG3MD_01, PG3MD_10, PG3MD_11, | ||
391 | PG2MD_00, PG2MD_01, PG2MD_10, PG2MD_11, | ||
392 | PG1MD_00, PG1MD_01, PG1MD_10, PG1MD_11, | ||
393 | PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011, | ||
394 | PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111, | ||
395 | |||
396 | /* Port H */ | ||
397 | PH7MD_0, PH7MD_1, | ||
398 | PH6MD_0, PH6MD_1, | ||
399 | PH5MD_0, PH5MD_1, | ||
400 | PH4MD_0, PH4MD_1, | ||
401 | PH3MD_0, PH3MD_1, | ||
402 | PH2MD_0, PH2MD_1, | ||
403 | PH1MD_0, PH1MD_1, | ||
404 | PH0MD_0, PH0MD_1, | ||
405 | |||
406 | /* Port I - not on device */ | ||
407 | |||
408 | /* Port J */ | ||
409 | PJ11_IOR_IN, PJ11_IOR_OUT, | ||
410 | PJ10_IOR_IN, PJ10_IOR_OUT, | ||
411 | PJ9_IOR_IN, PJ9_IOR_OUT, | ||
412 | PJ8_IOR_IN, PJ8_IOR_OUT, | ||
413 | PJ7_IOR_IN, PJ7_IOR_OUT, | ||
414 | PJ6_IOR_IN, PJ6_IOR_OUT, | ||
415 | PJ5_IOR_IN, PJ5_IOR_OUT, | ||
416 | PJ4_IOR_IN, PJ4_IOR_OUT, | ||
417 | PJ3_IOR_IN, PJ3_IOR_OUT, | ||
418 | PJ2_IOR_IN, PJ2_IOR_OUT, | ||
419 | PJ1_IOR_IN, PJ1_IOR_OUT, | ||
420 | PJ0_IOR_IN, PJ0_IOR_OUT, | ||
421 | |||
422 | PJ11MD_00, PJ11MD_01, PJ11MD_10, PJ11MD_11, | ||
423 | PJ10MD_00, PJ10MD_01, PJ10MD_10, PJ10MD_11, | ||
424 | PJ9MD_00, PJ9MD_01, PJ9MD_10, PJ9MD_11, | ||
425 | PJ8MD_00, PJ8MD_01, PJ8MD_10, PJ8MD_11, | ||
426 | PJ7MD_00, PJ7MD_01, PJ7MD_10, PJ7MD_11, | ||
427 | PJ6MD_00, PJ6MD_01, PJ6MD_10, PJ6MD_11, | ||
428 | PJ5MD_00, PJ5MD_01, PJ5MD_10, PJ5MD_11, | ||
429 | PJ4MD_00, PJ4MD_01, PJ4MD_10, PJ4MD_11, | ||
430 | PJ3MD_00, PJ3MD_01, PJ3MD_10, PJ3MD_11, | ||
431 | PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011, | ||
432 | PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111, | ||
433 | PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011, | ||
434 | PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111, | ||
435 | PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011, | ||
436 | PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111, | ||
437 | |||
438 | /* Port K */ | ||
439 | PK11_IOR_IN, PK11_IOR_OUT, | ||
440 | PK10_IOR_IN, PK10_IOR_OUT, | ||
441 | PK9_IOR_IN, PK9_IOR_OUT, | ||
442 | PK8_IOR_IN, PK8_IOR_OUT, | ||
443 | PK7_IOR_IN, PK7_IOR_OUT, | ||
444 | PK6_IOR_IN, PK6_IOR_OUT, | ||
445 | PK5_IOR_IN, PK5_IOR_OUT, | ||
446 | PK4_IOR_IN, PK4_IOR_OUT, | ||
447 | PK3_IOR_IN, PK3_IOR_OUT, | ||
448 | PK2_IOR_IN, PK2_IOR_OUT, | ||
449 | PK1_IOR_IN, PK1_IOR_OUT, | ||
450 | PK0_IOR_IN, PK0_IOR_OUT, | ||
451 | |||
452 | PK11MD_00, PK11MD_01, PK11MD_10, PK11MD_11, | ||
453 | PK10MD_00, PK10MD_01, PK10MD_10, PK10MD_11, | ||
454 | PK9MD_00, PK9MD_01, PK9MD_10, PK9MD_11, | ||
455 | PK8MD_00, PK8MD_01, PK8MD_10, PK8MD_11, | ||
456 | PK7MD_00, PK7MD_01, PK7MD_10, PK7MD_11, | ||
457 | PK6MD_00, PK6MD_01, PK6MD_10, PK6MD_11, | ||
458 | PK5MD_00, PK5MD_01, PK5MD_10, PK5MD_11, | ||
459 | PK4MD_00, PK4MD_01, PK4MD_10, PK4MD_11, | ||
460 | PK3MD_00, PK3MD_01, PK3MD_10, PK3MD_11, | ||
461 | PK2MD_00, PK2MD_01, PK2MD_10, PK2MD_11, | ||
462 | PK1MD_00, PK1MD_01, PK1MD_10, PK1MD_11, | ||
463 | PK0MD_00, PK0MD_01, PK0MD_10, PK0MD_11, | ||
464 | PINMUX_FUNCTION_END, | ||
465 | |||
466 | PINMUX_MARK_BEGIN, | ||
467 | /* Port A */ | ||
468 | |||
469 | /* Port B */ | ||
470 | |||
471 | /* Port C */ | ||
472 | |||
473 | /* Port D */ | ||
474 | |||
475 | /* Port E */ | ||
476 | |||
477 | /* Port F */ | ||
478 | |||
479 | /* Port G */ | ||
480 | |||
481 | /* Port H */ | ||
482 | PHAN7_MARK, PHAN6_MARK, PHAN5_MARK, PHAN4_MARK, | ||
483 | PHAN3_MARK, PHAN2_MARK, PHAN1_MARK, PHAN0_MARK, | ||
484 | |||
485 | /* Port I - not on device */ | ||
486 | |||
487 | /* Port J */ | ||
488 | |||
489 | /* Port K */ | ||
490 | |||
491 | IRQ7_PC_MARK, IRQ6_PC_MARK, IRQ5_PC_MARK, IRQ4_PC_MARK, | ||
492 | IRQ3_PG_MARK, IRQ2_PG_MARK, IRQ1_PJ_MARK, IRQ0_PJ_MARK, | ||
493 | IRQ3_PE_MARK, IRQ2_PE_MARK, IRQ1_PE_MARK, IRQ0_PE_MARK, | ||
494 | |||
495 | PINT7_PG_MARK, PINT6_PG_MARK, PINT5_PG_MARK, PINT4_PG_MARK, | ||
496 | PINT3_PG_MARK, PINT2_PG_MARK, PINT1_PG_MARK, PINT0_PG_MARK, | ||
497 | |||
498 | SD_CD_MARK, SD_D0_MARK, SD_D1_MARK, SD_D2_MARK, SD_D3_MARK, | ||
499 | SD_WP_MARK, SD_CLK_MARK, SD_CMD_MARK, | ||
500 | CRX0_MARK, CRX1_MARK, | ||
501 | CTX0_MARK, CTX1_MARK, | ||
502 | |||
503 | PWM1A_MARK, PWM1B_MARK, PWM1C_MARK, PWM1D_MARK, | ||
504 | PWM1E_MARK, PWM1F_MARK, PWM1G_MARK, PWM1H_MARK, | ||
505 | PWM2A_MARK, PWM2B_MARK, PWM2C_MARK, PWM2D_MARK, | ||
506 | PWM2E_MARK, PWM2F_MARK, PWM2G_MARK, PWM2H_MARK, | ||
507 | IERXD_MARK, IETXD_MARK, | ||
508 | CRX0CRX1_MARK, | ||
509 | WDTOVF_MARK, | ||
510 | |||
511 | CRX0X1_MARK, | ||
512 | |||
513 | /* DMAC */ | ||
514 | TEND0_MARK, DACK0_MARK, DREQ0_MARK, | ||
515 | TEND1_MARK, DACK1_MARK, DREQ1_MARK, | ||
516 | |||
517 | /* ADC */ | ||
518 | ADTRG_MARK, | ||
519 | |||
520 | /* BSC */ | ||
521 | A25_MARK, A24_MARK, | ||
522 | A23_MARK, A22_MARK, A21_MARK, A20_MARK, | ||
523 | A19_MARK, A18_MARK, A17_MARK, A16_MARK, | ||
524 | A15_MARK, A14_MARK, A13_MARK, A12_MARK, | ||
525 | A11_MARK, A10_MARK, A9_MARK, A8_MARK, | ||
526 | A7_MARK, A6_MARK, A5_MARK, A4_MARK, | ||
527 | A3_MARK, A2_MARK, A1_MARK, A0_MARK, | ||
528 | D15_MARK, D14_MARK, D13_MARK, D12_MARK, | ||
529 | D11_MARK, D10_MARK, D9_MARK, D8_MARK, | ||
530 | D7_MARK, D6_MARK, D5_MARK, D4_MARK, | ||
531 | D3_MARK, D2_MARK, D1_MARK, D0_MARK, | ||
532 | BS_MARK, | ||
533 | CS4_MARK, CS3_MARK, CS2_MARK, CS1_MARK, CS0_MARK, | ||
534 | CS6CE1B_MARK, CS5CE1A_MARK, | ||
535 | CE2A_MARK, CE2B_MARK, | ||
536 | RD_MARK, RDWR_MARK, | ||
537 | ICIOWRAH_MARK, | ||
538 | ICIORD_MARK, | ||
539 | WE1DQMUWE_MARK, | ||
540 | WE0DQML_MARK, | ||
541 | RAS_MARK, CAS_MARK, CKE_MARK, | ||
542 | WAIT_MARK, BREQ_MARK, BACK_MARK, IOIS16_MARK, | ||
543 | |||
544 | /* TMU */ | ||
545 | TIOC0A_MARK, TIOC0B_MARK, TIOC0C_MARK, TIOC0D_MARK, | ||
546 | TIOC1A_MARK, TIOC1B_MARK, | ||
547 | TIOC2A_MARK, TIOC2B_MARK, | ||
548 | TIOC3A_MARK, TIOC3B_MARK, TIOC3C_MARK, TIOC3D_MARK, | ||
549 | TIOC4A_MARK, TIOC4B_MARK, TIOC4C_MARK, TIOC4D_MARK, | ||
550 | TCLKA_MARK, TCLKB_MARK, TCLKC_MARK, TCLKD_MARK, | ||
551 | |||
552 | /* SCIF */ | ||
553 | SCK0_MARK, SCK1_MARK, SCK2_MARK, SCK3_MARK, | ||
554 | RXD0_MARK, RXD1_MARK, RXD2_MARK, RXD3_MARK, | ||
555 | TXD0_MARK, TXD1_MARK, TXD2_MARK, TXD3_MARK, | ||
556 | RXD4_MARK, RXD5_MARK, RXD6_MARK, RXD7_MARK, | ||
557 | TXD4_MARK, TXD5_MARK, TXD6_MARK, TXD7_MARK, | ||
558 | RTS1_MARK, RTS3_MARK, | ||
559 | CTS1_MARK, CTS3_MARK, | ||
560 | |||
561 | /* RSPI */ | ||
562 | RSPCK0_MARK, RSPCK1_MARK, | ||
563 | MOSI0_MARK, MOSI1_MARK, | ||
564 | MISO0_PF12_MARK, MISO1_MARK, MISO1_PG19_MARK, | ||
565 | SSL00_MARK, SSL10_MARK, | ||
566 | |||
567 | /* IIC3 */ | ||
568 | SCL0_MARK, SCL1_MARK, SCL2_MARK, | ||
569 | SDA0_MARK, SDA1_MARK, SDA2_MARK, | ||
570 | |||
571 | /* SSI */ | ||
572 | SSISCK0_MARK, | ||
573 | SSIWS0_MARK, | ||
574 | SSITXD0_MARK, | ||
575 | SSIRXD0_MARK, | ||
576 | SSIWS1_MARK, SSIWS2_MARK, SSIWS3_MARK, | ||
577 | SSISCK1_MARK, SSISCK2_MARK, SSISCK3_MARK, | ||
578 | SSIDATA1_MARK, SSIDATA2_MARK, SSIDATA3_MARK, | ||
579 | AUDIO_CLK_MARK, | ||
580 | |||
581 | /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
582 | SIOFTXD_MARK, SIOFRXD_MARK, SIOFSYNC_MARK, SIOFSCK_MARK, | ||
583 | |||
584 | /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
585 | SPDIF_IN_MARK, SPDIF_OUT_MARK, | ||
586 | |||
587 | /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */ | ||
588 | FCE_MARK, | ||
589 | FRB_MARK, | ||
590 | |||
591 | /* VDC3 */ | ||
592 | DV_CLK_MARK, | ||
593 | DV_VSYNC_MARK, DV_HSYNC_MARK, | ||
594 | DV_DATA7_MARK, DV_DATA6_MARK, DV_DATA5_MARK, DV_DATA4_MARK, | ||
595 | DV_DATA3_MARK, DV_DATA2_MARK, DV_DATA1_MARK, DV_DATA0_MARK, | ||
596 | LCD_CLK_MARK, LCD_EXTCLK_MARK, | ||
597 | LCD_VSYNC_MARK, LCD_HSYNC_MARK, LCD_DE_MARK, | ||
598 | LCD_DATA15_MARK, LCD_DATA14_MARK, LCD_DATA13_MARK, LCD_DATA12_MARK, | ||
599 | LCD_DATA11_MARK, LCD_DATA10_MARK, LCD_DATA9_MARK, LCD_DATA8_MARK, | ||
600 | LCD_DATA7_MARK, LCD_DATA6_MARK, LCD_DATA5_MARK, LCD_DATA4_MARK, | ||
601 | LCD_DATA3_MARK, LCD_DATA2_MARK, LCD_DATA1_MARK, LCD_DATA0_MARK, | ||
602 | LCD_M_DISP_MARK, | ||
603 | PINMUX_MARK_END, | ||
604 | }; | ||
605 | |||
606 | static pinmux_enum_t pinmux_data[] = { | ||
607 | |||
608 | /* Port A */ | ||
609 | PINMUX_DATA(PA3_DATA, PA3_IN), | ||
610 | PINMUX_DATA(PA2_DATA, PA2_IN), | ||
611 | PINMUX_DATA(PA1_DATA, PA1_IN), | ||
612 | PINMUX_DATA(PA0_DATA, PA0_IN), | ||
613 | |||
614 | /* Port B */ | ||
615 | PINMUX_DATA(PB22_DATA, PB22MD_00, PB22_IN, PB22_OUT), | ||
616 | PINMUX_DATA(A22_MARK, PB22MD_01), | ||
617 | PINMUX_DATA(CS4_MARK, PB22MD_10), | ||
618 | |||
619 | PINMUX_DATA(PB21_DATA, PB21MD_0, PB21_IN, PB21_OUT), | ||
620 | PINMUX_DATA(A21_MARK, PB21MD_1), | ||
621 | PINMUX_DATA(A20_MARK, PB20MD_1), | ||
622 | PINMUX_DATA(A19_MARK, PB19MD_01), | ||
623 | PINMUX_DATA(A18_MARK, PB18MD_01), | ||
624 | PINMUX_DATA(A17_MARK, PB17MD_01), | ||
625 | PINMUX_DATA(A16_MARK, PB16MD_01), | ||
626 | PINMUX_DATA(A15_MARK, PB15MD_01), | ||
627 | PINMUX_DATA(A14_MARK, PB14MD_01), | ||
628 | PINMUX_DATA(A13_MARK, PB13MD_01), | ||
629 | PINMUX_DATA(A12_MARK, PB12MD_01), | ||
630 | PINMUX_DATA(A11_MARK, PB11MD_01), | ||
631 | PINMUX_DATA(A10_MARK, PB10MD_01), | ||
632 | PINMUX_DATA(A9_MARK, PB9MD_01), | ||
633 | PINMUX_DATA(A8_MARK, PB8MD_01), | ||
634 | PINMUX_DATA(A7_MARK, PB7MD_01), | ||
635 | PINMUX_DATA(A6_MARK, PB6MD_01), | ||
636 | PINMUX_DATA(A5_MARK, PB5MD_01), | ||
637 | PINMUX_DATA(A4_MARK, PB4MD_01), | ||
638 | PINMUX_DATA(A3_MARK, PB3MD_1), | ||
639 | PINMUX_DATA(A2_MARK, PB2MD_1), | ||
640 | PINMUX_DATA(A1_MARK, PB1MD_1), | ||
641 | |||
642 | /* Port C */ | ||
643 | PINMUX_DATA(PC10_DATA, PC10MD_0), | ||
644 | PINMUX_DATA(TIOC2B_MARK, PC1MD_1), | ||
645 | PINMUX_DATA(PC9_DATA, PC9MD_0), | ||
646 | PINMUX_DATA(TIOC2A_MARK, PC9MD_1), | ||
647 | PINMUX_DATA(PC8_DATA, PC8MD_00), | ||
648 | PINMUX_DATA(CS3_MARK, PC8MD_01), | ||
649 | PINMUX_DATA(TIOC4D_MARK, PC8MD_10), | ||
650 | PINMUX_DATA(IRQ7_PC_MARK, PC8MD_11), | ||
651 | PINMUX_DATA(PC7_DATA, PC7MD_00), | ||
652 | PINMUX_DATA(CKE_MARK, PC7MD_01), | ||
653 | PINMUX_DATA(TIOC4C_MARK, PC7MD_10), | ||
654 | PINMUX_DATA(IRQ6_PC_MARK, PC7MD_11), | ||
655 | PINMUX_DATA(PC6_DATA, PC6MD_00), | ||
656 | PINMUX_DATA(CAS_MARK, PC6MD_01), | ||
657 | PINMUX_DATA(TIOC4B_MARK, PC6MD_10), | ||
658 | PINMUX_DATA(IRQ5_PC_MARK, PC6MD_11), | ||
659 | PINMUX_DATA(PC5_DATA, PC5MD_00), | ||
660 | PINMUX_DATA(RAS_MARK, PC5MD_01), | ||
661 | PINMUX_DATA(TIOC4A_MARK, PC5MD_10), | ||
662 | PINMUX_DATA(IRQ4_PC_MARK, PC5MD_11), | ||
663 | PINMUX_DATA(PC4_DATA, PC4MD_0), | ||
664 | PINMUX_DATA(WE1DQMUWE_MARK, PC4MD_1), | ||
665 | PINMUX_DATA(PC3_DATA, PC3MD_0), | ||
666 | PINMUX_DATA(WE0DQML_MARK, PC3MD_1), | ||
667 | PINMUX_DATA(PC2_DATA, PC2MD_0), | ||
668 | PINMUX_DATA(RDWR_MARK, PC2MD_1), | ||
669 | PINMUX_DATA(PC1_DATA, PC1MD_0), | ||
670 | PINMUX_DATA(RD_MARK, PC1MD_1), | ||
671 | PINMUX_DATA(PC0_DATA, PC0MD_0), | ||
672 | PINMUX_DATA(CS0_MARK, PC0MD_1), | ||
673 | |||
674 | /* Port D */ | ||
675 | PINMUX_DATA(D15_MARK, PD15MD_01), | ||
676 | PINMUX_DATA(D14_MARK, PD14MD_01), | ||
677 | PINMUX_DATA(D13_MARK, PD13MD_01), | ||
678 | PINMUX_DATA(D12_MARK, PD12MD_01), | ||
679 | PINMUX_DATA(D11_MARK, PD11MD_01), | ||
680 | PINMUX_DATA(D10_MARK, PD10MD_01), | ||
681 | PINMUX_DATA(D9_MARK, PD9MD_01), | ||
682 | PINMUX_DATA(D8_MARK, PD8MD_01), | ||
683 | PINMUX_DATA(D7_MARK, PD7MD_01), | ||
684 | PINMUX_DATA(D6_MARK, PD6MD_01), | ||
685 | PINMUX_DATA(D5_MARK, PD5MD_01), | ||
686 | PINMUX_DATA(D4_MARK, PD4MD_01), | ||
687 | PINMUX_DATA(D3_MARK, PD3MD_01), | ||
688 | PINMUX_DATA(D2_MARK, PD2MD_01), | ||
689 | PINMUX_DATA(D1_MARK, PD1MD_01), | ||
690 | PINMUX_DATA(D0_MARK, PD0MD_01), | ||
691 | |||
692 | /* Port E */ | ||
693 | PINMUX_DATA(PE5_DATA, PE5MD_00), | ||
694 | PINMUX_DATA(SDA2_MARK, PE5MD_01), | ||
695 | PINMUX_DATA(DV_HSYNC_MARK, PE5MD_11), | ||
696 | |||
697 | PINMUX_DATA(PE4_DATA, PE4MD_00), | ||
698 | PINMUX_DATA(SCL2_MARK, PE4MD_01), | ||
699 | PINMUX_DATA(DV_VSYNC_MARK, PE4MD_11), | ||
700 | |||
701 | PINMUX_DATA(PE3_DATA, PE3MD_00), | ||
702 | PINMUX_DATA(SDA1_MARK, PE3MD_01), | ||
703 | PINMUX_DATA(IRQ3_PE_MARK, PE3MD_11), | ||
704 | |||
705 | PINMUX_DATA(PE2_DATA, PE2MD_00), | ||
706 | PINMUX_DATA(SCL1_MARK, PE2MD_01), | ||
707 | PINMUX_DATA(IRQ2_PE_MARK, PE2MD_11), | ||
708 | |||
709 | PINMUX_DATA(PE1_DATA, PE1MD_000), | ||
710 | PINMUX_DATA(SDA0_MARK, PE1MD_001), | ||
711 | PINMUX_DATA(IOIS16_MARK, PE1MD_010), | ||
712 | PINMUX_DATA(IRQ1_PE_MARK, PE1MD_011), | ||
713 | PINMUX_DATA(TCLKA_MARK, PE1MD_100), | ||
714 | PINMUX_DATA(ADTRG_MARK, PE1MD_101), | ||
715 | |||
716 | PINMUX_DATA(PE0_DATA, PE0MD_00), | ||
717 | PINMUX_DATA(SCL0_MARK, PE0MD_01), | ||
718 | PINMUX_DATA(AUDIO_CLK_MARK, PE0MD_10), | ||
719 | PINMUX_DATA(IRQ0_PE_MARK, PE0MD_11), | ||
720 | |||
721 | /* Port F */ | ||
722 | PINMUX_DATA(PF12_DATA, PF12MD_000), | ||
723 | PINMUX_DATA(BS_MARK, PF12MD_001), | ||
724 | PINMUX_DATA(MISO0_PF12_MARK, PF12MD_011), | ||
725 | PINMUX_DATA(TIOC3D_MARK, PF12MD_100), | ||
726 | PINMUX_DATA(SPDIF_OUT_MARK, PF12MD_101), | ||
727 | |||
728 | PINMUX_DATA(PF11_DATA, PF11MD_000), | ||
729 | PINMUX_DATA(A25_MARK, PF11MD_001), | ||
730 | PINMUX_DATA(SSIDATA3_MARK, PF11MD_010), | ||
731 | PINMUX_DATA(MOSI0_MARK, PF11MD_011), | ||
732 | PINMUX_DATA(TIOC3C_MARK, PF11MD_100), | ||
733 | PINMUX_DATA(SPDIF_IN_MARK, PF11MD_101), | ||
734 | |||
735 | PINMUX_DATA(PF10_DATA, PF10MD_000), | ||
736 | PINMUX_DATA(A24_MARK, PF10MD_001), | ||
737 | PINMUX_DATA(SSIWS3_MARK, PF10MD_010), | ||
738 | PINMUX_DATA(SSL00_MARK, PF10MD_011), | ||
739 | PINMUX_DATA(TIOC3B_MARK, PF10MD_100), | ||
740 | PINMUX_DATA(FCE_MARK, PF10MD_101), | ||
741 | |||
742 | PINMUX_DATA(PF9_DATA, PF9MD_000), | ||
743 | PINMUX_DATA(A23_MARK, PF9MD_001), | ||
744 | PINMUX_DATA(SSISCK3_MARK, PF9MD_010), | ||
745 | PINMUX_DATA(RSPCK0_MARK, PF9MD_011), | ||
746 | PINMUX_DATA(TIOC3A_MARK, PF9MD_100), | ||
747 | PINMUX_DATA(FRB_MARK, PF9MD_101), | ||
748 | |||
749 | PINMUX_DATA(PF8_DATA, PF8MD_00), | ||
750 | PINMUX_DATA(CE2B_MARK, PF8MD_01), | ||
751 | PINMUX_DATA(SSIDATA3_MARK, PF8MD_10), | ||
752 | PINMUX_DATA(DV_CLK_MARK, PF8MD_11), | ||
753 | |||
754 | PINMUX_DATA(PF7_DATA, PF7MD_000), | ||
755 | PINMUX_DATA(CE2A_MARK, PF7MD_001), | ||
756 | PINMUX_DATA(SSIWS3_MARK, PF7MD_010), | ||
757 | PINMUX_DATA(DV_DATA7_MARK, PF7MD_011), | ||
758 | PINMUX_DATA(TCLKD_MARK, PF7MD_100), | ||
759 | |||
760 | PINMUX_DATA(PF6_DATA, PF6MD_000), | ||
761 | PINMUX_DATA(CS6CE1B_MARK, PF6MD_001), | ||
762 | PINMUX_DATA(SSISCK3_MARK, PF6MD_010), | ||
763 | PINMUX_DATA(DV_DATA6_MARK, PF6MD_011), | ||
764 | PINMUX_DATA(TCLKB_MARK, PF6MD_100), | ||
765 | |||
766 | PINMUX_DATA(PF5_DATA, PF5MD_000), | ||
767 | PINMUX_DATA(CS5CE1A_MARK, PF5MD_001), | ||
768 | PINMUX_DATA(SSIDATA2_MARK, PF5MD_010), | ||
769 | PINMUX_DATA(DV_DATA5_MARK, PF5MD_011), | ||
770 | PINMUX_DATA(TCLKC_MARK, PF5MD_100), | ||
771 | |||
772 | PINMUX_DATA(PF4_DATA, PF4MD_000), | ||
773 | PINMUX_DATA(ICIOWRAH_MARK, PF4MD_001), | ||
774 | PINMUX_DATA(SSIWS2_MARK, PF4MD_010), | ||
775 | PINMUX_DATA(DV_DATA4_MARK, PF4MD_011), | ||
776 | PINMUX_DATA(TXD3_MARK, PF4MD_100), | ||
777 | |||
778 | PINMUX_DATA(PF3_DATA, PF3MD_000), | ||
779 | PINMUX_DATA(ICIORD_MARK, PF3MD_001), | ||
780 | PINMUX_DATA(SSISCK2_MARK, PF3MD_010), | ||
781 | PINMUX_DATA(DV_DATA3_MARK, PF3MD_011), | ||
782 | PINMUX_DATA(RXD3_MARK, PF3MD_100), | ||
783 | |||
784 | PINMUX_DATA(PF2_DATA, PF2MD_000), | ||
785 | PINMUX_DATA(BACK_MARK, PF2MD_001), | ||
786 | PINMUX_DATA(SSIDATA1_MARK, PF2MD_010), | ||
787 | PINMUX_DATA(DV_DATA2_MARK, PF2MD_011), | ||
788 | PINMUX_DATA(TXD2_MARK, PF2MD_100), | ||
789 | PINMUX_DATA(DACK0_MARK, PF2MD_101), | ||
790 | |||
791 | PINMUX_DATA(PF1_DATA, PF1MD_000), | ||
792 | PINMUX_DATA(BREQ_MARK, PF1MD_001), | ||
793 | PINMUX_DATA(SSIWS1_MARK, PF1MD_010), | ||
794 | PINMUX_DATA(DV_DATA1_MARK, PF1MD_011), | ||
795 | PINMUX_DATA(RXD2_MARK, PF1MD_100), | ||
796 | PINMUX_DATA(DREQ0_MARK, PF1MD_101), | ||
797 | |||
798 | PINMUX_DATA(PF0_DATA, PF0MD_000), | ||
799 | PINMUX_DATA(WAIT_MARK, PF0MD_001), | ||
800 | PINMUX_DATA(SSISCK1_MARK, PF0MD_010), | ||
801 | PINMUX_DATA(DV_DATA0_MARK, PF0MD_011), | ||
802 | PINMUX_DATA(SCK2_MARK, PF0MD_100), | ||
803 | PINMUX_DATA(TEND0_MARK, PF0MD_101), | ||
804 | |||
805 | /* Port G */ | ||
806 | PINMUX_DATA(PG24_DATA, PG24MD_00), | ||
807 | PINMUX_DATA(MOSI0_MARK, PG24MD_01), | ||
808 | PINMUX_DATA(TIOC0D_MARK, PG24MD_10), | ||
809 | |||
810 | PINMUX_DATA(PG23_DATA, PG23MD_00), | ||
811 | PINMUX_DATA(MOSI1_MARK, PG23MD_01), | ||
812 | PINMUX_DATA(TIOC0C_MARK, PG23MD_10), | ||
813 | |||
814 | PINMUX_DATA(PG22_DATA, PG22MD_00), | ||
815 | PINMUX_DATA(SSL10_MARK, PG22MD_01), | ||
816 | PINMUX_DATA(TIOC0B_MARK, PG22MD_10), | ||
817 | |||
818 | PINMUX_DATA(PG21_DATA, PG21MD_00), | ||
819 | PINMUX_DATA(RSPCK1_MARK, PG21MD_01), | ||
820 | PINMUX_DATA(TIOC0A_MARK, PG21MD_10), | ||
821 | |||
822 | PINMUX_DATA(PG20_DATA, PG20MD_000), | ||
823 | PINMUX_DATA(LCD_EXTCLK_MARK, PG20MD_001), | ||
824 | PINMUX_DATA(MISO1_MARK, PG20MD_011), | ||
825 | PINMUX_DATA(TXD7_MARK, PG20MD_100), | ||
826 | |||
827 | PINMUX_DATA(PG19_DATA, PG19MD_000), | ||
828 | PINMUX_DATA(LCD_CLK_MARK, PG19MD_001), | ||
829 | PINMUX_DATA(TIOC2B_MARK, PG19MD_010), | ||
830 | PINMUX_DATA(MISO1_PG19_MARK, PG19MD_011), | ||
831 | PINMUX_DATA(RXD7_MARK, PG19MD_100), | ||
832 | |||
833 | PINMUX_DATA(PG18_DATA, PG18MD_000), | ||
834 | PINMUX_DATA(LCD_DE_MARK, PG18MD_001), | ||
835 | PINMUX_DATA(TIOC2A_MARK, PG18MD_010), | ||
836 | PINMUX_DATA(SSL10_MARK, PG18MD_011), | ||
837 | PINMUX_DATA(TXD6_MARK, PG18MD_100), | ||
838 | |||
839 | PINMUX_DATA(PG17_DATA, PG17MD_000), | ||
840 | PINMUX_DATA(LCD_HSYNC_MARK, PG17MD_001), | ||
841 | PINMUX_DATA(TIOC1B_MARK, PG17MD_010), | ||
842 | PINMUX_DATA(RSPCK1_MARK, PG17MD_011), | ||
843 | PINMUX_DATA(RXD6_MARK, PG17MD_100), | ||
844 | |||
845 | PINMUX_DATA(PG16_DATA, PG16MD_000), | ||
846 | PINMUX_DATA(LCD_VSYNC_MARK, PG16MD_001), | ||
847 | PINMUX_DATA(TIOC1A_MARK, PG16MD_010), | ||
848 | PINMUX_DATA(TXD3_MARK, PG16MD_011), | ||
849 | PINMUX_DATA(CTS1_MARK, PG16MD_100), | ||
850 | |||
851 | PINMUX_DATA(PG15_DATA, PG15MD_000), | ||
852 | PINMUX_DATA(LCD_DATA15_MARK, PG15MD_001), | ||
853 | PINMUX_DATA(TIOC0D_MARK, PG15MD_010), | ||
854 | PINMUX_DATA(RXD3_MARK, PG15MD_011), | ||
855 | PINMUX_DATA(RTS1_MARK, PG15MD_100), | ||
856 | |||
857 | PINMUX_DATA(PG14_DATA, PG14MD_000), | ||
858 | PINMUX_DATA(LCD_DATA14_MARK, PG14MD_001), | ||
859 | PINMUX_DATA(TIOC0C_MARK, PG14MD_010), | ||
860 | PINMUX_DATA(SCK1_MARK, PG14MD_100), | ||
861 | |||
862 | PINMUX_DATA(PG13_DATA, PG13MD_000), | ||
863 | PINMUX_DATA(LCD_DATA13_MARK, PG13MD_001), | ||
864 | PINMUX_DATA(TIOC0B_MARK, PG13MD_010), | ||
865 | PINMUX_DATA(TXD1_MARK, PG13MD_100), | ||
866 | |||
867 | PINMUX_DATA(PG12_DATA, PG12MD_000), | ||
868 | PINMUX_DATA(LCD_DATA12_MARK, PG12MD_001), | ||
869 | PINMUX_DATA(TIOC0A_MARK, PG12MD_010), | ||
870 | PINMUX_DATA(RXD1_MARK, PG12MD_100), | ||
871 | |||
872 | PINMUX_DATA(PG11_DATA, PG11MD_000), | ||
873 | PINMUX_DATA(LCD_DATA11_MARK, PG11MD_001), | ||
874 | PINMUX_DATA(SSITXD0_MARK, PG11MD_010), | ||
875 | PINMUX_DATA(IRQ3_PG_MARK, PG11MD_011), | ||
876 | PINMUX_DATA(TXD5_MARK, PG11MD_100), | ||
877 | PINMUX_DATA(SIOFTXD_MARK, PG11MD_101), | ||
878 | |||
879 | PINMUX_DATA(PG10_DATA, PG10MD_000), | ||
880 | PINMUX_DATA(LCD_DATA10_MARK, PG10MD_001), | ||
881 | PINMUX_DATA(SSIRXD0_MARK, PG10MD_010), | ||
882 | PINMUX_DATA(IRQ2_PG_MARK, PG10MD_011), | ||
883 | PINMUX_DATA(RXD5_MARK, PG10MD_100), | ||
884 | PINMUX_DATA(SIOFRXD_MARK, PG10MD_101), | ||
885 | |||
886 | PINMUX_DATA(PG9_DATA, PG9MD_000), | ||
887 | PINMUX_DATA(LCD_DATA9_MARK, PG9MD_001), | ||
888 | PINMUX_DATA(SSIWS0_MARK, PG9MD_010), | ||
889 | PINMUX_DATA(TXD4_MARK, PG9MD_100), | ||
890 | PINMUX_DATA(SIOFSYNC_MARK, PG9MD_101), | ||
891 | |||
892 | PINMUX_DATA(PG8_DATA, PG8MD_000), | ||
893 | PINMUX_DATA(LCD_DATA8_MARK, PG8MD_001), | ||
894 | PINMUX_DATA(SSISCK0_MARK, PG8MD_010), | ||
895 | PINMUX_DATA(RXD4_MARK, PG8MD_100), | ||
896 | PINMUX_DATA(SIOFSCK_MARK, PG8MD_101), | ||
897 | |||
898 | PINMUX_DATA(PG7_DATA, PG7MD_00), | ||
899 | PINMUX_DATA(LCD_DATA7_MARK, PG7MD_01), | ||
900 | PINMUX_DATA(SD_CD_MARK, PG7MD_10), | ||
901 | PINMUX_DATA(PINT7_PG_MARK, PG7MD_11), | ||
902 | |||
903 | PINMUX_DATA(PG6_DATA, PG7MD_00), | ||
904 | PINMUX_DATA(LCD_DATA6_MARK, PG7MD_01), | ||
905 | PINMUX_DATA(SD_WP_MARK, PG7MD_10), | ||
906 | PINMUX_DATA(PINT6_PG_MARK, PG7MD_11), | ||
907 | |||
908 | PINMUX_DATA(PG5_DATA, PG5MD_00), | ||
909 | PINMUX_DATA(LCD_DATA5_MARK, PG5MD_01), | ||
910 | PINMUX_DATA(SD_D1_MARK, PG5MD_10), | ||
911 | PINMUX_DATA(PINT5_PG_MARK, PG5MD_11), | ||
912 | |||
913 | PINMUX_DATA(PG4_DATA, PG4MD_00), | ||
914 | PINMUX_DATA(LCD_DATA4_MARK, PG4MD_01), | ||
915 | PINMUX_DATA(SD_D0_MARK, PG4MD_10), | ||
916 | PINMUX_DATA(PINT4_PG_MARK, PG4MD_11), | ||
917 | |||
918 | PINMUX_DATA(PG3_DATA, PG3MD_00), | ||
919 | PINMUX_DATA(LCD_DATA3_MARK, PG3MD_01), | ||
920 | PINMUX_DATA(SD_CLK_MARK, PG3MD_10), | ||
921 | PINMUX_DATA(PINT3_PG_MARK, PG3MD_11), | ||
922 | |||
923 | PINMUX_DATA(PG2_DATA, PG2MD_00), | ||
924 | PINMUX_DATA(LCD_DATA2_MARK, PG2MD_01), | ||
925 | PINMUX_DATA(SD_CMD_MARK, PG2MD_10), | ||
926 | PINMUX_DATA(PINT2_PG_MARK, PG2MD_11), | ||
927 | |||
928 | PINMUX_DATA(PG1_DATA, PG1MD_00), | ||
929 | PINMUX_DATA(LCD_DATA1_MARK, PG1MD_01), | ||
930 | PINMUX_DATA(SD_D3_MARK, PG1MD_10), | ||
931 | PINMUX_DATA(PINT1_PG_MARK, PG1MD_11), | ||
932 | |||
933 | PINMUX_DATA(PG0_DATA, PG0MD_000), | ||
934 | PINMUX_DATA(LCD_DATA0_MARK, PG0MD_001), | ||
935 | PINMUX_DATA(SD_D2_MARK, PG0MD_010), | ||
936 | PINMUX_DATA(PINT0_PG_MARK, PG0MD_011), | ||
937 | PINMUX_DATA(WDTOVF_MARK, PG0MD_100), | ||
938 | |||
939 | /* Port H */ | ||
940 | PINMUX_DATA(PH7_DATA, PH7MD_0), | ||
941 | PINMUX_DATA(PHAN7_MARK, PH7MD_1), | ||
942 | |||
943 | PINMUX_DATA(PH6_DATA, PH6MD_0), | ||
944 | PINMUX_DATA(PHAN6_MARK, PH6MD_1), | ||
945 | |||
946 | PINMUX_DATA(PH5_DATA, PH5MD_0), | ||
947 | PINMUX_DATA(PHAN5_MARK, PH5MD_1), | ||
948 | |||
949 | PINMUX_DATA(PH4_DATA, PH4MD_0), | ||
950 | PINMUX_DATA(PHAN4_MARK, PH4MD_1), | ||
951 | |||
952 | PINMUX_DATA(PH3_DATA, PH3MD_0), | ||
953 | PINMUX_DATA(PHAN3_MARK, PH3MD_1), | ||
954 | |||
955 | PINMUX_DATA(PH2_DATA, PH2MD_0), | ||
956 | PINMUX_DATA(PHAN2_MARK, PH2MD_1), | ||
957 | |||
958 | PINMUX_DATA(PH1_DATA, PH1MD_0), | ||
959 | PINMUX_DATA(PHAN1_MARK, PH1MD_1), | ||
960 | |||
961 | PINMUX_DATA(PH0_DATA, PH0MD_0), | ||
962 | PINMUX_DATA(PHAN0_MARK, PH0MD_1), | ||
963 | |||
964 | /* Port I - not on device */ | ||
965 | |||
966 | /* Port J */ | ||
967 | PINMUX_DATA(PJ11_DATA, PJ11MD_00), | ||
968 | PINMUX_DATA(PWM2H_MARK, PJ11MD_01), | ||
969 | PINMUX_DATA(DACK1_MARK, PJ11MD_10), | ||
970 | |||
971 | PINMUX_DATA(PJ10_DATA, PJ10MD_00), | ||
972 | PINMUX_DATA(PWM2G_MARK, PJ10MD_01), | ||
973 | PINMUX_DATA(DREQ1_MARK, PJ10MD_10), | ||
974 | |||
975 | PINMUX_DATA(PJ9_DATA, PJ9MD_00), | ||
976 | PINMUX_DATA(PWM2F_MARK, PJ9MD_01), | ||
977 | PINMUX_DATA(TEND1_MARK, PJ9MD_10), | ||
978 | |||
979 | PINMUX_DATA(PJ8_DATA, PJ8MD_00), | ||
980 | PINMUX_DATA(PWM2E_MARK, PJ8MD_01), | ||
981 | PINMUX_DATA(RTS3_MARK, PJ8MD_10), | ||
982 | |||
983 | PINMUX_DATA(PJ7_DATA, PJ7MD_00), | ||
984 | PINMUX_DATA(TIOC1B_MARK, PJ7MD_01), | ||
985 | PINMUX_DATA(CTS3_MARK, PJ7MD_10), | ||
986 | |||
987 | PINMUX_DATA(PJ6_DATA, PJ6MD_00), | ||
988 | PINMUX_DATA(TIOC1A_MARK, PJ6MD_01), | ||
989 | PINMUX_DATA(SCK3_MARK, PJ6MD_10), | ||
990 | |||
991 | PINMUX_DATA(PJ5_DATA, PJ5MD_00), | ||
992 | PINMUX_DATA(IERXD_MARK, PJ5MD_01), | ||
993 | PINMUX_DATA(TXD3_MARK, PJ5MD_10), | ||
994 | |||
995 | PINMUX_DATA(PJ4_DATA, PJ4MD_00), | ||
996 | PINMUX_DATA(IETXD_MARK, PJ4MD_01), | ||
997 | PINMUX_DATA(RXD3_MARK, PJ4MD_10), | ||
998 | |||
999 | PINMUX_DATA(PJ3_DATA, PJ3MD_00), | ||
1000 | PINMUX_DATA(CRX1_MARK, PJ3MD_01), | ||
1001 | PINMUX_DATA(CRX0X1_MARK, PJ3MD_10), | ||
1002 | PINMUX_DATA(IRQ1_PJ_MARK, PJ3MD_11), | ||
1003 | |||
1004 | PINMUX_DATA(PJ2_DATA, PJ2MD_000), | ||
1005 | PINMUX_DATA(CTX1_MARK, PJ2MD_001), | ||
1006 | PINMUX_DATA(CRX0CRX1_MARK, PJ2MD_010), | ||
1007 | PINMUX_DATA(CS2_MARK, PJ2MD_011), | ||
1008 | PINMUX_DATA(SCK0_MARK, PJ2MD_100), | ||
1009 | PINMUX_DATA(LCD_M_DISP_MARK, PJ2MD_101), | ||
1010 | |||
1011 | PINMUX_DATA(PJ1_DATA, PJ1MD_000), | ||
1012 | PINMUX_DATA(CRX0_MARK, PJ1MD_001), | ||
1013 | PINMUX_DATA(IERXD_MARK, PJ1MD_010), | ||
1014 | PINMUX_DATA(IRQ0_PJ_MARK, PJ1MD_011), | ||
1015 | PINMUX_DATA(RXD0_MARK, PJ1MD_100), | ||
1016 | |||
1017 | PINMUX_DATA(PJ0_DATA, PJ0MD_000), | ||
1018 | PINMUX_DATA(CTX0_MARK, PJ0MD_001), | ||
1019 | PINMUX_DATA(IERXD_MARK, PJ0MD_010), | ||
1020 | PINMUX_DATA(CS1_MARK, PJ0MD_011), | ||
1021 | PINMUX_DATA(TXD0_MARK, PJ0MD_100), | ||
1022 | PINMUX_DATA(A0_MARK, PJ0MD_101), | ||
1023 | |||
1024 | /* Port K */ | ||
1025 | PINMUX_DATA(PK11_DATA, PK11MD_00), | ||
1026 | PINMUX_DATA(PWM2D_MARK, PK11MD_01), | ||
1027 | PINMUX_DATA(SSITXD0_MARK, PK11MD_10), | ||
1028 | |||
1029 | PINMUX_DATA(PK10_DATA, PK10MD_00), | ||
1030 | PINMUX_DATA(PWM2C_MARK, PK10MD_01), | ||
1031 | PINMUX_DATA(SSIRXD0_MARK, PK10MD_10), | ||
1032 | |||
1033 | PINMUX_DATA(PK9_DATA, PK9MD_00), | ||
1034 | PINMUX_DATA(PWM2B_MARK, PK9MD_01), | ||
1035 | PINMUX_DATA(SSIWS0_MARK, PK9MD_10), | ||
1036 | |||
1037 | PINMUX_DATA(PK8_DATA, PK8MD_00), | ||
1038 | PINMUX_DATA(PWM2A_MARK, PK8MD_01), | ||
1039 | PINMUX_DATA(SSISCK0_MARK, PK8MD_10), | ||
1040 | |||
1041 | PINMUX_DATA(PK7_DATA, PK7MD_00), | ||
1042 | PINMUX_DATA(PWM1H_MARK, PK7MD_01), | ||
1043 | PINMUX_DATA(SD_CD_MARK, PK7MD_10), | ||
1044 | |||
1045 | PINMUX_DATA(PK6_DATA, PK6MD_00), | ||
1046 | PINMUX_DATA(PWM1G_MARK, PK6MD_01), | ||
1047 | PINMUX_DATA(SD_WP_MARK, PK6MD_10), | ||
1048 | |||
1049 | PINMUX_DATA(PK5_DATA, PK5MD_00), | ||
1050 | PINMUX_DATA(PWM1F_MARK, PK5MD_01), | ||
1051 | PINMUX_DATA(SD_D1_MARK, PK5MD_10), | ||
1052 | |||
1053 | PINMUX_DATA(PK4_DATA, PK4MD_00), | ||
1054 | PINMUX_DATA(PWM1E_MARK, PK4MD_01), | ||
1055 | PINMUX_DATA(SD_D0_MARK, PK4MD_10), | ||
1056 | |||
1057 | PINMUX_DATA(PK3_DATA, PK3MD_00), | ||
1058 | PINMUX_DATA(PWM1D_MARK, PK3MD_01), | ||
1059 | PINMUX_DATA(SD_CLK_MARK, PK3MD_10), | ||
1060 | |||
1061 | PINMUX_DATA(PK2_DATA, PK2MD_00), | ||
1062 | PINMUX_DATA(PWM1C_MARK, PK2MD_01), | ||
1063 | PINMUX_DATA(SD_CMD_MARK, PK2MD_10), | ||
1064 | |||
1065 | PINMUX_DATA(PK1_DATA, PK1MD_00), | ||
1066 | PINMUX_DATA(PWM1B_MARK, PK1MD_01), | ||
1067 | PINMUX_DATA(SD_D3_MARK, PK1MD_10), | ||
1068 | |||
1069 | PINMUX_DATA(PK0_DATA, PK0MD_00), | ||
1070 | PINMUX_DATA(PWM1A_MARK, PK0MD_01), | ||
1071 | PINMUX_DATA(SD_D2_MARK, PK0MD_10), | ||
1072 | }; | ||
1073 | |||
1074 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1075 | |||
1076 | /* Port A */ | ||
1077 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
1078 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
1079 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
1080 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
1081 | |||
1082 | /* Port B */ | ||
1083 | PINMUX_GPIO(GPIO_PB22, PB22_DATA), | ||
1084 | PINMUX_GPIO(GPIO_PB21, PB21_DATA), | ||
1085 | PINMUX_GPIO(GPIO_PB20, PB20_DATA), | ||
1086 | PINMUX_GPIO(GPIO_PB19, PB19_DATA), | ||
1087 | PINMUX_GPIO(GPIO_PB18, PB18_DATA), | ||
1088 | PINMUX_GPIO(GPIO_PB17, PB17_DATA), | ||
1089 | PINMUX_GPIO(GPIO_PB16, PB16_DATA), | ||
1090 | PINMUX_GPIO(GPIO_PB15, PB15_DATA), | ||
1091 | PINMUX_GPIO(GPIO_PB14, PB14_DATA), | ||
1092 | PINMUX_GPIO(GPIO_PB13, PB13_DATA), | ||
1093 | PINMUX_GPIO(GPIO_PB12, PB12_DATA), | ||
1094 | PINMUX_GPIO(GPIO_PB11, PB11_DATA), | ||
1095 | PINMUX_GPIO(GPIO_PB10, PB10_DATA), | ||
1096 | PINMUX_GPIO(GPIO_PB9, PB9_DATA), | ||
1097 | PINMUX_GPIO(GPIO_PB8, PB8_DATA), | ||
1098 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
1099 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
1100 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
1101 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
1102 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
1103 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
1104 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
1105 | |||
1106 | /* Port C */ | ||
1107 | PINMUX_GPIO(GPIO_PC10, PC10_DATA), | ||
1108 | PINMUX_GPIO(GPIO_PC9, PC9_DATA), | ||
1109 | PINMUX_GPIO(GPIO_PC8, PC8_DATA), | ||
1110 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
1111 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
1112 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
1113 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
1114 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
1115 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
1116 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
1117 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
1118 | |||
1119 | /* Port D */ | ||
1120 | PINMUX_GPIO(GPIO_PD15, PD15_DATA), | ||
1121 | PINMUX_GPIO(GPIO_PD14, PD14_DATA), | ||
1122 | PINMUX_GPIO(GPIO_PD13, PD13_DATA), | ||
1123 | PINMUX_GPIO(GPIO_PD12, PD12_DATA), | ||
1124 | PINMUX_GPIO(GPIO_PD11, PD11_DATA), | ||
1125 | PINMUX_GPIO(GPIO_PD10, PD10_DATA), | ||
1126 | PINMUX_GPIO(GPIO_PD9, PD9_DATA), | ||
1127 | PINMUX_GPIO(GPIO_PD8, PD8_DATA), | ||
1128 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
1129 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
1130 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
1131 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
1132 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
1133 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
1134 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
1135 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
1136 | |||
1137 | /* Port E */ | ||
1138 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
1139 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
1140 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
1141 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
1142 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
1143 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
1144 | |||
1145 | /* Port F */ | ||
1146 | PINMUX_GPIO(GPIO_PF12, PF12_DATA), | ||
1147 | PINMUX_GPIO(GPIO_PF11, PF11_DATA), | ||
1148 | PINMUX_GPIO(GPIO_PF10, PF10_DATA), | ||
1149 | PINMUX_GPIO(GPIO_PF9, PF9_DATA), | ||
1150 | PINMUX_GPIO(GPIO_PF8, PF8_DATA), | ||
1151 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
1152 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
1153 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
1154 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
1155 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
1156 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
1157 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
1158 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
1159 | |||
1160 | /* Port G */ | ||
1161 | PINMUX_GPIO(GPIO_PG24, PG24_DATA), | ||
1162 | PINMUX_GPIO(GPIO_PG23, PG23_DATA), | ||
1163 | PINMUX_GPIO(GPIO_PG22, PG22_DATA), | ||
1164 | PINMUX_GPIO(GPIO_PG21, PG21_DATA), | ||
1165 | PINMUX_GPIO(GPIO_PG20, PG20_DATA), | ||
1166 | PINMUX_GPIO(GPIO_PG19, PG19_DATA), | ||
1167 | PINMUX_GPIO(GPIO_PG18, PG18_DATA), | ||
1168 | PINMUX_GPIO(GPIO_PG17, PG17_DATA), | ||
1169 | PINMUX_GPIO(GPIO_PG16, PG16_DATA), | ||
1170 | PINMUX_GPIO(GPIO_PG15, PG15_DATA), | ||
1171 | PINMUX_GPIO(GPIO_PG14, PG14_DATA), | ||
1172 | PINMUX_GPIO(GPIO_PG13, PG13_DATA), | ||
1173 | PINMUX_GPIO(GPIO_PG12, PG12_DATA), | ||
1174 | PINMUX_GPIO(GPIO_PG11, PG11_DATA), | ||
1175 | PINMUX_GPIO(GPIO_PG10, PG10_DATA), | ||
1176 | PINMUX_GPIO(GPIO_PG9, PG9_DATA), | ||
1177 | PINMUX_GPIO(GPIO_PG8, PG8_DATA), | ||
1178 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
1179 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
1180 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
1181 | PINMUX_GPIO(GPIO_PG4, PG4_DATA), | ||
1182 | PINMUX_GPIO(GPIO_PG3, PG3_DATA), | ||
1183 | PINMUX_GPIO(GPIO_PG2, PG2_DATA), | ||
1184 | PINMUX_GPIO(GPIO_PG1, PG1_DATA), | ||
1185 | PINMUX_GPIO(GPIO_PG0, PG0_DATA), | ||
1186 | |||
1187 | /* Port H - Port H does not have a Data Register */ | ||
1188 | |||
1189 | /* Port I - not on device */ | ||
1190 | |||
1191 | /* Port J */ | ||
1192 | PINMUX_GPIO(GPIO_PJ11, PJ11_DATA), | ||
1193 | PINMUX_GPIO(GPIO_PJ10, PJ10_DATA), | ||
1194 | PINMUX_GPIO(GPIO_PJ9, PJ9_DATA), | ||
1195 | PINMUX_GPIO(GPIO_PJ8, PJ8_DATA), | ||
1196 | PINMUX_GPIO(GPIO_PJ7, PJ7_DATA), | ||
1197 | PINMUX_GPIO(GPIO_PJ6, PJ6_DATA), | ||
1198 | PINMUX_GPIO(GPIO_PJ5, PJ5_DATA), | ||
1199 | PINMUX_GPIO(GPIO_PJ4, PJ4_DATA), | ||
1200 | PINMUX_GPIO(GPIO_PJ3, PJ3_DATA), | ||
1201 | PINMUX_GPIO(GPIO_PJ2, PJ2_DATA), | ||
1202 | PINMUX_GPIO(GPIO_PJ1, PJ1_DATA), | ||
1203 | PINMUX_GPIO(GPIO_PJ0, PJ0_DATA), | ||
1204 | |||
1205 | /* Port K */ | ||
1206 | PINMUX_GPIO(GPIO_PK11, PK11_DATA), | ||
1207 | PINMUX_GPIO(GPIO_PK10, PK10_DATA), | ||
1208 | PINMUX_GPIO(GPIO_PK9, PK9_DATA), | ||
1209 | PINMUX_GPIO(GPIO_PK8, PK8_DATA), | ||
1210 | PINMUX_GPIO(GPIO_PK7, PK7_DATA), | ||
1211 | PINMUX_GPIO(GPIO_PK6, PK6_DATA), | ||
1212 | PINMUX_GPIO(GPIO_PK5, PK5_DATA), | ||
1213 | PINMUX_GPIO(GPIO_PK4, PK4_DATA), | ||
1214 | PINMUX_GPIO(GPIO_PK3, PK3_DATA), | ||
1215 | PINMUX_GPIO(GPIO_PK2, PK2_DATA), | ||
1216 | PINMUX_GPIO(GPIO_PK1, PK1_DATA), | ||
1217 | PINMUX_GPIO(GPIO_PK0, PK0_DATA), | ||
1218 | |||
1219 | /* INTC */ | ||
1220 | PINMUX_GPIO(GPIO_FN_PINT7_PG, PINT7_PG_MARK), | ||
1221 | PINMUX_GPIO(GPIO_FN_PINT6_PG, PINT6_PG_MARK), | ||
1222 | PINMUX_GPIO(GPIO_FN_PINT5_PG, PINT5_PG_MARK), | ||
1223 | PINMUX_GPIO(GPIO_FN_PINT4_PG, PINT4_PG_MARK), | ||
1224 | PINMUX_GPIO(GPIO_FN_PINT3_PG, PINT3_PG_MARK), | ||
1225 | PINMUX_GPIO(GPIO_FN_PINT2_PG, PINT2_PG_MARK), | ||
1226 | PINMUX_GPIO(GPIO_FN_PINT1_PG, PINT1_PG_MARK), | ||
1227 | |||
1228 | PINMUX_GPIO(GPIO_FN_IRQ7_PC, IRQ7_PC_MARK), | ||
1229 | PINMUX_GPIO(GPIO_FN_IRQ6_PC, IRQ6_PC_MARK), | ||
1230 | PINMUX_GPIO(GPIO_FN_IRQ5_PC, IRQ5_PC_MARK), | ||
1231 | PINMUX_GPIO(GPIO_FN_IRQ4_PC, IRQ4_PC_MARK), | ||
1232 | PINMUX_GPIO(GPIO_FN_IRQ3_PG, IRQ3_PG_MARK), | ||
1233 | PINMUX_GPIO(GPIO_FN_IRQ2_PG, IRQ2_PG_MARK), | ||
1234 | PINMUX_GPIO(GPIO_FN_IRQ1_PJ, IRQ1_PJ_MARK), | ||
1235 | PINMUX_GPIO(GPIO_FN_IRQ0_PJ, IRQ0_PJ_MARK), | ||
1236 | PINMUX_GPIO(GPIO_FN_IRQ3_PE, IRQ3_PE_MARK), | ||
1237 | PINMUX_GPIO(GPIO_FN_IRQ2_PE, IRQ2_PE_MARK), | ||
1238 | PINMUX_GPIO(GPIO_FN_IRQ1_PE, IRQ1_PE_MARK), | ||
1239 | PINMUX_GPIO(GPIO_FN_IRQ0_PE, IRQ0_PE_MARK), | ||
1240 | |||
1241 | /* WDT */ | ||
1242 | PINMUX_GPIO(GPIO_FN_WDTOVF, WDTOVF_MARK), | ||
1243 | |||
1244 | /* CAN */ | ||
1245 | PINMUX_GPIO(GPIO_FN_CTX1, CTX1_MARK), | ||
1246 | PINMUX_GPIO(GPIO_FN_CRX1, CRX1_MARK), | ||
1247 | PINMUX_GPIO(GPIO_FN_CTX0, CTX0_MARK), | ||
1248 | PINMUX_GPIO(GPIO_FN_CRX0, CRX0_MARK), | ||
1249 | PINMUX_GPIO(GPIO_FN_CRX0_CRX1, CRX0CRX1_MARK), | ||
1250 | |||
1251 | /* DMAC */ | ||
1252 | PINMUX_GPIO(GPIO_FN_TEND0, TEND0_MARK), | ||
1253 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
1254 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1255 | PINMUX_GPIO(GPIO_FN_TEND1, TEND1_MARK), | ||
1256 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
1257 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
1258 | |||
1259 | /* ADC */ | ||
1260 | PINMUX_GPIO(GPIO_FN_ADTRG, ADTRG_MARK), | ||
1261 | |||
1262 | /* BSCh */ | ||
1263 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1264 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1265 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1266 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1267 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
1268 | PINMUX_GPIO(GPIO_FN_A20, A20_MARK), | ||
1269 | PINMUX_GPIO(GPIO_FN_A19, A19_MARK), | ||
1270 | PINMUX_GPIO(GPIO_FN_A18, A18_MARK), | ||
1271 | PINMUX_GPIO(GPIO_FN_A17, A17_MARK), | ||
1272 | PINMUX_GPIO(GPIO_FN_A16, A16_MARK), | ||
1273 | PINMUX_GPIO(GPIO_FN_A15, A15_MARK), | ||
1274 | PINMUX_GPIO(GPIO_FN_A14, A14_MARK), | ||
1275 | PINMUX_GPIO(GPIO_FN_A13, A13_MARK), | ||
1276 | PINMUX_GPIO(GPIO_FN_A12, A12_MARK), | ||
1277 | PINMUX_GPIO(GPIO_FN_A11, A11_MARK), | ||
1278 | PINMUX_GPIO(GPIO_FN_A10, A10_MARK), | ||
1279 | PINMUX_GPIO(GPIO_FN_A9, A9_MARK), | ||
1280 | PINMUX_GPIO(GPIO_FN_A8, A8_MARK), | ||
1281 | PINMUX_GPIO(GPIO_FN_A7, A7_MARK), | ||
1282 | PINMUX_GPIO(GPIO_FN_A6, A6_MARK), | ||
1283 | PINMUX_GPIO(GPIO_FN_A5, A5_MARK), | ||
1284 | PINMUX_GPIO(GPIO_FN_A4, A4_MARK), | ||
1285 | PINMUX_GPIO(GPIO_FN_A3, A3_MARK), | ||
1286 | PINMUX_GPIO(GPIO_FN_A2, A2_MARK), | ||
1287 | PINMUX_GPIO(GPIO_FN_A1, A1_MARK), | ||
1288 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
1289 | |||
1290 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1291 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1292 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1293 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1294 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1295 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1296 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1297 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1298 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1299 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1300 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1301 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1302 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1303 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1304 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1305 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1306 | |||
1307 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1308 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
1309 | PINMUX_GPIO(GPIO_FN_CS3, CS3_MARK), | ||
1310 | PINMUX_GPIO(GPIO_FN_CS2, CS2_MARK), | ||
1311 | PINMUX_GPIO(GPIO_FN_CS1, CS1_MARK), | ||
1312 | PINMUX_GPIO(GPIO_FN_CS0, CS0_MARK), | ||
1313 | PINMUX_GPIO(GPIO_FN_CS6CE1B, CS6CE1B_MARK), | ||
1314 | PINMUX_GPIO(GPIO_FN_CS5CE1A, CS5CE1A_MARK), | ||
1315 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
1316 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
1317 | PINMUX_GPIO(GPIO_FN_RD, RD_MARK), | ||
1318 | PINMUX_GPIO(GPIO_FN_RDWR, RDWR_MARK), | ||
1319 | PINMUX_GPIO(GPIO_FN_ICIOWRAH, ICIOWRAH_MARK), | ||
1320 | PINMUX_GPIO(GPIO_FN_ICIORD, ICIORD_MARK), | ||
1321 | PINMUX_GPIO(GPIO_FN_WE1DQMUWE, WE1DQMUWE_MARK), | ||
1322 | PINMUX_GPIO(GPIO_FN_WE0DQML, WE0DQML_MARK), | ||
1323 | PINMUX_GPIO(GPIO_FN_RAS, RAS_MARK), | ||
1324 | PINMUX_GPIO(GPIO_FN_CAS, CAS_MARK), | ||
1325 | PINMUX_GPIO(GPIO_FN_CKE, CKE_MARK), | ||
1326 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1327 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
1328 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
1329 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1330 | |||
1331 | /* TMU */ | ||
1332 | PINMUX_GPIO(GPIO_FN_TIOC4D, TIOC4D_MARK), | ||
1333 | PINMUX_GPIO(GPIO_FN_TIOC4C, TIOC4C_MARK), | ||
1334 | PINMUX_GPIO(GPIO_FN_TIOC4B, TIOC4B_MARK), | ||
1335 | PINMUX_GPIO(GPIO_FN_TIOC4A, TIOC4A_MARK), | ||
1336 | PINMUX_GPIO(GPIO_FN_TIOC3D, TIOC3D_MARK), | ||
1337 | PINMUX_GPIO(GPIO_FN_TIOC3C, TIOC3C_MARK), | ||
1338 | PINMUX_GPIO(GPIO_FN_TIOC3B, TIOC3B_MARK), | ||
1339 | PINMUX_GPIO(GPIO_FN_TIOC3A, TIOC3A_MARK), | ||
1340 | PINMUX_GPIO(GPIO_FN_TIOC2B, TIOC2B_MARK), | ||
1341 | PINMUX_GPIO(GPIO_FN_TIOC1B, TIOC1B_MARK), | ||
1342 | PINMUX_GPIO(GPIO_FN_TIOC2A, TIOC2A_MARK), | ||
1343 | PINMUX_GPIO(GPIO_FN_TIOC1A, TIOC1A_MARK), | ||
1344 | PINMUX_GPIO(GPIO_FN_TIOC0D, TIOC0D_MARK), | ||
1345 | PINMUX_GPIO(GPIO_FN_TIOC0C, TIOC0C_MARK), | ||
1346 | PINMUX_GPIO(GPIO_FN_TIOC0B, TIOC0B_MARK), | ||
1347 | PINMUX_GPIO(GPIO_FN_TIOC0A, TIOC0A_MARK), | ||
1348 | PINMUX_GPIO(GPIO_FN_TCLKD, TCLKD_MARK), | ||
1349 | PINMUX_GPIO(GPIO_FN_TCLKC, TCLKC_MARK), | ||
1350 | PINMUX_GPIO(GPIO_FN_TCLKB, TCLKB_MARK), | ||
1351 | PINMUX_GPIO(GPIO_FN_TCLKA, TCLKA_MARK), | ||
1352 | |||
1353 | /* SCIF */ | ||
1354 | PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), | ||
1355 | PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), | ||
1356 | PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), | ||
1357 | PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), | ||
1358 | PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), | ||
1359 | PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), | ||
1360 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
1361 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
1362 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
1363 | PINMUX_GPIO(GPIO_FN_RTS3, RTS3_MARK), | ||
1364 | PINMUX_GPIO(GPIO_FN_CTS3, CTS3_MARK), | ||
1365 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
1366 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
1367 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
1368 | PINMUX_GPIO(GPIO_FN_TXD4, TXD4_MARK), | ||
1369 | PINMUX_GPIO(GPIO_FN_RXD4, RXD4_MARK), | ||
1370 | PINMUX_GPIO(GPIO_FN_TXD5, TXD5_MARK), | ||
1371 | PINMUX_GPIO(GPIO_FN_RXD5, RXD5_MARK), | ||
1372 | PINMUX_GPIO(GPIO_FN_TXD6, TXD6_MARK), | ||
1373 | PINMUX_GPIO(GPIO_FN_RXD6, RXD6_MARK), | ||
1374 | PINMUX_GPIO(GPIO_FN_TXD7, TXD7_MARK), | ||
1375 | PINMUX_GPIO(GPIO_FN_RXD7, RXD7_MARK), | ||
1376 | PINMUX_GPIO(GPIO_FN_RTS1, RTS1_MARK), | ||
1377 | PINMUX_GPIO(GPIO_FN_CTS1, CTS1_MARK), | ||
1378 | |||
1379 | /* RSPI */ | ||
1380 | PINMUX_GPIO(GPIO_FN_RSPCK0, RSPCK0_MARK), | ||
1381 | PINMUX_GPIO(GPIO_FN_MOSI0, MOSI0_MARK), | ||
1382 | PINMUX_GPIO(GPIO_FN_MISO0_PF12, MISO0_PF12_MARK), | ||
1383 | PINMUX_GPIO(GPIO_FN_MISO1, MISO1_MARK), | ||
1384 | PINMUX_GPIO(GPIO_FN_SSL00, SSL00_MARK), | ||
1385 | PINMUX_GPIO(GPIO_FN_RSPCK1, RSPCK1_MARK), | ||
1386 | PINMUX_GPIO(GPIO_FN_MOSI1, MOSI1_MARK), | ||
1387 | PINMUX_GPIO(GPIO_FN_MISO1_PG19, MISO1_PG19_MARK), | ||
1388 | PINMUX_GPIO(GPIO_FN_SSL10, SSL10_MARK), | ||
1389 | |||
1390 | /* IIC3 */ | ||
1391 | PINMUX_GPIO(GPIO_FN_SCL0, SCL0_MARK), | ||
1392 | PINMUX_GPIO(GPIO_FN_SCL1, SCL1_MARK), | ||
1393 | PINMUX_GPIO(GPIO_FN_SCL2, SCL2_MARK), | ||
1394 | PINMUX_GPIO(GPIO_FN_SDA0, SDA0_MARK), | ||
1395 | PINMUX_GPIO(GPIO_FN_SDA1, SDA1_MARK), | ||
1396 | PINMUX_GPIO(GPIO_FN_SDA2, SDA2_MARK), | ||
1397 | |||
1398 | /* SSI */ | ||
1399 | PINMUX_GPIO(GPIO_FN_SSISCK0, SSISCK0_MARK), | ||
1400 | PINMUX_GPIO(GPIO_FN_SSIWS0, SSIWS0_MARK), | ||
1401 | PINMUX_GPIO(GPIO_FN_SSITXD0, SSITXD0_MARK), | ||
1402 | PINMUX_GPIO(GPIO_FN_SSIRXD0, SSIRXD0_MARK), | ||
1403 | PINMUX_GPIO(GPIO_FN_SSIWS1, SSIWS1_MARK), | ||
1404 | PINMUX_GPIO(GPIO_FN_SSIWS2, SSIWS2_MARK), | ||
1405 | PINMUX_GPIO(GPIO_FN_SSIWS3, SSIWS3_MARK), | ||
1406 | PINMUX_GPIO(GPIO_FN_SSISCK1, SSISCK1_MARK), | ||
1407 | PINMUX_GPIO(GPIO_FN_SSISCK2, SSISCK2_MARK), | ||
1408 | PINMUX_GPIO(GPIO_FN_SSISCK3, SSISCK3_MARK), | ||
1409 | PINMUX_GPIO(GPIO_FN_SSIDATA1, SSIDATA1_MARK), | ||
1410 | PINMUX_GPIO(GPIO_FN_SSIDATA2, SSIDATA2_MARK), | ||
1411 | PINMUX_GPIO(GPIO_FN_SSIDATA3, SSIDATA3_MARK), | ||
1412 | PINMUX_GPIO(GPIO_FN_AUDIO_CLK, AUDIO_CLK_MARK), | ||
1413 | |||
1414 | /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
1415 | PINMUX_GPIO(GPIO_FN_SIOFTXD, SIOFTXD_MARK), | ||
1416 | PINMUX_GPIO(GPIO_FN_SIOFRXD, SIOFRXD_MARK), | ||
1417 | PINMUX_GPIO(GPIO_FN_SIOFSYNC, SIOFSYNC_MARK), | ||
1418 | PINMUX_GPIO(GPIO_FN_SIOFSCK, SIOFSCK_MARK), | ||
1419 | |||
1420 | /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
1421 | PINMUX_GPIO(GPIO_FN_SPDIF_IN, SPDIF_IN_MARK), | ||
1422 | PINMUX_GPIO(GPIO_FN_SPDIF_OUT, SPDIF_OUT_MARK), | ||
1423 | |||
1424 | /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */ | ||
1425 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1426 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1427 | |||
1428 | /* VDC3 */ | ||
1429 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1430 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1431 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1432 | |||
1433 | PINMUX_GPIO(GPIO_FN_DV_DATA7, DV_DATA7_MARK), | ||
1434 | PINMUX_GPIO(GPIO_FN_DV_DATA6, DV_DATA6_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_DV_DATA5, DV_DATA5_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_DV_DATA4, DV_DATA4_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_DV_DATA3, DV_DATA3_MARK), | ||
1438 | PINMUX_GPIO(GPIO_FN_DV_DATA2, DV_DATA2_MARK), | ||
1439 | PINMUX_GPIO(GPIO_FN_DV_DATA1, DV_DATA1_MARK), | ||
1440 | PINMUX_GPIO(GPIO_FN_DV_DATA0, DV_DATA0_MARK), | ||
1441 | |||
1442 | PINMUX_GPIO(GPIO_FN_LCD_CLK, LCD_CLK_MARK), | ||
1443 | PINMUX_GPIO(GPIO_FN_LCD_EXTCLK, LCD_EXTCLK_MARK), | ||
1444 | PINMUX_GPIO(GPIO_FN_LCD_VSYNC, LCD_VSYNC_MARK), | ||
1445 | PINMUX_GPIO(GPIO_FN_LCD_HSYNC, LCD_HSYNC_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_LCD_DE, LCD_DE_MARK), | ||
1447 | |||
1448 | PINMUX_GPIO(GPIO_FN_LCD_DATA15, LCD_DATA15_MARK), | ||
1449 | PINMUX_GPIO(GPIO_FN_LCD_DATA14, LCD_DATA14_MARK), | ||
1450 | PINMUX_GPIO(GPIO_FN_LCD_DATA13, LCD_DATA13_MARK), | ||
1451 | PINMUX_GPIO(GPIO_FN_LCD_DATA12, LCD_DATA12_MARK), | ||
1452 | PINMUX_GPIO(GPIO_FN_LCD_DATA11, LCD_DATA11_MARK), | ||
1453 | PINMUX_GPIO(GPIO_FN_LCD_DATA10, LCD_DATA10_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_LCD_DATA9, LCD_DATA9_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_LCD_DATA8, LCD_DATA8_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_LCD_DATA7, LCD_DATA7_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_LCD_DATA6, LCD_DATA6_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_LCD_DATA5, LCD_DATA5_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_LCD_DATA4, LCD_DATA4_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_LCD_DATA3, LCD_DATA3_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_LCD_DATA2, LCD_DATA2_MARK), | ||
1462 | PINMUX_GPIO(GPIO_FN_LCD_DATA1, LCD_DATA1_MARK), | ||
1463 | PINMUX_GPIO(GPIO_FN_LCD_DATA0, LCD_DATA0_MARK), | ||
1464 | |||
1465 | PINMUX_GPIO(GPIO_FN_LCD_M_DISP, LCD_M_DISP_MARK), | ||
1466 | }; | ||
1467 | |||
1468 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1469 | { PINMUX_CFG_REG("PAIOR0", 0xfffe3812, 16, 1) { | ||
1470 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1471 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1472 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1473 | PA3_IN, PA3_OUT, | ||
1474 | PA2_IN, PA2_OUT, | ||
1475 | PA1_IN, PA1_OUT, | ||
1476 | PA0_IN, PA0_OUT } | ||
1477 | }, | ||
1478 | |||
1479 | { PINMUX_CFG_REG("PBCR5", 0xfffe3824, 16, 4) { | ||
1480 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1481 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1482 | PB22MD_00, PB22MD_01, PB22MD_10, 0, 0, 0, 0, 0, | ||
1483 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1484 | PB21MD_0, PB21MD_1, 0, 0, 0, 0, 0, 0, | ||
1485 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1486 | 0, PB20MD_1, 0, 0, 0, 0, 0, 0, | ||
1487 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1488 | |||
1489 | }, | ||
1490 | { PINMUX_CFG_REG("PBCR4", 0xfffe3826, 16, 4) { | ||
1491 | 0, PB19MD_01, 0, 0, 0, 0, 0, 0, | ||
1492 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1493 | 0, PB18MD_01, 0, 0, 0, 0, 0, 0, | ||
1494 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1495 | 0, PB17MD_01, 0, 0, 0, 0, 0, 0, | ||
1496 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1497 | 0, PB16MD_01, 0, 0, 0, 0, 0, 0, | ||
1498 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1499 | }, | ||
1500 | { PINMUX_CFG_REG("PBCR3", 0xfffe3828, 16, 4) { | ||
1501 | 0, PB15MD_01, 0, 0, 0, 0, 0, 0, | ||
1502 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1503 | 0, PB14MD_01, 0, 0, 0, 0, 0, 0, | ||
1504 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1505 | 0, PB13MD_01, 0, 0, 0, 0, 0, 0, | ||
1506 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1507 | 0, PB12MD_01, 0, 0, 0, 0, 0, 0, | ||
1508 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1509 | }, | ||
1510 | { PINMUX_CFG_REG("PBCR2", 0xfffe382a, 16, 4) { | ||
1511 | 0, PB11MD_01, 0, 0, 0, 0, 0, 0, | ||
1512 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1513 | 0, PB10MD_01, 0, 0, 0, 0, 0, 0, | ||
1514 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1515 | 0, PB9MD_01, 0, 0, 0, 0, 0, 0, | ||
1516 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1517 | 0, PB8MD_01, 0, 0, 0, 0, 0, 0, | ||
1518 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1519 | }, | ||
1520 | { PINMUX_CFG_REG("PBCR1", 0xfffe382c, 16, 4) { | ||
1521 | 0, PB7MD_01, 0, 0, 0, 0, 0, 0, | ||
1522 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1523 | 0, PB6MD_01, 0, 0, 0, 0, 0, 0, | ||
1524 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1525 | 0, PB5MD_01, 0, 0, 0, 0, 0, 0, | ||
1526 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1527 | 0, PB4MD_01, 0, 0, 0, 0, 0, 0, | ||
1528 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1529 | }, | ||
1530 | { PINMUX_CFG_REG("PBCR0", 0xfffe382e, 16, 4) { | ||
1531 | 0, PB3MD_1, 0, 0, 0, 0, 0, 0, | ||
1532 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1533 | 0, PB2MD_1, 0, 0, 0, 0, 0, 0, | ||
1534 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1535 | 0, PB1MD_1, 0, 0, 0, 0, 0, 0, | ||
1536 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1537 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1538 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1539 | }, | ||
1540 | |||
1541 | { PINMUX_CFG_REG("PBIOR1", 0xfffe3830, 16, 1) { | ||
1542 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1543 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1544 | 0, 0, | ||
1545 | PB22_IN, PB22_OUT, | ||
1546 | PB21_IN, PB21_OUT, | ||
1547 | PB20_IN, PB20_OUT, | ||
1548 | PB19_IN, PB19_OUT, | ||
1549 | PB18_IN, PB18_OUT, | ||
1550 | PB17_IN, PB17_OUT, | ||
1551 | PB16_IN, PB16_OUT } | ||
1552 | }, | ||
1553 | |||
1554 | { PINMUX_CFG_REG("PBIOR0", 0xfffe3832, 16, 1) { | ||
1555 | PB15_IN, PB15_OUT, | ||
1556 | PB14_IN, PB14_OUT, | ||
1557 | PB13_IN, PB13_OUT, | ||
1558 | PB12_IN, PB12_OUT, | ||
1559 | PB11_IN, PB11_OUT, | ||
1560 | PB10_IN, PB10_OUT, | ||
1561 | PB9_IN, PB9_OUT, | ||
1562 | PB8_IN, PB8_OUT, | ||
1563 | PB7_IN, PB7_OUT, | ||
1564 | PB6_IN, PB6_OUT, | ||
1565 | PB5_IN, PB5_OUT, | ||
1566 | PB4_IN, PB4_OUT, | ||
1567 | PB3_IN, PB3_OUT, | ||
1568 | PB2_IN, PB2_OUT, | ||
1569 | PB1_IN, PB1_OUT, | ||
1570 | 0, 0 } | ||
1571 | }, | ||
1572 | |||
1573 | { PINMUX_CFG_REG("PCCR2", 0xfffe384a, 16, 4) { | ||
1574 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1575 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1576 | PC10MD_0, PC10MD_1, 0, 0, 0, 0, 0, 0, | ||
1577 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1578 | PC9MD_0, PC9MD_1, 0, 0, 0, 0, 0, 0, | ||
1579 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1580 | PC8MD_00, PC8MD_01, PC8MD_10, PC8MD_11, 0, 0, 0, 0, | ||
1581 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1582 | }, | ||
1583 | { PINMUX_CFG_REG("PCCR1", 0xfffe384c, 16, 4) { | ||
1584 | PC7MD_00, PC7MD_01, PC7MD_10, PC7MD_11, 0, 0, 0, 0, | ||
1585 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1586 | PC6MD_00, PC6MD_01, PC6MD_10, PC6MD_11, 0, 0, 0, 0, | ||
1587 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1588 | PC5MD_00, PC5MD_01, PC5MD_10, PC5MD_11, 0, 0, 0, 0, | ||
1589 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1590 | PC4MD_0, PC4MD_1, 0, 0, 0, 0, 0, 0, | ||
1591 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1592 | }, | ||
1593 | { PINMUX_CFG_REG("PCCR0", 0xfffe384e, 16, 4) { | ||
1594 | PC3MD_0, PC3MD_1, 0, 0, 0, 0, 0, 0, | ||
1595 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1596 | PC2MD_0, PC2MD_1, 0, 0, 0, 0, 0, 0, | ||
1597 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1598 | PC1MD_0, PC1MD_1, 0, 0, 0, 0, 0, 0, | ||
1599 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1600 | PC0MD_0, PC0MD_1, 0, 0, 0, 0, 0, 0, | ||
1601 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1602 | }, | ||
1603 | |||
1604 | { PINMUX_CFG_REG("PCIOR0", 0xfffe3852, 16, 1) { | ||
1605 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1606 | PC10_IN, PC10_OUT, | ||
1607 | PC9_IN, PC9_OUT, | ||
1608 | PC8_IN, PC8_OUT, | ||
1609 | PC7_IN, PC7_OUT, | ||
1610 | PC6_IN, PC6_OUT, | ||
1611 | PC5_IN, PC5_OUT, | ||
1612 | PC4_IN, PC4_OUT, | ||
1613 | PC3_IN, PC3_OUT, | ||
1614 | PC2_IN, PC2_OUT, | ||
1615 | PC1_IN, PC1_OUT, | ||
1616 | PC0_IN, PC0_OUT | ||
1617 | } | ||
1618 | }, | ||
1619 | |||
1620 | { PINMUX_CFG_REG("PDCR3", 0xfffe3868, 16, 4) { | ||
1621 | 0, PD15MD_01, 0, 0, 0, 0, 0, 0, | ||
1622 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1623 | 0, PD14MD_01, 0, 0, 0, 0, 0, 0, | ||
1624 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1625 | 0, PD13MD_01, 0, 0, 0, 0, 0, 0, | ||
1626 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1627 | 0, PD12MD_01, 0, 0, 0, 0, 0, 0, | ||
1628 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1629 | }, | ||
1630 | { PINMUX_CFG_REG("PDCR2", 0xfffe386a, 16, 4) { | ||
1631 | 0, PD11MD_01, 0, 0, 0, 0, 0, 0, | ||
1632 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1633 | 0, PD10MD_01, 0, 0, 0, 0, 0, 0, | ||
1634 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1635 | 0, PD9MD_01, 0, 0, 0, 0, 0, 0, | ||
1636 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1637 | 0, PD8MD_01, 0, 0, 0, 0, 0, 0, | ||
1638 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1639 | }, | ||
1640 | { PINMUX_CFG_REG("PDCR1", 0xfffe386c, 16, 4) { | ||
1641 | 0, PD7MD_01, 0, 0, 0, 0, 0, 0, | ||
1642 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1643 | 0, PD6MD_01, 0, 0, 0, 0, 0, 0, | ||
1644 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1645 | 0, PD5MD_01, 0, 0, 0, 0, 0, 0, | ||
1646 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1647 | 0, PD4MD_01, 0, 0, 0, 0, 0, 0, | ||
1648 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1649 | }, | ||
1650 | { PINMUX_CFG_REG("PDCR0", 0xfffe386e, 16, 4) { | ||
1651 | 0, PD3MD_01, 0, 0, 0, 0, 0, 0, | ||
1652 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1653 | 0, PD2MD_01, 0, 0, 0, 0, 0, 0, | ||
1654 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1655 | 0, PD1MD_01, 0, 0, 0, 0, 0, 0, | ||
1656 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1657 | 0, PD0MD_01, 0, 0, 0, 0, 0, 0, | ||
1658 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1659 | }, | ||
1660 | |||
1661 | { PINMUX_CFG_REG("PDIOR0", 0xfffe3872, 16, 1) { | ||
1662 | PD15_IN, PD15_OUT, | ||
1663 | PD14_IN, PD14_OUT, | ||
1664 | PD13_IN, PD13_OUT, | ||
1665 | PD12_IN, PD12_OUT, | ||
1666 | PD11_IN, PD11_OUT, | ||
1667 | PD10_IN, PD10_OUT, | ||
1668 | PD9_IN, PD9_OUT, | ||
1669 | PD8_IN, PD8_OUT, | ||
1670 | PD7_IN, PD7_OUT, | ||
1671 | PD6_IN, PD6_OUT, | ||
1672 | PD5_IN, PD5_OUT, | ||
1673 | PD4_IN, PD4_OUT, | ||
1674 | PD3_IN, PD3_OUT, | ||
1675 | PD2_IN, PD2_OUT, | ||
1676 | PD1_IN, PD1_OUT, | ||
1677 | PD0_IN, PD0_OUT } | ||
1678 | }, | ||
1679 | |||
1680 | { PINMUX_CFG_REG("PECR1", 0xfffe388c, 16, 4) { | ||
1681 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1682 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1683 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1684 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1685 | PE5MD_00, PE5MD_01, 0, PE5MD_11, 0, 0, 0, 0, | ||
1686 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1687 | PE4MD_00, PE4MD_01, 0, PE4MD_11, 0, 0, 0, 0, | ||
1688 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1689 | }, | ||
1690 | |||
1691 | { PINMUX_CFG_REG("PECR0", 0xfffe388e, 16, 4) { | ||
1692 | PE3MD_00, PE3MD_01, 0, PE3MD_11, 0, 0, 0, 0, | ||
1693 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1694 | PE2MD_00, PE2MD_01, 0, PE2MD_11, 0, 0, 0, 0, | ||
1695 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1696 | PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011, | ||
1697 | PE1MD_100, PE1MD_101, 0, 0, | ||
1698 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1699 | PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, 0, 0, 0, 0, | ||
1700 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1701 | }, | ||
1702 | |||
1703 | { PINMUX_CFG_REG("PEIOR0", 0xfffe3892, 16, 1) { | ||
1704 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1705 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1706 | 0, 0, 0, 0, | ||
1707 | PE5_IN, PE5_OUT, | ||
1708 | PE4_IN, PE4_OUT, | ||
1709 | PE3_IN, PE3_OUT, | ||
1710 | PE2_IN, PE2_OUT, | ||
1711 | PE1_IN, PE1_OUT, | ||
1712 | PE0_IN, PE0_OUT } | ||
1713 | }, | ||
1714 | |||
1715 | { PINMUX_CFG_REG("PFCR3", 0xfffe38a8, 16, 4) { | ||
1716 | PF12MD_000, PF12MD_001, 0, PF12MD_011, | ||
1717 | PF12MD_100, PF12MD_101, 0, 0, | ||
1718 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1719 | }, | ||
1720 | |||
1721 | { PINMUX_CFG_REG("PFCR2", 0xfffe38aa, 16, 4) { | ||
1722 | PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011, | ||
1723 | PF11MD_100, PF11MD_101, 0, 0, | ||
1724 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1725 | PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011, | ||
1726 | PF10MD_100, PF10MD_101, 0, 0, | ||
1727 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1728 | PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011, | ||
1729 | PF9MD_100, PF9MD_101, 0, 0, | ||
1730 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1731 | PF8MD_00, PF8MD_01, PF8MD_10, PF8MD_11, 0, 0, 0, 0, | ||
1732 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1733 | }, | ||
1734 | |||
1735 | { PINMUX_CFG_REG("PFCR1", 0xfffe38ac, 16, 4) { | ||
1736 | PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011, | ||
1737 | PF7MD_100, 0, 0, 0, | ||
1738 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1739 | PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011, | ||
1740 | PF6MD_100, 0, 0, 0, | ||
1741 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1742 | PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011, | ||
1743 | PF5MD_100, 0, 0, 0, | ||
1744 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1745 | PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011, | ||
1746 | PF4MD_100, 0, 0, 0, | ||
1747 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1748 | }, | ||
1749 | |||
1750 | { PINMUX_CFG_REG("PFCR0", 0xfffe38ae, 16, 4) { | ||
1751 | PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011, | ||
1752 | PF3MD_100, 0, 0, 0, | ||
1753 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1754 | PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011, | ||
1755 | PF2MD_100, PF2MD_101, 0, 0, | ||
1756 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1757 | PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011, | ||
1758 | PF1MD_100, PF1MD_101, 0, 0, | ||
1759 | 0, 0, 0, 0, 0, 0, 0, 0 | ||
1760 | } | ||
1761 | }, | ||
1762 | |||
1763 | { PINMUX_CFG_REG("PFIOR0", 0xfffe38b2, 16, 1) { | ||
1764 | 0, 0, 0, 0, 0, 0, | ||
1765 | PF12_IN, PF12_OUT, | ||
1766 | PF11_IN, PF11_OUT, | ||
1767 | PF10_IN, PF10_OUT, | ||
1768 | PF9_IN, PF9_OUT, | ||
1769 | PF8_IN, PF8_OUT, | ||
1770 | PF7_IN, PF7_OUT, | ||
1771 | PF6_IN, PF6_OUT, | ||
1772 | PF5_IN, PF5_OUT, | ||
1773 | PF4_IN, PF4_OUT, | ||
1774 | PF3_IN, PF3_OUT, | ||
1775 | PF2_IN, PF2_OUT, | ||
1776 | PF1_IN, PF1_OUT, | ||
1777 | PF0_IN, PF0_OUT } | ||
1778 | }, | ||
1779 | |||
1780 | { PINMUX_CFG_REG("PGCR7", 0xfffe38c0, 16, 4) { | ||
1781 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1782 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1783 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1784 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1785 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1786 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1787 | PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011, | ||
1788 | PG0MD_100, 0, 0, 0, | ||
1789 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1790 | }, | ||
1791 | |||
1792 | { PINMUX_CFG_REG("PGCR6", 0xfffe38c2, 16, 4) { | ||
1793 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1794 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1795 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1796 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1797 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1798 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1799 | PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, 0, 0, 0, 0, | ||
1800 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1801 | }, | ||
1802 | |||
1803 | { PINMUX_CFG_REG("PGCR5", 0xfffe38c4, 16, 4) { | ||
1804 | PG23MD_00, PG23MD_01, PG23MD_10, PG23MD_11, 0, 0, 0, 0, | ||
1805 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1806 | PG22MD_00, PG22MD_01, PG22MD_10, PG22MD_11, 0, 0, 0, 0, | ||
1807 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1808 | PG21MD_00, PG21MD_01, PG21MD_10, PG21MD_11, 0, 0, 0, 0, | ||
1809 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1810 | PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011, | ||
1811 | PG20MD_100, 0, 0, 0, | ||
1812 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1813 | }, | ||
1814 | |||
1815 | { PINMUX_CFG_REG("PGCR4", 0xfffe38c6, 16, 4) { | ||
1816 | PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011, | ||
1817 | PG19MD_100, 0, 0, 0, | ||
1818 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1819 | PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011, | ||
1820 | PG18MD_100, 0, 0, 0, | ||
1821 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1822 | PG17MD_000, PG17MD_001, PG17MD_010, PG17MD_011, | ||
1823 | PG17MD_100, 0, 0, 0, | ||
1824 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1825 | PG16MD_000, PG16MD_001, PG16MD_010, PG16MD_011, | ||
1826 | PG16MD_100, 0, 0, 0, | ||
1827 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1828 | }, | ||
1829 | |||
1830 | { PINMUX_CFG_REG("PGCR3", 0xfffe38c8, 16, 4) { | ||
1831 | PG15MD_000, PG15MD_001, PG15MD_010, PG15MD_011, | ||
1832 | PG15MD_100, 0, 0, 0, | ||
1833 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1834 | PG14MD_000, PG14MD_001, PG14MD_010, 0, | ||
1835 | PG14MD_100, 0, 0, 0, | ||
1836 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1837 | PG13MD_000, PG13MD_001, PG13MD_010, 0, | ||
1838 | PG13MD_100, 0, 0, 0, | ||
1839 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1840 | PG12MD_000, PG12MD_001, PG12MD_010, 0, | ||
1841 | PG12MD_100, 0, 0, 0, | ||
1842 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1843 | }, | ||
1844 | { PINMUX_CFG_REG("PGCR2", 0xfffe38ca, 16, 4) { | ||
1845 | PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011, | ||
1846 | PG11MD_100, PG11MD_101, 0, 0, | ||
1847 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1848 | PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011, | ||
1849 | PG10MD_100, PG10MD_101, 0, 0, | ||
1850 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1851 | PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011, | ||
1852 | PG9MD_100, PG9MD_101, 0, 0, | ||
1853 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1854 | PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011, | ||
1855 | PG8MD_100, PG8MD_101, 0, 0, | ||
1856 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1857 | }, | ||
1858 | |||
1859 | { PINMUX_CFG_REG("PGCR1", 0xfffe38cc, 16, 4) { | ||
1860 | PG7MD_00, PG7MD_01, PG7MD_10, PG7MD_11, 0, 0, 0, 0, | ||
1861 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1862 | PG6MD_00, PG6MD_01, PG6MD_10, PG6MD_11, 0, 0, 0, 0, | ||
1863 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1864 | PG5MD_00, PG5MD_01, PG5MD_10, PG5MD_11, 0, 0, 0, 0, | ||
1865 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1866 | PG4MD_00, PG4MD_01, PG4MD_10, PG4MD_11, 0, 0, 0, 0, | ||
1867 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1868 | }, | ||
1869 | { PINMUX_CFG_REG("PGCR0", 0xfffe38ce, 16, 4) { | ||
1870 | PG3MD_00, PG3MD_01, PG3MD_10, PG3MD_11, 0, 0, 0, 0, | ||
1871 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1872 | PG2MD_00, PG2MD_01, PG2MD_10, PG2MD_11, 0, 0, 0, 0, | ||
1873 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1874 | PG1MD_00, PG1MD_01, PG1MD_10, PG1MD_11, 0, 0, 0, 0, | ||
1875 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1876 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1877 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1878 | }, | ||
1879 | { PINMUX_CFG_REG("PGIOR1", 0xfffe38d0, 16, 1) { | ||
1880 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1881 | 0, 0, 0, 0, 0, 0, | ||
1882 | PG24_IN, PG24_OUT, | ||
1883 | PG23_IN, PG23_OUT, | ||
1884 | PG22_IN, PG22_OUT, | ||
1885 | PG21_IN, PG21_OUT, | ||
1886 | PG20_IN, PG20_OUT, | ||
1887 | PG19_IN, PG19_OUT, | ||
1888 | PG18_IN, PG18_OUT, | ||
1889 | PG17_IN, PG17_OUT, | ||
1890 | PG16_IN, PG16_OUT } | ||
1891 | }, | ||
1892 | |||
1893 | { PINMUX_CFG_REG("PGIOR0", 0xfffe38d2, 16, 1) { | ||
1894 | PG15_IN, PG15_OUT, | ||
1895 | PG14_IN, PG14_OUT, | ||
1896 | PG13_IN, PG13_OUT, | ||
1897 | PG12_IN, PG12_OUT, | ||
1898 | PG11_IN, PG11_OUT, | ||
1899 | PG10_IN, PG10_OUT, | ||
1900 | PG9_IN, PG9_OUT, | ||
1901 | PG8_IN, PG8_OUT, | ||
1902 | PG7_IN, PG7_OUT, | ||
1903 | PG6_IN, PG6_OUT, | ||
1904 | PG5_IN, PG5_OUT, | ||
1905 | PG4_IN, PG4_OUT, | ||
1906 | PG3_IN, PG3_OUT, | ||
1907 | PG2_IN, PG2_OUT, | ||
1908 | PG1_IN, PG1_OUT, | ||
1909 | PG0_IN, PG0_OUT | ||
1910 | } | ||
1911 | }, | ||
1912 | |||
1913 | { PINMUX_CFG_REG("PHCR1", 0xfffe38ec, 16, 4) { | ||
1914 | PH7MD_0, PH7MD_1, 0, 0, 0, 0, 0, 0, | ||
1915 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1916 | PH6MD_0, PH6MD_1, 0, 0, 0, 0, 0, 0, | ||
1917 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1918 | PH5MD_0, PH5MD_1, 0, 0, 0, 0, 0, 0, | ||
1919 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1920 | PH4MD_0, PH4MD_1, 0, 0, 0, 0, 0, 0, | ||
1921 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1922 | }, | ||
1923 | |||
1924 | { PINMUX_CFG_REG("PHCR0", 0xfffe38ee, 16, 4) { | ||
1925 | PH3MD_0, PH3MD_1, 0, 0, 0, 0, 0, 0, | ||
1926 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1927 | PH2MD_0, PH2MD_1, 0, 0, 0, 0, 0, 0, | ||
1928 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1929 | PH1MD_0, PH1MD_1, 0, 0, 0, 0, 0, 0, | ||
1930 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1931 | PH0MD_0, PH0MD_1, 0, 0, 0, 0, 0, 0, | ||
1932 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1933 | }, | ||
1934 | |||
1935 | { PINMUX_CFG_REG("PJCR2", 0xfffe390a, 16, 4) { | ||
1936 | PJ11MD_00, PJ11MD_01, PJ11MD_10, 0, 0, 0, 0, 0, | ||
1937 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1938 | PJ10MD_00, PJ10MD_01, PJ10MD_10, 0, 0, 0, 0, 0, | ||
1939 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1940 | PJ9MD_00, PJ9MD_01, PJ9MD_10, 0, 0, 0, 0, 0, | ||
1941 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1942 | PJ8MD_00, PJ8MD_01, PJ8MD_10, 0, 0, 0, 0, 0, | ||
1943 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1944 | }, | ||
1945 | { PINMUX_CFG_REG("PJCR1", 0xfffe390c, 16, 4) { | ||
1946 | PJ7MD_00, PJ7MD_01, PJ7MD_10, 0, 0, 0, 0, 0, | ||
1947 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1948 | PJ6MD_00, PJ6MD_01, PJ6MD_10, 0, 0, 0, 0, 0, | ||
1949 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1950 | PJ5MD_00, PJ5MD_01, PJ5MD_10, 0, 0, 0, 0, 0, | ||
1951 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1952 | PJ4MD_00, PJ4MD_01, PJ4MD_10, 0, 0, 0, 0, 0, | ||
1953 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1954 | }, | ||
1955 | { PINMUX_CFG_REG("PJCR0", 0xfffe390e, 16, 4) { | ||
1956 | PJ3MD_00, PJ3MD_01, PJ3MD_10, PJ3MD_11, 0, 0, 0, 0, | ||
1957 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1958 | PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011, | ||
1959 | PJ2MD_100, PJ2MD_101, 0, 0, | ||
1960 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1961 | PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011, | ||
1962 | PJ1MD_100, 0, 0, 0, | ||
1963 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1964 | PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011, | ||
1965 | PJ0MD_100, PJ0MD_101, 0, 0, | ||
1966 | 0, 0, 0, 0, 0, 0, 0, 0, } | ||
1967 | }, | ||
1968 | { PINMUX_CFG_REG("PJIOR0", 0xfffe3912, 16, 1) { | ||
1969 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1970 | PJ11_IN, PJ11_OUT, | ||
1971 | PJ10_IN, PJ10_OUT, | ||
1972 | PJ9_IN, PJ9_OUT, | ||
1973 | PJ8_IN, PJ8_OUT, | ||
1974 | PJ7_IN, PJ7_OUT, | ||
1975 | PJ6_IN, PJ6_OUT, | ||
1976 | PJ5_IN, PJ5_OUT, | ||
1977 | PJ4_IN, PJ4_OUT, | ||
1978 | PJ3_IN, PJ3_OUT, | ||
1979 | PJ2_IN, PJ2_OUT, | ||
1980 | PJ1_IN, PJ1_OUT, | ||
1981 | PJ0_IN, PJ0_OUT } | ||
1982 | }, | ||
1983 | |||
1984 | { PINMUX_CFG_REG("PKCR2", 0xfffe392a, 16, 4) { | ||
1985 | PK11MD_00, PK11MD_01, PK11MD_10, 0, 0, 0, 0, 0, | ||
1986 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1987 | PK10MD_00, PK10MD_01, PK10MD_10, 0, 0, 0, 0, 0, | ||
1988 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1989 | PK9MD_00, PK9MD_01, PK9MD_10, 0, 0, 0, 0, 0, | ||
1990 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1991 | PK8MD_00, PK8MD_01, PK8MD_10, 0, 0, 0, 0, 0, | ||
1992 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1993 | }, | ||
1994 | |||
1995 | { PINMUX_CFG_REG("PKCR1", 0xfffe392c, 16, 4) { | ||
1996 | PK7MD_00, PK7MD_01, PK7MD_10, 0, 0, 0, 0, 0, | ||
1997 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1998 | PK6MD_00, PK6MD_01, PK6MD_10, 0, 0, 0, 0, 0, | ||
1999 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2000 | PK5MD_00, PK5MD_01, PK5MD_10, 0, 0, 0, 0, 0, | ||
2001 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2002 | PK4MD_00, PK4MD_01, PK4MD_10, 0, 0, 0, 0, 0, | ||
2003 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2004 | }, | ||
2005 | { PINMUX_CFG_REG("PKCR0", 0xfffe392e, 16, 4) { | ||
2006 | PK3MD_00, PK3MD_01, PK3MD_10, 0, 0, 0, 0, 0, | ||
2007 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2008 | PK2MD_00, PK2MD_01, PK2MD_10, 0, 0, 0, 0, 0, | ||
2009 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2010 | PK1MD_00, PK1MD_01, PK1MD_10, 0, 0, 0, 0, 0, | ||
2011 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2012 | PK0MD_00, PK0MD_01, PK0MD_10, 0, 0, 0, 0, 0, | ||
2013 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2014 | }, | ||
2015 | |||
2016 | { PINMUX_CFG_REG("PKIOR0", 0xfffe3932, 16, 1) { | ||
2017 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2018 | PJ11_IN, PJ11_OUT, | ||
2019 | PJ10_IN, PJ10_OUT, | ||
2020 | PJ9_IN, PJ9_OUT, | ||
2021 | PJ8_IN, PJ8_OUT, | ||
2022 | PJ7_IN, PJ7_OUT, | ||
2023 | PJ6_IN, PJ6_OUT, | ||
2024 | PJ5_IN, PJ5_OUT, | ||
2025 | PJ4_IN, PJ4_OUT, | ||
2026 | PJ3_IN, PJ3_OUT, | ||
2027 | PJ2_IN, PJ2_OUT, | ||
2028 | PJ1_IN, PJ1_OUT, | ||
2029 | PJ0_IN, PJ0_OUT } | ||
2030 | }, | ||
2031 | {} | ||
2032 | }; | ||
2033 | |||
2034 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2035 | { PINMUX_DATA_REG("PADR1", 0xfffe3814, 16) { | ||
2036 | 0, 0, 0, 0, 0, 0, 0, PA3_DATA, | ||
2037 | 0, 0, 0, 0, 0, 0, 0, PA2_DATA } | ||
2038 | }, | ||
2039 | |||
2040 | { PINMUX_DATA_REG("PADR0", 0xfffe3816, 16) { | ||
2041 | 0, 0, 0, 0, 0, 0, 0, PA1_DATA, | ||
2042 | 0, 0, 0, 0, 0, 0, 0, PA0_DATA } | ||
2043 | }, | ||
2044 | |||
2045 | { PINMUX_DATA_REG("PBDR1", 0xfffe3834, 16) { | ||
2046 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2047 | 0, PB22_DATA, PB21_DATA, PB20_DATA, | ||
2048 | PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA } | ||
2049 | }, | ||
2050 | |||
2051 | { PINMUX_DATA_REG("PBDR0", 0xfffe3836, 16) { | ||
2052 | PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA, | ||
2053 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
2054 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
2055 | PB3_DATA, PB2_DATA, PB1_DATA, 0 } | ||
2056 | }, | ||
2057 | |||
2058 | { PINMUX_DATA_REG("PCDR0", 0xfffe3856, 16) { | ||
2059 | 0, 0, 0, 0, | ||
2060 | 0, PC10_DATA, PC9_DATA, PC8_DATA, | ||
2061 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
2062 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
2063 | }, | ||
2064 | |||
2065 | { PINMUX_DATA_REG("PDDR0", 0xfffe3876, 16) { | ||
2066 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
2067 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
2068 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
2069 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
2070 | }, | ||
2071 | |||
2072 | { PINMUX_DATA_REG("PEDR0", 0xfffe3896, 16) { | ||
2073 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2074 | 0, 0, PE5_DATA, PE4_DATA, | ||
2075 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA } | ||
2076 | }, | ||
2077 | |||
2078 | { PINMUX_DATA_REG("PFDR0", 0xfffe38b6, 16) { | ||
2079 | 0, 0, 0, PF12_DATA, | ||
2080 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
2081 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
2082 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
2083 | }, | ||
2084 | |||
2085 | { PINMUX_DATA_REG("PGDR1", 0xfffe38d4, 16) { | ||
2086 | 0, 0, 0, 0, 0, 0, 0, PG24_DATA, | ||
2087 | PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA, | ||
2088 | PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA } | ||
2089 | }, | ||
2090 | |||
2091 | { PINMUX_DATA_REG("PGDR0", 0xfffe38d6, 16) { | ||
2092 | PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA, | ||
2093 | PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA, | ||
2094 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
2095 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA } | ||
2096 | }, | ||
2097 | { PINMUX_DATA_REG("PJDR0", 0xfffe3916, 16) { | ||
2098 | 0, 0, 0, PJ12_DATA, | ||
2099 | PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA, | ||
2100 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
2101 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA } | ||
2102 | }, | ||
2103 | { PINMUX_DATA_REG("PKDR0", 0xfffe3936, 16) { | ||
2104 | 0, 0, 0, PK12_DATA, | ||
2105 | PK11_DATA, PK10_DATA, PK9_DATA, PK8_DATA, | ||
2106 | PK7_DATA, PK6_DATA, PK5_DATA, PK4_DATA, | ||
2107 | PK3_DATA, PK2_DATA, PK1_DATA, PK0_DATA } | ||
2108 | }, | ||
2109 | { } | ||
2110 | }; | ||
2111 | |||
2112 | static struct pinmux_info sh7264_pinmux_info = { | ||
2113 | .name = "sh7264_pfc", | ||
2114 | .reserved_id = PINMUX_RESERVED, | ||
2115 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2116 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN }, | ||
2117 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT }, | ||
2118 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2119 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2120 | |||
2121 | .first_gpio = GPIO_PA3, | ||
2122 | .last_gpio = GPIO_FN_LCD_M_DISP, | ||
2123 | |||
2124 | .gpios = pinmux_gpios, | ||
2125 | .cfg_regs = pinmux_config_regs, | ||
2126 | .data_regs = pinmux_data_regs, | ||
2127 | |||
2128 | .gpio_data = pinmux_data, | ||
2129 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2130 | }; | ||
2131 | 14 | ||
2132 | static int __init plat_pinmux_setup(void) | 15 | static int __init plat_pinmux_setup(void) |
2133 | { | 16 | { |
2134 | return register_pinmux(&sh7264_pinmux_info); | 17 | return sh_pfc_register("pfc-sh7264", NULL, 0); |
2135 | } | 18 | } |
2136 | arch_initcall(plat_pinmux_setup); | 19 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c b/arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c index 039e4587dd9b..dc2a86830456 100644 --- a/arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c +++ b/arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c | |||
@@ -11,2829 +11,10 @@ | |||
11 | 11 | ||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/gpio.h> | 14 | #include <cpu/pfc.h> |
15 | #include <cpu/sh7269.h> | ||
16 | |||
17 | enum { | ||
18 | PINMUX_RESERVED = 0, | ||
19 | |||
20 | PINMUX_DATA_BEGIN, | ||
21 | /* Port A */ | ||
22 | PA1_DATA, PA0_DATA, | ||
23 | /* Port B */ | ||
24 | PB22_DATA, PB21_DATA, PB20_DATA, | ||
25 | PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA, | ||
26 | PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA, | ||
27 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
28 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
29 | PB3_DATA, PB2_DATA, PB1_DATA, | ||
30 | /* Port C */ | ||
31 | PC8_DATA, | ||
32 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
33 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
34 | /* Port D */ | ||
35 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
36 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
37 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
38 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
39 | /* Port E */ | ||
40 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
41 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
42 | /* Port F */ | ||
43 | PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA, | ||
44 | PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA, | ||
45 | PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA, | ||
46 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
47 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
48 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
49 | /* Port G */ | ||
50 | PG27_DATA, PG26_DATA, PG25_DATA, PG24_DATA, | ||
51 | PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA, | ||
52 | PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA, | ||
53 | PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA, | ||
54 | PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA, | ||
55 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
56 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
57 | /* Port H */ | ||
58 | /* NOTE - Port H does not have a Data Register, but PH Data is | ||
59 | connected to PH Port Register */ | ||
60 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
61 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
62 | /* Port I - not on device */ | ||
63 | /* Port J */ | ||
64 | PJ31_DATA, PJ30_DATA, PJ29_DATA, PJ28_DATA, | ||
65 | PJ27_DATA, PJ26_DATA, PJ25_DATA, PJ24_DATA, | ||
66 | PJ23_DATA, PJ22_DATA, PJ21_DATA, PJ20_DATA, | ||
67 | PJ19_DATA, PJ18_DATA, PJ17_DATA, PJ16_DATA, | ||
68 | PJ15_DATA, PJ14_DATA, PJ13_DATA, PJ12_DATA, | ||
69 | PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA, | ||
70 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
71 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA, | ||
72 | PINMUX_DATA_END, | ||
73 | |||
74 | PINMUX_INPUT_BEGIN, | ||
75 | FORCE_IN, | ||
76 | /* Port A */ | ||
77 | PA1_IN, PA0_IN, | ||
78 | /* Port B */ | ||
79 | PB22_IN, PB21_IN, PB20_IN, | ||
80 | PB19_IN, PB18_IN, PB17_IN, PB16_IN, | ||
81 | PB15_IN, PB14_IN, PB13_IN, PB12_IN, | ||
82 | PB11_IN, PB10_IN, PB9_IN, PB8_IN, | ||
83 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
84 | PB3_IN, PB2_IN, PB1_IN, | ||
85 | /* Port C */ | ||
86 | PC8_IN, | ||
87 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
88 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
89 | /* Port D */ | ||
90 | PD15_IN, PD14_IN, PD13_IN, PD12_IN, | ||
91 | PD11_IN, PD10_IN, PD9_IN, PD8_IN, | ||
92 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
93 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
94 | /* Port E */ | ||
95 | PE7_IN, PE6_IN, PE5_IN, PE4_IN, | ||
96 | PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
97 | /* Port F */ | ||
98 | PF23_IN, PF22_IN, PF21_IN, PF20_IN, | ||
99 | PF19_IN, PF18_IN, PF17_IN, PF16_IN, | ||
100 | PF15_IN, PF14_IN, PF13_IN, PF12_IN, | ||
101 | PF11_IN, PF10_IN, PF9_IN, PF8_IN, | ||
102 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
103 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
104 | /* Port G */ | ||
105 | PG27_IN, PG26_IN, PG25_IN, PG24_IN, | ||
106 | PG23_IN, PG22_IN, PG21_IN, PG20_IN, | ||
107 | PG19_IN, PG18_IN, PG17_IN, PG16_IN, | ||
108 | PG15_IN, PG14_IN, PG13_IN, PG12_IN, | ||
109 | PG11_IN, PG10_IN, PG9_IN, PG8_IN, | ||
110 | PG7_IN, PG6_IN, PG5_IN, PG4_IN, | ||
111 | PG3_IN, PG2_IN, PG1_IN, PG0_IN, | ||
112 | /* Port H - Port H does not have a Data Register */ | ||
113 | /* Port I - not on device */ | ||
114 | /* Port J */ | ||
115 | PJ31_IN, PJ30_IN, PJ29_IN, PJ28_IN, | ||
116 | PJ27_IN, PJ26_IN, PJ25_IN, PJ24_IN, | ||
117 | PJ23_IN, PJ22_IN, PJ21_IN, PJ20_IN, | ||
118 | PJ19_IN, PJ18_IN, PJ17_IN, PJ16_IN, | ||
119 | PJ15_IN, PJ14_IN, PJ13_IN, PJ12_IN, | ||
120 | PJ11_IN, PJ10_IN, PJ9_IN, PJ8_IN, | ||
121 | PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN, | ||
122 | PJ3_IN, PJ2_IN, PJ1_IN, PJ0_IN, | ||
123 | PINMUX_INPUT_END, | ||
124 | |||
125 | PINMUX_OUTPUT_BEGIN, | ||
126 | FORCE_OUT, | ||
127 | /* Port A */ | ||
128 | PA1_OUT, PA0_OUT, | ||
129 | /* Port B */ | ||
130 | PB22_OUT, PB21_OUT, PB20_OUT, | ||
131 | PB19_OUT, PB18_OUT, PB17_OUT, PB16_OUT, | ||
132 | PB15_OUT, PB14_OUT, PB13_OUT, PB12_OUT, | ||
133 | PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT, | ||
134 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
135 | PB3_OUT, PB2_OUT, PB1_OUT, | ||
136 | /* Port C */ | ||
137 | PC8_OUT, | ||
138 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
139 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
140 | /* Port D */ | ||
141 | PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT, | ||
142 | PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT, | ||
143 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
144 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
145 | /* Port E */ | ||
146 | PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT, | ||
147 | PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
148 | /* Port F */ | ||
149 | PF23_OUT, PF22_OUT, PF21_OUT, PF20_OUT, | ||
150 | PF19_OUT, PF18_OUT, PF17_OUT, PF16_OUT, | ||
151 | PF15_OUT, PF14_OUT, PF13_OUT, PF12_OUT, | ||
152 | PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT, | ||
153 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
154 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
155 | /* Port G */ | ||
156 | PG27_OUT, PG26_OUT, PG25_OUT, PG24_OUT, | ||
157 | PG23_OUT, PG22_OUT, PG21_OUT, PG20_OUT, | ||
158 | PG19_OUT, PG18_OUT, PG17_OUT, PG16_OUT, | ||
159 | PG15_OUT, PG14_OUT, PG13_OUT, PG12_OUT, | ||
160 | PG11_OUT, PG10_OUT, PG9_OUT, PG8_OUT, | ||
161 | PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT, | ||
162 | PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT, | ||
163 | /* Port H - Port H does not have a Data Register */ | ||
164 | /* Port I - not on device */ | ||
165 | /* Port J */ | ||
166 | PJ31_OUT, PJ30_OUT, PJ29_OUT, PJ28_OUT, | ||
167 | PJ27_OUT, PJ26_OUT, PJ25_OUT, PJ24_OUT, | ||
168 | PJ23_OUT, PJ22_OUT, PJ21_OUT, PJ20_OUT, | ||
169 | PJ19_OUT, PJ18_OUT, PJ17_OUT, PJ16_OUT, | ||
170 | PJ15_OUT, PJ14_OUT, PJ13_OUT, PJ12_OUT, | ||
171 | PJ11_OUT, PJ10_OUT, PJ9_OUT, PJ8_OUT, | ||
172 | PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT, | ||
173 | PJ3_OUT, PJ2_OUT, PJ1_OUT, PJ0_OUT, | ||
174 | PINMUX_OUTPUT_END, | ||
175 | |||
176 | PINMUX_FUNCTION_BEGIN, | ||
177 | /* Port A */ | ||
178 | PA1_IOR_IN, PA1_IOR_OUT, | ||
179 | PA0_IOR_IN, PA0_IOR_OUT, | ||
180 | |||
181 | /* Port B */ | ||
182 | PB22_IOR_IN, PB22_IOR_OUT, | ||
183 | PB21_IOR_IN, PB21_IOR_OUT, | ||
184 | PB20_IOR_IN, PB20_IOR_OUT, | ||
185 | PB19_IOR_IN, PB19_IOR_OUT, | ||
186 | PB18_IOR_IN, PB18_IOR_OUT, | ||
187 | PB17_IOR_IN, PB17_IOR_OUT, | ||
188 | PB16_IOR_IN, PB16_IOR_OUT, | ||
189 | |||
190 | PB15_IOR_IN, PB15_IOR_OUT, | ||
191 | PB14_IOR_IN, PB14_IOR_OUT, | ||
192 | PB13_IOR_IN, PB13_IOR_OUT, | ||
193 | PB12_IOR_IN, PB12_IOR_OUT, | ||
194 | PB11_IOR_IN, PB11_IOR_OUT, | ||
195 | PB10_IOR_IN, PB10_IOR_OUT, | ||
196 | PB9_IOR_IN, PB9_IOR_OUT, | ||
197 | PB8_IOR_IN, PB8_IOR_OUT, | ||
198 | |||
199 | PB7_IOR_IN, PB7_IOR_OUT, | ||
200 | PB6_IOR_IN, PB6_IOR_OUT, | ||
201 | PB5_IOR_IN, PB5_IOR_OUT, | ||
202 | PB4_IOR_IN, PB4_IOR_OUT, | ||
203 | PB3_IOR_IN, PB3_IOR_OUT, | ||
204 | PB2_IOR_IN, PB2_IOR_OUT, | ||
205 | PB1_IOR_IN, PB1_IOR_OUT, | ||
206 | PB0_IOR_IN, PB0_IOR_OUT, | ||
207 | |||
208 | PB22MD_000, PB22MD_001, PB22MD_010, PB22MD_011, | ||
209 | PB22MD_100, PB22MD_101, PB22MD_110, PB22MD_111, | ||
210 | PB21MD_00, PB21MD_01, PB21MD_10, PB21MD_11, | ||
211 | PB20MD_000, PB20MD_001, PB20MD_010, PB20MD_011, | ||
212 | PB20MD_100, PB20MD_101, PB20MD_110, PB20MD_111, | ||
213 | PB19MD_000, PB19MD_001, PB19MD_010, PB19MD_011, | ||
214 | PB19MD_100, PB19MD_101, PB19MD_110, PB19MD_111, | ||
215 | PB18MD_000, PB18MD_001, PB18MD_010, PB18MD_011, | ||
216 | PB18MD_100, PB18MD_101, PB18MD_110, PB18MD_111, | ||
217 | PB17MD_000, PB17MD_001, PB17MD_010, PB17MD_011, | ||
218 | PB17MD_100, PB17MD_101, PB17MD_110, PB17MD_111, | ||
219 | PB16MD_000, PB16MD_001, PB16MD_010, PB16MD_011, | ||
220 | PB16MD_100, PB16MD_101, PB16MD_110, PB16MD_111, | ||
221 | PB15MD_000, PB15MD_001, PB15MD_010, PB15MD_011, | ||
222 | PB15MD_100, PB15MD_101, PB15MD_110, PB15MD_111, | ||
223 | PB14MD_000, PB14MD_001, PB14MD_010, PB14MD_011, | ||
224 | PB14MD_100, PB14MD_101, PB14MD_110, PB14MD_111, | ||
225 | PB13MD_000, PB13MD_001, PB13MD_010, PB13MD_011, | ||
226 | PB13MD_100, PB13MD_101, PB13MD_110, PB13MD_111, | ||
227 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, | ||
228 | |||
229 | PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11, | ||
230 | PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11, | ||
231 | PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11, | ||
232 | PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11, | ||
233 | |||
234 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, | ||
235 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, | ||
236 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, | ||
237 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, | ||
238 | |||
239 | PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, | ||
240 | PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, | ||
241 | PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, | ||
242 | |||
243 | /* Port C */ | ||
244 | PC8_IOR_IN, PC8_IOR_OUT, | ||
245 | PC7_IOR_IN, PC7_IOR_OUT, | ||
246 | PC6_IOR_IN, PC6_IOR_OUT, | ||
247 | PC5_IOR_IN, PC5_IOR_OUT, | ||
248 | PC4_IOR_IN, PC4_IOR_OUT, | ||
249 | PC3_IOR_IN, PC3_IOR_OUT, | ||
250 | PC2_IOR_IN, PC2_IOR_OUT, | ||
251 | PC1_IOR_IN, PC1_IOR_OUT, | ||
252 | PC0_IOR_IN, PC0_IOR_OUT, | ||
253 | |||
254 | PC8MD_000, PC8MD_001, PC8MD_010, PC8MD_011, | ||
255 | PC8MD_100, PC8MD_101, PC8MD_110, PC8MD_111, | ||
256 | PC7MD_000, PC7MD_001, PC7MD_010, PC7MD_011, | ||
257 | PC7MD_100, PC7MD_101, PC7MD_110, PC7MD_111, | ||
258 | PC6MD_000, PC6MD_001, PC6MD_010, PC6MD_011, | ||
259 | PC6MD_100, PC6MD_101, PC6MD_110, PC6MD_111, | ||
260 | PC5MD_000, PC5MD_001, PC5MD_010, PC5MD_011, | ||
261 | PC5MD_100, PC5MD_101, PC5MD_110, PC5MD_111, | ||
262 | PC4MD_00, PC4MD_01, PC4MD_10, PC4MD_11, | ||
263 | |||
264 | PC3MD_00, PC3MD_01, PC3MD_10, PC3MD_11, | ||
265 | PC2MD_00, PC2MD_01, PC2MD_10, PC2MD_11, | ||
266 | PC1MD_0, PC1MD_1, | ||
267 | PC0MD_0, PC0MD_1, | ||
268 | |||
269 | /* Port D */ | ||
270 | PD15_IOR_IN, PD15_IOR_OUT, | ||
271 | PD14_IOR_IN, PD14_IOR_OUT, | ||
272 | PD13_IOR_IN, PD13_IOR_OUT, | ||
273 | PD12_IOR_IN, PD12_IOR_OUT, | ||
274 | PD11_IOR_IN, PD11_IOR_OUT, | ||
275 | PD10_IOR_IN, PD10_IOR_OUT, | ||
276 | PD9_IOR_IN, PD9_IOR_OUT, | ||
277 | PD8_IOR_IN, PD8_IOR_OUT, | ||
278 | PD7_IOR_IN, PD7_IOR_OUT, | ||
279 | PD6_IOR_IN, PD6_IOR_OUT, | ||
280 | PD5_IOR_IN, PD5_IOR_OUT, | ||
281 | PD4_IOR_IN, PD4_IOR_OUT, | ||
282 | PD3_IOR_IN, PD3_IOR_OUT, | ||
283 | PD2_IOR_IN, PD2_IOR_OUT, | ||
284 | PD1_IOR_IN, PD1_IOR_OUT, | ||
285 | PD0_IOR_IN, PD0_IOR_OUT, | ||
286 | |||
287 | PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11, | ||
288 | PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11, | ||
289 | PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11, | ||
290 | PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11, | ||
291 | |||
292 | PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11, | ||
293 | PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11, | ||
294 | PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11, | ||
295 | PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11, | ||
296 | |||
297 | PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11, | ||
298 | PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11, | ||
299 | PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11, | ||
300 | PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11, | ||
301 | |||
302 | PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11, | ||
303 | PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11, | ||
304 | PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11, | ||
305 | PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11, | ||
306 | |||
307 | /* Port E */ | ||
308 | PE7_IOR_IN, PE7_IOR_OUT, | ||
309 | PE6_IOR_IN, PE6_IOR_OUT, | ||
310 | PE5_IOR_IN, PE5_IOR_OUT, | ||
311 | PE4_IOR_IN, PE4_IOR_OUT, | ||
312 | PE3_IOR_IN, PE3_IOR_OUT, | ||
313 | PE2_IOR_IN, PE2_IOR_OUT, | ||
314 | PE1_IOR_IN, PE1_IOR_OUT, | ||
315 | PE0_IOR_IN, PE0_IOR_OUT, | ||
316 | |||
317 | PE7MD_00, PE7MD_01, PE7MD_10, PE7MD_11, | ||
318 | PE6MD_00, PE6MD_01, PE6MD_10, PE6MD_11, | ||
319 | PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11, | ||
320 | PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11, | ||
321 | |||
322 | PE3MD_000, PE3MD_001, PE3MD_010, PE3MD_011, | ||
323 | PE3MD_100, PE3MD_101, PE3MD_110, PE3MD_111, | ||
324 | PE2MD_000, PE2MD_001, PE2MD_010, PE2MD_011, | ||
325 | PE2MD_100, PE2MD_101, PE2MD_110, PE2MD_111, | ||
326 | PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011, | ||
327 | PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111, | ||
328 | PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, | ||
329 | |||
330 | /* Port F */ | ||
331 | PF23_IOR_IN, PF23_IOR_OUT, | ||
332 | PF22_IOR_IN, PF22_IOR_OUT, | ||
333 | PF21_IOR_IN, PF21_IOR_OUT, | ||
334 | PF20_IOR_IN, PF20_IOR_OUT, | ||
335 | PF19_IOR_IN, PF19_IOR_OUT, | ||
336 | PF18_IOR_IN, PF18_IOR_OUT, | ||
337 | PF17_IOR_IN, PF17_IOR_OUT, | ||
338 | PF16_IOR_IN, PF16_IOR_OUT, | ||
339 | PF15_IOR_IN, PF15_IOR_OUT, | ||
340 | PF14_IOR_IN, PF14_IOR_OUT, | ||
341 | PF13_IOR_IN, PF13_IOR_OUT, | ||
342 | PF12_IOR_IN, PF12_IOR_OUT, | ||
343 | PF11_IOR_IN, PF11_IOR_OUT, | ||
344 | PF10_IOR_IN, PF10_IOR_OUT, | ||
345 | PF9_IOR_IN, PF9_IOR_OUT, | ||
346 | PF8_IOR_IN, PF8_IOR_OUT, | ||
347 | PF7_IOR_IN, PF7_IOR_OUT, | ||
348 | PF6_IOR_IN, PF6_IOR_OUT, | ||
349 | PF5_IOR_IN, PF5_IOR_OUT, | ||
350 | PF4_IOR_IN, PF4_IOR_OUT, | ||
351 | PF3_IOR_IN, PF3_IOR_OUT, | ||
352 | PF2_IOR_IN, PF2_IOR_OUT, | ||
353 | PF1_IOR_IN, PF1_IOR_OUT, | ||
354 | PF0_IOR_IN, PF0_IOR_OUT, | ||
355 | |||
356 | PF23MD_000, PF23MD_001, PF23MD_010, PF23MD_011, | ||
357 | PF23MD_100, PF23MD_101, PF23MD_110, PF23MD_111, | ||
358 | PF22MD_000, PF22MD_001, PF22MD_010, PF22MD_011, | ||
359 | PF22MD_100, PF22MD_101, PF22MD_110, PF22MD_111, | ||
360 | PF21MD_000, PF21MD_001, PF21MD_010, PF21MD_011, | ||
361 | PF21MD_100, PF21MD_101, PF21MD_110, PF21MD_111, | ||
362 | PF20MD_000, PF20MD_001, PF20MD_010, PF20MD_011, | ||
363 | PF20MD_100, PF20MD_101, PF20MD_110, PF20MD_111, | ||
364 | |||
365 | PF19MD_000, PF19MD_001, PF19MD_010, PF19MD_011, | ||
366 | PF19MD_100, PF19MD_101, PF19MD_110, PF19MD_111, | ||
367 | PF18MD_000, PF18MD_001, PF18MD_010, PF18MD_011, | ||
368 | PF18MD_100, PF18MD_101, PF18MD_110, PF18MD_111, | ||
369 | PF17MD_000, PF17MD_001, PF17MD_010, PF17MD_011, | ||
370 | PF17MD_100, PF17MD_101, PF17MD_110, PF17MD_111, | ||
371 | PF16MD_000, PF16MD_001, PF16MD_010, PF16MD_011, | ||
372 | PF16MD_100, PF16MD_101, PF16MD_110, PF16MD_111, | ||
373 | |||
374 | PF15MD_000, PF15MD_001, PF15MD_010, PF15MD_011, | ||
375 | PF15MD_100, PF15MD_101, PF15MD_110, PF15MD_111, | ||
376 | PF14MD_000, PF14MD_001, PF14MD_010, PF14MD_011, | ||
377 | PF14MD_100, PF14MD_101, PF14MD_110, PF14MD_111, | ||
378 | PF13MD_000, PF13MD_001, PF13MD_010, PF13MD_011, | ||
379 | PF13MD_100, PF13MD_101, PF13MD_110, PF13MD_111, | ||
380 | PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011, | ||
381 | PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111, | ||
382 | |||
383 | PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011, | ||
384 | PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111, | ||
385 | PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011, | ||
386 | PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111, | ||
387 | PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011, | ||
388 | PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111, | ||
389 | PF8MD_000, PF8MD_001, PF8MD_010, PF8MD_011, | ||
390 | PF8MD_100, PF8MD_101, PF8MD_110, PF8MD_111, | ||
391 | |||
392 | PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011, | ||
393 | PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111, | ||
394 | PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011, | ||
395 | PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111, | ||
396 | PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011, | ||
397 | PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111, | ||
398 | PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011, | ||
399 | PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111, | ||
400 | |||
401 | PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011, | ||
402 | PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111, | ||
403 | PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011, | ||
404 | PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111, | ||
405 | PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011, | ||
406 | PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111, | ||
407 | PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011, | ||
408 | PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111, | ||
409 | |||
410 | /* Port G */ | ||
411 | PG27_IOR_IN, PG27_IOR_OUT, | ||
412 | PG26_IOR_IN, PG26_IOR_OUT, | ||
413 | PG25_IOR_IN, PG25_IOR_OUT, | ||
414 | PG24_IOR_IN, PG24_IOR_OUT, | ||
415 | PG23_IOR_IN, PG23_IOR_OUT, | ||
416 | PG22_IOR_IN, PG22_IOR_OUT, | ||
417 | PG21_IOR_IN, PG21_IOR_OUT, | ||
418 | PG20_IOR_IN, PG20_IOR_OUT, | ||
419 | PG19_IOR_IN, PG19_IOR_OUT, | ||
420 | PG18_IOR_IN, PG18_IOR_OUT, | ||
421 | PG17_IOR_IN, PG17_IOR_OUT, | ||
422 | PG16_IOR_IN, PG16_IOR_OUT, | ||
423 | PG15_IOR_IN, PG15_IOR_OUT, | ||
424 | PG14_IOR_IN, PG14_IOR_OUT, | ||
425 | PG13_IOR_IN, PG13_IOR_OUT, | ||
426 | PG12_IOR_IN, PG12_IOR_OUT, | ||
427 | PG11_IOR_IN, PG11_IOR_OUT, | ||
428 | PG10_IOR_IN, PG10_IOR_OUT, | ||
429 | PG9_IOR_IN, PG9_IOR_OUT, | ||
430 | PG8_IOR_IN, PG8_IOR_OUT, | ||
431 | PG7_IOR_IN, PG7_IOR_OUT, | ||
432 | PG6_IOR_IN, PG6_IOR_OUT, | ||
433 | PG5_IOR_IN, PG5_IOR_OUT, | ||
434 | PG4_IOR_IN, PG4_IOR_OUT, | ||
435 | PG3_IOR_IN, PG3_IOR_OUT, | ||
436 | PG2_IOR_IN, PG2_IOR_OUT, | ||
437 | PG1_IOR_IN, PG1_IOR_OUT, | ||
438 | PG0_IOR_IN, PG0_IOR_OUT, | ||
439 | |||
440 | PG27MD_00, PG27MD_01, PG27MD_10, PG27MD_11, | ||
441 | PG26MD_00, PG26MD_01, PG26MD_10, PG26MD_11, | ||
442 | PG25MD_00, PG25MD_01, PG25MD_10, PG25MD_11, | ||
443 | PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, | ||
444 | |||
445 | PG23MD_000, PG23MD_001, PG23MD_010, PG23MD_011, | ||
446 | PG23MD_100, PG23MD_101, PG23MD_110, PG23MD_111, | ||
447 | PG22MD_000, PG22MD_001, PG22MD_010, PG22MD_011, | ||
448 | PG22MD_100, PG22MD_101, PG22MD_110, PG22MD_111, | ||
449 | PG21MD_000, PG21MD_001, PG21MD_010, PG21MD_011, | ||
450 | PG21MD_100, PG21MD_101, PG21MD_110, PG21MD_111, | ||
451 | PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011, | ||
452 | PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111, | ||
453 | |||
454 | PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011, | ||
455 | PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111, | ||
456 | PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011, | ||
457 | PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111, | ||
458 | PG17MD_00, PG17MD_01, PG17MD_10, PG17MD_11, | ||
459 | PG16MD_00, PG16MD_01, PG16MD_10, PG16MD_11, | ||
460 | |||
461 | PG15MD_00, PG15MD_01, PG15MD_10, PG15MD_11, | ||
462 | PG14MD_00, PG14MD_01, PG14MD_10, PG14MD_11, | ||
463 | PG13MD_00, PG13MD_01, PG13MD_10, PG13MD_11, | ||
464 | PG12MD_00, PG12MD_01, PG12MD_10, PG12MD_11, | ||
465 | |||
466 | PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011, | ||
467 | PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111, | ||
468 | PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011, | ||
469 | PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111, | ||
470 | PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011, | ||
471 | PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111, | ||
472 | PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011, | ||
473 | PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111, | ||
474 | |||
475 | PG7MD_000, PG7MD_001, PG7MD_010, PG7MD_011, | ||
476 | PG7MD_100, PG7MD_101, PG7MD_110, PG7MD_111, | ||
477 | PG6MD_000, PG6MD_001, PG6MD_010, PG6MD_011, | ||
478 | PG6MD_100, PG6MD_101, PG6MD_110, PG6MD_111, | ||
479 | PG5MD_000, PG5MD_001, PG5MD_010, PG5MD_011, | ||
480 | PG5MD_100, PG5MD_101, PG5MD_110, PG5MD_111, | ||
481 | PG4MD_000, PG4MD_001, PG4MD_010, PG4MD_011, | ||
482 | PG4MD_100, PG4MD_101, PG4MD_110, PG4MD_111, | ||
483 | |||
484 | PG3MD_000, PG3MD_001, PG3MD_010, PG3MD_011, | ||
485 | PG3MD_100, PG3MD_101, PG3MD_110, PG3MD_111, | ||
486 | PG2MD_000, PG2MD_001, PG2MD_010, PG2MD_011, | ||
487 | PG2MD_100, PG2MD_101, PG2MD_110, PG2MD_111, | ||
488 | PG1MD_000, PG1MD_001, PG1MD_010, PG1MD_011, | ||
489 | PG1MD_100, PG1MD_101, PG1MD_110, PG1MD_111, | ||
490 | PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011, | ||
491 | PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111, | ||
492 | |||
493 | /* Port H */ | ||
494 | PH7MD_00, PH7MD_01, PH7MD_10, PH7MD_11, | ||
495 | PH6MD_00, PH6MD_01, PH6MD_10, PH6MD_11, | ||
496 | PH5MD_00, PH5MD_01, PH5MD_10, PH5MD_11, | ||
497 | PH4MD_00, PH4MD_01, PH4MD_10, PH4MD_11, | ||
498 | |||
499 | PH3MD_00, PH3MD_01, PH3MD_10, PH3MD_11, | ||
500 | PH2MD_00, PH2MD_01, PH2MD_10, PH2MD_11, | ||
501 | PH1MD_00, PH1MD_01, PH1MD_10, PH1MD_11, | ||
502 | PH0MD_00, PH0MD_01, PH0MD_10, PH0MD_11, | ||
503 | |||
504 | /* Port I - not on device */ | ||
505 | |||
506 | /* Port J */ | ||
507 | PJ31_IOR_IN, PJ31_IOR_OUT, | ||
508 | PJ30_IOR_IN, PJ30_IOR_OUT, | ||
509 | PJ29_IOR_IN, PJ29_IOR_OUT, | ||
510 | PJ28_IOR_IN, PJ28_IOR_OUT, | ||
511 | PJ27_IOR_IN, PJ27_IOR_OUT, | ||
512 | PJ26_IOR_IN, PJ26_IOR_OUT, | ||
513 | PJ25_IOR_IN, PJ25_IOR_OUT, | ||
514 | PJ24_IOR_IN, PJ24_IOR_OUT, | ||
515 | PJ23_IOR_IN, PJ23_IOR_OUT, | ||
516 | PJ22_IOR_IN, PJ22_IOR_OUT, | ||
517 | PJ21_IOR_IN, PJ21_IOR_OUT, | ||
518 | PJ20_IOR_IN, PJ20_IOR_OUT, | ||
519 | PJ19_IOR_IN, PJ19_IOR_OUT, | ||
520 | PJ18_IOR_IN, PJ18_IOR_OUT, | ||
521 | PJ17_IOR_IN, PJ17_IOR_OUT, | ||
522 | PJ16_IOR_IN, PJ16_IOR_OUT, | ||
523 | PJ15_IOR_IN, PJ15_IOR_OUT, | ||
524 | PJ14_IOR_IN, PJ14_IOR_OUT, | ||
525 | PJ13_IOR_IN, PJ13_IOR_OUT, | ||
526 | PJ12_IOR_IN, PJ12_IOR_OUT, | ||
527 | PJ11_IOR_IN, PJ11_IOR_OUT, | ||
528 | PJ10_IOR_IN, PJ10_IOR_OUT, | ||
529 | PJ9_IOR_IN, PJ9_IOR_OUT, | ||
530 | PJ8_IOR_IN, PJ8_IOR_OUT, | ||
531 | PJ7_IOR_IN, PJ7_IOR_OUT, | ||
532 | PJ6_IOR_IN, PJ6_IOR_OUT, | ||
533 | PJ5_IOR_IN, PJ5_IOR_OUT, | ||
534 | PJ4_IOR_IN, PJ4_IOR_OUT, | ||
535 | PJ3_IOR_IN, PJ3_IOR_OUT, | ||
536 | PJ2_IOR_IN, PJ2_IOR_OUT, | ||
537 | PJ1_IOR_IN, PJ1_IOR_OUT, | ||
538 | PJ0_IOR_IN, PJ0_IOR_OUT, | ||
539 | |||
540 | PJ31MD_0, PJ31MD_1, | ||
541 | PJ30MD_000, PJ30MD_001, PJ30MD_010, PJ30MD_011, | ||
542 | PJ30MD_100, PJ30MD_101, PJ30MD_110, PJ30MD_111, | ||
543 | PJ29MD_000, PJ29MD_001, PJ29MD_010, PJ29MD_011, | ||
544 | PJ29MD_100, PJ29MD_101, PJ29MD_110, PJ29MD_111, | ||
545 | PJ28MD_000, PJ28MD_001, PJ28MD_010, PJ28MD_011, | ||
546 | PJ28MD_100, PJ28MD_101, PJ28MD_110, PJ28MD_111, | ||
547 | |||
548 | PJ27MD_000, PJ27MD_001, PJ27MD_010, PJ27MD_011, | ||
549 | PJ27MD_100, PJ27MD_101, PJ27MD_110, PJ27MD_111, | ||
550 | PJ26MD_000, PJ26MD_001, PJ26MD_010, PJ26MD_011, | ||
551 | PJ26MD_100, PJ26MD_101, PJ26MD_110, PJ26MD_111, | ||
552 | PJ25MD_000, PJ25MD_001, PJ25MD_010, PJ25MD_011, | ||
553 | PJ25MD_100, PJ25MD_101, PJ25MD_110, PJ25MD_111, | ||
554 | PJ24MD_000, PJ24MD_001, PJ24MD_010, PJ24MD_011, | ||
555 | PJ24MD_100, PJ24MD_101, PJ24MD_110, PJ24MD_111, | ||
556 | |||
557 | PJ23MD_000, PJ23MD_001, PJ23MD_010, PJ23MD_011, | ||
558 | PJ23MD_100, PJ23MD_101, PJ23MD_110, PJ23MD_111, | ||
559 | PJ22MD_000, PJ22MD_001, PJ22MD_010, PJ22MD_011, | ||
560 | PJ22MD_100, PJ22MD_101, PJ22MD_110, PJ22MD_111, | ||
561 | PJ21MD_000, PJ21MD_001, PJ21MD_010, PJ21MD_011, | ||
562 | PJ21MD_100, PJ21MD_101, PJ21MD_110, PJ21MD_111, | ||
563 | PJ20MD_000, PJ20MD_001, PJ20MD_010, PJ20MD_011, | ||
564 | PJ20MD_100, PJ20MD_101, PJ20MD_110, PJ20MD_111, | ||
565 | |||
566 | PJ19MD_000, PJ19MD_001, PJ19MD_010, PJ19MD_011, | ||
567 | PJ19MD_100, PJ19MD_101, PJ19MD_110, PJ19MD_111, | ||
568 | PJ18MD_000, PJ18MD_001, PJ18MD_010, PJ18MD_011, | ||
569 | PJ18MD_100, PJ18MD_101, PJ18MD_110, PJ18MD_111, | ||
570 | PJ17MD_000, PJ17MD_001, PJ17MD_010, PJ17MD_011, | ||
571 | PJ17MD_100, PJ17MD_101, PJ17MD_110, PJ17MD_111, | ||
572 | PJ16MD_000, PJ16MD_001, PJ16MD_010, PJ16MD_011, | ||
573 | PJ16MD_100, PJ16MD_101, PJ16MD_110, PJ16MD_111, | ||
574 | |||
575 | PJ15MD_000, PJ15MD_001, PJ15MD_010, PJ15MD_011, | ||
576 | PJ15MD_100, PJ15MD_101, PJ15MD_110, PJ15MD_111, | ||
577 | PJ14MD_000, PJ14MD_001, PJ14MD_010, PJ14MD_011, | ||
578 | PJ14MD_100, PJ14MD_101, PJ14MD_110, PJ14MD_111, | ||
579 | PJ13MD_000, PJ13MD_001, PJ13MD_010, PJ13MD_011, | ||
580 | PJ13MD_100, PJ13MD_101, PJ13MD_110, PJ13MD_111, | ||
581 | PJ12MD_000, PJ12MD_001, PJ12MD_010, PJ12MD_011, | ||
582 | PJ12MD_100, PJ12MD_101, PJ12MD_110, PJ12MD_111, | ||
583 | |||
584 | PJ11MD_000, PJ11MD_001, PJ11MD_010, PJ11MD_011, | ||
585 | PJ11MD_100, PJ11MD_101, PJ11MD_110, PJ11MD_111, | ||
586 | PJ10MD_000, PJ10MD_001, PJ10MD_010, PJ10MD_011, | ||
587 | PJ10MD_100, PJ10MD_101, PJ10MD_110, PJ10MD_111, | ||
588 | PJ9MD_000, PJ9MD_001, PJ9MD_010, PJ9MD_011, | ||
589 | PJ9MD_100, PJ9MD_101, PJ9MD_110, PJ9MD_111, | ||
590 | PJ8MD_000, PJ8MD_001, PJ8MD_010, PJ8MD_011, | ||
591 | PJ8MD_100, PJ8MD_101, PJ8MD_110, PJ8MD_111, | ||
592 | |||
593 | PJ7MD_000, PJ7MD_001, PJ7MD_010, PJ7MD_011, | ||
594 | PJ7MD_100, PJ7MD_101, PJ7MD_110, PJ7MD_111, | ||
595 | PJ6MD_000, PJ6MD_001, PJ6MD_010, PJ6MD_011, | ||
596 | PJ6MD_100, PJ6MD_101, PJ6MD_110, PJ6MD_111, | ||
597 | PJ5MD_000, PJ5MD_001, PJ5MD_010, PJ5MD_011, | ||
598 | PJ5MD_100, PJ5MD_101, PJ5MD_110, PJ5MD_111, | ||
599 | PJ4MD_000, PJ4MD_001, PJ4MD_010, PJ4MD_011, | ||
600 | PJ4MD_100, PJ4MD_101, PJ4MD_110, PJ4MD_111, | ||
601 | |||
602 | PJ3MD_000, PJ3MD_001, PJ3MD_010, PJ3MD_011, | ||
603 | PJ3MD_100, PJ3MD_101, PJ3MD_110, PJ3MD_111, | ||
604 | PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011, | ||
605 | PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111, | ||
606 | PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011, | ||
607 | PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111, | ||
608 | PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011, | ||
609 | PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111, | ||
610 | |||
611 | PINMUX_FUNCTION_END, | ||
612 | |||
613 | PINMUX_MARK_BEGIN, | ||
614 | /* Port H */ | ||
615 | PHAN7_MARK, PHAN6_MARK, PHAN5_MARK, PHAN4_MARK, | ||
616 | PHAN3_MARK, PHAN2_MARK, PHAN1_MARK, PHAN0_MARK, | ||
617 | |||
618 | /* IRQs */ | ||
619 | IRQ7_PG_MARK, IRQ6_PG_MARK, IRQ5_PG_MARK, IRQ4_PG_MARK, | ||
620 | IRQ3_PG_MARK, IRQ2_PG_MARK, IRQ1_PG_MARK, IRQ0_PG_MARK, | ||
621 | IRQ7_PF_MARK, IRQ6_PF_MARK, IRQ5_PF_MARK, IRQ4_PF_MARK, | ||
622 | IRQ3_PJ_MARK, IRQ2_PJ_MARK, IRQ1_PJ_MARK, IRQ0_PJ_MARK, | ||
623 | IRQ1_PC_MARK, IRQ0_PC_MARK, | ||
624 | |||
625 | PINT7_PG_MARK, PINT6_PG_MARK, PINT5_PG_MARK, PINT4_PG_MARK, | ||
626 | PINT3_PG_MARK, PINT2_PG_MARK, PINT1_PG_MARK, PINT0_PG_MARK, | ||
627 | PINT7_PH_MARK, PINT6_PH_MARK, PINT5_PH_MARK, PINT4_PH_MARK, | ||
628 | PINT3_PH_MARK, PINT2_PH_MARK, PINT1_PH_MARK, PINT0_PH_MARK, | ||
629 | PINT7_PJ_MARK, PINT6_PJ_MARK, PINT5_PJ_MARK, PINT4_PJ_MARK, | ||
630 | PINT3_PJ_MARK, PINT2_PJ_MARK, PINT1_PJ_MARK, PINT0_PJ_MARK, | ||
631 | |||
632 | /* SD */ | ||
633 | SD_D0_MARK, SD_D1_MARK, SD_D2_MARK, SD_D3_MARK, | ||
634 | SD_WP_MARK, SD_CLK_MARK, SD_CMD_MARK, SD_CD_MARK, | ||
635 | |||
636 | /* MMC */ | ||
637 | MMC_D0_MARK, MMC_D1_MARK, MMC_D2_MARK, MMC_D3_MARK, | ||
638 | MMC_D4_MARK, MMC_D5_MARK, MMC_D6_MARK, MMC_D7_MARK, | ||
639 | MMC_CLK_MARK, MMC_CMD_MARK, MMC_CD_MARK, | ||
640 | |||
641 | /* PWM */ | ||
642 | PWM1A_MARK, PWM1B_MARK, PWM1C_MARK, PWM1D_MARK, | ||
643 | PWM1E_MARK, PWM1F_MARK, PWM1G_MARK, PWM1H_MARK, | ||
644 | PWM2A_MARK, PWM2B_MARK, PWM2C_MARK, PWM2D_MARK, | ||
645 | PWM2E_MARK, PWM2F_MARK, PWM2G_MARK, PWM2H_MARK, | ||
646 | |||
647 | /* IEBus */ | ||
648 | IERXD_MARK, IETXD_MARK, | ||
649 | |||
650 | /* WDT */ | ||
651 | WDTOVF_MARK, | ||
652 | |||
653 | /* DMAC */ | ||
654 | TEND0_MARK, DACK0_MARK, DREQ0_MARK, | ||
655 | TEND1_MARK, DACK1_MARK, DREQ1_MARK, | ||
656 | |||
657 | /* ADC */ | ||
658 | ADTRG_MARK, | ||
659 | |||
660 | /* BSC */ | ||
661 | A25_MARK, A24_MARK, | ||
662 | A23_MARK, A22_MARK, A21_MARK, A20_MARK, | ||
663 | A19_MARK, A18_MARK, A17_MARK, A16_MARK, | ||
664 | A15_MARK, A14_MARK, A13_MARK, A12_MARK, | ||
665 | A11_MARK, A10_MARK, A9_MARK, A8_MARK, | ||
666 | A7_MARK, A6_MARK, A5_MARK, A4_MARK, | ||
667 | A3_MARK, A2_MARK, A1_MARK, A0_MARK, | ||
668 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, | ||
669 | D27_MARK, D26_MARK, D25_MARK, D24_MARK, | ||
670 | D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
671 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
672 | D15_MARK, D14_MARK, D13_MARK, D12_MARK, | ||
673 | D11_MARK, D10_MARK, D9_MARK, D8_MARK, | ||
674 | D7_MARK, D6_MARK, D5_MARK, D4_MARK, | ||
675 | D3_MARK, D2_MARK, D1_MARK, D0_MARK, | ||
676 | BS_MARK, | ||
677 | CS4_MARK, CS3_MARK, CS2_MARK, CS1_MARK, CS0_MARK, | ||
678 | CS5CE1A_MARK, | ||
679 | CE2A_MARK, CE2B_MARK, | ||
680 | RD_MARK, RDWR_MARK, | ||
681 | WE3ICIOWRAHDQMUU_MARK, | ||
682 | WE2ICIORDDQMUL_MARK, | ||
683 | WE1DQMUWE_MARK, | ||
684 | WE0DQML_MARK, | ||
685 | RAS_MARK, CAS_MARK, CKE_MARK, | ||
686 | WAIT_MARK, BREQ_MARK, BACK_MARK, IOIS16_MARK, | ||
687 | |||
688 | /* TMU */ | ||
689 | TIOC0A_MARK, TIOC0B_MARK, TIOC0C_MARK, TIOC0D_MARK, | ||
690 | TIOC1A_MARK, TIOC1B_MARK, | ||
691 | TIOC2A_MARK, TIOC2B_MARK, | ||
692 | TIOC3A_MARK, TIOC3B_MARK, TIOC3C_MARK, TIOC3D_MARK, | ||
693 | TIOC4A_MARK, TIOC4B_MARK, TIOC4C_MARK, TIOC4D_MARK, | ||
694 | TCLKA_MARK, TCLKB_MARK, TCLKC_MARK, TCLKD_MARK, | ||
695 | |||
696 | /* SCIF */ | ||
697 | SCK0_MARK, RXD0_MARK, TXD0_MARK, | ||
698 | SCK1_MARK, RXD1_MARK, TXD1_MARK, RTS1_MARK, CTS1_MARK, | ||
699 | SCK2_MARK, RXD2_MARK, TXD2_MARK, | ||
700 | SCK3_MARK, RXD3_MARK, TXD3_MARK, | ||
701 | SCK4_MARK, RXD4_MARK, TXD4_MARK, | ||
702 | SCK5_MARK, RXD5_MARK, TXD5_MARK, RTS5_MARK, CTS5_MARK, | ||
703 | SCK6_MARK, RXD6_MARK, TXD6_MARK, | ||
704 | SCK7_MARK, RXD7_MARK, TXD7_MARK, RTS7_MARK, CTS7_MARK, | ||
705 | |||
706 | /* RSPI */ | ||
707 | MISO0_PB20_MARK, MOSI0_PB19_MARK, SSL00_PB18_MARK, RSPCK0_PB17_MARK, | ||
708 | MISO0_PJ19_MARK, MOSI0_PJ18_MARK, SSL00_PJ17_MARK, RSPCK0_PJ16_MARK, | ||
709 | MISO1_MARK, MOSI1_MARK, SSL10_MARK, RSPCK1_MARK, | ||
710 | |||
711 | /* IIC3 */ | ||
712 | SCL0_MARK, SDA0_MARK, | ||
713 | SCL1_MARK, SDA1_MARK, | ||
714 | SCL2_MARK, SDA2_MARK, | ||
715 | SCL3_MARK, SDA3_MARK, | ||
716 | |||
717 | /* SSI */ | ||
718 | SSISCK0_MARK, SSIWS0_MARK, SSITXD0_MARK, SSIRXD0_MARK, | ||
719 | SSISCK1_MARK, SSIWS1_MARK, SSIDATA1_MARK, | ||
720 | SSISCK2_MARK, SSIWS2_MARK, SSIDATA2_MARK, | ||
721 | SSISCK3_MARK, SSIWS3_MARK, SSIDATA3_MARK, | ||
722 | SSISCK4_MARK, SSIWS4_MARK, SSIDATA4_MARK, | ||
723 | SSISCK5_MARK, SSIWS5_MARK, SSIDATA5_MARK, | ||
724 | AUDIO_CLK_MARK, | ||
725 | AUDIO_XOUT_MARK, | ||
726 | |||
727 | /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
728 | SIOFTXD_MARK, SIOFRXD_MARK, SIOFSYNC_MARK, SIOFSCK_MARK, | ||
729 | |||
730 | /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
731 | SPDIF_IN_MARK, SPDIF_OUT_MARK, | ||
732 | SPDIF_IN_PJ24_MARK, SPDIF_OUT_PJ25_MARK, | ||
733 | |||
734 | /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */ | ||
735 | FCE_MARK, | ||
736 | FRB_MARK, | ||
737 | |||
738 | /* CAN */ | ||
739 | CRX0_MARK, CTX0_MARK, | ||
740 | CRX1_MARK, CTX1_MARK, | ||
741 | CRX2_MARK, CTX2_MARK, | ||
742 | CRX0CRX1_MARK, | ||
743 | CRX0CRX1CRX2_MARK, | ||
744 | CTX0CTX1CTX2_MARK, | ||
745 | CRX1_PJ22_MARK, CTX1_PJ23_MARK, | ||
746 | CRX2_PJ20_MARK, CTX2_PJ21_MARK, | ||
747 | CRX0CRX1_PJ22_MARK, | ||
748 | CRX0CRX1CRX2_PJ20_MARK, | ||
749 | |||
750 | /* VDC */ | ||
751 | DV_CLK_MARK, | ||
752 | DV_VSYNC_MARK, DV_HSYNC_MARK, | ||
753 | DV_DATA23_MARK, DV_DATA22_MARK, DV_DATA21_MARK, DV_DATA20_MARK, | ||
754 | DV_DATA19_MARK, DV_DATA18_MARK, DV_DATA17_MARK, DV_DATA16_MARK, | ||
755 | DV_DATA15_MARK, DV_DATA14_MARK, DV_DATA13_MARK, DV_DATA12_MARK, | ||
756 | DV_DATA11_MARK, DV_DATA10_MARK, DV_DATA9_MARK, DV_DATA8_MARK, | ||
757 | DV_DATA7_MARK, DV_DATA6_MARK, DV_DATA5_MARK, DV_DATA4_MARK, | ||
758 | DV_DATA3_MARK, DV_DATA2_MARK, DV_DATA1_MARK, DV_DATA0_MARK, | ||
759 | LCD_CLK_MARK, LCD_EXTCLK_MARK, | ||
760 | LCD_VSYNC_MARK, LCD_HSYNC_MARK, LCD_DE_MARK, | ||
761 | LCD_DATA23_PG23_MARK, LCD_DATA22_PG22_MARK, LCD_DATA21_PG21_MARK, | ||
762 | LCD_DATA20_PG20_MARK, LCD_DATA19_PG19_MARK, LCD_DATA18_PG18_MARK, | ||
763 | LCD_DATA17_PG17_MARK, LCD_DATA16_PG16_MARK, LCD_DATA15_PG15_MARK, | ||
764 | LCD_DATA14_PG14_MARK, LCD_DATA13_PG13_MARK, LCD_DATA12_PG12_MARK, | ||
765 | LCD_DATA11_PG11_MARK, LCD_DATA10_PG10_MARK, LCD_DATA9_PG9_MARK, | ||
766 | LCD_DATA8_PG8_MARK, LCD_DATA7_PG7_MARK, LCD_DATA6_PG6_MARK, | ||
767 | LCD_DATA5_PG5_MARK, LCD_DATA4_PG4_MARK, LCD_DATA3_PG3_MARK, | ||
768 | LCD_DATA2_PG2_MARK, LCD_DATA1_PG1_MARK, LCD_DATA0_PG0_MARK, | ||
769 | LCD_DATA23_PJ23_MARK, LCD_DATA22_PJ22_MARK, LCD_DATA21_PJ21_MARK, | ||
770 | LCD_DATA20_PJ20_MARK, LCD_DATA19_PJ19_MARK, LCD_DATA18_PJ18_MARK, | ||
771 | LCD_DATA17_PJ17_MARK, LCD_DATA16_PJ16_MARK, LCD_DATA15_PJ15_MARK, | ||
772 | LCD_DATA14_PJ14_MARK, LCD_DATA13_PJ13_MARK, LCD_DATA12_PJ12_MARK, | ||
773 | LCD_DATA11_PJ11_MARK, LCD_DATA10_PJ10_MARK, LCD_DATA9_PJ9_MARK, | ||
774 | LCD_DATA8_PJ8_MARK, LCD_DATA7_PJ7_MARK, LCD_DATA6_PJ6_MARK, | ||
775 | LCD_DATA5_PJ5_MARK, LCD_DATA4_PJ4_MARK, LCD_DATA3_PJ3_MARK, | ||
776 | LCD_DATA2_PJ2_MARK, LCD_DATA1_PJ1_MARK, LCD_DATA0_PJ0_MARK, | ||
777 | LCD_TCON6_MARK, LCD_TCON5_MARK, LCD_TCON4_MARK, | ||
778 | LCD_TCON3_MARK, LCD_TCON2_MARK, LCD_TCON1_MARK, LCD_TCON0_MARK, | ||
779 | LCD_M_DISP_MARK, | ||
780 | PINMUX_MARK_END, | ||
781 | }; | ||
782 | |||
783 | static pinmux_enum_t pinmux_data[] = { | ||
784 | |||
785 | /* Port A */ | ||
786 | PINMUX_DATA(PA1_DATA, PA1_IN), | ||
787 | PINMUX_DATA(PA0_DATA, PA0_IN), | ||
788 | |||
789 | /* Port B */ | ||
790 | PINMUX_DATA(PB22_DATA, PB22MD_000, PB22_IN, PB22_OUT), | ||
791 | PINMUX_DATA(A22_MARK, PB22MD_001), | ||
792 | PINMUX_DATA(CTX2_MARK, PB22MD_010), | ||
793 | PINMUX_DATA(IETXD_MARK, PB22MD_011), | ||
794 | PINMUX_DATA(CS4_MARK, PB22MD_100), | ||
795 | |||
796 | PINMUX_DATA(PB21_DATA, PB21MD_00, PB21_IN, PB21_OUT), | ||
797 | PINMUX_DATA(A21_MARK, PB21MD_01), | ||
798 | PINMUX_DATA(CRX2_MARK, PB21MD_10), | ||
799 | PINMUX_DATA(IERXD_MARK, PB21MD_11), | ||
800 | |||
801 | PINMUX_DATA(A20_MARK, PB20MD_001), | ||
802 | PINMUX_DATA(A19_MARK, PB19MD_001), | ||
803 | PINMUX_DATA(A18_MARK, PB18MD_001), | ||
804 | PINMUX_DATA(A17_MARK, PB17MD_001), | ||
805 | PINMUX_DATA(A16_MARK, PB16MD_001), | ||
806 | PINMUX_DATA(A15_MARK, PB15MD_001), | ||
807 | PINMUX_DATA(A14_MARK, PB14MD_001), | ||
808 | PINMUX_DATA(A13_MARK, PB13MD_001), | ||
809 | PINMUX_DATA(A12_MARK, PB12MD_01), | ||
810 | PINMUX_DATA(A11_MARK, PB11MD_01), | ||
811 | PINMUX_DATA(A10_MARK, PB10MD_01), | ||
812 | PINMUX_DATA(A9_MARK, PB9MD_01), | ||
813 | PINMUX_DATA(A8_MARK, PB8MD_01), | ||
814 | PINMUX_DATA(A7_MARK, PB7MD_01), | ||
815 | PINMUX_DATA(A6_MARK, PB6MD_01), | ||
816 | PINMUX_DATA(A5_MARK, PB5MD_01), | ||
817 | PINMUX_DATA(A4_MARK, PB4MD_01), | ||
818 | PINMUX_DATA(A3_MARK, PB3MD_01), | ||
819 | PINMUX_DATA(A2_MARK, PB2MD_01), | ||
820 | PINMUX_DATA(A1_MARK, PB1MD_01), | ||
821 | |||
822 | /* Port C */ | ||
823 | PINMUX_DATA(PC8_DATA, PC8MD_000), | ||
824 | PINMUX_DATA(CS3_MARK, PC8MD_001), | ||
825 | PINMUX_DATA(TXD7_MARK, PC8MD_010), | ||
826 | PINMUX_DATA(CTX1_MARK, PC8MD_011), | ||
827 | |||
828 | PINMUX_DATA(PC7_DATA, PC7MD_000), | ||
829 | PINMUX_DATA(CKE_MARK, PC7MD_001), | ||
830 | PINMUX_DATA(RXD7_MARK, PC7MD_010), | ||
831 | PINMUX_DATA(CRX1_MARK, PC7MD_011), | ||
832 | PINMUX_DATA(CRX0CRX1_MARK, PC7MD_100), | ||
833 | PINMUX_DATA(IRQ1_PC_MARK, PC7MD_101), | ||
834 | |||
835 | PINMUX_DATA(PC6_DATA, PC6MD_000), | ||
836 | PINMUX_DATA(CAS_MARK, PC6MD_001), | ||
837 | PINMUX_DATA(SCK7_MARK, PC6MD_010), | ||
838 | PINMUX_DATA(CTX0_MARK, PC6MD_011), | ||
839 | |||
840 | PINMUX_DATA(PC5_DATA, PC5MD_000), | ||
841 | PINMUX_DATA(RAS_MARK, PC5MD_001), | ||
842 | PINMUX_DATA(CRX0_MARK, PC5MD_011), | ||
843 | PINMUX_DATA(CTX0CTX1CTX2_MARK, PC5MD_100), | ||
844 | PINMUX_DATA(IRQ0_PC_MARK, PC5MD_101), | ||
845 | |||
846 | PINMUX_DATA(PC4_DATA, PC4MD_00), | ||
847 | PINMUX_DATA(WE1DQMUWE_MARK, PC4MD_01), | ||
848 | PINMUX_DATA(TXD6_MARK, PC4MD_10), | ||
849 | |||
850 | PINMUX_DATA(PC3_DATA, PC3MD_00), | ||
851 | PINMUX_DATA(WE0DQML_MARK, PC3MD_01), | ||
852 | PINMUX_DATA(RXD6_MARK, PC3MD_10), | ||
853 | |||
854 | PINMUX_DATA(PC2_DATA, PC2MD_00), | ||
855 | PINMUX_DATA(RDWR_MARK, PC2MD_01), | ||
856 | PINMUX_DATA(SCK5_MARK, PC2MD_10), | ||
857 | |||
858 | PINMUX_DATA(PC1_DATA, PC1MD_0), | ||
859 | PINMUX_DATA(RD_MARK, PC1MD_1), | ||
860 | |||
861 | PINMUX_DATA(PC0_DATA, PC0MD_0), | ||
862 | PINMUX_DATA(CS0_MARK, PC0MD_1), | ||
863 | |||
864 | /* Port D */ | ||
865 | PINMUX_DATA(D15_MARK, PD15MD_01), | ||
866 | PINMUX_DATA(D14_MARK, PD14MD_01), | ||
867 | |||
868 | PINMUX_DATA(PD13_DATA, PD13MD_00), | ||
869 | PINMUX_DATA(D13_MARK, PD13MD_01), | ||
870 | PINMUX_DATA(PWM2F_MARK, PD13MD_10), | ||
871 | |||
872 | PINMUX_DATA(PD12_DATA, PD12MD_00), | ||
873 | PINMUX_DATA(D12_MARK, PD12MD_01), | ||
874 | PINMUX_DATA(PWM2E_MARK, PD12MD_10), | ||
875 | |||
876 | PINMUX_DATA(D11_MARK, PD11MD_01), | ||
877 | PINMUX_DATA(D10_MARK, PD10MD_01), | ||
878 | PINMUX_DATA(D9_MARK, PD9MD_01), | ||
879 | PINMUX_DATA(D8_MARK, PD8MD_01), | ||
880 | PINMUX_DATA(D7_MARK, PD7MD_01), | ||
881 | PINMUX_DATA(D6_MARK, PD6MD_01), | ||
882 | PINMUX_DATA(D5_MARK, PD5MD_01), | ||
883 | PINMUX_DATA(D4_MARK, PD4MD_01), | ||
884 | PINMUX_DATA(D3_MARK, PD3MD_01), | ||
885 | PINMUX_DATA(D2_MARK, PD2MD_01), | ||
886 | PINMUX_DATA(D1_MARK, PD1MD_01), | ||
887 | PINMUX_DATA(D0_MARK, PD0MD_01), | ||
888 | |||
889 | /* Port E */ | ||
890 | PINMUX_DATA(PE7_DATA, PE7MD_00), | ||
891 | PINMUX_DATA(SDA3_MARK, PE7MD_01), | ||
892 | PINMUX_DATA(RXD7_MARK, PE7MD_10), | ||
893 | |||
894 | PINMUX_DATA(PE6_DATA, PE6MD_00), | ||
895 | PINMUX_DATA(SCL3_MARK, PE6MD_01), | ||
896 | PINMUX_DATA(RXD6_MARK, PE6MD_10), | ||
897 | |||
898 | PINMUX_DATA(PE5_DATA, PE5MD_00), | ||
899 | PINMUX_DATA(SDA2_MARK, PE5MD_01), | ||
900 | PINMUX_DATA(RXD5_MARK, PE5MD_10), | ||
901 | PINMUX_DATA(DV_HSYNC_MARK, PE5MD_11), | ||
902 | |||
903 | PINMUX_DATA(PE4_DATA, PE4MD_00), | ||
904 | PINMUX_DATA(SCL2_MARK, PE4MD_01), | ||
905 | PINMUX_DATA(DV_VSYNC_MARK, PE4MD_11), | ||
906 | |||
907 | PINMUX_DATA(PE3_DATA, PE3MD_000), | ||
908 | PINMUX_DATA(SDA1_MARK, PE3MD_001), | ||
909 | PINMUX_DATA(TCLKD_MARK, PE3MD_010), | ||
910 | PINMUX_DATA(ADTRG_MARK, PE3MD_011), | ||
911 | PINMUX_DATA(DV_HSYNC_MARK, PE3MD_100), | ||
912 | |||
913 | PINMUX_DATA(PE2_DATA, PE2MD_000), | ||
914 | PINMUX_DATA(SCL1_MARK, PE2MD_001), | ||
915 | PINMUX_DATA(TCLKD_MARK, PE2MD_010), | ||
916 | PINMUX_DATA(IOIS16_MARK, PE2MD_011), | ||
917 | PINMUX_DATA(DV_VSYNC_MARK, PE2MD_100), | ||
918 | |||
919 | PINMUX_DATA(PE1_DATA, PE1MD_000), | ||
920 | PINMUX_DATA(SDA0_MARK, PE1MD_001), | ||
921 | PINMUX_DATA(TCLKB_MARK, PE1MD_010), | ||
922 | PINMUX_DATA(AUDIO_CLK_MARK, PE1MD_010), | ||
923 | PINMUX_DATA(DV_CLK_MARK, PE1MD_100), | ||
924 | |||
925 | PINMUX_DATA(PE0_DATA, PE0MD_00), | ||
926 | PINMUX_DATA(SCL0_MARK, PE0MD_01), | ||
927 | PINMUX_DATA(TCLKA_MARK, PE0MD_10), | ||
928 | PINMUX_DATA(LCD_EXTCLK_MARK, PE0MD_11), | ||
929 | |||
930 | /* Port F */ | ||
931 | PINMUX_DATA(PF23_DATA, PF23MD_000), | ||
932 | PINMUX_DATA(SD_D2_MARK, PF23MD_001), | ||
933 | PINMUX_DATA(TXD3_MARK, PF23MD_100), | ||
934 | PINMUX_DATA(MMC_D2_MARK, PF23MD_101), | ||
935 | |||
936 | PINMUX_DATA(PF22_DATA, PF22MD_000), | ||
937 | PINMUX_DATA(SD_D3_MARK, PF22MD_001), | ||
938 | PINMUX_DATA(RXD3_MARK, PF22MD_100), | ||
939 | PINMUX_DATA(MMC_D3_MARK, PF22MD_101), | ||
940 | |||
941 | PINMUX_DATA(PF21_DATA, PF21MD_000), | ||
942 | PINMUX_DATA(SD_CMD_MARK, PF21MD_001), | ||
943 | PINMUX_DATA(SCK3_MARK, PF21MD_100), | ||
944 | PINMUX_DATA(MMC_CMD_MARK, PF21MD_101), | ||
945 | |||
946 | PINMUX_DATA(PF20_DATA, PF20MD_000), | ||
947 | PINMUX_DATA(SD_CLK_MARK, PF20MD_001), | ||
948 | PINMUX_DATA(SSIDATA3_MARK, PF20MD_010), | ||
949 | PINMUX_DATA(MMC_CLK_MARK, PF20MD_101), | ||
950 | |||
951 | PINMUX_DATA(PF19_DATA, PF19MD_000), | ||
952 | PINMUX_DATA(SD_D0_MARK, PF19MD_001), | ||
953 | PINMUX_DATA(SSIWS3_MARK, PF19MD_010), | ||
954 | PINMUX_DATA(IRQ7_PF_MARK, PF19MD_100), | ||
955 | PINMUX_DATA(MMC_D0_MARK, PF19MD_101), | ||
956 | |||
957 | PINMUX_DATA(PF18_DATA, PF18MD_000), | ||
958 | PINMUX_DATA(SD_D1_MARK, PF18MD_001), | ||
959 | PINMUX_DATA(SSISCK3_MARK, PF18MD_010), | ||
960 | PINMUX_DATA(IRQ6_PF_MARK, PF18MD_100), | ||
961 | PINMUX_DATA(MMC_D1_MARK, PF18MD_101), | ||
962 | |||
963 | PINMUX_DATA(PF17_DATA, PF17MD_000), | ||
964 | PINMUX_DATA(SD_WP_MARK, PF17MD_001), | ||
965 | PINMUX_DATA(FRB_MARK, PF17MD_011), | ||
966 | PINMUX_DATA(IRQ5_PF_MARK, PF17MD_100), | ||
967 | |||
968 | PINMUX_DATA(PF16_DATA, PF16MD_000), | ||
969 | PINMUX_DATA(SD_CD_MARK, PF16MD_001), | ||
970 | PINMUX_DATA(FCE_MARK, PF16MD_011), | ||
971 | PINMUX_DATA(IRQ4_PF_MARK, PF16MD_100), | ||
972 | PINMUX_DATA(MMC_CD_MARK, PF16MD_101), | ||
973 | |||
974 | PINMUX_DATA(PF15_DATA, PF15MD_000), | ||
975 | PINMUX_DATA(A0_MARK, PF15MD_001), | ||
976 | PINMUX_DATA(SSIDATA2_MARK, PF15MD_010), | ||
977 | PINMUX_DATA(WDTOVF_MARK, PF15MD_011), | ||
978 | PINMUX_DATA(TXD2_MARK, PF15MD_100), | ||
979 | |||
980 | PINMUX_DATA(PF14_DATA, PF14MD_000), | ||
981 | PINMUX_DATA(A25_MARK, PF14MD_001), | ||
982 | PINMUX_DATA(SSIWS2_MARK, PF14MD_010), | ||
983 | PINMUX_DATA(RXD2_MARK, PF14MD_100), | ||
984 | |||
985 | PINMUX_DATA(PF13_DATA, PF13MD_000), | ||
986 | PINMUX_DATA(A24_MARK, PF13MD_001), | ||
987 | PINMUX_DATA(SSISCK2_MARK, PF13MD_010), | ||
988 | PINMUX_DATA(SCK2_MARK, PF13MD_100), | ||
989 | |||
990 | PINMUX_DATA(PF12_DATA, PF12MD_000), | ||
991 | PINMUX_DATA(SSIDATA1_MARK, PF12MD_010), | ||
992 | PINMUX_DATA(DV_DATA12_MARK, PF12MD_011), | ||
993 | PINMUX_DATA(TXD1_MARK, PF12MD_100), | ||
994 | PINMUX_DATA(MMC_D7_MARK, PF12MD_101), | ||
995 | |||
996 | PINMUX_DATA(PF11_DATA, PF11MD_000), | ||
997 | PINMUX_DATA(SSIWS1_MARK, PF11MD_010), | ||
998 | PINMUX_DATA(DV_DATA2_MARK, PF11MD_011), | ||
999 | PINMUX_DATA(RXD1_MARK, PF11MD_100), | ||
1000 | PINMUX_DATA(MMC_D6_MARK, PF11MD_101), | ||
1001 | |||
1002 | PINMUX_DATA(PF10_DATA, PF10MD_000), | ||
1003 | PINMUX_DATA(CS1_MARK, PF10MD_001), | ||
1004 | PINMUX_DATA(SSISCK1_MARK, PF10MD_010), | ||
1005 | PINMUX_DATA(DV_DATA1_MARK, PF10MD_011), | ||
1006 | PINMUX_DATA(SCK1_MARK, PF10MD_100), | ||
1007 | PINMUX_DATA(MMC_D5_MARK, PF10MD_101), | ||
1008 | |||
1009 | PINMUX_DATA(PF9_DATA, PF9MD_000), | ||
1010 | PINMUX_DATA(BS_MARK, PF9MD_001), | ||
1011 | PINMUX_DATA(DV_DATA0_MARK, PF9MD_011), | ||
1012 | PINMUX_DATA(SCK0_MARK, PF9MD_100), | ||
1013 | PINMUX_DATA(MMC_D4_MARK, PF9MD_101), | ||
1014 | PINMUX_DATA(RTS1_MARK, PF9MD_110), | ||
1015 | |||
1016 | PINMUX_DATA(PF8_DATA, PF8MD_000), | ||
1017 | PINMUX_DATA(A23_MARK, PF8MD_001), | ||
1018 | PINMUX_DATA(TXD0_MARK, PF8MD_100), | ||
1019 | |||
1020 | PINMUX_DATA(PF7_DATA, PF7MD_000), | ||
1021 | PINMUX_DATA(SSIRXD0_MARK, PF7MD_010), | ||
1022 | PINMUX_DATA(RXD0_MARK, PF7MD_100), | ||
1023 | PINMUX_DATA(CTS1_MARK, PF7MD_110), | ||
1024 | |||
1025 | PINMUX_DATA(PF6_DATA, PF6MD_000), | ||
1026 | PINMUX_DATA(CE2A_MARK, PF6MD_001), | ||
1027 | PINMUX_DATA(SSITXD0_MARK, PF6MD_010), | ||
1028 | |||
1029 | PINMUX_DATA(PF5_DATA, PF5MD_000), | ||
1030 | PINMUX_DATA(SSIWS0_MARK, PF5MD_010), | ||
1031 | |||
1032 | PINMUX_DATA(PF4_DATA, PF4MD_000), | ||
1033 | PINMUX_DATA(CS5CE1A_MARK, PF4MD_001), | ||
1034 | PINMUX_DATA(SSISCK0_MARK, PF4MD_010), | ||
1035 | |||
1036 | PINMUX_DATA(PF3_DATA, PF3MD_000), | ||
1037 | PINMUX_DATA(CS2_MARK, PF3MD_001), | ||
1038 | PINMUX_DATA(MISO1_MARK, PF3MD_011), | ||
1039 | PINMUX_DATA(TIOC4D_MARK, PF3MD_100), | ||
1040 | |||
1041 | PINMUX_DATA(PF2_DATA, PF2MD_000), | ||
1042 | PINMUX_DATA(WAIT_MARK, PF2MD_001), | ||
1043 | PINMUX_DATA(MOSI1_MARK, PF2MD_011), | ||
1044 | PINMUX_DATA(TIOC4C_MARK, PF2MD_100), | ||
1045 | PINMUX_DATA(TEND0_MARK, PF2MD_101), | ||
1046 | |||
1047 | PINMUX_DATA(PF1_DATA, PF1MD_000), | ||
1048 | PINMUX_DATA(BACK_MARK, PF1MD_001), | ||
1049 | PINMUX_DATA(SSL10_MARK, PF1MD_011), | ||
1050 | PINMUX_DATA(TIOC4B_MARK, PF1MD_100), | ||
1051 | PINMUX_DATA(DACK0_MARK, PF1MD_101), | ||
1052 | |||
1053 | PINMUX_DATA(PF0_DATA, PF0MD_000), | ||
1054 | PINMUX_DATA(BREQ_MARK, PF0MD_001), | ||
1055 | PINMUX_DATA(RSPCK1_MARK, PF0MD_011), | ||
1056 | PINMUX_DATA(TIOC4A_MARK, PF0MD_100), | ||
1057 | PINMUX_DATA(DREQ0_MARK, PF0MD_101), | ||
1058 | |||
1059 | /* Port G */ | ||
1060 | PINMUX_DATA(PG27_DATA, PG27MD_00), | ||
1061 | PINMUX_DATA(LCD_TCON2_MARK, PG27MD_10), | ||
1062 | PINMUX_DATA(LCD_EXTCLK_MARK, PG27MD_11), | ||
1063 | PINMUX_DATA(LCD_DE_MARK, PG27MD_11), | ||
1064 | |||
1065 | PINMUX_DATA(PG26_DATA, PG26MD_00), | ||
1066 | PINMUX_DATA(LCD_TCON1_MARK, PG26MD_10), | ||
1067 | PINMUX_DATA(LCD_HSYNC_MARK, PG26MD_10), | ||
1068 | |||
1069 | PINMUX_DATA(PG25_DATA, PG25MD_00), | ||
1070 | PINMUX_DATA(LCD_TCON0_MARK, PG25MD_10), | ||
1071 | PINMUX_DATA(LCD_VSYNC_MARK, PG25MD_10), | ||
1072 | |||
1073 | PINMUX_DATA(PG24_DATA, PG24MD_00), | ||
1074 | PINMUX_DATA(LCD_CLK_MARK, PG24MD_10), | ||
1075 | |||
1076 | PINMUX_DATA(PG23_DATA, PG23MD_000), | ||
1077 | PINMUX_DATA(LCD_DATA23_PG23_MARK, PG23MD_010), | ||
1078 | PINMUX_DATA(LCD_TCON6_MARK, PG23MD_011), | ||
1079 | PINMUX_DATA(TXD5_MARK, PG23MD_100), | ||
1080 | |||
1081 | PINMUX_DATA(PG22_DATA, PG22MD_000), | ||
1082 | PINMUX_DATA(LCD_DATA22_PG22_MARK, PG22MD_010), | ||
1083 | PINMUX_DATA(LCD_TCON5_MARK, PG22MD_011), | ||
1084 | PINMUX_DATA(RXD5_MARK, PG22MD_100), | ||
1085 | |||
1086 | PINMUX_DATA(PG21_DATA, PG21MD_000), | ||
1087 | PINMUX_DATA(DV_DATA7_MARK, PG21MD_001), | ||
1088 | PINMUX_DATA(LCD_DATA21_PG21_MARK, PG21MD_010), | ||
1089 | PINMUX_DATA(LCD_TCON4_MARK, PG21MD_011), | ||
1090 | PINMUX_DATA(TXD4_MARK, PG21MD_100), | ||
1091 | |||
1092 | PINMUX_DATA(PG20_DATA, PG20MD_000), | ||
1093 | PINMUX_DATA(DV_DATA6_MARK, PG20MD_001), | ||
1094 | PINMUX_DATA(LCD_DATA20_PG20_MARK, PG21MD_010), | ||
1095 | PINMUX_DATA(LCD_TCON3_MARK, PG20MD_011), | ||
1096 | PINMUX_DATA(RXD4_MARK, PG20MD_100), | ||
1097 | |||
1098 | PINMUX_DATA(PG19_DATA, PG19MD_000), | ||
1099 | PINMUX_DATA(DV_DATA5_MARK, PG19MD_001), | ||
1100 | PINMUX_DATA(LCD_DATA19_PG19_MARK, PG19MD_010), | ||
1101 | PINMUX_DATA(SPDIF_OUT_MARK, PG19MD_011), | ||
1102 | PINMUX_DATA(SCK5_MARK, PG19MD_100), | ||
1103 | |||
1104 | PINMUX_DATA(PG18_DATA, PG18MD_000), | ||
1105 | PINMUX_DATA(DV_DATA4_MARK, PG18MD_001), | ||
1106 | PINMUX_DATA(LCD_DATA18_PG18_MARK, PG18MD_010), | ||
1107 | PINMUX_DATA(SPDIF_IN_MARK, PG18MD_011), | ||
1108 | PINMUX_DATA(SCK4_MARK, PG18MD_100), | ||
1109 | |||
1110 | // TODO hardware manual has PG17 3 bits wide in reg picture and 2 bits in description | ||
1111 | // we're going with 2 bits | ||
1112 | PINMUX_DATA(PG17_DATA, PG17MD_00), | ||
1113 | PINMUX_DATA(WE3ICIOWRAHDQMUU_MARK, PG17MD_01), | ||
1114 | PINMUX_DATA(LCD_DATA17_PG17_MARK, PG17MD_10), | ||
1115 | |||
1116 | // TODO hardware manual has PG16 3 bits wide in reg picture and 2 bits in description | ||
1117 | // we're going with 2 bits | ||
1118 | PINMUX_DATA(PG16_DATA, PG16MD_00), | ||
1119 | PINMUX_DATA(WE2ICIORDDQMUL_MARK, PG16MD_01), | ||
1120 | PINMUX_DATA(LCD_DATA16_PG16_MARK, PG16MD_10), | ||
1121 | |||
1122 | PINMUX_DATA(PG15_DATA, PG15MD_00), | ||
1123 | PINMUX_DATA(D31_MARK, PG15MD_01), | ||
1124 | PINMUX_DATA(LCD_DATA15_PG15_MARK, PG15MD_10), | ||
1125 | PINMUX_DATA(PINT7_PG_MARK, PG15MD_11), | ||
1126 | |||
1127 | PINMUX_DATA(PG14_DATA, PG14MD_00), | ||
1128 | PINMUX_DATA(D30_MARK, PG14MD_01), | ||
1129 | PINMUX_DATA(LCD_DATA14_PG14_MARK, PG14MD_10), | ||
1130 | PINMUX_DATA(PINT6_PG_MARK, PG14MD_11), | ||
1131 | |||
1132 | PINMUX_DATA(PG13_DATA, PG13MD_00), | ||
1133 | PINMUX_DATA(D29_MARK, PG13MD_01), | ||
1134 | PINMUX_DATA(LCD_DATA13_PG13_MARK, PG13MD_10), | ||
1135 | PINMUX_DATA(PINT5_PG_MARK, PG13MD_11), | ||
1136 | |||
1137 | PINMUX_DATA(PG12_DATA, PG12MD_00), | ||
1138 | PINMUX_DATA(D28_MARK, PG12MD_01), | ||
1139 | PINMUX_DATA(LCD_DATA12_PG12_MARK, PG12MD_10), | ||
1140 | PINMUX_DATA(PINT4_PG_MARK, PG12MD_11), | ||
1141 | |||
1142 | PINMUX_DATA(PG11_DATA, PG11MD_000), | ||
1143 | PINMUX_DATA(D27_MARK, PG11MD_001), | ||
1144 | PINMUX_DATA(LCD_DATA11_PG11_MARK, PG11MD_010), | ||
1145 | PINMUX_DATA(PINT3_PG_MARK, PG11MD_011), | ||
1146 | PINMUX_DATA(TIOC3D_MARK, PG11MD_100), | ||
1147 | |||
1148 | PINMUX_DATA(PG10_DATA, PG10MD_000), | ||
1149 | PINMUX_DATA(D26_MARK, PG10MD_001), | ||
1150 | PINMUX_DATA(LCD_DATA10_PG10_MARK, PG10MD_010), | ||
1151 | PINMUX_DATA(PINT2_PG_MARK, PG10MD_011), | ||
1152 | PINMUX_DATA(TIOC3C_MARK, PG10MD_100), | ||
1153 | |||
1154 | PINMUX_DATA(PG9_DATA, PG9MD_000), | ||
1155 | PINMUX_DATA(D25_MARK, PG9MD_001), | ||
1156 | PINMUX_DATA(LCD_DATA9_PG9_MARK, PG9MD_010), | ||
1157 | PINMUX_DATA(PINT1_PG_MARK, PG9MD_011), | ||
1158 | PINMUX_DATA(TIOC3B_MARK, PG9MD_100), | ||
1159 | |||
1160 | PINMUX_DATA(PG8_DATA, PG8MD_000), | ||
1161 | PINMUX_DATA(D24_MARK, PG8MD_001), | ||
1162 | PINMUX_DATA(LCD_DATA8_PG8_MARK, PG8MD_010), | ||
1163 | PINMUX_DATA(PINT0_PG_MARK, PG8MD_011), | ||
1164 | PINMUX_DATA(TIOC3A_MARK, PG8MD_100), | ||
1165 | |||
1166 | PINMUX_DATA(PG7_DATA, PG7MD_000), | ||
1167 | PINMUX_DATA(D23_MARK, PG7MD_001), | ||
1168 | PINMUX_DATA(LCD_DATA7_PG7_MARK, PG7MD_010), | ||
1169 | PINMUX_DATA(IRQ7_PG_MARK, PG7MD_011), | ||
1170 | PINMUX_DATA(TIOC2B_MARK, PG7MD_100), | ||
1171 | |||
1172 | PINMUX_DATA(PG6_DATA, PG6MD_000), | ||
1173 | PINMUX_DATA(D22_MARK, PG6MD_001), | ||
1174 | PINMUX_DATA(LCD_DATA6_PG6_MARK, PG6MD_010), | ||
1175 | PINMUX_DATA(IRQ6_PG_MARK, PG6MD_011), | ||
1176 | PINMUX_DATA(TIOC2A_MARK, PG6MD_100), | ||
1177 | |||
1178 | PINMUX_DATA(PG5_DATA, PG5MD_000), | ||
1179 | PINMUX_DATA(D21_MARK, PG5MD_001), | ||
1180 | PINMUX_DATA(LCD_DATA5_PG5_MARK, PG5MD_010), | ||
1181 | PINMUX_DATA(IRQ5_PG_MARK, PG5MD_011), | ||
1182 | PINMUX_DATA(TIOC1B_MARK, PG5MD_100), | ||
1183 | |||
1184 | PINMUX_DATA(PG4_DATA, PG4MD_000), | ||
1185 | PINMUX_DATA(D20_MARK, PG4MD_001), | ||
1186 | PINMUX_DATA(LCD_DATA4_PG4_MARK, PG4MD_010), | ||
1187 | PINMUX_DATA(IRQ4_PG_MARK, PG4MD_011), | ||
1188 | PINMUX_DATA(TIOC1A_MARK, PG4MD_100), | ||
1189 | |||
1190 | PINMUX_DATA(PG3_DATA, PG3MD_000), | ||
1191 | PINMUX_DATA(D19_MARK, PG3MD_001), | ||
1192 | PINMUX_DATA(LCD_DATA3_PG3_MARK, PG3MD_010), | ||
1193 | PINMUX_DATA(IRQ3_PG_MARK, PG3MD_011), | ||
1194 | PINMUX_DATA(TIOC0D_MARK, PG3MD_100), | ||
1195 | |||
1196 | PINMUX_DATA(PG2_DATA, PG2MD_000), | ||
1197 | PINMUX_DATA(D18_MARK, PG2MD_001), | ||
1198 | PINMUX_DATA(LCD_DATA2_PG2_MARK, PG2MD_010), | ||
1199 | PINMUX_DATA(IRQ2_PG_MARK, PG2MD_011), | ||
1200 | PINMUX_DATA(TIOC0C_MARK, PG2MD_100), | ||
1201 | |||
1202 | PINMUX_DATA(PG1_DATA, PG1MD_000), | ||
1203 | PINMUX_DATA(D17_MARK, PG1MD_001), | ||
1204 | PINMUX_DATA(LCD_DATA1_PG1_MARK, PG1MD_010), | ||
1205 | PINMUX_DATA(IRQ1_PG_MARK, PG1MD_011), | ||
1206 | PINMUX_DATA(TIOC0B_MARK, PG1MD_100), | ||
1207 | |||
1208 | PINMUX_DATA(PG0_DATA, PG0MD_000), | ||
1209 | PINMUX_DATA(D16_MARK, PG0MD_001), | ||
1210 | PINMUX_DATA(LCD_DATA0_PG0_MARK, PG0MD_010), | ||
1211 | PINMUX_DATA(IRQ0_PG_MARK, PG0MD_011), | ||
1212 | PINMUX_DATA(TIOC0A_MARK, PG0MD_100), | ||
1213 | |||
1214 | /* Port H */ | ||
1215 | PINMUX_DATA(PH7_DATA, PH7MD_00), | ||
1216 | PINMUX_DATA(PHAN7_MARK, PH7MD_01), | ||
1217 | PINMUX_DATA(PINT7_PH_MARK, PH7MD_10), | ||
1218 | |||
1219 | PINMUX_DATA(PH6_DATA, PH6MD_00), | ||
1220 | PINMUX_DATA(PHAN6_MARK, PH6MD_01), | ||
1221 | PINMUX_DATA(PINT6_PH_MARK, PH6MD_10), | ||
1222 | |||
1223 | PINMUX_DATA(PH5_DATA, PH5MD_00), | ||
1224 | PINMUX_DATA(PHAN5_MARK, PH5MD_01), | ||
1225 | PINMUX_DATA(PINT5_PH_MARK, PH5MD_10), | ||
1226 | PINMUX_DATA(LCD_EXTCLK_MARK, PH5MD_11), | ||
1227 | |||
1228 | PINMUX_DATA(PH4_DATA, PH4MD_00), | ||
1229 | PINMUX_DATA(PHAN4_MARK, PH4MD_01), | ||
1230 | PINMUX_DATA(PINT4_PH_MARK, PH4MD_10), | ||
1231 | |||
1232 | PINMUX_DATA(PH3_DATA, PH3MD_00), | ||
1233 | PINMUX_DATA(PHAN3_MARK, PH3MD_01), | ||
1234 | PINMUX_DATA(PINT3_PH_MARK, PH3MD_10), | ||
1235 | |||
1236 | PINMUX_DATA(PH2_DATA, PH2MD_00), | ||
1237 | PINMUX_DATA(PHAN2_MARK, PH2MD_01), | ||
1238 | PINMUX_DATA(PINT2_PH_MARK, PH2MD_10), | ||
1239 | |||
1240 | PINMUX_DATA(PH1_DATA, PH1MD_00), | ||
1241 | PINMUX_DATA(PHAN1_MARK, PH1MD_01), | ||
1242 | PINMUX_DATA(PINT1_PH_MARK, PH1MD_10), | ||
1243 | |||
1244 | PINMUX_DATA(PH0_DATA, PH0MD_00), | ||
1245 | PINMUX_DATA(PHAN0_MARK, PH0MD_01), | ||
1246 | PINMUX_DATA(PINT0_PH_MARK, PH0MD_10), | ||
1247 | |||
1248 | /* Port I - not on device */ | ||
1249 | |||
1250 | /* Port J */ | ||
1251 | PINMUX_DATA(PJ31_DATA, PJ31MD_0), | ||
1252 | PINMUX_DATA(DV_CLK_MARK, PJ31MD_1), | ||
1253 | |||
1254 | PINMUX_DATA(PJ30_DATA, PJ30MD_000), | ||
1255 | PINMUX_DATA(SSIDATA5_MARK, PJ30MD_010), | ||
1256 | PINMUX_DATA(TIOC2B_MARK, PJ30MD_100), | ||
1257 | PINMUX_DATA(IETXD_MARK, PJ30MD_101), | ||
1258 | |||
1259 | PINMUX_DATA(PJ29_DATA, PJ29MD_000), | ||
1260 | PINMUX_DATA(SSIWS5_MARK, PJ29MD_010), | ||
1261 | PINMUX_DATA(TIOC2A_MARK, PJ29MD_100), | ||
1262 | PINMUX_DATA(IERXD_MARK, PJ29MD_101), | ||
1263 | |||
1264 | PINMUX_DATA(PJ28_DATA, PJ28MD_000), | ||
1265 | PINMUX_DATA(SSISCK5_MARK, PJ28MD_010), | ||
1266 | PINMUX_DATA(TIOC1B_MARK, PJ28MD_100), | ||
1267 | PINMUX_DATA(RTS7_MARK, PJ28MD_101), | ||
1268 | |||
1269 | PINMUX_DATA(PJ27_DATA, PJ27MD_000), | ||
1270 | PINMUX_DATA(TIOC1A_MARK, PJ27MD_100), | ||
1271 | PINMUX_DATA(CTS7_MARK, PJ27MD_101), | ||
1272 | |||
1273 | PINMUX_DATA(PJ26_DATA, PJ26MD_000), | ||
1274 | PINMUX_DATA(SSIDATA4_MARK, PJ26MD_010), | ||
1275 | PINMUX_DATA(LCD_TCON5_MARK, PJ26MD_011), | ||
1276 | PINMUX_DATA(TXD7_MARK, PJ26MD_101), | ||
1277 | |||
1278 | PINMUX_DATA(PJ25_DATA, PJ25MD_000), | ||
1279 | PINMUX_DATA(SSIWS4_MARK, PJ25MD_010), | ||
1280 | PINMUX_DATA(LCD_TCON4_MARK, PJ25MD_011), | ||
1281 | PINMUX_DATA(SPDIF_OUT_MARK, PJ25MD_100), | ||
1282 | PINMUX_DATA(RXD7_MARK, PJ25MD_101), | ||
1283 | |||
1284 | PINMUX_DATA(PJ24_DATA, PJ24MD_000), | ||
1285 | PINMUX_DATA(SSISCK4_MARK, PJ24MD_010), | ||
1286 | PINMUX_DATA(LCD_TCON3_MARK, PJ24MD_011), | ||
1287 | PINMUX_DATA(SPDIF_IN_MARK, PJ24MD_100), | ||
1288 | PINMUX_DATA(SCK7_MARK, PJ24MD_101), | ||
1289 | |||
1290 | PINMUX_DATA(PJ23_DATA, PJ23MD_000), | ||
1291 | PINMUX_DATA(DV_DATA23_MARK, PJ23MD_001), | ||
1292 | PINMUX_DATA(LCD_DATA23_PJ23_MARK, PJ23MD_010), | ||
1293 | PINMUX_DATA(LCD_TCON6_MARK, PJ23MD_011), | ||
1294 | PINMUX_DATA(IRQ3_PJ_MARK, PJ23MD_100), | ||
1295 | PINMUX_DATA(CTX1_MARK, PJ23MD_101), | ||
1296 | |||
1297 | PINMUX_DATA(PJ22_DATA, PJ22MD_000), | ||
1298 | PINMUX_DATA(DV_DATA22_MARK, PJ22MD_001), | ||
1299 | PINMUX_DATA(LCD_DATA22_PJ22_MARK, PJ22MD_010), | ||
1300 | PINMUX_DATA(LCD_TCON5_MARK, PJ22MD_011), | ||
1301 | PINMUX_DATA(IRQ2_PJ_MARK, PJ22MD_100), | ||
1302 | PINMUX_DATA(CRX1_MARK, PJ22MD_101), | ||
1303 | PINMUX_DATA(CRX0CRX1_MARK, PJ22MD_110), | ||
1304 | |||
1305 | PINMUX_DATA(PJ21_DATA, PJ21MD_000), | ||
1306 | PINMUX_DATA(DV_DATA21_MARK, PJ21MD_001), | ||
1307 | PINMUX_DATA(LCD_DATA21_PJ21_MARK, PJ21MD_010), | ||
1308 | PINMUX_DATA(LCD_TCON4_MARK, PJ21MD_011), | ||
1309 | PINMUX_DATA(IRQ1_PJ_MARK, PJ21MD_100), | ||
1310 | PINMUX_DATA(CTX2_MARK, PJ21MD_101), | ||
1311 | |||
1312 | PINMUX_DATA(PJ20_DATA, PJ20MD_000), | ||
1313 | PINMUX_DATA(DV_DATA20_MARK, PJ20MD_001), | ||
1314 | PINMUX_DATA(LCD_DATA20_PJ20_MARK, PJ20MD_010), | ||
1315 | PINMUX_DATA(LCD_TCON3_MARK, PJ20MD_011), | ||
1316 | PINMUX_DATA(IRQ0_PJ_MARK, PJ20MD_100), | ||
1317 | PINMUX_DATA(CRX2_MARK, PJ20MD_101), | ||
1318 | PINMUX_DATA(CRX0CRX1CRX2_PJ20_MARK, PJ20MD_110), | ||
1319 | |||
1320 | PINMUX_DATA(PJ19_DATA, PJ19MD_000), | ||
1321 | PINMUX_DATA(DV_DATA19_MARK, PJ19MD_001), | ||
1322 | PINMUX_DATA(LCD_DATA19_PJ19_MARK, PJ19MD_010), | ||
1323 | PINMUX_DATA(MISO0_PJ19_MARK, PJ19MD_011), | ||
1324 | PINMUX_DATA(TIOC0D_MARK, PJ19MD_100), | ||
1325 | PINMUX_DATA(SIOFRXD_MARK, PJ19MD_101), | ||
1326 | PINMUX_DATA(AUDIO_XOUT_MARK, PJ19MD_110), | ||
1327 | |||
1328 | PINMUX_DATA(PJ18_DATA, PJ18MD_000), | ||
1329 | PINMUX_DATA(DV_DATA18_MARK, PJ18MD_001), | ||
1330 | PINMUX_DATA(LCD_DATA18_PJ18_MARK, PJ18MD_010), | ||
1331 | PINMUX_DATA(MOSI0_PJ18_MARK, PJ18MD_011), | ||
1332 | PINMUX_DATA(TIOC0C_MARK, PJ18MD_100), | ||
1333 | PINMUX_DATA(SIOFTXD_MARK, PJ18MD_101), | ||
1334 | |||
1335 | PINMUX_DATA(PJ17_DATA, PJ17MD_000), | ||
1336 | PINMUX_DATA(DV_DATA17_MARK, PJ17MD_001), | ||
1337 | PINMUX_DATA(LCD_DATA17_PJ17_MARK, PJ17MD_010), | ||
1338 | PINMUX_DATA(SSL00_PJ17_MARK, PJ17MD_011), | ||
1339 | PINMUX_DATA(TIOC0B_MARK, PJ17MD_100), | ||
1340 | PINMUX_DATA(SIOFSYNC_MARK, PJ17MD_101), | ||
1341 | |||
1342 | PINMUX_DATA(PJ16_DATA, PJ16MD_000), | ||
1343 | PINMUX_DATA(DV_DATA16_MARK, PJ16MD_001), | ||
1344 | PINMUX_DATA(LCD_DATA16_PJ16_MARK, PJ16MD_010), | ||
1345 | PINMUX_DATA(RSPCK0_PJ16_MARK, PJ16MD_011), | ||
1346 | PINMUX_DATA(TIOC0A_MARK, PJ16MD_100), | ||
1347 | PINMUX_DATA(SIOFSCK_MARK, PJ16MD_101), | ||
1348 | |||
1349 | PINMUX_DATA(PJ15_DATA, PJ15MD_000), | ||
1350 | PINMUX_DATA(DV_DATA15_MARK, PJ15MD_001), | ||
1351 | PINMUX_DATA(LCD_DATA15_PJ15_MARK, PJ15MD_010), | ||
1352 | PINMUX_DATA(PINT7_PJ_MARK, PJ15MD_011), | ||
1353 | PINMUX_DATA(PWM2H_MARK, PJ15MD_100), | ||
1354 | PINMUX_DATA(TXD7_MARK, PJ15MD_101), | ||
1355 | |||
1356 | PINMUX_DATA(PJ14_DATA, PJ14MD_000), | ||
1357 | PINMUX_DATA(DV_DATA14_MARK, PJ14MD_001), | ||
1358 | PINMUX_DATA(LCD_DATA14_PJ14_MARK, PJ14MD_010), | ||
1359 | PINMUX_DATA(PINT6_PJ_MARK, PJ14MD_011), | ||
1360 | PINMUX_DATA(PWM2G_MARK, PJ14MD_100), | ||
1361 | PINMUX_DATA(TXD6_MARK, PJ14MD_101), | ||
1362 | |||
1363 | PINMUX_DATA(PJ13_DATA, PJ13MD_000), | ||
1364 | PINMUX_DATA(DV_DATA13_MARK, PJ13MD_001), | ||
1365 | PINMUX_DATA(LCD_DATA13_PJ13_MARK, PJ13MD_010), | ||
1366 | PINMUX_DATA(PINT5_PJ_MARK, PJ13MD_011), | ||
1367 | PINMUX_DATA(PWM2F_MARK, PJ13MD_100), | ||
1368 | PINMUX_DATA(TXD5_MARK, PJ13MD_101), | ||
1369 | |||
1370 | PINMUX_DATA(PJ12_DATA, PJ12MD_000), | ||
1371 | PINMUX_DATA(DV_DATA12_MARK, PJ12MD_001), | ||
1372 | PINMUX_DATA(LCD_DATA12_PJ12_MARK, PJ12MD_010), | ||
1373 | PINMUX_DATA(PINT4_PJ_MARK, PJ12MD_011), | ||
1374 | PINMUX_DATA(PWM2E_MARK, PJ12MD_100), | ||
1375 | PINMUX_DATA(SCK7_MARK, PJ12MD_101), | ||
1376 | |||
1377 | PINMUX_DATA(PJ11_DATA, PJ11MD_000), | ||
1378 | PINMUX_DATA(DV_DATA11_MARK, PJ11MD_001), | ||
1379 | PINMUX_DATA(LCD_DATA11_PJ11_MARK, PJ11MD_010), | ||
1380 | PINMUX_DATA(PINT3_PJ_MARK, PJ11MD_011), | ||
1381 | PINMUX_DATA(PWM2D_MARK, PJ11MD_100), | ||
1382 | PINMUX_DATA(SCK6_MARK, PJ11MD_101), | ||
1383 | |||
1384 | PINMUX_DATA(PJ10_DATA, PJ10MD_000), | ||
1385 | PINMUX_DATA(DV_DATA10_MARK, PJ10MD_001), | ||
1386 | PINMUX_DATA(LCD_DATA10_PJ10_MARK, PJ10MD_010), | ||
1387 | PINMUX_DATA(PINT2_PJ_MARK, PJ10MD_011), | ||
1388 | PINMUX_DATA(PWM2C_MARK, PJ10MD_100), | ||
1389 | PINMUX_DATA(SCK5_MARK, PJ10MD_101), | ||
1390 | |||
1391 | PINMUX_DATA(PJ9_DATA, PJ9MD_000), | ||
1392 | PINMUX_DATA(DV_DATA9_MARK, PJ9MD_001), | ||
1393 | PINMUX_DATA(LCD_DATA9_PJ9_MARK, PJ9MD_010), | ||
1394 | PINMUX_DATA(PINT1_PJ_MARK, PJ9MD_011), | ||
1395 | PINMUX_DATA(PWM2B_MARK, PJ9MD_100), | ||
1396 | PINMUX_DATA(RTS5_MARK, PJ9MD_101), | ||
1397 | |||
1398 | PINMUX_DATA(PJ8_DATA, PJ8MD_000), | ||
1399 | PINMUX_DATA(DV_DATA8_MARK, PJ8MD_001), | ||
1400 | PINMUX_DATA(LCD_DATA8_PJ8_MARK, PJ8MD_010), | ||
1401 | PINMUX_DATA(PINT0_PJ_MARK, PJ8MD_011), | ||
1402 | PINMUX_DATA(PWM2A_MARK, PJ8MD_100), | ||
1403 | PINMUX_DATA(CTS5_MARK, PJ8MD_101), | ||
1404 | |||
1405 | PINMUX_DATA(PJ7_DATA, PJ7MD_000), | ||
1406 | PINMUX_DATA(DV_DATA7_MARK, PJ7MD_001), | ||
1407 | PINMUX_DATA(LCD_DATA7_PJ7_MARK, PJ7MD_010), | ||
1408 | PINMUX_DATA(SD_D2_MARK, PJ7MD_011), | ||
1409 | PINMUX_DATA(PWM1H_MARK, PJ7MD_100), | ||
1410 | |||
1411 | PINMUX_DATA(PJ6_DATA, PJ6MD_000), | ||
1412 | PINMUX_DATA(DV_DATA6_MARK, PJ6MD_001), | ||
1413 | PINMUX_DATA(LCD_DATA6_PJ6_MARK, PJ6MD_010), | ||
1414 | PINMUX_DATA(SD_D3_MARK, PJ6MD_011), | ||
1415 | PINMUX_DATA(PWM1G_MARK, PJ6MD_100), | ||
1416 | |||
1417 | PINMUX_DATA(PJ5_DATA, PJ5MD_000), | ||
1418 | PINMUX_DATA(DV_DATA5_MARK, PJ5MD_001), | ||
1419 | PINMUX_DATA(LCD_DATA5_PJ5_MARK, PJ5MD_010), | ||
1420 | PINMUX_DATA(SD_CMD_MARK, PJ5MD_011), | ||
1421 | PINMUX_DATA(PWM1F_MARK, PJ5MD_100), | ||
1422 | |||
1423 | PINMUX_DATA(PJ4_DATA, PJ4MD_000), | ||
1424 | PINMUX_DATA(DV_DATA4_MARK, PJ4MD_001), | ||
1425 | PINMUX_DATA(LCD_DATA4_PJ4_MARK, PJ4MD_010), | ||
1426 | PINMUX_DATA(SD_CLK_MARK, PJ4MD_011), | ||
1427 | PINMUX_DATA(PWM1E_MARK, PJ4MD_100), | ||
1428 | |||
1429 | PINMUX_DATA(PJ3_DATA, PJ3MD_000), | ||
1430 | PINMUX_DATA(DV_DATA3_MARK, PJ3MD_001), | ||
1431 | PINMUX_DATA(LCD_DATA3_PJ3_MARK, PJ3MD_010), | ||
1432 | PINMUX_DATA(SD_D0_MARK, PJ3MD_011), | ||
1433 | PINMUX_DATA(PWM1D_MARK, PJ3MD_100), | ||
1434 | |||
1435 | PINMUX_DATA(PJ2_DATA, PJ2MD_000), | ||
1436 | PINMUX_DATA(DV_DATA2_MARK, PJ2MD_001), | ||
1437 | PINMUX_DATA(LCD_DATA2_PJ2_MARK, PJ2MD_010), | ||
1438 | PINMUX_DATA(SD_D1_MARK, PJ2MD_011), | ||
1439 | PINMUX_DATA(PWM1C_MARK, PJ2MD_100), | ||
1440 | |||
1441 | PINMUX_DATA(PJ1_DATA, PJ1MD_000), | ||
1442 | PINMUX_DATA(DV_DATA1_MARK, PJ1MD_001), | ||
1443 | PINMUX_DATA(LCD_DATA1_PJ1_MARK, PJ1MD_010), | ||
1444 | PINMUX_DATA(SD_WP_MARK, PJ1MD_011), | ||
1445 | PINMUX_DATA(PWM1B_MARK, PJ1MD_100), | ||
1446 | |||
1447 | PINMUX_DATA(PJ0_DATA, PJ0MD_000), | ||
1448 | PINMUX_DATA(DV_DATA0_MARK, PJ0MD_001), | ||
1449 | PINMUX_DATA(LCD_DATA0_PJ0_MARK, PJ0MD_010), | ||
1450 | PINMUX_DATA(SD_CD_MARK, PJ0MD_011), | ||
1451 | PINMUX_DATA(PWM1A_MARK, PJ0MD_100), | ||
1452 | }; | ||
1453 | |||
1454 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1455 | /* Port A */ | ||
1456 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
1457 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
1458 | |||
1459 | /* Port B */ | ||
1460 | PINMUX_GPIO(GPIO_PB22, PB22_DATA), | ||
1461 | PINMUX_GPIO(GPIO_PB21, PB21_DATA), | ||
1462 | PINMUX_GPIO(GPIO_PB20, PB20_DATA), | ||
1463 | PINMUX_GPIO(GPIO_PB19, PB19_DATA), | ||
1464 | PINMUX_GPIO(GPIO_PB18, PB18_DATA), | ||
1465 | PINMUX_GPIO(GPIO_PB17, PB17_DATA), | ||
1466 | PINMUX_GPIO(GPIO_PB16, PB16_DATA), | ||
1467 | PINMUX_GPIO(GPIO_PB15, PB15_DATA), | ||
1468 | PINMUX_GPIO(GPIO_PB14, PB14_DATA), | ||
1469 | PINMUX_GPIO(GPIO_PB13, PB13_DATA), | ||
1470 | PINMUX_GPIO(GPIO_PB12, PB12_DATA), | ||
1471 | PINMUX_GPIO(GPIO_PB11, PB11_DATA), | ||
1472 | PINMUX_GPIO(GPIO_PB10, PB10_DATA), | ||
1473 | PINMUX_GPIO(GPIO_PB9, PB9_DATA), | ||
1474 | PINMUX_GPIO(GPIO_PB8, PB8_DATA), | ||
1475 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
1476 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
1477 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
1478 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
1479 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
1480 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
1481 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
1482 | |||
1483 | /* Port C */ | ||
1484 | PINMUX_GPIO(GPIO_PC8, PC8_DATA), | ||
1485 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
1486 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
1487 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
1488 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
1489 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
1490 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
1491 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
1492 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
1493 | |||
1494 | /* Port D */ | ||
1495 | PINMUX_GPIO(GPIO_PD15, PD15_DATA), | ||
1496 | PINMUX_GPIO(GPIO_PD14, PD14_DATA), | ||
1497 | PINMUX_GPIO(GPIO_PD13, PD13_DATA), | ||
1498 | PINMUX_GPIO(GPIO_PD12, PD12_DATA), | ||
1499 | PINMUX_GPIO(GPIO_PD11, PD11_DATA), | ||
1500 | PINMUX_GPIO(GPIO_PD10, PD10_DATA), | ||
1501 | PINMUX_GPIO(GPIO_PD9, PD9_DATA), | ||
1502 | PINMUX_GPIO(GPIO_PD8, PD8_DATA), | ||
1503 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
1504 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
1505 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
1506 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
1507 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
1508 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
1509 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
1510 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
1511 | |||
1512 | /* Port E */ | ||
1513 | PINMUX_GPIO(GPIO_PE7, PE7_DATA), | ||
1514 | PINMUX_GPIO(GPIO_PE6, PE6_DATA), | ||
1515 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
1516 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
1517 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
1518 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
1519 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
1520 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
1521 | |||
1522 | /* Port F */ | ||
1523 | PINMUX_GPIO(GPIO_PF23, PF23_DATA), | ||
1524 | PINMUX_GPIO(GPIO_PF22, PF22_DATA), | ||
1525 | PINMUX_GPIO(GPIO_PF21, PF21_DATA), | ||
1526 | PINMUX_GPIO(GPIO_PF20, PF20_DATA), | ||
1527 | PINMUX_GPIO(GPIO_PF19, PF19_DATA), | ||
1528 | PINMUX_GPIO(GPIO_PF18, PF18_DATA), | ||
1529 | PINMUX_GPIO(GPIO_PF17, PF17_DATA), | ||
1530 | PINMUX_GPIO(GPIO_PF16, PF16_DATA), | ||
1531 | PINMUX_GPIO(GPIO_PF15, PF15_DATA), | ||
1532 | PINMUX_GPIO(GPIO_PF14, PF14_DATA), | ||
1533 | PINMUX_GPIO(GPIO_PF13, PF13_DATA), | ||
1534 | PINMUX_GPIO(GPIO_PF12, PF12_DATA), | ||
1535 | PINMUX_GPIO(GPIO_PF11, PF11_DATA), | ||
1536 | PINMUX_GPIO(GPIO_PF10, PF10_DATA), | ||
1537 | PINMUX_GPIO(GPIO_PF9, PF9_DATA), | ||
1538 | PINMUX_GPIO(GPIO_PF8, PF8_DATA), | ||
1539 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
1540 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
1541 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
1542 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
1543 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
1544 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
1545 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
1546 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
1547 | |||
1548 | /* Port G */ | ||
1549 | PINMUX_GPIO(GPIO_PG27, PG27_DATA), | ||
1550 | PINMUX_GPIO(GPIO_PG26, PG26_DATA), | ||
1551 | PINMUX_GPIO(GPIO_PG25, PG25_DATA), | ||
1552 | PINMUX_GPIO(GPIO_PG24, PG24_DATA), | ||
1553 | PINMUX_GPIO(GPIO_PG23, PG23_DATA), | ||
1554 | PINMUX_GPIO(GPIO_PG22, PG22_DATA), | ||
1555 | PINMUX_GPIO(GPIO_PG21, PG21_DATA), | ||
1556 | PINMUX_GPIO(GPIO_PG20, PG20_DATA), | ||
1557 | PINMUX_GPIO(GPIO_PG19, PG19_DATA), | ||
1558 | PINMUX_GPIO(GPIO_PG18, PG18_DATA), | ||
1559 | PINMUX_GPIO(GPIO_PG17, PG17_DATA), | ||
1560 | PINMUX_GPIO(GPIO_PG16, PG16_DATA), | ||
1561 | PINMUX_GPIO(GPIO_PG15, PG15_DATA), | ||
1562 | PINMUX_GPIO(GPIO_PG14, PG14_DATA), | ||
1563 | PINMUX_GPIO(GPIO_PG13, PG13_DATA), | ||
1564 | PINMUX_GPIO(GPIO_PG12, PG12_DATA), | ||
1565 | PINMUX_GPIO(GPIO_PG11, PG11_DATA), | ||
1566 | PINMUX_GPIO(GPIO_PG10, PG10_DATA), | ||
1567 | PINMUX_GPIO(GPIO_PG9, PG9_DATA), | ||
1568 | PINMUX_GPIO(GPIO_PG8, PG8_DATA), | ||
1569 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
1570 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
1571 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
1572 | PINMUX_GPIO(GPIO_PG4, PG4_DATA), | ||
1573 | PINMUX_GPIO(GPIO_PG3, PG3_DATA), | ||
1574 | PINMUX_GPIO(GPIO_PG2, PG2_DATA), | ||
1575 | PINMUX_GPIO(GPIO_PG1, PG1_DATA), | ||
1576 | PINMUX_GPIO(GPIO_PG0, PG0_DATA), | ||
1577 | |||
1578 | /* Port H - Port H does not have a Data Register */ | ||
1579 | |||
1580 | /* Port I - not on device */ | ||
1581 | |||
1582 | /* Port J */ | ||
1583 | PINMUX_GPIO(GPIO_PJ31, PJ31_DATA), | ||
1584 | PINMUX_GPIO(GPIO_PJ30, PJ30_DATA), | ||
1585 | PINMUX_GPIO(GPIO_PJ29, PJ29_DATA), | ||
1586 | PINMUX_GPIO(GPIO_PJ28, PJ28_DATA), | ||
1587 | PINMUX_GPIO(GPIO_PJ27, PJ27_DATA), | ||
1588 | PINMUX_GPIO(GPIO_PJ26, PJ26_DATA), | ||
1589 | PINMUX_GPIO(GPIO_PJ25, PJ25_DATA), | ||
1590 | PINMUX_GPIO(GPIO_PJ24, PJ24_DATA), | ||
1591 | PINMUX_GPIO(GPIO_PJ23, PJ23_DATA), | ||
1592 | PINMUX_GPIO(GPIO_PJ22, PJ22_DATA), | ||
1593 | PINMUX_GPIO(GPIO_PJ21, PJ21_DATA), | ||
1594 | PINMUX_GPIO(GPIO_PJ20, PJ20_DATA), | ||
1595 | PINMUX_GPIO(GPIO_PJ19, PJ19_DATA), | ||
1596 | PINMUX_GPIO(GPIO_PJ18, PJ18_DATA), | ||
1597 | PINMUX_GPIO(GPIO_PJ17, PJ17_DATA), | ||
1598 | PINMUX_GPIO(GPIO_PJ16, PJ16_DATA), | ||
1599 | PINMUX_GPIO(GPIO_PJ15, PJ15_DATA), | ||
1600 | PINMUX_GPIO(GPIO_PJ14, PJ14_DATA), | ||
1601 | PINMUX_GPIO(GPIO_PJ13, PJ13_DATA), | ||
1602 | PINMUX_GPIO(GPIO_PJ12, PJ12_DATA), | ||
1603 | PINMUX_GPIO(GPIO_PJ11, PJ11_DATA), | ||
1604 | PINMUX_GPIO(GPIO_PJ10, PJ10_DATA), | ||
1605 | PINMUX_GPIO(GPIO_PJ9, PJ9_DATA), | ||
1606 | PINMUX_GPIO(GPIO_PJ8, PJ8_DATA), | ||
1607 | PINMUX_GPIO(GPIO_PJ7, PJ7_DATA), | ||
1608 | PINMUX_GPIO(GPIO_PJ6, PJ6_DATA), | ||
1609 | PINMUX_GPIO(GPIO_PJ5, PJ5_DATA), | ||
1610 | PINMUX_GPIO(GPIO_PJ4, PJ4_DATA), | ||
1611 | PINMUX_GPIO(GPIO_PJ3, PJ3_DATA), | ||
1612 | PINMUX_GPIO(GPIO_PJ2, PJ2_DATA), | ||
1613 | PINMUX_GPIO(GPIO_PJ1, PJ1_DATA), | ||
1614 | PINMUX_GPIO(GPIO_PJ0, PJ0_DATA), | ||
1615 | |||
1616 | /* INTC */ | ||
1617 | PINMUX_GPIO(GPIO_FN_IRQ7_PG, IRQ7_PG_MARK), | ||
1618 | PINMUX_GPIO(GPIO_FN_IRQ6_PG, IRQ6_PG_MARK), | ||
1619 | PINMUX_GPIO(GPIO_FN_IRQ5_PG, IRQ5_PG_MARK), | ||
1620 | PINMUX_GPIO(GPIO_FN_IRQ4_PG, IRQ4_PG_MARK), | ||
1621 | PINMUX_GPIO(GPIO_FN_IRQ3_PG, IRQ3_PG_MARK), | ||
1622 | PINMUX_GPIO(GPIO_FN_IRQ2_PG, IRQ2_PG_MARK), | ||
1623 | PINMUX_GPIO(GPIO_FN_IRQ1_PG, IRQ1_PG_MARK), | ||
1624 | PINMUX_GPIO(GPIO_FN_IRQ0_PG, IRQ0_PG_MARK), | ||
1625 | PINMUX_GPIO(GPIO_FN_IRQ7_PF, IRQ7_PF_MARK), | ||
1626 | PINMUX_GPIO(GPIO_FN_IRQ6_PF, IRQ6_PF_MARK), | ||
1627 | PINMUX_GPIO(GPIO_FN_IRQ5_PF, IRQ5_PF_MARK), | ||
1628 | PINMUX_GPIO(GPIO_FN_IRQ4_PF, IRQ4_PF_MARK), | ||
1629 | PINMUX_GPIO(GPIO_FN_IRQ3_PJ, IRQ3_PJ_MARK), | ||
1630 | PINMUX_GPIO(GPIO_FN_IRQ2_PJ, IRQ2_PJ_MARK), | ||
1631 | PINMUX_GPIO(GPIO_FN_IRQ1_PJ, IRQ1_PJ_MARK), | ||
1632 | PINMUX_GPIO(GPIO_FN_IRQ0_PJ, IRQ0_PJ_MARK), | ||
1633 | PINMUX_GPIO(GPIO_FN_IRQ1_PC, IRQ1_PC_MARK), | ||
1634 | PINMUX_GPIO(GPIO_FN_IRQ0_PC, IRQ0_PC_MARK), | ||
1635 | |||
1636 | PINMUX_GPIO(GPIO_FN_PINT7_PG, PINT7_PG_MARK), | ||
1637 | PINMUX_GPIO(GPIO_FN_PINT6_PG, PINT6_PG_MARK), | ||
1638 | PINMUX_GPIO(GPIO_FN_PINT5_PG, PINT5_PG_MARK), | ||
1639 | PINMUX_GPIO(GPIO_FN_PINT4_PG, PINT4_PG_MARK), | ||
1640 | PINMUX_GPIO(GPIO_FN_PINT3_PG, PINT3_PG_MARK), | ||
1641 | PINMUX_GPIO(GPIO_FN_PINT2_PG, PINT2_PG_MARK), | ||
1642 | PINMUX_GPIO(GPIO_FN_PINT1_PG, PINT1_PG_MARK), | ||
1643 | PINMUX_GPIO(GPIO_FN_PINT0_PG, PINT0_PG_MARK), | ||
1644 | PINMUX_GPIO(GPIO_FN_PINT7_PH, PINT7_PH_MARK), | ||
1645 | PINMUX_GPIO(GPIO_FN_PINT6_PH, PINT6_PH_MARK), | ||
1646 | PINMUX_GPIO(GPIO_FN_PINT5_PH, PINT5_PH_MARK), | ||
1647 | PINMUX_GPIO(GPIO_FN_PINT4_PH, PINT4_PH_MARK), | ||
1648 | PINMUX_GPIO(GPIO_FN_PINT3_PH, PINT3_PH_MARK), | ||
1649 | PINMUX_GPIO(GPIO_FN_PINT2_PH, PINT2_PH_MARK), | ||
1650 | PINMUX_GPIO(GPIO_FN_PINT1_PH, PINT1_PH_MARK), | ||
1651 | PINMUX_GPIO(GPIO_FN_PINT0_PH, PINT0_PH_MARK), | ||
1652 | PINMUX_GPIO(GPIO_FN_PINT7_PJ, PINT7_PJ_MARK), | ||
1653 | PINMUX_GPIO(GPIO_FN_PINT6_PJ, PINT6_PJ_MARK), | ||
1654 | PINMUX_GPIO(GPIO_FN_PINT5_PJ, PINT5_PJ_MARK), | ||
1655 | PINMUX_GPIO(GPIO_FN_PINT4_PJ, PINT4_PJ_MARK), | ||
1656 | PINMUX_GPIO(GPIO_FN_PINT3_PJ, PINT3_PJ_MARK), | ||
1657 | PINMUX_GPIO(GPIO_FN_PINT2_PJ, PINT2_PJ_MARK), | ||
1658 | PINMUX_GPIO(GPIO_FN_PINT1_PJ, PINT1_PJ_MARK), | ||
1659 | PINMUX_GPIO(GPIO_FN_PINT0_PJ, PINT0_PJ_MARK), | ||
1660 | |||
1661 | /* WDT */ | ||
1662 | PINMUX_GPIO(GPIO_FN_WDTOVF, WDTOVF_MARK), | ||
1663 | |||
1664 | /* CAN */ | ||
1665 | PINMUX_GPIO(GPIO_FN_CTX1, CTX1_MARK), | ||
1666 | PINMUX_GPIO(GPIO_FN_CRX1, CRX1_MARK), | ||
1667 | PINMUX_GPIO(GPIO_FN_CTX0, CTX0_MARK), | ||
1668 | PINMUX_GPIO(GPIO_FN_CRX0, CRX0_MARK), | ||
1669 | PINMUX_GPIO(GPIO_FN_CRX0_CRX1, CRX0CRX1_MARK), | ||
1670 | PINMUX_GPIO(GPIO_FN_CRX0_CRX1_CRX2, CRX0CRX1CRX2_MARK), | ||
1671 | |||
1672 | /* DMAC */ | ||
1673 | PINMUX_GPIO(GPIO_FN_TEND0, TEND0_MARK), | ||
1674 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
1675 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1676 | PINMUX_GPIO(GPIO_FN_TEND1, TEND1_MARK), | ||
1677 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
1678 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
1679 | |||
1680 | /* ADC */ | ||
1681 | PINMUX_GPIO(GPIO_FN_ADTRG, ADTRG_MARK), | ||
1682 | |||
1683 | /* BSCh */ | ||
1684 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1685 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1686 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1687 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1688 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
1689 | PINMUX_GPIO(GPIO_FN_A20, A20_MARK), | ||
1690 | PINMUX_GPIO(GPIO_FN_A19, A19_MARK), | ||
1691 | PINMUX_GPIO(GPIO_FN_A18, A18_MARK), | ||
1692 | PINMUX_GPIO(GPIO_FN_A17, A17_MARK), | ||
1693 | PINMUX_GPIO(GPIO_FN_A16, A16_MARK), | ||
1694 | PINMUX_GPIO(GPIO_FN_A15, A15_MARK), | ||
1695 | PINMUX_GPIO(GPIO_FN_A14, A14_MARK), | ||
1696 | PINMUX_GPIO(GPIO_FN_A13, A13_MARK), | ||
1697 | PINMUX_GPIO(GPIO_FN_A12, A12_MARK), | ||
1698 | PINMUX_GPIO(GPIO_FN_A11, A11_MARK), | ||
1699 | PINMUX_GPIO(GPIO_FN_A10, A10_MARK), | ||
1700 | PINMUX_GPIO(GPIO_FN_A9, A9_MARK), | ||
1701 | PINMUX_GPIO(GPIO_FN_A8, A8_MARK), | ||
1702 | PINMUX_GPIO(GPIO_FN_A7, A7_MARK), | ||
1703 | PINMUX_GPIO(GPIO_FN_A6, A6_MARK), | ||
1704 | PINMUX_GPIO(GPIO_FN_A5, A5_MARK), | ||
1705 | PINMUX_GPIO(GPIO_FN_A4, A4_MARK), | ||
1706 | PINMUX_GPIO(GPIO_FN_A3, A3_MARK), | ||
1707 | PINMUX_GPIO(GPIO_FN_A2, A2_MARK), | ||
1708 | PINMUX_GPIO(GPIO_FN_A1, A1_MARK), | ||
1709 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
1710 | |||
1711 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1712 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1713 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1714 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1715 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1716 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1717 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1718 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1719 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1720 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1721 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1722 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1723 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1724 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1725 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1726 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1727 | |||
1728 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1729 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
1730 | PINMUX_GPIO(GPIO_FN_CS3, CS3_MARK), | ||
1731 | PINMUX_GPIO(GPIO_FN_CS2, CS2_MARK), | ||
1732 | PINMUX_GPIO(GPIO_FN_CS1, CS1_MARK), | ||
1733 | PINMUX_GPIO(GPIO_FN_CS0, CS0_MARK), | ||
1734 | PINMUX_GPIO(GPIO_FN_CS5CE1A, CS5CE1A_MARK), | ||
1735 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
1736 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
1737 | PINMUX_GPIO(GPIO_FN_RD, RD_MARK), | ||
1738 | PINMUX_GPIO(GPIO_FN_RDWR, RDWR_MARK), | ||
1739 | PINMUX_GPIO(GPIO_FN_WE3ICIOWRAHDQMUU, WE3ICIOWRAHDQMUU_MARK), | ||
1740 | PINMUX_GPIO(GPIO_FN_WE2ICIORDDQMUL, WE2ICIORDDQMUL_MARK), | ||
1741 | PINMUX_GPIO(GPIO_FN_WE1DQMUWE, WE1DQMUWE_MARK), | ||
1742 | PINMUX_GPIO(GPIO_FN_WE0DQML, WE0DQML_MARK), | ||
1743 | PINMUX_GPIO(GPIO_FN_RAS, RAS_MARK), | ||
1744 | PINMUX_GPIO(GPIO_FN_CAS, CAS_MARK), | ||
1745 | PINMUX_GPIO(GPIO_FN_CKE, CKE_MARK), | ||
1746 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1747 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
1748 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
1749 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1750 | |||
1751 | /* TMU */ | ||
1752 | PINMUX_GPIO(GPIO_FN_TIOC4D, TIOC4D_MARK), | ||
1753 | PINMUX_GPIO(GPIO_FN_TIOC4C, TIOC4C_MARK), | ||
1754 | PINMUX_GPIO(GPIO_FN_TIOC4B, TIOC4B_MARK), | ||
1755 | PINMUX_GPIO(GPIO_FN_TIOC4A, TIOC4A_MARK), | ||
1756 | PINMUX_GPIO(GPIO_FN_TIOC3D, TIOC3D_MARK), | ||
1757 | PINMUX_GPIO(GPIO_FN_TIOC3C, TIOC3C_MARK), | ||
1758 | PINMUX_GPIO(GPIO_FN_TIOC3B, TIOC3B_MARK), | ||
1759 | PINMUX_GPIO(GPIO_FN_TIOC3A, TIOC3A_MARK), | ||
1760 | PINMUX_GPIO(GPIO_FN_TIOC2B, TIOC2B_MARK), | ||
1761 | PINMUX_GPIO(GPIO_FN_TIOC1B, TIOC1B_MARK), | ||
1762 | PINMUX_GPIO(GPIO_FN_TIOC2A, TIOC2A_MARK), | ||
1763 | PINMUX_GPIO(GPIO_FN_TIOC1A, TIOC1A_MARK), | ||
1764 | PINMUX_GPIO(GPIO_FN_TIOC0D, TIOC0D_MARK), | ||
1765 | PINMUX_GPIO(GPIO_FN_TIOC0C, TIOC0C_MARK), | ||
1766 | PINMUX_GPIO(GPIO_FN_TIOC0B, TIOC0B_MARK), | ||
1767 | PINMUX_GPIO(GPIO_FN_TIOC0A, TIOC0A_MARK), | ||
1768 | PINMUX_GPIO(GPIO_FN_TCLKD, TCLKD_MARK), | ||
1769 | PINMUX_GPIO(GPIO_FN_TCLKC, TCLKC_MARK), | ||
1770 | PINMUX_GPIO(GPIO_FN_TCLKB, TCLKB_MARK), | ||
1771 | PINMUX_GPIO(GPIO_FN_TCLKA, TCLKA_MARK), | ||
1772 | |||
1773 | /* SCIF */ | ||
1774 | PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), | ||
1775 | PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), | ||
1776 | PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), | ||
1777 | PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), | ||
1778 | PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), | ||
1779 | PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), | ||
1780 | PINMUX_GPIO(GPIO_FN_RTS1, RTS1_MARK), | ||
1781 | PINMUX_GPIO(GPIO_FN_CTS1, CTS1_MARK), | ||
1782 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
1783 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
1784 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
1785 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
1786 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
1787 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
1788 | PINMUX_GPIO(GPIO_FN_SCK4, SCK4_MARK), | ||
1789 | PINMUX_GPIO(GPIO_FN_TXD4, TXD4_MARK), | ||
1790 | PINMUX_GPIO(GPIO_FN_RXD4, RXD4_MARK), | ||
1791 | PINMUX_GPIO(GPIO_FN_SCK5, SCK5_MARK), | ||
1792 | PINMUX_GPIO(GPIO_FN_TXD5, TXD5_MARK), | ||
1793 | PINMUX_GPIO(GPIO_FN_RXD5, RXD5_MARK), | ||
1794 | PINMUX_GPIO(GPIO_FN_RTS5, RTS5_MARK), | ||
1795 | PINMUX_GPIO(GPIO_FN_CTS5, CTS5_MARK), | ||
1796 | PINMUX_GPIO(GPIO_FN_SCK6, SCK6_MARK), | ||
1797 | PINMUX_GPIO(GPIO_FN_TXD6, TXD6_MARK), | ||
1798 | PINMUX_GPIO(GPIO_FN_RXD6, RXD6_MARK), | ||
1799 | PINMUX_GPIO(GPIO_FN_SCK7, SCK7_MARK), | ||
1800 | PINMUX_GPIO(GPIO_FN_TXD7, TXD7_MARK), | ||
1801 | PINMUX_GPIO(GPIO_FN_RXD7, RXD7_MARK), | ||
1802 | PINMUX_GPIO(GPIO_FN_RTS7, RTS7_MARK), | ||
1803 | PINMUX_GPIO(GPIO_FN_CTS7, CTS7_MARK), | ||
1804 | |||
1805 | /* RSPI */ | ||
1806 | PINMUX_GPIO(GPIO_FN_RSPCK0_PJ16, RSPCK0_PJ16_MARK), | ||
1807 | PINMUX_GPIO(GPIO_FN_SSL00_PJ17, SSL00_PJ17_MARK), | ||
1808 | PINMUX_GPIO(GPIO_FN_MOSI0_PJ18, MOSI0_PJ18_MARK), | ||
1809 | PINMUX_GPIO(GPIO_FN_MISO0_PJ19, MISO0_PJ19_MARK), | ||
1810 | PINMUX_GPIO(GPIO_FN_RSPCK0_PB17, RSPCK0_PB17_MARK), | ||
1811 | PINMUX_GPIO(GPIO_FN_SSL00_PB18, SSL00_PB18_MARK), | ||
1812 | PINMUX_GPIO(GPIO_FN_MOSI0_PB19, MOSI0_PB19_MARK), | ||
1813 | PINMUX_GPIO(GPIO_FN_MISO0_PB20, MISO0_PB20_MARK), | ||
1814 | PINMUX_GPIO(GPIO_FN_RSPCK1, RSPCK1_MARK), | ||
1815 | PINMUX_GPIO(GPIO_FN_MOSI1, MOSI1_MARK), | ||
1816 | PINMUX_GPIO(GPIO_FN_MISO1, MISO1_MARK), | ||
1817 | PINMUX_GPIO(GPIO_FN_SSL10, SSL10_MARK), | ||
1818 | |||
1819 | /* IIC3 */ | ||
1820 | PINMUX_GPIO(GPIO_FN_SCL0, SCL0_MARK), | ||
1821 | PINMUX_GPIO(GPIO_FN_SCL1, SCL1_MARK), | ||
1822 | PINMUX_GPIO(GPIO_FN_SCL2, SCL2_MARK), | ||
1823 | PINMUX_GPIO(GPIO_FN_SDA0, SDA0_MARK), | ||
1824 | PINMUX_GPIO(GPIO_FN_SDA1, SDA1_MARK), | ||
1825 | PINMUX_GPIO(GPIO_FN_SDA2, SDA2_MARK), | ||
1826 | |||
1827 | /* SSI */ | ||
1828 | PINMUX_GPIO(GPIO_FN_SSISCK0, SSISCK0_MARK), | ||
1829 | PINMUX_GPIO(GPIO_FN_SSIWS0, SSIWS0_MARK), | ||
1830 | PINMUX_GPIO(GPIO_FN_SSITXD0, SSITXD0_MARK), | ||
1831 | PINMUX_GPIO(GPIO_FN_SSIRXD0, SSIRXD0_MARK), | ||
1832 | PINMUX_GPIO(GPIO_FN_SSIWS1, SSIWS1_MARK), | ||
1833 | PINMUX_GPIO(GPIO_FN_SSIWS2, SSIWS2_MARK), | ||
1834 | PINMUX_GPIO(GPIO_FN_SSIWS3, SSIWS3_MARK), | ||
1835 | PINMUX_GPIO(GPIO_FN_SSISCK1, SSISCK1_MARK), | ||
1836 | PINMUX_GPIO(GPIO_FN_SSISCK2, SSISCK2_MARK), | ||
1837 | PINMUX_GPIO(GPIO_FN_SSISCK3, SSISCK3_MARK), | ||
1838 | PINMUX_GPIO(GPIO_FN_SSIDATA1, SSIDATA1_MARK), | ||
1839 | PINMUX_GPIO(GPIO_FN_SSIDATA2, SSIDATA2_MARK), | ||
1840 | PINMUX_GPIO(GPIO_FN_SSIDATA3, SSIDATA3_MARK), | ||
1841 | PINMUX_GPIO(GPIO_FN_AUDIO_CLK, AUDIO_CLK_MARK), | ||
1842 | PINMUX_GPIO(GPIO_FN_AUDIO_XOUT, AUDIO_XOUT_MARK), | ||
1843 | |||
1844 | /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
1845 | PINMUX_GPIO(GPIO_FN_SIOFTXD, SIOFTXD_MARK), | ||
1846 | PINMUX_GPIO(GPIO_FN_SIOFRXD, SIOFRXD_MARK), | ||
1847 | PINMUX_GPIO(GPIO_FN_SIOFSYNC, SIOFSYNC_MARK), | ||
1848 | PINMUX_GPIO(GPIO_FN_SIOFSCK, SIOFSCK_MARK), | ||
1849 | |||
1850 | /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
1851 | PINMUX_GPIO(GPIO_FN_SPDIF_IN, SPDIF_IN_MARK), | ||
1852 | PINMUX_GPIO(GPIO_FN_SPDIF_OUT, SPDIF_OUT_MARK), | ||
1853 | |||
1854 | /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */ | ||
1855 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1856 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1857 | |||
1858 | /* VDC3 */ | ||
1859 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1860 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1861 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1862 | |||
1863 | PINMUX_GPIO(GPIO_FN_DV_DATA23, DV_DATA23_MARK), | ||
1864 | PINMUX_GPIO(GPIO_FN_DV_DATA22, DV_DATA22_MARK), | ||
1865 | PINMUX_GPIO(GPIO_FN_DV_DATA21, DV_DATA21_MARK), | ||
1866 | PINMUX_GPIO(GPIO_FN_DV_DATA20, DV_DATA20_MARK), | ||
1867 | PINMUX_GPIO(GPIO_FN_DV_DATA19, DV_DATA19_MARK), | ||
1868 | PINMUX_GPIO(GPIO_FN_DV_DATA18, DV_DATA18_MARK), | ||
1869 | PINMUX_GPIO(GPIO_FN_DV_DATA17, DV_DATA17_MARK), | ||
1870 | PINMUX_GPIO(GPIO_FN_DV_DATA16, DV_DATA16_MARK), | ||
1871 | PINMUX_GPIO(GPIO_FN_DV_DATA15, DV_DATA15_MARK), | ||
1872 | PINMUX_GPIO(GPIO_FN_DV_DATA14, DV_DATA14_MARK), | ||
1873 | PINMUX_GPIO(GPIO_FN_DV_DATA13, DV_DATA13_MARK), | ||
1874 | PINMUX_GPIO(GPIO_FN_DV_DATA12, DV_DATA12_MARK), | ||
1875 | PINMUX_GPIO(GPIO_FN_DV_DATA11, DV_DATA11_MARK), | ||
1876 | PINMUX_GPIO(GPIO_FN_DV_DATA10, DV_DATA10_MARK), | ||
1877 | PINMUX_GPIO(GPIO_FN_DV_DATA9, DV_DATA9_MARK), | ||
1878 | PINMUX_GPIO(GPIO_FN_DV_DATA8, DV_DATA8_MARK), | ||
1879 | PINMUX_GPIO(GPIO_FN_DV_DATA7, DV_DATA7_MARK), | ||
1880 | PINMUX_GPIO(GPIO_FN_DV_DATA6, DV_DATA6_MARK), | ||
1881 | PINMUX_GPIO(GPIO_FN_DV_DATA5, DV_DATA5_MARK), | ||
1882 | PINMUX_GPIO(GPIO_FN_DV_DATA4, DV_DATA4_MARK), | ||
1883 | PINMUX_GPIO(GPIO_FN_DV_DATA3, DV_DATA3_MARK), | ||
1884 | PINMUX_GPIO(GPIO_FN_DV_DATA2, DV_DATA2_MARK), | ||
1885 | PINMUX_GPIO(GPIO_FN_DV_DATA1, DV_DATA1_MARK), | ||
1886 | PINMUX_GPIO(GPIO_FN_DV_DATA0, DV_DATA0_MARK), | ||
1887 | |||
1888 | PINMUX_GPIO(GPIO_FN_LCD_CLK, LCD_CLK_MARK), | ||
1889 | PINMUX_GPIO(GPIO_FN_LCD_EXTCLK, LCD_EXTCLK_MARK), | ||
1890 | PINMUX_GPIO(GPIO_FN_LCD_VSYNC, LCD_VSYNC_MARK), | ||
1891 | PINMUX_GPIO(GPIO_FN_LCD_HSYNC, LCD_HSYNC_MARK), | ||
1892 | PINMUX_GPIO(GPIO_FN_LCD_DE, LCD_DE_MARK), | ||
1893 | |||
1894 | PINMUX_GPIO(GPIO_FN_LCD_DATA23_PG23, LCD_DATA23_PG23_MARK), | ||
1895 | PINMUX_GPIO(GPIO_FN_LCD_DATA22_PG22, LCD_DATA22_PG22_MARK), | ||
1896 | PINMUX_GPIO(GPIO_FN_LCD_DATA21_PG21, LCD_DATA21_PG21_MARK), | ||
1897 | PINMUX_GPIO(GPIO_FN_LCD_DATA20_PG20, LCD_DATA20_PG20_MARK), | ||
1898 | PINMUX_GPIO(GPIO_FN_LCD_DATA19_PG19, LCD_DATA19_PG19_MARK), | ||
1899 | PINMUX_GPIO(GPIO_FN_LCD_DATA18_PG18, LCD_DATA18_PG18_MARK), | ||
1900 | PINMUX_GPIO(GPIO_FN_LCD_DATA17_PG17, LCD_DATA17_PG17_MARK), | ||
1901 | PINMUX_GPIO(GPIO_FN_LCD_DATA16_PG16, LCD_DATA16_PG16_MARK), | ||
1902 | PINMUX_GPIO(GPIO_FN_LCD_DATA15_PG15, LCD_DATA15_PG15_MARK), | ||
1903 | PINMUX_GPIO(GPIO_FN_LCD_DATA14_PG14, LCD_DATA14_PG14_MARK), | ||
1904 | PINMUX_GPIO(GPIO_FN_LCD_DATA13_PG13, LCD_DATA13_PG13_MARK), | ||
1905 | PINMUX_GPIO(GPIO_FN_LCD_DATA12_PG12, LCD_DATA12_PG12_MARK), | ||
1906 | PINMUX_GPIO(GPIO_FN_LCD_DATA11_PG11, LCD_DATA11_PG11_MARK), | ||
1907 | PINMUX_GPIO(GPIO_FN_LCD_DATA10_PG10, LCD_DATA10_PG10_MARK), | ||
1908 | PINMUX_GPIO(GPIO_FN_LCD_DATA9_PG9, LCD_DATA9_PG9_MARK), | ||
1909 | PINMUX_GPIO(GPIO_FN_LCD_DATA8_PG8, LCD_DATA8_PG8_MARK), | ||
1910 | PINMUX_GPIO(GPIO_FN_LCD_DATA7_PG7, LCD_DATA7_PG7_MARK), | ||
1911 | PINMUX_GPIO(GPIO_FN_LCD_DATA6_PG6, LCD_DATA6_PG6_MARK), | ||
1912 | PINMUX_GPIO(GPIO_FN_LCD_DATA5_PG5, LCD_DATA5_PG5_MARK), | ||
1913 | PINMUX_GPIO(GPIO_FN_LCD_DATA4_PG4, LCD_DATA4_PG4_MARK), | ||
1914 | PINMUX_GPIO(GPIO_FN_LCD_DATA3_PG3, LCD_DATA3_PG3_MARK), | ||
1915 | PINMUX_GPIO(GPIO_FN_LCD_DATA2_PG2, LCD_DATA2_PG2_MARK), | ||
1916 | PINMUX_GPIO(GPIO_FN_LCD_DATA1_PG1, LCD_DATA1_PG1_MARK), | ||
1917 | PINMUX_GPIO(GPIO_FN_LCD_DATA0_PG0, LCD_DATA0_PG0_MARK), | ||
1918 | |||
1919 | PINMUX_GPIO(GPIO_FN_LCD_DATA23_PJ23, LCD_DATA23_PJ23_MARK), | ||
1920 | PINMUX_GPIO(GPIO_FN_LCD_DATA22_PJ22, LCD_DATA22_PJ22_MARK), | ||
1921 | PINMUX_GPIO(GPIO_FN_LCD_DATA21_PJ21, LCD_DATA21_PJ21_MARK), | ||
1922 | PINMUX_GPIO(GPIO_FN_LCD_DATA20_PJ20, LCD_DATA20_PJ20_MARK), | ||
1923 | PINMUX_GPIO(GPIO_FN_LCD_DATA19_PJ19, LCD_DATA19_PJ19_MARK), | ||
1924 | PINMUX_GPIO(GPIO_FN_LCD_DATA18_PJ18, LCD_DATA18_PJ18_MARK), | ||
1925 | PINMUX_GPIO(GPIO_FN_LCD_DATA17_PJ17, LCD_DATA17_PJ17_MARK), | ||
1926 | PINMUX_GPIO(GPIO_FN_LCD_DATA16_PJ16, LCD_DATA16_PJ16_MARK), | ||
1927 | PINMUX_GPIO(GPIO_FN_LCD_DATA15_PJ15, LCD_DATA15_PJ15_MARK), | ||
1928 | PINMUX_GPIO(GPIO_FN_LCD_DATA14_PJ14, LCD_DATA14_PJ14_MARK), | ||
1929 | PINMUX_GPIO(GPIO_FN_LCD_DATA13_PJ13, LCD_DATA13_PJ13_MARK), | ||
1930 | PINMUX_GPIO(GPIO_FN_LCD_DATA12_PJ12, LCD_DATA12_PJ12_MARK), | ||
1931 | PINMUX_GPIO(GPIO_FN_LCD_DATA11_PJ11, LCD_DATA11_PJ11_MARK), | ||
1932 | PINMUX_GPIO(GPIO_FN_LCD_DATA10_PJ10, LCD_DATA10_PJ10_MARK), | ||
1933 | PINMUX_GPIO(GPIO_FN_LCD_DATA9_PJ9, LCD_DATA9_PJ9_MARK), | ||
1934 | PINMUX_GPIO(GPIO_FN_LCD_DATA8_PJ8, LCD_DATA8_PJ8_MARK), | ||
1935 | PINMUX_GPIO(GPIO_FN_LCD_DATA7_PJ7, LCD_DATA7_PJ7_MARK), | ||
1936 | PINMUX_GPIO(GPIO_FN_LCD_DATA6_PJ6, LCD_DATA6_PJ6_MARK), | ||
1937 | PINMUX_GPIO(GPIO_FN_LCD_DATA5_PJ5, LCD_DATA5_PJ5_MARK), | ||
1938 | PINMUX_GPIO(GPIO_FN_LCD_DATA4_PJ4, LCD_DATA4_PJ4_MARK), | ||
1939 | PINMUX_GPIO(GPIO_FN_LCD_DATA3_PJ3, LCD_DATA3_PJ3_MARK), | ||
1940 | PINMUX_GPIO(GPIO_FN_LCD_DATA2_PJ2, LCD_DATA2_PJ2_MARK), | ||
1941 | PINMUX_GPIO(GPIO_FN_LCD_DATA1_PJ1, LCD_DATA1_PJ1_MARK), | ||
1942 | PINMUX_GPIO(GPIO_FN_LCD_DATA0_PJ0, LCD_DATA0_PJ0_MARK), | ||
1943 | |||
1944 | PINMUX_GPIO(GPIO_FN_LCD_M_DISP, LCD_M_DISP_MARK), | ||
1945 | }; | ||
1946 | |||
1947 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1948 | /* "name" addr register_size Field_Width */ | ||
1949 | |||
1950 | /* where Field_Width is 1 for single mode registers or 4 for upto 16 | ||
1951 | mode registers and modes are described in assending order [0..16] */ | ||
1952 | |||
1953 | { PINMUX_CFG_REG("PAIOR0", 0xfffe3812, 16, 1) { | ||
1954 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1955 | 0, 0, 0, 0, 0, 0, PA1_IN, PA1_OUT, | ||
1956 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1957 | 0, 0, 0, 0, 0, 0, PA0_IN, PA0_OUT } | ||
1958 | }, | ||
1959 | { PINMUX_CFG_REG("PBCR5", 0xfffe3824, 16, 4) { | ||
1960 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1961 | |||
1962 | PB22MD_000, PB22MD_001, PB22MD_010, PB22MD_011, | ||
1963 | PB22MD_100, PB22MD_101, PB22MD_110, PB22MD_111, | ||
1964 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1965 | |||
1966 | PB21MD_00, PB21MD_01, PB21MD_10, PB21MD_11, 0, 0, 0, 0, | ||
1967 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1968 | |||
1969 | PB20MD_000, PB20MD_001, PB20MD_010, PB20MD_011, | ||
1970 | PB20MD_100, PB20MD_101, PB20MD_110, PB20MD_111, | ||
1971 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1972 | }, | ||
1973 | { PINMUX_CFG_REG("PBCR4", 0xfffe3826, 16, 4) { | ||
1974 | PB19MD_000, PB19MD_001, PB19MD_010, PB19MD_011, | ||
1975 | PB19MD_100, PB19MD_101, PB19MD_110, PB19MD_111, | ||
1976 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1977 | |||
1978 | PB18MD_000, PB18MD_001, PB18MD_010, PB18MD_011, | ||
1979 | PB18MD_100, PB18MD_101, PB18MD_110, PB18MD_111, | ||
1980 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1981 | |||
1982 | PB17MD_000, PB17MD_001, PB17MD_010, PB17MD_011, | ||
1983 | PB17MD_100, PB17MD_101, PB17MD_110, PB17MD_111, | ||
1984 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1985 | |||
1986 | PB16MD_000, PB16MD_001, PB16MD_010, PB16MD_011, | ||
1987 | PB16MD_100, PB16MD_101, PB16MD_110, PB16MD_111, | ||
1988 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1989 | }, | ||
1990 | { PINMUX_CFG_REG("PBCR3", 0xfffe3828, 16, 4) { | ||
1991 | PB15MD_000, PB15MD_001, PB15MD_010, PB15MD_011, | ||
1992 | PB15MD_100, PB15MD_101, PB15MD_110, PB15MD_111, | ||
1993 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1994 | |||
1995 | PB14MD_000, PB14MD_001, PB14MD_010, PB14MD_011, | ||
1996 | PB14MD_100, PB14MD_101, PB14MD_110, PB14MD_111, | ||
1997 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1998 | |||
1999 | PB13MD_000, PB13MD_001, PB13MD_010, PB13MD_011, | ||
2000 | PB13MD_100, PB13MD_101, PB13MD_110, PB13MD_111, | ||
2001 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2002 | |||
2003 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, 0, 0, 0, 0, | ||
2004 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2005 | }, | ||
2006 | { PINMUX_CFG_REG("PBCR2", 0xfffe382a, 16, 4) { | ||
2007 | PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11, 0, 0, 0, 0, | ||
2008 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2009 | |||
2010 | PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11, 0, 0, 0, 0, | ||
2011 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2012 | |||
2013 | PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11, 0, 0, 0, 0, | ||
2014 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2015 | |||
2016 | PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11, 0, 0, 0, 0, | ||
2017 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2018 | }, | ||
2019 | { PINMUX_CFG_REG("PBCR1", 0xfffe382c, 16, 4) { | ||
2020 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, 0, 0, 0, 0, | ||
2021 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2022 | |||
2023 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, 0, 0, 0, 0, | ||
2024 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2025 | |||
2026 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, 0, 0, 0, 0, | ||
2027 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2028 | |||
2029 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, 0, 0, 0, 0, | ||
2030 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2031 | }, | ||
2032 | { PINMUX_CFG_REG("PBCR0", 0xfffe382e, 16, 4) { | ||
2033 | PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, 0, 0, 0, 0, | ||
2034 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2035 | |||
2036 | PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, 0, 0, 0, 0, | ||
2037 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2038 | |||
2039 | PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, 0, 0, 0, 0, | ||
2040 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2041 | |||
2042 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2043 | }, | ||
2044 | |||
2045 | { PINMUX_CFG_REG("PBIOR1", 0xfffe3830, 16, 1) { | ||
2046 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2047 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2048 | 0, 0, | ||
2049 | PB22_IN, PB22_OUT, | ||
2050 | PB21_IN, PB21_OUT, | ||
2051 | PB20_IN, PB20_OUT, | ||
2052 | PB19_IN, PB19_OUT, | ||
2053 | PB18_IN, PB18_OUT, | ||
2054 | PB17_IN, PB17_OUT, | ||
2055 | PB16_IN, PB16_OUT } | ||
2056 | }, | ||
2057 | { PINMUX_CFG_REG("PBIOR0", 0xfffe3832, 16, 1) { | ||
2058 | PB15_IN, PB15_OUT, | ||
2059 | PB14_IN, PB14_OUT, | ||
2060 | PB13_IN, PB13_OUT, | ||
2061 | PB12_IN, PB12_OUT, | ||
2062 | PB11_IN, PB11_OUT, | ||
2063 | PB10_IN, PB10_OUT, | ||
2064 | PB9_IN, PB9_OUT, | ||
2065 | PB8_IN, PB8_OUT, | ||
2066 | PB7_IN, PB7_OUT, | ||
2067 | PB6_IN, PB6_OUT, | ||
2068 | PB5_IN, PB5_OUT, | ||
2069 | PB4_IN, PB4_OUT, | ||
2070 | PB3_IN, PB3_OUT, | ||
2071 | PB2_IN, PB2_OUT, | ||
2072 | PB1_IN, PB1_OUT, | ||
2073 | 0, 0 } | ||
2074 | }, | ||
2075 | |||
2076 | { PINMUX_CFG_REG("PCCR2", 0xfffe384a, 16, 4) { | ||
2077 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2078 | |||
2079 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2080 | |||
2081 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2082 | |||
2083 | PC8MD_000, PC8MD_001, PC8MD_010, PC8MD_011, | ||
2084 | PC8MD_100, PC8MD_101, PC8MD_110, PC8MD_111, | ||
2085 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2086 | }, | ||
2087 | { PINMUX_CFG_REG("PCCR1", 0xfffe384c, 16, 4) { | ||
2088 | PC7MD_000, PC7MD_001, PC7MD_010, PC7MD_011, | ||
2089 | PC7MD_100, PC7MD_101, PC7MD_110, PC7MD_111, | ||
2090 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2091 | |||
2092 | PC6MD_000, PC6MD_001, PC6MD_010, PC6MD_011, | ||
2093 | PC6MD_100, PC6MD_101, PC6MD_110, PC6MD_111, | ||
2094 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2095 | |||
2096 | PC5MD_000, PC5MD_001, PC5MD_010, PC5MD_011, | ||
2097 | PC5MD_100, PC5MD_101, PC5MD_110, PC5MD_111, | ||
2098 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2099 | |||
2100 | PC4MD_00, PC4MD_01, PC4MD_10, PC4MD_11, 0, 0, 0, 0, | ||
2101 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2102 | }, | ||
2103 | { PINMUX_CFG_REG("PCCR0", 0xfffe384e, 16, 4) { | ||
2104 | PC3MD_00, PC3MD_01, PC3MD_10, PC3MD_11, 0, 0, 0, 0, | ||
2105 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2106 | |||
2107 | PC2MD_00, PC2MD_01, PC2MD_10, PC2MD_11, 0, 0, 0, 0, | ||
2108 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2109 | |||
2110 | PC1MD_0, PC1MD_1, 0, 0, 0, 0, 0, 0, | ||
2111 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2112 | |||
2113 | PC0MD_0, PC0MD_1, 0, 0, 0, 0, 0, 0, | ||
2114 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2115 | }, | ||
2116 | |||
2117 | { PINMUX_CFG_REG("PCIOR0", 0xfffe3852, 16, 1) { | ||
2118 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2119 | PC8_IN, PC8_OUT, | ||
2120 | PC7_IN, PC7_OUT, | ||
2121 | PC6_IN, PC6_OUT, | ||
2122 | PC5_IN, PC5_OUT, | ||
2123 | PC4_IN, PC4_OUT, | ||
2124 | PC3_IN, PC3_OUT, | ||
2125 | PC2_IN, PC2_OUT, | ||
2126 | PC1_IN, PC1_OUT, | ||
2127 | PC0_IN, PC0_OUT } | ||
2128 | }, | ||
2129 | |||
2130 | { PINMUX_CFG_REG("PDCR3", 0xfffe3868, 16, 4) { | ||
2131 | PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11, 0, 0, 0, 0, | ||
2132 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2133 | |||
2134 | PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11, 0, 0, 0, 0, | ||
2135 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2136 | |||
2137 | PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11, 0, 0, 0, 0, | ||
2138 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2139 | |||
2140 | PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11, 0, 0, 0, 0, | ||
2141 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2142 | }, | ||
2143 | { PINMUX_CFG_REG("PDCR2", 0xfffe386a, 16, 4) { | ||
2144 | PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11, 0, 0, 0, 0, | ||
2145 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2146 | |||
2147 | PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11, 0, 0, 0, 0, | ||
2148 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2149 | |||
2150 | PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11, 0, 0, 0, 0, | ||
2151 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2152 | |||
2153 | PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11, 0, 0, 0, 0, | ||
2154 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2155 | }, | ||
2156 | { PINMUX_CFG_REG("PDCR1", 0xfffe386c, 16, 4) { | ||
2157 | PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11, 0, 0, 0, 0, | ||
2158 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2159 | |||
2160 | PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11, 0, 0, 0, 0, | ||
2161 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2162 | |||
2163 | PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11, 0, 0, 0, 0, | ||
2164 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2165 | |||
2166 | PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11, 0, 0, 0, 0, | ||
2167 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2168 | }, | ||
2169 | { PINMUX_CFG_REG("PDCR0", 0xfffe386e, 16, 4) { | ||
2170 | PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11, 0, 0, 0, 0, | ||
2171 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2172 | |||
2173 | PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11, 0, 0, 0, 0, | ||
2174 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2175 | |||
2176 | PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11, 0, 0, 0, 0, | ||
2177 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2178 | |||
2179 | PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11, 0, 0, 0, 0, | ||
2180 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2181 | }, | ||
2182 | |||
2183 | { PINMUX_CFG_REG("PDIOR0", 0xfffe3872, 16, 1) { | ||
2184 | PD15_IN, PD15_OUT, | ||
2185 | PD14_IN, PD14_OUT, | ||
2186 | PD13_IN, PD13_OUT, | ||
2187 | PD12_IN, PD12_OUT, | ||
2188 | PD11_IN, PD11_OUT, | ||
2189 | PD10_IN, PD10_OUT, | ||
2190 | PD9_IN, PD9_OUT, | ||
2191 | PD8_IN, PD8_OUT, | ||
2192 | PD7_IN, PD7_OUT, | ||
2193 | PD6_IN, PD6_OUT, | ||
2194 | PD5_IN, PD5_OUT, | ||
2195 | PD4_IN, PD4_OUT, | ||
2196 | PD3_IN, PD3_OUT, | ||
2197 | PD2_IN, PD2_OUT, | ||
2198 | PD1_IN, PD1_OUT, | ||
2199 | PD0_IN, PD0_OUT } | ||
2200 | }, | ||
2201 | |||
2202 | { PINMUX_CFG_REG("PECR1", 0xfffe388c, 16, 4) { | ||
2203 | PE7MD_00, PE7MD_01, PE7MD_10, PE7MD_11, 0, 0, 0, 0, | ||
2204 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2205 | |||
2206 | PE6MD_00, PE6MD_01, PE6MD_10, PE6MD_11, 0, 0, 0, 0, | ||
2207 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2208 | |||
2209 | PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11, 0, 0, 0, 0, | ||
2210 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2211 | |||
2212 | PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11, 0, 0, 0, 0, | ||
2213 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2214 | }, | ||
2215 | { PINMUX_CFG_REG("PECR0", 0xfffe388e, 16, 4) { | ||
2216 | PE3MD_000, PE3MD_001, PE3MD_010, PE3MD_011, | ||
2217 | PE3MD_100, PE3MD_101, PE3MD_110, PE3MD_111, | ||
2218 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2219 | |||
2220 | PE2MD_000, PE2MD_001, PE2MD_010, PE2MD_011, | ||
2221 | PE2MD_100, PE2MD_101, PE2MD_110, PE2MD_111, | ||
2222 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2223 | |||
2224 | PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011, | ||
2225 | PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111, | ||
2226 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2227 | |||
2228 | PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, 0, 0, 0, 0, | ||
2229 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2230 | }, | ||
2231 | { PINMUX_CFG_REG("PEIOR0", 0xfffe3892, 16, 1) { | ||
2232 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2233 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2234 | PE7_IN, PE7_OUT, | ||
2235 | PE6_IN, PE6_OUT, | ||
2236 | PE5_IN, PE5_OUT, | ||
2237 | PE4_IN, PE4_OUT, | ||
2238 | PE3_IN, PE3_OUT, | ||
2239 | PE2_IN, PE2_OUT, | ||
2240 | PE1_IN, PE1_OUT, | ||
2241 | PE0_IN, PE0_OUT } | ||
2242 | }, | ||
2243 | |||
2244 | { PINMUX_CFG_REG("PFCR6", 0xfffe38a2, 16, 4) { | ||
2245 | PF23MD_000, PF23MD_001, PF23MD_010, PF23MD_011, | ||
2246 | PF23MD_100, PF23MD_101, PF23MD_110, PF23MD_111, | ||
2247 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2248 | |||
2249 | PF22MD_000, PF22MD_001, PF22MD_010, PF22MD_011, | ||
2250 | PF22MD_100, PF22MD_101, PF22MD_110, PF22MD_111, | ||
2251 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2252 | |||
2253 | PF21MD_000, PF21MD_001, PF21MD_010, PF21MD_011, | ||
2254 | PF21MD_100, PF21MD_101, PF21MD_110, PF21MD_111, | ||
2255 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2256 | |||
2257 | PF20MD_000, PF20MD_001, PF20MD_010, PF20MD_011, | ||
2258 | PF20MD_100, PF20MD_101, PF20MD_110, PF20MD_111, | ||
2259 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2260 | }, | ||
2261 | { PINMUX_CFG_REG("PFCR5", 0xfffe38a4, 16, 4) { | ||
2262 | PF19MD_000, PF19MD_001, PF19MD_010, PF19MD_011, | ||
2263 | PF19MD_100, PF19MD_101, PF19MD_110, PF19MD_111, | ||
2264 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2265 | |||
2266 | PF18MD_000, PF18MD_001, PF18MD_010, PF18MD_011, | ||
2267 | PF18MD_100, PF18MD_101, PF18MD_110, PF18MD_111, | ||
2268 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2269 | |||
2270 | PF17MD_000, PF17MD_001, PF17MD_010, PF17MD_011, | ||
2271 | PF17MD_100, PF17MD_101, PF17MD_110, PF17MD_111, | ||
2272 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2273 | |||
2274 | PF16MD_000, PF16MD_001, PF16MD_010, PF16MD_011, | ||
2275 | PF16MD_100, PF16MD_101, PF16MD_110, PF16MD_111, | ||
2276 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2277 | }, | ||
2278 | { PINMUX_CFG_REG("PFCR4", 0xfffe38a6, 16, 4) { | ||
2279 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2280 | |||
2281 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2282 | |||
2283 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2284 | |||
2285 | PF15MD_000, PF15MD_001, PF15MD_010, PF15MD_011, | ||
2286 | PF15MD_100, PF15MD_101, PF15MD_110, PF15MD_111, | ||
2287 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2288 | }, | ||
2289 | { PINMUX_CFG_REG("PFCR3", 0xfffe38a8, 16, 4) { | ||
2290 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2291 | |||
2292 | PF14MD_000, PF14MD_001, PF14MD_010, PF14MD_011, | ||
2293 | PF14MD_100, PF14MD_101, PF14MD_110, PF14MD_111, | ||
2294 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2295 | |||
2296 | PF13MD_000, PF13MD_001, PF13MD_010, PF13MD_011, | ||
2297 | PF13MD_100, PF13MD_101, PF13MD_110, PF13MD_111, | ||
2298 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2299 | |||
2300 | PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011, | ||
2301 | PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111, | ||
2302 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2303 | }, | ||
2304 | { PINMUX_CFG_REG("PFCR2", 0xfffe38aa, 16, 4) { | ||
2305 | PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011, | ||
2306 | PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111, | ||
2307 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2308 | |||
2309 | PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011, | ||
2310 | PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111, | ||
2311 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2312 | |||
2313 | PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011, | ||
2314 | PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111, | ||
2315 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2316 | |||
2317 | PF8MD_000, PF8MD_001, PF8MD_010, PF8MD_011, | ||
2318 | PF8MD_100, PF8MD_101, PF8MD_110, PF8MD_111, | ||
2319 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2320 | }, | ||
2321 | { PINMUX_CFG_REG("PFCR1", 0xfffe38ac, 16, 4) { | ||
2322 | PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011, | ||
2323 | PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111, | ||
2324 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2325 | |||
2326 | PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011, | ||
2327 | PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111, | ||
2328 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2329 | |||
2330 | PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011, | ||
2331 | PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111, | ||
2332 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2333 | |||
2334 | PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011, | ||
2335 | PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111, | ||
2336 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2337 | }, | ||
2338 | { PINMUX_CFG_REG("PFCR0", 0xfffe38ae, 16, 4) { | ||
2339 | PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011, | ||
2340 | PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111, | ||
2341 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2342 | |||
2343 | PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011, | ||
2344 | PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111, | ||
2345 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2346 | |||
2347 | PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011, | ||
2348 | PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111, | ||
2349 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2350 | |||
2351 | PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011, | ||
2352 | PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111, | ||
2353 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2354 | }, | ||
2355 | |||
2356 | { PINMUX_CFG_REG("PFIOR1", 0xfffe38b0, 16, 1) { | ||
2357 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2358 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2359 | PF23_IN, PF23_OUT, | ||
2360 | PF22_IN, PF22_OUT, | ||
2361 | PF21_IN, PF21_OUT, | ||
2362 | PF20_IN, PF20_OUT, | ||
2363 | PF19_IN, PF19_OUT, | ||
2364 | PF18_IN, PF18_OUT, | ||
2365 | PF17_IN, PF17_OUT, | ||
2366 | PF16_IN, PF16_OUT } | ||
2367 | }, | ||
2368 | { PINMUX_CFG_REG("PFIOR0", 0xfffe38b2, 16, 1) { | ||
2369 | PF15_IN, PF15_OUT, | ||
2370 | PF14_IN, PF14_OUT, | ||
2371 | PF13_IN, PF13_OUT, | ||
2372 | PF12_IN, PF12_OUT, | ||
2373 | PF11_IN, PF11_OUT, | ||
2374 | PF10_IN, PF10_OUT, | ||
2375 | PF9_IN, PF9_OUT, | ||
2376 | PF8_IN, PF8_OUT, | ||
2377 | PF7_IN, PF7_OUT, | ||
2378 | PF6_IN, PF6_OUT, | ||
2379 | PF5_IN, PF5_OUT, | ||
2380 | PF4_IN, PF4_OUT, | ||
2381 | PF3_IN, PF3_OUT, | ||
2382 | PF2_IN, PF2_OUT, | ||
2383 | PF1_IN, PF1_OUT, | ||
2384 | PF0_IN, PF0_OUT } | ||
2385 | }, | ||
2386 | |||
2387 | { PINMUX_CFG_REG("PGCR6", 0xfffe38c2, 16, 4) { | ||
2388 | PG27MD_00, PG27MD_01, PG27MD_10, PG27MD_11, 0, 0, 0, 0, | ||
2389 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2390 | |||
2391 | PG26MD_00, PG26MD_01, PG26MD_10, PG26MD_11, 0, 0, 0, 0, | ||
2392 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2393 | |||
2394 | PG25MD_00, PG25MD_01, PG25MD_10, PG25MD_11, 0, 0, 0, 0, | ||
2395 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2396 | |||
2397 | PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, 0, 0, 0, 0, | ||
2398 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2399 | }, | ||
2400 | { PINMUX_CFG_REG("PGCR5", 0xfffe38c4, 16, 4) { | ||
2401 | PG23MD_000, PG23MD_001, PG23MD_010, PG23MD_011, | ||
2402 | PG23MD_100, PG23MD_101, PG23MD_110, PG23MD_111, | ||
2403 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2404 | |||
2405 | PG22MD_000, PG22MD_001, PG22MD_010, PG22MD_011, | ||
2406 | PG22MD_100, PG22MD_101, PG22MD_110, PG22MD_111, | ||
2407 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2408 | |||
2409 | PG21MD_000, PG21MD_001, PG21MD_010, PG21MD_011, | ||
2410 | PG21MD_100, PG21MD_101, PG21MD_110, PG21MD_111, | ||
2411 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2412 | |||
2413 | PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011, | ||
2414 | PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111, | ||
2415 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2416 | }, | ||
2417 | { PINMUX_CFG_REG("PGCR4", 0xfffe38c6, 16, 4) { | ||
2418 | PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011, | ||
2419 | PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111, | ||
2420 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2421 | |||
2422 | PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011, | ||
2423 | PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111, | ||
2424 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2425 | |||
2426 | PG17MD_00, PG17MD_01, PG17MD_10, PG17MD_11, 0, 0, 0, 0, | ||
2427 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2428 | |||
2429 | PG16MD_00, PG16MD_01, PG16MD_10, PG16MD_11, 0, 0, 0, 0, | ||
2430 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2431 | }, | ||
2432 | { PINMUX_CFG_REG("PGCR3", 0xfffe38c8, 16, 4) { | ||
2433 | PG15MD_00, PG15MD_01, PG15MD_10, PG15MD_11, 0, 0, 0, 0, | ||
2434 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2435 | |||
2436 | PG14MD_00, PG14MD_01, PG14MD_10, PG14MD_11, 0, 0, 0, 0, | ||
2437 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2438 | |||
2439 | PG13MD_00, PG13MD_01, PG13MD_10, PG13MD_11, 0, 0, 0, 0, | ||
2440 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2441 | |||
2442 | PG12MD_00, PG12MD_01, PG12MD_10, PG12MD_11, 0, 0, 0, 0, | ||
2443 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2444 | }, | ||
2445 | { PINMUX_CFG_REG("PGCR2", 0xfffe38ca, 16, 4) { | ||
2446 | PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011, | ||
2447 | PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111, | ||
2448 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2449 | |||
2450 | PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011, | ||
2451 | PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111, | ||
2452 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2453 | |||
2454 | PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011, | ||
2455 | PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111, | ||
2456 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2457 | |||
2458 | PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011, | ||
2459 | PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111, | ||
2460 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2461 | }, | ||
2462 | |||
2463 | { PINMUX_CFG_REG("PGCR1", 0xfffe38cc, 16, 4) { | ||
2464 | PG7MD_000, PG7MD_001, PG7MD_010, PG7MD_011, | ||
2465 | PG7MD_100, PG7MD_101, PG7MD_110, PG7MD_111, | ||
2466 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2467 | |||
2468 | PG6MD_000, PG6MD_001, PG6MD_010, PG6MD_011, | ||
2469 | PG6MD_100, PG6MD_101, PG6MD_110, PG6MD_111, | ||
2470 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2471 | |||
2472 | PG5MD_000, PG5MD_001, PG5MD_010, PG5MD_011, | ||
2473 | PG5MD_100, PG5MD_101, PG5MD_110, PG5MD_111, | ||
2474 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2475 | |||
2476 | PG4MD_000, PG4MD_001, PG4MD_010, PG4MD_011, | ||
2477 | PG4MD_100, PG4MD_101, PG4MD_110, PG4MD_111, | ||
2478 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2479 | }, | ||
2480 | { PINMUX_CFG_REG("PGCR0", 0xfffe38ce, 16, 4) { | ||
2481 | PG3MD_000, PG3MD_001, PG3MD_010, PG3MD_011, | ||
2482 | PG3MD_100, PG3MD_101, PG3MD_110, PG3MD_111, | ||
2483 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2484 | |||
2485 | PG2MD_000, PG2MD_001, PG2MD_010, PG2MD_011, | ||
2486 | PG2MD_100, PG2MD_101, PG2MD_110, PG2MD_111, | ||
2487 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2488 | |||
2489 | PG1MD_000, PG1MD_001, PG1MD_010, PG1MD_011, | ||
2490 | PG1MD_100, PG1MD_101, PG1MD_110, PG1MD_111, | ||
2491 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2492 | |||
2493 | PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011, | ||
2494 | PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111, | ||
2495 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2496 | }, | ||
2497 | |||
2498 | { PINMUX_CFG_REG("PGIOR1", 0xfffe38d0, 16, 1) { | ||
2499 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2500 | PG27_IN, PG27_OUT, | ||
2501 | PG26_IN, PG26_OUT, | ||
2502 | PG25_IN, PG25_OUT, | ||
2503 | PG24_IN, PG24_OUT, | ||
2504 | PG23_IN, PG23_OUT, | ||
2505 | PG22_IN, PG22_OUT, | ||
2506 | PG21_IN, PG21_OUT, | ||
2507 | PG20_IN, PG20_OUT, | ||
2508 | PG19_IN, PG19_OUT, | ||
2509 | PG18_IN, PG18_OUT, | ||
2510 | PG17_IN, PG17_OUT, | ||
2511 | PG16_IN, PG16_OUT } | ||
2512 | }, | ||
2513 | { PINMUX_CFG_REG("PGIOR0", 0xfffe38d2, 16, 1) { | ||
2514 | PG15_IN, PG15_OUT, | ||
2515 | PG14_IN, PG14_OUT, | ||
2516 | PG13_IN, PG13_OUT, | ||
2517 | PG12_IN, PG12_OUT, | ||
2518 | PG11_IN, PG11_OUT, | ||
2519 | PG10_IN, PG10_OUT, | ||
2520 | PG9_IN, PG9_OUT, | ||
2521 | PG8_IN, PG8_OUT, | ||
2522 | PG7_IN, PG7_OUT, | ||
2523 | PG6_IN, PG6_OUT, | ||
2524 | PG5_IN, PG5_OUT, | ||
2525 | PG4_IN, PG4_OUT, | ||
2526 | PG3_IN, PG3_OUT, | ||
2527 | PG2_IN, PG2_OUT, | ||
2528 | PG1_IN, PG1_OUT, | ||
2529 | PG0_IN, PG0_OUT } | ||
2530 | }, | ||
2531 | |||
2532 | { PINMUX_CFG_REG("PHCR1", 0xfffe38ec, 16, 4) { | ||
2533 | PH7MD_00, PH7MD_01, PH7MD_10, PH7MD_11, 0, 0, 0, 0, | ||
2534 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2535 | |||
2536 | PH6MD_00, PH6MD_01, PH6MD_10, PH6MD_11, 0, 0, 0, 0, | ||
2537 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2538 | |||
2539 | PH5MD_00, PH5MD_01, PH5MD_10, PH5MD_11, 0, 0, 0, 0, | ||
2540 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2541 | |||
2542 | PH4MD_00, PH4MD_01, PH4MD_10, PH4MD_11, 0, 0, 0, 0, | ||
2543 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2544 | }, | ||
2545 | |||
2546 | { PINMUX_CFG_REG("PHCR0", 0xfffe38ee, 16, 4) { | ||
2547 | PH3MD_00, PH3MD_01, PH3MD_10, PH3MD_11, 0, 0, 0, 0, | ||
2548 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2549 | |||
2550 | PH2MD_00, PH2MD_01, PH2MD_10, PH2MD_11, 0, 0, 0, 0, | ||
2551 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2552 | |||
2553 | PH1MD_00, PH1MD_01, PH1MD_10, PH1MD_11, 0, 0, 0, 0, | ||
2554 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2555 | |||
2556 | PH0MD_00, PH0MD_01, PH0MD_10, PH0MD_11, 0, 0, 0, 0, | ||
2557 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2558 | }, | ||
2559 | |||
2560 | { PINMUX_CFG_REG("PJCR7", 0xfffe3900, 16, 4) { | ||
2561 | PJ31MD_0, PJ31MD_1, 0, 0, 0, 0, 0, 0, | ||
2562 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2563 | |||
2564 | PJ30MD_000, PJ30MD_001, PJ30MD_010, PJ30MD_011, | ||
2565 | PJ30MD_100, PJ30MD_101, PJ30MD_110, PJ30MD_111, | ||
2566 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2567 | |||
2568 | PJ29MD_000, PJ29MD_001, PJ29MD_010, PJ29MD_011, | ||
2569 | PJ29MD_100, PJ29MD_101, PJ29MD_110, PJ29MD_111, | ||
2570 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2571 | |||
2572 | PJ28MD_000, PJ28MD_001, PJ28MD_010, PJ28MD_011, | ||
2573 | PJ28MD_100, PJ28MD_101, PJ28MD_110, PJ28MD_111, | ||
2574 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2575 | }, | ||
2576 | { PINMUX_CFG_REG("PJCR6", 0xfffe3902, 16, 4) { | ||
2577 | PJ27MD_000, PJ27MD_001, PJ27MD_010, PJ27MD_011, | ||
2578 | PJ27MD_100, PJ27MD_101, PJ27MD_110, PJ27MD_111, | ||
2579 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2580 | |||
2581 | PJ26MD_000, PJ26MD_001, PJ26MD_010, PJ26MD_011, | ||
2582 | PJ26MD_100, PJ26MD_101, PJ26MD_110, PJ26MD_111, | ||
2583 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2584 | |||
2585 | PJ25MD_000, PJ25MD_001, PJ25MD_010, PJ25MD_011, | ||
2586 | PJ25MD_100, PJ25MD_101, PJ25MD_110, PJ25MD_111, | ||
2587 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2588 | |||
2589 | PJ24MD_000, PJ24MD_001, PJ24MD_010, PJ24MD_011, | ||
2590 | PJ24MD_100, PJ24MD_101, PJ24MD_110, PJ24MD_111, | ||
2591 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2592 | }, | ||
2593 | { PINMUX_CFG_REG("PJCR5", 0xfffe3904, 16, 4) { | ||
2594 | PJ23MD_000, PJ23MD_001, PJ23MD_010, PJ23MD_011, | ||
2595 | PJ23MD_100, PJ23MD_101, PJ23MD_110, PJ23MD_111, | ||
2596 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2597 | |||
2598 | PJ22MD_000, PJ22MD_001, PJ22MD_010, PJ22MD_011, | ||
2599 | PJ22MD_100, PJ22MD_101, PJ22MD_110, PJ22MD_111, | ||
2600 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2601 | |||
2602 | PJ21MD_000, PJ21MD_001, PJ21MD_010, PJ21MD_011, | ||
2603 | PJ21MD_100, PJ21MD_101, PJ21MD_110, PJ21MD_111, | ||
2604 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2605 | |||
2606 | PJ20MD_000, PJ20MD_001, PJ20MD_010, PJ20MD_011, | ||
2607 | PJ20MD_100, PJ20MD_101, PJ20MD_110, PJ20MD_111, | ||
2608 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2609 | }, | ||
2610 | { PINMUX_CFG_REG("PJCR4", 0xfffe3906, 16, 4) { | ||
2611 | PJ19MD_000, PJ19MD_001, PJ19MD_010, PJ19MD_011, | ||
2612 | PJ19MD_100, PJ19MD_101, PJ19MD_110, PJ19MD_111, | ||
2613 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2614 | |||
2615 | PJ18MD_000, PJ18MD_001, PJ18MD_010, PJ18MD_011, | ||
2616 | PJ18MD_100, PJ18MD_101, PJ18MD_110, PJ18MD_111, | ||
2617 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2618 | |||
2619 | PJ17MD_000, PJ17MD_001, PJ17MD_010, PJ17MD_011, | ||
2620 | PJ17MD_100, PJ17MD_101, PJ17MD_110, PJ17MD_111, | ||
2621 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2622 | |||
2623 | PJ16MD_000, PJ16MD_001, PJ16MD_010, PJ16MD_011, | ||
2624 | PJ16MD_100, PJ16MD_101, PJ16MD_110, PJ16MD_111, | ||
2625 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2626 | }, | ||
2627 | { PINMUX_CFG_REG("PJCR3", 0xfffe3908, 16, 4) { | ||
2628 | PJ15MD_000, PJ15MD_001, PJ15MD_010, PJ15MD_011, | ||
2629 | PJ15MD_100, PJ15MD_101, PJ15MD_110, PJ15MD_111, | ||
2630 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2631 | |||
2632 | PJ14MD_000, PJ14MD_001, PJ14MD_010, PJ14MD_011, | ||
2633 | PJ14MD_100, PJ14MD_101, PJ14MD_110, PJ14MD_111, | ||
2634 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2635 | |||
2636 | PJ13MD_000, PJ13MD_001, PJ13MD_010, PJ13MD_011, | ||
2637 | PJ13MD_100, PJ13MD_101, PJ13MD_110, PJ13MD_111, | ||
2638 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2639 | |||
2640 | PJ12MD_000, PJ12MD_001, PJ12MD_010, PJ12MD_011, | ||
2641 | PJ12MD_100, PJ12MD_101, PJ12MD_110, PJ12MD_111, | ||
2642 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2643 | }, | ||
2644 | { PINMUX_CFG_REG("PJCR2", 0xfffe390a, 16, 4) { | ||
2645 | PJ11MD_000, PJ11MD_001, PJ11MD_010, PJ11MD_011, | ||
2646 | PJ11MD_100, PJ11MD_101, PJ11MD_110, PJ11MD_111, | ||
2647 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2648 | |||
2649 | PJ10MD_000, PJ10MD_001, PJ10MD_010, PJ10MD_011, | ||
2650 | PJ10MD_100, PJ10MD_101, PJ10MD_110, PJ10MD_111, | ||
2651 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2652 | |||
2653 | PJ9MD_000, PJ9MD_001, PJ9MD_010, PJ9MD_011, | ||
2654 | PJ9MD_100, PJ9MD_101, PJ9MD_110, PJ9MD_111, | ||
2655 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2656 | |||
2657 | PJ8MD_000, PJ8MD_001, PJ8MD_010, PJ8MD_011, | ||
2658 | PJ8MD_100, PJ8MD_101, PJ8MD_110, PJ8MD_111, | ||
2659 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2660 | }, | ||
2661 | { PINMUX_CFG_REG("PJCR1", 0xfffe390c, 16, 4) { | ||
2662 | PJ7MD_000, PJ7MD_001, PJ7MD_010, PJ7MD_011, | ||
2663 | PJ7MD_100, PJ7MD_101, PJ7MD_110, PJ7MD_111, | ||
2664 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2665 | |||
2666 | PJ6MD_000, PJ6MD_001, PJ6MD_010, PJ6MD_011, | ||
2667 | PJ6MD_100, PJ6MD_101, PJ6MD_110, PJ6MD_111, | ||
2668 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2669 | |||
2670 | PJ5MD_000, PJ5MD_001, PJ5MD_010, PJ5MD_011, | ||
2671 | PJ5MD_100, PJ5MD_101, PJ5MD_110, PJ5MD_111, | ||
2672 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2673 | |||
2674 | PJ4MD_000, PJ4MD_001, PJ4MD_010, PJ4MD_011, | ||
2675 | PJ4MD_100, PJ4MD_101, PJ4MD_110, PJ4MD_111, | ||
2676 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2677 | }, | ||
2678 | { PINMUX_CFG_REG("PJCR0", 0xfffe390e, 16, 4) { | ||
2679 | PJ3MD_000, PJ3MD_001, PJ3MD_010, PJ3MD_011, | ||
2680 | PJ3MD_100, PJ3MD_101, PJ3MD_110, PJ3MD_111, | ||
2681 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2682 | |||
2683 | PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011, | ||
2684 | PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111, | ||
2685 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2686 | |||
2687 | PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011, | ||
2688 | PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111, | ||
2689 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2690 | |||
2691 | PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011, | ||
2692 | PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111, | ||
2693 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2694 | }, | ||
2695 | |||
2696 | { PINMUX_CFG_REG("PJIOR1", 0xfffe3910, 16, 1) { | ||
2697 | PJ31_IN, PJ31_OUT, | ||
2698 | PJ30_IN, PJ30_OUT, | ||
2699 | PJ29_IN, PJ29_OUT, | ||
2700 | PJ28_IN, PJ28_OUT, | ||
2701 | PJ27_IN, PJ27_OUT, | ||
2702 | PJ26_IN, PJ26_OUT, | ||
2703 | PJ25_IN, PJ25_OUT, | ||
2704 | PJ24_IN, PJ24_OUT, | ||
2705 | PJ23_IN, PJ23_OUT, | ||
2706 | PJ22_IN, PJ22_OUT, | ||
2707 | PJ21_IN, PJ21_OUT, | ||
2708 | PJ20_IN, PJ20_OUT, | ||
2709 | PJ19_IN, PJ19_OUT, | ||
2710 | PJ18_IN, PJ18_OUT, | ||
2711 | PJ17_IN, PJ17_OUT, | ||
2712 | PJ16_IN, PJ16_OUT } | ||
2713 | }, | ||
2714 | { PINMUX_CFG_REG("PJIOR0", 0xfffe3912, 16, 1) { | ||
2715 | PJ15_IN, PJ15_OUT, | ||
2716 | PJ14_IN, PJ14_OUT, | ||
2717 | PJ13_IN, PJ13_OUT, | ||
2718 | PJ12_IN, PJ12_OUT, | ||
2719 | PJ11_IN, PJ11_OUT, | ||
2720 | PJ10_IN, PJ10_OUT, | ||
2721 | PJ9_IN, PJ9_OUT, | ||
2722 | PJ8_IN, PJ8_OUT, | ||
2723 | PJ7_IN, PJ7_OUT, | ||
2724 | PJ6_IN, PJ6_OUT, | ||
2725 | PJ5_IN, PJ5_OUT, | ||
2726 | PJ4_IN, PJ4_OUT, | ||
2727 | PJ3_IN, PJ3_OUT, | ||
2728 | PJ2_IN, PJ2_OUT, | ||
2729 | PJ1_IN, PJ1_OUT, | ||
2730 | PJ0_IN, PJ0_OUT } | ||
2731 | }, | ||
2732 | |||
2733 | {} | ||
2734 | }; | ||
2735 | |||
2736 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2737 | { PINMUX_DATA_REG("PADR0", 0xfffe3816, 16) { | ||
2738 | 0, 0, 0, 0, 0, 0, 0, PA1_DATA, | ||
2739 | 0, 0, 0, 0, 0, 0, 0, PA0_DATA } | ||
2740 | }, | ||
2741 | |||
2742 | { PINMUX_DATA_REG("PBDR1", 0xfffe3834, 16) { | ||
2743 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2744 | 0, PB22_DATA, PB21_DATA, PB20_DATA, | ||
2745 | PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA } | ||
2746 | }, | ||
2747 | { PINMUX_DATA_REG("PBDR0", 0xfffe3836, 16) { | ||
2748 | PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA, | ||
2749 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
2750 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
2751 | PB3_DATA, PB2_DATA, PB1_DATA, 0 } | ||
2752 | }, | ||
2753 | |||
2754 | { PINMUX_DATA_REG("PCDR0", 0xfffe3856, 16) { | ||
2755 | 0, 0, 0, 0, | ||
2756 | 0, 0, 0, PC8_DATA, | ||
2757 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
2758 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
2759 | }, | ||
2760 | |||
2761 | { PINMUX_DATA_REG("PDDR0", 0xfffe3876, 16) { | ||
2762 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
2763 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
2764 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
2765 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
2766 | }, | ||
2767 | |||
2768 | { PINMUX_DATA_REG("PEDR0", 0xfffe3896, 16) { | ||
2769 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2770 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
2771 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA } | ||
2772 | }, | ||
2773 | |||
2774 | { PINMUX_DATA_REG("PFDR1", 0xfffe38b4, 16) { | ||
2775 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2776 | PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA, | ||
2777 | PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA } | ||
2778 | }, | ||
2779 | { PINMUX_DATA_REG("PFDR0", 0xfffe38b6, 16) { | ||
2780 | PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA, | ||
2781 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
2782 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
2783 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
2784 | }, | ||
2785 | |||
2786 | { PINMUX_DATA_REG("PGDR1", 0xfffe38d4, 16) { | ||
2787 | 0, 0, 0, 0, | ||
2788 | PG27_DATA, PG26_DATA, PG25_DATA, PG24_DATA, | ||
2789 | PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA, | ||
2790 | PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA } | ||
2791 | }, | ||
2792 | { PINMUX_DATA_REG("PGDR0", 0xfffe38d6, 16) { | ||
2793 | PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA, | ||
2794 | PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA, | ||
2795 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
2796 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA } | ||
2797 | }, | ||
2798 | |||
2799 | { PINMUX_DATA_REG("PJDR1", 0xfffe3914, 16) { | ||
2800 | PJ31_DATA, PJ30_DATA, PJ29_DATA, PJ28_DATA, | ||
2801 | PJ27_DATA, PJ26_DATA, PJ25_DATA, PJ24_DATA, | ||
2802 | PJ23_DATA, PJ22_DATA, PJ21_DATA, PJ20_DATA, | ||
2803 | PJ19_DATA, PJ18_DATA, PJ17_DATA, PJ16_DATA } | ||
2804 | }, | ||
2805 | { PINMUX_DATA_REG("PJDR0", 0xfffe3916, 16) { | ||
2806 | PJ15_DATA, PJ14_DATA, PJ13_DATA, PJ12_DATA, | ||
2807 | PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA, | ||
2808 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
2809 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA } | ||
2810 | }, | ||
2811 | |||
2812 | { } | ||
2813 | }; | ||
2814 | |||
2815 | static struct pinmux_info sh7269_pinmux_info = { | ||
2816 | .name = "sh7269_pfc", | ||
2817 | .reserved_id = PINMUX_RESERVED, | ||
2818 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2819 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN }, | ||
2820 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT }, | ||
2821 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2822 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2823 | |||
2824 | .first_gpio = GPIO_PA1, | ||
2825 | .last_gpio = GPIO_FN_LCD_M_DISP, | ||
2826 | |||
2827 | .gpios = pinmux_gpios, | ||
2828 | .cfg_regs = pinmux_config_regs, | ||
2829 | .data_regs = pinmux_data_regs, | ||
2830 | |||
2831 | .gpio_data = pinmux_data, | ||
2832 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2833 | }; | ||
2834 | 15 | ||
2835 | static int __init plat_pinmux_setup(void) | 16 | static int __init plat_pinmux_setup(void) |
2836 | { | 17 | { |
2837 | return register_pinmux(&sh7269_pinmux_info); | 18 | return sh_pfc_register("pfc-sh7269", NULL, 0); |
2838 | } | 19 | } |
2839 | arch_initcall(plat_pinmux_setup); | 20 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh3/pinmux-sh7720.c b/arch/sh/kernel/cpu/sh3/pinmux-sh7720.c index 9ca154627147..7d3744ac7b08 100644 --- a/arch/sh/kernel/cpu/sh3/pinmux-sh7720.c +++ b/arch/sh/kernel/cpu/sh3/pinmux-sh7720.c | |||
@@ -10,1233 +10,11 @@ | |||
10 | 10 | ||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/gpio.h> | 13 | #include <cpu/pfc.h> |
14 | #include <cpu/sh7720.h> | ||
15 | |||
16 | enum { | ||
17 | PINMUX_RESERVED = 0, | ||
18 | |||
19 | PINMUX_DATA_BEGIN, | ||
20 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
21 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
22 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
23 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
24 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
25 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
26 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
27 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
28 | PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
29 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
30 | PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
31 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
32 | PTG6_DATA, PTG5_DATA, PTG4_DATA, | ||
33 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
34 | PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
35 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
36 | PTJ6_DATA, PTJ5_DATA, PTJ4_DATA, | ||
37 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
38 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
39 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, PTL3_DATA, | ||
40 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
41 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
42 | PTP4_DATA, PTP3_DATA, PTP2_DATA, PTP1_DATA, PTP0_DATA, | ||
43 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
44 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
45 | PTS4_DATA, PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
46 | PTT4_DATA, PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
47 | PTU4_DATA, PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
48 | PTV4_DATA, PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
49 | PINMUX_DATA_END, | ||
50 | |||
51 | PINMUX_INPUT_BEGIN, | ||
52 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
53 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
54 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
55 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
56 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
57 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
58 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
59 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
60 | PTE6_IN, PTE5_IN, PTE4_IN, | ||
61 | PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
62 | PTF6_IN, PTF5_IN, PTF4_IN, | ||
63 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
64 | PTG6_IN, PTG5_IN, PTG4_IN, | ||
65 | PTG3_IN, PTG2_IN, PTG1_IN, PTG0_IN, | ||
66 | PTH6_IN, PTH5_IN, PTH4_IN, | ||
67 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
68 | PTJ6_IN, PTJ5_IN, PTJ4_IN, | ||
69 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
70 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
71 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, PTL3_IN, | ||
72 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
73 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
74 | PTP4_IN, PTP3_IN, PTP2_IN, PTP1_IN, PTP0_IN, | ||
75 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
76 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
77 | PTS4_IN, PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
78 | PTT4_IN, PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
79 | PTU4_IN, PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
80 | PTV4_IN, PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
81 | PINMUX_INPUT_END, | ||
82 | |||
83 | PINMUX_INPUT_PULLUP_BEGIN, | ||
84 | PTA7_IN_PU, PTA6_IN_PU, PTA5_IN_PU, PTA4_IN_PU, | ||
85 | PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
86 | PTB7_IN_PU, PTB6_IN_PU, PTB5_IN_PU, PTB4_IN_PU, | ||
87 | PTB3_IN_PU, PTB2_IN_PU, PTB1_IN_PU, PTB0_IN_PU, | ||
88 | PTC7_IN_PU, PTC6_IN_PU, PTC5_IN_PU, PTC4_IN_PU, | ||
89 | PTC3_IN_PU, PTC2_IN_PU, PTC1_IN_PU, PTC0_IN_PU, | ||
90 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
91 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, PTD0_IN_PU, | ||
92 | PTE4_IN_PU, PTE3_IN_PU, PTE2_IN_PU, PTE1_IN_PU, PTE0_IN_PU, | ||
93 | PTF0_IN_PU, | ||
94 | PTG6_IN_PU, PTG5_IN_PU, PTG4_IN_PU, | ||
95 | PTG3_IN_PU, PTG2_IN_PU, PTG1_IN_PU, PTG0_IN_PU, | ||
96 | PTH6_IN_PU, PTH5_IN_PU, PTH4_IN_PU, | ||
97 | PTH3_IN_PU, PTH2_IN_PU, PTH1_IN_PU, PTH0_IN_PU, | ||
98 | PTJ6_IN_PU, PTJ5_IN_PU, PTJ4_IN_PU, | ||
99 | PTJ3_IN_PU, PTJ2_IN_PU, PTJ1_IN_PU, PTJ0_IN_PU, | ||
100 | PTK3_IN_PU, PTK2_IN_PU, PTK1_IN_PU, PTK0_IN_PU, | ||
101 | PTL7_IN_PU, PTL6_IN_PU, PTL5_IN_PU, PTL4_IN_PU, PTL3_IN_PU, | ||
102 | PTM7_IN_PU, PTM6_IN_PU, PTM5_IN_PU, PTM4_IN_PU, | ||
103 | PTM3_IN_PU, PTM2_IN_PU, PTM1_IN_PU, PTM0_IN_PU, | ||
104 | PTP4_IN_PU, PTP3_IN_PU, PTP2_IN_PU, PTP1_IN_PU, PTP0_IN_PU, | ||
105 | PTR7_IN_PU, PTR6_IN_PU, PTR5_IN_PU, PTR4_IN_PU, | ||
106 | PTR3_IN_PU, PTR2_IN_PU, PTR1_IN_PU, PTR0_IN_PU, | ||
107 | PTS4_IN_PU, PTS3_IN_PU, PTS2_IN_PU, PTS1_IN_PU, PTS0_IN_PU, | ||
108 | PTT4_IN_PU, PTT3_IN_PU, PTT2_IN_PU, PTT1_IN_PU, PTT0_IN_PU, | ||
109 | PTU4_IN_PU, PTU3_IN_PU, PTU2_IN_PU, PTU1_IN_PU, PTU0_IN_PU, | ||
110 | PTV4_IN_PU, PTV3_IN_PU, PTV2_IN_PU, PTV1_IN_PU, PTV0_IN_PU, | ||
111 | PINMUX_INPUT_PULLUP_END, | ||
112 | |||
113 | PINMUX_OUTPUT_BEGIN, | ||
114 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
115 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
116 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
117 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
118 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
119 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
120 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
121 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
122 | PTE4_OUT, PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
123 | PTF0_OUT, | ||
124 | PTG6_OUT, PTG5_OUT, PTG4_OUT, | ||
125 | PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
126 | PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
127 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
128 | PTJ6_OUT, PTJ5_OUT, PTJ4_OUT, | ||
129 | PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
130 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
131 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, PTL3_OUT, | ||
132 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
133 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
134 | PTP4_OUT, PTP3_OUT, PTP2_OUT, PTP1_OUT, PTP0_OUT, | ||
135 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
136 | PTR3_OUT, PTR2_OUT, PTR1_OUT, PTR0_OUT, | ||
137 | PTS4_OUT, PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
138 | PTT4_OUT, PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
139 | PTU4_OUT, PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
140 | PTV4_OUT, PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
141 | PINMUX_OUTPUT_END, | ||
142 | |||
143 | PINMUX_FUNCTION_BEGIN, | ||
144 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
145 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
146 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
147 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
148 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
149 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
150 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
151 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
152 | PTE6_FN, PTE5_FN, PTE4_FN, | ||
153 | PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
154 | PTF6_FN, PTF5_FN, PTF4_FN, | ||
155 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
156 | PTG6_FN, PTG5_FN, PTG4_FN, | ||
157 | PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
158 | PTH6_FN, PTH5_FN, PTH4_FN, | ||
159 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
160 | PTJ6_FN, PTJ5_FN, PTJ4_FN, | ||
161 | PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
162 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
163 | PTL7_FN, PTL6_FN, PTL5_FN, PTL4_FN, PTL3_FN, | ||
164 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
165 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
166 | PTP4_FN, PTP3_FN, PTP2_FN, PTP1_FN, PTP0_FN, | ||
167 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
168 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
169 | PTS4_FN, PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
170 | PTT4_FN, PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
171 | PTU4_FN, PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
172 | PTV4_FN, PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
173 | |||
174 | PSELA_1_0_00, PSELA_1_0_01, PSELA_1_0_10, | ||
175 | PSELA_3_2_00, PSELA_3_2_01, PSELA_3_2_10, PSELA_3_2_11, | ||
176 | PSELA_5_4_00, PSELA_5_4_01, PSELA_5_4_10, PSELA_5_4_11, | ||
177 | PSELA_7_6_00, PSELA_7_6_01, PSELA_7_6_10, | ||
178 | PSELA_9_8_00, PSELA_9_8_01, PSELA_9_8_10, | ||
179 | PSELA_11_10_00, PSELA_11_10_01, PSELA_11_10_10, | ||
180 | PSELA_13_12_00, PSELA_13_12_10, | ||
181 | PSELA_15_14_00, PSELA_15_14_10, | ||
182 | PSELB_9_8_00, PSELB_9_8_11, | ||
183 | PSELB_11_10_00, PSELB_11_10_01, PSELB_11_10_10, PSELB_11_10_11, | ||
184 | PSELB_13_12_00, PSELB_13_12_01, PSELB_13_12_10, PSELB_13_12_11, | ||
185 | PSELB_15_14_00, PSELB_15_14_11, | ||
186 | PSELC_9_8_00, PSELC_9_8_10, | ||
187 | PSELC_11_10_00, PSELC_11_10_10, | ||
188 | PSELC_13_12_00, PSELC_13_12_01, PSELC_13_12_10, | ||
189 | PSELC_15_14_00, PSELC_15_14_01, PSELC_15_14_10, | ||
190 | PSELD_1_0_00, PSELD_1_0_10, | ||
191 | PSELD_11_10_00, PSELD_11_10_01, | ||
192 | PSELD_15_14_00, PSELD_15_14_01, PSELD_15_14_10, | ||
193 | PINMUX_FUNCTION_END, | ||
194 | |||
195 | PINMUX_MARK_BEGIN, | ||
196 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, | ||
197 | D27_MARK, D26_MARK, D25_MARK, D24_MARK, | ||
198 | D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
199 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
200 | IOIS16_MARK, RAS_MARK, CAS_MARK, CKE_MARK, | ||
201 | CS5B_CE1A_MARK, CS6B_CE1B_MARK, | ||
202 | A25_MARK, A24_MARK, A23_MARK, A22_MARK, | ||
203 | A21_MARK, A20_MARK, A19_MARK, A0_MARK, | ||
204 | REFOUT_MARK, IRQOUT_MARK, | ||
205 | LCD_DATA15_MARK, LCD_DATA14_MARK, | ||
206 | LCD_DATA13_MARK, LCD_DATA12_MARK, | ||
207 | LCD_DATA11_MARK, LCD_DATA10_MARK, | ||
208 | LCD_DATA9_MARK, LCD_DATA8_MARK, | ||
209 | LCD_DATA7_MARK, LCD_DATA6_MARK, | ||
210 | LCD_DATA5_MARK, LCD_DATA4_MARK, | ||
211 | LCD_DATA3_MARK, LCD_DATA2_MARK, | ||
212 | LCD_DATA1_MARK, LCD_DATA0_MARK, | ||
213 | LCD_M_DISP_MARK, | ||
214 | LCD_CL1_MARK, LCD_CL2_MARK, | ||
215 | LCD_DON_MARK, LCD_FLM_MARK, | ||
216 | LCD_VEPWC_MARK, LCD_VCPWC_MARK, | ||
217 | AFE_RXIN_MARK, AFE_RDET_MARK, | ||
218 | AFE_FS_MARK, AFE_TXOUT_MARK, | ||
219 | AFE_SCLK_MARK, AFE_RLYCNT_MARK, | ||
220 | AFE_HC1_MARK, | ||
221 | IIC_SCL_MARK, IIC_SDA_MARK, | ||
222 | DA1_MARK, DA0_MARK, | ||
223 | AN3_MARK, AN2_MARK, AN1_MARK, AN0_MARK, ADTRG_MARK, | ||
224 | USB1D_RCV_MARK, USB1D_TXSE0_MARK, | ||
225 | USB1D_TXDPLS_MARK, USB1D_DMNS_MARK, | ||
226 | USB1D_DPLS_MARK, USB1D_SPEED_MARK, | ||
227 | USB1D_TXENL_MARK, | ||
228 | USB2_PWR_EN_MARK, USB1_PWR_EN_USBF_UPLUP_MARK, USB1D_SUSPEND_MARK, | ||
229 | IRQ5_MARK, IRQ4_MARK, | ||
230 | IRQ3_IRL3_MARK, IRQ2_IRL2_MARK, | ||
231 | IRQ1_IRL1_MARK, IRQ0_IRL0_MARK, | ||
232 | PCC_REG_MARK, PCC_DRV_MARK, | ||
233 | PCC_BVD2_MARK, PCC_BVD1_MARK, | ||
234 | PCC_CD2_MARK, PCC_CD1_MARK, | ||
235 | PCC_RESET_MARK, PCC_RDY_MARK, | ||
236 | PCC_VS2_MARK, PCC_VS1_MARK, | ||
237 | AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK, | ||
238 | AUDCK_MARK, AUDSYNC_MARK, ASEBRKAK_MARK, TRST_MARK, | ||
239 | TMS_MARK, TDO_MARK, TDI_MARK, TCK_MARK, | ||
240 | DACK1_MARK, DREQ1_MARK, DACK0_MARK, DREQ0_MARK, | ||
241 | TEND1_MARK, TEND0_MARK, | ||
242 | SIOF0_SYNC_MARK, SIOF0_MCLK_MARK, | ||
243 | SIOF0_TXD_MARK, SIOF0_RXD_MARK, | ||
244 | SIOF0_SCK_MARK, | ||
245 | SIOF1_SYNC_MARK, SIOF1_MCLK_MARK, | ||
246 | SIOF1_TXD_MARK, SIOF1_RXD_MARK, | ||
247 | SIOF1_SCK_MARK, | ||
248 | SCIF0_TXD_MARK, SCIF0_RXD_MARK, | ||
249 | SCIF0_RTS_MARK, SCIF0_CTS_MARK, SCIF0_SCK_MARK, | ||
250 | SCIF1_TXD_MARK, SCIF1_RXD_MARK, | ||
251 | SCIF1_RTS_MARK, SCIF1_CTS_MARK, SCIF1_SCK_MARK, | ||
252 | TPU_TO1_MARK, TPU_TO0_MARK, | ||
253 | TPU_TI3B_MARK, TPU_TI3A_MARK, | ||
254 | TPU_TI2B_MARK, TPU_TI2A_MARK, | ||
255 | TPU_TO3_MARK, TPU_TO2_MARK, | ||
256 | SIM_D_MARK, SIM_CLK_MARK, SIM_RST_MARK, | ||
257 | MMC_DAT_MARK, MMC_CMD_MARK, | ||
258 | MMC_CLK_MARK, MMC_VDDON_MARK, | ||
259 | MMC_ODMOD_MARK, | ||
260 | STATUS0_MARK, STATUS1_MARK, | ||
261 | PINMUX_MARK_END, | ||
262 | }; | ||
263 | |||
264 | static pinmux_enum_t pinmux_data[] = { | ||
265 | /* PTA GPIO */ | ||
266 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT, PTA7_IN_PU), | ||
267 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT, PTA6_IN_PU), | ||
268 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT, PTA5_IN_PU), | ||
269 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT, PTA4_IN_PU), | ||
270 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT, PTA3_IN_PU), | ||
271 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT, PTA2_IN_PU), | ||
272 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT, PTA1_IN_PU), | ||
273 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT, PTA0_IN_PU), | ||
274 | |||
275 | /* PTB GPIO */ | ||
276 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT, PTB7_IN_PU), | ||
277 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT, PTB6_IN_PU), | ||
278 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT, PTB5_IN_PU), | ||
279 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT, PTB4_IN_PU), | ||
280 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT, PTB3_IN_PU), | ||
281 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT, PTB2_IN_PU), | ||
282 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT, PTB1_IN_PU), | ||
283 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT, PTB0_IN_PU), | ||
284 | |||
285 | /* PTC GPIO */ | ||
286 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT, PTC7_IN_PU), | ||
287 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT, PTC6_IN_PU), | ||
288 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT, PTC5_IN_PU), | ||
289 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT, PTC4_IN_PU), | ||
290 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT, PTC3_IN_PU), | ||
291 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT, PTC2_IN_PU), | ||
292 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT, PTC1_IN_PU), | ||
293 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT, PTC0_IN_PU), | ||
294 | |||
295 | /* PTD GPIO */ | ||
296 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT, PTD7_IN_PU), | ||
297 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT, PTD6_IN_PU), | ||
298 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT, PTD5_IN_PU), | ||
299 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT, PTD4_IN_PU), | ||
300 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT, PTD3_IN_PU), | ||
301 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT, PTD2_IN_PU), | ||
302 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT, PTD1_IN_PU), | ||
303 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT, PTD0_IN_PU), | ||
304 | |||
305 | /* PTE GPIO */ | ||
306 | PINMUX_DATA(PTE6_DATA, PTE6_IN), | ||
307 | PINMUX_DATA(PTE5_DATA, PTE5_IN), | ||
308 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT, PTE4_IN_PU), | ||
309 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT, PTE3_IN_PU), | ||
310 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT, PTE2_IN_PU), | ||
311 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT, PTE1_IN_PU), | ||
312 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT, PTE0_IN_PU), | ||
313 | |||
314 | /* PTF GPIO */ | ||
315 | PINMUX_DATA(PTF6_DATA, PTF6_IN), | ||
316 | PINMUX_DATA(PTF5_DATA, PTF5_IN), | ||
317 | PINMUX_DATA(PTF4_DATA, PTF4_IN), | ||
318 | PINMUX_DATA(PTF3_DATA, PTF3_IN), | ||
319 | PINMUX_DATA(PTF2_DATA, PTF2_IN), | ||
320 | PINMUX_DATA(PTF1_DATA, PTF1_IN), | ||
321 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT, PTF0_IN_PU), | ||
322 | |||
323 | /* PTG GPIO */ | ||
324 | PINMUX_DATA(PTG6_DATA, PTG6_IN, PTG6_OUT, PTG6_IN_PU), | ||
325 | PINMUX_DATA(PTG5_DATA, PTG5_IN, PTG5_OUT, PTG5_IN_PU), | ||
326 | PINMUX_DATA(PTG4_DATA, PTG4_IN, PTG4_OUT, PTG4_IN_PU), | ||
327 | PINMUX_DATA(PTG3_DATA, PTG3_IN, PTG3_OUT, PTG3_IN_PU), | ||
328 | PINMUX_DATA(PTG2_DATA, PTG2_IN, PTG2_OUT, PTG2_IN_PU), | ||
329 | PINMUX_DATA(PTG1_DATA, PTG1_IN, PTG1_OUT, PTG1_IN_PU), | ||
330 | PINMUX_DATA(PTG0_DATA, PTG0_IN, PTG0_OUT, PTG0_IN_PU), | ||
331 | |||
332 | /* PTH GPIO */ | ||
333 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT, PTH6_IN_PU), | ||
334 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT, PTH5_IN_PU), | ||
335 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT, PTH4_IN_PU), | ||
336 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT, PTH3_IN_PU), | ||
337 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT, PTH2_IN_PU), | ||
338 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT, PTH1_IN_PU), | ||
339 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT, PTH0_IN_PU), | ||
340 | |||
341 | /* PTJ GPIO */ | ||
342 | PINMUX_DATA(PTJ6_DATA, PTJ6_IN, PTJ6_OUT, PTJ6_IN_PU), | ||
343 | PINMUX_DATA(PTJ5_DATA, PTJ5_IN, PTJ5_OUT, PTJ5_IN_PU), | ||
344 | PINMUX_DATA(PTJ4_DATA, PTJ4_IN, PTJ4_OUT, PTJ4_IN_PU), | ||
345 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT, PTJ3_IN_PU), | ||
346 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT, PTJ2_IN_PU), | ||
347 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT, PTJ1_IN_PU), | ||
348 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT, PTJ0_IN_PU), | ||
349 | |||
350 | /* PTK GPIO */ | ||
351 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT, PTK3_IN_PU), | ||
352 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT, PTK2_IN_PU), | ||
353 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT, PTK1_IN_PU), | ||
354 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT, PTK0_IN_PU), | ||
355 | |||
356 | /* PTL GPIO */ | ||
357 | PINMUX_DATA(PTL7_DATA, PTL7_IN, PTL7_OUT, PTL7_IN_PU), | ||
358 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT, PTL6_IN_PU), | ||
359 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT, PTL5_IN_PU), | ||
360 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT, PTL4_IN_PU), | ||
361 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT, PTL3_IN_PU), | ||
362 | |||
363 | /* PTM GPIO */ | ||
364 | PINMUX_DATA(PTM7_DATA, PTM7_IN, PTM7_OUT, PTM7_IN_PU), | ||
365 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT, PTM6_IN_PU), | ||
366 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT, PTM5_IN_PU), | ||
367 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT, PTM4_IN_PU), | ||
368 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT, PTM3_IN_PU), | ||
369 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT, PTM2_IN_PU), | ||
370 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT, PTM1_IN_PU), | ||
371 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT, PTM0_IN_PU), | ||
372 | |||
373 | /* PTP GPIO */ | ||
374 | PINMUX_DATA(PTP4_DATA, PTP4_IN, PTP4_OUT, PTP4_IN_PU), | ||
375 | PINMUX_DATA(PTP3_DATA, PTP3_IN, PTP3_OUT, PTP3_IN_PU), | ||
376 | PINMUX_DATA(PTP2_DATA, PTP2_IN, PTP2_OUT, PTP2_IN_PU), | ||
377 | PINMUX_DATA(PTP1_DATA, PTP1_IN, PTP1_OUT, PTP1_IN_PU), | ||
378 | PINMUX_DATA(PTP0_DATA, PTP0_IN, PTP0_OUT, PTP0_IN_PU), | ||
379 | |||
380 | /* PTR GPIO */ | ||
381 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT, PTR7_IN_PU), | ||
382 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT, PTR6_IN_PU), | ||
383 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT, PTR5_IN_PU), | ||
384 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT, PTR4_IN_PU), | ||
385 | PINMUX_DATA(PTR3_DATA, PTR3_IN, PTR3_OUT, PTR3_IN_PU), | ||
386 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_OUT, PTR2_IN_PU), | ||
387 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT, PTR1_IN_PU), | ||
388 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT, PTR0_IN_PU), | ||
389 | |||
390 | /* PTS GPIO */ | ||
391 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT, PTS4_IN_PU), | ||
392 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT, PTS3_IN_PU), | ||
393 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT, PTS2_IN_PU), | ||
394 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT, PTS1_IN_PU), | ||
395 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT, PTS0_IN_PU), | ||
396 | |||
397 | /* PTT GPIO */ | ||
398 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT, PTT4_IN_PU), | ||
399 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT, PTT3_IN_PU), | ||
400 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT, PTT2_IN_PU), | ||
401 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT, PTT1_IN_PU), | ||
402 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT, PTT0_IN_PU), | ||
403 | |||
404 | /* PTU GPIO */ | ||
405 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT, PTU4_IN_PU), | ||
406 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT, PTU3_IN_PU), | ||
407 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT, PTU2_IN_PU), | ||
408 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT, PTU1_IN_PU), | ||
409 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT, PTU0_IN_PU), | ||
410 | |||
411 | /* PTV GPIO */ | ||
412 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT, PTV4_IN_PU), | ||
413 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT, PTV3_IN_PU), | ||
414 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT, PTV2_IN_PU), | ||
415 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT, PTV1_IN_PU), | ||
416 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT, PTV0_IN_PU), | ||
417 | |||
418 | /* PTA FN */ | ||
419 | PINMUX_DATA(D23_MARK, PTA7_FN), | ||
420 | PINMUX_DATA(D22_MARK, PTA6_FN), | ||
421 | PINMUX_DATA(D21_MARK, PTA5_FN), | ||
422 | PINMUX_DATA(D20_MARK, PTA4_FN), | ||
423 | PINMUX_DATA(D19_MARK, PTA3_FN), | ||
424 | PINMUX_DATA(D18_MARK, PTA2_FN), | ||
425 | PINMUX_DATA(D17_MARK, PTA1_FN), | ||
426 | PINMUX_DATA(D16_MARK, PTA0_FN), | ||
427 | |||
428 | /* PTB FN */ | ||
429 | PINMUX_DATA(D31_MARK, PTB7_FN), | ||
430 | PINMUX_DATA(D30_MARK, PTB6_FN), | ||
431 | PINMUX_DATA(D29_MARK, PTB5_FN), | ||
432 | PINMUX_DATA(D28_MARK, PTB4_FN), | ||
433 | PINMUX_DATA(D27_MARK, PTB3_FN), | ||
434 | PINMUX_DATA(D26_MARK, PTB2_FN), | ||
435 | PINMUX_DATA(D25_MARK, PTB1_FN), | ||
436 | PINMUX_DATA(D24_MARK, PTB0_FN), | ||
437 | |||
438 | /* PTC FN */ | ||
439 | PINMUX_DATA(LCD_DATA7_MARK, PTC7_FN), | ||
440 | PINMUX_DATA(LCD_DATA6_MARK, PTC6_FN), | ||
441 | PINMUX_DATA(LCD_DATA5_MARK, PTC5_FN), | ||
442 | PINMUX_DATA(LCD_DATA4_MARK, PTC4_FN), | ||
443 | PINMUX_DATA(LCD_DATA3_MARK, PTC3_FN), | ||
444 | PINMUX_DATA(LCD_DATA2_MARK, PTC2_FN), | ||
445 | PINMUX_DATA(LCD_DATA1_MARK, PTC1_FN), | ||
446 | PINMUX_DATA(LCD_DATA0_MARK, PTC0_FN), | ||
447 | |||
448 | /* PTD FN */ | ||
449 | PINMUX_DATA(LCD_DATA15_MARK, PTD7_FN), | ||
450 | PINMUX_DATA(LCD_DATA14_MARK, PTD6_FN), | ||
451 | PINMUX_DATA(LCD_DATA13_MARK, PTD5_FN), | ||
452 | PINMUX_DATA(LCD_DATA12_MARK, PTD4_FN), | ||
453 | PINMUX_DATA(LCD_DATA11_MARK, PTD3_FN), | ||
454 | PINMUX_DATA(LCD_DATA10_MARK, PTD2_FN), | ||
455 | PINMUX_DATA(LCD_DATA9_MARK, PTD1_FN), | ||
456 | PINMUX_DATA(LCD_DATA8_MARK, PTD0_FN), | ||
457 | |||
458 | /* PTE FN */ | ||
459 | PINMUX_DATA(IIC_SCL_MARK, PSELB_9_8_00, PTE6_FN), | ||
460 | PINMUX_DATA(AFE_RXIN_MARK, PSELB_9_8_11, PTE6_FN), | ||
461 | PINMUX_DATA(IIC_SDA_MARK, PSELB_9_8_00, PTE5_FN), | ||
462 | PINMUX_DATA(AFE_RDET_MARK, PSELB_9_8_11, PTE5_FN), | ||
463 | PINMUX_DATA(LCD_M_DISP_MARK, PTE4_FN), | ||
464 | PINMUX_DATA(LCD_CL1_MARK, PTE3_FN), | ||
465 | PINMUX_DATA(LCD_CL2_MARK, PTE2_FN), | ||
466 | PINMUX_DATA(LCD_DON_MARK, PTE1_FN), | ||
467 | PINMUX_DATA(LCD_FLM_MARK, PTE0_FN), | ||
468 | |||
469 | /* PTF FN */ | ||
470 | PINMUX_DATA(DA1_MARK, PTF6_FN), | ||
471 | PINMUX_DATA(DA0_MARK, PTF5_FN), | ||
472 | PINMUX_DATA(AN3_MARK, PTF4_FN), | ||
473 | PINMUX_DATA(AN2_MARK, PTF3_FN), | ||
474 | PINMUX_DATA(AN1_MARK, PTF2_FN), | ||
475 | PINMUX_DATA(AN0_MARK, PTF1_FN), | ||
476 | PINMUX_DATA(ADTRG_MARK, PTF0_FN), | ||
477 | |||
478 | /* PTG FN */ | ||
479 | PINMUX_DATA(USB1D_RCV_MARK, PSELA_3_2_00, PTG6_FN), | ||
480 | PINMUX_DATA(AFE_FS_MARK, PSELA_3_2_01, PTG6_FN), | ||
481 | PINMUX_DATA(PCC_REG_MARK, PSELA_3_2_10, PTG6_FN), | ||
482 | PINMUX_DATA(IRQ5_MARK, PSELA_3_2_11, PTG6_FN), | ||
483 | PINMUX_DATA(USB1D_TXSE0_MARK, PSELA_5_4_00, PTG5_FN), | ||
484 | PINMUX_DATA(AFE_TXOUT_MARK, PSELA_5_4_01, PTG5_FN), | ||
485 | PINMUX_DATA(PCC_DRV_MARK, PSELA_5_4_10, PTG5_FN), | ||
486 | PINMUX_DATA(IRQ4_MARK, PSELA_5_4_11, PTG5_FN), | ||
487 | PINMUX_DATA(USB1D_TXDPLS_MARK, PSELA_7_6_00, PTG4_FN), | ||
488 | PINMUX_DATA(AFE_SCLK_MARK, PSELA_7_6_01, PTG4_FN), | ||
489 | PINMUX_DATA(IOIS16_MARK, PSELA_7_6_10, PTG4_FN), | ||
490 | PINMUX_DATA(USB1D_DMNS_MARK, PSELA_9_8_00, PTG3_FN), | ||
491 | PINMUX_DATA(AFE_RLYCNT_MARK, PSELA_9_8_01, PTG3_FN), | ||
492 | PINMUX_DATA(PCC_BVD2_MARK, PSELA_9_8_10, PTG3_FN), | ||
493 | PINMUX_DATA(USB1D_DPLS_MARK, PSELA_11_10_00, PTG2_FN), | ||
494 | PINMUX_DATA(AFE_HC1_MARK, PSELA_11_10_01, PTG2_FN), | ||
495 | PINMUX_DATA(PCC_BVD1_MARK, PSELA_11_10_10, PTG2_FN), | ||
496 | PINMUX_DATA(USB1D_SPEED_MARK, PSELA_13_12_00, PTG1_FN), | ||
497 | PINMUX_DATA(PCC_CD2_MARK, PSELA_13_12_10, PTG1_FN), | ||
498 | PINMUX_DATA(USB1D_TXENL_MARK, PSELA_15_14_00, PTG0_FN), | ||
499 | PINMUX_DATA(PCC_CD1_MARK, PSELA_15_14_10, PTG0_FN), | ||
500 | |||
501 | /* PTH FN */ | ||
502 | PINMUX_DATA(RAS_MARK, PTH6_FN), | ||
503 | PINMUX_DATA(CAS_MARK, PTH5_FN), | ||
504 | PINMUX_DATA(CKE_MARK, PTH4_FN), | ||
505 | PINMUX_DATA(STATUS1_MARK, PTH3_FN), | ||
506 | PINMUX_DATA(STATUS0_MARK, PTH2_FN), | ||
507 | PINMUX_DATA(USB2_PWR_EN_MARK, PTH1_FN), | ||
508 | PINMUX_DATA(USB1_PWR_EN_USBF_UPLUP_MARK, PTH0_FN), | ||
509 | |||
510 | /* PTJ FN */ | ||
511 | PINMUX_DATA(AUDCK_MARK, PTJ6_FN), | ||
512 | PINMUX_DATA(ASEBRKAK_MARK, PTJ5_FN), | ||
513 | PINMUX_DATA(AUDATA3_MARK, PTJ4_FN), | ||
514 | PINMUX_DATA(AUDATA2_MARK, PTJ3_FN), | ||
515 | PINMUX_DATA(AUDATA1_MARK, PTJ2_FN), | ||
516 | PINMUX_DATA(AUDATA0_MARK, PTJ1_FN), | ||
517 | PINMUX_DATA(AUDSYNC_MARK, PTJ0_FN), | ||
518 | |||
519 | /* PTK FN */ | ||
520 | PINMUX_DATA(PCC_RESET_MARK, PTK3_FN), | ||
521 | PINMUX_DATA(PCC_RDY_MARK, PTK2_FN), | ||
522 | PINMUX_DATA(PCC_VS2_MARK, PTK1_FN), | ||
523 | PINMUX_DATA(PCC_VS1_MARK, PTK0_FN), | ||
524 | |||
525 | /* PTL FN */ | ||
526 | PINMUX_DATA(TRST_MARK, PTL7_FN), | ||
527 | PINMUX_DATA(TMS_MARK, PTL6_FN), | ||
528 | PINMUX_DATA(TDO_MARK, PTL5_FN), | ||
529 | PINMUX_DATA(TDI_MARK, PTL4_FN), | ||
530 | PINMUX_DATA(TCK_MARK, PTL3_FN), | ||
531 | |||
532 | /* PTM FN */ | ||
533 | PINMUX_DATA(DREQ1_MARK, PTM7_FN), | ||
534 | PINMUX_DATA(DREQ0_MARK, PTM6_FN), | ||
535 | PINMUX_DATA(DACK1_MARK, PTM5_FN), | ||
536 | PINMUX_DATA(DACK0_MARK, PTM4_FN), | ||
537 | PINMUX_DATA(TEND1_MARK, PTM3_FN), | ||
538 | PINMUX_DATA(TEND0_MARK, PTM2_FN), | ||
539 | PINMUX_DATA(CS5B_CE1A_MARK, PTM1_FN), | ||
540 | PINMUX_DATA(CS6B_CE1B_MARK, PTM0_FN), | ||
541 | |||
542 | /* PTP FN */ | ||
543 | PINMUX_DATA(USB1D_SUSPEND_MARK, PSELA_1_0_00, PTP4_FN), | ||
544 | PINMUX_DATA(REFOUT_MARK, PSELA_1_0_01, PTP4_FN), | ||
545 | PINMUX_DATA(IRQOUT_MARK, PSELA_1_0_10, PTP4_FN), | ||
546 | PINMUX_DATA(IRQ3_IRL3_MARK, PTP3_FN), | ||
547 | PINMUX_DATA(IRQ2_IRL2_MARK, PTP2_FN), | ||
548 | PINMUX_DATA(IRQ1_IRL1_MARK, PTP1_FN), | ||
549 | PINMUX_DATA(IRQ0_IRL0_MARK, PTP0_FN), | ||
550 | |||
551 | /* PTR FN */ | ||
552 | PINMUX_DATA(A25_MARK, PTR7_FN), | ||
553 | PINMUX_DATA(A24_MARK, PTR6_FN), | ||
554 | PINMUX_DATA(A23_MARK, PTR5_FN), | ||
555 | PINMUX_DATA(A22_MARK, PTR4_FN), | ||
556 | PINMUX_DATA(A21_MARK, PTR3_FN), | ||
557 | PINMUX_DATA(A20_MARK, PTR2_FN), | ||
558 | PINMUX_DATA(A19_MARK, PTR1_FN), | ||
559 | PINMUX_DATA(A0_MARK, PTR0_FN), | ||
560 | |||
561 | /* PTS FN */ | ||
562 | PINMUX_DATA(SIOF0_SYNC_MARK, PTS4_FN), | ||
563 | PINMUX_DATA(SIOF0_MCLK_MARK, PTS3_FN), | ||
564 | PINMUX_DATA(SIOF0_TXD_MARK, PTS2_FN), | ||
565 | PINMUX_DATA(SIOF0_RXD_MARK, PTS1_FN), | ||
566 | PINMUX_DATA(SIOF0_SCK_MARK, PTS0_FN), | ||
567 | |||
568 | /* PTT FN */ | ||
569 | PINMUX_DATA(SCIF0_CTS_MARK, PSELB_15_14_00, PTT4_FN), | ||
570 | PINMUX_DATA(TPU_TO1_MARK, PSELB_15_14_11, PTT4_FN), | ||
571 | PINMUX_DATA(SCIF0_RTS_MARK, PSELB_15_14_00, PTT3_FN), | ||
572 | PINMUX_DATA(TPU_TO0_MARK, PSELB_15_14_11, PTT3_FN), | ||
573 | PINMUX_DATA(SCIF0_TXD_MARK, PTT2_FN), | ||
574 | PINMUX_DATA(SCIF0_RXD_MARK, PTT1_FN), | ||
575 | PINMUX_DATA(SCIF0_SCK_MARK, PTT0_FN), | ||
576 | |||
577 | /* PTU FN */ | ||
578 | PINMUX_DATA(SIOF1_SYNC_MARK, PTU4_FN), | ||
579 | PINMUX_DATA(SIOF1_MCLK_MARK, PSELD_11_10_00, PTU3_FN), | ||
580 | PINMUX_DATA(TPU_TI3B_MARK, PSELD_11_10_01, PTU3_FN), | ||
581 | PINMUX_DATA(SIOF1_TXD_MARK, PSELD_15_14_00, PTU2_FN), | ||
582 | PINMUX_DATA(TPU_TI3A_MARK, PSELD_15_14_01, PTU2_FN), | ||
583 | PINMUX_DATA(MMC_DAT_MARK, PSELD_15_14_10, PTU2_FN), | ||
584 | PINMUX_DATA(SIOF1_RXD_MARK, PSELC_13_12_00, PTU1_FN), | ||
585 | PINMUX_DATA(TPU_TI2B_MARK, PSELC_13_12_01, PTU1_FN), | ||
586 | PINMUX_DATA(MMC_CMD_MARK, PSELC_13_12_10, PTU1_FN), | ||
587 | PINMUX_DATA(SIOF1_SCK_MARK, PSELC_15_14_00, PTU0_FN), | ||
588 | PINMUX_DATA(TPU_TI2A_MARK, PSELC_15_14_01, PTU0_FN), | ||
589 | PINMUX_DATA(MMC_CLK_MARK, PSELC_15_14_10, PTU0_FN), | ||
590 | |||
591 | /* PTV FN */ | ||
592 | PINMUX_DATA(SCIF1_CTS_MARK, PSELB_11_10_00, PTV4_FN), | ||
593 | PINMUX_DATA(TPU_TO3_MARK, PSELB_11_10_01, PTV4_FN), | ||
594 | PINMUX_DATA(MMC_VDDON_MARK, PSELB_11_10_10, PTV4_FN), | ||
595 | PINMUX_DATA(LCD_VEPWC_MARK, PSELB_11_10_11, PTV4_FN), | ||
596 | PINMUX_DATA(SCIF1_RTS_MARK, PSELB_13_12_00, PTV3_FN), | ||
597 | PINMUX_DATA(TPU_TO2_MARK, PSELB_13_12_01, PTV3_FN), | ||
598 | PINMUX_DATA(MMC_ODMOD_MARK, PSELB_13_12_10, PTV3_FN), | ||
599 | PINMUX_DATA(LCD_VCPWC_MARK, PSELB_13_12_11, PTV3_FN), | ||
600 | PINMUX_DATA(SCIF1_TXD_MARK, PSELC_9_8_00, PTV2_FN), | ||
601 | PINMUX_DATA(SIM_D_MARK, PSELC_9_8_10, PTV2_FN), | ||
602 | PINMUX_DATA(SCIF1_RXD_MARK, PSELC_11_10_00, PTV1_FN), | ||
603 | PINMUX_DATA(SIM_RST_MARK, PSELC_11_10_10, PTV1_FN), | ||
604 | PINMUX_DATA(SCIF1_SCK_MARK, PSELD_1_0_00, PTV0_FN), | ||
605 | PINMUX_DATA(SIM_CLK_MARK, PSELD_1_0_10, PTV0_FN), | ||
606 | }; | ||
607 | |||
608 | static struct pinmux_gpio pinmux_gpios[] = { | ||
609 | /* PTA */ | ||
610 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
611 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
612 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
613 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
614 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
615 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
616 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
617 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
618 | |||
619 | /* PTB */ | ||
620 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
621 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
622 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
623 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
624 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
625 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
626 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
627 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
628 | |||
629 | /* PTC */ | ||
630 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
631 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
632 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
633 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
634 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
635 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
636 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
637 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
638 | |||
639 | /* PTD */ | ||
640 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
641 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
642 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
643 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
644 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
645 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
646 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
647 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
648 | |||
649 | /* PTE */ | ||
650 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
651 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
652 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
653 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
654 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
655 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
656 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
657 | |||
658 | /* PTF */ | ||
659 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
660 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
661 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
662 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
663 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
664 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
665 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
666 | |||
667 | /* PTG */ | ||
668 | PINMUX_GPIO(GPIO_PTG6, PTG6_DATA), | ||
669 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
670 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
671 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
672 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
673 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
674 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
675 | |||
676 | /* PTH */ | ||
677 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
678 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
679 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
680 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
681 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
682 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
683 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
684 | |||
685 | /* PTJ */ | ||
686 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
687 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
688 | PINMUX_GPIO(GPIO_PTJ4, PTJ4_DATA), | ||
689 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
690 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
691 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
692 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
693 | |||
694 | /* PTK */ | ||
695 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
696 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
697 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
698 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
699 | |||
700 | /* PTL */ | ||
701 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
702 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
703 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
704 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
705 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
706 | |||
707 | /* PTM */ | ||
708 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
709 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
710 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
711 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
712 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
713 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
714 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
715 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
716 | |||
717 | /* PTP */ | ||
718 | PINMUX_GPIO(GPIO_PTP4, PTP4_DATA), | ||
719 | PINMUX_GPIO(GPIO_PTP3, PTP3_DATA), | ||
720 | PINMUX_GPIO(GPIO_PTP2, PTP2_DATA), | ||
721 | PINMUX_GPIO(GPIO_PTP1, PTP1_DATA), | ||
722 | PINMUX_GPIO(GPIO_PTP0, PTP0_DATA), | ||
723 | |||
724 | /* PTR */ | ||
725 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
726 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
727 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
728 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
729 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
730 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
731 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
732 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
733 | |||
734 | /* PTS */ | ||
735 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
736 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
737 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
738 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
739 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
740 | |||
741 | /* PTT */ | ||
742 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
743 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
744 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
745 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
746 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
747 | |||
748 | /* PTU */ | ||
749 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
750 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
751 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
752 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
753 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
754 | |||
755 | /* PTV */ | ||
756 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
757 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
758 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
759 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
760 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
761 | |||
762 | /* BSC */ | ||
763 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
764 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
765 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
766 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
767 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
768 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
769 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
770 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
771 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
772 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
773 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
774 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
775 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
776 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
777 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
778 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
779 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
780 | PINMUX_GPIO(GPIO_FN_RAS, RAS_MARK), | ||
781 | PINMUX_GPIO(GPIO_FN_CAS, CAS_MARK), | ||
782 | PINMUX_GPIO(GPIO_FN_CKE, CKE_MARK), | ||
783 | PINMUX_GPIO(GPIO_FN_CS5B_CE1A, CS5B_CE1A_MARK), | ||
784 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
785 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
786 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
787 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
788 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
789 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
790 | PINMUX_GPIO(GPIO_FN_A20, A20_MARK), | ||
791 | PINMUX_GPIO(GPIO_FN_A19, A19_MARK), | ||
792 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
793 | PINMUX_GPIO(GPIO_FN_REFOUT, REFOUT_MARK), | ||
794 | PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), | ||
795 | |||
796 | /* LCDC */ | ||
797 | PINMUX_GPIO(GPIO_FN_LCD_DATA15, LCD_DATA15_MARK), | ||
798 | PINMUX_GPIO(GPIO_FN_LCD_DATA14, LCD_DATA14_MARK), | ||
799 | PINMUX_GPIO(GPIO_FN_LCD_DATA13, LCD_DATA13_MARK), | ||
800 | PINMUX_GPIO(GPIO_FN_LCD_DATA12, LCD_DATA12_MARK), | ||
801 | PINMUX_GPIO(GPIO_FN_LCD_DATA11, LCD_DATA11_MARK), | ||
802 | PINMUX_GPIO(GPIO_FN_LCD_DATA10, LCD_DATA10_MARK), | ||
803 | PINMUX_GPIO(GPIO_FN_LCD_DATA9, LCD_DATA9_MARK), | ||
804 | PINMUX_GPIO(GPIO_FN_LCD_DATA8, LCD_DATA8_MARK), | ||
805 | PINMUX_GPIO(GPIO_FN_LCD_DATA7, LCD_DATA7_MARK), | ||
806 | PINMUX_GPIO(GPIO_FN_LCD_DATA6, LCD_DATA6_MARK), | ||
807 | PINMUX_GPIO(GPIO_FN_LCD_DATA5, LCD_DATA5_MARK), | ||
808 | PINMUX_GPIO(GPIO_FN_LCD_DATA4, LCD_DATA4_MARK), | ||
809 | PINMUX_GPIO(GPIO_FN_LCD_DATA3, LCD_DATA3_MARK), | ||
810 | PINMUX_GPIO(GPIO_FN_LCD_DATA2, LCD_DATA2_MARK), | ||
811 | PINMUX_GPIO(GPIO_FN_LCD_DATA1, LCD_DATA1_MARK), | ||
812 | PINMUX_GPIO(GPIO_FN_LCD_DATA0, LCD_DATA0_MARK), | ||
813 | PINMUX_GPIO(GPIO_FN_LCD_M_DISP, LCD_M_DISP_MARK), | ||
814 | PINMUX_GPIO(GPIO_FN_LCD_CL1, LCD_CL1_MARK), | ||
815 | PINMUX_GPIO(GPIO_FN_LCD_CL2, LCD_CL2_MARK), | ||
816 | PINMUX_GPIO(GPIO_FN_LCD_DON, LCD_DON_MARK), | ||
817 | PINMUX_GPIO(GPIO_FN_LCD_FLM, LCD_FLM_MARK), | ||
818 | PINMUX_GPIO(GPIO_FN_LCD_VEPWC, LCD_VEPWC_MARK), | ||
819 | PINMUX_GPIO(GPIO_FN_LCD_VCPWC, LCD_VCPWC_MARK), | ||
820 | |||
821 | /* AFEIF */ | ||
822 | PINMUX_GPIO(GPIO_FN_AFE_RXIN, AFE_RXIN_MARK), | ||
823 | PINMUX_GPIO(GPIO_FN_AFE_RDET, AFE_RDET_MARK), | ||
824 | PINMUX_GPIO(GPIO_FN_AFE_FS, AFE_FS_MARK), | ||
825 | PINMUX_GPIO(GPIO_FN_AFE_TXOUT, AFE_TXOUT_MARK), | ||
826 | PINMUX_GPIO(GPIO_FN_AFE_SCLK, AFE_SCLK_MARK), | ||
827 | PINMUX_GPIO(GPIO_FN_AFE_RLYCNT, AFE_RLYCNT_MARK), | ||
828 | PINMUX_GPIO(GPIO_FN_AFE_HC1, AFE_HC1_MARK), | ||
829 | |||
830 | /* IIC */ | ||
831 | PINMUX_GPIO(GPIO_FN_IIC_SCL, IIC_SCL_MARK), | ||
832 | PINMUX_GPIO(GPIO_FN_IIC_SDA, IIC_SDA_MARK), | ||
833 | |||
834 | /* DAC */ | ||
835 | PINMUX_GPIO(GPIO_FN_DA1, DA1_MARK), | ||
836 | PINMUX_GPIO(GPIO_FN_DA0, DA0_MARK), | ||
837 | |||
838 | /* ADC */ | ||
839 | PINMUX_GPIO(GPIO_FN_AN3, AN3_MARK), | ||
840 | PINMUX_GPIO(GPIO_FN_AN2, AN2_MARK), | ||
841 | PINMUX_GPIO(GPIO_FN_AN1, AN1_MARK), | ||
842 | PINMUX_GPIO(GPIO_FN_AN0, AN0_MARK), | ||
843 | PINMUX_GPIO(GPIO_FN_ADTRG, ADTRG_MARK), | ||
844 | |||
845 | /* USB */ | ||
846 | PINMUX_GPIO(GPIO_FN_USB1D_RCV, USB1D_RCV_MARK), | ||
847 | PINMUX_GPIO(GPIO_FN_USB1D_TXSE0, USB1D_TXSE0_MARK), | ||
848 | PINMUX_GPIO(GPIO_FN_USB1D_TXDPLS, USB1D_TXDPLS_MARK), | ||
849 | PINMUX_GPIO(GPIO_FN_USB1D_DMNS, USB1D_DMNS_MARK), | ||
850 | PINMUX_GPIO(GPIO_FN_USB1D_DPLS, USB1D_DPLS_MARK), | ||
851 | PINMUX_GPIO(GPIO_FN_USB1D_SPEED, USB1D_SPEED_MARK), | ||
852 | PINMUX_GPIO(GPIO_FN_USB1D_TXENL, USB1D_TXENL_MARK), | ||
853 | |||
854 | PINMUX_GPIO(GPIO_FN_USB2_PWR_EN, USB2_PWR_EN_MARK), | ||
855 | PINMUX_GPIO(GPIO_FN_USB1_PWR_EN_USBF_UPLUP, | ||
856 | USB1_PWR_EN_USBF_UPLUP_MARK), | ||
857 | PINMUX_GPIO(GPIO_FN_USB1D_SUSPEND, USB1D_SUSPEND_MARK), | ||
858 | |||
859 | /* INTC */ | ||
860 | PINMUX_GPIO(GPIO_FN_IRQ5, IRQ5_MARK), | ||
861 | PINMUX_GPIO(GPIO_FN_IRQ4, IRQ4_MARK), | ||
862 | PINMUX_GPIO(GPIO_FN_IRQ3_IRL3, IRQ3_IRL3_MARK), | ||
863 | PINMUX_GPIO(GPIO_FN_IRQ2_IRL2, IRQ2_IRL2_MARK), | ||
864 | PINMUX_GPIO(GPIO_FN_IRQ1_IRL1, IRQ1_IRL1_MARK), | ||
865 | PINMUX_GPIO(GPIO_FN_IRQ0_IRL0, IRQ0_IRL0_MARK), | ||
866 | |||
867 | /* PCC */ | ||
868 | PINMUX_GPIO(GPIO_FN_PCC_REG, PCC_REG_MARK), | ||
869 | PINMUX_GPIO(GPIO_FN_PCC_DRV, PCC_DRV_MARK), | ||
870 | PINMUX_GPIO(GPIO_FN_PCC_BVD2, PCC_BVD2_MARK), | ||
871 | PINMUX_GPIO(GPIO_FN_PCC_BVD1, PCC_BVD1_MARK), | ||
872 | PINMUX_GPIO(GPIO_FN_PCC_CD2, PCC_CD2_MARK), | ||
873 | PINMUX_GPIO(GPIO_FN_PCC_CD1, PCC_CD1_MARK), | ||
874 | PINMUX_GPIO(GPIO_FN_PCC_RESET, PCC_RESET_MARK), | ||
875 | PINMUX_GPIO(GPIO_FN_PCC_RDY, PCC_RDY_MARK), | ||
876 | PINMUX_GPIO(GPIO_FN_PCC_VS2, PCC_VS2_MARK), | ||
877 | PINMUX_GPIO(GPIO_FN_PCC_VS1, PCC_VS1_MARK), | ||
878 | |||
879 | /* HUDI */ | ||
880 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
881 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
882 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
883 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
884 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
885 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
886 | PINMUX_GPIO(GPIO_FN_ASEBRKAK, ASEBRKAK_MARK), | ||
887 | PINMUX_GPIO(GPIO_FN_TRST, TRST_MARK), | ||
888 | PINMUX_GPIO(GPIO_FN_TMS, TMS_MARK), | ||
889 | PINMUX_GPIO(GPIO_FN_TDO, TDO_MARK), | ||
890 | PINMUX_GPIO(GPIO_FN_TDI, TDI_MARK), | ||
891 | PINMUX_GPIO(GPIO_FN_TCK, TCK_MARK), | ||
892 | |||
893 | /* DMAC */ | ||
894 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
895 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
896 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
897 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
898 | PINMUX_GPIO(GPIO_FN_TEND1, TEND1_MARK), | ||
899 | PINMUX_GPIO(GPIO_FN_TEND0, TEND0_MARK), | ||
900 | |||
901 | /* SIOF0 */ | ||
902 | PINMUX_GPIO(GPIO_FN_SIOF0_SYNC, SIOF0_SYNC_MARK), | ||
903 | PINMUX_GPIO(GPIO_FN_SIOF0_MCLK, SIOF0_MCLK_MARK), | ||
904 | PINMUX_GPIO(GPIO_FN_SIOF0_TXD, SIOF0_TXD_MARK), | ||
905 | PINMUX_GPIO(GPIO_FN_SIOF0_RXD, SIOF0_RXD_MARK), | ||
906 | PINMUX_GPIO(GPIO_FN_SIOF0_SCK, SIOF0_SCK_MARK), | ||
907 | |||
908 | /* SIOF1 */ | ||
909 | PINMUX_GPIO(GPIO_FN_SIOF1_SYNC, SIOF1_SYNC_MARK), | ||
910 | PINMUX_GPIO(GPIO_FN_SIOF1_MCLK, SIOF1_MCLK_MARK), | ||
911 | PINMUX_GPIO(GPIO_FN_SIOF1_TXD, SIOF1_TXD_MARK), | ||
912 | PINMUX_GPIO(GPIO_FN_SIOF1_RXD, SIOF1_RXD_MARK), | ||
913 | PINMUX_GPIO(GPIO_FN_SIOF1_SCK, SIOF1_SCK_MARK), | ||
914 | |||
915 | /* SCIF0 */ | ||
916 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
917 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
918 | PINMUX_GPIO(GPIO_FN_SCIF0_RTS, SCIF0_RTS_MARK), | ||
919 | PINMUX_GPIO(GPIO_FN_SCIF0_CTS, SCIF0_CTS_MARK), | ||
920 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
921 | |||
922 | /* SCIF1 */ | ||
923 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
924 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
925 | PINMUX_GPIO(GPIO_FN_SCIF1_RTS, SCIF1_RTS_MARK), | ||
926 | PINMUX_GPIO(GPIO_FN_SCIF1_CTS, SCIF1_CTS_MARK), | ||
927 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
928 | |||
929 | /* TPU */ | ||
930 | PINMUX_GPIO(GPIO_FN_TPU_TO1, TPU_TO1_MARK), | ||
931 | PINMUX_GPIO(GPIO_FN_TPU_TO0, TPU_TO0_MARK), | ||
932 | PINMUX_GPIO(GPIO_FN_TPU_TI3B, TPU_TI3B_MARK), | ||
933 | PINMUX_GPIO(GPIO_FN_TPU_TI3A, TPU_TI3A_MARK), | ||
934 | PINMUX_GPIO(GPIO_FN_TPU_TI2B, TPU_TI2B_MARK), | ||
935 | PINMUX_GPIO(GPIO_FN_TPU_TI2A, TPU_TI2A_MARK), | ||
936 | PINMUX_GPIO(GPIO_FN_TPU_TO3, TPU_TO3_MARK), | ||
937 | PINMUX_GPIO(GPIO_FN_TPU_TO2, TPU_TO2_MARK), | ||
938 | |||
939 | /* SIM */ | ||
940 | PINMUX_GPIO(GPIO_FN_SIM_D, SIM_D_MARK), | ||
941 | PINMUX_GPIO(GPIO_FN_SIM_CLK, SIM_CLK_MARK), | ||
942 | PINMUX_GPIO(GPIO_FN_SIM_RST, SIM_RST_MARK), | ||
943 | |||
944 | /* MMC */ | ||
945 | PINMUX_GPIO(GPIO_FN_MMC_DAT, MMC_DAT_MARK), | ||
946 | PINMUX_GPIO(GPIO_FN_MMC_CMD, MMC_CMD_MARK), | ||
947 | PINMUX_GPIO(GPIO_FN_MMC_CLK, MMC_CLK_MARK), | ||
948 | PINMUX_GPIO(GPIO_FN_MMC_VDDON, MMC_VDDON_MARK), | ||
949 | PINMUX_GPIO(GPIO_FN_MMC_ODMOD, MMC_ODMOD_MARK), | ||
950 | |||
951 | /* SYSC */ | ||
952 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
953 | PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), | ||
954 | }; | ||
955 | |||
956 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
957 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
958 | PTA7_FN, PTA7_OUT, PTA7_IN_PU, PTA7_IN, | ||
959 | PTA6_FN, PTA6_OUT, PTA6_IN_PU, PTA6_IN, | ||
960 | PTA5_FN, PTA5_OUT, PTA5_IN_PU, PTA5_IN, | ||
961 | PTA4_FN, PTA4_OUT, PTA4_IN_PU, PTA4_IN, | ||
962 | PTA3_FN, PTA3_OUT, PTA3_IN_PU, PTA3_IN, | ||
963 | PTA2_FN, PTA2_OUT, PTA2_IN_PU, PTA2_IN, | ||
964 | PTA1_FN, PTA1_OUT, PTA1_IN_PU, PTA1_IN, | ||
965 | PTA0_FN, PTA0_OUT, PTA0_IN_PU, PTA0_IN } | ||
966 | }, | ||
967 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
968 | PTB7_FN, PTB7_OUT, PTB7_IN_PU, PTB7_IN, | ||
969 | PTB6_FN, PTB6_OUT, PTB6_IN_PU, PTB6_IN, | ||
970 | PTB5_FN, PTB5_OUT, PTB5_IN_PU, PTB5_IN, | ||
971 | PTB4_FN, PTB4_OUT, PTB4_IN_PU, PTB4_IN, | ||
972 | PTB3_FN, PTB3_OUT, PTB3_IN_PU, PTB3_IN, | ||
973 | PTB2_FN, PTB2_OUT, PTB2_IN_PU, PTB2_IN, | ||
974 | PTB1_FN, PTB1_OUT, PTB1_IN_PU, PTB1_IN, | ||
975 | PTB0_FN, PTB0_OUT, PTB0_IN_PU, PTB0_IN } | ||
976 | }, | ||
977 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
978 | PTC7_FN, PTC7_OUT, PTC7_IN_PU, PTC7_IN, | ||
979 | PTC6_FN, PTC6_OUT, PTC6_IN_PU, PTC6_IN, | ||
980 | PTC5_FN, PTC5_OUT, PTC5_IN_PU, PTC5_IN, | ||
981 | PTC4_FN, PTC4_OUT, PTC4_IN_PU, PTC4_IN, | ||
982 | PTC3_FN, PTC3_OUT, PTC3_IN_PU, PTC3_IN, | ||
983 | PTC2_FN, PTC2_OUT, PTC2_IN_PU, PTC2_IN, | ||
984 | PTC1_FN, PTC1_OUT, PTC1_IN_PU, PTC1_IN, | ||
985 | PTC0_FN, PTC0_OUT, PTC0_IN_PU, PTC0_IN } | ||
986 | }, | ||
987 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
988 | PTD7_FN, PTD7_OUT, PTD7_IN_PU, PTD7_IN, | ||
989 | PTD6_FN, PTD6_OUT, PTD6_IN_PU, PTD6_IN, | ||
990 | PTD5_FN, PTD5_OUT, PTD5_IN_PU, PTD5_IN, | ||
991 | PTD4_FN, PTD4_OUT, PTD4_IN_PU, PTD4_IN, | ||
992 | PTD3_FN, PTD3_OUT, PTD3_IN_PU, PTD3_IN, | ||
993 | PTD2_FN, PTD2_OUT, PTD2_IN_PU, PTD2_IN, | ||
994 | PTD1_FN, PTD1_OUT, PTD1_IN_PU, PTD1_IN, | ||
995 | PTD0_FN, PTD0_OUT, PTD0_IN_PU, PTD0_IN } | ||
996 | }, | ||
997 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
998 | 0, 0, 0, 0, | ||
999 | PTE6_FN, 0, 0, PTE6_IN, | ||
1000 | PTE5_FN, 0, 0, PTE5_IN, | ||
1001 | PTE4_FN, PTE4_OUT, PTE4_IN_PU, PTE4_IN, | ||
1002 | PTE3_FN, PTE3_OUT, PTE3_IN_PU, PTE3_IN, | ||
1003 | PTE2_FN, PTE2_OUT, PTE2_IN_PU, PTE2_IN, | ||
1004 | PTE1_FN, PTE1_OUT, PTE1_IN_PU, PTE1_IN, | ||
1005 | PTE0_FN, PTE0_OUT, PTE0_IN_PU, PTE0_IN } | ||
1006 | }, | ||
1007 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1008 | 0, 0, 0, 0, | ||
1009 | PTF6_FN, 0, 0, PTF6_IN, | ||
1010 | PTF5_FN, 0, 0, PTF5_IN, | ||
1011 | PTF4_FN, 0, 0, PTF4_IN, | ||
1012 | PTF3_FN, 0, 0, PTF3_IN, | ||
1013 | PTF2_FN, 0, 0, PTF2_IN, | ||
1014 | PTF1_FN, 0, 0, PTF1_IN, | ||
1015 | PTF0_FN, 0, 0, PTF0_IN } | ||
1016 | }, | ||
1017 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1018 | 0, 0, 0, 0, | ||
1019 | PTG6_FN, PTG6_OUT, PTG6_IN_PU, PTG6_IN, | ||
1020 | PTG5_FN, PTG5_OUT, PTG5_IN_PU, PTG5_IN, | ||
1021 | PTG4_FN, PTG4_OUT, PTG4_IN_PU, PTG4_IN, | ||
1022 | PTG3_FN, PTG3_OUT, PTG3_IN_PU, PTG3_IN, | ||
1023 | PTG2_FN, PTG2_OUT, PTG2_IN_PU, PTG2_IN, | ||
1024 | PTG1_FN, PTG1_OUT, PTG1_IN_PU, PTG1_IN, | ||
1025 | PTG0_FN, PTG0_OUT, PTG0_IN_PU, PTG0_IN } | ||
1026 | }, | ||
1027 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1028 | 0, 0, 0, 0, | ||
1029 | PTH6_FN, PTH6_OUT, PTH6_IN_PU, PTH6_IN, | ||
1030 | PTH5_FN, PTH5_OUT, PTH5_IN_PU, PTH5_IN, | ||
1031 | PTH4_FN, PTH4_OUT, PTH4_IN_PU, PTH4_IN, | ||
1032 | PTH3_FN, PTH3_OUT, PTH3_IN_PU, PTH3_IN, | ||
1033 | PTH2_FN, PTH2_OUT, PTH2_IN_PU, PTH2_IN, | ||
1034 | PTH1_FN, PTH1_OUT, PTH1_IN_PU, PTH1_IN, | ||
1035 | PTH0_FN, PTH0_OUT, PTH0_IN_PU, PTH0_IN } | ||
1036 | }, | ||
1037 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1038 | 0, 0, 0, 0, | ||
1039 | PTJ6_FN, PTJ6_OUT, PTJ6_IN_PU, PTJ6_IN, | ||
1040 | PTJ5_FN, PTJ5_OUT, PTJ5_IN_PU, PTJ5_IN, | ||
1041 | PTJ4_FN, PTJ4_OUT, PTJ4_IN_PU, PTJ4_IN, | ||
1042 | PTJ3_FN, PTJ3_OUT, PTJ3_IN_PU, PTJ3_IN, | ||
1043 | PTJ2_FN, PTJ2_OUT, PTJ2_IN_PU, PTJ2_IN, | ||
1044 | PTJ1_FN, PTJ1_OUT, PTJ1_IN_PU, PTJ1_IN, | ||
1045 | PTJ0_FN, PTJ0_OUT, PTJ0_IN_PU, PTJ0_IN } | ||
1046 | }, | ||
1047 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1048 | 0, 0, 0, 0, | ||
1049 | 0, 0, 0, 0, | ||
1050 | 0, 0, 0, 0, | ||
1051 | 0, 0, 0, 0, | ||
1052 | PTK3_FN, PTK3_OUT, PTK3_IN_PU, PTK3_IN, | ||
1053 | PTK2_FN, PTK2_OUT, PTK2_IN_PU, PTK2_IN, | ||
1054 | PTK1_FN, PTK1_OUT, PTK1_IN_PU, PTK1_IN, | ||
1055 | PTK0_FN, PTK0_OUT, PTK0_IN_PU, PTK0_IN } | ||
1056 | }, | ||
1057 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1058 | PTL7_FN, PTL7_OUT, PTL7_IN_PU, PTL7_IN, | ||
1059 | PTL6_FN, PTL6_OUT, PTL6_IN_PU, PTL6_IN, | ||
1060 | PTL5_FN, PTL5_OUT, PTL5_IN_PU, PTL5_IN, | ||
1061 | PTL4_FN, PTL4_OUT, PTL4_IN_PU, PTL4_IN, | ||
1062 | PTL3_FN, PTL3_OUT, PTL3_IN_PU, PTL3_IN, | ||
1063 | 0, 0, 0, 0, | ||
1064 | 0, 0, 0, 0, | ||
1065 | 0, 0, 0, 0 } | ||
1066 | }, | ||
1067 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1068 | PTM7_FN, PTM7_OUT, PTM7_IN_PU, PTM7_IN, | ||
1069 | PTM6_FN, PTM6_OUT, PTM6_IN_PU, PTM6_IN, | ||
1070 | PTM5_FN, PTM5_OUT, PTM5_IN_PU, PTM5_IN, | ||
1071 | PTM4_FN, PTM4_OUT, PTM4_IN_PU, PTM4_IN, | ||
1072 | PTM3_FN, PTM3_OUT, PTM3_IN_PU, PTM3_IN, | ||
1073 | PTM2_FN, PTM2_OUT, PTM2_IN_PU, PTM2_IN, | ||
1074 | PTM1_FN, PTM1_OUT, PTM1_IN_PU, PTM1_IN, | ||
1075 | PTM0_FN, PTM0_OUT, PTM0_IN_PU, PTM0_IN } | ||
1076 | }, | ||
1077 | { PINMUX_CFG_REG("PPCR", 0xa4050118, 16, 2) { | ||
1078 | 0, 0, 0, 0, | ||
1079 | 0, 0, 0, 0, | ||
1080 | 0, 0, 0, 0, | ||
1081 | PTP4_FN, PTP4_OUT, PTP4_IN_PU, PTP4_IN, | ||
1082 | PTP3_FN, PTP3_OUT, PTP3_IN_PU, PTP3_IN, | ||
1083 | PTP2_FN, PTP2_OUT, PTP2_IN_PU, PTP2_IN, | ||
1084 | PTP1_FN, PTP1_OUT, PTP1_IN_PU, PTP1_IN, | ||
1085 | PTP0_FN, PTP0_OUT, PTP0_IN_PU, PTP0_IN } | ||
1086 | }, | ||
1087 | { PINMUX_CFG_REG("PRCR", 0xa405011a, 16, 2) { | ||
1088 | PTR7_FN, PTR7_OUT, PTR7_IN_PU, PTR7_IN, | ||
1089 | PTR6_FN, PTR6_OUT, PTR6_IN_PU, PTR6_IN, | ||
1090 | PTR5_FN, PTR5_OUT, PTR5_IN_PU, PTR5_IN, | ||
1091 | PTR4_FN, PTR4_OUT, PTR4_IN_PU, PTR4_IN, | ||
1092 | PTR3_FN, PTR3_OUT, PTR3_IN_PU, PTR3_IN, | ||
1093 | PTR2_FN, PTR2_OUT, PTR2_IN_PU, PTR2_IN, | ||
1094 | PTR1_FN, PTR1_OUT, PTR1_IN_PU, PTR1_IN, | ||
1095 | PTR0_FN, PTR0_OUT, PTR0_IN_PU, PTR0_IN } | ||
1096 | }, | ||
1097 | { PINMUX_CFG_REG("PSCR", 0xa405011c, 16, 2) { | ||
1098 | 0, 0, 0, 0, | ||
1099 | 0, 0, 0, 0, | ||
1100 | 0, 0, 0, 0, | ||
1101 | PTS4_FN, PTS4_OUT, PTS4_IN_PU, PTS4_IN, | ||
1102 | PTS3_FN, PTS3_OUT, PTS3_IN_PU, PTS3_IN, | ||
1103 | PTS2_FN, PTS2_OUT, PTS2_IN_PU, PTS2_IN, | ||
1104 | PTS1_FN, PTS1_OUT, PTS1_IN_PU, PTS1_IN, | ||
1105 | PTS0_FN, PTS0_OUT, PTS0_IN_PU, PTS0_IN } | ||
1106 | }, | ||
1107 | { PINMUX_CFG_REG("PTCR", 0xa405011e, 16, 2) { | ||
1108 | 0, 0, 0, 0, | ||
1109 | 0, 0, 0, 0, | ||
1110 | 0, 0, 0, 0, | ||
1111 | PTT4_FN, PTT4_OUT, PTT4_IN_PU, PTT4_IN, | ||
1112 | PTT3_FN, PTT3_OUT, PTT3_IN_PU, PTT3_IN, | ||
1113 | PTT2_FN, PTT2_OUT, PTT2_IN_PU, PTT2_IN, | ||
1114 | PTT1_FN, PTT1_OUT, PTT1_IN_PU, PTT1_IN, | ||
1115 | PTT0_FN, PTT0_OUT, PTT0_IN_PU, PTT0_IN } | ||
1116 | }, | ||
1117 | { PINMUX_CFG_REG("PUCR", 0xa4050120, 16, 2) { | ||
1118 | 0, 0, 0, 0, | ||
1119 | 0, 0, 0, 0, | ||
1120 | 0, 0, 0, 0, | ||
1121 | PTU4_FN, PTU4_OUT, PTU4_IN_PU, PTU4_IN, | ||
1122 | PTU3_FN, PTU3_OUT, PTU3_IN_PU, PTU3_IN, | ||
1123 | PTU2_FN, PTU2_OUT, PTU2_IN_PU, PTU2_IN, | ||
1124 | PTU1_FN, PTU1_OUT, PTU1_IN_PU, PTU1_IN, | ||
1125 | PTU0_FN, PTU0_OUT, PTU0_IN_PU, PTU0_IN } | ||
1126 | }, | ||
1127 | { PINMUX_CFG_REG("PVCR", 0xa4050122, 16, 2) { | ||
1128 | 0, 0, 0, 0, | ||
1129 | 0, 0, 0, 0, | ||
1130 | 0, 0, 0, 0, | ||
1131 | PTV4_FN, PTV4_OUT, PTV4_IN_PU, PTV4_IN, | ||
1132 | PTV3_FN, PTV3_OUT, PTV3_IN_PU, PTV3_IN, | ||
1133 | PTV2_FN, PTV2_OUT, PTV2_IN_PU, PTV2_IN, | ||
1134 | PTV1_FN, PTV1_OUT, PTV1_IN_PU, PTV1_IN, | ||
1135 | PTV0_FN, PTV0_OUT, PTV0_IN_PU, PTV0_IN } | ||
1136 | }, | ||
1137 | {} | ||
1138 | }; | ||
1139 | |||
1140 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1141 | { PINMUX_DATA_REG("PADR", 0xa4050140, 8) { | ||
1142 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
1143 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
1144 | }, | ||
1145 | { PINMUX_DATA_REG("PBDR", 0xa4050142, 8) { | ||
1146 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
1147 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
1148 | }, | ||
1149 | { PINMUX_DATA_REG("PCDR", 0xa4050144, 8) { | ||
1150 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
1151 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
1152 | }, | ||
1153 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
1154 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
1155 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
1156 | }, | ||
1157 | { PINMUX_DATA_REG("PEDR", 0xa4050148, 8) { | ||
1158 | 0, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
1159 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
1160 | }, | ||
1161 | { PINMUX_DATA_REG("PFDR", 0xa405014a, 8) { | ||
1162 | 0, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
1163 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
1164 | }, | ||
1165 | { PINMUX_DATA_REG("PGDR", 0xa405014c, 8) { | ||
1166 | 0, PTG6_DATA, PTG5_DATA, PTG4_DATA, | ||
1167 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
1168 | }, | ||
1169 | { PINMUX_DATA_REG("PHDR", 0xa405014e, 8) { | ||
1170 | 0, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
1171 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
1172 | }, | ||
1173 | { PINMUX_DATA_REG("PJDR", 0xa4050150, 8) { | ||
1174 | 0, PTJ6_DATA, PTJ5_DATA, PTJ4_DATA, | ||
1175 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
1176 | }, | ||
1177 | { PINMUX_DATA_REG("PKDR", 0xa4050152, 8) { | ||
1178 | 0, 0, 0, 0, | ||
1179 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
1180 | }, | ||
1181 | { PINMUX_DATA_REG("PLDR", 0xa4050154, 8) { | ||
1182 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
1183 | PTL3_DATA, 0, 0, 0 } | ||
1184 | }, | ||
1185 | { PINMUX_DATA_REG("PMDR", 0xa4050156, 8) { | ||
1186 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
1187 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
1188 | }, | ||
1189 | { PINMUX_DATA_REG("PPDR", 0xa4050158, 8) { | ||
1190 | 0, 0, 0, PTP4_DATA, | ||
1191 | PTP3_DATA, PTP2_DATA, PTP1_DATA, PTP0_DATA } | ||
1192 | }, | ||
1193 | { PINMUX_DATA_REG("PRDR", 0xa405015a, 8) { | ||
1194 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
1195 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
1196 | }, | ||
1197 | { PINMUX_DATA_REG("PSDR", 0xa405015c, 8) { | ||
1198 | 0, 0, 0, PTS4_DATA, | ||
1199 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
1200 | }, | ||
1201 | { PINMUX_DATA_REG("PTDR", 0xa405015e, 8) { | ||
1202 | 0, 0, 0, PTT4_DATA, | ||
1203 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
1204 | }, | ||
1205 | { PINMUX_DATA_REG("PUDR", 0xa4050160, 8) { | ||
1206 | 0, 0, 0, PTU4_DATA, | ||
1207 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
1208 | }, | ||
1209 | { PINMUX_DATA_REG("PVDR", 0xa4050162, 8) { | ||
1210 | 0, 0, 0, PTV4_DATA, | ||
1211 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
1212 | }, | ||
1213 | { }, | ||
1214 | }; | ||
1215 | |||
1216 | static struct pinmux_info sh7720_pinmux_info = { | ||
1217 | .name = "sh7720_pfc", | ||
1218 | .reserved_id = PINMUX_RESERVED, | ||
1219 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1220 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1221 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1222 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1223 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1224 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1225 | |||
1226 | .first_gpio = GPIO_PTA7, | ||
1227 | .last_gpio = GPIO_FN_STATUS1, | ||
1228 | |||
1229 | .gpios = pinmux_gpios, | ||
1230 | .cfg_regs = pinmux_config_regs, | ||
1231 | .data_regs = pinmux_data_regs, | ||
1232 | |||
1233 | .gpio_data = pinmux_data, | ||
1234 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1235 | }; | ||
1236 | 14 | ||
1237 | static int __init plat_pinmux_setup(void) | 15 | static int __init plat_pinmux_setup(void) |
1238 | { | 16 | { |
1239 | return register_pinmux(&sh7720_pinmux_info); | 17 | return sh_pfc_register("pfc-sh7720", NULL, 0); |
1240 | } | 18 | } |
1241 | 19 | ||
1242 | arch_initcall(plat_pinmux_setup); | 20 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c index 0688a7502f86..d9bcc4290997 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c | |||
@@ -1,1784 +1,10 @@ | |||
1 | #include <linux/init.h> | 1 | #include <linux/init.h> |
2 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
3 | #include <linux/gpio.h> | 3 | #include <cpu/pfc.h> |
4 | #include <cpu/sh7722.h> | ||
5 | |||
6 | enum { | ||
7 | PINMUX_RESERVED = 0, | ||
8 | |||
9 | PINMUX_DATA_BEGIN, | ||
10 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
11 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
12 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
13 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
14 | PTC7_DATA, PTC5_DATA, PTC4_DATA, PTC3_DATA, PTC2_DATA, PTC0_DATA, | ||
15 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
16 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
17 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, PTE1_DATA, PTE0_DATA, | ||
18 | PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
19 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
20 | PTG4_DATA, PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
21 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
22 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
23 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, PTJ1_DATA, PTJ0_DATA, | ||
24 | PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
25 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
26 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
27 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
28 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
29 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
30 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
31 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
32 | PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
33 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
34 | PTR4_DATA, PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
35 | PTS4_DATA, PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
36 | PTT4_DATA, PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
37 | PTU4_DATA, PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
38 | PTV4_DATA, PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
39 | PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
40 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
41 | PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
42 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
43 | PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
44 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
45 | PTZ5_DATA, PTZ4_DATA, PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
46 | PINMUX_DATA_END, | ||
47 | |||
48 | PINMUX_INPUT_BEGIN, | ||
49 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
50 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
51 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
52 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
53 | PTC7_IN, PTC5_IN, PTC4_IN, PTC3_IN, PTC2_IN, PTC0_IN, | ||
54 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, PTD3_IN, PTD2_IN, PTD1_IN, | ||
55 | PTE7_IN, PTE6_IN, PTE5_IN, PTE4_IN, PTE1_IN, PTE0_IN, | ||
56 | PTF6_IN, PTF5_IN, PTF4_IN, PTF3_IN, PTF2_IN, PTF1_IN, | ||
57 | PTH6_IN, PTH5_IN, PTH1_IN, PTH0_IN, | ||
58 | PTJ1_IN, PTJ0_IN, | ||
59 | PTK6_IN, PTK5_IN, PTK4_IN, PTK3_IN, PTK2_IN, PTK0_IN, | ||
60 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, | ||
61 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
62 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
63 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
64 | PTN7_IN, PTN6_IN, PTN5_IN, PTN4_IN, | ||
65 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
66 | PTQ5_IN, PTQ4_IN, PTQ3_IN, PTQ2_IN, PTQ0_IN, | ||
67 | PTR2_IN, | ||
68 | PTS4_IN, PTS2_IN, PTS1_IN, | ||
69 | PTT4_IN, PTT3_IN, PTT2_IN, PTT1_IN, | ||
70 | PTU4_IN, PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
71 | PTV4_IN, PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
72 | PTW6_IN, PTW4_IN, PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
73 | PTX6_IN, PTX5_IN, PTX4_IN, PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
74 | PTY5_IN, PTY4_IN, PTY3_IN, PTY2_IN, PTY0_IN, | ||
75 | PTZ5_IN, PTZ4_IN, PTZ3_IN, PTZ2_IN, PTZ1_IN, | ||
76 | PINMUX_INPUT_END, | ||
77 | |||
78 | PINMUX_INPUT_PULLDOWN_BEGIN, | ||
79 | PTA7_IN_PD, PTA6_IN_PD, PTA5_IN_PD, PTA4_IN_PD, | ||
80 | PTA3_IN_PD, PTA2_IN_PD, PTA1_IN_PD, PTA0_IN_PD, | ||
81 | PTE7_IN_PD, PTE6_IN_PD, PTE5_IN_PD, PTE4_IN_PD, PTE1_IN_PD, PTE0_IN_PD, | ||
82 | PTF6_IN_PD, PTF5_IN_PD, PTF4_IN_PD, PTF3_IN_PD, PTF2_IN_PD, PTF1_IN_PD, | ||
83 | PTH6_IN_PD, PTH5_IN_PD, PTH1_IN_PD, PTH0_IN_PD, | ||
84 | PTK6_IN_PD, PTK5_IN_PD, PTK4_IN_PD, PTK3_IN_PD, PTK2_IN_PD, PTK0_IN_PD, | ||
85 | PTL7_IN_PD, PTL6_IN_PD, PTL5_IN_PD, PTL4_IN_PD, | ||
86 | PTL3_IN_PD, PTL2_IN_PD, PTL1_IN_PD, PTL0_IN_PD, | ||
87 | PTM7_IN_PD, PTM6_IN_PD, PTM5_IN_PD, PTM4_IN_PD, | ||
88 | PTM3_IN_PD, PTM2_IN_PD, PTM1_IN_PD, PTM0_IN_PD, | ||
89 | PTQ5_IN_PD, PTQ4_IN_PD, PTQ3_IN_PD, PTQ2_IN_PD, | ||
90 | PTS4_IN_PD, PTS2_IN_PD, PTS1_IN_PD, | ||
91 | PTT4_IN_PD, PTT3_IN_PD, PTT2_IN_PD, PTT1_IN_PD, | ||
92 | PTU4_IN_PD, PTU3_IN_PD, PTU2_IN_PD, PTU1_IN_PD, PTU0_IN_PD, | ||
93 | PTV4_IN_PD, PTV3_IN_PD, PTV2_IN_PD, PTV1_IN_PD, PTV0_IN_PD, | ||
94 | PTW6_IN_PD, PTW4_IN_PD, PTW3_IN_PD, PTW2_IN_PD, PTW1_IN_PD, PTW0_IN_PD, | ||
95 | PTX6_IN_PD, PTX5_IN_PD, PTX4_IN_PD, | ||
96 | PTX3_IN_PD, PTX2_IN_PD, PTX1_IN_PD, PTX0_IN_PD, | ||
97 | PINMUX_INPUT_PULLDOWN_END, | ||
98 | |||
99 | PINMUX_INPUT_PULLUP_BEGIN, | ||
100 | PTC7_IN_PU, PTC5_IN_PU, | ||
101 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
102 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, | ||
103 | PTJ1_IN_PU, PTJ0_IN_PU, | ||
104 | PTQ0_IN_PU, | ||
105 | PTR2_IN_PU, | ||
106 | PTX6_IN_PU, | ||
107 | PTY5_IN_PU, PTY4_IN_PU, PTY3_IN_PU, PTY2_IN_PU, PTY0_IN_PU, | ||
108 | PTZ5_IN_PU, PTZ4_IN_PU, PTZ3_IN_PU, PTZ2_IN_PU, PTZ1_IN_PU, | ||
109 | PINMUX_INPUT_PULLUP_END, | ||
110 | |||
111 | PINMUX_OUTPUT_BEGIN, | ||
112 | PTA7_OUT, PTA5_OUT, | ||
113 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
114 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
115 | PTC4_OUT, PTC3_OUT, PTC2_OUT, PTC0_OUT, | ||
116 | PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
117 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
118 | PTE7_OUT, PTE6_OUT, PTE5_OUT, PTE4_OUT, PTE1_OUT, PTE0_OUT, | ||
119 | PTF6_OUT, PTF5_OUT, PTF4_OUT, PTF3_OUT, PTF2_OUT, PTF0_OUT, | ||
120 | PTG4_OUT, PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
121 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
122 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
123 | PTJ7_OUT, PTJ6_OUT, PTJ5_OUT, PTJ1_OUT, PTJ0_OUT, | ||
124 | PTK6_OUT, PTK5_OUT, PTK4_OUT, PTK3_OUT, PTK1_OUT, PTK0_OUT, | ||
125 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
126 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
127 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
128 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
129 | PTN7_OUT, PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
130 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, PTQ6_OUT, PTQ5_OUT, PTQ4_OUT, | ||
131 | PTQ3_OUT, PTQ2_OUT, PTQ1_OUT, PTQ0_OUT, | ||
132 | PTR4_OUT, PTR3_OUT, PTR1_OUT, PTR0_OUT, | ||
133 | PTS3_OUT, PTS2_OUT, PTS0_OUT, | ||
134 | PTT4_OUT, PTT3_OUT, PTT2_OUT, PTT0_OUT, | ||
135 | PTU4_OUT, PTU3_OUT, PTU2_OUT, PTU0_OUT, | ||
136 | PTV4_OUT, PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
137 | PTW5_OUT, PTW4_OUT, PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
138 | PTX6_OUT, PTX5_OUT, PTX4_OUT, PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
139 | PTY5_OUT, PTY4_OUT, PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
140 | PINMUX_OUTPUT_END, | ||
141 | |||
142 | PINMUX_MARK_BEGIN, | ||
143 | SCIF0_TXD_MARK, SCIF0_RXD_MARK, | ||
144 | SCIF0_RTS_MARK, SCIF0_CTS_MARK, SCIF0_SCK_MARK, | ||
145 | SCIF1_TXD_MARK, SCIF1_RXD_MARK, | ||
146 | SCIF1_RTS_MARK, SCIF1_CTS_MARK, SCIF1_SCK_MARK, | ||
147 | SCIF2_TXD_MARK, SCIF2_RXD_MARK, | ||
148 | SCIF2_RTS_MARK, SCIF2_CTS_MARK, SCIF2_SCK_MARK, | ||
149 | SIOTXD_MARK, SIORXD_MARK, | ||
150 | SIOD_MARK, SIOSTRB0_MARK, SIOSTRB1_MARK, | ||
151 | SIOSCK_MARK, SIOMCK_MARK, | ||
152 | VIO_D15_MARK, VIO_D14_MARK, VIO_D13_MARK, VIO_D12_MARK, | ||
153 | VIO_D11_MARK, VIO_D10_MARK, VIO_D9_MARK, VIO_D8_MARK, | ||
154 | VIO_D7_MARK, VIO_D6_MARK, VIO_D5_MARK, VIO_D4_MARK, | ||
155 | VIO_D3_MARK, VIO_D2_MARK, VIO_D1_MARK, VIO_D0_MARK, | ||
156 | VIO_CLK_MARK, VIO_VD_MARK, VIO_HD_MARK, VIO_FLD_MARK, | ||
157 | VIO_CKO_MARK, VIO_STEX_MARK, VIO_STEM_MARK, VIO_VD2_MARK, | ||
158 | VIO_HD2_MARK, VIO_CLK2_MARK, | ||
159 | LCDD23_MARK, LCDD22_MARK, LCDD21_MARK, LCDD20_MARK, | ||
160 | LCDD19_MARK, LCDD18_MARK, LCDD17_MARK, LCDD16_MARK, | ||
161 | LCDD15_MARK, LCDD14_MARK, LCDD13_MARK, LCDD12_MARK, | ||
162 | LCDD11_MARK, LCDD10_MARK, LCDD9_MARK, LCDD8_MARK, | ||
163 | LCDD7_MARK, LCDD6_MARK, LCDD5_MARK, LCDD4_MARK, | ||
164 | LCDD3_MARK, LCDD2_MARK, LCDD1_MARK, LCDD0_MARK, | ||
165 | LCDLCLK_MARK, LCDDON_MARK, LCDVCPWC_MARK, LCDVEPWC_MARK, | ||
166 | LCDVSYN_MARK, LCDDCK_MARK, LCDHSYN_MARK, LCDDISP_MARK, | ||
167 | LCDRS_MARK, LCDCS_MARK, LCDWR_MARK, LCDRD_MARK, | ||
168 | LCDDON2_MARK, LCDVCPWC2_MARK, LCDVEPWC2_MARK, LCDVSYN2_MARK, | ||
169 | LCDCS2_MARK, | ||
170 | IOIS16_MARK, A25_MARK, A24_MARK, A23_MARK, A22_MARK, | ||
171 | BS_MARK, CS6B_CE1B_MARK, WAIT_MARK, CS6A_CE2B_MARK, | ||
172 | HPD63_MARK, HPD62_MARK, HPD61_MARK, HPD60_MARK, | ||
173 | HPD59_MARK, HPD58_MARK, HPD57_MARK, HPD56_MARK, | ||
174 | HPD55_MARK, HPD54_MARK, HPD53_MARK, HPD52_MARK, | ||
175 | HPD51_MARK, HPD50_MARK, HPD49_MARK, HPD48_MARK, | ||
176 | HPDQM7_MARK, HPDQM6_MARK, HPDQM5_MARK, HPDQM4_MARK, | ||
177 | IRQ0_MARK, IRQ1_MARK, IRQ2_MARK, IRQ3_MARK, | ||
178 | IRQ4_MARK, IRQ5_MARK, IRQ6_MARK, IRQ7_MARK, | ||
179 | SDHICD_MARK, SDHIWP_MARK, SDHID3_MARK, SDHID2_MARK, | ||
180 | SDHID1_MARK, SDHID0_MARK, SDHICMD_MARK, SDHICLK_MARK, | ||
181 | SIUAOLR_MARK, SIUAOBT_MARK, SIUAISLD_MARK, SIUAILR_MARK, | ||
182 | SIUAIBT_MARK, SIUAOSLD_MARK, SIUMCKA_MARK, SIUFCKA_MARK, | ||
183 | SIUBOLR_MARK, SIUBOBT_MARK, SIUBISLD_MARK, SIUBILR_MARK, | ||
184 | SIUBIBT_MARK, SIUBOSLD_MARK, SIUMCKB_MARK, SIUFCKB_MARK, | ||
185 | AUDSYNC_MARK, AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK, | ||
186 | DACK_MARK, DREQ0_MARK, | ||
187 | DV_CLKI_MARK, DV_CLK_MARK, DV_HSYNC_MARK, DV_VSYNC_MARK, | ||
188 | DV_D15_MARK, DV_D14_MARK, DV_D13_MARK, DV_D12_MARK, | ||
189 | DV_D11_MARK, DV_D10_MARK, DV_D9_MARK, DV_D8_MARK, | ||
190 | DV_D7_MARK, DV_D6_MARK, DV_D5_MARK, DV_D4_MARK, | ||
191 | DV_D3_MARK, DV_D2_MARK, DV_D1_MARK, DV_D0_MARK, | ||
192 | STATUS0_MARK, PDSTATUS_MARK, | ||
193 | SIOF0_MCK_MARK, SIOF0_SCK_MARK, | ||
194 | SIOF0_SYNC_MARK, SIOF0_SS1_MARK, SIOF0_SS2_MARK, | ||
195 | SIOF0_TXD_MARK, SIOF0_RXD_MARK, | ||
196 | SIOF1_MCK_MARK, SIOF1_SCK_MARK, | ||
197 | SIOF1_SYNC_MARK, SIOF1_SS1_MARK, SIOF1_SS2_MARK, | ||
198 | SIOF1_TXD_MARK, SIOF1_RXD_MARK, | ||
199 | SIM_D_MARK, SIM_CLK_MARK, SIM_RST_MARK, | ||
200 | TS_SDAT_MARK, TS_SCK_MARK, TS_SDEN_MARK, TS_SPSYNC_MARK, | ||
201 | IRDA_IN_MARK, IRDA_OUT_MARK, | ||
202 | TPUTO_MARK, | ||
203 | FCE_MARK, NAF7_MARK, NAF6_MARK, NAF5_MARK, NAF4_MARK, | ||
204 | NAF3_MARK, NAF2_MARK, NAF1_MARK, NAF0_MARK, FCDE_MARK, | ||
205 | FOE_MARK, FSC_MARK, FWE_MARK, FRB_MARK, | ||
206 | KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, KEYIN4_MARK, | ||
207 | KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK, | ||
208 | KEYOUT4_IN6_MARK, KEYOUT5_IN5_MARK, | ||
209 | PINMUX_MARK_END, | ||
210 | |||
211 | PINMUX_FUNCTION_BEGIN, | ||
212 | VIO_D7_SCIF1_SCK, VIO_D6_SCIF1_RXD, VIO_D5_SCIF1_TXD, VIO_D4, | ||
213 | VIO_D3, VIO_D2, VIO_D1, VIO_D0_LCDLCLK, | ||
214 | HPD55, HPD54, HPD53, HPD52, HPD51, HPD50, HPD49, HPD48, | ||
215 | IOIS16, HPDQM7, HPDQM6, HPDQM5, HPDQM4, | ||
216 | SDHICD, SDHIWP, SDHID3, IRQ2_SDHID2, SDHID1, SDHID0, SDHICMD, SDHICLK, | ||
217 | A25, A24, A23, A22, IRQ5, IRQ4_BS, | ||
218 | PTF6, SIOSCK_SIUBOBT, SIOSTRB1_SIUBOLR, | ||
219 | SIOSTRB0_SIUBIBT, SIOD_SIUBILR, SIORXD_SIUBISLD, SIOTXD_SIUBOSLD, | ||
220 | AUDSYNC, AUDATA3, AUDATA2, AUDATA1, AUDATA0, | ||
221 | LCDVCPWC_LCDVCPWC2, LCDVSYN2_DACK, LCDVSYN, LCDDISP_LCDRS, | ||
222 | LCDHSYN_LCDCS, LCDDON_LCDDON2, LCDD17_DV_HSYNC, LCDD16_DV_VSYNC, | ||
223 | STATUS0, PDSTATUS, IRQ1, IRQ0, | ||
224 | SIUAILR_SIOF1_SS2, SIUAIBT_SIOF1_SS1, SIUAOLR_SIOF1_SYNC, | ||
225 | SIUAOBT_SIOF1_SCK, SIUAISLD_SIOF1_RXD, SIUAOSLD_SIOF1_TXD, PTK0, | ||
226 | LCDD15_DV_D15, LCDD14_DV_D14, LCDD13_DV_D13, LCDD12_DV_D12, | ||
227 | LCDD11_DV_D11, LCDD10_DV_D10, LCDD9_DV_D9, LCDD8_DV_D8, | ||
228 | LCDD7_DV_D7, LCDD6_DV_D6, LCDD5_DV_D5, LCDD4_DV_D4, | ||
229 | LCDD3_DV_D3, LCDD2_DV_D2, LCDD1_DV_D1, LCDD0_DV_D0, | ||
230 | HPD63, HPD62, HPD61, HPD60, HPD59, HPD58, HPD57, HPD56, | ||
231 | SIOF0_SS2_SIM_RST, SIOF0_SS1_TS_SPSYNC, SIOF0_SYNC_TS_SDEN, | ||
232 | SIOF0_SCK_TS_SCK, PTQ2, PTQ1, PTQ0, | ||
233 | LCDRD, CS6B_CE1B_LCDCS2, WAIT, LCDDCK_LCDWR, LCDVEPWC_LCDVEPWC2, | ||
234 | SCIF0_CTS_SIUAISPD, SCIF0_RTS_SIUAOSPD, | ||
235 | SCIF0_SCK_TPUTO, SCIF0_RXD, SCIF0_TXD, | ||
236 | FOE_VIO_VD2, FWE, FSC, DREQ0, FCDE, | ||
237 | NAF2_VIO_D10, NAF1_VIO_D9, NAF0_VIO_D8, | ||
238 | FRB_VIO_CLK2, FCE_VIO_HD2, | ||
239 | NAF7_VIO_D15, NAF6_VIO_D14, NAF5_VIO_D13, NAF4_VIO_D12, NAF3_VIO_D11, | ||
240 | VIO_FLD_SCIF2_CTS, VIO_CKO_SCIF2_RTS, VIO_STEX_SCIF2_SCK, | ||
241 | VIO_STEM_SCIF2_TXD, VIO_HD_SCIF2_RXD, | ||
242 | VIO_VD_SCIF1_CTS, VIO_CLK_SCIF1_RTS, | ||
243 | CS6A_CE2B, LCDD23, LCDD22, LCDD21, LCDD20, | ||
244 | LCDD19_DV_CLKI, LCDD18_DV_CLK, | ||
245 | KEYOUT5_IN5, KEYOUT4_IN6, KEYOUT3, KEYOUT2, KEYOUT1, KEYOUT0, | ||
246 | KEYIN4_IRQ7, KEYIN3, KEYIN2, KEYIN1, KEYIN0_IRQ6, | ||
247 | |||
248 | PSA15_KEYIN0, PSA15_IRQ6, PSA14_KEYIN4, PSA14_IRQ7, | ||
249 | PSA9_IRQ4, PSA9_BS, PSA4_IRQ2, PSA4_SDHID2, | ||
250 | PSB15_SIOTXD, PSB15_SIUBOSLD, PSB14_SIORXD, PSB14_SIUBISLD, | ||
251 | PSB13_SIOD, PSB13_SIUBILR, PSB12_SIOSTRB0, PSB12_SIUBIBT, | ||
252 | PSB11_SIOSTRB1, PSB11_SIUBOLR, PSB10_SIOSCK, PSB10_SIUBOBT, | ||
253 | PSB9_SIOMCK, PSB9_SIUMCKB, PSB8_SIOF0_MCK, PSB8_IRQ3, | ||
254 | PSB7_SIOF0_TXD, PSB7_IRDA_OUT, PSB6_SIOF0_RXD, PSB6_IRDA_IN, | ||
255 | PSB5_SIOF0_SCK, PSB5_TS_SCK, PSB4_SIOF0_SYNC, PSB4_TS_SDEN, | ||
256 | PSB3_SIOF0_SS1, PSB3_TS_SPSYNC, PSB2_SIOF0_SS2, PSB2_SIM_RST, | ||
257 | PSB1_SIUMCKA, PSB1_SIOF1_MCK, PSB0_SIUAOSLD, PSB0_SIOF1_TXD, | ||
258 | PSC15_SIUAISLD, PSC15_SIOF1_RXD, PSC14_SIUAOBT, PSC14_SIOF1_SCK, | ||
259 | PSC13_SIUAOLR, PSC13_SIOF1_SYNC, PSC12_SIUAIBT, PSC12_SIOF1_SS1, | ||
260 | PSC11_SIUAILR, PSC11_SIOF1_SS2, PSC0_NAF, PSC0_VIO, | ||
261 | PSD13_VIO, PSD13_SCIF2, PSD12_VIO, PSD12_SCIF1, | ||
262 | PSD11_VIO, PSD11_SCIF1, PSD10_VIO_D0, PSD10_LCDLCLK, | ||
263 | PSD9_SIOMCK_SIUMCKB, PSD9_SIUFCKB, PSD8_SCIF0_SCK, PSD8_TPUTO, | ||
264 | PSD7_SCIF0_RTS, PSD7_SIUAOSPD, PSD6_SCIF0_CTS, PSD6_SIUAISPD, | ||
265 | PSD5_CS6B_CE1B, PSD5_LCDCS2, | ||
266 | PSD3_LCDVEPWC_LCDVCPWC, PSD3_LCDVEPWC2_LCDVCPWC2, | ||
267 | PSD2_LCDDON, PSD2_LCDDON2, PSD0_LCDD19_LCDD0, PSD0_DV, | ||
268 | PSE15_SIOF0_MCK_IRQ3, PSE15_SIM_D, | ||
269 | PSE14_SIOF0_TXD_IRDA_OUT, PSE14_SIM_CLK, | ||
270 | PSE13_SIOF0_RXD_IRDA_IN, PSE13_TS_SDAT, PSE12_LCDVSYN2, PSE12_DACK, | ||
271 | PSE11_SIUMCKA_SIOF1_MCK, PSE11_SIUFCKA, | ||
272 | PSE3_FLCTL, PSE3_VIO, PSE2_NAF2, PSE2_VIO_D10, | ||
273 | PSE1_NAF1, PSE1_VIO_D9, PSE0_NAF0, PSE0_VIO_D8, | ||
274 | |||
275 | HIZA14_KEYSC, HIZA14_HIZ, | ||
276 | HIZA10_NAF, HIZA10_HIZ, | ||
277 | HIZA9_VIO, HIZA9_HIZ, | ||
278 | HIZA8_LCDC, HIZA8_HIZ, | ||
279 | HIZA7_LCDC, HIZA7_HIZ, | ||
280 | HIZA6_LCDC, HIZA6_HIZ, | ||
281 | HIZB4_SIUA, HIZB4_HIZ, | ||
282 | HIZB1_VIO, HIZB1_HIZ, | ||
283 | HIZB0_VIO, HIZB0_HIZ, | ||
284 | HIZC15_IRQ7, HIZC15_HIZ, | ||
285 | HIZC14_IRQ6, HIZC14_HIZ, | ||
286 | HIZC13_IRQ5, HIZC13_HIZ, | ||
287 | HIZC12_IRQ4, HIZC12_HIZ, | ||
288 | HIZC11_IRQ3, HIZC11_HIZ, | ||
289 | HIZC10_IRQ2, HIZC10_HIZ, | ||
290 | HIZC9_IRQ1, HIZC9_HIZ, | ||
291 | HIZC8_IRQ0, HIZC8_HIZ, | ||
292 | MSELB9_VIO, MSELB9_VIO2, | ||
293 | MSELB8_RGB, MSELB8_SYS, | ||
294 | PINMUX_FUNCTION_END, | ||
295 | }; | ||
296 | |||
297 | static pinmux_enum_t pinmux_data[] = { | ||
298 | /* PTA */ | ||
299 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_IN_PD, PTA7_OUT), | ||
300 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_IN_PD), | ||
301 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_IN_PD, PTA5_OUT), | ||
302 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_IN_PD), | ||
303 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_IN_PD), | ||
304 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_IN_PD), | ||
305 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_IN_PD), | ||
306 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_IN_PD), | ||
307 | |||
308 | /* PTB */ | ||
309 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT), | ||
310 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT), | ||
311 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT), | ||
312 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT), | ||
313 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT), | ||
314 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT), | ||
315 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT), | ||
316 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT), | ||
317 | |||
318 | /* PTC */ | ||
319 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_IN_PU), | ||
320 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_IN_PU), | ||
321 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT), | ||
322 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT), | ||
323 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT), | ||
324 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT), | ||
325 | |||
326 | /* PTD */ | ||
327 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_IN_PU), | ||
328 | PINMUX_DATA(PTD6_DATA, PTD6_OUT, PTD6_IN, PTD6_IN_PU), | ||
329 | PINMUX_DATA(PTD5_DATA, PTD5_OUT, PTD5_IN, PTD5_IN_PU), | ||
330 | PINMUX_DATA(PTD4_DATA, PTD4_OUT, PTD4_IN, PTD4_IN_PU), | ||
331 | PINMUX_DATA(PTD3_DATA, PTD3_OUT, PTD3_IN, PTD3_IN_PU), | ||
332 | PINMUX_DATA(PTD2_DATA, PTD2_OUT, PTD2_IN, PTD2_IN_PU), | ||
333 | PINMUX_DATA(PTD1_DATA, PTD1_OUT, PTD1_IN, PTD1_IN_PU), | ||
334 | PINMUX_DATA(PTD0_DATA, PTD0_OUT), | ||
335 | |||
336 | /* PTE */ | ||
337 | PINMUX_DATA(PTE7_DATA, PTE7_OUT, PTE7_IN, PTE7_IN_PD), | ||
338 | PINMUX_DATA(PTE6_DATA, PTE6_OUT, PTE6_IN, PTE6_IN_PD), | ||
339 | PINMUX_DATA(PTE5_DATA, PTE5_OUT, PTE5_IN, PTE5_IN_PD), | ||
340 | PINMUX_DATA(PTE4_DATA, PTE4_OUT, PTE4_IN, PTE4_IN_PD), | ||
341 | PINMUX_DATA(PTE1_DATA, PTE1_OUT, PTE1_IN, PTE1_IN_PD), | ||
342 | PINMUX_DATA(PTE0_DATA, PTE0_OUT, PTE0_IN, PTE0_IN_PD), | ||
343 | |||
344 | /* PTF */ | ||
345 | PINMUX_DATA(PTF6_DATA, PTF6_OUT, PTF6_IN, PTF6_IN_PD), | ||
346 | PINMUX_DATA(PTF5_DATA, PTF5_OUT, PTF5_IN, PTF5_IN_PD), | ||
347 | PINMUX_DATA(PTF4_DATA, PTF4_OUT, PTF4_IN, PTF4_IN_PD), | ||
348 | PINMUX_DATA(PTF3_DATA, PTF3_OUT, PTF3_IN, PTF3_IN_PD), | ||
349 | PINMUX_DATA(PTF2_DATA, PTF2_OUT, PTF2_IN, PTF2_IN_PD), | ||
350 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_IN_PD), | ||
351 | PINMUX_DATA(PTF0_DATA, PTF0_OUT), | ||
352 | |||
353 | /* PTG */ | ||
354 | PINMUX_DATA(PTG4_DATA, PTG4_OUT), | ||
355 | PINMUX_DATA(PTG3_DATA, PTG3_OUT), | ||
356 | PINMUX_DATA(PTG2_DATA, PTG2_OUT), | ||
357 | PINMUX_DATA(PTG1_DATA, PTG1_OUT), | ||
358 | PINMUX_DATA(PTG0_DATA, PTG0_OUT), | ||
359 | |||
360 | /* PTH */ | ||
361 | PINMUX_DATA(PTH7_DATA, PTH7_OUT), | ||
362 | PINMUX_DATA(PTH6_DATA, PTH6_OUT, PTH6_IN, PTH6_IN_PD), | ||
363 | PINMUX_DATA(PTH5_DATA, PTH5_OUT, PTH5_IN, PTH5_IN_PD), | ||
364 | PINMUX_DATA(PTH4_DATA, PTH4_OUT), | ||
365 | PINMUX_DATA(PTH3_DATA, PTH3_OUT), | ||
366 | PINMUX_DATA(PTH2_DATA, PTH2_OUT), | ||
367 | PINMUX_DATA(PTH1_DATA, PTH1_OUT, PTH1_IN, PTH1_IN_PD), | ||
368 | PINMUX_DATA(PTH0_DATA, PTH0_OUT, PTH0_IN, PTH0_IN_PD), | ||
369 | |||
370 | /* PTJ */ | ||
371 | PINMUX_DATA(PTJ7_DATA, PTJ7_OUT), | ||
372 | PINMUX_DATA(PTJ6_DATA, PTJ6_OUT), | ||
373 | PINMUX_DATA(PTJ5_DATA, PTJ5_OUT), | ||
374 | PINMUX_DATA(PTJ1_DATA, PTJ1_OUT, PTJ1_IN, PTJ1_IN_PU), | ||
375 | PINMUX_DATA(PTJ0_DATA, PTJ0_OUT, PTJ0_IN, PTJ0_IN_PU), | ||
376 | |||
377 | /* PTK */ | ||
378 | PINMUX_DATA(PTK6_DATA, PTK6_OUT, PTK6_IN, PTK6_IN_PD), | ||
379 | PINMUX_DATA(PTK5_DATA, PTK5_OUT, PTK5_IN, PTK5_IN_PD), | ||
380 | PINMUX_DATA(PTK4_DATA, PTK4_OUT, PTK4_IN, PTK4_IN_PD), | ||
381 | PINMUX_DATA(PTK3_DATA, PTK3_OUT, PTK3_IN, PTK3_IN_PD), | ||
382 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_IN_PD), | ||
383 | PINMUX_DATA(PTK1_DATA, PTK1_OUT), | ||
384 | PINMUX_DATA(PTK0_DATA, PTK0_OUT, PTK0_IN, PTK0_IN_PD), | ||
385 | |||
386 | /* PTL */ | ||
387 | PINMUX_DATA(PTL7_DATA, PTL7_OUT, PTL7_IN, PTL7_IN_PD), | ||
388 | PINMUX_DATA(PTL6_DATA, PTL6_OUT, PTL6_IN, PTL6_IN_PD), | ||
389 | PINMUX_DATA(PTL5_DATA, PTL5_OUT, PTL5_IN, PTL5_IN_PD), | ||
390 | PINMUX_DATA(PTL4_DATA, PTL4_OUT, PTL4_IN, PTL4_IN_PD), | ||
391 | PINMUX_DATA(PTL3_DATA, PTL3_OUT, PTL3_IN, PTL3_IN_PD), | ||
392 | PINMUX_DATA(PTL2_DATA, PTL2_OUT, PTL2_IN, PTL2_IN_PD), | ||
393 | PINMUX_DATA(PTL1_DATA, PTL1_OUT, PTL1_IN, PTL1_IN_PD), | ||
394 | PINMUX_DATA(PTL0_DATA, PTL0_OUT, PTL0_IN, PTL0_IN_PD), | ||
395 | |||
396 | /* PTM */ | ||
397 | PINMUX_DATA(PTM7_DATA, PTM7_OUT, PTM7_IN, PTM7_IN_PD), | ||
398 | PINMUX_DATA(PTM6_DATA, PTM6_OUT, PTM6_IN, PTM6_IN_PD), | ||
399 | PINMUX_DATA(PTM5_DATA, PTM5_OUT, PTM5_IN, PTM5_IN_PD), | ||
400 | PINMUX_DATA(PTM4_DATA, PTM4_OUT, PTM4_IN, PTM4_IN_PD), | ||
401 | PINMUX_DATA(PTM3_DATA, PTM3_OUT, PTM3_IN, PTM3_IN_PD), | ||
402 | PINMUX_DATA(PTM2_DATA, PTM2_OUT, PTM2_IN, PTM2_IN_PD), | ||
403 | PINMUX_DATA(PTM1_DATA, PTM1_OUT, PTM1_IN, PTM1_IN_PD), | ||
404 | PINMUX_DATA(PTM0_DATA, PTM0_OUT, PTM0_IN, PTM0_IN_PD), | ||
405 | |||
406 | /* PTN */ | ||
407 | PINMUX_DATA(PTN7_DATA, PTN7_OUT, PTN7_IN), | ||
408 | PINMUX_DATA(PTN6_DATA, PTN6_OUT, PTN6_IN), | ||
409 | PINMUX_DATA(PTN5_DATA, PTN5_OUT, PTN5_IN), | ||
410 | PINMUX_DATA(PTN4_DATA, PTN4_OUT, PTN4_IN), | ||
411 | PINMUX_DATA(PTN3_DATA, PTN3_OUT, PTN3_IN), | ||
412 | PINMUX_DATA(PTN2_DATA, PTN2_OUT, PTN2_IN), | ||
413 | PINMUX_DATA(PTN1_DATA, PTN1_OUT, PTN1_IN), | ||
414 | PINMUX_DATA(PTN0_DATA, PTN0_OUT, PTN0_IN), | ||
415 | |||
416 | /* PTQ */ | ||
417 | PINMUX_DATA(PTQ6_DATA, PTQ6_OUT), | ||
418 | PINMUX_DATA(PTQ5_DATA, PTQ5_OUT, PTQ5_IN, PTQ5_IN_PD), | ||
419 | PINMUX_DATA(PTQ4_DATA, PTQ4_OUT, PTQ4_IN, PTQ4_IN_PD), | ||
420 | PINMUX_DATA(PTQ3_DATA, PTQ3_OUT, PTQ3_IN, PTQ3_IN_PD), | ||
421 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN, PTQ2_IN_PD), | ||
422 | PINMUX_DATA(PTQ1_DATA, PTQ1_OUT), | ||
423 | PINMUX_DATA(PTQ0_DATA, PTQ0_OUT, PTQ0_IN, PTQ0_IN_PU), | ||
424 | |||
425 | /* PTR */ | ||
426 | PINMUX_DATA(PTR4_DATA, PTR4_OUT), | ||
427 | PINMUX_DATA(PTR3_DATA, PTR3_OUT), | ||
428 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_IN_PU), | ||
429 | PINMUX_DATA(PTR1_DATA, PTR1_OUT), | ||
430 | PINMUX_DATA(PTR0_DATA, PTR0_OUT), | ||
431 | |||
432 | /* PTS */ | ||
433 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_IN_PD), | ||
434 | PINMUX_DATA(PTS3_DATA, PTS3_OUT), | ||
435 | PINMUX_DATA(PTS2_DATA, PTS2_OUT, PTS2_IN, PTS2_IN_PD), | ||
436 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_IN_PD), | ||
437 | PINMUX_DATA(PTS0_DATA, PTS0_OUT), | ||
438 | |||
439 | /* PTT */ | ||
440 | PINMUX_DATA(PTT4_DATA, PTT4_OUT, PTT4_IN, PTT4_IN_PD), | ||
441 | PINMUX_DATA(PTT3_DATA, PTT3_OUT, PTT3_IN, PTT3_IN_PD), | ||
442 | PINMUX_DATA(PTT2_DATA, PTT2_OUT, PTT2_IN, PTT2_IN_PD), | ||
443 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_IN_PD), | ||
444 | PINMUX_DATA(PTT0_DATA, PTT0_OUT), | ||
445 | |||
446 | /* PTU */ | ||
447 | PINMUX_DATA(PTU4_DATA, PTU4_OUT, PTU4_IN, PTU4_IN_PD), | ||
448 | PINMUX_DATA(PTU3_DATA, PTU3_OUT, PTU3_IN, PTU3_IN_PD), | ||
449 | PINMUX_DATA(PTU2_DATA, PTU2_OUT, PTU2_IN, PTU2_IN_PD), | ||
450 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_IN_PD), | ||
451 | PINMUX_DATA(PTU0_DATA, PTU0_OUT, PTU0_IN, PTU0_IN_PD), | ||
452 | |||
453 | /* PTV */ | ||
454 | PINMUX_DATA(PTV4_DATA, PTV4_OUT, PTV4_IN, PTV4_IN_PD), | ||
455 | PINMUX_DATA(PTV3_DATA, PTV3_OUT, PTV3_IN, PTV3_IN_PD), | ||
456 | PINMUX_DATA(PTV2_DATA, PTV2_OUT, PTV2_IN, PTV2_IN_PD), | ||
457 | PINMUX_DATA(PTV1_DATA, PTV1_OUT, PTV1_IN, PTV1_IN_PD), | ||
458 | PINMUX_DATA(PTV0_DATA, PTV0_OUT, PTV0_IN, PTV0_IN_PD), | ||
459 | |||
460 | /* PTW */ | ||
461 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_IN_PD), | ||
462 | PINMUX_DATA(PTW5_DATA, PTW5_OUT), | ||
463 | PINMUX_DATA(PTW4_DATA, PTW4_OUT, PTW4_IN, PTW4_IN_PD), | ||
464 | PINMUX_DATA(PTW3_DATA, PTW3_OUT, PTW3_IN, PTW3_IN_PD), | ||
465 | PINMUX_DATA(PTW2_DATA, PTW2_OUT, PTW2_IN, PTW2_IN_PD), | ||
466 | PINMUX_DATA(PTW1_DATA, PTW1_OUT, PTW1_IN, PTW1_IN_PD), | ||
467 | PINMUX_DATA(PTW0_DATA, PTW0_OUT, PTW0_IN, PTW0_IN_PD), | ||
468 | |||
469 | /* PTX */ | ||
470 | PINMUX_DATA(PTX6_DATA, PTX6_OUT, PTX6_IN, PTX6_IN_PD), | ||
471 | PINMUX_DATA(PTX5_DATA, PTX5_OUT, PTX5_IN, PTX5_IN_PD), | ||
472 | PINMUX_DATA(PTX4_DATA, PTX4_OUT, PTX4_IN, PTX4_IN_PD), | ||
473 | PINMUX_DATA(PTX3_DATA, PTX3_OUT, PTX3_IN, PTX3_IN_PD), | ||
474 | PINMUX_DATA(PTX2_DATA, PTX2_OUT, PTX2_IN, PTX2_IN_PD), | ||
475 | PINMUX_DATA(PTX1_DATA, PTX1_OUT, PTX1_IN, PTX1_IN_PD), | ||
476 | PINMUX_DATA(PTX0_DATA, PTX0_OUT, PTX0_IN, PTX0_IN_PD), | ||
477 | |||
478 | /* PTY */ | ||
479 | PINMUX_DATA(PTY5_DATA, PTY5_OUT, PTY5_IN, PTY5_IN_PU), | ||
480 | PINMUX_DATA(PTY4_DATA, PTY4_OUT, PTY4_IN, PTY4_IN_PU), | ||
481 | PINMUX_DATA(PTY3_DATA, PTY3_OUT, PTY3_IN, PTY3_IN_PU), | ||
482 | PINMUX_DATA(PTY2_DATA, PTY2_OUT, PTY2_IN, PTY2_IN_PU), | ||
483 | PINMUX_DATA(PTY1_DATA, PTY1_OUT), | ||
484 | PINMUX_DATA(PTY0_DATA, PTY0_OUT, PTY0_IN, PTY0_IN_PU), | ||
485 | |||
486 | /* PTZ */ | ||
487 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_IN_PU), | ||
488 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_IN_PU), | ||
489 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_IN_PU), | ||
490 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_IN_PU), | ||
491 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_IN_PU), | ||
492 | |||
493 | /* SCIF0 */ | ||
494 | PINMUX_DATA(SCIF0_TXD_MARK, SCIF0_TXD), | ||
495 | PINMUX_DATA(SCIF0_RXD_MARK, SCIF0_RXD), | ||
496 | PINMUX_DATA(SCIF0_RTS_MARK, PSD7_SCIF0_RTS, SCIF0_RTS_SIUAOSPD), | ||
497 | PINMUX_DATA(SCIF0_CTS_MARK, PSD6_SCIF0_CTS, SCIF0_CTS_SIUAISPD), | ||
498 | PINMUX_DATA(SCIF0_SCK_MARK, PSD8_SCIF0_SCK, SCIF0_SCK_TPUTO), | ||
499 | |||
500 | /* SCIF1 */ | ||
501 | PINMUX_DATA(SCIF1_TXD_MARK, PSD11_SCIF1, VIO_D5_SCIF1_TXD), | ||
502 | PINMUX_DATA(SCIF1_RXD_MARK, PSD11_SCIF1, VIO_D6_SCIF1_RXD), | ||
503 | PINMUX_DATA(SCIF1_RTS_MARK, PSD12_SCIF1, VIO_CLK_SCIF1_RTS), | ||
504 | PINMUX_DATA(SCIF1_CTS_MARK, PSD12_SCIF1, VIO_VD_SCIF1_CTS), | ||
505 | PINMUX_DATA(SCIF1_SCK_MARK, PSD11_SCIF1, VIO_D7_SCIF1_SCK), | ||
506 | |||
507 | /* SCIF2 */ | ||
508 | PINMUX_DATA(SCIF2_TXD_MARK, PSD13_SCIF2, VIO_STEM_SCIF2_TXD), | ||
509 | PINMUX_DATA(SCIF2_RXD_MARK, PSD13_SCIF2, VIO_HD_SCIF2_RXD), | ||
510 | PINMUX_DATA(SCIF2_RTS_MARK, PSD13_SCIF2, VIO_CKO_SCIF2_RTS), | ||
511 | PINMUX_DATA(SCIF2_CTS_MARK, PSD13_SCIF2, VIO_FLD_SCIF2_CTS), | ||
512 | PINMUX_DATA(SCIF2_SCK_MARK, PSD13_SCIF2, VIO_STEX_SCIF2_SCK), | ||
513 | |||
514 | /* SIO */ | ||
515 | PINMUX_DATA(SIOTXD_MARK, PSB15_SIOTXD, SIOTXD_SIUBOSLD), | ||
516 | PINMUX_DATA(SIORXD_MARK, PSB14_SIORXD, SIORXD_SIUBISLD), | ||
517 | PINMUX_DATA(SIOD_MARK, PSB13_SIOD, SIOD_SIUBILR), | ||
518 | PINMUX_DATA(SIOSTRB0_MARK, PSB12_SIOSTRB0, SIOSTRB0_SIUBIBT), | ||
519 | PINMUX_DATA(SIOSTRB1_MARK, PSB11_SIOSTRB1, SIOSTRB1_SIUBOLR), | ||
520 | PINMUX_DATA(SIOSCK_MARK, PSB10_SIOSCK, SIOSCK_SIUBOBT), | ||
521 | PINMUX_DATA(SIOMCK_MARK, PSD9_SIOMCK_SIUMCKB, PSB9_SIOMCK, PTF6), | ||
522 | |||
523 | /* CEU */ | ||
524 | PINMUX_DATA(VIO_D15_MARK, PSC0_VIO, HIZA10_NAF, NAF7_VIO_D15), | ||
525 | PINMUX_DATA(VIO_D14_MARK, PSC0_VIO, HIZA10_NAF, NAF6_VIO_D14), | ||
526 | PINMUX_DATA(VIO_D13_MARK, PSC0_VIO, HIZA10_NAF, NAF5_VIO_D13), | ||
527 | PINMUX_DATA(VIO_D12_MARK, PSC0_VIO, HIZA10_NAF, NAF4_VIO_D12), | ||
528 | PINMUX_DATA(VIO_D11_MARK, PSC0_VIO, HIZA10_NAF, NAF3_VIO_D11), | ||
529 | PINMUX_DATA(VIO_D10_MARK, PSE2_VIO_D10, HIZB0_VIO, NAF2_VIO_D10), | ||
530 | PINMUX_DATA(VIO_D9_MARK, PSE1_VIO_D9, HIZB0_VIO, NAF1_VIO_D9), | ||
531 | PINMUX_DATA(VIO_D8_MARK, PSE0_VIO_D8, HIZB0_VIO, NAF0_VIO_D8), | ||
532 | PINMUX_DATA(VIO_D7_MARK, PSD11_VIO, VIO_D7_SCIF1_SCK), | ||
533 | PINMUX_DATA(VIO_D6_MARK, PSD11_VIO, VIO_D6_SCIF1_RXD), | ||
534 | PINMUX_DATA(VIO_D5_MARK, PSD11_VIO, VIO_D5_SCIF1_TXD), | ||
535 | PINMUX_DATA(VIO_D4_MARK, VIO_D4), | ||
536 | PINMUX_DATA(VIO_D3_MARK, VIO_D3), | ||
537 | PINMUX_DATA(VIO_D2_MARK, VIO_D2), | ||
538 | PINMUX_DATA(VIO_D1_MARK, VIO_D1), | ||
539 | PINMUX_DATA(VIO_D0_MARK, PSD10_VIO_D0, VIO_D0_LCDLCLK), | ||
540 | PINMUX_DATA(VIO_CLK_MARK, PSD12_VIO, MSELB9_VIO, VIO_CLK_SCIF1_RTS), | ||
541 | PINMUX_DATA(VIO_VD_MARK, PSD12_VIO, MSELB9_VIO, VIO_VD_SCIF1_CTS), | ||
542 | PINMUX_DATA(VIO_HD_MARK, PSD13_VIO, MSELB9_VIO, VIO_HD_SCIF2_RXD), | ||
543 | PINMUX_DATA(VIO_FLD_MARK, PSD13_VIO, HIZA9_VIO, VIO_FLD_SCIF2_CTS), | ||
544 | PINMUX_DATA(VIO_CKO_MARK, PSD13_VIO, HIZA9_VIO, VIO_CKO_SCIF2_RTS), | ||
545 | PINMUX_DATA(VIO_STEX_MARK, PSD13_VIO, HIZA9_VIO, VIO_STEX_SCIF2_SCK), | ||
546 | PINMUX_DATA(VIO_STEM_MARK, PSD13_VIO, HIZA9_VIO, VIO_STEM_SCIF2_TXD), | ||
547 | PINMUX_DATA(VIO_VD2_MARK, PSE3_VIO, MSELB9_VIO2, | ||
548 | HIZB0_VIO, FOE_VIO_VD2), | ||
549 | PINMUX_DATA(VIO_HD2_MARK, PSE3_VIO, MSELB9_VIO2, | ||
550 | HIZB1_VIO, FCE_VIO_HD2), | ||
551 | PINMUX_DATA(VIO_CLK2_MARK, PSE3_VIO, MSELB9_VIO2, | ||
552 | HIZB1_VIO, FRB_VIO_CLK2), | ||
553 | |||
554 | /* LCDC */ | ||
555 | PINMUX_DATA(LCDD23_MARK, HIZA8_LCDC, LCDD23), | ||
556 | PINMUX_DATA(LCDD22_MARK, HIZA8_LCDC, LCDD22), | ||
557 | PINMUX_DATA(LCDD21_MARK, HIZA8_LCDC, LCDD21), | ||
558 | PINMUX_DATA(LCDD20_MARK, HIZA8_LCDC, LCDD20), | ||
559 | PINMUX_DATA(LCDD19_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD19_DV_CLKI), | ||
560 | PINMUX_DATA(LCDD18_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD18_DV_CLK), | ||
561 | PINMUX_DATA(LCDD17_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, | ||
562 | LCDD17_DV_HSYNC), | ||
563 | PINMUX_DATA(LCDD16_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, | ||
564 | LCDD16_DV_VSYNC), | ||
565 | PINMUX_DATA(LCDD15_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD15_DV_D15), | ||
566 | PINMUX_DATA(LCDD14_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD14_DV_D14), | ||
567 | PINMUX_DATA(LCDD13_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD13_DV_D13), | ||
568 | PINMUX_DATA(LCDD12_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD12_DV_D12), | ||
569 | PINMUX_DATA(LCDD11_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD11_DV_D11), | ||
570 | PINMUX_DATA(LCDD10_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD10_DV_D10), | ||
571 | PINMUX_DATA(LCDD9_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD9_DV_D9), | ||
572 | PINMUX_DATA(LCDD8_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD8_DV_D8), | ||
573 | PINMUX_DATA(LCDD7_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD7_DV_D7), | ||
574 | PINMUX_DATA(LCDD6_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD6_DV_D6), | ||
575 | PINMUX_DATA(LCDD5_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD5_DV_D5), | ||
576 | PINMUX_DATA(LCDD4_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD4_DV_D4), | ||
577 | PINMUX_DATA(LCDD3_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD3_DV_D3), | ||
578 | PINMUX_DATA(LCDD2_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD2_DV_D2), | ||
579 | PINMUX_DATA(LCDD1_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD1_DV_D1), | ||
580 | PINMUX_DATA(LCDD0_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD0_DV_D0), | ||
581 | PINMUX_DATA(LCDLCLK_MARK, PSD10_LCDLCLK, VIO_D0_LCDLCLK), | ||
582 | /* Main LCD */ | ||
583 | PINMUX_DATA(LCDDON_MARK, PSD2_LCDDON, HIZA7_LCDC, LCDDON_LCDDON2), | ||
584 | PINMUX_DATA(LCDVCPWC_MARK, PSD3_LCDVEPWC_LCDVCPWC, | ||
585 | HIZA6_LCDC, LCDVCPWC_LCDVCPWC2), | ||
586 | PINMUX_DATA(LCDVEPWC_MARK, PSD3_LCDVEPWC_LCDVCPWC, | ||
587 | HIZA6_LCDC, LCDVEPWC_LCDVEPWC2), | ||
588 | PINMUX_DATA(LCDVSYN_MARK, HIZA7_LCDC, LCDVSYN), | ||
589 | /* Main LCD - RGB Mode */ | ||
590 | PINMUX_DATA(LCDDCK_MARK, MSELB8_RGB, HIZA8_LCDC, LCDDCK_LCDWR), | ||
591 | PINMUX_DATA(LCDHSYN_MARK, MSELB8_RGB, HIZA7_LCDC, LCDHSYN_LCDCS), | ||
592 | PINMUX_DATA(LCDDISP_MARK, MSELB8_RGB, HIZA7_LCDC, LCDDISP_LCDRS), | ||
593 | /* Main LCD - SYS Mode */ | ||
594 | PINMUX_DATA(LCDRS_MARK, MSELB8_SYS, HIZA7_LCDC, LCDDISP_LCDRS), | ||
595 | PINMUX_DATA(LCDCS_MARK, MSELB8_SYS, HIZA7_LCDC, LCDHSYN_LCDCS), | ||
596 | PINMUX_DATA(LCDWR_MARK, MSELB8_SYS, HIZA8_LCDC, LCDDCK_LCDWR), | ||
597 | PINMUX_DATA(LCDRD_MARK, HIZA7_LCDC, LCDRD), | ||
598 | /* Sub LCD - SYS Mode */ | ||
599 | PINMUX_DATA(LCDDON2_MARK, PSD2_LCDDON2, HIZA7_LCDC, LCDDON_LCDDON2), | ||
600 | PINMUX_DATA(LCDVCPWC2_MARK, PSD3_LCDVEPWC2_LCDVCPWC2, | ||
601 | HIZA6_LCDC, LCDVCPWC_LCDVCPWC2), | ||
602 | PINMUX_DATA(LCDVEPWC2_MARK, PSD3_LCDVEPWC2_LCDVCPWC2, | ||
603 | HIZA6_LCDC, LCDVEPWC_LCDVEPWC2), | ||
604 | PINMUX_DATA(LCDVSYN2_MARK, PSE12_LCDVSYN2, HIZA8_LCDC, LCDVSYN2_DACK), | ||
605 | PINMUX_DATA(LCDCS2_MARK, PSD5_LCDCS2, CS6B_CE1B_LCDCS2), | ||
606 | |||
607 | /* BSC */ | ||
608 | PINMUX_DATA(IOIS16_MARK, IOIS16), | ||
609 | PINMUX_DATA(A25_MARK, A25), | ||
610 | PINMUX_DATA(A24_MARK, A24), | ||
611 | PINMUX_DATA(A23_MARK, A23), | ||
612 | PINMUX_DATA(A22_MARK, A22), | ||
613 | PINMUX_DATA(BS_MARK, PSA9_BS, IRQ4_BS), | ||
614 | PINMUX_DATA(CS6B_CE1B_MARK, PSD5_CS6B_CE1B, CS6B_CE1B_LCDCS2), | ||
615 | PINMUX_DATA(WAIT_MARK, WAIT), | ||
616 | PINMUX_DATA(CS6A_CE2B_MARK, CS6A_CE2B), | ||
617 | |||
618 | /* SBSC */ | ||
619 | PINMUX_DATA(HPD63_MARK, HPD63), | ||
620 | PINMUX_DATA(HPD62_MARK, HPD62), | ||
621 | PINMUX_DATA(HPD61_MARK, HPD61), | ||
622 | PINMUX_DATA(HPD60_MARK, HPD60), | ||
623 | PINMUX_DATA(HPD59_MARK, HPD59), | ||
624 | PINMUX_DATA(HPD58_MARK, HPD58), | ||
625 | PINMUX_DATA(HPD57_MARK, HPD57), | ||
626 | PINMUX_DATA(HPD56_MARK, HPD56), | ||
627 | PINMUX_DATA(HPD55_MARK, HPD55), | ||
628 | PINMUX_DATA(HPD54_MARK, HPD54), | ||
629 | PINMUX_DATA(HPD53_MARK, HPD53), | ||
630 | PINMUX_DATA(HPD52_MARK, HPD52), | ||
631 | PINMUX_DATA(HPD51_MARK, HPD51), | ||
632 | PINMUX_DATA(HPD50_MARK, HPD50), | ||
633 | PINMUX_DATA(HPD49_MARK, HPD49), | ||
634 | PINMUX_DATA(HPD48_MARK, HPD48), | ||
635 | PINMUX_DATA(HPDQM7_MARK, HPDQM7), | ||
636 | PINMUX_DATA(HPDQM6_MARK, HPDQM6), | ||
637 | PINMUX_DATA(HPDQM5_MARK, HPDQM5), | ||
638 | PINMUX_DATA(HPDQM4_MARK, HPDQM4), | ||
639 | |||
640 | /* IRQ */ | ||
641 | PINMUX_DATA(IRQ0_MARK, HIZC8_IRQ0, IRQ0), | ||
642 | PINMUX_DATA(IRQ1_MARK, HIZC9_IRQ1, IRQ1), | ||
643 | PINMUX_DATA(IRQ2_MARK, PSA4_IRQ2, HIZC10_IRQ2, IRQ2_SDHID2), | ||
644 | PINMUX_DATA(IRQ3_MARK, PSE15_SIOF0_MCK_IRQ3, PSB8_IRQ3, | ||
645 | HIZC11_IRQ3, PTQ0), | ||
646 | PINMUX_DATA(IRQ4_MARK, PSA9_IRQ4, HIZC12_IRQ4, IRQ4_BS), | ||
647 | PINMUX_DATA(IRQ5_MARK, HIZC13_IRQ5, IRQ5), | ||
648 | PINMUX_DATA(IRQ6_MARK, PSA15_IRQ6, HIZC14_IRQ6, KEYIN0_IRQ6), | ||
649 | PINMUX_DATA(IRQ7_MARK, PSA14_IRQ7, HIZC15_IRQ7, KEYIN4_IRQ7), | ||
650 | |||
651 | /* SDHI */ | ||
652 | PINMUX_DATA(SDHICD_MARK, SDHICD), | ||
653 | PINMUX_DATA(SDHIWP_MARK, SDHIWP), | ||
654 | PINMUX_DATA(SDHID3_MARK, SDHID3), | ||
655 | PINMUX_DATA(SDHID2_MARK, PSA4_SDHID2, IRQ2_SDHID2), | ||
656 | PINMUX_DATA(SDHID1_MARK, SDHID1), | ||
657 | PINMUX_DATA(SDHID0_MARK, SDHID0), | ||
658 | PINMUX_DATA(SDHICMD_MARK, SDHICMD), | ||
659 | PINMUX_DATA(SDHICLK_MARK, SDHICLK), | ||
660 | |||
661 | /* SIU - Port A */ | ||
662 | PINMUX_DATA(SIUAOLR_MARK, PSC13_SIUAOLR, HIZB4_SIUA, SIUAOLR_SIOF1_SYNC), | ||
663 | PINMUX_DATA(SIUAOBT_MARK, PSC14_SIUAOBT, HIZB4_SIUA, SIUAOBT_SIOF1_SCK), | ||
664 | PINMUX_DATA(SIUAISLD_MARK, PSC15_SIUAISLD, HIZB4_SIUA, SIUAISLD_SIOF1_RXD), | ||
665 | PINMUX_DATA(SIUAILR_MARK, PSC11_SIUAILR, HIZB4_SIUA, SIUAILR_SIOF1_SS2), | ||
666 | PINMUX_DATA(SIUAIBT_MARK, PSC12_SIUAIBT, HIZB4_SIUA, SIUAIBT_SIOF1_SS1), | ||
667 | PINMUX_DATA(SIUAOSLD_MARK, PSB0_SIUAOSLD, HIZB4_SIUA, SIUAOSLD_SIOF1_TXD), | ||
668 | PINMUX_DATA(SIUMCKA_MARK, PSE11_SIUMCKA_SIOF1_MCK, HIZB4_SIUA, PSB1_SIUMCKA, PTK0), | ||
669 | PINMUX_DATA(SIUFCKA_MARK, PSE11_SIUFCKA, HIZB4_SIUA, PTK0), | ||
670 | |||
671 | /* SIU - Port B */ | ||
672 | PINMUX_DATA(SIUBOLR_MARK, PSB11_SIUBOLR, SIOSTRB1_SIUBOLR), | ||
673 | PINMUX_DATA(SIUBOBT_MARK, PSB10_SIUBOBT, SIOSCK_SIUBOBT), | ||
674 | PINMUX_DATA(SIUBISLD_MARK, PSB14_SIUBISLD, SIORXD_SIUBISLD), | ||
675 | PINMUX_DATA(SIUBILR_MARK, PSB13_SIUBILR, SIOD_SIUBILR), | ||
676 | PINMUX_DATA(SIUBIBT_MARK, PSB12_SIUBIBT, SIOSTRB0_SIUBIBT), | ||
677 | PINMUX_DATA(SIUBOSLD_MARK, PSB15_SIUBOSLD, SIOTXD_SIUBOSLD), | ||
678 | PINMUX_DATA(SIUMCKB_MARK, PSD9_SIOMCK_SIUMCKB, PSB9_SIUMCKB, PTF6), | ||
679 | PINMUX_DATA(SIUFCKB_MARK, PSD9_SIUFCKB, PTF6), | ||
680 | |||
681 | /* AUD */ | ||
682 | PINMUX_DATA(AUDSYNC_MARK, AUDSYNC), | ||
683 | PINMUX_DATA(AUDATA3_MARK, AUDATA3), | ||
684 | PINMUX_DATA(AUDATA2_MARK, AUDATA2), | ||
685 | PINMUX_DATA(AUDATA1_MARK, AUDATA1), | ||
686 | PINMUX_DATA(AUDATA0_MARK, AUDATA0), | ||
687 | |||
688 | /* DMAC */ | ||
689 | PINMUX_DATA(DACK_MARK, PSE12_DACK, LCDVSYN2_DACK), | ||
690 | PINMUX_DATA(DREQ0_MARK, DREQ0), | ||
691 | |||
692 | /* VOU */ | ||
693 | PINMUX_DATA(DV_CLKI_MARK, PSD0_DV, LCDD19_DV_CLKI), | ||
694 | PINMUX_DATA(DV_CLK_MARK, PSD0_DV, LCDD18_DV_CLK), | ||
695 | PINMUX_DATA(DV_HSYNC_MARK, PSD0_DV, LCDD17_DV_HSYNC), | ||
696 | PINMUX_DATA(DV_VSYNC_MARK, PSD0_DV, LCDD16_DV_VSYNC), | ||
697 | PINMUX_DATA(DV_D15_MARK, PSD0_DV, LCDD15_DV_D15), | ||
698 | PINMUX_DATA(DV_D14_MARK, PSD0_DV, LCDD14_DV_D14), | ||
699 | PINMUX_DATA(DV_D13_MARK, PSD0_DV, LCDD13_DV_D13), | ||
700 | PINMUX_DATA(DV_D12_MARK, PSD0_DV, LCDD12_DV_D12), | ||
701 | PINMUX_DATA(DV_D11_MARK, PSD0_DV, LCDD11_DV_D11), | ||
702 | PINMUX_DATA(DV_D10_MARK, PSD0_DV, LCDD10_DV_D10), | ||
703 | PINMUX_DATA(DV_D9_MARK, PSD0_DV, LCDD9_DV_D9), | ||
704 | PINMUX_DATA(DV_D8_MARK, PSD0_DV, LCDD8_DV_D8), | ||
705 | PINMUX_DATA(DV_D7_MARK, PSD0_DV, LCDD7_DV_D7), | ||
706 | PINMUX_DATA(DV_D6_MARK, PSD0_DV, LCDD6_DV_D6), | ||
707 | PINMUX_DATA(DV_D5_MARK, PSD0_DV, LCDD5_DV_D5), | ||
708 | PINMUX_DATA(DV_D4_MARK, PSD0_DV, LCDD4_DV_D4), | ||
709 | PINMUX_DATA(DV_D3_MARK, PSD0_DV, LCDD3_DV_D3), | ||
710 | PINMUX_DATA(DV_D2_MARK, PSD0_DV, LCDD2_DV_D2), | ||
711 | PINMUX_DATA(DV_D1_MARK, PSD0_DV, LCDD1_DV_D1), | ||
712 | PINMUX_DATA(DV_D0_MARK, PSD0_DV, LCDD0_DV_D0), | ||
713 | |||
714 | /* CPG */ | ||
715 | PINMUX_DATA(STATUS0_MARK, STATUS0), | ||
716 | PINMUX_DATA(PDSTATUS_MARK, PDSTATUS), | ||
717 | |||
718 | /* SIOF0 */ | ||
719 | PINMUX_DATA(SIOF0_MCK_MARK, PSE15_SIOF0_MCK_IRQ3, PSB8_SIOF0_MCK, PTQ0), | ||
720 | PINMUX_DATA(SIOF0_SCK_MARK, PSB5_SIOF0_SCK, SIOF0_SCK_TS_SCK), | ||
721 | PINMUX_DATA(SIOF0_SYNC_MARK, PSB4_SIOF0_SYNC, SIOF0_SYNC_TS_SDEN), | ||
722 | PINMUX_DATA(SIOF0_SS1_MARK, PSB3_SIOF0_SS1, SIOF0_SS1_TS_SPSYNC), | ||
723 | PINMUX_DATA(SIOF0_SS2_MARK, PSB2_SIOF0_SS2, SIOF0_SS2_SIM_RST), | ||
724 | PINMUX_DATA(SIOF0_TXD_MARK, PSE14_SIOF0_TXD_IRDA_OUT, | ||
725 | PSB7_SIOF0_TXD, PTQ1), | ||
726 | PINMUX_DATA(SIOF0_RXD_MARK, PSE13_SIOF0_RXD_IRDA_IN, | ||
727 | PSB6_SIOF0_RXD, PTQ2), | ||
728 | |||
729 | /* SIOF1 */ | ||
730 | PINMUX_DATA(SIOF1_MCK_MARK, PSE11_SIUMCKA_SIOF1_MCK, | ||
731 | PSB1_SIOF1_MCK, PTK0), | ||
732 | PINMUX_DATA(SIOF1_SCK_MARK, PSC14_SIOF1_SCK, SIUAOBT_SIOF1_SCK), | ||
733 | PINMUX_DATA(SIOF1_SYNC_MARK, PSC13_SIOF1_SYNC, SIUAOLR_SIOF1_SYNC), | ||
734 | PINMUX_DATA(SIOF1_SS1_MARK, PSC12_SIOF1_SS1, SIUAIBT_SIOF1_SS1), | ||
735 | PINMUX_DATA(SIOF1_SS2_MARK, PSC11_SIOF1_SS2, SIUAILR_SIOF1_SS2), | ||
736 | PINMUX_DATA(SIOF1_TXD_MARK, PSB0_SIOF1_TXD, SIUAOSLD_SIOF1_TXD), | ||
737 | PINMUX_DATA(SIOF1_RXD_MARK, PSC15_SIOF1_RXD, SIUAISLD_SIOF1_RXD), | ||
738 | |||
739 | /* SIM */ | ||
740 | PINMUX_DATA(SIM_D_MARK, PSE15_SIM_D, PTQ0), | ||
741 | PINMUX_DATA(SIM_CLK_MARK, PSE14_SIM_CLK, PTQ1), | ||
742 | PINMUX_DATA(SIM_RST_MARK, PSB2_SIM_RST, SIOF0_SS2_SIM_RST), | ||
743 | |||
744 | /* TSIF */ | ||
745 | PINMUX_DATA(TS_SDAT_MARK, PSE13_TS_SDAT, PTQ2), | ||
746 | PINMUX_DATA(TS_SCK_MARK, PSB5_TS_SCK, SIOF0_SCK_TS_SCK), | ||
747 | PINMUX_DATA(TS_SDEN_MARK, PSB4_TS_SDEN, SIOF0_SYNC_TS_SDEN), | ||
748 | PINMUX_DATA(TS_SPSYNC_MARK, PSB3_TS_SPSYNC, SIOF0_SS1_TS_SPSYNC), | ||
749 | |||
750 | /* IRDA */ | ||
751 | PINMUX_DATA(IRDA_IN_MARK, PSE13_SIOF0_RXD_IRDA_IN, PSB6_IRDA_IN, PTQ2), | ||
752 | PINMUX_DATA(IRDA_OUT_MARK, PSE14_SIOF0_TXD_IRDA_OUT, | ||
753 | PSB7_IRDA_OUT, PTQ1), | ||
754 | |||
755 | /* TPU */ | ||
756 | PINMUX_DATA(TPUTO_MARK, PSD8_TPUTO, SCIF0_SCK_TPUTO), | ||
757 | |||
758 | /* FLCTL */ | ||
759 | PINMUX_DATA(FCE_MARK, PSE3_FLCTL, FCE_VIO_HD2), | ||
760 | PINMUX_DATA(NAF7_MARK, PSC0_NAF, HIZA10_NAF, NAF7_VIO_D15), | ||
761 | PINMUX_DATA(NAF6_MARK, PSC0_NAF, HIZA10_NAF, NAF6_VIO_D14), | ||
762 | PINMUX_DATA(NAF5_MARK, PSC0_NAF, HIZA10_NAF, NAF5_VIO_D13), | ||
763 | PINMUX_DATA(NAF4_MARK, PSC0_NAF, HIZA10_NAF, NAF4_VIO_D12), | ||
764 | PINMUX_DATA(NAF3_MARK, PSC0_NAF, HIZA10_NAF, NAF3_VIO_D11), | ||
765 | PINMUX_DATA(NAF2_MARK, PSE2_NAF2, HIZB0_VIO, NAF2_VIO_D10), | ||
766 | PINMUX_DATA(NAF1_MARK, PSE1_NAF1, HIZB0_VIO, NAF1_VIO_D9), | ||
767 | PINMUX_DATA(NAF0_MARK, PSE0_NAF0, HIZB0_VIO, NAF0_VIO_D8), | ||
768 | PINMUX_DATA(FCDE_MARK, FCDE), | ||
769 | PINMUX_DATA(FOE_MARK, PSE3_FLCTL, HIZB0_VIO, FOE_VIO_VD2), | ||
770 | PINMUX_DATA(FSC_MARK, FSC), | ||
771 | PINMUX_DATA(FWE_MARK, FWE), | ||
772 | PINMUX_DATA(FRB_MARK, PSE3_FLCTL, FRB_VIO_CLK2), | ||
773 | |||
774 | /* KEYSC */ | ||
775 | PINMUX_DATA(KEYIN0_MARK, PSA15_KEYIN0, HIZC14_IRQ6, KEYIN0_IRQ6), | ||
776 | PINMUX_DATA(KEYIN1_MARK, HIZA14_KEYSC, KEYIN1), | ||
777 | PINMUX_DATA(KEYIN2_MARK, HIZA14_KEYSC, KEYIN2), | ||
778 | PINMUX_DATA(KEYIN3_MARK, HIZA14_KEYSC, KEYIN3), | ||
779 | PINMUX_DATA(KEYIN4_MARK, PSA14_KEYIN4, HIZC15_IRQ7, KEYIN4_IRQ7), | ||
780 | PINMUX_DATA(KEYOUT0_MARK, HIZA14_KEYSC, KEYOUT0), | ||
781 | PINMUX_DATA(KEYOUT1_MARK, HIZA14_KEYSC, KEYOUT1), | ||
782 | PINMUX_DATA(KEYOUT2_MARK, HIZA14_KEYSC, KEYOUT2), | ||
783 | PINMUX_DATA(KEYOUT3_MARK, HIZA14_KEYSC, KEYOUT3), | ||
784 | PINMUX_DATA(KEYOUT4_IN6_MARK, HIZA14_KEYSC, KEYOUT4_IN6), | ||
785 | PINMUX_DATA(KEYOUT5_IN5_MARK, HIZA14_KEYSC, KEYOUT5_IN5), | ||
786 | }; | ||
787 | |||
788 | static struct pinmux_gpio pinmux_gpios[] = { | ||
789 | /* PTA */ | ||
790 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
791 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
792 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
793 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
794 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
795 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
796 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
797 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
798 | |||
799 | /* PTB */ | ||
800 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
801 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
802 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
803 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
804 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
805 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
806 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
807 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
808 | |||
809 | /* PTC */ | ||
810 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
811 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
812 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
813 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
814 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
815 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
816 | |||
817 | /* PTD */ | ||
818 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
819 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
820 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
821 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
822 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
823 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
824 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
825 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
826 | |||
827 | /* PTE */ | ||
828 | PINMUX_GPIO(GPIO_PTE7, PTE7_DATA), | ||
829 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
830 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
831 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
832 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
833 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
834 | |||
835 | /* PTF */ | ||
836 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
837 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
838 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
839 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
840 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
841 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
842 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
843 | |||
844 | /* PTG */ | ||
845 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
846 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
847 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
848 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
849 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
850 | |||
851 | /* PTH */ | ||
852 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
853 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
854 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
855 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
856 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
857 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
858 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
859 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
860 | |||
861 | /* PTJ */ | ||
862 | PINMUX_GPIO(GPIO_PTJ7, PTJ7_DATA), | ||
863 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
864 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
865 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
866 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
867 | |||
868 | /* PTK */ | ||
869 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
870 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
871 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
872 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
873 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
874 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
875 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
876 | |||
877 | /* PTL */ | ||
878 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
879 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
880 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
881 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
882 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
883 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
884 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
885 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
886 | |||
887 | /* PTM */ | ||
888 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
889 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
890 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
891 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
892 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
893 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
894 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
895 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
896 | |||
897 | /* PTN */ | ||
898 | PINMUX_GPIO(GPIO_PTN7, PTN7_DATA), | ||
899 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
900 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
901 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
902 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
903 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
904 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
905 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
906 | |||
907 | /* PTQ */ | ||
908 | PINMUX_GPIO(GPIO_PTQ6, PTQ6_DATA), | ||
909 | PINMUX_GPIO(GPIO_PTQ5, PTQ5_DATA), | ||
910 | PINMUX_GPIO(GPIO_PTQ4, PTQ4_DATA), | ||
911 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
912 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
913 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
914 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
915 | |||
916 | /* PTR */ | ||
917 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
918 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
919 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
920 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
921 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
922 | |||
923 | /* PTS */ | ||
924 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
925 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
926 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
927 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
928 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
929 | |||
930 | /* PTT */ | ||
931 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
932 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
933 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
934 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
935 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
936 | |||
937 | /* PTU */ | ||
938 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
939 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
940 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
941 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
942 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
943 | |||
944 | /* PTV */ | ||
945 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
946 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
947 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
948 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
949 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
950 | |||
951 | /* PTW */ | ||
952 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
953 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
954 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
955 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
956 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
957 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
958 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
959 | |||
960 | /* PTX */ | ||
961 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
962 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
963 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
964 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
965 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
966 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
967 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
968 | |||
969 | /* PTY */ | ||
970 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
971 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
972 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
973 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
974 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
975 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
976 | |||
977 | /* PTZ */ | ||
978 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
979 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
980 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
981 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
982 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
983 | |||
984 | /* SCIF0 */ | ||
985 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
986 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
987 | PINMUX_GPIO(GPIO_FN_SCIF0_RTS, SCIF0_RTS_MARK), | ||
988 | PINMUX_GPIO(GPIO_FN_SCIF0_CTS, SCIF0_CTS_MARK), | ||
989 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
990 | |||
991 | /* SCIF1 */ | ||
992 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
993 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
994 | PINMUX_GPIO(GPIO_FN_SCIF1_RTS, SCIF1_RTS_MARK), | ||
995 | PINMUX_GPIO(GPIO_FN_SCIF1_CTS, SCIF1_CTS_MARK), | ||
996 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
997 | |||
998 | /* SCIF2 */ | ||
999 | PINMUX_GPIO(GPIO_FN_SCIF2_TXD, SCIF2_TXD_MARK), | ||
1000 | PINMUX_GPIO(GPIO_FN_SCIF2_RXD, SCIF2_RXD_MARK), | ||
1001 | PINMUX_GPIO(GPIO_FN_SCIF2_RTS, SCIF2_RTS_MARK), | ||
1002 | PINMUX_GPIO(GPIO_FN_SCIF2_CTS, SCIF2_CTS_MARK), | ||
1003 | PINMUX_GPIO(GPIO_FN_SCIF2_SCK, SCIF2_SCK_MARK), | ||
1004 | |||
1005 | /* SIO */ | ||
1006 | PINMUX_GPIO(GPIO_FN_SIOTXD, SIOTXD_MARK), | ||
1007 | PINMUX_GPIO(GPIO_FN_SIORXD, SIORXD_MARK), | ||
1008 | PINMUX_GPIO(GPIO_FN_SIOD, SIOD_MARK), | ||
1009 | PINMUX_GPIO(GPIO_FN_SIOSTRB0, SIOSTRB0_MARK), | ||
1010 | PINMUX_GPIO(GPIO_FN_SIOSTRB1, SIOSTRB1_MARK), | ||
1011 | PINMUX_GPIO(GPIO_FN_SIOSCK, SIOSCK_MARK), | ||
1012 | PINMUX_GPIO(GPIO_FN_SIOMCK, SIOMCK_MARK), | ||
1013 | |||
1014 | /* CEU */ | ||
1015 | PINMUX_GPIO(GPIO_FN_VIO_D15, VIO_D15_MARK), | ||
1016 | PINMUX_GPIO(GPIO_FN_VIO_D14, VIO_D14_MARK), | ||
1017 | PINMUX_GPIO(GPIO_FN_VIO_D13, VIO_D13_MARK), | ||
1018 | PINMUX_GPIO(GPIO_FN_VIO_D12, VIO_D12_MARK), | ||
1019 | PINMUX_GPIO(GPIO_FN_VIO_D11, VIO_D11_MARK), | ||
1020 | PINMUX_GPIO(GPIO_FN_VIO_D10, VIO_D10_MARK), | ||
1021 | PINMUX_GPIO(GPIO_FN_VIO_D9, VIO_D9_MARK), | ||
1022 | PINMUX_GPIO(GPIO_FN_VIO_D8, VIO_D8_MARK), | ||
1023 | PINMUX_GPIO(GPIO_FN_VIO_D7, VIO_D7_MARK), | ||
1024 | PINMUX_GPIO(GPIO_FN_VIO_D6, VIO_D6_MARK), | ||
1025 | PINMUX_GPIO(GPIO_FN_VIO_D5, VIO_D5_MARK), | ||
1026 | PINMUX_GPIO(GPIO_FN_VIO_D4, VIO_D4_MARK), | ||
1027 | PINMUX_GPIO(GPIO_FN_VIO_D3, VIO_D3_MARK), | ||
1028 | PINMUX_GPIO(GPIO_FN_VIO_D2, VIO_D2_MARK), | ||
1029 | PINMUX_GPIO(GPIO_FN_VIO_D1, VIO_D1_MARK), | ||
1030 | PINMUX_GPIO(GPIO_FN_VIO_D0, VIO_D0_MARK), | ||
1031 | PINMUX_GPIO(GPIO_FN_VIO_CLK, VIO_CLK_MARK), | ||
1032 | PINMUX_GPIO(GPIO_FN_VIO_VD, VIO_VD_MARK), | ||
1033 | PINMUX_GPIO(GPIO_FN_VIO_HD, VIO_HD_MARK), | ||
1034 | PINMUX_GPIO(GPIO_FN_VIO_FLD, VIO_FLD_MARK), | ||
1035 | PINMUX_GPIO(GPIO_FN_VIO_CKO, VIO_CKO_MARK), | ||
1036 | PINMUX_GPIO(GPIO_FN_VIO_STEX, VIO_STEX_MARK), | ||
1037 | PINMUX_GPIO(GPIO_FN_VIO_STEM, VIO_STEM_MARK), | ||
1038 | PINMUX_GPIO(GPIO_FN_VIO_VD2, VIO_VD2_MARK), | ||
1039 | PINMUX_GPIO(GPIO_FN_VIO_HD2, VIO_HD2_MARK), | ||
1040 | PINMUX_GPIO(GPIO_FN_VIO_CLK2, VIO_CLK2_MARK), | ||
1041 | |||
1042 | /* LCDC */ | ||
1043 | PINMUX_GPIO(GPIO_FN_LCDD23, LCDD23_MARK), | ||
1044 | PINMUX_GPIO(GPIO_FN_LCDD22, LCDD22_MARK), | ||
1045 | PINMUX_GPIO(GPIO_FN_LCDD21, LCDD21_MARK), | ||
1046 | PINMUX_GPIO(GPIO_FN_LCDD20, LCDD20_MARK), | ||
1047 | PINMUX_GPIO(GPIO_FN_LCDD19, LCDD19_MARK), | ||
1048 | PINMUX_GPIO(GPIO_FN_LCDD18, LCDD18_MARK), | ||
1049 | PINMUX_GPIO(GPIO_FN_LCDD17, LCDD17_MARK), | ||
1050 | PINMUX_GPIO(GPIO_FN_LCDD16, LCDD16_MARK), | ||
1051 | PINMUX_GPIO(GPIO_FN_LCDD15, LCDD15_MARK), | ||
1052 | PINMUX_GPIO(GPIO_FN_LCDD14, LCDD14_MARK), | ||
1053 | PINMUX_GPIO(GPIO_FN_LCDD13, LCDD13_MARK), | ||
1054 | PINMUX_GPIO(GPIO_FN_LCDD12, LCDD12_MARK), | ||
1055 | PINMUX_GPIO(GPIO_FN_LCDD11, LCDD11_MARK), | ||
1056 | PINMUX_GPIO(GPIO_FN_LCDD10, LCDD10_MARK), | ||
1057 | PINMUX_GPIO(GPIO_FN_LCDD9, LCDD9_MARK), | ||
1058 | PINMUX_GPIO(GPIO_FN_LCDD8, LCDD8_MARK), | ||
1059 | PINMUX_GPIO(GPIO_FN_LCDD7, LCDD7_MARK), | ||
1060 | PINMUX_GPIO(GPIO_FN_LCDD6, LCDD6_MARK), | ||
1061 | PINMUX_GPIO(GPIO_FN_LCDD5, LCDD5_MARK), | ||
1062 | PINMUX_GPIO(GPIO_FN_LCDD4, LCDD4_MARK), | ||
1063 | PINMUX_GPIO(GPIO_FN_LCDD3, LCDD3_MARK), | ||
1064 | PINMUX_GPIO(GPIO_FN_LCDD2, LCDD2_MARK), | ||
1065 | PINMUX_GPIO(GPIO_FN_LCDD1, LCDD1_MARK), | ||
1066 | PINMUX_GPIO(GPIO_FN_LCDD0, LCDD0_MARK), | ||
1067 | PINMUX_GPIO(GPIO_FN_LCDLCLK, LCDLCLK_MARK), | ||
1068 | /* Main LCD */ | ||
1069 | PINMUX_GPIO(GPIO_FN_LCDDON, LCDDON_MARK), | ||
1070 | PINMUX_GPIO(GPIO_FN_LCDVCPWC, LCDVCPWC_MARK), | ||
1071 | PINMUX_GPIO(GPIO_FN_LCDVEPWC, LCDVEPWC_MARK), | ||
1072 | PINMUX_GPIO(GPIO_FN_LCDVSYN, LCDVSYN_MARK), | ||
1073 | /* Main LCD - RGB Mode */ | ||
1074 | PINMUX_GPIO(GPIO_FN_LCDDCK, LCDDCK_MARK), | ||
1075 | PINMUX_GPIO(GPIO_FN_LCDHSYN, LCDHSYN_MARK), | ||
1076 | PINMUX_GPIO(GPIO_FN_LCDDISP, LCDDISP_MARK), | ||
1077 | /* Main LCD - SYS Mode */ | ||
1078 | PINMUX_GPIO(GPIO_FN_LCDRS, LCDRS_MARK), | ||
1079 | PINMUX_GPIO(GPIO_FN_LCDCS, LCDCS_MARK), | ||
1080 | PINMUX_GPIO(GPIO_FN_LCDWR, LCDWR_MARK), | ||
1081 | PINMUX_GPIO(GPIO_FN_LCDRD, LCDRD_MARK), | ||
1082 | /* Sub LCD - SYS Mode */ | ||
1083 | PINMUX_GPIO(GPIO_FN_LCDDON2, LCDDON2_MARK), | ||
1084 | PINMUX_GPIO(GPIO_FN_LCDVCPWC2, LCDVCPWC2_MARK), | ||
1085 | PINMUX_GPIO(GPIO_FN_LCDVEPWC2, LCDVEPWC2_MARK), | ||
1086 | PINMUX_GPIO(GPIO_FN_LCDVSYN2, LCDVSYN2_MARK), | ||
1087 | PINMUX_GPIO(GPIO_FN_LCDCS2, LCDCS2_MARK), | ||
1088 | |||
1089 | /* BSC */ | ||
1090 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1091 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1092 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1093 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1094 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1095 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1096 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
1097 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1098 | PINMUX_GPIO(GPIO_FN_CS6A_CE2B, CS6A_CE2B_MARK), | ||
1099 | |||
1100 | /* SBSC */ | ||
1101 | PINMUX_GPIO(GPIO_FN_HPD63, HPD63_MARK), | ||
1102 | PINMUX_GPIO(GPIO_FN_HPD62, HPD62_MARK), | ||
1103 | PINMUX_GPIO(GPIO_FN_HPD61, HPD61_MARK), | ||
1104 | PINMUX_GPIO(GPIO_FN_HPD60, HPD60_MARK), | ||
1105 | PINMUX_GPIO(GPIO_FN_HPD59, HPD59_MARK), | ||
1106 | PINMUX_GPIO(GPIO_FN_HPD58, HPD58_MARK), | ||
1107 | PINMUX_GPIO(GPIO_FN_HPD57, HPD57_MARK), | ||
1108 | PINMUX_GPIO(GPIO_FN_HPD56, HPD56_MARK), | ||
1109 | PINMUX_GPIO(GPIO_FN_HPD55, HPD55_MARK), | ||
1110 | PINMUX_GPIO(GPIO_FN_HPD54, HPD54_MARK), | ||
1111 | PINMUX_GPIO(GPIO_FN_HPD53, HPD53_MARK), | ||
1112 | PINMUX_GPIO(GPIO_FN_HPD52, HPD52_MARK), | ||
1113 | PINMUX_GPIO(GPIO_FN_HPD51, HPD51_MARK), | ||
1114 | PINMUX_GPIO(GPIO_FN_HPD50, HPD50_MARK), | ||
1115 | PINMUX_GPIO(GPIO_FN_HPD49, HPD49_MARK), | ||
1116 | PINMUX_GPIO(GPIO_FN_HPD48, HPD48_MARK), | ||
1117 | PINMUX_GPIO(GPIO_FN_HPDQM7, HPDQM7_MARK), | ||
1118 | PINMUX_GPIO(GPIO_FN_HPDQM6, HPDQM6_MARK), | ||
1119 | PINMUX_GPIO(GPIO_FN_HPDQM5, HPDQM5_MARK), | ||
1120 | PINMUX_GPIO(GPIO_FN_HPDQM4, HPDQM4_MARK), | ||
1121 | |||
1122 | /* IRQ */ | ||
1123 | PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), | ||
1124 | PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), | ||
1125 | PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), | ||
1126 | PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), | ||
1127 | PINMUX_GPIO(GPIO_FN_IRQ4, IRQ4_MARK), | ||
1128 | PINMUX_GPIO(GPIO_FN_IRQ5, IRQ5_MARK), | ||
1129 | PINMUX_GPIO(GPIO_FN_IRQ6, IRQ6_MARK), | ||
1130 | PINMUX_GPIO(GPIO_FN_IRQ7, IRQ7_MARK), | ||
1131 | |||
1132 | /* SDHI */ | ||
1133 | PINMUX_GPIO(GPIO_FN_SDHICD, SDHICD_MARK), | ||
1134 | PINMUX_GPIO(GPIO_FN_SDHIWP, SDHIWP_MARK), | ||
1135 | PINMUX_GPIO(GPIO_FN_SDHID3, SDHID3_MARK), | ||
1136 | PINMUX_GPIO(GPIO_FN_SDHID2, SDHID2_MARK), | ||
1137 | PINMUX_GPIO(GPIO_FN_SDHID1, SDHID1_MARK), | ||
1138 | PINMUX_GPIO(GPIO_FN_SDHID0, SDHID0_MARK), | ||
1139 | PINMUX_GPIO(GPIO_FN_SDHICMD, SDHICMD_MARK), | ||
1140 | PINMUX_GPIO(GPIO_FN_SDHICLK, SDHICLK_MARK), | ||
1141 | |||
1142 | /* SIU - Port A */ | ||
1143 | PINMUX_GPIO(GPIO_FN_SIUAOLR, SIUAOLR_MARK), | ||
1144 | PINMUX_GPIO(GPIO_FN_SIUAOBT, SIUAOBT_MARK), | ||
1145 | PINMUX_GPIO(GPIO_FN_SIUAISLD, SIUAISLD_MARK), | ||
1146 | PINMUX_GPIO(GPIO_FN_SIUAILR, SIUAILR_MARK), | ||
1147 | PINMUX_GPIO(GPIO_FN_SIUAIBT, SIUAIBT_MARK), | ||
1148 | PINMUX_GPIO(GPIO_FN_SIUAOSLD, SIUAOSLD_MARK), | ||
1149 | PINMUX_GPIO(GPIO_FN_SIUMCKA, SIUMCKA_MARK), | ||
1150 | PINMUX_GPIO(GPIO_FN_SIUFCKA, SIUFCKA_MARK), | ||
1151 | |||
1152 | /* SIU - Port B */ | ||
1153 | PINMUX_GPIO(GPIO_FN_SIUBOLR, SIUBOLR_MARK), | ||
1154 | PINMUX_GPIO(GPIO_FN_SIUBOBT, SIUBOBT_MARK), | ||
1155 | PINMUX_GPIO(GPIO_FN_SIUBISLD, SIUBISLD_MARK), | ||
1156 | PINMUX_GPIO(GPIO_FN_SIUBILR, SIUBILR_MARK), | ||
1157 | PINMUX_GPIO(GPIO_FN_SIUBIBT, SIUBIBT_MARK), | ||
1158 | PINMUX_GPIO(GPIO_FN_SIUBOSLD, SIUBOSLD_MARK), | ||
1159 | PINMUX_GPIO(GPIO_FN_SIUMCKB, SIUMCKB_MARK), | ||
1160 | PINMUX_GPIO(GPIO_FN_SIUFCKB, SIUFCKB_MARK), | ||
1161 | |||
1162 | /* AUD */ | ||
1163 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1164 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1165 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1166 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1167 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1168 | |||
1169 | /* DMAC */ | ||
1170 | PINMUX_GPIO(GPIO_FN_DACK, DACK_MARK), | ||
1171 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1172 | |||
1173 | /* VOU */ | ||
1174 | PINMUX_GPIO(GPIO_FN_DV_CLKI, DV_CLKI_MARK), | ||
1175 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1176 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1177 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1178 | PINMUX_GPIO(GPIO_FN_DV_D15, DV_D15_MARK), | ||
1179 | PINMUX_GPIO(GPIO_FN_DV_D14, DV_D14_MARK), | ||
1180 | PINMUX_GPIO(GPIO_FN_DV_D13, DV_D13_MARK), | ||
1181 | PINMUX_GPIO(GPIO_FN_DV_D12, DV_D12_MARK), | ||
1182 | PINMUX_GPIO(GPIO_FN_DV_D11, DV_D11_MARK), | ||
1183 | PINMUX_GPIO(GPIO_FN_DV_D10, DV_D10_MARK), | ||
1184 | PINMUX_GPIO(GPIO_FN_DV_D9, DV_D9_MARK), | ||
1185 | PINMUX_GPIO(GPIO_FN_DV_D8, DV_D8_MARK), | ||
1186 | PINMUX_GPIO(GPIO_FN_DV_D7, DV_D7_MARK), | ||
1187 | PINMUX_GPIO(GPIO_FN_DV_D6, DV_D6_MARK), | ||
1188 | PINMUX_GPIO(GPIO_FN_DV_D5, DV_D5_MARK), | ||
1189 | PINMUX_GPIO(GPIO_FN_DV_D4, DV_D4_MARK), | ||
1190 | PINMUX_GPIO(GPIO_FN_DV_D3, DV_D3_MARK), | ||
1191 | PINMUX_GPIO(GPIO_FN_DV_D2, DV_D2_MARK), | ||
1192 | PINMUX_GPIO(GPIO_FN_DV_D1, DV_D1_MARK), | ||
1193 | PINMUX_GPIO(GPIO_FN_DV_D0, DV_D0_MARK), | ||
1194 | |||
1195 | /* CPG */ | ||
1196 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1197 | PINMUX_GPIO(GPIO_FN_PDSTATUS, PDSTATUS_MARK), | ||
1198 | |||
1199 | /* SIOF0 */ | ||
1200 | PINMUX_GPIO(GPIO_FN_SIOF0_MCK, SIOF0_MCK_MARK), | ||
1201 | PINMUX_GPIO(GPIO_FN_SIOF0_SCK, SIOF0_SCK_MARK), | ||
1202 | PINMUX_GPIO(GPIO_FN_SIOF0_SYNC, SIOF0_SYNC_MARK), | ||
1203 | PINMUX_GPIO(GPIO_FN_SIOF0_SS1, SIOF0_SS1_MARK), | ||
1204 | PINMUX_GPIO(GPIO_FN_SIOF0_SS2, SIOF0_SS2_MARK), | ||
1205 | PINMUX_GPIO(GPIO_FN_SIOF0_TXD, SIOF0_TXD_MARK), | ||
1206 | PINMUX_GPIO(GPIO_FN_SIOF0_RXD, SIOF0_RXD_MARK), | ||
1207 | |||
1208 | /* SIOF1 */ | ||
1209 | PINMUX_GPIO(GPIO_FN_SIOF1_MCK, SIOF1_MCK_MARK), | ||
1210 | PINMUX_GPIO(GPIO_FN_SIOF1_SCK, SIOF1_SCK_MARK), | ||
1211 | PINMUX_GPIO(GPIO_FN_SIOF1_SYNC, SIOF1_SYNC_MARK), | ||
1212 | PINMUX_GPIO(GPIO_FN_SIOF1_SS1, SIOF1_SS1_MARK), | ||
1213 | PINMUX_GPIO(GPIO_FN_SIOF1_SS2, SIOF1_SS2_MARK), | ||
1214 | PINMUX_GPIO(GPIO_FN_SIOF1_TXD, SIOF1_TXD_MARK), | ||
1215 | PINMUX_GPIO(GPIO_FN_SIOF1_RXD, SIOF1_RXD_MARK), | ||
1216 | |||
1217 | /* SIM */ | ||
1218 | PINMUX_GPIO(GPIO_FN_SIM_D, SIM_D_MARK), | ||
1219 | PINMUX_GPIO(GPIO_FN_SIM_CLK, SIM_CLK_MARK), | ||
1220 | PINMUX_GPIO(GPIO_FN_SIM_RST, SIM_RST_MARK), | ||
1221 | |||
1222 | /* TSIF */ | ||
1223 | PINMUX_GPIO(GPIO_FN_TS_SDAT, TS_SDAT_MARK), | ||
1224 | PINMUX_GPIO(GPIO_FN_TS_SCK, TS_SCK_MARK), | ||
1225 | PINMUX_GPIO(GPIO_FN_TS_SDEN, TS_SDEN_MARK), | ||
1226 | PINMUX_GPIO(GPIO_FN_TS_SPSYNC, TS_SPSYNC_MARK), | ||
1227 | |||
1228 | /* IRDA */ | ||
1229 | PINMUX_GPIO(GPIO_FN_IRDA_IN, IRDA_IN_MARK), | ||
1230 | PINMUX_GPIO(GPIO_FN_IRDA_OUT, IRDA_OUT_MARK), | ||
1231 | |||
1232 | /* TPU */ | ||
1233 | PINMUX_GPIO(GPIO_FN_TPUTO, TPUTO_MARK), | ||
1234 | |||
1235 | /* FLCTL */ | ||
1236 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1237 | PINMUX_GPIO(GPIO_FN_NAF7, NAF7_MARK), | ||
1238 | PINMUX_GPIO(GPIO_FN_NAF6, NAF6_MARK), | ||
1239 | PINMUX_GPIO(GPIO_FN_NAF5, NAF5_MARK), | ||
1240 | PINMUX_GPIO(GPIO_FN_NAF4, NAF4_MARK), | ||
1241 | PINMUX_GPIO(GPIO_FN_NAF3, NAF3_MARK), | ||
1242 | PINMUX_GPIO(GPIO_FN_NAF2, NAF2_MARK), | ||
1243 | PINMUX_GPIO(GPIO_FN_NAF1, NAF1_MARK), | ||
1244 | PINMUX_GPIO(GPIO_FN_NAF0, NAF0_MARK), | ||
1245 | PINMUX_GPIO(GPIO_FN_FCDE, FCDE_MARK), | ||
1246 | PINMUX_GPIO(GPIO_FN_FOE, FOE_MARK), | ||
1247 | PINMUX_GPIO(GPIO_FN_FSC, FSC_MARK), | ||
1248 | PINMUX_GPIO(GPIO_FN_FWE, FWE_MARK), | ||
1249 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1250 | |||
1251 | /* KEYSC */ | ||
1252 | PINMUX_GPIO(GPIO_FN_KEYIN0, KEYIN0_MARK), | ||
1253 | PINMUX_GPIO(GPIO_FN_KEYIN1, KEYIN1_MARK), | ||
1254 | PINMUX_GPIO(GPIO_FN_KEYIN2, KEYIN2_MARK), | ||
1255 | PINMUX_GPIO(GPIO_FN_KEYIN3, KEYIN3_MARK), | ||
1256 | PINMUX_GPIO(GPIO_FN_KEYIN4, KEYIN4_MARK), | ||
1257 | PINMUX_GPIO(GPIO_FN_KEYOUT0, KEYOUT0_MARK), | ||
1258 | PINMUX_GPIO(GPIO_FN_KEYOUT1, KEYOUT1_MARK), | ||
1259 | PINMUX_GPIO(GPIO_FN_KEYOUT2, KEYOUT2_MARK), | ||
1260 | PINMUX_GPIO(GPIO_FN_KEYOUT3, KEYOUT3_MARK), | ||
1261 | PINMUX_GPIO(GPIO_FN_KEYOUT4_IN6, KEYOUT4_IN6_MARK), | ||
1262 | PINMUX_GPIO(GPIO_FN_KEYOUT5_IN5, KEYOUT5_IN5_MARK), | ||
1263 | }; | ||
1264 | |||
1265 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1266 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
1267 | VIO_D7_SCIF1_SCK, PTA7_OUT, PTA7_IN_PD, PTA7_IN, | ||
1268 | VIO_D6_SCIF1_RXD, 0, PTA6_IN_PD, PTA6_IN, | ||
1269 | VIO_D5_SCIF1_TXD, PTA5_OUT, PTA5_IN_PD, PTA5_IN, | ||
1270 | VIO_D4, 0, PTA4_IN_PD, PTA4_IN, | ||
1271 | VIO_D3, 0, PTA3_IN_PD, PTA3_IN, | ||
1272 | VIO_D2, 0, PTA2_IN_PD, PTA2_IN, | ||
1273 | VIO_D1, 0, PTA1_IN_PD, PTA1_IN, | ||
1274 | VIO_D0_LCDLCLK, 0, PTA0_IN_PD, PTA0_IN } | ||
1275 | }, | ||
1276 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
1277 | HPD55, PTB7_OUT, 0, PTB7_IN, | ||
1278 | HPD54, PTB6_OUT, 0, PTB6_IN, | ||
1279 | HPD53, PTB5_OUT, 0, PTB5_IN, | ||
1280 | HPD52, PTB4_OUT, 0, PTB4_IN, | ||
1281 | HPD51, PTB3_OUT, 0, PTB3_IN, | ||
1282 | HPD50, PTB2_OUT, 0, PTB2_IN, | ||
1283 | HPD49, PTB1_OUT, 0, PTB1_IN, | ||
1284 | HPD48, PTB0_OUT, 0, PTB0_IN } | ||
1285 | }, | ||
1286 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
1287 | 0, 0, PTC7_IN_PU, PTC7_IN, | ||
1288 | 0, 0, 0, 0, | ||
1289 | IOIS16, 0, PTC5_IN_PU, PTC5_IN, | ||
1290 | HPDQM7, PTC4_OUT, 0, PTC4_IN, | ||
1291 | HPDQM6, PTC3_OUT, 0, PTC3_IN, | ||
1292 | HPDQM5, PTC2_OUT, 0, PTC2_IN, | ||
1293 | 0, 0, 0, 0, | ||
1294 | HPDQM4, PTC0_OUT, 0, PTC0_IN } | ||
1295 | }, | ||
1296 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
1297 | SDHICD, 0, PTD7_IN_PU, PTD7_IN, | ||
1298 | SDHIWP, PTD6_OUT, PTD6_IN_PU, PTD6_IN, | ||
1299 | SDHID3, PTD5_OUT, PTD5_IN_PU, PTD5_IN, | ||
1300 | IRQ2_SDHID2, PTD4_OUT, PTD4_IN_PU, PTD4_IN, | ||
1301 | SDHID1, PTD3_OUT, PTD3_IN_PU, PTD3_IN, | ||
1302 | SDHID0, PTD2_OUT, PTD2_IN_PU, PTD2_IN, | ||
1303 | SDHICMD, PTD1_OUT, PTD1_IN_PU, PTD1_IN, | ||
1304 | SDHICLK, PTD0_OUT, 0, 0 } | ||
1305 | }, | ||
1306 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
1307 | A25, PTE7_OUT, PTE7_IN_PD, PTE7_IN, | ||
1308 | A24, PTE6_OUT, PTE6_IN_PD, PTE6_IN, | ||
1309 | A23, PTE5_OUT, PTE5_IN_PD, PTE5_IN, | ||
1310 | A22, PTE4_OUT, PTE4_IN_PD, PTE4_IN, | ||
1311 | 0, 0, 0, 0, | ||
1312 | 0, 0, 0, 0, | ||
1313 | IRQ5, PTE1_OUT, PTE1_IN_PD, PTE1_IN, | ||
1314 | IRQ4_BS, PTE0_OUT, PTE0_IN_PD, PTE0_IN } | ||
1315 | }, | ||
1316 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1317 | 0, 0, 0, 0, | ||
1318 | PTF6, PTF6_OUT, PTF6_IN_PD, PTF6_IN, | ||
1319 | SIOSCK_SIUBOBT, PTF5_OUT, PTF5_IN_PD, PTF5_IN, | ||
1320 | SIOSTRB1_SIUBOLR, PTF4_OUT, PTF4_IN_PD, PTF4_IN, | ||
1321 | SIOSTRB0_SIUBIBT, PTF3_OUT, PTF3_IN_PD, PTF3_IN, | ||
1322 | SIOD_SIUBILR, PTF2_OUT, PTF2_IN_PD, PTF2_IN, | ||
1323 | SIORXD_SIUBISLD, 0, PTF1_IN_PD, PTF1_IN, | ||
1324 | SIOTXD_SIUBOSLD, PTF0_OUT, 0, 0 } | ||
1325 | }, | ||
1326 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1327 | 0, 0, 0, 0, | ||
1328 | 0, 0, 0, 0, | ||
1329 | 0, 0, 0, 0, | ||
1330 | AUDSYNC, PTG4_OUT, 0, 0, | ||
1331 | AUDATA3, PTG3_OUT, 0, 0, | ||
1332 | AUDATA2, PTG2_OUT, 0, 0, | ||
1333 | AUDATA1, PTG1_OUT, 0, 0, | ||
1334 | AUDATA0, PTG0_OUT, 0, 0 } | ||
1335 | }, | ||
1336 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1337 | LCDVCPWC_LCDVCPWC2, PTH7_OUT, 0, 0, | ||
1338 | LCDVSYN2_DACK, PTH6_OUT, PTH6_IN_PD, PTH6_IN, | ||
1339 | LCDVSYN, PTH5_OUT, PTH5_IN_PD, PTH5_IN, | ||
1340 | LCDDISP_LCDRS, PTH4_OUT, 0, 0, | ||
1341 | LCDHSYN_LCDCS, PTH3_OUT, 0, 0, | ||
1342 | LCDDON_LCDDON2, PTH2_OUT, 0, 0, | ||
1343 | LCDD17_DV_HSYNC, PTH1_OUT, PTH1_IN_PD, PTH1_IN, | ||
1344 | LCDD16_DV_VSYNC, PTH0_OUT, PTH0_IN_PD, PTH0_IN } | ||
1345 | }, | ||
1346 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1347 | STATUS0, PTJ7_OUT, 0, 0, | ||
1348 | 0, PTJ6_OUT, 0, 0, | ||
1349 | PDSTATUS, PTJ5_OUT, 0, 0, | ||
1350 | 0, 0, 0, 0, | ||
1351 | 0, 0, 0, 0, | ||
1352 | 0, 0, 0, 0, | ||
1353 | IRQ1, PTJ1_OUT, PTJ1_IN_PU, PTJ1_IN, | ||
1354 | IRQ0, PTJ0_OUT, PTJ0_IN_PU, PTJ0_IN } | ||
1355 | }, | ||
1356 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1357 | 0, 0, 0, 0, | ||
1358 | SIUAILR_SIOF1_SS2, PTK6_OUT, PTK6_IN_PD, PTK6_IN, | ||
1359 | SIUAIBT_SIOF1_SS1, PTK5_OUT, PTK5_IN_PD, PTK5_IN, | ||
1360 | SIUAOLR_SIOF1_SYNC, PTK4_OUT, PTK4_IN_PD, PTK4_IN, | ||
1361 | SIUAOBT_SIOF1_SCK, PTK3_OUT, PTK3_IN_PD, PTK3_IN, | ||
1362 | SIUAISLD_SIOF1_RXD, 0, PTK2_IN_PD, PTK2_IN, | ||
1363 | SIUAOSLD_SIOF1_TXD, PTK1_OUT, 0, 0, | ||
1364 | PTK0, PTK0_OUT, PTK0_IN_PD, PTK0_IN } | ||
1365 | }, | ||
1366 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1367 | LCDD15_DV_D15, PTL7_OUT, PTL7_IN_PD, PTL7_IN, | ||
1368 | LCDD14_DV_D14, PTL6_OUT, PTL6_IN_PD, PTL6_IN, | ||
1369 | LCDD13_DV_D13, PTL5_OUT, PTL5_IN_PD, PTL5_IN, | ||
1370 | LCDD12_DV_D12, PTL4_OUT, PTL4_IN_PD, PTL4_IN, | ||
1371 | LCDD11_DV_D11, PTL3_OUT, PTL3_IN_PD, PTL3_IN, | ||
1372 | LCDD10_DV_D10, PTL2_OUT, PTL2_IN_PD, PTL2_IN, | ||
1373 | LCDD9_DV_D9, PTL1_OUT, PTL1_IN_PD, PTL1_IN, | ||
1374 | LCDD8_DV_D8, PTL0_OUT, PTL0_IN_PD, PTL0_IN } | ||
1375 | }, | ||
1376 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1377 | LCDD7_DV_D7, PTM7_OUT, PTM7_IN_PD, PTM7_IN, | ||
1378 | LCDD6_DV_D6, PTM6_OUT, PTM6_IN_PD, PTM6_IN, | ||
1379 | LCDD5_DV_D5, PTM5_OUT, PTM5_IN_PD, PTM5_IN, | ||
1380 | LCDD4_DV_D4, PTM4_OUT, PTM4_IN_PD, PTM4_IN, | ||
1381 | LCDD3_DV_D3, PTM3_OUT, PTM3_IN_PD, PTM3_IN, | ||
1382 | LCDD2_DV_D2, PTM2_OUT, PTM2_IN_PD, PTM2_IN, | ||
1383 | LCDD1_DV_D1, PTM1_OUT, PTM1_IN_PD, PTM1_IN, | ||
1384 | LCDD0_DV_D0, PTM0_OUT, PTM0_IN_PD, PTM0_IN } | ||
1385 | }, | ||
1386 | { PINMUX_CFG_REG("PNCR", 0xa4050118, 16, 2) { | ||
1387 | HPD63, PTN7_OUT, 0, PTN7_IN, | ||
1388 | HPD62, PTN6_OUT, 0, PTN6_IN, | ||
1389 | HPD61, PTN5_OUT, 0, PTN5_IN, | ||
1390 | HPD60, PTN4_OUT, 0, PTN4_IN, | ||
1391 | HPD59, PTN3_OUT, 0, PTN3_IN, | ||
1392 | HPD58, PTN2_OUT, 0, PTN2_IN, | ||
1393 | HPD57, PTN1_OUT, 0, PTN1_IN, | ||
1394 | HPD56, PTN0_OUT, 0, PTN0_IN } | ||
1395 | }, | ||
1396 | { PINMUX_CFG_REG("PQCR", 0xa405011a, 16, 2) { | ||
1397 | 0, 0, 0, 0, | ||
1398 | SIOF0_SS2_SIM_RST, PTQ6_OUT, 0, 0, | ||
1399 | SIOF0_SS1_TS_SPSYNC, PTQ5_OUT, PTQ5_IN_PD, PTQ5_IN, | ||
1400 | SIOF0_SYNC_TS_SDEN, PTQ4_OUT, PTQ4_IN_PD, PTQ4_IN, | ||
1401 | SIOF0_SCK_TS_SCK, PTQ3_OUT, PTQ3_IN_PD, PTQ3_IN, | ||
1402 | PTQ2, 0, PTQ2_IN_PD, PTQ2_IN, | ||
1403 | PTQ1, PTQ1_OUT, 0, 0, | ||
1404 | PTQ0, PTQ0_OUT, PTQ0_IN_PU, PTQ0_IN } | ||
1405 | }, | ||
1406 | { PINMUX_CFG_REG("PRCR", 0xa405011c, 16, 2) { | ||
1407 | 0, 0, 0, 0, | ||
1408 | 0, 0, 0, 0, | ||
1409 | 0, 0, 0, 0, | ||
1410 | LCDRD, PTR4_OUT, 0, 0, | ||
1411 | CS6B_CE1B_LCDCS2, PTR3_OUT, 0, 0, | ||
1412 | WAIT, 0, PTR2_IN_PU, PTR2_IN, | ||
1413 | LCDDCK_LCDWR, PTR1_OUT, 0, 0, | ||
1414 | LCDVEPWC_LCDVEPWC2, PTR0_OUT, 0, 0 } | ||
1415 | }, | ||
1416 | { PINMUX_CFG_REG("PSCR", 0xa405011e, 16, 2) { | ||
1417 | 0, 0, 0, 0, | ||
1418 | 0, 0, 0, 0, | ||
1419 | 0, 0, 0, 0, | ||
1420 | SCIF0_CTS_SIUAISPD, 0, PTS4_IN_PD, PTS4_IN, | ||
1421 | SCIF0_RTS_SIUAOSPD, PTS3_OUT, 0, 0, | ||
1422 | SCIF0_SCK_TPUTO, PTS2_OUT, PTS2_IN_PD, PTS2_IN, | ||
1423 | SCIF0_RXD, 0, PTS1_IN_PD, PTS1_IN, | ||
1424 | SCIF0_TXD, PTS0_OUT, 0, 0 } | ||
1425 | }, | ||
1426 | { PINMUX_CFG_REG("PTCR", 0xa4050140, 16, 2) { | ||
1427 | 0, 0, 0, 0, | ||
1428 | 0, 0, 0, 0, | ||
1429 | 0, 0, 0, 0, | ||
1430 | FOE_VIO_VD2, PTT4_OUT, PTT4_IN_PD, PTT4_IN, | ||
1431 | FWE, PTT3_OUT, PTT3_IN_PD, PTT3_IN, | ||
1432 | FSC, PTT2_OUT, PTT2_IN_PD, PTT2_IN, | ||
1433 | DREQ0, 0, PTT1_IN_PD, PTT1_IN, | ||
1434 | FCDE, PTT0_OUT, 0, 0 } | ||
1435 | }, | ||
1436 | { PINMUX_CFG_REG("PUCR", 0xa4050142, 16, 2) { | ||
1437 | 0, 0, 0, 0, | ||
1438 | 0, 0, 0, 0, | ||
1439 | 0, 0, 0, 0, | ||
1440 | NAF2_VIO_D10, PTU4_OUT, PTU4_IN_PD, PTU4_IN, | ||
1441 | NAF1_VIO_D9, PTU3_OUT, PTU3_IN_PD, PTU3_IN, | ||
1442 | NAF0_VIO_D8, PTU2_OUT, PTU2_IN_PD, PTU2_IN, | ||
1443 | FRB_VIO_CLK2, 0, PTU1_IN_PD, PTU1_IN, | ||
1444 | FCE_VIO_HD2, PTU0_OUT, PTU0_IN_PD, PTU0_IN } | ||
1445 | }, | ||
1446 | { PINMUX_CFG_REG("PVCR", 0xa4050144, 16, 2) { | ||
1447 | 0, 0, 0, 0, | ||
1448 | 0, 0, 0, 0, | ||
1449 | 0, 0, 0, 0, | ||
1450 | NAF7_VIO_D15, PTV4_OUT, PTV4_IN_PD, PTV4_IN, | ||
1451 | NAF6_VIO_D14, PTV3_OUT, PTV3_IN_PD, PTV3_IN, | ||
1452 | NAF5_VIO_D13, PTV2_OUT, PTV2_IN_PD, PTV2_IN, | ||
1453 | NAF4_VIO_D12, PTV1_OUT, PTV1_IN_PD, PTV1_IN, | ||
1454 | NAF3_VIO_D11, PTV0_OUT, PTV0_IN_PD, PTV0_IN } | ||
1455 | }, | ||
1456 | { PINMUX_CFG_REG("PWCR", 0xa4050146, 16, 2) { | ||
1457 | 0, 0, 0, 0, | ||
1458 | VIO_FLD_SCIF2_CTS, 0, PTW6_IN_PD, PTW6_IN, | ||
1459 | VIO_CKO_SCIF2_RTS, PTW5_OUT, 0, 0, | ||
1460 | VIO_STEX_SCIF2_SCK, PTW4_OUT, PTW4_IN_PD, PTW4_IN, | ||
1461 | VIO_STEM_SCIF2_TXD, PTW3_OUT, PTW3_IN_PD, PTW3_IN, | ||
1462 | VIO_HD_SCIF2_RXD, PTW2_OUT, PTW2_IN_PD, PTW2_IN, | ||
1463 | VIO_VD_SCIF1_CTS, PTW1_OUT, PTW1_IN_PD, PTW1_IN, | ||
1464 | VIO_CLK_SCIF1_RTS, PTW0_OUT, PTW0_IN_PD, PTW0_IN } | ||
1465 | }, | ||
1466 | { PINMUX_CFG_REG("PXCR", 0xa4050148, 16, 2) { | ||
1467 | 0, 0, 0, 0, | ||
1468 | CS6A_CE2B, PTX6_OUT, PTX6_IN_PU, PTX6_IN, | ||
1469 | LCDD23, PTX5_OUT, PTX5_IN_PD, PTX5_IN, | ||
1470 | LCDD22, PTX4_OUT, PTX4_IN_PD, PTX4_IN, | ||
1471 | LCDD21, PTX3_OUT, PTX3_IN_PD, PTX3_IN, | ||
1472 | LCDD20, PTX2_OUT, PTX2_IN_PD, PTX2_IN, | ||
1473 | LCDD19_DV_CLKI, PTX1_OUT, PTX1_IN_PD, PTX1_IN, | ||
1474 | LCDD18_DV_CLK, PTX0_OUT, PTX0_IN_PD, PTX0_IN } | ||
1475 | }, | ||
1476 | { PINMUX_CFG_REG("PYCR", 0xa405014a, 16, 2) { | ||
1477 | 0, 0, 0, 0, | ||
1478 | 0, 0, 0, 0, | ||
1479 | KEYOUT5_IN5, PTY5_OUT, PTY5_IN_PU, PTY5_IN, | ||
1480 | KEYOUT4_IN6, PTY4_OUT, PTY4_IN_PU, PTY4_IN, | ||
1481 | KEYOUT3, PTY3_OUT, PTY3_IN_PU, PTY3_IN, | ||
1482 | KEYOUT2, PTY2_OUT, PTY2_IN_PU, PTY2_IN, | ||
1483 | KEYOUT1, PTY1_OUT, 0, 0, | ||
1484 | KEYOUT0, PTY0_OUT, PTY0_IN_PU, PTY0_IN } | ||
1485 | }, | ||
1486 | { PINMUX_CFG_REG("PZCR", 0xa405014c, 16, 2) { | ||
1487 | 0, 0, 0, 0, | ||
1488 | 0, 0, 0, 0, | ||
1489 | KEYIN4_IRQ7, 0, PTZ5_IN_PU, PTZ5_IN, | ||
1490 | KEYIN3, 0, PTZ4_IN_PU, PTZ4_IN, | ||
1491 | KEYIN2, 0, PTZ3_IN_PU, PTZ3_IN, | ||
1492 | KEYIN1, 0, PTZ2_IN_PU, PTZ2_IN, | ||
1493 | KEYIN0_IRQ6, 0, PTZ1_IN_PU, PTZ1_IN, | ||
1494 | 0, 0, 0, 0 } | ||
1495 | }, | ||
1496 | { PINMUX_CFG_REG("PSELA", 0xa405014e, 16, 1) { | ||
1497 | PSA15_KEYIN0, PSA15_IRQ6, | ||
1498 | PSA14_KEYIN4, PSA14_IRQ7, | ||
1499 | 0, 0, | ||
1500 | 0, 0, | ||
1501 | 0, 0, | ||
1502 | 0, 0, | ||
1503 | PSA9_IRQ4, PSA9_BS, | ||
1504 | 0, 0, | ||
1505 | 0, 0, | ||
1506 | 0, 0, | ||
1507 | 0, 0, | ||
1508 | PSA4_IRQ2, PSA4_SDHID2, | ||
1509 | 0, 0, | ||
1510 | 0, 0, | ||
1511 | 0, 0, | ||
1512 | 0, 0 } | ||
1513 | }, | ||
1514 | { PINMUX_CFG_REG("PSELB", 0xa4050150, 16, 1) { | ||
1515 | PSB15_SIOTXD, PSB15_SIUBOSLD, | ||
1516 | PSB14_SIORXD, PSB14_SIUBISLD, | ||
1517 | PSB13_SIOD, PSB13_SIUBILR, | ||
1518 | PSB12_SIOSTRB0, PSB12_SIUBIBT, | ||
1519 | PSB11_SIOSTRB1, PSB11_SIUBOLR, | ||
1520 | PSB10_SIOSCK, PSB10_SIUBOBT, | ||
1521 | PSB9_SIOMCK, PSB9_SIUMCKB, | ||
1522 | PSB8_SIOF0_MCK, PSB8_IRQ3, | ||
1523 | PSB7_SIOF0_TXD, PSB7_IRDA_OUT, | ||
1524 | PSB6_SIOF0_RXD, PSB6_IRDA_IN, | ||
1525 | PSB5_SIOF0_SCK, PSB5_TS_SCK, | ||
1526 | PSB4_SIOF0_SYNC, PSB4_TS_SDEN, | ||
1527 | PSB3_SIOF0_SS1, PSB3_TS_SPSYNC, | ||
1528 | PSB2_SIOF0_SS2, PSB2_SIM_RST, | ||
1529 | PSB1_SIUMCKA, PSB1_SIOF1_MCK, | ||
1530 | PSB0_SIUAOSLD, PSB0_SIOF1_TXD } | ||
1531 | }, | ||
1532 | { PINMUX_CFG_REG("PSELC", 0xa4050152, 16, 1) { | ||
1533 | PSC15_SIUAISLD, PSC15_SIOF1_RXD, | ||
1534 | PSC14_SIUAOBT, PSC14_SIOF1_SCK, | ||
1535 | PSC13_SIUAOLR, PSC13_SIOF1_SYNC, | ||
1536 | PSC12_SIUAIBT, PSC12_SIOF1_SS1, | ||
1537 | PSC11_SIUAILR, PSC11_SIOF1_SS2, | ||
1538 | 0, 0, | ||
1539 | 0, 0, | ||
1540 | 0, 0, | ||
1541 | 0, 0, | ||
1542 | 0, 0, | ||
1543 | 0, 0, | ||
1544 | 0, 0, | ||
1545 | 0, 0, | ||
1546 | 0, 0, | ||
1547 | 0, 0, | ||
1548 | PSC0_NAF, PSC0_VIO } | ||
1549 | }, | ||
1550 | { PINMUX_CFG_REG("PSELD", 0xa4050154, 16, 1) { | ||
1551 | 0, 0, | ||
1552 | 0, 0, | ||
1553 | PSD13_VIO, PSD13_SCIF2, | ||
1554 | PSD12_VIO, PSD12_SCIF1, | ||
1555 | PSD11_VIO, PSD11_SCIF1, | ||
1556 | PSD10_VIO_D0, PSD10_LCDLCLK, | ||
1557 | PSD9_SIOMCK_SIUMCKB, PSD9_SIUFCKB, | ||
1558 | PSD8_SCIF0_SCK, PSD8_TPUTO, | ||
1559 | PSD7_SCIF0_RTS, PSD7_SIUAOSPD, | ||
1560 | PSD6_SCIF0_CTS, PSD6_SIUAISPD, | ||
1561 | PSD5_CS6B_CE1B, PSD5_LCDCS2, | ||
1562 | 0, 0, | ||
1563 | PSD3_LCDVEPWC_LCDVCPWC, PSD3_LCDVEPWC2_LCDVCPWC2, | ||
1564 | PSD2_LCDDON, PSD2_LCDDON2, | ||
1565 | 0, 0, | ||
1566 | PSD0_LCDD19_LCDD0, PSD0_DV } | ||
1567 | }, | ||
1568 | { PINMUX_CFG_REG("PSELE", 0xa4050156, 16, 1) { | ||
1569 | PSE15_SIOF0_MCK_IRQ3, PSE15_SIM_D, | ||
1570 | PSE14_SIOF0_TXD_IRDA_OUT, PSE14_SIM_CLK, | ||
1571 | PSE13_SIOF0_RXD_IRDA_IN, PSE13_TS_SDAT, | ||
1572 | PSE12_LCDVSYN2, PSE12_DACK, | ||
1573 | PSE11_SIUMCKA_SIOF1_MCK, PSE11_SIUFCKA, | ||
1574 | 0, 0, | ||
1575 | 0, 0, | ||
1576 | 0, 0, | ||
1577 | 0, 0, | ||
1578 | 0, 0, | ||
1579 | 0, 0, | ||
1580 | 0, 0, | ||
1581 | PSE3_FLCTL, PSE3_VIO, | ||
1582 | PSE2_NAF2, PSE2_VIO_D10, | ||
1583 | PSE1_NAF1, PSE1_VIO_D9, | ||
1584 | PSE0_NAF0, PSE0_VIO_D8 } | ||
1585 | }, | ||
1586 | { PINMUX_CFG_REG("HIZCRA", 0xa4050158, 16, 1) { | ||
1587 | 0, 0, | ||
1588 | HIZA14_KEYSC, HIZA14_HIZ, | ||
1589 | 0, 0, | ||
1590 | 0, 0, | ||
1591 | 0, 0, | ||
1592 | HIZA10_NAF, HIZA10_HIZ, | ||
1593 | HIZA9_VIO, HIZA9_HIZ, | ||
1594 | HIZA8_LCDC, HIZA8_HIZ, | ||
1595 | HIZA7_LCDC, HIZA7_HIZ, | ||
1596 | HIZA6_LCDC, HIZA6_HIZ, | ||
1597 | 0, 0, | ||
1598 | 0, 0, | ||
1599 | 0, 0, | ||
1600 | 0, 0, | ||
1601 | 0, 0, | ||
1602 | 0, 0 } | ||
1603 | }, | ||
1604 | { PINMUX_CFG_REG("HIZCRB", 0xa405015a, 16, 1) { | ||
1605 | 0, 0, | ||
1606 | 0, 0, | ||
1607 | 0, 0, | ||
1608 | 0, 0, | ||
1609 | 0, 0, | ||
1610 | 0, 0, | ||
1611 | 0, 0, | ||
1612 | 0, 0, | ||
1613 | 0, 0, | ||
1614 | 0, 0, | ||
1615 | 0, 0, | ||
1616 | HIZB4_SIUA, HIZB4_HIZ, | ||
1617 | 0, 0, | ||
1618 | 0, 0, | ||
1619 | HIZB1_VIO, HIZB1_HIZ, | ||
1620 | HIZB0_VIO, HIZB0_HIZ } | ||
1621 | }, | ||
1622 | { PINMUX_CFG_REG("HIZCRC", 0xa405015c, 16, 1) { | ||
1623 | HIZC15_IRQ7, HIZC15_HIZ, | ||
1624 | HIZC14_IRQ6, HIZC14_HIZ, | ||
1625 | HIZC13_IRQ5, HIZC13_HIZ, | ||
1626 | HIZC12_IRQ4, HIZC12_HIZ, | ||
1627 | HIZC11_IRQ3, HIZC11_HIZ, | ||
1628 | HIZC10_IRQ2, HIZC10_HIZ, | ||
1629 | HIZC9_IRQ1, HIZC9_HIZ, | ||
1630 | HIZC8_IRQ0, HIZC8_HIZ, | ||
1631 | 0, 0, | ||
1632 | 0, 0, | ||
1633 | 0, 0, | ||
1634 | 0, 0, | ||
1635 | 0, 0, | ||
1636 | 0, 0, | ||
1637 | 0, 0, | ||
1638 | 0, 0 } | ||
1639 | }, | ||
1640 | { PINMUX_CFG_REG("MSELCRB", 0xa4050182, 16, 1) { | ||
1641 | 0, 0, | ||
1642 | 0, 0, | ||
1643 | 0, 0, | ||
1644 | 0, 0, | ||
1645 | 0, 0, | ||
1646 | 0, 0, | ||
1647 | MSELB9_VIO, MSELB9_VIO2, | ||
1648 | MSELB8_RGB, MSELB8_SYS, | ||
1649 | 0, 0, | ||
1650 | 0, 0, | ||
1651 | 0, 0, | ||
1652 | 0, 0, | ||
1653 | 0, 0, | ||
1654 | 0, 0, | ||
1655 | 0, 0, | ||
1656 | 0, 0 } | ||
1657 | }, | ||
1658 | {} | ||
1659 | }; | ||
1660 | |||
1661 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1662 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { | ||
1663 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
1664 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
1665 | }, | ||
1666 | { PINMUX_DATA_REG("PBDR", 0xa4050122, 8) { | ||
1667 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
1668 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
1669 | }, | ||
1670 | { PINMUX_DATA_REG("PCDR", 0xa4050124, 8) { | ||
1671 | PTC7_DATA, 0, PTC5_DATA, PTC4_DATA, | ||
1672 | PTC3_DATA, PTC2_DATA, 0, PTC0_DATA } | ||
1673 | }, | ||
1674 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
1675 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
1676 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
1677 | }, | ||
1678 | { PINMUX_DATA_REG("PEDR", 0xa4050128, 8) { | ||
1679 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
1680 | 0, 0, PTE1_DATA, PTE0_DATA } | ||
1681 | }, | ||
1682 | { PINMUX_DATA_REG("PFDR", 0xa405012a, 8) { | ||
1683 | 0, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
1684 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
1685 | }, | ||
1686 | { PINMUX_DATA_REG("PGDR", 0xa405012c, 8) { | ||
1687 | 0, 0, 0, PTG4_DATA, | ||
1688 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
1689 | }, | ||
1690 | { PINMUX_DATA_REG("PHDR", 0xa405012e, 8) { | ||
1691 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
1692 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
1693 | }, | ||
1694 | { PINMUX_DATA_REG("PJDR", 0xa4050130, 8) { | ||
1695 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, 0, | ||
1696 | 0, 0, PTJ1_DATA, PTJ0_DATA } | ||
1697 | }, | ||
1698 | { PINMUX_DATA_REG("PKDR", 0xa4050132, 8) { | ||
1699 | 0, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
1700 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
1701 | }, | ||
1702 | { PINMUX_DATA_REG("PLDR", 0xa4050134, 8) { | ||
1703 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
1704 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
1705 | }, | ||
1706 | { PINMUX_DATA_REG("PMDR", 0xa4050136, 8) { | ||
1707 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
1708 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
1709 | }, | ||
1710 | { PINMUX_DATA_REG("PNDR", 0xa4050138, 8) { | ||
1711 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
1712 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
1713 | }, | ||
1714 | { PINMUX_DATA_REG("PQDR", 0xa405013a, 8) { | ||
1715 | 0, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
1716 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
1717 | }, | ||
1718 | { PINMUX_DATA_REG("PRDR", 0xa405013c, 8) { | ||
1719 | 0, 0, 0, PTR4_DATA, | ||
1720 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
1721 | }, | ||
1722 | { PINMUX_DATA_REG("PSDR", 0xa405013e, 8) { | ||
1723 | 0, 0, 0, PTS4_DATA, | ||
1724 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
1725 | }, | ||
1726 | { PINMUX_DATA_REG("PTDR", 0xa4050160, 8) { | ||
1727 | 0, 0, 0, PTT4_DATA, | ||
1728 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
1729 | }, | ||
1730 | { PINMUX_DATA_REG("PUDR", 0xa4050162, 8) { | ||
1731 | 0, 0, 0, PTU4_DATA, | ||
1732 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
1733 | }, | ||
1734 | { PINMUX_DATA_REG("PVDR", 0xa4050164, 8) { | ||
1735 | 0, 0, 0, PTV4_DATA, | ||
1736 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
1737 | }, | ||
1738 | { PINMUX_DATA_REG("PWDR", 0xa4050166, 8) { | ||
1739 | 0, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
1740 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
1741 | }, | ||
1742 | { PINMUX_DATA_REG("PXDR", 0xa4050168, 8) { | ||
1743 | 0, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
1744 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
1745 | }, | ||
1746 | { PINMUX_DATA_REG("PYDR", 0xa405016a, 8) { | ||
1747 | 0, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
1748 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
1749 | }, | ||
1750 | { PINMUX_DATA_REG("PZDR", 0xa405016c, 8) { | ||
1751 | 0, 0, PTZ5_DATA, PTZ4_DATA, | ||
1752 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
1753 | }, | ||
1754 | { }, | ||
1755 | }; | ||
1756 | |||
1757 | static struct pinmux_info sh7722_pinmux_info = { | ||
1758 | .name = "sh7722_pfc", | ||
1759 | .reserved_id = PINMUX_RESERVED, | ||
1760 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1761 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1762 | .input_pd = { PINMUX_INPUT_PULLDOWN_BEGIN, PINMUX_INPUT_PULLDOWN_END }, | ||
1763 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1764 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1765 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1766 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1767 | |||
1768 | .first_gpio = GPIO_PTA7, | ||
1769 | .last_gpio = GPIO_FN_KEYOUT5_IN5, | ||
1770 | |||
1771 | .gpios = pinmux_gpios, | ||
1772 | .cfg_regs = pinmux_config_regs, | ||
1773 | .data_regs = pinmux_data_regs, | ||
1774 | |||
1775 | .gpio_data = pinmux_data, | ||
1776 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1777 | }; | ||
1778 | 4 | ||
1779 | static int __init plat_pinmux_setup(void) | 5 | static int __init plat_pinmux_setup(void) |
1780 | { | 6 | { |
1781 | return register_pinmux(&sh7722_pinmux_info); | 7 | return sh_pfc_register("pfc-sh7722", NULL, 0); |
1782 | } | 8 | } |
1783 | 9 | ||
1784 | arch_initcall(plat_pinmux_setup); | 10 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c index 88bf5ecda849..bcec7ad7f783 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c | |||
@@ -10,1900 +10,11 @@ | |||
10 | 10 | ||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/gpio.h> | 13 | #include <cpu/pfc.h> |
14 | #include <cpu/sh7723.h> | ||
15 | |||
16 | enum { | ||
17 | PINMUX_RESERVED = 0, | ||
18 | |||
19 | PINMUX_DATA_BEGIN, | ||
20 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
21 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
22 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
23 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
24 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
25 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
26 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
27 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
28 | PTE5_DATA, PTE4_DATA, PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
29 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
30 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
31 | PTG5_DATA, PTG4_DATA, PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
32 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
33 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
34 | PTJ7_DATA, PTJ5_DATA, PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
35 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
36 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
37 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
38 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
39 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
40 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
41 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
42 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
43 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
44 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
45 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
46 | PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
47 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
48 | PTT5_DATA, PTT4_DATA, PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
49 | PTU5_DATA, PTU4_DATA, PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
50 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
51 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
52 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
53 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
54 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
55 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
56 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
57 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
58 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
59 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
60 | PINMUX_DATA_END, | ||
61 | |||
62 | PINMUX_INPUT_BEGIN, | ||
63 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
64 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
65 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
66 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
67 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
68 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
69 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
70 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
71 | PTE5_IN, PTE4_IN, PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
72 | PTF7_IN, PTF6_IN, PTF5_IN, PTF4_IN, | ||
73 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
74 | PTH7_IN, PTH6_IN, PTH5_IN, PTH4_IN, | ||
75 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
76 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
77 | PTK7_IN, PTK6_IN, PTK5_IN, PTK4_IN, | ||
78 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
79 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, | ||
80 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
81 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
82 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
83 | PTN7_IN, PTN6_IN, PTN5_IN, PTN4_IN, | ||
84 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
85 | PTQ3_IN, PTQ2_IN, PTQ1_IN, PTQ0_IN, | ||
86 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
87 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
88 | PTS7_IN, PTS6_IN, PTS5_IN, PTS4_IN, | ||
89 | PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
90 | PTT5_IN, PTT4_IN, PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
91 | PTU5_IN, PTU4_IN, PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
92 | PTV7_IN, PTV6_IN, PTV5_IN, PTV4_IN, | ||
93 | PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
94 | PTW7_IN, PTW6_IN, PTW5_IN, PTW4_IN, | ||
95 | PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
96 | PTX7_IN, PTX6_IN, PTX5_IN, PTX4_IN, | ||
97 | PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
98 | PTY7_IN, PTY6_IN, PTY5_IN, PTY4_IN, | ||
99 | PTY3_IN, PTY2_IN, PTY1_IN, PTY0_IN, | ||
100 | PTZ7_IN, PTZ6_IN, PTZ5_IN, PTZ4_IN, | ||
101 | PTZ3_IN, PTZ2_IN, PTZ1_IN, PTZ0_IN, | ||
102 | PINMUX_INPUT_END, | ||
103 | |||
104 | PINMUX_INPUT_PULLUP_BEGIN, | ||
105 | PTA4_IN_PU, PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
106 | PTB2_IN_PU, PTB1_IN_PU, | ||
107 | PTR2_IN_PU, | ||
108 | PINMUX_INPUT_PULLUP_END, | ||
109 | |||
110 | PINMUX_OUTPUT_BEGIN, | ||
111 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
112 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
113 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
114 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
115 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
116 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
117 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
118 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
119 | PTE5_OUT, PTE4_OUT, PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
120 | PTF7_OUT, PTF6_OUT, PTF5_OUT, PTF4_OUT, | ||
121 | PTF3_OUT, PTF2_OUT, PTF1_OUT, PTF0_OUT, | ||
122 | PTG5_OUT, PTG4_OUT, PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
123 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
124 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
125 | PTJ7_OUT, PTJ5_OUT, PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
126 | PTK7_OUT, PTK6_OUT, PTK5_OUT, PTK4_OUT, | ||
127 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
128 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
129 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
130 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
131 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
132 | PTN7_OUT, PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
133 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, | ||
134 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
135 | PTR1_OUT, PTR0_OUT, | ||
136 | PTS7_OUT, PTS6_OUT, PTS5_OUT, PTS4_OUT, | ||
137 | PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
138 | PTT5_OUT, PTT4_OUT, PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
139 | PTU5_OUT, PTU4_OUT, PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
140 | PTV7_OUT, PTV6_OUT, PTV5_OUT, PTV4_OUT, | ||
141 | PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
142 | PTW7_OUT, PTW6_OUT, PTW5_OUT, PTW4_OUT, | ||
143 | PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
144 | PTX7_OUT, PTX6_OUT, PTX5_OUT, PTX4_OUT, | ||
145 | PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
146 | PTY7_OUT, PTY6_OUT, PTY5_OUT, PTY4_OUT, | ||
147 | PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
148 | PTZ7_OUT, PTZ6_OUT, PTZ5_OUT, PTZ4_OUT, | ||
149 | PTZ3_OUT, PTZ2_OUT, PTZ1_OUT, PTZ0_OUT, | ||
150 | PINMUX_OUTPUT_END, | ||
151 | |||
152 | PINMUX_FUNCTION_BEGIN, | ||
153 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
154 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
155 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
156 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
157 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
158 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
159 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
160 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
161 | PTE5_FN, PTE4_FN, PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
162 | PTF7_FN, PTF6_FN, PTF5_FN, PTF4_FN, | ||
163 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
164 | PTG5_FN, PTG4_FN, PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
165 | PTH7_FN, PTH6_FN, PTH5_FN, PTH4_FN, | ||
166 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
167 | PTJ7_FN, PTJ5_FN, PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
168 | PTK7_FN, PTK6_FN, PTK5_FN, PTK4_FN, | ||
169 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
170 | PTL7_FN, PTL6_FN, PTL5_FN, PTL4_FN, | ||
171 | PTL3_FN, PTL2_FN, PTL1_FN, PTL0_FN, | ||
172 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
173 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
174 | PTN7_FN, PTN6_FN, PTN5_FN, PTN4_FN, | ||
175 | PTN3_FN, PTN2_FN, PTN1_FN, PTN0_FN, | ||
176 | PTQ3_FN, PTQ2_FN, PTQ1_FN, PTQ0_FN, | ||
177 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
178 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
179 | PTS7_FN, PTS6_FN, PTS5_FN, PTS4_FN, | ||
180 | PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
181 | PTT5_FN, PTT4_FN, PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
182 | PTU5_FN, PTU4_FN, PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
183 | PTV7_FN, PTV6_FN, PTV5_FN, PTV4_FN, | ||
184 | PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
185 | PTW7_FN, PTW6_FN, PTW5_FN, PTW4_FN, | ||
186 | PTW3_FN, PTW2_FN, PTW1_FN, PTW0_FN, | ||
187 | PTX7_FN, PTX6_FN, PTX5_FN, PTX4_FN, | ||
188 | PTX3_FN, PTX2_FN, PTX1_FN, PTX0_FN, | ||
189 | PTY7_FN, PTY6_FN, PTY5_FN, PTY4_FN, | ||
190 | PTY3_FN, PTY2_FN, PTY1_FN, PTY0_FN, | ||
191 | PTZ7_FN, PTZ6_FN, PTZ5_FN, PTZ4_FN, | ||
192 | PTZ3_FN, PTZ2_FN, PTZ1_FN, PTZ0_FN, | ||
193 | |||
194 | |||
195 | PSA15_PSA14_FN1, PSA15_PSA14_FN2, | ||
196 | PSA13_PSA12_FN1, PSA13_PSA12_FN2, | ||
197 | PSA11_PSA10_FN1, PSA11_PSA10_FN2, | ||
198 | PSA5_PSA4_FN1, PSA5_PSA4_FN2, PSA5_PSA4_FN3, | ||
199 | PSA3_PSA2_FN1, PSA3_PSA2_FN2, | ||
200 | PSB15_PSB14_FN1, PSB15_PSB14_FN2, | ||
201 | PSB13_PSB12_LCDC_RGB, PSB13_PSB12_LCDC_SYS, | ||
202 | PSB9_PSB8_FN1, PSB9_PSB8_FN2, PSB9_PSB8_FN3, | ||
203 | PSB7_PSB6_FN1, PSB7_PSB6_FN2, | ||
204 | PSB5_PSB4_FN1, PSB5_PSB4_FN2, | ||
205 | PSB3_PSB2_FN1, PSB3_PSB2_FN2, | ||
206 | PSC15_PSC14_FN1, PSC15_PSC14_FN2, | ||
207 | PSC13_PSC12_FN1, PSC13_PSC12_FN2, | ||
208 | PSC11_PSC10_FN1, PSC11_PSC10_FN2, PSC11_PSC10_FN3, | ||
209 | PSC9_PSC8_FN1, PSC9_PSC8_FN2, | ||
210 | PSC7_PSC6_FN1, PSC7_PSC6_FN2, PSC7_PSC6_FN3, | ||
211 | PSD15_PSD14_FN1, PSD15_PSD14_FN2, | ||
212 | PSD13_PSD12_FN1, PSD13_PSD12_FN2, | ||
213 | PSD11_PSD10_FN1, PSD11_PSD10_FN2, PSD11_PSD10_FN3, | ||
214 | PSD9_PSD8_FN1, PSD9_PSD8_FN2, | ||
215 | PSD7_PSD6_FN1, PSD7_PSD6_FN2, | ||
216 | PSD5_PSD4_FN1, PSD5_PSD4_FN2, | ||
217 | PSD3_PSD2_FN1, PSD3_PSD2_FN2, | ||
218 | PSD1_PSD0_FN1, PSD1_PSD0_FN2, | ||
219 | PINMUX_FUNCTION_END, | ||
220 | |||
221 | PINMUX_MARK_BEGIN, | ||
222 | SCIF0_PTT_TXD_MARK, SCIF0_PTT_RXD_MARK, | ||
223 | SCIF0_PTT_SCK_MARK, SCIF0_PTU_TXD_MARK, | ||
224 | SCIF0_PTU_RXD_MARK, SCIF0_PTU_SCK_MARK, | ||
225 | |||
226 | SCIF1_PTS_TXD_MARK, SCIF1_PTS_RXD_MARK, | ||
227 | SCIF1_PTS_SCK_MARK, SCIF1_PTV_TXD_MARK, | ||
228 | SCIF1_PTV_RXD_MARK, SCIF1_PTV_SCK_MARK, | ||
229 | |||
230 | SCIF2_PTT_TXD_MARK, SCIF2_PTT_RXD_MARK, | ||
231 | SCIF2_PTT_SCK_MARK, SCIF2_PTU_TXD_MARK, | ||
232 | SCIF2_PTU_RXD_MARK, SCIF2_PTU_SCK_MARK, | ||
233 | |||
234 | SCIF3_PTS_TXD_MARK, SCIF3_PTS_RXD_MARK, | ||
235 | SCIF3_PTS_SCK_MARK, SCIF3_PTS_RTS_MARK, | ||
236 | SCIF3_PTS_CTS_MARK, SCIF3_PTV_TXD_MARK, | ||
237 | SCIF3_PTV_RXD_MARK, SCIF3_PTV_SCK_MARK, | ||
238 | SCIF3_PTV_RTS_MARK, SCIF3_PTV_CTS_MARK, | ||
239 | |||
240 | SCIF4_PTE_TXD_MARK, SCIF4_PTE_RXD_MARK, | ||
241 | SCIF4_PTE_SCK_MARK, SCIF4_PTN_TXD_MARK, | ||
242 | SCIF4_PTN_RXD_MARK, SCIF4_PTN_SCK_MARK, | ||
243 | |||
244 | SCIF5_PTE_TXD_MARK, SCIF5_PTE_RXD_MARK, | ||
245 | SCIF5_PTE_SCK_MARK, SCIF5_PTN_TXD_MARK, | ||
246 | SCIF5_PTN_RXD_MARK, SCIF5_PTN_SCK_MARK, | ||
247 | |||
248 | VIO_D15_MARK, VIO_D14_MARK, VIO_D13_MARK, VIO_D12_MARK, | ||
249 | VIO_D11_MARK, VIO_D10_MARK, VIO_D9_MARK, VIO_D8_MARK, | ||
250 | VIO_D7_MARK, VIO_D6_MARK, VIO_D5_MARK, VIO_D4_MARK, | ||
251 | VIO_D3_MARK, VIO_D2_MARK, VIO_D1_MARK, VIO_D0_MARK, | ||
252 | VIO_FLD_MARK, VIO_CKO_MARK, | ||
253 | VIO_VD1_MARK, VIO_HD1_MARK, VIO_CLK1_MARK, | ||
254 | VIO_HD2_MARK, VIO_VD2_MARK, VIO_CLK2_MARK, | ||
255 | |||
256 | LCDD23_MARK, LCDD22_MARK, LCDD21_MARK, LCDD20_MARK, | ||
257 | LCDD19_MARK, LCDD18_MARK, LCDD17_MARK, LCDD16_MARK, | ||
258 | LCDD15_MARK, LCDD14_MARK, LCDD13_MARK, LCDD12_MARK, | ||
259 | LCDD11_MARK, LCDD10_MARK, LCDD9_MARK, LCDD8_MARK, | ||
260 | LCDD7_MARK, LCDD6_MARK, LCDD5_MARK, LCDD4_MARK, | ||
261 | LCDD3_MARK, LCDD2_MARK, LCDD1_MARK, LCDD0_MARK, | ||
262 | LCDDON_MARK, LCDVCPWC_MARK, LCDVEPWC_MARK, | ||
263 | LCDVSYN_MARK, LCDDCK_MARK, LCDHSYN_MARK, LCDDISP_MARK, | ||
264 | LCDRS_MARK, LCDCS_MARK, LCDWR_MARK, LCDRD_MARK, | ||
265 | LCDLCLK_PTR_MARK, LCDLCLK_PTW_MARK, | ||
266 | |||
267 | IRQ0_MARK, IRQ1_MARK, IRQ2_MARK, IRQ3_MARK, | ||
268 | IRQ4_MARK, IRQ5_MARK, IRQ6_MARK, IRQ7_MARK, | ||
269 | |||
270 | AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK, | ||
271 | AUDCK_MARK, AUDSYNC_MARK, | ||
272 | |||
273 | SDHI0CD_PTD_MARK, SDHI0WP_PTD_MARK, | ||
274 | SDHI0D3_PTD_MARK, SDHI0D2_PTD_MARK, | ||
275 | SDHI0D1_PTD_MARK, SDHI0D0_PTD_MARK, | ||
276 | SDHI0CMD_PTD_MARK, SDHI0CLK_PTD_MARK, | ||
277 | |||
278 | SDHI0CD_PTS_MARK, SDHI0WP_PTS_MARK, | ||
279 | SDHI0D3_PTS_MARK, SDHI0D2_PTS_MARK, | ||
280 | SDHI0D1_PTS_MARK, SDHI0D0_PTS_MARK, | ||
281 | SDHI0CMD_PTS_MARK, SDHI0CLK_PTS_MARK, | ||
282 | |||
283 | SDHI1CD_MARK, SDHI1WP_MARK, SDHI1D3_MARK, SDHI1D2_MARK, | ||
284 | SDHI1D1_MARK, SDHI1D0_MARK, SDHI1CMD_MARK, SDHI1CLK_MARK, | ||
285 | |||
286 | SIUAFCK_MARK, SIUAILR_MARK, SIUAIBT_MARK, SIUAISLD_MARK, | ||
287 | SIUAOLR_MARK, SIUAOBT_MARK, SIUAOSLD_MARK, SIUAMCK_MARK, | ||
288 | SIUAISPD_MARK, SIUAOSPD_MARK, | ||
289 | |||
290 | SIUBFCK_MARK, SIUBILR_MARK, SIUBIBT_MARK, SIUBISLD_MARK, | ||
291 | SIUBOLR_MARK, SIUBOBT_MARK, SIUBOSLD_MARK, SIUBMCK_MARK, | ||
292 | |||
293 | IRDA_IN_MARK, IRDA_OUT_MARK, | ||
294 | |||
295 | DV_CLKI_MARK, DV_CLK_MARK, DV_HSYNC_MARK, DV_VSYNC_MARK, | ||
296 | DV_D15_MARK, DV_D14_MARK, DV_D13_MARK, DV_D12_MARK, | ||
297 | DV_D11_MARK, DV_D10_MARK, DV_D9_MARK, DV_D8_MARK, | ||
298 | DV_D7_MARK, DV_D6_MARK, DV_D5_MARK, DV_D4_MARK, | ||
299 | DV_D3_MARK, DV_D2_MARK, DV_D1_MARK, DV_D0_MARK, | ||
300 | |||
301 | KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, KEYIN4_MARK, | ||
302 | KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK, | ||
303 | KEYOUT4_IN6_MARK, KEYOUT5_IN5_MARK, | ||
304 | |||
305 | MSIOF0_PTF_TXD_MARK, MSIOF0_PTF_RXD_MARK, MSIOF0_PTF_MCK_MARK, | ||
306 | MSIOF0_PTF_TSYNC_MARK, MSIOF0_PTF_TSCK_MARK, MSIOF0_PTF_RSYNC_MARK, | ||
307 | MSIOF0_PTF_RSCK_MARK, MSIOF0_PTF_SS1_MARK, MSIOF0_PTF_SS2_MARK, | ||
308 | |||
309 | MSIOF0_PTT_TXD_MARK, MSIOF0_PTT_RXD_MARK, MSIOF0_PTX_MCK_MARK, | ||
310 | MSIOF0_PTT_TSYNC_MARK, MSIOF0_PTT_TSCK_MARK, MSIOF0_PTT_RSYNC_MARK, | ||
311 | MSIOF0_PTT_RSCK_MARK, MSIOF0_PTT_SS1_MARK, MSIOF0_PTT_SS2_MARK, | ||
312 | |||
313 | MSIOF1_TXD_MARK, MSIOF1_RXD_MARK, MSIOF1_MCK_MARK, | ||
314 | MSIOF1_TSYNC_MARK, MSIOF1_TSCK_MARK, MSIOF1_RSYNC_MARK, | ||
315 | MSIOF1_RSCK_MARK, MSIOF1_SS1_MARK, MSIOF1_SS2_MARK, | ||
316 | |||
317 | TS0_SDAT_MARK, TS0_SCK_MARK, TS0_SDEN_MARK, TS0_SPSYNC_MARK, | ||
318 | |||
319 | FCE_MARK, NAF7_MARK, NAF6_MARK, NAF5_MARK, NAF4_MARK, | ||
320 | NAF3_MARK, NAF2_MARK, NAF1_MARK, NAF0_MARK, FCDE_MARK, | ||
321 | FOE_MARK, FSC_MARK, FWE_MARK, FRB_MARK, | ||
322 | |||
323 | DACK1_MARK, DREQ1_MARK, DACK0_MARK, DREQ0_MARK, | ||
324 | |||
325 | AN3_MARK, AN2_MARK, AN1_MARK, AN0_MARK, ADTRG_MARK, | ||
326 | |||
327 | STATUS0_MARK, PDSTATUS_MARK, | ||
328 | |||
329 | TPUTO3_MARK, TPUTO2_MARK, TPUTO1_MARK, TPUTO0_MARK, | ||
330 | |||
331 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, | ||
332 | D27_MARK, D26_MARK, D25_MARK, D24_MARK, | ||
333 | D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
334 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
335 | IOIS16_MARK, WAIT_MARK, BS_MARK, | ||
336 | A25_MARK, A24_MARK, A23_MARK, A22_MARK, | ||
337 | CS6B_CE1B_MARK, CS6A_CE2B_MARK, | ||
338 | CS5B_CE1A_MARK, CS5A_CE2A_MARK, | ||
339 | WE3_ICIOWR_MARK, WE2_ICIORD_MARK, | ||
340 | |||
341 | IDED15_MARK, IDED14_MARK, IDED13_MARK, IDED12_MARK, | ||
342 | IDED11_MARK, IDED10_MARK, IDED9_MARK, IDED8_MARK, | ||
343 | IDED7_MARK, IDED6_MARK, IDED5_MARK, IDED4_MARK, | ||
344 | IDED3_MARK, IDED2_MARK, IDED1_MARK, IDED0_MARK, | ||
345 | DIRECTION_MARK, EXBUF_ENB_MARK, IDERST_MARK, IODACK_MARK, | ||
346 | IODREQ_MARK, IDEIORDY_MARK, IDEINT_MARK, IDEIOWR_MARK, | ||
347 | IDEIORD_MARK, IDECS1_MARK, IDECS0_MARK, IDEA2_MARK, | ||
348 | IDEA1_MARK, IDEA0_MARK, | ||
349 | PINMUX_MARK_END, | ||
350 | }; | ||
351 | |||
352 | static pinmux_enum_t pinmux_data[] = { | ||
353 | /* PTA GPIO */ | ||
354 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT), | ||
355 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT), | ||
356 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT), | ||
357 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT, PTA4_IN_PU), | ||
358 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT, PTA3_IN_PU), | ||
359 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT, PTA2_IN_PU), | ||
360 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT, PTA1_IN_PU), | ||
361 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT, PTA0_IN_PU), | ||
362 | |||
363 | /* PTB GPIO */ | ||
364 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT), | ||
365 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT), | ||
366 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT), | ||
367 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT), | ||
368 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT), | ||
369 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT, PTB2_IN_PU), | ||
370 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT, PTB1_IN_PU), | ||
371 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT), | ||
372 | |||
373 | /* PTC GPIO */ | ||
374 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT), | ||
375 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT), | ||
376 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT), | ||
377 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT), | ||
378 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT), | ||
379 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT), | ||
380 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT), | ||
381 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT), | ||
382 | |||
383 | /* PTD GPIO */ | ||
384 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT), | ||
385 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT), | ||
386 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT), | ||
387 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT), | ||
388 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT), | ||
389 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT), | ||
390 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT), | ||
391 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT), | ||
392 | |||
393 | /* PTE GPIO */ | ||
394 | PINMUX_DATA(PTE5_DATA, PTE5_IN, PTE5_OUT), | ||
395 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT), | ||
396 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT), | ||
397 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT), | ||
398 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT), | ||
399 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT), | ||
400 | |||
401 | /* PTF GPIO */ | ||
402 | PINMUX_DATA(PTF7_DATA, PTF7_IN, PTF7_OUT), | ||
403 | PINMUX_DATA(PTF6_DATA, PTF6_IN, PTF6_OUT), | ||
404 | PINMUX_DATA(PTF5_DATA, PTF5_IN, PTF5_OUT), | ||
405 | PINMUX_DATA(PTF4_DATA, PTF4_IN, PTF4_OUT), | ||
406 | PINMUX_DATA(PTF3_DATA, PTF3_IN, PTF3_OUT), | ||
407 | PINMUX_DATA(PTF2_DATA, PTF2_IN, PTF2_OUT), | ||
408 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_OUT), | ||
409 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT), | ||
410 | |||
411 | /* PTG GPIO */ | ||
412 | PINMUX_DATA(PTG5_DATA, PTG5_OUT), | ||
413 | PINMUX_DATA(PTG4_DATA, PTG4_OUT), | ||
414 | PINMUX_DATA(PTG3_DATA, PTG3_OUT), | ||
415 | PINMUX_DATA(PTG2_DATA, PTG2_OUT), | ||
416 | PINMUX_DATA(PTG1_DATA, PTG1_OUT), | ||
417 | PINMUX_DATA(PTG0_DATA, PTG0_OUT), | ||
418 | |||
419 | /* PTH GPIO */ | ||
420 | PINMUX_DATA(PTH7_DATA, PTH7_IN, PTH7_OUT), | ||
421 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT), | ||
422 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT), | ||
423 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT), | ||
424 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT), | ||
425 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT), | ||
426 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT), | ||
427 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT), | ||
428 | |||
429 | /* PTJ GPIO */ | ||
430 | PINMUX_DATA(PTJ7_DATA, PTJ7_OUT), | ||
431 | PINMUX_DATA(PTJ5_DATA, PTJ5_OUT), | ||
432 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT), | ||
433 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT), | ||
434 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT), | ||
435 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT), | ||
436 | |||
437 | /* PTK GPIO */ | ||
438 | PINMUX_DATA(PTK7_DATA, PTK7_IN, PTK7_OUT), | ||
439 | PINMUX_DATA(PTK6_DATA, PTK6_IN, PTK6_OUT), | ||
440 | PINMUX_DATA(PTK5_DATA, PTK5_IN, PTK5_OUT), | ||
441 | PINMUX_DATA(PTK4_DATA, PTK4_IN, PTK4_OUT), | ||
442 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT), | ||
443 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT), | ||
444 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT), | ||
445 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT), | ||
446 | |||
447 | /* PTL GPIO */ | ||
448 | PINMUX_DATA(PTL7_DATA, PTL7_IN, PTL7_OUT), | ||
449 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT), | ||
450 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT), | ||
451 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT), | ||
452 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT), | ||
453 | PINMUX_DATA(PTL2_DATA, PTL2_IN, PTL2_OUT), | ||
454 | PINMUX_DATA(PTL1_DATA, PTL1_IN, PTL1_OUT), | ||
455 | PINMUX_DATA(PTL0_DATA, PTL0_IN, PTL0_OUT), | ||
456 | |||
457 | /* PTM GPIO */ | ||
458 | PINMUX_DATA(PTM7_DATA, PTM7_IN, PTM7_OUT), | ||
459 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT), | ||
460 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT), | ||
461 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT), | ||
462 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT), | ||
463 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT), | ||
464 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT), | ||
465 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT), | ||
466 | |||
467 | /* PTN GPIO */ | ||
468 | PINMUX_DATA(PTN7_DATA, PTN7_IN, PTN7_OUT), | ||
469 | PINMUX_DATA(PTN6_DATA, PTN6_IN, PTN6_OUT), | ||
470 | PINMUX_DATA(PTN5_DATA, PTN5_IN, PTN5_OUT), | ||
471 | PINMUX_DATA(PTN4_DATA, PTN4_IN, PTN4_OUT), | ||
472 | PINMUX_DATA(PTN3_DATA, PTN3_IN, PTN3_OUT), | ||
473 | PINMUX_DATA(PTN2_DATA, PTN2_IN, PTN2_OUT), | ||
474 | PINMUX_DATA(PTN1_DATA, PTN1_IN, PTN1_OUT), | ||
475 | PINMUX_DATA(PTN0_DATA, PTN0_IN, PTN0_OUT), | ||
476 | |||
477 | /* PTQ GPIO */ | ||
478 | PINMUX_DATA(PTQ3_DATA, PTQ3_IN), | ||
479 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN), | ||
480 | PINMUX_DATA(PTQ1_DATA, PTQ1_IN), | ||
481 | PINMUX_DATA(PTQ0_DATA, PTQ0_IN), | ||
482 | |||
483 | /* PTR GPIO */ | ||
484 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT), | ||
485 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT), | ||
486 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT), | ||
487 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT), | ||
488 | PINMUX_DATA(PTR3_DATA, PTR3_IN), | ||
489 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_IN_PU), | ||
490 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT), | ||
491 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT), | ||
492 | |||
493 | /* PTS GPIO */ | ||
494 | PINMUX_DATA(PTS7_DATA, PTS7_IN, PTS7_OUT), | ||
495 | PINMUX_DATA(PTS6_DATA, PTS6_IN, PTS6_OUT), | ||
496 | PINMUX_DATA(PTS5_DATA, PTS5_IN, PTS5_OUT), | ||
497 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT), | ||
498 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT), | ||
499 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT), | ||
500 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT), | ||
501 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT), | ||
502 | |||
503 | /* PTT GPIO */ | ||
504 | PINMUX_DATA(PTT5_DATA, PTT5_IN, PTT5_OUT), | ||
505 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT), | ||
506 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT), | ||
507 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT), | ||
508 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT), | ||
509 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT), | ||
510 | |||
511 | /* PTU GPIO */ | ||
512 | PINMUX_DATA(PTU5_DATA, PTU5_IN, PTU5_OUT), | ||
513 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT), | ||
514 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT), | ||
515 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT), | ||
516 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT), | ||
517 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT), | ||
518 | |||
519 | /* PTV GPIO */ | ||
520 | PINMUX_DATA(PTV7_DATA, PTV7_IN, PTV7_OUT), | ||
521 | PINMUX_DATA(PTV6_DATA, PTV6_IN, PTV6_OUT), | ||
522 | PINMUX_DATA(PTV5_DATA, PTV5_IN, PTV5_OUT), | ||
523 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT), | ||
524 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT), | ||
525 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT), | ||
526 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT), | ||
527 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT), | ||
528 | |||
529 | /* PTW GPIO */ | ||
530 | PINMUX_DATA(PTW7_DATA, PTW7_IN, PTW7_OUT), | ||
531 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_OUT), | ||
532 | PINMUX_DATA(PTW5_DATA, PTW5_IN, PTW5_OUT), | ||
533 | PINMUX_DATA(PTW4_DATA, PTW4_IN, PTW4_OUT), | ||
534 | PINMUX_DATA(PTW3_DATA, PTW3_IN, PTW3_OUT), | ||
535 | PINMUX_DATA(PTW2_DATA, PTW2_IN, PTW2_OUT), | ||
536 | PINMUX_DATA(PTW1_DATA, PTW1_IN, PTW1_OUT), | ||
537 | PINMUX_DATA(PTW0_DATA, PTW0_IN, PTW0_OUT), | ||
538 | |||
539 | /* PTX GPIO */ | ||
540 | PINMUX_DATA(PTX7_DATA, PTX7_IN, PTX7_OUT), | ||
541 | PINMUX_DATA(PTX6_DATA, PTX6_IN, PTX6_OUT), | ||
542 | PINMUX_DATA(PTX5_DATA, PTX5_IN, PTX5_OUT), | ||
543 | PINMUX_DATA(PTX4_DATA, PTX4_IN, PTX4_OUT), | ||
544 | PINMUX_DATA(PTX3_DATA, PTX3_IN, PTX3_OUT), | ||
545 | PINMUX_DATA(PTX2_DATA, PTX2_IN, PTX2_OUT), | ||
546 | PINMUX_DATA(PTX1_DATA, PTX1_IN, PTX1_OUT), | ||
547 | PINMUX_DATA(PTX0_DATA, PTX0_IN, PTX0_OUT), | ||
548 | |||
549 | /* PTY GPIO */ | ||
550 | PINMUX_DATA(PTY7_DATA, PTY7_IN, PTY7_OUT), | ||
551 | PINMUX_DATA(PTY6_DATA, PTY6_IN, PTY6_OUT), | ||
552 | PINMUX_DATA(PTY5_DATA, PTY5_IN, PTY5_OUT), | ||
553 | PINMUX_DATA(PTY4_DATA, PTY4_IN, PTY4_OUT), | ||
554 | PINMUX_DATA(PTY3_DATA, PTY3_IN, PTY3_OUT), | ||
555 | PINMUX_DATA(PTY2_DATA, PTY2_IN, PTY2_OUT), | ||
556 | PINMUX_DATA(PTY1_DATA, PTY1_IN, PTY1_OUT), | ||
557 | PINMUX_DATA(PTY0_DATA, PTY0_IN, PTY0_OUT), | ||
558 | |||
559 | /* PTZ GPIO */ | ||
560 | PINMUX_DATA(PTZ7_DATA, PTZ7_IN, PTZ7_OUT), | ||
561 | PINMUX_DATA(PTZ6_DATA, PTZ6_IN, PTZ6_OUT), | ||
562 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_OUT), | ||
563 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_OUT), | ||
564 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_OUT), | ||
565 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_OUT), | ||
566 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_OUT), | ||
567 | PINMUX_DATA(PTZ0_DATA, PTZ0_IN, PTZ0_OUT), | ||
568 | |||
569 | /* PTA FN */ | ||
570 | PINMUX_DATA(D23_MARK, PSA15_PSA14_FN1, PTA7_FN), | ||
571 | PINMUX_DATA(KEYOUT2_MARK, PSA15_PSA14_FN2, PTA7_FN), | ||
572 | PINMUX_DATA(D22_MARK, PSA15_PSA14_FN1, PTA6_FN), | ||
573 | PINMUX_DATA(KEYOUT1_MARK, PSA15_PSA14_FN2, PTA6_FN), | ||
574 | PINMUX_DATA(D21_MARK, PSA15_PSA14_FN1, PTA5_FN), | ||
575 | PINMUX_DATA(KEYOUT0_MARK, PSA15_PSA14_FN2, PTA5_FN), | ||
576 | PINMUX_DATA(D20_MARK, PSA15_PSA14_FN1, PTA4_FN), | ||
577 | PINMUX_DATA(KEYIN4_MARK, PSA15_PSA14_FN2, PTA4_FN), | ||
578 | PINMUX_DATA(D19_MARK, PSA15_PSA14_FN1, PTA3_FN), | ||
579 | PINMUX_DATA(KEYIN3_MARK, PSA15_PSA14_FN2, PTA3_FN), | ||
580 | PINMUX_DATA(D18_MARK, PSA15_PSA14_FN1, PTA2_FN), | ||
581 | PINMUX_DATA(KEYIN2_MARK, PSA15_PSA14_FN2, PTA2_FN), | ||
582 | PINMUX_DATA(D17_MARK, PSA15_PSA14_FN1, PTA1_FN), | ||
583 | PINMUX_DATA(KEYIN1_MARK, PSA15_PSA14_FN2, PTA1_FN), | ||
584 | PINMUX_DATA(D16_MARK, PSA15_PSA14_FN1, PTA0_FN), | ||
585 | PINMUX_DATA(KEYIN0_MARK, PSA15_PSA14_FN2, PTA0_FN), | ||
586 | |||
587 | /* PTB FN */ | ||
588 | PINMUX_DATA(D31_MARK, PTB7_FN), | ||
589 | PINMUX_DATA(D30_MARK, PTB6_FN), | ||
590 | PINMUX_DATA(D29_MARK, PTB5_FN), | ||
591 | PINMUX_DATA(D28_MARK, PTB4_FN), | ||
592 | PINMUX_DATA(D27_MARK, PTB3_FN), | ||
593 | PINMUX_DATA(D26_MARK, PSA15_PSA14_FN1, PTB2_FN), | ||
594 | PINMUX_DATA(KEYOUT5_IN5_MARK, PSA15_PSA14_FN2, PTB2_FN), | ||
595 | PINMUX_DATA(D25_MARK, PSA15_PSA14_FN1, PTB1_FN), | ||
596 | PINMUX_DATA(KEYOUT4_IN6_MARK, PSA15_PSA14_FN2, PTB1_FN), | ||
597 | PINMUX_DATA(D24_MARK, PSA15_PSA14_FN1, PTB0_FN), | ||
598 | PINMUX_DATA(KEYOUT3_MARK, PSA15_PSA14_FN2, PTB0_FN), | ||
599 | |||
600 | /* PTC FN */ | ||
601 | PINMUX_DATA(IDED15_MARK, PSA11_PSA10_FN1, PTC7_FN), | ||
602 | PINMUX_DATA(SDHI1CD_MARK, PSA11_PSA10_FN2, PTC7_FN), | ||
603 | PINMUX_DATA(IDED14_MARK, PSA11_PSA10_FN1, PTC6_FN), | ||
604 | PINMUX_DATA(SDHI1WP_MARK, PSA11_PSA10_FN2, PTC6_FN), | ||
605 | PINMUX_DATA(IDED13_MARK, PSA11_PSA10_FN1, PTC5_FN), | ||
606 | PINMUX_DATA(SDHI1D3_MARK, PSA11_PSA10_FN2, PTC5_FN), | ||
607 | PINMUX_DATA(IDED12_MARK, PSA11_PSA10_FN1, PTC4_FN), | ||
608 | PINMUX_DATA(SDHI1D2_MARK, PSA11_PSA10_FN2, PTC4_FN), | ||
609 | PINMUX_DATA(IDED11_MARK, PSA11_PSA10_FN1, PTC3_FN), | ||
610 | PINMUX_DATA(SDHI1D1_MARK, PSA11_PSA10_FN2, PTC3_FN), | ||
611 | PINMUX_DATA(IDED10_MARK, PSA11_PSA10_FN1, PTC2_FN), | ||
612 | PINMUX_DATA(SDHI1D0_MARK, PSA11_PSA10_FN2, PTC2_FN), | ||
613 | PINMUX_DATA(IDED9_MARK, PSA11_PSA10_FN1, PTC1_FN), | ||
614 | PINMUX_DATA(SDHI1CMD_MARK, PSA11_PSA10_FN2, PTC1_FN), | ||
615 | PINMUX_DATA(IDED8_MARK, PSA11_PSA10_FN1, PTC0_FN), | ||
616 | PINMUX_DATA(SDHI1CLK_MARK, PSA11_PSA10_FN2, PTC0_FN), | ||
617 | |||
618 | /* PTD FN */ | ||
619 | PINMUX_DATA(IDED7_MARK, PSA11_PSA10_FN1, PTD7_FN), | ||
620 | PINMUX_DATA(SDHI0CD_PTD_MARK, PSA11_PSA10_FN2, PTD7_FN), | ||
621 | PINMUX_DATA(IDED6_MARK, PSA11_PSA10_FN1, PTD6_FN), | ||
622 | PINMUX_DATA(SDHI0WP_PTD_MARK, PSA11_PSA10_FN2, PTD6_FN), | ||
623 | PINMUX_DATA(IDED5_MARK, PSA11_PSA10_FN1, PTD5_FN), | ||
624 | PINMUX_DATA(SDHI0D3_PTD_MARK, PSA11_PSA10_FN2, PTD5_FN), | ||
625 | PINMUX_DATA(IDED4_MARK, PSA11_PSA10_FN1, PTD4_FN), | ||
626 | PINMUX_DATA(SDHI0D2_PTD_MARK, PSA11_PSA10_FN2, PTD4_FN), | ||
627 | PINMUX_DATA(IDED3_MARK, PSA11_PSA10_FN1, PTD3_FN), | ||
628 | PINMUX_DATA(SDHI0D1_PTD_MARK, PSA11_PSA10_FN2, PTD3_FN), | ||
629 | PINMUX_DATA(IDED2_MARK, PSA11_PSA10_FN1, PTD2_FN), | ||
630 | PINMUX_DATA(SDHI0D0_PTD_MARK, PSA11_PSA10_FN2, PTD2_FN), | ||
631 | PINMUX_DATA(IDED1_MARK, PSA11_PSA10_FN1, PTD1_FN), | ||
632 | PINMUX_DATA(SDHI0CMD_PTD_MARK, PSA11_PSA10_FN2, PTD1_FN), | ||
633 | PINMUX_DATA(IDED0_MARK, PSA11_PSA10_FN1, PTD0_FN), | ||
634 | PINMUX_DATA(SDHI0CLK_PTD_MARK, PSA11_PSA10_FN2, PTD0_FN), | ||
635 | |||
636 | /* PTE FN */ | ||
637 | PINMUX_DATA(DIRECTION_MARK, PSA11_PSA10_FN1, PTE5_FN), | ||
638 | PINMUX_DATA(SCIF5_PTE_SCK_MARK, PSA11_PSA10_FN2, PTE5_FN), | ||
639 | PINMUX_DATA(EXBUF_ENB_MARK, PSA11_PSA10_FN1, PTE4_FN), | ||
640 | PINMUX_DATA(SCIF5_PTE_RXD_MARK, PSA11_PSA10_FN2, PTE4_FN), | ||
641 | PINMUX_DATA(IDERST_MARK, PSA11_PSA10_FN1, PTE3_FN), | ||
642 | PINMUX_DATA(SCIF5_PTE_TXD_MARK, PSA11_PSA10_FN2, PTE3_FN), | ||
643 | PINMUX_DATA(IODACK_MARK, PSA11_PSA10_FN1, PTE2_FN), | ||
644 | PINMUX_DATA(SCIF4_PTE_SCK_MARK, PSA11_PSA10_FN2, PTE2_FN), | ||
645 | PINMUX_DATA(IODREQ_MARK, PSA11_PSA10_FN1, PTE1_FN), | ||
646 | PINMUX_DATA(SCIF4_PTE_RXD_MARK, PSA11_PSA10_FN2, PTE1_FN), | ||
647 | PINMUX_DATA(IDEIORDY_MARK, PSA11_PSA10_FN1, PTE0_FN), | ||
648 | PINMUX_DATA(SCIF4_PTE_TXD_MARK, PSA11_PSA10_FN2, PTE0_FN), | ||
649 | |||
650 | /* PTF FN */ | ||
651 | PINMUX_DATA(IDEINT_MARK, PTF7_FN), | ||
652 | PINMUX_DATA(IDEIOWR_MARK, PSA5_PSA4_FN1, PTF6_FN), | ||
653 | PINMUX_DATA(MSIOF0_PTF_SS2_MARK, PSA5_PSA4_FN2, PTF6_FN), | ||
654 | PINMUX_DATA(MSIOF0_PTF_RSYNC_MARK, PSA5_PSA4_FN3, PTF6_FN), | ||
655 | PINMUX_DATA(IDEIORD_MARK, PSA5_PSA4_FN1, PTF5_FN), | ||
656 | PINMUX_DATA(MSIOF0_PTF_SS1_MARK, PSA5_PSA4_FN2, PTF5_FN), | ||
657 | PINMUX_DATA(MSIOF0_PTF_RSCK_MARK, PSA5_PSA4_FN3, PTF5_FN), | ||
658 | PINMUX_DATA(IDECS1_MARK, PSA11_PSA10_FN1, PTF4_FN), | ||
659 | PINMUX_DATA(MSIOF0_PTF_TSYNC_MARK, PSA11_PSA10_FN2, PTF4_FN), | ||
660 | PINMUX_DATA(IDECS0_MARK, PSA11_PSA10_FN1, PTF3_FN), | ||
661 | PINMUX_DATA(MSIOF0_PTF_TSCK_MARK, PSA11_PSA10_FN2, PTF3_FN), | ||
662 | PINMUX_DATA(IDEA2_MARK, PSA11_PSA10_FN1, PTF2_FN), | ||
663 | PINMUX_DATA(MSIOF0_PTF_RXD_MARK, PSA11_PSA10_FN2, PTF2_FN), | ||
664 | PINMUX_DATA(IDEA1_MARK, PSA11_PSA10_FN1, PTF1_FN), | ||
665 | PINMUX_DATA(MSIOF0_PTF_TXD_MARK, PSA11_PSA10_FN2, PTF1_FN), | ||
666 | PINMUX_DATA(IDEA0_MARK, PSA11_PSA10_FN1, PTF0_FN), | ||
667 | PINMUX_DATA(MSIOF0_PTF_MCK_MARK, PSA11_PSA10_FN2, PTF0_FN), | ||
668 | |||
669 | /* PTG FN */ | ||
670 | PINMUX_DATA(AUDCK_MARK, PTG5_FN), | ||
671 | PINMUX_DATA(AUDSYNC_MARK, PTG4_FN), | ||
672 | PINMUX_DATA(AUDATA3_MARK, PSA3_PSA2_FN1, PTG3_FN), | ||
673 | PINMUX_DATA(TPUTO3_MARK, PSA3_PSA2_FN2, PTG3_FN), | ||
674 | PINMUX_DATA(AUDATA2_MARK, PSA3_PSA2_FN1, PTG2_FN), | ||
675 | PINMUX_DATA(TPUTO2_MARK, PSA3_PSA2_FN2, PTG2_FN), | ||
676 | PINMUX_DATA(AUDATA1_MARK, PSA3_PSA2_FN1, PTG1_FN), | ||
677 | PINMUX_DATA(TPUTO1_MARK, PSA3_PSA2_FN2, PTG1_FN), | ||
678 | PINMUX_DATA(AUDATA0_MARK, PSA3_PSA2_FN1, PTG0_FN), | ||
679 | PINMUX_DATA(TPUTO0_MARK, PSA3_PSA2_FN2, PTG0_FN), | ||
680 | |||
681 | /* PTG FN */ | ||
682 | PINMUX_DATA(LCDVCPWC_MARK, PTH7_FN), | ||
683 | PINMUX_DATA(LCDRD_MARK, PSB15_PSB14_FN1, PTH6_FN), | ||
684 | PINMUX_DATA(DV_CLKI_MARK, PSB15_PSB14_FN2, PTH6_FN), | ||
685 | PINMUX_DATA(LCDVSYN_MARK, PSB15_PSB14_FN1, PTH5_FN), | ||
686 | PINMUX_DATA(DV_CLK_MARK, PSB15_PSB14_FN2, PTH5_FN), | ||
687 | PINMUX_DATA(LCDDISP_MARK, PSB13_PSB12_LCDC_RGB, PTH4_FN), | ||
688 | PINMUX_DATA(LCDRS_MARK, PSB13_PSB12_LCDC_SYS, PTH4_FN), | ||
689 | PINMUX_DATA(LCDHSYN_MARK, PSB13_PSB12_LCDC_RGB, PTH3_FN), | ||
690 | PINMUX_DATA(LCDCS_MARK, PSB13_PSB12_LCDC_SYS, PTH3_FN), | ||
691 | PINMUX_DATA(LCDDON_MARK, PTH2_FN), | ||
692 | PINMUX_DATA(LCDDCK_MARK, PSB13_PSB12_LCDC_RGB, PTH1_FN), | ||
693 | PINMUX_DATA(LCDWR_MARK, PSB13_PSB12_LCDC_SYS, PTH1_FN), | ||
694 | PINMUX_DATA(LCDVEPWC_MARK, PTH0_FN), | ||
695 | |||
696 | /* PTJ FN */ | ||
697 | PINMUX_DATA(STATUS0_MARK, PTJ7_FN), | ||
698 | PINMUX_DATA(PDSTATUS_MARK, PTJ5_FN), | ||
699 | PINMUX_DATA(A25_MARK, PTJ3_FN), | ||
700 | PINMUX_DATA(A24_MARK, PTJ2_FN), | ||
701 | PINMUX_DATA(A23_MARK, PTJ1_FN), | ||
702 | PINMUX_DATA(A22_MARK, PTJ0_FN), | ||
703 | |||
704 | /* PTK FN */ | ||
705 | PINMUX_DATA(SIUAFCK_MARK, PTK7_FN), | ||
706 | PINMUX_DATA(SIUAILR_MARK, PSB9_PSB8_FN1, PTK6_FN), | ||
707 | PINMUX_DATA(MSIOF1_SS2_MARK, PSB9_PSB8_FN2, PTK6_FN), | ||
708 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PSB9_PSB8_FN3, PTK6_FN), | ||
709 | PINMUX_DATA(SIUAIBT_MARK, PSB9_PSB8_FN1, PTK5_FN), | ||
710 | PINMUX_DATA(MSIOF1_SS1_MARK, PSB9_PSB8_FN2, PTK5_FN), | ||
711 | PINMUX_DATA(MSIOF1_RSCK_MARK, PSB9_PSB8_FN3, PTK5_FN), | ||
712 | PINMUX_DATA(SIUAISLD_MARK, PSB7_PSB6_FN1, PTK4_FN), | ||
713 | PINMUX_DATA(MSIOF1_RXD_MARK, PSB7_PSB6_FN2, PTK4_FN), | ||
714 | PINMUX_DATA(SIUAOLR_MARK, PSB7_PSB6_FN1, PTK3_FN), | ||
715 | PINMUX_DATA(MSIOF1_TSYNC_MARK, PSB7_PSB6_FN2, PTK3_FN), | ||
716 | PINMUX_DATA(SIUAOBT_MARK, PSB7_PSB6_FN1, PTK2_FN), | ||
717 | PINMUX_DATA(MSIOF1_TSCK_MARK, PSB7_PSB6_FN2, PTK2_FN), | ||
718 | PINMUX_DATA(SIUAOSLD_MARK, PSB7_PSB6_FN1, PTK1_FN), | ||
719 | PINMUX_DATA(MSIOF1_RXD_MARK, PSB7_PSB6_FN2, PTK1_FN), | ||
720 | PINMUX_DATA(SIUAMCK_MARK, PSB7_PSB6_FN1, PTK0_FN), | ||
721 | PINMUX_DATA(MSIOF1_MCK_MARK, PSB7_PSB6_FN2, PTK0_FN), | ||
722 | |||
723 | /* PTL FN */ | ||
724 | PINMUX_DATA(LCDD15_MARK, PSB5_PSB4_FN1, PTL7_FN), | ||
725 | PINMUX_DATA(DV_D15_MARK, PSB5_PSB4_FN2, PTL7_FN), | ||
726 | PINMUX_DATA(LCDD14_MARK, PSB5_PSB4_FN1, PTL6_FN), | ||
727 | PINMUX_DATA(DV_D14_MARK, PSB5_PSB4_FN2, PTL6_FN), | ||
728 | PINMUX_DATA(LCDD13_MARK, PSB5_PSB4_FN1, PTL5_FN), | ||
729 | PINMUX_DATA(DV_D13_MARK, PSB5_PSB4_FN2, PTL5_FN), | ||
730 | PINMUX_DATA(LCDD12_MARK, PSB5_PSB4_FN1, PTL4_FN), | ||
731 | PINMUX_DATA(DV_D12_MARK, PSB5_PSB4_FN2, PTL4_FN), | ||
732 | PINMUX_DATA(LCDD11_MARK, PSB5_PSB4_FN1, PTL3_FN), | ||
733 | PINMUX_DATA(DV_D11_MARK, PSB5_PSB4_FN2, PTL3_FN), | ||
734 | PINMUX_DATA(LCDD10_MARK, PSB5_PSB4_FN1, PTL2_FN), | ||
735 | PINMUX_DATA(DV_D10_MARK, PSB5_PSB4_FN2, PTL2_FN), | ||
736 | PINMUX_DATA(LCDD9_MARK, PSB5_PSB4_FN1, PTL1_FN), | ||
737 | PINMUX_DATA(DV_D9_MARK, PSB5_PSB4_FN2, PTL1_FN), | ||
738 | PINMUX_DATA(LCDD8_MARK, PSB5_PSB4_FN1, PTL0_FN), | ||
739 | PINMUX_DATA(DV_D8_MARK, PSB5_PSB4_FN2, PTL0_FN), | ||
740 | |||
741 | /* PTM FN */ | ||
742 | PINMUX_DATA(LCDD7_MARK, PSB5_PSB4_FN1, PTM7_FN), | ||
743 | PINMUX_DATA(DV_D7_MARK, PSB5_PSB4_FN2, PTM7_FN), | ||
744 | PINMUX_DATA(LCDD6_MARK, PSB5_PSB4_FN1, PTM6_FN), | ||
745 | PINMUX_DATA(DV_D6_MARK, PSB5_PSB4_FN2, PTM6_FN), | ||
746 | PINMUX_DATA(LCDD5_MARK, PSB5_PSB4_FN1, PTM5_FN), | ||
747 | PINMUX_DATA(DV_D5_MARK, PSB5_PSB4_FN2, PTM5_FN), | ||
748 | PINMUX_DATA(LCDD4_MARK, PSB5_PSB4_FN1, PTM4_FN), | ||
749 | PINMUX_DATA(DV_D4_MARK, PSB5_PSB4_FN2, PTM4_FN), | ||
750 | PINMUX_DATA(LCDD3_MARK, PSB5_PSB4_FN1, PTM3_FN), | ||
751 | PINMUX_DATA(DV_D3_MARK, PSB5_PSB4_FN2, PTM3_FN), | ||
752 | PINMUX_DATA(LCDD2_MARK, PSB5_PSB4_FN1, PTM2_FN), | ||
753 | PINMUX_DATA(DV_D2_MARK, PSB5_PSB4_FN2, PTM2_FN), | ||
754 | PINMUX_DATA(LCDD1_MARK, PSB5_PSB4_FN1, PTM1_FN), | ||
755 | PINMUX_DATA(DV_D1_MARK, PSB5_PSB4_FN2, PTM1_FN), | ||
756 | PINMUX_DATA(LCDD0_MARK, PSB5_PSB4_FN1, PTM0_FN), | ||
757 | PINMUX_DATA(DV_D0_MARK, PSB5_PSB4_FN2, PTM0_FN), | ||
758 | |||
759 | /* PTN FN */ | ||
760 | PINMUX_DATA(LCDD23_MARK, PSB3_PSB2_FN1, PTN7_FN), | ||
761 | PINMUX_DATA(SCIF5_PTN_SCK_MARK, PSB3_PSB2_FN2, PTN7_FN), | ||
762 | PINMUX_DATA(LCDD22_MARK, PSB3_PSB2_FN1, PTN6_FN), | ||
763 | PINMUX_DATA(SCIF5_PTN_RXD_MARK, PSB3_PSB2_FN2, PTN6_FN), | ||
764 | PINMUX_DATA(LCDD21_MARK, PSB3_PSB2_FN1, PTN5_FN), | ||
765 | PINMUX_DATA(SCIF5_PTN_TXD_MARK, PSB3_PSB2_FN2, PTN5_FN), | ||
766 | PINMUX_DATA(LCDD20_MARK, PSB3_PSB2_FN1, PTN4_FN), | ||
767 | PINMUX_DATA(SCIF4_PTN_SCK_MARK, PSB3_PSB2_FN2, PTN4_FN), | ||
768 | PINMUX_DATA(LCDD19_MARK, PSB3_PSB2_FN1, PTN3_FN), | ||
769 | PINMUX_DATA(SCIF4_PTN_RXD_MARK, PSB3_PSB2_FN2, PTN3_FN), | ||
770 | PINMUX_DATA(LCDD18_MARK, PSB3_PSB2_FN1, PTN2_FN), | ||
771 | PINMUX_DATA(SCIF4_PTN_TXD_MARK, PSB3_PSB2_FN2, PTN2_FN), | ||
772 | PINMUX_DATA(LCDD17_MARK, PSB5_PSB4_FN1, PTN1_FN), | ||
773 | PINMUX_DATA(DV_VSYNC_MARK, PSB5_PSB4_FN2, PTN1_FN), | ||
774 | PINMUX_DATA(LCDD16_MARK, PSB5_PSB4_FN1, PTN0_FN), | ||
775 | PINMUX_DATA(DV_HSYNC_MARK, PSB5_PSB4_FN2, PTN0_FN), | ||
776 | |||
777 | /* PTQ FN */ | ||
778 | PINMUX_DATA(AN3_MARK, PTQ3_FN), | ||
779 | PINMUX_DATA(AN2_MARK, PTQ2_FN), | ||
780 | PINMUX_DATA(AN1_MARK, PTQ1_FN), | ||
781 | PINMUX_DATA(AN0_MARK, PTQ0_FN), | ||
782 | |||
783 | /* PTR FN */ | ||
784 | PINMUX_DATA(CS6B_CE1B_MARK, PTR7_FN), | ||
785 | PINMUX_DATA(CS6A_CE2B_MARK, PTR6_FN), | ||
786 | PINMUX_DATA(CS5B_CE1A_MARK, PTR5_FN), | ||
787 | PINMUX_DATA(CS5A_CE2A_MARK, PTR4_FN), | ||
788 | PINMUX_DATA(IOIS16_MARK, PSA13_PSA12_FN1, PTR3_FN), | ||
789 | PINMUX_DATA(LCDLCLK_PTR_MARK, PSA13_PSA12_FN2, PTR3_FN), | ||
790 | PINMUX_DATA(WAIT_MARK, PTR2_FN), | ||
791 | PINMUX_DATA(WE3_ICIOWR_MARK, PTR1_FN), | ||
792 | PINMUX_DATA(WE2_ICIORD_MARK, PTR0_FN), | ||
793 | |||
794 | /* PTS FN */ | ||
795 | PINMUX_DATA(SCIF1_PTS_SCK_MARK, PSC15_PSC14_FN1, PTS7_FN), | ||
796 | PINMUX_DATA(SDHI0CD_PTS_MARK, PSC15_PSC14_FN2, PTS7_FN), | ||
797 | PINMUX_DATA(SCIF1_PTS_RXD_MARK, PSC15_PSC14_FN1, PTS6_FN), | ||
798 | PINMUX_DATA(SDHI0WP_PTS_MARK, PSC15_PSC14_FN2, PTS6_FN), | ||
799 | PINMUX_DATA(SCIF1_PTS_TXD_MARK, PSC15_PSC14_FN1, PTS5_FN), | ||
800 | PINMUX_DATA(SDHI0D3_PTS_MARK, PSC15_PSC14_FN2, PTS5_FN), | ||
801 | PINMUX_DATA(SCIF3_PTS_CTS_MARK, PSC15_PSC14_FN1, PTS4_FN), | ||
802 | PINMUX_DATA(SDHI0D2_PTS_MARK, PSC15_PSC14_FN2, PTS4_FN), | ||
803 | PINMUX_DATA(SCIF3_PTS_RTS_MARK, PSC15_PSC14_FN1, PTS3_FN), | ||
804 | PINMUX_DATA(SDHI0D1_PTS_MARK, PSC15_PSC14_FN2, PTS3_FN), | ||
805 | PINMUX_DATA(SCIF3_PTS_SCK_MARK, PSC15_PSC14_FN1, PTS2_FN), | ||
806 | PINMUX_DATA(SDHI0D0_PTS_MARK, PSC15_PSC14_FN2, PTS2_FN), | ||
807 | PINMUX_DATA(SCIF3_PTS_RXD_MARK, PSC15_PSC14_FN1, PTS1_FN), | ||
808 | PINMUX_DATA(SDHI0CMD_PTS_MARK, PSC15_PSC14_FN2, PTS1_FN), | ||
809 | PINMUX_DATA(SCIF3_PTS_TXD_MARK, PSC15_PSC14_FN1, PTS0_FN), | ||
810 | PINMUX_DATA(SDHI0CLK_PTS_MARK, PSC15_PSC14_FN2, PTS0_FN), | ||
811 | |||
812 | /* PTT FN */ | ||
813 | PINMUX_DATA(SCIF0_PTT_SCK_MARK, PSC13_PSC12_FN1, PTT5_FN), | ||
814 | PINMUX_DATA(MSIOF0_PTT_TSCK_MARK, PSC13_PSC12_FN2, PTT5_FN), | ||
815 | PINMUX_DATA(SCIF0_PTT_RXD_MARK, PSC13_PSC12_FN1, PTT4_FN), | ||
816 | PINMUX_DATA(MSIOF0_PTT_RXD_MARK, PSC13_PSC12_FN2, PTT4_FN), | ||
817 | PINMUX_DATA(SCIF0_PTT_TXD_MARK, PSC13_PSC12_FN1, PTT3_FN), | ||
818 | PINMUX_DATA(MSIOF0_PTT_TXD_MARK, PSC13_PSC12_FN2, PTT3_FN), | ||
819 | PINMUX_DATA(SCIF2_PTT_SCK_MARK, PSC11_PSC10_FN1, PTT2_FN), | ||
820 | PINMUX_DATA(MSIOF0_PTT_TSYNC_MARK, PSC11_PSC10_FN2, PTT2_FN), | ||
821 | PINMUX_DATA(SCIF2_PTT_RXD_MARK, PSC11_PSC10_FN1, PTT1_FN), | ||
822 | PINMUX_DATA(MSIOF0_PTT_SS1_MARK, PSC11_PSC10_FN2, PTT1_FN), | ||
823 | PINMUX_DATA(MSIOF0_PTT_RSCK_MARK, PSC11_PSC10_FN3, PTT1_FN), | ||
824 | PINMUX_DATA(SCIF2_PTT_TXD_MARK, PSC11_PSC10_FN1, PTT0_FN), | ||
825 | PINMUX_DATA(MSIOF0_PTT_SS2_MARK, PSC11_PSC10_FN2, PTT0_FN), | ||
826 | PINMUX_DATA(MSIOF0_PTT_RSYNC_MARK, PSC11_PSC10_FN3, PTT0_FN), | ||
827 | |||
828 | /* PTU FN */ | ||
829 | PINMUX_DATA(FCDE_MARK, PSC9_PSC8_FN1, PTU5_FN), | ||
830 | PINMUX_DATA(SCIF0_PTU_SCK_MARK, PSC9_PSC8_FN2, PTU5_FN), | ||
831 | PINMUX_DATA(FSC_MARK, PSC9_PSC8_FN1, PTU4_FN), | ||
832 | PINMUX_DATA(SCIF0_PTU_RXD_MARK, PSC9_PSC8_FN2, PTU4_FN), | ||
833 | PINMUX_DATA(FWE_MARK, PSC9_PSC8_FN1, PTU3_FN), | ||
834 | PINMUX_DATA(SCIF0_PTU_TXD_MARK, PSC9_PSC8_FN2, PTU3_FN), | ||
835 | PINMUX_DATA(FOE_MARK, PSC7_PSC6_FN1, PTU2_FN), | ||
836 | PINMUX_DATA(SCIF2_PTU_SCK_MARK, PSC7_PSC6_FN2, PTU2_FN), | ||
837 | PINMUX_DATA(VIO_VD2_MARK, PSC7_PSC6_FN3, PTU2_FN), | ||
838 | PINMUX_DATA(FRB_MARK, PSC7_PSC6_FN1, PTU1_FN), | ||
839 | PINMUX_DATA(SCIF2_PTU_RXD_MARK, PSC7_PSC6_FN2, PTU1_FN), | ||
840 | PINMUX_DATA(VIO_CLK2_MARK, PSC7_PSC6_FN3, PTU1_FN), | ||
841 | PINMUX_DATA(FCE_MARK, PSC7_PSC6_FN1, PTU0_FN), | ||
842 | PINMUX_DATA(SCIF2_PTU_TXD_MARK, PSC7_PSC6_FN2, PTU0_FN), | ||
843 | PINMUX_DATA(VIO_HD2_MARK, PSC7_PSC6_FN3, PTU0_FN), | ||
844 | |||
845 | /* PTV FN */ | ||
846 | PINMUX_DATA(NAF7_MARK, PSC7_PSC6_FN1, PTV7_FN), | ||
847 | PINMUX_DATA(SCIF1_PTV_SCK_MARK, PSC7_PSC6_FN2, PTV7_FN), | ||
848 | PINMUX_DATA(VIO_D15_MARK, PSC7_PSC6_FN3, PTV7_FN), | ||
849 | PINMUX_DATA(NAF6_MARK, PSC7_PSC6_FN1, PTV6_FN), | ||
850 | PINMUX_DATA(SCIF1_PTV_RXD_MARK, PSC7_PSC6_FN2, PTV6_FN), | ||
851 | PINMUX_DATA(VIO_D14_MARK, PSC7_PSC6_FN3, PTV6_FN), | ||
852 | PINMUX_DATA(NAF5_MARK, PSC7_PSC6_FN1, PTV5_FN), | ||
853 | PINMUX_DATA(SCIF1_PTV_TXD_MARK, PSC7_PSC6_FN2, PTV5_FN), | ||
854 | PINMUX_DATA(VIO_D13_MARK, PSC7_PSC6_FN3, PTV5_FN), | ||
855 | PINMUX_DATA(NAF4_MARK, PSC7_PSC6_FN1, PTV4_FN), | ||
856 | PINMUX_DATA(SCIF3_PTV_CTS_MARK, PSC7_PSC6_FN2, PTV4_FN), | ||
857 | PINMUX_DATA(VIO_D12_MARK, PSC7_PSC6_FN3, PTV4_FN), | ||
858 | PINMUX_DATA(NAF3_MARK, PSC7_PSC6_FN1, PTV3_FN), | ||
859 | PINMUX_DATA(SCIF3_PTV_RTS_MARK, PSC7_PSC6_FN2, PTV3_FN), | ||
860 | PINMUX_DATA(VIO_D11_MARK, PSC7_PSC6_FN3, PTV3_FN), | ||
861 | PINMUX_DATA(NAF2_MARK, PSC7_PSC6_FN1, PTV2_FN), | ||
862 | PINMUX_DATA(SCIF3_PTV_SCK_MARK, PSC7_PSC6_FN2, PTV2_FN), | ||
863 | PINMUX_DATA(VIO_D10_MARK, PSC7_PSC6_FN3, PTV2_FN), | ||
864 | PINMUX_DATA(NAF1_MARK, PSC7_PSC6_FN1, PTV1_FN), | ||
865 | PINMUX_DATA(SCIF3_PTV_RXD_MARK, PSC7_PSC6_FN2, PTV1_FN), | ||
866 | PINMUX_DATA(VIO_D9_MARK, PSC7_PSC6_FN3, PTV1_FN), | ||
867 | PINMUX_DATA(NAF0_MARK, PSC7_PSC6_FN1, PTV0_FN), | ||
868 | PINMUX_DATA(SCIF3_PTV_TXD_MARK, PSC7_PSC6_FN2, PTV0_FN), | ||
869 | PINMUX_DATA(VIO_D8_MARK, PSC7_PSC6_FN3, PTV0_FN), | ||
870 | |||
871 | /* PTW FN */ | ||
872 | PINMUX_DATA(IRQ7_MARK, PTW7_FN), | ||
873 | PINMUX_DATA(IRQ6_MARK, PTW6_FN), | ||
874 | PINMUX_DATA(IRQ5_MARK, PTW5_FN), | ||
875 | PINMUX_DATA(IRQ4_MARK, PSD15_PSD14_FN1, PTW4_FN), | ||
876 | PINMUX_DATA(LCDLCLK_PTW_MARK, PSD15_PSD14_FN2, PTW4_FN), | ||
877 | PINMUX_DATA(IRQ3_MARK, PSD13_PSD12_FN1, PTW3_FN), | ||
878 | PINMUX_DATA(ADTRG_MARK, PSD13_PSD12_FN2, PTW3_FN), | ||
879 | PINMUX_DATA(IRQ2_MARK, PSD11_PSD10_FN1, PTW2_FN), | ||
880 | PINMUX_DATA(BS_MARK, PSD11_PSD10_FN2, PTW2_FN), | ||
881 | PINMUX_DATA(VIO_CKO_MARK, PSD11_PSD10_FN3, PTW2_FN), | ||
882 | PINMUX_DATA(IRQ1_MARK, PSD9_PSD8_FN1, PTW1_FN), | ||
883 | PINMUX_DATA(SIUAISPD_MARK, PSD9_PSD8_FN2, PTW1_FN), | ||
884 | PINMUX_DATA(IRQ0_MARK, PSD7_PSD6_FN1, PTW0_FN), | ||
885 | PINMUX_DATA(SIUAOSPD_MARK, PSD7_PSD6_FN2, PTW0_FN), | ||
886 | |||
887 | /* PTX FN */ | ||
888 | PINMUX_DATA(DACK1_MARK, PTX7_FN), | ||
889 | PINMUX_DATA(DREQ1_MARK, PSD3_PSD2_FN1, PTX6_FN), | ||
890 | PINMUX_DATA(MSIOF0_PTX_MCK_MARK, PSD3_PSD2_FN2, PTX6_FN), | ||
891 | PINMUX_DATA(DACK1_MARK, PTX5_FN), | ||
892 | PINMUX_DATA(IRDA_OUT_MARK, PSD5_PSD4_FN2, PTX5_FN), | ||
893 | PINMUX_DATA(DREQ1_MARK, PTX4_FN), | ||
894 | PINMUX_DATA(IRDA_IN_MARK, PSD5_PSD4_FN2, PTX4_FN), | ||
895 | PINMUX_DATA(TS0_SDAT_MARK, PTX3_FN), | ||
896 | PINMUX_DATA(TS0_SCK_MARK, PTX2_FN), | ||
897 | PINMUX_DATA(TS0_SDEN_MARK, PTX1_FN), | ||
898 | PINMUX_DATA(TS0_SPSYNC_MARK, PTX0_FN), | ||
899 | |||
900 | /* PTY FN */ | ||
901 | PINMUX_DATA(VIO_D7_MARK, PTY7_FN), | ||
902 | PINMUX_DATA(VIO_D6_MARK, PTY6_FN), | ||
903 | PINMUX_DATA(VIO_D5_MARK, PTY5_FN), | ||
904 | PINMUX_DATA(VIO_D4_MARK, PTY4_FN), | ||
905 | PINMUX_DATA(VIO_D3_MARK, PTY3_FN), | ||
906 | PINMUX_DATA(VIO_D2_MARK, PTY2_FN), | ||
907 | PINMUX_DATA(VIO_D1_MARK, PTY1_FN), | ||
908 | PINMUX_DATA(VIO_D0_MARK, PTY0_FN), | ||
909 | |||
910 | /* PTZ FN */ | ||
911 | PINMUX_DATA(SIUBOBT_MARK, PTZ7_FN), | ||
912 | PINMUX_DATA(SIUBOLR_MARK, PTZ6_FN), | ||
913 | PINMUX_DATA(SIUBOSLD_MARK, PTZ5_FN), | ||
914 | PINMUX_DATA(SIUBMCK_MARK, PTZ4_FN), | ||
915 | PINMUX_DATA(VIO_FLD_MARK, PSD1_PSD0_FN1, PTZ3_FN), | ||
916 | PINMUX_DATA(SIUBFCK_MARK, PSD1_PSD0_FN2, PTZ3_FN), | ||
917 | PINMUX_DATA(VIO_HD1_MARK, PSD1_PSD0_FN1, PTZ2_FN), | ||
918 | PINMUX_DATA(SIUBILR_MARK, PSD1_PSD0_FN2, PTZ2_FN), | ||
919 | PINMUX_DATA(VIO_VD1_MARK, PSD1_PSD0_FN1, PTZ1_FN), | ||
920 | PINMUX_DATA(SIUBIBT_MARK, PSD1_PSD0_FN2, PTZ1_FN), | ||
921 | PINMUX_DATA(VIO_CLK1_MARK, PSD1_PSD0_FN1, PTZ0_FN), | ||
922 | PINMUX_DATA(SIUBISLD_MARK, PSD1_PSD0_FN2, PTZ0_FN), | ||
923 | }; | ||
924 | |||
925 | static struct pinmux_gpio pinmux_gpios[] = { | ||
926 | /* PTA */ | ||
927 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
928 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
929 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
930 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
931 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
932 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
933 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
934 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
935 | |||
936 | /* PTB */ | ||
937 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
938 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
939 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
940 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
941 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
942 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
943 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
944 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
945 | |||
946 | /* PTC */ | ||
947 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
948 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
949 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
950 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
951 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
952 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
953 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
954 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
955 | |||
956 | /* PTD */ | ||
957 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
958 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
959 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
960 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
961 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
962 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
963 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
964 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
965 | |||
966 | /* PTE */ | ||
967 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
968 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
969 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
970 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
971 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
972 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
973 | |||
974 | /* PTF */ | ||
975 | PINMUX_GPIO(GPIO_PTF7, PTF7_DATA), | ||
976 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
977 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
978 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
979 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
980 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
981 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
982 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
983 | |||
984 | /* PTG */ | ||
985 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
986 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
987 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
988 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
989 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
990 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
991 | |||
992 | /* PTH */ | ||
993 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
994 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
995 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
996 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
997 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
998 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
999 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
1000 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
1001 | |||
1002 | /* PTJ */ | ||
1003 | PINMUX_GPIO(GPIO_PTJ7, PTJ7_DATA), | ||
1004 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
1005 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
1006 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
1007 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
1008 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
1009 | |||
1010 | /* PTK */ | ||
1011 | PINMUX_GPIO(GPIO_PTK7, PTK7_DATA), | ||
1012 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
1013 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
1014 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
1015 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
1016 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
1017 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
1018 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
1019 | |||
1020 | /* PTL */ | ||
1021 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
1022 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
1023 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
1024 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
1025 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
1026 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
1027 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
1028 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
1029 | |||
1030 | /* PTM */ | ||
1031 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
1032 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
1033 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
1034 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
1035 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
1036 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
1037 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
1038 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
1039 | |||
1040 | /* PTN */ | ||
1041 | PINMUX_GPIO(GPIO_PTN7, PTN7_DATA), | ||
1042 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
1043 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
1044 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
1045 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
1046 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
1047 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
1048 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
1049 | |||
1050 | /* PTQ */ | ||
1051 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
1052 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
1053 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
1054 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
1055 | |||
1056 | /* PTR */ | ||
1057 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
1058 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
1059 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
1060 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
1061 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
1062 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
1063 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
1064 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
1065 | |||
1066 | /* PTS */ | ||
1067 | PINMUX_GPIO(GPIO_PTS7, PTS7_DATA), | ||
1068 | PINMUX_GPIO(GPIO_PTS6, PTS6_DATA), | ||
1069 | PINMUX_GPIO(GPIO_PTS5, PTS5_DATA), | ||
1070 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
1071 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
1072 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
1073 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
1074 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
1075 | |||
1076 | /* PTT */ | ||
1077 | PINMUX_GPIO(GPIO_PTT5, PTT5_DATA), | ||
1078 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
1079 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
1080 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
1081 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
1082 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
1083 | |||
1084 | /* PTU */ | ||
1085 | PINMUX_GPIO(GPIO_PTU5, PTU5_DATA), | ||
1086 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
1087 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
1088 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
1089 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
1090 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
1091 | |||
1092 | /* PTV */ | ||
1093 | PINMUX_GPIO(GPIO_PTV7, PTV7_DATA), | ||
1094 | PINMUX_GPIO(GPIO_PTV6, PTV6_DATA), | ||
1095 | PINMUX_GPIO(GPIO_PTV5, PTV5_DATA), | ||
1096 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
1097 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
1098 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
1099 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
1100 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
1101 | |||
1102 | /* PTW */ | ||
1103 | PINMUX_GPIO(GPIO_PTW7, PTW7_DATA), | ||
1104 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
1105 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
1106 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
1107 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
1108 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
1109 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
1110 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
1111 | |||
1112 | /* PTX */ | ||
1113 | PINMUX_GPIO(GPIO_PTX7, PTX7_DATA), | ||
1114 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
1115 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
1116 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
1117 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
1118 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
1119 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
1120 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
1121 | |||
1122 | /* PTY */ | ||
1123 | PINMUX_GPIO(GPIO_PTY7, PTY7_DATA), | ||
1124 | PINMUX_GPIO(GPIO_PTY6, PTY6_DATA), | ||
1125 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
1126 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
1127 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
1128 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
1129 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
1130 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
1131 | |||
1132 | /* PTZ */ | ||
1133 | PINMUX_GPIO(GPIO_PTZ7, PTZ7_DATA), | ||
1134 | PINMUX_GPIO(GPIO_PTZ6, PTZ6_DATA), | ||
1135 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
1136 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
1137 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
1138 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
1139 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
1140 | PINMUX_GPIO(GPIO_PTZ0, PTZ0_DATA), | ||
1141 | |||
1142 | /* SCIF0 */ | ||
1143 | PINMUX_GPIO(GPIO_FN_SCIF0_PTT_TXD, SCIF0_PTT_TXD_MARK), | ||
1144 | PINMUX_GPIO(GPIO_FN_SCIF0_PTT_RXD, SCIF0_PTT_RXD_MARK), | ||
1145 | PINMUX_GPIO(GPIO_FN_SCIF0_PTT_SCK, SCIF0_PTT_SCK_MARK), | ||
1146 | PINMUX_GPIO(GPIO_FN_SCIF0_PTU_TXD, SCIF0_PTU_TXD_MARK), | ||
1147 | PINMUX_GPIO(GPIO_FN_SCIF0_PTU_RXD, SCIF0_PTU_RXD_MARK), | ||
1148 | PINMUX_GPIO(GPIO_FN_SCIF0_PTU_SCK, SCIF0_PTU_SCK_MARK), | ||
1149 | |||
1150 | /* SCIF1 */ | ||
1151 | PINMUX_GPIO(GPIO_FN_SCIF1_PTS_TXD, SCIF1_PTS_TXD_MARK), | ||
1152 | PINMUX_GPIO(GPIO_FN_SCIF1_PTS_RXD, SCIF1_PTS_RXD_MARK), | ||
1153 | PINMUX_GPIO(GPIO_FN_SCIF1_PTS_SCK, SCIF1_PTS_SCK_MARK), | ||
1154 | PINMUX_GPIO(GPIO_FN_SCIF1_PTV_TXD, SCIF1_PTV_TXD_MARK), | ||
1155 | PINMUX_GPIO(GPIO_FN_SCIF1_PTV_RXD, SCIF1_PTV_RXD_MARK), | ||
1156 | PINMUX_GPIO(GPIO_FN_SCIF1_PTV_SCK, SCIF1_PTV_SCK_MARK), | ||
1157 | |||
1158 | /* SCIF2 */ | ||
1159 | PINMUX_GPIO(GPIO_FN_SCIF2_PTT_TXD, SCIF2_PTT_TXD_MARK), | ||
1160 | PINMUX_GPIO(GPIO_FN_SCIF2_PTT_RXD, SCIF2_PTT_RXD_MARK), | ||
1161 | PINMUX_GPIO(GPIO_FN_SCIF2_PTT_SCK, SCIF2_PTT_SCK_MARK), | ||
1162 | PINMUX_GPIO(GPIO_FN_SCIF2_PTU_TXD, SCIF2_PTU_TXD_MARK), | ||
1163 | PINMUX_GPIO(GPIO_FN_SCIF2_PTU_RXD, SCIF2_PTU_RXD_MARK), | ||
1164 | PINMUX_GPIO(GPIO_FN_SCIF2_PTU_SCK, SCIF2_PTU_SCK_MARK), | ||
1165 | |||
1166 | /* SCIF3 */ | ||
1167 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_TXD, SCIF3_PTS_TXD_MARK), | ||
1168 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_RXD, SCIF3_PTS_RXD_MARK), | ||
1169 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_SCK, SCIF3_PTS_SCK_MARK), | ||
1170 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_RTS, SCIF3_PTS_RTS_MARK), | ||
1171 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_CTS, SCIF3_PTS_CTS_MARK), | ||
1172 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_TXD, SCIF3_PTV_TXD_MARK), | ||
1173 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_RXD, SCIF3_PTV_RXD_MARK), | ||
1174 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_SCK, SCIF3_PTV_SCK_MARK), | ||
1175 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_RTS, SCIF3_PTV_RTS_MARK), | ||
1176 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_CTS, SCIF3_PTV_CTS_MARK), | ||
1177 | |||
1178 | /* SCIF4 */ | ||
1179 | PINMUX_GPIO(GPIO_FN_SCIF4_PTE_TXD, SCIF4_PTE_TXD_MARK), | ||
1180 | PINMUX_GPIO(GPIO_FN_SCIF4_PTE_RXD, SCIF4_PTE_RXD_MARK), | ||
1181 | PINMUX_GPIO(GPIO_FN_SCIF4_PTE_SCK, SCIF4_PTE_SCK_MARK), | ||
1182 | PINMUX_GPIO(GPIO_FN_SCIF4_PTN_TXD, SCIF4_PTN_TXD_MARK), | ||
1183 | PINMUX_GPIO(GPIO_FN_SCIF4_PTN_RXD, SCIF4_PTN_RXD_MARK), | ||
1184 | PINMUX_GPIO(GPIO_FN_SCIF4_PTN_SCK, SCIF4_PTN_SCK_MARK), | ||
1185 | |||
1186 | /* SCIF5 */ | ||
1187 | PINMUX_GPIO(GPIO_FN_SCIF5_PTE_TXD, SCIF5_PTE_TXD_MARK), | ||
1188 | PINMUX_GPIO(GPIO_FN_SCIF5_PTE_RXD, SCIF5_PTE_RXD_MARK), | ||
1189 | PINMUX_GPIO(GPIO_FN_SCIF5_PTE_SCK, SCIF5_PTE_SCK_MARK), | ||
1190 | PINMUX_GPIO(GPIO_FN_SCIF5_PTN_TXD, SCIF5_PTN_TXD_MARK), | ||
1191 | PINMUX_GPIO(GPIO_FN_SCIF5_PTN_RXD, SCIF5_PTN_RXD_MARK), | ||
1192 | PINMUX_GPIO(GPIO_FN_SCIF5_PTN_SCK, SCIF5_PTN_SCK_MARK), | ||
1193 | |||
1194 | /* CEU */ | ||
1195 | PINMUX_GPIO(GPIO_FN_VIO_D15, VIO_D15_MARK), | ||
1196 | PINMUX_GPIO(GPIO_FN_VIO_D14, VIO_D14_MARK), | ||
1197 | PINMUX_GPIO(GPIO_FN_VIO_D13, VIO_D13_MARK), | ||
1198 | PINMUX_GPIO(GPIO_FN_VIO_D12, VIO_D12_MARK), | ||
1199 | PINMUX_GPIO(GPIO_FN_VIO_D11, VIO_D11_MARK), | ||
1200 | PINMUX_GPIO(GPIO_FN_VIO_D10, VIO_D10_MARK), | ||
1201 | PINMUX_GPIO(GPIO_FN_VIO_D9, VIO_D9_MARK), | ||
1202 | PINMUX_GPIO(GPIO_FN_VIO_D8, VIO_D8_MARK), | ||
1203 | PINMUX_GPIO(GPIO_FN_VIO_D7, VIO_D7_MARK), | ||
1204 | PINMUX_GPIO(GPIO_FN_VIO_D6, VIO_D6_MARK), | ||
1205 | PINMUX_GPIO(GPIO_FN_VIO_D5, VIO_D5_MARK), | ||
1206 | PINMUX_GPIO(GPIO_FN_VIO_D4, VIO_D4_MARK), | ||
1207 | PINMUX_GPIO(GPIO_FN_VIO_D3, VIO_D3_MARK), | ||
1208 | PINMUX_GPIO(GPIO_FN_VIO_D2, VIO_D2_MARK), | ||
1209 | PINMUX_GPIO(GPIO_FN_VIO_D1, VIO_D1_MARK), | ||
1210 | PINMUX_GPIO(GPIO_FN_VIO_D0, VIO_D0_MARK), | ||
1211 | PINMUX_GPIO(GPIO_FN_VIO_CLK1, VIO_CLK1_MARK), | ||
1212 | PINMUX_GPIO(GPIO_FN_VIO_VD1, VIO_VD1_MARK), | ||
1213 | PINMUX_GPIO(GPIO_FN_VIO_HD1, VIO_HD1_MARK), | ||
1214 | PINMUX_GPIO(GPIO_FN_VIO_FLD, VIO_FLD_MARK), | ||
1215 | PINMUX_GPIO(GPIO_FN_VIO_CKO, VIO_CKO_MARK), | ||
1216 | PINMUX_GPIO(GPIO_FN_VIO_VD2, VIO_VD2_MARK), | ||
1217 | PINMUX_GPIO(GPIO_FN_VIO_HD2, VIO_HD2_MARK), | ||
1218 | PINMUX_GPIO(GPIO_FN_VIO_CLK2, VIO_CLK2_MARK), | ||
1219 | |||
1220 | /* LCDC */ | ||
1221 | PINMUX_GPIO(GPIO_FN_LCDD23, LCDD23_MARK), | ||
1222 | PINMUX_GPIO(GPIO_FN_LCDD22, LCDD22_MARK), | ||
1223 | PINMUX_GPIO(GPIO_FN_LCDD21, LCDD21_MARK), | ||
1224 | PINMUX_GPIO(GPIO_FN_LCDD20, LCDD20_MARK), | ||
1225 | PINMUX_GPIO(GPIO_FN_LCDD19, LCDD19_MARK), | ||
1226 | PINMUX_GPIO(GPIO_FN_LCDD18, LCDD18_MARK), | ||
1227 | PINMUX_GPIO(GPIO_FN_LCDD17, LCDD17_MARK), | ||
1228 | PINMUX_GPIO(GPIO_FN_LCDD16, LCDD16_MARK), | ||
1229 | PINMUX_GPIO(GPIO_FN_LCDD15, LCDD15_MARK), | ||
1230 | PINMUX_GPIO(GPIO_FN_LCDD14, LCDD14_MARK), | ||
1231 | PINMUX_GPIO(GPIO_FN_LCDD13, LCDD13_MARK), | ||
1232 | PINMUX_GPIO(GPIO_FN_LCDD12, LCDD12_MARK), | ||
1233 | PINMUX_GPIO(GPIO_FN_LCDD11, LCDD11_MARK), | ||
1234 | PINMUX_GPIO(GPIO_FN_LCDD10, LCDD10_MARK), | ||
1235 | PINMUX_GPIO(GPIO_FN_LCDD9, LCDD9_MARK), | ||
1236 | PINMUX_GPIO(GPIO_FN_LCDD8, LCDD8_MARK), | ||
1237 | PINMUX_GPIO(GPIO_FN_LCDD7, LCDD7_MARK), | ||
1238 | PINMUX_GPIO(GPIO_FN_LCDD6, LCDD6_MARK), | ||
1239 | PINMUX_GPIO(GPIO_FN_LCDD5, LCDD5_MARK), | ||
1240 | PINMUX_GPIO(GPIO_FN_LCDD4, LCDD4_MARK), | ||
1241 | PINMUX_GPIO(GPIO_FN_LCDD3, LCDD3_MARK), | ||
1242 | PINMUX_GPIO(GPIO_FN_LCDD2, LCDD2_MARK), | ||
1243 | PINMUX_GPIO(GPIO_FN_LCDD1, LCDD1_MARK), | ||
1244 | PINMUX_GPIO(GPIO_FN_LCDD0, LCDD0_MARK), | ||
1245 | PINMUX_GPIO(GPIO_FN_LCDLCLK_PTR, LCDLCLK_PTR_MARK), | ||
1246 | PINMUX_GPIO(GPIO_FN_LCDLCLK_PTW, LCDLCLK_PTW_MARK), | ||
1247 | /* Main LCD */ | ||
1248 | PINMUX_GPIO(GPIO_FN_LCDDON, LCDDON_MARK), | ||
1249 | PINMUX_GPIO(GPIO_FN_LCDVCPWC, LCDVCPWC_MARK), | ||
1250 | PINMUX_GPIO(GPIO_FN_LCDVEPWC, LCDVEPWC_MARK), | ||
1251 | PINMUX_GPIO(GPIO_FN_LCDVSYN, LCDVSYN_MARK), | ||
1252 | /* Main LCD - RGB Mode */ | ||
1253 | PINMUX_GPIO(GPIO_FN_LCDDCK, LCDDCK_MARK), | ||
1254 | PINMUX_GPIO(GPIO_FN_LCDHSYN, LCDHSYN_MARK), | ||
1255 | PINMUX_GPIO(GPIO_FN_LCDDISP, LCDDISP_MARK), | ||
1256 | /* Main LCD - SYS Mode */ | ||
1257 | PINMUX_GPIO(GPIO_FN_LCDRS, LCDRS_MARK), | ||
1258 | PINMUX_GPIO(GPIO_FN_LCDCS, LCDCS_MARK), | ||
1259 | PINMUX_GPIO(GPIO_FN_LCDWR, LCDWR_MARK), | ||
1260 | PINMUX_GPIO(GPIO_FN_LCDRD, LCDRD_MARK), | ||
1261 | |||
1262 | /* IRQ */ | ||
1263 | PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), | ||
1264 | PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), | ||
1265 | PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), | ||
1266 | PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), | ||
1267 | PINMUX_GPIO(GPIO_FN_IRQ4, IRQ4_MARK), | ||
1268 | PINMUX_GPIO(GPIO_FN_IRQ5, IRQ5_MARK), | ||
1269 | PINMUX_GPIO(GPIO_FN_IRQ6, IRQ6_MARK), | ||
1270 | PINMUX_GPIO(GPIO_FN_IRQ7, IRQ7_MARK), | ||
1271 | |||
1272 | /* AUD */ | ||
1273 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
1274 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1275 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1276 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1277 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1278 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1279 | |||
1280 | /* SDHI0 (PTD) */ | ||
1281 | PINMUX_GPIO(GPIO_FN_SDHI0CD_PTD, SDHI0CD_PTD_MARK), | ||
1282 | PINMUX_GPIO(GPIO_FN_SDHI0WP_PTD, SDHI0WP_PTD_MARK), | ||
1283 | PINMUX_GPIO(GPIO_FN_SDHI0D3_PTD, SDHI0D3_PTD_MARK), | ||
1284 | PINMUX_GPIO(GPIO_FN_SDHI0D2_PTD, SDHI0D2_PTD_MARK), | ||
1285 | PINMUX_GPIO(GPIO_FN_SDHI0D1_PTD, SDHI0D1_PTD_MARK), | ||
1286 | PINMUX_GPIO(GPIO_FN_SDHI0D0_PTD, SDHI0D0_PTD_MARK), | ||
1287 | PINMUX_GPIO(GPIO_FN_SDHI0CMD_PTD, SDHI0CMD_PTD_MARK), | ||
1288 | PINMUX_GPIO(GPIO_FN_SDHI0CLK_PTD, SDHI0CLK_PTD_MARK), | ||
1289 | |||
1290 | /* SDHI0 (PTS) */ | ||
1291 | PINMUX_GPIO(GPIO_FN_SDHI0CD_PTS, SDHI0CD_PTS_MARK), | ||
1292 | PINMUX_GPIO(GPIO_FN_SDHI0WP_PTS, SDHI0WP_PTS_MARK), | ||
1293 | PINMUX_GPIO(GPIO_FN_SDHI0D3_PTS, SDHI0D3_PTS_MARK), | ||
1294 | PINMUX_GPIO(GPIO_FN_SDHI0D2_PTS, SDHI0D2_PTS_MARK), | ||
1295 | PINMUX_GPIO(GPIO_FN_SDHI0D1_PTS, SDHI0D1_PTS_MARK), | ||
1296 | PINMUX_GPIO(GPIO_FN_SDHI0D0_PTS, SDHI0D0_PTS_MARK), | ||
1297 | PINMUX_GPIO(GPIO_FN_SDHI0CMD_PTS, SDHI0CMD_PTS_MARK), | ||
1298 | PINMUX_GPIO(GPIO_FN_SDHI0CLK_PTS, SDHI0CLK_PTS_MARK), | ||
1299 | |||
1300 | /* SDHI1 */ | ||
1301 | PINMUX_GPIO(GPIO_FN_SDHI1CD, SDHI1CD_MARK), | ||
1302 | PINMUX_GPIO(GPIO_FN_SDHI1WP, SDHI1WP_MARK), | ||
1303 | PINMUX_GPIO(GPIO_FN_SDHI1D3, SDHI1D3_MARK), | ||
1304 | PINMUX_GPIO(GPIO_FN_SDHI1D2, SDHI1D2_MARK), | ||
1305 | PINMUX_GPIO(GPIO_FN_SDHI1D1, SDHI1D1_MARK), | ||
1306 | PINMUX_GPIO(GPIO_FN_SDHI1D0, SDHI1D0_MARK), | ||
1307 | PINMUX_GPIO(GPIO_FN_SDHI1CMD, SDHI1CMD_MARK), | ||
1308 | PINMUX_GPIO(GPIO_FN_SDHI1CLK, SDHI1CLK_MARK), | ||
1309 | |||
1310 | /* SIUA */ | ||
1311 | PINMUX_GPIO(GPIO_FN_SIUAFCK, SIUAFCK_MARK), | ||
1312 | PINMUX_GPIO(GPIO_FN_SIUAILR, SIUAILR_MARK), | ||
1313 | PINMUX_GPIO(GPIO_FN_SIUAIBT, SIUAIBT_MARK), | ||
1314 | PINMUX_GPIO(GPIO_FN_SIUAISLD, SIUAISLD_MARK), | ||
1315 | PINMUX_GPIO(GPIO_FN_SIUAOLR, SIUAOLR_MARK), | ||
1316 | PINMUX_GPIO(GPIO_FN_SIUAOBT, SIUAOBT_MARK), | ||
1317 | PINMUX_GPIO(GPIO_FN_SIUAOSLD, SIUAOSLD_MARK), | ||
1318 | PINMUX_GPIO(GPIO_FN_SIUAMCK, SIUAMCK_MARK), | ||
1319 | PINMUX_GPIO(GPIO_FN_SIUAISPD, SIUAISPD_MARK), | ||
1320 | PINMUX_GPIO(GPIO_FN_SIUOSPD, SIUAOSPD_MARK), | ||
1321 | |||
1322 | /* SIUB */ | ||
1323 | PINMUX_GPIO(GPIO_FN_SIUBFCK, SIUBFCK_MARK), | ||
1324 | PINMUX_GPIO(GPIO_FN_SIUBILR, SIUBILR_MARK), | ||
1325 | PINMUX_GPIO(GPIO_FN_SIUBIBT, SIUBIBT_MARK), | ||
1326 | PINMUX_GPIO(GPIO_FN_SIUBISLD, SIUBISLD_MARK), | ||
1327 | PINMUX_GPIO(GPIO_FN_SIUBOLR, SIUBOLR_MARK), | ||
1328 | PINMUX_GPIO(GPIO_FN_SIUBOBT, SIUBOBT_MARK), | ||
1329 | PINMUX_GPIO(GPIO_FN_SIUBOSLD, SIUBOSLD_MARK), | ||
1330 | PINMUX_GPIO(GPIO_FN_SIUBMCK, SIUBMCK_MARK), | ||
1331 | |||
1332 | /* IRDA */ | ||
1333 | PINMUX_GPIO(GPIO_FN_IRDA_IN, IRDA_IN_MARK), | ||
1334 | PINMUX_GPIO(GPIO_FN_IRDA_OUT, IRDA_OUT_MARK), | ||
1335 | |||
1336 | /* VOU */ | ||
1337 | PINMUX_GPIO(GPIO_FN_DV_CLKI, DV_CLKI_MARK), | ||
1338 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1339 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1340 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1341 | PINMUX_GPIO(GPIO_FN_DV_D15, DV_D15_MARK), | ||
1342 | PINMUX_GPIO(GPIO_FN_DV_D14, DV_D14_MARK), | ||
1343 | PINMUX_GPIO(GPIO_FN_DV_D13, DV_D13_MARK), | ||
1344 | PINMUX_GPIO(GPIO_FN_DV_D12, DV_D12_MARK), | ||
1345 | PINMUX_GPIO(GPIO_FN_DV_D11, DV_D11_MARK), | ||
1346 | PINMUX_GPIO(GPIO_FN_DV_D10, DV_D10_MARK), | ||
1347 | PINMUX_GPIO(GPIO_FN_DV_D9, DV_D9_MARK), | ||
1348 | PINMUX_GPIO(GPIO_FN_DV_D8, DV_D8_MARK), | ||
1349 | PINMUX_GPIO(GPIO_FN_DV_D7, DV_D7_MARK), | ||
1350 | PINMUX_GPIO(GPIO_FN_DV_D6, DV_D6_MARK), | ||
1351 | PINMUX_GPIO(GPIO_FN_DV_D5, DV_D5_MARK), | ||
1352 | PINMUX_GPIO(GPIO_FN_DV_D4, DV_D4_MARK), | ||
1353 | PINMUX_GPIO(GPIO_FN_DV_D3, DV_D3_MARK), | ||
1354 | PINMUX_GPIO(GPIO_FN_DV_D2, DV_D2_MARK), | ||
1355 | PINMUX_GPIO(GPIO_FN_DV_D1, DV_D1_MARK), | ||
1356 | PINMUX_GPIO(GPIO_FN_DV_D0, DV_D0_MARK), | ||
1357 | |||
1358 | /* KEYSC */ | ||
1359 | PINMUX_GPIO(GPIO_FN_KEYIN0, KEYIN0_MARK), | ||
1360 | PINMUX_GPIO(GPIO_FN_KEYIN1, KEYIN1_MARK), | ||
1361 | PINMUX_GPIO(GPIO_FN_KEYIN2, KEYIN2_MARK), | ||
1362 | PINMUX_GPIO(GPIO_FN_KEYIN3, KEYIN3_MARK), | ||
1363 | PINMUX_GPIO(GPIO_FN_KEYIN4, KEYIN4_MARK), | ||
1364 | PINMUX_GPIO(GPIO_FN_KEYOUT0, KEYOUT0_MARK), | ||
1365 | PINMUX_GPIO(GPIO_FN_KEYOUT1, KEYOUT1_MARK), | ||
1366 | PINMUX_GPIO(GPIO_FN_KEYOUT2, KEYOUT2_MARK), | ||
1367 | PINMUX_GPIO(GPIO_FN_KEYOUT3, KEYOUT3_MARK), | ||
1368 | PINMUX_GPIO(GPIO_FN_KEYOUT4_IN6, KEYOUT4_IN6_MARK), | ||
1369 | PINMUX_GPIO(GPIO_FN_KEYOUT5_IN5, KEYOUT5_IN5_MARK), | ||
1370 | |||
1371 | /* MSIOF0 (PTF) */ | ||
1372 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_TXD, MSIOF0_PTF_TXD_MARK), | ||
1373 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_RXD, MSIOF0_PTF_RXD_MARK), | ||
1374 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_MCK, MSIOF0_PTF_MCK_MARK), | ||
1375 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_TSYNC, MSIOF0_PTF_TSYNC_MARK), | ||
1376 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_TSCK, MSIOF0_PTF_TSCK_MARK), | ||
1377 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_RSYNC, MSIOF0_PTF_RSYNC_MARK), | ||
1378 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_RSCK, MSIOF0_PTF_RSCK_MARK), | ||
1379 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_SS1, MSIOF0_PTF_SS1_MARK), | ||
1380 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_SS2, MSIOF0_PTF_SS2_MARK), | ||
1381 | |||
1382 | /* MSIOF0 (PTT+PTX) */ | ||
1383 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_TXD, MSIOF0_PTT_TXD_MARK), | ||
1384 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_RXD, MSIOF0_PTT_RXD_MARK), | ||
1385 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTX_MCK, MSIOF0_PTX_MCK_MARK), | ||
1386 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_TSYNC, MSIOF0_PTT_TSYNC_MARK), | ||
1387 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_TSCK, MSIOF0_PTT_TSCK_MARK), | ||
1388 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_RSYNC, MSIOF0_PTT_RSYNC_MARK), | ||
1389 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_RSCK, MSIOF0_PTT_RSCK_MARK), | ||
1390 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_SS1, MSIOF0_PTT_SS1_MARK), | ||
1391 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_SS2, MSIOF0_PTT_SS2_MARK), | ||
1392 | |||
1393 | /* MSIOF1 */ | ||
1394 | PINMUX_GPIO(GPIO_FN_MSIOF1_TXD, MSIOF1_TXD_MARK), | ||
1395 | PINMUX_GPIO(GPIO_FN_MSIOF1_RXD, MSIOF1_RXD_MARK), | ||
1396 | PINMUX_GPIO(GPIO_FN_MSIOF1_MCK, MSIOF1_MCK_MARK), | ||
1397 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSYNC, MSIOF1_TSYNC_MARK), | ||
1398 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSCK, MSIOF1_TSCK_MARK), | ||
1399 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSYNC, MSIOF1_RSYNC_MARK), | ||
1400 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSCK, MSIOF1_RSCK_MARK), | ||
1401 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS1, MSIOF1_SS1_MARK), | ||
1402 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS2, MSIOF1_SS2_MARK), | ||
1403 | |||
1404 | /* TSIF */ | ||
1405 | PINMUX_GPIO(GPIO_FN_TS0_SDAT, TS0_SDAT_MARK), | ||
1406 | PINMUX_GPIO(GPIO_FN_TS0_SCK, TS0_SCK_MARK), | ||
1407 | PINMUX_GPIO(GPIO_FN_TS0_SDEN, TS0_SDEN_MARK), | ||
1408 | PINMUX_GPIO(GPIO_FN_TS0_SPSYNC, TS0_SPSYNC_MARK), | ||
1409 | |||
1410 | /* FLCTL */ | ||
1411 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1412 | PINMUX_GPIO(GPIO_FN_NAF7, NAF7_MARK), | ||
1413 | PINMUX_GPIO(GPIO_FN_NAF6, NAF6_MARK), | ||
1414 | PINMUX_GPIO(GPIO_FN_NAF5, NAF5_MARK), | ||
1415 | PINMUX_GPIO(GPIO_FN_NAF4, NAF4_MARK), | ||
1416 | PINMUX_GPIO(GPIO_FN_NAF3, NAF3_MARK), | ||
1417 | PINMUX_GPIO(GPIO_FN_NAF2, NAF2_MARK), | ||
1418 | PINMUX_GPIO(GPIO_FN_NAF1, NAF1_MARK), | ||
1419 | PINMUX_GPIO(GPIO_FN_NAF0, NAF0_MARK), | ||
1420 | PINMUX_GPIO(GPIO_FN_FCDE, FCDE_MARK), | ||
1421 | PINMUX_GPIO(GPIO_FN_FOE, FOE_MARK), | ||
1422 | PINMUX_GPIO(GPIO_FN_FSC, FSC_MARK), | ||
1423 | PINMUX_GPIO(GPIO_FN_FWE, FWE_MARK), | ||
1424 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1425 | |||
1426 | /* DMAC */ | ||
1427 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
1428 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
1429 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
1430 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1431 | |||
1432 | /* ADC */ | ||
1433 | PINMUX_GPIO(GPIO_FN_AN3, AN3_MARK), | ||
1434 | PINMUX_GPIO(GPIO_FN_AN2, AN2_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_AN1, AN1_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_AN0, AN0_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_ADTRG, ADTRG_MARK), | ||
1438 | |||
1439 | /* CPG */ | ||
1440 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1441 | PINMUX_GPIO(GPIO_FN_PDSTATUS, PDSTATUS_MARK), | ||
1442 | |||
1443 | /* TPU */ | ||
1444 | PINMUX_GPIO(GPIO_FN_TPUTO0, TPUTO0_MARK), | ||
1445 | PINMUX_GPIO(GPIO_FN_TPUTO1, TPUTO1_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_TPUTO2, TPUTO2_MARK), | ||
1447 | PINMUX_GPIO(GPIO_FN_TPUTO3, TPUTO3_MARK), | ||
1448 | |||
1449 | /* BSC */ | ||
1450 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
1451 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
1452 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
1453 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
1462 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
1463 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
1464 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
1465 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
1466 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1467 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1468 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1469 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1470 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1471 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1472 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1473 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
1474 | PINMUX_GPIO(GPIO_FN_CS6A_CE2B, CS6A_CE2B_MARK), | ||
1475 | PINMUX_GPIO(GPIO_FN_CS5B_CE1A, CS5B_CE1A_MARK), | ||
1476 | PINMUX_GPIO(GPIO_FN_CS5A_CE2A, CS5A_CE2A_MARK), | ||
1477 | PINMUX_GPIO(GPIO_FN_WE3_ICIOWR, WE3_ICIOWR_MARK), | ||
1478 | PINMUX_GPIO(GPIO_FN_WE2_ICIORD, WE2_ICIORD_MARK), | ||
1479 | |||
1480 | /* ATAPI */ | ||
1481 | PINMUX_GPIO(GPIO_FN_IDED15, IDED15_MARK), | ||
1482 | PINMUX_GPIO(GPIO_FN_IDED14, IDED14_MARK), | ||
1483 | PINMUX_GPIO(GPIO_FN_IDED13, IDED13_MARK), | ||
1484 | PINMUX_GPIO(GPIO_FN_IDED12, IDED12_MARK), | ||
1485 | PINMUX_GPIO(GPIO_FN_IDED11, IDED11_MARK), | ||
1486 | PINMUX_GPIO(GPIO_FN_IDED10, IDED10_MARK), | ||
1487 | PINMUX_GPIO(GPIO_FN_IDED9, IDED9_MARK), | ||
1488 | PINMUX_GPIO(GPIO_FN_IDED8, IDED8_MARK), | ||
1489 | PINMUX_GPIO(GPIO_FN_IDED7, IDED7_MARK), | ||
1490 | PINMUX_GPIO(GPIO_FN_IDED6, IDED6_MARK), | ||
1491 | PINMUX_GPIO(GPIO_FN_IDED5, IDED5_MARK), | ||
1492 | PINMUX_GPIO(GPIO_FN_IDED4, IDED4_MARK), | ||
1493 | PINMUX_GPIO(GPIO_FN_IDED3, IDED3_MARK), | ||
1494 | PINMUX_GPIO(GPIO_FN_IDED2, IDED2_MARK), | ||
1495 | PINMUX_GPIO(GPIO_FN_IDED1, IDED1_MARK), | ||
1496 | PINMUX_GPIO(GPIO_FN_IDED0, IDED0_MARK), | ||
1497 | PINMUX_GPIO(GPIO_FN_DIRECTION, DIRECTION_MARK), | ||
1498 | PINMUX_GPIO(GPIO_FN_EXBUF_ENB, EXBUF_ENB_MARK), | ||
1499 | PINMUX_GPIO(GPIO_FN_IDERST, IDERST_MARK), | ||
1500 | PINMUX_GPIO(GPIO_FN_IODACK, IODACK_MARK), | ||
1501 | PINMUX_GPIO(GPIO_FN_IODREQ, IODREQ_MARK), | ||
1502 | PINMUX_GPIO(GPIO_FN_IDEIORDY, IDEIORDY_MARK), | ||
1503 | PINMUX_GPIO(GPIO_FN_IDEINT, IDEINT_MARK), | ||
1504 | PINMUX_GPIO(GPIO_FN_IDEIOWR, IDEIOWR_MARK), | ||
1505 | PINMUX_GPIO(GPIO_FN_IDEIORD, IDEIORD_MARK), | ||
1506 | PINMUX_GPIO(GPIO_FN_IDECS1, IDECS1_MARK), | ||
1507 | PINMUX_GPIO(GPIO_FN_IDECS0, IDECS0_MARK), | ||
1508 | PINMUX_GPIO(GPIO_FN_IDEA2, IDEA2_MARK), | ||
1509 | PINMUX_GPIO(GPIO_FN_IDEA1, IDEA1_MARK), | ||
1510 | PINMUX_GPIO(GPIO_FN_IDEA0, IDEA0_MARK), | ||
1511 | }; | ||
1512 | |||
1513 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1514 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
1515 | PTA7_FN, PTA7_OUT, 0, PTA7_IN, | ||
1516 | PTA6_FN, PTA6_OUT, 0, PTA6_IN, | ||
1517 | PTA5_FN, PTA5_OUT, 0, PTA5_IN, | ||
1518 | PTA4_FN, PTA4_OUT, PTA4_IN_PU, PTA4_IN, | ||
1519 | PTA3_FN, PTA3_OUT, PTA3_IN_PU, PTA3_IN, | ||
1520 | PTA2_FN, PTA2_OUT, PTA2_IN_PU, PTA2_IN, | ||
1521 | PTA1_FN, PTA1_OUT, PTA1_IN_PU, PTA1_IN, | ||
1522 | PTA0_FN, PTA0_OUT, PTA0_IN_PU, PTA0_IN } | ||
1523 | }, | ||
1524 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
1525 | PTB7_FN, PTB7_OUT, 0, PTB7_IN, | ||
1526 | PTB6_FN, PTB6_OUT, 0, PTB6_IN, | ||
1527 | PTB5_FN, PTB5_OUT, 0, PTB5_IN, | ||
1528 | PTB4_FN, PTB4_OUT, 0, PTB4_IN, | ||
1529 | PTB3_FN, PTB3_OUT, 0, PTB3_IN, | ||
1530 | PTB2_FN, PTB2_OUT, PTB2_IN_PU, PTB2_IN, | ||
1531 | PTB1_FN, PTB1_OUT, PTB1_IN_PU, PTB1_IN, | ||
1532 | PTB0_FN, PTB0_OUT, 0, PTB0_IN } | ||
1533 | }, | ||
1534 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
1535 | PTC7_FN, PTC7_OUT, 0, PTC7_IN, | ||
1536 | PTC6_FN, PTC6_OUT, 0, PTC6_IN, | ||
1537 | PTC5_FN, PTC5_OUT, 0, PTC5_IN, | ||
1538 | PTC4_FN, PTC4_OUT, 0, PTC4_IN, | ||
1539 | PTC3_FN, PTC3_OUT, 0, PTC3_IN, | ||
1540 | PTC2_FN, PTC2_OUT, 0, PTC2_IN, | ||
1541 | PTC1_FN, PTC1_OUT, 0, PTC1_IN, | ||
1542 | PTC0_FN, PTC0_OUT, 0, PTC0_IN } | ||
1543 | }, | ||
1544 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
1545 | PTD7_FN, PTD7_OUT, 0, PTD7_IN, | ||
1546 | PTD6_FN, PTD6_OUT, 0, PTD6_IN, | ||
1547 | PTD5_FN, PTD5_OUT, 0, PTD5_IN, | ||
1548 | PTD4_FN, PTD4_OUT, 0, PTD4_IN, | ||
1549 | PTD3_FN, PTD3_OUT, 0, PTD3_IN, | ||
1550 | PTD2_FN, PTD2_OUT, 0, PTD2_IN, | ||
1551 | PTD1_FN, PTD1_OUT, 0, PTD1_IN, | ||
1552 | PTD0_FN, PTD0_OUT, 0, PTD0_IN } | ||
1553 | }, | ||
1554 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
1555 | 0, 0, 0, 0, | ||
1556 | 0, 0, 0, 0, | ||
1557 | PTE5_FN, PTE5_OUT, 0, PTE5_IN, | ||
1558 | PTE4_FN, PTE4_OUT, 0, PTE4_IN, | ||
1559 | PTE3_FN, PTE3_OUT, 0, PTE3_IN, | ||
1560 | PTE2_FN, PTE2_OUT, 0, PTE2_IN, | ||
1561 | PTE1_FN, PTE1_OUT, 0, PTE1_IN, | ||
1562 | PTE0_FN, PTE0_OUT, 0, PTE0_IN } | ||
1563 | }, | ||
1564 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1565 | PTF7_FN, PTF7_OUT, 0, PTF7_IN, | ||
1566 | PTF6_FN, PTF6_OUT, 0, PTF6_IN, | ||
1567 | PTF5_FN, PTF5_OUT, 0, PTF5_IN, | ||
1568 | PTF4_FN, PTF4_OUT, 0, PTF4_IN, | ||
1569 | PTF3_FN, PTF3_OUT, 0, PTF3_IN, | ||
1570 | PTF2_FN, PTF2_OUT, 0, PTF2_IN, | ||
1571 | PTF1_FN, PTF1_OUT, 0, PTF1_IN, | ||
1572 | PTF0_FN, PTF0_OUT, 0, PTF0_IN } | ||
1573 | }, | ||
1574 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1575 | 0, 0, 0, 0, | ||
1576 | 0, 0, 0, 0, | ||
1577 | PTG5_FN, PTG5_OUT, 0, 0, | ||
1578 | PTG4_FN, PTG4_OUT, 0, 0, | ||
1579 | PTG3_FN, PTG3_OUT, 0, 0, | ||
1580 | PTG2_FN, PTG2_OUT, 0, 0, | ||
1581 | PTG1_FN, PTG1_OUT, 0, 0, | ||
1582 | PTG0_FN, PTG0_OUT, 0, 0 } | ||
1583 | }, | ||
1584 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1585 | PTH7_FN, PTH7_OUT, 0, PTH7_IN, | ||
1586 | PTH6_FN, PTH6_OUT, 0, PTH6_IN, | ||
1587 | PTH5_FN, PTH5_OUT, 0, PTH5_IN, | ||
1588 | PTH4_FN, PTH4_OUT, 0, PTH4_IN, | ||
1589 | PTH3_FN, PTH3_OUT, 0, PTH3_IN, | ||
1590 | PTH2_FN, PTH2_OUT, 0, PTH2_IN, | ||
1591 | PTH1_FN, PTH1_OUT, 0, PTH1_IN, | ||
1592 | PTH0_FN, PTH0_OUT, 0, PTH0_IN } | ||
1593 | }, | ||
1594 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1595 | PTJ7_FN, PTJ7_OUT, 0, 0, | ||
1596 | 0, 0, 0, 0, | ||
1597 | PTJ5_FN, PTJ5_OUT, 0, 0, | ||
1598 | 0, 0, 0, 0, | ||
1599 | PTJ3_FN, PTJ3_OUT, 0, PTJ3_IN, | ||
1600 | PTJ2_FN, PTJ2_OUT, 0, PTJ2_IN, | ||
1601 | PTJ1_FN, PTJ1_OUT, 0, PTJ1_IN, | ||
1602 | PTJ0_FN, PTJ0_OUT, 0, PTJ0_IN } | ||
1603 | }, | ||
1604 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1605 | PTK7_FN, PTK7_OUT, 0, PTK7_IN, | ||
1606 | PTK6_FN, PTK6_OUT, 0, PTK6_IN, | ||
1607 | PTK5_FN, PTK5_OUT, 0, PTK5_IN, | ||
1608 | PTK4_FN, PTK4_OUT, 0, PTK4_IN, | ||
1609 | PTK3_FN, PTK3_OUT, 0, PTK3_IN, | ||
1610 | PTK2_FN, PTK2_OUT, 0, PTK2_IN, | ||
1611 | PTK1_FN, PTK1_OUT, 0, PTK1_IN, | ||
1612 | PTK0_FN, PTK0_OUT, 0, PTK0_IN } | ||
1613 | }, | ||
1614 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1615 | PTL7_FN, PTL7_OUT, 0, PTL7_IN, | ||
1616 | PTL6_FN, PTL6_OUT, 0, PTL6_IN, | ||
1617 | PTL5_FN, PTL5_OUT, 0, PTL5_IN, | ||
1618 | PTL4_FN, PTL4_OUT, 0, PTL4_IN, | ||
1619 | PTL3_FN, PTL3_OUT, 0, PTL3_IN, | ||
1620 | PTL2_FN, PTL2_OUT, 0, PTL2_IN, | ||
1621 | PTL1_FN, PTL1_OUT, 0, PTL1_IN, | ||
1622 | PTL0_FN, PTL0_OUT, 0, PTL0_IN } | ||
1623 | }, | ||
1624 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1625 | PTM7_FN, PTM7_OUT, 0, PTM7_IN, | ||
1626 | PTM6_FN, PTM6_OUT, 0, PTM6_IN, | ||
1627 | PTM5_FN, PTM5_OUT, 0, PTM5_IN, | ||
1628 | PTM4_FN, PTM4_OUT, 0, PTM4_IN, | ||
1629 | PTM3_FN, PTM3_OUT, 0, PTM3_IN, | ||
1630 | PTM2_FN, PTM2_OUT, 0, PTM2_IN, | ||
1631 | PTM1_FN, PTM1_OUT, 0, PTM1_IN, | ||
1632 | PTM0_FN, PTM0_OUT, 0, PTM0_IN } | ||
1633 | }, | ||
1634 | { PINMUX_CFG_REG("PNCR", 0xa4050118, 16, 2) { | ||
1635 | PTN7_FN, PTN7_OUT, 0, PTN7_IN, | ||
1636 | PTN6_FN, PTN6_OUT, 0, PTN6_IN, | ||
1637 | PTN5_FN, PTN5_OUT, 0, PTN5_IN, | ||
1638 | PTN4_FN, PTN4_OUT, 0, PTN4_IN, | ||
1639 | PTN3_FN, PTN3_OUT, 0, PTN3_IN, | ||
1640 | PTN2_FN, PTN2_OUT, 0, PTN2_IN, | ||
1641 | PTN1_FN, PTN1_OUT, 0, PTN1_IN, | ||
1642 | PTN0_FN, PTN0_OUT, 0, PTN0_IN } | ||
1643 | }, | ||
1644 | { PINMUX_CFG_REG("PQCR", 0xa405011a, 16, 2) { | ||
1645 | 0, 0, 0, 0, | ||
1646 | 0, 0, 0, 0, | ||
1647 | 0, 0, 0, 0, | ||
1648 | 0, 0, 0, 0, | ||
1649 | PTQ3_FN, 0, 0, PTQ3_IN, | ||
1650 | PTQ2_FN, 0, 0, PTQ2_IN, | ||
1651 | PTQ1_FN, 0, 0, PTQ1_IN, | ||
1652 | PTQ0_FN, 0, 0, PTQ0_IN } | ||
1653 | }, | ||
1654 | { PINMUX_CFG_REG("PRCR", 0xa405011c, 16, 2) { | ||
1655 | PTR7_FN, PTR7_OUT, 0, PTR7_IN, | ||
1656 | PTR6_FN, PTR6_OUT, 0, PTR6_IN, | ||
1657 | PTR5_FN, PTR5_OUT, 0, PTR5_IN, | ||
1658 | PTR4_FN, PTR4_OUT, 0, PTR4_IN, | ||
1659 | PTR3_FN, 0, 0, PTR3_IN, | ||
1660 | PTR2_FN, 0, PTR2_IN_PU, PTR2_IN, | ||
1661 | PTR1_FN, PTR1_OUT, 0, PTR1_IN, | ||
1662 | PTR0_FN, PTR0_OUT, 0, PTR0_IN } | ||
1663 | }, | ||
1664 | { PINMUX_CFG_REG("PSCR", 0xa405011e, 16, 2) { | ||
1665 | PTS7_FN, PTS7_OUT, 0, PTS7_IN, | ||
1666 | PTS6_FN, PTS6_OUT, 0, PTS6_IN, | ||
1667 | PTS5_FN, PTS5_OUT, 0, PTS5_IN, | ||
1668 | PTS4_FN, PTS4_OUT, 0, PTS4_IN, | ||
1669 | PTS3_FN, PTS3_OUT, 0, PTS3_IN, | ||
1670 | PTS2_FN, PTS2_OUT, 0, PTS2_IN, | ||
1671 | PTS1_FN, PTS1_OUT, 0, PTS1_IN, | ||
1672 | PTS0_FN, PTS0_OUT, 0, PTS0_IN } | ||
1673 | }, | ||
1674 | { PINMUX_CFG_REG("PTCR", 0xa4050140, 16, 2) { | ||
1675 | 0, 0, 0, 0, | ||
1676 | 0, 0, 0, 0, | ||
1677 | PTT5_FN, PTT5_OUT, 0, PTT5_IN, | ||
1678 | PTT4_FN, PTT4_OUT, 0, PTT4_IN, | ||
1679 | PTT3_FN, PTT3_OUT, 0, PTT3_IN, | ||
1680 | PTT2_FN, PTT2_OUT, 0, PTT2_IN, | ||
1681 | PTT1_FN, PTT1_OUT, 0, PTT1_IN, | ||
1682 | PTT0_FN, PTT0_OUT, 0, PTT0_IN } | ||
1683 | }, | ||
1684 | { PINMUX_CFG_REG("PUCR", 0xa4050142, 16, 2) { | ||
1685 | 0, 0, 0, 0, | ||
1686 | 0, 0, 0, 0, | ||
1687 | PTU5_FN, PTU5_OUT, 0, PTU5_IN, | ||
1688 | PTU4_FN, PTU4_OUT, 0, PTU4_IN, | ||
1689 | PTU3_FN, PTU3_OUT, 0, PTU3_IN, | ||
1690 | PTU2_FN, PTU2_OUT, 0, PTU2_IN, | ||
1691 | PTU1_FN, PTU1_OUT, 0, PTU1_IN, | ||
1692 | PTU0_FN, PTU0_OUT, 0, PTU0_IN } | ||
1693 | }, | ||
1694 | { PINMUX_CFG_REG("PVCR", 0xa4050144, 16, 2) { | ||
1695 | PTV7_FN, PTV7_OUT, 0, PTV7_IN, | ||
1696 | PTV6_FN, PTV6_OUT, 0, PTV6_IN, | ||
1697 | PTV5_FN, PTV5_OUT, 0, PTV5_IN, | ||
1698 | PTV4_FN, PTV4_OUT, 0, PTV4_IN, | ||
1699 | PTV3_FN, PTV3_OUT, 0, PTV3_IN, | ||
1700 | PTV2_FN, PTV2_OUT, 0, PTV2_IN, | ||
1701 | PTV1_FN, PTV1_OUT, 0, PTV1_IN, | ||
1702 | PTV0_FN, PTV0_OUT, 0, PTV0_IN } | ||
1703 | }, | ||
1704 | { PINMUX_CFG_REG("PWCR", 0xa4050146, 16, 2) { | ||
1705 | PTW7_FN, PTW7_OUT, 0, PTW7_IN, | ||
1706 | PTW6_FN, PTW6_OUT, 0, PTW6_IN, | ||
1707 | PTW5_FN, PTW5_OUT, 0, PTW5_IN, | ||
1708 | PTW4_FN, PTW4_OUT, 0, PTW4_IN, | ||
1709 | PTW3_FN, PTW3_OUT, 0, PTW3_IN, | ||
1710 | PTW2_FN, PTW2_OUT, 0, PTW2_IN, | ||
1711 | PTW1_FN, PTW1_OUT, 0, PTW1_IN, | ||
1712 | PTW0_FN, PTW0_OUT, 0, PTW0_IN } | ||
1713 | }, | ||
1714 | { PINMUX_CFG_REG("PXCR", 0xa4050148, 16, 2) { | ||
1715 | PTX7_FN, PTX7_OUT, 0, PTX7_IN, | ||
1716 | PTX6_FN, PTX6_OUT, 0, PTX6_IN, | ||
1717 | PTX5_FN, PTX5_OUT, 0, PTX5_IN, | ||
1718 | PTX4_FN, PTX4_OUT, 0, PTX4_IN, | ||
1719 | PTX3_FN, PTX3_OUT, 0, PTX3_IN, | ||
1720 | PTX2_FN, PTX2_OUT, 0, PTX2_IN, | ||
1721 | PTX1_FN, PTX1_OUT, 0, PTX1_IN, | ||
1722 | PTX0_FN, PTX0_OUT, 0, PTX0_IN } | ||
1723 | }, | ||
1724 | { PINMUX_CFG_REG("PYCR", 0xa405014a, 16, 2) { | ||
1725 | PTY7_FN, PTY7_OUT, 0, PTY7_IN, | ||
1726 | PTY6_FN, PTY6_OUT, 0, PTY6_IN, | ||
1727 | PTY5_FN, PTY5_OUT, 0, PTY5_IN, | ||
1728 | PTY4_FN, PTY4_OUT, 0, PTY4_IN, | ||
1729 | PTY3_FN, PTY3_OUT, 0, PTY3_IN, | ||
1730 | PTY2_FN, PTY2_OUT, 0, PTY2_IN, | ||
1731 | PTY1_FN, PTY1_OUT, 0, PTY1_IN, | ||
1732 | PTY0_FN, PTY0_OUT, 0, PTY0_IN } | ||
1733 | }, | ||
1734 | { PINMUX_CFG_REG("PZCR", 0xa405014c, 16, 2) { | ||
1735 | PTZ7_FN, PTZ7_OUT, 0, PTZ7_IN, | ||
1736 | PTZ6_FN, PTZ6_OUT, 0, PTZ6_IN, | ||
1737 | PTZ5_FN, PTZ5_OUT, 0, PTZ5_IN, | ||
1738 | PTZ4_FN, PTZ4_OUT, 0, PTZ4_IN, | ||
1739 | PTZ3_FN, PTZ3_OUT, 0, PTZ3_IN, | ||
1740 | PTZ2_FN, PTZ2_OUT, 0, PTZ2_IN, | ||
1741 | PTZ1_FN, PTZ1_OUT, 0, PTZ1_IN, | ||
1742 | PTZ0_FN, PTZ0_OUT, 0, PTZ0_IN } | ||
1743 | }, | ||
1744 | { PINMUX_CFG_REG("PSELA", 0xa405014e, 16, 2) { | ||
1745 | PSA15_PSA14_FN1, PSA15_PSA14_FN2, 0, 0, | ||
1746 | PSA13_PSA12_FN1, PSA13_PSA12_FN2, 0, 0, | ||
1747 | PSA11_PSA10_FN1, PSA11_PSA10_FN2, 0, 0, | ||
1748 | 0, 0, 0, 0, | ||
1749 | 0, 0, 0, 0, | ||
1750 | PSA5_PSA4_FN1, PSA5_PSA4_FN2, PSA5_PSA4_FN3, 0, | ||
1751 | PSA3_PSA2_FN1, PSA3_PSA2_FN2, 0, 0, | ||
1752 | 0, 0, 0, 0 } | ||
1753 | }, | ||
1754 | { PINMUX_CFG_REG("PSELB", 0xa4050150, 16, 2) { | ||
1755 | PSB15_PSB14_FN1, PSB15_PSB14_FN2, 0, 0, | ||
1756 | PSB13_PSB12_LCDC_RGB, PSB13_PSB12_LCDC_SYS, 0, 0, | ||
1757 | 0, 0, 0, 0, | ||
1758 | PSB9_PSB8_FN1, PSB9_PSB8_FN2, PSB9_PSB8_FN3, 0, | ||
1759 | PSB7_PSB6_FN1, PSB7_PSB6_FN2, 0, 0, | ||
1760 | PSB5_PSB4_FN1, PSB5_PSB4_FN2, 0, 0, | ||
1761 | PSB3_PSB2_FN1, PSB3_PSB2_FN2, 0, 0, | ||
1762 | 0, 0, 0, 0 } | ||
1763 | }, | ||
1764 | { PINMUX_CFG_REG("PSELC", 0xa4050152, 16, 2) { | ||
1765 | PSC15_PSC14_FN1, PSC15_PSC14_FN2, 0, 0, | ||
1766 | PSC13_PSC12_FN1, PSC13_PSC12_FN2, 0, 0, | ||
1767 | PSC11_PSC10_FN1, PSC11_PSC10_FN2, PSC11_PSC10_FN3, 0, | ||
1768 | PSC9_PSC8_FN1, PSC9_PSC8_FN2, 0, 0, | ||
1769 | PSC7_PSC6_FN1, PSC7_PSC6_FN2, PSC7_PSC6_FN3, 0, | ||
1770 | 0, 0, 0, 0, | ||
1771 | 0, 0, 0, 0, | ||
1772 | 0, 0, 0, 0 } | ||
1773 | }, | ||
1774 | { PINMUX_CFG_REG("PSELD", 0xa4050154, 16, 2) { | ||
1775 | PSD15_PSD14_FN1, PSD15_PSD14_FN2, 0, 0, | ||
1776 | PSD13_PSD12_FN1, PSD13_PSD12_FN2, 0, 0, | ||
1777 | PSD11_PSD10_FN1, PSD11_PSD10_FN2, PSD11_PSD10_FN3, 0, | ||
1778 | PSD9_PSD8_FN1, PSD9_PSD8_FN2, 0, 0, | ||
1779 | PSD7_PSD6_FN1, PSD7_PSD6_FN2, 0, 0, | ||
1780 | PSD5_PSD4_FN1, PSD5_PSD4_FN2, 0, 0, | ||
1781 | PSD3_PSD2_FN1, PSD3_PSD2_FN2, 0, 0, | ||
1782 | PSD1_PSD0_FN1, PSD1_PSD0_FN2, 0, 0 } | ||
1783 | }, | ||
1784 | {} | ||
1785 | }; | ||
1786 | |||
1787 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1788 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { | ||
1789 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
1790 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
1791 | }, | ||
1792 | { PINMUX_DATA_REG("PBDR", 0xa4050122, 8) { | ||
1793 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
1794 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
1795 | }, | ||
1796 | { PINMUX_DATA_REG("PCDR", 0xa4050124, 8) { | ||
1797 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
1798 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
1799 | }, | ||
1800 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
1801 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
1802 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
1803 | }, | ||
1804 | { PINMUX_DATA_REG("PEDR", 0xa4050128, 8) { | ||
1805 | 0, 0, PTE5_DATA, PTE4_DATA, | ||
1806 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
1807 | }, | ||
1808 | { PINMUX_DATA_REG("PFDR", 0xa405012a, 8) { | ||
1809 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
1810 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
1811 | }, | ||
1812 | { PINMUX_DATA_REG("PGDR", 0xa405012c, 8) { | ||
1813 | 0, 0, PTG5_DATA, PTG4_DATA, | ||
1814 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
1815 | }, | ||
1816 | { PINMUX_DATA_REG("PHDR", 0xa405012e, 8) { | ||
1817 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
1818 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
1819 | }, | ||
1820 | { PINMUX_DATA_REG("PJDR", 0xa4050130, 8) { | ||
1821 | PTJ7_DATA, 0, PTJ5_DATA, 0, | ||
1822 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
1823 | }, | ||
1824 | { PINMUX_DATA_REG("PKDR", 0xa4050132, 8) { | ||
1825 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
1826 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
1827 | }, | ||
1828 | { PINMUX_DATA_REG("PLDR", 0xa4050134, 8) { | ||
1829 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
1830 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
1831 | }, | ||
1832 | { PINMUX_DATA_REG("PMDR", 0xa4050136, 8) { | ||
1833 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
1834 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
1835 | }, | ||
1836 | { PINMUX_DATA_REG("PNDR", 0xa4050138, 8) { | ||
1837 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
1838 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
1839 | }, | ||
1840 | { PINMUX_DATA_REG("PQDR", 0xa405013a, 8) { | ||
1841 | 0, 0, 0, 0, | ||
1842 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
1843 | }, | ||
1844 | { PINMUX_DATA_REG("PRDR", 0xa405013c, 8) { | ||
1845 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
1846 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
1847 | }, | ||
1848 | { PINMUX_DATA_REG("PSDR", 0xa405013e, 8) { | ||
1849 | PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
1850 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
1851 | }, | ||
1852 | { PINMUX_DATA_REG("PTDR", 0xa4050160, 8) { | ||
1853 | 0, 0, PTT5_DATA, PTT4_DATA, | ||
1854 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
1855 | }, | ||
1856 | { PINMUX_DATA_REG("PUDR", 0xa4050162, 8) { | ||
1857 | 0, 0, PTU5_DATA, PTU4_DATA, | ||
1858 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
1859 | }, | ||
1860 | { PINMUX_DATA_REG("PVDR", 0xa4050164, 8) { | ||
1861 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
1862 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
1863 | }, | ||
1864 | { PINMUX_DATA_REG("PWDR", 0xa4050166, 8) { | ||
1865 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
1866 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
1867 | }, | ||
1868 | { PINMUX_DATA_REG("PXDR", 0xa4050168, 8) { | ||
1869 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
1870 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
1871 | }, | ||
1872 | { PINMUX_DATA_REG("PYDR", 0xa405016a, 8) { | ||
1873 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
1874 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
1875 | }, | ||
1876 | { PINMUX_DATA_REG("PZDR", 0xa405016c, 8) { | ||
1877 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
1878 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
1879 | }, | ||
1880 | { }, | ||
1881 | }; | ||
1882 | |||
1883 | static struct pinmux_info sh7723_pinmux_info = { | ||
1884 | .name = "sh7723_pfc", | ||
1885 | .reserved_id = PINMUX_RESERVED, | ||
1886 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1887 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1888 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1889 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1890 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1891 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1892 | |||
1893 | .first_gpio = GPIO_PTA7, | ||
1894 | .last_gpio = GPIO_FN_IDEA0, | ||
1895 | |||
1896 | .gpios = pinmux_gpios, | ||
1897 | .cfg_regs = pinmux_config_regs, | ||
1898 | .data_regs = pinmux_data_regs, | ||
1899 | |||
1900 | .gpio_data = pinmux_data, | ||
1901 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1902 | }; | ||
1903 | 14 | ||
1904 | static int __init plat_pinmux_setup(void) | 15 | static int __init plat_pinmux_setup(void) |
1905 | { | 16 | { |
1906 | return register_pinmux(&sh7723_pinmux_info); | 17 | return sh_pfc_register("pfc-sh7723", NULL, 0); |
1907 | } | 18 | } |
1908 | 19 | ||
1909 | arch_initcall(plat_pinmux_setup); | 20 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c index 1af0f9586379..5c3541d6aed8 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c | |||
@@ -15,2216 +15,10 @@ | |||
15 | 15 | ||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/gpio.h> | 18 | #include <cpu/pfc.h> |
19 | #include <cpu/sh7724.h> | ||
20 | |||
21 | enum { | ||
22 | PINMUX_RESERVED = 0, | ||
23 | |||
24 | PINMUX_DATA_BEGIN, | ||
25 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
26 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
27 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
28 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
29 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
30 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
31 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
32 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
33 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
34 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
35 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
36 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
37 | PTG5_DATA, PTG4_DATA, | ||
38 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
39 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
40 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
41 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, | ||
42 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
43 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
44 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
45 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
46 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
47 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
48 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
49 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
50 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
51 | PTQ7_DATA, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
52 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
53 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
54 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
55 | PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
56 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
57 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
58 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
59 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
60 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
61 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
62 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
63 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
64 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
65 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
66 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
67 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
68 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
69 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
70 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
71 | PINMUX_DATA_END, | ||
72 | |||
73 | PINMUX_INPUT_BEGIN, | ||
74 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
75 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
76 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
77 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
78 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
79 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
80 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
81 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
82 | PTE7_IN, PTE6_IN, PTE5_IN, PTE4_IN, | ||
83 | PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
84 | PTF7_IN, PTF6_IN, PTF5_IN, PTF4_IN, | ||
85 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
86 | PTH7_IN, PTH6_IN, PTH5_IN, PTH4_IN, | ||
87 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
88 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
89 | PTK7_IN, PTK6_IN, PTK5_IN, PTK4_IN, | ||
90 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
91 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, | ||
92 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
93 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
94 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
95 | PTN7_IN, PTN6_IN, PTN5_IN, PTN4_IN, | ||
96 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
97 | PTQ7_IN, PTQ6_IN, PTQ5_IN, PTQ4_IN, | ||
98 | PTQ3_IN, PTQ2_IN, PTQ1_IN, PTQ0_IN, | ||
99 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
100 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
101 | PTS6_IN, PTS5_IN, PTS4_IN, | ||
102 | PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
103 | PTT7_IN, PTT6_IN, PTT5_IN, PTT4_IN, | ||
104 | PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
105 | PTU7_IN, PTU6_IN, PTU5_IN, PTU4_IN, | ||
106 | PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
107 | PTV7_IN, PTV6_IN, PTV5_IN, PTV4_IN, | ||
108 | PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
109 | PTW7_IN, PTW6_IN, PTW5_IN, PTW4_IN, | ||
110 | PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
111 | PTX7_IN, PTX6_IN, PTX5_IN, PTX4_IN, | ||
112 | PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
113 | PTY7_IN, PTY6_IN, PTY5_IN, PTY4_IN, | ||
114 | PTY3_IN, PTY2_IN, PTY1_IN, PTY0_IN, | ||
115 | PTZ7_IN, PTZ6_IN, PTZ5_IN, PTZ4_IN, | ||
116 | PTZ3_IN, PTZ2_IN, PTZ1_IN, PTZ0_IN, | ||
117 | PINMUX_INPUT_END, | ||
118 | |||
119 | PINMUX_INPUT_PULLUP_BEGIN, | ||
120 | PTA7_IN_PU, PTA6_IN_PU, PTA5_IN_PU, PTA4_IN_PU, | ||
121 | PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
122 | PTB7_IN_PU, PTB6_IN_PU, PTB5_IN_PU, PTB4_IN_PU, | ||
123 | PTB3_IN_PU, PTB2_IN_PU, PTB1_IN_PU, PTB0_IN_PU, | ||
124 | PTC7_IN_PU, PTC6_IN_PU, PTC5_IN_PU, PTC4_IN_PU, | ||
125 | PTC3_IN_PU, PTC2_IN_PU, PTC1_IN_PU, PTC0_IN_PU, | ||
126 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
127 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, PTD0_IN_PU, | ||
128 | PTE7_IN_PU, PTE6_IN_PU, PTE5_IN_PU, PTE4_IN_PU, | ||
129 | PTE3_IN_PU, PTE2_IN_PU, PTE1_IN_PU, PTE0_IN_PU, | ||
130 | PTF7_IN_PU, PTF6_IN_PU, PTF5_IN_PU, PTF4_IN_PU, | ||
131 | PTF3_IN_PU, PTF2_IN_PU, PTF1_IN_PU, PTF0_IN_PU, | ||
132 | PTH7_IN_PU, PTH6_IN_PU, PTH5_IN_PU, PTH4_IN_PU, | ||
133 | PTH3_IN_PU, PTH2_IN_PU, PTH1_IN_PU, PTH0_IN_PU, | ||
134 | PTJ3_IN_PU, PTJ2_IN_PU, PTJ1_IN_PU, PTJ0_IN_PU, | ||
135 | PTK7_IN_PU, PTK6_IN_PU, PTK5_IN_PU, PTK4_IN_PU, | ||
136 | PTK3_IN_PU, PTK2_IN_PU, PTK1_IN_PU, PTK0_IN_PU, | ||
137 | PTL7_IN_PU, PTL6_IN_PU, PTL5_IN_PU, PTL4_IN_PU, | ||
138 | PTL3_IN_PU, PTL2_IN_PU, PTL1_IN_PU, PTL0_IN_PU, | ||
139 | PTM7_IN_PU, PTM6_IN_PU, PTM5_IN_PU, PTM4_IN_PU, | ||
140 | PTM3_IN_PU, PTM2_IN_PU, PTM1_IN_PU, PTM0_IN_PU, | ||
141 | PTN7_IN_PU, PTN6_IN_PU, PTN5_IN_PU, PTN4_IN_PU, | ||
142 | PTN3_IN_PU, PTN2_IN_PU, PTN1_IN_PU, PTN0_IN_PU, | ||
143 | PTQ7_IN_PU, PTQ6_IN_PU, PTQ5_IN_PU, PTQ4_IN_PU, | ||
144 | PTQ3_IN_PU, PTQ2_IN_PU, PTQ1_IN_PU, PTQ0_IN_PU, | ||
145 | PTR7_IN_PU, PTR6_IN_PU, PTR5_IN_PU, PTR4_IN_PU, | ||
146 | PTR3_IN_PU, PTR2_IN_PU, PTR1_IN_PU, PTR0_IN_PU, | ||
147 | PTS6_IN_PU, PTS5_IN_PU, PTS4_IN_PU, | ||
148 | PTS3_IN_PU, PTS2_IN_PU, PTS1_IN_PU, PTS0_IN_PU, | ||
149 | PTT7_IN_PU, PTT6_IN_PU, PTT5_IN_PU, PTT4_IN_PU, | ||
150 | PTT3_IN_PU, PTT2_IN_PU, PTT1_IN_PU, PTT0_IN_PU, | ||
151 | PTU7_IN_PU, PTU6_IN_PU, PTU5_IN_PU, PTU4_IN_PU, | ||
152 | PTU3_IN_PU, PTU2_IN_PU, PTU1_IN_PU, PTU0_IN_PU, | ||
153 | PTV7_IN_PU, PTV6_IN_PU, PTV5_IN_PU, PTV4_IN_PU, | ||
154 | PTV3_IN_PU, PTV2_IN_PU, PTV1_IN_PU, PTV0_IN_PU, | ||
155 | PTW7_IN_PU, PTW6_IN_PU, PTW5_IN_PU, PTW4_IN_PU, | ||
156 | PTW3_IN_PU, PTW2_IN_PU, PTW1_IN_PU, PTW0_IN_PU, | ||
157 | PTX7_IN_PU, PTX6_IN_PU, PTX5_IN_PU, PTX4_IN_PU, | ||
158 | PTX3_IN_PU, PTX2_IN_PU, PTX1_IN_PU, PTX0_IN_PU, | ||
159 | PTY7_IN_PU, PTY6_IN_PU, PTY5_IN_PU, PTY4_IN_PU, | ||
160 | PTY3_IN_PU, PTY2_IN_PU, PTY1_IN_PU, PTY0_IN_PU, | ||
161 | PTZ7_IN_PU, PTZ6_IN_PU, PTZ5_IN_PU, PTZ4_IN_PU, | ||
162 | PTZ3_IN_PU, PTZ2_IN_PU, PTZ1_IN_PU, PTZ0_IN_PU, | ||
163 | PINMUX_INPUT_PULLUP_END, | ||
164 | |||
165 | PINMUX_OUTPUT_BEGIN, | ||
166 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
167 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
168 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
169 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
170 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
171 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
172 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
173 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
174 | PTE7_OUT, PTE6_OUT, PTE5_OUT, PTE4_OUT, | ||
175 | PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
176 | PTF7_OUT, PTF6_OUT, PTF5_OUT, PTF4_OUT, | ||
177 | PTF3_OUT, PTF2_OUT, PTF1_OUT, PTF0_OUT, | ||
178 | PTG5_OUT, PTG4_OUT, | ||
179 | PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
180 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
181 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
182 | PTJ7_OUT, PTJ6_OUT, PTJ5_OUT, | ||
183 | PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
184 | PTK7_OUT, PTK6_OUT, PTK5_OUT, PTK4_OUT, | ||
185 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
186 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
187 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
188 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
189 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
190 | PTN7_OUT, PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
191 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, | ||
192 | PTQ7_OUT, PTQ6_OUT, PTQ5_OUT, PTQ4_OUT, | ||
193 | PTQ3_OUT, PTQ2_OUT, PTQ1_OUT, PTQ0_OUT, | ||
194 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
195 | PTR1_OUT, PTR0_OUT, | ||
196 | PTS6_OUT, PTS5_OUT, PTS4_OUT, | ||
197 | PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
198 | PTT7_OUT, PTT6_OUT, PTT5_OUT, PTT4_OUT, | ||
199 | PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
200 | PTU7_OUT, PTU6_OUT, PTU5_OUT, PTU4_OUT, | ||
201 | PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
202 | PTV7_OUT, PTV6_OUT, PTV5_OUT, PTV4_OUT, | ||
203 | PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
204 | PTW7_OUT, PTW6_OUT, PTW5_OUT, PTW4_OUT, | ||
205 | PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
206 | PTX7_OUT, PTX6_OUT, PTX5_OUT, PTX4_OUT, | ||
207 | PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
208 | PTY7_OUT, PTY6_OUT, PTY5_OUT, PTY4_OUT, | ||
209 | PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
210 | PTZ7_OUT, PTZ6_OUT, PTZ5_OUT, PTZ4_OUT, | ||
211 | PTZ3_OUT, PTZ2_OUT, PTZ1_OUT, PTZ0_OUT, | ||
212 | PINMUX_OUTPUT_END, | ||
213 | |||
214 | PINMUX_FUNCTION_BEGIN, | ||
215 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
216 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
217 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
218 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
219 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
220 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
221 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
222 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
223 | PTE7_FN, PTE6_FN, PTE5_FN, PTE4_FN, | ||
224 | PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
225 | PTF7_FN, PTF6_FN, PTF5_FN, PTF4_FN, | ||
226 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
227 | PTG5_FN, PTG4_FN, | ||
228 | PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
229 | PTH7_FN, PTH6_FN, PTH5_FN, PTH4_FN, | ||
230 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
231 | PTJ7_FN, PTJ6_FN, PTJ5_FN, | ||
232 | PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
233 | PTK7_FN, PTK6_FN, PTK5_FN, PTK4_FN, | ||
234 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
235 | PTL7_FN, PTL6_FN, PTL5_FN, PTL4_FN, | ||
236 | PTL3_FN, PTL2_FN, PTL1_FN, PTL0_FN, | ||
237 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
238 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
239 | PTN7_FN, PTN6_FN, PTN5_FN, PTN4_FN, | ||
240 | PTN3_FN, PTN2_FN, PTN1_FN, PTN0_FN, | ||
241 | PTQ7_FN, PTQ6_FN, PTQ5_FN, PTQ4_FN, | ||
242 | PTQ3_FN, PTQ2_FN, PTQ1_FN, PTQ0_FN, | ||
243 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
244 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
245 | PTS6_FN, PTS5_FN, PTS4_FN, | ||
246 | PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
247 | PTT7_FN, PTT6_FN, PTT5_FN, PTT4_FN, | ||
248 | PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
249 | PTU7_FN, PTU6_FN, PTU5_FN, PTU4_FN, | ||
250 | PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
251 | PTV7_FN, PTV6_FN, PTV5_FN, PTV4_FN, | ||
252 | PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
253 | PTW7_FN, PTW6_FN, PTW5_FN, PTW4_FN, | ||
254 | PTW3_FN, PTW2_FN, PTW1_FN, PTW0_FN, | ||
255 | PTX7_FN, PTX6_FN, PTX5_FN, PTX4_FN, | ||
256 | PTX3_FN, PTX2_FN, PTX1_FN, PTX0_FN, | ||
257 | PTY7_FN, PTY6_FN, PTY5_FN, PTY4_FN, | ||
258 | PTY3_FN, PTY2_FN, PTY1_FN, PTY0_FN, | ||
259 | PTZ7_FN, PTZ6_FN, PTZ5_FN, PTZ4_FN, | ||
260 | PTZ3_FN, PTZ2_FN, PTZ1_FN, PTZ0_FN, | ||
261 | |||
262 | |||
263 | PSA15_0, PSA15_1, | ||
264 | PSA14_0, PSA14_1, | ||
265 | PSA13_0, PSA13_1, | ||
266 | PSA12_0, PSA12_1, | ||
267 | PSA10_0, PSA10_1, | ||
268 | PSA9_0, PSA9_1, | ||
269 | PSA8_0, PSA8_1, | ||
270 | PSA7_0, PSA7_1, | ||
271 | PSA6_0, PSA6_1, | ||
272 | PSA5_0, PSA5_1, | ||
273 | PSA3_0, PSA3_1, | ||
274 | PSA2_0, PSA2_1, | ||
275 | PSA1_0, PSA1_1, | ||
276 | PSA0_0, PSA0_1, | ||
277 | |||
278 | PSB14_0, PSB14_1, | ||
279 | PSB13_0, PSB13_1, | ||
280 | PSB12_0, PSB12_1, | ||
281 | PSB11_0, PSB11_1, | ||
282 | PSB10_0, PSB10_1, | ||
283 | PSB9_0, PSB9_1, | ||
284 | PSB8_0, PSB8_1, | ||
285 | PSB7_0, PSB7_1, | ||
286 | PSB6_0, PSB6_1, | ||
287 | PSB5_0, PSB5_1, | ||
288 | PSB4_0, PSB4_1, | ||
289 | PSB3_0, PSB3_1, | ||
290 | PSB2_0, PSB2_1, | ||
291 | PSB1_0, PSB1_1, | ||
292 | PSB0_0, PSB0_1, | ||
293 | |||
294 | PSC15_0, PSC15_1, | ||
295 | PSC14_0, PSC14_1, | ||
296 | PSC13_0, PSC13_1, | ||
297 | PSC12_0, PSC12_1, | ||
298 | PSC11_0, PSC11_1, | ||
299 | PSC10_0, PSC10_1, | ||
300 | PSC9_0, PSC9_1, | ||
301 | PSC8_0, PSC8_1, | ||
302 | PSC7_0, PSC7_1, | ||
303 | PSC6_0, PSC6_1, | ||
304 | PSC5_0, PSC5_1, | ||
305 | PSC4_0, PSC4_1, | ||
306 | PSC2_0, PSC2_1, | ||
307 | PSC1_0, PSC1_1, | ||
308 | PSC0_0, PSC0_1, | ||
309 | |||
310 | PSD15_0, PSD15_1, | ||
311 | PSD14_0, PSD14_1, | ||
312 | PSD13_0, PSD13_1, | ||
313 | PSD12_0, PSD12_1, | ||
314 | PSD11_0, PSD11_1, | ||
315 | PSD10_0, PSD10_1, | ||
316 | PSD9_0, PSD9_1, | ||
317 | PSD8_0, PSD8_1, | ||
318 | PSD7_0, PSD7_1, | ||
319 | PSD6_0, PSD6_1, | ||
320 | PSD5_0, PSD5_1, | ||
321 | PSD4_0, PSD4_1, | ||
322 | PSD3_0, PSD3_1, | ||
323 | PSD2_0, PSD2_1, | ||
324 | PSD1_0, PSD1_1, | ||
325 | PSD0_0, PSD0_1, | ||
326 | |||
327 | PSE15_0, PSE15_1, | ||
328 | PSE14_0, PSE14_1, | ||
329 | PSE13_0, PSE13_1, | ||
330 | PSE12_0, PSE12_1, | ||
331 | PSE11_0, PSE11_1, | ||
332 | PSE10_0, PSE10_1, | ||
333 | PSE9_0, PSE9_1, | ||
334 | PSE8_0, PSE8_1, | ||
335 | PSE7_0, PSE7_1, | ||
336 | PSE6_0, PSE6_1, | ||
337 | PSE5_0, PSE5_1, | ||
338 | PSE4_0, PSE4_1, | ||
339 | PSE3_0, PSE3_1, | ||
340 | PSE2_0, PSE2_1, | ||
341 | PSE1_0, PSE1_1, | ||
342 | PSE0_0, PSE0_1, | ||
343 | PINMUX_FUNCTION_END, | ||
344 | |||
345 | PINMUX_MARK_BEGIN, | ||
346 | /*PTA*/ | ||
347 | D23_MARK, KEYOUT2_MARK, IDED15_MARK, | ||
348 | D22_MARK, KEYOUT1_MARK, IDED14_MARK, | ||
349 | D21_MARK, KEYOUT0_MARK, IDED13_MARK, | ||
350 | D20_MARK, KEYIN4_MARK, IDED12_MARK, | ||
351 | D19_MARK, KEYIN3_MARK, IDED11_MARK, | ||
352 | D18_MARK, KEYIN2_MARK, IDED10_MARK, | ||
353 | D17_MARK, KEYIN1_MARK, IDED9_MARK, | ||
354 | D16_MARK, KEYIN0_MARK, IDED8_MARK, | ||
355 | |||
356 | /*PTB*/ | ||
357 | D31_MARK, TPUTO1_MARK, IDEA1_MARK, | ||
358 | D30_MARK, TPUTO0_MARK, IDEA0_MARK, | ||
359 | D29_MARK, IODREQ_MARK, | ||
360 | D28_MARK, IDECS0_MARK, | ||
361 | D27_MARK, IDECS1_MARK, | ||
362 | D26_MARK, KEYOUT5_IN5_MARK, IDEIORD_MARK, | ||
363 | D25_MARK, KEYOUT4_IN6_MARK, IDEIOWR_MARK, | ||
364 | D24_MARK, KEYOUT3_MARK, IDEINT_MARK, | ||
365 | |||
366 | /*PTC*/ | ||
367 | LCDD7_MARK, | ||
368 | LCDD6_MARK, | ||
369 | LCDD5_MARK, | ||
370 | LCDD4_MARK, | ||
371 | LCDD3_MARK, | ||
372 | LCDD2_MARK, | ||
373 | LCDD1_MARK, | ||
374 | LCDD0_MARK, | ||
375 | |||
376 | /*PTD*/ | ||
377 | LCDD15_MARK, | ||
378 | LCDD14_MARK, | ||
379 | LCDD13_MARK, | ||
380 | LCDD12_MARK, | ||
381 | LCDD11_MARK, | ||
382 | LCDD10_MARK, | ||
383 | LCDD9_MARK, | ||
384 | LCDD8_MARK, | ||
385 | |||
386 | /*PTE*/ | ||
387 | FSIMCKB_MARK, | ||
388 | FSIMCKA_MARK, | ||
389 | LCDD21_MARK, SCIF2_L_TXD_MARK, | ||
390 | LCDD20_MARK, SCIF4_SCK_MARK, | ||
391 | LCDD19_MARK, SCIF4_RXD_MARK, | ||
392 | LCDD18_MARK, SCIF4_TXD_MARK, | ||
393 | LCDD17_MARK, | ||
394 | LCDD16_MARK, | ||
395 | |||
396 | /*PTF*/ | ||
397 | LCDVSYN_MARK, | ||
398 | LCDDISP_MARK, LCDRS_MARK, | ||
399 | LCDHSYN_MARK, LCDCS_MARK, | ||
400 | LCDDON_MARK, | ||
401 | LCDDCK_MARK, LCDWR_MARK, | ||
402 | LCDVEPWC_MARK, SCIF0_TXD_MARK, | ||
403 | LCDD23_MARK, SCIF2_L_SCK_MARK, | ||
404 | LCDD22_MARK, SCIF2_L_RXD_MARK, | ||
405 | |||
406 | /*PTG*/ | ||
407 | AUDCK_MARK, | ||
408 | AUDSYNC_MARK, | ||
409 | AUDATA3_MARK, | ||
410 | AUDATA2_MARK, | ||
411 | AUDATA1_MARK, | ||
412 | AUDATA0_MARK, | ||
413 | |||
414 | /*PTH*/ | ||
415 | VIO0_VD_MARK, | ||
416 | VIO0_CLK_MARK, | ||
417 | VIO0_D7_MARK, | ||
418 | VIO0_D6_MARK, | ||
419 | VIO0_D5_MARK, | ||
420 | VIO0_D4_MARK, | ||
421 | VIO0_D3_MARK, | ||
422 | VIO0_D2_MARK, | ||
423 | |||
424 | /*PTJ*/ | ||
425 | PDSTATUS_MARK, | ||
426 | STATUS2_MARK, | ||
427 | STATUS0_MARK, | ||
428 | A25_MARK, BS_MARK, | ||
429 | A24_MARK, | ||
430 | A23_MARK, | ||
431 | A22_MARK, | ||
432 | |||
433 | /*PTK*/ | ||
434 | VIO1_D5_MARK, VIO0_D13_MARK, IDED5_MARK, | ||
435 | VIO1_D4_MARK, VIO0_D12_MARK, IDED4_MARK, | ||
436 | VIO1_D3_MARK, VIO0_D11_MARK, IDED3_MARK, | ||
437 | VIO1_D2_MARK, VIO0_D10_MARK, IDED2_MARK, | ||
438 | VIO1_D1_MARK, VIO0_D9_MARK, IDED1_MARK, | ||
439 | VIO1_D0_MARK, VIO0_D8_MARK, IDED0_MARK, | ||
440 | VIO0_FLD_MARK, | ||
441 | VIO0_HD_MARK, | ||
442 | |||
443 | /*PTL*/ | ||
444 | DV_D5_MARK, SCIF3_V_SCK_MARK, RMII_RXD0_MARK, | ||
445 | DV_D4_MARK, SCIF3_V_RXD_MARK, RMII_RXD1_MARK, | ||
446 | DV_D3_MARK, SCIF3_V_TXD_MARK, RMII_REF_CLK_MARK, | ||
447 | DV_D2_MARK, SCIF1_SCK_MARK, RMII_TX_EN_MARK, | ||
448 | DV_D1_MARK, SCIF1_RXD_MARK, RMII_TXD0_MARK, | ||
449 | DV_D0_MARK, SCIF1_TXD_MARK, RMII_TXD1_MARK, | ||
450 | DV_D15_MARK, | ||
451 | DV_D14_MARK, MSIOF0_MCK_MARK, | ||
452 | |||
453 | /*PTM*/ | ||
454 | DV_D13_MARK, MSIOF0_TSCK_MARK, | ||
455 | DV_D12_MARK, MSIOF0_RXD_MARK, | ||
456 | DV_D11_MARK, MSIOF0_TXD_MARK, | ||
457 | DV_D10_MARK, MSIOF0_TSYNC_MARK, | ||
458 | DV_D9_MARK, MSIOF0_SS1_MARK, MSIOF0_RSCK_MARK, | ||
459 | DV_D8_MARK, MSIOF0_SS2_MARK, MSIOF0_RSYNC_MARK, | ||
460 | LCDVCPWC_MARK, SCIF0_RXD_MARK, | ||
461 | LCDRD_MARK, SCIF0_SCK_MARK, | ||
462 | |||
463 | /*PTN*/ | ||
464 | VIO0_D1_MARK, | ||
465 | VIO0_D0_MARK, | ||
466 | DV_CLKI_MARK, | ||
467 | DV_CLK_MARK, SCIF2_V_SCK_MARK, | ||
468 | DV_VSYNC_MARK, SCIF2_V_RXD_MARK, | ||
469 | DV_HSYNC_MARK, SCIF2_V_TXD_MARK, | ||
470 | DV_D7_MARK, SCIF3_V_CTS_MARK, RMII_RX_ER_MARK, | ||
471 | DV_D6_MARK, SCIF3_V_RTS_MARK, RMII_CRS_DV_MARK, | ||
472 | |||
473 | /*PTQ*/ | ||
474 | D7_MARK, | ||
475 | D6_MARK, | ||
476 | D5_MARK, | ||
477 | D4_MARK, | ||
478 | D3_MARK, | ||
479 | D2_MARK, | ||
480 | D1_MARK, | ||
481 | D0_MARK, | ||
482 | |||
483 | /*PTR*/ | ||
484 | CS6B_CE1B_MARK, | ||
485 | CS6A_CE2B_MARK, | ||
486 | CS5B_CE1A_MARK, | ||
487 | CS5A_CE2A_MARK, | ||
488 | IOIS16_MARK, LCDLCLK_MARK, | ||
489 | WAIT_MARK, | ||
490 | WE3_ICIOWR_MARK, TPUTO3_MARK, TPUTI3_MARK, | ||
491 | WE2_ICIORD_MARK, TPUTO2_MARK, IDEA2_MARK, | ||
492 | |||
493 | /*PTS*/ | ||
494 | VIO_CKO_MARK, | ||
495 | VIO1_FLD_MARK, TPUTI2_MARK, IDEIORDY_MARK, | ||
496 | VIO1_HD_MARK, SCIF5_SCK_MARK, | ||
497 | VIO1_VD_MARK, SCIF5_RXD_MARK, | ||
498 | VIO1_CLK_MARK, SCIF5_TXD_MARK, | ||
499 | VIO1_D7_MARK, VIO0_D15_MARK, IDED7_MARK, | ||
500 | VIO1_D6_MARK, VIO0_D14_MARK, IDED6_MARK, | ||
501 | |||
502 | /*PTT*/ | ||
503 | D15_MARK, | ||
504 | D14_MARK, | ||
505 | D13_MARK, | ||
506 | D12_MARK, | ||
507 | D11_MARK, | ||
508 | D10_MARK, | ||
509 | D9_MARK, | ||
510 | D8_MARK, | ||
511 | |||
512 | /*PTU*/ | ||
513 | DMAC_DACK0_MARK, | ||
514 | DMAC_DREQ0_MARK, | ||
515 | FSIOASD_MARK, | ||
516 | FSIIABCK_MARK, | ||
517 | FSIIALRCK_MARK, | ||
518 | FSIOABCK_MARK, | ||
519 | FSIOALRCK_MARK, | ||
520 | CLKAUDIOAO_MARK, | ||
521 | |||
522 | /*PTV*/ | ||
523 | FSIIBSD_MARK, MSIOF1_SS2_MARK, MSIOF1_RSYNC_MARK, | ||
524 | FSIOBSD_MARK, MSIOF1_SS1_MARK, MSIOF1_RSCK_MARK, | ||
525 | FSIIBBCK_MARK, MSIOF1_RXD_MARK, | ||
526 | FSIIBLRCK_MARK, MSIOF1_TSYNC_MARK, | ||
527 | FSIOBBCK_MARK, MSIOF1_TSCK_MARK, | ||
528 | FSIOBLRCK_MARK, MSIOF1_TXD_MARK, | ||
529 | CLKAUDIOBO_MARK, MSIOF1_MCK_MARK, | ||
530 | FSIIASD_MARK, | ||
531 | |||
532 | /*PTW*/ | ||
533 | MMC_D7_MARK, SDHI1CD_MARK, IODACK_MARK, | ||
534 | MMC_D6_MARK, SDHI1WP_MARK, IDERST_MARK, | ||
535 | MMC_D5_MARK, SDHI1D3_MARK, EXBUF_ENB_MARK, | ||
536 | MMC_D4_MARK, SDHI1D2_MARK, DIRECTION_MARK, | ||
537 | MMC_D3_MARK, SDHI1D1_MARK, | ||
538 | MMC_D2_MARK, SDHI1D0_MARK, | ||
539 | MMC_D1_MARK, SDHI1CMD_MARK, | ||
540 | MMC_D0_MARK, SDHI1CLK_MARK, | ||
541 | |||
542 | /*PTX*/ | ||
543 | DMAC_DACK1_MARK, IRDA_OUT_MARK, | ||
544 | DMAC_DREQ1_MARK, IRDA_IN_MARK, | ||
545 | TSIF_TS0_SDAT_MARK, LNKSTA_MARK, | ||
546 | TSIF_TS0_SCK_MARK, MDIO_MARK, | ||
547 | TSIF_TS0_SDEN_MARK, MDC_MARK, | ||
548 | TSIF_TS0_SPSYNC_MARK, | ||
549 | MMC_CLK_MARK, | ||
550 | MMC_CMD_MARK, | ||
551 | |||
552 | /*PTY*/ | ||
553 | SDHI0CD_MARK, | ||
554 | SDHI0WP_MARK, | ||
555 | SDHI0D3_MARK, | ||
556 | SDHI0D2_MARK, | ||
557 | SDHI0D1_MARK, | ||
558 | SDHI0D0_MARK, | ||
559 | SDHI0CMD_MARK, | ||
560 | SDHI0CLK_MARK, | ||
561 | |||
562 | /*PTZ*/ | ||
563 | INTC_IRQ7_MARK, SCIF3_I_CTS_MARK, | ||
564 | INTC_IRQ6_MARK, SCIF3_I_RTS_MARK, | ||
565 | INTC_IRQ5_MARK, SCIF3_I_SCK_MARK, | ||
566 | INTC_IRQ4_MARK, SCIF3_I_RXD_MARK, | ||
567 | INTC_IRQ3_MARK, SCIF3_I_TXD_MARK, | ||
568 | INTC_IRQ2_MARK, | ||
569 | INTC_IRQ1_MARK, | ||
570 | INTC_IRQ0_MARK, | ||
571 | PINMUX_MARK_END, | ||
572 | }; | ||
573 | |||
574 | static pinmux_enum_t pinmux_data[] = { | ||
575 | /* PTA GPIO */ | ||
576 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT, PTA7_IN_PU), | ||
577 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT, PTA6_IN_PU), | ||
578 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT, PTA5_IN_PU), | ||
579 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT, PTA4_IN_PU), | ||
580 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT, PTA3_IN_PU), | ||
581 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT, PTA2_IN_PU), | ||
582 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT, PTA1_IN_PU), | ||
583 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT, PTA0_IN_PU), | ||
584 | |||
585 | /* PTB GPIO */ | ||
586 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT, PTB7_IN_PU), | ||
587 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT, PTB6_IN_PU), | ||
588 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT, PTB5_IN_PU), | ||
589 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT, PTB4_IN_PU), | ||
590 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT, PTB3_IN_PU), | ||
591 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT, PTB2_IN_PU), | ||
592 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT, PTB1_IN_PU), | ||
593 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT, PTB0_IN_PU), | ||
594 | |||
595 | /* PTC GPIO */ | ||
596 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT, PTC7_IN_PU), | ||
597 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT, PTC6_IN_PU), | ||
598 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT, PTC5_IN_PU), | ||
599 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT, PTC4_IN_PU), | ||
600 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT, PTC3_IN_PU), | ||
601 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT, PTC2_IN_PU), | ||
602 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT, PTC1_IN_PU), | ||
603 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT, PTC0_IN_PU), | ||
604 | |||
605 | /* PTD GPIO */ | ||
606 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT, PTD7_IN_PU), | ||
607 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT, PTD6_IN_PU), | ||
608 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT, PTD5_IN_PU), | ||
609 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT, PTD4_IN_PU), | ||
610 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT, PTD3_IN_PU), | ||
611 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT, PTD2_IN_PU), | ||
612 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT, PTD1_IN_PU), | ||
613 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT, PTD0_IN_PU), | ||
614 | |||
615 | /* PTE GPIO */ | ||
616 | PINMUX_DATA(PTE7_DATA, PTE7_IN, PTE7_OUT, PTE7_IN_PU), | ||
617 | PINMUX_DATA(PTE6_DATA, PTE6_IN, PTE6_OUT, PTE6_IN_PU), | ||
618 | PINMUX_DATA(PTE5_DATA, PTE5_IN, PTE5_OUT, PTE5_IN_PU), | ||
619 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT, PTE4_IN_PU), | ||
620 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT, PTE3_IN_PU), | ||
621 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT, PTE2_IN_PU), | ||
622 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT, PTE1_IN_PU), | ||
623 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT, PTE0_IN_PU), | ||
624 | |||
625 | /* PTF GPIO */ | ||
626 | PINMUX_DATA(PTF7_DATA, PTF7_IN, PTF7_OUT, PTF7_IN_PU), | ||
627 | PINMUX_DATA(PTF6_DATA, PTF6_IN, PTF6_OUT, PTF6_IN_PU), | ||
628 | PINMUX_DATA(PTF5_DATA, PTF5_IN, PTF5_OUT, PTF5_IN_PU), | ||
629 | PINMUX_DATA(PTF4_DATA, PTF4_IN, PTF4_OUT, PTF4_IN_PU), | ||
630 | PINMUX_DATA(PTF3_DATA, PTF3_IN, PTF3_OUT, PTF3_IN_PU), | ||
631 | PINMUX_DATA(PTF2_DATA, PTF2_IN, PTF2_OUT, PTF2_IN_PU), | ||
632 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_OUT, PTF1_IN_PU), | ||
633 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT, PTF0_IN_PU), | ||
634 | |||
635 | /* PTG GPIO */ | ||
636 | PINMUX_DATA(PTG5_DATA, PTG5_OUT), | ||
637 | PINMUX_DATA(PTG4_DATA, PTG4_OUT), | ||
638 | PINMUX_DATA(PTG3_DATA, PTG3_OUT), | ||
639 | PINMUX_DATA(PTG2_DATA, PTG2_OUT), | ||
640 | PINMUX_DATA(PTG1_DATA, PTG1_OUT), | ||
641 | PINMUX_DATA(PTG0_DATA, PTG0_OUT), | ||
642 | |||
643 | /* PTH GPIO */ | ||
644 | PINMUX_DATA(PTH7_DATA, PTH7_IN, PTH7_OUT, PTH7_IN_PU), | ||
645 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT, PTH6_IN_PU), | ||
646 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT, PTH5_IN_PU), | ||
647 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT, PTH4_IN_PU), | ||
648 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT, PTH3_IN_PU), | ||
649 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT, PTH2_IN_PU), | ||
650 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT, PTH1_IN_PU), | ||
651 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT, PTH0_IN_PU), | ||
652 | |||
653 | /* PTJ GPIO */ | ||
654 | PINMUX_DATA(PTJ7_DATA, PTJ7_OUT), | ||
655 | PINMUX_DATA(PTJ6_DATA, PTJ6_OUT), | ||
656 | PINMUX_DATA(PTJ5_DATA, PTJ5_OUT), | ||
657 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT, PTJ3_IN_PU), | ||
658 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT, PTJ2_IN_PU), | ||
659 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT, PTJ1_IN_PU), | ||
660 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT, PTJ0_IN_PU), | ||
661 | |||
662 | /* PTK GPIO */ | ||
663 | PINMUX_DATA(PTK7_DATA, PTK7_IN, PTK7_OUT, PTK7_IN_PU), | ||
664 | PINMUX_DATA(PTK6_DATA, PTK6_IN, PTK6_OUT, PTK6_IN_PU), | ||
665 | PINMUX_DATA(PTK5_DATA, PTK5_IN, PTK5_OUT, PTK5_IN_PU), | ||
666 | PINMUX_DATA(PTK4_DATA, PTK4_IN, PTK4_OUT, PTK4_IN_PU), | ||
667 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT, PTK3_IN_PU), | ||
668 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT, PTK2_IN_PU), | ||
669 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT, PTK1_IN_PU), | ||
670 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT, PTK0_IN_PU), | ||
671 | |||
672 | /* PTL GPIO */ | ||
673 | PINMUX_DATA(PTL7_DATA, PTL7_IN, PTL7_OUT, PTL7_IN_PU), | ||
674 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT, PTL6_IN_PU), | ||
675 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT, PTL5_IN_PU), | ||
676 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT, PTL4_IN_PU), | ||
677 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT, PTL3_IN_PU), | ||
678 | PINMUX_DATA(PTL2_DATA, PTL2_IN, PTL2_OUT, PTL2_IN_PU), | ||
679 | PINMUX_DATA(PTL1_DATA, PTL1_IN, PTL1_OUT, PTL1_IN_PU), | ||
680 | PINMUX_DATA(PTL0_DATA, PTL0_IN, PTL0_OUT, PTL0_IN_PU), | ||
681 | |||
682 | /* PTM GPIO */ | ||
683 | PINMUX_DATA(PTM7_DATA, PTM7_IN, PTM7_OUT, PTM7_IN_PU), | ||
684 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT, PTM6_IN_PU), | ||
685 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT, PTM5_IN_PU), | ||
686 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT, PTM4_IN_PU), | ||
687 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT, PTM3_IN_PU), | ||
688 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT, PTM2_IN_PU), | ||
689 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT, PTM1_IN_PU), | ||
690 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT, PTM0_IN_PU), | ||
691 | |||
692 | /* PTN GPIO */ | ||
693 | PINMUX_DATA(PTN7_DATA, PTN7_IN, PTN7_OUT, PTN7_IN_PU), | ||
694 | PINMUX_DATA(PTN6_DATA, PTN6_IN, PTN6_OUT, PTN6_IN_PU), | ||
695 | PINMUX_DATA(PTN5_DATA, PTN5_IN, PTN5_OUT, PTN5_IN_PU), | ||
696 | PINMUX_DATA(PTN4_DATA, PTN4_IN, PTN4_OUT, PTN4_IN_PU), | ||
697 | PINMUX_DATA(PTN3_DATA, PTN3_IN, PTN3_OUT, PTN3_IN_PU), | ||
698 | PINMUX_DATA(PTN2_DATA, PTN2_IN, PTN2_OUT, PTN2_IN_PU), | ||
699 | PINMUX_DATA(PTN1_DATA, PTN1_IN, PTN1_OUT, PTN1_IN_PU), | ||
700 | PINMUX_DATA(PTN0_DATA, PTN0_IN, PTN0_OUT, PTN0_IN_PU), | ||
701 | |||
702 | /* PTQ GPIO */ | ||
703 | PINMUX_DATA(PTQ7_DATA, PTQ7_IN, PTQ7_OUT, PTQ7_IN_PU), | ||
704 | PINMUX_DATA(PTQ6_DATA, PTQ6_IN, PTQ6_OUT, PTQ6_IN_PU), | ||
705 | PINMUX_DATA(PTQ5_DATA, PTQ5_IN, PTQ5_OUT, PTQ5_IN_PU), | ||
706 | PINMUX_DATA(PTQ4_DATA, PTQ4_IN, PTQ4_OUT, PTQ4_IN_PU), | ||
707 | PINMUX_DATA(PTQ3_DATA, PTQ3_IN, PTQ3_OUT, PTQ3_IN_PU), | ||
708 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN, PTQ2_OUT, PTQ2_IN_PU), | ||
709 | PINMUX_DATA(PTQ1_DATA, PTQ1_IN, PTQ1_OUT, PTQ1_IN_PU), | ||
710 | PINMUX_DATA(PTQ0_DATA, PTQ0_IN, PTQ0_OUT, PTQ0_IN_PU), | ||
711 | |||
712 | /* PTR GPIO */ | ||
713 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT, PTR7_IN_PU), | ||
714 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT, PTR6_IN_PU), | ||
715 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT, PTR5_IN_PU), | ||
716 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT, PTR4_IN_PU), | ||
717 | PINMUX_DATA(PTR3_DATA, PTR3_IN, PTR3_IN_PU), | ||
718 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_IN_PU), | ||
719 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT, PTR1_IN_PU), | ||
720 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT, PTR0_IN_PU), | ||
721 | |||
722 | /* PTS GPIO */ | ||
723 | PINMUX_DATA(PTS6_DATA, PTS6_IN, PTS6_OUT, PTS6_IN_PU), | ||
724 | PINMUX_DATA(PTS5_DATA, PTS5_IN, PTS5_OUT, PTS5_IN_PU), | ||
725 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT, PTS4_IN_PU), | ||
726 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT, PTS3_IN_PU), | ||
727 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT, PTS2_IN_PU), | ||
728 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT, PTS1_IN_PU), | ||
729 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT, PTS0_IN_PU), | ||
730 | |||
731 | /* PTT GPIO */ | ||
732 | PINMUX_DATA(PTT7_DATA, PTT7_IN, PTT7_OUT, PTT7_IN_PU), | ||
733 | PINMUX_DATA(PTT6_DATA, PTT6_IN, PTT6_OUT, PTT6_IN_PU), | ||
734 | PINMUX_DATA(PTT5_DATA, PTT5_IN, PTT5_OUT, PTT5_IN_PU), | ||
735 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT, PTT4_IN_PU), | ||
736 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT, PTT3_IN_PU), | ||
737 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT, PTT2_IN_PU), | ||
738 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT, PTT1_IN_PU), | ||
739 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT, PTT0_IN_PU), | ||
740 | |||
741 | /* PTU GPIO */ | ||
742 | PINMUX_DATA(PTU7_DATA, PTU7_IN, PTU7_OUT, PTU7_IN_PU), | ||
743 | PINMUX_DATA(PTU6_DATA, PTU6_IN, PTU6_OUT, PTU6_IN_PU), | ||
744 | PINMUX_DATA(PTU5_DATA, PTU5_IN, PTU5_OUT, PTU5_IN_PU), | ||
745 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT, PTU4_IN_PU), | ||
746 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT, PTU3_IN_PU), | ||
747 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT, PTU2_IN_PU), | ||
748 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT, PTU1_IN_PU), | ||
749 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT, PTU0_IN_PU), | ||
750 | |||
751 | /* PTV GPIO */ | ||
752 | PINMUX_DATA(PTV7_DATA, PTV7_IN, PTV7_OUT, PTV7_IN_PU), | ||
753 | PINMUX_DATA(PTV6_DATA, PTV6_IN, PTV6_OUT, PTV6_IN_PU), | ||
754 | PINMUX_DATA(PTV5_DATA, PTV5_IN, PTV5_OUT, PTV5_IN_PU), | ||
755 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT, PTV4_IN_PU), | ||
756 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT, PTV3_IN_PU), | ||
757 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT, PTV2_IN_PU), | ||
758 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT, PTV1_IN_PU), | ||
759 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT, PTV0_IN_PU), | ||
760 | |||
761 | /* PTW GPIO */ | ||
762 | PINMUX_DATA(PTW7_DATA, PTW7_IN, PTW7_OUT, PTW7_IN_PU), | ||
763 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_OUT, PTW6_IN_PU), | ||
764 | PINMUX_DATA(PTW5_DATA, PTW5_IN, PTW5_OUT, PTW5_IN_PU), | ||
765 | PINMUX_DATA(PTW4_DATA, PTW4_IN, PTW4_OUT, PTW4_IN_PU), | ||
766 | PINMUX_DATA(PTW3_DATA, PTW3_IN, PTW3_OUT, PTW3_IN_PU), | ||
767 | PINMUX_DATA(PTW2_DATA, PTW2_IN, PTW2_OUT, PTW2_IN_PU), | ||
768 | PINMUX_DATA(PTW1_DATA, PTW1_IN, PTW1_OUT, PTW1_IN_PU), | ||
769 | PINMUX_DATA(PTW0_DATA, PTW0_IN, PTW0_OUT, PTW0_IN_PU), | ||
770 | |||
771 | /* PTX GPIO */ | ||
772 | PINMUX_DATA(PTX7_DATA, PTX7_IN, PTX7_OUT, PTX7_IN_PU), | ||
773 | PINMUX_DATA(PTX6_DATA, PTX6_IN, PTX6_OUT, PTX6_IN_PU), | ||
774 | PINMUX_DATA(PTX5_DATA, PTX5_IN, PTX5_OUT, PTX5_IN_PU), | ||
775 | PINMUX_DATA(PTX4_DATA, PTX4_IN, PTX4_OUT, PTX4_IN_PU), | ||
776 | PINMUX_DATA(PTX3_DATA, PTX3_IN, PTX3_OUT, PTX3_IN_PU), | ||
777 | PINMUX_DATA(PTX2_DATA, PTX2_IN, PTX2_OUT, PTX2_IN_PU), | ||
778 | PINMUX_DATA(PTX1_DATA, PTX1_IN, PTX1_OUT, PTX1_IN_PU), | ||
779 | PINMUX_DATA(PTX0_DATA, PTX0_IN, PTX0_OUT, PTX0_IN_PU), | ||
780 | |||
781 | /* PTY GPIO */ | ||
782 | PINMUX_DATA(PTY7_DATA, PTY7_IN, PTY7_OUT, PTY7_IN_PU), | ||
783 | PINMUX_DATA(PTY6_DATA, PTY6_IN, PTY6_OUT, PTY6_IN_PU), | ||
784 | PINMUX_DATA(PTY5_DATA, PTY5_IN, PTY5_OUT, PTY5_IN_PU), | ||
785 | PINMUX_DATA(PTY4_DATA, PTY4_IN, PTY4_OUT, PTY4_IN_PU), | ||
786 | PINMUX_DATA(PTY3_DATA, PTY3_IN, PTY3_OUT, PTY3_IN_PU), | ||
787 | PINMUX_DATA(PTY2_DATA, PTY2_IN, PTY2_OUT, PTY2_IN_PU), | ||
788 | PINMUX_DATA(PTY1_DATA, PTY1_IN, PTY1_OUT, PTY1_IN_PU), | ||
789 | PINMUX_DATA(PTY0_DATA, PTY0_IN, PTY0_OUT, PTY0_IN_PU), | ||
790 | |||
791 | /* PTZ GPIO */ | ||
792 | PINMUX_DATA(PTZ7_DATA, PTZ7_IN, PTZ7_OUT, PTZ7_IN_PU), | ||
793 | PINMUX_DATA(PTZ6_DATA, PTZ6_IN, PTZ6_OUT, PTZ6_IN_PU), | ||
794 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_OUT, PTZ5_IN_PU), | ||
795 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_OUT, PTZ4_IN_PU), | ||
796 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_OUT, PTZ3_IN_PU), | ||
797 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_OUT, PTZ2_IN_PU), | ||
798 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_OUT, PTZ1_IN_PU), | ||
799 | PINMUX_DATA(PTZ0_DATA, PTZ0_IN, PTZ0_OUT, PTZ0_IN_PU), | ||
800 | |||
801 | /* PTA FN */ | ||
802 | PINMUX_DATA(D23_MARK, PSA15_0, PSA14_0, PTA7_FN), | ||
803 | PINMUX_DATA(D22_MARK, PSA15_0, PSA14_0, PTA6_FN), | ||
804 | PINMUX_DATA(D21_MARK, PSA15_0, PSA14_0, PTA5_FN), | ||
805 | PINMUX_DATA(D20_MARK, PSA15_0, PSA14_0, PTA4_FN), | ||
806 | PINMUX_DATA(D19_MARK, PSA15_0, PSA14_0, PTA3_FN), | ||
807 | PINMUX_DATA(D18_MARK, PSA15_0, PSA14_0, PTA2_FN), | ||
808 | PINMUX_DATA(D17_MARK, PSA15_0, PSA14_0, PTA1_FN), | ||
809 | PINMUX_DATA(D16_MARK, PSA15_0, PSA14_0, PTA0_FN), | ||
810 | |||
811 | PINMUX_DATA(KEYOUT2_MARK, PSA15_0, PSA14_1, PTA7_FN), | ||
812 | PINMUX_DATA(KEYOUT1_MARK, PSA15_0, PSA14_1, PTA6_FN), | ||
813 | PINMUX_DATA(KEYOUT0_MARK, PSA15_0, PSA14_1, PTA5_FN), | ||
814 | PINMUX_DATA(KEYIN4_MARK, PSA15_0, PSA14_1, PTA4_FN), | ||
815 | PINMUX_DATA(KEYIN3_MARK, PSA15_0, PSA14_1, PTA3_FN), | ||
816 | PINMUX_DATA(KEYIN2_MARK, PSA15_0, PSA14_1, PTA2_FN), | ||
817 | PINMUX_DATA(KEYIN1_MARK, PSA15_0, PSA14_1, PTA1_FN), | ||
818 | PINMUX_DATA(KEYIN0_MARK, PSA15_0, PSA14_1, PTA0_FN), | ||
819 | |||
820 | PINMUX_DATA(IDED15_MARK, PSA15_1, PSA14_0, PTA7_FN), | ||
821 | PINMUX_DATA(IDED14_MARK, PSA15_1, PSA14_0, PTA6_FN), | ||
822 | PINMUX_DATA(IDED13_MARK, PSA15_1, PSA14_0, PTA5_FN), | ||
823 | PINMUX_DATA(IDED12_MARK, PSA15_1, PSA14_0, PTA4_FN), | ||
824 | PINMUX_DATA(IDED11_MARK, PSA15_1, PSA14_0, PTA3_FN), | ||
825 | PINMUX_DATA(IDED10_MARK, PSA15_1, PSA14_0, PTA2_FN), | ||
826 | PINMUX_DATA(IDED9_MARK, PSA15_1, PSA14_0, PTA1_FN), | ||
827 | PINMUX_DATA(IDED8_MARK, PSA15_1, PSA14_0, PTA0_FN), | ||
828 | |||
829 | /* PTB FN */ | ||
830 | PINMUX_DATA(D31_MARK, PSE15_0, PSE14_0, PTB7_FN), | ||
831 | PINMUX_DATA(D30_MARK, PSE15_0, PSE14_0, PTB6_FN), | ||
832 | PINMUX_DATA(D29_MARK, PSE11_0, PTB5_FN), | ||
833 | PINMUX_DATA(D28_MARK, PSE11_0, PTB4_FN), | ||
834 | PINMUX_DATA(D27_MARK, PSE11_0, PTB3_FN), | ||
835 | PINMUX_DATA(D26_MARK, PSA15_0, PSA14_0, PTB2_FN), | ||
836 | PINMUX_DATA(D25_MARK, PSA15_0, PSA14_0, PTB1_FN), | ||
837 | PINMUX_DATA(D24_MARK, PSA15_0, PSA14_0, PTB0_FN), | ||
838 | |||
839 | PINMUX_DATA(IDEA1_MARK, PSE15_1, PSE14_0, PTB7_FN), | ||
840 | PINMUX_DATA(IDEA0_MARK, PSE15_1, PSE14_0, PTB6_FN), | ||
841 | PINMUX_DATA(IODREQ_MARK, PSE11_1, PTB5_FN), | ||
842 | PINMUX_DATA(IDECS0_MARK, PSE11_1, PTB4_FN), | ||
843 | PINMUX_DATA(IDECS1_MARK, PSE11_1, PTB3_FN), | ||
844 | PINMUX_DATA(IDEIORD_MARK, PSA15_1, PSA14_0, PTB2_FN), | ||
845 | PINMUX_DATA(IDEIOWR_MARK, PSA15_1, PSA14_0, PTB1_FN), | ||
846 | PINMUX_DATA(IDEINT_MARK, PSA15_1, PSA14_0, PTB0_FN), | ||
847 | |||
848 | PINMUX_DATA(TPUTO1_MARK, PSE15_0, PSE14_1, PTB7_FN), | ||
849 | PINMUX_DATA(TPUTO0_MARK, PSE15_0, PSE14_1, PTB6_FN), | ||
850 | |||
851 | PINMUX_DATA(KEYOUT5_IN5_MARK, PSA15_0, PSA14_1, PTB2_FN), | ||
852 | PINMUX_DATA(KEYOUT4_IN6_MARK, PSA15_0, PSA14_1, PTB1_FN), | ||
853 | PINMUX_DATA(KEYOUT3_MARK, PSA15_0, PSA14_1, PTB0_FN), | ||
854 | |||
855 | /* PTC FN */ | ||
856 | PINMUX_DATA(LCDD7_MARK, PSD5_0, PTC7_FN), | ||
857 | PINMUX_DATA(LCDD6_MARK, PSD5_0, PTC6_FN), | ||
858 | PINMUX_DATA(LCDD5_MARK, PSD5_0, PTC5_FN), | ||
859 | PINMUX_DATA(LCDD4_MARK, PSD5_0, PTC4_FN), | ||
860 | PINMUX_DATA(LCDD3_MARK, PSD5_0, PTC3_FN), | ||
861 | PINMUX_DATA(LCDD2_MARK, PSD5_0, PTC2_FN), | ||
862 | PINMUX_DATA(LCDD1_MARK, PSD5_0, PTC1_FN), | ||
863 | PINMUX_DATA(LCDD0_MARK, PSD5_0, PTC0_FN), | ||
864 | |||
865 | /* PTD FN */ | ||
866 | PINMUX_DATA(LCDD15_MARK, PSD5_0, PTD7_FN), | ||
867 | PINMUX_DATA(LCDD14_MARK, PSD5_0, PTD6_FN), | ||
868 | PINMUX_DATA(LCDD13_MARK, PSD5_0, PTD5_FN), | ||
869 | PINMUX_DATA(LCDD12_MARK, PSD5_0, PTD4_FN), | ||
870 | PINMUX_DATA(LCDD11_MARK, PSD5_0, PTD3_FN), | ||
871 | PINMUX_DATA(LCDD10_MARK, PSD5_0, PTD2_FN), | ||
872 | PINMUX_DATA(LCDD9_MARK, PSD5_0, PTD1_FN), | ||
873 | PINMUX_DATA(LCDD8_MARK, PSD5_0, PTD0_FN), | ||
874 | |||
875 | /* PTE FN */ | ||
876 | PINMUX_DATA(FSIMCKB_MARK, PTE7_FN), | ||
877 | PINMUX_DATA(FSIMCKA_MARK, PTE6_FN), | ||
878 | |||
879 | PINMUX_DATA(LCDD21_MARK, PSC5_0, PSC4_0, PTE5_FN), | ||
880 | PINMUX_DATA(LCDD20_MARK, PSD3_0, PSD2_0, PTE4_FN), | ||
881 | PINMUX_DATA(LCDD19_MARK, PSA3_0, PSA2_0, PTE3_FN), | ||
882 | PINMUX_DATA(LCDD18_MARK, PSA3_0, PSA2_0, PTE2_FN), | ||
883 | PINMUX_DATA(LCDD17_MARK, PSD5_0, PTE1_FN), | ||
884 | PINMUX_DATA(LCDD16_MARK, PSD5_0, PTE0_FN), | ||
885 | |||
886 | PINMUX_DATA(SCIF2_L_TXD_MARK, PSC5_0, PSC4_1, PTE5_FN), | ||
887 | PINMUX_DATA(SCIF4_SCK_MARK, PSD3_0, PSD2_1, PTE4_FN), | ||
888 | PINMUX_DATA(SCIF4_RXD_MARK, PSA3_0, PSA2_1, PTE3_FN), | ||
889 | PINMUX_DATA(SCIF4_TXD_MARK, PSA3_0, PSA2_1, PTE2_FN), | ||
890 | |||
891 | /* PTF FN */ | ||
892 | PINMUX_DATA(LCDVSYN_MARK, PSD8_0, PTF7_FN), | ||
893 | PINMUX_DATA(LCDDISP_MARK, PSD10_0, PSD9_0, PTF6_FN), | ||
894 | PINMUX_DATA(LCDHSYN_MARK, PSD10_0, PSD9_0, PTF5_FN), | ||
895 | PINMUX_DATA(LCDDON_MARK, PSD8_0, PTF4_FN), | ||
896 | PINMUX_DATA(LCDDCK_MARK, PSD10_0, PSD9_0, PTF3_FN), | ||
897 | PINMUX_DATA(LCDVEPWC_MARK, PSA6_0, PTF2_FN), | ||
898 | PINMUX_DATA(LCDD23_MARK, PSC7_0, PSC6_0, PTF1_FN), | ||
899 | PINMUX_DATA(LCDD22_MARK, PSC5_0, PSC4_0, PTF0_FN), | ||
900 | |||
901 | PINMUX_DATA(LCDRS_MARK, PSD10_0, PSD9_1, PTF6_FN), | ||
902 | PINMUX_DATA(LCDCS_MARK, PSD10_0, PSD9_1, PTF5_FN), | ||
903 | PINMUX_DATA(LCDWR_MARK, PSD10_0, PSD9_1, PTF3_FN), | ||
904 | |||
905 | PINMUX_DATA(SCIF0_TXD_MARK, PSA6_1, PTF2_FN), | ||
906 | PINMUX_DATA(SCIF2_L_SCK_MARK, PSC7_0, PSC6_1, PTF1_FN), | ||
907 | PINMUX_DATA(SCIF2_L_RXD_MARK, PSC5_0, PSC4_1, PTF0_FN), | ||
908 | |||
909 | /* PTG FN */ | ||
910 | PINMUX_DATA(AUDCK_MARK, PTG5_FN), | ||
911 | PINMUX_DATA(AUDSYNC_MARK, PTG4_FN), | ||
912 | PINMUX_DATA(AUDATA3_MARK, PTG3_FN), | ||
913 | PINMUX_DATA(AUDATA2_MARK, PTG2_FN), | ||
914 | PINMUX_DATA(AUDATA1_MARK, PTG1_FN), | ||
915 | PINMUX_DATA(AUDATA0_MARK, PTG0_FN), | ||
916 | |||
917 | /* PTH FN */ | ||
918 | PINMUX_DATA(VIO0_VD_MARK, PTH7_FN), | ||
919 | PINMUX_DATA(VIO0_CLK_MARK, PTH6_FN), | ||
920 | PINMUX_DATA(VIO0_D7_MARK, PTH5_FN), | ||
921 | PINMUX_DATA(VIO0_D6_MARK, PTH4_FN), | ||
922 | PINMUX_DATA(VIO0_D5_MARK, PTH3_FN), | ||
923 | PINMUX_DATA(VIO0_D4_MARK, PTH2_FN), | ||
924 | PINMUX_DATA(VIO0_D3_MARK, PTH1_FN), | ||
925 | PINMUX_DATA(VIO0_D2_MARK, PTH0_FN), | ||
926 | |||
927 | /* PTJ FN */ | ||
928 | PINMUX_DATA(PDSTATUS_MARK, PTJ7_FN), | ||
929 | PINMUX_DATA(STATUS2_MARK, PTJ6_FN), | ||
930 | PINMUX_DATA(STATUS0_MARK, PTJ5_FN), | ||
931 | PINMUX_DATA(A25_MARK, PSA8_0, PTJ3_FN), | ||
932 | PINMUX_DATA(BS_MARK, PSA8_1, PTJ3_FN), | ||
933 | PINMUX_DATA(A24_MARK, PTJ2_FN), | ||
934 | PINMUX_DATA(A23_MARK, PTJ1_FN), | ||
935 | PINMUX_DATA(A22_MARK, PTJ0_FN), | ||
936 | |||
937 | /* PTK FN */ | ||
938 | PINMUX_DATA(VIO1_D5_MARK, PSB7_0, PSB6_0, PTK7_FN), | ||
939 | PINMUX_DATA(VIO1_D4_MARK, PSB7_0, PSB6_0, PTK6_FN), | ||
940 | PINMUX_DATA(VIO1_D3_MARK, PSB7_0, PSB6_0, PTK5_FN), | ||
941 | PINMUX_DATA(VIO1_D2_MARK, PSB7_0, PSB6_0, PTK4_FN), | ||
942 | PINMUX_DATA(VIO1_D1_MARK, PSB7_0, PSB6_0, PTK3_FN), | ||
943 | PINMUX_DATA(VIO1_D0_MARK, PSB7_0, PSB6_0, PTK2_FN), | ||
944 | |||
945 | PINMUX_DATA(VIO0_D13_MARK, PSB7_0, PSB6_1, PTK7_FN), | ||
946 | PINMUX_DATA(VIO0_D12_MARK, PSB7_0, PSB6_1, PTK6_FN), | ||
947 | PINMUX_DATA(VIO0_D11_MARK, PSB7_0, PSB6_1, PTK5_FN), | ||
948 | PINMUX_DATA(VIO0_D10_MARK, PSB7_0, PSB6_1, PTK4_FN), | ||
949 | PINMUX_DATA(VIO0_D9_MARK, PSB7_0, PSB6_1, PTK3_FN), | ||
950 | PINMUX_DATA(VIO0_D8_MARK, PSB7_0, PSB6_1, PTK2_FN), | ||
951 | |||
952 | PINMUX_DATA(IDED5_MARK, PSB7_1, PSB6_0, PTK7_FN), | ||
953 | PINMUX_DATA(IDED4_MARK, PSB7_1, PSB6_0, PTK6_FN), | ||
954 | PINMUX_DATA(IDED3_MARK, PSB7_1, PSB6_0, PTK5_FN), | ||
955 | PINMUX_DATA(IDED2_MARK, PSB7_1, PSB6_0, PTK4_FN), | ||
956 | PINMUX_DATA(IDED1_MARK, PSB7_1, PSB6_0, PTK3_FN), | ||
957 | PINMUX_DATA(IDED0_MARK, PSB7_1, PSB6_0, PTK2_FN), | ||
958 | |||
959 | PINMUX_DATA(VIO0_FLD_MARK, PTK1_FN), | ||
960 | PINMUX_DATA(VIO0_HD_MARK, PTK0_FN), | ||
961 | |||
962 | /* PTL FN */ | ||
963 | PINMUX_DATA(DV_D5_MARK, PSB9_0, PSB8_0, PTL7_FN), | ||
964 | PINMUX_DATA(DV_D4_MARK, PSB9_0, PSB8_0, PTL6_FN), | ||
965 | PINMUX_DATA(DV_D3_MARK, PSE7_0, PSE6_0, PTL5_FN), | ||
966 | PINMUX_DATA(DV_D2_MARK, PSC9_0, PSC8_0, PTL4_FN), | ||
967 | PINMUX_DATA(DV_D1_MARK, PSC9_0, PSC8_0, PTL3_FN), | ||
968 | PINMUX_DATA(DV_D0_MARK, PSC9_0, PSC8_0, PTL2_FN), | ||
969 | PINMUX_DATA(DV_D15_MARK, PSD4_0, PTL1_FN), | ||
970 | PINMUX_DATA(DV_D14_MARK, PSE5_0, PSE4_0, PTL0_FN), | ||
971 | |||
972 | PINMUX_DATA(SCIF3_V_SCK_MARK, PSB9_0, PSB8_1, PTL7_FN), | ||
973 | PINMUX_DATA(SCIF3_V_RXD_MARK, PSB9_0, PSB8_1, PTL6_FN), | ||
974 | PINMUX_DATA(SCIF3_V_TXD_MARK, PSE7_0, PSE6_1, PTL5_FN), | ||
975 | PINMUX_DATA(SCIF1_SCK_MARK, PSC9_0, PSC8_1, PTL4_FN), | ||
976 | PINMUX_DATA(SCIF1_RXD_MARK, PSC9_0, PSC8_1, PTL3_FN), | ||
977 | PINMUX_DATA(SCIF1_TXD_MARK, PSC9_0, PSC8_1, PTL2_FN), | ||
978 | |||
979 | PINMUX_DATA(RMII_RXD0_MARK, PSB9_1, PSB8_0, PTL7_FN), | ||
980 | PINMUX_DATA(RMII_RXD1_MARK, PSB9_1, PSB8_0, PTL6_FN), | ||
981 | PINMUX_DATA(RMII_REF_CLK_MARK, PSE7_1, PSE6_0, PTL5_FN), | ||
982 | PINMUX_DATA(RMII_TX_EN_MARK, PSC9_1, PSC8_0, PTL4_FN), | ||
983 | PINMUX_DATA(RMII_TXD0_MARK, PSC9_1, PSC8_0, PTL3_FN), | ||
984 | PINMUX_DATA(RMII_TXD1_MARK, PSC9_1, PSC8_0, PTL2_FN), | ||
985 | |||
986 | PINMUX_DATA(MSIOF0_MCK_MARK, PSE5_0, PSE4_1, PTL0_FN), | ||
987 | |||
988 | /* PTM FN */ | ||
989 | PINMUX_DATA(DV_D13_MARK, PSC13_0, PSC12_0, PTM7_FN), | ||
990 | PINMUX_DATA(DV_D12_MARK, PSC13_0, PSC12_0, PTM6_FN), | ||
991 | PINMUX_DATA(DV_D11_MARK, PSC13_0, PSC12_0, PTM5_FN), | ||
992 | PINMUX_DATA(DV_D10_MARK, PSC13_0, PSC12_0, PTM4_FN), | ||
993 | PINMUX_DATA(DV_D9_MARK, PSC11_0, PSC10_0, PTM3_FN), | ||
994 | PINMUX_DATA(DV_D8_MARK, PSC11_0, PSC10_0, PTM2_FN), | ||
995 | |||
996 | PINMUX_DATA(MSIOF0_TSCK_MARK, PSC13_0, PSC12_1, PTM7_FN), | ||
997 | PINMUX_DATA(MSIOF0_RXD_MARK, PSC13_0, PSC12_1, PTM6_FN), | ||
998 | PINMUX_DATA(MSIOF0_TXD_MARK, PSC13_0, PSC12_1, PTM5_FN), | ||
999 | PINMUX_DATA(MSIOF0_TSYNC_MARK, PSC13_0, PSC12_1, PTM4_FN), | ||
1000 | PINMUX_DATA(MSIOF0_SS1_MARK, PSC11_0, PSC10_1, PTM3_FN), | ||
1001 | PINMUX_DATA(MSIOF0_RSCK_MARK, PSC11_1, PSC10_0, PTM3_FN), | ||
1002 | PINMUX_DATA(MSIOF0_SS2_MARK, PSC11_0, PSC10_1, PTM2_FN), | ||
1003 | PINMUX_DATA(MSIOF0_RSYNC_MARK, PSC11_1, PSC10_0, PTM2_FN), | ||
1004 | |||
1005 | PINMUX_DATA(LCDVCPWC_MARK, PSA6_0, PTM1_FN), | ||
1006 | PINMUX_DATA(LCDRD_MARK, PSA7_0, PTM0_FN), | ||
1007 | |||
1008 | PINMUX_DATA(SCIF0_RXD_MARK, PSA6_1, PTM1_FN), | ||
1009 | PINMUX_DATA(SCIF0_SCK_MARK, PSA7_1, PTM0_FN), | ||
1010 | |||
1011 | /* PTN FN */ | ||
1012 | PINMUX_DATA(VIO0_D1_MARK, PTN7_FN), | ||
1013 | PINMUX_DATA(VIO0_D0_MARK, PTN6_FN), | ||
1014 | |||
1015 | PINMUX_DATA(DV_CLKI_MARK, PSD11_0, PTN5_FN), | ||
1016 | PINMUX_DATA(DV_CLK_MARK, PSD13_0, PSD12_0, PTN4_FN), | ||
1017 | PINMUX_DATA(DV_VSYNC_MARK, PSD15_0, PSD14_0, PTN3_FN), | ||
1018 | PINMUX_DATA(DV_HSYNC_MARK, PSB5_0, PSB4_0, PTN2_FN), | ||
1019 | PINMUX_DATA(DV_D7_MARK, PSB3_0, PSB2_0, PTN1_FN), | ||
1020 | PINMUX_DATA(DV_D6_MARK, PSB1_0, PSB0_0, PTN0_FN), | ||
1021 | |||
1022 | PINMUX_DATA(SCIF2_V_SCK_MARK, PSD13_0, PSD12_1, PTN4_FN), | ||
1023 | PINMUX_DATA(SCIF2_V_RXD_MARK, PSD15_0, PSD14_1, PTN3_FN), | ||
1024 | PINMUX_DATA(SCIF2_V_TXD_MARK, PSB5_0, PSB4_1, PTN2_FN), | ||
1025 | PINMUX_DATA(SCIF3_V_CTS_MARK, PSB3_0, PSB2_1, PTN1_FN), | ||
1026 | PINMUX_DATA(SCIF3_V_RTS_MARK, PSB1_0, PSB0_1, PTN0_FN), | ||
1027 | |||
1028 | PINMUX_DATA(RMII_RX_ER_MARK, PSB3_1, PSB2_0, PTN1_FN), | ||
1029 | PINMUX_DATA(RMII_CRS_DV_MARK, PSB1_1, PSB0_0, PTN0_FN), | ||
1030 | |||
1031 | /* PTQ FN */ | ||
1032 | PINMUX_DATA(D7_MARK, PTQ7_FN), | ||
1033 | PINMUX_DATA(D6_MARK, PTQ6_FN), | ||
1034 | PINMUX_DATA(D5_MARK, PTQ5_FN), | ||
1035 | PINMUX_DATA(D4_MARK, PTQ4_FN), | ||
1036 | PINMUX_DATA(D3_MARK, PTQ3_FN), | ||
1037 | PINMUX_DATA(D2_MARK, PTQ2_FN), | ||
1038 | PINMUX_DATA(D1_MARK, PTQ1_FN), | ||
1039 | PINMUX_DATA(D0_MARK, PTQ0_FN), | ||
1040 | |||
1041 | /* PTR FN */ | ||
1042 | PINMUX_DATA(CS6B_CE1B_MARK, PTR7_FN), | ||
1043 | PINMUX_DATA(CS6A_CE2B_MARK, PTR6_FN), | ||
1044 | PINMUX_DATA(CS5B_CE1A_MARK, PTR5_FN), | ||
1045 | PINMUX_DATA(CS5A_CE2A_MARK, PTR4_FN), | ||
1046 | PINMUX_DATA(IOIS16_MARK, PSA5_0, PTR3_FN), | ||
1047 | PINMUX_DATA(WAIT_MARK, PTR2_FN), | ||
1048 | PINMUX_DATA(WE3_ICIOWR_MARK, PSA1_0, PSA0_0, PTR1_FN), | ||
1049 | PINMUX_DATA(WE2_ICIORD_MARK, PSD1_0, PSD0_0, PTR0_FN), | ||
1050 | |||
1051 | PINMUX_DATA(LCDLCLK_MARK, PSA5_1, PTR3_FN), | ||
1052 | |||
1053 | PINMUX_DATA(IDEA2_MARK, PSD1_1, PSD0_0, PTR0_FN), | ||
1054 | |||
1055 | PINMUX_DATA(TPUTO3_MARK, PSA1_0, PSA0_1, PTR1_FN), | ||
1056 | PINMUX_DATA(TPUTI3_MARK, PSA1_1, PSA0_0, PTR1_FN), | ||
1057 | PINMUX_DATA(TPUTO2_MARK, PSD1_0, PSD0_1, PTR0_FN), | ||
1058 | |||
1059 | /* PTS FN */ | ||
1060 | PINMUX_DATA(VIO_CKO_MARK, PTS6_FN), | ||
1061 | |||
1062 | PINMUX_DATA(TPUTI2_MARK, PSE9_0, PSE8_1, PTS5_FN), | ||
1063 | |||
1064 | PINMUX_DATA(IDEIORDY_MARK, PSE9_1, PSE8_0, PTS5_FN), | ||
1065 | |||
1066 | PINMUX_DATA(VIO1_FLD_MARK, PSE9_0, PSE8_0, PTS5_FN), | ||
1067 | PINMUX_DATA(VIO1_HD_MARK, PSA10_0, PTS4_FN), | ||
1068 | PINMUX_DATA(VIO1_VD_MARK, PSA9_0, PTS3_FN), | ||
1069 | PINMUX_DATA(VIO1_CLK_MARK, PSA9_0, PTS2_FN), | ||
1070 | PINMUX_DATA(VIO1_D7_MARK, PSB7_0, PSB6_0, PTS1_FN), | ||
1071 | PINMUX_DATA(VIO1_D6_MARK, PSB7_0, PSB6_0, PTS0_FN), | ||
1072 | |||
1073 | PINMUX_DATA(SCIF5_SCK_MARK, PSA10_1, PTS4_FN), | ||
1074 | PINMUX_DATA(SCIF5_RXD_MARK, PSA9_1, PTS3_FN), | ||
1075 | PINMUX_DATA(SCIF5_TXD_MARK, PSA9_1, PTS2_FN), | ||
1076 | |||
1077 | PINMUX_DATA(VIO0_D15_MARK, PSB7_0, PSB6_1, PTS1_FN), | ||
1078 | PINMUX_DATA(VIO0_D14_MARK, PSB7_0, PSB6_1, PTS0_FN), | ||
1079 | |||
1080 | PINMUX_DATA(IDED7_MARK, PSB7_1, PSB6_0, PTS1_FN), | ||
1081 | PINMUX_DATA(IDED6_MARK, PSB7_1, PSB6_0, PTS0_FN), | ||
1082 | |||
1083 | /* PTT FN */ | ||
1084 | PINMUX_DATA(D15_MARK, PTT7_FN), | ||
1085 | PINMUX_DATA(D14_MARK, PTT6_FN), | ||
1086 | PINMUX_DATA(D13_MARK, PTT5_FN), | ||
1087 | PINMUX_DATA(D12_MARK, PTT4_FN), | ||
1088 | PINMUX_DATA(D11_MARK, PTT3_FN), | ||
1089 | PINMUX_DATA(D10_MARK, PTT2_FN), | ||
1090 | PINMUX_DATA(D9_MARK, PTT1_FN), | ||
1091 | PINMUX_DATA(D8_MARK, PTT0_FN), | ||
1092 | |||
1093 | /* PTU FN */ | ||
1094 | PINMUX_DATA(DMAC_DACK0_MARK, PTU7_FN), | ||
1095 | PINMUX_DATA(DMAC_DREQ0_MARK, PTU6_FN), | ||
1096 | |||
1097 | PINMUX_DATA(FSIOASD_MARK, PSE1_0, PTU5_FN), | ||
1098 | PINMUX_DATA(FSIIABCK_MARK, PSE1_0, PTU4_FN), | ||
1099 | PINMUX_DATA(FSIIALRCK_MARK, PSE1_0, PTU3_FN), | ||
1100 | PINMUX_DATA(FSIOABCK_MARK, PSE1_0, PTU2_FN), | ||
1101 | PINMUX_DATA(FSIOALRCK_MARK, PSE1_0, PTU1_FN), | ||
1102 | PINMUX_DATA(CLKAUDIOAO_MARK, PSE0_0, PTU0_FN), | ||
1103 | |||
1104 | /* PTV FN */ | ||
1105 | PINMUX_DATA(FSIIBSD_MARK, PSD7_0, PSD6_0, PTV7_FN), | ||
1106 | PINMUX_DATA(FSIOBSD_MARK, PSD7_0, PSD6_0, PTV6_FN), | ||
1107 | PINMUX_DATA(FSIIBBCK_MARK, PSC15_0, PSC14_0, PTV5_FN), | ||
1108 | PINMUX_DATA(FSIIBLRCK_MARK, PSC15_0, PSC14_0, PTV4_FN), | ||
1109 | PINMUX_DATA(FSIOBBCK_MARK, PSC15_0, PSC14_0, PTV3_FN), | ||
1110 | PINMUX_DATA(FSIOBLRCK_MARK, PSC15_0, PSC14_0, PTV2_FN), | ||
1111 | PINMUX_DATA(CLKAUDIOBO_MARK, PSE3_0, PSE2_0, PTV1_FN), | ||
1112 | PINMUX_DATA(FSIIASD_MARK, PSE10_0, PTV0_FN), | ||
1113 | |||
1114 | PINMUX_DATA(MSIOF1_SS2_MARK, PSD7_0, PSD6_1, PTV7_FN), | ||
1115 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PSD7_1, PSD6_0, PTV7_FN), | ||
1116 | PINMUX_DATA(MSIOF1_SS1_MARK, PSD7_0, PSD6_1, PTV6_FN), | ||
1117 | PINMUX_DATA(MSIOF1_RSCK_MARK, PSD7_1, PSD6_0, PTV6_FN), | ||
1118 | PINMUX_DATA(MSIOF1_RXD_MARK, PSC15_0, PSC14_1, PTV5_FN), | ||
1119 | PINMUX_DATA(MSIOF1_TSYNC_MARK, PSC15_0, PSC14_1, PTV4_FN), | ||
1120 | PINMUX_DATA(MSIOF1_TSCK_MARK, PSC15_0, PSC14_1, PTV3_FN), | ||
1121 | PINMUX_DATA(MSIOF1_TXD_MARK, PSC15_0, PSC14_1, PTV2_FN), | ||
1122 | PINMUX_DATA(MSIOF1_MCK_MARK, PSE3_0, PSE2_1, PTV1_FN), | ||
1123 | |||
1124 | /* PTW FN */ | ||
1125 | PINMUX_DATA(MMC_D7_MARK, PSE13_0, PSE12_0, PTW7_FN), | ||
1126 | PINMUX_DATA(MMC_D6_MARK, PSE13_0, PSE12_0, PTW6_FN), | ||
1127 | PINMUX_DATA(MMC_D5_MARK, PSE13_0, PSE12_0, PTW5_FN), | ||
1128 | PINMUX_DATA(MMC_D4_MARK, PSE13_0, PSE12_0, PTW4_FN), | ||
1129 | PINMUX_DATA(MMC_D3_MARK, PSA13_0, PTW3_FN), | ||
1130 | PINMUX_DATA(MMC_D2_MARK, PSA13_0, PTW2_FN), | ||
1131 | PINMUX_DATA(MMC_D1_MARK, PSA13_0, PTW1_FN), | ||
1132 | PINMUX_DATA(MMC_D0_MARK, PSA13_0, PTW0_FN), | ||
1133 | |||
1134 | PINMUX_DATA(SDHI1CD_MARK, PSE13_0, PSE12_1, PTW7_FN), | ||
1135 | PINMUX_DATA(SDHI1WP_MARK, PSE13_0, PSE12_1, PTW6_FN), | ||
1136 | PINMUX_DATA(SDHI1D3_MARK, PSE13_0, PSE12_1, PTW5_FN), | ||
1137 | PINMUX_DATA(SDHI1D2_MARK, PSE13_0, PSE12_1, PTW4_FN), | ||
1138 | PINMUX_DATA(SDHI1D1_MARK, PSA13_1, PTW3_FN), | ||
1139 | PINMUX_DATA(SDHI1D0_MARK, PSA13_1, PTW2_FN), | ||
1140 | PINMUX_DATA(SDHI1CMD_MARK, PSA13_1, PTW1_FN), | ||
1141 | PINMUX_DATA(SDHI1CLK_MARK, PSA13_1, PTW0_FN), | ||
1142 | |||
1143 | PINMUX_DATA(IODACK_MARK, PSE13_1, PSE12_0, PTW7_FN), | ||
1144 | PINMUX_DATA(IDERST_MARK, PSE13_1, PSE12_0, PTW6_FN), | ||
1145 | PINMUX_DATA(EXBUF_ENB_MARK, PSE13_1, PSE12_0, PTW5_FN), | ||
1146 | PINMUX_DATA(DIRECTION_MARK, PSE13_1, PSE12_0, PTW4_FN), | ||
1147 | |||
1148 | /* PTX FN */ | ||
1149 | PINMUX_DATA(DMAC_DACK1_MARK, PSA12_0, PTX7_FN), | ||
1150 | PINMUX_DATA(DMAC_DREQ1_MARK, PSA12_0, PTX6_FN), | ||
1151 | |||
1152 | PINMUX_DATA(IRDA_OUT_MARK, PSA12_1, PTX7_FN), | ||
1153 | PINMUX_DATA(IRDA_IN_MARK, PSA12_1, PTX6_FN), | ||
1154 | |||
1155 | PINMUX_DATA(TSIF_TS0_SDAT_MARK, PSC0_0, PTX5_FN), | ||
1156 | PINMUX_DATA(TSIF_TS0_SCK_MARK, PSC1_0, PTX4_FN), | ||
1157 | PINMUX_DATA(TSIF_TS0_SDEN_MARK, PSC2_0, PTX3_FN), | ||
1158 | PINMUX_DATA(TSIF_TS0_SPSYNC_MARK, PTX2_FN), | ||
1159 | |||
1160 | PINMUX_DATA(LNKSTA_MARK, PSC0_1, PTX5_FN), | ||
1161 | PINMUX_DATA(MDIO_MARK, PSC1_1, PTX4_FN), | ||
1162 | PINMUX_DATA(MDC_MARK, PSC2_1, PTX3_FN), | ||
1163 | |||
1164 | PINMUX_DATA(MMC_CLK_MARK, PTX1_FN), | ||
1165 | PINMUX_DATA(MMC_CMD_MARK, PTX0_FN), | ||
1166 | |||
1167 | /* PTY FN */ | ||
1168 | PINMUX_DATA(SDHI0CD_MARK, PTY7_FN), | ||
1169 | PINMUX_DATA(SDHI0WP_MARK, PTY6_FN), | ||
1170 | PINMUX_DATA(SDHI0D3_MARK, PTY5_FN), | ||
1171 | PINMUX_DATA(SDHI0D2_MARK, PTY4_FN), | ||
1172 | PINMUX_DATA(SDHI0D1_MARK, PTY3_FN), | ||
1173 | PINMUX_DATA(SDHI0D0_MARK, PTY2_FN), | ||
1174 | PINMUX_DATA(SDHI0CMD_MARK, PTY1_FN), | ||
1175 | PINMUX_DATA(SDHI0CLK_MARK, PTY0_FN), | ||
1176 | |||
1177 | /* PTZ FN */ | ||
1178 | PINMUX_DATA(INTC_IRQ7_MARK, PSB10_0, PTZ7_FN), | ||
1179 | PINMUX_DATA(INTC_IRQ6_MARK, PSB11_0, PTZ6_FN), | ||
1180 | PINMUX_DATA(INTC_IRQ5_MARK, PSB12_0, PTZ5_FN), | ||
1181 | PINMUX_DATA(INTC_IRQ4_MARK, PSB13_0, PTZ4_FN), | ||
1182 | PINMUX_DATA(INTC_IRQ3_MARK, PSB14_0, PTZ3_FN), | ||
1183 | PINMUX_DATA(INTC_IRQ2_MARK, PTZ2_FN), | ||
1184 | PINMUX_DATA(INTC_IRQ1_MARK, PTZ1_FN), | ||
1185 | PINMUX_DATA(INTC_IRQ0_MARK, PTZ0_FN), | ||
1186 | |||
1187 | PINMUX_DATA(SCIF3_I_CTS_MARK, PSB10_1, PTZ7_FN), | ||
1188 | PINMUX_DATA(SCIF3_I_RTS_MARK, PSB11_1, PTZ6_FN), | ||
1189 | PINMUX_DATA(SCIF3_I_SCK_MARK, PSB12_1, PTZ5_FN), | ||
1190 | PINMUX_DATA(SCIF3_I_RXD_MARK, PSB13_1, PTZ4_FN), | ||
1191 | PINMUX_DATA(SCIF3_I_TXD_MARK, PSB14_1, PTZ3_FN), | ||
1192 | }; | ||
1193 | |||
1194 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1195 | /* PTA */ | ||
1196 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
1197 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
1198 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
1199 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
1200 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
1201 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
1202 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
1203 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
1204 | |||
1205 | /* PTB */ | ||
1206 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
1207 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
1208 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
1209 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
1210 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
1211 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
1212 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
1213 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
1214 | |||
1215 | /* PTC */ | ||
1216 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
1217 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
1218 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
1219 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
1220 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
1221 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
1222 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
1223 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
1224 | |||
1225 | /* PTD */ | ||
1226 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
1227 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
1228 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
1229 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
1230 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
1231 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
1232 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
1233 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
1234 | |||
1235 | /* PTE */ | ||
1236 | PINMUX_GPIO(GPIO_PTE7, PTE7_DATA), | ||
1237 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
1238 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
1239 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
1240 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
1241 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
1242 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
1243 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
1244 | |||
1245 | /* PTF */ | ||
1246 | PINMUX_GPIO(GPIO_PTF7, PTF7_DATA), | ||
1247 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
1248 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
1249 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
1250 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
1251 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
1252 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
1253 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
1254 | |||
1255 | /* PTG */ | ||
1256 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
1257 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
1258 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
1259 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
1260 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
1261 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
1262 | |||
1263 | /* PTH */ | ||
1264 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
1265 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
1266 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
1267 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
1268 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
1269 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
1270 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
1271 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
1272 | |||
1273 | /* PTJ */ | ||
1274 | PINMUX_GPIO(GPIO_PTJ7, PTJ7_DATA), | ||
1275 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
1276 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
1277 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
1278 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
1279 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
1280 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
1281 | |||
1282 | /* PTK */ | ||
1283 | PINMUX_GPIO(GPIO_PTK7, PTK7_DATA), | ||
1284 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
1285 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
1286 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
1287 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
1288 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
1289 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
1290 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
1291 | |||
1292 | /* PTL */ | ||
1293 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
1294 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
1295 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
1296 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
1297 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
1298 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
1299 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
1300 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
1301 | |||
1302 | /* PTM */ | ||
1303 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
1304 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
1305 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
1306 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
1307 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
1308 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
1309 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
1310 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
1311 | |||
1312 | /* PTN */ | ||
1313 | PINMUX_GPIO(GPIO_PTN7, PTN7_DATA), | ||
1314 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
1315 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
1316 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
1317 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
1318 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
1319 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
1320 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
1321 | |||
1322 | /* PTQ */ | ||
1323 | PINMUX_GPIO(GPIO_PTQ7, PTQ7_DATA), | ||
1324 | PINMUX_GPIO(GPIO_PTQ6, PTQ6_DATA), | ||
1325 | PINMUX_GPIO(GPIO_PTQ5, PTQ5_DATA), | ||
1326 | PINMUX_GPIO(GPIO_PTQ4, PTQ4_DATA), | ||
1327 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
1328 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
1329 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
1330 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
1331 | |||
1332 | /* PTR */ | ||
1333 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
1334 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
1335 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
1336 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
1337 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
1338 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
1339 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
1340 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
1341 | |||
1342 | /* PTS */ | ||
1343 | PINMUX_GPIO(GPIO_PTS6, PTS6_DATA), | ||
1344 | PINMUX_GPIO(GPIO_PTS5, PTS5_DATA), | ||
1345 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
1346 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
1347 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
1348 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
1349 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
1350 | |||
1351 | /* PTT */ | ||
1352 | PINMUX_GPIO(GPIO_PTT7, PTT7_DATA), | ||
1353 | PINMUX_GPIO(GPIO_PTT6, PTT6_DATA), | ||
1354 | PINMUX_GPIO(GPIO_PTT5, PTT5_DATA), | ||
1355 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
1356 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
1357 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
1358 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
1359 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
1360 | |||
1361 | /* PTU */ | ||
1362 | PINMUX_GPIO(GPIO_PTU7, PTU7_DATA), | ||
1363 | PINMUX_GPIO(GPIO_PTU6, PTU6_DATA), | ||
1364 | PINMUX_GPIO(GPIO_PTU5, PTU5_DATA), | ||
1365 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
1366 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
1367 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
1368 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
1369 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
1370 | |||
1371 | /* PTV */ | ||
1372 | PINMUX_GPIO(GPIO_PTV7, PTV7_DATA), | ||
1373 | PINMUX_GPIO(GPIO_PTV6, PTV6_DATA), | ||
1374 | PINMUX_GPIO(GPIO_PTV5, PTV5_DATA), | ||
1375 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
1376 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
1377 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
1378 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
1379 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
1380 | |||
1381 | /* PTW */ | ||
1382 | PINMUX_GPIO(GPIO_PTW7, PTW7_DATA), | ||
1383 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
1384 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
1385 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
1386 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
1387 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
1388 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
1389 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
1390 | |||
1391 | /* PTX */ | ||
1392 | PINMUX_GPIO(GPIO_PTX7, PTX7_DATA), | ||
1393 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
1394 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
1395 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
1396 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
1397 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
1398 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
1399 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
1400 | |||
1401 | /* PTY */ | ||
1402 | PINMUX_GPIO(GPIO_PTY7, PTY7_DATA), | ||
1403 | PINMUX_GPIO(GPIO_PTY6, PTY6_DATA), | ||
1404 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
1405 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
1406 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
1407 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
1408 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
1409 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
1410 | |||
1411 | /* PTZ */ | ||
1412 | PINMUX_GPIO(GPIO_PTZ7, PTZ7_DATA), | ||
1413 | PINMUX_GPIO(GPIO_PTZ6, PTZ6_DATA), | ||
1414 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
1415 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
1416 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
1417 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
1418 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
1419 | PINMUX_GPIO(GPIO_PTZ0, PTZ0_DATA), | ||
1420 | |||
1421 | /* BSC */ | ||
1422 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
1423 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
1424 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
1425 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
1426 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
1427 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
1428 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
1429 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
1430 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
1431 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
1432 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
1433 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
1434 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
1438 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1439 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1440 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1441 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1442 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1443 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1444 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1445 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1447 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1448 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1449 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1450 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1451 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1452 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1453 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_CS6A_CE2B, CS6A_CE2B_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_CS5B_CE1A, CS5B_CE1A_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_CS5A_CE2A, CS5A_CE2A_MARK), | ||
1462 | PINMUX_GPIO(GPIO_FN_WE3_ICIOWR, WE3_ICIOWR_MARK), | ||
1463 | PINMUX_GPIO(GPIO_FN_WE2_ICIORD, WE2_ICIORD_MARK), | ||
1464 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1465 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1466 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1467 | |||
1468 | /* KEYSC */ | ||
1469 | PINMUX_GPIO(GPIO_FN_KEYOUT5_IN5, KEYOUT5_IN5_MARK), | ||
1470 | PINMUX_GPIO(GPIO_FN_KEYOUT4_IN6, KEYOUT4_IN6_MARK), | ||
1471 | PINMUX_GPIO(GPIO_FN_KEYIN4, KEYIN4_MARK), | ||
1472 | PINMUX_GPIO(GPIO_FN_KEYIN3, KEYIN3_MARK), | ||
1473 | PINMUX_GPIO(GPIO_FN_KEYIN2, KEYIN2_MARK), | ||
1474 | PINMUX_GPIO(GPIO_FN_KEYIN1, KEYIN1_MARK), | ||
1475 | PINMUX_GPIO(GPIO_FN_KEYIN0, KEYIN0_MARK), | ||
1476 | PINMUX_GPIO(GPIO_FN_KEYOUT3, KEYOUT3_MARK), | ||
1477 | PINMUX_GPIO(GPIO_FN_KEYOUT2, KEYOUT2_MARK), | ||
1478 | PINMUX_GPIO(GPIO_FN_KEYOUT1, KEYOUT1_MARK), | ||
1479 | PINMUX_GPIO(GPIO_FN_KEYOUT0, KEYOUT0_MARK), | ||
1480 | |||
1481 | /* ATAPI */ | ||
1482 | PINMUX_GPIO(GPIO_FN_IDED15, IDED15_MARK), | ||
1483 | PINMUX_GPIO(GPIO_FN_IDED14, IDED14_MARK), | ||
1484 | PINMUX_GPIO(GPIO_FN_IDED13, IDED13_MARK), | ||
1485 | PINMUX_GPIO(GPIO_FN_IDED12, IDED12_MARK), | ||
1486 | PINMUX_GPIO(GPIO_FN_IDED11, IDED11_MARK), | ||
1487 | PINMUX_GPIO(GPIO_FN_IDED10, IDED10_MARK), | ||
1488 | PINMUX_GPIO(GPIO_FN_IDED9, IDED9_MARK), | ||
1489 | PINMUX_GPIO(GPIO_FN_IDED8, IDED8_MARK), | ||
1490 | PINMUX_GPIO(GPIO_FN_IDED7, IDED7_MARK), | ||
1491 | PINMUX_GPIO(GPIO_FN_IDED6, IDED6_MARK), | ||
1492 | PINMUX_GPIO(GPIO_FN_IDED5, IDED5_MARK), | ||
1493 | PINMUX_GPIO(GPIO_FN_IDED4, IDED4_MARK), | ||
1494 | PINMUX_GPIO(GPIO_FN_IDED3, IDED3_MARK), | ||
1495 | PINMUX_GPIO(GPIO_FN_IDED2, IDED2_MARK), | ||
1496 | PINMUX_GPIO(GPIO_FN_IDED1, IDED1_MARK), | ||
1497 | PINMUX_GPIO(GPIO_FN_IDED0, IDED0_MARK), | ||
1498 | PINMUX_GPIO(GPIO_FN_IDEA2, IDEA2_MARK), | ||
1499 | PINMUX_GPIO(GPIO_FN_IDEA1, IDEA1_MARK), | ||
1500 | PINMUX_GPIO(GPIO_FN_IDEA0, IDEA0_MARK), | ||
1501 | PINMUX_GPIO(GPIO_FN_IDEIOWR, IDEIOWR_MARK), | ||
1502 | PINMUX_GPIO(GPIO_FN_IODREQ, IODREQ_MARK), | ||
1503 | PINMUX_GPIO(GPIO_FN_IDECS0, IDECS0_MARK), | ||
1504 | PINMUX_GPIO(GPIO_FN_IDECS1, IDECS1_MARK), | ||
1505 | PINMUX_GPIO(GPIO_FN_IDEIORD, IDEIORD_MARK), | ||
1506 | PINMUX_GPIO(GPIO_FN_DIRECTION, DIRECTION_MARK), | ||
1507 | PINMUX_GPIO(GPIO_FN_EXBUF_ENB, EXBUF_ENB_MARK), | ||
1508 | PINMUX_GPIO(GPIO_FN_IDERST, IDERST_MARK), | ||
1509 | PINMUX_GPIO(GPIO_FN_IODACK, IODACK_MARK), | ||
1510 | PINMUX_GPIO(GPIO_FN_IDEINT, IDEINT_MARK), | ||
1511 | PINMUX_GPIO(GPIO_FN_IDEIORDY, IDEIORDY_MARK), | ||
1512 | |||
1513 | /* TPU */ | ||
1514 | PINMUX_GPIO(GPIO_FN_TPUTO3, TPUTO3_MARK), | ||
1515 | PINMUX_GPIO(GPIO_FN_TPUTO2, TPUTO2_MARK), | ||
1516 | PINMUX_GPIO(GPIO_FN_TPUTO1, TPUTO1_MARK), | ||
1517 | PINMUX_GPIO(GPIO_FN_TPUTO0, TPUTO0_MARK), | ||
1518 | PINMUX_GPIO(GPIO_FN_TPUTI3, TPUTI3_MARK), | ||
1519 | PINMUX_GPIO(GPIO_FN_TPUTI2, TPUTI2_MARK), | ||
1520 | |||
1521 | /* LCDC */ | ||
1522 | PINMUX_GPIO(GPIO_FN_LCDD23, LCDD23_MARK), | ||
1523 | PINMUX_GPIO(GPIO_FN_LCDD22, LCDD22_MARK), | ||
1524 | PINMUX_GPIO(GPIO_FN_LCDD21, LCDD21_MARK), | ||
1525 | PINMUX_GPIO(GPIO_FN_LCDD20, LCDD20_MARK), | ||
1526 | PINMUX_GPIO(GPIO_FN_LCDD19, LCDD19_MARK), | ||
1527 | PINMUX_GPIO(GPIO_FN_LCDD18, LCDD18_MARK), | ||
1528 | PINMUX_GPIO(GPIO_FN_LCDD17, LCDD17_MARK), | ||
1529 | PINMUX_GPIO(GPIO_FN_LCDD16, LCDD16_MARK), | ||
1530 | PINMUX_GPIO(GPIO_FN_LCDD15, LCDD15_MARK), | ||
1531 | PINMUX_GPIO(GPIO_FN_LCDD14, LCDD14_MARK), | ||
1532 | PINMUX_GPIO(GPIO_FN_LCDD13, LCDD13_MARK), | ||
1533 | PINMUX_GPIO(GPIO_FN_LCDD12, LCDD12_MARK), | ||
1534 | PINMUX_GPIO(GPIO_FN_LCDD11, LCDD11_MARK), | ||
1535 | PINMUX_GPIO(GPIO_FN_LCDD10, LCDD10_MARK), | ||
1536 | PINMUX_GPIO(GPIO_FN_LCDD9, LCDD9_MARK), | ||
1537 | PINMUX_GPIO(GPIO_FN_LCDD8, LCDD8_MARK), | ||
1538 | PINMUX_GPIO(GPIO_FN_LCDD7, LCDD7_MARK), | ||
1539 | PINMUX_GPIO(GPIO_FN_LCDD6, LCDD6_MARK), | ||
1540 | PINMUX_GPIO(GPIO_FN_LCDD5, LCDD5_MARK), | ||
1541 | PINMUX_GPIO(GPIO_FN_LCDD4, LCDD4_MARK), | ||
1542 | PINMUX_GPIO(GPIO_FN_LCDD3, LCDD3_MARK), | ||
1543 | PINMUX_GPIO(GPIO_FN_LCDD2, LCDD2_MARK), | ||
1544 | PINMUX_GPIO(GPIO_FN_LCDD1, LCDD1_MARK), | ||
1545 | PINMUX_GPIO(GPIO_FN_LCDD0, LCDD0_MARK), | ||
1546 | PINMUX_GPIO(GPIO_FN_LCDVSYN, LCDVSYN_MARK), | ||
1547 | PINMUX_GPIO(GPIO_FN_LCDDISP, LCDDISP_MARK), | ||
1548 | PINMUX_GPIO(GPIO_FN_LCDRS, LCDRS_MARK), | ||
1549 | PINMUX_GPIO(GPIO_FN_LCDHSYN, LCDHSYN_MARK), | ||
1550 | PINMUX_GPIO(GPIO_FN_LCDCS, LCDCS_MARK), | ||
1551 | PINMUX_GPIO(GPIO_FN_LCDDON, LCDDON_MARK), | ||
1552 | PINMUX_GPIO(GPIO_FN_LCDDCK, LCDDCK_MARK), | ||
1553 | PINMUX_GPIO(GPIO_FN_LCDWR, LCDWR_MARK), | ||
1554 | PINMUX_GPIO(GPIO_FN_LCDVEPWC, LCDVEPWC_MARK), | ||
1555 | PINMUX_GPIO(GPIO_FN_LCDVCPWC, LCDVCPWC_MARK), | ||
1556 | PINMUX_GPIO(GPIO_FN_LCDRD, LCDRD_MARK), | ||
1557 | PINMUX_GPIO(GPIO_FN_LCDLCLK, LCDLCLK_MARK), | ||
1558 | |||
1559 | /* SCIF0 */ | ||
1560 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
1561 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
1562 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
1563 | |||
1564 | /* SCIF1 */ | ||
1565 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
1566 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
1567 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
1568 | |||
1569 | /* SCIF2 */ | ||
1570 | PINMUX_GPIO(GPIO_FN_SCIF2_L_TXD, SCIF2_L_TXD_MARK), | ||
1571 | PINMUX_GPIO(GPIO_FN_SCIF2_L_SCK, SCIF2_L_SCK_MARK), | ||
1572 | PINMUX_GPIO(GPIO_FN_SCIF2_L_RXD, SCIF2_L_RXD_MARK), | ||
1573 | PINMUX_GPIO(GPIO_FN_SCIF2_V_TXD, SCIF2_V_TXD_MARK), | ||
1574 | PINMUX_GPIO(GPIO_FN_SCIF2_V_SCK, SCIF2_V_SCK_MARK), | ||
1575 | PINMUX_GPIO(GPIO_FN_SCIF2_V_RXD, SCIF2_V_RXD_MARK), | ||
1576 | |||
1577 | /* SCIF3 */ | ||
1578 | PINMUX_GPIO(GPIO_FN_SCIF3_V_SCK, SCIF3_V_SCK_MARK), | ||
1579 | PINMUX_GPIO(GPIO_FN_SCIF3_V_RXD, SCIF3_V_RXD_MARK), | ||
1580 | PINMUX_GPIO(GPIO_FN_SCIF3_V_TXD, SCIF3_V_TXD_MARK), | ||
1581 | PINMUX_GPIO(GPIO_FN_SCIF3_V_CTS, SCIF3_V_CTS_MARK), | ||
1582 | PINMUX_GPIO(GPIO_FN_SCIF3_V_RTS, SCIF3_V_RTS_MARK), | ||
1583 | PINMUX_GPIO(GPIO_FN_SCIF3_I_SCK, SCIF3_I_SCK_MARK), | ||
1584 | PINMUX_GPIO(GPIO_FN_SCIF3_I_RXD, SCIF3_I_RXD_MARK), | ||
1585 | PINMUX_GPIO(GPIO_FN_SCIF3_I_TXD, SCIF3_I_TXD_MARK), | ||
1586 | PINMUX_GPIO(GPIO_FN_SCIF3_I_CTS, SCIF3_I_CTS_MARK), | ||
1587 | PINMUX_GPIO(GPIO_FN_SCIF3_I_RTS, SCIF3_I_RTS_MARK), | ||
1588 | |||
1589 | /* SCIF4 */ | ||
1590 | PINMUX_GPIO(GPIO_FN_SCIF4_SCK, SCIF4_SCK_MARK), | ||
1591 | PINMUX_GPIO(GPIO_FN_SCIF4_RXD, SCIF4_RXD_MARK), | ||
1592 | PINMUX_GPIO(GPIO_FN_SCIF4_TXD, SCIF4_TXD_MARK), | ||
1593 | |||
1594 | /* SCIF5 */ | ||
1595 | PINMUX_GPIO(GPIO_FN_SCIF5_SCK, SCIF5_SCK_MARK), | ||
1596 | PINMUX_GPIO(GPIO_FN_SCIF5_RXD, SCIF5_RXD_MARK), | ||
1597 | PINMUX_GPIO(GPIO_FN_SCIF5_TXD, SCIF5_TXD_MARK), | ||
1598 | |||
1599 | /* FSI */ | ||
1600 | PINMUX_GPIO(GPIO_FN_FSIMCKB, FSIMCKB_MARK), | ||
1601 | PINMUX_GPIO(GPIO_FN_FSIMCKA, FSIMCKA_MARK), | ||
1602 | PINMUX_GPIO(GPIO_FN_FSIOASD, FSIOASD_MARK), | ||
1603 | PINMUX_GPIO(GPIO_FN_FSIIABCK, FSIIABCK_MARK), | ||
1604 | PINMUX_GPIO(GPIO_FN_FSIIALRCK, FSIIALRCK_MARK), | ||
1605 | PINMUX_GPIO(GPIO_FN_FSIOABCK, FSIOABCK_MARK), | ||
1606 | PINMUX_GPIO(GPIO_FN_FSIOALRCK, FSIOALRCK_MARK), | ||
1607 | PINMUX_GPIO(GPIO_FN_CLKAUDIOAO, CLKAUDIOAO_MARK), | ||
1608 | PINMUX_GPIO(GPIO_FN_FSIIBSD, FSIIBSD_MARK), | ||
1609 | PINMUX_GPIO(GPIO_FN_FSIOBSD, FSIOBSD_MARK), | ||
1610 | PINMUX_GPIO(GPIO_FN_FSIIBBCK, FSIIBBCK_MARK), | ||
1611 | PINMUX_GPIO(GPIO_FN_FSIIBLRCK, FSIIBLRCK_MARK), | ||
1612 | PINMUX_GPIO(GPIO_FN_FSIOBBCK, FSIOBBCK_MARK), | ||
1613 | PINMUX_GPIO(GPIO_FN_FSIOBLRCK, FSIOBLRCK_MARK), | ||
1614 | PINMUX_GPIO(GPIO_FN_CLKAUDIOBO, CLKAUDIOBO_MARK), | ||
1615 | PINMUX_GPIO(GPIO_FN_FSIIASD, FSIIASD_MARK), | ||
1616 | |||
1617 | /* AUD */ | ||
1618 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
1619 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1620 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1621 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1622 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1623 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1624 | |||
1625 | /* VIO */ | ||
1626 | PINMUX_GPIO(GPIO_FN_VIO_CKO, VIO_CKO_MARK), | ||
1627 | |||
1628 | /* VIO0 */ | ||
1629 | PINMUX_GPIO(GPIO_FN_VIO0_D15, VIO0_D15_MARK), | ||
1630 | PINMUX_GPIO(GPIO_FN_VIO0_D14, VIO0_D14_MARK), | ||
1631 | PINMUX_GPIO(GPIO_FN_VIO0_D13, VIO0_D13_MARK), | ||
1632 | PINMUX_GPIO(GPIO_FN_VIO0_D12, VIO0_D12_MARK), | ||
1633 | PINMUX_GPIO(GPIO_FN_VIO0_D11, VIO0_D11_MARK), | ||
1634 | PINMUX_GPIO(GPIO_FN_VIO0_D10, VIO0_D10_MARK), | ||
1635 | PINMUX_GPIO(GPIO_FN_VIO0_D9, VIO0_D9_MARK), | ||
1636 | PINMUX_GPIO(GPIO_FN_VIO0_D8, VIO0_D8_MARK), | ||
1637 | PINMUX_GPIO(GPIO_FN_VIO0_D7, VIO0_D7_MARK), | ||
1638 | PINMUX_GPIO(GPIO_FN_VIO0_D6, VIO0_D6_MARK), | ||
1639 | PINMUX_GPIO(GPIO_FN_VIO0_D5, VIO0_D5_MARK), | ||
1640 | PINMUX_GPIO(GPIO_FN_VIO0_D4, VIO0_D4_MARK), | ||
1641 | PINMUX_GPIO(GPIO_FN_VIO0_D3, VIO0_D3_MARK), | ||
1642 | PINMUX_GPIO(GPIO_FN_VIO0_D2, VIO0_D2_MARK), | ||
1643 | PINMUX_GPIO(GPIO_FN_VIO0_D1, VIO0_D1_MARK), | ||
1644 | PINMUX_GPIO(GPIO_FN_VIO0_D0, VIO0_D0_MARK), | ||
1645 | PINMUX_GPIO(GPIO_FN_VIO0_VD, VIO0_VD_MARK), | ||
1646 | PINMUX_GPIO(GPIO_FN_VIO0_CLK, VIO0_CLK_MARK), | ||
1647 | PINMUX_GPIO(GPIO_FN_VIO0_FLD, VIO0_FLD_MARK), | ||
1648 | PINMUX_GPIO(GPIO_FN_VIO0_HD, VIO0_HD_MARK), | ||
1649 | |||
1650 | /* VIO1 */ | ||
1651 | PINMUX_GPIO(GPIO_FN_VIO1_D7, VIO1_D7_MARK), | ||
1652 | PINMUX_GPIO(GPIO_FN_VIO1_D6, VIO1_D6_MARK), | ||
1653 | PINMUX_GPIO(GPIO_FN_VIO1_D5, VIO1_D5_MARK), | ||
1654 | PINMUX_GPIO(GPIO_FN_VIO1_D4, VIO1_D4_MARK), | ||
1655 | PINMUX_GPIO(GPIO_FN_VIO1_D3, VIO1_D3_MARK), | ||
1656 | PINMUX_GPIO(GPIO_FN_VIO1_D2, VIO1_D2_MARK), | ||
1657 | PINMUX_GPIO(GPIO_FN_VIO1_D1, VIO1_D1_MARK), | ||
1658 | PINMUX_GPIO(GPIO_FN_VIO1_D0, VIO1_D0_MARK), | ||
1659 | PINMUX_GPIO(GPIO_FN_VIO1_FLD, VIO1_FLD_MARK), | ||
1660 | PINMUX_GPIO(GPIO_FN_VIO1_HD, VIO1_HD_MARK), | ||
1661 | PINMUX_GPIO(GPIO_FN_VIO1_VD, VIO1_VD_MARK), | ||
1662 | PINMUX_GPIO(GPIO_FN_VIO1_CLK, VIO1_CLK_MARK), | ||
1663 | |||
1664 | /* Eth */ | ||
1665 | PINMUX_GPIO(GPIO_FN_RMII_RXD0, RMII_RXD0_MARK), | ||
1666 | PINMUX_GPIO(GPIO_FN_RMII_RXD1, RMII_RXD1_MARK), | ||
1667 | PINMUX_GPIO(GPIO_FN_RMII_TXD0, RMII_TXD0_MARK), | ||
1668 | PINMUX_GPIO(GPIO_FN_RMII_TXD1, RMII_TXD1_MARK), | ||
1669 | PINMUX_GPIO(GPIO_FN_RMII_REF_CLK, RMII_REF_CLK_MARK), | ||
1670 | PINMUX_GPIO(GPIO_FN_RMII_TX_EN, RMII_TX_EN_MARK), | ||
1671 | PINMUX_GPIO(GPIO_FN_RMII_RX_ER, RMII_RX_ER_MARK), | ||
1672 | PINMUX_GPIO(GPIO_FN_RMII_CRS_DV, RMII_CRS_DV_MARK), | ||
1673 | PINMUX_GPIO(GPIO_FN_LNKSTA, LNKSTA_MARK), | ||
1674 | PINMUX_GPIO(GPIO_FN_MDIO, MDIO_MARK), | ||
1675 | PINMUX_GPIO(GPIO_FN_MDC, MDC_MARK), | ||
1676 | |||
1677 | /* System */ | ||
1678 | PINMUX_GPIO(GPIO_FN_PDSTATUS, PDSTATUS_MARK), | ||
1679 | PINMUX_GPIO(GPIO_FN_STATUS2, STATUS2_MARK), | ||
1680 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1681 | |||
1682 | /* VOU */ | ||
1683 | PINMUX_GPIO(GPIO_FN_DV_D15, DV_D15_MARK), | ||
1684 | PINMUX_GPIO(GPIO_FN_DV_D14, DV_D14_MARK), | ||
1685 | PINMUX_GPIO(GPIO_FN_DV_D13, DV_D13_MARK), | ||
1686 | PINMUX_GPIO(GPIO_FN_DV_D12, DV_D12_MARK), | ||
1687 | PINMUX_GPIO(GPIO_FN_DV_D11, DV_D11_MARK), | ||
1688 | PINMUX_GPIO(GPIO_FN_DV_D10, DV_D10_MARK), | ||
1689 | PINMUX_GPIO(GPIO_FN_DV_D9, DV_D9_MARK), | ||
1690 | PINMUX_GPIO(GPIO_FN_DV_D8, DV_D8_MARK), | ||
1691 | PINMUX_GPIO(GPIO_FN_DV_D7, DV_D7_MARK), | ||
1692 | PINMUX_GPIO(GPIO_FN_DV_D6, DV_D6_MARK), | ||
1693 | PINMUX_GPIO(GPIO_FN_DV_D5, DV_D5_MARK), | ||
1694 | PINMUX_GPIO(GPIO_FN_DV_D4, DV_D4_MARK), | ||
1695 | PINMUX_GPIO(GPIO_FN_DV_D3, DV_D3_MARK), | ||
1696 | PINMUX_GPIO(GPIO_FN_DV_D2, DV_D2_MARK), | ||
1697 | PINMUX_GPIO(GPIO_FN_DV_D1, DV_D1_MARK), | ||
1698 | PINMUX_GPIO(GPIO_FN_DV_D0, DV_D0_MARK), | ||
1699 | PINMUX_GPIO(GPIO_FN_DV_CLKI, DV_CLKI_MARK), | ||
1700 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1701 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1702 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1703 | |||
1704 | /* MSIOF0 */ | ||
1705 | PINMUX_GPIO(GPIO_FN_MSIOF0_RXD, MSIOF0_RXD_MARK), | ||
1706 | PINMUX_GPIO(GPIO_FN_MSIOF0_TXD, MSIOF0_TXD_MARK), | ||
1707 | PINMUX_GPIO(GPIO_FN_MSIOF0_MCK, MSIOF0_MCK_MARK), | ||
1708 | PINMUX_GPIO(GPIO_FN_MSIOF0_TSCK, MSIOF0_TSCK_MARK), | ||
1709 | PINMUX_GPIO(GPIO_FN_MSIOF0_SS1, MSIOF0_SS1_MARK), | ||
1710 | PINMUX_GPIO(GPIO_FN_MSIOF0_SS2, MSIOF0_SS2_MARK), | ||
1711 | PINMUX_GPIO(GPIO_FN_MSIOF0_TSYNC, MSIOF0_TSYNC_MARK), | ||
1712 | PINMUX_GPIO(GPIO_FN_MSIOF0_RSCK, MSIOF0_RSCK_MARK), | ||
1713 | PINMUX_GPIO(GPIO_FN_MSIOF0_RSYNC, MSIOF0_RSYNC_MARK), | ||
1714 | |||
1715 | /* MSIOF1 */ | ||
1716 | PINMUX_GPIO(GPIO_FN_MSIOF1_RXD, MSIOF1_RXD_MARK), | ||
1717 | PINMUX_GPIO(GPIO_FN_MSIOF1_TXD, MSIOF1_TXD_MARK), | ||
1718 | PINMUX_GPIO(GPIO_FN_MSIOF1_MCK, MSIOF1_MCK_MARK), | ||
1719 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSCK, MSIOF1_TSCK_MARK), | ||
1720 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS1, MSIOF1_SS1_MARK), | ||
1721 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS2, MSIOF1_SS2_MARK), | ||
1722 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSYNC, MSIOF1_TSYNC_MARK), | ||
1723 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSCK, MSIOF1_RSCK_MARK), | ||
1724 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSYNC, MSIOF1_RSYNC_MARK), | ||
1725 | |||
1726 | /* DMAC */ | ||
1727 | PINMUX_GPIO(GPIO_FN_DMAC_DACK0, DMAC_DACK0_MARK), | ||
1728 | PINMUX_GPIO(GPIO_FN_DMAC_DREQ0, DMAC_DREQ0_MARK), | ||
1729 | PINMUX_GPIO(GPIO_FN_DMAC_DACK1, DMAC_DACK1_MARK), | ||
1730 | PINMUX_GPIO(GPIO_FN_DMAC_DREQ1, DMAC_DREQ1_MARK), | ||
1731 | |||
1732 | /* SDHI0 */ | ||
1733 | PINMUX_GPIO(GPIO_FN_SDHI0CD, SDHI0CD_MARK), | ||
1734 | PINMUX_GPIO(GPIO_FN_SDHI0WP, SDHI0WP_MARK), | ||
1735 | PINMUX_GPIO(GPIO_FN_SDHI0CMD, SDHI0CMD_MARK), | ||
1736 | PINMUX_GPIO(GPIO_FN_SDHI0CLK, SDHI0CLK_MARK), | ||
1737 | PINMUX_GPIO(GPIO_FN_SDHI0D3, SDHI0D3_MARK), | ||
1738 | PINMUX_GPIO(GPIO_FN_SDHI0D2, SDHI0D2_MARK), | ||
1739 | PINMUX_GPIO(GPIO_FN_SDHI0D1, SDHI0D1_MARK), | ||
1740 | PINMUX_GPIO(GPIO_FN_SDHI0D0, SDHI0D0_MARK), | ||
1741 | |||
1742 | /* SDHI1 */ | ||
1743 | PINMUX_GPIO(GPIO_FN_SDHI1CD, SDHI1CD_MARK), | ||
1744 | PINMUX_GPIO(GPIO_FN_SDHI1WP, SDHI1WP_MARK), | ||
1745 | PINMUX_GPIO(GPIO_FN_SDHI1CMD, SDHI1CMD_MARK), | ||
1746 | PINMUX_GPIO(GPIO_FN_SDHI1CLK, SDHI1CLK_MARK), | ||
1747 | PINMUX_GPIO(GPIO_FN_SDHI1D3, SDHI1D3_MARK), | ||
1748 | PINMUX_GPIO(GPIO_FN_SDHI1D2, SDHI1D2_MARK), | ||
1749 | PINMUX_GPIO(GPIO_FN_SDHI1D1, SDHI1D1_MARK), | ||
1750 | PINMUX_GPIO(GPIO_FN_SDHI1D0, SDHI1D0_MARK), | ||
1751 | |||
1752 | /* MMC */ | ||
1753 | PINMUX_GPIO(GPIO_FN_MMC_D7, MMC_D7_MARK), | ||
1754 | PINMUX_GPIO(GPIO_FN_MMC_D6, MMC_D6_MARK), | ||
1755 | PINMUX_GPIO(GPIO_FN_MMC_D5, MMC_D5_MARK), | ||
1756 | PINMUX_GPIO(GPIO_FN_MMC_D4, MMC_D4_MARK), | ||
1757 | PINMUX_GPIO(GPIO_FN_MMC_D3, MMC_D3_MARK), | ||
1758 | PINMUX_GPIO(GPIO_FN_MMC_D2, MMC_D2_MARK), | ||
1759 | PINMUX_GPIO(GPIO_FN_MMC_D1, MMC_D1_MARK), | ||
1760 | PINMUX_GPIO(GPIO_FN_MMC_D0, MMC_D0_MARK), | ||
1761 | PINMUX_GPIO(GPIO_FN_MMC_CLK, MMC_CLK_MARK), | ||
1762 | PINMUX_GPIO(GPIO_FN_MMC_CMD, MMC_CMD_MARK), | ||
1763 | |||
1764 | /* IrDA */ | ||
1765 | PINMUX_GPIO(GPIO_FN_IRDA_OUT, IRDA_OUT_MARK), | ||
1766 | PINMUX_GPIO(GPIO_FN_IRDA_IN, IRDA_IN_MARK), | ||
1767 | |||
1768 | /* TSIF */ | ||
1769 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SDAT, TSIF_TS0_SDAT_MARK), | ||
1770 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SCK, TSIF_TS0_SCK_MARK), | ||
1771 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SDEN, TSIF_TS0_SDEN_MARK), | ||
1772 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SPSYNC, TSIF_TS0_SPSYNC_MARK), | ||
1773 | |||
1774 | /* IRQ */ | ||
1775 | PINMUX_GPIO(GPIO_FN_INTC_IRQ7, INTC_IRQ7_MARK), | ||
1776 | PINMUX_GPIO(GPIO_FN_INTC_IRQ6, INTC_IRQ6_MARK), | ||
1777 | PINMUX_GPIO(GPIO_FN_INTC_IRQ5, INTC_IRQ5_MARK), | ||
1778 | PINMUX_GPIO(GPIO_FN_INTC_IRQ4, INTC_IRQ4_MARK), | ||
1779 | PINMUX_GPIO(GPIO_FN_INTC_IRQ3, INTC_IRQ3_MARK), | ||
1780 | PINMUX_GPIO(GPIO_FN_INTC_IRQ2, INTC_IRQ2_MARK), | ||
1781 | PINMUX_GPIO(GPIO_FN_INTC_IRQ1, INTC_IRQ1_MARK), | ||
1782 | PINMUX_GPIO(GPIO_FN_INTC_IRQ0, INTC_IRQ0_MARK), | ||
1783 | }; | ||
1784 | |||
1785 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1786 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
1787 | PTA7_FN, PTA7_OUT, PTA7_IN_PU, PTA7_IN, | ||
1788 | PTA6_FN, PTA6_OUT, PTA6_IN_PU, PTA6_IN, | ||
1789 | PTA5_FN, PTA5_OUT, PTA5_IN_PU, PTA5_IN, | ||
1790 | PTA4_FN, PTA4_OUT, PTA4_IN_PU, PTA4_IN, | ||
1791 | PTA3_FN, PTA3_OUT, PTA3_IN_PU, PTA3_IN, | ||
1792 | PTA2_FN, PTA2_OUT, PTA2_IN_PU, PTA2_IN, | ||
1793 | PTA1_FN, PTA1_OUT, PTA1_IN_PU, PTA1_IN, | ||
1794 | PTA0_FN, PTA0_OUT, PTA0_IN_PU, PTA0_IN } | ||
1795 | }, | ||
1796 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
1797 | PTB7_FN, PTB7_OUT, PTB7_IN_PU, PTB7_IN, | ||
1798 | PTB6_FN, PTB6_OUT, PTB6_IN_PU, PTB6_IN, | ||
1799 | PTB5_FN, PTB5_OUT, PTB5_IN_PU, PTB5_IN, | ||
1800 | PTB4_FN, PTB4_OUT, PTB4_IN_PU, PTB4_IN, | ||
1801 | PTB3_FN, PTB3_OUT, PTB3_IN_PU, PTB3_IN, | ||
1802 | PTB2_FN, PTB2_OUT, PTB2_IN_PU, PTB2_IN, | ||
1803 | PTB1_FN, PTB1_OUT, PTB1_IN_PU, PTB1_IN, | ||
1804 | PTB0_FN, PTB0_OUT, PTB0_IN_PU, PTB0_IN } | ||
1805 | }, | ||
1806 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
1807 | PTC7_FN, PTC7_OUT, PTC7_IN_PU, PTC7_IN, | ||
1808 | PTC6_FN, PTC6_OUT, PTC6_IN_PU, PTC6_IN, | ||
1809 | PTC5_FN, PTC5_OUT, PTC5_IN_PU, PTC5_IN, | ||
1810 | PTC4_FN, PTC4_OUT, PTC4_IN_PU, PTC4_IN, | ||
1811 | PTC3_FN, PTC3_OUT, PTC3_IN_PU, PTC3_IN, | ||
1812 | PTC2_FN, PTC2_OUT, PTC2_IN_PU, PTC2_IN, | ||
1813 | PTC1_FN, PTC1_OUT, PTC1_IN_PU, PTC1_IN, | ||
1814 | PTC0_FN, PTC0_OUT, PTC0_IN_PU, PTC0_IN } | ||
1815 | }, | ||
1816 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
1817 | PTD7_FN, PTD7_OUT, PTD7_IN_PU, PTD7_IN, | ||
1818 | PTD6_FN, PTD6_OUT, PTD6_IN_PU, PTD6_IN, | ||
1819 | PTD5_FN, PTD5_OUT, PTD5_IN_PU, PTD5_IN, | ||
1820 | PTD4_FN, PTD4_OUT, PTD4_IN_PU, PTD4_IN, | ||
1821 | PTD3_FN, PTD3_OUT, PTD3_IN_PU, PTD3_IN, | ||
1822 | PTD2_FN, PTD2_OUT, PTD2_IN_PU, PTD2_IN, | ||
1823 | PTD1_FN, PTD1_OUT, PTD1_IN_PU, PTD1_IN, | ||
1824 | PTD0_FN, PTD0_OUT, PTD0_IN_PU, PTD0_IN } | ||
1825 | }, | ||
1826 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
1827 | PTE7_FN, PTE7_OUT, PTE7_IN_PU, PTE7_IN, | ||
1828 | PTE6_FN, PTE6_OUT, PTE6_IN_PU, PTE6_IN, | ||
1829 | PTE5_FN, PTE5_OUT, PTE5_IN_PU, PTE5_IN, | ||
1830 | PTE4_FN, PTE4_OUT, PTE4_IN_PU, PTE4_IN, | ||
1831 | PTE3_FN, PTE3_OUT, PTE3_IN_PU, PTE3_IN, | ||
1832 | PTE2_FN, PTE2_OUT, PTE2_IN_PU, PTE2_IN, | ||
1833 | PTE1_FN, PTE1_OUT, PTE1_IN_PU, PTE1_IN, | ||
1834 | PTE0_FN, PTE0_OUT, PTE0_IN_PU, PTE0_IN } | ||
1835 | }, | ||
1836 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1837 | PTF7_FN, PTF7_OUT, PTF7_IN_PU, PTF7_IN, | ||
1838 | PTF6_FN, PTF6_OUT, PTF6_IN_PU, PTF6_IN, | ||
1839 | PTF5_FN, PTF5_OUT, PTF5_IN_PU, PTF5_IN, | ||
1840 | PTF4_FN, PTF4_OUT, PTF4_IN_PU, PTF4_IN, | ||
1841 | PTF3_FN, PTF3_OUT, PTF3_IN_PU, PTF3_IN, | ||
1842 | PTF2_FN, PTF2_OUT, PTF2_IN_PU, PTF2_IN, | ||
1843 | PTF1_FN, PTF1_OUT, PTF1_IN_PU, PTF1_IN, | ||
1844 | PTF0_FN, PTF0_OUT, PTF0_IN_PU, PTF0_IN } | ||
1845 | }, | ||
1846 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1847 | 0, 0, 0, 0, | ||
1848 | 0, 0, 0, 0, | ||
1849 | PTG5_FN, PTG5_OUT, 0, 0, | ||
1850 | PTG4_FN, PTG4_OUT, 0, 0, | ||
1851 | PTG3_FN, PTG3_OUT, 0, 0, | ||
1852 | PTG2_FN, PTG2_OUT, 0, 0, | ||
1853 | PTG1_FN, PTG1_OUT, 0, 0, | ||
1854 | PTG0_FN, PTG0_OUT, 0, 0 } | ||
1855 | }, | ||
1856 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1857 | PTH7_FN, PTH7_OUT, PTH7_IN_PU, PTH7_IN, | ||
1858 | PTH6_FN, PTH6_OUT, PTH6_IN_PU, PTH6_IN, | ||
1859 | PTH5_FN, PTH5_OUT, PTH5_IN_PU, PTH5_IN, | ||
1860 | PTH4_FN, PTH4_OUT, PTH4_IN_PU, PTH4_IN, | ||
1861 | PTH3_FN, PTH3_OUT, PTH3_IN_PU, PTH3_IN, | ||
1862 | PTH2_FN, PTH2_OUT, PTH2_IN_PU, PTH2_IN, | ||
1863 | PTH1_FN, PTH1_OUT, PTH1_IN_PU, PTH1_IN, | ||
1864 | PTH0_FN, PTH0_OUT, PTH0_IN_PU, PTH0_IN } | ||
1865 | }, | ||
1866 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1867 | PTJ7_FN, PTJ7_OUT, 0, 0, | ||
1868 | PTJ6_FN, PTJ6_OUT, 0, 0, | ||
1869 | PTJ5_FN, PTJ5_OUT, 0, 0, | ||
1870 | 0, 0, 0, 0, | ||
1871 | PTJ3_FN, PTJ3_OUT, PTJ3_IN_PU, PTJ3_IN, | ||
1872 | PTJ2_FN, PTJ2_OUT, PTJ2_IN_PU, PTJ2_IN, | ||
1873 | PTJ1_FN, PTJ1_OUT, PTJ1_IN_PU, PTJ1_IN, | ||
1874 | PTJ0_FN, PTJ0_OUT, PTJ0_IN_PU, PTJ0_IN } | ||
1875 | }, | ||
1876 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1877 | PTK7_FN, PTK7_OUT, PTK7_IN_PU, PTK7_IN, | ||
1878 | PTK6_FN, PTK6_OUT, PTK6_IN_PU, PTK6_IN, | ||
1879 | PTK5_FN, PTK5_OUT, PTK5_IN_PU, PTK5_IN, | ||
1880 | PTK4_FN, PTK4_OUT, PTK4_IN_PU, PTK4_IN, | ||
1881 | PTK3_FN, PTK3_OUT, PTK3_IN_PU, PTK3_IN, | ||
1882 | PTK2_FN, PTK2_OUT, PTK2_IN_PU, PTK2_IN, | ||
1883 | PTK1_FN, PTK1_OUT, PTK1_IN_PU, PTK1_IN, | ||
1884 | PTK0_FN, PTK0_OUT, PTK0_IN_PU, PTK0_IN } | ||
1885 | }, | ||
1886 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1887 | PTL7_FN, PTL7_OUT, PTL7_IN_PU, PTL7_IN, | ||
1888 | PTL6_FN, PTL6_OUT, PTL6_IN_PU, PTL6_IN, | ||
1889 | PTL5_FN, PTL5_OUT, PTL5_IN_PU, PTL5_IN, | ||
1890 | PTL4_FN, PTL4_OUT, PTL4_IN_PU, PTL4_IN, | ||
1891 | PTL3_FN, PTL3_OUT, PTL3_IN_PU, PTL3_IN, | ||
1892 | PTL2_FN, PTL2_OUT, PTL2_IN_PU, PTL2_IN, | ||
1893 | PTL1_FN, PTL1_OUT, PTL1_IN_PU, PTL1_IN, | ||
1894 | PTL0_FN, PTL0_OUT, PTL0_IN_PU, PTL0_IN } | ||
1895 | }, | ||
1896 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1897 | PTM7_FN, PTM7_OUT, PTM7_IN_PU, PTM7_IN, | ||
1898 | PTM6_FN, PTM6_OUT, PTM6_IN_PU, PTM6_IN, | ||
1899 | PTM5_FN, PTM5_OUT, PTM5_IN_PU, PTM5_IN, | ||
1900 | PTM4_FN, PTM4_OUT, PTM4_IN_PU, PTM4_IN, | ||
1901 | PTM3_FN, PTM3_OUT, PTM3_IN_PU, PTM3_IN, | ||
1902 | PTM2_FN, PTM2_OUT, PTM2_IN_PU, PTM2_IN, | ||
1903 | PTM1_FN, PTM1_OUT, PTM1_IN_PU, PTM1_IN, | ||
1904 | PTM0_FN, PTM0_OUT, PTM0_IN_PU, PTM0_IN } | ||
1905 | }, | ||
1906 | { PINMUX_CFG_REG("PNCR", 0xa4050118, 16, 2) { | ||
1907 | PTN7_FN, PTN7_OUT, PTN7_IN_PU, PTN7_IN, | ||
1908 | PTN6_FN, PTN6_OUT, PTN6_IN_PU, PTN6_IN, | ||
1909 | PTN5_FN, PTN5_OUT, PTN5_IN_PU, PTN5_IN, | ||
1910 | PTN4_FN, PTN4_OUT, PTN4_IN_PU, PTN4_IN, | ||
1911 | PTN3_FN, PTN3_OUT, PTN3_IN_PU, PTN3_IN, | ||
1912 | PTN2_FN, PTN2_OUT, PTN2_IN_PU, PTN2_IN, | ||
1913 | PTN1_FN, PTN1_OUT, PTN1_IN_PU, PTN1_IN, | ||
1914 | PTN0_FN, PTN0_OUT, PTN0_IN_PU, PTN0_IN } | ||
1915 | }, | ||
1916 | { PINMUX_CFG_REG("PQCR", 0xa405011a, 16, 2) { | ||
1917 | PTQ7_FN, PTQ7_OUT, PTQ7_IN_PU, PTQ7_IN, | ||
1918 | PTQ6_FN, PTQ6_OUT, PTQ6_IN_PU, PTQ6_IN, | ||
1919 | PTQ5_FN, PTQ5_OUT, PTQ5_IN_PU, PTQ5_IN, | ||
1920 | PTQ4_FN, PTQ4_OUT, PTQ4_IN_PU, PTQ4_IN, | ||
1921 | PTQ3_FN, PTQ3_OUT, PTQ3_IN_PU, PTQ3_IN, | ||
1922 | PTQ2_FN, PTQ2_OUT, PTQ2_IN_PU, PTQ2_IN, | ||
1923 | PTQ1_FN, PTQ1_OUT, PTQ1_IN_PU, PTQ1_IN, | ||
1924 | PTQ0_FN, PTQ0_OUT, PTQ0_IN_PU, PTQ0_IN } | ||
1925 | }, | ||
1926 | { PINMUX_CFG_REG("PRCR", 0xa405011c, 16, 2) { | ||
1927 | PTR7_FN, PTR7_OUT, PTR7_IN_PU, PTR7_IN, | ||
1928 | PTR6_FN, PTR6_OUT, PTR6_IN_PU, PTR6_IN, | ||
1929 | PTR5_FN, PTR5_OUT, PTR5_IN_PU, PTR5_IN, | ||
1930 | PTR4_FN, PTR4_OUT, PTR4_IN_PU, PTR4_IN, | ||
1931 | PTR3_FN, 0, PTR3_IN_PU, PTR3_IN, | ||
1932 | PTR2_FN, 0, PTR2_IN_PU, PTR2_IN, | ||
1933 | PTR1_FN, PTR1_OUT, PTR1_IN_PU, PTR1_IN, | ||
1934 | PTR0_FN, PTR0_OUT, PTR0_IN_PU, PTR0_IN } | ||
1935 | }, | ||
1936 | { PINMUX_CFG_REG("PSCR", 0xa405011e, 16, 2) { | ||
1937 | 0, 0, 0, 0, | ||
1938 | PTS6_FN, PTS6_OUT, PTS6_IN_PU, PTS6_IN, | ||
1939 | PTS5_FN, PTS5_OUT, PTS5_IN_PU, PTS5_IN, | ||
1940 | PTS4_FN, PTS4_OUT, PTS4_IN_PU, PTS4_IN, | ||
1941 | PTS3_FN, PTS3_OUT, PTS3_IN_PU, PTS3_IN, | ||
1942 | PTS2_FN, PTS2_OUT, PTS2_IN_PU, PTS2_IN, | ||
1943 | PTS1_FN, PTS1_OUT, PTS1_IN_PU, PTS1_IN, | ||
1944 | PTS0_FN, PTS0_OUT, PTS0_IN_PU, PTS0_IN } | ||
1945 | }, | ||
1946 | { PINMUX_CFG_REG("PTCR", 0xa4050140, 16, 2) { | ||
1947 | PTT7_FN, PTT7_OUT, PTT7_IN_PU, PTT7_IN, | ||
1948 | PTT6_FN, PTT6_OUT, PTT6_IN_PU, PTT6_IN, | ||
1949 | PTT5_FN, PTT5_OUT, PTT5_IN_PU, PTT5_IN, | ||
1950 | PTT4_FN, PTT4_OUT, PTT4_IN_PU, PTT4_IN, | ||
1951 | PTT3_FN, PTT3_OUT, PTT3_IN_PU, PTT3_IN, | ||
1952 | PTT2_FN, PTT2_OUT, PTT2_IN_PU, PTT2_IN, | ||
1953 | PTT1_FN, PTT1_OUT, PTT1_IN_PU, PTT1_IN, | ||
1954 | PTT0_FN, PTT0_OUT, PTT0_IN_PU, PTT0_IN } | ||
1955 | }, | ||
1956 | { PINMUX_CFG_REG("PUCR", 0xa4050142, 16, 2) { | ||
1957 | PTU7_FN, PTU7_OUT, PTU7_IN_PU, PTU7_IN, | ||
1958 | PTU6_FN, PTU6_OUT, PTU6_IN_PU, PTU6_IN, | ||
1959 | PTU5_FN, PTU5_OUT, PTU5_IN_PU, PTU5_IN, | ||
1960 | PTU4_FN, PTU4_OUT, PTU4_IN_PU, PTU4_IN, | ||
1961 | PTU3_FN, PTU3_OUT, PTU3_IN_PU, PTU3_IN, | ||
1962 | PTU2_FN, PTU2_OUT, PTU2_IN_PU, PTU2_IN, | ||
1963 | PTU1_FN, PTU1_OUT, PTU1_IN_PU, PTU1_IN, | ||
1964 | PTU0_FN, PTU0_OUT, PTU0_IN_PU, PTU0_IN } | ||
1965 | }, | ||
1966 | { PINMUX_CFG_REG("PVCR", 0xa4050144, 16, 2) { | ||
1967 | PTV7_FN, PTV7_OUT, PTV7_IN_PU, PTV7_IN, | ||
1968 | PTV6_FN, PTV6_OUT, PTV6_IN_PU, PTV6_IN, | ||
1969 | PTV5_FN, PTV5_OUT, PTV5_IN_PU, PTV5_IN, | ||
1970 | PTV4_FN, PTV4_OUT, PTV4_IN_PU, PTV4_IN, | ||
1971 | PTV3_FN, PTV3_OUT, PTV3_IN_PU, PTV3_IN, | ||
1972 | PTV2_FN, PTV2_OUT, PTV2_IN_PU, PTV2_IN, | ||
1973 | PTV1_FN, PTV1_OUT, PTV1_IN_PU, PTV1_IN, | ||
1974 | PTV0_FN, PTV0_OUT, PTV0_IN_PU, PTV0_IN } | ||
1975 | }, | ||
1976 | { PINMUX_CFG_REG("PWCR", 0xa4050146, 16, 2) { | ||
1977 | PTW7_FN, PTW7_OUT, PTW7_IN_PU, PTW7_IN, | ||
1978 | PTW6_FN, PTW6_OUT, PTW6_IN_PU, PTW6_IN, | ||
1979 | PTW5_FN, PTW5_OUT, PTW5_IN_PU, PTW5_IN, | ||
1980 | PTW4_FN, PTW4_OUT, PTW4_IN_PU, PTW4_IN, | ||
1981 | PTW3_FN, PTW3_OUT, PTW3_IN_PU, PTW3_IN, | ||
1982 | PTW2_FN, PTW2_OUT, PTW2_IN_PU, PTW2_IN, | ||
1983 | PTW1_FN, PTW1_OUT, PTW1_IN_PU, PTW1_IN, | ||
1984 | PTW0_FN, PTW0_OUT, PTW0_IN_PU, PTW0_IN } | ||
1985 | }, | ||
1986 | { PINMUX_CFG_REG("PXCR", 0xa4050148, 16, 2) { | ||
1987 | PTX7_FN, PTX7_OUT, PTX7_IN_PU, PTX7_IN, | ||
1988 | PTX6_FN, PTX6_OUT, PTX6_IN_PU, PTX6_IN, | ||
1989 | PTX5_FN, PTX5_OUT, PTX5_IN_PU, PTX5_IN, | ||
1990 | PTX4_FN, PTX4_OUT, PTX4_IN_PU, PTX4_IN, | ||
1991 | PTX3_FN, PTX3_OUT, PTX3_IN_PU, PTX3_IN, | ||
1992 | PTX2_FN, PTX2_OUT, PTX2_IN_PU, PTX2_IN, | ||
1993 | PTX1_FN, PTX1_OUT, PTX1_IN_PU, PTX1_IN, | ||
1994 | PTX0_FN, PTX0_OUT, PTX0_IN_PU, PTX0_IN } | ||
1995 | }, | ||
1996 | { PINMUX_CFG_REG("PYCR", 0xa405014a, 16, 2) { | ||
1997 | PTY7_FN, PTY7_OUT, PTY7_IN_PU, PTY7_IN, | ||
1998 | PTY6_FN, PTY6_OUT, PTY6_IN_PU, PTY6_IN, | ||
1999 | PTY5_FN, PTY5_OUT, PTY5_IN_PU, PTY5_IN, | ||
2000 | PTY4_FN, PTY4_OUT, PTY4_IN_PU, PTY4_IN, | ||
2001 | PTY3_FN, PTY3_OUT, PTY3_IN_PU, PTY3_IN, | ||
2002 | PTY2_FN, PTY2_OUT, PTY2_IN_PU, PTY2_IN, | ||
2003 | PTY1_FN, PTY1_OUT, PTY1_IN_PU, PTY1_IN, | ||
2004 | PTY0_FN, PTY0_OUT, PTY0_IN_PU, PTY0_IN } | ||
2005 | }, | ||
2006 | { PINMUX_CFG_REG("PZCR", 0xa405014c, 16, 2) { | ||
2007 | PTZ7_FN, PTZ7_OUT, PTZ7_IN_PU, PTZ7_IN, | ||
2008 | PTZ6_FN, PTZ6_OUT, PTZ6_IN_PU, PTZ6_IN, | ||
2009 | PTZ5_FN, PTZ5_OUT, PTZ5_IN_PU, PTZ5_IN, | ||
2010 | PTZ4_FN, PTZ4_OUT, PTZ4_IN_PU, PTZ4_IN, | ||
2011 | PTZ3_FN, PTZ3_OUT, PTZ3_IN_PU, PTZ3_IN, | ||
2012 | PTZ2_FN, PTZ2_OUT, PTZ2_IN_PU, PTZ2_IN, | ||
2013 | PTZ1_FN, PTZ1_OUT, PTZ1_IN_PU, PTZ1_IN, | ||
2014 | PTZ0_FN, PTZ0_OUT, PTZ0_IN_PU, PTZ0_IN } | ||
2015 | }, | ||
2016 | { PINMUX_CFG_REG("PSELA", 0xa405014e, 16, 1) { | ||
2017 | PSA15_0, PSA15_1, | ||
2018 | PSA14_0, PSA14_1, | ||
2019 | PSA13_0, PSA13_1, | ||
2020 | PSA12_0, PSA12_1, | ||
2021 | 0, 0, | ||
2022 | PSA10_0, PSA10_1, | ||
2023 | PSA9_0, PSA9_1, | ||
2024 | PSA8_0, PSA8_1, | ||
2025 | PSA7_0, PSA7_1, | ||
2026 | PSA6_0, PSA6_1, | ||
2027 | PSA5_0, PSA5_1, | ||
2028 | 0, 0, | ||
2029 | PSA3_0, PSA3_1, | ||
2030 | PSA2_0, PSA2_1, | ||
2031 | PSA1_0, PSA1_1, | ||
2032 | PSA0_0, PSA0_1} | ||
2033 | }, | ||
2034 | { PINMUX_CFG_REG("PSELB", 0xa4050150, 16, 1) { | ||
2035 | 0, 0, | ||
2036 | PSB14_0, PSB14_1, | ||
2037 | PSB13_0, PSB13_1, | ||
2038 | PSB12_0, PSB12_1, | ||
2039 | PSB11_0, PSB11_1, | ||
2040 | PSB10_0, PSB10_1, | ||
2041 | PSB9_0, PSB9_1, | ||
2042 | PSB8_0, PSB8_1, | ||
2043 | PSB7_0, PSB7_1, | ||
2044 | PSB6_0, PSB6_1, | ||
2045 | PSB5_0, PSB5_1, | ||
2046 | PSB4_0, PSB4_1, | ||
2047 | PSB3_0, PSB3_1, | ||
2048 | PSB2_0, PSB2_1, | ||
2049 | PSB1_0, PSB1_1, | ||
2050 | PSB0_0, PSB0_1} | ||
2051 | }, | ||
2052 | { PINMUX_CFG_REG("PSELC", 0xa4050152, 16, 1) { | ||
2053 | PSC15_0, PSC15_1, | ||
2054 | PSC14_0, PSC14_1, | ||
2055 | PSC13_0, PSC13_1, | ||
2056 | PSC12_0, PSC12_1, | ||
2057 | PSC11_0, PSC11_1, | ||
2058 | PSC10_0, PSC10_1, | ||
2059 | PSC9_0, PSC9_1, | ||
2060 | PSC8_0, PSC8_1, | ||
2061 | PSC7_0, PSC7_1, | ||
2062 | PSC6_0, PSC6_1, | ||
2063 | PSC5_0, PSC5_1, | ||
2064 | PSC4_0, PSC4_1, | ||
2065 | 0, 0, | ||
2066 | PSC2_0, PSC2_1, | ||
2067 | PSC1_0, PSC1_1, | ||
2068 | PSC0_0, PSC0_1} | ||
2069 | }, | ||
2070 | { PINMUX_CFG_REG("PSELD", 0xa4050154, 16, 1) { | ||
2071 | PSD15_0, PSD15_1, | ||
2072 | PSD14_0, PSD14_1, | ||
2073 | PSD13_0, PSD13_1, | ||
2074 | PSD12_0, PSD12_1, | ||
2075 | PSD11_0, PSD11_1, | ||
2076 | PSD10_0, PSD10_1, | ||
2077 | PSD9_0, PSD9_1, | ||
2078 | PSD8_0, PSD8_1, | ||
2079 | PSD7_0, PSD7_1, | ||
2080 | PSD6_0, PSD6_1, | ||
2081 | PSD5_0, PSD5_1, | ||
2082 | PSD4_0, PSD4_1, | ||
2083 | PSD3_0, PSD3_1, | ||
2084 | PSD2_0, PSD2_1, | ||
2085 | PSD1_0, PSD1_1, | ||
2086 | PSD0_0, PSD0_1} | ||
2087 | }, | ||
2088 | { PINMUX_CFG_REG("PSELE", 0xa4050156, 16, 1) { | ||
2089 | PSE15_0, PSE15_1, | ||
2090 | PSE14_0, PSE14_1, | ||
2091 | PSE13_0, PSE13_1, | ||
2092 | PSE12_0, PSE12_1, | ||
2093 | PSE11_0, PSE11_1, | ||
2094 | PSE10_0, PSE10_1, | ||
2095 | PSE9_0, PSE9_1, | ||
2096 | PSE8_0, PSE8_1, | ||
2097 | PSE7_0, PSE7_1, | ||
2098 | PSE6_0, PSE6_1, | ||
2099 | PSE5_0, PSE5_1, | ||
2100 | PSE4_0, PSE4_1, | ||
2101 | PSE3_0, PSE3_1, | ||
2102 | PSE2_0, PSE2_1, | ||
2103 | PSE1_0, PSE1_1, | ||
2104 | PSE0_0, PSE0_1} | ||
2105 | }, | ||
2106 | {} | ||
2107 | }; | ||
2108 | |||
2109 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2110 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { | ||
2111 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
2112 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
2113 | }, | ||
2114 | { PINMUX_DATA_REG("PBDR", 0xa4050122, 8) { | ||
2115 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
2116 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
2117 | }, | ||
2118 | { PINMUX_DATA_REG("PCDR", 0xa4050124, 8) { | ||
2119 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
2120 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
2121 | }, | ||
2122 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
2123 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
2124 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
2125 | }, | ||
2126 | { PINMUX_DATA_REG("PEDR", 0xa4050128, 8) { | ||
2127 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
2128 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
2129 | }, | ||
2130 | { PINMUX_DATA_REG("PFDR", 0xa405012a, 8) { | ||
2131 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
2132 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
2133 | }, | ||
2134 | { PINMUX_DATA_REG("PGDR", 0xa405012c, 8) { | ||
2135 | 0, 0, PTG5_DATA, PTG4_DATA, | ||
2136 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
2137 | }, | ||
2138 | { PINMUX_DATA_REG("PHDR", 0xa405012e, 8) { | ||
2139 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
2140 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
2141 | }, | ||
2142 | { PINMUX_DATA_REG("PJDR", 0xa4050130, 8) { | ||
2143 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, 0, | ||
2144 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
2145 | }, | ||
2146 | { PINMUX_DATA_REG("PKDR", 0xa4050132, 8) { | ||
2147 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
2148 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
2149 | }, | ||
2150 | { PINMUX_DATA_REG("PLDR", 0xa4050134, 8) { | ||
2151 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
2152 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
2153 | }, | ||
2154 | { PINMUX_DATA_REG("PMDR", 0xa4050136, 8) { | ||
2155 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
2156 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
2157 | }, | ||
2158 | { PINMUX_DATA_REG("PNDR", 0xa4050138, 8) { | ||
2159 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
2160 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
2161 | }, | ||
2162 | { PINMUX_DATA_REG("PQDR", 0xa405013a, 8) { | ||
2163 | PTQ7_DATA, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
2164 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
2165 | }, | ||
2166 | { PINMUX_DATA_REG("PRDR", 0xa405013c, 8) { | ||
2167 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
2168 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
2169 | }, | ||
2170 | { PINMUX_DATA_REG("PSDR", 0xa405013e, 8) { | ||
2171 | 0, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
2172 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
2173 | }, | ||
2174 | { PINMUX_DATA_REG("PTDR", 0xa4050160, 8) { | ||
2175 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
2176 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
2177 | }, | ||
2178 | { PINMUX_DATA_REG("PUDR", 0xa4050162, 8) { | ||
2179 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
2180 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
2181 | }, | ||
2182 | { PINMUX_DATA_REG("PVDR", 0xa4050164, 8) { | ||
2183 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
2184 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
2185 | }, | ||
2186 | { PINMUX_DATA_REG("PWDR", 0xa4050166, 8) { | ||
2187 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
2188 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
2189 | }, | ||
2190 | { PINMUX_DATA_REG("PXDR", 0xa4050168, 8) { | ||
2191 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
2192 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
2193 | }, | ||
2194 | { PINMUX_DATA_REG("PYDR", 0xa405016a, 8) { | ||
2195 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
2196 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
2197 | }, | ||
2198 | { PINMUX_DATA_REG("PZDR", 0xa405016c, 8) { | ||
2199 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
2200 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
2201 | }, | ||
2202 | { }, | ||
2203 | }; | ||
2204 | |||
2205 | static struct pinmux_info sh7724_pinmux_info = { | ||
2206 | .name = "sh7724_pfc", | ||
2207 | .reserved_id = PINMUX_RESERVED, | ||
2208 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2209 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
2210 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
2211 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
2212 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2213 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2214 | |||
2215 | .first_gpio = GPIO_PTA7, | ||
2216 | .last_gpio = GPIO_FN_INTC_IRQ0, | ||
2217 | |||
2218 | .gpios = pinmux_gpios, | ||
2219 | .cfg_regs = pinmux_config_regs, | ||
2220 | .data_regs = pinmux_data_regs, | ||
2221 | |||
2222 | .gpio_data = pinmux_data, | ||
2223 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2224 | }; | ||
2225 | 19 | ||
2226 | static int __init plat_pinmux_setup(void) | 20 | static int __init plat_pinmux_setup(void) |
2227 | { | 21 | { |
2228 | return register_pinmux(&sh7724_pinmux_info); | 22 | return sh_pfc_register("pfc-sh7724", NULL, 0); |
2229 | } | 23 | } |
2230 | arch_initcall(plat_pinmux_setup); | 24 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7734.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7734.c index eed3b9d19d38..ea2db632a764 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7734.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7734.c | |||
@@ -8,2448 +8,11 @@ | |||
8 | * License. See the file "COPYING" in the main directory of this archive | 8 | * License. See the file "COPYING" in the main directory of this archive |
9 | * for more details. | 9 | * for more details. |
10 | */ | 10 | */ |
11 | #include <linux/bug.h> | ||
11 | #include <linux/init.h> | 12 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
13 | #include <linux/gpio.h> | ||
14 | #include <linux/ioport.h> | 14 | #include <linux/ioport.h> |
15 | #include <cpu/sh7734.h> | 15 | #include <cpu/pfc.h> |
16 | |||
17 | #define CPU_32_PORT(fn, pfx, sfx) \ | ||
18 | PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ | ||
19 | PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \ | ||
20 | PORT_1(fn, pfx##31, sfx) | ||
21 | |||
22 | #define CPU_32_PORT5(fn, pfx, sfx) \ | ||
23 | PORT_1(fn, pfx##0, sfx), PORT_1(fn, pfx##1, sfx), \ | ||
24 | PORT_1(fn, pfx##2, sfx), PORT_1(fn, pfx##3, sfx), \ | ||
25 | PORT_1(fn, pfx##4, sfx), PORT_1(fn, pfx##5, sfx), \ | ||
26 | PORT_1(fn, pfx##6, sfx), PORT_1(fn, pfx##7, sfx), \ | ||
27 | PORT_1(fn, pfx##8, sfx), PORT_1(fn, pfx##9, sfx), \ | ||
28 | PORT_1(fn, pfx##10, sfx), PORT_1(fn, pfx##11, sfx) | ||
29 | |||
30 | /* GPSR0 - GPSR5 */ | ||
31 | #define CPU_ALL_PORT(fn, pfx, sfx) \ | ||
32 | CPU_32_PORT(fn, pfx##_0_, sfx), \ | ||
33 | CPU_32_PORT(fn, pfx##_1_, sfx), \ | ||
34 | CPU_32_PORT(fn, pfx##_2_, sfx), \ | ||
35 | CPU_32_PORT(fn, pfx##_3_, sfx), \ | ||
36 | CPU_32_PORT(fn, pfx##_4_, sfx), \ | ||
37 | CPU_32_PORT5(fn, pfx##_5_, sfx) | ||
38 | |||
39 | #define _GP_GPIO(pfx, sfx) PINMUX_GPIO(GPIO_GP##pfx, GP##pfx##_DATA) | ||
40 | #define _GP_DATA(pfx, sfx) PINMUX_DATA(GP##pfx##_DATA, GP##pfx##_FN, \ | ||
41 | GP##pfx##_IN, GP##pfx##_OUT) | ||
42 | |||
43 | #define _GP_INOUTSEL(pfx, sfx) GP##pfx##_IN, GP##pfx##_OUT | ||
44 | #define _GP_INDT(pfx, sfx) GP##pfx##_DATA | ||
45 | |||
46 | #define GP_ALL(str) CPU_ALL_PORT(_PORT_ALL, GP, str) | ||
47 | #define PINMUX_GPIO_GP_ALL() CPU_ALL_PORT(_GP_GPIO, , unused) | ||
48 | #define PINMUX_DATA_GP_ALL() CPU_ALL_PORT(_GP_DATA, , unused) | ||
49 | |||
50 | #define PORT_10_REV(fn, pfx, sfx) \ | ||
51 | PORT_1(fn, pfx##9, sfx), PORT_1(fn, pfx##8, sfx), \ | ||
52 | PORT_1(fn, pfx##7, sfx), PORT_1(fn, pfx##6, sfx), \ | ||
53 | PORT_1(fn, pfx##5, sfx), PORT_1(fn, pfx##4, sfx), \ | ||
54 | PORT_1(fn, pfx##3, sfx), PORT_1(fn, pfx##2, sfx), \ | ||
55 | PORT_1(fn, pfx##1, sfx), PORT_1(fn, pfx##0, sfx) | ||
56 | |||
57 | #define CPU_32_PORT_REV(fn, pfx, sfx) \ | ||
58 | PORT_1(fn, pfx##31, sfx), PORT_1(fn, pfx##30, sfx), \ | ||
59 | PORT_10_REV(fn, pfx##2, sfx), PORT_10_REV(fn, pfx##1, sfx), \ | ||
60 | PORT_10_REV(fn, pfx, sfx) | ||
61 | |||
62 | #define GP_INOUTSEL(bank) CPU_32_PORT_REV(_GP_INOUTSEL, _##bank##_, unused) | ||
63 | #define GP_INDT(bank) CPU_32_PORT_REV(_GP_INDT, _##bank##_, unused) | ||
64 | |||
65 | #define PINMUX_IPSR_DATA(ipsr, fn) PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##fn) | ||
66 | #define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms) PINMUX_DATA(fn##_MARK, FN_##ms, \ | ||
67 | FN_##ipsr, FN_##fn) | ||
68 | |||
69 | enum { | ||
70 | PINMUX_RESERVED = 0, | ||
71 | |||
72 | PINMUX_DATA_BEGIN, | ||
73 | GP_ALL(DATA), /* GP_0_0_DATA -> GP_5_11_DATA */ | ||
74 | PINMUX_DATA_END, | ||
75 | |||
76 | PINMUX_INPUT_BEGIN, | ||
77 | GP_ALL(IN), /* GP_0_0_IN -> GP_5_11_IN */ | ||
78 | PINMUX_INPUT_END, | ||
79 | |||
80 | PINMUX_OUTPUT_BEGIN, | ||
81 | GP_ALL(OUT), /* GP_0_0_OUT -> GP_5_11_OUT */ | ||
82 | PINMUX_OUTPUT_END, | ||
83 | |||
84 | PINMUX_FUNCTION_BEGIN, | ||
85 | GP_ALL(FN), /* GP_0_0_FN -> GP_5_11_FN */ | ||
86 | |||
87 | /* GPSR0 */ | ||
88 | FN_IP1_9_8, FN_IP1_11_10, FN_IP1_13_12, FN_IP1_15_14, | ||
89 | FN_IP0_7_6, FN_IP0_9_8, FN_IP0_11_10, FN_IP0_13_12, | ||
90 | FN_IP0_15_14, FN_IP0_17_16, FN_IP0_19_18, FN_IP0_21_20, | ||
91 | FN_IP0_23_22, FN_IP0_25_24, FN_IP0_27_26, FN_IP0_29_28, | ||
92 | FN_IP0_31_30, FN_IP1_1_0, FN_IP1_3_2, FN_IP1_5_4, | ||
93 | FN_IP1_7_6, FN_IP11_28, FN_IP0_1_0, FN_IP0_3_2, | ||
94 | FN_IP0_5_4, FN_IP1_17_16, FN_IP1_19_18, FN_IP1_22_20, | ||
95 | FN_IP1_25_23, FN_IP1_28_26, FN_IP1_31_29, FN_IP2_2_0, | ||
96 | |||
97 | /* GPSR1 */ | ||
98 | FN_IP3_20, FN_IP3_29_27, FN_IP11_20_19, FN_IP11_22_21, | ||
99 | FN_IP2_16_14, FN_IP2_19_17, FN_IP2_22_20, FN_IP2_24_23, | ||
100 | FN_IP2_27_25, FN_IP2_30_28, FN_IP3_1_0, FN_CLKOUT, | ||
101 | FN_BS, FN_CS0, FN_IP3_2, FN_EX_CS0, | ||
102 | FN_IP3_5_3, FN_IP3_8_6, FN_IP3_11_9, FN_IP3_14_12, | ||
103 | FN_IP3_17_15, FN_RD, FN_IP3_19_18, FN_WE0, | ||
104 | FN_WE1, FN_IP2_4_3, FN_IP3_23_21, FN_IP3_26_24, | ||
105 | FN_IP2_7_5, FN_IP2_10_8, FN_IP2_13_11, FN_IP11_25_23, | ||
106 | |||
107 | /* GPSR2 */ | ||
108 | FN_IP11_6_4, FN_IP11_9_7, FN_IP11_11_10, FN_IP4_2_0, | ||
109 | FN_IP8_29_28, FN_IP11_27_26, FN_IP8_22_20, FN_IP8_25_23, | ||
110 | FN_IP11_12, FN_IP8_27_26, FN_IP4_5_3, FN_IP4_8_6, | ||
111 | FN_IP4_11_9, FN_IP4_14_12, FN_IP4_17_15, FN_IP4_19_18, | ||
112 | FN_IP4_21_20, FN_IP4_23_22, FN_IP4_25_24, FN_IP4_27_26, | ||
113 | FN_IP4_29_28, FN_IP4_31_30, FN_IP5_2_0, FN_IP5_5_3, | ||
114 | FN_IP5_8_6, FN_IP5_11_9, FN_IP5_14_12, FN_IP5_17_15, | ||
115 | FN_IP5_20_18, FN_IP5_22_21, FN_IP5_24_23, FN_IP5_26_25, | ||
116 | |||
117 | /* GPSR3 */ | ||
118 | FN_IP6_2_0, FN_IP6_5_3, FN_IP6_7_6, FN_IP6_9_8, | ||
119 | FN_IP6_11_10, FN_IP6_13_12, FN_IP6_15_14, FN_IP6_17_16, | ||
120 | FN_IP6_20_18, FN_IP6_23_21, FN_IP7_2_0, FN_IP7_5_3, | ||
121 | FN_IP7_8_6, FN_IP7_11_9, FN_IP7_14_12, FN_IP7_17_15, | ||
122 | FN_IP7_20_18, FN_IP7_23_21, FN_IP7_26_24, FN_IP7_28_27, | ||
123 | FN_IP7_30_29, FN_IP8_1_0, FN_IP8_3_2, FN_IP8_5_4, | ||
124 | FN_IP8_7_6, FN_IP8_9_8, FN_IP8_11_10, FN_IP8_13_12, | ||
125 | FN_IP8_15_14, FN_IP8_17_16, FN_IP8_19_18, FN_IP9_1_0, | ||
126 | |||
127 | /* GPSR4 */ | ||
128 | FN_IP9_19_18, FN_IP9_21_20, FN_IP9_23_22, FN_IP9_25_24, | ||
129 | FN_IP9_11_10, FN_IP9_13_12, FN_IP9_15_14, FN_IP9_17_16, | ||
130 | FN_IP9_3_2, FN_IP9_5_4, FN_IP9_7_6, FN_IP9_9_8, | ||
131 | FN_IP9_27_26, FN_IP9_29_28, FN_IP10_2_0, FN_IP10_5_3, | ||
132 | FN_IP10_8_6, FN_IP10_11_9, FN_IP10_14_12, FN_IP10_15, | ||
133 | FN_IP10_18_16, FN_IP10_21_19, FN_IP11_0, FN_IP11_1, | ||
134 | FN_SCL0, FN_IP11_2, FN_PENC0, FN_IP11_15_13, /* Need check*/ | ||
135 | FN_USB_OVC0, FN_IP11_18_16, | ||
136 | FN_IP10_22, FN_IP10_24_23, | ||
137 | |||
138 | /* GPSR5 */ | ||
139 | FN_IP10_25, FN_IP11_3, FN_IRQ2_B, FN_IRQ3_B, | ||
140 | FN_IP10_27_26, /* 10 */ | ||
141 | FN_IP10_29_28, /* 11 */ | ||
142 | |||
143 | /* IPSR0 */ | ||
144 | FN_A15, FN_ST0_VCO_CLKIN, FN_LCD_DATA15_A, FN_TIOC3D_C, | ||
145 | FN_A14, FN_LCD_DATA14_A, FN_TIOC3C_C, | ||
146 | FN_A13, FN_LCD_DATA13_A, FN_TIOC3B_C, | ||
147 | FN_A12, FN_LCD_DATA12_A, FN_TIOC3A_C, | ||
148 | FN_A11, FN_ST0_D7, FN_LCD_DATA11_A, FN_TIOC2B_C, | ||
149 | FN_A10, FN_ST0_D6, FN_LCD_DATA10_A, FN_TIOC2A_C, | ||
150 | FN_A9, FN_ST0_D5, FN_LCD_DATA9_A, FN_TIOC1B_C, | ||
151 | FN_A8, FN_ST0_D4, FN_LCD_DATA8_A, FN_TIOC1A_C, | ||
152 | FN_A7, FN_ST0_D3, FN_LCD_DATA7_A, FN_TIOC0D_C, | ||
153 | FN_A6, FN_ST0_D2, FN_LCD_DATA6_A, FN_TIOC0C_C, | ||
154 | FN_A5, FN_ST0_D1, FN_LCD_DATA5_A, FN_TIOC0B_C, | ||
155 | FN_A4, FN_ST0_D0, FN_LCD_DATA4_A, FN_TIOC0A_C, | ||
156 | FN_A3, FN_ST0_VLD, FN_LCD_DATA3_A, FN_TCLKD_C, | ||
157 | FN_A2, FN_ST0_SYC, FN_LCD_DATA2_A, FN_TCLKC_C, | ||
158 | FN_A1, FN_ST0_REQ, FN_LCD_DATA1_A, FN_TCLKB_C, | ||
159 | FN_A0, FN_ST0_CLKIN, FN_LCD_DATA0_A, FN_TCLKA_C, | ||
160 | |||
161 | /* IPSR1 */ | ||
162 | FN_D3, FN_SD0_DAT3_A, FN_MMC_D3_A, FN_ST1_D6, FN_FD3_A, | ||
163 | FN_D2, FN_SD0_DAT2_A, FN_MMC_D2_A, FN_ST1_D5, FN_FD2_A, | ||
164 | FN_D1, FN_SD0_DAT1_A, FN_MMC_D1_A, FN_ST1_D4, FN_FD1_A, | ||
165 | FN_D0, FN_SD0_DAT0_A, FN_MMC_D0_A, FN_ST1_D3, FN_FD0_A, | ||
166 | FN_A25, FN_TX2_D, FN_ST1_D2, | ||
167 | FN_A24, FN_RX2_D, FN_ST1_D1, | ||
168 | FN_A23, FN_ST1_D0, FN_LCD_M_DISP_A, | ||
169 | FN_A22, FN_ST1_VLD, FN_LCD_VEPWC_A, | ||
170 | FN_A21, FN_ST1_SYC, FN_LCD_VCPWC_A, | ||
171 | FN_A20, FN_ST1_REQ, FN_LCD_FLM_A, | ||
172 | FN_A19, FN_ST1_CLKIN, FN_LCD_CLK_A, FN_TIOC4D_C, | ||
173 | FN_A18, FN_ST1_PWM, FN_LCD_CL2_A, FN_TIOC4C_C, | ||
174 | FN_A17, FN_ST1_VCO_CLKIN, FN_LCD_CL1_A, FN_TIOC4B_C, | ||
175 | FN_A16, FN_ST0_PWM, FN_LCD_DON_A, FN_TIOC4A_C, | ||
176 | |||
177 | /* IPSR2 */ | ||
178 | FN_D14, FN_TX2_B, FN_FSE_A, FN_ET0_TX_CLK_B, | ||
179 | FN_D13, FN_RX2_B, FN_FRB_A, FN_ET0_ETXD6_B, | ||
180 | FN_D12, FN_FWE_A, FN_ET0_ETXD5_B, | ||
181 | FN_D11, FN_RSPI_MISO_A, FN_QMI_QIO1_A, FN_FRE_A, | ||
182 | FN_ET0_ETXD3_B, | ||
183 | FN_D10, FN_RSPI_MOSI_A, FN_QMO_QIO0_A, FN_FALE_A, | ||
184 | FN_ET0_ETXD2_B, | ||
185 | FN_D9, FN_SD0_CMD_A, FN_MMC_CMD_A, FN_QIO3_A, FN_FCLE_A, | ||
186 | FN_ET0_ETXD1_B, | ||
187 | FN_D8, FN_SD0_CLK_A, FN_MMC_CLK_A, FN_QIO2_A, FN_FCE_A, | ||
188 | FN_ET0_GTX_CLK_B, | ||
189 | FN_D7, FN_RSPI_SSL_A, FN_MMC_D7_A, FN_QSSL_A, FN_FD7_A, | ||
190 | FN_D6, FN_RSPI_RSPCK_A, FN_MMC_D6_A, FN_QSPCLK_A, FN_FD6_A, | ||
191 | FN_D5, FN_SD0_WP_A, FN_MMC_D5_A, FN_FD5_A, | ||
192 | FN_D4, FN_SD0_CD_A, FN_MMC_D4_A, FN_ST1_D7, FN_FD4_A, | ||
193 | |||
194 | /* IPSR3 */ | ||
195 | FN_DRACK0, FN_SD1_DAT2_A, FN_ATAG, FN_TCLK1_A, FN_ET0_ETXD7, | ||
196 | FN_EX_WAIT2, FN_SD1_DAT1_A, FN_DACK2, FN_CAN1_RX_C, | ||
197 | FN_ET0_MAGIC_C, FN_ET0_ETXD6_A, | ||
198 | FN_EX_WAIT1, FN_SD1_DAT0_A, FN_DREQ2, FN_CAN1_TX_C, | ||
199 | FN_ET0_LINK_C, FN_ET0_ETXD5_A, | ||
200 | FN_EX_WAIT0, FN_TCLK1_B, | ||
201 | FN_RD_WR, FN_TCLK0, FN_CAN_CLK_B, FN_ET0_ETXD4, | ||
202 | FN_EX_CS5, FN_SD1_CMD_A, FN_ATADIR, FN_QSSL_B, FN_ET0_ETXD3_A, | ||
203 | FN_EX_CS4, FN_SD1_WP_A, FN_ATAWR, FN_QMI_QIO1_B, FN_ET0_ETXD2_A, | ||
204 | FN_EX_CS3, FN_SD1_CD_A, FN_ATARD, FN_QMO_QIO0_B, FN_ET0_ETXD1_A, | ||
205 | FN_EX_CS2, FN_TX3_B, FN_ATACS1, FN_QSPCLK_B, FN_ET0_GTX_CLK_A, | ||
206 | FN_EX_CS1, FN_RX3_B, FN_ATACS0, FN_QIO2_B, FN_ET0_ETXD0, | ||
207 | FN_CS1_A26, FN_QIO3_B, | ||
208 | FN_D15, FN_SCK2_B, | ||
209 | |||
210 | /* IPSR4 */ | ||
211 | FN_SCK2_A, FN_VI0_G3, | ||
212 | FN_RTS1_B, FN_VI0_G2, | ||
213 | FN_CTS1_B, FN_VI0_DATA7_VI0_G1, | ||
214 | FN_TX1_B, FN_VI0_DATA6_VI0_G0, FN_ET0_PHY_INT_A, | ||
215 | FN_RX1_B, FN_VI0_DATA5_VI0_B5, FN_ET0_MAGIC_A, | ||
216 | FN_SCK1_B, FN_VI0_DATA4_VI0_B4, FN_ET0_LINK_A, | ||
217 | FN_RTS0_B, FN_VI0_DATA3_VI0_B3, FN_ET0_MDIO_A, | ||
218 | FN_CTS0_B, FN_VI0_DATA2_VI0_B2, FN_RMII0_MDIO_A, FN_ET0_MDC, | ||
219 | FN_HTX0_A, FN_TX1_A, FN_VI0_DATA1_VI0_B1, FN_RMII0_MDC_A, FN_ET0_COL, | ||
220 | FN_HRX0_A, FN_RX1_A, FN_VI0_DATA0_VI0_B0, FN_RMII0_CRS_DV_A, FN_ET0_CRS, | ||
221 | FN_HSCK0_A, FN_SCK1_A, FN_VI0_VSYNC, FN_RMII0_RX_ER_A, FN_ET0_RX_ER, | ||
222 | FN_HRTS0_A, FN_RTS1_A, FN_VI0_HSYNC, FN_RMII0_TXD_EN_A, FN_ET0_RX_DV, | ||
223 | FN_HCTS0_A, FN_CTS1_A, FN_VI0_FIELD, FN_RMII0_RXD1_A, FN_ET0_ERXD7, | ||
224 | |||
225 | /* IPSR5 */ | ||
226 | FN_SD2_CLK_A, FN_RX2_A, FN_VI0_G4, FN_ET0_RX_CLK_B, | ||
227 | FN_SD2_CMD_A, FN_TX2_A, FN_VI0_G5, FN_ET0_ERXD2_B, | ||
228 | FN_SD2_DAT0_A, FN_RX3_A, FN_VI0_R0, FN_ET0_ERXD3_B, | ||
229 | FN_SD2_DAT1_A, FN_TX3_A, FN_VI0_R1, FN_ET0_MDIO_B, | ||
230 | FN_SD2_DAT2_A, FN_RX4_A, FN_VI0_R2, FN_ET0_LINK_B, | ||
231 | FN_SD2_DAT3_A, FN_TX4_A, FN_VI0_R3, FN_ET0_MAGIC_B, | ||
232 | FN_SD2_CD_A, FN_RX5_A, FN_VI0_R4, FN_ET0_PHY_INT_B, | ||
233 | FN_SD2_WP_A, FN_TX5_A, FN_VI0_R5, | ||
234 | FN_REF125CK, FN_ADTRG, FN_RX5_C, | ||
235 | FN_REF50CK, FN_CTS1_E, FN_HCTS0_D, | ||
236 | |||
237 | /* IPSR6 */ | ||
238 | FN_DU0_DR0, FN_SCIF_CLK_B, FN_HRX0_D, FN_IETX_A, FN_TCLKA_A, FN_HIFD00, | ||
239 | FN_DU0_DR1, FN_SCK0_B, FN_HTX0_D, FN_IERX_A, FN_TCLKB_A, FN_HIFD01, | ||
240 | FN_DU0_DR2, FN_RX0_B, FN_TCLKC_A, FN_HIFD02, | ||
241 | FN_DU0_DR3, FN_TX0_B, FN_TCLKD_A, FN_HIFD03, | ||
242 | FN_DU0_DR4, FN_CTS0_C, FN_TIOC0A_A, FN_HIFD04, | ||
243 | FN_DU0_DR5, FN_RTS0_C, FN_TIOC0B_A, FN_HIFD05, | ||
244 | FN_DU0_DR6, FN_SCK1_C, FN_TIOC0C_A, FN_HIFD06, | ||
245 | FN_DU0_DR7, FN_RX1_C, FN_TIOC0D_A, FN_HIFD07, | ||
246 | FN_DU0_DG0, FN_TX1_C, FN_HSCK0_D, FN_IECLK_A, FN_TIOC1A_A, FN_HIFD08, | ||
247 | FN_DU0_DG1, FN_CTS1_C, FN_HRTS0_D, FN_TIOC1B_A, FN_HIFD09, | ||
248 | |||
249 | /* IPSR7 */ | ||
250 | FN_DU0_DG2, FN_RTS1_C, FN_RMII0_MDC_B, FN_TIOC2A_A, FN_HIFD10, | ||
251 | FN_DU0_DG3, FN_SCK2_C, FN_RMII0_MDIO_B, FN_TIOC2B_A, FN_HIFD11, | ||
252 | FN_DU0_DG4, FN_RX2_C, FN_RMII0_CRS_DV_B, FN_TIOC3A_A, FN_HIFD12, | ||
253 | FN_DU0_DG5, FN_TX2_C, FN_RMII0_RX_ER_B, FN_TIOC3B_A, FN_HIFD13, | ||
254 | FN_DU0_DG6, FN_RX3_C, FN_RMII0_RXD0_B, FN_TIOC3C_A, FN_HIFD14, | ||
255 | FN_DU0_DG7, FN_TX3_C, FN_RMII0_RXD1_B, FN_TIOC3D_A, FN_HIFD15, | ||
256 | FN_DU0_DB0, FN_RX4_C, FN_RMII0_TXD_EN_B, FN_TIOC4A_A, FN_HIFCS, | ||
257 | FN_DU0_DB1, FN_TX4_C, FN_RMII0_TXD0_B, FN_TIOC4B_A, FN_HIFRS, | ||
258 | FN_DU0_DB2, FN_RX5_B, FN_RMII0_TXD1_B, FN_TIOC4C_A, FN_HIFWR, | ||
259 | FN_DU0_DB3, FN_TX5_B, FN_TIOC4D_A, FN_HIFRD, | ||
260 | FN_DU0_DB4, FN_HIFINT, | ||
261 | |||
262 | /* IPSR8 */ | ||
263 | FN_DU0_DB5, FN_HIFDREQ, | ||
264 | FN_DU0_DB6, FN_HIFRDY, | ||
265 | FN_DU0_DB7, FN_SSI_SCK0_B, FN_HIFEBL_B, | ||
266 | FN_DU0_DOTCLKIN, FN_HSPI_CS0_C, FN_SSI_WS0_B, | ||
267 | FN_DU0_DOTCLKOUT, FN_HSPI_CLK0_C, FN_SSI_SDATA0_B, | ||
268 | FN_DU0_EXHSYNC_DU0_HSYNC, FN_HSPI_TX0_C, FN_SSI_SCK1_B, | ||
269 | FN_DU0_EXVSYNC_DU0_VSYNC, FN_HSPI_RX0_C, FN_SSI_WS1_B, | ||
270 | FN_DU0_EXODDF_DU0_ODDF, FN_CAN0_RX_B, FN_HSCK0_B, FN_SSI_SDATA1_B, | ||
271 | FN_DU0_DISP, FN_CAN0_TX_B, FN_HRX0_B, FN_AUDIO_CLKA_B, | ||
272 | FN_DU0_CDE, FN_HTX0_B, FN_AUDIO_CLKB_B, FN_LCD_VCPWC_B, | ||
273 | FN_IRQ0_A, FN_HSPI_TX_B, FN_RX3_E, FN_ET0_ERXD0, | ||
274 | FN_IRQ1_A, FN_HSPI_RX_B, FN_TX3_E, FN_ET0_ERXD1, | ||
275 | FN_IRQ2_A, FN_CTS0_A, FN_HCTS0_B, FN_ET0_ERXD2_A, | ||
276 | FN_IRQ3_A, FN_RTS0_A, FN_HRTS0_B, FN_ET0_ERXD3_A, | ||
277 | |||
278 | /* IPSR9 */ | ||
279 | FN_VI1_CLK_A, FN_FD0_B, FN_LCD_DATA0_B, | ||
280 | FN_VI1_0_A, FN_FD1_B, FN_LCD_DATA1_B, | ||
281 | FN_VI1_1_A, FN_FD2_B, FN_LCD_DATA2_B, | ||
282 | FN_VI1_2_A, FN_FD3_B, FN_LCD_DATA3_B, | ||
283 | FN_VI1_3_A, FN_FD4_B, FN_LCD_DATA4_B, | ||
284 | FN_VI1_4_A, FN_FD5_B, FN_LCD_DATA5_B, | ||
285 | FN_VI1_5_A, FN_FD6_B, FN_LCD_DATA6_B, | ||
286 | FN_VI1_6_A, FN_FD7_B, FN_LCD_DATA7_B, | ||
287 | FN_VI1_7_A, FN_FCE_B, FN_LCD_DATA8_B, | ||
288 | FN_SSI_SCK0_A, FN_TIOC1A_B, FN_LCD_DATA9_B, | ||
289 | FN_SSI_WS0_A, FN_TIOC1B_B, FN_LCD_DATA10_B, | ||
290 | FN_SSI_SDATA0_A, FN_VI1_0_B, FN_TIOC2A_B, FN_LCD_DATA11_B, | ||
291 | FN_SSI_SCK1_A, FN_VI1_1_B, FN_TIOC2B_B, FN_LCD_DATA12_B, | ||
292 | FN_SSI_WS1_A, FN_VI1_2_B, FN_LCD_DATA13_B, | ||
293 | FN_SSI_SDATA1_A, FN_VI1_3_B, FN_LCD_DATA14_B, | ||
294 | |||
295 | /* IPSR10 */ | ||
296 | FN_SSI_SCK23, FN_VI1_4_B, FN_RX1_D, FN_FCLE_B, FN_LCD_DATA15_B, | ||
297 | FN_SSI_WS23, FN_VI1_5_B, FN_TX1_D, FN_HSCK0_C, FN_FALE_B, FN_LCD_DON_B, | ||
298 | FN_SSI_SDATA2, FN_VI1_6_B, FN_HRX0_C, FN_FRE_B, FN_LCD_CL1_B, | ||
299 | FN_SSI_SDATA3, FN_VI1_7_B, FN_HTX0_C, FN_FWE_B, FN_LCD_CL2_B, | ||
300 | FN_AUDIO_CLKA_A, FN_VI1_CLK_B, FN_SCK1_D, FN_IECLK_B, FN_LCD_FLM_B, | ||
301 | FN_AUDIO_CLKB_A, FN_LCD_CLK_B, | ||
302 | FN_AUDIO_CLKC, FN_SCK1_E, FN_HCTS0_C, FN_FRB_B, FN_LCD_VEPWC_B, | ||
303 | FN_AUDIO_CLKOUT, FN_TX1_E, FN_HRTS0_C, FN_FSE_B, FN_LCD_M_DISP_B, | ||
304 | FN_CAN_CLK_A, FN_RX4_D, | ||
305 | FN_CAN0_TX_A, FN_TX4_D, FN_MLB_CLK, | ||
306 | FN_CAN1_RX_A, FN_IRQ1_B, | ||
307 | FN_CAN0_RX_A, FN_IRQ0_B, FN_MLB_SIG, | ||
308 | FN_CAN1_TX_A, FN_TX5_C, FN_MLB_DAT, | ||
309 | |||
310 | /* IPSR11 */ | ||
311 | FN_SCL1, FN_SCIF_CLK_C, | ||
312 | FN_SDA1, FN_RX1_E, | ||
313 | FN_SDA0, FN_HIFEBL_A, | ||
314 | FN_SDSELF, FN_RTS1_E, | ||
315 | FN_SCIF_CLK_A, FN_HSPI_CLK_A, FN_VI0_CLK, FN_RMII0_TXD0_A, FN_ET0_ERXD4, | ||
316 | FN_SCK0_A, FN_HSPI_CS_A, FN_VI0_CLKENB, FN_RMII0_TXD1_A, FN_ET0_ERXD5, | ||
317 | FN_RX0_A, FN_HSPI_RX_A, FN_RMII0_RXD0_A, FN_ET0_ERXD6, | ||
318 | FN_TX0_A, FN_HSPI_TX_A, | ||
319 | FN_PENC1, FN_TX3_D, FN_CAN1_TX_B, FN_TX5_D, FN_IETX_B, | ||
320 | FN_USB_OVC1, FN_RX3_D, FN_CAN1_RX_B, FN_RX5_D, FN_IERX_B, | ||
321 | FN_DREQ0, FN_SD1_CLK_A, FN_ET0_TX_EN, | ||
322 | FN_DACK0, FN_SD1_DAT3_A, FN_ET0_TX_ER, | ||
323 | FN_DREQ1, FN_HSPI_CLK_B, FN_RX4_B, FN_ET0_PHY_INT_C, FN_ET0_TX_CLK_A, | ||
324 | FN_DACK1, FN_HSPI_CS_B, FN_TX4_B, FN_ET0_RX_CLK_A, | ||
325 | FN_PRESETOUT, FN_ST_CLKOUT, | ||
326 | |||
327 | /* MOD_SEL1 */ | ||
328 | FN_SEL_IEBUS_0, FN_SEL_IEBUS_1, | ||
329 | FN_SEL_RQSPI_0, FN_SEL_RQSPI_1, | ||
330 | FN_SEL_VIN1_0, FN_SEL_VIN1_1, | ||
331 | FN_SEL_HIF_0, FN_SEL_HIF_1, | ||
332 | FN_SEL_RSPI_0, FN_SEL_RSPI_1, | ||
333 | FN_SEL_LCDC_0, FN_SEL_LCDC_1, | ||
334 | FN_SEL_ET0_CTL_0, FN_SEL_ET0_CTL_1, FN_SEL_ET0_CTL_2, | ||
335 | FN_SEL_ET0_0, FN_SEL_ET0_1, | ||
336 | FN_SEL_RMII_0, FN_SEL_RMII_1, | ||
337 | FN_SEL_TMU_0, FN_SEL_TMU_1, | ||
338 | FN_SEL_HSPI_0, FN_SEL_HSPI_1, FN_SEL_HSPI_2, | ||
339 | FN_SEL_HSCIF_0, FN_SEL_HSCIF_1, FN_SEL_HSCIF_2, FN_SEL_HSCIF_3, | ||
340 | FN_SEL_RCAN_CLK_0, FN_SEL_RCAN_CLK_1, | ||
341 | FN_SEL_RCAN1_0, FN_SEL_RCAN1_1, FN_SEL_RCAN1_2, | ||
342 | FN_SEL_RCAN0_0, FN_SEL_RCAN0_1, | ||
343 | FN_SEL_SDHI2_0, FN_SEL_SDHI2_1, | ||
344 | FN_SEL_SDHI1_0, FN_SEL_SDHI1_1, | ||
345 | FN_SEL_SDHI0_0, FN_SEL_SDHI0_1, | ||
346 | FN_SEL_SSI1_0, FN_SEL_SSI1_1, | ||
347 | FN_SEL_SSI0_0, FN_SEL_SSI0_1, | ||
348 | FN_SEL_AUDIO_CLKB_0, FN_SEL_AUDIO_CLKB_1, | ||
349 | FN_SEL_AUDIO_CLKA_0, FN_SEL_AUDIO_CLKA_1, | ||
350 | FN_SEL_FLCTL_0, FN_SEL_FLCTL_1, | ||
351 | FN_SEL_MMC_0, FN_SEL_MMC_1, | ||
352 | FN_SEL_INTC_0, FN_SEL_INTC_1, | ||
353 | |||
354 | /* MOD_SEL2 */ | ||
355 | FN_SEL_MTU2_CLK_0, FN_SEL_MTU2_CLK_1, | ||
356 | FN_SEL_MTU2_CH4_0, FN_SEL_MTU2_CH4_1, | ||
357 | FN_SEL_MTU2_CH3_0, FN_SEL_MTU2_CH3_1, | ||
358 | FN_SEL_MTU2_CH2_0, FN_SEL_MTU2_CH2_1, FN_SEL_MTU2_CH2_2, | ||
359 | FN_SEL_MTU2_CH1_0, FN_SEL_MTU2_CH1_1, FN_SEL_MTU2_CH1_2, | ||
360 | FN_SEL_MTU2_CH0_0, FN_SEL_MTU2_CH0_1, | ||
361 | FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, | ||
362 | FN_SEL_SCIF5_2, FN_SEL_SCIF5_3, | ||
363 | FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, | ||
364 | FN_SEL_SCIF4_2, FN_SEL_SCIF4_3, | ||
365 | FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, | ||
366 | FN_SEL_SCIF3_3, FN_SEL_SCIF3_4, | ||
367 | FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, | ||
368 | FN_SEL_SCIF2_3, | ||
369 | FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, | ||
370 | FN_SEL_SCIF1_3, FN_SEL_SCIF1_4, | ||
371 | FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, | ||
372 | FN_SEL_SCIF_CLK_0, FN_SEL_SCIF_CLK_1, FN_SEL_SCIF_CLK_2, | ||
373 | |||
374 | PINMUX_FUNCTION_END, | ||
375 | |||
376 | PINMUX_MARK_BEGIN, | ||
377 | |||
378 | CLKOUT_MARK, BS_MARK, CS0_MARK, EX_CS0_MARK, RD_MARK, | ||
379 | WE0_MARK, WE1_MARK, | ||
380 | |||
381 | SCL0_MARK, PENC0_MARK, USB_OVC0_MARK, | ||
382 | |||
383 | IRQ2_B_MARK, IRQ3_B_MARK, | ||
384 | |||
385 | /* IPSR0 */ | ||
386 | A15_MARK, ST0_VCO_CLKIN_MARK, LCD_DATA15_A_MARK, TIOC3D_C_MARK, | ||
387 | A14_MARK, LCD_DATA14_A_MARK, TIOC3C_C_MARK, | ||
388 | A13_MARK, LCD_DATA13_A_MARK, TIOC3B_C_MARK, | ||
389 | A12_MARK, LCD_DATA12_A_MARK, TIOC3A_C_MARK, | ||
390 | A11_MARK, ST0_D7_MARK, LCD_DATA11_A_MARK, TIOC2B_C_MARK, | ||
391 | A10_MARK, ST0_D6_MARK, LCD_DATA10_A_MARK, TIOC2A_C_MARK, | ||
392 | A9_MARK, ST0_D5_MARK, LCD_DATA9_A_MARK, TIOC1B_C_MARK, | ||
393 | A8_MARK, ST0_D4_MARK, LCD_DATA8_A_MARK, TIOC1A_C_MARK, | ||
394 | A7_MARK, ST0_D3_MARK, LCD_DATA7_A_MARK, TIOC0D_C_MARK, | ||
395 | A6_MARK, ST0_D2_MARK, LCD_DATA6_A_MARK, TIOC0C_C_MARK, | ||
396 | A5_MARK, ST0_D1_MARK, LCD_DATA5_A_MARK, TIOC0B_C_MARK, | ||
397 | A4_MARK, ST0_D0_MARK, LCD_DATA4_A_MARK, TIOC0A_C_MARK, | ||
398 | A3_MARK, ST0_VLD_MARK, LCD_DATA3_A_MARK, TCLKD_C_MARK, | ||
399 | A2_MARK, ST0_SYC_MARK, LCD_DATA2_A_MARK, TCLKC_C_MARK, | ||
400 | A1_MARK, ST0_REQ_MARK, LCD_DATA1_A_MARK, TCLKB_C_MARK, | ||
401 | A0_MARK, ST0_CLKIN_MARK, LCD_DATA0_A_MARK, TCLKA_C_MARK, | ||
402 | |||
403 | /* IPSR1 */ | ||
404 | D3_MARK, SD0_DAT3_A_MARK, MMC_D3_A_MARK, ST1_D6_MARK, FD3_A_MARK, | ||
405 | D2_MARK, SD0_DAT2_A_MARK, MMC_D2_A_MARK, ST1_D5_MARK, FD2_A_MARK, | ||
406 | D1_MARK, SD0_DAT1_A_MARK, MMC_D1_A_MARK, ST1_D4_MARK, FD1_A_MARK, | ||
407 | D0_MARK, SD0_DAT0_A_MARK, MMC_D0_A_MARK, ST1_D3_MARK, FD0_A_MARK, | ||
408 | A25_MARK, TX2_D_MARK, ST1_D2_MARK, | ||
409 | A24_MARK, RX2_D_MARK, ST1_D1_MARK, | ||
410 | A23_MARK, ST1_D0_MARK, LCD_M_DISP_A_MARK, | ||
411 | A22_MARK, ST1_VLD_MARK, LCD_VEPWC_A_MARK, | ||
412 | A21_MARK, ST1_SYC_MARK, LCD_VCPWC_A_MARK, | ||
413 | A20_MARK, ST1_REQ_MARK, LCD_FLM_A_MARK, | ||
414 | A19_MARK, ST1_CLKIN_MARK, LCD_CLK_A_MARK, TIOC4D_C_MARK, | ||
415 | A18_MARK, ST1_PWM_MARK, LCD_CL2_A_MARK, TIOC4C_C_MARK, | ||
416 | A17_MARK, ST1_VCO_CLKIN_MARK, LCD_CL1_A_MARK, TIOC4B_C_MARK, | ||
417 | A16_MARK, ST0_PWM_MARK, LCD_DON_A_MARK, TIOC4A_C_MARK, | ||
418 | |||
419 | /* IPSR2 */ | ||
420 | D14_MARK, TX2_B_MARK, FSE_A_MARK, ET0_TX_CLK_B_MARK, | ||
421 | D13_MARK, RX2_B_MARK, FRB_A_MARK, ET0_ETXD6_B_MARK, | ||
422 | D12_MARK, FWE_A_MARK, ET0_ETXD5_B_MARK, | ||
423 | D11_MARK, RSPI_MISO_A_MARK, QMI_QIO1_A_MARK, FRE_A_MARK, | ||
424 | ET0_ETXD3_B_MARK, | ||
425 | D10_MARK, RSPI_MOSI_A_MARK, QMO_QIO0_A_MARK, FALE_A_MARK, | ||
426 | ET0_ETXD2_B_MARK, | ||
427 | D9_MARK, SD0_CMD_A_MARK, MMC_CMD_A_MARK, QIO3_A_MARK, | ||
428 | FCLE_A_MARK, ET0_ETXD1_B_MARK, | ||
429 | D8_MARK, SD0_CLK_A_MARK, MMC_CLK_A_MARK, QIO2_A_MARK, | ||
430 | FCE_A_MARK, ET0_GTX_CLK_B_MARK, | ||
431 | D7_MARK, RSPI_SSL_A_MARK, MMC_D7_A_MARK, QSSL_A_MARK, | ||
432 | FD7_A_MARK, | ||
433 | D6_MARK, RSPI_RSPCK_A_MARK, MMC_D6_A_MARK, QSPCLK_A_MARK, | ||
434 | FD6_A_MARK, | ||
435 | D5_MARK, SD0_WP_A_MARK, MMC_D5_A_MARK, FD5_A_MARK, | ||
436 | D4_MARK, SD0_CD_A_MARK, MMC_D4_A_MARK, ST1_D7_MARK, | ||
437 | FD4_A_MARK, | ||
438 | |||
439 | /* IPSR3 */ | ||
440 | DRACK0_MARK, SD1_DAT2_A_MARK, ATAG_MARK, TCLK1_A_MARK, ET0_ETXD7_MARK, | ||
441 | EX_WAIT2_MARK, SD1_DAT1_A_MARK, DACK2_MARK, CAN1_RX_C_MARK, | ||
442 | ET0_MAGIC_C_MARK, ET0_ETXD6_A_MARK, | ||
443 | EX_WAIT1_MARK, SD1_DAT0_A_MARK, DREQ2_MARK, CAN1_TX_C_MARK, | ||
444 | ET0_LINK_C_MARK, ET0_ETXD5_A_MARK, | ||
445 | EX_WAIT0_MARK, TCLK1_B_MARK, | ||
446 | RD_WR_MARK, TCLK0_MARK, CAN_CLK_B_MARK, ET0_ETXD4_MARK, | ||
447 | EX_CS5_MARK, SD1_CMD_A_MARK, ATADIR_MARK, QSSL_B_MARK, | ||
448 | ET0_ETXD3_A_MARK, | ||
449 | EX_CS4_MARK, SD1_WP_A_MARK, ATAWR_MARK, QMI_QIO1_B_MARK, | ||
450 | ET0_ETXD2_A_MARK, | ||
451 | EX_CS3_MARK, SD1_CD_A_MARK, ATARD_MARK, QMO_QIO0_B_MARK, | ||
452 | ET0_ETXD1_A_MARK, | ||
453 | EX_CS2_MARK, TX3_B_MARK, ATACS1_MARK, QSPCLK_B_MARK, | ||
454 | ET0_GTX_CLK_A_MARK, | ||
455 | EX_CS1_MARK, RX3_B_MARK, ATACS0_MARK, QIO2_B_MARK, | ||
456 | ET0_ETXD0_MARK, | ||
457 | CS1_A26_MARK, QIO3_B_MARK, | ||
458 | D15_MARK, SCK2_B_MARK, | ||
459 | |||
460 | /* IPSR4 */ | ||
461 | SCK2_A_MARK, VI0_G3_MARK, | ||
462 | RTS1_B_MARK, VI0_G2_MARK, | ||
463 | CTS1_B_MARK, VI0_DATA7_VI0_G1_MARK, | ||
464 | TX1_B_MARK, VI0_DATA6_VI0_G0_MARK, ET0_PHY_INT_A_MARK, | ||
465 | RX1_B_MARK, VI0_DATA5_VI0_B5_MARK, ET0_MAGIC_A_MARK, | ||
466 | SCK1_B_MARK, VI0_DATA4_VI0_B4_MARK, ET0_LINK_A_MARK, | ||
467 | RTS0_B_MARK, VI0_DATA3_VI0_B3_MARK, ET0_MDIO_A_MARK, | ||
468 | CTS0_B_MARK, VI0_DATA2_VI0_B2_MARK, RMII0_MDIO_A_MARK, | ||
469 | ET0_MDC_MARK, | ||
470 | HTX0_A_MARK, TX1_A_MARK, VI0_DATA1_VI0_B1_MARK, | ||
471 | RMII0_MDC_A_MARK, ET0_COL_MARK, | ||
472 | HRX0_A_MARK, RX1_A_MARK, VI0_DATA0_VI0_B0_MARK, | ||
473 | RMII0_CRS_DV_A_MARK, ET0_CRS_MARK, | ||
474 | HSCK0_A_MARK, SCK1_A_MARK, VI0_VSYNC_MARK, | ||
475 | RMII0_RX_ER_A_MARK, ET0_RX_ER_MARK, | ||
476 | HRTS0_A_MARK, RTS1_A_MARK, VI0_HSYNC_MARK, | ||
477 | RMII0_TXD_EN_A_MARK, ET0_RX_DV_MARK, | ||
478 | HCTS0_A_MARK, CTS1_A_MARK, VI0_FIELD_MARK, | ||
479 | RMII0_RXD1_A_MARK, ET0_ERXD7_MARK, | ||
480 | |||
481 | /* IPSR5 */ | ||
482 | SD2_CLK_A_MARK, RX2_A_MARK, VI0_G4_MARK, ET0_RX_CLK_B_MARK, | ||
483 | SD2_CMD_A_MARK, TX2_A_MARK, VI0_G5_MARK, ET0_ERXD2_B_MARK, | ||
484 | SD2_DAT0_A_MARK, RX3_A_MARK, VI0_R0_MARK, ET0_ERXD3_B_MARK, | ||
485 | SD2_DAT1_A_MARK, TX3_A_MARK, VI0_R1_MARK, ET0_MDIO_B_MARK, | ||
486 | SD2_DAT2_A_MARK, RX4_A_MARK, VI0_R2_MARK, ET0_LINK_B_MARK, | ||
487 | SD2_DAT3_A_MARK, TX4_A_MARK, VI0_R3_MARK, ET0_MAGIC_B_MARK, | ||
488 | SD2_CD_A_MARK, RX5_A_MARK, VI0_R4_MARK, ET0_PHY_INT_B_MARK, | ||
489 | SD2_WP_A_MARK, TX5_A_MARK, VI0_R5_MARK, | ||
490 | REF125CK_MARK, ADTRG_MARK, RX5_C_MARK, | ||
491 | REF50CK_MARK, CTS1_E_MARK, HCTS0_D_MARK, | ||
492 | |||
493 | /* IPSR6 */ | ||
494 | DU0_DR0_MARK, SCIF_CLK_B_MARK, HRX0_D_MARK, IETX_A_MARK, | ||
495 | TCLKA_A_MARK, HIFD00_MARK, | ||
496 | DU0_DR1_MARK, SCK0_B_MARK, HTX0_D_MARK, IERX_A_MARK, | ||
497 | TCLKB_A_MARK, HIFD01_MARK, | ||
498 | DU0_DR2_MARK, RX0_B_MARK, TCLKC_A_MARK, HIFD02_MARK, | ||
499 | DU0_DR3_MARK, TX0_B_MARK, TCLKD_A_MARK, HIFD03_MARK, | ||
500 | DU0_DR4_MARK, CTS0_C_MARK, TIOC0A_A_MARK, HIFD04_MARK, | ||
501 | DU0_DR5_MARK, RTS0_C_MARK, TIOC0B_A_MARK, HIFD05_MARK, | ||
502 | DU0_DR6_MARK, SCK1_C_MARK, TIOC0C_A_MARK, HIFD06_MARK, | ||
503 | DU0_DR7_MARK, RX1_C_MARK, TIOC0D_A_MARK, HIFD07_MARK, | ||
504 | DU0_DG0_MARK, TX1_C_MARK, HSCK0_D_MARK, IECLK_A_MARK, | ||
505 | TIOC1A_A_MARK, HIFD08_MARK, | ||
506 | DU0_DG1_MARK, CTS1_C_MARK, HRTS0_D_MARK, TIOC1B_A_MARK, | ||
507 | HIFD09_MARK, | ||
508 | |||
509 | /* IPSR7 */ | ||
510 | DU0_DG2_MARK, RTS1_C_MARK, RMII0_MDC_B_MARK, TIOC2A_A_MARK, | ||
511 | HIFD10_MARK, | ||
512 | DU0_DG3_MARK, SCK2_C_MARK, RMII0_MDIO_B_MARK, TIOC2B_A_MARK, | ||
513 | HIFD11_MARK, | ||
514 | DU0_DG4_MARK, RX2_C_MARK, RMII0_CRS_DV_B_MARK, TIOC3A_A_MARK, | ||
515 | HIFD12_MARK, | ||
516 | DU0_DG5_MARK, TX2_C_MARK, RMII0_RX_ER_B_MARK, TIOC3B_A_MARK, | ||
517 | HIFD13_MARK, | ||
518 | DU0_DG6_MARK, RX3_C_MARK, RMII0_RXD0_B_MARK, TIOC3C_A_MARK, | ||
519 | HIFD14_MARK, | ||
520 | DU0_DG7_MARK, TX3_C_MARK, RMII0_RXD1_B_MARK, TIOC3D_A_MARK, | ||
521 | HIFD15_MARK, | ||
522 | DU0_DB0_MARK, RX4_C_MARK, RMII0_TXD_EN_B_MARK, TIOC4A_A_MARK, | ||
523 | HIFCS_MARK, | ||
524 | DU0_DB1_MARK, TX4_C_MARK, RMII0_TXD0_B_MARK, TIOC4B_A_MARK, | ||
525 | HIFRS_MARK, | ||
526 | DU0_DB2_MARK, RX5_B_MARK, RMII0_TXD1_B_MARK, TIOC4C_A_MARK, | ||
527 | HIFWR_MARK, | ||
528 | DU0_DB3_MARK, TX5_B_MARK, TIOC4D_A_MARK, HIFRD_MARK, | ||
529 | DU0_DB4_MARK, HIFINT_MARK, | ||
530 | |||
531 | /* IPSR8 */ | ||
532 | DU0_DB5_MARK, HIFDREQ_MARK, | ||
533 | DU0_DB6_MARK, HIFRDY_MARK, | ||
534 | DU0_DB7_MARK, SSI_SCK0_B_MARK, HIFEBL_B_MARK, | ||
535 | DU0_DOTCLKIN_MARK, HSPI_CS0_C_MARK, SSI_WS0_B_MARK, | ||
536 | DU0_DOTCLKOUT_MARK, HSPI_CLK0_C_MARK, SSI_SDATA0_B_MARK, | ||
537 | DU0_EXHSYNC_DU0_HSYNC_MARK, HSPI_TX0_C_MARK, SSI_SCK1_B_MARK, | ||
538 | DU0_EXVSYNC_DU0_VSYNC_MARK, HSPI_RX0_C_MARK, SSI_WS1_B_MARK, | ||
539 | DU0_EXODDF_DU0_ODDF_MARK, CAN0_RX_B_MARK, HSCK0_B_MARK, | ||
540 | SSI_SDATA1_B_MARK, | ||
541 | DU0_DISP_MARK, CAN0_TX_B_MARK, HRX0_B_MARK, AUDIO_CLKA_B_MARK, | ||
542 | DU0_CDE_MARK, HTX0_B_MARK, AUDIO_CLKB_B_MARK, LCD_VCPWC_B_MARK, | ||
543 | IRQ0_A_MARK, HSPI_TX_B_MARK, RX3_E_MARK, ET0_ERXD0_MARK, | ||
544 | IRQ1_A_MARK, HSPI_RX_B_MARK, TX3_E_MARK, ET0_ERXD1_MARK, | ||
545 | IRQ2_A_MARK, CTS0_A_MARK, HCTS0_B_MARK, ET0_ERXD2_A_MARK, | ||
546 | IRQ3_A_MARK, RTS0_A_MARK, HRTS0_B_MARK, ET0_ERXD3_A_MARK, | ||
547 | |||
548 | /* IPSR9 */ | ||
549 | VI1_CLK_A_MARK, FD0_B_MARK, LCD_DATA0_B_MARK, | ||
550 | VI1_0_A_MARK, FD1_B_MARK, LCD_DATA1_B_MARK, | ||
551 | VI1_1_A_MARK, FD2_B_MARK, LCD_DATA2_B_MARK, | ||
552 | VI1_2_A_MARK, FD3_B_MARK, LCD_DATA3_B_MARK, | ||
553 | VI1_3_A_MARK, FD4_B_MARK, LCD_DATA4_B_MARK, | ||
554 | VI1_4_A_MARK, FD5_B_MARK, LCD_DATA5_B_MARK, | ||
555 | VI1_5_A_MARK, FD6_B_MARK, LCD_DATA6_B_MARK, | ||
556 | VI1_6_A_MARK, FD7_B_MARK, LCD_DATA7_B_MARK, | ||
557 | VI1_7_A_MARK, FCE_B_MARK, LCD_DATA8_B_MARK, | ||
558 | SSI_SCK0_A_MARK, TIOC1A_B_MARK, LCD_DATA9_B_MARK, | ||
559 | SSI_WS0_A_MARK, TIOC1B_B_MARK, LCD_DATA10_B_MARK, | ||
560 | SSI_SDATA0_A_MARK, VI1_0_B_MARK, TIOC2A_B_MARK, LCD_DATA11_B_MARK, | ||
561 | SSI_SCK1_A_MARK, VI1_1_B_MARK, TIOC2B_B_MARK, LCD_DATA12_B_MARK, | ||
562 | SSI_WS1_A_MARK, VI1_2_B_MARK, LCD_DATA13_B_MARK, | ||
563 | SSI_SDATA1_A_MARK, VI1_3_B_MARK, LCD_DATA14_B_MARK, | ||
564 | |||
565 | /* IPSR10 */ | ||
566 | SSI_SCK23_MARK, VI1_4_B_MARK, RX1_D_MARK, FCLE_B_MARK, | ||
567 | LCD_DATA15_B_MARK, | ||
568 | SSI_WS23_MARK, VI1_5_B_MARK, TX1_D_MARK, HSCK0_C_MARK, | ||
569 | FALE_B_MARK, LCD_DON_B_MARK, | ||
570 | SSI_SDATA2_MARK, VI1_6_B_MARK, HRX0_C_MARK, FRE_B_MARK, | ||
571 | LCD_CL1_B_MARK, | ||
572 | SSI_SDATA3_MARK, VI1_7_B_MARK, HTX0_C_MARK, FWE_B_MARK, | ||
573 | LCD_CL2_B_MARK, | ||
574 | AUDIO_CLKA_A_MARK, VI1_CLK_B_MARK, SCK1_D_MARK, IECLK_B_MARK, | ||
575 | LCD_FLM_B_MARK, | ||
576 | AUDIO_CLKB_A_MARK, LCD_CLK_B_MARK, | ||
577 | AUDIO_CLKC_MARK, SCK1_E_MARK, HCTS0_C_MARK, FRB_B_MARK, | ||
578 | LCD_VEPWC_B_MARK, | ||
579 | AUDIO_CLKOUT_MARK, TX1_E_MARK, HRTS0_C_MARK, FSE_B_MARK, | ||
580 | LCD_M_DISP_B_MARK, | ||
581 | CAN_CLK_A_MARK, RX4_D_MARK, | ||
582 | CAN0_TX_A_MARK, TX4_D_MARK, MLB_CLK_MARK, | ||
583 | CAN1_RX_A_MARK, IRQ1_B_MARK, | ||
584 | CAN0_RX_A_MARK, IRQ0_B_MARK, MLB_SIG_MARK, | ||
585 | CAN1_TX_A_MARK, TX5_C_MARK, MLB_DAT_MARK, | ||
586 | |||
587 | /* IPSR11 */ | ||
588 | SCL1_MARK, SCIF_CLK_C_MARK, | ||
589 | SDA1_MARK, RX1_E_MARK, | ||
590 | SDA0_MARK, HIFEBL_A_MARK, | ||
591 | SDSELF_MARK, RTS1_E_MARK, | ||
592 | SCIF_CLK_A_MARK, HSPI_CLK_A_MARK, VI0_CLK_MARK, RMII0_TXD0_A_MARK, | ||
593 | ET0_ERXD4_MARK, | ||
594 | SCK0_A_MARK, HSPI_CS_A_MARK, VI0_CLKENB_MARK, RMII0_TXD1_A_MARK, | ||
595 | ET0_ERXD5_MARK, | ||
596 | RX0_A_MARK, HSPI_RX_A_MARK, RMII0_RXD0_A_MARK, ET0_ERXD6_MARK, | ||
597 | TX0_A_MARK, HSPI_TX_A_MARK, | ||
598 | PENC1_MARK, TX3_D_MARK, CAN1_TX_B_MARK, TX5_D_MARK, | ||
599 | IETX_B_MARK, | ||
600 | USB_OVC1_MARK, RX3_D_MARK, CAN1_RX_B_MARK, RX5_D_MARK, | ||
601 | IERX_B_MARK, | ||
602 | DREQ0_MARK, SD1_CLK_A_MARK, ET0_TX_EN_MARK, | ||
603 | DACK0_MARK, SD1_DAT3_A_MARK, ET0_TX_ER_MARK, | ||
604 | DREQ1_MARK, HSPI_CLK_B_MARK, RX4_B_MARK, ET0_PHY_INT_C_MARK, | ||
605 | ET0_TX_CLK_A_MARK, | ||
606 | DACK1_MARK, HSPI_CS_B_MARK, TX4_B_MARK, ET0_RX_CLK_A_MARK, | ||
607 | PRESETOUT_MARK, ST_CLKOUT_MARK, | ||
608 | |||
609 | PINMUX_MARK_END, | ||
610 | }; | ||
611 | |||
612 | static pinmux_enum_t pinmux_data[] = { | ||
613 | PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */ | ||
614 | |||
615 | PINMUX_DATA(CLKOUT_MARK, FN_CLKOUT), | ||
616 | PINMUX_DATA(BS_MARK, FN_BS), PINMUX_DATA(CS0_MARK, FN_CS0), | ||
617 | PINMUX_DATA(EX_CS0_MARK, FN_EX_CS0), | ||
618 | PINMUX_DATA(RD_MARK, FN_RD), PINMUX_DATA(WE0_MARK, FN_WE0), | ||
619 | PINMUX_DATA(WE1_MARK, FN_WE1), | ||
620 | PINMUX_DATA(SCL0_MARK, FN_SCL0), PINMUX_DATA(PENC0_MARK, FN_PENC0), | ||
621 | PINMUX_DATA(USB_OVC0_MARK, FN_USB_OVC0), | ||
622 | PINMUX_DATA(IRQ2_B_MARK, FN_IRQ2_B), | ||
623 | PINMUX_DATA(IRQ3_B_MARK, FN_IRQ3_B), | ||
624 | |||
625 | /* IPSR0 */ | ||
626 | PINMUX_IPSR_DATA(IP0_1_0, A0), | ||
627 | PINMUX_IPSR_DATA(IP0_1_0, ST0_CLKIN), | ||
628 | PINMUX_IPSR_MODSEL_DATA(IP0_1_0, LCD_DATA0_A, SEL_LCDC_0), | ||
629 | PINMUX_IPSR_MODSEL_DATA(IP0_1_0, TCLKA_C, SEL_MTU2_CLK_1), | ||
630 | |||
631 | PINMUX_IPSR_DATA(IP0_3_2, A1), | ||
632 | PINMUX_IPSR_DATA(IP0_3_2, ST0_REQ), | ||
633 | PINMUX_IPSR_MODSEL_DATA(IP0_3_2, LCD_DATA1_A, SEL_LCDC_0), | ||
634 | PINMUX_IPSR_MODSEL_DATA(IP0_3_2, TCLKB_C, SEL_MTU2_CLK_1), | ||
635 | |||
636 | PINMUX_IPSR_DATA(IP0_5_4, A2), | ||
637 | PINMUX_IPSR_DATA(IP0_5_4, ST0_SYC), | ||
638 | PINMUX_IPSR_MODSEL_DATA(IP0_5_4, LCD_DATA2_A, SEL_LCDC_0), | ||
639 | PINMUX_IPSR_MODSEL_DATA(IP0_5_4, TCLKC_C, SEL_MTU2_CLK_1), | ||
640 | |||
641 | PINMUX_IPSR_DATA(IP0_7_6, A3), | ||
642 | PINMUX_IPSR_DATA(IP0_7_6, ST0_VLD), | ||
643 | PINMUX_IPSR_MODSEL_DATA(IP0_7_6, LCD_DATA3_A, SEL_LCDC_0), | ||
644 | PINMUX_IPSR_MODSEL_DATA(IP0_7_6, TCLKD_C, SEL_MTU2_CLK_1), | ||
645 | |||
646 | PINMUX_IPSR_DATA(IP0_9_8, A4), | ||
647 | PINMUX_IPSR_DATA(IP0_9_8, ST0_D0), | ||
648 | PINMUX_IPSR_MODSEL_DATA(IP0_9_8, LCD_DATA4_A, SEL_LCDC_0), | ||
649 | PINMUX_IPSR_MODSEL_DATA(IP0_9_8, TIOC0A_C, SEL_MTU2_CH0_1), | ||
650 | |||
651 | PINMUX_IPSR_DATA(IP0_11_10, A5), | ||
652 | PINMUX_IPSR_DATA(IP0_11_10, ST0_D1), | ||
653 | PINMUX_IPSR_MODSEL_DATA(IP0_11_10, LCD_DATA5_A, SEL_LCDC_0), | ||
654 | PINMUX_IPSR_MODSEL_DATA(IP0_11_10, TIOC0B_C, SEL_MTU2_CH0_1), | ||
655 | |||
656 | PINMUX_IPSR_DATA(IP0_13_12, A6), | ||
657 | PINMUX_IPSR_DATA(IP0_13_12, ST0_D2), | ||
658 | PINMUX_IPSR_MODSEL_DATA(IP0_13_12, LCD_DATA6_A, SEL_LCDC_0), | ||
659 | PINMUX_IPSR_MODSEL_DATA(IP0_13_12, TIOC0C_C, SEL_MTU2_CH0_1), | ||
660 | |||
661 | PINMUX_IPSR_DATA(IP0_15_14, A7), | ||
662 | PINMUX_IPSR_DATA(IP0_15_14, ST0_D3), | ||
663 | PINMUX_IPSR_MODSEL_DATA(IP0_15_14, LCD_DATA7_A, SEL_LCDC_0), | ||
664 | PINMUX_IPSR_MODSEL_DATA(IP0_15_14, TIOC0D_C, SEL_MTU2_CH0_1), | ||
665 | |||
666 | PINMUX_IPSR_DATA(IP0_17_16, A8), | ||
667 | PINMUX_IPSR_DATA(IP0_17_16, ST0_D4), | ||
668 | PINMUX_IPSR_MODSEL_DATA(IP0_17_16, LCD_DATA8_A, SEL_LCDC_0), | ||
669 | PINMUX_IPSR_MODSEL_DATA(IP0_17_16, TIOC1A_C, SEL_MTU2_CH1_2), | ||
670 | |||
671 | PINMUX_IPSR_DATA(IP0_19_18, A9), | ||
672 | PINMUX_IPSR_DATA(IP0_19_18, ST0_D5), | ||
673 | PINMUX_IPSR_MODSEL_DATA(IP0_19_18, LCD_DATA9_A, SEL_LCDC_0), | ||
674 | PINMUX_IPSR_MODSEL_DATA(IP0_19_18, TIOC1B_C, SEL_MTU2_CH1_2), | ||
675 | |||
676 | PINMUX_IPSR_DATA(IP0_21_20, A10), | ||
677 | PINMUX_IPSR_DATA(IP0_21_20, ST0_D6), | ||
678 | PINMUX_IPSR_MODSEL_DATA(IP0_21_20, LCD_DATA10_A, SEL_LCDC_0), | ||
679 | PINMUX_IPSR_MODSEL_DATA(IP0_21_20, TIOC2A_C, SEL_MTU2_CH2_2), | ||
680 | |||
681 | PINMUX_IPSR_DATA(IP0_23_22, A11), | ||
682 | PINMUX_IPSR_DATA(IP0_23_22, ST0_D7), | ||
683 | PINMUX_IPSR_MODSEL_DATA(IP0_23_22, LCD_DATA11_A, SEL_LCDC_0), | ||
684 | PINMUX_IPSR_MODSEL_DATA(IP0_23_22, TIOC2B_C, SEL_MTU2_CH2_2), | ||
685 | |||
686 | PINMUX_IPSR_DATA(IP0_25_24, A12), | ||
687 | PINMUX_IPSR_MODSEL_DATA(IP0_25_24, LCD_DATA12_A, SEL_LCDC_0), | ||
688 | PINMUX_IPSR_MODSEL_DATA(IP0_25_24, TIOC3A_C, SEL_MTU2_CH3_1), | ||
689 | |||
690 | PINMUX_IPSR_DATA(IP0_27_26, A13), | ||
691 | PINMUX_IPSR_MODSEL_DATA(IP0_27_26, LCD_DATA13_A, SEL_LCDC_0), | ||
692 | PINMUX_IPSR_MODSEL_DATA(IP0_27_26, TIOC3B_C, SEL_MTU2_CH3_1), | ||
693 | |||
694 | PINMUX_IPSR_DATA(IP0_29_28, A14), | ||
695 | PINMUX_IPSR_MODSEL_DATA(IP0_29_28, LCD_DATA14_A, SEL_LCDC_0), | ||
696 | PINMUX_IPSR_MODSEL_DATA(IP0_29_28, TIOC3C_C, SEL_MTU2_CH3_1), | ||
697 | |||
698 | PINMUX_IPSR_DATA(IP0_31_30, A15), | ||
699 | PINMUX_IPSR_DATA(IP0_31_30, ST0_VCO_CLKIN), | ||
700 | PINMUX_IPSR_MODSEL_DATA(IP0_31_30, LCD_DATA15_A, SEL_LCDC_0), | ||
701 | PINMUX_IPSR_MODSEL_DATA(IP0_31_30, TIOC3D_C, SEL_MTU2_CH3_1), | ||
702 | |||
703 | |||
704 | /* IPSR1 */ | ||
705 | PINMUX_IPSR_DATA(IP1_1_0, A16), | ||
706 | PINMUX_IPSR_DATA(IP1_1_0, ST0_PWM), | ||
707 | PINMUX_IPSR_MODSEL_DATA(IP1_1_0, LCD_DON_A, SEL_LCDC_0), | ||
708 | PINMUX_IPSR_MODSEL_DATA(IP1_1_0, TIOC4A_C, SEL_MTU2_CH4_1), | ||
709 | |||
710 | PINMUX_IPSR_DATA(IP1_3_2, A17), | ||
711 | PINMUX_IPSR_DATA(IP1_3_2, ST1_VCO_CLKIN), | ||
712 | PINMUX_IPSR_MODSEL_DATA(IP1_3_2, LCD_CL1_A, SEL_LCDC_0), | ||
713 | PINMUX_IPSR_MODSEL_DATA(IP1_3_2, TIOC4B_C, SEL_MTU2_CH4_1), | ||
714 | |||
715 | PINMUX_IPSR_DATA(IP1_5_4, A18), | ||
716 | PINMUX_IPSR_DATA(IP1_5_4, ST1_PWM), | ||
717 | PINMUX_IPSR_MODSEL_DATA(IP1_5_4, LCD_CL2_A, SEL_LCDC_0), | ||
718 | PINMUX_IPSR_MODSEL_DATA(IP1_5_4, TIOC4C_C, SEL_MTU2_CH4_1), | ||
719 | |||
720 | PINMUX_IPSR_DATA(IP1_7_6, A19), | ||
721 | PINMUX_IPSR_DATA(IP1_7_6, ST1_CLKIN), | ||
722 | PINMUX_IPSR_MODSEL_DATA(IP1_7_6, LCD_CLK_A, SEL_LCDC_0), | ||
723 | PINMUX_IPSR_MODSEL_DATA(IP1_7_6, TIOC4D_C, SEL_MTU2_CH4_1), | ||
724 | |||
725 | PINMUX_IPSR_DATA(IP1_9_8, A20), | ||
726 | PINMUX_IPSR_DATA(IP1_9_8, ST1_REQ), | ||
727 | PINMUX_IPSR_MODSEL_DATA(IP1_9_8, LCD_FLM_A, SEL_LCDC_0), | ||
728 | |||
729 | PINMUX_IPSR_DATA(IP1_11_10, A21), | ||
730 | PINMUX_IPSR_DATA(IP1_11_10, ST1_SYC), | ||
731 | PINMUX_IPSR_MODSEL_DATA(IP1_11_10, LCD_VCPWC_A, SEL_LCDC_0), | ||
732 | |||
733 | PINMUX_IPSR_DATA(IP1_13_12, A22), | ||
734 | PINMUX_IPSR_DATA(IP1_13_12, ST1_VLD), | ||
735 | PINMUX_IPSR_MODSEL_DATA(IP1_13_12, LCD_VEPWC_A, SEL_LCDC_0), | ||
736 | |||
737 | PINMUX_IPSR_DATA(IP1_15_14, A23), | ||
738 | PINMUX_IPSR_DATA(IP1_15_14, ST1_D0), | ||
739 | PINMUX_IPSR_MODSEL_DATA(IP1_15_14, LCD_M_DISP_A, SEL_LCDC_0), | ||
740 | |||
741 | PINMUX_IPSR_DATA(IP1_17_16, A24), | ||
742 | PINMUX_IPSR_MODSEL_DATA(IP1_17_16, RX2_D, SEL_SCIF2_3), | ||
743 | PINMUX_IPSR_DATA(IP1_17_16, ST1_D1), | ||
744 | |||
745 | PINMUX_IPSR_DATA(IP1_19_18, A25), | ||
746 | PINMUX_IPSR_MODSEL_DATA(IP1_17_16, RX2_D, SEL_SCIF2_3), | ||
747 | PINMUX_IPSR_DATA(IP1_17_16, ST1_D2), | ||
748 | |||
749 | PINMUX_IPSR_DATA(IP1_22_20, D0), | ||
750 | PINMUX_IPSR_MODSEL_DATA(IP1_22_20, SD0_DAT0_A, SEL_SDHI0_0), | ||
751 | PINMUX_IPSR_MODSEL_DATA(IP1_22_20, MMC_D0_A, SEL_MMC_0), | ||
752 | PINMUX_IPSR_DATA(IP1_22_20, ST1_D3), | ||
753 | PINMUX_IPSR_MODSEL_DATA(IP1_22_20, FD0_A, SEL_FLCTL_0), | ||
754 | |||
755 | PINMUX_IPSR_DATA(IP1_25_23, D1), | ||
756 | PINMUX_IPSR_MODSEL_DATA(IP1_25_23, SD0_DAT0_A, SEL_SDHI0_0), | ||
757 | PINMUX_IPSR_MODSEL_DATA(IP1_25_23, MMC_D1_A, SEL_MMC_0), | ||
758 | PINMUX_IPSR_DATA(IP1_25_23, ST1_D4), | ||
759 | PINMUX_IPSR_MODSEL_DATA(IP1_25_23, FD1_A, SEL_FLCTL_0), | ||
760 | |||
761 | PINMUX_IPSR_DATA(IP1_28_26, D2), | ||
762 | PINMUX_IPSR_MODSEL_DATA(IP1_28_26, SD0_DAT0_A, SEL_SDHI0_0), | ||
763 | PINMUX_IPSR_MODSEL_DATA(IP1_28_26, MMC_D2_A, SEL_MMC_0), | ||
764 | PINMUX_IPSR_DATA(IP1_28_26, ST1_D5), | ||
765 | PINMUX_IPSR_MODSEL_DATA(IP1_28_26, FD2_A, SEL_FLCTL_0), | ||
766 | |||
767 | PINMUX_IPSR_DATA(IP1_31_29, D3), | ||
768 | PINMUX_IPSR_MODSEL_DATA(IP1_31_29, SD0_DAT0_A, SEL_SDHI0_0), | ||
769 | PINMUX_IPSR_MODSEL_DATA(IP1_31_29, MMC_D3_A, SEL_MMC_0), | ||
770 | PINMUX_IPSR_DATA(IP1_31_29, ST1_D6), | ||
771 | PINMUX_IPSR_MODSEL_DATA(IP1_31_29, FD3_A, SEL_FLCTL_0), | ||
772 | |||
773 | /* IPSR2 */ | ||
774 | PINMUX_IPSR_DATA(IP2_2_0, D4), | ||
775 | PINMUX_IPSR_MODSEL_DATA(IP2_2_0, SD0_CD_A, SEL_SDHI0_0), | ||
776 | PINMUX_IPSR_MODSEL_DATA(IP2_2_0, MMC_D4_A, SEL_MMC_0), | ||
777 | PINMUX_IPSR_DATA(IP2_2_0, ST1_D7), | ||
778 | PINMUX_IPSR_MODSEL_DATA(IP2_2_0, FD4_A, SEL_FLCTL_0), | ||
779 | |||
780 | PINMUX_IPSR_DATA(IP2_4_3, D5), | ||
781 | PINMUX_IPSR_MODSEL_DATA(IP2_4_3, SD0_WP_A, SEL_SDHI0_0), | ||
782 | PINMUX_IPSR_MODSEL_DATA(IP2_4_3, MMC_D5_A, SEL_MMC_0), | ||
783 | PINMUX_IPSR_MODSEL_DATA(IP2_4_3, FD5_A, SEL_FLCTL_0), | ||
784 | |||
785 | PINMUX_IPSR_DATA(IP2_7_5, D6), | ||
786 | PINMUX_IPSR_MODSEL_DATA(IP2_7_5, RSPI_RSPCK_A, SEL_RSPI_0), | ||
787 | PINMUX_IPSR_MODSEL_DATA(IP2_7_5, MMC_D6_A, SEL_MMC_0), | ||
788 | PINMUX_IPSR_MODSEL_DATA(IP2_7_5, QSPCLK_A, SEL_RQSPI_0), | ||
789 | PINMUX_IPSR_MODSEL_DATA(IP2_7_5, FD6_A, SEL_FLCTL_0), | ||
790 | |||
791 | PINMUX_IPSR_DATA(IP2_10_8, D7), | ||
792 | PINMUX_IPSR_MODSEL_DATA(IP2_10_8, RSPI_SSL_A, SEL_RSPI_0), | ||
793 | PINMUX_IPSR_MODSEL_DATA(IP2_10_8, MMC_D7_A, SEL_MMC_0), | ||
794 | PINMUX_IPSR_MODSEL_DATA(IP2_10_8, QSSL_A, SEL_RQSPI_0), | ||
795 | PINMUX_IPSR_MODSEL_DATA(IP2_10_8, FD7_A, SEL_FLCTL_0), | ||
796 | |||
797 | PINMUX_IPSR_DATA(IP2_13_11, D8), | ||
798 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, SD0_CLK_A, SEL_SDHI0_0), | ||
799 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, MMC_CLK_A, SEL_MMC_0), | ||
800 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, QIO2_A, SEL_RQSPI_0), | ||
801 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, FCE_A, SEL_FLCTL_0), | ||
802 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, ET0_GTX_CLK_B, SEL_ET0_1), | ||
803 | |||
804 | PINMUX_IPSR_DATA(IP2_16_14, D9), | ||
805 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, SD0_CMD_A, SEL_SDHI0_0), | ||
806 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, MMC_CMD_A, SEL_MMC_0), | ||
807 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, QIO3_A, SEL_RQSPI_0), | ||
808 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, FCLE_A, SEL_FLCTL_0), | ||
809 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, ET0_ETXD1_B, SEL_ET0_1), | ||
810 | |||
811 | PINMUX_IPSR_DATA(IP2_19_17, D10), | ||
812 | PINMUX_IPSR_MODSEL_DATA(IP2_19_17, RSPI_MOSI_A, SEL_RSPI_0), | ||
813 | PINMUX_IPSR_MODSEL_DATA(IP2_19_17, QMO_QIO0_A, SEL_RQSPI_0), | ||
814 | PINMUX_IPSR_MODSEL_DATA(IP2_19_17, FALE_A, SEL_FLCTL_0), | ||
815 | PINMUX_IPSR_MODSEL_DATA(IP2_19_17, ET0_ETXD2_B, SEL_ET0_1), | ||
816 | |||
817 | PINMUX_IPSR_DATA(IP2_22_20, D11), | ||
818 | PINMUX_IPSR_MODSEL_DATA(IP2_22_20, RSPI_MISO_A, SEL_RSPI_0), | ||
819 | PINMUX_IPSR_MODSEL_DATA(IP2_22_20, QMI_QIO1_A, SEL_RQSPI_0), | ||
820 | PINMUX_IPSR_MODSEL_DATA(IP2_22_20, FRE_A, SEL_FLCTL_0), | ||
821 | |||
822 | PINMUX_IPSR_DATA(IP2_24_23, D12), | ||
823 | PINMUX_IPSR_MODSEL_DATA(IP2_24_23, FWE_A, SEL_FLCTL_0), | ||
824 | PINMUX_IPSR_MODSEL_DATA(IP2_24_23, ET0_ETXD5_B, SEL_ET0_1), | ||
825 | |||
826 | PINMUX_IPSR_DATA(IP2_27_25, D13), | ||
827 | PINMUX_IPSR_MODSEL_DATA(IP2_27_25, RX2_B, SEL_SCIF2_1), | ||
828 | PINMUX_IPSR_MODSEL_DATA(IP2_27_25, FRB_A, SEL_FLCTL_0), | ||
829 | PINMUX_IPSR_MODSEL_DATA(IP2_27_25, ET0_ETXD6_B, SEL_ET0_1), | ||
830 | |||
831 | PINMUX_IPSR_DATA(IP2_30_28, D14), | ||
832 | PINMUX_IPSR_MODSEL_DATA(IP2_30_28, TX2_B, SEL_SCIF2_1), | ||
833 | PINMUX_IPSR_MODSEL_DATA(IP2_30_28, FSE_A, SEL_FLCTL_0), | ||
834 | PINMUX_IPSR_MODSEL_DATA(IP2_30_28, ET0_TX_CLK_B, SEL_ET0_1), | ||
835 | |||
836 | /* IPSR3 */ | ||
837 | PINMUX_IPSR_DATA(IP3_1_0, D15), | ||
838 | PINMUX_IPSR_MODSEL_DATA(IP3_1_0, SCK2_B, SEL_SCIF2_1), | ||
839 | |||
840 | PINMUX_IPSR_DATA(IP3_2, CS1_A26), | ||
841 | PINMUX_IPSR_MODSEL_DATA(IP3_2, QIO3_B, SEL_RQSPI_1), | ||
842 | |||
843 | PINMUX_IPSR_DATA(IP3_5_3, EX_CS1), | ||
844 | PINMUX_IPSR_MODSEL_DATA(IP3_5_3, RX3_B, SEL_SCIF2_1), | ||
845 | PINMUX_IPSR_DATA(IP3_5_3, ATACS0), | ||
846 | PINMUX_IPSR_MODSEL_DATA(IP3_5_3, QIO2_B, SEL_RQSPI_1), | ||
847 | PINMUX_IPSR_DATA(IP3_5_3, ET0_ETXD0), | ||
848 | |||
849 | PINMUX_IPSR_DATA(IP3_8_6, EX_CS2), | ||
850 | PINMUX_IPSR_MODSEL_DATA(IP3_8_6, TX3_B, SEL_SCIF3_1), | ||
851 | PINMUX_IPSR_DATA(IP3_8_6, ATACS1), | ||
852 | PINMUX_IPSR_MODSEL_DATA(IP3_8_6, QSPCLK_B, SEL_RQSPI_1), | ||
853 | PINMUX_IPSR_MODSEL_DATA(IP3_8_6, ET0_GTX_CLK_A, SEL_ET0_0), | ||
854 | |||
855 | PINMUX_IPSR_DATA(IP3_11_9, EX_CS3), | ||
856 | PINMUX_IPSR_MODSEL_DATA(IP3_11_9, SD1_CD_A, SEL_SDHI1_0), | ||
857 | PINMUX_IPSR_DATA(IP3_11_9, ATARD), | ||
858 | PINMUX_IPSR_MODSEL_DATA(IP3_11_9, QMO_QIO0_B, SEL_RQSPI_1), | ||
859 | PINMUX_IPSR_MODSEL_DATA(IP3_11_9, ET0_ETXD1_A, SEL_ET0_0), | ||
860 | |||
861 | PINMUX_IPSR_DATA(IP3_14_12, EX_CS4), | ||
862 | PINMUX_IPSR_MODSEL_DATA(IP3_14_12, SD1_WP_A, SEL_SDHI1_0), | ||
863 | PINMUX_IPSR_DATA(IP3_14_12, ATAWR), | ||
864 | PINMUX_IPSR_MODSEL_DATA(IP3_14_12, QMI_QIO1_B, SEL_RQSPI_1), | ||
865 | PINMUX_IPSR_MODSEL_DATA(IP3_14_12, ET0_ETXD2_A, SEL_ET0_0), | ||
866 | |||
867 | PINMUX_IPSR_DATA(IP3_17_15, EX_CS5), | ||
868 | PINMUX_IPSR_MODSEL_DATA(IP3_17_15, SD1_CMD_A, SEL_SDHI1_0), | ||
869 | PINMUX_IPSR_DATA(IP3_17_15, ATADIR), | ||
870 | PINMUX_IPSR_MODSEL_DATA(IP3_17_15, QSSL_B, SEL_RQSPI_1), | ||
871 | PINMUX_IPSR_MODSEL_DATA(IP3_17_15, ET0_ETXD3_A, SEL_ET0_0), | ||
872 | |||
873 | PINMUX_IPSR_DATA(IP3_19_18, RD_WR), | ||
874 | PINMUX_IPSR_DATA(IP3_19_18, TCLK0), | ||
875 | PINMUX_IPSR_MODSEL_DATA(IP3_19_18, CAN_CLK_B, SEL_RCAN_CLK_1), | ||
876 | PINMUX_IPSR_DATA(IP3_19_18, ET0_ETXD4), | ||
877 | |||
878 | PINMUX_IPSR_DATA(IP3_20, EX_WAIT0), | ||
879 | PINMUX_IPSR_MODSEL_DATA(IP3_20, TCLK1_B, SEL_TMU_1), | ||
880 | |||
881 | PINMUX_IPSR_DATA(IP3_23_21, EX_WAIT1), | ||
882 | PINMUX_IPSR_MODSEL_DATA(IP3_23_21, SD1_DAT0_A, SEL_SDHI1_0), | ||
883 | PINMUX_IPSR_DATA(IP3_23_21, DREQ2), | ||
884 | PINMUX_IPSR_MODSEL_DATA(IP3_23_21, CAN1_TX_C, SEL_RCAN1_2), | ||
885 | PINMUX_IPSR_MODSEL_DATA(IP3_23_21, ET0_LINK_C, SEL_ET0_CTL_2), | ||
886 | PINMUX_IPSR_MODSEL_DATA(IP3_23_21, ET0_ETXD5_A, SEL_ET0_0), | ||
887 | |||
888 | PINMUX_IPSR_DATA(IP3_26_24, EX_WAIT2), | ||
889 | PINMUX_IPSR_MODSEL_DATA(IP3_26_24, SD1_DAT1_A, SEL_SDHI1_0), | ||
890 | PINMUX_IPSR_DATA(IP3_26_24, DACK2), | ||
891 | PINMUX_IPSR_MODSEL_DATA(IP3_26_24, CAN1_RX_C, SEL_RCAN1_2), | ||
892 | PINMUX_IPSR_MODSEL_DATA(IP3_26_24, ET0_MAGIC_C, SEL_ET0_CTL_2), | ||
893 | PINMUX_IPSR_MODSEL_DATA(IP3_26_24, ET0_ETXD6_A, SEL_ET0_0), | ||
894 | |||
895 | PINMUX_IPSR_DATA(IP3_29_27, DRACK0), | ||
896 | PINMUX_IPSR_MODSEL_DATA(IP3_29_27, SD1_DAT2_A, SEL_SDHI1_0), | ||
897 | PINMUX_IPSR_DATA(IP3_29_27, ATAG), | ||
898 | PINMUX_IPSR_MODSEL_DATA(IP3_29_27, TCLK1_A, SEL_TMU_0), | ||
899 | PINMUX_IPSR_DATA(IP3_29_27, ET0_ETXD7), | ||
900 | |||
901 | /* IPSR4 */ | ||
902 | PINMUX_IPSR_MODSEL_DATA(IP4_2_0, HCTS0_A, SEL_HSCIF_0), | ||
903 | PINMUX_IPSR_MODSEL_DATA(IP4_2_0, CTS1_A, SEL_SCIF1_0), | ||
904 | PINMUX_IPSR_DATA(IP4_2_0, VI0_FIELD), | ||
905 | PINMUX_IPSR_MODSEL_DATA(IP4_2_0, RMII0_RXD1_A, SEL_RMII_0), | ||
906 | PINMUX_IPSR_DATA(IP4_2_0, ET0_ERXD7), | ||
907 | |||
908 | PINMUX_IPSR_MODSEL_DATA(IP4_5_3, HRTS0_A, SEL_HSCIF_0), | ||
909 | PINMUX_IPSR_MODSEL_DATA(IP4_5_3, RTS1_A, SEL_SCIF1_0), | ||
910 | PINMUX_IPSR_DATA(IP4_5_3, VI0_HSYNC), | ||
911 | PINMUX_IPSR_MODSEL_DATA(IP4_5_3, RMII0_TXD_EN_A, SEL_RMII_0), | ||
912 | PINMUX_IPSR_DATA(IP4_5_3, ET0_RX_DV), | ||
913 | |||
914 | PINMUX_IPSR_MODSEL_DATA(IP4_8_6, HSCK0_A, SEL_HSCIF_0), | ||
915 | PINMUX_IPSR_MODSEL_DATA(IP4_8_6, SCK1_A, SEL_SCIF1_0), | ||
916 | PINMUX_IPSR_DATA(IP4_8_6, VI0_VSYNC), | ||
917 | PINMUX_IPSR_MODSEL_DATA(IP4_8_6, RMII0_RX_ER_A, SEL_RMII_0), | ||
918 | PINMUX_IPSR_DATA(IP4_8_6, ET0_RX_ER), | ||
919 | |||
920 | PINMUX_IPSR_MODSEL_DATA(IP4_11_9, HRX0_A, SEL_HSCIF_0), | ||
921 | PINMUX_IPSR_MODSEL_DATA(IP4_11_9, RX1_A, SEL_SCIF1_0), | ||
922 | PINMUX_IPSR_DATA(IP4_11_9, VI0_DATA0_VI0_B0), | ||
923 | PINMUX_IPSR_MODSEL_DATA(IP4_11_9, RMII0_CRS_DV_A, SEL_RMII_0), | ||
924 | PINMUX_IPSR_DATA(IP4_11_9, ET0_CRS), | ||
925 | |||
926 | PINMUX_IPSR_MODSEL_DATA(IP4_14_12, HTX0_A, SEL_HSCIF_0), | ||
927 | PINMUX_IPSR_MODSEL_DATA(IP4_14_12, TX1_A, SEL_SCIF1_0), | ||
928 | PINMUX_IPSR_DATA(IP4_14_12, VI0_DATA1_VI0_B1), | ||
929 | PINMUX_IPSR_MODSEL_DATA(IP4_14_12, RMII0_MDC_A, SEL_RMII_0), | ||
930 | PINMUX_IPSR_DATA(IP4_14_12, ET0_COL), | ||
931 | |||
932 | PINMUX_IPSR_MODSEL_DATA(IP4_17_15, CTS0_B, SEL_SCIF0_1), | ||
933 | PINMUX_IPSR_DATA(IP4_17_15, VI0_DATA2_VI0_B2), | ||
934 | PINMUX_IPSR_MODSEL_DATA(IP4_17_15, RMII0_MDIO_A, SEL_RMII_0), | ||
935 | PINMUX_IPSR_DATA(IP4_17_15, ET0_MDC), | ||
936 | |||
937 | PINMUX_IPSR_MODSEL_DATA(IP4_19_18, RTS0_B, SEL_SCIF0_1), | ||
938 | PINMUX_IPSR_DATA(IP4_19_18, VI0_DATA3_VI0_B3), | ||
939 | PINMUX_IPSR_MODSEL_DATA(IP4_19_18, ET0_MDIO_A, SEL_ET0_0), | ||
940 | |||
941 | PINMUX_IPSR_MODSEL_DATA(IP4_21_20, SCK1_B, SEL_SCIF1_1), | ||
942 | PINMUX_IPSR_DATA(IP4_21_20, VI0_DATA4_VI0_B4), | ||
943 | PINMUX_IPSR_MODSEL_DATA(IP4_21_20, ET0_LINK_A, SEL_ET0_CTL_0), | ||
944 | |||
945 | PINMUX_IPSR_MODSEL_DATA(IP4_23_22, RX1_B, SEL_SCIF1_1), | ||
946 | PINMUX_IPSR_DATA(IP4_23_22, VI0_DATA5_VI0_B5), | ||
947 | PINMUX_IPSR_MODSEL_DATA(IP4_23_22, ET0_MAGIC_A, SEL_ET0_CTL_0), | ||
948 | |||
949 | PINMUX_IPSR_MODSEL_DATA(IP4_25_24, TX1_B, SEL_SCIF1_1), | ||
950 | PINMUX_IPSR_DATA(IP4_25_24, VI0_DATA6_VI0_G0), | ||
951 | PINMUX_IPSR_MODSEL_DATA(IP4_25_24, ET0_PHY_INT_A, SEL_ET0_CTL_0), | ||
952 | |||
953 | PINMUX_IPSR_MODSEL_DATA(IP4_27_26, CTS1_B, SEL_SCIF1_1), | ||
954 | PINMUX_IPSR_DATA(IP4_27_26, VI0_DATA7_VI0_G1), | ||
955 | |||
956 | PINMUX_IPSR_MODSEL_DATA(IP4_29_28, RTS1_B, SEL_SCIF1_1), | ||
957 | PINMUX_IPSR_DATA(IP4_29_28, VI0_G2), | ||
958 | |||
959 | PINMUX_IPSR_MODSEL_DATA(IP4_31_30, SCK2_A, SEL_SCIF2_0), | ||
960 | PINMUX_IPSR_DATA(IP4_31_30, VI0_G3), | ||
961 | |||
962 | /* IPSR5 */ | ||
963 | PINMUX_IPSR_MODSEL_DATA(IP5_2_0, SD2_CLK_A, SEL_SDHI2_0), | ||
964 | PINMUX_IPSR_MODSEL_DATA(IP5_2_0, RX2_A, SEL_SCIF2_0), | ||
965 | PINMUX_IPSR_DATA(IP5_2_0, VI0_G4), | ||
966 | PINMUX_IPSR_MODSEL_DATA(IP5_2_0, ET0_RX_CLK_B, SEL_ET0_1), | ||
967 | |||
968 | PINMUX_IPSR_MODSEL_DATA(IP5_5_3, SD2_CMD_A, SEL_SDHI2_0), | ||
969 | PINMUX_IPSR_MODSEL_DATA(IP5_5_3, TX2_A, SEL_SCIF2_0), | ||
970 | PINMUX_IPSR_DATA(IP5_5_3, VI0_G5), | ||
971 | PINMUX_IPSR_MODSEL_DATA(IP5_5_3, ET0_ERXD2_B, SEL_ET0_1), | ||
972 | |||
973 | PINMUX_IPSR_MODSEL_DATA(IP5_8_6, SD2_DAT0_A, SEL_SDHI2_0), | ||
974 | PINMUX_IPSR_MODSEL_DATA(IP5_8_6, RX3_A, SEL_SCIF3_0), | ||
975 | PINMUX_IPSR_DATA(IP4_8_6, VI0_R0), | ||
976 | PINMUX_IPSR_MODSEL_DATA(IP4_8_6, ET0_ERXD2_B, SEL_ET0_1), | ||
977 | |||
978 | PINMUX_IPSR_MODSEL_DATA(IP5_11_9, SD2_DAT1_A, SEL_SDHI2_0), | ||
979 | PINMUX_IPSR_MODSEL_DATA(IP5_11_9, TX3_A, SEL_SCIF3_0), | ||
980 | PINMUX_IPSR_DATA(IP5_11_9, VI0_R1), | ||
981 | PINMUX_IPSR_MODSEL_DATA(IP5_11_9, ET0_MDIO_B, SEL_ET0_1), | ||
982 | |||
983 | PINMUX_IPSR_MODSEL_DATA(IP5_14_12, SD2_DAT2_A, SEL_SDHI2_0), | ||
984 | PINMUX_IPSR_MODSEL_DATA(IP5_14_12, RX4_A, SEL_SCIF4_0), | ||
985 | PINMUX_IPSR_DATA(IP5_14_12, VI0_R2), | ||
986 | PINMUX_IPSR_MODSEL_DATA(IP5_14_12, ET0_LINK_B, SEL_ET0_CTL_1), | ||
987 | |||
988 | PINMUX_IPSR_MODSEL_DATA(IP5_17_15, SD2_DAT3_A, SEL_SDHI2_0), | ||
989 | PINMUX_IPSR_MODSEL_DATA(IP5_17_15, TX4_A, SEL_SCIF4_0), | ||
990 | PINMUX_IPSR_DATA(IP5_17_15, VI0_R3), | ||
991 | PINMUX_IPSR_MODSEL_DATA(IP5_17_15, ET0_MAGIC_B, SEL_ET0_CTL_1), | ||
992 | |||
993 | PINMUX_IPSR_MODSEL_DATA(IP5_20_18, SD2_CD_A, SEL_SDHI2_0), | ||
994 | PINMUX_IPSR_MODSEL_DATA(IP5_20_18, RX5_A, SEL_SCIF5_0), | ||
995 | PINMUX_IPSR_DATA(IP5_20_18, VI0_R4), | ||
996 | PINMUX_IPSR_MODSEL_DATA(IP5_20_18, ET0_PHY_INT_B, SEL_ET0_CTL_1), | ||
997 | |||
998 | PINMUX_IPSR_MODSEL_DATA(IP5_22_21, SD2_WP_A, SEL_SDHI2_0), | ||
999 | PINMUX_IPSR_MODSEL_DATA(IP5_22_21, TX5_A, SEL_SCIF5_0), | ||
1000 | PINMUX_IPSR_DATA(IP5_22_21, VI0_R5), | ||
1001 | |||
1002 | PINMUX_IPSR_DATA(IP5_24_23, REF125CK), | ||
1003 | PINMUX_IPSR_DATA(IP5_24_23, ADTRG), | ||
1004 | PINMUX_IPSR_MODSEL_DATA(IP5_24_23, RX5_C, SEL_SCIF5_2), | ||
1005 | PINMUX_IPSR_DATA(IP5_26_25, REF50CK), | ||
1006 | PINMUX_IPSR_MODSEL_DATA(IP5_26_25, CTS1_E, SEL_SCIF1_3), | ||
1007 | PINMUX_IPSR_MODSEL_DATA(IP5_26_25, HCTS0_D, SEL_HSCIF_3), | ||
1008 | |||
1009 | /* IPSR6 */ | ||
1010 | PINMUX_IPSR_DATA(IP6_2_0, DU0_DR0), | ||
1011 | PINMUX_IPSR_MODSEL_DATA(IP6_2_0, SCIF_CLK_B, SEL_SCIF_CLK_1), | ||
1012 | PINMUX_IPSR_MODSEL_DATA(IP6_2_0, HRX0_D, SEL_HSCIF_3), | ||
1013 | PINMUX_IPSR_MODSEL_DATA(IP6_2_0, IETX_A, SEL_IEBUS_0), | ||
1014 | PINMUX_IPSR_MODSEL_DATA(IP6_2_0, TCLKA_A, SEL_MTU2_CLK_0), | ||
1015 | PINMUX_IPSR_DATA(IP6_2_0, HIFD00), | ||
1016 | |||
1017 | PINMUX_IPSR_DATA(IP6_5_3, DU0_DR1), | ||
1018 | PINMUX_IPSR_MODSEL_DATA(IP6_5_3, SCK0_B, SEL_SCIF0_1), | ||
1019 | PINMUX_IPSR_MODSEL_DATA(IP6_5_3, HTX0_D, SEL_HSCIF_3), | ||
1020 | PINMUX_IPSR_MODSEL_DATA(IP6_5_3, IERX_A, SEL_IEBUS_0), | ||
1021 | PINMUX_IPSR_MODSEL_DATA(IP6_5_3, TCLKB_A, SEL_MTU2_CLK_0), | ||
1022 | PINMUX_IPSR_DATA(IP6_5_3, HIFD01), | ||
1023 | |||
1024 | PINMUX_IPSR_DATA(IP6_7_6, DU0_DR2), | ||
1025 | PINMUX_IPSR_MODSEL_DATA(IP6_7_6, RX0_B, SEL_SCIF0_1), | ||
1026 | PINMUX_IPSR_MODSEL_DATA(IP6_7_6, TCLKC_A, SEL_MTU2_CLK_0), | ||
1027 | PINMUX_IPSR_DATA(IP6_7_6, HIFD02), | ||
1028 | |||
1029 | PINMUX_IPSR_DATA(IP6_9_8, DU0_DR3), | ||
1030 | PINMUX_IPSR_MODSEL_DATA(IP6_9_8, TX0_B, SEL_SCIF0_1), | ||
1031 | PINMUX_IPSR_MODSEL_DATA(IP6_9_8, TCLKD_A, SEL_MTU2_CLK_0), | ||
1032 | PINMUX_IPSR_DATA(IP6_9_8, HIFD03), | ||
1033 | |||
1034 | PINMUX_IPSR_DATA(IP6_11_10, DU0_DR4), | ||
1035 | PINMUX_IPSR_MODSEL_DATA(IP6_11_10, CTS0_C, SEL_SCIF0_2), | ||
1036 | PINMUX_IPSR_MODSEL_DATA(IP6_11_10, TIOC0A_A, SEL_MTU2_CH0_0), | ||
1037 | PINMUX_IPSR_DATA(IP6_11_10, HIFD04), | ||
1038 | |||
1039 | PINMUX_IPSR_DATA(IP6_13_12, DU0_DR5), | ||
1040 | PINMUX_IPSR_MODSEL_DATA(IP6_13_12, RTS0_C, SEL_SCIF0_1), | ||
1041 | PINMUX_IPSR_MODSEL_DATA(IP6_13_12, TIOC0B_A, SEL_MTU2_CH0_0), | ||
1042 | PINMUX_IPSR_DATA(IP6_13_12, HIFD05), | ||
1043 | |||
1044 | PINMUX_IPSR_DATA(IP6_15_14, DU0_DR6), | ||
1045 | PINMUX_IPSR_MODSEL_DATA(IP6_15_14, SCK1_C, SEL_SCIF1_2), | ||
1046 | PINMUX_IPSR_MODSEL_DATA(IP6_15_14, TIOC0C_A, SEL_MTU2_CH0_0), | ||
1047 | PINMUX_IPSR_DATA(IP6_15_14, HIFD06), | ||
1048 | |||
1049 | PINMUX_IPSR_DATA(IP6_17_16, DU0_DR7), | ||
1050 | PINMUX_IPSR_MODSEL_DATA(IP6_17_16, RX1_C, SEL_SCIF1_2), | ||
1051 | PINMUX_IPSR_MODSEL_DATA(IP6_17_16, TIOC0D_A, SEL_MTU2_CH0_0), | ||
1052 | PINMUX_IPSR_DATA(IP6_17_16, HIFD07), | ||
1053 | |||
1054 | PINMUX_IPSR_DATA(IP6_20_18, DU0_DG0), | ||
1055 | PINMUX_IPSR_MODSEL_DATA(IP6_20_18, TX1_C, SEL_SCIF1_2), | ||
1056 | PINMUX_IPSR_MODSEL_DATA(IP6_20_18, HSCK0_D, SEL_HSCIF_3), | ||
1057 | PINMUX_IPSR_MODSEL_DATA(IP6_20_18, IECLK_A, SEL_IEBUS_0), | ||
1058 | PINMUX_IPSR_MODSEL_DATA(IP6_20_18, TIOC1A_A, SEL_MTU2_CH1_0), | ||
1059 | PINMUX_IPSR_DATA(IP6_20_18, HIFD08), | ||
1060 | |||
1061 | PINMUX_IPSR_DATA(IP6_23_21, DU0_DG1), | ||
1062 | PINMUX_IPSR_MODSEL_DATA(IP6_23_21, CTS1_C, SEL_SCIF1_2), | ||
1063 | PINMUX_IPSR_MODSEL_DATA(IP6_23_21, HRTS0_D, SEL_HSCIF_3), | ||
1064 | PINMUX_IPSR_MODSEL_DATA(IP6_23_21, TIOC1B_A, SEL_MTU2_CH1_0), | ||
1065 | PINMUX_IPSR_DATA(IP6_23_21, HIFD09), | ||
1066 | |||
1067 | /* IPSR7 */ | ||
1068 | PINMUX_IPSR_DATA(IP7_2_0, DU0_DG2), | ||
1069 | PINMUX_IPSR_MODSEL_DATA(IP7_2_0, RTS1_C, SEL_SCIF1_2), | ||
1070 | PINMUX_IPSR_MODSEL_DATA(IP7_2_0, RMII0_MDC_B, SEL_RMII_1), | ||
1071 | PINMUX_IPSR_MODSEL_DATA(IP7_2_0, TIOC2A_A, SEL_MTU2_CH2_0), | ||
1072 | PINMUX_IPSR_DATA(IP7_2_0, HIFD10), | ||
1073 | |||
1074 | PINMUX_IPSR_DATA(IP7_5_3, DU0_DG3), | ||
1075 | PINMUX_IPSR_MODSEL_DATA(IP7_5_3, SCK2_C, SEL_SCIF2_2), | ||
1076 | PINMUX_IPSR_MODSEL_DATA(IP7_5_3, RMII0_MDIO_B, SEL_RMII_1), | ||
1077 | PINMUX_IPSR_MODSEL_DATA(IP7_5_3, TIOC2B_A, SEL_MTU2_CH2_0), | ||
1078 | PINMUX_IPSR_DATA(IP7_5_3, HIFD11), | ||
1079 | |||
1080 | PINMUX_IPSR_DATA(IP7_8_6, DU0_DG4), | ||
1081 | PINMUX_IPSR_MODSEL_DATA(IP7_8_6, RX2_C, SEL_SCIF2_2), | ||
1082 | PINMUX_IPSR_MODSEL_DATA(IP7_8_6, RMII0_CRS_DV_B, SEL_RMII_1), | ||
1083 | PINMUX_IPSR_MODSEL_DATA(IP7_8_6, TIOC3A_A, SEL_MTU2_CH3_0), | ||
1084 | PINMUX_IPSR_DATA(IP7_8_6, HIFD12), | ||
1085 | |||
1086 | PINMUX_IPSR_DATA(IP7_11_9, DU0_DG5), | ||
1087 | PINMUX_IPSR_MODSEL_DATA(IP7_11_9, TX2_C, SEL_SCIF2_2), | ||
1088 | PINMUX_IPSR_MODSEL_DATA(IP7_11_9, RMII0_RX_ER_B, SEL_RMII_1), | ||
1089 | PINMUX_IPSR_MODSEL_DATA(IP7_11_9, TIOC3B_A, SEL_MTU2_CH3_0), | ||
1090 | PINMUX_IPSR_DATA(IP7_11_9, HIFD13), | ||
1091 | |||
1092 | PINMUX_IPSR_DATA(IP7_14_12, DU0_DG6), | ||
1093 | PINMUX_IPSR_MODSEL_DATA(IP7_14_12, RX3_C, SEL_SCIF3_2), | ||
1094 | PINMUX_IPSR_MODSEL_DATA(IP7_14_12, RMII0_RXD0_B, SEL_RMII_1), | ||
1095 | PINMUX_IPSR_MODSEL_DATA(IP7_14_12, TIOC3C_A, SEL_MTU2_CH3_0), | ||
1096 | PINMUX_IPSR_DATA(IP7_14_12, HIFD14), | ||
1097 | |||
1098 | PINMUX_IPSR_DATA(IP7_17_15, DU0_DG7), | ||
1099 | PINMUX_IPSR_MODSEL_DATA(IP7_17_15, TX3_C, SEL_SCIF3_2), | ||
1100 | PINMUX_IPSR_MODSEL_DATA(IP7_17_15, RMII0_RXD1_B, SEL_RMII_1), | ||
1101 | PINMUX_IPSR_MODSEL_DATA(IP7_17_15, TIOC3D_A, SEL_MTU2_CH3_0), | ||
1102 | PINMUX_IPSR_DATA(IP7_17_15, HIFD15), | ||
1103 | |||
1104 | PINMUX_IPSR_DATA(IP7_20_18, DU0_DB0), | ||
1105 | PINMUX_IPSR_MODSEL_DATA(IP7_20_18, RX4_C, SEL_SCIF4_2), | ||
1106 | PINMUX_IPSR_MODSEL_DATA(IP7_20_18, RMII0_TXD_EN_B, SEL_RMII_1), | ||
1107 | PINMUX_IPSR_MODSEL_DATA(IP7_20_18, TIOC4A_A, SEL_MTU2_CH4_0), | ||
1108 | PINMUX_IPSR_DATA(IP7_20_18, HIFCS), | ||
1109 | |||
1110 | PINMUX_IPSR_DATA(IP7_23_21, DU0_DB1), | ||
1111 | PINMUX_IPSR_MODSEL_DATA(IP7_23_21, TX4_C, SEL_SCIF4_2), | ||
1112 | PINMUX_IPSR_MODSEL_DATA(IP7_23_21, RMII0_TXD0_B, SEL_RMII_1), | ||
1113 | PINMUX_IPSR_MODSEL_DATA(IP7_23_21, TIOC4B_A, SEL_MTU2_CH4_0), | ||
1114 | PINMUX_IPSR_DATA(IP7_23_21, HIFWR), | ||
1115 | |||
1116 | PINMUX_IPSR_DATA(IP7_26_24, DU0_DB2), | ||
1117 | PINMUX_IPSR_MODSEL_DATA(IP7_26_24, RX5_B, SEL_SCIF5_1), | ||
1118 | PINMUX_IPSR_MODSEL_DATA(IP7_26_24, RMII0_TXD1_B, SEL_RMII_1), | ||
1119 | PINMUX_IPSR_MODSEL_DATA(IP7_26_24, TIOC4C_A, SEL_MTU2_CH4_0), | ||
1120 | |||
1121 | PINMUX_IPSR_DATA(IP7_28_27, DU0_DB3), | ||
1122 | PINMUX_IPSR_MODSEL_DATA(IP7_28_27, TX5_B, SEL_SCIF5_1), | ||
1123 | PINMUX_IPSR_MODSEL_DATA(IP7_28_27, TIOC4D_A, SEL_MTU2_CH4_0), | ||
1124 | PINMUX_IPSR_DATA(IP7_28_27, HIFRD), | ||
1125 | |||
1126 | PINMUX_IPSR_DATA(IP7_30_29, DU0_DB4), | ||
1127 | PINMUX_IPSR_DATA(IP7_30_29, HIFINT), | ||
1128 | |||
1129 | /* IPSR8 */ | ||
1130 | PINMUX_IPSR_DATA(IP8_1_0, DU0_DB5), | ||
1131 | PINMUX_IPSR_DATA(IP8_1_0, HIFDREQ), | ||
1132 | |||
1133 | PINMUX_IPSR_DATA(IP8_3_2, DU0_DB6), | ||
1134 | PINMUX_IPSR_DATA(IP8_3_2, HIFRDY), | ||
1135 | |||
1136 | PINMUX_IPSR_DATA(IP8_5_4, DU0_DB7), | ||
1137 | PINMUX_IPSR_MODSEL_DATA(IP8_5_4, SSI_SCK0_B, SEL_SSI0_1), | ||
1138 | PINMUX_IPSR_MODSEL_DATA(IP8_5_4, HIFEBL_B, SEL_HIF_1), | ||
1139 | |||
1140 | PINMUX_IPSR_DATA(IP8_7_6, DU0_DOTCLKIN), | ||
1141 | PINMUX_IPSR_MODSEL_DATA(IP8_7_6, HSPI_CS0_C, SEL_HSPI_2), | ||
1142 | PINMUX_IPSR_MODSEL_DATA(IP8_7_6, SSI_WS0_B, SEL_SSI0_1), | ||
1143 | |||
1144 | PINMUX_IPSR_DATA(IP8_9_8, DU0_DOTCLKOUT), | ||
1145 | PINMUX_IPSR_MODSEL_DATA(IP8_9_8, HSPI_CLK0_C, SEL_HSPI_2), | ||
1146 | PINMUX_IPSR_MODSEL_DATA(IP8_9_8, SSI_SDATA0_B, SEL_SSI0_1), | ||
1147 | |||
1148 | PINMUX_IPSR_DATA(IP8_11_10, DU0_EXHSYNC_DU0_HSYNC), | ||
1149 | PINMUX_IPSR_MODSEL_DATA(IP8_11_10, HSPI_TX0_C, SEL_HSPI_2), | ||
1150 | PINMUX_IPSR_MODSEL_DATA(IP8_11_10, SSI_SCK1_B, SEL_SSI1_1), | ||
1151 | |||
1152 | PINMUX_IPSR_DATA(IP8_13_12, DU0_EXVSYNC_DU0_VSYNC), | ||
1153 | PINMUX_IPSR_MODSEL_DATA(IP8_13_12, HSPI_RX0_C, SEL_HSPI_2), | ||
1154 | PINMUX_IPSR_MODSEL_DATA(IP8_13_12, SSI_WS1_B, SEL_SSI1_1), | ||
1155 | |||
1156 | PINMUX_IPSR_DATA(IP8_15_14, DU0_EXODDF_DU0_ODDF), | ||
1157 | PINMUX_IPSR_MODSEL_DATA(IP8_15_14, CAN0_RX_B, SEL_RCAN0_1), | ||
1158 | PINMUX_IPSR_MODSEL_DATA(IP8_15_14, HSCK0_B, SEL_HSCIF_1), | ||
1159 | PINMUX_IPSR_MODSEL_DATA(IP8_15_14, SSI_SDATA1_B, SEL_SSI1_1), | ||
1160 | |||
1161 | PINMUX_IPSR_DATA(IP8_17_16, DU0_DISP), | ||
1162 | PINMUX_IPSR_MODSEL_DATA(IP8_17_16, CAN0_TX_B, SEL_RCAN0_1), | ||
1163 | PINMUX_IPSR_MODSEL_DATA(IP8_17_16, HRX0_B, SEL_HSCIF_1), | ||
1164 | PINMUX_IPSR_MODSEL_DATA(IP8_17_16, AUDIO_CLKA_B, SEL_AUDIO_CLKA_1), | ||
1165 | |||
1166 | PINMUX_IPSR_DATA(IP8_19_18, DU0_CDE), | ||
1167 | PINMUX_IPSR_MODSEL_DATA(IP8_19_18, HTX0_B, SEL_HSCIF_1), | ||
1168 | PINMUX_IPSR_MODSEL_DATA(IP8_19_18, AUDIO_CLKB_B, SEL_AUDIO_CLKB_1), | ||
1169 | PINMUX_IPSR_MODSEL_DATA(IP8_19_18, LCD_VCPWC_B, SEL_LCDC_1), | ||
1170 | |||
1171 | PINMUX_IPSR_MODSEL_DATA(IP8_22_20, IRQ0_A, SEL_INTC_0), | ||
1172 | PINMUX_IPSR_MODSEL_DATA(IP8_22_20, HSPI_TX_B, SEL_HSPI_1), | ||
1173 | PINMUX_IPSR_MODSEL_DATA(IP8_22_20, RX3_E, SEL_SCIF3_4), | ||
1174 | PINMUX_IPSR_DATA(IP8_22_20, ET0_ERXD0), | ||
1175 | |||
1176 | PINMUX_IPSR_MODSEL_DATA(IP8_25_23, IRQ1_A, SEL_INTC_0), | ||
1177 | PINMUX_IPSR_MODSEL_DATA(IP8_25_23, HSPI_RX_B, SEL_HSPI_1), | ||
1178 | PINMUX_IPSR_MODSEL_DATA(IP8_25_23, TX3_E, SEL_SCIF3_4), | ||
1179 | PINMUX_IPSR_DATA(IP8_25_23, ET0_ERXD1), | ||
1180 | |||
1181 | PINMUX_IPSR_MODSEL_DATA(IP8_27_26, IRQ2_A, SEL_INTC_0), | ||
1182 | PINMUX_IPSR_MODSEL_DATA(IP8_27_26, CTS0_A, SEL_SCIF0_0), | ||
1183 | PINMUX_IPSR_MODSEL_DATA(IP8_27_26, HCTS0_B, SEL_HSCIF_1), | ||
1184 | PINMUX_IPSR_MODSEL_DATA(IP8_27_26, ET0_ERXD2_A, SEL_ET0_0), | ||
1185 | |||
1186 | PINMUX_IPSR_MODSEL_DATA(IP8_29_28, IRQ3_A, SEL_INTC_0), | ||
1187 | PINMUX_IPSR_MODSEL_DATA(IP8_29_28, RTS0_A, SEL_SCIF0_0), | ||
1188 | PINMUX_IPSR_MODSEL_DATA(IP8_29_28, HRTS0_B, SEL_HSCIF_1), | ||
1189 | PINMUX_IPSR_MODSEL_DATA(IP8_29_28, ET0_ERXD3_A, SEL_ET0_0), | ||
1190 | |||
1191 | /* IPSR9 */ | ||
1192 | PINMUX_IPSR_MODSEL_DATA(IP9_1_0, VI1_CLK_A, SEL_VIN1_0), | ||
1193 | PINMUX_IPSR_MODSEL_DATA(IP9_1_0, FD0_B, SEL_FLCTL_1), | ||
1194 | PINMUX_IPSR_MODSEL_DATA(IP9_1_0, LCD_DATA0_B, SEL_LCDC_1), | ||
1195 | |||
1196 | PINMUX_IPSR_MODSEL_DATA(IP9_3_2, VI1_0_A, SEL_VIN1_0), | ||
1197 | PINMUX_IPSR_MODSEL_DATA(IP9_3_2, FD1_B, SEL_FLCTL_1), | ||
1198 | PINMUX_IPSR_MODSEL_DATA(IP9_3_2, LCD_DATA1_B, SEL_LCDC_1), | ||
1199 | |||
1200 | PINMUX_IPSR_MODSEL_DATA(IP9_5_4, VI1_1_A, SEL_VIN1_0), | ||
1201 | PINMUX_IPSR_MODSEL_DATA(IP9_5_4, FD2_B, SEL_FLCTL_1), | ||
1202 | PINMUX_IPSR_MODSEL_DATA(IP9_5_4, LCD_DATA2_B, SEL_LCDC_1), | ||
1203 | |||
1204 | PINMUX_IPSR_MODSEL_DATA(IP9_7_6, VI1_2_A, SEL_VIN1_0), | ||
1205 | PINMUX_IPSR_MODSEL_DATA(IP9_7_6, FD3_B, SEL_FLCTL_1), | ||
1206 | PINMUX_IPSR_MODSEL_DATA(IP9_7_6, LCD_DATA3_B, SEL_LCDC_1), | ||
1207 | |||
1208 | PINMUX_IPSR_MODSEL_DATA(IP9_9_8, VI1_3_A, SEL_VIN1_0), | ||
1209 | PINMUX_IPSR_MODSEL_DATA(IP9_9_8, FD4_B, SEL_FLCTL_1), | ||
1210 | PINMUX_IPSR_MODSEL_DATA(IP9_9_8, LCD_DATA4_B, SEL_LCDC_1), | ||
1211 | |||
1212 | PINMUX_IPSR_MODSEL_DATA(IP9_11_10, VI1_4_A, SEL_VIN1_0), | ||
1213 | PINMUX_IPSR_MODSEL_DATA(IP9_11_10, FD5_B, SEL_FLCTL_1), | ||
1214 | PINMUX_IPSR_MODSEL_DATA(IP9_11_10, LCD_DATA5_B, SEL_LCDC_1), | ||
1215 | |||
1216 | PINMUX_IPSR_MODSEL_DATA(IP9_13_12, VI1_5_A, SEL_VIN1_0), | ||
1217 | PINMUX_IPSR_MODSEL_DATA(IP9_13_12, FD6_B, SEL_FLCTL_1), | ||
1218 | PINMUX_IPSR_MODSEL_DATA(IP9_13_12, LCD_DATA6_B, SEL_LCDC_1), | ||
1219 | |||
1220 | PINMUX_IPSR_MODSEL_DATA(IP9_15_14, VI1_6_A, SEL_VIN1_0), | ||
1221 | PINMUX_IPSR_MODSEL_DATA(IP9_15_14, FD7_B, SEL_FLCTL_1), | ||
1222 | PINMUX_IPSR_MODSEL_DATA(IP9_15_14, LCD_DATA7_B, SEL_LCDC_1), | ||
1223 | |||
1224 | PINMUX_IPSR_MODSEL_DATA(IP9_17_16, VI1_7_A, SEL_VIN1_0), | ||
1225 | PINMUX_IPSR_MODSEL_DATA(IP9_17_16, FCE_B, SEL_FLCTL_1), | ||
1226 | PINMUX_IPSR_MODSEL_DATA(IP9_17_16, LCD_DATA8_B, SEL_LCDC_1), | ||
1227 | |||
1228 | PINMUX_IPSR_MODSEL_DATA(IP9_19_18, SSI_SCK0_A, SEL_SSI0_0), | ||
1229 | PINMUX_IPSR_MODSEL_DATA(IP9_19_18, TIOC1A_B, SEL_MTU2_CH1_1), | ||
1230 | PINMUX_IPSR_MODSEL_DATA(IP9_19_18, LCD_DATA9_B, SEL_LCDC_1), | ||
1231 | |||
1232 | PINMUX_IPSR_MODSEL_DATA(IP9_21_20, SSI_WS0_A, SEL_SSI0_0), | ||
1233 | PINMUX_IPSR_MODSEL_DATA(IP9_21_20, TIOC1B_B, SEL_MTU2_CH1_1), | ||
1234 | PINMUX_IPSR_MODSEL_DATA(IP9_21_20, LCD_DATA10_B, SEL_LCDC_1), | ||
1235 | |||
1236 | PINMUX_IPSR_MODSEL_DATA(IP9_23_22, SSI_SDATA0_A, SEL_SSI0_0), | ||
1237 | PINMUX_IPSR_MODSEL_DATA(IP9_23_22, VI1_0_B, SEL_VIN1_1), | ||
1238 | PINMUX_IPSR_MODSEL_DATA(IP9_23_22, TIOC2A_B, SEL_MTU2_CH2_1), | ||
1239 | PINMUX_IPSR_MODSEL_DATA(IP9_23_22, LCD_DATA11_B, SEL_LCDC_1), | ||
1240 | |||
1241 | PINMUX_IPSR_MODSEL_DATA(IP9_25_24, SSI_SCK1_A, SEL_SSI1_0), | ||
1242 | PINMUX_IPSR_MODSEL_DATA(IP9_25_24, VI1_1_B, SEL_VIN1_1), | ||
1243 | PINMUX_IPSR_MODSEL_DATA(IP9_25_24, TIOC2B_B, SEL_MTU2_CH2_1), | ||
1244 | PINMUX_IPSR_MODSEL_DATA(IP9_25_24, LCD_DATA12_B, SEL_LCDC_1), | ||
1245 | |||
1246 | PINMUX_IPSR_MODSEL_DATA(IP9_27_26, SSI_WS1_A, SEL_SSI1_0), | ||
1247 | PINMUX_IPSR_MODSEL_DATA(IP9_27_26, VI1_2_B, SEL_VIN1_1), | ||
1248 | PINMUX_IPSR_MODSEL_DATA(IP9_27_26, LCD_DATA13_B, SEL_LCDC_1), | ||
1249 | |||
1250 | PINMUX_IPSR_MODSEL_DATA(IP9_29_28, SSI_SDATA1_A, SEL_SSI1_0), | ||
1251 | PINMUX_IPSR_MODSEL_DATA(IP9_29_28, VI1_3_B, SEL_VIN1_1), | ||
1252 | PINMUX_IPSR_MODSEL_DATA(IP9_29_28, LCD_DATA14_B, SEL_LCDC_1), | ||
1253 | |||
1254 | /* IPSE10 */ | ||
1255 | PINMUX_IPSR_DATA(IP10_2_0, SSI_SCK23), | ||
1256 | PINMUX_IPSR_MODSEL_DATA(IP10_2_0, VI1_4_B, SEL_VIN1_1), | ||
1257 | PINMUX_IPSR_MODSEL_DATA(IP10_2_0, RX1_D, SEL_SCIF1_3), | ||
1258 | PINMUX_IPSR_MODSEL_DATA(IP10_2_0, FCLE_B, SEL_FLCTL_1), | ||
1259 | PINMUX_IPSR_MODSEL_DATA(IP10_2_0, LCD_DATA15_B, SEL_LCDC_1), | ||
1260 | |||
1261 | PINMUX_IPSR_DATA(IP10_5_3, SSI_WS23), | ||
1262 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, VI1_5_B, SEL_VIN1_1), | ||
1263 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, TX1_D, SEL_SCIF1_3), | ||
1264 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, HSCK0_C, SEL_HSCIF_2), | ||
1265 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, FALE_B, SEL_FLCTL_1), | ||
1266 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, LCD_DON_B, SEL_LCDC_1), | ||
1267 | |||
1268 | PINMUX_IPSR_DATA(IP10_8_6, SSI_SDATA2), | ||
1269 | PINMUX_IPSR_MODSEL_DATA(IP10_8_6, VI1_6_B, SEL_VIN1_1), | ||
1270 | PINMUX_IPSR_MODSEL_DATA(IP10_8_6, HRX0_C, SEL_HSCIF_2), | ||
1271 | PINMUX_IPSR_MODSEL_DATA(IP10_8_6, FRE_B, SEL_FLCTL_1), | ||
1272 | PINMUX_IPSR_MODSEL_DATA(IP10_8_6, LCD_CL1_B, SEL_LCDC_1), | ||
1273 | |||
1274 | PINMUX_IPSR_DATA(IP10_11_9, SSI_SDATA3), | ||
1275 | PINMUX_IPSR_MODSEL_DATA(IP10_11_9, VI1_7_B, SEL_VIN1_1), | ||
1276 | PINMUX_IPSR_MODSEL_DATA(IP10_11_9, HTX0_C, SEL_HSCIF_2), | ||
1277 | PINMUX_IPSR_MODSEL_DATA(IP10_11_9, FWE_B, SEL_FLCTL_1), | ||
1278 | PINMUX_IPSR_MODSEL_DATA(IP10_11_9, LCD_CL2_B, SEL_LCDC_1), | ||
1279 | |||
1280 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, AUDIO_CLKA_A, SEL_AUDIO_CLKA_0), | ||
1281 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, VI1_CLK_B, SEL_VIN1_1), | ||
1282 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, SCK1_D, SEL_SCIF1_3), | ||
1283 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, IECLK_B, SEL_IEBUS_1), | ||
1284 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, LCD_FLM_B, SEL_LCDC_1), | ||
1285 | |||
1286 | PINMUX_IPSR_MODSEL_DATA(IP10_15, AUDIO_CLKB_A, SEL_AUDIO_CLKB_0), | ||
1287 | PINMUX_IPSR_MODSEL_DATA(IP10_15, LCD_CLK_B, SEL_LCDC_1), | ||
1288 | |||
1289 | PINMUX_IPSR_DATA(IP10_18_16, AUDIO_CLKC), | ||
1290 | PINMUX_IPSR_MODSEL_DATA(IP10_18_16, SCK1_E, SEL_SCIF1_4), | ||
1291 | PINMUX_IPSR_MODSEL_DATA(IP10_18_16, HCTS0_C, SEL_HSCIF_2), | ||
1292 | PINMUX_IPSR_MODSEL_DATA(IP10_18_16, FRB_B, SEL_FLCTL_1), | ||
1293 | PINMUX_IPSR_MODSEL_DATA(IP10_18_16, LCD_VEPWC_B, SEL_LCDC_1), | ||
1294 | |||
1295 | PINMUX_IPSR_DATA(IP10_21_19, AUDIO_CLKOUT), | ||
1296 | PINMUX_IPSR_MODSEL_DATA(IP10_21_19, TX1_E, SEL_SCIF1_4), | ||
1297 | PINMUX_IPSR_MODSEL_DATA(IP10_21_19, HRTS0_C, SEL_HSCIF_2), | ||
1298 | PINMUX_IPSR_MODSEL_DATA(IP10_21_19, FSE_B, SEL_FLCTL_1), | ||
1299 | PINMUX_IPSR_MODSEL_DATA(IP10_21_19, LCD_M_DISP_B, SEL_LCDC_1), | ||
1300 | |||
1301 | PINMUX_IPSR_MODSEL_DATA(IP10_22, CAN_CLK_A, SEL_RCAN_CLK_0), | ||
1302 | PINMUX_IPSR_MODSEL_DATA(IP10_22, RX4_D, SEL_SCIF4_3), | ||
1303 | |||
1304 | PINMUX_IPSR_MODSEL_DATA(IP10_24_23, CAN0_TX_A, SEL_RCAN0_0), | ||
1305 | PINMUX_IPSR_MODSEL_DATA(IP10_24_23, TX4_D, SEL_SCIF4_3), | ||
1306 | PINMUX_IPSR_DATA(IP10_24_23, MLB_CLK), | ||
1307 | |||
1308 | PINMUX_IPSR_MODSEL_DATA(IP10_25, CAN1_RX_A, SEL_RCAN1_0), | ||
1309 | PINMUX_IPSR_MODSEL_DATA(IP10_25, IRQ1_B, SEL_INTC_1), | ||
1310 | |||
1311 | PINMUX_IPSR_MODSEL_DATA(IP10_27_26, CAN0_RX_A, SEL_RCAN0_0), | ||
1312 | PINMUX_IPSR_MODSEL_DATA(IP10_27_26, IRQ0_B, SEL_INTC_1), | ||
1313 | PINMUX_IPSR_DATA(IP10_27_26, MLB_SIG), | ||
1314 | |||
1315 | PINMUX_IPSR_MODSEL_DATA(IP10_29_28, CAN1_TX_A, SEL_RCAN1_0), | ||
1316 | PINMUX_IPSR_MODSEL_DATA(IP10_29_28, TX5_C, SEL_SCIF1_2), | ||
1317 | PINMUX_IPSR_DATA(IP10_29_28, MLB_DAT), | ||
1318 | |||
1319 | /* IPSR11 */ | ||
1320 | PINMUX_IPSR_DATA(IP11_0, SCL1), | ||
1321 | PINMUX_IPSR_MODSEL_DATA(IP11_0, SCIF_CLK_C, SEL_SCIF_CLK_2), | ||
1322 | |||
1323 | PINMUX_IPSR_DATA(IP11_1, SDA1), | ||
1324 | PINMUX_IPSR_MODSEL_DATA(IP11_0, RX1_E, SEL_SCIF1_4), | ||
1325 | |||
1326 | PINMUX_IPSR_DATA(IP11_2, SDA0), | ||
1327 | PINMUX_IPSR_MODSEL_DATA(IP11_2, HIFEBL_A, SEL_HIF_0), | ||
1328 | |||
1329 | PINMUX_IPSR_DATA(IP11_3, SDSELF), | ||
1330 | PINMUX_IPSR_MODSEL_DATA(IP11_3, RTS1_E, SEL_SCIF1_3), | ||
1331 | |||
1332 | PINMUX_IPSR_MODSEL_DATA(IP11_6_4, SCIF_CLK_A, SEL_SCIF_CLK_0), | ||
1333 | PINMUX_IPSR_MODSEL_DATA(IP11_6_4, HSPI_CLK_A, SEL_HSPI_0), | ||
1334 | PINMUX_IPSR_DATA(IP11_6_4, VI0_CLK), | ||
1335 | PINMUX_IPSR_MODSEL_DATA(IP11_6_4, RMII0_TXD0_A, SEL_RMII_0), | ||
1336 | PINMUX_IPSR_DATA(IP11_6_4, ET0_ERXD4), | ||
1337 | |||
1338 | PINMUX_IPSR_MODSEL_DATA(IP11_9_7, SCK0_A, SEL_SCIF0_0), | ||
1339 | PINMUX_IPSR_MODSEL_DATA(IP11_9_7, HSPI_CS_A, SEL_HSPI_0), | ||
1340 | PINMUX_IPSR_DATA(IP11_9_7, VI0_CLKENB), | ||
1341 | PINMUX_IPSR_MODSEL_DATA(IP11_9_7, RMII0_TXD1_A, SEL_RMII_0), | ||
1342 | PINMUX_IPSR_DATA(IP11_9_7, ET0_ERXD5), | ||
1343 | |||
1344 | PINMUX_IPSR_MODSEL_DATA(IP11_11_10, RX0_A, SEL_SCIF0_0), | ||
1345 | PINMUX_IPSR_MODSEL_DATA(IP11_11_10, HSPI_RX_A, SEL_HSPI_0), | ||
1346 | PINMUX_IPSR_MODSEL_DATA(IP11_11_10, RMII0_RXD0_A, SEL_RMII_0), | ||
1347 | PINMUX_IPSR_DATA(IP11_11_10, ET0_ERXD6), | ||
1348 | |||
1349 | PINMUX_IPSR_MODSEL_DATA(IP11_12, TX0_A, SEL_SCIF0_0), | ||
1350 | PINMUX_IPSR_MODSEL_DATA(IP11_12, HSPI_TX_A, SEL_HSPI_0), | ||
1351 | |||
1352 | PINMUX_IPSR_DATA(IP11_15_13, PENC1), | ||
1353 | PINMUX_IPSR_MODSEL_DATA(IP11_15_13, TX3_D, SEL_SCIF3_3), | ||
1354 | PINMUX_IPSR_MODSEL_DATA(IP11_15_13, CAN1_TX_B, SEL_RCAN1_1), | ||
1355 | PINMUX_IPSR_MODSEL_DATA(IP11_15_13, TX5_D, SEL_SCIF5_3), | ||
1356 | PINMUX_IPSR_MODSEL_DATA(IP11_15_13, IETX_B, SEL_IEBUS_1), | ||
1357 | |||
1358 | PINMUX_IPSR_DATA(IP11_18_16, USB_OVC1), | ||
1359 | PINMUX_IPSR_MODSEL_DATA(IP11_18_16, RX3_D, SEL_SCIF3_3), | ||
1360 | PINMUX_IPSR_MODSEL_DATA(IP11_18_16, CAN1_RX_B, SEL_RCAN1_1), | ||
1361 | PINMUX_IPSR_MODSEL_DATA(IP11_18_16, RX5_D, SEL_SCIF5_3), | ||
1362 | PINMUX_IPSR_MODSEL_DATA(IP11_18_16, IERX_B, SEL_IEBUS_1), | ||
1363 | |||
1364 | PINMUX_IPSR_DATA(IP11_20_19, DREQ0), | ||
1365 | PINMUX_IPSR_MODSEL_DATA(IP11_20_19, SD1_CLK_A, SEL_SDHI1_0), | ||
1366 | PINMUX_IPSR_DATA(IP11_20_19, ET0_TX_EN), | ||
1367 | |||
1368 | PINMUX_IPSR_DATA(IP11_22_21, DACK0), | ||
1369 | PINMUX_IPSR_MODSEL_DATA(IP11_22_21, SD1_DAT3_A, SEL_SDHI1_0), | ||
1370 | PINMUX_IPSR_DATA(IP11_22_21, ET0_TX_ER), | ||
1371 | |||
1372 | PINMUX_IPSR_DATA(IP11_25_23, DREQ1), | ||
1373 | PINMUX_IPSR_MODSEL_DATA(IP11_25_23, HSPI_CLK_B, SEL_HSPI_1), | ||
1374 | PINMUX_IPSR_MODSEL_DATA(IP11_25_23, RX4_B, SEL_SCIF4_1), | ||
1375 | PINMUX_IPSR_MODSEL_DATA(IP11_25_23, ET0_PHY_INT_C, SEL_ET0_CTL_0), | ||
1376 | PINMUX_IPSR_MODSEL_DATA(IP11_25_23, ET0_TX_CLK_A, SEL_ET0_0), | ||
1377 | |||
1378 | PINMUX_IPSR_DATA(IP11_27_26, DACK1), | ||
1379 | PINMUX_IPSR_MODSEL_DATA(IP11_27_26, HSPI_CS_B, SEL_HSPI_1), | ||
1380 | PINMUX_IPSR_MODSEL_DATA(IP11_27_26, TX4_B, SEL_SCIF3_1), | ||
1381 | PINMUX_IPSR_MODSEL_DATA(IP11_27_26, ET0_RX_CLK_A, SEL_ET0_0), | ||
1382 | |||
1383 | PINMUX_IPSR_DATA(IP11_28, PRESETOUT), | ||
1384 | PINMUX_IPSR_DATA(IP11_28, ST_CLKOUT), | ||
1385 | }; | ||
1386 | |||
1387 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1388 | PINMUX_GPIO_GP_ALL(), | ||
1389 | |||
1390 | GPIO_FN(CLKOUT), GPIO_FN(BS), GPIO_FN(CS0), GPIO_FN(EX_CS0), | ||
1391 | GPIO_FN(RD), GPIO_FN(WE0), GPIO_FN(WE1), | ||
1392 | GPIO_FN(SCL0), GPIO_FN(PENC0), GPIO_FN(USB_OVC0), | ||
1393 | GPIO_FN(IRQ2_B), GPIO_FN(IRQ3_B), | ||
1394 | |||
1395 | /* IPSR0 */ | ||
1396 | GPIO_FN(A0), GPIO_FN(ST0_CLKIN), GPIO_FN(LCD_DATA0_A), | ||
1397 | GPIO_FN(TCLKA_C), | ||
1398 | GPIO_FN(A1), GPIO_FN(ST0_REQ), GPIO_FN(LCD_DATA1_A), | ||
1399 | GPIO_FN(TCLKB_C), | ||
1400 | GPIO_FN(A2), GPIO_FN(ST0_SYC), GPIO_FN(LCD_DATA2_A), | ||
1401 | GPIO_FN(TCLKC_C), | ||
1402 | GPIO_FN(A3), GPIO_FN(ST0_VLD), GPIO_FN(LCD_DATA3_A), | ||
1403 | GPIO_FN(TCLKD_C), | ||
1404 | GPIO_FN(A4), GPIO_FN(ST0_D0), GPIO_FN(LCD_DATA4_A), | ||
1405 | GPIO_FN(TIOC0A_C), | ||
1406 | GPIO_FN(A5), GPIO_FN(ST0_D1), GPIO_FN(LCD_DATA5_A), | ||
1407 | GPIO_FN(TIOC0B_C), | ||
1408 | GPIO_FN(A6), GPIO_FN(ST0_D2), GPIO_FN(LCD_DATA6_A), | ||
1409 | GPIO_FN(TIOC0C_C), | ||
1410 | GPIO_FN(A7), GPIO_FN(ST0_D3), GPIO_FN(LCD_DATA7_A), | ||
1411 | GPIO_FN(TIOC0D_C), | ||
1412 | GPIO_FN(A8), GPIO_FN(ST0_D4), GPIO_FN(LCD_DATA8_A), | ||
1413 | GPIO_FN(TIOC1A_C), | ||
1414 | GPIO_FN(A9), GPIO_FN(ST0_D5), GPIO_FN(LCD_DATA9_A), | ||
1415 | GPIO_FN(TIOC1B_C), | ||
1416 | GPIO_FN(A10), GPIO_FN(ST0_D6), GPIO_FN(LCD_DATA10_A), | ||
1417 | GPIO_FN(TIOC2A_C), | ||
1418 | GPIO_FN(A11), GPIO_FN(ST0_D7), GPIO_FN(LCD_DATA11_A), | ||
1419 | GPIO_FN(TIOC2B_C), | ||
1420 | GPIO_FN(A12), GPIO_FN(LCD_DATA12_A), GPIO_FN(TIOC3A_C), | ||
1421 | GPIO_FN(A13), GPIO_FN(LCD_DATA13_A), GPIO_FN(TIOC3B_C), | ||
1422 | GPIO_FN(A14), GPIO_FN(LCD_DATA14_A), GPIO_FN(TIOC3C_C), | ||
1423 | GPIO_FN(A15), GPIO_FN(ST0_VCO_CLKIN), GPIO_FN(LCD_DATA15_A), | ||
1424 | GPIO_FN(TIOC3D_C), | ||
1425 | |||
1426 | /* IPSR1 */ | ||
1427 | GPIO_FN(A16), GPIO_FN(ST0_PWM), GPIO_FN(LCD_DON_A), | ||
1428 | GPIO_FN(TIOC4A_C), | ||
1429 | GPIO_FN(A17), GPIO_FN(ST1_VCO_CLKIN), GPIO_FN(LCD_CL1_A), | ||
1430 | GPIO_FN(TIOC4B_C), | ||
1431 | GPIO_FN(A18), GPIO_FN(ST1_PWM), GPIO_FN(LCD_CL2_A), | ||
1432 | GPIO_FN(TIOC4C_C), | ||
1433 | GPIO_FN(A19), GPIO_FN(ST1_CLKIN), GPIO_FN(LCD_CLK_A), | ||
1434 | GPIO_FN(TIOC4D_C), | ||
1435 | GPIO_FN(A20), GPIO_FN(ST1_REQ), GPIO_FN(LCD_FLM_A), | ||
1436 | GPIO_FN(A21), GPIO_FN(ST1_SYC), GPIO_FN(LCD_VCPWC_A), | ||
1437 | GPIO_FN(A22), GPIO_FN(ST1_VLD), GPIO_FN(LCD_VEPWC_A), | ||
1438 | GPIO_FN(A23), GPIO_FN(ST1_D0), GPIO_FN(LCD_M_DISP_A), | ||
1439 | GPIO_FN(A24), GPIO_FN(RX2_D), GPIO_FN(ST1_D1), | ||
1440 | GPIO_FN(A25), GPIO_FN(TX2_D), GPIO_FN(ST1_D2), | ||
1441 | GPIO_FN(D0), GPIO_FN(SD0_DAT0_A), GPIO_FN(MMC_D0_A), | ||
1442 | GPIO_FN(ST1_D3), GPIO_FN(FD0_A), | ||
1443 | GPIO_FN(D1), GPIO_FN(SD0_DAT1_A), GPIO_FN(MMC_D1_A), | ||
1444 | GPIO_FN(ST1_D4), GPIO_FN(FD1_A), | ||
1445 | GPIO_FN(D2), GPIO_FN(SD0_DAT2_A), GPIO_FN(MMC_D2_A), | ||
1446 | GPIO_FN(ST1_D5), GPIO_FN(FD2_A), | ||
1447 | GPIO_FN(D3), GPIO_FN(SD0_DAT3_A), GPIO_FN(MMC_D3_A), | ||
1448 | GPIO_FN(ST1_D6), GPIO_FN(FD3_A), | ||
1449 | |||
1450 | /* IPSR2 */ | ||
1451 | GPIO_FN(D4), GPIO_FN(SD0_CD_A), GPIO_FN(MMC_D4_A), GPIO_FN(ST1_D7), | ||
1452 | GPIO_FN(FD4_A), | ||
1453 | GPIO_FN(D5), GPIO_FN(SD0_WP_A), GPIO_FN(MMC_D5_A), GPIO_FN(FD5_A), | ||
1454 | GPIO_FN(D6), GPIO_FN(RSPI_RSPCK_A), GPIO_FN(MMC_D6_A), | ||
1455 | GPIO_FN(QSPCLK_A), | ||
1456 | GPIO_FN(FD6_A), | ||
1457 | GPIO_FN(D7), GPIO_FN(RSPI_SSL_A), GPIO_FN(MMC_D7_A), GPIO_FN(QSSL_A), | ||
1458 | GPIO_FN(FD7_A), | ||
1459 | GPIO_FN(D8), GPIO_FN(SD0_CLK_A), GPIO_FN(MMC_CLK_A), GPIO_FN(QIO2_A), | ||
1460 | GPIO_FN(FCE_A), GPIO_FN(ET0_GTX_CLK_B), | ||
1461 | GPIO_FN(D9), GPIO_FN(SD0_CMD_A), GPIO_FN(MMC_CMD_A), GPIO_FN(QIO3_A), | ||
1462 | GPIO_FN(FCLE_A), GPIO_FN(ET0_ETXD1_B), | ||
1463 | GPIO_FN(D10), GPIO_FN(RSPI_MOSI_A), GPIO_FN(QMO_QIO0_A), | ||
1464 | GPIO_FN(FALE_A), GPIO_FN(ET0_ETXD2_B), | ||
1465 | GPIO_FN(D11), GPIO_FN(RSPI_MISO_A), GPIO_FN(QMI_QIO1_A), GPIO_FN(FRE_A), | ||
1466 | GPIO_FN(ET0_ETXD3_B), | ||
1467 | GPIO_FN(D12), GPIO_FN(FWE_A), GPIO_FN(ET0_ETXD5_B), | ||
1468 | GPIO_FN(D13), GPIO_FN(RX2_B), GPIO_FN(FRB_A), GPIO_FN(ET0_ETXD6_B), | ||
1469 | GPIO_FN(D14), GPIO_FN(TX2_B), GPIO_FN(FSE_A), GPIO_FN(ET0_TX_CLK_B), | ||
1470 | |||
1471 | /* IPSR3 */ | ||
1472 | GPIO_FN(D15), GPIO_FN(SCK2_B), | ||
1473 | GPIO_FN(CS1_A26), GPIO_FN(QIO3_B), | ||
1474 | GPIO_FN(EX_CS1), GPIO_FN(RX3_B), GPIO_FN(ATACS0), GPIO_FN(QIO2_B), | ||
1475 | GPIO_FN(ET0_ETXD0), | ||
1476 | GPIO_FN(EX_CS2), GPIO_FN(TX3_B), GPIO_FN(ATACS1), GPIO_FN(QSPCLK_B), | ||
1477 | GPIO_FN(ET0_GTX_CLK_A), | ||
1478 | GPIO_FN(EX_CS3), GPIO_FN(SD1_CD_A), GPIO_FN(ATARD), GPIO_FN(QMO_QIO0_B), | ||
1479 | GPIO_FN(ET0_ETXD1_A), | ||
1480 | GPIO_FN(EX_CS4), GPIO_FN(SD1_WP_A), GPIO_FN(ATAWR), GPIO_FN(QMI_QIO1_B), | ||
1481 | GPIO_FN(ET0_ETXD2_A), | ||
1482 | GPIO_FN(EX_CS5), GPIO_FN(SD1_CMD_A), GPIO_FN(ATADIR), GPIO_FN(QSSL_B), | ||
1483 | GPIO_FN(ET0_ETXD3_A), | ||
1484 | GPIO_FN(RD_WR), GPIO_FN(TCLK1_B), | ||
1485 | GPIO_FN(EX_WAIT0), GPIO_FN(TCLK1_B), | ||
1486 | GPIO_FN(EX_WAIT1), GPIO_FN(SD1_DAT0_A), GPIO_FN(DREQ2), | ||
1487 | GPIO_FN(CAN1_TX_C), GPIO_FN(ET0_LINK_C), GPIO_FN(ET0_ETXD5_A), | ||
1488 | GPIO_FN(EX_WAIT2), GPIO_FN(SD1_DAT1_A), GPIO_FN(DACK2), | ||
1489 | GPIO_FN(CAN1_RX_C), GPIO_FN(ET0_MAGIC_C), GPIO_FN(ET0_ETXD6_A), | ||
1490 | GPIO_FN(DRACK0), GPIO_FN(SD1_DAT2_A), GPIO_FN(ATAG), GPIO_FN(TCLK1_A), | ||
1491 | GPIO_FN(ET0_ETXD7), | ||
1492 | |||
1493 | /* IPSR4 */ | ||
1494 | GPIO_FN(HCTS0_A), GPIO_FN(CTS1_A), GPIO_FN(VI0_FIELD), | ||
1495 | GPIO_FN(RMII0_RXD1_A), GPIO_FN(ET0_ERXD7), | ||
1496 | GPIO_FN(HRTS0_A), GPIO_FN(RTS1_A), GPIO_FN(VI0_HSYNC), | ||
1497 | GPIO_FN(RMII0_TXD_EN_A), GPIO_FN(ET0_RX_DV), | ||
1498 | GPIO_FN(HSCK0_A), GPIO_FN(SCK1_A), GPIO_FN(VI0_VSYNC), | ||
1499 | GPIO_FN(RMII0_RX_ER_A), GPIO_FN(ET0_RX_ER), | ||
1500 | GPIO_FN(HRX0_A), GPIO_FN(RX1_A), GPIO_FN(VI0_DATA0_VI0_B0), | ||
1501 | GPIO_FN(RMII0_CRS_DV_A), GPIO_FN(ET0_CRS), | ||
1502 | GPIO_FN(HTX0_A), GPIO_FN(TX1_A), GPIO_FN(VI0_DATA1_VI0_B1), | ||
1503 | GPIO_FN(RMII0_MDC_A), GPIO_FN(ET0_COL), | ||
1504 | GPIO_FN(CTS0_B), GPIO_FN(VI0_DATA2_VI0_B2), GPIO_FN(RMII0_MDIO_A), | ||
1505 | GPIO_FN(ET0_MDC), | ||
1506 | GPIO_FN(RTS0_B), GPIO_FN(VI0_DATA3_VI0_B3), GPIO_FN(ET0_MDIO_A), | ||
1507 | GPIO_FN(SCK1_B), GPIO_FN(VI0_DATA4_VI0_B4), GPIO_FN(ET0_LINK_A), | ||
1508 | GPIO_FN(RX1_B), GPIO_FN(VI0_DATA5_VI0_B5), GPIO_FN(ET0_MAGIC_A), | ||
1509 | GPIO_FN(TX1_B), GPIO_FN(VI0_DATA6_VI0_G0), GPIO_FN(ET0_PHY_INT_A), | ||
1510 | GPIO_FN(CTS1_B), GPIO_FN(VI0_DATA7_VI0_G1), | ||
1511 | GPIO_FN(RTS1_B), GPIO_FN(VI0_G2), | ||
1512 | GPIO_FN(SCK2_A), GPIO_FN(VI0_G3), | ||
1513 | |||
1514 | /* IPSR5 */ | ||
1515 | GPIO_FN(REF50CK), GPIO_FN(CTS1_E), GPIO_FN(HCTS0_D), | ||
1516 | GPIO_FN(REF125CK), GPIO_FN(ADTRG), GPIO_FN(RX5_C), | ||
1517 | GPIO_FN(SD2_WP_A), GPIO_FN(TX5_A), GPIO_FN(VI0_R5), | ||
1518 | GPIO_FN(SD2_CD_A), GPIO_FN(RX5_A), GPIO_FN(VI0_R4), | ||
1519 | GPIO_FN(ET0_PHY_INT_B), | ||
1520 | GPIO_FN(SD2_DAT3_A), GPIO_FN(TX4_A), GPIO_FN(VI0_R3), | ||
1521 | GPIO_FN(ET0_MAGIC_B), | ||
1522 | GPIO_FN(SD2_DAT2_A), GPIO_FN(RX4_A), GPIO_FN(VI0_R2), | ||
1523 | GPIO_FN(ET0_LINK_B), | ||
1524 | GPIO_FN(SD2_DAT1_A), GPIO_FN(TX3_A), GPIO_FN(VI0_R1), | ||
1525 | GPIO_FN(ET0_MDIO_B), | ||
1526 | GPIO_FN(SD2_DAT0_A), GPIO_FN(RX3_A), GPIO_FN(VI0_R0), | ||
1527 | GPIO_FN(ET0_ERXD3_B), | ||
1528 | GPIO_FN(SD2_CMD_A), GPIO_FN(TX2_A), GPIO_FN(VI0_G5), | ||
1529 | GPIO_FN(ET0_ERXD2_B), | ||
1530 | GPIO_FN(SD2_CLK_A), GPIO_FN(RX2_A), GPIO_FN(VI0_G4), | ||
1531 | GPIO_FN(ET0_RX_CLK_B), | ||
1532 | |||
1533 | /* IPSR6 */ | ||
1534 | GPIO_FN(DU0_DG1), GPIO_FN(CTS1_C), GPIO_FN(HRTS0_D), | ||
1535 | GPIO_FN(TIOC1B_A), GPIO_FN(HIFD09), | ||
1536 | GPIO_FN(DU0_DG0), GPIO_FN(TX1_C), GPIO_FN(HSCK0_D), | ||
1537 | GPIO_FN(IECLK_A), GPIO_FN(TIOC1A_A), GPIO_FN(HIFD08), | ||
1538 | GPIO_FN(DU0_DR7), GPIO_FN(RX1_C), GPIO_FN(TIOC0D_A), | ||
1539 | GPIO_FN(HIFD07), | ||
1540 | GPIO_FN(DU0_DR6), GPIO_FN(SCK1_C), GPIO_FN(TIOC0C_A), | ||
1541 | GPIO_FN(HIFD06), | ||
1542 | GPIO_FN(DU0_DR5), GPIO_FN(RTS0_C), GPIO_FN(TIOC0B_A), | ||
1543 | GPIO_FN(HIFD05), | ||
1544 | GPIO_FN(DU0_DR4), GPIO_FN(CTS0_C), GPIO_FN(TIOC0A_A), | ||
1545 | GPIO_FN(HIFD04), | ||
1546 | GPIO_FN(DU0_DR3), GPIO_FN(TX0_B), GPIO_FN(TCLKD_A), GPIO_FN(HIFD03), | ||
1547 | GPIO_FN(DU0_DR2), GPIO_FN(RX0_B), GPIO_FN(TCLKC_A), GPIO_FN(HIFD02), | ||
1548 | GPIO_FN(DU0_DR1), GPIO_FN(SCK0_B), GPIO_FN(HTX0_D), | ||
1549 | GPIO_FN(IERX_A), GPIO_FN(TCLKB_A), GPIO_FN(HIFD01), | ||
1550 | GPIO_FN(DU0_DR0), GPIO_FN(SCIF_CLK_B), GPIO_FN(HRX0_D), | ||
1551 | GPIO_FN(IETX_A), GPIO_FN(TCLKA_A), GPIO_FN(HIFD00), | ||
1552 | |||
1553 | /* IPSR7 */ | ||
1554 | GPIO_FN(DU0_DB4), GPIO_FN(HIFINT), | ||
1555 | GPIO_FN(DU0_DB3), GPIO_FN(TX5_B), GPIO_FN(TIOC4D_A), GPIO_FN(HIFRD), | ||
1556 | GPIO_FN(DU0_DB2), GPIO_FN(RX5_B), GPIO_FN(RMII0_TXD1_B), | ||
1557 | GPIO_FN(TIOC4C_A), GPIO_FN(HIFWR), | ||
1558 | GPIO_FN(DU0_DB1), GPIO_FN(TX4_C), GPIO_FN(RMII0_TXD0_B), | ||
1559 | GPIO_FN(TIOC4B_A), GPIO_FN(HIFRS), | ||
1560 | GPIO_FN(DU0_DB0), GPIO_FN(RX4_C), GPIO_FN(RMII0_TXD_EN_B), | ||
1561 | GPIO_FN(TIOC4A_A), GPIO_FN(HIFCS), | ||
1562 | GPIO_FN(DU0_DG7), GPIO_FN(TX3_C), GPIO_FN(RMII0_RXD1_B), | ||
1563 | GPIO_FN(TIOC3D_A), GPIO_FN(HIFD15), | ||
1564 | GPIO_FN(DU0_DG6), GPIO_FN(RX3_C), GPIO_FN(RMII0_RXD0_B), | ||
1565 | GPIO_FN(TIOC3C_A), GPIO_FN(HIFD14), | ||
1566 | GPIO_FN(DU0_DG5), GPIO_FN(TX2_C), GPIO_FN(RMII0_RX_ER_B), | ||
1567 | GPIO_FN(TIOC3B_A), GPIO_FN(HIFD13), | ||
1568 | GPIO_FN(DU0_DG4), GPIO_FN(RX2_C), GPIO_FN(RMII0_CRS_DV_B), | ||
1569 | GPIO_FN(TIOC3A_A), GPIO_FN(HIFD12), | ||
1570 | GPIO_FN(DU0_DG3), GPIO_FN(SCK2_C), GPIO_FN(RMII0_MDIO_B), | ||
1571 | GPIO_FN(TIOC2B_A), GPIO_FN(HIFD11), | ||
1572 | GPIO_FN(DU0_DG2), GPIO_FN(RTS1_C), GPIO_FN(RMII0_MDC_B), | ||
1573 | GPIO_FN(TIOC2A_A), GPIO_FN(HIFD10), | ||
1574 | |||
1575 | /* IPSR8 */ | ||
1576 | GPIO_FN(IRQ3_A), GPIO_FN(RTS0_A), GPIO_FN(HRTS0_B), | ||
1577 | GPIO_FN(ET0_ERXD3_A), | ||
1578 | GPIO_FN(IRQ2_A), GPIO_FN(CTS0_A), GPIO_FN(HCTS0_B), | ||
1579 | GPIO_FN(ET0_ERXD2_A), | ||
1580 | GPIO_FN(IRQ1_A), GPIO_FN(HSPI_RX_B), GPIO_FN(TX3_E), | ||
1581 | GPIO_FN(ET0_ERXD1), | ||
1582 | GPIO_FN(IRQ0_A), GPIO_FN(HSPI_TX_B), GPIO_FN(RX3_E), | ||
1583 | GPIO_FN(ET0_ERXD0), | ||
1584 | GPIO_FN(DU0_CDE), GPIO_FN(HTX0_B), GPIO_FN(AUDIO_CLKB_B), | ||
1585 | GPIO_FN(LCD_VCPWC_B), | ||
1586 | GPIO_FN(DU0_DISP), GPIO_FN(CAN0_TX_B), GPIO_FN(HRX0_B), | ||
1587 | GPIO_FN(AUDIO_CLKA_B), | ||
1588 | GPIO_FN(DU0_EXODDF_DU0_ODDF), GPIO_FN(CAN0_RX_B), GPIO_FN(HSCK0_B), | ||
1589 | GPIO_FN(SSI_SDATA1_B), | ||
1590 | GPIO_FN(DU0_EXVSYNC_DU0_VSYNC), GPIO_FN(HSPI_RX0_C), | ||
1591 | GPIO_FN(SSI_WS1_B), | ||
1592 | GPIO_FN(DU0_EXHSYNC_DU0_HSYNC), GPIO_FN(HSPI_TX0_C), | ||
1593 | GPIO_FN(SSI_SCK1_B), | ||
1594 | GPIO_FN(DU0_DOTCLKOUT), GPIO_FN(HSPI_CLK0_C), | ||
1595 | GPIO_FN(SSI_SDATA0_B), | ||
1596 | GPIO_FN(DU0_DOTCLKIN), GPIO_FN(HSPI_CS0_C), | ||
1597 | GPIO_FN(SSI_WS0_B), | ||
1598 | GPIO_FN(DU0_DB7), GPIO_FN(SSI_SCK0_B), GPIO_FN(HIFEBL_B), | ||
1599 | GPIO_FN(DU0_DB6), GPIO_FN(HIFRDY), | ||
1600 | GPIO_FN(DU0_DB5), GPIO_FN(HIFDREQ), | ||
1601 | |||
1602 | /* IPSR9 */ | ||
1603 | GPIO_FN(SSI_SDATA1_A), GPIO_FN(VI1_3_B), GPIO_FN(LCD_DATA14_B), | ||
1604 | GPIO_FN(SSI_WS1_A), GPIO_FN(VI1_2_B), GPIO_FN(LCD_DATA13_B), | ||
1605 | GPIO_FN(SSI_SCK1_A), GPIO_FN(VI1_1_B), GPIO_FN(TIOC2B_B), | ||
1606 | GPIO_FN(LCD_DATA12_B), | ||
1607 | GPIO_FN(SSI_SDATA0_A), GPIO_FN(VI1_0_B), GPIO_FN(TIOC2A_B), | ||
1608 | GPIO_FN(LCD_DATA11_B), | ||
1609 | GPIO_FN(SSI_WS0_A), GPIO_FN(TIOC1B_B), GPIO_FN(LCD_DATA10_B), | ||
1610 | GPIO_FN(SSI_SCK0_A), GPIO_FN(TIOC1A_B), GPIO_FN(LCD_DATA9_B), | ||
1611 | GPIO_FN(VI1_7_A), GPIO_FN(FCE_B), GPIO_FN(LCD_DATA8_B), | ||
1612 | GPIO_FN(VI1_6_A), GPIO_FN(FD7_B), GPIO_FN(LCD_DATA7_B), | ||
1613 | GPIO_FN(VI1_5_A), GPIO_FN(FD6_B), GPIO_FN(LCD_DATA6_B), | ||
1614 | GPIO_FN(VI1_4_A), GPIO_FN(FD5_B), GPIO_FN(LCD_DATA5_B), | ||
1615 | GPIO_FN(VI1_3_A), GPIO_FN(FD4_B), GPIO_FN(LCD_DATA4_B), | ||
1616 | GPIO_FN(VI1_2_A), GPIO_FN(FD3_B), GPIO_FN(LCD_DATA3_B), | ||
1617 | GPIO_FN(VI1_1_A), GPIO_FN(FD2_B), GPIO_FN(LCD_DATA2_B), | ||
1618 | GPIO_FN(VI1_0_A), GPIO_FN(FD1_B), GPIO_FN(LCD_DATA1_B), | ||
1619 | GPIO_FN(VI1_CLK_A), GPIO_FN(FD0_B), GPIO_FN(LCD_DATA0_B), | ||
1620 | |||
1621 | /* IPSR10 */ | ||
1622 | GPIO_FN(CAN1_TX_A), GPIO_FN(TX5_C), GPIO_FN(MLB_DAT), | ||
1623 | GPIO_FN(CAN0_RX_A), GPIO_FN(IRQ0_B), GPIO_FN(MLB_SIG), | ||
1624 | GPIO_FN(CAN1_RX_A), GPIO_FN(IRQ1_B), | ||
1625 | GPIO_FN(CAN0_TX_A), GPIO_FN(TX4_D), GPIO_FN(MLB_CLK), | ||
1626 | GPIO_FN(CAN_CLK_A), GPIO_FN(RX4_D), | ||
1627 | GPIO_FN(AUDIO_CLKOUT), GPIO_FN(TX1_E), GPIO_FN(HRTS0_C), | ||
1628 | GPIO_FN(FSE_B), GPIO_FN(LCD_M_DISP_B), | ||
1629 | GPIO_FN(AUDIO_CLKC), GPIO_FN(SCK1_E), GPIO_FN(HCTS0_C), | ||
1630 | GPIO_FN(FRB_B), GPIO_FN(LCD_VEPWC_B), | ||
1631 | GPIO_FN(AUDIO_CLKB_A), GPIO_FN(LCD_CLK_B), | ||
1632 | GPIO_FN(AUDIO_CLKA_A), GPIO_FN(VI1_CLK_B), GPIO_FN(SCK1_D), | ||
1633 | GPIO_FN(IECLK_B), GPIO_FN(LCD_FLM_B), | ||
1634 | GPIO_FN(SSI_SDATA3), GPIO_FN(VI1_7_B), GPIO_FN(HTX0_C), | ||
1635 | GPIO_FN(FWE_B), GPIO_FN(LCD_CL2_B), | ||
1636 | GPIO_FN(SSI_SDATA2), GPIO_FN(VI1_6_B), GPIO_FN(HRX0_C), | ||
1637 | GPIO_FN(FRE_B), GPIO_FN(LCD_CL1_B), | ||
1638 | GPIO_FN(SSI_WS23), GPIO_FN(VI1_5_B), GPIO_FN(TX1_D), | ||
1639 | GPIO_FN(HSCK0_C), GPIO_FN(FALE_B), GPIO_FN(LCD_DON_B), | ||
1640 | GPIO_FN(SSI_SCK23), GPIO_FN(VI1_4_B), GPIO_FN(RX1_D), | ||
1641 | GPIO_FN(FCLE_B), GPIO_FN(LCD_DATA15_B), | ||
1642 | |||
1643 | /* IPSR11 */ | ||
1644 | GPIO_FN(PRESETOUT), GPIO_FN(ST_CLKOUT), | ||
1645 | GPIO_FN(DACK1), GPIO_FN(HSPI_CS_B), GPIO_FN(TX4_B), | ||
1646 | GPIO_FN(ET0_RX_CLK_A), | ||
1647 | GPIO_FN(DREQ1), GPIO_FN(HSPI_CLK_B), GPIO_FN(RX4_B), | ||
1648 | GPIO_FN(ET0_PHY_INT_C), GPIO_FN(ET0_TX_CLK_A), | ||
1649 | GPIO_FN(DACK0), GPIO_FN(SD1_DAT3_A), GPIO_FN(ET0_TX_ER), | ||
1650 | GPIO_FN(DREQ0), GPIO_FN(SD1_CLK_A), GPIO_FN(ET0_TX_EN), | ||
1651 | GPIO_FN(USB_OVC1), GPIO_FN(RX3_D), GPIO_FN(CAN1_RX_B), | ||
1652 | GPIO_FN(RX5_D), GPIO_FN(IERX_B), | ||
1653 | GPIO_FN(PENC1), GPIO_FN(TX3_D), GPIO_FN(CAN1_TX_B), | ||
1654 | GPIO_FN(TX5_D), GPIO_FN(IETX_B), | ||
1655 | GPIO_FN(TX0_A), GPIO_FN(HSPI_TX_A), | ||
1656 | GPIO_FN(RX0_A), GPIO_FN(HSPI_RX_A), GPIO_FN(RMII0_RXD0_A), | ||
1657 | GPIO_FN(ET0_ERXD6), | ||
1658 | GPIO_FN(SCK0_A), GPIO_FN(HSPI_CS_A), GPIO_FN(VI0_CLKENB), | ||
1659 | GPIO_FN(RMII0_TXD1_A), GPIO_FN(ET0_ERXD5), | ||
1660 | GPIO_FN(SCIF_CLK_A), GPIO_FN(HSPI_CLK_A), GPIO_FN(VI0_CLK), | ||
1661 | GPIO_FN(RMII0_TXD0_A), GPIO_FN(ET0_ERXD4), | ||
1662 | GPIO_FN(SDSELF), GPIO_FN(RTS1_E), | ||
1663 | GPIO_FN(SDA0), GPIO_FN(HIFEBL_A), | ||
1664 | GPIO_FN(SDA1), GPIO_FN(RX1_E), | ||
1665 | GPIO_FN(SCL1), GPIO_FN(SCIF_CLK_C), | ||
1666 | }; | ||
1667 | |||
1668 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1669 | { PINMUX_CFG_REG("GPSR0", 0xFFFC0004, 32, 1) { | ||
1670 | GP_0_31_FN, FN_IP2_2_0, | ||
1671 | GP_0_30_FN, FN_IP1_31_29, | ||
1672 | GP_0_29_FN, FN_IP1_28_26, | ||
1673 | GP_0_28_FN, FN_IP1_25_23, | ||
1674 | GP_0_27_FN, FN_IP1_22_20, | ||
1675 | GP_0_26_FN, FN_IP1_19_18, | ||
1676 | GP_0_25_FN, FN_IP1_17_16, | ||
1677 | GP_0_24_FN, FN_IP0_5_4, | ||
1678 | GP_0_23_FN, FN_IP0_3_2, | ||
1679 | GP_0_22_FN, FN_IP0_1_0, | ||
1680 | GP_0_21_FN, FN_IP11_28, | ||
1681 | GP_0_20_FN, FN_IP1_7_6, | ||
1682 | GP_0_19_FN, FN_IP1_5_4, | ||
1683 | GP_0_18_FN, FN_IP1_3_2, | ||
1684 | GP_0_17_FN, FN_IP1_1_0, | ||
1685 | GP_0_16_FN, FN_IP0_31_30, | ||
1686 | GP_0_15_FN, FN_IP0_29_28, | ||
1687 | GP_0_14_FN, FN_IP0_27_26, | ||
1688 | GP_0_13_FN, FN_IP0_25_24, | ||
1689 | GP_0_12_FN, FN_IP0_23_22, | ||
1690 | GP_0_11_FN, FN_IP0_21_20, | ||
1691 | GP_0_10_FN, FN_IP0_19_18, | ||
1692 | GP_0_9_FN, FN_IP0_17_16, | ||
1693 | GP_0_8_FN, FN_IP0_15_14, | ||
1694 | GP_0_7_FN, FN_IP0_13_12, | ||
1695 | GP_0_6_FN, FN_IP0_11_10, | ||
1696 | GP_0_5_FN, FN_IP0_9_8, | ||
1697 | GP_0_4_FN, FN_IP0_7_6, | ||
1698 | GP_0_3_FN, FN_IP1_15_14, | ||
1699 | GP_0_2_FN, FN_IP1_13_12, | ||
1700 | GP_0_1_FN, FN_IP1_11_10, | ||
1701 | GP_0_0_FN, FN_IP1_9_8 } | ||
1702 | }, | ||
1703 | { PINMUX_CFG_REG("GPSR1", 0xFFFC0008, 32, 1) { | ||
1704 | GP_1_31_FN, FN_IP11_25_23, | ||
1705 | GP_1_30_FN, FN_IP2_13_11, | ||
1706 | GP_1_29_FN, FN_IP2_10_8, | ||
1707 | GP_1_28_FN, FN_IP2_7_5, | ||
1708 | GP_1_27_FN, FN_IP3_26_24, | ||
1709 | GP_1_26_FN, FN_IP3_23_21, | ||
1710 | GP_1_25_FN, FN_IP2_4_3, | ||
1711 | GP_1_24_FN, FN_WE1, | ||
1712 | GP_1_23_FN, FN_WE0, | ||
1713 | GP_1_22_FN, FN_IP3_19_18, | ||
1714 | GP_1_21_FN, FN_RD, | ||
1715 | GP_1_20_FN, FN_IP3_17_15, | ||
1716 | GP_1_19_FN, FN_IP3_14_12, | ||
1717 | GP_1_18_FN, FN_IP3_11_9, | ||
1718 | GP_1_17_FN, FN_IP3_8_6, | ||
1719 | GP_1_16_FN, FN_IP3_5_3, | ||
1720 | GP_1_15_FN, FN_EX_CS0, | ||
1721 | GP_1_14_FN, FN_IP3_2, | ||
1722 | GP_1_13_FN, FN_CS0, | ||
1723 | GP_1_12_FN, FN_BS, | ||
1724 | GP_1_11_FN, FN_CLKOUT, | ||
1725 | GP_1_10_FN, FN_IP3_1_0, | ||
1726 | GP_1_9_FN, FN_IP2_30_28, | ||
1727 | GP_1_8_FN, FN_IP2_27_25, | ||
1728 | GP_1_7_FN, FN_IP2_24_23, | ||
1729 | GP_1_6_FN, FN_IP2_22_20, | ||
1730 | GP_1_5_FN, FN_IP2_19_17, | ||
1731 | GP_1_4_FN, FN_IP2_16_14, | ||
1732 | GP_1_3_FN, FN_IP11_22_21, | ||
1733 | GP_1_2_FN, FN_IP11_20_19, | ||
1734 | GP_1_1_FN, FN_IP3_29_27, | ||
1735 | GP_1_0_FN, FN_IP3_20 } | ||
1736 | }, | ||
1737 | { PINMUX_CFG_REG("GPSR2", 0xFFFC000C, 32, 1) { | ||
1738 | GP_2_31_FN, FN_IP4_31_30, | ||
1739 | GP_2_30_FN, FN_IP5_2_0, | ||
1740 | GP_2_29_FN, FN_IP5_5_3, | ||
1741 | GP_2_28_FN, FN_IP5_8_6, | ||
1742 | GP_2_27_FN, FN_IP5_11_9, | ||
1743 | GP_2_26_FN, FN_IP5_14_12, | ||
1744 | GP_2_25_FN, FN_IP5_17_15, | ||
1745 | GP_2_24_FN, FN_IP5_20_18, | ||
1746 | GP_2_23_FN, FN_IP5_22_21, | ||
1747 | GP_2_22_FN, FN_IP5_24_23, | ||
1748 | GP_2_21_FN, FN_IP5_26_25, | ||
1749 | GP_2_20_FN, FN_IP4_29_28, | ||
1750 | GP_2_19_FN, FN_IP4_27_26, | ||
1751 | GP_2_18_FN, FN_IP4_25_24, | ||
1752 | GP_2_17_FN, FN_IP4_23_22, | ||
1753 | GP_2_16_FN, FN_IP4_21_20, | ||
1754 | GP_2_15_FN, FN_IP4_19_18, | ||
1755 | GP_2_14_FN, FN_IP4_17_15, | ||
1756 | GP_2_13_FN, FN_IP4_14_12, | ||
1757 | GP_2_12_FN, FN_IP4_11_9, | ||
1758 | GP_2_11_FN, FN_IP4_8_6, | ||
1759 | GP_2_10_FN, FN_IP4_5_3, | ||
1760 | GP_2_9_FN, FN_IP8_27_26, | ||
1761 | GP_2_8_FN, FN_IP11_12, | ||
1762 | GP_2_7_FN, FN_IP8_25_23, | ||
1763 | GP_2_6_FN, FN_IP8_22_20, | ||
1764 | GP_2_5_FN, FN_IP11_27_26, | ||
1765 | GP_2_4_FN, FN_IP8_29_28, | ||
1766 | GP_2_3_FN, FN_IP4_2_0, | ||
1767 | GP_2_2_FN, FN_IP11_11_10, | ||
1768 | GP_2_1_FN, FN_IP11_9_7, | ||
1769 | GP_2_0_FN, FN_IP11_6_4 } | ||
1770 | }, | ||
1771 | { PINMUX_CFG_REG("GPSR3", 0xFFFC0010, 32, 1) { | ||
1772 | GP_3_31_FN, FN_IP9_1_0, | ||
1773 | GP_3_30_FN, FN_IP8_19_18, | ||
1774 | GP_3_29_FN, FN_IP8_17_16, | ||
1775 | GP_3_28_FN, FN_IP8_15_14, | ||
1776 | GP_3_27_FN, FN_IP8_13_12, | ||
1777 | GP_3_26_FN, FN_IP8_11_10, | ||
1778 | GP_3_25_FN, FN_IP8_9_8, | ||
1779 | GP_3_24_FN, FN_IP8_7_6, | ||
1780 | GP_3_23_FN, FN_IP8_5_4, | ||
1781 | GP_3_22_FN, FN_IP8_3_2, | ||
1782 | GP_3_21_FN, FN_IP8_1_0, | ||
1783 | GP_3_20_FN, FN_IP7_30_29, | ||
1784 | GP_3_19_FN, FN_IP7_28_27, | ||
1785 | GP_3_18_FN, FN_IP7_26_24, | ||
1786 | GP_3_17_FN, FN_IP7_23_21, | ||
1787 | GP_3_16_FN, FN_IP7_20_18, | ||
1788 | GP_3_15_FN, FN_IP7_17_15, | ||
1789 | GP_3_14_FN, FN_IP7_14_12, | ||
1790 | GP_3_13_FN, FN_IP7_11_9, | ||
1791 | GP_3_12_FN, FN_IP7_8_6, | ||
1792 | GP_3_11_FN, FN_IP7_5_3, | ||
1793 | GP_3_10_FN, FN_IP7_2_0, | ||
1794 | GP_3_9_FN, FN_IP6_23_21, | ||
1795 | GP_3_8_FN, FN_IP6_20_18, | ||
1796 | GP_3_7_FN, FN_IP6_17_16, | ||
1797 | GP_3_6_FN, FN_IP6_15_14, | ||
1798 | GP_3_5_FN, FN_IP6_13_12, | ||
1799 | GP_3_4_FN, FN_IP6_11_10, | ||
1800 | GP_3_3_FN, FN_IP6_9_8, | ||
1801 | GP_3_2_FN, FN_IP6_7_6, | ||
1802 | GP_3_1_FN, FN_IP6_5_3, | ||
1803 | GP_3_0_FN, FN_IP6_2_0 } | ||
1804 | }, | ||
1805 | |||
1806 | { PINMUX_CFG_REG("GPSR4", 0xFFFC0014, 32, 1) { | ||
1807 | GP_4_31_FN, FN_IP10_24_23, | ||
1808 | GP_4_30_FN, FN_IP10_22, | ||
1809 | GP_4_29_FN, FN_IP11_18_16, | ||
1810 | GP_4_28_FN, FN_USB_OVC0, | ||
1811 | GP_4_27_FN, FN_IP11_15_13, | ||
1812 | GP_4_26_FN, FN_PENC0, | ||
1813 | GP_4_25_FN, FN_IP11_2, | ||
1814 | GP_4_24_FN, FN_SCL0, | ||
1815 | GP_4_23_FN, FN_IP11_1, | ||
1816 | GP_4_22_FN, FN_IP11_0, | ||
1817 | GP_4_21_FN, FN_IP10_21_19, | ||
1818 | GP_4_20_FN, FN_IP10_18_16, | ||
1819 | GP_4_19_FN, FN_IP10_15, | ||
1820 | GP_4_18_FN, FN_IP10_14_12, | ||
1821 | GP_4_17_FN, FN_IP10_11_9, | ||
1822 | GP_4_16_FN, FN_IP10_8_6, | ||
1823 | GP_4_15_FN, FN_IP10_5_3, | ||
1824 | GP_4_14_FN, FN_IP10_2_0, | ||
1825 | GP_4_13_FN, FN_IP9_29_28, | ||
1826 | GP_4_12_FN, FN_IP9_27_26, | ||
1827 | GP_4_11_FN, FN_IP9_9_8, | ||
1828 | GP_4_10_FN, FN_IP9_7_6, | ||
1829 | GP_4_9_FN, FN_IP9_5_4, | ||
1830 | GP_4_8_FN, FN_IP9_3_2, | ||
1831 | GP_4_7_FN, FN_IP9_17_16, | ||
1832 | GP_4_6_FN, FN_IP9_15_14, | ||
1833 | GP_4_5_FN, FN_IP9_13_12, | ||
1834 | GP_4_4_FN, FN_IP9_11_10, | ||
1835 | GP_4_3_FN, FN_IP9_25_24, | ||
1836 | GP_4_2_FN, FN_IP9_23_22, | ||
1837 | GP_4_1_FN, FN_IP9_21_20, | ||
1838 | GP_4_0_FN, FN_IP9_19_18 } | ||
1839 | }, | ||
1840 | { PINMUX_CFG_REG("GPSR5", 0xFFFC0018, 32, 1) { | ||
1841 | 0, 0, 0, 0, 0, 0, 0, 0, /* 31 - 28 */ | ||
1842 | 0, 0, 0, 0, 0, 0, 0, 0, /* 27 - 24 */ | ||
1843 | 0, 0, 0, 0, 0, 0, 0, 0, /* 23 - 20 */ | ||
1844 | 0, 0, 0, 0, 0, 0, 0, 0, /* 19 - 16 */ | ||
1845 | 0, 0, 0, 0, 0, 0, 0, 0, /* 15 - 12 */ | ||
1846 | GP_5_11_FN, FN_IP10_29_28, | ||
1847 | GP_5_10_FN, FN_IP10_27_26, | ||
1848 | 0, 0, 0, 0, 0, 0, 0, 0, /* 9 - 6 */ | ||
1849 | 0, 0, 0, 0, /* 5, 4 */ | ||
1850 | GP_5_3_FN, FN_IRQ3_B, | ||
1851 | GP_5_2_FN, FN_IRQ2_B, | ||
1852 | GP_5_1_FN, FN_IP11_3, | ||
1853 | GP_5_0_FN, FN_IP10_25 } | ||
1854 | }, | ||
1855 | |||
1856 | { PINMUX_CFG_REG_VAR("IPSR0", 0xFFFC001C, 32, | ||
1857 | 2, 2, 2, 2, 2, 2, 2, 2, | ||
1858 | 2, 2, 2, 2, 2, 2, 2, 2) { | ||
1859 | /* IP0_31_30 [2] */ | ||
1860 | FN_A15, FN_ST0_VCO_CLKIN, FN_LCD_DATA15_A, | ||
1861 | FN_TIOC3D_C, | ||
1862 | /* IP0_29_28 [2] */ | ||
1863 | FN_A14, FN_LCD_DATA14_A, FN_TIOC3C_C, 0, | ||
1864 | /* IP0_27_26 [2] */ | ||
1865 | FN_A13, FN_LCD_DATA13_A, FN_TIOC3B_C, 0, | ||
1866 | /* IP0_25_24 [2] */ | ||
1867 | FN_A12, FN_LCD_DATA12_A, FN_TIOC3A_C, 0, | ||
1868 | /* IP0_23_22 [2] */ | ||
1869 | FN_A11, FN_ST0_D7, FN_LCD_DATA11_A, FN_TIOC2B_C, | ||
1870 | /* IP0_21_20 [2] */ | ||
1871 | FN_A10, FN_ST0_D6, FN_LCD_DATA10_A, FN_TIOC2A_C, | ||
1872 | /* IP0_19_18 [2] */ | ||
1873 | FN_A9, FN_ST0_D5, FN_LCD_DATA9_A, FN_TIOC1B_C, | ||
1874 | /* IP0_17_16 [2] */ | ||
1875 | FN_A8, FN_ST0_D4, FN_LCD_DATA8_A, FN_TIOC1A_C, | ||
1876 | /* IP0_15_14 [2] */ | ||
1877 | FN_A7, FN_ST0_D3, FN_LCD_DATA7_A, FN_TIOC0D_C, | ||
1878 | /* IP0_13_12 [2] */ | ||
1879 | FN_A6, FN_ST0_D2, FN_LCD_DATA6_A, FN_TIOC0C_C, | ||
1880 | /* IP0_11_10 [2] */ | ||
1881 | FN_A5, FN_ST0_D1, FN_LCD_DATA5_A, FN_TIOC0B_C, | ||
1882 | /* IP0_9_8 [2] */ | ||
1883 | FN_A4, FN_ST0_D0, FN_LCD_DATA4_A, FN_TIOC0A_C, | ||
1884 | /* IP0_7_6 [2] */ | ||
1885 | FN_A3, FN_ST0_VLD, FN_LCD_DATA3_A, FN_TCLKD_C, | ||
1886 | /* IP0_5_4 [2] */ | ||
1887 | FN_A2, FN_ST0_SYC, FN_LCD_DATA2_A, FN_TCLKC_C, | ||
1888 | /* IP0_3_2 [2] */ | ||
1889 | FN_A1, FN_ST0_REQ, FN_LCD_DATA1_A, FN_TCLKB_C, | ||
1890 | /* IP0_1_0 [2] */ | ||
1891 | FN_A0, FN_ST0_CLKIN, FN_LCD_DATA0_A, FN_TCLKA_C } | ||
1892 | }, | ||
1893 | { PINMUX_CFG_REG_VAR("IPSR1", 0xFFFC0020, 32, | ||
1894 | 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2) { | ||
1895 | /* IP1_31_29 [3] */ | ||
1896 | FN_D3, FN_SD0_DAT3_A, FN_MMC_D3_A, FN_ST1_D6, | ||
1897 | FN_FD3_A, 0, 0, 0, | ||
1898 | /* IP1_28_26 [3] */ | ||
1899 | FN_D2, FN_SD0_DAT2_A, FN_MMC_D2_A, FN_ST1_D5, | ||
1900 | FN_FD2_A, 0, 0, 0, | ||
1901 | /* IP1_25_23 [3] */ | ||
1902 | FN_D1, FN_SD0_DAT1_A, FN_MMC_D1_A, FN_ST1_D4, | ||
1903 | FN_FD1_A, 0, 0, 0, | ||
1904 | /* IP1_22_20 [3] */ | ||
1905 | FN_D0, FN_SD0_DAT0_A, FN_MMC_D0_A, FN_ST1_D3, | ||
1906 | FN_FD0_A, 0, 0, 0, | ||
1907 | /* IP1_19_18 [2] */ | ||
1908 | FN_A25, FN_TX2_D, FN_ST1_D2, 0, | ||
1909 | /* IP1_17_16 [2] */ | ||
1910 | FN_A24, FN_RX2_D, FN_ST1_D1, 0, | ||
1911 | /* IP1_15_14 [2] */ | ||
1912 | FN_A23, FN_ST1_D0, FN_LCD_M_DISP_A, 0, | ||
1913 | /* IP1_13_12 [2] */ | ||
1914 | FN_A22, FN_ST1_VLD, FN_LCD_VEPWC_A, 0, | ||
1915 | /* IP1_11_10 [2] */ | ||
1916 | FN_A21, FN_ST1_SYC, FN_LCD_VCPWC_A, 0, | ||
1917 | /* IP1_9_8 [2] */ | ||
1918 | FN_A20, FN_ST1_REQ, FN_LCD_FLM_A, 0, | ||
1919 | /* IP1_7_6 [2] */ | ||
1920 | FN_A19, FN_ST1_CLKIN, FN_LCD_CLK_A, FN_TIOC4D_C, | ||
1921 | /* IP1_5_4 [2] */ | ||
1922 | FN_A18, FN_ST1_PWM, FN_LCD_CL2_A, FN_TIOC4C_C, | ||
1923 | /* IP1_3_2 [2] */ | ||
1924 | FN_A17, FN_ST1_VCO_CLKIN, FN_LCD_CL1_A, FN_TIOC4B_C, | ||
1925 | /* IP1_1_0 [2] */ | ||
1926 | FN_A16, FN_ST0_PWM, FN_LCD_DON_A, FN_TIOC4A_C } | ||
1927 | }, | ||
1928 | { PINMUX_CFG_REG_VAR("IPSR2", 0xFFFC0024, 32, | ||
1929 | 1, 3, 3, 2, 3, 3, 3, 3, 3, 3, 2, 3) { | ||
1930 | /* IP2_31 [1] */ | ||
1931 | 0, 0, | ||
1932 | /* IP2_30_28 [3] */ | ||
1933 | FN_D14, FN_TX2_B, 0, FN_FSE_A, | ||
1934 | FN_ET0_TX_CLK_B, 0, 0, 0, | ||
1935 | /* IP2_27_25 [3] */ | ||
1936 | FN_D13, FN_RX2_B, 0, FN_FRB_A, | ||
1937 | FN_ET0_ETXD6_B, 0, 0, 0, | ||
1938 | /* IP2_24_23 [2] */ | ||
1939 | FN_D12, 0, FN_FWE_A, FN_ET0_ETXD5_B, | ||
1940 | /* IP2_22_20 [3] */ | ||
1941 | FN_D11, FN_RSPI_MISO_A, 0, FN_QMI_QIO1_A, | ||
1942 | FN_FRE_A, FN_ET0_ETXD3_B, 0, 0, | ||
1943 | /* IP2_19_17 [3] */ | ||
1944 | FN_D10, FN_RSPI_MOSI_A, 0, FN_QMO_QIO0_A, | ||
1945 | FN_FALE_A, FN_ET0_ETXD2_B, 0, 0, | ||
1946 | /* IP2_16_14 [3] */ | ||
1947 | FN_D9, FN_SD0_CMD_A, FN_MMC_CMD_A, FN_QIO3_A, | ||
1948 | FN_FCLE_A, FN_ET0_ETXD1_B, 0, 0, | ||
1949 | /* IP2_13_11 [3] */ | ||
1950 | FN_D8, FN_SD0_CLK_A, FN_MMC_CLK_A, FN_QIO2_A, | ||
1951 | FN_FCE_A, FN_ET0_GTX_CLK_B, 0, 0, | ||
1952 | /* IP2_10_8 [3] */ | ||
1953 | FN_D7, FN_RSPI_SSL_A, FN_MMC_D7_A, FN_QSSL_A, | ||
1954 | FN_FD7_A, 0, 0, 0, | ||
1955 | /* IP2_7_5 [3] */ | ||
1956 | FN_D6, FN_RSPI_RSPCK_A, FN_MMC_D6_A, FN_QSPCLK_A, | ||
1957 | FN_FD6_A, 0, 0, 0, | ||
1958 | /* IP2_4_3 [2] */ | ||
1959 | FN_D5, FN_SD0_WP_A, FN_MMC_D5_A, FN_FD5_A, | ||
1960 | /* IP2_2_0 [3] */ | ||
1961 | FN_D4, FN_SD0_CD_A, FN_MMC_D4_A, FN_ST1_D7, | ||
1962 | FN_FD4_A, 0, 0, 0 } | ||
1963 | }, | ||
1964 | { PINMUX_CFG_REG_VAR("IPSR3", 0xFFFC0028, 32, | ||
1965 | 2, 3, 3, 3, 1, 2, 3, 3, 3, 3, 3, 1, 2) { | ||
1966 | /* IP3_31_30 [2] */ | ||
1967 | 0, 0, 0, 0, | ||
1968 | /* IP3_29_27 [3] */ | ||
1969 | FN_DRACK0, FN_SD1_DAT2_A, FN_ATAG, FN_TCLK1_A, | ||
1970 | FN_ET0_ETXD7, 0, 0, 0, | ||
1971 | /* IP3_26_24 [3] */ | ||
1972 | FN_EX_WAIT2, FN_SD1_DAT1_A, FN_DACK2, FN_CAN1_RX_C, | ||
1973 | FN_ET0_MAGIC_C, FN_ET0_ETXD6_A, 0, 0, | ||
1974 | /* IP3_23_21 [3] */ | ||
1975 | FN_EX_WAIT1, FN_SD1_DAT0_A, FN_DREQ2, FN_CAN1_TX_C, | ||
1976 | FN_ET0_LINK_C, FN_ET0_ETXD5_A, 0, 0, | ||
1977 | /* IP3_20 [1] */ | ||
1978 | FN_EX_WAIT0, FN_TCLK1_B, | ||
1979 | /* IP3_19_18 [2] */ | ||
1980 | FN_RD_WR, FN_TCLK1_B, 0, 0, | ||
1981 | /* IP3_17_15 [3] */ | ||
1982 | FN_EX_CS5, FN_SD1_CMD_A, FN_ATADIR, FN_QSSL_B, | ||
1983 | FN_ET0_ETXD3_A, 0, 0, 0, | ||
1984 | /* IP3_14_12 [3] */ | ||
1985 | FN_EX_CS4, FN_SD1_WP_A, FN_ATAWR, FN_QMI_QIO1_B, | ||
1986 | FN_ET0_ETXD2_A, 0, 0, 0, | ||
1987 | /* IP3_11_9 [3] */ | ||
1988 | FN_EX_CS3, FN_SD1_CD_A, FN_ATARD, FN_QMO_QIO0_B, | ||
1989 | FN_ET0_ETXD1_A, 0, 0, 0, | ||
1990 | /* IP3_8_6 [3] */ | ||
1991 | FN_EX_CS2, FN_TX3_B, FN_ATACS1, FN_QSPCLK_B, | ||
1992 | FN_ET0_GTX_CLK_A, 0, 0, 0, | ||
1993 | /* IP3_5_3 [3] */ | ||
1994 | FN_EX_CS1, FN_RX3_B, FN_ATACS0, FN_QIO2_B, | ||
1995 | FN_ET0_ETXD0, 0, 0, 0, | ||
1996 | /* IP3_2 [1] */ | ||
1997 | FN_CS1_A26, FN_QIO3_B, | ||
1998 | /* IP3_1_0 [2] */ | ||
1999 | FN_D15, FN_SCK2_B, 0, 0 } | ||
2000 | }, | ||
2001 | { PINMUX_CFG_REG_VAR("IPSR4", 0xFFFC002C, 32, | ||
2002 | 2, 2, 2, 2, 2, 2 , 2, 3, 3, 3, 3, 3, 3) { | ||
2003 | /* IP4_31_30 [2] */ | ||
2004 | 0, FN_SCK2_A, FN_VI0_G3, 0, | ||
2005 | /* IP4_29_28 [2] */ | ||
2006 | 0, FN_RTS1_B, FN_VI0_G2, 0, | ||
2007 | /* IP4_27_26 [2] */ | ||
2008 | 0, FN_CTS1_B, FN_VI0_DATA7_VI0_G1, 0, | ||
2009 | /* IP4_25_24 [2] */ | ||
2010 | 0, FN_TX1_B, FN_VI0_DATA6_VI0_G0, FN_ET0_PHY_INT_A, | ||
2011 | /* IP4_23_22 [2] */ | ||
2012 | 0, FN_RX1_B, FN_VI0_DATA5_VI0_B5, FN_ET0_MAGIC_A, | ||
2013 | /* IP4_21_20 [2] */ | ||
2014 | 0, FN_SCK1_B, FN_VI0_DATA4_VI0_B4, FN_ET0_LINK_A, | ||
2015 | /* IP4_19_18 [2] */ | ||
2016 | 0, FN_RTS0_B, FN_VI0_DATA3_VI0_B3, FN_ET0_MDIO_A, | ||
2017 | /* IP4_17_15 [3] */ | ||
2018 | 0, FN_CTS0_B, FN_VI0_DATA2_VI0_B2, FN_RMII0_MDIO_A, | ||
2019 | FN_ET0_MDC, 0, 0, 0, | ||
2020 | /* IP4_14_12 [3] */ | ||
2021 | FN_HTX0_A, FN_TX1_A, FN_VI0_DATA1_VI0_B1, FN_RMII0_MDC_A, | ||
2022 | FN_ET0_COL, 0, 0, 0, | ||
2023 | /* IP4_11_9 [3] */ | ||
2024 | FN_HRX0_A, FN_RX1_A, FN_VI0_DATA0_VI0_B0, FN_RMII0_CRS_DV_A, | ||
2025 | FN_ET0_CRS, 0, 0, 0, | ||
2026 | /* IP4_8_6 [3] */ | ||
2027 | FN_HSCK0_A, FN_SCK1_A, FN_VI0_VSYNC, FN_RMII0_RX_ER_A, | ||
2028 | FN_ET0_RX_ER, 0, 0, 0, | ||
2029 | /* IP4_5_3 [3] */ | ||
2030 | FN_HRTS0_A, FN_RTS1_A, FN_VI0_HSYNC, FN_RMII0_TXD_EN_A, | ||
2031 | FN_ET0_RX_DV, 0, 0, 0, | ||
2032 | /* IP4_2_0 [3] */ | ||
2033 | FN_HCTS0_A, FN_CTS1_A, FN_VI0_FIELD, FN_RMII0_RXD1_A, | ||
2034 | FN_ET0_ERXD7, 0, 0, 0 } | ||
2035 | }, | ||
2036 | { PINMUX_CFG_REG_VAR("IPSR5", 0xFFFC0030, 32, | ||
2037 | 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3) { | ||
2038 | /* IP5_31 [1] */ | ||
2039 | 0, 0, | ||
2040 | /* IP5_30 [1] */ | ||
2041 | 0, 0, | ||
2042 | /* IP5_29 [1] */ | ||
2043 | 0, 0, | ||
2044 | /* IP5_28 [1] */ | ||
2045 | 0, 0, | ||
2046 | /* IP5_27 [1] */ | ||
2047 | 0, 0, | ||
2048 | /* IP5_26_25 [2] */ | ||
2049 | FN_REF50CK, FN_CTS1_E, FN_HCTS0_D, 0, | ||
2050 | /* IP5_24_23 [2] */ | ||
2051 | FN_REF125CK, FN_ADTRG, FN_RX5_C, 0, | ||
2052 | /* IP5_22_21 [2] */ | ||
2053 | FN_SD2_WP_A, FN_TX5_A, FN_VI0_R5, 0, | ||
2054 | /* IP5_20_18 [3] */ | ||
2055 | FN_SD2_CD_A, FN_RX5_A, FN_VI0_R4, 0, | ||
2056 | 0, 0, 0, FN_ET0_PHY_INT_B, | ||
2057 | /* IP5_17_15 [3] */ | ||
2058 | FN_SD2_DAT3_A, FN_TX4_A, FN_VI0_R3, 0, | ||
2059 | 0, 0, 0, FN_ET0_MAGIC_B, | ||
2060 | /* IP5_14_12 [3] */ | ||
2061 | FN_SD2_DAT2_A, FN_RX4_A, FN_VI0_R2, 0, | ||
2062 | 0, 0, 0, FN_ET0_LINK_B, | ||
2063 | /* IP5_11_9 [3] */ | ||
2064 | FN_SD2_DAT1_A, FN_TX3_A, FN_VI0_R1, 0, | ||
2065 | 0, 0, 0, FN_ET0_MDIO_B, | ||
2066 | /* IP5_8_6 [3] */ | ||
2067 | FN_SD2_DAT0_A, FN_RX3_A, FN_VI0_R0, 0, | ||
2068 | 0, 0, 0, FN_ET0_ERXD3_B, | ||
2069 | /* IP5_5_3 [3] */ | ||
2070 | FN_SD2_CMD_A, FN_TX2_A, FN_VI0_G5, 0, | ||
2071 | 0, 0, 0, FN_ET0_ERXD2_B, | ||
2072 | /* IP5_2_0 [3] */ | ||
2073 | FN_SD2_CLK_A, FN_RX2_A, FN_VI0_G4, 0, | ||
2074 | FN_ET0_RX_CLK_B, 0, 0, 0 } | ||
2075 | }, | ||
2076 | { PINMUX_CFG_REG_VAR("IPSR6", 0xFFFC0034, 32, | ||
2077 | 1, 1, 1, 1, 1, 1, 1, 1, | ||
2078 | 3, 3, 2, 2, 2, 2, 2, 2, 3, 3) { | ||
2079 | /* IP5_31 [1] */ | ||
2080 | 0, 0, | ||
2081 | /* IP6_30 [1] */ | ||
2082 | 0, 0, | ||
2083 | /* IP6_29 [1] */ | ||
2084 | 0, 0, | ||
2085 | /* IP6_28 [1] */ | ||
2086 | 0, 0, | ||
2087 | /* IP6_27 [1] */ | ||
2088 | 0, 0, | ||
2089 | /* IP6_26 [1] */ | ||
2090 | 0, 0, | ||
2091 | /* IP6_25 [1] */ | ||
2092 | 0, 0, | ||
2093 | /* IP6_24 [1] */ | ||
2094 | 0, 0, | ||
2095 | /* IP6_23_21 [3] */ | ||
2096 | FN_DU0_DG1, FN_CTS1_C, FN_HRTS0_D, FN_TIOC1B_A, | ||
2097 | FN_HIFD09, 0, 0, 0, | ||
2098 | /* IP6_20_18 [3] */ | ||
2099 | FN_DU0_DG0, FN_TX1_C, FN_HSCK0_D, FN_IECLK_A, | ||
2100 | FN_TIOC1A_A, FN_HIFD08, 0, 0, | ||
2101 | /* IP6_17_16 [2] */ | ||
2102 | FN_DU0_DR7, FN_RX1_C, FN_TIOC0D_A, FN_HIFD07, | ||
2103 | /* IP6_15_14 [2] */ | ||
2104 | FN_DU0_DR6, FN_SCK1_C, FN_TIOC0C_A, FN_HIFD06, | ||
2105 | /* IP6_13_12 [2] */ | ||
2106 | FN_DU0_DR5, FN_RTS0_C, FN_TIOC0B_A, FN_HIFD05, | ||
2107 | /* IP6_11_10 [2] */ | ||
2108 | FN_DU0_DR4, FN_CTS0_C, FN_TIOC0A_A, FN_HIFD04, | ||
2109 | /* IP6_9_8 [2] */ | ||
2110 | FN_DU0_DR3, FN_TX0_B, FN_TCLKD_A, FN_HIFD03, | ||
2111 | /* IP6_7_6 [2] */ | ||
2112 | FN_DU0_DR2, FN_RX0_B, FN_TCLKC_A, FN_HIFD02, | ||
2113 | /* IP6_5_3 [3] */ | ||
2114 | FN_DU0_DR1, FN_SCK0_B, FN_HTX0_D, FN_IERX_A, | ||
2115 | FN_TCLKB_A, FN_HIFD01, 0, 0, | ||
2116 | /* IP6_2_0 [3] */ | ||
2117 | FN_DU0_DR0, FN_SCIF_CLK_B, FN_HRX0_D, FN_IETX_A, | ||
2118 | FN_TCLKA_A, FN_HIFD00, 0, 0 } | ||
2119 | }, | ||
2120 | { PINMUX_CFG_REG_VAR("IPSR7", 0xFFFC0038, 32, | ||
2121 | 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3) { | ||
2122 | /* IP7_31 [1] */ | ||
2123 | 0, 0, | ||
2124 | /* IP7_30_29 [2] */ | ||
2125 | FN_DU0_DB4, 0, FN_HIFINT, 0, | ||
2126 | /* IP7_28_27 [2] */ | ||
2127 | FN_DU0_DB3, FN_TX5_B, FN_TIOC4D_A, FN_HIFRD, | ||
2128 | /* IP7_26_24 [3] */ | ||
2129 | FN_DU0_DB2, FN_RX5_B, FN_RMII0_TXD1_B, FN_TIOC4C_A, | ||
2130 | FN_HIFWR, 0, 0, 0, | ||
2131 | /* IP7_23_21 [3] */ | ||
2132 | FN_DU0_DB1, FN_TX4_C, FN_RMII0_TXD0_B, FN_TIOC4B_A, | ||
2133 | FN_HIFRS, 0, 0, 0, | ||
2134 | /* IP7_20_18 [3] */ | ||
2135 | FN_DU0_DB0, FN_RX4_C, FN_RMII0_TXD_EN_B, FN_TIOC4A_A, | ||
2136 | FN_HIFCS, 0, 0, 0, | ||
2137 | /* IP7_17_15 [3] */ | ||
2138 | FN_DU0_DG7, FN_TX3_C, FN_RMII0_RXD1_B, FN_TIOC3D_A, | ||
2139 | FN_HIFD15, 0, 0, 0, | ||
2140 | /* IP7_14_12 [3] */ | ||
2141 | FN_DU0_DG6, FN_RX3_C, FN_RMII0_RXD0_B, FN_TIOC3C_A, | ||
2142 | FN_HIFD14, 0, 0, 0, | ||
2143 | /* IP7_11_9 [3] */ | ||
2144 | FN_DU0_DG5, FN_TX2_C, FN_RMII0_RX_ER_B, FN_TIOC3B_A, | ||
2145 | FN_HIFD13, 0, 0, 0, | ||
2146 | /* IP7_8_6 [3] */ | ||
2147 | FN_DU0_DG4, FN_RX2_C, FN_RMII0_CRS_DV_B, FN_TIOC3A_A, | ||
2148 | FN_HIFD12, 0, 0, 0, | ||
2149 | /* IP7_5_3 [3] */ | ||
2150 | FN_DU0_DG3, FN_SCK2_C, FN_RMII0_MDIO_B, FN_TIOC2B_A, | ||
2151 | FN_HIFD11, 0, 0, 0, | ||
2152 | /* IP7_2_0 [3] */ | ||
2153 | FN_DU0_DG2, FN_RTS1_C, FN_RMII0_MDC_B, FN_TIOC2A_A, | ||
2154 | FN_HIFD10, 0, 0, 0 } | ||
2155 | }, | ||
2156 | { PINMUX_CFG_REG_VAR("IPSR8", 0xFFFC003C, 32, | ||
2157 | 2, 2, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2) { | ||
2158 | /* IP9_31_30 [2] */ | ||
2159 | 0, 0, 0, 0, | ||
2160 | /* IP8_29_28 [2] */ | ||
2161 | FN_IRQ3_A, FN_RTS0_A, FN_HRTS0_B, FN_ET0_ERXD3_A, | ||
2162 | /* IP8_27_26 [2] */ | ||
2163 | FN_IRQ2_A, FN_CTS0_A, FN_HCTS0_B, FN_ET0_ERXD2_A, | ||
2164 | /* IP8_25_23 [3] */ | ||
2165 | FN_IRQ1_A, 0, FN_HSPI_RX_B, FN_TX3_E, | ||
2166 | FN_ET0_ERXD1, 0, 0, 0, | ||
2167 | /* IP8_22_20 [3] */ | ||
2168 | FN_IRQ0_A, 0, FN_HSPI_TX_B, FN_RX3_E, | ||
2169 | FN_ET0_ERXD0, 0, 0, 0, | ||
2170 | /* IP8_19_18 [2] */ | ||
2171 | FN_DU0_CDE, FN_HTX0_B, FN_AUDIO_CLKB_B, FN_LCD_VCPWC_B, | ||
2172 | /* IP8_17_16 [2] */ | ||
2173 | FN_DU0_DISP, FN_CAN0_TX_B, FN_HRX0_B, FN_AUDIO_CLKA_B, | ||
2174 | /* IP8_15_14 [2] */ | ||
2175 | FN_DU0_EXODDF_DU0_ODDF, FN_CAN0_RX_B, FN_HSCK0_B, | ||
2176 | FN_SSI_SDATA1_B, | ||
2177 | /* IP8_13_12 [2] */ | ||
2178 | FN_DU0_EXVSYNC_DU0_VSYNC, 0, FN_HSPI_RX0_C, FN_SSI_WS1_B, | ||
2179 | /* IP8_11_10 [2] */ | ||
2180 | FN_DU0_EXHSYNC_DU0_HSYNC, 0, FN_HSPI_TX0_C, FN_SSI_SCK1_B, | ||
2181 | /* IP8_9_8 [2] */ | ||
2182 | FN_DU0_DOTCLKOUT, 0, FN_HSPI_CLK0_C, FN_SSI_SDATA0_B, | ||
2183 | /* IP8_7_6 [2] */ | ||
2184 | FN_DU0_DOTCLKIN, 0, FN_HSPI_CS0_C, FN_SSI_WS0_B, | ||
2185 | /* IP8_5_4 [2] */ | ||
2186 | FN_DU0_DB7, 0, FN_SSI_SCK0_B, FN_HIFEBL_B, | ||
2187 | /* IP8_3_2 [2] */ | ||
2188 | FN_DU0_DB6, 0, FN_HIFRDY, 0, | ||
2189 | /* IP8_1_0 [2] */ | ||
2190 | FN_DU0_DB5, 0, FN_HIFDREQ, 0 } | ||
2191 | }, | ||
2192 | { PINMUX_CFG_REG_VAR("IPSR9", 0xFFFC0040, 32, | ||
2193 | 2, 2, 2, 2, 2, 2, 2, 2, | ||
2194 | 2, 2, 2, 2, 2, 2, 2, 2) { | ||
2195 | /* IP9_31_30 [2] */ | ||
2196 | 0, 0, 0, 0, | ||
2197 | /* IP9_29_28 [2] */ | ||
2198 | FN_SSI_SDATA1_A, FN_VI1_3_B, FN_LCD_DATA14_B, 0, | ||
2199 | /* IP9_27_26 [2] */ | ||
2200 | FN_SSI_WS1_A, FN_VI1_2_B, FN_LCD_DATA13_B, 0, | ||
2201 | /* IP9_25_24 [2] */ | ||
2202 | FN_SSI_SCK1_A, FN_VI1_1_B, FN_TIOC2B_B, FN_LCD_DATA12_B, | ||
2203 | /* IP9_23_22 [2] */ | ||
2204 | FN_SSI_SDATA0_A, FN_VI1_0_B, FN_TIOC2A_B, FN_LCD_DATA11_B, | ||
2205 | /* IP9_21_20 [2] */ | ||
2206 | FN_SSI_WS0_A, FN_TIOC1B_B, FN_LCD_DATA10_B, 0, | ||
2207 | /* IP9_19_18 [2] */ | ||
2208 | FN_SSI_SCK0_A, FN_TIOC1A_B, FN_LCD_DATA9_B, 0, | ||
2209 | /* IP9_17_16 [2] */ | ||
2210 | FN_VI1_7_A, FN_FCE_B, FN_LCD_DATA8_B, 0, | ||
2211 | /* IP9_15_14 [2] */ | ||
2212 | FN_VI1_6_A, 0, FN_FD7_B, FN_LCD_DATA7_B, | ||
2213 | /* IP9_13_12 [2] */ | ||
2214 | FN_VI1_5_A, 0, FN_FD6_B, FN_LCD_DATA6_B, | ||
2215 | /* IP9_11_10 [2] */ | ||
2216 | FN_VI1_4_A, 0, FN_FD5_B, FN_LCD_DATA5_B, | ||
2217 | /* IP9_9_8 [2] */ | ||
2218 | FN_VI1_3_A, 0, FN_FD4_B, FN_LCD_DATA4_B, | ||
2219 | /* IP9_7_6 [2] */ | ||
2220 | FN_VI1_2_A, 0, FN_FD3_B, FN_LCD_DATA3_B, | ||
2221 | /* IP9_5_4 [2] */ | ||
2222 | FN_VI1_1_A, 0, FN_FD2_B, FN_LCD_DATA2_B, | ||
2223 | /* IP9_3_2 [2] */ | ||
2224 | FN_VI1_0_A, 0, FN_FD1_B, FN_LCD_DATA1_B, | ||
2225 | /* IP9_1_0 [2] */ | ||
2226 | FN_VI1_CLK_A, 0, FN_FD0_B, FN_LCD_DATA0_B } | ||
2227 | }, | ||
2228 | { PINMUX_CFG_REG_VAR("IPSR10", 0xFFFC0044, 32, | ||
2229 | 2, 2, 2, 1, 2, 1, 3, | ||
2230 | 3, 1, 3, 3, 3, 3, 3) { | ||
2231 | /* IP9_31_30 [2] */ | ||
2232 | 0, 0, 0, 0, | ||
2233 | /* IP10_29_28 [2] */ | ||
2234 | FN_CAN1_TX_A, FN_TX5_C, FN_MLB_DAT, 0, | ||
2235 | /* IP10_27_26 [2] */ | ||
2236 | FN_CAN0_RX_A, FN_IRQ0_B, FN_MLB_SIG, 0, | ||
2237 | /* IP10_25 [1] */ | ||
2238 | FN_CAN1_RX_A, FN_IRQ1_B, | ||
2239 | /* IP10_24_23 [2] */ | ||
2240 | FN_CAN0_TX_A, FN_TX4_D, FN_MLB_CLK, 0, | ||
2241 | /* IP10_22 [1] */ | ||
2242 | FN_CAN_CLK_A, FN_RX4_D, | ||
2243 | /* IP10_21_19 [3] */ | ||
2244 | FN_AUDIO_CLKOUT, FN_TX1_E, FN_HRTS0_C, FN_FSE_B, | ||
2245 | FN_LCD_M_DISP_B, 0, 0, 0, | ||
2246 | /* IP10_18_16 [3] */ | ||
2247 | FN_AUDIO_CLKC, FN_SCK1_E, FN_HCTS0_C, FN_FRB_B, | ||
2248 | FN_LCD_VEPWC_B, 0, 0, 0, | ||
2249 | /* IP10_15 [1] */ | ||
2250 | FN_AUDIO_CLKB_A, FN_LCD_CLK_B, | ||
2251 | /* IP10_14_12 [3] */ | ||
2252 | FN_AUDIO_CLKA_A, FN_VI1_CLK_B, FN_SCK1_D, FN_IECLK_B, | ||
2253 | FN_LCD_FLM_B, 0, 0, 0, | ||
2254 | /* IP10_11_9 [3] */ | ||
2255 | FN_SSI_SDATA3, FN_VI1_7_B, FN_HTX0_C, FN_FWE_B, | ||
2256 | FN_LCD_CL2_B, 0, 0, 0, | ||
2257 | /* IP10_8_6 [3] */ | ||
2258 | FN_SSI_SDATA2, FN_VI1_6_B, FN_HRX0_C, FN_FRE_B, | ||
2259 | FN_LCD_CL1_B, 0, 0, 0, | ||
2260 | /* IP10_5_3 [3] */ | ||
2261 | FN_SSI_WS23, FN_VI1_5_B, FN_TX1_D, FN_HSCK0_C, FN_FALE_B, | ||
2262 | FN_LCD_DON_B, 0, 0, 0, | ||
2263 | /* IP10_2_0 [3] */ | ||
2264 | FN_SSI_SCK23, FN_VI1_4_B, FN_RX1_D, FN_FCLE_B, | ||
2265 | FN_LCD_DATA15_B, 0, 0, 0 } | ||
2266 | }, | ||
2267 | { PINMUX_CFG_REG_VAR("IPSR11", 0xFFFC0048, 32, | ||
2268 | 3, 1, 2, 2, 2, 3, 3, 1, 2, 3, 3, 1, 1, 1, 1) { | ||
2269 | /* IP11_31_29 [3] */ | ||
2270 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2271 | /* IP11_28 [1] */ | ||
2272 | FN_PRESETOUT, FN_ST_CLKOUT, | ||
2273 | /* IP11_27_26 [2] */ | ||
2274 | FN_DACK1, FN_HSPI_CS_B, FN_TX4_B, FN_ET0_RX_CLK_A, | ||
2275 | /* IP11_25_23 [3] */ | ||
2276 | FN_DREQ1, FN_HSPI_CLK_B, FN_RX4_B, FN_ET0_PHY_INT_C, | ||
2277 | FN_ET0_TX_CLK_A, 0, 0, 0, | ||
2278 | /* IP11_22_21 [2] */ | ||
2279 | FN_DACK0, FN_SD1_DAT3_A, FN_ET0_TX_ER, 0, | ||
2280 | /* IP11_20_19 [2] */ | ||
2281 | FN_DREQ0, FN_SD1_CLK_A, FN_ET0_TX_EN, 0, | ||
2282 | /* IP11_18_16 [3] */ | ||
2283 | FN_USB_OVC1, FN_RX3_D, FN_CAN1_RX_B, FN_RX5_D, | ||
2284 | FN_IERX_B, 0, 0, 0, | ||
2285 | /* IP11_15_13 [3] */ | ||
2286 | FN_PENC1, FN_TX3_D, FN_CAN1_TX_B, FN_TX5_D, | ||
2287 | FN_IETX_B, 0, 0, 0, | ||
2288 | /* IP11_12 [1] */ | ||
2289 | FN_TX0_A, FN_HSPI_TX_A, | ||
2290 | /* IP11_11_10 [2] */ | ||
2291 | FN_RX0_A, FN_HSPI_RX_A, FN_RMII0_RXD0_A, FN_ET0_ERXD6, | ||
2292 | /* IP11_9_7 [3] */ | ||
2293 | FN_SCK0_A, FN_HSPI_CS_A, FN_VI0_CLKENB, FN_RMII0_TXD1_A, | ||
2294 | FN_ET0_ERXD5, 0, 0, 0, | ||
2295 | /* IP11_6_4 [3] */ | ||
2296 | FN_SCIF_CLK_A, FN_HSPI_CLK_A, FN_VI0_CLK, FN_RMII0_TXD0_A, | ||
2297 | FN_ET0_ERXD4, 0, 0, 0, | ||
2298 | /* IP11_3 [1] */ | ||
2299 | FN_SDSELF, FN_RTS1_E, | ||
2300 | /* IP11_2 [1] */ | ||
2301 | FN_SDA0, FN_HIFEBL_A, | ||
2302 | /* IP11_1 [1] */ | ||
2303 | FN_SDA1, FN_RX1_E, | ||
2304 | /* IP11_0 [1] */ | ||
2305 | FN_SCL1, FN_SCIF_CLK_C } | ||
2306 | }, | ||
2307 | { PINMUX_CFG_REG_VAR("MOD_SEL1", 0xFFFC004C, 32, | ||
2308 | 3, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, | ||
2309 | 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) { | ||
2310 | /* SEL1_31_29 [3] */ | ||
2311 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2312 | /* SEL1_28 [1] */ | ||
2313 | FN_SEL_IEBUS_0, FN_SEL_IEBUS_1, | ||
2314 | /* SEL1_27 [1] */ | ||
2315 | FN_SEL_RQSPI_0, FN_SEL_RQSPI_1, | ||
2316 | /* SEL1_26 [1] */ | ||
2317 | FN_SEL_VIN1_0, FN_SEL_VIN1_1, | ||
2318 | /* SEL1_25 [1] */ | ||
2319 | FN_SEL_HIF_0, FN_SEL_HIF_1, | ||
2320 | /* SEL1_24 [1] */ | ||
2321 | FN_SEL_RSPI_0, FN_SEL_RSPI_1, | ||
2322 | /* SEL1_23 [1] */ | ||
2323 | FN_SEL_LCDC_0, FN_SEL_LCDC_1, | ||
2324 | /* SEL1_22_21 [2] */ | ||
2325 | FN_SEL_ET0_CTL_0, FN_SEL_ET0_CTL_1, FN_SEL_ET0_CTL_2, 0, | ||
2326 | /* SEL1_20 [1] */ | ||
2327 | FN_SEL_ET0_0, FN_SEL_ET0_1, | ||
2328 | /* SEL1_19 [1] */ | ||
2329 | FN_SEL_RMII_0, FN_SEL_RMII_1, | ||
2330 | /* SEL1_18 [1] */ | ||
2331 | FN_SEL_TMU_0, FN_SEL_TMU_1, | ||
2332 | /* SEL1_17_16 [2] */ | ||
2333 | FN_SEL_HSPI_0, FN_SEL_HSPI_1, FN_SEL_HSPI_2, 0, | ||
2334 | /* SEL1_15_14 [2] */ | ||
2335 | FN_SEL_HSCIF_0, FN_SEL_HSCIF_1, FN_SEL_HSCIF_2, FN_SEL_HSCIF_3, | ||
2336 | /* SEL1_13 [1] */ | ||
2337 | FN_SEL_RCAN_CLK_0, FN_SEL_RCAN_CLK_1, | ||
2338 | /* SEL1_12_11 [2] */ | ||
2339 | FN_SEL_RCAN1_0, FN_SEL_RCAN1_1, FN_SEL_RCAN1_2, 0, | ||
2340 | /* SEL1_10 [1] */ | ||
2341 | FN_SEL_RCAN0_0, FN_SEL_RCAN0_1, | ||
2342 | /* SEL1_9 [1] */ | ||
2343 | FN_SEL_SDHI2_0, FN_SEL_SDHI2_1, | ||
2344 | /* SEL1_8 [1] */ | ||
2345 | FN_SEL_SDHI1_0, FN_SEL_SDHI1_1, | ||
2346 | /* SEL1_7 [1] */ | ||
2347 | FN_SEL_SDHI0_0, FN_SEL_SDHI0_1, | ||
2348 | /* SEL1_6 [1] */ | ||
2349 | FN_SEL_SSI1_0, FN_SEL_SSI1_1, | ||
2350 | /* SEL1_5 [1] */ | ||
2351 | FN_SEL_SSI0_0, FN_SEL_SSI0_1, | ||
2352 | /* SEL1_4 [1] */ | ||
2353 | FN_SEL_AUDIO_CLKB_0, FN_SEL_AUDIO_CLKB_1, | ||
2354 | /* SEL1_3 [1] */ | ||
2355 | FN_SEL_AUDIO_CLKA_0, FN_SEL_AUDIO_CLKA_1, | ||
2356 | /* SEL1_2 [1] */ | ||
2357 | FN_SEL_FLCTL_0, FN_SEL_FLCTL_1, | ||
2358 | /* SEL1_1 [1] */ | ||
2359 | FN_SEL_MMC_0, FN_SEL_MMC_1, | ||
2360 | /* SEL1_0 [1] */ | ||
2361 | FN_SEL_INTC_0, FN_SEL_INTC_1 } | ||
2362 | }, | ||
2363 | { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xFFFC0050, 32, | ||
2364 | 1, 1, 1, 1, 1, 1, 1, 1, | ||
2365 | 1, 1, 1, 2, 2, 1, 2, 2, 3, 2, 3, 2, 2) { | ||
2366 | /* SEL2_31 [1] */ | ||
2367 | 0, 0, | ||
2368 | /* SEL2_30 [1] */ | ||
2369 | 0, 0, | ||
2370 | /* SEL2_29 [1] */ | ||
2371 | 0, 0, | ||
2372 | /* SEL2_28 [1] */ | ||
2373 | 0, 0, | ||
2374 | /* SEL2_27 [1] */ | ||
2375 | 0, 0, | ||
2376 | /* SEL2_26 [1] */ | ||
2377 | 0, 0, | ||
2378 | /* SEL2_25 [1] */ | ||
2379 | 0, 0, | ||
2380 | /* SEL2_24 [1] */ | ||
2381 | 0, 0, | ||
2382 | /* SEL2_23 [1] */ | ||
2383 | FN_SEL_MTU2_CLK_0, FN_SEL_MTU2_CLK_1, | ||
2384 | /* SEL2_22 [1] */ | ||
2385 | FN_SEL_MTU2_CH4_0, FN_SEL_MTU2_CH4_1, | ||
2386 | /* SEL2_21 [1] */ | ||
2387 | FN_SEL_MTU2_CH3_0, FN_SEL_MTU2_CH3_1, | ||
2388 | /* SEL2_20_19 [2] */ | ||
2389 | FN_SEL_MTU2_CH2_0, FN_SEL_MTU2_CH2_1, FN_SEL_MTU2_CH2_2, 0, | ||
2390 | /* SEL2_18_17 [2] */ | ||
2391 | FN_SEL_MTU2_CH1_0, FN_SEL_MTU2_CH1_1, FN_SEL_MTU2_CH1_2, 0, | ||
2392 | /* SEL2_16 [1] */ | ||
2393 | FN_SEL_MTU2_CH0_0, FN_SEL_MTU2_CH0_1, | ||
2394 | /* SEL2_15_14 [2] */ | ||
2395 | FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, FN_SEL_SCIF5_2, FN_SEL_SCIF5_3, | ||
2396 | /* SEL2_13_12 [2] */ | ||
2397 | FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, FN_SEL_SCIF4_3, | ||
2398 | /* SEL2_11_9 [3] */ | ||
2399 | FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3, | ||
2400 | FN_SEL_SCIF3_4, 0, 0, 0, | ||
2401 | /* SEL2_8_7 [2] */ | ||
2402 | FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, FN_SEL_SCIF2_3, | ||
2403 | /* SEL2_6_4 [3] */ | ||
2404 | FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, FN_SEL_SCIF1_3, | ||
2405 | FN_SEL_SCIF1_4, 0, 0, 0, | ||
2406 | /* SEL2_3_2 [2] */ | ||
2407 | FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, 0, | ||
2408 | /* SEL2_1_0 [2] */ | ||
2409 | FN_SEL_SCIF_CLK_0, FN_SEL_SCIF_CLK_1, FN_SEL_SCIF_CLK_2, 0 } | ||
2410 | }, | ||
2411 | /* GPIO 0 - 5*/ | ||
2412 | { PINMUX_CFG_REG("INOUTSEL0", 0xFFC40004, 32, 1) { GP_INOUTSEL(0) } }, | ||
2413 | { PINMUX_CFG_REG("INOUTSEL1", 0xFFC41004, 32, 1) { GP_INOUTSEL(1) } }, | ||
2414 | { PINMUX_CFG_REG("INOUTSEL2", 0xFFC42004, 32, 1) { GP_INOUTSEL(2) } }, | ||
2415 | { PINMUX_CFG_REG("INOUTSEL3", 0xFFC43004, 32, 1) { GP_INOUTSEL(3) } }, | ||
2416 | { PINMUX_CFG_REG("INOUTSEL4", 0xFFC44004, 32, 1) { GP_INOUTSEL(4) } }, | ||
2417 | { PINMUX_CFG_REG("INOUTSEL5", 0xffc45004, 32, 1) { | ||
2418 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 31 - 24 */ | ||
2419 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 23 - 16 */ | ||
2420 | 0, 0, 0, 0, 0, 0, 0, 0, /* 15 - 12 */ | ||
2421 | GP_5_11_IN, GP_5_11_OUT, | ||
2422 | GP_5_10_IN, GP_5_10_OUT, | ||
2423 | GP_5_9_IN, GP_5_9_OUT, | ||
2424 | GP_5_8_IN, GP_5_8_OUT, | ||
2425 | GP_5_7_IN, GP_5_7_OUT, | ||
2426 | GP_5_6_IN, GP_5_6_OUT, | ||
2427 | GP_5_5_IN, GP_5_5_OUT, | ||
2428 | GP_5_4_IN, GP_5_4_OUT, | ||
2429 | GP_5_3_IN, GP_5_3_OUT, | ||
2430 | GP_5_2_IN, GP_5_2_OUT, | ||
2431 | GP_5_1_IN, GP_5_1_OUT, | ||
2432 | GP_5_0_IN, GP_5_0_OUT } | ||
2433 | }, | ||
2434 | { }, | ||
2435 | }; | ||
2436 | |||
2437 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2438 | /* GPIO 0 - 5*/ | ||
2439 | { PINMUX_DATA_REG("INDT0", 0xFFC4000C, 32) { GP_INDT(0) } }, | ||
2440 | { PINMUX_DATA_REG("INDT1", 0xFFC4100C, 32) { GP_INDT(1) } }, | ||
2441 | { PINMUX_DATA_REG("INDT2", 0xFFC4200C, 32) { GP_INDT(2) } }, | ||
2442 | { PINMUX_DATA_REG("INDT3", 0xFFC4300C, 32) { GP_INDT(3) } }, | ||
2443 | { PINMUX_DATA_REG("INDT4", 0xFFC4400C, 32) { GP_INDT(4) } }, | ||
2444 | { PINMUX_DATA_REG("INDT5", 0xFFC4500C, 32) { | ||
2445 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2446 | 0, 0, 0, 0, | ||
2447 | GP_5_11_DATA, GP_5_10_DATA, GP_5_9_DATA, GP_5_8_DATA, | ||
2448 | GP_5_7_DATA, GP_5_6_DATA, GP_5_5_DATA, GP_5_4_DATA, | ||
2449 | GP_5_3_DATA, GP_5_2_DATA, GP_5_1_DATA, GP_5_0_DATA } | ||
2450 | }, | ||
2451 | { }, | ||
2452 | }; | ||
2453 | 16 | ||
2454 | static struct resource sh7734_pfc_resources[] = { | 17 | static struct resource sh7734_pfc_resources[] = { |
2455 | [0] = { /* PFC */ | 18 | [0] = { /* PFC */ |
@@ -2464,34 +27,9 @@ static struct resource sh7734_pfc_resources[] = { | |||
2464 | } | 27 | } |
2465 | }; | 28 | }; |
2466 | 29 | ||
2467 | static struct pinmux_info sh7734_pinmux_info = { | ||
2468 | .name = "sh7734_pfc", | ||
2469 | |||
2470 | .resource = sh7734_pfc_resources, | ||
2471 | .num_resources = ARRAY_SIZE(sh7734_pfc_resources), | ||
2472 | |||
2473 | .unlock_reg = 0xFFFC0000, | ||
2474 | |||
2475 | .reserved_id = PINMUX_RESERVED, | ||
2476 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2477 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
2478 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
2479 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2480 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2481 | |||
2482 | .first_gpio = GPIO_GP_0_0, | ||
2483 | .last_gpio = GPIO_FN_ST_CLKOUT, | ||
2484 | |||
2485 | .gpios = pinmux_gpios, | ||
2486 | .cfg_regs = pinmux_config_regs, | ||
2487 | .data_regs = pinmux_data_regs, | ||
2488 | |||
2489 | .gpio_data = pinmux_data, | ||
2490 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2491 | }; | ||
2492 | |||
2493 | static int __init plat_pinmux_setup(void) | 30 | static int __init plat_pinmux_setup(void) |
2494 | { | 31 | { |
2495 | return register_pinmux(&sh7734_pinmux_info); | 32 | return sh_pfc_register("pfc-sh7734", sh7734_pfc_resources, |
33 | ARRAY_SIZE(sh7734_pfc_resources)); | ||
2496 | } | 34 | } |
2497 | arch_initcall(plat_pinmux_setup); | 35 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c index 4c74bd04bba4..cda6bd177b8c 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c | |||
@@ -15,2273 +15,10 @@ | |||
15 | 15 | ||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/gpio.h> | 18 | #include <cpu/pfc.h> |
19 | #include <cpu/sh7757.h> | ||
20 | |||
21 | enum { | ||
22 | PINMUX_RESERVED = 0, | ||
23 | |||
24 | PINMUX_DATA_BEGIN, | ||
25 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
26 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
27 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
28 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
29 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
30 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
31 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
32 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
33 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
34 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
35 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
36 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
37 | PTG7_DATA, PTG6_DATA, PTG5_DATA, PTG4_DATA, | ||
38 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
39 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
40 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
41 | PTI7_DATA, PTI6_DATA, PTI5_DATA, PTI4_DATA, | ||
42 | PTI3_DATA, PTI2_DATA, PTI1_DATA, PTI0_DATA, | ||
43 | PTJ6_DATA, PTJ5_DATA, PTJ4_DATA, | ||
44 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
45 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
46 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
47 | PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
48 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
49 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
50 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
51 | PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
52 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
53 | PTO7_DATA, PTO6_DATA, PTO5_DATA, PTO4_DATA, | ||
54 | PTO3_DATA, PTO2_DATA, PTO1_DATA, PTO0_DATA, | ||
55 | PTP7_DATA, PTP6_DATA, PTP5_DATA, PTP4_DATA, | ||
56 | PTP3_DATA, PTP2_DATA, PTP1_DATA, PTP0_DATA, | ||
57 | PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
58 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
59 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
60 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
61 | PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
62 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
63 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
64 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
65 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
66 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
67 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
68 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
69 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
70 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
71 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
72 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
73 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
74 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
75 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
76 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
77 | PINMUX_DATA_END, | ||
78 | |||
79 | PINMUX_INPUT_BEGIN, | ||
80 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
81 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
82 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
83 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
84 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
85 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
86 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
87 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
88 | PTE7_IN, PTE6_IN, PTE5_IN, PTE4_IN, | ||
89 | PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
90 | PTF7_IN, PTF6_IN, PTF5_IN, PTF4_IN, | ||
91 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
92 | PTG7_IN, PTG6_IN, PTG5_IN, PTG4_IN, | ||
93 | PTG3_IN, PTG2_IN, PTG1_IN, PTG0_IN, | ||
94 | PTH7_IN, PTH6_IN, PTH5_IN, PTH4_IN, | ||
95 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
96 | PTI7_IN, PTI6_IN, PTI5_IN, PTI4_IN, | ||
97 | PTI3_IN, PTI2_IN, PTI1_IN, PTI0_IN, | ||
98 | PTJ6_IN, PTJ5_IN, PTJ4_IN, | ||
99 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
100 | PTK7_IN, PTK6_IN, PTK5_IN, PTK4_IN, | ||
101 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
102 | PTL6_IN, PTL5_IN, PTL4_IN, | ||
103 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
104 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
105 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
106 | PTN6_IN, PTN5_IN, PTN4_IN, | ||
107 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
108 | PTO7_IN, PTO6_IN, PTO5_IN, PTO4_IN, | ||
109 | PTO3_IN, PTO2_IN, PTO1_IN, PTO0_IN, | ||
110 | PTP7_IN, PTP6_IN, PTP5_IN, PTP4_IN, | ||
111 | PTP3_IN, PTP2_IN, PTP1_IN, PTP0_IN, | ||
112 | PTQ6_IN, PTQ5_IN, PTQ4_IN, | ||
113 | PTQ3_IN, PTQ2_IN, PTQ1_IN, PTQ0_IN, | ||
114 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
115 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
116 | PTS7_IN, PTS6_IN, PTS5_IN, PTS4_IN, | ||
117 | PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
118 | PTT7_IN, PTT6_IN, PTT5_IN, PTT4_IN, | ||
119 | PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
120 | PTU7_IN, PTU6_IN, PTU5_IN, PTU4_IN, | ||
121 | PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
122 | PTV7_IN, PTV6_IN, PTV5_IN, PTV4_IN, | ||
123 | PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
124 | PTW7_IN, PTW6_IN, PTW5_IN, PTW4_IN, | ||
125 | PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
126 | PTX7_IN, PTX6_IN, PTX5_IN, PTX4_IN, | ||
127 | PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
128 | PTY7_IN, PTY6_IN, PTY5_IN, PTY4_IN, | ||
129 | PTY3_IN, PTY2_IN, PTY1_IN, PTY0_IN, | ||
130 | PTZ7_IN, PTZ6_IN, PTZ5_IN, PTZ4_IN, | ||
131 | PTZ3_IN, PTZ2_IN, PTZ1_IN, PTZ0_IN, | ||
132 | PINMUX_INPUT_END, | ||
133 | |||
134 | PINMUX_INPUT_PULLUP_BEGIN, | ||
135 | PTA7_IN_PU, PTA6_IN_PU, PTA5_IN_PU, PTA4_IN_PU, | ||
136 | PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
137 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
138 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, PTD0_IN_PU, | ||
139 | PTE7_IN_PU, PTE6_IN_PU, PTE5_IN_PU, PTE4_IN_PU, | ||
140 | PTE3_IN_PU, PTE2_IN_PU, PTE1_IN_PU, PTE0_IN_PU, | ||
141 | PTF7_IN_PU, PTF6_IN_PU, PTF5_IN_PU, PTF4_IN_PU, | ||
142 | PTF3_IN_PU, PTF2_IN_PU, PTF1_IN_PU, PTF0_IN_PU, | ||
143 | PTG7_IN_PU, PTG6_IN_PU, PTG4_IN_PU, | ||
144 | PTH7_IN_PU, PTH6_IN_PU, PTH5_IN_PU, PTH4_IN_PU, | ||
145 | PTH3_IN_PU, PTH2_IN_PU, PTH1_IN_PU, PTH0_IN_PU, | ||
146 | PTI7_IN_PU, PTI6_IN_PU, PTI4_IN_PU, | ||
147 | PTI3_IN_PU, PTI2_IN_PU, PTI1_IN_PU, PTI0_IN_PU, | ||
148 | PTJ6_IN_PU, PTJ5_IN_PU, PTJ4_IN_PU, | ||
149 | PTJ3_IN_PU, PTJ2_IN_PU, PTJ1_IN_PU, PTJ0_IN_PU, | ||
150 | PTK7_IN_PU, PTK6_IN_PU, PTK5_IN_PU, PTK4_IN_PU, | ||
151 | PTK3_IN_PU, PTK2_IN_PU, PTK1_IN_PU, PTK0_IN_PU, | ||
152 | PTL6_IN_PU, PTL5_IN_PU, PTL4_IN_PU, | ||
153 | PTL3_IN_PU, PTL2_IN_PU, PTL1_IN_PU, PTL0_IN_PU, | ||
154 | PTM7_IN_PU, PTM6_IN_PU, PTM5_IN_PU, PTM4_IN_PU, | ||
155 | PTN4_IN_PU, | ||
156 | PTN3_IN_PU, PTN2_IN_PU, PTN1_IN_PU, PTN0_IN_PU, | ||
157 | PTO7_IN_PU, PTO6_IN_PU, PTO5_IN_PU, PTO4_IN_PU, | ||
158 | PTO3_IN_PU, PTO2_IN_PU, PTO1_IN_PU, PTO0_IN_PU, | ||
159 | PTT7_IN_PU, PTT6_IN_PU, PTT5_IN_PU, PTT4_IN_PU, | ||
160 | PTT3_IN_PU, PTT2_IN_PU, PTT1_IN_PU, PTT0_IN_PU, | ||
161 | PTU7_IN_PU, PTU6_IN_PU, PTU5_IN_PU, PTU4_IN_PU, | ||
162 | PTU3_IN_PU, PTU2_IN_PU, PTU1_IN_PU, PTU0_IN_PU, | ||
163 | PTV7_IN_PU, PTV6_IN_PU, PTV5_IN_PU, PTV4_IN_PU, | ||
164 | PTV3_IN_PU, PTV2_IN_PU, | ||
165 | PTW1_IN_PU, PTW0_IN_PU, | ||
166 | PTX7_IN_PU, PTX6_IN_PU, PTX5_IN_PU, PTX4_IN_PU, | ||
167 | PTX3_IN_PU, PTX2_IN_PU, PTX1_IN_PU, PTX0_IN_PU, | ||
168 | PTY7_IN_PU, PTY6_IN_PU, PTY5_IN_PU, PTY4_IN_PU, | ||
169 | PTY3_IN_PU, PTY2_IN_PU, PTY1_IN_PU, PTY0_IN_PU, | ||
170 | PTZ7_IN_PU, PTZ6_IN_PU, PTZ5_IN_PU, PTZ4_IN_PU, | ||
171 | PTZ3_IN_PU, PTZ2_IN_PU, PTZ1_IN_PU, PTZ0_IN_PU, | ||
172 | PINMUX_INPUT_PULLUP_END, | ||
173 | |||
174 | PINMUX_OUTPUT_BEGIN, | ||
175 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
176 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
177 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
178 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
179 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
180 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
181 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
182 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
183 | PTE7_OUT, PTE6_OUT, PTE5_OUT, PTE4_OUT, | ||
184 | PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
185 | PTF7_OUT, PTF6_OUT, PTF5_OUT, PTF4_OUT, | ||
186 | PTF3_OUT, PTF2_OUT, PTF1_OUT, PTF0_OUT, | ||
187 | PTG7_OUT, PTG6_OUT, PTG5_OUT, PTG4_OUT, | ||
188 | PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
189 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
190 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
191 | PTI7_OUT, PTI6_OUT, PTI5_OUT, PTI4_OUT, | ||
192 | PTI3_OUT, PTI2_OUT, PTI1_OUT, PTI0_OUT, | ||
193 | PTJ6_OUT, PTJ5_OUT, PTJ4_OUT, | ||
194 | PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
195 | PTK7_OUT, PTK6_OUT, PTK5_OUT, PTK4_OUT, | ||
196 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
197 | PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
198 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
199 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
200 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
201 | PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
202 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, | ||
203 | PTO7_OUT, PTO6_OUT, PTO5_OUT, PTO4_OUT, | ||
204 | PTO3_OUT, PTO2_OUT, PTO1_OUT, PTO0_OUT, | ||
205 | PTP7_OUT, PTP6_OUT, PTP5_OUT, PTP4_OUT, | ||
206 | PTP3_OUT, PTP2_OUT, PTP1_OUT, PTP0_OUT, | ||
207 | PTQ6_OUT, PTQ5_OUT, PTQ4_OUT, | ||
208 | PTQ3_OUT, PTQ2_OUT, PTQ1_OUT, PTQ0_OUT, | ||
209 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
210 | PTR3_OUT, PTR2_OUT, PTR1_OUT, PTR0_OUT, | ||
211 | PTS7_OUT, PTS6_OUT, PTS5_OUT, PTS4_OUT, | ||
212 | PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
213 | PTT7_OUT, PTT6_OUT, PTT5_OUT, PTT4_OUT, | ||
214 | PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
215 | PTU7_OUT, PTU6_OUT, PTU5_OUT, PTU4_OUT, | ||
216 | PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
217 | PTV7_OUT, PTV6_OUT, PTV5_OUT, PTV4_OUT, | ||
218 | PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
219 | PTW7_OUT, PTW6_OUT, PTW5_OUT, PTW4_OUT, | ||
220 | PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
221 | PTX7_OUT, PTX6_OUT, PTX5_OUT, PTX4_OUT, | ||
222 | PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
223 | PTY7_OUT, PTY6_OUT, PTY5_OUT, PTY4_OUT, | ||
224 | PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
225 | PTZ7_OUT, PTZ6_OUT, PTZ5_OUT, PTZ4_OUT, | ||
226 | PTZ3_OUT, PTZ2_OUT, PTZ1_OUT, PTZ0_OUT, | ||
227 | PINMUX_OUTPUT_END, | ||
228 | |||
229 | PINMUX_FUNCTION_BEGIN, | ||
230 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
231 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
232 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
233 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
234 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
235 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
236 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
237 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
238 | PTE7_FN, PTE6_FN, PTE5_FN, PTE4_FN, | ||
239 | PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
240 | PTF7_FN, PTF6_FN, PTF5_FN, PTF4_FN, | ||
241 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
242 | PTG7_FN, PTG6_FN, PTG5_FN, PTG4_FN, | ||
243 | PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
244 | PTH7_FN, PTH6_FN, PTH5_FN, PTH4_FN, | ||
245 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
246 | PTI7_FN, PTI6_FN, PTI5_FN, PTI4_FN, | ||
247 | PTI3_FN, PTI2_FN, PTI1_FN, PTI0_FN, | ||
248 | PTJ6_FN, PTJ5_FN, PTJ4_FN, | ||
249 | PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
250 | PTK7_FN, PTK6_FN, PTK5_FN, PTK4_FN, | ||
251 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
252 | PTL6_FN, PTL5_FN, PTL4_FN, | ||
253 | PTL3_FN, PTL2_FN, PTL1_FN, PTL0_FN, | ||
254 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
255 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
256 | PTN6_FN, PTN5_FN, PTN4_FN, | ||
257 | PTN3_FN, PTN2_FN, PTN1_FN, PTN0_FN, | ||
258 | PTO7_FN, PTO6_FN, PTO5_FN, PTO4_FN, | ||
259 | PTO3_FN, PTO2_FN, PTO1_FN, PTO0_FN, | ||
260 | PTP7_FN, PTP6_FN, PTP5_FN, PTP4_FN, | ||
261 | PTP3_FN, PTP2_FN, PTP1_FN, PTP0_FN, | ||
262 | PTQ6_FN, PTQ5_FN, PTQ4_FN, | ||
263 | PTQ3_FN, PTQ2_FN, PTQ1_FN, PTQ0_FN, | ||
264 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
265 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
266 | PTS7_FN, PTS6_FN, PTS5_FN, PTS4_FN, | ||
267 | PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
268 | PTT7_FN, PTT6_FN, PTT5_FN, PTT4_FN, | ||
269 | PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
270 | PTU7_FN, PTU6_FN, PTU5_FN, PTU4_FN, | ||
271 | PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
272 | PTV7_FN, PTV6_FN, PTV5_FN, PTV4_FN, | ||
273 | PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
274 | PTW7_FN, PTW6_FN, PTW5_FN, PTW4_FN, | ||
275 | PTW3_FN, PTW2_FN, PTW1_FN, PTW0_FN, | ||
276 | PTX7_FN, PTX6_FN, PTX5_FN, PTX4_FN, | ||
277 | PTX3_FN, PTX2_FN, PTX1_FN, PTX0_FN, | ||
278 | PTY7_FN, PTY6_FN, PTY5_FN, PTY4_FN, | ||
279 | PTY3_FN, PTY2_FN, PTY1_FN, PTY0_FN, | ||
280 | PTZ7_FN, PTZ6_FN, PTZ5_FN, PTZ4_FN, | ||
281 | PTZ3_FN, PTZ2_FN, PTZ1_FN, PTZ0_FN, | ||
282 | |||
283 | PS0_15_FN1, PS0_15_FN2, | ||
284 | PS0_14_FN1, PS0_14_FN2, | ||
285 | PS0_13_FN1, PS0_13_FN2, | ||
286 | PS0_12_FN1, PS0_12_FN2, | ||
287 | PS0_11_FN1, PS0_11_FN2, | ||
288 | PS0_10_FN1, PS0_10_FN2, | ||
289 | PS0_9_FN1, PS0_9_FN2, | ||
290 | PS0_8_FN1, PS0_8_FN2, | ||
291 | PS0_7_FN1, PS0_7_FN2, | ||
292 | PS0_6_FN1, PS0_6_FN2, | ||
293 | PS0_5_FN1, PS0_5_FN2, | ||
294 | PS0_4_FN1, PS0_4_FN2, | ||
295 | PS0_3_FN1, PS0_3_FN2, | ||
296 | PS0_2_FN1, PS0_2_FN2, | ||
297 | |||
298 | PS1_10_FN1, PS1_10_FN2, | ||
299 | PS1_9_FN1, PS1_9_FN2, | ||
300 | PS1_8_FN1, PS1_8_FN2, | ||
301 | PS1_2_FN1, PS1_2_FN2, | ||
302 | |||
303 | PS2_13_FN1, PS2_13_FN2, | ||
304 | PS2_12_FN1, PS2_12_FN2, | ||
305 | PS2_7_FN1, PS2_7_FN2, | ||
306 | PS2_6_FN1, PS2_6_FN2, | ||
307 | PS2_5_FN1, PS2_5_FN2, | ||
308 | PS2_4_FN1, PS2_4_FN2, | ||
309 | PS2_2_FN1, PS2_2_FN2, | ||
310 | |||
311 | PS3_15_FN1, PS3_15_FN2, | ||
312 | PS3_14_FN1, PS3_14_FN2, | ||
313 | PS3_13_FN1, PS3_13_FN2, | ||
314 | PS3_12_FN1, PS3_12_FN2, | ||
315 | PS3_11_FN1, PS3_11_FN2, | ||
316 | PS3_10_FN1, PS3_10_FN2, | ||
317 | PS3_9_FN1, PS3_9_FN2, | ||
318 | PS3_8_FN1, PS3_8_FN2, | ||
319 | PS3_7_FN1, PS3_7_FN2, | ||
320 | PS3_2_FN1, PS3_2_FN2, | ||
321 | PS3_1_FN1, PS3_1_FN2, | ||
322 | |||
323 | PS4_14_FN1, PS4_14_FN2, | ||
324 | PS4_13_FN1, PS4_13_FN2, | ||
325 | PS4_12_FN1, PS4_12_FN2, | ||
326 | PS4_10_FN1, PS4_10_FN2, | ||
327 | PS4_9_FN1, PS4_9_FN2, | ||
328 | PS4_8_FN1, PS4_8_FN2, | ||
329 | PS4_4_FN1, PS4_4_FN2, | ||
330 | PS4_3_FN1, PS4_3_FN2, | ||
331 | PS4_2_FN1, PS4_2_FN2, | ||
332 | PS4_1_FN1, PS4_1_FN2, | ||
333 | PS4_0_FN1, PS4_0_FN2, | ||
334 | |||
335 | PS5_11_FN1, PS5_11_FN2, | ||
336 | PS5_10_FN1, PS5_10_FN2, | ||
337 | PS5_9_FN1, PS5_9_FN2, | ||
338 | PS5_8_FN1, PS5_8_FN2, | ||
339 | PS5_7_FN1, PS5_7_FN2, | ||
340 | PS5_6_FN1, PS5_6_FN2, | ||
341 | PS5_5_FN1, PS5_5_FN2, | ||
342 | PS5_4_FN1, PS5_4_FN2, | ||
343 | PS5_3_FN1, PS5_3_FN2, | ||
344 | PS5_2_FN1, PS5_2_FN2, | ||
345 | |||
346 | PS6_15_FN1, PS6_15_FN2, | ||
347 | PS6_14_FN1, PS6_14_FN2, | ||
348 | PS6_13_FN1, PS6_13_FN2, | ||
349 | PS6_12_FN1, PS6_12_FN2, | ||
350 | PS6_11_FN1, PS6_11_FN2, | ||
351 | PS6_10_FN1, PS6_10_FN2, | ||
352 | PS6_9_FN1, PS6_9_FN2, | ||
353 | PS6_8_FN1, PS6_8_FN2, | ||
354 | PS6_7_FN1, PS6_7_FN2, | ||
355 | PS6_6_FN1, PS6_6_FN2, | ||
356 | PS6_5_FN1, PS6_5_FN2, | ||
357 | PS6_4_FN1, PS6_4_FN2, | ||
358 | PS6_3_FN1, PS6_3_FN2, | ||
359 | PS6_2_FN1, PS6_2_FN2, | ||
360 | PS6_1_FN1, PS6_1_FN2, | ||
361 | PS6_0_FN1, PS6_0_FN2, | ||
362 | |||
363 | PS7_15_FN1, PS7_15_FN2, | ||
364 | PS7_14_FN1, PS7_14_FN2, | ||
365 | PS7_13_FN1, PS7_13_FN2, | ||
366 | PS7_12_FN1, PS7_12_FN2, | ||
367 | PS7_11_FN1, PS7_11_FN2, | ||
368 | PS7_10_FN1, PS7_10_FN2, | ||
369 | PS7_9_FN1, PS7_9_FN2, | ||
370 | PS7_8_FN1, PS7_8_FN2, | ||
371 | PS7_7_FN1, PS7_7_FN2, | ||
372 | PS7_6_FN1, PS7_6_FN2, | ||
373 | PS7_5_FN1, PS7_5_FN2, | ||
374 | PS7_4_FN1, PS7_4_FN2, | ||
375 | |||
376 | PS8_15_FN1, PS8_15_FN2, | ||
377 | PS8_14_FN1, PS8_14_FN2, | ||
378 | PS8_13_FN1, PS8_13_FN2, | ||
379 | PS8_12_FN1, PS8_12_FN2, | ||
380 | PS8_11_FN1, PS8_11_FN2, | ||
381 | PS8_10_FN1, PS8_10_FN2, | ||
382 | PS8_9_FN1, PS8_9_FN2, | ||
383 | PS8_8_FN1, PS8_8_FN2, | ||
384 | PINMUX_FUNCTION_END, | ||
385 | |||
386 | PINMUX_MARK_BEGIN, | ||
387 | /* PTA (mobule: LBSC, RGMII) */ | ||
388 | BS_MARK, RDWR_MARK, WE1_MARK, RDY_MARK, | ||
389 | ET0_MDC_MARK, ET0_MDIO_MARK, ET1_MDC_MARK, ET1_MDIO_MARK, | ||
390 | |||
391 | /* PTB (mobule: INTC, ONFI, TMU) */ | ||
392 | IRQ15_MARK, IRQ14_MARK, IRQ13_MARK, IRQ12_MARK, | ||
393 | IRQ11_MARK, IRQ10_MARK, IRQ9_MARK, IRQ8_MARK, | ||
394 | ON_NRE_MARK, ON_NWE_MARK, ON_NWP_MARK, ON_NCE0_MARK, | ||
395 | ON_R_B0_MARK, ON_ALE_MARK, ON_CLE_MARK, TCLK_MARK, | ||
396 | |||
397 | /* PTC (mobule: IRQ, PWMU) */ | ||
398 | IRQ7_MARK, IRQ6_MARK, IRQ5_MARK, IRQ4_MARK, | ||
399 | IRQ3_MARK, IRQ2_MARK, IRQ1_MARK, IRQ0_MARK, | ||
400 | PWMU0_MARK, PWMU1_MARK, PWMU2_MARK, PWMU3_MARK, | ||
401 | PWMU4_MARK, PWMU5_MARK, | ||
402 | |||
403 | /* PTD (mobule: SPI0, DMAC) */ | ||
404 | SP0_MOSI_MARK, SP0_MISO_MARK, SP0_SCK_MARK, SP0_SCK_FB_MARK, | ||
405 | SP0_SS0_MARK, SP0_SS1_MARK, SP0_SS2_MARK, SP0_SS3_MARK, | ||
406 | DREQ0_MARK, DACK0_MARK, TEND0_MARK, | ||
407 | |||
408 | /* PTE (mobule: RMII) */ | ||
409 | RMII0_CRS_DV_MARK, RMII0_TXD1_MARK, | ||
410 | RMII0_TXD0_MARK, RMII0_TXEN_MARK, | ||
411 | RMII0_REFCLK_MARK, RMII0_RXD1_MARK, | ||
412 | RMII0_RXD0_MARK, RMII0_RX_ER_MARK, | ||
413 | |||
414 | /* PTF (mobule: RMII, SerMux) */ | ||
415 | RMII1_CRS_DV_MARK, RMII1_TXD1_MARK, | ||
416 | RMII1_TXD0_MARK, RMII1_TXEN_MARK, | ||
417 | RMII1_REFCLK_MARK, RMII1_RXD1_MARK, | ||
418 | RMII1_RXD0_MARK, RMII1_RX_ER_MARK, | ||
419 | RAC_RI_MARK, | ||
420 | |||
421 | /* PTG (mobule: system, LBSC, LPC, WDT, LPC, eMMC) */ | ||
422 | BOOTFMS_MARK, BOOTWP_MARK, A25_MARK, A24_MARK, | ||
423 | SERIRQ_MARK, WDTOVF_MARK, LPCPD_MARK, LDRQ_MARK, | ||
424 | MMCCLK_MARK, MMCCMD_MARK, | ||
425 | |||
426 | /* PTH (mobule: SPI1, LPC, DMAC, ADC) */ | ||
427 | SP1_MOSI_MARK, SP1_MISO_MARK, SP1_SCK_MARK, SP1_SCK_FB_MARK, | ||
428 | SP1_SS0_MARK, SP1_SS1_MARK, WP_MARK, FMS0_MARK, | ||
429 | TEND1_MARK, DREQ1_MARK, DACK1_MARK, ADTRG1_MARK, | ||
430 | ADTRG0_MARK, | ||
431 | |||
432 | /* PTI (mobule: LBSC, SDHI) */ | ||
433 | D15_MARK, D14_MARK, D13_MARK, D12_MARK, | ||
434 | D11_MARK, D10_MARK, D9_MARK, D8_MARK, | ||
435 | SD_WP_MARK, SD_CD_MARK, SD_CLK_MARK, SD_CMD_MARK, | ||
436 | SD_D3_MARK, SD_D2_MARK, SD_D1_MARK, SD_D0_MARK, | ||
437 | |||
438 | /* PTJ (mobule: SCIF234) */ | ||
439 | RTS3_MARK, CTS3_MARK, TXD3_MARK, RXD3_MARK, | ||
440 | RTS4_MARK, RXD4_MARK, TXD4_MARK, | ||
441 | |||
442 | /* PTK (mobule: SERMUX, LBSC, SCIF) */ | ||
443 | COM2_TXD_MARK, COM2_RXD_MARK, COM2_RTS_MARK, COM2_CTS_MARK, | ||
444 | COM2_DTR_MARK, COM2_DSR_MARK, COM2_DCD_MARK, CLKOUT_MARK, | ||
445 | SCK2_MARK, SCK4_MARK, SCK3_MARK, | ||
446 | |||
447 | /* PTL (mobule: SERMUX, SCIF, LBSC, AUD) */ | ||
448 | RAC_RXD_MARK, RAC_RTS_MARK, RAC_CTS_MARK, RAC_DTR_MARK, | ||
449 | RAC_DSR_MARK, RAC_DCD_MARK, RAC_TXD_MARK, RXD2_MARK, | ||
450 | CS5_MARK, CS6_MARK, AUDSYNC_MARK, AUDCK_MARK, | ||
451 | TXD2_MARK, | ||
452 | |||
453 | /* PTM (mobule: LBSC, IIC) */ | ||
454 | CS4_MARK, RD_MARK, WE0_MARK, CS0_MARK, | ||
455 | SDA6_MARK, SCL6_MARK, SDA7_MARK, SCL7_MARK, | ||
456 | |||
457 | /* PTN (mobule: USB, JMC, SGPIO, WDT) */ | ||
458 | VBUS_EN_MARK, VBUS_OC_MARK, JMCTCK_MARK, JMCTMS_MARK, | ||
459 | JMCTDO_MARK, JMCTDI_MARK, JMCTRST_MARK, | ||
460 | SGPIO1_CLK_MARK, SGPIO1_LOAD_MARK, SGPIO1_DI_MARK, | ||
461 | SGPIO1_DO_MARK, SUB_CLKIN_MARK, | ||
462 | |||
463 | /* PTO (mobule: SGPIO, SerMux) */ | ||
464 | SGPIO0_CLK_MARK, SGPIO0_LOAD_MARK, SGPIO0_DI_MARK, | ||
465 | SGPIO0_DO_MARK, SGPIO2_CLK_MARK, SGPIO2_LOAD_MARK, | ||
466 | SGPIO2_DI_MARK, SGPIO2_DO_MARK, | ||
467 | COM1_TXD_MARK, COM1_RXD_MARK, COM1_RTS_MARK, COM1_CTS_MARK, | ||
468 | |||
469 | /* PTQ (mobule: LPC) */ | ||
470 | LAD3_MARK, LAD2_MARK, LAD1_MARK, LAD0_MARK, | ||
471 | LFRAME_MARK, LRESET_MARK, LCLK_MARK, | ||
472 | |||
473 | /* PTR (mobule: GRA, IIC) */ | ||
474 | DDC3_MARK, DDC2_MARK, SDA2_MARK, SCL2_MARK, | ||
475 | SDA1_MARK, SCL1_MARK, SDA0_MARK, SCL0_MARK, | ||
476 | SDA8_MARK, SCL8_MARK, | ||
477 | |||
478 | /* PTS (mobule: GRA, IIC) */ | ||
479 | DDC1_MARK, DDC0_MARK, SDA5_MARK, SCL5_MARK, | ||
480 | SDA4_MARK, SCL4_MARK, SDA3_MARK, SCL3_MARK, | ||
481 | SDA9_MARK, SCL9_MARK, | ||
482 | |||
483 | /* PTT (mobule: PWMX, AUD) */ | ||
484 | PWMX7_MARK, PWMX6_MARK, PWMX5_MARK, PWMX4_MARK, | ||
485 | PWMX3_MARK, PWMX2_MARK, PWMX1_MARK, PWMX0_MARK, | ||
486 | AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK, | ||
487 | STATUS1_MARK, STATUS0_MARK, | ||
488 | |||
489 | /* PTU (mobule: LPC, APM) */ | ||
490 | LGPIO7_MARK, LGPIO6_MARK, LGPIO5_MARK, LGPIO4_MARK, | ||
491 | LGPIO3_MARK, LGPIO2_MARK, LGPIO1_MARK, LGPIO0_MARK, | ||
492 | APMONCTL_O_MARK, APMPWBTOUT_O_MARK, APMSCI_O_MARK, | ||
493 | APMVDDON_MARK, APMSLPBTN_MARK, APMPWRBTN_MARK, APMS5N_MARK, | ||
494 | APMS3N_MARK, | ||
495 | |||
496 | /* PTV (mobule: LBSC, SerMux, R-SPI, EVC, GRA) */ | ||
497 | A23_MARK, A22_MARK, A21_MARK, A20_MARK, | ||
498 | A19_MARK, A18_MARK, A17_MARK, A16_MARK, | ||
499 | COM2_RI_MARK, R_SPI_MOSI_MARK, R_SPI_MISO_MARK, | ||
500 | R_SPI_RSPCK_MARK, R_SPI_SSL0_MARK, R_SPI_SSL1_MARK, | ||
501 | EVENT7_MARK, EVENT6_MARK, VBIOS_DI_MARK, VBIOS_DO_MARK, | ||
502 | VBIOS_CLK_MARK, VBIOS_CS_MARK, | ||
503 | |||
504 | /* PTW (mobule: LBSC, EVC, SCIF) */ | ||
505 | A15_MARK, A14_MARK, A13_MARK, A12_MARK, | ||
506 | A11_MARK, A10_MARK, A9_MARK, A8_MARK, | ||
507 | EVENT5_MARK, EVENT4_MARK, EVENT3_MARK, EVENT2_MARK, | ||
508 | EVENT1_MARK, EVENT0_MARK, CTS4_MARK, CTS2_MARK, | ||
509 | |||
510 | /* PTX (mobule: LBSC, SCIF, SIM) */ | ||
511 | A7_MARK, A6_MARK, A5_MARK, A4_MARK, | ||
512 | A3_MARK, A2_MARK, A1_MARK, A0_MARK, | ||
513 | RTS2_MARK, SIM_D_MARK, SIM_CLK_MARK, SIM_RST_MARK, | ||
514 | |||
515 | /* PTY (mobule: LBSC) */ | ||
516 | D7_MARK, D6_MARK, D5_MARK, D4_MARK, | ||
517 | D3_MARK, D2_MARK, D1_MARK, D0_MARK, | ||
518 | |||
519 | /* PTZ (mobule: eMMC, ONFI) */ | ||
520 | MMCDAT7_MARK, MMCDAT6_MARK, MMCDAT5_MARK, MMCDAT4_MARK, | ||
521 | MMCDAT3_MARK, MMCDAT2_MARK, MMCDAT1_MARK, MMCDAT0_MARK, | ||
522 | ON_DQ7_MARK, ON_DQ6_MARK, ON_DQ5_MARK, ON_DQ4_MARK, | ||
523 | ON_DQ3_MARK, ON_DQ2_MARK, ON_DQ1_MARK, ON_DQ0_MARK, | ||
524 | |||
525 | PINMUX_MARK_END, | ||
526 | }; | ||
527 | |||
528 | static pinmux_enum_t pinmux_data[] = { | ||
529 | /* PTA GPIO */ | ||
530 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT), | ||
531 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT), | ||
532 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT), | ||
533 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT), | ||
534 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT), | ||
535 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT), | ||
536 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT), | ||
537 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT), | ||
538 | |||
539 | /* PTB GPIO */ | ||
540 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT), | ||
541 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT), | ||
542 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT), | ||
543 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT), | ||
544 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT), | ||
545 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT), | ||
546 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT), | ||
547 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT), | ||
548 | |||
549 | /* PTC GPIO */ | ||
550 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT), | ||
551 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT), | ||
552 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT), | ||
553 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT), | ||
554 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT), | ||
555 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT), | ||
556 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT), | ||
557 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT), | ||
558 | |||
559 | /* PTD GPIO */ | ||
560 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT), | ||
561 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT), | ||
562 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT), | ||
563 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT), | ||
564 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT), | ||
565 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT), | ||
566 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT), | ||
567 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT), | ||
568 | |||
569 | /* PTE GPIO */ | ||
570 | PINMUX_DATA(PTE7_DATA, PTE7_IN, PTE7_OUT), | ||
571 | PINMUX_DATA(PTE6_DATA, PTE6_IN, PTE6_OUT), | ||
572 | PINMUX_DATA(PTE5_DATA, PTE5_IN, PTE5_OUT), | ||
573 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT), | ||
574 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT), | ||
575 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT), | ||
576 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT), | ||
577 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT), | ||
578 | |||
579 | /* PTF GPIO */ | ||
580 | PINMUX_DATA(PTF7_DATA, PTF7_IN, PTF7_OUT), | ||
581 | PINMUX_DATA(PTF6_DATA, PTF6_IN, PTF6_OUT), | ||
582 | PINMUX_DATA(PTF5_DATA, PTF5_IN, PTF5_OUT), | ||
583 | PINMUX_DATA(PTF4_DATA, PTF4_IN, PTF4_OUT), | ||
584 | PINMUX_DATA(PTF3_DATA, PTF3_IN, PTF3_OUT), | ||
585 | PINMUX_DATA(PTF2_DATA, PTF2_IN, PTF2_OUT), | ||
586 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_OUT), | ||
587 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT), | ||
588 | |||
589 | /* PTG GPIO */ | ||
590 | PINMUX_DATA(PTG7_DATA, PTG7_IN, PTG7_OUT), | ||
591 | PINMUX_DATA(PTG6_DATA, PTG6_IN, PTG6_OUT), | ||
592 | PINMUX_DATA(PTG5_DATA, PTG5_IN, PTG5_OUT), | ||
593 | PINMUX_DATA(PTG4_DATA, PTG4_IN, PTG4_OUT), | ||
594 | PINMUX_DATA(PTG3_DATA, PTG3_IN, PTG3_OUT), | ||
595 | PINMUX_DATA(PTG2_DATA, PTG2_IN, PTG2_OUT), | ||
596 | PINMUX_DATA(PTG1_DATA, PTG1_IN, PTG1_OUT), | ||
597 | PINMUX_DATA(PTG0_DATA, PTG0_IN, PTG0_OUT), | ||
598 | |||
599 | /* PTH GPIO */ | ||
600 | PINMUX_DATA(PTH7_DATA, PTH7_IN, PTH7_OUT), | ||
601 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT), | ||
602 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT), | ||
603 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT), | ||
604 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT), | ||
605 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT), | ||
606 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT), | ||
607 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT), | ||
608 | |||
609 | /* PTI GPIO */ | ||
610 | PINMUX_DATA(PTI7_DATA, PTI7_IN, PTI7_OUT), | ||
611 | PINMUX_DATA(PTI6_DATA, PTI6_IN, PTI6_OUT), | ||
612 | PINMUX_DATA(PTI5_DATA, PTI5_IN, PTI5_OUT), | ||
613 | PINMUX_DATA(PTI4_DATA, PTI4_IN, PTI4_OUT), | ||
614 | PINMUX_DATA(PTI3_DATA, PTI3_IN, PTI3_OUT), | ||
615 | PINMUX_DATA(PTI2_DATA, PTI2_IN, PTI2_OUT), | ||
616 | PINMUX_DATA(PTI1_DATA, PTI1_IN, PTI1_OUT), | ||
617 | PINMUX_DATA(PTI0_DATA, PTI0_IN, PTI0_OUT), | ||
618 | |||
619 | /* PTJ GPIO */ | ||
620 | PINMUX_DATA(PTJ6_DATA, PTJ6_IN, PTJ6_OUT), | ||
621 | PINMUX_DATA(PTJ5_DATA, PTJ5_IN, PTJ5_OUT), | ||
622 | PINMUX_DATA(PTJ4_DATA, PTJ4_IN, PTJ4_OUT), | ||
623 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT), | ||
624 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT), | ||
625 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT), | ||
626 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT), | ||
627 | |||
628 | /* PTK GPIO */ | ||
629 | PINMUX_DATA(PTK7_DATA, PTK7_IN, PTK7_OUT), | ||
630 | PINMUX_DATA(PTK6_DATA, PTK6_IN, PTK6_OUT), | ||
631 | PINMUX_DATA(PTK5_DATA, PTK5_IN, PTK5_OUT), | ||
632 | PINMUX_DATA(PTK4_DATA, PTK4_IN, PTK4_OUT), | ||
633 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT), | ||
634 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT), | ||
635 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT), | ||
636 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT), | ||
637 | |||
638 | /* PTL GPIO */ | ||
639 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT), | ||
640 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT), | ||
641 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT), | ||
642 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT), | ||
643 | PINMUX_DATA(PTL2_DATA, PTL2_IN, PTL2_OUT), | ||
644 | PINMUX_DATA(PTL1_DATA, PTL1_IN, PTL1_OUT), | ||
645 | PINMUX_DATA(PTL0_DATA, PTL0_IN, PTL0_OUT), | ||
646 | |||
647 | /* PTM GPIO */ | ||
648 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT), | ||
649 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT), | ||
650 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT), | ||
651 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT), | ||
652 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT), | ||
653 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT), | ||
654 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT), | ||
655 | |||
656 | /* PTN GPIO */ | ||
657 | PINMUX_DATA(PTN6_DATA, PTN6_IN, PTN6_OUT), | ||
658 | PINMUX_DATA(PTN5_DATA, PTN5_IN, PTN5_OUT), | ||
659 | PINMUX_DATA(PTN4_DATA, PTN4_IN, PTN4_OUT), | ||
660 | PINMUX_DATA(PTN3_DATA, PTN3_IN, PTN3_OUT), | ||
661 | PINMUX_DATA(PTN2_DATA, PTN2_IN, PTN2_OUT), | ||
662 | PINMUX_DATA(PTN1_DATA, PTN1_IN, PTN1_OUT), | ||
663 | PINMUX_DATA(PTN0_DATA, PTN0_IN, PTN0_OUT), | ||
664 | |||
665 | /* PTO GPIO */ | ||
666 | PINMUX_DATA(PTO7_DATA, PTO7_IN, PTO7_OUT), | ||
667 | PINMUX_DATA(PTO6_DATA, PTO6_IN, PTO6_OUT), | ||
668 | PINMUX_DATA(PTO5_DATA, PTO5_IN, PTO5_OUT), | ||
669 | PINMUX_DATA(PTO4_DATA, PTO4_IN, PTO4_OUT), | ||
670 | PINMUX_DATA(PTO3_DATA, PTO3_IN, PTO3_OUT), | ||
671 | PINMUX_DATA(PTO2_DATA, PTO2_IN, PTO2_OUT), | ||
672 | PINMUX_DATA(PTO1_DATA, PTO1_IN, PTO1_OUT), | ||
673 | PINMUX_DATA(PTO0_DATA, PTO0_IN, PTO0_OUT), | ||
674 | |||
675 | /* PTQ GPIO */ | ||
676 | PINMUX_DATA(PTQ6_DATA, PTQ6_IN, PTQ6_OUT), | ||
677 | PINMUX_DATA(PTQ5_DATA, PTQ5_IN, PTQ5_OUT), | ||
678 | PINMUX_DATA(PTQ4_DATA, PTQ4_IN, PTQ4_OUT), | ||
679 | PINMUX_DATA(PTQ3_DATA, PTQ3_IN, PTQ3_OUT), | ||
680 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN, PTQ2_OUT), | ||
681 | PINMUX_DATA(PTQ1_DATA, PTQ1_IN, PTQ1_OUT), | ||
682 | PINMUX_DATA(PTQ0_DATA, PTQ0_IN, PTQ0_OUT), | ||
683 | |||
684 | /* PTR GPIO */ | ||
685 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT), | ||
686 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT), | ||
687 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT), | ||
688 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT), | ||
689 | PINMUX_DATA(PTR3_DATA, PTR3_IN, PTR3_OUT), | ||
690 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_OUT), | ||
691 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT), | ||
692 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT), | ||
693 | |||
694 | /* PTS GPIO */ | ||
695 | PINMUX_DATA(PTS7_DATA, PTS7_IN, PTS7_OUT), | ||
696 | PINMUX_DATA(PTS6_DATA, PTS6_IN, PTS6_OUT), | ||
697 | PINMUX_DATA(PTS5_DATA, PTS5_IN, PTS5_OUT), | ||
698 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT), | ||
699 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT), | ||
700 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT), | ||
701 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT), | ||
702 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT), | ||
703 | |||
704 | /* PTT GPIO */ | ||
705 | PINMUX_DATA(PTT7_DATA, PTT7_IN, PTT7_OUT), | ||
706 | PINMUX_DATA(PTT6_DATA, PTT6_IN, PTT6_OUT), | ||
707 | PINMUX_DATA(PTT5_DATA, PTT5_IN, PTT5_OUT), | ||
708 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT), | ||
709 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT), | ||
710 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT), | ||
711 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT), | ||
712 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT), | ||
713 | |||
714 | /* PTU GPIO */ | ||
715 | PINMUX_DATA(PTU7_DATA, PTU7_IN, PTU7_OUT), | ||
716 | PINMUX_DATA(PTU6_DATA, PTU6_IN, PTU6_OUT), | ||
717 | PINMUX_DATA(PTU5_DATA, PTU5_IN, PTU5_OUT), | ||
718 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT), | ||
719 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT), | ||
720 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT), | ||
721 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT), | ||
722 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT), | ||
723 | |||
724 | /* PTV GPIO */ | ||
725 | PINMUX_DATA(PTV7_DATA, PTV7_IN, PTV7_OUT), | ||
726 | PINMUX_DATA(PTV6_DATA, PTV6_IN, PTV6_OUT), | ||
727 | PINMUX_DATA(PTV5_DATA, PTV5_IN, PTV5_OUT), | ||
728 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT), | ||
729 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT), | ||
730 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT), | ||
731 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT), | ||
732 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT), | ||
733 | |||
734 | /* PTW GPIO */ | ||
735 | PINMUX_DATA(PTW7_DATA, PTW7_IN, PTW7_OUT), | ||
736 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_OUT), | ||
737 | PINMUX_DATA(PTW5_DATA, PTW5_IN, PTW5_OUT), | ||
738 | PINMUX_DATA(PTW4_DATA, PTW4_IN, PTW4_OUT), | ||
739 | PINMUX_DATA(PTW3_DATA, PTW3_IN, PTW3_OUT), | ||
740 | PINMUX_DATA(PTW2_DATA, PTW2_IN, PTW2_OUT), | ||
741 | PINMUX_DATA(PTW1_DATA, PTW1_IN, PTW1_OUT), | ||
742 | PINMUX_DATA(PTW0_DATA, PTW0_IN, PTW0_OUT), | ||
743 | |||
744 | /* PTX GPIO */ | ||
745 | PINMUX_DATA(PTX7_DATA, PTX7_IN, PTX7_OUT), | ||
746 | PINMUX_DATA(PTX6_DATA, PTX6_IN, PTX6_OUT), | ||
747 | PINMUX_DATA(PTX5_DATA, PTX5_IN, PTX5_OUT), | ||
748 | PINMUX_DATA(PTX4_DATA, PTX4_IN, PTX4_OUT), | ||
749 | PINMUX_DATA(PTX3_DATA, PTX3_IN, PTX3_OUT), | ||
750 | PINMUX_DATA(PTX2_DATA, PTX2_IN, PTX2_OUT), | ||
751 | PINMUX_DATA(PTX1_DATA, PTX1_IN, PTX1_OUT), | ||
752 | PINMUX_DATA(PTX0_DATA, PTX0_IN, PTX0_OUT), | ||
753 | |||
754 | /* PTY GPIO */ | ||
755 | PINMUX_DATA(PTY7_DATA, PTY7_IN, PTY7_OUT), | ||
756 | PINMUX_DATA(PTY6_DATA, PTY6_IN, PTY6_OUT), | ||
757 | PINMUX_DATA(PTY5_DATA, PTY5_IN, PTY5_OUT), | ||
758 | PINMUX_DATA(PTY4_DATA, PTY4_IN, PTY4_OUT), | ||
759 | PINMUX_DATA(PTY3_DATA, PTY3_IN, PTY3_OUT), | ||
760 | PINMUX_DATA(PTY2_DATA, PTY2_IN, PTY2_OUT), | ||
761 | PINMUX_DATA(PTY1_DATA, PTY1_IN, PTY1_OUT), | ||
762 | PINMUX_DATA(PTY0_DATA, PTY0_IN, PTY0_OUT), | ||
763 | |||
764 | /* PTZ GPIO */ | ||
765 | PINMUX_DATA(PTZ7_DATA, PTZ7_IN, PTZ7_OUT), | ||
766 | PINMUX_DATA(PTZ6_DATA, PTZ6_IN, PTZ6_OUT), | ||
767 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_OUT), | ||
768 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_OUT), | ||
769 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_OUT), | ||
770 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_OUT), | ||
771 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_OUT), | ||
772 | PINMUX_DATA(PTZ0_DATA, PTZ0_IN, PTZ0_OUT), | ||
773 | |||
774 | /* PTA FN */ | ||
775 | PINMUX_DATA(BS_MARK, PTA7_FN), | ||
776 | PINMUX_DATA(RDWR_MARK, PTA6_FN), | ||
777 | PINMUX_DATA(WE1_MARK, PTA5_FN), | ||
778 | PINMUX_DATA(RDY_MARK, PTA4_FN), | ||
779 | PINMUX_DATA(ET0_MDC_MARK, PTA3_FN), | ||
780 | PINMUX_DATA(ET0_MDIO_MARK, PTA2_FN), | ||
781 | PINMUX_DATA(ET1_MDC_MARK, PTA1_FN), | ||
782 | PINMUX_DATA(ET1_MDIO_MARK, PTA0_FN), | ||
783 | |||
784 | /* PTB FN */ | ||
785 | PINMUX_DATA(IRQ15_MARK, PS0_15_FN1, PTB7_FN), | ||
786 | PINMUX_DATA(ON_NRE_MARK, PS0_15_FN2, PTB7_FN), | ||
787 | PINMUX_DATA(IRQ14_MARK, PS0_14_FN1, PTB6_FN), | ||
788 | PINMUX_DATA(ON_NWE_MARK, PS0_14_FN2, PTB6_FN), | ||
789 | PINMUX_DATA(IRQ13_MARK, PS0_13_FN1, PTB5_FN), | ||
790 | PINMUX_DATA(ON_NWP_MARK, PS0_13_FN2, PTB5_FN), | ||
791 | PINMUX_DATA(IRQ12_MARK, PS0_12_FN1, PTB4_FN), | ||
792 | PINMUX_DATA(ON_NCE0_MARK, PS0_12_FN2, PTB4_FN), | ||
793 | PINMUX_DATA(IRQ11_MARK, PS0_11_FN1, PTB3_FN), | ||
794 | PINMUX_DATA(ON_R_B0_MARK, PS0_11_FN2, PTB3_FN), | ||
795 | PINMUX_DATA(IRQ10_MARK, PS0_10_FN1, PTB2_FN), | ||
796 | PINMUX_DATA(ON_ALE_MARK, PS0_10_FN2, PTB2_FN), | ||
797 | PINMUX_DATA(IRQ9_MARK, PS0_9_FN1, PTB1_FN), | ||
798 | PINMUX_DATA(ON_CLE_MARK, PS0_9_FN2, PTB1_FN), | ||
799 | PINMUX_DATA(IRQ8_MARK, PS0_8_FN1, PTB0_FN), | ||
800 | PINMUX_DATA(TCLK_MARK, PS0_8_FN2, PTB0_FN), | ||
801 | |||
802 | /* PTC FN */ | ||
803 | PINMUX_DATA(IRQ7_MARK, PS0_7_FN1, PTC7_FN), | ||
804 | PINMUX_DATA(PWMU0_MARK, PS0_7_FN2, PTC7_FN), | ||
805 | PINMUX_DATA(IRQ6_MARK, PS0_6_FN1, PTC6_FN), | ||
806 | PINMUX_DATA(PWMU1_MARK, PS0_6_FN2, PTC6_FN), | ||
807 | PINMUX_DATA(IRQ5_MARK, PS0_5_FN1, PTC5_FN), | ||
808 | PINMUX_DATA(PWMU2_MARK, PS0_5_FN2, PTC5_FN), | ||
809 | PINMUX_DATA(IRQ4_MARK, PS0_4_FN1, PTC5_FN), | ||
810 | PINMUX_DATA(PWMU3_MARK, PS0_4_FN2, PTC4_FN), | ||
811 | PINMUX_DATA(IRQ3_MARK, PS0_3_FN1, PTC3_FN), | ||
812 | PINMUX_DATA(PWMU4_MARK, PS0_3_FN2, PTC3_FN), | ||
813 | PINMUX_DATA(IRQ2_MARK, PS0_2_FN1, PTC2_FN), | ||
814 | PINMUX_DATA(PWMU5_MARK, PS0_2_FN2, PTC2_FN), | ||
815 | PINMUX_DATA(IRQ1_MARK, PTC1_FN), | ||
816 | PINMUX_DATA(IRQ0_MARK, PTC0_FN), | ||
817 | |||
818 | /* PTD FN */ | ||
819 | PINMUX_DATA(SP0_MOSI_MARK, PTD7_FN), | ||
820 | PINMUX_DATA(SP0_MISO_MARK, PTD6_FN), | ||
821 | PINMUX_DATA(SP0_SCK_MARK, PTD5_FN), | ||
822 | PINMUX_DATA(SP0_SCK_FB_MARK, PTD4_FN), | ||
823 | PINMUX_DATA(SP0_SS0_MARK, PTD3_FN), | ||
824 | PINMUX_DATA(SP0_SS1_MARK, PS1_10_FN1, PTD2_FN), | ||
825 | PINMUX_DATA(DREQ0_MARK, PS1_10_FN2, PTD2_FN), | ||
826 | PINMUX_DATA(SP0_SS2_MARK, PS1_9_FN1, PTD1_FN), | ||
827 | PINMUX_DATA(DACK0_MARK, PS1_9_FN2, PTD1_FN), | ||
828 | PINMUX_DATA(SP0_SS3_MARK, PS1_8_FN1, PTD0_FN), | ||
829 | PINMUX_DATA(TEND0_MARK, PS1_8_FN2, PTD0_FN), | ||
830 | |||
831 | /* PTE FN */ | ||
832 | PINMUX_DATA(RMII0_CRS_DV_MARK, PTE7_FN), | ||
833 | PINMUX_DATA(RMII0_TXD1_MARK, PTE6_FN), | ||
834 | PINMUX_DATA(RMII0_TXD0_MARK, PTE5_FN), | ||
835 | PINMUX_DATA(RMII0_TXEN_MARK, PTE4_FN), | ||
836 | PINMUX_DATA(RMII0_REFCLK_MARK, PTE3_FN), | ||
837 | PINMUX_DATA(RMII0_RXD1_MARK, PTE2_FN), | ||
838 | PINMUX_DATA(RMII0_RXD0_MARK, PTE1_FN), | ||
839 | PINMUX_DATA(RMII0_RX_ER_MARK, PTE0_FN), | ||
840 | |||
841 | /* PTF FN */ | ||
842 | PINMUX_DATA(RMII1_CRS_DV_MARK, PTF7_FN), | ||
843 | PINMUX_DATA(RMII1_TXD1_MARK, PTF6_FN), | ||
844 | PINMUX_DATA(RMII1_TXD0_MARK, PTF5_FN), | ||
845 | PINMUX_DATA(RMII1_TXEN_MARK, PTF4_FN), | ||
846 | PINMUX_DATA(RMII1_REFCLK_MARK, PTF3_FN), | ||
847 | PINMUX_DATA(RMII1_RXD1_MARK, PS1_2_FN1, PTF2_FN), | ||
848 | PINMUX_DATA(RAC_RI_MARK, PS1_2_FN2, PTF2_FN), | ||
849 | PINMUX_DATA(RMII1_RXD0_MARK, PTF1_FN), | ||
850 | PINMUX_DATA(RMII1_RX_ER_MARK, PTF0_FN), | ||
851 | |||
852 | /* PTG FN */ | ||
853 | PINMUX_DATA(BOOTFMS_MARK, PTG7_FN), | ||
854 | PINMUX_DATA(BOOTWP_MARK, PTG6_FN), | ||
855 | PINMUX_DATA(A25_MARK, PS2_13_FN1, PTG5_FN), | ||
856 | PINMUX_DATA(MMCCLK_MARK, PS2_13_FN2, PTG5_FN), | ||
857 | PINMUX_DATA(A24_MARK, PS2_12_FN1, PTG4_FN), | ||
858 | PINMUX_DATA(MMCCMD_MARK, PS2_12_FN2, PTG4_FN), | ||
859 | PINMUX_DATA(SERIRQ_MARK, PTG3_FN), | ||
860 | PINMUX_DATA(WDTOVF_MARK, PTG2_FN), | ||
861 | PINMUX_DATA(LPCPD_MARK, PTG1_FN), | ||
862 | PINMUX_DATA(LDRQ_MARK, PTG0_FN), | ||
863 | |||
864 | /* PTH FN */ | ||
865 | PINMUX_DATA(SP1_MOSI_MARK, PS2_7_FN1, PTH7_FN), | ||
866 | PINMUX_DATA(TEND1_MARK, PS2_7_FN2, PTH7_FN), | ||
867 | PINMUX_DATA(SP1_MISO_MARK, PS2_6_FN1, PTH6_FN), | ||
868 | PINMUX_DATA(DREQ1_MARK, PS2_6_FN2, PTH6_FN), | ||
869 | PINMUX_DATA(SP1_SCK_MARK, PS2_5_FN1, PTH5_FN), | ||
870 | PINMUX_DATA(DACK1_MARK, PS2_5_FN2, PTH5_FN), | ||
871 | PINMUX_DATA(SP1_SCK_FB_MARK, PS2_4_FN1, PTH4_FN), | ||
872 | PINMUX_DATA(ADTRG1_MARK, PS2_4_FN2, PTH4_FN), | ||
873 | PINMUX_DATA(SP1_SS0_MARK, PTH3_FN), | ||
874 | PINMUX_DATA(SP1_SS1_MARK, PS2_2_FN1, PTH2_FN), | ||
875 | PINMUX_DATA(ADTRG0_MARK, PS2_2_FN2, PTH2_FN), | ||
876 | PINMUX_DATA(WP_MARK, PTH1_FN), | ||
877 | PINMUX_DATA(FMS0_MARK, PTH0_FN), | ||
878 | |||
879 | /* PTI FN */ | ||
880 | PINMUX_DATA(D15_MARK, PS3_15_FN1, PTI7_FN), | ||
881 | PINMUX_DATA(SD_WP_MARK, PS3_15_FN2, PTI7_FN), | ||
882 | PINMUX_DATA(D14_MARK, PS3_14_FN1, PTI6_FN), | ||
883 | PINMUX_DATA(SD_CD_MARK, PS3_14_FN2, PTI6_FN), | ||
884 | PINMUX_DATA(D13_MARK, PS3_13_FN1, PTI5_FN), | ||
885 | PINMUX_DATA(SD_CLK_MARK, PS3_13_FN2, PTI5_FN), | ||
886 | PINMUX_DATA(D12_MARK, PS3_12_FN1, PTI4_FN), | ||
887 | PINMUX_DATA(SD_CMD_MARK, PS3_12_FN2, PTI4_FN), | ||
888 | PINMUX_DATA(D11_MARK, PS3_11_FN1, PTI3_FN), | ||
889 | PINMUX_DATA(SD_D3_MARK, PS3_11_FN2, PTI3_FN), | ||
890 | PINMUX_DATA(D10_MARK, PS3_10_FN1, PTI2_FN), | ||
891 | PINMUX_DATA(SD_D2_MARK, PS3_10_FN2, PTI2_FN), | ||
892 | PINMUX_DATA(D9_MARK, PS3_9_FN1, PTI1_FN), | ||
893 | PINMUX_DATA(SD_D1_MARK, PS3_9_FN2, PTI1_FN), | ||
894 | PINMUX_DATA(D8_MARK, PS3_8_FN1, PTI0_FN), | ||
895 | PINMUX_DATA(SD_D0_MARK, PS3_8_FN2, PTI0_FN), | ||
896 | |||
897 | /* PTJ FN */ | ||
898 | PINMUX_DATA(RTS3_MARK, PTJ6_FN), | ||
899 | PINMUX_DATA(CTS3_MARK, PTJ5_FN), | ||
900 | PINMUX_DATA(TXD3_MARK, PTJ4_FN), | ||
901 | PINMUX_DATA(RXD3_MARK, PTJ3_FN), | ||
902 | PINMUX_DATA(RTS4_MARK, PTJ2_FN), | ||
903 | PINMUX_DATA(RXD4_MARK, PTJ1_FN), | ||
904 | PINMUX_DATA(TXD4_MARK, PTJ0_FN), | ||
905 | |||
906 | /* PTK FN */ | ||
907 | PINMUX_DATA(COM2_TXD_MARK, PS3_7_FN1, PTK7_FN), | ||
908 | PINMUX_DATA(SCK2_MARK, PS3_7_FN2, PTK7_FN), | ||
909 | PINMUX_DATA(COM2_RXD_MARK, PTK6_FN), | ||
910 | PINMUX_DATA(COM2_RTS_MARK, PTK5_FN), | ||
911 | PINMUX_DATA(COM2_CTS_MARK, PTK4_FN), | ||
912 | PINMUX_DATA(COM2_DTR_MARK, PTK3_FN), | ||
913 | PINMUX_DATA(COM2_DSR_MARK, PS3_2_FN1, PTK2_FN), | ||
914 | PINMUX_DATA(SCK4_MARK, PS3_2_FN2, PTK2_FN), | ||
915 | PINMUX_DATA(COM2_DCD_MARK, PS3_1_FN1, PTK1_FN), | ||
916 | PINMUX_DATA(SCK3_MARK, PS3_1_FN2, PTK1_FN), | ||
917 | PINMUX_DATA(CLKOUT_MARK, PTK0_FN), | ||
918 | |||
919 | /* PTL FN */ | ||
920 | PINMUX_DATA(RAC_RXD_MARK, PS4_14_FN1, PTL6_FN), | ||
921 | PINMUX_DATA(RXD2_MARK, PS4_14_FN2, PTL6_FN), | ||
922 | PINMUX_DATA(RAC_RTS_MARK, PS4_13_FN1, PTL5_FN), | ||
923 | PINMUX_DATA(CS5_MARK, PS4_13_FN2, PTL5_FN), | ||
924 | PINMUX_DATA(RAC_CTS_MARK, PS4_12_FN1, PTL4_FN), | ||
925 | PINMUX_DATA(CS6_MARK, PS4_12_FN2, PTL4_FN), | ||
926 | PINMUX_DATA(RAC_DTR_MARK, PTL3_FN), | ||
927 | PINMUX_DATA(RAC_DSR_MARK, PS4_10_FN1, PTL2_FN), | ||
928 | PINMUX_DATA(AUDSYNC_MARK, PS4_10_FN2, PTL2_FN), | ||
929 | PINMUX_DATA(RAC_DCD_MARK, PS4_9_FN1, PTL1_FN), | ||
930 | PINMUX_DATA(AUDCK_MARK, PS4_9_FN2, PTL1_FN), | ||
931 | PINMUX_DATA(RAC_TXD_MARK, PS4_8_FN1, PTL0_FN), | ||
932 | PINMUX_DATA(TXD2_MARK, PS4_8_FN1, PTL0_FN), | ||
933 | |||
934 | /* PTM FN */ | ||
935 | PINMUX_DATA(CS4_MARK, PTM7_FN), | ||
936 | PINMUX_DATA(RD_MARK, PTM6_FN), | ||
937 | PINMUX_DATA(WE0_MARK, PTM7_FN), | ||
938 | PINMUX_DATA(CS0_MARK, PTM4_FN), | ||
939 | PINMUX_DATA(SDA6_MARK, PTM3_FN), | ||
940 | PINMUX_DATA(SCL6_MARK, PTM2_FN), | ||
941 | PINMUX_DATA(SDA7_MARK, PTM1_FN), | ||
942 | PINMUX_DATA(SCL7_MARK, PTM0_FN), | ||
943 | |||
944 | /* PTN FN */ | ||
945 | PINMUX_DATA(VBUS_EN_MARK, PTN6_FN), | ||
946 | PINMUX_DATA(VBUS_OC_MARK, PTN5_FN), | ||
947 | PINMUX_DATA(JMCTCK_MARK, PS4_4_FN1, PTN4_FN), | ||
948 | PINMUX_DATA(SGPIO1_CLK_MARK, PS4_4_FN2, PTN4_FN), | ||
949 | PINMUX_DATA(JMCTMS_MARK, PS4_3_FN1, PTN5_FN), | ||
950 | PINMUX_DATA(SGPIO1_LOAD_MARK, PS4_3_FN2, PTN5_FN), | ||
951 | PINMUX_DATA(JMCTDO_MARK, PS4_2_FN1, PTN2_FN), | ||
952 | PINMUX_DATA(SGPIO1_DO_MARK, PS4_2_FN2, PTN2_FN), | ||
953 | PINMUX_DATA(JMCTDI_MARK, PS4_1_FN1, PTN1_FN), | ||
954 | PINMUX_DATA(SGPIO1_DI_MARK, PS4_1_FN2, PTN1_FN), | ||
955 | PINMUX_DATA(JMCTRST_MARK, PS4_0_FN1, PTN0_FN), | ||
956 | PINMUX_DATA(SUB_CLKIN_MARK, PS4_0_FN2, PTN0_FN), | ||
957 | |||
958 | /* PTO FN */ | ||
959 | PINMUX_DATA(SGPIO0_CLK_MARK, PTO7_FN), | ||
960 | PINMUX_DATA(SGPIO0_LOAD_MARK, PTO6_FN), | ||
961 | PINMUX_DATA(SGPIO0_DI_MARK, PTO5_FN), | ||
962 | PINMUX_DATA(SGPIO0_DO_MARK, PTO4_FN), | ||
963 | PINMUX_DATA(SGPIO2_CLK_MARK, PS5_11_FN1, PTO3_FN), | ||
964 | PINMUX_DATA(COM1_TXD_MARK, PS5_11_FN2, PTO3_FN), | ||
965 | PINMUX_DATA(SGPIO2_LOAD_MARK, PS5_10_FN1, PTO2_FN), | ||
966 | PINMUX_DATA(COM1_RXD_MARK, PS5_10_FN2, PTO2_FN), | ||
967 | PINMUX_DATA(SGPIO2_DI_MARK, PS5_9_FN1, PTO1_FN), | ||
968 | PINMUX_DATA(COM1_RTS_MARK, PS5_9_FN2, PTO1_FN), | ||
969 | PINMUX_DATA(SGPIO2_DO_MARK, PS5_8_FN1, PTO0_FN), | ||
970 | PINMUX_DATA(COM1_CTS_MARK, PS5_8_FN2, PTO0_FN), | ||
971 | |||
972 | /* PTP FN */ | ||
973 | |||
974 | /* PTQ FN */ | ||
975 | PINMUX_DATA(LAD3_MARK, PTQ6_FN), | ||
976 | PINMUX_DATA(LAD2_MARK, PTQ5_FN), | ||
977 | PINMUX_DATA(LAD1_MARK, PTQ4_FN), | ||
978 | PINMUX_DATA(LAD0_MARK, PTQ3_FN), | ||
979 | PINMUX_DATA(LFRAME_MARK, PTQ2_FN), | ||
980 | PINMUX_DATA(LRESET_MARK, PTQ1_FN), | ||
981 | PINMUX_DATA(LCLK_MARK, PTQ0_FN), | ||
982 | |||
983 | /* PTR FN */ | ||
984 | PINMUX_DATA(SDA8_MARK, PTR7_FN), /* DDC3? */ | ||
985 | PINMUX_DATA(SCL8_MARK, PTR6_FN), /* DDC2? */ | ||
986 | PINMUX_DATA(SDA2_MARK, PTR5_FN), | ||
987 | PINMUX_DATA(SCL2_MARK, PTR4_FN), | ||
988 | PINMUX_DATA(SDA1_MARK, PTR3_FN), | ||
989 | PINMUX_DATA(SCL1_MARK, PTR2_FN), | ||
990 | PINMUX_DATA(SDA0_MARK, PTR1_FN), | ||
991 | PINMUX_DATA(SCL0_MARK, PTR0_FN), | ||
992 | |||
993 | /* PTS FN */ | ||
994 | PINMUX_DATA(SDA9_MARK, PTS7_FN), /* DDC1? */ | ||
995 | PINMUX_DATA(SCL9_MARK, PTS6_FN), /* DDC0? */ | ||
996 | PINMUX_DATA(SDA5_MARK, PTS5_FN), | ||
997 | PINMUX_DATA(SCL5_MARK, PTS4_FN), | ||
998 | PINMUX_DATA(SDA4_MARK, PTS3_FN), | ||
999 | PINMUX_DATA(SCL4_MARK, PTS2_FN), | ||
1000 | PINMUX_DATA(SDA3_MARK, PTS1_FN), | ||
1001 | PINMUX_DATA(SCL3_MARK, PTS0_FN), | ||
1002 | |||
1003 | /* PTT FN */ | ||
1004 | PINMUX_DATA(PWMX7_MARK, PS5_7_FN1, PTT7_FN), | ||
1005 | PINMUX_DATA(AUDATA3_MARK, PS5_7_FN2, PTT7_FN), | ||
1006 | PINMUX_DATA(PWMX6_MARK, PS5_6_FN1, PTT6_FN), | ||
1007 | PINMUX_DATA(AUDATA2_MARK, PS5_6_FN2, PTT6_FN), | ||
1008 | PINMUX_DATA(PWMX5_MARK, PS5_5_FN1, PTT5_FN), | ||
1009 | PINMUX_DATA(AUDATA1_MARK, PS5_5_FN2, PTT5_FN), | ||
1010 | PINMUX_DATA(PWMX4_MARK, PS5_4_FN1, PTT4_FN), | ||
1011 | PINMUX_DATA(AUDATA0_MARK, PS5_4_FN2, PTT4_FN), | ||
1012 | PINMUX_DATA(PWMX3_MARK, PS5_3_FN1, PTT3_FN), | ||
1013 | PINMUX_DATA(STATUS1_MARK, PS5_3_FN2, PTT3_FN), | ||
1014 | PINMUX_DATA(PWMX2_MARK, PS5_2_FN1, PTT2_FN), | ||
1015 | PINMUX_DATA(STATUS0_MARK, PS5_2_FN2, PTT2_FN), | ||
1016 | PINMUX_DATA(PWMX1_MARK, PTT1_FN), | ||
1017 | PINMUX_DATA(PWMX0_MARK, PTT0_FN), | ||
1018 | |||
1019 | /* PTU FN */ | ||
1020 | PINMUX_DATA(LGPIO7_MARK, PS6_15_FN1, PTU7_FN), | ||
1021 | PINMUX_DATA(APMONCTL_O_MARK, PS6_15_FN2, PTU7_FN), | ||
1022 | PINMUX_DATA(LGPIO6_MARK, PS6_14_FN1, PTU6_FN), | ||
1023 | PINMUX_DATA(APMPWBTOUT_O_MARK, PS6_14_FN2, PTU6_FN), | ||
1024 | PINMUX_DATA(LGPIO5_MARK, PS6_13_FN1, PTU5_FN), | ||
1025 | PINMUX_DATA(APMSCI_O_MARK, PS6_13_FN2, PTU5_FN), | ||
1026 | PINMUX_DATA(LGPIO4_MARK, PS6_12_FN1, PTU4_FN), | ||
1027 | PINMUX_DATA(APMVDDON_MARK, PS6_12_FN2, PTU4_FN), | ||
1028 | PINMUX_DATA(LGPIO3_MARK, PS6_11_FN1, PTU3_FN), | ||
1029 | PINMUX_DATA(APMSLPBTN_MARK, PS6_11_FN2, PTU3_FN), | ||
1030 | PINMUX_DATA(LGPIO2_MARK, PS6_10_FN1, PTU2_FN), | ||
1031 | PINMUX_DATA(APMPWRBTN_MARK, PS6_10_FN2, PTU2_FN), | ||
1032 | PINMUX_DATA(LGPIO1_MARK, PS6_9_FN1, PTU1_FN), | ||
1033 | PINMUX_DATA(APMS5N_MARK, PS6_9_FN2, PTU1_FN), | ||
1034 | PINMUX_DATA(LGPIO0_MARK, PS6_8_FN1, PTU0_FN), | ||
1035 | PINMUX_DATA(APMS3N_MARK, PS6_8_FN2, PTU0_FN), | ||
1036 | |||
1037 | /* PTV FN */ | ||
1038 | PINMUX_DATA(A23_MARK, PS6_7_FN1, PTV7_FN), | ||
1039 | PINMUX_DATA(COM2_RI_MARK, PS6_7_FN2, PTV7_FN), | ||
1040 | PINMUX_DATA(A22_MARK, PS6_6_FN1, PTV6_FN), | ||
1041 | PINMUX_DATA(R_SPI_MOSI_MARK, PS6_6_FN2, PTV6_FN), | ||
1042 | PINMUX_DATA(A21_MARK, PS6_5_FN1, PTV5_FN), | ||
1043 | PINMUX_DATA(R_SPI_MISO_MARK, PS6_5_FN2, PTV5_FN), | ||
1044 | PINMUX_DATA(A20_MARK, PS6_4_FN1, PTV4_FN), | ||
1045 | PINMUX_DATA(R_SPI_RSPCK_MARK, PS6_4_FN2, PTV4_FN), | ||
1046 | PINMUX_DATA(A19_MARK, PS6_3_FN1, PTV3_FN), | ||
1047 | PINMUX_DATA(R_SPI_SSL0_MARK, PS6_3_FN2, PTV3_FN), | ||
1048 | PINMUX_DATA(A18_MARK, PS6_2_FN1, PTV2_FN), | ||
1049 | PINMUX_DATA(R_SPI_SSL1_MARK, PS6_2_FN2, PTV2_FN), | ||
1050 | PINMUX_DATA(A17_MARK, PS6_1_FN1, PTV1_FN), | ||
1051 | PINMUX_DATA(EVENT7_MARK, PS6_1_FN2, PTV1_FN), | ||
1052 | PINMUX_DATA(A16_MARK, PS6_0_FN1, PTV0_FN), | ||
1053 | PINMUX_DATA(EVENT6_MARK, PS6_0_FN1, PTV0_FN), | ||
1054 | |||
1055 | /* PTW FN */ | ||
1056 | PINMUX_DATA(A15_MARK, PS7_15_FN1, PTW7_FN), | ||
1057 | PINMUX_DATA(EVENT5_MARK, PS7_15_FN2, PTW7_FN), | ||
1058 | PINMUX_DATA(A14_MARK, PS7_14_FN1, PTW6_FN), | ||
1059 | PINMUX_DATA(EVENT4_MARK, PS7_14_FN2, PTW6_FN), | ||
1060 | PINMUX_DATA(A13_MARK, PS7_13_FN1, PTW5_FN), | ||
1061 | PINMUX_DATA(EVENT3_MARK, PS7_13_FN2, PTW5_FN), | ||
1062 | PINMUX_DATA(A12_MARK, PS7_12_FN1, PTW4_FN), | ||
1063 | PINMUX_DATA(EVENT2_MARK, PS7_12_FN2, PTW4_FN), | ||
1064 | PINMUX_DATA(A11_MARK, PS7_11_FN1, PTW3_FN), | ||
1065 | PINMUX_DATA(EVENT1_MARK, PS7_11_FN2, PTW3_FN), | ||
1066 | PINMUX_DATA(A10_MARK, PS7_10_FN1, PTW2_FN), | ||
1067 | PINMUX_DATA(EVENT0_MARK, PS7_10_FN2, PTW2_FN), | ||
1068 | PINMUX_DATA(A9_MARK, PS7_9_FN1, PTW1_FN), | ||
1069 | PINMUX_DATA(CTS4_MARK, PS7_9_FN2, PTW1_FN), | ||
1070 | PINMUX_DATA(A8_MARK, PS7_8_FN1, PTW0_FN), | ||
1071 | PINMUX_DATA(CTS2_MARK, PS7_8_FN2, PTW0_FN), | ||
1072 | |||
1073 | /* PTX FN */ | ||
1074 | PINMUX_DATA(A7_MARK, PS7_7_FN1, PTX7_FN), | ||
1075 | PINMUX_DATA(RTS2_MARK, PS7_7_FN2, PTX7_FN), | ||
1076 | PINMUX_DATA(A6_MARK, PS7_6_FN1, PTX6_FN), | ||
1077 | PINMUX_DATA(SIM_D_MARK, PS7_6_FN2, PTX6_FN), | ||
1078 | PINMUX_DATA(A5_MARK, PS7_5_FN1, PTX5_FN), | ||
1079 | PINMUX_DATA(SIM_CLK_MARK, PS7_5_FN2, PTX5_FN), | ||
1080 | PINMUX_DATA(A4_MARK, PS7_4_FN1, PTX4_FN), | ||
1081 | PINMUX_DATA(SIM_RST_MARK, PS7_4_FN2, PTX4_FN), | ||
1082 | PINMUX_DATA(A3_MARK, PTX3_FN), | ||
1083 | PINMUX_DATA(A2_MARK, PTX2_FN), | ||
1084 | PINMUX_DATA(A1_MARK, PTX1_FN), | ||
1085 | PINMUX_DATA(A0_MARK, PTX0_FN), | ||
1086 | |||
1087 | /* PTY FN */ | ||
1088 | PINMUX_DATA(D7_MARK, PTY7_FN), | ||
1089 | PINMUX_DATA(D6_MARK, PTY6_FN), | ||
1090 | PINMUX_DATA(D5_MARK, PTY5_FN), | ||
1091 | PINMUX_DATA(D4_MARK, PTY4_FN), | ||
1092 | PINMUX_DATA(D3_MARK, PTY3_FN), | ||
1093 | PINMUX_DATA(D2_MARK, PTY2_FN), | ||
1094 | PINMUX_DATA(D1_MARK, PTY1_FN), | ||
1095 | PINMUX_DATA(D0_MARK, PTY0_FN), | ||
1096 | |||
1097 | /* PTZ FN */ | ||
1098 | PINMUX_DATA(MMCDAT7_MARK, PS8_15_FN1, PTZ7_FN), | ||
1099 | PINMUX_DATA(ON_DQ7_MARK, PS8_15_FN2, PTZ7_FN), | ||
1100 | PINMUX_DATA(MMCDAT6_MARK, PS8_14_FN1, PTZ6_FN), | ||
1101 | PINMUX_DATA(ON_DQ6_MARK, PS8_14_FN2, PTZ6_FN), | ||
1102 | PINMUX_DATA(MMCDAT5_MARK, PS8_13_FN1, PTZ5_FN), | ||
1103 | PINMUX_DATA(ON_DQ5_MARK, PS8_13_FN2, PTZ5_FN), | ||
1104 | PINMUX_DATA(MMCDAT4_MARK, PS8_12_FN1, PTZ4_FN), | ||
1105 | PINMUX_DATA(ON_DQ4_MARK, PS8_12_FN2, PTZ4_FN), | ||
1106 | PINMUX_DATA(MMCDAT3_MARK, PS8_11_FN1, PTZ3_FN), | ||
1107 | PINMUX_DATA(ON_DQ3_MARK, PS8_11_FN2, PTZ3_FN), | ||
1108 | PINMUX_DATA(MMCDAT2_MARK, PS8_10_FN1, PTZ2_FN), | ||
1109 | PINMUX_DATA(ON_DQ2_MARK, PS8_10_FN2, PTZ2_FN), | ||
1110 | PINMUX_DATA(MMCDAT1_MARK, PS8_9_FN1, PTZ1_FN), | ||
1111 | PINMUX_DATA(ON_DQ1_MARK, PS8_9_FN2, PTZ1_FN), | ||
1112 | PINMUX_DATA(MMCDAT0_MARK, PS8_8_FN1, PTZ0_FN), | ||
1113 | PINMUX_DATA(ON_DQ0_MARK, PS8_8_FN2, PTZ0_FN), | ||
1114 | }; | ||
1115 | |||
1116 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1117 | /* PTA */ | ||
1118 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
1119 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
1120 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
1121 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
1122 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
1123 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
1124 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
1125 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
1126 | |||
1127 | /* PTB */ | ||
1128 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
1129 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
1130 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
1131 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
1132 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
1133 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
1134 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
1135 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
1136 | |||
1137 | /* PTC */ | ||
1138 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
1139 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
1140 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
1141 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
1142 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
1143 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
1144 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
1145 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
1146 | |||
1147 | /* PTD */ | ||
1148 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
1149 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
1150 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
1151 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
1152 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
1153 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
1154 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
1155 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
1156 | |||
1157 | /* PTE */ | ||
1158 | PINMUX_GPIO(GPIO_PTE7, PTE7_DATA), | ||
1159 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
1160 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
1161 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
1162 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
1163 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
1164 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
1165 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
1166 | |||
1167 | /* PTF */ | ||
1168 | PINMUX_GPIO(GPIO_PTF7, PTF7_DATA), | ||
1169 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
1170 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
1171 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
1172 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
1173 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
1174 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
1175 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
1176 | |||
1177 | /* PTG */ | ||
1178 | PINMUX_GPIO(GPIO_PTG7, PTG7_DATA), | ||
1179 | PINMUX_GPIO(GPIO_PTG6, PTG6_DATA), | ||
1180 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
1181 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
1182 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
1183 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
1184 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
1185 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
1186 | |||
1187 | /* PTH */ | ||
1188 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
1189 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
1190 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
1191 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
1192 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
1193 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
1194 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
1195 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
1196 | |||
1197 | /* PTI */ | ||
1198 | PINMUX_GPIO(GPIO_PTI7, PTI7_DATA), | ||
1199 | PINMUX_GPIO(GPIO_PTI6, PTI6_DATA), | ||
1200 | PINMUX_GPIO(GPIO_PTI5, PTI5_DATA), | ||
1201 | PINMUX_GPIO(GPIO_PTI4, PTI4_DATA), | ||
1202 | PINMUX_GPIO(GPIO_PTI3, PTI3_DATA), | ||
1203 | PINMUX_GPIO(GPIO_PTI2, PTI2_DATA), | ||
1204 | PINMUX_GPIO(GPIO_PTI1, PTI1_DATA), | ||
1205 | PINMUX_GPIO(GPIO_PTI0, PTI0_DATA), | ||
1206 | |||
1207 | /* PTJ */ | ||
1208 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
1209 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
1210 | PINMUX_GPIO(GPIO_PTJ4, PTJ4_DATA), | ||
1211 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
1212 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
1213 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
1214 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
1215 | |||
1216 | /* PTK */ | ||
1217 | PINMUX_GPIO(GPIO_PTK7, PTK7_DATA), | ||
1218 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
1219 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
1220 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
1221 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
1222 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
1223 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
1224 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
1225 | |||
1226 | /* PTL */ | ||
1227 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
1228 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
1229 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
1230 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
1231 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
1232 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
1233 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
1234 | |||
1235 | /* PTM */ | ||
1236 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
1237 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
1238 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
1239 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
1240 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
1241 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
1242 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
1243 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
1244 | |||
1245 | /* PTN */ | ||
1246 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
1247 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
1248 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
1249 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
1250 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
1251 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
1252 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
1253 | |||
1254 | /* PTO */ | ||
1255 | PINMUX_GPIO(GPIO_PTO7, PTO7_DATA), | ||
1256 | PINMUX_GPIO(GPIO_PTO6, PTO6_DATA), | ||
1257 | PINMUX_GPIO(GPIO_PTO5, PTO5_DATA), | ||
1258 | PINMUX_GPIO(GPIO_PTO4, PTO4_DATA), | ||
1259 | PINMUX_GPIO(GPIO_PTO3, PTO3_DATA), | ||
1260 | PINMUX_GPIO(GPIO_PTO2, PTO2_DATA), | ||
1261 | PINMUX_GPIO(GPIO_PTO1, PTO1_DATA), | ||
1262 | PINMUX_GPIO(GPIO_PTO0, PTO0_DATA), | ||
1263 | |||
1264 | /* PTP */ | ||
1265 | PINMUX_GPIO(GPIO_PTP7, PTP7_DATA), | ||
1266 | PINMUX_GPIO(GPIO_PTP6, PTP6_DATA), | ||
1267 | PINMUX_GPIO(GPIO_PTP5, PTP5_DATA), | ||
1268 | PINMUX_GPIO(GPIO_PTP4, PTP4_DATA), | ||
1269 | PINMUX_GPIO(GPIO_PTP3, PTP3_DATA), | ||
1270 | PINMUX_GPIO(GPIO_PTP2, PTP2_DATA), | ||
1271 | PINMUX_GPIO(GPIO_PTP1, PTP1_DATA), | ||
1272 | PINMUX_GPIO(GPIO_PTP0, PTP0_DATA), | ||
1273 | |||
1274 | /* PTQ */ | ||
1275 | PINMUX_GPIO(GPIO_PTQ6, PTQ6_DATA), | ||
1276 | PINMUX_GPIO(GPIO_PTQ5, PTQ5_DATA), | ||
1277 | PINMUX_GPIO(GPIO_PTQ4, PTQ4_DATA), | ||
1278 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
1279 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
1280 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
1281 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
1282 | |||
1283 | /* PTR */ | ||
1284 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
1285 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
1286 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
1287 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
1288 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
1289 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
1290 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
1291 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
1292 | |||
1293 | /* PTS */ | ||
1294 | PINMUX_GPIO(GPIO_PTS7, PTS7_DATA), | ||
1295 | PINMUX_GPIO(GPIO_PTS6, PTS6_DATA), | ||
1296 | PINMUX_GPIO(GPIO_PTS5, PTS5_DATA), | ||
1297 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
1298 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
1299 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
1300 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
1301 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
1302 | |||
1303 | /* PTT */ | ||
1304 | PINMUX_GPIO(GPIO_PTT7, PTT7_DATA), | ||
1305 | PINMUX_GPIO(GPIO_PTT6, PTT6_DATA), | ||
1306 | PINMUX_GPIO(GPIO_PTT5, PTT5_DATA), | ||
1307 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
1308 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
1309 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
1310 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
1311 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
1312 | |||
1313 | /* PTU */ | ||
1314 | PINMUX_GPIO(GPIO_PTU7, PTU7_DATA), | ||
1315 | PINMUX_GPIO(GPIO_PTU6, PTU6_DATA), | ||
1316 | PINMUX_GPIO(GPIO_PTU5, PTU5_DATA), | ||
1317 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
1318 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
1319 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
1320 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
1321 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
1322 | |||
1323 | /* PTV */ | ||
1324 | PINMUX_GPIO(GPIO_PTV7, PTV7_DATA), | ||
1325 | PINMUX_GPIO(GPIO_PTV6, PTV6_DATA), | ||
1326 | PINMUX_GPIO(GPIO_PTV5, PTV5_DATA), | ||
1327 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
1328 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
1329 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
1330 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
1331 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
1332 | |||
1333 | /* PTW */ | ||
1334 | PINMUX_GPIO(GPIO_PTW7, PTW7_DATA), | ||
1335 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
1336 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
1337 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
1338 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
1339 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
1340 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
1341 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
1342 | |||
1343 | /* PTX */ | ||
1344 | PINMUX_GPIO(GPIO_PTX7, PTX7_DATA), | ||
1345 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
1346 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
1347 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
1348 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
1349 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
1350 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
1351 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
1352 | |||
1353 | /* PTY */ | ||
1354 | PINMUX_GPIO(GPIO_PTY7, PTY7_DATA), | ||
1355 | PINMUX_GPIO(GPIO_PTY6, PTY6_DATA), | ||
1356 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
1357 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
1358 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
1359 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
1360 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
1361 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
1362 | |||
1363 | /* PTZ */ | ||
1364 | PINMUX_GPIO(GPIO_PTZ7, PTZ7_DATA), | ||
1365 | PINMUX_GPIO(GPIO_PTZ6, PTZ6_DATA), | ||
1366 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
1367 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
1368 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
1369 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
1370 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
1371 | PINMUX_GPIO(GPIO_PTZ0, PTZ0_DATA), | ||
1372 | |||
1373 | /* PTA (mobule: LBSC, RGMII) */ | ||
1374 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1375 | PINMUX_GPIO(GPIO_FN_RDWR, RDWR_MARK), | ||
1376 | PINMUX_GPIO(GPIO_FN_WE1, WE1_MARK), | ||
1377 | PINMUX_GPIO(GPIO_FN_RDY, RDY_MARK), | ||
1378 | PINMUX_GPIO(GPIO_FN_ET0_MDC, ET0_MDC_MARK), | ||
1379 | PINMUX_GPIO(GPIO_FN_ET0_MDIO, ET0_MDC_MARK), | ||
1380 | PINMUX_GPIO(GPIO_FN_ET1_MDC, ET1_MDC_MARK), | ||
1381 | PINMUX_GPIO(GPIO_FN_ET1_MDIO, ET1_MDC_MARK), | ||
1382 | |||
1383 | /* PTB (mobule: INTC, ONFI, TMU) */ | ||
1384 | PINMUX_GPIO(GPIO_FN_IRQ15, IRQ15_MARK), | ||
1385 | PINMUX_GPIO(GPIO_FN_IRQ14, IRQ14_MARK), | ||
1386 | PINMUX_GPIO(GPIO_FN_IRQ13, IRQ13_MARK), | ||
1387 | PINMUX_GPIO(GPIO_FN_IRQ12, IRQ12_MARK), | ||
1388 | PINMUX_GPIO(GPIO_FN_IRQ11, IRQ11_MARK), | ||
1389 | PINMUX_GPIO(GPIO_FN_IRQ10, IRQ10_MARK), | ||
1390 | PINMUX_GPIO(GPIO_FN_IRQ9, IRQ9_MARK), | ||
1391 | PINMUX_GPIO(GPIO_FN_IRQ8, IRQ8_MARK), | ||
1392 | PINMUX_GPIO(GPIO_FN_ON_NRE, ON_NRE_MARK), | ||
1393 | PINMUX_GPIO(GPIO_FN_ON_NWE, ON_NWE_MARK), | ||
1394 | PINMUX_GPIO(GPIO_FN_ON_NWP, ON_NWP_MARK), | ||
1395 | PINMUX_GPIO(GPIO_FN_ON_NCE0, ON_NCE0_MARK), | ||
1396 | PINMUX_GPIO(GPIO_FN_ON_R_B0, ON_R_B0_MARK), | ||
1397 | PINMUX_GPIO(GPIO_FN_ON_ALE, ON_ALE_MARK), | ||
1398 | PINMUX_GPIO(GPIO_FN_ON_CLE, ON_CLE_MARK), | ||
1399 | PINMUX_GPIO(GPIO_FN_TCLK, TCLK_MARK), | ||
1400 | |||
1401 | /* PTC (mobule: IRQ, PWMU) */ | ||
1402 | PINMUX_GPIO(GPIO_FN_IRQ7, IRQ7_MARK), | ||
1403 | PINMUX_GPIO(GPIO_FN_IRQ6, IRQ6_MARK), | ||
1404 | PINMUX_GPIO(GPIO_FN_IRQ5, IRQ5_MARK), | ||
1405 | PINMUX_GPIO(GPIO_FN_IRQ4, IRQ4_MARK), | ||
1406 | PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), | ||
1407 | PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), | ||
1408 | PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), | ||
1409 | PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), | ||
1410 | PINMUX_GPIO(GPIO_FN_PWMU0, PWMU0_MARK), | ||
1411 | PINMUX_GPIO(GPIO_FN_PWMU1, PWMU1_MARK), | ||
1412 | PINMUX_GPIO(GPIO_FN_PWMU2, PWMU2_MARK), | ||
1413 | PINMUX_GPIO(GPIO_FN_PWMU3, PWMU3_MARK), | ||
1414 | PINMUX_GPIO(GPIO_FN_PWMU4, PWMU4_MARK), | ||
1415 | PINMUX_GPIO(GPIO_FN_PWMU5, PWMU5_MARK), | ||
1416 | |||
1417 | /* PTD (mobule: SPI0, DMAC) */ | ||
1418 | PINMUX_GPIO(GPIO_FN_SP0_MOSI, SP0_MOSI_MARK), | ||
1419 | PINMUX_GPIO(GPIO_FN_SP0_MISO, SP0_MISO_MARK), | ||
1420 | PINMUX_GPIO(GPIO_FN_SP0_SCK, SP0_SCK_MARK), | ||
1421 | PINMUX_GPIO(GPIO_FN_SP0_SCK_FB, SP0_SCK_FB_MARK), | ||
1422 | PINMUX_GPIO(GPIO_FN_SP0_SS0, SP0_SS0_MARK), | ||
1423 | PINMUX_GPIO(GPIO_FN_SP0_SS1, SP0_SS1_MARK), | ||
1424 | PINMUX_GPIO(GPIO_FN_SP0_SS2, SP0_SS2_MARK), | ||
1425 | PINMUX_GPIO(GPIO_FN_SP0_SS3, SP0_SS3_MARK), | ||
1426 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1427 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
1428 | PINMUX_GPIO(GPIO_FN_TEND0, TEND0_MARK), | ||
1429 | |||
1430 | /* PTE (mobule: RMII) */ | ||
1431 | PINMUX_GPIO(GPIO_FN_RMII0_CRS_DV, RMII0_CRS_DV_MARK), | ||
1432 | PINMUX_GPIO(GPIO_FN_RMII0_TXD1, RMII0_TXD1_MARK), | ||
1433 | PINMUX_GPIO(GPIO_FN_RMII0_TXD0, RMII0_TXD0_MARK), | ||
1434 | PINMUX_GPIO(GPIO_FN_RMII0_TXEN, RMII0_TXEN_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_RMII0_REFCLK, RMII0_REFCLK_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_RMII0_RXD1, RMII0_RXD1_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_RMII0_RXD0, RMII0_RXD0_MARK), | ||
1438 | PINMUX_GPIO(GPIO_FN_RMII0_RX_ER, RMII0_RX_ER_MARK), | ||
1439 | |||
1440 | /* PTF (mobule: RMII, SerMux) */ | ||
1441 | PINMUX_GPIO(GPIO_FN_RMII1_CRS_DV, RMII1_CRS_DV_MARK), | ||
1442 | PINMUX_GPIO(GPIO_FN_RMII1_TXD1, RMII1_TXD1_MARK), | ||
1443 | PINMUX_GPIO(GPIO_FN_RMII1_TXD0, RMII1_TXD0_MARK), | ||
1444 | PINMUX_GPIO(GPIO_FN_RMII1_TXEN, RMII1_TXEN_MARK), | ||
1445 | PINMUX_GPIO(GPIO_FN_RMII1_REFCLK, RMII1_REFCLK_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_RMII1_RXD1, RMII1_RXD1_MARK), | ||
1447 | PINMUX_GPIO(GPIO_FN_RMII1_RXD0, RMII1_RXD0_MARK), | ||
1448 | PINMUX_GPIO(GPIO_FN_RMII1_RX_ER, RMII1_RX_ER_MARK), | ||
1449 | PINMUX_GPIO(GPIO_FN_RAC_RI, RAC_RI_MARK), | ||
1450 | |||
1451 | /* PTG (mobule: system, LBSC, LPC, WDT, LPC, eMMC) */ | ||
1452 | PINMUX_GPIO(GPIO_FN_BOOTFMS, BOOTFMS_MARK), | ||
1453 | PINMUX_GPIO(GPIO_FN_BOOTWP, BOOTWP_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_SERIRQ, SERIRQ_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_WDTOVF, WDTOVF_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_LPCPD, LPCPD_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_LDRQ, LDRQ_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_MMCCLK, MMCCLK_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_MMCCMD, MMCCMD_MARK), | ||
1462 | |||
1463 | /* PTH (mobule: SPI1, LPC, DMAC, ADC) */ | ||
1464 | PINMUX_GPIO(GPIO_FN_SP1_MOSI, SP1_MOSI_MARK), | ||
1465 | PINMUX_GPIO(GPIO_FN_SP1_MISO, SP1_MISO_MARK), | ||
1466 | PINMUX_GPIO(GPIO_FN_SP1_SCK, SP1_SCK_MARK), | ||
1467 | PINMUX_GPIO(GPIO_FN_SP1_SCK_FB, SP1_SCK_FB_MARK), | ||
1468 | PINMUX_GPIO(GPIO_FN_SP1_SS0, SP1_SS0_MARK), | ||
1469 | PINMUX_GPIO(GPIO_FN_SP1_SS1, SP1_SS1_MARK), | ||
1470 | PINMUX_GPIO(GPIO_FN_WP, WP_MARK), | ||
1471 | PINMUX_GPIO(GPIO_FN_FMS0, FMS0_MARK), | ||
1472 | PINMUX_GPIO(GPIO_FN_TEND1, TEND1_MARK), | ||
1473 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
1474 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
1475 | PINMUX_GPIO(GPIO_FN_ADTRG1, ADTRG1_MARK), | ||
1476 | PINMUX_GPIO(GPIO_FN_ADTRG0, ADTRG0_MARK), | ||
1477 | |||
1478 | /* PTI (mobule: LBSC, SDHI) */ | ||
1479 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1480 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1481 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1482 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1483 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1484 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1485 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1486 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1487 | PINMUX_GPIO(GPIO_FN_SD_WP, SD_WP_MARK), | ||
1488 | PINMUX_GPIO(GPIO_FN_SD_CD, SD_CD_MARK), | ||
1489 | PINMUX_GPIO(GPIO_FN_SD_CLK, SD_CLK_MARK), | ||
1490 | PINMUX_GPIO(GPIO_FN_SD_CMD, SD_CMD_MARK), | ||
1491 | PINMUX_GPIO(GPIO_FN_SD_D3, SD_D3_MARK), | ||
1492 | PINMUX_GPIO(GPIO_FN_SD_D2, SD_D2_MARK), | ||
1493 | PINMUX_GPIO(GPIO_FN_SD_D1, SD_D1_MARK), | ||
1494 | PINMUX_GPIO(GPIO_FN_SD_D0, SD_D0_MARK), | ||
1495 | |||
1496 | /* PTJ (mobule: SCIF234, SERMUX) */ | ||
1497 | PINMUX_GPIO(GPIO_FN_RTS3, RTS3_MARK), | ||
1498 | PINMUX_GPIO(GPIO_FN_CTS3, CTS3_MARK), | ||
1499 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
1500 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
1501 | PINMUX_GPIO(GPIO_FN_RTS4, RTS4_MARK), | ||
1502 | PINMUX_GPIO(GPIO_FN_RXD4, RXD4_MARK), | ||
1503 | PINMUX_GPIO(GPIO_FN_TXD4, TXD4_MARK), | ||
1504 | |||
1505 | /* PTK (mobule: SERMUX, LBSC, SCIF) */ | ||
1506 | PINMUX_GPIO(GPIO_FN_COM2_TXD, COM2_TXD_MARK), | ||
1507 | PINMUX_GPIO(GPIO_FN_COM2_RXD, COM2_RXD_MARK), | ||
1508 | PINMUX_GPIO(GPIO_FN_COM2_RTS, COM2_RTS_MARK), | ||
1509 | PINMUX_GPIO(GPIO_FN_COM2_CTS, COM2_CTS_MARK), | ||
1510 | PINMUX_GPIO(GPIO_FN_COM2_DTR, COM2_DTR_MARK), | ||
1511 | PINMUX_GPIO(GPIO_FN_COM2_DSR, COM2_DSR_MARK), | ||
1512 | PINMUX_GPIO(GPIO_FN_COM2_DCD, COM2_DCD_MARK), | ||
1513 | PINMUX_GPIO(GPIO_FN_CLKOUT, CLKOUT_MARK), | ||
1514 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
1515 | PINMUX_GPIO(GPIO_FN_SCK4, SCK4_MARK), | ||
1516 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
1517 | |||
1518 | /* PTL (mobule: SERMUX, SCIF, LBSC, AUD) */ | ||
1519 | PINMUX_GPIO(GPIO_FN_RAC_RXD, RAC_RXD_MARK), | ||
1520 | PINMUX_GPIO(GPIO_FN_RAC_RTS, RAC_RTS_MARK), | ||
1521 | PINMUX_GPIO(GPIO_FN_RAC_CTS, RAC_CTS_MARK), | ||
1522 | PINMUX_GPIO(GPIO_FN_RAC_DTR, RAC_DTR_MARK), | ||
1523 | PINMUX_GPIO(GPIO_FN_RAC_DSR, RAC_DSR_MARK), | ||
1524 | PINMUX_GPIO(GPIO_FN_RAC_DCD, RAC_DCD_MARK), | ||
1525 | PINMUX_GPIO(GPIO_FN_RAC_TXD, RAC_TXD_MARK), | ||
1526 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
1527 | PINMUX_GPIO(GPIO_FN_CS5, CS5_MARK), | ||
1528 | PINMUX_GPIO(GPIO_FN_CS6, CS6_MARK), | ||
1529 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1530 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
1531 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
1532 | |||
1533 | /* PTM (mobule: LBSC, IIC) */ | ||
1534 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
1535 | PINMUX_GPIO(GPIO_FN_RD, RD_MARK), | ||
1536 | PINMUX_GPIO(GPIO_FN_WE0, WE0_MARK), | ||
1537 | PINMUX_GPIO(GPIO_FN_CS0, CS0_MARK), | ||
1538 | PINMUX_GPIO(GPIO_FN_SDA6, SDA6_MARK), | ||
1539 | PINMUX_GPIO(GPIO_FN_SCL6, SCL6_MARK), | ||
1540 | PINMUX_GPIO(GPIO_FN_SDA7, SDA7_MARK), | ||
1541 | PINMUX_GPIO(GPIO_FN_SCL7, SCL7_MARK), | ||
1542 | |||
1543 | /* PTN (mobule: USB, JMC, SGPIO, WDT) */ | ||
1544 | PINMUX_GPIO(GPIO_FN_VBUS_EN, VBUS_EN_MARK), | ||
1545 | PINMUX_GPIO(GPIO_FN_VBUS_OC, VBUS_OC_MARK), | ||
1546 | PINMUX_GPIO(GPIO_FN_JMCTCK, JMCTCK_MARK), | ||
1547 | PINMUX_GPIO(GPIO_FN_JMCTMS, JMCTMS_MARK), | ||
1548 | PINMUX_GPIO(GPIO_FN_JMCTDO, JMCTDO_MARK), | ||
1549 | PINMUX_GPIO(GPIO_FN_JMCTDI, JMCTDI_MARK), | ||
1550 | PINMUX_GPIO(GPIO_FN_JMCTRST, JMCTRST_MARK), | ||
1551 | PINMUX_GPIO(GPIO_FN_SGPIO1_CLK, SGPIO1_CLK_MARK), | ||
1552 | PINMUX_GPIO(GPIO_FN_SGPIO1_LOAD, SGPIO1_LOAD_MARK), | ||
1553 | PINMUX_GPIO(GPIO_FN_SGPIO1_DI, SGPIO1_DI_MARK), | ||
1554 | PINMUX_GPIO(GPIO_FN_SGPIO1_DO, SGPIO1_DO_MARK), | ||
1555 | PINMUX_GPIO(GPIO_FN_SUB_CLKIN, SUB_CLKIN_MARK), | ||
1556 | |||
1557 | /* PTO (mobule: SGPIO, SerMux) */ | ||
1558 | PINMUX_GPIO(GPIO_FN_SGPIO0_CLK, SGPIO0_CLK_MARK), | ||
1559 | PINMUX_GPIO(GPIO_FN_SGPIO0_LOAD, SGPIO0_LOAD_MARK), | ||
1560 | PINMUX_GPIO(GPIO_FN_SGPIO0_DI, SGPIO0_DI_MARK), | ||
1561 | PINMUX_GPIO(GPIO_FN_SGPIO0_DO, SGPIO0_DO_MARK), | ||
1562 | PINMUX_GPIO(GPIO_FN_SGPIO2_CLK, SGPIO2_CLK_MARK), | ||
1563 | PINMUX_GPIO(GPIO_FN_SGPIO2_LOAD, SGPIO2_LOAD_MARK), | ||
1564 | PINMUX_GPIO(GPIO_FN_SGPIO2_DI, SGPIO2_DI_MARK), | ||
1565 | PINMUX_GPIO(GPIO_FN_SGPIO2_DO, SGPIO2_DO_MARK), | ||
1566 | PINMUX_GPIO(GPIO_FN_COM1_TXD, COM1_TXD_MARK), | ||
1567 | PINMUX_GPIO(GPIO_FN_COM1_RXD, COM1_RXD_MARK), | ||
1568 | PINMUX_GPIO(GPIO_FN_COM1_RTS, COM1_RTS_MARK), | ||
1569 | PINMUX_GPIO(GPIO_FN_COM1_CTS, COM1_CTS_MARK), | ||
1570 | |||
1571 | /* PTP (mobule: EVC, ADC) */ | ||
1572 | |||
1573 | /* PTQ (mobule: LPC) */ | ||
1574 | PINMUX_GPIO(GPIO_FN_LAD3, LAD3_MARK), | ||
1575 | PINMUX_GPIO(GPIO_FN_LAD2, LAD2_MARK), | ||
1576 | PINMUX_GPIO(GPIO_FN_LAD1, LAD1_MARK), | ||
1577 | PINMUX_GPIO(GPIO_FN_LAD0, LAD0_MARK), | ||
1578 | PINMUX_GPIO(GPIO_FN_LFRAME, LFRAME_MARK), | ||
1579 | PINMUX_GPIO(GPIO_FN_LRESET, LRESET_MARK), | ||
1580 | PINMUX_GPIO(GPIO_FN_LCLK, LCLK_MARK), | ||
1581 | |||
1582 | /* PTR (mobule: GRA, IIC) */ | ||
1583 | PINMUX_GPIO(GPIO_FN_DDC3, DDC3_MARK), | ||
1584 | PINMUX_GPIO(GPIO_FN_DDC2, DDC2_MARK), | ||
1585 | PINMUX_GPIO(GPIO_FN_SDA8, SDA8_MARK), | ||
1586 | PINMUX_GPIO(GPIO_FN_SCL8, SCL8_MARK), | ||
1587 | PINMUX_GPIO(GPIO_FN_SDA2, SDA2_MARK), | ||
1588 | PINMUX_GPIO(GPIO_FN_SCL2, SCL2_MARK), | ||
1589 | PINMUX_GPIO(GPIO_FN_SDA1, SDA1_MARK), | ||
1590 | PINMUX_GPIO(GPIO_FN_SCL1, SCL1_MARK), | ||
1591 | PINMUX_GPIO(GPIO_FN_SDA0, SDA0_MARK), | ||
1592 | PINMUX_GPIO(GPIO_FN_SCL0, SCL0_MARK), | ||
1593 | |||
1594 | /* PTS (mobule: GRA, IIC) */ | ||
1595 | PINMUX_GPIO(GPIO_FN_DDC1, DDC1_MARK), | ||
1596 | PINMUX_GPIO(GPIO_FN_DDC0, DDC0_MARK), | ||
1597 | PINMUX_GPIO(GPIO_FN_SDA9, SDA9_MARK), | ||
1598 | PINMUX_GPIO(GPIO_FN_SCL9, SCL9_MARK), | ||
1599 | PINMUX_GPIO(GPIO_FN_SDA5, SDA5_MARK), | ||
1600 | PINMUX_GPIO(GPIO_FN_SCL5, SCL5_MARK), | ||
1601 | PINMUX_GPIO(GPIO_FN_SDA4, SDA4_MARK), | ||
1602 | PINMUX_GPIO(GPIO_FN_SCL4, SCL4_MARK), | ||
1603 | PINMUX_GPIO(GPIO_FN_SDA3, SDA3_MARK), | ||
1604 | PINMUX_GPIO(GPIO_FN_SCL3, SCL3_MARK), | ||
1605 | |||
1606 | /* PTT (mobule: PWMX, AUD) */ | ||
1607 | PINMUX_GPIO(GPIO_FN_PWMX7, PWMX7_MARK), | ||
1608 | PINMUX_GPIO(GPIO_FN_PWMX6, PWMX6_MARK), | ||
1609 | PINMUX_GPIO(GPIO_FN_PWMX5, PWMX5_MARK), | ||
1610 | PINMUX_GPIO(GPIO_FN_PWMX4, PWMX4_MARK), | ||
1611 | PINMUX_GPIO(GPIO_FN_PWMX3, PWMX3_MARK), | ||
1612 | PINMUX_GPIO(GPIO_FN_PWMX2, PWMX2_MARK), | ||
1613 | PINMUX_GPIO(GPIO_FN_PWMX1, PWMX1_MARK), | ||
1614 | PINMUX_GPIO(GPIO_FN_PWMX0, PWMX0_MARK), | ||
1615 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1616 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1617 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1618 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1619 | PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), | ||
1620 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1621 | |||
1622 | /* PTU (mobule: LPC, APM) */ | ||
1623 | PINMUX_GPIO(GPIO_FN_LGPIO7, LGPIO7_MARK), | ||
1624 | PINMUX_GPIO(GPIO_FN_LGPIO6, LGPIO6_MARK), | ||
1625 | PINMUX_GPIO(GPIO_FN_LGPIO5, LGPIO5_MARK), | ||
1626 | PINMUX_GPIO(GPIO_FN_LGPIO4, LGPIO4_MARK), | ||
1627 | PINMUX_GPIO(GPIO_FN_LGPIO3, LGPIO3_MARK), | ||
1628 | PINMUX_GPIO(GPIO_FN_LGPIO2, LGPIO2_MARK), | ||
1629 | PINMUX_GPIO(GPIO_FN_LGPIO1, LGPIO1_MARK), | ||
1630 | PINMUX_GPIO(GPIO_FN_LGPIO0, LGPIO0_MARK), | ||
1631 | PINMUX_GPIO(GPIO_FN_APMONCTL_O, APMONCTL_O_MARK), | ||
1632 | PINMUX_GPIO(GPIO_FN_APMPWBTOUT_O, APMPWBTOUT_O_MARK), | ||
1633 | PINMUX_GPIO(GPIO_FN_APMSCI_O, APMSCI_O_MARK), | ||
1634 | PINMUX_GPIO(GPIO_FN_APMVDDON, APMVDDON_MARK), | ||
1635 | PINMUX_GPIO(GPIO_FN_APMSLPBTN, APMSLPBTN_MARK), | ||
1636 | PINMUX_GPIO(GPIO_FN_APMPWRBTN, APMPWRBTN_MARK), | ||
1637 | PINMUX_GPIO(GPIO_FN_APMS5N, APMS5N_MARK), | ||
1638 | PINMUX_GPIO(GPIO_FN_APMS3N, APMS3N_MARK), | ||
1639 | |||
1640 | /* PTV (mobule: LBSC, SerMux, R-SPI, EVC, GRA) */ | ||
1641 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1642 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1643 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
1644 | PINMUX_GPIO(GPIO_FN_A20, A20_MARK), | ||
1645 | PINMUX_GPIO(GPIO_FN_A19, A19_MARK), | ||
1646 | PINMUX_GPIO(GPIO_FN_A18, A18_MARK), | ||
1647 | PINMUX_GPIO(GPIO_FN_A17, A17_MARK), | ||
1648 | PINMUX_GPIO(GPIO_FN_A16, A16_MARK), | ||
1649 | PINMUX_GPIO(GPIO_FN_COM2_RI, COM2_RI_MARK), | ||
1650 | PINMUX_GPIO(GPIO_FN_R_SPI_MOSI, R_SPI_MOSI_MARK), | ||
1651 | PINMUX_GPIO(GPIO_FN_R_SPI_MISO, R_SPI_MISO_MARK), | ||
1652 | PINMUX_GPIO(GPIO_FN_R_SPI_RSPCK, R_SPI_RSPCK_MARK), | ||
1653 | PINMUX_GPIO(GPIO_FN_R_SPI_SSL0, R_SPI_SSL0_MARK), | ||
1654 | PINMUX_GPIO(GPIO_FN_R_SPI_SSL1, R_SPI_SSL1_MARK), | ||
1655 | PINMUX_GPIO(GPIO_FN_EVENT7, EVENT7_MARK), | ||
1656 | PINMUX_GPIO(GPIO_FN_EVENT6, EVENT6_MARK), | ||
1657 | PINMUX_GPIO(GPIO_FN_VBIOS_DI, VBIOS_DI_MARK), | ||
1658 | PINMUX_GPIO(GPIO_FN_VBIOS_DO, VBIOS_DO_MARK), | ||
1659 | PINMUX_GPIO(GPIO_FN_VBIOS_CLK, VBIOS_CLK_MARK), | ||
1660 | PINMUX_GPIO(GPIO_FN_VBIOS_CS, VBIOS_CS_MARK), | ||
1661 | |||
1662 | /* PTW (mobule: LBSC, EVC, SCIF) */ | ||
1663 | PINMUX_GPIO(GPIO_FN_A16, A16_MARK), | ||
1664 | PINMUX_GPIO(GPIO_FN_A15, A15_MARK), | ||
1665 | PINMUX_GPIO(GPIO_FN_A14, A14_MARK), | ||
1666 | PINMUX_GPIO(GPIO_FN_A13, A13_MARK), | ||
1667 | PINMUX_GPIO(GPIO_FN_A12, A12_MARK), | ||
1668 | PINMUX_GPIO(GPIO_FN_A11, A11_MARK), | ||
1669 | PINMUX_GPIO(GPIO_FN_A10, A10_MARK), | ||
1670 | PINMUX_GPIO(GPIO_FN_A9, A9_MARK), | ||
1671 | PINMUX_GPIO(GPIO_FN_A8, A8_MARK), | ||
1672 | PINMUX_GPIO(GPIO_FN_EVENT5, EVENT5_MARK), | ||
1673 | PINMUX_GPIO(GPIO_FN_EVENT4, EVENT4_MARK), | ||
1674 | PINMUX_GPIO(GPIO_FN_EVENT3, EVENT3_MARK), | ||
1675 | PINMUX_GPIO(GPIO_FN_EVENT2, EVENT2_MARK), | ||
1676 | PINMUX_GPIO(GPIO_FN_EVENT1, EVENT1_MARK), | ||
1677 | PINMUX_GPIO(GPIO_FN_EVENT0, EVENT0_MARK), | ||
1678 | PINMUX_GPIO(GPIO_FN_CTS4, CTS4_MARK), | ||
1679 | PINMUX_GPIO(GPIO_FN_CTS2, CTS2_MARK), | ||
1680 | |||
1681 | /* PTX (mobule: LBSC) */ | ||
1682 | PINMUX_GPIO(GPIO_FN_A7, A7_MARK), | ||
1683 | PINMUX_GPIO(GPIO_FN_A6, A6_MARK), | ||
1684 | PINMUX_GPIO(GPIO_FN_A5, A5_MARK), | ||
1685 | PINMUX_GPIO(GPIO_FN_A4, A4_MARK), | ||
1686 | PINMUX_GPIO(GPIO_FN_A3, A3_MARK), | ||
1687 | PINMUX_GPIO(GPIO_FN_A2, A2_MARK), | ||
1688 | PINMUX_GPIO(GPIO_FN_A1, A1_MARK), | ||
1689 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
1690 | PINMUX_GPIO(GPIO_FN_RTS2, RTS2_MARK), | ||
1691 | PINMUX_GPIO(GPIO_FN_SIM_D, SIM_D_MARK), | ||
1692 | PINMUX_GPIO(GPIO_FN_SIM_CLK, SIM_CLK_MARK), | ||
1693 | PINMUX_GPIO(GPIO_FN_SIM_RST, SIM_RST_MARK), | ||
1694 | |||
1695 | /* PTY (mobule: LBSC) */ | ||
1696 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1697 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1698 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1699 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1700 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1701 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1702 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1703 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1704 | |||
1705 | /* PTZ (mobule: eMMC, ONFI) */ | ||
1706 | PINMUX_GPIO(GPIO_FN_MMCDAT7, MMCDAT7_MARK), | ||
1707 | PINMUX_GPIO(GPIO_FN_MMCDAT6, MMCDAT6_MARK), | ||
1708 | PINMUX_GPIO(GPIO_FN_MMCDAT5, MMCDAT5_MARK), | ||
1709 | PINMUX_GPIO(GPIO_FN_MMCDAT4, MMCDAT4_MARK), | ||
1710 | PINMUX_GPIO(GPIO_FN_MMCDAT3, MMCDAT3_MARK), | ||
1711 | PINMUX_GPIO(GPIO_FN_MMCDAT2, MMCDAT2_MARK), | ||
1712 | PINMUX_GPIO(GPIO_FN_MMCDAT1, MMCDAT1_MARK), | ||
1713 | PINMUX_GPIO(GPIO_FN_MMCDAT0, MMCDAT0_MARK), | ||
1714 | PINMUX_GPIO(GPIO_FN_ON_DQ7, ON_DQ7_MARK), | ||
1715 | PINMUX_GPIO(GPIO_FN_ON_DQ6, ON_DQ6_MARK), | ||
1716 | PINMUX_GPIO(GPIO_FN_ON_DQ5, ON_DQ5_MARK), | ||
1717 | PINMUX_GPIO(GPIO_FN_ON_DQ4, ON_DQ4_MARK), | ||
1718 | PINMUX_GPIO(GPIO_FN_ON_DQ3, ON_DQ3_MARK), | ||
1719 | PINMUX_GPIO(GPIO_FN_ON_DQ2, ON_DQ2_MARK), | ||
1720 | PINMUX_GPIO(GPIO_FN_ON_DQ1, ON_DQ1_MARK), | ||
1721 | PINMUX_GPIO(GPIO_FN_ON_DQ0, ON_DQ0_MARK), | ||
1722 | }; | ||
1723 | |||
1724 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1725 | { PINMUX_CFG_REG("PACR", 0xffec0000, 16, 2) { | ||
1726 | PTA7_FN, PTA7_OUT, PTA7_IN, PTA7_IN_PU, | ||
1727 | PTA6_FN, PTA6_OUT, PTA6_IN, PTA6_IN_PU, | ||
1728 | PTA5_FN, PTA5_OUT, PTA5_IN, PTA5_IN_PU, | ||
1729 | PTA4_FN, PTA4_OUT, PTA4_IN, PTA4_IN_PU, | ||
1730 | PTA3_FN, PTA3_OUT, PTA3_IN, PTA3_IN_PU, | ||
1731 | PTA2_FN, PTA2_OUT, PTA2_IN, PTA2_IN_PU, | ||
1732 | PTA1_FN, PTA1_OUT, PTA1_IN, PTA1_IN_PU, | ||
1733 | PTA0_FN, PTA0_OUT, PTA0_IN, PTA0_IN_PU } | ||
1734 | }, | ||
1735 | { PINMUX_CFG_REG("PBCR", 0xffec0002, 16, 2) { | ||
1736 | PTB7_FN, PTB7_OUT, PTB7_IN, 0, | ||
1737 | PTB6_FN, PTB6_OUT, PTB6_IN, 0, | ||
1738 | PTB5_FN, PTB5_OUT, PTB5_IN, 0, | ||
1739 | PTB4_FN, PTB4_OUT, PTB4_IN, 0, | ||
1740 | PTB3_FN, PTB3_OUT, PTB3_IN, 0, | ||
1741 | PTB2_FN, PTB2_OUT, PTB2_IN, 0, | ||
1742 | PTB1_FN, PTB1_OUT, PTB1_IN, 0, | ||
1743 | PTB0_FN, PTB0_OUT, PTB0_IN, 0 } | ||
1744 | }, | ||
1745 | { PINMUX_CFG_REG("PCCR", 0xffec0004, 16, 2) { | ||
1746 | PTC7_FN, PTC7_OUT, PTC7_IN, 0, | ||
1747 | PTC6_FN, PTC6_OUT, PTC6_IN, 0, | ||
1748 | PTC5_FN, PTC5_OUT, PTC5_IN, 0, | ||
1749 | PTC4_FN, PTC4_OUT, PTC4_IN, 0, | ||
1750 | PTC3_FN, PTC3_OUT, PTC3_IN, 0, | ||
1751 | PTC2_FN, PTC2_OUT, PTC2_IN, 0, | ||
1752 | PTC1_FN, PTC1_OUT, PTC1_IN, 0, | ||
1753 | PTC0_FN, PTC0_OUT, PTC0_IN, 0 } | ||
1754 | }, | ||
1755 | { PINMUX_CFG_REG("PDCR", 0xffec0006, 16, 2) { | ||
1756 | PTD7_FN, PTD7_OUT, PTD7_IN, PTD7_IN_PU, | ||
1757 | PTD6_FN, PTD6_OUT, PTD6_IN, PTD6_IN_PU, | ||
1758 | PTD5_FN, PTD5_OUT, PTD5_IN, PTD5_IN_PU, | ||
1759 | PTD4_FN, PTD4_OUT, PTD4_IN, PTD4_IN_PU, | ||
1760 | PTD3_FN, PTD3_OUT, PTD3_IN, PTD3_IN_PU, | ||
1761 | PTD2_FN, PTD2_OUT, PTD2_IN, PTD2_IN_PU, | ||
1762 | PTD1_FN, PTD1_OUT, PTD1_IN, PTD1_IN_PU, | ||
1763 | PTD0_FN, PTD0_OUT, PTD0_IN, PTD0_IN_PU } | ||
1764 | }, | ||
1765 | { PINMUX_CFG_REG("PECR", 0xffec0008, 16, 2) { | ||
1766 | PTE7_FN, PTE7_OUT, PTE7_IN, PTE7_IN_PU, | ||
1767 | PTE6_FN, PTE6_OUT, PTE6_IN, PTE6_IN_PU, | ||
1768 | PTE5_FN, PTE5_OUT, PTE5_IN, PTE5_IN_PU, | ||
1769 | PTE4_FN, PTE4_OUT, PTE4_IN, PTE4_IN_PU, | ||
1770 | PTE3_FN, PTE3_OUT, PTE3_IN, PTE3_IN_PU, | ||
1771 | PTE2_FN, PTE2_OUT, PTE2_IN, PTE2_IN_PU, | ||
1772 | PTE1_FN, PTE1_OUT, PTE1_IN, PTE1_IN_PU, | ||
1773 | PTE0_FN, PTE0_OUT, PTE0_IN, PTE0_IN_PU } | ||
1774 | }, | ||
1775 | { PINMUX_CFG_REG("PFCR", 0xffec000a, 16, 2) { | ||
1776 | PTF7_FN, PTF7_OUT, PTF7_IN, PTF7_IN_PU, | ||
1777 | PTF6_FN, PTF6_OUT, PTF6_IN, PTF6_IN_PU, | ||
1778 | PTF5_FN, PTF5_OUT, PTF5_IN, PTF5_IN_PU, | ||
1779 | PTF4_FN, PTF4_OUT, PTF4_IN, PTF4_IN_PU, | ||
1780 | PTF3_FN, PTF3_OUT, PTF3_IN, PTF3_IN_PU, | ||
1781 | PTF2_FN, PTF2_OUT, PTF2_IN, PTF2_IN_PU, | ||
1782 | PTF1_FN, PTF1_OUT, PTF1_IN, PTF1_IN_PU, | ||
1783 | PTF0_FN, PTF0_OUT, PTF0_IN, PTF0_IN_PU } | ||
1784 | }, | ||
1785 | { PINMUX_CFG_REG("PGCR", 0xffec000c, 16, 2) { | ||
1786 | PTG7_FN, PTG7_OUT, PTG7_IN, PTG7_IN_PU , | ||
1787 | PTG6_FN, PTG6_OUT, PTG6_IN, PTG6_IN_PU , | ||
1788 | PTG5_FN, PTG5_OUT, PTG5_IN, 0, | ||
1789 | PTG4_FN, PTG4_OUT, PTG4_IN, PTG4_IN_PU , | ||
1790 | PTG3_FN, PTG3_OUT, PTG3_IN, 0, | ||
1791 | PTG2_FN, PTG2_OUT, PTG2_IN, 0, | ||
1792 | PTG1_FN, PTG1_OUT, PTG1_IN, 0, | ||
1793 | PTG0_FN, PTG0_OUT, PTG0_IN, 0 } | ||
1794 | }, | ||
1795 | { PINMUX_CFG_REG("PHCR", 0xffec000e, 16, 2) { | ||
1796 | PTH7_FN, PTH7_OUT, PTH7_IN, PTH7_IN_PU, | ||
1797 | PTH6_FN, PTH6_OUT, PTH6_IN, PTH6_IN_PU, | ||
1798 | PTH5_FN, PTH5_OUT, PTH5_IN, PTH5_IN_PU, | ||
1799 | PTH4_FN, PTH4_OUT, PTH4_IN, PTH4_IN_PU, | ||
1800 | PTH3_FN, PTH3_OUT, PTH3_IN, PTH3_IN_PU, | ||
1801 | PTH2_FN, PTH2_OUT, PTH2_IN, PTH2_IN_PU, | ||
1802 | PTH1_FN, PTH1_OUT, PTH1_IN, PTH1_IN_PU, | ||
1803 | PTH0_FN, PTH0_OUT, PTH0_IN, PTH0_IN_PU } | ||
1804 | }, | ||
1805 | { PINMUX_CFG_REG("PICR", 0xffec0010, 16, 2) { | ||
1806 | PTI7_FN, PTI7_OUT, PTI7_IN, PTI7_IN_PU, | ||
1807 | PTI6_FN, PTI6_OUT, PTI6_IN, PTI6_IN_PU, | ||
1808 | PTI5_FN, PTI5_OUT, PTI5_IN, 0, | ||
1809 | PTI4_FN, PTI4_OUT, PTI4_IN, PTI4_IN_PU, | ||
1810 | PTI3_FN, PTI3_OUT, PTI3_IN, PTI3_IN_PU, | ||
1811 | PTI2_FN, PTI2_OUT, PTI2_IN, PTI2_IN_PU, | ||
1812 | PTI1_FN, PTI1_OUT, PTI1_IN, PTI1_IN_PU, | ||
1813 | PTI0_FN, PTI0_OUT, PTI0_IN, PTI0_IN_PU } | ||
1814 | }, | ||
1815 | { PINMUX_CFG_REG("PJCR", 0xffec0012, 16, 2) { | ||
1816 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1817 | PTJ6_FN, PTJ6_OUT, PTJ6_IN, PTJ6_IN_PU, | ||
1818 | PTJ5_FN, PTJ5_OUT, PTJ5_IN, PTJ5_IN_PU, | ||
1819 | PTJ4_FN, PTJ4_OUT, PTJ4_IN, PTJ4_IN_PU, | ||
1820 | PTJ3_FN, PTJ3_OUT, PTJ3_IN, PTJ3_IN_PU, | ||
1821 | PTJ2_FN, PTJ2_OUT, PTJ2_IN, PTJ2_IN_PU, | ||
1822 | PTJ1_FN, PTJ1_OUT, PTJ1_IN, PTJ1_IN_PU, | ||
1823 | PTJ0_FN, PTJ0_OUT, PTJ0_IN, PTJ0_IN_PU } | ||
1824 | }, | ||
1825 | { PINMUX_CFG_REG("PKCR", 0xffec0014, 16, 2) { | ||
1826 | PTK7_FN, PTK7_OUT, PTK7_IN, PTK7_IN_PU, | ||
1827 | PTK6_FN, PTK6_OUT, PTK6_IN, PTK6_IN_PU, | ||
1828 | PTK5_FN, PTK5_OUT, PTK5_IN, PTK5_IN_PU, | ||
1829 | PTK4_FN, PTK4_OUT, PTK4_IN, PTK4_IN_PU, | ||
1830 | PTK3_FN, PTK3_OUT, PTK3_IN, PTK3_IN_PU, | ||
1831 | PTK2_FN, PTK2_OUT, PTK2_IN, PTK2_IN_PU, | ||
1832 | PTK1_FN, PTK1_OUT, PTK1_IN, PTK1_IN_PU, | ||
1833 | PTK0_FN, PTK0_OUT, PTK0_IN, PTK0_IN_PU } | ||
1834 | }, | ||
1835 | { PINMUX_CFG_REG("PLCR", 0xffec0016, 16, 2) { | ||
1836 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1837 | PTL6_FN, PTL6_OUT, PTL6_IN, PTL6_IN_PU, | ||
1838 | PTL5_FN, PTL5_OUT, PTL5_IN, PTL5_IN_PU, | ||
1839 | PTL4_FN, PTL4_OUT, PTL4_IN, PTL4_IN_PU, | ||
1840 | PTL3_FN, PTL3_OUT, PTL3_IN, PTL3_IN_PU, | ||
1841 | PTL2_FN, PTL2_OUT, PTL2_IN, PTL2_IN_PU, | ||
1842 | PTL1_FN, PTL1_OUT, PTL1_IN, PTL1_IN_PU, | ||
1843 | PTL0_FN, PTL0_OUT, PTL0_IN, PTL0_IN_PU } | ||
1844 | }, | ||
1845 | { PINMUX_CFG_REG("PMCR", 0xffec0018, 16, 2) { | ||
1846 | PTM7_FN, PTM7_OUT, PTM7_IN, PTM7_IN_PU, | ||
1847 | PTM6_FN, PTM6_OUT, PTM6_IN, PTM6_IN_PU, | ||
1848 | PTM5_FN, PTM5_OUT, PTM5_IN, PTM5_IN_PU, | ||
1849 | PTM4_FN, PTM4_OUT, PTM4_IN, PTM4_IN_PU, | ||
1850 | PTM3_FN, PTM3_OUT, PTM3_IN, 0, | ||
1851 | PTM2_FN, PTM2_OUT, PTM2_IN, 0, | ||
1852 | PTM1_FN, PTM1_OUT, PTM1_IN, 0, | ||
1853 | PTM0_FN, PTM0_OUT, PTM0_IN, 0 } | ||
1854 | }, | ||
1855 | { PINMUX_CFG_REG("PNCR", 0xffec001a, 16, 2) { | ||
1856 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1857 | PTN6_FN, PTN6_OUT, PTN6_IN, 0, | ||
1858 | PTN5_FN, PTN5_OUT, PTN5_IN, 0, | ||
1859 | PTN4_FN, PTN4_OUT, PTN4_IN, PTN4_IN_PU, | ||
1860 | PTN3_FN, PTN3_OUT, PTN3_IN, PTN3_IN_PU, | ||
1861 | PTN2_FN, PTN2_OUT, PTN2_IN, PTN2_IN_PU, | ||
1862 | PTN1_FN, PTN1_OUT, PTN1_IN, PTN1_IN_PU, | ||
1863 | PTN0_FN, PTN0_OUT, PTN0_IN, PTN0_IN_PU } | ||
1864 | }, | ||
1865 | { PINMUX_CFG_REG("POCR", 0xffec001c, 16, 2) { | ||
1866 | PTO7_FN, PTO7_OUT, PTO7_IN, PTO7_IN_PU, | ||
1867 | PTO6_FN, PTO6_OUT, PTO6_IN, PTO6_IN_PU, | ||
1868 | PTO5_FN, PTO5_OUT, PTO5_IN, PTO5_IN_PU, | ||
1869 | PTO4_FN, PTO4_OUT, PTO4_IN, PTO4_IN_PU, | ||
1870 | PTO3_FN, PTO3_OUT, PTO3_IN, PTO3_IN_PU, | ||
1871 | PTO2_FN, PTO2_OUT, PTO2_IN, PTO2_IN_PU, | ||
1872 | PTO1_FN, PTO1_OUT, PTO1_IN, PTO1_IN_PU, | ||
1873 | PTO0_FN, PTO0_OUT, PTO0_IN, PTO0_IN_PU } | ||
1874 | }, | ||
1875 | #if 0 /* FIXME: Remove it? */ | ||
1876 | { PINMUX_CFG_REG("PPCR", 0xffec001e, 16, 2) { | ||
1877 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1878 | PTP6_FN, PTP6_OUT, PTP6_IN, 0, | ||
1879 | PTP5_FN, PTP5_OUT, PTP5_IN, 0, | ||
1880 | PTP4_FN, PTP4_OUT, PTP4_IN, 0, | ||
1881 | PTP3_FN, PTP3_OUT, PTP3_IN, 0, | ||
1882 | PTP2_FN, PTP2_OUT, PTP2_IN, 0, | ||
1883 | PTP1_FN, PTP1_OUT, PTP1_IN, 0, | ||
1884 | PTP0_FN, PTP0_OUT, PTP0_IN, 0 } | ||
1885 | }, | ||
1886 | #endif | ||
1887 | { PINMUX_CFG_REG("PQCR", 0xffec0020, 16, 2) { | ||
1888 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1889 | PTQ6_FN, PTQ6_OUT, PTQ6_IN, 0, | ||
1890 | PTQ5_FN, PTQ5_OUT, PTQ5_IN, 0, | ||
1891 | PTQ4_FN, PTQ4_OUT, PTQ4_IN, 0, | ||
1892 | PTQ3_FN, PTQ3_OUT, PTQ3_IN, 0, | ||
1893 | PTQ2_FN, PTQ2_OUT, PTQ2_IN, 0, | ||
1894 | PTQ1_FN, PTQ1_OUT, PTQ1_IN, 0, | ||
1895 | PTQ0_FN, PTQ0_OUT, PTQ0_IN, 0 } | ||
1896 | }, | ||
1897 | { PINMUX_CFG_REG("PRCR", 0xffec0022, 16, 2) { | ||
1898 | PTR7_FN, PTR7_OUT, PTR7_IN, 0, | ||
1899 | PTR6_FN, PTR6_OUT, PTR6_IN, 0, | ||
1900 | PTR5_FN, PTR5_OUT, PTR5_IN, 0, | ||
1901 | PTR4_FN, PTR4_OUT, PTR4_IN, 0, | ||
1902 | PTR3_FN, PTR3_OUT, PTR3_IN, 0, | ||
1903 | PTR2_FN, PTR2_OUT, PTR2_IN, 0, | ||
1904 | PTR1_FN, PTR1_OUT, PTR1_IN, 0, | ||
1905 | PTR0_FN, PTR0_OUT, PTR0_IN, 0 } | ||
1906 | }, | ||
1907 | { PINMUX_CFG_REG("PSCR", 0xffec0024, 16, 2) { | ||
1908 | PTS7_FN, PTS7_OUT, PTS7_IN, 0, | ||
1909 | PTS6_FN, PTS6_OUT, PTS6_IN, 0, | ||
1910 | PTS5_FN, PTS5_OUT, PTS5_IN, 0, | ||
1911 | PTS4_FN, PTS4_OUT, PTS4_IN, 0, | ||
1912 | PTS3_FN, PTS3_OUT, PTS3_IN, 0, | ||
1913 | PTS2_FN, PTS2_OUT, PTS2_IN, 0, | ||
1914 | PTS1_FN, PTS1_OUT, PTS1_IN, 0, | ||
1915 | PTS0_FN, PTS0_OUT, PTS0_IN, 0 } | ||
1916 | }, | ||
1917 | { PINMUX_CFG_REG("PTCR", 0xffec0026, 16, 2) { | ||
1918 | PTT7_FN, PTT7_OUT, PTT7_IN, PTO7_IN_PU, | ||
1919 | PTT6_FN, PTT6_OUT, PTT6_IN, PTO6_IN_PU, | ||
1920 | PTT5_FN, PTT5_OUT, PTT5_IN, PTO5_IN_PU, | ||
1921 | PTT4_FN, PTT4_OUT, PTT4_IN, PTO4_IN_PU, | ||
1922 | PTT3_FN, PTT3_OUT, PTT3_IN, PTO3_IN_PU, | ||
1923 | PTT2_FN, PTT2_OUT, PTT2_IN, PTO2_IN_PU, | ||
1924 | PTT1_FN, PTT1_OUT, PTT1_IN, PTO1_IN_PU, | ||
1925 | PTT0_FN, PTT0_OUT, PTT0_IN, PTO0_IN_PU } | ||
1926 | }, | ||
1927 | { PINMUX_CFG_REG("PUCR", 0xffec0028, 16, 2) { | ||
1928 | PTU7_FN, PTU7_OUT, PTU7_IN, PTU7_IN_PU, | ||
1929 | PTU6_FN, PTU6_OUT, PTU6_IN, PTU6_IN_PU, | ||
1930 | PTU5_FN, PTU5_OUT, PTU5_IN, PTU5_IN_PU, | ||
1931 | PTU4_FN, PTU4_OUT, PTU4_IN, PTU4_IN_PU, | ||
1932 | PTU3_FN, PTU3_OUT, PTU3_IN, PTU3_IN_PU, | ||
1933 | PTU2_FN, PTU2_OUT, PTU2_IN, PTU2_IN_PU, | ||
1934 | PTU1_FN, PTU1_OUT, PTU1_IN, PTU1_IN_PU, | ||
1935 | PTU0_FN, PTU0_OUT, PTU0_IN, PTU0_IN_PU } | ||
1936 | }, | ||
1937 | { PINMUX_CFG_REG("PVCR", 0xffec002a, 16, 2) { | ||
1938 | PTV7_FN, PTV7_OUT, PTV7_IN, PTV7_IN_PU, | ||
1939 | PTV6_FN, PTV6_OUT, PTV6_IN, PTV6_IN_PU, | ||
1940 | PTV5_FN, PTV5_OUT, PTV5_IN, PTV5_IN_PU, | ||
1941 | PTV4_FN, PTV4_OUT, PTV4_IN, PTV4_IN_PU, | ||
1942 | PTV3_FN, PTV3_OUT, PTV3_IN, PTV3_IN_PU, | ||
1943 | PTV2_FN, PTV2_OUT, PTV2_IN, PTV2_IN_PU, | ||
1944 | PTV1_FN, PTV1_OUT, PTV1_IN, 0, | ||
1945 | PTV0_FN, PTV0_OUT, PTV0_IN, 0 } | ||
1946 | }, | ||
1947 | { PINMUX_CFG_REG("PWCR", 0xffec002c, 16, 2) { | ||
1948 | PTW7_FN, PTW7_OUT, PTW7_IN, 0, | ||
1949 | PTW6_FN, PTW6_OUT, PTW6_IN, 0, | ||
1950 | PTW5_FN, PTW5_OUT, PTW5_IN, 0, | ||
1951 | PTW4_FN, PTW4_OUT, PTW4_IN, 0, | ||
1952 | PTW3_FN, PTW3_OUT, PTW3_IN, 0, | ||
1953 | PTW2_FN, PTW2_OUT, PTW2_IN, 0, | ||
1954 | PTW1_FN, PTW1_OUT, PTW1_IN, PTW1_IN_PU, | ||
1955 | PTW0_FN, PTW0_OUT, PTW0_IN, PTW0_IN_PU } | ||
1956 | }, | ||
1957 | { PINMUX_CFG_REG("PXCR", 0xffec002e, 16, 2) { | ||
1958 | PTX7_FN, PTX7_OUT, PTX7_IN, PTX7_IN_PU, | ||
1959 | PTX6_FN, PTX6_OUT, PTX6_IN, PTX6_IN_PU, | ||
1960 | PTX5_FN, PTX5_OUT, PTX5_IN, PTX5_IN_PU, | ||
1961 | PTX4_FN, PTX4_OUT, PTX4_IN, PTX4_IN_PU, | ||
1962 | PTX3_FN, PTX3_OUT, PTX3_IN, PTX3_IN_PU, | ||
1963 | PTX2_FN, PTX2_OUT, PTX2_IN, PTX2_IN_PU, | ||
1964 | PTX1_FN, PTX1_OUT, PTX1_IN, PTX1_IN_PU, | ||
1965 | PTX0_FN, PTX0_OUT, PTX0_IN, PTX0_IN_PU } | ||
1966 | }, | ||
1967 | { PINMUX_CFG_REG("PYCR", 0xffec0030, 16, 2) { | ||
1968 | PTY7_FN, PTY7_OUT, PTY7_IN, PTY7_IN_PU, | ||
1969 | PTY6_FN, PTY6_OUT, PTY6_IN, PTY6_IN_PU, | ||
1970 | PTY5_FN, PTY5_OUT, PTY5_IN, PTY5_IN_PU, | ||
1971 | PTY4_FN, PTY4_OUT, PTY4_IN, PTY4_IN_PU, | ||
1972 | PTY3_FN, PTY3_OUT, PTY3_IN, PTY3_IN_PU, | ||
1973 | PTY2_FN, PTY2_OUT, PTY2_IN, PTY2_IN_PU, | ||
1974 | PTY1_FN, PTY1_OUT, PTY1_IN, PTY1_IN_PU, | ||
1975 | PTY0_FN, PTY0_OUT, PTY0_IN, PTY0_IN_PU } | ||
1976 | }, | ||
1977 | { PINMUX_CFG_REG("PZCR", 0xffec0032, 16, 2) { | ||
1978 | PTZ7_FN, PTZ7_OUT, PTZ7_IN, 0, | ||
1979 | PTZ6_FN, PTZ6_OUT, PTZ6_IN, 0, | ||
1980 | PTZ5_FN, PTZ5_OUT, PTZ5_IN, 0, | ||
1981 | PTZ4_FN, PTZ4_OUT, PTZ4_IN, 0, | ||
1982 | PTZ3_FN, PTZ3_OUT, PTZ3_IN, 0, | ||
1983 | PTZ2_FN, PTZ2_OUT, PTZ2_IN, 0, | ||
1984 | PTZ1_FN, PTZ1_OUT, PTZ1_IN, 0, | ||
1985 | PTZ0_FN, PTZ0_OUT, PTZ0_IN, 0 } | ||
1986 | }, | ||
1987 | |||
1988 | { PINMUX_CFG_REG("PSEL0", 0xffec0070, 16, 1) { | ||
1989 | PS0_15_FN1, PS0_15_FN2, | ||
1990 | PS0_14_FN1, PS0_14_FN2, | ||
1991 | PS0_13_FN1, PS0_13_FN2, | ||
1992 | PS0_12_FN1, PS0_12_FN2, | ||
1993 | PS0_11_FN1, PS0_11_FN2, | ||
1994 | PS0_10_FN1, PS0_10_FN2, | ||
1995 | PS0_9_FN1, PS0_9_FN2, | ||
1996 | PS0_8_FN1, PS0_8_FN2, | ||
1997 | PS0_7_FN1, PS0_7_FN2, | ||
1998 | PS0_6_FN1, PS0_6_FN2, | ||
1999 | PS0_5_FN1, PS0_5_FN2, | ||
2000 | PS0_4_FN1, PS0_4_FN2, | ||
2001 | PS0_3_FN1, PS0_3_FN2, | ||
2002 | PS0_2_FN1, PS0_2_FN2, | ||
2003 | 0, 0, | ||
2004 | 0, 0, } | ||
2005 | }, | ||
2006 | { PINMUX_CFG_REG("PSEL1", 0xffec0072, 16, 1) { | ||
2007 | 0, 0, | ||
2008 | 0, 0, | ||
2009 | 0, 0, | ||
2010 | 0, 0, | ||
2011 | 0, 0, | ||
2012 | PS1_10_FN1, PS1_10_FN2, | ||
2013 | PS1_9_FN1, PS1_9_FN2, | ||
2014 | PS1_8_FN1, PS1_8_FN2, | ||
2015 | 0, 0, | ||
2016 | 0, 0, | ||
2017 | 0, 0, | ||
2018 | 0, 0, | ||
2019 | 0, 0, | ||
2020 | PS1_2_FN1, PS1_2_FN2, | ||
2021 | 0, 0, | ||
2022 | 0, 0, } | ||
2023 | }, | ||
2024 | { PINMUX_CFG_REG("PSEL2", 0xffec0074, 16, 1) { | ||
2025 | 0, 0, | ||
2026 | 0, 0, | ||
2027 | PS2_13_FN1, PS2_13_FN2, | ||
2028 | PS2_12_FN1, PS2_12_FN2, | ||
2029 | 0, 0, | ||
2030 | 0, 0, | ||
2031 | 0, 0, | ||
2032 | 0, 0, | ||
2033 | PS2_7_FN1, PS2_7_FN2, | ||
2034 | PS2_6_FN1, PS2_6_FN2, | ||
2035 | PS2_5_FN1, PS2_5_FN2, | ||
2036 | PS2_4_FN1, PS2_4_FN2, | ||
2037 | 0, 0, | ||
2038 | PS2_2_FN1, PS2_2_FN2, | ||
2039 | 0, 0, | ||
2040 | 0, 0, } | ||
2041 | }, | ||
2042 | { PINMUX_CFG_REG("PSEL3", 0xffec0076, 16, 1) { | ||
2043 | PS3_15_FN1, PS3_15_FN2, | ||
2044 | PS3_14_FN1, PS3_14_FN2, | ||
2045 | PS3_13_FN1, PS3_13_FN2, | ||
2046 | PS3_12_FN1, PS3_12_FN2, | ||
2047 | PS3_11_FN1, PS3_11_FN2, | ||
2048 | PS3_10_FN1, PS3_10_FN2, | ||
2049 | PS3_9_FN1, PS3_9_FN2, | ||
2050 | PS3_8_FN1, PS3_8_FN2, | ||
2051 | PS3_7_FN1, PS3_7_FN2, | ||
2052 | 0, 0, | ||
2053 | 0, 0, | ||
2054 | 0, 0, | ||
2055 | 0, 0, | ||
2056 | PS3_2_FN1, PS3_2_FN2, | ||
2057 | PS3_1_FN1, PS3_1_FN2, | ||
2058 | 0, 0, } | ||
2059 | }, | ||
2060 | |||
2061 | { PINMUX_CFG_REG("PSEL4", 0xffec0078, 16, 1) { | ||
2062 | 0, 0, | ||
2063 | PS4_14_FN1, PS4_14_FN2, | ||
2064 | PS4_13_FN1, PS4_13_FN2, | ||
2065 | PS4_12_FN1, PS4_12_FN2, | ||
2066 | 0, 0, | ||
2067 | PS4_10_FN1, PS4_10_FN2, | ||
2068 | PS4_9_FN1, PS4_9_FN2, | ||
2069 | PS4_8_FN1, PS4_8_FN2, | ||
2070 | 0, 0, | ||
2071 | 0, 0, | ||
2072 | 0, 0, | ||
2073 | PS4_4_FN1, PS4_4_FN2, | ||
2074 | PS4_3_FN1, PS4_3_FN2, | ||
2075 | PS4_2_FN1, PS4_2_FN2, | ||
2076 | PS4_1_FN1, PS4_1_FN2, | ||
2077 | PS4_0_FN1, PS4_0_FN2, } | ||
2078 | }, | ||
2079 | { PINMUX_CFG_REG("PSEL5", 0xffec007a, 16, 1) { | ||
2080 | 0, 0, | ||
2081 | 0, 0, | ||
2082 | 0, 0, | ||
2083 | 0, 0, | ||
2084 | PS5_11_FN1, PS5_11_FN2, | ||
2085 | PS5_10_FN1, PS5_10_FN2, | ||
2086 | PS5_9_FN1, PS5_9_FN2, | ||
2087 | PS5_8_FN1, PS5_8_FN2, | ||
2088 | PS5_7_FN1, PS5_7_FN2, | ||
2089 | PS5_6_FN1, PS5_6_FN2, | ||
2090 | PS5_5_FN1, PS5_5_FN2, | ||
2091 | PS5_4_FN1, PS5_4_FN2, | ||
2092 | PS5_3_FN1, PS5_3_FN2, | ||
2093 | PS5_2_FN1, PS5_2_FN2, | ||
2094 | 0, 0, | ||
2095 | 0, 0, } | ||
2096 | }, | ||
2097 | { PINMUX_CFG_REG("PSEL6", 0xffec007c, 16, 1) { | ||
2098 | PS6_15_FN1, PS6_15_FN2, | ||
2099 | PS6_14_FN1, PS6_14_FN2, | ||
2100 | PS6_13_FN1, PS6_13_FN2, | ||
2101 | PS6_12_FN1, PS6_12_FN2, | ||
2102 | PS6_11_FN1, PS6_11_FN2, | ||
2103 | PS6_10_FN1, PS6_10_FN2, | ||
2104 | PS6_9_FN1, PS6_9_FN2, | ||
2105 | PS6_8_FN1, PS6_8_FN2, | ||
2106 | PS6_7_FN1, PS6_7_FN2, | ||
2107 | PS6_6_FN1, PS6_6_FN2, | ||
2108 | PS6_5_FN1, PS6_5_FN2, | ||
2109 | PS6_4_FN1, PS6_4_FN2, | ||
2110 | PS6_3_FN1, PS6_3_FN2, | ||
2111 | PS6_2_FN1, PS6_2_FN2, | ||
2112 | PS6_1_FN1, PS6_1_FN2, | ||
2113 | PS6_0_FN1, PS6_0_FN2, } | ||
2114 | }, | ||
2115 | { PINMUX_CFG_REG("PSEL7", 0xffec0082, 16, 1) { | ||
2116 | PS7_15_FN1, PS7_15_FN2, | ||
2117 | PS7_14_FN1, PS7_14_FN2, | ||
2118 | PS7_13_FN1, PS7_13_FN2, | ||
2119 | PS7_12_FN1, PS7_12_FN2, | ||
2120 | PS7_11_FN1, PS7_11_FN2, | ||
2121 | PS7_10_FN1, PS7_10_FN2, | ||
2122 | PS7_9_FN1, PS7_9_FN2, | ||
2123 | PS7_8_FN1, PS7_8_FN2, | ||
2124 | PS7_7_FN1, PS7_7_FN2, | ||
2125 | PS7_6_FN1, PS7_6_FN2, | ||
2126 | PS7_5_FN1, PS7_5_FN2, | ||
2127 | 0, 0, | ||
2128 | 0, 0, | ||
2129 | 0, 0, | ||
2130 | 0, 0, | ||
2131 | 0, 0, } | ||
2132 | }, | ||
2133 | { PINMUX_CFG_REG("PSEL8", 0xffec0084, 16, 1) { | ||
2134 | PS8_15_FN1, PS8_15_FN2, | ||
2135 | PS8_14_FN1, PS8_14_FN2, | ||
2136 | PS8_13_FN1, PS8_13_FN2, | ||
2137 | PS8_12_FN1, PS8_12_FN2, | ||
2138 | PS8_11_FN1, PS8_11_FN2, | ||
2139 | PS8_10_FN1, PS8_10_FN2, | ||
2140 | PS8_9_FN1, PS8_9_FN2, | ||
2141 | PS8_8_FN1, PS8_8_FN2, | ||
2142 | 0, 0, | ||
2143 | 0, 0, | ||
2144 | 0, 0, | ||
2145 | 0, 0, | ||
2146 | 0, 0, | ||
2147 | 0, 0, | ||
2148 | 0, 0, | ||
2149 | 0, 0, } | ||
2150 | }, | ||
2151 | {} | ||
2152 | }; | ||
2153 | |||
2154 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2155 | { PINMUX_DATA_REG("PADR", 0xffec0034, 8) { | ||
2156 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
2157 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
2158 | }, | ||
2159 | { PINMUX_DATA_REG("PBDR", 0xffec0036, 8) { | ||
2160 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
2161 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
2162 | }, | ||
2163 | { PINMUX_DATA_REG("PCDR", 0xffec0038, 8) { | ||
2164 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
2165 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
2166 | }, | ||
2167 | { PINMUX_DATA_REG("PDDR", 0xffec003a, 8) { | ||
2168 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
2169 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
2170 | }, | ||
2171 | { PINMUX_DATA_REG("PEDR", 0xffec003c, 8) { | ||
2172 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
2173 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
2174 | }, | ||
2175 | { PINMUX_DATA_REG("PFDR", 0xffec003e, 8) { | ||
2176 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
2177 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
2178 | }, | ||
2179 | { PINMUX_DATA_REG("PGDR", 0xffec0040, 8) { | ||
2180 | PTG7_DATA, PTG6_DATA, PTG5_DATA, PTG4_DATA, | ||
2181 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
2182 | }, | ||
2183 | { PINMUX_DATA_REG("PHDR", 0xffec0042, 8) { | ||
2184 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
2185 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
2186 | }, | ||
2187 | { PINMUX_DATA_REG("PIDR", 0xffec0044, 8) { | ||
2188 | PTI7_DATA, PTI6_DATA, PTI5_DATA, PTI4_DATA, | ||
2189 | PTI3_DATA, PTI2_DATA, PTI1_DATA, PTI0_DATA } | ||
2190 | }, | ||
2191 | { PINMUX_DATA_REG("PJDR", 0xffec0046, 8) { | ||
2192 | 0, PTJ6_DATA, PTJ5_DATA, PTJ4_DATA, | ||
2193 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
2194 | }, | ||
2195 | { PINMUX_DATA_REG("PKDR", 0xffec0048, 8) { | ||
2196 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
2197 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
2198 | }, | ||
2199 | { PINMUX_DATA_REG("PLDR", 0xffec004a, 8) { | ||
2200 | 0, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
2201 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
2202 | }, | ||
2203 | { PINMUX_DATA_REG("PMDR", 0xffec004c, 8) { | ||
2204 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
2205 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
2206 | }, | ||
2207 | { PINMUX_DATA_REG("PNDR", 0xffec004e, 8) { | ||
2208 | 0, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
2209 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
2210 | }, | ||
2211 | { PINMUX_DATA_REG("PODR", 0xffec0050, 8) { | ||
2212 | PTO7_DATA, PTO6_DATA, PTO5_DATA, PTO4_DATA, | ||
2213 | PTO3_DATA, PTO2_DATA, PTO1_DATA, PTO0_DATA } | ||
2214 | }, | ||
2215 | { PINMUX_DATA_REG("PPDR", 0xffec0052, 8) { | ||
2216 | PTP7_DATA, PTP6_DATA, PTP5_DATA, PTP4_DATA, | ||
2217 | PTP3_DATA, PTP2_DATA, PTP1_DATA, PTP0_DATA } | ||
2218 | }, | ||
2219 | { PINMUX_DATA_REG("PQDR", 0xffec0054, 8) { | ||
2220 | 0, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
2221 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
2222 | }, | ||
2223 | { PINMUX_DATA_REG("PRDR", 0xffec0056, 8) { | ||
2224 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
2225 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
2226 | }, | ||
2227 | { PINMUX_DATA_REG("PSDR", 0xffec0058, 8) { | ||
2228 | PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
2229 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
2230 | }, | ||
2231 | { PINMUX_DATA_REG("PTDR", 0xffec005a, 8) { | ||
2232 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
2233 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
2234 | }, | ||
2235 | { PINMUX_DATA_REG("PUDR", 0xffec005c, 8) { | ||
2236 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
2237 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
2238 | }, | ||
2239 | { PINMUX_DATA_REG("PVDR", 0xffec005e, 8) { | ||
2240 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
2241 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
2242 | }, | ||
2243 | { PINMUX_DATA_REG("PWDR", 0xffec0060, 8) { | ||
2244 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
2245 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
2246 | }, | ||
2247 | { PINMUX_DATA_REG("PXDR", 0xffec0062, 8) { | ||
2248 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
2249 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
2250 | }, | ||
2251 | { PINMUX_DATA_REG("PYDR", 0xffec0064, 8) { | ||
2252 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
2253 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
2254 | }, | ||
2255 | { PINMUX_DATA_REG("PZDR", 0xffec0066, 8) { | ||
2256 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
2257 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
2258 | }, | ||
2259 | { }, | ||
2260 | }; | ||
2261 | |||
2262 | static struct pinmux_info sh7757_pinmux_info = { | ||
2263 | .name = "sh7757_pfc", | ||
2264 | .reserved_id = PINMUX_RESERVED, | ||
2265 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2266 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
2267 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
2268 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
2269 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2270 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2271 | |||
2272 | .first_gpio = GPIO_PTA0, | ||
2273 | .last_gpio = GPIO_FN_ON_DQ0, | ||
2274 | |||
2275 | .gpios = pinmux_gpios, | ||
2276 | .cfg_regs = pinmux_config_regs, | ||
2277 | .data_regs = pinmux_data_regs, | ||
2278 | |||
2279 | .gpio_data = pinmux_data, | ||
2280 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2281 | }; | ||
2282 | 19 | ||
2283 | static int __init plat_pinmux_setup(void) | 20 | static int __init plat_pinmux_setup(void) |
2284 | { | 21 | { |
2285 | return register_pinmux(&sh7757_pinmux_info); | 22 | return sh_pfc_register("pfc-sh7757", NULL, 0); |
2286 | } | 23 | } |
2287 | arch_initcall(plat_pinmux_setup); | 24 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c index 5ebc25fd9b2a..01055b809f64 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c | |||
@@ -10,1301 +10,11 @@ | |||
10 | 10 | ||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/gpio.h> | 13 | #include <cpu/pfc.h> |
14 | #include <cpu/sh7785.h> | ||
15 | |||
16 | enum { | ||
17 | PINMUX_RESERVED = 0, | ||
18 | |||
19 | PINMUX_DATA_BEGIN, | ||
20 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
21 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
22 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
23 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, | ||
24 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
25 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
26 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
27 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
28 | PE5_DATA, PE4_DATA, PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
29 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
30 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
31 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
32 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
33 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
34 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
35 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
36 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA, | ||
37 | PK7_DATA, PK6_DATA, PK5_DATA, PK4_DATA, | ||
38 | PK3_DATA, PK2_DATA, PK1_DATA, PK0_DATA, | ||
39 | PL7_DATA, PL6_DATA, PL5_DATA, PL4_DATA, | ||
40 | PL3_DATA, PL2_DATA, PL1_DATA, PL0_DATA, | ||
41 | PM1_DATA, PM0_DATA, | ||
42 | PN7_DATA, PN6_DATA, PN5_DATA, PN4_DATA, | ||
43 | PN3_DATA, PN2_DATA, PN1_DATA, PN0_DATA, | ||
44 | PP5_DATA, PP4_DATA, PP3_DATA, PP2_DATA, PP1_DATA, PP0_DATA, | ||
45 | PQ4_DATA, PQ3_DATA, PQ2_DATA, PQ1_DATA, PQ0_DATA, | ||
46 | PR3_DATA, PR2_DATA, PR1_DATA, PR0_DATA, | ||
47 | PINMUX_DATA_END, | ||
48 | |||
49 | PINMUX_INPUT_BEGIN, | ||
50 | PA7_IN, PA6_IN, PA5_IN, PA4_IN, | ||
51 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
52 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
53 | PB3_IN, PB2_IN, PB1_IN, PB0_IN, | ||
54 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
55 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
56 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
57 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
58 | PE5_IN, PE4_IN, PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
59 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
60 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
61 | PG7_IN, PG6_IN, PG5_IN, PG4_IN, | ||
62 | PG3_IN, PG2_IN, PG1_IN, PG0_IN, | ||
63 | PH7_IN, PH6_IN, PH5_IN, PH4_IN, | ||
64 | PH3_IN, PH2_IN, PH1_IN, PH0_IN, | ||
65 | PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN, | ||
66 | PJ3_IN, PJ2_IN, PJ1_IN, PJ0_IN, | ||
67 | PK7_IN, PK6_IN, PK5_IN, PK4_IN, | ||
68 | PK3_IN, PK2_IN, PK1_IN, PK0_IN, | ||
69 | PL7_IN, PL6_IN, PL5_IN, PL4_IN, | ||
70 | PL3_IN, PL2_IN, PL1_IN, PL0_IN, | ||
71 | PM1_IN, PM0_IN, | ||
72 | PN7_IN, PN6_IN, PN5_IN, PN4_IN, | ||
73 | PN3_IN, PN2_IN, PN1_IN, PN0_IN, | ||
74 | PP5_IN, PP4_IN, PP3_IN, PP2_IN, PP1_IN, PP0_IN, | ||
75 | PQ4_IN, PQ3_IN, PQ2_IN, PQ1_IN, PQ0_IN, | ||
76 | PR3_IN, PR2_IN, PR1_IN, PR0_IN, | ||
77 | PINMUX_INPUT_END, | ||
78 | |||
79 | PINMUX_INPUT_PULLUP_BEGIN, | ||
80 | PA7_IN_PU, PA6_IN_PU, PA5_IN_PU, PA4_IN_PU, | ||
81 | PA3_IN_PU, PA2_IN_PU, PA1_IN_PU, PA0_IN_PU, | ||
82 | PB7_IN_PU, PB6_IN_PU, PB5_IN_PU, PB4_IN_PU, | ||
83 | PB3_IN_PU, PB2_IN_PU, PB1_IN_PU, PB0_IN_PU, | ||
84 | PC7_IN_PU, PC6_IN_PU, PC5_IN_PU, PC4_IN_PU, | ||
85 | PC3_IN_PU, PC2_IN_PU, PC1_IN_PU, PC0_IN_PU, | ||
86 | PD7_IN_PU, PD6_IN_PU, PD5_IN_PU, PD4_IN_PU, | ||
87 | PD3_IN_PU, PD2_IN_PU, PD1_IN_PU, PD0_IN_PU, | ||
88 | PE5_IN_PU, PE4_IN_PU, PE3_IN_PU, PE2_IN_PU, PE1_IN_PU, PE0_IN_PU, | ||
89 | PF7_IN_PU, PF6_IN_PU, PF5_IN_PU, PF4_IN_PU, | ||
90 | PF3_IN_PU, PF2_IN_PU, PF1_IN_PU, PF0_IN_PU, | ||
91 | PG7_IN_PU, PG6_IN_PU, PG5_IN_PU, PG4_IN_PU, | ||
92 | PG3_IN_PU, PG2_IN_PU, PG1_IN_PU, PG0_IN_PU, | ||
93 | PH7_IN_PU, PH6_IN_PU, PH5_IN_PU, PH4_IN_PU, | ||
94 | PH3_IN_PU, PH2_IN_PU, PH1_IN_PU, PH0_IN_PU, | ||
95 | PJ7_IN_PU, PJ6_IN_PU, PJ5_IN_PU, PJ4_IN_PU, | ||
96 | PJ3_IN_PU, PJ2_IN_PU, PJ1_IN_PU, PJ0_IN_PU, | ||
97 | PK7_IN_PU, PK6_IN_PU, PK5_IN_PU, PK4_IN_PU, | ||
98 | PK3_IN_PU, PK2_IN_PU, PK1_IN_PU, PK0_IN_PU, | ||
99 | PL7_IN_PU, PL6_IN_PU, PL5_IN_PU, PL4_IN_PU, | ||
100 | PL3_IN_PU, PL2_IN_PU, PL1_IN_PU, PL0_IN_PU, | ||
101 | PM1_IN_PU, PM0_IN_PU, | ||
102 | PN7_IN_PU, PN6_IN_PU, PN5_IN_PU, PN4_IN_PU, | ||
103 | PN3_IN_PU, PN2_IN_PU, PN1_IN_PU, PN0_IN_PU, | ||
104 | PP5_IN_PU, PP4_IN_PU, PP3_IN_PU, PP2_IN_PU, PP1_IN_PU, PP0_IN_PU, | ||
105 | PQ4_IN_PU, PQ3_IN_PU, PQ2_IN_PU, PQ1_IN_PU, PQ0_IN_PU, | ||
106 | PR3_IN_PU, PR2_IN_PU, PR1_IN_PU, PR0_IN_PU, | ||
107 | PINMUX_INPUT_PULLUP_END, | ||
108 | |||
109 | PINMUX_OUTPUT_BEGIN, | ||
110 | PA7_OUT, PA6_OUT, PA5_OUT, PA4_OUT, | ||
111 | PA3_OUT, PA2_OUT, PA1_OUT, PA0_OUT, | ||
112 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
113 | PB3_OUT, PB2_OUT, PB1_OUT, PB0_OUT, | ||
114 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
115 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
116 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
117 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
118 | PE5_OUT, PE4_OUT, PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
119 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
120 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
121 | PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT, | ||
122 | PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT, | ||
123 | PH7_OUT, PH6_OUT, PH5_OUT, PH4_OUT, | ||
124 | PH3_OUT, PH2_OUT, PH1_OUT, PH0_OUT, | ||
125 | PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT, | ||
126 | PJ3_OUT, PJ2_OUT, PJ1_OUT, PJ0_OUT, | ||
127 | PK7_OUT, PK6_OUT, PK5_OUT, PK4_OUT, | ||
128 | PK3_OUT, PK2_OUT, PK1_OUT, PK0_OUT, | ||
129 | PL7_OUT, PL6_OUT, PL5_OUT, PL4_OUT, | ||
130 | PL3_OUT, PL2_OUT, PL1_OUT, PL0_OUT, | ||
131 | PM1_OUT, PM0_OUT, | ||
132 | PN7_OUT, PN6_OUT, PN5_OUT, PN4_OUT, | ||
133 | PN3_OUT, PN2_OUT, PN1_OUT, PN0_OUT, | ||
134 | PP5_OUT, PP4_OUT, PP3_OUT, PP2_OUT, PP1_OUT, PP0_OUT, | ||
135 | PQ4_OUT, PQ3_OUT, PQ2_OUT, PQ1_OUT, PQ0_OUT, | ||
136 | PR3_OUT, PR2_OUT, PR1_OUT, PR0_OUT, | ||
137 | PINMUX_OUTPUT_END, | ||
138 | |||
139 | PINMUX_FUNCTION_BEGIN, | ||
140 | PA7_FN, PA6_FN, PA5_FN, PA4_FN, | ||
141 | PA3_FN, PA2_FN, PA1_FN, PA0_FN, | ||
142 | PB7_FN, PB6_FN, PB5_FN, PB4_FN, | ||
143 | PB3_FN, PB2_FN, PB1_FN, PB0_FN, | ||
144 | PC7_FN, PC6_FN, PC5_FN, PC4_FN, | ||
145 | PC3_FN, PC2_FN, PC1_FN, PC0_FN, | ||
146 | PD7_FN, PD6_FN, PD5_FN, PD4_FN, | ||
147 | PD3_FN, PD2_FN, PD1_FN, PD0_FN, | ||
148 | PE5_FN, PE4_FN, PE3_FN, PE2_FN, PE1_FN, PE0_FN, | ||
149 | PF7_FN, PF6_FN, PF5_FN, PF4_FN, | ||
150 | PF3_FN, PF2_FN, PF1_FN, PF0_FN, | ||
151 | PG7_FN, PG6_FN, PG5_FN, PG4_FN, | ||
152 | PG3_FN, PG2_FN, PG1_FN, PG0_FN, | ||
153 | PH7_FN, PH6_FN, PH5_FN, PH4_FN, | ||
154 | PH3_FN, PH2_FN, PH1_FN, PH0_FN, | ||
155 | PJ7_FN, PJ6_FN, PJ5_FN, PJ4_FN, | ||
156 | PJ3_FN, PJ2_FN, PJ1_FN, PJ0_FN, | ||
157 | PK7_FN, PK6_FN, PK5_FN, PK4_FN, | ||
158 | PK3_FN, PK2_FN, PK1_FN, PK0_FN, | ||
159 | PL7_FN, PL6_FN, PL5_FN, PL4_FN, | ||
160 | PL3_FN, PL2_FN, PL1_FN, PL0_FN, | ||
161 | PM1_FN, PM0_FN, | ||
162 | PN7_FN, PN6_FN, PN5_FN, PN4_FN, | ||
163 | PN3_FN, PN2_FN, PN1_FN, PN0_FN, | ||
164 | PP5_FN, PP4_FN, PP3_FN, PP2_FN, PP1_FN, PP0_FN, | ||
165 | PQ4_FN, PQ3_FN, PQ2_FN, PQ1_FN, PQ0_FN, | ||
166 | PR3_FN, PR2_FN, PR1_FN, PR0_FN, | ||
167 | P1MSEL15_0, P1MSEL15_1, | ||
168 | P1MSEL14_0, P1MSEL14_1, | ||
169 | P1MSEL13_0, P1MSEL13_1, | ||
170 | P1MSEL12_0, P1MSEL12_1, | ||
171 | P1MSEL11_0, P1MSEL11_1, | ||
172 | P1MSEL10_0, P1MSEL10_1, | ||
173 | P1MSEL9_0, P1MSEL9_1, | ||
174 | P1MSEL8_0, P1MSEL8_1, | ||
175 | P1MSEL7_0, P1MSEL7_1, | ||
176 | P1MSEL6_0, P1MSEL6_1, | ||
177 | P1MSEL5_0, | ||
178 | P1MSEL4_0, P1MSEL4_1, | ||
179 | P1MSEL3_0, P1MSEL3_1, | ||
180 | P1MSEL2_0, P1MSEL2_1, | ||
181 | P1MSEL1_0, P1MSEL1_1, | ||
182 | P1MSEL0_0, P1MSEL0_1, | ||
183 | P2MSEL2_0, P2MSEL2_1, | ||
184 | P2MSEL1_0, P2MSEL1_1, | ||
185 | P2MSEL0_0, P2MSEL0_1, | ||
186 | PINMUX_FUNCTION_END, | ||
187 | |||
188 | PINMUX_MARK_BEGIN, | ||
189 | D63_AD31_MARK, | ||
190 | D62_AD30_MARK, | ||
191 | D61_AD29_MARK, | ||
192 | D60_AD28_MARK, | ||
193 | D59_AD27_MARK, | ||
194 | D58_AD26_MARK, | ||
195 | D57_AD25_MARK, | ||
196 | D56_AD24_MARK, | ||
197 | D55_AD23_MARK, | ||
198 | D54_AD22_MARK, | ||
199 | D53_AD21_MARK, | ||
200 | D52_AD20_MARK, | ||
201 | D51_AD19_MARK, | ||
202 | D50_AD18_MARK, | ||
203 | D49_AD17_DB5_MARK, | ||
204 | D48_AD16_DB4_MARK, | ||
205 | D47_AD15_DB3_MARK, | ||
206 | D46_AD14_DB2_MARK, | ||
207 | D45_AD13_DB1_MARK, | ||
208 | D44_AD12_DB0_MARK, | ||
209 | D43_AD11_DG5_MARK, | ||
210 | D42_AD10_DG4_MARK, | ||
211 | D41_AD9_DG3_MARK, | ||
212 | D40_AD8_DG2_MARK, | ||
213 | D39_AD7_DG1_MARK, | ||
214 | D38_AD6_DG0_MARK, | ||
215 | D37_AD5_DR5_MARK, | ||
216 | D36_AD4_DR4_MARK, | ||
217 | D35_AD3_DR3_MARK, | ||
218 | D34_AD2_DR2_MARK, | ||
219 | D33_AD1_DR1_MARK, | ||
220 | D32_AD0_DR0_MARK, | ||
221 | REQ1_MARK, | ||
222 | REQ2_MARK, | ||
223 | REQ3_MARK, | ||
224 | GNT1_MARK, | ||
225 | GNT2_MARK, | ||
226 | GNT3_MARK, | ||
227 | MMCCLK_MARK, | ||
228 | D31_MARK, | ||
229 | D30_MARK, | ||
230 | D29_MARK, | ||
231 | D28_MARK, | ||
232 | D27_MARK, | ||
233 | D26_MARK, | ||
234 | D25_MARK, | ||
235 | D24_MARK, | ||
236 | D23_MARK, | ||
237 | D22_MARK, | ||
238 | D21_MARK, | ||
239 | D20_MARK, | ||
240 | D19_MARK, | ||
241 | D18_MARK, | ||
242 | D17_MARK, | ||
243 | D16_MARK, | ||
244 | SCIF1_SCK_MARK, | ||
245 | SCIF1_RXD_MARK, | ||
246 | SCIF1_TXD_MARK, | ||
247 | SCIF0_CTS_MARK, | ||
248 | INTD_MARK, | ||
249 | FCE_MARK, | ||
250 | SCIF0_RTS_MARK, | ||
251 | HSPI_CS_MARK, | ||
252 | FSE_MARK, | ||
253 | SCIF0_SCK_MARK, | ||
254 | HSPI_CLK_MARK, | ||
255 | FRE_MARK, | ||
256 | SCIF0_RXD_MARK, | ||
257 | HSPI_RX_MARK, | ||
258 | FRB_MARK, | ||
259 | SCIF0_TXD_MARK, | ||
260 | HSPI_TX_MARK, | ||
261 | FWE_MARK, | ||
262 | SCIF5_TXD_MARK, | ||
263 | HAC1_SYNC_MARK, | ||
264 | SSI1_WS_MARK, | ||
265 | SIOF_TXD_PJ_MARK, | ||
266 | HAC0_SDOUT_MARK, | ||
267 | SSI0_SDATA_MARK, | ||
268 | SIOF_RXD_PJ_MARK, | ||
269 | HAC0_SDIN_MARK, | ||
270 | SSI0_SCK_MARK, | ||
271 | SIOF_SYNC_PJ_MARK, | ||
272 | HAC0_SYNC_MARK, | ||
273 | SSI0_WS_MARK, | ||
274 | SIOF_MCLK_PJ_MARK, | ||
275 | HAC_RES_MARK, | ||
276 | SIOF_SCK_PJ_MARK, | ||
277 | HAC0_BITCLK_MARK, | ||
278 | SSI0_CLK_MARK, | ||
279 | HAC1_BITCLK_MARK, | ||
280 | SSI1_CLK_MARK, | ||
281 | TCLK_MARK, | ||
282 | IOIS16_MARK, | ||
283 | STATUS0_MARK, | ||
284 | DRAK0_PK3_MARK, | ||
285 | STATUS1_MARK, | ||
286 | DRAK1_PK2_MARK, | ||
287 | DACK2_MARK, | ||
288 | SCIF2_TXD_MARK, | ||
289 | MMCCMD_MARK, | ||
290 | SIOF_TXD_PK_MARK, | ||
291 | DACK3_MARK, | ||
292 | SCIF2_SCK_MARK, | ||
293 | MMCDAT_MARK, | ||
294 | SIOF_SCK_PK_MARK, | ||
295 | DREQ0_MARK, | ||
296 | DREQ1_MARK, | ||
297 | DRAK0_PK1_MARK, | ||
298 | DRAK1_PK0_MARK, | ||
299 | DREQ2_MARK, | ||
300 | INTB_MARK, | ||
301 | DREQ3_MARK, | ||
302 | INTC_MARK, | ||
303 | DRAK2_MARK, | ||
304 | CE2A_MARK, | ||
305 | IRL4_MARK, | ||
306 | FD4_MARK, | ||
307 | IRL5_MARK, | ||
308 | FD5_MARK, | ||
309 | IRL6_MARK, | ||
310 | FD6_MARK, | ||
311 | IRL7_MARK, | ||
312 | FD7_MARK, | ||
313 | DRAK3_MARK, | ||
314 | CE2B_MARK, | ||
315 | BREQ_BSACK_MARK, | ||
316 | BACK_BSREQ_MARK, | ||
317 | SCIF5_RXD_MARK, | ||
318 | HAC1_SDIN_MARK, | ||
319 | SSI1_SCK_MARK, | ||
320 | SCIF5_SCK_MARK, | ||
321 | HAC1_SDOUT_MARK, | ||
322 | SSI1_SDATA_MARK, | ||
323 | SCIF3_TXD_MARK, | ||
324 | FCLE_MARK, | ||
325 | SCIF3_RXD_MARK, | ||
326 | FALE_MARK, | ||
327 | SCIF3_SCK_MARK, | ||
328 | FD0_MARK, | ||
329 | SCIF4_TXD_MARK, | ||
330 | FD1_MARK, | ||
331 | SCIF4_RXD_MARK, | ||
332 | FD2_MARK, | ||
333 | SCIF4_SCK_MARK, | ||
334 | FD3_MARK, | ||
335 | DEVSEL_DCLKOUT_MARK, | ||
336 | STOP_CDE_MARK, | ||
337 | LOCK_ODDF_MARK, | ||
338 | TRDY_DISPL_MARK, | ||
339 | IRDY_HSYNC_MARK, | ||
340 | PCIFRAME_VSYNC_MARK, | ||
341 | INTA_MARK, | ||
342 | GNT0_GNTIN_MARK, | ||
343 | REQ0_REQOUT_MARK, | ||
344 | PERR_MARK, | ||
345 | SERR_MARK, | ||
346 | WE7_CBE3_MARK, | ||
347 | WE6_CBE2_MARK, | ||
348 | WE5_CBE1_MARK, | ||
349 | WE4_CBE0_MARK, | ||
350 | SCIF2_RXD_MARK, | ||
351 | SIOF_RXD_MARK, | ||
352 | MRESETOUT_MARK, | ||
353 | IRQOUT_MARK, | ||
354 | PINMUX_MARK_END, | ||
355 | }; | ||
356 | |||
357 | static pinmux_enum_t pinmux_data[] = { | ||
358 | |||
359 | /* PA GPIO */ | ||
360 | PINMUX_DATA(PA7_DATA, PA7_IN, PA7_OUT, PA7_IN_PU), | ||
361 | PINMUX_DATA(PA6_DATA, PA6_IN, PA6_OUT, PA6_IN_PU), | ||
362 | PINMUX_DATA(PA5_DATA, PA5_IN, PA5_OUT, PA5_IN_PU), | ||
363 | PINMUX_DATA(PA4_DATA, PA4_IN, PA4_OUT, PA4_IN_PU), | ||
364 | PINMUX_DATA(PA3_DATA, PA3_IN, PA3_OUT, PA3_IN_PU), | ||
365 | PINMUX_DATA(PA2_DATA, PA2_IN, PA2_OUT, PA2_IN_PU), | ||
366 | PINMUX_DATA(PA1_DATA, PA1_IN, PA1_OUT, PA1_IN_PU), | ||
367 | PINMUX_DATA(PA0_DATA, PA0_IN, PA0_OUT, PA0_IN_PU), | ||
368 | |||
369 | /* PB GPIO */ | ||
370 | PINMUX_DATA(PB7_DATA, PB7_IN, PB7_OUT, PB7_IN_PU), | ||
371 | PINMUX_DATA(PB6_DATA, PB6_IN, PB6_OUT, PB6_IN_PU), | ||
372 | PINMUX_DATA(PB5_DATA, PB5_IN, PB5_OUT, PB5_IN_PU), | ||
373 | PINMUX_DATA(PB4_DATA, PB4_IN, PB4_OUT, PB4_IN_PU), | ||
374 | PINMUX_DATA(PB3_DATA, PB3_IN, PB3_OUT, PB3_IN_PU), | ||
375 | PINMUX_DATA(PB2_DATA, PB2_IN, PB2_OUT, PB2_IN_PU), | ||
376 | PINMUX_DATA(PB1_DATA, PB1_IN, PB1_OUT, PB1_IN_PU), | ||
377 | PINMUX_DATA(PB0_DATA, PB0_IN, PB0_OUT, PB0_IN_PU), | ||
378 | |||
379 | /* PC GPIO */ | ||
380 | PINMUX_DATA(PC7_DATA, PC7_IN, PC7_OUT, PC7_IN_PU), | ||
381 | PINMUX_DATA(PC6_DATA, PC6_IN, PC6_OUT, PC6_IN_PU), | ||
382 | PINMUX_DATA(PC5_DATA, PC5_IN, PC5_OUT, PC5_IN_PU), | ||
383 | PINMUX_DATA(PC4_DATA, PC4_IN, PC4_OUT, PC4_IN_PU), | ||
384 | PINMUX_DATA(PC3_DATA, PC3_IN, PC3_OUT, PC3_IN_PU), | ||
385 | PINMUX_DATA(PC2_DATA, PC2_IN, PC2_OUT, PC2_IN_PU), | ||
386 | PINMUX_DATA(PC1_DATA, PC1_IN, PC1_OUT, PC1_IN_PU), | ||
387 | PINMUX_DATA(PC0_DATA, PC0_IN, PC0_OUT, PC0_IN_PU), | ||
388 | |||
389 | /* PD GPIO */ | ||
390 | PINMUX_DATA(PD7_DATA, PD7_IN, PD7_OUT, PD7_IN_PU), | ||
391 | PINMUX_DATA(PD6_DATA, PD6_IN, PD6_OUT, PD6_IN_PU), | ||
392 | PINMUX_DATA(PD5_DATA, PD5_IN, PD5_OUT, PD5_IN_PU), | ||
393 | PINMUX_DATA(PD4_DATA, PD4_IN, PD4_OUT, PD4_IN_PU), | ||
394 | PINMUX_DATA(PD3_DATA, PD3_IN, PD3_OUT, PD3_IN_PU), | ||
395 | PINMUX_DATA(PD2_DATA, PD2_IN, PD2_OUT, PD2_IN_PU), | ||
396 | PINMUX_DATA(PD1_DATA, PD1_IN, PD1_OUT, PD1_IN_PU), | ||
397 | PINMUX_DATA(PD0_DATA, PD0_IN, PD0_OUT, PD0_IN_PU), | ||
398 | |||
399 | /* PE GPIO */ | ||
400 | PINMUX_DATA(PE5_DATA, PE5_IN, PE5_OUT, PE5_IN_PU), | ||
401 | PINMUX_DATA(PE4_DATA, PE4_IN, PE4_OUT, PE4_IN_PU), | ||
402 | PINMUX_DATA(PE3_DATA, PE3_IN, PE3_OUT, PE3_IN_PU), | ||
403 | PINMUX_DATA(PE2_DATA, PE2_IN, PE2_OUT, PE2_IN_PU), | ||
404 | PINMUX_DATA(PE1_DATA, PE1_IN, PE1_OUT, PE1_IN_PU), | ||
405 | PINMUX_DATA(PE0_DATA, PE0_IN, PE0_OUT, PE0_IN_PU), | ||
406 | |||
407 | /* PF GPIO */ | ||
408 | PINMUX_DATA(PF7_DATA, PF7_IN, PF7_OUT, PF7_IN_PU), | ||
409 | PINMUX_DATA(PF6_DATA, PF6_IN, PF6_OUT, PF6_IN_PU), | ||
410 | PINMUX_DATA(PF5_DATA, PF5_IN, PF5_OUT, PF5_IN_PU), | ||
411 | PINMUX_DATA(PF4_DATA, PF4_IN, PF4_OUT, PF4_IN_PU), | ||
412 | PINMUX_DATA(PF3_DATA, PF3_IN, PF3_OUT, PF3_IN_PU), | ||
413 | PINMUX_DATA(PF2_DATA, PF2_IN, PF2_OUT, PF2_IN_PU), | ||
414 | PINMUX_DATA(PF1_DATA, PF1_IN, PF1_OUT, PF1_IN_PU), | ||
415 | PINMUX_DATA(PF0_DATA, PF0_IN, PF0_OUT, PF0_IN_PU), | ||
416 | |||
417 | /* PG GPIO */ | ||
418 | PINMUX_DATA(PG7_DATA, PG7_IN, PG7_OUT, PG7_IN_PU), | ||
419 | PINMUX_DATA(PG6_DATA, PG6_IN, PG6_OUT, PG6_IN_PU), | ||
420 | PINMUX_DATA(PG5_DATA, PG5_IN, PG5_OUT, PG5_IN_PU), | ||
421 | PINMUX_DATA(PG4_DATA, PG4_IN, PG4_OUT, PG4_IN_PU), | ||
422 | PINMUX_DATA(PG3_DATA, PG3_IN, PG3_OUT, PG3_IN_PU), | ||
423 | PINMUX_DATA(PG2_DATA, PG2_IN, PG2_OUT, PG2_IN_PU), | ||
424 | PINMUX_DATA(PG1_DATA, PG1_IN, PG1_OUT, PG1_IN_PU), | ||
425 | PINMUX_DATA(PG0_DATA, PG0_IN, PG0_OUT, PG0_IN_PU), | ||
426 | |||
427 | /* PH GPIO */ | ||
428 | PINMUX_DATA(PH7_DATA, PH7_IN, PH7_OUT, PH7_IN_PU), | ||
429 | PINMUX_DATA(PH6_DATA, PH6_IN, PH6_OUT, PH6_IN_PU), | ||
430 | PINMUX_DATA(PH5_DATA, PH5_IN, PH5_OUT, PH5_IN_PU), | ||
431 | PINMUX_DATA(PH4_DATA, PH4_IN, PH4_OUT, PH4_IN_PU), | ||
432 | PINMUX_DATA(PH3_DATA, PH3_IN, PH3_OUT, PH3_IN_PU), | ||
433 | PINMUX_DATA(PH2_DATA, PH2_IN, PH2_OUT, PH2_IN_PU), | ||
434 | PINMUX_DATA(PH1_DATA, PH1_IN, PH1_OUT, PH1_IN_PU), | ||
435 | PINMUX_DATA(PH0_DATA, PH0_IN, PH0_OUT, PH0_IN_PU), | ||
436 | |||
437 | /* PJ GPIO */ | ||
438 | PINMUX_DATA(PJ7_DATA, PJ7_IN, PJ7_OUT, PJ7_IN_PU), | ||
439 | PINMUX_DATA(PJ6_DATA, PJ6_IN, PJ6_OUT, PJ6_IN_PU), | ||
440 | PINMUX_DATA(PJ5_DATA, PJ5_IN, PJ5_OUT, PJ5_IN_PU), | ||
441 | PINMUX_DATA(PJ4_DATA, PJ4_IN, PJ4_OUT, PJ4_IN_PU), | ||
442 | PINMUX_DATA(PJ3_DATA, PJ3_IN, PJ3_OUT, PJ3_IN_PU), | ||
443 | PINMUX_DATA(PJ2_DATA, PJ2_IN, PJ2_OUT, PJ2_IN_PU), | ||
444 | PINMUX_DATA(PJ1_DATA, PJ1_IN, PJ1_OUT, PJ1_IN_PU), | ||
445 | PINMUX_DATA(PJ0_DATA, PJ0_IN, PJ0_OUT, PJ0_IN_PU), | ||
446 | |||
447 | /* PK GPIO */ | ||
448 | PINMUX_DATA(PK7_DATA, PK7_IN, PK7_OUT, PK7_IN_PU), | ||
449 | PINMUX_DATA(PK6_DATA, PK6_IN, PK6_OUT, PK6_IN_PU), | ||
450 | PINMUX_DATA(PK5_DATA, PK5_IN, PK5_OUT, PK5_IN_PU), | ||
451 | PINMUX_DATA(PK4_DATA, PK4_IN, PK4_OUT, PK4_IN_PU), | ||
452 | PINMUX_DATA(PK3_DATA, PK3_IN, PK3_OUT, PK3_IN_PU), | ||
453 | PINMUX_DATA(PK2_DATA, PK2_IN, PK2_OUT, PK2_IN_PU), | ||
454 | PINMUX_DATA(PK1_DATA, PK1_IN, PK1_OUT, PK1_IN_PU), | ||
455 | PINMUX_DATA(PK0_DATA, PK0_IN, PK0_OUT, PK0_IN_PU), | ||
456 | |||
457 | /* PL GPIO */ | ||
458 | PINMUX_DATA(PL7_DATA, PL7_IN, PL7_OUT, PL7_IN_PU), | ||
459 | PINMUX_DATA(PL6_DATA, PL6_IN, PL6_OUT, PL6_IN_PU), | ||
460 | PINMUX_DATA(PL5_DATA, PL5_IN, PL5_OUT, PL5_IN_PU), | ||
461 | PINMUX_DATA(PL4_DATA, PL4_IN, PL4_OUT, PL4_IN_PU), | ||
462 | PINMUX_DATA(PL3_DATA, PL3_IN, PL3_OUT, PL3_IN_PU), | ||
463 | PINMUX_DATA(PL2_DATA, PL2_IN, PL2_OUT, PL2_IN_PU), | ||
464 | PINMUX_DATA(PL1_DATA, PL1_IN, PL1_OUT, PL1_IN_PU), | ||
465 | PINMUX_DATA(PL0_DATA, PL0_IN, PL0_OUT, PL0_IN_PU), | ||
466 | |||
467 | /* PM GPIO */ | ||
468 | PINMUX_DATA(PM1_DATA, PM1_IN, PM1_OUT, PM1_IN_PU), | ||
469 | PINMUX_DATA(PM0_DATA, PM0_IN, PM0_OUT, PM0_IN_PU), | ||
470 | |||
471 | /* PN GPIO */ | ||
472 | PINMUX_DATA(PN7_DATA, PN7_IN, PN7_OUT, PN7_IN_PU), | ||
473 | PINMUX_DATA(PN6_DATA, PN6_IN, PN6_OUT, PN6_IN_PU), | ||
474 | PINMUX_DATA(PN5_DATA, PN5_IN, PN5_OUT, PN5_IN_PU), | ||
475 | PINMUX_DATA(PN4_DATA, PN4_IN, PN4_OUT, PN4_IN_PU), | ||
476 | PINMUX_DATA(PN3_DATA, PN3_IN, PN3_OUT, PN3_IN_PU), | ||
477 | PINMUX_DATA(PN2_DATA, PN2_IN, PN2_OUT, PN2_IN_PU), | ||
478 | PINMUX_DATA(PN1_DATA, PN1_IN, PN1_OUT, PN1_IN_PU), | ||
479 | PINMUX_DATA(PN0_DATA, PN0_IN, PN0_OUT, PN0_IN_PU), | ||
480 | |||
481 | /* PP GPIO */ | ||
482 | PINMUX_DATA(PP5_DATA, PP5_IN, PP5_OUT, PP5_IN_PU), | ||
483 | PINMUX_DATA(PP4_DATA, PP4_IN, PP4_OUT, PP4_IN_PU), | ||
484 | PINMUX_DATA(PP3_DATA, PP3_IN, PP3_OUT, PP3_IN_PU), | ||
485 | PINMUX_DATA(PP2_DATA, PP2_IN, PP2_OUT, PP2_IN_PU), | ||
486 | PINMUX_DATA(PP1_DATA, PP1_IN, PP1_OUT, PP1_IN_PU), | ||
487 | PINMUX_DATA(PP0_DATA, PP0_IN, PP0_OUT, PP0_IN_PU), | ||
488 | |||
489 | /* PQ GPIO */ | ||
490 | PINMUX_DATA(PQ4_DATA, PQ4_IN, PQ4_OUT, PQ4_IN_PU), | ||
491 | PINMUX_DATA(PQ3_DATA, PQ3_IN, PQ3_OUT, PQ3_IN_PU), | ||
492 | PINMUX_DATA(PQ2_DATA, PQ2_IN, PQ2_OUT, PQ2_IN_PU), | ||
493 | PINMUX_DATA(PQ1_DATA, PQ1_IN, PQ1_OUT, PQ1_IN_PU), | ||
494 | PINMUX_DATA(PQ0_DATA, PQ0_IN, PQ0_OUT, PQ0_IN_PU), | ||
495 | |||
496 | /* PR GPIO */ | ||
497 | PINMUX_DATA(PR3_DATA, PR3_IN, PR3_OUT, PR3_IN_PU), | ||
498 | PINMUX_DATA(PR2_DATA, PR2_IN, PR2_OUT, PR2_IN_PU), | ||
499 | PINMUX_DATA(PR1_DATA, PR1_IN, PR1_OUT, PR1_IN_PU), | ||
500 | PINMUX_DATA(PR0_DATA, PR0_IN, PR0_OUT, PR0_IN_PU), | ||
501 | |||
502 | /* PA FN */ | ||
503 | PINMUX_DATA(D63_AD31_MARK, PA7_FN), | ||
504 | PINMUX_DATA(D62_AD30_MARK, PA6_FN), | ||
505 | PINMUX_DATA(D61_AD29_MARK, PA5_FN), | ||
506 | PINMUX_DATA(D60_AD28_MARK, PA4_FN), | ||
507 | PINMUX_DATA(D59_AD27_MARK, PA3_FN), | ||
508 | PINMUX_DATA(D58_AD26_MARK, PA2_FN), | ||
509 | PINMUX_DATA(D57_AD25_MARK, PA1_FN), | ||
510 | PINMUX_DATA(D56_AD24_MARK, PA0_FN), | ||
511 | |||
512 | /* PB FN */ | ||
513 | PINMUX_DATA(D55_AD23_MARK, PB7_FN), | ||
514 | PINMUX_DATA(D54_AD22_MARK, PB6_FN), | ||
515 | PINMUX_DATA(D53_AD21_MARK, PB5_FN), | ||
516 | PINMUX_DATA(D52_AD20_MARK, PB4_FN), | ||
517 | PINMUX_DATA(D51_AD19_MARK, PB3_FN), | ||
518 | PINMUX_DATA(D50_AD18_MARK, PB2_FN), | ||
519 | PINMUX_DATA(D49_AD17_DB5_MARK, PB1_FN), | ||
520 | PINMUX_DATA(D48_AD16_DB4_MARK, PB0_FN), | ||
521 | |||
522 | /* PC FN */ | ||
523 | PINMUX_DATA(D47_AD15_DB3_MARK, PC7_FN), | ||
524 | PINMUX_DATA(D46_AD14_DB2_MARK, PC6_FN), | ||
525 | PINMUX_DATA(D45_AD13_DB1_MARK, PC5_FN), | ||
526 | PINMUX_DATA(D44_AD12_DB0_MARK, PC4_FN), | ||
527 | PINMUX_DATA(D43_AD11_DG5_MARK, PC3_FN), | ||
528 | PINMUX_DATA(D42_AD10_DG4_MARK, PC2_FN), | ||
529 | PINMUX_DATA(D41_AD9_DG3_MARK, PC1_FN), | ||
530 | PINMUX_DATA(D40_AD8_DG2_MARK, PC0_FN), | ||
531 | |||
532 | /* PD FN */ | ||
533 | PINMUX_DATA(D39_AD7_DG1_MARK, PD7_FN), | ||
534 | PINMUX_DATA(D38_AD6_DG0_MARK, PD6_FN), | ||
535 | PINMUX_DATA(D37_AD5_DR5_MARK, PD5_FN), | ||
536 | PINMUX_DATA(D36_AD4_DR4_MARK, PD4_FN), | ||
537 | PINMUX_DATA(D35_AD3_DR3_MARK, PD3_FN), | ||
538 | PINMUX_DATA(D34_AD2_DR2_MARK, PD2_FN), | ||
539 | PINMUX_DATA(D33_AD1_DR1_MARK, PD1_FN), | ||
540 | PINMUX_DATA(D32_AD0_DR0_MARK, PD0_FN), | ||
541 | |||
542 | /* PE FN */ | ||
543 | PINMUX_DATA(REQ1_MARK, PE5_FN), | ||
544 | PINMUX_DATA(REQ2_MARK, PE4_FN), | ||
545 | PINMUX_DATA(REQ3_MARK, P2MSEL0_0, PE3_FN), | ||
546 | PINMUX_DATA(GNT1_MARK, PE2_FN), | ||
547 | PINMUX_DATA(GNT2_MARK, PE1_FN), | ||
548 | PINMUX_DATA(GNT3_MARK, P2MSEL0_0, PE0_FN), | ||
549 | PINMUX_DATA(MMCCLK_MARK, P2MSEL0_1, PE0_FN), | ||
550 | |||
551 | /* PF FN */ | ||
552 | PINMUX_DATA(D31_MARK, PF7_FN), | ||
553 | PINMUX_DATA(D30_MARK, PF6_FN), | ||
554 | PINMUX_DATA(D29_MARK, PF5_FN), | ||
555 | PINMUX_DATA(D28_MARK, PF4_FN), | ||
556 | PINMUX_DATA(D27_MARK, PF3_FN), | ||
557 | PINMUX_DATA(D26_MARK, PF2_FN), | ||
558 | PINMUX_DATA(D25_MARK, PF1_FN), | ||
559 | PINMUX_DATA(D24_MARK, PF0_FN), | ||
560 | |||
561 | /* PF FN */ | ||
562 | PINMUX_DATA(D23_MARK, PG7_FN), | ||
563 | PINMUX_DATA(D22_MARK, PG6_FN), | ||
564 | PINMUX_DATA(D21_MARK, PG5_FN), | ||
565 | PINMUX_DATA(D20_MARK, PG4_FN), | ||
566 | PINMUX_DATA(D19_MARK, PG3_FN), | ||
567 | PINMUX_DATA(D18_MARK, PG2_FN), | ||
568 | PINMUX_DATA(D17_MARK, PG1_FN), | ||
569 | PINMUX_DATA(D16_MARK, PG0_FN), | ||
570 | |||
571 | /* PH FN */ | ||
572 | PINMUX_DATA(SCIF1_SCK_MARK, PH7_FN), | ||
573 | PINMUX_DATA(SCIF1_RXD_MARK, PH6_FN), | ||
574 | PINMUX_DATA(SCIF1_TXD_MARK, PH5_FN), | ||
575 | PINMUX_DATA(SCIF0_CTS_MARK, PH4_FN), | ||
576 | PINMUX_DATA(INTD_MARK, P1MSEL7_1, PH4_FN), | ||
577 | PINMUX_DATA(FCE_MARK, P1MSEL8_1, P1MSEL7_0, PH4_FN), | ||
578 | PINMUX_DATA(SCIF0_RTS_MARK, P1MSEL8_0, P1MSEL7_0, PH3_FN), | ||
579 | PINMUX_DATA(HSPI_CS_MARK, P1MSEL8_0, P1MSEL7_1, PH3_FN), | ||
580 | PINMUX_DATA(FSE_MARK, P1MSEL8_1, P1MSEL7_0, PH3_FN), | ||
581 | PINMUX_DATA(SCIF0_SCK_MARK, P1MSEL8_0, P1MSEL7_0, PH2_FN), | ||
582 | PINMUX_DATA(HSPI_CLK_MARK, P1MSEL8_0, P1MSEL7_1, PH2_FN), | ||
583 | PINMUX_DATA(FRE_MARK, P1MSEL8_1, P1MSEL7_0, PH2_FN), | ||
584 | PINMUX_DATA(SCIF0_RXD_MARK, P1MSEL8_0, P1MSEL7_0, PH1_FN), | ||
585 | PINMUX_DATA(HSPI_RX_MARK, P1MSEL8_0, P1MSEL7_1, PH1_FN), | ||
586 | PINMUX_DATA(FRB_MARK, P1MSEL8_1, P1MSEL7_0, PH1_FN), | ||
587 | PINMUX_DATA(SCIF0_TXD_MARK, P1MSEL8_0, P1MSEL7_0, PH0_FN), | ||
588 | PINMUX_DATA(HSPI_TX_MARK, P1MSEL8_0, P1MSEL7_1, PH0_FN), | ||
589 | PINMUX_DATA(FWE_MARK, P1MSEL8_1, P1MSEL7_0, PH0_FN), | ||
590 | |||
591 | /* PJ FN */ | ||
592 | PINMUX_DATA(SCIF5_TXD_MARK, P1MSEL2_0, P1MSEL1_0, PJ7_FN), | ||
593 | PINMUX_DATA(HAC1_SYNC_MARK, P1MSEL2_0, P1MSEL1_1, PJ7_FN), | ||
594 | PINMUX_DATA(SSI1_WS_MARK, P1MSEL2_1, P1MSEL1_0, PJ7_FN), | ||
595 | PINMUX_DATA(SIOF_TXD_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ6_FN), | ||
596 | PINMUX_DATA(HAC0_SDOUT_MARK, P1MSEL4_0, P1MSEL3_1, PJ6_FN), | ||
597 | PINMUX_DATA(SSI0_SDATA_MARK, P1MSEL4_1, P1MSEL3_0, PJ6_FN), | ||
598 | PINMUX_DATA(SIOF_RXD_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ5_FN), | ||
599 | PINMUX_DATA(HAC0_SDIN_MARK, P1MSEL4_0, P1MSEL3_1, PJ5_FN), | ||
600 | PINMUX_DATA(SSI0_SCK_MARK, P1MSEL4_1, P1MSEL3_0, PJ5_FN), | ||
601 | PINMUX_DATA(SIOF_SYNC_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ4_FN), | ||
602 | PINMUX_DATA(HAC0_SYNC_MARK, P1MSEL4_0, P1MSEL3_1, PJ4_FN), | ||
603 | PINMUX_DATA(SSI0_WS_MARK, P1MSEL4_1, P1MSEL3_0, PJ4_FN), | ||
604 | PINMUX_DATA(SIOF_MCLK_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ3_FN), | ||
605 | PINMUX_DATA(HAC_RES_MARK, P1MSEL4_0, P1MSEL3_1, PJ3_FN), | ||
606 | PINMUX_DATA(SIOF_SCK_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ2_FN), | ||
607 | PINMUX_DATA(HAC0_BITCLK_MARK, P1MSEL4_0, P1MSEL3_1, PJ2_FN), | ||
608 | PINMUX_DATA(SSI0_CLK_MARK, P1MSEL4_1, P1MSEL3_0, PJ2_FN), | ||
609 | PINMUX_DATA(HAC1_BITCLK_MARK, P1MSEL2_0, PJ1_FN), | ||
610 | PINMUX_DATA(SSI1_CLK_MARK, P1MSEL2_1, P1MSEL1_0, PJ1_FN), | ||
611 | PINMUX_DATA(TCLK_MARK, P1MSEL9_0, PJ0_FN), | ||
612 | PINMUX_DATA(IOIS16_MARK, P1MSEL9_1, PJ0_FN), | ||
613 | |||
614 | /* PK FN */ | ||
615 | PINMUX_DATA(STATUS0_MARK, P1MSEL15_0, PK7_FN), | ||
616 | PINMUX_DATA(DRAK0_PK3_MARK, P1MSEL15_1, PK7_FN), | ||
617 | PINMUX_DATA(STATUS1_MARK, P1MSEL15_0, PK6_FN), | ||
618 | PINMUX_DATA(DRAK1_PK2_MARK, P1MSEL15_1, PK6_FN), | ||
619 | PINMUX_DATA(DACK2_MARK, P1MSEL12_0, P1MSEL11_0, PK5_FN), | ||
620 | PINMUX_DATA(SCIF2_TXD_MARK, P1MSEL12_1, P1MSEL11_0, PK5_FN), | ||
621 | PINMUX_DATA(MMCCMD_MARK, P1MSEL12_1, P1MSEL11_1, PK5_FN), | ||
622 | PINMUX_DATA(SIOF_TXD_PK_MARK, P2MSEL1_1, | ||
623 | P1MSEL12_0, P1MSEL11_1, PK5_FN), | ||
624 | PINMUX_DATA(DACK3_MARK, P1MSEL12_0, P1MSEL11_0, PK4_FN), | ||
625 | PINMUX_DATA(SCIF2_SCK_MARK, P1MSEL12_1, P1MSEL11_0, PK4_FN), | ||
626 | PINMUX_DATA(MMCDAT_MARK, P1MSEL12_1, P1MSEL11_1, PK4_FN), | ||
627 | PINMUX_DATA(SIOF_SCK_PK_MARK, P2MSEL1_1, | ||
628 | P1MSEL12_0, P1MSEL11_1, PK4_FN), | ||
629 | PINMUX_DATA(DREQ0_MARK, PK3_FN), | ||
630 | PINMUX_DATA(DREQ1_MARK, PK2_FN), | ||
631 | PINMUX_DATA(DRAK0_PK1_MARK, PK1_FN), | ||
632 | PINMUX_DATA(DRAK1_PK0_MARK, PK0_FN), | ||
633 | |||
634 | /* PL FN */ | ||
635 | PINMUX_DATA(DREQ2_MARK, P1MSEL13_0, PL7_FN), | ||
636 | PINMUX_DATA(INTB_MARK, P1MSEL13_1, PL7_FN), | ||
637 | PINMUX_DATA(DREQ3_MARK, P1MSEL13_0, PL6_FN), | ||
638 | PINMUX_DATA(INTC_MARK, P1MSEL13_1, PL6_FN), | ||
639 | PINMUX_DATA(DRAK2_MARK, P1MSEL10_0, PL5_FN), | ||
640 | PINMUX_DATA(CE2A_MARK, P1MSEL10_1, PL5_FN), | ||
641 | PINMUX_DATA(IRL4_MARK, P1MSEL14_0, PL4_FN), | ||
642 | PINMUX_DATA(FD4_MARK, P1MSEL14_1, PL4_FN), | ||
643 | PINMUX_DATA(IRL5_MARK, P1MSEL14_0, PL3_FN), | ||
644 | PINMUX_DATA(FD5_MARK, P1MSEL14_1, PL3_FN), | ||
645 | PINMUX_DATA(IRL6_MARK, P1MSEL14_0, PL2_FN), | ||
646 | PINMUX_DATA(FD6_MARK, P1MSEL14_1, PL2_FN), | ||
647 | PINMUX_DATA(IRL7_MARK, P1MSEL14_0, PL1_FN), | ||
648 | PINMUX_DATA(FD7_MARK, P1MSEL14_1, PL1_FN), | ||
649 | PINMUX_DATA(DRAK3_MARK, P1MSEL10_0, PL0_FN), | ||
650 | PINMUX_DATA(CE2B_MARK, P1MSEL10_1, PL0_FN), | ||
651 | |||
652 | /* PM FN */ | ||
653 | PINMUX_DATA(BREQ_BSACK_MARK, PM1_FN), | ||
654 | PINMUX_DATA(BACK_BSREQ_MARK, PM0_FN), | ||
655 | |||
656 | /* PN FN */ | ||
657 | PINMUX_DATA(SCIF5_RXD_MARK, P1MSEL2_0, P1MSEL1_0, PN7_FN), | ||
658 | PINMUX_DATA(HAC1_SDIN_MARK, P1MSEL2_0, P1MSEL1_1, PN7_FN), | ||
659 | PINMUX_DATA(SSI1_SCK_MARK, P1MSEL2_1, P1MSEL1_0, PN7_FN), | ||
660 | PINMUX_DATA(SCIF5_SCK_MARK, P1MSEL2_0, P1MSEL1_0, PN6_FN), | ||
661 | PINMUX_DATA(HAC1_SDOUT_MARK, P1MSEL2_0, P1MSEL1_1, PN6_FN), | ||
662 | PINMUX_DATA(SSI1_SDATA_MARK, P1MSEL2_1, P1MSEL1_0, PN6_FN), | ||
663 | PINMUX_DATA(SCIF3_TXD_MARK, P1MSEL0_0, PN5_FN), | ||
664 | PINMUX_DATA(FCLE_MARK, P1MSEL0_1, PN5_FN), | ||
665 | PINMUX_DATA(SCIF3_RXD_MARK, P1MSEL0_0, PN4_FN), | ||
666 | PINMUX_DATA(FALE_MARK, P1MSEL0_1, PN4_FN), | ||
667 | PINMUX_DATA(SCIF3_SCK_MARK, P1MSEL0_0, PN3_FN), | ||
668 | PINMUX_DATA(FD0_MARK, P1MSEL0_1, PN3_FN), | ||
669 | PINMUX_DATA(SCIF4_TXD_MARK, P1MSEL0_0, PN2_FN), | ||
670 | PINMUX_DATA(FD1_MARK, P1MSEL0_1, PN2_FN), | ||
671 | PINMUX_DATA(SCIF4_RXD_MARK, P1MSEL0_0, PN1_FN), | ||
672 | PINMUX_DATA(FD2_MARK, P1MSEL0_1, PN1_FN), | ||
673 | PINMUX_DATA(SCIF4_SCK_MARK, P1MSEL0_0, PN0_FN), | ||
674 | PINMUX_DATA(FD3_MARK, P1MSEL0_1, PN0_FN), | ||
675 | |||
676 | /* PP FN */ | ||
677 | PINMUX_DATA(DEVSEL_DCLKOUT_MARK, PP5_FN), | ||
678 | PINMUX_DATA(STOP_CDE_MARK, PP4_FN), | ||
679 | PINMUX_DATA(LOCK_ODDF_MARK, PP3_FN), | ||
680 | PINMUX_DATA(TRDY_DISPL_MARK, PP2_FN), | ||
681 | PINMUX_DATA(IRDY_HSYNC_MARK, PP1_FN), | ||
682 | PINMUX_DATA(PCIFRAME_VSYNC_MARK, PP0_FN), | ||
683 | |||
684 | /* PQ FN */ | ||
685 | PINMUX_DATA(INTA_MARK, PQ4_FN), | ||
686 | PINMUX_DATA(GNT0_GNTIN_MARK, PQ3_FN), | ||
687 | PINMUX_DATA(REQ0_REQOUT_MARK, PQ2_FN), | ||
688 | PINMUX_DATA(PERR_MARK, PQ1_FN), | ||
689 | PINMUX_DATA(SERR_MARK, PQ0_FN), | ||
690 | |||
691 | /* PR FN */ | ||
692 | PINMUX_DATA(WE7_CBE3_MARK, PR3_FN), | ||
693 | PINMUX_DATA(WE6_CBE2_MARK, PR2_FN), | ||
694 | PINMUX_DATA(WE5_CBE1_MARK, PR1_FN), | ||
695 | PINMUX_DATA(WE4_CBE0_MARK, PR0_FN), | ||
696 | |||
697 | /* MISC FN */ | ||
698 | PINMUX_DATA(SCIF2_RXD_MARK, P1MSEL6_0, P1MSEL5_0), | ||
699 | PINMUX_DATA(SIOF_RXD_MARK, P2MSEL1_1, P1MSEL6_1, P1MSEL5_0), | ||
700 | PINMUX_DATA(MRESETOUT_MARK, P2MSEL2_0), | ||
701 | PINMUX_DATA(IRQOUT_MARK, P2MSEL2_1), | ||
702 | }; | ||
703 | |||
704 | static struct pinmux_gpio pinmux_gpios[] = { | ||
705 | /* PA */ | ||
706 | PINMUX_GPIO(GPIO_PA7, PA7_DATA), | ||
707 | PINMUX_GPIO(GPIO_PA6, PA6_DATA), | ||
708 | PINMUX_GPIO(GPIO_PA5, PA5_DATA), | ||
709 | PINMUX_GPIO(GPIO_PA4, PA4_DATA), | ||
710 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
711 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
712 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
713 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
714 | |||
715 | /* PB */ | ||
716 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
717 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
718 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
719 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
720 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
721 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
722 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
723 | PINMUX_GPIO(GPIO_PB0, PB0_DATA), | ||
724 | |||
725 | /* PC */ | ||
726 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
727 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
728 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
729 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
730 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
731 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
732 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
733 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
734 | |||
735 | /* PD */ | ||
736 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
737 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
738 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
739 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
740 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
741 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
742 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
743 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
744 | |||
745 | /* PE */ | ||
746 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
747 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
748 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
749 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
750 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
751 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
752 | |||
753 | /* PF */ | ||
754 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
755 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
756 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
757 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
758 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
759 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
760 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
761 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
762 | |||
763 | /* PG */ | ||
764 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
765 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
766 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
767 | PINMUX_GPIO(GPIO_PG4, PG4_DATA), | ||
768 | PINMUX_GPIO(GPIO_PG3, PG3_DATA), | ||
769 | PINMUX_GPIO(GPIO_PG2, PG2_DATA), | ||
770 | PINMUX_GPIO(GPIO_PG1, PG1_DATA), | ||
771 | PINMUX_GPIO(GPIO_PG0, PG0_DATA), | ||
772 | |||
773 | /* PH */ | ||
774 | PINMUX_GPIO(GPIO_PH7, PH7_DATA), | ||
775 | PINMUX_GPIO(GPIO_PH6, PH6_DATA), | ||
776 | PINMUX_GPIO(GPIO_PH5, PH5_DATA), | ||
777 | PINMUX_GPIO(GPIO_PH4, PH4_DATA), | ||
778 | PINMUX_GPIO(GPIO_PH3, PH3_DATA), | ||
779 | PINMUX_GPIO(GPIO_PH2, PH2_DATA), | ||
780 | PINMUX_GPIO(GPIO_PH1, PH1_DATA), | ||
781 | PINMUX_GPIO(GPIO_PH0, PH0_DATA), | ||
782 | |||
783 | /* PJ */ | ||
784 | PINMUX_GPIO(GPIO_PJ7, PJ7_DATA), | ||
785 | PINMUX_GPIO(GPIO_PJ6, PJ6_DATA), | ||
786 | PINMUX_GPIO(GPIO_PJ5, PJ5_DATA), | ||
787 | PINMUX_GPIO(GPIO_PJ4, PJ4_DATA), | ||
788 | PINMUX_GPIO(GPIO_PJ3, PJ3_DATA), | ||
789 | PINMUX_GPIO(GPIO_PJ2, PJ2_DATA), | ||
790 | PINMUX_GPIO(GPIO_PJ1, PJ1_DATA), | ||
791 | PINMUX_GPIO(GPIO_PJ0, PJ0_DATA), | ||
792 | |||
793 | /* PK */ | ||
794 | PINMUX_GPIO(GPIO_PK7, PK7_DATA), | ||
795 | PINMUX_GPIO(GPIO_PK6, PK6_DATA), | ||
796 | PINMUX_GPIO(GPIO_PK5, PK5_DATA), | ||
797 | PINMUX_GPIO(GPIO_PK4, PK4_DATA), | ||
798 | PINMUX_GPIO(GPIO_PK3, PK3_DATA), | ||
799 | PINMUX_GPIO(GPIO_PK2, PK2_DATA), | ||
800 | PINMUX_GPIO(GPIO_PK1, PK1_DATA), | ||
801 | PINMUX_GPIO(GPIO_PK0, PK0_DATA), | ||
802 | |||
803 | /* PL */ | ||
804 | PINMUX_GPIO(GPIO_PL7, PL7_DATA), | ||
805 | PINMUX_GPIO(GPIO_PL6, PL6_DATA), | ||
806 | PINMUX_GPIO(GPIO_PL5, PL5_DATA), | ||
807 | PINMUX_GPIO(GPIO_PL4, PL4_DATA), | ||
808 | PINMUX_GPIO(GPIO_PL3, PL3_DATA), | ||
809 | PINMUX_GPIO(GPIO_PL2, PL2_DATA), | ||
810 | PINMUX_GPIO(GPIO_PL1, PL1_DATA), | ||
811 | PINMUX_GPIO(GPIO_PL0, PL0_DATA), | ||
812 | |||
813 | /* PM */ | ||
814 | PINMUX_GPIO(GPIO_PM1, PM1_DATA), | ||
815 | PINMUX_GPIO(GPIO_PM0, PM0_DATA), | ||
816 | |||
817 | /* PN */ | ||
818 | PINMUX_GPIO(GPIO_PN7, PN7_DATA), | ||
819 | PINMUX_GPIO(GPIO_PN6, PN6_DATA), | ||
820 | PINMUX_GPIO(GPIO_PN5, PN5_DATA), | ||
821 | PINMUX_GPIO(GPIO_PN4, PN4_DATA), | ||
822 | PINMUX_GPIO(GPIO_PN3, PN3_DATA), | ||
823 | PINMUX_GPIO(GPIO_PN2, PN2_DATA), | ||
824 | PINMUX_GPIO(GPIO_PN1, PN1_DATA), | ||
825 | PINMUX_GPIO(GPIO_PN0, PN0_DATA), | ||
826 | |||
827 | /* PP */ | ||
828 | PINMUX_GPIO(GPIO_PP5, PP5_DATA), | ||
829 | PINMUX_GPIO(GPIO_PP4, PP4_DATA), | ||
830 | PINMUX_GPIO(GPIO_PP3, PP3_DATA), | ||
831 | PINMUX_GPIO(GPIO_PP2, PP2_DATA), | ||
832 | PINMUX_GPIO(GPIO_PP1, PP1_DATA), | ||
833 | PINMUX_GPIO(GPIO_PP0, PP0_DATA), | ||
834 | |||
835 | /* PQ */ | ||
836 | PINMUX_GPIO(GPIO_PQ4, PQ4_DATA), | ||
837 | PINMUX_GPIO(GPIO_PQ3, PQ3_DATA), | ||
838 | PINMUX_GPIO(GPIO_PQ2, PQ2_DATA), | ||
839 | PINMUX_GPIO(GPIO_PQ1, PQ1_DATA), | ||
840 | PINMUX_GPIO(GPIO_PQ0, PQ0_DATA), | ||
841 | |||
842 | /* PR */ | ||
843 | PINMUX_GPIO(GPIO_PR3, PR3_DATA), | ||
844 | PINMUX_GPIO(GPIO_PR2, PR2_DATA), | ||
845 | PINMUX_GPIO(GPIO_PR1, PR1_DATA), | ||
846 | PINMUX_GPIO(GPIO_PR0, PR0_DATA), | ||
847 | |||
848 | /* FN */ | ||
849 | PINMUX_GPIO(GPIO_FN_D63_AD31, D63_AD31_MARK), | ||
850 | PINMUX_GPIO(GPIO_FN_D62_AD30, D62_AD30_MARK), | ||
851 | PINMUX_GPIO(GPIO_FN_D61_AD29, D61_AD29_MARK), | ||
852 | PINMUX_GPIO(GPIO_FN_D60_AD28, D60_AD28_MARK), | ||
853 | PINMUX_GPIO(GPIO_FN_D59_AD27, D59_AD27_MARK), | ||
854 | PINMUX_GPIO(GPIO_FN_D58_AD26, D58_AD26_MARK), | ||
855 | PINMUX_GPIO(GPIO_FN_D57_AD25, D57_AD25_MARK), | ||
856 | PINMUX_GPIO(GPIO_FN_D56_AD24, D56_AD24_MARK), | ||
857 | PINMUX_GPIO(GPIO_FN_D55_AD23, D55_AD23_MARK), | ||
858 | PINMUX_GPIO(GPIO_FN_D54_AD22, D54_AD22_MARK), | ||
859 | PINMUX_GPIO(GPIO_FN_D53_AD21, D53_AD21_MARK), | ||
860 | PINMUX_GPIO(GPIO_FN_D52_AD20, D52_AD20_MARK), | ||
861 | PINMUX_GPIO(GPIO_FN_D51_AD19, D51_AD19_MARK), | ||
862 | PINMUX_GPIO(GPIO_FN_D50_AD18, D50_AD18_MARK), | ||
863 | PINMUX_GPIO(GPIO_FN_D49_AD17_DB5, D49_AD17_DB5_MARK), | ||
864 | PINMUX_GPIO(GPIO_FN_D48_AD16_DB4, D48_AD16_DB4_MARK), | ||
865 | PINMUX_GPIO(GPIO_FN_D47_AD15_DB3, D47_AD15_DB3_MARK), | ||
866 | PINMUX_GPIO(GPIO_FN_D46_AD14_DB2, D46_AD14_DB2_MARK), | ||
867 | PINMUX_GPIO(GPIO_FN_D45_AD13_DB1, D45_AD13_DB1_MARK), | ||
868 | PINMUX_GPIO(GPIO_FN_D44_AD12_DB0, D44_AD12_DB0_MARK), | ||
869 | PINMUX_GPIO(GPIO_FN_D43_AD11_DG5, D43_AD11_DG5_MARK), | ||
870 | PINMUX_GPIO(GPIO_FN_D42_AD10_DG4, D42_AD10_DG4_MARK), | ||
871 | PINMUX_GPIO(GPIO_FN_D41_AD9_DG3, D41_AD9_DG3_MARK), | ||
872 | PINMUX_GPIO(GPIO_FN_D40_AD8_DG2, D40_AD8_DG2_MARK), | ||
873 | PINMUX_GPIO(GPIO_FN_D39_AD7_DG1, D39_AD7_DG1_MARK), | ||
874 | PINMUX_GPIO(GPIO_FN_D38_AD6_DG0, D38_AD6_DG0_MARK), | ||
875 | PINMUX_GPIO(GPIO_FN_D37_AD5_DR5, D37_AD5_DR5_MARK), | ||
876 | PINMUX_GPIO(GPIO_FN_D36_AD4_DR4, D36_AD4_DR4_MARK), | ||
877 | PINMUX_GPIO(GPIO_FN_D35_AD3_DR3, D35_AD3_DR3_MARK), | ||
878 | PINMUX_GPIO(GPIO_FN_D34_AD2_DR2, D34_AD2_DR2_MARK), | ||
879 | PINMUX_GPIO(GPIO_FN_D33_AD1_DR1, D33_AD1_DR1_MARK), | ||
880 | PINMUX_GPIO(GPIO_FN_D32_AD0_DR0, D32_AD0_DR0_MARK), | ||
881 | PINMUX_GPIO(GPIO_FN_REQ1, REQ1_MARK), | ||
882 | PINMUX_GPIO(GPIO_FN_REQ2, REQ2_MARK), | ||
883 | PINMUX_GPIO(GPIO_FN_REQ3, REQ3_MARK), | ||
884 | PINMUX_GPIO(GPIO_FN_GNT1, GNT1_MARK), | ||
885 | PINMUX_GPIO(GPIO_FN_GNT2, GNT2_MARK), | ||
886 | PINMUX_GPIO(GPIO_FN_GNT3, GNT3_MARK), | ||
887 | PINMUX_GPIO(GPIO_FN_MMCCLK, MMCCLK_MARK), | ||
888 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
889 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
890 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
891 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
892 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
893 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
894 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
895 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
896 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
897 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
898 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
899 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
900 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
901 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
902 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
903 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
904 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
905 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
906 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
907 | PINMUX_GPIO(GPIO_FN_SCIF0_CTS, SCIF0_CTS_MARK), | ||
908 | PINMUX_GPIO(GPIO_FN_INTD, INTD_MARK), | ||
909 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
910 | PINMUX_GPIO(GPIO_FN_SCIF0_RTS, SCIF0_RTS_MARK), | ||
911 | PINMUX_GPIO(GPIO_FN_HSPI_CS, HSPI_CS_MARK), | ||
912 | PINMUX_GPIO(GPIO_FN_FSE, FSE_MARK), | ||
913 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
914 | PINMUX_GPIO(GPIO_FN_HSPI_CLK, HSPI_CLK_MARK), | ||
915 | PINMUX_GPIO(GPIO_FN_FRE, FRE_MARK), | ||
916 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
917 | PINMUX_GPIO(GPIO_FN_HSPI_RX, HSPI_RX_MARK), | ||
918 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
919 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
920 | PINMUX_GPIO(GPIO_FN_HSPI_TX, HSPI_TX_MARK), | ||
921 | PINMUX_GPIO(GPIO_FN_FWE, FWE_MARK), | ||
922 | PINMUX_GPIO(GPIO_FN_SCIF5_TXD, SCIF5_TXD_MARK), | ||
923 | PINMUX_GPIO(GPIO_FN_HAC1_SYNC, HAC1_SYNC_MARK), | ||
924 | PINMUX_GPIO(GPIO_FN_SSI1_WS, SSI1_WS_MARK), | ||
925 | PINMUX_GPIO(GPIO_FN_SIOF_TXD_PJ, SIOF_TXD_PJ_MARK), | ||
926 | PINMUX_GPIO(GPIO_FN_HAC0_SDOUT, HAC0_SDOUT_MARK), | ||
927 | PINMUX_GPIO(GPIO_FN_SSI0_SDATA, SSI0_SDATA_MARK), | ||
928 | PINMUX_GPIO(GPIO_FN_SIOF_RXD_PJ, SIOF_RXD_PJ_MARK), | ||
929 | PINMUX_GPIO(GPIO_FN_HAC0_SDIN, HAC0_SDIN_MARK), | ||
930 | PINMUX_GPIO(GPIO_FN_SSI0_SCK, SSI0_SCK_MARK), | ||
931 | PINMUX_GPIO(GPIO_FN_SIOF_SYNC_PJ, SIOF_SYNC_PJ_MARK), | ||
932 | PINMUX_GPIO(GPIO_FN_HAC0_SYNC, HAC0_SYNC_MARK), | ||
933 | PINMUX_GPIO(GPIO_FN_SSI0_WS, SSI0_WS_MARK), | ||
934 | PINMUX_GPIO(GPIO_FN_SIOF_MCLK_PJ, SIOF_MCLK_PJ_MARK), | ||
935 | PINMUX_GPIO(GPIO_FN_HAC_RES, HAC_RES_MARK), | ||
936 | PINMUX_GPIO(GPIO_FN_SIOF_SCK_PJ, SIOF_SCK_PJ_MARK), | ||
937 | PINMUX_GPIO(GPIO_FN_HAC0_BITCLK, HAC0_BITCLK_MARK), | ||
938 | PINMUX_GPIO(GPIO_FN_SSI0_CLK, SSI0_CLK_MARK), | ||
939 | PINMUX_GPIO(GPIO_FN_HAC1_BITCLK, HAC1_BITCLK_MARK), | ||
940 | PINMUX_GPIO(GPIO_FN_SSI1_CLK, SSI1_CLK_MARK), | ||
941 | PINMUX_GPIO(GPIO_FN_TCLK, TCLK_MARK), | ||
942 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
943 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
944 | PINMUX_GPIO(GPIO_FN_DRAK0_PK3, DRAK0_PK3_MARK), | ||
945 | PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), | ||
946 | PINMUX_GPIO(GPIO_FN_DRAK1_PK2, DRAK1_PK2_MARK), | ||
947 | PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), | ||
948 | PINMUX_GPIO(GPIO_FN_SCIF2_TXD, SCIF2_TXD_MARK), | ||
949 | PINMUX_GPIO(GPIO_FN_MMCCMD, MMCCMD_MARK), | ||
950 | PINMUX_GPIO(GPIO_FN_SIOF_TXD_PK, SIOF_TXD_PK_MARK), | ||
951 | PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), | ||
952 | PINMUX_GPIO(GPIO_FN_SCIF2_SCK, SCIF2_SCK_MARK), | ||
953 | PINMUX_GPIO(GPIO_FN_MMCDAT, MMCDAT_MARK), | ||
954 | PINMUX_GPIO(GPIO_FN_SIOF_SCK_PK, SIOF_SCK_PK_MARK), | ||
955 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
956 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
957 | PINMUX_GPIO(GPIO_FN_DRAK0_PK1, DRAK0_PK1_MARK), | ||
958 | PINMUX_GPIO(GPIO_FN_DRAK1_PK0, DRAK1_PK0_MARK), | ||
959 | PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), | ||
960 | PINMUX_GPIO(GPIO_FN_INTB, INTB_MARK), | ||
961 | PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), | ||
962 | PINMUX_GPIO(GPIO_FN_INTC, INTC_MARK), | ||
963 | PINMUX_GPIO(GPIO_FN_DRAK2, DRAK2_MARK), | ||
964 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
965 | PINMUX_GPIO(GPIO_FN_IRL4, IRL4_MARK), | ||
966 | PINMUX_GPIO(GPIO_FN_FD4, FD4_MARK), | ||
967 | PINMUX_GPIO(GPIO_FN_IRL5, IRL5_MARK), | ||
968 | PINMUX_GPIO(GPIO_FN_FD5, FD5_MARK), | ||
969 | PINMUX_GPIO(GPIO_FN_IRL6, IRL6_MARK), | ||
970 | PINMUX_GPIO(GPIO_FN_FD6, FD6_MARK), | ||
971 | PINMUX_GPIO(GPIO_FN_IRL7, IRL7_MARK), | ||
972 | PINMUX_GPIO(GPIO_FN_FD7, FD7_MARK), | ||
973 | PINMUX_GPIO(GPIO_FN_DRAK3, DRAK3_MARK), | ||
974 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
975 | PINMUX_GPIO(GPIO_FN_BREQ_BSACK, BREQ_BSACK_MARK), | ||
976 | PINMUX_GPIO(GPIO_FN_BACK_BSREQ, BACK_BSREQ_MARK), | ||
977 | PINMUX_GPIO(GPIO_FN_SCIF5_RXD, SCIF5_RXD_MARK), | ||
978 | PINMUX_GPIO(GPIO_FN_HAC1_SDIN, HAC1_SDIN_MARK), | ||
979 | PINMUX_GPIO(GPIO_FN_SSI1_SCK, SSI1_SCK_MARK), | ||
980 | PINMUX_GPIO(GPIO_FN_SCIF5_SCK, SCIF5_SCK_MARK), | ||
981 | PINMUX_GPIO(GPIO_FN_HAC1_SDOUT, HAC1_SDOUT_MARK), | ||
982 | PINMUX_GPIO(GPIO_FN_SSI1_SDATA, SSI1_SDATA_MARK), | ||
983 | PINMUX_GPIO(GPIO_FN_SCIF3_TXD, SCIF3_TXD_MARK), | ||
984 | PINMUX_GPIO(GPIO_FN_FCLE, FCLE_MARK), | ||
985 | PINMUX_GPIO(GPIO_FN_SCIF3_RXD, SCIF3_RXD_MARK), | ||
986 | PINMUX_GPIO(GPIO_FN_FALE, FALE_MARK), | ||
987 | PINMUX_GPIO(GPIO_FN_SCIF3_SCK, SCIF3_SCK_MARK), | ||
988 | PINMUX_GPIO(GPIO_FN_FD0, FD0_MARK), | ||
989 | PINMUX_GPIO(GPIO_FN_SCIF4_TXD, SCIF4_TXD_MARK), | ||
990 | PINMUX_GPIO(GPIO_FN_FD1, FD1_MARK), | ||
991 | PINMUX_GPIO(GPIO_FN_SCIF4_RXD, SCIF4_RXD_MARK), | ||
992 | PINMUX_GPIO(GPIO_FN_FD2, FD2_MARK), | ||
993 | PINMUX_GPIO(GPIO_FN_SCIF4_SCK, SCIF4_SCK_MARK), | ||
994 | PINMUX_GPIO(GPIO_FN_FD3, FD3_MARK), | ||
995 | PINMUX_GPIO(GPIO_FN_DEVSEL_DCLKOUT, DEVSEL_DCLKOUT_MARK), | ||
996 | PINMUX_GPIO(GPIO_FN_STOP_CDE, STOP_CDE_MARK), | ||
997 | PINMUX_GPIO(GPIO_FN_LOCK_ODDF, LOCK_ODDF_MARK), | ||
998 | PINMUX_GPIO(GPIO_FN_TRDY_DISPL, TRDY_DISPL_MARK), | ||
999 | PINMUX_GPIO(GPIO_FN_IRDY_HSYNC, IRDY_HSYNC_MARK), | ||
1000 | PINMUX_GPIO(GPIO_FN_PCIFRAME_VSYNC, PCIFRAME_VSYNC_MARK), | ||
1001 | PINMUX_GPIO(GPIO_FN_INTA, INTA_MARK), | ||
1002 | PINMUX_GPIO(GPIO_FN_GNT0_GNTIN, GNT0_GNTIN_MARK), | ||
1003 | PINMUX_GPIO(GPIO_FN_REQ0_REQOUT, REQ0_REQOUT_MARK), | ||
1004 | PINMUX_GPIO(GPIO_FN_PERR, PERR_MARK), | ||
1005 | PINMUX_GPIO(GPIO_FN_SERR, SERR_MARK), | ||
1006 | PINMUX_GPIO(GPIO_FN_WE7_CBE3, WE7_CBE3_MARK), | ||
1007 | PINMUX_GPIO(GPIO_FN_WE6_CBE2, WE6_CBE2_MARK), | ||
1008 | PINMUX_GPIO(GPIO_FN_WE5_CBE1, WE5_CBE1_MARK), | ||
1009 | PINMUX_GPIO(GPIO_FN_WE4_CBE0, WE4_CBE0_MARK), | ||
1010 | PINMUX_GPIO(GPIO_FN_SCIF2_RXD, SCIF2_RXD_MARK), | ||
1011 | PINMUX_GPIO(GPIO_FN_SIOF_RXD, SIOF_RXD_MARK), | ||
1012 | PINMUX_GPIO(GPIO_FN_MRESETOUT, MRESETOUT_MARK), | ||
1013 | PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), | ||
1014 | }; | ||
1015 | |||
1016 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1017 | { PINMUX_CFG_REG("PACR", 0xffe70000, 16, 2) { | ||
1018 | PA7_FN, PA7_OUT, PA7_IN, PA7_IN_PU, | ||
1019 | PA6_FN, PA6_OUT, PA6_IN, PA6_IN_PU, | ||
1020 | PA5_FN, PA5_OUT, PA5_IN, PA5_IN_PU, | ||
1021 | PA4_FN, PA4_OUT, PA4_IN, PA4_IN_PU, | ||
1022 | PA3_FN, PA3_OUT, PA3_IN, PA3_IN_PU, | ||
1023 | PA2_FN, PA2_OUT, PA2_IN, PA2_IN_PU, | ||
1024 | PA1_FN, PA1_OUT, PA1_IN, PA1_IN_PU, | ||
1025 | PA0_FN, PA0_OUT, PA0_IN, PA0_IN_PU } | ||
1026 | }, | ||
1027 | { PINMUX_CFG_REG("PBCR", 0xffe70002, 16, 2) { | ||
1028 | PB7_FN, PB7_OUT, PB7_IN, PB7_IN_PU, | ||
1029 | PB6_FN, PB6_OUT, PB6_IN, PB6_IN_PU, | ||
1030 | PB5_FN, PB5_OUT, PB5_IN, PB5_IN_PU, | ||
1031 | PB4_FN, PB4_OUT, PB4_IN, PB4_IN_PU, | ||
1032 | PB3_FN, PB3_OUT, PB3_IN, PB3_IN_PU, | ||
1033 | PB2_FN, PB2_OUT, PB2_IN, PB2_IN_PU, | ||
1034 | PB1_FN, PB1_OUT, PB1_IN, PB1_IN_PU, | ||
1035 | PB0_FN, PB0_OUT, PB0_IN, PB0_IN_PU } | ||
1036 | }, | ||
1037 | { PINMUX_CFG_REG("PCCR", 0xffe70004, 16, 2) { | ||
1038 | PC7_FN, PC7_OUT, PC7_IN, PC7_IN_PU, | ||
1039 | PC6_FN, PC6_OUT, PC6_IN, PC6_IN_PU, | ||
1040 | PC5_FN, PC5_OUT, PC5_IN, PC5_IN_PU, | ||
1041 | PC4_FN, PC4_OUT, PC4_IN, PC4_IN_PU, | ||
1042 | PC3_FN, PC3_OUT, PC3_IN, PC3_IN_PU, | ||
1043 | PC2_FN, PC2_OUT, PC2_IN, PC2_IN_PU, | ||
1044 | PC1_FN, PC1_OUT, PC1_IN, PC1_IN_PU, | ||
1045 | PC0_FN, PC0_OUT, PC0_IN, PC0_IN_PU } | ||
1046 | }, | ||
1047 | { PINMUX_CFG_REG("PDCR", 0xffe70006, 16, 2) { | ||
1048 | PD7_FN, PD7_OUT, PD7_IN, PD7_IN_PU, | ||
1049 | PD6_FN, PD6_OUT, PD6_IN, PD6_IN_PU, | ||
1050 | PD5_FN, PD5_OUT, PD5_IN, PD5_IN_PU, | ||
1051 | PD4_FN, PD4_OUT, PD4_IN, PD4_IN_PU, | ||
1052 | PD3_FN, PD3_OUT, PD3_IN, PD3_IN_PU, | ||
1053 | PD2_FN, PD2_OUT, PD2_IN, PD2_IN_PU, | ||
1054 | PD1_FN, PD1_OUT, PD1_IN, PD1_IN_PU, | ||
1055 | PD0_FN, PD0_OUT, PD0_IN, PD0_IN_PU } | ||
1056 | }, | ||
1057 | { PINMUX_CFG_REG("PECR", 0xffe70008, 16, 2) { | ||
1058 | 0, 0, 0, 0, | ||
1059 | 0, 0, 0, 0, | ||
1060 | PE5_FN, PE5_OUT, PE5_IN, PE5_IN_PU, | ||
1061 | PE4_FN, PE4_OUT, PE4_IN, PE4_IN_PU, | ||
1062 | PE3_FN, PE3_OUT, PE3_IN, PE3_IN_PU, | ||
1063 | PE2_FN, PE2_OUT, PE2_IN, PE2_IN_PU, | ||
1064 | PE1_FN, PE1_OUT, PE1_IN, PE1_IN_PU, | ||
1065 | PE0_FN, PE0_OUT, PE0_IN, PE0_IN_PU } | ||
1066 | }, | ||
1067 | { PINMUX_CFG_REG("PFCR", 0xffe7000a, 16, 2) { | ||
1068 | PF7_FN, PF7_OUT, PF7_IN, PF7_IN_PU, | ||
1069 | PF6_FN, PF6_OUT, PF6_IN, PF6_IN_PU, | ||
1070 | PF5_FN, PF5_OUT, PF5_IN, PF5_IN_PU, | ||
1071 | PF4_FN, PF4_OUT, PF4_IN, PF4_IN_PU, | ||
1072 | PF3_FN, PF3_OUT, PF3_IN, PF3_IN_PU, | ||
1073 | PF2_FN, PF2_OUT, PF2_IN, PF2_IN_PU, | ||
1074 | PF1_FN, PF1_OUT, PF1_IN, PF1_IN_PU, | ||
1075 | PF0_FN, PF0_OUT, PF0_IN, PF0_IN_PU } | ||
1076 | }, | ||
1077 | { PINMUX_CFG_REG("PGCR", 0xffe7000c, 16, 2) { | ||
1078 | PG7_FN, PG7_OUT, PG7_IN, PG7_IN_PU, | ||
1079 | PG6_FN, PG6_OUT, PG6_IN, PG6_IN_PU, | ||
1080 | PG5_FN, PG5_OUT, PG5_IN, PG5_IN_PU, | ||
1081 | PG4_FN, PG4_OUT, PG4_IN, PG4_IN_PU, | ||
1082 | PG3_FN, PG3_OUT, PG3_IN, PG3_IN_PU, | ||
1083 | PG2_FN, PG2_OUT, PG2_IN, PG2_IN_PU, | ||
1084 | PG1_FN, PG1_OUT, PG1_IN, PG1_IN_PU, | ||
1085 | PG0_FN, PG0_OUT, PG0_IN, PG0_IN_PU } | ||
1086 | }, | ||
1087 | { PINMUX_CFG_REG("PHCR", 0xffe7000e, 16, 2) { | ||
1088 | PH7_FN, PH7_OUT, PH7_IN, PH7_IN_PU, | ||
1089 | PH6_FN, PH6_OUT, PH6_IN, PH6_IN_PU, | ||
1090 | PH5_FN, PH5_OUT, PH5_IN, PH5_IN_PU, | ||
1091 | PH4_FN, PH4_OUT, PH4_IN, PH4_IN_PU, | ||
1092 | PH3_FN, PH3_OUT, PH3_IN, PH3_IN_PU, | ||
1093 | PH2_FN, PH2_OUT, PH2_IN, PH2_IN_PU, | ||
1094 | PH1_FN, PH1_OUT, PH1_IN, PH1_IN_PU, | ||
1095 | PH0_FN, PH0_OUT, PH0_IN, PH0_IN_PU } | ||
1096 | }, | ||
1097 | { PINMUX_CFG_REG("PJCR", 0xffe70010, 16, 2) { | ||
1098 | PJ7_FN, PJ7_OUT, PJ7_IN, PJ7_IN_PU, | ||
1099 | PJ6_FN, PJ6_OUT, PJ6_IN, PJ6_IN_PU, | ||
1100 | PJ5_FN, PJ5_OUT, PJ5_IN, PJ5_IN_PU, | ||
1101 | PJ4_FN, PJ4_OUT, PJ4_IN, PJ4_IN_PU, | ||
1102 | PJ3_FN, PJ3_OUT, PJ3_IN, PJ3_IN_PU, | ||
1103 | PJ2_FN, PJ2_OUT, PJ2_IN, PJ2_IN_PU, | ||
1104 | PJ1_FN, PJ1_OUT, PJ1_IN, PJ1_IN_PU, | ||
1105 | PJ0_FN, PJ0_OUT, PJ0_IN, PJ0_IN_PU } | ||
1106 | }, | ||
1107 | { PINMUX_CFG_REG("PKCR", 0xffe70012, 16, 2) { | ||
1108 | PK7_FN, PK7_OUT, PK7_IN, PK7_IN_PU, | ||
1109 | PK6_FN, PK6_OUT, PK6_IN, PK6_IN_PU, | ||
1110 | PK5_FN, PK5_OUT, PK5_IN, PK5_IN_PU, | ||
1111 | PK4_FN, PK4_OUT, PK4_IN, PK4_IN_PU, | ||
1112 | PK3_FN, PK3_OUT, PK3_IN, PK3_IN_PU, | ||
1113 | PK2_FN, PK2_OUT, PK2_IN, PK2_IN_PU, | ||
1114 | PK1_FN, PK1_OUT, PK1_IN, PK1_IN_PU, | ||
1115 | PK0_FN, PK0_OUT, PK0_IN, PK0_IN_PU } | ||
1116 | }, | ||
1117 | { PINMUX_CFG_REG("PLCR", 0xffe70014, 16, 2) { | ||
1118 | PL7_FN, PL7_OUT, PL7_IN, PL7_IN_PU, | ||
1119 | PL6_FN, PL6_OUT, PL6_IN, PL6_IN_PU, | ||
1120 | PL5_FN, PL5_OUT, PL5_IN, PL5_IN_PU, | ||
1121 | PL4_FN, PL4_OUT, PL4_IN, PL4_IN_PU, | ||
1122 | PL3_FN, PL3_OUT, PL3_IN, PL3_IN_PU, | ||
1123 | PL2_FN, PL2_OUT, PL2_IN, PL2_IN_PU, | ||
1124 | PL1_FN, PL1_OUT, PL1_IN, PL1_IN_PU, | ||
1125 | PL0_FN, PL0_OUT, PL0_IN, PL0_IN_PU } | ||
1126 | }, | ||
1127 | { PINMUX_CFG_REG("PMCR", 0xffe70016, 16, 2) { | ||
1128 | 0, 0, 0, 0, | ||
1129 | 0, 0, 0, 0, | ||
1130 | 0, 0, 0, 0, | ||
1131 | 0, 0, 0, 0, | ||
1132 | 0, 0, 0, 0, | ||
1133 | 0, 0, 0, 0, | ||
1134 | PM1_FN, PM1_OUT, PM1_IN, PM1_IN_PU, | ||
1135 | PM0_FN, PM0_OUT, PM0_IN, PM0_IN_PU } | ||
1136 | }, | ||
1137 | { PINMUX_CFG_REG("PNCR", 0xffe70018, 16, 2) { | ||
1138 | PN7_FN, PN7_OUT, PN7_IN, PN7_IN_PU, | ||
1139 | PN6_FN, PN6_OUT, PN6_IN, PN6_IN_PU, | ||
1140 | PN5_FN, PN5_OUT, PN5_IN, PN5_IN_PU, | ||
1141 | PN4_FN, PN4_OUT, PN4_IN, PN4_IN_PU, | ||
1142 | PN3_FN, PN3_OUT, PN3_IN, PN3_IN_PU, | ||
1143 | PN2_FN, PN2_OUT, PN2_IN, PN2_IN_PU, | ||
1144 | PN1_FN, PN1_OUT, PN1_IN, PN1_IN_PU, | ||
1145 | PN0_FN, PN0_OUT, PN0_IN, PN0_IN_PU } | ||
1146 | }, | ||
1147 | { PINMUX_CFG_REG("PPCR", 0xffe7001a, 16, 2) { | ||
1148 | 0, 0, 0, 0, | ||
1149 | 0, 0, 0, 0, | ||
1150 | PP5_FN, PP5_OUT, PP5_IN, PP5_IN_PU, | ||
1151 | PP4_FN, PP4_OUT, PP4_IN, PP4_IN_PU, | ||
1152 | PP3_FN, PP3_OUT, PP3_IN, PP3_IN_PU, | ||
1153 | PP2_FN, PP2_OUT, PP2_IN, PP2_IN_PU, | ||
1154 | PP1_FN, PP1_OUT, PP1_IN, PP1_IN_PU, | ||
1155 | PP0_FN, PP0_OUT, PP0_IN, PP0_IN_PU } | ||
1156 | }, | ||
1157 | { PINMUX_CFG_REG("PQCR", 0xffe7001c, 16, 2) { | ||
1158 | 0, 0, 0, 0, | ||
1159 | 0, 0, 0, 0, | ||
1160 | 0, 0, 0, 0, | ||
1161 | PQ4_FN, PQ4_OUT, PQ4_IN, PQ4_IN_PU, | ||
1162 | PQ3_FN, PQ3_OUT, PQ3_IN, PQ3_IN_PU, | ||
1163 | PQ2_FN, PQ2_OUT, PQ2_IN, PQ2_IN_PU, | ||
1164 | PQ1_FN, PQ1_OUT, PQ1_IN, PQ1_IN_PU, | ||
1165 | PQ0_FN, PQ0_OUT, PQ0_IN, PQ0_IN_PU } | ||
1166 | }, | ||
1167 | { PINMUX_CFG_REG("PRCR", 0xffe7001e, 16, 2) { | ||
1168 | 0, 0, 0, 0, | ||
1169 | 0, 0, 0, 0, | ||
1170 | 0, 0, 0, 0, | ||
1171 | 0, 0, 0, 0, | ||
1172 | PR3_FN, PR3_OUT, PR3_IN, PR3_IN_PU, | ||
1173 | PR2_FN, PR2_OUT, PR2_IN, PR2_IN_PU, | ||
1174 | PR1_FN, PR1_OUT, PR1_IN, PR1_IN_PU, | ||
1175 | PR0_FN, PR0_OUT, PR0_IN, PR0_IN_PU } | ||
1176 | }, | ||
1177 | { PINMUX_CFG_REG("P1MSELR", 0xffe70080, 16, 1) { | ||
1178 | P1MSEL15_0, P1MSEL15_1, | ||
1179 | P1MSEL14_0, P1MSEL14_1, | ||
1180 | P1MSEL13_0, P1MSEL13_1, | ||
1181 | P1MSEL12_0, P1MSEL12_1, | ||
1182 | P1MSEL11_0, P1MSEL11_1, | ||
1183 | P1MSEL10_0, P1MSEL10_1, | ||
1184 | P1MSEL9_0, P1MSEL9_1, | ||
1185 | P1MSEL8_0, P1MSEL8_1, | ||
1186 | P1MSEL7_0, P1MSEL7_1, | ||
1187 | P1MSEL6_0, P1MSEL6_1, | ||
1188 | P1MSEL5_0, 0, | ||
1189 | P1MSEL4_0, P1MSEL4_1, | ||
1190 | P1MSEL3_0, P1MSEL3_1, | ||
1191 | P1MSEL2_0, P1MSEL2_1, | ||
1192 | P1MSEL1_0, P1MSEL1_1, | ||
1193 | P1MSEL0_0, P1MSEL0_1 } | ||
1194 | }, | ||
1195 | { PINMUX_CFG_REG("P2MSELR", 0xffe70082, 16, 1) { | ||
1196 | 0, 0, | ||
1197 | 0, 0, | ||
1198 | 0, 0, | ||
1199 | 0, 0, | ||
1200 | 0, 0, | ||
1201 | 0, 0, | ||
1202 | 0, 0, | ||
1203 | 0, 0, | ||
1204 | 0, 0, | ||
1205 | 0, 0, | ||
1206 | 0, 0, | ||
1207 | 0, 0, | ||
1208 | 0, 0, | ||
1209 | P2MSEL2_0, P2MSEL2_1, | ||
1210 | P2MSEL1_0, P2MSEL1_1, | ||
1211 | P2MSEL0_0, P2MSEL0_1 } | ||
1212 | }, | ||
1213 | {} | ||
1214 | }; | ||
1215 | |||
1216 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1217 | { PINMUX_DATA_REG("PADR", 0xffe70020, 8) { | ||
1218 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
1219 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA } | ||
1220 | }, | ||
1221 | { PINMUX_DATA_REG("PBDR", 0xffe70022, 8) { | ||
1222 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
1223 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA } | ||
1224 | }, | ||
1225 | { PINMUX_DATA_REG("PCDR", 0xffe70024, 8) { | ||
1226 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
1227 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
1228 | }, | ||
1229 | { PINMUX_DATA_REG("PDDR", 0xffe70026, 8) { | ||
1230 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
1231 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
1232 | }, | ||
1233 | { PINMUX_DATA_REG("PEDR", 0xffe70028, 8) { | ||
1234 | 0, 0, PE5_DATA, PE4_DATA, | ||
1235 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA } | ||
1236 | }, | ||
1237 | { PINMUX_DATA_REG("PFDR", 0xffe7002a, 8) { | ||
1238 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
1239 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
1240 | }, | ||
1241 | { PINMUX_DATA_REG("PGDR", 0xffe7002c, 8) { | ||
1242 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
1243 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA } | ||
1244 | }, | ||
1245 | { PINMUX_DATA_REG("PHDR", 0xffe7002e, 8) { | ||
1246 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
1247 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA } | ||
1248 | }, | ||
1249 | { PINMUX_DATA_REG("PJDR", 0xffe70030, 8) { | ||
1250 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
1251 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA } | ||
1252 | }, | ||
1253 | { PINMUX_DATA_REG("PKDR", 0xffe70032, 8) { | ||
1254 | PK7_DATA, PK6_DATA, PK5_DATA, PK4_DATA, | ||
1255 | PK3_DATA, PK2_DATA, PK1_DATA, PK0_DATA } | ||
1256 | }, | ||
1257 | { PINMUX_DATA_REG("PLDR", 0xffe70034, 8) { | ||
1258 | PL7_DATA, PL6_DATA, PL5_DATA, PL4_DATA, | ||
1259 | PL3_DATA, PL2_DATA, PL1_DATA, PL0_DATA } | ||
1260 | }, | ||
1261 | { PINMUX_DATA_REG("PMDR", 0xffe70036, 8) { | ||
1262 | 0, 0, 0, 0, | ||
1263 | 0, 0, PM1_DATA, PM0_DATA } | ||
1264 | }, | ||
1265 | { PINMUX_DATA_REG("PNDR", 0xffe70038, 8) { | ||
1266 | PN7_DATA, PN6_DATA, PN5_DATA, PN4_DATA, | ||
1267 | PN3_DATA, PN2_DATA, PN1_DATA, PN0_DATA } | ||
1268 | }, | ||
1269 | { PINMUX_DATA_REG("PPDR", 0xffe7003a, 8) { | ||
1270 | 0, 0, PP5_DATA, PP4_DATA, | ||
1271 | PP3_DATA, PP2_DATA, PP1_DATA, PP0_DATA } | ||
1272 | }, | ||
1273 | { PINMUX_DATA_REG("PQDR", 0xffe7003c, 8) { | ||
1274 | 0, 0, 0, PQ4_DATA, | ||
1275 | PQ3_DATA, PQ2_DATA, PQ1_DATA, PQ0_DATA } | ||
1276 | }, | ||
1277 | { PINMUX_DATA_REG("PRDR", 0xffe7003e, 8) { | ||
1278 | 0, 0, 0, 0, | ||
1279 | PR3_DATA, PR2_DATA, PR1_DATA, PR0_DATA } | ||
1280 | }, | ||
1281 | { }, | ||
1282 | }; | ||
1283 | |||
1284 | static struct pinmux_info sh7785_pinmux_info = { | ||
1285 | .name = "sh7785_pfc", | ||
1286 | .reserved_id = PINMUX_RESERVED, | ||
1287 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1288 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1289 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1290 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1291 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1292 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1293 | |||
1294 | .first_gpio = GPIO_PA7, | ||
1295 | .last_gpio = GPIO_FN_IRQOUT, | ||
1296 | |||
1297 | .gpios = pinmux_gpios, | ||
1298 | .cfg_regs = pinmux_config_regs, | ||
1299 | .data_regs = pinmux_data_regs, | ||
1300 | |||
1301 | .gpio_data = pinmux_data, | ||
1302 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1303 | }; | ||
1304 | 14 | ||
1305 | static int __init plat_pinmux_setup(void) | 15 | static int __init plat_pinmux_setup(void) |
1306 | { | 16 | { |
1307 | return register_pinmux(&sh7785_pinmux_info); | 17 | return sh_pfc_register("pfc-sh7785", NULL, 0); |
1308 | } | 18 | } |
1309 | 19 | ||
1310 | arch_initcall(plat_pinmux_setup); | 20 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c index 4229e0724c89..3061778d55da 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c | |||
@@ -15,829 +15,11 @@ | |||
15 | 15 | ||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/gpio.h> | 18 | #include <cpu/pfc.h> |
19 | #include <cpu/sh7786.h> | ||
20 | |||
21 | enum { | ||
22 | PINMUX_RESERVED = 0, | ||
23 | |||
24 | PINMUX_DATA_BEGIN, | ||
25 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
26 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
27 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
28 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, | ||
29 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
30 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
31 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
32 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
33 | PE7_DATA, PE6_DATA, | ||
34 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
35 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
36 | PG7_DATA, PG6_DATA, PG5_DATA, | ||
37 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
38 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
39 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
40 | PJ3_DATA, PJ2_DATA, PJ1_DATA, | ||
41 | PINMUX_DATA_END, | ||
42 | |||
43 | PINMUX_INPUT_BEGIN, | ||
44 | PA7_IN, PA6_IN, PA5_IN, PA4_IN, | ||
45 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
46 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
47 | PB3_IN, PB2_IN, PB1_IN, PB0_IN, | ||
48 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
49 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
50 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
51 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
52 | PE7_IN, PE6_IN, | ||
53 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
54 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
55 | PG7_IN, PG6_IN, PG5_IN, | ||
56 | PH7_IN, PH6_IN, PH5_IN, PH4_IN, | ||
57 | PH3_IN, PH2_IN, PH1_IN, PH0_IN, | ||
58 | PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN, | ||
59 | PJ3_IN, PJ2_IN, PJ1_IN, | ||
60 | PINMUX_INPUT_END, | ||
61 | |||
62 | PINMUX_INPUT_PULLUP_BEGIN, | ||
63 | PA7_IN_PU, PA6_IN_PU, PA5_IN_PU, PA4_IN_PU, | ||
64 | PA3_IN_PU, PA2_IN_PU, PA1_IN_PU, PA0_IN_PU, | ||
65 | PB7_IN_PU, PB6_IN_PU, PB5_IN_PU, PB4_IN_PU, | ||
66 | PB3_IN_PU, PB2_IN_PU, PB1_IN_PU, PB0_IN_PU, | ||
67 | PC7_IN_PU, PC6_IN_PU, PC5_IN_PU, PC4_IN_PU, | ||
68 | PC3_IN_PU, PC2_IN_PU, PC1_IN_PU, PC0_IN_PU, | ||
69 | PD7_IN_PU, PD6_IN_PU, PD5_IN_PU, PD4_IN_PU, | ||
70 | PD3_IN_PU, PD2_IN_PU, PD1_IN_PU, PD0_IN_PU, | ||
71 | PE7_IN_PU, PE6_IN_PU, | ||
72 | PF7_IN_PU, PF6_IN_PU, PF5_IN_PU, PF4_IN_PU, | ||
73 | PF3_IN_PU, PF2_IN_PU, PF1_IN_PU, PF0_IN_PU, | ||
74 | PG7_IN_PU, PG6_IN_PU, PG5_IN_PU, | ||
75 | PH7_IN_PU, PH6_IN_PU, PH5_IN_PU, PH4_IN_PU, | ||
76 | PH3_IN_PU, PH2_IN_PU, PH1_IN_PU, PH0_IN_PU, | ||
77 | PJ7_IN_PU, PJ6_IN_PU, PJ5_IN_PU, PJ4_IN_PU, | ||
78 | PJ3_IN_PU, PJ2_IN_PU, PJ1_IN_PU, | ||
79 | PINMUX_INPUT_PULLUP_END, | ||
80 | |||
81 | PINMUX_OUTPUT_BEGIN, | ||
82 | PA7_OUT, PA6_OUT, PA5_OUT, PA4_OUT, | ||
83 | PA3_OUT, PA2_OUT, PA1_OUT, PA0_OUT, | ||
84 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
85 | PB3_OUT, PB2_OUT, PB1_OUT, PB0_OUT, | ||
86 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
87 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
88 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
89 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
90 | PE7_OUT, PE6_OUT, | ||
91 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
92 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
93 | PG7_OUT, PG6_OUT, PG5_OUT, | ||
94 | PH7_OUT, PH6_OUT, PH5_OUT, PH4_OUT, | ||
95 | PH3_OUT, PH2_OUT, PH1_OUT, PH0_OUT, | ||
96 | PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT, | ||
97 | PJ3_OUT, PJ2_OUT, PJ1_OUT, | ||
98 | PINMUX_OUTPUT_END, | ||
99 | |||
100 | PINMUX_FUNCTION_BEGIN, | ||
101 | PA7_FN, PA6_FN, PA5_FN, PA4_FN, | ||
102 | PA3_FN, PA2_FN, PA1_FN, PA0_FN, | ||
103 | PB7_FN, PB6_FN, PB5_FN, PB4_FN, | ||
104 | PB3_FN, PB2_FN, PB1_FN, PB0_FN, | ||
105 | PC7_FN, PC6_FN, PC5_FN, PC4_FN, | ||
106 | PC3_FN, PC2_FN, PC1_FN, PC0_FN, | ||
107 | PD7_FN, PD6_FN, PD5_FN, PD4_FN, | ||
108 | PD3_FN, PD2_FN, PD1_FN, PD0_FN, | ||
109 | PE7_FN, PE6_FN, | ||
110 | PF7_FN, PF6_FN, PF5_FN, PF4_FN, | ||
111 | PF3_FN, PF2_FN, PF1_FN, PF0_FN, | ||
112 | PG7_FN, PG6_FN, PG5_FN, | ||
113 | PH7_FN, PH6_FN, PH5_FN, PH4_FN, | ||
114 | PH3_FN, PH2_FN, PH1_FN, PH0_FN, | ||
115 | PJ7_FN, PJ6_FN, PJ5_FN, PJ4_FN, | ||
116 | PJ3_FN, PJ2_FN, PJ1_FN, | ||
117 | P1MSEL14_0, P1MSEL14_1, | ||
118 | P1MSEL13_0, P1MSEL13_1, | ||
119 | P1MSEL12_0, P1MSEL12_1, | ||
120 | P1MSEL11_0, P1MSEL11_1, | ||
121 | P1MSEL10_0, P1MSEL10_1, | ||
122 | P1MSEL9_0, P1MSEL9_1, | ||
123 | P1MSEL8_0, P1MSEL8_1, | ||
124 | P1MSEL7_0, P1MSEL7_1, | ||
125 | P1MSEL6_0, P1MSEL6_1, | ||
126 | P1MSEL5_0, P1MSEL5_1, | ||
127 | P1MSEL4_0, P1MSEL4_1, | ||
128 | P1MSEL3_0, P1MSEL3_1, | ||
129 | P1MSEL2_0, P1MSEL2_1, | ||
130 | P1MSEL1_0, P1MSEL1_1, | ||
131 | P1MSEL0_0, P1MSEL0_1, | ||
132 | |||
133 | P2MSEL15_0, P2MSEL15_1, | ||
134 | P2MSEL14_0, P2MSEL14_1, | ||
135 | P2MSEL13_0, P2MSEL13_1, | ||
136 | P2MSEL12_0, P2MSEL12_1, | ||
137 | P2MSEL11_0, P2MSEL11_1, | ||
138 | P2MSEL10_0, P2MSEL10_1, | ||
139 | P2MSEL9_0, P2MSEL9_1, | ||
140 | P2MSEL8_0, P2MSEL8_1, | ||
141 | P2MSEL7_0, P2MSEL7_1, | ||
142 | P2MSEL6_0, P2MSEL6_1, | ||
143 | P2MSEL5_0, P2MSEL5_1, | ||
144 | P2MSEL4_0, P2MSEL4_1, | ||
145 | P2MSEL3_0, P2MSEL3_1, | ||
146 | P2MSEL2_0, P2MSEL2_1, | ||
147 | P2MSEL1_0, P2MSEL1_1, | ||
148 | P2MSEL0_0, P2MSEL0_1, | ||
149 | PINMUX_FUNCTION_END, | ||
150 | |||
151 | PINMUX_MARK_BEGIN, | ||
152 | DCLKIN_MARK, DCLKOUT_MARK, ODDF_MARK, | ||
153 | VSYNC_MARK, HSYNC_MARK, CDE_MARK, DISP_MARK, | ||
154 | DR0_MARK, DR1_MARK, DR2_MARK, DR3_MARK, DR4_MARK, DR5_MARK, | ||
155 | DG0_MARK, DG1_MARK, DG2_MARK, DG3_MARK, DG4_MARK, DG5_MARK, | ||
156 | DB0_MARK, DB1_MARK, DB2_MARK, DB3_MARK, DB4_MARK, DB5_MARK, | ||
157 | ETH_MAGIC_MARK, ETH_LINK_MARK, ETH_TX_ER_MARK, ETH_TX_EN_MARK, | ||
158 | ETH_MDIO_MARK, ETH_RX_CLK_MARK, ETH_MDC_MARK, ETH_COL_MARK, | ||
159 | ETH_TX_CLK_MARK, ETH_CRS_MARK, ETH_RX_DV_MARK, ETH_RX_ER_MARK, | ||
160 | ETH_TXD3_MARK, ETH_TXD2_MARK, ETH_TXD1_MARK, ETH_TXD0_MARK, | ||
161 | ETH_RXD3_MARK, ETH_RXD2_MARK, ETH_RXD1_MARK, ETH_RXD0_MARK, | ||
162 | HSPI_CLK_MARK, HSPI_CS_MARK, HSPI_RX_MARK, HSPI_TX_MARK, | ||
163 | SCIF0_CTS_MARK, SCIF0_RTS_MARK, | ||
164 | SCIF0_SCK_MARK, SCIF0_RXD_MARK, SCIF0_TXD_MARK, | ||
165 | SCIF1_SCK_MARK, SCIF1_RXD_MARK, SCIF1_TXD_MARK, | ||
166 | SCIF3_SCK_MARK, SCIF3_RXD_MARK, SCIF3_TXD_MARK, | ||
167 | SCIF4_SCK_MARK, SCIF4_RXD_MARK, SCIF4_TXD_MARK, | ||
168 | SCIF5_SCK_MARK, SCIF5_RXD_MARK, SCIF5_TXD_MARK, | ||
169 | BREQ_MARK, IOIS16_MARK, CE2B_MARK, CE2A_MARK, BACK_MARK, | ||
170 | FALE_MARK, FRB_MARK, FSTATUS_MARK, | ||
171 | FSE_MARK, FCLE_MARK, | ||
172 | DACK0_MARK, DACK1_MARK, DACK2_MARK, DACK3_MARK, | ||
173 | DREQ0_MARK, DREQ1_MARK, DREQ2_MARK, DREQ3_MARK, | ||
174 | DRAK0_MARK, DRAK1_MARK, DRAK2_MARK, DRAK3_MARK, | ||
175 | USB_OVC1_MARK, USB_OVC0_MARK, | ||
176 | USB_PENC1_MARK, USB_PENC0_MARK, | ||
177 | HAC_RES_MARK, | ||
178 | HAC1_SDOUT_MARK, HAC1_SDIN_MARK, HAC1_SYNC_MARK, HAC1_BITCLK_MARK, | ||
179 | HAC0_SDOUT_MARK, HAC0_SDIN_MARK, HAC0_SYNC_MARK, HAC0_BITCLK_MARK, | ||
180 | SSI0_SDATA_MARK, SSI0_SCK_MARK, SSI0_WS_MARK, SSI0_CLK_MARK, | ||
181 | SSI1_SDATA_MARK, SSI1_SCK_MARK, SSI1_WS_MARK, SSI1_CLK_MARK, | ||
182 | SSI2_SDATA_MARK, SSI2_SCK_MARK, SSI2_WS_MARK, | ||
183 | SSI3_SDATA_MARK, SSI3_SCK_MARK, SSI3_WS_MARK, | ||
184 | SDIF1CMD_MARK, SDIF1CD_MARK, SDIF1WP_MARK, SDIF1CLK_MARK, | ||
185 | SDIF1D3_MARK, SDIF1D2_MARK, SDIF1D1_MARK, SDIF1D0_MARK, | ||
186 | SDIF0CMD_MARK, SDIF0CD_MARK, SDIF0WP_MARK, SDIF0CLK_MARK, | ||
187 | SDIF0D3_MARK, SDIF0D2_MARK, SDIF0D1_MARK, SDIF0D0_MARK, | ||
188 | TCLK_MARK, | ||
189 | IRL7_MARK, IRL6_MARK, IRL5_MARK, IRL4_MARK, | ||
190 | PINMUX_MARK_END, | ||
191 | }; | ||
192 | |||
193 | static pinmux_enum_t pinmux_data[] = { | ||
194 | |||
195 | /* PA GPIO */ | ||
196 | PINMUX_DATA(PA7_DATA, PA7_IN, PA7_OUT, PA7_IN_PU), | ||
197 | PINMUX_DATA(PA6_DATA, PA6_IN, PA6_OUT, PA6_IN_PU), | ||
198 | PINMUX_DATA(PA5_DATA, PA5_IN, PA5_OUT, PA5_IN_PU), | ||
199 | PINMUX_DATA(PA4_DATA, PA4_IN, PA4_OUT, PA4_IN_PU), | ||
200 | PINMUX_DATA(PA3_DATA, PA3_IN, PA3_OUT, PA3_IN_PU), | ||
201 | PINMUX_DATA(PA2_DATA, PA2_IN, PA2_OUT, PA2_IN_PU), | ||
202 | PINMUX_DATA(PA1_DATA, PA1_IN, PA1_OUT, PA1_IN_PU), | ||
203 | PINMUX_DATA(PA0_DATA, PA0_IN, PA0_OUT, PA0_IN_PU), | ||
204 | |||
205 | /* PB GPIO */ | ||
206 | PINMUX_DATA(PB7_DATA, PB7_IN, PB7_OUT, PB7_IN_PU), | ||
207 | PINMUX_DATA(PB6_DATA, PB6_IN, PB6_OUT, PB6_IN_PU), | ||
208 | PINMUX_DATA(PB5_DATA, PB5_IN, PB5_OUT, PB5_IN_PU), | ||
209 | PINMUX_DATA(PB4_DATA, PB4_IN, PB4_OUT, PB4_IN_PU), | ||
210 | PINMUX_DATA(PB3_DATA, PB3_IN, PB3_OUT, PB3_IN_PU), | ||
211 | PINMUX_DATA(PB2_DATA, PB2_IN, PB2_OUT, PB2_IN_PU), | ||
212 | PINMUX_DATA(PB1_DATA, PB1_IN, PB1_OUT, PB1_IN_PU), | ||
213 | PINMUX_DATA(PB0_DATA, PB0_IN, PB0_OUT, PB0_IN_PU), | ||
214 | |||
215 | /* PC GPIO */ | ||
216 | PINMUX_DATA(PC7_DATA, PC7_IN, PC7_OUT, PC7_IN_PU), | ||
217 | PINMUX_DATA(PC6_DATA, PC6_IN, PC6_OUT, PC6_IN_PU), | ||
218 | PINMUX_DATA(PC5_DATA, PC5_IN, PC5_OUT, PC5_IN_PU), | ||
219 | PINMUX_DATA(PC4_DATA, PC4_IN, PC4_OUT, PC4_IN_PU), | ||
220 | PINMUX_DATA(PC3_DATA, PC3_IN, PC3_OUT, PC3_IN_PU), | ||
221 | PINMUX_DATA(PC2_DATA, PC2_IN, PC2_OUT, PC2_IN_PU), | ||
222 | PINMUX_DATA(PC1_DATA, PC1_IN, PC1_OUT, PC1_IN_PU), | ||
223 | PINMUX_DATA(PC0_DATA, PC0_IN, PC0_OUT, PC0_IN_PU), | ||
224 | |||
225 | /* PD GPIO */ | ||
226 | PINMUX_DATA(PD7_DATA, PD7_IN, PD7_OUT, PD7_IN_PU), | ||
227 | PINMUX_DATA(PD6_DATA, PD6_IN, PD6_OUT, PD6_IN_PU), | ||
228 | PINMUX_DATA(PD5_DATA, PD5_IN, PD5_OUT, PD5_IN_PU), | ||
229 | PINMUX_DATA(PD4_DATA, PD4_IN, PD4_OUT, PD4_IN_PU), | ||
230 | PINMUX_DATA(PD3_DATA, PD3_IN, PD3_OUT, PD3_IN_PU), | ||
231 | PINMUX_DATA(PD2_DATA, PD2_IN, PD2_OUT, PD2_IN_PU), | ||
232 | PINMUX_DATA(PD1_DATA, PD1_IN, PD1_OUT, PD1_IN_PU), | ||
233 | PINMUX_DATA(PD0_DATA, PD0_IN, PD0_OUT, PD0_IN_PU), | ||
234 | |||
235 | /* PE GPIO */ | ||
236 | PINMUX_DATA(PE7_DATA, PE7_IN, PE7_OUT, PE7_IN_PU), | ||
237 | PINMUX_DATA(PE6_DATA, PE6_IN, PE6_OUT, PE6_IN_PU), | ||
238 | |||
239 | /* PF GPIO */ | ||
240 | PINMUX_DATA(PF7_DATA, PF7_IN, PF7_OUT, PF7_IN_PU), | ||
241 | PINMUX_DATA(PF6_DATA, PF6_IN, PF6_OUT, PF6_IN_PU), | ||
242 | PINMUX_DATA(PF5_DATA, PF5_IN, PF5_OUT, PF5_IN_PU), | ||
243 | PINMUX_DATA(PF4_DATA, PF4_IN, PF4_OUT, PF4_IN_PU), | ||
244 | PINMUX_DATA(PF3_DATA, PF3_IN, PF3_OUT, PF3_IN_PU), | ||
245 | PINMUX_DATA(PF2_DATA, PF2_IN, PF2_OUT, PF2_IN_PU), | ||
246 | PINMUX_DATA(PF1_DATA, PF1_IN, PF1_OUT, PF1_IN_PU), | ||
247 | PINMUX_DATA(PF0_DATA, PF0_IN, PF0_OUT, PF0_IN_PU), | ||
248 | |||
249 | /* PG GPIO */ | ||
250 | PINMUX_DATA(PG7_DATA, PG7_IN, PG7_OUT, PG7_IN_PU), | ||
251 | PINMUX_DATA(PG6_DATA, PG6_IN, PG6_OUT, PG6_IN_PU), | ||
252 | PINMUX_DATA(PG5_DATA, PG5_IN, PG5_OUT, PG5_IN_PU), | ||
253 | |||
254 | /* PH GPIO */ | ||
255 | PINMUX_DATA(PH7_DATA, PH7_IN, PH7_OUT, PH7_IN_PU), | ||
256 | PINMUX_DATA(PH6_DATA, PH6_IN, PH6_OUT, PH6_IN_PU), | ||
257 | PINMUX_DATA(PH5_DATA, PH5_IN, PH5_OUT, PH5_IN_PU), | ||
258 | PINMUX_DATA(PH4_DATA, PH4_IN, PH4_OUT, PH4_IN_PU), | ||
259 | PINMUX_DATA(PH3_DATA, PH3_IN, PH3_OUT, PH3_IN_PU), | ||
260 | PINMUX_DATA(PH2_DATA, PH2_IN, PH2_OUT, PH2_IN_PU), | ||
261 | PINMUX_DATA(PH1_DATA, PH1_IN, PH1_OUT, PH1_IN_PU), | ||
262 | PINMUX_DATA(PH0_DATA, PH0_IN, PH0_OUT, PH0_IN_PU), | ||
263 | |||
264 | /* PJ GPIO */ | ||
265 | PINMUX_DATA(PJ7_DATA, PJ7_IN, PJ7_OUT, PJ7_IN_PU), | ||
266 | PINMUX_DATA(PJ6_DATA, PJ6_IN, PJ6_OUT, PJ6_IN_PU), | ||
267 | PINMUX_DATA(PJ5_DATA, PJ5_IN, PJ5_OUT, PJ5_IN_PU), | ||
268 | PINMUX_DATA(PJ4_DATA, PJ4_IN, PJ4_OUT, PJ4_IN_PU), | ||
269 | PINMUX_DATA(PJ3_DATA, PJ3_IN, PJ3_OUT, PJ3_IN_PU), | ||
270 | PINMUX_DATA(PJ2_DATA, PJ2_IN, PJ2_OUT, PJ2_IN_PU), | ||
271 | PINMUX_DATA(PJ1_DATA, PJ1_IN, PJ1_OUT, PJ1_IN_PU), | ||
272 | |||
273 | /* PA FN */ | ||
274 | PINMUX_DATA(CDE_MARK, P1MSEL2_0, PA7_FN), | ||
275 | PINMUX_DATA(DISP_MARK, P1MSEL2_0, PA6_FN), | ||
276 | PINMUX_DATA(DR5_MARK, P1MSEL2_0, PA5_FN), | ||
277 | PINMUX_DATA(DR4_MARK, P1MSEL2_0, PA4_FN), | ||
278 | PINMUX_DATA(DR3_MARK, P1MSEL2_0, PA3_FN), | ||
279 | PINMUX_DATA(DR2_MARK, P1MSEL2_0, PA2_FN), | ||
280 | PINMUX_DATA(DR1_MARK, P1MSEL2_0, PA1_FN), | ||
281 | PINMUX_DATA(DR0_MARK, P1MSEL2_0, PA0_FN), | ||
282 | PINMUX_DATA(ETH_MAGIC_MARK, P1MSEL2_1, PA7_FN), | ||
283 | PINMUX_DATA(ETH_LINK_MARK, P1MSEL2_1, PA6_FN), | ||
284 | PINMUX_DATA(ETH_TX_ER_MARK, P1MSEL2_1, PA5_FN), | ||
285 | PINMUX_DATA(ETH_TX_EN_MARK, P1MSEL2_1, PA4_FN), | ||
286 | PINMUX_DATA(ETH_TXD3_MARK, P1MSEL2_1, PA3_FN), | ||
287 | PINMUX_DATA(ETH_TXD2_MARK, P1MSEL2_1, PA2_FN), | ||
288 | PINMUX_DATA(ETH_TXD1_MARK, P1MSEL2_1, PA1_FN), | ||
289 | PINMUX_DATA(ETH_TXD0_MARK, P1MSEL2_1, PA0_FN), | ||
290 | |||
291 | /* PB FN */ | ||
292 | PINMUX_DATA(VSYNC_MARK, P1MSEL3_0, PB7_FN), | ||
293 | PINMUX_DATA(ODDF_MARK, P1MSEL3_0, PB6_FN), | ||
294 | PINMUX_DATA(DG5_MARK, P1MSEL2_0, PB5_FN), | ||
295 | PINMUX_DATA(DG4_MARK, P1MSEL2_0, PB4_FN), | ||
296 | PINMUX_DATA(DG3_MARK, P1MSEL2_0, PB3_FN), | ||
297 | PINMUX_DATA(DG2_MARK, P1MSEL2_0, PB2_FN), | ||
298 | PINMUX_DATA(DG1_MARK, P1MSEL2_0, PB1_FN), | ||
299 | PINMUX_DATA(DG0_MARK, P1MSEL2_0, PB0_FN), | ||
300 | PINMUX_DATA(HSPI_CLK_MARK, P1MSEL3_1, PB7_FN), | ||
301 | PINMUX_DATA(HSPI_CS_MARK, P1MSEL3_1, PB6_FN), | ||
302 | PINMUX_DATA(ETH_MDIO_MARK, P1MSEL2_1, PB5_FN), | ||
303 | PINMUX_DATA(ETH_RX_CLK_MARK, P1MSEL2_1, PB4_FN), | ||
304 | PINMUX_DATA(ETH_MDC_MARK, P1MSEL2_1, PB3_FN), | ||
305 | PINMUX_DATA(ETH_COL_MARK, P1MSEL2_1, PB2_FN), | ||
306 | PINMUX_DATA(ETH_TX_CLK_MARK, P1MSEL2_1, PB1_FN), | ||
307 | PINMUX_DATA(ETH_CRS_MARK, P1MSEL2_1, PB0_FN), | ||
308 | |||
309 | /* PC FN */ | ||
310 | PINMUX_DATA(DCLKIN_MARK, P1MSEL3_0, PC7_FN), | ||
311 | PINMUX_DATA(HSYNC_MARK, P1MSEL3_0, PC6_FN), | ||
312 | PINMUX_DATA(DB5_MARK, P1MSEL2_0, PC5_FN), | ||
313 | PINMUX_DATA(DB4_MARK, P1MSEL2_0, PC4_FN), | ||
314 | PINMUX_DATA(DB3_MARK, P1MSEL2_0, PC3_FN), | ||
315 | PINMUX_DATA(DB2_MARK, P1MSEL2_0, PC2_FN), | ||
316 | PINMUX_DATA(DB1_MARK, P1MSEL2_0, PC1_FN), | ||
317 | PINMUX_DATA(DB0_MARK, P1MSEL2_0, PC0_FN), | ||
318 | |||
319 | PINMUX_DATA(HSPI_RX_MARK, P1MSEL3_1, PC7_FN), | ||
320 | PINMUX_DATA(HSPI_TX_MARK, P1MSEL3_1, PC6_FN), | ||
321 | PINMUX_DATA(ETH_RXD3_MARK, P1MSEL2_1, PC5_FN), | ||
322 | PINMUX_DATA(ETH_RXD2_MARK, P1MSEL2_1, PC4_FN), | ||
323 | PINMUX_DATA(ETH_RXD1_MARK, P1MSEL2_1, PC3_FN), | ||
324 | PINMUX_DATA(ETH_RXD0_MARK, P1MSEL2_1, PC2_FN), | ||
325 | PINMUX_DATA(ETH_RX_DV_MARK, P1MSEL2_1, PC1_FN), | ||
326 | PINMUX_DATA(ETH_RX_ER_MARK, P1MSEL2_1, PC0_FN), | ||
327 | |||
328 | /* PD FN */ | ||
329 | PINMUX_DATA(DCLKOUT_MARK, PD7_FN), | ||
330 | PINMUX_DATA(SCIF1_SCK_MARK, PD6_FN), | ||
331 | PINMUX_DATA(SCIF1_RXD_MARK, PD5_FN), | ||
332 | PINMUX_DATA(SCIF1_TXD_MARK, PD4_FN), | ||
333 | PINMUX_DATA(DACK1_MARK, P1MSEL13_1, P1MSEL12_0, PD3_FN), | ||
334 | PINMUX_DATA(BACK_MARK, P1MSEL13_0, P1MSEL12_1, PD3_FN), | ||
335 | PINMUX_DATA(FALE_MARK, P1MSEL13_0, P1MSEL12_0, PD3_FN), | ||
336 | PINMUX_DATA(DACK0_MARK, P1MSEL14_1, PD2_FN), | ||
337 | PINMUX_DATA(FCLE_MARK, P1MSEL14_0, PD2_FN), | ||
338 | PINMUX_DATA(DREQ1_MARK, P1MSEL10_0, P1MSEL9_1, PD1_FN), | ||
339 | PINMUX_DATA(BREQ_MARK, P1MSEL10_1, P1MSEL9_0, PD1_FN), | ||
340 | PINMUX_DATA(USB_OVC1_MARK, P1MSEL10_0, P1MSEL9_0, PD1_FN), | ||
341 | PINMUX_DATA(DREQ0_MARK, P1MSEL11_1, PD0_FN), | ||
342 | PINMUX_DATA(USB_OVC0_MARK, P1MSEL11_0, PD0_FN), | ||
343 | |||
344 | /* PE FN */ | ||
345 | PINMUX_DATA(USB_PENC1_MARK, PE7_FN), | ||
346 | PINMUX_DATA(USB_PENC0_MARK, PE6_FN), | ||
347 | |||
348 | /* PF FN */ | ||
349 | PINMUX_DATA(HAC1_SDOUT_MARK, P2MSEL15_0, P2MSEL14_0, PF7_FN), | ||
350 | PINMUX_DATA(HAC1_SDIN_MARK, P2MSEL15_0, P2MSEL14_0, PF6_FN), | ||
351 | PINMUX_DATA(HAC1_SYNC_MARK, P2MSEL15_0, P2MSEL14_0, PF5_FN), | ||
352 | PINMUX_DATA(HAC1_BITCLK_MARK, P2MSEL15_0, P2MSEL14_0, PF4_FN), | ||
353 | PINMUX_DATA(HAC0_SDOUT_MARK, P2MSEL13_0, P2MSEL12_0, PF3_FN), | ||
354 | PINMUX_DATA(HAC0_SDIN_MARK, P2MSEL13_0, P2MSEL12_0, PF2_FN), | ||
355 | PINMUX_DATA(HAC0_SYNC_MARK, P2MSEL13_0, P2MSEL12_0, PF1_FN), | ||
356 | PINMUX_DATA(HAC0_BITCLK_MARK, P2MSEL13_0, P2MSEL12_0, PF0_FN), | ||
357 | PINMUX_DATA(SSI1_SDATA_MARK, P2MSEL15_0, P2MSEL14_1, PF7_FN), | ||
358 | PINMUX_DATA(SSI1_SCK_MARK, P2MSEL15_0, P2MSEL14_1, PF6_FN), | ||
359 | PINMUX_DATA(SSI1_WS_MARK, P2MSEL15_0, P2MSEL14_1, PF5_FN), | ||
360 | PINMUX_DATA(SSI1_CLK_MARK, P2MSEL15_0, P2MSEL14_1, PF4_FN), | ||
361 | PINMUX_DATA(SSI0_SDATA_MARK, P2MSEL13_0, P2MSEL12_1, PF3_FN), | ||
362 | PINMUX_DATA(SSI0_SCK_MARK, P2MSEL13_0, P2MSEL12_1, PF2_FN), | ||
363 | PINMUX_DATA(SSI0_WS_MARK, P2MSEL13_0, P2MSEL12_1, PF1_FN), | ||
364 | PINMUX_DATA(SSI0_CLK_MARK, P2MSEL13_0, P2MSEL12_1, PF0_FN), | ||
365 | PINMUX_DATA(SDIF1CMD_MARK, P2MSEL15_1, P2MSEL14_0, PF7_FN), | ||
366 | PINMUX_DATA(SDIF1CD_MARK, P2MSEL15_1, P2MSEL14_0, PF6_FN), | ||
367 | PINMUX_DATA(SDIF1WP_MARK, P2MSEL15_1, P2MSEL14_0, PF5_FN), | ||
368 | PINMUX_DATA(SDIF1CLK_MARK, P2MSEL15_1, P2MSEL14_0, PF4_FN), | ||
369 | PINMUX_DATA(SDIF1D3_MARK, P2MSEL13_1, P2MSEL12_0, PF3_FN), | ||
370 | PINMUX_DATA(SDIF1D2_MARK, P2MSEL13_1, P2MSEL12_0, PF2_FN), | ||
371 | PINMUX_DATA(SDIF1D1_MARK, P2MSEL13_1, P2MSEL12_0, PF1_FN), | ||
372 | PINMUX_DATA(SDIF1D0_MARK, P2MSEL13_1, P2MSEL12_0, PF0_FN), | ||
373 | |||
374 | /* PG FN */ | ||
375 | PINMUX_DATA(SCIF3_SCK_MARK, P1MSEL8_0, PG7_FN), | ||
376 | PINMUX_DATA(SSI2_SDATA_MARK, P1MSEL8_1, PG7_FN), | ||
377 | PINMUX_DATA(SCIF3_RXD_MARK, P1MSEL7_0, P1MSEL6_0, PG6_FN), | ||
378 | PINMUX_DATA(SSI2_SCK_MARK, P1MSEL7_1, P1MSEL6_0, PG6_FN), | ||
379 | PINMUX_DATA(TCLK_MARK, P1MSEL7_0, P1MSEL6_1, PG6_FN), | ||
380 | PINMUX_DATA(SCIF3_TXD_MARK, P1MSEL5_0, P1MSEL4_0, PG5_FN), | ||
381 | PINMUX_DATA(SSI2_WS_MARK, P1MSEL5_1, P1MSEL4_0, PG5_FN), | ||
382 | PINMUX_DATA(HAC_RES_MARK, P1MSEL5_0, P1MSEL4_1, PG5_FN), | ||
383 | |||
384 | /* PH FN */ | ||
385 | PINMUX_DATA(DACK3_MARK, P2MSEL4_0, PH7_FN), | ||
386 | PINMUX_DATA(SDIF0CMD_MARK, P2MSEL4_1, PH7_FN), | ||
387 | PINMUX_DATA(DACK2_MARK, P2MSEL4_0, PH6_FN), | ||
388 | PINMUX_DATA(SDIF0CD_MARK, P2MSEL4_1, PH6_FN), | ||
389 | PINMUX_DATA(DREQ3_MARK, P2MSEL4_0, PH5_FN), | ||
390 | PINMUX_DATA(SDIF0WP_MARK, P2MSEL4_1, PH5_FN), | ||
391 | PINMUX_DATA(DREQ2_MARK, P2MSEL3_0, P2MSEL2_1, PH4_FN), | ||
392 | PINMUX_DATA(SDIF0CLK_MARK, P2MSEL3_1, P2MSEL2_0, PH4_FN), | ||
393 | PINMUX_DATA(SCIF0_CTS_MARK, P2MSEL3_0, P2MSEL2_0, PH4_FN), | ||
394 | PINMUX_DATA(SDIF0D3_MARK, P2MSEL1_1, P2MSEL0_0, PH3_FN), | ||
395 | PINMUX_DATA(SCIF0_RTS_MARK, P2MSEL1_0, P2MSEL0_0, PH3_FN), | ||
396 | PINMUX_DATA(IRL7_MARK, P2MSEL1_0, P2MSEL0_1, PH3_FN), | ||
397 | PINMUX_DATA(SDIF0D2_MARK, P2MSEL1_1, P2MSEL0_0, PH2_FN), | ||
398 | PINMUX_DATA(SCIF0_SCK_MARK, P2MSEL1_0, P2MSEL0_0, PH2_FN), | ||
399 | PINMUX_DATA(IRL6_MARK, P2MSEL1_0, P2MSEL0_1, PH2_FN), | ||
400 | PINMUX_DATA(SDIF0D1_MARK, P2MSEL1_1, P2MSEL0_0, PH1_FN), | ||
401 | PINMUX_DATA(SCIF0_RXD_MARK, P2MSEL1_0, P2MSEL0_0, PH1_FN), | ||
402 | PINMUX_DATA(IRL5_MARK, P2MSEL1_0, P2MSEL0_1, PH1_FN), | ||
403 | PINMUX_DATA(SDIF0D0_MARK, P2MSEL1_1, P2MSEL0_0, PH0_FN), | ||
404 | PINMUX_DATA(SCIF0_TXD_MARK, P2MSEL1_0, P2MSEL0_0, PH0_FN), | ||
405 | PINMUX_DATA(IRL4_MARK, P2MSEL1_0, P2MSEL0_1, PH0_FN), | ||
406 | |||
407 | /* PJ FN */ | ||
408 | PINMUX_DATA(SCIF5_SCK_MARK, P2MSEL11_1, PJ7_FN), | ||
409 | PINMUX_DATA(FRB_MARK, P2MSEL11_0, PJ7_FN), | ||
410 | PINMUX_DATA(SCIF5_RXD_MARK, P2MSEL10_0, PJ6_FN), | ||
411 | PINMUX_DATA(IOIS16_MARK, P2MSEL10_1, PJ6_FN), | ||
412 | PINMUX_DATA(SCIF5_TXD_MARK, P2MSEL10_0, PJ5_FN), | ||
413 | PINMUX_DATA(CE2B_MARK, P2MSEL10_1, PJ5_FN), | ||
414 | PINMUX_DATA(DRAK3_MARK, P2MSEL7_0, PJ4_FN), | ||
415 | PINMUX_DATA(CE2A_MARK, P2MSEL7_1, PJ4_FN), | ||
416 | PINMUX_DATA(SCIF4_SCK_MARK, P2MSEL9_0, P2MSEL8_0, PJ3_FN), | ||
417 | PINMUX_DATA(DRAK2_MARK, P2MSEL9_0, P2MSEL8_1, PJ3_FN), | ||
418 | PINMUX_DATA(SSI3_WS_MARK, P2MSEL9_1, P2MSEL8_0, PJ3_FN), | ||
419 | PINMUX_DATA(SCIF4_RXD_MARK, P2MSEL6_1, P2MSEL5_0, PJ2_FN), | ||
420 | PINMUX_DATA(DRAK1_MARK, P2MSEL6_0, P2MSEL5_1, PJ2_FN), | ||
421 | PINMUX_DATA(FSTATUS_MARK, P2MSEL6_0, P2MSEL5_0, PJ2_FN), | ||
422 | PINMUX_DATA(SSI3_SDATA_MARK, P2MSEL6_1, P2MSEL5_1, PJ2_FN), | ||
423 | PINMUX_DATA(SCIF4_TXD_MARK, P2MSEL6_1, P2MSEL5_0, PJ1_FN), | ||
424 | PINMUX_DATA(DRAK0_MARK, P2MSEL6_0, P2MSEL5_1, PJ1_FN), | ||
425 | PINMUX_DATA(FSE_MARK, P2MSEL6_0, P2MSEL5_0, PJ1_FN), | ||
426 | PINMUX_DATA(SSI3_SCK_MARK, P2MSEL6_1, P2MSEL5_1, PJ1_FN), | ||
427 | }; | ||
428 | |||
429 | static struct pinmux_gpio pinmux_gpios[] = { | ||
430 | /* PA */ | ||
431 | PINMUX_GPIO(GPIO_PA7, PA7_DATA), | ||
432 | PINMUX_GPIO(GPIO_PA6, PA6_DATA), | ||
433 | PINMUX_GPIO(GPIO_PA5, PA5_DATA), | ||
434 | PINMUX_GPIO(GPIO_PA4, PA4_DATA), | ||
435 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
436 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
437 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
438 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
439 | |||
440 | /* PB */ | ||
441 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
442 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
443 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
444 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
445 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
446 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
447 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
448 | PINMUX_GPIO(GPIO_PB0, PB0_DATA), | ||
449 | |||
450 | /* PC */ | ||
451 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
452 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
453 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
454 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
455 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
456 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
457 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
458 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
459 | |||
460 | /* PD */ | ||
461 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
462 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
463 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
464 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
465 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
466 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
467 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
468 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
469 | |||
470 | /* PE */ | ||
471 | PINMUX_GPIO(GPIO_PE5, PE7_DATA), | ||
472 | PINMUX_GPIO(GPIO_PE4, PE6_DATA), | ||
473 | |||
474 | /* PF */ | ||
475 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
476 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
477 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
478 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
479 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
480 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
481 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
482 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
483 | |||
484 | /* PG */ | ||
485 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
486 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
487 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
488 | |||
489 | /* PH */ | ||
490 | PINMUX_GPIO(GPIO_PH7, PH7_DATA), | ||
491 | PINMUX_GPIO(GPIO_PH6, PH6_DATA), | ||
492 | PINMUX_GPIO(GPIO_PH5, PH5_DATA), | ||
493 | PINMUX_GPIO(GPIO_PH4, PH4_DATA), | ||
494 | PINMUX_GPIO(GPIO_PH3, PH3_DATA), | ||
495 | PINMUX_GPIO(GPIO_PH2, PH2_DATA), | ||
496 | PINMUX_GPIO(GPIO_PH1, PH1_DATA), | ||
497 | PINMUX_GPIO(GPIO_PH0, PH0_DATA), | ||
498 | |||
499 | /* PJ */ | ||
500 | PINMUX_GPIO(GPIO_PJ7, PJ7_DATA), | ||
501 | PINMUX_GPIO(GPIO_PJ6, PJ6_DATA), | ||
502 | PINMUX_GPIO(GPIO_PJ5, PJ5_DATA), | ||
503 | PINMUX_GPIO(GPIO_PJ4, PJ4_DATA), | ||
504 | PINMUX_GPIO(GPIO_PJ3, PJ3_DATA), | ||
505 | PINMUX_GPIO(GPIO_PJ2, PJ2_DATA), | ||
506 | PINMUX_GPIO(GPIO_PJ1, PJ1_DATA), | ||
507 | |||
508 | /* FN */ | ||
509 | PINMUX_GPIO(GPIO_FN_CDE, CDE_MARK), | ||
510 | PINMUX_GPIO(GPIO_FN_ETH_MAGIC, ETH_MAGIC_MARK), | ||
511 | PINMUX_GPIO(GPIO_FN_DISP, DISP_MARK), | ||
512 | PINMUX_GPIO(GPIO_FN_ETH_LINK, ETH_LINK_MARK), | ||
513 | PINMUX_GPIO(GPIO_FN_DR5, DR5_MARK), | ||
514 | PINMUX_GPIO(GPIO_FN_ETH_TX_ER, ETH_TX_ER_MARK), | ||
515 | PINMUX_GPIO(GPIO_FN_DR4, DR4_MARK), | ||
516 | PINMUX_GPIO(GPIO_FN_ETH_TX_EN, ETH_TX_EN_MARK), | ||
517 | PINMUX_GPIO(GPIO_FN_DR3, DR3_MARK), | ||
518 | PINMUX_GPIO(GPIO_FN_ETH_TXD3, ETH_TXD3_MARK), | ||
519 | PINMUX_GPIO(GPIO_FN_DR2, DR2_MARK), | ||
520 | PINMUX_GPIO(GPIO_FN_ETH_TXD2, ETH_TXD2_MARK), | ||
521 | PINMUX_GPIO(GPIO_FN_DR1, DR1_MARK), | ||
522 | PINMUX_GPIO(GPIO_FN_ETH_TXD1, ETH_TXD1_MARK), | ||
523 | PINMUX_GPIO(GPIO_FN_DR0, DR0_MARK), | ||
524 | PINMUX_GPIO(GPIO_FN_ETH_TXD0, ETH_TXD0_MARK), | ||
525 | PINMUX_GPIO(GPIO_FN_VSYNC, VSYNC_MARK), | ||
526 | PINMUX_GPIO(GPIO_FN_HSPI_CLK, HSPI_CLK_MARK), | ||
527 | PINMUX_GPIO(GPIO_FN_ODDF, ODDF_MARK), | ||
528 | PINMUX_GPIO(GPIO_FN_HSPI_CS, HSPI_CS_MARK), | ||
529 | PINMUX_GPIO(GPIO_FN_DG5, DG5_MARK), | ||
530 | PINMUX_GPIO(GPIO_FN_ETH_MDIO, ETH_MDIO_MARK), | ||
531 | PINMUX_GPIO(GPIO_FN_DG4, DG4_MARK), | ||
532 | PINMUX_GPIO(GPIO_FN_ETH_RX_CLK, ETH_RX_CLK_MARK), | ||
533 | PINMUX_GPIO(GPIO_FN_DG3, DG3_MARK), | ||
534 | PINMUX_GPIO(GPIO_FN_ETH_MDC, ETH_MDC_MARK), | ||
535 | PINMUX_GPIO(GPIO_FN_DG2, DG2_MARK), | ||
536 | PINMUX_GPIO(GPIO_FN_ETH_COL, ETH_COL_MARK), | ||
537 | PINMUX_GPIO(GPIO_FN_DG1, DG1_MARK), | ||
538 | PINMUX_GPIO(GPIO_FN_ETH_TX_CLK, ETH_TX_CLK_MARK), | ||
539 | PINMUX_GPIO(GPIO_FN_DG0, DG0_MARK), | ||
540 | PINMUX_GPIO(GPIO_FN_ETH_CRS, ETH_CRS_MARK), | ||
541 | PINMUX_GPIO(GPIO_FN_DCLKIN, DCLKIN_MARK), | ||
542 | PINMUX_GPIO(GPIO_FN_HSPI_RX, HSPI_RX_MARK), | ||
543 | PINMUX_GPIO(GPIO_FN_HSYNC, HSYNC_MARK), | ||
544 | PINMUX_GPIO(GPIO_FN_HSPI_TX, HSPI_TX_MARK), | ||
545 | PINMUX_GPIO(GPIO_FN_DB5, DB5_MARK), | ||
546 | PINMUX_GPIO(GPIO_FN_ETH_RXD3, ETH_RXD3_MARK), | ||
547 | PINMUX_GPIO(GPIO_FN_DB4, DB4_MARK), | ||
548 | PINMUX_GPIO(GPIO_FN_ETH_RXD2, ETH_RXD2_MARK), | ||
549 | PINMUX_GPIO(GPIO_FN_DB3, DB3_MARK), | ||
550 | PINMUX_GPIO(GPIO_FN_ETH_RXD1, ETH_RXD1_MARK), | ||
551 | PINMUX_GPIO(GPIO_FN_DB2, DB2_MARK), | ||
552 | PINMUX_GPIO(GPIO_FN_ETH_RXD0, ETH_RXD0_MARK), | ||
553 | PINMUX_GPIO(GPIO_FN_DB1, DB1_MARK), | ||
554 | PINMUX_GPIO(GPIO_FN_ETH_RX_DV, ETH_RX_DV_MARK), | ||
555 | PINMUX_GPIO(GPIO_FN_DB0, DB0_MARK), | ||
556 | PINMUX_GPIO(GPIO_FN_ETH_RX_ER, ETH_RX_ER_MARK), | ||
557 | PINMUX_GPIO(GPIO_FN_DCLKOUT, DCLKOUT_MARK), | ||
558 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
559 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
560 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
561 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
562 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
563 | PINMUX_GPIO(GPIO_FN_FALE, FALE_MARK), | ||
564 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
565 | PINMUX_GPIO(GPIO_FN_FCLE, FCLE_MARK), | ||
566 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
567 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
568 | PINMUX_GPIO(GPIO_FN_USB_OVC1, USB_OVC1_MARK), | ||
569 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
570 | PINMUX_GPIO(GPIO_FN_USB_OVC0, USB_OVC0_MARK), | ||
571 | PINMUX_GPIO(GPIO_FN_USB_PENC1, USB_PENC1_MARK), | ||
572 | PINMUX_GPIO(GPIO_FN_USB_PENC0, USB_PENC0_MARK), | ||
573 | PINMUX_GPIO(GPIO_FN_HAC1_SDOUT, HAC1_SDOUT_MARK), | ||
574 | PINMUX_GPIO(GPIO_FN_SSI1_SDATA, SSI1_SDATA_MARK), | ||
575 | PINMUX_GPIO(GPIO_FN_SDIF1CMD, SDIF1CMD_MARK), | ||
576 | PINMUX_GPIO(GPIO_FN_HAC1_SDIN, HAC1_SDIN_MARK), | ||
577 | PINMUX_GPIO(GPIO_FN_SSI1_SCK, SSI1_SCK_MARK), | ||
578 | PINMUX_GPIO(GPIO_FN_SDIF1CD, SDIF1CD_MARK), | ||
579 | PINMUX_GPIO(GPIO_FN_HAC1_SYNC, HAC1_SYNC_MARK), | ||
580 | PINMUX_GPIO(GPIO_FN_SSI1_WS, SSI1_WS_MARK), | ||
581 | PINMUX_GPIO(GPIO_FN_SDIF1WP, SDIF1WP_MARK), | ||
582 | PINMUX_GPIO(GPIO_FN_HAC1_BITCLK, HAC1_BITCLK_MARK), | ||
583 | PINMUX_GPIO(GPIO_FN_SSI1_CLK, SSI1_CLK_MARK), | ||
584 | PINMUX_GPIO(GPIO_FN_SDIF1CLK, SDIF1CLK_MARK), | ||
585 | PINMUX_GPIO(GPIO_FN_HAC0_SDOUT, HAC0_SDOUT_MARK), | ||
586 | PINMUX_GPIO(GPIO_FN_SSI0_SDATA, SSI0_SDATA_MARK), | ||
587 | PINMUX_GPIO(GPIO_FN_SDIF1D3, SDIF1D3_MARK), | ||
588 | PINMUX_GPIO(GPIO_FN_HAC0_SDIN, HAC0_SDIN_MARK), | ||
589 | PINMUX_GPIO(GPIO_FN_SSI0_SCK, SSI0_SCK_MARK), | ||
590 | PINMUX_GPIO(GPIO_FN_SDIF1D2, SDIF1D2_MARK), | ||
591 | PINMUX_GPIO(GPIO_FN_HAC0_SYNC, HAC0_SYNC_MARK), | ||
592 | PINMUX_GPIO(GPIO_FN_SSI0_WS, SSI0_WS_MARK), | ||
593 | PINMUX_GPIO(GPIO_FN_SDIF1D1, SDIF1D1_MARK), | ||
594 | PINMUX_GPIO(GPIO_FN_HAC0_BITCLK, HAC0_BITCLK_MARK), | ||
595 | PINMUX_GPIO(GPIO_FN_SSI0_CLK, SSI0_CLK_MARK), | ||
596 | PINMUX_GPIO(GPIO_FN_SDIF1D0, SDIF1D0_MARK), | ||
597 | PINMUX_GPIO(GPIO_FN_SCIF3_SCK, SCIF3_SCK_MARK), | ||
598 | PINMUX_GPIO(GPIO_FN_SSI2_SDATA, SSI2_SDATA_MARK), | ||
599 | PINMUX_GPIO(GPIO_FN_SCIF3_RXD, SCIF3_RXD_MARK), | ||
600 | PINMUX_GPIO(GPIO_FN_TCLK, TCLK_MARK), | ||
601 | PINMUX_GPIO(GPIO_FN_SSI2_SCK, SSI2_SCK_MARK), | ||
602 | PINMUX_GPIO(GPIO_FN_SCIF3_TXD, SCIF3_TXD_MARK), | ||
603 | PINMUX_GPIO(GPIO_FN_HAC_RES, HAC_RES_MARK), | ||
604 | PINMUX_GPIO(GPIO_FN_SSI2_WS, SSI2_WS_MARK), | ||
605 | PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), | ||
606 | PINMUX_GPIO(GPIO_FN_SDIF0CMD, SDIF0CMD_MARK), | ||
607 | PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), | ||
608 | PINMUX_GPIO(GPIO_FN_SDIF0CD, SDIF0CD_MARK), | ||
609 | PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), | ||
610 | PINMUX_GPIO(GPIO_FN_SDIF0WP, SDIF0WP_MARK), | ||
611 | PINMUX_GPIO(GPIO_FN_SCIF0_CTS, SCIF0_CTS_MARK), | ||
612 | PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), | ||
613 | PINMUX_GPIO(GPIO_FN_SDIF0CLK, SDIF0CLK_MARK), | ||
614 | PINMUX_GPIO(GPIO_FN_SCIF0_RTS, SCIF0_RTS_MARK), | ||
615 | PINMUX_GPIO(GPIO_FN_IRL7, IRL7_MARK), | ||
616 | PINMUX_GPIO(GPIO_FN_SDIF0D3, SDIF0D3_MARK), | ||
617 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
618 | PINMUX_GPIO(GPIO_FN_IRL6, IRL6_MARK), | ||
619 | PINMUX_GPIO(GPIO_FN_SDIF0D2, SDIF0D2_MARK), | ||
620 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
621 | PINMUX_GPIO(GPIO_FN_IRL5, IRL5_MARK), | ||
622 | PINMUX_GPIO(GPIO_FN_SDIF0D1, SDIF0D1_MARK), | ||
623 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
624 | PINMUX_GPIO(GPIO_FN_IRL4, IRL4_MARK), | ||
625 | PINMUX_GPIO(GPIO_FN_SDIF0D0, SDIF0D0_MARK), | ||
626 | PINMUX_GPIO(GPIO_FN_SCIF5_SCK, SCIF5_SCK_MARK), | ||
627 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
628 | PINMUX_GPIO(GPIO_FN_SCIF5_RXD, SCIF5_RXD_MARK), | ||
629 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
630 | PINMUX_GPIO(GPIO_FN_SCIF5_TXD, SCIF5_TXD_MARK), | ||
631 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
632 | PINMUX_GPIO(GPIO_FN_DRAK3, DRAK3_MARK), | ||
633 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
634 | PINMUX_GPIO(GPIO_FN_SCIF4_SCK, SCIF4_SCK_MARK), | ||
635 | PINMUX_GPIO(GPIO_FN_DRAK2, DRAK2_MARK), | ||
636 | PINMUX_GPIO(GPIO_FN_SSI3_WS, SSI3_WS_MARK), | ||
637 | PINMUX_GPIO(GPIO_FN_SCIF4_RXD, SCIF4_RXD_MARK), | ||
638 | PINMUX_GPIO(GPIO_FN_DRAK1, DRAK1_MARK), | ||
639 | PINMUX_GPIO(GPIO_FN_SSI3_SDATA, SSI3_SDATA_MARK), | ||
640 | PINMUX_GPIO(GPIO_FN_FSTATUS, FSTATUS_MARK), | ||
641 | PINMUX_GPIO(GPIO_FN_SCIF4_TXD, SCIF4_TXD_MARK), | ||
642 | PINMUX_GPIO(GPIO_FN_DRAK0, DRAK0_MARK), | ||
643 | PINMUX_GPIO(GPIO_FN_SSI3_SCK, SSI3_SCK_MARK), | ||
644 | PINMUX_GPIO(GPIO_FN_FSE, FSE_MARK), | ||
645 | }; | ||
646 | |||
647 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
648 | { PINMUX_CFG_REG("PACR", 0xffcc0000, 16, 2) { | ||
649 | PA7_FN, PA7_OUT, PA7_IN, PA7_IN_PU, | ||
650 | PA6_FN, PA6_OUT, PA6_IN, PA6_IN_PU, | ||
651 | PA5_FN, PA5_OUT, PA5_IN, PA5_IN_PU, | ||
652 | PA4_FN, PA4_OUT, PA4_IN, PA4_IN_PU, | ||
653 | PA3_FN, PA3_OUT, PA3_IN, PA3_IN_PU, | ||
654 | PA2_FN, PA2_OUT, PA2_IN, PA2_IN_PU, | ||
655 | PA1_FN, PA1_OUT, PA1_IN, PA1_IN_PU, | ||
656 | PA0_FN, PA0_OUT, PA0_IN, PA0_IN_PU } | ||
657 | }, | ||
658 | { PINMUX_CFG_REG("PBCR", 0xffcc0002, 16, 2) { | ||
659 | PB7_FN, PB7_OUT, PB7_IN, PB7_IN_PU, | ||
660 | PB6_FN, PB6_OUT, PB6_IN, PB6_IN_PU, | ||
661 | PB5_FN, PB5_OUT, PB5_IN, PB5_IN_PU, | ||
662 | PB4_FN, PB4_OUT, PB4_IN, PB4_IN_PU, | ||
663 | PB3_FN, PB3_OUT, PB3_IN, PB3_IN_PU, | ||
664 | PB2_FN, PB2_OUT, PB2_IN, PB2_IN_PU, | ||
665 | PB1_FN, PB1_OUT, PB1_IN, PB1_IN_PU, | ||
666 | PB0_FN, PB0_OUT, PB0_IN, PB0_IN_PU } | ||
667 | }, | ||
668 | { PINMUX_CFG_REG("PCCR", 0xffcc0004, 16, 2) { | ||
669 | PC7_FN, PC7_OUT, PC7_IN, PC7_IN_PU, | ||
670 | PC6_FN, PC6_OUT, PC6_IN, PC6_IN_PU, | ||
671 | PC5_FN, PC5_OUT, PC5_IN, PC5_IN_PU, | ||
672 | PC4_FN, PC4_OUT, PC4_IN, PC4_IN_PU, | ||
673 | PC3_FN, PC3_OUT, PC3_IN, PC3_IN_PU, | ||
674 | PC2_FN, PC2_OUT, PC2_IN, PC2_IN_PU, | ||
675 | PC1_FN, PC1_OUT, PC1_IN, PC1_IN_PU, | ||
676 | PC0_FN, PC0_OUT, PC0_IN, PC0_IN_PU } | ||
677 | }, | ||
678 | { PINMUX_CFG_REG("PDCR", 0xffcc0006, 16, 2) { | ||
679 | PD7_FN, PD7_OUT, PD7_IN, PD7_IN_PU, | ||
680 | PD6_FN, PD6_OUT, PD6_IN, PD6_IN_PU, | ||
681 | PD5_FN, PD5_OUT, PD5_IN, PD5_IN_PU, | ||
682 | PD4_FN, PD4_OUT, PD4_IN, PD4_IN_PU, | ||
683 | PD3_FN, PD3_OUT, PD3_IN, PD3_IN_PU, | ||
684 | PD2_FN, PD2_OUT, PD2_IN, PD2_IN_PU, | ||
685 | PD1_FN, PD1_OUT, PD1_IN, PD1_IN_PU, | ||
686 | PD0_FN, PD0_OUT, PD0_IN, PD0_IN_PU } | ||
687 | }, | ||
688 | { PINMUX_CFG_REG("PECR", 0xffcc0008, 16, 2) { | ||
689 | PE7_FN, PE7_OUT, PE7_IN, PE7_IN_PU, | ||
690 | PE6_FN, PE6_OUT, PE6_IN, PE6_IN_PU, | ||
691 | 0, 0, 0, 0, | ||
692 | 0, 0, 0, 0, | ||
693 | 0, 0, 0, 0, | ||
694 | 0, 0, 0, 0, | ||
695 | 0, 0, 0, 0, | ||
696 | 0, 0, 0, 0, } | ||
697 | }, | ||
698 | { PINMUX_CFG_REG("PFCR", 0xffcc000a, 16, 2) { | ||
699 | PF7_FN, PF7_OUT, PF7_IN, PF7_IN_PU, | ||
700 | PF6_FN, PF6_OUT, PF6_IN, PF6_IN_PU, | ||
701 | PF5_FN, PF5_OUT, PF5_IN, PF5_IN_PU, | ||
702 | PF4_FN, PF4_OUT, PF4_IN, PF4_IN_PU, | ||
703 | PF3_FN, PF3_OUT, PF3_IN, PF3_IN_PU, | ||
704 | PF2_FN, PF2_OUT, PF2_IN, PF2_IN_PU, | ||
705 | PF1_FN, PF1_OUT, PF1_IN, PF1_IN_PU, | ||
706 | PF0_FN, PF0_OUT, PF0_IN, PF0_IN_PU } | ||
707 | }, | ||
708 | { PINMUX_CFG_REG("PGCR", 0xffcc000c, 16, 2) { | ||
709 | PG7_FN, PG7_OUT, PG7_IN, PG7_IN_PU, | ||
710 | PG6_FN, PG6_OUT, PG6_IN, PG6_IN_PU, | ||
711 | PG5_FN, PG5_OUT, PG5_IN, PG5_IN_PU, | ||
712 | 0, 0, 0, 0, | ||
713 | 0, 0, 0, 0, | ||
714 | 0, 0, 0, 0, | ||
715 | 0, 0, 0, 0, | ||
716 | 0, 0, 0, 0, } | ||
717 | }, | ||
718 | { PINMUX_CFG_REG("PHCR", 0xffcc000e, 16, 2) { | ||
719 | PH7_FN, PH7_OUT, PH7_IN, PH7_IN_PU, | ||
720 | PH6_FN, PH6_OUT, PH6_IN, PH6_IN_PU, | ||
721 | PH5_FN, PH5_OUT, PH5_IN, PH5_IN_PU, | ||
722 | PH4_FN, PH4_OUT, PH4_IN, PH4_IN_PU, | ||
723 | PH3_FN, PH3_OUT, PH3_IN, PH3_IN_PU, | ||
724 | PH2_FN, PH2_OUT, PH2_IN, PH2_IN_PU, | ||
725 | PH1_FN, PH1_OUT, PH1_IN, PH1_IN_PU, | ||
726 | PH0_FN, PH0_OUT, PH0_IN, PH0_IN_PU } | ||
727 | }, | ||
728 | { PINMUX_CFG_REG("PJCR", 0xffcc0010, 16, 2) { | ||
729 | PJ7_FN, PJ7_OUT, PJ7_IN, PJ7_IN_PU, | ||
730 | PJ6_FN, PJ6_OUT, PJ6_IN, PJ6_IN_PU, | ||
731 | PJ5_FN, PJ5_OUT, PJ5_IN, PJ5_IN_PU, | ||
732 | PJ4_FN, PJ4_OUT, PJ4_IN, PJ4_IN_PU, | ||
733 | PJ3_FN, PJ3_OUT, PJ3_IN, PJ3_IN_PU, | ||
734 | PJ2_FN, PJ2_OUT, PJ2_IN, PJ2_IN_PU, | ||
735 | PJ1_FN, PJ1_OUT, PJ1_IN, PJ1_IN_PU, | ||
736 | 0, 0, 0, 0, } | ||
737 | }, | ||
738 | { PINMUX_CFG_REG("P1MSELR", 0xffcc0080, 16, 1) { | ||
739 | 0, 0, | ||
740 | P1MSEL14_0, P1MSEL14_1, | ||
741 | P1MSEL13_0, P1MSEL13_1, | ||
742 | P1MSEL12_0, P1MSEL12_1, | ||
743 | P1MSEL11_0, P1MSEL11_1, | ||
744 | P1MSEL10_0, P1MSEL10_1, | ||
745 | P1MSEL9_0, P1MSEL9_1, | ||
746 | P1MSEL8_0, P1MSEL8_1, | ||
747 | P1MSEL7_0, P1MSEL7_1, | ||
748 | P1MSEL6_0, P1MSEL6_1, | ||
749 | P1MSEL5_0, P1MSEL5_1, | ||
750 | P1MSEL4_0, P1MSEL4_1, | ||
751 | P1MSEL3_0, P1MSEL3_1, | ||
752 | P1MSEL2_0, P1MSEL2_1, | ||
753 | P1MSEL1_0, P1MSEL1_1, | ||
754 | P1MSEL0_0, P1MSEL0_1 } | ||
755 | }, | ||
756 | { PINMUX_CFG_REG("P2MSELR", 0xffcc0082, 16, 1) { | ||
757 | P2MSEL15_0, P2MSEL15_1, | ||
758 | P2MSEL14_0, P2MSEL14_1, | ||
759 | P2MSEL13_0, P2MSEL13_1, | ||
760 | P2MSEL12_0, P2MSEL12_1, | ||
761 | P2MSEL11_0, P2MSEL11_1, | ||
762 | P2MSEL10_0, P2MSEL10_1, | ||
763 | P2MSEL9_0, P2MSEL9_1, | ||
764 | P2MSEL8_0, P2MSEL8_1, | ||
765 | P2MSEL7_0, P2MSEL7_1, | ||
766 | P2MSEL6_0, P2MSEL6_1, | ||
767 | P2MSEL5_0, P2MSEL5_1, | ||
768 | P2MSEL4_0, P2MSEL4_1, | ||
769 | P2MSEL3_0, P2MSEL3_1, | ||
770 | P2MSEL2_0, P2MSEL2_1, | ||
771 | P2MSEL1_0, P2MSEL1_1, | ||
772 | P2MSEL0_0, P2MSEL0_1 } | ||
773 | }, | ||
774 | {} | ||
775 | }; | ||
776 | |||
777 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
778 | { PINMUX_DATA_REG("PADR", 0xffcc0020, 8) { | ||
779 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
780 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA } | ||
781 | }, | ||
782 | { PINMUX_DATA_REG("PBDR", 0xffcc0022, 8) { | ||
783 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
784 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA } | ||
785 | }, | ||
786 | { PINMUX_DATA_REG("PCDR", 0xffcc0024, 8) { | ||
787 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
788 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
789 | }, | ||
790 | { PINMUX_DATA_REG("PDDR", 0xffcc0026, 8) { | ||
791 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
792 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
793 | }, | ||
794 | { PINMUX_DATA_REG("PEDR", 0xffcc0028, 8) { | ||
795 | PE7_DATA, PE6_DATA, | ||
796 | 0, 0, 0, 0, 0, 0 } | ||
797 | }, | ||
798 | { PINMUX_DATA_REG("PFDR", 0xffcc002a, 8) { | ||
799 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
800 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
801 | }, | ||
802 | { PINMUX_DATA_REG("PGDR", 0xffcc002c, 8) { | ||
803 | PG7_DATA, PG6_DATA, PG5_DATA, 0, | ||
804 | 0, 0, 0, 0 } | ||
805 | }, | ||
806 | { PINMUX_DATA_REG("PHDR", 0xffcc002e, 8) { | ||
807 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
808 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA } | ||
809 | }, | ||
810 | { PINMUX_DATA_REG("PJDR", 0xffcc0030, 8) { | ||
811 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
812 | PJ3_DATA, PJ2_DATA, PJ1_DATA, 0 } | ||
813 | }, | ||
814 | { }, | ||
815 | }; | ||
816 | |||
817 | static struct pinmux_info sh7786_pinmux_info = { | ||
818 | .name = "sh7786_pfc", | ||
819 | .reserved_id = PINMUX_RESERVED, | ||
820 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
821 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
822 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
823 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
824 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
825 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
826 | |||
827 | .first_gpio = GPIO_PA7, | ||
828 | .last_gpio = GPIO_FN_FSE, | ||
829 | |||
830 | .gpios = pinmux_gpios, | ||
831 | .cfg_regs = pinmux_config_regs, | ||
832 | .data_regs = pinmux_data_regs, | ||
833 | |||
834 | .gpio_data = pinmux_data, | ||
835 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
836 | }; | ||
837 | 19 | ||
838 | static int __init plat_pinmux_setup(void) | 20 | static int __init plat_pinmux_setup(void) |
839 | { | 21 | { |
840 | return register_pinmux(&sh7786_pinmux_info); | 22 | return sh_pfc_register("pfc-sh7786", NULL, 0); |
841 | } | 23 | } |
842 | 24 | ||
843 | arch_initcall(plat_pinmux_setup); | 25 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c b/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c index aaa5338abbff..ace84acc55ea 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c | |||
@@ -9,579 +9,10 @@ | |||
9 | */ | 9 | */ |
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/gpio.h> | 12 | #include <cpu/pfc.h> |
13 | #include <cpu/shx3.h> | ||
14 | |||
15 | enum { | ||
16 | PINMUX_RESERVED = 0, | ||
17 | |||
18 | PINMUX_DATA_BEGIN, | ||
19 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
20 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
21 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
22 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, | ||
23 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
24 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
25 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
26 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
27 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
28 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
29 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
30 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
31 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
32 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
33 | |||
34 | PH5_DATA, PH4_DATA, | ||
35 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
36 | PINMUX_DATA_END, | ||
37 | |||
38 | PINMUX_INPUT_BEGIN, | ||
39 | PA7_IN, PA6_IN, PA5_IN, PA4_IN, | ||
40 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
41 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
42 | PB3_IN, PB2_IN, PB1_IN, PB0_IN, | ||
43 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
44 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
45 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
46 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
47 | PE7_IN, PE6_IN, PE5_IN, PE4_IN, | ||
48 | PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
49 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
50 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
51 | PG7_IN, PG6_IN, PG5_IN, PG4_IN, | ||
52 | PG3_IN, PG2_IN, PG1_IN, PG0_IN, | ||
53 | |||
54 | PH5_IN, PH4_IN, | ||
55 | PH3_IN, PH2_IN, PH1_IN, PH0_IN, | ||
56 | PINMUX_INPUT_END, | ||
57 | |||
58 | PINMUX_INPUT_PULLUP_BEGIN, | ||
59 | PA7_IN_PU, PA6_IN_PU, PA5_IN_PU, PA4_IN_PU, | ||
60 | PA3_IN_PU, PA2_IN_PU, PA1_IN_PU, PA0_IN_PU, | ||
61 | PB7_IN_PU, PB6_IN_PU, PB5_IN_PU, PB4_IN_PU, | ||
62 | PB3_IN_PU, PB2_IN_PU, PB1_IN_PU, PB0_IN_PU, | ||
63 | PC7_IN_PU, PC6_IN_PU, PC5_IN_PU, PC4_IN_PU, | ||
64 | PC3_IN_PU, PC2_IN_PU, PC1_IN_PU, PC0_IN_PU, | ||
65 | PD7_IN_PU, PD6_IN_PU, PD5_IN_PU, PD4_IN_PU, | ||
66 | PD3_IN_PU, PD2_IN_PU, PD1_IN_PU, PD0_IN_PU, | ||
67 | PE7_IN_PU, PE6_IN_PU, PE5_IN_PU, PE4_IN_PU, | ||
68 | PE3_IN_PU, PE2_IN_PU, PE1_IN_PU, PE0_IN_PU, | ||
69 | PF7_IN_PU, PF6_IN_PU, PF5_IN_PU, PF4_IN_PU, | ||
70 | PF3_IN_PU, PF2_IN_PU, PF1_IN_PU, PF0_IN_PU, | ||
71 | PG7_IN_PU, PG6_IN_PU, PG5_IN_PU, PG4_IN_PU, | ||
72 | PG3_IN_PU, PG2_IN_PU, PG1_IN_PU, PG0_IN_PU, | ||
73 | |||
74 | PH5_IN_PU, PH4_IN_PU, | ||
75 | PH3_IN_PU, PH2_IN_PU, PH1_IN_PU, PH0_IN_PU, | ||
76 | PINMUX_INPUT_PULLUP_END, | ||
77 | |||
78 | PINMUX_OUTPUT_BEGIN, | ||
79 | PA7_OUT, PA6_OUT, PA5_OUT, PA4_OUT, | ||
80 | PA3_OUT, PA2_OUT, PA1_OUT, PA0_OUT, | ||
81 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
82 | PB3_OUT, PB2_OUT, PB1_OUT, PB0_OUT, | ||
83 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
84 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
85 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
86 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
87 | PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT, | ||
88 | PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
89 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
90 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
91 | PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT, | ||
92 | PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT, | ||
93 | |||
94 | PH5_OUT, PH4_OUT, | ||
95 | PH3_OUT, PH2_OUT, PH1_OUT, PH0_OUT, | ||
96 | PINMUX_OUTPUT_END, | ||
97 | |||
98 | PINMUX_FUNCTION_BEGIN, | ||
99 | PA7_FN, PA6_FN, PA5_FN, PA4_FN, | ||
100 | PA3_FN, PA2_FN, PA1_FN, PA0_FN, | ||
101 | PB7_FN, PB6_FN, PB5_FN, PB4_FN, | ||
102 | PB3_FN, PB2_FN, PB1_FN, PB0_FN, | ||
103 | PC7_FN, PC6_FN, PC5_FN, PC4_FN, | ||
104 | PC3_FN, PC2_FN, PC1_FN, PC0_FN, | ||
105 | PD7_FN, PD6_FN, PD5_FN, PD4_FN, | ||
106 | PD3_FN, PD2_FN, PD1_FN, PD0_FN, | ||
107 | PE7_FN, PE6_FN, PE5_FN, PE4_FN, | ||
108 | PE3_FN, PE2_FN, PE1_FN, PE0_FN, | ||
109 | PF7_FN, PF6_FN, PF5_FN, PF4_FN, | ||
110 | PF3_FN, PF2_FN, PF1_FN, PF0_FN, | ||
111 | PG7_FN, PG6_FN, PG5_FN, PG4_FN, | ||
112 | PG3_FN, PG2_FN, PG1_FN, PG0_FN, | ||
113 | |||
114 | PH5_FN, PH4_FN, | ||
115 | PH3_FN, PH2_FN, PH1_FN, PH0_FN, | ||
116 | PINMUX_FUNCTION_END, | ||
117 | |||
118 | PINMUX_MARK_BEGIN, | ||
119 | |||
120 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, D27_MARK, D26_MARK, | ||
121 | D25_MARK, D24_MARK, D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
122 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
123 | |||
124 | BACK_MARK, BREQ_MARK, | ||
125 | WE3_MARK, WE2_MARK, | ||
126 | CS6_MARK, CS5_MARK, CS4_MARK, | ||
127 | CLKOUTENB_MARK, | ||
128 | |||
129 | DACK3_MARK, DACK2_MARK, DACK1_MARK, DACK0_MARK, | ||
130 | DREQ3_MARK, DREQ2_MARK, DREQ1_MARK, DREQ0_MARK, | ||
131 | |||
132 | IRQ3_MARK, IRQ2_MARK, IRQ1_MARK, IRQ0_MARK, | ||
133 | |||
134 | DRAK3_MARK, DRAK2_MARK, DRAK1_MARK, DRAK0_MARK, | ||
135 | |||
136 | SCK3_MARK, SCK2_MARK, SCK1_MARK, SCK0_MARK, | ||
137 | IRL3_MARK, IRL2_MARK, IRL1_MARK, IRL0_MARK, | ||
138 | TXD3_MARK, TXD2_MARK, TXD1_MARK, TXD0_MARK, | ||
139 | RXD3_MARK, RXD2_MARK, RXD1_MARK, RXD0_MARK, | ||
140 | |||
141 | CE2B_MARK, CE2A_MARK, IOIS16_MARK, | ||
142 | STATUS1_MARK, STATUS0_MARK, | ||
143 | |||
144 | IRQOUT_MARK, | ||
145 | |||
146 | PINMUX_MARK_END, | ||
147 | }; | ||
148 | |||
149 | static pinmux_enum_t shx3_pinmux_data[] = { | ||
150 | |||
151 | /* PA GPIO */ | ||
152 | PINMUX_DATA(PA7_DATA, PA7_IN, PA7_OUT, PA7_IN_PU), | ||
153 | PINMUX_DATA(PA6_DATA, PA6_IN, PA6_OUT, PA6_IN_PU), | ||
154 | PINMUX_DATA(PA5_DATA, PA5_IN, PA5_OUT, PA5_IN_PU), | ||
155 | PINMUX_DATA(PA4_DATA, PA4_IN, PA4_OUT, PA4_IN_PU), | ||
156 | PINMUX_DATA(PA3_DATA, PA3_IN, PA3_OUT, PA3_IN_PU), | ||
157 | PINMUX_DATA(PA2_DATA, PA2_IN, PA2_OUT, PA2_IN_PU), | ||
158 | PINMUX_DATA(PA1_DATA, PA1_IN, PA1_OUT, PA1_IN_PU), | ||
159 | PINMUX_DATA(PA0_DATA, PA0_IN, PA0_OUT, PA0_IN_PU), | ||
160 | |||
161 | /* PB GPIO */ | ||
162 | PINMUX_DATA(PB7_DATA, PB7_IN, PB7_OUT, PB7_IN_PU), | ||
163 | PINMUX_DATA(PB6_DATA, PB6_IN, PB6_OUT, PB6_IN_PU), | ||
164 | PINMUX_DATA(PB5_DATA, PB5_IN, PB5_OUT, PB5_IN_PU), | ||
165 | PINMUX_DATA(PB4_DATA, PB4_IN, PB4_OUT, PB4_IN_PU), | ||
166 | PINMUX_DATA(PB3_DATA, PB3_IN, PB3_OUT, PB3_IN_PU), | ||
167 | PINMUX_DATA(PB2_DATA, PB2_IN, PB2_OUT, PB2_IN_PU), | ||
168 | PINMUX_DATA(PB1_DATA, PB1_IN, PB1_OUT, PB1_IN_PU), | ||
169 | PINMUX_DATA(PB0_DATA, PB0_IN, PB0_OUT, PB0_IN_PU), | ||
170 | |||
171 | /* PC GPIO */ | ||
172 | PINMUX_DATA(PC7_DATA, PC7_IN, PC7_OUT, PC7_IN_PU), | ||
173 | PINMUX_DATA(PC6_DATA, PC6_IN, PC6_OUT, PC6_IN_PU), | ||
174 | PINMUX_DATA(PC5_DATA, PC5_IN, PC5_OUT, PC5_IN_PU), | ||
175 | PINMUX_DATA(PC4_DATA, PC4_IN, PC4_OUT, PC4_IN_PU), | ||
176 | PINMUX_DATA(PC3_DATA, PC3_IN, PC3_OUT, PC3_IN_PU), | ||
177 | PINMUX_DATA(PC2_DATA, PC2_IN, PC2_OUT, PC2_IN_PU), | ||
178 | PINMUX_DATA(PC1_DATA, PC1_IN, PC1_OUT, PC1_IN_PU), | ||
179 | PINMUX_DATA(PC0_DATA, PC0_IN, PC0_OUT, PC0_IN_PU), | ||
180 | |||
181 | /* PD GPIO */ | ||
182 | PINMUX_DATA(PD7_DATA, PD7_IN, PD7_OUT, PD7_IN_PU), | ||
183 | PINMUX_DATA(PD6_DATA, PD6_IN, PD6_OUT, PD6_IN_PU), | ||
184 | PINMUX_DATA(PD5_DATA, PD5_IN, PD5_OUT, PD5_IN_PU), | ||
185 | PINMUX_DATA(PD4_DATA, PD4_IN, PD4_OUT, PD4_IN_PU), | ||
186 | PINMUX_DATA(PD3_DATA, PD3_IN, PD3_OUT, PD3_IN_PU), | ||
187 | PINMUX_DATA(PD2_DATA, PD2_IN, PD2_OUT, PD2_IN_PU), | ||
188 | PINMUX_DATA(PD1_DATA, PD1_IN, PD1_OUT, PD1_IN_PU), | ||
189 | PINMUX_DATA(PD0_DATA, PD0_IN, PD0_OUT, PD0_IN_PU), | ||
190 | |||
191 | /* PE GPIO */ | ||
192 | PINMUX_DATA(PE7_DATA, PE7_IN, PE7_OUT, PE7_IN_PU), | ||
193 | PINMUX_DATA(PE6_DATA, PE6_IN, PE6_OUT, PE6_IN_PU), | ||
194 | PINMUX_DATA(PE5_DATA, PE5_IN, PE5_OUT, PE5_IN_PU), | ||
195 | PINMUX_DATA(PE4_DATA, PE4_IN, PE4_OUT, PE4_IN_PU), | ||
196 | PINMUX_DATA(PE3_DATA, PE3_IN, PE3_OUT, PE3_IN_PU), | ||
197 | PINMUX_DATA(PE2_DATA, PE2_IN, PE2_OUT, PE2_IN_PU), | ||
198 | PINMUX_DATA(PE1_DATA, PE1_IN, PE1_OUT, PE1_IN_PU), | ||
199 | PINMUX_DATA(PE0_DATA, PE0_IN, PE0_OUT, PE0_IN_PU), | ||
200 | |||
201 | /* PF GPIO */ | ||
202 | PINMUX_DATA(PF7_DATA, PF7_IN, PF7_OUT, PF7_IN_PU), | ||
203 | PINMUX_DATA(PF6_DATA, PF6_IN, PF6_OUT, PF6_IN_PU), | ||
204 | PINMUX_DATA(PF5_DATA, PF5_IN, PF5_OUT, PF5_IN_PU), | ||
205 | PINMUX_DATA(PF4_DATA, PF4_IN, PF4_OUT, PF4_IN_PU), | ||
206 | PINMUX_DATA(PF3_DATA, PF3_IN, PF3_OUT, PF3_IN_PU), | ||
207 | PINMUX_DATA(PF2_DATA, PF2_IN, PF2_OUT, PF2_IN_PU), | ||
208 | PINMUX_DATA(PF1_DATA, PF1_IN, PF1_OUT, PF1_IN_PU), | ||
209 | PINMUX_DATA(PF0_DATA, PF0_IN, PF0_OUT, PF0_IN_PU), | ||
210 | |||
211 | /* PG GPIO */ | ||
212 | PINMUX_DATA(PG7_DATA, PG7_IN, PG7_OUT, PG7_IN_PU), | ||
213 | PINMUX_DATA(PG6_DATA, PG6_IN, PG6_OUT, PG6_IN_PU), | ||
214 | PINMUX_DATA(PG5_DATA, PG5_IN, PG5_OUT, PG5_IN_PU), | ||
215 | PINMUX_DATA(PG4_DATA, PG4_IN, PG4_OUT, PG4_IN_PU), | ||
216 | PINMUX_DATA(PG3_DATA, PG3_IN, PG3_OUT, PG3_IN_PU), | ||
217 | PINMUX_DATA(PG2_DATA, PG2_IN, PG2_OUT, PG2_IN_PU), | ||
218 | PINMUX_DATA(PG1_DATA, PG1_IN, PG1_OUT, PG1_IN_PU), | ||
219 | PINMUX_DATA(PG0_DATA, PG0_IN, PG0_OUT, PG0_IN_PU), | ||
220 | |||
221 | /* PH GPIO */ | ||
222 | PINMUX_DATA(PH5_DATA, PH5_IN, PH5_OUT, PH5_IN_PU), | ||
223 | PINMUX_DATA(PH4_DATA, PH4_IN, PH4_OUT, PH4_IN_PU), | ||
224 | PINMUX_DATA(PH3_DATA, PH3_IN, PH3_OUT, PH3_IN_PU), | ||
225 | PINMUX_DATA(PH2_DATA, PH2_IN, PH2_OUT, PH2_IN_PU), | ||
226 | PINMUX_DATA(PH1_DATA, PH1_IN, PH1_OUT, PH1_IN_PU), | ||
227 | PINMUX_DATA(PH0_DATA, PH0_IN, PH0_OUT, PH0_IN_PU), | ||
228 | |||
229 | /* PA FN */ | ||
230 | PINMUX_DATA(D31_MARK, PA7_FN), | ||
231 | PINMUX_DATA(D30_MARK, PA6_FN), | ||
232 | PINMUX_DATA(D29_MARK, PA5_FN), | ||
233 | PINMUX_DATA(D28_MARK, PA4_FN), | ||
234 | PINMUX_DATA(D27_MARK, PA3_FN), | ||
235 | PINMUX_DATA(D26_MARK, PA2_FN), | ||
236 | PINMUX_DATA(D25_MARK, PA1_FN), | ||
237 | PINMUX_DATA(D24_MARK, PA0_FN), | ||
238 | |||
239 | /* PB FN */ | ||
240 | PINMUX_DATA(D23_MARK, PB7_FN), | ||
241 | PINMUX_DATA(D22_MARK, PB6_FN), | ||
242 | PINMUX_DATA(D21_MARK, PB5_FN), | ||
243 | PINMUX_DATA(D20_MARK, PB4_FN), | ||
244 | PINMUX_DATA(D19_MARK, PB3_FN), | ||
245 | PINMUX_DATA(D18_MARK, PB2_FN), | ||
246 | PINMUX_DATA(D17_MARK, PB1_FN), | ||
247 | PINMUX_DATA(D16_MARK, PB0_FN), | ||
248 | |||
249 | /* PC FN */ | ||
250 | PINMUX_DATA(BACK_MARK, PC7_FN), | ||
251 | PINMUX_DATA(BREQ_MARK, PC6_FN), | ||
252 | PINMUX_DATA(WE3_MARK, PC5_FN), | ||
253 | PINMUX_DATA(WE2_MARK, PC4_FN), | ||
254 | PINMUX_DATA(CS6_MARK, PC3_FN), | ||
255 | PINMUX_DATA(CS5_MARK, PC2_FN), | ||
256 | PINMUX_DATA(CS4_MARK, PC1_FN), | ||
257 | PINMUX_DATA(CLKOUTENB_MARK, PC0_FN), | ||
258 | |||
259 | /* PD FN */ | ||
260 | PINMUX_DATA(DACK3_MARK, PD7_FN), | ||
261 | PINMUX_DATA(DACK2_MARK, PD6_FN), | ||
262 | PINMUX_DATA(DACK1_MARK, PD5_FN), | ||
263 | PINMUX_DATA(DACK0_MARK, PD4_FN), | ||
264 | PINMUX_DATA(DREQ3_MARK, PD3_FN), | ||
265 | PINMUX_DATA(DREQ2_MARK, PD2_FN), | ||
266 | PINMUX_DATA(DREQ1_MARK, PD1_FN), | ||
267 | PINMUX_DATA(DREQ0_MARK, PD0_FN), | ||
268 | |||
269 | /* PE FN */ | ||
270 | PINMUX_DATA(IRQ3_MARK, PE7_FN), | ||
271 | PINMUX_DATA(IRQ2_MARK, PE6_FN), | ||
272 | PINMUX_DATA(IRQ1_MARK, PE5_FN), | ||
273 | PINMUX_DATA(IRQ0_MARK, PE4_FN), | ||
274 | PINMUX_DATA(DRAK3_MARK, PE3_FN), | ||
275 | PINMUX_DATA(DRAK2_MARK, PE2_FN), | ||
276 | PINMUX_DATA(DRAK1_MARK, PE1_FN), | ||
277 | PINMUX_DATA(DRAK0_MARK, PE0_FN), | ||
278 | |||
279 | /* PF FN */ | ||
280 | PINMUX_DATA(SCK3_MARK, PF7_FN), | ||
281 | PINMUX_DATA(SCK2_MARK, PF6_FN), | ||
282 | PINMUX_DATA(SCK1_MARK, PF5_FN), | ||
283 | PINMUX_DATA(SCK0_MARK, PF4_FN), | ||
284 | PINMUX_DATA(IRL3_MARK, PF3_FN), | ||
285 | PINMUX_DATA(IRL2_MARK, PF2_FN), | ||
286 | PINMUX_DATA(IRL1_MARK, PF1_FN), | ||
287 | PINMUX_DATA(IRL0_MARK, PF0_FN), | ||
288 | |||
289 | /* PG FN */ | ||
290 | PINMUX_DATA(TXD3_MARK, PG7_FN), | ||
291 | PINMUX_DATA(TXD2_MARK, PG6_FN), | ||
292 | PINMUX_DATA(TXD1_MARK, PG5_FN), | ||
293 | PINMUX_DATA(TXD0_MARK, PG4_FN), | ||
294 | PINMUX_DATA(RXD3_MARK, PG3_FN), | ||
295 | PINMUX_DATA(RXD2_MARK, PG2_FN), | ||
296 | PINMUX_DATA(RXD1_MARK, PG1_FN), | ||
297 | PINMUX_DATA(RXD0_MARK, PG0_FN), | ||
298 | |||
299 | /* PH FN */ | ||
300 | PINMUX_DATA(CE2B_MARK, PH5_FN), | ||
301 | PINMUX_DATA(CE2A_MARK, PH4_FN), | ||
302 | PINMUX_DATA(IOIS16_MARK, PH3_FN), | ||
303 | PINMUX_DATA(STATUS1_MARK, PH2_FN), | ||
304 | PINMUX_DATA(STATUS0_MARK, PH1_FN), | ||
305 | PINMUX_DATA(IRQOUT_MARK, PH0_FN), | ||
306 | }; | ||
307 | |||
308 | static struct pinmux_gpio shx3_pinmux_gpios[] = { | ||
309 | /* PA */ | ||
310 | PINMUX_GPIO(GPIO_PA7, PA7_DATA), | ||
311 | PINMUX_GPIO(GPIO_PA6, PA6_DATA), | ||
312 | PINMUX_GPIO(GPIO_PA5, PA5_DATA), | ||
313 | PINMUX_GPIO(GPIO_PA4, PA4_DATA), | ||
314 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
315 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
316 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
317 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
318 | |||
319 | /* PB */ | ||
320 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
321 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
322 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
323 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
324 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
325 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
326 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
327 | PINMUX_GPIO(GPIO_PB0, PB0_DATA), | ||
328 | |||
329 | /* PC */ | ||
330 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
331 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
332 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
333 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
334 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
335 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
336 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
337 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
338 | |||
339 | /* PD */ | ||
340 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
341 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
342 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
343 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
344 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
345 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
346 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
347 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
348 | |||
349 | /* PE */ | ||
350 | PINMUX_GPIO(GPIO_PE7, PE7_DATA), | ||
351 | PINMUX_GPIO(GPIO_PE6, PE6_DATA), | ||
352 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
353 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
354 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
355 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
356 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
357 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
358 | |||
359 | /* PF */ | ||
360 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
361 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
362 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
363 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
364 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
365 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
366 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
367 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
368 | |||
369 | /* PG */ | ||
370 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
371 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
372 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
373 | PINMUX_GPIO(GPIO_PG4, PG4_DATA), | ||
374 | PINMUX_GPIO(GPIO_PG3, PG3_DATA), | ||
375 | PINMUX_GPIO(GPIO_PG2, PG2_DATA), | ||
376 | PINMUX_GPIO(GPIO_PG1, PG1_DATA), | ||
377 | PINMUX_GPIO(GPIO_PG0, PG0_DATA), | ||
378 | |||
379 | /* PH */ | ||
380 | PINMUX_GPIO(GPIO_PH5, PH5_DATA), | ||
381 | PINMUX_GPIO(GPIO_PH4, PH4_DATA), | ||
382 | PINMUX_GPIO(GPIO_PH3, PH3_DATA), | ||
383 | PINMUX_GPIO(GPIO_PH2, PH2_DATA), | ||
384 | PINMUX_GPIO(GPIO_PH1, PH1_DATA), | ||
385 | PINMUX_GPIO(GPIO_PH0, PH0_DATA), | ||
386 | |||
387 | /* FN */ | ||
388 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
389 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
390 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
391 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
392 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
393 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
394 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
395 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
396 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
397 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
398 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
399 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
400 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
401 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
402 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
403 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
404 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
405 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
406 | PINMUX_GPIO(GPIO_FN_WE3, WE3_MARK), | ||
407 | PINMUX_GPIO(GPIO_FN_WE2, WE2_MARK), | ||
408 | PINMUX_GPIO(GPIO_FN_CS6, CS6_MARK), | ||
409 | PINMUX_GPIO(GPIO_FN_CS5, CS5_MARK), | ||
410 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
411 | PINMUX_GPIO(GPIO_FN_CLKOUTENB, CLKOUTENB_MARK), | ||
412 | PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), | ||
413 | PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), | ||
414 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
415 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
416 | PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), | ||
417 | PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), | ||
418 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
419 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
420 | PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), | ||
421 | PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), | ||
422 | PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), | ||
423 | PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), | ||
424 | PINMUX_GPIO(GPIO_FN_DRAK3, DRAK3_MARK), | ||
425 | PINMUX_GPIO(GPIO_FN_DRAK2, DRAK2_MARK), | ||
426 | PINMUX_GPIO(GPIO_FN_DRAK1, DRAK1_MARK), | ||
427 | PINMUX_GPIO(GPIO_FN_DRAK0, DRAK0_MARK), | ||
428 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
429 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
430 | PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), | ||
431 | PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), | ||
432 | PINMUX_GPIO(GPIO_FN_IRL3, IRL3_MARK), | ||
433 | PINMUX_GPIO(GPIO_FN_IRL2, IRL2_MARK), | ||
434 | PINMUX_GPIO(GPIO_FN_IRL1, IRL1_MARK), | ||
435 | PINMUX_GPIO(GPIO_FN_IRL0, IRL0_MARK), | ||
436 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
437 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
438 | PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), | ||
439 | PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), | ||
440 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
441 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
442 | PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), | ||
443 | PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), | ||
444 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
445 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
446 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
447 | PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), | ||
448 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
449 | PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), | ||
450 | }; | ||
451 | |||
452 | static struct pinmux_cfg_reg shx3_pinmux_config_regs[] = { | ||
453 | { PINMUX_CFG_REG("PABCR", 0xffc70000, 32, 2) { | ||
454 | PA7_FN, PA7_OUT, PA7_IN, PA7_IN_PU, | ||
455 | PA6_FN, PA6_OUT, PA6_IN, PA6_IN_PU, | ||
456 | PA5_FN, PA5_OUT, PA5_IN, PA5_IN_PU, | ||
457 | PA4_FN, PA4_OUT, PA4_IN, PA4_IN_PU, | ||
458 | PA3_FN, PA3_OUT, PA3_IN, PA3_IN_PU, | ||
459 | PA2_FN, PA2_OUT, PA2_IN, PA2_IN_PU, | ||
460 | PA1_FN, PA1_OUT, PA1_IN, PA1_IN_PU, | ||
461 | PA0_FN, PA0_OUT, PA0_IN, PA0_IN_PU, | ||
462 | PB7_FN, PB7_OUT, PB7_IN, PB7_IN_PU, | ||
463 | PB6_FN, PB6_OUT, PB6_IN, PB6_IN_PU, | ||
464 | PB5_FN, PB5_OUT, PB5_IN, PB5_IN_PU, | ||
465 | PB4_FN, PB4_OUT, PB4_IN, PB4_IN_PU, | ||
466 | PB3_FN, PB3_OUT, PB3_IN, PB3_IN_PU, | ||
467 | PB2_FN, PB2_OUT, PB2_IN, PB2_IN_PU, | ||
468 | PB1_FN, PB1_OUT, PB1_IN, PB1_IN_PU, | ||
469 | PB0_FN, PB0_OUT, PB0_IN, PB0_IN_PU, }, | ||
470 | }, | ||
471 | { PINMUX_CFG_REG("PCDCR", 0xffc70004, 32, 2) { | ||
472 | PC7_FN, PC7_OUT, PC7_IN, PC7_IN_PU, | ||
473 | PC6_FN, PC6_OUT, PC6_IN, PC6_IN_PU, | ||
474 | PC5_FN, PC5_OUT, PC5_IN, PC5_IN_PU, | ||
475 | PC4_FN, PC4_OUT, PC4_IN, PC4_IN_PU, | ||
476 | PC3_FN, PC3_OUT, PC3_IN, PC3_IN_PU, | ||
477 | PC2_FN, PC2_OUT, PC2_IN, PC2_IN_PU, | ||
478 | PC1_FN, PC1_OUT, PC1_IN, PC1_IN_PU, | ||
479 | PC0_FN, PC0_OUT, PC0_IN, PC0_IN_PU, | ||
480 | PD7_FN, PD7_OUT, PD7_IN, PD7_IN_PU, | ||
481 | PD6_FN, PD6_OUT, PD6_IN, PD6_IN_PU, | ||
482 | PD5_FN, PD5_OUT, PD5_IN, PD5_IN_PU, | ||
483 | PD4_FN, PD4_OUT, PD4_IN, PD4_IN_PU, | ||
484 | PD3_FN, PD3_OUT, PD3_IN, PD3_IN_PU, | ||
485 | PD2_FN, PD2_OUT, PD2_IN, PD2_IN_PU, | ||
486 | PD1_FN, PD1_OUT, PD1_IN, PD1_IN_PU, | ||
487 | PD0_FN, PD0_OUT, PD0_IN, PD0_IN_PU, }, | ||
488 | }, | ||
489 | { PINMUX_CFG_REG("PEFCR", 0xffc70008, 32, 2) { | ||
490 | PE7_FN, PE7_OUT, PE7_IN, PE7_IN_PU, | ||
491 | PE6_FN, PE6_OUT, PE6_IN, PE6_IN_PU, | ||
492 | PE5_FN, PE5_OUT, PE5_IN, PE5_IN_PU, | ||
493 | PE4_FN, PE4_OUT, PE4_IN, PE4_IN_PU, | ||
494 | PE3_FN, PE3_OUT, PE3_IN, PE3_IN_PU, | ||
495 | PE2_FN, PE2_OUT, PE2_IN, PE2_IN_PU, | ||
496 | PE1_FN, PE1_OUT, PE1_IN, PE1_IN_PU, | ||
497 | PE0_FN, PE0_OUT, PE0_IN, PE0_IN_PU, | ||
498 | PF7_FN, PF7_OUT, PF7_IN, PF7_IN_PU, | ||
499 | PF6_FN, PF6_OUT, PF6_IN, PF6_IN_PU, | ||
500 | PF5_FN, PF5_OUT, PF5_IN, PF5_IN_PU, | ||
501 | PF4_FN, PF4_OUT, PF4_IN, PF4_IN_PU, | ||
502 | PF3_FN, PF3_OUT, PF3_IN, PF3_IN_PU, | ||
503 | PF2_FN, PF2_OUT, PF2_IN, PF2_IN_PU, | ||
504 | PF1_FN, PF1_OUT, PF1_IN, PF1_IN_PU, | ||
505 | PF0_FN, PF0_OUT, PF0_IN, PF0_IN_PU, }, | ||
506 | }, | ||
507 | { PINMUX_CFG_REG("PGHCR", 0xffc7000c, 32, 2) { | ||
508 | PG7_FN, PG7_OUT, PG7_IN, PG7_IN_PU, | ||
509 | PG6_FN, PG6_OUT, PG6_IN, PG6_IN_PU, | ||
510 | PG5_FN, PG5_OUT, PG5_IN, PG5_IN_PU, | ||
511 | PG4_FN, PG4_OUT, PG4_IN, PG4_IN_PU, | ||
512 | PG3_FN, PG3_OUT, PG3_IN, PG3_IN_PU, | ||
513 | PG2_FN, PG2_OUT, PG2_IN, PG2_IN_PU, | ||
514 | PG1_FN, PG1_OUT, PG1_IN, PG1_IN_PU, | ||
515 | PG0_FN, PG0_OUT, PG0_IN, PG0_IN_PU, | ||
516 | 0, 0, 0, 0, | ||
517 | 0, 0, 0, 0, | ||
518 | PH5_FN, PH5_OUT, PH5_IN, PH5_IN_PU, | ||
519 | PH4_FN, PH4_OUT, PH4_IN, PH4_IN_PU, | ||
520 | PH3_FN, PH3_OUT, PH3_IN, PH3_IN_PU, | ||
521 | PH2_FN, PH2_OUT, PH2_IN, PH2_IN_PU, | ||
522 | PH1_FN, PH1_OUT, PH1_IN, PH1_IN_PU, | ||
523 | PH0_FN, PH0_OUT, PH0_IN, PH0_IN_PU, }, | ||
524 | }, | ||
525 | { }, | ||
526 | }; | ||
527 | |||
528 | static struct pinmux_data_reg shx3_pinmux_data_regs[] = { | ||
529 | { PINMUX_DATA_REG("PABDR", 0xffc70010, 32) { | ||
530 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
531 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
532 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
533 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
534 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
535 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, }, | ||
536 | }, | ||
537 | { PINMUX_DATA_REG("PCDDR", 0xffc70014, 32) { | ||
538 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
539 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
540 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
541 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
542 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
543 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, }, | ||
544 | }, | ||
545 | { PINMUX_DATA_REG("PEFDR", 0xffc70018, 32) { | ||
546 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
547 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
548 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
549 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
550 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
551 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, }, | ||
552 | }, | ||
553 | { PINMUX_DATA_REG("PGHDR", 0xffc7001c, 32) { | ||
554 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
555 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
556 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
557 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
558 | 0, 0, PH5_DATA, PH4_DATA, | ||
559 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, }, | ||
560 | }, | ||
561 | { }, | ||
562 | }; | ||
563 | |||
564 | static struct pinmux_info shx3_pinmux_info = { | ||
565 | .name = "shx3_pfc", | ||
566 | .reserved_id = PINMUX_RESERVED, | ||
567 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
568 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
569 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, | ||
570 | PINMUX_INPUT_PULLUP_END }, | ||
571 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
572 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
573 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
574 | .first_gpio = GPIO_PA7, | ||
575 | .last_gpio = GPIO_FN_IRQOUT, | ||
576 | .gpios = shx3_pinmux_gpios, | ||
577 | .gpio_data = shx3_pinmux_data, | ||
578 | .gpio_data_size = ARRAY_SIZE(shx3_pinmux_data), | ||
579 | .cfg_regs = shx3_pinmux_config_regs, | ||
580 | .data_regs = shx3_pinmux_data_regs, | ||
581 | }; | ||
582 | 13 | ||
583 | static int __init shx3_pinmux_setup(void) | 14 | static int __init shx3_pinmux_setup(void) |
584 | { | 15 | { |
585 | return register_pinmux(&shx3_pinmux_info); | 16 | return sh_pfc_register("pfc-shx3", NULL, 0); |
586 | } | 17 | } |
587 | arch_initcall(shx3_pinmux_setup); | 18 | arch_initcall(shx3_pinmux_setup); |
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 393b0ecf4ca4..34f51d2d90d2 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig | |||
@@ -227,7 +227,7 @@ config PINCTRL_EXYNOS5440 | |||
227 | select PINCONF | 227 | select PINCONF |
228 | 228 | ||
229 | source "drivers/pinctrl/mvebu/Kconfig" | 229 | source "drivers/pinctrl/mvebu/Kconfig" |
230 | 230 | source "drivers/pinctrl/sh-pfc/Kconfig" | |
231 | source "drivers/pinctrl/spear/Kconfig" | 231 | source "drivers/pinctrl/spear/Kconfig" |
232 | 232 | ||
233 | config PINCTRL_XWAY | 233 | config PINCTRL_XWAY |
diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile index 0fd5f57fcb57..f82cc5baf767 100644 --- a/drivers/pinctrl/Makefile +++ b/drivers/pinctrl/Makefile | |||
@@ -49,4 +49,6 @@ obj-$(CONFIG_PINCTRL_XWAY) += pinctrl-xway.o | |||
49 | obj-$(CONFIG_PINCTRL_LANTIQ) += pinctrl-lantiq.o | 49 | obj-$(CONFIG_PINCTRL_LANTIQ) += pinctrl-lantiq.o |
50 | 50 | ||
51 | obj-$(CONFIG_PLAT_ORION) += mvebu/ | 51 | obj-$(CONFIG_PLAT_ORION) += mvebu/ |
52 | obj-$(CONFIG_ARCH_SHMOBILE) += sh-pfc/ | ||
53 | obj-$(CONFIG_SUPERH) += sh-pfc/ | ||
52 | obj-$(CONFIG_PLAT_SPEAR) += spear/ | 54 | obj-$(CONFIG_PLAT_SPEAR) += spear/ |
diff --git a/drivers/pinctrl/sh-pfc/Kconfig b/drivers/pinctrl/sh-pfc/Kconfig new file mode 100644 index 000000000000..c3340f54d2ad --- /dev/null +++ b/drivers/pinctrl/sh-pfc/Kconfig | |||
@@ -0,0 +1,116 @@ | |||
1 | # | ||
2 | # Renesas SH and SH Mobile PINCTRL drivers | ||
3 | # | ||
4 | |||
5 | if ARCH_SHMOBILE || SUPERH | ||
6 | |||
7 | config PINCTRL_SH_PFC | ||
8 | # XXX move off the gpio dependency | ||
9 | depends on GENERIC_GPIO | ||
10 | select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB | ||
11 | select PINMUX | ||
12 | select PINCONF | ||
13 | def_bool y | ||
14 | help | ||
15 | This enables pin control drivers for SH and SH Mobile platforms | ||
16 | |||
17 | config GPIO_SH_PFC | ||
18 | bool "SuperH PFC GPIO support" | ||
19 | depends on PINCTRL_SH_PFC && GPIOLIB | ||
20 | help | ||
21 | This enables support for GPIOs within the SoC's pin function | ||
22 | controller. | ||
23 | |||
24 | config PINCTRL_PFC_R8A7740 | ||
25 | def_bool y | ||
26 | depends on ARCH_R8A7740 | ||
27 | select PINCTRL_SH_PFC | ||
28 | |||
29 | config PINCTRL_PFC_R8A7779 | ||
30 | def_bool y | ||
31 | depends on ARCH_R8A7779 | ||
32 | select PINCTRL_SH_PFC | ||
33 | |||
34 | config PINCTRL_PFC_SH7203 | ||
35 | def_bool y | ||
36 | depends on CPU_SUBTYPE_SH7203 | ||
37 | depends on GENERIC_GPIO | ||
38 | select PINCTRL_SH_PFC | ||
39 | |||
40 | config PINCTRL_PFC_SH7264 | ||
41 | def_bool y | ||
42 | depends on CPU_SUBTYPE_SH7264 | ||
43 | depends on GENERIC_GPIO | ||
44 | select PINCTRL_SH_PFC | ||
45 | |||
46 | config PINCTRL_PFC_SH7269 | ||
47 | def_bool y | ||
48 | depends on CPU_SUBTYPE_SH7269 | ||
49 | depends on GENERIC_GPIO | ||
50 | select PINCTRL_SH_PFC | ||
51 | |||
52 | config PINCTRL_PFC_SH7372 | ||
53 | def_bool y | ||
54 | depends on ARCH_SH7372 | ||
55 | select PINCTRL_SH_PFC | ||
56 | |||
57 | config PINCTRL_PFC_SH73A0 | ||
58 | def_bool y | ||
59 | depends on ARCH_SH73A0 | ||
60 | select PINCTRL_SH_PFC | ||
61 | |||
62 | config PINCTRL_PFC_SH7720 | ||
63 | def_bool y | ||
64 | depends on CPU_SUBTYPE_SH7720 | ||
65 | depends on GENERIC_GPIO | ||
66 | select PINCTRL_SH_PFC | ||
67 | |||
68 | config PINCTRL_PFC_SH7722 | ||
69 | def_bool y | ||
70 | depends on CPU_SUBTYPE_SH7722 | ||
71 | depends on GENERIC_GPIO | ||
72 | select PINCTRL_SH_PFC | ||
73 | |||
74 | config PINCTRL_PFC_SH7723 | ||
75 | def_bool y | ||
76 | depends on CPU_SUBTYPE_SH7723 | ||
77 | depends on GENERIC_GPIO | ||
78 | select PINCTRL_SH_PFC | ||
79 | |||
80 | config PINCTRL_PFC_SH7724 | ||
81 | def_bool y | ||
82 | depends on CPU_SUBTYPE_SH7724 | ||
83 | depends on GENERIC_GPIO | ||
84 | select PINCTRL_SH_PFC | ||
85 | |||
86 | config PINCTRL_PFC_SH7734 | ||
87 | def_bool y | ||
88 | depends on CPU_SUBTYPE_SH7734 | ||
89 | depends on GENERIC_GPIO | ||
90 | select PINCTRL_SH_PFC | ||
91 | |||
92 | config PINCTRL_PFC_SH7757 | ||
93 | def_bool y | ||
94 | depends on CPU_SUBTYPE_SH7757 | ||
95 | depends on GENERIC_GPIO | ||
96 | select PINCTRL_SH_PFC | ||
97 | |||
98 | config PINCTRL_PFC_SH7785 | ||
99 | def_bool y | ||
100 | depends on CPU_SUBTYPE_SH7785 | ||
101 | depends on GENERIC_GPIO | ||
102 | select PINCTRL_SH_PFC | ||
103 | |||
104 | config PINCTRL_PFC_SH7786 | ||
105 | def_bool y | ||
106 | depends on CPU_SUBTYPE_SH7786 | ||
107 | depends on GENERIC_GPIO | ||
108 | select PINCTRL_SH_PFC | ||
109 | |||
110 | config PINCTRL_PFC_SHX3 | ||
111 | def_bool y | ||
112 | depends on CPU_SUBTYPE_SHX3 | ||
113 | depends on GENERIC_GPIO | ||
114 | select PINCTRL_SH_PFC | ||
115 | |||
116 | endif | ||
diff --git a/drivers/pinctrl/sh-pfc/Makefile b/drivers/pinctrl/sh-pfc/Makefile new file mode 100644 index 000000000000..e8b9562c47e1 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/Makefile | |||
@@ -0,0 +1,21 @@ | |||
1 | sh-pfc-objs = core.o pinctrl.o | ||
2 | ifeq ($(CONFIG_GPIO_SH_PFC),y) | ||
3 | sh-pfc-objs += gpio.o | ||
4 | endif | ||
5 | obj-$(CONFIG_PINCTRL_SH_PFC) += sh-pfc.o | ||
6 | obj-$(CONFIG_PINCTRL_PFC_R8A7740) += pfc-r8a7740.o | ||
7 | obj-$(CONFIG_PINCTRL_PFC_R8A7779) += pfc-r8a7779.o | ||
8 | obj-$(CONFIG_PINCTRL_PFC_SH7203) += pfc-sh7203.o | ||
9 | obj-$(CONFIG_PINCTRL_PFC_SH7264) += pfc-sh7264.o | ||
10 | obj-$(CONFIG_PINCTRL_PFC_SH7269) += pfc-sh7269.o | ||
11 | obj-$(CONFIG_PINCTRL_PFC_SH7372) += pfc-sh7372.o | ||
12 | obj-$(CONFIG_PINCTRL_PFC_SH73A0) += pfc-sh73a0.o | ||
13 | obj-$(CONFIG_PINCTRL_PFC_SH7720) += pfc-sh7720.o | ||
14 | obj-$(CONFIG_PINCTRL_PFC_SH7722) += pfc-sh7722.o | ||
15 | obj-$(CONFIG_PINCTRL_PFC_SH7723) += pfc-sh7723.o | ||
16 | obj-$(CONFIG_PINCTRL_PFC_SH7724) += pfc-sh7724.o | ||
17 | obj-$(CONFIG_PINCTRL_PFC_SH7734) += pfc-sh7734.o | ||
18 | obj-$(CONFIG_PINCTRL_PFC_SH7757) += pfc-sh7757.o | ||
19 | obj-$(CONFIG_PINCTRL_PFC_SH7785) += pfc-sh7785.o | ||
20 | obj-$(CONFIG_PINCTRL_PFC_SH7786) += pfc-sh7786.o | ||
21 | obj-$(CONFIG_PINCTRL_PFC_SHX3) += pfc-shx3.o | ||
diff --git a/drivers/sh/pfc/core.c b/drivers/pinctrl/sh-pfc/core.c index 68169373c98b..970ddff2b0b6 100644 --- a/drivers/sh/pfc/core.c +++ b/drivers/pinctrl/sh-pfc/core.c | |||
@@ -8,78 +8,61 @@ | |||
8 | * License. See the file "COPYING" in the main directory of this archive | 8 | * License. See the file "COPYING" in the main directory of this archive |
9 | * for more details. | 9 | * for more details. |
10 | */ | 10 | */ |
11 | #define pr_fmt(fmt) "sh_pfc " KBUILD_MODNAME ": " fmt | ||
12 | 11 | ||
13 | #include <linux/errno.h> | 12 | #define DRV_NAME "sh-pfc" |
14 | #include <linux/kernel.h> | 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
15 | #include <linux/sh_pfc.h> | 14 | |
16 | #include <linux/module.h> | 15 | #include <linux/bitops.h> |
17 | #include <linux/err.h> | 16 | #include <linux/err.h> |
17 | #include <linux/errno.h> | ||
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/bitops.h> | ||
20 | #include <linux/slab.h> | ||
21 | #include <linux/ioport.h> | 19 | #include <linux/ioport.h> |
20 | #include <linux/kernel.h> | ||
21 | #include <linux/module.h> | ||
22 | #include <linux/pinctrl/machine.h> | 22 | #include <linux/pinctrl/machine.h> |
23 | #include <linux/platform_device.h> | ||
24 | #include <linux/slab.h> | ||
23 | 25 | ||
24 | static struct sh_pfc *sh_pfc __read_mostly; | 26 | #include "core.h" |
25 | |||
26 | static inline bool sh_pfc_initialized(void) | ||
27 | { | ||
28 | return !!sh_pfc; | ||
29 | } | ||
30 | |||
31 | static void pfc_iounmap(struct sh_pfc *pfc) | ||
32 | { | ||
33 | int k; | ||
34 | |||
35 | for (k = 0; k < pfc->num_resources; k++) | ||
36 | if (pfc->window[k].virt) | ||
37 | iounmap(pfc->window[k].virt); | ||
38 | |||
39 | kfree(pfc->window); | ||
40 | pfc->window = NULL; | ||
41 | } | ||
42 | 27 | ||
43 | static int pfc_ioremap(struct sh_pfc *pfc) | 28 | static int sh_pfc_ioremap(struct sh_pfc *pfc, struct platform_device *pdev) |
44 | { | 29 | { |
45 | struct resource *res; | 30 | struct resource *res; |
46 | int k; | 31 | int k; |
47 | 32 | ||
48 | if (!pfc->num_resources) | 33 | if (pdev->num_resources == 0) { |
34 | pfc->num_windows = 0; | ||
49 | return 0; | 35 | return 0; |
36 | } | ||
50 | 37 | ||
51 | pfc->window = kzalloc(pfc->num_resources * sizeof(*pfc->window), | 38 | pfc->window = devm_kzalloc(pfc->dev, pdev->num_resources * |
52 | GFP_NOWAIT); | 39 | sizeof(*pfc->window), GFP_NOWAIT); |
53 | if (!pfc->window) | 40 | if (!pfc->window) |
54 | goto err1; | 41 | return -ENOMEM; |
55 | 42 | ||
56 | for (k = 0; k < pfc->num_resources; k++) { | 43 | pfc->num_windows = pdev->num_resources; |
57 | res = pfc->resource + k; | 44 | |
45 | for (k = 0, res = pdev->resource; k < pdev->num_resources; k++, res++) { | ||
58 | WARN_ON(resource_type(res) != IORESOURCE_MEM); | 46 | WARN_ON(resource_type(res) != IORESOURCE_MEM); |
59 | pfc->window[k].phys = res->start; | 47 | pfc->window[k].phys = res->start; |
60 | pfc->window[k].size = resource_size(res); | 48 | pfc->window[k].size = resource_size(res); |
61 | pfc->window[k].virt = ioremap_nocache(res->start, | 49 | pfc->window[k].virt = devm_ioremap_nocache(pfc->dev, res->start, |
62 | resource_size(res)); | 50 | resource_size(res)); |
63 | if (!pfc->window[k].virt) | 51 | if (!pfc->window[k].virt) |
64 | goto err2; | 52 | return -ENOMEM; |
65 | } | 53 | } |
66 | 54 | ||
67 | return 0; | 55 | return 0; |
68 | |||
69 | err2: | ||
70 | pfc_iounmap(pfc); | ||
71 | err1: | ||
72 | return -1; | ||
73 | } | 56 | } |
74 | 57 | ||
75 | static void __iomem *pfc_phys_to_virt(struct sh_pfc *pfc, | 58 | static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc, |
76 | unsigned long address) | 59 | unsigned long address) |
77 | { | 60 | { |
78 | struct pfc_window *window; | 61 | struct sh_pfc_window *window; |
79 | int k; | 62 | int k; |
80 | 63 | ||
81 | /* scan through physical windows and convert address */ | 64 | /* scan through physical windows and convert address */ |
82 | for (k = 0; k < pfc->num_resources; k++) { | 65 | for (k = 0; k < pfc->num_windows; k++) { |
83 | window = pfc->window + k; | 66 | window = pfc->window + k; |
84 | 67 | ||
85 | if (address < window->phys) | 68 | if (address < window->phys) |
@@ -95,7 +78,7 @@ static void __iomem *pfc_phys_to_virt(struct sh_pfc *pfc, | |||
95 | return (void __iomem *)address; | 78 | return (void __iomem *)address; |
96 | } | 79 | } |
97 | 80 | ||
98 | static int enum_in_range(pinmux_enum_t enum_id, struct pinmux_range *r) | 81 | static int sh_pfc_enum_in_range(pinmux_enum_t enum_id, struct pinmux_range *r) |
99 | { | 82 | { |
100 | if (enum_id < r->begin) | 83 | if (enum_id < r->begin) |
101 | return 0; | 84 | return 0; |
@@ -106,8 +89,8 @@ static int enum_in_range(pinmux_enum_t enum_id, struct pinmux_range *r) | |||
106 | return 1; | 89 | return 1; |
107 | } | 90 | } |
108 | 91 | ||
109 | static unsigned long gpio_read_raw_reg(void __iomem *mapped_reg, | 92 | static unsigned long sh_pfc_read_raw_reg(void __iomem *mapped_reg, |
110 | unsigned long reg_width) | 93 | unsigned long reg_width) |
111 | { | 94 | { |
112 | switch (reg_width) { | 95 | switch (reg_width) { |
113 | case 8: | 96 | case 8: |
@@ -122,9 +105,8 @@ static unsigned long gpio_read_raw_reg(void __iomem *mapped_reg, | |||
122 | return 0; | 105 | return 0; |
123 | } | 106 | } |
124 | 107 | ||
125 | static void gpio_write_raw_reg(void __iomem *mapped_reg, | 108 | static void sh_pfc_write_raw_reg(void __iomem *mapped_reg, |
126 | unsigned long reg_width, | 109 | unsigned long reg_width, unsigned long data) |
127 | unsigned long data) | ||
128 | { | 110 | { |
129 | switch (reg_width) { | 111 | switch (reg_width) { |
130 | case 8: | 112 | case 8: |
@@ -150,9 +132,8 @@ int sh_pfc_read_bit(struct pinmux_data_reg *dr, unsigned long in_pos) | |||
150 | pr_debug("read_bit: addr = %lx, pos = %ld, " | 132 | pr_debug("read_bit: addr = %lx, pos = %ld, " |
151 | "r_width = %ld\n", dr->reg, pos, dr->reg_width); | 133 | "r_width = %ld\n", dr->reg, pos, dr->reg_width); |
152 | 134 | ||
153 | return (gpio_read_raw_reg(dr->mapped_reg, dr->reg_width) >> pos) & 1; | 135 | return (sh_pfc_read_raw_reg(dr->mapped_reg, dr->reg_width) >> pos) & 1; |
154 | } | 136 | } |
155 | EXPORT_SYMBOL_GPL(sh_pfc_read_bit); | ||
156 | 137 | ||
157 | void sh_pfc_write_bit(struct pinmux_data_reg *dr, unsigned long in_pos, | 138 | void sh_pfc_write_bit(struct pinmux_data_reg *dr, unsigned long in_pos, |
158 | unsigned long value) | 139 | unsigned long value) |
@@ -170,20 +151,19 @@ void sh_pfc_write_bit(struct pinmux_data_reg *dr, unsigned long in_pos, | |||
170 | else | 151 | else |
171 | clear_bit(pos, &dr->reg_shadow); | 152 | clear_bit(pos, &dr->reg_shadow); |
172 | 153 | ||
173 | gpio_write_raw_reg(dr->mapped_reg, dr->reg_width, dr->reg_shadow); | 154 | sh_pfc_write_raw_reg(dr->mapped_reg, dr->reg_width, dr->reg_shadow); |
174 | } | 155 | } |
175 | EXPORT_SYMBOL_GPL(sh_pfc_write_bit); | 156 | |
176 | 157 | static void sh_pfc_config_reg_helper(struct sh_pfc *pfc, | |
177 | static void config_reg_helper(struct sh_pfc *pfc, | 158 | struct pinmux_cfg_reg *crp, |
178 | struct pinmux_cfg_reg *crp, | 159 | unsigned long in_pos, |
179 | unsigned long in_pos, | 160 | void __iomem **mapped_regp, |
180 | void __iomem **mapped_regp, | 161 | unsigned long *maskp, |
181 | unsigned long *maskp, | 162 | unsigned long *posp) |
182 | unsigned long *posp) | ||
183 | { | 163 | { |
184 | int k; | 164 | int k; |
185 | 165 | ||
186 | *mapped_regp = pfc_phys_to_virt(pfc, crp->reg); | 166 | *mapped_regp = sh_pfc_phys_to_virt(pfc, crp->reg); |
187 | 167 | ||
188 | if (crp->field_width) { | 168 | if (crp->field_width) { |
189 | *maskp = (1 << crp->field_width) - 1; | 169 | *maskp = (1 << crp->field_width) - 1; |
@@ -196,30 +176,30 @@ static void config_reg_helper(struct sh_pfc *pfc, | |||
196 | } | 176 | } |
197 | } | 177 | } |
198 | 178 | ||
199 | static int read_config_reg(struct sh_pfc *pfc, | 179 | static int sh_pfc_read_config_reg(struct sh_pfc *pfc, |
200 | struct pinmux_cfg_reg *crp, | 180 | struct pinmux_cfg_reg *crp, |
201 | unsigned long field) | 181 | unsigned long field) |
202 | { | 182 | { |
203 | void __iomem *mapped_reg; | 183 | void __iomem *mapped_reg; |
204 | unsigned long mask, pos; | 184 | unsigned long mask, pos; |
205 | 185 | ||
206 | config_reg_helper(pfc, crp, field, &mapped_reg, &mask, &pos); | 186 | sh_pfc_config_reg_helper(pfc, crp, field, &mapped_reg, &mask, &pos); |
207 | 187 | ||
208 | pr_debug("read_reg: addr = %lx, field = %ld, " | 188 | pr_debug("read_reg: addr = %lx, field = %ld, " |
209 | "r_width = %ld, f_width = %ld\n", | 189 | "r_width = %ld, f_width = %ld\n", |
210 | crp->reg, field, crp->reg_width, crp->field_width); | 190 | crp->reg, field, crp->reg_width, crp->field_width); |
211 | 191 | ||
212 | return (gpio_read_raw_reg(mapped_reg, crp->reg_width) >> pos) & mask; | 192 | return (sh_pfc_read_raw_reg(mapped_reg, crp->reg_width) >> pos) & mask; |
213 | } | 193 | } |
214 | 194 | ||
215 | static void write_config_reg(struct sh_pfc *pfc, | 195 | static void sh_pfc_write_config_reg(struct sh_pfc *pfc, |
216 | struct pinmux_cfg_reg *crp, | 196 | struct pinmux_cfg_reg *crp, |
217 | unsigned long field, unsigned long value) | 197 | unsigned long field, unsigned long value) |
218 | { | 198 | { |
219 | void __iomem *mapped_reg; | 199 | void __iomem *mapped_reg; |
220 | unsigned long mask, pos, data; | 200 | unsigned long mask, pos, data; |
221 | 201 | ||
222 | config_reg_helper(pfc, crp, field, &mapped_reg, &mask, &pos); | 202 | sh_pfc_config_reg_helper(pfc, crp, field, &mapped_reg, &mask, &pos); |
223 | 203 | ||
224 | pr_debug("write_reg addr = %lx, value = %ld, field = %ld, " | 204 | pr_debug("write_reg addr = %lx, value = %ld, field = %ld, " |
225 | "r_width = %ld, f_width = %ld\n", | 205 | "r_width = %ld, f_width = %ld\n", |
@@ -228,34 +208,35 @@ static void write_config_reg(struct sh_pfc *pfc, | |||
228 | mask = ~(mask << pos); | 208 | mask = ~(mask << pos); |
229 | value = value << pos; | 209 | value = value << pos; |
230 | 210 | ||
231 | data = gpio_read_raw_reg(mapped_reg, crp->reg_width); | 211 | data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); |
232 | data &= mask; | 212 | data &= mask; |
233 | data |= value; | 213 | data |= value; |
234 | 214 | ||
235 | if (pfc->unlock_reg) | 215 | if (pfc->info->unlock_reg) |
236 | gpio_write_raw_reg(pfc_phys_to_virt(pfc, pfc->unlock_reg), | 216 | sh_pfc_write_raw_reg( |
237 | 32, ~data); | 217 | sh_pfc_phys_to_virt(pfc, pfc->info->unlock_reg), 32, |
218 | ~data); | ||
238 | 219 | ||
239 | gpio_write_raw_reg(mapped_reg, crp->reg_width, data); | 220 | sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); |
240 | } | 221 | } |
241 | 222 | ||
242 | static int setup_data_reg(struct sh_pfc *pfc, unsigned gpio) | 223 | static int sh_pfc_setup_data_reg(struct sh_pfc *pfc, unsigned gpio) |
243 | { | 224 | { |
244 | struct pinmux_gpio *gpiop = &pfc->gpios[gpio]; | 225 | struct pinmux_gpio *gpiop = &pfc->info->gpios[gpio]; |
245 | struct pinmux_data_reg *data_reg; | 226 | struct pinmux_data_reg *data_reg; |
246 | int k, n; | 227 | int k, n; |
247 | 228 | ||
248 | if (!enum_in_range(gpiop->enum_id, &pfc->data)) | 229 | if (!sh_pfc_enum_in_range(gpiop->enum_id, &pfc->info->data)) |
249 | return -1; | 230 | return -1; |
250 | 231 | ||
251 | k = 0; | 232 | k = 0; |
252 | while (1) { | 233 | while (1) { |
253 | data_reg = pfc->data_regs + k; | 234 | data_reg = pfc->info->data_regs + k; |
254 | 235 | ||
255 | if (!data_reg->reg_width) | 236 | if (!data_reg->reg_width) |
256 | break; | 237 | break; |
257 | 238 | ||
258 | data_reg->mapped_reg = pfc_phys_to_virt(pfc, data_reg->reg); | 239 | data_reg->mapped_reg = sh_pfc_phys_to_virt(pfc, data_reg->reg); |
259 | 240 | ||
260 | for (n = 0; n < data_reg->reg_width; n++) { | 241 | for (n = 0; n < data_reg->reg_width; n++) { |
261 | if (data_reg->enum_ids[n] == gpiop->enum_id) { | 242 | if (data_reg->enum_ids[n] == gpiop->enum_id) { |
@@ -274,23 +255,23 @@ static int setup_data_reg(struct sh_pfc *pfc, unsigned gpio) | |||
274 | return -1; | 255 | return -1; |
275 | } | 256 | } |
276 | 257 | ||
277 | static void setup_data_regs(struct sh_pfc *pfc) | 258 | static void sh_pfc_setup_data_regs(struct sh_pfc *pfc) |
278 | { | 259 | { |
279 | struct pinmux_data_reg *drp; | 260 | struct pinmux_data_reg *drp; |
280 | int k; | 261 | int k; |
281 | 262 | ||
282 | for (k = pfc->first_gpio; k <= pfc->last_gpio; k++) | 263 | for (k = pfc->info->first_gpio; k <= pfc->info->last_gpio; k++) |
283 | setup_data_reg(pfc, k); | 264 | sh_pfc_setup_data_reg(pfc, k); |
284 | 265 | ||
285 | k = 0; | 266 | k = 0; |
286 | while (1) { | 267 | while (1) { |
287 | drp = pfc->data_regs + k; | 268 | drp = pfc->info->data_regs + k; |
288 | 269 | ||
289 | if (!drp->reg_width) | 270 | if (!drp->reg_width) |
290 | break; | 271 | break; |
291 | 272 | ||
292 | drp->reg_shadow = gpio_read_raw_reg(drp->mapped_reg, | 273 | drp->reg_shadow = sh_pfc_read_raw_reg(drp->mapped_reg, |
293 | drp->reg_width); | 274 | drp->reg_width); |
294 | k++; | 275 | k++; |
295 | } | 276 | } |
296 | } | 277 | } |
@@ -298,24 +279,22 @@ static void setup_data_regs(struct sh_pfc *pfc) | |||
298 | int sh_pfc_get_data_reg(struct sh_pfc *pfc, unsigned gpio, | 279 | int sh_pfc_get_data_reg(struct sh_pfc *pfc, unsigned gpio, |
299 | struct pinmux_data_reg **drp, int *bitp) | 280 | struct pinmux_data_reg **drp, int *bitp) |
300 | { | 281 | { |
301 | struct pinmux_gpio *gpiop = &pfc->gpios[gpio]; | 282 | struct pinmux_gpio *gpiop = &pfc->info->gpios[gpio]; |
302 | int k, n; | 283 | int k, n; |
303 | 284 | ||
304 | if (!enum_in_range(gpiop->enum_id, &pfc->data)) | 285 | if (!sh_pfc_enum_in_range(gpiop->enum_id, &pfc->info->data)) |
305 | return -1; | 286 | return -1; |
306 | 287 | ||
307 | k = (gpiop->flags & PINMUX_FLAG_DREG) >> PINMUX_FLAG_DREG_SHIFT; | 288 | k = (gpiop->flags & PINMUX_FLAG_DREG) >> PINMUX_FLAG_DREG_SHIFT; |
308 | n = (gpiop->flags & PINMUX_FLAG_DBIT) >> PINMUX_FLAG_DBIT_SHIFT; | 289 | n = (gpiop->flags & PINMUX_FLAG_DBIT) >> PINMUX_FLAG_DBIT_SHIFT; |
309 | *drp = pfc->data_regs + k; | 290 | *drp = pfc->info->data_regs + k; |
310 | *bitp = n; | 291 | *bitp = n; |
311 | return 0; | 292 | return 0; |
312 | } | 293 | } |
313 | EXPORT_SYMBOL_GPL(sh_pfc_get_data_reg); | ||
314 | 294 | ||
315 | static int get_config_reg(struct sh_pfc *pfc, pinmux_enum_t enum_id, | 295 | static int sh_pfc_get_config_reg(struct sh_pfc *pfc, pinmux_enum_t enum_id, |
316 | struct pinmux_cfg_reg **crp, | 296 | struct pinmux_cfg_reg **crp, int *fieldp, |
317 | int *fieldp, int *valuep, | 297 | int *valuep, unsigned long **cntp) |
318 | unsigned long **cntp) | ||
319 | { | 298 | { |
320 | struct pinmux_cfg_reg *config_reg; | 299 | struct pinmux_cfg_reg *config_reg; |
321 | unsigned long r_width, f_width, curr_width, ncomb; | 300 | unsigned long r_width, f_width, curr_width, ncomb; |
@@ -323,7 +302,7 @@ static int get_config_reg(struct sh_pfc *pfc, pinmux_enum_t enum_id, | |||
323 | 302 | ||
324 | k = 0; | 303 | k = 0; |
325 | while (1) { | 304 | while (1) { |
326 | config_reg = pfc->cfg_regs + k; | 305 | config_reg = pfc->info->cfg_regs + k; |
327 | 306 | ||
328 | r_width = config_reg->reg_width; | 307 | r_width = config_reg->reg_width; |
329 | f_width = config_reg->field_width; | 308 | f_width = config_reg->field_width; |
@@ -361,12 +340,12 @@ static int get_config_reg(struct sh_pfc *pfc, pinmux_enum_t enum_id, | |||
361 | int sh_pfc_gpio_to_enum(struct sh_pfc *pfc, unsigned gpio, int pos, | 340 | int sh_pfc_gpio_to_enum(struct sh_pfc *pfc, unsigned gpio, int pos, |
362 | pinmux_enum_t *enum_idp) | 341 | pinmux_enum_t *enum_idp) |
363 | { | 342 | { |
364 | pinmux_enum_t enum_id = pfc->gpios[gpio].enum_id; | 343 | pinmux_enum_t enum_id = pfc->info->gpios[gpio].enum_id; |
365 | pinmux_enum_t *data = pfc->gpio_data; | 344 | pinmux_enum_t *data = pfc->info->gpio_data; |
366 | int k; | 345 | int k; |
367 | 346 | ||
368 | if (!enum_in_range(enum_id, &pfc->data)) { | 347 | if (!sh_pfc_enum_in_range(enum_id, &pfc->info->data)) { |
369 | if (!enum_in_range(enum_id, &pfc->mark)) { | 348 | if (!sh_pfc_enum_in_range(enum_id, &pfc->info->mark)) { |
370 | pr_err("non data/mark enum_id for gpio %d\n", gpio); | 349 | pr_err("non data/mark enum_id for gpio %d\n", gpio); |
371 | return -1; | 350 | return -1; |
372 | } | 351 | } |
@@ -377,7 +356,7 @@ int sh_pfc_gpio_to_enum(struct sh_pfc *pfc, unsigned gpio, int pos, | |||
377 | return pos + 1; | 356 | return pos + 1; |
378 | } | 357 | } |
379 | 358 | ||
380 | for (k = 0; k < pfc->gpio_data_size; k++) { | 359 | for (k = 0; k < pfc->info->gpio_data_size; k++) { |
381 | if (data[k] == enum_id) { | 360 | if (data[k] == enum_id) { |
382 | *enum_idp = data[k + 1]; | 361 | *enum_idp = data[k + 1]; |
383 | return k + 1; | 362 | return k + 1; |
@@ -387,7 +366,6 @@ int sh_pfc_gpio_to_enum(struct sh_pfc *pfc, unsigned gpio, int pos, | |||
387 | pr_err("cannot locate data/mark enum_id for gpio %d\n", gpio); | 366 | pr_err("cannot locate data/mark enum_id for gpio %d\n", gpio); |
388 | return -1; | 367 | return -1; |
389 | } | 368 | } |
390 | EXPORT_SYMBOL_GPL(sh_pfc_gpio_to_enum); | ||
391 | 369 | ||
392 | int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, | 370 | int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, |
393 | int cfg_mode) | 371 | int cfg_mode) |
@@ -405,19 +383,19 @@ int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, | |||
405 | break; | 383 | break; |
406 | 384 | ||
407 | case PINMUX_TYPE_OUTPUT: | 385 | case PINMUX_TYPE_OUTPUT: |
408 | range = &pfc->output; | 386 | range = &pfc->info->output; |
409 | break; | 387 | break; |
410 | 388 | ||
411 | case PINMUX_TYPE_INPUT: | 389 | case PINMUX_TYPE_INPUT: |
412 | range = &pfc->input; | 390 | range = &pfc->info->input; |
413 | break; | 391 | break; |
414 | 392 | ||
415 | case PINMUX_TYPE_INPUT_PULLUP: | 393 | case PINMUX_TYPE_INPUT_PULLUP: |
416 | range = &pfc->input_pu; | 394 | range = &pfc->info->input_pu; |
417 | break; | 395 | break; |
418 | 396 | ||
419 | case PINMUX_TYPE_INPUT_PULLDOWN: | 397 | case PINMUX_TYPE_INPUT_PULLDOWN: |
420 | range = &pfc->input_pd; | 398 | range = &pfc->info->input_pd; |
421 | break; | 399 | break; |
422 | 400 | ||
423 | default: | 401 | default: |
@@ -437,7 +415,7 @@ int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, | |||
437 | break; | 415 | break; |
438 | 416 | ||
439 | /* first check if this is a function enum */ | 417 | /* first check if this is a function enum */ |
440 | in_range = enum_in_range(enum_id, &pfc->function); | 418 | in_range = sh_pfc_enum_in_range(enum_id, &pfc->info->function); |
441 | if (!in_range) { | 419 | if (!in_range) { |
442 | /* not a function enum */ | 420 | /* not a function enum */ |
443 | if (range) { | 421 | if (range) { |
@@ -449,7 +427,7 @@ int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, | |||
449 | * for this case we only allow function enums | 427 | * for this case we only allow function enums |
450 | * and the enums that match the other range. | 428 | * and the enums that match the other range. |
451 | */ | 429 | */ |
452 | in_range = enum_in_range(enum_id, range); | 430 | in_range = sh_pfc_enum_in_range(enum_id, range); |
453 | 431 | ||
454 | /* | 432 | /* |
455 | * special case pass through for fixed | 433 | * special case pass through for fixed |
@@ -474,19 +452,19 @@ int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, | |||
474 | if (!in_range) | 452 | if (!in_range) |
475 | continue; | 453 | continue; |
476 | 454 | ||
477 | if (get_config_reg(pfc, enum_id, &cr, | 455 | if (sh_pfc_get_config_reg(pfc, enum_id, &cr, |
478 | &field, &value, &cntp) != 0) | 456 | &field, &value, &cntp) != 0) |
479 | goto out_err; | 457 | goto out_err; |
480 | 458 | ||
481 | switch (cfg_mode) { | 459 | switch (cfg_mode) { |
482 | case GPIO_CFG_DRYRUN: | 460 | case GPIO_CFG_DRYRUN: |
483 | if (!*cntp || | 461 | if (!*cntp || |
484 | (read_config_reg(pfc, cr, field) != value)) | 462 | (sh_pfc_read_config_reg(pfc, cr, field) != value)) |
485 | continue; | 463 | continue; |
486 | break; | 464 | break; |
487 | 465 | ||
488 | case GPIO_CFG_REQ: | 466 | case GPIO_CFG_REQ: |
489 | write_config_reg(pfc, cr, field, value); | 467 | sh_pfc_write_config_reg(pfc, cr, field, value); |
490 | *cntp = *cntp + 1; | 468 | *cntp = *cntp + 1; |
491 | break; | 469 | break; |
492 | 470 | ||
@@ -500,11 +478,11 @@ int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, | |||
500 | out_err: | 478 | out_err: |
501 | return -1; | 479 | return -1; |
502 | } | 480 | } |
503 | EXPORT_SYMBOL_GPL(sh_pfc_config_gpio); | ||
504 | 481 | ||
505 | int register_sh_pfc(struct sh_pfc *pfc) | 482 | static int sh_pfc_probe(struct platform_device *pdev) |
506 | { | 483 | { |
507 | int (*initroutine)(struct sh_pfc *) = NULL; | 484 | struct sh_pfc_soc_info *info; |
485 | struct sh_pfc *pfc; | ||
508 | int ret; | 486 | int ret; |
509 | 487 | ||
510 | /* | 488 | /* |
@@ -512,61 +490,146 @@ int register_sh_pfc(struct sh_pfc *pfc) | |||
512 | */ | 490 | */ |
513 | BUILD_BUG_ON(PINMUX_FLAG_TYPE > ((1 << PINMUX_FLAG_DBIT_SHIFT) - 1)); | 491 | BUILD_BUG_ON(PINMUX_FLAG_TYPE > ((1 << PINMUX_FLAG_DBIT_SHIFT) - 1)); |
514 | 492 | ||
515 | if (sh_pfc) | 493 | info = pdev->id_entry->driver_data |
516 | return -EBUSY; | 494 | ? (void *)pdev->id_entry->driver_data : pdev->dev.platform_data; |
495 | if (info == NULL) | ||
496 | return -ENODEV; | ||
497 | |||
498 | pfc = devm_kzalloc(&pdev->dev, sizeof(*pfc), GFP_KERNEL); | ||
499 | if (pfc == NULL) | ||
500 | return -ENOMEM; | ||
501 | |||
502 | pfc->info = info; | ||
503 | pfc->dev = &pdev->dev; | ||
517 | 504 | ||
518 | ret = pfc_ioremap(pfc); | 505 | ret = sh_pfc_ioremap(pfc, pdev); |
519 | if (unlikely(ret < 0)) | 506 | if (unlikely(ret < 0)) |
520 | return ret; | 507 | return ret; |
521 | 508 | ||
522 | spin_lock_init(&pfc->lock); | 509 | spin_lock_init(&pfc->lock); |
523 | 510 | ||
524 | pinctrl_provide_dummies(); | 511 | pinctrl_provide_dummies(); |
525 | setup_data_regs(pfc); | 512 | sh_pfc_setup_data_regs(pfc); |
526 | |||
527 | sh_pfc = pfc; | ||
528 | 513 | ||
529 | /* | 514 | /* |
530 | * Initialize pinctrl bindings first | 515 | * Initialize pinctrl bindings first |
531 | */ | 516 | */ |
532 | initroutine = symbol_request(sh_pfc_register_pinctrl); | 517 | ret = sh_pfc_register_pinctrl(pfc); |
533 | if (initroutine) { | 518 | if (unlikely(ret != 0)) |
534 | ret = (*initroutine)(pfc); | 519 | return ret; |
535 | symbol_put_addr(initroutine); | ||
536 | |||
537 | if (unlikely(ret != 0)) | ||
538 | goto err; | ||
539 | } else { | ||
540 | pr_err("failed to initialize pinctrl bindings\n"); | ||
541 | goto err; | ||
542 | } | ||
543 | 520 | ||
521 | #ifdef CONFIG_GPIO_SH_PFC | ||
544 | /* | 522 | /* |
545 | * Then the GPIO chip | 523 | * Then the GPIO chip |
546 | */ | 524 | */ |
547 | initroutine = symbol_request(sh_pfc_register_gpiochip); | 525 | ret = sh_pfc_register_gpiochip(pfc); |
548 | if (initroutine) { | 526 | if (unlikely(ret != 0)) { |
549 | ret = (*initroutine)(pfc); | ||
550 | symbol_put_addr(initroutine); | ||
551 | |||
552 | /* | 527 | /* |
553 | * If the GPIO chip fails to come up we still leave the | 528 | * If the GPIO chip fails to come up we still leave the |
554 | * PFC state as it is, given that there are already | 529 | * PFC state as it is, given that there are already |
555 | * extant users of it that have succeeded by this point. | 530 | * extant users of it that have succeeded by this point. |
556 | */ | 531 | */ |
557 | if (unlikely(ret != 0)) { | 532 | pr_notice("failed to init GPIO chip, ignoring...\n"); |
558 | pr_notice("failed to init GPIO chip, ignoring...\n"); | ||
559 | ret = 0; | ||
560 | } | ||
561 | } | 533 | } |
534 | #endif | ||
535 | |||
536 | platform_set_drvdata(pdev, pfc); | ||
562 | 537 | ||
563 | pr_info("%s support registered\n", pfc->name); | 538 | pr_info("%s support registered\n", info->name); |
564 | 539 | ||
565 | return 0; | 540 | return 0; |
541 | } | ||
566 | 542 | ||
567 | err: | 543 | static int sh_pfc_remove(struct platform_device *pdev) |
568 | pfc_iounmap(pfc); | 544 | { |
569 | sh_pfc = NULL; | 545 | struct sh_pfc *pfc = platform_get_drvdata(pdev); |
546 | |||
547 | #ifdef CONFIG_GPIO_SH_PFC | ||
548 | sh_pfc_unregister_gpiochip(pfc); | ||
549 | #endif | ||
550 | sh_pfc_unregister_pinctrl(pfc); | ||
551 | |||
552 | platform_set_drvdata(pdev, NULL); | ||
570 | 553 | ||
571 | return ret; | 554 | return 0; |
572 | } | 555 | } |
556 | |||
557 | static const struct platform_device_id sh_pfc_id_table[] = { | ||
558 | #ifdef CONFIG_PINCTRL_PFC_R8A7740 | ||
559 | { "pfc-r8a7740", (kernel_ulong_t)&r8a7740_pinmux_info }, | ||
560 | #endif | ||
561 | #ifdef CONFIG_PINCTRL_PFC_R8A7779 | ||
562 | { "pfc-r8a7779", (kernel_ulong_t)&r8a7779_pinmux_info }, | ||
563 | #endif | ||
564 | #ifdef CONFIG_PINCTRL_PFC_SH7203 | ||
565 | { "pfc-sh7203", (kernel_ulong_t)&sh7203_pinmux_info }, | ||
566 | #endif | ||
567 | #ifdef CONFIG_PINCTRL_PFC_SH7264 | ||
568 | { "pfc-sh7264", (kernel_ulong_t)&sh7264_pinmux_info }, | ||
569 | #endif | ||
570 | #ifdef CONFIG_PINCTRL_PFC_SH7269 | ||
571 | { "pfc-sh7269", (kernel_ulong_t)&sh7269_pinmux_info }, | ||
572 | #endif | ||
573 | #ifdef CONFIG_PINCTRL_PFC_SH7372 | ||
574 | { "pfc-sh7372", (kernel_ulong_t)&sh7372_pinmux_info }, | ||
575 | #endif | ||
576 | #ifdef CONFIG_PINCTRL_PFC_SH73A0 | ||
577 | { "pfc-sh73a0", (kernel_ulong_t)&sh73a0_pinmux_info }, | ||
578 | #endif | ||
579 | #ifdef CONFIG_PINCTRL_PFC_SH7720 | ||
580 | { "pfc-sh7720", (kernel_ulong_t)&sh7720_pinmux_info }, | ||
581 | #endif | ||
582 | #ifdef CONFIG_PINCTRL_PFC_SH7722 | ||
583 | { "pfc-sh7722", (kernel_ulong_t)&sh7722_pinmux_info }, | ||
584 | #endif | ||
585 | #ifdef CONFIG_PINCTRL_PFC_SH7723 | ||
586 | { "pfc-sh7723", (kernel_ulong_t)&sh7723_pinmux_info }, | ||
587 | #endif | ||
588 | #ifdef CONFIG_PINCTRL_PFC_SH7724 | ||
589 | { "pfc-sh7724", (kernel_ulong_t)&sh7724_pinmux_info }, | ||
590 | #endif | ||
591 | #ifdef CONFIG_PINCTRL_PFC_SH7734 | ||
592 | { "pfc-sh7734", (kernel_ulong_t)&sh7734_pinmux_info }, | ||
593 | #endif | ||
594 | #ifdef CONFIG_PINCTRL_PFC_SH7757 | ||
595 | { "pfc-sh7757", (kernel_ulong_t)&sh7757_pinmux_info }, | ||
596 | #endif | ||
597 | #ifdef CONFIG_PINCTRL_PFC_SH7785 | ||
598 | { "pfc-sh7785", (kernel_ulong_t)&sh7785_pinmux_info }, | ||
599 | #endif | ||
600 | #ifdef CONFIG_PINCTRL_PFC_SH7786 | ||
601 | { "pfc-sh7786", (kernel_ulong_t)&sh7786_pinmux_info }, | ||
602 | #endif | ||
603 | #ifdef CONFIG_PINCTRL_PFC_SHX3 | ||
604 | { "pfc-shx3", (kernel_ulong_t)&shx3_pinmux_info }, | ||
605 | #endif | ||
606 | { "sh-pfc", 0 }, | ||
607 | { }, | ||
608 | }; | ||
609 | MODULE_DEVICE_TABLE(platform, sh_pfc_id_table); | ||
610 | |||
611 | static struct platform_driver sh_pfc_driver = { | ||
612 | .probe = sh_pfc_probe, | ||
613 | .remove = sh_pfc_remove, | ||
614 | .id_table = sh_pfc_id_table, | ||
615 | .driver = { | ||
616 | .name = DRV_NAME, | ||
617 | .owner = THIS_MODULE, | ||
618 | }, | ||
619 | }; | ||
620 | |||
621 | static int __init sh_pfc_init(void) | ||
622 | { | ||
623 | return platform_driver_register(&sh_pfc_driver); | ||
624 | } | ||
625 | postcore_initcall(sh_pfc_init); | ||
626 | |||
627 | static void __exit sh_pfc_exit(void) | ||
628 | { | ||
629 | platform_driver_unregister(&sh_pfc_driver); | ||
630 | } | ||
631 | module_exit(sh_pfc_exit); | ||
632 | |||
633 | MODULE_AUTHOR("Magnus Damm, Paul Mundt, Laurent Pinchart"); | ||
634 | MODULE_DESCRIPTION("Pin Control and GPIO driver for SuperH pin function controller"); | ||
635 | MODULE_LICENSE("GPL v2"); | ||
diff --git a/drivers/pinctrl/sh-pfc/core.h b/drivers/pinctrl/sh-pfc/core.h new file mode 100644 index 000000000000..ba7c33c33599 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/core.h | |||
@@ -0,0 +1,72 @@ | |||
1 | /* | ||
2 | * SuperH Pin Function Controller support. | ||
3 | * | ||
4 | * Copyright (C) 2012 Renesas Solutions Corp. | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | #ifndef __SH_PFC_CORE_H__ | ||
11 | #define __SH_PFC_CORE_H__ | ||
12 | |||
13 | #include <linux/compiler.h> | ||
14 | #include <linux/types.h> | ||
15 | |||
16 | #include "sh_pfc.h" | ||
17 | |||
18 | struct sh_pfc_window { | ||
19 | phys_addr_t phys; | ||
20 | void __iomem *virt; | ||
21 | unsigned long size; | ||
22 | }; | ||
23 | |||
24 | struct sh_pfc_chip; | ||
25 | struct sh_pfc_pinctrl; | ||
26 | |||
27 | struct sh_pfc { | ||
28 | struct device *dev; | ||
29 | struct sh_pfc_soc_info *info; | ||
30 | spinlock_t lock; | ||
31 | |||
32 | unsigned int num_windows; | ||
33 | struct sh_pfc_window *window; | ||
34 | |||
35 | struct sh_pfc_chip *gpio; | ||
36 | struct sh_pfc_pinctrl *pinctrl; | ||
37 | }; | ||
38 | |||
39 | int sh_pfc_register_gpiochip(struct sh_pfc *pfc); | ||
40 | int sh_pfc_unregister_gpiochip(struct sh_pfc *pfc); | ||
41 | |||
42 | int sh_pfc_register_pinctrl(struct sh_pfc *pfc); | ||
43 | int sh_pfc_unregister_pinctrl(struct sh_pfc *pfc); | ||
44 | |||
45 | int sh_pfc_read_bit(struct pinmux_data_reg *dr, unsigned long in_pos); | ||
46 | void sh_pfc_write_bit(struct pinmux_data_reg *dr, unsigned long in_pos, | ||
47 | unsigned long value); | ||
48 | int sh_pfc_get_data_reg(struct sh_pfc *pfc, unsigned gpio, | ||
49 | struct pinmux_data_reg **drp, int *bitp); | ||
50 | int sh_pfc_gpio_to_enum(struct sh_pfc *pfc, unsigned gpio, int pos, | ||
51 | pinmux_enum_t *enum_idp); | ||
52 | int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, | ||
53 | int cfg_mode); | ||
54 | |||
55 | extern struct sh_pfc_soc_info r8a7740_pinmux_info; | ||
56 | extern struct sh_pfc_soc_info r8a7779_pinmux_info; | ||
57 | extern struct sh_pfc_soc_info sh7203_pinmux_info; | ||
58 | extern struct sh_pfc_soc_info sh7264_pinmux_info; | ||
59 | extern struct sh_pfc_soc_info sh7269_pinmux_info; | ||
60 | extern struct sh_pfc_soc_info sh7372_pinmux_info; | ||
61 | extern struct sh_pfc_soc_info sh73a0_pinmux_info; | ||
62 | extern struct sh_pfc_soc_info sh7720_pinmux_info; | ||
63 | extern struct sh_pfc_soc_info sh7722_pinmux_info; | ||
64 | extern struct sh_pfc_soc_info sh7723_pinmux_info; | ||
65 | extern struct sh_pfc_soc_info sh7724_pinmux_info; | ||
66 | extern struct sh_pfc_soc_info sh7734_pinmux_info; | ||
67 | extern struct sh_pfc_soc_info sh7757_pinmux_info; | ||
68 | extern struct sh_pfc_soc_info sh7785_pinmux_info; | ||
69 | extern struct sh_pfc_soc_info sh7786_pinmux_info; | ||
70 | extern struct sh_pfc_soc_info shx3_pinmux_info; | ||
71 | |||
72 | #endif /* __SH_PFC_CORE_H__ */ | ||
diff --git a/drivers/sh/pfc/gpio.c b/drivers/pinctrl/sh-pfc/gpio.c index 6a24f07c2013..a535075c8b69 100644 --- a/drivers/sh/pfc/gpio.c +++ b/drivers/pinctrl/sh-pfc/gpio.c | |||
@@ -8,16 +8,18 @@ | |||
8 | * License. See the file "COPYING" in the main directory of this archive | 8 | * License. See the file "COPYING" in the main directory of this archive |
9 | * for more details. | 9 | * for more details. |
10 | */ | 10 | */ |
11 | #define pr_fmt(fmt) "sh_pfc " KBUILD_MODNAME ": " fmt | ||
12 | 11 | ||
13 | #include <linux/init.h> | 12 | #define pr_fmt(fmt) KBUILD_MODNAME " gpio: " fmt |
13 | |||
14 | #include <linux/device.h> | ||
14 | #include <linux/gpio.h> | 15 | #include <linux/gpio.h> |
15 | #include <linux/slab.h> | 16 | #include <linux/init.h> |
16 | #include <linux/spinlock.h> | ||
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/platform_device.h> | ||
19 | #include <linux/pinctrl/consumer.h> | 18 | #include <linux/pinctrl/consumer.h> |
20 | #include <linux/sh_pfc.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/spinlock.h> | ||
21 | |||
22 | #include "core.h" | ||
21 | 23 | ||
22 | struct sh_pfc_chip { | 24 | struct sh_pfc_chip { |
23 | struct sh_pfc *pfc; | 25 | struct sh_pfc *pfc; |
@@ -49,7 +51,7 @@ static void sh_gpio_set_value(struct sh_pfc *pfc, unsigned gpio, int value) | |||
49 | struct pinmux_data_reg *dr = NULL; | 51 | struct pinmux_data_reg *dr = NULL; |
50 | int bit = 0; | 52 | int bit = 0; |
51 | 53 | ||
52 | if (!pfc || sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0) | 54 | if (sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0) |
53 | BUG(); | 55 | BUG(); |
54 | else | 56 | else |
55 | sh_pfc_write_bit(dr, bit, value); | 57 | sh_pfc_write_bit(dr, bit, value); |
@@ -60,7 +62,7 @@ static int sh_gpio_get_value(struct sh_pfc *pfc, unsigned gpio) | |||
60 | struct pinmux_data_reg *dr = NULL; | 62 | struct pinmux_data_reg *dr = NULL; |
61 | int bit = 0; | 63 | int bit = 0; |
62 | 64 | ||
63 | if (!pfc || sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0) | 65 | if (sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0) |
64 | return -EINVAL; | 66 | return -EINVAL; |
65 | 67 | ||
66 | return sh_pfc_read_bit(dr, bit); | 68 | return sh_pfc_read_bit(dr, bit); |
@@ -103,11 +105,11 @@ static int sh_gpio_to_irq(struct gpio_chip *gc, unsigned offset) | |||
103 | if (pos <= 0 || !enum_id) | 105 | if (pos <= 0 || !enum_id) |
104 | break; | 106 | break; |
105 | 107 | ||
106 | for (i = 0; i < pfc->gpio_irq_size; i++) { | 108 | for (i = 0; i < pfc->info->gpio_irq_size; i++) { |
107 | enum_ids = pfc->gpio_irq[i].enum_ids; | 109 | enum_ids = pfc->info->gpio_irq[i].enum_ids; |
108 | for (k = 0; enum_ids[k]; k++) { | 110 | for (k = 0; enum_ids[k]; k++) { |
109 | if (enum_ids[k] == enum_id) | 111 | if (enum_ids[k] == enum_id) |
110 | return pfc->gpio_irq[i].irq; | 112 | return pfc->info->gpio_irq[i].irq; |
111 | } | 113 | } |
112 | } | 114 | } |
113 | } | 115 | } |
@@ -128,12 +130,12 @@ static void sh_pfc_gpio_setup(struct sh_pfc_chip *chip) | |||
128 | gc->set = sh_gpio_set; | 130 | gc->set = sh_gpio_set; |
129 | gc->to_irq = sh_gpio_to_irq; | 131 | gc->to_irq = sh_gpio_to_irq; |
130 | 132 | ||
131 | WARN_ON(pfc->first_gpio != 0); /* needs testing */ | 133 | WARN_ON(pfc->info->first_gpio != 0); /* needs testing */ |
132 | 134 | ||
133 | gc->label = pfc->name; | 135 | gc->label = pfc->info->name; |
134 | gc->owner = THIS_MODULE; | 136 | gc->owner = THIS_MODULE; |
135 | gc->base = pfc->first_gpio; | 137 | gc->base = pfc->info->first_gpio; |
136 | gc->ngpio = (pfc->last_gpio - pfc->first_gpio) + 1; | 138 | gc->ngpio = (pfc->info->last_gpio - pfc->info->first_gpio) + 1; |
137 | } | 139 | } |
138 | 140 | ||
139 | int sh_pfc_register_gpiochip(struct sh_pfc *pfc) | 141 | int sh_pfc_register_gpiochip(struct sh_pfc *pfc) |
@@ -141,7 +143,7 @@ int sh_pfc_register_gpiochip(struct sh_pfc *pfc) | |||
141 | struct sh_pfc_chip *chip; | 143 | struct sh_pfc_chip *chip; |
142 | int ret; | 144 | int ret; |
143 | 145 | ||
144 | chip = kzalloc(sizeof(struct sh_pfc_chip), GFP_KERNEL); | 146 | chip = devm_kzalloc(pfc->dev, sizeof(*chip), GFP_KERNEL); |
145 | if (unlikely(!chip)) | 147 | if (unlikely(!chip)) |
146 | return -ENOMEM; | 148 | return -ENOMEM; |
147 | 149 | ||
@@ -151,90 +153,26 @@ int sh_pfc_register_gpiochip(struct sh_pfc *pfc) | |||
151 | 153 | ||
152 | ret = gpiochip_add(&chip->gpio_chip); | 154 | ret = gpiochip_add(&chip->gpio_chip); |
153 | if (unlikely(ret < 0)) | 155 | if (unlikely(ret < 0)) |
154 | kfree(chip); | 156 | return ret; |
155 | |||
156 | pr_info("%s handling gpio %d -> %d\n", | ||
157 | pfc->name, pfc->first_gpio, pfc->last_gpio); | ||
158 | |||
159 | return ret; | ||
160 | } | ||
161 | EXPORT_SYMBOL_GPL(sh_pfc_register_gpiochip); | ||
162 | |||
163 | static int sh_pfc_gpio_match(struct gpio_chip *gc, void *data) | ||
164 | { | ||
165 | return !!strstr(gc->label, data); | ||
166 | } | ||
167 | |||
168 | static int sh_pfc_gpio_probe(struct platform_device *pdev) | ||
169 | { | ||
170 | struct sh_pfc_chip *chip; | ||
171 | struct gpio_chip *gc; | ||
172 | |||
173 | gc = gpiochip_find("_pfc", sh_pfc_gpio_match); | ||
174 | if (unlikely(!gc)) { | ||
175 | pr_err("Cant find gpio chip\n"); | ||
176 | return -ENODEV; | ||
177 | } | ||
178 | 157 | ||
179 | chip = gpio_to_pfc_chip(gc); | 158 | pfc->gpio = chip; |
180 | platform_set_drvdata(pdev, chip); | ||
181 | 159 | ||
182 | pr_info("attaching to GPIO chip %s\n", chip->pfc->name); | 160 | pr_info("%s handling gpio %d -> %d\n", |
161 | pfc->info->name, pfc->info->first_gpio, | ||
162 | pfc->info->last_gpio); | ||
183 | 163 | ||
184 | return 0; | 164 | return 0; |
185 | } | 165 | } |
186 | 166 | ||
187 | static int sh_pfc_gpio_remove(struct platform_device *pdev) | 167 | int sh_pfc_unregister_gpiochip(struct sh_pfc *pfc) |
188 | { | 168 | { |
189 | struct sh_pfc_chip *chip = platform_get_drvdata(pdev); | 169 | struct sh_pfc_chip *chip = pfc->gpio; |
190 | int ret; | 170 | int ret; |
191 | 171 | ||
192 | ret = gpiochip_remove(&chip->gpio_chip); | 172 | ret = gpiochip_remove(&chip->gpio_chip); |
193 | if (unlikely(ret < 0)) | 173 | if (unlikely(ret < 0)) |
194 | return ret; | 174 | return ret; |
195 | 175 | ||
196 | kfree(chip); | 176 | pfc->gpio = NULL; |
197 | return 0; | 177 | return 0; |
198 | } | 178 | } |
199 | |||
200 | static struct platform_driver sh_pfc_gpio_driver = { | ||
201 | .probe = sh_pfc_gpio_probe, | ||
202 | .remove = sh_pfc_gpio_remove, | ||
203 | .driver = { | ||
204 | .name = KBUILD_MODNAME, | ||
205 | .owner = THIS_MODULE, | ||
206 | }, | ||
207 | }; | ||
208 | |||
209 | static struct platform_device sh_pfc_gpio_device = { | ||
210 | .name = KBUILD_MODNAME, | ||
211 | .id = -1, | ||
212 | }; | ||
213 | |||
214 | static int __init sh_pfc_gpio_init(void) | ||
215 | { | ||
216 | int rc; | ||
217 | |||
218 | rc = platform_driver_register(&sh_pfc_gpio_driver); | ||
219 | if (likely(!rc)) { | ||
220 | rc = platform_device_register(&sh_pfc_gpio_device); | ||
221 | if (unlikely(rc)) | ||
222 | platform_driver_unregister(&sh_pfc_gpio_driver); | ||
223 | } | ||
224 | |||
225 | return rc; | ||
226 | } | ||
227 | |||
228 | static void __exit sh_pfc_gpio_exit(void) | ||
229 | { | ||
230 | platform_device_unregister(&sh_pfc_gpio_device); | ||
231 | platform_driver_unregister(&sh_pfc_gpio_driver); | ||
232 | } | ||
233 | |||
234 | module_init(sh_pfc_gpio_init); | ||
235 | module_exit(sh_pfc_gpio_exit); | ||
236 | |||
237 | MODULE_AUTHOR("Magnus Damm, Paul Mundt"); | ||
238 | MODULE_DESCRIPTION("GPIO driver for SuperH pin function controller"); | ||
239 | MODULE_LICENSE("GPL v2"); | ||
240 | MODULE_ALIAS("platform:pfc-gpio"); | ||
diff --git a/arch/arm/mach-shmobile/pfc-r8a7740.c b/drivers/pinctrl/sh-pfc/pfc-r8a7740.c index 134d1b9a8821..214788c4a606 100644 --- a/arch/arm/mach-shmobile/pfc-r8a7740.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7740.c | |||
@@ -18,12 +18,12 @@ | |||
18 | * along with this program; if not, write to the Free Software | 18 | * along with this program; if not, write to the Free Software |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
20 | */ | 20 | */ |
21 | #include <linux/init.h> | ||
22 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
23 | #include <linux/sh_pfc.h> | ||
24 | #include <mach/r8a7740.h> | 22 | #include <mach/r8a7740.h> |
25 | #include <mach/irqs.h> | 23 | #include <mach/irqs.h> |
26 | 24 | ||
25 | #include "sh_pfc.h" | ||
26 | |||
27 | #define CPU_ALL_PORT(fn, pfx, sfx) \ | 27 | #define CPU_ALL_PORT(fn, pfx, sfx) \ |
28 | PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \ | 28 | PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \ |
29 | PORT_10(fn, pfx##10, sfx), PORT_90(fn, pfx##1, sfx), \ | 29 | PORT_10(fn, pfx##10, sfx), PORT_90(fn, pfx##1, sfx), \ |
@@ -2579,7 +2579,7 @@ static struct pinmux_irq pinmux_irqs[] = { | |||
2579 | PINMUX_IRQ(evt2irq(0x33E0), PORT41_FN0, PORT167_FN0), /* IRQ31A */ | 2579 | PINMUX_IRQ(evt2irq(0x33E0), PORT41_FN0, PORT167_FN0), /* IRQ31A */ |
2580 | }; | 2580 | }; |
2581 | 2581 | ||
2582 | static struct pinmux_info r8a7740_pinmux_info = { | 2582 | struct sh_pfc_soc_info r8a7740_pinmux_info = { |
2583 | .name = "r8a7740_pfc", | 2583 | .name = "r8a7740_pfc", |
2584 | .reserved_id = PINMUX_RESERVED, | 2584 | .reserved_id = PINMUX_RESERVED, |
2585 | .data = { PINMUX_DATA_BEGIN, | 2585 | .data = { PINMUX_DATA_BEGIN, |
@@ -2610,8 +2610,3 @@ static struct pinmux_info r8a7740_pinmux_info = { | |||
2610 | .gpio_irq = pinmux_irqs, | 2610 | .gpio_irq = pinmux_irqs, |
2611 | .gpio_irq_size = ARRAY_SIZE(pinmux_irqs), | 2611 | .gpio_irq_size = ARRAY_SIZE(pinmux_irqs), |
2612 | }; | 2612 | }; |
2613 | |||
2614 | void r8a7740_pinmux_init(void) | ||
2615 | { | ||
2616 | register_pinmux(&r8a7740_pinmux_info); | ||
2617 | } | ||
diff --git a/arch/arm/mach-shmobile/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c index 9513234d322b..13feaa0c0eb7 100644 --- a/arch/arm/mach-shmobile/pfc-r8a7779.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c | |||
@@ -17,12 +17,12 @@ | |||
17 | * along with this program; if not, write to the Free Software | 17 | * along with this program; if not, write to the Free Software |
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
19 | */ | 19 | */ |
20 | #include <linux/init.h> | 20 | |
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/sh_pfc.h> | ||
23 | #include <linux/ioport.h> | ||
24 | #include <mach/r8a7779.h> | 22 | #include <mach/r8a7779.h> |
25 | 23 | ||
24 | #include "sh_pfc.h" | ||
25 | |||
26 | #define CPU_32_PORT(fn, pfx, sfx) \ | 26 | #define CPU_32_PORT(fn, pfx, sfx) \ |
27 | PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ | 27 | PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ |
28 | PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \ | 28 | PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \ |
@@ -2600,25 +2600,9 @@ static struct pinmux_data_reg pinmux_data_regs[] = { | |||
2600 | { }, | 2600 | { }, |
2601 | }; | 2601 | }; |
2602 | 2602 | ||
2603 | static struct resource r8a7779_pfc_resources[] = { | 2603 | struct sh_pfc_soc_info r8a7779_pinmux_info = { |
2604 | [0] = { | ||
2605 | .start = 0xfffc0000, | ||
2606 | .end = 0xfffc023b, | ||
2607 | .flags = IORESOURCE_MEM, | ||
2608 | }, | ||
2609 | [1] = { | ||
2610 | .start = 0xffc40000, | ||
2611 | .end = 0xffc46fff, | ||
2612 | .flags = IORESOURCE_MEM, | ||
2613 | } | ||
2614 | }; | ||
2615 | |||
2616 | static struct pinmux_info r8a7779_pinmux_info = { | ||
2617 | .name = "r8a7779_pfc", | 2604 | .name = "r8a7779_pfc", |
2618 | 2605 | ||
2619 | .resource = r8a7779_pfc_resources, | ||
2620 | .num_resources = ARRAY_SIZE(r8a7779_pfc_resources), | ||
2621 | |||
2622 | .unlock_reg = 0xfffc0000, /* PMMR */ | 2606 | .unlock_reg = 0xfffc0000, /* PMMR */ |
2623 | 2607 | ||
2624 | .reserved_id = PINMUX_RESERVED, | 2608 | .reserved_id = PINMUX_RESERVED, |
@@ -2638,8 +2622,3 @@ static struct pinmux_info r8a7779_pinmux_info = { | |||
2638 | .gpio_data = pinmux_data, | 2622 | .gpio_data = pinmux_data, |
2639 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | 2623 | .gpio_data_size = ARRAY_SIZE(pinmux_data), |
2640 | }; | 2624 | }; |
2641 | |||
2642 | void r8a7779_pinmux_init(void) | ||
2643 | { | ||
2644 | register_pinmux(&r8a7779_pinmux_info); | ||
2645 | } | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7203.c b/drivers/pinctrl/sh-pfc/pfc-sh7203.c new file mode 100644 index 000000000000..01b425dfd162 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7203.c | |||
@@ -0,0 +1,1592 @@ | |||
1 | /* | ||
2 | * SH7203 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2008 Magnus Damm | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/gpio.h> | ||
13 | #include <cpu/sh7203.h> | ||
14 | |||
15 | #include "sh_pfc.h" | ||
16 | |||
17 | enum { | ||
18 | PINMUX_RESERVED = 0, | ||
19 | |||
20 | PINMUX_DATA_BEGIN, | ||
21 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
22 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
23 | PB12_DATA, | ||
24 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
25 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
26 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, | ||
27 | PC14_DATA, PC13_DATA, PC12_DATA, | ||
28 | PC11_DATA, PC10_DATA, PC9_DATA, PC8_DATA, | ||
29 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
30 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
31 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
32 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
33 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
34 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
35 | PE15_DATA, PE14_DATA, PE13_DATA, PE12_DATA, | ||
36 | PE11_DATA, PE10_DATA, PE9_DATA, PE8_DATA, | ||
37 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
38 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
39 | PF30_DATA, PF29_DATA, PF28_DATA, | ||
40 | PF27_DATA, PF26_DATA, PF25_DATA, PF24_DATA, | ||
41 | PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA, | ||
42 | PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA, | ||
43 | PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA, | ||
44 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
45 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
46 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
47 | PINMUX_DATA_END, | ||
48 | |||
49 | PINMUX_INPUT_BEGIN, | ||
50 | FORCE_IN, | ||
51 | PA7_IN, PA6_IN, PA5_IN, PA4_IN, | ||
52 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
53 | PB11_IN, PB10_IN, PB9_IN, PB8_IN, | ||
54 | PC14_IN, PC13_IN, PC12_IN, | ||
55 | PC11_IN, PC10_IN, PC9_IN, PC8_IN, | ||
56 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
57 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
58 | PD15_IN, PD14_IN, PD13_IN, PD12_IN, | ||
59 | PD11_IN, PD10_IN, PD9_IN, PD8_IN, | ||
60 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
61 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
62 | PE15_IN, PE14_IN, PE13_IN, PE12_IN, | ||
63 | PE11_IN, PE10_IN, PE9_IN, PE8_IN, | ||
64 | PE7_IN, PE6_IN, PE5_IN, PE4_IN, | ||
65 | PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
66 | PF30_IN, PF29_IN, PF28_IN, | ||
67 | PF27_IN, PF26_IN, PF25_IN, PF24_IN, | ||
68 | PF23_IN, PF22_IN, PF21_IN, PF20_IN, | ||
69 | PF19_IN, PF18_IN, PF17_IN, PF16_IN, | ||
70 | PF15_IN, PF14_IN, PF13_IN, PF12_IN, | ||
71 | PF11_IN, PF10_IN, PF9_IN, PF8_IN, | ||
72 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
73 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
74 | PINMUX_INPUT_END, | ||
75 | |||
76 | PINMUX_OUTPUT_BEGIN, | ||
77 | FORCE_OUT, | ||
78 | PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT, | ||
79 | PC14_OUT, PC13_OUT, PC12_OUT, | ||
80 | PC11_OUT, PC10_OUT, PC9_OUT, PC8_OUT, | ||
81 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
82 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
83 | PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT, | ||
84 | PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT, | ||
85 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
86 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
87 | PE15_OUT, PE14_OUT, PE13_OUT, PE12_OUT, | ||
88 | PE11_OUT, PE10_OUT, PE9_OUT, PE8_OUT, | ||
89 | PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT, | ||
90 | PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
91 | PF30_OUT, PF29_OUT, PF28_OUT, | ||
92 | PF27_OUT, PF26_OUT, PF25_OUT, PF24_OUT, | ||
93 | PF23_OUT, PF22_OUT, PF21_OUT, PF20_OUT, | ||
94 | PF19_OUT, PF18_OUT, PF17_OUT, PF16_OUT, | ||
95 | PF15_OUT, PF14_OUT, PF13_OUT, PF12_OUT, | ||
96 | PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT, | ||
97 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
98 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
99 | PINMUX_OUTPUT_END, | ||
100 | |||
101 | PINMUX_FUNCTION_BEGIN, | ||
102 | PB11_IOR_IN, PB11_IOR_OUT, | ||
103 | PB10_IOR_IN, PB10_IOR_OUT, | ||
104 | PB9_IOR_IN, PB9_IOR_OUT, | ||
105 | PB8_IOR_IN, PB8_IOR_OUT, | ||
106 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, | ||
107 | PB11MD_0, PB11MD_1, | ||
108 | PB10MD_0, PB10MD_1, | ||
109 | PB9MD_00, PB9MD_01, PB9MD_10, | ||
110 | PB8MD_00, PB8MD_01, PB8MD_10, | ||
111 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, | ||
112 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, | ||
113 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, | ||
114 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, | ||
115 | PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, | ||
116 | PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, | ||
117 | PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, | ||
118 | PB0MD_00, PB0MD_01, PB0MD_10, PB0MD_11, | ||
119 | |||
120 | PB12IRQ_00, PB12IRQ_01, PB12IRQ_10, | ||
121 | |||
122 | PC14MD_0, PC14MD_1, | ||
123 | PC13MD_0, PC13MD_1, | ||
124 | PC12MD_0, PC12MD_1, | ||
125 | PC11MD_00, PC11MD_01, PC11MD_10, | ||
126 | PC10MD_00, PC10MD_01, PC10MD_10, | ||
127 | PC9MD_0, PC9MD_1, | ||
128 | PC8MD_0, PC8MD_1, | ||
129 | PC7MD_0, PC7MD_1, | ||
130 | PC6MD_0, PC6MD_1, | ||
131 | PC5MD_0, PC5MD_1, | ||
132 | PC4MD_0, PC4MD_1, | ||
133 | PC3MD_0, PC3MD_1, | ||
134 | PC2MD_0, PC2MD_1, | ||
135 | PC1MD_0, PC1MD_1, | ||
136 | PC0MD_00, PC0MD_01, PC0MD_10, | ||
137 | |||
138 | PD15MD_000, PD15MD_001, PD15MD_010, PD15MD_100, PD15MD_101, | ||
139 | PD14MD_000, PD14MD_001, PD14MD_010, PD14MD_101, | ||
140 | PD13MD_000, PD13MD_001, PD13MD_010, PD13MD_100, PD13MD_101, | ||
141 | PD12MD_000, PD12MD_001, PD12MD_010, PD12MD_100, PD12MD_101, | ||
142 | PD11MD_000, PD11MD_001, PD11MD_010, PD11MD_100, PD11MD_101, | ||
143 | PD10MD_000, PD10MD_001, PD10MD_010, PD10MD_100, PD10MD_101, | ||
144 | PD9MD_000, PD9MD_001, PD9MD_010, PD9MD_100, PD9MD_101, | ||
145 | PD8MD_000, PD8MD_001, PD8MD_010, PD8MD_100, PD8MD_101, | ||
146 | PD7MD_000, PD7MD_001, PD7MD_010, PD7MD_011, PD7MD_100, PD7MD_101, | ||
147 | PD6MD_000, PD6MD_001, PD6MD_010, PD6MD_011, PD6MD_100, PD6MD_101, | ||
148 | PD5MD_000, PD5MD_001, PD5MD_010, PD5MD_011, PD5MD_100, PD5MD_101, | ||
149 | PD4MD_000, PD4MD_001, PD4MD_010, PD4MD_011, PD4MD_100, PD4MD_101, | ||
150 | PD3MD_000, PD3MD_001, PD3MD_010, PD3MD_011, PD3MD_100, PD3MD_101, | ||
151 | PD2MD_000, PD2MD_001, PD2MD_010, PD2MD_011, PD2MD_100, PD2MD_101, | ||
152 | PD1MD_000, PD1MD_001, PD1MD_010, PD1MD_011, PD1MD_100, PD1MD_101, | ||
153 | PD0MD_000, PD0MD_001, PD0MD_010, PD0MD_011, PD0MD_100, PD0MD_101, | ||
154 | |||
155 | PE15MD_00, PE15MD_01, PE15MD_11, | ||
156 | PE14MD_00, PE14MD_01, PE14MD_11, | ||
157 | PE13MD_00, PE13MD_11, | ||
158 | PE12MD_00, PE12MD_11, | ||
159 | PE11MD_000, PE11MD_001, PE11MD_010, PE11MD_100, | ||
160 | PE10MD_000, PE10MD_001, PE10MD_010, PE10MD_100, | ||
161 | PE9MD_00, PE9MD_01, PE9MD_10, PE9MD_11, | ||
162 | PE8MD_00, PE8MD_01, PE8MD_10, PE8MD_11, | ||
163 | PE7MD_000, PE7MD_001, PE7MD_010, PE7MD_011, PE7MD_100, | ||
164 | PE6MD_000, PE6MD_001, PE6MD_010, PE6MD_011, PE6MD_100, | ||
165 | PE5MD_000, PE5MD_001, PE5MD_010, PE5MD_011, PE5MD_100, | ||
166 | PE4MD_000, PE4MD_001, PE4MD_010, PE4MD_011, PE4MD_100, | ||
167 | PE3MD_00, PE3MD_01, PE3MD_11, | ||
168 | PE2MD_00, PE2MD_01, PE2MD_11, | ||
169 | PE1MD_00, PE1MD_01, PE1MD_10, PE1MD_11, | ||
170 | PE0MD_000, PE0MD_001, PE0MD_011, PE0MD_100, | ||
171 | |||
172 | PF30MD_0, PF30MD_1, | ||
173 | PF29MD_0, PF29MD_1, | ||
174 | PF28MD_0, PF28MD_1, | ||
175 | PF27MD_0, PF27MD_1, | ||
176 | PF26MD_0, PF26MD_1, | ||
177 | PF25MD_0, PF25MD_1, | ||
178 | PF24MD_0, PF24MD_1, | ||
179 | PF23MD_00, PF23MD_01, PF23MD_10, | ||
180 | PF22MD_00, PF22MD_01, PF22MD_10, | ||
181 | PF21MD_00, PF21MD_01, PF21MD_10, | ||
182 | PF20MD_00, PF20MD_01, PF20MD_10, | ||
183 | PF19MD_00, PF19MD_01, PF19MD_10, | ||
184 | PF18MD_00, PF18MD_01, PF18MD_10, | ||
185 | PF17MD_00, PF17MD_01, PF17MD_10, | ||
186 | PF16MD_00, PF16MD_01, PF16MD_10, | ||
187 | PF15MD_00, PF15MD_01, PF15MD_10, | ||
188 | PF14MD_00, PF14MD_01, PF14MD_10, | ||
189 | PF13MD_00, PF13MD_01, PF13MD_10, | ||
190 | PF12MD_00, PF12MD_01, PF12MD_10, | ||
191 | PF11MD_00, PF11MD_01, PF11MD_10, | ||
192 | PF10MD_00, PF10MD_01, PF10MD_10, | ||
193 | PF9MD_00, PF9MD_01, PF9MD_10, | ||
194 | PF8MD_00, PF8MD_01, PF8MD_10, | ||
195 | PF7MD_00, PF7MD_01, PF7MD_10, PF7MD_11, | ||
196 | PF6MD_00, PF6MD_01, PF6MD_10, PF6MD_11, | ||
197 | PF5MD_00, PF5MD_01, PF5MD_10, PF5MD_11, | ||
198 | PF4MD_00, PF4MD_01, PF4MD_10, PF4MD_11, | ||
199 | PF3MD_00, PF3MD_01, PF3MD_10, PF3MD_11, | ||
200 | PF2MD_00, PF2MD_01, PF2MD_10, PF2MD_11, | ||
201 | PF1MD_00, PF1MD_01, PF1MD_10, PF1MD_11, | ||
202 | PF0MD_00, PF0MD_01, PF0MD_10, PF0MD_11, | ||
203 | PINMUX_FUNCTION_END, | ||
204 | |||
205 | PINMUX_MARK_BEGIN, | ||
206 | PINT7_PB_MARK, PINT6_PB_MARK, PINT5_PB_MARK, PINT4_PB_MARK, | ||
207 | PINT3_PB_MARK, PINT2_PB_MARK, PINT1_PB_MARK, PINT0_PB_MARK, | ||
208 | PINT7_PD_MARK, PINT6_PD_MARK, PINT5_PD_MARK, PINT4_PD_MARK, | ||
209 | PINT3_PD_MARK, PINT2_PD_MARK, PINT1_PD_MARK, PINT0_PD_MARK, | ||
210 | IRQ7_PB_MARK, IRQ6_PB_MARK, IRQ5_PB_MARK, IRQ4_PB_MARK, | ||
211 | IRQ3_PB_MARK, IRQ2_PB_MARK, IRQ1_PB_MARK, IRQ0_PB_MARK, | ||
212 | IRQ7_PD_MARK, IRQ6_PD_MARK, IRQ5_PD_MARK, IRQ4_PD_MARK, | ||
213 | IRQ3_PD_MARK, IRQ2_PD_MARK, IRQ1_PD_MARK, IRQ0_PD_MARK, | ||
214 | IRQ7_PE_MARK, IRQ6_PE_MARK, IRQ5_PE_MARK, IRQ4_PE_MARK, | ||
215 | IRQ3_PE_MARK, IRQ2_PE_MARK, IRQ1_PE_MARK, IRQ0_PE_MARK, | ||
216 | WDTOVF_MARK, IRQOUT_MARK, REFOUT_MARK, IRQOUT_REFOUT_MARK, | ||
217 | UBCTRG_MARK, | ||
218 | CTX1_MARK, CRX1_MARK, CTX0_MARK, CTX0_CTX1_MARK, | ||
219 | CRX0_MARK, CRX0_CRX1_MARK, | ||
220 | SDA3_MARK, SCL3_MARK, | ||
221 | SDA2_MARK, SCL2_MARK, | ||
222 | SDA1_MARK, SCL1_MARK, | ||
223 | SDA0_MARK, SCL0_MARK, | ||
224 | TEND0_PD_MARK, TEND0_PE_MARK, DACK0_PD_MARK, DACK0_PE_MARK, | ||
225 | DREQ0_PD_MARK, DREQ0_PE_MARK, TEND1_PD_MARK, TEND1_PE_MARK, | ||
226 | DACK1_PD_MARK, DACK1_PE_MARK, DREQ1_PD_MARK, DREQ1_PE_MARK, | ||
227 | DACK2_MARK, DREQ2_MARK, DACK3_MARK, DREQ3_MARK, | ||
228 | ADTRG_PD_MARK, ADTRG_PE_MARK, | ||
229 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, | ||
230 | D27_MARK, D26_MARK, D25_MARK, D24_MARK, | ||
231 | D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
232 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
233 | A25_MARK, A24_MARK, A23_MARK, A22_MARK, | ||
234 | A21_MARK, CS4_MARK, MRES_MARK, BS_MARK, | ||
235 | IOIS16_MARK, CS1_MARK, CS6_CE1B_MARK, CE2B_MARK, | ||
236 | CS5_CE1A_MARK, CE2A_MARK, FRAME_MARK, WAIT_MARK, | ||
237 | RDWR_MARK, CKE_MARK, CASU_MARK, BREQ_MARK, | ||
238 | RASU_MARK, BACK_MARK, CASL_MARK, RASL_MARK, | ||
239 | WE3_DQMUU_AH_ICIO_WR_MARK, WE2_DQMUL_ICIORD_MARK, | ||
240 | WE1_DQMLU_WE_MARK, WE0_DQMLL_MARK, | ||
241 | CS3_MARK, CS2_MARK, A1_MARK, A0_MARK, CS7_MARK, | ||
242 | TIOC4D_MARK, TIOC4C_MARK, TIOC4B_MARK, TIOC4A_MARK, | ||
243 | TIOC3D_MARK, TIOC3C_MARK, TIOC3B_MARK, TIOC3A_MARK, | ||
244 | TIOC2B_MARK, TIOC1B_MARK, TIOC2A_MARK, TIOC1A_MARK, | ||
245 | TIOC0D_MARK, TIOC0C_MARK, TIOC0B_MARK, TIOC0A_MARK, | ||
246 | TCLKD_PD_MARK, TCLKC_PD_MARK, TCLKB_PD_MARK, TCLKA_PD_MARK, | ||
247 | TCLKD_PF_MARK, TCLKC_PF_MARK, TCLKB_PF_MARK, TCLKA_PF_MARK, | ||
248 | SCS0_PD_MARK, SSO0_PD_MARK, SSI0_PD_MARK, SSCK0_PD_MARK, | ||
249 | SCS0_PF_MARK, SSO0_PF_MARK, SSI0_PF_MARK, SSCK0_PF_MARK, | ||
250 | SCS1_PD_MARK, SSO1_PD_MARK, SSI1_PD_MARK, SSCK1_PD_MARK, | ||
251 | SCS1_PF_MARK, SSO1_PF_MARK, SSI1_PF_MARK, SSCK1_PF_MARK, | ||
252 | TXD0_MARK, RXD0_MARK, SCK0_MARK, | ||
253 | TXD1_MARK, RXD1_MARK, SCK1_MARK, | ||
254 | TXD2_MARK, RXD2_MARK, SCK2_MARK, | ||
255 | RTS3_MARK, CTS3_MARK, TXD3_MARK, | ||
256 | RXD3_MARK, SCK3_MARK, | ||
257 | AUDIO_CLK_MARK, | ||
258 | SSIDATA3_MARK, SSIWS3_MARK, SSISCK3_MARK, | ||
259 | SSIDATA2_MARK, SSIWS2_MARK, SSISCK2_MARK, | ||
260 | SSIDATA1_MARK, SSIWS1_MARK, SSISCK1_MARK, | ||
261 | SSIDATA0_MARK, SSIWS0_MARK, SSISCK0_MARK, | ||
262 | FCE_MARK, FRB_MARK, | ||
263 | NAF7_MARK, NAF6_MARK, NAF5_MARK, NAF4_MARK, | ||
264 | NAF3_MARK, NAF2_MARK, NAF1_MARK, NAF0_MARK, | ||
265 | FSC_MARK, FOE_MARK, FCDE_MARK, FWE_MARK, | ||
266 | LCD_VEPWC_MARK, LCD_VCPWC_MARK, LCD_CLK_MARK, LCD_FLM_MARK, | ||
267 | LCD_M_DISP_MARK, LCD_CL2_MARK, LCD_CL1_MARK, LCD_DON_MARK, | ||
268 | LCD_DATA15_MARK, LCD_DATA14_MARK, LCD_DATA13_MARK, LCD_DATA12_MARK, | ||
269 | LCD_DATA11_MARK, LCD_DATA10_MARK, LCD_DATA9_MARK, LCD_DATA8_MARK, | ||
270 | LCD_DATA7_MARK, LCD_DATA6_MARK, LCD_DATA5_MARK, LCD_DATA4_MARK, | ||
271 | LCD_DATA3_MARK, LCD_DATA2_MARK, LCD_DATA1_MARK, LCD_DATA0_MARK, | ||
272 | PINMUX_MARK_END, | ||
273 | }; | ||
274 | |||
275 | static pinmux_enum_t pinmux_data[] = { | ||
276 | |||
277 | /* PA */ | ||
278 | PINMUX_DATA(PA7_DATA, PA7_IN), | ||
279 | PINMUX_DATA(PA6_DATA, PA6_IN), | ||
280 | PINMUX_DATA(PA5_DATA, PA5_IN), | ||
281 | PINMUX_DATA(PA4_DATA, PA4_IN), | ||
282 | PINMUX_DATA(PA3_DATA, PA3_IN), | ||
283 | PINMUX_DATA(PA2_DATA, PA2_IN), | ||
284 | PINMUX_DATA(PA1_DATA, PA1_IN), | ||
285 | PINMUX_DATA(PA0_DATA, PA0_IN), | ||
286 | |||
287 | /* PB */ | ||
288 | PINMUX_DATA(PB12_DATA, PB12MD_00, FORCE_OUT), | ||
289 | PINMUX_DATA(WDTOVF_MARK, PB12MD_01), | ||
290 | PINMUX_DATA(IRQOUT_MARK, PB12MD_10, PB12IRQ_00), | ||
291 | PINMUX_DATA(REFOUT_MARK, PB12MD_10, PB12IRQ_01), | ||
292 | PINMUX_DATA(IRQOUT_REFOUT_MARK, PB12MD_10, PB12IRQ_10), | ||
293 | PINMUX_DATA(UBCTRG_MARK, PB12MD_11), | ||
294 | |||
295 | PINMUX_DATA(PB11_DATA, PB11MD_0, PB11_IN, PB11_OUT), | ||
296 | PINMUX_DATA(CTX1_MARK, PB11MD_1), | ||
297 | |||
298 | PINMUX_DATA(PB10_DATA, PB10MD_0, PB10_IN, PB10_OUT), | ||
299 | PINMUX_DATA(CRX1_MARK, PB10MD_1), | ||
300 | |||
301 | PINMUX_DATA(PB9_DATA, PB9MD_00, PB9_IN, PB9_OUT), | ||
302 | PINMUX_DATA(CTX0_MARK, PB9MD_01), | ||
303 | PINMUX_DATA(CTX0_CTX1_MARK, PB9MD_10), | ||
304 | |||
305 | PINMUX_DATA(PB8_DATA, PB8MD_00, PB8_IN, PB8_OUT), | ||
306 | PINMUX_DATA(CRX0_MARK, PB8MD_01), | ||
307 | PINMUX_DATA(CRX0_CRX1_MARK, PB8MD_10), | ||
308 | |||
309 | PINMUX_DATA(PB7_DATA, PB7MD_00, FORCE_IN), | ||
310 | PINMUX_DATA(SDA3_MARK, PB7MD_01), | ||
311 | PINMUX_DATA(PINT7_PB_MARK, PB7MD_10), | ||
312 | PINMUX_DATA(IRQ7_PB_MARK, PB7MD_11), | ||
313 | |||
314 | PINMUX_DATA(PB6_DATA, PB6MD_00, FORCE_IN), | ||
315 | PINMUX_DATA(SCL3_MARK, PB6MD_01), | ||
316 | PINMUX_DATA(PINT6_PB_MARK, PB6MD_10), | ||
317 | PINMUX_DATA(IRQ6_PB_MARK, PB6MD_11), | ||
318 | |||
319 | PINMUX_DATA(PB5_DATA, PB5MD_00, FORCE_IN), | ||
320 | PINMUX_DATA(SDA2_MARK, PB6MD_01), | ||
321 | PINMUX_DATA(PINT5_PB_MARK, PB6MD_10), | ||
322 | PINMUX_DATA(IRQ5_PB_MARK, PB6MD_11), | ||
323 | |||
324 | PINMUX_DATA(PB4_DATA, PB4MD_00, FORCE_IN), | ||
325 | PINMUX_DATA(SCL2_MARK, PB4MD_01), | ||
326 | PINMUX_DATA(PINT4_PB_MARK, PB4MD_10), | ||
327 | PINMUX_DATA(IRQ4_PB_MARK, PB4MD_11), | ||
328 | |||
329 | PINMUX_DATA(PB3_DATA, PB3MD_00, FORCE_IN), | ||
330 | PINMUX_DATA(SDA1_MARK, PB3MD_01), | ||
331 | PINMUX_DATA(PINT3_PB_MARK, PB3MD_10), | ||
332 | PINMUX_DATA(IRQ3_PB_MARK, PB3MD_11), | ||
333 | |||
334 | PINMUX_DATA(PB2_DATA, PB2MD_00, FORCE_IN), | ||
335 | PINMUX_DATA(SCL1_MARK, PB2MD_01), | ||
336 | PINMUX_DATA(PINT2_PB_MARK, PB2MD_10), | ||
337 | PINMUX_DATA(IRQ2_PB_MARK, PB2MD_11), | ||
338 | |||
339 | PINMUX_DATA(PB1_DATA, PB1MD_00, FORCE_IN), | ||
340 | PINMUX_DATA(SDA0_MARK, PB1MD_01), | ||
341 | PINMUX_DATA(PINT1_PB_MARK, PB1MD_10), | ||
342 | PINMUX_DATA(IRQ1_PB_MARK, PB1MD_11), | ||
343 | |||
344 | PINMUX_DATA(PB0_DATA, PB0MD_00, FORCE_IN), | ||
345 | PINMUX_DATA(SCL0_MARK, PB0MD_01), | ||
346 | PINMUX_DATA(PINT0_PB_MARK, PB0MD_10), | ||
347 | PINMUX_DATA(IRQ0_PB_MARK, PB0MD_11), | ||
348 | |||
349 | /* PC */ | ||
350 | PINMUX_DATA(PC14_DATA, PC14MD_0, PC14_IN, PC14_OUT), | ||
351 | PINMUX_DATA(WAIT_MARK, PC14MD_1), | ||
352 | |||
353 | PINMUX_DATA(PC13_DATA, PC13MD_0, PC13_IN, PC13_OUT), | ||
354 | PINMUX_DATA(RDWR_MARK, PC13MD_1), | ||
355 | |||
356 | PINMUX_DATA(PC12_DATA, PC12MD_0, PC12_IN, PC12_OUT), | ||
357 | PINMUX_DATA(CKE_MARK, PC12MD_1), | ||
358 | |||
359 | PINMUX_DATA(PC11_DATA, PC11MD_00, PC11_IN, PC11_OUT), | ||
360 | PINMUX_DATA(CASU_MARK, PC11MD_01), | ||
361 | PINMUX_DATA(BREQ_MARK, PC11MD_10), | ||
362 | |||
363 | PINMUX_DATA(PC10_DATA, PC10MD_00, PC10_IN, PC10_OUT), | ||
364 | PINMUX_DATA(RASU_MARK, PC10MD_01), | ||
365 | PINMUX_DATA(BACK_MARK, PC10MD_10), | ||
366 | |||
367 | PINMUX_DATA(PC9_DATA, PC9MD_0, PC9_IN, PC9_OUT), | ||
368 | PINMUX_DATA(CASL_MARK, PC9MD_1), | ||
369 | |||
370 | PINMUX_DATA(PC8_DATA, PC8MD_0, PC8_IN, PC8_OUT), | ||
371 | PINMUX_DATA(RASL_MARK, PC8MD_1), | ||
372 | |||
373 | PINMUX_DATA(PC7_DATA, PC7MD_0, PC7_IN, PC7_OUT), | ||
374 | PINMUX_DATA(WE3_DQMUU_AH_ICIO_WR_MARK, PC7MD_1), | ||
375 | |||
376 | PINMUX_DATA(PC6_DATA, PC6MD_0, PC6_IN, PC6_OUT), | ||
377 | PINMUX_DATA(WE2_DQMUL_ICIORD_MARK, PC6MD_1), | ||
378 | |||
379 | PINMUX_DATA(PC5_DATA, PC5MD_0, PC5_IN, PC5_OUT), | ||
380 | PINMUX_DATA(WE1_DQMLU_WE_MARK, PC5MD_1), | ||
381 | |||
382 | PINMUX_DATA(PC4_DATA, PC4MD_0, PC4_IN, PC4_OUT), | ||
383 | PINMUX_DATA(WE0_DQMLL_MARK, PC4MD_1), | ||
384 | |||
385 | PINMUX_DATA(PC3_DATA, PC3MD_0, PC3_IN, PC3_OUT), | ||
386 | PINMUX_DATA(CS3_MARK, PC3MD_1), | ||
387 | |||
388 | PINMUX_DATA(PC2_DATA, PC2MD_0, PC2_IN, PC2_OUT), | ||
389 | PINMUX_DATA(CS2_MARK, PC2MD_1), | ||
390 | |||
391 | PINMUX_DATA(PC1_DATA, PC1MD_0, PC1_IN, PC1_OUT), | ||
392 | PINMUX_DATA(A1_MARK, PC1MD_1), | ||
393 | |||
394 | PINMUX_DATA(PC0_DATA, PC0MD_00, PC0_IN, PC0_OUT), | ||
395 | PINMUX_DATA(A0_MARK, PC0MD_01), | ||
396 | PINMUX_DATA(CS7_MARK, PC0MD_10), | ||
397 | |||
398 | /* PD */ | ||
399 | PINMUX_DATA(PD15_DATA, PD15MD_000, PD15_IN, PD15_OUT), | ||
400 | PINMUX_DATA(D31_MARK, PD15MD_001), | ||
401 | PINMUX_DATA(PINT7_PD_MARK, PD15MD_010), | ||
402 | PINMUX_DATA(ADTRG_PD_MARK, PD15MD_100), | ||
403 | PINMUX_DATA(TIOC4D_MARK, PD15MD_101), | ||
404 | |||
405 | PINMUX_DATA(PD14_DATA, PD14MD_000, PD14_IN, PD14_OUT), | ||
406 | PINMUX_DATA(D30_MARK, PD14MD_001), | ||
407 | PINMUX_DATA(PINT6_PD_MARK, PD14MD_010), | ||
408 | PINMUX_DATA(TIOC4C_MARK, PD14MD_101), | ||
409 | |||
410 | PINMUX_DATA(PD13_DATA, PD13MD_000, PD13_IN, PD13_OUT), | ||
411 | PINMUX_DATA(D29_MARK, PD13MD_001), | ||
412 | PINMUX_DATA(PINT5_PD_MARK, PD13MD_010), | ||
413 | PINMUX_DATA(TEND1_PD_MARK, PD13MD_100), | ||
414 | PINMUX_DATA(TIOC4B_MARK, PD13MD_101), | ||
415 | |||
416 | PINMUX_DATA(PD12_DATA, PD12MD_000, PD12_IN, PD12_OUT), | ||
417 | PINMUX_DATA(D28_MARK, PD12MD_001), | ||
418 | PINMUX_DATA(PINT4_PD_MARK, PD12MD_010), | ||
419 | PINMUX_DATA(DACK1_PD_MARK, PD12MD_100), | ||
420 | PINMUX_DATA(TIOC4A_MARK, PD12MD_101), | ||
421 | |||
422 | PINMUX_DATA(PD11_DATA, PD11MD_000, PD11_IN, PD11_OUT), | ||
423 | PINMUX_DATA(D27_MARK, PD11MD_001), | ||
424 | PINMUX_DATA(PINT3_PD_MARK, PD11MD_010), | ||
425 | PINMUX_DATA(DREQ1_PD_MARK, PD11MD_100), | ||
426 | PINMUX_DATA(TIOC3D_MARK, PD11MD_101), | ||
427 | |||
428 | PINMUX_DATA(PD10_DATA, PD10MD_000, PD10_IN, PD10_OUT), | ||
429 | PINMUX_DATA(D26_MARK, PD10MD_001), | ||
430 | PINMUX_DATA(PINT2_PD_MARK, PD10MD_010), | ||
431 | PINMUX_DATA(TEND0_PD_MARK, PD10MD_100), | ||
432 | PINMUX_DATA(TIOC3C_MARK, PD10MD_101), | ||
433 | |||
434 | PINMUX_DATA(PD9_DATA, PD9MD_000, PD9_IN, PD9_OUT), | ||
435 | PINMUX_DATA(D25_MARK, PD9MD_001), | ||
436 | PINMUX_DATA(PINT1_PD_MARK, PD9MD_010), | ||
437 | PINMUX_DATA(DACK0_PD_MARK, PD9MD_100), | ||
438 | PINMUX_DATA(TIOC3B_MARK, PD9MD_101), | ||
439 | |||
440 | PINMUX_DATA(PD8_DATA, PD8MD_000, PD8_IN, PD8_OUT), | ||
441 | PINMUX_DATA(D24_MARK, PD8MD_001), | ||
442 | PINMUX_DATA(PINT0_PD_MARK, PD8MD_010), | ||
443 | PINMUX_DATA(DREQ0_PD_MARK, PD8MD_100), | ||
444 | PINMUX_DATA(TIOC3A_MARK, PD8MD_101), | ||
445 | |||
446 | PINMUX_DATA(PD7_DATA, PD7MD_000, PD7_IN, PD7_OUT), | ||
447 | PINMUX_DATA(D23_MARK, PD7MD_001), | ||
448 | PINMUX_DATA(IRQ7_PD_MARK, PD7MD_010), | ||
449 | PINMUX_DATA(SCS1_PD_MARK, PD7MD_011), | ||
450 | PINMUX_DATA(TCLKD_PD_MARK, PD7MD_100), | ||
451 | PINMUX_DATA(TIOC2B_MARK, PD7MD_101), | ||
452 | |||
453 | PINMUX_DATA(PD6_DATA, PD6MD_000, PD6_IN, PD6_OUT), | ||
454 | PINMUX_DATA(D22_MARK, PD6MD_001), | ||
455 | PINMUX_DATA(IRQ6_PD_MARK, PD6MD_010), | ||
456 | PINMUX_DATA(SSO1_PD_MARK, PD6MD_011), | ||
457 | PINMUX_DATA(TCLKC_PD_MARK, PD6MD_100), | ||
458 | PINMUX_DATA(TIOC2A_MARK, PD6MD_101), | ||
459 | |||
460 | PINMUX_DATA(PD5_DATA, PD5MD_000, PD5_IN, PD5_OUT), | ||
461 | PINMUX_DATA(D21_MARK, PD5MD_001), | ||
462 | PINMUX_DATA(IRQ5_PD_MARK, PD5MD_010), | ||
463 | PINMUX_DATA(SSI1_PD_MARK, PD5MD_011), | ||
464 | PINMUX_DATA(TCLKB_PD_MARK, PD5MD_100), | ||
465 | PINMUX_DATA(TIOC1B_MARK, PD5MD_101), | ||
466 | |||
467 | PINMUX_DATA(PD4_DATA, PD4MD_000, PD4_IN, PD4_OUT), | ||
468 | PINMUX_DATA(D20_MARK, PD4MD_001), | ||
469 | PINMUX_DATA(IRQ4_PD_MARK, PD4MD_010), | ||
470 | PINMUX_DATA(SSCK1_PD_MARK, PD4MD_011), | ||
471 | PINMUX_DATA(TCLKA_PD_MARK, PD4MD_100), | ||
472 | PINMUX_DATA(TIOC1A_MARK, PD4MD_101), | ||
473 | |||
474 | PINMUX_DATA(PD3_DATA, PD3MD_000, PD3_IN, PD3_OUT), | ||
475 | PINMUX_DATA(D19_MARK, PD3MD_001), | ||
476 | PINMUX_DATA(IRQ3_PD_MARK, PD3MD_010), | ||
477 | PINMUX_DATA(SCS0_PD_MARK, PD3MD_011), | ||
478 | PINMUX_DATA(DACK3_MARK, PD3MD_100), | ||
479 | PINMUX_DATA(TIOC0D_MARK, PD3MD_101), | ||
480 | |||
481 | PINMUX_DATA(PD2_DATA, PD2MD_000, PD2_IN, PD2_OUT), | ||
482 | PINMUX_DATA(D18_MARK, PD2MD_001), | ||
483 | PINMUX_DATA(IRQ2_PD_MARK, PD2MD_010), | ||
484 | PINMUX_DATA(SSO0_PD_MARK, PD2MD_011), | ||
485 | PINMUX_DATA(DREQ3_MARK, PD2MD_100), | ||
486 | PINMUX_DATA(TIOC0C_MARK, PD2MD_101), | ||
487 | |||
488 | PINMUX_DATA(PD1_DATA, PD1MD_000, PD1_IN, PD1_OUT), | ||
489 | PINMUX_DATA(D17_MARK, PD1MD_001), | ||
490 | PINMUX_DATA(IRQ1_PD_MARK, PD1MD_010), | ||
491 | PINMUX_DATA(SSI0_PD_MARK, PD1MD_011), | ||
492 | PINMUX_DATA(DACK2_MARK, PD1MD_100), | ||
493 | PINMUX_DATA(TIOC0B_MARK, PD1MD_101), | ||
494 | |||
495 | PINMUX_DATA(PD0_DATA, PD0MD_000, PD0_IN, PD0_OUT), | ||
496 | PINMUX_DATA(D16_MARK, PD0MD_001), | ||
497 | PINMUX_DATA(IRQ0_PD_MARK, PD0MD_010), | ||
498 | PINMUX_DATA(SSCK0_PD_MARK, PD0MD_011), | ||
499 | PINMUX_DATA(DREQ2_MARK, PD0MD_100), | ||
500 | PINMUX_DATA(TIOC0A_MARK, PD0MD_101), | ||
501 | |||
502 | /* PE */ | ||
503 | PINMUX_DATA(PE15_DATA, PE15MD_00, PE15_IN, PE15_OUT), | ||
504 | PINMUX_DATA(IOIS16_MARK, PE15MD_01), | ||
505 | PINMUX_DATA(RTS3_MARK, PE15MD_11), | ||
506 | |||
507 | PINMUX_DATA(PE14_DATA, PE14MD_00, PE14_IN, PE14_OUT), | ||
508 | PINMUX_DATA(CS1_MARK, PE14MD_01), | ||
509 | PINMUX_DATA(CTS3_MARK, PE14MD_11), | ||
510 | |||
511 | PINMUX_DATA(PE13_DATA, PE13MD_00, PE13_IN, PE13_OUT), | ||
512 | PINMUX_DATA(TXD3_MARK, PE13MD_11), | ||
513 | |||
514 | PINMUX_DATA(PE12_DATA, PE12MD_00, PE12_IN, PE12_OUT), | ||
515 | PINMUX_DATA(RXD3_MARK, PE12MD_11), | ||
516 | |||
517 | PINMUX_DATA(PE11_DATA, PE11MD_000, PE11_IN, PE11_OUT), | ||
518 | PINMUX_DATA(CS6_CE1B_MARK, PE11MD_001), | ||
519 | PINMUX_DATA(IRQ7_PE_MARK, PE11MD_010), | ||
520 | PINMUX_DATA(TEND1_PE_MARK, PE11MD_100), | ||
521 | |||
522 | PINMUX_DATA(PE10_DATA, PE10MD_000, PE10_IN, PE10_OUT), | ||
523 | PINMUX_DATA(CE2B_MARK, PE10MD_001), | ||
524 | PINMUX_DATA(IRQ6_PE_MARK, PE10MD_010), | ||
525 | PINMUX_DATA(TEND0_PE_MARK, PE10MD_100), | ||
526 | |||
527 | PINMUX_DATA(PE9_DATA, PE9MD_00, PE9_IN, PE9_OUT), | ||
528 | PINMUX_DATA(CS5_CE1A_MARK, PE9MD_01), | ||
529 | PINMUX_DATA(IRQ5_PE_MARK, PE9MD_10), | ||
530 | PINMUX_DATA(SCK3_MARK, PE9MD_11), | ||
531 | |||
532 | PINMUX_DATA(PE8_DATA, PE8MD_00, PE8_IN, PE8_OUT), | ||
533 | PINMUX_DATA(CE2A_MARK, PE8MD_01), | ||
534 | PINMUX_DATA(IRQ4_PE_MARK, PE8MD_10), | ||
535 | PINMUX_DATA(SCK2_MARK, PE8MD_11), | ||
536 | |||
537 | PINMUX_DATA(PE7_DATA, PE7MD_000, PE7_IN, PE7_OUT), | ||
538 | PINMUX_DATA(FRAME_MARK, PE7MD_001), | ||
539 | PINMUX_DATA(IRQ3_PE_MARK, PE7MD_010), | ||
540 | PINMUX_DATA(TXD2_MARK, PE7MD_011), | ||
541 | PINMUX_DATA(DACK1_PE_MARK, PE7MD_100), | ||
542 | |||
543 | PINMUX_DATA(PE6_DATA, PE6MD_000, PE6_IN, PE6_OUT), | ||
544 | PINMUX_DATA(A25_MARK, PE6MD_001), | ||
545 | PINMUX_DATA(IRQ2_PE_MARK, PE6MD_010), | ||
546 | PINMUX_DATA(RXD2_MARK, PE6MD_011), | ||
547 | PINMUX_DATA(DREQ1_PE_MARK, PE6MD_100), | ||
548 | |||
549 | PINMUX_DATA(PE5_DATA, PE5MD_000, PE5_IN, PE5_OUT), | ||
550 | PINMUX_DATA(A24_MARK, PE5MD_001), | ||
551 | PINMUX_DATA(IRQ1_PE_MARK, PE5MD_010), | ||
552 | PINMUX_DATA(TXD1_MARK, PE5MD_011), | ||
553 | PINMUX_DATA(DACK0_PE_MARK, PE5MD_100), | ||
554 | |||
555 | PINMUX_DATA(PE4_DATA, PE4MD_000, PE4_IN, PE4_OUT), | ||
556 | PINMUX_DATA(A23_MARK, PE4MD_001), | ||
557 | PINMUX_DATA(IRQ0_PE_MARK, PE4MD_010), | ||
558 | PINMUX_DATA(RXD1_MARK, PE4MD_011), | ||
559 | PINMUX_DATA(DREQ0_PE_MARK, PE4MD_100), | ||
560 | |||
561 | PINMUX_DATA(PE3_DATA, PE3MD_00, PE3_IN, PE3_OUT), | ||
562 | PINMUX_DATA(A22_MARK, PE3MD_01), | ||
563 | PINMUX_DATA(SCK1_MARK, PE3MD_11), | ||
564 | |||
565 | PINMUX_DATA(PE2_DATA, PE2MD_00, PE2_IN, PE2_OUT), | ||
566 | PINMUX_DATA(A21_MARK, PE2MD_01), | ||
567 | PINMUX_DATA(SCK0_MARK, PE2MD_11), | ||
568 | |||
569 | PINMUX_DATA(PE1_DATA, PE1MD_00, PE1_IN, PE1_OUT), | ||
570 | PINMUX_DATA(CS4_MARK, PE1MD_01), | ||
571 | PINMUX_DATA(MRES_MARK, PE1MD_10), | ||
572 | PINMUX_DATA(TXD0_MARK, PE1MD_11), | ||
573 | |||
574 | PINMUX_DATA(PE0_DATA, PE0MD_000, PE0_IN, PE0_OUT), | ||
575 | PINMUX_DATA(BS_MARK, PE0MD_001), | ||
576 | PINMUX_DATA(RXD0_MARK, PE0MD_011), | ||
577 | PINMUX_DATA(ADTRG_PE_MARK, PE0MD_100), | ||
578 | |||
579 | /* PF */ | ||
580 | PINMUX_DATA(PF30_DATA, PF30MD_0, PF30_IN, PF30_OUT), | ||
581 | PINMUX_DATA(AUDIO_CLK_MARK, PF30MD_1), | ||
582 | |||
583 | PINMUX_DATA(PF29_DATA, PF29MD_0, PF29_IN, PF29_OUT), | ||
584 | PINMUX_DATA(SSIDATA3_MARK, PF29MD_1), | ||
585 | |||
586 | PINMUX_DATA(PF28_DATA, PF28MD_0, PF28_IN, PF28_OUT), | ||
587 | PINMUX_DATA(SSIWS3_MARK, PF28MD_1), | ||
588 | |||
589 | PINMUX_DATA(PF27_DATA, PF27MD_0, PF27_IN, PF27_OUT), | ||
590 | PINMUX_DATA(SSISCK3_MARK, PF27MD_1), | ||
591 | |||
592 | PINMUX_DATA(PF26_DATA, PF26MD_0, PF26_IN, PF26_OUT), | ||
593 | PINMUX_DATA(SSIDATA2_MARK, PF26MD_1), | ||
594 | |||
595 | PINMUX_DATA(PF25_DATA, PF25MD_0, PF25_IN, PF25_OUT), | ||
596 | PINMUX_DATA(SSIWS2_MARK, PF25MD_1), | ||
597 | |||
598 | PINMUX_DATA(PF24_DATA, PF24MD_0, PF24_IN, PF24_OUT), | ||
599 | PINMUX_DATA(SSISCK2_MARK, PF24MD_1), | ||
600 | |||
601 | PINMUX_DATA(PF23_DATA, PF23MD_00, PF23_IN, PF23_OUT), | ||
602 | PINMUX_DATA(SSIDATA1_MARK, PF23MD_01), | ||
603 | PINMUX_DATA(LCD_VEPWC_MARK, PF23MD_10), | ||
604 | |||
605 | PINMUX_DATA(PF22_DATA, PF22MD_00, PF22_IN, PF22_OUT), | ||
606 | PINMUX_DATA(SSIWS1_MARK, PF22MD_01), | ||
607 | PINMUX_DATA(LCD_VCPWC_MARK, PF22MD_10), | ||
608 | |||
609 | PINMUX_DATA(PF21_DATA, PF21MD_00, PF21_IN, PF21_OUT), | ||
610 | PINMUX_DATA(SSISCK1_MARK, PF21MD_01), | ||
611 | PINMUX_DATA(LCD_CLK_MARK, PF21MD_10), | ||
612 | |||
613 | PINMUX_DATA(PF20_DATA, PF20MD_00, PF20_IN, PF20_OUT), | ||
614 | PINMUX_DATA(SSIDATA0_MARK, PF20MD_01), | ||
615 | PINMUX_DATA(LCD_FLM_MARK, PF20MD_10), | ||
616 | |||
617 | PINMUX_DATA(PF19_DATA, PF19MD_00, PF19_IN, PF19_OUT), | ||
618 | PINMUX_DATA(SSIWS0_MARK, PF19MD_01), | ||
619 | PINMUX_DATA(LCD_M_DISP_MARK, PF19MD_10), | ||
620 | |||
621 | PINMUX_DATA(PF18_DATA, PF18MD_00, PF18_IN, PF18_OUT), | ||
622 | PINMUX_DATA(SSISCK0_MARK, PF18MD_01), | ||
623 | PINMUX_DATA(LCD_CL2_MARK, PF18MD_10), | ||
624 | |||
625 | PINMUX_DATA(PF17_DATA, PF17MD_00, PF17_IN, PF17_OUT), | ||
626 | PINMUX_DATA(FCE_MARK, PF17MD_01), | ||
627 | PINMUX_DATA(LCD_CL1_MARK, PF17MD_10), | ||
628 | |||
629 | PINMUX_DATA(PF16_DATA, PF16MD_00, PF16_IN, PF16_OUT), | ||
630 | PINMUX_DATA(FRB_MARK, PF16MD_01), | ||
631 | PINMUX_DATA(LCD_DON_MARK, PF16MD_10), | ||
632 | |||
633 | PINMUX_DATA(PF15_DATA, PF15MD_00, PF15_IN, PF15_OUT), | ||
634 | PINMUX_DATA(NAF7_MARK, PF15MD_01), | ||
635 | PINMUX_DATA(LCD_DATA15_MARK, PF15MD_10), | ||
636 | |||
637 | PINMUX_DATA(PF14_DATA, PF14MD_00, PF14_IN, PF14_OUT), | ||
638 | PINMUX_DATA(NAF6_MARK, PF14MD_01), | ||
639 | PINMUX_DATA(LCD_DATA14_MARK, PF14MD_10), | ||
640 | |||
641 | PINMUX_DATA(PF13_DATA, PF13MD_00, PF13_IN, PF13_OUT), | ||
642 | PINMUX_DATA(NAF5_MARK, PF13MD_01), | ||
643 | PINMUX_DATA(LCD_DATA13_MARK, PF13MD_10), | ||
644 | |||
645 | PINMUX_DATA(PF12_DATA, PF12MD_00, PF12_IN, PF12_OUT), | ||
646 | PINMUX_DATA(NAF4_MARK, PF12MD_01), | ||
647 | PINMUX_DATA(LCD_DATA12_MARK, PF12MD_10), | ||
648 | |||
649 | PINMUX_DATA(PF11_DATA, PF11MD_00, PF11_IN, PF11_OUT), | ||
650 | PINMUX_DATA(NAF3_MARK, PF11MD_01), | ||
651 | PINMUX_DATA(LCD_DATA11_MARK, PF11MD_10), | ||
652 | |||
653 | PINMUX_DATA(PF10_DATA, PF10MD_00, PF10_IN, PF10_OUT), | ||
654 | PINMUX_DATA(NAF2_MARK, PF10MD_01), | ||
655 | PINMUX_DATA(LCD_DATA10_MARK, PF10MD_10), | ||
656 | |||
657 | PINMUX_DATA(PF9_DATA, PF9MD_00, PF9_IN, PF9_OUT), | ||
658 | PINMUX_DATA(NAF1_MARK, PF9MD_01), | ||
659 | PINMUX_DATA(LCD_DATA9_MARK, PF9MD_10), | ||
660 | |||
661 | PINMUX_DATA(PF8_DATA, PF8MD_00, PF8_IN, PF8_OUT), | ||
662 | PINMUX_DATA(NAF0_MARK, PF8MD_01), | ||
663 | PINMUX_DATA(LCD_DATA8_MARK, PF8MD_10), | ||
664 | |||
665 | PINMUX_DATA(PF7_DATA, PF7MD_00, PF7_IN, PF7_OUT), | ||
666 | PINMUX_DATA(FSC_MARK, PF7MD_01), | ||
667 | PINMUX_DATA(LCD_DATA7_MARK, PF7MD_10), | ||
668 | PINMUX_DATA(SCS1_PF_MARK, PF7MD_11), | ||
669 | |||
670 | PINMUX_DATA(PF6_DATA, PF6MD_00, PF6_IN, PF6_OUT), | ||
671 | PINMUX_DATA(FOE_MARK, PF6MD_01), | ||
672 | PINMUX_DATA(LCD_DATA6_MARK, PF6MD_10), | ||
673 | PINMUX_DATA(SSO1_PF_MARK, PF6MD_11), | ||
674 | |||
675 | PINMUX_DATA(PF5_DATA, PF5MD_00, PF5_IN, PF5_OUT), | ||
676 | PINMUX_DATA(FCDE_MARK, PF5MD_01), | ||
677 | PINMUX_DATA(LCD_DATA5_MARK, PF5MD_10), | ||
678 | PINMUX_DATA(SSI1_PF_MARK, PF5MD_11), | ||
679 | |||
680 | PINMUX_DATA(PF4_DATA, PF4MD_00, PF4_IN, PF4_OUT), | ||
681 | PINMUX_DATA(FWE_MARK, PF4MD_01), | ||
682 | PINMUX_DATA(LCD_DATA4_MARK, PF4MD_10), | ||
683 | PINMUX_DATA(SSCK1_PF_MARK, PF4MD_11), | ||
684 | |||
685 | PINMUX_DATA(PF3_DATA, PF3MD_00, PF3_IN, PF3_OUT), | ||
686 | PINMUX_DATA(TCLKD_PF_MARK, PF3MD_01), | ||
687 | PINMUX_DATA(LCD_DATA3_MARK, PF3MD_10), | ||
688 | PINMUX_DATA(SCS0_PF_MARK, PF3MD_11), | ||
689 | |||
690 | PINMUX_DATA(PF2_DATA, PF2MD_00, PF2_IN, PF2_OUT), | ||
691 | PINMUX_DATA(TCLKC_PF_MARK, PF2MD_01), | ||
692 | PINMUX_DATA(LCD_DATA2_MARK, PF2MD_10), | ||
693 | PINMUX_DATA(SSO0_PF_MARK, PF2MD_11), | ||
694 | |||
695 | PINMUX_DATA(PF1_DATA, PF1MD_00, PF1_IN, PF1_OUT), | ||
696 | PINMUX_DATA(TCLKB_PF_MARK, PF1MD_01), | ||
697 | PINMUX_DATA(LCD_DATA1_MARK, PF1MD_10), | ||
698 | PINMUX_DATA(SSI0_PF_MARK, PF1MD_11), | ||
699 | |||
700 | PINMUX_DATA(PF0_DATA, PF0MD_00, PF0_IN, PF0_OUT), | ||
701 | PINMUX_DATA(TCLKA_PF_MARK, PF0MD_01), | ||
702 | PINMUX_DATA(LCD_DATA0_MARK, PF0MD_10), | ||
703 | PINMUX_DATA(SSCK0_PF_MARK, PF0MD_11), | ||
704 | }; | ||
705 | |||
706 | static struct pinmux_gpio pinmux_gpios[] = { | ||
707 | |||
708 | /* PA */ | ||
709 | PINMUX_GPIO(GPIO_PA7, PA7_DATA), | ||
710 | PINMUX_GPIO(GPIO_PA6, PA6_DATA), | ||
711 | PINMUX_GPIO(GPIO_PA5, PA5_DATA), | ||
712 | PINMUX_GPIO(GPIO_PA4, PA4_DATA), | ||
713 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
714 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
715 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
716 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
717 | |||
718 | /* PB */ | ||
719 | PINMUX_GPIO(GPIO_PB12, PB12_DATA), | ||
720 | PINMUX_GPIO(GPIO_PB11, PB11_DATA), | ||
721 | PINMUX_GPIO(GPIO_PB10, PB10_DATA), | ||
722 | PINMUX_GPIO(GPIO_PB9, PB9_DATA), | ||
723 | PINMUX_GPIO(GPIO_PB8, PB8_DATA), | ||
724 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
725 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
726 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
727 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
728 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
729 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
730 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
731 | PINMUX_GPIO(GPIO_PB0, PB0_DATA), | ||
732 | |||
733 | /* PC */ | ||
734 | PINMUX_GPIO(GPIO_PC14, PC14_DATA), | ||
735 | PINMUX_GPIO(GPIO_PC13, PC13_DATA), | ||
736 | PINMUX_GPIO(GPIO_PC12, PC12_DATA), | ||
737 | PINMUX_GPIO(GPIO_PC11, PC11_DATA), | ||
738 | PINMUX_GPIO(GPIO_PC10, PC10_DATA), | ||
739 | PINMUX_GPIO(GPIO_PC9, PC9_DATA), | ||
740 | PINMUX_GPIO(GPIO_PC8, PC8_DATA), | ||
741 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
742 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
743 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
744 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
745 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
746 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
747 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
748 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
749 | |||
750 | /* PD */ | ||
751 | PINMUX_GPIO(GPIO_PD15, PD15_DATA), | ||
752 | PINMUX_GPIO(GPIO_PD14, PD14_DATA), | ||
753 | PINMUX_GPIO(GPIO_PD13, PD13_DATA), | ||
754 | PINMUX_GPIO(GPIO_PD12, PD12_DATA), | ||
755 | PINMUX_GPIO(GPIO_PD11, PD11_DATA), | ||
756 | PINMUX_GPIO(GPIO_PD10, PD10_DATA), | ||
757 | PINMUX_GPIO(GPIO_PD9, PD9_DATA), | ||
758 | PINMUX_GPIO(GPIO_PD8, PD8_DATA), | ||
759 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
760 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
761 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
762 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
763 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
764 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
765 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
766 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
767 | |||
768 | /* PE */ | ||
769 | PINMUX_GPIO(GPIO_PE15, PE15_DATA), | ||
770 | PINMUX_GPIO(GPIO_PE14, PE14_DATA), | ||
771 | PINMUX_GPIO(GPIO_PE13, PE13_DATA), | ||
772 | PINMUX_GPIO(GPIO_PE12, PE12_DATA), | ||
773 | PINMUX_GPIO(GPIO_PE11, PE11_DATA), | ||
774 | PINMUX_GPIO(GPIO_PE10, PE10_DATA), | ||
775 | PINMUX_GPIO(GPIO_PE9, PE9_DATA), | ||
776 | PINMUX_GPIO(GPIO_PE8, PE8_DATA), | ||
777 | PINMUX_GPIO(GPIO_PE7, PE7_DATA), | ||
778 | PINMUX_GPIO(GPIO_PE6, PE6_DATA), | ||
779 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
780 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
781 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
782 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
783 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
784 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
785 | |||
786 | /* PF */ | ||
787 | PINMUX_GPIO(GPIO_PF30, PF30_DATA), | ||
788 | PINMUX_GPIO(GPIO_PF29, PF29_DATA), | ||
789 | PINMUX_GPIO(GPIO_PF28, PF28_DATA), | ||
790 | PINMUX_GPIO(GPIO_PF27, PF27_DATA), | ||
791 | PINMUX_GPIO(GPIO_PF26, PF26_DATA), | ||
792 | PINMUX_GPIO(GPIO_PF25, PF25_DATA), | ||
793 | PINMUX_GPIO(GPIO_PF24, PF24_DATA), | ||
794 | PINMUX_GPIO(GPIO_PF23, PF23_DATA), | ||
795 | PINMUX_GPIO(GPIO_PF22, PF22_DATA), | ||
796 | PINMUX_GPIO(GPIO_PF21, PF21_DATA), | ||
797 | PINMUX_GPIO(GPIO_PF20, PF20_DATA), | ||
798 | PINMUX_GPIO(GPIO_PF19, PF19_DATA), | ||
799 | PINMUX_GPIO(GPIO_PF18, PF18_DATA), | ||
800 | PINMUX_GPIO(GPIO_PF17, PF17_DATA), | ||
801 | PINMUX_GPIO(GPIO_PF16, PF16_DATA), | ||
802 | PINMUX_GPIO(GPIO_PF15, PF15_DATA), | ||
803 | PINMUX_GPIO(GPIO_PF14, PF14_DATA), | ||
804 | PINMUX_GPIO(GPIO_PF13, PF13_DATA), | ||
805 | PINMUX_GPIO(GPIO_PF12, PF12_DATA), | ||
806 | PINMUX_GPIO(GPIO_PF11, PF11_DATA), | ||
807 | PINMUX_GPIO(GPIO_PF10, PF10_DATA), | ||
808 | PINMUX_GPIO(GPIO_PF9, PF9_DATA), | ||
809 | PINMUX_GPIO(GPIO_PF8, PF8_DATA), | ||
810 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
811 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
812 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
813 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
814 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
815 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
816 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
817 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
818 | |||
819 | /* INTC */ | ||
820 | PINMUX_GPIO(GPIO_FN_PINT7_PB, PINT7_PB_MARK), | ||
821 | PINMUX_GPIO(GPIO_FN_PINT6_PB, PINT6_PB_MARK), | ||
822 | PINMUX_GPIO(GPIO_FN_PINT5_PB, PINT5_PB_MARK), | ||
823 | PINMUX_GPIO(GPIO_FN_PINT4_PB, PINT4_PB_MARK), | ||
824 | PINMUX_GPIO(GPIO_FN_PINT3_PB, PINT3_PB_MARK), | ||
825 | PINMUX_GPIO(GPIO_FN_PINT2_PB, PINT2_PB_MARK), | ||
826 | PINMUX_GPIO(GPIO_FN_PINT1_PB, PINT1_PB_MARK), | ||
827 | PINMUX_GPIO(GPIO_FN_PINT0_PB, PINT0_PB_MARK), | ||
828 | PINMUX_GPIO(GPIO_FN_PINT7_PD, PINT7_PD_MARK), | ||
829 | PINMUX_GPIO(GPIO_FN_PINT6_PD, PINT6_PD_MARK), | ||
830 | PINMUX_GPIO(GPIO_FN_PINT5_PD, PINT5_PD_MARK), | ||
831 | PINMUX_GPIO(GPIO_FN_PINT4_PD, PINT4_PD_MARK), | ||
832 | PINMUX_GPIO(GPIO_FN_PINT3_PD, PINT3_PD_MARK), | ||
833 | PINMUX_GPIO(GPIO_FN_PINT2_PD, PINT2_PD_MARK), | ||
834 | PINMUX_GPIO(GPIO_FN_PINT1_PD, PINT1_PD_MARK), | ||
835 | PINMUX_GPIO(GPIO_FN_PINT0_PD, PINT0_PD_MARK), | ||
836 | PINMUX_GPIO(GPIO_FN_IRQ7_PB, IRQ7_PB_MARK), | ||
837 | PINMUX_GPIO(GPIO_FN_IRQ6_PB, IRQ6_PB_MARK), | ||
838 | PINMUX_GPIO(GPIO_FN_IRQ5_PB, IRQ5_PB_MARK), | ||
839 | PINMUX_GPIO(GPIO_FN_IRQ4_PB, IRQ4_PB_MARK), | ||
840 | PINMUX_GPIO(GPIO_FN_IRQ3_PB, IRQ3_PB_MARK), | ||
841 | PINMUX_GPIO(GPIO_FN_IRQ2_PB, IRQ2_PB_MARK), | ||
842 | PINMUX_GPIO(GPIO_FN_IRQ1_PB, IRQ1_PB_MARK), | ||
843 | PINMUX_GPIO(GPIO_FN_IRQ0_PB, IRQ0_PB_MARK), | ||
844 | PINMUX_GPIO(GPIO_FN_IRQ7_PD, IRQ7_PD_MARK), | ||
845 | PINMUX_GPIO(GPIO_FN_IRQ6_PD, IRQ6_PD_MARK), | ||
846 | PINMUX_GPIO(GPIO_FN_IRQ5_PD, IRQ5_PD_MARK), | ||
847 | PINMUX_GPIO(GPIO_FN_IRQ4_PD, IRQ4_PD_MARK), | ||
848 | PINMUX_GPIO(GPIO_FN_IRQ3_PD, IRQ3_PD_MARK), | ||
849 | PINMUX_GPIO(GPIO_FN_IRQ2_PD, IRQ2_PD_MARK), | ||
850 | PINMUX_GPIO(GPIO_FN_IRQ1_PD, IRQ1_PD_MARK), | ||
851 | PINMUX_GPIO(GPIO_FN_IRQ0_PD, IRQ0_PD_MARK), | ||
852 | PINMUX_GPIO(GPIO_FN_IRQ7_PE, IRQ7_PE_MARK), | ||
853 | PINMUX_GPIO(GPIO_FN_IRQ6_PE, IRQ6_PE_MARK), | ||
854 | PINMUX_GPIO(GPIO_FN_IRQ5_PE, IRQ5_PE_MARK), | ||
855 | PINMUX_GPIO(GPIO_FN_IRQ4_PE, IRQ4_PE_MARK), | ||
856 | PINMUX_GPIO(GPIO_FN_IRQ3_PE, IRQ3_PE_MARK), | ||
857 | PINMUX_GPIO(GPIO_FN_IRQ2_PE, IRQ2_PE_MARK), | ||
858 | PINMUX_GPIO(GPIO_FN_IRQ1_PE, IRQ1_PE_MARK), | ||
859 | PINMUX_GPIO(GPIO_FN_IRQ0_PE, IRQ0_PE_MARK), | ||
860 | |||
861 | PINMUX_GPIO(GPIO_FN_WDTOVF, WDTOVF_MARK), | ||
862 | PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), | ||
863 | PINMUX_GPIO(GPIO_FN_REFOUT, REFOUT_MARK), | ||
864 | PINMUX_GPIO(GPIO_FN_IRQOUT_REFOUT, IRQOUT_REFOUT_MARK), | ||
865 | PINMUX_GPIO(GPIO_FN_UBCTRG, UBCTRG_MARK), | ||
866 | |||
867 | /* CAN */ | ||
868 | PINMUX_GPIO(GPIO_FN_CTX1, CTX1_MARK), | ||
869 | PINMUX_GPIO(GPIO_FN_CRX1, CRX1_MARK), | ||
870 | PINMUX_GPIO(GPIO_FN_CTX0, CTX0_MARK), | ||
871 | PINMUX_GPIO(GPIO_FN_CTX0_CTX1, CTX0_CTX1_MARK), | ||
872 | PINMUX_GPIO(GPIO_FN_CRX0, CRX0_MARK), | ||
873 | PINMUX_GPIO(GPIO_FN_CRX0_CRX1, CRX0_CRX1_MARK), | ||
874 | |||
875 | /* IIC3 */ | ||
876 | PINMUX_GPIO(GPIO_FN_SDA3, SDA3_MARK), | ||
877 | PINMUX_GPIO(GPIO_FN_SCL3, SCL3_MARK), | ||
878 | PINMUX_GPIO(GPIO_FN_SDA2, SDA2_MARK), | ||
879 | PINMUX_GPIO(GPIO_FN_SCL2, SCL2_MARK), | ||
880 | PINMUX_GPIO(GPIO_FN_SDA1, SDA1_MARK), | ||
881 | PINMUX_GPIO(GPIO_FN_SCL1, SCL1_MARK), | ||
882 | PINMUX_GPIO(GPIO_FN_SDA0, SDA0_MARK), | ||
883 | PINMUX_GPIO(GPIO_FN_SCL0, SCL0_MARK), | ||
884 | |||
885 | /* DMAC */ | ||
886 | PINMUX_GPIO(GPIO_FN_TEND0_PD, TEND0_PD_MARK), | ||
887 | PINMUX_GPIO(GPIO_FN_TEND0_PE, TEND0_PE_MARK), | ||
888 | PINMUX_GPIO(GPIO_FN_DACK0_PD, DACK0_PD_MARK), | ||
889 | PINMUX_GPIO(GPIO_FN_DACK0_PE, DACK0_PE_MARK), | ||
890 | PINMUX_GPIO(GPIO_FN_DREQ0_PD, DREQ0_PD_MARK), | ||
891 | PINMUX_GPIO(GPIO_FN_DREQ0_PE, DREQ0_PE_MARK), | ||
892 | PINMUX_GPIO(GPIO_FN_TEND1_PD, TEND1_PD_MARK), | ||
893 | PINMUX_GPIO(GPIO_FN_TEND1_PE, TEND1_PE_MARK), | ||
894 | PINMUX_GPIO(GPIO_FN_DACK1_PD, DACK1_PD_MARK), | ||
895 | PINMUX_GPIO(GPIO_FN_DACK1_PE, DACK1_PE_MARK), | ||
896 | PINMUX_GPIO(GPIO_FN_DREQ1_PD, DREQ1_PD_MARK), | ||
897 | PINMUX_GPIO(GPIO_FN_DREQ1_PE, DREQ1_PE_MARK), | ||
898 | PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), | ||
899 | PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), | ||
900 | PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), | ||
901 | PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), | ||
902 | |||
903 | /* ADC */ | ||
904 | PINMUX_GPIO(GPIO_FN_ADTRG_PD, ADTRG_PD_MARK), | ||
905 | PINMUX_GPIO(GPIO_FN_ADTRG_PE, ADTRG_PE_MARK), | ||
906 | |||
907 | /* BSC */ | ||
908 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
909 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
910 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
911 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
912 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
913 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
914 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
915 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
916 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
917 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
918 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
919 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
920 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
921 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
922 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
923 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
924 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
925 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
926 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
927 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
928 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
929 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
930 | PINMUX_GPIO(GPIO_FN_MRES, MRES_MARK), | ||
931 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
932 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
933 | PINMUX_GPIO(GPIO_FN_CS1, CS1_MARK), | ||
934 | PINMUX_GPIO(GPIO_FN_CS6_CE1B, CS6_CE1B_MARK), | ||
935 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
936 | PINMUX_GPIO(GPIO_FN_CS5_CE1A, CS5_CE1A_MARK), | ||
937 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
938 | PINMUX_GPIO(GPIO_FN_FRAME, FRAME_MARK), | ||
939 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
940 | PINMUX_GPIO(GPIO_FN_RDWR, RDWR_MARK), | ||
941 | PINMUX_GPIO(GPIO_FN_CKE, CKE_MARK), | ||
942 | PINMUX_GPIO(GPIO_FN_CASU, CASU_MARK), | ||
943 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
944 | PINMUX_GPIO(GPIO_FN_RASU, RASU_MARK), | ||
945 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
946 | PINMUX_GPIO(GPIO_FN_CASL, CASL_MARK), | ||
947 | PINMUX_GPIO(GPIO_FN_RASL, RASL_MARK), | ||
948 | PINMUX_GPIO(GPIO_FN_WE3_DQMUU_AH_ICIO_WR, WE3_DQMUU_AH_ICIO_WR_MARK), | ||
949 | PINMUX_GPIO(GPIO_FN_WE2_DQMUL_ICIORD, WE2_DQMUL_ICIORD_MARK), | ||
950 | PINMUX_GPIO(GPIO_FN_WE1_DQMLU_WE, WE1_DQMLU_WE_MARK), | ||
951 | PINMUX_GPIO(GPIO_FN_WE0_DQMLL, WE0_DQMLL_MARK), | ||
952 | PINMUX_GPIO(GPIO_FN_CS3, CS3_MARK), | ||
953 | PINMUX_GPIO(GPIO_FN_CS2, CS2_MARK), | ||
954 | PINMUX_GPIO(GPIO_FN_A1, A1_MARK), | ||
955 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
956 | PINMUX_GPIO(GPIO_FN_CS7, CS7_MARK), | ||
957 | |||
958 | /* TMU */ | ||
959 | PINMUX_GPIO(GPIO_FN_TIOC4D, TIOC4D_MARK), | ||
960 | PINMUX_GPIO(GPIO_FN_TIOC4C, TIOC4C_MARK), | ||
961 | PINMUX_GPIO(GPIO_FN_TIOC4B, TIOC4B_MARK), | ||
962 | PINMUX_GPIO(GPIO_FN_TIOC4A, TIOC4A_MARK), | ||
963 | PINMUX_GPIO(GPIO_FN_TIOC3D, TIOC3D_MARK), | ||
964 | PINMUX_GPIO(GPIO_FN_TIOC3C, TIOC3C_MARK), | ||
965 | PINMUX_GPIO(GPIO_FN_TIOC3B, TIOC3B_MARK), | ||
966 | PINMUX_GPIO(GPIO_FN_TIOC3A, TIOC3A_MARK), | ||
967 | PINMUX_GPIO(GPIO_FN_TIOC2B, TIOC2B_MARK), | ||
968 | PINMUX_GPIO(GPIO_FN_TIOC1B, TIOC1B_MARK), | ||
969 | PINMUX_GPIO(GPIO_FN_TIOC2A, TIOC2A_MARK), | ||
970 | PINMUX_GPIO(GPIO_FN_TIOC1A, TIOC1A_MARK), | ||
971 | PINMUX_GPIO(GPIO_FN_TIOC0D, TIOC0D_MARK), | ||
972 | PINMUX_GPIO(GPIO_FN_TIOC0C, TIOC0C_MARK), | ||
973 | PINMUX_GPIO(GPIO_FN_TIOC0B, TIOC0B_MARK), | ||
974 | PINMUX_GPIO(GPIO_FN_TIOC0A, TIOC0A_MARK), | ||
975 | PINMUX_GPIO(GPIO_FN_TCLKD_PD, TCLKD_PD_MARK), | ||
976 | PINMUX_GPIO(GPIO_FN_TCLKC_PD, TCLKC_PD_MARK), | ||
977 | PINMUX_GPIO(GPIO_FN_TCLKB_PD, TCLKB_PD_MARK), | ||
978 | PINMUX_GPIO(GPIO_FN_TCLKA_PD, TCLKA_PD_MARK), | ||
979 | PINMUX_GPIO(GPIO_FN_TCLKD_PF, TCLKD_PF_MARK), | ||
980 | PINMUX_GPIO(GPIO_FN_TCLKC_PF, TCLKC_PF_MARK), | ||
981 | PINMUX_GPIO(GPIO_FN_TCLKB_PF, TCLKB_PF_MARK), | ||
982 | PINMUX_GPIO(GPIO_FN_TCLKA_PF, TCLKA_PF_MARK), | ||
983 | |||
984 | /* SSU */ | ||
985 | PINMUX_GPIO(GPIO_FN_SCS0_PD, SCS0_PD_MARK), | ||
986 | PINMUX_GPIO(GPIO_FN_SSO0_PD, SSO0_PD_MARK), | ||
987 | PINMUX_GPIO(GPIO_FN_SSI0_PD, SSI0_PD_MARK), | ||
988 | PINMUX_GPIO(GPIO_FN_SSCK0_PD, SSCK0_PD_MARK), | ||
989 | PINMUX_GPIO(GPIO_FN_SCS0_PF, SCS0_PF_MARK), | ||
990 | PINMUX_GPIO(GPIO_FN_SSO0_PF, SSO0_PF_MARK), | ||
991 | PINMUX_GPIO(GPIO_FN_SSI0_PF, SSI0_PF_MARK), | ||
992 | PINMUX_GPIO(GPIO_FN_SSCK0_PF, SSCK0_PF_MARK), | ||
993 | PINMUX_GPIO(GPIO_FN_SCS1_PD, SCS1_PD_MARK), | ||
994 | PINMUX_GPIO(GPIO_FN_SSO1_PD, SSO1_PD_MARK), | ||
995 | PINMUX_GPIO(GPIO_FN_SSI1_PD, SSI1_PD_MARK), | ||
996 | PINMUX_GPIO(GPIO_FN_SSCK1_PD, SSCK1_PD_MARK), | ||
997 | PINMUX_GPIO(GPIO_FN_SCS1_PF, SCS1_PF_MARK), | ||
998 | PINMUX_GPIO(GPIO_FN_SSO1_PF, SSO1_PF_MARK), | ||
999 | PINMUX_GPIO(GPIO_FN_SSI1_PF, SSI1_PF_MARK), | ||
1000 | PINMUX_GPIO(GPIO_FN_SSCK1_PF, SSCK1_PF_MARK), | ||
1001 | |||
1002 | /* SCIF */ | ||
1003 | PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), | ||
1004 | PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), | ||
1005 | PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), | ||
1006 | PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), | ||
1007 | PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), | ||
1008 | PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), | ||
1009 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
1010 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
1011 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
1012 | PINMUX_GPIO(GPIO_FN_RTS3, RTS3_MARK), | ||
1013 | PINMUX_GPIO(GPIO_FN_CTS3, CTS3_MARK), | ||
1014 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
1015 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
1016 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
1017 | |||
1018 | /* SSI */ | ||
1019 | PINMUX_GPIO(GPIO_FN_AUDIO_CLK, AUDIO_CLK_MARK), | ||
1020 | PINMUX_GPIO(GPIO_FN_SSIDATA3, SSIDATA3_MARK), | ||
1021 | PINMUX_GPIO(GPIO_FN_SSIWS3, SSIWS3_MARK), | ||
1022 | PINMUX_GPIO(GPIO_FN_SSISCK3, SSISCK3_MARK), | ||
1023 | PINMUX_GPIO(GPIO_FN_SSIDATA2, SSIDATA2_MARK), | ||
1024 | PINMUX_GPIO(GPIO_FN_SSIWS2, SSIWS2_MARK), | ||
1025 | PINMUX_GPIO(GPIO_FN_SSISCK2, SSISCK2_MARK), | ||
1026 | PINMUX_GPIO(GPIO_FN_SSIDATA1, SSIDATA1_MARK), | ||
1027 | PINMUX_GPIO(GPIO_FN_SSIWS1, SSIWS1_MARK), | ||
1028 | PINMUX_GPIO(GPIO_FN_SSISCK1, SSISCK1_MARK), | ||
1029 | PINMUX_GPIO(GPIO_FN_SSIDATA0, SSIDATA0_MARK), | ||
1030 | PINMUX_GPIO(GPIO_FN_SSIWS0, SSIWS0_MARK), | ||
1031 | PINMUX_GPIO(GPIO_FN_SSISCK0, SSISCK0_MARK), | ||
1032 | |||
1033 | /* FLCTL */ | ||
1034 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1035 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1036 | PINMUX_GPIO(GPIO_FN_NAF7, NAF7_MARK), | ||
1037 | PINMUX_GPIO(GPIO_FN_NAF6, NAF6_MARK), | ||
1038 | PINMUX_GPIO(GPIO_FN_NAF5, NAF5_MARK), | ||
1039 | PINMUX_GPIO(GPIO_FN_NAF4, NAF4_MARK), | ||
1040 | PINMUX_GPIO(GPIO_FN_NAF3, NAF3_MARK), | ||
1041 | PINMUX_GPIO(GPIO_FN_NAF2, NAF2_MARK), | ||
1042 | PINMUX_GPIO(GPIO_FN_NAF1, NAF1_MARK), | ||
1043 | PINMUX_GPIO(GPIO_FN_NAF0, NAF0_MARK), | ||
1044 | PINMUX_GPIO(GPIO_FN_FSC, FSC_MARK), | ||
1045 | PINMUX_GPIO(GPIO_FN_FOE, FOE_MARK), | ||
1046 | PINMUX_GPIO(GPIO_FN_FCDE, FCDE_MARK), | ||
1047 | PINMUX_GPIO(GPIO_FN_FWE, FWE_MARK), | ||
1048 | |||
1049 | /* LCDC */ | ||
1050 | PINMUX_GPIO(GPIO_FN_LCD_VEPWC, LCD_VEPWC_MARK), | ||
1051 | PINMUX_GPIO(GPIO_FN_LCD_VCPWC, LCD_VCPWC_MARK), | ||
1052 | PINMUX_GPIO(GPIO_FN_LCD_CLK, LCD_CLK_MARK), | ||
1053 | PINMUX_GPIO(GPIO_FN_LCD_FLM, LCD_FLM_MARK), | ||
1054 | PINMUX_GPIO(GPIO_FN_LCD_M_DISP, LCD_M_DISP_MARK), | ||
1055 | PINMUX_GPIO(GPIO_FN_LCD_CL2, LCD_CL2_MARK), | ||
1056 | PINMUX_GPIO(GPIO_FN_LCD_CL1, LCD_CL1_MARK), | ||
1057 | PINMUX_GPIO(GPIO_FN_LCD_DON, LCD_DON_MARK), | ||
1058 | PINMUX_GPIO(GPIO_FN_LCD_DATA15, LCD_DATA15_MARK), | ||
1059 | PINMUX_GPIO(GPIO_FN_LCD_DATA14, LCD_DATA14_MARK), | ||
1060 | PINMUX_GPIO(GPIO_FN_LCD_DATA13, LCD_DATA13_MARK), | ||
1061 | PINMUX_GPIO(GPIO_FN_LCD_DATA12, LCD_DATA12_MARK), | ||
1062 | PINMUX_GPIO(GPIO_FN_LCD_DATA11, LCD_DATA11_MARK), | ||
1063 | PINMUX_GPIO(GPIO_FN_LCD_DATA10, LCD_DATA10_MARK), | ||
1064 | PINMUX_GPIO(GPIO_FN_LCD_DATA9, LCD_DATA9_MARK), | ||
1065 | PINMUX_GPIO(GPIO_FN_LCD_DATA8, LCD_DATA8_MARK), | ||
1066 | PINMUX_GPIO(GPIO_FN_LCD_DATA7, LCD_DATA7_MARK), | ||
1067 | PINMUX_GPIO(GPIO_FN_LCD_DATA6, LCD_DATA6_MARK), | ||
1068 | PINMUX_GPIO(GPIO_FN_LCD_DATA5, LCD_DATA5_MARK), | ||
1069 | PINMUX_GPIO(GPIO_FN_LCD_DATA4, LCD_DATA4_MARK), | ||
1070 | PINMUX_GPIO(GPIO_FN_LCD_DATA3, LCD_DATA3_MARK), | ||
1071 | PINMUX_GPIO(GPIO_FN_LCD_DATA2, LCD_DATA2_MARK), | ||
1072 | PINMUX_GPIO(GPIO_FN_LCD_DATA1, LCD_DATA1_MARK), | ||
1073 | PINMUX_GPIO(GPIO_FN_LCD_DATA0, LCD_DATA0_MARK), | ||
1074 | }; | ||
1075 | |||
1076 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1077 | { PINMUX_CFG_REG("PBIORL", 0xfffe3886, 16, 1) { | ||
1078 | 0, 0, | ||
1079 | 0, 0, | ||
1080 | 0, 0, | ||
1081 | 0, 0, | ||
1082 | PB11_IN, PB11_OUT, | ||
1083 | PB10_IN, PB10_OUT, | ||
1084 | PB9_IN, PB9_OUT, | ||
1085 | PB8_IN, PB8_OUT, | ||
1086 | 0, 0, | ||
1087 | 0, 0, | ||
1088 | 0, 0, | ||
1089 | 0, 0, | ||
1090 | 0, 0, | ||
1091 | 0, 0, | ||
1092 | 0, 0, | ||
1093 | 0, 0 } | ||
1094 | }, | ||
1095 | { PINMUX_CFG_REG("PBCRL4", 0xfffe3890, 16, 4) { | ||
1096 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1097 | |||
1098 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1099 | |||
1100 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1101 | |||
1102 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, | ||
1103 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1104 | }, | ||
1105 | { PINMUX_CFG_REG("PBCRL3", 0xfffe3892, 16, 4) { | ||
1106 | PB11MD_0, PB11MD_1, | ||
1107 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1108 | |||
1109 | PB10MD_0, PB10MD_1, | ||
1110 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1111 | |||
1112 | PB9MD_00, PB9MD_01, PB9MD_10, 0, | ||
1113 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1114 | |||
1115 | PB8MD_00, PB8MD_01, PB8MD_10, 0, | ||
1116 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1117 | }, | ||
1118 | { PINMUX_CFG_REG("PBCRL2", 0xfffe3894, 16, 4) { | ||
1119 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, | ||
1120 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1121 | |||
1122 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, | ||
1123 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1124 | |||
1125 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, | ||
1126 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1127 | |||
1128 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, | ||
1129 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1130 | }, | ||
1131 | { PINMUX_CFG_REG("PBCRL1", 0xfffe3896, 16, 4) { | ||
1132 | PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, | ||
1133 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1134 | |||
1135 | PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, | ||
1136 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1137 | |||
1138 | PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, | ||
1139 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1140 | |||
1141 | PB0MD_00, PB0MD_01, PB0MD_10, PB0MD_11, | ||
1142 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1143 | }, | ||
1144 | { PINMUX_CFG_REG("IFCR", 0xfffe38a2, 16, 4) { | ||
1145 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1146 | |||
1147 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1148 | |||
1149 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1150 | |||
1151 | PB12IRQ_00, PB12IRQ_01, PB12IRQ_10, 0, | ||
1152 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1153 | }, | ||
1154 | { PINMUX_CFG_REG("PCIORL", 0xfffe3906, 16, 1) { | ||
1155 | 0, 0, | ||
1156 | PC14_IN, PC14_OUT, | ||
1157 | PC13_IN, PC13_OUT, | ||
1158 | PC12_IN, PC12_OUT, | ||
1159 | PC11_IN, PC11_OUT, | ||
1160 | PC10_IN, PC10_OUT, | ||
1161 | PC9_IN, PC9_OUT, | ||
1162 | PC8_IN, PC8_OUT, | ||
1163 | PC7_IN, PC7_OUT, | ||
1164 | PC6_IN, PC6_OUT, | ||
1165 | PC5_IN, PC5_OUT, | ||
1166 | PC4_IN, PC4_OUT, | ||
1167 | PC3_IN, PC3_OUT, | ||
1168 | PC2_IN, PC2_OUT, | ||
1169 | PC1_IN, PC1_OUT, | ||
1170 | PC0_IN, PC0_OUT } | ||
1171 | }, | ||
1172 | { PINMUX_CFG_REG("PCCRL4", 0xfffe3910, 16, 4) { | ||
1173 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1174 | |||
1175 | PC14MD_0, PC14MD_1, | ||
1176 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1177 | |||
1178 | PC13MD_0, PC13MD_1, | ||
1179 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1180 | |||
1181 | PC12MD_0, PC12MD_1, | ||
1182 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1183 | }, | ||
1184 | { PINMUX_CFG_REG("PCCRL3", 0xfffe3912, 16, 4) { | ||
1185 | PC11MD_00, PC11MD_01, PC11MD_10, 0, | ||
1186 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1187 | |||
1188 | PC10MD_00, PC10MD_01, PC10MD_10, 0, | ||
1189 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1190 | |||
1191 | PC9MD_0, PC9MD_1, | ||
1192 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1193 | |||
1194 | PC8MD_0, PC8MD_1, | ||
1195 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1196 | }, | ||
1197 | { PINMUX_CFG_REG("PCCRL2", 0xfffe3914, 16, 4) { | ||
1198 | PC7MD_0, PC7MD_1, | ||
1199 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1200 | |||
1201 | PC6MD_0, PC6MD_1, | ||
1202 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1203 | |||
1204 | PC5MD_0, PC5MD_1, | ||
1205 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1206 | |||
1207 | PC4MD_0, PC4MD_1, | ||
1208 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1209 | }, | ||
1210 | { PINMUX_CFG_REG("PCCRL1", 0xfffe3916, 16, 4) { | ||
1211 | PC3MD_0, PC3MD_1, | ||
1212 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1213 | |||
1214 | PC2MD_0, PC2MD_1, | ||
1215 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1216 | |||
1217 | PC1MD_0, PC1MD_1, | ||
1218 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1219 | |||
1220 | PC0MD_00, PC0MD_01, PC0MD_10, 0, | ||
1221 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1222 | }, | ||
1223 | { PINMUX_CFG_REG("PDIORL", 0xfffe3986, 16, 1) { | ||
1224 | PD15_IN, PD15_OUT, | ||
1225 | PD14_IN, PD14_OUT, | ||
1226 | PD13_IN, PD13_OUT, | ||
1227 | PD12_IN, PD12_OUT, | ||
1228 | PD11_IN, PD11_OUT, | ||
1229 | PD10_IN, PD10_OUT, | ||
1230 | PD9_IN, PD9_OUT, | ||
1231 | PD8_IN, PD8_OUT, | ||
1232 | PD7_IN, PD7_OUT, | ||
1233 | PD6_IN, PD6_OUT, | ||
1234 | PD5_IN, PD5_OUT, | ||
1235 | PD4_IN, PD4_OUT, | ||
1236 | PD3_IN, PD3_OUT, | ||
1237 | PD2_IN, PD2_OUT, | ||
1238 | PD1_IN, PD1_OUT, | ||
1239 | PD0_IN, PD0_OUT } | ||
1240 | }, | ||
1241 | { PINMUX_CFG_REG("PDCRL4", 0xfffe3990, 16, 4) { | ||
1242 | PD15MD_000, PD15MD_001, PD15MD_010, 0, | ||
1243 | PD15MD_100, PD15MD_101, 0, 0, | ||
1244 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1245 | |||
1246 | PD14MD_000, PD14MD_001, PD14MD_010, 0, | ||
1247 | 0, PD14MD_101, 0, 0, | ||
1248 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1249 | |||
1250 | PD13MD_000, PD13MD_001, PD13MD_010, 0, | ||
1251 | PD13MD_100, PD13MD_101, 0, 0, | ||
1252 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1253 | |||
1254 | PD12MD_000, PD12MD_001, PD12MD_010, 0, | ||
1255 | PD12MD_100, PD12MD_101, 0, 0, | ||
1256 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1257 | }, | ||
1258 | { PINMUX_CFG_REG("PDCRL3", 0xfffe3992, 16, 4) { | ||
1259 | PD11MD_000, PD11MD_001, PD11MD_010, 0, | ||
1260 | PD11MD_100, PD11MD_101, 0, 0, | ||
1261 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1262 | |||
1263 | PD10MD_000, PD10MD_001, PD10MD_010, 0, | ||
1264 | PD10MD_100, PD10MD_101, 0, 0, | ||
1265 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1266 | |||
1267 | PD9MD_000, PD9MD_001, PD9MD_010, 0, | ||
1268 | PD9MD_100, PD9MD_101, 0, 0, | ||
1269 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1270 | |||
1271 | PD8MD_000, PD8MD_001, PD8MD_010, 0, | ||
1272 | PD8MD_100, PD8MD_101, 0, 0, | ||
1273 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1274 | }, | ||
1275 | { PINMUX_CFG_REG("PDCRL2", 0xfffe3994, 16, 4) { | ||
1276 | PD7MD_000, PD7MD_001, PD7MD_010, PD7MD_011, | ||
1277 | PD7MD_100, PD7MD_101, 0, 0, | ||
1278 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1279 | |||
1280 | PD6MD_000, PD6MD_001, PD6MD_010, PD6MD_011, | ||
1281 | PD6MD_100, PD6MD_101, 0, 0, | ||
1282 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1283 | |||
1284 | PD5MD_000, PD5MD_001, PD5MD_010, PD5MD_011, | ||
1285 | PD5MD_100, PD5MD_101, 0, 0, | ||
1286 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1287 | |||
1288 | PD4MD_000, PD4MD_001, PD4MD_010, PD4MD_011, | ||
1289 | PD4MD_100, PD4MD_101, 0, 0, | ||
1290 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1291 | }, | ||
1292 | { PINMUX_CFG_REG("PDCRL1", 0xfffe3996, 16, 4) { | ||
1293 | PD3MD_000, PD3MD_001, PD3MD_010, PD3MD_011, | ||
1294 | PD3MD_100, PD3MD_101, 0, 0, | ||
1295 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1296 | |||
1297 | PD2MD_000, PD2MD_001, PD2MD_010, PD2MD_011, | ||
1298 | PD2MD_100, PD2MD_101, 0, 0, | ||
1299 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1300 | |||
1301 | PD1MD_000, PD1MD_001, PD1MD_010, PD1MD_011, | ||
1302 | PD1MD_100, PD1MD_101, 0, 0, | ||
1303 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1304 | |||
1305 | PD0MD_000, PD0MD_001, PD0MD_010, PD0MD_011, | ||
1306 | PD0MD_100, PD0MD_101, 0, 0, | ||
1307 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1308 | }, | ||
1309 | { PINMUX_CFG_REG("PEIORL", 0xfffe3a06, 16, 1) { | ||
1310 | PE15_IN, PE15_OUT, | ||
1311 | PE14_IN, PE14_OUT, | ||
1312 | PE13_IN, PE13_OUT, | ||
1313 | PE12_IN, PE12_OUT, | ||
1314 | PE11_IN, PE11_OUT, | ||
1315 | PE10_IN, PE10_OUT, | ||
1316 | PE9_IN, PE9_OUT, | ||
1317 | PE8_IN, PE8_OUT, | ||
1318 | PE7_IN, PE7_OUT, | ||
1319 | PE6_IN, PE6_OUT, | ||
1320 | PE5_IN, PE5_OUT, | ||
1321 | PE4_IN, PE4_OUT, | ||
1322 | PE3_IN, PE3_OUT, | ||
1323 | PE2_IN, PE2_OUT, | ||
1324 | PE1_IN, PE1_OUT, | ||
1325 | PE0_IN, PE0_OUT } | ||
1326 | }, | ||
1327 | { PINMUX_CFG_REG("PECRL4", 0xfffe3a10, 16, 4) { | ||
1328 | PE15MD_00, PE15MD_01, 0, PE15MD_11, | ||
1329 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1330 | |||
1331 | PE14MD_00, PE14MD_01, 0, PE14MD_11, | ||
1332 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1333 | |||
1334 | PE13MD_00, 0, 0, PE13MD_11, | ||
1335 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1336 | |||
1337 | PE12MD_00, 0, 0, PE12MD_11, | ||
1338 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1339 | }, | ||
1340 | { PINMUX_CFG_REG("PECRL3", 0xfffe3a12, 16, 4) { | ||
1341 | PE11MD_000, PE11MD_001, PE11MD_010, 0, | ||
1342 | PE11MD_100, 0, 0, 0, | ||
1343 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1344 | |||
1345 | PE10MD_000, PE10MD_001, PE10MD_010, 0, | ||
1346 | PE10MD_100, 0, 0, 0, | ||
1347 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1348 | |||
1349 | PE9MD_00, PE9MD_01, PE9MD_10, PE9MD_11, | ||
1350 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1351 | |||
1352 | PE8MD_00, PE8MD_01, PE8MD_10, PE8MD_11, | ||
1353 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1354 | }, | ||
1355 | { PINMUX_CFG_REG("PECRL2", 0xfffe3a14, 16, 4) { | ||
1356 | PE7MD_000, PE7MD_001, PE7MD_010, PE7MD_011, | ||
1357 | PE7MD_100, 0, 0, 0, | ||
1358 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1359 | |||
1360 | PE6MD_000, PE6MD_001, PE6MD_010, PE6MD_011, | ||
1361 | PE6MD_100, 0, 0, 0, | ||
1362 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1363 | |||
1364 | PE5MD_000, PE5MD_001, PE5MD_010, PE5MD_011, | ||
1365 | PE5MD_100, 0, 0, 0, | ||
1366 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1367 | |||
1368 | PE4MD_000, PE4MD_001, PE4MD_010, PE4MD_011, | ||
1369 | PE4MD_100, 0, 0, 0, | ||
1370 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1371 | }, | ||
1372 | { PINMUX_CFG_REG("PECRL1", 0xfffe3a16, 16, 4) { | ||
1373 | PE3MD_00, PE3MD_01, 0, PE3MD_11, | ||
1374 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1375 | |||
1376 | PE2MD_00, PE2MD_01, 0, PE2MD_11, | ||
1377 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1378 | |||
1379 | PE1MD_00, PE1MD_01, PE1MD_10, PE1MD_11, | ||
1380 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1381 | |||
1382 | PE0MD_000, PE0MD_001, 0, PE0MD_011, | ||
1383 | PE0MD_100, 0, 0, 0, | ||
1384 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1385 | }, | ||
1386 | { PINMUX_CFG_REG("PFIORH", 0xfffe3a84, 16, 1) { | ||
1387 | 0, 0, | ||
1388 | PF30_IN, PF30_OUT, | ||
1389 | PF29_IN, PF29_OUT, | ||
1390 | PF28_IN, PF28_OUT, | ||
1391 | PF27_IN, PF27_OUT, | ||
1392 | PF26_IN, PF26_OUT, | ||
1393 | PF25_IN, PF25_OUT, | ||
1394 | PF24_IN, PF24_OUT, | ||
1395 | PF23_IN, PF23_OUT, | ||
1396 | PF22_IN, PF22_OUT, | ||
1397 | PF21_IN, PF21_OUT, | ||
1398 | PF20_IN, PF20_OUT, | ||
1399 | PF19_IN, PF19_OUT, | ||
1400 | PF18_IN, PF18_OUT, | ||
1401 | PF17_IN, PF17_OUT, | ||
1402 | PF16_IN, PF16_OUT } | ||
1403 | }, | ||
1404 | { PINMUX_CFG_REG("PFIORL", 0xfffe3a86, 16, 1) { | ||
1405 | PF15_IN, PF15_OUT, | ||
1406 | PF14_IN, PF14_OUT, | ||
1407 | PF13_IN, PF13_OUT, | ||
1408 | PF12_IN, PF12_OUT, | ||
1409 | PF11_IN, PF11_OUT, | ||
1410 | PF10_IN, PF10_OUT, | ||
1411 | PF9_IN, PF9_OUT, | ||
1412 | PF8_IN, PF8_OUT, | ||
1413 | PF7_IN, PF7_OUT, | ||
1414 | PF6_IN, PF6_OUT, | ||
1415 | PF5_IN, PF5_OUT, | ||
1416 | PF4_IN, PF4_OUT, | ||
1417 | PF3_IN, PF3_OUT, | ||
1418 | PF2_IN, PF2_OUT, | ||
1419 | PF1_IN, PF1_OUT, | ||
1420 | PF0_IN, PF0_OUT } | ||
1421 | }, | ||
1422 | { PINMUX_CFG_REG("PFCRH4", 0xfffe3a88, 16, 4) { | ||
1423 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1424 | |||
1425 | PF30MD_0, PF30MD_1, | ||
1426 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1427 | |||
1428 | PF29MD_0, PF29MD_1, | ||
1429 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1430 | |||
1431 | PF28MD_0, PF28MD_1, | ||
1432 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1433 | }, | ||
1434 | { PINMUX_CFG_REG("PFCRH3", 0xfffe3a8a, 16, 4) { | ||
1435 | PF27MD_0, PF27MD_1, | ||
1436 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1437 | |||
1438 | PF26MD_0, PF26MD_1, | ||
1439 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1440 | |||
1441 | PF25MD_0, PF25MD_1, | ||
1442 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1443 | |||
1444 | PF24MD_0, PF24MD_1, | ||
1445 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1446 | }, | ||
1447 | { PINMUX_CFG_REG("PFCRH2", 0xfffe3a8c, 16, 4) { | ||
1448 | PF23MD_00, PF23MD_01, PF23MD_10, 0, | ||
1449 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1450 | |||
1451 | PF22MD_00, PF22MD_01, PF22MD_10, 0, | ||
1452 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1453 | |||
1454 | PF21MD_00, PF21MD_01, PF21MD_10, 0, | ||
1455 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1456 | |||
1457 | PF20MD_00, PF20MD_01, PF20MD_10, 0, | ||
1458 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1459 | }, | ||
1460 | { PINMUX_CFG_REG("PFCRH1", 0xfffe3a8e, 16, 4) { | ||
1461 | PF19MD_00, PF19MD_01, PF19MD_10, 0, | ||
1462 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1463 | |||
1464 | PF18MD_00, PF18MD_01, PF18MD_10, 0, | ||
1465 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1466 | |||
1467 | PF17MD_00, PF17MD_01, PF17MD_10, 0, | ||
1468 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1469 | |||
1470 | PF16MD_00, PF16MD_01, PF16MD_10, 0, | ||
1471 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1472 | }, | ||
1473 | { PINMUX_CFG_REG("PFCRL4", 0xfffe3a90, 16, 4) { | ||
1474 | PF15MD_00, PF15MD_01, PF15MD_10, 0, | ||
1475 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1476 | |||
1477 | PF14MD_00, PF14MD_01, PF14MD_10, 0, | ||
1478 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1479 | |||
1480 | PF13MD_00, PF13MD_01, PF13MD_10, 0, | ||
1481 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1482 | |||
1483 | PF12MD_00, PF12MD_01, PF12MD_10, 0, | ||
1484 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1485 | }, | ||
1486 | { PINMUX_CFG_REG("PFCRL3", 0xfffe3a92, 16, 4) { | ||
1487 | PF11MD_00, PF11MD_01, PF11MD_10, 0, | ||
1488 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1489 | |||
1490 | PF10MD_00, PF10MD_01, PF10MD_10, 0, | ||
1491 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1492 | |||
1493 | PF9MD_00, PF9MD_01, PF9MD_10, 0, | ||
1494 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1495 | |||
1496 | PF8MD_00, PF8MD_01, PF8MD_10, 0, | ||
1497 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1498 | }, | ||
1499 | { PINMUX_CFG_REG("PFCRL2", 0xfffe3a94, 16, 4) { | ||
1500 | PF7MD_00, PF7MD_01, PF7MD_10, PF7MD_11, | ||
1501 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1502 | |||
1503 | PF6MD_00, PF6MD_01, PF6MD_10, PF6MD_11, | ||
1504 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1505 | |||
1506 | PF5MD_00, PF5MD_01, PF5MD_10, PF5MD_11, | ||
1507 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1508 | |||
1509 | PF4MD_00, PF4MD_01, PF4MD_10, PF4MD_11, | ||
1510 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1511 | }, | ||
1512 | { PINMUX_CFG_REG("PFCRL1", 0xfffe3a96, 16, 4) { | ||
1513 | PF3MD_00, PF3MD_01, PF3MD_10, PF3MD_11, | ||
1514 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1515 | |||
1516 | PF2MD_00, PF2MD_01, PF2MD_10, PF2MD_11, | ||
1517 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1518 | |||
1519 | PF1MD_00, PF1MD_01, PF1MD_10, PF1MD_11, | ||
1520 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1521 | |||
1522 | PF0MD_00, PF0MD_01, PF0MD_10, PF0MD_11, | ||
1523 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1524 | }, | ||
1525 | {} | ||
1526 | }; | ||
1527 | |||
1528 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1529 | { PINMUX_DATA_REG("PADRL", 0xfffe3802, 16) { | ||
1530 | 0, 0, 0, 0, | ||
1531 | 0, 0, 0, 0, | ||
1532 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
1533 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA } | ||
1534 | }, | ||
1535 | { PINMUX_DATA_REG("PBDRL", 0xfffe3882, 16) { | ||
1536 | 0, 0, 0, PB12_DATA, | ||
1537 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
1538 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
1539 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA } | ||
1540 | }, | ||
1541 | { PINMUX_DATA_REG("PCDRL", 0xfffe3902, 16) { | ||
1542 | 0, PC14_DATA, PC13_DATA, PC12_DATA, | ||
1543 | PC11_DATA, PC10_DATA, PC9_DATA, PC8_DATA, | ||
1544 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
1545 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
1546 | }, | ||
1547 | { PINMUX_DATA_REG("PDDRL", 0xfffe3982, 16) { | ||
1548 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
1549 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
1550 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
1551 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
1552 | }, | ||
1553 | { PINMUX_DATA_REG("PEDRL", 0xfffe3a02, 16) { | ||
1554 | PE15_DATA, PE14_DATA, PE13_DATA, PE12_DATA, | ||
1555 | PE11_DATA, PE10_DATA, PE9_DATA, PE8_DATA, | ||
1556 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
1557 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA } | ||
1558 | }, | ||
1559 | { PINMUX_DATA_REG("PFDRH", 0xfffe3a80, 16) { | ||
1560 | 0, PF30_DATA, PF29_DATA, PF28_DATA, | ||
1561 | PF27_DATA, PF26_DATA, PF25_DATA, PF24_DATA, | ||
1562 | PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA, | ||
1563 | PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA } | ||
1564 | }, | ||
1565 | { PINMUX_DATA_REG("PFDRL", 0xfffe3a82, 16) { | ||
1566 | PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA, | ||
1567 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
1568 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
1569 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
1570 | }, | ||
1571 | { }, | ||
1572 | }; | ||
1573 | |||
1574 | struct sh_pfc_soc_info sh7203_pinmux_info = { | ||
1575 | .name = "sh7203_pfc", | ||
1576 | .reserved_id = PINMUX_RESERVED, | ||
1577 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1578 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN }, | ||
1579 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT }, | ||
1580 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1581 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1582 | |||
1583 | .first_gpio = GPIO_PA7, | ||
1584 | .last_gpio = GPIO_FN_LCD_DATA0, | ||
1585 | |||
1586 | .gpios = pinmux_gpios, | ||
1587 | .cfg_regs = pinmux_config_regs, | ||
1588 | .data_regs = pinmux_data_regs, | ||
1589 | |||
1590 | .gpio_data = pinmux_data, | ||
1591 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1592 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7264.c b/drivers/pinctrl/sh-pfc/pfc-sh7264.c new file mode 100644 index 000000000000..2ba5639dcf34 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7264.c | |||
@@ -0,0 +1,2131 @@ | |||
1 | /* | ||
2 | * SH7264 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2012 Renesas Electronics Europe Ltd | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/gpio.h> | ||
13 | #include <cpu/sh7264.h> | ||
14 | |||
15 | #include "sh_pfc.h" | ||
16 | |||
17 | enum { | ||
18 | PINMUX_RESERVED = 0, | ||
19 | |||
20 | PINMUX_DATA_BEGIN, | ||
21 | /* Port A */ | ||
22 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
23 | /* Port B */ | ||
24 | PB22_DATA, PB21_DATA, PB20_DATA, | ||
25 | PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA, | ||
26 | PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA, | ||
27 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
28 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
29 | PB3_DATA, PB2_DATA, PB1_DATA, | ||
30 | /* Port C */ | ||
31 | PC10_DATA, PC9_DATA, PC8_DATA, | ||
32 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
33 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
34 | /* Port D */ | ||
35 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
36 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
37 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
38 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
39 | /* Port E */ | ||
40 | PE5_DATA, PE4_DATA, | ||
41 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
42 | /* Port F */ | ||
43 | PF12_DATA, | ||
44 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
45 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
46 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
47 | /* Port G */ | ||
48 | PG24_DATA, | ||
49 | PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA, | ||
50 | PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA, | ||
51 | PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA, | ||
52 | PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA, | ||
53 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
54 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
55 | /* Port H */ | ||
56 | /* NOTE - Port H does not have a Data Register, but PH Data is | ||
57 | connected to PH Port Register */ | ||
58 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
59 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
60 | /* Port I - not on device */ | ||
61 | /* Port J */ | ||
62 | PJ12_DATA, | ||
63 | PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA, | ||
64 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
65 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA, | ||
66 | /* Port K */ | ||
67 | PK12_DATA, | ||
68 | PK11_DATA, PK10_DATA, PK9_DATA, PK8_DATA, | ||
69 | PK7_DATA, PK6_DATA, PK5_DATA, PK4_DATA, | ||
70 | PK3_DATA, PK2_DATA, PK1_DATA, PK0_DATA, | ||
71 | PINMUX_DATA_END, | ||
72 | |||
73 | PINMUX_INPUT_BEGIN, | ||
74 | FORCE_IN, | ||
75 | /* Port A */ | ||
76 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
77 | /* Port B */ | ||
78 | PB22_IN, PB21_IN, PB20_IN, | ||
79 | PB19_IN, PB18_IN, PB17_IN, PB16_IN, | ||
80 | PB15_IN, PB14_IN, PB13_IN, PB12_IN, | ||
81 | PB11_IN, PB10_IN, PB9_IN, PB8_IN, | ||
82 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
83 | PB3_IN, PB2_IN, PB1_IN, | ||
84 | /* Port C */ | ||
85 | PC10_IN, PC9_IN, PC8_IN, | ||
86 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
87 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
88 | /* Port D */ | ||
89 | PD15_IN, PD14_IN, PD13_IN, PD12_IN, | ||
90 | PD11_IN, PD10_IN, PD9_IN, PD8_IN, | ||
91 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
92 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
93 | /* Port E */ | ||
94 | PE5_IN, PE4_IN, | ||
95 | PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
96 | /* Port F */ | ||
97 | PF12_IN, | ||
98 | PF11_IN, PF10_IN, PF9_IN, PF8_IN, | ||
99 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
100 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
101 | /* Port G */ | ||
102 | PG24_IN, | ||
103 | PG23_IN, PG22_IN, PG21_IN, PG20_IN, | ||
104 | PG19_IN, PG18_IN, PG17_IN, PG16_IN, | ||
105 | PG15_IN, PG14_IN, PG13_IN, PG12_IN, | ||
106 | PG11_IN, PG10_IN, PG9_IN, PG8_IN, | ||
107 | PG7_IN, PG6_IN, PG5_IN, PG4_IN, | ||
108 | PG3_IN, PG2_IN, PG1_IN, PG0_IN, | ||
109 | /* Port H - Port H does not have a Data Register */ | ||
110 | /* Port I - not on device */ | ||
111 | /* Port J */ | ||
112 | PJ12_IN, | ||
113 | PJ11_IN, PJ10_IN, PJ9_IN, PJ8_IN, | ||
114 | PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN, | ||
115 | PJ3_IN, PJ2_IN, PJ1_IN, PJ0_IN, | ||
116 | /* Port K */ | ||
117 | PK12_IN, | ||
118 | PK11_IN, PK10_IN, PK9_IN, PK8_IN, | ||
119 | PK7_IN, PK6_IN, PK5_IN, PK4_IN, | ||
120 | PK3_IN, PK2_IN, PK1_IN, PK0_IN, | ||
121 | PINMUX_INPUT_END, | ||
122 | |||
123 | PINMUX_OUTPUT_BEGIN, | ||
124 | FORCE_OUT, | ||
125 | /* Port A */ | ||
126 | PA3_OUT, PA2_OUT, PA1_OUT, PA0_OUT, | ||
127 | /* Port B */ | ||
128 | PB22_OUT, PB21_OUT, PB20_OUT, | ||
129 | PB19_OUT, PB18_OUT, PB17_OUT, PB16_OUT, | ||
130 | PB15_OUT, PB14_OUT, PB13_OUT, PB12_OUT, | ||
131 | PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT, | ||
132 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
133 | PB3_OUT, PB2_OUT, PB1_OUT, | ||
134 | /* Port C */ | ||
135 | PC10_OUT, PC9_OUT, PC8_OUT, | ||
136 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
137 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
138 | /* Port D */ | ||
139 | PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT, | ||
140 | PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT, | ||
141 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
142 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
143 | /* Port E */ | ||
144 | PE5_OUT, PE4_OUT, | ||
145 | PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
146 | /* Port F */ | ||
147 | PF12_OUT, | ||
148 | PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT, | ||
149 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
150 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
151 | /* Port G */ | ||
152 | PG24_OUT, | ||
153 | PG23_OUT, PG22_OUT, PG21_OUT, PG20_OUT, | ||
154 | PG19_OUT, PG18_OUT, PG17_OUT, PG16_OUT, | ||
155 | PG15_OUT, PG14_OUT, PG13_OUT, PG12_OUT, | ||
156 | PG11_OUT, PG10_OUT, PG9_OUT, PG8_OUT, | ||
157 | PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT, | ||
158 | PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT, | ||
159 | /* Port H - Port H does not have a Data Register */ | ||
160 | /* Port I - not on device */ | ||
161 | /* Port J */ | ||
162 | PJ12_OUT, | ||
163 | PJ11_OUT, PJ10_OUT, PJ9_OUT, PJ8_OUT, | ||
164 | PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT, | ||
165 | PJ3_OUT, PJ2_OUT, PJ1_OUT, PJ0_OUT, | ||
166 | /* Port K */ | ||
167 | PK12_OUT, | ||
168 | PK11_OUT, PK10_OUT, PK9_OUT, PK8_OUT, | ||
169 | PK7_OUT, PK6_OUT, PK5_OUT, PK4_OUT, | ||
170 | PK3_OUT, PK2_OUT, PK1_OUT, PK0_OUT, | ||
171 | PINMUX_OUTPUT_END, | ||
172 | |||
173 | PINMUX_FUNCTION_BEGIN, | ||
174 | /* Port A */ | ||
175 | PA3_IOR_IN, PA3_IOR_OUT, | ||
176 | PA2_IOR_IN, PA2_IOR_OUT, | ||
177 | PA1_IOR_IN, PA1_IOR_OUT, | ||
178 | PA0_IOR_IN, PA0_IOR_OUT, | ||
179 | |||
180 | /* Port B */ | ||
181 | PB11_IOR_IN, PB11_IOR_OUT, | ||
182 | PB10_IOR_IN, PB10_IOR_OUT, | ||
183 | PB9_IOR_IN, PB9_IOR_OUT, | ||
184 | PB8_IOR_IN, PB8_IOR_OUT, | ||
185 | |||
186 | PB22MD_00, PB22MD_01, PB22MD_10, | ||
187 | PB21MD_0, PB21MD_1, | ||
188 | PB20MD_0, PB20MD_1, | ||
189 | PB19MD_00, PB19MD_01, PB19MD_10, PB19MD_11, | ||
190 | PB18MD_00, PB18MD_01, PB18MD_10, PB18MD_11, | ||
191 | PB17MD_00, PB17MD_01, PB17MD_10, PB17MD_11, | ||
192 | PB16MD_00, PB16MD_01, PB16MD_10, PB16MD_11, | ||
193 | PB15MD_00, PB15MD_01, PB15MD_10, PB15MD_11, | ||
194 | PB14MD_00, PB14MD_01, PB14MD_10, PB14MD_11, | ||
195 | PB13MD_00, PB13MD_01, PB13MD_10, PB13MD_11, | ||
196 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, | ||
197 | PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11, | ||
198 | PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11, | ||
199 | PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11, | ||
200 | PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11, | ||
201 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, | ||
202 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, | ||
203 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, | ||
204 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, | ||
205 | PB3MD_0, PB3MD_1, | ||
206 | PB2MD_0, PB2MD_1, | ||
207 | PB1MD_0, PB1MD_1, | ||
208 | |||
209 | /* Port C */ | ||
210 | PC14_IOR_IN, PC14_IOR_OUT, | ||
211 | PC13_IOR_IN, PC13_IOR_OUT, | ||
212 | PC12_IOR_IN, PC12_IOR_OUT, | ||
213 | PC11_IOR_IN, PC11_IOR_OUT, | ||
214 | PC10_IOR_IN, PC10_IOR_OUT, | ||
215 | PC9_IOR_IN, PC9_IOR_OUT, | ||
216 | PC8_IOR_IN, PC8_IOR_OUT, | ||
217 | PC7_IOR_IN, PC7_IOR_OUT, | ||
218 | PC6_IOR_IN, PC6_IOR_OUT, | ||
219 | PC5_IOR_IN, PC5_IOR_OUT, | ||
220 | PC4_IOR_IN, PC4_IOR_OUT, | ||
221 | PC3_IOR_IN, PC3_IOR_OUT, | ||
222 | PC2_IOR_IN, PC2_IOR_OUT, | ||
223 | PC1_IOR_IN, PC1_IOR_OUT, | ||
224 | PC0_IOR_IN, PC0_IOR_OUT, | ||
225 | |||
226 | PC10MD_0, PC10MD_1, | ||
227 | PC9MD_0, PC9MD_1, | ||
228 | PC8MD_00, PC8MD_01, PC8MD_10, PC8MD_11, | ||
229 | PC7MD_00, PC7MD_01, PC7MD_10, PC7MD_11, | ||
230 | PC6MD_00, PC6MD_01, PC6MD_10, PC6MD_11, | ||
231 | PC5MD_00, PC5MD_01, PC5MD_10, PC5MD_11, | ||
232 | PC4MD_0, PC4MD_1, | ||
233 | PC3MD_0, PC3MD_1, | ||
234 | PC2MD_0, PC2MD_1, | ||
235 | PC1MD_0, PC1MD_1, | ||
236 | PC0MD_0, PC0MD_1, | ||
237 | |||
238 | /* Port D */ | ||
239 | PD15_IOR_IN, PD15_IOR_OUT, | ||
240 | PD14_IOR_IN, PD14_IOR_OUT, | ||
241 | PD13_IOR_IN, PD13_IOR_OUT, | ||
242 | PD12_IOR_IN, PD12_IOR_OUT, | ||
243 | PD11_IOR_IN, PD11_IOR_OUT, | ||
244 | PD10_IOR_IN, PD10_IOR_OUT, | ||
245 | PD9_IOR_IN, PD9_IOR_OUT, | ||
246 | PD8_IOR_IN, PD8_IOR_OUT, | ||
247 | PD7_IOR_IN, PD7_IOR_OUT, | ||
248 | PD6_IOR_IN, PD6_IOR_OUT, | ||
249 | PD5_IOR_IN, PD5_IOR_OUT, | ||
250 | PD4_IOR_IN, PD4_IOR_OUT, | ||
251 | PD3_IOR_IN, PD3_IOR_OUT, | ||
252 | PD2_IOR_IN, PD2_IOR_OUT, | ||
253 | PD1_IOR_IN, PD1_IOR_OUT, | ||
254 | PD0_IOR_IN, PD0_IOR_OUT, | ||
255 | |||
256 | PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11, | ||
257 | PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11, | ||
258 | PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11, | ||
259 | PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11, | ||
260 | PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11, | ||
261 | PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11, | ||
262 | PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11, | ||
263 | PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11, | ||
264 | PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11, | ||
265 | PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11, | ||
266 | PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11, | ||
267 | PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11, | ||
268 | PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11, | ||
269 | PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11, | ||
270 | PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11, | ||
271 | PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11, | ||
272 | |||
273 | /* Port E */ | ||
274 | PE5_IOR_IN, PE5_IOR_OUT, | ||
275 | PE4_IOR_IN, PE4_IOR_OUT, | ||
276 | PE3_IOR_IN, PE3_IOR_OUT, | ||
277 | PE2_IOR_IN, PE2_IOR_OUT, | ||
278 | PE1_IOR_IN, PE1_IOR_OUT, | ||
279 | PE0_IOR_IN, PE0_IOR_OUT, | ||
280 | |||
281 | PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11, | ||
282 | PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11, | ||
283 | PE3MD_00, PE3MD_01, PE3MD_10, PE3MD_11, | ||
284 | PE2MD_00, PE2MD_01, PE2MD_10, PE2MD_11, | ||
285 | PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011, | ||
286 | PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111, | ||
287 | PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, | ||
288 | |||
289 | /* Port F */ | ||
290 | PF12_IOR_IN, PF12_IOR_OUT, | ||
291 | PF11_IOR_IN, PF11_IOR_OUT, | ||
292 | PF10_IOR_IN, PF10_IOR_OUT, | ||
293 | PF9_IOR_IN, PF9_IOR_OUT, | ||
294 | PF8_IOR_IN, PF8_IOR_OUT, | ||
295 | PF7_IOR_IN, PF7_IOR_OUT, | ||
296 | PF6_IOR_IN, PF6_IOR_OUT, | ||
297 | PF5_IOR_IN, PF5_IOR_OUT, | ||
298 | PF4_IOR_IN, PF4_IOR_OUT, | ||
299 | PF3_IOR_IN, PF3_IOR_OUT, | ||
300 | PF2_IOR_IN, PF2_IOR_OUT, | ||
301 | PF1_IOR_IN, PF1_IOR_OUT, | ||
302 | PF0_IOR_IN, PF0_IOR_OUT, | ||
303 | |||
304 | PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011, | ||
305 | PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111, | ||
306 | PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011, | ||
307 | PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111, | ||
308 | PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011, | ||
309 | PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111, | ||
310 | PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011, | ||
311 | PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111, | ||
312 | PF8MD_00, PF8MD_01, PF8MD_10, PF8MD_11, | ||
313 | PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011, | ||
314 | PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111, | ||
315 | PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011, | ||
316 | PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111, | ||
317 | PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011, | ||
318 | PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111, | ||
319 | PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011, | ||
320 | PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111, | ||
321 | PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011, | ||
322 | PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111, | ||
323 | PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011, | ||
324 | PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111, | ||
325 | PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011, | ||
326 | PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111, | ||
327 | PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011, | ||
328 | PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111, | ||
329 | |||
330 | /* Port G */ | ||
331 | PG24_IOR_IN, PG24_IOR_OUT, | ||
332 | PG23_IOR_IN, PG23_IOR_OUT, | ||
333 | PG22_IOR_IN, PG22_IOR_OUT, | ||
334 | PG21_IOR_IN, PG21_IOR_OUT, | ||
335 | PG20_IOR_IN, PG20_IOR_OUT, | ||
336 | PG19_IOR_IN, PG19_IOR_OUT, | ||
337 | PG18_IOR_IN, PG18_IOR_OUT, | ||
338 | PG17_IOR_IN, PG17_IOR_OUT, | ||
339 | PG16_IOR_IN, PG16_IOR_OUT, | ||
340 | PG15_IOR_IN, PG15_IOR_OUT, | ||
341 | PG14_IOR_IN, PG14_IOR_OUT, | ||
342 | PG13_IOR_IN, PG13_IOR_OUT, | ||
343 | PG12_IOR_IN, PG12_IOR_OUT, | ||
344 | PG11_IOR_IN, PG11_IOR_OUT, | ||
345 | PG10_IOR_IN, PG10_IOR_OUT, | ||
346 | PG9_IOR_IN, PG9_IOR_OUT, | ||
347 | PG8_IOR_IN, PG8_IOR_OUT, | ||
348 | PG7_IOR_IN, PG7_IOR_OUT, | ||
349 | PG6_IOR_IN, PG6_IOR_OUT, | ||
350 | PG5_IOR_IN, PG5_IOR_OUT, | ||
351 | PG4_IOR_IN, PG4_IOR_OUT, | ||
352 | PG3_IOR_IN, PG3_IOR_OUT, | ||
353 | PG2_IOR_IN, PG2_IOR_OUT, | ||
354 | PG1_IOR_IN, PG1_IOR_OUT, | ||
355 | PG0_IOR_IN, PG0_IOR_OUT, | ||
356 | |||
357 | PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, | ||
358 | PG23MD_00, PG23MD_01, PG23MD_10, PG23MD_11, | ||
359 | PG22MD_00, PG22MD_01, PG22MD_10, PG22MD_11, | ||
360 | PG21MD_00, PG21MD_01, PG21MD_10, PG21MD_11, | ||
361 | PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011, | ||
362 | PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111, | ||
363 | PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011, | ||
364 | PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111, | ||
365 | PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011, | ||
366 | PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111, | ||
367 | PG17MD_000, PG17MD_001, PG17MD_010, PG17MD_011, | ||
368 | PG17MD_100, PG17MD_101, PG17MD_110, PG17MD_111, | ||
369 | PG16MD_000, PG16MD_001, PG16MD_010, PG16MD_011, | ||
370 | PG16MD_100, PG16MD_101, PG16MD_110, PG16MD_111, | ||
371 | PG15MD_000, PG15MD_001, PG15MD_010, PG15MD_011, | ||
372 | PG15MD_100, PG15MD_101, PG15MD_110, PG15MD_111, | ||
373 | PG14MD_000, PG14MD_001, PG14MD_010, PG14MD_011, | ||
374 | PG14MD_100, PG14MD_101, PG14MD_110, PG14MD_111, | ||
375 | PG13MD_000, PG13MD_001, PG13MD_010, PG13MD_011, | ||
376 | PG13MD_100, PG13MD_101, PG13MD_110, PG13MD_111, | ||
377 | PG12MD_000, PG12MD_001, PG12MD_010, PG12MD_011, | ||
378 | PG12MD_100, PG12MD_101, PG12MD_110, PG12MD_111, | ||
379 | PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011, | ||
380 | PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111, | ||
381 | PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011, | ||
382 | PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111, | ||
383 | PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011, | ||
384 | PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111, | ||
385 | PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011, | ||
386 | PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111, | ||
387 | PG7MD_00, PG7MD_01, PG7MD_10, PG7MD_11, | ||
388 | PG6MD_00, PG6MD_01, PG6MD_10, PG6MD_11, | ||
389 | PG5MD_00, PG5MD_01, PG5MD_10, PG5MD_11, | ||
390 | PG4MD_00, PG4MD_01, PG4MD_10, PG4MD_11, | ||
391 | PG3MD_00, PG3MD_01, PG3MD_10, PG3MD_11, | ||
392 | PG2MD_00, PG2MD_01, PG2MD_10, PG2MD_11, | ||
393 | PG1MD_00, PG1MD_01, PG1MD_10, PG1MD_11, | ||
394 | PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011, | ||
395 | PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111, | ||
396 | |||
397 | /* Port H */ | ||
398 | PH7MD_0, PH7MD_1, | ||
399 | PH6MD_0, PH6MD_1, | ||
400 | PH5MD_0, PH5MD_1, | ||
401 | PH4MD_0, PH4MD_1, | ||
402 | PH3MD_0, PH3MD_1, | ||
403 | PH2MD_0, PH2MD_1, | ||
404 | PH1MD_0, PH1MD_1, | ||
405 | PH0MD_0, PH0MD_1, | ||
406 | |||
407 | /* Port I - not on device */ | ||
408 | |||
409 | /* Port J */ | ||
410 | PJ11_IOR_IN, PJ11_IOR_OUT, | ||
411 | PJ10_IOR_IN, PJ10_IOR_OUT, | ||
412 | PJ9_IOR_IN, PJ9_IOR_OUT, | ||
413 | PJ8_IOR_IN, PJ8_IOR_OUT, | ||
414 | PJ7_IOR_IN, PJ7_IOR_OUT, | ||
415 | PJ6_IOR_IN, PJ6_IOR_OUT, | ||
416 | PJ5_IOR_IN, PJ5_IOR_OUT, | ||
417 | PJ4_IOR_IN, PJ4_IOR_OUT, | ||
418 | PJ3_IOR_IN, PJ3_IOR_OUT, | ||
419 | PJ2_IOR_IN, PJ2_IOR_OUT, | ||
420 | PJ1_IOR_IN, PJ1_IOR_OUT, | ||
421 | PJ0_IOR_IN, PJ0_IOR_OUT, | ||
422 | |||
423 | PJ11MD_00, PJ11MD_01, PJ11MD_10, PJ11MD_11, | ||
424 | PJ10MD_00, PJ10MD_01, PJ10MD_10, PJ10MD_11, | ||
425 | PJ9MD_00, PJ9MD_01, PJ9MD_10, PJ9MD_11, | ||
426 | PJ8MD_00, PJ8MD_01, PJ8MD_10, PJ8MD_11, | ||
427 | PJ7MD_00, PJ7MD_01, PJ7MD_10, PJ7MD_11, | ||
428 | PJ6MD_00, PJ6MD_01, PJ6MD_10, PJ6MD_11, | ||
429 | PJ5MD_00, PJ5MD_01, PJ5MD_10, PJ5MD_11, | ||
430 | PJ4MD_00, PJ4MD_01, PJ4MD_10, PJ4MD_11, | ||
431 | PJ3MD_00, PJ3MD_01, PJ3MD_10, PJ3MD_11, | ||
432 | PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011, | ||
433 | PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111, | ||
434 | PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011, | ||
435 | PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111, | ||
436 | PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011, | ||
437 | PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111, | ||
438 | |||
439 | /* Port K */ | ||
440 | PK11_IOR_IN, PK11_IOR_OUT, | ||
441 | PK10_IOR_IN, PK10_IOR_OUT, | ||
442 | PK9_IOR_IN, PK9_IOR_OUT, | ||
443 | PK8_IOR_IN, PK8_IOR_OUT, | ||
444 | PK7_IOR_IN, PK7_IOR_OUT, | ||
445 | PK6_IOR_IN, PK6_IOR_OUT, | ||
446 | PK5_IOR_IN, PK5_IOR_OUT, | ||
447 | PK4_IOR_IN, PK4_IOR_OUT, | ||
448 | PK3_IOR_IN, PK3_IOR_OUT, | ||
449 | PK2_IOR_IN, PK2_IOR_OUT, | ||
450 | PK1_IOR_IN, PK1_IOR_OUT, | ||
451 | PK0_IOR_IN, PK0_IOR_OUT, | ||
452 | |||
453 | PK11MD_00, PK11MD_01, PK11MD_10, PK11MD_11, | ||
454 | PK10MD_00, PK10MD_01, PK10MD_10, PK10MD_11, | ||
455 | PK9MD_00, PK9MD_01, PK9MD_10, PK9MD_11, | ||
456 | PK8MD_00, PK8MD_01, PK8MD_10, PK8MD_11, | ||
457 | PK7MD_00, PK7MD_01, PK7MD_10, PK7MD_11, | ||
458 | PK6MD_00, PK6MD_01, PK6MD_10, PK6MD_11, | ||
459 | PK5MD_00, PK5MD_01, PK5MD_10, PK5MD_11, | ||
460 | PK4MD_00, PK4MD_01, PK4MD_10, PK4MD_11, | ||
461 | PK3MD_00, PK3MD_01, PK3MD_10, PK3MD_11, | ||
462 | PK2MD_00, PK2MD_01, PK2MD_10, PK2MD_11, | ||
463 | PK1MD_00, PK1MD_01, PK1MD_10, PK1MD_11, | ||
464 | PK0MD_00, PK0MD_01, PK0MD_10, PK0MD_11, | ||
465 | PINMUX_FUNCTION_END, | ||
466 | |||
467 | PINMUX_MARK_BEGIN, | ||
468 | /* Port A */ | ||
469 | |||
470 | /* Port B */ | ||
471 | |||
472 | /* Port C */ | ||
473 | |||
474 | /* Port D */ | ||
475 | |||
476 | /* Port E */ | ||
477 | |||
478 | /* Port F */ | ||
479 | |||
480 | /* Port G */ | ||
481 | |||
482 | /* Port H */ | ||
483 | PHAN7_MARK, PHAN6_MARK, PHAN5_MARK, PHAN4_MARK, | ||
484 | PHAN3_MARK, PHAN2_MARK, PHAN1_MARK, PHAN0_MARK, | ||
485 | |||
486 | /* Port I - not on device */ | ||
487 | |||
488 | /* Port J */ | ||
489 | |||
490 | /* Port K */ | ||
491 | |||
492 | IRQ7_PC_MARK, IRQ6_PC_MARK, IRQ5_PC_MARK, IRQ4_PC_MARK, | ||
493 | IRQ3_PG_MARK, IRQ2_PG_MARK, IRQ1_PJ_MARK, IRQ0_PJ_MARK, | ||
494 | IRQ3_PE_MARK, IRQ2_PE_MARK, IRQ1_PE_MARK, IRQ0_PE_MARK, | ||
495 | |||
496 | PINT7_PG_MARK, PINT6_PG_MARK, PINT5_PG_MARK, PINT4_PG_MARK, | ||
497 | PINT3_PG_MARK, PINT2_PG_MARK, PINT1_PG_MARK, PINT0_PG_MARK, | ||
498 | |||
499 | SD_CD_MARK, SD_D0_MARK, SD_D1_MARK, SD_D2_MARK, SD_D3_MARK, | ||
500 | SD_WP_MARK, SD_CLK_MARK, SD_CMD_MARK, | ||
501 | CRX0_MARK, CRX1_MARK, | ||
502 | CTX0_MARK, CTX1_MARK, | ||
503 | |||
504 | PWM1A_MARK, PWM1B_MARK, PWM1C_MARK, PWM1D_MARK, | ||
505 | PWM1E_MARK, PWM1F_MARK, PWM1G_MARK, PWM1H_MARK, | ||
506 | PWM2A_MARK, PWM2B_MARK, PWM2C_MARK, PWM2D_MARK, | ||
507 | PWM2E_MARK, PWM2F_MARK, PWM2G_MARK, PWM2H_MARK, | ||
508 | IERXD_MARK, IETXD_MARK, | ||
509 | CRX0_CRX1_MARK, | ||
510 | WDTOVF_MARK, | ||
511 | |||
512 | CRX0X1_MARK, | ||
513 | |||
514 | /* DMAC */ | ||
515 | TEND0_MARK, DACK0_MARK, DREQ0_MARK, | ||
516 | TEND1_MARK, DACK1_MARK, DREQ1_MARK, | ||
517 | |||
518 | /* ADC */ | ||
519 | ADTRG_MARK, | ||
520 | |||
521 | /* BSC */ | ||
522 | A25_MARK, A24_MARK, | ||
523 | A23_MARK, A22_MARK, A21_MARK, A20_MARK, | ||
524 | A19_MARK, A18_MARK, A17_MARK, A16_MARK, | ||
525 | A15_MARK, A14_MARK, A13_MARK, A12_MARK, | ||
526 | A11_MARK, A10_MARK, A9_MARK, A8_MARK, | ||
527 | A7_MARK, A6_MARK, A5_MARK, A4_MARK, | ||
528 | A3_MARK, A2_MARK, A1_MARK, A0_MARK, | ||
529 | D15_MARK, D14_MARK, D13_MARK, D12_MARK, | ||
530 | D11_MARK, D10_MARK, D9_MARK, D8_MARK, | ||
531 | D7_MARK, D6_MARK, D5_MARK, D4_MARK, | ||
532 | D3_MARK, D2_MARK, D1_MARK, D0_MARK, | ||
533 | BS_MARK, | ||
534 | CS4_MARK, CS3_MARK, CS2_MARK, CS1_MARK, CS0_MARK, | ||
535 | CS6CE1B_MARK, CS5CE1A_MARK, | ||
536 | CE2A_MARK, CE2B_MARK, | ||
537 | RD_MARK, RDWR_MARK, | ||
538 | ICIOWRAH_MARK, | ||
539 | ICIORD_MARK, | ||
540 | WE1DQMUWE_MARK, | ||
541 | WE0DQML_MARK, | ||
542 | RAS_MARK, CAS_MARK, CKE_MARK, | ||
543 | WAIT_MARK, BREQ_MARK, BACK_MARK, IOIS16_MARK, | ||
544 | |||
545 | /* TMU */ | ||
546 | TIOC0A_MARK, TIOC0B_MARK, TIOC0C_MARK, TIOC0D_MARK, | ||
547 | TIOC1A_MARK, TIOC1B_MARK, | ||
548 | TIOC2A_MARK, TIOC2B_MARK, | ||
549 | TIOC3A_MARK, TIOC3B_MARK, TIOC3C_MARK, TIOC3D_MARK, | ||
550 | TIOC4A_MARK, TIOC4B_MARK, TIOC4C_MARK, TIOC4D_MARK, | ||
551 | TCLKA_MARK, TCLKB_MARK, TCLKC_MARK, TCLKD_MARK, | ||
552 | |||
553 | /* SCIF */ | ||
554 | SCK0_MARK, SCK1_MARK, SCK2_MARK, SCK3_MARK, | ||
555 | RXD0_MARK, RXD1_MARK, RXD2_MARK, RXD3_MARK, | ||
556 | TXD0_MARK, TXD1_MARK, TXD2_MARK, TXD3_MARK, | ||
557 | RXD4_MARK, RXD5_MARK, RXD6_MARK, RXD7_MARK, | ||
558 | TXD4_MARK, TXD5_MARK, TXD6_MARK, TXD7_MARK, | ||
559 | RTS1_MARK, RTS3_MARK, | ||
560 | CTS1_MARK, CTS3_MARK, | ||
561 | |||
562 | /* RSPI */ | ||
563 | RSPCK0_MARK, RSPCK1_MARK, | ||
564 | MOSI0_MARK, MOSI1_MARK, | ||
565 | MISO0_PF12_MARK, MISO1_MARK, MISO1_PG19_MARK, | ||
566 | SSL00_MARK, SSL10_MARK, | ||
567 | |||
568 | /* IIC3 */ | ||
569 | SCL0_MARK, SCL1_MARK, SCL2_MARK, | ||
570 | SDA0_MARK, SDA1_MARK, SDA2_MARK, | ||
571 | |||
572 | /* SSI */ | ||
573 | SSISCK0_MARK, | ||
574 | SSIWS0_MARK, | ||
575 | SSITXD0_MARK, | ||
576 | SSIRXD0_MARK, | ||
577 | SSIWS1_MARK, SSIWS2_MARK, SSIWS3_MARK, | ||
578 | SSISCK1_MARK, SSISCK2_MARK, SSISCK3_MARK, | ||
579 | SSIDATA1_MARK, SSIDATA2_MARK, SSIDATA3_MARK, | ||
580 | AUDIO_CLK_MARK, | ||
581 | |||
582 | /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
583 | SIOFTXD_MARK, SIOFRXD_MARK, SIOFSYNC_MARK, SIOFSCK_MARK, | ||
584 | |||
585 | /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
586 | SPDIF_IN_MARK, SPDIF_OUT_MARK, | ||
587 | |||
588 | /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */ | ||
589 | FCE_MARK, | ||
590 | FRB_MARK, | ||
591 | |||
592 | /* VDC3 */ | ||
593 | DV_CLK_MARK, | ||
594 | DV_VSYNC_MARK, DV_HSYNC_MARK, | ||
595 | DV_DATA7_MARK, DV_DATA6_MARK, DV_DATA5_MARK, DV_DATA4_MARK, | ||
596 | DV_DATA3_MARK, DV_DATA2_MARK, DV_DATA1_MARK, DV_DATA0_MARK, | ||
597 | LCD_CLK_MARK, LCD_EXTCLK_MARK, | ||
598 | LCD_VSYNC_MARK, LCD_HSYNC_MARK, LCD_DE_MARK, | ||
599 | LCD_DATA15_MARK, LCD_DATA14_MARK, LCD_DATA13_MARK, LCD_DATA12_MARK, | ||
600 | LCD_DATA11_MARK, LCD_DATA10_MARK, LCD_DATA9_MARK, LCD_DATA8_MARK, | ||
601 | LCD_DATA7_MARK, LCD_DATA6_MARK, LCD_DATA5_MARK, LCD_DATA4_MARK, | ||
602 | LCD_DATA3_MARK, LCD_DATA2_MARK, LCD_DATA1_MARK, LCD_DATA0_MARK, | ||
603 | LCD_M_DISP_MARK, | ||
604 | PINMUX_MARK_END, | ||
605 | }; | ||
606 | |||
607 | static pinmux_enum_t pinmux_data[] = { | ||
608 | |||
609 | /* Port A */ | ||
610 | PINMUX_DATA(PA3_DATA, PA3_IN), | ||
611 | PINMUX_DATA(PA2_DATA, PA2_IN), | ||
612 | PINMUX_DATA(PA1_DATA, PA1_IN), | ||
613 | PINMUX_DATA(PA0_DATA, PA0_IN), | ||
614 | |||
615 | /* Port B */ | ||
616 | PINMUX_DATA(PB22_DATA, PB22MD_00, PB22_IN, PB22_OUT), | ||
617 | PINMUX_DATA(A22_MARK, PB22MD_01), | ||
618 | PINMUX_DATA(CS4_MARK, PB22MD_10), | ||
619 | |||
620 | PINMUX_DATA(PB21_DATA, PB21MD_0, PB21_IN, PB21_OUT), | ||
621 | PINMUX_DATA(A21_MARK, PB21MD_1), | ||
622 | PINMUX_DATA(A20_MARK, PB20MD_1), | ||
623 | PINMUX_DATA(A19_MARK, PB19MD_01), | ||
624 | PINMUX_DATA(A18_MARK, PB18MD_01), | ||
625 | PINMUX_DATA(A17_MARK, PB17MD_01), | ||
626 | PINMUX_DATA(A16_MARK, PB16MD_01), | ||
627 | PINMUX_DATA(A15_MARK, PB15MD_01), | ||
628 | PINMUX_DATA(A14_MARK, PB14MD_01), | ||
629 | PINMUX_DATA(A13_MARK, PB13MD_01), | ||
630 | PINMUX_DATA(A12_MARK, PB12MD_01), | ||
631 | PINMUX_DATA(A11_MARK, PB11MD_01), | ||
632 | PINMUX_DATA(A10_MARK, PB10MD_01), | ||
633 | PINMUX_DATA(A9_MARK, PB9MD_01), | ||
634 | PINMUX_DATA(A8_MARK, PB8MD_01), | ||
635 | PINMUX_DATA(A7_MARK, PB7MD_01), | ||
636 | PINMUX_DATA(A6_MARK, PB6MD_01), | ||
637 | PINMUX_DATA(A5_MARK, PB5MD_01), | ||
638 | PINMUX_DATA(A4_MARK, PB4MD_01), | ||
639 | PINMUX_DATA(A3_MARK, PB3MD_1), | ||
640 | PINMUX_DATA(A2_MARK, PB2MD_1), | ||
641 | PINMUX_DATA(A1_MARK, PB1MD_1), | ||
642 | |||
643 | /* Port C */ | ||
644 | PINMUX_DATA(PC10_DATA, PC10MD_0), | ||
645 | PINMUX_DATA(TIOC2B_MARK, PC1MD_1), | ||
646 | PINMUX_DATA(PC9_DATA, PC9MD_0), | ||
647 | PINMUX_DATA(TIOC2A_MARK, PC9MD_1), | ||
648 | PINMUX_DATA(PC8_DATA, PC8MD_00), | ||
649 | PINMUX_DATA(CS3_MARK, PC8MD_01), | ||
650 | PINMUX_DATA(TIOC4D_MARK, PC8MD_10), | ||
651 | PINMUX_DATA(IRQ7_PC_MARK, PC8MD_11), | ||
652 | PINMUX_DATA(PC7_DATA, PC7MD_00), | ||
653 | PINMUX_DATA(CKE_MARK, PC7MD_01), | ||
654 | PINMUX_DATA(TIOC4C_MARK, PC7MD_10), | ||
655 | PINMUX_DATA(IRQ6_PC_MARK, PC7MD_11), | ||
656 | PINMUX_DATA(PC6_DATA, PC6MD_00), | ||
657 | PINMUX_DATA(CAS_MARK, PC6MD_01), | ||
658 | PINMUX_DATA(TIOC4B_MARK, PC6MD_10), | ||
659 | PINMUX_DATA(IRQ5_PC_MARK, PC6MD_11), | ||
660 | PINMUX_DATA(PC5_DATA, PC5MD_00), | ||
661 | PINMUX_DATA(RAS_MARK, PC5MD_01), | ||
662 | PINMUX_DATA(TIOC4A_MARK, PC5MD_10), | ||
663 | PINMUX_DATA(IRQ4_PC_MARK, PC5MD_11), | ||
664 | PINMUX_DATA(PC4_DATA, PC4MD_0), | ||
665 | PINMUX_DATA(WE1DQMUWE_MARK, PC4MD_1), | ||
666 | PINMUX_DATA(PC3_DATA, PC3MD_0), | ||
667 | PINMUX_DATA(WE0DQML_MARK, PC3MD_1), | ||
668 | PINMUX_DATA(PC2_DATA, PC2MD_0), | ||
669 | PINMUX_DATA(RDWR_MARK, PC2MD_1), | ||
670 | PINMUX_DATA(PC1_DATA, PC1MD_0), | ||
671 | PINMUX_DATA(RD_MARK, PC1MD_1), | ||
672 | PINMUX_DATA(PC0_DATA, PC0MD_0), | ||
673 | PINMUX_DATA(CS0_MARK, PC0MD_1), | ||
674 | |||
675 | /* Port D */ | ||
676 | PINMUX_DATA(D15_MARK, PD15MD_01), | ||
677 | PINMUX_DATA(D14_MARK, PD14MD_01), | ||
678 | PINMUX_DATA(D13_MARK, PD13MD_01), | ||
679 | PINMUX_DATA(D12_MARK, PD12MD_01), | ||
680 | PINMUX_DATA(D11_MARK, PD11MD_01), | ||
681 | PINMUX_DATA(D10_MARK, PD10MD_01), | ||
682 | PINMUX_DATA(D9_MARK, PD9MD_01), | ||
683 | PINMUX_DATA(D8_MARK, PD8MD_01), | ||
684 | PINMUX_DATA(D7_MARK, PD7MD_01), | ||
685 | PINMUX_DATA(D6_MARK, PD6MD_01), | ||
686 | PINMUX_DATA(D5_MARK, PD5MD_01), | ||
687 | PINMUX_DATA(D4_MARK, PD4MD_01), | ||
688 | PINMUX_DATA(D3_MARK, PD3MD_01), | ||
689 | PINMUX_DATA(D2_MARK, PD2MD_01), | ||
690 | PINMUX_DATA(D1_MARK, PD1MD_01), | ||
691 | PINMUX_DATA(D0_MARK, PD0MD_01), | ||
692 | |||
693 | /* Port E */ | ||
694 | PINMUX_DATA(PE5_DATA, PE5MD_00), | ||
695 | PINMUX_DATA(SDA2_MARK, PE5MD_01), | ||
696 | PINMUX_DATA(DV_HSYNC_MARK, PE5MD_11), | ||
697 | |||
698 | PINMUX_DATA(PE4_DATA, PE4MD_00), | ||
699 | PINMUX_DATA(SCL2_MARK, PE4MD_01), | ||
700 | PINMUX_DATA(DV_VSYNC_MARK, PE4MD_11), | ||
701 | |||
702 | PINMUX_DATA(PE3_DATA, PE3MD_00), | ||
703 | PINMUX_DATA(SDA1_MARK, PE3MD_01), | ||
704 | PINMUX_DATA(IRQ3_PE_MARK, PE3MD_11), | ||
705 | |||
706 | PINMUX_DATA(PE2_DATA, PE2MD_00), | ||
707 | PINMUX_DATA(SCL1_MARK, PE2MD_01), | ||
708 | PINMUX_DATA(IRQ2_PE_MARK, PE2MD_11), | ||
709 | |||
710 | PINMUX_DATA(PE1_DATA, PE1MD_000), | ||
711 | PINMUX_DATA(SDA0_MARK, PE1MD_001), | ||
712 | PINMUX_DATA(IOIS16_MARK, PE1MD_010), | ||
713 | PINMUX_DATA(IRQ1_PE_MARK, PE1MD_011), | ||
714 | PINMUX_DATA(TCLKA_MARK, PE1MD_100), | ||
715 | PINMUX_DATA(ADTRG_MARK, PE1MD_101), | ||
716 | |||
717 | PINMUX_DATA(PE0_DATA, PE0MD_00), | ||
718 | PINMUX_DATA(SCL0_MARK, PE0MD_01), | ||
719 | PINMUX_DATA(AUDIO_CLK_MARK, PE0MD_10), | ||
720 | PINMUX_DATA(IRQ0_PE_MARK, PE0MD_11), | ||
721 | |||
722 | /* Port F */ | ||
723 | PINMUX_DATA(PF12_DATA, PF12MD_000), | ||
724 | PINMUX_DATA(BS_MARK, PF12MD_001), | ||
725 | PINMUX_DATA(MISO0_PF12_MARK, PF12MD_011), | ||
726 | PINMUX_DATA(TIOC3D_MARK, PF12MD_100), | ||
727 | PINMUX_DATA(SPDIF_OUT_MARK, PF12MD_101), | ||
728 | |||
729 | PINMUX_DATA(PF11_DATA, PF11MD_000), | ||
730 | PINMUX_DATA(A25_MARK, PF11MD_001), | ||
731 | PINMUX_DATA(SSIDATA3_MARK, PF11MD_010), | ||
732 | PINMUX_DATA(MOSI0_MARK, PF11MD_011), | ||
733 | PINMUX_DATA(TIOC3C_MARK, PF11MD_100), | ||
734 | PINMUX_DATA(SPDIF_IN_MARK, PF11MD_101), | ||
735 | |||
736 | PINMUX_DATA(PF10_DATA, PF10MD_000), | ||
737 | PINMUX_DATA(A24_MARK, PF10MD_001), | ||
738 | PINMUX_DATA(SSIWS3_MARK, PF10MD_010), | ||
739 | PINMUX_DATA(SSL00_MARK, PF10MD_011), | ||
740 | PINMUX_DATA(TIOC3B_MARK, PF10MD_100), | ||
741 | PINMUX_DATA(FCE_MARK, PF10MD_101), | ||
742 | |||
743 | PINMUX_DATA(PF9_DATA, PF9MD_000), | ||
744 | PINMUX_DATA(A23_MARK, PF9MD_001), | ||
745 | PINMUX_DATA(SSISCK3_MARK, PF9MD_010), | ||
746 | PINMUX_DATA(RSPCK0_MARK, PF9MD_011), | ||
747 | PINMUX_DATA(TIOC3A_MARK, PF9MD_100), | ||
748 | PINMUX_DATA(FRB_MARK, PF9MD_101), | ||
749 | |||
750 | PINMUX_DATA(PF8_DATA, PF8MD_00), | ||
751 | PINMUX_DATA(CE2B_MARK, PF8MD_01), | ||
752 | PINMUX_DATA(SSIDATA3_MARK, PF8MD_10), | ||
753 | PINMUX_DATA(DV_CLK_MARK, PF8MD_11), | ||
754 | |||
755 | PINMUX_DATA(PF7_DATA, PF7MD_000), | ||
756 | PINMUX_DATA(CE2A_MARK, PF7MD_001), | ||
757 | PINMUX_DATA(SSIWS3_MARK, PF7MD_010), | ||
758 | PINMUX_DATA(DV_DATA7_MARK, PF7MD_011), | ||
759 | PINMUX_DATA(TCLKD_MARK, PF7MD_100), | ||
760 | |||
761 | PINMUX_DATA(PF6_DATA, PF6MD_000), | ||
762 | PINMUX_DATA(CS6CE1B_MARK, PF6MD_001), | ||
763 | PINMUX_DATA(SSISCK3_MARK, PF6MD_010), | ||
764 | PINMUX_DATA(DV_DATA6_MARK, PF6MD_011), | ||
765 | PINMUX_DATA(TCLKB_MARK, PF6MD_100), | ||
766 | |||
767 | PINMUX_DATA(PF5_DATA, PF5MD_000), | ||
768 | PINMUX_DATA(CS5CE1A_MARK, PF5MD_001), | ||
769 | PINMUX_DATA(SSIDATA2_MARK, PF5MD_010), | ||
770 | PINMUX_DATA(DV_DATA5_MARK, PF5MD_011), | ||
771 | PINMUX_DATA(TCLKC_MARK, PF5MD_100), | ||
772 | |||
773 | PINMUX_DATA(PF4_DATA, PF4MD_000), | ||
774 | PINMUX_DATA(ICIOWRAH_MARK, PF4MD_001), | ||
775 | PINMUX_DATA(SSIWS2_MARK, PF4MD_010), | ||
776 | PINMUX_DATA(DV_DATA4_MARK, PF4MD_011), | ||
777 | PINMUX_DATA(TXD3_MARK, PF4MD_100), | ||
778 | |||
779 | PINMUX_DATA(PF3_DATA, PF3MD_000), | ||
780 | PINMUX_DATA(ICIORD_MARK, PF3MD_001), | ||
781 | PINMUX_DATA(SSISCK2_MARK, PF3MD_010), | ||
782 | PINMUX_DATA(DV_DATA3_MARK, PF3MD_011), | ||
783 | PINMUX_DATA(RXD3_MARK, PF3MD_100), | ||
784 | |||
785 | PINMUX_DATA(PF2_DATA, PF2MD_000), | ||
786 | PINMUX_DATA(BACK_MARK, PF2MD_001), | ||
787 | PINMUX_DATA(SSIDATA1_MARK, PF2MD_010), | ||
788 | PINMUX_DATA(DV_DATA2_MARK, PF2MD_011), | ||
789 | PINMUX_DATA(TXD2_MARK, PF2MD_100), | ||
790 | PINMUX_DATA(DACK0_MARK, PF2MD_101), | ||
791 | |||
792 | PINMUX_DATA(PF1_DATA, PF1MD_000), | ||
793 | PINMUX_DATA(BREQ_MARK, PF1MD_001), | ||
794 | PINMUX_DATA(SSIWS1_MARK, PF1MD_010), | ||
795 | PINMUX_DATA(DV_DATA1_MARK, PF1MD_011), | ||
796 | PINMUX_DATA(RXD2_MARK, PF1MD_100), | ||
797 | PINMUX_DATA(DREQ0_MARK, PF1MD_101), | ||
798 | |||
799 | PINMUX_DATA(PF0_DATA, PF0MD_000), | ||
800 | PINMUX_DATA(WAIT_MARK, PF0MD_001), | ||
801 | PINMUX_DATA(SSISCK1_MARK, PF0MD_010), | ||
802 | PINMUX_DATA(DV_DATA0_MARK, PF0MD_011), | ||
803 | PINMUX_DATA(SCK2_MARK, PF0MD_100), | ||
804 | PINMUX_DATA(TEND0_MARK, PF0MD_101), | ||
805 | |||
806 | /* Port G */ | ||
807 | PINMUX_DATA(PG24_DATA, PG24MD_00), | ||
808 | PINMUX_DATA(MOSI0_MARK, PG24MD_01), | ||
809 | PINMUX_DATA(TIOC0D_MARK, PG24MD_10), | ||
810 | |||
811 | PINMUX_DATA(PG23_DATA, PG23MD_00), | ||
812 | PINMUX_DATA(MOSI1_MARK, PG23MD_01), | ||
813 | PINMUX_DATA(TIOC0C_MARK, PG23MD_10), | ||
814 | |||
815 | PINMUX_DATA(PG22_DATA, PG22MD_00), | ||
816 | PINMUX_DATA(SSL10_MARK, PG22MD_01), | ||
817 | PINMUX_DATA(TIOC0B_MARK, PG22MD_10), | ||
818 | |||
819 | PINMUX_DATA(PG21_DATA, PG21MD_00), | ||
820 | PINMUX_DATA(RSPCK1_MARK, PG21MD_01), | ||
821 | PINMUX_DATA(TIOC0A_MARK, PG21MD_10), | ||
822 | |||
823 | PINMUX_DATA(PG20_DATA, PG20MD_000), | ||
824 | PINMUX_DATA(LCD_EXTCLK_MARK, PG20MD_001), | ||
825 | PINMUX_DATA(MISO1_MARK, PG20MD_011), | ||
826 | PINMUX_DATA(TXD7_MARK, PG20MD_100), | ||
827 | |||
828 | PINMUX_DATA(PG19_DATA, PG19MD_000), | ||
829 | PINMUX_DATA(LCD_CLK_MARK, PG19MD_001), | ||
830 | PINMUX_DATA(TIOC2B_MARK, PG19MD_010), | ||
831 | PINMUX_DATA(MISO1_PG19_MARK, PG19MD_011), | ||
832 | PINMUX_DATA(RXD7_MARK, PG19MD_100), | ||
833 | |||
834 | PINMUX_DATA(PG18_DATA, PG18MD_000), | ||
835 | PINMUX_DATA(LCD_DE_MARK, PG18MD_001), | ||
836 | PINMUX_DATA(TIOC2A_MARK, PG18MD_010), | ||
837 | PINMUX_DATA(SSL10_MARK, PG18MD_011), | ||
838 | PINMUX_DATA(TXD6_MARK, PG18MD_100), | ||
839 | |||
840 | PINMUX_DATA(PG17_DATA, PG17MD_000), | ||
841 | PINMUX_DATA(LCD_HSYNC_MARK, PG17MD_001), | ||
842 | PINMUX_DATA(TIOC1B_MARK, PG17MD_010), | ||
843 | PINMUX_DATA(RSPCK1_MARK, PG17MD_011), | ||
844 | PINMUX_DATA(RXD6_MARK, PG17MD_100), | ||
845 | |||
846 | PINMUX_DATA(PG16_DATA, PG16MD_000), | ||
847 | PINMUX_DATA(LCD_VSYNC_MARK, PG16MD_001), | ||
848 | PINMUX_DATA(TIOC1A_MARK, PG16MD_010), | ||
849 | PINMUX_DATA(TXD3_MARK, PG16MD_011), | ||
850 | PINMUX_DATA(CTS1_MARK, PG16MD_100), | ||
851 | |||
852 | PINMUX_DATA(PG15_DATA, PG15MD_000), | ||
853 | PINMUX_DATA(LCD_DATA15_MARK, PG15MD_001), | ||
854 | PINMUX_DATA(TIOC0D_MARK, PG15MD_010), | ||
855 | PINMUX_DATA(RXD3_MARK, PG15MD_011), | ||
856 | PINMUX_DATA(RTS1_MARK, PG15MD_100), | ||
857 | |||
858 | PINMUX_DATA(PG14_DATA, PG14MD_000), | ||
859 | PINMUX_DATA(LCD_DATA14_MARK, PG14MD_001), | ||
860 | PINMUX_DATA(TIOC0C_MARK, PG14MD_010), | ||
861 | PINMUX_DATA(SCK1_MARK, PG14MD_100), | ||
862 | |||
863 | PINMUX_DATA(PG13_DATA, PG13MD_000), | ||
864 | PINMUX_DATA(LCD_DATA13_MARK, PG13MD_001), | ||
865 | PINMUX_DATA(TIOC0B_MARK, PG13MD_010), | ||
866 | PINMUX_DATA(TXD1_MARK, PG13MD_100), | ||
867 | |||
868 | PINMUX_DATA(PG12_DATA, PG12MD_000), | ||
869 | PINMUX_DATA(LCD_DATA12_MARK, PG12MD_001), | ||
870 | PINMUX_DATA(TIOC0A_MARK, PG12MD_010), | ||
871 | PINMUX_DATA(RXD1_MARK, PG12MD_100), | ||
872 | |||
873 | PINMUX_DATA(PG11_DATA, PG11MD_000), | ||
874 | PINMUX_DATA(LCD_DATA11_MARK, PG11MD_001), | ||
875 | PINMUX_DATA(SSITXD0_MARK, PG11MD_010), | ||
876 | PINMUX_DATA(IRQ3_PG_MARK, PG11MD_011), | ||
877 | PINMUX_DATA(TXD5_MARK, PG11MD_100), | ||
878 | PINMUX_DATA(SIOFTXD_MARK, PG11MD_101), | ||
879 | |||
880 | PINMUX_DATA(PG10_DATA, PG10MD_000), | ||
881 | PINMUX_DATA(LCD_DATA10_MARK, PG10MD_001), | ||
882 | PINMUX_DATA(SSIRXD0_MARK, PG10MD_010), | ||
883 | PINMUX_DATA(IRQ2_PG_MARK, PG10MD_011), | ||
884 | PINMUX_DATA(RXD5_MARK, PG10MD_100), | ||
885 | PINMUX_DATA(SIOFRXD_MARK, PG10MD_101), | ||
886 | |||
887 | PINMUX_DATA(PG9_DATA, PG9MD_000), | ||
888 | PINMUX_DATA(LCD_DATA9_MARK, PG9MD_001), | ||
889 | PINMUX_DATA(SSIWS0_MARK, PG9MD_010), | ||
890 | PINMUX_DATA(TXD4_MARK, PG9MD_100), | ||
891 | PINMUX_DATA(SIOFSYNC_MARK, PG9MD_101), | ||
892 | |||
893 | PINMUX_DATA(PG8_DATA, PG8MD_000), | ||
894 | PINMUX_DATA(LCD_DATA8_MARK, PG8MD_001), | ||
895 | PINMUX_DATA(SSISCK0_MARK, PG8MD_010), | ||
896 | PINMUX_DATA(RXD4_MARK, PG8MD_100), | ||
897 | PINMUX_DATA(SIOFSCK_MARK, PG8MD_101), | ||
898 | |||
899 | PINMUX_DATA(PG7_DATA, PG7MD_00), | ||
900 | PINMUX_DATA(LCD_DATA7_MARK, PG7MD_01), | ||
901 | PINMUX_DATA(SD_CD_MARK, PG7MD_10), | ||
902 | PINMUX_DATA(PINT7_PG_MARK, PG7MD_11), | ||
903 | |||
904 | PINMUX_DATA(PG6_DATA, PG7MD_00), | ||
905 | PINMUX_DATA(LCD_DATA6_MARK, PG7MD_01), | ||
906 | PINMUX_DATA(SD_WP_MARK, PG7MD_10), | ||
907 | PINMUX_DATA(PINT6_PG_MARK, PG7MD_11), | ||
908 | |||
909 | PINMUX_DATA(PG5_DATA, PG5MD_00), | ||
910 | PINMUX_DATA(LCD_DATA5_MARK, PG5MD_01), | ||
911 | PINMUX_DATA(SD_D1_MARK, PG5MD_10), | ||
912 | PINMUX_DATA(PINT5_PG_MARK, PG5MD_11), | ||
913 | |||
914 | PINMUX_DATA(PG4_DATA, PG4MD_00), | ||
915 | PINMUX_DATA(LCD_DATA4_MARK, PG4MD_01), | ||
916 | PINMUX_DATA(SD_D0_MARK, PG4MD_10), | ||
917 | PINMUX_DATA(PINT4_PG_MARK, PG4MD_11), | ||
918 | |||
919 | PINMUX_DATA(PG3_DATA, PG3MD_00), | ||
920 | PINMUX_DATA(LCD_DATA3_MARK, PG3MD_01), | ||
921 | PINMUX_DATA(SD_CLK_MARK, PG3MD_10), | ||
922 | PINMUX_DATA(PINT3_PG_MARK, PG3MD_11), | ||
923 | |||
924 | PINMUX_DATA(PG2_DATA, PG2MD_00), | ||
925 | PINMUX_DATA(LCD_DATA2_MARK, PG2MD_01), | ||
926 | PINMUX_DATA(SD_CMD_MARK, PG2MD_10), | ||
927 | PINMUX_DATA(PINT2_PG_MARK, PG2MD_11), | ||
928 | |||
929 | PINMUX_DATA(PG1_DATA, PG1MD_00), | ||
930 | PINMUX_DATA(LCD_DATA1_MARK, PG1MD_01), | ||
931 | PINMUX_DATA(SD_D3_MARK, PG1MD_10), | ||
932 | PINMUX_DATA(PINT1_PG_MARK, PG1MD_11), | ||
933 | |||
934 | PINMUX_DATA(PG0_DATA, PG0MD_000), | ||
935 | PINMUX_DATA(LCD_DATA0_MARK, PG0MD_001), | ||
936 | PINMUX_DATA(SD_D2_MARK, PG0MD_010), | ||
937 | PINMUX_DATA(PINT0_PG_MARK, PG0MD_011), | ||
938 | PINMUX_DATA(WDTOVF_MARK, PG0MD_100), | ||
939 | |||
940 | /* Port H */ | ||
941 | PINMUX_DATA(PH7_DATA, PH7MD_0), | ||
942 | PINMUX_DATA(PHAN7_MARK, PH7MD_1), | ||
943 | |||
944 | PINMUX_DATA(PH6_DATA, PH6MD_0), | ||
945 | PINMUX_DATA(PHAN6_MARK, PH6MD_1), | ||
946 | |||
947 | PINMUX_DATA(PH5_DATA, PH5MD_0), | ||
948 | PINMUX_DATA(PHAN5_MARK, PH5MD_1), | ||
949 | |||
950 | PINMUX_DATA(PH4_DATA, PH4MD_0), | ||
951 | PINMUX_DATA(PHAN4_MARK, PH4MD_1), | ||
952 | |||
953 | PINMUX_DATA(PH3_DATA, PH3MD_0), | ||
954 | PINMUX_DATA(PHAN3_MARK, PH3MD_1), | ||
955 | |||
956 | PINMUX_DATA(PH2_DATA, PH2MD_0), | ||
957 | PINMUX_DATA(PHAN2_MARK, PH2MD_1), | ||
958 | |||
959 | PINMUX_DATA(PH1_DATA, PH1MD_0), | ||
960 | PINMUX_DATA(PHAN1_MARK, PH1MD_1), | ||
961 | |||
962 | PINMUX_DATA(PH0_DATA, PH0MD_0), | ||
963 | PINMUX_DATA(PHAN0_MARK, PH0MD_1), | ||
964 | |||
965 | /* Port I - not on device */ | ||
966 | |||
967 | /* Port J */ | ||
968 | PINMUX_DATA(PJ11_DATA, PJ11MD_00), | ||
969 | PINMUX_DATA(PWM2H_MARK, PJ11MD_01), | ||
970 | PINMUX_DATA(DACK1_MARK, PJ11MD_10), | ||
971 | |||
972 | PINMUX_DATA(PJ10_DATA, PJ10MD_00), | ||
973 | PINMUX_DATA(PWM2G_MARK, PJ10MD_01), | ||
974 | PINMUX_DATA(DREQ1_MARK, PJ10MD_10), | ||
975 | |||
976 | PINMUX_DATA(PJ9_DATA, PJ9MD_00), | ||
977 | PINMUX_DATA(PWM2F_MARK, PJ9MD_01), | ||
978 | PINMUX_DATA(TEND1_MARK, PJ9MD_10), | ||
979 | |||
980 | PINMUX_DATA(PJ8_DATA, PJ8MD_00), | ||
981 | PINMUX_DATA(PWM2E_MARK, PJ8MD_01), | ||
982 | PINMUX_DATA(RTS3_MARK, PJ8MD_10), | ||
983 | |||
984 | PINMUX_DATA(PJ7_DATA, PJ7MD_00), | ||
985 | PINMUX_DATA(TIOC1B_MARK, PJ7MD_01), | ||
986 | PINMUX_DATA(CTS3_MARK, PJ7MD_10), | ||
987 | |||
988 | PINMUX_DATA(PJ6_DATA, PJ6MD_00), | ||
989 | PINMUX_DATA(TIOC1A_MARK, PJ6MD_01), | ||
990 | PINMUX_DATA(SCK3_MARK, PJ6MD_10), | ||
991 | |||
992 | PINMUX_DATA(PJ5_DATA, PJ5MD_00), | ||
993 | PINMUX_DATA(IERXD_MARK, PJ5MD_01), | ||
994 | PINMUX_DATA(TXD3_MARK, PJ5MD_10), | ||
995 | |||
996 | PINMUX_DATA(PJ4_DATA, PJ4MD_00), | ||
997 | PINMUX_DATA(IETXD_MARK, PJ4MD_01), | ||
998 | PINMUX_DATA(RXD3_MARK, PJ4MD_10), | ||
999 | |||
1000 | PINMUX_DATA(PJ3_DATA, PJ3MD_00), | ||
1001 | PINMUX_DATA(CRX1_MARK, PJ3MD_01), | ||
1002 | PINMUX_DATA(CRX0X1_MARK, PJ3MD_10), | ||
1003 | PINMUX_DATA(IRQ1_PJ_MARK, PJ3MD_11), | ||
1004 | |||
1005 | PINMUX_DATA(PJ2_DATA, PJ2MD_000), | ||
1006 | PINMUX_DATA(CTX1_MARK, PJ2MD_001), | ||
1007 | PINMUX_DATA(CRX0_CRX1_MARK, PJ2MD_010), | ||
1008 | PINMUX_DATA(CS2_MARK, PJ2MD_011), | ||
1009 | PINMUX_DATA(SCK0_MARK, PJ2MD_100), | ||
1010 | PINMUX_DATA(LCD_M_DISP_MARK, PJ2MD_101), | ||
1011 | |||
1012 | PINMUX_DATA(PJ1_DATA, PJ1MD_000), | ||
1013 | PINMUX_DATA(CRX0_MARK, PJ1MD_001), | ||
1014 | PINMUX_DATA(IERXD_MARK, PJ1MD_010), | ||
1015 | PINMUX_DATA(IRQ0_PJ_MARK, PJ1MD_011), | ||
1016 | PINMUX_DATA(RXD0_MARK, PJ1MD_100), | ||
1017 | |||
1018 | PINMUX_DATA(PJ0_DATA, PJ0MD_000), | ||
1019 | PINMUX_DATA(CTX0_MARK, PJ0MD_001), | ||
1020 | PINMUX_DATA(IERXD_MARK, PJ0MD_010), | ||
1021 | PINMUX_DATA(CS1_MARK, PJ0MD_011), | ||
1022 | PINMUX_DATA(TXD0_MARK, PJ0MD_100), | ||
1023 | PINMUX_DATA(A0_MARK, PJ0MD_101), | ||
1024 | |||
1025 | /* Port K */ | ||
1026 | PINMUX_DATA(PK11_DATA, PK11MD_00), | ||
1027 | PINMUX_DATA(PWM2D_MARK, PK11MD_01), | ||
1028 | PINMUX_DATA(SSITXD0_MARK, PK11MD_10), | ||
1029 | |||
1030 | PINMUX_DATA(PK10_DATA, PK10MD_00), | ||
1031 | PINMUX_DATA(PWM2C_MARK, PK10MD_01), | ||
1032 | PINMUX_DATA(SSIRXD0_MARK, PK10MD_10), | ||
1033 | |||
1034 | PINMUX_DATA(PK9_DATA, PK9MD_00), | ||
1035 | PINMUX_DATA(PWM2B_MARK, PK9MD_01), | ||
1036 | PINMUX_DATA(SSIWS0_MARK, PK9MD_10), | ||
1037 | |||
1038 | PINMUX_DATA(PK8_DATA, PK8MD_00), | ||
1039 | PINMUX_DATA(PWM2A_MARK, PK8MD_01), | ||
1040 | PINMUX_DATA(SSISCK0_MARK, PK8MD_10), | ||
1041 | |||
1042 | PINMUX_DATA(PK7_DATA, PK7MD_00), | ||
1043 | PINMUX_DATA(PWM1H_MARK, PK7MD_01), | ||
1044 | PINMUX_DATA(SD_CD_MARK, PK7MD_10), | ||
1045 | |||
1046 | PINMUX_DATA(PK6_DATA, PK6MD_00), | ||
1047 | PINMUX_DATA(PWM1G_MARK, PK6MD_01), | ||
1048 | PINMUX_DATA(SD_WP_MARK, PK6MD_10), | ||
1049 | |||
1050 | PINMUX_DATA(PK5_DATA, PK5MD_00), | ||
1051 | PINMUX_DATA(PWM1F_MARK, PK5MD_01), | ||
1052 | PINMUX_DATA(SD_D1_MARK, PK5MD_10), | ||
1053 | |||
1054 | PINMUX_DATA(PK4_DATA, PK4MD_00), | ||
1055 | PINMUX_DATA(PWM1E_MARK, PK4MD_01), | ||
1056 | PINMUX_DATA(SD_D0_MARK, PK4MD_10), | ||
1057 | |||
1058 | PINMUX_DATA(PK3_DATA, PK3MD_00), | ||
1059 | PINMUX_DATA(PWM1D_MARK, PK3MD_01), | ||
1060 | PINMUX_DATA(SD_CLK_MARK, PK3MD_10), | ||
1061 | |||
1062 | PINMUX_DATA(PK2_DATA, PK2MD_00), | ||
1063 | PINMUX_DATA(PWM1C_MARK, PK2MD_01), | ||
1064 | PINMUX_DATA(SD_CMD_MARK, PK2MD_10), | ||
1065 | |||
1066 | PINMUX_DATA(PK1_DATA, PK1MD_00), | ||
1067 | PINMUX_DATA(PWM1B_MARK, PK1MD_01), | ||
1068 | PINMUX_DATA(SD_D3_MARK, PK1MD_10), | ||
1069 | |||
1070 | PINMUX_DATA(PK0_DATA, PK0MD_00), | ||
1071 | PINMUX_DATA(PWM1A_MARK, PK0MD_01), | ||
1072 | PINMUX_DATA(SD_D2_MARK, PK0MD_10), | ||
1073 | }; | ||
1074 | |||
1075 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1076 | |||
1077 | /* Port A */ | ||
1078 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
1079 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
1080 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
1081 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
1082 | |||
1083 | /* Port B */ | ||
1084 | PINMUX_GPIO(GPIO_PB22, PB22_DATA), | ||
1085 | PINMUX_GPIO(GPIO_PB21, PB21_DATA), | ||
1086 | PINMUX_GPIO(GPIO_PB20, PB20_DATA), | ||
1087 | PINMUX_GPIO(GPIO_PB19, PB19_DATA), | ||
1088 | PINMUX_GPIO(GPIO_PB18, PB18_DATA), | ||
1089 | PINMUX_GPIO(GPIO_PB17, PB17_DATA), | ||
1090 | PINMUX_GPIO(GPIO_PB16, PB16_DATA), | ||
1091 | PINMUX_GPIO(GPIO_PB15, PB15_DATA), | ||
1092 | PINMUX_GPIO(GPIO_PB14, PB14_DATA), | ||
1093 | PINMUX_GPIO(GPIO_PB13, PB13_DATA), | ||
1094 | PINMUX_GPIO(GPIO_PB12, PB12_DATA), | ||
1095 | PINMUX_GPIO(GPIO_PB11, PB11_DATA), | ||
1096 | PINMUX_GPIO(GPIO_PB10, PB10_DATA), | ||
1097 | PINMUX_GPIO(GPIO_PB9, PB9_DATA), | ||
1098 | PINMUX_GPIO(GPIO_PB8, PB8_DATA), | ||
1099 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
1100 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
1101 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
1102 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
1103 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
1104 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
1105 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
1106 | |||
1107 | /* Port C */ | ||
1108 | PINMUX_GPIO(GPIO_PC10, PC10_DATA), | ||
1109 | PINMUX_GPIO(GPIO_PC9, PC9_DATA), | ||
1110 | PINMUX_GPIO(GPIO_PC8, PC8_DATA), | ||
1111 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
1112 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
1113 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
1114 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
1115 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
1116 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
1117 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
1118 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
1119 | |||
1120 | /* Port D */ | ||
1121 | PINMUX_GPIO(GPIO_PD15, PD15_DATA), | ||
1122 | PINMUX_GPIO(GPIO_PD14, PD14_DATA), | ||
1123 | PINMUX_GPIO(GPIO_PD13, PD13_DATA), | ||
1124 | PINMUX_GPIO(GPIO_PD12, PD12_DATA), | ||
1125 | PINMUX_GPIO(GPIO_PD11, PD11_DATA), | ||
1126 | PINMUX_GPIO(GPIO_PD10, PD10_DATA), | ||
1127 | PINMUX_GPIO(GPIO_PD9, PD9_DATA), | ||
1128 | PINMUX_GPIO(GPIO_PD8, PD8_DATA), | ||
1129 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
1130 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
1131 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
1132 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
1133 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
1134 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
1135 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
1136 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
1137 | |||
1138 | /* Port E */ | ||
1139 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
1140 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
1141 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
1142 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
1143 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
1144 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
1145 | |||
1146 | /* Port F */ | ||
1147 | PINMUX_GPIO(GPIO_PF12, PF12_DATA), | ||
1148 | PINMUX_GPIO(GPIO_PF11, PF11_DATA), | ||
1149 | PINMUX_GPIO(GPIO_PF10, PF10_DATA), | ||
1150 | PINMUX_GPIO(GPIO_PF9, PF9_DATA), | ||
1151 | PINMUX_GPIO(GPIO_PF8, PF8_DATA), | ||
1152 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
1153 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
1154 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
1155 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
1156 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
1157 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
1158 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
1159 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
1160 | |||
1161 | /* Port G */ | ||
1162 | PINMUX_GPIO(GPIO_PG24, PG24_DATA), | ||
1163 | PINMUX_GPIO(GPIO_PG23, PG23_DATA), | ||
1164 | PINMUX_GPIO(GPIO_PG22, PG22_DATA), | ||
1165 | PINMUX_GPIO(GPIO_PG21, PG21_DATA), | ||
1166 | PINMUX_GPIO(GPIO_PG20, PG20_DATA), | ||
1167 | PINMUX_GPIO(GPIO_PG19, PG19_DATA), | ||
1168 | PINMUX_GPIO(GPIO_PG18, PG18_DATA), | ||
1169 | PINMUX_GPIO(GPIO_PG17, PG17_DATA), | ||
1170 | PINMUX_GPIO(GPIO_PG16, PG16_DATA), | ||
1171 | PINMUX_GPIO(GPIO_PG15, PG15_DATA), | ||
1172 | PINMUX_GPIO(GPIO_PG14, PG14_DATA), | ||
1173 | PINMUX_GPIO(GPIO_PG13, PG13_DATA), | ||
1174 | PINMUX_GPIO(GPIO_PG12, PG12_DATA), | ||
1175 | PINMUX_GPIO(GPIO_PG11, PG11_DATA), | ||
1176 | PINMUX_GPIO(GPIO_PG10, PG10_DATA), | ||
1177 | PINMUX_GPIO(GPIO_PG9, PG9_DATA), | ||
1178 | PINMUX_GPIO(GPIO_PG8, PG8_DATA), | ||
1179 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
1180 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
1181 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
1182 | PINMUX_GPIO(GPIO_PG4, PG4_DATA), | ||
1183 | PINMUX_GPIO(GPIO_PG3, PG3_DATA), | ||
1184 | PINMUX_GPIO(GPIO_PG2, PG2_DATA), | ||
1185 | PINMUX_GPIO(GPIO_PG1, PG1_DATA), | ||
1186 | PINMUX_GPIO(GPIO_PG0, PG0_DATA), | ||
1187 | |||
1188 | /* Port H - Port H does not have a Data Register */ | ||
1189 | |||
1190 | /* Port I - not on device */ | ||
1191 | |||
1192 | /* Port J */ | ||
1193 | PINMUX_GPIO(GPIO_PJ11, PJ11_DATA), | ||
1194 | PINMUX_GPIO(GPIO_PJ10, PJ10_DATA), | ||
1195 | PINMUX_GPIO(GPIO_PJ9, PJ9_DATA), | ||
1196 | PINMUX_GPIO(GPIO_PJ8, PJ8_DATA), | ||
1197 | PINMUX_GPIO(GPIO_PJ7, PJ7_DATA), | ||
1198 | PINMUX_GPIO(GPIO_PJ6, PJ6_DATA), | ||
1199 | PINMUX_GPIO(GPIO_PJ5, PJ5_DATA), | ||
1200 | PINMUX_GPIO(GPIO_PJ4, PJ4_DATA), | ||
1201 | PINMUX_GPIO(GPIO_PJ3, PJ3_DATA), | ||
1202 | PINMUX_GPIO(GPIO_PJ2, PJ2_DATA), | ||
1203 | PINMUX_GPIO(GPIO_PJ1, PJ1_DATA), | ||
1204 | PINMUX_GPIO(GPIO_PJ0, PJ0_DATA), | ||
1205 | |||
1206 | /* Port K */ | ||
1207 | PINMUX_GPIO(GPIO_PK11, PK11_DATA), | ||
1208 | PINMUX_GPIO(GPIO_PK10, PK10_DATA), | ||
1209 | PINMUX_GPIO(GPIO_PK9, PK9_DATA), | ||
1210 | PINMUX_GPIO(GPIO_PK8, PK8_DATA), | ||
1211 | PINMUX_GPIO(GPIO_PK7, PK7_DATA), | ||
1212 | PINMUX_GPIO(GPIO_PK6, PK6_DATA), | ||
1213 | PINMUX_GPIO(GPIO_PK5, PK5_DATA), | ||
1214 | PINMUX_GPIO(GPIO_PK4, PK4_DATA), | ||
1215 | PINMUX_GPIO(GPIO_PK3, PK3_DATA), | ||
1216 | PINMUX_GPIO(GPIO_PK2, PK2_DATA), | ||
1217 | PINMUX_GPIO(GPIO_PK1, PK1_DATA), | ||
1218 | PINMUX_GPIO(GPIO_PK0, PK0_DATA), | ||
1219 | |||
1220 | /* INTC */ | ||
1221 | PINMUX_GPIO(GPIO_FN_PINT7_PG, PINT7_PG_MARK), | ||
1222 | PINMUX_GPIO(GPIO_FN_PINT6_PG, PINT6_PG_MARK), | ||
1223 | PINMUX_GPIO(GPIO_FN_PINT5_PG, PINT5_PG_MARK), | ||
1224 | PINMUX_GPIO(GPIO_FN_PINT4_PG, PINT4_PG_MARK), | ||
1225 | PINMUX_GPIO(GPIO_FN_PINT3_PG, PINT3_PG_MARK), | ||
1226 | PINMUX_GPIO(GPIO_FN_PINT2_PG, PINT2_PG_MARK), | ||
1227 | PINMUX_GPIO(GPIO_FN_PINT1_PG, PINT1_PG_MARK), | ||
1228 | |||
1229 | PINMUX_GPIO(GPIO_FN_IRQ7_PC, IRQ7_PC_MARK), | ||
1230 | PINMUX_GPIO(GPIO_FN_IRQ6_PC, IRQ6_PC_MARK), | ||
1231 | PINMUX_GPIO(GPIO_FN_IRQ5_PC, IRQ5_PC_MARK), | ||
1232 | PINMUX_GPIO(GPIO_FN_IRQ4_PC, IRQ4_PC_MARK), | ||
1233 | PINMUX_GPIO(GPIO_FN_IRQ3_PG, IRQ3_PG_MARK), | ||
1234 | PINMUX_GPIO(GPIO_FN_IRQ2_PG, IRQ2_PG_MARK), | ||
1235 | PINMUX_GPIO(GPIO_FN_IRQ1_PJ, IRQ1_PJ_MARK), | ||
1236 | PINMUX_GPIO(GPIO_FN_IRQ0_PJ, IRQ0_PJ_MARK), | ||
1237 | PINMUX_GPIO(GPIO_FN_IRQ3_PE, IRQ3_PE_MARK), | ||
1238 | PINMUX_GPIO(GPIO_FN_IRQ2_PE, IRQ2_PE_MARK), | ||
1239 | PINMUX_GPIO(GPIO_FN_IRQ1_PE, IRQ1_PE_MARK), | ||
1240 | PINMUX_GPIO(GPIO_FN_IRQ0_PE, IRQ0_PE_MARK), | ||
1241 | |||
1242 | /* WDT */ | ||
1243 | PINMUX_GPIO(GPIO_FN_WDTOVF, WDTOVF_MARK), | ||
1244 | |||
1245 | /* CAN */ | ||
1246 | PINMUX_GPIO(GPIO_FN_CTX1, CTX1_MARK), | ||
1247 | PINMUX_GPIO(GPIO_FN_CRX1, CRX1_MARK), | ||
1248 | PINMUX_GPIO(GPIO_FN_CTX0, CTX0_MARK), | ||
1249 | PINMUX_GPIO(GPIO_FN_CRX0, CRX0_MARK), | ||
1250 | PINMUX_GPIO(GPIO_FN_CRX0_CRX1, CRX0_CRX1_MARK), | ||
1251 | |||
1252 | /* DMAC */ | ||
1253 | PINMUX_GPIO(GPIO_FN_TEND0, TEND0_MARK), | ||
1254 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
1255 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1256 | PINMUX_GPIO(GPIO_FN_TEND1, TEND1_MARK), | ||
1257 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
1258 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
1259 | |||
1260 | /* ADC */ | ||
1261 | PINMUX_GPIO(GPIO_FN_ADTRG, ADTRG_MARK), | ||
1262 | |||
1263 | /* BSCh */ | ||
1264 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1265 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1266 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1267 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1268 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
1269 | PINMUX_GPIO(GPIO_FN_A20, A20_MARK), | ||
1270 | PINMUX_GPIO(GPIO_FN_A19, A19_MARK), | ||
1271 | PINMUX_GPIO(GPIO_FN_A18, A18_MARK), | ||
1272 | PINMUX_GPIO(GPIO_FN_A17, A17_MARK), | ||
1273 | PINMUX_GPIO(GPIO_FN_A16, A16_MARK), | ||
1274 | PINMUX_GPIO(GPIO_FN_A15, A15_MARK), | ||
1275 | PINMUX_GPIO(GPIO_FN_A14, A14_MARK), | ||
1276 | PINMUX_GPIO(GPIO_FN_A13, A13_MARK), | ||
1277 | PINMUX_GPIO(GPIO_FN_A12, A12_MARK), | ||
1278 | PINMUX_GPIO(GPIO_FN_A11, A11_MARK), | ||
1279 | PINMUX_GPIO(GPIO_FN_A10, A10_MARK), | ||
1280 | PINMUX_GPIO(GPIO_FN_A9, A9_MARK), | ||
1281 | PINMUX_GPIO(GPIO_FN_A8, A8_MARK), | ||
1282 | PINMUX_GPIO(GPIO_FN_A7, A7_MARK), | ||
1283 | PINMUX_GPIO(GPIO_FN_A6, A6_MARK), | ||
1284 | PINMUX_GPIO(GPIO_FN_A5, A5_MARK), | ||
1285 | PINMUX_GPIO(GPIO_FN_A4, A4_MARK), | ||
1286 | PINMUX_GPIO(GPIO_FN_A3, A3_MARK), | ||
1287 | PINMUX_GPIO(GPIO_FN_A2, A2_MARK), | ||
1288 | PINMUX_GPIO(GPIO_FN_A1, A1_MARK), | ||
1289 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
1290 | |||
1291 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1292 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1293 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1294 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1295 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1296 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1297 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1298 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1299 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1300 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1301 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1302 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1303 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1304 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1305 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1306 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1307 | |||
1308 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1309 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
1310 | PINMUX_GPIO(GPIO_FN_CS3, CS3_MARK), | ||
1311 | PINMUX_GPIO(GPIO_FN_CS2, CS2_MARK), | ||
1312 | PINMUX_GPIO(GPIO_FN_CS1, CS1_MARK), | ||
1313 | PINMUX_GPIO(GPIO_FN_CS0, CS0_MARK), | ||
1314 | PINMUX_GPIO(GPIO_FN_CS6CE1B, CS6CE1B_MARK), | ||
1315 | PINMUX_GPIO(GPIO_FN_CS5CE1A, CS5CE1A_MARK), | ||
1316 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
1317 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
1318 | PINMUX_GPIO(GPIO_FN_RD, RD_MARK), | ||
1319 | PINMUX_GPIO(GPIO_FN_RDWR, RDWR_MARK), | ||
1320 | PINMUX_GPIO(GPIO_FN_ICIOWRAH, ICIOWRAH_MARK), | ||
1321 | PINMUX_GPIO(GPIO_FN_ICIORD, ICIORD_MARK), | ||
1322 | PINMUX_GPIO(GPIO_FN_WE1DQMUWE, WE1DQMUWE_MARK), | ||
1323 | PINMUX_GPIO(GPIO_FN_WE0DQML, WE0DQML_MARK), | ||
1324 | PINMUX_GPIO(GPIO_FN_RAS, RAS_MARK), | ||
1325 | PINMUX_GPIO(GPIO_FN_CAS, CAS_MARK), | ||
1326 | PINMUX_GPIO(GPIO_FN_CKE, CKE_MARK), | ||
1327 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1328 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
1329 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
1330 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1331 | |||
1332 | /* TMU */ | ||
1333 | PINMUX_GPIO(GPIO_FN_TIOC4D, TIOC4D_MARK), | ||
1334 | PINMUX_GPIO(GPIO_FN_TIOC4C, TIOC4C_MARK), | ||
1335 | PINMUX_GPIO(GPIO_FN_TIOC4B, TIOC4B_MARK), | ||
1336 | PINMUX_GPIO(GPIO_FN_TIOC4A, TIOC4A_MARK), | ||
1337 | PINMUX_GPIO(GPIO_FN_TIOC3D, TIOC3D_MARK), | ||
1338 | PINMUX_GPIO(GPIO_FN_TIOC3C, TIOC3C_MARK), | ||
1339 | PINMUX_GPIO(GPIO_FN_TIOC3B, TIOC3B_MARK), | ||
1340 | PINMUX_GPIO(GPIO_FN_TIOC3A, TIOC3A_MARK), | ||
1341 | PINMUX_GPIO(GPIO_FN_TIOC2B, TIOC2B_MARK), | ||
1342 | PINMUX_GPIO(GPIO_FN_TIOC1B, TIOC1B_MARK), | ||
1343 | PINMUX_GPIO(GPIO_FN_TIOC2A, TIOC2A_MARK), | ||
1344 | PINMUX_GPIO(GPIO_FN_TIOC1A, TIOC1A_MARK), | ||
1345 | PINMUX_GPIO(GPIO_FN_TIOC0D, TIOC0D_MARK), | ||
1346 | PINMUX_GPIO(GPIO_FN_TIOC0C, TIOC0C_MARK), | ||
1347 | PINMUX_GPIO(GPIO_FN_TIOC0B, TIOC0B_MARK), | ||
1348 | PINMUX_GPIO(GPIO_FN_TIOC0A, TIOC0A_MARK), | ||
1349 | PINMUX_GPIO(GPIO_FN_TCLKD, TCLKD_MARK), | ||
1350 | PINMUX_GPIO(GPIO_FN_TCLKC, TCLKC_MARK), | ||
1351 | PINMUX_GPIO(GPIO_FN_TCLKB, TCLKB_MARK), | ||
1352 | PINMUX_GPIO(GPIO_FN_TCLKA, TCLKA_MARK), | ||
1353 | |||
1354 | /* SCIF */ | ||
1355 | PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), | ||
1356 | PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), | ||
1357 | PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), | ||
1358 | PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), | ||
1359 | PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), | ||
1360 | PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), | ||
1361 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
1362 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
1363 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
1364 | PINMUX_GPIO(GPIO_FN_RTS3, RTS3_MARK), | ||
1365 | PINMUX_GPIO(GPIO_FN_CTS3, CTS3_MARK), | ||
1366 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
1367 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
1368 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
1369 | PINMUX_GPIO(GPIO_FN_TXD4, TXD4_MARK), | ||
1370 | PINMUX_GPIO(GPIO_FN_RXD4, RXD4_MARK), | ||
1371 | PINMUX_GPIO(GPIO_FN_TXD5, TXD5_MARK), | ||
1372 | PINMUX_GPIO(GPIO_FN_RXD5, RXD5_MARK), | ||
1373 | PINMUX_GPIO(GPIO_FN_TXD6, TXD6_MARK), | ||
1374 | PINMUX_GPIO(GPIO_FN_RXD6, RXD6_MARK), | ||
1375 | PINMUX_GPIO(GPIO_FN_TXD7, TXD7_MARK), | ||
1376 | PINMUX_GPIO(GPIO_FN_RXD7, RXD7_MARK), | ||
1377 | PINMUX_GPIO(GPIO_FN_RTS1, RTS1_MARK), | ||
1378 | PINMUX_GPIO(GPIO_FN_CTS1, CTS1_MARK), | ||
1379 | |||
1380 | /* RSPI */ | ||
1381 | PINMUX_GPIO(GPIO_FN_RSPCK0, RSPCK0_MARK), | ||
1382 | PINMUX_GPIO(GPIO_FN_MOSI0, MOSI0_MARK), | ||
1383 | PINMUX_GPIO(GPIO_FN_MISO0_PF12, MISO0_PF12_MARK), | ||
1384 | PINMUX_GPIO(GPIO_FN_MISO1, MISO1_MARK), | ||
1385 | PINMUX_GPIO(GPIO_FN_SSL00, SSL00_MARK), | ||
1386 | PINMUX_GPIO(GPIO_FN_RSPCK1, RSPCK1_MARK), | ||
1387 | PINMUX_GPIO(GPIO_FN_MOSI1, MOSI1_MARK), | ||
1388 | PINMUX_GPIO(GPIO_FN_MISO1_PG19, MISO1_PG19_MARK), | ||
1389 | PINMUX_GPIO(GPIO_FN_SSL10, SSL10_MARK), | ||
1390 | |||
1391 | /* IIC3 */ | ||
1392 | PINMUX_GPIO(GPIO_FN_SCL0, SCL0_MARK), | ||
1393 | PINMUX_GPIO(GPIO_FN_SCL1, SCL1_MARK), | ||
1394 | PINMUX_GPIO(GPIO_FN_SCL2, SCL2_MARK), | ||
1395 | PINMUX_GPIO(GPIO_FN_SDA0, SDA0_MARK), | ||
1396 | PINMUX_GPIO(GPIO_FN_SDA1, SDA1_MARK), | ||
1397 | PINMUX_GPIO(GPIO_FN_SDA2, SDA2_MARK), | ||
1398 | |||
1399 | /* SSI */ | ||
1400 | PINMUX_GPIO(GPIO_FN_SSISCK0, SSISCK0_MARK), | ||
1401 | PINMUX_GPIO(GPIO_FN_SSIWS0, SSIWS0_MARK), | ||
1402 | PINMUX_GPIO(GPIO_FN_SSITXD0, SSITXD0_MARK), | ||
1403 | PINMUX_GPIO(GPIO_FN_SSIRXD0, SSIRXD0_MARK), | ||
1404 | PINMUX_GPIO(GPIO_FN_SSIWS1, SSIWS1_MARK), | ||
1405 | PINMUX_GPIO(GPIO_FN_SSIWS2, SSIWS2_MARK), | ||
1406 | PINMUX_GPIO(GPIO_FN_SSIWS3, SSIWS3_MARK), | ||
1407 | PINMUX_GPIO(GPIO_FN_SSISCK1, SSISCK1_MARK), | ||
1408 | PINMUX_GPIO(GPIO_FN_SSISCK2, SSISCK2_MARK), | ||
1409 | PINMUX_GPIO(GPIO_FN_SSISCK3, SSISCK3_MARK), | ||
1410 | PINMUX_GPIO(GPIO_FN_SSIDATA1, SSIDATA1_MARK), | ||
1411 | PINMUX_GPIO(GPIO_FN_SSIDATA2, SSIDATA2_MARK), | ||
1412 | PINMUX_GPIO(GPIO_FN_SSIDATA3, SSIDATA3_MARK), | ||
1413 | PINMUX_GPIO(GPIO_FN_AUDIO_CLK, AUDIO_CLK_MARK), | ||
1414 | |||
1415 | /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
1416 | PINMUX_GPIO(GPIO_FN_SIOFTXD, SIOFTXD_MARK), | ||
1417 | PINMUX_GPIO(GPIO_FN_SIOFRXD, SIOFRXD_MARK), | ||
1418 | PINMUX_GPIO(GPIO_FN_SIOFSYNC, SIOFSYNC_MARK), | ||
1419 | PINMUX_GPIO(GPIO_FN_SIOFSCK, SIOFSCK_MARK), | ||
1420 | |||
1421 | /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
1422 | PINMUX_GPIO(GPIO_FN_SPDIF_IN, SPDIF_IN_MARK), | ||
1423 | PINMUX_GPIO(GPIO_FN_SPDIF_OUT, SPDIF_OUT_MARK), | ||
1424 | |||
1425 | /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */ | ||
1426 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1427 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1428 | |||
1429 | /* VDC3 */ | ||
1430 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1431 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1432 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1433 | |||
1434 | PINMUX_GPIO(GPIO_FN_DV_DATA7, DV_DATA7_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_DV_DATA6, DV_DATA6_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_DV_DATA5, DV_DATA5_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_DV_DATA4, DV_DATA4_MARK), | ||
1438 | PINMUX_GPIO(GPIO_FN_DV_DATA3, DV_DATA3_MARK), | ||
1439 | PINMUX_GPIO(GPIO_FN_DV_DATA2, DV_DATA2_MARK), | ||
1440 | PINMUX_GPIO(GPIO_FN_DV_DATA1, DV_DATA1_MARK), | ||
1441 | PINMUX_GPIO(GPIO_FN_DV_DATA0, DV_DATA0_MARK), | ||
1442 | |||
1443 | PINMUX_GPIO(GPIO_FN_LCD_CLK, LCD_CLK_MARK), | ||
1444 | PINMUX_GPIO(GPIO_FN_LCD_EXTCLK, LCD_EXTCLK_MARK), | ||
1445 | PINMUX_GPIO(GPIO_FN_LCD_VSYNC, LCD_VSYNC_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_LCD_HSYNC, LCD_HSYNC_MARK), | ||
1447 | PINMUX_GPIO(GPIO_FN_LCD_DE, LCD_DE_MARK), | ||
1448 | |||
1449 | PINMUX_GPIO(GPIO_FN_LCD_DATA15, LCD_DATA15_MARK), | ||
1450 | PINMUX_GPIO(GPIO_FN_LCD_DATA14, LCD_DATA14_MARK), | ||
1451 | PINMUX_GPIO(GPIO_FN_LCD_DATA13, LCD_DATA13_MARK), | ||
1452 | PINMUX_GPIO(GPIO_FN_LCD_DATA12, LCD_DATA12_MARK), | ||
1453 | PINMUX_GPIO(GPIO_FN_LCD_DATA11, LCD_DATA11_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_LCD_DATA10, LCD_DATA10_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_LCD_DATA9, LCD_DATA9_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_LCD_DATA8, LCD_DATA8_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_LCD_DATA7, LCD_DATA7_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_LCD_DATA6, LCD_DATA6_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_LCD_DATA5, LCD_DATA5_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_LCD_DATA4, LCD_DATA4_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_LCD_DATA3, LCD_DATA3_MARK), | ||
1462 | PINMUX_GPIO(GPIO_FN_LCD_DATA2, LCD_DATA2_MARK), | ||
1463 | PINMUX_GPIO(GPIO_FN_LCD_DATA1, LCD_DATA1_MARK), | ||
1464 | PINMUX_GPIO(GPIO_FN_LCD_DATA0, LCD_DATA0_MARK), | ||
1465 | |||
1466 | PINMUX_GPIO(GPIO_FN_LCD_M_DISP, LCD_M_DISP_MARK), | ||
1467 | }; | ||
1468 | |||
1469 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1470 | { PINMUX_CFG_REG("PAIOR0", 0xfffe3812, 16, 1) { | ||
1471 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1472 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1473 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1474 | PA3_IN, PA3_OUT, | ||
1475 | PA2_IN, PA2_OUT, | ||
1476 | PA1_IN, PA1_OUT, | ||
1477 | PA0_IN, PA0_OUT } | ||
1478 | }, | ||
1479 | |||
1480 | { PINMUX_CFG_REG("PBCR5", 0xfffe3824, 16, 4) { | ||
1481 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1482 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1483 | PB22MD_00, PB22MD_01, PB22MD_10, 0, 0, 0, 0, 0, | ||
1484 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1485 | PB21MD_0, PB21MD_1, 0, 0, 0, 0, 0, 0, | ||
1486 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1487 | 0, PB20MD_1, 0, 0, 0, 0, 0, 0, | ||
1488 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1489 | |||
1490 | }, | ||
1491 | { PINMUX_CFG_REG("PBCR4", 0xfffe3826, 16, 4) { | ||
1492 | 0, PB19MD_01, 0, 0, 0, 0, 0, 0, | ||
1493 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1494 | 0, PB18MD_01, 0, 0, 0, 0, 0, 0, | ||
1495 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1496 | 0, PB17MD_01, 0, 0, 0, 0, 0, 0, | ||
1497 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1498 | 0, PB16MD_01, 0, 0, 0, 0, 0, 0, | ||
1499 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1500 | }, | ||
1501 | { PINMUX_CFG_REG("PBCR3", 0xfffe3828, 16, 4) { | ||
1502 | 0, PB15MD_01, 0, 0, 0, 0, 0, 0, | ||
1503 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1504 | 0, PB14MD_01, 0, 0, 0, 0, 0, 0, | ||
1505 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1506 | 0, PB13MD_01, 0, 0, 0, 0, 0, 0, | ||
1507 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1508 | 0, PB12MD_01, 0, 0, 0, 0, 0, 0, | ||
1509 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1510 | }, | ||
1511 | { PINMUX_CFG_REG("PBCR2", 0xfffe382a, 16, 4) { | ||
1512 | 0, PB11MD_01, 0, 0, 0, 0, 0, 0, | ||
1513 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1514 | 0, PB10MD_01, 0, 0, 0, 0, 0, 0, | ||
1515 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1516 | 0, PB9MD_01, 0, 0, 0, 0, 0, 0, | ||
1517 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1518 | 0, PB8MD_01, 0, 0, 0, 0, 0, 0, | ||
1519 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1520 | }, | ||
1521 | { PINMUX_CFG_REG("PBCR1", 0xfffe382c, 16, 4) { | ||
1522 | 0, PB7MD_01, 0, 0, 0, 0, 0, 0, | ||
1523 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1524 | 0, PB6MD_01, 0, 0, 0, 0, 0, 0, | ||
1525 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1526 | 0, PB5MD_01, 0, 0, 0, 0, 0, 0, | ||
1527 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1528 | 0, PB4MD_01, 0, 0, 0, 0, 0, 0, | ||
1529 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1530 | }, | ||
1531 | { PINMUX_CFG_REG("PBCR0", 0xfffe382e, 16, 4) { | ||
1532 | 0, PB3MD_1, 0, 0, 0, 0, 0, 0, | ||
1533 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1534 | 0, PB2MD_1, 0, 0, 0, 0, 0, 0, | ||
1535 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1536 | 0, PB1MD_1, 0, 0, 0, 0, 0, 0, | ||
1537 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1538 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1539 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1540 | }, | ||
1541 | |||
1542 | { PINMUX_CFG_REG("PBIOR1", 0xfffe3830, 16, 1) { | ||
1543 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1544 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1545 | 0, 0, | ||
1546 | PB22_IN, PB22_OUT, | ||
1547 | PB21_IN, PB21_OUT, | ||
1548 | PB20_IN, PB20_OUT, | ||
1549 | PB19_IN, PB19_OUT, | ||
1550 | PB18_IN, PB18_OUT, | ||
1551 | PB17_IN, PB17_OUT, | ||
1552 | PB16_IN, PB16_OUT } | ||
1553 | }, | ||
1554 | |||
1555 | { PINMUX_CFG_REG("PBIOR0", 0xfffe3832, 16, 1) { | ||
1556 | PB15_IN, PB15_OUT, | ||
1557 | PB14_IN, PB14_OUT, | ||
1558 | PB13_IN, PB13_OUT, | ||
1559 | PB12_IN, PB12_OUT, | ||
1560 | PB11_IN, PB11_OUT, | ||
1561 | PB10_IN, PB10_OUT, | ||
1562 | PB9_IN, PB9_OUT, | ||
1563 | PB8_IN, PB8_OUT, | ||
1564 | PB7_IN, PB7_OUT, | ||
1565 | PB6_IN, PB6_OUT, | ||
1566 | PB5_IN, PB5_OUT, | ||
1567 | PB4_IN, PB4_OUT, | ||
1568 | PB3_IN, PB3_OUT, | ||
1569 | PB2_IN, PB2_OUT, | ||
1570 | PB1_IN, PB1_OUT, | ||
1571 | 0, 0 } | ||
1572 | }, | ||
1573 | |||
1574 | { PINMUX_CFG_REG("PCCR2", 0xfffe384a, 16, 4) { | ||
1575 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1576 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1577 | PC10MD_0, PC10MD_1, 0, 0, 0, 0, 0, 0, | ||
1578 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1579 | PC9MD_0, PC9MD_1, 0, 0, 0, 0, 0, 0, | ||
1580 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1581 | PC8MD_00, PC8MD_01, PC8MD_10, PC8MD_11, 0, 0, 0, 0, | ||
1582 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1583 | }, | ||
1584 | { PINMUX_CFG_REG("PCCR1", 0xfffe384c, 16, 4) { | ||
1585 | PC7MD_00, PC7MD_01, PC7MD_10, PC7MD_11, 0, 0, 0, 0, | ||
1586 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1587 | PC6MD_00, PC6MD_01, PC6MD_10, PC6MD_11, 0, 0, 0, 0, | ||
1588 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1589 | PC5MD_00, PC5MD_01, PC5MD_10, PC5MD_11, 0, 0, 0, 0, | ||
1590 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1591 | PC4MD_0, PC4MD_1, 0, 0, 0, 0, 0, 0, | ||
1592 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1593 | }, | ||
1594 | { PINMUX_CFG_REG("PCCR0", 0xfffe384e, 16, 4) { | ||
1595 | PC3MD_0, PC3MD_1, 0, 0, 0, 0, 0, 0, | ||
1596 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1597 | PC2MD_0, PC2MD_1, 0, 0, 0, 0, 0, 0, | ||
1598 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1599 | PC1MD_0, PC1MD_1, 0, 0, 0, 0, 0, 0, | ||
1600 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1601 | PC0MD_0, PC0MD_1, 0, 0, 0, 0, 0, 0, | ||
1602 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1603 | }, | ||
1604 | |||
1605 | { PINMUX_CFG_REG("PCIOR0", 0xfffe3852, 16, 1) { | ||
1606 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1607 | PC10_IN, PC10_OUT, | ||
1608 | PC9_IN, PC9_OUT, | ||
1609 | PC8_IN, PC8_OUT, | ||
1610 | PC7_IN, PC7_OUT, | ||
1611 | PC6_IN, PC6_OUT, | ||
1612 | PC5_IN, PC5_OUT, | ||
1613 | PC4_IN, PC4_OUT, | ||
1614 | PC3_IN, PC3_OUT, | ||
1615 | PC2_IN, PC2_OUT, | ||
1616 | PC1_IN, PC1_OUT, | ||
1617 | PC0_IN, PC0_OUT | ||
1618 | } | ||
1619 | }, | ||
1620 | |||
1621 | { PINMUX_CFG_REG("PDCR3", 0xfffe3868, 16, 4) { | ||
1622 | 0, PD15MD_01, 0, 0, 0, 0, 0, 0, | ||
1623 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1624 | 0, PD14MD_01, 0, 0, 0, 0, 0, 0, | ||
1625 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1626 | 0, PD13MD_01, 0, 0, 0, 0, 0, 0, | ||
1627 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1628 | 0, PD12MD_01, 0, 0, 0, 0, 0, 0, | ||
1629 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1630 | }, | ||
1631 | { PINMUX_CFG_REG("PDCR2", 0xfffe386a, 16, 4) { | ||
1632 | 0, PD11MD_01, 0, 0, 0, 0, 0, 0, | ||
1633 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1634 | 0, PD10MD_01, 0, 0, 0, 0, 0, 0, | ||
1635 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1636 | 0, PD9MD_01, 0, 0, 0, 0, 0, 0, | ||
1637 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1638 | 0, PD8MD_01, 0, 0, 0, 0, 0, 0, | ||
1639 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1640 | }, | ||
1641 | { PINMUX_CFG_REG("PDCR1", 0xfffe386c, 16, 4) { | ||
1642 | 0, PD7MD_01, 0, 0, 0, 0, 0, 0, | ||
1643 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1644 | 0, PD6MD_01, 0, 0, 0, 0, 0, 0, | ||
1645 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1646 | 0, PD5MD_01, 0, 0, 0, 0, 0, 0, | ||
1647 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1648 | 0, PD4MD_01, 0, 0, 0, 0, 0, 0, | ||
1649 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1650 | }, | ||
1651 | { PINMUX_CFG_REG("PDCR0", 0xfffe386e, 16, 4) { | ||
1652 | 0, PD3MD_01, 0, 0, 0, 0, 0, 0, | ||
1653 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1654 | 0, PD2MD_01, 0, 0, 0, 0, 0, 0, | ||
1655 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1656 | 0, PD1MD_01, 0, 0, 0, 0, 0, 0, | ||
1657 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1658 | 0, PD0MD_01, 0, 0, 0, 0, 0, 0, | ||
1659 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1660 | }, | ||
1661 | |||
1662 | { PINMUX_CFG_REG("PDIOR0", 0xfffe3872, 16, 1) { | ||
1663 | PD15_IN, PD15_OUT, | ||
1664 | PD14_IN, PD14_OUT, | ||
1665 | PD13_IN, PD13_OUT, | ||
1666 | PD12_IN, PD12_OUT, | ||
1667 | PD11_IN, PD11_OUT, | ||
1668 | PD10_IN, PD10_OUT, | ||
1669 | PD9_IN, PD9_OUT, | ||
1670 | PD8_IN, PD8_OUT, | ||
1671 | PD7_IN, PD7_OUT, | ||
1672 | PD6_IN, PD6_OUT, | ||
1673 | PD5_IN, PD5_OUT, | ||
1674 | PD4_IN, PD4_OUT, | ||
1675 | PD3_IN, PD3_OUT, | ||
1676 | PD2_IN, PD2_OUT, | ||
1677 | PD1_IN, PD1_OUT, | ||
1678 | PD0_IN, PD0_OUT } | ||
1679 | }, | ||
1680 | |||
1681 | { PINMUX_CFG_REG("PECR1", 0xfffe388c, 16, 4) { | ||
1682 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1683 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1684 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1685 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1686 | PE5MD_00, PE5MD_01, 0, PE5MD_11, 0, 0, 0, 0, | ||
1687 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1688 | PE4MD_00, PE4MD_01, 0, PE4MD_11, 0, 0, 0, 0, | ||
1689 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1690 | }, | ||
1691 | |||
1692 | { PINMUX_CFG_REG("PECR0", 0xfffe388e, 16, 4) { | ||
1693 | PE3MD_00, PE3MD_01, 0, PE3MD_11, 0, 0, 0, 0, | ||
1694 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1695 | PE2MD_00, PE2MD_01, 0, PE2MD_11, 0, 0, 0, 0, | ||
1696 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1697 | PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011, | ||
1698 | PE1MD_100, PE1MD_101, 0, 0, | ||
1699 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1700 | PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, 0, 0, 0, 0, | ||
1701 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1702 | }, | ||
1703 | |||
1704 | { PINMUX_CFG_REG("PEIOR0", 0xfffe3892, 16, 1) { | ||
1705 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1706 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1707 | 0, 0, 0, 0, | ||
1708 | PE5_IN, PE5_OUT, | ||
1709 | PE4_IN, PE4_OUT, | ||
1710 | PE3_IN, PE3_OUT, | ||
1711 | PE2_IN, PE2_OUT, | ||
1712 | PE1_IN, PE1_OUT, | ||
1713 | PE0_IN, PE0_OUT } | ||
1714 | }, | ||
1715 | |||
1716 | { PINMUX_CFG_REG("PFCR3", 0xfffe38a8, 16, 4) { | ||
1717 | PF12MD_000, PF12MD_001, 0, PF12MD_011, | ||
1718 | PF12MD_100, PF12MD_101, 0, 0, | ||
1719 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1720 | }, | ||
1721 | |||
1722 | { PINMUX_CFG_REG("PFCR2", 0xfffe38aa, 16, 4) { | ||
1723 | PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011, | ||
1724 | PF11MD_100, PF11MD_101, 0, 0, | ||
1725 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1726 | PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011, | ||
1727 | PF10MD_100, PF10MD_101, 0, 0, | ||
1728 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1729 | PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011, | ||
1730 | PF9MD_100, PF9MD_101, 0, 0, | ||
1731 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1732 | PF8MD_00, PF8MD_01, PF8MD_10, PF8MD_11, 0, 0, 0, 0, | ||
1733 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1734 | }, | ||
1735 | |||
1736 | { PINMUX_CFG_REG("PFCR1", 0xfffe38ac, 16, 4) { | ||
1737 | PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011, | ||
1738 | PF7MD_100, 0, 0, 0, | ||
1739 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1740 | PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011, | ||
1741 | PF6MD_100, 0, 0, 0, | ||
1742 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1743 | PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011, | ||
1744 | PF5MD_100, 0, 0, 0, | ||
1745 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1746 | PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011, | ||
1747 | PF4MD_100, 0, 0, 0, | ||
1748 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1749 | }, | ||
1750 | |||
1751 | { PINMUX_CFG_REG("PFCR0", 0xfffe38ae, 16, 4) { | ||
1752 | PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011, | ||
1753 | PF3MD_100, 0, 0, 0, | ||
1754 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1755 | PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011, | ||
1756 | PF2MD_100, PF2MD_101, 0, 0, | ||
1757 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1758 | PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011, | ||
1759 | PF1MD_100, PF1MD_101, 0, 0, | ||
1760 | 0, 0, 0, 0, 0, 0, 0, 0 | ||
1761 | } | ||
1762 | }, | ||
1763 | |||
1764 | { PINMUX_CFG_REG("PFIOR0", 0xfffe38b2, 16, 1) { | ||
1765 | 0, 0, 0, 0, 0, 0, | ||
1766 | PF12_IN, PF12_OUT, | ||
1767 | PF11_IN, PF11_OUT, | ||
1768 | PF10_IN, PF10_OUT, | ||
1769 | PF9_IN, PF9_OUT, | ||
1770 | PF8_IN, PF8_OUT, | ||
1771 | PF7_IN, PF7_OUT, | ||
1772 | PF6_IN, PF6_OUT, | ||
1773 | PF5_IN, PF5_OUT, | ||
1774 | PF4_IN, PF4_OUT, | ||
1775 | PF3_IN, PF3_OUT, | ||
1776 | PF2_IN, PF2_OUT, | ||
1777 | PF1_IN, PF1_OUT, | ||
1778 | PF0_IN, PF0_OUT } | ||
1779 | }, | ||
1780 | |||
1781 | { PINMUX_CFG_REG("PGCR7", 0xfffe38c0, 16, 4) { | ||
1782 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1783 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1784 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1785 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1786 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1787 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1788 | PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011, | ||
1789 | PG0MD_100, 0, 0, 0, | ||
1790 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1791 | }, | ||
1792 | |||
1793 | { PINMUX_CFG_REG("PGCR6", 0xfffe38c2, 16, 4) { | ||
1794 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1795 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1796 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1797 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1798 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1799 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1800 | PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, 0, 0, 0, 0, | ||
1801 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1802 | }, | ||
1803 | |||
1804 | { PINMUX_CFG_REG("PGCR5", 0xfffe38c4, 16, 4) { | ||
1805 | PG23MD_00, PG23MD_01, PG23MD_10, PG23MD_11, 0, 0, 0, 0, | ||
1806 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1807 | PG22MD_00, PG22MD_01, PG22MD_10, PG22MD_11, 0, 0, 0, 0, | ||
1808 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1809 | PG21MD_00, PG21MD_01, PG21MD_10, PG21MD_11, 0, 0, 0, 0, | ||
1810 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1811 | PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011, | ||
1812 | PG20MD_100, 0, 0, 0, | ||
1813 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1814 | }, | ||
1815 | |||
1816 | { PINMUX_CFG_REG("PGCR4", 0xfffe38c6, 16, 4) { | ||
1817 | PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011, | ||
1818 | PG19MD_100, 0, 0, 0, | ||
1819 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1820 | PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011, | ||
1821 | PG18MD_100, 0, 0, 0, | ||
1822 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1823 | PG17MD_000, PG17MD_001, PG17MD_010, PG17MD_011, | ||
1824 | PG17MD_100, 0, 0, 0, | ||
1825 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1826 | PG16MD_000, PG16MD_001, PG16MD_010, PG16MD_011, | ||
1827 | PG16MD_100, 0, 0, 0, | ||
1828 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1829 | }, | ||
1830 | |||
1831 | { PINMUX_CFG_REG("PGCR3", 0xfffe38c8, 16, 4) { | ||
1832 | PG15MD_000, PG15MD_001, PG15MD_010, PG15MD_011, | ||
1833 | PG15MD_100, 0, 0, 0, | ||
1834 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1835 | PG14MD_000, PG14MD_001, PG14MD_010, 0, | ||
1836 | PG14MD_100, 0, 0, 0, | ||
1837 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1838 | PG13MD_000, PG13MD_001, PG13MD_010, 0, | ||
1839 | PG13MD_100, 0, 0, 0, | ||
1840 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1841 | PG12MD_000, PG12MD_001, PG12MD_010, 0, | ||
1842 | PG12MD_100, 0, 0, 0, | ||
1843 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1844 | }, | ||
1845 | { PINMUX_CFG_REG("PGCR2", 0xfffe38ca, 16, 4) { | ||
1846 | PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011, | ||
1847 | PG11MD_100, PG11MD_101, 0, 0, | ||
1848 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1849 | PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011, | ||
1850 | PG10MD_100, PG10MD_101, 0, 0, | ||
1851 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1852 | PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011, | ||
1853 | PG9MD_100, PG9MD_101, 0, 0, | ||
1854 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1855 | PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011, | ||
1856 | PG8MD_100, PG8MD_101, 0, 0, | ||
1857 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1858 | }, | ||
1859 | |||
1860 | { PINMUX_CFG_REG("PGCR1", 0xfffe38cc, 16, 4) { | ||
1861 | PG7MD_00, PG7MD_01, PG7MD_10, PG7MD_11, 0, 0, 0, 0, | ||
1862 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1863 | PG6MD_00, PG6MD_01, PG6MD_10, PG6MD_11, 0, 0, 0, 0, | ||
1864 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1865 | PG5MD_00, PG5MD_01, PG5MD_10, PG5MD_11, 0, 0, 0, 0, | ||
1866 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1867 | PG4MD_00, PG4MD_01, PG4MD_10, PG4MD_11, 0, 0, 0, 0, | ||
1868 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1869 | }, | ||
1870 | { PINMUX_CFG_REG("PGCR0", 0xfffe38ce, 16, 4) { | ||
1871 | PG3MD_00, PG3MD_01, PG3MD_10, PG3MD_11, 0, 0, 0, 0, | ||
1872 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1873 | PG2MD_00, PG2MD_01, PG2MD_10, PG2MD_11, 0, 0, 0, 0, | ||
1874 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1875 | PG1MD_00, PG1MD_01, PG1MD_10, PG1MD_11, 0, 0, 0, 0, | ||
1876 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1877 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1878 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1879 | }, | ||
1880 | { PINMUX_CFG_REG("PGIOR1", 0xfffe38d0, 16, 1) { | ||
1881 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1882 | 0, 0, 0, 0, 0, 0, | ||
1883 | PG24_IN, PG24_OUT, | ||
1884 | PG23_IN, PG23_OUT, | ||
1885 | PG22_IN, PG22_OUT, | ||
1886 | PG21_IN, PG21_OUT, | ||
1887 | PG20_IN, PG20_OUT, | ||
1888 | PG19_IN, PG19_OUT, | ||
1889 | PG18_IN, PG18_OUT, | ||
1890 | PG17_IN, PG17_OUT, | ||
1891 | PG16_IN, PG16_OUT } | ||
1892 | }, | ||
1893 | |||
1894 | { PINMUX_CFG_REG("PGIOR0", 0xfffe38d2, 16, 1) { | ||
1895 | PG15_IN, PG15_OUT, | ||
1896 | PG14_IN, PG14_OUT, | ||
1897 | PG13_IN, PG13_OUT, | ||
1898 | PG12_IN, PG12_OUT, | ||
1899 | PG11_IN, PG11_OUT, | ||
1900 | PG10_IN, PG10_OUT, | ||
1901 | PG9_IN, PG9_OUT, | ||
1902 | PG8_IN, PG8_OUT, | ||
1903 | PG7_IN, PG7_OUT, | ||
1904 | PG6_IN, PG6_OUT, | ||
1905 | PG5_IN, PG5_OUT, | ||
1906 | PG4_IN, PG4_OUT, | ||
1907 | PG3_IN, PG3_OUT, | ||
1908 | PG2_IN, PG2_OUT, | ||
1909 | PG1_IN, PG1_OUT, | ||
1910 | PG0_IN, PG0_OUT | ||
1911 | } | ||
1912 | }, | ||
1913 | |||
1914 | { PINMUX_CFG_REG("PHCR1", 0xfffe38ec, 16, 4) { | ||
1915 | PH7MD_0, PH7MD_1, 0, 0, 0, 0, 0, 0, | ||
1916 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1917 | PH6MD_0, PH6MD_1, 0, 0, 0, 0, 0, 0, | ||
1918 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1919 | PH5MD_0, PH5MD_1, 0, 0, 0, 0, 0, 0, | ||
1920 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1921 | PH4MD_0, PH4MD_1, 0, 0, 0, 0, 0, 0, | ||
1922 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1923 | }, | ||
1924 | |||
1925 | { PINMUX_CFG_REG("PHCR0", 0xfffe38ee, 16, 4) { | ||
1926 | PH3MD_0, PH3MD_1, 0, 0, 0, 0, 0, 0, | ||
1927 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1928 | PH2MD_0, PH2MD_1, 0, 0, 0, 0, 0, 0, | ||
1929 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1930 | PH1MD_0, PH1MD_1, 0, 0, 0, 0, 0, 0, | ||
1931 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1932 | PH0MD_0, PH0MD_1, 0, 0, 0, 0, 0, 0, | ||
1933 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1934 | }, | ||
1935 | |||
1936 | { PINMUX_CFG_REG("PJCR2", 0xfffe390a, 16, 4) { | ||
1937 | PJ11MD_00, PJ11MD_01, PJ11MD_10, 0, 0, 0, 0, 0, | ||
1938 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1939 | PJ10MD_00, PJ10MD_01, PJ10MD_10, 0, 0, 0, 0, 0, | ||
1940 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1941 | PJ9MD_00, PJ9MD_01, PJ9MD_10, 0, 0, 0, 0, 0, | ||
1942 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1943 | PJ8MD_00, PJ8MD_01, PJ8MD_10, 0, 0, 0, 0, 0, | ||
1944 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1945 | }, | ||
1946 | { PINMUX_CFG_REG("PJCR1", 0xfffe390c, 16, 4) { | ||
1947 | PJ7MD_00, PJ7MD_01, PJ7MD_10, 0, 0, 0, 0, 0, | ||
1948 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1949 | PJ6MD_00, PJ6MD_01, PJ6MD_10, 0, 0, 0, 0, 0, | ||
1950 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1951 | PJ5MD_00, PJ5MD_01, PJ5MD_10, 0, 0, 0, 0, 0, | ||
1952 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1953 | PJ4MD_00, PJ4MD_01, PJ4MD_10, 0, 0, 0, 0, 0, | ||
1954 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1955 | }, | ||
1956 | { PINMUX_CFG_REG("PJCR0", 0xfffe390e, 16, 4) { | ||
1957 | PJ3MD_00, PJ3MD_01, PJ3MD_10, PJ3MD_11, 0, 0, 0, 0, | ||
1958 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1959 | PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011, | ||
1960 | PJ2MD_100, PJ2MD_101, 0, 0, | ||
1961 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1962 | PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011, | ||
1963 | PJ1MD_100, 0, 0, 0, | ||
1964 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1965 | PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011, | ||
1966 | PJ0MD_100, PJ0MD_101, 0, 0, | ||
1967 | 0, 0, 0, 0, 0, 0, 0, 0, } | ||
1968 | }, | ||
1969 | { PINMUX_CFG_REG("PJIOR0", 0xfffe3912, 16, 1) { | ||
1970 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1971 | PJ11_IN, PJ11_OUT, | ||
1972 | PJ10_IN, PJ10_OUT, | ||
1973 | PJ9_IN, PJ9_OUT, | ||
1974 | PJ8_IN, PJ8_OUT, | ||
1975 | PJ7_IN, PJ7_OUT, | ||
1976 | PJ6_IN, PJ6_OUT, | ||
1977 | PJ5_IN, PJ5_OUT, | ||
1978 | PJ4_IN, PJ4_OUT, | ||
1979 | PJ3_IN, PJ3_OUT, | ||
1980 | PJ2_IN, PJ2_OUT, | ||
1981 | PJ1_IN, PJ1_OUT, | ||
1982 | PJ0_IN, PJ0_OUT } | ||
1983 | }, | ||
1984 | |||
1985 | { PINMUX_CFG_REG("PKCR2", 0xfffe392a, 16, 4) { | ||
1986 | PK11MD_00, PK11MD_01, PK11MD_10, 0, 0, 0, 0, 0, | ||
1987 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1988 | PK10MD_00, PK10MD_01, PK10MD_10, 0, 0, 0, 0, 0, | ||
1989 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1990 | PK9MD_00, PK9MD_01, PK9MD_10, 0, 0, 0, 0, 0, | ||
1991 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1992 | PK8MD_00, PK8MD_01, PK8MD_10, 0, 0, 0, 0, 0, | ||
1993 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1994 | }, | ||
1995 | |||
1996 | { PINMUX_CFG_REG("PKCR1", 0xfffe392c, 16, 4) { | ||
1997 | PK7MD_00, PK7MD_01, PK7MD_10, 0, 0, 0, 0, 0, | ||
1998 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1999 | PK6MD_00, PK6MD_01, PK6MD_10, 0, 0, 0, 0, 0, | ||
2000 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2001 | PK5MD_00, PK5MD_01, PK5MD_10, 0, 0, 0, 0, 0, | ||
2002 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2003 | PK4MD_00, PK4MD_01, PK4MD_10, 0, 0, 0, 0, 0, | ||
2004 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2005 | }, | ||
2006 | { PINMUX_CFG_REG("PKCR0", 0xfffe392e, 16, 4) { | ||
2007 | PK3MD_00, PK3MD_01, PK3MD_10, 0, 0, 0, 0, 0, | ||
2008 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2009 | PK2MD_00, PK2MD_01, PK2MD_10, 0, 0, 0, 0, 0, | ||
2010 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2011 | PK1MD_00, PK1MD_01, PK1MD_10, 0, 0, 0, 0, 0, | ||
2012 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2013 | PK0MD_00, PK0MD_01, PK0MD_10, 0, 0, 0, 0, 0, | ||
2014 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2015 | }, | ||
2016 | |||
2017 | { PINMUX_CFG_REG("PKIOR0", 0xfffe3932, 16, 1) { | ||
2018 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2019 | PJ11_IN, PJ11_OUT, | ||
2020 | PJ10_IN, PJ10_OUT, | ||
2021 | PJ9_IN, PJ9_OUT, | ||
2022 | PJ8_IN, PJ8_OUT, | ||
2023 | PJ7_IN, PJ7_OUT, | ||
2024 | PJ6_IN, PJ6_OUT, | ||
2025 | PJ5_IN, PJ5_OUT, | ||
2026 | PJ4_IN, PJ4_OUT, | ||
2027 | PJ3_IN, PJ3_OUT, | ||
2028 | PJ2_IN, PJ2_OUT, | ||
2029 | PJ1_IN, PJ1_OUT, | ||
2030 | PJ0_IN, PJ0_OUT } | ||
2031 | }, | ||
2032 | {} | ||
2033 | }; | ||
2034 | |||
2035 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2036 | { PINMUX_DATA_REG("PADR1", 0xfffe3814, 16) { | ||
2037 | 0, 0, 0, 0, 0, 0, 0, PA3_DATA, | ||
2038 | 0, 0, 0, 0, 0, 0, 0, PA2_DATA } | ||
2039 | }, | ||
2040 | |||
2041 | { PINMUX_DATA_REG("PADR0", 0xfffe3816, 16) { | ||
2042 | 0, 0, 0, 0, 0, 0, 0, PA1_DATA, | ||
2043 | 0, 0, 0, 0, 0, 0, 0, PA0_DATA } | ||
2044 | }, | ||
2045 | |||
2046 | { PINMUX_DATA_REG("PBDR1", 0xfffe3834, 16) { | ||
2047 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2048 | 0, PB22_DATA, PB21_DATA, PB20_DATA, | ||
2049 | PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA } | ||
2050 | }, | ||
2051 | |||
2052 | { PINMUX_DATA_REG("PBDR0", 0xfffe3836, 16) { | ||
2053 | PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA, | ||
2054 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
2055 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
2056 | PB3_DATA, PB2_DATA, PB1_DATA, 0 } | ||
2057 | }, | ||
2058 | |||
2059 | { PINMUX_DATA_REG("PCDR0", 0xfffe3856, 16) { | ||
2060 | 0, 0, 0, 0, | ||
2061 | 0, PC10_DATA, PC9_DATA, PC8_DATA, | ||
2062 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
2063 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
2064 | }, | ||
2065 | |||
2066 | { PINMUX_DATA_REG("PDDR0", 0xfffe3876, 16) { | ||
2067 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
2068 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
2069 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
2070 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
2071 | }, | ||
2072 | |||
2073 | { PINMUX_DATA_REG("PEDR0", 0xfffe3896, 16) { | ||
2074 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2075 | 0, 0, PE5_DATA, PE4_DATA, | ||
2076 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA } | ||
2077 | }, | ||
2078 | |||
2079 | { PINMUX_DATA_REG("PFDR0", 0xfffe38b6, 16) { | ||
2080 | 0, 0, 0, PF12_DATA, | ||
2081 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
2082 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
2083 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
2084 | }, | ||
2085 | |||
2086 | { PINMUX_DATA_REG("PGDR1", 0xfffe38d4, 16) { | ||
2087 | 0, 0, 0, 0, 0, 0, 0, PG24_DATA, | ||
2088 | PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA, | ||
2089 | PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA } | ||
2090 | }, | ||
2091 | |||
2092 | { PINMUX_DATA_REG("PGDR0", 0xfffe38d6, 16) { | ||
2093 | PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA, | ||
2094 | PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA, | ||
2095 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
2096 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA } | ||
2097 | }, | ||
2098 | { PINMUX_DATA_REG("PJDR0", 0xfffe3916, 16) { | ||
2099 | 0, 0, 0, PJ12_DATA, | ||
2100 | PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA, | ||
2101 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
2102 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA } | ||
2103 | }, | ||
2104 | { PINMUX_DATA_REG("PKDR0", 0xfffe3936, 16) { | ||
2105 | 0, 0, 0, PK12_DATA, | ||
2106 | PK11_DATA, PK10_DATA, PK9_DATA, PK8_DATA, | ||
2107 | PK7_DATA, PK6_DATA, PK5_DATA, PK4_DATA, | ||
2108 | PK3_DATA, PK2_DATA, PK1_DATA, PK0_DATA } | ||
2109 | }, | ||
2110 | { } | ||
2111 | }; | ||
2112 | |||
2113 | struct sh_pfc_soc_info sh7264_pinmux_info = { | ||
2114 | .name = "sh7264_pfc", | ||
2115 | .reserved_id = PINMUX_RESERVED, | ||
2116 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2117 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN }, | ||
2118 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT }, | ||
2119 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2120 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2121 | |||
2122 | .first_gpio = GPIO_PA3, | ||
2123 | .last_gpio = GPIO_FN_LCD_M_DISP, | ||
2124 | |||
2125 | .gpios = pinmux_gpios, | ||
2126 | .cfg_regs = pinmux_config_regs, | ||
2127 | .data_regs = pinmux_data_regs, | ||
2128 | |||
2129 | .gpio_data = pinmux_data, | ||
2130 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2131 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7269.c b/drivers/pinctrl/sh-pfc/pfc-sh7269.c new file mode 100644 index 000000000000..b1b5d6d4ad76 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7269.c | |||
@@ -0,0 +1,2834 @@ | |||
1 | /* | ||
2 | * SH7269 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2012 Renesas Electronics Europe Ltd | ||
5 | * Copyright (C) 2012 Phil Edworthy | ||
6 | * | ||
7 | * This file is subject to the terms and conditions of the GNU General Public | ||
8 | * License. See the file "COPYING" in the main directory of this archive | ||
9 | * for more details. | ||
10 | */ | ||
11 | |||
12 | #include <linux/kernel.h> | ||
13 | #include <linux/gpio.h> | ||
14 | #include <cpu/sh7269.h> | ||
15 | |||
16 | #include "sh_pfc.h" | ||
17 | |||
18 | enum { | ||
19 | PINMUX_RESERVED = 0, | ||
20 | |||
21 | PINMUX_DATA_BEGIN, | ||
22 | /* Port A */ | ||
23 | PA1_DATA, PA0_DATA, | ||
24 | /* Port B */ | ||
25 | PB22_DATA, PB21_DATA, PB20_DATA, | ||
26 | PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA, | ||
27 | PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA, | ||
28 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
29 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
30 | PB3_DATA, PB2_DATA, PB1_DATA, | ||
31 | /* Port C */ | ||
32 | PC8_DATA, | ||
33 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
34 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
35 | /* Port D */ | ||
36 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
37 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
38 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
39 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
40 | /* Port E */ | ||
41 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
42 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
43 | /* Port F */ | ||
44 | PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA, | ||
45 | PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA, | ||
46 | PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA, | ||
47 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
48 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
49 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
50 | /* Port G */ | ||
51 | PG27_DATA, PG26_DATA, PG25_DATA, PG24_DATA, | ||
52 | PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA, | ||
53 | PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA, | ||
54 | PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA, | ||
55 | PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA, | ||
56 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
57 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
58 | /* Port H */ | ||
59 | /* NOTE - Port H does not have a Data Register, but PH Data is | ||
60 | connected to PH Port Register */ | ||
61 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
62 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
63 | /* Port I - not on device */ | ||
64 | /* Port J */ | ||
65 | PJ31_DATA, PJ30_DATA, PJ29_DATA, PJ28_DATA, | ||
66 | PJ27_DATA, PJ26_DATA, PJ25_DATA, PJ24_DATA, | ||
67 | PJ23_DATA, PJ22_DATA, PJ21_DATA, PJ20_DATA, | ||
68 | PJ19_DATA, PJ18_DATA, PJ17_DATA, PJ16_DATA, | ||
69 | PJ15_DATA, PJ14_DATA, PJ13_DATA, PJ12_DATA, | ||
70 | PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA, | ||
71 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
72 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA, | ||
73 | PINMUX_DATA_END, | ||
74 | |||
75 | PINMUX_INPUT_BEGIN, | ||
76 | FORCE_IN, | ||
77 | /* Port A */ | ||
78 | PA1_IN, PA0_IN, | ||
79 | /* Port B */ | ||
80 | PB22_IN, PB21_IN, PB20_IN, | ||
81 | PB19_IN, PB18_IN, PB17_IN, PB16_IN, | ||
82 | PB15_IN, PB14_IN, PB13_IN, PB12_IN, | ||
83 | PB11_IN, PB10_IN, PB9_IN, PB8_IN, | ||
84 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
85 | PB3_IN, PB2_IN, PB1_IN, | ||
86 | /* Port C */ | ||
87 | PC8_IN, | ||
88 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
89 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
90 | /* Port D */ | ||
91 | PD15_IN, PD14_IN, PD13_IN, PD12_IN, | ||
92 | PD11_IN, PD10_IN, PD9_IN, PD8_IN, | ||
93 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
94 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
95 | /* Port E */ | ||
96 | PE7_IN, PE6_IN, PE5_IN, PE4_IN, | ||
97 | PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
98 | /* Port F */ | ||
99 | PF23_IN, PF22_IN, PF21_IN, PF20_IN, | ||
100 | PF19_IN, PF18_IN, PF17_IN, PF16_IN, | ||
101 | PF15_IN, PF14_IN, PF13_IN, PF12_IN, | ||
102 | PF11_IN, PF10_IN, PF9_IN, PF8_IN, | ||
103 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
104 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
105 | /* Port G */ | ||
106 | PG27_IN, PG26_IN, PG25_IN, PG24_IN, | ||
107 | PG23_IN, PG22_IN, PG21_IN, PG20_IN, | ||
108 | PG19_IN, PG18_IN, PG17_IN, PG16_IN, | ||
109 | PG15_IN, PG14_IN, PG13_IN, PG12_IN, | ||
110 | PG11_IN, PG10_IN, PG9_IN, PG8_IN, | ||
111 | PG7_IN, PG6_IN, PG5_IN, PG4_IN, | ||
112 | PG3_IN, PG2_IN, PG1_IN, PG0_IN, | ||
113 | /* Port H - Port H does not have a Data Register */ | ||
114 | /* Port I - not on device */ | ||
115 | /* Port J */ | ||
116 | PJ31_IN, PJ30_IN, PJ29_IN, PJ28_IN, | ||
117 | PJ27_IN, PJ26_IN, PJ25_IN, PJ24_IN, | ||
118 | PJ23_IN, PJ22_IN, PJ21_IN, PJ20_IN, | ||
119 | PJ19_IN, PJ18_IN, PJ17_IN, PJ16_IN, | ||
120 | PJ15_IN, PJ14_IN, PJ13_IN, PJ12_IN, | ||
121 | PJ11_IN, PJ10_IN, PJ9_IN, PJ8_IN, | ||
122 | PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN, | ||
123 | PJ3_IN, PJ2_IN, PJ1_IN, PJ0_IN, | ||
124 | PINMUX_INPUT_END, | ||
125 | |||
126 | PINMUX_OUTPUT_BEGIN, | ||
127 | FORCE_OUT, | ||
128 | /* Port A */ | ||
129 | PA1_OUT, PA0_OUT, | ||
130 | /* Port B */ | ||
131 | PB22_OUT, PB21_OUT, PB20_OUT, | ||
132 | PB19_OUT, PB18_OUT, PB17_OUT, PB16_OUT, | ||
133 | PB15_OUT, PB14_OUT, PB13_OUT, PB12_OUT, | ||
134 | PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT, | ||
135 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
136 | PB3_OUT, PB2_OUT, PB1_OUT, | ||
137 | /* Port C */ | ||
138 | PC8_OUT, | ||
139 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
140 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
141 | /* Port D */ | ||
142 | PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT, | ||
143 | PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT, | ||
144 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
145 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
146 | /* Port E */ | ||
147 | PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT, | ||
148 | PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
149 | /* Port F */ | ||
150 | PF23_OUT, PF22_OUT, PF21_OUT, PF20_OUT, | ||
151 | PF19_OUT, PF18_OUT, PF17_OUT, PF16_OUT, | ||
152 | PF15_OUT, PF14_OUT, PF13_OUT, PF12_OUT, | ||
153 | PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT, | ||
154 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
155 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
156 | /* Port G */ | ||
157 | PG27_OUT, PG26_OUT, PG25_OUT, PG24_OUT, | ||
158 | PG23_OUT, PG22_OUT, PG21_OUT, PG20_OUT, | ||
159 | PG19_OUT, PG18_OUT, PG17_OUT, PG16_OUT, | ||
160 | PG15_OUT, PG14_OUT, PG13_OUT, PG12_OUT, | ||
161 | PG11_OUT, PG10_OUT, PG9_OUT, PG8_OUT, | ||
162 | PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT, | ||
163 | PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT, | ||
164 | /* Port H - Port H does not have a Data Register */ | ||
165 | /* Port I - not on device */ | ||
166 | /* Port J */ | ||
167 | PJ31_OUT, PJ30_OUT, PJ29_OUT, PJ28_OUT, | ||
168 | PJ27_OUT, PJ26_OUT, PJ25_OUT, PJ24_OUT, | ||
169 | PJ23_OUT, PJ22_OUT, PJ21_OUT, PJ20_OUT, | ||
170 | PJ19_OUT, PJ18_OUT, PJ17_OUT, PJ16_OUT, | ||
171 | PJ15_OUT, PJ14_OUT, PJ13_OUT, PJ12_OUT, | ||
172 | PJ11_OUT, PJ10_OUT, PJ9_OUT, PJ8_OUT, | ||
173 | PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT, | ||
174 | PJ3_OUT, PJ2_OUT, PJ1_OUT, PJ0_OUT, | ||
175 | PINMUX_OUTPUT_END, | ||
176 | |||
177 | PINMUX_FUNCTION_BEGIN, | ||
178 | /* Port A */ | ||
179 | PA1_IOR_IN, PA1_IOR_OUT, | ||
180 | PA0_IOR_IN, PA0_IOR_OUT, | ||
181 | |||
182 | /* Port B */ | ||
183 | PB22_IOR_IN, PB22_IOR_OUT, | ||
184 | PB21_IOR_IN, PB21_IOR_OUT, | ||
185 | PB20_IOR_IN, PB20_IOR_OUT, | ||
186 | PB19_IOR_IN, PB19_IOR_OUT, | ||
187 | PB18_IOR_IN, PB18_IOR_OUT, | ||
188 | PB17_IOR_IN, PB17_IOR_OUT, | ||
189 | PB16_IOR_IN, PB16_IOR_OUT, | ||
190 | |||
191 | PB15_IOR_IN, PB15_IOR_OUT, | ||
192 | PB14_IOR_IN, PB14_IOR_OUT, | ||
193 | PB13_IOR_IN, PB13_IOR_OUT, | ||
194 | PB12_IOR_IN, PB12_IOR_OUT, | ||
195 | PB11_IOR_IN, PB11_IOR_OUT, | ||
196 | PB10_IOR_IN, PB10_IOR_OUT, | ||
197 | PB9_IOR_IN, PB9_IOR_OUT, | ||
198 | PB8_IOR_IN, PB8_IOR_OUT, | ||
199 | |||
200 | PB7_IOR_IN, PB7_IOR_OUT, | ||
201 | PB6_IOR_IN, PB6_IOR_OUT, | ||
202 | PB5_IOR_IN, PB5_IOR_OUT, | ||
203 | PB4_IOR_IN, PB4_IOR_OUT, | ||
204 | PB3_IOR_IN, PB3_IOR_OUT, | ||
205 | PB2_IOR_IN, PB2_IOR_OUT, | ||
206 | PB1_IOR_IN, PB1_IOR_OUT, | ||
207 | PB0_IOR_IN, PB0_IOR_OUT, | ||
208 | |||
209 | PB22MD_000, PB22MD_001, PB22MD_010, PB22MD_011, | ||
210 | PB22MD_100, PB22MD_101, PB22MD_110, PB22MD_111, | ||
211 | PB21MD_00, PB21MD_01, PB21MD_10, PB21MD_11, | ||
212 | PB20MD_000, PB20MD_001, PB20MD_010, PB20MD_011, | ||
213 | PB20MD_100, PB20MD_101, PB20MD_110, PB20MD_111, | ||
214 | PB19MD_000, PB19MD_001, PB19MD_010, PB19MD_011, | ||
215 | PB19MD_100, PB19MD_101, PB19MD_110, PB19MD_111, | ||
216 | PB18MD_000, PB18MD_001, PB18MD_010, PB18MD_011, | ||
217 | PB18MD_100, PB18MD_101, PB18MD_110, PB18MD_111, | ||
218 | PB17MD_000, PB17MD_001, PB17MD_010, PB17MD_011, | ||
219 | PB17MD_100, PB17MD_101, PB17MD_110, PB17MD_111, | ||
220 | PB16MD_000, PB16MD_001, PB16MD_010, PB16MD_011, | ||
221 | PB16MD_100, PB16MD_101, PB16MD_110, PB16MD_111, | ||
222 | PB15MD_000, PB15MD_001, PB15MD_010, PB15MD_011, | ||
223 | PB15MD_100, PB15MD_101, PB15MD_110, PB15MD_111, | ||
224 | PB14MD_000, PB14MD_001, PB14MD_010, PB14MD_011, | ||
225 | PB14MD_100, PB14MD_101, PB14MD_110, PB14MD_111, | ||
226 | PB13MD_000, PB13MD_001, PB13MD_010, PB13MD_011, | ||
227 | PB13MD_100, PB13MD_101, PB13MD_110, PB13MD_111, | ||
228 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, | ||
229 | |||
230 | PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11, | ||
231 | PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11, | ||
232 | PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11, | ||
233 | PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11, | ||
234 | |||
235 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, | ||
236 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, | ||
237 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, | ||
238 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, | ||
239 | |||
240 | PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, | ||
241 | PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, | ||
242 | PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, | ||
243 | |||
244 | /* Port C */ | ||
245 | PC8_IOR_IN, PC8_IOR_OUT, | ||
246 | PC7_IOR_IN, PC7_IOR_OUT, | ||
247 | PC6_IOR_IN, PC6_IOR_OUT, | ||
248 | PC5_IOR_IN, PC5_IOR_OUT, | ||
249 | PC4_IOR_IN, PC4_IOR_OUT, | ||
250 | PC3_IOR_IN, PC3_IOR_OUT, | ||
251 | PC2_IOR_IN, PC2_IOR_OUT, | ||
252 | PC1_IOR_IN, PC1_IOR_OUT, | ||
253 | PC0_IOR_IN, PC0_IOR_OUT, | ||
254 | |||
255 | PC8MD_000, PC8MD_001, PC8MD_010, PC8MD_011, | ||
256 | PC8MD_100, PC8MD_101, PC8MD_110, PC8MD_111, | ||
257 | PC7MD_000, PC7MD_001, PC7MD_010, PC7MD_011, | ||
258 | PC7MD_100, PC7MD_101, PC7MD_110, PC7MD_111, | ||
259 | PC6MD_000, PC6MD_001, PC6MD_010, PC6MD_011, | ||
260 | PC6MD_100, PC6MD_101, PC6MD_110, PC6MD_111, | ||
261 | PC5MD_000, PC5MD_001, PC5MD_010, PC5MD_011, | ||
262 | PC5MD_100, PC5MD_101, PC5MD_110, PC5MD_111, | ||
263 | PC4MD_00, PC4MD_01, PC4MD_10, PC4MD_11, | ||
264 | |||
265 | PC3MD_00, PC3MD_01, PC3MD_10, PC3MD_11, | ||
266 | PC2MD_00, PC2MD_01, PC2MD_10, PC2MD_11, | ||
267 | PC1MD_0, PC1MD_1, | ||
268 | PC0MD_0, PC0MD_1, | ||
269 | |||
270 | /* Port D */ | ||
271 | PD15_IOR_IN, PD15_IOR_OUT, | ||
272 | PD14_IOR_IN, PD14_IOR_OUT, | ||
273 | PD13_IOR_IN, PD13_IOR_OUT, | ||
274 | PD12_IOR_IN, PD12_IOR_OUT, | ||
275 | PD11_IOR_IN, PD11_IOR_OUT, | ||
276 | PD10_IOR_IN, PD10_IOR_OUT, | ||
277 | PD9_IOR_IN, PD9_IOR_OUT, | ||
278 | PD8_IOR_IN, PD8_IOR_OUT, | ||
279 | PD7_IOR_IN, PD7_IOR_OUT, | ||
280 | PD6_IOR_IN, PD6_IOR_OUT, | ||
281 | PD5_IOR_IN, PD5_IOR_OUT, | ||
282 | PD4_IOR_IN, PD4_IOR_OUT, | ||
283 | PD3_IOR_IN, PD3_IOR_OUT, | ||
284 | PD2_IOR_IN, PD2_IOR_OUT, | ||
285 | PD1_IOR_IN, PD1_IOR_OUT, | ||
286 | PD0_IOR_IN, PD0_IOR_OUT, | ||
287 | |||
288 | PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11, | ||
289 | PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11, | ||
290 | PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11, | ||
291 | PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11, | ||
292 | |||
293 | PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11, | ||
294 | PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11, | ||
295 | PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11, | ||
296 | PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11, | ||
297 | |||
298 | PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11, | ||
299 | PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11, | ||
300 | PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11, | ||
301 | PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11, | ||
302 | |||
303 | PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11, | ||
304 | PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11, | ||
305 | PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11, | ||
306 | PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11, | ||
307 | |||
308 | /* Port E */ | ||
309 | PE7_IOR_IN, PE7_IOR_OUT, | ||
310 | PE6_IOR_IN, PE6_IOR_OUT, | ||
311 | PE5_IOR_IN, PE5_IOR_OUT, | ||
312 | PE4_IOR_IN, PE4_IOR_OUT, | ||
313 | PE3_IOR_IN, PE3_IOR_OUT, | ||
314 | PE2_IOR_IN, PE2_IOR_OUT, | ||
315 | PE1_IOR_IN, PE1_IOR_OUT, | ||
316 | PE0_IOR_IN, PE0_IOR_OUT, | ||
317 | |||
318 | PE7MD_00, PE7MD_01, PE7MD_10, PE7MD_11, | ||
319 | PE6MD_00, PE6MD_01, PE6MD_10, PE6MD_11, | ||
320 | PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11, | ||
321 | PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11, | ||
322 | |||
323 | PE3MD_000, PE3MD_001, PE3MD_010, PE3MD_011, | ||
324 | PE3MD_100, PE3MD_101, PE3MD_110, PE3MD_111, | ||
325 | PE2MD_000, PE2MD_001, PE2MD_010, PE2MD_011, | ||
326 | PE2MD_100, PE2MD_101, PE2MD_110, PE2MD_111, | ||
327 | PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011, | ||
328 | PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111, | ||
329 | PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, | ||
330 | |||
331 | /* Port F */ | ||
332 | PF23_IOR_IN, PF23_IOR_OUT, | ||
333 | PF22_IOR_IN, PF22_IOR_OUT, | ||
334 | PF21_IOR_IN, PF21_IOR_OUT, | ||
335 | PF20_IOR_IN, PF20_IOR_OUT, | ||
336 | PF19_IOR_IN, PF19_IOR_OUT, | ||
337 | PF18_IOR_IN, PF18_IOR_OUT, | ||
338 | PF17_IOR_IN, PF17_IOR_OUT, | ||
339 | PF16_IOR_IN, PF16_IOR_OUT, | ||
340 | PF15_IOR_IN, PF15_IOR_OUT, | ||
341 | PF14_IOR_IN, PF14_IOR_OUT, | ||
342 | PF13_IOR_IN, PF13_IOR_OUT, | ||
343 | PF12_IOR_IN, PF12_IOR_OUT, | ||
344 | PF11_IOR_IN, PF11_IOR_OUT, | ||
345 | PF10_IOR_IN, PF10_IOR_OUT, | ||
346 | PF9_IOR_IN, PF9_IOR_OUT, | ||
347 | PF8_IOR_IN, PF8_IOR_OUT, | ||
348 | PF7_IOR_IN, PF7_IOR_OUT, | ||
349 | PF6_IOR_IN, PF6_IOR_OUT, | ||
350 | PF5_IOR_IN, PF5_IOR_OUT, | ||
351 | PF4_IOR_IN, PF4_IOR_OUT, | ||
352 | PF3_IOR_IN, PF3_IOR_OUT, | ||
353 | PF2_IOR_IN, PF2_IOR_OUT, | ||
354 | PF1_IOR_IN, PF1_IOR_OUT, | ||
355 | PF0_IOR_IN, PF0_IOR_OUT, | ||
356 | |||
357 | PF23MD_000, PF23MD_001, PF23MD_010, PF23MD_011, | ||
358 | PF23MD_100, PF23MD_101, PF23MD_110, PF23MD_111, | ||
359 | PF22MD_000, PF22MD_001, PF22MD_010, PF22MD_011, | ||
360 | PF22MD_100, PF22MD_101, PF22MD_110, PF22MD_111, | ||
361 | PF21MD_000, PF21MD_001, PF21MD_010, PF21MD_011, | ||
362 | PF21MD_100, PF21MD_101, PF21MD_110, PF21MD_111, | ||
363 | PF20MD_000, PF20MD_001, PF20MD_010, PF20MD_011, | ||
364 | PF20MD_100, PF20MD_101, PF20MD_110, PF20MD_111, | ||
365 | |||
366 | PF19MD_000, PF19MD_001, PF19MD_010, PF19MD_011, | ||
367 | PF19MD_100, PF19MD_101, PF19MD_110, PF19MD_111, | ||
368 | PF18MD_000, PF18MD_001, PF18MD_010, PF18MD_011, | ||
369 | PF18MD_100, PF18MD_101, PF18MD_110, PF18MD_111, | ||
370 | PF17MD_000, PF17MD_001, PF17MD_010, PF17MD_011, | ||
371 | PF17MD_100, PF17MD_101, PF17MD_110, PF17MD_111, | ||
372 | PF16MD_000, PF16MD_001, PF16MD_010, PF16MD_011, | ||
373 | PF16MD_100, PF16MD_101, PF16MD_110, PF16MD_111, | ||
374 | |||
375 | PF15MD_000, PF15MD_001, PF15MD_010, PF15MD_011, | ||
376 | PF15MD_100, PF15MD_101, PF15MD_110, PF15MD_111, | ||
377 | PF14MD_000, PF14MD_001, PF14MD_010, PF14MD_011, | ||
378 | PF14MD_100, PF14MD_101, PF14MD_110, PF14MD_111, | ||
379 | PF13MD_000, PF13MD_001, PF13MD_010, PF13MD_011, | ||
380 | PF13MD_100, PF13MD_101, PF13MD_110, PF13MD_111, | ||
381 | PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011, | ||
382 | PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111, | ||
383 | |||
384 | PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011, | ||
385 | PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111, | ||
386 | PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011, | ||
387 | PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111, | ||
388 | PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011, | ||
389 | PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111, | ||
390 | PF8MD_000, PF8MD_001, PF8MD_010, PF8MD_011, | ||
391 | PF8MD_100, PF8MD_101, PF8MD_110, PF8MD_111, | ||
392 | |||
393 | PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011, | ||
394 | PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111, | ||
395 | PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011, | ||
396 | PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111, | ||
397 | PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011, | ||
398 | PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111, | ||
399 | PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011, | ||
400 | PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111, | ||
401 | |||
402 | PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011, | ||
403 | PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111, | ||
404 | PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011, | ||
405 | PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111, | ||
406 | PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011, | ||
407 | PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111, | ||
408 | PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011, | ||
409 | PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111, | ||
410 | |||
411 | /* Port G */ | ||
412 | PG27_IOR_IN, PG27_IOR_OUT, | ||
413 | PG26_IOR_IN, PG26_IOR_OUT, | ||
414 | PG25_IOR_IN, PG25_IOR_OUT, | ||
415 | PG24_IOR_IN, PG24_IOR_OUT, | ||
416 | PG23_IOR_IN, PG23_IOR_OUT, | ||
417 | PG22_IOR_IN, PG22_IOR_OUT, | ||
418 | PG21_IOR_IN, PG21_IOR_OUT, | ||
419 | PG20_IOR_IN, PG20_IOR_OUT, | ||
420 | PG19_IOR_IN, PG19_IOR_OUT, | ||
421 | PG18_IOR_IN, PG18_IOR_OUT, | ||
422 | PG17_IOR_IN, PG17_IOR_OUT, | ||
423 | PG16_IOR_IN, PG16_IOR_OUT, | ||
424 | PG15_IOR_IN, PG15_IOR_OUT, | ||
425 | PG14_IOR_IN, PG14_IOR_OUT, | ||
426 | PG13_IOR_IN, PG13_IOR_OUT, | ||
427 | PG12_IOR_IN, PG12_IOR_OUT, | ||
428 | PG11_IOR_IN, PG11_IOR_OUT, | ||
429 | PG10_IOR_IN, PG10_IOR_OUT, | ||
430 | PG9_IOR_IN, PG9_IOR_OUT, | ||
431 | PG8_IOR_IN, PG8_IOR_OUT, | ||
432 | PG7_IOR_IN, PG7_IOR_OUT, | ||
433 | PG6_IOR_IN, PG6_IOR_OUT, | ||
434 | PG5_IOR_IN, PG5_IOR_OUT, | ||
435 | PG4_IOR_IN, PG4_IOR_OUT, | ||
436 | PG3_IOR_IN, PG3_IOR_OUT, | ||
437 | PG2_IOR_IN, PG2_IOR_OUT, | ||
438 | PG1_IOR_IN, PG1_IOR_OUT, | ||
439 | PG0_IOR_IN, PG0_IOR_OUT, | ||
440 | |||
441 | PG27MD_00, PG27MD_01, PG27MD_10, PG27MD_11, | ||
442 | PG26MD_00, PG26MD_01, PG26MD_10, PG26MD_11, | ||
443 | PG25MD_00, PG25MD_01, PG25MD_10, PG25MD_11, | ||
444 | PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, | ||
445 | |||
446 | PG23MD_000, PG23MD_001, PG23MD_010, PG23MD_011, | ||
447 | PG23MD_100, PG23MD_101, PG23MD_110, PG23MD_111, | ||
448 | PG22MD_000, PG22MD_001, PG22MD_010, PG22MD_011, | ||
449 | PG22MD_100, PG22MD_101, PG22MD_110, PG22MD_111, | ||
450 | PG21MD_000, PG21MD_001, PG21MD_010, PG21MD_011, | ||
451 | PG21MD_100, PG21MD_101, PG21MD_110, PG21MD_111, | ||
452 | PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011, | ||
453 | PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111, | ||
454 | |||
455 | PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011, | ||
456 | PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111, | ||
457 | PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011, | ||
458 | PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111, | ||
459 | PG17MD_00, PG17MD_01, PG17MD_10, PG17MD_11, | ||
460 | PG16MD_00, PG16MD_01, PG16MD_10, PG16MD_11, | ||
461 | |||
462 | PG15MD_00, PG15MD_01, PG15MD_10, PG15MD_11, | ||
463 | PG14MD_00, PG14MD_01, PG14MD_10, PG14MD_11, | ||
464 | PG13MD_00, PG13MD_01, PG13MD_10, PG13MD_11, | ||
465 | PG12MD_00, PG12MD_01, PG12MD_10, PG12MD_11, | ||
466 | |||
467 | PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011, | ||
468 | PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111, | ||
469 | PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011, | ||
470 | PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111, | ||
471 | PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011, | ||
472 | PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111, | ||
473 | PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011, | ||
474 | PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111, | ||
475 | |||
476 | PG7MD_000, PG7MD_001, PG7MD_010, PG7MD_011, | ||
477 | PG7MD_100, PG7MD_101, PG7MD_110, PG7MD_111, | ||
478 | PG6MD_000, PG6MD_001, PG6MD_010, PG6MD_011, | ||
479 | PG6MD_100, PG6MD_101, PG6MD_110, PG6MD_111, | ||
480 | PG5MD_000, PG5MD_001, PG5MD_010, PG5MD_011, | ||
481 | PG5MD_100, PG5MD_101, PG5MD_110, PG5MD_111, | ||
482 | PG4MD_000, PG4MD_001, PG4MD_010, PG4MD_011, | ||
483 | PG4MD_100, PG4MD_101, PG4MD_110, PG4MD_111, | ||
484 | |||
485 | PG3MD_000, PG3MD_001, PG3MD_010, PG3MD_011, | ||
486 | PG3MD_100, PG3MD_101, PG3MD_110, PG3MD_111, | ||
487 | PG2MD_000, PG2MD_001, PG2MD_010, PG2MD_011, | ||
488 | PG2MD_100, PG2MD_101, PG2MD_110, PG2MD_111, | ||
489 | PG1MD_000, PG1MD_001, PG1MD_010, PG1MD_011, | ||
490 | PG1MD_100, PG1MD_101, PG1MD_110, PG1MD_111, | ||
491 | PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011, | ||
492 | PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111, | ||
493 | |||
494 | /* Port H */ | ||
495 | PH7MD_00, PH7MD_01, PH7MD_10, PH7MD_11, | ||
496 | PH6MD_00, PH6MD_01, PH6MD_10, PH6MD_11, | ||
497 | PH5MD_00, PH5MD_01, PH5MD_10, PH5MD_11, | ||
498 | PH4MD_00, PH4MD_01, PH4MD_10, PH4MD_11, | ||
499 | |||
500 | PH3MD_00, PH3MD_01, PH3MD_10, PH3MD_11, | ||
501 | PH2MD_00, PH2MD_01, PH2MD_10, PH2MD_11, | ||
502 | PH1MD_00, PH1MD_01, PH1MD_10, PH1MD_11, | ||
503 | PH0MD_00, PH0MD_01, PH0MD_10, PH0MD_11, | ||
504 | |||
505 | /* Port I - not on device */ | ||
506 | |||
507 | /* Port J */ | ||
508 | PJ31_IOR_IN, PJ31_IOR_OUT, | ||
509 | PJ30_IOR_IN, PJ30_IOR_OUT, | ||
510 | PJ29_IOR_IN, PJ29_IOR_OUT, | ||
511 | PJ28_IOR_IN, PJ28_IOR_OUT, | ||
512 | PJ27_IOR_IN, PJ27_IOR_OUT, | ||
513 | PJ26_IOR_IN, PJ26_IOR_OUT, | ||
514 | PJ25_IOR_IN, PJ25_IOR_OUT, | ||
515 | PJ24_IOR_IN, PJ24_IOR_OUT, | ||
516 | PJ23_IOR_IN, PJ23_IOR_OUT, | ||
517 | PJ22_IOR_IN, PJ22_IOR_OUT, | ||
518 | PJ21_IOR_IN, PJ21_IOR_OUT, | ||
519 | PJ20_IOR_IN, PJ20_IOR_OUT, | ||
520 | PJ19_IOR_IN, PJ19_IOR_OUT, | ||
521 | PJ18_IOR_IN, PJ18_IOR_OUT, | ||
522 | PJ17_IOR_IN, PJ17_IOR_OUT, | ||
523 | PJ16_IOR_IN, PJ16_IOR_OUT, | ||
524 | PJ15_IOR_IN, PJ15_IOR_OUT, | ||
525 | PJ14_IOR_IN, PJ14_IOR_OUT, | ||
526 | PJ13_IOR_IN, PJ13_IOR_OUT, | ||
527 | PJ12_IOR_IN, PJ12_IOR_OUT, | ||
528 | PJ11_IOR_IN, PJ11_IOR_OUT, | ||
529 | PJ10_IOR_IN, PJ10_IOR_OUT, | ||
530 | PJ9_IOR_IN, PJ9_IOR_OUT, | ||
531 | PJ8_IOR_IN, PJ8_IOR_OUT, | ||
532 | PJ7_IOR_IN, PJ7_IOR_OUT, | ||
533 | PJ6_IOR_IN, PJ6_IOR_OUT, | ||
534 | PJ5_IOR_IN, PJ5_IOR_OUT, | ||
535 | PJ4_IOR_IN, PJ4_IOR_OUT, | ||
536 | PJ3_IOR_IN, PJ3_IOR_OUT, | ||
537 | PJ2_IOR_IN, PJ2_IOR_OUT, | ||
538 | PJ1_IOR_IN, PJ1_IOR_OUT, | ||
539 | PJ0_IOR_IN, PJ0_IOR_OUT, | ||
540 | |||
541 | PJ31MD_0, PJ31MD_1, | ||
542 | PJ30MD_000, PJ30MD_001, PJ30MD_010, PJ30MD_011, | ||
543 | PJ30MD_100, PJ30MD_101, PJ30MD_110, PJ30MD_111, | ||
544 | PJ29MD_000, PJ29MD_001, PJ29MD_010, PJ29MD_011, | ||
545 | PJ29MD_100, PJ29MD_101, PJ29MD_110, PJ29MD_111, | ||
546 | PJ28MD_000, PJ28MD_001, PJ28MD_010, PJ28MD_011, | ||
547 | PJ28MD_100, PJ28MD_101, PJ28MD_110, PJ28MD_111, | ||
548 | |||
549 | PJ27MD_000, PJ27MD_001, PJ27MD_010, PJ27MD_011, | ||
550 | PJ27MD_100, PJ27MD_101, PJ27MD_110, PJ27MD_111, | ||
551 | PJ26MD_000, PJ26MD_001, PJ26MD_010, PJ26MD_011, | ||
552 | PJ26MD_100, PJ26MD_101, PJ26MD_110, PJ26MD_111, | ||
553 | PJ25MD_000, PJ25MD_001, PJ25MD_010, PJ25MD_011, | ||
554 | PJ25MD_100, PJ25MD_101, PJ25MD_110, PJ25MD_111, | ||
555 | PJ24MD_000, PJ24MD_001, PJ24MD_010, PJ24MD_011, | ||
556 | PJ24MD_100, PJ24MD_101, PJ24MD_110, PJ24MD_111, | ||
557 | |||
558 | PJ23MD_000, PJ23MD_001, PJ23MD_010, PJ23MD_011, | ||
559 | PJ23MD_100, PJ23MD_101, PJ23MD_110, PJ23MD_111, | ||
560 | PJ22MD_000, PJ22MD_001, PJ22MD_010, PJ22MD_011, | ||
561 | PJ22MD_100, PJ22MD_101, PJ22MD_110, PJ22MD_111, | ||
562 | PJ21MD_000, PJ21MD_001, PJ21MD_010, PJ21MD_011, | ||
563 | PJ21MD_100, PJ21MD_101, PJ21MD_110, PJ21MD_111, | ||
564 | PJ20MD_000, PJ20MD_001, PJ20MD_010, PJ20MD_011, | ||
565 | PJ20MD_100, PJ20MD_101, PJ20MD_110, PJ20MD_111, | ||
566 | |||
567 | PJ19MD_000, PJ19MD_001, PJ19MD_010, PJ19MD_011, | ||
568 | PJ19MD_100, PJ19MD_101, PJ19MD_110, PJ19MD_111, | ||
569 | PJ18MD_000, PJ18MD_001, PJ18MD_010, PJ18MD_011, | ||
570 | PJ18MD_100, PJ18MD_101, PJ18MD_110, PJ18MD_111, | ||
571 | PJ17MD_000, PJ17MD_001, PJ17MD_010, PJ17MD_011, | ||
572 | PJ17MD_100, PJ17MD_101, PJ17MD_110, PJ17MD_111, | ||
573 | PJ16MD_000, PJ16MD_001, PJ16MD_010, PJ16MD_011, | ||
574 | PJ16MD_100, PJ16MD_101, PJ16MD_110, PJ16MD_111, | ||
575 | |||
576 | PJ15MD_000, PJ15MD_001, PJ15MD_010, PJ15MD_011, | ||
577 | PJ15MD_100, PJ15MD_101, PJ15MD_110, PJ15MD_111, | ||
578 | PJ14MD_000, PJ14MD_001, PJ14MD_010, PJ14MD_011, | ||
579 | PJ14MD_100, PJ14MD_101, PJ14MD_110, PJ14MD_111, | ||
580 | PJ13MD_000, PJ13MD_001, PJ13MD_010, PJ13MD_011, | ||
581 | PJ13MD_100, PJ13MD_101, PJ13MD_110, PJ13MD_111, | ||
582 | PJ12MD_000, PJ12MD_001, PJ12MD_010, PJ12MD_011, | ||
583 | PJ12MD_100, PJ12MD_101, PJ12MD_110, PJ12MD_111, | ||
584 | |||
585 | PJ11MD_000, PJ11MD_001, PJ11MD_010, PJ11MD_011, | ||
586 | PJ11MD_100, PJ11MD_101, PJ11MD_110, PJ11MD_111, | ||
587 | PJ10MD_000, PJ10MD_001, PJ10MD_010, PJ10MD_011, | ||
588 | PJ10MD_100, PJ10MD_101, PJ10MD_110, PJ10MD_111, | ||
589 | PJ9MD_000, PJ9MD_001, PJ9MD_010, PJ9MD_011, | ||
590 | PJ9MD_100, PJ9MD_101, PJ9MD_110, PJ9MD_111, | ||
591 | PJ8MD_000, PJ8MD_001, PJ8MD_010, PJ8MD_011, | ||
592 | PJ8MD_100, PJ8MD_101, PJ8MD_110, PJ8MD_111, | ||
593 | |||
594 | PJ7MD_000, PJ7MD_001, PJ7MD_010, PJ7MD_011, | ||
595 | PJ7MD_100, PJ7MD_101, PJ7MD_110, PJ7MD_111, | ||
596 | PJ6MD_000, PJ6MD_001, PJ6MD_010, PJ6MD_011, | ||
597 | PJ6MD_100, PJ6MD_101, PJ6MD_110, PJ6MD_111, | ||
598 | PJ5MD_000, PJ5MD_001, PJ5MD_010, PJ5MD_011, | ||
599 | PJ5MD_100, PJ5MD_101, PJ5MD_110, PJ5MD_111, | ||
600 | PJ4MD_000, PJ4MD_001, PJ4MD_010, PJ4MD_011, | ||
601 | PJ4MD_100, PJ4MD_101, PJ4MD_110, PJ4MD_111, | ||
602 | |||
603 | PJ3MD_000, PJ3MD_001, PJ3MD_010, PJ3MD_011, | ||
604 | PJ3MD_100, PJ3MD_101, PJ3MD_110, PJ3MD_111, | ||
605 | PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011, | ||
606 | PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111, | ||
607 | PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011, | ||
608 | PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111, | ||
609 | PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011, | ||
610 | PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111, | ||
611 | |||
612 | PINMUX_FUNCTION_END, | ||
613 | |||
614 | PINMUX_MARK_BEGIN, | ||
615 | /* Port H */ | ||
616 | PHAN7_MARK, PHAN6_MARK, PHAN5_MARK, PHAN4_MARK, | ||
617 | PHAN3_MARK, PHAN2_MARK, PHAN1_MARK, PHAN0_MARK, | ||
618 | |||
619 | /* IRQs */ | ||
620 | IRQ7_PG_MARK, IRQ6_PG_MARK, IRQ5_PG_MARK, IRQ4_PG_MARK, | ||
621 | IRQ3_PG_MARK, IRQ2_PG_MARK, IRQ1_PG_MARK, IRQ0_PG_MARK, | ||
622 | IRQ7_PF_MARK, IRQ6_PF_MARK, IRQ5_PF_MARK, IRQ4_PF_MARK, | ||
623 | IRQ3_PJ_MARK, IRQ2_PJ_MARK, IRQ1_PJ_MARK, IRQ0_PJ_MARK, | ||
624 | IRQ1_PC_MARK, IRQ0_PC_MARK, | ||
625 | |||
626 | PINT7_PG_MARK, PINT6_PG_MARK, PINT5_PG_MARK, PINT4_PG_MARK, | ||
627 | PINT3_PG_MARK, PINT2_PG_MARK, PINT1_PG_MARK, PINT0_PG_MARK, | ||
628 | PINT7_PH_MARK, PINT6_PH_MARK, PINT5_PH_MARK, PINT4_PH_MARK, | ||
629 | PINT3_PH_MARK, PINT2_PH_MARK, PINT1_PH_MARK, PINT0_PH_MARK, | ||
630 | PINT7_PJ_MARK, PINT6_PJ_MARK, PINT5_PJ_MARK, PINT4_PJ_MARK, | ||
631 | PINT3_PJ_MARK, PINT2_PJ_MARK, PINT1_PJ_MARK, PINT0_PJ_MARK, | ||
632 | |||
633 | /* SD */ | ||
634 | SD_D0_MARK, SD_D1_MARK, SD_D2_MARK, SD_D3_MARK, | ||
635 | SD_WP_MARK, SD_CLK_MARK, SD_CMD_MARK, SD_CD_MARK, | ||
636 | |||
637 | /* MMC */ | ||
638 | MMC_D0_MARK, MMC_D1_MARK, MMC_D2_MARK, MMC_D3_MARK, | ||
639 | MMC_D4_MARK, MMC_D5_MARK, MMC_D6_MARK, MMC_D7_MARK, | ||
640 | MMC_CLK_MARK, MMC_CMD_MARK, MMC_CD_MARK, | ||
641 | |||
642 | /* PWM */ | ||
643 | PWM1A_MARK, PWM1B_MARK, PWM1C_MARK, PWM1D_MARK, | ||
644 | PWM1E_MARK, PWM1F_MARK, PWM1G_MARK, PWM1H_MARK, | ||
645 | PWM2A_MARK, PWM2B_MARK, PWM2C_MARK, PWM2D_MARK, | ||
646 | PWM2E_MARK, PWM2F_MARK, PWM2G_MARK, PWM2H_MARK, | ||
647 | |||
648 | /* IEBus */ | ||
649 | IERXD_MARK, IETXD_MARK, | ||
650 | |||
651 | /* WDT */ | ||
652 | WDTOVF_MARK, | ||
653 | |||
654 | /* DMAC */ | ||
655 | TEND0_MARK, DACK0_MARK, DREQ0_MARK, | ||
656 | TEND1_MARK, DACK1_MARK, DREQ1_MARK, | ||
657 | |||
658 | /* ADC */ | ||
659 | ADTRG_MARK, | ||
660 | |||
661 | /* BSC */ | ||
662 | A25_MARK, A24_MARK, | ||
663 | A23_MARK, A22_MARK, A21_MARK, A20_MARK, | ||
664 | A19_MARK, A18_MARK, A17_MARK, A16_MARK, | ||
665 | A15_MARK, A14_MARK, A13_MARK, A12_MARK, | ||
666 | A11_MARK, A10_MARK, A9_MARK, A8_MARK, | ||
667 | A7_MARK, A6_MARK, A5_MARK, A4_MARK, | ||
668 | A3_MARK, A2_MARK, A1_MARK, A0_MARK, | ||
669 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, | ||
670 | D27_MARK, D26_MARK, D25_MARK, D24_MARK, | ||
671 | D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
672 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
673 | D15_MARK, D14_MARK, D13_MARK, D12_MARK, | ||
674 | D11_MARK, D10_MARK, D9_MARK, D8_MARK, | ||
675 | D7_MARK, D6_MARK, D5_MARK, D4_MARK, | ||
676 | D3_MARK, D2_MARK, D1_MARK, D0_MARK, | ||
677 | BS_MARK, | ||
678 | CS4_MARK, CS3_MARK, CS2_MARK, CS1_MARK, CS0_MARK, | ||
679 | CS5CE1A_MARK, | ||
680 | CE2A_MARK, CE2B_MARK, | ||
681 | RD_MARK, RDWR_MARK, | ||
682 | WE3ICIOWRAHDQMUU_MARK, | ||
683 | WE2ICIORDDQMUL_MARK, | ||
684 | WE1DQMUWE_MARK, | ||
685 | WE0DQML_MARK, | ||
686 | RAS_MARK, CAS_MARK, CKE_MARK, | ||
687 | WAIT_MARK, BREQ_MARK, BACK_MARK, IOIS16_MARK, | ||
688 | |||
689 | /* TMU */ | ||
690 | TIOC0A_MARK, TIOC0B_MARK, TIOC0C_MARK, TIOC0D_MARK, | ||
691 | TIOC1A_MARK, TIOC1B_MARK, | ||
692 | TIOC2A_MARK, TIOC2B_MARK, | ||
693 | TIOC3A_MARK, TIOC3B_MARK, TIOC3C_MARK, TIOC3D_MARK, | ||
694 | TIOC4A_MARK, TIOC4B_MARK, TIOC4C_MARK, TIOC4D_MARK, | ||
695 | TCLKA_MARK, TCLKB_MARK, TCLKC_MARK, TCLKD_MARK, | ||
696 | |||
697 | /* SCIF */ | ||
698 | SCK0_MARK, RXD0_MARK, TXD0_MARK, | ||
699 | SCK1_MARK, RXD1_MARK, TXD1_MARK, RTS1_MARK, CTS1_MARK, | ||
700 | SCK2_MARK, RXD2_MARK, TXD2_MARK, | ||
701 | SCK3_MARK, RXD3_MARK, TXD3_MARK, | ||
702 | SCK4_MARK, RXD4_MARK, TXD4_MARK, | ||
703 | SCK5_MARK, RXD5_MARK, TXD5_MARK, RTS5_MARK, CTS5_MARK, | ||
704 | SCK6_MARK, RXD6_MARK, TXD6_MARK, | ||
705 | SCK7_MARK, RXD7_MARK, TXD7_MARK, RTS7_MARK, CTS7_MARK, | ||
706 | |||
707 | /* RSPI */ | ||
708 | MISO0_PB20_MARK, MOSI0_PB19_MARK, SSL00_PB18_MARK, RSPCK0_PB17_MARK, | ||
709 | MISO0_PJ19_MARK, MOSI0_PJ18_MARK, SSL00_PJ17_MARK, RSPCK0_PJ16_MARK, | ||
710 | MISO1_MARK, MOSI1_MARK, SSL10_MARK, RSPCK1_MARK, | ||
711 | |||
712 | /* IIC3 */ | ||
713 | SCL0_MARK, SDA0_MARK, | ||
714 | SCL1_MARK, SDA1_MARK, | ||
715 | SCL2_MARK, SDA2_MARK, | ||
716 | SCL3_MARK, SDA3_MARK, | ||
717 | |||
718 | /* SSI */ | ||
719 | SSISCK0_MARK, SSIWS0_MARK, SSITXD0_MARK, SSIRXD0_MARK, | ||
720 | SSISCK1_MARK, SSIWS1_MARK, SSIDATA1_MARK, | ||
721 | SSISCK2_MARK, SSIWS2_MARK, SSIDATA2_MARK, | ||
722 | SSISCK3_MARK, SSIWS3_MARK, SSIDATA3_MARK, | ||
723 | SSISCK4_MARK, SSIWS4_MARK, SSIDATA4_MARK, | ||
724 | SSISCK5_MARK, SSIWS5_MARK, SSIDATA5_MARK, | ||
725 | AUDIO_CLK_MARK, | ||
726 | AUDIO_XOUT_MARK, | ||
727 | |||
728 | /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
729 | SIOFTXD_MARK, SIOFRXD_MARK, SIOFSYNC_MARK, SIOFSCK_MARK, | ||
730 | |||
731 | /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
732 | SPDIF_IN_MARK, SPDIF_OUT_MARK, | ||
733 | SPDIF_IN_PJ24_MARK, SPDIF_OUT_PJ25_MARK, | ||
734 | |||
735 | /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */ | ||
736 | FCE_MARK, | ||
737 | FRB_MARK, | ||
738 | |||
739 | /* CAN */ | ||
740 | CRX0_MARK, CTX0_MARK, | ||
741 | CRX1_MARK, CTX1_MARK, | ||
742 | CRX2_MARK, CTX2_MARK, | ||
743 | CRX0_CRX1_MARK, | ||
744 | CRX0_CRX1_CRX2_MARK, | ||
745 | CTX0CTX1CTX2_MARK, | ||
746 | CRX1_PJ22_MARK, CTX1_PJ23_MARK, | ||
747 | CRX2_PJ20_MARK, CTX2_PJ21_MARK, | ||
748 | CRX0CRX1_PJ22_MARK, | ||
749 | CRX0CRX1CRX2_PJ20_MARK, | ||
750 | |||
751 | /* VDC */ | ||
752 | DV_CLK_MARK, | ||
753 | DV_VSYNC_MARK, DV_HSYNC_MARK, | ||
754 | DV_DATA23_MARK, DV_DATA22_MARK, DV_DATA21_MARK, DV_DATA20_MARK, | ||
755 | DV_DATA19_MARK, DV_DATA18_MARK, DV_DATA17_MARK, DV_DATA16_MARK, | ||
756 | DV_DATA15_MARK, DV_DATA14_MARK, DV_DATA13_MARK, DV_DATA12_MARK, | ||
757 | DV_DATA11_MARK, DV_DATA10_MARK, DV_DATA9_MARK, DV_DATA8_MARK, | ||
758 | DV_DATA7_MARK, DV_DATA6_MARK, DV_DATA5_MARK, DV_DATA4_MARK, | ||
759 | DV_DATA3_MARK, DV_DATA2_MARK, DV_DATA1_MARK, DV_DATA0_MARK, | ||
760 | LCD_CLK_MARK, LCD_EXTCLK_MARK, | ||
761 | LCD_VSYNC_MARK, LCD_HSYNC_MARK, LCD_DE_MARK, | ||
762 | LCD_DATA23_PG23_MARK, LCD_DATA22_PG22_MARK, LCD_DATA21_PG21_MARK, | ||
763 | LCD_DATA20_PG20_MARK, LCD_DATA19_PG19_MARK, LCD_DATA18_PG18_MARK, | ||
764 | LCD_DATA17_PG17_MARK, LCD_DATA16_PG16_MARK, LCD_DATA15_PG15_MARK, | ||
765 | LCD_DATA14_PG14_MARK, LCD_DATA13_PG13_MARK, LCD_DATA12_PG12_MARK, | ||
766 | LCD_DATA11_PG11_MARK, LCD_DATA10_PG10_MARK, LCD_DATA9_PG9_MARK, | ||
767 | LCD_DATA8_PG8_MARK, LCD_DATA7_PG7_MARK, LCD_DATA6_PG6_MARK, | ||
768 | LCD_DATA5_PG5_MARK, LCD_DATA4_PG4_MARK, LCD_DATA3_PG3_MARK, | ||
769 | LCD_DATA2_PG2_MARK, LCD_DATA1_PG1_MARK, LCD_DATA0_PG0_MARK, | ||
770 | LCD_DATA23_PJ23_MARK, LCD_DATA22_PJ22_MARK, LCD_DATA21_PJ21_MARK, | ||
771 | LCD_DATA20_PJ20_MARK, LCD_DATA19_PJ19_MARK, LCD_DATA18_PJ18_MARK, | ||
772 | LCD_DATA17_PJ17_MARK, LCD_DATA16_PJ16_MARK, LCD_DATA15_PJ15_MARK, | ||
773 | LCD_DATA14_PJ14_MARK, LCD_DATA13_PJ13_MARK, LCD_DATA12_PJ12_MARK, | ||
774 | LCD_DATA11_PJ11_MARK, LCD_DATA10_PJ10_MARK, LCD_DATA9_PJ9_MARK, | ||
775 | LCD_DATA8_PJ8_MARK, LCD_DATA7_PJ7_MARK, LCD_DATA6_PJ6_MARK, | ||
776 | LCD_DATA5_PJ5_MARK, LCD_DATA4_PJ4_MARK, LCD_DATA3_PJ3_MARK, | ||
777 | LCD_DATA2_PJ2_MARK, LCD_DATA1_PJ1_MARK, LCD_DATA0_PJ0_MARK, | ||
778 | LCD_TCON6_MARK, LCD_TCON5_MARK, LCD_TCON4_MARK, | ||
779 | LCD_TCON3_MARK, LCD_TCON2_MARK, LCD_TCON1_MARK, LCD_TCON0_MARK, | ||
780 | LCD_M_DISP_MARK, | ||
781 | PINMUX_MARK_END, | ||
782 | }; | ||
783 | |||
784 | static pinmux_enum_t pinmux_data[] = { | ||
785 | |||
786 | /* Port A */ | ||
787 | PINMUX_DATA(PA1_DATA, PA1_IN), | ||
788 | PINMUX_DATA(PA0_DATA, PA0_IN), | ||
789 | |||
790 | /* Port B */ | ||
791 | PINMUX_DATA(PB22_DATA, PB22MD_000, PB22_IN, PB22_OUT), | ||
792 | PINMUX_DATA(A22_MARK, PB22MD_001), | ||
793 | PINMUX_DATA(CTX2_MARK, PB22MD_010), | ||
794 | PINMUX_DATA(IETXD_MARK, PB22MD_011), | ||
795 | PINMUX_DATA(CS4_MARK, PB22MD_100), | ||
796 | |||
797 | PINMUX_DATA(PB21_DATA, PB21MD_00, PB21_IN, PB21_OUT), | ||
798 | PINMUX_DATA(A21_MARK, PB21MD_01), | ||
799 | PINMUX_DATA(CRX2_MARK, PB21MD_10), | ||
800 | PINMUX_DATA(IERXD_MARK, PB21MD_11), | ||
801 | |||
802 | PINMUX_DATA(A20_MARK, PB20MD_001), | ||
803 | PINMUX_DATA(A19_MARK, PB19MD_001), | ||
804 | PINMUX_DATA(A18_MARK, PB18MD_001), | ||
805 | PINMUX_DATA(A17_MARK, PB17MD_001), | ||
806 | PINMUX_DATA(A16_MARK, PB16MD_001), | ||
807 | PINMUX_DATA(A15_MARK, PB15MD_001), | ||
808 | PINMUX_DATA(A14_MARK, PB14MD_001), | ||
809 | PINMUX_DATA(A13_MARK, PB13MD_001), | ||
810 | PINMUX_DATA(A12_MARK, PB12MD_01), | ||
811 | PINMUX_DATA(A11_MARK, PB11MD_01), | ||
812 | PINMUX_DATA(A10_MARK, PB10MD_01), | ||
813 | PINMUX_DATA(A9_MARK, PB9MD_01), | ||
814 | PINMUX_DATA(A8_MARK, PB8MD_01), | ||
815 | PINMUX_DATA(A7_MARK, PB7MD_01), | ||
816 | PINMUX_DATA(A6_MARK, PB6MD_01), | ||
817 | PINMUX_DATA(A5_MARK, PB5MD_01), | ||
818 | PINMUX_DATA(A4_MARK, PB4MD_01), | ||
819 | PINMUX_DATA(A3_MARK, PB3MD_01), | ||
820 | PINMUX_DATA(A2_MARK, PB2MD_01), | ||
821 | PINMUX_DATA(A1_MARK, PB1MD_01), | ||
822 | |||
823 | /* Port C */ | ||
824 | PINMUX_DATA(PC8_DATA, PC8MD_000), | ||
825 | PINMUX_DATA(CS3_MARK, PC8MD_001), | ||
826 | PINMUX_DATA(TXD7_MARK, PC8MD_010), | ||
827 | PINMUX_DATA(CTX1_MARK, PC8MD_011), | ||
828 | |||
829 | PINMUX_DATA(PC7_DATA, PC7MD_000), | ||
830 | PINMUX_DATA(CKE_MARK, PC7MD_001), | ||
831 | PINMUX_DATA(RXD7_MARK, PC7MD_010), | ||
832 | PINMUX_DATA(CRX1_MARK, PC7MD_011), | ||
833 | PINMUX_DATA(CRX0_CRX1_MARK, PC7MD_100), | ||
834 | PINMUX_DATA(IRQ1_PC_MARK, PC7MD_101), | ||
835 | |||
836 | PINMUX_DATA(PC6_DATA, PC6MD_000), | ||
837 | PINMUX_DATA(CAS_MARK, PC6MD_001), | ||
838 | PINMUX_DATA(SCK7_MARK, PC6MD_010), | ||
839 | PINMUX_DATA(CTX0_MARK, PC6MD_011), | ||
840 | |||
841 | PINMUX_DATA(PC5_DATA, PC5MD_000), | ||
842 | PINMUX_DATA(RAS_MARK, PC5MD_001), | ||
843 | PINMUX_DATA(CRX0_MARK, PC5MD_011), | ||
844 | PINMUX_DATA(CTX0CTX1CTX2_MARK, PC5MD_100), | ||
845 | PINMUX_DATA(IRQ0_PC_MARK, PC5MD_101), | ||
846 | |||
847 | PINMUX_DATA(PC4_DATA, PC4MD_00), | ||
848 | PINMUX_DATA(WE1DQMUWE_MARK, PC4MD_01), | ||
849 | PINMUX_DATA(TXD6_MARK, PC4MD_10), | ||
850 | |||
851 | PINMUX_DATA(PC3_DATA, PC3MD_00), | ||
852 | PINMUX_DATA(WE0DQML_MARK, PC3MD_01), | ||
853 | PINMUX_DATA(RXD6_MARK, PC3MD_10), | ||
854 | |||
855 | PINMUX_DATA(PC2_DATA, PC2MD_00), | ||
856 | PINMUX_DATA(RDWR_MARK, PC2MD_01), | ||
857 | PINMUX_DATA(SCK5_MARK, PC2MD_10), | ||
858 | |||
859 | PINMUX_DATA(PC1_DATA, PC1MD_0), | ||
860 | PINMUX_DATA(RD_MARK, PC1MD_1), | ||
861 | |||
862 | PINMUX_DATA(PC0_DATA, PC0MD_0), | ||
863 | PINMUX_DATA(CS0_MARK, PC0MD_1), | ||
864 | |||
865 | /* Port D */ | ||
866 | PINMUX_DATA(D15_MARK, PD15MD_01), | ||
867 | PINMUX_DATA(D14_MARK, PD14MD_01), | ||
868 | |||
869 | PINMUX_DATA(PD13_DATA, PD13MD_00), | ||
870 | PINMUX_DATA(D13_MARK, PD13MD_01), | ||
871 | PINMUX_DATA(PWM2F_MARK, PD13MD_10), | ||
872 | |||
873 | PINMUX_DATA(PD12_DATA, PD12MD_00), | ||
874 | PINMUX_DATA(D12_MARK, PD12MD_01), | ||
875 | PINMUX_DATA(PWM2E_MARK, PD12MD_10), | ||
876 | |||
877 | PINMUX_DATA(D11_MARK, PD11MD_01), | ||
878 | PINMUX_DATA(D10_MARK, PD10MD_01), | ||
879 | PINMUX_DATA(D9_MARK, PD9MD_01), | ||
880 | PINMUX_DATA(D8_MARK, PD8MD_01), | ||
881 | PINMUX_DATA(D7_MARK, PD7MD_01), | ||
882 | PINMUX_DATA(D6_MARK, PD6MD_01), | ||
883 | PINMUX_DATA(D5_MARK, PD5MD_01), | ||
884 | PINMUX_DATA(D4_MARK, PD4MD_01), | ||
885 | PINMUX_DATA(D3_MARK, PD3MD_01), | ||
886 | PINMUX_DATA(D2_MARK, PD2MD_01), | ||
887 | PINMUX_DATA(D1_MARK, PD1MD_01), | ||
888 | PINMUX_DATA(D0_MARK, PD0MD_01), | ||
889 | |||
890 | /* Port E */ | ||
891 | PINMUX_DATA(PE7_DATA, PE7MD_00), | ||
892 | PINMUX_DATA(SDA3_MARK, PE7MD_01), | ||
893 | PINMUX_DATA(RXD7_MARK, PE7MD_10), | ||
894 | |||
895 | PINMUX_DATA(PE6_DATA, PE6MD_00), | ||
896 | PINMUX_DATA(SCL3_MARK, PE6MD_01), | ||
897 | PINMUX_DATA(RXD6_MARK, PE6MD_10), | ||
898 | |||
899 | PINMUX_DATA(PE5_DATA, PE5MD_00), | ||
900 | PINMUX_DATA(SDA2_MARK, PE5MD_01), | ||
901 | PINMUX_DATA(RXD5_MARK, PE5MD_10), | ||
902 | PINMUX_DATA(DV_HSYNC_MARK, PE5MD_11), | ||
903 | |||
904 | PINMUX_DATA(PE4_DATA, PE4MD_00), | ||
905 | PINMUX_DATA(SCL2_MARK, PE4MD_01), | ||
906 | PINMUX_DATA(DV_VSYNC_MARK, PE4MD_11), | ||
907 | |||
908 | PINMUX_DATA(PE3_DATA, PE3MD_000), | ||
909 | PINMUX_DATA(SDA1_MARK, PE3MD_001), | ||
910 | PINMUX_DATA(TCLKD_MARK, PE3MD_010), | ||
911 | PINMUX_DATA(ADTRG_MARK, PE3MD_011), | ||
912 | PINMUX_DATA(DV_HSYNC_MARK, PE3MD_100), | ||
913 | |||
914 | PINMUX_DATA(PE2_DATA, PE2MD_000), | ||
915 | PINMUX_DATA(SCL1_MARK, PE2MD_001), | ||
916 | PINMUX_DATA(TCLKD_MARK, PE2MD_010), | ||
917 | PINMUX_DATA(IOIS16_MARK, PE2MD_011), | ||
918 | PINMUX_DATA(DV_VSYNC_MARK, PE2MD_100), | ||
919 | |||
920 | PINMUX_DATA(PE1_DATA, PE1MD_000), | ||
921 | PINMUX_DATA(SDA0_MARK, PE1MD_001), | ||
922 | PINMUX_DATA(TCLKB_MARK, PE1MD_010), | ||
923 | PINMUX_DATA(AUDIO_CLK_MARK, PE1MD_010), | ||
924 | PINMUX_DATA(DV_CLK_MARK, PE1MD_100), | ||
925 | |||
926 | PINMUX_DATA(PE0_DATA, PE0MD_00), | ||
927 | PINMUX_DATA(SCL0_MARK, PE0MD_01), | ||
928 | PINMUX_DATA(TCLKA_MARK, PE0MD_10), | ||
929 | PINMUX_DATA(LCD_EXTCLK_MARK, PE0MD_11), | ||
930 | |||
931 | /* Port F */ | ||
932 | PINMUX_DATA(PF23_DATA, PF23MD_000), | ||
933 | PINMUX_DATA(SD_D2_MARK, PF23MD_001), | ||
934 | PINMUX_DATA(TXD3_MARK, PF23MD_100), | ||
935 | PINMUX_DATA(MMC_D2_MARK, PF23MD_101), | ||
936 | |||
937 | PINMUX_DATA(PF22_DATA, PF22MD_000), | ||
938 | PINMUX_DATA(SD_D3_MARK, PF22MD_001), | ||
939 | PINMUX_DATA(RXD3_MARK, PF22MD_100), | ||
940 | PINMUX_DATA(MMC_D3_MARK, PF22MD_101), | ||
941 | |||
942 | PINMUX_DATA(PF21_DATA, PF21MD_000), | ||
943 | PINMUX_DATA(SD_CMD_MARK, PF21MD_001), | ||
944 | PINMUX_DATA(SCK3_MARK, PF21MD_100), | ||
945 | PINMUX_DATA(MMC_CMD_MARK, PF21MD_101), | ||
946 | |||
947 | PINMUX_DATA(PF20_DATA, PF20MD_000), | ||
948 | PINMUX_DATA(SD_CLK_MARK, PF20MD_001), | ||
949 | PINMUX_DATA(SSIDATA3_MARK, PF20MD_010), | ||
950 | PINMUX_DATA(MMC_CLK_MARK, PF20MD_101), | ||
951 | |||
952 | PINMUX_DATA(PF19_DATA, PF19MD_000), | ||
953 | PINMUX_DATA(SD_D0_MARK, PF19MD_001), | ||
954 | PINMUX_DATA(SSIWS3_MARK, PF19MD_010), | ||
955 | PINMUX_DATA(IRQ7_PF_MARK, PF19MD_100), | ||
956 | PINMUX_DATA(MMC_D0_MARK, PF19MD_101), | ||
957 | |||
958 | PINMUX_DATA(PF18_DATA, PF18MD_000), | ||
959 | PINMUX_DATA(SD_D1_MARK, PF18MD_001), | ||
960 | PINMUX_DATA(SSISCK3_MARK, PF18MD_010), | ||
961 | PINMUX_DATA(IRQ6_PF_MARK, PF18MD_100), | ||
962 | PINMUX_DATA(MMC_D1_MARK, PF18MD_101), | ||
963 | |||
964 | PINMUX_DATA(PF17_DATA, PF17MD_000), | ||
965 | PINMUX_DATA(SD_WP_MARK, PF17MD_001), | ||
966 | PINMUX_DATA(FRB_MARK, PF17MD_011), | ||
967 | PINMUX_DATA(IRQ5_PF_MARK, PF17MD_100), | ||
968 | |||
969 | PINMUX_DATA(PF16_DATA, PF16MD_000), | ||
970 | PINMUX_DATA(SD_CD_MARK, PF16MD_001), | ||
971 | PINMUX_DATA(FCE_MARK, PF16MD_011), | ||
972 | PINMUX_DATA(IRQ4_PF_MARK, PF16MD_100), | ||
973 | PINMUX_DATA(MMC_CD_MARK, PF16MD_101), | ||
974 | |||
975 | PINMUX_DATA(PF15_DATA, PF15MD_000), | ||
976 | PINMUX_DATA(A0_MARK, PF15MD_001), | ||
977 | PINMUX_DATA(SSIDATA2_MARK, PF15MD_010), | ||
978 | PINMUX_DATA(WDTOVF_MARK, PF15MD_011), | ||
979 | PINMUX_DATA(TXD2_MARK, PF15MD_100), | ||
980 | |||
981 | PINMUX_DATA(PF14_DATA, PF14MD_000), | ||
982 | PINMUX_DATA(A25_MARK, PF14MD_001), | ||
983 | PINMUX_DATA(SSIWS2_MARK, PF14MD_010), | ||
984 | PINMUX_DATA(RXD2_MARK, PF14MD_100), | ||
985 | |||
986 | PINMUX_DATA(PF13_DATA, PF13MD_000), | ||
987 | PINMUX_DATA(A24_MARK, PF13MD_001), | ||
988 | PINMUX_DATA(SSISCK2_MARK, PF13MD_010), | ||
989 | PINMUX_DATA(SCK2_MARK, PF13MD_100), | ||
990 | |||
991 | PINMUX_DATA(PF12_DATA, PF12MD_000), | ||
992 | PINMUX_DATA(SSIDATA1_MARK, PF12MD_010), | ||
993 | PINMUX_DATA(DV_DATA12_MARK, PF12MD_011), | ||
994 | PINMUX_DATA(TXD1_MARK, PF12MD_100), | ||
995 | PINMUX_DATA(MMC_D7_MARK, PF12MD_101), | ||
996 | |||
997 | PINMUX_DATA(PF11_DATA, PF11MD_000), | ||
998 | PINMUX_DATA(SSIWS1_MARK, PF11MD_010), | ||
999 | PINMUX_DATA(DV_DATA2_MARK, PF11MD_011), | ||
1000 | PINMUX_DATA(RXD1_MARK, PF11MD_100), | ||
1001 | PINMUX_DATA(MMC_D6_MARK, PF11MD_101), | ||
1002 | |||
1003 | PINMUX_DATA(PF10_DATA, PF10MD_000), | ||
1004 | PINMUX_DATA(CS1_MARK, PF10MD_001), | ||
1005 | PINMUX_DATA(SSISCK1_MARK, PF10MD_010), | ||
1006 | PINMUX_DATA(DV_DATA1_MARK, PF10MD_011), | ||
1007 | PINMUX_DATA(SCK1_MARK, PF10MD_100), | ||
1008 | PINMUX_DATA(MMC_D5_MARK, PF10MD_101), | ||
1009 | |||
1010 | PINMUX_DATA(PF9_DATA, PF9MD_000), | ||
1011 | PINMUX_DATA(BS_MARK, PF9MD_001), | ||
1012 | PINMUX_DATA(DV_DATA0_MARK, PF9MD_011), | ||
1013 | PINMUX_DATA(SCK0_MARK, PF9MD_100), | ||
1014 | PINMUX_DATA(MMC_D4_MARK, PF9MD_101), | ||
1015 | PINMUX_DATA(RTS1_MARK, PF9MD_110), | ||
1016 | |||
1017 | PINMUX_DATA(PF8_DATA, PF8MD_000), | ||
1018 | PINMUX_DATA(A23_MARK, PF8MD_001), | ||
1019 | PINMUX_DATA(TXD0_MARK, PF8MD_100), | ||
1020 | |||
1021 | PINMUX_DATA(PF7_DATA, PF7MD_000), | ||
1022 | PINMUX_DATA(SSIRXD0_MARK, PF7MD_010), | ||
1023 | PINMUX_DATA(RXD0_MARK, PF7MD_100), | ||
1024 | PINMUX_DATA(CTS1_MARK, PF7MD_110), | ||
1025 | |||
1026 | PINMUX_DATA(PF6_DATA, PF6MD_000), | ||
1027 | PINMUX_DATA(CE2A_MARK, PF6MD_001), | ||
1028 | PINMUX_DATA(SSITXD0_MARK, PF6MD_010), | ||
1029 | |||
1030 | PINMUX_DATA(PF5_DATA, PF5MD_000), | ||
1031 | PINMUX_DATA(SSIWS0_MARK, PF5MD_010), | ||
1032 | |||
1033 | PINMUX_DATA(PF4_DATA, PF4MD_000), | ||
1034 | PINMUX_DATA(CS5CE1A_MARK, PF4MD_001), | ||
1035 | PINMUX_DATA(SSISCK0_MARK, PF4MD_010), | ||
1036 | |||
1037 | PINMUX_DATA(PF3_DATA, PF3MD_000), | ||
1038 | PINMUX_DATA(CS2_MARK, PF3MD_001), | ||
1039 | PINMUX_DATA(MISO1_MARK, PF3MD_011), | ||
1040 | PINMUX_DATA(TIOC4D_MARK, PF3MD_100), | ||
1041 | |||
1042 | PINMUX_DATA(PF2_DATA, PF2MD_000), | ||
1043 | PINMUX_DATA(WAIT_MARK, PF2MD_001), | ||
1044 | PINMUX_DATA(MOSI1_MARK, PF2MD_011), | ||
1045 | PINMUX_DATA(TIOC4C_MARK, PF2MD_100), | ||
1046 | PINMUX_DATA(TEND0_MARK, PF2MD_101), | ||
1047 | |||
1048 | PINMUX_DATA(PF1_DATA, PF1MD_000), | ||
1049 | PINMUX_DATA(BACK_MARK, PF1MD_001), | ||
1050 | PINMUX_DATA(SSL10_MARK, PF1MD_011), | ||
1051 | PINMUX_DATA(TIOC4B_MARK, PF1MD_100), | ||
1052 | PINMUX_DATA(DACK0_MARK, PF1MD_101), | ||
1053 | |||
1054 | PINMUX_DATA(PF0_DATA, PF0MD_000), | ||
1055 | PINMUX_DATA(BREQ_MARK, PF0MD_001), | ||
1056 | PINMUX_DATA(RSPCK1_MARK, PF0MD_011), | ||
1057 | PINMUX_DATA(TIOC4A_MARK, PF0MD_100), | ||
1058 | PINMUX_DATA(DREQ0_MARK, PF0MD_101), | ||
1059 | |||
1060 | /* Port G */ | ||
1061 | PINMUX_DATA(PG27_DATA, PG27MD_00), | ||
1062 | PINMUX_DATA(LCD_TCON2_MARK, PG27MD_10), | ||
1063 | PINMUX_DATA(LCD_EXTCLK_MARK, PG27MD_11), | ||
1064 | PINMUX_DATA(LCD_DE_MARK, PG27MD_11), | ||
1065 | |||
1066 | PINMUX_DATA(PG26_DATA, PG26MD_00), | ||
1067 | PINMUX_DATA(LCD_TCON1_MARK, PG26MD_10), | ||
1068 | PINMUX_DATA(LCD_HSYNC_MARK, PG26MD_10), | ||
1069 | |||
1070 | PINMUX_DATA(PG25_DATA, PG25MD_00), | ||
1071 | PINMUX_DATA(LCD_TCON0_MARK, PG25MD_10), | ||
1072 | PINMUX_DATA(LCD_VSYNC_MARK, PG25MD_10), | ||
1073 | |||
1074 | PINMUX_DATA(PG24_DATA, PG24MD_00), | ||
1075 | PINMUX_DATA(LCD_CLK_MARK, PG24MD_10), | ||
1076 | |||
1077 | PINMUX_DATA(PG23_DATA, PG23MD_000), | ||
1078 | PINMUX_DATA(LCD_DATA23_PG23_MARK, PG23MD_010), | ||
1079 | PINMUX_DATA(LCD_TCON6_MARK, PG23MD_011), | ||
1080 | PINMUX_DATA(TXD5_MARK, PG23MD_100), | ||
1081 | |||
1082 | PINMUX_DATA(PG22_DATA, PG22MD_000), | ||
1083 | PINMUX_DATA(LCD_DATA22_PG22_MARK, PG22MD_010), | ||
1084 | PINMUX_DATA(LCD_TCON5_MARK, PG22MD_011), | ||
1085 | PINMUX_DATA(RXD5_MARK, PG22MD_100), | ||
1086 | |||
1087 | PINMUX_DATA(PG21_DATA, PG21MD_000), | ||
1088 | PINMUX_DATA(DV_DATA7_MARK, PG21MD_001), | ||
1089 | PINMUX_DATA(LCD_DATA21_PG21_MARK, PG21MD_010), | ||
1090 | PINMUX_DATA(LCD_TCON4_MARK, PG21MD_011), | ||
1091 | PINMUX_DATA(TXD4_MARK, PG21MD_100), | ||
1092 | |||
1093 | PINMUX_DATA(PG20_DATA, PG20MD_000), | ||
1094 | PINMUX_DATA(DV_DATA6_MARK, PG20MD_001), | ||
1095 | PINMUX_DATA(LCD_DATA20_PG20_MARK, PG21MD_010), | ||
1096 | PINMUX_DATA(LCD_TCON3_MARK, PG20MD_011), | ||
1097 | PINMUX_DATA(RXD4_MARK, PG20MD_100), | ||
1098 | |||
1099 | PINMUX_DATA(PG19_DATA, PG19MD_000), | ||
1100 | PINMUX_DATA(DV_DATA5_MARK, PG19MD_001), | ||
1101 | PINMUX_DATA(LCD_DATA19_PG19_MARK, PG19MD_010), | ||
1102 | PINMUX_DATA(SPDIF_OUT_MARK, PG19MD_011), | ||
1103 | PINMUX_DATA(SCK5_MARK, PG19MD_100), | ||
1104 | |||
1105 | PINMUX_DATA(PG18_DATA, PG18MD_000), | ||
1106 | PINMUX_DATA(DV_DATA4_MARK, PG18MD_001), | ||
1107 | PINMUX_DATA(LCD_DATA18_PG18_MARK, PG18MD_010), | ||
1108 | PINMUX_DATA(SPDIF_IN_MARK, PG18MD_011), | ||
1109 | PINMUX_DATA(SCK4_MARK, PG18MD_100), | ||
1110 | |||
1111 | // TODO hardware manual has PG17 3 bits wide in reg picture and 2 bits in description | ||
1112 | // we're going with 2 bits | ||
1113 | PINMUX_DATA(PG17_DATA, PG17MD_00), | ||
1114 | PINMUX_DATA(WE3ICIOWRAHDQMUU_MARK, PG17MD_01), | ||
1115 | PINMUX_DATA(LCD_DATA17_PG17_MARK, PG17MD_10), | ||
1116 | |||
1117 | // TODO hardware manual has PG16 3 bits wide in reg picture and 2 bits in description | ||
1118 | // we're going with 2 bits | ||
1119 | PINMUX_DATA(PG16_DATA, PG16MD_00), | ||
1120 | PINMUX_DATA(WE2ICIORDDQMUL_MARK, PG16MD_01), | ||
1121 | PINMUX_DATA(LCD_DATA16_PG16_MARK, PG16MD_10), | ||
1122 | |||
1123 | PINMUX_DATA(PG15_DATA, PG15MD_00), | ||
1124 | PINMUX_DATA(D31_MARK, PG15MD_01), | ||
1125 | PINMUX_DATA(LCD_DATA15_PG15_MARK, PG15MD_10), | ||
1126 | PINMUX_DATA(PINT7_PG_MARK, PG15MD_11), | ||
1127 | |||
1128 | PINMUX_DATA(PG14_DATA, PG14MD_00), | ||
1129 | PINMUX_DATA(D30_MARK, PG14MD_01), | ||
1130 | PINMUX_DATA(LCD_DATA14_PG14_MARK, PG14MD_10), | ||
1131 | PINMUX_DATA(PINT6_PG_MARK, PG14MD_11), | ||
1132 | |||
1133 | PINMUX_DATA(PG13_DATA, PG13MD_00), | ||
1134 | PINMUX_DATA(D29_MARK, PG13MD_01), | ||
1135 | PINMUX_DATA(LCD_DATA13_PG13_MARK, PG13MD_10), | ||
1136 | PINMUX_DATA(PINT5_PG_MARK, PG13MD_11), | ||
1137 | |||
1138 | PINMUX_DATA(PG12_DATA, PG12MD_00), | ||
1139 | PINMUX_DATA(D28_MARK, PG12MD_01), | ||
1140 | PINMUX_DATA(LCD_DATA12_PG12_MARK, PG12MD_10), | ||
1141 | PINMUX_DATA(PINT4_PG_MARK, PG12MD_11), | ||
1142 | |||
1143 | PINMUX_DATA(PG11_DATA, PG11MD_000), | ||
1144 | PINMUX_DATA(D27_MARK, PG11MD_001), | ||
1145 | PINMUX_DATA(LCD_DATA11_PG11_MARK, PG11MD_010), | ||
1146 | PINMUX_DATA(PINT3_PG_MARK, PG11MD_011), | ||
1147 | PINMUX_DATA(TIOC3D_MARK, PG11MD_100), | ||
1148 | |||
1149 | PINMUX_DATA(PG10_DATA, PG10MD_000), | ||
1150 | PINMUX_DATA(D26_MARK, PG10MD_001), | ||
1151 | PINMUX_DATA(LCD_DATA10_PG10_MARK, PG10MD_010), | ||
1152 | PINMUX_DATA(PINT2_PG_MARK, PG10MD_011), | ||
1153 | PINMUX_DATA(TIOC3C_MARK, PG10MD_100), | ||
1154 | |||
1155 | PINMUX_DATA(PG9_DATA, PG9MD_000), | ||
1156 | PINMUX_DATA(D25_MARK, PG9MD_001), | ||
1157 | PINMUX_DATA(LCD_DATA9_PG9_MARK, PG9MD_010), | ||
1158 | PINMUX_DATA(PINT1_PG_MARK, PG9MD_011), | ||
1159 | PINMUX_DATA(TIOC3B_MARK, PG9MD_100), | ||
1160 | |||
1161 | PINMUX_DATA(PG8_DATA, PG8MD_000), | ||
1162 | PINMUX_DATA(D24_MARK, PG8MD_001), | ||
1163 | PINMUX_DATA(LCD_DATA8_PG8_MARK, PG8MD_010), | ||
1164 | PINMUX_DATA(PINT0_PG_MARK, PG8MD_011), | ||
1165 | PINMUX_DATA(TIOC3A_MARK, PG8MD_100), | ||
1166 | |||
1167 | PINMUX_DATA(PG7_DATA, PG7MD_000), | ||
1168 | PINMUX_DATA(D23_MARK, PG7MD_001), | ||
1169 | PINMUX_DATA(LCD_DATA7_PG7_MARK, PG7MD_010), | ||
1170 | PINMUX_DATA(IRQ7_PG_MARK, PG7MD_011), | ||
1171 | PINMUX_DATA(TIOC2B_MARK, PG7MD_100), | ||
1172 | |||
1173 | PINMUX_DATA(PG6_DATA, PG6MD_000), | ||
1174 | PINMUX_DATA(D22_MARK, PG6MD_001), | ||
1175 | PINMUX_DATA(LCD_DATA6_PG6_MARK, PG6MD_010), | ||
1176 | PINMUX_DATA(IRQ6_PG_MARK, PG6MD_011), | ||
1177 | PINMUX_DATA(TIOC2A_MARK, PG6MD_100), | ||
1178 | |||
1179 | PINMUX_DATA(PG5_DATA, PG5MD_000), | ||
1180 | PINMUX_DATA(D21_MARK, PG5MD_001), | ||
1181 | PINMUX_DATA(LCD_DATA5_PG5_MARK, PG5MD_010), | ||
1182 | PINMUX_DATA(IRQ5_PG_MARK, PG5MD_011), | ||
1183 | PINMUX_DATA(TIOC1B_MARK, PG5MD_100), | ||
1184 | |||
1185 | PINMUX_DATA(PG4_DATA, PG4MD_000), | ||
1186 | PINMUX_DATA(D20_MARK, PG4MD_001), | ||
1187 | PINMUX_DATA(LCD_DATA4_PG4_MARK, PG4MD_010), | ||
1188 | PINMUX_DATA(IRQ4_PG_MARK, PG4MD_011), | ||
1189 | PINMUX_DATA(TIOC1A_MARK, PG4MD_100), | ||
1190 | |||
1191 | PINMUX_DATA(PG3_DATA, PG3MD_000), | ||
1192 | PINMUX_DATA(D19_MARK, PG3MD_001), | ||
1193 | PINMUX_DATA(LCD_DATA3_PG3_MARK, PG3MD_010), | ||
1194 | PINMUX_DATA(IRQ3_PG_MARK, PG3MD_011), | ||
1195 | PINMUX_DATA(TIOC0D_MARK, PG3MD_100), | ||
1196 | |||
1197 | PINMUX_DATA(PG2_DATA, PG2MD_000), | ||
1198 | PINMUX_DATA(D18_MARK, PG2MD_001), | ||
1199 | PINMUX_DATA(LCD_DATA2_PG2_MARK, PG2MD_010), | ||
1200 | PINMUX_DATA(IRQ2_PG_MARK, PG2MD_011), | ||
1201 | PINMUX_DATA(TIOC0C_MARK, PG2MD_100), | ||
1202 | |||
1203 | PINMUX_DATA(PG1_DATA, PG1MD_000), | ||
1204 | PINMUX_DATA(D17_MARK, PG1MD_001), | ||
1205 | PINMUX_DATA(LCD_DATA1_PG1_MARK, PG1MD_010), | ||
1206 | PINMUX_DATA(IRQ1_PG_MARK, PG1MD_011), | ||
1207 | PINMUX_DATA(TIOC0B_MARK, PG1MD_100), | ||
1208 | |||
1209 | PINMUX_DATA(PG0_DATA, PG0MD_000), | ||
1210 | PINMUX_DATA(D16_MARK, PG0MD_001), | ||
1211 | PINMUX_DATA(LCD_DATA0_PG0_MARK, PG0MD_010), | ||
1212 | PINMUX_DATA(IRQ0_PG_MARK, PG0MD_011), | ||
1213 | PINMUX_DATA(TIOC0A_MARK, PG0MD_100), | ||
1214 | |||
1215 | /* Port H */ | ||
1216 | PINMUX_DATA(PH7_DATA, PH7MD_00), | ||
1217 | PINMUX_DATA(PHAN7_MARK, PH7MD_01), | ||
1218 | PINMUX_DATA(PINT7_PH_MARK, PH7MD_10), | ||
1219 | |||
1220 | PINMUX_DATA(PH6_DATA, PH6MD_00), | ||
1221 | PINMUX_DATA(PHAN6_MARK, PH6MD_01), | ||
1222 | PINMUX_DATA(PINT6_PH_MARK, PH6MD_10), | ||
1223 | |||
1224 | PINMUX_DATA(PH5_DATA, PH5MD_00), | ||
1225 | PINMUX_DATA(PHAN5_MARK, PH5MD_01), | ||
1226 | PINMUX_DATA(PINT5_PH_MARK, PH5MD_10), | ||
1227 | PINMUX_DATA(LCD_EXTCLK_MARK, PH5MD_11), | ||
1228 | |||
1229 | PINMUX_DATA(PH4_DATA, PH4MD_00), | ||
1230 | PINMUX_DATA(PHAN4_MARK, PH4MD_01), | ||
1231 | PINMUX_DATA(PINT4_PH_MARK, PH4MD_10), | ||
1232 | |||
1233 | PINMUX_DATA(PH3_DATA, PH3MD_00), | ||
1234 | PINMUX_DATA(PHAN3_MARK, PH3MD_01), | ||
1235 | PINMUX_DATA(PINT3_PH_MARK, PH3MD_10), | ||
1236 | |||
1237 | PINMUX_DATA(PH2_DATA, PH2MD_00), | ||
1238 | PINMUX_DATA(PHAN2_MARK, PH2MD_01), | ||
1239 | PINMUX_DATA(PINT2_PH_MARK, PH2MD_10), | ||
1240 | |||
1241 | PINMUX_DATA(PH1_DATA, PH1MD_00), | ||
1242 | PINMUX_DATA(PHAN1_MARK, PH1MD_01), | ||
1243 | PINMUX_DATA(PINT1_PH_MARK, PH1MD_10), | ||
1244 | |||
1245 | PINMUX_DATA(PH0_DATA, PH0MD_00), | ||
1246 | PINMUX_DATA(PHAN0_MARK, PH0MD_01), | ||
1247 | PINMUX_DATA(PINT0_PH_MARK, PH0MD_10), | ||
1248 | |||
1249 | /* Port I - not on device */ | ||
1250 | |||
1251 | /* Port J */ | ||
1252 | PINMUX_DATA(PJ31_DATA, PJ31MD_0), | ||
1253 | PINMUX_DATA(DV_CLK_MARK, PJ31MD_1), | ||
1254 | |||
1255 | PINMUX_DATA(PJ30_DATA, PJ30MD_000), | ||
1256 | PINMUX_DATA(SSIDATA5_MARK, PJ30MD_010), | ||
1257 | PINMUX_DATA(TIOC2B_MARK, PJ30MD_100), | ||
1258 | PINMUX_DATA(IETXD_MARK, PJ30MD_101), | ||
1259 | |||
1260 | PINMUX_DATA(PJ29_DATA, PJ29MD_000), | ||
1261 | PINMUX_DATA(SSIWS5_MARK, PJ29MD_010), | ||
1262 | PINMUX_DATA(TIOC2A_MARK, PJ29MD_100), | ||
1263 | PINMUX_DATA(IERXD_MARK, PJ29MD_101), | ||
1264 | |||
1265 | PINMUX_DATA(PJ28_DATA, PJ28MD_000), | ||
1266 | PINMUX_DATA(SSISCK5_MARK, PJ28MD_010), | ||
1267 | PINMUX_DATA(TIOC1B_MARK, PJ28MD_100), | ||
1268 | PINMUX_DATA(RTS7_MARK, PJ28MD_101), | ||
1269 | |||
1270 | PINMUX_DATA(PJ27_DATA, PJ27MD_000), | ||
1271 | PINMUX_DATA(TIOC1A_MARK, PJ27MD_100), | ||
1272 | PINMUX_DATA(CTS7_MARK, PJ27MD_101), | ||
1273 | |||
1274 | PINMUX_DATA(PJ26_DATA, PJ26MD_000), | ||
1275 | PINMUX_DATA(SSIDATA4_MARK, PJ26MD_010), | ||
1276 | PINMUX_DATA(LCD_TCON5_MARK, PJ26MD_011), | ||
1277 | PINMUX_DATA(TXD7_MARK, PJ26MD_101), | ||
1278 | |||
1279 | PINMUX_DATA(PJ25_DATA, PJ25MD_000), | ||
1280 | PINMUX_DATA(SSIWS4_MARK, PJ25MD_010), | ||
1281 | PINMUX_DATA(LCD_TCON4_MARK, PJ25MD_011), | ||
1282 | PINMUX_DATA(SPDIF_OUT_MARK, PJ25MD_100), | ||
1283 | PINMUX_DATA(RXD7_MARK, PJ25MD_101), | ||
1284 | |||
1285 | PINMUX_DATA(PJ24_DATA, PJ24MD_000), | ||
1286 | PINMUX_DATA(SSISCK4_MARK, PJ24MD_010), | ||
1287 | PINMUX_DATA(LCD_TCON3_MARK, PJ24MD_011), | ||
1288 | PINMUX_DATA(SPDIF_IN_MARK, PJ24MD_100), | ||
1289 | PINMUX_DATA(SCK7_MARK, PJ24MD_101), | ||
1290 | |||
1291 | PINMUX_DATA(PJ23_DATA, PJ23MD_000), | ||
1292 | PINMUX_DATA(DV_DATA23_MARK, PJ23MD_001), | ||
1293 | PINMUX_DATA(LCD_DATA23_PJ23_MARK, PJ23MD_010), | ||
1294 | PINMUX_DATA(LCD_TCON6_MARK, PJ23MD_011), | ||
1295 | PINMUX_DATA(IRQ3_PJ_MARK, PJ23MD_100), | ||
1296 | PINMUX_DATA(CTX1_MARK, PJ23MD_101), | ||
1297 | |||
1298 | PINMUX_DATA(PJ22_DATA, PJ22MD_000), | ||
1299 | PINMUX_DATA(DV_DATA22_MARK, PJ22MD_001), | ||
1300 | PINMUX_DATA(LCD_DATA22_PJ22_MARK, PJ22MD_010), | ||
1301 | PINMUX_DATA(LCD_TCON5_MARK, PJ22MD_011), | ||
1302 | PINMUX_DATA(IRQ2_PJ_MARK, PJ22MD_100), | ||
1303 | PINMUX_DATA(CRX1_MARK, PJ22MD_101), | ||
1304 | PINMUX_DATA(CRX0_CRX1_MARK, PJ22MD_110), | ||
1305 | |||
1306 | PINMUX_DATA(PJ21_DATA, PJ21MD_000), | ||
1307 | PINMUX_DATA(DV_DATA21_MARK, PJ21MD_001), | ||
1308 | PINMUX_DATA(LCD_DATA21_PJ21_MARK, PJ21MD_010), | ||
1309 | PINMUX_DATA(LCD_TCON4_MARK, PJ21MD_011), | ||
1310 | PINMUX_DATA(IRQ1_PJ_MARK, PJ21MD_100), | ||
1311 | PINMUX_DATA(CTX2_MARK, PJ21MD_101), | ||
1312 | |||
1313 | PINMUX_DATA(PJ20_DATA, PJ20MD_000), | ||
1314 | PINMUX_DATA(DV_DATA20_MARK, PJ20MD_001), | ||
1315 | PINMUX_DATA(LCD_DATA20_PJ20_MARK, PJ20MD_010), | ||
1316 | PINMUX_DATA(LCD_TCON3_MARK, PJ20MD_011), | ||
1317 | PINMUX_DATA(IRQ0_PJ_MARK, PJ20MD_100), | ||
1318 | PINMUX_DATA(CRX2_MARK, PJ20MD_101), | ||
1319 | PINMUX_DATA(CRX0CRX1CRX2_PJ20_MARK, PJ20MD_110), | ||
1320 | |||
1321 | PINMUX_DATA(PJ19_DATA, PJ19MD_000), | ||
1322 | PINMUX_DATA(DV_DATA19_MARK, PJ19MD_001), | ||
1323 | PINMUX_DATA(LCD_DATA19_PJ19_MARK, PJ19MD_010), | ||
1324 | PINMUX_DATA(MISO0_PJ19_MARK, PJ19MD_011), | ||
1325 | PINMUX_DATA(TIOC0D_MARK, PJ19MD_100), | ||
1326 | PINMUX_DATA(SIOFRXD_MARK, PJ19MD_101), | ||
1327 | PINMUX_DATA(AUDIO_XOUT_MARK, PJ19MD_110), | ||
1328 | |||
1329 | PINMUX_DATA(PJ18_DATA, PJ18MD_000), | ||
1330 | PINMUX_DATA(DV_DATA18_MARK, PJ18MD_001), | ||
1331 | PINMUX_DATA(LCD_DATA18_PJ18_MARK, PJ18MD_010), | ||
1332 | PINMUX_DATA(MOSI0_PJ18_MARK, PJ18MD_011), | ||
1333 | PINMUX_DATA(TIOC0C_MARK, PJ18MD_100), | ||
1334 | PINMUX_DATA(SIOFTXD_MARK, PJ18MD_101), | ||
1335 | |||
1336 | PINMUX_DATA(PJ17_DATA, PJ17MD_000), | ||
1337 | PINMUX_DATA(DV_DATA17_MARK, PJ17MD_001), | ||
1338 | PINMUX_DATA(LCD_DATA17_PJ17_MARK, PJ17MD_010), | ||
1339 | PINMUX_DATA(SSL00_PJ17_MARK, PJ17MD_011), | ||
1340 | PINMUX_DATA(TIOC0B_MARK, PJ17MD_100), | ||
1341 | PINMUX_DATA(SIOFSYNC_MARK, PJ17MD_101), | ||
1342 | |||
1343 | PINMUX_DATA(PJ16_DATA, PJ16MD_000), | ||
1344 | PINMUX_DATA(DV_DATA16_MARK, PJ16MD_001), | ||
1345 | PINMUX_DATA(LCD_DATA16_PJ16_MARK, PJ16MD_010), | ||
1346 | PINMUX_DATA(RSPCK0_PJ16_MARK, PJ16MD_011), | ||
1347 | PINMUX_DATA(TIOC0A_MARK, PJ16MD_100), | ||
1348 | PINMUX_DATA(SIOFSCK_MARK, PJ16MD_101), | ||
1349 | |||
1350 | PINMUX_DATA(PJ15_DATA, PJ15MD_000), | ||
1351 | PINMUX_DATA(DV_DATA15_MARK, PJ15MD_001), | ||
1352 | PINMUX_DATA(LCD_DATA15_PJ15_MARK, PJ15MD_010), | ||
1353 | PINMUX_DATA(PINT7_PJ_MARK, PJ15MD_011), | ||
1354 | PINMUX_DATA(PWM2H_MARK, PJ15MD_100), | ||
1355 | PINMUX_DATA(TXD7_MARK, PJ15MD_101), | ||
1356 | |||
1357 | PINMUX_DATA(PJ14_DATA, PJ14MD_000), | ||
1358 | PINMUX_DATA(DV_DATA14_MARK, PJ14MD_001), | ||
1359 | PINMUX_DATA(LCD_DATA14_PJ14_MARK, PJ14MD_010), | ||
1360 | PINMUX_DATA(PINT6_PJ_MARK, PJ14MD_011), | ||
1361 | PINMUX_DATA(PWM2G_MARK, PJ14MD_100), | ||
1362 | PINMUX_DATA(TXD6_MARK, PJ14MD_101), | ||
1363 | |||
1364 | PINMUX_DATA(PJ13_DATA, PJ13MD_000), | ||
1365 | PINMUX_DATA(DV_DATA13_MARK, PJ13MD_001), | ||
1366 | PINMUX_DATA(LCD_DATA13_PJ13_MARK, PJ13MD_010), | ||
1367 | PINMUX_DATA(PINT5_PJ_MARK, PJ13MD_011), | ||
1368 | PINMUX_DATA(PWM2F_MARK, PJ13MD_100), | ||
1369 | PINMUX_DATA(TXD5_MARK, PJ13MD_101), | ||
1370 | |||
1371 | PINMUX_DATA(PJ12_DATA, PJ12MD_000), | ||
1372 | PINMUX_DATA(DV_DATA12_MARK, PJ12MD_001), | ||
1373 | PINMUX_DATA(LCD_DATA12_PJ12_MARK, PJ12MD_010), | ||
1374 | PINMUX_DATA(PINT4_PJ_MARK, PJ12MD_011), | ||
1375 | PINMUX_DATA(PWM2E_MARK, PJ12MD_100), | ||
1376 | PINMUX_DATA(SCK7_MARK, PJ12MD_101), | ||
1377 | |||
1378 | PINMUX_DATA(PJ11_DATA, PJ11MD_000), | ||
1379 | PINMUX_DATA(DV_DATA11_MARK, PJ11MD_001), | ||
1380 | PINMUX_DATA(LCD_DATA11_PJ11_MARK, PJ11MD_010), | ||
1381 | PINMUX_DATA(PINT3_PJ_MARK, PJ11MD_011), | ||
1382 | PINMUX_DATA(PWM2D_MARK, PJ11MD_100), | ||
1383 | PINMUX_DATA(SCK6_MARK, PJ11MD_101), | ||
1384 | |||
1385 | PINMUX_DATA(PJ10_DATA, PJ10MD_000), | ||
1386 | PINMUX_DATA(DV_DATA10_MARK, PJ10MD_001), | ||
1387 | PINMUX_DATA(LCD_DATA10_PJ10_MARK, PJ10MD_010), | ||
1388 | PINMUX_DATA(PINT2_PJ_MARK, PJ10MD_011), | ||
1389 | PINMUX_DATA(PWM2C_MARK, PJ10MD_100), | ||
1390 | PINMUX_DATA(SCK5_MARK, PJ10MD_101), | ||
1391 | |||
1392 | PINMUX_DATA(PJ9_DATA, PJ9MD_000), | ||
1393 | PINMUX_DATA(DV_DATA9_MARK, PJ9MD_001), | ||
1394 | PINMUX_DATA(LCD_DATA9_PJ9_MARK, PJ9MD_010), | ||
1395 | PINMUX_DATA(PINT1_PJ_MARK, PJ9MD_011), | ||
1396 | PINMUX_DATA(PWM2B_MARK, PJ9MD_100), | ||
1397 | PINMUX_DATA(RTS5_MARK, PJ9MD_101), | ||
1398 | |||
1399 | PINMUX_DATA(PJ8_DATA, PJ8MD_000), | ||
1400 | PINMUX_DATA(DV_DATA8_MARK, PJ8MD_001), | ||
1401 | PINMUX_DATA(LCD_DATA8_PJ8_MARK, PJ8MD_010), | ||
1402 | PINMUX_DATA(PINT0_PJ_MARK, PJ8MD_011), | ||
1403 | PINMUX_DATA(PWM2A_MARK, PJ8MD_100), | ||
1404 | PINMUX_DATA(CTS5_MARK, PJ8MD_101), | ||
1405 | |||
1406 | PINMUX_DATA(PJ7_DATA, PJ7MD_000), | ||
1407 | PINMUX_DATA(DV_DATA7_MARK, PJ7MD_001), | ||
1408 | PINMUX_DATA(LCD_DATA7_PJ7_MARK, PJ7MD_010), | ||
1409 | PINMUX_DATA(SD_D2_MARK, PJ7MD_011), | ||
1410 | PINMUX_DATA(PWM1H_MARK, PJ7MD_100), | ||
1411 | |||
1412 | PINMUX_DATA(PJ6_DATA, PJ6MD_000), | ||
1413 | PINMUX_DATA(DV_DATA6_MARK, PJ6MD_001), | ||
1414 | PINMUX_DATA(LCD_DATA6_PJ6_MARK, PJ6MD_010), | ||
1415 | PINMUX_DATA(SD_D3_MARK, PJ6MD_011), | ||
1416 | PINMUX_DATA(PWM1G_MARK, PJ6MD_100), | ||
1417 | |||
1418 | PINMUX_DATA(PJ5_DATA, PJ5MD_000), | ||
1419 | PINMUX_DATA(DV_DATA5_MARK, PJ5MD_001), | ||
1420 | PINMUX_DATA(LCD_DATA5_PJ5_MARK, PJ5MD_010), | ||
1421 | PINMUX_DATA(SD_CMD_MARK, PJ5MD_011), | ||
1422 | PINMUX_DATA(PWM1F_MARK, PJ5MD_100), | ||
1423 | |||
1424 | PINMUX_DATA(PJ4_DATA, PJ4MD_000), | ||
1425 | PINMUX_DATA(DV_DATA4_MARK, PJ4MD_001), | ||
1426 | PINMUX_DATA(LCD_DATA4_PJ4_MARK, PJ4MD_010), | ||
1427 | PINMUX_DATA(SD_CLK_MARK, PJ4MD_011), | ||
1428 | PINMUX_DATA(PWM1E_MARK, PJ4MD_100), | ||
1429 | |||
1430 | PINMUX_DATA(PJ3_DATA, PJ3MD_000), | ||
1431 | PINMUX_DATA(DV_DATA3_MARK, PJ3MD_001), | ||
1432 | PINMUX_DATA(LCD_DATA3_PJ3_MARK, PJ3MD_010), | ||
1433 | PINMUX_DATA(SD_D0_MARK, PJ3MD_011), | ||
1434 | PINMUX_DATA(PWM1D_MARK, PJ3MD_100), | ||
1435 | |||
1436 | PINMUX_DATA(PJ2_DATA, PJ2MD_000), | ||
1437 | PINMUX_DATA(DV_DATA2_MARK, PJ2MD_001), | ||
1438 | PINMUX_DATA(LCD_DATA2_PJ2_MARK, PJ2MD_010), | ||
1439 | PINMUX_DATA(SD_D1_MARK, PJ2MD_011), | ||
1440 | PINMUX_DATA(PWM1C_MARK, PJ2MD_100), | ||
1441 | |||
1442 | PINMUX_DATA(PJ1_DATA, PJ1MD_000), | ||
1443 | PINMUX_DATA(DV_DATA1_MARK, PJ1MD_001), | ||
1444 | PINMUX_DATA(LCD_DATA1_PJ1_MARK, PJ1MD_010), | ||
1445 | PINMUX_DATA(SD_WP_MARK, PJ1MD_011), | ||
1446 | PINMUX_DATA(PWM1B_MARK, PJ1MD_100), | ||
1447 | |||
1448 | PINMUX_DATA(PJ0_DATA, PJ0MD_000), | ||
1449 | PINMUX_DATA(DV_DATA0_MARK, PJ0MD_001), | ||
1450 | PINMUX_DATA(LCD_DATA0_PJ0_MARK, PJ0MD_010), | ||
1451 | PINMUX_DATA(SD_CD_MARK, PJ0MD_011), | ||
1452 | PINMUX_DATA(PWM1A_MARK, PJ0MD_100), | ||
1453 | }; | ||
1454 | |||
1455 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1456 | /* Port A */ | ||
1457 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
1458 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
1459 | |||
1460 | /* Port B */ | ||
1461 | PINMUX_GPIO(GPIO_PB22, PB22_DATA), | ||
1462 | PINMUX_GPIO(GPIO_PB21, PB21_DATA), | ||
1463 | PINMUX_GPIO(GPIO_PB20, PB20_DATA), | ||
1464 | PINMUX_GPIO(GPIO_PB19, PB19_DATA), | ||
1465 | PINMUX_GPIO(GPIO_PB18, PB18_DATA), | ||
1466 | PINMUX_GPIO(GPIO_PB17, PB17_DATA), | ||
1467 | PINMUX_GPIO(GPIO_PB16, PB16_DATA), | ||
1468 | PINMUX_GPIO(GPIO_PB15, PB15_DATA), | ||
1469 | PINMUX_GPIO(GPIO_PB14, PB14_DATA), | ||
1470 | PINMUX_GPIO(GPIO_PB13, PB13_DATA), | ||
1471 | PINMUX_GPIO(GPIO_PB12, PB12_DATA), | ||
1472 | PINMUX_GPIO(GPIO_PB11, PB11_DATA), | ||
1473 | PINMUX_GPIO(GPIO_PB10, PB10_DATA), | ||
1474 | PINMUX_GPIO(GPIO_PB9, PB9_DATA), | ||
1475 | PINMUX_GPIO(GPIO_PB8, PB8_DATA), | ||
1476 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
1477 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
1478 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
1479 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
1480 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
1481 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
1482 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
1483 | |||
1484 | /* Port C */ | ||
1485 | PINMUX_GPIO(GPIO_PC8, PC8_DATA), | ||
1486 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
1487 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
1488 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
1489 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
1490 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
1491 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
1492 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
1493 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
1494 | |||
1495 | /* Port D */ | ||
1496 | PINMUX_GPIO(GPIO_PD15, PD15_DATA), | ||
1497 | PINMUX_GPIO(GPIO_PD14, PD14_DATA), | ||
1498 | PINMUX_GPIO(GPIO_PD13, PD13_DATA), | ||
1499 | PINMUX_GPIO(GPIO_PD12, PD12_DATA), | ||
1500 | PINMUX_GPIO(GPIO_PD11, PD11_DATA), | ||
1501 | PINMUX_GPIO(GPIO_PD10, PD10_DATA), | ||
1502 | PINMUX_GPIO(GPIO_PD9, PD9_DATA), | ||
1503 | PINMUX_GPIO(GPIO_PD8, PD8_DATA), | ||
1504 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
1505 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
1506 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
1507 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
1508 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
1509 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
1510 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
1511 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
1512 | |||
1513 | /* Port E */ | ||
1514 | PINMUX_GPIO(GPIO_PE7, PE7_DATA), | ||
1515 | PINMUX_GPIO(GPIO_PE6, PE6_DATA), | ||
1516 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
1517 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
1518 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
1519 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
1520 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
1521 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
1522 | |||
1523 | /* Port F */ | ||
1524 | PINMUX_GPIO(GPIO_PF23, PF23_DATA), | ||
1525 | PINMUX_GPIO(GPIO_PF22, PF22_DATA), | ||
1526 | PINMUX_GPIO(GPIO_PF21, PF21_DATA), | ||
1527 | PINMUX_GPIO(GPIO_PF20, PF20_DATA), | ||
1528 | PINMUX_GPIO(GPIO_PF19, PF19_DATA), | ||
1529 | PINMUX_GPIO(GPIO_PF18, PF18_DATA), | ||
1530 | PINMUX_GPIO(GPIO_PF17, PF17_DATA), | ||
1531 | PINMUX_GPIO(GPIO_PF16, PF16_DATA), | ||
1532 | PINMUX_GPIO(GPIO_PF15, PF15_DATA), | ||
1533 | PINMUX_GPIO(GPIO_PF14, PF14_DATA), | ||
1534 | PINMUX_GPIO(GPIO_PF13, PF13_DATA), | ||
1535 | PINMUX_GPIO(GPIO_PF12, PF12_DATA), | ||
1536 | PINMUX_GPIO(GPIO_PF11, PF11_DATA), | ||
1537 | PINMUX_GPIO(GPIO_PF10, PF10_DATA), | ||
1538 | PINMUX_GPIO(GPIO_PF9, PF9_DATA), | ||
1539 | PINMUX_GPIO(GPIO_PF8, PF8_DATA), | ||
1540 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
1541 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
1542 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
1543 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
1544 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
1545 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
1546 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
1547 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
1548 | |||
1549 | /* Port G */ | ||
1550 | PINMUX_GPIO(GPIO_PG27, PG27_DATA), | ||
1551 | PINMUX_GPIO(GPIO_PG26, PG26_DATA), | ||
1552 | PINMUX_GPIO(GPIO_PG25, PG25_DATA), | ||
1553 | PINMUX_GPIO(GPIO_PG24, PG24_DATA), | ||
1554 | PINMUX_GPIO(GPIO_PG23, PG23_DATA), | ||
1555 | PINMUX_GPIO(GPIO_PG22, PG22_DATA), | ||
1556 | PINMUX_GPIO(GPIO_PG21, PG21_DATA), | ||
1557 | PINMUX_GPIO(GPIO_PG20, PG20_DATA), | ||
1558 | PINMUX_GPIO(GPIO_PG19, PG19_DATA), | ||
1559 | PINMUX_GPIO(GPIO_PG18, PG18_DATA), | ||
1560 | PINMUX_GPIO(GPIO_PG17, PG17_DATA), | ||
1561 | PINMUX_GPIO(GPIO_PG16, PG16_DATA), | ||
1562 | PINMUX_GPIO(GPIO_PG15, PG15_DATA), | ||
1563 | PINMUX_GPIO(GPIO_PG14, PG14_DATA), | ||
1564 | PINMUX_GPIO(GPIO_PG13, PG13_DATA), | ||
1565 | PINMUX_GPIO(GPIO_PG12, PG12_DATA), | ||
1566 | PINMUX_GPIO(GPIO_PG11, PG11_DATA), | ||
1567 | PINMUX_GPIO(GPIO_PG10, PG10_DATA), | ||
1568 | PINMUX_GPIO(GPIO_PG9, PG9_DATA), | ||
1569 | PINMUX_GPIO(GPIO_PG8, PG8_DATA), | ||
1570 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
1571 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
1572 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
1573 | PINMUX_GPIO(GPIO_PG4, PG4_DATA), | ||
1574 | PINMUX_GPIO(GPIO_PG3, PG3_DATA), | ||
1575 | PINMUX_GPIO(GPIO_PG2, PG2_DATA), | ||
1576 | PINMUX_GPIO(GPIO_PG1, PG1_DATA), | ||
1577 | PINMUX_GPIO(GPIO_PG0, PG0_DATA), | ||
1578 | |||
1579 | /* Port H - Port H does not have a Data Register */ | ||
1580 | |||
1581 | /* Port I - not on device */ | ||
1582 | |||
1583 | /* Port J */ | ||
1584 | PINMUX_GPIO(GPIO_PJ31, PJ31_DATA), | ||
1585 | PINMUX_GPIO(GPIO_PJ30, PJ30_DATA), | ||
1586 | PINMUX_GPIO(GPIO_PJ29, PJ29_DATA), | ||
1587 | PINMUX_GPIO(GPIO_PJ28, PJ28_DATA), | ||
1588 | PINMUX_GPIO(GPIO_PJ27, PJ27_DATA), | ||
1589 | PINMUX_GPIO(GPIO_PJ26, PJ26_DATA), | ||
1590 | PINMUX_GPIO(GPIO_PJ25, PJ25_DATA), | ||
1591 | PINMUX_GPIO(GPIO_PJ24, PJ24_DATA), | ||
1592 | PINMUX_GPIO(GPIO_PJ23, PJ23_DATA), | ||
1593 | PINMUX_GPIO(GPIO_PJ22, PJ22_DATA), | ||
1594 | PINMUX_GPIO(GPIO_PJ21, PJ21_DATA), | ||
1595 | PINMUX_GPIO(GPIO_PJ20, PJ20_DATA), | ||
1596 | PINMUX_GPIO(GPIO_PJ19, PJ19_DATA), | ||
1597 | PINMUX_GPIO(GPIO_PJ18, PJ18_DATA), | ||
1598 | PINMUX_GPIO(GPIO_PJ17, PJ17_DATA), | ||
1599 | PINMUX_GPIO(GPIO_PJ16, PJ16_DATA), | ||
1600 | PINMUX_GPIO(GPIO_PJ15, PJ15_DATA), | ||
1601 | PINMUX_GPIO(GPIO_PJ14, PJ14_DATA), | ||
1602 | PINMUX_GPIO(GPIO_PJ13, PJ13_DATA), | ||
1603 | PINMUX_GPIO(GPIO_PJ12, PJ12_DATA), | ||
1604 | PINMUX_GPIO(GPIO_PJ11, PJ11_DATA), | ||
1605 | PINMUX_GPIO(GPIO_PJ10, PJ10_DATA), | ||
1606 | PINMUX_GPIO(GPIO_PJ9, PJ9_DATA), | ||
1607 | PINMUX_GPIO(GPIO_PJ8, PJ8_DATA), | ||
1608 | PINMUX_GPIO(GPIO_PJ7, PJ7_DATA), | ||
1609 | PINMUX_GPIO(GPIO_PJ6, PJ6_DATA), | ||
1610 | PINMUX_GPIO(GPIO_PJ5, PJ5_DATA), | ||
1611 | PINMUX_GPIO(GPIO_PJ4, PJ4_DATA), | ||
1612 | PINMUX_GPIO(GPIO_PJ3, PJ3_DATA), | ||
1613 | PINMUX_GPIO(GPIO_PJ2, PJ2_DATA), | ||
1614 | PINMUX_GPIO(GPIO_PJ1, PJ1_DATA), | ||
1615 | PINMUX_GPIO(GPIO_PJ0, PJ0_DATA), | ||
1616 | |||
1617 | /* INTC */ | ||
1618 | PINMUX_GPIO(GPIO_FN_IRQ7_PG, IRQ7_PG_MARK), | ||
1619 | PINMUX_GPIO(GPIO_FN_IRQ6_PG, IRQ6_PG_MARK), | ||
1620 | PINMUX_GPIO(GPIO_FN_IRQ5_PG, IRQ5_PG_MARK), | ||
1621 | PINMUX_GPIO(GPIO_FN_IRQ4_PG, IRQ4_PG_MARK), | ||
1622 | PINMUX_GPIO(GPIO_FN_IRQ3_PG, IRQ3_PG_MARK), | ||
1623 | PINMUX_GPIO(GPIO_FN_IRQ2_PG, IRQ2_PG_MARK), | ||
1624 | PINMUX_GPIO(GPIO_FN_IRQ1_PG, IRQ1_PG_MARK), | ||
1625 | PINMUX_GPIO(GPIO_FN_IRQ0_PG, IRQ0_PG_MARK), | ||
1626 | PINMUX_GPIO(GPIO_FN_IRQ7_PF, IRQ7_PF_MARK), | ||
1627 | PINMUX_GPIO(GPIO_FN_IRQ6_PF, IRQ6_PF_MARK), | ||
1628 | PINMUX_GPIO(GPIO_FN_IRQ5_PF, IRQ5_PF_MARK), | ||
1629 | PINMUX_GPIO(GPIO_FN_IRQ4_PF, IRQ4_PF_MARK), | ||
1630 | PINMUX_GPIO(GPIO_FN_IRQ3_PJ, IRQ3_PJ_MARK), | ||
1631 | PINMUX_GPIO(GPIO_FN_IRQ2_PJ, IRQ2_PJ_MARK), | ||
1632 | PINMUX_GPIO(GPIO_FN_IRQ1_PJ, IRQ1_PJ_MARK), | ||
1633 | PINMUX_GPIO(GPIO_FN_IRQ0_PJ, IRQ0_PJ_MARK), | ||
1634 | PINMUX_GPIO(GPIO_FN_IRQ1_PC, IRQ1_PC_MARK), | ||
1635 | PINMUX_GPIO(GPIO_FN_IRQ0_PC, IRQ0_PC_MARK), | ||
1636 | |||
1637 | PINMUX_GPIO(GPIO_FN_PINT7_PG, PINT7_PG_MARK), | ||
1638 | PINMUX_GPIO(GPIO_FN_PINT6_PG, PINT6_PG_MARK), | ||
1639 | PINMUX_GPIO(GPIO_FN_PINT5_PG, PINT5_PG_MARK), | ||
1640 | PINMUX_GPIO(GPIO_FN_PINT4_PG, PINT4_PG_MARK), | ||
1641 | PINMUX_GPIO(GPIO_FN_PINT3_PG, PINT3_PG_MARK), | ||
1642 | PINMUX_GPIO(GPIO_FN_PINT2_PG, PINT2_PG_MARK), | ||
1643 | PINMUX_GPIO(GPIO_FN_PINT1_PG, PINT1_PG_MARK), | ||
1644 | PINMUX_GPIO(GPIO_FN_PINT0_PG, PINT0_PG_MARK), | ||
1645 | PINMUX_GPIO(GPIO_FN_PINT7_PH, PINT7_PH_MARK), | ||
1646 | PINMUX_GPIO(GPIO_FN_PINT6_PH, PINT6_PH_MARK), | ||
1647 | PINMUX_GPIO(GPIO_FN_PINT5_PH, PINT5_PH_MARK), | ||
1648 | PINMUX_GPIO(GPIO_FN_PINT4_PH, PINT4_PH_MARK), | ||
1649 | PINMUX_GPIO(GPIO_FN_PINT3_PH, PINT3_PH_MARK), | ||
1650 | PINMUX_GPIO(GPIO_FN_PINT2_PH, PINT2_PH_MARK), | ||
1651 | PINMUX_GPIO(GPIO_FN_PINT1_PH, PINT1_PH_MARK), | ||
1652 | PINMUX_GPIO(GPIO_FN_PINT0_PH, PINT0_PH_MARK), | ||
1653 | PINMUX_GPIO(GPIO_FN_PINT7_PJ, PINT7_PJ_MARK), | ||
1654 | PINMUX_GPIO(GPIO_FN_PINT6_PJ, PINT6_PJ_MARK), | ||
1655 | PINMUX_GPIO(GPIO_FN_PINT5_PJ, PINT5_PJ_MARK), | ||
1656 | PINMUX_GPIO(GPIO_FN_PINT4_PJ, PINT4_PJ_MARK), | ||
1657 | PINMUX_GPIO(GPIO_FN_PINT3_PJ, PINT3_PJ_MARK), | ||
1658 | PINMUX_GPIO(GPIO_FN_PINT2_PJ, PINT2_PJ_MARK), | ||
1659 | PINMUX_GPIO(GPIO_FN_PINT1_PJ, PINT1_PJ_MARK), | ||
1660 | PINMUX_GPIO(GPIO_FN_PINT0_PJ, PINT0_PJ_MARK), | ||
1661 | |||
1662 | /* WDT */ | ||
1663 | PINMUX_GPIO(GPIO_FN_WDTOVF, WDTOVF_MARK), | ||
1664 | |||
1665 | /* CAN */ | ||
1666 | PINMUX_GPIO(GPIO_FN_CTX1, CTX1_MARK), | ||
1667 | PINMUX_GPIO(GPIO_FN_CRX1, CRX1_MARK), | ||
1668 | PINMUX_GPIO(GPIO_FN_CTX0, CTX0_MARK), | ||
1669 | PINMUX_GPIO(GPIO_FN_CRX0, CRX0_MARK), | ||
1670 | PINMUX_GPIO(GPIO_FN_CRX0_CRX1, CRX0_CRX1_MARK), | ||
1671 | PINMUX_GPIO(GPIO_FN_CRX0_CRX1_CRX2, CRX0_CRX1_CRX2_MARK), | ||
1672 | |||
1673 | /* DMAC */ | ||
1674 | PINMUX_GPIO(GPIO_FN_TEND0, TEND0_MARK), | ||
1675 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
1676 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1677 | PINMUX_GPIO(GPIO_FN_TEND1, TEND1_MARK), | ||
1678 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
1679 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
1680 | |||
1681 | /* ADC */ | ||
1682 | PINMUX_GPIO(GPIO_FN_ADTRG, ADTRG_MARK), | ||
1683 | |||
1684 | /* BSCh */ | ||
1685 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1686 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1687 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1688 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1689 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
1690 | PINMUX_GPIO(GPIO_FN_A20, A20_MARK), | ||
1691 | PINMUX_GPIO(GPIO_FN_A19, A19_MARK), | ||
1692 | PINMUX_GPIO(GPIO_FN_A18, A18_MARK), | ||
1693 | PINMUX_GPIO(GPIO_FN_A17, A17_MARK), | ||
1694 | PINMUX_GPIO(GPIO_FN_A16, A16_MARK), | ||
1695 | PINMUX_GPIO(GPIO_FN_A15, A15_MARK), | ||
1696 | PINMUX_GPIO(GPIO_FN_A14, A14_MARK), | ||
1697 | PINMUX_GPIO(GPIO_FN_A13, A13_MARK), | ||
1698 | PINMUX_GPIO(GPIO_FN_A12, A12_MARK), | ||
1699 | PINMUX_GPIO(GPIO_FN_A11, A11_MARK), | ||
1700 | PINMUX_GPIO(GPIO_FN_A10, A10_MARK), | ||
1701 | PINMUX_GPIO(GPIO_FN_A9, A9_MARK), | ||
1702 | PINMUX_GPIO(GPIO_FN_A8, A8_MARK), | ||
1703 | PINMUX_GPIO(GPIO_FN_A7, A7_MARK), | ||
1704 | PINMUX_GPIO(GPIO_FN_A6, A6_MARK), | ||
1705 | PINMUX_GPIO(GPIO_FN_A5, A5_MARK), | ||
1706 | PINMUX_GPIO(GPIO_FN_A4, A4_MARK), | ||
1707 | PINMUX_GPIO(GPIO_FN_A3, A3_MARK), | ||
1708 | PINMUX_GPIO(GPIO_FN_A2, A2_MARK), | ||
1709 | PINMUX_GPIO(GPIO_FN_A1, A1_MARK), | ||
1710 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
1711 | |||
1712 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1713 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1714 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1715 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1716 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1717 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1718 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1719 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1720 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1721 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1722 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1723 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1724 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1725 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1726 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1727 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1728 | |||
1729 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1730 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
1731 | PINMUX_GPIO(GPIO_FN_CS3, CS3_MARK), | ||
1732 | PINMUX_GPIO(GPIO_FN_CS2, CS2_MARK), | ||
1733 | PINMUX_GPIO(GPIO_FN_CS1, CS1_MARK), | ||
1734 | PINMUX_GPIO(GPIO_FN_CS0, CS0_MARK), | ||
1735 | PINMUX_GPIO(GPIO_FN_CS5CE1A, CS5CE1A_MARK), | ||
1736 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
1737 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
1738 | PINMUX_GPIO(GPIO_FN_RD, RD_MARK), | ||
1739 | PINMUX_GPIO(GPIO_FN_RDWR, RDWR_MARK), | ||
1740 | PINMUX_GPIO(GPIO_FN_WE3ICIOWRAHDQMUU, WE3ICIOWRAHDQMUU_MARK), | ||
1741 | PINMUX_GPIO(GPIO_FN_WE2ICIORDDQMUL, WE2ICIORDDQMUL_MARK), | ||
1742 | PINMUX_GPIO(GPIO_FN_WE1DQMUWE, WE1DQMUWE_MARK), | ||
1743 | PINMUX_GPIO(GPIO_FN_WE0DQML, WE0DQML_MARK), | ||
1744 | PINMUX_GPIO(GPIO_FN_RAS, RAS_MARK), | ||
1745 | PINMUX_GPIO(GPIO_FN_CAS, CAS_MARK), | ||
1746 | PINMUX_GPIO(GPIO_FN_CKE, CKE_MARK), | ||
1747 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1748 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
1749 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
1750 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1751 | |||
1752 | /* TMU */ | ||
1753 | PINMUX_GPIO(GPIO_FN_TIOC4D, TIOC4D_MARK), | ||
1754 | PINMUX_GPIO(GPIO_FN_TIOC4C, TIOC4C_MARK), | ||
1755 | PINMUX_GPIO(GPIO_FN_TIOC4B, TIOC4B_MARK), | ||
1756 | PINMUX_GPIO(GPIO_FN_TIOC4A, TIOC4A_MARK), | ||
1757 | PINMUX_GPIO(GPIO_FN_TIOC3D, TIOC3D_MARK), | ||
1758 | PINMUX_GPIO(GPIO_FN_TIOC3C, TIOC3C_MARK), | ||
1759 | PINMUX_GPIO(GPIO_FN_TIOC3B, TIOC3B_MARK), | ||
1760 | PINMUX_GPIO(GPIO_FN_TIOC3A, TIOC3A_MARK), | ||
1761 | PINMUX_GPIO(GPIO_FN_TIOC2B, TIOC2B_MARK), | ||
1762 | PINMUX_GPIO(GPIO_FN_TIOC1B, TIOC1B_MARK), | ||
1763 | PINMUX_GPIO(GPIO_FN_TIOC2A, TIOC2A_MARK), | ||
1764 | PINMUX_GPIO(GPIO_FN_TIOC1A, TIOC1A_MARK), | ||
1765 | PINMUX_GPIO(GPIO_FN_TIOC0D, TIOC0D_MARK), | ||
1766 | PINMUX_GPIO(GPIO_FN_TIOC0C, TIOC0C_MARK), | ||
1767 | PINMUX_GPIO(GPIO_FN_TIOC0B, TIOC0B_MARK), | ||
1768 | PINMUX_GPIO(GPIO_FN_TIOC0A, TIOC0A_MARK), | ||
1769 | PINMUX_GPIO(GPIO_FN_TCLKD, TCLKD_MARK), | ||
1770 | PINMUX_GPIO(GPIO_FN_TCLKC, TCLKC_MARK), | ||
1771 | PINMUX_GPIO(GPIO_FN_TCLKB, TCLKB_MARK), | ||
1772 | PINMUX_GPIO(GPIO_FN_TCLKA, TCLKA_MARK), | ||
1773 | |||
1774 | /* SCIF */ | ||
1775 | PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), | ||
1776 | PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), | ||
1777 | PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), | ||
1778 | PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), | ||
1779 | PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), | ||
1780 | PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), | ||
1781 | PINMUX_GPIO(GPIO_FN_RTS1, RTS1_MARK), | ||
1782 | PINMUX_GPIO(GPIO_FN_CTS1, CTS1_MARK), | ||
1783 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
1784 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
1785 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
1786 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
1787 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
1788 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
1789 | PINMUX_GPIO(GPIO_FN_SCK4, SCK4_MARK), | ||
1790 | PINMUX_GPIO(GPIO_FN_TXD4, TXD4_MARK), | ||
1791 | PINMUX_GPIO(GPIO_FN_RXD4, RXD4_MARK), | ||
1792 | PINMUX_GPIO(GPIO_FN_SCK5, SCK5_MARK), | ||
1793 | PINMUX_GPIO(GPIO_FN_TXD5, TXD5_MARK), | ||
1794 | PINMUX_GPIO(GPIO_FN_RXD5, RXD5_MARK), | ||
1795 | PINMUX_GPIO(GPIO_FN_RTS5, RTS5_MARK), | ||
1796 | PINMUX_GPIO(GPIO_FN_CTS5, CTS5_MARK), | ||
1797 | PINMUX_GPIO(GPIO_FN_SCK6, SCK6_MARK), | ||
1798 | PINMUX_GPIO(GPIO_FN_TXD6, TXD6_MARK), | ||
1799 | PINMUX_GPIO(GPIO_FN_RXD6, RXD6_MARK), | ||
1800 | PINMUX_GPIO(GPIO_FN_SCK7, SCK7_MARK), | ||
1801 | PINMUX_GPIO(GPIO_FN_TXD7, TXD7_MARK), | ||
1802 | PINMUX_GPIO(GPIO_FN_RXD7, RXD7_MARK), | ||
1803 | PINMUX_GPIO(GPIO_FN_RTS7, RTS7_MARK), | ||
1804 | PINMUX_GPIO(GPIO_FN_CTS7, CTS7_MARK), | ||
1805 | |||
1806 | /* RSPI */ | ||
1807 | PINMUX_GPIO(GPIO_FN_RSPCK0_PJ16, RSPCK0_PJ16_MARK), | ||
1808 | PINMUX_GPIO(GPIO_FN_SSL00_PJ17, SSL00_PJ17_MARK), | ||
1809 | PINMUX_GPIO(GPIO_FN_MOSI0_PJ18, MOSI0_PJ18_MARK), | ||
1810 | PINMUX_GPIO(GPIO_FN_MISO0_PJ19, MISO0_PJ19_MARK), | ||
1811 | PINMUX_GPIO(GPIO_FN_RSPCK0_PB17, RSPCK0_PB17_MARK), | ||
1812 | PINMUX_GPIO(GPIO_FN_SSL00_PB18, SSL00_PB18_MARK), | ||
1813 | PINMUX_GPIO(GPIO_FN_MOSI0_PB19, MOSI0_PB19_MARK), | ||
1814 | PINMUX_GPIO(GPIO_FN_MISO0_PB20, MISO0_PB20_MARK), | ||
1815 | PINMUX_GPIO(GPIO_FN_RSPCK1, RSPCK1_MARK), | ||
1816 | PINMUX_GPIO(GPIO_FN_MOSI1, MOSI1_MARK), | ||
1817 | PINMUX_GPIO(GPIO_FN_MISO1, MISO1_MARK), | ||
1818 | PINMUX_GPIO(GPIO_FN_SSL10, SSL10_MARK), | ||
1819 | |||
1820 | /* IIC3 */ | ||
1821 | PINMUX_GPIO(GPIO_FN_SCL0, SCL0_MARK), | ||
1822 | PINMUX_GPIO(GPIO_FN_SCL1, SCL1_MARK), | ||
1823 | PINMUX_GPIO(GPIO_FN_SCL2, SCL2_MARK), | ||
1824 | PINMUX_GPIO(GPIO_FN_SDA0, SDA0_MARK), | ||
1825 | PINMUX_GPIO(GPIO_FN_SDA1, SDA1_MARK), | ||
1826 | PINMUX_GPIO(GPIO_FN_SDA2, SDA2_MARK), | ||
1827 | |||
1828 | /* SSI */ | ||
1829 | PINMUX_GPIO(GPIO_FN_SSISCK0, SSISCK0_MARK), | ||
1830 | PINMUX_GPIO(GPIO_FN_SSIWS0, SSIWS0_MARK), | ||
1831 | PINMUX_GPIO(GPIO_FN_SSITXD0, SSITXD0_MARK), | ||
1832 | PINMUX_GPIO(GPIO_FN_SSIRXD0, SSIRXD0_MARK), | ||
1833 | PINMUX_GPIO(GPIO_FN_SSIWS1, SSIWS1_MARK), | ||
1834 | PINMUX_GPIO(GPIO_FN_SSIWS2, SSIWS2_MARK), | ||
1835 | PINMUX_GPIO(GPIO_FN_SSIWS3, SSIWS3_MARK), | ||
1836 | PINMUX_GPIO(GPIO_FN_SSISCK1, SSISCK1_MARK), | ||
1837 | PINMUX_GPIO(GPIO_FN_SSISCK2, SSISCK2_MARK), | ||
1838 | PINMUX_GPIO(GPIO_FN_SSISCK3, SSISCK3_MARK), | ||
1839 | PINMUX_GPIO(GPIO_FN_SSIDATA1, SSIDATA1_MARK), | ||
1840 | PINMUX_GPIO(GPIO_FN_SSIDATA2, SSIDATA2_MARK), | ||
1841 | PINMUX_GPIO(GPIO_FN_SSIDATA3, SSIDATA3_MARK), | ||
1842 | PINMUX_GPIO(GPIO_FN_AUDIO_CLK, AUDIO_CLK_MARK), | ||
1843 | PINMUX_GPIO(GPIO_FN_AUDIO_XOUT, AUDIO_XOUT_MARK), | ||
1844 | |||
1845 | /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
1846 | PINMUX_GPIO(GPIO_FN_SIOFTXD, SIOFTXD_MARK), | ||
1847 | PINMUX_GPIO(GPIO_FN_SIOFRXD, SIOFRXD_MARK), | ||
1848 | PINMUX_GPIO(GPIO_FN_SIOFSYNC, SIOFSYNC_MARK), | ||
1849 | PINMUX_GPIO(GPIO_FN_SIOFSCK, SIOFSCK_MARK), | ||
1850 | |||
1851 | /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */ | ||
1852 | PINMUX_GPIO(GPIO_FN_SPDIF_IN, SPDIF_IN_MARK), | ||
1853 | PINMUX_GPIO(GPIO_FN_SPDIF_OUT, SPDIF_OUT_MARK), | ||
1854 | |||
1855 | /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */ | ||
1856 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1857 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1858 | |||
1859 | /* VDC3 */ | ||
1860 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1861 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1862 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1863 | |||
1864 | PINMUX_GPIO(GPIO_FN_DV_DATA23, DV_DATA23_MARK), | ||
1865 | PINMUX_GPIO(GPIO_FN_DV_DATA22, DV_DATA22_MARK), | ||
1866 | PINMUX_GPIO(GPIO_FN_DV_DATA21, DV_DATA21_MARK), | ||
1867 | PINMUX_GPIO(GPIO_FN_DV_DATA20, DV_DATA20_MARK), | ||
1868 | PINMUX_GPIO(GPIO_FN_DV_DATA19, DV_DATA19_MARK), | ||
1869 | PINMUX_GPIO(GPIO_FN_DV_DATA18, DV_DATA18_MARK), | ||
1870 | PINMUX_GPIO(GPIO_FN_DV_DATA17, DV_DATA17_MARK), | ||
1871 | PINMUX_GPIO(GPIO_FN_DV_DATA16, DV_DATA16_MARK), | ||
1872 | PINMUX_GPIO(GPIO_FN_DV_DATA15, DV_DATA15_MARK), | ||
1873 | PINMUX_GPIO(GPIO_FN_DV_DATA14, DV_DATA14_MARK), | ||
1874 | PINMUX_GPIO(GPIO_FN_DV_DATA13, DV_DATA13_MARK), | ||
1875 | PINMUX_GPIO(GPIO_FN_DV_DATA12, DV_DATA12_MARK), | ||
1876 | PINMUX_GPIO(GPIO_FN_DV_DATA11, DV_DATA11_MARK), | ||
1877 | PINMUX_GPIO(GPIO_FN_DV_DATA10, DV_DATA10_MARK), | ||
1878 | PINMUX_GPIO(GPIO_FN_DV_DATA9, DV_DATA9_MARK), | ||
1879 | PINMUX_GPIO(GPIO_FN_DV_DATA8, DV_DATA8_MARK), | ||
1880 | PINMUX_GPIO(GPIO_FN_DV_DATA7, DV_DATA7_MARK), | ||
1881 | PINMUX_GPIO(GPIO_FN_DV_DATA6, DV_DATA6_MARK), | ||
1882 | PINMUX_GPIO(GPIO_FN_DV_DATA5, DV_DATA5_MARK), | ||
1883 | PINMUX_GPIO(GPIO_FN_DV_DATA4, DV_DATA4_MARK), | ||
1884 | PINMUX_GPIO(GPIO_FN_DV_DATA3, DV_DATA3_MARK), | ||
1885 | PINMUX_GPIO(GPIO_FN_DV_DATA2, DV_DATA2_MARK), | ||
1886 | PINMUX_GPIO(GPIO_FN_DV_DATA1, DV_DATA1_MARK), | ||
1887 | PINMUX_GPIO(GPIO_FN_DV_DATA0, DV_DATA0_MARK), | ||
1888 | |||
1889 | PINMUX_GPIO(GPIO_FN_LCD_CLK, LCD_CLK_MARK), | ||
1890 | PINMUX_GPIO(GPIO_FN_LCD_EXTCLK, LCD_EXTCLK_MARK), | ||
1891 | PINMUX_GPIO(GPIO_FN_LCD_VSYNC, LCD_VSYNC_MARK), | ||
1892 | PINMUX_GPIO(GPIO_FN_LCD_HSYNC, LCD_HSYNC_MARK), | ||
1893 | PINMUX_GPIO(GPIO_FN_LCD_DE, LCD_DE_MARK), | ||
1894 | |||
1895 | PINMUX_GPIO(GPIO_FN_LCD_DATA23_PG23, LCD_DATA23_PG23_MARK), | ||
1896 | PINMUX_GPIO(GPIO_FN_LCD_DATA22_PG22, LCD_DATA22_PG22_MARK), | ||
1897 | PINMUX_GPIO(GPIO_FN_LCD_DATA21_PG21, LCD_DATA21_PG21_MARK), | ||
1898 | PINMUX_GPIO(GPIO_FN_LCD_DATA20_PG20, LCD_DATA20_PG20_MARK), | ||
1899 | PINMUX_GPIO(GPIO_FN_LCD_DATA19_PG19, LCD_DATA19_PG19_MARK), | ||
1900 | PINMUX_GPIO(GPIO_FN_LCD_DATA18_PG18, LCD_DATA18_PG18_MARK), | ||
1901 | PINMUX_GPIO(GPIO_FN_LCD_DATA17_PG17, LCD_DATA17_PG17_MARK), | ||
1902 | PINMUX_GPIO(GPIO_FN_LCD_DATA16_PG16, LCD_DATA16_PG16_MARK), | ||
1903 | PINMUX_GPIO(GPIO_FN_LCD_DATA15_PG15, LCD_DATA15_PG15_MARK), | ||
1904 | PINMUX_GPIO(GPIO_FN_LCD_DATA14_PG14, LCD_DATA14_PG14_MARK), | ||
1905 | PINMUX_GPIO(GPIO_FN_LCD_DATA13_PG13, LCD_DATA13_PG13_MARK), | ||
1906 | PINMUX_GPIO(GPIO_FN_LCD_DATA12_PG12, LCD_DATA12_PG12_MARK), | ||
1907 | PINMUX_GPIO(GPIO_FN_LCD_DATA11_PG11, LCD_DATA11_PG11_MARK), | ||
1908 | PINMUX_GPIO(GPIO_FN_LCD_DATA10_PG10, LCD_DATA10_PG10_MARK), | ||
1909 | PINMUX_GPIO(GPIO_FN_LCD_DATA9_PG9, LCD_DATA9_PG9_MARK), | ||
1910 | PINMUX_GPIO(GPIO_FN_LCD_DATA8_PG8, LCD_DATA8_PG8_MARK), | ||
1911 | PINMUX_GPIO(GPIO_FN_LCD_DATA7_PG7, LCD_DATA7_PG7_MARK), | ||
1912 | PINMUX_GPIO(GPIO_FN_LCD_DATA6_PG6, LCD_DATA6_PG6_MARK), | ||
1913 | PINMUX_GPIO(GPIO_FN_LCD_DATA5_PG5, LCD_DATA5_PG5_MARK), | ||
1914 | PINMUX_GPIO(GPIO_FN_LCD_DATA4_PG4, LCD_DATA4_PG4_MARK), | ||
1915 | PINMUX_GPIO(GPIO_FN_LCD_DATA3_PG3, LCD_DATA3_PG3_MARK), | ||
1916 | PINMUX_GPIO(GPIO_FN_LCD_DATA2_PG2, LCD_DATA2_PG2_MARK), | ||
1917 | PINMUX_GPIO(GPIO_FN_LCD_DATA1_PG1, LCD_DATA1_PG1_MARK), | ||
1918 | PINMUX_GPIO(GPIO_FN_LCD_DATA0_PG0, LCD_DATA0_PG0_MARK), | ||
1919 | |||
1920 | PINMUX_GPIO(GPIO_FN_LCD_DATA23_PJ23, LCD_DATA23_PJ23_MARK), | ||
1921 | PINMUX_GPIO(GPIO_FN_LCD_DATA22_PJ22, LCD_DATA22_PJ22_MARK), | ||
1922 | PINMUX_GPIO(GPIO_FN_LCD_DATA21_PJ21, LCD_DATA21_PJ21_MARK), | ||
1923 | PINMUX_GPIO(GPIO_FN_LCD_DATA20_PJ20, LCD_DATA20_PJ20_MARK), | ||
1924 | PINMUX_GPIO(GPIO_FN_LCD_DATA19_PJ19, LCD_DATA19_PJ19_MARK), | ||
1925 | PINMUX_GPIO(GPIO_FN_LCD_DATA18_PJ18, LCD_DATA18_PJ18_MARK), | ||
1926 | PINMUX_GPIO(GPIO_FN_LCD_DATA17_PJ17, LCD_DATA17_PJ17_MARK), | ||
1927 | PINMUX_GPIO(GPIO_FN_LCD_DATA16_PJ16, LCD_DATA16_PJ16_MARK), | ||
1928 | PINMUX_GPIO(GPIO_FN_LCD_DATA15_PJ15, LCD_DATA15_PJ15_MARK), | ||
1929 | PINMUX_GPIO(GPIO_FN_LCD_DATA14_PJ14, LCD_DATA14_PJ14_MARK), | ||
1930 | PINMUX_GPIO(GPIO_FN_LCD_DATA13_PJ13, LCD_DATA13_PJ13_MARK), | ||
1931 | PINMUX_GPIO(GPIO_FN_LCD_DATA12_PJ12, LCD_DATA12_PJ12_MARK), | ||
1932 | PINMUX_GPIO(GPIO_FN_LCD_DATA11_PJ11, LCD_DATA11_PJ11_MARK), | ||
1933 | PINMUX_GPIO(GPIO_FN_LCD_DATA10_PJ10, LCD_DATA10_PJ10_MARK), | ||
1934 | PINMUX_GPIO(GPIO_FN_LCD_DATA9_PJ9, LCD_DATA9_PJ9_MARK), | ||
1935 | PINMUX_GPIO(GPIO_FN_LCD_DATA8_PJ8, LCD_DATA8_PJ8_MARK), | ||
1936 | PINMUX_GPIO(GPIO_FN_LCD_DATA7_PJ7, LCD_DATA7_PJ7_MARK), | ||
1937 | PINMUX_GPIO(GPIO_FN_LCD_DATA6_PJ6, LCD_DATA6_PJ6_MARK), | ||
1938 | PINMUX_GPIO(GPIO_FN_LCD_DATA5_PJ5, LCD_DATA5_PJ5_MARK), | ||
1939 | PINMUX_GPIO(GPIO_FN_LCD_DATA4_PJ4, LCD_DATA4_PJ4_MARK), | ||
1940 | PINMUX_GPIO(GPIO_FN_LCD_DATA3_PJ3, LCD_DATA3_PJ3_MARK), | ||
1941 | PINMUX_GPIO(GPIO_FN_LCD_DATA2_PJ2, LCD_DATA2_PJ2_MARK), | ||
1942 | PINMUX_GPIO(GPIO_FN_LCD_DATA1_PJ1, LCD_DATA1_PJ1_MARK), | ||
1943 | PINMUX_GPIO(GPIO_FN_LCD_DATA0_PJ0, LCD_DATA0_PJ0_MARK), | ||
1944 | |||
1945 | PINMUX_GPIO(GPIO_FN_LCD_M_DISP, LCD_M_DISP_MARK), | ||
1946 | }; | ||
1947 | |||
1948 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1949 | /* "name" addr register_size Field_Width */ | ||
1950 | |||
1951 | /* where Field_Width is 1 for single mode registers or 4 for upto 16 | ||
1952 | mode registers and modes are described in assending order [0..16] */ | ||
1953 | |||
1954 | { PINMUX_CFG_REG("PAIOR0", 0xfffe3812, 16, 1) { | ||
1955 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1956 | 0, 0, 0, 0, 0, 0, PA1_IN, PA1_OUT, | ||
1957 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1958 | 0, 0, 0, 0, 0, 0, PA0_IN, PA0_OUT } | ||
1959 | }, | ||
1960 | { PINMUX_CFG_REG("PBCR5", 0xfffe3824, 16, 4) { | ||
1961 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1962 | |||
1963 | PB22MD_000, PB22MD_001, PB22MD_010, PB22MD_011, | ||
1964 | PB22MD_100, PB22MD_101, PB22MD_110, PB22MD_111, | ||
1965 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1966 | |||
1967 | PB21MD_00, PB21MD_01, PB21MD_10, PB21MD_11, 0, 0, 0, 0, | ||
1968 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1969 | |||
1970 | PB20MD_000, PB20MD_001, PB20MD_010, PB20MD_011, | ||
1971 | PB20MD_100, PB20MD_101, PB20MD_110, PB20MD_111, | ||
1972 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1973 | }, | ||
1974 | { PINMUX_CFG_REG("PBCR4", 0xfffe3826, 16, 4) { | ||
1975 | PB19MD_000, PB19MD_001, PB19MD_010, PB19MD_011, | ||
1976 | PB19MD_100, PB19MD_101, PB19MD_110, PB19MD_111, | ||
1977 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1978 | |||
1979 | PB18MD_000, PB18MD_001, PB18MD_010, PB18MD_011, | ||
1980 | PB18MD_100, PB18MD_101, PB18MD_110, PB18MD_111, | ||
1981 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1982 | |||
1983 | PB17MD_000, PB17MD_001, PB17MD_010, PB17MD_011, | ||
1984 | PB17MD_100, PB17MD_101, PB17MD_110, PB17MD_111, | ||
1985 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1986 | |||
1987 | PB16MD_000, PB16MD_001, PB16MD_010, PB16MD_011, | ||
1988 | PB16MD_100, PB16MD_101, PB16MD_110, PB16MD_111, | ||
1989 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1990 | }, | ||
1991 | { PINMUX_CFG_REG("PBCR3", 0xfffe3828, 16, 4) { | ||
1992 | PB15MD_000, PB15MD_001, PB15MD_010, PB15MD_011, | ||
1993 | PB15MD_100, PB15MD_101, PB15MD_110, PB15MD_111, | ||
1994 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1995 | |||
1996 | PB14MD_000, PB14MD_001, PB14MD_010, PB14MD_011, | ||
1997 | PB14MD_100, PB14MD_101, PB14MD_110, PB14MD_111, | ||
1998 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1999 | |||
2000 | PB13MD_000, PB13MD_001, PB13MD_010, PB13MD_011, | ||
2001 | PB13MD_100, PB13MD_101, PB13MD_110, PB13MD_111, | ||
2002 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2003 | |||
2004 | PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, 0, 0, 0, 0, | ||
2005 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2006 | }, | ||
2007 | { PINMUX_CFG_REG("PBCR2", 0xfffe382a, 16, 4) { | ||
2008 | PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11, 0, 0, 0, 0, | ||
2009 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2010 | |||
2011 | PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11, 0, 0, 0, 0, | ||
2012 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2013 | |||
2014 | PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11, 0, 0, 0, 0, | ||
2015 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2016 | |||
2017 | PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11, 0, 0, 0, 0, | ||
2018 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2019 | }, | ||
2020 | { PINMUX_CFG_REG("PBCR1", 0xfffe382c, 16, 4) { | ||
2021 | PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, 0, 0, 0, 0, | ||
2022 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2023 | |||
2024 | PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, 0, 0, 0, 0, | ||
2025 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2026 | |||
2027 | PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, 0, 0, 0, 0, | ||
2028 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2029 | |||
2030 | PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, 0, 0, 0, 0, | ||
2031 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2032 | }, | ||
2033 | { PINMUX_CFG_REG("PBCR0", 0xfffe382e, 16, 4) { | ||
2034 | PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, 0, 0, 0, 0, | ||
2035 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2036 | |||
2037 | PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, 0, 0, 0, 0, | ||
2038 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2039 | |||
2040 | PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, 0, 0, 0, 0, | ||
2041 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2042 | |||
2043 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2044 | }, | ||
2045 | |||
2046 | { PINMUX_CFG_REG("PBIOR1", 0xfffe3830, 16, 1) { | ||
2047 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2048 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2049 | 0, 0, | ||
2050 | PB22_IN, PB22_OUT, | ||
2051 | PB21_IN, PB21_OUT, | ||
2052 | PB20_IN, PB20_OUT, | ||
2053 | PB19_IN, PB19_OUT, | ||
2054 | PB18_IN, PB18_OUT, | ||
2055 | PB17_IN, PB17_OUT, | ||
2056 | PB16_IN, PB16_OUT } | ||
2057 | }, | ||
2058 | { PINMUX_CFG_REG("PBIOR0", 0xfffe3832, 16, 1) { | ||
2059 | PB15_IN, PB15_OUT, | ||
2060 | PB14_IN, PB14_OUT, | ||
2061 | PB13_IN, PB13_OUT, | ||
2062 | PB12_IN, PB12_OUT, | ||
2063 | PB11_IN, PB11_OUT, | ||
2064 | PB10_IN, PB10_OUT, | ||
2065 | PB9_IN, PB9_OUT, | ||
2066 | PB8_IN, PB8_OUT, | ||
2067 | PB7_IN, PB7_OUT, | ||
2068 | PB6_IN, PB6_OUT, | ||
2069 | PB5_IN, PB5_OUT, | ||
2070 | PB4_IN, PB4_OUT, | ||
2071 | PB3_IN, PB3_OUT, | ||
2072 | PB2_IN, PB2_OUT, | ||
2073 | PB1_IN, PB1_OUT, | ||
2074 | 0, 0 } | ||
2075 | }, | ||
2076 | |||
2077 | { PINMUX_CFG_REG("PCCR2", 0xfffe384a, 16, 4) { | ||
2078 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2079 | |||
2080 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2081 | |||
2082 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2083 | |||
2084 | PC8MD_000, PC8MD_001, PC8MD_010, PC8MD_011, | ||
2085 | PC8MD_100, PC8MD_101, PC8MD_110, PC8MD_111, | ||
2086 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2087 | }, | ||
2088 | { PINMUX_CFG_REG("PCCR1", 0xfffe384c, 16, 4) { | ||
2089 | PC7MD_000, PC7MD_001, PC7MD_010, PC7MD_011, | ||
2090 | PC7MD_100, PC7MD_101, PC7MD_110, PC7MD_111, | ||
2091 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2092 | |||
2093 | PC6MD_000, PC6MD_001, PC6MD_010, PC6MD_011, | ||
2094 | PC6MD_100, PC6MD_101, PC6MD_110, PC6MD_111, | ||
2095 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2096 | |||
2097 | PC5MD_000, PC5MD_001, PC5MD_010, PC5MD_011, | ||
2098 | PC5MD_100, PC5MD_101, PC5MD_110, PC5MD_111, | ||
2099 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2100 | |||
2101 | PC4MD_00, PC4MD_01, PC4MD_10, PC4MD_11, 0, 0, 0, 0, | ||
2102 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2103 | }, | ||
2104 | { PINMUX_CFG_REG("PCCR0", 0xfffe384e, 16, 4) { | ||
2105 | PC3MD_00, PC3MD_01, PC3MD_10, PC3MD_11, 0, 0, 0, 0, | ||
2106 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2107 | |||
2108 | PC2MD_00, PC2MD_01, PC2MD_10, PC2MD_11, 0, 0, 0, 0, | ||
2109 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2110 | |||
2111 | PC1MD_0, PC1MD_1, 0, 0, 0, 0, 0, 0, | ||
2112 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2113 | |||
2114 | PC0MD_0, PC0MD_1, 0, 0, 0, 0, 0, 0, | ||
2115 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2116 | }, | ||
2117 | |||
2118 | { PINMUX_CFG_REG("PCIOR0", 0xfffe3852, 16, 1) { | ||
2119 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2120 | PC8_IN, PC8_OUT, | ||
2121 | PC7_IN, PC7_OUT, | ||
2122 | PC6_IN, PC6_OUT, | ||
2123 | PC5_IN, PC5_OUT, | ||
2124 | PC4_IN, PC4_OUT, | ||
2125 | PC3_IN, PC3_OUT, | ||
2126 | PC2_IN, PC2_OUT, | ||
2127 | PC1_IN, PC1_OUT, | ||
2128 | PC0_IN, PC0_OUT } | ||
2129 | }, | ||
2130 | |||
2131 | { PINMUX_CFG_REG("PDCR3", 0xfffe3868, 16, 4) { | ||
2132 | PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11, 0, 0, 0, 0, | ||
2133 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2134 | |||
2135 | PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11, 0, 0, 0, 0, | ||
2136 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2137 | |||
2138 | PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11, 0, 0, 0, 0, | ||
2139 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2140 | |||
2141 | PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11, 0, 0, 0, 0, | ||
2142 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2143 | }, | ||
2144 | { PINMUX_CFG_REG("PDCR2", 0xfffe386a, 16, 4) { | ||
2145 | PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11, 0, 0, 0, 0, | ||
2146 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2147 | |||
2148 | PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11, 0, 0, 0, 0, | ||
2149 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2150 | |||
2151 | PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11, 0, 0, 0, 0, | ||
2152 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2153 | |||
2154 | PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11, 0, 0, 0, 0, | ||
2155 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2156 | }, | ||
2157 | { PINMUX_CFG_REG("PDCR1", 0xfffe386c, 16, 4) { | ||
2158 | PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11, 0, 0, 0, 0, | ||
2159 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2160 | |||
2161 | PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11, 0, 0, 0, 0, | ||
2162 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2163 | |||
2164 | PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11, 0, 0, 0, 0, | ||
2165 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2166 | |||
2167 | PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11, 0, 0, 0, 0, | ||
2168 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2169 | }, | ||
2170 | { PINMUX_CFG_REG("PDCR0", 0xfffe386e, 16, 4) { | ||
2171 | PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11, 0, 0, 0, 0, | ||
2172 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2173 | |||
2174 | PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11, 0, 0, 0, 0, | ||
2175 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2176 | |||
2177 | PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11, 0, 0, 0, 0, | ||
2178 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2179 | |||
2180 | PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11, 0, 0, 0, 0, | ||
2181 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2182 | }, | ||
2183 | |||
2184 | { PINMUX_CFG_REG("PDIOR0", 0xfffe3872, 16, 1) { | ||
2185 | PD15_IN, PD15_OUT, | ||
2186 | PD14_IN, PD14_OUT, | ||
2187 | PD13_IN, PD13_OUT, | ||
2188 | PD12_IN, PD12_OUT, | ||
2189 | PD11_IN, PD11_OUT, | ||
2190 | PD10_IN, PD10_OUT, | ||
2191 | PD9_IN, PD9_OUT, | ||
2192 | PD8_IN, PD8_OUT, | ||
2193 | PD7_IN, PD7_OUT, | ||
2194 | PD6_IN, PD6_OUT, | ||
2195 | PD5_IN, PD5_OUT, | ||
2196 | PD4_IN, PD4_OUT, | ||
2197 | PD3_IN, PD3_OUT, | ||
2198 | PD2_IN, PD2_OUT, | ||
2199 | PD1_IN, PD1_OUT, | ||
2200 | PD0_IN, PD0_OUT } | ||
2201 | }, | ||
2202 | |||
2203 | { PINMUX_CFG_REG("PECR1", 0xfffe388c, 16, 4) { | ||
2204 | PE7MD_00, PE7MD_01, PE7MD_10, PE7MD_11, 0, 0, 0, 0, | ||
2205 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2206 | |||
2207 | PE6MD_00, PE6MD_01, PE6MD_10, PE6MD_11, 0, 0, 0, 0, | ||
2208 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2209 | |||
2210 | PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11, 0, 0, 0, 0, | ||
2211 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2212 | |||
2213 | PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11, 0, 0, 0, 0, | ||
2214 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2215 | }, | ||
2216 | { PINMUX_CFG_REG("PECR0", 0xfffe388e, 16, 4) { | ||
2217 | PE3MD_000, PE3MD_001, PE3MD_010, PE3MD_011, | ||
2218 | PE3MD_100, PE3MD_101, PE3MD_110, PE3MD_111, | ||
2219 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2220 | |||
2221 | PE2MD_000, PE2MD_001, PE2MD_010, PE2MD_011, | ||
2222 | PE2MD_100, PE2MD_101, PE2MD_110, PE2MD_111, | ||
2223 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2224 | |||
2225 | PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011, | ||
2226 | PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111, | ||
2227 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2228 | |||
2229 | PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, 0, 0, 0, 0, | ||
2230 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2231 | }, | ||
2232 | { PINMUX_CFG_REG("PEIOR0", 0xfffe3892, 16, 1) { | ||
2233 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2234 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2235 | PE7_IN, PE7_OUT, | ||
2236 | PE6_IN, PE6_OUT, | ||
2237 | PE5_IN, PE5_OUT, | ||
2238 | PE4_IN, PE4_OUT, | ||
2239 | PE3_IN, PE3_OUT, | ||
2240 | PE2_IN, PE2_OUT, | ||
2241 | PE1_IN, PE1_OUT, | ||
2242 | PE0_IN, PE0_OUT } | ||
2243 | }, | ||
2244 | |||
2245 | { PINMUX_CFG_REG("PFCR6", 0xfffe38a2, 16, 4) { | ||
2246 | PF23MD_000, PF23MD_001, PF23MD_010, PF23MD_011, | ||
2247 | PF23MD_100, PF23MD_101, PF23MD_110, PF23MD_111, | ||
2248 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2249 | |||
2250 | PF22MD_000, PF22MD_001, PF22MD_010, PF22MD_011, | ||
2251 | PF22MD_100, PF22MD_101, PF22MD_110, PF22MD_111, | ||
2252 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2253 | |||
2254 | PF21MD_000, PF21MD_001, PF21MD_010, PF21MD_011, | ||
2255 | PF21MD_100, PF21MD_101, PF21MD_110, PF21MD_111, | ||
2256 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2257 | |||
2258 | PF20MD_000, PF20MD_001, PF20MD_010, PF20MD_011, | ||
2259 | PF20MD_100, PF20MD_101, PF20MD_110, PF20MD_111, | ||
2260 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2261 | }, | ||
2262 | { PINMUX_CFG_REG("PFCR5", 0xfffe38a4, 16, 4) { | ||
2263 | PF19MD_000, PF19MD_001, PF19MD_010, PF19MD_011, | ||
2264 | PF19MD_100, PF19MD_101, PF19MD_110, PF19MD_111, | ||
2265 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2266 | |||
2267 | PF18MD_000, PF18MD_001, PF18MD_010, PF18MD_011, | ||
2268 | PF18MD_100, PF18MD_101, PF18MD_110, PF18MD_111, | ||
2269 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2270 | |||
2271 | PF17MD_000, PF17MD_001, PF17MD_010, PF17MD_011, | ||
2272 | PF17MD_100, PF17MD_101, PF17MD_110, PF17MD_111, | ||
2273 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2274 | |||
2275 | PF16MD_000, PF16MD_001, PF16MD_010, PF16MD_011, | ||
2276 | PF16MD_100, PF16MD_101, PF16MD_110, PF16MD_111, | ||
2277 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2278 | }, | ||
2279 | { PINMUX_CFG_REG("PFCR4", 0xfffe38a6, 16, 4) { | ||
2280 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2281 | |||
2282 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2283 | |||
2284 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2285 | |||
2286 | PF15MD_000, PF15MD_001, PF15MD_010, PF15MD_011, | ||
2287 | PF15MD_100, PF15MD_101, PF15MD_110, PF15MD_111, | ||
2288 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2289 | }, | ||
2290 | { PINMUX_CFG_REG("PFCR3", 0xfffe38a8, 16, 4) { | ||
2291 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2292 | |||
2293 | PF14MD_000, PF14MD_001, PF14MD_010, PF14MD_011, | ||
2294 | PF14MD_100, PF14MD_101, PF14MD_110, PF14MD_111, | ||
2295 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2296 | |||
2297 | PF13MD_000, PF13MD_001, PF13MD_010, PF13MD_011, | ||
2298 | PF13MD_100, PF13MD_101, PF13MD_110, PF13MD_111, | ||
2299 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2300 | |||
2301 | PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011, | ||
2302 | PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111, | ||
2303 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2304 | }, | ||
2305 | { PINMUX_CFG_REG("PFCR2", 0xfffe38aa, 16, 4) { | ||
2306 | PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011, | ||
2307 | PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111, | ||
2308 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2309 | |||
2310 | PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011, | ||
2311 | PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111, | ||
2312 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2313 | |||
2314 | PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011, | ||
2315 | PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111, | ||
2316 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2317 | |||
2318 | PF8MD_000, PF8MD_001, PF8MD_010, PF8MD_011, | ||
2319 | PF8MD_100, PF8MD_101, PF8MD_110, PF8MD_111, | ||
2320 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2321 | }, | ||
2322 | { PINMUX_CFG_REG("PFCR1", 0xfffe38ac, 16, 4) { | ||
2323 | PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011, | ||
2324 | PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111, | ||
2325 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2326 | |||
2327 | PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011, | ||
2328 | PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111, | ||
2329 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2330 | |||
2331 | PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011, | ||
2332 | PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111, | ||
2333 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2334 | |||
2335 | PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011, | ||
2336 | PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111, | ||
2337 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2338 | }, | ||
2339 | { PINMUX_CFG_REG("PFCR0", 0xfffe38ae, 16, 4) { | ||
2340 | PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011, | ||
2341 | PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111, | ||
2342 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2343 | |||
2344 | PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011, | ||
2345 | PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111, | ||
2346 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2347 | |||
2348 | PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011, | ||
2349 | PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111, | ||
2350 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2351 | |||
2352 | PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011, | ||
2353 | PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111, | ||
2354 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2355 | }, | ||
2356 | |||
2357 | { PINMUX_CFG_REG("PFIOR1", 0xfffe38b0, 16, 1) { | ||
2358 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2359 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2360 | PF23_IN, PF23_OUT, | ||
2361 | PF22_IN, PF22_OUT, | ||
2362 | PF21_IN, PF21_OUT, | ||
2363 | PF20_IN, PF20_OUT, | ||
2364 | PF19_IN, PF19_OUT, | ||
2365 | PF18_IN, PF18_OUT, | ||
2366 | PF17_IN, PF17_OUT, | ||
2367 | PF16_IN, PF16_OUT } | ||
2368 | }, | ||
2369 | { PINMUX_CFG_REG("PFIOR0", 0xfffe38b2, 16, 1) { | ||
2370 | PF15_IN, PF15_OUT, | ||
2371 | PF14_IN, PF14_OUT, | ||
2372 | PF13_IN, PF13_OUT, | ||
2373 | PF12_IN, PF12_OUT, | ||
2374 | PF11_IN, PF11_OUT, | ||
2375 | PF10_IN, PF10_OUT, | ||
2376 | PF9_IN, PF9_OUT, | ||
2377 | PF8_IN, PF8_OUT, | ||
2378 | PF7_IN, PF7_OUT, | ||
2379 | PF6_IN, PF6_OUT, | ||
2380 | PF5_IN, PF5_OUT, | ||
2381 | PF4_IN, PF4_OUT, | ||
2382 | PF3_IN, PF3_OUT, | ||
2383 | PF2_IN, PF2_OUT, | ||
2384 | PF1_IN, PF1_OUT, | ||
2385 | PF0_IN, PF0_OUT } | ||
2386 | }, | ||
2387 | |||
2388 | { PINMUX_CFG_REG("PGCR6", 0xfffe38c2, 16, 4) { | ||
2389 | PG27MD_00, PG27MD_01, PG27MD_10, PG27MD_11, 0, 0, 0, 0, | ||
2390 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2391 | |||
2392 | PG26MD_00, PG26MD_01, PG26MD_10, PG26MD_11, 0, 0, 0, 0, | ||
2393 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2394 | |||
2395 | PG25MD_00, PG25MD_01, PG25MD_10, PG25MD_11, 0, 0, 0, 0, | ||
2396 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2397 | |||
2398 | PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, 0, 0, 0, 0, | ||
2399 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2400 | }, | ||
2401 | { PINMUX_CFG_REG("PGCR5", 0xfffe38c4, 16, 4) { | ||
2402 | PG23MD_000, PG23MD_001, PG23MD_010, PG23MD_011, | ||
2403 | PG23MD_100, PG23MD_101, PG23MD_110, PG23MD_111, | ||
2404 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2405 | |||
2406 | PG22MD_000, PG22MD_001, PG22MD_010, PG22MD_011, | ||
2407 | PG22MD_100, PG22MD_101, PG22MD_110, PG22MD_111, | ||
2408 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2409 | |||
2410 | PG21MD_000, PG21MD_001, PG21MD_010, PG21MD_011, | ||
2411 | PG21MD_100, PG21MD_101, PG21MD_110, PG21MD_111, | ||
2412 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2413 | |||
2414 | PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011, | ||
2415 | PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111, | ||
2416 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2417 | }, | ||
2418 | { PINMUX_CFG_REG("PGCR4", 0xfffe38c6, 16, 4) { | ||
2419 | PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011, | ||
2420 | PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111, | ||
2421 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2422 | |||
2423 | PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011, | ||
2424 | PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111, | ||
2425 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2426 | |||
2427 | PG17MD_00, PG17MD_01, PG17MD_10, PG17MD_11, 0, 0, 0, 0, | ||
2428 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2429 | |||
2430 | PG16MD_00, PG16MD_01, PG16MD_10, PG16MD_11, 0, 0, 0, 0, | ||
2431 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2432 | }, | ||
2433 | { PINMUX_CFG_REG("PGCR3", 0xfffe38c8, 16, 4) { | ||
2434 | PG15MD_00, PG15MD_01, PG15MD_10, PG15MD_11, 0, 0, 0, 0, | ||
2435 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2436 | |||
2437 | PG14MD_00, PG14MD_01, PG14MD_10, PG14MD_11, 0, 0, 0, 0, | ||
2438 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2439 | |||
2440 | PG13MD_00, PG13MD_01, PG13MD_10, PG13MD_11, 0, 0, 0, 0, | ||
2441 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2442 | |||
2443 | PG12MD_00, PG12MD_01, PG12MD_10, PG12MD_11, 0, 0, 0, 0, | ||
2444 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2445 | }, | ||
2446 | { PINMUX_CFG_REG("PGCR2", 0xfffe38ca, 16, 4) { | ||
2447 | PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011, | ||
2448 | PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111, | ||
2449 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2450 | |||
2451 | PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011, | ||
2452 | PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111, | ||
2453 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2454 | |||
2455 | PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011, | ||
2456 | PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111, | ||
2457 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2458 | |||
2459 | PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011, | ||
2460 | PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111, | ||
2461 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2462 | }, | ||
2463 | |||
2464 | { PINMUX_CFG_REG("PGCR1", 0xfffe38cc, 16, 4) { | ||
2465 | PG7MD_000, PG7MD_001, PG7MD_010, PG7MD_011, | ||
2466 | PG7MD_100, PG7MD_101, PG7MD_110, PG7MD_111, | ||
2467 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2468 | |||
2469 | PG6MD_000, PG6MD_001, PG6MD_010, PG6MD_011, | ||
2470 | PG6MD_100, PG6MD_101, PG6MD_110, PG6MD_111, | ||
2471 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2472 | |||
2473 | PG5MD_000, PG5MD_001, PG5MD_010, PG5MD_011, | ||
2474 | PG5MD_100, PG5MD_101, PG5MD_110, PG5MD_111, | ||
2475 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2476 | |||
2477 | PG4MD_000, PG4MD_001, PG4MD_010, PG4MD_011, | ||
2478 | PG4MD_100, PG4MD_101, PG4MD_110, PG4MD_111, | ||
2479 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2480 | }, | ||
2481 | { PINMUX_CFG_REG("PGCR0", 0xfffe38ce, 16, 4) { | ||
2482 | PG3MD_000, PG3MD_001, PG3MD_010, PG3MD_011, | ||
2483 | PG3MD_100, PG3MD_101, PG3MD_110, PG3MD_111, | ||
2484 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2485 | |||
2486 | PG2MD_000, PG2MD_001, PG2MD_010, PG2MD_011, | ||
2487 | PG2MD_100, PG2MD_101, PG2MD_110, PG2MD_111, | ||
2488 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2489 | |||
2490 | PG1MD_000, PG1MD_001, PG1MD_010, PG1MD_011, | ||
2491 | PG1MD_100, PG1MD_101, PG1MD_110, PG1MD_111, | ||
2492 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2493 | |||
2494 | PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011, | ||
2495 | PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111, | ||
2496 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2497 | }, | ||
2498 | |||
2499 | { PINMUX_CFG_REG("PGIOR1", 0xfffe38d0, 16, 1) { | ||
2500 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2501 | PG27_IN, PG27_OUT, | ||
2502 | PG26_IN, PG26_OUT, | ||
2503 | PG25_IN, PG25_OUT, | ||
2504 | PG24_IN, PG24_OUT, | ||
2505 | PG23_IN, PG23_OUT, | ||
2506 | PG22_IN, PG22_OUT, | ||
2507 | PG21_IN, PG21_OUT, | ||
2508 | PG20_IN, PG20_OUT, | ||
2509 | PG19_IN, PG19_OUT, | ||
2510 | PG18_IN, PG18_OUT, | ||
2511 | PG17_IN, PG17_OUT, | ||
2512 | PG16_IN, PG16_OUT } | ||
2513 | }, | ||
2514 | { PINMUX_CFG_REG("PGIOR0", 0xfffe38d2, 16, 1) { | ||
2515 | PG15_IN, PG15_OUT, | ||
2516 | PG14_IN, PG14_OUT, | ||
2517 | PG13_IN, PG13_OUT, | ||
2518 | PG12_IN, PG12_OUT, | ||
2519 | PG11_IN, PG11_OUT, | ||
2520 | PG10_IN, PG10_OUT, | ||
2521 | PG9_IN, PG9_OUT, | ||
2522 | PG8_IN, PG8_OUT, | ||
2523 | PG7_IN, PG7_OUT, | ||
2524 | PG6_IN, PG6_OUT, | ||
2525 | PG5_IN, PG5_OUT, | ||
2526 | PG4_IN, PG4_OUT, | ||
2527 | PG3_IN, PG3_OUT, | ||
2528 | PG2_IN, PG2_OUT, | ||
2529 | PG1_IN, PG1_OUT, | ||
2530 | PG0_IN, PG0_OUT } | ||
2531 | }, | ||
2532 | |||
2533 | { PINMUX_CFG_REG("PHCR1", 0xfffe38ec, 16, 4) { | ||
2534 | PH7MD_00, PH7MD_01, PH7MD_10, PH7MD_11, 0, 0, 0, 0, | ||
2535 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2536 | |||
2537 | PH6MD_00, PH6MD_01, PH6MD_10, PH6MD_11, 0, 0, 0, 0, | ||
2538 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2539 | |||
2540 | PH5MD_00, PH5MD_01, PH5MD_10, PH5MD_11, 0, 0, 0, 0, | ||
2541 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2542 | |||
2543 | PH4MD_00, PH4MD_01, PH4MD_10, PH4MD_11, 0, 0, 0, 0, | ||
2544 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2545 | }, | ||
2546 | |||
2547 | { PINMUX_CFG_REG("PHCR0", 0xfffe38ee, 16, 4) { | ||
2548 | PH3MD_00, PH3MD_01, PH3MD_10, PH3MD_11, 0, 0, 0, 0, | ||
2549 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2550 | |||
2551 | PH2MD_00, PH2MD_01, PH2MD_10, PH2MD_11, 0, 0, 0, 0, | ||
2552 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2553 | |||
2554 | PH1MD_00, PH1MD_01, PH1MD_10, PH1MD_11, 0, 0, 0, 0, | ||
2555 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2556 | |||
2557 | PH0MD_00, PH0MD_01, PH0MD_10, PH0MD_11, 0, 0, 0, 0, | ||
2558 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2559 | }, | ||
2560 | |||
2561 | { PINMUX_CFG_REG("PJCR7", 0xfffe3900, 16, 4) { | ||
2562 | PJ31MD_0, PJ31MD_1, 0, 0, 0, 0, 0, 0, | ||
2563 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2564 | |||
2565 | PJ30MD_000, PJ30MD_001, PJ30MD_010, PJ30MD_011, | ||
2566 | PJ30MD_100, PJ30MD_101, PJ30MD_110, PJ30MD_111, | ||
2567 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2568 | |||
2569 | PJ29MD_000, PJ29MD_001, PJ29MD_010, PJ29MD_011, | ||
2570 | PJ29MD_100, PJ29MD_101, PJ29MD_110, PJ29MD_111, | ||
2571 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2572 | |||
2573 | PJ28MD_000, PJ28MD_001, PJ28MD_010, PJ28MD_011, | ||
2574 | PJ28MD_100, PJ28MD_101, PJ28MD_110, PJ28MD_111, | ||
2575 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2576 | }, | ||
2577 | { PINMUX_CFG_REG("PJCR6", 0xfffe3902, 16, 4) { | ||
2578 | PJ27MD_000, PJ27MD_001, PJ27MD_010, PJ27MD_011, | ||
2579 | PJ27MD_100, PJ27MD_101, PJ27MD_110, PJ27MD_111, | ||
2580 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2581 | |||
2582 | PJ26MD_000, PJ26MD_001, PJ26MD_010, PJ26MD_011, | ||
2583 | PJ26MD_100, PJ26MD_101, PJ26MD_110, PJ26MD_111, | ||
2584 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2585 | |||
2586 | PJ25MD_000, PJ25MD_001, PJ25MD_010, PJ25MD_011, | ||
2587 | PJ25MD_100, PJ25MD_101, PJ25MD_110, PJ25MD_111, | ||
2588 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2589 | |||
2590 | PJ24MD_000, PJ24MD_001, PJ24MD_010, PJ24MD_011, | ||
2591 | PJ24MD_100, PJ24MD_101, PJ24MD_110, PJ24MD_111, | ||
2592 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2593 | }, | ||
2594 | { PINMUX_CFG_REG("PJCR5", 0xfffe3904, 16, 4) { | ||
2595 | PJ23MD_000, PJ23MD_001, PJ23MD_010, PJ23MD_011, | ||
2596 | PJ23MD_100, PJ23MD_101, PJ23MD_110, PJ23MD_111, | ||
2597 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2598 | |||
2599 | PJ22MD_000, PJ22MD_001, PJ22MD_010, PJ22MD_011, | ||
2600 | PJ22MD_100, PJ22MD_101, PJ22MD_110, PJ22MD_111, | ||
2601 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2602 | |||
2603 | PJ21MD_000, PJ21MD_001, PJ21MD_010, PJ21MD_011, | ||
2604 | PJ21MD_100, PJ21MD_101, PJ21MD_110, PJ21MD_111, | ||
2605 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2606 | |||
2607 | PJ20MD_000, PJ20MD_001, PJ20MD_010, PJ20MD_011, | ||
2608 | PJ20MD_100, PJ20MD_101, PJ20MD_110, PJ20MD_111, | ||
2609 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2610 | }, | ||
2611 | { PINMUX_CFG_REG("PJCR4", 0xfffe3906, 16, 4) { | ||
2612 | PJ19MD_000, PJ19MD_001, PJ19MD_010, PJ19MD_011, | ||
2613 | PJ19MD_100, PJ19MD_101, PJ19MD_110, PJ19MD_111, | ||
2614 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2615 | |||
2616 | PJ18MD_000, PJ18MD_001, PJ18MD_010, PJ18MD_011, | ||
2617 | PJ18MD_100, PJ18MD_101, PJ18MD_110, PJ18MD_111, | ||
2618 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2619 | |||
2620 | PJ17MD_000, PJ17MD_001, PJ17MD_010, PJ17MD_011, | ||
2621 | PJ17MD_100, PJ17MD_101, PJ17MD_110, PJ17MD_111, | ||
2622 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2623 | |||
2624 | PJ16MD_000, PJ16MD_001, PJ16MD_010, PJ16MD_011, | ||
2625 | PJ16MD_100, PJ16MD_101, PJ16MD_110, PJ16MD_111, | ||
2626 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2627 | }, | ||
2628 | { PINMUX_CFG_REG("PJCR3", 0xfffe3908, 16, 4) { | ||
2629 | PJ15MD_000, PJ15MD_001, PJ15MD_010, PJ15MD_011, | ||
2630 | PJ15MD_100, PJ15MD_101, PJ15MD_110, PJ15MD_111, | ||
2631 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2632 | |||
2633 | PJ14MD_000, PJ14MD_001, PJ14MD_010, PJ14MD_011, | ||
2634 | PJ14MD_100, PJ14MD_101, PJ14MD_110, PJ14MD_111, | ||
2635 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2636 | |||
2637 | PJ13MD_000, PJ13MD_001, PJ13MD_010, PJ13MD_011, | ||
2638 | PJ13MD_100, PJ13MD_101, PJ13MD_110, PJ13MD_111, | ||
2639 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2640 | |||
2641 | PJ12MD_000, PJ12MD_001, PJ12MD_010, PJ12MD_011, | ||
2642 | PJ12MD_100, PJ12MD_101, PJ12MD_110, PJ12MD_111, | ||
2643 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2644 | }, | ||
2645 | { PINMUX_CFG_REG("PJCR2", 0xfffe390a, 16, 4) { | ||
2646 | PJ11MD_000, PJ11MD_001, PJ11MD_010, PJ11MD_011, | ||
2647 | PJ11MD_100, PJ11MD_101, PJ11MD_110, PJ11MD_111, | ||
2648 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2649 | |||
2650 | PJ10MD_000, PJ10MD_001, PJ10MD_010, PJ10MD_011, | ||
2651 | PJ10MD_100, PJ10MD_101, PJ10MD_110, PJ10MD_111, | ||
2652 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2653 | |||
2654 | PJ9MD_000, PJ9MD_001, PJ9MD_010, PJ9MD_011, | ||
2655 | PJ9MD_100, PJ9MD_101, PJ9MD_110, PJ9MD_111, | ||
2656 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2657 | |||
2658 | PJ8MD_000, PJ8MD_001, PJ8MD_010, PJ8MD_011, | ||
2659 | PJ8MD_100, PJ8MD_101, PJ8MD_110, PJ8MD_111, | ||
2660 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2661 | }, | ||
2662 | { PINMUX_CFG_REG("PJCR1", 0xfffe390c, 16, 4) { | ||
2663 | PJ7MD_000, PJ7MD_001, PJ7MD_010, PJ7MD_011, | ||
2664 | PJ7MD_100, PJ7MD_101, PJ7MD_110, PJ7MD_111, | ||
2665 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2666 | |||
2667 | PJ6MD_000, PJ6MD_001, PJ6MD_010, PJ6MD_011, | ||
2668 | PJ6MD_100, PJ6MD_101, PJ6MD_110, PJ6MD_111, | ||
2669 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2670 | |||
2671 | PJ5MD_000, PJ5MD_001, PJ5MD_010, PJ5MD_011, | ||
2672 | PJ5MD_100, PJ5MD_101, PJ5MD_110, PJ5MD_111, | ||
2673 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2674 | |||
2675 | PJ4MD_000, PJ4MD_001, PJ4MD_010, PJ4MD_011, | ||
2676 | PJ4MD_100, PJ4MD_101, PJ4MD_110, PJ4MD_111, | ||
2677 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2678 | }, | ||
2679 | { PINMUX_CFG_REG("PJCR0", 0xfffe390e, 16, 4) { | ||
2680 | PJ3MD_000, PJ3MD_001, PJ3MD_010, PJ3MD_011, | ||
2681 | PJ3MD_100, PJ3MD_101, PJ3MD_110, PJ3MD_111, | ||
2682 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2683 | |||
2684 | PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011, | ||
2685 | PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111, | ||
2686 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2687 | |||
2688 | PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011, | ||
2689 | PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111, | ||
2690 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2691 | |||
2692 | PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011, | ||
2693 | PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111, | ||
2694 | 0, 0, 0, 0, 0, 0, 0, 0 } | ||
2695 | }, | ||
2696 | |||
2697 | { PINMUX_CFG_REG("PJIOR1", 0xfffe3910, 16, 1) { | ||
2698 | PJ31_IN, PJ31_OUT, | ||
2699 | PJ30_IN, PJ30_OUT, | ||
2700 | PJ29_IN, PJ29_OUT, | ||
2701 | PJ28_IN, PJ28_OUT, | ||
2702 | PJ27_IN, PJ27_OUT, | ||
2703 | PJ26_IN, PJ26_OUT, | ||
2704 | PJ25_IN, PJ25_OUT, | ||
2705 | PJ24_IN, PJ24_OUT, | ||
2706 | PJ23_IN, PJ23_OUT, | ||
2707 | PJ22_IN, PJ22_OUT, | ||
2708 | PJ21_IN, PJ21_OUT, | ||
2709 | PJ20_IN, PJ20_OUT, | ||
2710 | PJ19_IN, PJ19_OUT, | ||
2711 | PJ18_IN, PJ18_OUT, | ||
2712 | PJ17_IN, PJ17_OUT, | ||
2713 | PJ16_IN, PJ16_OUT } | ||
2714 | }, | ||
2715 | { PINMUX_CFG_REG("PJIOR0", 0xfffe3912, 16, 1) { | ||
2716 | PJ15_IN, PJ15_OUT, | ||
2717 | PJ14_IN, PJ14_OUT, | ||
2718 | PJ13_IN, PJ13_OUT, | ||
2719 | PJ12_IN, PJ12_OUT, | ||
2720 | PJ11_IN, PJ11_OUT, | ||
2721 | PJ10_IN, PJ10_OUT, | ||
2722 | PJ9_IN, PJ9_OUT, | ||
2723 | PJ8_IN, PJ8_OUT, | ||
2724 | PJ7_IN, PJ7_OUT, | ||
2725 | PJ6_IN, PJ6_OUT, | ||
2726 | PJ5_IN, PJ5_OUT, | ||
2727 | PJ4_IN, PJ4_OUT, | ||
2728 | PJ3_IN, PJ3_OUT, | ||
2729 | PJ2_IN, PJ2_OUT, | ||
2730 | PJ1_IN, PJ1_OUT, | ||
2731 | PJ0_IN, PJ0_OUT } | ||
2732 | }, | ||
2733 | |||
2734 | {} | ||
2735 | }; | ||
2736 | |||
2737 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2738 | { PINMUX_DATA_REG("PADR0", 0xfffe3816, 16) { | ||
2739 | 0, 0, 0, 0, 0, 0, 0, PA1_DATA, | ||
2740 | 0, 0, 0, 0, 0, 0, 0, PA0_DATA } | ||
2741 | }, | ||
2742 | |||
2743 | { PINMUX_DATA_REG("PBDR1", 0xfffe3834, 16) { | ||
2744 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2745 | 0, PB22_DATA, PB21_DATA, PB20_DATA, | ||
2746 | PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA } | ||
2747 | }, | ||
2748 | { PINMUX_DATA_REG("PBDR0", 0xfffe3836, 16) { | ||
2749 | PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA, | ||
2750 | PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA, | ||
2751 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
2752 | PB3_DATA, PB2_DATA, PB1_DATA, 0 } | ||
2753 | }, | ||
2754 | |||
2755 | { PINMUX_DATA_REG("PCDR0", 0xfffe3856, 16) { | ||
2756 | 0, 0, 0, 0, | ||
2757 | 0, 0, 0, PC8_DATA, | ||
2758 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
2759 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
2760 | }, | ||
2761 | |||
2762 | { PINMUX_DATA_REG("PDDR0", 0xfffe3876, 16) { | ||
2763 | PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA, | ||
2764 | PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA, | ||
2765 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
2766 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
2767 | }, | ||
2768 | |||
2769 | { PINMUX_DATA_REG("PEDR0", 0xfffe3896, 16) { | ||
2770 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2771 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
2772 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA } | ||
2773 | }, | ||
2774 | |||
2775 | { PINMUX_DATA_REG("PFDR1", 0xfffe38b4, 16) { | ||
2776 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2777 | PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA, | ||
2778 | PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA } | ||
2779 | }, | ||
2780 | { PINMUX_DATA_REG("PFDR0", 0xfffe38b6, 16) { | ||
2781 | PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA, | ||
2782 | PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA, | ||
2783 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
2784 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
2785 | }, | ||
2786 | |||
2787 | { PINMUX_DATA_REG("PGDR1", 0xfffe38d4, 16) { | ||
2788 | 0, 0, 0, 0, | ||
2789 | PG27_DATA, PG26_DATA, PG25_DATA, PG24_DATA, | ||
2790 | PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA, | ||
2791 | PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA } | ||
2792 | }, | ||
2793 | { PINMUX_DATA_REG("PGDR0", 0xfffe38d6, 16) { | ||
2794 | PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA, | ||
2795 | PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA, | ||
2796 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
2797 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA } | ||
2798 | }, | ||
2799 | |||
2800 | { PINMUX_DATA_REG("PJDR1", 0xfffe3914, 16) { | ||
2801 | PJ31_DATA, PJ30_DATA, PJ29_DATA, PJ28_DATA, | ||
2802 | PJ27_DATA, PJ26_DATA, PJ25_DATA, PJ24_DATA, | ||
2803 | PJ23_DATA, PJ22_DATA, PJ21_DATA, PJ20_DATA, | ||
2804 | PJ19_DATA, PJ18_DATA, PJ17_DATA, PJ16_DATA } | ||
2805 | }, | ||
2806 | { PINMUX_DATA_REG("PJDR0", 0xfffe3916, 16) { | ||
2807 | PJ15_DATA, PJ14_DATA, PJ13_DATA, PJ12_DATA, | ||
2808 | PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA, | ||
2809 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
2810 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA } | ||
2811 | }, | ||
2812 | |||
2813 | { } | ||
2814 | }; | ||
2815 | |||
2816 | struct sh_pfc_soc_info sh7269_pinmux_info = { | ||
2817 | .name = "sh7269_pfc", | ||
2818 | .reserved_id = PINMUX_RESERVED, | ||
2819 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2820 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN }, | ||
2821 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT }, | ||
2822 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2823 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2824 | |||
2825 | .first_gpio = GPIO_PA1, | ||
2826 | .last_gpio = GPIO_FN_LCD_M_DISP, | ||
2827 | |||
2828 | .gpios = pinmux_gpios, | ||
2829 | .cfg_regs = pinmux_config_regs, | ||
2830 | .data_regs = pinmux_data_regs, | ||
2831 | |||
2832 | .gpio_data = pinmux_data, | ||
2833 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2834 | }; | ||
diff --git a/arch/arm/mach-shmobile/pfc-sh7372.c b/drivers/pinctrl/sh-pfc/pfc-sh7372.c index 7a1525fd6ada..d44e7f02069b 100644 --- a/arch/arm/mach-shmobile/pfc-sh7372.c +++ b/drivers/pinctrl/sh-pfc/pfc-sh7372.c | |||
@@ -20,12 +20,12 @@ | |||
20 | * along with this program; if not, write to the Free Software | 20 | * along with this program; if not, write to the Free Software |
21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
22 | */ | 22 | */ |
23 | #include <linux/init.h> | ||
24 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
25 | #include <linux/sh_pfc.h> | ||
26 | #include <mach/irqs.h> | 24 | #include <mach/irqs.h> |
27 | #include <mach/sh7372.h> | 25 | #include <mach/sh7372.h> |
28 | 26 | ||
27 | #include "sh_pfc.h" | ||
28 | |||
29 | #define CPU_ALL_PORT(fn, pfx, sfx) \ | 29 | #define CPU_ALL_PORT(fn, pfx, sfx) \ |
30 | PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \ | 30 | PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \ |
31 | PORT_10(fn, pfx##10, sfx), PORT_10(fn, pfx##11, sfx), \ | 31 | PORT_10(fn, pfx##10, sfx), PORT_10(fn, pfx##11, sfx), \ |
@@ -1632,7 +1632,7 @@ static struct pinmux_irq pinmux_irqs[] = { | |||
1632 | PINMUX_IRQ(EXT_IRQ16H(31), PORT138_FN0, PORT184_FN0), | 1632 | PINMUX_IRQ(EXT_IRQ16H(31), PORT138_FN0, PORT184_FN0), |
1633 | }; | 1633 | }; |
1634 | 1634 | ||
1635 | static struct pinmux_info sh7372_pinmux_info = { | 1635 | struct sh_pfc_soc_info sh7372_pinmux_info = { |
1636 | .name = "sh7372_pfc", | 1636 | .name = "sh7372_pfc", |
1637 | .reserved_id = PINMUX_RESERVED, | 1637 | .reserved_id = PINMUX_RESERVED, |
1638 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | 1638 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, |
@@ -1656,8 +1656,3 @@ static struct pinmux_info sh7372_pinmux_info = { | |||
1656 | .gpio_irq = pinmux_irqs, | 1656 | .gpio_irq = pinmux_irqs, |
1657 | .gpio_irq_size = ARRAY_SIZE(pinmux_irqs), | 1657 | .gpio_irq_size = ARRAY_SIZE(pinmux_irqs), |
1658 | }; | 1658 | }; |
1659 | |||
1660 | void sh7372_pinmux_init(void) | ||
1661 | { | ||
1662 | register_pinmux(&sh7372_pinmux_info); | ||
1663 | } | ||
diff --git a/arch/arm/mach-shmobile/pfc-sh73a0.c b/drivers/pinctrl/sh-pfc/pfc-sh73a0.c index b442f9d8c716..709008e94124 100644 --- a/arch/arm/mach-shmobile/pfc-sh73a0.c +++ b/drivers/pinctrl/sh-pfc/pfc-sh73a0.c | |||
@@ -18,12 +18,12 @@ | |||
18 | * along with this program; if not, write to the Free Software | 18 | * along with this program; if not, write to the Free Software |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
20 | */ | 20 | */ |
21 | #include <linux/init.h> | ||
22 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
23 | #include <linux/sh_pfc.h> | ||
24 | #include <mach/sh73a0.h> | 22 | #include <mach/sh73a0.h> |
25 | #include <mach/irqs.h> | 23 | #include <mach/irqs.h> |
26 | 24 | ||
25 | #include "sh_pfc.h" | ||
26 | |||
27 | #define CPU_ALL_PORT(fn, pfx, sfx) \ | 27 | #define CPU_ALL_PORT(fn, pfx, sfx) \ |
28 | PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ | 28 | PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ |
29 | PORT_10(fn, pfx##2, sfx), PORT_10(fn, pfx##3, sfx), \ | 29 | PORT_10(fn, pfx##2, sfx), PORT_10(fn, pfx##3, sfx), \ |
@@ -2772,7 +2772,7 @@ static struct pinmux_irq pinmux_irqs[] = { | |||
2772 | PINMUX_IRQ(EXT_IRQ16L(9), PORT308_FN0), | 2772 | PINMUX_IRQ(EXT_IRQ16L(9), PORT308_FN0), |
2773 | }; | 2773 | }; |
2774 | 2774 | ||
2775 | static struct pinmux_info sh73a0_pinmux_info = { | 2775 | struct sh_pfc_soc_info sh73a0_pinmux_info = { |
2776 | .name = "sh73a0_pfc", | 2776 | .name = "sh73a0_pfc", |
2777 | .reserved_id = PINMUX_RESERVED, | 2777 | .reserved_id = PINMUX_RESERVED, |
2778 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | 2778 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, |
@@ -2796,8 +2796,3 @@ static struct pinmux_info sh73a0_pinmux_info = { | |||
2796 | .gpio_irq = pinmux_irqs, | 2796 | .gpio_irq = pinmux_irqs, |
2797 | .gpio_irq_size = ARRAY_SIZE(pinmux_irqs), | 2797 | .gpio_irq_size = ARRAY_SIZE(pinmux_irqs), |
2798 | }; | 2798 | }; |
2799 | |||
2800 | void sh73a0_pinmux_init(void) | ||
2801 | { | ||
2802 | register_pinmux(&sh73a0_pinmux_info); | ||
2803 | } | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7720.c b/drivers/pinctrl/sh-pfc/pfc-sh7720.c new file mode 100644 index 000000000000..10872ed688a6 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7720.c | |||
@@ -0,0 +1,1236 @@ | |||
1 | /* | ||
2 | * SH7720 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2008 Magnus Damm | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/gpio.h> | ||
13 | #include <cpu/sh7720.h> | ||
14 | |||
15 | #include "sh_pfc.h" | ||
16 | |||
17 | enum { | ||
18 | PINMUX_RESERVED = 0, | ||
19 | |||
20 | PINMUX_DATA_BEGIN, | ||
21 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
22 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
23 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
24 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
25 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
26 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
27 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
28 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
29 | PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
30 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
31 | PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
32 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
33 | PTG6_DATA, PTG5_DATA, PTG4_DATA, | ||
34 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
35 | PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
36 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
37 | PTJ6_DATA, PTJ5_DATA, PTJ4_DATA, | ||
38 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
39 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
40 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, PTL3_DATA, | ||
41 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
42 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
43 | PTP4_DATA, PTP3_DATA, PTP2_DATA, PTP1_DATA, PTP0_DATA, | ||
44 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
45 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
46 | PTS4_DATA, PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
47 | PTT4_DATA, PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
48 | PTU4_DATA, PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
49 | PTV4_DATA, PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
50 | PINMUX_DATA_END, | ||
51 | |||
52 | PINMUX_INPUT_BEGIN, | ||
53 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
54 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
55 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
56 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
57 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
58 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
59 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
60 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
61 | PTE6_IN, PTE5_IN, PTE4_IN, | ||
62 | PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
63 | PTF6_IN, PTF5_IN, PTF4_IN, | ||
64 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
65 | PTG6_IN, PTG5_IN, PTG4_IN, | ||
66 | PTG3_IN, PTG2_IN, PTG1_IN, PTG0_IN, | ||
67 | PTH6_IN, PTH5_IN, PTH4_IN, | ||
68 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
69 | PTJ6_IN, PTJ5_IN, PTJ4_IN, | ||
70 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
71 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
72 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, PTL3_IN, | ||
73 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
74 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
75 | PTP4_IN, PTP3_IN, PTP2_IN, PTP1_IN, PTP0_IN, | ||
76 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
77 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
78 | PTS4_IN, PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
79 | PTT4_IN, PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
80 | PTU4_IN, PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
81 | PTV4_IN, PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
82 | PINMUX_INPUT_END, | ||
83 | |||
84 | PINMUX_INPUT_PULLUP_BEGIN, | ||
85 | PTA7_IN_PU, PTA6_IN_PU, PTA5_IN_PU, PTA4_IN_PU, | ||
86 | PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
87 | PTB7_IN_PU, PTB6_IN_PU, PTB5_IN_PU, PTB4_IN_PU, | ||
88 | PTB3_IN_PU, PTB2_IN_PU, PTB1_IN_PU, PTB0_IN_PU, | ||
89 | PTC7_IN_PU, PTC6_IN_PU, PTC5_IN_PU, PTC4_IN_PU, | ||
90 | PTC3_IN_PU, PTC2_IN_PU, PTC1_IN_PU, PTC0_IN_PU, | ||
91 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
92 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, PTD0_IN_PU, | ||
93 | PTE4_IN_PU, PTE3_IN_PU, PTE2_IN_PU, PTE1_IN_PU, PTE0_IN_PU, | ||
94 | PTF0_IN_PU, | ||
95 | PTG6_IN_PU, PTG5_IN_PU, PTG4_IN_PU, | ||
96 | PTG3_IN_PU, PTG2_IN_PU, PTG1_IN_PU, PTG0_IN_PU, | ||
97 | PTH6_IN_PU, PTH5_IN_PU, PTH4_IN_PU, | ||
98 | PTH3_IN_PU, PTH2_IN_PU, PTH1_IN_PU, PTH0_IN_PU, | ||
99 | PTJ6_IN_PU, PTJ5_IN_PU, PTJ4_IN_PU, | ||
100 | PTJ3_IN_PU, PTJ2_IN_PU, PTJ1_IN_PU, PTJ0_IN_PU, | ||
101 | PTK3_IN_PU, PTK2_IN_PU, PTK1_IN_PU, PTK0_IN_PU, | ||
102 | PTL7_IN_PU, PTL6_IN_PU, PTL5_IN_PU, PTL4_IN_PU, PTL3_IN_PU, | ||
103 | PTM7_IN_PU, PTM6_IN_PU, PTM5_IN_PU, PTM4_IN_PU, | ||
104 | PTM3_IN_PU, PTM2_IN_PU, PTM1_IN_PU, PTM0_IN_PU, | ||
105 | PTP4_IN_PU, PTP3_IN_PU, PTP2_IN_PU, PTP1_IN_PU, PTP0_IN_PU, | ||
106 | PTR7_IN_PU, PTR6_IN_PU, PTR5_IN_PU, PTR4_IN_PU, | ||
107 | PTR3_IN_PU, PTR2_IN_PU, PTR1_IN_PU, PTR0_IN_PU, | ||
108 | PTS4_IN_PU, PTS3_IN_PU, PTS2_IN_PU, PTS1_IN_PU, PTS0_IN_PU, | ||
109 | PTT4_IN_PU, PTT3_IN_PU, PTT2_IN_PU, PTT1_IN_PU, PTT0_IN_PU, | ||
110 | PTU4_IN_PU, PTU3_IN_PU, PTU2_IN_PU, PTU1_IN_PU, PTU0_IN_PU, | ||
111 | PTV4_IN_PU, PTV3_IN_PU, PTV2_IN_PU, PTV1_IN_PU, PTV0_IN_PU, | ||
112 | PINMUX_INPUT_PULLUP_END, | ||
113 | |||
114 | PINMUX_OUTPUT_BEGIN, | ||
115 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
116 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
117 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
118 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
119 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
120 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
121 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
122 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
123 | PTE4_OUT, PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
124 | PTF0_OUT, | ||
125 | PTG6_OUT, PTG5_OUT, PTG4_OUT, | ||
126 | PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
127 | PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
128 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
129 | PTJ6_OUT, PTJ5_OUT, PTJ4_OUT, | ||
130 | PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
131 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
132 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, PTL3_OUT, | ||
133 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
134 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
135 | PTP4_OUT, PTP3_OUT, PTP2_OUT, PTP1_OUT, PTP0_OUT, | ||
136 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
137 | PTR3_OUT, PTR2_OUT, PTR1_OUT, PTR0_OUT, | ||
138 | PTS4_OUT, PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
139 | PTT4_OUT, PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
140 | PTU4_OUT, PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
141 | PTV4_OUT, PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
142 | PINMUX_OUTPUT_END, | ||
143 | |||
144 | PINMUX_FUNCTION_BEGIN, | ||
145 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
146 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
147 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
148 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
149 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
150 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
151 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
152 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
153 | PTE6_FN, PTE5_FN, PTE4_FN, | ||
154 | PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
155 | PTF6_FN, PTF5_FN, PTF4_FN, | ||
156 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
157 | PTG6_FN, PTG5_FN, PTG4_FN, | ||
158 | PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
159 | PTH6_FN, PTH5_FN, PTH4_FN, | ||
160 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
161 | PTJ6_FN, PTJ5_FN, PTJ4_FN, | ||
162 | PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
163 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
164 | PTL7_FN, PTL6_FN, PTL5_FN, PTL4_FN, PTL3_FN, | ||
165 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
166 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
167 | PTP4_FN, PTP3_FN, PTP2_FN, PTP1_FN, PTP0_FN, | ||
168 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
169 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
170 | PTS4_FN, PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
171 | PTT4_FN, PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
172 | PTU4_FN, PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
173 | PTV4_FN, PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
174 | |||
175 | PSELA_1_0_00, PSELA_1_0_01, PSELA_1_0_10, | ||
176 | PSELA_3_2_00, PSELA_3_2_01, PSELA_3_2_10, PSELA_3_2_11, | ||
177 | PSELA_5_4_00, PSELA_5_4_01, PSELA_5_4_10, PSELA_5_4_11, | ||
178 | PSELA_7_6_00, PSELA_7_6_01, PSELA_7_6_10, | ||
179 | PSELA_9_8_00, PSELA_9_8_01, PSELA_9_8_10, | ||
180 | PSELA_11_10_00, PSELA_11_10_01, PSELA_11_10_10, | ||
181 | PSELA_13_12_00, PSELA_13_12_10, | ||
182 | PSELA_15_14_00, PSELA_15_14_10, | ||
183 | PSELB_9_8_00, PSELB_9_8_11, | ||
184 | PSELB_11_10_00, PSELB_11_10_01, PSELB_11_10_10, PSELB_11_10_11, | ||
185 | PSELB_13_12_00, PSELB_13_12_01, PSELB_13_12_10, PSELB_13_12_11, | ||
186 | PSELB_15_14_00, PSELB_15_14_11, | ||
187 | PSELC_9_8_00, PSELC_9_8_10, | ||
188 | PSELC_11_10_00, PSELC_11_10_10, | ||
189 | PSELC_13_12_00, PSELC_13_12_01, PSELC_13_12_10, | ||
190 | PSELC_15_14_00, PSELC_15_14_01, PSELC_15_14_10, | ||
191 | PSELD_1_0_00, PSELD_1_0_10, | ||
192 | PSELD_11_10_00, PSELD_11_10_01, | ||
193 | PSELD_15_14_00, PSELD_15_14_01, PSELD_15_14_10, | ||
194 | PINMUX_FUNCTION_END, | ||
195 | |||
196 | PINMUX_MARK_BEGIN, | ||
197 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, | ||
198 | D27_MARK, D26_MARK, D25_MARK, D24_MARK, | ||
199 | D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
200 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
201 | IOIS16_MARK, RAS_MARK, CAS_MARK, CKE_MARK, | ||
202 | CS5B_CE1A_MARK, CS6B_CE1B_MARK, | ||
203 | A25_MARK, A24_MARK, A23_MARK, A22_MARK, | ||
204 | A21_MARK, A20_MARK, A19_MARK, A0_MARK, | ||
205 | REFOUT_MARK, IRQOUT_MARK, | ||
206 | LCD_DATA15_MARK, LCD_DATA14_MARK, | ||
207 | LCD_DATA13_MARK, LCD_DATA12_MARK, | ||
208 | LCD_DATA11_MARK, LCD_DATA10_MARK, | ||
209 | LCD_DATA9_MARK, LCD_DATA8_MARK, | ||
210 | LCD_DATA7_MARK, LCD_DATA6_MARK, | ||
211 | LCD_DATA5_MARK, LCD_DATA4_MARK, | ||
212 | LCD_DATA3_MARK, LCD_DATA2_MARK, | ||
213 | LCD_DATA1_MARK, LCD_DATA0_MARK, | ||
214 | LCD_M_DISP_MARK, | ||
215 | LCD_CL1_MARK, LCD_CL2_MARK, | ||
216 | LCD_DON_MARK, LCD_FLM_MARK, | ||
217 | LCD_VEPWC_MARK, LCD_VCPWC_MARK, | ||
218 | AFE_RXIN_MARK, AFE_RDET_MARK, | ||
219 | AFE_FS_MARK, AFE_TXOUT_MARK, | ||
220 | AFE_SCLK_MARK, AFE_RLYCNT_MARK, | ||
221 | AFE_HC1_MARK, | ||
222 | IIC_SCL_MARK, IIC_SDA_MARK, | ||
223 | DA1_MARK, DA0_MARK, | ||
224 | AN3_MARK, AN2_MARK, AN1_MARK, AN0_MARK, ADTRG_MARK, | ||
225 | USB1D_RCV_MARK, USB1D_TXSE0_MARK, | ||
226 | USB1D_TXDPLS_MARK, USB1D_DMNS_MARK, | ||
227 | USB1D_DPLS_MARK, USB1D_SPEED_MARK, | ||
228 | USB1D_TXENL_MARK, | ||
229 | USB2_PWR_EN_MARK, USB1_PWR_EN_USBF_UPLUP_MARK, USB1D_SUSPEND_MARK, | ||
230 | IRQ5_MARK, IRQ4_MARK, | ||
231 | IRQ3_IRL3_MARK, IRQ2_IRL2_MARK, | ||
232 | IRQ1_IRL1_MARK, IRQ0_IRL0_MARK, | ||
233 | PCC_REG_MARK, PCC_DRV_MARK, | ||
234 | PCC_BVD2_MARK, PCC_BVD1_MARK, | ||
235 | PCC_CD2_MARK, PCC_CD1_MARK, | ||
236 | PCC_RESET_MARK, PCC_RDY_MARK, | ||
237 | PCC_VS2_MARK, PCC_VS1_MARK, | ||
238 | AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK, | ||
239 | AUDCK_MARK, AUDSYNC_MARK, ASEBRKAK_MARK, TRST_MARK, | ||
240 | TMS_MARK, TDO_MARK, TDI_MARK, TCK_MARK, | ||
241 | DACK1_MARK, DREQ1_MARK, DACK0_MARK, DREQ0_MARK, | ||
242 | TEND1_MARK, TEND0_MARK, | ||
243 | SIOF0_SYNC_MARK, SIOF0_MCLK_MARK, | ||
244 | SIOF0_TXD_MARK, SIOF0_RXD_MARK, | ||
245 | SIOF0_SCK_MARK, | ||
246 | SIOF1_SYNC_MARK, SIOF1_MCLK_MARK, | ||
247 | SIOF1_TXD_MARK, SIOF1_RXD_MARK, | ||
248 | SIOF1_SCK_MARK, | ||
249 | SCIF0_TXD_MARK, SCIF0_RXD_MARK, | ||
250 | SCIF0_RTS_MARK, SCIF0_CTS_MARK, SCIF0_SCK_MARK, | ||
251 | SCIF1_TXD_MARK, SCIF1_RXD_MARK, | ||
252 | SCIF1_RTS_MARK, SCIF1_CTS_MARK, SCIF1_SCK_MARK, | ||
253 | TPU_TO1_MARK, TPU_TO0_MARK, | ||
254 | TPU_TI3B_MARK, TPU_TI3A_MARK, | ||
255 | TPU_TI2B_MARK, TPU_TI2A_MARK, | ||
256 | TPU_TO3_MARK, TPU_TO2_MARK, | ||
257 | SIM_D_MARK, SIM_CLK_MARK, SIM_RST_MARK, | ||
258 | MMC_DAT_MARK, MMC_CMD_MARK, | ||
259 | MMC_CLK_MARK, MMC_VDDON_MARK, | ||
260 | MMC_ODMOD_MARK, | ||
261 | STATUS0_MARK, STATUS1_MARK, | ||
262 | PINMUX_MARK_END, | ||
263 | }; | ||
264 | |||
265 | static pinmux_enum_t pinmux_data[] = { | ||
266 | /* PTA GPIO */ | ||
267 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT, PTA7_IN_PU), | ||
268 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT, PTA6_IN_PU), | ||
269 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT, PTA5_IN_PU), | ||
270 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT, PTA4_IN_PU), | ||
271 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT, PTA3_IN_PU), | ||
272 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT, PTA2_IN_PU), | ||
273 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT, PTA1_IN_PU), | ||
274 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT, PTA0_IN_PU), | ||
275 | |||
276 | /* PTB GPIO */ | ||
277 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT, PTB7_IN_PU), | ||
278 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT, PTB6_IN_PU), | ||
279 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT, PTB5_IN_PU), | ||
280 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT, PTB4_IN_PU), | ||
281 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT, PTB3_IN_PU), | ||
282 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT, PTB2_IN_PU), | ||
283 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT, PTB1_IN_PU), | ||
284 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT, PTB0_IN_PU), | ||
285 | |||
286 | /* PTC GPIO */ | ||
287 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT, PTC7_IN_PU), | ||
288 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT, PTC6_IN_PU), | ||
289 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT, PTC5_IN_PU), | ||
290 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT, PTC4_IN_PU), | ||
291 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT, PTC3_IN_PU), | ||
292 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT, PTC2_IN_PU), | ||
293 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT, PTC1_IN_PU), | ||
294 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT, PTC0_IN_PU), | ||
295 | |||
296 | /* PTD GPIO */ | ||
297 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT, PTD7_IN_PU), | ||
298 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT, PTD6_IN_PU), | ||
299 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT, PTD5_IN_PU), | ||
300 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT, PTD4_IN_PU), | ||
301 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT, PTD3_IN_PU), | ||
302 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT, PTD2_IN_PU), | ||
303 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT, PTD1_IN_PU), | ||
304 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT, PTD0_IN_PU), | ||
305 | |||
306 | /* PTE GPIO */ | ||
307 | PINMUX_DATA(PTE6_DATA, PTE6_IN), | ||
308 | PINMUX_DATA(PTE5_DATA, PTE5_IN), | ||
309 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT, PTE4_IN_PU), | ||
310 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT, PTE3_IN_PU), | ||
311 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT, PTE2_IN_PU), | ||
312 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT, PTE1_IN_PU), | ||
313 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT, PTE0_IN_PU), | ||
314 | |||
315 | /* PTF GPIO */ | ||
316 | PINMUX_DATA(PTF6_DATA, PTF6_IN), | ||
317 | PINMUX_DATA(PTF5_DATA, PTF5_IN), | ||
318 | PINMUX_DATA(PTF4_DATA, PTF4_IN), | ||
319 | PINMUX_DATA(PTF3_DATA, PTF3_IN), | ||
320 | PINMUX_DATA(PTF2_DATA, PTF2_IN), | ||
321 | PINMUX_DATA(PTF1_DATA, PTF1_IN), | ||
322 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT, PTF0_IN_PU), | ||
323 | |||
324 | /* PTG GPIO */ | ||
325 | PINMUX_DATA(PTG6_DATA, PTG6_IN, PTG6_OUT, PTG6_IN_PU), | ||
326 | PINMUX_DATA(PTG5_DATA, PTG5_IN, PTG5_OUT, PTG5_IN_PU), | ||
327 | PINMUX_DATA(PTG4_DATA, PTG4_IN, PTG4_OUT, PTG4_IN_PU), | ||
328 | PINMUX_DATA(PTG3_DATA, PTG3_IN, PTG3_OUT, PTG3_IN_PU), | ||
329 | PINMUX_DATA(PTG2_DATA, PTG2_IN, PTG2_OUT, PTG2_IN_PU), | ||
330 | PINMUX_DATA(PTG1_DATA, PTG1_IN, PTG1_OUT, PTG1_IN_PU), | ||
331 | PINMUX_DATA(PTG0_DATA, PTG0_IN, PTG0_OUT, PTG0_IN_PU), | ||
332 | |||
333 | /* PTH GPIO */ | ||
334 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT, PTH6_IN_PU), | ||
335 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT, PTH5_IN_PU), | ||
336 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT, PTH4_IN_PU), | ||
337 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT, PTH3_IN_PU), | ||
338 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT, PTH2_IN_PU), | ||
339 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT, PTH1_IN_PU), | ||
340 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT, PTH0_IN_PU), | ||
341 | |||
342 | /* PTJ GPIO */ | ||
343 | PINMUX_DATA(PTJ6_DATA, PTJ6_IN, PTJ6_OUT, PTJ6_IN_PU), | ||
344 | PINMUX_DATA(PTJ5_DATA, PTJ5_IN, PTJ5_OUT, PTJ5_IN_PU), | ||
345 | PINMUX_DATA(PTJ4_DATA, PTJ4_IN, PTJ4_OUT, PTJ4_IN_PU), | ||
346 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT, PTJ3_IN_PU), | ||
347 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT, PTJ2_IN_PU), | ||
348 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT, PTJ1_IN_PU), | ||
349 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT, PTJ0_IN_PU), | ||
350 | |||
351 | /* PTK GPIO */ | ||
352 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT, PTK3_IN_PU), | ||
353 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT, PTK2_IN_PU), | ||
354 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT, PTK1_IN_PU), | ||
355 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT, PTK0_IN_PU), | ||
356 | |||
357 | /* PTL GPIO */ | ||
358 | PINMUX_DATA(PTL7_DATA, PTL7_IN, PTL7_OUT, PTL7_IN_PU), | ||
359 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT, PTL6_IN_PU), | ||
360 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT, PTL5_IN_PU), | ||
361 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT, PTL4_IN_PU), | ||
362 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT, PTL3_IN_PU), | ||
363 | |||
364 | /* PTM GPIO */ | ||
365 | PINMUX_DATA(PTM7_DATA, PTM7_IN, PTM7_OUT, PTM7_IN_PU), | ||
366 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT, PTM6_IN_PU), | ||
367 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT, PTM5_IN_PU), | ||
368 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT, PTM4_IN_PU), | ||
369 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT, PTM3_IN_PU), | ||
370 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT, PTM2_IN_PU), | ||
371 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT, PTM1_IN_PU), | ||
372 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT, PTM0_IN_PU), | ||
373 | |||
374 | /* PTP GPIO */ | ||
375 | PINMUX_DATA(PTP4_DATA, PTP4_IN, PTP4_OUT, PTP4_IN_PU), | ||
376 | PINMUX_DATA(PTP3_DATA, PTP3_IN, PTP3_OUT, PTP3_IN_PU), | ||
377 | PINMUX_DATA(PTP2_DATA, PTP2_IN, PTP2_OUT, PTP2_IN_PU), | ||
378 | PINMUX_DATA(PTP1_DATA, PTP1_IN, PTP1_OUT, PTP1_IN_PU), | ||
379 | PINMUX_DATA(PTP0_DATA, PTP0_IN, PTP0_OUT, PTP0_IN_PU), | ||
380 | |||
381 | /* PTR GPIO */ | ||
382 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT, PTR7_IN_PU), | ||
383 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT, PTR6_IN_PU), | ||
384 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT, PTR5_IN_PU), | ||
385 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT, PTR4_IN_PU), | ||
386 | PINMUX_DATA(PTR3_DATA, PTR3_IN, PTR3_OUT, PTR3_IN_PU), | ||
387 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_OUT, PTR2_IN_PU), | ||
388 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT, PTR1_IN_PU), | ||
389 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT, PTR0_IN_PU), | ||
390 | |||
391 | /* PTS GPIO */ | ||
392 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT, PTS4_IN_PU), | ||
393 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT, PTS3_IN_PU), | ||
394 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT, PTS2_IN_PU), | ||
395 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT, PTS1_IN_PU), | ||
396 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT, PTS0_IN_PU), | ||
397 | |||
398 | /* PTT GPIO */ | ||
399 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT, PTT4_IN_PU), | ||
400 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT, PTT3_IN_PU), | ||
401 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT, PTT2_IN_PU), | ||
402 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT, PTT1_IN_PU), | ||
403 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT, PTT0_IN_PU), | ||
404 | |||
405 | /* PTU GPIO */ | ||
406 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT, PTU4_IN_PU), | ||
407 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT, PTU3_IN_PU), | ||
408 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT, PTU2_IN_PU), | ||
409 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT, PTU1_IN_PU), | ||
410 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT, PTU0_IN_PU), | ||
411 | |||
412 | /* PTV GPIO */ | ||
413 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT, PTV4_IN_PU), | ||
414 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT, PTV3_IN_PU), | ||
415 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT, PTV2_IN_PU), | ||
416 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT, PTV1_IN_PU), | ||
417 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT, PTV0_IN_PU), | ||
418 | |||
419 | /* PTA FN */ | ||
420 | PINMUX_DATA(D23_MARK, PTA7_FN), | ||
421 | PINMUX_DATA(D22_MARK, PTA6_FN), | ||
422 | PINMUX_DATA(D21_MARK, PTA5_FN), | ||
423 | PINMUX_DATA(D20_MARK, PTA4_FN), | ||
424 | PINMUX_DATA(D19_MARK, PTA3_FN), | ||
425 | PINMUX_DATA(D18_MARK, PTA2_FN), | ||
426 | PINMUX_DATA(D17_MARK, PTA1_FN), | ||
427 | PINMUX_DATA(D16_MARK, PTA0_FN), | ||
428 | |||
429 | /* PTB FN */ | ||
430 | PINMUX_DATA(D31_MARK, PTB7_FN), | ||
431 | PINMUX_DATA(D30_MARK, PTB6_FN), | ||
432 | PINMUX_DATA(D29_MARK, PTB5_FN), | ||
433 | PINMUX_DATA(D28_MARK, PTB4_FN), | ||
434 | PINMUX_DATA(D27_MARK, PTB3_FN), | ||
435 | PINMUX_DATA(D26_MARK, PTB2_FN), | ||
436 | PINMUX_DATA(D25_MARK, PTB1_FN), | ||
437 | PINMUX_DATA(D24_MARK, PTB0_FN), | ||
438 | |||
439 | /* PTC FN */ | ||
440 | PINMUX_DATA(LCD_DATA7_MARK, PTC7_FN), | ||
441 | PINMUX_DATA(LCD_DATA6_MARK, PTC6_FN), | ||
442 | PINMUX_DATA(LCD_DATA5_MARK, PTC5_FN), | ||
443 | PINMUX_DATA(LCD_DATA4_MARK, PTC4_FN), | ||
444 | PINMUX_DATA(LCD_DATA3_MARK, PTC3_FN), | ||
445 | PINMUX_DATA(LCD_DATA2_MARK, PTC2_FN), | ||
446 | PINMUX_DATA(LCD_DATA1_MARK, PTC1_FN), | ||
447 | PINMUX_DATA(LCD_DATA0_MARK, PTC0_FN), | ||
448 | |||
449 | /* PTD FN */ | ||
450 | PINMUX_DATA(LCD_DATA15_MARK, PTD7_FN), | ||
451 | PINMUX_DATA(LCD_DATA14_MARK, PTD6_FN), | ||
452 | PINMUX_DATA(LCD_DATA13_MARK, PTD5_FN), | ||
453 | PINMUX_DATA(LCD_DATA12_MARK, PTD4_FN), | ||
454 | PINMUX_DATA(LCD_DATA11_MARK, PTD3_FN), | ||
455 | PINMUX_DATA(LCD_DATA10_MARK, PTD2_FN), | ||
456 | PINMUX_DATA(LCD_DATA9_MARK, PTD1_FN), | ||
457 | PINMUX_DATA(LCD_DATA8_MARK, PTD0_FN), | ||
458 | |||
459 | /* PTE FN */ | ||
460 | PINMUX_DATA(IIC_SCL_MARK, PSELB_9_8_00, PTE6_FN), | ||
461 | PINMUX_DATA(AFE_RXIN_MARK, PSELB_9_8_11, PTE6_FN), | ||
462 | PINMUX_DATA(IIC_SDA_MARK, PSELB_9_8_00, PTE5_FN), | ||
463 | PINMUX_DATA(AFE_RDET_MARK, PSELB_9_8_11, PTE5_FN), | ||
464 | PINMUX_DATA(LCD_M_DISP_MARK, PTE4_FN), | ||
465 | PINMUX_DATA(LCD_CL1_MARK, PTE3_FN), | ||
466 | PINMUX_DATA(LCD_CL2_MARK, PTE2_FN), | ||
467 | PINMUX_DATA(LCD_DON_MARK, PTE1_FN), | ||
468 | PINMUX_DATA(LCD_FLM_MARK, PTE0_FN), | ||
469 | |||
470 | /* PTF FN */ | ||
471 | PINMUX_DATA(DA1_MARK, PTF6_FN), | ||
472 | PINMUX_DATA(DA0_MARK, PTF5_FN), | ||
473 | PINMUX_DATA(AN3_MARK, PTF4_FN), | ||
474 | PINMUX_DATA(AN2_MARK, PTF3_FN), | ||
475 | PINMUX_DATA(AN1_MARK, PTF2_FN), | ||
476 | PINMUX_DATA(AN0_MARK, PTF1_FN), | ||
477 | PINMUX_DATA(ADTRG_MARK, PTF0_FN), | ||
478 | |||
479 | /* PTG FN */ | ||
480 | PINMUX_DATA(USB1D_RCV_MARK, PSELA_3_2_00, PTG6_FN), | ||
481 | PINMUX_DATA(AFE_FS_MARK, PSELA_3_2_01, PTG6_FN), | ||
482 | PINMUX_DATA(PCC_REG_MARK, PSELA_3_2_10, PTG6_FN), | ||
483 | PINMUX_DATA(IRQ5_MARK, PSELA_3_2_11, PTG6_FN), | ||
484 | PINMUX_DATA(USB1D_TXSE0_MARK, PSELA_5_4_00, PTG5_FN), | ||
485 | PINMUX_DATA(AFE_TXOUT_MARK, PSELA_5_4_01, PTG5_FN), | ||
486 | PINMUX_DATA(PCC_DRV_MARK, PSELA_5_4_10, PTG5_FN), | ||
487 | PINMUX_DATA(IRQ4_MARK, PSELA_5_4_11, PTG5_FN), | ||
488 | PINMUX_DATA(USB1D_TXDPLS_MARK, PSELA_7_6_00, PTG4_FN), | ||
489 | PINMUX_DATA(AFE_SCLK_MARK, PSELA_7_6_01, PTG4_FN), | ||
490 | PINMUX_DATA(IOIS16_MARK, PSELA_7_6_10, PTG4_FN), | ||
491 | PINMUX_DATA(USB1D_DMNS_MARK, PSELA_9_8_00, PTG3_FN), | ||
492 | PINMUX_DATA(AFE_RLYCNT_MARK, PSELA_9_8_01, PTG3_FN), | ||
493 | PINMUX_DATA(PCC_BVD2_MARK, PSELA_9_8_10, PTG3_FN), | ||
494 | PINMUX_DATA(USB1D_DPLS_MARK, PSELA_11_10_00, PTG2_FN), | ||
495 | PINMUX_DATA(AFE_HC1_MARK, PSELA_11_10_01, PTG2_FN), | ||
496 | PINMUX_DATA(PCC_BVD1_MARK, PSELA_11_10_10, PTG2_FN), | ||
497 | PINMUX_DATA(USB1D_SPEED_MARK, PSELA_13_12_00, PTG1_FN), | ||
498 | PINMUX_DATA(PCC_CD2_MARK, PSELA_13_12_10, PTG1_FN), | ||
499 | PINMUX_DATA(USB1D_TXENL_MARK, PSELA_15_14_00, PTG0_FN), | ||
500 | PINMUX_DATA(PCC_CD1_MARK, PSELA_15_14_10, PTG0_FN), | ||
501 | |||
502 | /* PTH FN */ | ||
503 | PINMUX_DATA(RAS_MARK, PTH6_FN), | ||
504 | PINMUX_DATA(CAS_MARK, PTH5_FN), | ||
505 | PINMUX_DATA(CKE_MARK, PTH4_FN), | ||
506 | PINMUX_DATA(STATUS1_MARK, PTH3_FN), | ||
507 | PINMUX_DATA(STATUS0_MARK, PTH2_FN), | ||
508 | PINMUX_DATA(USB2_PWR_EN_MARK, PTH1_FN), | ||
509 | PINMUX_DATA(USB1_PWR_EN_USBF_UPLUP_MARK, PTH0_FN), | ||
510 | |||
511 | /* PTJ FN */ | ||
512 | PINMUX_DATA(AUDCK_MARK, PTJ6_FN), | ||
513 | PINMUX_DATA(ASEBRKAK_MARK, PTJ5_FN), | ||
514 | PINMUX_DATA(AUDATA3_MARK, PTJ4_FN), | ||
515 | PINMUX_DATA(AUDATA2_MARK, PTJ3_FN), | ||
516 | PINMUX_DATA(AUDATA1_MARK, PTJ2_FN), | ||
517 | PINMUX_DATA(AUDATA0_MARK, PTJ1_FN), | ||
518 | PINMUX_DATA(AUDSYNC_MARK, PTJ0_FN), | ||
519 | |||
520 | /* PTK FN */ | ||
521 | PINMUX_DATA(PCC_RESET_MARK, PTK3_FN), | ||
522 | PINMUX_DATA(PCC_RDY_MARK, PTK2_FN), | ||
523 | PINMUX_DATA(PCC_VS2_MARK, PTK1_FN), | ||
524 | PINMUX_DATA(PCC_VS1_MARK, PTK0_FN), | ||
525 | |||
526 | /* PTL FN */ | ||
527 | PINMUX_DATA(TRST_MARK, PTL7_FN), | ||
528 | PINMUX_DATA(TMS_MARK, PTL6_FN), | ||
529 | PINMUX_DATA(TDO_MARK, PTL5_FN), | ||
530 | PINMUX_DATA(TDI_MARK, PTL4_FN), | ||
531 | PINMUX_DATA(TCK_MARK, PTL3_FN), | ||
532 | |||
533 | /* PTM FN */ | ||
534 | PINMUX_DATA(DREQ1_MARK, PTM7_FN), | ||
535 | PINMUX_DATA(DREQ0_MARK, PTM6_FN), | ||
536 | PINMUX_DATA(DACK1_MARK, PTM5_FN), | ||
537 | PINMUX_DATA(DACK0_MARK, PTM4_FN), | ||
538 | PINMUX_DATA(TEND1_MARK, PTM3_FN), | ||
539 | PINMUX_DATA(TEND0_MARK, PTM2_FN), | ||
540 | PINMUX_DATA(CS5B_CE1A_MARK, PTM1_FN), | ||
541 | PINMUX_DATA(CS6B_CE1B_MARK, PTM0_FN), | ||
542 | |||
543 | /* PTP FN */ | ||
544 | PINMUX_DATA(USB1D_SUSPEND_MARK, PSELA_1_0_00, PTP4_FN), | ||
545 | PINMUX_DATA(REFOUT_MARK, PSELA_1_0_01, PTP4_FN), | ||
546 | PINMUX_DATA(IRQOUT_MARK, PSELA_1_0_10, PTP4_FN), | ||
547 | PINMUX_DATA(IRQ3_IRL3_MARK, PTP3_FN), | ||
548 | PINMUX_DATA(IRQ2_IRL2_MARK, PTP2_FN), | ||
549 | PINMUX_DATA(IRQ1_IRL1_MARK, PTP1_FN), | ||
550 | PINMUX_DATA(IRQ0_IRL0_MARK, PTP0_FN), | ||
551 | |||
552 | /* PTR FN */ | ||
553 | PINMUX_DATA(A25_MARK, PTR7_FN), | ||
554 | PINMUX_DATA(A24_MARK, PTR6_FN), | ||
555 | PINMUX_DATA(A23_MARK, PTR5_FN), | ||
556 | PINMUX_DATA(A22_MARK, PTR4_FN), | ||
557 | PINMUX_DATA(A21_MARK, PTR3_FN), | ||
558 | PINMUX_DATA(A20_MARK, PTR2_FN), | ||
559 | PINMUX_DATA(A19_MARK, PTR1_FN), | ||
560 | PINMUX_DATA(A0_MARK, PTR0_FN), | ||
561 | |||
562 | /* PTS FN */ | ||
563 | PINMUX_DATA(SIOF0_SYNC_MARK, PTS4_FN), | ||
564 | PINMUX_DATA(SIOF0_MCLK_MARK, PTS3_FN), | ||
565 | PINMUX_DATA(SIOF0_TXD_MARK, PTS2_FN), | ||
566 | PINMUX_DATA(SIOF0_RXD_MARK, PTS1_FN), | ||
567 | PINMUX_DATA(SIOF0_SCK_MARK, PTS0_FN), | ||
568 | |||
569 | /* PTT FN */ | ||
570 | PINMUX_DATA(SCIF0_CTS_MARK, PSELB_15_14_00, PTT4_FN), | ||
571 | PINMUX_DATA(TPU_TO1_MARK, PSELB_15_14_11, PTT4_FN), | ||
572 | PINMUX_DATA(SCIF0_RTS_MARK, PSELB_15_14_00, PTT3_FN), | ||
573 | PINMUX_DATA(TPU_TO0_MARK, PSELB_15_14_11, PTT3_FN), | ||
574 | PINMUX_DATA(SCIF0_TXD_MARK, PTT2_FN), | ||
575 | PINMUX_DATA(SCIF0_RXD_MARK, PTT1_FN), | ||
576 | PINMUX_DATA(SCIF0_SCK_MARK, PTT0_FN), | ||
577 | |||
578 | /* PTU FN */ | ||
579 | PINMUX_DATA(SIOF1_SYNC_MARK, PTU4_FN), | ||
580 | PINMUX_DATA(SIOF1_MCLK_MARK, PSELD_11_10_00, PTU3_FN), | ||
581 | PINMUX_DATA(TPU_TI3B_MARK, PSELD_11_10_01, PTU3_FN), | ||
582 | PINMUX_DATA(SIOF1_TXD_MARK, PSELD_15_14_00, PTU2_FN), | ||
583 | PINMUX_DATA(TPU_TI3A_MARK, PSELD_15_14_01, PTU2_FN), | ||
584 | PINMUX_DATA(MMC_DAT_MARK, PSELD_15_14_10, PTU2_FN), | ||
585 | PINMUX_DATA(SIOF1_RXD_MARK, PSELC_13_12_00, PTU1_FN), | ||
586 | PINMUX_DATA(TPU_TI2B_MARK, PSELC_13_12_01, PTU1_FN), | ||
587 | PINMUX_DATA(MMC_CMD_MARK, PSELC_13_12_10, PTU1_FN), | ||
588 | PINMUX_DATA(SIOF1_SCK_MARK, PSELC_15_14_00, PTU0_FN), | ||
589 | PINMUX_DATA(TPU_TI2A_MARK, PSELC_15_14_01, PTU0_FN), | ||
590 | PINMUX_DATA(MMC_CLK_MARK, PSELC_15_14_10, PTU0_FN), | ||
591 | |||
592 | /* PTV FN */ | ||
593 | PINMUX_DATA(SCIF1_CTS_MARK, PSELB_11_10_00, PTV4_FN), | ||
594 | PINMUX_DATA(TPU_TO3_MARK, PSELB_11_10_01, PTV4_FN), | ||
595 | PINMUX_DATA(MMC_VDDON_MARK, PSELB_11_10_10, PTV4_FN), | ||
596 | PINMUX_DATA(LCD_VEPWC_MARK, PSELB_11_10_11, PTV4_FN), | ||
597 | PINMUX_DATA(SCIF1_RTS_MARK, PSELB_13_12_00, PTV3_FN), | ||
598 | PINMUX_DATA(TPU_TO2_MARK, PSELB_13_12_01, PTV3_FN), | ||
599 | PINMUX_DATA(MMC_ODMOD_MARK, PSELB_13_12_10, PTV3_FN), | ||
600 | PINMUX_DATA(LCD_VCPWC_MARK, PSELB_13_12_11, PTV3_FN), | ||
601 | PINMUX_DATA(SCIF1_TXD_MARK, PSELC_9_8_00, PTV2_FN), | ||
602 | PINMUX_DATA(SIM_D_MARK, PSELC_9_8_10, PTV2_FN), | ||
603 | PINMUX_DATA(SCIF1_RXD_MARK, PSELC_11_10_00, PTV1_FN), | ||
604 | PINMUX_DATA(SIM_RST_MARK, PSELC_11_10_10, PTV1_FN), | ||
605 | PINMUX_DATA(SCIF1_SCK_MARK, PSELD_1_0_00, PTV0_FN), | ||
606 | PINMUX_DATA(SIM_CLK_MARK, PSELD_1_0_10, PTV0_FN), | ||
607 | }; | ||
608 | |||
609 | static struct pinmux_gpio pinmux_gpios[] = { | ||
610 | /* PTA */ | ||
611 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
612 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
613 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
614 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
615 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
616 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
617 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
618 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
619 | |||
620 | /* PTB */ | ||
621 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
622 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
623 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
624 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
625 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
626 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
627 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
628 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
629 | |||
630 | /* PTC */ | ||
631 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
632 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
633 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
634 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
635 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
636 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
637 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
638 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
639 | |||
640 | /* PTD */ | ||
641 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
642 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
643 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
644 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
645 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
646 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
647 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
648 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
649 | |||
650 | /* PTE */ | ||
651 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
652 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
653 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
654 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
655 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
656 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
657 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
658 | |||
659 | /* PTF */ | ||
660 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
661 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
662 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
663 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
664 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
665 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
666 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
667 | |||
668 | /* PTG */ | ||
669 | PINMUX_GPIO(GPIO_PTG6, PTG6_DATA), | ||
670 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
671 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
672 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
673 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
674 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
675 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
676 | |||
677 | /* PTH */ | ||
678 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
679 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
680 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
681 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
682 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
683 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
684 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
685 | |||
686 | /* PTJ */ | ||
687 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
688 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
689 | PINMUX_GPIO(GPIO_PTJ4, PTJ4_DATA), | ||
690 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
691 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
692 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
693 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
694 | |||
695 | /* PTK */ | ||
696 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
697 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
698 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
699 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
700 | |||
701 | /* PTL */ | ||
702 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
703 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
704 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
705 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
706 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
707 | |||
708 | /* PTM */ | ||
709 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
710 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
711 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
712 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
713 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
714 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
715 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
716 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
717 | |||
718 | /* PTP */ | ||
719 | PINMUX_GPIO(GPIO_PTP4, PTP4_DATA), | ||
720 | PINMUX_GPIO(GPIO_PTP3, PTP3_DATA), | ||
721 | PINMUX_GPIO(GPIO_PTP2, PTP2_DATA), | ||
722 | PINMUX_GPIO(GPIO_PTP1, PTP1_DATA), | ||
723 | PINMUX_GPIO(GPIO_PTP0, PTP0_DATA), | ||
724 | |||
725 | /* PTR */ | ||
726 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
727 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
728 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
729 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
730 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
731 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
732 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
733 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
734 | |||
735 | /* PTS */ | ||
736 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
737 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
738 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
739 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
740 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
741 | |||
742 | /* PTT */ | ||
743 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
744 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
745 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
746 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
747 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
748 | |||
749 | /* PTU */ | ||
750 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
751 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
752 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
753 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
754 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
755 | |||
756 | /* PTV */ | ||
757 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
758 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
759 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
760 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
761 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
762 | |||
763 | /* BSC */ | ||
764 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
765 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
766 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
767 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
768 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
769 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
770 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
771 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
772 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
773 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
774 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
775 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
776 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
777 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
778 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
779 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
780 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
781 | PINMUX_GPIO(GPIO_FN_RAS, RAS_MARK), | ||
782 | PINMUX_GPIO(GPIO_FN_CAS, CAS_MARK), | ||
783 | PINMUX_GPIO(GPIO_FN_CKE, CKE_MARK), | ||
784 | PINMUX_GPIO(GPIO_FN_CS5B_CE1A, CS5B_CE1A_MARK), | ||
785 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
786 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
787 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
788 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
789 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
790 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
791 | PINMUX_GPIO(GPIO_FN_A20, A20_MARK), | ||
792 | PINMUX_GPIO(GPIO_FN_A19, A19_MARK), | ||
793 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
794 | PINMUX_GPIO(GPIO_FN_REFOUT, REFOUT_MARK), | ||
795 | PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), | ||
796 | |||
797 | /* LCDC */ | ||
798 | PINMUX_GPIO(GPIO_FN_LCD_DATA15, LCD_DATA15_MARK), | ||
799 | PINMUX_GPIO(GPIO_FN_LCD_DATA14, LCD_DATA14_MARK), | ||
800 | PINMUX_GPIO(GPIO_FN_LCD_DATA13, LCD_DATA13_MARK), | ||
801 | PINMUX_GPIO(GPIO_FN_LCD_DATA12, LCD_DATA12_MARK), | ||
802 | PINMUX_GPIO(GPIO_FN_LCD_DATA11, LCD_DATA11_MARK), | ||
803 | PINMUX_GPIO(GPIO_FN_LCD_DATA10, LCD_DATA10_MARK), | ||
804 | PINMUX_GPIO(GPIO_FN_LCD_DATA9, LCD_DATA9_MARK), | ||
805 | PINMUX_GPIO(GPIO_FN_LCD_DATA8, LCD_DATA8_MARK), | ||
806 | PINMUX_GPIO(GPIO_FN_LCD_DATA7, LCD_DATA7_MARK), | ||
807 | PINMUX_GPIO(GPIO_FN_LCD_DATA6, LCD_DATA6_MARK), | ||
808 | PINMUX_GPIO(GPIO_FN_LCD_DATA5, LCD_DATA5_MARK), | ||
809 | PINMUX_GPIO(GPIO_FN_LCD_DATA4, LCD_DATA4_MARK), | ||
810 | PINMUX_GPIO(GPIO_FN_LCD_DATA3, LCD_DATA3_MARK), | ||
811 | PINMUX_GPIO(GPIO_FN_LCD_DATA2, LCD_DATA2_MARK), | ||
812 | PINMUX_GPIO(GPIO_FN_LCD_DATA1, LCD_DATA1_MARK), | ||
813 | PINMUX_GPIO(GPIO_FN_LCD_DATA0, LCD_DATA0_MARK), | ||
814 | PINMUX_GPIO(GPIO_FN_LCD_M_DISP, LCD_M_DISP_MARK), | ||
815 | PINMUX_GPIO(GPIO_FN_LCD_CL1, LCD_CL1_MARK), | ||
816 | PINMUX_GPIO(GPIO_FN_LCD_CL2, LCD_CL2_MARK), | ||
817 | PINMUX_GPIO(GPIO_FN_LCD_DON, LCD_DON_MARK), | ||
818 | PINMUX_GPIO(GPIO_FN_LCD_FLM, LCD_FLM_MARK), | ||
819 | PINMUX_GPIO(GPIO_FN_LCD_VEPWC, LCD_VEPWC_MARK), | ||
820 | PINMUX_GPIO(GPIO_FN_LCD_VCPWC, LCD_VCPWC_MARK), | ||
821 | |||
822 | /* AFEIF */ | ||
823 | PINMUX_GPIO(GPIO_FN_AFE_RXIN, AFE_RXIN_MARK), | ||
824 | PINMUX_GPIO(GPIO_FN_AFE_RDET, AFE_RDET_MARK), | ||
825 | PINMUX_GPIO(GPIO_FN_AFE_FS, AFE_FS_MARK), | ||
826 | PINMUX_GPIO(GPIO_FN_AFE_TXOUT, AFE_TXOUT_MARK), | ||
827 | PINMUX_GPIO(GPIO_FN_AFE_SCLK, AFE_SCLK_MARK), | ||
828 | PINMUX_GPIO(GPIO_FN_AFE_RLYCNT, AFE_RLYCNT_MARK), | ||
829 | PINMUX_GPIO(GPIO_FN_AFE_HC1, AFE_HC1_MARK), | ||
830 | |||
831 | /* IIC */ | ||
832 | PINMUX_GPIO(GPIO_FN_IIC_SCL, IIC_SCL_MARK), | ||
833 | PINMUX_GPIO(GPIO_FN_IIC_SDA, IIC_SDA_MARK), | ||
834 | |||
835 | /* DAC */ | ||
836 | PINMUX_GPIO(GPIO_FN_DA1, DA1_MARK), | ||
837 | PINMUX_GPIO(GPIO_FN_DA0, DA0_MARK), | ||
838 | |||
839 | /* ADC */ | ||
840 | PINMUX_GPIO(GPIO_FN_AN3, AN3_MARK), | ||
841 | PINMUX_GPIO(GPIO_FN_AN2, AN2_MARK), | ||
842 | PINMUX_GPIO(GPIO_FN_AN1, AN1_MARK), | ||
843 | PINMUX_GPIO(GPIO_FN_AN0, AN0_MARK), | ||
844 | PINMUX_GPIO(GPIO_FN_ADTRG, ADTRG_MARK), | ||
845 | |||
846 | /* USB */ | ||
847 | PINMUX_GPIO(GPIO_FN_USB1D_RCV, USB1D_RCV_MARK), | ||
848 | PINMUX_GPIO(GPIO_FN_USB1D_TXSE0, USB1D_TXSE0_MARK), | ||
849 | PINMUX_GPIO(GPIO_FN_USB1D_TXDPLS, USB1D_TXDPLS_MARK), | ||
850 | PINMUX_GPIO(GPIO_FN_USB1D_DMNS, USB1D_DMNS_MARK), | ||
851 | PINMUX_GPIO(GPIO_FN_USB1D_DPLS, USB1D_DPLS_MARK), | ||
852 | PINMUX_GPIO(GPIO_FN_USB1D_SPEED, USB1D_SPEED_MARK), | ||
853 | PINMUX_GPIO(GPIO_FN_USB1D_TXENL, USB1D_TXENL_MARK), | ||
854 | |||
855 | PINMUX_GPIO(GPIO_FN_USB2_PWR_EN, USB2_PWR_EN_MARK), | ||
856 | PINMUX_GPIO(GPIO_FN_USB1_PWR_EN_USBF_UPLUP, | ||
857 | USB1_PWR_EN_USBF_UPLUP_MARK), | ||
858 | PINMUX_GPIO(GPIO_FN_USB1D_SUSPEND, USB1D_SUSPEND_MARK), | ||
859 | |||
860 | /* INTC */ | ||
861 | PINMUX_GPIO(GPIO_FN_IRQ5, IRQ5_MARK), | ||
862 | PINMUX_GPIO(GPIO_FN_IRQ4, IRQ4_MARK), | ||
863 | PINMUX_GPIO(GPIO_FN_IRQ3_IRL3, IRQ3_IRL3_MARK), | ||
864 | PINMUX_GPIO(GPIO_FN_IRQ2_IRL2, IRQ2_IRL2_MARK), | ||
865 | PINMUX_GPIO(GPIO_FN_IRQ1_IRL1, IRQ1_IRL1_MARK), | ||
866 | PINMUX_GPIO(GPIO_FN_IRQ0_IRL0, IRQ0_IRL0_MARK), | ||
867 | |||
868 | /* PCC */ | ||
869 | PINMUX_GPIO(GPIO_FN_PCC_REG, PCC_REG_MARK), | ||
870 | PINMUX_GPIO(GPIO_FN_PCC_DRV, PCC_DRV_MARK), | ||
871 | PINMUX_GPIO(GPIO_FN_PCC_BVD2, PCC_BVD2_MARK), | ||
872 | PINMUX_GPIO(GPIO_FN_PCC_BVD1, PCC_BVD1_MARK), | ||
873 | PINMUX_GPIO(GPIO_FN_PCC_CD2, PCC_CD2_MARK), | ||
874 | PINMUX_GPIO(GPIO_FN_PCC_CD1, PCC_CD1_MARK), | ||
875 | PINMUX_GPIO(GPIO_FN_PCC_RESET, PCC_RESET_MARK), | ||
876 | PINMUX_GPIO(GPIO_FN_PCC_RDY, PCC_RDY_MARK), | ||
877 | PINMUX_GPIO(GPIO_FN_PCC_VS2, PCC_VS2_MARK), | ||
878 | PINMUX_GPIO(GPIO_FN_PCC_VS1, PCC_VS1_MARK), | ||
879 | |||
880 | /* HUDI */ | ||
881 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
882 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
883 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
884 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
885 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
886 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
887 | PINMUX_GPIO(GPIO_FN_ASEBRKAK, ASEBRKAK_MARK), | ||
888 | PINMUX_GPIO(GPIO_FN_TRST, TRST_MARK), | ||
889 | PINMUX_GPIO(GPIO_FN_TMS, TMS_MARK), | ||
890 | PINMUX_GPIO(GPIO_FN_TDO, TDO_MARK), | ||
891 | PINMUX_GPIO(GPIO_FN_TDI, TDI_MARK), | ||
892 | PINMUX_GPIO(GPIO_FN_TCK, TCK_MARK), | ||
893 | |||
894 | /* DMAC */ | ||
895 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
896 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
897 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
898 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
899 | PINMUX_GPIO(GPIO_FN_TEND1, TEND1_MARK), | ||
900 | PINMUX_GPIO(GPIO_FN_TEND0, TEND0_MARK), | ||
901 | |||
902 | /* SIOF0 */ | ||
903 | PINMUX_GPIO(GPIO_FN_SIOF0_SYNC, SIOF0_SYNC_MARK), | ||
904 | PINMUX_GPIO(GPIO_FN_SIOF0_MCLK, SIOF0_MCLK_MARK), | ||
905 | PINMUX_GPIO(GPIO_FN_SIOF0_TXD, SIOF0_TXD_MARK), | ||
906 | PINMUX_GPIO(GPIO_FN_SIOF0_RXD, SIOF0_RXD_MARK), | ||
907 | PINMUX_GPIO(GPIO_FN_SIOF0_SCK, SIOF0_SCK_MARK), | ||
908 | |||
909 | /* SIOF1 */ | ||
910 | PINMUX_GPIO(GPIO_FN_SIOF1_SYNC, SIOF1_SYNC_MARK), | ||
911 | PINMUX_GPIO(GPIO_FN_SIOF1_MCLK, SIOF1_MCLK_MARK), | ||
912 | PINMUX_GPIO(GPIO_FN_SIOF1_TXD, SIOF1_TXD_MARK), | ||
913 | PINMUX_GPIO(GPIO_FN_SIOF1_RXD, SIOF1_RXD_MARK), | ||
914 | PINMUX_GPIO(GPIO_FN_SIOF1_SCK, SIOF1_SCK_MARK), | ||
915 | |||
916 | /* SCIF0 */ | ||
917 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
918 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
919 | PINMUX_GPIO(GPIO_FN_SCIF0_RTS, SCIF0_RTS_MARK), | ||
920 | PINMUX_GPIO(GPIO_FN_SCIF0_CTS, SCIF0_CTS_MARK), | ||
921 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
922 | |||
923 | /* SCIF1 */ | ||
924 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
925 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
926 | PINMUX_GPIO(GPIO_FN_SCIF1_RTS, SCIF1_RTS_MARK), | ||
927 | PINMUX_GPIO(GPIO_FN_SCIF1_CTS, SCIF1_CTS_MARK), | ||
928 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
929 | |||
930 | /* TPU */ | ||
931 | PINMUX_GPIO(GPIO_FN_TPU_TO1, TPU_TO1_MARK), | ||
932 | PINMUX_GPIO(GPIO_FN_TPU_TO0, TPU_TO0_MARK), | ||
933 | PINMUX_GPIO(GPIO_FN_TPU_TI3B, TPU_TI3B_MARK), | ||
934 | PINMUX_GPIO(GPIO_FN_TPU_TI3A, TPU_TI3A_MARK), | ||
935 | PINMUX_GPIO(GPIO_FN_TPU_TI2B, TPU_TI2B_MARK), | ||
936 | PINMUX_GPIO(GPIO_FN_TPU_TI2A, TPU_TI2A_MARK), | ||
937 | PINMUX_GPIO(GPIO_FN_TPU_TO3, TPU_TO3_MARK), | ||
938 | PINMUX_GPIO(GPIO_FN_TPU_TO2, TPU_TO2_MARK), | ||
939 | |||
940 | /* SIM */ | ||
941 | PINMUX_GPIO(GPIO_FN_SIM_D, SIM_D_MARK), | ||
942 | PINMUX_GPIO(GPIO_FN_SIM_CLK, SIM_CLK_MARK), | ||
943 | PINMUX_GPIO(GPIO_FN_SIM_RST, SIM_RST_MARK), | ||
944 | |||
945 | /* MMC */ | ||
946 | PINMUX_GPIO(GPIO_FN_MMC_DAT, MMC_DAT_MARK), | ||
947 | PINMUX_GPIO(GPIO_FN_MMC_CMD, MMC_CMD_MARK), | ||
948 | PINMUX_GPIO(GPIO_FN_MMC_CLK, MMC_CLK_MARK), | ||
949 | PINMUX_GPIO(GPIO_FN_MMC_VDDON, MMC_VDDON_MARK), | ||
950 | PINMUX_GPIO(GPIO_FN_MMC_ODMOD, MMC_ODMOD_MARK), | ||
951 | |||
952 | /* SYSC */ | ||
953 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
954 | PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), | ||
955 | }; | ||
956 | |||
957 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
958 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
959 | PTA7_FN, PTA7_OUT, PTA7_IN_PU, PTA7_IN, | ||
960 | PTA6_FN, PTA6_OUT, PTA6_IN_PU, PTA6_IN, | ||
961 | PTA5_FN, PTA5_OUT, PTA5_IN_PU, PTA5_IN, | ||
962 | PTA4_FN, PTA4_OUT, PTA4_IN_PU, PTA4_IN, | ||
963 | PTA3_FN, PTA3_OUT, PTA3_IN_PU, PTA3_IN, | ||
964 | PTA2_FN, PTA2_OUT, PTA2_IN_PU, PTA2_IN, | ||
965 | PTA1_FN, PTA1_OUT, PTA1_IN_PU, PTA1_IN, | ||
966 | PTA0_FN, PTA0_OUT, PTA0_IN_PU, PTA0_IN } | ||
967 | }, | ||
968 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
969 | PTB7_FN, PTB7_OUT, PTB7_IN_PU, PTB7_IN, | ||
970 | PTB6_FN, PTB6_OUT, PTB6_IN_PU, PTB6_IN, | ||
971 | PTB5_FN, PTB5_OUT, PTB5_IN_PU, PTB5_IN, | ||
972 | PTB4_FN, PTB4_OUT, PTB4_IN_PU, PTB4_IN, | ||
973 | PTB3_FN, PTB3_OUT, PTB3_IN_PU, PTB3_IN, | ||
974 | PTB2_FN, PTB2_OUT, PTB2_IN_PU, PTB2_IN, | ||
975 | PTB1_FN, PTB1_OUT, PTB1_IN_PU, PTB1_IN, | ||
976 | PTB0_FN, PTB0_OUT, PTB0_IN_PU, PTB0_IN } | ||
977 | }, | ||
978 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
979 | PTC7_FN, PTC7_OUT, PTC7_IN_PU, PTC7_IN, | ||
980 | PTC6_FN, PTC6_OUT, PTC6_IN_PU, PTC6_IN, | ||
981 | PTC5_FN, PTC5_OUT, PTC5_IN_PU, PTC5_IN, | ||
982 | PTC4_FN, PTC4_OUT, PTC4_IN_PU, PTC4_IN, | ||
983 | PTC3_FN, PTC3_OUT, PTC3_IN_PU, PTC3_IN, | ||
984 | PTC2_FN, PTC2_OUT, PTC2_IN_PU, PTC2_IN, | ||
985 | PTC1_FN, PTC1_OUT, PTC1_IN_PU, PTC1_IN, | ||
986 | PTC0_FN, PTC0_OUT, PTC0_IN_PU, PTC0_IN } | ||
987 | }, | ||
988 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
989 | PTD7_FN, PTD7_OUT, PTD7_IN_PU, PTD7_IN, | ||
990 | PTD6_FN, PTD6_OUT, PTD6_IN_PU, PTD6_IN, | ||
991 | PTD5_FN, PTD5_OUT, PTD5_IN_PU, PTD5_IN, | ||
992 | PTD4_FN, PTD4_OUT, PTD4_IN_PU, PTD4_IN, | ||
993 | PTD3_FN, PTD3_OUT, PTD3_IN_PU, PTD3_IN, | ||
994 | PTD2_FN, PTD2_OUT, PTD2_IN_PU, PTD2_IN, | ||
995 | PTD1_FN, PTD1_OUT, PTD1_IN_PU, PTD1_IN, | ||
996 | PTD0_FN, PTD0_OUT, PTD0_IN_PU, PTD0_IN } | ||
997 | }, | ||
998 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
999 | 0, 0, 0, 0, | ||
1000 | PTE6_FN, 0, 0, PTE6_IN, | ||
1001 | PTE5_FN, 0, 0, PTE5_IN, | ||
1002 | PTE4_FN, PTE4_OUT, PTE4_IN_PU, PTE4_IN, | ||
1003 | PTE3_FN, PTE3_OUT, PTE3_IN_PU, PTE3_IN, | ||
1004 | PTE2_FN, PTE2_OUT, PTE2_IN_PU, PTE2_IN, | ||
1005 | PTE1_FN, PTE1_OUT, PTE1_IN_PU, PTE1_IN, | ||
1006 | PTE0_FN, PTE0_OUT, PTE0_IN_PU, PTE0_IN } | ||
1007 | }, | ||
1008 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1009 | 0, 0, 0, 0, | ||
1010 | PTF6_FN, 0, 0, PTF6_IN, | ||
1011 | PTF5_FN, 0, 0, PTF5_IN, | ||
1012 | PTF4_FN, 0, 0, PTF4_IN, | ||
1013 | PTF3_FN, 0, 0, PTF3_IN, | ||
1014 | PTF2_FN, 0, 0, PTF2_IN, | ||
1015 | PTF1_FN, 0, 0, PTF1_IN, | ||
1016 | PTF0_FN, 0, 0, PTF0_IN } | ||
1017 | }, | ||
1018 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1019 | 0, 0, 0, 0, | ||
1020 | PTG6_FN, PTG6_OUT, PTG6_IN_PU, PTG6_IN, | ||
1021 | PTG5_FN, PTG5_OUT, PTG5_IN_PU, PTG5_IN, | ||
1022 | PTG4_FN, PTG4_OUT, PTG4_IN_PU, PTG4_IN, | ||
1023 | PTG3_FN, PTG3_OUT, PTG3_IN_PU, PTG3_IN, | ||
1024 | PTG2_FN, PTG2_OUT, PTG2_IN_PU, PTG2_IN, | ||
1025 | PTG1_FN, PTG1_OUT, PTG1_IN_PU, PTG1_IN, | ||
1026 | PTG0_FN, PTG0_OUT, PTG0_IN_PU, PTG0_IN } | ||
1027 | }, | ||
1028 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1029 | 0, 0, 0, 0, | ||
1030 | PTH6_FN, PTH6_OUT, PTH6_IN_PU, PTH6_IN, | ||
1031 | PTH5_FN, PTH5_OUT, PTH5_IN_PU, PTH5_IN, | ||
1032 | PTH4_FN, PTH4_OUT, PTH4_IN_PU, PTH4_IN, | ||
1033 | PTH3_FN, PTH3_OUT, PTH3_IN_PU, PTH3_IN, | ||
1034 | PTH2_FN, PTH2_OUT, PTH2_IN_PU, PTH2_IN, | ||
1035 | PTH1_FN, PTH1_OUT, PTH1_IN_PU, PTH1_IN, | ||
1036 | PTH0_FN, PTH0_OUT, PTH0_IN_PU, PTH0_IN } | ||
1037 | }, | ||
1038 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1039 | 0, 0, 0, 0, | ||
1040 | PTJ6_FN, PTJ6_OUT, PTJ6_IN_PU, PTJ6_IN, | ||
1041 | PTJ5_FN, PTJ5_OUT, PTJ5_IN_PU, PTJ5_IN, | ||
1042 | PTJ4_FN, PTJ4_OUT, PTJ4_IN_PU, PTJ4_IN, | ||
1043 | PTJ3_FN, PTJ3_OUT, PTJ3_IN_PU, PTJ3_IN, | ||
1044 | PTJ2_FN, PTJ2_OUT, PTJ2_IN_PU, PTJ2_IN, | ||
1045 | PTJ1_FN, PTJ1_OUT, PTJ1_IN_PU, PTJ1_IN, | ||
1046 | PTJ0_FN, PTJ0_OUT, PTJ0_IN_PU, PTJ0_IN } | ||
1047 | }, | ||
1048 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1049 | 0, 0, 0, 0, | ||
1050 | 0, 0, 0, 0, | ||
1051 | 0, 0, 0, 0, | ||
1052 | 0, 0, 0, 0, | ||
1053 | PTK3_FN, PTK3_OUT, PTK3_IN_PU, PTK3_IN, | ||
1054 | PTK2_FN, PTK2_OUT, PTK2_IN_PU, PTK2_IN, | ||
1055 | PTK1_FN, PTK1_OUT, PTK1_IN_PU, PTK1_IN, | ||
1056 | PTK0_FN, PTK0_OUT, PTK0_IN_PU, PTK0_IN } | ||
1057 | }, | ||
1058 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1059 | PTL7_FN, PTL7_OUT, PTL7_IN_PU, PTL7_IN, | ||
1060 | PTL6_FN, PTL6_OUT, PTL6_IN_PU, PTL6_IN, | ||
1061 | PTL5_FN, PTL5_OUT, PTL5_IN_PU, PTL5_IN, | ||
1062 | PTL4_FN, PTL4_OUT, PTL4_IN_PU, PTL4_IN, | ||
1063 | PTL3_FN, PTL3_OUT, PTL3_IN_PU, PTL3_IN, | ||
1064 | 0, 0, 0, 0, | ||
1065 | 0, 0, 0, 0, | ||
1066 | 0, 0, 0, 0 } | ||
1067 | }, | ||
1068 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1069 | PTM7_FN, PTM7_OUT, PTM7_IN_PU, PTM7_IN, | ||
1070 | PTM6_FN, PTM6_OUT, PTM6_IN_PU, PTM6_IN, | ||
1071 | PTM5_FN, PTM5_OUT, PTM5_IN_PU, PTM5_IN, | ||
1072 | PTM4_FN, PTM4_OUT, PTM4_IN_PU, PTM4_IN, | ||
1073 | PTM3_FN, PTM3_OUT, PTM3_IN_PU, PTM3_IN, | ||
1074 | PTM2_FN, PTM2_OUT, PTM2_IN_PU, PTM2_IN, | ||
1075 | PTM1_FN, PTM1_OUT, PTM1_IN_PU, PTM1_IN, | ||
1076 | PTM0_FN, PTM0_OUT, PTM0_IN_PU, PTM0_IN } | ||
1077 | }, | ||
1078 | { PINMUX_CFG_REG("PPCR", 0xa4050118, 16, 2) { | ||
1079 | 0, 0, 0, 0, | ||
1080 | 0, 0, 0, 0, | ||
1081 | 0, 0, 0, 0, | ||
1082 | PTP4_FN, PTP4_OUT, PTP4_IN_PU, PTP4_IN, | ||
1083 | PTP3_FN, PTP3_OUT, PTP3_IN_PU, PTP3_IN, | ||
1084 | PTP2_FN, PTP2_OUT, PTP2_IN_PU, PTP2_IN, | ||
1085 | PTP1_FN, PTP1_OUT, PTP1_IN_PU, PTP1_IN, | ||
1086 | PTP0_FN, PTP0_OUT, PTP0_IN_PU, PTP0_IN } | ||
1087 | }, | ||
1088 | { PINMUX_CFG_REG("PRCR", 0xa405011a, 16, 2) { | ||
1089 | PTR7_FN, PTR7_OUT, PTR7_IN_PU, PTR7_IN, | ||
1090 | PTR6_FN, PTR6_OUT, PTR6_IN_PU, PTR6_IN, | ||
1091 | PTR5_FN, PTR5_OUT, PTR5_IN_PU, PTR5_IN, | ||
1092 | PTR4_FN, PTR4_OUT, PTR4_IN_PU, PTR4_IN, | ||
1093 | PTR3_FN, PTR3_OUT, PTR3_IN_PU, PTR3_IN, | ||
1094 | PTR2_FN, PTR2_OUT, PTR2_IN_PU, PTR2_IN, | ||
1095 | PTR1_FN, PTR1_OUT, PTR1_IN_PU, PTR1_IN, | ||
1096 | PTR0_FN, PTR0_OUT, PTR0_IN_PU, PTR0_IN } | ||
1097 | }, | ||
1098 | { PINMUX_CFG_REG("PSCR", 0xa405011c, 16, 2) { | ||
1099 | 0, 0, 0, 0, | ||
1100 | 0, 0, 0, 0, | ||
1101 | 0, 0, 0, 0, | ||
1102 | PTS4_FN, PTS4_OUT, PTS4_IN_PU, PTS4_IN, | ||
1103 | PTS3_FN, PTS3_OUT, PTS3_IN_PU, PTS3_IN, | ||
1104 | PTS2_FN, PTS2_OUT, PTS2_IN_PU, PTS2_IN, | ||
1105 | PTS1_FN, PTS1_OUT, PTS1_IN_PU, PTS1_IN, | ||
1106 | PTS0_FN, PTS0_OUT, PTS0_IN_PU, PTS0_IN } | ||
1107 | }, | ||
1108 | { PINMUX_CFG_REG("PTCR", 0xa405011e, 16, 2) { | ||
1109 | 0, 0, 0, 0, | ||
1110 | 0, 0, 0, 0, | ||
1111 | 0, 0, 0, 0, | ||
1112 | PTT4_FN, PTT4_OUT, PTT4_IN_PU, PTT4_IN, | ||
1113 | PTT3_FN, PTT3_OUT, PTT3_IN_PU, PTT3_IN, | ||
1114 | PTT2_FN, PTT2_OUT, PTT2_IN_PU, PTT2_IN, | ||
1115 | PTT1_FN, PTT1_OUT, PTT1_IN_PU, PTT1_IN, | ||
1116 | PTT0_FN, PTT0_OUT, PTT0_IN_PU, PTT0_IN } | ||
1117 | }, | ||
1118 | { PINMUX_CFG_REG("PUCR", 0xa4050120, 16, 2) { | ||
1119 | 0, 0, 0, 0, | ||
1120 | 0, 0, 0, 0, | ||
1121 | 0, 0, 0, 0, | ||
1122 | PTU4_FN, PTU4_OUT, PTU4_IN_PU, PTU4_IN, | ||
1123 | PTU3_FN, PTU3_OUT, PTU3_IN_PU, PTU3_IN, | ||
1124 | PTU2_FN, PTU2_OUT, PTU2_IN_PU, PTU2_IN, | ||
1125 | PTU1_FN, PTU1_OUT, PTU1_IN_PU, PTU1_IN, | ||
1126 | PTU0_FN, PTU0_OUT, PTU0_IN_PU, PTU0_IN } | ||
1127 | }, | ||
1128 | { PINMUX_CFG_REG("PVCR", 0xa4050122, 16, 2) { | ||
1129 | 0, 0, 0, 0, | ||
1130 | 0, 0, 0, 0, | ||
1131 | 0, 0, 0, 0, | ||
1132 | PTV4_FN, PTV4_OUT, PTV4_IN_PU, PTV4_IN, | ||
1133 | PTV3_FN, PTV3_OUT, PTV3_IN_PU, PTV3_IN, | ||
1134 | PTV2_FN, PTV2_OUT, PTV2_IN_PU, PTV2_IN, | ||
1135 | PTV1_FN, PTV1_OUT, PTV1_IN_PU, PTV1_IN, | ||
1136 | PTV0_FN, PTV0_OUT, PTV0_IN_PU, PTV0_IN } | ||
1137 | }, | ||
1138 | {} | ||
1139 | }; | ||
1140 | |||
1141 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1142 | { PINMUX_DATA_REG("PADR", 0xa4050140, 8) { | ||
1143 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
1144 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
1145 | }, | ||
1146 | { PINMUX_DATA_REG("PBDR", 0xa4050142, 8) { | ||
1147 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
1148 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
1149 | }, | ||
1150 | { PINMUX_DATA_REG("PCDR", 0xa4050144, 8) { | ||
1151 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
1152 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
1153 | }, | ||
1154 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
1155 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
1156 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
1157 | }, | ||
1158 | { PINMUX_DATA_REG("PEDR", 0xa4050148, 8) { | ||
1159 | 0, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
1160 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
1161 | }, | ||
1162 | { PINMUX_DATA_REG("PFDR", 0xa405014a, 8) { | ||
1163 | 0, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
1164 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
1165 | }, | ||
1166 | { PINMUX_DATA_REG("PGDR", 0xa405014c, 8) { | ||
1167 | 0, PTG6_DATA, PTG5_DATA, PTG4_DATA, | ||
1168 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
1169 | }, | ||
1170 | { PINMUX_DATA_REG("PHDR", 0xa405014e, 8) { | ||
1171 | 0, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
1172 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
1173 | }, | ||
1174 | { PINMUX_DATA_REG("PJDR", 0xa4050150, 8) { | ||
1175 | 0, PTJ6_DATA, PTJ5_DATA, PTJ4_DATA, | ||
1176 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
1177 | }, | ||
1178 | { PINMUX_DATA_REG("PKDR", 0xa4050152, 8) { | ||
1179 | 0, 0, 0, 0, | ||
1180 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
1181 | }, | ||
1182 | { PINMUX_DATA_REG("PLDR", 0xa4050154, 8) { | ||
1183 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
1184 | PTL3_DATA, 0, 0, 0 } | ||
1185 | }, | ||
1186 | { PINMUX_DATA_REG("PMDR", 0xa4050156, 8) { | ||
1187 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
1188 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
1189 | }, | ||
1190 | { PINMUX_DATA_REG("PPDR", 0xa4050158, 8) { | ||
1191 | 0, 0, 0, PTP4_DATA, | ||
1192 | PTP3_DATA, PTP2_DATA, PTP1_DATA, PTP0_DATA } | ||
1193 | }, | ||
1194 | { PINMUX_DATA_REG("PRDR", 0xa405015a, 8) { | ||
1195 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
1196 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
1197 | }, | ||
1198 | { PINMUX_DATA_REG("PSDR", 0xa405015c, 8) { | ||
1199 | 0, 0, 0, PTS4_DATA, | ||
1200 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
1201 | }, | ||
1202 | { PINMUX_DATA_REG("PTDR", 0xa405015e, 8) { | ||
1203 | 0, 0, 0, PTT4_DATA, | ||
1204 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
1205 | }, | ||
1206 | { PINMUX_DATA_REG("PUDR", 0xa4050160, 8) { | ||
1207 | 0, 0, 0, PTU4_DATA, | ||
1208 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
1209 | }, | ||
1210 | { PINMUX_DATA_REG("PVDR", 0xa4050162, 8) { | ||
1211 | 0, 0, 0, PTV4_DATA, | ||
1212 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
1213 | }, | ||
1214 | { }, | ||
1215 | }; | ||
1216 | |||
1217 | struct sh_pfc_soc_info sh7720_pinmux_info = { | ||
1218 | .name = "sh7720_pfc", | ||
1219 | .reserved_id = PINMUX_RESERVED, | ||
1220 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1221 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1222 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1223 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1224 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1225 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1226 | |||
1227 | .first_gpio = GPIO_PTA7, | ||
1228 | .last_gpio = GPIO_FN_STATUS1, | ||
1229 | |||
1230 | .gpios = pinmux_gpios, | ||
1231 | .cfg_regs = pinmux_config_regs, | ||
1232 | .data_regs = pinmux_data_regs, | ||
1233 | |||
1234 | .gpio_data = pinmux_data, | ||
1235 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1236 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7722.c b/drivers/pinctrl/sh-pfc/pfc-sh7722.c new file mode 100644 index 000000000000..2de0929315e6 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7722.c | |||
@@ -0,0 +1,1779 @@ | |||
1 | #include <linux/init.h> | ||
2 | #include <linux/kernel.h> | ||
3 | #include <linux/gpio.h> | ||
4 | #include <cpu/sh7722.h> | ||
5 | |||
6 | #include "sh_pfc.h" | ||
7 | |||
8 | enum { | ||
9 | PINMUX_RESERVED = 0, | ||
10 | |||
11 | PINMUX_DATA_BEGIN, | ||
12 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
13 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
14 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
15 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
16 | PTC7_DATA, PTC5_DATA, PTC4_DATA, PTC3_DATA, PTC2_DATA, PTC0_DATA, | ||
17 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
18 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
19 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, PTE1_DATA, PTE0_DATA, | ||
20 | PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
21 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
22 | PTG4_DATA, PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
23 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
24 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
25 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, PTJ1_DATA, PTJ0_DATA, | ||
26 | PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
27 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
28 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
29 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
30 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
31 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
32 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
33 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
34 | PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
35 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
36 | PTR4_DATA, PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
37 | PTS4_DATA, PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
38 | PTT4_DATA, PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
39 | PTU4_DATA, PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
40 | PTV4_DATA, PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
41 | PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
42 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
43 | PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
44 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
45 | PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
46 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
47 | PTZ5_DATA, PTZ4_DATA, PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
48 | PINMUX_DATA_END, | ||
49 | |||
50 | PINMUX_INPUT_BEGIN, | ||
51 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
52 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
53 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
54 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
55 | PTC7_IN, PTC5_IN, PTC4_IN, PTC3_IN, PTC2_IN, PTC0_IN, | ||
56 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, PTD3_IN, PTD2_IN, PTD1_IN, | ||
57 | PTE7_IN, PTE6_IN, PTE5_IN, PTE4_IN, PTE1_IN, PTE0_IN, | ||
58 | PTF6_IN, PTF5_IN, PTF4_IN, PTF3_IN, PTF2_IN, PTF1_IN, | ||
59 | PTH6_IN, PTH5_IN, PTH1_IN, PTH0_IN, | ||
60 | PTJ1_IN, PTJ0_IN, | ||
61 | PTK6_IN, PTK5_IN, PTK4_IN, PTK3_IN, PTK2_IN, PTK0_IN, | ||
62 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, | ||
63 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
64 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
65 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
66 | PTN7_IN, PTN6_IN, PTN5_IN, PTN4_IN, | ||
67 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
68 | PTQ5_IN, PTQ4_IN, PTQ3_IN, PTQ2_IN, PTQ0_IN, | ||
69 | PTR2_IN, | ||
70 | PTS4_IN, PTS2_IN, PTS1_IN, | ||
71 | PTT4_IN, PTT3_IN, PTT2_IN, PTT1_IN, | ||
72 | PTU4_IN, PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
73 | PTV4_IN, PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
74 | PTW6_IN, PTW4_IN, PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
75 | PTX6_IN, PTX5_IN, PTX4_IN, PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
76 | PTY5_IN, PTY4_IN, PTY3_IN, PTY2_IN, PTY0_IN, | ||
77 | PTZ5_IN, PTZ4_IN, PTZ3_IN, PTZ2_IN, PTZ1_IN, | ||
78 | PINMUX_INPUT_END, | ||
79 | |||
80 | PINMUX_INPUT_PULLDOWN_BEGIN, | ||
81 | PTA7_IN_PD, PTA6_IN_PD, PTA5_IN_PD, PTA4_IN_PD, | ||
82 | PTA3_IN_PD, PTA2_IN_PD, PTA1_IN_PD, PTA0_IN_PD, | ||
83 | PTE7_IN_PD, PTE6_IN_PD, PTE5_IN_PD, PTE4_IN_PD, PTE1_IN_PD, PTE0_IN_PD, | ||
84 | PTF6_IN_PD, PTF5_IN_PD, PTF4_IN_PD, PTF3_IN_PD, PTF2_IN_PD, PTF1_IN_PD, | ||
85 | PTH6_IN_PD, PTH5_IN_PD, PTH1_IN_PD, PTH0_IN_PD, | ||
86 | PTK6_IN_PD, PTK5_IN_PD, PTK4_IN_PD, PTK3_IN_PD, PTK2_IN_PD, PTK0_IN_PD, | ||
87 | PTL7_IN_PD, PTL6_IN_PD, PTL5_IN_PD, PTL4_IN_PD, | ||
88 | PTL3_IN_PD, PTL2_IN_PD, PTL1_IN_PD, PTL0_IN_PD, | ||
89 | PTM7_IN_PD, PTM6_IN_PD, PTM5_IN_PD, PTM4_IN_PD, | ||
90 | PTM3_IN_PD, PTM2_IN_PD, PTM1_IN_PD, PTM0_IN_PD, | ||
91 | PTQ5_IN_PD, PTQ4_IN_PD, PTQ3_IN_PD, PTQ2_IN_PD, | ||
92 | PTS4_IN_PD, PTS2_IN_PD, PTS1_IN_PD, | ||
93 | PTT4_IN_PD, PTT3_IN_PD, PTT2_IN_PD, PTT1_IN_PD, | ||
94 | PTU4_IN_PD, PTU3_IN_PD, PTU2_IN_PD, PTU1_IN_PD, PTU0_IN_PD, | ||
95 | PTV4_IN_PD, PTV3_IN_PD, PTV2_IN_PD, PTV1_IN_PD, PTV0_IN_PD, | ||
96 | PTW6_IN_PD, PTW4_IN_PD, PTW3_IN_PD, PTW2_IN_PD, PTW1_IN_PD, PTW0_IN_PD, | ||
97 | PTX6_IN_PD, PTX5_IN_PD, PTX4_IN_PD, | ||
98 | PTX3_IN_PD, PTX2_IN_PD, PTX1_IN_PD, PTX0_IN_PD, | ||
99 | PINMUX_INPUT_PULLDOWN_END, | ||
100 | |||
101 | PINMUX_INPUT_PULLUP_BEGIN, | ||
102 | PTC7_IN_PU, PTC5_IN_PU, | ||
103 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
104 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, | ||
105 | PTJ1_IN_PU, PTJ0_IN_PU, | ||
106 | PTQ0_IN_PU, | ||
107 | PTR2_IN_PU, | ||
108 | PTX6_IN_PU, | ||
109 | PTY5_IN_PU, PTY4_IN_PU, PTY3_IN_PU, PTY2_IN_PU, PTY0_IN_PU, | ||
110 | PTZ5_IN_PU, PTZ4_IN_PU, PTZ3_IN_PU, PTZ2_IN_PU, PTZ1_IN_PU, | ||
111 | PINMUX_INPUT_PULLUP_END, | ||
112 | |||
113 | PINMUX_OUTPUT_BEGIN, | ||
114 | PTA7_OUT, PTA5_OUT, | ||
115 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
116 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
117 | PTC4_OUT, PTC3_OUT, PTC2_OUT, PTC0_OUT, | ||
118 | PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
119 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
120 | PTE7_OUT, PTE6_OUT, PTE5_OUT, PTE4_OUT, PTE1_OUT, PTE0_OUT, | ||
121 | PTF6_OUT, PTF5_OUT, PTF4_OUT, PTF3_OUT, PTF2_OUT, PTF0_OUT, | ||
122 | PTG4_OUT, PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
123 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
124 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
125 | PTJ7_OUT, PTJ6_OUT, PTJ5_OUT, PTJ1_OUT, PTJ0_OUT, | ||
126 | PTK6_OUT, PTK5_OUT, PTK4_OUT, PTK3_OUT, PTK1_OUT, PTK0_OUT, | ||
127 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
128 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
129 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
130 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
131 | PTN7_OUT, PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
132 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, PTQ6_OUT, PTQ5_OUT, PTQ4_OUT, | ||
133 | PTQ3_OUT, PTQ2_OUT, PTQ1_OUT, PTQ0_OUT, | ||
134 | PTR4_OUT, PTR3_OUT, PTR1_OUT, PTR0_OUT, | ||
135 | PTS3_OUT, PTS2_OUT, PTS0_OUT, | ||
136 | PTT4_OUT, PTT3_OUT, PTT2_OUT, PTT0_OUT, | ||
137 | PTU4_OUT, PTU3_OUT, PTU2_OUT, PTU0_OUT, | ||
138 | PTV4_OUT, PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
139 | PTW5_OUT, PTW4_OUT, PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
140 | PTX6_OUT, PTX5_OUT, PTX4_OUT, PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
141 | PTY5_OUT, PTY4_OUT, PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
142 | PINMUX_OUTPUT_END, | ||
143 | |||
144 | PINMUX_MARK_BEGIN, | ||
145 | SCIF0_TXD_MARK, SCIF0_RXD_MARK, | ||
146 | SCIF0_RTS_MARK, SCIF0_CTS_MARK, SCIF0_SCK_MARK, | ||
147 | SCIF1_TXD_MARK, SCIF1_RXD_MARK, | ||
148 | SCIF1_RTS_MARK, SCIF1_CTS_MARK, SCIF1_SCK_MARK, | ||
149 | SCIF2_TXD_MARK, SCIF2_RXD_MARK, | ||
150 | SCIF2_RTS_MARK, SCIF2_CTS_MARK, SCIF2_SCK_MARK, | ||
151 | SIOTXD_MARK, SIORXD_MARK, | ||
152 | SIOD_MARK, SIOSTRB0_MARK, SIOSTRB1_MARK, | ||
153 | SIOSCK_MARK, SIOMCK_MARK, | ||
154 | VIO_D15_MARK, VIO_D14_MARK, VIO_D13_MARK, VIO_D12_MARK, | ||
155 | VIO_D11_MARK, VIO_D10_MARK, VIO_D9_MARK, VIO_D8_MARK, | ||
156 | VIO_D7_MARK, VIO_D6_MARK, VIO_D5_MARK, VIO_D4_MARK, | ||
157 | VIO_D3_MARK, VIO_D2_MARK, VIO_D1_MARK, VIO_D0_MARK, | ||
158 | VIO_CLK_MARK, VIO_VD_MARK, VIO_HD_MARK, VIO_FLD_MARK, | ||
159 | VIO_CKO_MARK, VIO_STEX_MARK, VIO_STEM_MARK, VIO_VD2_MARK, | ||
160 | VIO_HD2_MARK, VIO_CLK2_MARK, | ||
161 | LCDD23_MARK, LCDD22_MARK, LCDD21_MARK, LCDD20_MARK, | ||
162 | LCDD19_MARK, LCDD18_MARK, LCDD17_MARK, LCDD16_MARK, | ||
163 | LCDD15_MARK, LCDD14_MARK, LCDD13_MARK, LCDD12_MARK, | ||
164 | LCDD11_MARK, LCDD10_MARK, LCDD9_MARK, LCDD8_MARK, | ||
165 | LCDD7_MARK, LCDD6_MARK, LCDD5_MARK, LCDD4_MARK, | ||
166 | LCDD3_MARK, LCDD2_MARK, LCDD1_MARK, LCDD0_MARK, | ||
167 | LCDLCLK_MARK, LCDDON_MARK, LCDVCPWC_MARK, LCDVEPWC_MARK, | ||
168 | LCDVSYN_MARK, LCDDCK_MARK, LCDHSYN_MARK, LCDDISP_MARK, | ||
169 | LCDRS_MARK, LCDCS_MARK, LCDWR_MARK, LCDRD_MARK, | ||
170 | LCDDON2_MARK, LCDVCPWC2_MARK, LCDVEPWC2_MARK, LCDVSYN2_MARK, | ||
171 | LCDCS2_MARK, | ||
172 | IOIS16_MARK, A25_MARK, A24_MARK, A23_MARK, A22_MARK, | ||
173 | BS_MARK, CS6B_CE1B_MARK, WAIT_MARK, CS6A_CE2B_MARK, | ||
174 | HPD63_MARK, HPD62_MARK, HPD61_MARK, HPD60_MARK, | ||
175 | HPD59_MARK, HPD58_MARK, HPD57_MARK, HPD56_MARK, | ||
176 | HPD55_MARK, HPD54_MARK, HPD53_MARK, HPD52_MARK, | ||
177 | HPD51_MARK, HPD50_MARK, HPD49_MARK, HPD48_MARK, | ||
178 | HPDQM7_MARK, HPDQM6_MARK, HPDQM5_MARK, HPDQM4_MARK, | ||
179 | IRQ0_MARK, IRQ1_MARK, IRQ2_MARK, IRQ3_MARK, | ||
180 | IRQ4_MARK, IRQ5_MARK, IRQ6_MARK, IRQ7_MARK, | ||
181 | SDHICD_MARK, SDHIWP_MARK, SDHID3_MARK, SDHID2_MARK, | ||
182 | SDHID1_MARK, SDHID0_MARK, SDHICMD_MARK, SDHICLK_MARK, | ||
183 | SIUAOLR_MARK, SIUAOBT_MARK, SIUAISLD_MARK, SIUAILR_MARK, | ||
184 | SIUAIBT_MARK, SIUAOSLD_MARK, SIUMCKA_MARK, SIUFCKA_MARK, | ||
185 | SIUBOLR_MARK, SIUBOBT_MARK, SIUBISLD_MARK, SIUBILR_MARK, | ||
186 | SIUBIBT_MARK, SIUBOSLD_MARK, SIUMCKB_MARK, SIUFCKB_MARK, | ||
187 | AUDSYNC_MARK, AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK, | ||
188 | DACK_MARK, DREQ0_MARK, | ||
189 | DV_CLKI_MARK, DV_CLK_MARK, DV_HSYNC_MARK, DV_VSYNC_MARK, | ||
190 | DV_D15_MARK, DV_D14_MARK, DV_D13_MARK, DV_D12_MARK, | ||
191 | DV_D11_MARK, DV_D10_MARK, DV_D9_MARK, DV_D8_MARK, | ||
192 | DV_D7_MARK, DV_D6_MARK, DV_D5_MARK, DV_D4_MARK, | ||
193 | DV_D3_MARK, DV_D2_MARK, DV_D1_MARK, DV_D0_MARK, | ||
194 | STATUS0_MARK, PDSTATUS_MARK, | ||
195 | SIOF0_MCK_MARK, SIOF0_SCK_MARK, | ||
196 | SIOF0_SYNC_MARK, SIOF0_SS1_MARK, SIOF0_SS2_MARK, | ||
197 | SIOF0_TXD_MARK, SIOF0_RXD_MARK, | ||
198 | SIOF1_MCK_MARK, SIOF1_SCK_MARK, | ||
199 | SIOF1_SYNC_MARK, SIOF1_SS1_MARK, SIOF1_SS2_MARK, | ||
200 | SIOF1_TXD_MARK, SIOF1_RXD_MARK, | ||
201 | SIM_D_MARK, SIM_CLK_MARK, SIM_RST_MARK, | ||
202 | TS_SDAT_MARK, TS_SCK_MARK, TS_SDEN_MARK, TS_SPSYNC_MARK, | ||
203 | IRDA_IN_MARK, IRDA_OUT_MARK, | ||
204 | TPUTO_MARK, | ||
205 | FCE_MARK, NAF7_MARK, NAF6_MARK, NAF5_MARK, NAF4_MARK, | ||
206 | NAF3_MARK, NAF2_MARK, NAF1_MARK, NAF0_MARK, FCDE_MARK, | ||
207 | FOE_MARK, FSC_MARK, FWE_MARK, FRB_MARK, | ||
208 | KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, KEYIN4_MARK, | ||
209 | KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK, | ||
210 | KEYOUT4_IN6_MARK, KEYOUT5_IN5_MARK, | ||
211 | PINMUX_MARK_END, | ||
212 | |||
213 | PINMUX_FUNCTION_BEGIN, | ||
214 | VIO_D7_SCIF1_SCK, VIO_D6_SCIF1_RXD, VIO_D5_SCIF1_TXD, VIO_D4, | ||
215 | VIO_D3, VIO_D2, VIO_D1, VIO_D0_LCDLCLK, | ||
216 | HPD55, HPD54, HPD53, HPD52, HPD51, HPD50, HPD49, HPD48, | ||
217 | IOIS16, HPDQM7, HPDQM6, HPDQM5, HPDQM4, | ||
218 | SDHICD, SDHIWP, SDHID3, IRQ2_SDHID2, SDHID1, SDHID0, SDHICMD, SDHICLK, | ||
219 | A25, A24, A23, A22, IRQ5, IRQ4_BS, | ||
220 | PTF6, SIOSCK_SIUBOBT, SIOSTRB1_SIUBOLR, | ||
221 | SIOSTRB0_SIUBIBT, SIOD_SIUBILR, SIORXD_SIUBISLD, SIOTXD_SIUBOSLD, | ||
222 | AUDSYNC, AUDATA3, AUDATA2, AUDATA1, AUDATA0, | ||
223 | LCDVCPWC_LCDVCPWC2, LCDVSYN2_DACK, LCDVSYN, LCDDISP_LCDRS, | ||
224 | LCDHSYN_LCDCS, LCDDON_LCDDON2, LCDD17_DV_HSYNC, LCDD16_DV_VSYNC, | ||
225 | STATUS0, PDSTATUS, IRQ1, IRQ0, | ||
226 | SIUAILR_SIOF1_SS2, SIUAIBT_SIOF1_SS1, SIUAOLR_SIOF1_SYNC, | ||
227 | SIUAOBT_SIOF1_SCK, SIUAISLD_SIOF1_RXD, SIUAOSLD_SIOF1_TXD, PTK0, | ||
228 | LCDD15_DV_D15, LCDD14_DV_D14, LCDD13_DV_D13, LCDD12_DV_D12, | ||
229 | LCDD11_DV_D11, LCDD10_DV_D10, LCDD9_DV_D9, LCDD8_DV_D8, | ||
230 | LCDD7_DV_D7, LCDD6_DV_D6, LCDD5_DV_D5, LCDD4_DV_D4, | ||
231 | LCDD3_DV_D3, LCDD2_DV_D2, LCDD1_DV_D1, LCDD0_DV_D0, | ||
232 | HPD63, HPD62, HPD61, HPD60, HPD59, HPD58, HPD57, HPD56, | ||
233 | SIOF0_SS2_SIM_RST, SIOF0_SS1_TS_SPSYNC, SIOF0_SYNC_TS_SDEN, | ||
234 | SIOF0_SCK_TS_SCK, PTQ2, PTQ1, PTQ0, | ||
235 | LCDRD, CS6B_CE1B_LCDCS2, WAIT, LCDDCK_LCDWR, LCDVEPWC_LCDVEPWC2, | ||
236 | SCIF0_CTS_SIUAISPD, SCIF0_RTS_SIUAOSPD, | ||
237 | SCIF0_SCK_TPUTO, SCIF0_RXD, SCIF0_TXD, | ||
238 | FOE_VIO_VD2, FWE, FSC, DREQ0, FCDE, | ||
239 | NAF2_VIO_D10, NAF1_VIO_D9, NAF0_VIO_D8, | ||
240 | FRB_VIO_CLK2, FCE_VIO_HD2, | ||
241 | NAF7_VIO_D15, NAF6_VIO_D14, NAF5_VIO_D13, NAF4_VIO_D12, NAF3_VIO_D11, | ||
242 | VIO_FLD_SCIF2_CTS, VIO_CKO_SCIF2_RTS, VIO_STEX_SCIF2_SCK, | ||
243 | VIO_STEM_SCIF2_TXD, VIO_HD_SCIF2_RXD, | ||
244 | VIO_VD_SCIF1_CTS, VIO_CLK_SCIF1_RTS, | ||
245 | CS6A_CE2B, LCDD23, LCDD22, LCDD21, LCDD20, | ||
246 | LCDD19_DV_CLKI, LCDD18_DV_CLK, | ||
247 | KEYOUT5_IN5, KEYOUT4_IN6, KEYOUT3, KEYOUT2, KEYOUT1, KEYOUT0, | ||
248 | KEYIN4_IRQ7, KEYIN3, KEYIN2, KEYIN1, KEYIN0_IRQ6, | ||
249 | |||
250 | PSA15_KEYIN0, PSA15_IRQ6, PSA14_KEYIN4, PSA14_IRQ7, | ||
251 | PSA9_IRQ4, PSA9_BS, PSA4_IRQ2, PSA4_SDHID2, | ||
252 | PSB15_SIOTXD, PSB15_SIUBOSLD, PSB14_SIORXD, PSB14_SIUBISLD, | ||
253 | PSB13_SIOD, PSB13_SIUBILR, PSB12_SIOSTRB0, PSB12_SIUBIBT, | ||
254 | PSB11_SIOSTRB1, PSB11_SIUBOLR, PSB10_SIOSCK, PSB10_SIUBOBT, | ||
255 | PSB9_SIOMCK, PSB9_SIUMCKB, PSB8_SIOF0_MCK, PSB8_IRQ3, | ||
256 | PSB7_SIOF0_TXD, PSB7_IRDA_OUT, PSB6_SIOF0_RXD, PSB6_IRDA_IN, | ||
257 | PSB5_SIOF0_SCK, PSB5_TS_SCK, PSB4_SIOF0_SYNC, PSB4_TS_SDEN, | ||
258 | PSB3_SIOF0_SS1, PSB3_TS_SPSYNC, PSB2_SIOF0_SS2, PSB2_SIM_RST, | ||
259 | PSB1_SIUMCKA, PSB1_SIOF1_MCK, PSB0_SIUAOSLD, PSB0_SIOF1_TXD, | ||
260 | PSC15_SIUAISLD, PSC15_SIOF1_RXD, PSC14_SIUAOBT, PSC14_SIOF1_SCK, | ||
261 | PSC13_SIUAOLR, PSC13_SIOF1_SYNC, PSC12_SIUAIBT, PSC12_SIOF1_SS1, | ||
262 | PSC11_SIUAILR, PSC11_SIOF1_SS2, PSC0_NAF, PSC0_VIO, | ||
263 | PSD13_VIO, PSD13_SCIF2, PSD12_VIO, PSD12_SCIF1, | ||
264 | PSD11_VIO, PSD11_SCIF1, PSD10_VIO_D0, PSD10_LCDLCLK, | ||
265 | PSD9_SIOMCK_SIUMCKB, PSD9_SIUFCKB, PSD8_SCIF0_SCK, PSD8_TPUTO, | ||
266 | PSD7_SCIF0_RTS, PSD7_SIUAOSPD, PSD6_SCIF0_CTS, PSD6_SIUAISPD, | ||
267 | PSD5_CS6B_CE1B, PSD5_LCDCS2, | ||
268 | PSD3_LCDVEPWC_LCDVCPWC, PSD3_LCDVEPWC2_LCDVCPWC2, | ||
269 | PSD2_LCDDON, PSD2_LCDDON2, PSD0_LCDD19_LCDD0, PSD0_DV, | ||
270 | PSE15_SIOF0_MCK_IRQ3, PSE15_SIM_D, | ||
271 | PSE14_SIOF0_TXD_IRDA_OUT, PSE14_SIM_CLK, | ||
272 | PSE13_SIOF0_RXD_IRDA_IN, PSE13_TS_SDAT, PSE12_LCDVSYN2, PSE12_DACK, | ||
273 | PSE11_SIUMCKA_SIOF1_MCK, PSE11_SIUFCKA, | ||
274 | PSE3_FLCTL, PSE3_VIO, PSE2_NAF2, PSE2_VIO_D10, | ||
275 | PSE1_NAF1, PSE1_VIO_D9, PSE0_NAF0, PSE0_VIO_D8, | ||
276 | |||
277 | HIZA14_KEYSC, HIZA14_HIZ, | ||
278 | HIZA10_NAF, HIZA10_HIZ, | ||
279 | HIZA9_VIO, HIZA9_HIZ, | ||
280 | HIZA8_LCDC, HIZA8_HIZ, | ||
281 | HIZA7_LCDC, HIZA7_HIZ, | ||
282 | HIZA6_LCDC, HIZA6_HIZ, | ||
283 | HIZB4_SIUA, HIZB4_HIZ, | ||
284 | HIZB1_VIO, HIZB1_HIZ, | ||
285 | HIZB0_VIO, HIZB0_HIZ, | ||
286 | HIZC15_IRQ7, HIZC15_HIZ, | ||
287 | HIZC14_IRQ6, HIZC14_HIZ, | ||
288 | HIZC13_IRQ5, HIZC13_HIZ, | ||
289 | HIZC12_IRQ4, HIZC12_HIZ, | ||
290 | HIZC11_IRQ3, HIZC11_HIZ, | ||
291 | HIZC10_IRQ2, HIZC10_HIZ, | ||
292 | HIZC9_IRQ1, HIZC9_HIZ, | ||
293 | HIZC8_IRQ0, HIZC8_HIZ, | ||
294 | MSELB9_VIO, MSELB9_VIO2, | ||
295 | MSELB8_RGB, MSELB8_SYS, | ||
296 | PINMUX_FUNCTION_END, | ||
297 | }; | ||
298 | |||
299 | static pinmux_enum_t pinmux_data[] = { | ||
300 | /* PTA */ | ||
301 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_IN_PD, PTA7_OUT), | ||
302 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_IN_PD), | ||
303 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_IN_PD, PTA5_OUT), | ||
304 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_IN_PD), | ||
305 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_IN_PD), | ||
306 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_IN_PD), | ||
307 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_IN_PD), | ||
308 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_IN_PD), | ||
309 | |||
310 | /* PTB */ | ||
311 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT), | ||
312 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT), | ||
313 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT), | ||
314 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT), | ||
315 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT), | ||
316 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT), | ||
317 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT), | ||
318 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT), | ||
319 | |||
320 | /* PTC */ | ||
321 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_IN_PU), | ||
322 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_IN_PU), | ||
323 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT), | ||
324 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT), | ||
325 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT), | ||
326 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT), | ||
327 | |||
328 | /* PTD */ | ||
329 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_IN_PU), | ||
330 | PINMUX_DATA(PTD6_DATA, PTD6_OUT, PTD6_IN, PTD6_IN_PU), | ||
331 | PINMUX_DATA(PTD5_DATA, PTD5_OUT, PTD5_IN, PTD5_IN_PU), | ||
332 | PINMUX_DATA(PTD4_DATA, PTD4_OUT, PTD4_IN, PTD4_IN_PU), | ||
333 | PINMUX_DATA(PTD3_DATA, PTD3_OUT, PTD3_IN, PTD3_IN_PU), | ||
334 | PINMUX_DATA(PTD2_DATA, PTD2_OUT, PTD2_IN, PTD2_IN_PU), | ||
335 | PINMUX_DATA(PTD1_DATA, PTD1_OUT, PTD1_IN, PTD1_IN_PU), | ||
336 | PINMUX_DATA(PTD0_DATA, PTD0_OUT), | ||
337 | |||
338 | /* PTE */ | ||
339 | PINMUX_DATA(PTE7_DATA, PTE7_OUT, PTE7_IN, PTE7_IN_PD), | ||
340 | PINMUX_DATA(PTE6_DATA, PTE6_OUT, PTE6_IN, PTE6_IN_PD), | ||
341 | PINMUX_DATA(PTE5_DATA, PTE5_OUT, PTE5_IN, PTE5_IN_PD), | ||
342 | PINMUX_DATA(PTE4_DATA, PTE4_OUT, PTE4_IN, PTE4_IN_PD), | ||
343 | PINMUX_DATA(PTE1_DATA, PTE1_OUT, PTE1_IN, PTE1_IN_PD), | ||
344 | PINMUX_DATA(PTE0_DATA, PTE0_OUT, PTE0_IN, PTE0_IN_PD), | ||
345 | |||
346 | /* PTF */ | ||
347 | PINMUX_DATA(PTF6_DATA, PTF6_OUT, PTF6_IN, PTF6_IN_PD), | ||
348 | PINMUX_DATA(PTF5_DATA, PTF5_OUT, PTF5_IN, PTF5_IN_PD), | ||
349 | PINMUX_DATA(PTF4_DATA, PTF4_OUT, PTF4_IN, PTF4_IN_PD), | ||
350 | PINMUX_DATA(PTF3_DATA, PTF3_OUT, PTF3_IN, PTF3_IN_PD), | ||
351 | PINMUX_DATA(PTF2_DATA, PTF2_OUT, PTF2_IN, PTF2_IN_PD), | ||
352 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_IN_PD), | ||
353 | PINMUX_DATA(PTF0_DATA, PTF0_OUT), | ||
354 | |||
355 | /* PTG */ | ||
356 | PINMUX_DATA(PTG4_DATA, PTG4_OUT), | ||
357 | PINMUX_DATA(PTG3_DATA, PTG3_OUT), | ||
358 | PINMUX_DATA(PTG2_DATA, PTG2_OUT), | ||
359 | PINMUX_DATA(PTG1_DATA, PTG1_OUT), | ||
360 | PINMUX_DATA(PTG0_DATA, PTG0_OUT), | ||
361 | |||
362 | /* PTH */ | ||
363 | PINMUX_DATA(PTH7_DATA, PTH7_OUT), | ||
364 | PINMUX_DATA(PTH6_DATA, PTH6_OUT, PTH6_IN, PTH6_IN_PD), | ||
365 | PINMUX_DATA(PTH5_DATA, PTH5_OUT, PTH5_IN, PTH5_IN_PD), | ||
366 | PINMUX_DATA(PTH4_DATA, PTH4_OUT), | ||
367 | PINMUX_DATA(PTH3_DATA, PTH3_OUT), | ||
368 | PINMUX_DATA(PTH2_DATA, PTH2_OUT), | ||
369 | PINMUX_DATA(PTH1_DATA, PTH1_OUT, PTH1_IN, PTH1_IN_PD), | ||
370 | PINMUX_DATA(PTH0_DATA, PTH0_OUT, PTH0_IN, PTH0_IN_PD), | ||
371 | |||
372 | /* PTJ */ | ||
373 | PINMUX_DATA(PTJ7_DATA, PTJ7_OUT), | ||
374 | PINMUX_DATA(PTJ6_DATA, PTJ6_OUT), | ||
375 | PINMUX_DATA(PTJ5_DATA, PTJ5_OUT), | ||
376 | PINMUX_DATA(PTJ1_DATA, PTJ1_OUT, PTJ1_IN, PTJ1_IN_PU), | ||
377 | PINMUX_DATA(PTJ0_DATA, PTJ0_OUT, PTJ0_IN, PTJ0_IN_PU), | ||
378 | |||
379 | /* PTK */ | ||
380 | PINMUX_DATA(PTK6_DATA, PTK6_OUT, PTK6_IN, PTK6_IN_PD), | ||
381 | PINMUX_DATA(PTK5_DATA, PTK5_OUT, PTK5_IN, PTK5_IN_PD), | ||
382 | PINMUX_DATA(PTK4_DATA, PTK4_OUT, PTK4_IN, PTK4_IN_PD), | ||
383 | PINMUX_DATA(PTK3_DATA, PTK3_OUT, PTK3_IN, PTK3_IN_PD), | ||
384 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_IN_PD), | ||
385 | PINMUX_DATA(PTK1_DATA, PTK1_OUT), | ||
386 | PINMUX_DATA(PTK0_DATA, PTK0_OUT, PTK0_IN, PTK0_IN_PD), | ||
387 | |||
388 | /* PTL */ | ||
389 | PINMUX_DATA(PTL7_DATA, PTL7_OUT, PTL7_IN, PTL7_IN_PD), | ||
390 | PINMUX_DATA(PTL6_DATA, PTL6_OUT, PTL6_IN, PTL6_IN_PD), | ||
391 | PINMUX_DATA(PTL5_DATA, PTL5_OUT, PTL5_IN, PTL5_IN_PD), | ||
392 | PINMUX_DATA(PTL4_DATA, PTL4_OUT, PTL4_IN, PTL4_IN_PD), | ||
393 | PINMUX_DATA(PTL3_DATA, PTL3_OUT, PTL3_IN, PTL3_IN_PD), | ||
394 | PINMUX_DATA(PTL2_DATA, PTL2_OUT, PTL2_IN, PTL2_IN_PD), | ||
395 | PINMUX_DATA(PTL1_DATA, PTL1_OUT, PTL1_IN, PTL1_IN_PD), | ||
396 | PINMUX_DATA(PTL0_DATA, PTL0_OUT, PTL0_IN, PTL0_IN_PD), | ||
397 | |||
398 | /* PTM */ | ||
399 | PINMUX_DATA(PTM7_DATA, PTM7_OUT, PTM7_IN, PTM7_IN_PD), | ||
400 | PINMUX_DATA(PTM6_DATA, PTM6_OUT, PTM6_IN, PTM6_IN_PD), | ||
401 | PINMUX_DATA(PTM5_DATA, PTM5_OUT, PTM5_IN, PTM5_IN_PD), | ||
402 | PINMUX_DATA(PTM4_DATA, PTM4_OUT, PTM4_IN, PTM4_IN_PD), | ||
403 | PINMUX_DATA(PTM3_DATA, PTM3_OUT, PTM3_IN, PTM3_IN_PD), | ||
404 | PINMUX_DATA(PTM2_DATA, PTM2_OUT, PTM2_IN, PTM2_IN_PD), | ||
405 | PINMUX_DATA(PTM1_DATA, PTM1_OUT, PTM1_IN, PTM1_IN_PD), | ||
406 | PINMUX_DATA(PTM0_DATA, PTM0_OUT, PTM0_IN, PTM0_IN_PD), | ||
407 | |||
408 | /* PTN */ | ||
409 | PINMUX_DATA(PTN7_DATA, PTN7_OUT, PTN7_IN), | ||
410 | PINMUX_DATA(PTN6_DATA, PTN6_OUT, PTN6_IN), | ||
411 | PINMUX_DATA(PTN5_DATA, PTN5_OUT, PTN5_IN), | ||
412 | PINMUX_DATA(PTN4_DATA, PTN4_OUT, PTN4_IN), | ||
413 | PINMUX_DATA(PTN3_DATA, PTN3_OUT, PTN3_IN), | ||
414 | PINMUX_DATA(PTN2_DATA, PTN2_OUT, PTN2_IN), | ||
415 | PINMUX_DATA(PTN1_DATA, PTN1_OUT, PTN1_IN), | ||
416 | PINMUX_DATA(PTN0_DATA, PTN0_OUT, PTN0_IN), | ||
417 | |||
418 | /* PTQ */ | ||
419 | PINMUX_DATA(PTQ6_DATA, PTQ6_OUT), | ||
420 | PINMUX_DATA(PTQ5_DATA, PTQ5_OUT, PTQ5_IN, PTQ5_IN_PD), | ||
421 | PINMUX_DATA(PTQ4_DATA, PTQ4_OUT, PTQ4_IN, PTQ4_IN_PD), | ||
422 | PINMUX_DATA(PTQ3_DATA, PTQ3_OUT, PTQ3_IN, PTQ3_IN_PD), | ||
423 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN, PTQ2_IN_PD), | ||
424 | PINMUX_DATA(PTQ1_DATA, PTQ1_OUT), | ||
425 | PINMUX_DATA(PTQ0_DATA, PTQ0_OUT, PTQ0_IN, PTQ0_IN_PU), | ||
426 | |||
427 | /* PTR */ | ||
428 | PINMUX_DATA(PTR4_DATA, PTR4_OUT), | ||
429 | PINMUX_DATA(PTR3_DATA, PTR3_OUT), | ||
430 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_IN_PU), | ||
431 | PINMUX_DATA(PTR1_DATA, PTR1_OUT), | ||
432 | PINMUX_DATA(PTR0_DATA, PTR0_OUT), | ||
433 | |||
434 | /* PTS */ | ||
435 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_IN_PD), | ||
436 | PINMUX_DATA(PTS3_DATA, PTS3_OUT), | ||
437 | PINMUX_DATA(PTS2_DATA, PTS2_OUT, PTS2_IN, PTS2_IN_PD), | ||
438 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_IN_PD), | ||
439 | PINMUX_DATA(PTS0_DATA, PTS0_OUT), | ||
440 | |||
441 | /* PTT */ | ||
442 | PINMUX_DATA(PTT4_DATA, PTT4_OUT, PTT4_IN, PTT4_IN_PD), | ||
443 | PINMUX_DATA(PTT3_DATA, PTT3_OUT, PTT3_IN, PTT3_IN_PD), | ||
444 | PINMUX_DATA(PTT2_DATA, PTT2_OUT, PTT2_IN, PTT2_IN_PD), | ||
445 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_IN_PD), | ||
446 | PINMUX_DATA(PTT0_DATA, PTT0_OUT), | ||
447 | |||
448 | /* PTU */ | ||
449 | PINMUX_DATA(PTU4_DATA, PTU4_OUT, PTU4_IN, PTU4_IN_PD), | ||
450 | PINMUX_DATA(PTU3_DATA, PTU3_OUT, PTU3_IN, PTU3_IN_PD), | ||
451 | PINMUX_DATA(PTU2_DATA, PTU2_OUT, PTU2_IN, PTU2_IN_PD), | ||
452 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_IN_PD), | ||
453 | PINMUX_DATA(PTU0_DATA, PTU0_OUT, PTU0_IN, PTU0_IN_PD), | ||
454 | |||
455 | /* PTV */ | ||
456 | PINMUX_DATA(PTV4_DATA, PTV4_OUT, PTV4_IN, PTV4_IN_PD), | ||
457 | PINMUX_DATA(PTV3_DATA, PTV3_OUT, PTV3_IN, PTV3_IN_PD), | ||
458 | PINMUX_DATA(PTV2_DATA, PTV2_OUT, PTV2_IN, PTV2_IN_PD), | ||
459 | PINMUX_DATA(PTV1_DATA, PTV1_OUT, PTV1_IN, PTV1_IN_PD), | ||
460 | PINMUX_DATA(PTV0_DATA, PTV0_OUT, PTV0_IN, PTV0_IN_PD), | ||
461 | |||
462 | /* PTW */ | ||
463 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_IN_PD), | ||
464 | PINMUX_DATA(PTW5_DATA, PTW5_OUT), | ||
465 | PINMUX_DATA(PTW4_DATA, PTW4_OUT, PTW4_IN, PTW4_IN_PD), | ||
466 | PINMUX_DATA(PTW3_DATA, PTW3_OUT, PTW3_IN, PTW3_IN_PD), | ||
467 | PINMUX_DATA(PTW2_DATA, PTW2_OUT, PTW2_IN, PTW2_IN_PD), | ||
468 | PINMUX_DATA(PTW1_DATA, PTW1_OUT, PTW1_IN, PTW1_IN_PD), | ||
469 | PINMUX_DATA(PTW0_DATA, PTW0_OUT, PTW0_IN, PTW0_IN_PD), | ||
470 | |||
471 | /* PTX */ | ||
472 | PINMUX_DATA(PTX6_DATA, PTX6_OUT, PTX6_IN, PTX6_IN_PD), | ||
473 | PINMUX_DATA(PTX5_DATA, PTX5_OUT, PTX5_IN, PTX5_IN_PD), | ||
474 | PINMUX_DATA(PTX4_DATA, PTX4_OUT, PTX4_IN, PTX4_IN_PD), | ||
475 | PINMUX_DATA(PTX3_DATA, PTX3_OUT, PTX3_IN, PTX3_IN_PD), | ||
476 | PINMUX_DATA(PTX2_DATA, PTX2_OUT, PTX2_IN, PTX2_IN_PD), | ||
477 | PINMUX_DATA(PTX1_DATA, PTX1_OUT, PTX1_IN, PTX1_IN_PD), | ||
478 | PINMUX_DATA(PTX0_DATA, PTX0_OUT, PTX0_IN, PTX0_IN_PD), | ||
479 | |||
480 | /* PTY */ | ||
481 | PINMUX_DATA(PTY5_DATA, PTY5_OUT, PTY5_IN, PTY5_IN_PU), | ||
482 | PINMUX_DATA(PTY4_DATA, PTY4_OUT, PTY4_IN, PTY4_IN_PU), | ||
483 | PINMUX_DATA(PTY3_DATA, PTY3_OUT, PTY3_IN, PTY3_IN_PU), | ||
484 | PINMUX_DATA(PTY2_DATA, PTY2_OUT, PTY2_IN, PTY2_IN_PU), | ||
485 | PINMUX_DATA(PTY1_DATA, PTY1_OUT), | ||
486 | PINMUX_DATA(PTY0_DATA, PTY0_OUT, PTY0_IN, PTY0_IN_PU), | ||
487 | |||
488 | /* PTZ */ | ||
489 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_IN_PU), | ||
490 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_IN_PU), | ||
491 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_IN_PU), | ||
492 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_IN_PU), | ||
493 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_IN_PU), | ||
494 | |||
495 | /* SCIF0 */ | ||
496 | PINMUX_DATA(SCIF0_TXD_MARK, SCIF0_TXD), | ||
497 | PINMUX_DATA(SCIF0_RXD_MARK, SCIF0_RXD), | ||
498 | PINMUX_DATA(SCIF0_RTS_MARK, PSD7_SCIF0_RTS, SCIF0_RTS_SIUAOSPD), | ||
499 | PINMUX_DATA(SCIF0_CTS_MARK, PSD6_SCIF0_CTS, SCIF0_CTS_SIUAISPD), | ||
500 | PINMUX_DATA(SCIF0_SCK_MARK, PSD8_SCIF0_SCK, SCIF0_SCK_TPUTO), | ||
501 | |||
502 | /* SCIF1 */ | ||
503 | PINMUX_DATA(SCIF1_TXD_MARK, PSD11_SCIF1, VIO_D5_SCIF1_TXD), | ||
504 | PINMUX_DATA(SCIF1_RXD_MARK, PSD11_SCIF1, VIO_D6_SCIF1_RXD), | ||
505 | PINMUX_DATA(SCIF1_RTS_MARK, PSD12_SCIF1, VIO_CLK_SCIF1_RTS), | ||
506 | PINMUX_DATA(SCIF1_CTS_MARK, PSD12_SCIF1, VIO_VD_SCIF1_CTS), | ||
507 | PINMUX_DATA(SCIF1_SCK_MARK, PSD11_SCIF1, VIO_D7_SCIF1_SCK), | ||
508 | |||
509 | /* SCIF2 */ | ||
510 | PINMUX_DATA(SCIF2_TXD_MARK, PSD13_SCIF2, VIO_STEM_SCIF2_TXD), | ||
511 | PINMUX_DATA(SCIF2_RXD_MARK, PSD13_SCIF2, VIO_HD_SCIF2_RXD), | ||
512 | PINMUX_DATA(SCIF2_RTS_MARK, PSD13_SCIF2, VIO_CKO_SCIF2_RTS), | ||
513 | PINMUX_DATA(SCIF2_CTS_MARK, PSD13_SCIF2, VIO_FLD_SCIF2_CTS), | ||
514 | PINMUX_DATA(SCIF2_SCK_MARK, PSD13_SCIF2, VIO_STEX_SCIF2_SCK), | ||
515 | |||
516 | /* SIO */ | ||
517 | PINMUX_DATA(SIOTXD_MARK, PSB15_SIOTXD, SIOTXD_SIUBOSLD), | ||
518 | PINMUX_DATA(SIORXD_MARK, PSB14_SIORXD, SIORXD_SIUBISLD), | ||
519 | PINMUX_DATA(SIOD_MARK, PSB13_SIOD, SIOD_SIUBILR), | ||
520 | PINMUX_DATA(SIOSTRB0_MARK, PSB12_SIOSTRB0, SIOSTRB0_SIUBIBT), | ||
521 | PINMUX_DATA(SIOSTRB1_MARK, PSB11_SIOSTRB1, SIOSTRB1_SIUBOLR), | ||
522 | PINMUX_DATA(SIOSCK_MARK, PSB10_SIOSCK, SIOSCK_SIUBOBT), | ||
523 | PINMUX_DATA(SIOMCK_MARK, PSD9_SIOMCK_SIUMCKB, PSB9_SIOMCK, PTF6), | ||
524 | |||
525 | /* CEU */ | ||
526 | PINMUX_DATA(VIO_D15_MARK, PSC0_VIO, HIZA10_NAF, NAF7_VIO_D15), | ||
527 | PINMUX_DATA(VIO_D14_MARK, PSC0_VIO, HIZA10_NAF, NAF6_VIO_D14), | ||
528 | PINMUX_DATA(VIO_D13_MARK, PSC0_VIO, HIZA10_NAF, NAF5_VIO_D13), | ||
529 | PINMUX_DATA(VIO_D12_MARK, PSC0_VIO, HIZA10_NAF, NAF4_VIO_D12), | ||
530 | PINMUX_DATA(VIO_D11_MARK, PSC0_VIO, HIZA10_NAF, NAF3_VIO_D11), | ||
531 | PINMUX_DATA(VIO_D10_MARK, PSE2_VIO_D10, HIZB0_VIO, NAF2_VIO_D10), | ||
532 | PINMUX_DATA(VIO_D9_MARK, PSE1_VIO_D9, HIZB0_VIO, NAF1_VIO_D9), | ||
533 | PINMUX_DATA(VIO_D8_MARK, PSE0_VIO_D8, HIZB0_VIO, NAF0_VIO_D8), | ||
534 | PINMUX_DATA(VIO_D7_MARK, PSD11_VIO, VIO_D7_SCIF1_SCK), | ||
535 | PINMUX_DATA(VIO_D6_MARK, PSD11_VIO, VIO_D6_SCIF1_RXD), | ||
536 | PINMUX_DATA(VIO_D5_MARK, PSD11_VIO, VIO_D5_SCIF1_TXD), | ||
537 | PINMUX_DATA(VIO_D4_MARK, VIO_D4), | ||
538 | PINMUX_DATA(VIO_D3_MARK, VIO_D3), | ||
539 | PINMUX_DATA(VIO_D2_MARK, VIO_D2), | ||
540 | PINMUX_DATA(VIO_D1_MARK, VIO_D1), | ||
541 | PINMUX_DATA(VIO_D0_MARK, PSD10_VIO_D0, VIO_D0_LCDLCLK), | ||
542 | PINMUX_DATA(VIO_CLK_MARK, PSD12_VIO, MSELB9_VIO, VIO_CLK_SCIF1_RTS), | ||
543 | PINMUX_DATA(VIO_VD_MARK, PSD12_VIO, MSELB9_VIO, VIO_VD_SCIF1_CTS), | ||
544 | PINMUX_DATA(VIO_HD_MARK, PSD13_VIO, MSELB9_VIO, VIO_HD_SCIF2_RXD), | ||
545 | PINMUX_DATA(VIO_FLD_MARK, PSD13_VIO, HIZA9_VIO, VIO_FLD_SCIF2_CTS), | ||
546 | PINMUX_DATA(VIO_CKO_MARK, PSD13_VIO, HIZA9_VIO, VIO_CKO_SCIF2_RTS), | ||
547 | PINMUX_DATA(VIO_STEX_MARK, PSD13_VIO, HIZA9_VIO, VIO_STEX_SCIF2_SCK), | ||
548 | PINMUX_DATA(VIO_STEM_MARK, PSD13_VIO, HIZA9_VIO, VIO_STEM_SCIF2_TXD), | ||
549 | PINMUX_DATA(VIO_VD2_MARK, PSE3_VIO, MSELB9_VIO2, | ||
550 | HIZB0_VIO, FOE_VIO_VD2), | ||
551 | PINMUX_DATA(VIO_HD2_MARK, PSE3_VIO, MSELB9_VIO2, | ||
552 | HIZB1_VIO, FCE_VIO_HD2), | ||
553 | PINMUX_DATA(VIO_CLK2_MARK, PSE3_VIO, MSELB9_VIO2, | ||
554 | HIZB1_VIO, FRB_VIO_CLK2), | ||
555 | |||
556 | /* LCDC */ | ||
557 | PINMUX_DATA(LCDD23_MARK, HIZA8_LCDC, LCDD23), | ||
558 | PINMUX_DATA(LCDD22_MARK, HIZA8_LCDC, LCDD22), | ||
559 | PINMUX_DATA(LCDD21_MARK, HIZA8_LCDC, LCDD21), | ||
560 | PINMUX_DATA(LCDD20_MARK, HIZA8_LCDC, LCDD20), | ||
561 | PINMUX_DATA(LCDD19_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD19_DV_CLKI), | ||
562 | PINMUX_DATA(LCDD18_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD18_DV_CLK), | ||
563 | PINMUX_DATA(LCDD17_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, | ||
564 | LCDD17_DV_HSYNC), | ||
565 | PINMUX_DATA(LCDD16_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, | ||
566 | LCDD16_DV_VSYNC), | ||
567 | PINMUX_DATA(LCDD15_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD15_DV_D15), | ||
568 | PINMUX_DATA(LCDD14_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD14_DV_D14), | ||
569 | PINMUX_DATA(LCDD13_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD13_DV_D13), | ||
570 | PINMUX_DATA(LCDD12_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD12_DV_D12), | ||
571 | PINMUX_DATA(LCDD11_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD11_DV_D11), | ||
572 | PINMUX_DATA(LCDD10_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD10_DV_D10), | ||
573 | PINMUX_DATA(LCDD9_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD9_DV_D9), | ||
574 | PINMUX_DATA(LCDD8_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD8_DV_D8), | ||
575 | PINMUX_DATA(LCDD7_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD7_DV_D7), | ||
576 | PINMUX_DATA(LCDD6_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD6_DV_D6), | ||
577 | PINMUX_DATA(LCDD5_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD5_DV_D5), | ||
578 | PINMUX_DATA(LCDD4_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD4_DV_D4), | ||
579 | PINMUX_DATA(LCDD3_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD3_DV_D3), | ||
580 | PINMUX_DATA(LCDD2_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD2_DV_D2), | ||
581 | PINMUX_DATA(LCDD1_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD1_DV_D1), | ||
582 | PINMUX_DATA(LCDD0_MARK, PSD0_LCDD19_LCDD0, HIZA8_LCDC, LCDD0_DV_D0), | ||
583 | PINMUX_DATA(LCDLCLK_MARK, PSD10_LCDLCLK, VIO_D0_LCDLCLK), | ||
584 | /* Main LCD */ | ||
585 | PINMUX_DATA(LCDDON_MARK, PSD2_LCDDON, HIZA7_LCDC, LCDDON_LCDDON2), | ||
586 | PINMUX_DATA(LCDVCPWC_MARK, PSD3_LCDVEPWC_LCDVCPWC, | ||
587 | HIZA6_LCDC, LCDVCPWC_LCDVCPWC2), | ||
588 | PINMUX_DATA(LCDVEPWC_MARK, PSD3_LCDVEPWC_LCDVCPWC, | ||
589 | HIZA6_LCDC, LCDVEPWC_LCDVEPWC2), | ||
590 | PINMUX_DATA(LCDVSYN_MARK, HIZA7_LCDC, LCDVSYN), | ||
591 | /* Main LCD - RGB Mode */ | ||
592 | PINMUX_DATA(LCDDCK_MARK, MSELB8_RGB, HIZA8_LCDC, LCDDCK_LCDWR), | ||
593 | PINMUX_DATA(LCDHSYN_MARK, MSELB8_RGB, HIZA7_LCDC, LCDHSYN_LCDCS), | ||
594 | PINMUX_DATA(LCDDISP_MARK, MSELB8_RGB, HIZA7_LCDC, LCDDISP_LCDRS), | ||
595 | /* Main LCD - SYS Mode */ | ||
596 | PINMUX_DATA(LCDRS_MARK, MSELB8_SYS, HIZA7_LCDC, LCDDISP_LCDRS), | ||
597 | PINMUX_DATA(LCDCS_MARK, MSELB8_SYS, HIZA7_LCDC, LCDHSYN_LCDCS), | ||
598 | PINMUX_DATA(LCDWR_MARK, MSELB8_SYS, HIZA8_LCDC, LCDDCK_LCDWR), | ||
599 | PINMUX_DATA(LCDRD_MARK, HIZA7_LCDC, LCDRD), | ||
600 | /* Sub LCD - SYS Mode */ | ||
601 | PINMUX_DATA(LCDDON2_MARK, PSD2_LCDDON2, HIZA7_LCDC, LCDDON_LCDDON2), | ||
602 | PINMUX_DATA(LCDVCPWC2_MARK, PSD3_LCDVEPWC2_LCDVCPWC2, | ||
603 | HIZA6_LCDC, LCDVCPWC_LCDVCPWC2), | ||
604 | PINMUX_DATA(LCDVEPWC2_MARK, PSD3_LCDVEPWC2_LCDVCPWC2, | ||
605 | HIZA6_LCDC, LCDVEPWC_LCDVEPWC2), | ||
606 | PINMUX_DATA(LCDVSYN2_MARK, PSE12_LCDVSYN2, HIZA8_LCDC, LCDVSYN2_DACK), | ||
607 | PINMUX_DATA(LCDCS2_MARK, PSD5_LCDCS2, CS6B_CE1B_LCDCS2), | ||
608 | |||
609 | /* BSC */ | ||
610 | PINMUX_DATA(IOIS16_MARK, IOIS16), | ||
611 | PINMUX_DATA(A25_MARK, A25), | ||
612 | PINMUX_DATA(A24_MARK, A24), | ||
613 | PINMUX_DATA(A23_MARK, A23), | ||
614 | PINMUX_DATA(A22_MARK, A22), | ||
615 | PINMUX_DATA(BS_MARK, PSA9_BS, IRQ4_BS), | ||
616 | PINMUX_DATA(CS6B_CE1B_MARK, PSD5_CS6B_CE1B, CS6B_CE1B_LCDCS2), | ||
617 | PINMUX_DATA(WAIT_MARK, WAIT), | ||
618 | PINMUX_DATA(CS6A_CE2B_MARK, CS6A_CE2B), | ||
619 | |||
620 | /* SBSC */ | ||
621 | PINMUX_DATA(HPD63_MARK, HPD63), | ||
622 | PINMUX_DATA(HPD62_MARK, HPD62), | ||
623 | PINMUX_DATA(HPD61_MARK, HPD61), | ||
624 | PINMUX_DATA(HPD60_MARK, HPD60), | ||
625 | PINMUX_DATA(HPD59_MARK, HPD59), | ||
626 | PINMUX_DATA(HPD58_MARK, HPD58), | ||
627 | PINMUX_DATA(HPD57_MARK, HPD57), | ||
628 | PINMUX_DATA(HPD56_MARK, HPD56), | ||
629 | PINMUX_DATA(HPD55_MARK, HPD55), | ||
630 | PINMUX_DATA(HPD54_MARK, HPD54), | ||
631 | PINMUX_DATA(HPD53_MARK, HPD53), | ||
632 | PINMUX_DATA(HPD52_MARK, HPD52), | ||
633 | PINMUX_DATA(HPD51_MARK, HPD51), | ||
634 | PINMUX_DATA(HPD50_MARK, HPD50), | ||
635 | PINMUX_DATA(HPD49_MARK, HPD49), | ||
636 | PINMUX_DATA(HPD48_MARK, HPD48), | ||
637 | PINMUX_DATA(HPDQM7_MARK, HPDQM7), | ||
638 | PINMUX_DATA(HPDQM6_MARK, HPDQM6), | ||
639 | PINMUX_DATA(HPDQM5_MARK, HPDQM5), | ||
640 | PINMUX_DATA(HPDQM4_MARK, HPDQM4), | ||
641 | |||
642 | /* IRQ */ | ||
643 | PINMUX_DATA(IRQ0_MARK, HIZC8_IRQ0, IRQ0), | ||
644 | PINMUX_DATA(IRQ1_MARK, HIZC9_IRQ1, IRQ1), | ||
645 | PINMUX_DATA(IRQ2_MARK, PSA4_IRQ2, HIZC10_IRQ2, IRQ2_SDHID2), | ||
646 | PINMUX_DATA(IRQ3_MARK, PSE15_SIOF0_MCK_IRQ3, PSB8_IRQ3, | ||
647 | HIZC11_IRQ3, PTQ0), | ||
648 | PINMUX_DATA(IRQ4_MARK, PSA9_IRQ4, HIZC12_IRQ4, IRQ4_BS), | ||
649 | PINMUX_DATA(IRQ5_MARK, HIZC13_IRQ5, IRQ5), | ||
650 | PINMUX_DATA(IRQ6_MARK, PSA15_IRQ6, HIZC14_IRQ6, KEYIN0_IRQ6), | ||
651 | PINMUX_DATA(IRQ7_MARK, PSA14_IRQ7, HIZC15_IRQ7, KEYIN4_IRQ7), | ||
652 | |||
653 | /* SDHI */ | ||
654 | PINMUX_DATA(SDHICD_MARK, SDHICD), | ||
655 | PINMUX_DATA(SDHIWP_MARK, SDHIWP), | ||
656 | PINMUX_DATA(SDHID3_MARK, SDHID3), | ||
657 | PINMUX_DATA(SDHID2_MARK, PSA4_SDHID2, IRQ2_SDHID2), | ||
658 | PINMUX_DATA(SDHID1_MARK, SDHID1), | ||
659 | PINMUX_DATA(SDHID0_MARK, SDHID0), | ||
660 | PINMUX_DATA(SDHICMD_MARK, SDHICMD), | ||
661 | PINMUX_DATA(SDHICLK_MARK, SDHICLK), | ||
662 | |||
663 | /* SIU - Port A */ | ||
664 | PINMUX_DATA(SIUAOLR_MARK, PSC13_SIUAOLR, HIZB4_SIUA, SIUAOLR_SIOF1_SYNC), | ||
665 | PINMUX_DATA(SIUAOBT_MARK, PSC14_SIUAOBT, HIZB4_SIUA, SIUAOBT_SIOF1_SCK), | ||
666 | PINMUX_DATA(SIUAISLD_MARK, PSC15_SIUAISLD, HIZB4_SIUA, SIUAISLD_SIOF1_RXD), | ||
667 | PINMUX_DATA(SIUAILR_MARK, PSC11_SIUAILR, HIZB4_SIUA, SIUAILR_SIOF1_SS2), | ||
668 | PINMUX_DATA(SIUAIBT_MARK, PSC12_SIUAIBT, HIZB4_SIUA, SIUAIBT_SIOF1_SS1), | ||
669 | PINMUX_DATA(SIUAOSLD_MARK, PSB0_SIUAOSLD, HIZB4_SIUA, SIUAOSLD_SIOF1_TXD), | ||
670 | PINMUX_DATA(SIUMCKA_MARK, PSE11_SIUMCKA_SIOF1_MCK, HIZB4_SIUA, PSB1_SIUMCKA, PTK0), | ||
671 | PINMUX_DATA(SIUFCKA_MARK, PSE11_SIUFCKA, HIZB4_SIUA, PTK0), | ||
672 | |||
673 | /* SIU - Port B */ | ||
674 | PINMUX_DATA(SIUBOLR_MARK, PSB11_SIUBOLR, SIOSTRB1_SIUBOLR), | ||
675 | PINMUX_DATA(SIUBOBT_MARK, PSB10_SIUBOBT, SIOSCK_SIUBOBT), | ||
676 | PINMUX_DATA(SIUBISLD_MARK, PSB14_SIUBISLD, SIORXD_SIUBISLD), | ||
677 | PINMUX_DATA(SIUBILR_MARK, PSB13_SIUBILR, SIOD_SIUBILR), | ||
678 | PINMUX_DATA(SIUBIBT_MARK, PSB12_SIUBIBT, SIOSTRB0_SIUBIBT), | ||
679 | PINMUX_DATA(SIUBOSLD_MARK, PSB15_SIUBOSLD, SIOTXD_SIUBOSLD), | ||
680 | PINMUX_DATA(SIUMCKB_MARK, PSD9_SIOMCK_SIUMCKB, PSB9_SIUMCKB, PTF6), | ||
681 | PINMUX_DATA(SIUFCKB_MARK, PSD9_SIUFCKB, PTF6), | ||
682 | |||
683 | /* AUD */ | ||
684 | PINMUX_DATA(AUDSYNC_MARK, AUDSYNC), | ||
685 | PINMUX_DATA(AUDATA3_MARK, AUDATA3), | ||
686 | PINMUX_DATA(AUDATA2_MARK, AUDATA2), | ||
687 | PINMUX_DATA(AUDATA1_MARK, AUDATA1), | ||
688 | PINMUX_DATA(AUDATA0_MARK, AUDATA0), | ||
689 | |||
690 | /* DMAC */ | ||
691 | PINMUX_DATA(DACK_MARK, PSE12_DACK, LCDVSYN2_DACK), | ||
692 | PINMUX_DATA(DREQ0_MARK, DREQ0), | ||
693 | |||
694 | /* VOU */ | ||
695 | PINMUX_DATA(DV_CLKI_MARK, PSD0_DV, LCDD19_DV_CLKI), | ||
696 | PINMUX_DATA(DV_CLK_MARK, PSD0_DV, LCDD18_DV_CLK), | ||
697 | PINMUX_DATA(DV_HSYNC_MARK, PSD0_DV, LCDD17_DV_HSYNC), | ||
698 | PINMUX_DATA(DV_VSYNC_MARK, PSD0_DV, LCDD16_DV_VSYNC), | ||
699 | PINMUX_DATA(DV_D15_MARK, PSD0_DV, LCDD15_DV_D15), | ||
700 | PINMUX_DATA(DV_D14_MARK, PSD0_DV, LCDD14_DV_D14), | ||
701 | PINMUX_DATA(DV_D13_MARK, PSD0_DV, LCDD13_DV_D13), | ||
702 | PINMUX_DATA(DV_D12_MARK, PSD0_DV, LCDD12_DV_D12), | ||
703 | PINMUX_DATA(DV_D11_MARK, PSD0_DV, LCDD11_DV_D11), | ||
704 | PINMUX_DATA(DV_D10_MARK, PSD0_DV, LCDD10_DV_D10), | ||
705 | PINMUX_DATA(DV_D9_MARK, PSD0_DV, LCDD9_DV_D9), | ||
706 | PINMUX_DATA(DV_D8_MARK, PSD0_DV, LCDD8_DV_D8), | ||
707 | PINMUX_DATA(DV_D7_MARK, PSD0_DV, LCDD7_DV_D7), | ||
708 | PINMUX_DATA(DV_D6_MARK, PSD0_DV, LCDD6_DV_D6), | ||
709 | PINMUX_DATA(DV_D5_MARK, PSD0_DV, LCDD5_DV_D5), | ||
710 | PINMUX_DATA(DV_D4_MARK, PSD0_DV, LCDD4_DV_D4), | ||
711 | PINMUX_DATA(DV_D3_MARK, PSD0_DV, LCDD3_DV_D3), | ||
712 | PINMUX_DATA(DV_D2_MARK, PSD0_DV, LCDD2_DV_D2), | ||
713 | PINMUX_DATA(DV_D1_MARK, PSD0_DV, LCDD1_DV_D1), | ||
714 | PINMUX_DATA(DV_D0_MARK, PSD0_DV, LCDD0_DV_D0), | ||
715 | |||
716 | /* CPG */ | ||
717 | PINMUX_DATA(STATUS0_MARK, STATUS0), | ||
718 | PINMUX_DATA(PDSTATUS_MARK, PDSTATUS), | ||
719 | |||
720 | /* SIOF0 */ | ||
721 | PINMUX_DATA(SIOF0_MCK_MARK, PSE15_SIOF0_MCK_IRQ3, PSB8_SIOF0_MCK, PTQ0), | ||
722 | PINMUX_DATA(SIOF0_SCK_MARK, PSB5_SIOF0_SCK, SIOF0_SCK_TS_SCK), | ||
723 | PINMUX_DATA(SIOF0_SYNC_MARK, PSB4_SIOF0_SYNC, SIOF0_SYNC_TS_SDEN), | ||
724 | PINMUX_DATA(SIOF0_SS1_MARK, PSB3_SIOF0_SS1, SIOF0_SS1_TS_SPSYNC), | ||
725 | PINMUX_DATA(SIOF0_SS2_MARK, PSB2_SIOF0_SS2, SIOF0_SS2_SIM_RST), | ||
726 | PINMUX_DATA(SIOF0_TXD_MARK, PSE14_SIOF0_TXD_IRDA_OUT, | ||
727 | PSB7_SIOF0_TXD, PTQ1), | ||
728 | PINMUX_DATA(SIOF0_RXD_MARK, PSE13_SIOF0_RXD_IRDA_IN, | ||
729 | PSB6_SIOF0_RXD, PTQ2), | ||
730 | |||
731 | /* SIOF1 */ | ||
732 | PINMUX_DATA(SIOF1_MCK_MARK, PSE11_SIUMCKA_SIOF1_MCK, | ||
733 | PSB1_SIOF1_MCK, PTK0), | ||
734 | PINMUX_DATA(SIOF1_SCK_MARK, PSC14_SIOF1_SCK, SIUAOBT_SIOF1_SCK), | ||
735 | PINMUX_DATA(SIOF1_SYNC_MARK, PSC13_SIOF1_SYNC, SIUAOLR_SIOF1_SYNC), | ||
736 | PINMUX_DATA(SIOF1_SS1_MARK, PSC12_SIOF1_SS1, SIUAIBT_SIOF1_SS1), | ||
737 | PINMUX_DATA(SIOF1_SS2_MARK, PSC11_SIOF1_SS2, SIUAILR_SIOF1_SS2), | ||
738 | PINMUX_DATA(SIOF1_TXD_MARK, PSB0_SIOF1_TXD, SIUAOSLD_SIOF1_TXD), | ||
739 | PINMUX_DATA(SIOF1_RXD_MARK, PSC15_SIOF1_RXD, SIUAISLD_SIOF1_RXD), | ||
740 | |||
741 | /* SIM */ | ||
742 | PINMUX_DATA(SIM_D_MARK, PSE15_SIM_D, PTQ0), | ||
743 | PINMUX_DATA(SIM_CLK_MARK, PSE14_SIM_CLK, PTQ1), | ||
744 | PINMUX_DATA(SIM_RST_MARK, PSB2_SIM_RST, SIOF0_SS2_SIM_RST), | ||
745 | |||
746 | /* TSIF */ | ||
747 | PINMUX_DATA(TS_SDAT_MARK, PSE13_TS_SDAT, PTQ2), | ||
748 | PINMUX_DATA(TS_SCK_MARK, PSB5_TS_SCK, SIOF0_SCK_TS_SCK), | ||
749 | PINMUX_DATA(TS_SDEN_MARK, PSB4_TS_SDEN, SIOF0_SYNC_TS_SDEN), | ||
750 | PINMUX_DATA(TS_SPSYNC_MARK, PSB3_TS_SPSYNC, SIOF0_SS1_TS_SPSYNC), | ||
751 | |||
752 | /* IRDA */ | ||
753 | PINMUX_DATA(IRDA_IN_MARK, PSE13_SIOF0_RXD_IRDA_IN, PSB6_IRDA_IN, PTQ2), | ||
754 | PINMUX_DATA(IRDA_OUT_MARK, PSE14_SIOF0_TXD_IRDA_OUT, | ||
755 | PSB7_IRDA_OUT, PTQ1), | ||
756 | |||
757 | /* TPU */ | ||
758 | PINMUX_DATA(TPUTO_MARK, PSD8_TPUTO, SCIF0_SCK_TPUTO), | ||
759 | |||
760 | /* FLCTL */ | ||
761 | PINMUX_DATA(FCE_MARK, PSE3_FLCTL, FCE_VIO_HD2), | ||
762 | PINMUX_DATA(NAF7_MARK, PSC0_NAF, HIZA10_NAF, NAF7_VIO_D15), | ||
763 | PINMUX_DATA(NAF6_MARK, PSC0_NAF, HIZA10_NAF, NAF6_VIO_D14), | ||
764 | PINMUX_DATA(NAF5_MARK, PSC0_NAF, HIZA10_NAF, NAF5_VIO_D13), | ||
765 | PINMUX_DATA(NAF4_MARK, PSC0_NAF, HIZA10_NAF, NAF4_VIO_D12), | ||
766 | PINMUX_DATA(NAF3_MARK, PSC0_NAF, HIZA10_NAF, NAF3_VIO_D11), | ||
767 | PINMUX_DATA(NAF2_MARK, PSE2_NAF2, HIZB0_VIO, NAF2_VIO_D10), | ||
768 | PINMUX_DATA(NAF1_MARK, PSE1_NAF1, HIZB0_VIO, NAF1_VIO_D9), | ||
769 | PINMUX_DATA(NAF0_MARK, PSE0_NAF0, HIZB0_VIO, NAF0_VIO_D8), | ||
770 | PINMUX_DATA(FCDE_MARK, FCDE), | ||
771 | PINMUX_DATA(FOE_MARK, PSE3_FLCTL, HIZB0_VIO, FOE_VIO_VD2), | ||
772 | PINMUX_DATA(FSC_MARK, FSC), | ||
773 | PINMUX_DATA(FWE_MARK, FWE), | ||
774 | PINMUX_DATA(FRB_MARK, PSE3_FLCTL, FRB_VIO_CLK2), | ||
775 | |||
776 | /* KEYSC */ | ||
777 | PINMUX_DATA(KEYIN0_MARK, PSA15_KEYIN0, HIZC14_IRQ6, KEYIN0_IRQ6), | ||
778 | PINMUX_DATA(KEYIN1_MARK, HIZA14_KEYSC, KEYIN1), | ||
779 | PINMUX_DATA(KEYIN2_MARK, HIZA14_KEYSC, KEYIN2), | ||
780 | PINMUX_DATA(KEYIN3_MARK, HIZA14_KEYSC, KEYIN3), | ||
781 | PINMUX_DATA(KEYIN4_MARK, PSA14_KEYIN4, HIZC15_IRQ7, KEYIN4_IRQ7), | ||
782 | PINMUX_DATA(KEYOUT0_MARK, HIZA14_KEYSC, KEYOUT0), | ||
783 | PINMUX_DATA(KEYOUT1_MARK, HIZA14_KEYSC, KEYOUT1), | ||
784 | PINMUX_DATA(KEYOUT2_MARK, HIZA14_KEYSC, KEYOUT2), | ||
785 | PINMUX_DATA(KEYOUT3_MARK, HIZA14_KEYSC, KEYOUT3), | ||
786 | PINMUX_DATA(KEYOUT4_IN6_MARK, HIZA14_KEYSC, KEYOUT4_IN6), | ||
787 | PINMUX_DATA(KEYOUT5_IN5_MARK, HIZA14_KEYSC, KEYOUT5_IN5), | ||
788 | }; | ||
789 | |||
790 | static struct pinmux_gpio pinmux_gpios[] = { | ||
791 | /* PTA */ | ||
792 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
793 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
794 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
795 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
796 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
797 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
798 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
799 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
800 | |||
801 | /* PTB */ | ||
802 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
803 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
804 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
805 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
806 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
807 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
808 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
809 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
810 | |||
811 | /* PTC */ | ||
812 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
813 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
814 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
815 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
816 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
817 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
818 | |||
819 | /* PTD */ | ||
820 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
821 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
822 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
823 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
824 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
825 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
826 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
827 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
828 | |||
829 | /* PTE */ | ||
830 | PINMUX_GPIO(GPIO_PTE7, PTE7_DATA), | ||
831 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
832 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
833 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
834 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
835 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
836 | |||
837 | /* PTF */ | ||
838 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
839 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
840 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
841 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
842 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
843 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
844 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
845 | |||
846 | /* PTG */ | ||
847 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
848 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
849 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
850 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
851 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
852 | |||
853 | /* PTH */ | ||
854 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
855 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
856 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
857 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
858 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
859 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
860 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
861 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
862 | |||
863 | /* PTJ */ | ||
864 | PINMUX_GPIO(GPIO_PTJ7, PTJ7_DATA), | ||
865 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
866 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
867 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
868 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
869 | |||
870 | /* PTK */ | ||
871 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
872 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
873 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
874 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
875 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
876 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
877 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
878 | |||
879 | /* PTL */ | ||
880 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
881 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
882 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
883 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
884 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
885 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
886 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
887 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
888 | |||
889 | /* PTM */ | ||
890 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
891 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
892 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
893 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
894 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
895 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
896 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
897 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
898 | |||
899 | /* PTN */ | ||
900 | PINMUX_GPIO(GPIO_PTN7, PTN7_DATA), | ||
901 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
902 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
903 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
904 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
905 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
906 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
907 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
908 | |||
909 | /* PTQ */ | ||
910 | PINMUX_GPIO(GPIO_PTQ6, PTQ6_DATA), | ||
911 | PINMUX_GPIO(GPIO_PTQ5, PTQ5_DATA), | ||
912 | PINMUX_GPIO(GPIO_PTQ4, PTQ4_DATA), | ||
913 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
914 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
915 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
916 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
917 | |||
918 | /* PTR */ | ||
919 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
920 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
921 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
922 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
923 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
924 | |||
925 | /* PTS */ | ||
926 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
927 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
928 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
929 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
930 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
931 | |||
932 | /* PTT */ | ||
933 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
934 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
935 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
936 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
937 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
938 | |||
939 | /* PTU */ | ||
940 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
941 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
942 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
943 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
944 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
945 | |||
946 | /* PTV */ | ||
947 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
948 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
949 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
950 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
951 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
952 | |||
953 | /* PTW */ | ||
954 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
955 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
956 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
957 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
958 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
959 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
960 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
961 | |||
962 | /* PTX */ | ||
963 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
964 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
965 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
966 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
967 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
968 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
969 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
970 | |||
971 | /* PTY */ | ||
972 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
973 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
974 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
975 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
976 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
977 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
978 | |||
979 | /* PTZ */ | ||
980 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
981 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
982 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
983 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
984 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
985 | |||
986 | /* SCIF0 */ | ||
987 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
988 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
989 | PINMUX_GPIO(GPIO_FN_SCIF0_RTS, SCIF0_RTS_MARK), | ||
990 | PINMUX_GPIO(GPIO_FN_SCIF0_CTS, SCIF0_CTS_MARK), | ||
991 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
992 | |||
993 | /* SCIF1 */ | ||
994 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
995 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
996 | PINMUX_GPIO(GPIO_FN_SCIF1_RTS, SCIF1_RTS_MARK), | ||
997 | PINMUX_GPIO(GPIO_FN_SCIF1_CTS, SCIF1_CTS_MARK), | ||
998 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
999 | |||
1000 | /* SCIF2 */ | ||
1001 | PINMUX_GPIO(GPIO_FN_SCIF2_TXD, SCIF2_TXD_MARK), | ||
1002 | PINMUX_GPIO(GPIO_FN_SCIF2_RXD, SCIF2_RXD_MARK), | ||
1003 | PINMUX_GPIO(GPIO_FN_SCIF2_RTS, SCIF2_RTS_MARK), | ||
1004 | PINMUX_GPIO(GPIO_FN_SCIF2_CTS, SCIF2_CTS_MARK), | ||
1005 | PINMUX_GPIO(GPIO_FN_SCIF2_SCK, SCIF2_SCK_MARK), | ||
1006 | |||
1007 | /* SIO */ | ||
1008 | PINMUX_GPIO(GPIO_FN_SIOTXD, SIOTXD_MARK), | ||
1009 | PINMUX_GPIO(GPIO_FN_SIORXD, SIORXD_MARK), | ||
1010 | PINMUX_GPIO(GPIO_FN_SIOD, SIOD_MARK), | ||
1011 | PINMUX_GPIO(GPIO_FN_SIOSTRB0, SIOSTRB0_MARK), | ||
1012 | PINMUX_GPIO(GPIO_FN_SIOSTRB1, SIOSTRB1_MARK), | ||
1013 | PINMUX_GPIO(GPIO_FN_SIOSCK, SIOSCK_MARK), | ||
1014 | PINMUX_GPIO(GPIO_FN_SIOMCK, SIOMCK_MARK), | ||
1015 | |||
1016 | /* CEU */ | ||
1017 | PINMUX_GPIO(GPIO_FN_VIO_D15, VIO_D15_MARK), | ||
1018 | PINMUX_GPIO(GPIO_FN_VIO_D14, VIO_D14_MARK), | ||
1019 | PINMUX_GPIO(GPIO_FN_VIO_D13, VIO_D13_MARK), | ||
1020 | PINMUX_GPIO(GPIO_FN_VIO_D12, VIO_D12_MARK), | ||
1021 | PINMUX_GPIO(GPIO_FN_VIO_D11, VIO_D11_MARK), | ||
1022 | PINMUX_GPIO(GPIO_FN_VIO_D10, VIO_D10_MARK), | ||
1023 | PINMUX_GPIO(GPIO_FN_VIO_D9, VIO_D9_MARK), | ||
1024 | PINMUX_GPIO(GPIO_FN_VIO_D8, VIO_D8_MARK), | ||
1025 | PINMUX_GPIO(GPIO_FN_VIO_D7, VIO_D7_MARK), | ||
1026 | PINMUX_GPIO(GPIO_FN_VIO_D6, VIO_D6_MARK), | ||
1027 | PINMUX_GPIO(GPIO_FN_VIO_D5, VIO_D5_MARK), | ||
1028 | PINMUX_GPIO(GPIO_FN_VIO_D4, VIO_D4_MARK), | ||
1029 | PINMUX_GPIO(GPIO_FN_VIO_D3, VIO_D3_MARK), | ||
1030 | PINMUX_GPIO(GPIO_FN_VIO_D2, VIO_D2_MARK), | ||
1031 | PINMUX_GPIO(GPIO_FN_VIO_D1, VIO_D1_MARK), | ||
1032 | PINMUX_GPIO(GPIO_FN_VIO_D0, VIO_D0_MARK), | ||
1033 | PINMUX_GPIO(GPIO_FN_VIO_CLK, VIO_CLK_MARK), | ||
1034 | PINMUX_GPIO(GPIO_FN_VIO_VD, VIO_VD_MARK), | ||
1035 | PINMUX_GPIO(GPIO_FN_VIO_HD, VIO_HD_MARK), | ||
1036 | PINMUX_GPIO(GPIO_FN_VIO_FLD, VIO_FLD_MARK), | ||
1037 | PINMUX_GPIO(GPIO_FN_VIO_CKO, VIO_CKO_MARK), | ||
1038 | PINMUX_GPIO(GPIO_FN_VIO_STEX, VIO_STEX_MARK), | ||
1039 | PINMUX_GPIO(GPIO_FN_VIO_STEM, VIO_STEM_MARK), | ||
1040 | PINMUX_GPIO(GPIO_FN_VIO_VD2, VIO_VD2_MARK), | ||
1041 | PINMUX_GPIO(GPIO_FN_VIO_HD2, VIO_HD2_MARK), | ||
1042 | PINMUX_GPIO(GPIO_FN_VIO_CLK2, VIO_CLK2_MARK), | ||
1043 | |||
1044 | /* LCDC */ | ||
1045 | PINMUX_GPIO(GPIO_FN_LCDD23, LCDD23_MARK), | ||
1046 | PINMUX_GPIO(GPIO_FN_LCDD22, LCDD22_MARK), | ||
1047 | PINMUX_GPIO(GPIO_FN_LCDD21, LCDD21_MARK), | ||
1048 | PINMUX_GPIO(GPIO_FN_LCDD20, LCDD20_MARK), | ||
1049 | PINMUX_GPIO(GPIO_FN_LCDD19, LCDD19_MARK), | ||
1050 | PINMUX_GPIO(GPIO_FN_LCDD18, LCDD18_MARK), | ||
1051 | PINMUX_GPIO(GPIO_FN_LCDD17, LCDD17_MARK), | ||
1052 | PINMUX_GPIO(GPIO_FN_LCDD16, LCDD16_MARK), | ||
1053 | PINMUX_GPIO(GPIO_FN_LCDD15, LCDD15_MARK), | ||
1054 | PINMUX_GPIO(GPIO_FN_LCDD14, LCDD14_MARK), | ||
1055 | PINMUX_GPIO(GPIO_FN_LCDD13, LCDD13_MARK), | ||
1056 | PINMUX_GPIO(GPIO_FN_LCDD12, LCDD12_MARK), | ||
1057 | PINMUX_GPIO(GPIO_FN_LCDD11, LCDD11_MARK), | ||
1058 | PINMUX_GPIO(GPIO_FN_LCDD10, LCDD10_MARK), | ||
1059 | PINMUX_GPIO(GPIO_FN_LCDD9, LCDD9_MARK), | ||
1060 | PINMUX_GPIO(GPIO_FN_LCDD8, LCDD8_MARK), | ||
1061 | PINMUX_GPIO(GPIO_FN_LCDD7, LCDD7_MARK), | ||
1062 | PINMUX_GPIO(GPIO_FN_LCDD6, LCDD6_MARK), | ||
1063 | PINMUX_GPIO(GPIO_FN_LCDD5, LCDD5_MARK), | ||
1064 | PINMUX_GPIO(GPIO_FN_LCDD4, LCDD4_MARK), | ||
1065 | PINMUX_GPIO(GPIO_FN_LCDD3, LCDD3_MARK), | ||
1066 | PINMUX_GPIO(GPIO_FN_LCDD2, LCDD2_MARK), | ||
1067 | PINMUX_GPIO(GPIO_FN_LCDD1, LCDD1_MARK), | ||
1068 | PINMUX_GPIO(GPIO_FN_LCDD0, LCDD0_MARK), | ||
1069 | PINMUX_GPIO(GPIO_FN_LCDLCLK, LCDLCLK_MARK), | ||
1070 | /* Main LCD */ | ||
1071 | PINMUX_GPIO(GPIO_FN_LCDDON, LCDDON_MARK), | ||
1072 | PINMUX_GPIO(GPIO_FN_LCDVCPWC, LCDVCPWC_MARK), | ||
1073 | PINMUX_GPIO(GPIO_FN_LCDVEPWC, LCDVEPWC_MARK), | ||
1074 | PINMUX_GPIO(GPIO_FN_LCDVSYN, LCDVSYN_MARK), | ||
1075 | /* Main LCD - RGB Mode */ | ||
1076 | PINMUX_GPIO(GPIO_FN_LCDDCK, LCDDCK_MARK), | ||
1077 | PINMUX_GPIO(GPIO_FN_LCDHSYN, LCDHSYN_MARK), | ||
1078 | PINMUX_GPIO(GPIO_FN_LCDDISP, LCDDISP_MARK), | ||
1079 | /* Main LCD - SYS Mode */ | ||
1080 | PINMUX_GPIO(GPIO_FN_LCDRS, LCDRS_MARK), | ||
1081 | PINMUX_GPIO(GPIO_FN_LCDCS, LCDCS_MARK), | ||
1082 | PINMUX_GPIO(GPIO_FN_LCDWR, LCDWR_MARK), | ||
1083 | PINMUX_GPIO(GPIO_FN_LCDRD, LCDRD_MARK), | ||
1084 | /* Sub LCD - SYS Mode */ | ||
1085 | PINMUX_GPIO(GPIO_FN_LCDDON2, LCDDON2_MARK), | ||
1086 | PINMUX_GPIO(GPIO_FN_LCDVCPWC2, LCDVCPWC2_MARK), | ||
1087 | PINMUX_GPIO(GPIO_FN_LCDVEPWC2, LCDVEPWC2_MARK), | ||
1088 | PINMUX_GPIO(GPIO_FN_LCDVSYN2, LCDVSYN2_MARK), | ||
1089 | PINMUX_GPIO(GPIO_FN_LCDCS2, LCDCS2_MARK), | ||
1090 | |||
1091 | /* BSC */ | ||
1092 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1093 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1094 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1095 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1096 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1097 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1098 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
1099 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1100 | PINMUX_GPIO(GPIO_FN_CS6A_CE2B, CS6A_CE2B_MARK), | ||
1101 | |||
1102 | /* SBSC */ | ||
1103 | PINMUX_GPIO(GPIO_FN_HPD63, HPD63_MARK), | ||
1104 | PINMUX_GPIO(GPIO_FN_HPD62, HPD62_MARK), | ||
1105 | PINMUX_GPIO(GPIO_FN_HPD61, HPD61_MARK), | ||
1106 | PINMUX_GPIO(GPIO_FN_HPD60, HPD60_MARK), | ||
1107 | PINMUX_GPIO(GPIO_FN_HPD59, HPD59_MARK), | ||
1108 | PINMUX_GPIO(GPIO_FN_HPD58, HPD58_MARK), | ||
1109 | PINMUX_GPIO(GPIO_FN_HPD57, HPD57_MARK), | ||
1110 | PINMUX_GPIO(GPIO_FN_HPD56, HPD56_MARK), | ||
1111 | PINMUX_GPIO(GPIO_FN_HPD55, HPD55_MARK), | ||
1112 | PINMUX_GPIO(GPIO_FN_HPD54, HPD54_MARK), | ||
1113 | PINMUX_GPIO(GPIO_FN_HPD53, HPD53_MARK), | ||
1114 | PINMUX_GPIO(GPIO_FN_HPD52, HPD52_MARK), | ||
1115 | PINMUX_GPIO(GPIO_FN_HPD51, HPD51_MARK), | ||
1116 | PINMUX_GPIO(GPIO_FN_HPD50, HPD50_MARK), | ||
1117 | PINMUX_GPIO(GPIO_FN_HPD49, HPD49_MARK), | ||
1118 | PINMUX_GPIO(GPIO_FN_HPD48, HPD48_MARK), | ||
1119 | PINMUX_GPIO(GPIO_FN_HPDQM7, HPDQM7_MARK), | ||
1120 | PINMUX_GPIO(GPIO_FN_HPDQM6, HPDQM6_MARK), | ||
1121 | PINMUX_GPIO(GPIO_FN_HPDQM5, HPDQM5_MARK), | ||
1122 | PINMUX_GPIO(GPIO_FN_HPDQM4, HPDQM4_MARK), | ||
1123 | |||
1124 | /* IRQ */ | ||
1125 | PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), | ||
1126 | PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), | ||
1127 | PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), | ||
1128 | PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), | ||
1129 | PINMUX_GPIO(GPIO_FN_IRQ4, IRQ4_MARK), | ||
1130 | PINMUX_GPIO(GPIO_FN_IRQ5, IRQ5_MARK), | ||
1131 | PINMUX_GPIO(GPIO_FN_IRQ6, IRQ6_MARK), | ||
1132 | PINMUX_GPIO(GPIO_FN_IRQ7, IRQ7_MARK), | ||
1133 | |||
1134 | /* SDHI */ | ||
1135 | PINMUX_GPIO(GPIO_FN_SDHICD, SDHICD_MARK), | ||
1136 | PINMUX_GPIO(GPIO_FN_SDHIWP, SDHIWP_MARK), | ||
1137 | PINMUX_GPIO(GPIO_FN_SDHID3, SDHID3_MARK), | ||
1138 | PINMUX_GPIO(GPIO_FN_SDHID2, SDHID2_MARK), | ||
1139 | PINMUX_GPIO(GPIO_FN_SDHID1, SDHID1_MARK), | ||
1140 | PINMUX_GPIO(GPIO_FN_SDHID0, SDHID0_MARK), | ||
1141 | PINMUX_GPIO(GPIO_FN_SDHICMD, SDHICMD_MARK), | ||
1142 | PINMUX_GPIO(GPIO_FN_SDHICLK, SDHICLK_MARK), | ||
1143 | |||
1144 | /* SIU - Port A */ | ||
1145 | PINMUX_GPIO(GPIO_FN_SIUAOLR, SIUAOLR_MARK), | ||
1146 | PINMUX_GPIO(GPIO_FN_SIUAOBT, SIUAOBT_MARK), | ||
1147 | PINMUX_GPIO(GPIO_FN_SIUAISLD, SIUAISLD_MARK), | ||
1148 | PINMUX_GPIO(GPIO_FN_SIUAILR, SIUAILR_MARK), | ||
1149 | PINMUX_GPIO(GPIO_FN_SIUAIBT, SIUAIBT_MARK), | ||
1150 | PINMUX_GPIO(GPIO_FN_SIUAOSLD, SIUAOSLD_MARK), | ||
1151 | PINMUX_GPIO(GPIO_FN_SIUMCKA, SIUMCKA_MARK), | ||
1152 | PINMUX_GPIO(GPIO_FN_SIUFCKA, SIUFCKA_MARK), | ||
1153 | |||
1154 | /* SIU - Port B */ | ||
1155 | PINMUX_GPIO(GPIO_FN_SIUBOLR, SIUBOLR_MARK), | ||
1156 | PINMUX_GPIO(GPIO_FN_SIUBOBT, SIUBOBT_MARK), | ||
1157 | PINMUX_GPIO(GPIO_FN_SIUBISLD, SIUBISLD_MARK), | ||
1158 | PINMUX_GPIO(GPIO_FN_SIUBILR, SIUBILR_MARK), | ||
1159 | PINMUX_GPIO(GPIO_FN_SIUBIBT, SIUBIBT_MARK), | ||
1160 | PINMUX_GPIO(GPIO_FN_SIUBOSLD, SIUBOSLD_MARK), | ||
1161 | PINMUX_GPIO(GPIO_FN_SIUMCKB, SIUMCKB_MARK), | ||
1162 | PINMUX_GPIO(GPIO_FN_SIUFCKB, SIUFCKB_MARK), | ||
1163 | |||
1164 | /* AUD */ | ||
1165 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1166 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1167 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1168 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1169 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1170 | |||
1171 | /* DMAC */ | ||
1172 | PINMUX_GPIO(GPIO_FN_DACK, DACK_MARK), | ||
1173 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1174 | |||
1175 | /* VOU */ | ||
1176 | PINMUX_GPIO(GPIO_FN_DV_CLKI, DV_CLKI_MARK), | ||
1177 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1178 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1179 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1180 | PINMUX_GPIO(GPIO_FN_DV_D15, DV_D15_MARK), | ||
1181 | PINMUX_GPIO(GPIO_FN_DV_D14, DV_D14_MARK), | ||
1182 | PINMUX_GPIO(GPIO_FN_DV_D13, DV_D13_MARK), | ||
1183 | PINMUX_GPIO(GPIO_FN_DV_D12, DV_D12_MARK), | ||
1184 | PINMUX_GPIO(GPIO_FN_DV_D11, DV_D11_MARK), | ||
1185 | PINMUX_GPIO(GPIO_FN_DV_D10, DV_D10_MARK), | ||
1186 | PINMUX_GPIO(GPIO_FN_DV_D9, DV_D9_MARK), | ||
1187 | PINMUX_GPIO(GPIO_FN_DV_D8, DV_D8_MARK), | ||
1188 | PINMUX_GPIO(GPIO_FN_DV_D7, DV_D7_MARK), | ||
1189 | PINMUX_GPIO(GPIO_FN_DV_D6, DV_D6_MARK), | ||
1190 | PINMUX_GPIO(GPIO_FN_DV_D5, DV_D5_MARK), | ||
1191 | PINMUX_GPIO(GPIO_FN_DV_D4, DV_D4_MARK), | ||
1192 | PINMUX_GPIO(GPIO_FN_DV_D3, DV_D3_MARK), | ||
1193 | PINMUX_GPIO(GPIO_FN_DV_D2, DV_D2_MARK), | ||
1194 | PINMUX_GPIO(GPIO_FN_DV_D1, DV_D1_MARK), | ||
1195 | PINMUX_GPIO(GPIO_FN_DV_D0, DV_D0_MARK), | ||
1196 | |||
1197 | /* CPG */ | ||
1198 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1199 | PINMUX_GPIO(GPIO_FN_PDSTATUS, PDSTATUS_MARK), | ||
1200 | |||
1201 | /* SIOF0 */ | ||
1202 | PINMUX_GPIO(GPIO_FN_SIOF0_MCK, SIOF0_MCK_MARK), | ||
1203 | PINMUX_GPIO(GPIO_FN_SIOF0_SCK, SIOF0_SCK_MARK), | ||
1204 | PINMUX_GPIO(GPIO_FN_SIOF0_SYNC, SIOF0_SYNC_MARK), | ||
1205 | PINMUX_GPIO(GPIO_FN_SIOF0_SS1, SIOF0_SS1_MARK), | ||
1206 | PINMUX_GPIO(GPIO_FN_SIOF0_SS2, SIOF0_SS2_MARK), | ||
1207 | PINMUX_GPIO(GPIO_FN_SIOF0_TXD, SIOF0_TXD_MARK), | ||
1208 | PINMUX_GPIO(GPIO_FN_SIOF0_RXD, SIOF0_RXD_MARK), | ||
1209 | |||
1210 | /* SIOF1 */ | ||
1211 | PINMUX_GPIO(GPIO_FN_SIOF1_MCK, SIOF1_MCK_MARK), | ||
1212 | PINMUX_GPIO(GPIO_FN_SIOF1_SCK, SIOF1_SCK_MARK), | ||
1213 | PINMUX_GPIO(GPIO_FN_SIOF1_SYNC, SIOF1_SYNC_MARK), | ||
1214 | PINMUX_GPIO(GPIO_FN_SIOF1_SS1, SIOF1_SS1_MARK), | ||
1215 | PINMUX_GPIO(GPIO_FN_SIOF1_SS2, SIOF1_SS2_MARK), | ||
1216 | PINMUX_GPIO(GPIO_FN_SIOF1_TXD, SIOF1_TXD_MARK), | ||
1217 | PINMUX_GPIO(GPIO_FN_SIOF1_RXD, SIOF1_RXD_MARK), | ||
1218 | |||
1219 | /* SIM */ | ||
1220 | PINMUX_GPIO(GPIO_FN_SIM_D, SIM_D_MARK), | ||
1221 | PINMUX_GPIO(GPIO_FN_SIM_CLK, SIM_CLK_MARK), | ||
1222 | PINMUX_GPIO(GPIO_FN_SIM_RST, SIM_RST_MARK), | ||
1223 | |||
1224 | /* TSIF */ | ||
1225 | PINMUX_GPIO(GPIO_FN_TS_SDAT, TS_SDAT_MARK), | ||
1226 | PINMUX_GPIO(GPIO_FN_TS_SCK, TS_SCK_MARK), | ||
1227 | PINMUX_GPIO(GPIO_FN_TS_SDEN, TS_SDEN_MARK), | ||
1228 | PINMUX_GPIO(GPIO_FN_TS_SPSYNC, TS_SPSYNC_MARK), | ||
1229 | |||
1230 | /* IRDA */ | ||
1231 | PINMUX_GPIO(GPIO_FN_IRDA_IN, IRDA_IN_MARK), | ||
1232 | PINMUX_GPIO(GPIO_FN_IRDA_OUT, IRDA_OUT_MARK), | ||
1233 | |||
1234 | /* TPU */ | ||
1235 | PINMUX_GPIO(GPIO_FN_TPUTO, TPUTO_MARK), | ||
1236 | |||
1237 | /* FLCTL */ | ||
1238 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1239 | PINMUX_GPIO(GPIO_FN_NAF7, NAF7_MARK), | ||
1240 | PINMUX_GPIO(GPIO_FN_NAF6, NAF6_MARK), | ||
1241 | PINMUX_GPIO(GPIO_FN_NAF5, NAF5_MARK), | ||
1242 | PINMUX_GPIO(GPIO_FN_NAF4, NAF4_MARK), | ||
1243 | PINMUX_GPIO(GPIO_FN_NAF3, NAF3_MARK), | ||
1244 | PINMUX_GPIO(GPIO_FN_NAF2, NAF2_MARK), | ||
1245 | PINMUX_GPIO(GPIO_FN_NAF1, NAF1_MARK), | ||
1246 | PINMUX_GPIO(GPIO_FN_NAF0, NAF0_MARK), | ||
1247 | PINMUX_GPIO(GPIO_FN_FCDE, FCDE_MARK), | ||
1248 | PINMUX_GPIO(GPIO_FN_FOE, FOE_MARK), | ||
1249 | PINMUX_GPIO(GPIO_FN_FSC, FSC_MARK), | ||
1250 | PINMUX_GPIO(GPIO_FN_FWE, FWE_MARK), | ||
1251 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1252 | |||
1253 | /* KEYSC */ | ||
1254 | PINMUX_GPIO(GPIO_FN_KEYIN0, KEYIN0_MARK), | ||
1255 | PINMUX_GPIO(GPIO_FN_KEYIN1, KEYIN1_MARK), | ||
1256 | PINMUX_GPIO(GPIO_FN_KEYIN2, KEYIN2_MARK), | ||
1257 | PINMUX_GPIO(GPIO_FN_KEYIN3, KEYIN3_MARK), | ||
1258 | PINMUX_GPIO(GPIO_FN_KEYIN4, KEYIN4_MARK), | ||
1259 | PINMUX_GPIO(GPIO_FN_KEYOUT0, KEYOUT0_MARK), | ||
1260 | PINMUX_GPIO(GPIO_FN_KEYOUT1, KEYOUT1_MARK), | ||
1261 | PINMUX_GPIO(GPIO_FN_KEYOUT2, KEYOUT2_MARK), | ||
1262 | PINMUX_GPIO(GPIO_FN_KEYOUT3, KEYOUT3_MARK), | ||
1263 | PINMUX_GPIO(GPIO_FN_KEYOUT4_IN6, KEYOUT4_IN6_MARK), | ||
1264 | PINMUX_GPIO(GPIO_FN_KEYOUT5_IN5, KEYOUT5_IN5_MARK), | ||
1265 | }; | ||
1266 | |||
1267 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1268 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
1269 | VIO_D7_SCIF1_SCK, PTA7_OUT, PTA7_IN_PD, PTA7_IN, | ||
1270 | VIO_D6_SCIF1_RXD, 0, PTA6_IN_PD, PTA6_IN, | ||
1271 | VIO_D5_SCIF1_TXD, PTA5_OUT, PTA5_IN_PD, PTA5_IN, | ||
1272 | VIO_D4, 0, PTA4_IN_PD, PTA4_IN, | ||
1273 | VIO_D3, 0, PTA3_IN_PD, PTA3_IN, | ||
1274 | VIO_D2, 0, PTA2_IN_PD, PTA2_IN, | ||
1275 | VIO_D1, 0, PTA1_IN_PD, PTA1_IN, | ||
1276 | VIO_D0_LCDLCLK, 0, PTA0_IN_PD, PTA0_IN } | ||
1277 | }, | ||
1278 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
1279 | HPD55, PTB7_OUT, 0, PTB7_IN, | ||
1280 | HPD54, PTB6_OUT, 0, PTB6_IN, | ||
1281 | HPD53, PTB5_OUT, 0, PTB5_IN, | ||
1282 | HPD52, PTB4_OUT, 0, PTB4_IN, | ||
1283 | HPD51, PTB3_OUT, 0, PTB3_IN, | ||
1284 | HPD50, PTB2_OUT, 0, PTB2_IN, | ||
1285 | HPD49, PTB1_OUT, 0, PTB1_IN, | ||
1286 | HPD48, PTB0_OUT, 0, PTB0_IN } | ||
1287 | }, | ||
1288 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
1289 | 0, 0, PTC7_IN_PU, PTC7_IN, | ||
1290 | 0, 0, 0, 0, | ||
1291 | IOIS16, 0, PTC5_IN_PU, PTC5_IN, | ||
1292 | HPDQM7, PTC4_OUT, 0, PTC4_IN, | ||
1293 | HPDQM6, PTC3_OUT, 0, PTC3_IN, | ||
1294 | HPDQM5, PTC2_OUT, 0, PTC2_IN, | ||
1295 | 0, 0, 0, 0, | ||
1296 | HPDQM4, PTC0_OUT, 0, PTC0_IN } | ||
1297 | }, | ||
1298 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
1299 | SDHICD, 0, PTD7_IN_PU, PTD7_IN, | ||
1300 | SDHIWP, PTD6_OUT, PTD6_IN_PU, PTD6_IN, | ||
1301 | SDHID3, PTD5_OUT, PTD5_IN_PU, PTD5_IN, | ||
1302 | IRQ2_SDHID2, PTD4_OUT, PTD4_IN_PU, PTD4_IN, | ||
1303 | SDHID1, PTD3_OUT, PTD3_IN_PU, PTD3_IN, | ||
1304 | SDHID0, PTD2_OUT, PTD2_IN_PU, PTD2_IN, | ||
1305 | SDHICMD, PTD1_OUT, PTD1_IN_PU, PTD1_IN, | ||
1306 | SDHICLK, PTD0_OUT, 0, 0 } | ||
1307 | }, | ||
1308 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
1309 | A25, PTE7_OUT, PTE7_IN_PD, PTE7_IN, | ||
1310 | A24, PTE6_OUT, PTE6_IN_PD, PTE6_IN, | ||
1311 | A23, PTE5_OUT, PTE5_IN_PD, PTE5_IN, | ||
1312 | A22, PTE4_OUT, PTE4_IN_PD, PTE4_IN, | ||
1313 | 0, 0, 0, 0, | ||
1314 | 0, 0, 0, 0, | ||
1315 | IRQ5, PTE1_OUT, PTE1_IN_PD, PTE1_IN, | ||
1316 | IRQ4_BS, PTE0_OUT, PTE0_IN_PD, PTE0_IN } | ||
1317 | }, | ||
1318 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1319 | 0, 0, 0, 0, | ||
1320 | PTF6, PTF6_OUT, PTF6_IN_PD, PTF6_IN, | ||
1321 | SIOSCK_SIUBOBT, PTF5_OUT, PTF5_IN_PD, PTF5_IN, | ||
1322 | SIOSTRB1_SIUBOLR, PTF4_OUT, PTF4_IN_PD, PTF4_IN, | ||
1323 | SIOSTRB0_SIUBIBT, PTF3_OUT, PTF3_IN_PD, PTF3_IN, | ||
1324 | SIOD_SIUBILR, PTF2_OUT, PTF2_IN_PD, PTF2_IN, | ||
1325 | SIORXD_SIUBISLD, 0, PTF1_IN_PD, PTF1_IN, | ||
1326 | SIOTXD_SIUBOSLD, PTF0_OUT, 0, 0 } | ||
1327 | }, | ||
1328 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1329 | 0, 0, 0, 0, | ||
1330 | 0, 0, 0, 0, | ||
1331 | 0, 0, 0, 0, | ||
1332 | AUDSYNC, PTG4_OUT, 0, 0, | ||
1333 | AUDATA3, PTG3_OUT, 0, 0, | ||
1334 | AUDATA2, PTG2_OUT, 0, 0, | ||
1335 | AUDATA1, PTG1_OUT, 0, 0, | ||
1336 | AUDATA0, PTG0_OUT, 0, 0 } | ||
1337 | }, | ||
1338 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1339 | LCDVCPWC_LCDVCPWC2, PTH7_OUT, 0, 0, | ||
1340 | LCDVSYN2_DACK, PTH6_OUT, PTH6_IN_PD, PTH6_IN, | ||
1341 | LCDVSYN, PTH5_OUT, PTH5_IN_PD, PTH5_IN, | ||
1342 | LCDDISP_LCDRS, PTH4_OUT, 0, 0, | ||
1343 | LCDHSYN_LCDCS, PTH3_OUT, 0, 0, | ||
1344 | LCDDON_LCDDON2, PTH2_OUT, 0, 0, | ||
1345 | LCDD17_DV_HSYNC, PTH1_OUT, PTH1_IN_PD, PTH1_IN, | ||
1346 | LCDD16_DV_VSYNC, PTH0_OUT, PTH0_IN_PD, PTH0_IN } | ||
1347 | }, | ||
1348 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1349 | STATUS0, PTJ7_OUT, 0, 0, | ||
1350 | 0, PTJ6_OUT, 0, 0, | ||
1351 | PDSTATUS, PTJ5_OUT, 0, 0, | ||
1352 | 0, 0, 0, 0, | ||
1353 | 0, 0, 0, 0, | ||
1354 | 0, 0, 0, 0, | ||
1355 | IRQ1, PTJ1_OUT, PTJ1_IN_PU, PTJ1_IN, | ||
1356 | IRQ0, PTJ0_OUT, PTJ0_IN_PU, PTJ0_IN } | ||
1357 | }, | ||
1358 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1359 | 0, 0, 0, 0, | ||
1360 | SIUAILR_SIOF1_SS2, PTK6_OUT, PTK6_IN_PD, PTK6_IN, | ||
1361 | SIUAIBT_SIOF1_SS1, PTK5_OUT, PTK5_IN_PD, PTK5_IN, | ||
1362 | SIUAOLR_SIOF1_SYNC, PTK4_OUT, PTK4_IN_PD, PTK4_IN, | ||
1363 | SIUAOBT_SIOF1_SCK, PTK3_OUT, PTK3_IN_PD, PTK3_IN, | ||
1364 | SIUAISLD_SIOF1_RXD, 0, PTK2_IN_PD, PTK2_IN, | ||
1365 | SIUAOSLD_SIOF1_TXD, PTK1_OUT, 0, 0, | ||
1366 | PTK0, PTK0_OUT, PTK0_IN_PD, PTK0_IN } | ||
1367 | }, | ||
1368 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1369 | LCDD15_DV_D15, PTL7_OUT, PTL7_IN_PD, PTL7_IN, | ||
1370 | LCDD14_DV_D14, PTL6_OUT, PTL6_IN_PD, PTL6_IN, | ||
1371 | LCDD13_DV_D13, PTL5_OUT, PTL5_IN_PD, PTL5_IN, | ||
1372 | LCDD12_DV_D12, PTL4_OUT, PTL4_IN_PD, PTL4_IN, | ||
1373 | LCDD11_DV_D11, PTL3_OUT, PTL3_IN_PD, PTL3_IN, | ||
1374 | LCDD10_DV_D10, PTL2_OUT, PTL2_IN_PD, PTL2_IN, | ||
1375 | LCDD9_DV_D9, PTL1_OUT, PTL1_IN_PD, PTL1_IN, | ||
1376 | LCDD8_DV_D8, PTL0_OUT, PTL0_IN_PD, PTL0_IN } | ||
1377 | }, | ||
1378 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1379 | LCDD7_DV_D7, PTM7_OUT, PTM7_IN_PD, PTM7_IN, | ||
1380 | LCDD6_DV_D6, PTM6_OUT, PTM6_IN_PD, PTM6_IN, | ||
1381 | LCDD5_DV_D5, PTM5_OUT, PTM5_IN_PD, PTM5_IN, | ||
1382 | LCDD4_DV_D4, PTM4_OUT, PTM4_IN_PD, PTM4_IN, | ||
1383 | LCDD3_DV_D3, PTM3_OUT, PTM3_IN_PD, PTM3_IN, | ||
1384 | LCDD2_DV_D2, PTM2_OUT, PTM2_IN_PD, PTM2_IN, | ||
1385 | LCDD1_DV_D1, PTM1_OUT, PTM1_IN_PD, PTM1_IN, | ||
1386 | LCDD0_DV_D0, PTM0_OUT, PTM0_IN_PD, PTM0_IN } | ||
1387 | }, | ||
1388 | { PINMUX_CFG_REG("PNCR", 0xa4050118, 16, 2) { | ||
1389 | HPD63, PTN7_OUT, 0, PTN7_IN, | ||
1390 | HPD62, PTN6_OUT, 0, PTN6_IN, | ||
1391 | HPD61, PTN5_OUT, 0, PTN5_IN, | ||
1392 | HPD60, PTN4_OUT, 0, PTN4_IN, | ||
1393 | HPD59, PTN3_OUT, 0, PTN3_IN, | ||
1394 | HPD58, PTN2_OUT, 0, PTN2_IN, | ||
1395 | HPD57, PTN1_OUT, 0, PTN1_IN, | ||
1396 | HPD56, PTN0_OUT, 0, PTN0_IN } | ||
1397 | }, | ||
1398 | { PINMUX_CFG_REG("PQCR", 0xa405011a, 16, 2) { | ||
1399 | 0, 0, 0, 0, | ||
1400 | SIOF0_SS2_SIM_RST, PTQ6_OUT, 0, 0, | ||
1401 | SIOF0_SS1_TS_SPSYNC, PTQ5_OUT, PTQ5_IN_PD, PTQ5_IN, | ||
1402 | SIOF0_SYNC_TS_SDEN, PTQ4_OUT, PTQ4_IN_PD, PTQ4_IN, | ||
1403 | SIOF0_SCK_TS_SCK, PTQ3_OUT, PTQ3_IN_PD, PTQ3_IN, | ||
1404 | PTQ2, 0, PTQ2_IN_PD, PTQ2_IN, | ||
1405 | PTQ1, PTQ1_OUT, 0, 0, | ||
1406 | PTQ0, PTQ0_OUT, PTQ0_IN_PU, PTQ0_IN } | ||
1407 | }, | ||
1408 | { PINMUX_CFG_REG("PRCR", 0xa405011c, 16, 2) { | ||
1409 | 0, 0, 0, 0, | ||
1410 | 0, 0, 0, 0, | ||
1411 | 0, 0, 0, 0, | ||
1412 | LCDRD, PTR4_OUT, 0, 0, | ||
1413 | CS6B_CE1B_LCDCS2, PTR3_OUT, 0, 0, | ||
1414 | WAIT, 0, PTR2_IN_PU, PTR2_IN, | ||
1415 | LCDDCK_LCDWR, PTR1_OUT, 0, 0, | ||
1416 | LCDVEPWC_LCDVEPWC2, PTR0_OUT, 0, 0 } | ||
1417 | }, | ||
1418 | { PINMUX_CFG_REG("PSCR", 0xa405011e, 16, 2) { | ||
1419 | 0, 0, 0, 0, | ||
1420 | 0, 0, 0, 0, | ||
1421 | 0, 0, 0, 0, | ||
1422 | SCIF0_CTS_SIUAISPD, 0, PTS4_IN_PD, PTS4_IN, | ||
1423 | SCIF0_RTS_SIUAOSPD, PTS3_OUT, 0, 0, | ||
1424 | SCIF0_SCK_TPUTO, PTS2_OUT, PTS2_IN_PD, PTS2_IN, | ||
1425 | SCIF0_RXD, 0, PTS1_IN_PD, PTS1_IN, | ||
1426 | SCIF0_TXD, PTS0_OUT, 0, 0 } | ||
1427 | }, | ||
1428 | { PINMUX_CFG_REG("PTCR", 0xa4050140, 16, 2) { | ||
1429 | 0, 0, 0, 0, | ||
1430 | 0, 0, 0, 0, | ||
1431 | 0, 0, 0, 0, | ||
1432 | FOE_VIO_VD2, PTT4_OUT, PTT4_IN_PD, PTT4_IN, | ||
1433 | FWE, PTT3_OUT, PTT3_IN_PD, PTT3_IN, | ||
1434 | FSC, PTT2_OUT, PTT2_IN_PD, PTT2_IN, | ||
1435 | DREQ0, 0, PTT1_IN_PD, PTT1_IN, | ||
1436 | FCDE, PTT0_OUT, 0, 0 } | ||
1437 | }, | ||
1438 | { PINMUX_CFG_REG("PUCR", 0xa4050142, 16, 2) { | ||
1439 | 0, 0, 0, 0, | ||
1440 | 0, 0, 0, 0, | ||
1441 | 0, 0, 0, 0, | ||
1442 | NAF2_VIO_D10, PTU4_OUT, PTU4_IN_PD, PTU4_IN, | ||
1443 | NAF1_VIO_D9, PTU3_OUT, PTU3_IN_PD, PTU3_IN, | ||
1444 | NAF0_VIO_D8, PTU2_OUT, PTU2_IN_PD, PTU2_IN, | ||
1445 | FRB_VIO_CLK2, 0, PTU1_IN_PD, PTU1_IN, | ||
1446 | FCE_VIO_HD2, PTU0_OUT, PTU0_IN_PD, PTU0_IN } | ||
1447 | }, | ||
1448 | { PINMUX_CFG_REG("PVCR", 0xa4050144, 16, 2) { | ||
1449 | 0, 0, 0, 0, | ||
1450 | 0, 0, 0, 0, | ||
1451 | 0, 0, 0, 0, | ||
1452 | NAF7_VIO_D15, PTV4_OUT, PTV4_IN_PD, PTV4_IN, | ||
1453 | NAF6_VIO_D14, PTV3_OUT, PTV3_IN_PD, PTV3_IN, | ||
1454 | NAF5_VIO_D13, PTV2_OUT, PTV2_IN_PD, PTV2_IN, | ||
1455 | NAF4_VIO_D12, PTV1_OUT, PTV1_IN_PD, PTV1_IN, | ||
1456 | NAF3_VIO_D11, PTV0_OUT, PTV0_IN_PD, PTV0_IN } | ||
1457 | }, | ||
1458 | { PINMUX_CFG_REG("PWCR", 0xa4050146, 16, 2) { | ||
1459 | 0, 0, 0, 0, | ||
1460 | VIO_FLD_SCIF2_CTS, 0, PTW6_IN_PD, PTW6_IN, | ||
1461 | VIO_CKO_SCIF2_RTS, PTW5_OUT, 0, 0, | ||
1462 | VIO_STEX_SCIF2_SCK, PTW4_OUT, PTW4_IN_PD, PTW4_IN, | ||
1463 | VIO_STEM_SCIF2_TXD, PTW3_OUT, PTW3_IN_PD, PTW3_IN, | ||
1464 | VIO_HD_SCIF2_RXD, PTW2_OUT, PTW2_IN_PD, PTW2_IN, | ||
1465 | VIO_VD_SCIF1_CTS, PTW1_OUT, PTW1_IN_PD, PTW1_IN, | ||
1466 | VIO_CLK_SCIF1_RTS, PTW0_OUT, PTW0_IN_PD, PTW0_IN } | ||
1467 | }, | ||
1468 | { PINMUX_CFG_REG("PXCR", 0xa4050148, 16, 2) { | ||
1469 | 0, 0, 0, 0, | ||
1470 | CS6A_CE2B, PTX6_OUT, PTX6_IN_PU, PTX6_IN, | ||
1471 | LCDD23, PTX5_OUT, PTX5_IN_PD, PTX5_IN, | ||
1472 | LCDD22, PTX4_OUT, PTX4_IN_PD, PTX4_IN, | ||
1473 | LCDD21, PTX3_OUT, PTX3_IN_PD, PTX3_IN, | ||
1474 | LCDD20, PTX2_OUT, PTX2_IN_PD, PTX2_IN, | ||
1475 | LCDD19_DV_CLKI, PTX1_OUT, PTX1_IN_PD, PTX1_IN, | ||
1476 | LCDD18_DV_CLK, PTX0_OUT, PTX0_IN_PD, PTX0_IN } | ||
1477 | }, | ||
1478 | { PINMUX_CFG_REG("PYCR", 0xa405014a, 16, 2) { | ||
1479 | 0, 0, 0, 0, | ||
1480 | 0, 0, 0, 0, | ||
1481 | KEYOUT5_IN5, PTY5_OUT, PTY5_IN_PU, PTY5_IN, | ||
1482 | KEYOUT4_IN6, PTY4_OUT, PTY4_IN_PU, PTY4_IN, | ||
1483 | KEYOUT3, PTY3_OUT, PTY3_IN_PU, PTY3_IN, | ||
1484 | KEYOUT2, PTY2_OUT, PTY2_IN_PU, PTY2_IN, | ||
1485 | KEYOUT1, PTY1_OUT, 0, 0, | ||
1486 | KEYOUT0, PTY0_OUT, PTY0_IN_PU, PTY0_IN } | ||
1487 | }, | ||
1488 | { PINMUX_CFG_REG("PZCR", 0xa405014c, 16, 2) { | ||
1489 | 0, 0, 0, 0, | ||
1490 | 0, 0, 0, 0, | ||
1491 | KEYIN4_IRQ7, 0, PTZ5_IN_PU, PTZ5_IN, | ||
1492 | KEYIN3, 0, PTZ4_IN_PU, PTZ4_IN, | ||
1493 | KEYIN2, 0, PTZ3_IN_PU, PTZ3_IN, | ||
1494 | KEYIN1, 0, PTZ2_IN_PU, PTZ2_IN, | ||
1495 | KEYIN0_IRQ6, 0, PTZ1_IN_PU, PTZ1_IN, | ||
1496 | 0, 0, 0, 0 } | ||
1497 | }, | ||
1498 | { PINMUX_CFG_REG("PSELA", 0xa405014e, 16, 1) { | ||
1499 | PSA15_KEYIN0, PSA15_IRQ6, | ||
1500 | PSA14_KEYIN4, PSA14_IRQ7, | ||
1501 | 0, 0, | ||
1502 | 0, 0, | ||
1503 | 0, 0, | ||
1504 | 0, 0, | ||
1505 | PSA9_IRQ4, PSA9_BS, | ||
1506 | 0, 0, | ||
1507 | 0, 0, | ||
1508 | 0, 0, | ||
1509 | 0, 0, | ||
1510 | PSA4_IRQ2, PSA4_SDHID2, | ||
1511 | 0, 0, | ||
1512 | 0, 0, | ||
1513 | 0, 0, | ||
1514 | 0, 0 } | ||
1515 | }, | ||
1516 | { PINMUX_CFG_REG("PSELB", 0xa4050150, 16, 1) { | ||
1517 | PSB15_SIOTXD, PSB15_SIUBOSLD, | ||
1518 | PSB14_SIORXD, PSB14_SIUBISLD, | ||
1519 | PSB13_SIOD, PSB13_SIUBILR, | ||
1520 | PSB12_SIOSTRB0, PSB12_SIUBIBT, | ||
1521 | PSB11_SIOSTRB1, PSB11_SIUBOLR, | ||
1522 | PSB10_SIOSCK, PSB10_SIUBOBT, | ||
1523 | PSB9_SIOMCK, PSB9_SIUMCKB, | ||
1524 | PSB8_SIOF0_MCK, PSB8_IRQ3, | ||
1525 | PSB7_SIOF0_TXD, PSB7_IRDA_OUT, | ||
1526 | PSB6_SIOF0_RXD, PSB6_IRDA_IN, | ||
1527 | PSB5_SIOF0_SCK, PSB5_TS_SCK, | ||
1528 | PSB4_SIOF0_SYNC, PSB4_TS_SDEN, | ||
1529 | PSB3_SIOF0_SS1, PSB3_TS_SPSYNC, | ||
1530 | PSB2_SIOF0_SS2, PSB2_SIM_RST, | ||
1531 | PSB1_SIUMCKA, PSB1_SIOF1_MCK, | ||
1532 | PSB0_SIUAOSLD, PSB0_SIOF1_TXD } | ||
1533 | }, | ||
1534 | { PINMUX_CFG_REG("PSELC", 0xa4050152, 16, 1) { | ||
1535 | PSC15_SIUAISLD, PSC15_SIOF1_RXD, | ||
1536 | PSC14_SIUAOBT, PSC14_SIOF1_SCK, | ||
1537 | PSC13_SIUAOLR, PSC13_SIOF1_SYNC, | ||
1538 | PSC12_SIUAIBT, PSC12_SIOF1_SS1, | ||
1539 | PSC11_SIUAILR, PSC11_SIOF1_SS2, | ||
1540 | 0, 0, | ||
1541 | 0, 0, | ||
1542 | 0, 0, | ||
1543 | 0, 0, | ||
1544 | 0, 0, | ||
1545 | 0, 0, | ||
1546 | 0, 0, | ||
1547 | 0, 0, | ||
1548 | 0, 0, | ||
1549 | 0, 0, | ||
1550 | PSC0_NAF, PSC0_VIO } | ||
1551 | }, | ||
1552 | { PINMUX_CFG_REG("PSELD", 0xa4050154, 16, 1) { | ||
1553 | 0, 0, | ||
1554 | 0, 0, | ||
1555 | PSD13_VIO, PSD13_SCIF2, | ||
1556 | PSD12_VIO, PSD12_SCIF1, | ||
1557 | PSD11_VIO, PSD11_SCIF1, | ||
1558 | PSD10_VIO_D0, PSD10_LCDLCLK, | ||
1559 | PSD9_SIOMCK_SIUMCKB, PSD9_SIUFCKB, | ||
1560 | PSD8_SCIF0_SCK, PSD8_TPUTO, | ||
1561 | PSD7_SCIF0_RTS, PSD7_SIUAOSPD, | ||
1562 | PSD6_SCIF0_CTS, PSD6_SIUAISPD, | ||
1563 | PSD5_CS6B_CE1B, PSD5_LCDCS2, | ||
1564 | 0, 0, | ||
1565 | PSD3_LCDVEPWC_LCDVCPWC, PSD3_LCDVEPWC2_LCDVCPWC2, | ||
1566 | PSD2_LCDDON, PSD2_LCDDON2, | ||
1567 | 0, 0, | ||
1568 | PSD0_LCDD19_LCDD0, PSD0_DV } | ||
1569 | }, | ||
1570 | { PINMUX_CFG_REG("PSELE", 0xa4050156, 16, 1) { | ||
1571 | PSE15_SIOF0_MCK_IRQ3, PSE15_SIM_D, | ||
1572 | PSE14_SIOF0_TXD_IRDA_OUT, PSE14_SIM_CLK, | ||
1573 | PSE13_SIOF0_RXD_IRDA_IN, PSE13_TS_SDAT, | ||
1574 | PSE12_LCDVSYN2, PSE12_DACK, | ||
1575 | PSE11_SIUMCKA_SIOF1_MCK, PSE11_SIUFCKA, | ||
1576 | 0, 0, | ||
1577 | 0, 0, | ||
1578 | 0, 0, | ||
1579 | 0, 0, | ||
1580 | 0, 0, | ||
1581 | 0, 0, | ||
1582 | 0, 0, | ||
1583 | PSE3_FLCTL, PSE3_VIO, | ||
1584 | PSE2_NAF2, PSE2_VIO_D10, | ||
1585 | PSE1_NAF1, PSE1_VIO_D9, | ||
1586 | PSE0_NAF0, PSE0_VIO_D8 } | ||
1587 | }, | ||
1588 | { PINMUX_CFG_REG("HIZCRA", 0xa4050158, 16, 1) { | ||
1589 | 0, 0, | ||
1590 | HIZA14_KEYSC, HIZA14_HIZ, | ||
1591 | 0, 0, | ||
1592 | 0, 0, | ||
1593 | 0, 0, | ||
1594 | HIZA10_NAF, HIZA10_HIZ, | ||
1595 | HIZA9_VIO, HIZA9_HIZ, | ||
1596 | HIZA8_LCDC, HIZA8_HIZ, | ||
1597 | HIZA7_LCDC, HIZA7_HIZ, | ||
1598 | HIZA6_LCDC, HIZA6_HIZ, | ||
1599 | 0, 0, | ||
1600 | 0, 0, | ||
1601 | 0, 0, | ||
1602 | 0, 0, | ||
1603 | 0, 0, | ||
1604 | 0, 0 } | ||
1605 | }, | ||
1606 | { PINMUX_CFG_REG("HIZCRB", 0xa405015a, 16, 1) { | ||
1607 | 0, 0, | ||
1608 | 0, 0, | ||
1609 | 0, 0, | ||
1610 | 0, 0, | ||
1611 | 0, 0, | ||
1612 | 0, 0, | ||
1613 | 0, 0, | ||
1614 | 0, 0, | ||
1615 | 0, 0, | ||
1616 | 0, 0, | ||
1617 | 0, 0, | ||
1618 | HIZB4_SIUA, HIZB4_HIZ, | ||
1619 | 0, 0, | ||
1620 | 0, 0, | ||
1621 | HIZB1_VIO, HIZB1_HIZ, | ||
1622 | HIZB0_VIO, HIZB0_HIZ } | ||
1623 | }, | ||
1624 | { PINMUX_CFG_REG("HIZCRC", 0xa405015c, 16, 1) { | ||
1625 | HIZC15_IRQ7, HIZC15_HIZ, | ||
1626 | HIZC14_IRQ6, HIZC14_HIZ, | ||
1627 | HIZC13_IRQ5, HIZC13_HIZ, | ||
1628 | HIZC12_IRQ4, HIZC12_HIZ, | ||
1629 | HIZC11_IRQ3, HIZC11_HIZ, | ||
1630 | HIZC10_IRQ2, HIZC10_HIZ, | ||
1631 | HIZC9_IRQ1, HIZC9_HIZ, | ||
1632 | HIZC8_IRQ0, HIZC8_HIZ, | ||
1633 | 0, 0, | ||
1634 | 0, 0, | ||
1635 | 0, 0, | ||
1636 | 0, 0, | ||
1637 | 0, 0, | ||
1638 | 0, 0, | ||
1639 | 0, 0, | ||
1640 | 0, 0 } | ||
1641 | }, | ||
1642 | { PINMUX_CFG_REG("MSELCRB", 0xa4050182, 16, 1) { | ||
1643 | 0, 0, | ||
1644 | 0, 0, | ||
1645 | 0, 0, | ||
1646 | 0, 0, | ||
1647 | 0, 0, | ||
1648 | 0, 0, | ||
1649 | MSELB9_VIO, MSELB9_VIO2, | ||
1650 | MSELB8_RGB, MSELB8_SYS, | ||
1651 | 0, 0, | ||
1652 | 0, 0, | ||
1653 | 0, 0, | ||
1654 | 0, 0, | ||
1655 | 0, 0, | ||
1656 | 0, 0, | ||
1657 | 0, 0, | ||
1658 | 0, 0 } | ||
1659 | }, | ||
1660 | {} | ||
1661 | }; | ||
1662 | |||
1663 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1664 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { | ||
1665 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
1666 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
1667 | }, | ||
1668 | { PINMUX_DATA_REG("PBDR", 0xa4050122, 8) { | ||
1669 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
1670 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
1671 | }, | ||
1672 | { PINMUX_DATA_REG("PCDR", 0xa4050124, 8) { | ||
1673 | PTC7_DATA, 0, PTC5_DATA, PTC4_DATA, | ||
1674 | PTC3_DATA, PTC2_DATA, 0, PTC0_DATA } | ||
1675 | }, | ||
1676 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
1677 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
1678 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
1679 | }, | ||
1680 | { PINMUX_DATA_REG("PEDR", 0xa4050128, 8) { | ||
1681 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
1682 | 0, 0, PTE1_DATA, PTE0_DATA } | ||
1683 | }, | ||
1684 | { PINMUX_DATA_REG("PFDR", 0xa405012a, 8) { | ||
1685 | 0, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
1686 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
1687 | }, | ||
1688 | { PINMUX_DATA_REG("PGDR", 0xa405012c, 8) { | ||
1689 | 0, 0, 0, PTG4_DATA, | ||
1690 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
1691 | }, | ||
1692 | { PINMUX_DATA_REG("PHDR", 0xa405012e, 8) { | ||
1693 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
1694 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
1695 | }, | ||
1696 | { PINMUX_DATA_REG("PJDR", 0xa4050130, 8) { | ||
1697 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, 0, | ||
1698 | 0, 0, PTJ1_DATA, PTJ0_DATA } | ||
1699 | }, | ||
1700 | { PINMUX_DATA_REG("PKDR", 0xa4050132, 8) { | ||
1701 | 0, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
1702 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
1703 | }, | ||
1704 | { PINMUX_DATA_REG("PLDR", 0xa4050134, 8) { | ||
1705 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
1706 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
1707 | }, | ||
1708 | { PINMUX_DATA_REG("PMDR", 0xa4050136, 8) { | ||
1709 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
1710 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
1711 | }, | ||
1712 | { PINMUX_DATA_REG("PNDR", 0xa4050138, 8) { | ||
1713 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
1714 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
1715 | }, | ||
1716 | { PINMUX_DATA_REG("PQDR", 0xa405013a, 8) { | ||
1717 | 0, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
1718 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
1719 | }, | ||
1720 | { PINMUX_DATA_REG("PRDR", 0xa405013c, 8) { | ||
1721 | 0, 0, 0, PTR4_DATA, | ||
1722 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
1723 | }, | ||
1724 | { PINMUX_DATA_REG("PSDR", 0xa405013e, 8) { | ||
1725 | 0, 0, 0, PTS4_DATA, | ||
1726 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
1727 | }, | ||
1728 | { PINMUX_DATA_REG("PTDR", 0xa4050160, 8) { | ||
1729 | 0, 0, 0, PTT4_DATA, | ||
1730 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
1731 | }, | ||
1732 | { PINMUX_DATA_REG("PUDR", 0xa4050162, 8) { | ||
1733 | 0, 0, 0, PTU4_DATA, | ||
1734 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
1735 | }, | ||
1736 | { PINMUX_DATA_REG("PVDR", 0xa4050164, 8) { | ||
1737 | 0, 0, 0, PTV4_DATA, | ||
1738 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
1739 | }, | ||
1740 | { PINMUX_DATA_REG("PWDR", 0xa4050166, 8) { | ||
1741 | 0, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
1742 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
1743 | }, | ||
1744 | { PINMUX_DATA_REG("PXDR", 0xa4050168, 8) { | ||
1745 | 0, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
1746 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
1747 | }, | ||
1748 | { PINMUX_DATA_REG("PYDR", 0xa405016a, 8) { | ||
1749 | 0, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
1750 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
1751 | }, | ||
1752 | { PINMUX_DATA_REG("PZDR", 0xa405016c, 8) { | ||
1753 | 0, 0, PTZ5_DATA, PTZ4_DATA, | ||
1754 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
1755 | }, | ||
1756 | { }, | ||
1757 | }; | ||
1758 | |||
1759 | struct sh_pfc_soc_info sh7722_pinmux_info = { | ||
1760 | .name = "sh7722_pfc", | ||
1761 | .reserved_id = PINMUX_RESERVED, | ||
1762 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1763 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1764 | .input_pd = { PINMUX_INPUT_PULLDOWN_BEGIN, PINMUX_INPUT_PULLDOWN_END }, | ||
1765 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1766 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1767 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1768 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1769 | |||
1770 | .first_gpio = GPIO_PTA7, | ||
1771 | .last_gpio = GPIO_FN_KEYOUT5_IN5, | ||
1772 | |||
1773 | .gpios = pinmux_gpios, | ||
1774 | .cfg_regs = pinmux_config_regs, | ||
1775 | .data_regs = pinmux_data_regs, | ||
1776 | |||
1777 | .gpio_data = pinmux_data, | ||
1778 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1779 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7723.c b/drivers/pinctrl/sh-pfc/pfc-sh7723.c new file mode 100644 index 000000000000..609673d3d70e --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7723.c | |||
@@ -0,0 +1,1903 @@ | |||
1 | /* | ||
2 | * SH7723 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2008 Magnus Damm | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #include <linux/init.h> | ||
12 | #include <linux/kernel.h> | ||
13 | #include <cpu/sh7723.h> | ||
14 | |||
15 | #include "sh_pfc.h" | ||
16 | |||
17 | enum { | ||
18 | PINMUX_RESERVED = 0, | ||
19 | |||
20 | PINMUX_DATA_BEGIN, | ||
21 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
22 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
23 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
24 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
25 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
26 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
27 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
28 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
29 | PTE5_DATA, PTE4_DATA, PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
30 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
31 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
32 | PTG5_DATA, PTG4_DATA, PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
33 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
34 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
35 | PTJ7_DATA, PTJ5_DATA, PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
36 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
37 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
38 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
39 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
40 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
41 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
42 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
43 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
44 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
45 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
46 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
47 | PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
48 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
49 | PTT5_DATA, PTT4_DATA, PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
50 | PTU5_DATA, PTU4_DATA, PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
51 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
52 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
53 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
54 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
55 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
56 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
57 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
58 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
59 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
60 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
61 | PINMUX_DATA_END, | ||
62 | |||
63 | PINMUX_INPUT_BEGIN, | ||
64 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
65 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
66 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
67 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
68 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
69 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
70 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
71 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
72 | PTE5_IN, PTE4_IN, PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
73 | PTF7_IN, PTF6_IN, PTF5_IN, PTF4_IN, | ||
74 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
75 | PTH7_IN, PTH6_IN, PTH5_IN, PTH4_IN, | ||
76 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
77 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
78 | PTK7_IN, PTK6_IN, PTK5_IN, PTK4_IN, | ||
79 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
80 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, | ||
81 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
82 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
83 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
84 | PTN7_IN, PTN6_IN, PTN5_IN, PTN4_IN, | ||
85 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
86 | PTQ3_IN, PTQ2_IN, PTQ1_IN, PTQ0_IN, | ||
87 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
88 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
89 | PTS7_IN, PTS6_IN, PTS5_IN, PTS4_IN, | ||
90 | PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
91 | PTT5_IN, PTT4_IN, PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
92 | PTU5_IN, PTU4_IN, PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
93 | PTV7_IN, PTV6_IN, PTV5_IN, PTV4_IN, | ||
94 | PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
95 | PTW7_IN, PTW6_IN, PTW5_IN, PTW4_IN, | ||
96 | PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
97 | PTX7_IN, PTX6_IN, PTX5_IN, PTX4_IN, | ||
98 | PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
99 | PTY7_IN, PTY6_IN, PTY5_IN, PTY4_IN, | ||
100 | PTY3_IN, PTY2_IN, PTY1_IN, PTY0_IN, | ||
101 | PTZ7_IN, PTZ6_IN, PTZ5_IN, PTZ4_IN, | ||
102 | PTZ3_IN, PTZ2_IN, PTZ1_IN, PTZ0_IN, | ||
103 | PINMUX_INPUT_END, | ||
104 | |||
105 | PINMUX_INPUT_PULLUP_BEGIN, | ||
106 | PTA4_IN_PU, PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
107 | PTB2_IN_PU, PTB1_IN_PU, | ||
108 | PTR2_IN_PU, | ||
109 | PINMUX_INPUT_PULLUP_END, | ||
110 | |||
111 | PINMUX_OUTPUT_BEGIN, | ||
112 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
113 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
114 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
115 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
116 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
117 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
118 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
119 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
120 | PTE5_OUT, PTE4_OUT, PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
121 | PTF7_OUT, PTF6_OUT, PTF5_OUT, PTF4_OUT, | ||
122 | PTF3_OUT, PTF2_OUT, PTF1_OUT, PTF0_OUT, | ||
123 | PTG5_OUT, PTG4_OUT, PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
124 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
125 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
126 | PTJ7_OUT, PTJ5_OUT, PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
127 | PTK7_OUT, PTK6_OUT, PTK5_OUT, PTK4_OUT, | ||
128 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
129 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
130 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
131 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
132 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
133 | PTN7_OUT, PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
134 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, | ||
135 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
136 | PTR1_OUT, PTR0_OUT, | ||
137 | PTS7_OUT, PTS6_OUT, PTS5_OUT, PTS4_OUT, | ||
138 | PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
139 | PTT5_OUT, PTT4_OUT, PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
140 | PTU5_OUT, PTU4_OUT, PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
141 | PTV7_OUT, PTV6_OUT, PTV5_OUT, PTV4_OUT, | ||
142 | PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
143 | PTW7_OUT, PTW6_OUT, PTW5_OUT, PTW4_OUT, | ||
144 | PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
145 | PTX7_OUT, PTX6_OUT, PTX5_OUT, PTX4_OUT, | ||
146 | PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
147 | PTY7_OUT, PTY6_OUT, PTY5_OUT, PTY4_OUT, | ||
148 | PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
149 | PTZ7_OUT, PTZ6_OUT, PTZ5_OUT, PTZ4_OUT, | ||
150 | PTZ3_OUT, PTZ2_OUT, PTZ1_OUT, PTZ0_OUT, | ||
151 | PINMUX_OUTPUT_END, | ||
152 | |||
153 | PINMUX_FUNCTION_BEGIN, | ||
154 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
155 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
156 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
157 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
158 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
159 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
160 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
161 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
162 | PTE5_FN, PTE4_FN, PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
163 | PTF7_FN, PTF6_FN, PTF5_FN, PTF4_FN, | ||
164 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
165 | PTG5_FN, PTG4_FN, PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
166 | PTH7_FN, PTH6_FN, PTH5_FN, PTH4_FN, | ||
167 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
168 | PTJ7_FN, PTJ5_FN, PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
169 | PTK7_FN, PTK6_FN, PTK5_FN, PTK4_FN, | ||
170 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
171 | PTL7_FN, PTL6_FN, PTL5_FN, PTL4_FN, | ||
172 | PTL3_FN, PTL2_FN, PTL1_FN, PTL0_FN, | ||
173 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
174 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
175 | PTN7_FN, PTN6_FN, PTN5_FN, PTN4_FN, | ||
176 | PTN3_FN, PTN2_FN, PTN1_FN, PTN0_FN, | ||
177 | PTQ3_FN, PTQ2_FN, PTQ1_FN, PTQ0_FN, | ||
178 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
179 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
180 | PTS7_FN, PTS6_FN, PTS5_FN, PTS4_FN, | ||
181 | PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
182 | PTT5_FN, PTT4_FN, PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
183 | PTU5_FN, PTU4_FN, PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
184 | PTV7_FN, PTV6_FN, PTV5_FN, PTV4_FN, | ||
185 | PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
186 | PTW7_FN, PTW6_FN, PTW5_FN, PTW4_FN, | ||
187 | PTW3_FN, PTW2_FN, PTW1_FN, PTW0_FN, | ||
188 | PTX7_FN, PTX6_FN, PTX5_FN, PTX4_FN, | ||
189 | PTX3_FN, PTX2_FN, PTX1_FN, PTX0_FN, | ||
190 | PTY7_FN, PTY6_FN, PTY5_FN, PTY4_FN, | ||
191 | PTY3_FN, PTY2_FN, PTY1_FN, PTY0_FN, | ||
192 | PTZ7_FN, PTZ6_FN, PTZ5_FN, PTZ4_FN, | ||
193 | PTZ3_FN, PTZ2_FN, PTZ1_FN, PTZ0_FN, | ||
194 | |||
195 | |||
196 | PSA15_PSA14_FN1, PSA15_PSA14_FN2, | ||
197 | PSA13_PSA12_FN1, PSA13_PSA12_FN2, | ||
198 | PSA11_PSA10_FN1, PSA11_PSA10_FN2, | ||
199 | PSA5_PSA4_FN1, PSA5_PSA4_FN2, PSA5_PSA4_FN3, | ||
200 | PSA3_PSA2_FN1, PSA3_PSA2_FN2, | ||
201 | PSB15_PSB14_FN1, PSB15_PSB14_FN2, | ||
202 | PSB13_PSB12_LCDC_RGB, PSB13_PSB12_LCDC_SYS, | ||
203 | PSB9_PSB8_FN1, PSB9_PSB8_FN2, PSB9_PSB8_FN3, | ||
204 | PSB7_PSB6_FN1, PSB7_PSB6_FN2, | ||
205 | PSB5_PSB4_FN1, PSB5_PSB4_FN2, | ||
206 | PSB3_PSB2_FN1, PSB3_PSB2_FN2, | ||
207 | PSC15_PSC14_FN1, PSC15_PSC14_FN2, | ||
208 | PSC13_PSC12_FN1, PSC13_PSC12_FN2, | ||
209 | PSC11_PSC10_FN1, PSC11_PSC10_FN2, PSC11_PSC10_FN3, | ||
210 | PSC9_PSC8_FN1, PSC9_PSC8_FN2, | ||
211 | PSC7_PSC6_FN1, PSC7_PSC6_FN2, PSC7_PSC6_FN3, | ||
212 | PSD15_PSD14_FN1, PSD15_PSD14_FN2, | ||
213 | PSD13_PSD12_FN1, PSD13_PSD12_FN2, | ||
214 | PSD11_PSD10_FN1, PSD11_PSD10_FN2, PSD11_PSD10_FN3, | ||
215 | PSD9_PSD8_FN1, PSD9_PSD8_FN2, | ||
216 | PSD7_PSD6_FN1, PSD7_PSD6_FN2, | ||
217 | PSD5_PSD4_FN1, PSD5_PSD4_FN2, | ||
218 | PSD3_PSD2_FN1, PSD3_PSD2_FN2, | ||
219 | PSD1_PSD0_FN1, PSD1_PSD0_FN2, | ||
220 | PINMUX_FUNCTION_END, | ||
221 | |||
222 | PINMUX_MARK_BEGIN, | ||
223 | SCIF0_PTT_TXD_MARK, SCIF0_PTT_RXD_MARK, | ||
224 | SCIF0_PTT_SCK_MARK, SCIF0_PTU_TXD_MARK, | ||
225 | SCIF0_PTU_RXD_MARK, SCIF0_PTU_SCK_MARK, | ||
226 | |||
227 | SCIF1_PTS_TXD_MARK, SCIF1_PTS_RXD_MARK, | ||
228 | SCIF1_PTS_SCK_MARK, SCIF1_PTV_TXD_MARK, | ||
229 | SCIF1_PTV_RXD_MARK, SCIF1_PTV_SCK_MARK, | ||
230 | |||
231 | SCIF2_PTT_TXD_MARK, SCIF2_PTT_RXD_MARK, | ||
232 | SCIF2_PTT_SCK_MARK, SCIF2_PTU_TXD_MARK, | ||
233 | SCIF2_PTU_RXD_MARK, SCIF2_PTU_SCK_MARK, | ||
234 | |||
235 | SCIF3_PTS_TXD_MARK, SCIF3_PTS_RXD_MARK, | ||
236 | SCIF3_PTS_SCK_MARK, SCIF3_PTS_RTS_MARK, | ||
237 | SCIF3_PTS_CTS_MARK, SCIF3_PTV_TXD_MARK, | ||
238 | SCIF3_PTV_RXD_MARK, SCIF3_PTV_SCK_MARK, | ||
239 | SCIF3_PTV_RTS_MARK, SCIF3_PTV_CTS_MARK, | ||
240 | |||
241 | SCIF4_PTE_TXD_MARK, SCIF4_PTE_RXD_MARK, | ||
242 | SCIF4_PTE_SCK_MARK, SCIF4_PTN_TXD_MARK, | ||
243 | SCIF4_PTN_RXD_MARK, SCIF4_PTN_SCK_MARK, | ||
244 | |||
245 | SCIF5_PTE_TXD_MARK, SCIF5_PTE_RXD_MARK, | ||
246 | SCIF5_PTE_SCK_MARK, SCIF5_PTN_TXD_MARK, | ||
247 | SCIF5_PTN_RXD_MARK, SCIF5_PTN_SCK_MARK, | ||
248 | |||
249 | VIO_D15_MARK, VIO_D14_MARK, VIO_D13_MARK, VIO_D12_MARK, | ||
250 | VIO_D11_MARK, VIO_D10_MARK, VIO_D9_MARK, VIO_D8_MARK, | ||
251 | VIO_D7_MARK, VIO_D6_MARK, VIO_D5_MARK, VIO_D4_MARK, | ||
252 | VIO_D3_MARK, VIO_D2_MARK, VIO_D1_MARK, VIO_D0_MARK, | ||
253 | VIO_FLD_MARK, VIO_CKO_MARK, | ||
254 | VIO_VD1_MARK, VIO_HD1_MARK, VIO_CLK1_MARK, | ||
255 | VIO_HD2_MARK, VIO_VD2_MARK, VIO_CLK2_MARK, | ||
256 | |||
257 | LCDD23_MARK, LCDD22_MARK, LCDD21_MARK, LCDD20_MARK, | ||
258 | LCDD19_MARK, LCDD18_MARK, LCDD17_MARK, LCDD16_MARK, | ||
259 | LCDD15_MARK, LCDD14_MARK, LCDD13_MARK, LCDD12_MARK, | ||
260 | LCDD11_MARK, LCDD10_MARK, LCDD9_MARK, LCDD8_MARK, | ||
261 | LCDD7_MARK, LCDD6_MARK, LCDD5_MARK, LCDD4_MARK, | ||
262 | LCDD3_MARK, LCDD2_MARK, LCDD1_MARK, LCDD0_MARK, | ||
263 | LCDDON_MARK, LCDVCPWC_MARK, LCDVEPWC_MARK, | ||
264 | LCDVSYN_MARK, LCDDCK_MARK, LCDHSYN_MARK, LCDDISP_MARK, | ||
265 | LCDRS_MARK, LCDCS_MARK, LCDWR_MARK, LCDRD_MARK, | ||
266 | LCDLCLK_PTR_MARK, LCDLCLK_PTW_MARK, | ||
267 | |||
268 | IRQ0_MARK, IRQ1_MARK, IRQ2_MARK, IRQ3_MARK, | ||
269 | IRQ4_MARK, IRQ5_MARK, IRQ6_MARK, IRQ7_MARK, | ||
270 | |||
271 | AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK, | ||
272 | AUDCK_MARK, AUDSYNC_MARK, | ||
273 | |||
274 | SDHI0CD_PTD_MARK, SDHI0WP_PTD_MARK, | ||
275 | SDHI0D3_PTD_MARK, SDHI0D2_PTD_MARK, | ||
276 | SDHI0D1_PTD_MARK, SDHI0D0_PTD_MARK, | ||
277 | SDHI0CMD_PTD_MARK, SDHI0CLK_PTD_MARK, | ||
278 | |||
279 | SDHI0CD_PTS_MARK, SDHI0WP_PTS_MARK, | ||
280 | SDHI0D3_PTS_MARK, SDHI0D2_PTS_MARK, | ||
281 | SDHI0D1_PTS_MARK, SDHI0D0_PTS_MARK, | ||
282 | SDHI0CMD_PTS_MARK, SDHI0CLK_PTS_MARK, | ||
283 | |||
284 | SDHI1CD_MARK, SDHI1WP_MARK, SDHI1D3_MARK, SDHI1D2_MARK, | ||
285 | SDHI1D1_MARK, SDHI1D0_MARK, SDHI1CMD_MARK, SDHI1CLK_MARK, | ||
286 | |||
287 | SIUAFCK_MARK, SIUAILR_MARK, SIUAIBT_MARK, SIUAISLD_MARK, | ||
288 | SIUAOLR_MARK, SIUAOBT_MARK, SIUAOSLD_MARK, SIUAMCK_MARK, | ||
289 | SIUAISPD_MARK, SIUAOSPD_MARK, | ||
290 | |||
291 | SIUBFCK_MARK, SIUBILR_MARK, SIUBIBT_MARK, SIUBISLD_MARK, | ||
292 | SIUBOLR_MARK, SIUBOBT_MARK, SIUBOSLD_MARK, SIUBMCK_MARK, | ||
293 | |||
294 | IRDA_IN_MARK, IRDA_OUT_MARK, | ||
295 | |||
296 | DV_CLKI_MARK, DV_CLK_MARK, DV_HSYNC_MARK, DV_VSYNC_MARK, | ||
297 | DV_D15_MARK, DV_D14_MARK, DV_D13_MARK, DV_D12_MARK, | ||
298 | DV_D11_MARK, DV_D10_MARK, DV_D9_MARK, DV_D8_MARK, | ||
299 | DV_D7_MARK, DV_D6_MARK, DV_D5_MARK, DV_D4_MARK, | ||
300 | DV_D3_MARK, DV_D2_MARK, DV_D1_MARK, DV_D0_MARK, | ||
301 | |||
302 | KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, KEYIN4_MARK, | ||
303 | KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK, | ||
304 | KEYOUT4_IN6_MARK, KEYOUT5_IN5_MARK, | ||
305 | |||
306 | MSIOF0_PTF_TXD_MARK, MSIOF0_PTF_RXD_MARK, MSIOF0_PTF_MCK_MARK, | ||
307 | MSIOF0_PTF_TSYNC_MARK, MSIOF0_PTF_TSCK_MARK, MSIOF0_PTF_RSYNC_MARK, | ||
308 | MSIOF0_PTF_RSCK_MARK, MSIOF0_PTF_SS1_MARK, MSIOF0_PTF_SS2_MARK, | ||
309 | |||
310 | MSIOF0_PTT_TXD_MARK, MSIOF0_PTT_RXD_MARK, MSIOF0_PTX_MCK_MARK, | ||
311 | MSIOF0_PTT_TSYNC_MARK, MSIOF0_PTT_TSCK_MARK, MSIOF0_PTT_RSYNC_MARK, | ||
312 | MSIOF0_PTT_RSCK_MARK, MSIOF0_PTT_SS1_MARK, MSIOF0_PTT_SS2_MARK, | ||
313 | |||
314 | MSIOF1_TXD_MARK, MSIOF1_RXD_MARK, MSIOF1_MCK_MARK, | ||
315 | MSIOF1_TSYNC_MARK, MSIOF1_TSCK_MARK, MSIOF1_RSYNC_MARK, | ||
316 | MSIOF1_RSCK_MARK, MSIOF1_SS1_MARK, MSIOF1_SS2_MARK, | ||
317 | |||
318 | TS0_SDAT_MARK, TS0_SCK_MARK, TS0_SDEN_MARK, TS0_SPSYNC_MARK, | ||
319 | |||
320 | FCE_MARK, NAF7_MARK, NAF6_MARK, NAF5_MARK, NAF4_MARK, | ||
321 | NAF3_MARK, NAF2_MARK, NAF1_MARK, NAF0_MARK, FCDE_MARK, | ||
322 | FOE_MARK, FSC_MARK, FWE_MARK, FRB_MARK, | ||
323 | |||
324 | DACK1_MARK, DREQ1_MARK, DACK0_MARK, DREQ0_MARK, | ||
325 | |||
326 | AN3_MARK, AN2_MARK, AN1_MARK, AN0_MARK, ADTRG_MARK, | ||
327 | |||
328 | STATUS0_MARK, PDSTATUS_MARK, | ||
329 | |||
330 | TPUTO3_MARK, TPUTO2_MARK, TPUTO1_MARK, TPUTO0_MARK, | ||
331 | |||
332 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, | ||
333 | D27_MARK, D26_MARK, D25_MARK, D24_MARK, | ||
334 | D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
335 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
336 | IOIS16_MARK, WAIT_MARK, BS_MARK, | ||
337 | A25_MARK, A24_MARK, A23_MARK, A22_MARK, | ||
338 | CS6B_CE1B_MARK, CS6A_CE2B_MARK, | ||
339 | CS5B_CE1A_MARK, CS5A_CE2A_MARK, | ||
340 | WE3_ICIOWR_MARK, WE2_ICIORD_MARK, | ||
341 | |||
342 | IDED15_MARK, IDED14_MARK, IDED13_MARK, IDED12_MARK, | ||
343 | IDED11_MARK, IDED10_MARK, IDED9_MARK, IDED8_MARK, | ||
344 | IDED7_MARK, IDED6_MARK, IDED5_MARK, IDED4_MARK, | ||
345 | IDED3_MARK, IDED2_MARK, IDED1_MARK, IDED0_MARK, | ||
346 | DIRECTION_MARK, EXBUF_ENB_MARK, IDERST_MARK, IODACK_MARK, | ||
347 | IODREQ_MARK, IDEIORDY_MARK, IDEINT_MARK, IDEIOWR_MARK, | ||
348 | IDEIORD_MARK, IDECS1_MARK, IDECS0_MARK, IDEA2_MARK, | ||
349 | IDEA1_MARK, IDEA0_MARK, | ||
350 | PINMUX_MARK_END, | ||
351 | }; | ||
352 | |||
353 | static pinmux_enum_t pinmux_data[] = { | ||
354 | /* PTA GPIO */ | ||
355 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT), | ||
356 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT), | ||
357 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT), | ||
358 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT, PTA4_IN_PU), | ||
359 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT, PTA3_IN_PU), | ||
360 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT, PTA2_IN_PU), | ||
361 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT, PTA1_IN_PU), | ||
362 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT, PTA0_IN_PU), | ||
363 | |||
364 | /* PTB GPIO */ | ||
365 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT), | ||
366 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT), | ||
367 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT), | ||
368 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT), | ||
369 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT), | ||
370 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT, PTB2_IN_PU), | ||
371 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT, PTB1_IN_PU), | ||
372 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT), | ||
373 | |||
374 | /* PTC GPIO */ | ||
375 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT), | ||
376 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT), | ||
377 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT), | ||
378 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT), | ||
379 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT), | ||
380 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT), | ||
381 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT), | ||
382 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT), | ||
383 | |||
384 | /* PTD GPIO */ | ||
385 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT), | ||
386 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT), | ||
387 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT), | ||
388 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT), | ||
389 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT), | ||
390 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT), | ||
391 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT), | ||
392 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT), | ||
393 | |||
394 | /* PTE GPIO */ | ||
395 | PINMUX_DATA(PTE5_DATA, PTE5_IN, PTE5_OUT), | ||
396 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT), | ||
397 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT), | ||
398 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT), | ||
399 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT), | ||
400 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT), | ||
401 | |||
402 | /* PTF GPIO */ | ||
403 | PINMUX_DATA(PTF7_DATA, PTF7_IN, PTF7_OUT), | ||
404 | PINMUX_DATA(PTF6_DATA, PTF6_IN, PTF6_OUT), | ||
405 | PINMUX_DATA(PTF5_DATA, PTF5_IN, PTF5_OUT), | ||
406 | PINMUX_DATA(PTF4_DATA, PTF4_IN, PTF4_OUT), | ||
407 | PINMUX_DATA(PTF3_DATA, PTF3_IN, PTF3_OUT), | ||
408 | PINMUX_DATA(PTF2_DATA, PTF2_IN, PTF2_OUT), | ||
409 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_OUT), | ||
410 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT), | ||
411 | |||
412 | /* PTG GPIO */ | ||
413 | PINMUX_DATA(PTG5_DATA, PTG5_OUT), | ||
414 | PINMUX_DATA(PTG4_DATA, PTG4_OUT), | ||
415 | PINMUX_DATA(PTG3_DATA, PTG3_OUT), | ||
416 | PINMUX_DATA(PTG2_DATA, PTG2_OUT), | ||
417 | PINMUX_DATA(PTG1_DATA, PTG1_OUT), | ||
418 | PINMUX_DATA(PTG0_DATA, PTG0_OUT), | ||
419 | |||
420 | /* PTH GPIO */ | ||
421 | PINMUX_DATA(PTH7_DATA, PTH7_IN, PTH7_OUT), | ||
422 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT), | ||
423 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT), | ||
424 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT), | ||
425 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT), | ||
426 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT), | ||
427 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT), | ||
428 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT), | ||
429 | |||
430 | /* PTJ GPIO */ | ||
431 | PINMUX_DATA(PTJ7_DATA, PTJ7_OUT), | ||
432 | PINMUX_DATA(PTJ5_DATA, PTJ5_OUT), | ||
433 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT), | ||
434 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT), | ||
435 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT), | ||
436 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT), | ||
437 | |||
438 | /* PTK GPIO */ | ||
439 | PINMUX_DATA(PTK7_DATA, PTK7_IN, PTK7_OUT), | ||
440 | PINMUX_DATA(PTK6_DATA, PTK6_IN, PTK6_OUT), | ||
441 | PINMUX_DATA(PTK5_DATA, PTK5_IN, PTK5_OUT), | ||
442 | PINMUX_DATA(PTK4_DATA, PTK4_IN, PTK4_OUT), | ||
443 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT), | ||
444 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT), | ||
445 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT), | ||
446 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT), | ||
447 | |||
448 | /* PTL GPIO */ | ||
449 | PINMUX_DATA(PTL7_DATA, PTL7_IN, PTL7_OUT), | ||
450 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT), | ||
451 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT), | ||
452 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT), | ||
453 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT), | ||
454 | PINMUX_DATA(PTL2_DATA, PTL2_IN, PTL2_OUT), | ||
455 | PINMUX_DATA(PTL1_DATA, PTL1_IN, PTL1_OUT), | ||
456 | PINMUX_DATA(PTL0_DATA, PTL0_IN, PTL0_OUT), | ||
457 | |||
458 | /* PTM GPIO */ | ||
459 | PINMUX_DATA(PTM7_DATA, PTM7_IN, PTM7_OUT), | ||
460 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT), | ||
461 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT), | ||
462 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT), | ||
463 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT), | ||
464 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT), | ||
465 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT), | ||
466 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT), | ||
467 | |||
468 | /* PTN GPIO */ | ||
469 | PINMUX_DATA(PTN7_DATA, PTN7_IN, PTN7_OUT), | ||
470 | PINMUX_DATA(PTN6_DATA, PTN6_IN, PTN6_OUT), | ||
471 | PINMUX_DATA(PTN5_DATA, PTN5_IN, PTN5_OUT), | ||
472 | PINMUX_DATA(PTN4_DATA, PTN4_IN, PTN4_OUT), | ||
473 | PINMUX_DATA(PTN3_DATA, PTN3_IN, PTN3_OUT), | ||
474 | PINMUX_DATA(PTN2_DATA, PTN2_IN, PTN2_OUT), | ||
475 | PINMUX_DATA(PTN1_DATA, PTN1_IN, PTN1_OUT), | ||
476 | PINMUX_DATA(PTN0_DATA, PTN0_IN, PTN0_OUT), | ||
477 | |||
478 | /* PTQ GPIO */ | ||
479 | PINMUX_DATA(PTQ3_DATA, PTQ3_IN), | ||
480 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN), | ||
481 | PINMUX_DATA(PTQ1_DATA, PTQ1_IN), | ||
482 | PINMUX_DATA(PTQ0_DATA, PTQ0_IN), | ||
483 | |||
484 | /* PTR GPIO */ | ||
485 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT), | ||
486 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT), | ||
487 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT), | ||
488 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT), | ||
489 | PINMUX_DATA(PTR3_DATA, PTR3_IN), | ||
490 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_IN_PU), | ||
491 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT), | ||
492 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT), | ||
493 | |||
494 | /* PTS GPIO */ | ||
495 | PINMUX_DATA(PTS7_DATA, PTS7_IN, PTS7_OUT), | ||
496 | PINMUX_DATA(PTS6_DATA, PTS6_IN, PTS6_OUT), | ||
497 | PINMUX_DATA(PTS5_DATA, PTS5_IN, PTS5_OUT), | ||
498 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT), | ||
499 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT), | ||
500 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT), | ||
501 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT), | ||
502 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT), | ||
503 | |||
504 | /* PTT GPIO */ | ||
505 | PINMUX_DATA(PTT5_DATA, PTT5_IN, PTT5_OUT), | ||
506 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT), | ||
507 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT), | ||
508 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT), | ||
509 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT), | ||
510 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT), | ||
511 | |||
512 | /* PTU GPIO */ | ||
513 | PINMUX_DATA(PTU5_DATA, PTU5_IN, PTU5_OUT), | ||
514 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT), | ||
515 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT), | ||
516 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT), | ||
517 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT), | ||
518 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT), | ||
519 | |||
520 | /* PTV GPIO */ | ||
521 | PINMUX_DATA(PTV7_DATA, PTV7_IN, PTV7_OUT), | ||
522 | PINMUX_DATA(PTV6_DATA, PTV6_IN, PTV6_OUT), | ||
523 | PINMUX_DATA(PTV5_DATA, PTV5_IN, PTV5_OUT), | ||
524 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT), | ||
525 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT), | ||
526 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT), | ||
527 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT), | ||
528 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT), | ||
529 | |||
530 | /* PTW GPIO */ | ||
531 | PINMUX_DATA(PTW7_DATA, PTW7_IN, PTW7_OUT), | ||
532 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_OUT), | ||
533 | PINMUX_DATA(PTW5_DATA, PTW5_IN, PTW5_OUT), | ||
534 | PINMUX_DATA(PTW4_DATA, PTW4_IN, PTW4_OUT), | ||
535 | PINMUX_DATA(PTW3_DATA, PTW3_IN, PTW3_OUT), | ||
536 | PINMUX_DATA(PTW2_DATA, PTW2_IN, PTW2_OUT), | ||
537 | PINMUX_DATA(PTW1_DATA, PTW1_IN, PTW1_OUT), | ||
538 | PINMUX_DATA(PTW0_DATA, PTW0_IN, PTW0_OUT), | ||
539 | |||
540 | /* PTX GPIO */ | ||
541 | PINMUX_DATA(PTX7_DATA, PTX7_IN, PTX7_OUT), | ||
542 | PINMUX_DATA(PTX6_DATA, PTX6_IN, PTX6_OUT), | ||
543 | PINMUX_DATA(PTX5_DATA, PTX5_IN, PTX5_OUT), | ||
544 | PINMUX_DATA(PTX4_DATA, PTX4_IN, PTX4_OUT), | ||
545 | PINMUX_DATA(PTX3_DATA, PTX3_IN, PTX3_OUT), | ||
546 | PINMUX_DATA(PTX2_DATA, PTX2_IN, PTX2_OUT), | ||
547 | PINMUX_DATA(PTX1_DATA, PTX1_IN, PTX1_OUT), | ||
548 | PINMUX_DATA(PTX0_DATA, PTX0_IN, PTX0_OUT), | ||
549 | |||
550 | /* PTY GPIO */ | ||
551 | PINMUX_DATA(PTY7_DATA, PTY7_IN, PTY7_OUT), | ||
552 | PINMUX_DATA(PTY6_DATA, PTY6_IN, PTY6_OUT), | ||
553 | PINMUX_DATA(PTY5_DATA, PTY5_IN, PTY5_OUT), | ||
554 | PINMUX_DATA(PTY4_DATA, PTY4_IN, PTY4_OUT), | ||
555 | PINMUX_DATA(PTY3_DATA, PTY3_IN, PTY3_OUT), | ||
556 | PINMUX_DATA(PTY2_DATA, PTY2_IN, PTY2_OUT), | ||
557 | PINMUX_DATA(PTY1_DATA, PTY1_IN, PTY1_OUT), | ||
558 | PINMUX_DATA(PTY0_DATA, PTY0_IN, PTY0_OUT), | ||
559 | |||
560 | /* PTZ GPIO */ | ||
561 | PINMUX_DATA(PTZ7_DATA, PTZ7_IN, PTZ7_OUT), | ||
562 | PINMUX_DATA(PTZ6_DATA, PTZ6_IN, PTZ6_OUT), | ||
563 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_OUT), | ||
564 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_OUT), | ||
565 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_OUT), | ||
566 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_OUT), | ||
567 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_OUT), | ||
568 | PINMUX_DATA(PTZ0_DATA, PTZ0_IN, PTZ0_OUT), | ||
569 | |||
570 | /* PTA FN */ | ||
571 | PINMUX_DATA(D23_MARK, PSA15_PSA14_FN1, PTA7_FN), | ||
572 | PINMUX_DATA(KEYOUT2_MARK, PSA15_PSA14_FN2, PTA7_FN), | ||
573 | PINMUX_DATA(D22_MARK, PSA15_PSA14_FN1, PTA6_FN), | ||
574 | PINMUX_DATA(KEYOUT1_MARK, PSA15_PSA14_FN2, PTA6_FN), | ||
575 | PINMUX_DATA(D21_MARK, PSA15_PSA14_FN1, PTA5_FN), | ||
576 | PINMUX_DATA(KEYOUT0_MARK, PSA15_PSA14_FN2, PTA5_FN), | ||
577 | PINMUX_DATA(D20_MARK, PSA15_PSA14_FN1, PTA4_FN), | ||
578 | PINMUX_DATA(KEYIN4_MARK, PSA15_PSA14_FN2, PTA4_FN), | ||
579 | PINMUX_DATA(D19_MARK, PSA15_PSA14_FN1, PTA3_FN), | ||
580 | PINMUX_DATA(KEYIN3_MARK, PSA15_PSA14_FN2, PTA3_FN), | ||
581 | PINMUX_DATA(D18_MARK, PSA15_PSA14_FN1, PTA2_FN), | ||
582 | PINMUX_DATA(KEYIN2_MARK, PSA15_PSA14_FN2, PTA2_FN), | ||
583 | PINMUX_DATA(D17_MARK, PSA15_PSA14_FN1, PTA1_FN), | ||
584 | PINMUX_DATA(KEYIN1_MARK, PSA15_PSA14_FN2, PTA1_FN), | ||
585 | PINMUX_DATA(D16_MARK, PSA15_PSA14_FN1, PTA0_FN), | ||
586 | PINMUX_DATA(KEYIN0_MARK, PSA15_PSA14_FN2, PTA0_FN), | ||
587 | |||
588 | /* PTB FN */ | ||
589 | PINMUX_DATA(D31_MARK, PTB7_FN), | ||
590 | PINMUX_DATA(D30_MARK, PTB6_FN), | ||
591 | PINMUX_DATA(D29_MARK, PTB5_FN), | ||
592 | PINMUX_DATA(D28_MARK, PTB4_FN), | ||
593 | PINMUX_DATA(D27_MARK, PTB3_FN), | ||
594 | PINMUX_DATA(D26_MARK, PSA15_PSA14_FN1, PTB2_FN), | ||
595 | PINMUX_DATA(KEYOUT5_IN5_MARK, PSA15_PSA14_FN2, PTB2_FN), | ||
596 | PINMUX_DATA(D25_MARK, PSA15_PSA14_FN1, PTB1_FN), | ||
597 | PINMUX_DATA(KEYOUT4_IN6_MARK, PSA15_PSA14_FN2, PTB1_FN), | ||
598 | PINMUX_DATA(D24_MARK, PSA15_PSA14_FN1, PTB0_FN), | ||
599 | PINMUX_DATA(KEYOUT3_MARK, PSA15_PSA14_FN2, PTB0_FN), | ||
600 | |||
601 | /* PTC FN */ | ||
602 | PINMUX_DATA(IDED15_MARK, PSA11_PSA10_FN1, PTC7_FN), | ||
603 | PINMUX_DATA(SDHI1CD_MARK, PSA11_PSA10_FN2, PTC7_FN), | ||
604 | PINMUX_DATA(IDED14_MARK, PSA11_PSA10_FN1, PTC6_FN), | ||
605 | PINMUX_DATA(SDHI1WP_MARK, PSA11_PSA10_FN2, PTC6_FN), | ||
606 | PINMUX_DATA(IDED13_MARK, PSA11_PSA10_FN1, PTC5_FN), | ||
607 | PINMUX_DATA(SDHI1D3_MARK, PSA11_PSA10_FN2, PTC5_FN), | ||
608 | PINMUX_DATA(IDED12_MARK, PSA11_PSA10_FN1, PTC4_FN), | ||
609 | PINMUX_DATA(SDHI1D2_MARK, PSA11_PSA10_FN2, PTC4_FN), | ||
610 | PINMUX_DATA(IDED11_MARK, PSA11_PSA10_FN1, PTC3_FN), | ||
611 | PINMUX_DATA(SDHI1D1_MARK, PSA11_PSA10_FN2, PTC3_FN), | ||
612 | PINMUX_DATA(IDED10_MARK, PSA11_PSA10_FN1, PTC2_FN), | ||
613 | PINMUX_DATA(SDHI1D0_MARK, PSA11_PSA10_FN2, PTC2_FN), | ||
614 | PINMUX_DATA(IDED9_MARK, PSA11_PSA10_FN1, PTC1_FN), | ||
615 | PINMUX_DATA(SDHI1CMD_MARK, PSA11_PSA10_FN2, PTC1_FN), | ||
616 | PINMUX_DATA(IDED8_MARK, PSA11_PSA10_FN1, PTC0_FN), | ||
617 | PINMUX_DATA(SDHI1CLK_MARK, PSA11_PSA10_FN2, PTC0_FN), | ||
618 | |||
619 | /* PTD FN */ | ||
620 | PINMUX_DATA(IDED7_MARK, PSA11_PSA10_FN1, PTD7_FN), | ||
621 | PINMUX_DATA(SDHI0CD_PTD_MARK, PSA11_PSA10_FN2, PTD7_FN), | ||
622 | PINMUX_DATA(IDED6_MARK, PSA11_PSA10_FN1, PTD6_FN), | ||
623 | PINMUX_DATA(SDHI0WP_PTD_MARK, PSA11_PSA10_FN2, PTD6_FN), | ||
624 | PINMUX_DATA(IDED5_MARK, PSA11_PSA10_FN1, PTD5_FN), | ||
625 | PINMUX_DATA(SDHI0D3_PTD_MARK, PSA11_PSA10_FN2, PTD5_FN), | ||
626 | PINMUX_DATA(IDED4_MARK, PSA11_PSA10_FN1, PTD4_FN), | ||
627 | PINMUX_DATA(SDHI0D2_PTD_MARK, PSA11_PSA10_FN2, PTD4_FN), | ||
628 | PINMUX_DATA(IDED3_MARK, PSA11_PSA10_FN1, PTD3_FN), | ||
629 | PINMUX_DATA(SDHI0D1_PTD_MARK, PSA11_PSA10_FN2, PTD3_FN), | ||
630 | PINMUX_DATA(IDED2_MARK, PSA11_PSA10_FN1, PTD2_FN), | ||
631 | PINMUX_DATA(SDHI0D0_PTD_MARK, PSA11_PSA10_FN2, PTD2_FN), | ||
632 | PINMUX_DATA(IDED1_MARK, PSA11_PSA10_FN1, PTD1_FN), | ||
633 | PINMUX_DATA(SDHI0CMD_PTD_MARK, PSA11_PSA10_FN2, PTD1_FN), | ||
634 | PINMUX_DATA(IDED0_MARK, PSA11_PSA10_FN1, PTD0_FN), | ||
635 | PINMUX_DATA(SDHI0CLK_PTD_MARK, PSA11_PSA10_FN2, PTD0_FN), | ||
636 | |||
637 | /* PTE FN */ | ||
638 | PINMUX_DATA(DIRECTION_MARK, PSA11_PSA10_FN1, PTE5_FN), | ||
639 | PINMUX_DATA(SCIF5_PTE_SCK_MARK, PSA11_PSA10_FN2, PTE5_FN), | ||
640 | PINMUX_DATA(EXBUF_ENB_MARK, PSA11_PSA10_FN1, PTE4_FN), | ||
641 | PINMUX_DATA(SCIF5_PTE_RXD_MARK, PSA11_PSA10_FN2, PTE4_FN), | ||
642 | PINMUX_DATA(IDERST_MARK, PSA11_PSA10_FN1, PTE3_FN), | ||
643 | PINMUX_DATA(SCIF5_PTE_TXD_MARK, PSA11_PSA10_FN2, PTE3_FN), | ||
644 | PINMUX_DATA(IODACK_MARK, PSA11_PSA10_FN1, PTE2_FN), | ||
645 | PINMUX_DATA(SCIF4_PTE_SCK_MARK, PSA11_PSA10_FN2, PTE2_FN), | ||
646 | PINMUX_DATA(IODREQ_MARK, PSA11_PSA10_FN1, PTE1_FN), | ||
647 | PINMUX_DATA(SCIF4_PTE_RXD_MARK, PSA11_PSA10_FN2, PTE1_FN), | ||
648 | PINMUX_DATA(IDEIORDY_MARK, PSA11_PSA10_FN1, PTE0_FN), | ||
649 | PINMUX_DATA(SCIF4_PTE_TXD_MARK, PSA11_PSA10_FN2, PTE0_FN), | ||
650 | |||
651 | /* PTF FN */ | ||
652 | PINMUX_DATA(IDEINT_MARK, PTF7_FN), | ||
653 | PINMUX_DATA(IDEIOWR_MARK, PSA5_PSA4_FN1, PTF6_FN), | ||
654 | PINMUX_DATA(MSIOF0_PTF_SS2_MARK, PSA5_PSA4_FN2, PTF6_FN), | ||
655 | PINMUX_DATA(MSIOF0_PTF_RSYNC_MARK, PSA5_PSA4_FN3, PTF6_FN), | ||
656 | PINMUX_DATA(IDEIORD_MARK, PSA5_PSA4_FN1, PTF5_FN), | ||
657 | PINMUX_DATA(MSIOF0_PTF_SS1_MARK, PSA5_PSA4_FN2, PTF5_FN), | ||
658 | PINMUX_DATA(MSIOF0_PTF_RSCK_MARK, PSA5_PSA4_FN3, PTF5_FN), | ||
659 | PINMUX_DATA(IDECS1_MARK, PSA11_PSA10_FN1, PTF4_FN), | ||
660 | PINMUX_DATA(MSIOF0_PTF_TSYNC_MARK, PSA11_PSA10_FN2, PTF4_FN), | ||
661 | PINMUX_DATA(IDECS0_MARK, PSA11_PSA10_FN1, PTF3_FN), | ||
662 | PINMUX_DATA(MSIOF0_PTF_TSCK_MARK, PSA11_PSA10_FN2, PTF3_FN), | ||
663 | PINMUX_DATA(IDEA2_MARK, PSA11_PSA10_FN1, PTF2_FN), | ||
664 | PINMUX_DATA(MSIOF0_PTF_RXD_MARK, PSA11_PSA10_FN2, PTF2_FN), | ||
665 | PINMUX_DATA(IDEA1_MARK, PSA11_PSA10_FN1, PTF1_FN), | ||
666 | PINMUX_DATA(MSIOF0_PTF_TXD_MARK, PSA11_PSA10_FN2, PTF1_FN), | ||
667 | PINMUX_DATA(IDEA0_MARK, PSA11_PSA10_FN1, PTF0_FN), | ||
668 | PINMUX_DATA(MSIOF0_PTF_MCK_MARK, PSA11_PSA10_FN2, PTF0_FN), | ||
669 | |||
670 | /* PTG FN */ | ||
671 | PINMUX_DATA(AUDCK_MARK, PTG5_FN), | ||
672 | PINMUX_DATA(AUDSYNC_MARK, PTG4_FN), | ||
673 | PINMUX_DATA(AUDATA3_MARK, PSA3_PSA2_FN1, PTG3_FN), | ||
674 | PINMUX_DATA(TPUTO3_MARK, PSA3_PSA2_FN2, PTG3_FN), | ||
675 | PINMUX_DATA(AUDATA2_MARK, PSA3_PSA2_FN1, PTG2_FN), | ||
676 | PINMUX_DATA(TPUTO2_MARK, PSA3_PSA2_FN2, PTG2_FN), | ||
677 | PINMUX_DATA(AUDATA1_MARK, PSA3_PSA2_FN1, PTG1_FN), | ||
678 | PINMUX_DATA(TPUTO1_MARK, PSA3_PSA2_FN2, PTG1_FN), | ||
679 | PINMUX_DATA(AUDATA0_MARK, PSA3_PSA2_FN1, PTG0_FN), | ||
680 | PINMUX_DATA(TPUTO0_MARK, PSA3_PSA2_FN2, PTG0_FN), | ||
681 | |||
682 | /* PTG FN */ | ||
683 | PINMUX_DATA(LCDVCPWC_MARK, PTH7_FN), | ||
684 | PINMUX_DATA(LCDRD_MARK, PSB15_PSB14_FN1, PTH6_FN), | ||
685 | PINMUX_DATA(DV_CLKI_MARK, PSB15_PSB14_FN2, PTH6_FN), | ||
686 | PINMUX_DATA(LCDVSYN_MARK, PSB15_PSB14_FN1, PTH5_FN), | ||
687 | PINMUX_DATA(DV_CLK_MARK, PSB15_PSB14_FN2, PTH5_FN), | ||
688 | PINMUX_DATA(LCDDISP_MARK, PSB13_PSB12_LCDC_RGB, PTH4_FN), | ||
689 | PINMUX_DATA(LCDRS_MARK, PSB13_PSB12_LCDC_SYS, PTH4_FN), | ||
690 | PINMUX_DATA(LCDHSYN_MARK, PSB13_PSB12_LCDC_RGB, PTH3_FN), | ||
691 | PINMUX_DATA(LCDCS_MARK, PSB13_PSB12_LCDC_SYS, PTH3_FN), | ||
692 | PINMUX_DATA(LCDDON_MARK, PTH2_FN), | ||
693 | PINMUX_DATA(LCDDCK_MARK, PSB13_PSB12_LCDC_RGB, PTH1_FN), | ||
694 | PINMUX_DATA(LCDWR_MARK, PSB13_PSB12_LCDC_SYS, PTH1_FN), | ||
695 | PINMUX_DATA(LCDVEPWC_MARK, PTH0_FN), | ||
696 | |||
697 | /* PTJ FN */ | ||
698 | PINMUX_DATA(STATUS0_MARK, PTJ7_FN), | ||
699 | PINMUX_DATA(PDSTATUS_MARK, PTJ5_FN), | ||
700 | PINMUX_DATA(A25_MARK, PTJ3_FN), | ||
701 | PINMUX_DATA(A24_MARK, PTJ2_FN), | ||
702 | PINMUX_DATA(A23_MARK, PTJ1_FN), | ||
703 | PINMUX_DATA(A22_MARK, PTJ0_FN), | ||
704 | |||
705 | /* PTK FN */ | ||
706 | PINMUX_DATA(SIUAFCK_MARK, PTK7_FN), | ||
707 | PINMUX_DATA(SIUAILR_MARK, PSB9_PSB8_FN1, PTK6_FN), | ||
708 | PINMUX_DATA(MSIOF1_SS2_MARK, PSB9_PSB8_FN2, PTK6_FN), | ||
709 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PSB9_PSB8_FN3, PTK6_FN), | ||
710 | PINMUX_DATA(SIUAIBT_MARK, PSB9_PSB8_FN1, PTK5_FN), | ||
711 | PINMUX_DATA(MSIOF1_SS1_MARK, PSB9_PSB8_FN2, PTK5_FN), | ||
712 | PINMUX_DATA(MSIOF1_RSCK_MARK, PSB9_PSB8_FN3, PTK5_FN), | ||
713 | PINMUX_DATA(SIUAISLD_MARK, PSB7_PSB6_FN1, PTK4_FN), | ||
714 | PINMUX_DATA(MSIOF1_RXD_MARK, PSB7_PSB6_FN2, PTK4_FN), | ||
715 | PINMUX_DATA(SIUAOLR_MARK, PSB7_PSB6_FN1, PTK3_FN), | ||
716 | PINMUX_DATA(MSIOF1_TSYNC_MARK, PSB7_PSB6_FN2, PTK3_FN), | ||
717 | PINMUX_DATA(SIUAOBT_MARK, PSB7_PSB6_FN1, PTK2_FN), | ||
718 | PINMUX_DATA(MSIOF1_TSCK_MARK, PSB7_PSB6_FN2, PTK2_FN), | ||
719 | PINMUX_DATA(SIUAOSLD_MARK, PSB7_PSB6_FN1, PTK1_FN), | ||
720 | PINMUX_DATA(MSIOF1_RXD_MARK, PSB7_PSB6_FN2, PTK1_FN), | ||
721 | PINMUX_DATA(SIUAMCK_MARK, PSB7_PSB6_FN1, PTK0_FN), | ||
722 | PINMUX_DATA(MSIOF1_MCK_MARK, PSB7_PSB6_FN2, PTK0_FN), | ||
723 | |||
724 | /* PTL FN */ | ||
725 | PINMUX_DATA(LCDD15_MARK, PSB5_PSB4_FN1, PTL7_FN), | ||
726 | PINMUX_DATA(DV_D15_MARK, PSB5_PSB4_FN2, PTL7_FN), | ||
727 | PINMUX_DATA(LCDD14_MARK, PSB5_PSB4_FN1, PTL6_FN), | ||
728 | PINMUX_DATA(DV_D14_MARK, PSB5_PSB4_FN2, PTL6_FN), | ||
729 | PINMUX_DATA(LCDD13_MARK, PSB5_PSB4_FN1, PTL5_FN), | ||
730 | PINMUX_DATA(DV_D13_MARK, PSB5_PSB4_FN2, PTL5_FN), | ||
731 | PINMUX_DATA(LCDD12_MARK, PSB5_PSB4_FN1, PTL4_FN), | ||
732 | PINMUX_DATA(DV_D12_MARK, PSB5_PSB4_FN2, PTL4_FN), | ||
733 | PINMUX_DATA(LCDD11_MARK, PSB5_PSB4_FN1, PTL3_FN), | ||
734 | PINMUX_DATA(DV_D11_MARK, PSB5_PSB4_FN2, PTL3_FN), | ||
735 | PINMUX_DATA(LCDD10_MARK, PSB5_PSB4_FN1, PTL2_FN), | ||
736 | PINMUX_DATA(DV_D10_MARK, PSB5_PSB4_FN2, PTL2_FN), | ||
737 | PINMUX_DATA(LCDD9_MARK, PSB5_PSB4_FN1, PTL1_FN), | ||
738 | PINMUX_DATA(DV_D9_MARK, PSB5_PSB4_FN2, PTL1_FN), | ||
739 | PINMUX_DATA(LCDD8_MARK, PSB5_PSB4_FN1, PTL0_FN), | ||
740 | PINMUX_DATA(DV_D8_MARK, PSB5_PSB4_FN2, PTL0_FN), | ||
741 | |||
742 | /* PTM FN */ | ||
743 | PINMUX_DATA(LCDD7_MARK, PSB5_PSB4_FN1, PTM7_FN), | ||
744 | PINMUX_DATA(DV_D7_MARK, PSB5_PSB4_FN2, PTM7_FN), | ||
745 | PINMUX_DATA(LCDD6_MARK, PSB5_PSB4_FN1, PTM6_FN), | ||
746 | PINMUX_DATA(DV_D6_MARK, PSB5_PSB4_FN2, PTM6_FN), | ||
747 | PINMUX_DATA(LCDD5_MARK, PSB5_PSB4_FN1, PTM5_FN), | ||
748 | PINMUX_DATA(DV_D5_MARK, PSB5_PSB4_FN2, PTM5_FN), | ||
749 | PINMUX_DATA(LCDD4_MARK, PSB5_PSB4_FN1, PTM4_FN), | ||
750 | PINMUX_DATA(DV_D4_MARK, PSB5_PSB4_FN2, PTM4_FN), | ||
751 | PINMUX_DATA(LCDD3_MARK, PSB5_PSB4_FN1, PTM3_FN), | ||
752 | PINMUX_DATA(DV_D3_MARK, PSB5_PSB4_FN2, PTM3_FN), | ||
753 | PINMUX_DATA(LCDD2_MARK, PSB5_PSB4_FN1, PTM2_FN), | ||
754 | PINMUX_DATA(DV_D2_MARK, PSB5_PSB4_FN2, PTM2_FN), | ||
755 | PINMUX_DATA(LCDD1_MARK, PSB5_PSB4_FN1, PTM1_FN), | ||
756 | PINMUX_DATA(DV_D1_MARK, PSB5_PSB4_FN2, PTM1_FN), | ||
757 | PINMUX_DATA(LCDD0_MARK, PSB5_PSB4_FN1, PTM0_FN), | ||
758 | PINMUX_DATA(DV_D0_MARK, PSB5_PSB4_FN2, PTM0_FN), | ||
759 | |||
760 | /* PTN FN */ | ||
761 | PINMUX_DATA(LCDD23_MARK, PSB3_PSB2_FN1, PTN7_FN), | ||
762 | PINMUX_DATA(SCIF5_PTN_SCK_MARK, PSB3_PSB2_FN2, PTN7_FN), | ||
763 | PINMUX_DATA(LCDD22_MARK, PSB3_PSB2_FN1, PTN6_FN), | ||
764 | PINMUX_DATA(SCIF5_PTN_RXD_MARK, PSB3_PSB2_FN2, PTN6_FN), | ||
765 | PINMUX_DATA(LCDD21_MARK, PSB3_PSB2_FN1, PTN5_FN), | ||
766 | PINMUX_DATA(SCIF5_PTN_TXD_MARK, PSB3_PSB2_FN2, PTN5_FN), | ||
767 | PINMUX_DATA(LCDD20_MARK, PSB3_PSB2_FN1, PTN4_FN), | ||
768 | PINMUX_DATA(SCIF4_PTN_SCK_MARK, PSB3_PSB2_FN2, PTN4_FN), | ||
769 | PINMUX_DATA(LCDD19_MARK, PSB3_PSB2_FN1, PTN3_FN), | ||
770 | PINMUX_DATA(SCIF4_PTN_RXD_MARK, PSB3_PSB2_FN2, PTN3_FN), | ||
771 | PINMUX_DATA(LCDD18_MARK, PSB3_PSB2_FN1, PTN2_FN), | ||
772 | PINMUX_DATA(SCIF4_PTN_TXD_MARK, PSB3_PSB2_FN2, PTN2_FN), | ||
773 | PINMUX_DATA(LCDD17_MARK, PSB5_PSB4_FN1, PTN1_FN), | ||
774 | PINMUX_DATA(DV_VSYNC_MARK, PSB5_PSB4_FN2, PTN1_FN), | ||
775 | PINMUX_DATA(LCDD16_MARK, PSB5_PSB4_FN1, PTN0_FN), | ||
776 | PINMUX_DATA(DV_HSYNC_MARK, PSB5_PSB4_FN2, PTN0_FN), | ||
777 | |||
778 | /* PTQ FN */ | ||
779 | PINMUX_DATA(AN3_MARK, PTQ3_FN), | ||
780 | PINMUX_DATA(AN2_MARK, PTQ2_FN), | ||
781 | PINMUX_DATA(AN1_MARK, PTQ1_FN), | ||
782 | PINMUX_DATA(AN0_MARK, PTQ0_FN), | ||
783 | |||
784 | /* PTR FN */ | ||
785 | PINMUX_DATA(CS6B_CE1B_MARK, PTR7_FN), | ||
786 | PINMUX_DATA(CS6A_CE2B_MARK, PTR6_FN), | ||
787 | PINMUX_DATA(CS5B_CE1A_MARK, PTR5_FN), | ||
788 | PINMUX_DATA(CS5A_CE2A_MARK, PTR4_FN), | ||
789 | PINMUX_DATA(IOIS16_MARK, PSA13_PSA12_FN1, PTR3_FN), | ||
790 | PINMUX_DATA(LCDLCLK_PTR_MARK, PSA13_PSA12_FN2, PTR3_FN), | ||
791 | PINMUX_DATA(WAIT_MARK, PTR2_FN), | ||
792 | PINMUX_DATA(WE3_ICIOWR_MARK, PTR1_FN), | ||
793 | PINMUX_DATA(WE2_ICIORD_MARK, PTR0_FN), | ||
794 | |||
795 | /* PTS FN */ | ||
796 | PINMUX_DATA(SCIF1_PTS_SCK_MARK, PSC15_PSC14_FN1, PTS7_FN), | ||
797 | PINMUX_DATA(SDHI0CD_PTS_MARK, PSC15_PSC14_FN2, PTS7_FN), | ||
798 | PINMUX_DATA(SCIF1_PTS_RXD_MARK, PSC15_PSC14_FN1, PTS6_FN), | ||
799 | PINMUX_DATA(SDHI0WP_PTS_MARK, PSC15_PSC14_FN2, PTS6_FN), | ||
800 | PINMUX_DATA(SCIF1_PTS_TXD_MARK, PSC15_PSC14_FN1, PTS5_FN), | ||
801 | PINMUX_DATA(SDHI0D3_PTS_MARK, PSC15_PSC14_FN2, PTS5_FN), | ||
802 | PINMUX_DATA(SCIF3_PTS_CTS_MARK, PSC15_PSC14_FN1, PTS4_FN), | ||
803 | PINMUX_DATA(SDHI0D2_PTS_MARK, PSC15_PSC14_FN2, PTS4_FN), | ||
804 | PINMUX_DATA(SCIF3_PTS_RTS_MARK, PSC15_PSC14_FN1, PTS3_FN), | ||
805 | PINMUX_DATA(SDHI0D1_PTS_MARK, PSC15_PSC14_FN2, PTS3_FN), | ||
806 | PINMUX_DATA(SCIF3_PTS_SCK_MARK, PSC15_PSC14_FN1, PTS2_FN), | ||
807 | PINMUX_DATA(SDHI0D0_PTS_MARK, PSC15_PSC14_FN2, PTS2_FN), | ||
808 | PINMUX_DATA(SCIF3_PTS_RXD_MARK, PSC15_PSC14_FN1, PTS1_FN), | ||
809 | PINMUX_DATA(SDHI0CMD_PTS_MARK, PSC15_PSC14_FN2, PTS1_FN), | ||
810 | PINMUX_DATA(SCIF3_PTS_TXD_MARK, PSC15_PSC14_FN1, PTS0_FN), | ||
811 | PINMUX_DATA(SDHI0CLK_PTS_MARK, PSC15_PSC14_FN2, PTS0_FN), | ||
812 | |||
813 | /* PTT FN */ | ||
814 | PINMUX_DATA(SCIF0_PTT_SCK_MARK, PSC13_PSC12_FN1, PTT5_FN), | ||
815 | PINMUX_DATA(MSIOF0_PTT_TSCK_MARK, PSC13_PSC12_FN2, PTT5_FN), | ||
816 | PINMUX_DATA(SCIF0_PTT_RXD_MARK, PSC13_PSC12_FN1, PTT4_FN), | ||
817 | PINMUX_DATA(MSIOF0_PTT_RXD_MARK, PSC13_PSC12_FN2, PTT4_FN), | ||
818 | PINMUX_DATA(SCIF0_PTT_TXD_MARK, PSC13_PSC12_FN1, PTT3_FN), | ||
819 | PINMUX_DATA(MSIOF0_PTT_TXD_MARK, PSC13_PSC12_FN2, PTT3_FN), | ||
820 | PINMUX_DATA(SCIF2_PTT_SCK_MARK, PSC11_PSC10_FN1, PTT2_FN), | ||
821 | PINMUX_DATA(MSIOF0_PTT_TSYNC_MARK, PSC11_PSC10_FN2, PTT2_FN), | ||
822 | PINMUX_DATA(SCIF2_PTT_RXD_MARK, PSC11_PSC10_FN1, PTT1_FN), | ||
823 | PINMUX_DATA(MSIOF0_PTT_SS1_MARK, PSC11_PSC10_FN2, PTT1_FN), | ||
824 | PINMUX_DATA(MSIOF0_PTT_RSCK_MARK, PSC11_PSC10_FN3, PTT1_FN), | ||
825 | PINMUX_DATA(SCIF2_PTT_TXD_MARK, PSC11_PSC10_FN1, PTT0_FN), | ||
826 | PINMUX_DATA(MSIOF0_PTT_SS2_MARK, PSC11_PSC10_FN2, PTT0_FN), | ||
827 | PINMUX_DATA(MSIOF0_PTT_RSYNC_MARK, PSC11_PSC10_FN3, PTT0_FN), | ||
828 | |||
829 | /* PTU FN */ | ||
830 | PINMUX_DATA(FCDE_MARK, PSC9_PSC8_FN1, PTU5_FN), | ||
831 | PINMUX_DATA(SCIF0_PTU_SCK_MARK, PSC9_PSC8_FN2, PTU5_FN), | ||
832 | PINMUX_DATA(FSC_MARK, PSC9_PSC8_FN1, PTU4_FN), | ||
833 | PINMUX_DATA(SCIF0_PTU_RXD_MARK, PSC9_PSC8_FN2, PTU4_FN), | ||
834 | PINMUX_DATA(FWE_MARK, PSC9_PSC8_FN1, PTU3_FN), | ||
835 | PINMUX_DATA(SCIF0_PTU_TXD_MARK, PSC9_PSC8_FN2, PTU3_FN), | ||
836 | PINMUX_DATA(FOE_MARK, PSC7_PSC6_FN1, PTU2_FN), | ||
837 | PINMUX_DATA(SCIF2_PTU_SCK_MARK, PSC7_PSC6_FN2, PTU2_FN), | ||
838 | PINMUX_DATA(VIO_VD2_MARK, PSC7_PSC6_FN3, PTU2_FN), | ||
839 | PINMUX_DATA(FRB_MARK, PSC7_PSC6_FN1, PTU1_FN), | ||
840 | PINMUX_DATA(SCIF2_PTU_RXD_MARK, PSC7_PSC6_FN2, PTU1_FN), | ||
841 | PINMUX_DATA(VIO_CLK2_MARK, PSC7_PSC6_FN3, PTU1_FN), | ||
842 | PINMUX_DATA(FCE_MARK, PSC7_PSC6_FN1, PTU0_FN), | ||
843 | PINMUX_DATA(SCIF2_PTU_TXD_MARK, PSC7_PSC6_FN2, PTU0_FN), | ||
844 | PINMUX_DATA(VIO_HD2_MARK, PSC7_PSC6_FN3, PTU0_FN), | ||
845 | |||
846 | /* PTV FN */ | ||
847 | PINMUX_DATA(NAF7_MARK, PSC7_PSC6_FN1, PTV7_FN), | ||
848 | PINMUX_DATA(SCIF1_PTV_SCK_MARK, PSC7_PSC6_FN2, PTV7_FN), | ||
849 | PINMUX_DATA(VIO_D15_MARK, PSC7_PSC6_FN3, PTV7_FN), | ||
850 | PINMUX_DATA(NAF6_MARK, PSC7_PSC6_FN1, PTV6_FN), | ||
851 | PINMUX_DATA(SCIF1_PTV_RXD_MARK, PSC7_PSC6_FN2, PTV6_FN), | ||
852 | PINMUX_DATA(VIO_D14_MARK, PSC7_PSC6_FN3, PTV6_FN), | ||
853 | PINMUX_DATA(NAF5_MARK, PSC7_PSC6_FN1, PTV5_FN), | ||
854 | PINMUX_DATA(SCIF1_PTV_TXD_MARK, PSC7_PSC6_FN2, PTV5_FN), | ||
855 | PINMUX_DATA(VIO_D13_MARK, PSC7_PSC6_FN3, PTV5_FN), | ||
856 | PINMUX_DATA(NAF4_MARK, PSC7_PSC6_FN1, PTV4_FN), | ||
857 | PINMUX_DATA(SCIF3_PTV_CTS_MARK, PSC7_PSC6_FN2, PTV4_FN), | ||
858 | PINMUX_DATA(VIO_D12_MARK, PSC7_PSC6_FN3, PTV4_FN), | ||
859 | PINMUX_DATA(NAF3_MARK, PSC7_PSC6_FN1, PTV3_FN), | ||
860 | PINMUX_DATA(SCIF3_PTV_RTS_MARK, PSC7_PSC6_FN2, PTV3_FN), | ||
861 | PINMUX_DATA(VIO_D11_MARK, PSC7_PSC6_FN3, PTV3_FN), | ||
862 | PINMUX_DATA(NAF2_MARK, PSC7_PSC6_FN1, PTV2_FN), | ||
863 | PINMUX_DATA(SCIF3_PTV_SCK_MARK, PSC7_PSC6_FN2, PTV2_FN), | ||
864 | PINMUX_DATA(VIO_D10_MARK, PSC7_PSC6_FN3, PTV2_FN), | ||
865 | PINMUX_DATA(NAF1_MARK, PSC7_PSC6_FN1, PTV1_FN), | ||
866 | PINMUX_DATA(SCIF3_PTV_RXD_MARK, PSC7_PSC6_FN2, PTV1_FN), | ||
867 | PINMUX_DATA(VIO_D9_MARK, PSC7_PSC6_FN3, PTV1_FN), | ||
868 | PINMUX_DATA(NAF0_MARK, PSC7_PSC6_FN1, PTV0_FN), | ||
869 | PINMUX_DATA(SCIF3_PTV_TXD_MARK, PSC7_PSC6_FN2, PTV0_FN), | ||
870 | PINMUX_DATA(VIO_D8_MARK, PSC7_PSC6_FN3, PTV0_FN), | ||
871 | |||
872 | /* PTW FN */ | ||
873 | PINMUX_DATA(IRQ7_MARK, PTW7_FN), | ||
874 | PINMUX_DATA(IRQ6_MARK, PTW6_FN), | ||
875 | PINMUX_DATA(IRQ5_MARK, PTW5_FN), | ||
876 | PINMUX_DATA(IRQ4_MARK, PSD15_PSD14_FN1, PTW4_FN), | ||
877 | PINMUX_DATA(LCDLCLK_PTW_MARK, PSD15_PSD14_FN2, PTW4_FN), | ||
878 | PINMUX_DATA(IRQ3_MARK, PSD13_PSD12_FN1, PTW3_FN), | ||
879 | PINMUX_DATA(ADTRG_MARK, PSD13_PSD12_FN2, PTW3_FN), | ||
880 | PINMUX_DATA(IRQ2_MARK, PSD11_PSD10_FN1, PTW2_FN), | ||
881 | PINMUX_DATA(BS_MARK, PSD11_PSD10_FN2, PTW2_FN), | ||
882 | PINMUX_DATA(VIO_CKO_MARK, PSD11_PSD10_FN3, PTW2_FN), | ||
883 | PINMUX_DATA(IRQ1_MARK, PSD9_PSD8_FN1, PTW1_FN), | ||
884 | PINMUX_DATA(SIUAISPD_MARK, PSD9_PSD8_FN2, PTW1_FN), | ||
885 | PINMUX_DATA(IRQ0_MARK, PSD7_PSD6_FN1, PTW0_FN), | ||
886 | PINMUX_DATA(SIUAOSPD_MARK, PSD7_PSD6_FN2, PTW0_FN), | ||
887 | |||
888 | /* PTX FN */ | ||
889 | PINMUX_DATA(DACK1_MARK, PTX7_FN), | ||
890 | PINMUX_DATA(DREQ1_MARK, PSD3_PSD2_FN1, PTX6_FN), | ||
891 | PINMUX_DATA(MSIOF0_PTX_MCK_MARK, PSD3_PSD2_FN2, PTX6_FN), | ||
892 | PINMUX_DATA(DACK1_MARK, PTX5_FN), | ||
893 | PINMUX_DATA(IRDA_OUT_MARK, PSD5_PSD4_FN2, PTX5_FN), | ||
894 | PINMUX_DATA(DREQ1_MARK, PTX4_FN), | ||
895 | PINMUX_DATA(IRDA_IN_MARK, PSD5_PSD4_FN2, PTX4_FN), | ||
896 | PINMUX_DATA(TS0_SDAT_MARK, PTX3_FN), | ||
897 | PINMUX_DATA(TS0_SCK_MARK, PTX2_FN), | ||
898 | PINMUX_DATA(TS0_SDEN_MARK, PTX1_FN), | ||
899 | PINMUX_DATA(TS0_SPSYNC_MARK, PTX0_FN), | ||
900 | |||
901 | /* PTY FN */ | ||
902 | PINMUX_DATA(VIO_D7_MARK, PTY7_FN), | ||
903 | PINMUX_DATA(VIO_D6_MARK, PTY6_FN), | ||
904 | PINMUX_DATA(VIO_D5_MARK, PTY5_FN), | ||
905 | PINMUX_DATA(VIO_D4_MARK, PTY4_FN), | ||
906 | PINMUX_DATA(VIO_D3_MARK, PTY3_FN), | ||
907 | PINMUX_DATA(VIO_D2_MARK, PTY2_FN), | ||
908 | PINMUX_DATA(VIO_D1_MARK, PTY1_FN), | ||
909 | PINMUX_DATA(VIO_D0_MARK, PTY0_FN), | ||
910 | |||
911 | /* PTZ FN */ | ||
912 | PINMUX_DATA(SIUBOBT_MARK, PTZ7_FN), | ||
913 | PINMUX_DATA(SIUBOLR_MARK, PTZ6_FN), | ||
914 | PINMUX_DATA(SIUBOSLD_MARK, PTZ5_FN), | ||
915 | PINMUX_DATA(SIUBMCK_MARK, PTZ4_FN), | ||
916 | PINMUX_DATA(VIO_FLD_MARK, PSD1_PSD0_FN1, PTZ3_FN), | ||
917 | PINMUX_DATA(SIUBFCK_MARK, PSD1_PSD0_FN2, PTZ3_FN), | ||
918 | PINMUX_DATA(VIO_HD1_MARK, PSD1_PSD0_FN1, PTZ2_FN), | ||
919 | PINMUX_DATA(SIUBILR_MARK, PSD1_PSD0_FN2, PTZ2_FN), | ||
920 | PINMUX_DATA(VIO_VD1_MARK, PSD1_PSD0_FN1, PTZ1_FN), | ||
921 | PINMUX_DATA(SIUBIBT_MARK, PSD1_PSD0_FN2, PTZ1_FN), | ||
922 | PINMUX_DATA(VIO_CLK1_MARK, PSD1_PSD0_FN1, PTZ0_FN), | ||
923 | PINMUX_DATA(SIUBISLD_MARK, PSD1_PSD0_FN2, PTZ0_FN), | ||
924 | }; | ||
925 | |||
926 | static struct pinmux_gpio pinmux_gpios[] = { | ||
927 | /* PTA */ | ||
928 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
929 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
930 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
931 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
932 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
933 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
934 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
935 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
936 | |||
937 | /* PTB */ | ||
938 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
939 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
940 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
941 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
942 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
943 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
944 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
945 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
946 | |||
947 | /* PTC */ | ||
948 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
949 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
950 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
951 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
952 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
953 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
954 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
955 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
956 | |||
957 | /* PTD */ | ||
958 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
959 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
960 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
961 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
962 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
963 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
964 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
965 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
966 | |||
967 | /* PTE */ | ||
968 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
969 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
970 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
971 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
972 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
973 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
974 | |||
975 | /* PTF */ | ||
976 | PINMUX_GPIO(GPIO_PTF7, PTF7_DATA), | ||
977 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
978 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
979 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
980 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
981 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
982 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
983 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
984 | |||
985 | /* PTG */ | ||
986 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
987 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
988 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
989 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
990 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
991 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
992 | |||
993 | /* PTH */ | ||
994 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
995 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
996 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
997 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
998 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
999 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
1000 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
1001 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
1002 | |||
1003 | /* PTJ */ | ||
1004 | PINMUX_GPIO(GPIO_PTJ7, PTJ7_DATA), | ||
1005 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
1006 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
1007 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
1008 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
1009 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
1010 | |||
1011 | /* PTK */ | ||
1012 | PINMUX_GPIO(GPIO_PTK7, PTK7_DATA), | ||
1013 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
1014 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
1015 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
1016 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
1017 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
1018 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
1019 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
1020 | |||
1021 | /* PTL */ | ||
1022 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
1023 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
1024 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
1025 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
1026 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
1027 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
1028 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
1029 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
1030 | |||
1031 | /* PTM */ | ||
1032 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
1033 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
1034 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
1035 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
1036 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
1037 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
1038 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
1039 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
1040 | |||
1041 | /* PTN */ | ||
1042 | PINMUX_GPIO(GPIO_PTN7, PTN7_DATA), | ||
1043 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
1044 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
1045 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
1046 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
1047 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
1048 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
1049 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
1050 | |||
1051 | /* PTQ */ | ||
1052 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
1053 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
1054 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
1055 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
1056 | |||
1057 | /* PTR */ | ||
1058 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
1059 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
1060 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
1061 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
1062 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
1063 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
1064 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
1065 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
1066 | |||
1067 | /* PTS */ | ||
1068 | PINMUX_GPIO(GPIO_PTS7, PTS7_DATA), | ||
1069 | PINMUX_GPIO(GPIO_PTS6, PTS6_DATA), | ||
1070 | PINMUX_GPIO(GPIO_PTS5, PTS5_DATA), | ||
1071 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
1072 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
1073 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
1074 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
1075 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
1076 | |||
1077 | /* PTT */ | ||
1078 | PINMUX_GPIO(GPIO_PTT5, PTT5_DATA), | ||
1079 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
1080 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
1081 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
1082 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
1083 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
1084 | |||
1085 | /* PTU */ | ||
1086 | PINMUX_GPIO(GPIO_PTU5, PTU5_DATA), | ||
1087 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
1088 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
1089 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
1090 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
1091 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
1092 | |||
1093 | /* PTV */ | ||
1094 | PINMUX_GPIO(GPIO_PTV7, PTV7_DATA), | ||
1095 | PINMUX_GPIO(GPIO_PTV6, PTV6_DATA), | ||
1096 | PINMUX_GPIO(GPIO_PTV5, PTV5_DATA), | ||
1097 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
1098 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
1099 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
1100 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
1101 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
1102 | |||
1103 | /* PTW */ | ||
1104 | PINMUX_GPIO(GPIO_PTW7, PTW7_DATA), | ||
1105 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
1106 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
1107 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
1108 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
1109 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
1110 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
1111 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
1112 | |||
1113 | /* PTX */ | ||
1114 | PINMUX_GPIO(GPIO_PTX7, PTX7_DATA), | ||
1115 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
1116 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
1117 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
1118 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
1119 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
1120 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
1121 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
1122 | |||
1123 | /* PTY */ | ||
1124 | PINMUX_GPIO(GPIO_PTY7, PTY7_DATA), | ||
1125 | PINMUX_GPIO(GPIO_PTY6, PTY6_DATA), | ||
1126 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
1127 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
1128 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
1129 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
1130 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
1131 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
1132 | |||
1133 | /* PTZ */ | ||
1134 | PINMUX_GPIO(GPIO_PTZ7, PTZ7_DATA), | ||
1135 | PINMUX_GPIO(GPIO_PTZ6, PTZ6_DATA), | ||
1136 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
1137 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
1138 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
1139 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
1140 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
1141 | PINMUX_GPIO(GPIO_PTZ0, PTZ0_DATA), | ||
1142 | |||
1143 | /* SCIF0 */ | ||
1144 | PINMUX_GPIO(GPIO_FN_SCIF0_PTT_TXD, SCIF0_PTT_TXD_MARK), | ||
1145 | PINMUX_GPIO(GPIO_FN_SCIF0_PTT_RXD, SCIF0_PTT_RXD_MARK), | ||
1146 | PINMUX_GPIO(GPIO_FN_SCIF0_PTT_SCK, SCIF0_PTT_SCK_MARK), | ||
1147 | PINMUX_GPIO(GPIO_FN_SCIF0_PTU_TXD, SCIF0_PTU_TXD_MARK), | ||
1148 | PINMUX_GPIO(GPIO_FN_SCIF0_PTU_RXD, SCIF0_PTU_RXD_MARK), | ||
1149 | PINMUX_GPIO(GPIO_FN_SCIF0_PTU_SCK, SCIF0_PTU_SCK_MARK), | ||
1150 | |||
1151 | /* SCIF1 */ | ||
1152 | PINMUX_GPIO(GPIO_FN_SCIF1_PTS_TXD, SCIF1_PTS_TXD_MARK), | ||
1153 | PINMUX_GPIO(GPIO_FN_SCIF1_PTS_RXD, SCIF1_PTS_RXD_MARK), | ||
1154 | PINMUX_GPIO(GPIO_FN_SCIF1_PTS_SCK, SCIF1_PTS_SCK_MARK), | ||
1155 | PINMUX_GPIO(GPIO_FN_SCIF1_PTV_TXD, SCIF1_PTV_TXD_MARK), | ||
1156 | PINMUX_GPIO(GPIO_FN_SCIF1_PTV_RXD, SCIF1_PTV_RXD_MARK), | ||
1157 | PINMUX_GPIO(GPIO_FN_SCIF1_PTV_SCK, SCIF1_PTV_SCK_MARK), | ||
1158 | |||
1159 | /* SCIF2 */ | ||
1160 | PINMUX_GPIO(GPIO_FN_SCIF2_PTT_TXD, SCIF2_PTT_TXD_MARK), | ||
1161 | PINMUX_GPIO(GPIO_FN_SCIF2_PTT_RXD, SCIF2_PTT_RXD_MARK), | ||
1162 | PINMUX_GPIO(GPIO_FN_SCIF2_PTT_SCK, SCIF2_PTT_SCK_MARK), | ||
1163 | PINMUX_GPIO(GPIO_FN_SCIF2_PTU_TXD, SCIF2_PTU_TXD_MARK), | ||
1164 | PINMUX_GPIO(GPIO_FN_SCIF2_PTU_RXD, SCIF2_PTU_RXD_MARK), | ||
1165 | PINMUX_GPIO(GPIO_FN_SCIF2_PTU_SCK, SCIF2_PTU_SCK_MARK), | ||
1166 | |||
1167 | /* SCIF3 */ | ||
1168 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_TXD, SCIF3_PTS_TXD_MARK), | ||
1169 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_RXD, SCIF3_PTS_RXD_MARK), | ||
1170 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_SCK, SCIF3_PTS_SCK_MARK), | ||
1171 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_RTS, SCIF3_PTS_RTS_MARK), | ||
1172 | PINMUX_GPIO(GPIO_FN_SCIF3_PTS_CTS, SCIF3_PTS_CTS_MARK), | ||
1173 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_TXD, SCIF3_PTV_TXD_MARK), | ||
1174 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_RXD, SCIF3_PTV_RXD_MARK), | ||
1175 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_SCK, SCIF3_PTV_SCK_MARK), | ||
1176 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_RTS, SCIF3_PTV_RTS_MARK), | ||
1177 | PINMUX_GPIO(GPIO_FN_SCIF3_PTV_CTS, SCIF3_PTV_CTS_MARK), | ||
1178 | |||
1179 | /* SCIF4 */ | ||
1180 | PINMUX_GPIO(GPIO_FN_SCIF4_PTE_TXD, SCIF4_PTE_TXD_MARK), | ||
1181 | PINMUX_GPIO(GPIO_FN_SCIF4_PTE_RXD, SCIF4_PTE_RXD_MARK), | ||
1182 | PINMUX_GPIO(GPIO_FN_SCIF4_PTE_SCK, SCIF4_PTE_SCK_MARK), | ||
1183 | PINMUX_GPIO(GPIO_FN_SCIF4_PTN_TXD, SCIF4_PTN_TXD_MARK), | ||
1184 | PINMUX_GPIO(GPIO_FN_SCIF4_PTN_RXD, SCIF4_PTN_RXD_MARK), | ||
1185 | PINMUX_GPIO(GPIO_FN_SCIF4_PTN_SCK, SCIF4_PTN_SCK_MARK), | ||
1186 | |||
1187 | /* SCIF5 */ | ||
1188 | PINMUX_GPIO(GPIO_FN_SCIF5_PTE_TXD, SCIF5_PTE_TXD_MARK), | ||
1189 | PINMUX_GPIO(GPIO_FN_SCIF5_PTE_RXD, SCIF5_PTE_RXD_MARK), | ||
1190 | PINMUX_GPIO(GPIO_FN_SCIF5_PTE_SCK, SCIF5_PTE_SCK_MARK), | ||
1191 | PINMUX_GPIO(GPIO_FN_SCIF5_PTN_TXD, SCIF5_PTN_TXD_MARK), | ||
1192 | PINMUX_GPIO(GPIO_FN_SCIF5_PTN_RXD, SCIF5_PTN_RXD_MARK), | ||
1193 | PINMUX_GPIO(GPIO_FN_SCIF5_PTN_SCK, SCIF5_PTN_SCK_MARK), | ||
1194 | |||
1195 | /* CEU */ | ||
1196 | PINMUX_GPIO(GPIO_FN_VIO_D15, VIO_D15_MARK), | ||
1197 | PINMUX_GPIO(GPIO_FN_VIO_D14, VIO_D14_MARK), | ||
1198 | PINMUX_GPIO(GPIO_FN_VIO_D13, VIO_D13_MARK), | ||
1199 | PINMUX_GPIO(GPIO_FN_VIO_D12, VIO_D12_MARK), | ||
1200 | PINMUX_GPIO(GPIO_FN_VIO_D11, VIO_D11_MARK), | ||
1201 | PINMUX_GPIO(GPIO_FN_VIO_D10, VIO_D10_MARK), | ||
1202 | PINMUX_GPIO(GPIO_FN_VIO_D9, VIO_D9_MARK), | ||
1203 | PINMUX_GPIO(GPIO_FN_VIO_D8, VIO_D8_MARK), | ||
1204 | PINMUX_GPIO(GPIO_FN_VIO_D7, VIO_D7_MARK), | ||
1205 | PINMUX_GPIO(GPIO_FN_VIO_D6, VIO_D6_MARK), | ||
1206 | PINMUX_GPIO(GPIO_FN_VIO_D5, VIO_D5_MARK), | ||
1207 | PINMUX_GPIO(GPIO_FN_VIO_D4, VIO_D4_MARK), | ||
1208 | PINMUX_GPIO(GPIO_FN_VIO_D3, VIO_D3_MARK), | ||
1209 | PINMUX_GPIO(GPIO_FN_VIO_D2, VIO_D2_MARK), | ||
1210 | PINMUX_GPIO(GPIO_FN_VIO_D1, VIO_D1_MARK), | ||
1211 | PINMUX_GPIO(GPIO_FN_VIO_D0, VIO_D0_MARK), | ||
1212 | PINMUX_GPIO(GPIO_FN_VIO_CLK1, VIO_CLK1_MARK), | ||
1213 | PINMUX_GPIO(GPIO_FN_VIO_VD1, VIO_VD1_MARK), | ||
1214 | PINMUX_GPIO(GPIO_FN_VIO_HD1, VIO_HD1_MARK), | ||
1215 | PINMUX_GPIO(GPIO_FN_VIO_FLD, VIO_FLD_MARK), | ||
1216 | PINMUX_GPIO(GPIO_FN_VIO_CKO, VIO_CKO_MARK), | ||
1217 | PINMUX_GPIO(GPIO_FN_VIO_VD2, VIO_VD2_MARK), | ||
1218 | PINMUX_GPIO(GPIO_FN_VIO_HD2, VIO_HD2_MARK), | ||
1219 | PINMUX_GPIO(GPIO_FN_VIO_CLK2, VIO_CLK2_MARK), | ||
1220 | |||
1221 | /* LCDC */ | ||
1222 | PINMUX_GPIO(GPIO_FN_LCDD23, LCDD23_MARK), | ||
1223 | PINMUX_GPIO(GPIO_FN_LCDD22, LCDD22_MARK), | ||
1224 | PINMUX_GPIO(GPIO_FN_LCDD21, LCDD21_MARK), | ||
1225 | PINMUX_GPIO(GPIO_FN_LCDD20, LCDD20_MARK), | ||
1226 | PINMUX_GPIO(GPIO_FN_LCDD19, LCDD19_MARK), | ||
1227 | PINMUX_GPIO(GPIO_FN_LCDD18, LCDD18_MARK), | ||
1228 | PINMUX_GPIO(GPIO_FN_LCDD17, LCDD17_MARK), | ||
1229 | PINMUX_GPIO(GPIO_FN_LCDD16, LCDD16_MARK), | ||
1230 | PINMUX_GPIO(GPIO_FN_LCDD15, LCDD15_MARK), | ||
1231 | PINMUX_GPIO(GPIO_FN_LCDD14, LCDD14_MARK), | ||
1232 | PINMUX_GPIO(GPIO_FN_LCDD13, LCDD13_MARK), | ||
1233 | PINMUX_GPIO(GPIO_FN_LCDD12, LCDD12_MARK), | ||
1234 | PINMUX_GPIO(GPIO_FN_LCDD11, LCDD11_MARK), | ||
1235 | PINMUX_GPIO(GPIO_FN_LCDD10, LCDD10_MARK), | ||
1236 | PINMUX_GPIO(GPIO_FN_LCDD9, LCDD9_MARK), | ||
1237 | PINMUX_GPIO(GPIO_FN_LCDD8, LCDD8_MARK), | ||
1238 | PINMUX_GPIO(GPIO_FN_LCDD7, LCDD7_MARK), | ||
1239 | PINMUX_GPIO(GPIO_FN_LCDD6, LCDD6_MARK), | ||
1240 | PINMUX_GPIO(GPIO_FN_LCDD5, LCDD5_MARK), | ||
1241 | PINMUX_GPIO(GPIO_FN_LCDD4, LCDD4_MARK), | ||
1242 | PINMUX_GPIO(GPIO_FN_LCDD3, LCDD3_MARK), | ||
1243 | PINMUX_GPIO(GPIO_FN_LCDD2, LCDD2_MARK), | ||
1244 | PINMUX_GPIO(GPIO_FN_LCDD1, LCDD1_MARK), | ||
1245 | PINMUX_GPIO(GPIO_FN_LCDD0, LCDD0_MARK), | ||
1246 | PINMUX_GPIO(GPIO_FN_LCDLCLK_PTR, LCDLCLK_PTR_MARK), | ||
1247 | PINMUX_GPIO(GPIO_FN_LCDLCLK_PTW, LCDLCLK_PTW_MARK), | ||
1248 | /* Main LCD */ | ||
1249 | PINMUX_GPIO(GPIO_FN_LCDDON, LCDDON_MARK), | ||
1250 | PINMUX_GPIO(GPIO_FN_LCDVCPWC, LCDVCPWC_MARK), | ||
1251 | PINMUX_GPIO(GPIO_FN_LCDVEPWC, LCDVEPWC_MARK), | ||
1252 | PINMUX_GPIO(GPIO_FN_LCDVSYN, LCDVSYN_MARK), | ||
1253 | /* Main LCD - RGB Mode */ | ||
1254 | PINMUX_GPIO(GPIO_FN_LCDDCK, LCDDCK_MARK), | ||
1255 | PINMUX_GPIO(GPIO_FN_LCDHSYN, LCDHSYN_MARK), | ||
1256 | PINMUX_GPIO(GPIO_FN_LCDDISP, LCDDISP_MARK), | ||
1257 | /* Main LCD - SYS Mode */ | ||
1258 | PINMUX_GPIO(GPIO_FN_LCDRS, LCDRS_MARK), | ||
1259 | PINMUX_GPIO(GPIO_FN_LCDCS, LCDCS_MARK), | ||
1260 | PINMUX_GPIO(GPIO_FN_LCDWR, LCDWR_MARK), | ||
1261 | PINMUX_GPIO(GPIO_FN_LCDRD, LCDRD_MARK), | ||
1262 | |||
1263 | /* IRQ */ | ||
1264 | PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), | ||
1265 | PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), | ||
1266 | PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), | ||
1267 | PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), | ||
1268 | PINMUX_GPIO(GPIO_FN_IRQ4, IRQ4_MARK), | ||
1269 | PINMUX_GPIO(GPIO_FN_IRQ5, IRQ5_MARK), | ||
1270 | PINMUX_GPIO(GPIO_FN_IRQ6, IRQ6_MARK), | ||
1271 | PINMUX_GPIO(GPIO_FN_IRQ7, IRQ7_MARK), | ||
1272 | |||
1273 | /* AUD */ | ||
1274 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
1275 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1276 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1277 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1278 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1279 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1280 | |||
1281 | /* SDHI0 (PTD) */ | ||
1282 | PINMUX_GPIO(GPIO_FN_SDHI0CD_PTD, SDHI0CD_PTD_MARK), | ||
1283 | PINMUX_GPIO(GPIO_FN_SDHI0WP_PTD, SDHI0WP_PTD_MARK), | ||
1284 | PINMUX_GPIO(GPIO_FN_SDHI0D3_PTD, SDHI0D3_PTD_MARK), | ||
1285 | PINMUX_GPIO(GPIO_FN_SDHI0D2_PTD, SDHI0D2_PTD_MARK), | ||
1286 | PINMUX_GPIO(GPIO_FN_SDHI0D1_PTD, SDHI0D1_PTD_MARK), | ||
1287 | PINMUX_GPIO(GPIO_FN_SDHI0D0_PTD, SDHI0D0_PTD_MARK), | ||
1288 | PINMUX_GPIO(GPIO_FN_SDHI0CMD_PTD, SDHI0CMD_PTD_MARK), | ||
1289 | PINMUX_GPIO(GPIO_FN_SDHI0CLK_PTD, SDHI0CLK_PTD_MARK), | ||
1290 | |||
1291 | /* SDHI0 (PTS) */ | ||
1292 | PINMUX_GPIO(GPIO_FN_SDHI0CD_PTS, SDHI0CD_PTS_MARK), | ||
1293 | PINMUX_GPIO(GPIO_FN_SDHI0WP_PTS, SDHI0WP_PTS_MARK), | ||
1294 | PINMUX_GPIO(GPIO_FN_SDHI0D3_PTS, SDHI0D3_PTS_MARK), | ||
1295 | PINMUX_GPIO(GPIO_FN_SDHI0D2_PTS, SDHI0D2_PTS_MARK), | ||
1296 | PINMUX_GPIO(GPIO_FN_SDHI0D1_PTS, SDHI0D1_PTS_MARK), | ||
1297 | PINMUX_GPIO(GPIO_FN_SDHI0D0_PTS, SDHI0D0_PTS_MARK), | ||
1298 | PINMUX_GPIO(GPIO_FN_SDHI0CMD_PTS, SDHI0CMD_PTS_MARK), | ||
1299 | PINMUX_GPIO(GPIO_FN_SDHI0CLK_PTS, SDHI0CLK_PTS_MARK), | ||
1300 | |||
1301 | /* SDHI1 */ | ||
1302 | PINMUX_GPIO(GPIO_FN_SDHI1CD, SDHI1CD_MARK), | ||
1303 | PINMUX_GPIO(GPIO_FN_SDHI1WP, SDHI1WP_MARK), | ||
1304 | PINMUX_GPIO(GPIO_FN_SDHI1D3, SDHI1D3_MARK), | ||
1305 | PINMUX_GPIO(GPIO_FN_SDHI1D2, SDHI1D2_MARK), | ||
1306 | PINMUX_GPIO(GPIO_FN_SDHI1D1, SDHI1D1_MARK), | ||
1307 | PINMUX_GPIO(GPIO_FN_SDHI1D0, SDHI1D0_MARK), | ||
1308 | PINMUX_GPIO(GPIO_FN_SDHI1CMD, SDHI1CMD_MARK), | ||
1309 | PINMUX_GPIO(GPIO_FN_SDHI1CLK, SDHI1CLK_MARK), | ||
1310 | |||
1311 | /* SIUA */ | ||
1312 | PINMUX_GPIO(GPIO_FN_SIUAFCK, SIUAFCK_MARK), | ||
1313 | PINMUX_GPIO(GPIO_FN_SIUAILR, SIUAILR_MARK), | ||
1314 | PINMUX_GPIO(GPIO_FN_SIUAIBT, SIUAIBT_MARK), | ||
1315 | PINMUX_GPIO(GPIO_FN_SIUAISLD, SIUAISLD_MARK), | ||
1316 | PINMUX_GPIO(GPIO_FN_SIUAOLR, SIUAOLR_MARK), | ||
1317 | PINMUX_GPIO(GPIO_FN_SIUAOBT, SIUAOBT_MARK), | ||
1318 | PINMUX_GPIO(GPIO_FN_SIUAOSLD, SIUAOSLD_MARK), | ||
1319 | PINMUX_GPIO(GPIO_FN_SIUAMCK, SIUAMCK_MARK), | ||
1320 | PINMUX_GPIO(GPIO_FN_SIUAISPD, SIUAISPD_MARK), | ||
1321 | PINMUX_GPIO(GPIO_FN_SIUAOSPD, SIUAOSPD_MARK), | ||
1322 | |||
1323 | /* SIUB */ | ||
1324 | PINMUX_GPIO(GPIO_FN_SIUBFCK, SIUBFCK_MARK), | ||
1325 | PINMUX_GPIO(GPIO_FN_SIUBILR, SIUBILR_MARK), | ||
1326 | PINMUX_GPIO(GPIO_FN_SIUBIBT, SIUBIBT_MARK), | ||
1327 | PINMUX_GPIO(GPIO_FN_SIUBISLD, SIUBISLD_MARK), | ||
1328 | PINMUX_GPIO(GPIO_FN_SIUBOLR, SIUBOLR_MARK), | ||
1329 | PINMUX_GPIO(GPIO_FN_SIUBOBT, SIUBOBT_MARK), | ||
1330 | PINMUX_GPIO(GPIO_FN_SIUBOSLD, SIUBOSLD_MARK), | ||
1331 | PINMUX_GPIO(GPIO_FN_SIUBMCK, SIUBMCK_MARK), | ||
1332 | |||
1333 | /* IRDA */ | ||
1334 | PINMUX_GPIO(GPIO_FN_IRDA_IN, IRDA_IN_MARK), | ||
1335 | PINMUX_GPIO(GPIO_FN_IRDA_OUT, IRDA_OUT_MARK), | ||
1336 | |||
1337 | /* VOU */ | ||
1338 | PINMUX_GPIO(GPIO_FN_DV_CLKI, DV_CLKI_MARK), | ||
1339 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1340 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1341 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1342 | PINMUX_GPIO(GPIO_FN_DV_D15, DV_D15_MARK), | ||
1343 | PINMUX_GPIO(GPIO_FN_DV_D14, DV_D14_MARK), | ||
1344 | PINMUX_GPIO(GPIO_FN_DV_D13, DV_D13_MARK), | ||
1345 | PINMUX_GPIO(GPIO_FN_DV_D12, DV_D12_MARK), | ||
1346 | PINMUX_GPIO(GPIO_FN_DV_D11, DV_D11_MARK), | ||
1347 | PINMUX_GPIO(GPIO_FN_DV_D10, DV_D10_MARK), | ||
1348 | PINMUX_GPIO(GPIO_FN_DV_D9, DV_D9_MARK), | ||
1349 | PINMUX_GPIO(GPIO_FN_DV_D8, DV_D8_MARK), | ||
1350 | PINMUX_GPIO(GPIO_FN_DV_D7, DV_D7_MARK), | ||
1351 | PINMUX_GPIO(GPIO_FN_DV_D6, DV_D6_MARK), | ||
1352 | PINMUX_GPIO(GPIO_FN_DV_D5, DV_D5_MARK), | ||
1353 | PINMUX_GPIO(GPIO_FN_DV_D4, DV_D4_MARK), | ||
1354 | PINMUX_GPIO(GPIO_FN_DV_D3, DV_D3_MARK), | ||
1355 | PINMUX_GPIO(GPIO_FN_DV_D2, DV_D2_MARK), | ||
1356 | PINMUX_GPIO(GPIO_FN_DV_D1, DV_D1_MARK), | ||
1357 | PINMUX_GPIO(GPIO_FN_DV_D0, DV_D0_MARK), | ||
1358 | |||
1359 | /* KEYSC */ | ||
1360 | PINMUX_GPIO(GPIO_FN_KEYIN0, KEYIN0_MARK), | ||
1361 | PINMUX_GPIO(GPIO_FN_KEYIN1, KEYIN1_MARK), | ||
1362 | PINMUX_GPIO(GPIO_FN_KEYIN2, KEYIN2_MARK), | ||
1363 | PINMUX_GPIO(GPIO_FN_KEYIN3, KEYIN3_MARK), | ||
1364 | PINMUX_GPIO(GPIO_FN_KEYIN4, KEYIN4_MARK), | ||
1365 | PINMUX_GPIO(GPIO_FN_KEYOUT0, KEYOUT0_MARK), | ||
1366 | PINMUX_GPIO(GPIO_FN_KEYOUT1, KEYOUT1_MARK), | ||
1367 | PINMUX_GPIO(GPIO_FN_KEYOUT2, KEYOUT2_MARK), | ||
1368 | PINMUX_GPIO(GPIO_FN_KEYOUT3, KEYOUT3_MARK), | ||
1369 | PINMUX_GPIO(GPIO_FN_KEYOUT4_IN6, KEYOUT4_IN6_MARK), | ||
1370 | PINMUX_GPIO(GPIO_FN_KEYOUT5_IN5, KEYOUT5_IN5_MARK), | ||
1371 | |||
1372 | /* MSIOF0 (PTF) */ | ||
1373 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_TXD, MSIOF0_PTF_TXD_MARK), | ||
1374 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_RXD, MSIOF0_PTF_RXD_MARK), | ||
1375 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_MCK, MSIOF0_PTF_MCK_MARK), | ||
1376 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_TSYNC, MSIOF0_PTF_TSYNC_MARK), | ||
1377 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_TSCK, MSIOF0_PTF_TSCK_MARK), | ||
1378 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_RSYNC, MSIOF0_PTF_RSYNC_MARK), | ||
1379 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_RSCK, MSIOF0_PTF_RSCK_MARK), | ||
1380 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_SS1, MSIOF0_PTF_SS1_MARK), | ||
1381 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTF_SS2, MSIOF0_PTF_SS2_MARK), | ||
1382 | |||
1383 | /* MSIOF0 (PTT+PTX) */ | ||
1384 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_TXD, MSIOF0_PTT_TXD_MARK), | ||
1385 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_RXD, MSIOF0_PTT_RXD_MARK), | ||
1386 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTX_MCK, MSIOF0_PTX_MCK_MARK), | ||
1387 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_TSYNC, MSIOF0_PTT_TSYNC_MARK), | ||
1388 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_TSCK, MSIOF0_PTT_TSCK_MARK), | ||
1389 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_RSYNC, MSIOF0_PTT_RSYNC_MARK), | ||
1390 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_RSCK, MSIOF0_PTT_RSCK_MARK), | ||
1391 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_SS1, MSIOF0_PTT_SS1_MARK), | ||
1392 | PINMUX_GPIO(GPIO_FN_MSIOF0_PTT_SS2, MSIOF0_PTT_SS2_MARK), | ||
1393 | |||
1394 | /* MSIOF1 */ | ||
1395 | PINMUX_GPIO(GPIO_FN_MSIOF1_TXD, MSIOF1_TXD_MARK), | ||
1396 | PINMUX_GPIO(GPIO_FN_MSIOF1_RXD, MSIOF1_RXD_MARK), | ||
1397 | PINMUX_GPIO(GPIO_FN_MSIOF1_MCK, MSIOF1_MCK_MARK), | ||
1398 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSYNC, MSIOF1_TSYNC_MARK), | ||
1399 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSCK, MSIOF1_TSCK_MARK), | ||
1400 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSYNC, MSIOF1_RSYNC_MARK), | ||
1401 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSCK, MSIOF1_RSCK_MARK), | ||
1402 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS1, MSIOF1_SS1_MARK), | ||
1403 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS2, MSIOF1_SS2_MARK), | ||
1404 | |||
1405 | /* TSIF */ | ||
1406 | PINMUX_GPIO(GPIO_FN_TS0_SDAT, TS0_SDAT_MARK), | ||
1407 | PINMUX_GPIO(GPIO_FN_TS0_SCK, TS0_SCK_MARK), | ||
1408 | PINMUX_GPIO(GPIO_FN_TS0_SDEN, TS0_SDEN_MARK), | ||
1409 | PINMUX_GPIO(GPIO_FN_TS0_SPSYNC, TS0_SPSYNC_MARK), | ||
1410 | |||
1411 | /* FLCTL */ | ||
1412 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
1413 | PINMUX_GPIO(GPIO_FN_NAF7, NAF7_MARK), | ||
1414 | PINMUX_GPIO(GPIO_FN_NAF6, NAF6_MARK), | ||
1415 | PINMUX_GPIO(GPIO_FN_NAF5, NAF5_MARK), | ||
1416 | PINMUX_GPIO(GPIO_FN_NAF4, NAF4_MARK), | ||
1417 | PINMUX_GPIO(GPIO_FN_NAF3, NAF3_MARK), | ||
1418 | PINMUX_GPIO(GPIO_FN_NAF2, NAF2_MARK), | ||
1419 | PINMUX_GPIO(GPIO_FN_NAF1, NAF1_MARK), | ||
1420 | PINMUX_GPIO(GPIO_FN_NAF0, NAF0_MARK), | ||
1421 | PINMUX_GPIO(GPIO_FN_FCDE, FCDE_MARK), | ||
1422 | PINMUX_GPIO(GPIO_FN_FOE, FOE_MARK), | ||
1423 | PINMUX_GPIO(GPIO_FN_FSC, FSC_MARK), | ||
1424 | PINMUX_GPIO(GPIO_FN_FWE, FWE_MARK), | ||
1425 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
1426 | |||
1427 | /* DMAC */ | ||
1428 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
1429 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
1430 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
1431 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1432 | |||
1433 | /* ADC */ | ||
1434 | PINMUX_GPIO(GPIO_FN_AN3, AN3_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_AN2, AN2_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_AN1, AN1_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_AN0, AN0_MARK), | ||
1438 | PINMUX_GPIO(GPIO_FN_ADTRG, ADTRG_MARK), | ||
1439 | |||
1440 | /* CPG */ | ||
1441 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1442 | PINMUX_GPIO(GPIO_FN_PDSTATUS, PDSTATUS_MARK), | ||
1443 | |||
1444 | /* TPU */ | ||
1445 | PINMUX_GPIO(GPIO_FN_TPUTO0, TPUTO0_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_TPUTO1, TPUTO1_MARK), | ||
1447 | PINMUX_GPIO(GPIO_FN_TPUTO2, TPUTO2_MARK), | ||
1448 | PINMUX_GPIO(GPIO_FN_TPUTO3, TPUTO3_MARK), | ||
1449 | |||
1450 | /* BSC */ | ||
1451 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
1452 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
1453 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
1462 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
1463 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
1464 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
1465 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
1466 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
1467 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1468 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1469 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1470 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1471 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1472 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1473 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1474 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
1475 | PINMUX_GPIO(GPIO_FN_CS6A_CE2B, CS6A_CE2B_MARK), | ||
1476 | PINMUX_GPIO(GPIO_FN_CS5B_CE1A, CS5B_CE1A_MARK), | ||
1477 | PINMUX_GPIO(GPIO_FN_CS5A_CE2A, CS5A_CE2A_MARK), | ||
1478 | PINMUX_GPIO(GPIO_FN_WE3_ICIOWR, WE3_ICIOWR_MARK), | ||
1479 | PINMUX_GPIO(GPIO_FN_WE2_ICIORD, WE2_ICIORD_MARK), | ||
1480 | |||
1481 | /* ATAPI */ | ||
1482 | PINMUX_GPIO(GPIO_FN_IDED15, IDED15_MARK), | ||
1483 | PINMUX_GPIO(GPIO_FN_IDED14, IDED14_MARK), | ||
1484 | PINMUX_GPIO(GPIO_FN_IDED13, IDED13_MARK), | ||
1485 | PINMUX_GPIO(GPIO_FN_IDED12, IDED12_MARK), | ||
1486 | PINMUX_GPIO(GPIO_FN_IDED11, IDED11_MARK), | ||
1487 | PINMUX_GPIO(GPIO_FN_IDED10, IDED10_MARK), | ||
1488 | PINMUX_GPIO(GPIO_FN_IDED9, IDED9_MARK), | ||
1489 | PINMUX_GPIO(GPIO_FN_IDED8, IDED8_MARK), | ||
1490 | PINMUX_GPIO(GPIO_FN_IDED7, IDED7_MARK), | ||
1491 | PINMUX_GPIO(GPIO_FN_IDED6, IDED6_MARK), | ||
1492 | PINMUX_GPIO(GPIO_FN_IDED5, IDED5_MARK), | ||
1493 | PINMUX_GPIO(GPIO_FN_IDED4, IDED4_MARK), | ||
1494 | PINMUX_GPIO(GPIO_FN_IDED3, IDED3_MARK), | ||
1495 | PINMUX_GPIO(GPIO_FN_IDED2, IDED2_MARK), | ||
1496 | PINMUX_GPIO(GPIO_FN_IDED1, IDED1_MARK), | ||
1497 | PINMUX_GPIO(GPIO_FN_IDED0, IDED0_MARK), | ||
1498 | PINMUX_GPIO(GPIO_FN_DIRECTION, DIRECTION_MARK), | ||
1499 | PINMUX_GPIO(GPIO_FN_EXBUF_ENB, EXBUF_ENB_MARK), | ||
1500 | PINMUX_GPIO(GPIO_FN_IDERST, IDERST_MARK), | ||
1501 | PINMUX_GPIO(GPIO_FN_IODACK, IODACK_MARK), | ||
1502 | PINMUX_GPIO(GPIO_FN_IODREQ, IODREQ_MARK), | ||
1503 | PINMUX_GPIO(GPIO_FN_IDEIORDY, IDEIORDY_MARK), | ||
1504 | PINMUX_GPIO(GPIO_FN_IDEINT, IDEINT_MARK), | ||
1505 | PINMUX_GPIO(GPIO_FN_IDEIOWR, IDEIOWR_MARK), | ||
1506 | PINMUX_GPIO(GPIO_FN_IDEIORD, IDEIORD_MARK), | ||
1507 | PINMUX_GPIO(GPIO_FN_IDECS1, IDECS1_MARK), | ||
1508 | PINMUX_GPIO(GPIO_FN_IDECS0, IDECS0_MARK), | ||
1509 | PINMUX_GPIO(GPIO_FN_IDEA2, IDEA2_MARK), | ||
1510 | PINMUX_GPIO(GPIO_FN_IDEA1, IDEA1_MARK), | ||
1511 | PINMUX_GPIO(GPIO_FN_IDEA0, IDEA0_MARK), | ||
1512 | }; | ||
1513 | |||
1514 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1515 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
1516 | PTA7_FN, PTA7_OUT, 0, PTA7_IN, | ||
1517 | PTA6_FN, PTA6_OUT, 0, PTA6_IN, | ||
1518 | PTA5_FN, PTA5_OUT, 0, PTA5_IN, | ||
1519 | PTA4_FN, PTA4_OUT, PTA4_IN_PU, PTA4_IN, | ||
1520 | PTA3_FN, PTA3_OUT, PTA3_IN_PU, PTA3_IN, | ||
1521 | PTA2_FN, PTA2_OUT, PTA2_IN_PU, PTA2_IN, | ||
1522 | PTA1_FN, PTA1_OUT, PTA1_IN_PU, PTA1_IN, | ||
1523 | PTA0_FN, PTA0_OUT, PTA0_IN_PU, PTA0_IN } | ||
1524 | }, | ||
1525 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
1526 | PTB7_FN, PTB7_OUT, 0, PTB7_IN, | ||
1527 | PTB6_FN, PTB6_OUT, 0, PTB6_IN, | ||
1528 | PTB5_FN, PTB5_OUT, 0, PTB5_IN, | ||
1529 | PTB4_FN, PTB4_OUT, 0, PTB4_IN, | ||
1530 | PTB3_FN, PTB3_OUT, 0, PTB3_IN, | ||
1531 | PTB2_FN, PTB2_OUT, PTB2_IN_PU, PTB2_IN, | ||
1532 | PTB1_FN, PTB1_OUT, PTB1_IN_PU, PTB1_IN, | ||
1533 | PTB0_FN, PTB0_OUT, 0, PTB0_IN } | ||
1534 | }, | ||
1535 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
1536 | PTC7_FN, PTC7_OUT, 0, PTC7_IN, | ||
1537 | PTC6_FN, PTC6_OUT, 0, PTC6_IN, | ||
1538 | PTC5_FN, PTC5_OUT, 0, PTC5_IN, | ||
1539 | PTC4_FN, PTC4_OUT, 0, PTC4_IN, | ||
1540 | PTC3_FN, PTC3_OUT, 0, PTC3_IN, | ||
1541 | PTC2_FN, PTC2_OUT, 0, PTC2_IN, | ||
1542 | PTC1_FN, PTC1_OUT, 0, PTC1_IN, | ||
1543 | PTC0_FN, PTC0_OUT, 0, PTC0_IN } | ||
1544 | }, | ||
1545 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
1546 | PTD7_FN, PTD7_OUT, 0, PTD7_IN, | ||
1547 | PTD6_FN, PTD6_OUT, 0, PTD6_IN, | ||
1548 | PTD5_FN, PTD5_OUT, 0, PTD5_IN, | ||
1549 | PTD4_FN, PTD4_OUT, 0, PTD4_IN, | ||
1550 | PTD3_FN, PTD3_OUT, 0, PTD3_IN, | ||
1551 | PTD2_FN, PTD2_OUT, 0, PTD2_IN, | ||
1552 | PTD1_FN, PTD1_OUT, 0, PTD1_IN, | ||
1553 | PTD0_FN, PTD0_OUT, 0, PTD0_IN } | ||
1554 | }, | ||
1555 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
1556 | 0, 0, 0, 0, | ||
1557 | 0, 0, 0, 0, | ||
1558 | PTE5_FN, PTE5_OUT, 0, PTE5_IN, | ||
1559 | PTE4_FN, PTE4_OUT, 0, PTE4_IN, | ||
1560 | PTE3_FN, PTE3_OUT, 0, PTE3_IN, | ||
1561 | PTE2_FN, PTE2_OUT, 0, PTE2_IN, | ||
1562 | PTE1_FN, PTE1_OUT, 0, PTE1_IN, | ||
1563 | PTE0_FN, PTE0_OUT, 0, PTE0_IN } | ||
1564 | }, | ||
1565 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1566 | PTF7_FN, PTF7_OUT, 0, PTF7_IN, | ||
1567 | PTF6_FN, PTF6_OUT, 0, PTF6_IN, | ||
1568 | PTF5_FN, PTF5_OUT, 0, PTF5_IN, | ||
1569 | PTF4_FN, PTF4_OUT, 0, PTF4_IN, | ||
1570 | PTF3_FN, PTF3_OUT, 0, PTF3_IN, | ||
1571 | PTF2_FN, PTF2_OUT, 0, PTF2_IN, | ||
1572 | PTF1_FN, PTF1_OUT, 0, PTF1_IN, | ||
1573 | PTF0_FN, PTF0_OUT, 0, PTF0_IN } | ||
1574 | }, | ||
1575 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1576 | 0, 0, 0, 0, | ||
1577 | 0, 0, 0, 0, | ||
1578 | PTG5_FN, PTG5_OUT, 0, 0, | ||
1579 | PTG4_FN, PTG4_OUT, 0, 0, | ||
1580 | PTG3_FN, PTG3_OUT, 0, 0, | ||
1581 | PTG2_FN, PTG2_OUT, 0, 0, | ||
1582 | PTG1_FN, PTG1_OUT, 0, 0, | ||
1583 | PTG0_FN, PTG0_OUT, 0, 0 } | ||
1584 | }, | ||
1585 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1586 | PTH7_FN, PTH7_OUT, 0, PTH7_IN, | ||
1587 | PTH6_FN, PTH6_OUT, 0, PTH6_IN, | ||
1588 | PTH5_FN, PTH5_OUT, 0, PTH5_IN, | ||
1589 | PTH4_FN, PTH4_OUT, 0, PTH4_IN, | ||
1590 | PTH3_FN, PTH3_OUT, 0, PTH3_IN, | ||
1591 | PTH2_FN, PTH2_OUT, 0, PTH2_IN, | ||
1592 | PTH1_FN, PTH1_OUT, 0, PTH1_IN, | ||
1593 | PTH0_FN, PTH0_OUT, 0, PTH0_IN } | ||
1594 | }, | ||
1595 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1596 | PTJ7_FN, PTJ7_OUT, 0, 0, | ||
1597 | 0, 0, 0, 0, | ||
1598 | PTJ5_FN, PTJ5_OUT, 0, 0, | ||
1599 | 0, 0, 0, 0, | ||
1600 | PTJ3_FN, PTJ3_OUT, 0, PTJ3_IN, | ||
1601 | PTJ2_FN, PTJ2_OUT, 0, PTJ2_IN, | ||
1602 | PTJ1_FN, PTJ1_OUT, 0, PTJ1_IN, | ||
1603 | PTJ0_FN, PTJ0_OUT, 0, PTJ0_IN } | ||
1604 | }, | ||
1605 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1606 | PTK7_FN, PTK7_OUT, 0, PTK7_IN, | ||
1607 | PTK6_FN, PTK6_OUT, 0, PTK6_IN, | ||
1608 | PTK5_FN, PTK5_OUT, 0, PTK5_IN, | ||
1609 | PTK4_FN, PTK4_OUT, 0, PTK4_IN, | ||
1610 | PTK3_FN, PTK3_OUT, 0, PTK3_IN, | ||
1611 | PTK2_FN, PTK2_OUT, 0, PTK2_IN, | ||
1612 | PTK1_FN, PTK1_OUT, 0, PTK1_IN, | ||
1613 | PTK0_FN, PTK0_OUT, 0, PTK0_IN } | ||
1614 | }, | ||
1615 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1616 | PTL7_FN, PTL7_OUT, 0, PTL7_IN, | ||
1617 | PTL6_FN, PTL6_OUT, 0, PTL6_IN, | ||
1618 | PTL5_FN, PTL5_OUT, 0, PTL5_IN, | ||
1619 | PTL4_FN, PTL4_OUT, 0, PTL4_IN, | ||
1620 | PTL3_FN, PTL3_OUT, 0, PTL3_IN, | ||
1621 | PTL2_FN, PTL2_OUT, 0, PTL2_IN, | ||
1622 | PTL1_FN, PTL1_OUT, 0, PTL1_IN, | ||
1623 | PTL0_FN, PTL0_OUT, 0, PTL0_IN } | ||
1624 | }, | ||
1625 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1626 | PTM7_FN, PTM7_OUT, 0, PTM7_IN, | ||
1627 | PTM6_FN, PTM6_OUT, 0, PTM6_IN, | ||
1628 | PTM5_FN, PTM5_OUT, 0, PTM5_IN, | ||
1629 | PTM4_FN, PTM4_OUT, 0, PTM4_IN, | ||
1630 | PTM3_FN, PTM3_OUT, 0, PTM3_IN, | ||
1631 | PTM2_FN, PTM2_OUT, 0, PTM2_IN, | ||
1632 | PTM1_FN, PTM1_OUT, 0, PTM1_IN, | ||
1633 | PTM0_FN, PTM0_OUT, 0, PTM0_IN } | ||
1634 | }, | ||
1635 | { PINMUX_CFG_REG("PNCR", 0xa4050118, 16, 2) { | ||
1636 | PTN7_FN, PTN7_OUT, 0, PTN7_IN, | ||
1637 | PTN6_FN, PTN6_OUT, 0, PTN6_IN, | ||
1638 | PTN5_FN, PTN5_OUT, 0, PTN5_IN, | ||
1639 | PTN4_FN, PTN4_OUT, 0, PTN4_IN, | ||
1640 | PTN3_FN, PTN3_OUT, 0, PTN3_IN, | ||
1641 | PTN2_FN, PTN2_OUT, 0, PTN2_IN, | ||
1642 | PTN1_FN, PTN1_OUT, 0, PTN1_IN, | ||
1643 | PTN0_FN, PTN0_OUT, 0, PTN0_IN } | ||
1644 | }, | ||
1645 | { PINMUX_CFG_REG("PQCR", 0xa405011a, 16, 2) { | ||
1646 | 0, 0, 0, 0, | ||
1647 | 0, 0, 0, 0, | ||
1648 | 0, 0, 0, 0, | ||
1649 | 0, 0, 0, 0, | ||
1650 | PTQ3_FN, 0, 0, PTQ3_IN, | ||
1651 | PTQ2_FN, 0, 0, PTQ2_IN, | ||
1652 | PTQ1_FN, 0, 0, PTQ1_IN, | ||
1653 | PTQ0_FN, 0, 0, PTQ0_IN } | ||
1654 | }, | ||
1655 | { PINMUX_CFG_REG("PRCR", 0xa405011c, 16, 2) { | ||
1656 | PTR7_FN, PTR7_OUT, 0, PTR7_IN, | ||
1657 | PTR6_FN, PTR6_OUT, 0, PTR6_IN, | ||
1658 | PTR5_FN, PTR5_OUT, 0, PTR5_IN, | ||
1659 | PTR4_FN, PTR4_OUT, 0, PTR4_IN, | ||
1660 | PTR3_FN, 0, 0, PTR3_IN, | ||
1661 | PTR2_FN, 0, PTR2_IN_PU, PTR2_IN, | ||
1662 | PTR1_FN, PTR1_OUT, 0, PTR1_IN, | ||
1663 | PTR0_FN, PTR0_OUT, 0, PTR0_IN } | ||
1664 | }, | ||
1665 | { PINMUX_CFG_REG("PSCR", 0xa405011e, 16, 2) { | ||
1666 | PTS7_FN, PTS7_OUT, 0, PTS7_IN, | ||
1667 | PTS6_FN, PTS6_OUT, 0, PTS6_IN, | ||
1668 | PTS5_FN, PTS5_OUT, 0, PTS5_IN, | ||
1669 | PTS4_FN, PTS4_OUT, 0, PTS4_IN, | ||
1670 | PTS3_FN, PTS3_OUT, 0, PTS3_IN, | ||
1671 | PTS2_FN, PTS2_OUT, 0, PTS2_IN, | ||
1672 | PTS1_FN, PTS1_OUT, 0, PTS1_IN, | ||
1673 | PTS0_FN, PTS0_OUT, 0, PTS0_IN } | ||
1674 | }, | ||
1675 | { PINMUX_CFG_REG("PTCR", 0xa4050140, 16, 2) { | ||
1676 | 0, 0, 0, 0, | ||
1677 | 0, 0, 0, 0, | ||
1678 | PTT5_FN, PTT5_OUT, 0, PTT5_IN, | ||
1679 | PTT4_FN, PTT4_OUT, 0, PTT4_IN, | ||
1680 | PTT3_FN, PTT3_OUT, 0, PTT3_IN, | ||
1681 | PTT2_FN, PTT2_OUT, 0, PTT2_IN, | ||
1682 | PTT1_FN, PTT1_OUT, 0, PTT1_IN, | ||
1683 | PTT0_FN, PTT0_OUT, 0, PTT0_IN } | ||
1684 | }, | ||
1685 | { PINMUX_CFG_REG("PUCR", 0xa4050142, 16, 2) { | ||
1686 | 0, 0, 0, 0, | ||
1687 | 0, 0, 0, 0, | ||
1688 | PTU5_FN, PTU5_OUT, 0, PTU5_IN, | ||
1689 | PTU4_FN, PTU4_OUT, 0, PTU4_IN, | ||
1690 | PTU3_FN, PTU3_OUT, 0, PTU3_IN, | ||
1691 | PTU2_FN, PTU2_OUT, 0, PTU2_IN, | ||
1692 | PTU1_FN, PTU1_OUT, 0, PTU1_IN, | ||
1693 | PTU0_FN, PTU0_OUT, 0, PTU0_IN } | ||
1694 | }, | ||
1695 | { PINMUX_CFG_REG("PVCR", 0xa4050144, 16, 2) { | ||
1696 | PTV7_FN, PTV7_OUT, 0, PTV7_IN, | ||
1697 | PTV6_FN, PTV6_OUT, 0, PTV6_IN, | ||
1698 | PTV5_FN, PTV5_OUT, 0, PTV5_IN, | ||
1699 | PTV4_FN, PTV4_OUT, 0, PTV4_IN, | ||
1700 | PTV3_FN, PTV3_OUT, 0, PTV3_IN, | ||
1701 | PTV2_FN, PTV2_OUT, 0, PTV2_IN, | ||
1702 | PTV1_FN, PTV1_OUT, 0, PTV1_IN, | ||
1703 | PTV0_FN, PTV0_OUT, 0, PTV0_IN } | ||
1704 | }, | ||
1705 | { PINMUX_CFG_REG("PWCR", 0xa4050146, 16, 2) { | ||
1706 | PTW7_FN, PTW7_OUT, 0, PTW7_IN, | ||
1707 | PTW6_FN, PTW6_OUT, 0, PTW6_IN, | ||
1708 | PTW5_FN, PTW5_OUT, 0, PTW5_IN, | ||
1709 | PTW4_FN, PTW4_OUT, 0, PTW4_IN, | ||
1710 | PTW3_FN, PTW3_OUT, 0, PTW3_IN, | ||
1711 | PTW2_FN, PTW2_OUT, 0, PTW2_IN, | ||
1712 | PTW1_FN, PTW1_OUT, 0, PTW1_IN, | ||
1713 | PTW0_FN, PTW0_OUT, 0, PTW0_IN } | ||
1714 | }, | ||
1715 | { PINMUX_CFG_REG("PXCR", 0xa4050148, 16, 2) { | ||
1716 | PTX7_FN, PTX7_OUT, 0, PTX7_IN, | ||
1717 | PTX6_FN, PTX6_OUT, 0, PTX6_IN, | ||
1718 | PTX5_FN, PTX5_OUT, 0, PTX5_IN, | ||
1719 | PTX4_FN, PTX4_OUT, 0, PTX4_IN, | ||
1720 | PTX3_FN, PTX3_OUT, 0, PTX3_IN, | ||
1721 | PTX2_FN, PTX2_OUT, 0, PTX2_IN, | ||
1722 | PTX1_FN, PTX1_OUT, 0, PTX1_IN, | ||
1723 | PTX0_FN, PTX0_OUT, 0, PTX0_IN } | ||
1724 | }, | ||
1725 | { PINMUX_CFG_REG("PYCR", 0xa405014a, 16, 2) { | ||
1726 | PTY7_FN, PTY7_OUT, 0, PTY7_IN, | ||
1727 | PTY6_FN, PTY6_OUT, 0, PTY6_IN, | ||
1728 | PTY5_FN, PTY5_OUT, 0, PTY5_IN, | ||
1729 | PTY4_FN, PTY4_OUT, 0, PTY4_IN, | ||
1730 | PTY3_FN, PTY3_OUT, 0, PTY3_IN, | ||
1731 | PTY2_FN, PTY2_OUT, 0, PTY2_IN, | ||
1732 | PTY1_FN, PTY1_OUT, 0, PTY1_IN, | ||
1733 | PTY0_FN, PTY0_OUT, 0, PTY0_IN } | ||
1734 | }, | ||
1735 | { PINMUX_CFG_REG("PZCR", 0xa405014c, 16, 2) { | ||
1736 | PTZ7_FN, PTZ7_OUT, 0, PTZ7_IN, | ||
1737 | PTZ6_FN, PTZ6_OUT, 0, PTZ6_IN, | ||
1738 | PTZ5_FN, PTZ5_OUT, 0, PTZ5_IN, | ||
1739 | PTZ4_FN, PTZ4_OUT, 0, PTZ4_IN, | ||
1740 | PTZ3_FN, PTZ3_OUT, 0, PTZ3_IN, | ||
1741 | PTZ2_FN, PTZ2_OUT, 0, PTZ2_IN, | ||
1742 | PTZ1_FN, PTZ1_OUT, 0, PTZ1_IN, | ||
1743 | PTZ0_FN, PTZ0_OUT, 0, PTZ0_IN } | ||
1744 | }, | ||
1745 | { PINMUX_CFG_REG("PSELA", 0xa405014e, 16, 2) { | ||
1746 | PSA15_PSA14_FN1, PSA15_PSA14_FN2, 0, 0, | ||
1747 | PSA13_PSA12_FN1, PSA13_PSA12_FN2, 0, 0, | ||
1748 | PSA11_PSA10_FN1, PSA11_PSA10_FN2, 0, 0, | ||
1749 | 0, 0, 0, 0, | ||
1750 | 0, 0, 0, 0, | ||
1751 | PSA5_PSA4_FN1, PSA5_PSA4_FN2, PSA5_PSA4_FN3, 0, | ||
1752 | PSA3_PSA2_FN1, PSA3_PSA2_FN2, 0, 0, | ||
1753 | 0, 0, 0, 0 } | ||
1754 | }, | ||
1755 | { PINMUX_CFG_REG("PSELB", 0xa4050150, 16, 2) { | ||
1756 | PSB15_PSB14_FN1, PSB15_PSB14_FN2, 0, 0, | ||
1757 | PSB13_PSB12_LCDC_RGB, PSB13_PSB12_LCDC_SYS, 0, 0, | ||
1758 | 0, 0, 0, 0, | ||
1759 | PSB9_PSB8_FN1, PSB9_PSB8_FN2, PSB9_PSB8_FN3, 0, | ||
1760 | PSB7_PSB6_FN1, PSB7_PSB6_FN2, 0, 0, | ||
1761 | PSB5_PSB4_FN1, PSB5_PSB4_FN2, 0, 0, | ||
1762 | PSB3_PSB2_FN1, PSB3_PSB2_FN2, 0, 0, | ||
1763 | 0, 0, 0, 0 } | ||
1764 | }, | ||
1765 | { PINMUX_CFG_REG("PSELC", 0xa4050152, 16, 2) { | ||
1766 | PSC15_PSC14_FN1, PSC15_PSC14_FN2, 0, 0, | ||
1767 | PSC13_PSC12_FN1, PSC13_PSC12_FN2, 0, 0, | ||
1768 | PSC11_PSC10_FN1, PSC11_PSC10_FN2, PSC11_PSC10_FN3, 0, | ||
1769 | PSC9_PSC8_FN1, PSC9_PSC8_FN2, 0, 0, | ||
1770 | PSC7_PSC6_FN1, PSC7_PSC6_FN2, PSC7_PSC6_FN3, 0, | ||
1771 | 0, 0, 0, 0, | ||
1772 | 0, 0, 0, 0, | ||
1773 | 0, 0, 0, 0 } | ||
1774 | }, | ||
1775 | { PINMUX_CFG_REG("PSELD", 0xa4050154, 16, 2) { | ||
1776 | PSD15_PSD14_FN1, PSD15_PSD14_FN2, 0, 0, | ||
1777 | PSD13_PSD12_FN1, PSD13_PSD12_FN2, 0, 0, | ||
1778 | PSD11_PSD10_FN1, PSD11_PSD10_FN2, PSD11_PSD10_FN3, 0, | ||
1779 | PSD9_PSD8_FN1, PSD9_PSD8_FN2, 0, 0, | ||
1780 | PSD7_PSD6_FN1, PSD7_PSD6_FN2, 0, 0, | ||
1781 | PSD5_PSD4_FN1, PSD5_PSD4_FN2, 0, 0, | ||
1782 | PSD3_PSD2_FN1, PSD3_PSD2_FN2, 0, 0, | ||
1783 | PSD1_PSD0_FN1, PSD1_PSD0_FN2, 0, 0 } | ||
1784 | }, | ||
1785 | {} | ||
1786 | }; | ||
1787 | |||
1788 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1789 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { | ||
1790 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
1791 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
1792 | }, | ||
1793 | { PINMUX_DATA_REG("PBDR", 0xa4050122, 8) { | ||
1794 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
1795 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
1796 | }, | ||
1797 | { PINMUX_DATA_REG("PCDR", 0xa4050124, 8) { | ||
1798 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
1799 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
1800 | }, | ||
1801 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
1802 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
1803 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
1804 | }, | ||
1805 | { PINMUX_DATA_REG("PEDR", 0xa4050128, 8) { | ||
1806 | 0, 0, PTE5_DATA, PTE4_DATA, | ||
1807 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
1808 | }, | ||
1809 | { PINMUX_DATA_REG("PFDR", 0xa405012a, 8) { | ||
1810 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
1811 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
1812 | }, | ||
1813 | { PINMUX_DATA_REG("PGDR", 0xa405012c, 8) { | ||
1814 | 0, 0, PTG5_DATA, PTG4_DATA, | ||
1815 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
1816 | }, | ||
1817 | { PINMUX_DATA_REG("PHDR", 0xa405012e, 8) { | ||
1818 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
1819 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
1820 | }, | ||
1821 | { PINMUX_DATA_REG("PJDR", 0xa4050130, 8) { | ||
1822 | PTJ7_DATA, 0, PTJ5_DATA, 0, | ||
1823 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
1824 | }, | ||
1825 | { PINMUX_DATA_REG("PKDR", 0xa4050132, 8) { | ||
1826 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
1827 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
1828 | }, | ||
1829 | { PINMUX_DATA_REG("PLDR", 0xa4050134, 8) { | ||
1830 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
1831 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
1832 | }, | ||
1833 | { PINMUX_DATA_REG("PMDR", 0xa4050136, 8) { | ||
1834 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
1835 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
1836 | }, | ||
1837 | { PINMUX_DATA_REG("PNDR", 0xa4050138, 8) { | ||
1838 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
1839 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
1840 | }, | ||
1841 | { PINMUX_DATA_REG("PQDR", 0xa405013a, 8) { | ||
1842 | 0, 0, 0, 0, | ||
1843 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
1844 | }, | ||
1845 | { PINMUX_DATA_REG("PRDR", 0xa405013c, 8) { | ||
1846 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
1847 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
1848 | }, | ||
1849 | { PINMUX_DATA_REG("PSDR", 0xa405013e, 8) { | ||
1850 | PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
1851 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
1852 | }, | ||
1853 | { PINMUX_DATA_REG("PTDR", 0xa4050160, 8) { | ||
1854 | 0, 0, PTT5_DATA, PTT4_DATA, | ||
1855 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
1856 | }, | ||
1857 | { PINMUX_DATA_REG("PUDR", 0xa4050162, 8) { | ||
1858 | 0, 0, PTU5_DATA, PTU4_DATA, | ||
1859 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
1860 | }, | ||
1861 | { PINMUX_DATA_REG("PVDR", 0xa4050164, 8) { | ||
1862 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
1863 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
1864 | }, | ||
1865 | { PINMUX_DATA_REG("PWDR", 0xa4050166, 8) { | ||
1866 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
1867 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
1868 | }, | ||
1869 | { PINMUX_DATA_REG("PXDR", 0xa4050168, 8) { | ||
1870 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
1871 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
1872 | }, | ||
1873 | { PINMUX_DATA_REG("PYDR", 0xa405016a, 8) { | ||
1874 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
1875 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
1876 | }, | ||
1877 | { PINMUX_DATA_REG("PZDR", 0xa405016c, 8) { | ||
1878 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
1879 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
1880 | }, | ||
1881 | { }, | ||
1882 | }; | ||
1883 | |||
1884 | struct sh_pfc_soc_info sh7723_pinmux_info = { | ||
1885 | .name = "sh7723_pfc", | ||
1886 | .reserved_id = PINMUX_RESERVED, | ||
1887 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1888 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1889 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1890 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1891 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1892 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1893 | |||
1894 | .first_gpio = GPIO_PTA7, | ||
1895 | .last_gpio = GPIO_FN_IDEA0, | ||
1896 | |||
1897 | .gpios = pinmux_gpios, | ||
1898 | .cfg_regs = pinmux_config_regs, | ||
1899 | .data_regs = pinmux_data_regs, | ||
1900 | |||
1901 | .gpio_data = pinmux_data, | ||
1902 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1903 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7724.c b/drivers/pinctrl/sh-pfc/pfc-sh7724.c new file mode 100644 index 000000000000..233fbf750b39 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7724.c | |||
@@ -0,0 +1,2225 @@ | |||
1 | /* | ||
2 | * SH7724 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2009 Renesas Solutions Corp. | ||
5 | * | ||
6 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
7 | * | ||
8 | * Based on SH7723 Pinmux | ||
9 | * Copyright (C) 2008 Magnus Damm | ||
10 | * | ||
11 | * This file is subject to the terms and conditions of the GNU General Public | ||
12 | * License. See the file "COPYING" in the main directory of this archive | ||
13 | * for more details. | ||
14 | */ | ||
15 | |||
16 | #include <linux/init.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <cpu/sh7724.h> | ||
19 | |||
20 | #include "sh_pfc.h" | ||
21 | |||
22 | enum { | ||
23 | PINMUX_RESERVED = 0, | ||
24 | |||
25 | PINMUX_DATA_BEGIN, | ||
26 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
27 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
28 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
29 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
30 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
31 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
32 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
33 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
34 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
35 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
36 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
37 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
38 | PTG5_DATA, PTG4_DATA, | ||
39 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
40 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
41 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
42 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, | ||
43 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
44 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
45 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
46 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
47 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
48 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
49 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
50 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
51 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
52 | PTQ7_DATA, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
53 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
54 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
55 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
56 | PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
57 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
58 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
59 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
60 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
61 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
62 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
63 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
64 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
65 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
66 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
67 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
68 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
69 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
70 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
71 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
72 | PINMUX_DATA_END, | ||
73 | |||
74 | PINMUX_INPUT_BEGIN, | ||
75 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
76 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
77 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
78 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
79 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
80 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
81 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
82 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
83 | PTE7_IN, PTE6_IN, PTE5_IN, PTE4_IN, | ||
84 | PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
85 | PTF7_IN, PTF6_IN, PTF5_IN, PTF4_IN, | ||
86 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
87 | PTH7_IN, PTH6_IN, PTH5_IN, PTH4_IN, | ||
88 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
89 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
90 | PTK7_IN, PTK6_IN, PTK5_IN, PTK4_IN, | ||
91 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
92 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, | ||
93 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
94 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
95 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
96 | PTN7_IN, PTN6_IN, PTN5_IN, PTN4_IN, | ||
97 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
98 | PTQ7_IN, PTQ6_IN, PTQ5_IN, PTQ4_IN, | ||
99 | PTQ3_IN, PTQ2_IN, PTQ1_IN, PTQ0_IN, | ||
100 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
101 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
102 | PTS6_IN, PTS5_IN, PTS4_IN, | ||
103 | PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
104 | PTT7_IN, PTT6_IN, PTT5_IN, PTT4_IN, | ||
105 | PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
106 | PTU7_IN, PTU6_IN, PTU5_IN, PTU4_IN, | ||
107 | PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
108 | PTV7_IN, PTV6_IN, PTV5_IN, PTV4_IN, | ||
109 | PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
110 | PTW7_IN, PTW6_IN, PTW5_IN, PTW4_IN, | ||
111 | PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
112 | PTX7_IN, PTX6_IN, PTX5_IN, PTX4_IN, | ||
113 | PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
114 | PTY7_IN, PTY6_IN, PTY5_IN, PTY4_IN, | ||
115 | PTY3_IN, PTY2_IN, PTY1_IN, PTY0_IN, | ||
116 | PTZ7_IN, PTZ6_IN, PTZ5_IN, PTZ4_IN, | ||
117 | PTZ3_IN, PTZ2_IN, PTZ1_IN, PTZ0_IN, | ||
118 | PINMUX_INPUT_END, | ||
119 | |||
120 | PINMUX_INPUT_PULLUP_BEGIN, | ||
121 | PTA7_IN_PU, PTA6_IN_PU, PTA5_IN_PU, PTA4_IN_PU, | ||
122 | PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
123 | PTB7_IN_PU, PTB6_IN_PU, PTB5_IN_PU, PTB4_IN_PU, | ||
124 | PTB3_IN_PU, PTB2_IN_PU, PTB1_IN_PU, PTB0_IN_PU, | ||
125 | PTC7_IN_PU, PTC6_IN_PU, PTC5_IN_PU, PTC4_IN_PU, | ||
126 | PTC3_IN_PU, PTC2_IN_PU, PTC1_IN_PU, PTC0_IN_PU, | ||
127 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
128 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, PTD0_IN_PU, | ||
129 | PTE7_IN_PU, PTE6_IN_PU, PTE5_IN_PU, PTE4_IN_PU, | ||
130 | PTE3_IN_PU, PTE2_IN_PU, PTE1_IN_PU, PTE0_IN_PU, | ||
131 | PTF7_IN_PU, PTF6_IN_PU, PTF5_IN_PU, PTF4_IN_PU, | ||
132 | PTF3_IN_PU, PTF2_IN_PU, PTF1_IN_PU, PTF0_IN_PU, | ||
133 | PTH7_IN_PU, PTH6_IN_PU, PTH5_IN_PU, PTH4_IN_PU, | ||
134 | PTH3_IN_PU, PTH2_IN_PU, PTH1_IN_PU, PTH0_IN_PU, | ||
135 | PTJ3_IN_PU, PTJ2_IN_PU, PTJ1_IN_PU, PTJ0_IN_PU, | ||
136 | PTK7_IN_PU, PTK6_IN_PU, PTK5_IN_PU, PTK4_IN_PU, | ||
137 | PTK3_IN_PU, PTK2_IN_PU, PTK1_IN_PU, PTK0_IN_PU, | ||
138 | PTL7_IN_PU, PTL6_IN_PU, PTL5_IN_PU, PTL4_IN_PU, | ||
139 | PTL3_IN_PU, PTL2_IN_PU, PTL1_IN_PU, PTL0_IN_PU, | ||
140 | PTM7_IN_PU, PTM6_IN_PU, PTM5_IN_PU, PTM4_IN_PU, | ||
141 | PTM3_IN_PU, PTM2_IN_PU, PTM1_IN_PU, PTM0_IN_PU, | ||
142 | PTN7_IN_PU, PTN6_IN_PU, PTN5_IN_PU, PTN4_IN_PU, | ||
143 | PTN3_IN_PU, PTN2_IN_PU, PTN1_IN_PU, PTN0_IN_PU, | ||
144 | PTQ7_IN_PU, PTQ6_IN_PU, PTQ5_IN_PU, PTQ4_IN_PU, | ||
145 | PTQ3_IN_PU, PTQ2_IN_PU, PTQ1_IN_PU, PTQ0_IN_PU, | ||
146 | PTR7_IN_PU, PTR6_IN_PU, PTR5_IN_PU, PTR4_IN_PU, | ||
147 | PTR3_IN_PU, PTR2_IN_PU, PTR1_IN_PU, PTR0_IN_PU, | ||
148 | PTS6_IN_PU, PTS5_IN_PU, PTS4_IN_PU, | ||
149 | PTS3_IN_PU, PTS2_IN_PU, PTS1_IN_PU, PTS0_IN_PU, | ||
150 | PTT7_IN_PU, PTT6_IN_PU, PTT5_IN_PU, PTT4_IN_PU, | ||
151 | PTT3_IN_PU, PTT2_IN_PU, PTT1_IN_PU, PTT0_IN_PU, | ||
152 | PTU7_IN_PU, PTU6_IN_PU, PTU5_IN_PU, PTU4_IN_PU, | ||
153 | PTU3_IN_PU, PTU2_IN_PU, PTU1_IN_PU, PTU0_IN_PU, | ||
154 | PTV7_IN_PU, PTV6_IN_PU, PTV5_IN_PU, PTV4_IN_PU, | ||
155 | PTV3_IN_PU, PTV2_IN_PU, PTV1_IN_PU, PTV0_IN_PU, | ||
156 | PTW7_IN_PU, PTW6_IN_PU, PTW5_IN_PU, PTW4_IN_PU, | ||
157 | PTW3_IN_PU, PTW2_IN_PU, PTW1_IN_PU, PTW0_IN_PU, | ||
158 | PTX7_IN_PU, PTX6_IN_PU, PTX5_IN_PU, PTX4_IN_PU, | ||
159 | PTX3_IN_PU, PTX2_IN_PU, PTX1_IN_PU, PTX0_IN_PU, | ||
160 | PTY7_IN_PU, PTY6_IN_PU, PTY5_IN_PU, PTY4_IN_PU, | ||
161 | PTY3_IN_PU, PTY2_IN_PU, PTY1_IN_PU, PTY0_IN_PU, | ||
162 | PTZ7_IN_PU, PTZ6_IN_PU, PTZ5_IN_PU, PTZ4_IN_PU, | ||
163 | PTZ3_IN_PU, PTZ2_IN_PU, PTZ1_IN_PU, PTZ0_IN_PU, | ||
164 | PINMUX_INPUT_PULLUP_END, | ||
165 | |||
166 | PINMUX_OUTPUT_BEGIN, | ||
167 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
168 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
169 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
170 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
171 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
172 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
173 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
174 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
175 | PTE7_OUT, PTE6_OUT, PTE5_OUT, PTE4_OUT, | ||
176 | PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
177 | PTF7_OUT, PTF6_OUT, PTF5_OUT, PTF4_OUT, | ||
178 | PTF3_OUT, PTF2_OUT, PTF1_OUT, PTF0_OUT, | ||
179 | PTG5_OUT, PTG4_OUT, | ||
180 | PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
181 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
182 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
183 | PTJ7_OUT, PTJ6_OUT, PTJ5_OUT, | ||
184 | PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
185 | PTK7_OUT, PTK6_OUT, PTK5_OUT, PTK4_OUT, | ||
186 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
187 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
188 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
189 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
190 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
191 | PTN7_OUT, PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
192 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, | ||
193 | PTQ7_OUT, PTQ6_OUT, PTQ5_OUT, PTQ4_OUT, | ||
194 | PTQ3_OUT, PTQ2_OUT, PTQ1_OUT, PTQ0_OUT, | ||
195 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
196 | PTR1_OUT, PTR0_OUT, | ||
197 | PTS6_OUT, PTS5_OUT, PTS4_OUT, | ||
198 | PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
199 | PTT7_OUT, PTT6_OUT, PTT5_OUT, PTT4_OUT, | ||
200 | PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
201 | PTU7_OUT, PTU6_OUT, PTU5_OUT, PTU4_OUT, | ||
202 | PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
203 | PTV7_OUT, PTV6_OUT, PTV5_OUT, PTV4_OUT, | ||
204 | PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
205 | PTW7_OUT, PTW6_OUT, PTW5_OUT, PTW4_OUT, | ||
206 | PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
207 | PTX7_OUT, PTX6_OUT, PTX5_OUT, PTX4_OUT, | ||
208 | PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
209 | PTY7_OUT, PTY6_OUT, PTY5_OUT, PTY4_OUT, | ||
210 | PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
211 | PTZ7_OUT, PTZ6_OUT, PTZ5_OUT, PTZ4_OUT, | ||
212 | PTZ3_OUT, PTZ2_OUT, PTZ1_OUT, PTZ0_OUT, | ||
213 | PINMUX_OUTPUT_END, | ||
214 | |||
215 | PINMUX_FUNCTION_BEGIN, | ||
216 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
217 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
218 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
219 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
220 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
221 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
222 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
223 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
224 | PTE7_FN, PTE6_FN, PTE5_FN, PTE4_FN, | ||
225 | PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
226 | PTF7_FN, PTF6_FN, PTF5_FN, PTF4_FN, | ||
227 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
228 | PTG5_FN, PTG4_FN, | ||
229 | PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
230 | PTH7_FN, PTH6_FN, PTH5_FN, PTH4_FN, | ||
231 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
232 | PTJ7_FN, PTJ6_FN, PTJ5_FN, | ||
233 | PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
234 | PTK7_FN, PTK6_FN, PTK5_FN, PTK4_FN, | ||
235 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
236 | PTL7_FN, PTL6_FN, PTL5_FN, PTL4_FN, | ||
237 | PTL3_FN, PTL2_FN, PTL1_FN, PTL0_FN, | ||
238 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
239 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
240 | PTN7_FN, PTN6_FN, PTN5_FN, PTN4_FN, | ||
241 | PTN3_FN, PTN2_FN, PTN1_FN, PTN0_FN, | ||
242 | PTQ7_FN, PTQ6_FN, PTQ5_FN, PTQ4_FN, | ||
243 | PTQ3_FN, PTQ2_FN, PTQ1_FN, PTQ0_FN, | ||
244 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
245 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
246 | PTS6_FN, PTS5_FN, PTS4_FN, | ||
247 | PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
248 | PTT7_FN, PTT6_FN, PTT5_FN, PTT4_FN, | ||
249 | PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
250 | PTU7_FN, PTU6_FN, PTU5_FN, PTU4_FN, | ||
251 | PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
252 | PTV7_FN, PTV6_FN, PTV5_FN, PTV4_FN, | ||
253 | PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
254 | PTW7_FN, PTW6_FN, PTW5_FN, PTW4_FN, | ||
255 | PTW3_FN, PTW2_FN, PTW1_FN, PTW0_FN, | ||
256 | PTX7_FN, PTX6_FN, PTX5_FN, PTX4_FN, | ||
257 | PTX3_FN, PTX2_FN, PTX1_FN, PTX0_FN, | ||
258 | PTY7_FN, PTY6_FN, PTY5_FN, PTY4_FN, | ||
259 | PTY3_FN, PTY2_FN, PTY1_FN, PTY0_FN, | ||
260 | PTZ7_FN, PTZ6_FN, PTZ5_FN, PTZ4_FN, | ||
261 | PTZ3_FN, PTZ2_FN, PTZ1_FN, PTZ0_FN, | ||
262 | |||
263 | |||
264 | PSA15_0, PSA15_1, | ||
265 | PSA14_0, PSA14_1, | ||
266 | PSA13_0, PSA13_1, | ||
267 | PSA12_0, PSA12_1, | ||
268 | PSA10_0, PSA10_1, | ||
269 | PSA9_0, PSA9_1, | ||
270 | PSA8_0, PSA8_1, | ||
271 | PSA7_0, PSA7_1, | ||
272 | PSA6_0, PSA6_1, | ||
273 | PSA5_0, PSA5_1, | ||
274 | PSA3_0, PSA3_1, | ||
275 | PSA2_0, PSA2_1, | ||
276 | PSA1_0, PSA1_1, | ||
277 | PSA0_0, PSA0_1, | ||
278 | |||
279 | PSB14_0, PSB14_1, | ||
280 | PSB13_0, PSB13_1, | ||
281 | PSB12_0, PSB12_1, | ||
282 | PSB11_0, PSB11_1, | ||
283 | PSB10_0, PSB10_1, | ||
284 | PSB9_0, PSB9_1, | ||
285 | PSB8_0, PSB8_1, | ||
286 | PSB7_0, PSB7_1, | ||
287 | PSB6_0, PSB6_1, | ||
288 | PSB5_0, PSB5_1, | ||
289 | PSB4_0, PSB4_1, | ||
290 | PSB3_0, PSB3_1, | ||
291 | PSB2_0, PSB2_1, | ||
292 | PSB1_0, PSB1_1, | ||
293 | PSB0_0, PSB0_1, | ||
294 | |||
295 | PSC15_0, PSC15_1, | ||
296 | PSC14_0, PSC14_1, | ||
297 | PSC13_0, PSC13_1, | ||
298 | PSC12_0, PSC12_1, | ||
299 | PSC11_0, PSC11_1, | ||
300 | PSC10_0, PSC10_1, | ||
301 | PSC9_0, PSC9_1, | ||
302 | PSC8_0, PSC8_1, | ||
303 | PSC7_0, PSC7_1, | ||
304 | PSC6_0, PSC6_1, | ||
305 | PSC5_0, PSC5_1, | ||
306 | PSC4_0, PSC4_1, | ||
307 | PSC2_0, PSC2_1, | ||
308 | PSC1_0, PSC1_1, | ||
309 | PSC0_0, PSC0_1, | ||
310 | |||
311 | PSD15_0, PSD15_1, | ||
312 | PSD14_0, PSD14_1, | ||
313 | PSD13_0, PSD13_1, | ||
314 | PSD12_0, PSD12_1, | ||
315 | PSD11_0, PSD11_1, | ||
316 | PSD10_0, PSD10_1, | ||
317 | PSD9_0, PSD9_1, | ||
318 | PSD8_0, PSD8_1, | ||
319 | PSD7_0, PSD7_1, | ||
320 | PSD6_0, PSD6_1, | ||
321 | PSD5_0, PSD5_1, | ||
322 | PSD4_0, PSD4_1, | ||
323 | PSD3_0, PSD3_1, | ||
324 | PSD2_0, PSD2_1, | ||
325 | PSD1_0, PSD1_1, | ||
326 | PSD0_0, PSD0_1, | ||
327 | |||
328 | PSE15_0, PSE15_1, | ||
329 | PSE14_0, PSE14_1, | ||
330 | PSE13_0, PSE13_1, | ||
331 | PSE12_0, PSE12_1, | ||
332 | PSE11_0, PSE11_1, | ||
333 | PSE10_0, PSE10_1, | ||
334 | PSE9_0, PSE9_1, | ||
335 | PSE8_0, PSE8_1, | ||
336 | PSE7_0, PSE7_1, | ||
337 | PSE6_0, PSE6_1, | ||
338 | PSE5_0, PSE5_1, | ||
339 | PSE4_0, PSE4_1, | ||
340 | PSE3_0, PSE3_1, | ||
341 | PSE2_0, PSE2_1, | ||
342 | PSE1_0, PSE1_1, | ||
343 | PSE0_0, PSE0_1, | ||
344 | PINMUX_FUNCTION_END, | ||
345 | |||
346 | PINMUX_MARK_BEGIN, | ||
347 | /*PTA*/ | ||
348 | D23_MARK, KEYOUT2_MARK, IDED15_MARK, | ||
349 | D22_MARK, KEYOUT1_MARK, IDED14_MARK, | ||
350 | D21_MARK, KEYOUT0_MARK, IDED13_MARK, | ||
351 | D20_MARK, KEYIN4_MARK, IDED12_MARK, | ||
352 | D19_MARK, KEYIN3_MARK, IDED11_MARK, | ||
353 | D18_MARK, KEYIN2_MARK, IDED10_MARK, | ||
354 | D17_MARK, KEYIN1_MARK, IDED9_MARK, | ||
355 | D16_MARK, KEYIN0_MARK, IDED8_MARK, | ||
356 | |||
357 | /*PTB*/ | ||
358 | D31_MARK, TPUTO1_MARK, IDEA1_MARK, | ||
359 | D30_MARK, TPUTO0_MARK, IDEA0_MARK, | ||
360 | D29_MARK, IODREQ_MARK, | ||
361 | D28_MARK, IDECS0_MARK, | ||
362 | D27_MARK, IDECS1_MARK, | ||
363 | D26_MARK, KEYOUT5_IN5_MARK, IDEIORD_MARK, | ||
364 | D25_MARK, KEYOUT4_IN6_MARK, IDEIOWR_MARK, | ||
365 | D24_MARK, KEYOUT3_MARK, IDEINT_MARK, | ||
366 | |||
367 | /*PTC*/ | ||
368 | LCDD7_MARK, | ||
369 | LCDD6_MARK, | ||
370 | LCDD5_MARK, | ||
371 | LCDD4_MARK, | ||
372 | LCDD3_MARK, | ||
373 | LCDD2_MARK, | ||
374 | LCDD1_MARK, | ||
375 | LCDD0_MARK, | ||
376 | |||
377 | /*PTD*/ | ||
378 | LCDD15_MARK, | ||
379 | LCDD14_MARK, | ||
380 | LCDD13_MARK, | ||
381 | LCDD12_MARK, | ||
382 | LCDD11_MARK, | ||
383 | LCDD10_MARK, | ||
384 | LCDD9_MARK, | ||
385 | LCDD8_MARK, | ||
386 | |||
387 | /*PTE*/ | ||
388 | FSIMCKB_MARK, | ||
389 | FSIMCKA_MARK, | ||
390 | LCDD21_MARK, SCIF2_L_TXD_MARK, | ||
391 | LCDD20_MARK, SCIF4_SCK_MARK, | ||
392 | LCDD19_MARK, SCIF4_RXD_MARK, | ||
393 | LCDD18_MARK, SCIF4_TXD_MARK, | ||
394 | LCDD17_MARK, | ||
395 | LCDD16_MARK, | ||
396 | |||
397 | /*PTF*/ | ||
398 | LCDVSYN_MARK, | ||
399 | LCDDISP_MARK, LCDRS_MARK, | ||
400 | LCDHSYN_MARK, LCDCS_MARK, | ||
401 | LCDDON_MARK, | ||
402 | LCDDCK_MARK, LCDWR_MARK, | ||
403 | LCDVEPWC_MARK, SCIF0_TXD_MARK, | ||
404 | LCDD23_MARK, SCIF2_L_SCK_MARK, | ||
405 | LCDD22_MARK, SCIF2_L_RXD_MARK, | ||
406 | |||
407 | /*PTG*/ | ||
408 | AUDCK_MARK, | ||
409 | AUDSYNC_MARK, | ||
410 | AUDATA3_MARK, | ||
411 | AUDATA2_MARK, | ||
412 | AUDATA1_MARK, | ||
413 | AUDATA0_MARK, | ||
414 | |||
415 | /*PTH*/ | ||
416 | VIO0_VD_MARK, | ||
417 | VIO0_CLK_MARK, | ||
418 | VIO0_D7_MARK, | ||
419 | VIO0_D6_MARK, | ||
420 | VIO0_D5_MARK, | ||
421 | VIO0_D4_MARK, | ||
422 | VIO0_D3_MARK, | ||
423 | VIO0_D2_MARK, | ||
424 | |||
425 | /*PTJ*/ | ||
426 | PDSTATUS_MARK, | ||
427 | STATUS2_MARK, | ||
428 | STATUS0_MARK, | ||
429 | A25_MARK, BS_MARK, | ||
430 | A24_MARK, | ||
431 | A23_MARK, | ||
432 | A22_MARK, | ||
433 | |||
434 | /*PTK*/ | ||
435 | VIO1_D5_MARK, VIO0_D13_MARK, IDED5_MARK, | ||
436 | VIO1_D4_MARK, VIO0_D12_MARK, IDED4_MARK, | ||
437 | VIO1_D3_MARK, VIO0_D11_MARK, IDED3_MARK, | ||
438 | VIO1_D2_MARK, VIO0_D10_MARK, IDED2_MARK, | ||
439 | VIO1_D1_MARK, VIO0_D9_MARK, IDED1_MARK, | ||
440 | VIO1_D0_MARK, VIO0_D8_MARK, IDED0_MARK, | ||
441 | VIO0_FLD_MARK, | ||
442 | VIO0_HD_MARK, | ||
443 | |||
444 | /*PTL*/ | ||
445 | DV_D5_MARK, SCIF3_V_SCK_MARK, RMII_RXD0_MARK, | ||
446 | DV_D4_MARK, SCIF3_V_RXD_MARK, RMII_RXD1_MARK, | ||
447 | DV_D3_MARK, SCIF3_V_TXD_MARK, RMII_REF_CLK_MARK, | ||
448 | DV_D2_MARK, SCIF1_SCK_MARK, RMII_TX_EN_MARK, | ||
449 | DV_D1_MARK, SCIF1_RXD_MARK, RMII_TXD0_MARK, | ||
450 | DV_D0_MARK, SCIF1_TXD_MARK, RMII_TXD1_MARK, | ||
451 | DV_D15_MARK, | ||
452 | DV_D14_MARK, MSIOF0_MCK_MARK, | ||
453 | |||
454 | /*PTM*/ | ||
455 | DV_D13_MARK, MSIOF0_TSCK_MARK, | ||
456 | DV_D12_MARK, MSIOF0_RXD_MARK, | ||
457 | DV_D11_MARK, MSIOF0_TXD_MARK, | ||
458 | DV_D10_MARK, MSIOF0_TSYNC_MARK, | ||
459 | DV_D9_MARK, MSIOF0_SS1_MARK, MSIOF0_RSCK_MARK, | ||
460 | DV_D8_MARK, MSIOF0_SS2_MARK, MSIOF0_RSYNC_MARK, | ||
461 | LCDVCPWC_MARK, SCIF0_RXD_MARK, | ||
462 | LCDRD_MARK, SCIF0_SCK_MARK, | ||
463 | |||
464 | /*PTN*/ | ||
465 | VIO0_D1_MARK, | ||
466 | VIO0_D0_MARK, | ||
467 | DV_CLKI_MARK, | ||
468 | DV_CLK_MARK, SCIF2_V_SCK_MARK, | ||
469 | DV_VSYNC_MARK, SCIF2_V_RXD_MARK, | ||
470 | DV_HSYNC_MARK, SCIF2_V_TXD_MARK, | ||
471 | DV_D7_MARK, SCIF3_V_CTS_MARK, RMII_RX_ER_MARK, | ||
472 | DV_D6_MARK, SCIF3_V_RTS_MARK, RMII_CRS_DV_MARK, | ||
473 | |||
474 | /*PTQ*/ | ||
475 | D7_MARK, | ||
476 | D6_MARK, | ||
477 | D5_MARK, | ||
478 | D4_MARK, | ||
479 | D3_MARK, | ||
480 | D2_MARK, | ||
481 | D1_MARK, | ||
482 | D0_MARK, | ||
483 | |||
484 | /*PTR*/ | ||
485 | CS6B_CE1B_MARK, | ||
486 | CS6A_CE2B_MARK, | ||
487 | CS5B_CE1A_MARK, | ||
488 | CS5A_CE2A_MARK, | ||
489 | IOIS16_MARK, LCDLCLK_MARK, | ||
490 | WAIT_MARK, | ||
491 | WE3_ICIOWR_MARK, TPUTO3_MARK, TPUTI3_MARK, | ||
492 | WE2_ICIORD_MARK, TPUTO2_MARK, IDEA2_MARK, | ||
493 | |||
494 | /*PTS*/ | ||
495 | VIO_CKO_MARK, | ||
496 | VIO1_FLD_MARK, TPUTI2_MARK, IDEIORDY_MARK, | ||
497 | VIO1_HD_MARK, SCIF5_SCK_MARK, | ||
498 | VIO1_VD_MARK, SCIF5_RXD_MARK, | ||
499 | VIO1_CLK_MARK, SCIF5_TXD_MARK, | ||
500 | VIO1_D7_MARK, VIO0_D15_MARK, IDED7_MARK, | ||
501 | VIO1_D6_MARK, VIO0_D14_MARK, IDED6_MARK, | ||
502 | |||
503 | /*PTT*/ | ||
504 | D15_MARK, | ||
505 | D14_MARK, | ||
506 | D13_MARK, | ||
507 | D12_MARK, | ||
508 | D11_MARK, | ||
509 | D10_MARK, | ||
510 | D9_MARK, | ||
511 | D8_MARK, | ||
512 | |||
513 | /*PTU*/ | ||
514 | DMAC_DACK0_MARK, | ||
515 | DMAC_DREQ0_MARK, | ||
516 | FSIOASD_MARK, | ||
517 | FSIIABCK_MARK, | ||
518 | FSIIALRCK_MARK, | ||
519 | FSIOABCK_MARK, | ||
520 | FSIOALRCK_MARK, | ||
521 | CLKAUDIOAO_MARK, | ||
522 | |||
523 | /*PTV*/ | ||
524 | FSIIBSD_MARK, MSIOF1_SS2_MARK, MSIOF1_RSYNC_MARK, | ||
525 | FSIOBSD_MARK, MSIOF1_SS1_MARK, MSIOF1_RSCK_MARK, | ||
526 | FSIIBBCK_MARK, MSIOF1_RXD_MARK, | ||
527 | FSIIBLRCK_MARK, MSIOF1_TSYNC_MARK, | ||
528 | FSIOBBCK_MARK, MSIOF1_TSCK_MARK, | ||
529 | FSIOBLRCK_MARK, MSIOF1_TXD_MARK, | ||
530 | CLKAUDIOBO_MARK, MSIOF1_MCK_MARK, | ||
531 | FSIIASD_MARK, | ||
532 | |||
533 | /*PTW*/ | ||
534 | MMC_D7_MARK, SDHI1CD_MARK, IODACK_MARK, | ||
535 | MMC_D6_MARK, SDHI1WP_MARK, IDERST_MARK, | ||
536 | MMC_D5_MARK, SDHI1D3_MARK, EXBUF_ENB_MARK, | ||
537 | MMC_D4_MARK, SDHI1D2_MARK, DIRECTION_MARK, | ||
538 | MMC_D3_MARK, SDHI1D1_MARK, | ||
539 | MMC_D2_MARK, SDHI1D0_MARK, | ||
540 | MMC_D1_MARK, SDHI1CMD_MARK, | ||
541 | MMC_D0_MARK, SDHI1CLK_MARK, | ||
542 | |||
543 | /*PTX*/ | ||
544 | DMAC_DACK1_MARK, IRDA_OUT_MARK, | ||
545 | DMAC_DREQ1_MARK, IRDA_IN_MARK, | ||
546 | TSIF_TS0_SDAT_MARK, LNKSTA_MARK, | ||
547 | TSIF_TS0_SCK_MARK, MDIO_MARK, | ||
548 | TSIF_TS0_SDEN_MARK, MDC_MARK, | ||
549 | TSIF_TS0_SPSYNC_MARK, | ||
550 | MMC_CLK_MARK, | ||
551 | MMC_CMD_MARK, | ||
552 | |||
553 | /*PTY*/ | ||
554 | SDHI0CD_MARK, | ||
555 | SDHI0WP_MARK, | ||
556 | SDHI0D3_MARK, | ||
557 | SDHI0D2_MARK, | ||
558 | SDHI0D1_MARK, | ||
559 | SDHI0D0_MARK, | ||
560 | SDHI0CMD_MARK, | ||
561 | SDHI0CLK_MARK, | ||
562 | |||
563 | /*PTZ*/ | ||
564 | INTC_IRQ7_MARK, SCIF3_I_CTS_MARK, | ||
565 | INTC_IRQ6_MARK, SCIF3_I_RTS_MARK, | ||
566 | INTC_IRQ5_MARK, SCIF3_I_SCK_MARK, | ||
567 | INTC_IRQ4_MARK, SCIF3_I_RXD_MARK, | ||
568 | INTC_IRQ3_MARK, SCIF3_I_TXD_MARK, | ||
569 | INTC_IRQ2_MARK, | ||
570 | INTC_IRQ1_MARK, | ||
571 | INTC_IRQ0_MARK, | ||
572 | PINMUX_MARK_END, | ||
573 | }; | ||
574 | |||
575 | static pinmux_enum_t pinmux_data[] = { | ||
576 | /* PTA GPIO */ | ||
577 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT, PTA7_IN_PU), | ||
578 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT, PTA6_IN_PU), | ||
579 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT, PTA5_IN_PU), | ||
580 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT, PTA4_IN_PU), | ||
581 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT, PTA3_IN_PU), | ||
582 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT, PTA2_IN_PU), | ||
583 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT, PTA1_IN_PU), | ||
584 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT, PTA0_IN_PU), | ||
585 | |||
586 | /* PTB GPIO */ | ||
587 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT, PTB7_IN_PU), | ||
588 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT, PTB6_IN_PU), | ||
589 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT, PTB5_IN_PU), | ||
590 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT, PTB4_IN_PU), | ||
591 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT, PTB3_IN_PU), | ||
592 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT, PTB2_IN_PU), | ||
593 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT, PTB1_IN_PU), | ||
594 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT, PTB0_IN_PU), | ||
595 | |||
596 | /* PTC GPIO */ | ||
597 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT, PTC7_IN_PU), | ||
598 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT, PTC6_IN_PU), | ||
599 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT, PTC5_IN_PU), | ||
600 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT, PTC4_IN_PU), | ||
601 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT, PTC3_IN_PU), | ||
602 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT, PTC2_IN_PU), | ||
603 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT, PTC1_IN_PU), | ||
604 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT, PTC0_IN_PU), | ||
605 | |||
606 | /* PTD GPIO */ | ||
607 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT, PTD7_IN_PU), | ||
608 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT, PTD6_IN_PU), | ||
609 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT, PTD5_IN_PU), | ||
610 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT, PTD4_IN_PU), | ||
611 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT, PTD3_IN_PU), | ||
612 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT, PTD2_IN_PU), | ||
613 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT, PTD1_IN_PU), | ||
614 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT, PTD0_IN_PU), | ||
615 | |||
616 | /* PTE GPIO */ | ||
617 | PINMUX_DATA(PTE7_DATA, PTE7_IN, PTE7_OUT, PTE7_IN_PU), | ||
618 | PINMUX_DATA(PTE6_DATA, PTE6_IN, PTE6_OUT, PTE6_IN_PU), | ||
619 | PINMUX_DATA(PTE5_DATA, PTE5_IN, PTE5_OUT, PTE5_IN_PU), | ||
620 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT, PTE4_IN_PU), | ||
621 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT, PTE3_IN_PU), | ||
622 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT, PTE2_IN_PU), | ||
623 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT, PTE1_IN_PU), | ||
624 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT, PTE0_IN_PU), | ||
625 | |||
626 | /* PTF GPIO */ | ||
627 | PINMUX_DATA(PTF7_DATA, PTF7_IN, PTF7_OUT, PTF7_IN_PU), | ||
628 | PINMUX_DATA(PTF6_DATA, PTF6_IN, PTF6_OUT, PTF6_IN_PU), | ||
629 | PINMUX_DATA(PTF5_DATA, PTF5_IN, PTF5_OUT, PTF5_IN_PU), | ||
630 | PINMUX_DATA(PTF4_DATA, PTF4_IN, PTF4_OUT, PTF4_IN_PU), | ||
631 | PINMUX_DATA(PTF3_DATA, PTF3_IN, PTF3_OUT, PTF3_IN_PU), | ||
632 | PINMUX_DATA(PTF2_DATA, PTF2_IN, PTF2_OUT, PTF2_IN_PU), | ||
633 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_OUT, PTF1_IN_PU), | ||
634 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT, PTF0_IN_PU), | ||
635 | |||
636 | /* PTG GPIO */ | ||
637 | PINMUX_DATA(PTG5_DATA, PTG5_OUT), | ||
638 | PINMUX_DATA(PTG4_DATA, PTG4_OUT), | ||
639 | PINMUX_DATA(PTG3_DATA, PTG3_OUT), | ||
640 | PINMUX_DATA(PTG2_DATA, PTG2_OUT), | ||
641 | PINMUX_DATA(PTG1_DATA, PTG1_OUT), | ||
642 | PINMUX_DATA(PTG0_DATA, PTG0_OUT), | ||
643 | |||
644 | /* PTH GPIO */ | ||
645 | PINMUX_DATA(PTH7_DATA, PTH7_IN, PTH7_OUT, PTH7_IN_PU), | ||
646 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT, PTH6_IN_PU), | ||
647 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT, PTH5_IN_PU), | ||
648 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT, PTH4_IN_PU), | ||
649 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT, PTH3_IN_PU), | ||
650 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT, PTH2_IN_PU), | ||
651 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT, PTH1_IN_PU), | ||
652 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT, PTH0_IN_PU), | ||
653 | |||
654 | /* PTJ GPIO */ | ||
655 | PINMUX_DATA(PTJ7_DATA, PTJ7_OUT), | ||
656 | PINMUX_DATA(PTJ6_DATA, PTJ6_OUT), | ||
657 | PINMUX_DATA(PTJ5_DATA, PTJ5_OUT), | ||
658 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT, PTJ3_IN_PU), | ||
659 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT, PTJ2_IN_PU), | ||
660 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT, PTJ1_IN_PU), | ||
661 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT, PTJ0_IN_PU), | ||
662 | |||
663 | /* PTK GPIO */ | ||
664 | PINMUX_DATA(PTK7_DATA, PTK7_IN, PTK7_OUT, PTK7_IN_PU), | ||
665 | PINMUX_DATA(PTK6_DATA, PTK6_IN, PTK6_OUT, PTK6_IN_PU), | ||
666 | PINMUX_DATA(PTK5_DATA, PTK5_IN, PTK5_OUT, PTK5_IN_PU), | ||
667 | PINMUX_DATA(PTK4_DATA, PTK4_IN, PTK4_OUT, PTK4_IN_PU), | ||
668 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT, PTK3_IN_PU), | ||
669 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT, PTK2_IN_PU), | ||
670 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT, PTK1_IN_PU), | ||
671 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT, PTK0_IN_PU), | ||
672 | |||
673 | /* PTL GPIO */ | ||
674 | PINMUX_DATA(PTL7_DATA, PTL7_IN, PTL7_OUT, PTL7_IN_PU), | ||
675 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT, PTL6_IN_PU), | ||
676 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT, PTL5_IN_PU), | ||
677 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT, PTL4_IN_PU), | ||
678 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT, PTL3_IN_PU), | ||
679 | PINMUX_DATA(PTL2_DATA, PTL2_IN, PTL2_OUT, PTL2_IN_PU), | ||
680 | PINMUX_DATA(PTL1_DATA, PTL1_IN, PTL1_OUT, PTL1_IN_PU), | ||
681 | PINMUX_DATA(PTL0_DATA, PTL0_IN, PTL0_OUT, PTL0_IN_PU), | ||
682 | |||
683 | /* PTM GPIO */ | ||
684 | PINMUX_DATA(PTM7_DATA, PTM7_IN, PTM7_OUT, PTM7_IN_PU), | ||
685 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT, PTM6_IN_PU), | ||
686 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT, PTM5_IN_PU), | ||
687 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT, PTM4_IN_PU), | ||
688 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT, PTM3_IN_PU), | ||
689 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT, PTM2_IN_PU), | ||
690 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT, PTM1_IN_PU), | ||
691 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT, PTM0_IN_PU), | ||
692 | |||
693 | /* PTN GPIO */ | ||
694 | PINMUX_DATA(PTN7_DATA, PTN7_IN, PTN7_OUT, PTN7_IN_PU), | ||
695 | PINMUX_DATA(PTN6_DATA, PTN6_IN, PTN6_OUT, PTN6_IN_PU), | ||
696 | PINMUX_DATA(PTN5_DATA, PTN5_IN, PTN5_OUT, PTN5_IN_PU), | ||
697 | PINMUX_DATA(PTN4_DATA, PTN4_IN, PTN4_OUT, PTN4_IN_PU), | ||
698 | PINMUX_DATA(PTN3_DATA, PTN3_IN, PTN3_OUT, PTN3_IN_PU), | ||
699 | PINMUX_DATA(PTN2_DATA, PTN2_IN, PTN2_OUT, PTN2_IN_PU), | ||
700 | PINMUX_DATA(PTN1_DATA, PTN1_IN, PTN1_OUT, PTN1_IN_PU), | ||
701 | PINMUX_DATA(PTN0_DATA, PTN0_IN, PTN0_OUT, PTN0_IN_PU), | ||
702 | |||
703 | /* PTQ GPIO */ | ||
704 | PINMUX_DATA(PTQ7_DATA, PTQ7_IN, PTQ7_OUT, PTQ7_IN_PU), | ||
705 | PINMUX_DATA(PTQ6_DATA, PTQ6_IN, PTQ6_OUT, PTQ6_IN_PU), | ||
706 | PINMUX_DATA(PTQ5_DATA, PTQ5_IN, PTQ5_OUT, PTQ5_IN_PU), | ||
707 | PINMUX_DATA(PTQ4_DATA, PTQ4_IN, PTQ4_OUT, PTQ4_IN_PU), | ||
708 | PINMUX_DATA(PTQ3_DATA, PTQ3_IN, PTQ3_OUT, PTQ3_IN_PU), | ||
709 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN, PTQ2_OUT, PTQ2_IN_PU), | ||
710 | PINMUX_DATA(PTQ1_DATA, PTQ1_IN, PTQ1_OUT, PTQ1_IN_PU), | ||
711 | PINMUX_DATA(PTQ0_DATA, PTQ0_IN, PTQ0_OUT, PTQ0_IN_PU), | ||
712 | |||
713 | /* PTR GPIO */ | ||
714 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT, PTR7_IN_PU), | ||
715 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT, PTR6_IN_PU), | ||
716 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT, PTR5_IN_PU), | ||
717 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT, PTR4_IN_PU), | ||
718 | PINMUX_DATA(PTR3_DATA, PTR3_IN, PTR3_IN_PU), | ||
719 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_IN_PU), | ||
720 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT, PTR1_IN_PU), | ||
721 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT, PTR0_IN_PU), | ||
722 | |||
723 | /* PTS GPIO */ | ||
724 | PINMUX_DATA(PTS6_DATA, PTS6_IN, PTS6_OUT, PTS6_IN_PU), | ||
725 | PINMUX_DATA(PTS5_DATA, PTS5_IN, PTS5_OUT, PTS5_IN_PU), | ||
726 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT, PTS4_IN_PU), | ||
727 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT, PTS3_IN_PU), | ||
728 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT, PTS2_IN_PU), | ||
729 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT, PTS1_IN_PU), | ||
730 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT, PTS0_IN_PU), | ||
731 | |||
732 | /* PTT GPIO */ | ||
733 | PINMUX_DATA(PTT7_DATA, PTT7_IN, PTT7_OUT, PTT7_IN_PU), | ||
734 | PINMUX_DATA(PTT6_DATA, PTT6_IN, PTT6_OUT, PTT6_IN_PU), | ||
735 | PINMUX_DATA(PTT5_DATA, PTT5_IN, PTT5_OUT, PTT5_IN_PU), | ||
736 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT, PTT4_IN_PU), | ||
737 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT, PTT3_IN_PU), | ||
738 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT, PTT2_IN_PU), | ||
739 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT, PTT1_IN_PU), | ||
740 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT, PTT0_IN_PU), | ||
741 | |||
742 | /* PTU GPIO */ | ||
743 | PINMUX_DATA(PTU7_DATA, PTU7_IN, PTU7_OUT, PTU7_IN_PU), | ||
744 | PINMUX_DATA(PTU6_DATA, PTU6_IN, PTU6_OUT, PTU6_IN_PU), | ||
745 | PINMUX_DATA(PTU5_DATA, PTU5_IN, PTU5_OUT, PTU5_IN_PU), | ||
746 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT, PTU4_IN_PU), | ||
747 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT, PTU3_IN_PU), | ||
748 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT, PTU2_IN_PU), | ||
749 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT, PTU1_IN_PU), | ||
750 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT, PTU0_IN_PU), | ||
751 | |||
752 | /* PTV GPIO */ | ||
753 | PINMUX_DATA(PTV7_DATA, PTV7_IN, PTV7_OUT, PTV7_IN_PU), | ||
754 | PINMUX_DATA(PTV6_DATA, PTV6_IN, PTV6_OUT, PTV6_IN_PU), | ||
755 | PINMUX_DATA(PTV5_DATA, PTV5_IN, PTV5_OUT, PTV5_IN_PU), | ||
756 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT, PTV4_IN_PU), | ||
757 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT, PTV3_IN_PU), | ||
758 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT, PTV2_IN_PU), | ||
759 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT, PTV1_IN_PU), | ||
760 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT, PTV0_IN_PU), | ||
761 | |||
762 | /* PTW GPIO */ | ||
763 | PINMUX_DATA(PTW7_DATA, PTW7_IN, PTW7_OUT, PTW7_IN_PU), | ||
764 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_OUT, PTW6_IN_PU), | ||
765 | PINMUX_DATA(PTW5_DATA, PTW5_IN, PTW5_OUT, PTW5_IN_PU), | ||
766 | PINMUX_DATA(PTW4_DATA, PTW4_IN, PTW4_OUT, PTW4_IN_PU), | ||
767 | PINMUX_DATA(PTW3_DATA, PTW3_IN, PTW3_OUT, PTW3_IN_PU), | ||
768 | PINMUX_DATA(PTW2_DATA, PTW2_IN, PTW2_OUT, PTW2_IN_PU), | ||
769 | PINMUX_DATA(PTW1_DATA, PTW1_IN, PTW1_OUT, PTW1_IN_PU), | ||
770 | PINMUX_DATA(PTW0_DATA, PTW0_IN, PTW0_OUT, PTW0_IN_PU), | ||
771 | |||
772 | /* PTX GPIO */ | ||
773 | PINMUX_DATA(PTX7_DATA, PTX7_IN, PTX7_OUT, PTX7_IN_PU), | ||
774 | PINMUX_DATA(PTX6_DATA, PTX6_IN, PTX6_OUT, PTX6_IN_PU), | ||
775 | PINMUX_DATA(PTX5_DATA, PTX5_IN, PTX5_OUT, PTX5_IN_PU), | ||
776 | PINMUX_DATA(PTX4_DATA, PTX4_IN, PTX4_OUT, PTX4_IN_PU), | ||
777 | PINMUX_DATA(PTX3_DATA, PTX3_IN, PTX3_OUT, PTX3_IN_PU), | ||
778 | PINMUX_DATA(PTX2_DATA, PTX2_IN, PTX2_OUT, PTX2_IN_PU), | ||
779 | PINMUX_DATA(PTX1_DATA, PTX1_IN, PTX1_OUT, PTX1_IN_PU), | ||
780 | PINMUX_DATA(PTX0_DATA, PTX0_IN, PTX0_OUT, PTX0_IN_PU), | ||
781 | |||
782 | /* PTY GPIO */ | ||
783 | PINMUX_DATA(PTY7_DATA, PTY7_IN, PTY7_OUT, PTY7_IN_PU), | ||
784 | PINMUX_DATA(PTY6_DATA, PTY6_IN, PTY6_OUT, PTY6_IN_PU), | ||
785 | PINMUX_DATA(PTY5_DATA, PTY5_IN, PTY5_OUT, PTY5_IN_PU), | ||
786 | PINMUX_DATA(PTY4_DATA, PTY4_IN, PTY4_OUT, PTY4_IN_PU), | ||
787 | PINMUX_DATA(PTY3_DATA, PTY3_IN, PTY3_OUT, PTY3_IN_PU), | ||
788 | PINMUX_DATA(PTY2_DATA, PTY2_IN, PTY2_OUT, PTY2_IN_PU), | ||
789 | PINMUX_DATA(PTY1_DATA, PTY1_IN, PTY1_OUT, PTY1_IN_PU), | ||
790 | PINMUX_DATA(PTY0_DATA, PTY0_IN, PTY0_OUT, PTY0_IN_PU), | ||
791 | |||
792 | /* PTZ GPIO */ | ||
793 | PINMUX_DATA(PTZ7_DATA, PTZ7_IN, PTZ7_OUT, PTZ7_IN_PU), | ||
794 | PINMUX_DATA(PTZ6_DATA, PTZ6_IN, PTZ6_OUT, PTZ6_IN_PU), | ||
795 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_OUT, PTZ5_IN_PU), | ||
796 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_OUT, PTZ4_IN_PU), | ||
797 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_OUT, PTZ3_IN_PU), | ||
798 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_OUT, PTZ2_IN_PU), | ||
799 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_OUT, PTZ1_IN_PU), | ||
800 | PINMUX_DATA(PTZ0_DATA, PTZ0_IN, PTZ0_OUT, PTZ0_IN_PU), | ||
801 | |||
802 | /* PTA FN */ | ||
803 | PINMUX_DATA(D23_MARK, PSA15_0, PSA14_0, PTA7_FN), | ||
804 | PINMUX_DATA(D22_MARK, PSA15_0, PSA14_0, PTA6_FN), | ||
805 | PINMUX_DATA(D21_MARK, PSA15_0, PSA14_0, PTA5_FN), | ||
806 | PINMUX_DATA(D20_MARK, PSA15_0, PSA14_0, PTA4_FN), | ||
807 | PINMUX_DATA(D19_MARK, PSA15_0, PSA14_0, PTA3_FN), | ||
808 | PINMUX_DATA(D18_MARK, PSA15_0, PSA14_0, PTA2_FN), | ||
809 | PINMUX_DATA(D17_MARK, PSA15_0, PSA14_0, PTA1_FN), | ||
810 | PINMUX_DATA(D16_MARK, PSA15_0, PSA14_0, PTA0_FN), | ||
811 | |||
812 | PINMUX_DATA(KEYOUT2_MARK, PSA15_0, PSA14_1, PTA7_FN), | ||
813 | PINMUX_DATA(KEYOUT1_MARK, PSA15_0, PSA14_1, PTA6_FN), | ||
814 | PINMUX_DATA(KEYOUT0_MARK, PSA15_0, PSA14_1, PTA5_FN), | ||
815 | PINMUX_DATA(KEYIN4_MARK, PSA15_0, PSA14_1, PTA4_FN), | ||
816 | PINMUX_DATA(KEYIN3_MARK, PSA15_0, PSA14_1, PTA3_FN), | ||
817 | PINMUX_DATA(KEYIN2_MARK, PSA15_0, PSA14_1, PTA2_FN), | ||
818 | PINMUX_DATA(KEYIN1_MARK, PSA15_0, PSA14_1, PTA1_FN), | ||
819 | PINMUX_DATA(KEYIN0_MARK, PSA15_0, PSA14_1, PTA0_FN), | ||
820 | |||
821 | PINMUX_DATA(IDED15_MARK, PSA15_1, PSA14_0, PTA7_FN), | ||
822 | PINMUX_DATA(IDED14_MARK, PSA15_1, PSA14_0, PTA6_FN), | ||
823 | PINMUX_DATA(IDED13_MARK, PSA15_1, PSA14_0, PTA5_FN), | ||
824 | PINMUX_DATA(IDED12_MARK, PSA15_1, PSA14_0, PTA4_FN), | ||
825 | PINMUX_DATA(IDED11_MARK, PSA15_1, PSA14_0, PTA3_FN), | ||
826 | PINMUX_DATA(IDED10_MARK, PSA15_1, PSA14_0, PTA2_FN), | ||
827 | PINMUX_DATA(IDED9_MARK, PSA15_1, PSA14_0, PTA1_FN), | ||
828 | PINMUX_DATA(IDED8_MARK, PSA15_1, PSA14_0, PTA0_FN), | ||
829 | |||
830 | /* PTB FN */ | ||
831 | PINMUX_DATA(D31_MARK, PSE15_0, PSE14_0, PTB7_FN), | ||
832 | PINMUX_DATA(D30_MARK, PSE15_0, PSE14_0, PTB6_FN), | ||
833 | PINMUX_DATA(D29_MARK, PSE11_0, PTB5_FN), | ||
834 | PINMUX_DATA(D28_MARK, PSE11_0, PTB4_FN), | ||
835 | PINMUX_DATA(D27_MARK, PSE11_0, PTB3_FN), | ||
836 | PINMUX_DATA(D26_MARK, PSA15_0, PSA14_0, PTB2_FN), | ||
837 | PINMUX_DATA(D25_MARK, PSA15_0, PSA14_0, PTB1_FN), | ||
838 | PINMUX_DATA(D24_MARK, PSA15_0, PSA14_0, PTB0_FN), | ||
839 | |||
840 | PINMUX_DATA(IDEA1_MARK, PSE15_1, PSE14_0, PTB7_FN), | ||
841 | PINMUX_DATA(IDEA0_MARK, PSE15_1, PSE14_0, PTB6_FN), | ||
842 | PINMUX_DATA(IODREQ_MARK, PSE11_1, PTB5_FN), | ||
843 | PINMUX_DATA(IDECS0_MARK, PSE11_1, PTB4_FN), | ||
844 | PINMUX_DATA(IDECS1_MARK, PSE11_1, PTB3_FN), | ||
845 | PINMUX_DATA(IDEIORD_MARK, PSA15_1, PSA14_0, PTB2_FN), | ||
846 | PINMUX_DATA(IDEIOWR_MARK, PSA15_1, PSA14_0, PTB1_FN), | ||
847 | PINMUX_DATA(IDEINT_MARK, PSA15_1, PSA14_0, PTB0_FN), | ||
848 | |||
849 | PINMUX_DATA(TPUTO1_MARK, PSE15_0, PSE14_1, PTB7_FN), | ||
850 | PINMUX_DATA(TPUTO0_MARK, PSE15_0, PSE14_1, PTB6_FN), | ||
851 | |||
852 | PINMUX_DATA(KEYOUT5_IN5_MARK, PSA15_0, PSA14_1, PTB2_FN), | ||
853 | PINMUX_DATA(KEYOUT4_IN6_MARK, PSA15_0, PSA14_1, PTB1_FN), | ||
854 | PINMUX_DATA(KEYOUT3_MARK, PSA15_0, PSA14_1, PTB0_FN), | ||
855 | |||
856 | /* PTC FN */ | ||
857 | PINMUX_DATA(LCDD7_MARK, PSD5_0, PTC7_FN), | ||
858 | PINMUX_DATA(LCDD6_MARK, PSD5_0, PTC6_FN), | ||
859 | PINMUX_DATA(LCDD5_MARK, PSD5_0, PTC5_FN), | ||
860 | PINMUX_DATA(LCDD4_MARK, PSD5_0, PTC4_FN), | ||
861 | PINMUX_DATA(LCDD3_MARK, PSD5_0, PTC3_FN), | ||
862 | PINMUX_DATA(LCDD2_MARK, PSD5_0, PTC2_FN), | ||
863 | PINMUX_DATA(LCDD1_MARK, PSD5_0, PTC1_FN), | ||
864 | PINMUX_DATA(LCDD0_MARK, PSD5_0, PTC0_FN), | ||
865 | |||
866 | /* PTD FN */ | ||
867 | PINMUX_DATA(LCDD15_MARK, PSD5_0, PTD7_FN), | ||
868 | PINMUX_DATA(LCDD14_MARK, PSD5_0, PTD6_FN), | ||
869 | PINMUX_DATA(LCDD13_MARK, PSD5_0, PTD5_FN), | ||
870 | PINMUX_DATA(LCDD12_MARK, PSD5_0, PTD4_FN), | ||
871 | PINMUX_DATA(LCDD11_MARK, PSD5_0, PTD3_FN), | ||
872 | PINMUX_DATA(LCDD10_MARK, PSD5_0, PTD2_FN), | ||
873 | PINMUX_DATA(LCDD9_MARK, PSD5_0, PTD1_FN), | ||
874 | PINMUX_DATA(LCDD8_MARK, PSD5_0, PTD0_FN), | ||
875 | |||
876 | /* PTE FN */ | ||
877 | PINMUX_DATA(FSIMCKB_MARK, PTE7_FN), | ||
878 | PINMUX_DATA(FSIMCKA_MARK, PTE6_FN), | ||
879 | |||
880 | PINMUX_DATA(LCDD21_MARK, PSC5_0, PSC4_0, PTE5_FN), | ||
881 | PINMUX_DATA(LCDD20_MARK, PSD3_0, PSD2_0, PTE4_FN), | ||
882 | PINMUX_DATA(LCDD19_MARK, PSA3_0, PSA2_0, PTE3_FN), | ||
883 | PINMUX_DATA(LCDD18_MARK, PSA3_0, PSA2_0, PTE2_FN), | ||
884 | PINMUX_DATA(LCDD17_MARK, PSD5_0, PTE1_FN), | ||
885 | PINMUX_DATA(LCDD16_MARK, PSD5_0, PTE0_FN), | ||
886 | |||
887 | PINMUX_DATA(SCIF2_L_TXD_MARK, PSC5_0, PSC4_1, PTE5_FN), | ||
888 | PINMUX_DATA(SCIF4_SCK_MARK, PSD3_0, PSD2_1, PTE4_FN), | ||
889 | PINMUX_DATA(SCIF4_RXD_MARK, PSA3_0, PSA2_1, PTE3_FN), | ||
890 | PINMUX_DATA(SCIF4_TXD_MARK, PSA3_0, PSA2_1, PTE2_FN), | ||
891 | |||
892 | /* PTF FN */ | ||
893 | PINMUX_DATA(LCDVSYN_MARK, PSD8_0, PTF7_FN), | ||
894 | PINMUX_DATA(LCDDISP_MARK, PSD10_0, PSD9_0, PTF6_FN), | ||
895 | PINMUX_DATA(LCDHSYN_MARK, PSD10_0, PSD9_0, PTF5_FN), | ||
896 | PINMUX_DATA(LCDDON_MARK, PSD8_0, PTF4_FN), | ||
897 | PINMUX_DATA(LCDDCK_MARK, PSD10_0, PSD9_0, PTF3_FN), | ||
898 | PINMUX_DATA(LCDVEPWC_MARK, PSA6_0, PTF2_FN), | ||
899 | PINMUX_DATA(LCDD23_MARK, PSC7_0, PSC6_0, PTF1_FN), | ||
900 | PINMUX_DATA(LCDD22_MARK, PSC5_0, PSC4_0, PTF0_FN), | ||
901 | |||
902 | PINMUX_DATA(LCDRS_MARK, PSD10_0, PSD9_1, PTF6_FN), | ||
903 | PINMUX_DATA(LCDCS_MARK, PSD10_0, PSD9_1, PTF5_FN), | ||
904 | PINMUX_DATA(LCDWR_MARK, PSD10_0, PSD9_1, PTF3_FN), | ||
905 | |||
906 | PINMUX_DATA(SCIF0_TXD_MARK, PSA6_1, PTF2_FN), | ||
907 | PINMUX_DATA(SCIF2_L_SCK_MARK, PSC7_0, PSC6_1, PTF1_FN), | ||
908 | PINMUX_DATA(SCIF2_L_RXD_MARK, PSC5_0, PSC4_1, PTF0_FN), | ||
909 | |||
910 | /* PTG FN */ | ||
911 | PINMUX_DATA(AUDCK_MARK, PTG5_FN), | ||
912 | PINMUX_DATA(AUDSYNC_MARK, PTG4_FN), | ||
913 | PINMUX_DATA(AUDATA3_MARK, PTG3_FN), | ||
914 | PINMUX_DATA(AUDATA2_MARK, PTG2_FN), | ||
915 | PINMUX_DATA(AUDATA1_MARK, PTG1_FN), | ||
916 | PINMUX_DATA(AUDATA0_MARK, PTG0_FN), | ||
917 | |||
918 | /* PTH FN */ | ||
919 | PINMUX_DATA(VIO0_VD_MARK, PTH7_FN), | ||
920 | PINMUX_DATA(VIO0_CLK_MARK, PTH6_FN), | ||
921 | PINMUX_DATA(VIO0_D7_MARK, PTH5_FN), | ||
922 | PINMUX_DATA(VIO0_D6_MARK, PTH4_FN), | ||
923 | PINMUX_DATA(VIO0_D5_MARK, PTH3_FN), | ||
924 | PINMUX_DATA(VIO0_D4_MARK, PTH2_FN), | ||
925 | PINMUX_DATA(VIO0_D3_MARK, PTH1_FN), | ||
926 | PINMUX_DATA(VIO0_D2_MARK, PTH0_FN), | ||
927 | |||
928 | /* PTJ FN */ | ||
929 | PINMUX_DATA(PDSTATUS_MARK, PTJ7_FN), | ||
930 | PINMUX_DATA(STATUS2_MARK, PTJ6_FN), | ||
931 | PINMUX_DATA(STATUS0_MARK, PTJ5_FN), | ||
932 | PINMUX_DATA(A25_MARK, PSA8_0, PTJ3_FN), | ||
933 | PINMUX_DATA(BS_MARK, PSA8_1, PTJ3_FN), | ||
934 | PINMUX_DATA(A24_MARK, PTJ2_FN), | ||
935 | PINMUX_DATA(A23_MARK, PTJ1_FN), | ||
936 | PINMUX_DATA(A22_MARK, PTJ0_FN), | ||
937 | |||
938 | /* PTK FN */ | ||
939 | PINMUX_DATA(VIO1_D5_MARK, PSB7_0, PSB6_0, PTK7_FN), | ||
940 | PINMUX_DATA(VIO1_D4_MARK, PSB7_0, PSB6_0, PTK6_FN), | ||
941 | PINMUX_DATA(VIO1_D3_MARK, PSB7_0, PSB6_0, PTK5_FN), | ||
942 | PINMUX_DATA(VIO1_D2_MARK, PSB7_0, PSB6_0, PTK4_FN), | ||
943 | PINMUX_DATA(VIO1_D1_MARK, PSB7_0, PSB6_0, PTK3_FN), | ||
944 | PINMUX_DATA(VIO1_D0_MARK, PSB7_0, PSB6_0, PTK2_FN), | ||
945 | |||
946 | PINMUX_DATA(VIO0_D13_MARK, PSB7_0, PSB6_1, PTK7_FN), | ||
947 | PINMUX_DATA(VIO0_D12_MARK, PSB7_0, PSB6_1, PTK6_FN), | ||
948 | PINMUX_DATA(VIO0_D11_MARK, PSB7_0, PSB6_1, PTK5_FN), | ||
949 | PINMUX_DATA(VIO0_D10_MARK, PSB7_0, PSB6_1, PTK4_FN), | ||
950 | PINMUX_DATA(VIO0_D9_MARK, PSB7_0, PSB6_1, PTK3_FN), | ||
951 | PINMUX_DATA(VIO0_D8_MARK, PSB7_0, PSB6_1, PTK2_FN), | ||
952 | |||
953 | PINMUX_DATA(IDED5_MARK, PSB7_1, PSB6_0, PTK7_FN), | ||
954 | PINMUX_DATA(IDED4_MARK, PSB7_1, PSB6_0, PTK6_FN), | ||
955 | PINMUX_DATA(IDED3_MARK, PSB7_1, PSB6_0, PTK5_FN), | ||
956 | PINMUX_DATA(IDED2_MARK, PSB7_1, PSB6_0, PTK4_FN), | ||
957 | PINMUX_DATA(IDED1_MARK, PSB7_1, PSB6_0, PTK3_FN), | ||
958 | PINMUX_DATA(IDED0_MARK, PSB7_1, PSB6_0, PTK2_FN), | ||
959 | |||
960 | PINMUX_DATA(VIO0_FLD_MARK, PTK1_FN), | ||
961 | PINMUX_DATA(VIO0_HD_MARK, PTK0_FN), | ||
962 | |||
963 | /* PTL FN */ | ||
964 | PINMUX_DATA(DV_D5_MARK, PSB9_0, PSB8_0, PTL7_FN), | ||
965 | PINMUX_DATA(DV_D4_MARK, PSB9_0, PSB8_0, PTL6_FN), | ||
966 | PINMUX_DATA(DV_D3_MARK, PSE7_0, PSE6_0, PTL5_FN), | ||
967 | PINMUX_DATA(DV_D2_MARK, PSC9_0, PSC8_0, PTL4_FN), | ||
968 | PINMUX_DATA(DV_D1_MARK, PSC9_0, PSC8_0, PTL3_FN), | ||
969 | PINMUX_DATA(DV_D0_MARK, PSC9_0, PSC8_0, PTL2_FN), | ||
970 | PINMUX_DATA(DV_D15_MARK, PSD4_0, PTL1_FN), | ||
971 | PINMUX_DATA(DV_D14_MARK, PSE5_0, PSE4_0, PTL0_FN), | ||
972 | |||
973 | PINMUX_DATA(SCIF3_V_SCK_MARK, PSB9_0, PSB8_1, PTL7_FN), | ||
974 | PINMUX_DATA(SCIF3_V_RXD_MARK, PSB9_0, PSB8_1, PTL6_FN), | ||
975 | PINMUX_DATA(SCIF3_V_TXD_MARK, PSE7_0, PSE6_1, PTL5_FN), | ||
976 | PINMUX_DATA(SCIF1_SCK_MARK, PSC9_0, PSC8_1, PTL4_FN), | ||
977 | PINMUX_DATA(SCIF1_RXD_MARK, PSC9_0, PSC8_1, PTL3_FN), | ||
978 | PINMUX_DATA(SCIF1_TXD_MARK, PSC9_0, PSC8_1, PTL2_FN), | ||
979 | |||
980 | PINMUX_DATA(RMII_RXD0_MARK, PSB9_1, PSB8_0, PTL7_FN), | ||
981 | PINMUX_DATA(RMII_RXD1_MARK, PSB9_1, PSB8_0, PTL6_FN), | ||
982 | PINMUX_DATA(RMII_REF_CLK_MARK, PSE7_1, PSE6_0, PTL5_FN), | ||
983 | PINMUX_DATA(RMII_TX_EN_MARK, PSC9_1, PSC8_0, PTL4_FN), | ||
984 | PINMUX_DATA(RMII_TXD0_MARK, PSC9_1, PSC8_0, PTL3_FN), | ||
985 | PINMUX_DATA(RMII_TXD1_MARK, PSC9_1, PSC8_0, PTL2_FN), | ||
986 | |||
987 | PINMUX_DATA(MSIOF0_MCK_MARK, PSE5_0, PSE4_1, PTL0_FN), | ||
988 | |||
989 | /* PTM FN */ | ||
990 | PINMUX_DATA(DV_D13_MARK, PSC13_0, PSC12_0, PTM7_FN), | ||
991 | PINMUX_DATA(DV_D12_MARK, PSC13_0, PSC12_0, PTM6_FN), | ||
992 | PINMUX_DATA(DV_D11_MARK, PSC13_0, PSC12_0, PTM5_FN), | ||
993 | PINMUX_DATA(DV_D10_MARK, PSC13_0, PSC12_0, PTM4_FN), | ||
994 | PINMUX_DATA(DV_D9_MARK, PSC11_0, PSC10_0, PTM3_FN), | ||
995 | PINMUX_DATA(DV_D8_MARK, PSC11_0, PSC10_0, PTM2_FN), | ||
996 | |||
997 | PINMUX_DATA(MSIOF0_TSCK_MARK, PSC13_0, PSC12_1, PTM7_FN), | ||
998 | PINMUX_DATA(MSIOF0_RXD_MARK, PSC13_0, PSC12_1, PTM6_FN), | ||
999 | PINMUX_DATA(MSIOF0_TXD_MARK, PSC13_0, PSC12_1, PTM5_FN), | ||
1000 | PINMUX_DATA(MSIOF0_TSYNC_MARK, PSC13_0, PSC12_1, PTM4_FN), | ||
1001 | PINMUX_DATA(MSIOF0_SS1_MARK, PSC11_0, PSC10_1, PTM3_FN), | ||
1002 | PINMUX_DATA(MSIOF0_RSCK_MARK, PSC11_1, PSC10_0, PTM3_FN), | ||
1003 | PINMUX_DATA(MSIOF0_SS2_MARK, PSC11_0, PSC10_1, PTM2_FN), | ||
1004 | PINMUX_DATA(MSIOF0_RSYNC_MARK, PSC11_1, PSC10_0, PTM2_FN), | ||
1005 | |||
1006 | PINMUX_DATA(LCDVCPWC_MARK, PSA6_0, PTM1_FN), | ||
1007 | PINMUX_DATA(LCDRD_MARK, PSA7_0, PTM0_FN), | ||
1008 | |||
1009 | PINMUX_DATA(SCIF0_RXD_MARK, PSA6_1, PTM1_FN), | ||
1010 | PINMUX_DATA(SCIF0_SCK_MARK, PSA7_1, PTM0_FN), | ||
1011 | |||
1012 | /* PTN FN */ | ||
1013 | PINMUX_DATA(VIO0_D1_MARK, PTN7_FN), | ||
1014 | PINMUX_DATA(VIO0_D0_MARK, PTN6_FN), | ||
1015 | |||
1016 | PINMUX_DATA(DV_CLKI_MARK, PSD11_0, PTN5_FN), | ||
1017 | PINMUX_DATA(DV_CLK_MARK, PSD13_0, PSD12_0, PTN4_FN), | ||
1018 | PINMUX_DATA(DV_VSYNC_MARK, PSD15_0, PSD14_0, PTN3_FN), | ||
1019 | PINMUX_DATA(DV_HSYNC_MARK, PSB5_0, PSB4_0, PTN2_FN), | ||
1020 | PINMUX_DATA(DV_D7_MARK, PSB3_0, PSB2_0, PTN1_FN), | ||
1021 | PINMUX_DATA(DV_D6_MARK, PSB1_0, PSB0_0, PTN0_FN), | ||
1022 | |||
1023 | PINMUX_DATA(SCIF2_V_SCK_MARK, PSD13_0, PSD12_1, PTN4_FN), | ||
1024 | PINMUX_DATA(SCIF2_V_RXD_MARK, PSD15_0, PSD14_1, PTN3_FN), | ||
1025 | PINMUX_DATA(SCIF2_V_TXD_MARK, PSB5_0, PSB4_1, PTN2_FN), | ||
1026 | PINMUX_DATA(SCIF3_V_CTS_MARK, PSB3_0, PSB2_1, PTN1_FN), | ||
1027 | PINMUX_DATA(SCIF3_V_RTS_MARK, PSB1_0, PSB0_1, PTN0_FN), | ||
1028 | |||
1029 | PINMUX_DATA(RMII_RX_ER_MARK, PSB3_1, PSB2_0, PTN1_FN), | ||
1030 | PINMUX_DATA(RMII_CRS_DV_MARK, PSB1_1, PSB0_0, PTN0_FN), | ||
1031 | |||
1032 | /* PTQ FN */ | ||
1033 | PINMUX_DATA(D7_MARK, PTQ7_FN), | ||
1034 | PINMUX_DATA(D6_MARK, PTQ6_FN), | ||
1035 | PINMUX_DATA(D5_MARK, PTQ5_FN), | ||
1036 | PINMUX_DATA(D4_MARK, PTQ4_FN), | ||
1037 | PINMUX_DATA(D3_MARK, PTQ3_FN), | ||
1038 | PINMUX_DATA(D2_MARK, PTQ2_FN), | ||
1039 | PINMUX_DATA(D1_MARK, PTQ1_FN), | ||
1040 | PINMUX_DATA(D0_MARK, PTQ0_FN), | ||
1041 | |||
1042 | /* PTR FN */ | ||
1043 | PINMUX_DATA(CS6B_CE1B_MARK, PTR7_FN), | ||
1044 | PINMUX_DATA(CS6A_CE2B_MARK, PTR6_FN), | ||
1045 | PINMUX_DATA(CS5B_CE1A_MARK, PTR5_FN), | ||
1046 | PINMUX_DATA(CS5A_CE2A_MARK, PTR4_FN), | ||
1047 | PINMUX_DATA(IOIS16_MARK, PSA5_0, PTR3_FN), | ||
1048 | PINMUX_DATA(WAIT_MARK, PTR2_FN), | ||
1049 | PINMUX_DATA(WE3_ICIOWR_MARK, PSA1_0, PSA0_0, PTR1_FN), | ||
1050 | PINMUX_DATA(WE2_ICIORD_MARK, PSD1_0, PSD0_0, PTR0_FN), | ||
1051 | |||
1052 | PINMUX_DATA(LCDLCLK_MARK, PSA5_1, PTR3_FN), | ||
1053 | |||
1054 | PINMUX_DATA(IDEA2_MARK, PSD1_1, PSD0_0, PTR0_FN), | ||
1055 | |||
1056 | PINMUX_DATA(TPUTO3_MARK, PSA1_0, PSA0_1, PTR1_FN), | ||
1057 | PINMUX_DATA(TPUTI3_MARK, PSA1_1, PSA0_0, PTR1_FN), | ||
1058 | PINMUX_DATA(TPUTO2_MARK, PSD1_0, PSD0_1, PTR0_FN), | ||
1059 | |||
1060 | /* PTS FN */ | ||
1061 | PINMUX_DATA(VIO_CKO_MARK, PTS6_FN), | ||
1062 | |||
1063 | PINMUX_DATA(TPUTI2_MARK, PSE9_0, PSE8_1, PTS5_FN), | ||
1064 | |||
1065 | PINMUX_DATA(IDEIORDY_MARK, PSE9_1, PSE8_0, PTS5_FN), | ||
1066 | |||
1067 | PINMUX_DATA(VIO1_FLD_MARK, PSE9_0, PSE8_0, PTS5_FN), | ||
1068 | PINMUX_DATA(VIO1_HD_MARK, PSA10_0, PTS4_FN), | ||
1069 | PINMUX_DATA(VIO1_VD_MARK, PSA9_0, PTS3_FN), | ||
1070 | PINMUX_DATA(VIO1_CLK_MARK, PSA9_0, PTS2_FN), | ||
1071 | PINMUX_DATA(VIO1_D7_MARK, PSB7_0, PSB6_0, PTS1_FN), | ||
1072 | PINMUX_DATA(VIO1_D6_MARK, PSB7_0, PSB6_0, PTS0_FN), | ||
1073 | |||
1074 | PINMUX_DATA(SCIF5_SCK_MARK, PSA10_1, PTS4_FN), | ||
1075 | PINMUX_DATA(SCIF5_RXD_MARK, PSA9_1, PTS3_FN), | ||
1076 | PINMUX_DATA(SCIF5_TXD_MARK, PSA9_1, PTS2_FN), | ||
1077 | |||
1078 | PINMUX_DATA(VIO0_D15_MARK, PSB7_0, PSB6_1, PTS1_FN), | ||
1079 | PINMUX_DATA(VIO0_D14_MARK, PSB7_0, PSB6_1, PTS0_FN), | ||
1080 | |||
1081 | PINMUX_DATA(IDED7_MARK, PSB7_1, PSB6_0, PTS1_FN), | ||
1082 | PINMUX_DATA(IDED6_MARK, PSB7_1, PSB6_0, PTS0_FN), | ||
1083 | |||
1084 | /* PTT FN */ | ||
1085 | PINMUX_DATA(D15_MARK, PTT7_FN), | ||
1086 | PINMUX_DATA(D14_MARK, PTT6_FN), | ||
1087 | PINMUX_DATA(D13_MARK, PTT5_FN), | ||
1088 | PINMUX_DATA(D12_MARK, PTT4_FN), | ||
1089 | PINMUX_DATA(D11_MARK, PTT3_FN), | ||
1090 | PINMUX_DATA(D10_MARK, PTT2_FN), | ||
1091 | PINMUX_DATA(D9_MARK, PTT1_FN), | ||
1092 | PINMUX_DATA(D8_MARK, PTT0_FN), | ||
1093 | |||
1094 | /* PTU FN */ | ||
1095 | PINMUX_DATA(DMAC_DACK0_MARK, PTU7_FN), | ||
1096 | PINMUX_DATA(DMAC_DREQ0_MARK, PTU6_FN), | ||
1097 | |||
1098 | PINMUX_DATA(FSIOASD_MARK, PSE1_0, PTU5_FN), | ||
1099 | PINMUX_DATA(FSIIABCK_MARK, PSE1_0, PTU4_FN), | ||
1100 | PINMUX_DATA(FSIIALRCK_MARK, PSE1_0, PTU3_FN), | ||
1101 | PINMUX_DATA(FSIOABCK_MARK, PSE1_0, PTU2_FN), | ||
1102 | PINMUX_DATA(FSIOALRCK_MARK, PSE1_0, PTU1_FN), | ||
1103 | PINMUX_DATA(CLKAUDIOAO_MARK, PSE0_0, PTU0_FN), | ||
1104 | |||
1105 | /* PTV FN */ | ||
1106 | PINMUX_DATA(FSIIBSD_MARK, PSD7_0, PSD6_0, PTV7_FN), | ||
1107 | PINMUX_DATA(FSIOBSD_MARK, PSD7_0, PSD6_0, PTV6_FN), | ||
1108 | PINMUX_DATA(FSIIBBCK_MARK, PSC15_0, PSC14_0, PTV5_FN), | ||
1109 | PINMUX_DATA(FSIIBLRCK_MARK, PSC15_0, PSC14_0, PTV4_FN), | ||
1110 | PINMUX_DATA(FSIOBBCK_MARK, PSC15_0, PSC14_0, PTV3_FN), | ||
1111 | PINMUX_DATA(FSIOBLRCK_MARK, PSC15_0, PSC14_0, PTV2_FN), | ||
1112 | PINMUX_DATA(CLKAUDIOBO_MARK, PSE3_0, PSE2_0, PTV1_FN), | ||
1113 | PINMUX_DATA(FSIIASD_MARK, PSE10_0, PTV0_FN), | ||
1114 | |||
1115 | PINMUX_DATA(MSIOF1_SS2_MARK, PSD7_0, PSD6_1, PTV7_FN), | ||
1116 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PSD7_1, PSD6_0, PTV7_FN), | ||
1117 | PINMUX_DATA(MSIOF1_SS1_MARK, PSD7_0, PSD6_1, PTV6_FN), | ||
1118 | PINMUX_DATA(MSIOF1_RSCK_MARK, PSD7_1, PSD6_0, PTV6_FN), | ||
1119 | PINMUX_DATA(MSIOF1_RXD_MARK, PSC15_0, PSC14_1, PTV5_FN), | ||
1120 | PINMUX_DATA(MSIOF1_TSYNC_MARK, PSC15_0, PSC14_1, PTV4_FN), | ||
1121 | PINMUX_DATA(MSIOF1_TSCK_MARK, PSC15_0, PSC14_1, PTV3_FN), | ||
1122 | PINMUX_DATA(MSIOF1_TXD_MARK, PSC15_0, PSC14_1, PTV2_FN), | ||
1123 | PINMUX_DATA(MSIOF1_MCK_MARK, PSE3_0, PSE2_1, PTV1_FN), | ||
1124 | |||
1125 | /* PTW FN */ | ||
1126 | PINMUX_DATA(MMC_D7_MARK, PSE13_0, PSE12_0, PTW7_FN), | ||
1127 | PINMUX_DATA(MMC_D6_MARK, PSE13_0, PSE12_0, PTW6_FN), | ||
1128 | PINMUX_DATA(MMC_D5_MARK, PSE13_0, PSE12_0, PTW5_FN), | ||
1129 | PINMUX_DATA(MMC_D4_MARK, PSE13_0, PSE12_0, PTW4_FN), | ||
1130 | PINMUX_DATA(MMC_D3_MARK, PSA13_0, PTW3_FN), | ||
1131 | PINMUX_DATA(MMC_D2_MARK, PSA13_0, PTW2_FN), | ||
1132 | PINMUX_DATA(MMC_D1_MARK, PSA13_0, PTW1_FN), | ||
1133 | PINMUX_DATA(MMC_D0_MARK, PSA13_0, PTW0_FN), | ||
1134 | |||
1135 | PINMUX_DATA(SDHI1CD_MARK, PSE13_0, PSE12_1, PTW7_FN), | ||
1136 | PINMUX_DATA(SDHI1WP_MARK, PSE13_0, PSE12_1, PTW6_FN), | ||
1137 | PINMUX_DATA(SDHI1D3_MARK, PSE13_0, PSE12_1, PTW5_FN), | ||
1138 | PINMUX_DATA(SDHI1D2_MARK, PSE13_0, PSE12_1, PTW4_FN), | ||
1139 | PINMUX_DATA(SDHI1D1_MARK, PSA13_1, PTW3_FN), | ||
1140 | PINMUX_DATA(SDHI1D0_MARK, PSA13_1, PTW2_FN), | ||
1141 | PINMUX_DATA(SDHI1CMD_MARK, PSA13_1, PTW1_FN), | ||
1142 | PINMUX_DATA(SDHI1CLK_MARK, PSA13_1, PTW0_FN), | ||
1143 | |||
1144 | PINMUX_DATA(IODACK_MARK, PSE13_1, PSE12_0, PTW7_FN), | ||
1145 | PINMUX_DATA(IDERST_MARK, PSE13_1, PSE12_0, PTW6_FN), | ||
1146 | PINMUX_DATA(EXBUF_ENB_MARK, PSE13_1, PSE12_0, PTW5_FN), | ||
1147 | PINMUX_DATA(DIRECTION_MARK, PSE13_1, PSE12_0, PTW4_FN), | ||
1148 | |||
1149 | /* PTX FN */ | ||
1150 | PINMUX_DATA(DMAC_DACK1_MARK, PSA12_0, PTX7_FN), | ||
1151 | PINMUX_DATA(DMAC_DREQ1_MARK, PSA12_0, PTX6_FN), | ||
1152 | |||
1153 | PINMUX_DATA(IRDA_OUT_MARK, PSA12_1, PTX7_FN), | ||
1154 | PINMUX_DATA(IRDA_IN_MARK, PSA12_1, PTX6_FN), | ||
1155 | |||
1156 | PINMUX_DATA(TSIF_TS0_SDAT_MARK, PSC0_0, PTX5_FN), | ||
1157 | PINMUX_DATA(TSIF_TS0_SCK_MARK, PSC1_0, PTX4_FN), | ||
1158 | PINMUX_DATA(TSIF_TS0_SDEN_MARK, PSC2_0, PTX3_FN), | ||
1159 | PINMUX_DATA(TSIF_TS0_SPSYNC_MARK, PTX2_FN), | ||
1160 | |||
1161 | PINMUX_DATA(LNKSTA_MARK, PSC0_1, PTX5_FN), | ||
1162 | PINMUX_DATA(MDIO_MARK, PSC1_1, PTX4_FN), | ||
1163 | PINMUX_DATA(MDC_MARK, PSC2_1, PTX3_FN), | ||
1164 | |||
1165 | PINMUX_DATA(MMC_CLK_MARK, PTX1_FN), | ||
1166 | PINMUX_DATA(MMC_CMD_MARK, PTX0_FN), | ||
1167 | |||
1168 | /* PTY FN */ | ||
1169 | PINMUX_DATA(SDHI0CD_MARK, PTY7_FN), | ||
1170 | PINMUX_DATA(SDHI0WP_MARK, PTY6_FN), | ||
1171 | PINMUX_DATA(SDHI0D3_MARK, PTY5_FN), | ||
1172 | PINMUX_DATA(SDHI0D2_MARK, PTY4_FN), | ||
1173 | PINMUX_DATA(SDHI0D1_MARK, PTY3_FN), | ||
1174 | PINMUX_DATA(SDHI0D0_MARK, PTY2_FN), | ||
1175 | PINMUX_DATA(SDHI0CMD_MARK, PTY1_FN), | ||
1176 | PINMUX_DATA(SDHI0CLK_MARK, PTY0_FN), | ||
1177 | |||
1178 | /* PTZ FN */ | ||
1179 | PINMUX_DATA(INTC_IRQ7_MARK, PSB10_0, PTZ7_FN), | ||
1180 | PINMUX_DATA(INTC_IRQ6_MARK, PSB11_0, PTZ6_FN), | ||
1181 | PINMUX_DATA(INTC_IRQ5_MARK, PSB12_0, PTZ5_FN), | ||
1182 | PINMUX_DATA(INTC_IRQ4_MARK, PSB13_0, PTZ4_FN), | ||
1183 | PINMUX_DATA(INTC_IRQ3_MARK, PSB14_0, PTZ3_FN), | ||
1184 | PINMUX_DATA(INTC_IRQ2_MARK, PTZ2_FN), | ||
1185 | PINMUX_DATA(INTC_IRQ1_MARK, PTZ1_FN), | ||
1186 | PINMUX_DATA(INTC_IRQ0_MARK, PTZ0_FN), | ||
1187 | |||
1188 | PINMUX_DATA(SCIF3_I_CTS_MARK, PSB10_1, PTZ7_FN), | ||
1189 | PINMUX_DATA(SCIF3_I_RTS_MARK, PSB11_1, PTZ6_FN), | ||
1190 | PINMUX_DATA(SCIF3_I_SCK_MARK, PSB12_1, PTZ5_FN), | ||
1191 | PINMUX_DATA(SCIF3_I_RXD_MARK, PSB13_1, PTZ4_FN), | ||
1192 | PINMUX_DATA(SCIF3_I_TXD_MARK, PSB14_1, PTZ3_FN), | ||
1193 | }; | ||
1194 | |||
1195 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1196 | /* PTA */ | ||
1197 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
1198 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
1199 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
1200 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
1201 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
1202 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
1203 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
1204 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
1205 | |||
1206 | /* PTB */ | ||
1207 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
1208 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
1209 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
1210 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
1211 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
1212 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
1213 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
1214 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
1215 | |||
1216 | /* PTC */ | ||
1217 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
1218 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
1219 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
1220 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
1221 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
1222 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
1223 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
1224 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
1225 | |||
1226 | /* PTD */ | ||
1227 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
1228 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
1229 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
1230 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
1231 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
1232 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
1233 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
1234 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
1235 | |||
1236 | /* PTE */ | ||
1237 | PINMUX_GPIO(GPIO_PTE7, PTE7_DATA), | ||
1238 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
1239 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
1240 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
1241 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
1242 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
1243 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
1244 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
1245 | |||
1246 | /* PTF */ | ||
1247 | PINMUX_GPIO(GPIO_PTF7, PTF7_DATA), | ||
1248 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
1249 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
1250 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
1251 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
1252 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
1253 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
1254 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
1255 | |||
1256 | /* PTG */ | ||
1257 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
1258 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
1259 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
1260 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
1261 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
1262 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
1263 | |||
1264 | /* PTH */ | ||
1265 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
1266 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
1267 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
1268 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
1269 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
1270 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
1271 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
1272 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
1273 | |||
1274 | /* PTJ */ | ||
1275 | PINMUX_GPIO(GPIO_PTJ7, PTJ7_DATA), | ||
1276 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
1277 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
1278 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
1279 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
1280 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
1281 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
1282 | |||
1283 | /* PTK */ | ||
1284 | PINMUX_GPIO(GPIO_PTK7, PTK7_DATA), | ||
1285 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
1286 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
1287 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
1288 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
1289 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
1290 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
1291 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
1292 | |||
1293 | /* PTL */ | ||
1294 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
1295 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
1296 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
1297 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
1298 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
1299 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
1300 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
1301 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
1302 | |||
1303 | /* PTM */ | ||
1304 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
1305 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
1306 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
1307 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
1308 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
1309 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
1310 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
1311 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
1312 | |||
1313 | /* PTN */ | ||
1314 | PINMUX_GPIO(GPIO_PTN7, PTN7_DATA), | ||
1315 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
1316 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
1317 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
1318 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
1319 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
1320 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
1321 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
1322 | |||
1323 | /* PTQ */ | ||
1324 | PINMUX_GPIO(GPIO_PTQ7, PTQ7_DATA), | ||
1325 | PINMUX_GPIO(GPIO_PTQ6, PTQ6_DATA), | ||
1326 | PINMUX_GPIO(GPIO_PTQ5, PTQ5_DATA), | ||
1327 | PINMUX_GPIO(GPIO_PTQ4, PTQ4_DATA), | ||
1328 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
1329 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
1330 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
1331 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
1332 | |||
1333 | /* PTR */ | ||
1334 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
1335 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
1336 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
1337 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
1338 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
1339 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
1340 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
1341 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
1342 | |||
1343 | /* PTS */ | ||
1344 | PINMUX_GPIO(GPIO_PTS6, PTS6_DATA), | ||
1345 | PINMUX_GPIO(GPIO_PTS5, PTS5_DATA), | ||
1346 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
1347 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
1348 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
1349 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
1350 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
1351 | |||
1352 | /* PTT */ | ||
1353 | PINMUX_GPIO(GPIO_PTT7, PTT7_DATA), | ||
1354 | PINMUX_GPIO(GPIO_PTT6, PTT6_DATA), | ||
1355 | PINMUX_GPIO(GPIO_PTT5, PTT5_DATA), | ||
1356 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
1357 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
1358 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
1359 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
1360 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
1361 | |||
1362 | /* PTU */ | ||
1363 | PINMUX_GPIO(GPIO_PTU7, PTU7_DATA), | ||
1364 | PINMUX_GPIO(GPIO_PTU6, PTU6_DATA), | ||
1365 | PINMUX_GPIO(GPIO_PTU5, PTU5_DATA), | ||
1366 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
1367 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
1368 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
1369 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
1370 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
1371 | |||
1372 | /* PTV */ | ||
1373 | PINMUX_GPIO(GPIO_PTV7, PTV7_DATA), | ||
1374 | PINMUX_GPIO(GPIO_PTV6, PTV6_DATA), | ||
1375 | PINMUX_GPIO(GPIO_PTV5, PTV5_DATA), | ||
1376 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
1377 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
1378 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
1379 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
1380 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
1381 | |||
1382 | /* PTW */ | ||
1383 | PINMUX_GPIO(GPIO_PTW7, PTW7_DATA), | ||
1384 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
1385 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
1386 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
1387 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
1388 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
1389 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
1390 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
1391 | |||
1392 | /* PTX */ | ||
1393 | PINMUX_GPIO(GPIO_PTX7, PTX7_DATA), | ||
1394 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
1395 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
1396 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
1397 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
1398 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
1399 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
1400 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
1401 | |||
1402 | /* PTY */ | ||
1403 | PINMUX_GPIO(GPIO_PTY7, PTY7_DATA), | ||
1404 | PINMUX_GPIO(GPIO_PTY6, PTY6_DATA), | ||
1405 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
1406 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
1407 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
1408 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
1409 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
1410 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
1411 | |||
1412 | /* PTZ */ | ||
1413 | PINMUX_GPIO(GPIO_PTZ7, PTZ7_DATA), | ||
1414 | PINMUX_GPIO(GPIO_PTZ6, PTZ6_DATA), | ||
1415 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
1416 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
1417 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
1418 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
1419 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
1420 | PINMUX_GPIO(GPIO_PTZ0, PTZ0_DATA), | ||
1421 | |||
1422 | /* BSC */ | ||
1423 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
1424 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
1425 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
1426 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
1427 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
1428 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
1429 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
1430 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
1431 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
1432 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
1433 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
1434 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
1438 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
1439 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1440 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1441 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1442 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1443 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1444 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1445 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1447 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1448 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1449 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1450 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1451 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1452 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1453 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_CS6A_CE2B, CS6A_CE2B_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_CS5B_CE1A, CS5B_CE1A_MARK), | ||
1462 | PINMUX_GPIO(GPIO_FN_CS5A_CE2A, CS5A_CE2A_MARK), | ||
1463 | PINMUX_GPIO(GPIO_FN_WE3_ICIOWR, WE3_ICIOWR_MARK), | ||
1464 | PINMUX_GPIO(GPIO_FN_WE2_ICIORD, WE2_ICIORD_MARK), | ||
1465 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1466 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1467 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1468 | |||
1469 | /* KEYSC */ | ||
1470 | PINMUX_GPIO(GPIO_FN_KEYOUT5_IN5, KEYOUT5_IN5_MARK), | ||
1471 | PINMUX_GPIO(GPIO_FN_KEYOUT4_IN6, KEYOUT4_IN6_MARK), | ||
1472 | PINMUX_GPIO(GPIO_FN_KEYIN4, KEYIN4_MARK), | ||
1473 | PINMUX_GPIO(GPIO_FN_KEYIN3, KEYIN3_MARK), | ||
1474 | PINMUX_GPIO(GPIO_FN_KEYIN2, KEYIN2_MARK), | ||
1475 | PINMUX_GPIO(GPIO_FN_KEYIN1, KEYIN1_MARK), | ||
1476 | PINMUX_GPIO(GPIO_FN_KEYIN0, KEYIN0_MARK), | ||
1477 | PINMUX_GPIO(GPIO_FN_KEYOUT3, KEYOUT3_MARK), | ||
1478 | PINMUX_GPIO(GPIO_FN_KEYOUT2, KEYOUT2_MARK), | ||
1479 | PINMUX_GPIO(GPIO_FN_KEYOUT1, KEYOUT1_MARK), | ||
1480 | PINMUX_GPIO(GPIO_FN_KEYOUT0, KEYOUT0_MARK), | ||
1481 | |||
1482 | /* ATAPI */ | ||
1483 | PINMUX_GPIO(GPIO_FN_IDED15, IDED15_MARK), | ||
1484 | PINMUX_GPIO(GPIO_FN_IDED14, IDED14_MARK), | ||
1485 | PINMUX_GPIO(GPIO_FN_IDED13, IDED13_MARK), | ||
1486 | PINMUX_GPIO(GPIO_FN_IDED12, IDED12_MARK), | ||
1487 | PINMUX_GPIO(GPIO_FN_IDED11, IDED11_MARK), | ||
1488 | PINMUX_GPIO(GPIO_FN_IDED10, IDED10_MARK), | ||
1489 | PINMUX_GPIO(GPIO_FN_IDED9, IDED9_MARK), | ||
1490 | PINMUX_GPIO(GPIO_FN_IDED8, IDED8_MARK), | ||
1491 | PINMUX_GPIO(GPIO_FN_IDED7, IDED7_MARK), | ||
1492 | PINMUX_GPIO(GPIO_FN_IDED6, IDED6_MARK), | ||
1493 | PINMUX_GPIO(GPIO_FN_IDED5, IDED5_MARK), | ||
1494 | PINMUX_GPIO(GPIO_FN_IDED4, IDED4_MARK), | ||
1495 | PINMUX_GPIO(GPIO_FN_IDED3, IDED3_MARK), | ||
1496 | PINMUX_GPIO(GPIO_FN_IDED2, IDED2_MARK), | ||
1497 | PINMUX_GPIO(GPIO_FN_IDED1, IDED1_MARK), | ||
1498 | PINMUX_GPIO(GPIO_FN_IDED0, IDED0_MARK), | ||
1499 | PINMUX_GPIO(GPIO_FN_IDEA2, IDEA2_MARK), | ||
1500 | PINMUX_GPIO(GPIO_FN_IDEA1, IDEA1_MARK), | ||
1501 | PINMUX_GPIO(GPIO_FN_IDEA0, IDEA0_MARK), | ||
1502 | PINMUX_GPIO(GPIO_FN_IDEIOWR, IDEIOWR_MARK), | ||
1503 | PINMUX_GPIO(GPIO_FN_IODREQ, IODREQ_MARK), | ||
1504 | PINMUX_GPIO(GPIO_FN_IDECS0, IDECS0_MARK), | ||
1505 | PINMUX_GPIO(GPIO_FN_IDECS1, IDECS1_MARK), | ||
1506 | PINMUX_GPIO(GPIO_FN_IDEIORD, IDEIORD_MARK), | ||
1507 | PINMUX_GPIO(GPIO_FN_DIRECTION, DIRECTION_MARK), | ||
1508 | PINMUX_GPIO(GPIO_FN_EXBUF_ENB, EXBUF_ENB_MARK), | ||
1509 | PINMUX_GPIO(GPIO_FN_IDERST, IDERST_MARK), | ||
1510 | PINMUX_GPIO(GPIO_FN_IODACK, IODACK_MARK), | ||
1511 | PINMUX_GPIO(GPIO_FN_IDEINT, IDEINT_MARK), | ||
1512 | PINMUX_GPIO(GPIO_FN_IDEIORDY, IDEIORDY_MARK), | ||
1513 | |||
1514 | /* TPU */ | ||
1515 | PINMUX_GPIO(GPIO_FN_TPUTO3, TPUTO3_MARK), | ||
1516 | PINMUX_GPIO(GPIO_FN_TPUTO2, TPUTO2_MARK), | ||
1517 | PINMUX_GPIO(GPIO_FN_TPUTO1, TPUTO1_MARK), | ||
1518 | PINMUX_GPIO(GPIO_FN_TPUTO0, TPUTO0_MARK), | ||
1519 | PINMUX_GPIO(GPIO_FN_TPUTI3, TPUTI3_MARK), | ||
1520 | PINMUX_GPIO(GPIO_FN_TPUTI2, TPUTI2_MARK), | ||
1521 | |||
1522 | /* LCDC */ | ||
1523 | PINMUX_GPIO(GPIO_FN_LCDD23, LCDD23_MARK), | ||
1524 | PINMUX_GPIO(GPIO_FN_LCDD22, LCDD22_MARK), | ||
1525 | PINMUX_GPIO(GPIO_FN_LCDD21, LCDD21_MARK), | ||
1526 | PINMUX_GPIO(GPIO_FN_LCDD20, LCDD20_MARK), | ||
1527 | PINMUX_GPIO(GPIO_FN_LCDD19, LCDD19_MARK), | ||
1528 | PINMUX_GPIO(GPIO_FN_LCDD18, LCDD18_MARK), | ||
1529 | PINMUX_GPIO(GPIO_FN_LCDD17, LCDD17_MARK), | ||
1530 | PINMUX_GPIO(GPIO_FN_LCDD16, LCDD16_MARK), | ||
1531 | PINMUX_GPIO(GPIO_FN_LCDD15, LCDD15_MARK), | ||
1532 | PINMUX_GPIO(GPIO_FN_LCDD14, LCDD14_MARK), | ||
1533 | PINMUX_GPIO(GPIO_FN_LCDD13, LCDD13_MARK), | ||
1534 | PINMUX_GPIO(GPIO_FN_LCDD12, LCDD12_MARK), | ||
1535 | PINMUX_GPIO(GPIO_FN_LCDD11, LCDD11_MARK), | ||
1536 | PINMUX_GPIO(GPIO_FN_LCDD10, LCDD10_MARK), | ||
1537 | PINMUX_GPIO(GPIO_FN_LCDD9, LCDD9_MARK), | ||
1538 | PINMUX_GPIO(GPIO_FN_LCDD8, LCDD8_MARK), | ||
1539 | PINMUX_GPIO(GPIO_FN_LCDD7, LCDD7_MARK), | ||
1540 | PINMUX_GPIO(GPIO_FN_LCDD6, LCDD6_MARK), | ||
1541 | PINMUX_GPIO(GPIO_FN_LCDD5, LCDD5_MARK), | ||
1542 | PINMUX_GPIO(GPIO_FN_LCDD4, LCDD4_MARK), | ||
1543 | PINMUX_GPIO(GPIO_FN_LCDD3, LCDD3_MARK), | ||
1544 | PINMUX_GPIO(GPIO_FN_LCDD2, LCDD2_MARK), | ||
1545 | PINMUX_GPIO(GPIO_FN_LCDD1, LCDD1_MARK), | ||
1546 | PINMUX_GPIO(GPIO_FN_LCDD0, LCDD0_MARK), | ||
1547 | PINMUX_GPIO(GPIO_FN_LCDVSYN, LCDVSYN_MARK), | ||
1548 | PINMUX_GPIO(GPIO_FN_LCDDISP, LCDDISP_MARK), | ||
1549 | PINMUX_GPIO(GPIO_FN_LCDRS, LCDRS_MARK), | ||
1550 | PINMUX_GPIO(GPIO_FN_LCDHSYN, LCDHSYN_MARK), | ||
1551 | PINMUX_GPIO(GPIO_FN_LCDCS, LCDCS_MARK), | ||
1552 | PINMUX_GPIO(GPIO_FN_LCDDON, LCDDON_MARK), | ||
1553 | PINMUX_GPIO(GPIO_FN_LCDDCK, LCDDCK_MARK), | ||
1554 | PINMUX_GPIO(GPIO_FN_LCDWR, LCDWR_MARK), | ||
1555 | PINMUX_GPIO(GPIO_FN_LCDVEPWC, LCDVEPWC_MARK), | ||
1556 | PINMUX_GPIO(GPIO_FN_LCDVCPWC, LCDVCPWC_MARK), | ||
1557 | PINMUX_GPIO(GPIO_FN_LCDRD, LCDRD_MARK), | ||
1558 | PINMUX_GPIO(GPIO_FN_LCDLCLK, LCDLCLK_MARK), | ||
1559 | |||
1560 | /* SCIF0 */ | ||
1561 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
1562 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
1563 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
1564 | |||
1565 | /* SCIF1 */ | ||
1566 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
1567 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
1568 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
1569 | |||
1570 | /* SCIF2 */ | ||
1571 | PINMUX_GPIO(GPIO_FN_SCIF2_L_TXD, SCIF2_L_TXD_MARK), | ||
1572 | PINMUX_GPIO(GPIO_FN_SCIF2_L_SCK, SCIF2_L_SCK_MARK), | ||
1573 | PINMUX_GPIO(GPIO_FN_SCIF2_L_RXD, SCIF2_L_RXD_MARK), | ||
1574 | PINMUX_GPIO(GPIO_FN_SCIF2_V_TXD, SCIF2_V_TXD_MARK), | ||
1575 | PINMUX_GPIO(GPIO_FN_SCIF2_V_SCK, SCIF2_V_SCK_MARK), | ||
1576 | PINMUX_GPIO(GPIO_FN_SCIF2_V_RXD, SCIF2_V_RXD_MARK), | ||
1577 | |||
1578 | /* SCIF3 */ | ||
1579 | PINMUX_GPIO(GPIO_FN_SCIF3_V_SCK, SCIF3_V_SCK_MARK), | ||
1580 | PINMUX_GPIO(GPIO_FN_SCIF3_V_RXD, SCIF3_V_RXD_MARK), | ||
1581 | PINMUX_GPIO(GPIO_FN_SCIF3_V_TXD, SCIF3_V_TXD_MARK), | ||
1582 | PINMUX_GPIO(GPIO_FN_SCIF3_V_CTS, SCIF3_V_CTS_MARK), | ||
1583 | PINMUX_GPIO(GPIO_FN_SCIF3_V_RTS, SCIF3_V_RTS_MARK), | ||
1584 | PINMUX_GPIO(GPIO_FN_SCIF3_I_SCK, SCIF3_I_SCK_MARK), | ||
1585 | PINMUX_GPIO(GPIO_FN_SCIF3_I_RXD, SCIF3_I_RXD_MARK), | ||
1586 | PINMUX_GPIO(GPIO_FN_SCIF3_I_TXD, SCIF3_I_TXD_MARK), | ||
1587 | PINMUX_GPIO(GPIO_FN_SCIF3_I_CTS, SCIF3_I_CTS_MARK), | ||
1588 | PINMUX_GPIO(GPIO_FN_SCIF3_I_RTS, SCIF3_I_RTS_MARK), | ||
1589 | |||
1590 | /* SCIF4 */ | ||
1591 | PINMUX_GPIO(GPIO_FN_SCIF4_SCK, SCIF4_SCK_MARK), | ||
1592 | PINMUX_GPIO(GPIO_FN_SCIF4_RXD, SCIF4_RXD_MARK), | ||
1593 | PINMUX_GPIO(GPIO_FN_SCIF4_TXD, SCIF4_TXD_MARK), | ||
1594 | |||
1595 | /* SCIF5 */ | ||
1596 | PINMUX_GPIO(GPIO_FN_SCIF5_SCK, SCIF5_SCK_MARK), | ||
1597 | PINMUX_GPIO(GPIO_FN_SCIF5_RXD, SCIF5_RXD_MARK), | ||
1598 | PINMUX_GPIO(GPIO_FN_SCIF5_TXD, SCIF5_TXD_MARK), | ||
1599 | |||
1600 | /* FSI */ | ||
1601 | PINMUX_GPIO(GPIO_FN_FSIMCKB, FSIMCKB_MARK), | ||
1602 | PINMUX_GPIO(GPIO_FN_FSIMCKA, FSIMCKA_MARK), | ||
1603 | PINMUX_GPIO(GPIO_FN_FSIOASD, FSIOASD_MARK), | ||
1604 | PINMUX_GPIO(GPIO_FN_FSIIABCK, FSIIABCK_MARK), | ||
1605 | PINMUX_GPIO(GPIO_FN_FSIIALRCK, FSIIALRCK_MARK), | ||
1606 | PINMUX_GPIO(GPIO_FN_FSIOABCK, FSIOABCK_MARK), | ||
1607 | PINMUX_GPIO(GPIO_FN_FSIOALRCK, FSIOALRCK_MARK), | ||
1608 | PINMUX_GPIO(GPIO_FN_CLKAUDIOAO, CLKAUDIOAO_MARK), | ||
1609 | PINMUX_GPIO(GPIO_FN_FSIIBSD, FSIIBSD_MARK), | ||
1610 | PINMUX_GPIO(GPIO_FN_FSIOBSD, FSIOBSD_MARK), | ||
1611 | PINMUX_GPIO(GPIO_FN_FSIIBBCK, FSIIBBCK_MARK), | ||
1612 | PINMUX_GPIO(GPIO_FN_FSIIBLRCK, FSIIBLRCK_MARK), | ||
1613 | PINMUX_GPIO(GPIO_FN_FSIOBBCK, FSIOBBCK_MARK), | ||
1614 | PINMUX_GPIO(GPIO_FN_FSIOBLRCK, FSIOBLRCK_MARK), | ||
1615 | PINMUX_GPIO(GPIO_FN_CLKAUDIOBO, CLKAUDIOBO_MARK), | ||
1616 | PINMUX_GPIO(GPIO_FN_FSIIASD, FSIIASD_MARK), | ||
1617 | |||
1618 | /* AUD */ | ||
1619 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
1620 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1621 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1622 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1623 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1624 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1625 | |||
1626 | /* VIO */ | ||
1627 | PINMUX_GPIO(GPIO_FN_VIO_CKO, VIO_CKO_MARK), | ||
1628 | |||
1629 | /* VIO0 */ | ||
1630 | PINMUX_GPIO(GPIO_FN_VIO0_D15, VIO0_D15_MARK), | ||
1631 | PINMUX_GPIO(GPIO_FN_VIO0_D14, VIO0_D14_MARK), | ||
1632 | PINMUX_GPIO(GPIO_FN_VIO0_D13, VIO0_D13_MARK), | ||
1633 | PINMUX_GPIO(GPIO_FN_VIO0_D12, VIO0_D12_MARK), | ||
1634 | PINMUX_GPIO(GPIO_FN_VIO0_D11, VIO0_D11_MARK), | ||
1635 | PINMUX_GPIO(GPIO_FN_VIO0_D10, VIO0_D10_MARK), | ||
1636 | PINMUX_GPIO(GPIO_FN_VIO0_D9, VIO0_D9_MARK), | ||
1637 | PINMUX_GPIO(GPIO_FN_VIO0_D8, VIO0_D8_MARK), | ||
1638 | PINMUX_GPIO(GPIO_FN_VIO0_D7, VIO0_D7_MARK), | ||
1639 | PINMUX_GPIO(GPIO_FN_VIO0_D6, VIO0_D6_MARK), | ||
1640 | PINMUX_GPIO(GPIO_FN_VIO0_D5, VIO0_D5_MARK), | ||
1641 | PINMUX_GPIO(GPIO_FN_VIO0_D4, VIO0_D4_MARK), | ||
1642 | PINMUX_GPIO(GPIO_FN_VIO0_D3, VIO0_D3_MARK), | ||
1643 | PINMUX_GPIO(GPIO_FN_VIO0_D2, VIO0_D2_MARK), | ||
1644 | PINMUX_GPIO(GPIO_FN_VIO0_D1, VIO0_D1_MARK), | ||
1645 | PINMUX_GPIO(GPIO_FN_VIO0_D0, VIO0_D0_MARK), | ||
1646 | PINMUX_GPIO(GPIO_FN_VIO0_VD, VIO0_VD_MARK), | ||
1647 | PINMUX_GPIO(GPIO_FN_VIO0_CLK, VIO0_CLK_MARK), | ||
1648 | PINMUX_GPIO(GPIO_FN_VIO0_FLD, VIO0_FLD_MARK), | ||
1649 | PINMUX_GPIO(GPIO_FN_VIO0_HD, VIO0_HD_MARK), | ||
1650 | |||
1651 | /* VIO1 */ | ||
1652 | PINMUX_GPIO(GPIO_FN_VIO1_D7, VIO1_D7_MARK), | ||
1653 | PINMUX_GPIO(GPIO_FN_VIO1_D6, VIO1_D6_MARK), | ||
1654 | PINMUX_GPIO(GPIO_FN_VIO1_D5, VIO1_D5_MARK), | ||
1655 | PINMUX_GPIO(GPIO_FN_VIO1_D4, VIO1_D4_MARK), | ||
1656 | PINMUX_GPIO(GPIO_FN_VIO1_D3, VIO1_D3_MARK), | ||
1657 | PINMUX_GPIO(GPIO_FN_VIO1_D2, VIO1_D2_MARK), | ||
1658 | PINMUX_GPIO(GPIO_FN_VIO1_D1, VIO1_D1_MARK), | ||
1659 | PINMUX_GPIO(GPIO_FN_VIO1_D0, VIO1_D0_MARK), | ||
1660 | PINMUX_GPIO(GPIO_FN_VIO1_FLD, VIO1_FLD_MARK), | ||
1661 | PINMUX_GPIO(GPIO_FN_VIO1_HD, VIO1_HD_MARK), | ||
1662 | PINMUX_GPIO(GPIO_FN_VIO1_VD, VIO1_VD_MARK), | ||
1663 | PINMUX_GPIO(GPIO_FN_VIO1_CLK, VIO1_CLK_MARK), | ||
1664 | |||
1665 | /* Eth */ | ||
1666 | PINMUX_GPIO(GPIO_FN_RMII_RXD0, RMII_RXD0_MARK), | ||
1667 | PINMUX_GPIO(GPIO_FN_RMII_RXD1, RMII_RXD1_MARK), | ||
1668 | PINMUX_GPIO(GPIO_FN_RMII_TXD0, RMII_TXD0_MARK), | ||
1669 | PINMUX_GPIO(GPIO_FN_RMII_TXD1, RMII_TXD1_MARK), | ||
1670 | PINMUX_GPIO(GPIO_FN_RMII_REF_CLK, RMII_REF_CLK_MARK), | ||
1671 | PINMUX_GPIO(GPIO_FN_RMII_TX_EN, RMII_TX_EN_MARK), | ||
1672 | PINMUX_GPIO(GPIO_FN_RMII_RX_ER, RMII_RX_ER_MARK), | ||
1673 | PINMUX_GPIO(GPIO_FN_RMII_CRS_DV, RMII_CRS_DV_MARK), | ||
1674 | PINMUX_GPIO(GPIO_FN_LNKSTA, LNKSTA_MARK), | ||
1675 | PINMUX_GPIO(GPIO_FN_MDIO, MDIO_MARK), | ||
1676 | PINMUX_GPIO(GPIO_FN_MDC, MDC_MARK), | ||
1677 | |||
1678 | /* System */ | ||
1679 | PINMUX_GPIO(GPIO_FN_PDSTATUS, PDSTATUS_MARK), | ||
1680 | PINMUX_GPIO(GPIO_FN_STATUS2, STATUS2_MARK), | ||
1681 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1682 | |||
1683 | /* VOU */ | ||
1684 | PINMUX_GPIO(GPIO_FN_DV_D15, DV_D15_MARK), | ||
1685 | PINMUX_GPIO(GPIO_FN_DV_D14, DV_D14_MARK), | ||
1686 | PINMUX_GPIO(GPIO_FN_DV_D13, DV_D13_MARK), | ||
1687 | PINMUX_GPIO(GPIO_FN_DV_D12, DV_D12_MARK), | ||
1688 | PINMUX_GPIO(GPIO_FN_DV_D11, DV_D11_MARK), | ||
1689 | PINMUX_GPIO(GPIO_FN_DV_D10, DV_D10_MARK), | ||
1690 | PINMUX_GPIO(GPIO_FN_DV_D9, DV_D9_MARK), | ||
1691 | PINMUX_GPIO(GPIO_FN_DV_D8, DV_D8_MARK), | ||
1692 | PINMUX_GPIO(GPIO_FN_DV_D7, DV_D7_MARK), | ||
1693 | PINMUX_GPIO(GPIO_FN_DV_D6, DV_D6_MARK), | ||
1694 | PINMUX_GPIO(GPIO_FN_DV_D5, DV_D5_MARK), | ||
1695 | PINMUX_GPIO(GPIO_FN_DV_D4, DV_D4_MARK), | ||
1696 | PINMUX_GPIO(GPIO_FN_DV_D3, DV_D3_MARK), | ||
1697 | PINMUX_GPIO(GPIO_FN_DV_D2, DV_D2_MARK), | ||
1698 | PINMUX_GPIO(GPIO_FN_DV_D1, DV_D1_MARK), | ||
1699 | PINMUX_GPIO(GPIO_FN_DV_D0, DV_D0_MARK), | ||
1700 | PINMUX_GPIO(GPIO_FN_DV_CLKI, DV_CLKI_MARK), | ||
1701 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1702 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1703 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1704 | |||
1705 | /* MSIOF0 */ | ||
1706 | PINMUX_GPIO(GPIO_FN_MSIOF0_RXD, MSIOF0_RXD_MARK), | ||
1707 | PINMUX_GPIO(GPIO_FN_MSIOF0_TXD, MSIOF0_TXD_MARK), | ||
1708 | PINMUX_GPIO(GPIO_FN_MSIOF0_MCK, MSIOF0_MCK_MARK), | ||
1709 | PINMUX_GPIO(GPIO_FN_MSIOF0_TSCK, MSIOF0_TSCK_MARK), | ||
1710 | PINMUX_GPIO(GPIO_FN_MSIOF0_SS1, MSIOF0_SS1_MARK), | ||
1711 | PINMUX_GPIO(GPIO_FN_MSIOF0_SS2, MSIOF0_SS2_MARK), | ||
1712 | PINMUX_GPIO(GPIO_FN_MSIOF0_TSYNC, MSIOF0_TSYNC_MARK), | ||
1713 | PINMUX_GPIO(GPIO_FN_MSIOF0_RSCK, MSIOF0_RSCK_MARK), | ||
1714 | PINMUX_GPIO(GPIO_FN_MSIOF0_RSYNC, MSIOF0_RSYNC_MARK), | ||
1715 | |||
1716 | /* MSIOF1 */ | ||
1717 | PINMUX_GPIO(GPIO_FN_MSIOF1_RXD, MSIOF1_RXD_MARK), | ||
1718 | PINMUX_GPIO(GPIO_FN_MSIOF1_TXD, MSIOF1_TXD_MARK), | ||
1719 | PINMUX_GPIO(GPIO_FN_MSIOF1_MCK, MSIOF1_MCK_MARK), | ||
1720 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSCK, MSIOF1_TSCK_MARK), | ||
1721 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS1, MSIOF1_SS1_MARK), | ||
1722 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS2, MSIOF1_SS2_MARK), | ||
1723 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSYNC, MSIOF1_TSYNC_MARK), | ||
1724 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSCK, MSIOF1_RSCK_MARK), | ||
1725 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSYNC, MSIOF1_RSYNC_MARK), | ||
1726 | |||
1727 | /* DMAC */ | ||
1728 | PINMUX_GPIO(GPIO_FN_DMAC_DACK0, DMAC_DACK0_MARK), | ||
1729 | PINMUX_GPIO(GPIO_FN_DMAC_DREQ0, DMAC_DREQ0_MARK), | ||
1730 | PINMUX_GPIO(GPIO_FN_DMAC_DACK1, DMAC_DACK1_MARK), | ||
1731 | PINMUX_GPIO(GPIO_FN_DMAC_DREQ1, DMAC_DREQ1_MARK), | ||
1732 | |||
1733 | /* SDHI0 */ | ||
1734 | PINMUX_GPIO(GPIO_FN_SDHI0CD, SDHI0CD_MARK), | ||
1735 | PINMUX_GPIO(GPIO_FN_SDHI0WP, SDHI0WP_MARK), | ||
1736 | PINMUX_GPIO(GPIO_FN_SDHI0CMD, SDHI0CMD_MARK), | ||
1737 | PINMUX_GPIO(GPIO_FN_SDHI0CLK, SDHI0CLK_MARK), | ||
1738 | PINMUX_GPIO(GPIO_FN_SDHI0D3, SDHI0D3_MARK), | ||
1739 | PINMUX_GPIO(GPIO_FN_SDHI0D2, SDHI0D2_MARK), | ||
1740 | PINMUX_GPIO(GPIO_FN_SDHI0D1, SDHI0D1_MARK), | ||
1741 | PINMUX_GPIO(GPIO_FN_SDHI0D0, SDHI0D0_MARK), | ||
1742 | |||
1743 | /* SDHI1 */ | ||
1744 | PINMUX_GPIO(GPIO_FN_SDHI1CD, SDHI1CD_MARK), | ||
1745 | PINMUX_GPIO(GPIO_FN_SDHI1WP, SDHI1WP_MARK), | ||
1746 | PINMUX_GPIO(GPIO_FN_SDHI1CMD, SDHI1CMD_MARK), | ||
1747 | PINMUX_GPIO(GPIO_FN_SDHI1CLK, SDHI1CLK_MARK), | ||
1748 | PINMUX_GPIO(GPIO_FN_SDHI1D3, SDHI1D3_MARK), | ||
1749 | PINMUX_GPIO(GPIO_FN_SDHI1D2, SDHI1D2_MARK), | ||
1750 | PINMUX_GPIO(GPIO_FN_SDHI1D1, SDHI1D1_MARK), | ||
1751 | PINMUX_GPIO(GPIO_FN_SDHI1D0, SDHI1D0_MARK), | ||
1752 | |||
1753 | /* MMC */ | ||
1754 | PINMUX_GPIO(GPIO_FN_MMC_D7, MMC_D7_MARK), | ||
1755 | PINMUX_GPIO(GPIO_FN_MMC_D6, MMC_D6_MARK), | ||
1756 | PINMUX_GPIO(GPIO_FN_MMC_D5, MMC_D5_MARK), | ||
1757 | PINMUX_GPIO(GPIO_FN_MMC_D4, MMC_D4_MARK), | ||
1758 | PINMUX_GPIO(GPIO_FN_MMC_D3, MMC_D3_MARK), | ||
1759 | PINMUX_GPIO(GPIO_FN_MMC_D2, MMC_D2_MARK), | ||
1760 | PINMUX_GPIO(GPIO_FN_MMC_D1, MMC_D1_MARK), | ||
1761 | PINMUX_GPIO(GPIO_FN_MMC_D0, MMC_D0_MARK), | ||
1762 | PINMUX_GPIO(GPIO_FN_MMC_CLK, MMC_CLK_MARK), | ||
1763 | PINMUX_GPIO(GPIO_FN_MMC_CMD, MMC_CMD_MARK), | ||
1764 | |||
1765 | /* IrDA */ | ||
1766 | PINMUX_GPIO(GPIO_FN_IRDA_OUT, IRDA_OUT_MARK), | ||
1767 | PINMUX_GPIO(GPIO_FN_IRDA_IN, IRDA_IN_MARK), | ||
1768 | |||
1769 | /* TSIF */ | ||
1770 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SDAT, TSIF_TS0_SDAT_MARK), | ||
1771 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SCK, TSIF_TS0_SCK_MARK), | ||
1772 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SDEN, TSIF_TS0_SDEN_MARK), | ||
1773 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SPSYNC, TSIF_TS0_SPSYNC_MARK), | ||
1774 | |||
1775 | /* IRQ */ | ||
1776 | PINMUX_GPIO(GPIO_FN_INTC_IRQ7, INTC_IRQ7_MARK), | ||
1777 | PINMUX_GPIO(GPIO_FN_INTC_IRQ6, INTC_IRQ6_MARK), | ||
1778 | PINMUX_GPIO(GPIO_FN_INTC_IRQ5, INTC_IRQ5_MARK), | ||
1779 | PINMUX_GPIO(GPIO_FN_INTC_IRQ4, INTC_IRQ4_MARK), | ||
1780 | PINMUX_GPIO(GPIO_FN_INTC_IRQ3, INTC_IRQ3_MARK), | ||
1781 | PINMUX_GPIO(GPIO_FN_INTC_IRQ2, INTC_IRQ2_MARK), | ||
1782 | PINMUX_GPIO(GPIO_FN_INTC_IRQ1, INTC_IRQ1_MARK), | ||
1783 | PINMUX_GPIO(GPIO_FN_INTC_IRQ0, INTC_IRQ0_MARK), | ||
1784 | }; | ||
1785 | |||
1786 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1787 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
1788 | PTA7_FN, PTA7_OUT, PTA7_IN_PU, PTA7_IN, | ||
1789 | PTA6_FN, PTA6_OUT, PTA6_IN_PU, PTA6_IN, | ||
1790 | PTA5_FN, PTA5_OUT, PTA5_IN_PU, PTA5_IN, | ||
1791 | PTA4_FN, PTA4_OUT, PTA4_IN_PU, PTA4_IN, | ||
1792 | PTA3_FN, PTA3_OUT, PTA3_IN_PU, PTA3_IN, | ||
1793 | PTA2_FN, PTA2_OUT, PTA2_IN_PU, PTA2_IN, | ||
1794 | PTA1_FN, PTA1_OUT, PTA1_IN_PU, PTA1_IN, | ||
1795 | PTA0_FN, PTA0_OUT, PTA0_IN_PU, PTA0_IN } | ||
1796 | }, | ||
1797 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
1798 | PTB7_FN, PTB7_OUT, PTB7_IN_PU, PTB7_IN, | ||
1799 | PTB6_FN, PTB6_OUT, PTB6_IN_PU, PTB6_IN, | ||
1800 | PTB5_FN, PTB5_OUT, PTB5_IN_PU, PTB5_IN, | ||
1801 | PTB4_FN, PTB4_OUT, PTB4_IN_PU, PTB4_IN, | ||
1802 | PTB3_FN, PTB3_OUT, PTB3_IN_PU, PTB3_IN, | ||
1803 | PTB2_FN, PTB2_OUT, PTB2_IN_PU, PTB2_IN, | ||
1804 | PTB1_FN, PTB1_OUT, PTB1_IN_PU, PTB1_IN, | ||
1805 | PTB0_FN, PTB0_OUT, PTB0_IN_PU, PTB0_IN } | ||
1806 | }, | ||
1807 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
1808 | PTC7_FN, PTC7_OUT, PTC7_IN_PU, PTC7_IN, | ||
1809 | PTC6_FN, PTC6_OUT, PTC6_IN_PU, PTC6_IN, | ||
1810 | PTC5_FN, PTC5_OUT, PTC5_IN_PU, PTC5_IN, | ||
1811 | PTC4_FN, PTC4_OUT, PTC4_IN_PU, PTC4_IN, | ||
1812 | PTC3_FN, PTC3_OUT, PTC3_IN_PU, PTC3_IN, | ||
1813 | PTC2_FN, PTC2_OUT, PTC2_IN_PU, PTC2_IN, | ||
1814 | PTC1_FN, PTC1_OUT, PTC1_IN_PU, PTC1_IN, | ||
1815 | PTC0_FN, PTC0_OUT, PTC0_IN_PU, PTC0_IN } | ||
1816 | }, | ||
1817 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
1818 | PTD7_FN, PTD7_OUT, PTD7_IN_PU, PTD7_IN, | ||
1819 | PTD6_FN, PTD6_OUT, PTD6_IN_PU, PTD6_IN, | ||
1820 | PTD5_FN, PTD5_OUT, PTD5_IN_PU, PTD5_IN, | ||
1821 | PTD4_FN, PTD4_OUT, PTD4_IN_PU, PTD4_IN, | ||
1822 | PTD3_FN, PTD3_OUT, PTD3_IN_PU, PTD3_IN, | ||
1823 | PTD2_FN, PTD2_OUT, PTD2_IN_PU, PTD2_IN, | ||
1824 | PTD1_FN, PTD1_OUT, PTD1_IN_PU, PTD1_IN, | ||
1825 | PTD0_FN, PTD0_OUT, PTD0_IN_PU, PTD0_IN } | ||
1826 | }, | ||
1827 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
1828 | PTE7_FN, PTE7_OUT, PTE7_IN_PU, PTE7_IN, | ||
1829 | PTE6_FN, PTE6_OUT, PTE6_IN_PU, PTE6_IN, | ||
1830 | PTE5_FN, PTE5_OUT, PTE5_IN_PU, PTE5_IN, | ||
1831 | PTE4_FN, PTE4_OUT, PTE4_IN_PU, PTE4_IN, | ||
1832 | PTE3_FN, PTE3_OUT, PTE3_IN_PU, PTE3_IN, | ||
1833 | PTE2_FN, PTE2_OUT, PTE2_IN_PU, PTE2_IN, | ||
1834 | PTE1_FN, PTE1_OUT, PTE1_IN_PU, PTE1_IN, | ||
1835 | PTE0_FN, PTE0_OUT, PTE0_IN_PU, PTE0_IN } | ||
1836 | }, | ||
1837 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1838 | PTF7_FN, PTF7_OUT, PTF7_IN_PU, PTF7_IN, | ||
1839 | PTF6_FN, PTF6_OUT, PTF6_IN_PU, PTF6_IN, | ||
1840 | PTF5_FN, PTF5_OUT, PTF5_IN_PU, PTF5_IN, | ||
1841 | PTF4_FN, PTF4_OUT, PTF4_IN_PU, PTF4_IN, | ||
1842 | PTF3_FN, PTF3_OUT, PTF3_IN_PU, PTF3_IN, | ||
1843 | PTF2_FN, PTF2_OUT, PTF2_IN_PU, PTF2_IN, | ||
1844 | PTF1_FN, PTF1_OUT, PTF1_IN_PU, PTF1_IN, | ||
1845 | PTF0_FN, PTF0_OUT, PTF0_IN_PU, PTF0_IN } | ||
1846 | }, | ||
1847 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1848 | 0, 0, 0, 0, | ||
1849 | 0, 0, 0, 0, | ||
1850 | PTG5_FN, PTG5_OUT, 0, 0, | ||
1851 | PTG4_FN, PTG4_OUT, 0, 0, | ||
1852 | PTG3_FN, PTG3_OUT, 0, 0, | ||
1853 | PTG2_FN, PTG2_OUT, 0, 0, | ||
1854 | PTG1_FN, PTG1_OUT, 0, 0, | ||
1855 | PTG0_FN, PTG0_OUT, 0, 0 } | ||
1856 | }, | ||
1857 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1858 | PTH7_FN, PTH7_OUT, PTH7_IN_PU, PTH7_IN, | ||
1859 | PTH6_FN, PTH6_OUT, PTH6_IN_PU, PTH6_IN, | ||
1860 | PTH5_FN, PTH5_OUT, PTH5_IN_PU, PTH5_IN, | ||
1861 | PTH4_FN, PTH4_OUT, PTH4_IN_PU, PTH4_IN, | ||
1862 | PTH3_FN, PTH3_OUT, PTH3_IN_PU, PTH3_IN, | ||
1863 | PTH2_FN, PTH2_OUT, PTH2_IN_PU, PTH2_IN, | ||
1864 | PTH1_FN, PTH1_OUT, PTH1_IN_PU, PTH1_IN, | ||
1865 | PTH0_FN, PTH0_OUT, PTH0_IN_PU, PTH0_IN } | ||
1866 | }, | ||
1867 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1868 | PTJ7_FN, PTJ7_OUT, 0, 0, | ||
1869 | PTJ6_FN, PTJ6_OUT, 0, 0, | ||
1870 | PTJ5_FN, PTJ5_OUT, 0, 0, | ||
1871 | 0, 0, 0, 0, | ||
1872 | PTJ3_FN, PTJ3_OUT, PTJ3_IN_PU, PTJ3_IN, | ||
1873 | PTJ2_FN, PTJ2_OUT, PTJ2_IN_PU, PTJ2_IN, | ||
1874 | PTJ1_FN, PTJ1_OUT, PTJ1_IN_PU, PTJ1_IN, | ||
1875 | PTJ0_FN, PTJ0_OUT, PTJ0_IN_PU, PTJ0_IN } | ||
1876 | }, | ||
1877 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1878 | PTK7_FN, PTK7_OUT, PTK7_IN_PU, PTK7_IN, | ||
1879 | PTK6_FN, PTK6_OUT, PTK6_IN_PU, PTK6_IN, | ||
1880 | PTK5_FN, PTK5_OUT, PTK5_IN_PU, PTK5_IN, | ||
1881 | PTK4_FN, PTK4_OUT, PTK4_IN_PU, PTK4_IN, | ||
1882 | PTK3_FN, PTK3_OUT, PTK3_IN_PU, PTK3_IN, | ||
1883 | PTK2_FN, PTK2_OUT, PTK2_IN_PU, PTK2_IN, | ||
1884 | PTK1_FN, PTK1_OUT, PTK1_IN_PU, PTK1_IN, | ||
1885 | PTK0_FN, PTK0_OUT, PTK0_IN_PU, PTK0_IN } | ||
1886 | }, | ||
1887 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1888 | PTL7_FN, PTL7_OUT, PTL7_IN_PU, PTL7_IN, | ||
1889 | PTL6_FN, PTL6_OUT, PTL6_IN_PU, PTL6_IN, | ||
1890 | PTL5_FN, PTL5_OUT, PTL5_IN_PU, PTL5_IN, | ||
1891 | PTL4_FN, PTL4_OUT, PTL4_IN_PU, PTL4_IN, | ||
1892 | PTL3_FN, PTL3_OUT, PTL3_IN_PU, PTL3_IN, | ||
1893 | PTL2_FN, PTL2_OUT, PTL2_IN_PU, PTL2_IN, | ||
1894 | PTL1_FN, PTL1_OUT, PTL1_IN_PU, PTL1_IN, | ||
1895 | PTL0_FN, PTL0_OUT, PTL0_IN_PU, PTL0_IN } | ||
1896 | }, | ||
1897 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1898 | PTM7_FN, PTM7_OUT, PTM7_IN_PU, PTM7_IN, | ||
1899 | PTM6_FN, PTM6_OUT, PTM6_IN_PU, PTM6_IN, | ||
1900 | PTM5_FN, PTM5_OUT, PTM5_IN_PU, PTM5_IN, | ||
1901 | PTM4_FN, PTM4_OUT, PTM4_IN_PU, PTM4_IN, | ||
1902 | PTM3_FN, PTM3_OUT, PTM3_IN_PU, PTM3_IN, | ||
1903 | PTM2_FN, PTM2_OUT, PTM2_IN_PU, PTM2_IN, | ||
1904 | PTM1_FN, PTM1_OUT, PTM1_IN_PU, PTM1_IN, | ||
1905 | PTM0_FN, PTM0_OUT, PTM0_IN_PU, PTM0_IN } | ||
1906 | }, | ||
1907 | { PINMUX_CFG_REG("PNCR", 0xa4050118, 16, 2) { | ||
1908 | PTN7_FN, PTN7_OUT, PTN7_IN_PU, PTN7_IN, | ||
1909 | PTN6_FN, PTN6_OUT, PTN6_IN_PU, PTN6_IN, | ||
1910 | PTN5_FN, PTN5_OUT, PTN5_IN_PU, PTN5_IN, | ||
1911 | PTN4_FN, PTN4_OUT, PTN4_IN_PU, PTN4_IN, | ||
1912 | PTN3_FN, PTN3_OUT, PTN3_IN_PU, PTN3_IN, | ||
1913 | PTN2_FN, PTN2_OUT, PTN2_IN_PU, PTN2_IN, | ||
1914 | PTN1_FN, PTN1_OUT, PTN1_IN_PU, PTN1_IN, | ||
1915 | PTN0_FN, PTN0_OUT, PTN0_IN_PU, PTN0_IN } | ||
1916 | }, | ||
1917 | { PINMUX_CFG_REG("PQCR", 0xa405011a, 16, 2) { | ||
1918 | PTQ7_FN, PTQ7_OUT, PTQ7_IN_PU, PTQ7_IN, | ||
1919 | PTQ6_FN, PTQ6_OUT, PTQ6_IN_PU, PTQ6_IN, | ||
1920 | PTQ5_FN, PTQ5_OUT, PTQ5_IN_PU, PTQ5_IN, | ||
1921 | PTQ4_FN, PTQ4_OUT, PTQ4_IN_PU, PTQ4_IN, | ||
1922 | PTQ3_FN, PTQ3_OUT, PTQ3_IN_PU, PTQ3_IN, | ||
1923 | PTQ2_FN, PTQ2_OUT, PTQ2_IN_PU, PTQ2_IN, | ||
1924 | PTQ1_FN, PTQ1_OUT, PTQ1_IN_PU, PTQ1_IN, | ||
1925 | PTQ0_FN, PTQ0_OUT, PTQ0_IN_PU, PTQ0_IN } | ||
1926 | }, | ||
1927 | { PINMUX_CFG_REG("PRCR", 0xa405011c, 16, 2) { | ||
1928 | PTR7_FN, PTR7_OUT, PTR7_IN_PU, PTR7_IN, | ||
1929 | PTR6_FN, PTR6_OUT, PTR6_IN_PU, PTR6_IN, | ||
1930 | PTR5_FN, PTR5_OUT, PTR5_IN_PU, PTR5_IN, | ||
1931 | PTR4_FN, PTR4_OUT, PTR4_IN_PU, PTR4_IN, | ||
1932 | PTR3_FN, 0, PTR3_IN_PU, PTR3_IN, | ||
1933 | PTR2_FN, 0, PTR2_IN_PU, PTR2_IN, | ||
1934 | PTR1_FN, PTR1_OUT, PTR1_IN_PU, PTR1_IN, | ||
1935 | PTR0_FN, PTR0_OUT, PTR0_IN_PU, PTR0_IN } | ||
1936 | }, | ||
1937 | { PINMUX_CFG_REG("PSCR", 0xa405011e, 16, 2) { | ||
1938 | 0, 0, 0, 0, | ||
1939 | PTS6_FN, PTS6_OUT, PTS6_IN_PU, PTS6_IN, | ||
1940 | PTS5_FN, PTS5_OUT, PTS5_IN_PU, PTS5_IN, | ||
1941 | PTS4_FN, PTS4_OUT, PTS4_IN_PU, PTS4_IN, | ||
1942 | PTS3_FN, PTS3_OUT, PTS3_IN_PU, PTS3_IN, | ||
1943 | PTS2_FN, PTS2_OUT, PTS2_IN_PU, PTS2_IN, | ||
1944 | PTS1_FN, PTS1_OUT, PTS1_IN_PU, PTS1_IN, | ||
1945 | PTS0_FN, PTS0_OUT, PTS0_IN_PU, PTS0_IN } | ||
1946 | }, | ||
1947 | { PINMUX_CFG_REG("PTCR", 0xa4050140, 16, 2) { | ||
1948 | PTT7_FN, PTT7_OUT, PTT7_IN_PU, PTT7_IN, | ||
1949 | PTT6_FN, PTT6_OUT, PTT6_IN_PU, PTT6_IN, | ||
1950 | PTT5_FN, PTT5_OUT, PTT5_IN_PU, PTT5_IN, | ||
1951 | PTT4_FN, PTT4_OUT, PTT4_IN_PU, PTT4_IN, | ||
1952 | PTT3_FN, PTT3_OUT, PTT3_IN_PU, PTT3_IN, | ||
1953 | PTT2_FN, PTT2_OUT, PTT2_IN_PU, PTT2_IN, | ||
1954 | PTT1_FN, PTT1_OUT, PTT1_IN_PU, PTT1_IN, | ||
1955 | PTT0_FN, PTT0_OUT, PTT0_IN_PU, PTT0_IN } | ||
1956 | }, | ||
1957 | { PINMUX_CFG_REG("PUCR", 0xa4050142, 16, 2) { | ||
1958 | PTU7_FN, PTU7_OUT, PTU7_IN_PU, PTU7_IN, | ||
1959 | PTU6_FN, PTU6_OUT, PTU6_IN_PU, PTU6_IN, | ||
1960 | PTU5_FN, PTU5_OUT, PTU5_IN_PU, PTU5_IN, | ||
1961 | PTU4_FN, PTU4_OUT, PTU4_IN_PU, PTU4_IN, | ||
1962 | PTU3_FN, PTU3_OUT, PTU3_IN_PU, PTU3_IN, | ||
1963 | PTU2_FN, PTU2_OUT, PTU2_IN_PU, PTU2_IN, | ||
1964 | PTU1_FN, PTU1_OUT, PTU1_IN_PU, PTU1_IN, | ||
1965 | PTU0_FN, PTU0_OUT, PTU0_IN_PU, PTU0_IN } | ||
1966 | }, | ||
1967 | { PINMUX_CFG_REG("PVCR", 0xa4050144, 16, 2) { | ||
1968 | PTV7_FN, PTV7_OUT, PTV7_IN_PU, PTV7_IN, | ||
1969 | PTV6_FN, PTV6_OUT, PTV6_IN_PU, PTV6_IN, | ||
1970 | PTV5_FN, PTV5_OUT, PTV5_IN_PU, PTV5_IN, | ||
1971 | PTV4_FN, PTV4_OUT, PTV4_IN_PU, PTV4_IN, | ||
1972 | PTV3_FN, PTV3_OUT, PTV3_IN_PU, PTV3_IN, | ||
1973 | PTV2_FN, PTV2_OUT, PTV2_IN_PU, PTV2_IN, | ||
1974 | PTV1_FN, PTV1_OUT, PTV1_IN_PU, PTV1_IN, | ||
1975 | PTV0_FN, PTV0_OUT, PTV0_IN_PU, PTV0_IN } | ||
1976 | }, | ||
1977 | { PINMUX_CFG_REG("PWCR", 0xa4050146, 16, 2) { | ||
1978 | PTW7_FN, PTW7_OUT, PTW7_IN_PU, PTW7_IN, | ||
1979 | PTW6_FN, PTW6_OUT, PTW6_IN_PU, PTW6_IN, | ||
1980 | PTW5_FN, PTW5_OUT, PTW5_IN_PU, PTW5_IN, | ||
1981 | PTW4_FN, PTW4_OUT, PTW4_IN_PU, PTW4_IN, | ||
1982 | PTW3_FN, PTW3_OUT, PTW3_IN_PU, PTW3_IN, | ||
1983 | PTW2_FN, PTW2_OUT, PTW2_IN_PU, PTW2_IN, | ||
1984 | PTW1_FN, PTW1_OUT, PTW1_IN_PU, PTW1_IN, | ||
1985 | PTW0_FN, PTW0_OUT, PTW0_IN_PU, PTW0_IN } | ||
1986 | }, | ||
1987 | { PINMUX_CFG_REG("PXCR", 0xa4050148, 16, 2) { | ||
1988 | PTX7_FN, PTX7_OUT, PTX7_IN_PU, PTX7_IN, | ||
1989 | PTX6_FN, PTX6_OUT, PTX6_IN_PU, PTX6_IN, | ||
1990 | PTX5_FN, PTX5_OUT, PTX5_IN_PU, PTX5_IN, | ||
1991 | PTX4_FN, PTX4_OUT, PTX4_IN_PU, PTX4_IN, | ||
1992 | PTX3_FN, PTX3_OUT, PTX3_IN_PU, PTX3_IN, | ||
1993 | PTX2_FN, PTX2_OUT, PTX2_IN_PU, PTX2_IN, | ||
1994 | PTX1_FN, PTX1_OUT, PTX1_IN_PU, PTX1_IN, | ||
1995 | PTX0_FN, PTX0_OUT, PTX0_IN_PU, PTX0_IN } | ||
1996 | }, | ||
1997 | { PINMUX_CFG_REG("PYCR", 0xa405014a, 16, 2) { | ||
1998 | PTY7_FN, PTY7_OUT, PTY7_IN_PU, PTY7_IN, | ||
1999 | PTY6_FN, PTY6_OUT, PTY6_IN_PU, PTY6_IN, | ||
2000 | PTY5_FN, PTY5_OUT, PTY5_IN_PU, PTY5_IN, | ||
2001 | PTY4_FN, PTY4_OUT, PTY4_IN_PU, PTY4_IN, | ||
2002 | PTY3_FN, PTY3_OUT, PTY3_IN_PU, PTY3_IN, | ||
2003 | PTY2_FN, PTY2_OUT, PTY2_IN_PU, PTY2_IN, | ||
2004 | PTY1_FN, PTY1_OUT, PTY1_IN_PU, PTY1_IN, | ||
2005 | PTY0_FN, PTY0_OUT, PTY0_IN_PU, PTY0_IN } | ||
2006 | }, | ||
2007 | { PINMUX_CFG_REG("PZCR", 0xa405014c, 16, 2) { | ||
2008 | PTZ7_FN, PTZ7_OUT, PTZ7_IN_PU, PTZ7_IN, | ||
2009 | PTZ6_FN, PTZ6_OUT, PTZ6_IN_PU, PTZ6_IN, | ||
2010 | PTZ5_FN, PTZ5_OUT, PTZ5_IN_PU, PTZ5_IN, | ||
2011 | PTZ4_FN, PTZ4_OUT, PTZ4_IN_PU, PTZ4_IN, | ||
2012 | PTZ3_FN, PTZ3_OUT, PTZ3_IN_PU, PTZ3_IN, | ||
2013 | PTZ2_FN, PTZ2_OUT, PTZ2_IN_PU, PTZ2_IN, | ||
2014 | PTZ1_FN, PTZ1_OUT, PTZ1_IN_PU, PTZ1_IN, | ||
2015 | PTZ0_FN, PTZ0_OUT, PTZ0_IN_PU, PTZ0_IN } | ||
2016 | }, | ||
2017 | { PINMUX_CFG_REG("PSELA", 0xa405014e, 16, 1) { | ||
2018 | PSA15_0, PSA15_1, | ||
2019 | PSA14_0, PSA14_1, | ||
2020 | PSA13_0, PSA13_1, | ||
2021 | PSA12_0, PSA12_1, | ||
2022 | 0, 0, | ||
2023 | PSA10_0, PSA10_1, | ||
2024 | PSA9_0, PSA9_1, | ||
2025 | PSA8_0, PSA8_1, | ||
2026 | PSA7_0, PSA7_1, | ||
2027 | PSA6_0, PSA6_1, | ||
2028 | PSA5_0, PSA5_1, | ||
2029 | 0, 0, | ||
2030 | PSA3_0, PSA3_1, | ||
2031 | PSA2_0, PSA2_1, | ||
2032 | PSA1_0, PSA1_1, | ||
2033 | PSA0_0, PSA0_1} | ||
2034 | }, | ||
2035 | { PINMUX_CFG_REG("PSELB", 0xa4050150, 16, 1) { | ||
2036 | 0, 0, | ||
2037 | PSB14_0, PSB14_1, | ||
2038 | PSB13_0, PSB13_1, | ||
2039 | PSB12_0, PSB12_1, | ||
2040 | PSB11_0, PSB11_1, | ||
2041 | PSB10_0, PSB10_1, | ||
2042 | PSB9_0, PSB9_1, | ||
2043 | PSB8_0, PSB8_1, | ||
2044 | PSB7_0, PSB7_1, | ||
2045 | PSB6_0, PSB6_1, | ||
2046 | PSB5_0, PSB5_1, | ||
2047 | PSB4_0, PSB4_1, | ||
2048 | PSB3_0, PSB3_1, | ||
2049 | PSB2_0, PSB2_1, | ||
2050 | PSB1_0, PSB1_1, | ||
2051 | PSB0_0, PSB0_1} | ||
2052 | }, | ||
2053 | { PINMUX_CFG_REG("PSELC", 0xa4050152, 16, 1) { | ||
2054 | PSC15_0, PSC15_1, | ||
2055 | PSC14_0, PSC14_1, | ||
2056 | PSC13_0, PSC13_1, | ||
2057 | PSC12_0, PSC12_1, | ||
2058 | PSC11_0, PSC11_1, | ||
2059 | PSC10_0, PSC10_1, | ||
2060 | PSC9_0, PSC9_1, | ||
2061 | PSC8_0, PSC8_1, | ||
2062 | PSC7_0, PSC7_1, | ||
2063 | PSC6_0, PSC6_1, | ||
2064 | PSC5_0, PSC5_1, | ||
2065 | PSC4_0, PSC4_1, | ||
2066 | 0, 0, | ||
2067 | PSC2_0, PSC2_1, | ||
2068 | PSC1_0, PSC1_1, | ||
2069 | PSC0_0, PSC0_1} | ||
2070 | }, | ||
2071 | { PINMUX_CFG_REG("PSELD", 0xa4050154, 16, 1) { | ||
2072 | PSD15_0, PSD15_1, | ||
2073 | PSD14_0, PSD14_1, | ||
2074 | PSD13_0, PSD13_1, | ||
2075 | PSD12_0, PSD12_1, | ||
2076 | PSD11_0, PSD11_1, | ||
2077 | PSD10_0, PSD10_1, | ||
2078 | PSD9_0, PSD9_1, | ||
2079 | PSD8_0, PSD8_1, | ||
2080 | PSD7_0, PSD7_1, | ||
2081 | PSD6_0, PSD6_1, | ||
2082 | PSD5_0, PSD5_1, | ||
2083 | PSD4_0, PSD4_1, | ||
2084 | PSD3_0, PSD3_1, | ||
2085 | PSD2_0, PSD2_1, | ||
2086 | PSD1_0, PSD1_1, | ||
2087 | PSD0_0, PSD0_1} | ||
2088 | }, | ||
2089 | { PINMUX_CFG_REG("PSELE", 0xa4050156, 16, 1) { | ||
2090 | PSE15_0, PSE15_1, | ||
2091 | PSE14_0, PSE14_1, | ||
2092 | PSE13_0, PSE13_1, | ||
2093 | PSE12_0, PSE12_1, | ||
2094 | PSE11_0, PSE11_1, | ||
2095 | PSE10_0, PSE10_1, | ||
2096 | PSE9_0, PSE9_1, | ||
2097 | PSE8_0, PSE8_1, | ||
2098 | PSE7_0, PSE7_1, | ||
2099 | PSE6_0, PSE6_1, | ||
2100 | PSE5_0, PSE5_1, | ||
2101 | PSE4_0, PSE4_1, | ||
2102 | PSE3_0, PSE3_1, | ||
2103 | PSE2_0, PSE2_1, | ||
2104 | PSE1_0, PSE1_1, | ||
2105 | PSE0_0, PSE0_1} | ||
2106 | }, | ||
2107 | {} | ||
2108 | }; | ||
2109 | |||
2110 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2111 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { | ||
2112 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
2113 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
2114 | }, | ||
2115 | { PINMUX_DATA_REG("PBDR", 0xa4050122, 8) { | ||
2116 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
2117 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
2118 | }, | ||
2119 | { PINMUX_DATA_REG("PCDR", 0xa4050124, 8) { | ||
2120 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
2121 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
2122 | }, | ||
2123 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
2124 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
2125 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
2126 | }, | ||
2127 | { PINMUX_DATA_REG("PEDR", 0xa4050128, 8) { | ||
2128 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
2129 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
2130 | }, | ||
2131 | { PINMUX_DATA_REG("PFDR", 0xa405012a, 8) { | ||
2132 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
2133 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
2134 | }, | ||
2135 | { PINMUX_DATA_REG("PGDR", 0xa405012c, 8) { | ||
2136 | 0, 0, PTG5_DATA, PTG4_DATA, | ||
2137 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
2138 | }, | ||
2139 | { PINMUX_DATA_REG("PHDR", 0xa405012e, 8) { | ||
2140 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
2141 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
2142 | }, | ||
2143 | { PINMUX_DATA_REG("PJDR", 0xa4050130, 8) { | ||
2144 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, 0, | ||
2145 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
2146 | }, | ||
2147 | { PINMUX_DATA_REG("PKDR", 0xa4050132, 8) { | ||
2148 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
2149 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
2150 | }, | ||
2151 | { PINMUX_DATA_REG("PLDR", 0xa4050134, 8) { | ||
2152 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
2153 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
2154 | }, | ||
2155 | { PINMUX_DATA_REG("PMDR", 0xa4050136, 8) { | ||
2156 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
2157 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
2158 | }, | ||
2159 | { PINMUX_DATA_REG("PNDR", 0xa4050138, 8) { | ||
2160 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
2161 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
2162 | }, | ||
2163 | { PINMUX_DATA_REG("PQDR", 0xa405013a, 8) { | ||
2164 | PTQ7_DATA, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
2165 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
2166 | }, | ||
2167 | { PINMUX_DATA_REG("PRDR", 0xa405013c, 8) { | ||
2168 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
2169 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
2170 | }, | ||
2171 | { PINMUX_DATA_REG("PSDR", 0xa405013e, 8) { | ||
2172 | 0, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
2173 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
2174 | }, | ||
2175 | { PINMUX_DATA_REG("PTDR", 0xa4050160, 8) { | ||
2176 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
2177 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
2178 | }, | ||
2179 | { PINMUX_DATA_REG("PUDR", 0xa4050162, 8) { | ||
2180 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
2181 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
2182 | }, | ||
2183 | { PINMUX_DATA_REG("PVDR", 0xa4050164, 8) { | ||
2184 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
2185 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
2186 | }, | ||
2187 | { PINMUX_DATA_REG("PWDR", 0xa4050166, 8) { | ||
2188 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
2189 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
2190 | }, | ||
2191 | { PINMUX_DATA_REG("PXDR", 0xa4050168, 8) { | ||
2192 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
2193 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
2194 | }, | ||
2195 | { PINMUX_DATA_REG("PYDR", 0xa405016a, 8) { | ||
2196 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
2197 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
2198 | }, | ||
2199 | { PINMUX_DATA_REG("PZDR", 0xa405016c, 8) { | ||
2200 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
2201 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
2202 | }, | ||
2203 | { }, | ||
2204 | }; | ||
2205 | |||
2206 | struct sh_pfc_soc_info sh7724_pinmux_info = { | ||
2207 | .name = "sh7724_pfc", | ||
2208 | .reserved_id = PINMUX_RESERVED, | ||
2209 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2210 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
2211 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
2212 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
2213 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2214 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2215 | |||
2216 | .first_gpio = GPIO_PTA7, | ||
2217 | .last_gpio = GPIO_FN_INTC_IRQ0, | ||
2218 | |||
2219 | .gpios = pinmux_gpios, | ||
2220 | .cfg_regs = pinmux_config_regs, | ||
2221 | .data_regs = pinmux_data_regs, | ||
2222 | |||
2223 | .gpio_data = pinmux_data, | ||
2224 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2225 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7734.c b/drivers/pinctrl/sh-pfc/pfc-sh7734.c new file mode 100644 index 000000000000..23d76d262c32 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7734.c | |||
@@ -0,0 +1,2475 @@ | |||
1 | /* | ||
2 | * SH7734 processor support - PFC hardware block | ||
3 | * | ||
4 | * Copyright (C) 2012 Renesas Solutions Corp. | ||
5 | * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | ||
6 | * | ||
7 | * This file is subject to the terms and conditions of the GNU General Public | ||
8 | * License. See the file "COPYING" in the main directory of this archive | ||
9 | * for more details. | ||
10 | */ | ||
11 | #include <linux/init.h> | ||
12 | #include <linux/kernel.h> | ||
13 | #include <cpu/sh7734.h> | ||
14 | |||
15 | #include "sh_pfc.h" | ||
16 | |||
17 | #define CPU_32_PORT(fn, pfx, sfx) \ | ||
18 | PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \ | ||
19 | PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \ | ||
20 | PORT_1(fn, pfx##31, sfx) | ||
21 | |||
22 | #define CPU_32_PORT5(fn, pfx, sfx) \ | ||
23 | PORT_1(fn, pfx##0, sfx), PORT_1(fn, pfx##1, sfx), \ | ||
24 | PORT_1(fn, pfx##2, sfx), PORT_1(fn, pfx##3, sfx), \ | ||
25 | PORT_1(fn, pfx##4, sfx), PORT_1(fn, pfx##5, sfx), \ | ||
26 | PORT_1(fn, pfx##6, sfx), PORT_1(fn, pfx##7, sfx), \ | ||
27 | PORT_1(fn, pfx##8, sfx), PORT_1(fn, pfx##9, sfx), \ | ||
28 | PORT_1(fn, pfx##10, sfx), PORT_1(fn, pfx##11, sfx) | ||
29 | |||
30 | /* GPSR0 - GPSR5 */ | ||
31 | #define CPU_ALL_PORT(fn, pfx, sfx) \ | ||
32 | CPU_32_PORT(fn, pfx##_0_, sfx), \ | ||
33 | CPU_32_PORT(fn, pfx##_1_, sfx), \ | ||
34 | CPU_32_PORT(fn, pfx##_2_, sfx), \ | ||
35 | CPU_32_PORT(fn, pfx##_3_, sfx), \ | ||
36 | CPU_32_PORT(fn, pfx##_4_, sfx), \ | ||
37 | CPU_32_PORT5(fn, pfx##_5_, sfx) | ||
38 | |||
39 | #define _GP_GPIO(pfx, sfx) PINMUX_GPIO(GPIO_GP##pfx, GP##pfx##_DATA) | ||
40 | #define _GP_DATA(pfx, sfx) PINMUX_DATA(GP##pfx##_DATA, GP##pfx##_FN, \ | ||
41 | GP##pfx##_IN, GP##pfx##_OUT) | ||
42 | |||
43 | #define _GP_INOUTSEL(pfx, sfx) GP##pfx##_IN, GP##pfx##_OUT | ||
44 | #define _GP_INDT(pfx, sfx) GP##pfx##_DATA | ||
45 | |||
46 | #define GP_ALL(str) CPU_ALL_PORT(_PORT_ALL, GP, str) | ||
47 | #define PINMUX_GPIO_GP_ALL() CPU_ALL_PORT(_GP_GPIO, , unused) | ||
48 | #define PINMUX_DATA_GP_ALL() CPU_ALL_PORT(_GP_DATA, , unused) | ||
49 | |||
50 | #define PORT_10_REV(fn, pfx, sfx) \ | ||
51 | PORT_1(fn, pfx##9, sfx), PORT_1(fn, pfx##8, sfx), \ | ||
52 | PORT_1(fn, pfx##7, sfx), PORT_1(fn, pfx##6, sfx), \ | ||
53 | PORT_1(fn, pfx##5, sfx), PORT_1(fn, pfx##4, sfx), \ | ||
54 | PORT_1(fn, pfx##3, sfx), PORT_1(fn, pfx##2, sfx), \ | ||
55 | PORT_1(fn, pfx##1, sfx), PORT_1(fn, pfx##0, sfx) | ||
56 | |||
57 | #define CPU_32_PORT_REV(fn, pfx, sfx) \ | ||
58 | PORT_1(fn, pfx##31, sfx), PORT_1(fn, pfx##30, sfx), \ | ||
59 | PORT_10_REV(fn, pfx##2, sfx), PORT_10_REV(fn, pfx##1, sfx), \ | ||
60 | PORT_10_REV(fn, pfx, sfx) | ||
61 | |||
62 | #define GP_INOUTSEL(bank) CPU_32_PORT_REV(_GP_INOUTSEL, _##bank##_, unused) | ||
63 | #define GP_INDT(bank) CPU_32_PORT_REV(_GP_INDT, _##bank##_, unused) | ||
64 | |||
65 | #define PINMUX_IPSR_DATA(ipsr, fn) PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##fn) | ||
66 | #define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms) PINMUX_DATA(fn##_MARK, FN_##ms, \ | ||
67 | FN_##ipsr, FN_##fn) | ||
68 | |||
69 | enum { | ||
70 | PINMUX_RESERVED = 0, | ||
71 | |||
72 | PINMUX_DATA_BEGIN, | ||
73 | GP_ALL(DATA), /* GP_0_0_DATA -> GP_5_11_DATA */ | ||
74 | PINMUX_DATA_END, | ||
75 | |||
76 | PINMUX_INPUT_BEGIN, | ||
77 | GP_ALL(IN), /* GP_0_0_IN -> GP_5_11_IN */ | ||
78 | PINMUX_INPUT_END, | ||
79 | |||
80 | PINMUX_OUTPUT_BEGIN, | ||
81 | GP_ALL(OUT), /* GP_0_0_OUT -> GP_5_11_OUT */ | ||
82 | PINMUX_OUTPUT_END, | ||
83 | |||
84 | PINMUX_FUNCTION_BEGIN, | ||
85 | GP_ALL(FN), /* GP_0_0_FN -> GP_5_11_FN */ | ||
86 | |||
87 | /* GPSR0 */ | ||
88 | FN_IP1_9_8, FN_IP1_11_10, FN_IP1_13_12, FN_IP1_15_14, | ||
89 | FN_IP0_7_6, FN_IP0_9_8, FN_IP0_11_10, FN_IP0_13_12, | ||
90 | FN_IP0_15_14, FN_IP0_17_16, FN_IP0_19_18, FN_IP0_21_20, | ||
91 | FN_IP0_23_22, FN_IP0_25_24, FN_IP0_27_26, FN_IP0_29_28, | ||
92 | FN_IP0_31_30, FN_IP1_1_0, FN_IP1_3_2, FN_IP1_5_4, | ||
93 | FN_IP1_7_6, FN_IP11_28, FN_IP0_1_0, FN_IP0_3_2, | ||
94 | FN_IP0_5_4, FN_IP1_17_16, FN_IP1_19_18, FN_IP1_22_20, | ||
95 | FN_IP1_25_23, FN_IP1_28_26, FN_IP1_31_29, FN_IP2_2_0, | ||
96 | |||
97 | /* GPSR1 */ | ||
98 | FN_IP3_20, FN_IP3_29_27, FN_IP11_20_19, FN_IP11_22_21, | ||
99 | FN_IP2_16_14, FN_IP2_19_17, FN_IP2_22_20, FN_IP2_24_23, | ||
100 | FN_IP2_27_25, FN_IP2_30_28, FN_IP3_1_0, FN_CLKOUT, | ||
101 | FN_BS, FN_CS0, FN_IP3_2, FN_EX_CS0, | ||
102 | FN_IP3_5_3, FN_IP3_8_6, FN_IP3_11_9, FN_IP3_14_12, | ||
103 | FN_IP3_17_15, FN_RD, FN_IP3_19_18, FN_WE0, | ||
104 | FN_WE1, FN_IP2_4_3, FN_IP3_23_21, FN_IP3_26_24, | ||
105 | FN_IP2_7_5, FN_IP2_10_8, FN_IP2_13_11, FN_IP11_25_23, | ||
106 | |||
107 | /* GPSR2 */ | ||
108 | FN_IP11_6_4, FN_IP11_9_7, FN_IP11_11_10, FN_IP4_2_0, | ||
109 | FN_IP8_29_28, FN_IP11_27_26, FN_IP8_22_20, FN_IP8_25_23, | ||
110 | FN_IP11_12, FN_IP8_27_26, FN_IP4_5_3, FN_IP4_8_6, | ||
111 | FN_IP4_11_9, FN_IP4_14_12, FN_IP4_17_15, FN_IP4_19_18, | ||
112 | FN_IP4_21_20, FN_IP4_23_22, FN_IP4_25_24, FN_IP4_27_26, | ||
113 | FN_IP4_29_28, FN_IP4_31_30, FN_IP5_2_0, FN_IP5_5_3, | ||
114 | FN_IP5_8_6, FN_IP5_11_9, FN_IP5_14_12, FN_IP5_17_15, | ||
115 | FN_IP5_20_18, FN_IP5_22_21, FN_IP5_24_23, FN_IP5_26_25, | ||
116 | |||
117 | /* GPSR3 */ | ||
118 | FN_IP6_2_0, FN_IP6_5_3, FN_IP6_7_6, FN_IP6_9_8, | ||
119 | FN_IP6_11_10, FN_IP6_13_12, FN_IP6_15_14, FN_IP6_17_16, | ||
120 | FN_IP6_20_18, FN_IP6_23_21, FN_IP7_2_0, FN_IP7_5_3, | ||
121 | FN_IP7_8_6, FN_IP7_11_9, FN_IP7_14_12, FN_IP7_17_15, | ||
122 | FN_IP7_20_18, FN_IP7_23_21, FN_IP7_26_24, FN_IP7_28_27, | ||
123 | FN_IP7_30_29, FN_IP8_1_0, FN_IP8_3_2, FN_IP8_5_4, | ||
124 | FN_IP8_7_6, FN_IP8_9_8, FN_IP8_11_10, FN_IP8_13_12, | ||
125 | FN_IP8_15_14, FN_IP8_17_16, FN_IP8_19_18, FN_IP9_1_0, | ||
126 | |||
127 | /* GPSR4 */ | ||
128 | FN_IP9_19_18, FN_IP9_21_20, FN_IP9_23_22, FN_IP9_25_24, | ||
129 | FN_IP9_11_10, FN_IP9_13_12, FN_IP9_15_14, FN_IP9_17_16, | ||
130 | FN_IP9_3_2, FN_IP9_5_4, FN_IP9_7_6, FN_IP9_9_8, | ||
131 | FN_IP9_27_26, FN_IP9_29_28, FN_IP10_2_0, FN_IP10_5_3, | ||
132 | FN_IP10_8_6, FN_IP10_11_9, FN_IP10_14_12, FN_IP10_15, | ||
133 | FN_IP10_18_16, FN_IP10_21_19, FN_IP11_0, FN_IP11_1, | ||
134 | FN_SCL0, FN_IP11_2, FN_PENC0, FN_IP11_15_13, /* Need check*/ | ||
135 | FN_USB_OVC0, FN_IP11_18_16, | ||
136 | FN_IP10_22, FN_IP10_24_23, | ||
137 | |||
138 | /* GPSR5 */ | ||
139 | FN_IP10_25, FN_IP11_3, FN_IRQ2_B, FN_IRQ3_B, | ||
140 | FN_IP10_27_26, /* 10 */ | ||
141 | FN_IP10_29_28, /* 11 */ | ||
142 | |||
143 | /* IPSR0 */ | ||
144 | FN_A15, FN_ST0_VCO_CLKIN, FN_LCD_DATA15_A, FN_TIOC3D_C, | ||
145 | FN_A14, FN_LCD_DATA14_A, FN_TIOC3C_C, | ||
146 | FN_A13, FN_LCD_DATA13_A, FN_TIOC3B_C, | ||
147 | FN_A12, FN_LCD_DATA12_A, FN_TIOC3A_C, | ||
148 | FN_A11, FN_ST0_D7, FN_LCD_DATA11_A, FN_TIOC2B_C, | ||
149 | FN_A10, FN_ST0_D6, FN_LCD_DATA10_A, FN_TIOC2A_C, | ||
150 | FN_A9, FN_ST0_D5, FN_LCD_DATA9_A, FN_TIOC1B_C, | ||
151 | FN_A8, FN_ST0_D4, FN_LCD_DATA8_A, FN_TIOC1A_C, | ||
152 | FN_A7, FN_ST0_D3, FN_LCD_DATA7_A, FN_TIOC0D_C, | ||
153 | FN_A6, FN_ST0_D2, FN_LCD_DATA6_A, FN_TIOC0C_C, | ||
154 | FN_A5, FN_ST0_D1, FN_LCD_DATA5_A, FN_TIOC0B_C, | ||
155 | FN_A4, FN_ST0_D0, FN_LCD_DATA4_A, FN_TIOC0A_C, | ||
156 | FN_A3, FN_ST0_VLD, FN_LCD_DATA3_A, FN_TCLKD_C, | ||
157 | FN_A2, FN_ST0_SYC, FN_LCD_DATA2_A, FN_TCLKC_C, | ||
158 | FN_A1, FN_ST0_REQ, FN_LCD_DATA1_A, FN_TCLKB_C, | ||
159 | FN_A0, FN_ST0_CLKIN, FN_LCD_DATA0_A, FN_TCLKA_C, | ||
160 | |||
161 | /* IPSR1 */ | ||
162 | FN_D3, FN_SD0_DAT3_A, FN_MMC_D3_A, FN_ST1_D6, FN_FD3_A, | ||
163 | FN_D2, FN_SD0_DAT2_A, FN_MMC_D2_A, FN_ST1_D5, FN_FD2_A, | ||
164 | FN_D1, FN_SD0_DAT1_A, FN_MMC_D1_A, FN_ST1_D4, FN_FD1_A, | ||
165 | FN_D0, FN_SD0_DAT0_A, FN_MMC_D0_A, FN_ST1_D3, FN_FD0_A, | ||
166 | FN_A25, FN_TX2_D, FN_ST1_D2, | ||
167 | FN_A24, FN_RX2_D, FN_ST1_D1, | ||
168 | FN_A23, FN_ST1_D0, FN_LCD_M_DISP_A, | ||
169 | FN_A22, FN_ST1_VLD, FN_LCD_VEPWC_A, | ||
170 | FN_A21, FN_ST1_SYC, FN_LCD_VCPWC_A, | ||
171 | FN_A20, FN_ST1_REQ, FN_LCD_FLM_A, | ||
172 | FN_A19, FN_ST1_CLKIN, FN_LCD_CLK_A, FN_TIOC4D_C, | ||
173 | FN_A18, FN_ST1_PWM, FN_LCD_CL2_A, FN_TIOC4C_C, | ||
174 | FN_A17, FN_ST1_VCO_CLKIN, FN_LCD_CL1_A, FN_TIOC4B_C, | ||
175 | FN_A16, FN_ST0_PWM, FN_LCD_DON_A, FN_TIOC4A_C, | ||
176 | |||
177 | /* IPSR2 */ | ||
178 | FN_D14, FN_TX2_B, FN_FSE_A, FN_ET0_TX_CLK_B, | ||
179 | FN_D13, FN_RX2_B, FN_FRB_A, FN_ET0_ETXD6_B, | ||
180 | FN_D12, FN_FWE_A, FN_ET0_ETXD5_B, | ||
181 | FN_D11, FN_RSPI_MISO_A, FN_QMI_QIO1_A, FN_FRE_A, | ||
182 | FN_ET0_ETXD3_B, | ||
183 | FN_D10, FN_RSPI_MOSI_A, FN_QMO_QIO0_A, FN_FALE_A, | ||
184 | FN_ET0_ETXD2_B, | ||
185 | FN_D9, FN_SD0_CMD_A, FN_MMC_CMD_A, FN_QIO3_A, FN_FCLE_A, | ||
186 | FN_ET0_ETXD1_B, | ||
187 | FN_D8, FN_SD0_CLK_A, FN_MMC_CLK_A, FN_QIO2_A, FN_FCE_A, | ||
188 | FN_ET0_GTX_CLK_B, | ||
189 | FN_D7, FN_RSPI_SSL_A, FN_MMC_D7_A, FN_QSSL_A, FN_FD7_A, | ||
190 | FN_D6, FN_RSPI_RSPCK_A, FN_MMC_D6_A, FN_QSPCLK_A, FN_FD6_A, | ||
191 | FN_D5, FN_SD0_WP_A, FN_MMC_D5_A, FN_FD5_A, | ||
192 | FN_D4, FN_SD0_CD_A, FN_MMC_D4_A, FN_ST1_D7, FN_FD4_A, | ||
193 | |||
194 | /* IPSR3 */ | ||
195 | FN_DRACK0, FN_SD1_DAT2_A, FN_ATAG, FN_TCLK1_A, FN_ET0_ETXD7, | ||
196 | FN_EX_WAIT2, FN_SD1_DAT1_A, FN_DACK2, FN_CAN1_RX_C, | ||
197 | FN_ET0_MAGIC_C, FN_ET0_ETXD6_A, | ||
198 | FN_EX_WAIT1, FN_SD1_DAT0_A, FN_DREQ2, FN_CAN1_TX_C, | ||
199 | FN_ET0_LINK_C, FN_ET0_ETXD5_A, | ||
200 | FN_EX_WAIT0, FN_TCLK1_B, | ||
201 | FN_RD_WR, FN_TCLK0, FN_CAN_CLK_B, FN_ET0_ETXD4, | ||
202 | FN_EX_CS5, FN_SD1_CMD_A, FN_ATADIR, FN_QSSL_B, FN_ET0_ETXD3_A, | ||
203 | FN_EX_CS4, FN_SD1_WP_A, FN_ATAWR, FN_QMI_QIO1_B, FN_ET0_ETXD2_A, | ||
204 | FN_EX_CS3, FN_SD1_CD_A, FN_ATARD, FN_QMO_QIO0_B, FN_ET0_ETXD1_A, | ||
205 | FN_EX_CS2, FN_TX3_B, FN_ATACS1, FN_QSPCLK_B, FN_ET0_GTX_CLK_A, | ||
206 | FN_EX_CS1, FN_RX3_B, FN_ATACS0, FN_QIO2_B, FN_ET0_ETXD0, | ||
207 | FN_CS1_A26, FN_QIO3_B, | ||
208 | FN_D15, FN_SCK2_B, | ||
209 | |||
210 | /* IPSR4 */ | ||
211 | FN_SCK2_A, FN_VI0_G3, | ||
212 | FN_RTS1_B, FN_VI0_G2, | ||
213 | FN_CTS1_B, FN_VI0_DATA7_VI0_G1, | ||
214 | FN_TX1_B, FN_VI0_DATA6_VI0_G0, FN_ET0_PHY_INT_A, | ||
215 | FN_RX1_B, FN_VI0_DATA5_VI0_B5, FN_ET0_MAGIC_A, | ||
216 | FN_SCK1_B, FN_VI0_DATA4_VI0_B4, FN_ET0_LINK_A, | ||
217 | FN_RTS0_B, FN_VI0_DATA3_VI0_B3, FN_ET0_MDIO_A, | ||
218 | FN_CTS0_B, FN_VI0_DATA2_VI0_B2, FN_RMII0_MDIO_A, FN_ET0_MDC, | ||
219 | FN_HTX0_A, FN_TX1_A, FN_VI0_DATA1_VI0_B1, FN_RMII0_MDC_A, FN_ET0_COL, | ||
220 | FN_HRX0_A, FN_RX1_A, FN_VI0_DATA0_VI0_B0, FN_RMII0_CRS_DV_A, FN_ET0_CRS, | ||
221 | FN_HSCK0_A, FN_SCK1_A, FN_VI0_VSYNC, FN_RMII0_RX_ER_A, FN_ET0_RX_ER, | ||
222 | FN_HRTS0_A, FN_RTS1_A, FN_VI0_HSYNC, FN_RMII0_TXD_EN_A, FN_ET0_RX_DV, | ||
223 | FN_HCTS0_A, FN_CTS1_A, FN_VI0_FIELD, FN_RMII0_RXD1_A, FN_ET0_ERXD7, | ||
224 | |||
225 | /* IPSR5 */ | ||
226 | FN_SD2_CLK_A, FN_RX2_A, FN_VI0_G4, FN_ET0_RX_CLK_B, | ||
227 | FN_SD2_CMD_A, FN_TX2_A, FN_VI0_G5, FN_ET0_ERXD2_B, | ||
228 | FN_SD2_DAT0_A, FN_RX3_A, FN_VI0_R0, FN_ET0_ERXD3_B, | ||
229 | FN_SD2_DAT1_A, FN_TX3_A, FN_VI0_R1, FN_ET0_MDIO_B, | ||
230 | FN_SD2_DAT2_A, FN_RX4_A, FN_VI0_R2, FN_ET0_LINK_B, | ||
231 | FN_SD2_DAT3_A, FN_TX4_A, FN_VI0_R3, FN_ET0_MAGIC_B, | ||
232 | FN_SD2_CD_A, FN_RX5_A, FN_VI0_R4, FN_ET0_PHY_INT_B, | ||
233 | FN_SD2_WP_A, FN_TX5_A, FN_VI0_R5, | ||
234 | FN_REF125CK, FN_ADTRG, FN_RX5_C, | ||
235 | FN_REF50CK, FN_CTS1_E, FN_HCTS0_D, | ||
236 | |||
237 | /* IPSR6 */ | ||
238 | FN_DU0_DR0, FN_SCIF_CLK_B, FN_HRX0_D, FN_IETX_A, FN_TCLKA_A, FN_HIFD00, | ||
239 | FN_DU0_DR1, FN_SCK0_B, FN_HTX0_D, FN_IERX_A, FN_TCLKB_A, FN_HIFD01, | ||
240 | FN_DU0_DR2, FN_RX0_B, FN_TCLKC_A, FN_HIFD02, | ||
241 | FN_DU0_DR3, FN_TX0_B, FN_TCLKD_A, FN_HIFD03, | ||
242 | FN_DU0_DR4, FN_CTS0_C, FN_TIOC0A_A, FN_HIFD04, | ||
243 | FN_DU0_DR5, FN_RTS0_C, FN_TIOC0B_A, FN_HIFD05, | ||
244 | FN_DU0_DR6, FN_SCK1_C, FN_TIOC0C_A, FN_HIFD06, | ||
245 | FN_DU0_DR7, FN_RX1_C, FN_TIOC0D_A, FN_HIFD07, | ||
246 | FN_DU0_DG0, FN_TX1_C, FN_HSCK0_D, FN_IECLK_A, FN_TIOC1A_A, FN_HIFD08, | ||
247 | FN_DU0_DG1, FN_CTS1_C, FN_HRTS0_D, FN_TIOC1B_A, FN_HIFD09, | ||
248 | |||
249 | /* IPSR7 */ | ||
250 | FN_DU0_DG2, FN_RTS1_C, FN_RMII0_MDC_B, FN_TIOC2A_A, FN_HIFD10, | ||
251 | FN_DU0_DG3, FN_SCK2_C, FN_RMII0_MDIO_B, FN_TIOC2B_A, FN_HIFD11, | ||
252 | FN_DU0_DG4, FN_RX2_C, FN_RMII0_CRS_DV_B, FN_TIOC3A_A, FN_HIFD12, | ||
253 | FN_DU0_DG5, FN_TX2_C, FN_RMII0_RX_ER_B, FN_TIOC3B_A, FN_HIFD13, | ||
254 | FN_DU0_DG6, FN_RX3_C, FN_RMII0_RXD0_B, FN_TIOC3C_A, FN_HIFD14, | ||
255 | FN_DU0_DG7, FN_TX3_C, FN_RMII0_RXD1_B, FN_TIOC3D_A, FN_HIFD15, | ||
256 | FN_DU0_DB0, FN_RX4_C, FN_RMII0_TXD_EN_B, FN_TIOC4A_A, FN_HIFCS, | ||
257 | FN_DU0_DB1, FN_TX4_C, FN_RMII0_TXD0_B, FN_TIOC4B_A, FN_HIFRS, | ||
258 | FN_DU0_DB2, FN_RX5_B, FN_RMII0_TXD1_B, FN_TIOC4C_A, FN_HIFWR, | ||
259 | FN_DU0_DB3, FN_TX5_B, FN_TIOC4D_A, FN_HIFRD, | ||
260 | FN_DU0_DB4, FN_HIFINT, | ||
261 | |||
262 | /* IPSR8 */ | ||
263 | FN_DU0_DB5, FN_HIFDREQ, | ||
264 | FN_DU0_DB6, FN_HIFRDY, | ||
265 | FN_DU0_DB7, FN_SSI_SCK0_B, FN_HIFEBL_B, | ||
266 | FN_DU0_DOTCLKIN, FN_HSPI_CS0_C, FN_SSI_WS0_B, | ||
267 | FN_DU0_DOTCLKOUT, FN_HSPI_CLK0_C, FN_SSI_SDATA0_B, | ||
268 | FN_DU0_EXHSYNC_DU0_HSYNC, FN_HSPI_TX0_C, FN_SSI_SCK1_B, | ||
269 | FN_DU0_EXVSYNC_DU0_VSYNC, FN_HSPI_RX0_C, FN_SSI_WS1_B, | ||
270 | FN_DU0_EXODDF_DU0_ODDF, FN_CAN0_RX_B, FN_HSCK0_B, FN_SSI_SDATA1_B, | ||
271 | FN_DU0_DISP, FN_CAN0_TX_B, FN_HRX0_B, FN_AUDIO_CLKA_B, | ||
272 | FN_DU0_CDE, FN_HTX0_B, FN_AUDIO_CLKB_B, FN_LCD_VCPWC_B, | ||
273 | FN_IRQ0_A, FN_HSPI_TX_B, FN_RX3_E, FN_ET0_ERXD0, | ||
274 | FN_IRQ1_A, FN_HSPI_RX_B, FN_TX3_E, FN_ET0_ERXD1, | ||
275 | FN_IRQ2_A, FN_CTS0_A, FN_HCTS0_B, FN_ET0_ERXD2_A, | ||
276 | FN_IRQ3_A, FN_RTS0_A, FN_HRTS0_B, FN_ET0_ERXD3_A, | ||
277 | |||
278 | /* IPSR9 */ | ||
279 | FN_VI1_CLK_A, FN_FD0_B, FN_LCD_DATA0_B, | ||
280 | FN_VI1_0_A, FN_FD1_B, FN_LCD_DATA1_B, | ||
281 | FN_VI1_1_A, FN_FD2_B, FN_LCD_DATA2_B, | ||
282 | FN_VI1_2_A, FN_FD3_B, FN_LCD_DATA3_B, | ||
283 | FN_VI1_3_A, FN_FD4_B, FN_LCD_DATA4_B, | ||
284 | FN_VI1_4_A, FN_FD5_B, FN_LCD_DATA5_B, | ||
285 | FN_VI1_5_A, FN_FD6_B, FN_LCD_DATA6_B, | ||
286 | FN_VI1_6_A, FN_FD7_B, FN_LCD_DATA7_B, | ||
287 | FN_VI1_7_A, FN_FCE_B, FN_LCD_DATA8_B, | ||
288 | FN_SSI_SCK0_A, FN_TIOC1A_B, FN_LCD_DATA9_B, | ||
289 | FN_SSI_WS0_A, FN_TIOC1B_B, FN_LCD_DATA10_B, | ||
290 | FN_SSI_SDATA0_A, FN_VI1_0_B, FN_TIOC2A_B, FN_LCD_DATA11_B, | ||
291 | FN_SSI_SCK1_A, FN_VI1_1_B, FN_TIOC2B_B, FN_LCD_DATA12_B, | ||
292 | FN_SSI_WS1_A, FN_VI1_2_B, FN_LCD_DATA13_B, | ||
293 | FN_SSI_SDATA1_A, FN_VI1_3_B, FN_LCD_DATA14_B, | ||
294 | |||
295 | /* IPSR10 */ | ||
296 | FN_SSI_SCK23, FN_VI1_4_B, FN_RX1_D, FN_FCLE_B, FN_LCD_DATA15_B, | ||
297 | FN_SSI_WS23, FN_VI1_5_B, FN_TX1_D, FN_HSCK0_C, FN_FALE_B, FN_LCD_DON_B, | ||
298 | FN_SSI_SDATA2, FN_VI1_6_B, FN_HRX0_C, FN_FRE_B, FN_LCD_CL1_B, | ||
299 | FN_SSI_SDATA3, FN_VI1_7_B, FN_HTX0_C, FN_FWE_B, FN_LCD_CL2_B, | ||
300 | FN_AUDIO_CLKA_A, FN_VI1_CLK_B, FN_SCK1_D, FN_IECLK_B, FN_LCD_FLM_B, | ||
301 | FN_AUDIO_CLKB_A, FN_LCD_CLK_B, | ||
302 | FN_AUDIO_CLKC, FN_SCK1_E, FN_HCTS0_C, FN_FRB_B, FN_LCD_VEPWC_B, | ||
303 | FN_AUDIO_CLKOUT, FN_TX1_E, FN_HRTS0_C, FN_FSE_B, FN_LCD_M_DISP_B, | ||
304 | FN_CAN_CLK_A, FN_RX4_D, | ||
305 | FN_CAN0_TX_A, FN_TX4_D, FN_MLB_CLK, | ||
306 | FN_CAN1_RX_A, FN_IRQ1_B, | ||
307 | FN_CAN0_RX_A, FN_IRQ0_B, FN_MLB_SIG, | ||
308 | FN_CAN1_TX_A, FN_TX5_C, FN_MLB_DAT, | ||
309 | |||
310 | /* IPSR11 */ | ||
311 | FN_SCL1, FN_SCIF_CLK_C, | ||
312 | FN_SDA1, FN_RX1_E, | ||
313 | FN_SDA0, FN_HIFEBL_A, | ||
314 | FN_SDSELF, FN_RTS1_E, | ||
315 | FN_SCIF_CLK_A, FN_HSPI_CLK_A, FN_VI0_CLK, FN_RMII0_TXD0_A, FN_ET0_ERXD4, | ||
316 | FN_SCK0_A, FN_HSPI_CS_A, FN_VI0_CLKENB, FN_RMII0_TXD1_A, FN_ET0_ERXD5, | ||
317 | FN_RX0_A, FN_HSPI_RX_A, FN_RMII0_RXD0_A, FN_ET0_ERXD6, | ||
318 | FN_TX0_A, FN_HSPI_TX_A, | ||
319 | FN_PENC1, FN_TX3_D, FN_CAN1_TX_B, FN_TX5_D, FN_IETX_B, | ||
320 | FN_USB_OVC1, FN_RX3_D, FN_CAN1_RX_B, FN_RX5_D, FN_IERX_B, | ||
321 | FN_DREQ0, FN_SD1_CLK_A, FN_ET0_TX_EN, | ||
322 | FN_DACK0, FN_SD1_DAT3_A, FN_ET0_TX_ER, | ||
323 | FN_DREQ1, FN_HSPI_CLK_B, FN_RX4_B, FN_ET0_PHY_INT_C, FN_ET0_TX_CLK_A, | ||
324 | FN_DACK1, FN_HSPI_CS_B, FN_TX4_B, FN_ET0_RX_CLK_A, | ||
325 | FN_PRESETOUT, FN_ST_CLKOUT, | ||
326 | |||
327 | /* MOD_SEL1 */ | ||
328 | FN_SEL_IEBUS_0, FN_SEL_IEBUS_1, | ||
329 | FN_SEL_RQSPI_0, FN_SEL_RQSPI_1, | ||
330 | FN_SEL_VIN1_0, FN_SEL_VIN1_1, | ||
331 | FN_SEL_HIF_0, FN_SEL_HIF_1, | ||
332 | FN_SEL_RSPI_0, FN_SEL_RSPI_1, | ||
333 | FN_SEL_LCDC_0, FN_SEL_LCDC_1, | ||
334 | FN_SEL_ET0_CTL_0, FN_SEL_ET0_CTL_1, FN_SEL_ET0_CTL_2, | ||
335 | FN_SEL_ET0_0, FN_SEL_ET0_1, | ||
336 | FN_SEL_RMII_0, FN_SEL_RMII_1, | ||
337 | FN_SEL_TMU_0, FN_SEL_TMU_1, | ||
338 | FN_SEL_HSPI_0, FN_SEL_HSPI_1, FN_SEL_HSPI_2, | ||
339 | FN_SEL_HSCIF_0, FN_SEL_HSCIF_1, FN_SEL_HSCIF_2, FN_SEL_HSCIF_3, | ||
340 | FN_SEL_RCAN_CLK_0, FN_SEL_RCAN_CLK_1, | ||
341 | FN_SEL_RCAN1_0, FN_SEL_RCAN1_1, FN_SEL_RCAN1_2, | ||
342 | FN_SEL_RCAN0_0, FN_SEL_RCAN0_1, | ||
343 | FN_SEL_SDHI2_0, FN_SEL_SDHI2_1, | ||
344 | FN_SEL_SDHI1_0, FN_SEL_SDHI1_1, | ||
345 | FN_SEL_SDHI0_0, FN_SEL_SDHI0_1, | ||
346 | FN_SEL_SSI1_0, FN_SEL_SSI1_1, | ||
347 | FN_SEL_SSI0_0, FN_SEL_SSI0_1, | ||
348 | FN_SEL_AUDIO_CLKB_0, FN_SEL_AUDIO_CLKB_1, | ||
349 | FN_SEL_AUDIO_CLKA_0, FN_SEL_AUDIO_CLKA_1, | ||
350 | FN_SEL_FLCTL_0, FN_SEL_FLCTL_1, | ||
351 | FN_SEL_MMC_0, FN_SEL_MMC_1, | ||
352 | FN_SEL_INTC_0, FN_SEL_INTC_1, | ||
353 | |||
354 | /* MOD_SEL2 */ | ||
355 | FN_SEL_MTU2_CLK_0, FN_SEL_MTU2_CLK_1, | ||
356 | FN_SEL_MTU2_CH4_0, FN_SEL_MTU2_CH4_1, | ||
357 | FN_SEL_MTU2_CH3_0, FN_SEL_MTU2_CH3_1, | ||
358 | FN_SEL_MTU2_CH2_0, FN_SEL_MTU2_CH2_1, FN_SEL_MTU2_CH2_2, | ||
359 | FN_SEL_MTU2_CH1_0, FN_SEL_MTU2_CH1_1, FN_SEL_MTU2_CH1_2, | ||
360 | FN_SEL_MTU2_CH0_0, FN_SEL_MTU2_CH0_1, | ||
361 | FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, | ||
362 | FN_SEL_SCIF5_2, FN_SEL_SCIF5_3, | ||
363 | FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, | ||
364 | FN_SEL_SCIF4_2, FN_SEL_SCIF4_3, | ||
365 | FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, | ||
366 | FN_SEL_SCIF3_3, FN_SEL_SCIF3_4, | ||
367 | FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, | ||
368 | FN_SEL_SCIF2_3, | ||
369 | FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, | ||
370 | FN_SEL_SCIF1_3, FN_SEL_SCIF1_4, | ||
371 | FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, | ||
372 | FN_SEL_SCIF_CLK_0, FN_SEL_SCIF_CLK_1, FN_SEL_SCIF_CLK_2, | ||
373 | |||
374 | PINMUX_FUNCTION_END, | ||
375 | |||
376 | PINMUX_MARK_BEGIN, | ||
377 | |||
378 | CLKOUT_MARK, BS_MARK, CS0_MARK, EX_CS0_MARK, RD_MARK, | ||
379 | WE0_MARK, WE1_MARK, | ||
380 | |||
381 | SCL0_MARK, PENC0_MARK, USB_OVC0_MARK, | ||
382 | |||
383 | IRQ2_B_MARK, IRQ3_B_MARK, | ||
384 | |||
385 | /* IPSR0 */ | ||
386 | A15_MARK, ST0_VCO_CLKIN_MARK, LCD_DATA15_A_MARK, TIOC3D_C_MARK, | ||
387 | A14_MARK, LCD_DATA14_A_MARK, TIOC3C_C_MARK, | ||
388 | A13_MARK, LCD_DATA13_A_MARK, TIOC3B_C_MARK, | ||
389 | A12_MARK, LCD_DATA12_A_MARK, TIOC3A_C_MARK, | ||
390 | A11_MARK, ST0_D7_MARK, LCD_DATA11_A_MARK, TIOC2B_C_MARK, | ||
391 | A10_MARK, ST0_D6_MARK, LCD_DATA10_A_MARK, TIOC2A_C_MARK, | ||
392 | A9_MARK, ST0_D5_MARK, LCD_DATA9_A_MARK, TIOC1B_C_MARK, | ||
393 | A8_MARK, ST0_D4_MARK, LCD_DATA8_A_MARK, TIOC1A_C_MARK, | ||
394 | A7_MARK, ST0_D3_MARK, LCD_DATA7_A_MARK, TIOC0D_C_MARK, | ||
395 | A6_MARK, ST0_D2_MARK, LCD_DATA6_A_MARK, TIOC0C_C_MARK, | ||
396 | A5_MARK, ST0_D1_MARK, LCD_DATA5_A_MARK, TIOC0B_C_MARK, | ||
397 | A4_MARK, ST0_D0_MARK, LCD_DATA4_A_MARK, TIOC0A_C_MARK, | ||
398 | A3_MARK, ST0_VLD_MARK, LCD_DATA3_A_MARK, TCLKD_C_MARK, | ||
399 | A2_MARK, ST0_SYC_MARK, LCD_DATA2_A_MARK, TCLKC_C_MARK, | ||
400 | A1_MARK, ST0_REQ_MARK, LCD_DATA1_A_MARK, TCLKB_C_MARK, | ||
401 | A0_MARK, ST0_CLKIN_MARK, LCD_DATA0_A_MARK, TCLKA_C_MARK, | ||
402 | |||
403 | /* IPSR1 */ | ||
404 | D3_MARK, SD0_DAT3_A_MARK, MMC_D3_A_MARK, ST1_D6_MARK, FD3_A_MARK, | ||
405 | D2_MARK, SD0_DAT2_A_MARK, MMC_D2_A_MARK, ST1_D5_MARK, FD2_A_MARK, | ||
406 | D1_MARK, SD0_DAT1_A_MARK, MMC_D1_A_MARK, ST1_D4_MARK, FD1_A_MARK, | ||
407 | D0_MARK, SD0_DAT0_A_MARK, MMC_D0_A_MARK, ST1_D3_MARK, FD0_A_MARK, | ||
408 | A25_MARK, TX2_D_MARK, ST1_D2_MARK, | ||
409 | A24_MARK, RX2_D_MARK, ST1_D1_MARK, | ||
410 | A23_MARK, ST1_D0_MARK, LCD_M_DISP_A_MARK, | ||
411 | A22_MARK, ST1_VLD_MARK, LCD_VEPWC_A_MARK, | ||
412 | A21_MARK, ST1_SYC_MARK, LCD_VCPWC_A_MARK, | ||
413 | A20_MARK, ST1_REQ_MARK, LCD_FLM_A_MARK, | ||
414 | A19_MARK, ST1_CLKIN_MARK, LCD_CLK_A_MARK, TIOC4D_C_MARK, | ||
415 | A18_MARK, ST1_PWM_MARK, LCD_CL2_A_MARK, TIOC4C_C_MARK, | ||
416 | A17_MARK, ST1_VCO_CLKIN_MARK, LCD_CL1_A_MARK, TIOC4B_C_MARK, | ||
417 | A16_MARK, ST0_PWM_MARK, LCD_DON_A_MARK, TIOC4A_C_MARK, | ||
418 | |||
419 | /* IPSR2 */ | ||
420 | D14_MARK, TX2_B_MARK, FSE_A_MARK, ET0_TX_CLK_B_MARK, | ||
421 | D13_MARK, RX2_B_MARK, FRB_A_MARK, ET0_ETXD6_B_MARK, | ||
422 | D12_MARK, FWE_A_MARK, ET0_ETXD5_B_MARK, | ||
423 | D11_MARK, RSPI_MISO_A_MARK, QMI_QIO1_A_MARK, FRE_A_MARK, | ||
424 | ET0_ETXD3_B_MARK, | ||
425 | D10_MARK, RSPI_MOSI_A_MARK, QMO_QIO0_A_MARK, FALE_A_MARK, | ||
426 | ET0_ETXD2_B_MARK, | ||
427 | D9_MARK, SD0_CMD_A_MARK, MMC_CMD_A_MARK, QIO3_A_MARK, | ||
428 | FCLE_A_MARK, ET0_ETXD1_B_MARK, | ||
429 | D8_MARK, SD0_CLK_A_MARK, MMC_CLK_A_MARK, QIO2_A_MARK, | ||
430 | FCE_A_MARK, ET0_GTX_CLK_B_MARK, | ||
431 | D7_MARK, RSPI_SSL_A_MARK, MMC_D7_A_MARK, QSSL_A_MARK, | ||
432 | FD7_A_MARK, | ||
433 | D6_MARK, RSPI_RSPCK_A_MARK, MMC_D6_A_MARK, QSPCLK_A_MARK, | ||
434 | FD6_A_MARK, | ||
435 | D5_MARK, SD0_WP_A_MARK, MMC_D5_A_MARK, FD5_A_MARK, | ||
436 | D4_MARK, SD0_CD_A_MARK, MMC_D4_A_MARK, ST1_D7_MARK, | ||
437 | FD4_A_MARK, | ||
438 | |||
439 | /* IPSR3 */ | ||
440 | DRACK0_MARK, SD1_DAT2_A_MARK, ATAG_MARK, TCLK1_A_MARK, ET0_ETXD7_MARK, | ||
441 | EX_WAIT2_MARK, SD1_DAT1_A_MARK, DACK2_MARK, CAN1_RX_C_MARK, | ||
442 | ET0_MAGIC_C_MARK, ET0_ETXD6_A_MARK, | ||
443 | EX_WAIT1_MARK, SD1_DAT0_A_MARK, DREQ2_MARK, CAN1_TX_C_MARK, | ||
444 | ET0_LINK_C_MARK, ET0_ETXD5_A_MARK, | ||
445 | EX_WAIT0_MARK, TCLK1_B_MARK, | ||
446 | RD_WR_MARK, TCLK0_MARK, CAN_CLK_B_MARK, ET0_ETXD4_MARK, | ||
447 | EX_CS5_MARK, SD1_CMD_A_MARK, ATADIR_MARK, QSSL_B_MARK, | ||
448 | ET0_ETXD3_A_MARK, | ||
449 | EX_CS4_MARK, SD1_WP_A_MARK, ATAWR_MARK, QMI_QIO1_B_MARK, | ||
450 | ET0_ETXD2_A_MARK, | ||
451 | EX_CS3_MARK, SD1_CD_A_MARK, ATARD_MARK, QMO_QIO0_B_MARK, | ||
452 | ET0_ETXD1_A_MARK, | ||
453 | EX_CS2_MARK, TX3_B_MARK, ATACS1_MARK, QSPCLK_B_MARK, | ||
454 | ET0_GTX_CLK_A_MARK, | ||
455 | EX_CS1_MARK, RX3_B_MARK, ATACS0_MARK, QIO2_B_MARK, | ||
456 | ET0_ETXD0_MARK, | ||
457 | CS1_A26_MARK, QIO3_B_MARK, | ||
458 | D15_MARK, SCK2_B_MARK, | ||
459 | |||
460 | /* IPSR4 */ | ||
461 | SCK2_A_MARK, VI0_G3_MARK, | ||
462 | RTS1_B_MARK, VI0_G2_MARK, | ||
463 | CTS1_B_MARK, VI0_DATA7_VI0_G1_MARK, | ||
464 | TX1_B_MARK, VI0_DATA6_VI0_G0_MARK, ET0_PHY_INT_A_MARK, | ||
465 | RX1_B_MARK, VI0_DATA5_VI0_B5_MARK, ET0_MAGIC_A_MARK, | ||
466 | SCK1_B_MARK, VI0_DATA4_VI0_B4_MARK, ET0_LINK_A_MARK, | ||
467 | RTS0_B_MARK, VI0_DATA3_VI0_B3_MARK, ET0_MDIO_A_MARK, | ||
468 | CTS0_B_MARK, VI0_DATA2_VI0_B2_MARK, RMII0_MDIO_A_MARK, | ||
469 | ET0_MDC_MARK, | ||
470 | HTX0_A_MARK, TX1_A_MARK, VI0_DATA1_VI0_B1_MARK, | ||
471 | RMII0_MDC_A_MARK, ET0_COL_MARK, | ||
472 | HRX0_A_MARK, RX1_A_MARK, VI0_DATA0_VI0_B0_MARK, | ||
473 | RMII0_CRS_DV_A_MARK, ET0_CRS_MARK, | ||
474 | HSCK0_A_MARK, SCK1_A_MARK, VI0_VSYNC_MARK, | ||
475 | RMII0_RX_ER_A_MARK, ET0_RX_ER_MARK, | ||
476 | HRTS0_A_MARK, RTS1_A_MARK, VI0_HSYNC_MARK, | ||
477 | RMII0_TXD_EN_A_MARK, ET0_RX_DV_MARK, | ||
478 | HCTS0_A_MARK, CTS1_A_MARK, VI0_FIELD_MARK, | ||
479 | RMII0_RXD1_A_MARK, ET0_ERXD7_MARK, | ||
480 | |||
481 | /* IPSR5 */ | ||
482 | SD2_CLK_A_MARK, RX2_A_MARK, VI0_G4_MARK, ET0_RX_CLK_B_MARK, | ||
483 | SD2_CMD_A_MARK, TX2_A_MARK, VI0_G5_MARK, ET0_ERXD2_B_MARK, | ||
484 | SD2_DAT0_A_MARK, RX3_A_MARK, VI0_R0_MARK, ET0_ERXD3_B_MARK, | ||
485 | SD2_DAT1_A_MARK, TX3_A_MARK, VI0_R1_MARK, ET0_MDIO_B_MARK, | ||
486 | SD2_DAT2_A_MARK, RX4_A_MARK, VI0_R2_MARK, ET0_LINK_B_MARK, | ||
487 | SD2_DAT3_A_MARK, TX4_A_MARK, VI0_R3_MARK, ET0_MAGIC_B_MARK, | ||
488 | SD2_CD_A_MARK, RX5_A_MARK, VI0_R4_MARK, ET0_PHY_INT_B_MARK, | ||
489 | SD2_WP_A_MARK, TX5_A_MARK, VI0_R5_MARK, | ||
490 | REF125CK_MARK, ADTRG_MARK, RX5_C_MARK, | ||
491 | REF50CK_MARK, CTS1_E_MARK, HCTS0_D_MARK, | ||
492 | |||
493 | /* IPSR6 */ | ||
494 | DU0_DR0_MARK, SCIF_CLK_B_MARK, HRX0_D_MARK, IETX_A_MARK, | ||
495 | TCLKA_A_MARK, HIFD00_MARK, | ||
496 | DU0_DR1_MARK, SCK0_B_MARK, HTX0_D_MARK, IERX_A_MARK, | ||
497 | TCLKB_A_MARK, HIFD01_MARK, | ||
498 | DU0_DR2_MARK, RX0_B_MARK, TCLKC_A_MARK, HIFD02_MARK, | ||
499 | DU0_DR3_MARK, TX0_B_MARK, TCLKD_A_MARK, HIFD03_MARK, | ||
500 | DU0_DR4_MARK, CTS0_C_MARK, TIOC0A_A_MARK, HIFD04_MARK, | ||
501 | DU0_DR5_MARK, RTS0_C_MARK, TIOC0B_A_MARK, HIFD05_MARK, | ||
502 | DU0_DR6_MARK, SCK1_C_MARK, TIOC0C_A_MARK, HIFD06_MARK, | ||
503 | DU0_DR7_MARK, RX1_C_MARK, TIOC0D_A_MARK, HIFD07_MARK, | ||
504 | DU0_DG0_MARK, TX1_C_MARK, HSCK0_D_MARK, IECLK_A_MARK, | ||
505 | TIOC1A_A_MARK, HIFD08_MARK, | ||
506 | DU0_DG1_MARK, CTS1_C_MARK, HRTS0_D_MARK, TIOC1B_A_MARK, | ||
507 | HIFD09_MARK, | ||
508 | |||
509 | /* IPSR7 */ | ||
510 | DU0_DG2_MARK, RTS1_C_MARK, RMII0_MDC_B_MARK, TIOC2A_A_MARK, | ||
511 | HIFD10_MARK, | ||
512 | DU0_DG3_MARK, SCK2_C_MARK, RMII0_MDIO_B_MARK, TIOC2B_A_MARK, | ||
513 | HIFD11_MARK, | ||
514 | DU0_DG4_MARK, RX2_C_MARK, RMII0_CRS_DV_B_MARK, TIOC3A_A_MARK, | ||
515 | HIFD12_MARK, | ||
516 | DU0_DG5_MARK, TX2_C_MARK, RMII0_RX_ER_B_MARK, TIOC3B_A_MARK, | ||
517 | HIFD13_MARK, | ||
518 | DU0_DG6_MARK, RX3_C_MARK, RMII0_RXD0_B_MARK, TIOC3C_A_MARK, | ||
519 | HIFD14_MARK, | ||
520 | DU0_DG7_MARK, TX3_C_MARK, RMII0_RXD1_B_MARK, TIOC3D_A_MARK, | ||
521 | HIFD15_MARK, | ||
522 | DU0_DB0_MARK, RX4_C_MARK, RMII0_TXD_EN_B_MARK, TIOC4A_A_MARK, | ||
523 | HIFCS_MARK, | ||
524 | DU0_DB1_MARK, TX4_C_MARK, RMII0_TXD0_B_MARK, TIOC4B_A_MARK, | ||
525 | HIFRS_MARK, | ||
526 | DU0_DB2_MARK, RX5_B_MARK, RMII0_TXD1_B_MARK, TIOC4C_A_MARK, | ||
527 | HIFWR_MARK, | ||
528 | DU0_DB3_MARK, TX5_B_MARK, TIOC4D_A_MARK, HIFRD_MARK, | ||
529 | DU0_DB4_MARK, HIFINT_MARK, | ||
530 | |||
531 | /* IPSR8 */ | ||
532 | DU0_DB5_MARK, HIFDREQ_MARK, | ||
533 | DU0_DB6_MARK, HIFRDY_MARK, | ||
534 | DU0_DB7_MARK, SSI_SCK0_B_MARK, HIFEBL_B_MARK, | ||
535 | DU0_DOTCLKIN_MARK, HSPI_CS0_C_MARK, SSI_WS0_B_MARK, | ||
536 | DU0_DOTCLKOUT_MARK, HSPI_CLK0_C_MARK, SSI_SDATA0_B_MARK, | ||
537 | DU0_EXHSYNC_DU0_HSYNC_MARK, HSPI_TX0_C_MARK, SSI_SCK1_B_MARK, | ||
538 | DU0_EXVSYNC_DU0_VSYNC_MARK, HSPI_RX0_C_MARK, SSI_WS1_B_MARK, | ||
539 | DU0_EXODDF_DU0_ODDF_MARK, CAN0_RX_B_MARK, HSCK0_B_MARK, | ||
540 | SSI_SDATA1_B_MARK, | ||
541 | DU0_DISP_MARK, CAN0_TX_B_MARK, HRX0_B_MARK, AUDIO_CLKA_B_MARK, | ||
542 | DU0_CDE_MARK, HTX0_B_MARK, AUDIO_CLKB_B_MARK, LCD_VCPWC_B_MARK, | ||
543 | IRQ0_A_MARK, HSPI_TX_B_MARK, RX3_E_MARK, ET0_ERXD0_MARK, | ||
544 | IRQ1_A_MARK, HSPI_RX_B_MARK, TX3_E_MARK, ET0_ERXD1_MARK, | ||
545 | IRQ2_A_MARK, CTS0_A_MARK, HCTS0_B_MARK, ET0_ERXD2_A_MARK, | ||
546 | IRQ3_A_MARK, RTS0_A_MARK, HRTS0_B_MARK, ET0_ERXD3_A_MARK, | ||
547 | |||
548 | /* IPSR9 */ | ||
549 | VI1_CLK_A_MARK, FD0_B_MARK, LCD_DATA0_B_MARK, | ||
550 | VI1_0_A_MARK, FD1_B_MARK, LCD_DATA1_B_MARK, | ||
551 | VI1_1_A_MARK, FD2_B_MARK, LCD_DATA2_B_MARK, | ||
552 | VI1_2_A_MARK, FD3_B_MARK, LCD_DATA3_B_MARK, | ||
553 | VI1_3_A_MARK, FD4_B_MARK, LCD_DATA4_B_MARK, | ||
554 | VI1_4_A_MARK, FD5_B_MARK, LCD_DATA5_B_MARK, | ||
555 | VI1_5_A_MARK, FD6_B_MARK, LCD_DATA6_B_MARK, | ||
556 | VI1_6_A_MARK, FD7_B_MARK, LCD_DATA7_B_MARK, | ||
557 | VI1_7_A_MARK, FCE_B_MARK, LCD_DATA8_B_MARK, | ||
558 | SSI_SCK0_A_MARK, TIOC1A_B_MARK, LCD_DATA9_B_MARK, | ||
559 | SSI_WS0_A_MARK, TIOC1B_B_MARK, LCD_DATA10_B_MARK, | ||
560 | SSI_SDATA0_A_MARK, VI1_0_B_MARK, TIOC2A_B_MARK, LCD_DATA11_B_MARK, | ||
561 | SSI_SCK1_A_MARK, VI1_1_B_MARK, TIOC2B_B_MARK, LCD_DATA12_B_MARK, | ||
562 | SSI_WS1_A_MARK, VI1_2_B_MARK, LCD_DATA13_B_MARK, | ||
563 | SSI_SDATA1_A_MARK, VI1_3_B_MARK, LCD_DATA14_B_MARK, | ||
564 | |||
565 | /* IPSR10 */ | ||
566 | SSI_SCK23_MARK, VI1_4_B_MARK, RX1_D_MARK, FCLE_B_MARK, | ||
567 | LCD_DATA15_B_MARK, | ||
568 | SSI_WS23_MARK, VI1_5_B_MARK, TX1_D_MARK, HSCK0_C_MARK, | ||
569 | FALE_B_MARK, LCD_DON_B_MARK, | ||
570 | SSI_SDATA2_MARK, VI1_6_B_MARK, HRX0_C_MARK, FRE_B_MARK, | ||
571 | LCD_CL1_B_MARK, | ||
572 | SSI_SDATA3_MARK, VI1_7_B_MARK, HTX0_C_MARK, FWE_B_MARK, | ||
573 | LCD_CL2_B_MARK, | ||
574 | AUDIO_CLKA_A_MARK, VI1_CLK_B_MARK, SCK1_D_MARK, IECLK_B_MARK, | ||
575 | LCD_FLM_B_MARK, | ||
576 | AUDIO_CLKB_A_MARK, LCD_CLK_B_MARK, | ||
577 | AUDIO_CLKC_MARK, SCK1_E_MARK, HCTS0_C_MARK, FRB_B_MARK, | ||
578 | LCD_VEPWC_B_MARK, | ||
579 | AUDIO_CLKOUT_MARK, TX1_E_MARK, HRTS0_C_MARK, FSE_B_MARK, | ||
580 | LCD_M_DISP_B_MARK, | ||
581 | CAN_CLK_A_MARK, RX4_D_MARK, | ||
582 | CAN0_TX_A_MARK, TX4_D_MARK, MLB_CLK_MARK, | ||
583 | CAN1_RX_A_MARK, IRQ1_B_MARK, | ||
584 | CAN0_RX_A_MARK, IRQ0_B_MARK, MLB_SIG_MARK, | ||
585 | CAN1_TX_A_MARK, TX5_C_MARK, MLB_DAT_MARK, | ||
586 | |||
587 | /* IPSR11 */ | ||
588 | SCL1_MARK, SCIF_CLK_C_MARK, | ||
589 | SDA1_MARK, RX1_E_MARK, | ||
590 | SDA0_MARK, HIFEBL_A_MARK, | ||
591 | SDSELF_MARK, RTS1_E_MARK, | ||
592 | SCIF_CLK_A_MARK, HSPI_CLK_A_MARK, VI0_CLK_MARK, RMII0_TXD0_A_MARK, | ||
593 | ET0_ERXD4_MARK, | ||
594 | SCK0_A_MARK, HSPI_CS_A_MARK, VI0_CLKENB_MARK, RMII0_TXD1_A_MARK, | ||
595 | ET0_ERXD5_MARK, | ||
596 | RX0_A_MARK, HSPI_RX_A_MARK, RMII0_RXD0_A_MARK, ET0_ERXD6_MARK, | ||
597 | TX0_A_MARK, HSPI_TX_A_MARK, | ||
598 | PENC1_MARK, TX3_D_MARK, CAN1_TX_B_MARK, TX5_D_MARK, | ||
599 | IETX_B_MARK, | ||
600 | USB_OVC1_MARK, RX3_D_MARK, CAN1_RX_B_MARK, RX5_D_MARK, | ||
601 | IERX_B_MARK, | ||
602 | DREQ0_MARK, SD1_CLK_A_MARK, ET0_TX_EN_MARK, | ||
603 | DACK0_MARK, SD1_DAT3_A_MARK, ET0_TX_ER_MARK, | ||
604 | DREQ1_MARK, HSPI_CLK_B_MARK, RX4_B_MARK, ET0_PHY_INT_C_MARK, | ||
605 | ET0_TX_CLK_A_MARK, | ||
606 | DACK1_MARK, HSPI_CS_B_MARK, TX4_B_MARK, ET0_RX_CLK_A_MARK, | ||
607 | PRESETOUT_MARK, ST_CLKOUT_MARK, | ||
608 | |||
609 | PINMUX_MARK_END, | ||
610 | }; | ||
611 | |||
612 | static pinmux_enum_t pinmux_data[] = { | ||
613 | PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */ | ||
614 | |||
615 | PINMUX_DATA(CLKOUT_MARK, FN_CLKOUT), | ||
616 | PINMUX_DATA(BS_MARK, FN_BS), PINMUX_DATA(CS0_MARK, FN_CS0), | ||
617 | PINMUX_DATA(EX_CS0_MARK, FN_EX_CS0), | ||
618 | PINMUX_DATA(RD_MARK, FN_RD), PINMUX_DATA(WE0_MARK, FN_WE0), | ||
619 | PINMUX_DATA(WE1_MARK, FN_WE1), | ||
620 | PINMUX_DATA(SCL0_MARK, FN_SCL0), PINMUX_DATA(PENC0_MARK, FN_PENC0), | ||
621 | PINMUX_DATA(USB_OVC0_MARK, FN_USB_OVC0), | ||
622 | PINMUX_DATA(IRQ2_B_MARK, FN_IRQ2_B), | ||
623 | PINMUX_DATA(IRQ3_B_MARK, FN_IRQ3_B), | ||
624 | |||
625 | /* IPSR0 */ | ||
626 | PINMUX_IPSR_DATA(IP0_1_0, A0), | ||
627 | PINMUX_IPSR_DATA(IP0_1_0, ST0_CLKIN), | ||
628 | PINMUX_IPSR_MODSEL_DATA(IP0_1_0, LCD_DATA0_A, SEL_LCDC_0), | ||
629 | PINMUX_IPSR_MODSEL_DATA(IP0_1_0, TCLKA_C, SEL_MTU2_CLK_1), | ||
630 | |||
631 | PINMUX_IPSR_DATA(IP0_3_2, A1), | ||
632 | PINMUX_IPSR_DATA(IP0_3_2, ST0_REQ), | ||
633 | PINMUX_IPSR_MODSEL_DATA(IP0_3_2, LCD_DATA1_A, SEL_LCDC_0), | ||
634 | PINMUX_IPSR_MODSEL_DATA(IP0_3_2, TCLKB_C, SEL_MTU2_CLK_1), | ||
635 | |||
636 | PINMUX_IPSR_DATA(IP0_5_4, A2), | ||
637 | PINMUX_IPSR_DATA(IP0_5_4, ST0_SYC), | ||
638 | PINMUX_IPSR_MODSEL_DATA(IP0_5_4, LCD_DATA2_A, SEL_LCDC_0), | ||
639 | PINMUX_IPSR_MODSEL_DATA(IP0_5_4, TCLKC_C, SEL_MTU2_CLK_1), | ||
640 | |||
641 | PINMUX_IPSR_DATA(IP0_7_6, A3), | ||
642 | PINMUX_IPSR_DATA(IP0_7_6, ST0_VLD), | ||
643 | PINMUX_IPSR_MODSEL_DATA(IP0_7_6, LCD_DATA3_A, SEL_LCDC_0), | ||
644 | PINMUX_IPSR_MODSEL_DATA(IP0_7_6, TCLKD_C, SEL_MTU2_CLK_1), | ||
645 | |||
646 | PINMUX_IPSR_DATA(IP0_9_8, A4), | ||
647 | PINMUX_IPSR_DATA(IP0_9_8, ST0_D0), | ||
648 | PINMUX_IPSR_MODSEL_DATA(IP0_9_8, LCD_DATA4_A, SEL_LCDC_0), | ||
649 | PINMUX_IPSR_MODSEL_DATA(IP0_9_8, TIOC0A_C, SEL_MTU2_CH0_1), | ||
650 | |||
651 | PINMUX_IPSR_DATA(IP0_11_10, A5), | ||
652 | PINMUX_IPSR_DATA(IP0_11_10, ST0_D1), | ||
653 | PINMUX_IPSR_MODSEL_DATA(IP0_11_10, LCD_DATA5_A, SEL_LCDC_0), | ||
654 | PINMUX_IPSR_MODSEL_DATA(IP0_11_10, TIOC0B_C, SEL_MTU2_CH0_1), | ||
655 | |||
656 | PINMUX_IPSR_DATA(IP0_13_12, A6), | ||
657 | PINMUX_IPSR_DATA(IP0_13_12, ST0_D2), | ||
658 | PINMUX_IPSR_MODSEL_DATA(IP0_13_12, LCD_DATA6_A, SEL_LCDC_0), | ||
659 | PINMUX_IPSR_MODSEL_DATA(IP0_13_12, TIOC0C_C, SEL_MTU2_CH0_1), | ||
660 | |||
661 | PINMUX_IPSR_DATA(IP0_15_14, A7), | ||
662 | PINMUX_IPSR_DATA(IP0_15_14, ST0_D3), | ||
663 | PINMUX_IPSR_MODSEL_DATA(IP0_15_14, LCD_DATA7_A, SEL_LCDC_0), | ||
664 | PINMUX_IPSR_MODSEL_DATA(IP0_15_14, TIOC0D_C, SEL_MTU2_CH0_1), | ||
665 | |||
666 | PINMUX_IPSR_DATA(IP0_17_16, A8), | ||
667 | PINMUX_IPSR_DATA(IP0_17_16, ST0_D4), | ||
668 | PINMUX_IPSR_MODSEL_DATA(IP0_17_16, LCD_DATA8_A, SEL_LCDC_0), | ||
669 | PINMUX_IPSR_MODSEL_DATA(IP0_17_16, TIOC1A_C, SEL_MTU2_CH1_2), | ||
670 | |||
671 | PINMUX_IPSR_DATA(IP0_19_18, A9), | ||
672 | PINMUX_IPSR_DATA(IP0_19_18, ST0_D5), | ||
673 | PINMUX_IPSR_MODSEL_DATA(IP0_19_18, LCD_DATA9_A, SEL_LCDC_0), | ||
674 | PINMUX_IPSR_MODSEL_DATA(IP0_19_18, TIOC1B_C, SEL_MTU2_CH1_2), | ||
675 | |||
676 | PINMUX_IPSR_DATA(IP0_21_20, A10), | ||
677 | PINMUX_IPSR_DATA(IP0_21_20, ST0_D6), | ||
678 | PINMUX_IPSR_MODSEL_DATA(IP0_21_20, LCD_DATA10_A, SEL_LCDC_0), | ||
679 | PINMUX_IPSR_MODSEL_DATA(IP0_21_20, TIOC2A_C, SEL_MTU2_CH2_2), | ||
680 | |||
681 | PINMUX_IPSR_DATA(IP0_23_22, A11), | ||
682 | PINMUX_IPSR_DATA(IP0_23_22, ST0_D7), | ||
683 | PINMUX_IPSR_MODSEL_DATA(IP0_23_22, LCD_DATA11_A, SEL_LCDC_0), | ||
684 | PINMUX_IPSR_MODSEL_DATA(IP0_23_22, TIOC2B_C, SEL_MTU2_CH2_2), | ||
685 | |||
686 | PINMUX_IPSR_DATA(IP0_25_24, A12), | ||
687 | PINMUX_IPSR_MODSEL_DATA(IP0_25_24, LCD_DATA12_A, SEL_LCDC_0), | ||
688 | PINMUX_IPSR_MODSEL_DATA(IP0_25_24, TIOC3A_C, SEL_MTU2_CH3_1), | ||
689 | |||
690 | PINMUX_IPSR_DATA(IP0_27_26, A13), | ||
691 | PINMUX_IPSR_MODSEL_DATA(IP0_27_26, LCD_DATA13_A, SEL_LCDC_0), | ||
692 | PINMUX_IPSR_MODSEL_DATA(IP0_27_26, TIOC3B_C, SEL_MTU2_CH3_1), | ||
693 | |||
694 | PINMUX_IPSR_DATA(IP0_29_28, A14), | ||
695 | PINMUX_IPSR_MODSEL_DATA(IP0_29_28, LCD_DATA14_A, SEL_LCDC_0), | ||
696 | PINMUX_IPSR_MODSEL_DATA(IP0_29_28, TIOC3C_C, SEL_MTU2_CH3_1), | ||
697 | |||
698 | PINMUX_IPSR_DATA(IP0_31_30, A15), | ||
699 | PINMUX_IPSR_DATA(IP0_31_30, ST0_VCO_CLKIN), | ||
700 | PINMUX_IPSR_MODSEL_DATA(IP0_31_30, LCD_DATA15_A, SEL_LCDC_0), | ||
701 | PINMUX_IPSR_MODSEL_DATA(IP0_31_30, TIOC3D_C, SEL_MTU2_CH3_1), | ||
702 | |||
703 | |||
704 | /* IPSR1 */ | ||
705 | PINMUX_IPSR_DATA(IP1_1_0, A16), | ||
706 | PINMUX_IPSR_DATA(IP1_1_0, ST0_PWM), | ||
707 | PINMUX_IPSR_MODSEL_DATA(IP1_1_0, LCD_DON_A, SEL_LCDC_0), | ||
708 | PINMUX_IPSR_MODSEL_DATA(IP1_1_0, TIOC4A_C, SEL_MTU2_CH4_1), | ||
709 | |||
710 | PINMUX_IPSR_DATA(IP1_3_2, A17), | ||
711 | PINMUX_IPSR_DATA(IP1_3_2, ST1_VCO_CLKIN), | ||
712 | PINMUX_IPSR_MODSEL_DATA(IP1_3_2, LCD_CL1_A, SEL_LCDC_0), | ||
713 | PINMUX_IPSR_MODSEL_DATA(IP1_3_2, TIOC4B_C, SEL_MTU2_CH4_1), | ||
714 | |||
715 | PINMUX_IPSR_DATA(IP1_5_4, A18), | ||
716 | PINMUX_IPSR_DATA(IP1_5_4, ST1_PWM), | ||
717 | PINMUX_IPSR_MODSEL_DATA(IP1_5_4, LCD_CL2_A, SEL_LCDC_0), | ||
718 | PINMUX_IPSR_MODSEL_DATA(IP1_5_4, TIOC4C_C, SEL_MTU2_CH4_1), | ||
719 | |||
720 | PINMUX_IPSR_DATA(IP1_7_6, A19), | ||
721 | PINMUX_IPSR_DATA(IP1_7_6, ST1_CLKIN), | ||
722 | PINMUX_IPSR_MODSEL_DATA(IP1_7_6, LCD_CLK_A, SEL_LCDC_0), | ||
723 | PINMUX_IPSR_MODSEL_DATA(IP1_7_6, TIOC4D_C, SEL_MTU2_CH4_1), | ||
724 | |||
725 | PINMUX_IPSR_DATA(IP1_9_8, A20), | ||
726 | PINMUX_IPSR_DATA(IP1_9_8, ST1_REQ), | ||
727 | PINMUX_IPSR_MODSEL_DATA(IP1_9_8, LCD_FLM_A, SEL_LCDC_0), | ||
728 | |||
729 | PINMUX_IPSR_DATA(IP1_11_10, A21), | ||
730 | PINMUX_IPSR_DATA(IP1_11_10, ST1_SYC), | ||
731 | PINMUX_IPSR_MODSEL_DATA(IP1_11_10, LCD_VCPWC_A, SEL_LCDC_0), | ||
732 | |||
733 | PINMUX_IPSR_DATA(IP1_13_12, A22), | ||
734 | PINMUX_IPSR_DATA(IP1_13_12, ST1_VLD), | ||
735 | PINMUX_IPSR_MODSEL_DATA(IP1_13_12, LCD_VEPWC_A, SEL_LCDC_0), | ||
736 | |||
737 | PINMUX_IPSR_DATA(IP1_15_14, A23), | ||
738 | PINMUX_IPSR_DATA(IP1_15_14, ST1_D0), | ||
739 | PINMUX_IPSR_MODSEL_DATA(IP1_15_14, LCD_M_DISP_A, SEL_LCDC_0), | ||
740 | |||
741 | PINMUX_IPSR_DATA(IP1_17_16, A24), | ||
742 | PINMUX_IPSR_MODSEL_DATA(IP1_17_16, RX2_D, SEL_SCIF2_3), | ||
743 | PINMUX_IPSR_DATA(IP1_17_16, ST1_D1), | ||
744 | |||
745 | PINMUX_IPSR_DATA(IP1_19_18, A25), | ||
746 | PINMUX_IPSR_MODSEL_DATA(IP1_17_16, RX2_D, SEL_SCIF2_3), | ||
747 | PINMUX_IPSR_DATA(IP1_17_16, ST1_D2), | ||
748 | |||
749 | PINMUX_IPSR_DATA(IP1_22_20, D0), | ||
750 | PINMUX_IPSR_MODSEL_DATA(IP1_22_20, SD0_DAT0_A, SEL_SDHI0_0), | ||
751 | PINMUX_IPSR_MODSEL_DATA(IP1_22_20, MMC_D0_A, SEL_MMC_0), | ||
752 | PINMUX_IPSR_DATA(IP1_22_20, ST1_D3), | ||
753 | PINMUX_IPSR_MODSEL_DATA(IP1_22_20, FD0_A, SEL_FLCTL_0), | ||
754 | |||
755 | PINMUX_IPSR_DATA(IP1_25_23, D1), | ||
756 | PINMUX_IPSR_MODSEL_DATA(IP1_25_23, SD0_DAT0_A, SEL_SDHI0_0), | ||
757 | PINMUX_IPSR_MODSEL_DATA(IP1_25_23, MMC_D1_A, SEL_MMC_0), | ||
758 | PINMUX_IPSR_DATA(IP1_25_23, ST1_D4), | ||
759 | PINMUX_IPSR_MODSEL_DATA(IP1_25_23, FD1_A, SEL_FLCTL_0), | ||
760 | |||
761 | PINMUX_IPSR_DATA(IP1_28_26, D2), | ||
762 | PINMUX_IPSR_MODSEL_DATA(IP1_28_26, SD0_DAT0_A, SEL_SDHI0_0), | ||
763 | PINMUX_IPSR_MODSEL_DATA(IP1_28_26, MMC_D2_A, SEL_MMC_0), | ||
764 | PINMUX_IPSR_DATA(IP1_28_26, ST1_D5), | ||
765 | PINMUX_IPSR_MODSEL_DATA(IP1_28_26, FD2_A, SEL_FLCTL_0), | ||
766 | |||
767 | PINMUX_IPSR_DATA(IP1_31_29, D3), | ||
768 | PINMUX_IPSR_MODSEL_DATA(IP1_31_29, SD0_DAT0_A, SEL_SDHI0_0), | ||
769 | PINMUX_IPSR_MODSEL_DATA(IP1_31_29, MMC_D3_A, SEL_MMC_0), | ||
770 | PINMUX_IPSR_DATA(IP1_31_29, ST1_D6), | ||
771 | PINMUX_IPSR_MODSEL_DATA(IP1_31_29, FD3_A, SEL_FLCTL_0), | ||
772 | |||
773 | /* IPSR2 */ | ||
774 | PINMUX_IPSR_DATA(IP2_2_0, D4), | ||
775 | PINMUX_IPSR_MODSEL_DATA(IP2_2_0, SD0_CD_A, SEL_SDHI0_0), | ||
776 | PINMUX_IPSR_MODSEL_DATA(IP2_2_0, MMC_D4_A, SEL_MMC_0), | ||
777 | PINMUX_IPSR_DATA(IP2_2_0, ST1_D7), | ||
778 | PINMUX_IPSR_MODSEL_DATA(IP2_2_0, FD4_A, SEL_FLCTL_0), | ||
779 | |||
780 | PINMUX_IPSR_DATA(IP2_4_3, D5), | ||
781 | PINMUX_IPSR_MODSEL_DATA(IP2_4_3, SD0_WP_A, SEL_SDHI0_0), | ||
782 | PINMUX_IPSR_MODSEL_DATA(IP2_4_3, MMC_D5_A, SEL_MMC_0), | ||
783 | PINMUX_IPSR_MODSEL_DATA(IP2_4_3, FD5_A, SEL_FLCTL_0), | ||
784 | |||
785 | PINMUX_IPSR_DATA(IP2_7_5, D6), | ||
786 | PINMUX_IPSR_MODSEL_DATA(IP2_7_5, RSPI_RSPCK_A, SEL_RSPI_0), | ||
787 | PINMUX_IPSR_MODSEL_DATA(IP2_7_5, MMC_D6_A, SEL_MMC_0), | ||
788 | PINMUX_IPSR_MODSEL_DATA(IP2_7_5, QSPCLK_A, SEL_RQSPI_0), | ||
789 | PINMUX_IPSR_MODSEL_DATA(IP2_7_5, FD6_A, SEL_FLCTL_0), | ||
790 | |||
791 | PINMUX_IPSR_DATA(IP2_10_8, D7), | ||
792 | PINMUX_IPSR_MODSEL_DATA(IP2_10_8, RSPI_SSL_A, SEL_RSPI_0), | ||
793 | PINMUX_IPSR_MODSEL_DATA(IP2_10_8, MMC_D7_A, SEL_MMC_0), | ||
794 | PINMUX_IPSR_MODSEL_DATA(IP2_10_8, QSSL_A, SEL_RQSPI_0), | ||
795 | PINMUX_IPSR_MODSEL_DATA(IP2_10_8, FD7_A, SEL_FLCTL_0), | ||
796 | |||
797 | PINMUX_IPSR_DATA(IP2_13_11, D8), | ||
798 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, SD0_CLK_A, SEL_SDHI0_0), | ||
799 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, MMC_CLK_A, SEL_MMC_0), | ||
800 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, QIO2_A, SEL_RQSPI_0), | ||
801 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, FCE_A, SEL_FLCTL_0), | ||
802 | PINMUX_IPSR_MODSEL_DATA(IP2_13_11, ET0_GTX_CLK_B, SEL_ET0_1), | ||
803 | |||
804 | PINMUX_IPSR_DATA(IP2_16_14, D9), | ||
805 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, SD0_CMD_A, SEL_SDHI0_0), | ||
806 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, MMC_CMD_A, SEL_MMC_0), | ||
807 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, QIO3_A, SEL_RQSPI_0), | ||
808 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, FCLE_A, SEL_FLCTL_0), | ||
809 | PINMUX_IPSR_MODSEL_DATA(IP2_16_14, ET0_ETXD1_B, SEL_ET0_1), | ||
810 | |||
811 | PINMUX_IPSR_DATA(IP2_19_17, D10), | ||
812 | PINMUX_IPSR_MODSEL_DATA(IP2_19_17, RSPI_MOSI_A, SEL_RSPI_0), | ||
813 | PINMUX_IPSR_MODSEL_DATA(IP2_19_17, QMO_QIO0_A, SEL_RQSPI_0), | ||
814 | PINMUX_IPSR_MODSEL_DATA(IP2_19_17, FALE_A, SEL_FLCTL_0), | ||
815 | PINMUX_IPSR_MODSEL_DATA(IP2_19_17, ET0_ETXD2_B, SEL_ET0_1), | ||
816 | |||
817 | PINMUX_IPSR_DATA(IP2_22_20, D11), | ||
818 | PINMUX_IPSR_MODSEL_DATA(IP2_22_20, RSPI_MISO_A, SEL_RSPI_0), | ||
819 | PINMUX_IPSR_MODSEL_DATA(IP2_22_20, QMI_QIO1_A, SEL_RQSPI_0), | ||
820 | PINMUX_IPSR_MODSEL_DATA(IP2_22_20, FRE_A, SEL_FLCTL_0), | ||
821 | |||
822 | PINMUX_IPSR_DATA(IP2_24_23, D12), | ||
823 | PINMUX_IPSR_MODSEL_DATA(IP2_24_23, FWE_A, SEL_FLCTL_0), | ||
824 | PINMUX_IPSR_MODSEL_DATA(IP2_24_23, ET0_ETXD5_B, SEL_ET0_1), | ||
825 | |||
826 | PINMUX_IPSR_DATA(IP2_27_25, D13), | ||
827 | PINMUX_IPSR_MODSEL_DATA(IP2_27_25, RX2_B, SEL_SCIF2_1), | ||
828 | PINMUX_IPSR_MODSEL_DATA(IP2_27_25, FRB_A, SEL_FLCTL_0), | ||
829 | PINMUX_IPSR_MODSEL_DATA(IP2_27_25, ET0_ETXD6_B, SEL_ET0_1), | ||
830 | |||
831 | PINMUX_IPSR_DATA(IP2_30_28, D14), | ||
832 | PINMUX_IPSR_MODSEL_DATA(IP2_30_28, TX2_B, SEL_SCIF2_1), | ||
833 | PINMUX_IPSR_MODSEL_DATA(IP2_30_28, FSE_A, SEL_FLCTL_0), | ||
834 | PINMUX_IPSR_MODSEL_DATA(IP2_30_28, ET0_TX_CLK_B, SEL_ET0_1), | ||
835 | |||
836 | /* IPSR3 */ | ||
837 | PINMUX_IPSR_DATA(IP3_1_0, D15), | ||
838 | PINMUX_IPSR_MODSEL_DATA(IP3_1_0, SCK2_B, SEL_SCIF2_1), | ||
839 | |||
840 | PINMUX_IPSR_DATA(IP3_2, CS1_A26), | ||
841 | PINMUX_IPSR_MODSEL_DATA(IP3_2, QIO3_B, SEL_RQSPI_1), | ||
842 | |||
843 | PINMUX_IPSR_DATA(IP3_5_3, EX_CS1), | ||
844 | PINMUX_IPSR_MODSEL_DATA(IP3_5_3, RX3_B, SEL_SCIF2_1), | ||
845 | PINMUX_IPSR_DATA(IP3_5_3, ATACS0), | ||
846 | PINMUX_IPSR_MODSEL_DATA(IP3_5_3, QIO2_B, SEL_RQSPI_1), | ||
847 | PINMUX_IPSR_DATA(IP3_5_3, ET0_ETXD0), | ||
848 | |||
849 | PINMUX_IPSR_DATA(IP3_8_6, EX_CS2), | ||
850 | PINMUX_IPSR_MODSEL_DATA(IP3_8_6, TX3_B, SEL_SCIF3_1), | ||
851 | PINMUX_IPSR_DATA(IP3_8_6, ATACS1), | ||
852 | PINMUX_IPSR_MODSEL_DATA(IP3_8_6, QSPCLK_B, SEL_RQSPI_1), | ||
853 | PINMUX_IPSR_MODSEL_DATA(IP3_8_6, ET0_GTX_CLK_A, SEL_ET0_0), | ||
854 | |||
855 | PINMUX_IPSR_DATA(IP3_11_9, EX_CS3), | ||
856 | PINMUX_IPSR_MODSEL_DATA(IP3_11_9, SD1_CD_A, SEL_SDHI1_0), | ||
857 | PINMUX_IPSR_DATA(IP3_11_9, ATARD), | ||
858 | PINMUX_IPSR_MODSEL_DATA(IP3_11_9, QMO_QIO0_B, SEL_RQSPI_1), | ||
859 | PINMUX_IPSR_MODSEL_DATA(IP3_11_9, ET0_ETXD1_A, SEL_ET0_0), | ||
860 | |||
861 | PINMUX_IPSR_DATA(IP3_14_12, EX_CS4), | ||
862 | PINMUX_IPSR_MODSEL_DATA(IP3_14_12, SD1_WP_A, SEL_SDHI1_0), | ||
863 | PINMUX_IPSR_DATA(IP3_14_12, ATAWR), | ||
864 | PINMUX_IPSR_MODSEL_DATA(IP3_14_12, QMI_QIO1_B, SEL_RQSPI_1), | ||
865 | PINMUX_IPSR_MODSEL_DATA(IP3_14_12, ET0_ETXD2_A, SEL_ET0_0), | ||
866 | |||
867 | PINMUX_IPSR_DATA(IP3_17_15, EX_CS5), | ||
868 | PINMUX_IPSR_MODSEL_DATA(IP3_17_15, SD1_CMD_A, SEL_SDHI1_0), | ||
869 | PINMUX_IPSR_DATA(IP3_17_15, ATADIR), | ||
870 | PINMUX_IPSR_MODSEL_DATA(IP3_17_15, QSSL_B, SEL_RQSPI_1), | ||
871 | PINMUX_IPSR_MODSEL_DATA(IP3_17_15, ET0_ETXD3_A, SEL_ET0_0), | ||
872 | |||
873 | PINMUX_IPSR_DATA(IP3_19_18, RD_WR), | ||
874 | PINMUX_IPSR_DATA(IP3_19_18, TCLK0), | ||
875 | PINMUX_IPSR_MODSEL_DATA(IP3_19_18, CAN_CLK_B, SEL_RCAN_CLK_1), | ||
876 | PINMUX_IPSR_DATA(IP3_19_18, ET0_ETXD4), | ||
877 | |||
878 | PINMUX_IPSR_DATA(IP3_20, EX_WAIT0), | ||
879 | PINMUX_IPSR_MODSEL_DATA(IP3_20, TCLK1_B, SEL_TMU_1), | ||
880 | |||
881 | PINMUX_IPSR_DATA(IP3_23_21, EX_WAIT1), | ||
882 | PINMUX_IPSR_MODSEL_DATA(IP3_23_21, SD1_DAT0_A, SEL_SDHI1_0), | ||
883 | PINMUX_IPSR_DATA(IP3_23_21, DREQ2), | ||
884 | PINMUX_IPSR_MODSEL_DATA(IP3_23_21, CAN1_TX_C, SEL_RCAN1_2), | ||
885 | PINMUX_IPSR_MODSEL_DATA(IP3_23_21, ET0_LINK_C, SEL_ET0_CTL_2), | ||
886 | PINMUX_IPSR_MODSEL_DATA(IP3_23_21, ET0_ETXD5_A, SEL_ET0_0), | ||
887 | |||
888 | PINMUX_IPSR_DATA(IP3_26_24, EX_WAIT2), | ||
889 | PINMUX_IPSR_MODSEL_DATA(IP3_26_24, SD1_DAT1_A, SEL_SDHI1_0), | ||
890 | PINMUX_IPSR_DATA(IP3_26_24, DACK2), | ||
891 | PINMUX_IPSR_MODSEL_DATA(IP3_26_24, CAN1_RX_C, SEL_RCAN1_2), | ||
892 | PINMUX_IPSR_MODSEL_DATA(IP3_26_24, ET0_MAGIC_C, SEL_ET0_CTL_2), | ||
893 | PINMUX_IPSR_MODSEL_DATA(IP3_26_24, ET0_ETXD6_A, SEL_ET0_0), | ||
894 | |||
895 | PINMUX_IPSR_DATA(IP3_29_27, DRACK0), | ||
896 | PINMUX_IPSR_MODSEL_DATA(IP3_29_27, SD1_DAT2_A, SEL_SDHI1_0), | ||
897 | PINMUX_IPSR_DATA(IP3_29_27, ATAG), | ||
898 | PINMUX_IPSR_MODSEL_DATA(IP3_29_27, TCLK1_A, SEL_TMU_0), | ||
899 | PINMUX_IPSR_DATA(IP3_29_27, ET0_ETXD7), | ||
900 | |||
901 | /* IPSR4 */ | ||
902 | PINMUX_IPSR_MODSEL_DATA(IP4_2_0, HCTS0_A, SEL_HSCIF_0), | ||
903 | PINMUX_IPSR_MODSEL_DATA(IP4_2_0, CTS1_A, SEL_SCIF1_0), | ||
904 | PINMUX_IPSR_DATA(IP4_2_0, VI0_FIELD), | ||
905 | PINMUX_IPSR_MODSEL_DATA(IP4_2_0, RMII0_RXD1_A, SEL_RMII_0), | ||
906 | PINMUX_IPSR_DATA(IP4_2_0, ET0_ERXD7), | ||
907 | |||
908 | PINMUX_IPSR_MODSEL_DATA(IP4_5_3, HRTS0_A, SEL_HSCIF_0), | ||
909 | PINMUX_IPSR_MODSEL_DATA(IP4_5_3, RTS1_A, SEL_SCIF1_0), | ||
910 | PINMUX_IPSR_DATA(IP4_5_3, VI0_HSYNC), | ||
911 | PINMUX_IPSR_MODSEL_DATA(IP4_5_3, RMII0_TXD_EN_A, SEL_RMII_0), | ||
912 | PINMUX_IPSR_DATA(IP4_5_3, ET0_RX_DV), | ||
913 | |||
914 | PINMUX_IPSR_MODSEL_DATA(IP4_8_6, HSCK0_A, SEL_HSCIF_0), | ||
915 | PINMUX_IPSR_MODSEL_DATA(IP4_8_6, SCK1_A, SEL_SCIF1_0), | ||
916 | PINMUX_IPSR_DATA(IP4_8_6, VI0_VSYNC), | ||
917 | PINMUX_IPSR_MODSEL_DATA(IP4_8_6, RMII0_RX_ER_A, SEL_RMII_0), | ||
918 | PINMUX_IPSR_DATA(IP4_8_6, ET0_RX_ER), | ||
919 | |||
920 | PINMUX_IPSR_MODSEL_DATA(IP4_11_9, HRX0_A, SEL_HSCIF_0), | ||
921 | PINMUX_IPSR_MODSEL_DATA(IP4_11_9, RX1_A, SEL_SCIF1_0), | ||
922 | PINMUX_IPSR_DATA(IP4_11_9, VI0_DATA0_VI0_B0), | ||
923 | PINMUX_IPSR_MODSEL_DATA(IP4_11_9, RMII0_CRS_DV_A, SEL_RMII_0), | ||
924 | PINMUX_IPSR_DATA(IP4_11_9, ET0_CRS), | ||
925 | |||
926 | PINMUX_IPSR_MODSEL_DATA(IP4_14_12, HTX0_A, SEL_HSCIF_0), | ||
927 | PINMUX_IPSR_MODSEL_DATA(IP4_14_12, TX1_A, SEL_SCIF1_0), | ||
928 | PINMUX_IPSR_DATA(IP4_14_12, VI0_DATA1_VI0_B1), | ||
929 | PINMUX_IPSR_MODSEL_DATA(IP4_14_12, RMII0_MDC_A, SEL_RMII_0), | ||
930 | PINMUX_IPSR_DATA(IP4_14_12, ET0_COL), | ||
931 | |||
932 | PINMUX_IPSR_MODSEL_DATA(IP4_17_15, CTS0_B, SEL_SCIF0_1), | ||
933 | PINMUX_IPSR_DATA(IP4_17_15, VI0_DATA2_VI0_B2), | ||
934 | PINMUX_IPSR_MODSEL_DATA(IP4_17_15, RMII0_MDIO_A, SEL_RMII_0), | ||
935 | PINMUX_IPSR_DATA(IP4_17_15, ET0_MDC), | ||
936 | |||
937 | PINMUX_IPSR_MODSEL_DATA(IP4_19_18, RTS0_B, SEL_SCIF0_1), | ||
938 | PINMUX_IPSR_DATA(IP4_19_18, VI0_DATA3_VI0_B3), | ||
939 | PINMUX_IPSR_MODSEL_DATA(IP4_19_18, ET0_MDIO_A, SEL_ET0_0), | ||
940 | |||
941 | PINMUX_IPSR_MODSEL_DATA(IP4_21_20, SCK1_B, SEL_SCIF1_1), | ||
942 | PINMUX_IPSR_DATA(IP4_21_20, VI0_DATA4_VI0_B4), | ||
943 | PINMUX_IPSR_MODSEL_DATA(IP4_21_20, ET0_LINK_A, SEL_ET0_CTL_0), | ||
944 | |||
945 | PINMUX_IPSR_MODSEL_DATA(IP4_23_22, RX1_B, SEL_SCIF1_1), | ||
946 | PINMUX_IPSR_DATA(IP4_23_22, VI0_DATA5_VI0_B5), | ||
947 | PINMUX_IPSR_MODSEL_DATA(IP4_23_22, ET0_MAGIC_A, SEL_ET0_CTL_0), | ||
948 | |||
949 | PINMUX_IPSR_MODSEL_DATA(IP4_25_24, TX1_B, SEL_SCIF1_1), | ||
950 | PINMUX_IPSR_DATA(IP4_25_24, VI0_DATA6_VI0_G0), | ||
951 | PINMUX_IPSR_MODSEL_DATA(IP4_25_24, ET0_PHY_INT_A, SEL_ET0_CTL_0), | ||
952 | |||
953 | PINMUX_IPSR_MODSEL_DATA(IP4_27_26, CTS1_B, SEL_SCIF1_1), | ||
954 | PINMUX_IPSR_DATA(IP4_27_26, VI0_DATA7_VI0_G1), | ||
955 | |||
956 | PINMUX_IPSR_MODSEL_DATA(IP4_29_28, RTS1_B, SEL_SCIF1_1), | ||
957 | PINMUX_IPSR_DATA(IP4_29_28, VI0_G2), | ||
958 | |||
959 | PINMUX_IPSR_MODSEL_DATA(IP4_31_30, SCK2_A, SEL_SCIF2_0), | ||
960 | PINMUX_IPSR_DATA(IP4_31_30, VI0_G3), | ||
961 | |||
962 | /* IPSR5 */ | ||
963 | PINMUX_IPSR_MODSEL_DATA(IP5_2_0, SD2_CLK_A, SEL_SDHI2_0), | ||
964 | PINMUX_IPSR_MODSEL_DATA(IP5_2_0, RX2_A, SEL_SCIF2_0), | ||
965 | PINMUX_IPSR_DATA(IP5_2_0, VI0_G4), | ||
966 | PINMUX_IPSR_MODSEL_DATA(IP5_2_0, ET0_RX_CLK_B, SEL_ET0_1), | ||
967 | |||
968 | PINMUX_IPSR_MODSEL_DATA(IP5_5_3, SD2_CMD_A, SEL_SDHI2_0), | ||
969 | PINMUX_IPSR_MODSEL_DATA(IP5_5_3, TX2_A, SEL_SCIF2_0), | ||
970 | PINMUX_IPSR_DATA(IP5_5_3, VI0_G5), | ||
971 | PINMUX_IPSR_MODSEL_DATA(IP5_5_3, ET0_ERXD2_B, SEL_ET0_1), | ||
972 | |||
973 | PINMUX_IPSR_MODSEL_DATA(IP5_8_6, SD2_DAT0_A, SEL_SDHI2_0), | ||
974 | PINMUX_IPSR_MODSEL_DATA(IP5_8_6, RX3_A, SEL_SCIF3_0), | ||
975 | PINMUX_IPSR_DATA(IP4_8_6, VI0_R0), | ||
976 | PINMUX_IPSR_MODSEL_DATA(IP4_8_6, ET0_ERXD2_B, SEL_ET0_1), | ||
977 | |||
978 | PINMUX_IPSR_MODSEL_DATA(IP5_11_9, SD2_DAT1_A, SEL_SDHI2_0), | ||
979 | PINMUX_IPSR_MODSEL_DATA(IP5_11_9, TX3_A, SEL_SCIF3_0), | ||
980 | PINMUX_IPSR_DATA(IP5_11_9, VI0_R1), | ||
981 | PINMUX_IPSR_MODSEL_DATA(IP5_11_9, ET0_MDIO_B, SEL_ET0_1), | ||
982 | |||
983 | PINMUX_IPSR_MODSEL_DATA(IP5_14_12, SD2_DAT2_A, SEL_SDHI2_0), | ||
984 | PINMUX_IPSR_MODSEL_DATA(IP5_14_12, RX4_A, SEL_SCIF4_0), | ||
985 | PINMUX_IPSR_DATA(IP5_14_12, VI0_R2), | ||
986 | PINMUX_IPSR_MODSEL_DATA(IP5_14_12, ET0_LINK_B, SEL_ET0_CTL_1), | ||
987 | |||
988 | PINMUX_IPSR_MODSEL_DATA(IP5_17_15, SD2_DAT3_A, SEL_SDHI2_0), | ||
989 | PINMUX_IPSR_MODSEL_DATA(IP5_17_15, TX4_A, SEL_SCIF4_0), | ||
990 | PINMUX_IPSR_DATA(IP5_17_15, VI0_R3), | ||
991 | PINMUX_IPSR_MODSEL_DATA(IP5_17_15, ET0_MAGIC_B, SEL_ET0_CTL_1), | ||
992 | |||
993 | PINMUX_IPSR_MODSEL_DATA(IP5_20_18, SD2_CD_A, SEL_SDHI2_0), | ||
994 | PINMUX_IPSR_MODSEL_DATA(IP5_20_18, RX5_A, SEL_SCIF5_0), | ||
995 | PINMUX_IPSR_DATA(IP5_20_18, VI0_R4), | ||
996 | PINMUX_IPSR_MODSEL_DATA(IP5_20_18, ET0_PHY_INT_B, SEL_ET0_CTL_1), | ||
997 | |||
998 | PINMUX_IPSR_MODSEL_DATA(IP5_22_21, SD2_WP_A, SEL_SDHI2_0), | ||
999 | PINMUX_IPSR_MODSEL_DATA(IP5_22_21, TX5_A, SEL_SCIF5_0), | ||
1000 | PINMUX_IPSR_DATA(IP5_22_21, VI0_R5), | ||
1001 | |||
1002 | PINMUX_IPSR_DATA(IP5_24_23, REF125CK), | ||
1003 | PINMUX_IPSR_DATA(IP5_24_23, ADTRG), | ||
1004 | PINMUX_IPSR_MODSEL_DATA(IP5_24_23, RX5_C, SEL_SCIF5_2), | ||
1005 | PINMUX_IPSR_DATA(IP5_26_25, REF50CK), | ||
1006 | PINMUX_IPSR_MODSEL_DATA(IP5_26_25, CTS1_E, SEL_SCIF1_3), | ||
1007 | PINMUX_IPSR_MODSEL_DATA(IP5_26_25, HCTS0_D, SEL_HSCIF_3), | ||
1008 | |||
1009 | /* IPSR6 */ | ||
1010 | PINMUX_IPSR_DATA(IP6_2_0, DU0_DR0), | ||
1011 | PINMUX_IPSR_MODSEL_DATA(IP6_2_0, SCIF_CLK_B, SEL_SCIF_CLK_1), | ||
1012 | PINMUX_IPSR_MODSEL_DATA(IP6_2_0, HRX0_D, SEL_HSCIF_3), | ||
1013 | PINMUX_IPSR_MODSEL_DATA(IP6_2_0, IETX_A, SEL_IEBUS_0), | ||
1014 | PINMUX_IPSR_MODSEL_DATA(IP6_2_0, TCLKA_A, SEL_MTU2_CLK_0), | ||
1015 | PINMUX_IPSR_DATA(IP6_2_0, HIFD00), | ||
1016 | |||
1017 | PINMUX_IPSR_DATA(IP6_5_3, DU0_DR1), | ||
1018 | PINMUX_IPSR_MODSEL_DATA(IP6_5_3, SCK0_B, SEL_SCIF0_1), | ||
1019 | PINMUX_IPSR_MODSEL_DATA(IP6_5_3, HTX0_D, SEL_HSCIF_3), | ||
1020 | PINMUX_IPSR_MODSEL_DATA(IP6_5_3, IERX_A, SEL_IEBUS_0), | ||
1021 | PINMUX_IPSR_MODSEL_DATA(IP6_5_3, TCLKB_A, SEL_MTU2_CLK_0), | ||
1022 | PINMUX_IPSR_DATA(IP6_5_3, HIFD01), | ||
1023 | |||
1024 | PINMUX_IPSR_DATA(IP6_7_6, DU0_DR2), | ||
1025 | PINMUX_IPSR_MODSEL_DATA(IP6_7_6, RX0_B, SEL_SCIF0_1), | ||
1026 | PINMUX_IPSR_MODSEL_DATA(IP6_7_6, TCLKC_A, SEL_MTU2_CLK_0), | ||
1027 | PINMUX_IPSR_DATA(IP6_7_6, HIFD02), | ||
1028 | |||
1029 | PINMUX_IPSR_DATA(IP6_9_8, DU0_DR3), | ||
1030 | PINMUX_IPSR_MODSEL_DATA(IP6_9_8, TX0_B, SEL_SCIF0_1), | ||
1031 | PINMUX_IPSR_MODSEL_DATA(IP6_9_8, TCLKD_A, SEL_MTU2_CLK_0), | ||
1032 | PINMUX_IPSR_DATA(IP6_9_8, HIFD03), | ||
1033 | |||
1034 | PINMUX_IPSR_DATA(IP6_11_10, DU0_DR4), | ||
1035 | PINMUX_IPSR_MODSEL_DATA(IP6_11_10, CTS0_C, SEL_SCIF0_2), | ||
1036 | PINMUX_IPSR_MODSEL_DATA(IP6_11_10, TIOC0A_A, SEL_MTU2_CH0_0), | ||
1037 | PINMUX_IPSR_DATA(IP6_11_10, HIFD04), | ||
1038 | |||
1039 | PINMUX_IPSR_DATA(IP6_13_12, DU0_DR5), | ||
1040 | PINMUX_IPSR_MODSEL_DATA(IP6_13_12, RTS0_C, SEL_SCIF0_1), | ||
1041 | PINMUX_IPSR_MODSEL_DATA(IP6_13_12, TIOC0B_A, SEL_MTU2_CH0_0), | ||
1042 | PINMUX_IPSR_DATA(IP6_13_12, HIFD05), | ||
1043 | |||
1044 | PINMUX_IPSR_DATA(IP6_15_14, DU0_DR6), | ||
1045 | PINMUX_IPSR_MODSEL_DATA(IP6_15_14, SCK1_C, SEL_SCIF1_2), | ||
1046 | PINMUX_IPSR_MODSEL_DATA(IP6_15_14, TIOC0C_A, SEL_MTU2_CH0_0), | ||
1047 | PINMUX_IPSR_DATA(IP6_15_14, HIFD06), | ||
1048 | |||
1049 | PINMUX_IPSR_DATA(IP6_17_16, DU0_DR7), | ||
1050 | PINMUX_IPSR_MODSEL_DATA(IP6_17_16, RX1_C, SEL_SCIF1_2), | ||
1051 | PINMUX_IPSR_MODSEL_DATA(IP6_17_16, TIOC0D_A, SEL_MTU2_CH0_0), | ||
1052 | PINMUX_IPSR_DATA(IP6_17_16, HIFD07), | ||
1053 | |||
1054 | PINMUX_IPSR_DATA(IP6_20_18, DU0_DG0), | ||
1055 | PINMUX_IPSR_MODSEL_DATA(IP6_20_18, TX1_C, SEL_SCIF1_2), | ||
1056 | PINMUX_IPSR_MODSEL_DATA(IP6_20_18, HSCK0_D, SEL_HSCIF_3), | ||
1057 | PINMUX_IPSR_MODSEL_DATA(IP6_20_18, IECLK_A, SEL_IEBUS_0), | ||
1058 | PINMUX_IPSR_MODSEL_DATA(IP6_20_18, TIOC1A_A, SEL_MTU2_CH1_0), | ||
1059 | PINMUX_IPSR_DATA(IP6_20_18, HIFD08), | ||
1060 | |||
1061 | PINMUX_IPSR_DATA(IP6_23_21, DU0_DG1), | ||
1062 | PINMUX_IPSR_MODSEL_DATA(IP6_23_21, CTS1_C, SEL_SCIF1_2), | ||
1063 | PINMUX_IPSR_MODSEL_DATA(IP6_23_21, HRTS0_D, SEL_HSCIF_3), | ||
1064 | PINMUX_IPSR_MODSEL_DATA(IP6_23_21, TIOC1B_A, SEL_MTU2_CH1_0), | ||
1065 | PINMUX_IPSR_DATA(IP6_23_21, HIFD09), | ||
1066 | |||
1067 | /* IPSR7 */ | ||
1068 | PINMUX_IPSR_DATA(IP7_2_0, DU0_DG2), | ||
1069 | PINMUX_IPSR_MODSEL_DATA(IP7_2_0, RTS1_C, SEL_SCIF1_2), | ||
1070 | PINMUX_IPSR_MODSEL_DATA(IP7_2_0, RMII0_MDC_B, SEL_RMII_1), | ||
1071 | PINMUX_IPSR_MODSEL_DATA(IP7_2_0, TIOC2A_A, SEL_MTU2_CH2_0), | ||
1072 | PINMUX_IPSR_DATA(IP7_2_0, HIFD10), | ||
1073 | |||
1074 | PINMUX_IPSR_DATA(IP7_5_3, DU0_DG3), | ||
1075 | PINMUX_IPSR_MODSEL_DATA(IP7_5_3, SCK2_C, SEL_SCIF2_2), | ||
1076 | PINMUX_IPSR_MODSEL_DATA(IP7_5_3, RMII0_MDIO_B, SEL_RMII_1), | ||
1077 | PINMUX_IPSR_MODSEL_DATA(IP7_5_3, TIOC2B_A, SEL_MTU2_CH2_0), | ||
1078 | PINMUX_IPSR_DATA(IP7_5_3, HIFD11), | ||
1079 | |||
1080 | PINMUX_IPSR_DATA(IP7_8_6, DU0_DG4), | ||
1081 | PINMUX_IPSR_MODSEL_DATA(IP7_8_6, RX2_C, SEL_SCIF2_2), | ||
1082 | PINMUX_IPSR_MODSEL_DATA(IP7_8_6, RMII0_CRS_DV_B, SEL_RMII_1), | ||
1083 | PINMUX_IPSR_MODSEL_DATA(IP7_8_6, TIOC3A_A, SEL_MTU2_CH3_0), | ||
1084 | PINMUX_IPSR_DATA(IP7_8_6, HIFD12), | ||
1085 | |||
1086 | PINMUX_IPSR_DATA(IP7_11_9, DU0_DG5), | ||
1087 | PINMUX_IPSR_MODSEL_DATA(IP7_11_9, TX2_C, SEL_SCIF2_2), | ||
1088 | PINMUX_IPSR_MODSEL_DATA(IP7_11_9, RMII0_RX_ER_B, SEL_RMII_1), | ||
1089 | PINMUX_IPSR_MODSEL_DATA(IP7_11_9, TIOC3B_A, SEL_MTU2_CH3_0), | ||
1090 | PINMUX_IPSR_DATA(IP7_11_9, HIFD13), | ||
1091 | |||
1092 | PINMUX_IPSR_DATA(IP7_14_12, DU0_DG6), | ||
1093 | PINMUX_IPSR_MODSEL_DATA(IP7_14_12, RX3_C, SEL_SCIF3_2), | ||
1094 | PINMUX_IPSR_MODSEL_DATA(IP7_14_12, RMII0_RXD0_B, SEL_RMII_1), | ||
1095 | PINMUX_IPSR_MODSEL_DATA(IP7_14_12, TIOC3C_A, SEL_MTU2_CH3_0), | ||
1096 | PINMUX_IPSR_DATA(IP7_14_12, HIFD14), | ||
1097 | |||
1098 | PINMUX_IPSR_DATA(IP7_17_15, DU0_DG7), | ||
1099 | PINMUX_IPSR_MODSEL_DATA(IP7_17_15, TX3_C, SEL_SCIF3_2), | ||
1100 | PINMUX_IPSR_MODSEL_DATA(IP7_17_15, RMII0_RXD1_B, SEL_RMII_1), | ||
1101 | PINMUX_IPSR_MODSEL_DATA(IP7_17_15, TIOC3D_A, SEL_MTU2_CH3_0), | ||
1102 | PINMUX_IPSR_DATA(IP7_17_15, HIFD15), | ||
1103 | |||
1104 | PINMUX_IPSR_DATA(IP7_20_18, DU0_DB0), | ||
1105 | PINMUX_IPSR_MODSEL_DATA(IP7_20_18, RX4_C, SEL_SCIF4_2), | ||
1106 | PINMUX_IPSR_MODSEL_DATA(IP7_20_18, RMII0_TXD_EN_B, SEL_RMII_1), | ||
1107 | PINMUX_IPSR_MODSEL_DATA(IP7_20_18, TIOC4A_A, SEL_MTU2_CH4_0), | ||
1108 | PINMUX_IPSR_DATA(IP7_20_18, HIFCS), | ||
1109 | |||
1110 | PINMUX_IPSR_DATA(IP7_23_21, DU0_DB1), | ||
1111 | PINMUX_IPSR_MODSEL_DATA(IP7_23_21, TX4_C, SEL_SCIF4_2), | ||
1112 | PINMUX_IPSR_MODSEL_DATA(IP7_23_21, RMII0_TXD0_B, SEL_RMII_1), | ||
1113 | PINMUX_IPSR_MODSEL_DATA(IP7_23_21, TIOC4B_A, SEL_MTU2_CH4_0), | ||
1114 | PINMUX_IPSR_DATA(IP7_23_21, HIFWR), | ||
1115 | |||
1116 | PINMUX_IPSR_DATA(IP7_26_24, DU0_DB2), | ||
1117 | PINMUX_IPSR_MODSEL_DATA(IP7_26_24, RX5_B, SEL_SCIF5_1), | ||
1118 | PINMUX_IPSR_MODSEL_DATA(IP7_26_24, RMII0_TXD1_B, SEL_RMII_1), | ||
1119 | PINMUX_IPSR_MODSEL_DATA(IP7_26_24, TIOC4C_A, SEL_MTU2_CH4_0), | ||
1120 | |||
1121 | PINMUX_IPSR_DATA(IP7_28_27, DU0_DB3), | ||
1122 | PINMUX_IPSR_MODSEL_DATA(IP7_28_27, TX5_B, SEL_SCIF5_1), | ||
1123 | PINMUX_IPSR_MODSEL_DATA(IP7_28_27, TIOC4D_A, SEL_MTU2_CH4_0), | ||
1124 | PINMUX_IPSR_DATA(IP7_28_27, HIFRD), | ||
1125 | |||
1126 | PINMUX_IPSR_DATA(IP7_30_29, DU0_DB4), | ||
1127 | PINMUX_IPSR_DATA(IP7_30_29, HIFINT), | ||
1128 | |||
1129 | /* IPSR8 */ | ||
1130 | PINMUX_IPSR_DATA(IP8_1_0, DU0_DB5), | ||
1131 | PINMUX_IPSR_DATA(IP8_1_0, HIFDREQ), | ||
1132 | |||
1133 | PINMUX_IPSR_DATA(IP8_3_2, DU0_DB6), | ||
1134 | PINMUX_IPSR_DATA(IP8_3_2, HIFRDY), | ||
1135 | |||
1136 | PINMUX_IPSR_DATA(IP8_5_4, DU0_DB7), | ||
1137 | PINMUX_IPSR_MODSEL_DATA(IP8_5_4, SSI_SCK0_B, SEL_SSI0_1), | ||
1138 | PINMUX_IPSR_MODSEL_DATA(IP8_5_4, HIFEBL_B, SEL_HIF_1), | ||
1139 | |||
1140 | PINMUX_IPSR_DATA(IP8_7_6, DU0_DOTCLKIN), | ||
1141 | PINMUX_IPSR_MODSEL_DATA(IP8_7_6, HSPI_CS0_C, SEL_HSPI_2), | ||
1142 | PINMUX_IPSR_MODSEL_DATA(IP8_7_6, SSI_WS0_B, SEL_SSI0_1), | ||
1143 | |||
1144 | PINMUX_IPSR_DATA(IP8_9_8, DU0_DOTCLKOUT), | ||
1145 | PINMUX_IPSR_MODSEL_DATA(IP8_9_8, HSPI_CLK0_C, SEL_HSPI_2), | ||
1146 | PINMUX_IPSR_MODSEL_DATA(IP8_9_8, SSI_SDATA0_B, SEL_SSI0_1), | ||
1147 | |||
1148 | PINMUX_IPSR_DATA(IP8_11_10, DU0_EXHSYNC_DU0_HSYNC), | ||
1149 | PINMUX_IPSR_MODSEL_DATA(IP8_11_10, HSPI_TX0_C, SEL_HSPI_2), | ||
1150 | PINMUX_IPSR_MODSEL_DATA(IP8_11_10, SSI_SCK1_B, SEL_SSI1_1), | ||
1151 | |||
1152 | PINMUX_IPSR_DATA(IP8_13_12, DU0_EXVSYNC_DU0_VSYNC), | ||
1153 | PINMUX_IPSR_MODSEL_DATA(IP8_13_12, HSPI_RX0_C, SEL_HSPI_2), | ||
1154 | PINMUX_IPSR_MODSEL_DATA(IP8_13_12, SSI_WS1_B, SEL_SSI1_1), | ||
1155 | |||
1156 | PINMUX_IPSR_DATA(IP8_15_14, DU0_EXODDF_DU0_ODDF), | ||
1157 | PINMUX_IPSR_MODSEL_DATA(IP8_15_14, CAN0_RX_B, SEL_RCAN0_1), | ||
1158 | PINMUX_IPSR_MODSEL_DATA(IP8_15_14, HSCK0_B, SEL_HSCIF_1), | ||
1159 | PINMUX_IPSR_MODSEL_DATA(IP8_15_14, SSI_SDATA1_B, SEL_SSI1_1), | ||
1160 | |||
1161 | PINMUX_IPSR_DATA(IP8_17_16, DU0_DISP), | ||
1162 | PINMUX_IPSR_MODSEL_DATA(IP8_17_16, CAN0_TX_B, SEL_RCAN0_1), | ||
1163 | PINMUX_IPSR_MODSEL_DATA(IP8_17_16, HRX0_B, SEL_HSCIF_1), | ||
1164 | PINMUX_IPSR_MODSEL_DATA(IP8_17_16, AUDIO_CLKA_B, SEL_AUDIO_CLKA_1), | ||
1165 | |||
1166 | PINMUX_IPSR_DATA(IP8_19_18, DU0_CDE), | ||
1167 | PINMUX_IPSR_MODSEL_DATA(IP8_19_18, HTX0_B, SEL_HSCIF_1), | ||
1168 | PINMUX_IPSR_MODSEL_DATA(IP8_19_18, AUDIO_CLKB_B, SEL_AUDIO_CLKB_1), | ||
1169 | PINMUX_IPSR_MODSEL_DATA(IP8_19_18, LCD_VCPWC_B, SEL_LCDC_1), | ||
1170 | |||
1171 | PINMUX_IPSR_MODSEL_DATA(IP8_22_20, IRQ0_A, SEL_INTC_0), | ||
1172 | PINMUX_IPSR_MODSEL_DATA(IP8_22_20, HSPI_TX_B, SEL_HSPI_1), | ||
1173 | PINMUX_IPSR_MODSEL_DATA(IP8_22_20, RX3_E, SEL_SCIF3_4), | ||
1174 | PINMUX_IPSR_DATA(IP8_22_20, ET0_ERXD0), | ||
1175 | |||
1176 | PINMUX_IPSR_MODSEL_DATA(IP8_25_23, IRQ1_A, SEL_INTC_0), | ||
1177 | PINMUX_IPSR_MODSEL_DATA(IP8_25_23, HSPI_RX_B, SEL_HSPI_1), | ||
1178 | PINMUX_IPSR_MODSEL_DATA(IP8_25_23, TX3_E, SEL_SCIF3_4), | ||
1179 | PINMUX_IPSR_DATA(IP8_25_23, ET0_ERXD1), | ||
1180 | |||
1181 | PINMUX_IPSR_MODSEL_DATA(IP8_27_26, IRQ2_A, SEL_INTC_0), | ||
1182 | PINMUX_IPSR_MODSEL_DATA(IP8_27_26, CTS0_A, SEL_SCIF0_0), | ||
1183 | PINMUX_IPSR_MODSEL_DATA(IP8_27_26, HCTS0_B, SEL_HSCIF_1), | ||
1184 | PINMUX_IPSR_MODSEL_DATA(IP8_27_26, ET0_ERXD2_A, SEL_ET0_0), | ||
1185 | |||
1186 | PINMUX_IPSR_MODSEL_DATA(IP8_29_28, IRQ3_A, SEL_INTC_0), | ||
1187 | PINMUX_IPSR_MODSEL_DATA(IP8_29_28, RTS0_A, SEL_SCIF0_0), | ||
1188 | PINMUX_IPSR_MODSEL_DATA(IP8_29_28, HRTS0_B, SEL_HSCIF_1), | ||
1189 | PINMUX_IPSR_MODSEL_DATA(IP8_29_28, ET0_ERXD3_A, SEL_ET0_0), | ||
1190 | |||
1191 | /* IPSR9 */ | ||
1192 | PINMUX_IPSR_MODSEL_DATA(IP9_1_0, VI1_CLK_A, SEL_VIN1_0), | ||
1193 | PINMUX_IPSR_MODSEL_DATA(IP9_1_0, FD0_B, SEL_FLCTL_1), | ||
1194 | PINMUX_IPSR_MODSEL_DATA(IP9_1_0, LCD_DATA0_B, SEL_LCDC_1), | ||
1195 | |||
1196 | PINMUX_IPSR_MODSEL_DATA(IP9_3_2, VI1_0_A, SEL_VIN1_0), | ||
1197 | PINMUX_IPSR_MODSEL_DATA(IP9_3_2, FD1_B, SEL_FLCTL_1), | ||
1198 | PINMUX_IPSR_MODSEL_DATA(IP9_3_2, LCD_DATA1_B, SEL_LCDC_1), | ||
1199 | |||
1200 | PINMUX_IPSR_MODSEL_DATA(IP9_5_4, VI1_1_A, SEL_VIN1_0), | ||
1201 | PINMUX_IPSR_MODSEL_DATA(IP9_5_4, FD2_B, SEL_FLCTL_1), | ||
1202 | PINMUX_IPSR_MODSEL_DATA(IP9_5_4, LCD_DATA2_B, SEL_LCDC_1), | ||
1203 | |||
1204 | PINMUX_IPSR_MODSEL_DATA(IP9_7_6, VI1_2_A, SEL_VIN1_0), | ||
1205 | PINMUX_IPSR_MODSEL_DATA(IP9_7_6, FD3_B, SEL_FLCTL_1), | ||
1206 | PINMUX_IPSR_MODSEL_DATA(IP9_7_6, LCD_DATA3_B, SEL_LCDC_1), | ||
1207 | |||
1208 | PINMUX_IPSR_MODSEL_DATA(IP9_9_8, VI1_3_A, SEL_VIN1_0), | ||
1209 | PINMUX_IPSR_MODSEL_DATA(IP9_9_8, FD4_B, SEL_FLCTL_1), | ||
1210 | PINMUX_IPSR_MODSEL_DATA(IP9_9_8, LCD_DATA4_B, SEL_LCDC_1), | ||
1211 | |||
1212 | PINMUX_IPSR_MODSEL_DATA(IP9_11_10, VI1_4_A, SEL_VIN1_0), | ||
1213 | PINMUX_IPSR_MODSEL_DATA(IP9_11_10, FD5_B, SEL_FLCTL_1), | ||
1214 | PINMUX_IPSR_MODSEL_DATA(IP9_11_10, LCD_DATA5_B, SEL_LCDC_1), | ||
1215 | |||
1216 | PINMUX_IPSR_MODSEL_DATA(IP9_13_12, VI1_5_A, SEL_VIN1_0), | ||
1217 | PINMUX_IPSR_MODSEL_DATA(IP9_13_12, FD6_B, SEL_FLCTL_1), | ||
1218 | PINMUX_IPSR_MODSEL_DATA(IP9_13_12, LCD_DATA6_B, SEL_LCDC_1), | ||
1219 | |||
1220 | PINMUX_IPSR_MODSEL_DATA(IP9_15_14, VI1_6_A, SEL_VIN1_0), | ||
1221 | PINMUX_IPSR_MODSEL_DATA(IP9_15_14, FD7_B, SEL_FLCTL_1), | ||
1222 | PINMUX_IPSR_MODSEL_DATA(IP9_15_14, LCD_DATA7_B, SEL_LCDC_1), | ||
1223 | |||
1224 | PINMUX_IPSR_MODSEL_DATA(IP9_17_16, VI1_7_A, SEL_VIN1_0), | ||
1225 | PINMUX_IPSR_MODSEL_DATA(IP9_17_16, FCE_B, SEL_FLCTL_1), | ||
1226 | PINMUX_IPSR_MODSEL_DATA(IP9_17_16, LCD_DATA8_B, SEL_LCDC_1), | ||
1227 | |||
1228 | PINMUX_IPSR_MODSEL_DATA(IP9_19_18, SSI_SCK0_A, SEL_SSI0_0), | ||
1229 | PINMUX_IPSR_MODSEL_DATA(IP9_19_18, TIOC1A_B, SEL_MTU2_CH1_1), | ||
1230 | PINMUX_IPSR_MODSEL_DATA(IP9_19_18, LCD_DATA9_B, SEL_LCDC_1), | ||
1231 | |||
1232 | PINMUX_IPSR_MODSEL_DATA(IP9_21_20, SSI_WS0_A, SEL_SSI0_0), | ||
1233 | PINMUX_IPSR_MODSEL_DATA(IP9_21_20, TIOC1B_B, SEL_MTU2_CH1_1), | ||
1234 | PINMUX_IPSR_MODSEL_DATA(IP9_21_20, LCD_DATA10_B, SEL_LCDC_1), | ||
1235 | |||
1236 | PINMUX_IPSR_MODSEL_DATA(IP9_23_22, SSI_SDATA0_A, SEL_SSI0_0), | ||
1237 | PINMUX_IPSR_MODSEL_DATA(IP9_23_22, VI1_0_B, SEL_VIN1_1), | ||
1238 | PINMUX_IPSR_MODSEL_DATA(IP9_23_22, TIOC2A_B, SEL_MTU2_CH2_1), | ||
1239 | PINMUX_IPSR_MODSEL_DATA(IP9_23_22, LCD_DATA11_B, SEL_LCDC_1), | ||
1240 | |||
1241 | PINMUX_IPSR_MODSEL_DATA(IP9_25_24, SSI_SCK1_A, SEL_SSI1_0), | ||
1242 | PINMUX_IPSR_MODSEL_DATA(IP9_25_24, VI1_1_B, SEL_VIN1_1), | ||
1243 | PINMUX_IPSR_MODSEL_DATA(IP9_25_24, TIOC2B_B, SEL_MTU2_CH2_1), | ||
1244 | PINMUX_IPSR_MODSEL_DATA(IP9_25_24, LCD_DATA12_B, SEL_LCDC_1), | ||
1245 | |||
1246 | PINMUX_IPSR_MODSEL_DATA(IP9_27_26, SSI_WS1_A, SEL_SSI1_0), | ||
1247 | PINMUX_IPSR_MODSEL_DATA(IP9_27_26, VI1_2_B, SEL_VIN1_1), | ||
1248 | PINMUX_IPSR_MODSEL_DATA(IP9_27_26, LCD_DATA13_B, SEL_LCDC_1), | ||
1249 | |||
1250 | PINMUX_IPSR_MODSEL_DATA(IP9_29_28, SSI_SDATA1_A, SEL_SSI1_0), | ||
1251 | PINMUX_IPSR_MODSEL_DATA(IP9_29_28, VI1_3_B, SEL_VIN1_1), | ||
1252 | PINMUX_IPSR_MODSEL_DATA(IP9_29_28, LCD_DATA14_B, SEL_LCDC_1), | ||
1253 | |||
1254 | /* IPSE10 */ | ||
1255 | PINMUX_IPSR_DATA(IP10_2_0, SSI_SCK23), | ||
1256 | PINMUX_IPSR_MODSEL_DATA(IP10_2_0, VI1_4_B, SEL_VIN1_1), | ||
1257 | PINMUX_IPSR_MODSEL_DATA(IP10_2_0, RX1_D, SEL_SCIF1_3), | ||
1258 | PINMUX_IPSR_MODSEL_DATA(IP10_2_0, FCLE_B, SEL_FLCTL_1), | ||
1259 | PINMUX_IPSR_MODSEL_DATA(IP10_2_0, LCD_DATA15_B, SEL_LCDC_1), | ||
1260 | |||
1261 | PINMUX_IPSR_DATA(IP10_5_3, SSI_WS23), | ||
1262 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, VI1_5_B, SEL_VIN1_1), | ||
1263 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, TX1_D, SEL_SCIF1_3), | ||
1264 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, HSCK0_C, SEL_HSCIF_2), | ||
1265 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, FALE_B, SEL_FLCTL_1), | ||
1266 | PINMUX_IPSR_MODSEL_DATA(IP10_5_3, LCD_DON_B, SEL_LCDC_1), | ||
1267 | |||
1268 | PINMUX_IPSR_DATA(IP10_8_6, SSI_SDATA2), | ||
1269 | PINMUX_IPSR_MODSEL_DATA(IP10_8_6, VI1_6_B, SEL_VIN1_1), | ||
1270 | PINMUX_IPSR_MODSEL_DATA(IP10_8_6, HRX0_C, SEL_HSCIF_2), | ||
1271 | PINMUX_IPSR_MODSEL_DATA(IP10_8_6, FRE_B, SEL_FLCTL_1), | ||
1272 | PINMUX_IPSR_MODSEL_DATA(IP10_8_6, LCD_CL1_B, SEL_LCDC_1), | ||
1273 | |||
1274 | PINMUX_IPSR_DATA(IP10_11_9, SSI_SDATA3), | ||
1275 | PINMUX_IPSR_MODSEL_DATA(IP10_11_9, VI1_7_B, SEL_VIN1_1), | ||
1276 | PINMUX_IPSR_MODSEL_DATA(IP10_11_9, HTX0_C, SEL_HSCIF_2), | ||
1277 | PINMUX_IPSR_MODSEL_DATA(IP10_11_9, FWE_B, SEL_FLCTL_1), | ||
1278 | PINMUX_IPSR_MODSEL_DATA(IP10_11_9, LCD_CL2_B, SEL_LCDC_1), | ||
1279 | |||
1280 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, AUDIO_CLKA_A, SEL_AUDIO_CLKA_0), | ||
1281 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, VI1_CLK_B, SEL_VIN1_1), | ||
1282 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, SCK1_D, SEL_SCIF1_3), | ||
1283 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, IECLK_B, SEL_IEBUS_1), | ||
1284 | PINMUX_IPSR_MODSEL_DATA(IP10_14_12, LCD_FLM_B, SEL_LCDC_1), | ||
1285 | |||
1286 | PINMUX_IPSR_MODSEL_DATA(IP10_15, AUDIO_CLKB_A, SEL_AUDIO_CLKB_0), | ||
1287 | PINMUX_IPSR_MODSEL_DATA(IP10_15, LCD_CLK_B, SEL_LCDC_1), | ||
1288 | |||
1289 | PINMUX_IPSR_DATA(IP10_18_16, AUDIO_CLKC), | ||
1290 | PINMUX_IPSR_MODSEL_DATA(IP10_18_16, SCK1_E, SEL_SCIF1_4), | ||
1291 | PINMUX_IPSR_MODSEL_DATA(IP10_18_16, HCTS0_C, SEL_HSCIF_2), | ||
1292 | PINMUX_IPSR_MODSEL_DATA(IP10_18_16, FRB_B, SEL_FLCTL_1), | ||
1293 | PINMUX_IPSR_MODSEL_DATA(IP10_18_16, LCD_VEPWC_B, SEL_LCDC_1), | ||
1294 | |||
1295 | PINMUX_IPSR_DATA(IP10_21_19, AUDIO_CLKOUT), | ||
1296 | PINMUX_IPSR_MODSEL_DATA(IP10_21_19, TX1_E, SEL_SCIF1_4), | ||
1297 | PINMUX_IPSR_MODSEL_DATA(IP10_21_19, HRTS0_C, SEL_HSCIF_2), | ||
1298 | PINMUX_IPSR_MODSEL_DATA(IP10_21_19, FSE_B, SEL_FLCTL_1), | ||
1299 | PINMUX_IPSR_MODSEL_DATA(IP10_21_19, LCD_M_DISP_B, SEL_LCDC_1), | ||
1300 | |||
1301 | PINMUX_IPSR_MODSEL_DATA(IP10_22, CAN_CLK_A, SEL_RCAN_CLK_0), | ||
1302 | PINMUX_IPSR_MODSEL_DATA(IP10_22, RX4_D, SEL_SCIF4_3), | ||
1303 | |||
1304 | PINMUX_IPSR_MODSEL_DATA(IP10_24_23, CAN0_TX_A, SEL_RCAN0_0), | ||
1305 | PINMUX_IPSR_MODSEL_DATA(IP10_24_23, TX4_D, SEL_SCIF4_3), | ||
1306 | PINMUX_IPSR_DATA(IP10_24_23, MLB_CLK), | ||
1307 | |||
1308 | PINMUX_IPSR_MODSEL_DATA(IP10_25, CAN1_RX_A, SEL_RCAN1_0), | ||
1309 | PINMUX_IPSR_MODSEL_DATA(IP10_25, IRQ1_B, SEL_INTC_1), | ||
1310 | |||
1311 | PINMUX_IPSR_MODSEL_DATA(IP10_27_26, CAN0_RX_A, SEL_RCAN0_0), | ||
1312 | PINMUX_IPSR_MODSEL_DATA(IP10_27_26, IRQ0_B, SEL_INTC_1), | ||
1313 | PINMUX_IPSR_DATA(IP10_27_26, MLB_SIG), | ||
1314 | |||
1315 | PINMUX_IPSR_MODSEL_DATA(IP10_29_28, CAN1_TX_A, SEL_RCAN1_0), | ||
1316 | PINMUX_IPSR_MODSEL_DATA(IP10_29_28, TX5_C, SEL_SCIF1_2), | ||
1317 | PINMUX_IPSR_DATA(IP10_29_28, MLB_DAT), | ||
1318 | |||
1319 | /* IPSR11 */ | ||
1320 | PINMUX_IPSR_DATA(IP11_0, SCL1), | ||
1321 | PINMUX_IPSR_MODSEL_DATA(IP11_0, SCIF_CLK_C, SEL_SCIF_CLK_2), | ||
1322 | |||
1323 | PINMUX_IPSR_DATA(IP11_1, SDA1), | ||
1324 | PINMUX_IPSR_MODSEL_DATA(IP11_0, RX1_E, SEL_SCIF1_4), | ||
1325 | |||
1326 | PINMUX_IPSR_DATA(IP11_2, SDA0), | ||
1327 | PINMUX_IPSR_MODSEL_DATA(IP11_2, HIFEBL_A, SEL_HIF_0), | ||
1328 | |||
1329 | PINMUX_IPSR_DATA(IP11_3, SDSELF), | ||
1330 | PINMUX_IPSR_MODSEL_DATA(IP11_3, RTS1_E, SEL_SCIF1_3), | ||
1331 | |||
1332 | PINMUX_IPSR_MODSEL_DATA(IP11_6_4, SCIF_CLK_A, SEL_SCIF_CLK_0), | ||
1333 | PINMUX_IPSR_MODSEL_DATA(IP11_6_4, HSPI_CLK_A, SEL_HSPI_0), | ||
1334 | PINMUX_IPSR_DATA(IP11_6_4, VI0_CLK), | ||
1335 | PINMUX_IPSR_MODSEL_DATA(IP11_6_4, RMII0_TXD0_A, SEL_RMII_0), | ||
1336 | PINMUX_IPSR_DATA(IP11_6_4, ET0_ERXD4), | ||
1337 | |||
1338 | PINMUX_IPSR_MODSEL_DATA(IP11_9_7, SCK0_A, SEL_SCIF0_0), | ||
1339 | PINMUX_IPSR_MODSEL_DATA(IP11_9_7, HSPI_CS_A, SEL_HSPI_0), | ||
1340 | PINMUX_IPSR_DATA(IP11_9_7, VI0_CLKENB), | ||
1341 | PINMUX_IPSR_MODSEL_DATA(IP11_9_7, RMII0_TXD1_A, SEL_RMII_0), | ||
1342 | PINMUX_IPSR_DATA(IP11_9_7, ET0_ERXD5), | ||
1343 | |||
1344 | PINMUX_IPSR_MODSEL_DATA(IP11_11_10, RX0_A, SEL_SCIF0_0), | ||
1345 | PINMUX_IPSR_MODSEL_DATA(IP11_11_10, HSPI_RX_A, SEL_HSPI_0), | ||
1346 | PINMUX_IPSR_MODSEL_DATA(IP11_11_10, RMII0_RXD0_A, SEL_RMII_0), | ||
1347 | PINMUX_IPSR_DATA(IP11_11_10, ET0_ERXD6), | ||
1348 | |||
1349 | PINMUX_IPSR_MODSEL_DATA(IP11_12, TX0_A, SEL_SCIF0_0), | ||
1350 | PINMUX_IPSR_MODSEL_DATA(IP11_12, HSPI_TX_A, SEL_HSPI_0), | ||
1351 | |||
1352 | PINMUX_IPSR_DATA(IP11_15_13, PENC1), | ||
1353 | PINMUX_IPSR_MODSEL_DATA(IP11_15_13, TX3_D, SEL_SCIF3_3), | ||
1354 | PINMUX_IPSR_MODSEL_DATA(IP11_15_13, CAN1_TX_B, SEL_RCAN1_1), | ||
1355 | PINMUX_IPSR_MODSEL_DATA(IP11_15_13, TX5_D, SEL_SCIF5_3), | ||
1356 | PINMUX_IPSR_MODSEL_DATA(IP11_15_13, IETX_B, SEL_IEBUS_1), | ||
1357 | |||
1358 | PINMUX_IPSR_DATA(IP11_18_16, USB_OVC1), | ||
1359 | PINMUX_IPSR_MODSEL_DATA(IP11_18_16, RX3_D, SEL_SCIF3_3), | ||
1360 | PINMUX_IPSR_MODSEL_DATA(IP11_18_16, CAN1_RX_B, SEL_RCAN1_1), | ||
1361 | PINMUX_IPSR_MODSEL_DATA(IP11_18_16, RX5_D, SEL_SCIF5_3), | ||
1362 | PINMUX_IPSR_MODSEL_DATA(IP11_18_16, IERX_B, SEL_IEBUS_1), | ||
1363 | |||
1364 | PINMUX_IPSR_DATA(IP11_20_19, DREQ0), | ||
1365 | PINMUX_IPSR_MODSEL_DATA(IP11_20_19, SD1_CLK_A, SEL_SDHI1_0), | ||
1366 | PINMUX_IPSR_DATA(IP11_20_19, ET0_TX_EN), | ||
1367 | |||
1368 | PINMUX_IPSR_DATA(IP11_22_21, DACK0), | ||
1369 | PINMUX_IPSR_MODSEL_DATA(IP11_22_21, SD1_DAT3_A, SEL_SDHI1_0), | ||
1370 | PINMUX_IPSR_DATA(IP11_22_21, ET0_TX_ER), | ||
1371 | |||
1372 | PINMUX_IPSR_DATA(IP11_25_23, DREQ1), | ||
1373 | PINMUX_IPSR_MODSEL_DATA(IP11_25_23, HSPI_CLK_B, SEL_HSPI_1), | ||
1374 | PINMUX_IPSR_MODSEL_DATA(IP11_25_23, RX4_B, SEL_SCIF4_1), | ||
1375 | PINMUX_IPSR_MODSEL_DATA(IP11_25_23, ET0_PHY_INT_C, SEL_ET0_CTL_0), | ||
1376 | PINMUX_IPSR_MODSEL_DATA(IP11_25_23, ET0_TX_CLK_A, SEL_ET0_0), | ||
1377 | |||
1378 | PINMUX_IPSR_DATA(IP11_27_26, DACK1), | ||
1379 | PINMUX_IPSR_MODSEL_DATA(IP11_27_26, HSPI_CS_B, SEL_HSPI_1), | ||
1380 | PINMUX_IPSR_MODSEL_DATA(IP11_27_26, TX4_B, SEL_SCIF3_1), | ||
1381 | PINMUX_IPSR_MODSEL_DATA(IP11_27_26, ET0_RX_CLK_A, SEL_ET0_0), | ||
1382 | |||
1383 | PINMUX_IPSR_DATA(IP11_28, PRESETOUT), | ||
1384 | PINMUX_IPSR_DATA(IP11_28, ST_CLKOUT), | ||
1385 | }; | ||
1386 | |||
1387 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1388 | PINMUX_GPIO_GP_ALL(), | ||
1389 | |||
1390 | GPIO_FN(CLKOUT), GPIO_FN(BS), GPIO_FN(CS0), GPIO_FN(EX_CS0), | ||
1391 | GPIO_FN(RD), GPIO_FN(WE0), GPIO_FN(WE1), | ||
1392 | GPIO_FN(SCL0), GPIO_FN(PENC0), GPIO_FN(USB_OVC0), | ||
1393 | GPIO_FN(IRQ2_B), GPIO_FN(IRQ3_B), | ||
1394 | |||
1395 | /* IPSR0 */ | ||
1396 | GPIO_FN(A0), GPIO_FN(ST0_CLKIN), GPIO_FN(LCD_DATA0_A), | ||
1397 | GPIO_FN(TCLKA_C), | ||
1398 | GPIO_FN(A1), GPIO_FN(ST0_REQ), GPIO_FN(LCD_DATA1_A), | ||
1399 | GPIO_FN(TCLKB_C), | ||
1400 | GPIO_FN(A2), GPIO_FN(ST0_SYC), GPIO_FN(LCD_DATA2_A), | ||
1401 | GPIO_FN(TCLKC_C), | ||
1402 | GPIO_FN(A3), GPIO_FN(ST0_VLD), GPIO_FN(LCD_DATA3_A), | ||
1403 | GPIO_FN(TCLKD_C), | ||
1404 | GPIO_FN(A4), GPIO_FN(ST0_D0), GPIO_FN(LCD_DATA4_A), | ||
1405 | GPIO_FN(TIOC0A_C), | ||
1406 | GPIO_FN(A5), GPIO_FN(ST0_D1), GPIO_FN(LCD_DATA5_A), | ||
1407 | GPIO_FN(TIOC0B_C), | ||
1408 | GPIO_FN(A6), GPIO_FN(ST0_D2), GPIO_FN(LCD_DATA6_A), | ||
1409 | GPIO_FN(TIOC0C_C), | ||
1410 | GPIO_FN(A7), GPIO_FN(ST0_D3), GPIO_FN(LCD_DATA7_A), | ||
1411 | GPIO_FN(TIOC0D_C), | ||
1412 | GPIO_FN(A8), GPIO_FN(ST0_D4), GPIO_FN(LCD_DATA8_A), | ||
1413 | GPIO_FN(TIOC1A_C), | ||
1414 | GPIO_FN(A9), GPIO_FN(ST0_D5), GPIO_FN(LCD_DATA9_A), | ||
1415 | GPIO_FN(TIOC1B_C), | ||
1416 | GPIO_FN(A10), GPIO_FN(ST0_D6), GPIO_FN(LCD_DATA10_A), | ||
1417 | GPIO_FN(TIOC2A_C), | ||
1418 | GPIO_FN(A11), GPIO_FN(ST0_D7), GPIO_FN(LCD_DATA11_A), | ||
1419 | GPIO_FN(TIOC2B_C), | ||
1420 | GPIO_FN(A12), GPIO_FN(LCD_DATA12_A), GPIO_FN(TIOC3A_C), | ||
1421 | GPIO_FN(A13), GPIO_FN(LCD_DATA13_A), GPIO_FN(TIOC3B_C), | ||
1422 | GPIO_FN(A14), GPIO_FN(LCD_DATA14_A), GPIO_FN(TIOC3C_C), | ||
1423 | GPIO_FN(A15), GPIO_FN(ST0_VCO_CLKIN), GPIO_FN(LCD_DATA15_A), | ||
1424 | GPIO_FN(TIOC3D_C), | ||
1425 | |||
1426 | /* IPSR1 */ | ||
1427 | GPIO_FN(A16), GPIO_FN(ST0_PWM), GPIO_FN(LCD_DON_A), | ||
1428 | GPIO_FN(TIOC4A_C), | ||
1429 | GPIO_FN(A17), GPIO_FN(ST1_VCO_CLKIN), GPIO_FN(LCD_CL1_A), | ||
1430 | GPIO_FN(TIOC4B_C), | ||
1431 | GPIO_FN(A18), GPIO_FN(ST1_PWM), GPIO_FN(LCD_CL2_A), | ||
1432 | GPIO_FN(TIOC4C_C), | ||
1433 | GPIO_FN(A19), GPIO_FN(ST1_CLKIN), GPIO_FN(LCD_CLK_A), | ||
1434 | GPIO_FN(TIOC4D_C), | ||
1435 | GPIO_FN(A20), GPIO_FN(ST1_REQ), GPIO_FN(LCD_FLM_A), | ||
1436 | GPIO_FN(A21), GPIO_FN(ST1_SYC), GPIO_FN(LCD_VCPWC_A), | ||
1437 | GPIO_FN(A22), GPIO_FN(ST1_VLD), GPIO_FN(LCD_VEPWC_A), | ||
1438 | GPIO_FN(A23), GPIO_FN(ST1_D0), GPIO_FN(LCD_M_DISP_A), | ||
1439 | GPIO_FN(A24), GPIO_FN(RX2_D), GPIO_FN(ST1_D1), | ||
1440 | GPIO_FN(A25), GPIO_FN(TX2_D), GPIO_FN(ST1_D2), | ||
1441 | GPIO_FN(D0), GPIO_FN(SD0_DAT0_A), GPIO_FN(MMC_D0_A), | ||
1442 | GPIO_FN(ST1_D3), GPIO_FN(FD0_A), | ||
1443 | GPIO_FN(D1), GPIO_FN(SD0_DAT1_A), GPIO_FN(MMC_D1_A), | ||
1444 | GPIO_FN(ST1_D4), GPIO_FN(FD1_A), | ||
1445 | GPIO_FN(D2), GPIO_FN(SD0_DAT2_A), GPIO_FN(MMC_D2_A), | ||
1446 | GPIO_FN(ST1_D5), GPIO_FN(FD2_A), | ||
1447 | GPIO_FN(D3), GPIO_FN(SD0_DAT3_A), GPIO_FN(MMC_D3_A), | ||
1448 | GPIO_FN(ST1_D6), GPIO_FN(FD3_A), | ||
1449 | |||
1450 | /* IPSR2 */ | ||
1451 | GPIO_FN(D4), GPIO_FN(SD0_CD_A), GPIO_FN(MMC_D4_A), GPIO_FN(ST1_D7), | ||
1452 | GPIO_FN(FD4_A), | ||
1453 | GPIO_FN(D5), GPIO_FN(SD0_WP_A), GPIO_FN(MMC_D5_A), GPIO_FN(FD5_A), | ||
1454 | GPIO_FN(D6), GPIO_FN(RSPI_RSPCK_A), GPIO_FN(MMC_D6_A), | ||
1455 | GPIO_FN(QSPCLK_A), | ||
1456 | GPIO_FN(FD6_A), | ||
1457 | GPIO_FN(D7), GPIO_FN(RSPI_SSL_A), GPIO_FN(MMC_D7_A), GPIO_FN(QSSL_A), | ||
1458 | GPIO_FN(FD7_A), | ||
1459 | GPIO_FN(D8), GPIO_FN(SD0_CLK_A), GPIO_FN(MMC_CLK_A), GPIO_FN(QIO2_A), | ||
1460 | GPIO_FN(FCE_A), GPIO_FN(ET0_GTX_CLK_B), | ||
1461 | GPIO_FN(D9), GPIO_FN(SD0_CMD_A), GPIO_FN(MMC_CMD_A), GPIO_FN(QIO3_A), | ||
1462 | GPIO_FN(FCLE_A), GPIO_FN(ET0_ETXD1_B), | ||
1463 | GPIO_FN(D10), GPIO_FN(RSPI_MOSI_A), GPIO_FN(QMO_QIO0_A), | ||
1464 | GPIO_FN(FALE_A), GPIO_FN(ET0_ETXD2_B), | ||
1465 | GPIO_FN(D11), GPIO_FN(RSPI_MISO_A), GPIO_FN(QMI_QIO1_A), GPIO_FN(FRE_A), | ||
1466 | GPIO_FN(ET0_ETXD3_B), | ||
1467 | GPIO_FN(D12), GPIO_FN(FWE_A), GPIO_FN(ET0_ETXD5_B), | ||
1468 | GPIO_FN(D13), GPIO_FN(RX2_B), GPIO_FN(FRB_A), GPIO_FN(ET0_ETXD6_B), | ||
1469 | GPIO_FN(D14), GPIO_FN(TX2_B), GPIO_FN(FSE_A), GPIO_FN(ET0_TX_CLK_B), | ||
1470 | |||
1471 | /* IPSR3 */ | ||
1472 | GPIO_FN(D15), GPIO_FN(SCK2_B), | ||
1473 | GPIO_FN(CS1_A26), GPIO_FN(QIO3_B), | ||
1474 | GPIO_FN(EX_CS1), GPIO_FN(RX3_B), GPIO_FN(ATACS0), GPIO_FN(QIO2_B), | ||
1475 | GPIO_FN(ET0_ETXD0), | ||
1476 | GPIO_FN(EX_CS2), GPIO_FN(TX3_B), GPIO_FN(ATACS1), GPIO_FN(QSPCLK_B), | ||
1477 | GPIO_FN(ET0_GTX_CLK_A), | ||
1478 | GPIO_FN(EX_CS3), GPIO_FN(SD1_CD_A), GPIO_FN(ATARD), GPIO_FN(QMO_QIO0_B), | ||
1479 | GPIO_FN(ET0_ETXD1_A), | ||
1480 | GPIO_FN(EX_CS4), GPIO_FN(SD1_WP_A), GPIO_FN(ATAWR), GPIO_FN(QMI_QIO1_B), | ||
1481 | GPIO_FN(ET0_ETXD2_A), | ||
1482 | GPIO_FN(EX_CS5), GPIO_FN(SD1_CMD_A), GPIO_FN(ATADIR), GPIO_FN(QSSL_B), | ||
1483 | GPIO_FN(ET0_ETXD3_A), | ||
1484 | GPIO_FN(RD_WR), GPIO_FN(TCLK1_B), | ||
1485 | GPIO_FN(EX_WAIT0), GPIO_FN(TCLK1_B), | ||
1486 | GPIO_FN(EX_WAIT1), GPIO_FN(SD1_DAT0_A), GPIO_FN(DREQ2), | ||
1487 | GPIO_FN(CAN1_TX_C), GPIO_FN(ET0_LINK_C), GPIO_FN(ET0_ETXD5_A), | ||
1488 | GPIO_FN(EX_WAIT2), GPIO_FN(SD1_DAT1_A), GPIO_FN(DACK2), | ||
1489 | GPIO_FN(CAN1_RX_C), GPIO_FN(ET0_MAGIC_C), GPIO_FN(ET0_ETXD6_A), | ||
1490 | GPIO_FN(DRACK0), GPIO_FN(SD1_DAT2_A), GPIO_FN(ATAG), GPIO_FN(TCLK1_A), | ||
1491 | GPIO_FN(ET0_ETXD7), | ||
1492 | |||
1493 | /* IPSR4 */ | ||
1494 | GPIO_FN(HCTS0_A), GPIO_FN(CTS1_A), GPIO_FN(VI0_FIELD), | ||
1495 | GPIO_FN(RMII0_RXD1_A), GPIO_FN(ET0_ERXD7), | ||
1496 | GPIO_FN(HRTS0_A), GPIO_FN(RTS1_A), GPIO_FN(VI0_HSYNC), | ||
1497 | GPIO_FN(RMII0_TXD_EN_A), GPIO_FN(ET0_RX_DV), | ||
1498 | GPIO_FN(HSCK0_A), GPIO_FN(SCK1_A), GPIO_FN(VI0_VSYNC), | ||
1499 | GPIO_FN(RMII0_RX_ER_A), GPIO_FN(ET0_RX_ER), | ||
1500 | GPIO_FN(HRX0_A), GPIO_FN(RX1_A), GPIO_FN(VI0_DATA0_VI0_B0), | ||
1501 | GPIO_FN(RMII0_CRS_DV_A), GPIO_FN(ET0_CRS), | ||
1502 | GPIO_FN(HTX0_A), GPIO_FN(TX1_A), GPIO_FN(VI0_DATA1_VI0_B1), | ||
1503 | GPIO_FN(RMII0_MDC_A), GPIO_FN(ET0_COL), | ||
1504 | GPIO_FN(CTS0_B), GPIO_FN(VI0_DATA2_VI0_B2), GPIO_FN(RMII0_MDIO_A), | ||
1505 | GPIO_FN(ET0_MDC), | ||
1506 | GPIO_FN(RTS0_B), GPIO_FN(VI0_DATA3_VI0_B3), GPIO_FN(ET0_MDIO_A), | ||
1507 | GPIO_FN(SCK1_B), GPIO_FN(VI0_DATA4_VI0_B4), GPIO_FN(ET0_LINK_A), | ||
1508 | GPIO_FN(RX1_B), GPIO_FN(VI0_DATA5_VI0_B5), GPIO_FN(ET0_MAGIC_A), | ||
1509 | GPIO_FN(TX1_B), GPIO_FN(VI0_DATA6_VI0_G0), GPIO_FN(ET0_PHY_INT_A), | ||
1510 | GPIO_FN(CTS1_B), GPIO_FN(VI0_DATA7_VI0_G1), | ||
1511 | GPIO_FN(RTS1_B), GPIO_FN(VI0_G2), | ||
1512 | GPIO_FN(SCK2_A), GPIO_FN(VI0_G3), | ||
1513 | |||
1514 | /* IPSR5 */ | ||
1515 | GPIO_FN(REF50CK), GPIO_FN(CTS1_E), GPIO_FN(HCTS0_D), | ||
1516 | GPIO_FN(REF125CK), GPIO_FN(ADTRG), GPIO_FN(RX5_C), | ||
1517 | GPIO_FN(SD2_WP_A), GPIO_FN(TX5_A), GPIO_FN(VI0_R5), | ||
1518 | GPIO_FN(SD2_CD_A), GPIO_FN(RX5_A), GPIO_FN(VI0_R4), | ||
1519 | GPIO_FN(ET0_PHY_INT_B), | ||
1520 | GPIO_FN(SD2_DAT3_A), GPIO_FN(TX4_A), GPIO_FN(VI0_R3), | ||
1521 | GPIO_FN(ET0_MAGIC_B), | ||
1522 | GPIO_FN(SD2_DAT2_A), GPIO_FN(RX4_A), GPIO_FN(VI0_R2), | ||
1523 | GPIO_FN(ET0_LINK_B), | ||
1524 | GPIO_FN(SD2_DAT1_A), GPIO_FN(TX3_A), GPIO_FN(VI0_R1), | ||
1525 | GPIO_FN(ET0_MDIO_B), | ||
1526 | GPIO_FN(SD2_DAT0_A), GPIO_FN(RX3_A), GPIO_FN(VI0_R0), | ||
1527 | GPIO_FN(ET0_ERXD3_B), | ||
1528 | GPIO_FN(SD2_CMD_A), GPIO_FN(TX2_A), GPIO_FN(VI0_G5), | ||
1529 | GPIO_FN(ET0_ERXD2_B), | ||
1530 | GPIO_FN(SD2_CLK_A), GPIO_FN(RX2_A), GPIO_FN(VI0_G4), | ||
1531 | GPIO_FN(ET0_RX_CLK_B), | ||
1532 | |||
1533 | /* IPSR6 */ | ||
1534 | GPIO_FN(DU0_DG1), GPIO_FN(CTS1_C), GPIO_FN(HRTS0_D), | ||
1535 | GPIO_FN(TIOC1B_A), GPIO_FN(HIFD09), | ||
1536 | GPIO_FN(DU0_DG0), GPIO_FN(TX1_C), GPIO_FN(HSCK0_D), | ||
1537 | GPIO_FN(IECLK_A), GPIO_FN(TIOC1A_A), GPIO_FN(HIFD08), | ||
1538 | GPIO_FN(DU0_DR7), GPIO_FN(RX1_C), GPIO_FN(TIOC0D_A), | ||
1539 | GPIO_FN(HIFD07), | ||
1540 | GPIO_FN(DU0_DR6), GPIO_FN(SCK1_C), GPIO_FN(TIOC0C_A), | ||
1541 | GPIO_FN(HIFD06), | ||
1542 | GPIO_FN(DU0_DR5), GPIO_FN(RTS0_C), GPIO_FN(TIOC0B_A), | ||
1543 | GPIO_FN(HIFD05), | ||
1544 | GPIO_FN(DU0_DR4), GPIO_FN(CTS0_C), GPIO_FN(TIOC0A_A), | ||
1545 | GPIO_FN(HIFD04), | ||
1546 | GPIO_FN(DU0_DR3), GPIO_FN(TX0_B), GPIO_FN(TCLKD_A), GPIO_FN(HIFD03), | ||
1547 | GPIO_FN(DU0_DR2), GPIO_FN(RX0_B), GPIO_FN(TCLKC_A), GPIO_FN(HIFD02), | ||
1548 | GPIO_FN(DU0_DR1), GPIO_FN(SCK0_B), GPIO_FN(HTX0_D), | ||
1549 | GPIO_FN(IERX_A), GPIO_FN(TCLKB_A), GPIO_FN(HIFD01), | ||
1550 | GPIO_FN(DU0_DR0), GPIO_FN(SCIF_CLK_B), GPIO_FN(HRX0_D), | ||
1551 | GPIO_FN(IETX_A), GPIO_FN(TCLKA_A), GPIO_FN(HIFD00), | ||
1552 | |||
1553 | /* IPSR7 */ | ||
1554 | GPIO_FN(DU0_DB4), GPIO_FN(HIFINT), | ||
1555 | GPIO_FN(DU0_DB3), GPIO_FN(TX5_B), GPIO_FN(TIOC4D_A), GPIO_FN(HIFRD), | ||
1556 | GPIO_FN(DU0_DB2), GPIO_FN(RX5_B), GPIO_FN(RMII0_TXD1_B), | ||
1557 | GPIO_FN(TIOC4C_A), GPIO_FN(HIFWR), | ||
1558 | GPIO_FN(DU0_DB1), GPIO_FN(TX4_C), GPIO_FN(RMII0_TXD0_B), | ||
1559 | GPIO_FN(TIOC4B_A), GPIO_FN(HIFRS), | ||
1560 | GPIO_FN(DU0_DB0), GPIO_FN(RX4_C), GPIO_FN(RMII0_TXD_EN_B), | ||
1561 | GPIO_FN(TIOC4A_A), GPIO_FN(HIFCS), | ||
1562 | GPIO_FN(DU0_DG7), GPIO_FN(TX3_C), GPIO_FN(RMII0_RXD1_B), | ||
1563 | GPIO_FN(TIOC3D_A), GPIO_FN(HIFD15), | ||
1564 | GPIO_FN(DU0_DG6), GPIO_FN(RX3_C), GPIO_FN(RMII0_RXD0_B), | ||
1565 | GPIO_FN(TIOC3C_A), GPIO_FN(HIFD14), | ||
1566 | GPIO_FN(DU0_DG5), GPIO_FN(TX2_C), GPIO_FN(RMII0_RX_ER_B), | ||
1567 | GPIO_FN(TIOC3B_A), GPIO_FN(HIFD13), | ||
1568 | GPIO_FN(DU0_DG4), GPIO_FN(RX2_C), GPIO_FN(RMII0_CRS_DV_B), | ||
1569 | GPIO_FN(TIOC3A_A), GPIO_FN(HIFD12), | ||
1570 | GPIO_FN(DU0_DG3), GPIO_FN(SCK2_C), GPIO_FN(RMII0_MDIO_B), | ||
1571 | GPIO_FN(TIOC2B_A), GPIO_FN(HIFD11), | ||
1572 | GPIO_FN(DU0_DG2), GPIO_FN(RTS1_C), GPIO_FN(RMII0_MDC_B), | ||
1573 | GPIO_FN(TIOC2A_A), GPIO_FN(HIFD10), | ||
1574 | |||
1575 | /* IPSR8 */ | ||
1576 | GPIO_FN(IRQ3_A), GPIO_FN(RTS0_A), GPIO_FN(HRTS0_B), | ||
1577 | GPIO_FN(ET0_ERXD3_A), | ||
1578 | GPIO_FN(IRQ2_A), GPIO_FN(CTS0_A), GPIO_FN(HCTS0_B), | ||
1579 | GPIO_FN(ET0_ERXD2_A), | ||
1580 | GPIO_FN(IRQ1_A), GPIO_FN(HSPI_RX_B), GPIO_FN(TX3_E), | ||
1581 | GPIO_FN(ET0_ERXD1), | ||
1582 | GPIO_FN(IRQ0_A), GPIO_FN(HSPI_TX_B), GPIO_FN(RX3_E), | ||
1583 | GPIO_FN(ET0_ERXD0), | ||
1584 | GPIO_FN(DU0_CDE), GPIO_FN(HTX0_B), GPIO_FN(AUDIO_CLKB_B), | ||
1585 | GPIO_FN(LCD_VCPWC_B), | ||
1586 | GPIO_FN(DU0_DISP), GPIO_FN(CAN0_TX_B), GPIO_FN(HRX0_B), | ||
1587 | GPIO_FN(AUDIO_CLKA_B), | ||
1588 | GPIO_FN(DU0_EXODDF_DU0_ODDF), GPIO_FN(CAN0_RX_B), GPIO_FN(HSCK0_B), | ||
1589 | GPIO_FN(SSI_SDATA1_B), | ||
1590 | GPIO_FN(DU0_EXVSYNC_DU0_VSYNC), GPIO_FN(HSPI_RX0_C), | ||
1591 | GPIO_FN(SSI_WS1_B), | ||
1592 | GPIO_FN(DU0_EXHSYNC_DU0_HSYNC), GPIO_FN(HSPI_TX0_C), | ||
1593 | GPIO_FN(SSI_SCK1_B), | ||
1594 | GPIO_FN(DU0_DOTCLKOUT), GPIO_FN(HSPI_CLK0_C), | ||
1595 | GPIO_FN(SSI_SDATA0_B), | ||
1596 | GPIO_FN(DU0_DOTCLKIN), GPIO_FN(HSPI_CS0_C), | ||
1597 | GPIO_FN(SSI_WS0_B), | ||
1598 | GPIO_FN(DU0_DB7), GPIO_FN(SSI_SCK0_B), GPIO_FN(HIFEBL_B), | ||
1599 | GPIO_FN(DU0_DB6), GPIO_FN(HIFRDY), | ||
1600 | GPIO_FN(DU0_DB5), GPIO_FN(HIFDREQ), | ||
1601 | |||
1602 | /* IPSR9 */ | ||
1603 | GPIO_FN(SSI_SDATA1_A), GPIO_FN(VI1_3_B), GPIO_FN(LCD_DATA14_B), | ||
1604 | GPIO_FN(SSI_WS1_A), GPIO_FN(VI1_2_B), GPIO_FN(LCD_DATA13_B), | ||
1605 | GPIO_FN(SSI_SCK1_A), GPIO_FN(VI1_1_B), GPIO_FN(TIOC2B_B), | ||
1606 | GPIO_FN(LCD_DATA12_B), | ||
1607 | GPIO_FN(SSI_SDATA0_A), GPIO_FN(VI1_0_B), GPIO_FN(TIOC2A_B), | ||
1608 | GPIO_FN(LCD_DATA11_B), | ||
1609 | GPIO_FN(SSI_WS0_A), GPIO_FN(TIOC1B_B), GPIO_FN(LCD_DATA10_B), | ||
1610 | GPIO_FN(SSI_SCK0_A), GPIO_FN(TIOC1A_B), GPIO_FN(LCD_DATA9_B), | ||
1611 | GPIO_FN(VI1_7_A), GPIO_FN(FCE_B), GPIO_FN(LCD_DATA8_B), | ||
1612 | GPIO_FN(VI1_6_A), GPIO_FN(FD7_B), GPIO_FN(LCD_DATA7_B), | ||
1613 | GPIO_FN(VI1_5_A), GPIO_FN(FD6_B), GPIO_FN(LCD_DATA6_B), | ||
1614 | GPIO_FN(VI1_4_A), GPIO_FN(FD5_B), GPIO_FN(LCD_DATA5_B), | ||
1615 | GPIO_FN(VI1_3_A), GPIO_FN(FD4_B), GPIO_FN(LCD_DATA4_B), | ||
1616 | GPIO_FN(VI1_2_A), GPIO_FN(FD3_B), GPIO_FN(LCD_DATA3_B), | ||
1617 | GPIO_FN(VI1_1_A), GPIO_FN(FD2_B), GPIO_FN(LCD_DATA2_B), | ||
1618 | GPIO_FN(VI1_0_A), GPIO_FN(FD1_B), GPIO_FN(LCD_DATA1_B), | ||
1619 | GPIO_FN(VI1_CLK_A), GPIO_FN(FD0_B), GPIO_FN(LCD_DATA0_B), | ||
1620 | |||
1621 | /* IPSR10 */ | ||
1622 | GPIO_FN(CAN1_TX_A), GPIO_FN(TX5_C), GPIO_FN(MLB_DAT), | ||
1623 | GPIO_FN(CAN0_RX_A), GPIO_FN(IRQ0_B), GPIO_FN(MLB_SIG), | ||
1624 | GPIO_FN(CAN1_RX_A), GPIO_FN(IRQ1_B), | ||
1625 | GPIO_FN(CAN0_TX_A), GPIO_FN(TX4_D), GPIO_FN(MLB_CLK), | ||
1626 | GPIO_FN(CAN_CLK_A), GPIO_FN(RX4_D), | ||
1627 | GPIO_FN(AUDIO_CLKOUT), GPIO_FN(TX1_E), GPIO_FN(HRTS0_C), | ||
1628 | GPIO_FN(FSE_B), GPIO_FN(LCD_M_DISP_B), | ||
1629 | GPIO_FN(AUDIO_CLKC), GPIO_FN(SCK1_E), GPIO_FN(HCTS0_C), | ||
1630 | GPIO_FN(FRB_B), GPIO_FN(LCD_VEPWC_B), | ||
1631 | GPIO_FN(AUDIO_CLKB_A), GPIO_FN(LCD_CLK_B), | ||
1632 | GPIO_FN(AUDIO_CLKA_A), GPIO_FN(VI1_CLK_B), GPIO_FN(SCK1_D), | ||
1633 | GPIO_FN(IECLK_B), GPIO_FN(LCD_FLM_B), | ||
1634 | GPIO_FN(SSI_SDATA3), GPIO_FN(VI1_7_B), GPIO_FN(HTX0_C), | ||
1635 | GPIO_FN(FWE_B), GPIO_FN(LCD_CL2_B), | ||
1636 | GPIO_FN(SSI_SDATA2), GPIO_FN(VI1_6_B), GPIO_FN(HRX0_C), | ||
1637 | GPIO_FN(FRE_B), GPIO_FN(LCD_CL1_B), | ||
1638 | GPIO_FN(SSI_WS23), GPIO_FN(VI1_5_B), GPIO_FN(TX1_D), | ||
1639 | GPIO_FN(HSCK0_C), GPIO_FN(FALE_B), GPIO_FN(LCD_DON_B), | ||
1640 | GPIO_FN(SSI_SCK23), GPIO_FN(VI1_4_B), GPIO_FN(RX1_D), | ||
1641 | GPIO_FN(FCLE_B), GPIO_FN(LCD_DATA15_B), | ||
1642 | |||
1643 | /* IPSR11 */ | ||
1644 | GPIO_FN(PRESETOUT), GPIO_FN(ST_CLKOUT), | ||
1645 | GPIO_FN(DACK1), GPIO_FN(HSPI_CS_B), GPIO_FN(TX4_B), | ||
1646 | GPIO_FN(ET0_RX_CLK_A), | ||
1647 | GPIO_FN(DREQ1), GPIO_FN(HSPI_CLK_B), GPIO_FN(RX4_B), | ||
1648 | GPIO_FN(ET0_PHY_INT_C), GPIO_FN(ET0_TX_CLK_A), | ||
1649 | GPIO_FN(DACK0), GPIO_FN(SD1_DAT3_A), GPIO_FN(ET0_TX_ER), | ||
1650 | GPIO_FN(DREQ0), GPIO_FN(SD1_CLK_A), GPIO_FN(ET0_TX_EN), | ||
1651 | GPIO_FN(USB_OVC1), GPIO_FN(RX3_D), GPIO_FN(CAN1_RX_B), | ||
1652 | GPIO_FN(RX5_D), GPIO_FN(IERX_B), | ||
1653 | GPIO_FN(PENC1), GPIO_FN(TX3_D), GPIO_FN(CAN1_TX_B), | ||
1654 | GPIO_FN(TX5_D), GPIO_FN(IETX_B), | ||
1655 | GPIO_FN(TX0_A), GPIO_FN(HSPI_TX_A), | ||
1656 | GPIO_FN(RX0_A), GPIO_FN(HSPI_RX_A), GPIO_FN(RMII0_RXD0_A), | ||
1657 | GPIO_FN(ET0_ERXD6), | ||
1658 | GPIO_FN(SCK0_A), GPIO_FN(HSPI_CS_A), GPIO_FN(VI0_CLKENB), | ||
1659 | GPIO_FN(RMII0_TXD1_A), GPIO_FN(ET0_ERXD5), | ||
1660 | GPIO_FN(SCIF_CLK_A), GPIO_FN(HSPI_CLK_A), GPIO_FN(VI0_CLK), | ||
1661 | GPIO_FN(RMII0_TXD0_A), GPIO_FN(ET0_ERXD4), | ||
1662 | GPIO_FN(SDSELF), GPIO_FN(RTS1_E), | ||
1663 | GPIO_FN(SDA0), GPIO_FN(HIFEBL_A), | ||
1664 | GPIO_FN(SDA1), GPIO_FN(RX1_E), | ||
1665 | GPIO_FN(SCL1), GPIO_FN(SCIF_CLK_C), | ||
1666 | }; | ||
1667 | |||
1668 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1669 | { PINMUX_CFG_REG("GPSR0", 0xFFFC0004, 32, 1) { | ||
1670 | GP_0_31_FN, FN_IP2_2_0, | ||
1671 | GP_0_30_FN, FN_IP1_31_29, | ||
1672 | GP_0_29_FN, FN_IP1_28_26, | ||
1673 | GP_0_28_FN, FN_IP1_25_23, | ||
1674 | GP_0_27_FN, FN_IP1_22_20, | ||
1675 | GP_0_26_FN, FN_IP1_19_18, | ||
1676 | GP_0_25_FN, FN_IP1_17_16, | ||
1677 | GP_0_24_FN, FN_IP0_5_4, | ||
1678 | GP_0_23_FN, FN_IP0_3_2, | ||
1679 | GP_0_22_FN, FN_IP0_1_0, | ||
1680 | GP_0_21_FN, FN_IP11_28, | ||
1681 | GP_0_20_FN, FN_IP1_7_6, | ||
1682 | GP_0_19_FN, FN_IP1_5_4, | ||
1683 | GP_0_18_FN, FN_IP1_3_2, | ||
1684 | GP_0_17_FN, FN_IP1_1_0, | ||
1685 | GP_0_16_FN, FN_IP0_31_30, | ||
1686 | GP_0_15_FN, FN_IP0_29_28, | ||
1687 | GP_0_14_FN, FN_IP0_27_26, | ||
1688 | GP_0_13_FN, FN_IP0_25_24, | ||
1689 | GP_0_12_FN, FN_IP0_23_22, | ||
1690 | GP_0_11_FN, FN_IP0_21_20, | ||
1691 | GP_0_10_FN, FN_IP0_19_18, | ||
1692 | GP_0_9_FN, FN_IP0_17_16, | ||
1693 | GP_0_8_FN, FN_IP0_15_14, | ||
1694 | GP_0_7_FN, FN_IP0_13_12, | ||
1695 | GP_0_6_FN, FN_IP0_11_10, | ||
1696 | GP_0_5_FN, FN_IP0_9_8, | ||
1697 | GP_0_4_FN, FN_IP0_7_6, | ||
1698 | GP_0_3_FN, FN_IP1_15_14, | ||
1699 | GP_0_2_FN, FN_IP1_13_12, | ||
1700 | GP_0_1_FN, FN_IP1_11_10, | ||
1701 | GP_0_0_FN, FN_IP1_9_8 } | ||
1702 | }, | ||
1703 | { PINMUX_CFG_REG("GPSR1", 0xFFFC0008, 32, 1) { | ||
1704 | GP_1_31_FN, FN_IP11_25_23, | ||
1705 | GP_1_30_FN, FN_IP2_13_11, | ||
1706 | GP_1_29_FN, FN_IP2_10_8, | ||
1707 | GP_1_28_FN, FN_IP2_7_5, | ||
1708 | GP_1_27_FN, FN_IP3_26_24, | ||
1709 | GP_1_26_FN, FN_IP3_23_21, | ||
1710 | GP_1_25_FN, FN_IP2_4_3, | ||
1711 | GP_1_24_FN, FN_WE1, | ||
1712 | GP_1_23_FN, FN_WE0, | ||
1713 | GP_1_22_FN, FN_IP3_19_18, | ||
1714 | GP_1_21_FN, FN_RD, | ||
1715 | GP_1_20_FN, FN_IP3_17_15, | ||
1716 | GP_1_19_FN, FN_IP3_14_12, | ||
1717 | GP_1_18_FN, FN_IP3_11_9, | ||
1718 | GP_1_17_FN, FN_IP3_8_6, | ||
1719 | GP_1_16_FN, FN_IP3_5_3, | ||
1720 | GP_1_15_FN, FN_EX_CS0, | ||
1721 | GP_1_14_FN, FN_IP3_2, | ||
1722 | GP_1_13_FN, FN_CS0, | ||
1723 | GP_1_12_FN, FN_BS, | ||
1724 | GP_1_11_FN, FN_CLKOUT, | ||
1725 | GP_1_10_FN, FN_IP3_1_0, | ||
1726 | GP_1_9_FN, FN_IP2_30_28, | ||
1727 | GP_1_8_FN, FN_IP2_27_25, | ||
1728 | GP_1_7_FN, FN_IP2_24_23, | ||
1729 | GP_1_6_FN, FN_IP2_22_20, | ||
1730 | GP_1_5_FN, FN_IP2_19_17, | ||
1731 | GP_1_4_FN, FN_IP2_16_14, | ||
1732 | GP_1_3_FN, FN_IP11_22_21, | ||
1733 | GP_1_2_FN, FN_IP11_20_19, | ||
1734 | GP_1_1_FN, FN_IP3_29_27, | ||
1735 | GP_1_0_FN, FN_IP3_20 } | ||
1736 | }, | ||
1737 | { PINMUX_CFG_REG("GPSR2", 0xFFFC000C, 32, 1) { | ||
1738 | GP_2_31_FN, FN_IP4_31_30, | ||
1739 | GP_2_30_FN, FN_IP5_2_0, | ||
1740 | GP_2_29_FN, FN_IP5_5_3, | ||
1741 | GP_2_28_FN, FN_IP5_8_6, | ||
1742 | GP_2_27_FN, FN_IP5_11_9, | ||
1743 | GP_2_26_FN, FN_IP5_14_12, | ||
1744 | GP_2_25_FN, FN_IP5_17_15, | ||
1745 | GP_2_24_FN, FN_IP5_20_18, | ||
1746 | GP_2_23_FN, FN_IP5_22_21, | ||
1747 | GP_2_22_FN, FN_IP5_24_23, | ||
1748 | GP_2_21_FN, FN_IP5_26_25, | ||
1749 | GP_2_20_FN, FN_IP4_29_28, | ||
1750 | GP_2_19_FN, FN_IP4_27_26, | ||
1751 | GP_2_18_FN, FN_IP4_25_24, | ||
1752 | GP_2_17_FN, FN_IP4_23_22, | ||
1753 | GP_2_16_FN, FN_IP4_21_20, | ||
1754 | GP_2_15_FN, FN_IP4_19_18, | ||
1755 | GP_2_14_FN, FN_IP4_17_15, | ||
1756 | GP_2_13_FN, FN_IP4_14_12, | ||
1757 | GP_2_12_FN, FN_IP4_11_9, | ||
1758 | GP_2_11_FN, FN_IP4_8_6, | ||
1759 | GP_2_10_FN, FN_IP4_5_3, | ||
1760 | GP_2_9_FN, FN_IP8_27_26, | ||
1761 | GP_2_8_FN, FN_IP11_12, | ||
1762 | GP_2_7_FN, FN_IP8_25_23, | ||
1763 | GP_2_6_FN, FN_IP8_22_20, | ||
1764 | GP_2_5_FN, FN_IP11_27_26, | ||
1765 | GP_2_4_FN, FN_IP8_29_28, | ||
1766 | GP_2_3_FN, FN_IP4_2_0, | ||
1767 | GP_2_2_FN, FN_IP11_11_10, | ||
1768 | GP_2_1_FN, FN_IP11_9_7, | ||
1769 | GP_2_0_FN, FN_IP11_6_4 } | ||
1770 | }, | ||
1771 | { PINMUX_CFG_REG("GPSR3", 0xFFFC0010, 32, 1) { | ||
1772 | GP_3_31_FN, FN_IP9_1_0, | ||
1773 | GP_3_30_FN, FN_IP8_19_18, | ||
1774 | GP_3_29_FN, FN_IP8_17_16, | ||
1775 | GP_3_28_FN, FN_IP8_15_14, | ||
1776 | GP_3_27_FN, FN_IP8_13_12, | ||
1777 | GP_3_26_FN, FN_IP8_11_10, | ||
1778 | GP_3_25_FN, FN_IP8_9_8, | ||
1779 | GP_3_24_FN, FN_IP8_7_6, | ||
1780 | GP_3_23_FN, FN_IP8_5_4, | ||
1781 | GP_3_22_FN, FN_IP8_3_2, | ||
1782 | GP_3_21_FN, FN_IP8_1_0, | ||
1783 | GP_3_20_FN, FN_IP7_30_29, | ||
1784 | GP_3_19_FN, FN_IP7_28_27, | ||
1785 | GP_3_18_FN, FN_IP7_26_24, | ||
1786 | GP_3_17_FN, FN_IP7_23_21, | ||
1787 | GP_3_16_FN, FN_IP7_20_18, | ||
1788 | GP_3_15_FN, FN_IP7_17_15, | ||
1789 | GP_3_14_FN, FN_IP7_14_12, | ||
1790 | GP_3_13_FN, FN_IP7_11_9, | ||
1791 | GP_3_12_FN, FN_IP7_8_6, | ||
1792 | GP_3_11_FN, FN_IP7_5_3, | ||
1793 | GP_3_10_FN, FN_IP7_2_0, | ||
1794 | GP_3_9_FN, FN_IP6_23_21, | ||
1795 | GP_3_8_FN, FN_IP6_20_18, | ||
1796 | GP_3_7_FN, FN_IP6_17_16, | ||
1797 | GP_3_6_FN, FN_IP6_15_14, | ||
1798 | GP_3_5_FN, FN_IP6_13_12, | ||
1799 | GP_3_4_FN, FN_IP6_11_10, | ||
1800 | GP_3_3_FN, FN_IP6_9_8, | ||
1801 | GP_3_2_FN, FN_IP6_7_6, | ||
1802 | GP_3_1_FN, FN_IP6_5_3, | ||
1803 | GP_3_0_FN, FN_IP6_2_0 } | ||
1804 | }, | ||
1805 | |||
1806 | { PINMUX_CFG_REG("GPSR4", 0xFFFC0014, 32, 1) { | ||
1807 | GP_4_31_FN, FN_IP10_24_23, | ||
1808 | GP_4_30_FN, FN_IP10_22, | ||
1809 | GP_4_29_FN, FN_IP11_18_16, | ||
1810 | GP_4_28_FN, FN_USB_OVC0, | ||
1811 | GP_4_27_FN, FN_IP11_15_13, | ||
1812 | GP_4_26_FN, FN_PENC0, | ||
1813 | GP_4_25_FN, FN_IP11_2, | ||
1814 | GP_4_24_FN, FN_SCL0, | ||
1815 | GP_4_23_FN, FN_IP11_1, | ||
1816 | GP_4_22_FN, FN_IP11_0, | ||
1817 | GP_4_21_FN, FN_IP10_21_19, | ||
1818 | GP_4_20_FN, FN_IP10_18_16, | ||
1819 | GP_4_19_FN, FN_IP10_15, | ||
1820 | GP_4_18_FN, FN_IP10_14_12, | ||
1821 | GP_4_17_FN, FN_IP10_11_9, | ||
1822 | GP_4_16_FN, FN_IP10_8_6, | ||
1823 | GP_4_15_FN, FN_IP10_5_3, | ||
1824 | GP_4_14_FN, FN_IP10_2_0, | ||
1825 | GP_4_13_FN, FN_IP9_29_28, | ||
1826 | GP_4_12_FN, FN_IP9_27_26, | ||
1827 | GP_4_11_FN, FN_IP9_9_8, | ||
1828 | GP_4_10_FN, FN_IP9_7_6, | ||
1829 | GP_4_9_FN, FN_IP9_5_4, | ||
1830 | GP_4_8_FN, FN_IP9_3_2, | ||
1831 | GP_4_7_FN, FN_IP9_17_16, | ||
1832 | GP_4_6_FN, FN_IP9_15_14, | ||
1833 | GP_4_5_FN, FN_IP9_13_12, | ||
1834 | GP_4_4_FN, FN_IP9_11_10, | ||
1835 | GP_4_3_FN, FN_IP9_25_24, | ||
1836 | GP_4_2_FN, FN_IP9_23_22, | ||
1837 | GP_4_1_FN, FN_IP9_21_20, | ||
1838 | GP_4_0_FN, FN_IP9_19_18 } | ||
1839 | }, | ||
1840 | { PINMUX_CFG_REG("GPSR5", 0xFFFC0018, 32, 1) { | ||
1841 | 0, 0, 0, 0, 0, 0, 0, 0, /* 31 - 28 */ | ||
1842 | 0, 0, 0, 0, 0, 0, 0, 0, /* 27 - 24 */ | ||
1843 | 0, 0, 0, 0, 0, 0, 0, 0, /* 23 - 20 */ | ||
1844 | 0, 0, 0, 0, 0, 0, 0, 0, /* 19 - 16 */ | ||
1845 | 0, 0, 0, 0, 0, 0, 0, 0, /* 15 - 12 */ | ||
1846 | GP_5_11_FN, FN_IP10_29_28, | ||
1847 | GP_5_10_FN, FN_IP10_27_26, | ||
1848 | 0, 0, 0, 0, 0, 0, 0, 0, /* 9 - 6 */ | ||
1849 | 0, 0, 0, 0, /* 5, 4 */ | ||
1850 | GP_5_3_FN, FN_IRQ3_B, | ||
1851 | GP_5_2_FN, FN_IRQ2_B, | ||
1852 | GP_5_1_FN, FN_IP11_3, | ||
1853 | GP_5_0_FN, FN_IP10_25 } | ||
1854 | }, | ||
1855 | |||
1856 | { PINMUX_CFG_REG_VAR("IPSR0", 0xFFFC001C, 32, | ||
1857 | 2, 2, 2, 2, 2, 2, 2, 2, | ||
1858 | 2, 2, 2, 2, 2, 2, 2, 2) { | ||
1859 | /* IP0_31_30 [2] */ | ||
1860 | FN_A15, FN_ST0_VCO_CLKIN, FN_LCD_DATA15_A, | ||
1861 | FN_TIOC3D_C, | ||
1862 | /* IP0_29_28 [2] */ | ||
1863 | FN_A14, FN_LCD_DATA14_A, FN_TIOC3C_C, 0, | ||
1864 | /* IP0_27_26 [2] */ | ||
1865 | FN_A13, FN_LCD_DATA13_A, FN_TIOC3B_C, 0, | ||
1866 | /* IP0_25_24 [2] */ | ||
1867 | FN_A12, FN_LCD_DATA12_A, FN_TIOC3A_C, 0, | ||
1868 | /* IP0_23_22 [2] */ | ||
1869 | FN_A11, FN_ST0_D7, FN_LCD_DATA11_A, FN_TIOC2B_C, | ||
1870 | /* IP0_21_20 [2] */ | ||
1871 | FN_A10, FN_ST0_D6, FN_LCD_DATA10_A, FN_TIOC2A_C, | ||
1872 | /* IP0_19_18 [2] */ | ||
1873 | FN_A9, FN_ST0_D5, FN_LCD_DATA9_A, FN_TIOC1B_C, | ||
1874 | /* IP0_17_16 [2] */ | ||
1875 | FN_A8, FN_ST0_D4, FN_LCD_DATA8_A, FN_TIOC1A_C, | ||
1876 | /* IP0_15_14 [2] */ | ||
1877 | FN_A7, FN_ST0_D3, FN_LCD_DATA7_A, FN_TIOC0D_C, | ||
1878 | /* IP0_13_12 [2] */ | ||
1879 | FN_A6, FN_ST0_D2, FN_LCD_DATA6_A, FN_TIOC0C_C, | ||
1880 | /* IP0_11_10 [2] */ | ||
1881 | FN_A5, FN_ST0_D1, FN_LCD_DATA5_A, FN_TIOC0B_C, | ||
1882 | /* IP0_9_8 [2] */ | ||
1883 | FN_A4, FN_ST0_D0, FN_LCD_DATA4_A, FN_TIOC0A_C, | ||
1884 | /* IP0_7_6 [2] */ | ||
1885 | FN_A3, FN_ST0_VLD, FN_LCD_DATA3_A, FN_TCLKD_C, | ||
1886 | /* IP0_5_4 [2] */ | ||
1887 | FN_A2, FN_ST0_SYC, FN_LCD_DATA2_A, FN_TCLKC_C, | ||
1888 | /* IP0_3_2 [2] */ | ||
1889 | FN_A1, FN_ST0_REQ, FN_LCD_DATA1_A, FN_TCLKB_C, | ||
1890 | /* IP0_1_0 [2] */ | ||
1891 | FN_A0, FN_ST0_CLKIN, FN_LCD_DATA0_A, FN_TCLKA_C } | ||
1892 | }, | ||
1893 | { PINMUX_CFG_REG_VAR("IPSR1", 0xFFFC0020, 32, | ||
1894 | 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2) { | ||
1895 | /* IP1_31_29 [3] */ | ||
1896 | FN_D3, FN_SD0_DAT3_A, FN_MMC_D3_A, FN_ST1_D6, | ||
1897 | FN_FD3_A, 0, 0, 0, | ||
1898 | /* IP1_28_26 [3] */ | ||
1899 | FN_D2, FN_SD0_DAT2_A, FN_MMC_D2_A, FN_ST1_D5, | ||
1900 | FN_FD2_A, 0, 0, 0, | ||
1901 | /* IP1_25_23 [3] */ | ||
1902 | FN_D1, FN_SD0_DAT1_A, FN_MMC_D1_A, FN_ST1_D4, | ||
1903 | FN_FD1_A, 0, 0, 0, | ||
1904 | /* IP1_22_20 [3] */ | ||
1905 | FN_D0, FN_SD0_DAT0_A, FN_MMC_D0_A, FN_ST1_D3, | ||
1906 | FN_FD0_A, 0, 0, 0, | ||
1907 | /* IP1_19_18 [2] */ | ||
1908 | FN_A25, FN_TX2_D, FN_ST1_D2, 0, | ||
1909 | /* IP1_17_16 [2] */ | ||
1910 | FN_A24, FN_RX2_D, FN_ST1_D1, 0, | ||
1911 | /* IP1_15_14 [2] */ | ||
1912 | FN_A23, FN_ST1_D0, FN_LCD_M_DISP_A, 0, | ||
1913 | /* IP1_13_12 [2] */ | ||
1914 | FN_A22, FN_ST1_VLD, FN_LCD_VEPWC_A, 0, | ||
1915 | /* IP1_11_10 [2] */ | ||
1916 | FN_A21, FN_ST1_SYC, FN_LCD_VCPWC_A, 0, | ||
1917 | /* IP1_9_8 [2] */ | ||
1918 | FN_A20, FN_ST1_REQ, FN_LCD_FLM_A, 0, | ||
1919 | /* IP1_7_6 [2] */ | ||
1920 | FN_A19, FN_ST1_CLKIN, FN_LCD_CLK_A, FN_TIOC4D_C, | ||
1921 | /* IP1_5_4 [2] */ | ||
1922 | FN_A18, FN_ST1_PWM, FN_LCD_CL2_A, FN_TIOC4C_C, | ||
1923 | /* IP1_3_2 [2] */ | ||
1924 | FN_A17, FN_ST1_VCO_CLKIN, FN_LCD_CL1_A, FN_TIOC4B_C, | ||
1925 | /* IP1_1_0 [2] */ | ||
1926 | FN_A16, FN_ST0_PWM, FN_LCD_DON_A, FN_TIOC4A_C } | ||
1927 | }, | ||
1928 | { PINMUX_CFG_REG_VAR("IPSR2", 0xFFFC0024, 32, | ||
1929 | 1, 3, 3, 2, 3, 3, 3, 3, 3, 3, 2, 3) { | ||
1930 | /* IP2_31 [1] */ | ||
1931 | 0, 0, | ||
1932 | /* IP2_30_28 [3] */ | ||
1933 | FN_D14, FN_TX2_B, 0, FN_FSE_A, | ||
1934 | FN_ET0_TX_CLK_B, 0, 0, 0, | ||
1935 | /* IP2_27_25 [3] */ | ||
1936 | FN_D13, FN_RX2_B, 0, FN_FRB_A, | ||
1937 | FN_ET0_ETXD6_B, 0, 0, 0, | ||
1938 | /* IP2_24_23 [2] */ | ||
1939 | FN_D12, 0, FN_FWE_A, FN_ET0_ETXD5_B, | ||
1940 | /* IP2_22_20 [3] */ | ||
1941 | FN_D11, FN_RSPI_MISO_A, 0, FN_QMI_QIO1_A, | ||
1942 | FN_FRE_A, FN_ET0_ETXD3_B, 0, 0, | ||
1943 | /* IP2_19_17 [3] */ | ||
1944 | FN_D10, FN_RSPI_MOSI_A, 0, FN_QMO_QIO0_A, | ||
1945 | FN_FALE_A, FN_ET0_ETXD2_B, 0, 0, | ||
1946 | /* IP2_16_14 [3] */ | ||
1947 | FN_D9, FN_SD0_CMD_A, FN_MMC_CMD_A, FN_QIO3_A, | ||
1948 | FN_FCLE_A, FN_ET0_ETXD1_B, 0, 0, | ||
1949 | /* IP2_13_11 [3] */ | ||
1950 | FN_D8, FN_SD0_CLK_A, FN_MMC_CLK_A, FN_QIO2_A, | ||
1951 | FN_FCE_A, FN_ET0_GTX_CLK_B, 0, 0, | ||
1952 | /* IP2_10_8 [3] */ | ||
1953 | FN_D7, FN_RSPI_SSL_A, FN_MMC_D7_A, FN_QSSL_A, | ||
1954 | FN_FD7_A, 0, 0, 0, | ||
1955 | /* IP2_7_5 [3] */ | ||
1956 | FN_D6, FN_RSPI_RSPCK_A, FN_MMC_D6_A, FN_QSPCLK_A, | ||
1957 | FN_FD6_A, 0, 0, 0, | ||
1958 | /* IP2_4_3 [2] */ | ||
1959 | FN_D5, FN_SD0_WP_A, FN_MMC_D5_A, FN_FD5_A, | ||
1960 | /* IP2_2_0 [3] */ | ||
1961 | FN_D4, FN_SD0_CD_A, FN_MMC_D4_A, FN_ST1_D7, | ||
1962 | FN_FD4_A, 0, 0, 0 } | ||
1963 | }, | ||
1964 | { PINMUX_CFG_REG_VAR("IPSR3", 0xFFFC0028, 32, | ||
1965 | 2, 3, 3, 3, 1, 2, 3, 3, 3, 3, 3, 1, 2) { | ||
1966 | /* IP3_31_30 [2] */ | ||
1967 | 0, 0, 0, 0, | ||
1968 | /* IP3_29_27 [3] */ | ||
1969 | FN_DRACK0, FN_SD1_DAT2_A, FN_ATAG, FN_TCLK1_A, | ||
1970 | FN_ET0_ETXD7, 0, 0, 0, | ||
1971 | /* IP3_26_24 [3] */ | ||
1972 | FN_EX_WAIT2, FN_SD1_DAT1_A, FN_DACK2, FN_CAN1_RX_C, | ||
1973 | FN_ET0_MAGIC_C, FN_ET0_ETXD6_A, 0, 0, | ||
1974 | /* IP3_23_21 [3] */ | ||
1975 | FN_EX_WAIT1, FN_SD1_DAT0_A, FN_DREQ2, FN_CAN1_TX_C, | ||
1976 | FN_ET0_LINK_C, FN_ET0_ETXD5_A, 0, 0, | ||
1977 | /* IP3_20 [1] */ | ||
1978 | FN_EX_WAIT0, FN_TCLK1_B, | ||
1979 | /* IP3_19_18 [2] */ | ||
1980 | FN_RD_WR, FN_TCLK1_B, 0, 0, | ||
1981 | /* IP3_17_15 [3] */ | ||
1982 | FN_EX_CS5, FN_SD1_CMD_A, FN_ATADIR, FN_QSSL_B, | ||
1983 | FN_ET0_ETXD3_A, 0, 0, 0, | ||
1984 | /* IP3_14_12 [3] */ | ||
1985 | FN_EX_CS4, FN_SD1_WP_A, FN_ATAWR, FN_QMI_QIO1_B, | ||
1986 | FN_ET0_ETXD2_A, 0, 0, 0, | ||
1987 | /* IP3_11_9 [3] */ | ||
1988 | FN_EX_CS3, FN_SD1_CD_A, FN_ATARD, FN_QMO_QIO0_B, | ||
1989 | FN_ET0_ETXD1_A, 0, 0, 0, | ||
1990 | /* IP3_8_6 [3] */ | ||
1991 | FN_EX_CS2, FN_TX3_B, FN_ATACS1, FN_QSPCLK_B, | ||
1992 | FN_ET0_GTX_CLK_A, 0, 0, 0, | ||
1993 | /* IP3_5_3 [3] */ | ||
1994 | FN_EX_CS1, FN_RX3_B, FN_ATACS0, FN_QIO2_B, | ||
1995 | FN_ET0_ETXD0, 0, 0, 0, | ||
1996 | /* IP3_2 [1] */ | ||
1997 | FN_CS1_A26, FN_QIO3_B, | ||
1998 | /* IP3_1_0 [2] */ | ||
1999 | FN_D15, FN_SCK2_B, 0, 0 } | ||
2000 | }, | ||
2001 | { PINMUX_CFG_REG_VAR("IPSR4", 0xFFFC002C, 32, | ||
2002 | 2, 2, 2, 2, 2, 2 , 2, 3, 3, 3, 3, 3, 3) { | ||
2003 | /* IP4_31_30 [2] */ | ||
2004 | 0, FN_SCK2_A, FN_VI0_G3, 0, | ||
2005 | /* IP4_29_28 [2] */ | ||
2006 | 0, FN_RTS1_B, FN_VI0_G2, 0, | ||
2007 | /* IP4_27_26 [2] */ | ||
2008 | 0, FN_CTS1_B, FN_VI0_DATA7_VI0_G1, 0, | ||
2009 | /* IP4_25_24 [2] */ | ||
2010 | 0, FN_TX1_B, FN_VI0_DATA6_VI0_G0, FN_ET0_PHY_INT_A, | ||
2011 | /* IP4_23_22 [2] */ | ||
2012 | 0, FN_RX1_B, FN_VI0_DATA5_VI0_B5, FN_ET0_MAGIC_A, | ||
2013 | /* IP4_21_20 [2] */ | ||
2014 | 0, FN_SCK1_B, FN_VI0_DATA4_VI0_B4, FN_ET0_LINK_A, | ||
2015 | /* IP4_19_18 [2] */ | ||
2016 | 0, FN_RTS0_B, FN_VI0_DATA3_VI0_B3, FN_ET0_MDIO_A, | ||
2017 | /* IP4_17_15 [3] */ | ||
2018 | 0, FN_CTS0_B, FN_VI0_DATA2_VI0_B2, FN_RMII0_MDIO_A, | ||
2019 | FN_ET0_MDC, 0, 0, 0, | ||
2020 | /* IP4_14_12 [3] */ | ||
2021 | FN_HTX0_A, FN_TX1_A, FN_VI0_DATA1_VI0_B1, FN_RMII0_MDC_A, | ||
2022 | FN_ET0_COL, 0, 0, 0, | ||
2023 | /* IP4_11_9 [3] */ | ||
2024 | FN_HRX0_A, FN_RX1_A, FN_VI0_DATA0_VI0_B0, FN_RMII0_CRS_DV_A, | ||
2025 | FN_ET0_CRS, 0, 0, 0, | ||
2026 | /* IP4_8_6 [3] */ | ||
2027 | FN_HSCK0_A, FN_SCK1_A, FN_VI0_VSYNC, FN_RMII0_RX_ER_A, | ||
2028 | FN_ET0_RX_ER, 0, 0, 0, | ||
2029 | /* IP4_5_3 [3] */ | ||
2030 | FN_HRTS0_A, FN_RTS1_A, FN_VI0_HSYNC, FN_RMII0_TXD_EN_A, | ||
2031 | FN_ET0_RX_DV, 0, 0, 0, | ||
2032 | /* IP4_2_0 [3] */ | ||
2033 | FN_HCTS0_A, FN_CTS1_A, FN_VI0_FIELD, FN_RMII0_RXD1_A, | ||
2034 | FN_ET0_ERXD7, 0, 0, 0 } | ||
2035 | }, | ||
2036 | { PINMUX_CFG_REG_VAR("IPSR5", 0xFFFC0030, 32, | ||
2037 | 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3) { | ||
2038 | /* IP5_31 [1] */ | ||
2039 | 0, 0, | ||
2040 | /* IP5_30 [1] */ | ||
2041 | 0, 0, | ||
2042 | /* IP5_29 [1] */ | ||
2043 | 0, 0, | ||
2044 | /* IP5_28 [1] */ | ||
2045 | 0, 0, | ||
2046 | /* IP5_27 [1] */ | ||
2047 | 0, 0, | ||
2048 | /* IP5_26_25 [2] */ | ||
2049 | FN_REF50CK, FN_CTS1_E, FN_HCTS0_D, 0, | ||
2050 | /* IP5_24_23 [2] */ | ||
2051 | FN_REF125CK, FN_ADTRG, FN_RX5_C, 0, | ||
2052 | /* IP5_22_21 [2] */ | ||
2053 | FN_SD2_WP_A, FN_TX5_A, FN_VI0_R5, 0, | ||
2054 | /* IP5_20_18 [3] */ | ||
2055 | FN_SD2_CD_A, FN_RX5_A, FN_VI0_R4, 0, | ||
2056 | 0, 0, 0, FN_ET0_PHY_INT_B, | ||
2057 | /* IP5_17_15 [3] */ | ||
2058 | FN_SD2_DAT3_A, FN_TX4_A, FN_VI0_R3, 0, | ||
2059 | 0, 0, 0, FN_ET0_MAGIC_B, | ||
2060 | /* IP5_14_12 [3] */ | ||
2061 | FN_SD2_DAT2_A, FN_RX4_A, FN_VI0_R2, 0, | ||
2062 | 0, 0, 0, FN_ET0_LINK_B, | ||
2063 | /* IP5_11_9 [3] */ | ||
2064 | FN_SD2_DAT1_A, FN_TX3_A, FN_VI0_R1, 0, | ||
2065 | 0, 0, 0, FN_ET0_MDIO_B, | ||
2066 | /* IP5_8_6 [3] */ | ||
2067 | FN_SD2_DAT0_A, FN_RX3_A, FN_VI0_R0, 0, | ||
2068 | 0, 0, 0, FN_ET0_ERXD3_B, | ||
2069 | /* IP5_5_3 [3] */ | ||
2070 | FN_SD2_CMD_A, FN_TX2_A, FN_VI0_G5, 0, | ||
2071 | 0, 0, 0, FN_ET0_ERXD2_B, | ||
2072 | /* IP5_2_0 [3] */ | ||
2073 | FN_SD2_CLK_A, FN_RX2_A, FN_VI0_G4, 0, | ||
2074 | FN_ET0_RX_CLK_B, 0, 0, 0 } | ||
2075 | }, | ||
2076 | { PINMUX_CFG_REG_VAR("IPSR6", 0xFFFC0034, 32, | ||
2077 | 1, 1, 1, 1, 1, 1, 1, 1, | ||
2078 | 3, 3, 2, 2, 2, 2, 2, 2, 3, 3) { | ||
2079 | /* IP5_31 [1] */ | ||
2080 | 0, 0, | ||
2081 | /* IP6_30 [1] */ | ||
2082 | 0, 0, | ||
2083 | /* IP6_29 [1] */ | ||
2084 | 0, 0, | ||
2085 | /* IP6_28 [1] */ | ||
2086 | 0, 0, | ||
2087 | /* IP6_27 [1] */ | ||
2088 | 0, 0, | ||
2089 | /* IP6_26 [1] */ | ||
2090 | 0, 0, | ||
2091 | /* IP6_25 [1] */ | ||
2092 | 0, 0, | ||
2093 | /* IP6_24 [1] */ | ||
2094 | 0, 0, | ||
2095 | /* IP6_23_21 [3] */ | ||
2096 | FN_DU0_DG1, FN_CTS1_C, FN_HRTS0_D, FN_TIOC1B_A, | ||
2097 | FN_HIFD09, 0, 0, 0, | ||
2098 | /* IP6_20_18 [3] */ | ||
2099 | FN_DU0_DG0, FN_TX1_C, FN_HSCK0_D, FN_IECLK_A, | ||
2100 | FN_TIOC1A_A, FN_HIFD08, 0, 0, | ||
2101 | /* IP6_17_16 [2] */ | ||
2102 | FN_DU0_DR7, FN_RX1_C, FN_TIOC0D_A, FN_HIFD07, | ||
2103 | /* IP6_15_14 [2] */ | ||
2104 | FN_DU0_DR6, FN_SCK1_C, FN_TIOC0C_A, FN_HIFD06, | ||
2105 | /* IP6_13_12 [2] */ | ||
2106 | FN_DU0_DR5, FN_RTS0_C, FN_TIOC0B_A, FN_HIFD05, | ||
2107 | /* IP6_11_10 [2] */ | ||
2108 | FN_DU0_DR4, FN_CTS0_C, FN_TIOC0A_A, FN_HIFD04, | ||
2109 | /* IP6_9_8 [2] */ | ||
2110 | FN_DU0_DR3, FN_TX0_B, FN_TCLKD_A, FN_HIFD03, | ||
2111 | /* IP6_7_6 [2] */ | ||
2112 | FN_DU0_DR2, FN_RX0_B, FN_TCLKC_A, FN_HIFD02, | ||
2113 | /* IP6_5_3 [3] */ | ||
2114 | FN_DU0_DR1, FN_SCK0_B, FN_HTX0_D, FN_IERX_A, | ||
2115 | FN_TCLKB_A, FN_HIFD01, 0, 0, | ||
2116 | /* IP6_2_0 [3] */ | ||
2117 | FN_DU0_DR0, FN_SCIF_CLK_B, FN_HRX0_D, FN_IETX_A, | ||
2118 | FN_TCLKA_A, FN_HIFD00, 0, 0 } | ||
2119 | }, | ||
2120 | { PINMUX_CFG_REG_VAR("IPSR7", 0xFFFC0038, 32, | ||
2121 | 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3) { | ||
2122 | /* IP7_31 [1] */ | ||
2123 | 0, 0, | ||
2124 | /* IP7_30_29 [2] */ | ||
2125 | FN_DU0_DB4, 0, FN_HIFINT, 0, | ||
2126 | /* IP7_28_27 [2] */ | ||
2127 | FN_DU0_DB3, FN_TX5_B, FN_TIOC4D_A, FN_HIFRD, | ||
2128 | /* IP7_26_24 [3] */ | ||
2129 | FN_DU0_DB2, FN_RX5_B, FN_RMII0_TXD1_B, FN_TIOC4C_A, | ||
2130 | FN_HIFWR, 0, 0, 0, | ||
2131 | /* IP7_23_21 [3] */ | ||
2132 | FN_DU0_DB1, FN_TX4_C, FN_RMII0_TXD0_B, FN_TIOC4B_A, | ||
2133 | FN_HIFRS, 0, 0, 0, | ||
2134 | /* IP7_20_18 [3] */ | ||
2135 | FN_DU0_DB0, FN_RX4_C, FN_RMII0_TXD_EN_B, FN_TIOC4A_A, | ||
2136 | FN_HIFCS, 0, 0, 0, | ||
2137 | /* IP7_17_15 [3] */ | ||
2138 | FN_DU0_DG7, FN_TX3_C, FN_RMII0_RXD1_B, FN_TIOC3D_A, | ||
2139 | FN_HIFD15, 0, 0, 0, | ||
2140 | /* IP7_14_12 [3] */ | ||
2141 | FN_DU0_DG6, FN_RX3_C, FN_RMII0_RXD0_B, FN_TIOC3C_A, | ||
2142 | FN_HIFD14, 0, 0, 0, | ||
2143 | /* IP7_11_9 [3] */ | ||
2144 | FN_DU0_DG5, FN_TX2_C, FN_RMII0_RX_ER_B, FN_TIOC3B_A, | ||
2145 | FN_HIFD13, 0, 0, 0, | ||
2146 | /* IP7_8_6 [3] */ | ||
2147 | FN_DU0_DG4, FN_RX2_C, FN_RMII0_CRS_DV_B, FN_TIOC3A_A, | ||
2148 | FN_HIFD12, 0, 0, 0, | ||
2149 | /* IP7_5_3 [3] */ | ||
2150 | FN_DU0_DG3, FN_SCK2_C, FN_RMII0_MDIO_B, FN_TIOC2B_A, | ||
2151 | FN_HIFD11, 0, 0, 0, | ||
2152 | /* IP7_2_0 [3] */ | ||
2153 | FN_DU0_DG2, FN_RTS1_C, FN_RMII0_MDC_B, FN_TIOC2A_A, | ||
2154 | FN_HIFD10, 0, 0, 0 } | ||
2155 | }, | ||
2156 | { PINMUX_CFG_REG_VAR("IPSR8", 0xFFFC003C, 32, | ||
2157 | 2, 2, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2) { | ||
2158 | /* IP9_31_30 [2] */ | ||
2159 | 0, 0, 0, 0, | ||
2160 | /* IP8_29_28 [2] */ | ||
2161 | FN_IRQ3_A, FN_RTS0_A, FN_HRTS0_B, FN_ET0_ERXD3_A, | ||
2162 | /* IP8_27_26 [2] */ | ||
2163 | FN_IRQ2_A, FN_CTS0_A, FN_HCTS0_B, FN_ET0_ERXD2_A, | ||
2164 | /* IP8_25_23 [3] */ | ||
2165 | FN_IRQ1_A, 0, FN_HSPI_RX_B, FN_TX3_E, | ||
2166 | FN_ET0_ERXD1, 0, 0, 0, | ||
2167 | /* IP8_22_20 [3] */ | ||
2168 | FN_IRQ0_A, 0, FN_HSPI_TX_B, FN_RX3_E, | ||
2169 | FN_ET0_ERXD0, 0, 0, 0, | ||
2170 | /* IP8_19_18 [2] */ | ||
2171 | FN_DU0_CDE, FN_HTX0_B, FN_AUDIO_CLKB_B, FN_LCD_VCPWC_B, | ||
2172 | /* IP8_17_16 [2] */ | ||
2173 | FN_DU0_DISP, FN_CAN0_TX_B, FN_HRX0_B, FN_AUDIO_CLKA_B, | ||
2174 | /* IP8_15_14 [2] */ | ||
2175 | FN_DU0_EXODDF_DU0_ODDF, FN_CAN0_RX_B, FN_HSCK0_B, | ||
2176 | FN_SSI_SDATA1_B, | ||
2177 | /* IP8_13_12 [2] */ | ||
2178 | FN_DU0_EXVSYNC_DU0_VSYNC, 0, FN_HSPI_RX0_C, FN_SSI_WS1_B, | ||
2179 | /* IP8_11_10 [2] */ | ||
2180 | FN_DU0_EXHSYNC_DU0_HSYNC, 0, FN_HSPI_TX0_C, FN_SSI_SCK1_B, | ||
2181 | /* IP8_9_8 [2] */ | ||
2182 | FN_DU0_DOTCLKOUT, 0, FN_HSPI_CLK0_C, FN_SSI_SDATA0_B, | ||
2183 | /* IP8_7_6 [2] */ | ||
2184 | FN_DU0_DOTCLKIN, 0, FN_HSPI_CS0_C, FN_SSI_WS0_B, | ||
2185 | /* IP8_5_4 [2] */ | ||
2186 | FN_DU0_DB7, 0, FN_SSI_SCK0_B, FN_HIFEBL_B, | ||
2187 | /* IP8_3_2 [2] */ | ||
2188 | FN_DU0_DB6, 0, FN_HIFRDY, 0, | ||
2189 | /* IP8_1_0 [2] */ | ||
2190 | FN_DU0_DB5, 0, FN_HIFDREQ, 0 } | ||
2191 | }, | ||
2192 | { PINMUX_CFG_REG_VAR("IPSR9", 0xFFFC0040, 32, | ||
2193 | 2, 2, 2, 2, 2, 2, 2, 2, | ||
2194 | 2, 2, 2, 2, 2, 2, 2, 2) { | ||
2195 | /* IP9_31_30 [2] */ | ||
2196 | 0, 0, 0, 0, | ||
2197 | /* IP9_29_28 [2] */ | ||
2198 | FN_SSI_SDATA1_A, FN_VI1_3_B, FN_LCD_DATA14_B, 0, | ||
2199 | /* IP9_27_26 [2] */ | ||
2200 | FN_SSI_WS1_A, FN_VI1_2_B, FN_LCD_DATA13_B, 0, | ||
2201 | /* IP9_25_24 [2] */ | ||
2202 | FN_SSI_SCK1_A, FN_VI1_1_B, FN_TIOC2B_B, FN_LCD_DATA12_B, | ||
2203 | /* IP9_23_22 [2] */ | ||
2204 | FN_SSI_SDATA0_A, FN_VI1_0_B, FN_TIOC2A_B, FN_LCD_DATA11_B, | ||
2205 | /* IP9_21_20 [2] */ | ||
2206 | FN_SSI_WS0_A, FN_TIOC1B_B, FN_LCD_DATA10_B, 0, | ||
2207 | /* IP9_19_18 [2] */ | ||
2208 | FN_SSI_SCK0_A, FN_TIOC1A_B, FN_LCD_DATA9_B, 0, | ||
2209 | /* IP9_17_16 [2] */ | ||
2210 | FN_VI1_7_A, FN_FCE_B, FN_LCD_DATA8_B, 0, | ||
2211 | /* IP9_15_14 [2] */ | ||
2212 | FN_VI1_6_A, 0, FN_FD7_B, FN_LCD_DATA7_B, | ||
2213 | /* IP9_13_12 [2] */ | ||
2214 | FN_VI1_5_A, 0, FN_FD6_B, FN_LCD_DATA6_B, | ||
2215 | /* IP9_11_10 [2] */ | ||
2216 | FN_VI1_4_A, 0, FN_FD5_B, FN_LCD_DATA5_B, | ||
2217 | /* IP9_9_8 [2] */ | ||
2218 | FN_VI1_3_A, 0, FN_FD4_B, FN_LCD_DATA4_B, | ||
2219 | /* IP9_7_6 [2] */ | ||
2220 | FN_VI1_2_A, 0, FN_FD3_B, FN_LCD_DATA3_B, | ||
2221 | /* IP9_5_4 [2] */ | ||
2222 | FN_VI1_1_A, 0, FN_FD2_B, FN_LCD_DATA2_B, | ||
2223 | /* IP9_3_2 [2] */ | ||
2224 | FN_VI1_0_A, 0, FN_FD1_B, FN_LCD_DATA1_B, | ||
2225 | /* IP9_1_0 [2] */ | ||
2226 | FN_VI1_CLK_A, 0, FN_FD0_B, FN_LCD_DATA0_B } | ||
2227 | }, | ||
2228 | { PINMUX_CFG_REG_VAR("IPSR10", 0xFFFC0044, 32, | ||
2229 | 2, 2, 2, 1, 2, 1, 3, | ||
2230 | 3, 1, 3, 3, 3, 3, 3) { | ||
2231 | /* IP9_31_30 [2] */ | ||
2232 | 0, 0, 0, 0, | ||
2233 | /* IP10_29_28 [2] */ | ||
2234 | FN_CAN1_TX_A, FN_TX5_C, FN_MLB_DAT, 0, | ||
2235 | /* IP10_27_26 [2] */ | ||
2236 | FN_CAN0_RX_A, FN_IRQ0_B, FN_MLB_SIG, 0, | ||
2237 | /* IP10_25 [1] */ | ||
2238 | FN_CAN1_RX_A, FN_IRQ1_B, | ||
2239 | /* IP10_24_23 [2] */ | ||
2240 | FN_CAN0_TX_A, FN_TX4_D, FN_MLB_CLK, 0, | ||
2241 | /* IP10_22 [1] */ | ||
2242 | FN_CAN_CLK_A, FN_RX4_D, | ||
2243 | /* IP10_21_19 [3] */ | ||
2244 | FN_AUDIO_CLKOUT, FN_TX1_E, FN_HRTS0_C, FN_FSE_B, | ||
2245 | FN_LCD_M_DISP_B, 0, 0, 0, | ||
2246 | /* IP10_18_16 [3] */ | ||
2247 | FN_AUDIO_CLKC, FN_SCK1_E, FN_HCTS0_C, FN_FRB_B, | ||
2248 | FN_LCD_VEPWC_B, 0, 0, 0, | ||
2249 | /* IP10_15 [1] */ | ||
2250 | FN_AUDIO_CLKB_A, FN_LCD_CLK_B, | ||
2251 | /* IP10_14_12 [3] */ | ||
2252 | FN_AUDIO_CLKA_A, FN_VI1_CLK_B, FN_SCK1_D, FN_IECLK_B, | ||
2253 | FN_LCD_FLM_B, 0, 0, 0, | ||
2254 | /* IP10_11_9 [3] */ | ||
2255 | FN_SSI_SDATA3, FN_VI1_7_B, FN_HTX0_C, FN_FWE_B, | ||
2256 | FN_LCD_CL2_B, 0, 0, 0, | ||
2257 | /* IP10_8_6 [3] */ | ||
2258 | FN_SSI_SDATA2, FN_VI1_6_B, FN_HRX0_C, FN_FRE_B, | ||
2259 | FN_LCD_CL1_B, 0, 0, 0, | ||
2260 | /* IP10_5_3 [3] */ | ||
2261 | FN_SSI_WS23, FN_VI1_5_B, FN_TX1_D, FN_HSCK0_C, FN_FALE_B, | ||
2262 | FN_LCD_DON_B, 0, 0, 0, | ||
2263 | /* IP10_2_0 [3] */ | ||
2264 | FN_SSI_SCK23, FN_VI1_4_B, FN_RX1_D, FN_FCLE_B, | ||
2265 | FN_LCD_DATA15_B, 0, 0, 0 } | ||
2266 | }, | ||
2267 | { PINMUX_CFG_REG_VAR("IPSR11", 0xFFFC0048, 32, | ||
2268 | 3, 1, 2, 2, 2, 3, 3, 1, 2, 3, 3, 1, 1, 1, 1) { | ||
2269 | /* IP11_31_29 [3] */ | ||
2270 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2271 | /* IP11_28 [1] */ | ||
2272 | FN_PRESETOUT, FN_ST_CLKOUT, | ||
2273 | /* IP11_27_26 [2] */ | ||
2274 | FN_DACK1, FN_HSPI_CS_B, FN_TX4_B, FN_ET0_RX_CLK_A, | ||
2275 | /* IP11_25_23 [3] */ | ||
2276 | FN_DREQ1, FN_HSPI_CLK_B, FN_RX4_B, FN_ET0_PHY_INT_C, | ||
2277 | FN_ET0_TX_CLK_A, 0, 0, 0, | ||
2278 | /* IP11_22_21 [2] */ | ||
2279 | FN_DACK0, FN_SD1_DAT3_A, FN_ET0_TX_ER, 0, | ||
2280 | /* IP11_20_19 [2] */ | ||
2281 | FN_DREQ0, FN_SD1_CLK_A, FN_ET0_TX_EN, 0, | ||
2282 | /* IP11_18_16 [3] */ | ||
2283 | FN_USB_OVC1, FN_RX3_D, FN_CAN1_RX_B, FN_RX5_D, | ||
2284 | FN_IERX_B, 0, 0, 0, | ||
2285 | /* IP11_15_13 [3] */ | ||
2286 | FN_PENC1, FN_TX3_D, FN_CAN1_TX_B, FN_TX5_D, | ||
2287 | FN_IETX_B, 0, 0, 0, | ||
2288 | /* IP11_12 [1] */ | ||
2289 | FN_TX0_A, FN_HSPI_TX_A, | ||
2290 | /* IP11_11_10 [2] */ | ||
2291 | FN_RX0_A, FN_HSPI_RX_A, FN_RMII0_RXD0_A, FN_ET0_ERXD6, | ||
2292 | /* IP11_9_7 [3] */ | ||
2293 | FN_SCK0_A, FN_HSPI_CS_A, FN_VI0_CLKENB, FN_RMII0_TXD1_A, | ||
2294 | FN_ET0_ERXD5, 0, 0, 0, | ||
2295 | /* IP11_6_4 [3] */ | ||
2296 | FN_SCIF_CLK_A, FN_HSPI_CLK_A, FN_VI0_CLK, FN_RMII0_TXD0_A, | ||
2297 | FN_ET0_ERXD4, 0, 0, 0, | ||
2298 | /* IP11_3 [1] */ | ||
2299 | FN_SDSELF, FN_RTS1_E, | ||
2300 | /* IP11_2 [1] */ | ||
2301 | FN_SDA0, FN_HIFEBL_A, | ||
2302 | /* IP11_1 [1] */ | ||
2303 | FN_SDA1, FN_RX1_E, | ||
2304 | /* IP11_0 [1] */ | ||
2305 | FN_SCL1, FN_SCIF_CLK_C } | ||
2306 | }, | ||
2307 | { PINMUX_CFG_REG_VAR("MOD_SEL1", 0xFFFC004C, 32, | ||
2308 | 3, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, | ||
2309 | 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) { | ||
2310 | /* SEL1_31_29 [3] */ | ||
2311 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
2312 | /* SEL1_28 [1] */ | ||
2313 | FN_SEL_IEBUS_0, FN_SEL_IEBUS_1, | ||
2314 | /* SEL1_27 [1] */ | ||
2315 | FN_SEL_RQSPI_0, FN_SEL_RQSPI_1, | ||
2316 | /* SEL1_26 [1] */ | ||
2317 | FN_SEL_VIN1_0, FN_SEL_VIN1_1, | ||
2318 | /* SEL1_25 [1] */ | ||
2319 | FN_SEL_HIF_0, FN_SEL_HIF_1, | ||
2320 | /* SEL1_24 [1] */ | ||
2321 | FN_SEL_RSPI_0, FN_SEL_RSPI_1, | ||
2322 | /* SEL1_23 [1] */ | ||
2323 | FN_SEL_LCDC_0, FN_SEL_LCDC_1, | ||
2324 | /* SEL1_22_21 [2] */ | ||
2325 | FN_SEL_ET0_CTL_0, FN_SEL_ET0_CTL_1, FN_SEL_ET0_CTL_2, 0, | ||
2326 | /* SEL1_20 [1] */ | ||
2327 | FN_SEL_ET0_0, FN_SEL_ET0_1, | ||
2328 | /* SEL1_19 [1] */ | ||
2329 | FN_SEL_RMII_0, FN_SEL_RMII_1, | ||
2330 | /* SEL1_18 [1] */ | ||
2331 | FN_SEL_TMU_0, FN_SEL_TMU_1, | ||
2332 | /* SEL1_17_16 [2] */ | ||
2333 | FN_SEL_HSPI_0, FN_SEL_HSPI_1, FN_SEL_HSPI_2, 0, | ||
2334 | /* SEL1_15_14 [2] */ | ||
2335 | FN_SEL_HSCIF_0, FN_SEL_HSCIF_1, FN_SEL_HSCIF_2, FN_SEL_HSCIF_3, | ||
2336 | /* SEL1_13 [1] */ | ||
2337 | FN_SEL_RCAN_CLK_0, FN_SEL_RCAN_CLK_1, | ||
2338 | /* SEL1_12_11 [2] */ | ||
2339 | FN_SEL_RCAN1_0, FN_SEL_RCAN1_1, FN_SEL_RCAN1_2, 0, | ||
2340 | /* SEL1_10 [1] */ | ||
2341 | FN_SEL_RCAN0_0, FN_SEL_RCAN0_1, | ||
2342 | /* SEL1_9 [1] */ | ||
2343 | FN_SEL_SDHI2_0, FN_SEL_SDHI2_1, | ||
2344 | /* SEL1_8 [1] */ | ||
2345 | FN_SEL_SDHI1_0, FN_SEL_SDHI1_1, | ||
2346 | /* SEL1_7 [1] */ | ||
2347 | FN_SEL_SDHI0_0, FN_SEL_SDHI0_1, | ||
2348 | /* SEL1_6 [1] */ | ||
2349 | FN_SEL_SSI1_0, FN_SEL_SSI1_1, | ||
2350 | /* SEL1_5 [1] */ | ||
2351 | FN_SEL_SSI0_0, FN_SEL_SSI0_1, | ||
2352 | /* SEL1_4 [1] */ | ||
2353 | FN_SEL_AUDIO_CLKB_0, FN_SEL_AUDIO_CLKB_1, | ||
2354 | /* SEL1_3 [1] */ | ||
2355 | FN_SEL_AUDIO_CLKA_0, FN_SEL_AUDIO_CLKA_1, | ||
2356 | /* SEL1_2 [1] */ | ||
2357 | FN_SEL_FLCTL_0, FN_SEL_FLCTL_1, | ||
2358 | /* SEL1_1 [1] */ | ||
2359 | FN_SEL_MMC_0, FN_SEL_MMC_1, | ||
2360 | /* SEL1_0 [1] */ | ||
2361 | FN_SEL_INTC_0, FN_SEL_INTC_1 } | ||
2362 | }, | ||
2363 | { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xFFFC0050, 32, | ||
2364 | 1, 1, 1, 1, 1, 1, 1, 1, | ||
2365 | 1, 1, 1, 2, 2, 1, 2, 2, 3, 2, 3, 2, 2) { | ||
2366 | /* SEL2_31 [1] */ | ||
2367 | 0, 0, | ||
2368 | /* SEL2_30 [1] */ | ||
2369 | 0, 0, | ||
2370 | /* SEL2_29 [1] */ | ||
2371 | 0, 0, | ||
2372 | /* SEL2_28 [1] */ | ||
2373 | 0, 0, | ||
2374 | /* SEL2_27 [1] */ | ||
2375 | 0, 0, | ||
2376 | /* SEL2_26 [1] */ | ||
2377 | 0, 0, | ||
2378 | /* SEL2_25 [1] */ | ||
2379 | 0, 0, | ||
2380 | /* SEL2_24 [1] */ | ||
2381 | 0, 0, | ||
2382 | /* SEL2_23 [1] */ | ||
2383 | FN_SEL_MTU2_CLK_0, FN_SEL_MTU2_CLK_1, | ||
2384 | /* SEL2_22 [1] */ | ||
2385 | FN_SEL_MTU2_CH4_0, FN_SEL_MTU2_CH4_1, | ||
2386 | /* SEL2_21 [1] */ | ||
2387 | FN_SEL_MTU2_CH3_0, FN_SEL_MTU2_CH3_1, | ||
2388 | /* SEL2_20_19 [2] */ | ||
2389 | FN_SEL_MTU2_CH2_0, FN_SEL_MTU2_CH2_1, FN_SEL_MTU2_CH2_2, 0, | ||
2390 | /* SEL2_18_17 [2] */ | ||
2391 | FN_SEL_MTU2_CH1_0, FN_SEL_MTU2_CH1_1, FN_SEL_MTU2_CH1_2, 0, | ||
2392 | /* SEL2_16 [1] */ | ||
2393 | FN_SEL_MTU2_CH0_0, FN_SEL_MTU2_CH0_1, | ||
2394 | /* SEL2_15_14 [2] */ | ||
2395 | FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, FN_SEL_SCIF5_2, FN_SEL_SCIF5_3, | ||
2396 | /* SEL2_13_12 [2] */ | ||
2397 | FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, FN_SEL_SCIF4_3, | ||
2398 | /* SEL2_11_9 [3] */ | ||
2399 | FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3, | ||
2400 | FN_SEL_SCIF3_4, 0, 0, 0, | ||
2401 | /* SEL2_8_7 [2] */ | ||
2402 | FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, FN_SEL_SCIF2_3, | ||
2403 | /* SEL2_6_4 [3] */ | ||
2404 | FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, FN_SEL_SCIF1_3, | ||
2405 | FN_SEL_SCIF1_4, 0, 0, 0, | ||
2406 | /* SEL2_3_2 [2] */ | ||
2407 | FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, 0, | ||
2408 | /* SEL2_1_0 [2] */ | ||
2409 | FN_SEL_SCIF_CLK_0, FN_SEL_SCIF_CLK_1, FN_SEL_SCIF_CLK_2, 0 } | ||
2410 | }, | ||
2411 | /* GPIO 0 - 5*/ | ||
2412 | { PINMUX_CFG_REG("INOUTSEL0", 0xFFC40004, 32, 1) { GP_INOUTSEL(0) } }, | ||
2413 | { PINMUX_CFG_REG("INOUTSEL1", 0xFFC41004, 32, 1) { GP_INOUTSEL(1) } }, | ||
2414 | { PINMUX_CFG_REG("INOUTSEL2", 0xFFC42004, 32, 1) { GP_INOUTSEL(2) } }, | ||
2415 | { PINMUX_CFG_REG("INOUTSEL3", 0xFFC43004, 32, 1) { GP_INOUTSEL(3) } }, | ||
2416 | { PINMUX_CFG_REG("INOUTSEL4", 0xFFC44004, 32, 1) { GP_INOUTSEL(4) } }, | ||
2417 | { PINMUX_CFG_REG("INOUTSEL5", 0xffc45004, 32, 1) { | ||
2418 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 31 - 24 */ | ||
2419 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 23 - 16 */ | ||
2420 | 0, 0, 0, 0, 0, 0, 0, 0, /* 15 - 12 */ | ||
2421 | GP_5_11_IN, GP_5_11_OUT, | ||
2422 | GP_5_10_IN, GP_5_10_OUT, | ||
2423 | GP_5_9_IN, GP_5_9_OUT, | ||
2424 | GP_5_8_IN, GP_5_8_OUT, | ||
2425 | GP_5_7_IN, GP_5_7_OUT, | ||
2426 | GP_5_6_IN, GP_5_6_OUT, | ||
2427 | GP_5_5_IN, GP_5_5_OUT, | ||
2428 | GP_5_4_IN, GP_5_4_OUT, | ||
2429 | GP_5_3_IN, GP_5_3_OUT, | ||
2430 | GP_5_2_IN, GP_5_2_OUT, | ||
2431 | GP_5_1_IN, GP_5_1_OUT, | ||
2432 | GP_5_0_IN, GP_5_0_OUT } | ||
2433 | }, | ||
2434 | { }, | ||
2435 | }; | ||
2436 | |||
2437 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2438 | /* GPIO 0 - 5*/ | ||
2439 | { PINMUX_DATA_REG("INDT0", 0xFFC4000C, 32) { GP_INDT(0) } }, | ||
2440 | { PINMUX_DATA_REG("INDT1", 0xFFC4100C, 32) { GP_INDT(1) } }, | ||
2441 | { PINMUX_DATA_REG("INDT2", 0xFFC4200C, 32) { GP_INDT(2) } }, | ||
2442 | { PINMUX_DATA_REG("INDT3", 0xFFC4300C, 32) { GP_INDT(3) } }, | ||
2443 | { PINMUX_DATA_REG("INDT4", 0xFFC4400C, 32) { GP_INDT(4) } }, | ||
2444 | { PINMUX_DATA_REG("INDT5", 0xFFC4500C, 32) { | ||
2445 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
2446 | 0, 0, 0, 0, | ||
2447 | GP_5_11_DATA, GP_5_10_DATA, GP_5_9_DATA, GP_5_8_DATA, | ||
2448 | GP_5_7_DATA, GP_5_6_DATA, GP_5_5_DATA, GP_5_4_DATA, | ||
2449 | GP_5_3_DATA, GP_5_2_DATA, GP_5_1_DATA, GP_5_0_DATA } | ||
2450 | }, | ||
2451 | { }, | ||
2452 | }; | ||
2453 | |||
2454 | struct sh_pfc_soc_info sh7734_pinmux_info = { | ||
2455 | .name = "sh7734_pfc", | ||
2456 | |||
2457 | .unlock_reg = 0xFFFC0000, | ||
2458 | |||
2459 | .reserved_id = PINMUX_RESERVED, | ||
2460 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2461 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
2462 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
2463 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2464 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2465 | |||
2466 | .first_gpio = GPIO_GP_0_0, | ||
2467 | .last_gpio = GPIO_FN_ST_CLKOUT, | ||
2468 | |||
2469 | .gpios = pinmux_gpios, | ||
2470 | .cfg_regs = pinmux_config_regs, | ||
2471 | .data_regs = pinmux_data_regs, | ||
2472 | |||
2473 | .gpio_data = pinmux_data, | ||
2474 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2475 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7757.c b/drivers/pinctrl/sh-pfc/pfc-sh7757.c new file mode 100644 index 000000000000..5ed74cd0ba99 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7757.c | |||
@@ -0,0 +1,2282 @@ | |||
1 | /* | ||
2 | * SH7757 (B0 step) Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2009-2010 Renesas Solutions Corp. | ||
5 | * | ||
6 | * Author : Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | ||
7 | * | ||
8 | * Based on SH7723 Pinmux | ||
9 | * Copyright (C) 2008 Magnus Damm | ||
10 | * | ||
11 | * This file is subject to the terms and conditions of the GNU General Public | ||
12 | * License. See the file "COPYING" in the main directory of this archive | ||
13 | * for more details. | ||
14 | */ | ||
15 | |||
16 | #include <linux/init.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <cpu/sh7757.h> | ||
19 | |||
20 | #include "sh_pfc.h" | ||
21 | |||
22 | enum { | ||
23 | PINMUX_RESERVED = 0, | ||
24 | |||
25 | PINMUX_DATA_BEGIN, | ||
26 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
27 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
28 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
29 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
30 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
31 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
32 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
33 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
34 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
35 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
36 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
37 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
38 | PTG7_DATA, PTG6_DATA, PTG5_DATA, PTG4_DATA, | ||
39 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
40 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
41 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
42 | PTI7_DATA, PTI6_DATA, PTI5_DATA, PTI4_DATA, | ||
43 | PTI3_DATA, PTI2_DATA, PTI1_DATA, PTI0_DATA, | ||
44 | PTJ6_DATA, PTJ5_DATA, PTJ4_DATA, | ||
45 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
46 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
47 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
48 | PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
49 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
50 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
51 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
52 | PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
53 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
54 | PTO7_DATA, PTO6_DATA, PTO5_DATA, PTO4_DATA, | ||
55 | PTO3_DATA, PTO2_DATA, PTO1_DATA, PTO0_DATA, | ||
56 | PTP7_DATA, PTP6_DATA, PTP5_DATA, PTP4_DATA, | ||
57 | PTP3_DATA, PTP2_DATA, PTP1_DATA, PTP0_DATA, | ||
58 | PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
59 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
60 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
61 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
62 | PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
63 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
64 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
65 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
66 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
67 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
68 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
69 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
70 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
71 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
72 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
73 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
74 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
75 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
76 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
77 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
78 | PINMUX_DATA_END, | ||
79 | |||
80 | PINMUX_INPUT_BEGIN, | ||
81 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
82 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
83 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
84 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
85 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
86 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
87 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
88 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
89 | PTE7_IN, PTE6_IN, PTE5_IN, PTE4_IN, | ||
90 | PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
91 | PTF7_IN, PTF6_IN, PTF5_IN, PTF4_IN, | ||
92 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
93 | PTG7_IN, PTG6_IN, PTG5_IN, PTG4_IN, | ||
94 | PTG3_IN, PTG2_IN, PTG1_IN, PTG0_IN, | ||
95 | PTH7_IN, PTH6_IN, PTH5_IN, PTH4_IN, | ||
96 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
97 | PTI7_IN, PTI6_IN, PTI5_IN, PTI4_IN, | ||
98 | PTI3_IN, PTI2_IN, PTI1_IN, PTI0_IN, | ||
99 | PTJ6_IN, PTJ5_IN, PTJ4_IN, | ||
100 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
101 | PTK7_IN, PTK6_IN, PTK5_IN, PTK4_IN, | ||
102 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
103 | PTL6_IN, PTL5_IN, PTL4_IN, | ||
104 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
105 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
106 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
107 | PTN6_IN, PTN5_IN, PTN4_IN, | ||
108 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
109 | PTO7_IN, PTO6_IN, PTO5_IN, PTO4_IN, | ||
110 | PTO3_IN, PTO2_IN, PTO1_IN, PTO0_IN, | ||
111 | PTP7_IN, PTP6_IN, PTP5_IN, PTP4_IN, | ||
112 | PTP3_IN, PTP2_IN, PTP1_IN, PTP0_IN, | ||
113 | PTQ6_IN, PTQ5_IN, PTQ4_IN, | ||
114 | PTQ3_IN, PTQ2_IN, PTQ1_IN, PTQ0_IN, | ||
115 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
116 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
117 | PTS7_IN, PTS6_IN, PTS5_IN, PTS4_IN, | ||
118 | PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
119 | PTT7_IN, PTT6_IN, PTT5_IN, PTT4_IN, | ||
120 | PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
121 | PTU7_IN, PTU6_IN, PTU5_IN, PTU4_IN, | ||
122 | PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
123 | PTV7_IN, PTV6_IN, PTV5_IN, PTV4_IN, | ||
124 | PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
125 | PTW7_IN, PTW6_IN, PTW5_IN, PTW4_IN, | ||
126 | PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
127 | PTX7_IN, PTX6_IN, PTX5_IN, PTX4_IN, | ||
128 | PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
129 | PTY7_IN, PTY6_IN, PTY5_IN, PTY4_IN, | ||
130 | PTY3_IN, PTY2_IN, PTY1_IN, PTY0_IN, | ||
131 | PTZ7_IN, PTZ6_IN, PTZ5_IN, PTZ4_IN, | ||
132 | PTZ3_IN, PTZ2_IN, PTZ1_IN, PTZ0_IN, | ||
133 | PINMUX_INPUT_END, | ||
134 | |||
135 | PINMUX_INPUT_PULLUP_BEGIN, | ||
136 | PTA7_IN_PU, PTA6_IN_PU, PTA5_IN_PU, PTA4_IN_PU, | ||
137 | PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
138 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
139 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, PTD0_IN_PU, | ||
140 | PTE7_IN_PU, PTE6_IN_PU, PTE5_IN_PU, PTE4_IN_PU, | ||
141 | PTE3_IN_PU, PTE2_IN_PU, PTE1_IN_PU, PTE0_IN_PU, | ||
142 | PTF7_IN_PU, PTF6_IN_PU, PTF5_IN_PU, PTF4_IN_PU, | ||
143 | PTF3_IN_PU, PTF2_IN_PU, PTF1_IN_PU, PTF0_IN_PU, | ||
144 | PTG7_IN_PU, PTG6_IN_PU, PTG4_IN_PU, | ||
145 | PTH7_IN_PU, PTH6_IN_PU, PTH5_IN_PU, PTH4_IN_PU, | ||
146 | PTH3_IN_PU, PTH2_IN_PU, PTH1_IN_PU, PTH0_IN_PU, | ||
147 | PTI7_IN_PU, PTI6_IN_PU, PTI4_IN_PU, | ||
148 | PTI3_IN_PU, PTI2_IN_PU, PTI1_IN_PU, PTI0_IN_PU, | ||
149 | PTJ6_IN_PU, PTJ5_IN_PU, PTJ4_IN_PU, | ||
150 | PTJ3_IN_PU, PTJ2_IN_PU, PTJ1_IN_PU, PTJ0_IN_PU, | ||
151 | PTK7_IN_PU, PTK6_IN_PU, PTK5_IN_PU, PTK4_IN_PU, | ||
152 | PTK3_IN_PU, PTK2_IN_PU, PTK1_IN_PU, PTK0_IN_PU, | ||
153 | PTL6_IN_PU, PTL5_IN_PU, PTL4_IN_PU, | ||
154 | PTL3_IN_PU, PTL2_IN_PU, PTL1_IN_PU, PTL0_IN_PU, | ||
155 | PTM7_IN_PU, PTM6_IN_PU, PTM5_IN_PU, PTM4_IN_PU, | ||
156 | PTN4_IN_PU, | ||
157 | PTN3_IN_PU, PTN2_IN_PU, PTN1_IN_PU, PTN0_IN_PU, | ||
158 | PTO7_IN_PU, PTO6_IN_PU, PTO5_IN_PU, PTO4_IN_PU, | ||
159 | PTO3_IN_PU, PTO2_IN_PU, PTO1_IN_PU, PTO0_IN_PU, | ||
160 | PTT7_IN_PU, PTT6_IN_PU, PTT5_IN_PU, PTT4_IN_PU, | ||
161 | PTT3_IN_PU, PTT2_IN_PU, PTT1_IN_PU, PTT0_IN_PU, | ||
162 | PTU7_IN_PU, PTU6_IN_PU, PTU5_IN_PU, PTU4_IN_PU, | ||
163 | PTU3_IN_PU, PTU2_IN_PU, PTU1_IN_PU, PTU0_IN_PU, | ||
164 | PTV7_IN_PU, PTV6_IN_PU, PTV5_IN_PU, PTV4_IN_PU, | ||
165 | PTV3_IN_PU, PTV2_IN_PU, | ||
166 | PTW1_IN_PU, PTW0_IN_PU, | ||
167 | PTX7_IN_PU, PTX6_IN_PU, PTX5_IN_PU, PTX4_IN_PU, | ||
168 | PTX3_IN_PU, PTX2_IN_PU, PTX1_IN_PU, PTX0_IN_PU, | ||
169 | PTY7_IN_PU, PTY6_IN_PU, PTY5_IN_PU, PTY4_IN_PU, | ||
170 | PTY3_IN_PU, PTY2_IN_PU, PTY1_IN_PU, PTY0_IN_PU, | ||
171 | PTZ7_IN_PU, PTZ6_IN_PU, PTZ5_IN_PU, PTZ4_IN_PU, | ||
172 | PTZ3_IN_PU, PTZ2_IN_PU, PTZ1_IN_PU, PTZ0_IN_PU, | ||
173 | PINMUX_INPUT_PULLUP_END, | ||
174 | |||
175 | PINMUX_OUTPUT_BEGIN, | ||
176 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
177 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
178 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
179 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
180 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
181 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
182 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
183 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
184 | PTE7_OUT, PTE6_OUT, PTE5_OUT, PTE4_OUT, | ||
185 | PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
186 | PTF7_OUT, PTF6_OUT, PTF5_OUT, PTF4_OUT, | ||
187 | PTF3_OUT, PTF2_OUT, PTF1_OUT, PTF0_OUT, | ||
188 | PTG7_OUT, PTG6_OUT, PTG5_OUT, PTG4_OUT, | ||
189 | PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
190 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
191 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
192 | PTI7_OUT, PTI6_OUT, PTI5_OUT, PTI4_OUT, | ||
193 | PTI3_OUT, PTI2_OUT, PTI1_OUT, PTI0_OUT, | ||
194 | PTJ6_OUT, PTJ5_OUT, PTJ4_OUT, | ||
195 | PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
196 | PTK7_OUT, PTK6_OUT, PTK5_OUT, PTK4_OUT, | ||
197 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
198 | PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
199 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
200 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
201 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
202 | PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
203 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, | ||
204 | PTO7_OUT, PTO6_OUT, PTO5_OUT, PTO4_OUT, | ||
205 | PTO3_OUT, PTO2_OUT, PTO1_OUT, PTO0_OUT, | ||
206 | PTP7_OUT, PTP6_OUT, PTP5_OUT, PTP4_OUT, | ||
207 | PTP3_OUT, PTP2_OUT, PTP1_OUT, PTP0_OUT, | ||
208 | PTQ6_OUT, PTQ5_OUT, PTQ4_OUT, | ||
209 | PTQ3_OUT, PTQ2_OUT, PTQ1_OUT, PTQ0_OUT, | ||
210 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
211 | PTR3_OUT, PTR2_OUT, PTR1_OUT, PTR0_OUT, | ||
212 | PTS7_OUT, PTS6_OUT, PTS5_OUT, PTS4_OUT, | ||
213 | PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
214 | PTT7_OUT, PTT6_OUT, PTT5_OUT, PTT4_OUT, | ||
215 | PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
216 | PTU7_OUT, PTU6_OUT, PTU5_OUT, PTU4_OUT, | ||
217 | PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
218 | PTV7_OUT, PTV6_OUT, PTV5_OUT, PTV4_OUT, | ||
219 | PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
220 | PTW7_OUT, PTW6_OUT, PTW5_OUT, PTW4_OUT, | ||
221 | PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
222 | PTX7_OUT, PTX6_OUT, PTX5_OUT, PTX4_OUT, | ||
223 | PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
224 | PTY7_OUT, PTY6_OUT, PTY5_OUT, PTY4_OUT, | ||
225 | PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
226 | PTZ7_OUT, PTZ6_OUT, PTZ5_OUT, PTZ4_OUT, | ||
227 | PTZ3_OUT, PTZ2_OUT, PTZ1_OUT, PTZ0_OUT, | ||
228 | PINMUX_OUTPUT_END, | ||
229 | |||
230 | PINMUX_FUNCTION_BEGIN, | ||
231 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
232 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
233 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
234 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
235 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
236 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
237 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
238 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
239 | PTE7_FN, PTE6_FN, PTE5_FN, PTE4_FN, | ||
240 | PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
241 | PTF7_FN, PTF6_FN, PTF5_FN, PTF4_FN, | ||
242 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
243 | PTG7_FN, PTG6_FN, PTG5_FN, PTG4_FN, | ||
244 | PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
245 | PTH7_FN, PTH6_FN, PTH5_FN, PTH4_FN, | ||
246 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
247 | PTI7_FN, PTI6_FN, PTI5_FN, PTI4_FN, | ||
248 | PTI3_FN, PTI2_FN, PTI1_FN, PTI0_FN, | ||
249 | PTJ6_FN, PTJ5_FN, PTJ4_FN, | ||
250 | PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
251 | PTK7_FN, PTK6_FN, PTK5_FN, PTK4_FN, | ||
252 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
253 | PTL6_FN, PTL5_FN, PTL4_FN, | ||
254 | PTL3_FN, PTL2_FN, PTL1_FN, PTL0_FN, | ||
255 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
256 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
257 | PTN6_FN, PTN5_FN, PTN4_FN, | ||
258 | PTN3_FN, PTN2_FN, PTN1_FN, PTN0_FN, | ||
259 | PTO7_FN, PTO6_FN, PTO5_FN, PTO4_FN, | ||
260 | PTO3_FN, PTO2_FN, PTO1_FN, PTO0_FN, | ||
261 | PTP7_FN, PTP6_FN, PTP5_FN, PTP4_FN, | ||
262 | PTP3_FN, PTP2_FN, PTP1_FN, PTP0_FN, | ||
263 | PTQ6_FN, PTQ5_FN, PTQ4_FN, | ||
264 | PTQ3_FN, PTQ2_FN, PTQ1_FN, PTQ0_FN, | ||
265 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
266 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
267 | PTS7_FN, PTS6_FN, PTS5_FN, PTS4_FN, | ||
268 | PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
269 | PTT7_FN, PTT6_FN, PTT5_FN, PTT4_FN, | ||
270 | PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
271 | PTU7_FN, PTU6_FN, PTU5_FN, PTU4_FN, | ||
272 | PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
273 | PTV7_FN, PTV6_FN, PTV5_FN, PTV4_FN, | ||
274 | PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
275 | PTW7_FN, PTW6_FN, PTW5_FN, PTW4_FN, | ||
276 | PTW3_FN, PTW2_FN, PTW1_FN, PTW0_FN, | ||
277 | PTX7_FN, PTX6_FN, PTX5_FN, PTX4_FN, | ||
278 | PTX3_FN, PTX2_FN, PTX1_FN, PTX0_FN, | ||
279 | PTY7_FN, PTY6_FN, PTY5_FN, PTY4_FN, | ||
280 | PTY3_FN, PTY2_FN, PTY1_FN, PTY0_FN, | ||
281 | PTZ7_FN, PTZ6_FN, PTZ5_FN, PTZ4_FN, | ||
282 | PTZ3_FN, PTZ2_FN, PTZ1_FN, PTZ0_FN, | ||
283 | |||
284 | PS0_15_FN1, PS0_15_FN2, | ||
285 | PS0_14_FN1, PS0_14_FN2, | ||
286 | PS0_13_FN1, PS0_13_FN2, | ||
287 | PS0_12_FN1, PS0_12_FN2, | ||
288 | PS0_11_FN1, PS0_11_FN2, | ||
289 | PS0_10_FN1, PS0_10_FN2, | ||
290 | PS0_9_FN1, PS0_9_FN2, | ||
291 | PS0_8_FN1, PS0_8_FN2, | ||
292 | PS0_7_FN1, PS0_7_FN2, | ||
293 | PS0_6_FN1, PS0_6_FN2, | ||
294 | PS0_5_FN1, PS0_5_FN2, | ||
295 | PS0_4_FN1, PS0_4_FN2, | ||
296 | PS0_3_FN1, PS0_3_FN2, | ||
297 | PS0_2_FN1, PS0_2_FN2, | ||
298 | |||
299 | PS1_10_FN1, PS1_10_FN2, | ||
300 | PS1_9_FN1, PS1_9_FN2, | ||
301 | PS1_8_FN1, PS1_8_FN2, | ||
302 | PS1_2_FN1, PS1_2_FN2, | ||
303 | |||
304 | PS2_13_FN1, PS2_13_FN2, | ||
305 | PS2_12_FN1, PS2_12_FN2, | ||
306 | PS2_7_FN1, PS2_7_FN2, | ||
307 | PS2_6_FN1, PS2_6_FN2, | ||
308 | PS2_5_FN1, PS2_5_FN2, | ||
309 | PS2_4_FN1, PS2_4_FN2, | ||
310 | PS2_2_FN1, PS2_2_FN2, | ||
311 | |||
312 | PS3_15_FN1, PS3_15_FN2, | ||
313 | PS3_14_FN1, PS3_14_FN2, | ||
314 | PS3_13_FN1, PS3_13_FN2, | ||
315 | PS3_12_FN1, PS3_12_FN2, | ||
316 | PS3_11_FN1, PS3_11_FN2, | ||
317 | PS3_10_FN1, PS3_10_FN2, | ||
318 | PS3_9_FN1, PS3_9_FN2, | ||
319 | PS3_8_FN1, PS3_8_FN2, | ||
320 | PS3_7_FN1, PS3_7_FN2, | ||
321 | PS3_2_FN1, PS3_2_FN2, | ||
322 | PS3_1_FN1, PS3_1_FN2, | ||
323 | |||
324 | PS4_14_FN1, PS4_14_FN2, | ||
325 | PS4_13_FN1, PS4_13_FN2, | ||
326 | PS4_12_FN1, PS4_12_FN2, | ||
327 | PS4_10_FN1, PS4_10_FN2, | ||
328 | PS4_9_FN1, PS4_9_FN2, | ||
329 | PS4_8_FN1, PS4_8_FN2, | ||
330 | PS4_4_FN1, PS4_4_FN2, | ||
331 | PS4_3_FN1, PS4_3_FN2, | ||
332 | PS4_2_FN1, PS4_2_FN2, | ||
333 | PS4_1_FN1, PS4_1_FN2, | ||
334 | PS4_0_FN1, PS4_0_FN2, | ||
335 | |||
336 | PS5_11_FN1, PS5_11_FN2, | ||
337 | PS5_10_FN1, PS5_10_FN2, | ||
338 | PS5_9_FN1, PS5_9_FN2, | ||
339 | PS5_8_FN1, PS5_8_FN2, | ||
340 | PS5_7_FN1, PS5_7_FN2, | ||
341 | PS5_6_FN1, PS5_6_FN2, | ||
342 | PS5_5_FN1, PS5_5_FN2, | ||
343 | PS5_4_FN1, PS5_4_FN2, | ||
344 | PS5_3_FN1, PS5_3_FN2, | ||
345 | PS5_2_FN1, PS5_2_FN2, | ||
346 | |||
347 | PS6_15_FN1, PS6_15_FN2, | ||
348 | PS6_14_FN1, PS6_14_FN2, | ||
349 | PS6_13_FN1, PS6_13_FN2, | ||
350 | PS6_12_FN1, PS6_12_FN2, | ||
351 | PS6_11_FN1, PS6_11_FN2, | ||
352 | PS6_10_FN1, PS6_10_FN2, | ||
353 | PS6_9_FN1, PS6_9_FN2, | ||
354 | PS6_8_FN1, PS6_8_FN2, | ||
355 | PS6_7_FN1, PS6_7_FN2, | ||
356 | PS6_6_FN1, PS6_6_FN2, | ||
357 | PS6_5_FN1, PS6_5_FN2, | ||
358 | PS6_4_FN1, PS6_4_FN2, | ||
359 | PS6_3_FN1, PS6_3_FN2, | ||
360 | PS6_2_FN1, PS6_2_FN2, | ||
361 | PS6_1_FN1, PS6_1_FN2, | ||
362 | PS6_0_FN1, PS6_0_FN2, | ||
363 | |||
364 | PS7_15_FN1, PS7_15_FN2, | ||
365 | PS7_14_FN1, PS7_14_FN2, | ||
366 | PS7_13_FN1, PS7_13_FN2, | ||
367 | PS7_12_FN1, PS7_12_FN2, | ||
368 | PS7_11_FN1, PS7_11_FN2, | ||
369 | PS7_10_FN1, PS7_10_FN2, | ||
370 | PS7_9_FN1, PS7_9_FN2, | ||
371 | PS7_8_FN1, PS7_8_FN2, | ||
372 | PS7_7_FN1, PS7_7_FN2, | ||
373 | PS7_6_FN1, PS7_6_FN2, | ||
374 | PS7_5_FN1, PS7_5_FN2, | ||
375 | PS7_4_FN1, PS7_4_FN2, | ||
376 | |||
377 | PS8_15_FN1, PS8_15_FN2, | ||
378 | PS8_14_FN1, PS8_14_FN2, | ||
379 | PS8_13_FN1, PS8_13_FN2, | ||
380 | PS8_12_FN1, PS8_12_FN2, | ||
381 | PS8_11_FN1, PS8_11_FN2, | ||
382 | PS8_10_FN1, PS8_10_FN2, | ||
383 | PS8_9_FN1, PS8_9_FN2, | ||
384 | PS8_8_FN1, PS8_8_FN2, | ||
385 | PINMUX_FUNCTION_END, | ||
386 | |||
387 | PINMUX_MARK_BEGIN, | ||
388 | /* PTA (mobule: LBSC, RGMII) */ | ||
389 | BS_MARK, RDWR_MARK, WE1_MARK, RDY_MARK, | ||
390 | ET0_MDC_MARK, ET0_MDIO_MARK, ET1_MDC_MARK, ET1_MDIO_MARK, | ||
391 | |||
392 | /* PTB (mobule: INTC, ONFI, TMU) */ | ||
393 | IRQ15_MARK, IRQ14_MARK, IRQ13_MARK, IRQ12_MARK, | ||
394 | IRQ11_MARK, IRQ10_MARK, IRQ9_MARK, IRQ8_MARK, | ||
395 | ON_NRE_MARK, ON_NWE_MARK, ON_NWP_MARK, ON_NCE0_MARK, | ||
396 | ON_R_B0_MARK, ON_ALE_MARK, ON_CLE_MARK, TCLK_MARK, | ||
397 | |||
398 | /* PTC (mobule: IRQ, PWMU) */ | ||
399 | IRQ7_MARK, IRQ6_MARK, IRQ5_MARK, IRQ4_MARK, | ||
400 | IRQ3_MARK, IRQ2_MARK, IRQ1_MARK, IRQ0_MARK, | ||
401 | PWMU0_MARK, PWMU1_MARK, PWMU2_MARK, PWMU3_MARK, | ||
402 | PWMU4_MARK, PWMU5_MARK, | ||
403 | |||
404 | /* PTD (mobule: SPI0, DMAC) */ | ||
405 | SP0_MOSI_MARK, SP0_MISO_MARK, SP0_SCK_MARK, SP0_SCK_FB_MARK, | ||
406 | SP0_SS0_MARK, SP0_SS1_MARK, SP0_SS2_MARK, SP0_SS3_MARK, | ||
407 | DREQ0_MARK, DACK0_MARK, TEND0_MARK, | ||
408 | |||
409 | /* PTE (mobule: RMII) */ | ||
410 | RMII0_CRS_DV_MARK, RMII0_TXD1_MARK, | ||
411 | RMII0_TXD0_MARK, RMII0_TXEN_MARK, | ||
412 | RMII0_REFCLK_MARK, RMII0_RXD1_MARK, | ||
413 | RMII0_RXD0_MARK, RMII0_RX_ER_MARK, | ||
414 | |||
415 | /* PTF (mobule: RMII, SerMux) */ | ||
416 | RMII1_CRS_DV_MARK, RMII1_TXD1_MARK, | ||
417 | RMII1_TXD0_MARK, RMII1_TXEN_MARK, | ||
418 | RMII1_REFCLK_MARK, RMII1_RXD1_MARK, | ||
419 | RMII1_RXD0_MARK, RMII1_RX_ER_MARK, | ||
420 | RAC_RI_MARK, | ||
421 | |||
422 | /* PTG (mobule: system, LBSC, LPC, WDT, LPC, eMMC) */ | ||
423 | BOOTFMS_MARK, BOOTWP_MARK, A25_MARK, A24_MARK, | ||
424 | SERIRQ_MARK, WDTOVF_MARK, LPCPD_MARK, LDRQ_MARK, | ||
425 | MMCCLK_MARK, MMCCMD_MARK, | ||
426 | |||
427 | /* PTH (mobule: SPI1, LPC, DMAC, ADC) */ | ||
428 | SP1_MOSI_MARK, SP1_MISO_MARK, SP1_SCK_MARK, SP1_SCK_FB_MARK, | ||
429 | SP1_SS0_MARK, SP1_SS1_MARK, WP_MARK, FMS0_MARK, | ||
430 | TEND1_MARK, DREQ1_MARK, DACK1_MARK, ADTRG1_MARK, | ||
431 | ADTRG0_MARK, | ||
432 | |||
433 | /* PTI (mobule: LBSC, SDHI) */ | ||
434 | D15_MARK, D14_MARK, D13_MARK, D12_MARK, | ||
435 | D11_MARK, D10_MARK, D9_MARK, D8_MARK, | ||
436 | SD_WP_MARK, SD_CD_MARK, SD_CLK_MARK, SD_CMD_MARK, | ||
437 | SD_D3_MARK, SD_D2_MARK, SD_D1_MARK, SD_D0_MARK, | ||
438 | |||
439 | /* PTJ (mobule: SCIF234) */ | ||
440 | RTS3_MARK, CTS3_MARK, TXD3_MARK, RXD3_MARK, | ||
441 | RTS4_MARK, RXD4_MARK, TXD4_MARK, | ||
442 | |||
443 | /* PTK (mobule: SERMUX, LBSC, SCIF) */ | ||
444 | COM2_TXD_MARK, COM2_RXD_MARK, COM2_RTS_MARK, COM2_CTS_MARK, | ||
445 | COM2_DTR_MARK, COM2_DSR_MARK, COM2_DCD_MARK, CLKOUT_MARK, | ||
446 | SCK2_MARK, SCK4_MARK, SCK3_MARK, | ||
447 | |||
448 | /* PTL (mobule: SERMUX, SCIF, LBSC, AUD) */ | ||
449 | RAC_RXD_MARK, RAC_RTS_MARK, RAC_CTS_MARK, RAC_DTR_MARK, | ||
450 | RAC_DSR_MARK, RAC_DCD_MARK, RAC_TXD_MARK, RXD2_MARK, | ||
451 | CS5_MARK, CS6_MARK, AUDSYNC_MARK, AUDCK_MARK, | ||
452 | TXD2_MARK, | ||
453 | |||
454 | /* PTM (mobule: LBSC, IIC) */ | ||
455 | CS4_MARK, RD_MARK, WE0_MARK, CS0_MARK, | ||
456 | SDA6_MARK, SCL6_MARK, SDA7_MARK, SCL7_MARK, | ||
457 | |||
458 | /* PTN (mobule: USB, JMC, SGPIO, WDT) */ | ||
459 | VBUS_EN_MARK, VBUS_OC_MARK, JMCTCK_MARK, JMCTMS_MARK, | ||
460 | JMCTDO_MARK, JMCTDI_MARK, JMCTRST_MARK, | ||
461 | SGPIO1_CLK_MARK, SGPIO1_LOAD_MARK, SGPIO1_DI_MARK, | ||
462 | SGPIO1_DO_MARK, SUB_CLKIN_MARK, | ||
463 | |||
464 | /* PTO (mobule: SGPIO, SerMux) */ | ||
465 | SGPIO0_CLK_MARK, SGPIO0_LOAD_MARK, SGPIO0_DI_MARK, | ||
466 | SGPIO0_DO_MARK, SGPIO2_CLK_MARK, SGPIO2_LOAD_MARK, | ||
467 | SGPIO2_DI_MARK, SGPIO2_DO_MARK, | ||
468 | COM1_TXD_MARK, COM1_RXD_MARK, COM1_RTS_MARK, COM1_CTS_MARK, | ||
469 | |||
470 | /* PTQ (mobule: LPC) */ | ||
471 | LAD3_MARK, LAD2_MARK, LAD1_MARK, LAD0_MARK, | ||
472 | LFRAME_MARK, LRESET_MARK, LCLK_MARK, | ||
473 | |||
474 | /* PTR (mobule: GRA, IIC) */ | ||
475 | DDC3_MARK, DDC2_MARK, SDA2_MARK, SCL2_MARK, | ||
476 | SDA1_MARK, SCL1_MARK, SDA0_MARK, SCL0_MARK, | ||
477 | SDA8_MARK, SCL8_MARK, | ||
478 | |||
479 | /* PTS (mobule: GRA, IIC) */ | ||
480 | DDC1_MARK, DDC0_MARK, SDA5_MARK, SCL5_MARK, | ||
481 | SDA4_MARK, SCL4_MARK, SDA3_MARK, SCL3_MARK, | ||
482 | SDA9_MARK, SCL9_MARK, | ||
483 | |||
484 | /* PTT (mobule: PWMX, AUD) */ | ||
485 | PWMX7_MARK, PWMX6_MARK, PWMX5_MARK, PWMX4_MARK, | ||
486 | PWMX3_MARK, PWMX2_MARK, PWMX1_MARK, PWMX0_MARK, | ||
487 | AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK, | ||
488 | STATUS1_MARK, STATUS0_MARK, | ||
489 | |||
490 | /* PTU (mobule: LPC, APM) */ | ||
491 | LGPIO7_MARK, LGPIO6_MARK, LGPIO5_MARK, LGPIO4_MARK, | ||
492 | LGPIO3_MARK, LGPIO2_MARK, LGPIO1_MARK, LGPIO0_MARK, | ||
493 | APMONCTL_O_MARK, APMPWBTOUT_O_MARK, APMSCI_O_MARK, | ||
494 | APMVDDON_MARK, APMSLPBTN_MARK, APMPWRBTN_MARK, APMS5N_MARK, | ||
495 | APMS3N_MARK, | ||
496 | |||
497 | /* PTV (mobule: LBSC, SerMux, R-SPI, EVC, GRA) */ | ||
498 | A23_MARK, A22_MARK, A21_MARK, A20_MARK, | ||
499 | A19_MARK, A18_MARK, A17_MARK, A16_MARK, | ||
500 | COM2_RI_MARK, R_SPI_MOSI_MARK, R_SPI_MISO_MARK, | ||
501 | R_SPI_RSPCK_MARK, R_SPI_SSL0_MARK, R_SPI_SSL1_MARK, | ||
502 | EVENT7_MARK, EVENT6_MARK, VBIOS_DI_MARK, VBIOS_DO_MARK, | ||
503 | VBIOS_CLK_MARK, VBIOS_CS_MARK, | ||
504 | |||
505 | /* PTW (mobule: LBSC, EVC, SCIF) */ | ||
506 | A15_MARK, A14_MARK, A13_MARK, A12_MARK, | ||
507 | A11_MARK, A10_MARK, A9_MARK, A8_MARK, | ||
508 | EVENT5_MARK, EVENT4_MARK, EVENT3_MARK, EVENT2_MARK, | ||
509 | EVENT1_MARK, EVENT0_MARK, CTS4_MARK, CTS2_MARK, | ||
510 | |||
511 | /* PTX (mobule: LBSC, SCIF, SIM) */ | ||
512 | A7_MARK, A6_MARK, A5_MARK, A4_MARK, | ||
513 | A3_MARK, A2_MARK, A1_MARK, A0_MARK, | ||
514 | RTS2_MARK, SIM_D_MARK, SIM_CLK_MARK, SIM_RST_MARK, | ||
515 | |||
516 | /* PTY (mobule: LBSC) */ | ||
517 | D7_MARK, D6_MARK, D5_MARK, D4_MARK, | ||
518 | D3_MARK, D2_MARK, D1_MARK, D0_MARK, | ||
519 | |||
520 | /* PTZ (mobule: eMMC, ONFI) */ | ||
521 | MMCDAT7_MARK, MMCDAT6_MARK, MMCDAT5_MARK, MMCDAT4_MARK, | ||
522 | MMCDAT3_MARK, MMCDAT2_MARK, MMCDAT1_MARK, MMCDAT0_MARK, | ||
523 | ON_DQ7_MARK, ON_DQ6_MARK, ON_DQ5_MARK, ON_DQ4_MARK, | ||
524 | ON_DQ3_MARK, ON_DQ2_MARK, ON_DQ1_MARK, ON_DQ0_MARK, | ||
525 | |||
526 | PINMUX_MARK_END, | ||
527 | }; | ||
528 | |||
529 | static pinmux_enum_t pinmux_data[] = { | ||
530 | /* PTA GPIO */ | ||
531 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT), | ||
532 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT), | ||
533 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT), | ||
534 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT), | ||
535 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT), | ||
536 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT), | ||
537 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT), | ||
538 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT), | ||
539 | |||
540 | /* PTB GPIO */ | ||
541 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT), | ||
542 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT), | ||
543 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT), | ||
544 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT), | ||
545 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT), | ||
546 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT), | ||
547 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT), | ||
548 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT), | ||
549 | |||
550 | /* PTC GPIO */ | ||
551 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT), | ||
552 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT), | ||
553 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT), | ||
554 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT), | ||
555 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT), | ||
556 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT), | ||
557 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT), | ||
558 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT), | ||
559 | |||
560 | /* PTD GPIO */ | ||
561 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT), | ||
562 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT), | ||
563 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT), | ||
564 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT), | ||
565 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT), | ||
566 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT), | ||
567 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT), | ||
568 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT), | ||
569 | |||
570 | /* PTE GPIO */ | ||
571 | PINMUX_DATA(PTE7_DATA, PTE7_IN, PTE7_OUT), | ||
572 | PINMUX_DATA(PTE6_DATA, PTE6_IN, PTE6_OUT), | ||
573 | PINMUX_DATA(PTE5_DATA, PTE5_IN, PTE5_OUT), | ||
574 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT), | ||
575 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT), | ||
576 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT), | ||
577 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT), | ||
578 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT), | ||
579 | |||
580 | /* PTF GPIO */ | ||
581 | PINMUX_DATA(PTF7_DATA, PTF7_IN, PTF7_OUT), | ||
582 | PINMUX_DATA(PTF6_DATA, PTF6_IN, PTF6_OUT), | ||
583 | PINMUX_DATA(PTF5_DATA, PTF5_IN, PTF5_OUT), | ||
584 | PINMUX_DATA(PTF4_DATA, PTF4_IN, PTF4_OUT), | ||
585 | PINMUX_DATA(PTF3_DATA, PTF3_IN, PTF3_OUT), | ||
586 | PINMUX_DATA(PTF2_DATA, PTF2_IN, PTF2_OUT), | ||
587 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_OUT), | ||
588 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT), | ||
589 | |||
590 | /* PTG GPIO */ | ||
591 | PINMUX_DATA(PTG7_DATA, PTG7_IN, PTG7_OUT), | ||
592 | PINMUX_DATA(PTG6_DATA, PTG6_IN, PTG6_OUT), | ||
593 | PINMUX_DATA(PTG5_DATA, PTG5_IN, PTG5_OUT), | ||
594 | PINMUX_DATA(PTG4_DATA, PTG4_IN, PTG4_OUT), | ||
595 | PINMUX_DATA(PTG3_DATA, PTG3_IN, PTG3_OUT), | ||
596 | PINMUX_DATA(PTG2_DATA, PTG2_IN, PTG2_OUT), | ||
597 | PINMUX_DATA(PTG1_DATA, PTG1_IN, PTG1_OUT), | ||
598 | PINMUX_DATA(PTG0_DATA, PTG0_IN, PTG0_OUT), | ||
599 | |||
600 | /* PTH GPIO */ | ||
601 | PINMUX_DATA(PTH7_DATA, PTH7_IN, PTH7_OUT), | ||
602 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT), | ||
603 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT), | ||
604 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT), | ||
605 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT), | ||
606 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT), | ||
607 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT), | ||
608 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT), | ||
609 | |||
610 | /* PTI GPIO */ | ||
611 | PINMUX_DATA(PTI7_DATA, PTI7_IN, PTI7_OUT), | ||
612 | PINMUX_DATA(PTI6_DATA, PTI6_IN, PTI6_OUT), | ||
613 | PINMUX_DATA(PTI5_DATA, PTI5_IN, PTI5_OUT), | ||
614 | PINMUX_DATA(PTI4_DATA, PTI4_IN, PTI4_OUT), | ||
615 | PINMUX_DATA(PTI3_DATA, PTI3_IN, PTI3_OUT), | ||
616 | PINMUX_DATA(PTI2_DATA, PTI2_IN, PTI2_OUT), | ||
617 | PINMUX_DATA(PTI1_DATA, PTI1_IN, PTI1_OUT), | ||
618 | PINMUX_DATA(PTI0_DATA, PTI0_IN, PTI0_OUT), | ||
619 | |||
620 | /* PTJ GPIO */ | ||
621 | PINMUX_DATA(PTJ6_DATA, PTJ6_IN, PTJ6_OUT), | ||
622 | PINMUX_DATA(PTJ5_DATA, PTJ5_IN, PTJ5_OUT), | ||
623 | PINMUX_DATA(PTJ4_DATA, PTJ4_IN, PTJ4_OUT), | ||
624 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT), | ||
625 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT), | ||
626 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT), | ||
627 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT), | ||
628 | |||
629 | /* PTK GPIO */ | ||
630 | PINMUX_DATA(PTK7_DATA, PTK7_IN, PTK7_OUT), | ||
631 | PINMUX_DATA(PTK6_DATA, PTK6_IN, PTK6_OUT), | ||
632 | PINMUX_DATA(PTK5_DATA, PTK5_IN, PTK5_OUT), | ||
633 | PINMUX_DATA(PTK4_DATA, PTK4_IN, PTK4_OUT), | ||
634 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT), | ||
635 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT), | ||
636 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT), | ||
637 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT), | ||
638 | |||
639 | /* PTL GPIO */ | ||
640 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT), | ||
641 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT), | ||
642 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT), | ||
643 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT), | ||
644 | PINMUX_DATA(PTL2_DATA, PTL2_IN, PTL2_OUT), | ||
645 | PINMUX_DATA(PTL1_DATA, PTL1_IN, PTL1_OUT), | ||
646 | PINMUX_DATA(PTL0_DATA, PTL0_IN, PTL0_OUT), | ||
647 | |||
648 | /* PTM GPIO */ | ||
649 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT), | ||
650 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT), | ||
651 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT), | ||
652 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT), | ||
653 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT), | ||
654 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT), | ||
655 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT), | ||
656 | |||
657 | /* PTN GPIO */ | ||
658 | PINMUX_DATA(PTN6_DATA, PTN6_IN, PTN6_OUT), | ||
659 | PINMUX_DATA(PTN5_DATA, PTN5_IN, PTN5_OUT), | ||
660 | PINMUX_DATA(PTN4_DATA, PTN4_IN, PTN4_OUT), | ||
661 | PINMUX_DATA(PTN3_DATA, PTN3_IN, PTN3_OUT), | ||
662 | PINMUX_DATA(PTN2_DATA, PTN2_IN, PTN2_OUT), | ||
663 | PINMUX_DATA(PTN1_DATA, PTN1_IN, PTN1_OUT), | ||
664 | PINMUX_DATA(PTN0_DATA, PTN0_IN, PTN0_OUT), | ||
665 | |||
666 | /* PTO GPIO */ | ||
667 | PINMUX_DATA(PTO7_DATA, PTO7_IN, PTO7_OUT), | ||
668 | PINMUX_DATA(PTO6_DATA, PTO6_IN, PTO6_OUT), | ||
669 | PINMUX_DATA(PTO5_DATA, PTO5_IN, PTO5_OUT), | ||
670 | PINMUX_DATA(PTO4_DATA, PTO4_IN, PTO4_OUT), | ||
671 | PINMUX_DATA(PTO3_DATA, PTO3_IN, PTO3_OUT), | ||
672 | PINMUX_DATA(PTO2_DATA, PTO2_IN, PTO2_OUT), | ||
673 | PINMUX_DATA(PTO1_DATA, PTO1_IN, PTO1_OUT), | ||
674 | PINMUX_DATA(PTO0_DATA, PTO0_IN, PTO0_OUT), | ||
675 | |||
676 | /* PTQ GPIO */ | ||
677 | PINMUX_DATA(PTQ6_DATA, PTQ6_IN, PTQ6_OUT), | ||
678 | PINMUX_DATA(PTQ5_DATA, PTQ5_IN, PTQ5_OUT), | ||
679 | PINMUX_DATA(PTQ4_DATA, PTQ4_IN, PTQ4_OUT), | ||
680 | PINMUX_DATA(PTQ3_DATA, PTQ3_IN, PTQ3_OUT), | ||
681 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN, PTQ2_OUT), | ||
682 | PINMUX_DATA(PTQ1_DATA, PTQ1_IN, PTQ1_OUT), | ||
683 | PINMUX_DATA(PTQ0_DATA, PTQ0_IN, PTQ0_OUT), | ||
684 | |||
685 | /* PTR GPIO */ | ||
686 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT), | ||
687 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT), | ||
688 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT), | ||
689 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT), | ||
690 | PINMUX_DATA(PTR3_DATA, PTR3_IN, PTR3_OUT), | ||
691 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_OUT), | ||
692 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT), | ||
693 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT), | ||
694 | |||
695 | /* PTS GPIO */ | ||
696 | PINMUX_DATA(PTS7_DATA, PTS7_IN, PTS7_OUT), | ||
697 | PINMUX_DATA(PTS6_DATA, PTS6_IN, PTS6_OUT), | ||
698 | PINMUX_DATA(PTS5_DATA, PTS5_IN, PTS5_OUT), | ||
699 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT), | ||
700 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT), | ||
701 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT), | ||
702 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT), | ||
703 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT), | ||
704 | |||
705 | /* PTT GPIO */ | ||
706 | PINMUX_DATA(PTT7_DATA, PTT7_IN, PTT7_OUT), | ||
707 | PINMUX_DATA(PTT6_DATA, PTT6_IN, PTT6_OUT), | ||
708 | PINMUX_DATA(PTT5_DATA, PTT5_IN, PTT5_OUT), | ||
709 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT), | ||
710 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT), | ||
711 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT), | ||
712 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT), | ||
713 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT), | ||
714 | |||
715 | /* PTU GPIO */ | ||
716 | PINMUX_DATA(PTU7_DATA, PTU7_IN, PTU7_OUT), | ||
717 | PINMUX_DATA(PTU6_DATA, PTU6_IN, PTU6_OUT), | ||
718 | PINMUX_DATA(PTU5_DATA, PTU5_IN, PTU5_OUT), | ||
719 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT), | ||
720 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT), | ||
721 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT), | ||
722 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT), | ||
723 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT), | ||
724 | |||
725 | /* PTV GPIO */ | ||
726 | PINMUX_DATA(PTV7_DATA, PTV7_IN, PTV7_OUT), | ||
727 | PINMUX_DATA(PTV6_DATA, PTV6_IN, PTV6_OUT), | ||
728 | PINMUX_DATA(PTV5_DATA, PTV5_IN, PTV5_OUT), | ||
729 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT), | ||
730 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT), | ||
731 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT), | ||
732 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT), | ||
733 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT), | ||
734 | |||
735 | /* PTW GPIO */ | ||
736 | PINMUX_DATA(PTW7_DATA, PTW7_IN, PTW7_OUT), | ||
737 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_OUT), | ||
738 | PINMUX_DATA(PTW5_DATA, PTW5_IN, PTW5_OUT), | ||
739 | PINMUX_DATA(PTW4_DATA, PTW4_IN, PTW4_OUT), | ||
740 | PINMUX_DATA(PTW3_DATA, PTW3_IN, PTW3_OUT), | ||
741 | PINMUX_DATA(PTW2_DATA, PTW2_IN, PTW2_OUT), | ||
742 | PINMUX_DATA(PTW1_DATA, PTW1_IN, PTW1_OUT), | ||
743 | PINMUX_DATA(PTW0_DATA, PTW0_IN, PTW0_OUT), | ||
744 | |||
745 | /* PTX GPIO */ | ||
746 | PINMUX_DATA(PTX7_DATA, PTX7_IN, PTX7_OUT), | ||
747 | PINMUX_DATA(PTX6_DATA, PTX6_IN, PTX6_OUT), | ||
748 | PINMUX_DATA(PTX5_DATA, PTX5_IN, PTX5_OUT), | ||
749 | PINMUX_DATA(PTX4_DATA, PTX4_IN, PTX4_OUT), | ||
750 | PINMUX_DATA(PTX3_DATA, PTX3_IN, PTX3_OUT), | ||
751 | PINMUX_DATA(PTX2_DATA, PTX2_IN, PTX2_OUT), | ||
752 | PINMUX_DATA(PTX1_DATA, PTX1_IN, PTX1_OUT), | ||
753 | PINMUX_DATA(PTX0_DATA, PTX0_IN, PTX0_OUT), | ||
754 | |||
755 | /* PTY GPIO */ | ||
756 | PINMUX_DATA(PTY7_DATA, PTY7_IN, PTY7_OUT), | ||
757 | PINMUX_DATA(PTY6_DATA, PTY6_IN, PTY6_OUT), | ||
758 | PINMUX_DATA(PTY5_DATA, PTY5_IN, PTY5_OUT), | ||
759 | PINMUX_DATA(PTY4_DATA, PTY4_IN, PTY4_OUT), | ||
760 | PINMUX_DATA(PTY3_DATA, PTY3_IN, PTY3_OUT), | ||
761 | PINMUX_DATA(PTY2_DATA, PTY2_IN, PTY2_OUT), | ||
762 | PINMUX_DATA(PTY1_DATA, PTY1_IN, PTY1_OUT), | ||
763 | PINMUX_DATA(PTY0_DATA, PTY0_IN, PTY0_OUT), | ||
764 | |||
765 | /* PTZ GPIO */ | ||
766 | PINMUX_DATA(PTZ7_DATA, PTZ7_IN, PTZ7_OUT), | ||
767 | PINMUX_DATA(PTZ6_DATA, PTZ6_IN, PTZ6_OUT), | ||
768 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_OUT), | ||
769 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_OUT), | ||
770 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_OUT), | ||
771 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_OUT), | ||
772 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_OUT), | ||
773 | PINMUX_DATA(PTZ0_DATA, PTZ0_IN, PTZ0_OUT), | ||
774 | |||
775 | /* PTA FN */ | ||
776 | PINMUX_DATA(BS_MARK, PTA7_FN), | ||
777 | PINMUX_DATA(RDWR_MARK, PTA6_FN), | ||
778 | PINMUX_DATA(WE1_MARK, PTA5_FN), | ||
779 | PINMUX_DATA(RDY_MARK, PTA4_FN), | ||
780 | PINMUX_DATA(ET0_MDC_MARK, PTA3_FN), | ||
781 | PINMUX_DATA(ET0_MDIO_MARK, PTA2_FN), | ||
782 | PINMUX_DATA(ET1_MDC_MARK, PTA1_FN), | ||
783 | PINMUX_DATA(ET1_MDIO_MARK, PTA0_FN), | ||
784 | |||
785 | /* PTB FN */ | ||
786 | PINMUX_DATA(IRQ15_MARK, PS0_15_FN1, PTB7_FN), | ||
787 | PINMUX_DATA(ON_NRE_MARK, PS0_15_FN2, PTB7_FN), | ||
788 | PINMUX_DATA(IRQ14_MARK, PS0_14_FN1, PTB6_FN), | ||
789 | PINMUX_DATA(ON_NWE_MARK, PS0_14_FN2, PTB6_FN), | ||
790 | PINMUX_DATA(IRQ13_MARK, PS0_13_FN1, PTB5_FN), | ||
791 | PINMUX_DATA(ON_NWP_MARK, PS0_13_FN2, PTB5_FN), | ||
792 | PINMUX_DATA(IRQ12_MARK, PS0_12_FN1, PTB4_FN), | ||
793 | PINMUX_DATA(ON_NCE0_MARK, PS0_12_FN2, PTB4_FN), | ||
794 | PINMUX_DATA(IRQ11_MARK, PS0_11_FN1, PTB3_FN), | ||
795 | PINMUX_DATA(ON_R_B0_MARK, PS0_11_FN2, PTB3_FN), | ||
796 | PINMUX_DATA(IRQ10_MARK, PS0_10_FN1, PTB2_FN), | ||
797 | PINMUX_DATA(ON_ALE_MARK, PS0_10_FN2, PTB2_FN), | ||
798 | PINMUX_DATA(IRQ9_MARK, PS0_9_FN1, PTB1_FN), | ||
799 | PINMUX_DATA(ON_CLE_MARK, PS0_9_FN2, PTB1_FN), | ||
800 | PINMUX_DATA(IRQ8_MARK, PS0_8_FN1, PTB0_FN), | ||
801 | PINMUX_DATA(TCLK_MARK, PS0_8_FN2, PTB0_FN), | ||
802 | |||
803 | /* PTC FN */ | ||
804 | PINMUX_DATA(IRQ7_MARK, PS0_7_FN1, PTC7_FN), | ||
805 | PINMUX_DATA(PWMU0_MARK, PS0_7_FN2, PTC7_FN), | ||
806 | PINMUX_DATA(IRQ6_MARK, PS0_6_FN1, PTC6_FN), | ||
807 | PINMUX_DATA(PWMU1_MARK, PS0_6_FN2, PTC6_FN), | ||
808 | PINMUX_DATA(IRQ5_MARK, PS0_5_FN1, PTC5_FN), | ||
809 | PINMUX_DATA(PWMU2_MARK, PS0_5_FN2, PTC5_FN), | ||
810 | PINMUX_DATA(IRQ4_MARK, PS0_4_FN1, PTC5_FN), | ||
811 | PINMUX_DATA(PWMU3_MARK, PS0_4_FN2, PTC4_FN), | ||
812 | PINMUX_DATA(IRQ3_MARK, PS0_3_FN1, PTC3_FN), | ||
813 | PINMUX_DATA(PWMU4_MARK, PS0_3_FN2, PTC3_FN), | ||
814 | PINMUX_DATA(IRQ2_MARK, PS0_2_FN1, PTC2_FN), | ||
815 | PINMUX_DATA(PWMU5_MARK, PS0_2_FN2, PTC2_FN), | ||
816 | PINMUX_DATA(IRQ1_MARK, PTC1_FN), | ||
817 | PINMUX_DATA(IRQ0_MARK, PTC0_FN), | ||
818 | |||
819 | /* PTD FN */ | ||
820 | PINMUX_DATA(SP0_MOSI_MARK, PTD7_FN), | ||
821 | PINMUX_DATA(SP0_MISO_MARK, PTD6_FN), | ||
822 | PINMUX_DATA(SP0_SCK_MARK, PTD5_FN), | ||
823 | PINMUX_DATA(SP0_SCK_FB_MARK, PTD4_FN), | ||
824 | PINMUX_DATA(SP0_SS0_MARK, PTD3_FN), | ||
825 | PINMUX_DATA(SP0_SS1_MARK, PS1_10_FN1, PTD2_FN), | ||
826 | PINMUX_DATA(DREQ0_MARK, PS1_10_FN2, PTD2_FN), | ||
827 | PINMUX_DATA(SP0_SS2_MARK, PS1_9_FN1, PTD1_FN), | ||
828 | PINMUX_DATA(DACK0_MARK, PS1_9_FN2, PTD1_FN), | ||
829 | PINMUX_DATA(SP0_SS3_MARK, PS1_8_FN1, PTD0_FN), | ||
830 | PINMUX_DATA(TEND0_MARK, PS1_8_FN2, PTD0_FN), | ||
831 | |||
832 | /* PTE FN */ | ||
833 | PINMUX_DATA(RMII0_CRS_DV_MARK, PTE7_FN), | ||
834 | PINMUX_DATA(RMII0_TXD1_MARK, PTE6_FN), | ||
835 | PINMUX_DATA(RMII0_TXD0_MARK, PTE5_FN), | ||
836 | PINMUX_DATA(RMII0_TXEN_MARK, PTE4_FN), | ||
837 | PINMUX_DATA(RMII0_REFCLK_MARK, PTE3_FN), | ||
838 | PINMUX_DATA(RMII0_RXD1_MARK, PTE2_FN), | ||
839 | PINMUX_DATA(RMII0_RXD0_MARK, PTE1_FN), | ||
840 | PINMUX_DATA(RMII0_RX_ER_MARK, PTE0_FN), | ||
841 | |||
842 | /* PTF FN */ | ||
843 | PINMUX_DATA(RMII1_CRS_DV_MARK, PTF7_FN), | ||
844 | PINMUX_DATA(RMII1_TXD1_MARK, PTF6_FN), | ||
845 | PINMUX_DATA(RMII1_TXD0_MARK, PTF5_FN), | ||
846 | PINMUX_DATA(RMII1_TXEN_MARK, PTF4_FN), | ||
847 | PINMUX_DATA(RMII1_REFCLK_MARK, PTF3_FN), | ||
848 | PINMUX_DATA(RMII1_RXD1_MARK, PS1_2_FN1, PTF2_FN), | ||
849 | PINMUX_DATA(RAC_RI_MARK, PS1_2_FN2, PTF2_FN), | ||
850 | PINMUX_DATA(RMII1_RXD0_MARK, PTF1_FN), | ||
851 | PINMUX_DATA(RMII1_RX_ER_MARK, PTF0_FN), | ||
852 | |||
853 | /* PTG FN */ | ||
854 | PINMUX_DATA(BOOTFMS_MARK, PTG7_FN), | ||
855 | PINMUX_DATA(BOOTWP_MARK, PTG6_FN), | ||
856 | PINMUX_DATA(A25_MARK, PS2_13_FN1, PTG5_FN), | ||
857 | PINMUX_DATA(MMCCLK_MARK, PS2_13_FN2, PTG5_FN), | ||
858 | PINMUX_DATA(A24_MARK, PS2_12_FN1, PTG4_FN), | ||
859 | PINMUX_DATA(MMCCMD_MARK, PS2_12_FN2, PTG4_FN), | ||
860 | PINMUX_DATA(SERIRQ_MARK, PTG3_FN), | ||
861 | PINMUX_DATA(WDTOVF_MARK, PTG2_FN), | ||
862 | PINMUX_DATA(LPCPD_MARK, PTG1_FN), | ||
863 | PINMUX_DATA(LDRQ_MARK, PTG0_FN), | ||
864 | |||
865 | /* PTH FN */ | ||
866 | PINMUX_DATA(SP1_MOSI_MARK, PS2_7_FN1, PTH7_FN), | ||
867 | PINMUX_DATA(TEND1_MARK, PS2_7_FN2, PTH7_FN), | ||
868 | PINMUX_DATA(SP1_MISO_MARK, PS2_6_FN1, PTH6_FN), | ||
869 | PINMUX_DATA(DREQ1_MARK, PS2_6_FN2, PTH6_FN), | ||
870 | PINMUX_DATA(SP1_SCK_MARK, PS2_5_FN1, PTH5_FN), | ||
871 | PINMUX_DATA(DACK1_MARK, PS2_5_FN2, PTH5_FN), | ||
872 | PINMUX_DATA(SP1_SCK_FB_MARK, PS2_4_FN1, PTH4_FN), | ||
873 | PINMUX_DATA(ADTRG1_MARK, PS2_4_FN2, PTH4_FN), | ||
874 | PINMUX_DATA(SP1_SS0_MARK, PTH3_FN), | ||
875 | PINMUX_DATA(SP1_SS1_MARK, PS2_2_FN1, PTH2_FN), | ||
876 | PINMUX_DATA(ADTRG0_MARK, PS2_2_FN2, PTH2_FN), | ||
877 | PINMUX_DATA(WP_MARK, PTH1_FN), | ||
878 | PINMUX_DATA(FMS0_MARK, PTH0_FN), | ||
879 | |||
880 | /* PTI FN */ | ||
881 | PINMUX_DATA(D15_MARK, PS3_15_FN1, PTI7_FN), | ||
882 | PINMUX_DATA(SD_WP_MARK, PS3_15_FN2, PTI7_FN), | ||
883 | PINMUX_DATA(D14_MARK, PS3_14_FN1, PTI6_FN), | ||
884 | PINMUX_DATA(SD_CD_MARK, PS3_14_FN2, PTI6_FN), | ||
885 | PINMUX_DATA(D13_MARK, PS3_13_FN1, PTI5_FN), | ||
886 | PINMUX_DATA(SD_CLK_MARK, PS3_13_FN2, PTI5_FN), | ||
887 | PINMUX_DATA(D12_MARK, PS3_12_FN1, PTI4_FN), | ||
888 | PINMUX_DATA(SD_CMD_MARK, PS3_12_FN2, PTI4_FN), | ||
889 | PINMUX_DATA(D11_MARK, PS3_11_FN1, PTI3_FN), | ||
890 | PINMUX_DATA(SD_D3_MARK, PS3_11_FN2, PTI3_FN), | ||
891 | PINMUX_DATA(D10_MARK, PS3_10_FN1, PTI2_FN), | ||
892 | PINMUX_DATA(SD_D2_MARK, PS3_10_FN2, PTI2_FN), | ||
893 | PINMUX_DATA(D9_MARK, PS3_9_FN1, PTI1_FN), | ||
894 | PINMUX_DATA(SD_D1_MARK, PS3_9_FN2, PTI1_FN), | ||
895 | PINMUX_DATA(D8_MARK, PS3_8_FN1, PTI0_FN), | ||
896 | PINMUX_DATA(SD_D0_MARK, PS3_8_FN2, PTI0_FN), | ||
897 | |||
898 | /* PTJ FN */ | ||
899 | PINMUX_DATA(RTS3_MARK, PTJ6_FN), | ||
900 | PINMUX_DATA(CTS3_MARK, PTJ5_FN), | ||
901 | PINMUX_DATA(TXD3_MARK, PTJ4_FN), | ||
902 | PINMUX_DATA(RXD3_MARK, PTJ3_FN), | ||
903 | PINMUX_DATA(RTS4_MARK, PTJ2_FN), | ||
904 | PINMUX_DATA(RXD4_MARK, PTJ1_FN), | ||
905 | PINMUX_DATA(TXD4_MARK, PTJ0_FN), | ||
906 | |||
907 | /* PTK FN */ | ||
908 | PINMUX_DATA(COM2_TXD_MARK, PS3_7_FN1, PTK7_FN), | ||
909 | PINMUX_DATA(SCK2_MARK, PS3_7_FN2, PTK7_FN), | ||
910 | PINMUX_DATA(COM2_RXD_MARK, PTK6_FN), | ||
911 | PINMUX_DATA(COM2_RTS_MARK, PTK5_FN), | ||
912 | PINMUX_DATA(COM2_CTS_MARK, PTK4_FN), | ||
913 | PINMUX_DATA(COM2_DTR_MARK, PTK3_FN), | ||
914 | PINMUX_DATA(COM2_DSR_MARK, PS3_2_FN1, PTK2_FN), | ||
915 | PINMUX_DATA(SCK4_MARK, PS3_2_FN2, PTK2_FN), | ||
916 | PINMUX_DATA(COM2_DCD_MARK, PS3_1_FN1, PTK1_FN), | ||
917 | PINMUX_DATA(SCK3_MARK, PS3_1_FN2, PTK1_FN), | ||
918 | PINMUX_DATA(CLKOUT_MARK, PTK0_FN), | ||
919 | |||
920 | /* PTL FN */ | ||
921 | PINMUX_DATA(RAC_RXD_MARK, PS4_14_FN1, PTL6_FN), | ||
922 | PINMUX_DATA(RXD2_MARK, PS4_14_FN2, PTL6_FN), | ||
923 | PINMUX_DATA(RAC_RTS_MARK, PS4_13_FN1, PTL5_FN), | ||
924 | PINMUX_DATA(CS5_MARK, PS4_13_FN2, PTL5_FN), | ||
925 | PINMUX_DATA(RAC_CTS_MARK, PS4_12_FN1, PTL4_FN), | ||
926 | PINMUX_DATA(CS6_MARK, PS4_12_FN2, PTL4_FN), | ||
927 | PINMUX_DATA(RAC_DTR_MARK, PTL3_FN), | ||
928 | PINMUX_DATA(RAC_DSR_MARK, PS4_10_FN1, PTL2_FN), | ||
929 | PINMUX_DATA(AUDSYNC_MARK, PS4_10_FN2, PTL2_FN), | ||
930 | PINMUX_DATA(RAC_DCD_MARK, PS4_9_FN1, PTL1_FN), | ||
931 | PINMUX_DATA(AUDCK_MARK, PS4_9_FN2, PTL1_FN), | ||
932 | PINMUX_DATA(RAC_TXD_MARK, PS4_8_FN1, PTL0_FN), | ||
933 | PINMUX_DATA(TXD2_MARK, PS4_8_FN1, PTL0_FN), | ||
934 | |||
935 | /* PTM FN */ | ||
936 | PINMUX_DATA(CS4_MARK, PTM7_FN), | ||
937 | PINMUX_DATA(RD_MARK, PTM6_FN), | ||
938 | PINMUX_DATA(WE0_MARK, PTM7_FN), | ||
939 | PINMUX_DATA(CS0_MARK, PTM4_FN), | ||
940 | PINMUX_DATA(SDA6_MARK, PTM3_FN), | ||
941 | PINMUX_DATA(SCL6_MARK, PTM2_FN), | ||
942 | PINMUX_DATA(SDA7_MARK, PTM1_FN), | ||
943 | PINMUX_DATA(SCL7_MARK, PTM0_FN), | ||
944 | |||
945 | /* PTN FN */ | ||
946 | PINMUX_DATA(VBUS_EN_MARK, PTN6_FN), | ||
947 | PINMUX_DATA(VBUS_OC_MARK, PTN5_FN), | ||
948 | PINMUX_DATA(JMCTCK_MARK, PS4_4_FN1, PTN4_FN), | ||
949 | PINMUX_DATA(SGPIO1_CLK_MARK, PS4_4_FN2, PTN4_FN), | ||
950 | PINMUX_DATA(JMCTMS_MARK, PS4_3_FN1, PTN5_FN), | ||
951 | PINMUX_DATA(SGPIO1_LOAD_MARK, PS4_3_FN2, PTN5_FN), | ||
952 | PINMUX_DATA(JMCTDO_MARK, PS4_2_FN1, PTN2_FN), | ||
953 | PINMUX_DATA(SGPIO1_DO_MARK, PS4_2_FN2, PTN2_FN), | ||
954 | PINMUX_DATA(JMCTDI_MARK, PS4_1_FN1, PTN1_FN), | ||
955 | PINMUX_DATA(SGPIO1_DI_MARK, PS4_1_FN2, PTN1_FN), | ||
956 | PINMUX_DATA(JMCTRST_MARK, PS4_0_FN1, PTN0_FN), | ||
957 | PINMUX_DATA(SUB_CLKIN_MARK, PS4_0_FN2, PTN0_FN), | ||
958 | |||
959 | /* PTO FN */ | ||
960 | PINMUX_DATA(SGPIO0_CLK_MARK, PTO7_FN), | ||
961 | PINMUX_DATA(SGPIO0_LOAD_MARK, PTO6_FN), | ||
962 | PINMUX_DATA(SGPIO0_DI_MARK, PTO5_FN), | ||
963 | PINMUX_DATA(SGPIO0_DO_MARK, PTO4_FN), | ||
964 | PINMUX_DATA(SGPIO2_CLK_MARK, PS5_11_FN1, PTO3_FN), | ||
965 | PINMUX_DATA(COM1_TXD_MARK, PS5_11_FN2, PTO3_FN), | ||
966 | PINMUX_DATA(SGPIO2_LOAD_MARK, PS5_10_FN1, PTO2_FN), | ||
967 | PINMUX_DATA(COM1_RXD_MARK, PS5_10_FN2, PTO2_FN), | ||
968 | PINMUX_DATA(SGPIO2_DI_MARK, PS5_9_FN1, PTO1_FN), | ||
969 | PINMUX_DATA(COM1_RTS_MARK, PS5_9_FN2, PTO1_FN), | ||
970 | PINMUX_DATA(SGPIO2_DO_MARK, PS5_8_FN1, PTO0_FN), | ||
971 | PINMUX_DATA(COM1_CTS_MARK, PS5_8_FN2, PTO0_FN), | ||
972 | |||
973 | /* PTP FN */ | ||
974 | |||
975 | /* PTQ FN */ | ||
976 | PINMUX_DATA(LAD3_MARK, PTQ6_FN), | ||
977 | PINMUX_DATA(LAD2_MARK, PTQ5_FN), | ||
978 | PINMUX_DATA(LAD1_MARK, PTQ4_FN), | ||
979 | PINMUX_DATA(LAD0_MARK, PTQ3_FN), | ||
980 | PINMUX_DATA(LFRAME_MARK, PTQ2_FN), | ||
981 | PINMUX_DATA(LRESET_MARK, PTQ1_FN), | ||
982 | PINMUX_DATA(LCLK_MARK, PTQ0_FN), | ||
983 | |||
984 | /* PTR FN */ | ||
985 | PINMUX_DATA(SDA8_MARK, PTR7_FN), /* DDC3? */ | ||
986 | PINMUX_DATA(SCL8_MARK, PTR6_FN), /* DDC2? */ | ||
987 | PINMUX_DATA(SDA2_MARK, PTR5_FN), | ||
988 | PINMUX_DATA(SCL2_MARK, PTR4_FN), | ||
989 | PINMUX_DATA(SDA1_MARK, PTR3_FN), | ||
990 | PINMUX_DATA(SCL1_MARK, PTR2_FN), | ||
991 | PINMUX_DATA(SDA0_MARK, PTR1_FN), | ||
992 | PINMUX_DATA(SCL0_MARK, PTR0_FN), | ||
993 | |||
994 | /* PTS FN */ | ||
995 | PINMUX_DATA(SDA9_MARK, PTS7_FN), /* DDC1? */ | ||
996 | PINMUX_DATA(SCL9_MARK, PTS6_FN), /* DDC0? */ | ||
997 | PINMUX_DATA(SDA5_MARK, PTS5_FN), | ||
998 | PINMUX_DATA(SCL5_MARK, PTS4_FN), | ||
999 | PINMUX_DATA(SDA4_MARK, PTS3_FN), | ||
1000 | PINMUX_DATA(SCL4_MARK, PTS2_FN), | ||
1001 | PINMUX_DATA(SDA3_MARK, PTS1_FN), | ||
1002 | PINMUX_DATA(SCL3_MARK, PTS0_FN), | ||
1003 | |||
1004 | /* PTT FN */ | ||
1005 | PINMUX_DATA(PWMX7_MARK, PS5_7_FN1, PTT7_FN), | ||
1006 | PINMUX_DATA(AUDATA3_MARK, PS5_7_FN2, PTT7_FN), | ||
1007 | PINMUX_DATA(PWMX6_MARK, PS5_6_FN1, PTT6_FN), | ||
1008 | PINMUX_DATA(AUDATA2_MARK, PS5_6_FN2, PTT6_FN), | ||
1009 | PINMUX_DATA(PWMX5_MARK, PS5_5_FN1, PTT5_FN), | ||
1010 | PINMUX_DATA(AUDATA1_MARK, PS5_5_FN2, PTT5_FN), | ||
1011 | PINMUX_DATA(PWMX4_MARK, PS5_4_FN1, PTT4_FN), | ||
1012 | PINMUX_DATA(AUDATA0_MARK, PS5_4_FN2, PTT4_FN), | ||
1013 | PINMUX_DATA(PWMX3_MARK, PS5_3_FN1, PTT3_FN), | ||
1014 | PINMUX_DATA(STATUS1_MARK, PS5_3_FN2, PTT3_FN), | ||
1015 | PINMUX_DATA(PWMX2_MARK, PS5_2_FN1, PTT2_FN), | ||
1016 | PINMUX_DATA(STATUS0_MARK, PS5_2_FN2, PTT2_FN), | ||
1017 | PINMUX_DATA(PWMX1_MARK, PTT1_FN), | ||
1018 | PINMUX_DATA(PWMX0_MARK, PTT0_FN), | ||
1019 | |||
1020 | /* PTU FN */ | ||
1021 | PINMUX_DATA(LGPIO7_MARK, PS6_15_FN1, PTU7_FN), | ||
1022 | PINMUX_DATA(APMONCTL_O_MARK, PS6_15_FN2, PTU7_FN), | ||
1023 | PINMUX_DATA(LGPIO6_MARK, PS6_14_FN1, PTU6_FN), | ||
1024 | PINMUX_DATA(APMPWBTOUT_O_MARK, PS6_14_FN2, PTU6_FN), | ||
1025 | PINMUX_DATA(LGPIO5_MARK, PS6_13_FN1, PTU5_FN), | ||
1026 | PINMUX_DATA(APMSCI_O_MARK, PS6_13_FN2, PTU5_FN), | ||
1027 | PINMUX_DATA(LGPIO4_MARK, PS6_12_FN1, PTU4_FN), | ||
1028 | PINMUX_DATA(APMVDDON_MARK, PS6_12_FN2, PTU4_FN), | ||
1029 | PINMUX_DATA(LGPIO3_MARK, PS6_11_FN1, PTU3_FN), | ||
1030 | PINMUX_DATA(APMSLPBTN_MARK, PS6_11_FN2, PTU3_FN), | ||
1031 | PINMUX_DATA(LGPIO2_MARK, PS6_10_FN1, PTU2_FN), | ||
1032 | PINMUX_DATA(APMPWRBTN_MARK, PS6_10_FN2, PTU2_FN), | ||
1033 | PINMUX_DATA(LGPIO1_MARK, PS6_9_FN1, PTU1_FN), | ||
1034 | PINMUX_DATA(APMS5N_MARK, PS6_9_FN2, PTU1_FN), | ||
1035 | PINMUX_DATA(LGPIO0_MARK, PS6_8_FN1, PTU0_FN), | ||
1036 | PINMUX_DATA(APMS3N_MARK, PS6_8_FN2, PTU0_FN), | ||
1037 | |||
1038 | /* PTV FN */ | ||
1039 | PINMUX_DATA(A23_MARK, PS6_7_FN1, PTV7_FN), | ||
1040 | PINMUX_DATA(COM2_RI_MARK, PS6_7_FN2, PTV7_FN), | ||
1041 | PINMUX_DATA(A22_MARK, PS6_6_FN1, PTV6_FN), | ||
1042 | PINMUX_DATA(R_SPI_MOSI_MARK, PS6_6_FN2, PTV6_FN), | ||
1043 | PINMUX_DATA(A21_MARK, PS6_5_FN1, PTV5_FN), | ||
1044 | PINMUX_DATA(R_SPI_MISO_MARK, PS6_5_FN2, PTV5_FN), | ||
1045 | PINMUX_DATA(A20_MARK, PS6_4_FN1, PTV4_FN), | ||
1046 | PINMUX_DATA(R_SPI_RSPCK_MARK, PS6_4_FN2, PTV4_FN), | ||
1047 | PINMUX_DATA(A19_MARK, PS6_3_FN1, PTV3_FN), | ||
1048 | PINMUX_DATA(R_SPI_SSL0_MARK, PS6_3_FN2, PTV3_FN), | ||
1049 | PINMUX_DATA(A18_MARK, PS6_2_FN1, PTV2_FN), | ||
1050 | PINMUX_DATA(R_SPI_SSL1_MARK, PS6_2_FN2, PTV2_FN), | ||
1051 | PINMUX_DATA(A17_MARK, PS6_1_FN1, PTV1_FN), | ||
1052 | PINMUX_DATA(EVENT7_MARK, PS6_1_FN2, PTV1_FN), | ||
1053 | PINMUX_DATA(A16_MARK, PS6_0_FN1, PTV0_FN), | ||
1054 | PINMUX_DATA(EVENT6_MARK, PS6_0_FN1, PTV0_FN), | ||
1055 | |||
1056 | /* PTW FN */ | ||
1057 | PINMUX_DATA(A15_MARK, PS7_15_FN1, PTW7_FN), | ||
1058 | PINMUX_DATA(EVENT5_MARK, PS7_15_FN2, PTW7_FN), | ||
1059 | PINMUX_DATA(A14_MARK, PS7_14_FN1, PTW6_FN), | ||
1060 | PINMUX_DATA(EVENT4_MARK, PS7_14_FN2, PTW6_FN), | ||
1061 | PINMUX_DATA(A13_MARK, PS7_13_FN1, PTW5_FN), | ||
1062 | PINMUX_DATA(EVENT3_MARK, PS7_13_FN2, PTW5_FN), | ||
1063 | PINMUX_DATA(A12_MARK, PS7_12_FN1, PTW4_FN), | ||
1064 | PINMUX_DATA(EVENT2_MARK, PS7_12_FN2, PTW4_FN), | ||
1065 | PINMUX_DATA(A11_MARK, PS7_11_FN1, PTW3_FN), | ||
1066 | PINMUX_DATA(EVENT1_MARK, PS7_11_FN2, PTW3_FN), | ||
1067 | PINMUX_DATA(A10_MARK, PS7_10_FN1, PTW2_FN), | ||
1068 | PINMUX_DATA(EVENT0_MARK, PS7_10_FN2, PTW2_FN), | ||
1069 | PINMUX_DATA(A9_MARK, PS7_9_FN1, PTW1_FN), | ||
1070 | PINMUX_DATA(CTS4_MARK, PS7_9_FN2, PTW1_FN), | ||
1071 | PINMUX_DATA(A8_MARK, PS7_8_FN1, PTW0_FN), | ||
1072 | PINMUX_DATA(CTS2_MARK, PS7_8_FN2, PTW0_FN), | ||
1073 | |||
1074 | /* PTX FN */ | ||
1075 | PINMUX_DATA(A7_MARK, PS7_7_FN1, PTX7_FN), | ||
1076 | PINMUX_DATA(RTS2_MARK, PS7_7_FN2, PTX7_FN), | ||
1077 | PINMUX_DATA(A6_MARK, PS7_6_FN1, PTX6_FN), | ||
1078 | PINMUX_DATA(SIM_D_MARK, PS7_6_FN2, PTX6_FN), | ||
1079 | PINMUX_DATA(A5_MARK, PS7_5_FN1, PTX5_FN), | ||
1080 | PINMUX_DATA(SIM_CLK_MARK, PS7_5_FN2, PTX5_FN), | ||
1081 | PINMUX_DATA(A4_MARK, PS7_4_FN1, PTX4_FN), | ||
1082 | PINMUX_DATA(SIM_RST_MARK, PS7_4_FN2, PTX4_FN), | ||
1083 | PINMUX_DATA(A3_MARK, PTX3_FN), | ||
1084 | PINMUX_DATA(A2_MARK, PTX2_FN), | ||
1085 | PINMUX_DATA(A1_MARK, PTX1_FN), | ||
1086 | PINMUX_DATA(A0_MARK, PTX0_FN), | ||
1087 | |||
1088 | /* PTY FN */ | ||
1089 | PINMUX_DATA(D7_MARK, PTY7_FN), | ||
1090 | PINMUX_DATA(D6_MARK, PTY6_FN), | ||
1091 | PINMUX_DATA(D5_MARK, PTY5_FN), | ||
1092 | PINMUX_DATA(D4_MARK, PTY4_FN), | ||
1093 | PINMUX_DATA(D3_MARK, PTY3_FN), | ||
1094 | PINMUX_DATA(D2_MARK, PTY2_FN), | ||
1095 | PINMUX_DATA(D1_MARK, PTY1_FN), | ||
1096 | PINMUX_DATA(D0_MARK, PTY0_FN), | ||
1097 | |||
1098 | /* PTZ FN */ | ||
1099 | PINMUX_DATA(MMCDAT7_MARK, PS8_15_FN1, PTZ7_FN), | ||
1100 | PINMUX_DATA(ON_DQ7_MARK, PS8_15_FN2, PTZ7_FN), | ||
1101 | PINMUX_DATA(MMCDAT6_MARK, PS8_14_FN1, PTZ6_FN), | ||
1102 | PINMUX_DATA(ON_DQ6_MARK, PS8_14_FN2, PTZ6_FN), | ||
1103 | PINMUX_DATA(MMCDAT5_MARK, PS8_13_FN1, PTZ5_FN), | ||
1104 | PINMUX_DATA(ON_DQ5_MARK, PS8_13_FN2, PTZ5_FN), | ||
1105 | PINMUX_DATA(MMCDAT4_MARK, PS8_12_FN1, PTZ4_FN), | ||
1106 | PINMUX_DATA(ON_DQ4_MARK, PS8_12_FN2, PTZ4_FN), | ||
1107 | PINMUX_DATA(MMCDAT3_MARK, PS8_11_FN1, PTZ3_FN), | ||
1108 | PINMUX_DATA(ON_DQ3_MARK, PS8_11_FN2, PTZ3_FN), | ||
1109 | PINMUX_DATA(MMCDAT2_MARK, PS8_10_FN1, PTZ2_FN), | ||
1110 | PINMUX_DATA(ON_DQ2_MARK, PS8_10_FN2, PTZ2_FN), | ||
1111 | PINMUX_DATA(MMCDAT1_MARK, PS8_9_FN1, PTZ1_FN), | ||
1112 | PINMUX_DATA(ON_DQ1_MARK, PS8_9_FN2, PTZ1_FN), | ||
1113 | PINMUX_DATA(MMCDAT0_MARK, PS8_8_FN1, PTZ0_FN), | ||
1114 | PINMUX_DATA(ON_DQ0_MARK, PS8_8_FN2, PTZ0_FN), | ||
1115 | }; | ||
1116 | |||
1117 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1118 | /* PTA */ | ||
1119 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
1120 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
1121 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
1122 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
1123 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
1124 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
1125 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
1126 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
1127 | |||
1128 | /* PTB */ | ||
1129 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
1130 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
1131 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
1132 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
1133 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
1134 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
1135 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
1136 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
1137 | |||
1138 | /* PTC */ | ||
1139 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
1140 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
1141 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
1142 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
1143 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
1144 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
1145 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
1146 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
1147 | |||
1148 | /* PTD */ | ||
1149 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
1150 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
1151 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
1152 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
1153 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
1154 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
1155 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
1156 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
1157 | |||
1158 | /* PTE */ | ||
1159 | PINMUX_GPIO(GPIO_PTE7, PTE7_DATA), | ||
1160 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
1161 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
1162 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
1163 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
1164 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
1165 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
1166 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
1167 | |||
1168 | /* PTF */ | ||
1169 | PINMUX_GPIO(GPIO_PTF7, PTF7_DATA), | ||
1170 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
1171 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
1172 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
1173 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
1174 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
1175 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
1176 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
1177 | |||
1178 | /* PTG */ | ||
1179 | PINMUX_GPIO(GPIO_PTG7, PTG7_DATA), | ||
1180 | PINMUX_GPIO(GPIO_PTG6, PTG6_DATA), | ||
1181 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
1182 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
1183 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
1184 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
1185 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
1186 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
1187 | |||
1188 | /* PTH */ | ||
1189 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
1190 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
1191 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
1192 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
1193 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
1194 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
1195 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
1196 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
1197 | |||
1198 | /* PTI */ | ||
1199 | PINMUX_GPIO(GPIO_PTI7, PTI7_DATA), | ||
1200 | PINMUX_GPIO(GPIO_PTI6, PTI6_DATA), | ||
1201 | PINMUX_GPIO(GPIO_PTI5, PTI5_DATA), | ||
1202 | PINMUX_GPIO(GPIO_PTI4, PTI4_DATA), | ||
1203 | PINMUX_GPIO(GPIO_PTI3, PTI3_DATA), | ||
1204 | PINMUX_GPIO(GPIO_PTI2, PTI2_DATA), | ||
1205 | PINMUX_GPIO(GPIO_PTI1, PTI1_DATA), | ||
1206 | PINMUX_GPIO(GPIO_PTI0, PTI0_DATA), | ||
1207 | |||
1208 | /* PTJ */ | ||
1209 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
1210 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
1211 | PINMUX_GPIO(GPIO_PTJ4, PTJ4_DATA), | ||
1212 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
1213 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
1214 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
1215 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
1216 | |||
1217 | /* PTK */ | ||
1218 | PINMUX_GPIO(GPIO_PTK7, PTK7_DATA), | ||
1219 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
1220 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
1221 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
1222 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
1223 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
1224 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
1225 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
1226 | |||
1227 | /* PTL */ | ||
1228 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
1229 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
1230 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
1231 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
1232 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
1233 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
1234 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
1235 | |||
1236 | /* PTM */ | ||
1237 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
1238 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
1239 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
1240 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
1241 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
1242 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
1243 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
1244 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
1245 | |||
1246 | /* PTN */ | ||
1247 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
1248 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
1249 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
1250 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
1251 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
1252 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
1253 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
1254 | |||
1255 | /* PTO */ | ||
1256 | PINMUX_GPIO(GPIO_PTO7, PTO7_DATA), | ||
1257 | PINMUX_GPIO(GPIO_PTO6, PTO6_DATA), | ||
1258 | PINMUX_GPIO(GPIO_PTO5, PTO5_DATA), | ||
1259 | PINMUX_GPIO(GPIO_PTO4, PTO4_DATA), | ||
1260 | PINMUX_GPIO(GPIO_PTO3, PTO3_DATA), | ||
1261 | PINMUX_GPIO(GPIO_PTO2, PTO2_DATA), | ||
1262 | PINMUX_GPIO(GPIO_PTO1, PTO1_DATA), | ||
1263 | PINMUX_GPIO(GPIO_PTO0, PTO0_DATA), | ||
1264 | |||
1265 | /* PTP */ | ||
1266 | PINMUX_GPIO(GPIO_PTP7, PTP7_DATA), | ||
1267 | PINMUX_GPIO(GPIO_PTP6, PTP6_DATA), | ||
1268 | PINMUX_GPIO(GPIO_PTP5, PTP5_DATA), | ||
1269 | PINMUX_GPIO(GPIO_PTP4, PTP4_DATA), | ||
1270 | PINMUX_GPIO(GPIO_PTP3, PTP3_DATA), | ||
1271 | PINMUX_GPIO(GPIO_PTP2, PTP2_DATA), | ||
1272 | PINMUX_GPIO(GPIO_PTP1, PTP1_DATA), | ||
1273 | PINMUX_GPIO(GPIO_PTP0, PTP0_DATA), | ||
1274 | |||
1275 | /* PTQ */ | ||
1276 | PINMUX_GPIO(GPIO_PTQ6, PTQ6_DATA), | ||
1277 | PINMUX_GPIO(GPIO_PTQ5, PTQ5_DATA), | ||
1278 | PINMUX_GPIO(GPIO_PTQ4, PTQ4_DATA), | ||
1279 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
1280 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
1281 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
1282 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
1283 | |||
1284 | /* PTR */ | ||
1285 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
1286 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
1287 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
1288 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
1289 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
1290 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
1291 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
1292 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
1293 | |||
1294 | /* PTS */ | ||
1295 | PINMUX_GPIO(GPIO_PTS7, PTS7_DATA), | ||
1296 | PINMUX_GPIO(GPIO_PTS6, PTS6_DATA), | ||
1297 | PINMUX_GPIO(GPIO_PTS5, PTS5_DATA), | ||
1298 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
1299 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
1300 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
1301 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
1302 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
1303 | |||
1304 | /* PTT */ | ||
1305 | PINMUX_GPIO(GPIO_PTT7, PTT7_DATA), | ||
1306 | PINMUX_GPIO(GPIO_PTT6, PTT6_DATA), | ||
1307 | PINMUX_GPIO(GPIO_PTT5, PTT5_DATA), | ||
1308 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
1309 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
1310 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
1311 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
1312 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
1313 | |||
1314 | /* PTU */ | ||
1315 | PINMUX_GPIO(GPIO_PTU7, PTU7_DATA), | ||
1316 | PINMUX_GPIO(GPIO_PTU6, PTU6_DATA), | ||
1317 | PINMUX_GPIO(GPIO_PTU5, PTU5_DATA), | ||
1318 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
1319 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
1320 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
1321 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
1322 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
1323 | |||
1324 | /* PTV */ | ||
1325 | PINMUX_GPIO(GPIO_PTV7, PTV7_DATA), | ||
1326 | PINMUX_GPIO(GPIO_PTV6, PTV6_DATA), | ||
1327 | PINMUX_GPIO(GPIO_PTV5, PTV5_DATA), | ||
1328 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
1329 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
1330 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
1331 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
1332 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
1333 | |||
1334 | /* PTW */ | ||
1335 | PINMUX_GPIO(GPIO_PTW7, PTW7_DATA), | ||
1336 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
1337 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
1338 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
1339 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
1340 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
1341 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
1342 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
1343 | |||
1344 | /* PTX */ | ||
1345 | PINMUX_GPIO(GPIO_PTX7, PTX7_DATA), | ||
1346 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
1347 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
1348 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
1349 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
1350 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
1351 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
1352 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
1353 | |||
1354 | /* PTY */ | ||
1355 | PINMUX_GPIO(GPIO_PTY7, PTY7_DATA), | ||
1356 | PINMUX_GPIO(GPIO_PTY6, PTY6_DATA), | ||
1357 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
1358 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
1359 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
1360 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
1361 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
1362 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
1363 | |||
1364 | /* PTZ */ | ||
1365 | PINMUX_GPIO(GPIO_PTZ7, PTZ7_DATA), | ||
1366 | PINMUX_GPIO(GPIO_PTZ6, PTZ6_DATA), | ||
1367 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
1368 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
1369 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
1370 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
1371 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
1372 | PINMUX_GPIO(GPIO_PTZ0, PTZ0_DATA), | ||
1373 | |||
1374 | /* PTA (mobule: LBSC, RGMII) */ | ||
1375 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1376 | PINMUX_GPIO(GPIO_FN_RDWR, RDWR_MARK), | ||
1377 | PINMUX_GPIO(GPIO_FN_WE1, WE1_MARK), | ||
1378 | PINMUX_GPIO(GPIO_FN_RDY, RDY_MARK), | ||
1379 | PINMUX_GPIO(GPIO_FN_ET0_MDC, ET0_MDC_MARK), | ||
1380 | PINMUX_GPIO(GPIO_FN_ET0_MDIO, ET0_MDIO_MARK), | ||
1381 | PINMUX_GPIO(GPIO_FN_ET1_MDC, ET1_MDC_MARK), | ||
1382 | PINMUX_GPIO(GPIO_FN_ET1_MDIO, ET1_MDIO_MARK), | ||
1383 | |||
1384 | /* PTB (mobule: INTC, ONFI, TMU) */ | ||
1385 | PINMUX_GPIO(GPIO_FN_IRQ15, IRQ15_MARK), | ||
1386 | PINMUX_GPIO(GPIO_FN_IRQ14, IRQ14_MARK), | ||
1387 | PINMUX_GPIO(GPIO_FN_IRQ13, IRQ13_MARK), | ||
1388 | PINMUX_GPIO(GPIO_FN_IRQ12, IRQ12_MARK), | ||
1389 | PINMUX_GPIO(GPIO_FN_IRQ11, IRQ11_MARK), | ||
1390 | PINMUX_GPIO(GPIO_FN_IRQ10, IRQ10_MARK), | ||
1391 | PINMUX_GPIO(GPIO_FN_IRQ9, IRQ9_MARK), | ||
1392 | PINMUX_GPIO(GPIO_FN_IRQ8, IRQ8_MARK), | ||
1393 | PINMUX_GPIO(GPIO_FN_ON_NRE, ON_NRE_MARK), | ||
1394 | PINMUX_GPIO(GPIO_FN_ON_NWE, ON_NWE_MARK), | ||
1395 | PINMUX_GPIO(GPIO_FN_ON_NWP, ON_NWP_MARK), | ||
1396 | PINMUX_GPIO(GPIO_FN_ON_NCE0, ON_NCE0_MARK), | ||
1397 | PINMUX_GPIO(GPIO_FN_ON_R_B0, ON_R_B0_MARK), | ||
1398 | PINMUX_GPIO(GPIO_FN_ON_ALE, ON_ALE_MARK), | ||
1399 | PINMUX_GPIO(GPIO_FN_ON_CLE, ON_CLE_MARK), | ||
1400 | PINMUX_GPIO(GPIO_FN_TCLK, TCLK_MARK), | ||
1401 | |||
1402 | /* PTC (mobule: IRQ, PWMU) */ | ||
1403 | PINMUX_GPIO(GPIO_FN_IRQ7, IRQ7_MARK), | ||
1404 | PINMUX_GPIO(GPIO_FN_IRQ6, IRQ6_MARK), | ||
1405 | PINMUX_GPIO(GPIO_FN_IRQ5, IRQ5_MARK), | ||
1406 | PINMUX_GPIO(GPIO_FN_IRQ4, IRQ4_MARK), | ||
1407 | PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), | ||
1408 | PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), | ||
1409 | PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), | ||
1410 | PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), | ||
1411 | PINMUX_GPIO(GPIO_FN_PWMU0, PWMU0_MARK), | ||
1412 | PINMUX_GPIO(GPIO_FN_PWMU1, PWMU1_MARK), | ||
1413 | PINMUX_GPIO(GPIO_FN_PWMU2, PWMU2_MARK), | ||
1414 | PINMUX_GPIO(GPIO_FN_PWMU3, PWMU3_MARK), | ||
1415 | PINMUX_GPIO(GPIO_FN_PWMU4, PWMU4_MARK), | ||
1416 | PINMUX_GPIO(GPIO_FN_PWMU5, PWMU5_MARK), | ||
1417 | |||
1418 | /* PTD (mobule: SPI0, DMAC) */ | ||
1419 | PINMUX_GPIO(GPIO_FN_SP0_MOSI, SP0_MOSI_MARK), | ||
1420 | PINMUX_GPIO(GPIO_FN_SP0_MISO, SP0_MISO_MARK), | ||
1421 | PINMUX_GPIO(GPIO_FN_SP0_SCK, SP0_SCK_MARK), | ||
1422 | PINMUX_GPIO(GPIO_FN_SP0_SCK_FB, SP0_SCK_FB_MARK), | ||
1423 | PINMUX_GPIO(GPIO_FN_SP0_SS0, SP0_SS0_MARK), | ||
1424 | PINMUX_GPIO(GPIO_FN_SP0_SS1, SP0_SS1_MARK), | ||
1425 | PINMUX_GPIO(GPIO_FN_SP0_SS2, SP0_SS2_MARK), | ||
1426 | PINMUX_GPIO(GPIO_FN_SP0_SS3, SP0_SS3_MARK), | ||
1427 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
1428 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
1429 | PINMUX_GPIO(GPIO_FN_TEND0, TEND0_MARK), | ||
1430 | |||
1431 | /* PTE (mobule: RMII) */ | ||
1432 | PINMUX_GPIO(GPIO_FN_RMII0_CRS_DV, RMII0_CRS_DV_MARK), | ||
1433 | PINMUX_GPIO(GPIO_FN_RMII0_TXD1, RMII0_TXD1_MARK), | ||
1434 | PINMUX_GPIO(GPIO_FN_RMII0_TXD0, RMII0_TXD0_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_RMII0_TXEN, RMII0_TXEN_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_RMII0_REFCLK, RMII0_REFCLK_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_RMII0_RXD1, RMII0_RXD1_MARK), | ||
1438 | PINMUX_GPIO(GPIO_FN_RMII0_RXD0, RMII0_RXD0_MARK), | ||
1439 | PINMUX_GPIO(GPIO_FN_RMII0_RX_ER, RMII0_RX_ER_MARK), | ||
1440 | |||
1441 | /* PTF (mobule: RMII, SerMux) */ | ||
1442 | PINMUX_GPIO(GPIO_FN_RMII1_CRS_DV, RMII1_CRS_DV_MARK), | ||
1443 | PINMUX_GPIO(GPIO_FN_RMII1_TXD1, RMII1_TXD1_MARK), | ||
1444 | PINMUX_GPIO(GPIO_FN_RMII1_TXD0, RMII1_TXD0_MARK), | ||
1445 | PINMUX_GPIO(GPIO_FN_RMII1_TXEN, RMII1_TXEN_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_RMII1_REFCLK, RMII1_REFCLK_MARK), | ||
1447 | PINMUX_GPIO(GPIO_FN_RMII1_RXD1, RMII1_RXD1_MARK), | ||
1448 | PINMUX_GPIO(GPIO_FN_RMII1_RXD0, RMII1_RXD0_MARK), | ||
1449 | PINMUX_GPIO(GPIO_FN_RMII1_RX_ER, RMII1_RX_ER_MARK), | ||
1450 | PINMUX_GPIO(GPIO_FN_RAC_RI, RAC_RI_MARK), | ||
1451 | |||
1452 | /* PTG (mobule: system, LBSC, LPC, WDT, LPC, eMMC) */ | ||
1453 | PINMUX_GPIO(GPIO_FN_BOOTFMS, BOOTFMS_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_BOOTWP, BOOTWP_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_SERIRQ, SERIRQ_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_WDTOVF, WDTOVF_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_LPCPD, LPCPD_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_LDRQ, LDRQ_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_MMCCLK, MMCCLK_MARK), | ||
1462 | PINMUX_GPIO(GPIO_FN_MMCCMD, MMCCMD_MARK), | ||
1463 | |||
1464 | /* PTH (mobule: SPI1, LPC, DMAC, ADC) */ | ||
1465 | PINMUX_GPIO(GPIO_FN_SP1_MOSI, SP1_MOSI_MARK), | ||
1466 | PINMUX_GPIO(GPIO_FN_SP1_MISO, SP1_MISO_MARK), | ||
1467 | PINMUX_GPIO(GPIO_FN_SP1_SCK, SP1_SCK_MARK), | ||
1468 | PINMUX_GPIO(GPIO_FN_SP1_SCK_FB, SP1_SCK_FB_MARK), | ||
1469 | PINMUX_GPIO(GPIO_FN_SP1_SS0, SP1_SS0_MARK), | ||
1470 | PINMUX_GPIO(GPIO_FN_SP1_SS1, SP1_SS1_MARK), | ||
1471 | PINMUX_GPIO(GPIO_FN_WP, WP_MARK), | ||
1472 | PINMUX_GPIO(GPIO_FN_FMS0, FMS0_MARK), | ||
1473 | PINMUX_GPIO(GPIO_FN_TEND1, TEND1_MARK), | ||
1474 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
1475 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
1476 | PINMUX_GPIO(GPIO_FN_ADTRG1, ADTRG1_MARK), | ||
1477 | PINMUX_GPIO(GPIO_FN_ADTRG0, ADTRG0_MARK), | ||
1478 | |||
1479 | /* PTI (mobule: LBSC, SDHI) */ | ||
1480 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1481 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1482 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1483 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1484 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1485 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1486 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1487 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1488 | PINMUX_GPIO(GPIO_FN_SD_WP, SD_WP_MARK), | ||
1489 | PINMUX_GPIO(GPIO_FN_SD_CD, SD_CD_MARK), | ||
1490 | PINMUX_GPIO(GPIO_FN_SD_CLK, SD_CLK_MARK), | ||
1491 | PINMUX_GPIO(GPIO_FN_SD_CMD, SD_CMD_MARK), | ||
1492 | PINMUX_GPIO(GPIO_FN_SD_D3, SD_D3_MARK), | ||
1493 | PINMUX_GPIO(GPIO_FN_SD_D2, SD_D2_MARK), | ||
1494 | PINMUX_GPIO(GPIO_FN_SD_D1, SD_D1_MARK), | ||
1495 | PINMUX_GPIO(GPIO_FN_SD_D0, SD_D0_MARK), | ||
1496 | |||
1497 | /* PTJ (mobule: SCIF234, SERMUX) */ | ||
1498 | PINMUX_GPIO(GPIO_FN_RTS3, RTS3_MARK), | ||
1499 | PINMUX_GPIO(GPIO_FN_CTS3, CTS3_MARK), | ||
1500 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
1501 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
1502 | PINMUX_GPIO(GPIO_FN_RTS4, RTS4_MARK), | ||
1503 | PINMUX_GPIO(GPIO_FN_RXD4, RXD4_MARK), | ||
1504 | PINMUX_GPIO(GPIO_FN_TXD4, TXD4_MARK), | ||
1505 | |||
1506 | /* PTK (mobule: SERMUX, LBSC, SCIF) */ | ||
1507 | PINMUX_GPIO(GPIO_FN_COM2_TXD, COM2_TXD_MARK), | ||
1508 | PINMUX_GPIO(GPIO_FN_COM2_RXD, COM2_RXD_MARK), | ||
1509 | PINMUX_GPIO(GPIO_FN_COM2_RTS, COM2_RTS_MARK), | ||
1510 | PINMUX_GPIO(GPIO_FN_COM2_CTS, COM2_CTS_MARK), | ||
1511 | PINMUX_GPIO(GPIO_FN_COM2_DTR, COM2_DTR_MARK), | ||
1512 | PINMUX_GPIO(GPIO_FN_COM2_DSR, COM2_DSR_MARK), | ||
1513 | PINMUX_GPIO(GPIO_FN_COM2_DCD, COM2_DCD_MARK), | ||
1514 | PINMUX_GPIO(GPIO_FN_CLKOUT, CLKOUT_MARK), | ||
1515 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
1516 | PINMUX_GPIO(GPIO_FN_SCK4, SCK4_MARK), | ||
1517 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
1518 | |||
1519 | /* PTL (mobule: SERMUX, SCIF, LBSC, AUD) */ | ||
1520 | PINMUX_GPIO(GPIO_FN_RAC_RXD, RAC_RXD_MARK), | ||
1521 | PINMUX_GPIO(GPIO_FN_RAC_RTS, RAC_RTS_MARK), | ||
1522 | PINMUX_GPIO(GPIO_FN_RAC_CTS, RAC_CTS_MARK), | ||
1523 | PINMUX_GPIO(GPIO_FN_RAC_DTR, RAC_DTR_MARK), | ||
1524 | PINMUX_GPIO(GPIO_FN_RAC_DSR, RAC_DSR_MARK), | ||
1525 | PINMUX_GPIO(GPIO_FN_RAC_DCD, RAC_DCD_MARK), | ||
1526 | PINMUX_GPIO(GPIO_FN_RAC_TXD, RAC_TXD_MARK), | ||
1527 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
1528 | PINMUX_GPIO(GPIO_FN_CS5, CS5_MARK), | ||
1529 | PINMUX_GPIO(GPIO_FN_CS6, CS6_MARK), | ||
1530 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1531 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
1532 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
1533 | |||
1534 | /* PTM (mobule: LBSC, IIC) */ | ||
1535 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
1536 | PINMUX_GPIO(GPIO_FN_RD, RD_MARK), | ||
1537 | PINMUX_GPIO(GPIO_FN_WE0, WE0_MARK), | ||
1538 | PINMUX_GPIO(GPIO_FN_CS0, CS0_MARK), | ||
1539 | PINMUX_GPIO(GPIO_FN_SDA6, SDA6_MARK), | ||
1540 | PINMUX_GPIO(GPIO_FN_SCL6, SCL6_MARK), | ||
1541 | PINMUX_GPIO(GPIO_FN_SDA7, SDA7_MARK), | ||
1542 | PINMUX_GPIO(GPIO_FN_SCL7, SCL7_MARK), | ||
1543 | |||
1544 | /* PTN (mobule: USB, JMC, SGPIO, WDT) */ | ||
1545 | PINMUX_GPIO(GPIO_FN_VBUS_EN, VBUS_EN_MARK), | ||
1546 | PINMUX_GPIO(GPIO_FN_VBUS_OC, VBUS_OC_MARK), | ||
1547 | PINMUX_GPIO(GPIO_FN_JMCTCK, JMCTCK_MARK), | ||
1548 | PINMUX_GPIO(GPIO_FN_JMCTMS, JMCTMS_MARK), | ||
1549 | PINMUX_GPIO(GPIO_FN_JMCTDO, JMCTDO_MARK), | ||
1550 | PINMUX_GPIO(GPIO_FN_JMCTDI, JMCTDI_MARK), | ||
1551 | PINMUX_GPIO(GPIO_FN_JMCTRST, JMCTRST_MARK), | ||
1552 | PINMUX_GPIO(GPIO_FN_SGPIO1_CLK, SGPIO1_CLK_MARK), | ||
1553 | PINMUX_GPIO(GPIO_FN_SGPIO1_LOAD, SGPIO1_LOAD_MARK), | ||
1554 | PINMUX_GPIO(GPIO_FN_SGPIO1_DI, SGPIO1_DI_MARK), | ||
1555 | PINMUX_GPIO(GPIO_FN_SGPIO1_DO, SGPIO1_DO_MARK), | ||
1556 | PINMUX_GPIO(GPIO_FN_SUB_CLKIN, SUB_CLKIN_MARK), | ||
1557 | |||
1558 | /* PTO (mobule: SGPIO, SerMux) */ | ||
1559 | PINMUX_GPIO(GPIO_FN_SGPIO0_CLK, SGPIO0_CLK_MARK), | ||
1560 | PINMUX_GPIO(GPIO_FN_SGPIO0_LOAD, SGPIO0_LOAD_MARK), | ||
1561 | PINMUX_GPIO(GPIO_FN_SGPIO0_DI, SGPIO0_DI_MARK), | ||
1562 | PINMUX_GPIO(GPIO_FN_SGPIO0_DO, SGPIO0_DO_MARK), | ||
1563 | PINMUX_GPIO(GPIO_FN_SGPIO2_CLK, SGPIO2_CLK_MARK), | ||
1564 | PINMUX_GPIO(GPIO_FN_SGPIO2_LOAD, SGPIO2_LOAD_MARK), | ||
1565 | PINMUX_GPIO(GPIO_FN_SGPIO2_DI, SGPIO2_DI_MARK), | ||
1566 | PINMUX_GPIO(GPIO_FN_SGPIO2_DO, SGPIO2_DO_MARK), | ||
1567 | PINMUX_GPIO(GPIO_FN_COM1_TXD, COM1_TXD_MARK), | ||
1568 | PINMUX_GPIO(GPIO_FN_COM1_RXD, COM1_RXD_MARK), | ||
1569 | PINMUX_GPIO(GPIO_FN_COM1_RTS, COM1_RTS_MARK), | ||
1570 | PINMUX_GPIO(GPIO_FN_COM1_CTS, COM1_CTS_MARK), | ||
1571 | |||
1572 | /* PTP (mobule: EVC, ADC) */ | ||
1573 | |||
1574 | /* PTQ (mobule: LPC) */ | ||
1575 | PINMUX_GPIO(GPIO_FN_LAD3, LAD3_MARK), | ||
1576 | PINMUX_GPIO(GPIO_FN_LAD2, LAD2_MARK), | ||
1577 | PINMUX_GPIO(GPIO_FN_LAD1, LAD1_MARK), | ||
1578 | PINMUX_GPIO(GPIO_FN_LAD0, LAD0_MARK), | ||
1579 | PINMUX_GPIO(GPIO_FN_LFRAME, LFRAME_MARK), | ||
1580 | PINMUX_GPIO(GPIO_FN_LRESET, LRESET_MARK), | ||
1581 | PINMUX_GPIO(GPIO_FN_LCLK, LCLK_MARK), | ||
1582 | |||
1583 | /* PTR (mobule: GRA, IIC) */ | ||
1584 | PINMUX_GPIO(GPIO_FN_DDC3, DDC3_MARK), | ||
1585 | PINMUX_GPIO(GPIO_FN_DDC2, DDC2_MARK), | ||
1586 | PINMUX_GPIO(GPIO_FN_SDA8, SDA8_MARK), | ||
1587 | PINMUX_GPIO(GPIO_FN_SCL8, SCL8_MARK), | ||
1588 | PINMUX_GPIO(GPIO_FN_SDA2, SDA2_MARK), | ||
1589 | PINMUX_GPIO(GPIO_FN_SCL2, SCL2_MARK), | ||
1590 | PINMUX_GPIO(GPIO_FN_SDA1, SDA1_MARK), | ||
1591 | PINMUX_GPIO(GPIO_FN_SCL1, SCL1_MARK), | ||
1592 | PINMUX_GPIO(GPIO_FN_SDA0, SDA0_MARK), | ||
1593 | PINMUX_GPIO(GPIO_FN_SCL0, SCL0_MARK), | ||
1594 | |||
1595 | /* PTS (mobule: GRA, IIC) */ | ||
1596 | PINMUX_GPIO(GPIO_FN_DDC1, DDC1_MARK), | ||
1597 | PINMUX_GPIO(GPIO_FN_DDC0, DDC0_MARK), | ||
1598 | PINMUX_GPIO(GPIO_FN_SDA9, SDA9_MARK), | ||
1599 | PINMUX_GPIO(GPIO_FN_SCL9, SCL9_MARK), | ||
1600 | PINMUX_GPIO(GPIO_FN_SDA5, SDA5_MARK), | ||
1601 | PINMUX_GPIO(GPIO_FN_SCL5, SCL5_MARK), | ||
1602 | PINMUX_GPIO(GPIO_FN_SDA4, SDA4_MARK), | ||
1603 | PINMUX_GPIO(GPIO_FN_SCL4, SCL4_MARK), | ||
1604 | PINMUX_GPIO(GPIO_FN_SDA3, SDA3_MARK), | ||
1605 | PINMUX_GPIO(GPIO_FN_SCL3, SCL3_MARK), | ||
1606 | |||
1607 | /* PTT (mobule: PWMX, AUD) */ | ||
1608 | PINMUX_GPIO(GPIO_FN_PWMX7, PWMX7_MARK), | ||
1609 | PINMUX_GPIO(GPIO_FN_PWMX6, PWMX6_MARK), | ||
1610 | PINMUX_GPIO(GPIO_FN_PWMX5, PWMX5_MARK), | ||
1611 | PINMUX_GPIO(GPIO_FN_PWMX4, PWMX4_MARK), | ||
1612 | PINMUX_GPIO(GPIO_FN_PWMX3, PWMX3_MARK), | ||
1613 | PINMUX_GPIO(GPIO_FN_PWMX2, PWMX2_MARK), | ||
1614 | PINMUX_GPIO(GPIO_FN_PWMX1, PWMX1_MARK), | ||
1615 | PINMUX_GPIO(GPIO_FN_PWMX0, PWMX0_MARK), | ||
1616 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1617 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1618 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1619 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1620 | PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), | ||
1621 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1622 | |||
1623 | /* PTU (mobule: LPC, APM) */ | ||
1624 | PINMUX_GPIO(GPIO_FN_LGPIO7, LGPIO7_MARK), | ||
1625 | PINMUX_GPIO(GPIO_FN_LGPIO6, LGPIO6_MARK), | ||
1626 | PINMUX_GPIO(GPIO_FN_LGPIO5, LGPIO5_MARK), | ||
1627 | PINMUX_GPIO(GPIO_FN_LGPIO4, LGPIO4_MARK), | ||
1628 | PINMUX_GPIO(GPIO_FN_LGPIO3, LGPIO3_MARK), | ||
1629 | PINMUX_GPIO(GPIO_FN_LGPIO2, LGPIO2_MARK), | ||
1630 | PINMUX_GPIO(GPIO_FN_LGPIO1, LGPIO1_MARK), | ||
1631 | PINMUX_GPIO(GPIO_FN_LGPIO0, LGPIO0_MARK), | ||
1632 | PINMUX_GPIO(GPIO_FN_APMONCTL_O, APMONCTL_O_MARK), | ||
1633 | PINMUX_GPIO(GPIO_FN_APMPWBTOUT_O, APMPWBTOUT_O_MARK), | ||
1634 | PINMUX_GPIO(GPIO_FN_APMSCI_O, APMSCI_O_MARK), | ||
1635 | PINMUX_GPIO(GPIO_FN_APMVDDON, APMVDDON_MARK), | ||
1636 | PINMUX_GPIO(GPIO_FN_APMSLPBTN, APMSLPBTN_MARK), | ||
1637 | PINMUX_GPIO(GPIO_FN_APMPWRBTN, APMPWRBTN_MARK), | ||
1638 | PINMUX_GPIO(GPIO_FN_APMS5N, APMS5N_MARK), | ||
1639 | PINMUX_GPIO(GPIO_FN_APMS3N, APMS3N_MARK), | ||
1640 | |||
1641 | /* PTV (mobule: LBSC, SerMux, R-SPI, EVC, GRA) */ | ||
1642 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1643 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1644 | PINMUX_GPIO(GPIO_FN_A21, A21_MARK), | ||
1645 | PINMUX_GPIO(GPIO_FN_A20, A20_MARK), | ||
1646 | PINMUX_GPIO(GPIO_FN_A19, A19_MARK), | ||
1647 | PINMUX_GPIO(GPIO_FN_A18, A18_MARK), | ||
1648 | PINMUX_GPIO(GPIO_FN_A17, A17_MARK), | ||
1649 | PINMUX_GPIO(GPIO_FN_A16, A16_MARK), | ||
1650 | PINMUX_GPIO(GPIO_FN_COM2_RI, COM2_RI_MARK), | ||
1651 | PINMUX_GPIO(GPIO_FN_R_SPI_MOSI, R_SPI_MOSI_MARK), | ||
1652 | PINMUX_GPIO(GPIO_FN_R_SPI_MISO, R_SPI_MISO_MARK), | ||
1653 | PINMUX_GPIO(GPIO_FN_R_SPI_RSPCK, R_SPI_RSPCK_MARK), | ||
1654 | PINMUX_GPIO(GPIO_FN_R_SPI_SSL0, R_SPI_SSL0_MARK), | ||
1655 | PINMUX_GPIO(GPIO_FN_R_SPI_SSL1, R_SPI_SSL1_MARK), | ||
1656 | PINMUX_GPIO(GPIO_FN_EVENT7, EVENT7_MARK), | ||
1657 | PINMUX_GPIO(GPIO_FN_EVENT6, EVENT6_MARK), | ||
1658 | PINMUX_GPIO(GPIO_FN_VBIOS_DI, VBIOS_DI_MARK), | ||
1659 | PINMUX_GPIO(GPIO_FN_VBIOS_DO, VBIOS_DO_MARK), | ||
1660 | PINMUX_GPIO(GPIO_FN_VBIOS_CLK, VBIOS_CLK_MARK), | ||
1661 | PINMUX_GPIO(GPIO_FN_VBIOS_CS, VBIOS_CS_MARK), | ||
1662 | |||
1663 | /* PTW (mobule: LBSC, EVC, SCIF) */ | ||
1664 | PINMUX_GPIO(GPIO_FN_A16, A16_MARK), | ||
1665 | PINMUX_GPIO(GPIO_FN_A15, A15_MARK), | ||
1666 | PINMUX_GPIO(GPIO_FN_A14, A14_MARK), | ||
1667 | PINMUX_GPIO(GPIO_FN_A13, A13_MARK), | ||
1668 | PINMUX_GPIO(GPIO_FN_A12, A12_MARK), | ||
1669 | PINMUX_GPIO(GPIO_FN_A11, A11_MARK), | ||
1670 | PINMUX_GPIO(GPIO_FN_A10, A10_MARK), | ||
1671 | PINMUX_GPIO(GPIO_FN_A9, A9_MARK), | ||
1672 | PINMUX_GPIO(GPIO_FN_A8, A8_MARK), | ||
1673 | PINMUX_GPIO(GPIO_FN_EVENT5, EVENT5_MARK), | ||
1674 | PINMUX_GPIO(GPIO_FN_EVENT4, EVENT4_MARK), | ||
1675 | PINMUX_GPIO(GPIO_FN_EVENT3, EVENT3_MARK), | ||
1676 | PINMUX_GPIO(GPIO_FN_EVENT2, EVENT2_MARK), | ||
1677 | PINMUX_GPIO(GPIO_FN_EVENT1, EVENT1_MARK), | ||
1678 | PINMUX_GPIO(GPIO_FN_EVENT0, EVENT0_MARK), | ||
1679 | PINMUX_GPIO(GPIO_FN_CTS4, CTS4_MARK), | ||
1680 | PINMUX_GPIO(GPIO_FN_CTS2, CTS2_MARK), | ||
1681 | |||
1682 | /* PTX (mobule: LBSC) */ | ||
1683 | PINMUX_GPIO(GPIO_FN_A7, A7_MARK), | ||
1684 | PINMUX_GPIO(GPIO_FN_A6, A6_MARK), | ||
1685 | PINMUX_GPIO(GPIO_FN_A5, A5_MARK), | ||
1686 | PINMUX_GPIO(GPIO_FN_A4, A4_MARK), | ||
1687 | PINMUX_GPIO(GPIO_FN_A3, A3_MARK), | ||
1688 | PINMUX_GPIO(GPIO_FN_A2, A2_MARK), | ||
1689 | PINMUX_GPIO(GPIO_FN_A1, A1_MARK), | ||
1690 | PINMUX_GPIO(GPIO_FN_A0, A0_MARK), | ||
1691 | PINMUX_GPIO(GPIO_FN_RTS2, RTS2_MARK), | ||
1692 | PINMUX_GPIO(GPIO_FN_SIM_D, SIM_D_MARK), | ||
1693 | PINMUX_GPIO(GPIO_FN_SIM_CLK, SIM_CLK_MARK), | ||
1694 | PINMUX_GPIO(GPIO_FN_SIM_RST, SIM_RST_MARK), | ||
1695 | |||
1696 | /* PTY (mobule: LBSC) */ | ||
1697 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1698 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1699 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1700 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1701 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1702 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1703 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1704 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1705 | |||
1706 | /* PTZ (mobule: eMMC, ONFI) */ | ||
1707 | PINMUX_GPIO(GPIO_FN_MMCDAT7, MMCDAT7_MARK), | ||
1708 | PINMUX_GPIO(GPIO_FN_MMCDAT6, MMCDAT6_MARK), | ||
1709 | PINMUX_GPIO(GPIO_FN_MMCDAT5, MMCDAT5_MARK), | ||
1710 | PINMUX_GPIO(GPIO_FN_MMCDAT4, MMCDAT4_MARK), | ||
1711 | PINMUX_GPIO(GPIO_FN_MMCDAT3, MMCDAT3_MARK), | ||
1712 | PINMUX_GPIO(GPIO_FN_MMCDAT2, MMCDAT2_MARK), | ||
1713 | PINMUX_GPIO(GPIO_FN_MMCDAT1, MMCDAT1_MARK), | ||
1714 | PINMUX_GPIO(GPIO_FN_MMCDAT0, MMCDAT0_MARK), | ||
1715 | PINMUX_GPIO(GPIO_FN_ON_DQ7, ON_DQ7_MARK), | ||
1716 | PINMUX_GPIO(GPIO_FN_ON_DQ6, ON_DQ6_MARK), | ||
1717 | PINMUX_GPIO(GPIO_FN_ON_DQ5, ON_DQ5_MARK), | ||
1718 | PINMUX_GPIO(GPIO_FN_ON_DQ4, ON_DQ4_MARK), | ||
1719 | PINMUX_GPIO(GPIO_FN_ON_DQ3, ON_DQ3_MARK), | ||
1720 | PINMUX_GPIO(GPIO_FN_ON_DQ2, ON_DQ2_MARK), | ||
1721 | PINMUX_GPIO(GPIO_FN_ON_DQ1, ON_DQ1_MARK), | ||
1722 | PINMUX_GPIO(GPIO_FN_ON_DQ0, ON_DQ0_MARK), | ||
1723 | }; | ||
1724 | |||
1725 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1726 | { PINMUX_CFG_REG("PACR", 0xffec0000, 16, 2) { | ||
1727 | PTA7_FN, PTA7_OUT, PTA7_IN, PTA7_IN_PU, | ||
1728 | PTA6_FN, PTA6_OUT, PTA6_IN, PTA6_IN_PU, | ||
1729 | PTA5_FN, PTA5_OUT, PTA5_IN, PTA5_IN_PU, | ||
1730 | PTA4_FN, PTA4_OUT, PTA4_IN, PTA4_IN_PU, | ||
1731 | PTA3_FN, PTA3_OUT, PTA3_IN, PTA3_IN_PU, | ||
1732 | PTA2_FN, PTA2_OUT, PTA2_IN, PTA2_IN_PU, | ||
1733 | PTA1_FN, PTA1_OUT, PTA1_IN, PTA1_IN_PU, | ||
1734 | PTA0_FN, PTA0_OUT, PTA0_IN, PTA0_IN_PU } | ||
1735 | }, | ||
1736 | { PINMUX_CFG_REG("PBCR", 0xffec0002, 16, 2) { | ||
1737 | PTB7_FN, PTB7_OUT, PTB7_IN, 0, | ||
1738 | PTB6_FN, PTB6_OUT, PTB6_IN, 0, | ||
1739 | PTB5_FN, PTB5_OUT, PTB5_IN, 0, | ||
1740 | PTB4_FN, PTB4_OUT, PTB4_IN, 0, | ||
1741 | PTB3_FN, PTB3_OUT, PTB3_IN, 0, | ||
1742 | PTB2_FN, PTB2_OUT, PTB2_IN, 0, | ||
1743 | PTB1_FN, PTB1_OUT, PTB1_IN, 0, | ||
1744 | PTB0_FN, PTB0_OUT, PTB0_IN, 0 } | ||
1745 | }, | ||
1746 | { PINMUX_CFG_REG("PCCR", 0xffec0004, 16, 2) { | ||
1747 | PTC7_FN, PTC7_OUT, PTC7_IN, 0, | ||
1748 | PTC6_FN, PTC6_OUT, PTC6_IN, 0, | ||
1749 | PTC5_FN, PTC5_OUT, PTC5_IN, 0, | ||
1750 | PTC4_FN, PTC4_OUT, PTC4_IN, 0, | ||
1751 | PTC3_FN, PTC3_OUT, PTC3_IN, 0, | ||
1752 | PTC2_FN, PTC2_OUT, PTC2_IN, 0, | ||
1753 | PTC1_FN, PTC1_OUT, PTC1_IN, 0, | ||
1754 | PTC0_FN, PTC0_OUT, PTC0_IN, 0 } | ||
1755 | }, | ||
1756 | { PINMUX_CFG_REG("PDCR", 0xffec0006, 16, 2) { | ||
1757 | PTD7_FN, PTD7_OUT, PTD7_IN, PTD7_IN_PU, | ||
1758 | PTD6_FN, PTD6_OUT, PTD6_IN, PTD6_IN_PU, | ||
1759 | PTD5_FN, PTD5_OUT, PTD5_IN, PTD5_IN_PU, | ||
1760 | PTD4_FN, PTD4_OUT, PTD4_IN, PTD4_IN_PU, | ||
1761 | PTD3_FN, PTD3_OUT, PTD3_IN, PTD3_IN_PU, | ||
1762 | PTD2_FN, PTD2_OUT, PTD2_IN, PTD2_IN_PU, | ||
1763 | PTD1_FN, PTD1_OUT, PTD1_IN, PTD1_IN_PU, | ||
1764 | PTD0_FN, PTD0_OUT, PTD0_IN, PTD0_IN_PU } | ||
1765 | }, | ||
1766 | { PINMUX_CFG_REG("PECR", 0xffec0008, 16, 2) { | ||
1767 | PTE7_FN, PTE7_OUT, PTE7_IN, PTE7_IN_PU, | ||
1768 | PTE6_FN, PTE6_OUT, PTE6_IN, PTE6_IN_PU, | ||
1769 | PTE5_FN, PTE5_OUT, PTE5_IN, PTE5_IN_PU, | ||
1770 | PTE4_FN, PTE4_OUT, PTE4_IN, PTE4_IN_PU, | ||
1771 | PTE3_FN, PTE3_OUT, PTE3_IN, PTE3_IN_PU, | ||
1772 | PTE2_FN, PTE2_OUT, PTE2_IN, PTE2_IN_PU, | ||
1773 | PTE1_FN, PTE1_OUT, PTE1_IN, PTE1_IN_PU, | ||
1774 | PTE0_FN, PTE0_OUT, PTE0_IN, PTE0_IN_PU } | ||
1775 | }, | ||
1776 | { PINMUX_CFG_REG("PFCR", 0xffec000a, 16, 2) { | ||
1777 | PTF7_FN, PTF7_OUT, PTF7_IN, PTF7_IN_PU, | ||
1778 | PTF6_FN, PTF6_OUT, PTF6_IN, PTF6_IN_PU, | ||
1779 | PTF5_FN, PTF5_OUT, PTF5_IN, PTF5_IN_PU, | ||
1780 | PTF4_FN, PTF4_OUT, PTF4_IN, PTF4_IN_PU, | ||
1781 | PTF3_FN, PTF3_OUT, PTF3_IN, PTF3_IN_PU, | ||
1782 | PTF2_FN, PTF2_OUT, PTF2_IN, PTF2_IN_PU, | ||
1783 | PTF1_FN, PTF1_OUT, PTF1_IN, PTF1_IN_PU, | ||
1784 | PTF0_FN, PTF0_OUT, PTF0_IN, PTF0_IN_PU } | ||
1785 | }, | ||
1786 | { PINMUX_CFG_REG("PGCR", 0xffec000c, 16, 2) { | ||
1787 | PTG7_FN, PTG7_OUT, PTG7_IN, PTG7_IN_PU , | ||
1788 | PTG6_FN, PTG6_OUT, PTG6_IN, PTG6_IN_PU , | ||
1789 | PTG5_FN, PTG5_OUT, PTG5_IN, 0, | ||
1790 | PTG4_FN, PTG4_OUT, PTG4_IN, PTG4_IN_PU , | ||
1791 | PTG3_FN, PTG3_OUT, PTG3_IN, 0, | ||
1792 | PTG2_FN, PTG2_OUT, PTG2_IN, 0, | ||
1793 | PTG1_FN, PTG1_OUT, PTG1_IN, 0, | ||
1794 | PTG0_FN, PTG0_OUT, PTG0_IN, 0 } | ||
1795 | }, | ||
1796 | { PINMUX_CFG_REG("PHCR", 0xffec000e, 16, 2) { | ||
1797 | PTH7_FN, PTH7_OUT, PTH7_IN, PTH7_IN_PU, | ||
1798 | PTH6_FN, PTH6_OUT, PTH6_IN, PTH6_IN_PU, | ||
1799 | PTH5_FN, PTH5_OUT, PTH5_IN, PTH5_IN_PU, | ||
1800 | PTH4_FN, PTH4_OUT, PTH4_IN, PTH4_IN_PU, | ||
1801 | PTH3_FN, PTH3_OUT, PTH3_IN, PTH3_IN_PU, | ||
1802 | PTH2_FN, PTH2_OUT, PTH2_IN, PTH2_IN_PU, | ||
1803 | PTH1_FN, PTH1_OUT, PTH1_IN, PTH1_IN_PU, | ||
1804 | PTH0_FN, PTH0_OUT, PTH0_IN, PTH0_IN_PU } | ||
1805 | }, | ||
1806 | { PINMUX_CFG_REG("PICR", 0xffec0010, 16, 2) { | ||
1807 | PTI7_FN, PTI7_OUT, PTI7_IN, PTI7_IN_PU, | ||
1808 | PTI6_FN, PTI6_OUT, PTI6_IN, PTI6_IN_PU, | ||
1809 | PTI5_FN, PTI5_OUT, PTI5_IN, 0, | ||
1810 | PTI4_FN, PTI4_OUT, PTI4_IN, PTI4_IN_PU, | ||
1811 | PTI3_FN, PTI3_OUT, PTI3_IN, PTI3_IN_PU, | ||
1812 | PTI2_FN, PTI2_OUT, PTI2_IN, PTI2_IN_PU, | ||
1813 | PTI1_FN, PTI1_OUT, PTI1_IN, PTI1_IN_PU, | ||
1814 | PTI0_FN, PTI0_OUT, PTI0_IN, PTI0_IN_PU } | ||
1815 | }, | ||
1816 | { PINMUX_CFG_REG("PJCR", 0xffec0012, 16, 2) { | ||
1817 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1818 | PTJ6_FN, PTJ6_OUT, PTJ6_IN, PTJ6_IN_PU, | ||
1819 | PTJ5_FN, PTJ5_OUT, PTJ5_IN, PTJ5_IN_PU, | ||
1820 | PTJ4_FN, PTJ4_OUT, PTJ4_IN, PTJ4_IN_PU, | ||
1821 | PTJ3_FN, PTJ3_OUT, PTJ3_IN, PTJ3_IN_PU, | ||
1822 | PTJ2_FN, PTJ2_OUT, PTJ2_IN, PTJ2_IN_PU, | ||
1823 | PTJ1_FN, PTJ1_OUT, PTJ1_IN, PTJ1_IN_PU, | ||
1824 | PTJ0_FN, PTJ0_OUT, PTJ0_IN, PTJ0_IN_PU } | ||
1825 | }, | ||
1826 | { PINMUX_CFG_REG("PKCR", 0xffec0014, 16, 2) { | ||
1827 | PTK7_FN, PTK7_OUT, PTK7_IN, PTK7_IN_PU, | ||
1828 | PTK6_FN, PTK6_OUT, PTK6_IN, PTK6_IN_PU, | ||
1829 | PTK5_FN, PTK5_OUT, PTK5_IN, PTK5_IN_PU, | ||
1830 | PTK4_FN, PTK4_OUT, PTK4_IN, PTK4_IN_PU, | ||
1831 | PTK3_FN, PTK3_OUT, PTK3_IN, PTK3_IN_PU, | ||
1832 | PTK2_FN, PTK2_OUT, PTK2_IN, PTK2_IN_PU, | ||
1833 | PTK1_FN, PTK1_OUT, PTK1_IN, PTK1_IN_PU, | ||
1834 | PTK0_FN, PTK0_OUT, PTK0_IN, PTK0_IN_PU } | ||
1835 | }, | ||
1836 | { PINMUX_CFG_REG("PLCR", 0xffec0016, 16, 2) { | ||
1837 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1838 | PTL6_FN, PTL6_OUT, PTL6_IN, PTL6_IN_PU, | ||
1839 | PTL5_FN, PTL5_OUT, PTL5_IN, PTL5_IN_PU, | ||
1840 | PTL4_FN, PTL4_OUT, PTL4_IN, PTL4_IN_PU, | ||
1841 | PTL3_FN, PTL3_OUT, PTL3_IN, PTL3_IN_PU, | ||
1842 | PTL2_FN, PTL2_OUT, PTL2_IN, PTL2_IN_PU, | ||
1843 | PTL1_FN, PTL1_OUT, PTL1_IN, PTL1_IN_PU, | ||
1844 | PTL0_FN, PTL0_OUT, PTL0_IN, PTL0_IN_PU } | ||
1845 | }, | ||
1846 | { PINMUX_CFG_REG("PMCR", 0xffec0018, 16, 2) { | ||
1847 | PTM7_FN, PTM7_OUT, PTM7_IN, PTM7_IN_PU, | ||
1848 | PTM6_FN, PTM6_OUT, PTM6_IN, PTM6_IN_PU, | ||
1849 | PTM5_FN, PTM5_OUT, PTM5_IN, PTM5_IN_PU, | ||
1850 | PTM4_FN, PTM4_OUT, PTM4_IN, PTM4_IN_PU, | ||
1851 | PTM3_FN, PTM3_OUT, PTM3_IN, 0, | ||
1852 | PTM2_FN, PTM2_OUT, PTM2_IN, 0, | ||
1853 | PTM1_FN, PTM1_OUT, PTM1_IN, 0, | ||
1854 | PTM0_FN, PTM0_OUT, PTM0_IN, 0 } | ||
1855 | }, | ||
1856 | { PINMUX_CFG_REG("PNCR", 0xffec001a, 16, 2) { | ||
1857 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1858 | PTN6_FN, PTN6_OUT, PTN6_IN, 0, | ||
1859 | PTN5_FN, PTN5_OUT, PTN5_IN, 0, | ||
1860 | PTN4_FN, PTN4_OUT, PTN4_IN, PTN4_IN_PU, | ||
1861 | PTN3_FN, PTN3_OUT, PTN3_IN, PTN3_IN_PU, | ||
1862 | PTN2_FN, PTN2_OUT, PTN2_IN, PTN2_IN_PU, | ||
1863 | PTN1_FN, PTN1_OUT, PTN1_IN, PTN1_IN_PU, | ||
1864 | PTN0_FN, PTN0_OUT, PTN0_IN, PTN0_IN_PU } | ||
1865 | }, | ||
1866 | { PINMUX_CFG_REG("POCR", 0xffec001c, 16, 2) { | ||
1867 | PTO7_FN, PTO7_OUT, PTO7_IN, PTO7_IN_PU, | ||
1868 | PTO6_FN, PTO6_OUT, PTO6_IN, PTO6_IN_PU, | ||
1869 | PTO5_FN, PTO5_OUT, PTO5_IN, PTO5_IN_PU, | ||
1870 | PTO4_FN, PTO4_OUT, PTO4_IN, PTO4_IN_PU, | ||
1871 | PTO3_FN, PTO3_OUT, PTO3_IN, PTO3_IN_PU, | ||
1872 | PTO2_FN, PTO2_OUT, PTO2_IN, PTO2_IN_PU, | ||
1873 | PTO1_FN, PTO1_OUT, PTO1_IN, PTO1_IN_PU, | ||
1874 | PTO0_FN, PTO0_OUT, PTO0_IN, PTO0_IN_PU } | ||
1875 | }, | ||
1876 | #if 0 /* FIXME: Remove it? */ | ||
1877 | { PINMUX_CFG_REG("PPCR", 0xffec001e, 16, 2) { | ||
1878 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1879 | PTP6_FN, PTP6_OUT, PTP6_IN, 0, | ||
1880 | PTP5_FN, PTP5_OUT, PTP5_IN, 0, | ||
1881 | PTP4_FN, PTP4_OUT, PTP4_IN, 0, | ||
1882 | PTP3_FN, PTP3_OUT, PTP3_IN, 0, | ||
1883 | PTP2_FN, PTP2_OUT, PTP2_IN, 0, | ||
1884 | PTP1_FN, PTP1_OUT, PTP1_IN, 0, | ||
1885 | PTP0_FN, PTP0_OUT, PTP0_IN, 0 } | ||
1886 | }, | ||
1887 | #endif | ||
1888 | { PINMUX_CFG_REG("PQCR", 0xffec0020, 16, 2) { | ||
1889 | 0, 0, 0, 0, /* reserved: always set 1 */ | ||
1890 | PTQ6_FN, PTQ6_OUT, PTQ6_IN, 0, | ||
1891 | PTQ5_FN, PTQ5_OUT, PTQ5_IN, 0, | ||
1892 | PTQ4_FN, PTQ4_OUT, PTQ4_IN, 0, | ||
1893 | PTQ3_FN, PTQ3_OUT, PTQ3_IN, 0, | ||
1894 | PTQ2_FN, PTQ2_OUT, PTQ2_IN, 0, | ||
1895 | PTQ1_FN, PTQ1_OUT, PTQ1_IN, 0, | ||
1896 | PTQ0_FN, PTQ0_OUT, PTQ0_IN, 0 } | ||
1897 | }, | ||
1898 | { PINMUX_CFG_REG("PRCR", 0xffec0022, 16, 2) { | ||
1899 | PTR7_FN, PTR7_OUT, PTR7_IN, 0, | ||
1900 | PTR6_FN, PTR6_OUT, PTR6_IN, 0, | ||
1901 | PTR5_FN, PTR5_OUT, PTR5_IN, 0, | ||
1902 | PTR4_FN, PTR4_OUT, PTR4_IN, 0, | ||
1903 | PTR3_FN, PTR3_OUT, PTR3_IN, 0, | ||
1904 | PTR2_FN, PTR2_OUT, PTR2_IN, 0, | ||
1905 | PTR1_FN, PTR1_OUT, PTR1_IN, 0, | ||
1906 | PTR0_FN, PTR0_OUT, PTR0_IN, 0 } | ||
1907 | }, | ||
1908 | { PINMUX_CFG_REG("PSCR", 0xffec0024, 16, 2) { | ||
1909 | PTS7_FN, PTS7_OUT, PTS7_IN, 0, | ||
1910 | PTS6_FN, PTS6_OUT, PTS6_IN, 0, | ||
1911 | PTS5_FN, PTS5_OUT, PTS5_IN, 0, | ||
1912 | PTS4_FN, PTS4_OUT, PTS4_IN, 0, | ||
1913 | PTS3_FN, PTS3_OUT, PTS3_IN, 0, | ||
1914 | PTS2_FN, PTS2_OUT, PTS2_IN, 0, | ||
1915 | PTS1_FN, PTS1_OUT, PTS1_IN, 0, | ||
1916 | PTS0_FN, PTS0_OUT, PTS0_IN, 0 } | ||
1917 | }, | ||
1918 | { PINMUX_CFG_REG("PTCR", 0xffec0026, 16, 2) { | ||
1919 | PTT7_FN, PTT7_OUT, PTT7_IN, PTO7_IN_PU, | ||
1920 | PTT6_FN, PTT6_OUT, PTT6_IN, PTO6_IN_PU, | ||
1921 | PTT5_FN, PTT5_OUT, PTT5_IN, PTO5_IN_PU, | ||
1922 | PTT4_FN, PTT4_OUT, PTT4_IN, PTO4_IN_PU, | ||
1923 | PTT3_FN, PTT3_OUT, PTT3_IN, PTO3_IN_PU, | ||
1924 | PTT2_FN, PTT2_OUT, PTT2_IN, PTO2_IN_PU, | ||
1925 | PTT1_FN, PTT1_OUT, PTT1_IN, PTO1_IN_PU, | ||
1926 | PTT0_FN, PTT0_OUT, PTT0_IN, PTO0_IN_PU } | ||
1927 | }, | ||
1928 | { PINMUX_CFG_REG("PUCR", 0xffec0028, 16, 2) { | ||
1929 | PTU7_FN, PTU7_OUT, PTU7_IN, PTU7_IN_PU, | ||
1930 | PTU6_FN, PTU6_OUT, PTU6_IN, PTU6_IN_PU, | ||
1931 | PTU5_FN, PTU5_OUT, PTU5_IN, PTU5_IN_PU, | ||
1932 | PTU4_FN, PTU4_OUT, PTU4_IN, PTU4_IN_PU, | ||
1933 | PTU3_FN, PTU3_OUT, PTU3_IN, PTU3_IN_PU, | ||
1934 | PTU2_FN, PTU2_OUT, PTU2_IN, PTU2_IN_PU, | ||
1935 | PTU1_FN, PTU1_OUT, PTU1_IN, PTU1_IN_PU, | ||
1936 | PTU0_FN, PTU0_OUT, PTU0_IN, PTU0_IN_PU } | ||
1937 | }, | ||
1938 | { PINMUX_CFG_REG("PVCR", 0xffec002a, 16, 2) { | ||
1939 | PTV7_FN, PTV7_OUT, PTV7_IN, PTV7_IN_PU, | ||
1940 | PTV6_FN, PTV6_OUT, PTV6_IN, PTV6_IN_PU, | ||
1941 | PTV5_FN, PTV5_OUT, PTV5_IN, PTV5_IN_PU, | ||
1942 | PTV4_FN, PTV4_OUT, PTV4_IN, PTV4_IN_PU, | ||
1943 | PTV3_FN, PTV3_OUT, PTV3_IN, PTV3_IN_PU, | ||
1944 | PTV2_FN, PTV2_OUT, PTV2_IN, PTV2_IN_PU, | ||
1945 | PTV1_FN, PTV1_OUT, PTV1_IN, 0, | ||
1946 | PTV0_FN, PTV0_OUT, PTV0_IN, 0 } | ||
1947 | }, | ||
1948 | { PINMUX_CFG_REG("PWCR", 0xffec002c, 16, 2) { | ||
1949 | PTW7_FN, PTW7_OUT, PTW7_IN, 0, | ||
1950 | PTW6_FN, PTW6_OUT, PTW6_IN, 0, | ||
1951 | PTW5_FN, PTW5_OUT, PTW5_IN, 0, | ||
1952 | PTW4_FN, PTW4_OUT, PTW4_IN, 0, | ||
1953 | PTW3_FN, PTW3_OUT, PTW3_IN, 0, | ||
1954 | PTW2_FN, PTW2_OUT, PTW2_IN, 0, | ||
1955 | PTW1_FN, PTW1_OUT, PTW1_IN, PTW1_IN_PU, | ||
1956 | PTW0_FN, PTW0_OUT, PTW0_IN, PTW0_IN_PU } | ||
1957 | }, | ||
1958 | { PINMUX_CFG_REG("PXCR", 0xffec002e, 16, 2) { | ||
1959 | PTX7_FN, PTX7_OUT, PTX7_IN, PTX7_IN_PU, | ||
1960 | PTX6_FN, PTX6_OUT, PTX6_IN, PTX6_IN_PU, | ||
1961 | PTX5_FN, PTX5_OUT, PTX5_IN, PTX5_IN_PU, | ||
1962 | PTX4_FN, PTX4_OUT, PTX4_IN, PTX4_IN_PU, | ||
1963 | PTX3_FN, PTX3_OUT, PTX3_IN, PTX3_IN_PU, | ||
1964 | PTX2_FN, PTX2_OUT, PTX2_IN, PTX2_IN_PU, | ||
1965 | PTX1_FN, PTX1_OUT, PTX1_IN, PTX1_IN_PU, | ||
1966 | PTX0_FN, PTX0_OUT, PTX0_IN, PTX0_IN_PU } | ||
1967 | }, | ||
1968 | { PINMUX_CFG_REG("PYCR", 0xffec0030, 16, 2) { | ||
1969 | PTY7_FN, PTY7_OUT, PTY7_IN, PTY7_IN_PU, | ||
1970 | PTY6_FN, PTY6_OUT, PTY6_IN, PTY6_IN_PU, | ||
1971 | PTY5_FN, PTY5_OUT, PTY5_IN, PTY5_IN_PU, | ||
1972 | PTY4_FN, PTY4_OUT, PTY4_IN, PTY4_IN_PU, | ||
1973 | PTY3_FN, PTY3_OUT, PTY3_IN, PTY3_IN_PU, | ||
1974 | PTY2_FN, PTY2_OUT, PTY2_IN, PTY2_IN_PU, | ||
1975 | PTY1_FN, PTY1_OUT, PTY1_IN, PTY1_IN_PU, | ||
1976 | PTY0_FN, PTY0_OUT, PTY0_IN, PTY0_IN_PU } | ||
1977 | }, | ||
1978 | { PINMUX_CFG_REG("PZCR", 0xffec0032, 16, 2) { | ||
1979 | PTZ7_FN, PTZ7_OUT, PTZ7_IN, 0, | ||
1980 | PTZ6_FN, PTZ6_OUT, PTZ6_IN, 0, | ||
1981 | PTZ5_FN, PTZ5_OUT, PTZ5_IN, 0, | ||
1982 | PTZ4_FN, PTZ4_OUT, PTZ4_IN, 0, | ||
1983 | PTZ3_FN, PTZ3_OUT, PTZ3_IN, 0, | ||
1984 | PTZ2_FN, PTZ2_OUT, PTZ2_IN, 0, | ||
1985 | PTZ1_FN, PTZ1_OUT, PTZ1_IN, 0, | ||
1986 | PTZ0_FN, PTZ0_OUT, PTZ0_IN, 0 } | ||
1987 | }, | ||
1988 | |||
1989 | { PINMUX_CFG_REG("PSEL0", 0xffec0070, 16, 1) { | ||
1990 | PS0_15_FN1, PS0_15_FN2, | ||
1991 | PS0_14_FN1, PS0_14_FN2, | ||
1992 | PS0_13_FN1, PS0_13_FN2, | ||
1993 | PS0_12_FN1, PS0_12_FN2, | ||
1994 | PS0_11_FN1, PS0_11_FN2, | ||
1995 | PS0_10_FN1, PS0_10_FN2, | ||
1996 | PS0_9_FN1, PS0_9_FN2, | ||
1997 | PS0_8_FN1, PS0_8_FN2, | ||
1998 | PS0_7_FN1, PS0_7_FN2, | ||
1999 | PS0_6_FN1, PS0_6_FN2, | ||
2000 | PS0_5_FN1, PS0_5_FN2, | ||
2001 | PS0_4_FN1, PS0_4_FN2, | ||
2002 | PS0_3_FN1, PS0_3_FN2, | ||
2003 | PS0_2_FN1, PS0_2_FN2, | ||
2004 | 0, 0, | ||
2005 | 0, 0, } | ||
2006 | }, | ||
2007 | { PINMUX_CFG_REG("PSEL1", 0xffec0072, 16, 1) { | ||
2008 | 0, 0, | ||
2009 | 0, 0, | ||
2010 | 0, 0, | ||
2011 | 0, 0, | ||
2012 | 0, 0, | ||
2013 | PS1_10_FN1, PS1_10_FN2, | ||
2014 | PS1_9_FN1, PS1_9_FN2, | ||
2015 | PS1_8_FN1, PS1_8_FN2, | ||
2016 | 0, 0, | ||
2017 | 0, 0, | ||
2018 | 0, 0, | ||
2019 | 0, 0, | ||
2020 | 0, 0, | ||
2021 | PS1_2_FN1, PS1_2_FN2, | ||
2022 | 0, 0, | ||
2023 | 0, 0, } | ||
2024 | }, | ||
2025 | { PINMUX_CFG_REG("PSEL2", 0xffec0074, 16, 1) { | ||
2026 | 0, 0, | ||
2027 | 0, 0, | ||
2028 | PS2_13_FN1, PS2_13_FN2, | ||
2029 | PS2_12_FN1, PS2_12_FN2, | ||
2030 | 0, 0, | ||
2031 | 0, 0, | ||
2032 | 0, 0, | ||
2033 | 0, 0, | ||
2034 | PS2_7_FN1, PS2_7_FN2, | ||
2035 | PS2_6_FN1, PS2_6_FN2, | ||
2036 | PS2_5_FN1, PS2_5_FN2, | ||
2037 | PS2_4_FN1, PS2_4_FN2, | ||
2038 | 0, 0, | ||
2039 | PS2_2_FN1, PS2_2_FN2, | ||
2040 | 0, 0, | ||
2041 | 0, 0, } | ||
2042 | }, | ||
2043 | { PINMUX_CFG_REG("PSEL3", 0xffec0076, 16, 1) { | ||
2044 | PS3_15_FN1, PS3_15_FN2, | ||
2045 | PS3_14_FN1, PS3_14_FN2, | ||
2046 | PS3_13_FN1, PS3_13_FN2, | ||
2047 | PS3_12_FN1, PS3_12_FN2, | ||
2048 | PS3_11_FN1, PS3_11_FN2, | ||
2049 | PS3_10_FN1, PS3_10_FN2, | ||
2050 | PS3_9_FN1, PS3_9_FN2, | ||
2051 | PS3_8_FN1, PS3_8_FN2, | ||
2052 | PS3_7_FN1, PS3_7_FN2, | ||
2053 | 0, 0, | ||
2054 | 0, 0, | ||
2055 | 0, 0, | ||
2056 | 0, 0, | ||
2057 | PS3_2_FN1, PS3_2_FN2, | ||
2058 | PS3_1_FN1, PS3_1_FN2, | ||
2059 | 0, 0, } | ||
2060 | }, | ||
2061 | |||
2062 | { PINMUX_CFG_REG("PSEL4", 0xffec0078, 16, 1) { | ||
2063 | 0, 0, | ||
2064 | PS4_14_FN1, PS4_14_FN2, | ||
2065 | PS4_13_FN1, PS4_13_FN2, | ||
2066 | PS4_12_FN1, PS4_12_FN2, | ||
2067 | 0, 0, | ||
2068 | PS4_10_FN1, PS4_10_FN2, | ||
2069 | PS4_9_FN1, PS4_9_FN2, | ||
2070 | PS4_8_FN1, PS4_8_FN2, | ||
2071 | 0, 0, | ||
2072 | 0, 0, | ||
2073 | 0, 0, | ||
2074 | PS4_4_FN1, PS4_4_FN2, | ||
2075 | PS4_3_FN1, PS4_3_FN2, | ||
2076 | PS4_2_FN1, PS4_2_FN2, | ||
2077 | PS4_1_FN1, PS4_1_FN2, | ||
2078 | PS4_0_FN1, PS4_0_FN2, } | ||
2079 | }, | ||
2080 | { PINMUX_CFG_REG("PSEL5", 0xffec007a, 16, 1) { | ||
2081 | 0, 0, | ||
2082 | 0, 0, | ||
2083 | 0, 0, | ||
2084 | 0, 0, | ||
2085 | PS5_11_FN1, PS5_11_FN2, | ||
2086 | PS5_10_FN1, PS5_10_FN2, | ||
2087 | PS5_9_FN1, PS5_9_FN2, | ||
2088 | PS5_8_FN1, PS5_8_FN2, | ||
2089 | PS5_7_FN1, PS5_7_FN2, | ||
2090 | PS5_6_FN1, PS5_6_FN2, | ||
2091 | PS5_5_FN1, PS5_5_FN2, | ||
2092 | PS5_4_FN1, PS5_4_FN2, | ||
2093 | PS5_3_FN1, PS5_3_FN2, | ||
2094 | PS5_2_FN1, PS5_2_FN2, | ||
2095 | 0, 0, | ||
2096 | 0, 0, } | ||
2097 | }, | ||
2098 | { PINMUX_CFG_REG("PSEL6", 0xffec007c, 16, 1) { | ||
2099 | PS6_15_FN1, PS6_15_FN2, | ||
2100 | PS6_14_FN1, PS6_14_FN2, | ||
2101 | PS6_13_FN1, PS6_13_FN2, | ||
2102 | PS6_12_FN1, PS6_12_FN2, | ||
2103 | PS6_11_FN1, PS6_11_FN2, | ||
2104 | PS6_10_FN1, PS6_10_FN2, | ||
2105 | PS6_9_FN1, PS6_9_FN2, | ||
2106 | PS6_8_FN1, PS6_8_FN2, | ||
2107 | PS6_7_FN1, PS6_7_FN2, | ||
2108 | PS6_6_FN1, PS6_6_FN2, | ||
2109 | PS6_5_FN1, PS6_5_FN2, | ||
2110 | PS6_4_FN1, PS6_4_FN2, | ||
2111 | PS6_3_FN1, PS6_3_FN2, | ||
2112 | PS6_2_FN1, PS6_2_FN2, | ||
2113 | PS6_1_FN1, PS6_1_FN2, | ||
2114 | PS6_0_FN1, PS6_0_FN2, } | ||
2115 | }, | ||
2116 | { PINMUX_CFG_REG("PSEL7", 0xffec0082, 16, 1) { | ||
2117 | PS7_15_FN1, PS7_15_FN2, | ||
2118 | PS7_14_FN1, PS7_14_FN2, | ||
2119 | PS7_13_FN1, PS7_13_FN2, | ||
2120 | PS7_12_FN1, PS7_12_FN2, | ||
2121 | PS7_11_FN1, PS7_11_FN2, | ||
2122 | PS7_10_FN1, PS7_10_FN2, | ||
2123 | PS7_9_FN1, PS7_9_FN2, | ||
2124 | PS7_8_FN1, PS7_8_FN2, | ||
2125 | PS7_7_FN1, PS7_7_FN2, | ||
2126 | PS7_6_FN1, PS7_6_FN2, | ||
2127 | PS7_5_FN1, PS7_5_FN2, | ||
2128 | 0, 0, | ||
2129 | 0, 0, | ||
2130 | 0, 0, | ||
2131 | 0, 0, | ||
2132 | 0, 0, } | ||
2133 | }, | ||
2134 | { PINMUX_CFG_REG("PSEL8", 0xffec0084, 16, 1) { | ||
2135 | PS8_15_FN1, PS8_15_FN2, | ||
2136 | PS8_14_FN1, PS8_14_FN2, | ||
2137 | PS8_13_FN1, PS8_13_FN2, | ||
2138 | PS8_12_FN1, PS8_12_FN2, | ||
2139 | PS8_11_FN1, PS8_11_FN2, | ||
2140 | PS8_10_FN1, PS8_10_FN2, | ||
2141 | PS8_9_FN1, PS8_9_FN2, | ||
2142 | PS8_8_FN1, PS8_8_FN2, | ||
2143 | 0, 0, | ||
2144 | 0, 0, | ||
2145 | 0, 0, | ||
2146 | 0, 0, | ||
2147 | 0, 0, | ||
2148 | 0, 0, | ||
2149 | 0, 0, | ||
2150 | 0, 0, } | ||
2151 | }, | ||
2152 | {} | ||
2153 | }; | ||
2154 | |||
2155 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2156 | { PINMUX_DATA_REG("PADR", 0xffec0034, 8) { | ||
2157 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
2158 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
2159 | }, | ||
2160 | { PINMUX_DATA_REG("PBDR", 0xffec0036, 8) { | ||
2161 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
2162 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
2163 | }, | ||
2164 | { PINMUX_DATA_REG("PCDR", 0xffec0038, 8) { | ||
2165 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
2166 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
2167 | }, | ||
2168 | { PINMUX_DATA_REG("PDDR", 0xffec003a, 8) { | ||
2169 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
2170 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
2171 | }, | ||
2172 | { PINMUX_DATA_REG("PEDR", 0xffec003c, 8) { | ||
2173 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
2174 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
2175 | }, | ||
2176 | { PINMUX_DATA_REG("PFDR", 0xffec003e, 8) { | ||
2177 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
2178 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
2179 | }, | ||
2180 | { PINMUX_DATA_REG("PGDR", 0xffec0040, 8) { | ||
2181 | PTG7_DATA, PTG6_DATA, PTG5_DATA, PTG4_DATA, | ||
2182 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
2183 | }, | ||
2184 | { PINMUX_DATA_REG("PHDR", 0xffec0042, 8) { | ||
2185 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
2186 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
2187 | }, | ||
2188 | { PINMUX_DATA_REG("PIDR", 0xffec0044, 8) { | ||
2189 | PTI7_DATA, PTI6_DATA, PTI5_DATA, PTI4_DATA, | ||
2190 | PTI3_DATA, PTI2_DATA, PTI1_DATA, PTI0_DATA } | ||
2191 | }, | ||
2192 | { PINMUX_DATA_REG("PJDR", 0xffec0046, 8) { | ||
2193 | 0, PTJ6_DATA, PTJ5_DATA, PTJ4_DATA, | ||
2194 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
2195 | }, | ||
2196 | { PINMUX_DATA_REG("PKDR", 0xffec0048, 8) { | ||
2197 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
2198 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
2199 | }, | ||
2200 | { PINMUX_DATA_REG("PLDR", 0xffec004a, 8) { | ||
2201 | 0, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
2202 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
2203 | }, | ||
2204 | { PINMUX_DATA_REG("PMDR", 0xffec004c, 8) { | ||
2205 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
2206 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
2207 | }, | ||
2208 | { PINMUX_DATA_REG("PNDR", 0xffec004e, 8) { | ||
2209 | 0, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
2210 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
2211 | }, | ||
2212 | { PINMUX_DATA_REG("PODR", 0xffec0050, 8) { | ||
2213 | PTO7_DATA, PTO6_DATA, PTO5_DATA, PTO4_DATA, | ||
2214 | PTO3_DATA, PTO2_DATA, PTO1_DATA, PTO0_DATA } | ||
2215 | }, | ||
2216 | { PINMUX_DATA_REG("PPDR", 0xffec0052, 8) { | ||
2217 | PTP7_DATA, PTP6_DATA, PTP5_DATA, PTP4_DATA, | ||
2218 | PTP3_DATA, PTP2_DATA, PTP1_DATA, PTP0_DATA } | ||
2219 | }, | ||
2220 | { PINMUX_DATA_REG("PQDR", 0xffec0054, 8) { | ||
2221 | 0, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
2222 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
2223 | }, | ||
2224 | { PINMUX_DATA_REG("PRDR", 0xffec0056, 8) { | ||
2225 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
2226 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
2227 | }, | ||
2228 | { PINMUX_DATA_REG("PSDR", 0xffec0058, 8) { | ||
2229 | PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
2230 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
2231 | }, | ||
2232 | { PINMUX_DATA_REG("PTDR", 0xffec005a, 8) { | ||
2233 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
2234 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
2235 | }, | ||
2236 | { PINMUX_DATA_REG("PUDR", 0xffec005c, 8) { | ||
2237 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
2238 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
2239 | }, | ||
2240 | { PINMUX_DATA_REG("PVDR", 0xffec005e, 8) { | ||
2241 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
2242 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
2243 | }, | ||
2244 | { PINMUX_DATA_REG("PWDR", 0xffec0060, 8) { | ||
2245 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
2246 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
2247 | }, | ||
2248 | { PINMUX_DATA_REG("PXDR", 0xffec0062, 8) { | ||
2249 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
2250 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
2251 | }, | ||
2252 | { PINMUX_DATA_REG("PYDR", 0xffec0064, 8) { | ||
2253 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
2254 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
2255 | }, | ||
2256 | { PINMUX_DATA_REG("PZDR", 0xffec0066, 8) { | ||
2257 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
2258 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
2259 | }, | ||
2260 | { }, | ||
2261 | }; | ||
2262 | |||
2263 | struct sh_pfc_soc_info sh7757_pinmux_info = { | ||
2264 | .name = "sh7757_pfc", | ||
2265 | .reserved_id = PINMUX_RESERVED, | ||
2266 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2267 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
2268 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
2269 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
2270 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2271 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2272 | |||
2273 | .first_gpio = GPIO_PTA0, | ||
2274 | .last_gpio = GPIO_FN_ON_DQ0, | ||
2275 | |||
2276 | .gpios = pinmux_gpios, | ||
2277 | .cfg_regs = pinmux_config_regs, | ||
2278 | .data_regs = pinmux_data_regs, | ||
2279 | |||
2280 | .gpio_data = pinmux_data, | ||
2281 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2282 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7785.c b/drivers/pinctrl/sh-pfc/pfc-sh7785.c new file mode 100644 index 000000000000..3b1825d925bb --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7785.c | |||
@@ -0,0 +1,1304 @@ | |||
1 | /* | ||
2 | * SH7785 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2008 Magnus Damm | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #include <linux/init.h> | ||
12 | #include <linux/kernel.h> | ||
13 | #include <cpu/sh7785.h> | ||
14 | |||
15 | #include "sh_pfc.h" | ||
16 | |||
17 | enum { | ||
18 | PINMUX_RESERVED = 0, | ||
19 | |||
20 | PINMUX_DATA_BEGIN, | ||
21 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
22 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
23 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
24 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, | ||
25 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
26 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
27 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
28 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
29 | PE5_DATA, PE4_DATA, PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
30 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
31 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
32 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
33 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
34 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
35 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
36 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
37 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA, | ||
38 | PK7_DATA, PK6_DATA, PK5_DATA, PK4_DATA, | ||
39 | PK3_DATA, PK2_DATA, PK1_DATA, PK0_DATA, | ||
40 | PL7_DATA, PL6_DATA, PL5_DATA, PL4_DATA, | ||
41 | PL3_DATA, PL2_DATA, PL1_DATA, PL0_DATA, | ||
42 | PM1_DATA, PM0_DATA, | ||
43 | PN7_DATA, PN6_DATA, PN5_DATA, PN4_DATA, | ||
44 | PN3_DATA, PN2_DATA, PN1_DATA, PN0_DATA, | ||
45 | PP5_DATA, PP4_DATA, PP3_DATA, PP2_DATA, PP1_DATA, PP0_DATA, | ||
46 | PQ4_DATA, PQ3_DATA, PQ2_DATA, PQ1_DATA, PQ0_DATA, | ||
47 | PR3_DATA, PR2_DATA, PR1_DATA, PR0_DATA, | ||
48 | PINMUX_DATA_END, | ||
49 | |||
50 | PINMUX_INPUT_BEGIN, | ||
51 | PA7_IN, PA6_IN, PA5_IN, PA4_IN, | ||
52 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
53 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
54 | PB3_IN, PB2_IN, PB1_IN, PB0_IN, | ||
55 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
56 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
57 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
58 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
59 | PE5_IN, PE4_IN, PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
60 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
61 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
62 | PG7_IN, PG6_IN, PG5_IN, PG4_IN, | ||
63 | PG3_IN, PG2_IN, PG1_IN, PG0_IN, | ||
64 | PH7_IN, PH6_IN, PH5_IN, PH4_IN, | ||
65 | PH3_IN, PH2_IN, PH1_IN, PH0_IN, | ||
66 | PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN, | ||
67 | PJ3_IN, PJ2_IN, PJ1_IN, PJ0_IN, | ||
68 | PK7_IN, PK6_IN, PK5_IN, PK4_IN, | ||
69 | PK3_IN, PK2_IN, PK1_IN, PK0_IN, | ||
70 | PL7_IN, PL6_IN, PL5_IN, PL4_IN, | ||
71 | PL3_IN, PL2_IN, PL1_IN, PL0_IN, | ||
72 | PM1_IN, PM0_IN, | ||
73 | PN7_IN, PN6_IN, PN5_IN, PN4_IN, | ||
74 | PN3_IN, PN2_IN, PN1_IN, PN0_IN, | ||
75 | PP5_IN, PP4_IN, PP3_IN, PP2_IN, PP1_IN, PP0_IN, | ||
76 | PQ4_IN, PQ3_IN, PQ2_IN, PQ1_IN, PQ0_IN, | ||
77 | PR3_IN, PR2_IN, PR1_IN, PR0_IN, | ||
78 | PINMUX_INPUT_END, | ||
79 | |||
80 | PINMUX_INPUT_PULLUP_BEGIN, | ||
81 | PA7_IN_PU, PA6_IN_PU, PA5_IN_PU, PA4_IN_PU, | ||
82 | PA3_IN_PU, PA2_IN_PU, PA1_IN_PU, PA0_IN_PU, | ||
83 | PB7_IN_PU, PB6_IN_PU, PB5_IN_PU, PB4_IN_PU, | ||
84 | PB3_IN_PU, PB2_IN_PU, PB1_IN_PU, PB0_IN_PU, | ||
85 | PC7_IN_PU, PC6_IN_PU, PC5_IN_PU, PC4_IN_PU, | ||
86 | PC3_IN_PU, PC2_IN_PU, PC1_IN_PU, PC0_IN_PU, | ||
87 | PD7_IN_PU, PD6_IN_PU, PD5_IN_PU, PD4_IN_PU, | ||
88 | PD3_IN_PU, PD2_IN_PU, PD1_IN_PU, PD0_IN_PU, | ||
89 | PE5_IN_PU, PE4_IN_PU, PE3_IN_PU, PE2_IN_PU, PE1_IN_PU, PE0_IN_PU, | ||
90 | PF7_IN_PU, PF6_IN_PU, PF5_IN_PU, PF4_IN_PU, | ||
91 | PF3_IN_PU, PF2_IN_PU, PF1_IN_PU, PF0_IN_PU, | ||
92 | PG7_IN_PU, PG6_IN_PU, PG5_IN_PU, PG4_IN_PU, | ||
93 | PG3_IN_PU, PG2_IN_PU, PG1_IN_PU, PG0_IN_PU, | ||
94 | PH7_IN_PU, PH6_IN_PU, PH5_IN_PU, PH4_IN_PU, | ||
95 | PH3_IN_PU, PH2_IN_PU, PH1_IN_PU, PH0_IN_PU, | ||
96 | PJ7_IN_PU, PJ6_IN_PU, PJ5_IN_PU, PJ4_IN_PU, | ||
97 | PJ3_IN_PU, PJ2_IN_PU, PJ1_IN_PU, PJ0_IN_PU, | ||
98 | PK7_IN_PU, PK6_IN_PU, PK5_IN_PU, PK4_IN_PU, | ||
99 | PK3_IN_PU, PK2_IN_PU, PK1_IN_PU, PK0_IN_PU, | ||
100 | PL7_IN_PU, PL6_IN_PU, PL5_IN_PU, PL4_IN_PU, | ||
101 | PL3_IN_PU, PL2_IN_PU, PL1_IN_PU, PL0_IN_PU, | ||
102 | PM1_IN_PU, PM0_IN_PU, | ||
103 | PN7_IN_PU, PN6_IN_PU, PN5_IN_PU, PN4_IN_PU, | ||
104 | PN3_IN_PU, PN2_IN_PU, PN1_IN_PU, PN0_IN_PU, | ||
105 | PP5_IN_PU, PP4_IN_PU, PP3_IN_PU, PP2_IN_PU, PP1_IN_PU, PP0_IN_PU, | ||
106 | PQ4_IN_PU, PQ3_IN_PU, PQ2_IN_PU, PQ1_IN_PU, PQ0_IN_PU, | ||
107 | PR3_IN_PU, PR2_IN_PU, PR1_IN_PU, PR0_IN_PU, | ||
108 | PINMUX_INPUT_PULLUP_END, | ||
109 | |||
110 | PINMUX_OUTPUT_BEGIN, | ||
111 | PA7_OUT, PA6_OUT, PA5_OUT, PA4_OUT, | ||
112 | PA3_OUT, PA2_OUT, PA1_OUT, PA0_OUT, | ||
113 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
114 | PB3_OUT, PB2_OUT, PB1_OUT, PB0_OUT, | ||
115 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
116 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
117 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
118 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
119 | PE5_OUT, PE4_OUT, PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
120 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
121 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
122 | PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT, | ||
123 | PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT, | ||
124 | PH7_OUT, PH6_OUT, PH5_OUT, PH4_OUT, | ||
125 | PH3_OUT, PH2_OUT, PH1_OUT, PH0_OUT, | ||
126 | PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT, | ||
127 | PJ3_OUT, PJ2_OUT, PJ1_OUT, PJ0_OUT, | ||
128 | PK7_OUT, PK6_OUT, PK5_OUT, PK4_OUT, | ||
129 | PK3_OUT, PK2_OUT, PK1_OUT, PK0_OUT, | ||
130 | PL7_OUT, PL6_OUT, PL5_OUT, PL4_OUT, | ||
131 | PL3_OUT, PL2_OUT, PL1_OUT, PL0_OUT, | ||
132 | PM1_OUT, PM0_OUT, | ||
133 | PN7_OUT, PN6_OUT, PN5_OUT, PN4_OUT, | ||
134 | PN3_OUT, PN2_OUT, PN1_OUT, PN0_OUT, | ||
135 | PP5_OUT, PP4_OUT, PP3_OUT, PP2_OUT, PP1_OUT, PP0_OUT, | ||
136 | PQ4_OUT, PQ3_OUT, PQ2_OUT, PQ1_OUT, PQ0_OUT, | ||
137 | PR3_OUT, PR2_OUT, PR1_OUT, PR0_OUT, | ||
138 | PINMUX_OUTPUT_END, | ||
139 | |||
140 | PINMUX_FUNCTION_BEGIN, | ||
141 | PA7_FN, PA6_FN, PA5_FN, PA4_FN, | ||
142 | PA3_FN, PA2_FN, PA1_FN, PA0_FN, | ||
143 | PB7_FN, PB6_FN, PB5_FN, PB4_FN, | ||
144 | PB3_FN, PB2_FN, PB1_FN, PB0_FN, | ||
145 | PC7_FN, PC6_FN, PC5_FN, PC4_FN, | ||
146 | PC3_FN, PC2_FN, PC1_FN, PC0_FN, | ||
147 | PD7_FN, PD6_FN, PD5_FN, PD4_FN, | ||
148 | PD3_FN, PD2_FN, PD1_FN, PD0_FN, | ||
149 | PE5_FN, PE4_FN, PE3_FN, PE2_FN, PE1_FN, PE0_FN, | ||
150 | PF7_FN, PF6_FN, PF5_FN, PF4_FN, | ||
151 | PF3_FN, PF2_FN, PF1_FN, PF0_FN, | ||
152 | PG7_FN, PG6_FN, PG5_FN, PG4_FN, | ||
153 | PG3_FN, PG2_FN, PG1_FN, PG0_FN, | ||
154 | PH7_FN, PH6_FN, PH5_FN, PH4_FN, | ||
155 | PH3_FN, PH2_FN, PH1_FN, PH0_FN, | ||
156 | PJ7_FN, PJ6_FN, PJ5_FN, PJ4_FN, | ||
157 | PJ3_FN, PJ2_FN, PJ1_FN, PJ0_FN, | ||
158 | PK7_FN, PK6_FN, PK5_FN, PK4_FN, | ||
159 | PK3_FN, PK2_FN, PK1_FN, PK0_FN, | ||
160 | PL7_FN, PL6_FN, PL5_FN, PL4_FN, | ||
161 | PL3_FN, PL2_FN, PL1_FN, PL0_FN, | ||
162 | PM1_FN, PM0_FN, | ||
163 | PN7_FN, PN6_FN, PN5_FN, PN4_FN, | ||
164 | PN3_FN, PN2_FN, PN1_FN, PN0_FN, | ||
165 | PP5_FN, PP4_FN, PP3_FN, PP2_FN, PP1_FN, PP0_FN, | ||
166 | PQ4_FN, PQ3_FN, PQ2_FN, PQ1_FN, PQ0_FN, | ||
167 | PR3_FN, PR2_FN, PR1_FN, PR0_FN, | ||
168 | P1MSEL15_0, P1MSEL15_1, | ||
169 | P1MSEL14_0, P1MSEL14_1, | ||
170 | P1MSEL13_0, P1MSEL13_1, | ||
171 | P1MSEL12_0, P1MSEL12_1, | ||
172 | P1MSEL11_0, P1MSEL11_1, | ||
173 | P1MSEL10_0, P1MSEL10_1, | ||
174 | P1MSEL9_0, P1MSEL9_1, | ||
175 | P1MSEL8_0, P1MSEL8_1, | ||
176 | P1MSEL7_0, P1MSEL7_1, | ||
177 | P1MSEL6_0, P1MSEL6_1, | ||
178 | P1MSEL5_0, | ||
179 | P1MSEL4_0, P1MSEL4_1, | ||
180 | P1MSEL3_0, P1MSEL3_1, | ||
181 | P1MSEL2_0, P1MSEL2_1, | ||
182 | P1MSEL1_0, P1MSEL1_1, | ||
183 | P1MSEL0_0, P1MSEL0_1, | ||
184 | P2MSEL2_0, P2MSEL2_1, | ||
185 | P2MSEL1_0, P2MSEL1_1, | ||
186 | P2MSEL0_0, P2MSEL0_1, | ||
187 | PINMUX_FUNCTION_END, | ||
188 | |||
189 | PINMUX_MARK_BEGIN, | ||
190 | D63_AD31_MARK, | ||
191 | D62_AD30_MARK, | ||
192 | D61_AD29_MARK, | ||
193 | D60_AD28_MARK, | ||
194 | D59_AD27_MARK, | ||
195 | D58_AD26_MARK, | ||
196 | D57_AD25_MARK, | ||
197 | D56_AD24_MARK, | ||
198 | D55_AD23_MARK, | ||
199 | D54_AD22_MARK, | ||
200 | D53_AD21_MARK, | ||
201 | D52_AD20_MARK, | ||
202 | D51_AD19_MARK, | ||
203 | D50_AD18_MARK, | ||
204 | D49_AD17_DB5_MARK, | ||
205 | D48_AD16_DB4_MARK, | ||
206 | D47_AD15_DB3_MARK, | ||
207 | D46_AD14_DB2_MARK, | ||
208 | D45_AD13_DB1_MARK, | ||
209 | D44_AD12_DB0_MARK, | ||
210 | D43_AD11_DG5_MARK, | ||
211 | D42_AD10_DG4_MARK, | ||
212 | D41_AD9_DG3_MARK, | ||
213 | D40_AD8_DG2_MARK, | ||
214 | D39_AD7_DG1_MARK, | ||
215 | D38_AD6_DG0_MARK, | ||
216 | D37_AD5_DR5_MARK, | ||
217 | D36_AD4_DR4_MARK, | ||
218 | D35_AD3_DR3_MARK, | ||
219 | D34_AD2_DR2_MARK, | ||
220 | D33_AD1_DR1_MARK, | ||
221 | D32_AD0_DR0_MARK, | ||
222 | REQ1_MARK, | ||
223 | REQ2_MARK, | ||
224 | REQ3_MARK, | ||
225 | GNT1_MARK, | ||
226 | GNT2_MARK, | ||
227 | GNT3_MARK, | ||
228 | MMCCLK_MARK, | ||
229 | D31_MARK, | ||
230 | D30_MARK, | ||
231 | D29_MARK, | ||
232 | D28_MARK, | ||
233 | D27_MARK, | ||
234 | D26_MARK, | ||
235 | D25_MARK, | ||
236 | D24_MARK, | ||
237 | D23_MARK, | ||
238 | D22_MARK, | ||
239 | D21_MARK, | ||
240 | D20_MARK, | ||
241 | D19_MARK, | ||
242 | D18_MARK, | ||
243 | D17_MARK, | ||
244 | D16_MARK, | ||
245 | SCIF1_SCK_MARK, | ||
246 | SCIF1_RXD_MARK, | ||
247 | SCIF1_TXD_MARK, | ||
248 | SCIF0_CTS_MARK, | ||
249 | INTD_MARK, | ||
250 | FCE_MARK, | ||
251 | SCIF0_RTS_MARK, | ||
252 | HSPI_CS_MARK, | ||
253 | FSE_MARK, | ||
254 | SCIF0_SCK_MARK, | ||
255 | HSPI_CLK_MARK, | ||
256 | FRE_MARK, | ||
257 | SCIF0_RXD_MARK, | ||
258 | HSPI_RX_MARK, | ||
259 | FRB_MARK, | ||
260 | SCIF0_TXD_MARK, | ||
261 | HSPI_TX_MARK, | ||
262 | FWE_MARK, | ||
263 | SCIF5_TXD_MARK, | ||
264 | HAC1_SYNC_MARK, | ||
265 | SSI1_WS_MARK, | ||
266 | SIOF_TXD_PJ_MARK, | ||
267 | HAC0_SDOUT_MARK, | ||
268 | SSI0_SDATA_MARK, | ||
269 | SIOF_RXD_PJ_MARK, | ||
270 | HAC0_SDIN_MARK, | ||
271 | SSI0_SCK_MARK, | ||
272 | SIOF_SYNC_PJ_MARK, | ||
273 | HAC0_SYNC_MARK, | ||
274 | SSI0_WS_MARK, | ||
275 | SIOF_MCLK_PJ_MARK, | ||
276 | HAC_RES_MARK, | ||
277 | SIOF_SCK_PJ_MARK, | ||
278 | HAC0_BITCLK_MARK, | ||
279 | SSI0_CLK_MARK, | ||
280 | HAC1_BITCLK_MARK, | ||
281 | SSI1_CLK_MARK, | ||
282 | TCLK_MARK, | ||
283 | IOIS16_MARK, | ||
284 | STATUS0_MARK, | ||
285 | DRAK0_PK3_MARK, | ||
286 | STATUS1_MARK, | ||
287 | DRAK1_PK2_MARK, | ||
288 | DACK2_MARK, | ||
289 | SCIF2_TXD_MARK, | ||
290 | MMCCMD_MARK, | ||
291 | SIOF_TXD_PK_MARK, | ||
292 | DACK3_MARK, | ||
293 | SCIF2_SCK_MARK, | ||
294 | MMCDAT_MARK, | ||
295 | SIOF_SCK_PK_MARK, | ||
296 | DREQ0_MARK, | ||
297 | DREQ1_MARK, | ||
298 | DRAK0_PK1_MARK, | ||
299 | DRAK1_PK0_MARK, | ||
300 | DREQ2_MARK, | ||
301 | INTB_MARK, | ||
302 | DREQ3_MARK, | ||
303 | INTC_MARK, | ||
304 | DRAK2_MARK, | ||
305 | CE2A_MARK, | ||
306 | IRL4_MARK, | ||
307 | FD4_MARK, | ||
308 | IRL5_MARK, | ||
309 | FD5_MARK, | ||
310 | IRL6_MARK, | ||
311 | FD6_MARK, | ||
312 | IRL7_MARK, | ||
313 | FD7_MARK, | ||
314 | DRAK3_MARK, | ||
315 | CE2B_MARK, | ||
316 | BREQ_BSACK_MARK, | ||
317 | BACK_BSREQ_MARK, | ||
318 | SCIF5_RXD_MARK, | ||
319 | HAC1_SDIN_MARK, | ||
320 | SSI1_SCK_MARK, | ||
321 | SCIF5_SCK_MARK, | ||
322 | HAC1_SDOUT_MARK, | ||
323 | SSI1_SDATA_MARK, | ||
324 | SCIF3_TXD_MARK, | ||
325 | FCLE_MARK, | ||
326 | SCIF3_RXD_MARK, | ||
327 | FALE_MARK, | ||
328 | SCIF3_SCK_MARK, | ||
329 | FD0_MARK, | ||
330 | SCIF4_TXD_MARK, | ||
331 | FD1_MARK, | ||
332 | SCIF4_RXD_MARK, | ||
333 | FD2_MARK, | ||
334 | SCIF4_SCK_MARK, | ||
335 | FD3_MARK, | ||
336 | DEVSEL_DCLKOUT_MARK, | ||
337 | STOP_CDE_MARK, | ||
338 | LOCK_ODDF_MARK, | ||
339 | TRDY_DISPL_MARK, | ||
340 | IRDY_HSYNC_MARK, | ||
341 | PCIFRAME_VSYNC_MARK, | ||
342 | INTA_MARK, | ||
343 | GNT0_GNTIN_MARK, | ||
344 | REQ0_REQOUT_MARK, | ||
345 | PERR_MARK, | ||
346 | SERR_MARK, | ||
347 | WE7_CBE3_MARK, | ||
348 | WE6_CBE2_MARK, | ||
349 | WE5_CBE1_MARK, | ||
350 | WE4_CBE0_MARK, | ||
351 | SCIF2_RXD_MARK, | ||
352 | SIOF_RXD_MARK, | ||
353 | MRESETOUT_MARK, | ||
354 | IRQOUT_MARK, | ||
355 | PINMUX_MARK_END, | ||
356 | }; | ||
357 | |||
358 | static pinmux_enum_t pinmux_data[] = { | ||
359 | |||
360 | /* PA GPIO */ | ||
361 | PINMUX_DATA(PA7_DATA, PA7_IN, PA7_OUT, PA7_IN_PU), | ||
362 | PINMUX_DATA(PA6_DATA, PA6_IN, PA6_OUT, PA6_IN_PU), | ||
363 | PINMUX_DATA(PA5_DATA, PA5_IN, PA5_OUT, PA5_IN_PU), | ||
364 | PINMUX_DATA(PA4_DATA, PA4_IN, PA4_OUT, PA4_IN_PU), | ||
365 | PINMUX_DATA(PA3_DATA, PA3_IN, PA3_OUT, PA3_IN_PU), | ||
366 | PINMUX_DATA(PA2_DATA, PA2_IN, PA2_OUT, PA2_IN_PU), | ||
367 | PINMUX_DATA(PA1_DATA, PA1_IN, PA1_OUT, PA1_IN_PU), | ||
368 | PINMUX_DATA(PA0_DATA, PA0_IN, PA0_OUT, PA0_IN_PU), | ||
369 | |||
370 | /* PB GPIO */ | ||
371 | PINMUX_DATA(PB7_DATA, PB7_IN, PB7_OUT, PB7_IN_PU), | ||
372 | PINMUX_DATA(PB6_DATA, PB6_IN, PB6_OUT, PB6_IN_PU), | ||
373 | PINMUX_DATA(PB5_DATA, PB5_IN, PB5_OUT, PB5_IN_PU), | ||
374 | PINMUX_DATA(PB4_DATA, PB4_IN, PB4_OUT, PB4_IN_PU), | ||
375 | PINMUX_DATA(PB3_DATA, PB3_IN, PB3_OUT, PB3_IN_PU), | ||
376 | PINMUX_DATA(PB2_DATA, PB2_IN, PB2_OUT, PB2_IN_PU), | ||
377 | PINMUX_DATA(PB1_DATA, PB1_IN, PB1_OUT, PB1_IN_PU), | ||
378 | PINMUX_DATA(PB0_DATA, PB0_IN, PB0_OUT, PB0_IN_PU), | ||
379 | |||
380 | /* PC GPIO */ | ||
381 | PINMUX_DATA(PC7_DATA, PC7_IN, PC7_OUT, PC7_IN_PU), | ||
382 | PINMUX_DATA(PC6_DATA, PC6_IN, PC6_OUT, PC6_IN_PU), | ||
383 | PINMUX_DATA(PC5_DATA, PC5_IN, PC5_OUT, PC5_IN_PU), | ||
384 | PINMUX_DATA(PC4_DATA, PC4_IN, PC4_OUT, PC4_IN_PU), | ||
385 | PINMUX_DATA(PC3_DATA, PC3_IN, PC3_OUT, PC3_IN_PU), | ||
386 | PINMUX_DATA(PC2_DATA, PC2_IN, PC2_OUT, PC2_IN_PU), | ||
387 | PINMUX_DATA(PC1_DATA, PC1_IN, PC1_OUT, PC1_IN_PU), | ||
388 | PINMUX_DATA(PC0_DATA, PC0_IN, PC0_OUT, PC0_IN_PU), | ||
389 | |||
390 | /* PD GPIO */ | ||
391 | PINMUX_DATA(PD7_DATA, PD7_IN, PD7_OUT, PD7_IN_PU), | ||
392 | PINMUX_DATA(PD6_DATA, PD6_IN, PD6_OUT, PD6_IN_PU), | ||
393 | PINMUX_DATA(PD5_DATA, PD5_IN, PD5_OUT, PD5_IN_PU), | ||
394 | PINMUX_DATA(PD4_DATA, PD4_IN, PD4_OUT, PD4_IN_PU), | ||
395 | PINMUX_DATA(PD3_DATA, PD3_IN, PD3_OUT, PD3_IN_PU), | ||
396 | PINMUX_DATA(PD2_DATA, PD2_IN, PD2_OUT, PD2_IN_PU), | ||
397 | PINMUX_DATA(PD1_DATA, PD1_IN, PD1_OUT, PD1_IN_PU), | ||
398 | PINMUX_DATA(PD0_DATA, PD0_IN, PD0_OUT, PD0_IN_PU), | ||
399 | |||
400 | /* PE GPIO */ | ||
401 | PINMUX_DATA(PE5_DATA, PE5_IN, PE5_OUT, PE5_IN_PU), | ||
402 | PINMUX_DATA(PE4_DATA, PE4_IN, PE4_OUT, PE4_IN_PU), | ||
403 | PINMUX_DATA(PE3_DATA, PE3_IN, PE3_OUT, PE3_IN_PU), | ||
404 | PINMUX_DATA(PE2_DATA, PE2_IN, PE2_OUT, PE2_IN_PU), | ||
405 | PINMUX_DATA(PE1_DATA, PE1_IN, PE1_OUT, PE1_IN_PU), | ||
406 | PINMUX_DATA(PE0_DATA, PE0_IN, PE0_OUT, PE0_IN_PU), | ||
407 | |||
408 | /* PF GPIO */ | ||
409 | PINMUX_DATA(PF7_DATA, PF7_IN, PF7_OUT, PF7_IN_PU), | ||
410 | PINMUX_DATA(PF6_DATA, PF6_IN, PF6_OUT, PF6_IN_PU), | ||
411 | PINMUX_DATA(PF5_DATA, PF5_IN, PF5_OUT, PF5_IN_PU), | ||
412 | PINMUX_DATA(PF4_DATA, PF4_IN, PF4_OUT, PF4_IN_PU), | ||
413 | PINMUX_DATA(PF3_DATA, PF3_IN, PF3_OUT, PF3_IN_PU), | ||
414 | PINMUX_DATA(PF2_DATA, PF2_IN, PF2_OUT, PF2_IN_PU), | ||
415 | PINMUX_DATA(PF1_DATA, PF1_IN, PF1_OUT, PF1_IN_PU), | ||
416 | PINMUX_DATA(PF0_DATA, PF0_IN, PF0_OUT, PF0_IN_PU), | ||
417 | |||
418 | /* PG GPIO */ | ||
419 | PINMUX_DATA(PG7_DATA, PG7_IN, PG7_OUT, PG7_IN_PU), | ||
420 | PINMUX_DATA(PG6_DATA, PG6_IN, PG6_OUT, PG6_IN_PU), | ||
421 | PINMUX_DATA(PG5_DATA, PG5_IN, PG5_OUT, PG5_IN_PU), | ||
422 | PINMUX_DATA(PG4_DATA, PG4_IN, PG4_OUT, PG4_IN_PU), | ||
423 | PINMUX_DATA(PG3_DATA, PG3_IN, PG3_OUT, PG3_IN_PU), | ||
424 | PINMUX_DATA(PG2_DATA, PG2_IN, PG2_OUT, PG2_IN_PU), | ||
425 | PINMUX_DATA(PG1_DATA, PG1_IN, PG1_OUT, PG1_IN_PU), | ||
426 | PINMUX_DATA(PG0_DATA, PG0_IN, PG0_OUT, PG0_IN_PU), | ||
427 | |||
428 | /* PH GPIO */ | ||
429 | PINMUX_DATA(PH7_DATA, PH7_IN, PH7_OUT, PH7_IN_PU), | ||
430 | PINMUX_DATA(PH6_DATA, PH6_IN, PH6_OUT, PH6_IN_PU), | ||
431 | PINMUX_DATA(PH5_DATA, PH5_IN, PH5_OUT, PH5_IN_PU), | ||
432 | PINMUX_DATA(PH4_DATA, PH4_IN, PH4_OUT, PH4_IN_PU), | ||
433 | PINMUX_DATA(PH3_DATA, PH3_IN, PH3_OUT, PH3_IN_PU), | ||
434 | PINMUX_DATA(PH2_DATA, PH2_IN, PH2_OUT, PH2_IN_PU), | ||
435 | PINMUX_DATA(PH1_DATA, PH1_IN, PH1_OUT, PH1_IN_PU), | ||
436 | PINMUX_DATA(PH0_DATA, PH0_IN, PH0_OUT, PH0_IN_PU), | ||
437 | |||
438 | /* PJ GPIO */ | ||
439 | PINMUX_DATA(PJ7_DATA, PJ7_IN, PJ7_OUT, PJ7_IN_PU), | ||
440 | PINMUX_DATA(PJ6_DATA, PJ6_IN, PJ6_OUT, PJ6_IN_PU), | ||
441 | PINMUX_DATA(PJ5_DATA, PJ5_IN, PJ5_OUT, PJ5_IN_PU), | ||
442 | PINMUX_DATA(PJ4_DATA, PJ4_IN, PJ4_OUT, PJ4_IN_PU), | ||
443 | PINMUX_DATA(PJ3_DATA, PJ3_IN, PJ3_OUT, PJ3_IN_PU), | ||
444 | PINMUX_DATA(PJ2_DATA, PJ2_IN, PJ2_OUT, PJ2_IN_PU), | ||
445 | PINMUX_DATA(PJ1_DATA, PJ1_IN, PJ1_OUT, PJ1_IN_PU), | ||
446 | PINMUX_DATA(PJ0_DATA, PJ0_IN, PJ0_OUT, PJ0_IN_PU), | ||
447 | |||
448 | /* PK GPIO */ | ||
449 | PINMUX_DATA(PK7_DATA, PK7_IN, PK7_OUT, PK7_IN_PU), | ||
450 | PINMUX_DATA(PK6_DATA, PK6_IN, PK6_OUT, PK6_IN_PU), | ||
451 | PINMUX_DATA(PK5_DATA, PK5_IN, PK5_OUT, PK5_IN_PU), | ||
452 | PINMUX_DATA(PK4_DATA, PK4_IN, PK4_OUT, PK4_IN_PU), | ||
453 | PINMUX_DATA(PK3_DATA, PK3_IN, PK3_OUT, PK3_IN_PU), | ||
454 | PINMUX_DATA(PK2_DATA, PK2_IN, PK2_OUT, PK2_IN_PU), | ||
455 | PINMUX_DATA(PK1_DATA, PK1_IN, PK1_OUT, PK1_IN_PU), | ||
456 | PINMUX_DATA(PK0_DATA, PK0_IN, PK0_OUT, PK0_IN_PU), | ||
457 | |||
458 | /* PL GPIO */ | ||
459 | PINMUX_DATA(PL7_DATA, PL7_IN, PL7_OUT, PL7_IN_PU), | ||
460 | PINMUX_DATA(PL6_DATA, PL6_IN, PL6_OUT, PL6_IN_PU), | ||
461 | PINMUX_DATA(PL5_DATA, PL5_IN, PL5_OUT, PL5_IN_PU), | ||
462 | PINMUX_DATA(PL4_DATA, PL4_IN, PL4_OUT, PL4_IN_PU), | ||
463 | PINMUX_DATA(PL3_DATA, PL3_IN, PL3_OUT, PL3_IN_PU), | ||
464 | PINMUX_DATA(PL2_DATA, PL2_IN, PL2_OUT, PL2_IN_PU), | ||
465 | PINMUX_DATA(PL1_DATA, PL1_IN, PL1_OUT, PL1_IN_PU), | ||
466 | PINMUX_DATA(PL0_DATA, PL0_IN, PL0_OUT, PL0_IN_PU), | ||
467 | |||
468 | /* PM GPIO */ | ||
469 | PINMUX_DATA(PM1_DATA, PM1_IN, PM1_OUT, PM1_IN_PU), | ||
470 | PINMUX_DATA(PM0_DATA, PM0_IN, PM0_OUT, PM0_IN_PU), | ||
471 | |||
472 | /* PN GPIO */ | ||
473 | PINMUX_DATA(PN7_DATA, PN7_IN, PN7_OUT, PN7_IN_PU), | ||
474 | PINMUX_DATA(PN6_DATA, PN6_IN, PN6_OUT, PN6_IN_PU), | ||
475 | PINMUX_DATA(PN5_DATA, PN5_IN, PN5_OUT, PN5_IN_PU), | ||
476 | PINMUX_DATA(PN4_DATA, PN4_IN, PN4_OUT, PN4_IN_PU), | ||
477 | PINMUX_DATA(PN3_DATA, PN3_IN, PN3_OUT, PN3_IN_PU), | ||
478 | PINMUX_DATA(PN2_DATA, PN2_IN, PN2_OUT, PN2_IN_PU), | ||
479 | PINMUX_DATA(PN1_DATA, PN1_IN, PN1_OUT, PN1_IN_PU), | ||
480 | PINMUX_DATA(PN0_DATA, PN0_IN, PN0_OUT, PN0_IN_PU), | ||
481 | |||
482 | /* PP GPIO */ | ||
483 | PINMUX_DATA(PP5_DATA, PP5_IN, PP5_OUT, PP5_IN_PU), | ||
484 | PINMUX_DATA(PP4_DATA, PP4_IN, PP4_OUT, PP4_IN_PU), | ||
485 | PINMUX_DATA(PP3_DATA, PP3_IN, PP3_OUT, PP3_IN_PU), | ||
486 | PINMUX_DATA(PP2_DATA, PP2_IN, PP2_OUT, PP2_IN_PU), | ||
487 | PINMUX_DATA(PP1_DATA, PP1_IN, PP1_OUT, PP1_IN_PU), | ||
488 | PINMUX_DATA(PP0_DATA, PP0_IN, PP0_OUT, PP0_IN_PU), | ||
489 | |||
490 | /* PQ GPIO */ | ||
491 | PINMUX_DATA(PQ4_DATA, PQ4_IN, PQ4_OUT, PQ4_IN_PU), | ||
492 | PINMUX_DATA(PQ3_DATA, PQ3_IN, PQ3_OUT, PQ3_IN_PU), | ||
493 | PINMUX_DATA(PQ2_DATA, PQ2_IN, PQ2_OUT, PQ2_IN_PU), | ||
494 | PINMUX_DATA(PQ1_DATA, PQ1_IN, PQ1_OUT, PQ1_IN_PU), | ||
495 | PINMUX_DATA(PQ0_DATA, PQ0_IN, PQ0_OUT, PQ0_IN_PU), | ||
496 | |||
497 | /* PR GPIO */ | ||
498 | PINMUX_DATA(PR3_DATA, PR3_IN, PR3_OUT, PR3_IN_PU), | ||
499 | PINMUX_DATA(PR2_DATA, PR2_IN, PR2_OUT, PR2_IN_PU), | ||
500 | PINMUX_DATA(PR1_DATA, PR1_IN, PR1_OUT, PR1_IN_PU), | ||
501 | PINMUX_DATA(PR0_DATA, PR0_IN, PR0_OUT, PR0_IN_PU), | ||
502 | |||
503 | /* PA FN */ | ||
504 | PINMUX_DATA(D63_AD31_MARK, PA7_FN), | ||
505 | PINMUX_DATA(D62_AD30_MARK, PA6_FN), | ||
506 | PINMUX_DATA(D61_AD29_MARK, PA5_FN), | ||
507 | PINMUX_DATA(D60_AD28_MARK, PA4_FN), | ||
508 | PINMUX_DATA(D59_AD27_MARK, PA3_FN), | ||
509 | PINMUX_DATA(D58_AD26_MARK, PA2_FN), | ||
510 | PINMUX_DATA(D57_AD25_MARK, PA1_FN), | ||
511 | PINMUX_DATA(D56_AD24_MARK, PA0_FN), | ||
512 | |||
513 | /* PB FN */ | ||
514 | PINMUX_DATA(D55_AD23_MARK, PB7_FN), | ||
515 | PINMUX_DATA(D54_AD22_MARK, PB6_FN), | ||
516 | PINMUX_DATA(D53_AD21_MARK, PB5_FN), | ||
517 | PINMUX_DATA(D52_AD20_MARK, PB4_FN), | ||
518 | PINMUX_DATA(D51_AD19_MARK, PB3_FN), | ||
519 | PINMUX_DATA(D50_AD18_MARK, PB2_FN), | ||
520 | PINMUX_DATA(D49_AD17_DB5_MARK, PB1_FN), | ||
521 | PINMUX_DATA(D48_AD16_DB4_MARK, PB0_FN), | ||
522 | |||
523 | /* PC FN */ | ||
524 | PINMUX_DATA(D47_AD15_DB3_MARK, PC7_FN), | ||
525 | PINMUX_DATA(D46_AD14_DB2_MARK, PC6_FN), | ||
526 | PINMUX_DATA(D45_AD13_DB1_MARK, PC5_FN), | ||
527 | PINMUX_DATA(D44_AD12_DB0_MARK, PC4_FN), | ||
528 | PINMUX_DATA(D43_AD11_DG5_MARK, PC3_FN), | ||
529 | PINMUX_DATA(D42_AD10_DG4_MARK, PC2_FN), | ||
530 | PINMUX_DATA(D41_AD9_DG3_MARK, PC1_FN), | ||
531 | PINMUX_DATA(D40_AD8_DG2_MARK, PC0_FN), | ||
532 | |||
533 | /* PD FN */ | ||
534 | PINMUX_DATA(D39_AD7_DG1_MARK, PD7_FN), | ||
535 | PINMUX_DATA(D38_AD6_DG0_MARK, PD6_FN), | ||
536 | PINMUX_DATA(D37_AD5_DR5_MARK, PD5_FN), | ||
537 | PINMUX_DATA(D36_AD4_DR4_MARK, PD4_FN), | ||
538 | PINMUX_DATA(D35_AD3_DR3_MARK, PD3_FN), | ||
539 | PINMUX_DATA(D34_AD2_DR2_MARK, PD2_FN), | ||
540 | PINMUX_DATA(D33_AD1_DR1_MARK, PD1_FN), | ||
541 | PINMUX_DATA(D32_AD0_DR0_MARK, PD0_FN), | ||
542 | |||
543 | /* PE FN */ | ||
544 | PINMUX_DATA(REQ1_MARK, PE5_FN), | ||
545 | PINMUX_DATA(REQ2_MARK, PE4_FN), | ||
546 | PINMUX_DATA(REQ3_MARK, P2MSEL0_0, PE3_FN), | ||
547 | PINMUX_DATA(GNT1_MARK, PE2_FN), | ||
548 | PINMUX_DATA(GNT2_MARK, PE1_FN), | ||
549 | PINMUX_DATA(GNT3_MARK, P2MSEL0_0, PE0_FN), | ||
550 | PINMUX_DATA(MMCCLK_MARK, P2MSEL0_1, PE0_FN), | ||
551 | |||
552 | /* PF FN */ | ||
553 | PINMUX_DATA(D31_MARK, PF7_FN), | ||
554 | PINMUX_DATA(D30_MARK, PF6_FN), | ||
555 | PINMUX_DATA(D29_MARK, PF5_FN), | ||
556 | PINMUX_DATA(D28_MARK, PF4_FN), | ||
557 | PINMUX_DATA(D27_MARK, PF3_FN), | ||
558 | PINMUX_DATA(D26_MARK, PF2_FN), | ||
559 | PINMUX_DATA(D25_MARK, PF1_FN), | ||
560 | PINMUX_DATA(D24_MARK, PF0_FN), | ||
561 | |||
562 | /* PF FN */ | ||
563 | PINMUX_DATA(D23_MARK, PG7_FN), | ||
564 | PINMUX_DATA(D22_MARK, PG6_FN), | ||
565 | PINMUX_DATA(D21_MARK, PG5_FN), | ||
566 | PINMUX_DATA(D20_MARK, PG4_FN), | ||
567 | PINMUX_DATA(D19_MARK, PG3_FN), | ||
568 | PINMUX_DATA(D18_MARK, PG2_FN), | ||
569 | PINMUX_DATA(D17_MARK, PG1_FN), | ||
570 | PINMUX_DATA(D16_MARK, PG0_FN), | ||
571 | |||
572 | /* PH FN */ | ||
573 | PINMUX_DATA(SCIF1_SCK_MARK, PH7_FN), | ||
574 | PINMUX_DATA(SCIF1_RXD_MARK, PH6_FN), | ||
575 | PINMUX_DATA(SCIF1_TXD_MARK, PH5_FN), | ||
576 | PINMUX_DATA(SCIF0_CTS_MARK, PH4_FN), | ||
577 | PINMUX_DATA(INTD_MARK, P1MSEL7_1, PH4_FN), | ||
578 | PINMUX_DATA(FCE_MARK, P1MSEL8_1, P1MSEL7_0, PH4_FN), | ||
579 | PINMUX_DATA(SCIF0_RTS_MARK, P1MSEL8_0, P1MSEL7_0, PH3_FN), | ||
580 | PINMUX_DATA(HSPI_CS_MARK, P1MSEL8_0, P1MSEL7_1, PH3_FN), | ||
581 | PINMUX_DATA(FSE_MARK, P1MSEL8_1, P1MSEL7_0, PH3_FN), | ||
582 | PINMUX_DATA(SCIF0_SCK_MARK, P1MSEL8_0, P1MSEL7_0, PH2_FN), | ||
583 | PINMUX_DATA(HSPI_CLK_MARK, P1MSEL8_0, P1MSEL7_1, PH2_FN), | ||
584 | PINMUX_DATA(FRE_MARK, P1MSEL8_1, P1MSEL7_0, PH2_FN), | ||
585 | PINMUX_DATA(SCIF0_RXD_MARK, P1MSEL8_0, P1MSEL7_0, PH1_FN), | ||
586 | PINMUX_DATA(HSPI_RX_MARK, P1MSEL8_0, P1MSEL7_1, PH1_FN), | ||
587 | PINMUX_DATA(FRB_MARK, P1MSEL8_1, P1MSEL7_0, PH1_FN), | ||
588 | PINMUX_DATA(SCIF0_TXD_MARK, P1MSEL8_0, P1MSEL7_0, PH0_FN), | ||
589 | PINMUX_DATA(HSPI_TX_MARK, P1MSEL8_0, P1MSEL7_1, PH0_FN), | ||
590 | PINMUX_DATA(FWE_MARK, P1MSEL8_1, P1MSEL7_0, PH0_FN), | ||
591 | |||
592 | /* PJ FN */ | ||
593 | PINMUX_DATA(SCIF5_TXD_MARK, P1MSEL2_0, P1MSEL1_0, PJ7_FN), | ||
594 | PINMUX_DATA(HAC1_SYNC_MARK, P1MSEL2_0, P1MSEL1_1, PJ7_FN), | ||
595 | PINMUX_DATA(SSI1_WS_MARK, P1MSEL2_1, P1MSEL1_0, PJ7_FN), | ||
596 | PINMUX_DATA(SIOF_TXD_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ6_FN), | ||
597 | PINMUX_DATA(HAC0_SDOUT_MARK, P1MSEL4_0, P1MSEL3_1, PJ6_FN), | ||
598 | PINMUX_DATA(SSI0_SDATA_MARK, P1MSEL4_1, P1MSEL3_0, PJ6_FN), | ||
599 | PINMUX_DATA(SIOF_RXD_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ5_FN), | ||
600 | PINMUX_DATA(HAC0_SDIN_MARK, P1MSEL4_0, P1MSEL3_1, PJ5_FN), | ||
601 | PINMUX_DATA(SSI0_SCK_MARK, P1MSEL4_1, P1MSEL3_0, PJ5_FN), | ||
602 | PINMUX_DATA(SIOF_SYNC_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ4_FN), | ||
603 | PINMUX_DATA(HAC0_SYNC_MARK, P1MSEL4_0, P1MSEL3_1, PJ4_FN), | ||
604 | PINMUX_DATA(SSI0_WS_MARK, P1MSEL4_1, P1MSEL3_0, PJ4_FN), | ||
605 | PINMUX_DATA(SIOF_MCLK_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ3_FN), | ||
606 | PINMUX_DATA(HAC_RES_MARK, P1MSEL4_0, P1MSEL3_1, PJ3_FN), | ||
607 | PINMUX_DATA(SIOF_SCK_PJ_MARK, P2MSEL1_0, P1MSEL4_0, P1MSEL3_0, PJ2_FN), | ||
608 | PINMUX_DATA(HAC0_BITCLK_MARK, P1MSEL4_0, P1MSEL3_1, PJ2_FN), | ||
609 | PINMUX_DATA(SSI0_CLK_MARK, P1MSEL4_1, P1MSEL3_0, PJ2_FN), | ||
610 | PINMUX_DATA(HAC1_BITCLK_MARK, P1MSEL2_0, PJ1_FN), | ||
611 | PINMUX_DATA(SSI1_CLK_MARK, P1MSEL2_1, P1MSEL1_0, PJ1_FN), | ||
612 | PINMUX_DATA(TCLK_MARK, P1MSEL9_0, PJ0_FN), | ||
613 | PINMUX_DATA(IOIS16_MARK, P1MSEL9_1, PJ0_FN), | ||
614 | |||
615 | /* PK FN */ | ||
616 | PINMUX_DATA(STATUS0_MARK, P1MSEL15_0, PK7_FN), | ||
617 | PINMUX_DATA(DRAK0_PK3_MARK, P1MSEL15_1, PK7_FN), | ||
618 | PINMUX_DATA(STATUS1_MARK, P1MSEL15_0, PK6_FN), | ||
619 | PINMUX_DATA(DRAK1_PK2_MARK, P1MSEL15_1, PK6_FN), | ||
620 | PINMUX_DATA(DACK2_MARK, P1MSEL12_0, P1MSEL11_0, PK5_FN), | ||
621 | PINMUX_DATA(SCIF2_TXD_MARK, P1MSEL12_1, P1MSEL11_0, PK5_FN), | ||
622 | PINMUX_DATA(MMCCMD_MARK, P1MSEL12_1, P1MSEL11_1, PK5_FN), | ||
623 | PINMUX_DATA(SIOF_TXD_PK_MARK, P2MSEL1_1, | ||
624 | P1MSEL12_0, P1MSEL11_1, PK5_FN), | ||
625 | PINMUX_DATA(DACK3_MARK, P1MSEL12_0, P1MSEL11_0, PK4_FN), | ||
626 | PINMUX_DATA(SCIF2_SCK_MARK, P1MSEL12_1, P1MSEL11_0, PK4_FN), | ||
627 | PINMUX_DATA(MMCDAT_MARK, P1MSEL12_1, P1MSEL11_1, PK4_FN), | ||
628 | PINMUX_DATA(SIOF_SCK_PK_MARK, P2MSEL1_1, | ||
629 | P1MSEL12_0, P1MSEL11_1, PK4_FN), | ||
630 | PINMUX_DATA(DREQ0_MARK, PK3_FN), | ||
631 | PINMUX_DATA(DREQ1_MARK, PK2_FN), | ||
632 | PINMUX_DATA(DRAK0_PK1_MARK, PK1_FN), | ||
633 | PINMUX_DATA(DRAK1_PK0_MARK, PK0_FN), | ||
634 | |||
635 | /* PL FN */ | ||
636 | PINMUX_DATA(DREQ2_MARK, P1MSEL13_0, PL7_FN), | ||
637 | PINMUX_DATA(INTB_MARK, P1MSEL13_1, PL7_FN), | ||
638 | PINMUX_DATA(DREQ3_MARK, P1MSEL13_0, PL6_FN), | ||
639 | PINMUX_DATA(INTC_MARK, P1MSEL13_1, PL6_FN), | ||
640 | PINMUX_DATA(DRAK2_MARK, P1MSEL10_0, PL5_FN), | ||
641 | PINMUX_DATA(CE2A_MARK, P1MSEL10_1, PL5_FN), | ||
642 | PINMUX_DATA(IRL4_MARK, P1MSEL14_0, PL4_FN), | ||
643 | PINMUX_DATA(FD4_MARK, P1MSEL14_1, PL4_FN), | ||
644 | PINMUX_DATA(IRL5_MARK, P1MSEL14_0, PL3_FN), | ||
645 | PINMUX_DATA(FD5_MARK, P1MSEL14_1, PL3_FN), | ||
646 | PINMUX_DATA(IRL6_MARK, P1MSEL14_0, PL2_FN), | ||
647 | PINMUX_DATA(FD6_MARK, P1MSEL14_1, PL2_FN), | ||
648 | PINMUX_DATA(IRL7_MARK, P1MSEL14_0, PL1_FN), | ||
649 | PINMUX_DATA(FD7_MARK, P1MSEL14_1, PL1_FN), | ||
650 | PINMUX_DATA(DRAK3_MARK, P1MSEL10_0, PL0_FN), | ||
651 | PINMUX_DATA(CE2B_MARK, P1MSEL10_1, PL0_FN), | ||
652 | |||
653 | /* PM FN */ | ||
654 | PINMUX_DATA(BREQ_BSACK_MARK, PM1_FN), | ||
655 | PINMUX_DATA(BACK_BSREQ_MARK, PM0_FN), | ||
656 | |||
657 | /* PN FN */ | ||
658 | PINMUX_DATA(SCIF5_RXD_MARK, P1MSEL2_0, P1MSEL1_0, PN7_FN), | ||
659 | PINMUX_DATA(HAC1_SDIN_MARK, P1MSEL2_0, P1MSEL1_1, PN7_FN), | ||
660 | PINMUX_DATA(SSI1_SCK_MARK, P1MSEL2_1, P1MSEL1_0, PN7_FN), | ||
661 | PINMUX_DATA(SCIF5_SCK_MARK, P1MSEL2_0, P1MSEL1_0, PN6_FN), | ||
662 | PINMUX_DATA(HAC1_SDOUT_MARK, P1MSEL2_0, P1MSEL1_1, PN6_FN), | ||
663 | PINMUX_DATA(SSI1_SDATA_MARK, P1MSEL2_1, P1MSEL1_0, PN6_FN), | ||
664 | PINMUX_DATA(SCIF3_TXD_MARK, P1MSEL0_0, PN5_FN), | ||
665 | PINMUX_DATA(FCLE_MARK, P1MSEL0_1, PN5_FN), | ||
666 | PINMUX_DATA(SCIF3_RXD_MARK, P1MSEL0_0, PN4_FN), | ||
667 | PINMUX_DATA(FALE_MARK, P1MSEL0_1, PN4_FN), | ||
668 | PINMUX_DATA(SCIF3_SCK_MARK, P1MSEL0_0, PN3_FN), | ||
669 | PINMUX_DATA(FD0_MARK, P1MSEL0_1, PN3_FN), | ||
670 | PINMUX_DATA(SCIF4_TXD_MARK, P1MSEL0_0, PN2_FN), | ||
671 | PINMUX_DATA(FD1_MARK, P1MSEL0_1, PN2_FN), | ||
672 | PINMUX_DATA(SCIF4_RXD_MARK, P1MSEL0_0, PN1_FN), | ||
673 | PINMUX_DATA(FD2_MARK, P1MSEL0_1, PN1_FN), | ||
674 | PINMUX_DATA(SCIF4_SCK_MARK, P1MSEL0_0, PN0_FN), | ||
675 | PINMUX_DATA(FD3_MARK, P1MSEL0_1, PN0_FN), | ||
676 | |||
677 | /* PP FN */ | ||
678 | PINMUX_DATA(DEVSEL_DCLKOUT_MARK, PP5_FN), | ||
679 | PINMUX_DATA(STOP_CDE_MARK, PP4_FN), | ||
680 | PINMUX_DATA(LOCK_ODDF_MARK, PP3_FN), | ||
681 | PINMUX_DATA(TRDY_DISPL_MARK, PP2_FN), | ||
682 | PINMUX_DATA(IRDY_HSYNC_MARK, PP1_FN), | ||
683 | PINMUX_DATA(PCIFRAME_VSYNC_MARK, PP0_FN), | ||
684 | |||
685 | /* PQ FN */ | ||
686 | PINMUX_DATA(INTA_MARK, PQ4_FN), | ||
687 | PINMUX_DATA(GNT0_GNTIN_MARK, PQ3_FN), | ||
688 | PINMUX_DATA(REQ0_REQOUT_MARK, PQ2_FN), | ||
689 | PINMUX_DATA(PERR_MARK, PQ1_FN), | ||
690 | PINMUX_DATA(SERR_MARK, PQ0_FN), | ||
691 | |||
692 | /* PR FN */ | ||
693 | PINMUX_DATA(WE7_CBE3_MARK, PR3_FN), | ||
694 | PINMUX_DATA(WE6_CBE2_MARK, PR2_FN), | ||
695 | PINMUX_DATA(WE5_CBE1_MARK, PR1_FN), | ||
696 | PINMUX_DATA(WE4_CBE0_MARK, PR0_FN), | ||
697 | |||
698 | /* MISC FN */ | ||
699 | PINMUX_DATA(SCIF2_RXD_MARK, P1MSEL6_0, P1MSEL5_0), | ||
700 | PINMUX_DATA(SIOF_RXD_MARK, P2MSEL1_1, P1MSEL6_1, P1MSEL5_0), | ||
701 | PINMUX_DATA(MRESETOUT_MARK, P2MSEL2_0), | ||
702 | PINMUX_DATA(IRQOUT_MARK, P2MSEL2_1), | ||
703 | }; | ||
704 | |||
705 | static struct pinmux_gpio pinmux_gpios[] = { | ||
706 | /* PA */ | ||
707 | PINMUX_GPIO(GPIO_PA7, PA7_DATA), | ||
708 | PINMUX_GPIO(GPIO_PA6, PA6_DATA), | ||
709 | PINMUX_GPIO(GPIO_PA5, PA5_DATA), | ||
710 | PINMUX_GPIO(GPIO_PA4, PA4_DATA), | ||
711 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
712 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
713 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
714 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
715 | |||
716 | /* PB */ | ||
717 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
718 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
719 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
720 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
721 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
722 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
723 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
724 | PINMUX_GPIO(GPIO_PB0, PB0_DATA), | ||
725 | |||
726 | /* PC */ | ||
727 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
728 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
729 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
730 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
731 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
732 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
733 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
734 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
735 | |||
736 | /* PD */ | ||
737 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
738 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
739 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
740 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
741 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
742 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
743 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
744 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
745 | |||
746 | /* PE */ | ||
747 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
748 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
749 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
750 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
751 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
752 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
753 | |||
754 | /* PF */ | ||
755 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
756 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
757 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
758 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
759 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
760 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
761 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
762 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
763 | |||
764 | /* PG */ | ||
765 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
766 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
767 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
768 | PINMUX_GPIO(GPIO_PG4, PG4_DATA), | ||
769 | PINMUX_GPIO(GPIO_PG3, PG3_DATA), | ||
770 | PINMUX_GPIO(GPIO_PG2, PG2_DATA), | ||
771 | PINMUX_GPIO(GPIO_PG1, PG1_DATA), | ||
772 | PINMUX_GPIO(GPIO_PG0, PG0_DATA), | ||
773 | |||
774 | /* PH */ | ||
775 | PINMUX_GPIO(GPIO_PH7, PH7_DATA), | ||
776 | PINMUX_GPIO(GPIO_PH6, PH6_DATA), | ||
777 | PINMUX_GPIO(GPIO_PH5, PH5_DATA), | ||
778 | PINMUX_GPIO(GPIO_PH4, PH4_DATA), | ||
779 | PINMUX_GPIO(GPIO_PH3, PH3_DATA), | ||
780 | PINMUX_GPIO(GPIO_PH2, PH2_DATA), | ||
781 | PINMUX_GPIO(GPIO_PH1, PH1_DATA), | ||
782 | PINMUX_GPIO(GPIO_PH0, PH0_DATA), | ||
783 | |||
784 | /* PJ */ | ||
785 | PINMUX_GPIO(GPIO_PJ7, PJ7_DATA), | ||
786 | PINMUX_GPIO(GPIO_PJ6, PJ6_DATA), | ||
787 | PINMUX_GPIO(GPIO_PJ5, PJ5_DATA), | ||
788 | PINMUX_GPIO(GPIO_PJ4, PJ4_DATA), | ||
789 | PINMUX_GPIO(GPIO_PJ3, PJ3_DATA), | ||
790 | PINMUX_GPIO(GPIO_PJ2, PJ2_DATA), | ||
791 | PINMUX_GPIO(GPIO_PJ1, PJ1_DATA), | ||
792 | PINMUX_GPIO(GPIO_PJ0, PJ0_DATA), | ||
793 | |||
794 | /* PK */ | ||
795 | PINMUX_GPIO(GPIO_PK7, PK7_DATA), | ||
796 | PINMUX_GPIO(GPIO_PK6, PK6_DATA), | ||
797 | PINMUX_GPIO(GPIO_PK5, PK5_DATA), | ||
798 | PINMUX_GPIO(GPIO_PK4, PK4_DATA), | ||
799 | PINMUX_GPIO(GPIO_PK3, PK3_DATA), | ||
800 | PINMUX_GPIO(GPIO_PK2, PK2_DATA), | ||
801 | PINMUX_GPIO(GPIO_PK1, PK1_DATA), | ||
802 | PINMUX_GPIO(GPIO_PK0, PK0_DATA), | ||
803 | |||
804 | /* PL */ | ||
805 | PINMUX_GPIO(GPIO_PL7, PL7_DATA), | ||
806 | PINMUX_GPIO(GPIO_PL6, PL6_DATA), | ||
807 | PINMUX_GPIO(GPIO_PL5, PL5_DATA), | ||
808 | PINMUX_GPIO(GPIO_PL4, PL4_DATA), | ||
809 | PINMUX_GPIO(GPIO_PL3, PL3_DATA), | ||
810 | PINMUX_GPIO(GPIO_PL2, PL2_DATA), | ||
811 | PINMUX_GPIO(GPIO_PL1, PL1_DATA), | ||
812 | PINMUX_GPIO(GPIO_PL0, PL0_DATA), | ||
813 | |||
814 | /* PM */ | ||
815 | PINMUX_GPIO(GPIO_PM1, PM1_DATA), | ||
816 | PINMUX_GPIO(GPIO_PM0, PM0_DATA), | ||
817 | |||
818 | /* PN */ | ||
819 | PINMUX_GPIO(GPIO_PN7, PN7_DATA), | ||
820 | PINMUX_GPIO(GPIO_PN6, PN6_DATA), | ||
821 | PINMUX_GPIO(GPIO_PN5, PN5_DATA), | ||
822 | PINMUX_GPIO(GPIO_PN4, PN4_DATA), | ||
823 | PINMUX_GPIO(GPIO_PN3, PN3_DATA), | ||
824 | PINMUX_GPIO(GPIO_PN2, PN2_DATA), | ||
825 | PINMUX_GPIO(GPIO_PN1, PN1_DATA), | ||
826 | PINMUX_GPIO(GPIO_PN0, PN0_DATA), | ||
827 | |||
828 | /* PP */ | ||
829 | PINMUX_GPIO(GPIO_PP5, PP5_DATA), | ||
830 | PINMUX_GPIO(GPIO_PP4, PP4_DATA), | ||
831 | PINMUX_GPIO(GPIO_PP3, PP3_DATA), | ||
832 | PINMUX_GPIO(GPIO_PP2, PP2_DATA), | ||
833 | PINMUX_GPIO(GPIO_PP1, PP1_DATA), | ||
834 | PINMUX_GPIO(GPIO_PP0, PP0_DATA), | ||
835 | |||
836 | /* PQ */ | ||
837 | PINMUX_GPIO(GPIO_PQ4, PQ4_DATA), | ||
838 | PINMUX_GPIO(GPIO_PQ3, PQ3_DATA), | ||
839 | PINMUX_GPIO(GPIO_PQ2, PQ2_DATA), | ||
840 | PINMUX_GPIO(GPIO_PQ1, PQ1_DATA), | ||
841 | PINMUX_GPIO(GPIO_PQ0, PQ0_DATA), | ||
842 | |||
843 | /* PR */ | ||
844 | PINMUX_GPIO(GPIO_PR3, PR3_DATA), | ||
845 | PINMUX_GPIO(GPIO_PR2, PR2_DATA), | ||
846 | PINMUX_GPIO(GPIO_PR1, PR1_DATA), | ||
847 | PINMUX_GPIO(GPIO_PR0, PR0_DATA), | ||
848 | |||
849 | /* FN */ | ||
850 | PINMUX_GPIO(GPIO_FN_D63_AD31, D63_AD31_MARK), | ||
851 | PINMUX_GPIO(GPIO_FN_D62_AD30, D62_AD30_MARK), | ||
852 | PINMUX_GPIO(GPIO_FN_D61_AD29, D61_AD29_MARK), | ||
853 | PINMUX_GPIO(GPIO_FN_D60_AD28, D60_AD28_MARK), | ||
854 | PINMUX_GPIO(GPIO_FN_D59_AD27, D59_AD27_MARK), | ||
855 | PINMUX_GPIO(GPIO_FN_D58_AD26, D58_AD26_MARK), | ||
856 | PINMUX_GPIO(GPIO_FN_D57_AD25, D57_AD25_MARK), | ||
857 | PINMUX_GPIO(GPIO_FN_D56_AD24, D56_AD24_MARK), | ||
858 | PINMUX_GPIO(GPIO_FN_D55_AD23, D55_AD23_MARK), | ||
859 | PINMUX_GPIO(GPIO_FN_D54_AD22, D54_AD22_MARK), | ||
860 | PINMUX_GPIO(GPIO_FN_D53_AD21, D53_AD21_MARK), | ||
861 | PINMUX_GPIO(GPIO_FN_D52_AD20, D52_AD20_MARK), | ||
862 | PINMUX_GPIO(GPIO_FN_D51_AD19, D51_AD19_MARK), | ||
863 | PINMUX_GPIO(GPIO_FN_D50_AD18, D50_AD18_MARK), | ||
864 | PINMUX_GPIO(GPIO_FN_D49_AD17_DB5, D49_AD17_DB5_MARK), | ||
865 | PINMUX_GPIO(GPIO_FN_D48_AD16_DB4, D48_AD16_DB4_MARK), | ||
866 | PINMUX_GPIO(GPIO_FN_D47_AD15_DB3, D47_AD15_DB3_MARK), | ||
867 | PINMUX_GPIO(GPIO_FN_D46_AD14_DB2, D46_AD14_DB2_MARK), | ||
868 | PINMUX_GPIO(GPIO_FN_D45_AD13_DB1, D45_AD13_DB1_MARK), | ||
869 | PINMUX_GPIO(GPIO_FN_D44_AD12_DB0, D44_AD12_DB0_MARK), | ||
870 | PINMUX_GPIO(GPIO_FN_D43_AD11_DG5, D43_AD11_DG5_MARK), | ||
871 | PINMUX_GPIO(GPIO_FN_D42_AD10_DG4, D42_AD10_DG4_MARK), | ||
872 | PINMUX_GPIO(GPIO_FN_D41_AD9_DG3, D41_AD9_DG3_MARK), | ||
873 | PINMUX_GPIO(GPIO_FN_D40_AD8_DG2, D40_AD8_DG2_MARK), | ||
874 | PINMUX_GPIO(GPIO_FN_D39_AD7_DG1, D39_AD7_DG1_MARK), | ||
875 | PINMUX_GPIO(GPIO_FN_D38_AD6_DG0, D38_AD6_DG0_MARK), | ||
876 | PINMUX_GPIO(GPIO_FN_D37_AD5_DR5, D37_AD5_DR5_MARK), | ||
877 | PINMUX_GPIO(GPIO_FN_D36_AD4_DR4, D36_AD4_DR4_MARK), | ||
878 | PINMUX_GPIO(GPIO_FN_D35_AD3_DR3, D35_AD3_DR3_MARK), | ||
879 | PINMUX_GPIO(GPIO_FN_D34_AD2_DR2, D34_AD2_DR2_MARK), | ||
880 | PINMUX_GPIO(GPIO_FN_D33_AD1_DR1, D33_AD1_DR1_MARK), | ||
881 | PINMUX_GPIO(GPIO_FN_D32_AD0_DR0, D32_AD0_DR0_MARK), | ||
882 | PINMUX_GPIO(GPIO_FN_REQ1, REQ1_MARK), | ||
883 | PINMUX_GPIO(GPIO_FN_REQ2, REQ2_MARK), | ||
884 | PINMUX_GPIO(GPIO_FN_REQ3, REQ3_MARK), | ||
885 | PINMUX_GPIO(GPIO_FN_GNT1, GNT1_MARK), | ||
886 | PINMUX_GPIO(GPIO_FN_GNT2, GNT2_MARK), | ||
887 | PINMUX_GPIO(GPIO_FN_GNT3, GNT3_MARK), | ||
888 | PINMUX_GPIO(GPIO_FN_MMCCLK, MMCCLK_MARK), | ||
889 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
890 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
891 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
892 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
893 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
894 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
895 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
896 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
897 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
898 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
899 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
900 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
901 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
902 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
903 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
904 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
905 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
906 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
907 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
908 | PINMUX_GPIO(GPIO_FN_SCIF0_CTS, SCIF0_CTS_MARK), | ||
909 | PINMUX_GPIO(GPIO_FN_INTD, INTD_MARK), | ||
910 | PINMUX_GPIO(GPIO_FN_FCE, FCE_MARK), | ||
911 | PINMUX_GPIO(GPIO_FN_SCIF0_RTS, SCIF0_RTS_MARK), | ||
912 | PINMUX_GPIO(GPIO_FN_HSPI_CS, HSPI_CS_MARK), | ||
913 | PINMUX_GPIO(GPIO_FN_FSE, FSE_MARK), | ||
914 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
915 | PINMUX_GPIO(GPIO_FN_HSPI_CLK, HSPI_CLK_MARK), | ||
916 | PINMUX_GPIO(GPIO_FN_FRE, FRE_MARK), | ||
917 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
918 | PINMUX_GPIO(GPIO_FN_HSPI_RX, HSPI_RX_MARK), | ||
919 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
920 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
921 | PINMUX_GPIO(GPIO_FN_HSPI_TX, HSPI_TX_MARK), | ||
922 | PINMUX_GPIO(GPIO_FN_FWE, FWE_MARK), | ||
923 | PINMUX_GPIO(GPIO_FN_SCIF5_TXD, SCIF5_TXD_MARK), | ||
924 | PINMUX_GPIO(GPIO_FN_HAC1_SYNC, HAC1_SYNC_MARK), | ||
925 | PINMUX_GPIO(GPIO_FN_SSI1_WS, SSI1_WS_MARK), | ||
926 | PINMUX_GPIO(GPIO_FN_SIOF_TXD_PJ, SIOF_TXD_PJ_MARK), | ||
927 | PINMUX_GPIO(GPIO_FN_HAC0_SDOUT, HAC0_SDOUT_MARK), | ||
928 | PINMUX_GPIO(GPIO_FN_SSI0_SDATA, SSI0_SDATA_MARK), | ||
929 | PINMUX_GPIO(GPIO_FN_SIOF_RXD_PJ, SIOF_RXD_PJ_MARK), | ||
930 | PINMUX_GPIO(GPIO_FN_HAC0_SDIN, HAC0_SDIN_MARK), | ||
931 | PINMUX_GPIO(GPIO_FN_SSI0_SCK, SSI0_SCK_MARK), | ||
932 | PINMUX_GPIO(GPIO_FN_SIOF_SYNC_PJ, SIOF_SYNC_PJ_MARK), | ||
933 | PINMUX_GPIO(GPIO_FN_HAC0_SYNC, HAC0_SYNC_MARK), | ||
934 | PINMUX_GPIO(GPIO_FN_SSI0_WS, SSI0_WS_MARK), | ||
935 | PINMUX_GPIO(GPIO_FN_SIOF_MCLK_PJ, SIOF_MCLK_PJ_MARK), | ||
936 | PINMUX_GPIO(GPIO_FN_HAC_RES, HAC_RES_MARK), | ||
937 | PINMUX_GPIO(GPIO_FN_SIOF_SCK_PJ, SIOF_SCK_PJ_MARK), | ||
938 | PINMUX_GPIO(GPIO_FN_HAC0_BITCLK, HAC0_BITCLK_MARK), | ||
939 | PINMUX_GPIO(GPIO_FN_SSI0_CLK, SSI0_CLK_MARK), | ||
940 | PINMUX_GPIO(GPIO_FN_HAC1_BITCLK, HAC1_BITCLK_MARK), | ||
941 | PINMUX_GPIO(GPIO_FN_SSI1_CLK, SSI1_CLK_MARK), | ||
942 | PINMUX_GPIO(GPIO_FN_TCLK, TCLK_MARK), | ||
943 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
944 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
945 | PINMUX_GPIO(GPIO_FN_DRAK0_PK3, DRAK0_PK3_MARK), | ||
946 | PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), | ||
947 | PINMUX_GPIO(GPIO_FN_DRAK1_PK2, DRAK1_PK2_MARK), | ||
948 | PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), | ||
949 | PINMUX_GPIO(GPIO_FN_SCIF2_TXD, SCIF2_TXD_MARK), | ||
950 | PINMUX_GPIO(GPIO_FN_MMCCMD, MMCCMD_MARK), | ||
951 | PINMUX_GPIO(GPIO_FN_SIOF_TXD_PK, SIOF_TXD_PK_MARK), | ||
952 | PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), | ||
953 | PINMUX_GPIO(GPIO_FN_SCIF2_SCK, SCIF2_SCK_MARK), | ||
954 | PINMUX_GPIO(GPIO_FN_MMCDAT, MMCDAT_MARK), | ||
955 | PINMUX_GPIO(GPIO_FN_SIOF_SCK_PK, SIOF_SCK_PK_MARK), | ||
956 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
957 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
958 | PINMUX_GPIO(GPIO_FN_DRAK0_PK1, DRAK0_PK1_MARK), | ||
959 | PINMUX_GPIO(GPIO_FN_DRAK1_PK0, DRAK1_PK0_MARK), | ||
960 | PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), | ||
961 | PINMUX_GPIO(GPIO_FN_INTB, INTB_MARK), | ||
962 | PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), | ||
963 | PINMUX_GPIO(GPIO_FN_INTC, INTC_MARK), | ||
964 | PINMUX_GPIO(GPIO_FN_DRAK2, DRAK2_MARK), | ||
965 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
966 | PINMUX_GPIO(GPIO_FN_IRL4, IRL4_MARK), | ||
967 | PINMUX_GPIO(GPIO_FN_FD4, FD4_MARK), | ||
968 | PINMUX_GPIO(GPIO_FN_IRL5, IRL5_MARK), | ||
969 | PINMUX_GPIO(GPIO_FN_FD5, FD5_MARK), | ||
970 | PINMUX_GPIO(GPIO_FN_IRL6, IRL6_MARK), | ||
971 | PINMUX_GPIO(GPIO_FN_FD6, FD6_MARK), | ||
972 | PINMUX_GPIO(GPIO_FN_IRL7, IRL7_MARK), | ||
973 | PINMUX_GPIO(GPIO_FN_FD7, FD7_MARK), | ||
974 | PINMUX_GPIO(GPIO_FN_DRAK3, DRAK3_MARK), | ||
975 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
976 | PINMUX_GPIO(GPIO_FN_BREQ_BSACK, BREQ_BSACK_MARK), | ||
977 | PINMUX_GPIO(GPIO_FN_BACK_BSREQ, BACK_BSREQ_MARK), | ||
978 | PINMUX_GPIO(GPIO_FN_SCIF5_RXD, SCIF5_RXD_MARK), | ||
979 | PINMUX_GPIO(GPIO_FN_HAC1_SDIN, HAC1_SDIN_MARK), | ||
980 | PINMUX_GPIO(GPIO_FN_SSI1_SCK, SSI1_SCK_MARK), | ||
981 | PINMUX_GPIO(GPIO_FN_SCIF5_SCK, SCIF5_SCK_MARK), | ||
982 | PINMUX_GPIO(GPIO_FN_HAC1_SDOUT, HAC1_SDOUT_MARK), | ||
983 | PINMUX_GPIO(GPIO_FN_SSI1_SDATA, SSI1_SDATA_MARK), | ||
984 | PINMUX_GPIO(GPIO_FN_SCIF3_TXD, SCIF3_TXD_MARK), | ||
985 | PINMUX_GPIO(GPIO_FN_FCLE, FCLE_MARK), | ||
986 | PINMUX_GPIO(GPIO_FN_SCIF3_RXD, SCIF3_RXD_MARK), | ||
987 | PINMUX_GPIO(GPIO_FN_FALE, FALE_MARK), | ||
988 | PINMUX_GPIO(GPIO_FN_SCIF3_SCK, SCIF3_SCK_MARK), | ||
989 | PINMUX_GPIO(GPIO_FN_FD0, FD0_MARK), | ||
990 | PINMUX_GPIO(GPIO_FN_SCIF4_TXD, SCIF4_TXD_MARK), | ||
991 | PINMUX_GPIO(GPIO_FN_FD1, FD1_MARK), | ||
992 | PINMUX_GPIO(GPIO_FN_SCIF4_RXD, SCIF4_RXD_MARK), | ||
993 | PINMUX_GPIO(GPIO_FN_FD2, FD2_MARK), | ||
994 | PINMUX_GPIO(GPIO_FN_SCIF4_SCK, SCIF4_SCK_MARK), | ||
995 | PINMUX_GPIO(GPIO_FN_FD3, FD3_MARK), | ||
996 | PINMUX_GPIO(GPIO_FN_DEVSEL_DCLKOUT, DEVSEL_DCLKOUT_MARK), | ||
997 | PINMUX_GPIO(GPIO_FN_STOP_CDE, STOP_CDE_MARK), | ||
998 | PINMUX_GPIO(GPIO_FN_LOCK_ODDF, LOCK_ODDF_MARK), | ||
999 | PINMUX_GPIO(GPIO_FN_TRDY_DISPL, TRDY_DISPL_MARK), | ||
1000 | PINMUX_GPIO(GPIO_FN_IRDY_HSYNC, IRDY_HSYNC_MARK), | ||
1001 | PINMUX_GPIO(GPIO_FN_PCIFRAME_VSYNC, PCIFRAME_VSYNC_MARK), | ||
1002 | PINMUX_GPIO(GPIO_FN_INTA, INTA_MARK), | ||
1003 | PINMUX_GPIO(GPIO_FN_GNT0_GNTIN, GNT0_GNTIN_MARK), | ||
1004 | PINMUX_GPIO(GPIO_FN_REQ0_REQOUT, REQ0_REQOUT_MARK), | ||
1005 | PINMUX_GPIO(GPIO_FN_PERR, PERR_MARK), | ||
1006 | PINMUX_GPIO(GPIO_FN_SERR, SERR_MARK), | ||
1007 | PINMUX_GPIO(GPIO_FN_WE7_CBE3, WE7_CBE3_MARK), | ||
1008 | PINMUX_GPIO(GPIO_FN_WE6_CBE2, WE6_CBE2_MARK), | ||
1009 | PINMUX_GPIO(GPIO_FN_WE5_CBE1, WE5_CBE1_MARK), | ||
1010 | PINMUX_GPIO(GPIO_FN_WE4_CBE0, WE4_CBE0_MARK), | ||
1011 | PINMUX_GPIO(GPIO_FN_SCIF2_RXD, SCIF2_RXD_MARK), | ||
1012 | PINMUX_GPIO(GPIO_FN_SIOF_RXD, SIOF_RXD_MARK), | ||
1013 | PINMUX_GPIO(GPIO_FN_MRESETOUT, MRESETOUT_MARK), | ||
1014 | PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), | ||
1015 | }; | ||
1016 | |||
1017 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1018 | { PINMUX_CFG_REG("PACR", 0xffe70000, 16, 2) { | ||
1019 | PA7_FN, PA7_OUT, PA7_IN, PA7_IN_PU, | ||
1020 | PA6_FN, PA6_OUT, PA6_IN, PA6_IN_PU, | ||
1021 | PA5_FN, PA5_OUT, PA5_IN, PA5_IN_PU, | ||
1022 | PA4_FN, PA4_OUT, PA4_IN, PA4_IN_PU, | ||
1023 | PA3_FN, PA3_OUT, PA3_IN, PA3_IN_PU, | ||
1024 | PA2_FN, PA2_OUT, PA2_IN, PA2_IN_PU, | ||
1025 | PA1_FN, PA1_OUT, PA1_IN, PA1_IN_PU, | ||
1026 | PA0_FN, PA0_OUT, PA0_IN, PA0_IN_PU } | ||
1027 | }, | ||
1028 | { PINMUX_CFG_REG("PBCR", 0xffe70002, 16, 2) { | ||
1029 | PB7_FN, PB7_OUT, PB7_IN, PB7_IN_PU, | ||
1030 | PB6_FN, PB6_OUT, PB6_IN, PB6_IN_PU, | ||
1031 | PB5_FN, PB5_OUT, PB5_IN, PB5_IN_PU, | ||
1032 | PB4_FN, PB4_OUT, PB4_IN, PB4_IN_PU, | ||
1033 | PB3_FN, PB3_OUT, PB3_IN, PB3_IN_PU, | ||
1034 | PB2_FN, PB2_OUT, PB2_IN, PB2_IN_PU, | ||
1035 | PB1_FN, PB1_OUT, PB1_IN, PB1_IN_PU, | ||
1036 | PB0_FN, PB0_OUT, PB0_IN, PB0_IN_PU } | ||
1037 | }, | ||
1038 | { PINMUX_CFG_REG("PCCR", 0xffe70004, 16, 2) { | ||
1039 | PC7_FN, PC7_OUT, PC7_IN, PC7_IN_PU, | ||
1040 | PC6_FN, PC6_OUT, PC6_IN, PC6_IN_PU, | ||
1041 | PC5_FN, PC5_OUT, PC5_IN, PC5_IN_PU, | ||
1042 | PC4_FN, PC4_OUT, PC4_IN, PC4_IN_PU, | ||
1043 | PC3_FN, PC3_OUT, PC3_IN, PC3_IN_PU, | ||
1044 | PC2_FN, PC2_OUT, PC2_IN, PC2_IN_PU, | ||
1045 | PC1_FN, PC1_OUT, PC1_IN, PC1_IN_PU, | ||
1046 | PC0_FN, PC0_OUT, PC0_IN, PC0_IN_PU } | ||
1047 | }, | ||
1048 | { PINMUX_CFG_REG("PDCR", 0xffe70006, 16, 2) { | ||
1049 | PD7_FN, PD7_OUT, PD7_IN, PD7_IN_PU, | ||
1050 | PD6_FN, PD6_OUT, PD6_IN, PD6_IN_PU, | ||
1051 | PD5_FN, PD5_OUT, PD5_IN, PD5_IN_PU, | ||
1052 | PD4_FN, PD4_OUT, PD4_IN, PD4_IN_PU, | ||
1053 | PD3_FN, PD3_OUT, PD3_IN, PD3_IN_PU, | ||
1054 | PD2_FN, PD2_OUT, PD2_IN, PD2_IN_PU, | ||
1055 | PD1_FN, PD1_OUT, PD1_IN, PD1_IN_PU, | ||
1056 | PD0_FN, PD0_OUT, PD0_IN, PD0_IN_PU } | ||
1057 | }, | ||
1058 | { PINMUX_CFG_REG("PECR", 0xffe70008, 16, 2) { | ||
1059 | 0, 0, 0, 0, | ||
1060 | 0, 0, 0, 0, | ||
1061 | PE5_FN, PE5_OUT, PE5_IN, PE5_IN_PU, | ||
1062 | PE4_FN, PE4_OUT, PE4_IN, PE4_IN_PU, | ||
1063 | PE3_FN, PE3_OUT, PE3_IN, PE3_IN_PU, | ||
1064 | PE2_FN, PE2_OUT, PE2_IN, PE2_IN_PU, | ||
1065 | PE1_FN, PE1_OUT, PE1_IN, PE1_IN_PU, | ||
1066 | PE0_FN, PE0_OUT, PE0_IN, PE0_IN_PU } | ||
1067 | }, | ||
1068 | { PINMUX_CFG_REG("PFCR", 0xffe7000a, 16, 2) { | ||
1069 | PF7_FN, PF7_OUT, PF7_IN, PF7_IN_PU, | ||
1070 | PF6_FN, PF6_OUT, PF6_IN, PF6_IN_PU, | ||
1071 | PF5_FN, PF5_OUT, PF5_IN, PF5_IN_PU, | ||
1072 | PF4_FN, PF4_OUT, PF4_IN, PF4_IN_PU, | ||
1073 | PF3_FN, PF3_OUT, PF3_IN, PF3_IN_PU, | ||
1074 | PF2_FN, PF2_OUT, PF2_IN, PF2_IN_PU, | ||
1075 | PF1_FN, PF1_OUT, PF1_IN, PF1_IN_PU, | ||
1076 | PF0_FN, PF0_OUT, PF0_IN, PF0_IN_PU } | ||
1077 | }, | ||
1078 | { PINMUX_CFG_REG("PGCR", 0xffe7000c, 16, 2) { | ||
1079 | PG7_FN, PG7_OUT, PG7_IN, PG7_IN_PU, | ||
1080 | PG6_FN, PG6_OUT, PG6_IN, PG6_IN_PU, | ||
1081 | PG5_FN, PG5_OUT, PG5_IN, PG5_IN_PU, | ||
1082 | PG4_FN, PG4_OUT, PG4_IN, PG4_IN_PU, | ||
1083 | PG3_FN, PG3_OUT, PG3_IN, PG3_IN_PU, | ||
1084 | PG2_FN, PG2_OUT, PG2_IN, PG2_IN_PU, | ||
1085 | PG1_FN, PG1_OUT, PG1_IN, PG1_IN_PU, | ||
1086 | PG0_FN, PG0_OUT, PG0_IN, PG0_IN_PU } | ||
1087 | }, | ||
1088 | { PINMUX_CFG_REG("PHCR", 0xffe7000e, 16, 2) { | ||
1089 | PH7_FN, PH7_OUT, PH7_IN, PH7_IN_PU, | ||
1090 | PH6_FN, PH6_OUT, PH6_IN, PH6_IN_PU, | ||
1091 | PH5_FN, PH5_OUT, PH5_IN, PH5_IN_PU, | ||
1092 | PH4_FN, PH4_OUT, PH4_IN, PH4_IN_PU, | ||
1093 | PH3_FN, PH3_OUT, PH3_IN, PH3_IN_PU, | ||
1094 | PH2_FN, PH2_OUT, PH2_IN, PH2_IN_PU, | ||
1095 | PH1_FN, PH1_OUT, PH1_IN, PH1_IN_PU, | ||
1096 | PH0_FN, PH0_OUT, PH0_IN, PH0_IN_PU } | ||
1097 | }, | ||
1098 | { PINMUX_CFG_REG("PJCR", 0xffe70010, 16, 2) { | ||
1099 | PJ7_FN, PJ7_OUT, PJ7_IN, PJ7_IN_PU, | ||
1100 | PJ6_FN, PJ6_OUT, PJ6_IN, PJ6_IN_PU, | ||
1101 | PJ5_FN, PJ5_OUT, PJ5_IN, PJ5_IN_PU, | ||
1102 | PJ4_FN, PJ4_OUT, PJ4_IN, PJ4_IN_PU, | ||
1103 | PJ3_FN, PJ3_OUT, PJ3_IN, PJ3_IN_PU, | ||
1104 | PJ2_FN, PJ2_OUT, PJ2_IN, PJ2_IN_PU, | ||
1105 | PJ1_FN, PJ1_OUT, PJ1_IN, PJ1_IN_PU, | ||
1106 | PJ0_FN, PJ0_OUT, PJ0_IN, PJ0_IN_PU } | ||
1107 | }, | ||
1108 | { PINMUX_CFG_REG("PKCR", 0xffe70012, 16, 2) { | ||
1109 | PK7_FN, PK7_OUT, PK7_IN, PK7_IN_PU, | ||
1110 | PK6_FN, PK6_OUT, PK6_IN, PK6_IN_PU, | ||
1111 | PK5_FN, PK5_OUT, PK5_IN, PK5_IN_PU, | ||
1112 | PK4_FN, PK4_OUT, PK4_IN, PK4_IN_PU, | ||
1113 | PK3_FN, PK3_OUT, PK3_IN, PK3_IN_PU, | ||
1114 | PK2_FN, PK2_OUT, PK2_IN, PK2_IN_PU, | ||
1115 | PK1_FN, PK1_OUT, PK1_IN, PK1_IN_PU, | ||
1116 | PK0_FN, PK0_OUT, PK0_IN, PK0_IN_PU } | ||
1117 | }, | ||
1118 | { PINMUX_CFG_REG("PLCR", 0xffe70014, 16, 2) { | ||
1119 | PL7_FN, PL7_OUT, PL7_IN, PL7_IN_PU, | ||
1120 | PL6_FN, PL6_OUT, PL6_IN, PL6_IN_PU, | ||
1121 | PL5_FN, PL5_OUT, PL5_IN, PL5_IN_PU, | ||
1122 | PL4_FN, PL4_OUT, PL4_IN, PL4_IN_PU, | ||
1123 | PL3_FN, PL3_OUT, PL3_IN, PL3_IN_PU, | ||
1124 | PL2_FN, PL2_OUT, PL2_IN, PL2_IN_PU, | ||
1125 | PL1_FN, PL1_OUT, PL1_IN, PL1_IN_PU, | ||
1126 | PL0_FN, PL0_OUT, PL0_IN, PL0_IN_PU } | ||
1127 | }, | ||
1128 | { PINMUX_CFG_REG("PMCR", 0xffe70016, 16, 2) { | ||
1129 | 0, 0, 0, 0, | ||
1130 | 0, 0, 0, 0, | ||
1131 | 0, 0, 0, 0, | ||
1132 | 0, 0, 0, 0, | ||
1133 | 0, 0, 0, 0, | ||
1134 | 0, 0, 0, 0, | ||
1135 | PM1_FN, PM1_OUT, PM1_IN, PM1_IN_PU, | ||
1136 | PM0_FN, PM0_OUT, PM0_IN, PM0_IN_PU } | ||
1137 | }, | ||
1138 | { PINMUX_CFG_REG("PNCR", 0xffe70018, 16, 2) { | ||
1139 | PN7_FN, PN7_OUT, PN7_IN, PN7_IN_PU, | ||
1140 | PN6_FN, PN6_OUT, PN6_IN, PN6_IN_PU, | ||
1141 | PN5_FN, PN5_OUT, PN5_IN, PN5_IN_PU, | ||
1142 | PN4_FN, PN4_OUT, PN4_IN, PN4_IN_PU, | ||
1143 | PN3_FN, PN3_OUT, PN3_IN, PN3_IN_PU, | ||
1144 | PN2_FN, PN2_OUT, PN2_IN, PN2_IN_PU, | ||
1145 | PN1_FN, PN1_OUT, PN1_IN, PN1_IN_PU, | ||
1146 | PN0_FN, PN0_OUT, PN0_IN, PN0_IN_PU } | ||
1147 | }, | ||
1148 | { PINMUX_CFG_REG("PPCR", 0xffe7001a, 16, 2) { | ||
1149 | 0, 0, 0, 0, | ||
1150 | 0, 0, 0, 0, | ||
1151 | PP5_FN, PP5_OUT, PP5_IN, PP5_IN_PU, | ||
1152 | PP4_FN, PP4_OUT, PP4_IN, PP4_IN_PU, | ||
1153 | PP3_FN, PP3_OUT, PP3_IN, PP3_IN_PU, | ||
1154 | PP2_FN, PP2_OUT, PP2_IN, PP2_IN_PU, | ||
1155 | PP1_FN, PP1_OUT, PP1_IN, PP1_IN_PU, | ||
1156 | PP0_FN, PP0_OUT, PP0_IN, PP0_IN_PU } | ||
1157 | }, | ||
1158 | { PINMUX_CFG_REG("PQCR", 0xffe7001c, 16, 2) { | ||
1159 | 0, 0, 0, 0, | ||
1160 | 0, 0, 0, 0, | ||
1161 | 0, 0, 0, 0, | ||
1162 | PQ4_FN, PQ4_OUT, PQ4_IN, PQ4_IN_PU, | ||
1163 | PQ3_FN, PQ3_OUT, PQ3_IN, PQ3_IN_PU, | ||
1164 | PQ2_FN, PQ2_OUT, PQ2_IN, PQ2_IN_PU, | ||
1165 | PQ1_FN, PQ1_OUT, PQ1_IN, PQ1_IN_PU, | ||
1166 | PQ0_FN, PQ0_OUT, PQ0_IN, PQ0_IN_PU } | ||
1167 | }, | ||
1168 | { PINMUX_CFG_REG("PRCR", 0xffe7001e, 16, 2) { | ||
1169 | 0, 0, 0, 0, | ||
1170 | 0, 0, 0, 0, | ||
1171 | 0, 0, 0, 0, | ||
1172 | 0, 0, 0, 0, | ||
1173 | PR3_FN, PR3_OUT, PR3_IN, PR3_IN_PU, | ||
1174 | PR2_FN, PR2_OUT, PR2_IN, PR2_IN_PU, | ||
1175 | PR1_FN, PR1_OUT, PR1_IN, PR1_IN_PU, | ||
1176 | PR0_FN, PR0_OUT, PR0_IN, PR0_IN_PU } | ||
1177 | }, | ||
1178 | { PINMUX_CFG_REG("P1MSELR", 0xffe70080, 16, 1) { | ||
1179 | P1MSEL15_0, P1MSEL15_1, | ||
1180 | P1MSEL14_0, P1MSEL14_1, | ||
1181 | P1MSEL13_0, P1MSEL13_1, | ||
1182 | P1MSEL12_0, P1MSEL12_1, | ||
1183 | P1MSEL11_0, P1MSEL11_1, | ||
1184 | P1MSEL10_0, P1MSEL10_1, | ||
1185 | P1MSEL9_0, P1MSEL9_1, | ||
1186 | P1MSEL8_0, P1MSEL8_1, | ||
1187 | P1MSEL7_0, P1MSEL7_1, | ||
1188 | P1MSEL6_0, P1MSEL6_1, | ||
1189 | P1MSEL5_0, 0, | ||
1190 | P1MSEL4_0, P1MSEL4_1, | ||
1191 | P1MSEL3_0, P1MSEL3_1, | ||
1192 | P1MSEL2_0, P1MSEL2_1, | ||
1193 | P1MSEL1_0, P1MSEL1_1, | ||
1194 | P1MSEL0_0, P1MSEL0_1 } | ||
1195 | }, | ||
1196 | { PINMUX_CFG_REG("P2MSELR", 0xffe70082, 16, 1) { | ||
1197 | 0, 0, | ||
1198 | 0, 0, | ||
1199 | 0, 0, | ||
1200 | 0, 0, | ||
1201 | 0, 0, | ||
1202 | 0, 0, | ||
1203 | 0, 0, | ||
1204 | 0, 0, | ||
1205 | 0, 0, | ||
1206 | 0, 0, | ||
1207 | 0, 0, | ||
1208 | 0, 0, | ||
1209 | 0, 0, | ||
1210 | P2MSEL2_0, P2MSEL2_1, | ||
1211 | P2MSEL1_0, P2MSEL1_1, | ||
1212 | P2MSEL0_0, P2MSEL0_1 } | ||
1213 | }, | ||
1214 | {} | ||
1215 | }; | ||
1216 | |||
1217 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1218 | { PINMUX_DATA_REG("PADR", 0xffe70020, 8) { | ||
1219 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
1220 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA } | ||
1221 | }, | ||
1222 | { PINMUX_DATA_REG("PBDR", 0xffe70022, 8) { | ||
1223 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
1224 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA } | ||
1225 | }, | ||
1226 | { PINMUX_DATA_REG("PCDR", 0xffe70024, 8) { | ||
1227 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
1228 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
1229 | }, | ||
1230 | { PINMUX_DATA_REG("PDDR", 0xffe70026, 8) { | ||
1231 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
1232 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
1233 | }, | ||
1234 | { PINMUX_DATA_REG("PEDR", 0xffe70028, 8) { | ||
1235 | 0, 0, PE5_DATA, PE4_DATA, | ||
1236 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA } | ||
1237 | }, | ||
1238 | { PINMUX_DATA_REG("PFDR", 0xffe7002a, 8) { | ||
1239 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
1240 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
1241 | }, | ||
1242 | { PINMUX_DATA_REG("PGDR", 0xffe7002c, 8) { | ||
1243 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
1244 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA } | ||
1245 | }, | ||
1246 | { PINMUX_DATA_REG("PHDR", 0xffe7002e, 8) { | ||
1247 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
1248 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA } | ||
1249 | }, | ||
1250 | { PINMUX_DATA_REG("PJDR", 0xffe70030, 8) { | ||
1251 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
1252 | PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA } | ||
1253 | }, | ||
1254 | { PINMUX_DATA_REG("PKDR", 0xffe70032, 8) { | ||
1255 | PK7_DATA, PK6_DATA, PK5_DATA, PK4_DATA, | ||
1256 | PK3_DATA, PK2_DATA, PK1_DATA, PK0_DATA } | ||
1257 | }, | ||
1258 | { PINMUX_DATA_REG("PLDR", 0xffe70034, 8) { | ||
1259 | PL7_DATA, PL6_DATA, PL5_DATA, PL4_DATA, | ||
1260 | PL3_DATA, PL2_DATA, PL1_DATA, PL0_DATA } | ||
1261 | }, | ||
1262 | { PINMUX_DATA_REG("PMDR", 0xffe70036, 8) { | ||
1263 | 0, 0, 0, 0, | ||
1264 | 0, 0, PM1_DATA, PM0_DATA } | ||
1265 | }, | ||
1266 | { PINMUX_DATA_REG("PNDR", 0xffe70038, 8) { | ||
1267 | PN7_DATA, PN6_DATA, PN5_DATA, PN4_DATA, | ||
1268 | PN3_DATA, PN2_DATA, PN1_DATA, PN0_DATA } | ||
1269 | }, | ||
1270 | { PINMUX_DATA_REG("PPDR", 0xffe7003a, 8) { | ||
1271 | 0, 0, PP5_DATA, PP4_DATA, | ||
1272 | PP3_DATA, PP2_DATA, PP1_DATA, PP0_DATA } | ||
1273 | }, | ||
1274 | { PINMUX_DATA_REG("PQDR", 0xffe7003c, 8) { | ||
1275 | 0, 0, 0, PQ4_DATA, | ||
1276 | PQ3_DATA, PQ2_DATA, PQ1_DATA, PQ0_DATA } | ||
1277 | }, | ||
1278 | { PINMUX_DATA_REG("PRDR", 0xffe7003e, 8) { | ||
1279 | 0, 0, 0, 0, | ||
1280 | PR3_DATA, PR2_DATA, PR1_DATA, PR0_DATA } | ||
1281 | }, | ||
1282 | { }, | ||
1283 | }; | ||
1284 | |||
1285 | struct sh_pfc_soc_info sh7785_pinmux_info = { | ||
1286 | .name = "sh7785_pfc", | ||
1287 | .reserved_id = PINMUX_RESERVED, | ||
1288 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1289 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1290 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1291 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1292 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1293 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1294 | |||
1295 | .first_gpio = GPIO_PA7, | ||
1296 | .last_gpio = GPIO_FN_IRQOUT, | ||
1297 | |||
1298 | .gpios = pinmux_gpios, | ||
1299 | .cfg_regs = pinmux_config_regs, | ||
1300 | .data_regs = pinmux_data_regs, | ||
1301 | |||
1302 | .gpio_data = pinmux_data, | ||
1303 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1304 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7786.c b/drivers/pinctrl/sh-pfc/pfc-sh7786.c new file mode 100644 index 000000000000..1e18b58f9e5f --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-sh7786.c | |||
@@ -0,0 +1,837 @@ | |||
1 | /* | ||
2 | * SH7786 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2008, 2009 Renesas Solutions Corp. | ||
5 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
6 | * | ||
7 | * Based on SH7785 pinmux | ||
8 | * | ||
9 | * Copyright (C) 2008 Magnus Damm | ||
10 | * | ||
11 | * This file is subject to the terms and conditions of the GNU General Public | ||
12 | * License. See the file "COPYING" in the main directory of this archive | ||
13 | * for more details. | ||
14 | */ | ||
15 | |||
16 | #include <linux/init.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <cpu/sh7786.h> | ||
19 | |||
20 | #include "sh_pfc.h" | ||
21 | |||
22 | enum { | ||
23 | PINMUX_RESERVED = 0, | ||
24 | |||
25 | PINMUX_DATA_BEGIN, | ||
26 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
27 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
28 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
29 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, | ||
30 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
31 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
32 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
33 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
34 | PE7_DATA, PE6_DATA, | ||
35 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
36 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
37 | PG7_DATA, PG6_DATA, PG5_DATA, | ||
38 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
39 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
40 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
41 | PJ3_DATA, PJ2_DATA, PJ1_DATA, | ||
42 | PINMUX_DATA_END, | ||
43 | |||
44 | PINMUX_INPUT_BEGIN, | ||
45 | PA7_IN, PA6_IN, PA5_IN, PA4_IN, | ||
46 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
47 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
48 | PB3_IN, PB2_IN, PB1_IN, PB0_IN, | ||
49 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
50 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
51 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
52 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
53 | PE7_IN, PE6_IN, | ||
54 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
55 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
56 | PG7_IN, PG6_IN, PG5_IN, | ||
57 | PH7_IN, PH6_IN, PH5_IN, PH4_IN, | ||
58 | PH3_IN, PH2_IN, PH1_IN, PH0_IN, | ||
59 | PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN, | ||
60 | PJ3_IN, PJ2_IN, PJ1_IN, | ||
61 | PINMUX_INPUT_END, | ||
62 | |||
63 | PINMUX_INPUT_PULLUP_BEGIN, | ||
64 | PA7_IN_PU, PA6_IN_PU, PA5_IN_PU, PA4_IN_PU, | ||
65 | PA3_IN_PU, PA2_IN_PU, PA1_IN_PU, PA0_IN_PU, | ||
66 | PB7_IN_PU, PB6_IN_PU, PB5_IN_PU, PB4_IN_PU, | ||
67 | PB3_IN_PU, PB2_IN_PU, PB1_IN_PU, PB0_IN_PU, | ||
68 | PC7_IN_PU, PC6_IN_PU, PC5_IN_PU, PC4_IN_PU, | ||
69 | PC3_IN_PU, PC2_IN_PU, PC1_IN_PU, PC0_IN_PU, | ||
70 | PD7_IN_PU, PD6_IN_PU, PD5_IN_PU, PD4_IN_PU, | ||
71 | PD3_IN_PU, PD2_IN_PU, PD1_IN_PU, PD0_IN_PU, | ||
72 | PE7_IN_PU, PE6_IN_PU, | ||
73 | PF7_IN_PU, PF6_IN_PU, PF5_IN_PU, PF4_IN_PU, | ||
74 | PF3_IN_PU, PF2_IN_PU, PF1_IN_PU, PF0_IN_PU, | ||
75 | PG7_IN_PU, PG6_IN_PU, PG5_IN_PU, | ||
76 | PH7_IN_PU, PH6_IN_PU, PH5_IN_PU, PH4_IN_PU, | ||
77 | PH3_IN_PU, PH2_IN_PU, PH1_IN_PU, PH0_IN_PU, | ||
78 | PJ7_IN_PU, PJ6_IN_PU, PJ5_IN_PU, PJ4_IN_PU, | ||
79 | PJ3_IN_PU, PJ2_IN_PU, PJ1_IN_PU, | ||
80 | PINMUX_INPUT_PULLUP_END, | ||
81 | |||
82 | PINMUX_OUTPUT_BEGIN, | ||
83 | PA7_OUT, PA6_OUT, PA5_OUT, PA4_OUT, | ||
84 | PA3_OUT, PA2_OUT, PA1_OUT, PA0_OUT, | ||
85 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
86 | PB3_OUT, PB2_OUT, PB1_OUT, PB0_OUT, | ||
87 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
88 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
89 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
90 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
91 | PE7_OUT, PE6_OUT, | ||
92 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
93 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
94 | PG7_OUT, PG6_OUT, PG5_OUT, | ||
95 | PH7_OUT, PH6_OUT, PH5_OUT, PH4_OUT, | ||
96 | PH3_OUT, PH2_OUT, PH1_OUT, PH0_OUT, | ||
97 | PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT, | ||
98 | PJ3_OUT, PJ2_OUT, PJ1_OUT, | ||
99 | PINMUX_OUTPUT_END, | ||
100 | |||
101 | PINMUX_FUNCTION_BEGIN, | ||
102 | PA7_FN, PA6_FN, PA5_FN, PA4_FN, | ||
103 | PA3_FN, PA2_FN, PA1_FN, PA0_FN, | ||
104 | PB7_FN, PB6_FN, PB5_FN, PB4_FN, | ||
105 | PB3_FN, PB2_FN, PB1_FN, PB0_FN, | ||
106 | PC7_FN, PC6_FN, PC5_FN, PC4_FN, | ||
107 | PC3_FN, PC2_FN, PC1_FN, PC0_FN, | ||
108 | PD7_FN, PD6_FN, PD5_FN, PD4_FN, | ||
109 | PD3_FN, PD2_FN, PD1_FN, PD0_FN, | ||
110 | PE7_FN, PE6_FN, | ||
111 | PF7_FN, PF6_FN, PF5_FN, PF4_FN, | ||
112 | PF3_FN, PF2_FN, PF1_FN, PF0_FN, | ||
113 | PG7_FN, PG6_FN, PG5_FN, | ||
114 | PH7_FN, PH6_FN, PH5_FN, PH4_FN, | ||
115 | PH3_FN, PH2_FN, PH1_FN, PH0_FN, | ||
116 | PJ7_FN, PJ6_FN, PJ5_FN, PJ4_FN, | ||
117 | PJ3_FN, PJ2_FN, PJ1_FN, | ||
118 | P1MSEL14_0, P1MSEL14_1, | ||
119 | P1MSEL13_0, P1MSEL13_1, | ||
120 | P1MSEL12_0, P1MSEL12_1, | ||
121 | P1MSEL11_0, P1MSEL11_1, | ||
122 | P1MSEL10_0, P1MSEL10_1, | ||
123 | P1MSEL9_0, P1MSEL9_1, | ||
124 | P1MSEL8_0, P1MSEL8_1, | ||
125 | P1MSEL7_0, P1MSEL7_1, | ||
126 | P1MSEL6_0, P1MSEL6_1, | ||
127 | P1MSEL5_0, P1MSEL5_1, | ||
128 | P1MSEL4_0, P1MSEL4_1, | ||
129 | P1MSEL3_0, P1MSEL3_1, | ||
130 | P1MSEL2_0, P1MSEL2_1, | ||
131 | P1MSEL1_0, P1MSEL1_1, | ||
132 | P1MSEL0_0, P1MSEL0_1, | ||
133 | |||
134 | P2MSEL15_0, P2MSEL15_1, | ||
135 | P2MSEL14_0, P2MSEL14_1, | ||
136 | P2MSEL13_0, P2MSEL13_1, | ||
137 | P2MSEL12_0, P2MSEL12_1, | ||
138 | P2MSEL11_0, P2MSEL11_1, | ||
139 | P2MSEL10_0, P2MSEL10_1, | ||
140 | P2MSEL9_0, P2MSEL9_1, | ||
141 | P2MSEL8_0, P2MSEL8_1, | ||
142 | P2MSEL7_0, P2MSEL7_1, | ||
143 | P2MSEL6_0, P2MSEL6_1, | ||
144 | P2MSEL5_0, P2MSEL5_1, | ||
145 | P2MSEL4_0, P2MSEL4_1, | ||
146 | P2MSEL3_0, P2MSEL3_1, | ||
147 | P2MSEL2_0, P2MSEL2_1, | ||
148 | P2MSEL1_0, P2MSEL1_1, | ||
149 | P2MSEL0_0, P2MSEL0_1, | ||
150 | PINMUX_FUNCTION_END, | ||
151 | |||
152 | PINMUX_MARK_BEGIN, | ||
153 | DCLKIN_MARK, DCLKOUT_MARK, ODDF_MARK, | ||
154 | VSYNC_MARK, HSYNC_MARK, CDE_MARK, DISP_MARK, | ||
155 | DR0_MARK, DR1_MARK, DR2_MARK, DR3_MARK, DR4_MARK, DR5_MARK, | ||
156 | DG0_MARK, DG1_MARK, DG2_MARK, DG3_MARK, DG4_MARK, DG5_MARK, | ||
157 | DB0_MARK, DB1_MARK, DB2_MARK, DB3_MARK, DB4_MARK, DB5_MARK, | ||
158 | ETH_MAGIC_MARK, ETH_LINK_MARK, ETH_TX_ER_MARK, ETH_TX_EN_MARK, | ||
159 | ETH_MDIO_MARK, ETH_RX_CLK_MARK, ETH_MDC_MARK, ETH_COL_MARK, | ||
160 | ETH_TX_CLK_MARK, ETH_CRS_MARK, ETH_RX_DV_MARK, ETH_RX_ER_MARK, | ||
161 | ETH_TXD3_MARK, ETH_TXD2_MARK, ETH_TXD1_MARK, ETH_TXD0_MARK, | ||
162 | ETH_RXD3_MARK, ETH_RXD2_MARK, ETH_RXD1_MARK, ETH_RXD0_MARK, | ||
163 | HSPI_CLK_MARK, HSPI_CS_MARK, HSPI_RX_MARK, HSPI_TX_MARK, | ||
164 | SCIF0_CTS_MARK, SCIF0_RTS_MARK, | ||
165 | SCIF0_SCK_MARK, SCIF0_RXD_MARK, SCIF0_TXD_MARK, | ||
166 | SCIF1_SCK_MARK, SCIF1_RXD_MARK, SCIF1_TXD_MARK, | ||
167 | SCIF3_SCK_MARK, SCIF3_RXD_MARK, SCIF3_TXD_MARK, | ||
168 | SCIF4_SCK_MARK, SCIF4_RXD_MARK, SCIF4_TXD_MARK, | ||
169 | SCIF5_SCK_MARK, SCIF5_RXD_MARK, SCIF5_TXD_MARK, | ||
170 | BREQ_MARK, IOIS16_MARK, CE2B_MARK, CE2A_MARK, BACK_MARK, | ||
171 | FALE_MARK, FRB_MARK, FSTATUS_MARK, | ||
172 | FSE_MARK, FCLE_MARK, | ||
173 | DACK0_MARK, DACK1_MARK, DACK2_MARK, DACK3_MARK, | ||
174 | DREQ0_MARK, DREQ1_MARK, DREQ2_MARK, DREQ3_MARK, | ||
175 | DRAK0_MARK, DRAK1_MARK, DRAK2_MARK, DRAK3_MARK, | ||
176 | USB_OVC1_MARK, USB_OVC0_MARK, | ||
177 | USB_PENC1_MARK, USB_PENC0_MARK, | ||
178 | HAC_RES_MARK, | ||
179 | HAC1_SDOUT_MARK, HAC1_SDIN_MARK, HAC1_SYNC_MARK, HAC1_BITCLK_MARK, | ||
180 | HAC0_SDOUT_MARK, HAC0_SDIN_MARK, HAC0_SYNC_MARK, HAC0_BITCLK_MARK, | ||
181 | SSI0_SDATA_MARK, SSI0_SCK_MARK, SSI0_WS_MARK, SSI0_CLK_MARK, | ||
182 | SSI1_SDATA_MARK, SSI1_SCK_MARK, SSI1_WS_MARK, SSI1_CLK_MARK, | ||
183 | SSI2_SDATA_MARK, SSI2_SCK_MARK, SSI2_WS_MARK, | ||
184 | SSI3_SDATA_MARK, SSI3_SCK_MARK, SSI3_WS_MARK, | ||
185 | SDIF1CMD_MARK, SDIF1CD_MARK, SDIF1WP_MARK, SDIF1CLK_MARK, | ||
186 | SDIF1D3_MARK, SDIF1D2_MARK, SDIF1D1_MARK, SDIF1D0_MARK, | ||
187 | SDIF0CMD_MARK, SDIF0CD_MARK, SDIF0WP_MARK, SDIF0CLK_MARK, | ||
188 | SDIF0D3_MARK, SDIF0D2_MARK, SDIF0D1_MARK, SDIF0D0_MARK, | ||
189 | TCLK_MARK, | ||
190 | IRL7_MARK, IRL6_MARK, IRL5_MARK, IRL4_MARK, | ||
191 | PINMUX_MARK_END, | ||
192 | }; | ||
193 | |||
194 | static pinmux_enum_t pinmux_data[] = { | ||
195 | |||
196 | /* PA GPIO */ | ||
197 | PINMUX_DATA(PA7_DATA, PA7_IN, PA7_OUT, PA7_IN_PU), | ||
198 | PINMUX_DATA(PA6_DATA, PA6_IN, PA6_OUT, PA6_IN_PU), | ||
199 | PINMUX_DATA(PA5_DATA, PA5_IN, PA5_OUT, PA5_IN_PU), | ||
200 | PINMUX_DATA(PA4_DATA, PA4_IN, PA4_OUT, PA4_IN_PU), | ||
201 | PINMUX_DATA(PA3_DATA, PA3_IN, PA3_OUT, PA3_IN_PU), | ||
202 | PINMUX_DATA(PA2_DATA, PA2_IN, PA2_OUT, PA2_IN_PU), | ||
203 | PINMUX_DATA(PA1_DATA, PA1_IN, PA1_OUT, PA1_IN_PU), | ||
204 | PINMUX_DATA(PA0_DATA, PA0_IN, PA0_OUT, PA0_IN_PU), | ||
205 | |||
206 | /* PB GPIO */ | ||
207 | PINMUX_DATA(PB7_DATA, PB7_IN, PB7_OUT, PB7_IN_PU), | ||
208 | PINMUX_DATA(PB6_DATA, PB6_IN, PB6_OUT, PB6_IN_PU), | ||
209 | PINMUX_DATA(PB5_DATA, PB5_IN, PB5_OUT, PB5_IN_PU), | ||
210 | PINMUX_DATA(PB4_DATA, PB4_IN, PB4_OUT, PB4_IN_PU), | ||
211 | PINMUX_DATA(PB3_DATA, PB3_IN, PB3_OUT, PB3_IN_PU), | ||
212 | PINMUX_DATA(PB2_DATA, PB2_IN, PB2_OUT, PB2_IN_PU), | ||
213 | PINMUX_DATA(PB1_DATA, PB1_IN, PB1_OUT, PB1_IN_PU), | ||
214 | PINMUX_DATA(PB0_DATA, PB0_IN, PB0_OUT, PB0_IN_PU), | ||
215 | |||
216 | /* PC GPIO */ | ||
217 | PINMUX_DATA(PC7_DATA, PC7_IN, PC7_OUT, PC7_IN_PU), | ||
218 | PINMUX_DATA(PC6_DATA, PC6_IN, PC6_OUT, PC6_IN_PU), | ||
219 | PINMUX_DATA(PC5_DATA, PC5_IN, PC5_OUT, PC5_IN_PU), | ||
220 | PINMUX_DATA(PC4_DATA, PC4_IN, PC4_OUT, PC4_IN_PU), | ||
221 | PINMUX_DATA(PC3_DATA, PC3_IN, PC3_OUT, PC3_IN_PU), | ||
222 | PINMUX_DATA(PC2_DATA, PC2_IN, PC2_OUT, PC2_IN_PU), | ||
223 | PINMUX_DATA(PC1_DATA, PC1_IN, PC1_OUT, PC1_IN_PU), | ||
224 | PINMUX_DATA(PC0_DATA, PC0_IN, PC0_OUT, PC0_IN_PU), | ||
225 | |||
226 | /* PD GPIO */ | ||
227 | PINMUX_DATA(PD7_DATA, PD7_IN, PD7_OUT, PD7_IN_PU), | ||
228 | PINMUX_DATA(PD6_DATA, PD6_IN, PD6_OUT, PD6_IN_PU), | ||
229 | PINMUX_DATA(PD5_DATA, PD5_IN, PD5_OUT, PD5_IN_PU), | ||
230 | PINMUX_DATA(PD4_DATA, PD4_IN, PD4_OUT, PD4_IN_PU), | ||
231 | PINMUX_DATA(PD3_DATA, PD3_IN, PD3_OUT, PD3_IN_PU), | ||
232 | PINMUX_DATA(PD2_DATA, PD2_IN, PD2_OUT, PD2_IN_PU), | ||
233 | PINMUX_DATA(PD1_DATA, PD1_IN, PD1_OUT, PD1_IN_PU), | ||
234 | PINMUX_DATA(PD0_DATA, PD0_IN, PD0_OUT, PD0_IN_PU), | ||
235 | |||
236 | /* PE GPIO */ | ||
237 | PINMUX_DATA(PE7_DATA, PE7_IN, PE7_OUT, PE7_IN_PU), | ||
238 | PINMUX_DATA(PE6_DATA, PE6_IN, PE6_OUT, PE6_IN_PU), | ||
239 | |||
240 | /* PF GPIO */ | ||
241 | PINMUX_DATA(PF7_DATA, PF7_IN, PF7_OUT, PF7_IN_PU), | ||
242 | PINMUX_DATA(PF6_DATA, PF6_IN, PF6_OUT, PF6_IN_PU), | ||
243 | PINMUX_DATA(PF5_DATA, PF5_IN, PF5_OUT, PF5_IN_PU), | ||
244 | PINMUX_DATA(PF4_DATA, PF4_IN, PF4_OUT, PF4_IN_PU), | ||
245 | PINMUX_DATA(PF3_DATA, PF3_IN, PF3_OUT, PF3_IN_PU), | ||
246 | PINMUX_DATA(PF2_DATA, PF2_IN, PF2_OUT, PF2_IN_PU), | ||
247 | PINMUX_DATA(PF1_DATA, PF1_IN, PF1_OUT, PF1_IN_PU), | ||
248 | PINMUX_DATA(PF0_DATA, PF0_IN, PF0_OUT, PF0_IN_PU), | ||
249 | |||
250 | /* PG GPIO */ | ||
251 | PINMUX_DATA(PG7_DATA, PG7_IN, PG7_OUT, PG7_IN_PU), | ||
252 | PINMUX_DATA(PG6_DATA, PG6_IN, PG6_OUT, PG6_IN_PU), | ||
253 | PINMUX_DATA(PG5_DATA, PG5_IN, PG5_OUT, PG5_IN_PU), | ||
254 | |||
255 | /* PH GPIO */ | ||
256 | PINMUX_DATA(PH7_DATA, PH7_IN, PH7_OUT, PH7_IN_PU), | ||
257 | PINMUX_DATA(PH6_DATA, PH6_IN, PH6_OUT, PH6_IN_PU), | ||
258 | PINMUX_DATA(PH5_DATA, PH5_IN, PH5_OUT, PH5_IN_PU), | ||
259 | PINMUX_DATA(PH4_DATA, PH4_IN, PH4_OUT, PH4_IN_PU), | ||
260 | PINMUX_DATA(PH3_DATA, PH3_IN, PH3_OUT, PH3_IN_PU), | ||
261 | PINMUX_DATA(PH2_DATA, PH2_IN, PH2_OUT, PH2_IN_PU), | ||
262 | PINMUX_DATA(PH1_DATA, PH1_IN, PH1_OUT, PH1_IN_PU), | ||
263 | PINMUX_DATA(PH0_DATA, PH0_IN, PH0_OUT, PH0_IN_PU), | ||
264 | |||
265 | /* PJ GPIO */ | ||
266 | PINMUX_DATA(PJ7_DATA, PJ7_IN, PJ7_OUT, PJ7_IN_PU), | ||
267 | PINMUX_DATA(PJ6_DATA, PJ6_IN, PJ6_OUT, PJ6_IN_PU), | ||
268 | PINMUX_DATA(PJ5_DATA, PJ5_IN, PJ5_OUT, PJ5_IN_PU), | ||
269 | PINMUX_DATA(PJ4_DATA, PJ4_IN, PJ4_OUT, PJ4_IN_PU), | ||
270 | PINMUX_DATA(PJ3_DATA, PJ3_IN, PJ3_OUT, PJ3_IN_PU), | ||
271 | PINMUX_DATA(PJ2_DATA, PJ2_IN, PJ2_OUT, PJ2_IN_PU), | ||
272 | PINMUX_DATA(PJ1_DATA, PJ1_IN, PJ1_OUT, PJ1_IN_PU), | ||
273 | |||
274 | /* PA FN */ | ||
275 | PINMUX_DATA(CDE_MARK, P1MSEL2_0, PA7_FN), | ||
276 | PINMUX_DATA(DISP_MARK, P1MSEL2_0, PA6_FN), | ||
277 | PINMUX_DATA(DR5_MARK, P1MSEL2_0, PA5_FN), | ||
278 | PINMUX_DATA(DR4_MARK, P1MSEL2_0, PA4_FN), | ||
279 | PINMUX_DATA(DR3_MARK, P1MSEL2_0, PA3_FN), | ||
280 | PINMUX_DATA(DR2_MARK, P1MSEL2_0, PA2_FN), | ||
281 | PINMUX_DATA(DR1_MARK, P1MSEL2_0, PA1_FN), | ||
282 | PINMUX_DATA(DR0_MARK, P1MSEL2_0, PA0_FN), | ||
283 | PINMUX_DATA(ETH_MAGIC_MARK, P1MSEL2_1, PA7_FN), | ||
284 | PINMUX_DATA(ETH_LINK_MARK, P1MSEL2_1, PA6_FN), | ||
285 | PINMUX_DATA(ETH_TX_ER_MARK, P1MSEL2_1, PA5_FN), | ||
286 | PINMUX_DATA(ETH_TX_EN_MARK, P1MSEL2_1, PA4_FN), | ||
287 | PINMUX_DATA(ETH_TXD3_MARK, P1MSEL2_1, PA3_FN), | ||
288 | PINMUX_DATA(ETH_TXD2_MARK, P1MSEL2_1, PA2_FN), | ||
289 | PINMUX_DATA(ETH_TXD1_MARK, P1MSEL2_1, PA1_FN), | ||
290 | PINMUX_DATA(ETH_TXD0_MARK, P1MSEL2_1, PA0_FN), | ||
291 | |||
292 | /* PB FN */ | ||
293 | PINMUX_DATA(VSYNC_MARK, P1MSEL3_0, PB7_FN), | ||
294 | PINMUX_DATA(ODDF_MARK, P1MSEL3_0, PB6_FN), | ||
295 | PINMUX_DATA(DG5_MARK, P1MSEL2_0, PB5_FN), | ||
296 | PINMUX_DATA(DG4_MARK, P1MSEL2_0, PB4_FN), | ||
297 | PINMUX_DATA(DG3_MARK, P1MSEL2_0, PB3_FN), | ||
298 | PINMUX_DATA(DG2_MARK, P1MSEL2_0, PB2_FN), | ||
299 | PINMUX_DATA(DG1_MARK, P1MSEL2_0, PB1_FN), | ||
300 | PINMUX_DATA(DG0_MARK, P1MSEL2_0, PB0_FN), | ||
301 | PINMUX_DATA(HSPI_CLK_MARK, P1MSEL3_1, PB7_FN), | ||
302 | PINMUX_DATA(HSPI_CS_MARK, P1MSEL3_1, PB6_FN), | ||
303 | PINMUX_DATA(ETH_MDIO_MARK, P1MSEL2_1, PB5_FN), | ||
304 | PINMUX_DATA(ETH_RX_CLK_MARK, P1MSEL2_1, PB4_FN), | ||
305 | PINMUX_DATA(ETH_MDC_MARK, P1MSEL2_1, PB3_FN), | ||
306 | PINMUX_DATA(ETH_COL_MARK, P1MSEL2_1, PB2_FN), | ||
307 | PINMUX_DATA(ETH_TX_CLK_MARK, P1MSEL2_1, PB1_FN), | ||
308 | PINMUX_DATA(ETH_CRS_MARK, P1MSEL2_1, PB0_FN), | ||
309 | |||
310 | /* PC FN */ | ||
311 | PINMUX_DATA(DCLKIN_MARK, P1MSEL3_0, PC7_FN), | ||
312 | PINMUX_DATA(HSYNC_MARK, P1MSEL3_0, PC6_FN), | ||
313 | PINMUX_DATA(DB5_MARK, P1MSEL2_0, PC5_FN), | ||
314 | PINMUX_DATA(DB4_MARK, P1MSEL2_0, PC4_FN), | ||
315 | PINMUX_DATA(DB3_MARK, P1MSEL2_0, PC3_FN), | ||
316 | PINMUX_DATA(DB2_MARK, P1MSEL2_0, PC2_FN), | ||
317 | PINMUX_DATA(DB1_MARK, P1MSEL2_0, PC1_FN), | ||
318 | PINMUX_DATA(DB0_MARK, P1MSEL2_0, PC0_FN), | ||
319 | |||
320 | PINMUX_DATA(HSPI_RX_MARK, P1MSEL3_1, PC7_FN), | ||
321 | PINMUX_DATA(HSPI_TX_MARK, P1MSEL3_1, PC6_FN), | ||
322 | PINMUX_DATA(ETH_RXD3_MARK, P1MSEL2_1, PC5_FN), | ||
323 | PINMUX_DATA(ETH_RXD2_MARK, P1MSEL2_1, PC4_FN), | ||
324 | PINMUX_DATA(ETH_RXD1_MARK, P1MSEL2_1, PC3_FN), | ||
325 | PINMUX_DATA(ETH_RXD0_MARK, P1MSEL2_1, PC2_FN), | ||
326 | PINMUX_DATA(ETH_RX_DV_MARK, P1MSEL2_1, PC1_FN), | ||
327 | PINMUX_DATA(ETH_RX_ER_MARK, P1MSEL2_1, PC0_FN), | ||
328 | |||
329 | /* PD FN */ | ||
330 | PINMUX_DATA(DCLKOUT_MARK, PD7_FN), | ||
331 | PINMUX_DATA(SCIF1_SCK_MARK, PD6_FN), | ||
332 | PINMUX_DATA(SCIF1_RXD_MARK, PD5_FN), | ||
333 | PINMUX_DATA(SCIF1_TXD_MARK, PD4_FN), | ||
334 | PINMUX_DATA(DACK1_MARK, P1MSEL13_1, P1MSEL12_0, PD3_FN), | ||
335 | PINMUX_DATA(BACK_MARK, P1MSEL13_0, P1MSEL12_1, PD3_FN), | ||
336 | PINMUX_DATA(FALE_MARK, P1MSEL13_0, P1MSEL12_0, PD3_FN), | ||
337 | PINMUX_DATA(DACK0_MARK, P1MSEL14_1, PD2_FN), | ||
338 | PINMUX_DATA(FCLE_MARK, P1MSEL14_0, PD2_FN), | ||
339 | PINMUX_DATA(DREQ1_MARK, P1MSEL10_0, P1MSEL9_1, PD1_FN), | ||
340 | PINMUX_DATA(BREQ_MARK, P1MSEL10_1, P1MSEL9_0, PD1_FN), | ||
341 | PINMUX_DATA(USB_OVC1_MARK, P1MSEL10_0, P1MSEL9_0, PD1_FN), | ||
342 | PINMUX_DATA(DREQ0_MARK, P1MSEL11_1, PD0_FN), | ||
343 | PINMUX_DATA(USB_OVC0_MARK, P1MSEL11_0, PD0_FN), | ||
344 | |||
345 | /* PE FN */ | ||
346 | PINMUX_DATA(USB_PENC1_MARK, PE7_FN), | ||
347 | PINMUX_DATA(USB_PENC0_MARK, PE6_FN), | ||
348 | |||
349 | /* PF FN */ | ||
350 | PINMUX_DATA(HAC1_SDOUT_MARK, P2MSEL15_0, P2MSEL14_0, PF7_FN), | ||
351 | PINMUX_DATA(HAC1_SDIN_MARK, P2MSEL15_0, P2MSEL14_0, PF6_FN), | ||
352 | PINMUX_DATA(HAC1_SYNC_MARK, P2MSEL15_0, P2MSEL14_0, PF5_FN), | ||
353 | PINMUX_DATA(HAC1_BITCLK_MARK, P2MSEL15_0, P2MSEL14_0, PF4_FN), | ||
354 | PINMUX_DATA(HAC0_SDOUT_MARK, P2MSEL13_0, P2MSEL12_0, PF3_FN), | ||
355 | PINMUX_DATA(HAC0_SDIN_MARK, P2MSEL13_0, P2MSEL12_0, PF2_FN), | ||
356 | PINMUX_DATA(HAC0_SYNC_MARK, P2MSEL13_0, P2MSEL12_0, PF1_FN), | ||
357 | PINMUX_DATA(HAC0_BITCLK_MARK, P2MSEL13_0, P2MSEL12_0, PF0_FN), | ||
358 | PINMUX_DATA(SSI1_SDATA_MARK, P2MSEL15_0, P2MSEL14_1, PF7_FN), | ||
359 | PINMUX_DATA(SSI1_SCK_MARK, P2MSEL15_0, P2MSEL14_1, PF6_FN), | ||
360 | PINMUX_DATA(SSI1_WS_MARK, P2MSEL15_0, P2MSEL14_1, PF5_FN), | ||
361 | PINMUX_DATA(SSI1_CLK_MARK, P2MSEL15_0, P2MSEL14_1, PF4_FN), | ||
362 | PINMUX_DATA(SSI0_SDATA_MARK, P2MSEL13_0, P2MSEL12_1, PF3_FN), | ||
363 | PINMUX_DATA(SSI0_SCK_MARK, P2MSEL13_0, P2MSEL12_1, PF2_FN), | ||
364 | PINMUX_DATA(SSI0_WS_MARK, P2MSEL13_0, P2MSEL12_1, PF1_FN), | ||
365 | PINMUX_DATA(SSI0_CLK_MARK, P2MSEL13_0, P2MSEL12_1, PF0_FN), | ||
366 | PINMUX_DATA(SDIF1CMD_MARK, P2MSEL15_1, P2MSEL14_0, PF7_FN), | ||
367 | PINMUX_DATA(SDIF1CD_MARK, P2MSEL15_1, P2MSEL14_0, PF6_FN), | ||
368 | PINMUX_DATA(SDIF1WP_MARK, P2MSEL15_1, P2MSEL14_0, PF5_FN), | ||
369 | PINMUX_DATA(SDIF1CLK_MARK, P2MSEL15_1, P2MSEL14_0, PF4_FN), | ||
370 | PINMUX_DATA(SDIF1D3_MARK, P2MSEL13_1, P2MSEL12_0, PF3_FN), | ||
371 | PINMUX_DATA(SDIF1D2_MARK, P2MSEL13_1, P2MSEL12_0, PF2_FN), | ||
372 | PINMUX_DATA(SDIF1D1_MARK, P2MSEL13_1, P2MSEL12_0, PF1_FN), | ||
373 | PINMUX_DATA(SDIF1D0_MARK, P2MSEL13_1, P2MSEL12_0, PF0_FN), | ||
374 | |||
375 | /* PG FN */ | ||
376 | PINMUX_DATA(SCIF3_SCK_MARK, P1MSEL8_0, PG7_FN), | ||
377 | PINMUX_DATA(SSI2_SDATA_MARK, P1MSEL8_1, PG7_FN), | ||
378 | PINMUX_DATA(SCIF3_RXD_MARK, P1MSEL7_0, P1MSEL6_0, PG6_FN), | ||
379 | PINMUX_DATA(SSI2_SCK_MARK, P1MSEL7_1, P1MSEL6_0, PG6_FN), | ||
380 | PINMUX_DATA(TCLK_MARK, P1MSEL7_0, P1MSEL6_1, PG6_FN), | ||
381 | PINMUX_DATA(SCIF3_TXD_MARK, P1MSEL5_0, P1MSEL4_0, PG5_FN), | ||
382 | PINMUX_DATA(SSI2_WS_MARK, P1MSEL5_1, P1MSEL4_0, PG5_FN), | ||
383 | PINMUX_DATA(HAC_RES_MARK, P1MSEL5_0, P1MSEL4_1, PG5_FN), | ||
384 | |||
385 | /* PH FN */ | ||
386 | PINMUX_DATA(DACK3_MARK, P2MSEL4_0, PH7_FN), | ||
387 | PINMUX_DATA(SDIF0CMD_MARK, P2MSEL4_1, PH7_FN), | ||
388 | PINMUX_DATA(DACK2_MARK, P2MSEL4_0, PH6_FN), | ||
389 | PINMUX_DATA(SDIF0CD_MARK, P2MSEL4_1, PH6_FN), | ||
390 | PINMUX_DATA(DREQ3_MARK, P2MSEL4_0, PH5_FN), | ||
391 | PINMUX_DATA(SDIF0WP_MARK, P2MSEL4_1, PH5_FN), | ||
392 | PINMUX_DATA(DREQ2_MARK, P2MSEL3_0, P2MSEL2_1, PH4_FN), | ||
393 | PINMUX_DATA(SDIF0CLK_MARK, P2MSEL3_1, P2MSEL2_0, PH4_FN), | ||
394 | PINMUX_DATA(SCIF0_CTS_MARK, P2MSEL3_0, P2MSEL2_0, PH4_FN), | ||
395 | PINMUX_DATA(SDIF0D3_MARK, P2MSEL1_1, P2MSEL0_0, PH3_FN), | ||
396 | PINMUX_DATA(SCIF0_RTS_MARK, P2MSEL1_0, P2MSEL0_0, PH3_FN), | ||
397 | PINMUX_DATA(IRL7_MARK, P2MSEL1_0, P2MSEL0_1, PH3_FN), | ||
398 | PINMUX_DATA(SDIF0D2_MARK, P2MSEL1_1, P2MSEL0_0, PH2_FN), | ||
399 | PINMUX_DATA(SCIF0_SCK_MARK, P2MSEL1_0, P2MSEL0_0, PH2_FN), | ||
400 | PINMUX_DATA(IRL6_MARK, P2MSEL1_0, P2MSEL0_1, PH2_FN), | ||
401 | PINMUX_DATA(SDIF0D1_MARK, P2MSEL1_1, P2MSEL0_0, PH1_FN), | ||
402 | PINMUX_DATA(SCIF0_RXD_MARK, P2MSEL1_0, P2MSEL0_0, PH1_FN), | ||
403 | PINMUX_DATA(IRL5_MARK, P2MSEL1_0, P2MSEL0_1, PH1_FN), | ||
404 | PINMUX_DATA(SDIF0D0_MARK, P2MSEL1_1, P2MSEL0_0, PH0_FN), | ||
405 | PINMUX_DATA(SCIF0_TXD_MARK, P2MSEL1_0, P2MSEL0_0, PH0_FN), | ||
406 | PINMUX_DATA(IRL4_MARK, P2MSEL1_0, P2MSEL0_1, PH0_FN), | ||
407 | |||
408 | /* PJ FN */ | ||
409 | PINMUX_DATA(SCIF5_SCK_MARK, P2MSEL11_1, PJ7_FN), | ||
410 | PINMUX_DATA(FRB_MARK, P2MSEL11_0, PJ7_FN), | ||
411 | PINMUX_DATA(SCIF5_RXD_MARK, P2MSEL10_0, PJ6_FN), | ||
412 | PINMUX_DATA(IOIS16_MARK, P2MSEL10_1, PJ6_FN), | ||
413 | PINMUX_DATA(SCIF5_TXD_MARK, P2MSEL10_0, PJ5_FN), | ||
414 | PINMUX_DATA(CE2B_MARK, P2MSEL10_1, PJ5_FN), | ||
415 | PINMUX_DATA(DRAK3_MARK, P2MSEL7_0, PJ4_FN), | ||
416 | PINMUX_DATA(CE2A_MARK, P2MSEL7_1, PJ4_FN), | ||
417 | PINMUX_DATA(SCIF4_SCK_MARK, P2MSEL9_0, P2MSEL8_0, PJ3_FN), | ||
418 | PINMUX_DATA(DRAK2_MARK, P2MSEL9_0, P2MSEL8_1, PJ3_FN), | ||
419 | PINMUX_DATA(SSI3_WS_MARK, P2MSEL9_1, P2MSEL8_0, PJ3_FN), | ||
420 | PINMUX_DATA(SCIF4_RXD_MARK, P2MSEL6_1, P2MSEL5_0, PJ2_FN), | ||
421 | PINMUX_DATA(DRAK1_MARK, P2MSEL6_0, P2MSEL5_1, PJ2_FN), | ||
422 | PINMUX_DATA(FSTATUS_MARK, P2MSEL6_0, P2MSEL5_0, PJ2_FN), | ||
423 | PINMUX_DATA(SSI3_SDATA_MARK, P2MSEL6_1, P2MSEL5_1, PJ2_FN), | ||
424 | PINMUX_DATA(SCIF4_TXD_MARK, P2MSEL6_1, P2MSEL5_0, PJ1_FN), | ||
425 | PINMUX_DATA(DRAK0_MARK, P2MSEL6_0, P2MSEL5_1, PJ1_FN), | ||
426 | PINMUX_DATA(FSE_MARK, P2MSEL6_0, P2MSEL5_0, PJ1_FN), | ||
427 | PINMUX_DATA(SSI3_SCK_MARK, P2MSEL6_1, P2MSEL5_1, PJ1_FN), | ||
428 | }; | ||
429 | |||
430 | static struct pinmux_gpio pinmux_gpios[] = { | ||
431 | /* PA */ | ||
432 | PINMUX_GPIO(GPIO_PA7, PA7_DATA), | ||
433 | PINMUX_GPIO(GPIO_PA6, PA6_DATA), | ||
434 | PINMUX_GPIO(GPIO_PA5, PA5_DATA), | ||
435 | PINMUX_GPIO(GPIO_PA4, PA4_DATA), | ||
436 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
437 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
438 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
439 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
440 | |||
441 | /* PB */ | ||
442 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
443 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
444 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
445 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
446 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
447 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
448 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
449 | PINMUX_GPIO(GPIO_PB0, PB0_DATA), | ||
450 | |||
451 | /* PC */ | ||
452 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
453 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
454 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
455 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
456 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
457 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
458 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
459 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
460 | |||
461 | /* PD */ | ||
462 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
463 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
464 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
465 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
466 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
467 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
468 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
469 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
470 | |||
471 | /* PE */ | ||
472 | PINMUX_GPIO(GPIO_PE7, PE7_DATA), | ||
473 | PINMUX_GPIO(GPIO_PE6, PE6_DATA), | ||
474 | |||
475 | /* PF */ | ||
476 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
477 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
478 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
479 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
480 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
481 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
482 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
483 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
484 | |||
485 | /* PG */ | ||
486 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
487 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
488 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
489 | |||
490 | /* PH */ | ||
491 | PINMUX_GPIO(GPIO_PH7, PH7_DATA), | ||
492 | PINMUX_GPIO(GPIO_PH6, PH6_DATA), | ||
493 | PINMUX_GPIO(GPIO_PH5, PH5_DATA), | ||
494 | PINMUX_GPIO(GPIO_PH4, PH4_DATA), | ||
495 | PINMUX_GPIO(GPIO_PH3, PH3_DATA), | ||
496 | PINMUX_GPIO(GPIO_PH2, PH2_DATA), | ||
497 | PINMUX_GPIO(GPIO_PH1, PH1_DATA), | ||
498 | PINMUX_GPIO(GPIO_PH0, PH0_DATA), | ||
499 | |||
500 | /* PJ */ | ||
501 | PINMUX_GPIO(GPIO_PJ7, PJ7_DATA), | ||
502 | PINMUX_GPIO(GPIO_PJ6, PJ6_DATA), | ||
503 | PINMUX_GPIO(GPIO_PJ5, PJ5_DATA), | ||
504 | PINMUX_GPIO(GPIO_PJ4, PJ4_DATA), | ||
505 | PINMUX_GPIO(GPIO_PJ3, PJ3_DATA), | ||
506 | PINMUX_GPIO(GPIO_PJ2, PJ2_DATA), | ||
507 | PINMUX_GPIO(GPIO_PJ1, PJ1_DATA), | ||
508 | |||
509 | /* FN */ | ||
510 | PINMUX_GPIO(GPIO_FN_CDE, CDE_MARK), | ||
511 | PINMUX_GPIO(GPIO_FN_ETH_MAGIC, ETH_MAGIC_MARK), | ||
512 | PINMUX_GPIO(GPIO_FN_DISP, DISP_MARK), | ||
513 | PINMUX_GPIO(GPIO_FN_ETH_LINK, ETH_LINK_MARK), | ||
514 | PINMUX_GPIO(GPIO_FN_DR5, DR5_MARK), | ||
515 | PINMUX_GPIO(GPIO_FN_ETH_TX_ER, ETH_TX_ER_MARK), | ||
516 | PINMUX_GPIO(GPIO_FN_DR4, DR4_MARK), | ||
517 | PINMUX_GPIO(GPIO_FN_ETH_TX_EN, ETH_TX_EN_MARK), | ||
518 | PINMUX_GPIO(GPIO_FN_DR3, DR3_MARK), | ||
519 | PINMUX_GPIO(GPIO_FN_ETH_TXD3, ETH_TXD3_MARK), | ||
520 | PINMUX_GPIO(GPIO_FN_DR2, DR2_MARK), | ||
521 | PINMUX_GPIO(GPIO_FN_ETH_TXD2, ETH_TXD2_MARK), | ||
522 | PINMUX_GPIO(GPIO_FN_DR1, DR1_MARK), | ||
523 | PINMUX_GPIO(GPIO_FN_ETH_TXD1, ETH_TXD1_MARK), | ||
524 | PINMUX_GPIO(GPIO_FN_DR0, DR0_MARK), | ||
525 | PINMUX_GPIO(GPIO_FN_ETH_TXD0, ETH_TXD0_MARK), | ||
526 | PINMUX_GPIO(GPIO_FN_VSYNC, VSYNC_MARK), | ||
527 | PINMUX_GPIO(GPIO_FN_HSPI_CLK, HSPI_CLK_MARK), | ||
528 | PINMUX_GPIO(GPIO_FN_ODDF, ODDF_MARK), | ||
529 | PINMUX_GPIO(GPIO_FN_HSPI_CS, HSPI_CS_MARK), | ||
530 | PINMUX_GPIO(GPIO_FN_DG5, DG5_MARK), | ||
531 | PINMUX_GPIO(GPIO_FN_ETH_MDIO, ETH_MDIO_MARK), | ||
532 | PINMUX_GPIO(GPIO_FN_DG4, DG4_MARK), | ||
533 | PINMUX_GPIO(GPIO_FN_ETH_RX_CLK, ETH_RX_CLK_MARK), | ||
534 | PINMUX_GPIO(GPIO_FN_DG3, DG3_MARK), | ||
535 | PINMUX_GPIO(GPIO_FN_ETH_MDC, ETH_MDC_MARK), | ||
536 | PINMUX_GPIO(GPIO_FN_DG2, DG2_MARK), | ||
537 | PINMUX_GPIO(GPIO_FN_ETH_COL, ETH_COL_MARK), | ||
538 | PINMUX_GPIO(GPIO_FN_DG1, DG1_MARK), | ||
539 | PINMUX_GPIO(GPIO_FN_ETH_TX_CLK, ETH_TX_CLK_MARK), | ||
540 | PINMUX_GPIO(GPIO_FN_DG0, DG0_MARK), | ||
541 | PINMUX_GPIO(GPIO_FN_ETH_CRS, ETH_CRS_MARK), | ||
542 | PINMUX_GPIO(GPIO_FN_DCLKIN, DCLKIN_MARK), | ||
543 | PINMUX_GPIO(GPIO_FN_HSPI_RX, HSPI_RX_MARK), | ||
544 | PINMUX_GPIO(GPIO_FN_HSYNC, HSYNC_MARK), | ||
545 | PINMUX_GPIO(GPIO_FN_HSPI_TX, HSPI_TX_MARK), | ||
546 | PINMUX_GPIO(GPIO_FN_DB5, DB5_MARK), | ||
547 | PINMUX_GPIO(GPIO_FN_ETH_RXD3, ETH_RXD3_MARK), | ||
548 | PINMUX_GPIO(GPIO_FN_DB4, DB4_MARK), | ||
549 | PINMUX_GPIO(GPIO_FN_ETH_RXD2, ETH_RXD2_MARK), | ||
550 | PINMUX_GPIO(GPIO_FN_DB3, DB3_MARK), | ||
551 | PINMUX_GPIO(GPIO_FN_ETH_RXD1, ETH_RXD1_MARK), | ||
552 | PINMUX_GPIO(GPIO_FN_DB2, DB2_MARK), | ||
553 | PINMUX_GPIO(GPIO_FN_ETH_RXD0, ETH_RXD0_MARK), | ||
554 | PINMUX_GPIO(GPIO_FN_DB1, DB1_MARK), | ||
555 | PINMUX_GPIO(GPIO_FN_ETH_RX_DV, ETH_RX_DV_MARK), | ||
556 | PINMUX_GPIO(GPIO_FN_DB0, DB0_MARK), | ||
557 | PINMUX_GPIO(GPIO_FN_ETH_RX_ER, ETH_RX_ER_MARK), | ||
558 | PINMUX_GPIO(GPIO_FN_DCLKOUT, DCLKOUT_MARK), | ||
559 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
560 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
561 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
562 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
563 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
564 | PINMUX_GPIO(GPIO_FN_FALE, FALE_MARK), | ||
565 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
566 | PINMUX_GPIO(GPIO_FN_FCLE, FCLE_MARK), | ||
567 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
568 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
569 | PINMUX_GPIO(GPIO_FN_USB_OVC1, USB_OVC1_MARK), | ||
570 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
571 | PINMUX_GPIO(GPIO_FN_USB_OVC0, USB_OVC0_MARK), | ||
572 | PINMUX_GPIO(GPIO_FN_USB_PENC1, USB_PENC1_MARK), | ||
573 | PINMUX_GPIO(GPIO_FN_USB_PENC0, USB_PENC0_MARK), | ||
574 | PINMUX_GPIO(GPIO_FN_HAC1_SDOUT, HAC1_SDOUT_MARK), | ||
575 | PINMUX_GPIO(GPIO_FN_SSI1_SDATA, SSI1_SDATA_MARK), | ||
576 | PINMUX_GPIO(GPIO_FN_SDIF1CMD, SDIF1CMD_MARK), | ||
577 | PINMUX_GPIO(GPIO_FN_HAC1_SDIN, HAC1_SDIN_MARK), | ||
578 | PINMUX_GPIO(GPIO_FN_SSI1_SCK, SSI1_SCK_MARK), | ||
579 | PINMUX_GPIO(GPIO_FN_SDIF1CD, SDIF1CD_MARK), | ||
580 | PINMUX_GPIO(GPIO_FN_HAC1_SYNC, HAC1_SYNC_MARK), | ||
581 | PINMUX_GPIO(GPIO_FN_SSI1_WS, SSI1_WS_MARK), | ||
582 | PINMUX_GPIO(GPIO_FN_SDIF1WP, SDIF1WP_MARK), | ||
583 | PINMUX_GPIO(GPIO_FN_HAC1_BITCLK, HAC1_BITCLK_MARK), | ||
584 | PINMUX_GPIO(GPIO_FN_SSI1_CLK, SSI1_CLK_MARK), | ||
585 | PINMUX_GPIO(GPIO_FN_SDIF1CLK, SDIF1CLK_MARK), | ||
586 | PINMUX_GPIO(GPIO_FN_HAC0_SDOUT, HAC0_SDOUT_MARK), | ||
587 | PINMUX_GPIO(GPIO_FN_SSI0_SDATA, SSI0_SDATA_MARK), | ||
588 | PINMUX_GPIO(GPIO_FN_SDIF1D3, SDIF1D3_MARK), | ||
589 | PINMUX_GPIO(GPIO_FN_HAC0_SDIN, HAC0_SDIN_MARK), | ||
590 | PINMUX_GPIO(GPIO_FN_SSI0_SCK, SSI0_SCK_MARK), | ||
591 | PINMUX_GPIO(GPIO_FN_SDIF1D2, SDIF1D2_MARK), | ||
592 | PINMUX_GPIO(GPIO_FN_HAC0_SYNC, HAC0_SYNC_MARK), | ||
593 | PINMUX_GPIO(GPIO_FN_SSI0_WS, SSI0_WS_MARK), | ||
594 | PINMUX_GPIO(GPIO_FN_SDIF1D1, SDIF1D1_MARK), | ||
595 | PINMUX_GPIO(GPIO_FN_HAC0_BITCLK, HAC0_BITCLK_MARK), | ||
596 | PINMUX_GPIO(GPIO_FN_SSI0_CLK, SSI0_CLK_MARK), | ||
597 | PINMUX_GPIO(GPIO_FN_SDIF1D0, SDIF1D0_MARK), | ||
598 | PINMUX_GPIO(GPIO_FN_SCIF3_SCK, SCIF3_SCK_MARK), | ||
599 | PINMUX_GPIO(GPIO_FN_SSI2_SDATA, SSI2_SDATA_MARK), | ||
600 | PINMUX_GPIO(GPIO_FN_SCIF3_RXD, SCIF3_RXD_MARK), | ||
601 | PINMUX_GPIO(GPIO_FN_TCLK, TCLK_MARK), | ||
602 | PINMUX_GPIO(GPIO_FN_SSI2_SCK, SSI2_SCK_MARK), | ||
603 | PINMUX_GPIO(GPIO_FN_SCIF3_TXD, SCIF3_TXD_MARK), | ||
604 | PINMUX_GPIO(GPIO_FN_HAC_RES, HAC_RES_MARK), | ||
605 | PINMUX_GPIO(GPIO_FN_SSI2_WS, SSI2_WS_MARK), | ||
606 | PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), | ||
607 | PINMUX_GPIO(GPIO_FN_SDIF0CMD, SDIF0CMD_MARK), | ||
608 | PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), | ||
609 | PINMUX_GPIO(GPIO_FN_SDIF0CD, SDIF0CD_MARK), | ||
610 | PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), | ||
611 | PINMUX_GPIO(GPIO_FN_SDIF0WP, SDIF0WP_MARK), | ||
612 | PINMUX_GPIO(GPIO_FN_SCIF0_CTS, SCIF0_CTS_MARK), | ||
613 | PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), | ||
614 | PINMUX_GPIO(GPIO_FN_SDIF0CLK, SDIF0CLK_MARK), | ||
615 | PINMUX_GPIO(GPIO_FN_SCIF0_RTS, SCIF0_RTS_MARK), | ||
616 | PINMUX_GPIO(GPIO_FN_IRL7, IRL7_MARK), | ||
617 | PINMUX_GPIO(GPIO_FN_SDIF0D3, SDIF0D3_MARK), | ||
618 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
619 | PINMUX_GPIO(GPIO_FN_IRL6, IRL6_MARK), | ||
620 | PINMUX_GPIO(GPIO_FN_SDIF0D2, SDIF0D2_MARK), | ||
621 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
622 | PINMUX_GPIO(GPIO_FN_IRL5, IRL5_MARK), | ||
623 | PINMUX_GPIO(GPIO_FN_SDIF0D1, SDIF0D1_MARK), | ||
624 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
625 | PINMUX_GPIO(GPIO_FN_IRL4, IRL4_MARK), | ||
626 | PINMUX_GPIO(GPIO_FN_SDIF0D0, SDIF0D0_MARK), | ||
627 | PINMUX_GPIO(GPIO_FN_SCIF5_SCK, SCIF5_SCK_MARK), | ||
628 | PINMUX_GPIO(GPIO_FN_FRB, FRB_MARK), | ||
629 | PINMUX_GPIO(GPIO_FN_SCIF5_RXD, SCIF5_RXD_MARK), | ||
630 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
631 | PINMUX_GPIO(GPIO_FN_SCIF5_TXD, SCIF5_TXD_MARK), | ||
632 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
633 | PINMUX_GPIO(GPIO_FN_DRAK3, DRAK3_MARK), | ||
634 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
635 | PINMUX_GPIO(GPIO_FN_SCIF4_SCK, SCIF4_SCK_MARK), | ||
636 | PINMUX_GPIO(GPIO_FN_DRAK2, DRAK2_MARK), | ||
637 | PINMUX_GPIO(GPIO_FN_SSI3_WS, SSI3_WS_MARK), | ||
638 | PINMUX_GPIO(GPIO_FN_SCIF4_RXD, SCIF4_RXD_MARK), | ||
639 | PINMUX_GPIO(GPIO_FN_DRAK1, DRAK1_MARK), | ||
640 | PINMUX_GPIO(GPIO_FN_SSI3_SDATA, SSI3_SDATA_MARK), | ||
641 | PINMUX_GPIO(GPIO_FN_FSTATUS, FSTATUS_MARK), | ||
642 | PINMUX_GPIO(GPIO_FN_SCIF4_TXD, SCIF4_TXD_MARK), | ||
643 | PINMUX_GPIO(GPIO_FN_DRAK0, DRAK0_MARK), | ||
644 | PINMUX_GPIO(GPIO_FN_SSI3_SCK, SSI3_SCK_MARK), | ||
645 | PINMUX_GPIO(GPIO_FN_FSE, FSE_MARK), | ||
646 | }; | ||
647 | |||
648 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
649 | { PINMUX_CFG_REG("PACR", 0xffcc0000, 16, 2) { | ||
650 | PA7_FN, PA7_OUT, PA7_IN, PA7_IN_PU, | ||
651 | PA6_FN, PA6_OUT, PA6_IN, PA6_IN_PU, | ||
652 | PA5_FN, PA5_OUT, PA5_IN, PA5_IN_PU, | ||
653 | PA4_FN, PA4_OUT, PA4_IN, PA4_IN_PU, | ||
654 | PA3_FN, PA3_OUT, PA3_IN, PA3_IN_PU, | ||
655 | PA2_FN, PA2_OUT, PA2_IN, PA2_IN_PU, | ||
656 | PA1_FN, PA1_OUT, PA1_IN, PA1_IN_PU, | ||
657 | PA0_FN, PA0_OUT, PA0_IN, PA0_IN_PU } | ||
658 | }, | ||
659 | { PINMUX_CFG_REG("PBCR", 0xffcc0002, 16, 2) { | ||
660 | PB7_FN, PB7_OUT, PB7_IN, PB7_IN_PU, | ||
661 | PB6_FN, PB6_OUT, PB6_IN, PB6_IN_PU, | ||
662 | PB5_FN, PB5_OUT, PB5_IN, PB5_IN_PU, | ||
663 | PB4_FN, PB4_OUT, PB4_IN, PB4_IN_PU, | ||
664 | PB3_FN, PB3_OUT, PB3_IN, PB3_IN_PU, | ||
665 | PB2_FN, PB2_OUT, PB2_IN, PB2_IN_PU, | ||
666 | PB1_FN, PB1_OUT, PB1_IN, PB1_IN_PU, | ||
667 | PB0_FN, PB0_OUT, PB0_IN, PB0_IN_PU } | ||
668 | }, | ||
669 | { PINMUX_CFG_REG("PCCR", 0xffcc0004, 16, 2) { | ||
670 | PC7_FN, PC7_OUT, PC7_IN, PC7_IN_PU, | ||
671 | PC6_FN, PC6_OUT, PC6_IN, PC6_IN_PU, | ||
672 | PC5_FN, PC5_OUT, PC5_IN, PC5_IN_PU, | ||
673 | PC4_FN, PC4_OUT, PC4_IN, PC4_IN_PU, | ||
674 | PC3_FN, PC3_OUT, PC3_IN, PC3_IN_PU, | ||
675 | PC2_FN, PC2_OUT, PC2_IN, PC2_IN_PU, | ||
676 | PC1_FN, PC1_OUT, PC1_IN, PC1_IN_PU, | ||
677 | PC0_FN, PC0_OUT, PC0_IN, PC0_IN_PU } | ||
678 | }, | ||
679 | { PINMUX_CFG_REG("PDCR", 0xffcc0006, 16, 2) { | ||
680 | PD7_FN, PD7_OUT, PD7_IN, PD7_IN_PU, | ||
681 | PD6_FN, PD6_OUT, PD6_IN, PD6_IN_PU, | ||
682 | PD5_FN, PD5_OUT, PD5_IN, PD5_IN_PU, | ||
683 | PD4_FN, PD4_OUT, PD4_IN, PD4_IN_PU, | ||
684 | PD3_FN, PD3_OUT, PD3_IN, PD3_IN_PU, | ||
685 | PD2_FN, PD2_OUT, PD2_IN, PD2_IN_PU, | ||
686 | PD1_FN, PD1_OUT, PD1_IN, PD1_IN_PU, | ||
687 | PD0_FN, PD0_OUT, PD0_IN, PD0_IN_PU } | ||
688 | }, | ||
689 | { PINMUX_CFG_REG("PECR", 0xffcc0008, 16, 2) { | ||
690 | PE7_FN, PE7_OUT, PE7_IN, PE7_IN_PU, | ||
691 | PE6_FN, PE6_OUT, PE6_IN, PE6_IN_PU, | ||
692 | 0, 0, 0, 0, | ||
693 | 0, 0, 0, 0, | ||
694 | 0, 0, 0, 0, | ||
695 | 0, 0, 0, 0, | ||
696 | 0, 0, 0, 0, | ||
697 | 0, 0, 0, 0, } | ||
698 | }, | ||
699 | { PINMUX_CFG_REG("PFCR", 0xffcc000a, 16, 2) { | ||
700 | PF7_FN, PF7_OUT, PF7_IN, PF7_IN_PU, | ||
701 | PF6_FN, PF6_OUT, PF6_IN, PF6_IN_PU, | ||
702 | PF5_FN, PF5_OUT, PF5_IN, PF5_IN_PU, | ||
703 | PF4_FN, PF4_OUT, PF4_IN, PF4_IN_PU, | ||
704 | PF3_FN, PF3_OUT, PF3_IN, PF3_IN_PU, | ||
705 | PF2_FN, PF2_OUT, PF2_IN, PF2_IN_PU, | ||
706 | PF1_FN, PF1_OUT, PF1_IN, PF1_IN_PU, | ||
707 | PF0_FN, PF0_OUT, PF0_IN, PF0_IN_PU } | ||
708 | }, | ||
709 | { PINMUX_CFG_REG("PGCR", 0xffcc000c, 16, 2) { | ||
710 | PG7_FN, PG7_OUT, PG7_IN, PG7_IN_PU, | ||
711 | PG6_FN, PG6_OUT, PG6_IN, PG6_IN_PU, | ||
712 | PG5_FN, PG5_OUT, PG5_IN, PG5_IN_PU, | ||
713 | 0, 0, 0, 0, | ||
714 | 0, 0, 0, 0, | ||
715 | 0, 0, 0, 0, | ||
716 | 0, 0, 0, 0, | ||
717 | 0, 0, 0, 0, } | ||
718 | }, | ||
719 | { PINMUX_CFG_REG("PHCR", 0xffcc000e, 16, 2) { | ||
720 | PH7_FN, PH7_OUT, PH7_IN, PH7_IN_PU, | ||
721 | PH6_FN, PH6_OUT, PH6_IN, PH6_IN_PU, | ||
722 | PH5_FN, PH5_OUT, PH5_IN, PH5_IN_PU, | ||
723 | PH4_FN, PH4_OUT, PH4_IN, PH4_IN_PU, | ||
724 | PH3_FN, PH3_OUT, PH3_IN, PH3_IN_PU, | ||
725 | PH2_FN, PH2_OUT, PH2_IN, PH2_IN_PU, | ||
726 | PH1_FN, PH1_OUT, PH1_IN, PH1_IN_PU, | ||
727 | PH0_FN, PH0_OUT, PH0_IN, PH0_IN_PU } | ||
728 | }, | ||
729 | { PINMUX_CFG_REG("PJCR", 0xffcc0010, 16, 2) { | ||
730 | PJ7_FN, PJ7_OUT, PJ7_IN, PJ7_IN_PU, | ||
731 | PJ6_FN, PJ6_OUT, PJ6_IN, PJ6_IN_PU, | ||
732 | PJ5_FN, PJ5_OUT, PJ5_IN, PJ5_IN_PU, | ||
733 | PJ4_FN, PJ4_OUT, PJ4_IN, PJ4_IN_PU, | ||
734 | PJ3_FN, PJ3_OUT, PJ3_IN, PJ3_IN_PU, | ||
735 | PJ2_FN, PJ2_OUT, PJ2_IN, PJ2_IN_PU, | ||
736 | PJ1_FN, PJ1_OUT, PJ1_IN, PJ1_IN_PU, | ||
737 | 0, 0, 0, 0, } | ||
738 | }, | ||
739 | { PINMUX_CFG_REG("P1MSELR", 0xffcc0080, 16, 1) { | ||
740 | 0, 0, | ||
741 | P1MSEL14_0, P1MSEL14_1, | ||
742 | P1MSEL13_0, P1MSEL13_1, | ||
743 | P1MSEL12_0, P1MSEL12_1, | ||
744 | P1MSEL11_0, P1MSEL11_1, | ||
745 | P1MSEL10_0, P1MSEL10_1, | ||
746 | P1MSEL9_0, P1MSEL9_1, | ||
747 | P1MSEL8_0, P1MSEL8_1, | ||
748 | P1MSEL7_0, P1MSEL7_1, | ||
749 | P1MSEL6_0, P1MSEL6_1, | ||
750 | P1MSEL5_0, P1MSEL5_1, | ||
751 | P1MSEL4_0, P1MSEL4_1, | ||
752 | P1MSEL3_0, P1MSEL3_1, | ||
753 | P1MSEL2_0, P1MSEL2_1, | ||
754 | P1MSEL1_0, P1MSEL1_1, | ||
755 | P1MSEL0_0, P1MSEL0_1 } | ||
756 | }, | ||
757 | { PINMUX_CFG_REG("P2MSELR", 0xffcc0082, 16, 1) { | ||
758 | P2MSEL15_0, P2MSEL15_1, | ||
759 | P2MSEL14_0, P2MSEL14_1, | ||
760 | P2MSEL13_0, P2MSEL13_1, | ||
761 | P2MSEL12_0, P2MSEL12_1, | ||
762 | P2MSEL11_0, P2MSEL11_1, | ||
763 | P2MSEL10_0, P2MSEL10_1, | ||
764 | P2MSEL9_0, P2MSEL9_1, | ||
765 | P2MSEL8_0, P2MSEL8_1, | ||
766 | P2MSEL7_0, P2MSEL7_1, | ||
767 | P2MSEL6_0, P2MSEL6_1, | ||
768 | P2MSEL5_0, P2MSEL5_1, | ||
769 | P2MSEL4_0, P2MSEL4_1, | ||
770 | P2MSEL3_0, P2MSEL3_1, | ||
771 | P2MSEL2_0, P2MSEL2_1, | ||
772 | P2MSEL1_0, P2MSEL1_1, | ||
773 | P2MSEL0_0, P2MSEL0_1 } | ||
774 | }, | ||
775 | {} | ||
776 | }; | ||
777 | |||
778 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
779 | { PINMUX_DATA_REG("PADR", 0xffcc0020, 8) { | ||
780 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
781 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA } | ||
782 | }, | ||
783 | { PINMUX_DATA_REG("PBDR", 0xffcc0022, 8) { | ||
784 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
785 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA } | ||
786 | }, | ||
787 | { PINMUX_DATA_REG("PCDR", 0xffcc0024, 8) { | ||
788 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
789 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA } | ||
790 | }, | ||
791 | { PINMUX_DATA_REG("PDDR", 0xffcc0026, 8) { | ||
792 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
793 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA } | ||
794 | }, | ||
795 | { PINMUX_DATA_REG("PEDR", 0xffcc0028, 8) { | ||
796 | PE7_DATA, PE6_DATA, | ||
797 | 0, 0, 0, 0, 0, 0 } | ||
798 | }, | ||
799 | { PINMUX_DATA_REG("PFDR", 0xffcc002a, 8) { | ||
800 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
801 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA } | ||
802 | }, | ||
803 | { PINMUX_DATA_REG("PGDR", 0xffcc002c, 8) { | ||
804 | PG7_DATA, PG6_DATA, PG5_DATA, 0, | ||
805 | 0, 0, 0, 0 } | ||
806 | }, | ||
807 | { PINMUX_DATA_REG("PHDR", 0xffcc002e, 8) { | ||
808 | PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA, | ||
809 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA } | ||
810 | }, | ||
811 | { PINMUX_DATA_REG("PJDR", 0xffcc0030, 8) { | ||
812 | PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA, | ||
813 | PJ3_DATA, PJ2_DATA, PJ1_DATA, 0 } | ||
814 | }, | ||
815 | { }, | ||
816 | }; | ||
817 | |||
818 | struct sh_pfc_soc_info sh7786_pinmux_info = { | ||
819 | .name = "sh7786_pfc", | ||
820 | .reserved_id = PINMUX_RESERVED, | ||
821 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
822 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
823 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
824 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
825 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
826 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
827 | |||
828 | .first_gpio = GPIO_PA7, | ||
829 | .last_gpio = GPIO_FN_IRL4, | ||
830 | |||
831 | .gpios = pinmux_gpios, | ||
832 | .cfg_regs = pinmux_config_regs, | ||
833 | .data_regs = pinmux_data_regs, | ||
834 | |||
835 | .gpio_data = pinmux_data, | ||
836 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
837 | }; | ||
diff --git a/drivers/pinctrl/sh-pfc/pfc-shx3.c b/drivers/pinctrl/sh-pfc/pfc-shx3.c new file mode 100644 index 000000000000..ccf6918b03c6 --- /dev/null +++ b/drivers/pinctrl/sh-pfc/pfc-shx3.c | |||
@@ -0,0 +1,582 @@ | |||
1 | /* | ||
2 | * SH-X3 prototype CPU pinmux | ||
3 | * | ||
4 | * Copyright (C) 2010 Paul Mundt | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | #include <linux/init.h> | ||
11 | #include <linux/kernel.h> | ||
12 | #include <cpu/shx3.h> | ||
13 | |||
14 | #include "sh_pfc.h" | ||
15 | |||
16 | enum { | ||
17 | PINMUX_RESERVED = 0, | ||
18 | |||
19 | PINMUX_DATA_BEGIN, | ||
20 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
21 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
22 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
23 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, | ||
24 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
25 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
26 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
27 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, | ||
28 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
29 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
30 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
31 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, | ||
32 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
33 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
34 | |||
35 | PH5_DATA, PH4_DATA, | ||
36 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, | ||
37 | PINMUX_DATA_END, | ||
38 | |||
39 | PINMUX_INPUT_BEGIN, | ||
40 | PA7_IN, PA6_IN, PA5_IN, PA4_IN, | ||
41 | PA3_IN, PA2_IN, PA1_IN, PA0_IN, | ||
42 | PB7_IN, PB6_IN, PB5_IN, PB4_IN, | ||
43 | PB3_IN, PB2_IN, PB1_IN, PB0_IN, | ||
44 | PC7_IN, PC6_IN, PC5_IN, PC4_IN, | ||
45 | PC3_IN, PC2_IN, PC1_IN, PC0_IN, | ||
46 | PD7_IN, PD6_IN, PD5_IN, PD4_IN, | ||
47 | PD3_IN, PD2_IN, PD1_IN, PD0_IN, | ||
48 | PE7_IN, PE6_IN, PE5_IN, PE4_IN, | ||
49 | PE3_IN, PE2_IN, PE1_IN, PE0_IN, | ||
50 | PF7_IN, PF6_IN, PF5_IN, PF4_IN, | ||
51 | PF3_IN, PF2_IN, PF1_IN, PF0_IN, | ||
52 | PG7_IN, PG6_IN, PG5_IN, PG4_IN, | ||
53 | PG3_IN, PG2_IN, PG1_IN, PG0_IN, | ||
54 | |||
55 | PH5_IN, PH4_IN, | ||
56 | PH3_IN, PH2_IN, PH1_IN, PH0_IN, | ||
57 | PINMUX_INPUT_END, | ||
58 | |||
59 | PINMUX_INPUT_PULLUP_BEGIN, | ||
60 | PA7_IN_PU, PA6_IN_PU, PA5_IN_PU, PA4_IN_PU, | ||
61 | PA3_IN_PU, PA2_IN_PU, PA1_IN_PU, PA0_IN_PU, | ||
62 | PB7_IN_PU, PB6_IN_PU, PB5_IN_PU, PB4_IN_PU, | ||
63 | PB3_IN_PU, PB2_IN_PU, PB1_IN_PU, PB0_IN_PU, | ||
64 | PC7_IN_PU, PC6_IN_PU, PC5_IN_PU, PC4_IN_PU, | ||
65 | PC3_IN_PU, PC2_IN_PU, PC1_IN_PU, PC0_IN_PU, | ||
66 | PD7_IN_PU, PD6_IN_PU, PD5_IN_PU, PD4_IN_PU, | ||
67 | PD3_IN_PU, PD2_IN_PU, PD1_IN_PU, PD0_IN_PU, | ||
68 | PE7_IN_PU, PE6_IN_PU, PE5_IN_PU, PE4_IN_PU, | ||
69 | PE3_IN_PU, PE2_IN_PU, PE1_IN_PU, PE0_IN_PU, | ||
70 | PF7_IN_PU, PF6_IN_PU, PF5_IN_PU, PF4_IN_PU, | ||
71 | PF3_IN_PU, PF2_IN_PU, PF1_IN_PU, PF0_IN_PU, | ||
72 | PG7_IN_PU, PG6_IN_PU, PG5_IN_PU, PG4_IN_PU, | ||
73 | PG3_IN_PU, PG2_IN_PU, PG1_IN_PU, PG0_IN_PU, | ||
74 | |||
75 | PH5_IN_PU, PH4_IN_PU, | ||
76 | PH3_IN_PU, PH2_IN_PU, PH1_IN_PU, PH0_IN_PU, | ||
77 | PINMUX_INPUT_PULLUP_END, | ||
78 | |||
79 | PINMUX_OUTPUT_BEGIN, | ||
80 | PA7_OUT, PA6_OUT, PA5_OUT, PA4_OUT, | ||
81 | PA3_OUT, PA2_OUT, PA1_OUT, PA0_OUT, | ||
82 | PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT, | ||
83 | PB3_OUT, PB2_OUT, PB1_OUT, PB0_OUT, | ||
84 | PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT, | ||
85 | PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT, | ||
86 | PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT, | ||
87 | PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT, | ||
88 | PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT, | ||
89 | PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT, | ||
90 | PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT, | ||
91 | PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT, | ||
92 | PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT, | ||
93 | PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT, | ||
94 | |||
95 | PH5_OUT, PH4_OUT, | ||
96 | PH3_OUT, PH2_OUT, PH1_OUT, PH0_OUT, | ||
97 | PINMUX_OUTPUT_END, | ||
98 | |||
99 | PINMUX_FUNCTION_BEGIN, | ||
100 | PA7_FN, PA6_FN, PA5_FN, PA4_FN, | ||
101 | PA3_FN, PA2_FN, PA1_FN, PA0_FN, | ||
102 | PB7_FN, PB6_FN, PB5_FN, PB4_FN, | ||
103 | PB3_FN, PB2_FN, PB1_FN, PB0_FN, | ||
104 | PC7_FN, PC6_FN, PC5_FN, PC4_FN, | ||
105 | PC3_FN, PC2_FN, PC1_FN, PC0_FN, | ||
106 | PD7_FN, PD6_FN, PD5_FN, PD4_FN, | ||
107 | PD3_FN, PD2_FN, PD1_FN, PD0_FN, | ||
108 | PE7_FN, PE6_FN, PE5_FN, PE4_FN, | ||
109 | PE3_FN, PE2_FN, PE1_FN, PE0_FN, | ||
110 | PF7_FN, PF6_FN, PF5_FN, PF4_FN, | ||
111 | PF3_FN, PF2_FN, PF1_FN, PF0_FN, | ||
112 | PG7_FN, PG6_FN, PG5_FN, PG4_FN, | ||
113 | PG3_FN, PG2_FN, PG1_FN, PG0_FN, | ||
114 | |||
115 | PH5_FN, PH4_FN, | ||
116 | PH3_FN, PH2_FN, PH1_FN, PH0_FN, | ||
117 | PINMUX_FUNCTION_END, | ||
118 | |||
119 | PINMUX_MARK_BEGIN, | ||
120 | |||
121 | D31_MARK, D30_MARK, D29_MARK, D28_MARK, D27_MARK, D26_MARK, | ||
122 | D25_MARK, D24_MARK, D23_MARK, D22_MARK, D21_MARK, D20_MARK, | ||
123 | D19_MARK, D18_MARK, D17_MARK, D16_MARK, | ||
124 | |||
125 | BACK_MARK, BREQ_MARK, | ||
126 | WE3_MARK, WE2_MARK, | ||
127 | CS6_MARK, CS5_MARK, CS4_MARK, | ||
128 | CLKOUTENB_MARK, | ||
129 | |||
130 | DACK3_MARK, DACK2_MARK, DACK1_MARK, DACK0_MARK, | ||
131 | DREQ3_MARK, DREQ2_MARK, DREQ1_MARK, DREQ0_MARK, | ||
132 | |||
133 | IRQ3_MARK, IRQ2_MARK, IRQ1_MARK, IRQ0_MARK, | ||
134 | |||
135 | DRAK3_MARK, DRAK2_MARK, DRAK1_MARK, DRAK0_MARK, | ||
136 | |||
137 | SCK3_MARK, SCK2_MARK, SCK1_MARK, SCK0_MARK, | ||
138 | IRL3_MARK, IRL2_MARK, IRL1_MARK, IRL0_MARK, | ||
139 | TXD3_MARK, TXD2_MARK, TXD1_MARK, TXD0_MARK, | ||
140 | RXD3_MARK, RXD2_MARK, RXD1_MARK, RXD0_MARK, | ||
141 | |||
142 | CE2B_MARK, CE2A_MARK, IOIS16_MARK, | ||
143 | STATUS1_MARK, STATUS0_MARK, | ||
144 | |||
145 | IRQOUT_MARK, | ||
146 | |||
147 | PINMUX_MARK_END, | ||
148 | }; | ||
149 | |||
150 | static pinmux_enum_t shx3_pinmux_data[] = { | ||
151 | |||
152 | /* PA GPIO */ | ||
153 | PINMUX_DATA(PA7_DATA, PA7_IN, PA7_OUT, PA7_IN_PU), | ||
154 | PINMUX_DATA(PA6_DATA, PA6_IN, PA6_OUT, PA6_IN_PU), | ||
155 | PINMUX_DATA(PA5_DATA, PA5_IN, PA5_OUT, PA5_IN_PU), | ||
156 | PINMUX_DATA(PA4_DATA, PA4_IN, PA4_OUT, PA4_IN_PU), | ||
157 | PINMUX_DATA(PA3_DATA, PA3_IN, PA3_OUT, PA3_IN_PU), | ||
158 | PINMUX_DATA(PA2_DATA, PA2_IN, PA2_OUT, PA2_IN_PU), | ||
159 | PINMUX_DATA(PA1_DATA, PA1_IN, PA1_OUT, PA1_IN_PU), | ||
160 | PINMUX_DATA(PA0_DATA, PA0_IN, PA0_OUT, PA0_IN_PU), | ||
161 | |||
162 | /* PB GPIO */ | ||
163 | PINMUX_DATA(PB7_DATA, PB7_IN, PB7_OUT, PB7_IN_PU), | ||
164 | PINMUX_DATA(PB6_DATA, PB6_IN, PB6_OUT, PB6_IN_PU), | ||
165 | PINMUX_DATA(PB5_DATA, PB5_IN, PB5_OUT, PB5_IN_PU), | ||
166 | PINMUX_DATA(PB4_DATA, PB4_IN, PB4_OUT, PB4_IN_PU), | ||
167 | PINMUX_DATA(PB3_DATA, PB3_IN, PB3_OUT, PB3_IN_PU), | ||
168 | PINMUX_DATA(PB2_DATA, PB2_IN, PB2_OUT, PB2_IN_PU), | ||
169 | PINMUX_DATA(PB1_DATA, PB1_IN, PB1_OUT, PB1_IN_PU), | ||
170 | PINMUX_DATA(PB0_DATA, PB0_IN, PB0_OUT, PB0_IN_PU), | ||
171 | |||
172 | /* PC GPIO */ | ||
173 | PINMUX_DATA(PC7_DATA, PC7_IN, PC7_OUT, PC7_IN_PU), | ||
174 | PINMUX_DATA(PC6_DATA, PC6_IN, PC6_OUT, PC6_IN_PU), | ||
175 | PINMUX_DATA(PC5_DATA, PC5_IN, PC5_OUT, PC5_IN_PU), | ||
176 | PINMUX_DATA(PC4_DATA, PC4_IN, PC4_OUT, PC4_IN_PU), | ||
177 | PINMUX_DATA(PC3_DATA, PC3_IN, PC3_OUT, PC3_IN_PU), | ||
178 | PINMUX_DATA(PC2_DATA, PC2_IN, PC2_OUT, PC2_IN_PU), | ||
179 | PINMUX_DATA(PC1_DATA, PC1_IN, PC1_OUT, PC1_IN_PU), | ||
180 | PINMUX_DATA(PC0_DATA, PC0_IN, PC0_OUT, PC0_IN_PU), | ||
181 | |||
182 | /* PD GPIO */ | ||
183 | PINMUX_DATA(PD7_DATA, PD7_IN, PD7_OUT, PD7_IN_PU), | ||
184 | PINMUX_DATA(PD6_DATA, PD6_IN, PD6_OUT, PD6_IN_PU), | ||
185 | PINMUX_DATA(PD5_DATA, PD5_IN, PD5_OUT, PD5_IN_PU), | ||
186 | PINMUX_DATA(PD4_DATA, PD4_IN, PD4_OUT, PD4_IN_PU), | ||
187 | PINMUX_DATA(PD3_DATA, PD3_IN, PD3_OUT, PD3_IN_PU), | ||
188 | PINMUX_DATA(PD2_DATA, PD2_IN, PD2_OUT, PD2_IN_PU), | ||
189 | PINMUX_DATA(PD1_DATA, PD1_IN, PD1_OUT, PD1_IN_PU), | ||
190 | PINMUX_DATA(PD0_DATA, PD0_IN, PD0_OUT, PD0_IN_PU), | ||
191 | |||
192 | /* PE GPIO */ | ||
193 | PINMUX_DATA(PE7_DATA, PE7_IN, PE7_OUT, PE7_IN_PU), | ||
194 | PINMUX_DATA(PE6_DATA, PE6_IN, PE6_OUT, PE6_IN_PU), | ||
195 | PINMUX_DATA(PE5_DATA, PE5_IN, PE5_OUT, PE5_IN_PU), | ||
196 | PINMUX_DATA(PE4_DATA, PE4_IN, PE4_OUT, PE4_IN_PU), | ||
197 | PINMUX_DATA(PE3_DATA, PE3_IN, PE3_OUT, PE3_IN_PU), | ||
198 | PINMUX_DATA(PE2_DATA, PE2_IN, PE2_OUT, PE2_IN_PU), | ||
199 | PINMUX_DATA(PE1_DATA, PE1_IN, PE1_OUT, PE1_IN_PU), | ||
200 | PINMUX_DATA(PE0_DATA, PE0_IN, PE0_OUT, PE0_IN_PU), | ||
201 | |||
202 | /* PF GPIO */ | ||
203 | PINMUX_DATA(PF7_DATA, PF7_IN, PF7_OUT, PF7_IN_PU), | ||
204 | PINMUX_DATA(PF6_DATA, PF6_IN, PF6_OUT, PF6_IN_PU), | ||
205 | PINMUX_DATA(PF5_DATA, PF5_IN, PF5_OUT, PF5_IN_PU), | ||
206 | PINMUX_DATA(PF4_DATA, PF4_IN, PF4_OUT, PF4_IN_PU), | ||
207 | PINMUX_DATA(PF3_DATA, PF3_IN, PF3_OUT, PF3_IN_PU), | ||
208 | PINMUX_DATA(PF2_DATA, PF2_IN, PF2_OUT, PF2_IN_PU), | ||
209 | PINMUX_DATA(PF1_DATA, PF1_IN, PF1_OUT, PF1_IN_PU), | ||
210 | PINMUX_DATA(PF0_DATA, PF0_IN, PF0_OUT, PF0_IN_PU), | ||
211 | |||
212 | /* PG GPIO */ | ||
213 | PINMUX_DATA(PG7_DATA, PG7_IN, PG7_OUT, PG7_IN_PU), | ||
214 | PINMUX_DATA(PG6_DATA, PG6_IN, PG6_OUT, PG6_IN_PU), | ||
215 | PINMUX_DATA(PG5_DATA, PG5_IN, PG5_OUT, PG5_IN_PU), | ||
216 | PINMUX_DATA(PG4_DATA, PG4_IN, PG4_OUT, PG4_IN_PU), | ||
217 | PINMUX_DATA(PG3_DATA, PG3_IN, PG3_OUT, PG3_IN_PU), | ||
218 | PINMUX_DATA(PG2_DATA, PG2_IN, PG2_OUT, PG2_IN_PU), | ||
219 | PINMUX_DATA(PG1_DATA, PG1_IN, PG1_OUT, PG1_IN_PU), | ||
220 | PINMUX_DATA(PG0_DATA, PG0_IN, PG0_OUT, PG0_IN_PU), | ||
221 | |||
222 | /* PH GPIO */ | ||
223 | PINMUX_DATA(PH5_DATA, PH5_IN, PH5_OUT, PH5_IN_PU), | ||
224 | PINMUX_DATA(PH4_DATA, PH4_IN, PH4_OUT, PH4_IN_PU), | ||
225 | PINMUX_DATA(PH3_DATA, PH3_IN, PH3_OUT, PH3_IN_PU), | ||
226 | PINMUX_DATA(PH2_DATA, PH2_IN, PH2_OUT, PH2_IN_PU), | ||
227 | PINMUX_DATA(PH1_DATA, PH1_IN, PH1_OUT, PH1_IN_PU), | ||
228 | PINMUX_DATA(PH0_DATA, PH0_IN, PH0_OUT, PH0_IN_PU), | ||
229 | |||
230 | /* PA FN */ | ||
231 | PINMUX_DATA(D31_MARK, PA7_FN), | ||
232 | PINMUX_DATA(D30_MARK, PA6_FN), | ||
233 | PINMUX_DATA(D29_MARK, PA5_FN), | ||
234 | PINMUX_DATA(D28_MARK, PA4_FN), | ||
235 | PINMUX_DATA(D27_MARK, PA3_FN), | ||
236 | PINMUX_DATA(D26_MARK, PA2_FN), | ||
237 | PINMUX_DATA(D25_MARK, PA1_FN), | ||
238 | PINMUX_DATA(D24_MARK, PA0_FN), | ||
239 | |||
240 | /* PB FN */ | ||
241 | PINMUX_DATA(D23_MARK, PB7_FN), | ||
242 | PINMUX_DATA(D22_MARK, PB6_FN), | ||
243 | PINMUX_DATA(D21_MARK, PB5_FN), | ||
244 | PINMUX_DATA(D20_MARK, PB4_FN), | ||
245 | PINMUX_DATA(D19_MARK, PB3_FN), | ||
246 | PINMUX_DATA(D18_MARK, PB2_FN), | ||
247 | PINMUX_DATA(D17_MARK, PB1_FN), | ||
248 | PINMUX_DATA(D16_MARK, PB0_FN), | ||
249 | |||
250 | /* PC FN */ | ||
251 | PINMUX_DATA(BACK_MARK, PC7_FN), | ||
252 | PINMUX_DATA(BREQ_MARK, PC6_FN), | ||
253 | PINMUX_DATA(WE3_MARK, PC5_FN), | ||
254 | PINMUX_DATA(WE2_MARK, PC4_FN), | ||
255 | PINMUX_DATA(CS6_MARK, PC3_FN), | ||
256 | PINMUX_DATA(CS5_MARK, PC2_FN), | ||
257 | PINMUX_DATA(CS4_MARK, PC1_FN), | ||
258 | PINMUX_DATA(CLKOUTENB_MARK, PC0_FN), | ||
259 | |||
260 | /* PD FN */ | ||
261 | PINMUX_DATA(DACK3_MARK, PD7_FN), | ||
262 | PINMUX_DATA(DACK2_MARK, PD6_FN), | ||
263 | PINMUX_DATA(DACK1_MARK, PD5_FN), | ||
264 | PINMUX_DATA(DACK0_MARK, PD4_FN), | ||
265 | PINMUX_DATA(DREQ3_MARK, PD3_FN), | ||
266 | PINMUX_DATA(DREQ2_MARK, PD2_FN), | ||
267 | PINMUX_DATA(DREQ1_MARK, PD1_FN), | ||
268 | PINMUX_DATA(DREQ0_MARK, PD0_FN), | ||
269 | |||
270 | /* PE FN */ | ||
271 | PINMUX_DATA(IRQ3_MARK, PE7_FN), | ||
272 | PINMUX_DATA(IRQ2_MARK, PE6_FN), | ||
273 | PINMUX_DATA(IRQ1_MARK, PE5_FN), | ||
274 | PINMUX_DATA(IRQ0_MARK, PE4_FN), | ||
275 | PINMUX_DATA(DRAK3_MARK, PE3_FN), | ||
276 | PINMUX_DATA(DRAK2_MARK, PE2_FN), | ||
277 | PINMUX_DATA(DRAK1_MARK, PE1_FN), | ||
278 | PINMUX_DATA(DRAK0_MARK, PE0_FN), | ||
279 | |||
280 | /* PF FN */ | ||
281 | PINMUX_DATA(SCK3_MARK, PF7_FN), | ||
282 | PINMUX_DATA(SCK2_MARK, PF6_FN), | ||
283 | PINMUX_DATA(SCK1_MARK, PF5_FN), | ||
284 | PINMUX_DATA(SCK0_MARK, PF4_FN), | ||
285 | PINMUX_DATA(IRL3_MARK, PF3_FN), | ||
286 | PINMUX_DATA(IRL2_MARK, PF2_FN), | ||
287 | PINMUX_DATA(IRL1_MARK, PF1_FN), | ||
288 | PINMUX_DATA(IRL0_MARK, PF0_FN), | ||
289 | |||
290 | /* PG FN */ | ||
291 | PINMUX_DATA(TXD3_MARK, PG7_FN), | ||
292 | PINMUX_DATA(TXD2_MARK, PG6_FN), | ||
293 | PINMUX_DATA(TXD1_MARK, PG5_FN), | ||
294 | PINMUX_DATA(TXD0_MARK, PG4_FN), | ||
295 | PINMUX_DATA(RXD3_MARK, PG3_FN), | ||
296 | PINMUX_DATA(RXD2_MARK, PG2_FN), | ||
297 | PINMUX_DATA(RXD1_MARK, PG1_FN), | ||
298 | PINMUX_DATA(RXD0_MARK, PG0_FN), | ||
299 | |||
300 | /* PH FN */ | ||
301 | PINMUX_DATA(CE2B_MARK, PH5_FN), | ||
302 | PINMUX_DATA(CE2A_MARK, PH4_FN), | ||
303 | PINMUX_DATA(IOIS16_MARK, PH3_FN), | ||
304 | PINMUX_DATA(STATUS1_MARK, PH2_FN), | ||
305 | PINMUX_DATA(STATUS0_MARK, PH1_FN), | ||
306 | PINMUX_DATA(IRQOUT_MARK, PH0_FN), | ||
307 | }; | ||
308 | |||
309 | static struct pinmux_gpio shx3_pinmux_gpios[] = { | ||
310 | /* PA */ | ||
311 | PINMUX_GPIO(GPIO_PA7, PA7_DATA), | ||
312 | PINMUX_GPIO(GPIO_PA6, PA6_DATA), | ||
313 | PINMUX_GPIO(GPIO_PA5, PA5_DATA), | ||
314 | PINMUX_GPIO(GPIO_PA4, PA4_DATA), | ||
315 | PINMUX_GPIO(GPIO_PA3, PA3_DATA), | ||
316 | PINMUX_GPIO(GPIO_PA2, PA2_DATA), | ||
317 | PINMUX_GPIO(GPIO_PA1, PA1_DATA), | ||
318 | PINMUX_GPIO(GPIO_PA0, PA0_DATA), | ||
319 | |||
320 | /* PB */ | ||
321 | PINMUX_GPIO(GPIO_PB7, PB7_DATA), | ||
322 | PINMUX_GPIO(GPIO_PB6, PB6_DATA), | ||
323 | PINMUX_GPIO(GPIO_PB5, PB5_DATA), | ||
324 | PINMUX_GPIO(GPIO_PB4, PB4_DATA), | ||
325 | PINMUX_GPIO(GPIO_PB3, PB3_DATA), | ||
326 | PINMUX_GPIO(GPIO_PB2, PB2_DATA), | ||
327 | PINMUX_GPIO(GPIO_PB1, PB1_DATA), | ||
328 | PINMUX_GPIO(GPIO_PB0, PB0_DATA), | ||
329 | |||
330 | /* PC */ | ||
331 | PINMUX_GPIO(GPIO_PC7, PC7_DATA), | ||
332 | PINMUX_GPIO(GPIO_PC6, PC6_DATA), | ||
333 | PINMUX_GPIO(GPIO_PC5, PC5_DATA), | ||
334 | PINMUX_GPIO(GPIO_PC4, PC4_DATA), | ||
335 | PINMUX_GPIO(GPIO_PC3, PC3_DATA), | ||
336 | PINMUX_GPIO(GPIO_PC2, PC2_DATA), | ||
337 | PINMUX_GPIO(GPIO_PC1, PC1_DATA), | ||
338 | PINMUX_GPIO(GPIO_PC0, PC0_DATA), | ||
339 | |||
340 | /* PD */ | ||
341 | PINMUX_GPIO(GPIO_PD7, PD7_DATA), | ||
342 | PINMUX_GPIO(GPIO_PD6, PD6_DATA), | ||
343 | PINMUX_GPIO(GPIO_PD5, PD5_DATA), | ||
344 | PINMUX_GPIO(GPIO_PD4, PD4_DATA), | ||
345 | PINMUX_GPIO(GPIO_PD3, PD3_DATA), | ||
346 | PINMUX_GPIO(GPIO_PD2, PD2_DATA), | ||
347 | PINMUX_GPIO(GPIO_PD1, PD1_DATA), | ||
348 | PINMUX_GPIO(GPIO_PD0, PD0_DATA), | ||
349 | |||
350 | /* PE */ | ||
351 | PINMUX_GPIO(GPIO_PE7, PE7_DATA), | ||
352 | PINMUX_GPIO(GPIO_PE6, PE6_DATA), | ||
353 | PINMUX_GPIO(GPIO_PE5, PE5_DATA), | ||
354 | PINMUX_GPIO(GPIO_PE4, PE4_DATA), | ||
355 | PINMUX_GPIO(GPIO_PE3, PE3_DATA), | ||
356 | PINMUX_GPIO(GPIO_PE2, PE2_DATA), | ||
357 | PINMUX_GPIO(GPIO_PE1, PE1_DATA), | ||
358 | PINMUX_GPIO(GPIO_PE0, PE0_DATA), | ||
359 | |||
360 | /* PF */ | ||
361 | PINMUX_GPIO(GPIO_PF7, PF7_DATA), | ||
362 | PINMUX_GPIO(GPIO_PF6, PF6_DATA), | ||
363 | PINMUX_GPIO(GPIO_PF5, PF5_DATA), | ||
364 | PINMUX_GPIO(GPIO_PF4, PF4_DATA), | ||
365 | PINMUX_GPIO(GPIO_PF3, PF3_DATA), | ||
366 | PINMUX_GPIO(GPIO_PF2, PF2_DATA), | ||
367 | PINMUX_GPIO(GPIO_PF1, PF1_DATA), | ||
368 | PINMUX_GPIO(GPIO_PF0, PF0_DATA), | ||
369 | |||
370 | /* PG */ | ||
371 | PINMUX_GPIO(GPIO_PG7, PG7_DATA), | ||
372 | PINMUX_GPIO(GPIO_PG6, PG6_DATA), | ||
373 | PINMUX_GPIO(GPIO_PG5, PG5_DATA), | ||
374 | PINMUX_GPIO(GPIO_PG4, PG4_DATA), | ||
375 | PINMUX_GPIO(GPIO_PG3, PG3_DATA), | ||
376 | PINMUX_GPIO(GPIO_PG2, PG2_DATA), | ||
377 | PINMUX_GPIO(GPIO_PG1, PG1_DATA), | ||
378 | PINMUX_GPIO(GPIO_PG0, PG0_DATA), | ||
379 | |||
380 | /* PH */ | ||
381 | PINMUX_GPIO(GPIO_PH5, PH5_DATA), | ||
382 | PINMUX_GPIO(GPIO_PH4, PH4_DATA), | ||
383 | PINMUX_GPIO(GPIO_PH3, PH3_DATA), | ||
384 | PINMUX_GPIO(GPIO_PH2, PH2_DATA), | ||
385 | PINMUX_GPIO(GPIO_PH1, PH1_DATA), | ||
386 | PINMUX_GPIO(GPIO_PH0, PH0_DATA), | ||
387 | |||
388 | /* FN */ | ||
389 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
390 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
391 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
392 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
393 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
394 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
395 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
396 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
397 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
398 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
399 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
400 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
401 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
402 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
403 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
404 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
405 | PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), | ||
406 | PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), | ||
407 | PINMUX_GPIO(GPIO_FN_WE3, WE3_MARK), | ||
408 | PINMUX_GPIO(GPIO_FN_WE2, WE2_MARK), | ||
409 | PINMUX_GPIO(GPIO_FN_CS6, CS6_MARK), | ||
410 | PINMUX_GPIO(GPIO_FN_CS5, CS5_MARK), | ||
411 | PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), | ||
412 | PINMUX_GPIO(GPIO_FN_CLKOUTENB, CLKOUTENB_MARK), | ||
413 | PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), | ||
414 | PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), | ||
415 | PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), | ||
416 | PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), | ||
417 | PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), | ||
418 | PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), | ||
419 | PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), | ||
420 | PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), | ||
421 | PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), | ||
422 | PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), | ||
423 | PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), | ||
424 | PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), | ||
425 | PINMUX_GPIO(GPIO_FN_DRAK3, DRAK3_MARK), | ||
426 | PINMUX_GPIO(GPIO_FN_DRAK2, DRAK2_MARK), | ||
427 | PINMUX_GPIO(GPIO_FN_DRAK1, DRAK1_MARK), | ||
428 | PINMUX_GPIO(GPIO_FN_DRAK0, DRAK0_MARK), | ||
429 | PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), | ||
430 | PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), | ||
431 | PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), | ||
432 | PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), | ||
433 | PINMUX_GPIO(GPIO_FN_IRL3, IRL3_MARK), | ||
434 | PINMUX_GPIO(GPIO_FN_IRL2, IRL2_MARK), | ||
435 | PINMUX_GPIO(GPIO_FN_IRL1, IRL1_MARK), | ||
436 | PINMUX_GPIO(GPIO_FN_IRL0, IRL0_MARK), | ||
437 | PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), | ||
438 | PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), | ||
439 | PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), | ||
440 | PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), | ||
441 | PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), | ||
442 | PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), | ||
443 | PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), | ||
444 | PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), | ||
445 | PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), | ||
446 | PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), | ||
447 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
448 | PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), | ||
449 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
450 | PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), | ||
451 | }; | ||
452 | |||
453 | static struct pinmux_cfg_reg shx3_pinmux_config_regs[] = { | ||
454 | { PINMUX_CFG_REG("PABCR", 0xffc70000, 32, 2) { | ||
455 | PA7_FN, PA7_OUT, PA7_IN, PA7_IN_PU, | ||
456 | PA6_FN, PA6_OUT, PA6_IN, PA6_IN_PU, | ||
457 | PA5_FN, PA5_OUT, PA5_IN, PA5_IN_PU, | ||
458 | PA4_FN, PA4_OUT, PA4_IN, PA4_IN_PU, | ||
459 | PA3_FN, PA3_OUT, PA3_IN, PA3_IN_PU, | ||
460 | PA2_FN, PA2_OUT, PA2_IN, PA2_IN_PU, | ||
461 | PA1_FN, PA1_OUT, PA1_IN, PA1_IN_PU, | ||
462 | PA0_FN, PA0_OUT, PA0_IN, PA0_IN_PU, | ||
463 | PB7_FN, PB7_OUT, PB7_IN, PB7_IN_PU, | ||
464 | PB6_FN, PB6_OUT, PB6_IN, PB6_IN_PU, | ||
465 | PB5_FN, PB5_OUT, PB5_IN, PB5_IN_PU, | ||
466 | PB4_FN, PB4_OUT, PB4_IN, PB4_IN_PU, | ||
467 | PB3_FN, PB3_OUT, PB3_IN, PB3_IN_PU, | ||
468 | PB2_FN, PB2_OUT, PB2_IN, PB2_IN_PU, | ||
469 | PB1_FN, PB1_OUT, PB1_IN, PB1_IN_PU, | ||
470 | PB0_FN, PB0_OUT, PB0_IN, PB0_IN_PU, }, | ||
471 | }, | ||
472 | { PINMUX_CFG_REG("PCDCR", 0xffc70004, 32, 2) { | ||
473 | PC7_FN, PC7_OUT, PC7_IN, PC7_IN_PU, | ||
474 | PC6_FN, PC6_OUT, PC6_IN, PC6_IN_PU, | ||
475 | PC5_FN, PC5_OUT, PC5_IN, PC5_IN_PU, | ||
476 | PC4_FN, PC4_OUT, PC4_IN, PC4_IN_PU, | ||
477 | PC3_FN, PC3_OUT, PC3_IN, PC3_IN_PU, | ||
478 | PC2_FN, PC2_OUT, PC2_IN, PC2_IN_PU, | ||
479 | PC1_FN, PC1_OUT, PC1_IN, PC1_IN_PU, | ||
480 | PC0_FN, PC0_OUT, PC0_IN, PC0_IN_PU, | ||
481 | PD7_FN, PD7_OUT, PD7_IN, PD7_IN_PU, | ||
482 | PD6_FN, PD6_OUT, PD6_IN, PD6_IN_PU, | ||
483 | PD5_FN, PD5_OUT, PD5_IN, PD5_IN_PU, | ||
484 | PD4_FN, PD4_OUT, PD4_IN, PD4_IN_PU, | ||
485 | PD3_FN, PD3_OUT, PD3_IN, PD3_IN_PU, | ||
486 | PD2_FN, PD2_OUT, PD2_IN, PD2_IN_PU, | ||
487 | PD1_FN, PD1_OUT, PD1_IN, PD1_IN_PU, | ||
488 | PD0_FN, PD0_OUT, PD0_IN, PD0_IN_PU, }, | ||
489 | }, | ||
490 | { PINMUX_CFG_REG("PEFCR", 0xffc70008, 32, 2) { | ||
491 | PE7_FN, PE7_OUT, PE7_IN, PE7_IN_PU, | ||
492 | PE6_FN, PE6_OUT, PE6_IN, PE6_IN_PU, | ||
493 | PE5_FN, PE5_OUT, PE5_IN, PE5_IN_PU, | ||
494 | PE4_FN, PE4_OUT, PE4_IN, PE4_IN_PU, | ||
495 | PE3_FN, PE3_OUT, PE3_IN, PE3_IN_PU, | ||
496 | PE2_FN, PE2_OUT, PE2_IN, PE2_IN_PU, | ||
497 | PE1_FN, PE1_OUT, PE1_IN, PE1_IN_PU, | ||
498 | PE0_FN, PE0_OUT, PE0_IN, PE0_IN_PU, | ||
499 | PF7_FN, PF7_OUT, PF7_IN, PF7_IN_PU, | ||
500 | PF6_FN, PF6_OUT, PF6_IN, PF6_IN_PU, | ||
501 | PF5_FN, PF5_OUT, PF5_IN, PF5_IN_PU, | ||
502 | PF4_FN, PF4_OUT, PF4_IN, PF4_IN_PU, | ||
503 | PF3_FN, PF3_OUT, PF3_IN, PF3_IN_PU, | ||
504 | PF2_FN, PF2_OUT, PF2_IN, PF2_IN_PU, | ||
505 | PF1_FN, PF1_OUT, PF1_IN, PF1_IN_PU, | ||
506 | PF0_FN, PF0_OUT, PF0_IN, PF0_IN_PU, }, | ||
507 | }, | ||
508 | { PINMUX_CFG_REG("PGHCR", 0xffc7000c, 32, 2) { | ||
509 | PG7_FN, PG7_OUT, PG7_IN, PG7_IN_PU, | ||
510 | PG6_FN, PG6_OUT, PG6_IN, PG6_IN_PU, | ||
511 | PG5_FN, PG5_OUT, PG5_IN, PG5_IN_PU, | ||
512 | PG4_FN, PG4_OUT, PG4_IN, PG4_IN_PU, | ||
513 | PG3_FN, PG3_OUT, PG3_IN, PG3_IN_PU, | ||
514 | PG2_FN, PG2_OUT, PG2_IN, PG2_IN_PU, | ||
515 | PG1_FN, PG1_OUT, PG1_IN, PG1_IN_PU, | ||
516 | PG0_FN, PG0_OUT, PG0_IN, PG0_IN_PU, | ||
517 | 0, 0, 0, 0, | ||
518 | 0, 0, 0, 0, | ||
519 | PH5_FN, PH5_OUT, PH5_IN, PH5_IN_PU, | ||
520 | PH4_FN, PH4_OUT, PH4_IN, PH4_IN_PU, | ||
521 | PH3_FN, PH3_OUT, PH3_IN, PH3_IN_PU, | ||
522 | PH2_FN, PH2_OUT, PH2_IN, PH2_IN_PU, | ||
523 | PH1_FN, PH1_OUT, PH1_IN, PH1_IN_PU, | ||
524 | PH0_FN, PH0_OUT, PH0_IN, PH0_IN_PU, }, | ||
525 | }, | ||
526 | { }, | ||
527 | }; | ||
528 | |||
529 | static struct pinmux_data_reg shx3_pinmux_data_regs[] = { | ||
530 | { PINMUX_DATA_REG("PABDR", 0xffc70010, 32) { | ||
531 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
532 | PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA, | ||
533 | PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA, | ||
534 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
535 | PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA, | ||
536 | PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA, }, | ||
537 | }, | ||
538 | { PINMUX_DATA_REG("PCDDR", 0xffc70014, 32) { | ||
539 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
540 | PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA, | ||
541 | PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA, | ||
542 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
543 | PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA, | ||
544 | PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA, }, | ||
545 | }, | ||
546 | { PINMUX_DATA_REG("PEFDR", 0xffc70018, 32) { | ||
547 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
548 | PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA, | ||
549 | PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA, | ||
550 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
551 | PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA, | ||
552 | PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA, }, | ||
553 | }, | ||
554 | { PINMUX_DATA_REG("PGHDR", 0xffc7001c, 32) { | ||
555 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
556 | PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA, | ||
557 | PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA, | ||
558 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
559 | 0, 0, PH5_DATA, PH4_DATA, | ||
560 | PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA, }, | ||
561 | }, | ||
562 | { }, | ||
563 | }; | ||
564 | |||
565 | struct sh_pfc_soc_info shx3_pinmux_info = { | ||
566 | .name = "shx3_pfc", | ||
567 | .reserved_id = PINMUX_RESERVED, | ||
568 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
569 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
570 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, | ||
571 | PINMUX_INPUT_PULLUP_END }, | ||
572 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
573 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
574 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
575 | .first_gpio = GPIO_PA7, | ||
576 | .last_gpio = GPIO_FN_STATUS0, | ||
577 | .gpios = shx3_pinmux_gpios, | ||
578 | .gpio_data = shx3_pinmux_data, | ||
579 | .gpio_data_size = ARRAY_SIZE(shx3_pinmux_data), | ||
580 | .cfg_regs = shx3_pinmux_config_regs, | ||
581 | .data_regs = shx3_pinmux_data_regs, | ||
582 | }; | ||
diff --git a/drivers/sh/pfc/pinctrl.c b/drivers/pinctrl/sh-pfc/pinctrl.c index 4109b769eac0..11e0e1374d65 100644 --- a/drivers/sh/pfc/pinctrl.c +++ b/drivers/pinctrl/sh-pfc/pinctrl.c | |||
@@ -7,22 +7,23 @@ | |||
7 | * License. See the file "COPYING" in the main directory of this archive | 7 | * License. See the file "COPYING" in the main directory of this archive |
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | #define DRV_NAME "pinctrl-sh_pfc" | ||
11 | 10 | ||
12 | #define pr_fmt(fmt) DRV_NAME " " KBUILD_MODNAME ": " fmt | 11 | #define DRV_NAME "sh-pfc" |
12 | #define pr_fmt(fmt) KBUILD_MODNAME " pinctrl: " fmt | ||
13 | 13 | ||
14 | #include <linux/device.h> | ||
15 | #include <linux/err.h> | ||
14 | #include <linux/init.h> | 16 | #include <linux/init.h> |
15 | #include <linux/module.h> | 17 | #include <linux/module.h> |
16 | #include <linux/sh_pfc.h> | ||
17 | #include <linux/err.h> | ||
18 | #include <linux/slab.h> | ||
19 | #include <linux/spinlock.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | #include <linux/pinctrl/consumer.h> | 18 | #include <linux/pinctrl/consumer.h> |
22 | #include <linux/pinctrl/pinctrl.h> | ||
23 | #include <linux/pinctrl/pinconf.h> | 19 | #include <linux/pinctrl/pinconf.h> |
24 | #include <linux/pinctrl/pinmux.h> | ||
25 | #include <linux/pinctrl/pinconf-generic.h> | 20 | #include <linux/pinctrl/pinconf-generic.h> |
21 | #include <linux/pinctrl/pinctrl.h> | ||
22 | #include <linux/pinctrl/pinmux.h> | ||
23 | #include <linux/slab.h> | ||
24 | #include <linux/spinlock.h> | ||
25 | |||
26 | #include "core.h" | ||
26 | 27 | ||
27 | struct sh_pfc_pinctrl { | 28 | struct sh_pfc_pinctrl { |
28 | struct pinctrl_dev *pctl; | 29 | struct pinctrl_dev *pctl; |
@@ -37,8 +38,6 @@ struct sh_pfc_pinctrl { | |||
37 | spinlock_t lock; | 38 | spinlock_t lock; |
38 | }; | 39 | }; |
39 | 40 | ||
40 | static struct sh_pfc_pinctrl *sh_pfc_pmx; | ||
41 | |||
42 | static int sh_pfc_get_groups_count(struct pinctrl_dev *pctldev) | 41 | static int sh_pfc_get_groups_count(struct pinctrl_dev *pctldev) |
43 | { | 42 | { |
44 | struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); | 43 | struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); |
@@ -116,7 +115,7 @@ static void sh_pfc_noop_disable(struct pinctrl_dev *pctldev, unsigned func, | |||
116 | { | 115 | { |
117 | } | 116 | } |
118 | 117 | ||
119 | static inline int sh_pfc_config_function(struct sh_pfc *pfc, unsigned offset) | 118 | static int sh_pfc_config_function(struct sh_pfc *pfc, unsigned offset) |
120 | { | 119 | { |
121 | if (sh_pfc_config_gpio(pfc, offset, | 120 | if (sh_pfc_config_gpio(pfc, offset, |
122 | PINMUX_TYPE_FUNCTION, | 121 | PINMUX_TYPE_FUNCTION, |
@@ -140,7 +139,7 @@ static int sh_pfc_reconfig_pin(struct sh_pfc *pfc, unsigned offset, | |||
140 | 139 | ||
141 | spin_lock_irqsave(&pfc->lock, flags); | 140 | spin_lock_irqsave(&pfc->lock, flags); |
142 | 141 | ||
143 | pinmux_type = pfc->gpios[offset].flags & PINMUX_FLAG_TYPE; | 142 | pinmux_type = pfc->info->gpios[offset].flags & PINMUX_FLAG_TYPE; |
144 | 143 | ||
145 | /* | 144 | /* |
146 | * See if the present config needs to first be de-configured. | 145 | * See if the present config needs to first be de-configured. |
@@ -172,8 +171,8 @@ static int sh_pfc_reconfig_pin(struct sh_pfc *pfc, unsigned offset, | |||
172 | GPIO_CFG_REQ) != 0) | 171 | GPIO_CFG_REQ) != 0) |
173 | goto err; | 172 | goto err; |
174 | 173 | ||
175 | pfc->gpios[offset].flags &= ~PINMUX_FLAG_TYPE; | 174 | pfc->info->gpios[offset].flags &= ~PINMUX_FLAG_TYPE; |
176 | pfc->gpios[offset].flags |= new_type; | 175 | pfc->info->gpios[offset].flags |= new_type; |
177 | 176 | ||
178 | ret = 0; | 177 | ret = 0; |
179 | 178 | ||
@@ -195,7 +194,7 @@ static int sh_pfc_gpio_request_enable(struct pinctrl_dev *pctldev, | |||
195 | 194 | ||
196 | spin_lock_irqsave(&pfc->lock, flags); | 195 | spin_lock_irqsave(&pfc->lock, flags); |
197 | 196 | ||
198 | pinmux_type = pfc->gpios[offset].flags & PINMUX_FLAG_TYPE; | 197 | pinmux_type = pfc->info->gpios[offset].flags & PINMUX_FLAG_TYPE; |
199 | 198 | ||
200 | switch (pinmux_type) { | 199 | switch (pinmux_type) { |
201 | case PINMUX_TYPE_FUNCTION: | 200 | case PINMUX_TYPE_FUNCTION: |
@@ -236,7 +235,7 @@ static void sh_pfc_gpio_disable_free(struct pinctrl_dev *pctldev, | |||
236 | 235 | ||
237 | spin_lock_irqsave(&pfc->lock, flags); | 236 | spin_lock_irqsave(&pfc->lock, flags); |
238 | 237 | ||
239 | pinmux_type = pfc->gpios[offset].flags & PINMUX_FLAG_TYPE; | 238 | pinmux_type = pfc->info->gpios[offset].flags & PINMUX_FLAG_TYPE; |
240 | 239 | ||
241 | sh_pfc_config_gpio(pfc, offset, pinmux_type, GPIO_CFG_FREE); | 240 | sh_pfc_config_gpio(pfc, offset, pinmux_type, GPIO_CFG_FREE); |
242 | 241 | ||
@@ -270,7 +269,7 @@ static int sh_pfc_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, | |||
270 | struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); | 269 | struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); |
271 | struct sh_pfc *pfc = pmx->pfc; | 270 | struct sh_pfc *pfc = pmx->pfc; |
272 | 271 | ||
273 | *config = pfc->gpios[pin].flags & PINMUX_FLAG_TYPE; | 272 | *config = pfc->info->gpios[pin].flags & PINMUX_FLAG_TYPE; |
274 | 273 | ||
275 | return 0; | 274 | return 0; |
276 | } | 275 | } |
@@ -328,10 +327,8 @@ static struct pinctrl_desc sh_pfc_pinctrl_desc = { | |||
328 | .confops = &sh_pfc_pinconf_ops, | 327 | .confops = &sh_pfc_pinconf_ops, |
329 | }; | 328 | }; |
330 | 329 | ||
331 | static inline void sh_pfc_map_one_gpio(struct sh_pfc *pfc, | 330 | static void sh_pfc_map_one_gpio(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx, |
332 | struct sh_pfc_pinctrl *pmx, | 331 | struct pinmux_gpio *gpio, unsigned offset) |
333 | struct pinmux_gpio *gpio, | ||
334 | unsigned offset) | ||
335 | { | 332 | { |
336 | struct pinmux_data_reg *dummy; | 333 | struct pinmux_data_reg *dummy; |
337 | unsigned long flags; | 334 | unsigned long flags; |
@@ -356,10 +353,10 @@ static int sh_pfc_map_gpios(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) | |||
356 | unsigned long flags; | 353 | unsigned long flags; |
357 | int i; | 354 | int i; |
358 | 355 | ||
359 | pmx->nr_pads = pfc->last_gpio - pfc->first_gpio + 1; | 356 | pmx->nr_pads = pfc->info->last_gpio - pfc->info->first_gpio + 1; |
360 | 357 | ||
361 | pmx->pads = kmalloc(sizeof(struct pinctrl_pin_desc) * pmx->nr_pads, | 358 | pmx->pads = devm_kzalloc(pfc->dev, sizeof(*pmx->pads) * pmx->nr_pads, |
362 | GFP_KERNEL); | 359 | GFP_KERNEL); |
363 | if (unlikely(!pmx->pads)) { | 360 | if (unlikely(!pmx->pads)) { |
364 | pmx->nr_pads = 0; | 361 | pmx->nr_pads = 0; |
365 | return -ENOMEM; | 362 | return -ENOMEM; |
@@ -375,9 +372,9 @@ static int sh_pfc_map_gpios(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) | |||
375 | */ | 372 | */ |
376 | for (i = 0; i < pmx->nr_pads; i++) { | 373 | for (i = 0; i < pmx->nr_pads; i++) { |
377 | struct pinctrl_pin_desc *pin = pmx->pads + i; | 374 | struct pinctrl_pin_desc *pin = pmx->pads + i; |
378 | struct pinmux_gpio *gpio = pfc->gpios + i; | 375 | struct pinmux_gpio *gpio = pfc->info->gpios + i; |
379 | 376 | ||
380 | pin->number = pfc->first_gpio + i; | 377 | pin->number = pfc->info->first_gpio + i; |
381 | pin->name = gpio->name; | 378 | pin->name = gpio->name; |
382 | 379 | ||
383 | /* XXX */ | 380 | /* XXX */ |
@@ -400,15 +397,15 @@ static int sh_pfc_map_functions(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) | |||
400 | unsigned long flags; | 397 | unsigned long flags; |
401 | int i, fn; | 398 | int i, fn; |
402 | 399 | ||
403 | pmx->functions = kzalloc(pmx->nr_functions * sizeof(void *), | 400 | pmx->functions = devm_kzalloc(pfc->dev, pmx->nr_functions * |
404 | GFP_KERNEL); | 401 | sizeof(*pmx->functions), GFP_KERNEL); |
405 | if (unlikely(!pmx->functions)) | 402 | if (unlikely(!pmx->functions)) |
406 | return -ENOMEM; | 403 | return -ENOMEM; |
407 | 404 | ||
408 | spin_lock_irqsave(&pmx->lock, flags); | 405 | spin_lock_irqsave(&pmx->lock, flags); |
409 | 406 | ||
410 | for (i = fn = 0; i < pmx->nr_pads; i++) { | 407 | for (i = fn = 0; i < pmx->nr_pads; i++) { |
411 | struct pinmux_gpio *gpio = pfc->gpios + i; | 408 | struct pinmux_gpio *gpio = pfc->info->gpios + i; |
412 | 409 | ||
413 | if ((gpio->flags & PINMUX_FLAG_TYPE) == PINMUX_TYPE_FUNCTION) | 410 | if ((gpio->flags & PINMUX_FLAG_TYPE) == PINMUX_TYPE_FUNCTION) |
414 | pmx->functions[fn++] = gpio; | 411 | pmx->functions[fn++] = gpio; |
@@ -419,109 +416,48 @@ static int sh_pfc_map_functions(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) | |||
419 | return 0; | 416 | return 0; |
420 | } | 417 | } |
421 | 418 | ||
422 | static int sh_pfc_pinctrl_probe(struct platform_device *pdev) | 419 | int sh_pfc_register_pinctrl(struct sh_pfc *pfc) |
423 | { | 420 | { |
424 | struct sh_pfc *pfc; | 421 | struct sh_pfc_pinctrl *pmx; |
425 | int ret; | 422 | int ret; |
426 | 423 | ||
427 | if (unlikely(!sh_pfc_pmx)) | 424 | pmx = devm_kzalloc(pfc->dev, sizeof(*pmx), GFP_KERNEL); |
428 | return -ENODEV; | 425 | if (unlikely(!pmx)) |
426 | return -ENOMEM; | ||
427 | |||
428 | spin_lock_init(&pmx->lock); | ||
429 | 429 | ||
430 | pfc = sh_pfc_pmx->pfc; | 430 | pmx->pfc = pfc; |
431 | pfc->pinctrl = pmx; | ||
431 | 432 | ||
432 | ret = sh_pfc_map_gpios(pfc, sh_pfc_pmx); | 433 | ret = sh_pfc_map_gpios(pfc, pmx); |
433 | if (unlikely(ret != 0)) | 434 | if (unlikely(ret != 0)) |
434 | return ret; | 435 | return ret; |
435 | 436 | ||
436 | ret = sh_pfc_map_functions(pfc, sh_pfc_pmx); | 437 | ret = sh_pfc_map_functions(pfc, pmx); |
437 | if (unlikely(ret != 0)) | 438 | if (unlikely(ret != 0)) |
438 | goto free_pads; | 439 | return ret; |
439 | |||
440 | sh_pfc_pmx->pctl = pinctrl_register(&sh_pfc_pinctrl_desc, &pdev->dev, | ||
441 | sh_pfc_pmx); | ||
442 | if (IS_ERR(sh_pfc_pmx->pctl)) { | ||
443 | ret = PTR_ERR(sh_pfc_pmx->pctl); | ||
444 | goto free_functions; | ||
445 | } | ||
446 | 440 | ||
447 | sh_pfc_gpio_range.npins = pfc->last_gpio - pfc->first_gpio + 1; | 441 | pmx->pctl = pinctrl_register(&sh_pfc_pinctrl_desc, pfc->dev, pmx); |
448 | sh_pfc_gpio_range.base = pfc->first_gpio; | 442 | if (IS_ERR(pmx->pctl)) |
449 | sh_pfc_gpio_range.pin_base = pfc->first_gpio; | 443 | return PTR_ERR(pmx->pctl); |
450 | 444 | ||
451 | pinctrl_add_gpio_range(sh_pfc_pmx->pctl, &sh_pfc_gpio_range); | 445 | sh_pfc_gpio_range.npins = pfc->info->last_gpio |
446 | - pfc->info->first_gpio + 1; | ||
447 | sh_pfc_gpio_range.base = pfc->info->first_gpio; | ||
448 | sh_pfc_gpio_range.pin_base = pfc->info->first_gpio; | ||
452 | 449 | ||
453 | platform_set_drvdata(pdev, sh_pfc_pmx); | 450 | pinctrl_add_gpio_range(pmx->pctl, &sh_pfc_gpio_range); |
454 | 451 | ||
455 | return 0; | 452 | return 0; |
456 | |||
457 | free_functions: | ||
458 | kfree(sh_pfc_pmx->functions); | ||
459 | free_pads: | ||
460 | kfree(sh_pfc_pmx->pads); | ||
461 | kfree(sh_pfc_pmx); | ||
462 | |||
463 | return ret; | ||
464 | } | 453 | } |
465 | 454 | ||
466 | static int sh_pfc_pinctrl_remove(struct platform_device *pdev) | 455 | int sh_pfc_unregister_pinctrl(struct sh_pfc *pfc) |
467 | { | 456 | { |
468 | struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev); | 457 | struct sh_pfc_pinctrl *pmx = pfc->pinctrl; |
469 | 458 | ||
470 | pinctrl_unregister(pmx->pctl); | 459 | pinctrl_unregister(pmx->pctl); |
471 | 460 | ||
472 | platform_set_drvdata(pdev, NULL); | 461 | pfc->pinctrl = NULL; |
473 | |||
474 | kfree(sh_pfc_pmx->functions); | ||
475 | kfree(sh_pfc_pmx->pads); | ||
476 | kfree(sh_pfc_pmx); | ||
477 | |||
478 | return 0; | 462 | return 0; |
479 | } | 463 | } |
480 | |||
481 | static struct platform_driver sh_pfc_pinctrl_driver = { | ||
482 | .probe = sh_pfc_pinctrl_probe, | ||
483 | .remove = sh_pfc_pinctrl_remove, | ||
484 | .driver = { | ||
485 | .name = DRV_NAME, | ||
486 | .owner = THIS_MODULE, | ||
487 | }, | ||
488 | }; | ||
489 | |||
490 | static struct platform_device sh_pfc_pinctrl_device = { | ||
491 | .name = DRV_NAME, | ||
492 | .id = -1, | ||
493 | }; | ||
494 | |||
495 | static int sh_pfc_pinctrl_init(void) | ||
496 | { | ||
497 | int rc; | ||
498 | |||
499 | rc = platform_driver_register(&sh_pfc_pinctrl_driver); | ||
500 | if (likely(!rc)) { | ||
501 | rc = platform_device_register(&sh_pfc_pinctrl_device); | ||
502 | if (unlikely(rc)) | ||
503 | platform_driver_unregister(&sh_pfc_pinctrl_driver); | ||
504 | } | ||
505 | |||
506 | return rc; | ||
507 | } | ||
508 | |||
509 | int sh_pfc_register_pinctrl(struct sh_pfc *pfc) | ||
510 | { | ||
511 | sh_pfc_pmx = kzalloc(sizeof(struct sh_pfc_pinctrl), GFP_KERNEL); | ||
512 | if (unlikely(!sh_pfc_pmx)) | ||
513 | return -ENOMEM; | ||
514 | |||
515 | spin_lock_init(&sh_pfc_pmx->lock); | ||
516 | |||
517 | sh_pfc_pmx->pfc = pfc; | ||
518 | |||
519 | return sh_pfc_pinctrl_init(); | ||
520 | } | ||
521 | EXPORT_SYMBOL_GPL(sh_pfc_register_pinctrl); | ||
522 | |||
523 | static void __exit sh_pfc_pinctrl_exit(void) | ||
524 | { | ||
525 | platform_driver_unregister(&sh_pfc_pinctrl_driver); | ||
526 | } | ||
527 | module_exit(sh_pfc_pinctrl_exit); | ||
diff --git a/include/linux/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h index c19a0925829a..13049c4c8d30 100644 --- a/include/linux/sh_pfc.h +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h | |||
@@ -88,13 +88,7 @@ struct pinmux_range { | |||
88 | pinmux_enum_t force; | 88 | pinmux_enum_t force; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | struct pfc_window { | 91 | struct sh_pfc_soc_info { |
92 | phys_addr_t phys; | ||
93 | void __iomem *virt; | ||
94 | unsigned long size; | ||
95 | }; | ||
96 | |||
97 | struct sh_pfc { | ||
98 | char *name; | 92 | char *name; |
99 | pinmux_enum_t reserved_id; | 93 | pinmux_enum_t reserved_id; |
100 | struct pinmux_range data; | 94 | struct pinmux_range data; |
@@ -117,44 +111,9 @@ struct sh_pfc { | |||
117 | struct pinmux_irq *gpio_irq; | 111 | struct pinmux_irq *gpio_irq; |
118 | unsigned int gpio_irq_size; | 112 | unsigned int gpio_irq_size; |
119 | 113 | ||
120 | spinlock_t lock; | ||
121 | |||
122 | struct resource *resource; | ||
123 | unsigned int num_resources; | ||
124 | struct pfc_window *window; | ||
125 | |||
126 | unsigned long unlock_reg; | 114 | unsigned long unlock_reg; |
127 | }; | 115 | }; |
128 | 116 | ||
129 | /* XXX compat for now */ | ||
130 | #define pinmux_info sh_pfc | ||
131 | |||
132 | /* drivers/sh/pfc/gpio.c */ | ||
133 | int sh_pfc_register_gpiochip(struct sh_pfc *pfc); | ||
134 | |||
135 | /* drivers/sh/pfc/pinctrl.c */ | ||
136 | int sh_pfc_register_pinctrl(struct sh_pfc *pfc); | ||
137 | |||
138 | /* drivers/sh/pfc/core.c */ | ||
139 | int register_sh_pfc(struct sh_pfc *pfc); | ||
140 | |||
141 | int sh_pfc_read_bit(struct pinmux_data_reg *dr, unsigned long in_pos); | ||
142 | void sh_pfc_write_bit(struct pinmux_data_reg *dr, unsigned long in_pos, | ||
143 | unsigned long value); | ||
144 | int sh_pfc_get_data_reg(struct sh_pfc *pfc, unsigned gpio, | ||
145 | struct pinmux_data_reg **drp, int *bitp); | ||
146 | int sh_pfc_gpio_to_enum(struct sh_pfc *pfc, unsigned gpio, int pos, | ||
147 | pinmux_enum_t *enum_idp); | ||
148 | int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type, | ||
149 | int cfg_mode); | ||
150 | |||
151 | /* xxx */ | ||
152 | static inline int register_pinmux(struct pinmux_info *pip) | ||
153 | { | ||
154 | struct sh_pfc *pfc = pip; | ||
155 | return register_sh_pfc(pfc); | ||
156 | } | ||
157 | |||
158 | enum { GPIO_CFG_DRYRUN, GPIO_CFG_REQ, GPIO_CFG_FREE }; | 117 | enum { GPIO_CFG_DRYRUN, GPIO_CFG_REQ, GPIO_CFG_FREE }; |
159 | 118 | ||
160 | /* helper macro for port */ | 119 | /* helper macro for port */ |
diff --git a/drivers/sh/Kconfig b/drivers/sh/Kconfig index d860ef743568..f168a6159961 100644 --- a/drivers/sh/Kconfig +++ b/drivers/sh/Kconfig | |||
@@ -1,6 +1,5 @@ | |||
1 | menu "SuperH / SH-Mobile Driver Options" | 1 | menu "SuperH / SH-Mobile Driver Options" |
2 | 2 | ||
3 | source "drivers/sh/intc/Kconfig" | 3 | source "drivers/sh/intc/Kconfig" |
4 | source "drivers/sh/pfc/Kconfig" | ||
5 | 4 | ||
6 | endmenu | 5 | endmenu |
diff --git a/drivers/sh/Makefile b/drivers/sh/Makefile index e57895b1a425..fc67f564f02c 100644 --- a/drivers/sh/Makefile +++ b/drivers/sh/Makefile | |||
@@ -5,7 +5,6 @@ obj-y := intc/ | |||
5 | 5 | ||
6 | obj-$(CONFIG_HAVE_CLK) += clk/ | 6 | obj-$(CONFIG_HAVE_CLK) += clk/ |
7 | obj-$(CONFIG_MAPLE) += maple/ | 7 | obj-$(CONFIG_MAPLE) += maple/ |
8 | obj-$(CONFIG_SH_PFC) += pfc/ | ||
9 | obj-$(CONFIG_SUPERHYWAY) += superhyway/ | 8 | obj-$(CONFIG_SUPERHYWAY) += superhyway/ |
10 | 9 | ||
11 | obj-y += pm_runtime.o | 10 | obj-y += pm_runtime.o |
diff --git a/drivers/sh/pfc/Kconfig b/drivers/sh/pfc/Kconfig deleted file mode 100644 index 804f9ad1bf4a..000000000000 --- a/drivers/sh/pfc/Kconfig +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | comment "Pin function controller options" | ||
2 | |||
3 | config SH_PFC | ||
4 | # XXX move off the gpio dependency | ||
5 | depends on GENERIC_GPIO | ||
6 | select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB | ||
7 | select PINCTRL_SH_PFC | ||
8 | def_bool y | ||
9 | |||
10 | # | ||
11 | # Placeholder for now, rehome to drivers/pinctrl once the PFC APIs | ||
12 | # have settled. | ||
13 | # | ||
14 | config PINCTRL_SH_PFC | ||
15 | tristate "SuperH PFC pin controller driver" | ||
16 | depends on SH_PFC | ||
17 | select PINCTRL | ||
18 | select PINMUX | ||
19 | select PINCONF | ||
20 | |||
21 | config GPIO_SH_PFC | ||
22 | tristate "SuperH PFC GPIO support" | ||
23 | depends on SH_PFC && GPIOLIB | ||
24 | help | ||
25 | This enables support for GPIOs within the SoC's pin function | ||
26 | controller. | ||
diff --git a/drivers/sh/pfc/Makefile b/drivers/sh/pfc/Makefile deleted file mode 100644 index 7916027cce37..000000000000 --- a/drivers/sh/pfc/Makefile +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | obj-y += core.o | ||
2 | obj-$(CONFIG_PINCTRL_SH_PFC) += pinctrl.o | ||
3 | obj-$(CONFIG_GPIO_SH_PFC) += gpio.o | ||