diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-04-16 01:40:56 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 01:40:56 -0400 |
commit | 0207a2efb43d81e29e23662b5d035945688a103f (patch) | |
tree | b43cf6b34fd5c5d1f837c2915e4e055cbfb13883 /arch/sh | |
parent | 3ee8da87ba6151ec91b2b8bbd27633bb248ea0d5 (diff) |
sh: Add support for SH7724 (SH-Mobile R2R) CPU subtype.
This implements initial support for the SH-Mobile R2R CPU.
Based on Rev 0.11 of the initial SH7724 hardware manual.
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Kconfig | 10 | ||||
-rw-r--r-- | arch/sh/include/asm/processor.h | 2 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/freq.h | 18 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/sh7724.h | 255 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4/probe.c | 6 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/Makefile | 3 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 112 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c | 2230 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7724.c | 371 | ||||
-rw-r--r-- | arch/sh/kernel/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/oprofile/common.c | 1 |
11 files changed, 2997 insertions, 14 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index e7390dd0283d..505d1acbd0ad 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -347,6 +347,15 @@ config CPU_SUBTYPE_SH7723 | |||
347 | help | 347 | help |
348 | Select SH7723 if you have an SH-MobileR2 CPU. | 348 | Select SH7723 if you have an SH-MobileR2 CPU. |
349 | 349 | ||
350 | config CPU_SUBTYPE_SH7724 | ||
351 | bool "Support SH7724 processor" | ||
352 | select CPU_SH4A | ||
353 | select CPU_SHX2 | ||
354 | select ARCH_SPARSEMEM_ENABLE | ||
355 | select SYS_SUPPORTS_CMT | ||
356 | help | ||
357 | Select SH7724 if you have an SH-MobileR2R CPU. | ||
358 | |||
350 | config CPU_SUBTYPE_SH7763 | 359 | config CPU_SUBTYPE_SH7763 |
351 | bool "Support SH7763 processor" | 360 | bool "Support SH7763 processor" |
352 | select CPU_SH4A | 361 | select CPU_SH4A |
@@ -495,6 +504,7 @@ config SH_PCLK_FREQ | |||
495 | CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \ | 504 | CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \ |
496 | CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \ | 505 | CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \ |
497 | CPU_SUBTYPE_SH7786 | 506 | CPU_SUBTYPE_SH7786 |
507 | default "41666666" if CPU_SUBTYPE_SH7724 | ||
498 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R | 508 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R |
499 | default "66000000" if CPU_SUBTYPE_SH4_202 | 509 | default "66000000" if CPU_SUBTYPE_SH4_202 |
500 | default "50000000" | 510 | default "50000000" |
diff --git a/arch/sh/include/asm/processor.h b/arch/sh/include/asm/processor.h index 1fd58b421438..005c962c8b1c 100644 --- a/arch/sh/include/asm/processor.h +++ b/arch/sh/include/asm/processor.h | |||
@@ -32,7 +32,7 @@ enum cpu_type { | |||
32 | 32 | ||
33 | /* SH-4A types */ | 33 | /* SH-4A types */ |
34 | CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SH7786, | 34 | CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SH7786, |
35 | CPU_SH7723, CPU_SHX3, | 35 | CPU_SH7723, CPU_SH7724, CPU_SHX3, |
36 | 36 | ||
37 | /* SH4AL-DSP types */ | 37 | /* SH4AL-DSP types */ |
38 | CPU_SH7343, CPU_SH7722, CPU_SH7366, | 38 | CPU_SH7343, CPU_SH7722, CPU_SH7366, |
diff --git a/arch/sh/include/cpu-sh4/cpu/freq.h b/arch/sh/include/cpu-sh4/cpu/freq.h index 749d1c434337..ccf1d999db6d 100644 --- a/arch/sh/include/cpu-sh4/cpu/freq.h +++ b/arch/sh/include/cpu-sh4/cpu/freq.h | |||
@@ -25,6 +25,24 @@ | |||
25 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ | 25 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ |
26 | defined(CONFIG_CPU_SUBTYPE_SH7780) | 26 | defined(CONFIG_CPU_SUBTYPE_SH7780) |
27 | #define FRQCR 0xffc80000 | 27 | #define FRQCR 0xffc80000 |
28 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
29 | #define FRQCRA 0xa4150000 | ||
30 | #define FRQCRB 0xa4150004 | ||
31 | #define VCLKCR 0xa4150048 | ||
32 | |||
33 | #define FCLKACR 0xa4150008 | ||
34 | #define FCLKBCR 0xa415000c | ||
35 | #define FRQCR FRQCRA | ||
36 | #define SCLKACR FCLKACR | ||
37 | #define SCLKBCR FCLKBCR | ||
38 | #define FCLKACR 0xa4150008 | ||
39 | #define FCLKBCR 0xa415000c | ||
40 | #define IrDACLKCR 0xa4150018 | ||
41 | |||
42 | #define MSTPCR0 0xa4150030 | ||
43 | #define MSTPCR1 0xa4150034 | ||
44 | #define MSTPCR2 0xa4150038 | ||
45 | |||
28 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) | 46 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) |
29 | #define FRQCR0 0xffc80000 | 47 | #define FRQCR0 0xffc80000 |
30 | #define FRQCR1 0xffc80004 | 48 | #define FRQCR1 0xffc80004 |
diff --git a/arch/sh/include/cpu-sh4/cpu/sh7724.h b/arch/sh/include/cpu-sh4/cpu/sh7724.h new file mode 100644 index 000000000000..34605c9e354d --- /dev/null +++ b/arch/sh/include/cpu-sh4/cpu/sh7724.h | |||
@@ -0,0 +1,255 @@ | |||
1 | #ifndef __ASM_SH7724_H__ | ||
2 | #define __ASM_SH7724_H__ | ||
3 | |||
4 | enum { | ||
5 | /* PTA */ | ||
6 | GPIO_PTA7, GPIO_PTA6, GPIO_PTA5, GPIO_PTA4, | ||
7 | GPIO_PTA3, GPIO_PTA2, GPIO_PTA1, GPIO_PTA0, | ||
8 | |||
9 | /* PTB */ | ||
10 | GPIO_PTB7, GPIO_PTB6, GPIO_PTB5, GPIO_PTB4, | ||
11 | GPIO_PTB3, GPIO_PTB2, GPIO_PTB1, GPIO_PTB0, | ||
12 | |||
13 | /* PTC */ | ||
14 | GPIO_PTC7, GPIO_PTC6, GPIO_PTC5, GPIO_PTC4, | ||
15 | GPIO_PTC3, GPIO_PTC2, GPIO_PTC1, GPIO_PTC0, | ||
16 | |||
17 | /* PTD */ | ||
18 | GPIO_PTD7, GPIO_PTD6, GPIO_PTD5, GPIO_PTD4, | ||
19 | GPIO_PTD3, GPIO_PTD2, GPIO_PTD1, GPIO_PTD0, | ||
20 | |||
21 | /* PTE */ | ||
22 | GPIO_PTE7, GPIO_PTE6, GPIO_PTE5, GPIO_PTE4, | ||
23 | GPIO_PTE3, GPIO_PTE2, GPIO_PTE1, GPIO_PTE0, | ||
24 | |||
25 | /* PTF */ | ||
26 | GPIO_PTF7, GPIO_PTF6, GPIO_PTF5, GPIO_PTF4, | ||
27 | GPIO_PTF3, GPIO_PTF2, GPIO_PTF1, GPIO_PTF0, | ||
28 | |||
29 | /* PTG */ | ||
30 | GPIO_PTG5, GPIO_PTG4, | ||
31 | GPIO_PTG3, GPIO_PTG2, GPIO_PTG1, GPIO_PTG0, | ||
32 | |||
33 | /* PTH */ | ||
34 | GPIO_PTH7, GPIO_PTH6, GPIO_PTH5, GPIO_PTH4, | ||
35 | GPIO_PTH3, GPIO_PTH2, GPIO_PTH1, GPIO_PTH0, | ||
36 | |||
37 | /* PTJ */ | ||
38 | GPIO_PTJ7, GPIO_PTJ6, GPIO_PTJ5, | ||
39 | GPIO_PTJ3, GPIO_PTJ2, GPIO_PTJ1, GPIO_PTJ0, | ||
40 | |||
41 | /* PTK */ | ||
42 | GPIO_PTK7, GPIO_PTK6, GPIO_PTK5, GPIO_PTK4, | ||
43 | GPIO_PTK3, GPIO_PTK2, GPIO_PTK1, GPIO_PTK0, | ||
44 | |||
45 | /* PTL */ | ||
46 | GPIO_PTL7, GPIO_PTL6, GPIO_PTL5, GPIO_PTL4, | ||
47 | GPIO_PTL3, GPIO_PTL2, GPIO_PTL1, GPIO_PTL0, | ||
48 | |||
49 | /* PTM */ | ||
50 | GPIO_PTM7, GPIO_PTM6, GPIO_PTM5, GPIO_PTM4, | ||
51 | GPIO_PTM3, GPIO_PTM2, GPIO_PTM1, GPIO_PTM0, | ||
52 | |||
53 | /* PTN */ | ||
54 | GPIO_PTN7, GPIO_PTN6, GPIO_PTN5, GPIO_PTN4, | ||
55 | GPIO_PTN3, GPIO_PTN2, GPIO_PTN1, GPIO_PTN0, | ||
56 | |||
57 | /* PTQ */ | ||
58 | GPIO_PTQ7, GPIO_PTQ6, GPIO_PTQ5, GPIO_PTQ4, | ||
59 | GPIO_PTQ3, GPIO_PTQ2, GPIO_PTQ1, GPIO_PTQ0, | ||
60 | |||
61 | /* PTR */ | ||
62 | GPIO_PTR7, GPIO_PTR6, GPIO_PTR5, GPIO_PTR4, | ||
63 | GPIO_PTR3, GPIO_PTR2, GPIO_PTR1, GPIO_PTR0, | ||
64 | |||
65 | /* PTS */ | ||
66 | GPIO_PTS6, GPIO_PTS5, GPIO_PTS4, | ||
67 | GPIO_PTS3, GPIO_PTS2, GPIO_PTS1, GPIO_PTS0, | ||
68 | |||
69 | /* PTT */ | ||
70 | GPIO_PTT7, GPIO_PTT6, GPIO_PTT5, GPIO_PTT4, | ||
71 | GPIO_PTT3, GPIO_PTT2, GPIO_PTT1, GPIO_PTT0, | ||
72 | |||
73 | /* PTU */ | ||
74 | GPIO_PTU7, GPIO_PTU6, GPIO_PTU5, GPIO_PTU4, | ||
75 | GPIO_PTU3, GPIO_PTU2, GPIO_PTU1, GPIO_PTU0, | ||
76 | |||
77 | /* PTV */ | ||
78 | GPIO_PTV7, GPIO_PTV6, GPIO_PTV5, GPIO_PTV4, | ||
79 | GPIO_PTV3, GPIO_PTV2, GPIO_PTV1, GPIO_PTV0, | ||
80 | |||
81 | /* PTW */ | ||
82 | GPIO_PTW7, GPIO_PTW6, GPIO_PTW5, GPIO_PTW4, | ||
83 | GPIO_PTW3, GPIO_PTW2, GPIO_PTW1, GPIO_PTW0, | ||
84 | |||
85 | /* PTX */ | ||
86 | GPIO_PTX7, GPIO_PTX6, GPIO_PTX5, GPIO_PTX4, | ||
87 | GPIO_PTX3, GPIO_PTX2, GPIO_PTX1, GPIO_PTX0, | ||
88 | |||
89 | /* PTY */ | ||
90 | GPIO_PTY7, GPIO_PTY6, GPIO_PTY5, GPIO_PTY4, | ||
91 | GPIO_PTY3, GPIO_PTY2, GPIO_PTY1, GPIO_PTY0, | ||
92 | |||
93 | /* PTZ */ | ||
94 | GPIO_PTZ7, GPIO_PTZ6, GPIO_PTZ5, GPIO_PTZ4, | ||
95 | GPIO_PTZ3, GPIO_PTZ2, GPIO_PTZ1, GPIO_PTZ0, | ||
96 | |||
97 | /* BSC (PTA/PTB/PTJ/PTQ/PTR/PTT) */ | ||
98 | GPIO_FN_D31, GPIO_FN_D30, GPIO_FN_D29, GPIO_FN_D28, | ||
99 | GPIO_FN_D27, GPIO_FN_D26, GPIO_FN_D25, GPIO_FN_D24, | ||
100 | GPIO_FN_D23, GPIO_FN_D22, GPIO_FN_D21, GPIO_FN_D20, | ||
101 | GPIO_FN_D19, GPIO_FN_D18, GPIO_FN_D17, GPIO_FN_D16, | ||
102 | GPIO_FN_D15, GPIO_FN_D14, GPIO_FN_D13, GPIO_FN_D12, | ||
103 | GPIO_FN_D11, GPIO_FN_D10, GPIO_FN_D9, GPIO_FN_D8, | ||
104 | GPIO_FN_D7, GPIO_FN_D6, GPIO_FN_D5, GPIO_FN_D4, | ||
105 | GPIO_FN_D3, GPIO_FN_D2, GPIO_FN_D1, GPIO_FN_D0, | ||
106 | GPIO_FN_A25, GPIO_FN_A24, GPIO_FN_A23, GPIO_FN_A22, | ||
107 | GPIO_FN_CS6B_CE1B, GPIO_FN_CS6A_CE2B, | ||
108 | GPIO_FN_CS5B_CE1A, GPIO_FN_CS5A_CE2A, | ||
109 | GPIO_FN_WE3_ICIOWR, GPIO_FN_WE2_ICIORD, | ||
110 | GPIO_FN_IOIS16, GPIO_FN_WAIT, | ||
111 | GPIO_FN_BS, | ||
112 | |||
113 | /* KEYSC (PTA/PTB)*/ | ||
114 | GPIO_FN_KEYOUT5_IN5, GPIO_FN_KEYOUT4_IN6, GPIO_FN_KEYIN4, | ||
115 | GPIO_FN_KEYIN3, GPIO_FN_KEYIN2, GPIO_FN_KEYIN1, GPIO_FN_KEYIN0, | ||
116 | GPIO_FN_KEYOUT3, GPIO_FN_KEYOUT2, GPIO_FN_KEYOUT1, GPIO_FN_KEYOUT0, | ||
117 | |||
118 | /* ATAPI (PTA/PTB/PTK/PTR/PTS/PTW) */ | ||
119 | GPIO_FN_IDED15, GPIO_FN_IDED14, GPIO_FN_IDED13, GPIO_FN_IDED12, | ||
120 | GPIO_FN_IDED11, GPIO_FN_IDED10, GPIO_FN_IDED9, GPIO_FN_IDED8, | ||
121 | GPIO_FN_IDED7, GPIO_FN_IDED6, GPIO_FN_IDED5, GPIO_FN_IDED4, | ||
122 | GPIO_FN_IDED3, GPIO_FN_IDED2, GPIO_FN_IDED1, GPIO_FN_IDED0, | ||
123 | GPIO_FN_IDEA2, GPIO_FN_IDEA1, GPIO_FN_IDEA0, GPIO_FN_IDEIOWR, | ||
124 | GPIO_FN_IODREQ, GPIO_FN_IDECS0, GPIO_FN_IDECS1, GPIO_FN_IDEIORD, | ||
125 | GPIO_FN_DIRECTION, GPIO_FN_EXBUF_ENB, GPIO_FN_IDERST, GPIO_FN_IODACK, | ||
126 | GPIO_FN_IDEINT, GPIO_FN_IDEIORDY, | ||
127 | |||
128 | /* TPU (PTB/PTR/PTS) */ | ||
129 | GPIO_FN_TPUTO3, GPIO_FN_TPUTO2, GPIO_FN_TPUTO1, GPIO_FN_TPUTO0, | ||
130 | GPIO_FN_TPUTI3, GPIO_FN_TPUTI2, | ||
131 | |||
132 | /* LCDC (PTC/PTD/PTE/PTF/PTM/PTR) */ | ||
133 | GPIO_FN_LCDD23, GPIO_FN_LCDD22, GPIO_FN_LCDD21, GPIO_FN_LCDD20, | ||
134 | GPIO_FN_LCDD19, GPIO_FN_LCDD18, GPIO_FN_LCDD17, GPIO_FN_LCDD16, | ||
135 | GPIO_FN_LCDD15, GPIO_FN_LCDD14, GPIO_FN_LCDD13, GPIO_FN_LCDD12, | ||
136 | GPIO_FN_LCDD11, GPIO_FN_LCDD10, GPIO_FN_LCDD9, GPIO_FN_LCDD8, | ||
137 | GPIO_FN_LCDD7, GPIO_FN_LCDD6, GPIO_FN_LCDD5, GPIO_FN_LCDD4, | ||
138 | GPIO_FN_LCDD3, GPIO_FN_LCDD2, GPIO_FN_LCDD1, GPIO_FN_LCDD0, | ||
139 | GPIO_FN_LCDVSYN, GPIO_FN_LCDDISP, GPIO_FN_LCDRS, GPIO_FN_LCDHSYN, | ||
140 | GPIO_FN_LCDCS, GPIO_FN_LCDDON, GPIO_FN_LCDDCK, GPIO_FN_LCDWR, | ||
141 | GPIO_FN_LCDVEPWC, GPIO_FN_LCDVCPWC, GPIO_FN_LCDRD, GPIO_FN_LCDLCLK, | ||
142 | |||
143 | /* SCIF0 (PTF/PTM) */ | ||
144 | GPIO_FN_SCIF0_TXD, GPIO_FN_SCIF0_RXD, GPIO_FN_SCIF0_SCK, | ||
145 | |||
146 | /* SCIF1 (PTL) */ | ||
147 | GPIO_FN_SCIF1_SCK, GPIO_FN_SCIF1_RXD, GPIO_FN_SCIF1_TXD, | ||
148 | |||
149 | /* SCIF2 (PTE/PTF/PTN) with LCDC, VOU */ | ||
150 | GPIO_FN_SCIF2_L_TXD, GPIO_FN_SCIF2_L_SCK, GPIO_FN_SCIF2_L_RXD, | ||
151 | GPIO_FN_SCIF2_V_TXD, GPIO_FN_SCIF2_V_SCK, GPIO_FN_SCIF2_V_RXD, | ||
152 | |||
153 | /* SCIF3 (PTL/PTN/PTZ) with VOU, IRQ */ | ||
154 | GPIO_FN_SCIF3_V_SCK, GPIO_FN_SCIF3_V_RXD, GPIO_FN_SCIF3_V_TXD, | ||
155 | GPIO_FN_SCIF3_V_CTS, GPIO_FN_SCIF3_V_RTS, | ||
156 | GPIO_FN_SCIF3_I_SCK, GPIO_FN_SCIF3_I_RXD, GPIO_FN_SCIF3_I_TXD, | ||
157 | GPIO_FN_SCIF3_I_CTS, GPIO_FN_SCIF3_I_RTS, | ||
158 | |||
159 | /* SCIF4 (PTE) */ | ||
160 | GPIO_FN_SCIF4_SCK, GPIO_FN_SCIF4_RXD, GPIO_FN_SCIF4_TXD, | ||
161 | |||
162 | /* SCIF5 (PTS) */ | ||
163 | GPIO_FN_SCIF5_SCK, GPIO_FN_SCIF5_RXD, GPIO_FN_SCIF5_TXD, | ||
164 | |||
165 | /* FSI (PTE/PTU/PTV) */ | ||
166 | GPIO_FN_FSIMCKB, GPIO_FN_FSIMCKA, GPIO_FN_FSIOASD, | ||
167 | GPIO_FN_FSIIABCK, GPIO_FN_FSIIALRCK, GPIO_FN_FSIOABCK, | ||
168 | GPIO_FN_FSIOALRCK, GPIO_FN_CLKAUDIOAO, GPIO_FN_FSIIBSD, | ||
169 | GPIO_FN_FSIOBSD, GPIO_FN_FSIIBBCK, GPIO_FN_FSIIBLRCK, | ||
170 | GPIO_FN_FSIOBBCK, GPIO_FN_FSIOBLRCK, GPIO_FN_CLKAUDIOBO, | ||
171 | GPIO_FN_FSIIASD, | ||
172 | |||
173 | /* AUD (PTG) */ | ||
174 | GPIO_FN_AUDCK, GPIO_FN_AUDSYNC, GPIO_FN_AUDATA3, | ||
175 | GPIO_FN_AUDATA2, GPIO_FN_AUDATA1, GPIO_FN_AUDATA0, | ||
176 | |||
177 | /* VIO (PTS) (common?) */ | ||
178 | GPIO_FN_VIO_CKO, | ||
179 | |||
180 | /* VIO0 (PTH/PTK) */ | ||
181 | GPIO_FN_VIO0_D15, GPIO_FN_VIO0_D14, GPIO_FN_VIO0_D13, GPIO_FN_VIO0_D12, | ||
182 | GPIO_FN_VIO0_D11, GPIO_FN_VIO0_D10, GPIO_FN_VIO0_D9, GPIO_FN_VIO0_D8, | ||
183 | GPIO_FN_VIO0_D7, GPIO_FN_VIO0_D6, GPIO_FN_VIO0_D5, GPIO_FN_VIO0_D4, | ||
184 | GPIO_FN_VIO0_D3, GPIO_FN_VIO0_D2, GPIO_FN_VIO0_D1, GPIO_FN_VIO0_D0, | ||
185 | GPIO_FN_VIO0_VD, GPIO_FN_VIO0_CLK, | ||
186 | GPIO_FN_VIO0_FLD, GPIO_FN_VIO0_HD, | ||
187 | |||
188 | /* VIO1 (PTK/PTS) */ | ||
189 | GPIO_FN_VIO1_D7, GPIO_FN_VIO1_D6, GPIO_FN_VIO1_D5, GPIO_FN_VIO1_D4, | ||
190 | GPIO_FN_VIO1_D3, GPIO_FN_VIO1_D2, GPIO_FN_VIO1_D1, GPIO_FN_VIO1_D0, | ||
191 | GPIO_FN_VIO1_FLD, GPIO_FN_VIO1_HD, GPIO_FN_VIO1_VD, GPIO_FN_VIO1_CLK, | ||
192 | |||
193 | /* Eth (PTL/PTN/PTX) */ | ||
194 | GPIO_FN_RMII_RXD0, GPIO_FN_RMII_RXD1, | ||
195 | GPIO_FN_RMII_TXD0, GPIO_FN_RMII_TXD1, | ||
196 | GPIO_FN_RMII_REF_CLK, GPIO_FN_RMII_TX_EN, | ||
197 | GPIO_FN_RMII_RX_ER, GPIO_FN_RMII_CRS_DV, | ||
198 | GPIO_FN_LNKSTA, GPIO_FN_MDIO, | ||
199 | GPIO_FN_MDC, | ||
200 | |||
201 | /* System (PTJ) */ | ||
202 | GPIO_FN_PDSTATUS, GPIO_FN_STATUS2, GPIO_FN_STATUS0, | ||
203 | |||
204 | /* VOU (PTL/PTM/PTN*/ | ||
205 | GPIO_FN_DV_D15, GPIO_FN_DV_D14, GPIO_FN_DV_D13, GPIO_FN_DV_D12, | ||
206 | GPIO_FN_DV_D11, GPIO_FN_DV_D10, GPIO_FN_DV_D9, GPIO_FN_DV_D8, | ||
207 | GPIO_FN_DV_D7, GPIO_FN_DV_D6, GPIO_FN_DV_D5, GPIO_FN_DV_D4, | ||
208 | GPIO_FN_DV_D3, GPIO_FN_DV_D2, GPIO_FN_DV_D1, GPIO_FN_DV_D0, | ||
209 | GPIO_FN_DV_CLKI, GPIO_FN_DV_CLK, GPIO_FN_DV_VSYNC, GPIO_FN_DV_HSYNC, | ||
210 | |||
211 | /* MSIOF0 (PTL/PTM) */ | ||
212 | GPIO_FN_MSIOF0_RXD, GPIO_FN_MSIOF0_TXD, | ||
213 | GPIO_FN_MSIOF0_MCK, GPIO_FN_MSIOF0_TSCK, | ||
214 | GPIO_FN_MSIOF0_SS1, GPIO_FN_MSIOF0_SS2, | ||
215 | GPIO_FN_MSIOF0_TSYNC, GPIO_FN_MSIOF0_RSCK, | ||
216 | GPIO_FN_MSIOF0_RSYNC, | ||
217 | |||
218 | /* MSIOF1 (PTV) */ | ||
219 | GPIO_FN_MSIOF1_RXD, GPIO_FN_MSIOF1_TXD, | ||
220 | GPIO_FN_MSIOF1_MCK, GPIO_FN_MSIOF1_TSCK, | ||
221 | GPIO_FN_MSIOF1_SS1, GPIO_FN_MSIOF1_SS2, | ||
222 | GPIO_FN_MSIOF1_TSYNC, GPIO_FN_MSIOF1_RSCK, | ||
223 | GPIO_FN_MSIOF1_RSYNC, | ||
224 | |||
225 | /* DMAC (PTU/PTX) */ | ||
226 | GPIO_FN_DMAC_DACK0, GPIO_FN_DMAC_DREQ0, | ||
227 | GPIO_FN_DMAC_DACK1, GPIO_FN_DMAC_DREQ1, | ||
228 | |||
229 | /* SDHI0 (PTY) */ | ||
230 | GPIO_FN_SDHI0CD, GPIO_FN_SDHI0WP, GPIO_FN_SDHI0CMD, GPIO_FN_SDHI0CLK, | ||
231 | GPIO_FN_SDHI0D3, GPIO_FN_SDHI0D2, GPIO_FN_SDHI0D1, GPIO_FN_SDHI0D0, | ||
232 | |||
233 | /* SDHI1 (PTW) */ | ||
234 | GPIO_FN_SDHI1CD, GPIO_FN_SDHI1WP, GPIO_FN_SDHI1CMD, GPIO_FN_SDHI1CLK, | ||
235 | GPIO_FN_SDHI1D3, GPIO_FN_SDHI1D2, GPIO_FN_SDHI1D1, GPIO_FN_SDHI1D0, | ||
236 | |||
237 | /* MMC (PTW/PTX)*/ | ||
238 | GPIO_FN_MMC_D7, GPIO_FN_MMC_D6, GPIO_FN_MMC_D5, GPIO_FN_MMC_D4, | ||
239 | GPIO_FN_MMC_D3, GPIO_FN_MMC_D2, GPIO_FN_MMC_D1, GPIO_FN_MMC_D0, | ||
240 | GPIO_FN_MMC_CLK, GPIO_FN_MMC_CMD, | ||
241 | |||
242 | /* IrDA (PTX) */ | ||
243 | GPIO_FN_IRDA_OUT, GPIO_FN_IRDA_IN, | ||
244 | |||
245 | /* TSIF (PTX) */ | ||
246 | GPIO_FN_TSIF_TS0_SDAT, GPIO_FN_TSIF_TS0_SCK, | ||
247 | GPIO_FN_TSIF_TS0_SDEN, GPIO_FN_TSIF_TS0_SPSYNC, | ||
248 | |||
249 | /* IRQ (PTZ) */ | ||
250 | GPIO_FN_INTC_IRQ7, GPIO_FN_INTC_IRQ6, GPIO_FN_INTC_IRQ5, | ||
251 | GPIO_FN_INTC_IRQ4, GPIO_FN_INTC_IRQ3, GPIO_FN_INTC_IRQ2, | ||
252 | GPIO_FN_INTC_IRQ1, GPIO_FN_INTC_IRQ0, | ||
253 | }; | ||
254 | |||
255 | #endif /* __ASM_SH7724_H__ */ | ||
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c index 91e3677ae09d..973ff831c8a8 100644 --- a/arch/sh/kernel/cpu/sh4/probe.c +++ b/arch/sh/kernel/cpu/sh4/probe.c | |||
@@ -156,6 +156,12 @@ int __init detect_cpu_and_cache_system(void) | |||
156 | break; | 156 | break; |
157 | } | 157 | } |
158 | break; | 158 | break; |
159 | case 0x300b: | ||
160 | boot_cpu_data.type = CPU_SH7724; | ||
161 | boot_cpu_data.icache.ways = 4; | ||
162 | boot_cpu_data.dcache.ways = 4; | ||
163 | boot_cpu_data.flags |= CPU_HAS_LLSC | CPU_HAS_FPU; | ||
164 | break; | ||
159 | case 0x4000: /* 1st cut */ | 165 | case 0x4000: /* 1st cut */ |
160 | case 0x4001: /* 2nd cut */ | 166 | case 0x4001: /* 2nd cut */ |
161 | boot_cpu_data.type = CPU_SHX3; | 167 | boot_cpu_data.type = CPU_SHX3; |
diff --git a/arch/sh/kernel/cpu/sh4a/Makefile b/arch/sh/kernel/cpu/sh4a/Makefile index 1a92361feeb9..afd6fba47849 100644 --- a/arch/sh/kernel/cpu/sh4a/Makefile +++ b/arch/sh/kernel/cpu/sh4a/Makefile | |||
@@ -11,6 +11,7 @@ obj-$(CONFIG_CPU_SUBTYPE_SH7786) += setup-sh7786.o | |||
11 | obj-$(CONFIG_CPU_SUBTYPE_SH7343) += setup-sh7343.o | 11 | obj-$(CONFIG_CPU_SUBTYPE_SH7343) += setup-sh7343.o |
12 | obj-$(CONFIG_CPU_SUBTYPE_SH7722) += setup-sh7722.o | 12 | obj-$(CONFIG_CPU_SUBTYPE_SH7722) += setup-sh7722.o |
13 | obj-$(CONFIG_CPU_SUBTYPE_SH7723) += setup-sh7723.o | 13 | obj-$(CONFIG_CPU_SUBTYPE_SH7723) += setup-sh7723.o |
14 | obj-$(CONFIG_CPU_SUBTYPE_SH7724) += setup-sh7724.o | ||
14 | obj-$(CONFIG_CPU_SUBTYPE_SH7366) += setup-sh7366.o | 15 | obj-$(CONFIG_CPU_SUBTYPE_SH7366) += setup-sh7366.o |
15 | obj-$(CONFIG_CPU_SUBTYPE_SHX3) += setup-shx3.o | 16 | obj-$(CONFIG_CPU_SUBTYPE_SHX3) += setup-shx3.o |
16 | 17 | ||
@@ -26,12 +27,14 @@ clock-$(CONFIG_CPU_SUBTYPE_SH7786) := clock-sh7786.o | |||
26 | clock-$(CONFIG_CPU_SUBTYPE_SH7343) := clock-sh7722.o | 27 | clock-$(CONFIG_CPU_SUBTYPE_SH7343) := clock-sh7722.o |
27 | clock-$(CONFIG_CPU_SUBTYPE_SH7722) := clock-sh7722.o | 28 | clock-$(CONFIG_CPU_SUBTYPE_SH7722) := clock-sh7722.o |
28 | clock-$(CONFIG_CPU_SUBTYPE_SH7723) := clock-sh7722.o | 29 | clock-$(CONFIG_CPU_SUBTYPE_SH7723) := clock-sh7722.o |
30 | clock-$(CONFIG_CPU_SUBTYPE_SH7724) := clock-sh7722.o | ||
29 | clock-$(CONFIG_CPU_SUBTYPE_SH7366) := clock-sh7722.o | 31 | clock-$(CONFIG_CPU_SUBTYPE_SH7366) := clock-sh7722.o |
30 | clock-$(CONFIG_CPU_SUBTYPE_SHX3) := clock-shx3.o | 32 | clock-$(CONFIG_CPU_SUBTYPE_SHX3) := clock-shx3.o |
31 | 33 | ||
32 | # Pinmux setup | 34 | # Pinmux setup |
33 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7722) := pinmux-sh7722.o | 35 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7722) := pinmux-sh7722.o |
34 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7723) := pinmux-sh7723.o | 36 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7723) := pinmux-sh7723.o |
37 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7724) := pinmux-sh7724.o | ||
35 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7785) := pinmux-sh7785.o | 38 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7785) := pinmux-sh7785.o |
36 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7786) := pinmux-sh7786.o | 39 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7786) := pinmux-sh7786.o |
37 | 40 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c index 0e174af21874..1ccdfc561fef 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c | |||
@@ -130,6 +130,12 @@ static void adjust_clocks(int originate, int *l, unsigned long v[], | |||
130 | * is quite simple.. | 130 | * is quite simple.. |
131 | */ | 131 | */ |
132 | 132 | ||
133 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
134 | #define STCPLL(frqcr) ((((frqcr >> 24) & 0x3f) + 1) * 2) | ||
135 | #else | ||
136 | #define STCPLL(frqcr) (((frqcr >> 24) & 0x1f) + 1) | ||
137 | #endif | ||
138 | |||
133 | /* | 139 | /* |
134 | * Instead of having two separate multipliers/divisors set, like this: | 140 | * Instead of having two separate multipliers/divisors set, like this: |
135 | * | 141 | * |
@@ -139,13 +145,17 @@ static void adjust_clocks(int originate, int *l, unsigned long v[], | |||
139 | * I created the divisors2 array, which is used to calculate rate like | 145 | * I created the divisors2 array, which is used to calculate rate like |
140 | * rate = parent * 2 / divisors2[ divisor ]; | 146 | * rate = parent * 2 / divisors2[ divisor ]; |
141 | */ | 147 | */ |
148 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
149 | static int divisors2[] = { 4, 1, 8, 12, 16, 24, 32, 1, 48, 64, 72, 96, 1, 144 }; | ||
150 | #else | ||
142 | static int divisors2[] = { 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40 }; | 151 | static int divisors2[] = { 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40 }; |
152 | #endif | ||
143 | 153 | ||
144 | static void master_clk_recalc(struct clk *clk) | 154 | static void master_clk_recalc(struct clk *clk) |
145 | { | 155 | { |
146 | unsigned frqcr = ctrl_inl(FRQCR); | 156 | unsigned frqcr = ctrl_inl(FRQCR); |
147 | 157 | ||
148 | clk->rate = CONFIG_SH_PCLK_FREQ * (((frqcr >> 24) & 0x1f) + 1); | 158 | clk->rate = CONFIG_SH_PCLK_FREQ * STCPLL(frqcr); |
149 | } | 159 | } |
150 | 160 | ||
151 | static void master_clk_init(struct clk *clk) | 161 | static void master_clk_init(struct clk *clk) |
@@ -161,13 +171,30 @@ static void module_clk_recalc(struct clk *clk) | |||
161 | { | 171 | { |
162 | unsigned long frqcr = ctrl_inl(FRQCR); | 172 | unsigned long frqcr = ctrl_inl(FRQCR); |
163 | 173 | ||
164 | clk->rate = clk->parent->rate / (((frqcr >> 24) & 0x1f) + 1); | 174 | clk->rate = clk->parent->rate / STCPLL(frqcr); |
165 | } | 175 | } |
166 | 176 | ||
177 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
178 | #define MASTERDIVS { 12, 16, 24, 30, 32, 36, 48 } | ||
179 | #define STCMASK 0x3f | ||
180 | #define DIVCALC(div) (div/2-1) | ||
181 | #define FRQCRKICK 0x80000000 | ||
182 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | ||
183 | #define MASTERDIVS { 6, 8, 12, 16 } | ||
184 | #define STCMASK 0x1f | ||
185 | #define DIVCALC(div) (div-1) | ||
186 | #define FRQCRKICK 0x00000000 | ||
187 | #else | ||
188 | #define MASTERDIVS { 2, 3, 4, 6, 8, 16 } | ||
189 | #define STCMASK 0x1f | ||
190 | #define DIVCALC(div) (div-1) | ||
191 | #define FRQCRKICK 0x00000000 | ||
192 | #endif | ||
193 | |||
167 | static int master_clk_setrate(struct clk *clk, unsigned long rate, int id) | 194 | static int master_clk_setrate(struct clk *clk, unsigned long rate, int id) |
168 | { | 195 | { |
169 | int div = rate / clk->rate; | 196 | int div = rate / clk->rate; |
170 | int master_divs[] = { 2, 3, 4, 6, 8, 16 }; | 197 | int master_divs[] = MASTERDIVS; |
171 | int index; | 198 | int index; |
172 | unsigned long frqcr; | 199 | unsigned long frqcr; |
173 | 200 | ||
@@ -180,8 +207,9 @@ static int master_clk_setrate(struct clk *clk, unsigned long rate, int id) | |||
180 | div = master_divs[index - 1]; | 207 | div = master_divs[index - 1]; |
181 | 208 | ||
182 | frqcr = ctrl_inl(FRQCR); | 209 | frqcr = ctrl_inl(FRQCR); |
183 | frqcr &= ~(0xF << 24); | 210 | frqcr &= ~(STCMASK << 24); |
184 | frqcr |= ( (div-1) << 24); | 211 | frqcr |= (DIVCALC(div) << 24); |
212 | frqcr |= FRQCRKICK; | ||
185 | ctrl_outl(frqcr, FRQCR); | 213 | ctrl_outl(frqcr, FRQCR); |
186 | 214 | ||
187 | return 0; | 215 | return 0; |
@@ -377,6 +405,7 @@ static int sh7722_frqcr_set_rate(struct clk *clk, unsigned long rate, | |||
377 | /* clear FRQCR bits */ | 405 | /* clear FRQCR bits */ |
378 | frqcr &= ~(ctx.mask << ctx.shift); | 406 | frqcr &= ~(ctx.mask << ctx.shift); |
379 | frqcr |= div << ctx.shift; | 407 | frqcr |= div << ctx.shift; |
408 | frqcr |= FRQCRKICK; | ||
380 | 409 | ||
381 | /* ...and perform actual change */ | 410 | /* ...and perform actual change */ |
382 | ctrl_outl(frqcr, FRQCR); | 411 | ctrl_outl(frqcr, FRQCR); |
@@ -542,8 +571,8 @@ static struct clk sh7722_r_clock = { | |||
542 | .flags = CLK_RATE_PROPAGATES, | 571 | .flags = CLK_RATE_PROPAGATES, |
543 | }; | 572 | }; |
544 | 573 | ||
545 | #ifndef CONFIG_CPU_SUBTYPE_SH7343 | 574 | #if !defined(CONFIG_CPU_SUBTYPE_SH7343) &&\ |
546 | 575 | !defined(CONFIG_CPU_SUBTYPE_SH7724) | |
547 | /* | 576 | /* |
548 | * these three clocks - SIU A, SIU B, IrDA - share the same clk_ops | 577 | * these three clocks - SIU A, SIU B, IrDA - share the same clk_ops |
549 | * methods of clk_ops determine which register they should access by | 578 | * methods of clk_ops determine which register they should access by |
@@ -560,15 +589,16 @@ static struct clk sh7722_siu_b_clock = { | |||
560 | .arch_flags = SCLKBCR, | 589 | .arch_flags = SCLKBCR, |
561 | .ops = &sh7722_siu_clk_ops, | 590 | .ops = &sh7722_siu_clk_ops, |
562 | }; | 591 | }; |
592 | #endif /* CONFIG_CPU_SUBTYPE_SH7343, SH7724 */ | ||
563 | 593 | ||
564 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) | 594 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) ||\ |
595 | defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
565 | static struct clk sh7722_irda_clock = { | 596 | static struct clk sh7722_irda_clock = { |
566 | .name = "irda_clk", | 597 | .name = "irda_clk", |
567 | .arch_flags = IrDACLKCR, | 598 | .arch_flags = IrDACLKCR, |
568 | .ops = &sh7722_siu_clk_ops, | 599 | .ops = &sh7722_siu_clk_ops, |
569 | }; | 600 | }; |
570 | #endif | 601 | #endif |
571 | #endif /* CONFIG_CPU_SUBTYPE_SH7343 */ | ||
572 | 602 | ||
573 | static struct clk sh7722_video_clock = { | 603 | static struct clk sh7722_video_clock = { |
574 | .name = "video_clk", | 604 | .name = "video_clk", |
@@ -715,6 +745,61 @@ static struct clk sh7722_mstpcr_clocks[] = { | |||
715 | MSTPCR("vpu0", "bus_clk", 2, 1), | 745 | MSTPCR("vpu0", "bus_clk", 2, 1), |
716 | MSTPCR("lcdc0", "bus_clk", 2, 0), | 746 | MSTPCR("lcdc0", "bus_clk", 2, 0), |
717 | #endif | 747 | #endif |
748 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
749 | /* See Datasheet : Overview -> Block Diagram */ | ||
750 | MSTPCR("tlb0", "cpu_clk", 0, 31), | ||
751 | MSTPCR("ic0", "cpu_clk", 0, 30), | ||
752 | MSTPCR("oc0", "cpu_clk", 0, 29), | ||
753 | MSTPCR("rs0", "bus_clk", 0, 28), | ||
754 | MSTPCR("ilmem0", "cpu_clk", 0, 27), | ||
755 | MSTPCR("l2c0", "sh_clk", 0, 26), | ||
756 | MSTPCR("fpu0", "cpu_clk", 0, 24), | ||
757 | MSTPCR("intc0", "peripheral_clk", 0, 22), | ||
758 | MSTPCR("dmac0", "bus_clk", 0, 21), | ||
759 | MSTPCR("sh0", "sh_clk", 0, 20), | ||
760 | MSTPCR("hudi0", "peripheral_clk", 0, 19), | ||
761 | MSTPCR("ubc0", "cpu_clk", 0, 17), | ||
762 | MSTPCR("tmu0", "peripheral_clk", 0, 15), | ||
763 | MSTPCR("cmt0", "r_clk", 0, 14), | ||
764 | MSTPCR("rwdt0", "r_clk", 0, 13), | ||
765 | MSTPCR("dmac1", "bus_clk", 0, 12), | ||
766 | MSTPCR("tmu1", "peripheral_clk", 0, 10), | ||
767 | MSTPCR("scif0", "peripheral_clk", 0, 9), | ||
768 | MSTPCR("scif1", "peripheral_clk", 0, 8), | ||
769 | MSTPCR("scif2", "peripheral_clk", 0, 7), | ||
770 | MSTPCR("scif3", "bus_clk", 0, 6), | ||
771 | MSTPCR("scif4", "bus_clk", 0, 5), | ||
772 | MSTPCR("scif5", "bus_clk", 0, 4), | ||
773 | MSTPCR("msiof0", "bus_clk", 0, 2), | ||
774 | MSTPCR("msiof1", "bus_clk", 0, 1), | ||
775 | MSTPCR("keysc0", "r_clk", 1, 12), | ||
776 | MSTPCR("rtc0", "r_clk", 1, 11), | ||
777 | MSTPCR("i2c0", "peripheral_clk", 1, 9), | ||
778 | MSTPCR("i2c1", "peripheral_clk", 1, 8), | ||
779 | MSTPCR("mmc0", "bus_clk", 2, 29), | ||
780 | MSTPCR("eth0", "bus_clk", 2, 28), | ||
781 | MSTPCR("atapi0", "bus_clk", 2, 26), | ||
782 | MSTPCR("tpu0", "bus_clk", 2, 25), | ||
783 | MSTPCR("irda0", "peripheral_clk", 2, 24), | ||
784 | MSTPCR("tsif0", "bus_clk", 2, 22), | ||
785 | MSTPCR("usb1", "bus_clk", 2, 21), | ||
786 | MSTPCR("usb0", "bus_clk", 2, 20), | ||
787 | MSTPCR("2dg0", "bus_clk", 2, 19), | ||
788 | MSTPCR("sdhi0", "bus_clk", 2, 18), | ||
789 | MSTPCR("sdhi1", "bus_clk", 2, 17), | ||
790 | MSTPCR("veu1", "bus_clk", 2, 15), | ||
791 | MSTPCR("ceu1", "bus_clk", 2, 13), | ||
792 | MSTPCR("beu1", "bus_clk", 2, 12), | ||
793 | MSTPCR("2ddmac0", "sh_clk", 2, 10), | ||
794 | MSTPCR("spu0", "bus_clk", 2, 9), | ||
795 | MSTPCR("jpu0", "bus_clk", 2, 6), | ||
796 | MSTPCR("vou0", "bus_clk", 2, 5), | ||
797 | MSTPCR("beu0", "bus_clk", 2, 4), | ||
798 | MSTPCR("ceu0", "bus_clk", 2, 3), | ||
799 | MSTPCR("veu0", "bus_clk", 2, 2), | ||
800 | MSTPCR("vpu0", "bus_clk", 2, 1), | ||
801 | MSTPCR("lcdc0", "bus_clk", 2, 0), | ||
802 | #endif | ||
718 | #if defined(CONFIG_CPU_SUBTYPE_SH7343) | 803 | #if defined(CONFIG_CPU_SUBTYPE_SH7343) |
719 | MSTPCR("uram0", "umem_clk", 0, 28), | 804 | MSTPCR("uram0", "umem_clk", 0, 28), |
720 | MSTPCR("xymem0", "bus_clk", 0, 26), | 805 | MSTPCR("xymem0", "bus_clk", 0, 26), |
@@ -786,12 +871,15 @@ static struct clk *sh7722_clocks[] = { | |||
786 | &sh7722_sh_clock, | 871 | &sh7722_sh_clock, |
787 | &sh7722_peripheral_clock, | 872 | &sh7722_peripheral_clock, |
788 | &sh7722_sdram_clock, | 873 | &sh7722_sdram_clock, |
789 | #ifndef CONFIG_CPU_SUBTYPE_SH7343 | 874 | #if !defined(CONFIG_CPU_SUBTYPE_SH7343) &&\ |
875 | !defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
790 | &sh7722_siu_a_clock, | 876 | &sh7722_siu_a_clock, |
791 | &sh7722_siu_b_clock, | 877 | &sh7722_siu_b_clock, |
792 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) | ||
793 | &sh7722_irda_clock, | ||
794 | #endif | 878 | #endif |
879 | /* 7724 should support FSI clock */ | ||
880 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) || \ | ||
881 | defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
882 | &sh7722_irda_clock, | ||
795 | #endif | 883 | #endif |
796 | &sh7722_video_clock, | 884 | &sh7722_video_clock, |
797 | }; | 885 | }; |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c new file mode 100644 index 000000000000..1af0f9586379 --- /dev/null +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c | |||
@@ -0,0 +1,2230 @@ | |||
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 <linux/gpio.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 | |||
2226 | static int __init plat_pinmux_setup(void) | ||
2227 | { | ||
2228 | return register_pinmux(&sh7724_pinmux_info); | ||
2229 | } | ||
2230 | arch_initcall(plat_pinmux_setup); | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c new file mode 100644 index 000000000000..4327b1e080b7 --- /dev/null +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c | |||
@@ -0,0 +1,371 @@ | |||
1 | /* | ||
2 | * SH7724 Setup | ||
3 | * | ||
4 | * Copyright (C) 2009 Renesas Solutions Corp. | ||
5 | * | ||
6 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
7 | * | ||
8 | * Based on SH7723 Setup | ||
9 | * Copyright (C) 2008 Paul Mundt | ||
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 | #include <linux/platform_device.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/serial.h> | ||
18 | #include <linux/mm.h> | ||
19 | #include <linux/serial_sci.h> | ||
20 | #include <linux/uio_driver.h> | ||
21 | #include <linux/sh_cmt.h> | ||
22 | #include <linux/io.h> | ||
23 | #include <asm/clock.h> | ||
24 | #include <asm/mmzone.h> | ||
25 | |||
26 | /* Serial */ | ||
27 | static struct plat_sci_port sci_platform_data[] = { | ||
28 | { | ||
29 | .mapbase = 0xffe00000, | ||
30 | .flags = UPF_BOOT_AUTOCONF, | ||
31 | .type = PORT_SCIF, | ||
32 | .irqs = { 80, 80, 80, 80 }, | ||
33 | }, { | ||
34 | .mapbase = 0xffe10000, | ||
35 | .flags = UPF_BOOT_AUTOCONF, | ||
36 | .type = PORT_SCIF, | ||
37 | .irqs = { 81, 81, 81, 81 }, | ||
38 | }, { | ||
39 | .mapbase = 0xffe20000, | ||
40 | .flags = UPF_BOOT_AUTOCONF, | ||
41 | .type = PORT_SCIF, | ||
42 | .irqs = { 82, 82, 82, 82 }, | ||
43 | }, { | ||
44 | .mapbase = 0xa4e30000, | ||
45 | .flags = UPF_BOOT_AUTOCONF, | ||
46 | .type = PORT_SCIFA, | ||
47 | .irqs = { 56, 56, 56, 56 }, | ||
48 | }, { | ||
49 | .mapbase = 0xa4e40000, | ||
50 | .flags = UPF_BOOT_AUTOCONF, | ||
51 | .type = PORT_SCIFA, | ||
52 | .irqs = { 88, 88, 88, 88 }, | ||
53 | }, { | ||
54 | .mapbase = 0xa4e50000, | ||
55 | .flags = UPF_BOOT_AUTOCONF, | ||
56 | .type = PORT_SCIFA, | ||
57 | .irqs = { 109, 109, 109, 109 }, | ||
58 | }, { | ||
59 | .flags = 0, | ||
60 | } | ||
61 | }; | ||
62 | |||
63 | static struct platform_device sci_device = { | ||
64 | .name = "sh-sci", | ||
65 | .id = -1, | ||
66 | .dev = { | ||
67 | .platform_data = sci_platform_data, | ||
68 | }, | ||
69 | }; | ||
70 | |||
71 | /* RTC */ | ||
72 | static struct resource rtc_resources[] = { | ||
73 | [0] = { | ||
74 | .start = 0xa465fec0, | ||
75 | .end = 0xa465fec0 + 0x58 - 1, | ||
76 | .flags = IORESOURCE_IO, | ||
77 | }, | ||
78 | [1] = { | ||
79 | /* Period IRQ */ | ||
80 | .start = 69, | ||
81 | .flags = IORESOURCE_IRQ, | ||
82 | }, | ||
83 | [2] = { | ||
84 | /* Carry IRQ */ | ||
85 | .start = 70, | ||
86 | .flags = IORESOURCE_IRQ, | ||
87 | }, | ||
88 | [3] = { | ||
89 | /* Alarm IRQ */ | ||
90 | .start = 68, | ||
91 | .flags = IORESOURCE_IRQ, | ||
92 | }, | ||
93 | }; | ||
94 | |||
95 | static struct platform_device rtc_device = { | ||
96 | .name = "sh-rtc", | ||
97 | .id = -1, | ||
98 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
99 | .resource = rtc_resources, | ||
100 | }; | ||
101 | |||
102 | static struct platform_device *sh7724_devices[] __initdata = { | ||
103 | &sci_device, | ||
104 | &rtc_device, | ||
105 | }; | ||
106 | |||
107 | static int __init sh7724_devices_setup(void) | ||
108 | { | ||
109 | clk_always_enable("rtc0"); /* RTC */ | ||
110 | |||
111 | return platform_add_devices(sh7724_devices, | ||
112 | ARRAY_SIZE(sh7724_devices)); | ||
113 | } | ||
114 | device_initcall(sh7724_devices_setup); | ||
115 | |||
116 | enum { | ||
117 | UNUSED = 0, | ||
118 | |||
119 | /* interrupt sources */ | ||
120 | IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7, | ||
121 | HUDI, | ||
122 | DMAC1A_DEI0, DMAC1A_DEI1, DMAC1A_DEI2, DMAC1A_DEI3, | ||
123 | _2DG_TRI, _2DG_INI, _2DG_CEI, _2DG_BRK, | ||
124 | DMAC0A_DEI0, DMAC0A_DEI1, DMAC0A_DEI2, DMAC0A_DEI3, | ||
125 | VIO_CEU20I, VIO_BEU20I, VIO_VEU3F1, VIO_VOUI, | ||
126 | SCIFA_SCIFA0, | ||
127 | VPU_VPUI, | ||
128 | TPU_TPUI, | ||
129 | CEU21I, | ||
130 | BEU21I, | ||
131 | USB_USI0, | ||
132 | ATAPI, | ||
133 | RTC_ATI, RTC_PRI, RTC_CUI, | ||
134 | DMAC1B_DEI4, DMAC1B_DEI5, DMAC1B_DADERR, | ||
135 | DMAC0B_DEI4, DMAC0B_DEI5, DMAC0B_DADERR, | ||
136 | KEYSC_KEYI, | ||
137 | SCIF_SCIF0, SCIF_SCIF1, SCIF_SCIF2, | ||
138 | VEU3F0I, | ||
139 | MSIOF_MSIOFI0, MSIOF_MSIOFI1, | ||
140 | SPU_SPUI0, SPU_SPUI1, | ||
141 | SCIFA_SCIFA1, | ||
142 | /* ICB_ICBI, */ | ||
143 | ETHI, | ||
144 | I2C1_ALI, I2C1_TACKI, I2C1_WAITI, I2C1_DTEI, | ||
145 | I2C0_ALI, I2C0_TACKI, I2C0_WAITI, I2C0_DTEI, | ||
146 | SDHI0_SDHII0, SDHI0_SDHII1, SDHI0_SDHII2, | ||
147 | CMT_CMTI, | ||
148 | TSIF_TSIFI, | ||
149 | /* ICB_LMBI, */ | ||
150 | FSI_FSI, | ||
151 | SCIFA_SCIFA2, | ||
152 | TMU0_TUNI0, TMU0_TUNI1, TMU0_TUNI2, | ||
153 | IRDA_IRDAI, | ||
154 | SDHI1_SDHII0, SDHI1_SDHII1, SDHI1_SDHII2, | ||
155 | JPU_JPUI, | ||
156 | MMC_MMCI0, MMC_MMCI1, MMC_MMCI2, | ||
157 | LCDC_LCDCI, | ||
158 | TMU1_TUNI0, TMU1_TUNI1, TMU1_TUNI2, | ||
159 | |||
160 | /* interrupt groups */ | ||
161 | DMAC1A, _2DG, DMAC0A, VIO, RTC, | ||
162 | DMAC1B, DMAC0B, I2C0, I2C1, SDHI0, SDHI1, SPU, MMC, | ||
163 | }; | ||
164 | |||
165 | static struct intc_vect vectors[] __initdata = { | ||
166 | INTC_VECT(IRQ0, 0x600), INTC_VECT(IRQ1, 0x620), | ||
167 | INTC_VECT(IRQ2, 0x640), INTC_VECT(IRQ3, 0x660), | ||
168 | INTC_VECT(IRQ4, 0x680), INTC_VECT(IRQ5, 0x6a0), | ||
169 | INTC_VECT(IRQ6, 0x6c0), INTC_VECT(IRQ7, 0x6e0), | ||
170 | |||
171 | INTC_VECT(DMAC1A_DEI0, 0x700), | ||
172 | INTC_VECT(DMAC1A_DEI1, 0x720), | ||
173 | INTC_VECT(DMAC1A_DEI2, 0x740), | ||
174 | INTC_VECT(DMAC1A_DEI3, 0x760), | ||
175 | |||
176 | INTC_VECT(_2DG_TRI, 0x780), | ||
177 | INTC_VECT(_2DG_INI, 0x7A0), | ||
178 | INTC_VECT(_2DG_CEI, 0x7C0), | ||
179 | INTC_VECT(_2DG_BRK, 0x7E0), | ||
180 | |||
181 | INTC_VECT(DMAC0A_DEI0, 0x800), | ||
182 | INTC_VECT(DMAC0A_DEI1, 0x820), | ||
183 | INTC_VECT(DMAC0A_DEI2, 0x840), | ||
184 | INTC_VECT(DMAC0A_DEI3, 0x860), | ||
185 | |||
186 | INTC_VECT(VIO_CEU20I, 0x880), | ||
187 | INTC_VECT(VIO_BEU20I, 0x8A0), | ||
188 | INTC_VECT(VIO_VEU3F1, 0x8C0), | ||
189 | INTC_VECT(VIO_VOUI, 0x8E0), | ||
190 | |||
191 | INTC_VECT(SCIFA_SCIFA0, 0x900), | ||
192 | INTC_VECT(VPU_VPUI, 0x980), | ||
193 | INTC_VECT(TPU_TPUI, 0x9A0), | ||
194 | INTC_VECT(CEU21I, 0x9E0), | ||
195 | INTC_VECT(BEU21I, 0xA00), | ||
196 | INTC_VECT(USB_USI0, 0xA20), | ||
197 | INTC_VECT(ATAPI, 0xA60), | ||
198 | |||
199 | INTC_VECT(RTC_ATI, 0xA80), | ||
200 | INTC_VECT(RTC_PRI, 0xAA0), | ||
201 | INTC_VECT(RTC_CUI, 0xAC0), | ||
202 | |||
203 | INTC_VECT(DMAC1B_DEI4, 0xB00), | ||
204 | INTC_VECT(DMAC1B_DEI5, 0xB20), | ||
205 | INTC_VECT(DMAC1B_DADERR, 0xB40), | ||
206 | |||
207 | INTC_VECT(DMAC0B_DEI4, 0xB80), | ||
208 | INTC_VECT(DMAC0B_DEI5, 0xBA0), | ||
209 | INTC_VECT(DMAC0B_DADERR, 0xBC0), | ||
210 | |||
211 | INTC_VECT(KEYSC_KEYI, 0xBE0), | ||
212 | INTC_VECT(SCIF_SCIF0, 0xC00), | ||
213 | INTC_VECT(SCIF_SCIF1, 0xC20), | ||
214 | INTC_VECT(SCIF_SCIF2, 0xC40), | ||
215 | INTC_VECT(VEU3F0I, 0xC60), | ||
216 | INTC_VECT(MSIOF_MSIOFI0, 0xC80), | ||
217 | INTC_VECT(MSIOF_MSIOFI1, 0xCA0), | ||
218 | INTC_VECT(SPU_SPUI0, 0xCC0), | ||
219 | INTC_VECT(SPU_SPUI1, 0xCE0), | ||
220 | INTC_VECT(SCIFA_SCIFA1, 0xD00), | ||
221 | |||
222 | /* INTC_VECT(ICB_ICBI, 0xD20), */ | ||
223 | INTC_VECT(ETHI, 0xD60), | ||
224 | |||
225 | INTC_VECT(I2C1_ALI, 0xD80), | ||
226 | INTC_VECT(I2C1_TACKI, 0xDA0), | ||
227 | INTC_VECT(I2C1_WAITI, 0xDC0), | ||
228 | INTC_VECT(I2C1_DTEI, 0xDE0), | ||
229 | |||
230 | INTC_VECT(I2C0_ALI, 0xE00), | ||
231 | INTC_VECT(I2C0_TACKI, 0xE20), | ||
232 | INTC_VECT(I2C0_WAITI, 0xE40), | ||
233 | INTC_VECT(I2C0_DTEI, 0xE60), | ||
234 | |||
235 | INTC_VECT(SDHI0_SDHII0, 0xE80), | ||
236 | INTC_VECT(SDHI0_SDHII1, 0xEA0), | ||
237 | INTC_VECT(SDHI0_SDHII2, 0xEC0), | ||
238 | |||
239 | INTC_VECT(CMT_CMTI, 0xF00), | ||
240 | INTC_VECT(TSIF_TSIFI, 0xF20), | ||
241 | /* INTC_VECT(ICB_LMBI, 0xF60), */ | ||
242 | INTC_VECT(FSI_FSI, 0xF80), | ||
243 | INTC_VECT(SCIFA_SCIFA2, 0xFA0), | ||
244 | |||
245 | INTC_VECT(TMU0_TUNI0, 0x400), | ||
246 | INTC_VECT(TMU0_TUNI1, 0x420), | ||
247 | INTC_VECT(TMU0_TUNI2, 0x440), | ||
248 | |||
249 | INTC_VECT(IRDA_IRDAI, 0x480), | ||
250 | |||
251 | INTC_VECT(SDHI1_SDHII0, 0x4E0), | ||
252 | INTC_VECT(SDHI1_SDHII1, 0x500), | ||
253 | INTC_VECT(SDHI1_SDHII2, 0x520), | ||
254 | |||
255 | INTC_VECT(JPU_JPUI, 0x560), | ||
256 | |||
257 | INTC_VECT(MMC_MMCI0, 0x580), | ||
258 | INTC_VECT(MMC_MMCI1, 0x5A0), | ||
259 | INTC_VECT(MMC_MMCI2, 0x5C0), | ||
260 | |||
261 | INTC_VECT(LCDC_LCDCI, 0xF40), | ||
262 | |||
263 | INTC_VECT(TMU1_TUNI0, 0x920), | ||
264 | INTC_VECT(TMU1_TUNI1, 0x940), | ||
265 | INTC_VECT(TMU1_TUNI2, 0x960), | ||
266 | }; | ||
267 | |||
268 | static struct intc_group groups[] __initdata = { | ||
269 | INTC_GROUP(DMAC1A, DMAC1A_DEI0, DMAC1A_DEI1, DMAC1A_DEI2, DMAC1A_DEI3), | ||
270 | INTC_GROUP(_2DG, _2DG_TRI, _2DG_INI, _2DG_CEI, _2DG_BRK), | ||
271 | INTC_GROUP(DMAC0A, DMAC0A_DEI0, DMAC0A_DEI1, DMAC0A_DEI2, DMAC0A_DEI3), | ||
272 | INTC_GROUP(VIO, VIO_CEU20I, VIO_BEU20I, VIO_VEU3F1, VIO_VOUI), | ||
273 | INTC_GROUP(RTC, RTC_ATI, RTC_PRI, RTC_CUI), | ||
274 | INTC_GROUP(DMAC1B, DMAC1B_DEI4, DMAC1B_DEI5, DMAC1B_DADERR), | ||
275 | INTC_GROUP(DMAC0B, DMAC0B_DEI4, DMAC0B_DEI5, DMAC0B_DADERR), | ||
276 | INTC_GROUP(I2C0, I2C0_ALI, I2C0_TACKI, I2C0_WAITI, I2C0_DTEI), | ||
277 | INTC_GROUP(I2C1, I2C1_ALI, I2C1_TACKI, I2C1_WAITI, I2C1_DTEI), | ||
278 | INTC_GROUP(SDHI0, SDHI0_SDHII0, SDHI0_SDHII1, SDHI0_SDHII2), | ||
279 | INTC_GROUP(SDHI1, SDHI1_SDHII0, SDHI1_SDHII1, SDHI1_SDHII2), | ||
280 | INTC_GROUP(SPU, SPU_SPUI0, SPU_SPUI1), | ||
281 | INTC_GROUP(MMC, MMC_MMCI0, MMC_MMCI1, MMC_MMCI2), | ||
282 | }; | ||
283 | |||
284 | /* FIXMEEEEEEEEEEEEEEEEEEE !!!!! */ | ||
285 | /* very bad manual !! */ | ||
286 | static struct intc_mask_reg mask_registers[] __initdata = { | ||
287 | { 0xa4080080, 0xa40800c0, 8, /* IMR0 / IMCR0 */ | ||
288 | { 0, TMU1_TUNI2, TMU1_TUNI1, TMU1_TUNI0, | ||
289 | /*SDHII3?*/0, SDHI1_SDHII2, SDHI1_SDHII1, SDHI1_SDHII0 } }, | ||
290 | { 0xa4080084, 0xa40800c4, 8, /* IMR1 / IMCR1 */ | ||
291 | { VIO_VOUI, VIO_VEU3F1, VIO_BEU20I, VIO_CEU20I, | ||
292 | DMAC0A_DEI3, DMAC0A_DEI2, DMAC0A_DEI1, DMAC0A_DEI0 } }, | ||
293 | { 0xa4080088, 0xa40800c8, 8, /* IMR2 / IMCR2 */ | ||
294 | { 0, 0, 0, VPU_VPUI, ATAPI, ETHI, 0, /*SCIFA3*/SCIFA_SCIFA0 } }, | ||
295 | { 0xa408008c, 0xa40800cc, 8, /* IMR3 / IMCR3 */ | ||
296 | { DMAC1A_DEI3, DMAC1A_DEI2, DMAC1A_DEI1, DMAC1A_DEI0, | ||
297 | SPU_SPUI1, SPU_SPUI0, BEU21I, IRDA_IRDAI } }, | ||
298 | { 0xa4080090, 0xa40800d0, 8, /* IMR4 / IMCR4 */ | ||
299 | { 0, TMU0_TUNI2, TMU0_TUNI1, TMU0_TUNI0, | ||
300 | JPU_JPUI, 0, 0, LCDC_LCDCI } }, | ||
301 | { 0xa4080094, 0xa40800d4, 8, /* IMR5 / IMCR5 */ | ||
302 | { KEYSC_KEYI, DMAC0B_DADERR, DMAC0B_DEI5, DMAC0B_DEI4, | ||
303 | VEU3F0I, SCIF_SCIF2, SCIF_SCIF1, SCIF_SCIF0 } }, | ||
304 | { 0xa4080098, 0xa40800d8, 8, /* IMR6 / IMCR6 */ | ||
305 | { 0, 0, /*ICB_ICBI*/0, /*SCIFA4*/SCIFA_SCIFA1, | ||
306 | CEU21I, 0, MSIOF_MSIOFI1, MSIOF_MSIOFI0 } }, | ||
307 | { 0xa408009c, 0xa40800dc, 8, /* IMR7 / IMCR7 */ | ||
308 | { I2C0_DTEI, I2C0_WAITI, I2C0_TACKI, I2C0_ALI, | ||
309 | I2C1_DTEI, I2C1_WAITI, I2C1_TACKI, I2C1_ALI } }, | ||
310 | { 0xa40800a0, 0xa40800e0, 8, /* IMR8 / IMCR8 */ | ||
311 | { /*SDHII3*/0, SDHI0_SDHII2, SDHI0_SDHII1, SDHI0_SDHII0, | ||
312 | 0, 0, /*SCIFA5*/SCIFA_SCIFA2, FSI_FSI } }, | ||
313 | { 0xa40800a4, 0xa40800e4, 8, /* IMR9 / IMCR9 */ | ||
314 | { 0, 0, 0, CMT_CMTI, 0, /*USB1*/0, USB_USI0, 0 } }, | ||
315 | { 0xa40800a8, 0xa40800e8, 8, /* IMR10 / IMCR10 */ | ||
316 | { 0, DMAC1B_DADERR, DMAC1B_DEI5, DMAC1B_DEI4, | ||
317 | 0, RTC_ATI, RTC_PRI, RTC_CUI } }, | ||
318 | { 0xa40800ac, 0xa40800ec, 8, /* IMR11 / IMCR11 */ | ||
319 | { _2DG_BRK, _2DG_CEI, _2DG_INI, _2DG_TRI, | ||
320 | 0, TPU_TPUI, /*ICB_LMBI*/0, TSIF_TSIFI } }, | ||
321 | { 0xa40800b0, 0xa40800f0, 8, /* IMR12 / IMCR12 */ | ||
322 | { 0, 0, 0, 0, 0, 0, 0, 0/*2DDMAC*/ } }, | ||
323 | { 0xa4140044, 0xa4140064, 8, /* INTMSK00 / INTMSKCLR00 */ | ||
324 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | ||
325 | }; | ||
326 | |||
327 | static struct intc_prio_reg prio_registers[] __initdata = { | ||
328 | { 0xa4080000, 0, 16, 4, /* IPRA */ { TMU0_TUNI0, TMU0_TUNI1, | ||
329 | TMU0_TUNI2, IRDA_IRDAI } }, | ||
330 | { 0xa4080004, 0, 16, 4, /* IPRB */ { JPU_JPUI, LCDC_LCDCI, | ||
331 | DMAC1A, BEU21I } }, | ||
332 | { 0xa4080008, 0, 16, 4, /* IPRC */ { TMU1_TUNI0, TMU1_TUNI1, | ||
333 | TMU1_TUNI2, SPU } }, | ||
334 | { 0xa408000c, 0, 16, 4, /* IPRD */ { 0, MMC, 0, ATAPI } }, | ||
335 | { 0xa4080010, 0, 16, 4, /* IPRE */ | ||
336 | { DMAC0A, /*BEU?VEU?*/VIO, /*SCIFA3*/SCIFA_SCIFA0, /*VPU5F*/ | ||
337 | VPU_VPUI } }, | ||
338 | { 0xa4080014, 0, 16, 4, /* IPRF */ { KEYSC_KEYI, DMAC0B, | ||
339 | USB_USI0, CMT_CMTI } }, | ||
340 | { 0xa4080018, 0, 16, 4, /* IPRG */ { SCIF_SCIF0, SCIF_SCIF1, | ||
341 | SCIF_SCIF2, VEU3F0I } }, | ||
342 | { 0xa408001c, 0, 16, 4, /* IPRH */ { MSIOF_MSIOFI0, MSIOF_MSIOFI1, | ||
343 | I2C1, I2C0 } }, | ||
344 | { 0xa4080020, 0, 16, 4, /* IPRI */ { /*SCIFA4*/SCIFA_SCIFA1, /*ICB*/0, | ||
345 | TSIF_TSIFI, _2DG/*ICB?*/ } }, | ||
346 | { 0xa4080024, 0, 16, 4, /* IPRJ */ { CEU21I, ETHI, FSI_FSI, SDHI1 } }, | ||
347 | { 0xa4080028, 0, 16, 4, /* IPRK */ { RTC, DMAC1B, /*ICB?*/0, SDHI0 } }, | ||
348 | { 0xa408002c, 0, 16, 4, /* IPRL */ { /*SCIFA5*/SCIFA_SCIFA2, 0, | ||
349 | TPU_TPUI, /*2DDMAC*/0 } }, | ||
350 | { 0xa4140010, 0, 32, 4, /* INTPRI00 */ | ||
351 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | ||
352 | }; | ||
353 | |||
354 | static struct intc_sense_reg sense_registers[] __initdata = { | ||
355 | { 0xa414001c, 16, 2, /* ICR1 */ | ||
356 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | ||
357 | }; | ||
358 | |||
359 | static struct intc_mask_reg ack_registers[] __initdata = { | ||
360 | { 0xa4140024, 0, 8, /* INTREQ00 */ | ||
361 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | ||
362 | }; | ||
363 | |||
364 | static DECLARE_INTC_DESC_ACK(intc_desc, "sh7724", vectors, groups, | ||
365 | mask_registers, prio_registers, sense_registers, | ||
366 | ack_registers); | ||
367 | |||
368 | void __init plat_irq_setup(void) | ||
369 | { | ||
370 | register_intc_controller(&intc_desc); | ||
371 | } | ||
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 04a6004fccc4..0e6ed804546e 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -435,7 +435,8 @@ static const char *cpu_name[] = { | |||
435 | [CPU_SH7722] = "SH7722", [CPU_SHX3] = "SH-X3", | 435 | [CPU_SH7722] = "SH7722", [CPU_SHX3] = "SH-X3", |
436 | [CPU_SH5_101] = "SH5-101", [CPU_SH5_103] = "SH5-103", | 436 | [CPU_SH5_101] = "SH5-101", [CPU_SH5_103] = "SH5-103", |
437 | [CPU_MXG] = "MX-G", [CPU_SH7723] = "SH7723", | 437 | [CPU_MXG] = "MX-G", [CPU_SH7723] = "SH7723", |
438 | [CPU_SH7366] = "SH7366", [CPU_SH_NONE] = "Unknown" | 438 | [CPU_SH7366] = "SH7366", [CPU_SH7724] = "SH7724", |
439 | [CPU_SH_NONE] = "Unknown" | ||
439 | }; | 440 | }; |
440 | 441 | ||
441 | const char *get_cpu_subtype(struct sh_cpuinfo *c) | 442 | const char *get_cpu_subtype(struct sh_cpuinfo *c) |
diff --git a/arch/sh/oprofile/common.c b/arch/sh/oprofile/common.c index 1b9d4304b3bf..44f4e31c6d63 100644 --- a/arch/sh/oprofile/common.c +++ b/arch/sh/oprofile/common.c | |||
@@ -109,6 +109,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
109 | case CPU_SH7785: | 109 | case CPU_SH7785: |
110 | case CPU_SH7786: | 110 | case CPU_SH7786: |
111 | case CPU_SH7723: | 111 | case CPU_SH7723: |
112 | case CPU_SH7724: | ||
112 | case CPU_SHX3: | 113 | case CPU_SHX3: |
113 | lmodel = &op_model_sh4a_ops; | 114 | lmodel = &op_model_sh4a_ops; |
114 | break; | 115 | break; |