~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-mv78xx0/mpp.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * linux/arch/arm/mach-mv78xx0/mpp.h -- Multi Purpose Pins
  4  *
  5  * sebastien requiem <sebastien@requiem.fr>
  6  */
  7 
  8 #ifndef __MV78X00_MPP_H
  9 #define __MV78X00_MPP_H
 10 
 11 #define MPP(_num, _sel, _in, _out, _78100_A0) (\
 12     /* MPP number */        ((_num) & 0xff) | \
 13     /* MPP select value */        (((_sel) & 0xf) << 8) | \
 14     /* may be input signal */    ((!!(_in)) << 12) | \
 15     /* may be output signal */    ((!!(_out)) << 13) | \
 16     /* available on A0 */    ((!!(_78100_A0)) << 14))
 17 
 18                 /*   num sel  i  o  78100_A0  */
 19 
 20 #define MPP_78100_A0_MASK    MPP(0, 0x0, 0, 0, 1)
 21 
 22 #define MPP0_GPIO        MPP(0, 0x0, 1, 1, 1)
 23 #define MPP0_GE0_COL        MPP(0, 0x1, 0, 0, 1)
 24 #define MPP0_GE1_TXCLK        MPP(0, 0x2, 0, 0, 1)
 25 #define MPP0_UNUSED        MPP(0, 0x3, 0, 0, 1)
 26 
 27 #define MPP1_GPIO        MPP(1, 0x0, 1, 1, 1)
 28 #define MPP1_GE0_RXERR        MPP(1, 0x1, 0, 0, 1)
 29 #define MPP1_GE1_TXCTL        MPP(1, 0x2, 0, 0, 1)
 30 #define MPP1_UNUSED        MPP(1, 0x3, 0, 0, 1)
 31 
 32 #define MPP2_GPIO        MPP(2, 0x0, 1, 1, 1)
 33 #define MPP2_GE0_CRS        MPP(2, 0x1, 0, 0, 1)
 34 #define MPP2_GE1_RXCTL        MPP(2, 0x2, 0, 0, 1)
 35 #define MPP2_UNUSED        MPP(2, 0x3, 0, 0, 1)
 36 
 37 #define MPP3_GPIO        MPP(3, 0x0, 1, 1, 1)
 38 #define MPP3_GE0_TXERR        MPP(3, 0x1, 0, 0, 1)
 39 #define MPP3_GE1_RXCLK        MPP(3, 0x2, 0, 0, 1)
 40 #define MPP3_UNUSED        MPP(3, 0x3, 0, 0, 1)
 41 
 42 #define MPP4_GPIO        MPP(4, 0x0, 1, 1, 1)
 43 #define MPP4_GE0_TXD4        MPP(4, 0x1, 0, 0, 1)
 44 #define MPP4_GE1_TXD0        MPP(4, 0x2, 0, 0, 1)
 45 #define MPP4_UNUSED        MPP(4, 0x3, 0, 0, 1)
 46 
 47 #define MPP5_GPIO        MPP(5, 0x0, 1, 1, 1)
 48 #define MPP5_GE0_TXD5        MPP(5, 0x1, 0, 0, 1)
 49 #define MPP5_GE1_TXD1        MPP(5, 0x2, 0, 0, 1)
 50 #define MPP5_UNUSED        MPP(5, 0x3, 0, 0, 1)
 51 
 52 #define MPP6_GPIO        MPP(6, 0x0, 1, 1, 1)
 53 #define MPP6_GE0_TXD6        MPP(6, 0x1, 0, 0, 1)
 54 #define MPP6_GE1_TXD2        MPP(6, 0x2, 0, 0, 1)
 55 #define MPP6_UNUSED        MPP(6, 0x3, 0, 0, 1)
 56 
 57 #define MPP7_GPIO        MPP(7, 0x0, 1, 1, 1)
 58 #define MPP7_GE0_TXD7        MPP(7, 0x1, 0, 0, 1)
 59 #define MPP7_GE1_TXD3        MPP(7, 0x2, 0, 0, 1)
 60 #define MPP7_UNUSED        MPP(7, 0x3, 0, 0, 1)
 61 
 62 #define MPP8_GPIO        MPP(8, 0x0, 1, 1, 1)
 63 #define MPP8_GE0_RXD4        MPP(8, 0x1, 0, 0, 1)
 64 #define MPP8_GE1_RXD0        MPP(8, 0x2, 0, 0, 1)
 65 #define MPP8_UNUSED        MPP(8, 0x3, 0, 0, 1)
 66 
 67 #define MPP9_GPIO        MPP(9, 0x0, 1, 1, 1)
 68 #define MPP9_GE0_RXD5        MPP(9, 0x1, 0, 0, 1)
 69 #define MPP9_GE1_RXD1        MPP(9, 0x2, 0, 0, 1)
 70 #define MPP9_UNUSED        MPP(9, 0x3, 0, 0, 1)
 71 
 72 #define MPP10_GPIO        MPP(10, 0x0, 1, 1, 1)
 73 #define MPP10_GE0_RXD6        MPP(10, 0x1, 0, 0, 1)
 74 #define MPP10_GE1_RXD2        MPP(10, 0x2, 0, 0, 1)
 75 #define MPP10_UNUSED        MPP(10, 0x3, 0, 0, 1)
 76 
 77 #define MPP11_GPIO        MPP(11, 0x0, 1, 1, 1)
 78 #define MPP11_GE0_RXD7        MPP(11, 0x1, 0, 0, 1)
 79 #define MPP11_GE1_RXD3        MPP(11, 0x2, 0, 0, 1)
 80 #define MPP11_UNUSED        MPP(11, 0x3, 0, 0, 1)
 81 
 82 #define MPP12_GPIO        MPP(12, 0x0, 1, 1, 1)
 83 #define MPP12_M_BB        MPP(12, 0x3, 0, 0, 1)
 84 #define MPP12_UA0_CTSn        MPP(12, 0x4, 0, 0, 1)
 85 #define MPP12_NAND_FLASH_REn0    MPP(12, 0x5, 0, 0, 1)
 86 #define MPP12_TDM0_SCSn        MPP(12, 0X6, 0, 0, 1)
 87 #define MPP12_UNUSED        MPP(12, 0x1, 0, 0, 1)
 88 
 89 #define MPP13_GPIO        MPP(13, 0x0, 1, 1, 1)
 90 #define MPP13_SYSRST_OUTn    MPP(13, 0x3, 0, 0, 1)
 91 #define MPP13_UA0_RTSn        MPP(13, 0x4, 0, 0, 1)
 92 #define MPP13_NAN_FLASH_WEn0    MPP(13, 0x5, 0, 0, 1)
 93 #define MPP13_TDM_SCLK        MPP(13, 0x6, 0, 0, 1)
 94 #define MPP13_UNUSED        MPP(13, 0x1, 0, 0, 1)
 95 
 96 #define MPP14_GPIO        MPP(14, 0x0, 1, 1, 1)
 97 #define MPP14_SATA1_ACTn    MPP(14, 0x3, 0, 0, 1)
 98 #define MPP14_UA1_CTSn        MPP(14, 0x4, 0, 0, 1)
 99 #define MPP14_NAND_FLASH_REn1    MPP(14, 0x5, 0, 0, 1)
100 #define MPP14_TDM_SMOSI        MPP(14, 0x6, 0, 0, 1)
101 #define MPP14_UNUSED        MPP(14, 0x1, 0, 0, 1)
102 
103 #define MPP15_GPIO        MPP(15, 0x0, 1, 1, 1)
104 #define MPP15_SATA0_ACTn    MPP(15, 0x3, 0, 0, 1)
105 #define MPP15_UA1_RTSn        MPP(15, 0x4, 0, 0, 1)
106 #define MPP15_NAND_FLASH_WEn1    MPP(15, 0x5, 0, 0, 1)
107 #define MPP15_TDM_SMISO        MPP(15, 0x6, 0, 0, 1)
108 #define MPP15_UNUSED        MPP(15, 0x1, 0, 0, 1)
109 
110 #define MPP16_GPIO        MPP(16, 0x0, 1, 1, 1)
111 #define MPP16_SATA1_PRESENTn    MPP(16, 0x3, 0, 0, 1)
112 #define MPP16_UA2_TXD        MPP(16, 0x4, 0, 0, 1)
113 #define MPP16_NAND_FLASH_REn3    MPP(16, 0x5, 0, 0, 1)
114 #define MPP16_TDM_INTn        MPP(16, 0x6, 0, 0, 1)
115 #define MPP16_UNUSED        MPP(16, 0x1, 0, 0, 1)
116 
117 
118 #define MPP17_GPIO        MPP(17, 0x0, 1, 1, 1)
119 #define MPP17_SATA0_PRESENTn    MPP(17, 0x3, 0, 0, 1)
120 #define MPP17_UA2_RXD        MPP(17, 0x4, 0, 0, 1)
121 #define MPP17_NAND_FLASH_WEn3    MPP(17, 0x5, 0, 0, 1)
122 #define MPP17_TDM_RSTn        MPP(17, 0x6, 0, 0, 1)
123 #define MPP17_UNUSED        MPP(17, 0x1, 0, 0, 1)
124 
125 
126 #define MPP18_GPIO        MPP(18, 0x0, 1, 1, 1)
127 #define MPP18_UA0_CTSn        MPP(18, 0x4, 0, 0, 1)
128 #define MPP18_BOOT_FLASH_REn    MPP(18, 0x5, 0, 0, 1)
129 #define MPP18_UNUSED        MPP(18, 0x1, 0, 0, 1)
130 
131 
132 
133 #define MPP19_GPIO        MPP(19, 0x0, 1, 1, 1)
134 #define MPP19_UA0_CTSn        MPP(19, 0x4, 0, 0, 1)
135 #define MPP19_BOOT_FLASH_WEn    MPP(19, 0x5, 0, 0, 1)
136 #define MPP19_UNUSED        MPP(19, 0x1, 0, 0, 1)
137 
138 
139 #define MPP20_GPIO        MPP(20, 0x0, 1, 1, 1)
140 #define MPP20_UA1_CTSs        MPP(20, 0x4, 0, 0, 1)
141 #define MPP20_TDM_PCLK        MPP(20, 0x6, 0, 0, 0)
142 #define MPP20_UNUSED        MPP(20, 0x1, 0, 0, 1)
143 
144 
145 
146 #define MPP21_GPIO        MPP(21, 0x0, 1, 1, 1)
147 #define MPP21_UA1_CTSs        MPP(21, 0x4, 0, 0, 1)
148 #define MPP21_TDM_FSYNC        MPP(21, 0x6, 0, 0, 0)
149 #define MPP21_UNUSED        MPP(21, 0x1, 0, 0, 1)
150 
151 
152 
153 #define MPP22_GPIO        MPP(22, 0x0, 1, 1, 1)
154 #define MPP22_UA3_TDX        MPP(22, 0x4, 0, 0, 1)
155 #define MPP22_NAND_FLASH_REn2    MPP(22, 0x5, 0, 0, 1)
156 #define MPP22_TDM_DRX        MPP(22, 0x6, 0, 0, 1)
157 #define MPP22_UNUSED        MPP(22, 0x1, 0, 0, 1)
158 
159 
160 
161 #define MPP23_GPIO        MPP(23, 0x0, 1, 1, 1)
162 #define MPP23_UA3_RDX        MPP(23, 0x4, 0, 0, 1)
163 #define MPP23_NAND_FLASH_WEn2    MPP(23, 0x5, 0, 0, 1)
164 #define MPP23_TDM_DTX        MPP(23, 0x6, 0, 0, 1)
165 #define MPP23_UNUSED        MPP(23, 0x1, 0, 0, 1)
166 
167 
168 #define MPP24_GPIO        MPP(24, 0x0, 1, 1, 1)
169 #define MPP24_UA2_TXD        MPP(24, 0x4, 0, 0, 1)
170 #define MPP24_TDM_INTn        MPP(24, 0x6, 0, 0, 1)
171 #define MPP24_UNUSED        MPP(24, 0x1, 0, 0, 1)
172 
173 
174 #define MPP25_GPIO        MPP(25, 0x0, 1, 1, 1)
175 #define MPP25_UA2_RXD        MPP(25, 0x4, 0, 0, 1)
176 #define MPP25_TDM_RSTn        MPP(25, 0x6, 0, 0, 1)
177 #define MPP25_UNUSED        MPP(25, 0x1, 0, 0, 1)
178 
179 
180 #define MPP26_GPIO        MPP(26, 0x0, 1, 1, 1)
181 #define MPP26_UA2_CTSn        MPP(26, 0x4, 0, 0, 1)
182 #define MPP26_TDM_PCLK        MPP(26, 0x6, 0, 0, 1)
183 #define MPP26_UNUSED        MPP(26, 0x1, 0, 0, 1)
184 
185 
186 #define MPP27_GPIO        MPP(27, 0x0, 1, 1, 1)
187 #define MPP27_UA2_RTSn        MPP(27, 0x4, 0, 0, 1)
188 #define MPP27_TDM_FSYNC        MPP(27, 0x6, 0, 0, 1)
189 #define MPP27_UNUSED        MPP(27, 0x1, 0, 0, 1)
190 
191 
192 #define MPP28_GPIO        MPP(28, 0x0, 1, 1, 1)
193 #define MPP28_UA3_TXD        MPP(28, 0x4, 0, 0, 1)
194 #define MPP28_TDM_DRX        MPP(28, 0x6, 0, 0, 1)
195 #define MPP28_UNUSED        MPP(28, 0x1, 0, 0, 1)
196 
197 #define MPP29_GPIO        MPP(29, 0x0, 1, 1, 1)
198 #define MPP29_UA3_RXD        MPP(29, 0x4, 0, 0, 1)
199 #define MPP29_SYSRST_OUTn    MPP(29, 0x5, 0, 0, 1)
200 #define MPP29_TDM_DTX        MPP(29, 0x6, 0, 0, 1)
201 #define MPP29_UNUSED        MPP(29, 0x1, 0, 0, 1)
202 
203 #define MPP30_GPIO        MPP(30, 0x0, 1, 1, 1)
204 #define MPP30_UA3_CTSn        MPP(30, 0x4, 0, 0, 1)
205 #define MPP30_UNUSED        MPP(30, 0x1, 0, 0, 1)
206 
207 #define MPP31_GPIO        MPP(31, 0x0, 1, 1, 1)
208 #define MPP31_UA3_RTSn        MPP(31, 0x4, 0, 0, 1)
209 #define MPP31_TDM1_SCSn        MPP(31, 0x6, 0, 0, 1)
210 #define MPP31_UNUSED        MPP(31, 0x1, 0, 0, 1)
211 
212 
213 #define MPP32_GPIO        MPP(32, 0x1, 1, 1, 1)
214 #define MPP32_UA3_TDX        MPP(32, 0x4, 0, 0, 1)
215 #define MPP32_SYSRST_OUTn    MPP(32, 0x5, 0, 0, 1)
216 #define MPP32_TDM0_RXQ        MPP(32, 0x6, 0, 0, 1)
217 #define MPP32_UNUSED        MPP(32, 0x3, 0, 0, 1)
218 
219 
220 #define MPP33_GPIO        MPP(33, 0x1, 1, 1, 1)
221 #define MPP33_UA3_RDX        MPP(33, 0x4, 0, 0, 1)
222 #define MPP33_TDM0_TXQ        MPP(33, 0x6, 0, 0, 1)
223 #define MPP33_UNUSED        MPP(33, 0x3, 0, 0, 1)
224 
225 
226 
227 #define MPP34_GPIO        MPP(34, 0x1, 1, 1, 1)
228 #define MPP34_UA2_TDX        MPP(34, 0x4, 0, 0, 1)
229 #define MPP34_TDM1_RXQ        MPP(34, 0x6, 0, 0, 1)
230 #define MPP34_UNUSED        MPP(34, 0x3, 0, 0, 1)
231 
232 
233 
234 #define MPP35_GPIO        MPP(35, 0x1, 1, 1, 1)
235 #define MPP35_UA2_RDX        MPP(35, 0x4, 0, 0, 1)
236 #define MPP35_TDM1_TXQ        MPP(35, 0x6, 0, 0, 1)
237 #define MPP35_UNUSED        MPP(35, 0x3, 0, 0, 1)
238 
239 #define MPP36_GPIO        MPP(36, 0x1, 1, 1, 1)
240 #define MPP36_UA0_CTSn        MPP(36, 0x2, 0, 0, 1)
241 #define MPP36_UA2_TDX        MPP(36, 0x4, 0, 0, 1)
242 #define MPP36_TDM0_SCSn        MPP(36, 0x6, 0, 0, 1)
243 #define MPP36_UNUSED        MPP(36, 0x3, 0, 0, 1)
244 
245 
246 #define MPP37_GPIO        MPP(37, 0x1, 1, 1, 1)
247 #define MPP37_UA0_RTSn        MPP(37, 0x2, 0, 0, 1)
248 #define MPP37_UA2_RXD        MPP(37, 0x4, 0, 0, 1)
249 #define MPP37_SYSRST_OUTn    MPP(37, 0x5, 0, 0, 1)
250 #define MPP37_TDM_SCLK        MPP(37, 0x6, 0, 0, 1)
251 #define MPP37_UNUSED        MPP(37, 0x3, 0, 0, 1)
252 
253 
254 
255 
256 #define MPP38_GPIO        MPP(38, 0x1, 1, 1, 1)
257 #define MPP38_UA1_CTSn        MPP(38, 0x2, 0, 0, 1)
258 #define MPP38_UA3_TXD        MPP(38, 0x4, 0, 0, 1)
259 #define MPP38_SYSRST_OUTn    MPP(38, 0x5, 0, 0, 1)
260 #define MPP38_TDM_SMOSI        MPP(38, 0x6, 0, 0, 1)
261 #define MPP38_UNUSED        MPP(38, 0x3, 0, 0, 1)
262 
263 
264 
265 
266 #define MPP39_GPIO        MPP(39, 0x1, 1, 1, 1)
267 #define MPP39_UA1_RTSn        MPP(39, 0x2, 0, 0, 1)
268 #define MPP39_UA3_RXD        MPP(39, 0x4, 0, 0, 1)
269 #define MPP39_SYSRST_OUTn    MPP(39, 0x5, 0, 0, 1)
270 #define MPP39_TDM_SMISO        MPP(39, 0x6, 0, 0, 1)
271 #define MPP39_UNUSED        MPP(39, 0x3, 0, 0, 1)
272 
273 
274 
275 #define MPP40_GPIO        MPP(40, 0x1, 1, 1, 1)
276 #define MPP40_TDM_INTn        MPP(40, 0x6, 0, 0, 1)
277 #define MPP40_UNUSED        MPP(40, 0x0, 0, 0, 1)
278 
279 
280 
281 #define MPP41_GPIO        MPP(41, 0x1, 1, 1, 1)
282 #define MPP41_TDM_RSTn        MPP(41, 0x6, 0, 0, 1)
283 #define MPP41_UNUSED        MPP(41, 0x0, 0, 0, 1)
284 
285 
286 
287 #define MPP42_GPIO        MPP(42, 0x1, 1, 1, 1)
288 #define MPP42_TDM_PCLK        MPP(42, 0x6, 0, 0, 1)
289 #define MPP42_UNUSED        MPP(42, 0x0, 0, 0, 1)
290 
291 
292 
293 #define MPP43_GPIO        MPP(43, 0x1, 1, 1, 1)
294 #define MPP43_TDM_FSYNC        MPP(43, 0x6, 0, 0, 1)
295 #define MPP43_UNUSED        MPP(43, 0x0, 0, 0, 1)
296 
297 
298 
299 #define MPP44_GPIO        MPP(44, 0x1, 1, 1, 1)
300 #define MPP44_TDM_DRX        MPP(44, 0x6, 0, 0, 1)
301 #define MPP44_UNUSED        MPP(44, 0x0, 0, 0, 1)
302 
303 
304 
305 #define MPP45_GPIO        MPP(45, 0x1, 1, 1, 1)
306 #define MPP45_SATA0_ACTn    MPP(45, 0x3, 0, 0, 1)
307 #define MPP45_TDM_DRX        MPP(45, 0x6, 0, 0, 1)
308 #define MPP45_UNUSED        MPP(45, 0x0, 0, 0, 1)
309 
310 
311 #define MPP46_GPIO        MPP(46, 0x1, 1, 1, 1)
312 #define MPP46_TDM_SCSn        MPP(46, 0x6, 0, 0, 1)
313 #define MPP46_UNUSED        MPP(46, 0x0, 0, 0, 1)
314 
315 
316 #define MPP47_GPIO        MPP(47, 0x1, 1, 1, 1)
317 #define MPP47_UNUSED        MPP(47, 0x0, 0, 0, 1)
318 
319 
320 
321 #define MPP48_GPIO        MPP(48, 0x1, 1, 1, 1)
322 #define MPP48_SATA1_ACTn    MPP(48, 0x3, 0, 0, 1)
323 #define MPP48_UNUSED        MPP(48, 0x2, 0, 0, 1)
324 
325 
326 
327 #define MPP49_GPIO        MPP(49, 0x1, 1, 1, 1)
328 #define MPP49_SATA0_ACTn    MPP(49, 0x3, 0, 0, 1)
329 #define MPP49_M_BB        MPP(49, 0x4, 0, 0, 1)
330 #define MPP49_UNUSED        MPP(49, 0x2, 0, 0, 1)
331 
332 
333 #define MPP_MAX            49
334 
335 void mv78xx0_mpp_conf(unsigned int *mpp_list);
336 
337 #endif
338 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php