OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52233_Eclipse/] [RTOSDemo/] [MCF5223x/] [MCF52235_GPIO.h] - Blame information for rev 578

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/* Coldfire C Header File
2
 * Copyright Freescale Semiconductor Inc
3
 * All rights reserved.
4
 *
5
 * 2007/03/19 Revision: 0.91
6
 */
7
 
8
#ifndef __MCF52235_GPIO_H__
9
#define __MCF52235_GPIO_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* General Purpose I/O (GPIO)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_GPIO_PORTNQ                      (*(vuint8 *)(&__IPSBAR[0x100008]))
20
#define MCF_GPIO_DDRNQ                       (*(vuint8 *)(&__IPSBAR[0x100020]))
21
#define MCF_GPIO_SETNQ                       (*(vuint8 *)(&__IPSBAR[0x100038]))
22
#define MCF_GPIO_CLRNQ                       (*(vuint8 *)(&__IPSBAR[0x100050]))
23
#define MCF_GPIO_PNQPAR                      (*(vuint16*)(&__IPSBAR[0x100068]))
24
 
25
#define MCF_GPIO_PORTAN                      (*(vuint8 *)(&__IPSBAR[0x10000A]))
26
#define MCF_GPIO_DDRAN                       (*(vuint8 *)(&__IPSBAR[0x100022]))
27
#define MCF_GPIO_SETAN                       (*(vuint8 *)(&__IPSBAR[0x10003A]))
28
#define MCF_GPIO_CLRAN                       (*(vuint8 *)(&__IPSBAR[0x100052]))
29
#define MCF_GPIO_PANPAR                      (*(vuint8 *)(&__IPSBAR[0x10006A]))
30
 
31
#define MCF_GPIO_PORTAS                      (*(vuint8 *)(&__IPSBAR[0x10000B]))
32
#define MCF_GPIO_DDRAS                       (*(vuint8 *)(&__IPSBAR[0x100023]))
33
#define MCF_GPIO_SETAS                       (*(vuint8 *)(&__IPSBAR[0x10003B]))
34
#define MCF_GPIO_CLRAS                       (*(vuint8 *)(&__IPSBAR[0x100053]))
35
#define MCF_GPIO_PASPAR                      (*(vuint8 *)(&__IPSBAR[0x10006B]))
36
 
37
#define MCF_GPIO_PORTQS                      (*(vuint8 *)(&__IPSBAR[0x10000C]))
38
#define MCF_GPIO_DDRQS                       (*(vuint8 *)(&__IPSBAR[0x100024]))
39
#define MCF_GPIO_SETQS                       (*(vuint8 *)(&__IPSBAR[0x10003C]))
40
#define MCF_GPIO_CLRQS                       (*(vuint8 *)(&__IPSBAR[0x100054]))
41
#define MCF_GPIO_PQSPAR                      (*(vuint16*)(&__IPSBAR[0x10006C]))
42
 
43
#define MCF_GPIO_PORTTA                      (*(vuint8 *)(&__IPSBAR[0x10000E]))
44
#define MCF_GPIO_DDRTA                       (*(vuint8 *)(&__IPSBAR[0x100026]))
45
#define MCF_GPIO_SETTA                       (*(vuint8 *)(&__IPSBAR[0x10003E]))
46
#define MCF_GPIO_CLRTA                       (*(vuint8 *)(&__IPSBAR[0x100056]))
47
#define MCF_GPIO_PTAPAR                      (*(vuint8 *)(&__IPSBAR[0x10006E]))
48
 
49
#define MCF_GPIO_PORTTC                      (*(vuint8 *)(&__IPSBAR[0x10000F]))
50
#define MCF_GPIO_DDRTC                       (*(vuint8 *)(&__IPSBAR[0x100027]))
51
#define MCF_GPIO_SETTC                       (*(vuint8 *)(&__IPSBAR[0x10003F]))
52
#define MCF_GPIO_CLRTC                       (*(vuint8 *)(&__IPSBAR[0x100057]))
53
#define MCF_GPIO_PTCPAR                      (*(vuint8 *)(&__IPSBAR[0x10006F]))
54
 
55
#define MCF_GPIO_PORTTD                      (*(vuint8 *)(&__IPSBAR[0x100010]))
56
#define MCF_GPIO_DDRTD                       (*(vuint8 *)(&__IPSBAR[0x100028]))
57
#define MCF_GPIO_SETTD                       (*(vuint8 *)(&__IPSBAR[0x100040]))
58
#define MCF_GPIO_CLRTD                       (*(vuint8 *)(&__IPSBAR[0x100058]))
59
#define MCF_GPIO_PTDPAR                      (*(vuint8 *)(&__IPSBAR[0x100070]))
60
 
61
#define MCF_GPIO_PORTUA                      (*(vuint8 *)(&__IPSBAR[0x100011]))
62
#define MCF_GPIO_DDRUA                       (*(vuint8 *)(&__IPSBAR[0x100029]))
63
#define MCF_GPIO_SETUA                       (*(vuint8 *)(&__IPSBAR[0x100041]))
64
#define MCF_GPIO_CLRUA                       (*(vuint8 *)(&__IPSBAR[0x100059]))
65
#define MCF_GPIO_PUAPAR                      (*(vuint8 *)(&__IPSBAR[0x100071]))
66
 
67
#define MCF_GPIO_PORTUB                      (*(vuint8 *)(&__IPSBAR[0x100012]))
68
#define MCF_GPIO_DDRUB                       (*(vuint8 *)(&__IPSBAR[0x10002A]))
69
#define MCF_GPIO_SETUB                       (*(vuint8 *)(&__IPSBAR[0x100042]))
70
#define MCF_GPIO_CLRUB                       (*(vuint8 *)(&__IPSBAR[0x10005A]))
71
#define MCF_GPIO_PUBPAR                      (*(vuint8 *)(&__IPSBAR[0x100072]))
72
 
73
#define MCF_GPIO_PORTUC                      (*(vuint8 *)(&__IPSBAR[0x100013]))
74
#define MCF_GPIO_DDRUC                       (*(vuint8 *)(&__IPSBAR[0x10002B]))
75
#define MCF_GPIO_SETUC                       (*(vuint8 *)(&__IPSBAR[0x100043]))
76
#define MCF_GPIO_CLRUC                       (*(vuint8 *)(&__IPSBAR[0x10005B]))
77
#define MCF_GPIO_PUCPAR                      (*(vuint8 *)(&__IPSBAR[0x100073]))
78
 
79
#define MCF_GPIO_PORTDD                      (*(vuint8 *)(&__IPSBAR[0x100014]))
80
#define MCF_GPIO_DDRDD                       (*(vuint8 *)(&__IPSBAR[0x10002C]))
81
#define MCF_GPIO_SETDD                       (*(vuint8 *)(&__IPSBAR[0x100044]))
82
#define MCF_GPIO_CLRDD                       (*(vuint8 *)(&__IPSBAR[0x10005C]))
83
#define MCF_GPIO_PDDPAR                      (*(vuint8 *)(&__IPSBAR[0x100074]))
84
 
85
#define MCF_GPIO_PORTLD                      (*(vuint8 *)(&__IPSBAR[0x100015]))
86
#define MCF_GPIO_DDRLD                       (*(vuint8 *)(&__IPSBAR[0x10002D]))
87
#define MCF_GPIO_SETLD                       (*(vuint8 *)(&__IPSBAR[0x100045]))
88
#define MCF_GPIO_CLRLD                       (*(vuint8 *)(&__IPSBAR[0x10005D]))
89
#define MCF_GPIO_PLDPAR                      (*(vuint8 *)(&__IPSBAR[0x100075]))
90
 
91
#define MCF_GPIO_PORTGP                      (*(vuint8 *)(&__IPSBAR[0x100016]))
92
#define MCF_GPIO_DDRGP                       (*(vuint8 *)(&__IPSBAR[0x10002E]))
93
#define MCF_GPIO_SETGP                       (*(vuint8 *)(&__IPSBAR[0x100046]))
94
#define MCF_GPIO_CLRGP                       (*(vuint8 *)(&__IPSBAR[0x10005E]))
95
#define MCF_GPIO_PGPPAR                      (*(vuint8 *)(&__IPSBAR[0x100076]))
96
 
97
 
98
 
99
/* Bit definitions and macros for MCF_GPIO_PORTNQ */
100
#define MCF_GPIO_PORTNQ_PORTNQ1              (0x2)
101
#define MCF_GPIO_PORTNQ_PORTNQ2              (0x4)
102
#define MCF_GPIO_PORTNQ_PORTNQ3              (0x8)
103
#define MCF_GPIO_PORTNQ_PORTNQ4              (0x10)
104
#define MCF_GPIO_PORTNQ_PORTNQ5              (0x20)
105
#define MCF_GPIO_PORTNQ_PORTNQ6              (0x40)
106
#define MCF_GPIO_PORTNQ_PORTNQ7              (0x80)
107
 
108
/* Bit definitions and macros for MCF_GPIO_DDRNQ */
109
#define MCF_GPIO_DDRNQ_DDRNQ1                (0x2)
110
#define MCF_GPIO_DDRNQ_DDRNQ2                (0x4)
111
#define MCF_GPIO_DDRNQ_DDRNQ3                (0x8)
112
#define MCF_GPIO_DDRNQ_DDRNQ4                (0x10)
113
#define MCF_GPIO_DDRNQ_DDRNQ5                (0x20)
114
#define MCF_GPIO_DDRNQ_DDRNQ6                (0x40)
115
#define MCF_GPIO_DDRNQ_DDRNQ7                (0x80)
116
 
117
/* Bit definitions and macros for MCF_GPIO_SETNQ */
118
#define MCF_GPIO_SETNQ_SETNQ1                (0x2)
119
#define MCF_GPIO_SETNQ_SETNQ2                (0x4)
120
#define MCF_GPIO_SETNQ_SETNQ3                (0x8)
121
#define MCF_GPIO_SETNQ_SETNQ4                (0x10)
122
#define MCF_GPIO_SETNQ_SETNQ5                (0x20)
123
#define MCF_GPIO_SETNQ_SETNQ6                (0x40)
124
#define MCF_GPIO_SETNQ_SETNQ7                (0x80)
125
 
126
/* Bit definitions and macros for MCF_GPIO_CLRNQ */
127
#define MCF_GPIO_CLRNQ_CLRNQ1                (0x2)
128
#define MCF_GPIO_CLRNQ_CLRNQ2                (0x4)
129
#define MCF_GPIO_CLRNQ_CLRNQ3                (0x8)
130
#define MCF_GPIO_CLRNQ_CLRNQ4                (0x10)
131
#define MCF_GPIO_CLRNQ_CLRNQ5                (0x20)
132
#define MCF_GPIO_CLRNQ_CLRNQ6                (0x40)
133
#define MCF_GPIO_CLRNQ_CLRNQ7                (0x80)
134
 
135
/* Bit definitions and macros for MCF_GPIO_PNQPAR */
136
#define MCF_GPIO_PNQPAR_PNQPAR1(x)           (((x)&0x3)<<0x2)
137
#define MCF_GPIO_PNQPAR_IRQ1_GPIO            (0)
138
#define MCF_GPIO_PNQPAR_IRQ1_IRQ1            (0x4)
139
#define MCF_GPIO_PNQPAR_IRQ1_SYNCA           (0x8)
140
#define MCF_GPIO_PNQPAR_IRQ1_PWM1            (0xC)
141
#define MCF_GPIO_PNQPAR_PNQPAR2(x)           (((x)&0x3)<<0x4)
142
#define MCF_GPIO_PNQPAR_IRQ2_GPIO            (0)
143
#define MCF_GPIO_PNQPAR_IRQ2_IRQ2            (0x10)
144
#define MCF_GPIO_PNQPAR_IRQ2_FEC_RXD3        (0x30)
145
#define MCF_GPIO_PNQPAR_PNQPAR3(x)           (((x)&0x3)<<0x6)
146
#define MCF_GPIO_PNQPAR_IRQ3_GPIO            (0)
147
#define MCF_GPIO_PNQPAR_IRQ3_IRQ3            (0x40)
148
#define MCF_GPIO_PNQPAR_IRQ3_FEC_RXD2        (0xC0)
149
#define MCF_GPIO_PNQPAR_PNQPAR4(x)           (((x)&0x3)<<0x8)
150
#define MCF_GPIO_PNQPAR_IRQ4_GPIO            (0)
151
#define MCF_GPIO_PNQPAR_IRQ4_IRQ4            (0x100)
152
#define MCF_GPIO_PNQPAR_PNQPAR5(x)           (((x)&0x3)<<0xA)
153
#define MCF_GPIO_PNQPAR_IRQ5_GPIO            (0)
154
#define MCF_GPIO_PNQPAR_IRQ5_IRQ5            (0x400)
155
#define MCF_GPIO_PNQPAR_IRQ5_FEC_RXD1        (0xC00)
156
#define MCF_GPIO_PNQPAR_PNQPAR6(x)           (((x)&0x3)<<0xC)
157
#define MCF_GPIO_PNQPAR_IRQ6_GPIO            (0)
158
#define MCF_GPIO_PNQPAR_IRQ6_IRQ6            (0x1000)
159
#define MCF_GPIO_PNQPAR_IRQ6_FEC_RXER        (0x3000)
160
#define MCF_GPIO_PNQPAR_PNQPAR7(x)           (((x)&0x3)<<0xE)
161
#define MCF_GPIO_PNQPAR_IRQ7_GPIO            (0)
162
#define MCF_GPIO_PNQPAR_IRQ7_IRQ7            (0x4000)
163
 
164
/* Bit definitions and macros for MCF_GPIO_PORTAN */
165
#define MCF_GPIO_PORTAN_PORTAN0              (0x1)
166
#define MCF_GPIO_PORTAN_PORTAN1              (0x2)
167
#define MCF_GPIO_PORTAN_PORTAN2              (0x4)
168
#define MCF_GPIO_PORTAN_PORTAN3              (0x8)
169
#define MCF_GPIO_PORTAN_PORTAN4              (0x10)
170
#define MCF_GPIO_PORTAN_PORTAN5              (0x20)
171
#define MCF_GPIO_PORTAN_PORTAN6              (0x40)
172
#define MCF_GPIO_PORTAN_PORTAN7              (0x80)
173
 
174
/* Bit definitions and macros for MCF_GPIO_DDRAN */
175
#define MCF_GPIO_DDRAN_DDRAN0                (0x1)
176
#define MCF_GPIO_DDRAN_DDRAN1                (0x2)
177
#define MCF_GPIO_DDRAN_DDRAN2                (0x4)
178
#define MCF_GPIO_DDRAN_DDRAN3                (0x8)
179
#define MCF_GPIO_DDRAN_DDRAN4                (0x10)
180
#define MCF_GPIO_DDRAN_DDRAN5                (0x20)
181
#define MCF_GPIO_DDRAN_DDRAN6                (0x40)
182
#define MCF_GPIO_DDRAN_DDRAN7                (0x80)
183
 
184
/* Bit definitions and macros for MCF_GPIO_SETAN */
185
#define MCF_GPIO_SETAN_SETAN0                (0x1)
186
#define MCF_GPIO_SETAN_SETAN1                (0x2)
187
#define MCF_GPIO_SETAN_SETAN2                (0x4)
188
#define MCF_GPIO_SETAN_SETAN3                (0x8)
189
#define MCF_GPIO_SETAN_SETAN4                (0x10)
190
#define MCF_GPIO_SETAN_SETAN5                (0x20)
191
#define MCF_GPIO_SETAN_SETAN6                (0x40)
192
#define MCF_GPIO_SETAN_SETAN7                (0x80)
193
 
194
/* Bit definitions and macros for MCF_GPIO_CLRAN */
195
#define MCF_GPIO_CLRAN_CLRAN0                (0x1)
196
#define MCF_GPIO_CLRAN_CLRAN1                (0x2)
197
#define MCF_GPIO_CLRAN_CLRAN2                (0x4)
198
#define MCF_GPIO_CLRAN_CLRAN3                (0x8)
199
#define MCF_GPIO_CLRAN_CLRAN4                (0x10)
200
#define MCF_GPIO_CLRAN_CLRAN5                (0x20)
201
#define MCF_GPIO_CLRAN_CLRAN6                (0x40)
202
#define MCF_GPIO_CLRAN_CLRAN7                (0x80)
203
 
204
/* Bit definitions and macros for MCF_GPIO_PANPAR */
205
#define MCF_GPIO_PANPAR_PANPAR0              (0x1)
206
#define MCF_GPIO_PANPAR_AN0_GPIO             (0)
207
#define MCF_GPIO_PANPAR_AN0_AN0              (0x1)
208
#define MCF_GPIO_PANPAR_PANPAR1              (0x2)
209
#define MCF_GPIO_PANPAR_AN1_GPIO             (0)
210
#define MCF_GPIO_PANPAR_AN1_AN1              (0x2)
211
#define MCF_GPIO_PANPAR_PANPAR2              (0x4)
212
#define MCF_GPIO_PANPAR_AN2_GPIO             (0)
213
#define MCF_GPIO_PANPAR_AN2_AN2              (0x4)
214
#define MCF_GPIO_PANPAR_PANPAR3              (0x8)
215
#define MCF_GPIO_PANPAR_AN3_GPIO             (0)
216
#define MCF_GPIO_PANPAR_AN3_AN3              (0x8)
217
#define MCF_GPIO_PANPAR_PANPAR4              (0x10)
218
#define MCF_GPIO_PANPAR_AN4_GPIO             (0)
219
#define MCF_GPIO_PANPAR_AN4_AN4              (0x10)
220
#define MCF_GPIO_PANPAR_PANPAR5              (0x20)
221
#define MCF_GPIO_PANPAR_AN5_GPIO             (0)
222
#define MCF_GPIO_PANPAR_AN5_AN5              (0x20)
223
#define MCF_GPIO_PANPAR_PANPAR6              (0x40)
224
#define MCF_GPIO_PANPAR_AN6_GPIO             (0)
225
#define MCF_GPIO_PANPAR_AN6_AN6              (0x40)
226
#define MCF_GPIO_PANPAR_PANPAR7              (0x80)
227
#define MCF_GPIO_PANPAR_AN7_GPIO             (0)
228
#define MCF_GPIO_PANPAR_AN7_AN7              (0x80)
229
 
230
/* Bit definitions and macros for MCF_GPIO_PORTAS */
231
#define MCF_GPIO_PORTAS_PORTAS0              (0x1)
232
#define MCF_GPIO_PORTAS_PORTAS1              (0x2)
233
#define MCF_GPIO_PORTAS_PORTAS2              (0x4)
234
#define MCF_GPIO_PORTAS_PORTAS3              (0x8)
235
 
236
/* Bit definitions and macros for MCF_GPIO_DDRAS */
237
#define MCF_GPIO_DDRAS_DDRAS0                (0x1)
238
#define MCF_GPIO_DDRAS_DDRAS1                (0x2)
239
#define MCF_GPIO_DDRAS_DDRAS2                (0x4)
240
#define MCF_GPIO_DDRAS_DDRAS3                (0x8)
241
 
242
/* Bit definitions and macros for MCF_GPIO_SETAS */
243
#define MCF_GPIO_SETAS_SETAS0                (0x1)
244
#define MCF_GPIO_SETAS_SETAS1                (0x2)
245
#define MCF_GPIO_SETAS_SETAS2                (0x4)
246
#define MCF_GPIO_SETAS_SETAS3                (0x8)
247
 
248
/* Bit definitions and macros for MCF_GPIO_CLRAS */
249
#define MCF_GPIO_CLRAS_CLRAS0                (0x1)
250
#define MCF_GPIO_CLRAS_CLRAS1                (0x2)
251
#define MCF_GPIO_CLRAS_CLRAS2                (0x4)
252
#define MCF_GPIO_CLRAS_CLRAS3                (0x8)
253
 
254
/* Bit definitions and macros for MCF_GPIO_PASPAR */
255
#define MCF_GPIO_PASPAR_PASPAR0(x)           (((x)&0x3)<<0)
256
#define MCF_GPIO_PASPAR_SCL_GPIO             (0)
257
#define MCF_GPIO_PASPAR_SCL_SCL              (0x1)
258
#define MCF_GPIO_PASPAR_SCL_CANTX            (0x2)
259
#define MCF_GPIO_PASPAR_SCL_UTXD2            (0x3)
260
#define MCF_GPIO_PASPAR_PASPAR1(x)           (((x)&0x3)<<0x2)
261
#define MCF_GPIO_PASPAR_SDA_GPIO             (0)
262
#define MCF_GPIO_PASPAR_SDA_SDA              (0x4)
263
#define MCF_GPIO_PASPAR_SDA_CANRX            (0x8)
264
#define MCF_GPIO_PASPAR_SDA_URXD2            (0xC)
265
#define MCF_GPIO_PASPAR_PASPAR2(x)           (((x)&0x3)<<0x4)
266
#define MCF_GPIO_PASPAR_SYNCB_GPIO           (0)
267
#define MCF_GPIO_PASPAR_SYNCB_SYNCB          (0x10)
268
#define MCF_GPIO_PASPAR_SYNCB_CANTX          (0x20)
269
#define MCF_GPIO_PASPAR_SYNCB_FEC_MDC        (0x30)
270
#define MCF_GPIO_PASPAR_PASPAR3(x)           (((x)&0x3)<<0x6)
271
#define MCF_GPIO_PASPAR_SYNCA_GPIO           (0)
272
#define MCF_GPIO_PASPAR_SYNCA_SYNCA          (0x40)
273
#define MCF_GPIO_PASPAR_SYNCA_CANRX          (0x80)
274
#define MCF_GPIO_PASPAR_SYNC_FEC_MDIO        (0xC0)
275
 
276
/* Bit definitions and macros for MCF_GPIO_PORTQS */
277
#define MCF_GPIO_PORTQS_PORTQS0              (0x1)
278
#define MCF_GPIO_PORTQS_PORTQS1              (0x2)
279
#define MCF_GPIO_PORTQS_PORTQS2              (0x4)
280
#define MCF_GPIO_PORTQS_PORTQS3              (0x8)
281
#define MCF_GPIO_PORTQS_PORTQS4              (0x10)
282
#define MCF_GPIO_PORTQS_PORTQS5              (0x20)
283
#define MCF_GPIO_PORTQS_PORTQS6              (0x40)
284
 
285
/* Bit definitions and macros for MCF_GPIO_DDRQS */
286
#define MCF_GPIO_DDRQS_DDRQS0                (0x1)
287
#define MCF_GPIO_DDRQS_DDRQS1                (0x2)
288
#define MCF_GPIO_DDRQS_DDRQS2                (0x4)
289
#define MCF_GPIO_DDRQS_DDRQS3                (0x8)
290
#define MCF_GPIO_DDRQS_DDRQS4                (0x10)
291
#define MCF_GPIO_DDRQS_DDRQS5                (0x20)
292
#define MCF_GPIO_DDRQS_DDRQS6                (0x40)
293
 
294
/* Bit definitions and macros for MCF_GPIO_SETQS */
295
#define MCF_GPIO_SETQS_SETQS0                (0x1)
296
#define MCF_GPIO_SETQS_SETQS1                (0x2)
297
#define MCF_GPIO_SETQS_SETQS2                (0x4)
298
#define MCF_GPIO_SETQS_SETQS3                (0x8)
299
#define MCF_GPIO_SETQS_SETQS4                (0x10)
300
#define MCF_GPIO_SETQS_SETQS5                (0x20)
301
#define MCF_GPIO_SETQS_SETQS6                (0x40)
302
 
303
/* Bit definitions and macros for MCF_GPIO_CLRQS */
304
#define MCF_GPIO_CLRQS_CLRQS0                (0x1)
305
#define MCF_GPIO_CLRQS_CLRQS1                (0x2)
306
#define MCF_GPIO_CLRQS_CLRQS2                (0x4)
307
#define MCF_GPIO_CLRQS_CLRQS3                (0x8)
308
#define MCF_GPIO_CLRQS_CLRQS4                (0x10)
309
#define MCF_GPIO_CLRQS_CLRQS5                (0x20)
310
#define MCF_GPIO_CLRQS_CLRQS6                (0x40)
311
 
312
/* Bit definitions and macros for MCF_GPIO_PQSPAR */
313
#define MCF_GPIO_PQSPAR_PQSPAR0(x)           (((x)&0x3)<<0)
314
#define MCF_GPIO_PQSPAR_QSPI_DOUT_GPIO       (0)
315
#define MCF_GPIO_PQSPAR_QSPI_DOUT_DOUT       (0x1)
316
#define MCF_GPIO_PQSPAR_QSPI_DOUT_CANTX      (0x2)
317
#define MCF_GPIO_PQSPAR_QSPI_DOUT_UTXD1      (0x3)
318
#define MCF_GPIO_PQSPAR_PQSPAR1(x)           (((x)&0x3)<<0x2)
319
#define MCF_GPIO_PQSPAR_QSPI_DIN_GPIO        (0)
320
#define MCF_GPIO_PQSPAR_QSPI_DIN_DIN         (0x4)
321
#define MCF_GPIO_PQSPAR_QSPI_DIN_CANRX       (0x8)
322
#define MCF_GPIO_PQSPAR_QSPI_DIN_URXD1       (0xC)
323
#define MCF_GPIO_PQSPAR_PQSPAR2(x)           (((x)&0x3)<<0x4)
324
#define MCF_GPIO_PQSPAR_QSPI_CLK_GPIO        (0)
325
#define MCF_GPIO_PQSPAR_QSPI_CLK_CLK         (0x10)
326
#define MCF_GPIO_PQSPAR_QSPI_CLK_SCL         (0x20)
327
#define MCF_GPIO_PQSPAR_QSPI_CLK_URTS1       (0x30)
328
#define MCF_GPIO_PQSPAR_PQSPAR3(x)           (((x)&0x3)<<0x6)
329
#define MCF_GPIO_PQSPAR_QSPI_CS0_GPIO        (0)
330
#define MCF_GPIO_PQSPAR_QSPI_CS0_CS0         (0x40)
331
#define MCF_GPIO_PQSPAR_QSPI_CS0_SDA         (0x80)
332
#define MCF_GPIO_PQSPAR_QSPI_CS0_UCTS1       (0xC0)
333
#define MCF_GPIO_PQSPAR_PQSPAR4(x)           (((x)&0x3)<<0x8)
334
#define MCF_GPIO_PQSPAR_QSPI_CS1_GPIO        (0)
335
#define MCF_GPIO_PQSPAR_QSPI_CS1_CS1         (0x100)
336
#define MCF_GPIO_PQSPAR_QSPI_CS1_FEC_TXEN    (0x300)
337
#define MCF_GPIO_PQSPAR_PQSPAR5(x)           (((x)&0x3)<<0xA)
338
#define MCF_GPIO_PQSPAR_QSPI_CS2_GPIO        (0)
339
#define MCF_GPIO_PQSPAR_QSPI_CS2_CS2         (0x400)
340
#define MCF_GPIO_PQSPAR_QSPI_CS2_FEC_TXCLK   (0xC00)
341
#define MCF_GPIO_PQSPAR_PQSPAR6(x)           (((x)&0x3)<<0xC)
342
#define MCF_GPIO_PQSPAR_QSPI_CS3_GPIO        (0)
343
#define MCF_GPIO_PQSPAR_QSPI_CS3_CS3         (0x1000)
344
#define MCF_GPIO_PQSPAR_QSPI_CS3_SYNCA       (0x2000)
345
#define MCF_GPIO_PQSPAR_QSPI_CS3_SYNCB       (0x3000)
346
 
347
/* Bit definitions and macros for MCF_GPIO_PORTTA */
348
#define MCF_GPIO_PORTTA_PORTTA0              (0x1)
349
#define MCF_GPIO_PORTTA_PORTTA1              (0x2)
350
#define MCF_GPIO_PORTTA_PORTTA2              (0x4)
351
#define MCF_GPIO_PORTTA_PORTTA3              (0x8)
352
 
353
/* Bit definitions and macros for MCF_GPIO_DDRTA */
354
#define MCF_GPIO_DDRTA_DDRTA0                (0x1)
355
#define MCF_GPIO_DDRTA_DDRTA1                (0x2)
356
#define MCF_GPIO_DDRTA_DDRTA2                (0x4)
357
#define MCF_GPIO_DDRTA_DDRTA3                (0x8)
358
 
359
/* Bit definitions and macros for MCF_GPIO_SETTA */
360
#define MCF_GPIO_SETTA_SETTA0                (0x1)
361
#define MCF_GPIO_SETTA_SETTA1                (0x2)
362
#define MCF_GPIO_SETTA_SETTA2                (0x4)
363
#define MCF_GPIO_SETTA_SETTA3                (0x8)
364
 
365
/* Bit definitions and macros for MCF_GPIO_CLRTA */
366
#define MCF_GPIO_CLRTA_CLRTA0                (0x1)
367
#define MCF_GPIO_CLRTA_CLRTA1                (0x2)
368
#define MCF_GPIO_CLRTA_CLRTA2                (0x4)
369
#define MCF_GPIO_CLRTA_CLRTA3                (0x8)
370
 
371
/* Bit definitions and macros for MCF_GPIO_PTAPAR */
372
#define MCF_GPIO_PTAPAR_PTAPAR0(x)           (((x)&0x3)<<0)
373
#define MCF_GPIO_PTAPAR_GPT0_GPIO            (0)
374
#define MCF_GPIO_PTAPAR_GPT0_GPT0            (0x1)
375
#define MCF_GPIO_PTAPAR_GPT0_FEC_TXER        (0x2)
376
#define MCF_GPIO_PTAPAR_GPT0_PWM1            (0x3)
377
#define MCF_GPIO_PTAPAR_PTAPAR1(x)           (((x)&0x3)<<0x2)
378
#define MCF_GPIO_PTAPAR_GPT1_GPIO            (0)
379
#define MCF_GPIO_PTAPAR_GPT1_GPT1            (0x4)
380
#define MCF_GPIO_PTAPAR_GPT1_FEC_TXD1        (0x8)
381
#define MCF_GPIO_PTAPAR_GPT1_PWM3            (0xC)
382
#define MCF_GPIO_PTAPAR_PTAPAR2(x)           (((x)&0x3)<<0x4)
383
#define MCF_GPIO_PTAPAR_GPT2_GPIO            (0)
384
#define MCF_GPIO_PTAPAR_GPT2_GPT2            (0x10)
385
#define MCF_GPIO_PTAPAR_GPT2_FEC_TXD2        (0x20)
386
#define MCF_GPIO_PTAPAR_GPT2_PWM5            (0x30)
387
#define MCF_GPIO_PTAPAR_PTAPAR3(x)           (((x)&0x3)<<0x6)
388
#define MCF_GPIO_PTAPAR_GPT3_GPIO            (0)
389
#define MCF_GPIO_PTAPAR_GPT3_GPT3            (0x40)
390
#define MCF_GPIO_PTAPAR_GPT3_FEC_TXD3        (0x80)
391
#define MCF_GPIO_PTAPAR_GPT3_PWM7            (0xC0)
392
 
393
/* Bit definitions and macros for MCF_GPIO_PORTTC */
394
#define MCF_GPIO_PORTTC_PORTTC0              (0x1)
395
#define MCF_GPIO_PORTTC_PORTTC1              (0x2)
396
#define MCF_GPIO_PORTTC_PORTTC2              (0x4)
397
#define MCF_GPIO_PORTTC_PORTTC3              (0x8)
398
 
399
/* Bit definitions and macros for MCF_GPIO_DDRTC */
400
#define MCF_GPIO_DDRTC_DDRTC0                (0x1)
401
#define MCF_GPIO_DDRTC_DDRTC1                (0x2)
402
#define MCF_GPIO_DDRTC_DDRTC2                (0x4)
403
#define MCF_GPIO_DDRTC_DDRTC3                (0x8)
404
 
405
/* Bit definitions and macros for MCF_GPIO_SETTC */
406
#define MCF_GPIO_SETTC_SETTC0                (0x1)
407
#define MCF_GPIO_SETTC_SETTC1                (0x2)
408
#define MCF_GPIO_SETTC_SETTC2                (0x4)
409
#define MCF_GPIO_SETTC_SETTC3                (0x8)
410
 
411
/* Bit definitions and macros for MCF_GPIO_CLRTC */
412
#define MCF_GPIO_CLRTC_CLRTC0                (0x1)
413
#define MCF_GPIO_CLRTC_CLRTC1                (0x2)
414
#define MCF_GPIO_CLRTC_CLRTC2                (0x4)
415
#define MCF_GPIO_CLRTC_CLRTC3                (0x8)
416
 
417
/* Bit definitions and macros for MCF_GPIO_PTCPAR */
418
#define MCF_GPIO_PTCPAR_PTCPAR0(x)           (((x)&0x3)<<0)
419
#define MCF_GPIO_PTCPAR_DTIN0_GPIO           (0)
420
#define MCF_GPIO_PTCPAR_DTIN0_DTIN0          (0x1)
421
#define MCF_GPIO_PTCPAR_DTIN0_DTOUT0         (0x2)
422
#define MCF_GPIO_PTCPAR_DTIN0_PWM0           (0x3)
423
#define MCF_GPIO_PTCPAR_PTCPAR1(x)           (((x)&0x3)<<0x2)
424
#define MCF_GPIO_PTCPAR_DTIN1_GPIO           (0)
425
#define MCF_GPIO_PTCPAR_DTIN1_DTIN1          (0x4)
426
#define MCF_GPIO_PTCPAR_DTIN1_DTOUT1         (0x8)
427
#define MCF_GPIO_PTCPAR_DTIN1_PWM2           (0xC)
428
#define MCF_GPIO_PTCPAR_PTCPAR2(x)           (((x)&0x3)<<0x4)
429
#define MCF_GPIO_PTCPAR_DTIN2_GPIO           (0)
430
#define MCF_GPIO_PTCPAR_DTIN2_DTIN2          (0x10)
431
#define MCF_GPIO_PTCPAR_DTIN2_DTOUT2         (0x20)
432
#define MCF_GPIO_PTCPAR_DTIN2_PWM4           (0x30)
433
#define MCF_GPIO_PTCPAR_PTCPAR3(x)           (((x)&0x3)<<0x6)
434
#define MCF_GPIO_PTCPAR_DTIN3_GPIO           (0)
435
#define MCF_GPIO_PTCPAR_DTIN3_DTIN3          (0x40)
436
#define MCF_GPIO_PTCPAR_DTIN3_DTOUT3         (0x80)
437
#define MCF_GPIO_PTCPAR_DTIN3_PWM6           (0xC0)
438
 
439
/* Bit definitions and macros for MCF_GPIO_PORTTD */
440
#define MCF_GPIO_PORTTD_PORTTD0              (0x1)
441
#define MCF_GPIO_PORTTD_PORTTD1              (0x2)
442
#define MCF_GPIO_PORTTD_PORTTD2              (0x4)
443
#define MCF_GPIO_PORTTD_PORTTD3              (0x8)
444
 
445
/* Bit definitions and macros for MCF_GPIO_DDRTD */
446
#define MCF_GPIO_DDRTD_DDRTD0                (0x1)
447
#define MCF_GPIO_DDRTD_DDRTD1                (0x2)
448
#define MCF_GPIO_DDRTD_DDRTD2                (0x4)
449
#define MCF_GPIO_DDRTD_DDRTD3                (0x8)
450
 
451
/* Bit definitions and macros for MCF_GPIO_SETTD */
452
#define MCF_GPIO_SETTD_SETTD0                (0x1)
453
#define MCF_GPIO_SETTD_SETTD1                (0x2)
454
#define MCF_GPIO_SETTD_SETTD2                (0x4)
455
#define MCF_GPIO_SETTD_SETTD3                (0x8)
456
 
457
/* Bit definitions and macros for MCF_GPIO_CLRTD */
458
#define MCF_GPIO_CLRTD_CLRTD0                (0x1)
459
#define MCF_GPIO_CLRTD_CLRTD1                (0x2)
460
#define MCF_GPIO_CLRTD_CLRTD2                (0x4)
461
#define MCF_GPIO_CLRTD_CLRTD3                (0x8)
462
 
463
/* Bit definitions and macros for MCF_GPIO_PTDPAR */
464
#define MCF_GPIO_PTDPAR_PTDPAR0              (0x1)
465
#define MCF_GPIO_PTDPAR_PWM1_GPIO            (0)
466
#define MCF_GPIO_PTDPAR_PWM1_PWM1            (0x1)
467
#define MCF_GPIO_PTDPAR_PTDPAR1              (0x2)
468
#define MCF_GPIO_PTDPAR_PWM3_GPIO            (0)
469
#define MCF_GPIO_PTDPAR_PWM3_PWM3            (0x2)
470
#define MCF_GPIO_PTDPAR_PTDPAR2              (0x4)
471
#define MCF_GPIO_PTDPAR_PWM5_GPIO            (0)
472
#define MCF_GPIO_PTDPAR_PWM5_PWM5            (0x4)
473
#define MCF_GPIO_PTDPAR_PTDPAR3              (0x8)
474
#define MCF_GPIO_PTDPAR_PWM7_GPIO            (0)
475
#define MCF_GPIO_PTDPAR_PWM7_PWM7            (0x8)
476
 
477
/* Bit definitions and macros for MCF_GPIO_PORTUA */
478
#define MCF_GPIO_PORTUA_PORTUA0              (0x1)
479
#define MCF_GPIO_PORTUA_PORTUA1              (0x2)
480
#define MCF_GPIO_PORTUA_PORTUA2              (0x4)
481
#define MCF_GPIO_PORTUA_PORTUA3              (0x8)
482
 
483
/* Bit definitions and macros for MCF_GPIO_DDRUA */
484
#define MCF_GPIO_DDRUA_DDRUA0                (0x1)
485
#define MCF_GPIO_DDRUA_DDRUA1                (0x2)
486
#define MCF_GPIO_DDRUA_DDRUA2                (0x4)
487
#define MCF_GPIO_DDRUA_DDRUA3                (0x8)
488
 
489
/* Bit definitions and macros for MCF_GPIO_SETUA */
490
#define MCF_GPIO_SETUA_SETUA0                (0x1)
491
#define MCF_GPIO_SETUA_SETUA1                (0x2)
492
#define MCF_GPIO_SETUA_SETUA2                (0x4)
493
#define MCF_GPIO_SETUA_SETUA3                (0x8)
494
 
495
/* Bit definitions and macros for MCF_GPIO_CLRUA */
496
#define MCF_GPIO_CLRUA_CLRUA0                (0x1)
497
#define MCF_GPIO_CLRUA_CLRUA1                (0x2)
498
#define MCF_GPIO_CLRUA_CLRUA2                (0x4)
499
#define MCF_GPIO_CLRUA_CLRUA3                (0x8)
500
 
501
/* Bit definitions and macros for MCF_GPIO_PUAPAR */
502
#define MCF_GPIO_PUAPAR_PUAPAR0(x)           (((x)&0x3)<<0)
503
#define MCF_GPIO_PUAPAR_UTXD0_GPIO           (0)
504
#define MCF_GPIO_PUAPAR_UTXD0_UTXD0          (0x1)
505
#define MCF_GPIO_PUAPAR_UTXD0_FEC_CRS        (0x3)
506
#define MCF_GPIO_PUAPAR_PUAPAR1(x)           (((x)&0x3)<<0x2)
507
#define MCF_GPIO_PUAPAR_URXD0_GPIO           (0)
508
#define MCF_GPIO_PUAPAR_URXD0_URXD0          (0x4)
509
#define MCF_GPIO_PUAPAR_URXD0_FEC_RXD0       (0xC)
510
#define MCF_GPIO_PUAPAR_PUAPAR2(x)           (((x)&0x3)<<0x4)
511
#define MCF_GPIO_PUAPAR_URTS0_GPIO           (0)
512
#define MCF_GPIO_PUAPAR_URTS0_URTS0          (0x10)
513
#define MCF_GPIO_PUAPAR_URTS0_CANTX          (0x20)
514
#define MCF_GPIO_PUAPAR_URTS0_FEC_RXDV       (0x30)
515
#define MCF_GPIO_PUAPAR_PUAPAR3(x)           (((x)&0x3)<<0x6)
516
#define MCF_GPIO_PUAPAR_UCTS0_GPIO           (0)
517
#define MCF_GPIO_PUAPAR_UCTS0_UCTS0          (0x40)
518
#define MCF_GPIO_PUAPAR_UCTS0_CANRX          (0x80)
519
#define MCF_GPIO_PUAPAR_UCTS0_FEC_RXCLK      (0xC0)
520
 
521
/* Bit definitions and macros for MCF_GPIO_PORTUB */
522
#define MCF_GPIO_PORTUB_PORTUB0              (0x1)
523
#define MCF_GPIO_PORTUB_PORTUB1              (0x2)
524
#define MCF_GPIO_PORTUB_PORTUB2              (0x4)
525
#define MCF_GPIO_PORTUB_PORTUB3              (0x8)
526
 
527
/* Bit definitions and macros for MCF_GPIO_DDRUB */
528
#define MCF_GPIO_DDRUB_DDRUB0                (0x1)
529
#define MCF_GPIO_DDRUB_DDRUB1                (0x2)
530
#define MCF_GPIO_DDRUB_DDRUB2                (0x4)
531
#define MCF_GPIO_DDRUB_DDRUB3                (0x8)
532
 
533
/* Bit definitions and macros for MCF_GPIO_SETUB */
534
#define MCF_GPIO_SETUB_SETUB0                (0x1)
535
#define MCF_GPIO_SETUB_SETUB1                (0x2)
536
#define MCF_GPIO_SETUB_SETUB2                (0x4)
537
#define MCF_GPIO_SETUB_SETUB3                (0x8)
538
 
539
/* Bit definitions and macros for MCF_GPIO_CLRUB */
540
#define MCF_GPIO_CLRUB_CLRUB0                (0x1)
541
#define MCF_GPIO_CLRUB_CLRUB1                (0x2)
542
#define MCF_GPIO_CLRUB_CLRUB2                (0x4)
543
#define MCF_GPIO_CLRUB_CLRUB3                (0x8)
544
 
545
/* Bit definitions and macros for MCF_GPIO_PUBPAR */
546
#define MCF_GPIO_PUBPAR_PUBPAR0(x)           (((x)&0x3)<<0)
547
#define MCF_GPIO_PUBPAR_UTXD1_GPIO           (0)
548
#define MCF_GPIO_PUBPAR_UTXD1_UTXD1          (0x1)
549
#define MCF_GPIO_PUBPAR_UTXD1_FEC_COL        (0x3)
550
#define MCF_GPIO_PUBPAR_PUBPAR1(x)           (((x)&0x3)<<0x2)
551
#define MCF_GPIO_PUBPAR_URXD1_GPIO           (0)
552
#define MCF_GPIO_PUBPAR_URXD1_URXD1          (0x4)
553
#define MCF_GPIO_PUBPAR_URXD1_FEC_TXD0       (0xC)
554
#define MCF_GPIO_PUBPAR_PUBPAR2(x)           (((x)&0x3)<<0x4)
555
#define MCF_GPIO_PUBPAR_URTS1_GPIO           (0)
556
#define MCF_GPIO_PUBPAR_URTS1_URTS1          (0x10)
557
#define MCF_GPIO_PUBPAR_URTS1_SYNCB          (0x20)
558
#define MCF_GPIO_PUBPAR_URTS1_UTXD2          (0x30)
559
#define MCF_GPIO_PUBPAR_PUBPAR3(x)           (((x)&0x3)<<0x6)
560
#define MCF_GPIO_PUBPAR_UCTS1_GPIO           (0)
561
#define MCF_GPIO_PUBPAR_UCTS1_UCTS1          (0x40)
562
#define MCF_GPIO_PUBPAR_UCTS1_SYNCA          (0x80)
563
#define MCF_GPIO_PUBPAR_UCTS1_URXD2          (0xC0)
564
 
565
/* Bit definitions and macros for MCF_GPIO_PORTUC */
566
#define MCF_GPIO_PORTUC_PORTUC0              (0x1)
567
#define MCF_GPIO_PORTUC_PORTUC1              (0x2)
568
#define MCF_GPIO_PORTUC_PORTUC2              (0x4)
569
#define MCF_GPIO_PORTUC_PORTUC3              (0x8)
570
 
571
/* Bit definitions and macros for MCF_GPIO_DDRUC */
572
#define MCF_GPIO_DDRUC_DDRUC0                (0x1)
573
#define MCF_GPIO_DDRUC_DDRUC1                (0x2)
574
#define MCF_GPIO_DDRUC_DDRUC2                (0x4)
575
#define MCF_GPIO_DDRUC_DDRUC3                (0x8)
576
 
577
/* Bit definitions and macros for MCF_GPIO_SETUC */
578
#define MCF_GPIO_SETUC_SETUC0                (0x1)
579
#define MCF_GPIO_SETUC_SETUC1                (0x2)
580
#define MCF_GPIO_SETUC_SETUC2                (0x4)
581
#define MCF_GPIO_SETUC_SETUC3                (0x8)
582
 
583
/* Bit definitions and macros for MCF_GPIO_CLRUC */
584
#define MCF_GPIO_CLRUC_CLRUC0                (0x1)
585
#define MCF_GPIO_CLRUC_CLRUC1                (0x2)
586
#define MCF_GPIO_CLRUC_CLRUC2                (0x4)
587
#define MCF_GPIO_CLRUC_CLRUC3                (0x8)
588
 
589
/* Bit definitions and macros for MCF_GPIO_PUCPAR */
590
#define MCF_GPIO_PUCPAR_PUCPAR0              (0x1)
591
#define MCF_GPIO_PUCPAR_UTXD2_GPIO           (0)
592
#define MCF_GPIO_PUCPAR_UTXD2_UTXD2          (0x1)
593
#define MCF_GPIO_PUCPAR_PUCPAR1              (0x2)
594
#define MCF_GPIO_PUCPAR_URXD2_GPIO           (0)
595
#define MCF_GPIO_PUCPAR_URXD2_URXD2          (0x2)
596
#define MCF_GPIO_PUCPAR_PUCPAR2              (0x4)
597
#define MCF_GPIO_PUCPAR_URTS2_GPIO           (0)
598
#define MCF_GPIO_PUCPAR_URTS2_URTS2          (0x4)
599
#define MCF_GPIO_PUCPAR_PUCPAR3              (0x8)
600
#define MCF_GPIO_PUCPAR_UCTS2_GPIO           (0)
601
#define MCF_GPIO_PUCPAR_UCTS2_UCTS2          (0x8)
602
 
603
/* Bit definitions and macros for MCF_GPIO_PORTDD */
604
#define MCF_GPIO_PORTDD_PORTDD0              (0x1)
605
#define MCF_GPIO_PORTDD_PORTDD1              (0x2)
606
#define MCF_GPIO_PORTDD_PORTDD2              (0x4)
607
#define MCF_GPIO_PORTDD_PORTDD3              (0x8)
608
#define MCF_GPIO_PORTDD_PORTDD4              (0x10)
609
#define MCF_GPIO_PORTDD_PORTDD5              (0x20)
610
#define MCF_GPIO_PORTDD_PORTDD6              (0x40)
611
#define MCF_GPIO_PORTDD_PORTDD7              (0x80)
612
 
613
/* Bit definitions and macros for MCF_GPIO_DDRDD */
614
#define MCF_GPIO_DDRDD_DDRDD0                (0x1)
615
#define MCF_GPIO_DDRDD_DDRDD1                (0x2)
616
#define MCF_GPIO_DDRDD_DDRDD2                (0x4)
617
#define MCF_GPIO_DDRDD_DDRDD3                (0x8)
618
#define MCF_GPIO_DDRDD_DDRDD4                (0x10)
619
#define MCF_GPIO_DDRDD_DDRDD5                (0x20)
620
#define MCF_GPIO_DDRDD_DDRDD6                (0x40)
621
#define MCF_GPIO_DDRDD_DDRDD7                (0x80)
622
 
623
/* Bit definitions and macros for MCF_GPIO_SETDD */
624
#define MCF_GPIO_SETDD_SETDD0                (0x1)
625
#define MCF_GPIO_SETDD_SETDD1                (0x2)
626
#define MCF_GPIO_SETDD_SETDD2                (0x4)
627
#define MCF_GPIO_SETDD_SETDD3                (0x8)
628
#define MCF_GPIO_SETDD_SETDD4                (0x10)
629
#define MCF_GPIO_SETDD_SETDD5                (0x20)
630
#define MCF_GPIO_SETDD_SETDD6                (0x40)
631
#define MCF_GPIO_SETDD_SETDD7                (0x80)
632
 
633
/* Bit definitions and macros for MCF_GPIO_CLRDD */
634
#define MCF_GPIO_CLRDD_CLRDD0                (0x1)
635
#define MCF_GPIO_CLRDD_CLRDD1                (0x2)
636
#define MCF_GPIO_CLRDD_CLRDD2                (0x4)
637
#define MCF_GPIO_CLRDD_CLRDD3                (0x8)
638
#define MCF_GPIO_CLRDD_CLRDD4                (0x10)
639
#define MCF_GPIO_CLRDD_CLRDD5                (0x20)
640
#define MCF_GPIO_CLRDD_CLRDD6                (0x40)
641
#define MCF_GPIO_CLRDD_CLRDD7                (0x80)
642
 
643
/* Bit definitions and macros for MCF_GPIO_PDDPAR */
644
#define MCF_GPIO_PDDPAR_PDDPAR0              (0x1)
645
#define MCF_GPIO_PDDPAR_PDD0_GPIO            (0)
646
#define MCF_GPIO_PDDPAR_PDD0_PST0            (0x1)
647
#define MCF_GPIO_PDDPAR_PDDPAR1              (0x2)
648
#define MCF_GPIO_PDDPAR_PDD1_GPIO            (0)
649
#define MCF_GPIO_PDDPAR_PDD1_PST1            (0x2)
650
#define MCF_GPIO_PDDPAR_PDDPAR2              (0x4)
651
#define MCF_GPIO_PDDPAR_PDD2_GPIO            (0)
652
#define MCF_GPIO_PDDPAR_PDD2_PST2            (0x4)
653
#define MCF_GPIO_PDDPAR_PDDPAR3              (0x8)
654
#define MCF_GPIO_PDDPAR_PDD3_GPIO            (0)
655
#define MCF_GPIO_PDDPAR_PDD3_PST3            (0x8)
656
#define MCF_GPIO_PDDPAR_PDDPAR4              (0x10)
657
#define MCF_GPIO_PDDPAR_PDD4_GPIO            (0)
658
#define MCF_GPIO_PDDPAR_PDD4_DDATA0          (0x10)
659
#define MCF_GPIO_PDDPAR_PDDPAR5              (0x20)
660
#define MCF_GPIO_PDDPAR_PDD5_GPIO            (0)
661
#define MCF_GPIO_PDDPAR_PDD5_DDATA1          (0x20)
662
#define MCF_GPIO_PDDPAR_PDDPAR6              (0x40)
663
#define MCF_GPIO_PDDPAR_PDD6_GPIO            (0)
664
#define MCF_GPIO_PDDPAR_PDD6_DDATA2          (0x40)
665
#define MCF_GPIO_PDDPAR_PDDPAR7              (0x80)
666
#define MCF_GPIO_PDDPAR_PDD7_GPIO            (0)
667
#define MCF_GPIO_PDDPAR_PDD7_DDATA3          (0x80)
668
 
669
/* Bit definitions and macros for MCF_GPIO_PORTLD */
670
#define MCF_GPIO_PORTLD_PORTLD0              (0x1)
671
#define MCF_GPIO_PORTLD_PORTLD1              (0x2)
672
#define MCF_GPIO_PORTLD_PORTLD2              (0x4)
673
#define MCF_GPIO_PORTLD_PORTLD3              (0x8)
674
#define MCF_GPIO_PORTLD_PORTLD4              (0x10)
675
#define MCF_GPIO_PORTLD_PORTLD5              (0x20)
676
#define MCF_GPIO_PORTLD_PORTLD6              (0x40)
677
 
678
/* Bit definitions and macros for MCF_GPIO_DDRLD */
679
#define MCF_GPIO_DDRLD_DDRLD0                (0x1)
680
#define MCF_GPIO_DDRLD_DDRLD1                (0x2)
681
#define MCF_GPIO_DDRLD_DDRLD2                (0x4)
682
#define MCF_GPIO_DDRLD_DDRLD3                (0x8)
683
#define MCF_GPIO_DDRLD_DDRLD4                (0x10)
684
#define MCF_GPIO_DDRLD_DDRLD5                (0x20)
685
#define MCF_GPIO_DDRLD_DDRLD6                (0x40)
686
 
687
/* Bit definitions and macros for MCF_GPIO_SETLD */
688
#define MCF_GPIO_SETLD_SETLD0                (0x1)
689
#define MCF_GPIO_SETLD_SETLD1                (0x2)
690
#define MCF_GPIO_SETLD_SETLD2                (0x4)
691
#define MCF_GPIO_SETLD_SETLD3                (0x8)
692
#define MCF_GPIO_SETLD_SETLD4                (0x10)
693
#define MCF_GPIO_SETLD_SETLD5                (0x20)
694
#define MCF_GPIO_SETLD_SETLD6                (0x40)
695
 
696
/* Bit definitions and macros for MCF_GPIO_CLRLD */
697
#define MCF_GPIO_CLRLD_CLRLD0                (0x1)
698
#define MCF_GPIO_CLRLD_CLRLD1                (0x2)
699
#define MCF_GPIO_CLRLD_CLRLD2                (0x4)
700
#define MCF_GPIO_CLRLD_CLRLD3                (0x8)
701
#define MCF_GPIO_CLRLD_CLRLD4                (0x10)
702
#define MCF_GPIO_CLRLD_CLRLD5                (0x20)
703
#define MCF_GPIO_CLRLD_CLRLD6                (0x40)
704
 
705
/* Bit definitions and macros for MCF_GPIO_PLDPAR */
706
#define MCF_GPIO_PLDPAR_PLDPAR0              (0x1)
707
#define MCF_GPIO_PLDPAR_ACTLED_GPIO          (0)
708
#define MCF_GPIO_PLDPAR_ACTLED_ACTLED        (0x1)
709
#define MCF_GPIO_PLDPAR_PLDPAR1              (0x2)
710
#define MCF_GPIO_PLDPAR_LINKLED_GPIO         (0)
711
#define MCF_GPIO_PLDPAR_LINKLED_LINKLED      (0x2)
712
#define MCF_GPIO_PLDPAR_PLDPAR2              (0x4)
713
#define MCF_GPIO_PLDPAR_SPDLED_GPIO          (0)
714
#define MCF_GPIO_PLDPAR_SPDLED_SPDLED        (0x4)
715
#define MCF_GPIO_PLDPAR_PLDPAR3              (0x8)
716
#define MCF_GPIO_PLDPAR_DUPLED_GPIO          (0)
717
#define MCF_GPIO_PLDPAR_DUPLED_DUPLED        (0x8)
718
#define MCF_GPIO_PLDPAR_PLDPAR4              (0x10)
719
#define MCF_GPIO_PLDPAR_COLLED_GPIO          (0)
720
#define MCF_GPIO_PLDPAR_COLLED_COLLED        (0x10)
721
#define MCF_GPIO_PLDPAR_PLDPAR5              (0x20)
722
#define MCF_GPIO_PLDPAR_RXLED_GPIO           (0)
723
#define MCF_GPIO_PLDPAR_RXLED_RXLED          (0x20)
724
#define MCF_GPIO_PLDPAR_PLDPAR6              (0x40)
725
#define MCF_GPIO_PLDPAR_TXLED_GPIO           (0)
726
#define MCF_GPIO_PLDPAR_TXLED_TXLED          (0x40)
727
 
728
/* Bit definitions and macros for MCF_GPIO_PORTGP */
729
#define MCF_GPIO_PORTGP_PORTGP0              (0x1)
730
#define MCF_GPIO_PORTGP_PORTGP1              (0x2)
731
#define MCF_GPIO_PORTGP_PORTGP2              (0x4)
732
#define MCF_GPIO_PORTGP_PORTGP3              (0x8)
733
#define MCF_GPIO_PORTGP_PORTGP4              (0x10)
734
#define MCF_GPIO_PORTGP_PORTGP5              (0x20)
735
#define MCF_GPIO_PORTGP_PORTGP6              (0x40)
736
#define MCF_GPIO_PORTGP_PORTGP7              (0x80)
737
 
738
/* Bit definitions and macros for MCF_GPIO_DDRGP */
739
#define MCF_GPIO_DDRGP_DDRGP0                (0x1)
740
#define MCF_GPIO_DDRGP_DDRGP1                (0x2)
741
#define MCF_GPIO_DDRGP_DDRGP2                (0x4)
742
#define MCF_GPIO_DDRGP_DDRGP3                (0x8)
743
#define MCF_GPIO_DDRGP_DDRGP4                (0x10)
744
#define MCF_GPIO_DDRGP_DDRGP5                (0x20)
745
#define MCF_GPIO_DDRGP_DDRGP6                (0x40)
746
#define MCF_GPIO_DDRGP_DDRGP7                (0x80)
747
 
748
/* Bit definitions and macros for MCF_GPIO_SETGP */
749
#define MCF_GPIO_SETGP_SETGP0                (0x1)
750
#define MCF_GPIO_SETGP_SETGP1                (0x2)
751
#define MCF_GPIO_SETGP_SETGP2                (0x4)
752
#define MCF_GPIO_SETGP_SETGP3                (0x8)
753
#define MCF_GPIO_SETGP_SETGP4                (0x10)
754
#define MCF_GPIO_SETGP_SETGP5                (0x20)
755
#define MCF_GPIO_SETGP_SETGP6                (0x40)
756
#define MCF_GPIO_SETGP_SETGP7                (0x80)
757
 
758
/* Bit definitions and macros for MCF_GPIO_CLRGP */
759
#define MCF_GPIO_CLRGP_CLRGP0                (0x1)
760
#define MCF_GPIO_CLRGP_CLRGP1                (0x2)
761
#define MCF_GPIO_CLRGP_CLRGP2                (0x4)
762
#define MCF_GPIO_CLRGP_CLRGP3                (0x8)
763
#define MCF_GPIO_CLRGP_CLRGP4                (0x10)
764
#define MCF_GPIO_CLRGP_CLRGP5                (0x20)
765
#define MCF_GPIO_CLRGP_CLRGP6                (0x40)
766
#define MCF_GPIO_CLRGP_CLRGP7                (0x80)
767
 
768
/* Bit definitions and macros for MCF_GPIO_PGPPAR */
769
#define MCF_GPIO_PGPPAR_PGPPAR0              (0x1)
770
#define MCF_GPIO_PGPPAR_IRQ8_GPIO            (0)
771
#define MCF_GPIO_PGPPAR_IRQ8_IRQ8            (0x1)
772
#define MCF_GPIO_PGPPAR_PGPPAR1              (0x2)
773
#define MCF_GPIO_PGPPAR_IRQ9_GPIO            (0)
774
#define MCF_GPIO_PGPPAR_IRQ9_IRQ9            (0x2)
775
#define MCF_GPIO_PGPPAR_PGPPAR2              (0x4)
776
#define MCF_GPIO_PGPPAR_IRQ10_GPIO           (0)
777
#define MCF_GPIO_PGPPAR_IRQ10_IRQ10          (0x4)
778
#define MCF_GPIO_PGPPAR_PGPPAR3              (0x8)
779
#define MCF_GPIO_PGPPAR_IRQ11_GPIO           (0)
780
#define MCF_GPIO_PGPPAR_IRQ11_IRQ11          (0x8)
781
#define MCF_GPIO_PGPPAR_PGPPAR4              (0x10)
782
#define MCF_GPIO_PGPPAR_IRQ12_GPIO           (0)
783
#define MCF_GPIO_PGPPAR_IRQ12_IRQ12          (0x10)
784
#define MCF_GPIO_PGPPAR_PGPPAR5              (0x20)
785
#define MCF_GPIO_PGPPAR_IRQ13_GPIO           (0)
786
#define MCF_GPIO_PGPPAR_IRQ13_IRQ13          (0x20)
787
#define MCF_GPIO_PGPPAR_PGPPAR6              (0x40)
788
#define MCF_GPIO_PGPPAR_IRQ14_GPIO           (0)
789
#define MCF_GPIO_PGPPAR_IRQ14_IRQ14          (0x40)
790
#define MCF_GPIO_PGPPAR_PGPPAR7              (0x80)
791
#define MCF_GPIO_PGPPAR_IRQ15_GPIO           (0)
792
#define MCF_GPIO_PGPPAR_IRQ15_IRQ15          (0x80)
793
 
794
 
795
#endif /* __MCF52235_GPIO_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.