1 | /* |
---|
2 | * File: mcf532x.h |
---|
3 | * Purpose: Register and bit definitions |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef __MCF532X_H__ |
---|
7 | #define __MCF532X_H__ |
---|
8 | |
---|
9 | /********************************************************************* |
---|
10 | * |
---|
11 | * System Control Module (SCM) |
---|
12 | * |
---|
13 | *********************************************************************/ |
---|
14 | |
---|
15 | /* Register read/write macros */ |
---|
16 | #define MCF_SCM_MPR0 (*(vuint32*)(0xEC000000)) |
---|
17 | #define MCF_SCM_MPR1 (*(vuint32*)(0xFC000000)) |
---|
18 | #define MCF_SCM_BMT0 (*(vuint32*)(0xEC000054)) |
---|
19 | #define MCF_SCM_BMT1 (*(vuint32*)(0xFC000054)) |
---|
20 | #define MCF_SCM_PACRA (*(vuint32*)(0xFC000020)) |
---|
21 | #define MCF_SCM_PACRB (*(vuint32*)(0xFC000024)) |
---|
22 | #define MCF_SCM_PACRC (*(vuint32*)(0xFC000028)) |
---|
23 | #define MCF_SCM_PACRD (*(vuint32*)(0xFC00002C)) |
---|
24 | #define MCF_SCM_PACRE (*(vuint32*)(0xFC000040)) |
---|
25 | #define MCF_SCM_PACRF (*(vuint32*)(0xFC000044)) |
---|
26 | #define MCF_SCM_PACRG (*(vuint32*)(0xEC000048)) |
---|
27 | #define MCF_SCM_PACRH (*(vuint32*)(0xEC000040)) |
---|
28 | #define MCF_SCM_CWCR (*(vuint16*)(0xFC040016)) |
---|
29 | #define MCF_SCM_CWSR (*(vuint8 *)(0xFC04001B)) |
---|
30 | #define MCF_SCM_CWIR (*(vuint8 *)(0xFC04001F)) |
---|
31 | #define MCF_SCM_BCR (*(vuint32*)(0xFC040024)) |
---|
32 | #define MCF_SCM_CFADR (*(vuint32*)(0xFC040070)) |
---|
33 | #define MCF_SCM_CFIER (*(vuint8 *)(0xFC040075)) |
---|
34 | #define MCF_SCM_CFLOC (*(vuint8 *)(0xFC040076)) |
---|
35 | #define MCF_SCM_CFATR (*(vuint8 *)(0xFC040077)) |
---|
36 | #define MCF_SCM_CFDTR (*(vuint32*)(0xFC04007C)) |
---|
37 | |
---|
38 | /* Bit definitions and macros for MCF_SCM_MPR */ |
---|
39 | #define MCF_SCM_MPR_MPROT6(x) (((x)&0x0000000F)<<4) |
---|
40 | #define MCF_SCM_MPR_MPROT5(x) (((x)&0x0000000F)<<8) |
---|
41 | #define MCF_SCM_MPR_MPROT4(x) (((x)&0x0000000F)<<12) |
---|
42 | #define MCF_SCM_MPR_MPROT2(x) (((x)&0x0000000F)<<20) |
---|
43 | #define MCF_SCM_MPR_MPROT1(x) (((x)&0x0000000F)<<24) |
---|
44 | #define MCF_SCM_MPR_MPROT0(x) (((x)&0x0000000F)<<28) |
---|
45 | #define MCF_SCM_MPR_MPROT_MTR (0x4) |
---|
46 | #define MCF_SCM_MPR_MPROT_MTW (0x2) |
---|
47 | #define MCF_SCM_MPR_MPROT_MPL (0x1) |
---|
48 | |
---|
49 | /* Bit definitions and macros for MCF_SCM_BMT */ |
---|
50 | #define MCF_SCM_BMT_BMT(x) (((x)&0x00000007)<<0) |
---|
51 | #define MCF_SCM_BMT_BME (0x00000008) |
---|
52 | #define MCF_SCM_BMT_BMT_1024 (0x00000000) |
---|
53 | #define MCF_SCM_BMT_BMT_512 (0x00000001) |
---|
54 | #define MCF_SCM_BMT_BMT_256 (0x00000002) |
---|
55 | #define MCF_SCM_BMT_BMT_128 (0x00000003) |
---|
56 | #define MCF_SCM_BMT_BMT_64 (0x00000004) |
---|
57 | #define MCF_SCM_BMT_BMT_32 (0x00000005) |
---|
58 | #define MCF_SCM_BMT_BMT_16 (0x00000006) |
---|
59 | #define MCF_SCM_BMT_BMT_8 (0x00000007) |
---|
60 | |
---|
61 | /* Bit definitions and macros for MCF_SCM_PACRA */ |
---|
62 | #define MCF_SCM_PACRA_PACR2(x) (((x)&0x0000000F)<<20) |
---|
63 | #define MCF_SCM_PACRA_PACR1(x) (((x)&0x0000000F)<<24) |
---|
64 | #define MCF_SCM_PACRA_PACR0(x) (((x)&0x0000000F)<<28) |
---|
65 | #define MCF_SCM_PACRA_PACR_SP (0x4) |
---|
66 | #define MCF_SCM_PACRA_PACR_WP (0x2) |
---|
67 | #define MCF_SCM_PACRA_PACR_TP (0x1) |
---|
68 | |
---|
69 | /* Bit definitions and macros for MCF_SCM_PACRB */ |
---|
70 | #define MCF_SCM_PACRB_PACR12(x) (((x)&0x0000000F)<<12) |
---|
71 | #define MCF_SCM_PACRB_PACR8(x) (((x)&0x0000000F)<<28) |
---|
72 | |
---|
73 | /* Bit definitions and macros for MCF_SCM_PACRC */ |
---|
74 | #define MCF_SCM_PACRC_PACR23(x) (((x)&0x0000000F)<<0) |
---|
75 | #define MCF_SCM_PACRC_PACR22(x) (((x)&0x0000000F)<<4) |
---|
76 | #define MCF_SCM_PACRC_PACR21(x) (((x)&0x0000000F)<<8) |
---|
77 | #define MCF_SCM_PACRC_PACR19(x) (((x)&0x0000000F)<<16) |
---|
78 | #define MCF_SCM_PACRC_PACR18(x) (((x)&0x0000000F)<<20) |
---|
79 | #define MCF_SCM_PACRC_PACR17(x) (((x)&0x0000000F)<<24) |
---|
80 | #define MCF_SCM_PACRC_PACR16(x) (((x)&0x0000000F)<<28) |
---|
81 | |
---|
82 | /* Bit definitions and macros for MCF_SCM_PACRD */ |
---|
83 | #define MCF_SCM_PACRD_PACR31(x) (((x)&0x0000000F)<<0) |
---|
84 | #define MCF_SCM_PACRD_PACR30(x) (((x)&0x0000000F)<<4) |
---|
85 | #define MCF_SCM_PACRD_PACR29(x) (((x)&0x0000000F)<<8) |
---|
86 | #define MCF_SCM_PACRD_PACR28(x) (((x)&0x0000000F)<<12) |
---|
87 | #define MCF_SCM_PACRD_PACR26(x) (((x)&0x0000000F)<<20) |
---|
88 | #define MCF_SCM_PACRD_PACR25(x) (((x)&0x0000000F)<<24) |
---|
89 | #define MCF_SCM_PACRD_PACR24(x) (((x)&0x0000000F)<<28) |
---|
90 | |
---|
91 | /* Bit definitions and macros for MCF_SCM_PACRE */ |
---|
92 | #define MCF_SCM_PACRE_PACR38(x) (((x)&0x0000000F)<<4) |
---|
93 | #define MCF_SCM_PACRE_PACR37(x) (((x)&0x0000000F)<<8) |
---|
94 | #define MCF_SCM_PACRE_PACR36(x) (((x)&0x0000000F)<<12) |
---|
95 | #define MCF_SCM_PACRE_PACR35(x) (((x)&0x0000000F)<<16) |
---|
96 | #define MCF_SCM_PACRE_PACR34(x) (((x)&0x0000000F)<<20) |
---|
97 | #define MCF_SCM_PACRE_PACR33(x) (((x)&0x0000000F)<<24) |
---|
98 | #define MCF_SCM_PACRE_PACR32(x) (((x)&0x0000000F)<<28) |
---|
99 | |
---|
100 | /* Bit definitions and macros for MCF_SCM_PACRF */ |
---|
101 | #define MCF_SCM_PACRF_PACR47(x) (((x)&0x0000000F)<<0) |
---|
102 | #define MCF_SCM_PACRF_PACR46(x) (((x)&0x0000000F)<<4) |
---|
103 | #define MCF_SCM_PACRF_PACR45(x) (((x)&0x0000000F)<<8) |
---|
104 | #define MCF_SCM_PACRF_PACR44(x) (((x)&0x0000000F)<<12) |
---|
105 | #define MCF_SCM_PACRF_PACR43(x) (((x)&0x0000000F)<<16) |
---|
106 | #define MCF_SCM_PACRF_PACR42(x) (((x)&0x0000000F)<<20) |
---|
107 | #define MCF_SCM_PACRF_PACR41(x) (((x)&0x0000000F)<<24) |
---|
108 | #define MCF_SCM_PACRF_PACR40(x) (((x)&0x0000000F)<<28) |
---|
109 | |
---|
110 | /* Bit definitions and macros for MCF_SCM_PACRG */ |
---|
111 | #define MCF_SCM_PACRG_PACR48(x) (((x)&0x0000000F)<<28) |
---|
112 | |
---|
113 | /* Bit definitions and macros for MCF_SCM_PACRH */ |
---|
114 | #define MCF_SCM_PACRH_PACR58(x) (((x)&0x0000000F)<<20) |
---|
115 | #define MCF_SCM_PACRH_PACR57(x) (((x)&0x0000000F)<<24) |
---|
116 | #define MCF_SCM_PACRH_PACR56(x) (((x)&0x0000000F)<<28) |
---|
117 | |
---|
118 | /* Bit definitions and macros for MCF_SCM_CWCR */ |
---|
119 | #define MCF_SCM_CWCR_CWT(x) (((x)&0x001F)<<0) |
---|
120 | #define MCF_SCM_CWCR_CWRI(x) (((x)&0x0003)<<5) |
---|
121 | #define MCF_SCM_CWCR_CWE (0x0080) |
---|
122 | #define MCF_SCM_CWCR_CWR_WH (0x0100) |
---|
123 | #define MCF_SCM_CWCR_RO (0x8000) |
---|
124 | #define MCF_SCM_CWCR_CWRI_INT (0x0000) |
---|
125 | #define MCF_SCM_CWCR_CWRI_INT_THEN_RESET (0x0020) |
---|
126 | #define MCF_SCM_CWCR_CWRI_RESET (0x0040) |
---|
127 | #define MCF_SCM_CWCR_CWRI_WINDOW (0x0060) |
---|
128 | |
---|
129 | /* Bit definitions and macros for MCF_SCM_CWSR */ |
---|
130 | #define MCF_SCM_CWSR_CWSR(x) (((x)&0xFF)<<0) |
---|
131 | |
---|
132 | /* Bit definitions and macros for MCF_SCM_CWIR */ |
---|
133 | #define MCF_SCM_CWIR_CWIC (0x01) |
---|
134 | #define MCF_SCM_CWIR_CFEI (0x02) |
---|
135 | |
---|
136 | /* Bit definitions and macros for MCF_SCM_BCR */ |
---|
137 | #define MCF_SCM_BCR_S1 (0x00000002) |
---|
138 | #define MCF_SCM_BCR_S4 (0x00000010) |
---|
139 | #define MCF_SCM_BCR_S6 (0x00000040) |
---|
140 | #define MCF_SCM_BCR_S7 (0x00000080) |
---|
141 | #define MCF_SCM_BCR_GBW (0x00000100) |
---|
142 | #define MCF_SCM_BCR_GBR (0x00000200) |
---|
143 | |
---|
144 | /* Bit definitions and macros for MCF_SCM_CFADR */ |
---|
145 | #define MCF_SCM_CFADR_ADDR(x) (((x)&0xFFFFFFFF)<<0) |
---|
146 | |
---|
147 | /* Bit definitions and macros for MCF_SCM_CFIER */ |
---|
148 | #define MCF_SCM_CFIER_ECFEI (0x01) |
---|
149 | |
---|
150 | /* Bit definitions and macros for MCF_SCM_CFLOC */ |
---|
151 | #define MCF_SCM_CFLOC_LOC (0x80) |
---|
152 | |
---|
153 | /* Bit definitions and macros for MCF_SCM_CFATR */ |
---|
154 | #define MCF_SCM_CFATR_TYPE (0x01) |
---|
155 | #define MCF_SCM_CFATR_MODE (0x02) |
---|
156 | #define MCF_SCM_CFATR_CACHE (0x08) |
---|
157 | #define MCF_SCM_CFATR_SIZE(x) (((x)&0x07)<<4) |
---|
158 | #define MCF_SCM_CFATR_WRITE (0x80) |
---|
159 | |
---|
160 | /* Bit definitions and macros for MCF_SCM_CFDTR */ |
---|
161 | #define MCF_SCM_CFDTR_CFDTR(x) (((x)&0xFFFFFFFF)<<0) |
---|
162 | |
---|
163 | /********************************************************************* |
---|
164 | * |
---|
165 | * Message Digest Hardware Accelerator (MDHA) |
---|
166 | * |
---|
167 | *********************************************************************/ |
---|
168 | |
---|
169 | /* Register read/write macros */ |
---|
170 | #define MCF_MDHA_MDMR (*(vuint32*)(0xEC080000)) |
---|
171 | #define MCF_MDHA_MDCR (*(vuint32*)(0xEC080004)) |
---|
172 | #define MCF_MDHA_MDCMR (*(vuint32*)(0xEC080008)) |
---|
173 | #define MCF_MDHA_MDSR (*(vuint32*)(0xEC08000C)) |
---|
174 | #define MCF_MDHA_MDISR (*(vuint32*)(0xEC080010)) |
---|
175 | #define MCF_MDHA_MDIMR (*(vuint32*)(0xEC080014)) |
---|
176 | #define MCF_MDHA_MDDSR (*(vuint32*)(0xEC08001C)) |
---|
177 | #define MCF_MDHA_MDIN (*(vuint32*)(0xEC080020)) |
---|
178 | #define MCF_MDHA_MDA0 (*(vuint32*)(0xEC080030)) |
---|
179 | #define MCF_MDHA_MDB0 (*(vuint32*)(0xEC080034)) |
---|
180 | #define MCF_MDHA_MDC0 (*(vuint32*)(0xEC080038)) |
---|
181 | #define MCF_MDHA_MDD0 (*(vuint32*)(0xEC08003C)) |
---|
182 | #define MCF_MDHA_MDE0 (*(vuint32*)(0xEC080040)) |
---|
183 | #define MCF_MDHA_MDMDS (*(vuint32*)(0xEC080044)) |
---|
184 | #define MCF_MDHA_MDA1 (*(vuint32*)(0xEC080070)) |
---|
185 | #define MCF_MDHA_MDB1 (*(vuint32*)(0xEC080074)) |
---|
186 | #define MCF_MDHA_MDC1 (*(vuint32*)(0xEC080078)) |
---|
187 | #define MCF_MDHA_MDD1 (*(vuint32*)(0xEC08007C)) |
---|
188 | #define MCF_MDHA_MDE1 (*(vuint32*)(0xEC080080)) |
---|
189 | |
---|
190 | /* Bit definitions and macros for MCF_MDHA_MDMR */ |
---|
191 | #define MCF_MDHA_MDMR_ALG (0x00000001) |
---|
192 | #define MCF_MDHA_MDMR_PDATA (0x00000004) |
---|
193 | #define MCF_MDHA_MDMR_MAC(x) (((x)&0x00000003)<<3) |
---|
194 | #define MCF_MDHA_MDMR_INIT (0x00000020) |
---|
195 | #define MCF_MDHA_MDMR_IPAD (0x00000040) |
---|
196 | #define MCF_MDHA_MDMR_OPAD (0x00000080) |
---|
197 | #define MCF_MDHA_MDMR_SWAP (0x00000100) |
---|
198 | #define MCF_MDHA_MDMR_MACFULL (0x00000200) |
---|
199 | #define MCF_MDHA_MDMR_SSL (0x00000400) |
---|
200 | |
---|
201 | /* Bit definitions and macros for MCF_MDHA_MDCR */ |
---|
202 | #define MCF_MDHA_MDCR_IE (0x00000001) |
---|
203 | #define MCF_MDHA_MDCR_DMA (0x00000002) |
---|
204 | #define MCF_MDHA_MDCR_ENDIAN (0x00000004) |
---|
205 | #define MCF_MDHA_MDCR_DMAL(x) (((x)&0x0000001F)<<16) |
---|
206 | |
---|
207 | /* Bit definitions and macros for MCF_MDHA_MDCMR */ |
---|
208 | #define MCF_MDHA_MDCMR_SWR (0x00000001) |
---|
209 | #define MCF_MDHA_MDCMR_RI (0x00000002) |
---|
210 | #define MCF_MDHA_MDCMR_CI (0x00000004) |
---|
211 | #define MCF_MDHA_MDCMR_GO (0x00000008) |
---|
212 | |
---|
213 | /* Bit definitions and macros for MCF_MDHA_MDSR */ |
---|
214 | #define MCF_MDHA_MDSR_INT (0x00000001) |
---|
215 | #define MCF_MDHA_MDSR_DONE (0x00000002) |
---|
216 | #define MCF_MDHA_MDSR_ERR (0x00000004) |
---|
217 | #define MCF_MDHA_MDSR_RD (0x00000008) |
---|
218 | #define MCF_MDHA_MDSR_BUSY (0x00000010) |
---|
219 | #define MCF_MDHA_MDSR_END (0x00000020) |
---|
220 | #define MCF_MDHA_MDSR_HSH (0x00000040) |
---|
221 | #define MCF_MDHA_MDSR_GNW (0x00000080) |
---|
222 | #define MCF_MDHA_MDSR_FS(x) (((x)&0x00000007)<<8) |
---|
223 | #define MCF_MDHA_MDSR_APD(x) (((x)&0x00000007)<<13) |
---|
224 | #define MCF_MDHA_MDSR_IFL(x) (((x)&0x000000FF)<<16) |
---|
225 | |
---|
226 | /* Bit definitions and macros for MCF_MDHA_MDISR */ |
---|
227 | #define MCF_MDHA_MDISR_IFO (0x00000001) |
---|
228 | #define MCF_MDHA_MDISR_NON (0x00000004) |
---|
229 | #define MCF_MDHA_MDISR_IME (0x00000010) |
---|
230 | #define MCF_MDHA_MDISR_IDS (0x00000020) |
---|
231 | #define MCF_MDHA_MDISR_RMDP (0x00000080) |
---|
232 | #define MCF_MDHA_MDISR_ERE (0x00000100) |
---|
233 | #define MCF_MDHA_MDISR_GTDS (0x00000200) |
---|
234 | |
---|
235 | /* Bit definitions and macros for MCF_MDHA_MDIMR */ |
---|
236 | #define MCF_MDHA_MDIMR_IFO (0x00000001) |
---|
237 | #define MCF_MDHA_MDIMR_NON (0x00000004) |
---|
238 | #define MCF_MDHA_MDIMR_IME (0x00000010) |
---|
239 | #define MCF_MDHA_MDIMR_IDS (0x00000020) |
---|
240 | #define MCF_MDHA_MDIMR_RMDP (0x00000080) |
---|
241 | #define MCF_MDHA_MDIMR_ERE (0x00000100) |
---|
242 | #define MCF_MDHA_MDIMR_GTDS (0x00000200) |
---|
243 | |
---|
244 | /* Bit definitions and macros for MCF_MDHA_MDDSR */ |
---|
245 | #define MCF_MDHA_MDDSR_DATASIZE(x) (((x)&0x1FFFFFFF)<<0) |
---|
246 | |
---|
247 | /* Bit definitions and macros for MCF_MDHA_MDIN */ |
---|
248 | #define MCF_MDHA_MDIN_DATAIN(x) (((x)&0xFFFFFFFF)<<0) |
---|
249 | |
---|
250 | /* Bit definitions and macros for MCF_MDHA_MDA0 */ |
---|
251 | #define MCF_MDHA_MDA0_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
252 | |
---|
253 | /* Bit definitions and macros for MCF_MDHA_MDB0 */ |
---|
254 | #define MCF_MDHA_MDB0_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
255 | |
---|
256 | /* Bit definitions and macros for MCF_MDHA_MDC0 */ |
---|
257 | #define MCF_MDHA_MDC0_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
258 | |
---|
259 | /* Bit definitions and macros for MCF_MDHA_MDD0 */ |
---|
260 | #define MCF_MDHA_MDD0_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
261 | |
---|
262 | /* Bit definitions and macros for MCF_MDHA_MDE0 */ |
---|
263 | #define MCF_MDHA_MDE0_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
264 | |
---|
265 | /* Bit definitions and macros for MCF_MDHA_MDMDS */ |
---|
266 | #define MCF_MDHA_MDMDS_DATASIZE(x) (((x)&0xFFFFFFFF)<<0) |
---|
267 | |
---|
268 | /* Bit definitions and macros for MCF_MDHA_MDA1 */ |
---|
269 | #define MCF_MDHA_MDA1_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
270 | |
---|
271 | /* Bit definitions and macros for MCF_MDHA_MDB1 */ |
---|
272 | #define MCF_MDHA_MDB1_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
273 | |
---|
274 | /* Bit definitions and macros for MCF_MDHA_MDC1 */ |
---|
275 | #define MCF_MDHA_MDC1_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
276 | |
---|
277 | /* Bit definitions and macros for MCF_MDHA_MDD1 */ |
---|
278 | #define MCF_MDHA_MDD1_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
279 | |
---|
280 | /* Bit definitions and macros for MCF_MDHA_MDE1 */ |
---|
281 | #define MCF_MDHA_MDE1_DATA(x) (((x)&0xFFFFFFFF)<<0) |
---|
282 | |
---|
283 | /********************************************************************* |
---|
284 | * |
---|
285 | * Symmetric Key Hardware Accelerator (SKHA) |
---|
286 | * |
---|
287 | *********************************************************************/ |
---|
288 | |
---|
289 | /* Register read/write macros */ |
---|
290 | #define MCF_SKHA_SKMR (*(vuint32*)(0xEC084000)) |
---|
291 | #define MCF_SKHA_SKCR (*(vuint32*)(0xEC084004)) |
---|
292 | #define MCF_SKHA_SKCMR (*(vuint32*)(0xEC084008)) |
---|
293 | #define MCF_SKHA_SKSR (*(vuint32*)(0xEC08400C)) |
---|
294 | #define MCF_SKHA_SKISR (*(vuint32*)(0xEC084010)) |
---|
295 | #define MCF_SKHA_SKIMR (*(vuint32*)(0xEC084014)) |
---|
296 | #define MCF_SKHA_SKKSR (*(vuint32*)(0xEC084018)) |
---|
297 | #define MCF_SKHA_SKDSR (*(vuint32*)(0xEC08401C)) |
---|
298 | #define MCF_SKHA_SKIN (*(vuint32*)(0xEC084020)) |
---|
299 | #define MCF_SKHA_SKOUT (*(vuint32*)(0xEC084024)) |
---|
300 | #define MCF_SKHA_SKK0 (*(vuint32*)(0xEC084030)) |
---|
301 | #define MCF_SKHA_SKK1 (*(vuint32*)(0xEC084034)) |
---|
302 | #define MCF_SKHA_SKK2 (*(vuint32*)(0xEC084038)) |
---|
303 | #define MCF_SKHA_SKK3 (*(vuint32*)(0xEC08403C)) |
---|
304 | #define MCF_SKHA_SKK4 (*(vuint32*)(0xEC084040)) |
---|
305 | #define MCF_SKHA_SKK5 (*(vuint32*)(0xEC084044)) |
---|
306 | #define MCF_SKHA_SKK(x) (*(vuint32*)(0xEC084030+((x)*0x004))) |
---|
307 | #define MCF_SKHA_SKC0 (*(vuint32*)(0xEC084070)) |
---|
308 | #define MCF_SKHA_SKC1 (*(vuint32*)(0xEC084074)) |
---|
309 | #define MCF_SKHA_SKC2 (*(vuint32*)(0xEC084078)) |
---|
310 | #define MCF_SKHA_SKC3 (*(vuint32*)(0xEC08407C)) |
---|
311 | #define MCF_SKHA_SKC4 (*(vuint32*)(0xEC084080)) |
---|
312 | #define MCF_SKHA_SKC5 (*(vuint32*)(0xEC084084)) |
---|
313 | #define MCF_SKHA_SKC6 (*(vuint32*)(0xEC084088)) |
---|
314 | #define MCF_SKHA_SKC7 (*(vuint32*)(0xEC08408C)) |
---|
315 | #define MCF_SKHA_SKC8 (*(vuint32*)(0xEC084090)) |
---|
316 | #define MCF_SKHA_SKC9 (*(vuint32*)(0xEC084094)) |
---|
317 | #define MCF_SKHA_SKC10 (*(vuint32*)(0xEC084098)) |
---|
318 | #define MCF_SKHA_SKC11 (*(vuint32*)(0xEC08409C)) |
---|
319 | #define MCF_SKHA_SKC(x) (*(vuint32*)(0xEC084070+((x)*0x004))) |
---|
320 | |
---|
321 | /* Bit definitions and macros for MCF_SKHA_SKMR */ |
---|
322 | #define MCF_SKHA_SKMR_ALG(x) (((x)&0x00000003)<<0) |
---|
323 | #define MCF_SKHA_SKMR_DIR (0x00000004) |
---|
324 | #define MCF_SKHA_SKMR_CM(x) (((x)&0x00000003)<<3) |
---|
325 | #define MCF_SKHA_SKMR_DKP (0x00000100) |
---|
326 | #define MCF_SKHA_SKMR_CTRM(x) (((x)&0x0000000F)<<9) |
---|
327 | #define MCF_SKHA_SKMR_CM_ECB (0x00000000) |
---|
328 | #define MCF_SKHA_SKMR_CM_CBC (0x00000008) |
---|
329 | #define MCF_SKHA_SKMR_CM_CTR (0x00000018) |
---|
330 | #define MCF_SKHA_SKMR_DIR_DEC (0x00000000) |
---|
331 | #define MCF_SKHA_SKMR_DIR_ENC (0x00000004) |
---|
332 | #define MCF_SKHA_SKMR_ALG_AES (0x00000000) |
---|
333 | #define MCF_SKHA_SKMR_ALG_DES (0x00000001) |
---|
334 | #define MCF_SKHA_SKMR_ALG_TDES (0x00000002) |
---|
335 | |
---|
336 | /* Bit definitions and macros for MCF_SKHA_SKCR */ |
---|
337 | #define MCF_SKHA_SKCR_IE (0x00000001) |
---|
338 | #define MCF_SKHA_SKCR_IDMA (0x00000002) |
---|
339 | #define MCF_SKHA_SKCR_ODMA (0x00000004) |
---|
340 | #define MCF_SKHA_SKCR_ENDIAN (0x00000008) |
---|
341 | #define MCF_SKHA_SKCR_IDMAL(x) (((x)&0x0000003F)<<16) |
---|
342 | #define MCF_SKHA_SKCR_ODMAL(x) (((x)&0x0000003F)<<24) |
---|
343 | |
---|
344 | /* Bit definitions and macros for MCF_SKHA_SKCMR */ |
---|
345 | #define MCF_SKHA_SKCMR_SWR (0x00000001) |
---|
346 | #define MCF_SKHA_SKCMR_RI (0x00000002) |
---|
347 | #define MCF_SKHA_SKCMR_CI (0x00000004) |
---|
348 | #define MCF_SKHA_SKCMR_GO (0x00000008) |
---|
349 | |
---|
350 | /* Bit definitions and macros for MCF_SKHA_SKSR */ |
---|
351 | #define MCF_SKHA_SKSR_INT (0x00000001) |
---|
352 | #define MCF_SKHA_SKSR_DONE (0x00000002) |
---|
353 | #define MCF_SKHA_SKSR_ERR (0x00000004) |
---|
354 | #define MCF_SKHA_SKSR_RD (0x00000008) |
---|
355 | #define MCF_SKHA_SKSR_BUSY (0x00000010) |
---|
356 | #define MCF_SKHA_SKSR_IFL(x) (((x)&0x000000FF)<<16) |
---|
357 | #define MCF_SKHA_SKSR_OFL(x) (((x)&0x000000FF)<<24) |
---|
358 | |
---|
359 | /* Bit definitions and macros for MCF_SKHA_SKISR */ |
---|
360 | #define MCF_SKHA_SKISR_IFO (0x00000001) |
---|
361 | #define MCF_SKHA_SKISR_OFU (0x00000002) |
---|
362 | #define MCF_SKHA_SKISR_NEIF (0x00000004) |
---|
363 | #define MCF_SKHA_SKISR_NEOF (0x00000008) |
---|
364 | #define MCF_SKHA_SKISR_IME (0x00000010) |
---|
365 | #define MCF_SKHA_SKISR_DSE (0x00000020) |
---|
366 | #define MCF_SKHA_SKISR_KSE (0x00000040) |
---|
367 | #define MCF_SKHA_SKISR_RMDP (0x00000080) |
---|
368 | #define MCF_SKHA_SKISR_ERE (0x00000100) |
---|
369 | #define MCF_SKHA_SKISR_KPE (0x00000200) |
---|
370 | #define MCF_SKHA_SKISR_KRE (0x00000400) |
---|
371 | #define MCF_SKHA_SKISR_DRL (0x00000800) |
---|
372 | |
---|
373 | /* Bit definitions and macros for MCF_SKHA_SKIMR */ |
---|
374 | #define MCF_SKHA_SKIMR_IFO (0x00000001) |
---|
375 | #define MCF_SKHA_SKIMR_OFU (0x00000002) |
---|
376 | #define MCF_SKHA_SKIMR_NEIF (0x00000004) |
---|
377 | #define MCF_SKHA_SKIMR_NEOF (0x00000008) |
---|
378 | #define MCF_SKHA_SKIMR_IME (0x00000010) |
---|
379 | #define MCF_SKHA_SKIMR_DSE (0x00000020) |
---|
380 | #define MCF_SKHA_SKIMR_KSE (0x00000040) |
---|
381 | #define MCF_SKHA_SKIMR_RMDP (0x00000080) |
---|
382 | #define MCF_SKHA_SKIMR_ERE (0x00000100) |
---|
383 | #define MCF_SKHA_SKIMR_KPE (0x00000200) |
---|
384 | #define MCF_SKHA_SKIMR_KRE (0x00000400) |
---|
385 | #define MCF_SKHA_SKIMR_DRL (0x00000800) |
---|
386 | |
---|
387 | /* Bit definitions and macros for MCF_SKHA_SKKSR */ |
---|
388 | #define MCF_SKHA_SKKSR_KEYSIZE(x) (((x)&0x0000003F)<<0) |
---|
389 | |
---|
390 | /* Bit definitions and macros for MCF_SKHA_SKDSR */ |
---|
391 | #define MCF_SKHA_SKDSR_DATASIZE(x) (((x)&0xFFFFFFFF)<<0) |
---|
392 | |
---|
393 | /* Bit definitions and macros for MCF_SKHA_SKIN */ |
---|
394 | #define MCF_SKHA_SKIN_DATAIN(x) (((x)&0xFFFFFFFF)<<0) |
---|
395 | |
---|
396 | /* Bit definitions and macros for MCF_SKHA_SKOUT */ |
---|
397 | #define MCF_SKHA_SKOUT_DATAOUT(x) (((x)&0xFFFFFFFF)<<0) |
---|
398 | |
---|
399 | /* Bit definitions and macros for MCF_SKHA_SKK */ |
---|
400 | #define MCF_SKHA_SKK_KEY(x) (((x)&0xFFFFFFFF)<<0) |
---|
401 | |
---|
402 | /* Bit definitions and macros for MCF_SKHA_SKC */ |
---|
403 | #define MCF_SKHA_SKC_CONTEXT(x) (((x)&0xFFFFFFFF)<<0) |
---|
404 | |
---|
405 | /********************************************************************* |
---|
406 | * |
---|
407 | * Random Number Generator (RNG) |
---|
408 | * |
---|
409 | *********************************************************************/ |
---|
410 | |
---|
411 | /* Register read/write macros */ |
---|
412 | #define MCF_RNG_RNGCR (*(vuint32*)(0xEC088000)) |
---|
413 | #define MCF_RNG_RNGSR (*(vuint32*)(0xEC088004)) |
---|
414 | #define MCF_RNG_RNGER (*(vuint32*)(0xEC088008)) |
---|
415 | #define MCF_RNG_RNGOUT (*(vuint32*)(0xEC08800C)) |
---|
416 | |
---|
417 | /* Bit definitions and macros for MCF_RNG_RNGCR */ |
---|
418 | #define MCF_RNG_RNGCR_GO (0x00000001) |
---|
419 | #define MCF_RNG_RNGCR_HA (0x00000002) |
---|
420 | #define MCF_RNG_RNGCR_IM (0x00000004) |
---|
421 | #define MCF_RNG_RNGCR_CI (0x00000008) |
---|
422 | |
---|
423 | /* Bit definitions and macros for MCF_RNG_RNGSR */ |
---|
424 | #define MCF_RNG_RNGSR_SV (0x00000001) |
---|
425 | #define MCF_RNG_RNGSR_LRS (0x00000002) |
---|
426 | #define MCF_RNG_RNGSR_FUF (0x00000004) |
---|
427 | #define MCF_RNG_RNGSR_EI (0x00000008) |
---|
428 | #define MCF_RNG_RNGSR_OFL(x) (((x)&0x000000FF)<<8) |
---|
429 | #define MCF_RNG_RNGSR_OFS(x) (((x)&0x000000FF)<<16) |
---|
430 | |
---|
431 | /* Bit definitions and macros for MCF_RNG_RNGER */ |
---|
432 | #define MCF_RNG_RNGER_ENTROPY(x) (((x)&0xFFFFFFFF)<<0) |
---|
433 | |
---|
434 | /* Bit definitions and macros for MCF_RNG_RNGOUT */ |
---|
435 | #define MCF_RNG_RNGOUT_OUTPUT(x) (((x)&0xFFFFFFFF)<<0) |
---|
436 | |
---|
437 | /********************************************************************* |
---|
438 | * |
---|
439 | * Power Management Module (PMM) |
---|
440 | * |
---|
441 | *********************************************************************/ |
---|
442 | |
---|
443 | /* Register read/write macros */ |
---|
444 | #define MCF_PMM_WCR (*(vuint8 *)(0xFC040013)) |
---|
445 | #define MCF_PMM_PPMSR0 (*(vuint8 *)(0xFC04002C)) |
---|
446 | #define MCF_PMM_PPMSR1 (*(vuint8 *)(0xFC04002E)) |
---|
447 | #define MCF_PMM_PPMCR0 (*(vuint8 *)(0xFC04002D)) |
---|
448 | #define MCF_PMM_PPMCR1 (*(vuint8 *)(0xFC04002F)) |
---|
449 | #define MCF_PMM_PPMHR0 (*(vuint32*)(0xFC040030)) |
---|
450 | #define MCF_PMM_PPMLR0 (*(vuint32*)(0xFC040034)) |
---|
451 | #define MCF_PMM_PPMHR1 (*(vuint32*)(0xFC040038)) |
---|
452 | #define MCF_PMM_LPCR (*(vuint8 *)(0xFC0A0007)) |
---|
453 | |
---|
454 | /* Bit definitions and macros for MCF_PMM_WCR */ |
---|
455 | #define MCF_PMM_WCR_PRILVL(x) (((x)&0x07)<<0) |
---|
456 | #define MCF_PMM_WCR_ENBWCR (0x80) |
---|
457 | |
---|
458 | /* Bit definitions and macros for MCF_PMM_PPMSR */ |
---|
459 | #define MCF_PMM_PPMSR_SMCD(x) (((x)&0x3F)<<0) |
---|
460 | #define MCF_PMM_PPMSR_SAMCD (0x40) |
---|
461 | |
---|
462 | /* Bit definitions and macros for MCF_PMM_PPMCR */ |
---|
463 | #define MCF_PMM_PPMCR_CMCD(x) (((x)&0x3F)<<0) |
---|
464 | #define MCF_PMM_PPMCR_CAMCD (0x40) |
---|
465 | |
---|
466 | /* Bit definitions and macros for MCF_PMM_PPMHR0 */ |
---|
467 | #define MCF_PMM_PPMHR0_CD32 (0x00000001) |
---|
468 | #define MCF_PMM_PPMHR0_CD33 (0x00000002) |
---|
469 | #define MCF_PMM_PPMHR0_CD34 (0x00000004) |
---|
470 | #define MCF_PMM_PPMHR0_CD35 (0x00000008) |
---|
471 | #define MCF_PMM_PPMHR0_CD36 (0x00000010) |
---|
472 | #define MCF_PMM_PPMHR0_CD37 (0x00000020) |
---|
473 | #define MCF_PMM_PPMHR0_CD38 (0x00000040) |
---|
474 | #define MCF_PMM_PPMHR0_CD40 (0x00000100) |
---|
475 | #define MCF_PMM_PPMHR0_CD41 (0x00000200) |
---|
476 | #define MCF_PMM_PPMHR0_CD42 (0x00000400) |
---|
477 | #define MCF_PMM_PPMHR0_CD43 (0x00000800) |
---|
478 | #define MCF_PMM_PPMHR0_CD44 (0x00001000) |
---|
479 | #define MCF_PMM_PPMHR0_CD45 (0x00002000) |
---|
480 | #define MCF_PMM_PPMHR0_CD46 (0x00004000) |
---|
481 | #define MCF_PMM_PPMHR0_CD47 (0x00008000) |
---|
482 | #define MCF_PMM_PPMHR0_CD48 (0x00010000) |
---|
483 | |
---|
484 | /* Bit definitions and macros for MCF_PMM_PPMLR0 */ |
---|
485 | #define MCF_PMM_PPMLR0_CD2 (0x00000004) |
---|
486 | #define MCF_PMM_PPMLR0_CD8 (0x00000100) |
---|
487 | #define MCF_PMM_PPMLR0_CD12 (0x00001000) |
---|
488 | #define MCF_PMM_PPMLR0_CD17 (0x00020000) |
---|
489 | #define MCF_PMM_PPMLR0_CD18 (0x00040000) |
---|
490 | #define MCF_PMM_PPMLR0_CD19 (0x00080000) |
---|
491 | #define MCF_PMM_PPMLR0_CD21 (0x00200000) |
---|
492 | #define MCF_PMM_PPMLR0_CD22 (0x00400000) |
---|
493 | #define MCF_PMM_PPMLR0_CD23 (0x00800000) |
---|
494 | #define MCF_PMM_PPMLR0_CD24 (0x01000000) |
---|
495 | #define MCF_PMM_PPMLR0_CD25 (0x02000000) |
---|
496 | #define MCF_PMM_PPMLR0_CD26 (0x04000000) |
---|
497 | #define MCF_PMM_PPMLR0_CD28 (0x10000000) |
---|
498 | #define MCF_PMM_PPMLR0_CD29 (0x20000000) |
---|
499 | #define MCF_PMM_PPMLR0_CD30 (0x40000000) |
---|
500 | #define MCF_PMM_PPMLR0_CD31 (0x80000000) |
---|
501 | |
---|
502 | /* Bit definitions and macros for MCF_PMM_PPMHR1 */ |
---|
503 | #define MCF_PMM_PPMHR1_CD32 (0x00000001) |
---|
504 | #define MCF_PMM_PPMHR1_CD33 (0x00000002) |
---|
505 | #define MCF_PMM_PPMHR1_CD34 (0x00000004) |
---|
506 | |
---|
507 | /* Bit definitions and macros for MCF_PMM_LPCR */ |
---|
508 | #define MCF_PMM_LPCR_STPMD(x) (((x)&0x03)<<3) |
---|
509 | #define MCF_PMM_LPCR_FWKUP (0x20) |
---|
510 | #define MCF_PMM_LPCR_LPMD(x) (((x)&0x03)<<6) |
---|
511 | #define MCF_PMM_LPCR_LPMD_RUN (0x00) |
---|
512 | #define MCF_PMM_LPCR_LPMD_DOZE (0x40) |
---|
513 | #define MCF_PMM_LPCR_LPMD_WAIT (0x80) |
---|
514 | #define MCF_PMM_LPCR_LPMD_STOP (0xC0) |
---|
515 | #define MCF_PMM_LPCR_STPMD_SYS_DISABLED (0x00) |
---|
516 | #define MCF_PMM_LPCR_STPMD_SYS_BUSCLK_DISABLED (0x04) |
---|
517 | #define MCF_PMM_LPCR_STPMD_ONLY_OSC_ENABLED (0x08) |
---|
518 | #define MCF_PMM_LPCR_STPMD_ALL_DISABLED (0x0C) |
---|
519 | |
---|
520 | /********************************************************************* |
---|
521 | * |
---|
522 | * Cross-bar switch (XBS) |
---|
523 | * |
---|
524 | *********************************************************************/ |
---|
525 | |
---|
526 | /* Register read/write macros */ |
---|
527 | #define MCF_XBS_PRS1 (*(vuint32*)(0xFC004100)) |
---|
528 | #define MCF_XBS_PRS2 (*(vuint32*)(0xFC004200)) |
---|
529 | #define MCF_XBS_PRS3 (*(vuint32*)(0xFC004300)) |
---|
530 | #define MCF_XBS_PRS4 (*(vuint32*)(0xFC004400)) |
---|
531 | #define MCF_XBS_PRS5 (*(vuint32*)(0xFC004500)) |
---|
532 | #define MCF_XBS_PRS6 (*(vuint32*)(0xFC004600)) |
---|
533 | #define MCF_XBS_PRS7 (*(vuint32*)(0xFC004700)) |
---|
534 | #define MCF_XBS_PRS(x) (*(vuint32*)(0xFC004100+((x-1)*0x100))) |
---|
535 | #define MCF_XBS_CRS1 (*(vuint32*)(0xFC004110)) |
---|
536 | #define MCF_XBS_CRS2 (*(vuint32*)(0xFC004210)) |
---|
537 | #define MCF_XBS_CRS3 (*(vuint32*)(0xFC004310)) |
---|
538 | #define MCF_XBS_CRS4 (*(vuint32*)(0xFC004410)) |
---|
539 | #define MCF_XBS_CRS5 (*(vuint32*)(0xFC004510)) |
---|
540 | #define MCF_XBS_CRS6 (*(vuint32*)(0xFC004610)) |
---|
541 | #define MCF_XBS_CRS7 (*(vuint32*)(0xFC004710)) |
---|
542 | #define MCF_XBS_CRS(x) (*(vuint32*)(0xFC004110+((x-1)*0x100))) |
---|
543 | |
---|
544 | /* Bit definitions and macros for MCF_XBS_PRS */ |
---|
545 | #define MCF_XBS_PRS_M0(x) (((x)&0x00000007)<<0) |
---|
546 | #define MCF_XBS_PRS_M1(x) (((x)&0x00000007)<<4) |
---|
547 | #define MCF_XBS_PRS_M2(x) (((x)&0x00000007)<<8) |
---|
548 | #define MCF_XBS_PRS_M4(x) (((x)&0x00000007)<<16) |
---|
549 | #define MCF_XBS_PRS_M5(x) (((x)&0x00000007)<<20) |
---|
550 | #define MCF_XBS_PRS_M6(x) (((x)&0x00000007)<<24) |
---|
551 | |
---|
552 | /* Bit definitions and macros for MCF_XBS_CRS */ |
---|
553 | #define MCF_XBS_CRS_PARK(x) (((x)&0x00000007)<<0) |
---|
554 | #define MCF_XBS_CRS_PCTL(x) (((x)&0x00000003)<<4) |
---|
555 | #define MCF_XBS_CRS_ARB (0x00000100) |
---|
556 | #define MCF_XBS_CRS_RO (0x80000000) |
---|
557 | #define MCF_XBS_CRS_PCTL_PARK_FIELD (0x00000000) |
---|
558 | #define MCF_XBS_CRS_PCTL_PARK_ON_LAST (0x00000010) |
---|
559 | #define MCF_XBS_CRS_PCTL_PARK_NO_MASTER (0x00000020) |
---|
560 | #define MCF_XBS_CRS_PCTL_PARK_CORE (0x00000000) |
---|
561 | #define MCF_XBS_CRS_PCTL_PARK_EDMA (0x00000001) |
---|
562 | #define MCF_XBS_CRS_PCTL_PARK_FEC (0x00000002) |
---|
563 | |
---|
564 | /********************************************************************* |
---|
565 | * |
---|
566 | * FlexBus Chip Selects (FBCS) |
---|
567 | * |
---|
568 | *********************************************************************/ |
---|
569 | |
---|
570 | /* Register read/write macros */ |
---|
571 | #define MCF_FBCS0_CSAR (*(vuint32*)(0xFC008000)) |
---|
572 | #define MCF_FBCS0_CSMR (*(vuint32*)(0xFC008004)) |
---|
573 | #define MCF_FBCS0_CSCR (*(vuint32*)(0xFC008008)) |
---|
574 | #define MCF_FBCS1_CSAR (*(vuint32*)(0xFC00800C)) |
---|
575 | #define MCF_FBCS1_CSMR (*(vuint32*)(0xFC008010)) |
---|
576 | #define MCF_FBCS1_CSCR (*(vuint32*)(0xFC008014)) |
---|
577 | #define MCF_FBCS2_CSAR (*(vuint32*)(0xFC008018)) |
---|
578 | #define MCF_FBCS2_CSMR (*(vuint32*)(0xFC00801C)) |
---|
579 | #define MCF_FBCS2_CSCR (*(vuint32*)(0xFC008020)) |
---|
580 | #define MCF_FBCS3_CSAR (*(vuint32*)(0xFC008024)) |
---|
581 | #define MCF_FBCS3_CSMR (*(vuint32*)(0xFC008028)) |
---|
582 | #define MCF_FBCS3_CSCR (*(vuint32*)(0xFC00802C)) |
---|
583 | #define MCF_FBCS4_CSAR (*(vuint32*)(0xFC008030)) |
---|
584 | #define MCF_FBCS4_CSMR (*(vuint32*)(0xFC008034)) |
---|
585 | #define MCF_FBCS4_CSCR (*(vuint32*)(0xFC008038)) |
---|
586 | #define MCF_FBCS5_CSAR (*(vuint32*)(0xFC00803C)) |
---|
587 | #define MCF_FBCS5_CSMR (*(vuint32*)(0xFC008040)) |
---|
588 | #define MCF_FBCS5_CSCR (*(vuint32*)(0xFC008044)) |
---|
589 | #define MCF_FBCS_CSAR(x) (*(vuint32*)(0xFC008000+((x)*0x00C))) |
---|
590 | #define MCF_FBCS_CSMR(x) (*(vuint32*)(0xFC008004+((x)*0x00C))) |
---|
591 | #define MCF_FBCS_CSCR(x) (*(vuint32*)(0xFC008008+((x)*0x00C))) |
---|
592 | |
---|
593 | /* Bit definitions and macros for MCF_FBCS_CSAR */ |
---|
594 | #define MCF_FBCS_CSAR_BA(x) ((x)&0xFFFF0000) |
---|
595 | |
---|
596 | /* Bit definitions and macros for MCF_FBCS_CSMR */ |
---|
597 | #define MCF_FBCS_CSMR_V (0x00000001) |
---|
598 | #define MCF_FBCS_CSMR_WP (0x00000100) |
---|
599 | #define MCF_FBCS_CSMR_BAM(x) (((x)&0x0000FFFF)<<16) |
---|
600 | #define MCF_FBCS_CSMR_BAM_4G (0xFFFF0000) |
---|
601 | #define MCF_FBCS_CSMR_BAM_2G (0x7FFF0000) |
---|
602 | #define MCF_FBCS_CSMR_BAM_1G (0x3FFF0000) |
---|
603 | #define MCF_FBCS_CSMR_BAM_1024M (0x3FFF0000) |
---|
604 | #define MCF_FBCS_CSMR_BAM_512M (0x1FFF0000) |
---|
605 | #define MCF_FBCS_CSMR_BAM_256M (0x0FFF0000) |
---|
606 | #define MCF_FBCS_CSMR_BAM_128M (0x07FF0000) |
---|
607 | #define MCF_FBCS_CSMR_BAM_64M (0x03FF0000) |
---|
608 | #define MCF_FBCS_CSMR_BAM_32M (0x01FF0000) |
---|
609 | #define MCF_FBCS_CSMR_BAM_16M (0x00FF0000) |
---|
610 | #define MCF_FBCS_CSMR_BAM_8M (0x007F0000) |
---|
611 | #define MCF_FBCS_CSMR_BAM_4M (0x003F0000) |
---|
612 | #define MCF_FBCS_CSMR_BAM_2M (0x001F0000) |
---|
613 | #define MCF_FBCS_CSMR_BAM_1M (0x000F0000) |
---|
614 | #define MCF_FBCS_CSMR_BAM_1024K (0x000F0000) |
---|
615 | #define MCF_FBCS_CSMR_BAM_512K (0x00070000) |
---|
616 | #define MCF_FBCS_CSMR_BAM_256K (0x00030000) |
---|
617 | #define MCF_FBCS_CSMR_BAM_128K (0x00010000) |
---|
618 | #define MCF_FBCS_CSMR_BAM_64K (0x00000000) |
---|
619 | |
---|
620 | /* Bit definitions and macros for MCF_FBCS_CSCR */ |
---|
621 | #define MCF_FBCS_CSCR_BSTW (0x00000008) |
---|
622 | #define MCF_FBCS_CSCR_BSTR (0x00000010) |
---|
623 | #define MCF_FBCS_CSCR_BEM (0x00000020) |
---|
624 | #define MCF_FBCS_CSCR_PS(x) (((x)&0x00000003)<<6) |
---|
625 | #define MCF_FBCS_CSCR_AA (0x00000100) |
---|
626 | #define MCF_FBCS_CSCR_SBM (0x00000200) |
---|
627 | #define MCF_FBCS_CSCR_WS(x) (((x)&0x0000003F)<<10) |
---|
628 | #define MCF_FBCS_CSCR_WRAH(x) (((x)&0x00000003)<<16) |
---|
629 | #define MCF_FBCS_CSCR_RDAH(x) (((x)&0x00000003)<<18) |
---|
630 | #define MCF_FBCS_CSCR_ASET(x) (((x)&0x00000003)<<20) |
---|
631 | #define MCF_FBCS_CSCR_SWSEN (0x00800000) |
---|
632 | #define MCF_FBCS_CSCR_SWS(x) (((x)&0x0000003F)<<26) |
---|
633 | #define MCF_FBCS_CSCR_PS_8 (0x00000040) |
---|
634 | #define MCF_FBCS_CSCR_PS_16 (0x00000080) |
---|
635 | #define MCF_FBCS_CSCR_PS_32 (0x00000000) |
---|
636 | |
---|
637 | /********************************************************************* |
---|
638 | * |
---|
639 | * FlexCAN Module (CAN) |
---|
640 | * |
---|
641 | *********************************************************************/ |
---|
642 | |
---|
643 | /* Register read/write macros */ |
---|
644 | #define MCF_CAN_CANMCR (*(vuint32*)(0xFC020000)) |
---|
645 | #define MCF_CAN_CANCTRL (*(vuint32*)(0xFC020004)) |
---|
646 | #define MCF_CAN_TIMER (*(vuint32*)(0xFC020008)) |
---|
647 | #define MCF_CAN_RXGMASK (*(vuint32*)(0xFC020010)) |
---|
648 | #define MCF_CAN_RX14MASK (*(vuint32*)(0xFC020014)) |
---|
649 | #define MCF_CAN_RX15MASK (*(vuint32*)(0xFC020018)) |
---|
650 | #define MCF_CAN_ERRCNT (*(vuint32*)(0xFC02001C)) |
---|
651 | #define MCF_CAN_ERRSTAT (*(vuint32*)(0xFC020020)) |
---|
652 | #define MCF_CAN_IMASK (*(vuint32*)(0xFC020028)) |
---|
653 | #define MCF_CAN_IFLAG (*(vuint32*)(0xFC020030)) |
---|
654 | |
---|
655 | /* Bit definitions and macros for MCF_CAN_CANMCR */ |
---|
656 | #define MCF_CAN_CANMCR_MAXMB(x) (((x)&0x0000000F)<<0) |
---|
657 | #define MCF_CAN_CANMCR_LPMACK (0x00100000) |
---|
658 | #define MCF_CAN_CANMCR_SUPV (0x00800000) |
---|
659 | #define MCF_CAN_CANMCR_FRZACK (0x01000000) |
---|
660 | #define MCF_CAN_CANMCR_SOFTRST (0x02000000) |
---|
661 | #define MCF_CAN_CANMCR_NOTRDY (0x08000000) |
---|
662 | #define MCF_CAN_CANMCR_HALT (0x10000000) |
---|
663 | #define MCF_CAN_CANMCR_FRZ (0x40000000) |
---|
664 | #define MCF_CAN_CANMCR_MDIS (0x80000000) |
---|
665 | |
---|
666 | /* Bit definitions and macros for MCF_CAN_CANCTRL */ |
---|
667 | #define MCF_CAN_CANCTRL_PROPSEG(x) (((x)&0x00000007)<<0) |
---|
668 | #define MCF_CAN_CANCTRL_LOM (0x00000008) |
---|
669 | #define MCF_CAN_CANCTRL_LBUF (0x00000010) |
---|
670 | #define MCF_CAN_CANCTRL_TSYNC (0x00000020) |
---|
671 | #define MCF_CAN_CANCTRL_BOFFREC (0x00000040) |
---|
672 | #define MCF_CAN_CANCTRL_SAMP (0x00000080) |
---|
673 | #define MCF_CAN_CANCTRL_LPB (0x00001000) |
---|
674 | #define MCF_CAN_CANCTRL_CLKSRC (0x00002000) |
---|
675 | #define MCF_CAN_CANCTRL_ERRMSK (0x00004000) |
---|
676 | #define MCF_CAN_CANCTRL_BOFFMSK (0x00008000) |
---|
677 | #define MCF_CAN_CANCTRL_PSEG2(x) (((x)&0x00000007)<<16) |
---|
678 | #define MCF_CAN_CANCTRL_PSEG1(x) (((x)&0x00000007)<<19) |
---|
679 | #define MCF_CAN_CANCTRL_RJW(x) (((x)&0x00000003)<<22) |
---|
680 | #define MCF_CAN_CANCTRL_PRESDIV(x) (((x)&0x000000FF)<<24) |
---|
681 | |
---|
682 | /* Bit definitions and macros for MCF_CAN_TIMER */ |
---|
683 | #define MCF_CAN_TIMER_TIMER(x) (((x)&0x0000FFFF)<<0) |
---|
684 | |
---|
685 | /* Bit definitions and macros for MCF_CAN_RXGMASK */ |
---|
686 | #define MCF_CAN_RXGMASK_MI(x) (((x)&0x1FFFFFFF)<<0) |
---|
687 | |
---|
688 | /* Bit definitions and macros for MCF_CAN_RX14MASK */ |
---|
689 | #define MCF_CAN_RX14MASK_MI(x) (((x)&0x1FFFFFFF)<<0) |
---|
690 | |
---|
691 | /* Bit definitions and macros for MCF_CAN_RX15MASK */ |
---|
692 | #define MCF_CAN_RX15MASK_MI(x) (((x)&0x1FFFFFFF)<<0) |
---|
693 | |
---|
694 | /* Bit definitions and macros for MCF_CAN_ERRCNT */ |
---|
695 | #define MCF_CAN_ERRCNT_TXECTR(x) (((x)&0x000000FF)<<0) |
---|
696 | #define MCF_CAN_ERRCNT_RXECTR(x) (((x)&0x000000FF)<<8) |
---|
697 | |
---|
698 | /* Bit definitions and macros for MCF_CAN_ERRSTAT */ |
---|
699 | #define MCF_CAN_ERRSTAT_WAKINT (0x00000001) |
---|
700 | #define MCF_CAN_ERRSTAT_ERRINT (0x00000002) |
---|
701 | #define MCF_CAN_ERRSTAT_BOFFINT (0x00000004) |
---|
702 | #define MCF_CAN_ERRSTAT_FLTCONF(x) (((x)&0x00000003)<<4) |
---|
703 | #define MCF_CAN_ERRSTAT_TXRX (0x00000040) |
---|
704 | #define MCF_CAN_ERRSTAT_IDLE (0x00000080) |
---|
705 | #define MCF_CAN_ERRSTAT_RXWRN (0x00000100) |
---|
706 | #define MCF_CAN_ERRSTAT_TXWRN (0x00000200) |
---|
707 | #define MCF_CAN_ERRSTAT_STFERR (0x00000400) |
---|
708 | #define MCF_CAN_ERRSTAT_FRMERR (0x00000800) |
---|
709 | #define MCF_CAN_ERRSTAT_CRCERR (0x00001000) |
---|
710 | #define MCF_CAN_ERRSTAT_ACKERR (0x00002000) |
---|
711 | #define MCF_CAN_ERRSTAT_BITERR(x) (((x)&0x00000003)<<14) |
---|
712 | #define MCF_CAN_ERRSTAT_FLTCONF_ACTIVE (0x00000000) |
---|
713 | #define MCF_CAN_ERRSTAT_FLTCONF_PASSIVE (0x00000010) |
---|
714 | #define MCF_CAN_ERRSTAT_FLTCONF_BUSOFF (0x00000020) |
---|
715 | |
---|
716 | /* Bit definitions and macros for MCF_CAN_IMASK */ |
---|
717 | #define MCF_CAN_IMASK_BUF0M (0x00000001) |
---|
718 | #define MCF_CAN_IMASK_BUF1M (0x00000002) |
---|
719 | #define MCF_CAN_IMASK_BUF2M (0x00000004) |
---|
720 | #define MCF_CAN_IMASK_BUF3M (0x00000008) |
---|
721 | #define MCF_CAN_IMASK_BUF4M (0x00000010) |
---|
722 | #define MCF_CAN_IMASK_BUF5M (0x00000020) |
---|
723 | #define MCF_CAN_IMASK_BUF6M (0x00000040) |
---|
724 | #define MCF_CAN_IMASK_BUF7M (0x00000080) |
---|
725 | #define MCF_CAN_IMASK_BUF8M (0x00000100) |
---|
726 | #define MCF_CAN_IMASK_BUF9M (0x00000200) |
---|
727 | #define MCF_CAN_IMASK_BUF10M (0x00000400) |
---|
728 | #define MCF_CAN_IMASK_BUF11M (0x00000800) |
---|
729 | #define MCF_CAN_IMASK_BUF12M (0x00001000) |
---|
730 | #define MCF_CAN_IMASK_BUF13M (0x00002000) |
---|
731 | #define MCF_CAN_IMASK_BUF14M (0x00004000) |
---|
732 | #define MCF_CAN_IMASK_BUF15M (0x00008000) |
---|
733 | #define MCF_CAN_IMASK_BUF(x) (1<<x) |
---|
734 | |
---|
735 | /* Bit definitions and macros for MCF_CAN_IFLAG */ |
---|
736 | #define MCF_CAN_IFLAG_BUF0I (0x00000001) |
---|
737 | #define MCF_CAN_IFLAG_BUF1I (0x00000002) |
---|
738 | #define MCF_CAN_IFLAG_BUF2I (0x00000004) |
---|
739 | #define MCF_CAN_IFLAG_BUF3I (0x00000008) |
---|
740 | #define MCF_CAN_IFLAG_BUF4I (0x00000010) |
---|
741 | #define MCF_CAN_IFLAG_BUF5I (0x00000020) |
---|
742 | #define MCF_CAN_IFLAG_BUF6I (0x00000040) |
---|
743 | #define MCF_CAN_IFLAG_BUF7I (0x00000080) |
---|
744 | #define MCF_CAN_IFLAG_BUF8I (0x00000100) |
---|
745 | #define MCF_CAN_IFLAG_BUF9I (0x00000200) |
---|
746 | #define MCF_CAN_IFLAG_BUF10I (0x00000400) |
---|
747 | #define MCF_CAN_IFLAG_BUF11I (0x00000800) |
---|
748 | #define MCF_CAN_IFLAG_BUF12I (0x00001000) |
---|
749 | #define MCF_CAN_IFLAG_BUF13I (0x00002000) |
---|
750 | #define MCF_CAN_IFLAG_BUF14I (0x00004000) |
---|
751 | #define MCF_CAN_IFLAG_BUF15I (0x00008000) |
---|
752 | #define MCF_CAN_IFLAG_BUF(x) (1<<x) |
---|
753 | |
---|
754 | /********************************************************************* |
---|
755 | * |
---|
756 | * Fast Ethernet Controller (FEC) |
---|
757 | * |
---|
758 | *********************************************************************/ |
---|
759 | |
---|
760 | /* Register read/write macros */ |
---|
761 | #define MCF_FEC_EIR (*(vuint32*)(0xFC030004)) |
---|
762 | #define MCF_FEC_EIMR (*(vuint32*)(0xFC030008)) |
---|
763 | #define MCF_FEC_RDAR (*(vuint32*)(0xFC030010)) |
---|
764 | #define MCF_FEC_TDAR (*(vuint32*)(0xFC030014)) |
---|
765 | #define MCF_FEC_ECR (*(vuint32*)(0xFC030024)) |
---|
766 | #define MCF_FEC_MMFR (*(vuint32*)(0xFC030040)) |
---|
767 | #define MCF_FEC_MSCR (*(vuint32*)(0xFC030044)) |
---|
768 | #define MCF_FEC_MIBC (*(vuint32*)(0xFC030064)) |
---|
769 | #define MCF_FEC_RCR (*(vuint32*)(0xFC030084)) |
---|
770 | #define MCF_FEC_TCR (*(vuint32*)(0xFC0300C4)) |
---|
771 | #define MCF_FEC_PALR (*(vuint32*)(0xFC0300E4)) |
---|
772 | #define MCF_FEC_PAUR (*(vuint32*)(0xFC0300E8)) |
---|
773 | #define MCF_FEC_OPD (*(vuint32*)(0xFC0300EC)) |
---|
774 | #define MCF_FEC_IAUR (*(vuint32*)(0xFC030118)) |
---|
775 | #define MCF_FEC_IALR (*(vuint32*)(0xFC03011C)) |
---|
776 | #define MCF_FEC_GAUR (*(vuint32*)(0xFC030120)) |
---|
777 | #define MCF_FEC_GALR (*(vuint32*)(0xFC030124)) |
---|
778 | #define MCF_FEC_TFWR (*(vuint32*)(0xFC030144)) |
---|
779 | #define MCF_FEC_FRBR (*(vuint32*)(0xFC03014C)) |
---|
780 | #define MCF_FEC_FRSR (*(vuint32*)(0xFC030150)) |
---|
781 | #define MCF_FEC_ERDSR (*(vuint32*)(0xFC030180)) |
---|
782 | #define MCF_FEC_ETDSR (*(vuint32*)(0xFC030184)) |
---|
783 | #define MCF_FEC_EMRBR (*(vuint32*)(0xFC030188)) |
---|
784 | #define MCF_FEC_RMON_T_DROP (*(vuint32*)(0xFC030200)) |
---|
785 | #define MCF_FEC_RMON_T_PACKETS (*(vuint32*)(0xFC030204)) |
---|
786 | #define MCF_FEC_RMON_T_BC_PKT (*(vuint32*)(0xFC030208)) |
---|
787 | #define MCF_FEC_RMON_T_MC_PKT (*(vuint32*)(0xFC03020C)) |
---|
788 | #define MCF_FEC_RMON_T_CRC_ALIGN (*(vuint32*)(0xFC030210)) |
---|
789 | #define MCF_FEC_RMON_T_UNDERSIZE (*(vuint32*)(0xFC030214)) |
---|
790 | #define MCF_FEC_RMON_T_OVERSIZE (*(vuint32*)(0xFC030218)) |
---|
791 | #define MCF_FEC_RMON_T_FRAG (*(vuint32*)(0xFC03021C)) |
---|
792 | #define MCF_FEC_RMON_T_JAB (*(vuint32*)(0xFC030220)) |
---|
793 | #define MCF_FEC_RMON_T_COL (*(vuint32*)(0xFC030224)) |
---|
794 | #define MCF_FEC_RMON_T_P64 (*(vuint32*)(0xFC030228)) |
---|
795 | #define MCF_FEC_RMON_T_P65TO127 (*(vuint32*)(0xFC03022C)) |
---|
796 | #define MCF_FEC_RMON_T_P128TO255 (*(vuint32*)(0xFC030230)) |
---|
797 | #define MCF_FEC_RMON_T_P256TO511 (*(vuint32*)(0xFC030234)) |
---|
798 | #define MCF_FEC_RMON_T_P512TO1023 (*(vuint32*)(0xFC030238)) |
---|
799 | #define MCF_FEC_RMON_T_P1024TO2047 (*(vuint32*)(0xFC03023C)) |
---|
800 | #define MCF_FEC_RMON_T_P_GTE2048 (*(vuint32*)(0xFC030240)) |
---|
801 | #define MCF_FEC_RMON_T_OCTETS (*(vuint32*)(0xFC030244)) |
---|
802 | #define MCF_FEC_IEEE_T_DROP (*(vuint32*)(0xFC030248)) |
---|
803 | #define MCF_FEC_IEEE_T_FRAME_OK (*(vuint32*)(0xFC03024C)) |
---|
804 | #define MCF_FEC_IEEE_T_1COL (*(vuint32*)(0xFC030250)) |
---|
805 | #define MCF_FEC_IEEE_T_MCOL (*(vuint32*)(0xFC030254)) |
---|
806 | #define MCF_FEC_IEEE_T_DEF (*(vuint32*)(0xFC030258)) |
---|
807 | #define MCF_FEC_IEEE_T_LCOL (*(vuint32*)(0xFC03025C)) |
---|
808 | #define MCF_FEC_IEEE_T_EXCOL (*(vuint32*)(0xFC030260)) |
---|
809 | #define MCF_FEC_IEEE_T_MACERR (*(vuint32*)(0xFC030264)) |
---|
810 | #define MCF_FEC_IEEE_T_CSERR (*(vuint32*)(0xFC030268)) |
---|
811 | #define MCF_FEC_IEEE_T_SQE (*(vuint32*)(0xFC03026C)) |
---|
812 | #define MCF_FEC_IEEE_T_FDXFC (*(vuint32*)(0xFC030270)) |
---|
813 | #define MCF_FEC_IEEE_T_OCTETS_OK (*(vuint32*)(0xFC030274)) |
---|
814 | #define MCF_FEC_RMON_R_PACKETS (*(vuint32*)(0xFC030284)) |
---|
815 | #define MCF_FEC_RMON_R_BC_PKT (*(vuint32*)(0xFC030288)) |
---|
816 | #define MCF_FEC_RMON_R_MC_PKT (*(vuint32*)(0xFC03028C)) |
---|
817 | #define MCF_FEC_RMON_R_CRC_ALIGN (*(vuint32*)(0xFC030290)) |
---|
818 | #define MCF_FEC_RMON_R_UNDERSIZE (*(vuint32*)(0xFC030294)) |
---|
819 | #define MCF_FEC_RMON_R_OVERSIZE (*(vuint32*)(0xFC030298)) |
---|
820 | #define MCF_FEC_RMON_R_FRAG (*(vuint32*)(0xFC03029C)) |
---|
821 | #define MCF_FEC_RMON_R_JAB (*(vuint32*)(0xFC0302A0)) |
---|
822 | #define MCF_FEC_RMON_R_RESVD_0 (*(vuint32*)(0xFC0302A4)) |
---|
823 | #define MCF_FEC_RMON_R_P64 (*(vuint32*)(0xFC0302A8)) |
---|
824 | #define MCF_FEC_RMON_R_P65TO127 (*(vuint32*)(0xFC0302AC)) |
---|
825 | #define MCF_FEC_RMON_R_P128TO255 (*(vuint32*)(0xFC0302B0)) |
---|
826 | #define MCF_FEC_RMON_R_P256TO511 (*(vuint32*)(0xFC0302B4)) |
---|
827 | #define MCF_FEC_RMON_R_512TO1023 (*(vuint32*)(0xFC0302B8)) |
---|
828 | #define MCF_FEC_RMON_R_P_GTE2048 (*(vuint32*)(0xFC0302C0)) |
---|
829 | #define MCF_FEC_RMON_R_1024TO2047 (*(vuint32*)(0xFC0302BC)) |
---|
830 | #define MCF_FEC_RMON_R_OCTETS (*(vuint32*)(0xFC0302C4)) |
---|
831 | #define MCF_FEC_IEEE_R_DROP (*(vuint32*)(0xFC0302C8)) |
---|
832 | #define MCF_FEC_IEEE_R_FRAME_OK (*(vuint32*)(0xFC0302CC)) |
---|
833 | #define MCF_FEC_IEEE_R_CRC (*(vuint32*)(0xFC0302D0)) |
---|
834 | #define MCF_FEC_IEEE_R_ALIGN (*(vuint32*)(0xFC0302D4)) |
---|
835 | #define MCF_FEC_IEEE_R_MACERR (*(vuint32*)(0xFC0302D8)) |
---|
836 | #define MCF_FEC_IEEE_R_FDXFC (*(vuint32*)(0xFC0302DC)) |
---|
837 | #define MCF_FEC_IEEE_R_OCTETS_OK (*(vuint32*)(0xFC0302E0)) |
---|
838 | |
---|
839 | /* Bit definitions and macros for MCF_FEC_EIR */ |
---|
840 | #define MCF_FEC_EIR_UN (0x00080000) |
---|
841 | #define MCF_FEC_EIR_RL (0x00100000) |
---|
842 | #define MCF_FEC_EIR_LC (0x00200000) |
---|
843 | #define MCF_FEC_EIR_EBERR (0x00400000) |
---|
844 | #define MCF_FEC_EIR_MII (0x00800000) |
---|
845 | #define MCF_FEC_EIR_RXB (0x01000000) |
---|
846 | #define MCF_FEC_EIR_RXF (0x02000000) |
---|
847 | #define MCF_FEC_EIR_TXB (0x04000000) |
---|
848 | #define MCF_FEC_EIR_TXF (0x08000000) |
---|
849 | #define MCF_FEC_EIR_GRA (0x10000000) |
---|
850 | #define MCF_FEC_EIR_BABT (0x20000000) |
---|
851 | #define MCF_FEC_EIR_BABR (0x40000000) |
---|
852 | #define MCF_FEC_EIR_HBERR (0x80000000) |
---|
853 | #define MCF_FEC_EIR_CLEAR_ALL (0xFFFFFFFF) |
---|
854 | |
---|
855 | /* Bit definitions and macros for MCF_FEC_EIMR */ |
---|
856 | #define MCF_FEC_EIMR_UN (0x00080000) |
---|
857 | #define MCF_FEC_EIMR_RL (0x00100000) |
---|
858 | #define MCF_FEC_EIMR_LC (0x00200000) |
---|
859 | #define MCF_FEC_EIMR_EBERR (0x00400000) |
---|
860 | #define MCF_FEC_EIMR_MII (0x00800000) |
---|
861 | #define MCF_FEC_EIMR_RXB (0x01000000) |
---|
862 | #define MCF_FEC_EIMR_RXF (0x02000000) |
---|
863 | #define MCF_FEC_EIMR_TXB (0x04000000) |
---|
864 | #define MCF_FEC_EIMR_TXF (0x08000000) |
---|
865 | #define MCF_FEC_EIMR_GRA (0x10000000) |
---|
866 | #define MCF_FEC_EIMR_BABT (0x20000000) |
---|
867 | #define MCF_FEC_EIMR_BABR (0x40000000) |
---|
868 | #define MCF_FEC_EIMR_HBERR (0x80000000) |
---|
869 | #define MCF_FEC_EIMR_MASK_ALL (0x00000000) |
---|
870 | #define MCF_FEC_EIMR_UNMASK_ALL (0xFFFFFFFF) |
---|
871 | |
---|
872 | /* Bit definitions and macros for MCF_FEC_RDAR */ |
---|
873 | #define MCF_FEC_RDAR_R_DES_ACTIVE (0x01000000) |
---|
874 | |
---|
875 | /* Bit definitions and macros for MCF_FEC_TDAR */ |
---|
876 | #define MCF_FEC_TDAR_X_DES_ACTIVE (0x01000000) |
---|
877 | |
---|
878 | /* Bit definitions and macros for MCF_FEC_ECR */ |
---|
879 | #define MCF_FEC_ECR_RESET (0x00000001) |
---|
880 | #define MCF_FEC_ECR_ETHER_EN (0x00000002) |
---|
881 | |
---|
882 | /* Bit definitions and macros for MCF_FEC_MMFR */ |
---|
883 | #define MCF_FEC_MMFR_DATA(x) (((x)&0x0000FFFF)<<0) |
---|
884 | #define MCF_FEC_MMFR_TA(x) (((x)&0x00000003)<<16) |
---|
885 | #define MCF_FEC_MMFR_RA(x) (((x)&0x0000001F)<<18) |
---|
886 | #define MCF_FEC_MMFR_PA(x) (((x)&0x0000001F)<<23) |
---|
887 | #define MCF_FEC_MMFR_OP(x) (((x)&0x00000003)<<28) |
---|
888 | #define MCF_FEC_MMFR_ST(x) (((x)&0x00000003)<<30) |
---|
889 | #define MCF_FEC_MMFR_ST_01 (0x40000000) |
---|
890 | #define MCF_FEC_MMFR_OP_READ (0x20000000) |
---|
891 | #define MCF_FEC_MMFR_OP_WRITE (0x10000000) |
---|
892 | #define MCF_FEC_MMFR_TA_10 (0x00020000) |
---|
893 | |
---|
894 | /* Bit definitions and macros for MCF_FEC_MSCR */ |
---|
895 | #define MCF_FEC_MSCR_MII_SPEED(x) (((x)&0x0000003F)<<1) |
---|
896 | #define MCF_FEC_MSCR_DIS_PREAMBLE (0x00000080) |
---|
897 | |
---|
898 | /* Bit definitions and macros for MCF_FEC_MIBC */ |
---|
899 | #define MCF_FEC_MIBC_MIB_IDLE (0x40000000) |
---|
900 | #define MCF_FEC_MIBC_MIB_DISABLE (0x80000000) |
---|
901 | |
---|
902 | /* Bit definitions and macros for MCF_FEC_RCR */ |
---|
903 | #define MCF_FEC_RCR_LOOP (0x00000001) |
---|
904 | #define MCF_FEC_RCR_DRT (0x00000002) |
---|
905 | #define MCF_FEC_RCR_MII_MODE (0x00000004) |
---|
906 | #define MCF_FEC_RCR_PROM (0x00000008) |
---|
907 | #define MCF_FEC_RCR_BC_REJ (0x00000010) |
---|
908 | #define MCF_FEC_RCR_FCE (0x00000020) |
---|
909 | #define MCF_FEC_RCR_MAX_FL(x) (((x)&0x000007FF)<<16) |
---|
910 | |
---|
911 | /* Bit definitions and macros for MCF_FEC_TCR */ |
---|
912 | #define MCF_FEC_TCR_GTS (0x00000001) |
---|
913 | #define MCF_FEC_TCR_HBC (0x00000002) |
---|
914 | #define MCF_FEC_TCR_FDEN (0x00000004) |
---|
915 | #define MCF_FEC_TCR_TFC_PAUSE (0x00000008) |
---|
916 | #define MCF_FEC_TCR_RFC_PAUSE (0x00000010) |
---|
917 | |
---|
918 | /* Bit definitions and macros for MCF_FEC_PALR */ |
---|
919 | #define MCF_FEC_PALR_PADDR1(x) (((x)&0xFFFFFFFF)<<0) |
---|
920 | |
---|
921 | /* Bit definitions and macros for MCF_FEC_PAUR */ |
---|
922 | #define MCF_FEC_PAUR_TYPE(x) (((x)&0x0000FFFF)<<0) |
---|
923 | #define MCF_FEC_PAUR_PADDR2(x) (((x)&0x0000FFFF)<<16) |
---|
924 | |
---|
925 | /* Bit definitions and macros for MCF_FEC_OPD */ |
---|
926 | #define MCF_FEC_OPD_PAUSE_DUR(x) (((x)&0x0000FFFF)<<0) |
---|
927 | #define MCF_FEC_OPD_OPCODE(x) (((x)&0x0000FFFF)<<16) |
---|
928 | |
---|
929 | /* Bit definitions and macros for MCF_FEC_IAUR */ |
---|
930 | #define MCF_FEC_IAUR_IADDR1(x) (((x)&0xFFFFFFFF)<<0) |
---|
931 | |
---|
932 | /* Bit definitions and macros for MCF_FEC_IALR */ |
---|
933 | #define MCF_FEC_IALR_IADDR2(x) (((x)&0xFFFFFFFF)<<0) |
---|
934 | |
---|
935 | /* Bit definitions and macros for MCF_FEC_GAUR */ |
---|
936 | #define MCF_FEC_GAUR_GADDR1(x) (((x)&0xFFFFFFFF)<<0) |
---|
937 | |
---|
938 | /* Bit definitions and macros for MCF_FEC_GALR */ |
---|
939 | #define MCF_FEC_GALR_GADDR2(x) (((x)&0xFFFFFFFF)<<0) |
---|
940 | |
---|
941 | /* Bit definitions and macros for MCF_FEC_TFWR */ |
---|
942 | #define MCF_FEC_TFWR_X_WMRK(x) (((x)&0x00000003)<<0) |
---|
943 | |
---|
944 | /* Bit definitions and macros for MCF_FEC_FRBR */ |
---|
945 | #define MCF_FEC_FRBR_R_BOUND(x) (((x)&0x000000FF)<<2) |
---|
946 | |
---|
947 | /* Bit definitions and macros for MCF_FEC_FRSR */ |
---|
948 | #define MCF_FEC_FRSR_R_FSTART(x) (((x)&0x000000FF)<<2) |
---|
949 | |
---|
950 | /* Bit definitions and macros for MCF_FEC_ERDSR */ |
---|
951 | #define MCF_FEC_ERDSR_R_DES_START(x) (((x)&0x3FFFFFFF)<<2) |
---|
952 | |
---|
953 | /* Bit definitions and macros for MCF_FEC_ETDSR */ |
---|
954 | #define MCF_FEC_ETDSR_X_DES_START(x) (((x)&0x3FFFFFFF)<<2) |
---|
955 | |
---|
956 | /* Bit definitions and macros for MCF_FEC_EMRBR */ |
---|
957 | #define MCF_FEC_EMRBR_R_BUF_SIZE(x) (((x)&0x0000007F)<<4) |
---|
958 | |
---|
959 | #define MCF_FEC_TxBD_R 0x8000 |
---|
960 | #define MCF_FEC_TxBD_BUSY 0x4000 |
---|
961 | #define MCF_FEC_TxBD_TO1 0x4000 |
---|
962 | #define MCF_FEC_TxBD_W 0x2000 |
---|
963 | #define MCF_FEC_TxBD_TO2 0x1000 |
---|
964 | #define MCF_FEC_TxBD_FIRST 0x1000 |
---|
965 | #define MCF_FEC_TxBD_L 0x0800 |
---|
966 | #define MCF_FEC_TxBD_TC 0x0400 |
---|
967 | #define MCF_FEC_TxBD_DEF 0x0200 |
---|
968 | #define MCF_FEC_TxBD_HB 0x0100 |
---|
969 | #define MCF_FEC_TxBD_LC 0x0080 |
---|
970 | #define MCF_FEC_TxBD_RL 0x0040 |
---|
971 | #define MCF_FEC_TxBD_UN 0x0002 |
---|
972 | #define MCF_FEC_TxBD_CSL 0x0001 |
---|
973 | #define MCF_FEC_RxBD_E 0x8000 |
---|
974 | #define MCF_FEC_RxBD_INUSE 0x4000 |
---|
975 | #define MCF_FEC_RxBD_R01 0x4000 |
---|
976 | #define MCF_FEC_RxBD_W 0x2000 |
---|
977 | #define MCF_FEC_RxBD_R02 0x1000 |
---|
978 | #define MCF_FEC_RxBD_L 0x0800 |
---|
979 | #define MCF_FEC_RxBD_M 0x0100 |
---|
980 | #define MCF_FEC_RxBD_BC 0x0080 |
---|
981 | #define MCF_FEC_RxBD_MC 0x0040 |
---|
982 | #define MCF_FEC_RxBD_LG 0x0020 |
---|
983 | #define MCF_FEC_RxBD_NO 0x0010 |
---|
984 | #define MCF_FEC_RxBD_CR 0x0004 |
---|
985 | #define MCF_FEC_RxBD_OV 0x0002 |
---|
986 | #define MCF_FEC_RxBD_TR 0x0001 |
---|
987 | |
---|
988 | /********************************************************************* |
---|
989 | * |
---|
990 | * Enhanced DMA (EDMA) |
---|
991 | * |
---|
992 | *********************************************************************/ |
---|
993 | |
---|
994 | /* Register read/write macros */ |
---|
995 | #define MCF_EDMA_CR (*(vuint32*)(0xFC044000)) |
---|
996 | #define MCF_EDMA_ES (*(vuint32*)(0xFC044004)) |
---|
997 | #define MCF_EDMA_ERQ (*(vuint16*)(0xFC04400E)) |
---|
998 | #define MCF_EDMA_EEI (*(vuint16*)(0xFC044016)) |
---|
999 | #define MCF_EDMA_SERQ (*(vuint8 *)(0xFC044018)) |
---|
1000 | #define MCF_EDMA_CERQ (*(vuint8 *)(0xFC044019)) |
---|
1001 | #define MCF_EDMA_SEEI (*(vuint8 *)(0xFC04401A)) |
---|
1002 | #define MCF_EDMA_CEEI (*(vuint8 *)(0xFC04401B)) |
---|
1003 | #define MCF_EDMA_CINT (*(vuint8 *)(0xFC04401C)) |
---|
1004 | #define MCF_EDMA_CERR (*(vuint8 *)(0xFC04401D)) |
---|
1005 | #define MCF_EDMA_SSRT (*(vuint8 *)(0xFC04401E)) |
---|
1006 | #define MCF_EDMA_CDNE (*(vuint8 *)(0xFC04401F)) |
---|
1007 | #define MCF_EDMA_INT (*(vuint16*)(0xFC044026)) |
---|
1008 | #define MCF_EDMA_ERR (*(vuint16*)(0xFC04402E)) |
---|
1009 | #define MCF_EDMA_DCHPRI0 (*(vuint8 *)(0xFC044100)) |
---|
1010 | #define MCF_EDMA_DCHPRI1 (*(vuint8 *)(0xFC044101)) |
---|
1011 | #define MCF_EDMA_DCHPRI2 (*(vuint8 *)(0xFC044102)) |
---|
1012 | #define MCF_EDMA_DCHPRI3 (*(vuint8 *)(0xFC044103)) |
---|
1013 | #define MCF_EDMA_DCHPRI4 (*(vuint8 *)(0xFC044104)) |
---|
1014 | #define MCF_EDMA_DCHPRI5 (*(vuint8 *)(0xFC044105)) |
---|
1015 | #define MCF_EDMA_DCHPRI6 (*(vuint8 *)(0xFC044106)) |
---|
1016 | #define MCF_EDMA_DCHPRI7 (*(vuint8 *)(0xFC044107)) |
---|
1017 | #define MCF_EDMA_DCHPRI8 (*(vuint8 *)(0xFC044108)) |
---|
1018 | #define MCF_EDMA_DCHPRI9 (*(vuint8 *)(0xFC044109)) |
---|
1019 | #define MCF_EDMA_DCHPRI10 (*(vuint8 *)(0xFC04410A)) |
---|
1020 | #define MCF_EDMA_DCHPRI11 (*(vuint8 *)(0xFC04410B)) |
---|
1021 | #define MCF_EDMA_DCHPRI12 (*(vuint8 *)(0xFC04410C)) |
---|
1022 | #define MCF_EDMA_DCHPRI13 (*(vuint8 *)(0xFC04410D)) |
---|
1023 | #define MCF_EDMA_DCHPRI14 (*(vuint8 *)(0xFC04410E)) |
---|
1024 | #define MCF_EDMA_DCHPRI15 (*(vuint8 *)(0xFC04410F)) |
---|
1025 | #define MCF_EDMA_DCHPRI(x) (*(vuint8 *)(0xFC044100+((x)*0x001))) |
---|
1026 | #define MCF_EDMA_TCD0_SADDR (*(vuint32*)(0xFC045000)) |
---|
1027 | #define MCF_EDMA_TCD1_SADDR (*(vuint32*)(0xFC045020)) |
---|
1028 | #define MCF_EDMA_TCD2_SADDR (*(vuint32*)(0xFC045040)) |
---|
1029 | #define MCF_EDMA_TCD3_SADDR (*(vuint32*)(0xFC045060)) |
---|
1030 | #define MCF_EDMA_TCD4_SADDR (*(vuint32*)(0xFC045080)) |
---|
1031 | #define MCF_EDMA_TCD5_SADDR (*(vuint32*)(0xFC0450A0)) |
---|
1032 | #define MCF_EDMA_TCD6_SADDR (*(vuint32*)(0xFC0450C0)) |
---|
1033 | #define MCF_EDMA_TCD7_SADDR (*(vuint32*)(0xFC0450E0)) |
---|
1034 | #define MCF_EDMA_TCD8_SADDR (*(vuint32*)(0xFC045100)) |
---|
1035 | #define MCF_EDMA_TCD9_SADDR (*(vuint32*)(0xFC045120)) |
---|
1036 | #define MCF_EDMA_TCD10_SADDR (*(vuint32*)(0xFC045140)) |
---|
1037 | #define MCF_EDMA_TCD11_SADDR (*(vuint32*)(0xFC045160)) |
---|
1038 | #define MCF_EDMA_TCD12_SADDR (*(vuint32*)(0xFC045180)) |
---|
1039 | #define MCF_EDMA_TCD13_SADDR (*(vuint32*)(0xFC0451A0)) |
---|
1040 | #define MCF_EDMA_TCD14_SADDR (*(vuint32*)(0xFC0451C0)) |
---|
1041 | #define MCF_EDMA_TCD15_SADDR (*(vuint32*)(0xFC0451E0)) |
---|
1042 | #define MCF_EDMA_TCD_SADDR(x) (*(vuint32*)(0xFC045000+((x)*0x020))) |
---|
1043 | #define MCF_EDMA_TCD0_ATTR (*(vuint16*)(0xFC045004)) |
---|
1044 | #define MCF_EDMA_TCD1_ATTR (*(vuint16*)(0xFC045024)) |
---|
1045 | #define MCF_EDMA_TCD2_ATTR (*(vuint16*)(0xFC045044)) |
---|
1046 | #define MCF_EDMA_TCD3_ATTR (*(vuint16*)(0xFC045064)) |
---|
1047 | #define MCF_EDMA_TCD4_ATTR (*(vuint16*)(0xFC045084)) |
---|
1048 | #define MCF_EDMA_TCD5_ATTR (*(vuint16*)(0xFC0450A4)) |
---|
1049 | #define MCF_EDMA_TCD6_ATTR (*(vuint16*)(0xFC0450C4)) |
---|
1050 | #define MCF_EDMA_TCD7_ATTR (*(vuint16*)(0xFC0450E4)) |
---|
1051 | #define MCF_EDMA_TCD8_ATTR (*(vuint16*)(0xFC045104)) |
---|
1052 | #define MCF_EDMA_TCD9_ATTR (*(vuint16*)(0xFC045124)) |
---|
1053 | #define MCF_EDMA_TCD10_ATTR (*(vuint16*)(0xFC045144)) |
---|
1054 | #define MCF_EDMA_TCD11_ATTR (*(vuint16*)(0xFC045164)) |
---|
1055 | #define MCF_EDMA_TCD12_ATTR (*(vuint16*)(0xFC045184)) |
---|
1056 | #define MCF_EDMA_TCD13_ATTR (*(vuint16*)(0xFC0451A4)) |
---|
1057 | #define MCF_EDMA_TCD14_ATTR (*(vuint16*)(0xFC0451C4)) |
---|
1058 | #define MCF_EDMA_TCD15_ATTR (*(vuint16*)(0xFC0451E4)) |
---|
1059 | #define MCF_EDMA_TCD_ATTR(x) (*(vuint16*)(0xFC045004+((x)*0x020))) |
---|
1060 | #define MCF_EDMA_TCD0_SOFF (*(vuint16*)(0xFC045006)) |
---|
1061 | #define MCF_EDMA_TCD1_SOFF (*(vuint16*)(0xFC045026)) |
---|
1062 | #define MCF_EDMA_TCD2_SOFF (*(vuint16*)(0xFC045046)) |
---|
1063 | #define MCF_EDMA_TCD3_SOFF (*(vuint16*)(0xFC045066)) |
---|
1064 | #define MCF_EDMA_TCD4_SOFF (*(vuint16*)(0xFC045086)) |
---|
1065 | #define MCF_EDMA_TCD5_SOFF (*(vuint16*)(0xFC0450A6)) |
---|
1066 | #define MCF_EDMA_TCD6_SOFF (*(vuint16*)(0xFC0450C6)) |
---|
1067 | #define MCF_EDMA_TCD7_SOFF (*(vuint16*)(0xFC0450E6)) |
---|
1068 | #define MCF_EDMA_TCD8_SOFF (*(vuint16*)(0xFC045106)) |
---|
1069 | #define MCF_EDMA_TCD9_SOFF (*(vuint16*)(0xFC045126)) |
---|
1070 | #define MCF_EDMA_TCD10_SOFF (*(vuint16*)(0xFC045146)) |
---|
1071 | #define MCF_EDMA_TCD11_SOFF (*(vuint16*)(0xFC045166)) |
---|
1072 | #define MCF_EDMA_TCD12_SOFF (*(vuint16*)(0xFC045186)) |
---|
1073 | #define MCF_EDMA_TCD13_SOFF (*(vuint16*)(0xFC0451A6)) |
---|
1074 | #define MCF_EDMA_TCD14_SOFF (*(vuint16*)(0xFC0451C6)) |
---|
1075 | #define MCF_EDMA_TCD15_SOFF (*(vuint16*)(0xFC0451E6)) |
---|
1076 | #define MCF_EDMA_TCD_SOFF(x) (*(vuint16*)(0xFC045006+((x)*0x020))) |
---|
1077 | #define MCF_EDMA_TCD0_NBYTES (*(vuint32*)(0xFC045008)) |
---|
1078 | #define MCF_EDMA_TCD1_NBYTES (*(vuint32*)(0xFC045028)) |
---|
1079 | #define MCF_EDMA_TCD2_NBYTES (*(vuint32*)(0xFC045048)) |
---|
1080 | #define MCF_EDMA_TCD3_NBYTES (*(vuint32*)(0xFC045068)) |
---|
1081 | #define MCF_EDMA_TCD4_NBYTES (*(vuint32*)(0xFC045088)) |
---|
1082 | #define MCF_EDMA_TCD5_NBYTES (*(vuint32*)(0xFC0450A8)) |
---|
1083 | #define MCF_EDMA_TCD6_NBYTES (*(vuint32*)(0xFC0450C8)) |
---|
1084 | #define MCF_EDMA_TCD7_NBYTES (*(vuint32*)(0xFC0450E8)) |
---|
1085 | #define MCF_EDMA_TCD8_NBYTES (*(vuint32*)(0xFC045108)) |
---|
1086 | #define MCF_EDMA_TCD9_NBYTES (*(vuint32*)(0xFC045128)) |
---|
1087 | #define MCF_EDMA_TCD10_NBYTES (*(vuint32*)(0xFC045148)) |
---|
1088 | #define MCF_EDMA_TCD11_NBYTES (*(vuint32*)(0xFC045168)) |
---|
1089 | #define MCF_EDMA_TCD12_NBYTES (*(vuint32*)(0xFC045188)) |
---|
1090 | #define MCF_EDMA_TCD13_NBYTES (*(vuint32*)(0xFC0451A8)) |
---|
1091 | #define MCF_EDMA_TCD14_NBYTES (*(vuint32*)(0xFC0451C8)) |
---|
1092 | #define MCF_EDMA_TCD15_NBYTES (*(vuint32*)(0xFC0451E8)) |
---|
1093 | #define MCF_EDMA_TCD_NBYTES(x) (*(vuint32*)(0xFC045008+((x)*0x020))) |
---|
1094 | #define MCF_EDMA_TCD0_SLAST (*(vuint32*)(0xFC04500C)) |
---|
1095 | #define MCF_EDMA_TCD1_SLAST (*(vuint32*)(0xFC04502C)) |
---|
1096 | #define MCF_EDMA_TCD2_SLAST (*(vuint32*)(0xFC04504C)) |
---|
1097 | #define MCF_EDMA_TCD3_SLAST (*(vuint32*)(0xFC04506C)) |
---|
1098 | #define MCF_EDMA_TCD4_SLAST (*(vuint32*)(0xFC04508C)) |
---|
1099 | #define MCF_EDMA_TCD5_SLAST (*(vuint32*)(0xFC0450AC)) |
---|
1100 | #define MCF_EDMA_TCD6_SLAST (*(vuint32*)(0xFC0450CC)) |
---|
1101 | #define MCF_EDMA_TCD7_SLAST (*(vuint32*)(0xFC0450EC)) |
---|
1102 | #define MCF_EDMA_TCD8_SLAST (*(vuint32*)(0xFC04510C)) |
---|
1103 | #define MCF_EDMA_TCD9_SLAST (*(vuint32*)(0xFC04512C)) |
---|
1104 | #define MCF_EDMA_TCD10_SLAST (*(vuint32*)(0xFC04514C)) |
---|
1105 | #define MCF_EDMA_TCD11_SLAST (*(vuint32*)(0xFC04516C)) |
---|
1106 | #define MCF_EDMA_TCD12_SLAST (*(vuint32*)(0xFC04518C)) |
---|
1107 | #define MCF_EDMA_TCD13_SLAST (*(vuint32*)(0xFC0451AC)) |
---|
1108 | #define MCF_EDMA_TCD14_SLAST (*(vuint32*)(0xFC0451CC)) |
---|
1109 | #define MCF_EDMA_TCD15_SLAST (*(vuint32*)(0xFC0451EC)) |
---|
1110 | #define MCF_EDMA_TCD_SLAST(x) (*(vuint32*)(0xFC04500C+((x)*0x020))) |
---|
1111 | #define MCF_EDMA_TCD0_DADDR (*(vuint32*)(0xFC045010)) |
---|
1112 | #define MCF_EDMA_TCD1_DADDR (*(vuint32*)(0xFC045030)) |
---|
1113 | #define MCF_EDMA_TCD2_DADDR (*(vuint32*)(0xFC045050)) |
---|
1114 | #define MCF_EDMA_TCD3_DADDR (*(vuint32*)(0xFC045070)) |
---|
1115 | #define MCF_EDMA_TCD4_DADDR (*(vuint32*)(0xFC045090)) |
---|
1116 | #define MCF_EDMA_TCD5_DADDR (*(vuint32*)(0xFC0450B0)) |
---|
1117 | #define MCF_EDMA_TCD6_DADDR (*(vuint32*)(0xFC0450D0)) |
---|
1118 | #define MCF_EDMA_TCD7_DADDR (*(vuint32*)(0xFC0450F0)) |
---|
1119 | #define MCF_EDMA_TCD8_DADDR (*(vuint32*)(0xFC045110)) |
---|
1120 | #define MCF_EDMA_TCD9_DADDR (*(vuint32*)(0xFC045130)) |
---|
1121 | #define MCF_EDMA_TCD10_DADDR (*(vuint32*)(0xFC045150)) |
---|
1122 | #define MCF_EDMA_TCD11_DADDR (*(vuint32*)(0xFC045170)) |
---|
1123 | #define MCF_EDMA_TCD12_DADDR (*(vuint32*)(0xFC045190)) |
---|
1124 | #define MCF_EDMA_TCD13_DADDR (*(vuint32*)(0xFC0451B0)) |
---|
1125 | #define MCF_EDMA_TCD14_DADDR (*(vuint32*)(0xFC0451D0)) |
---|
1126 | #define MCF_EDMA_TCD15_DADDR (*(vuint32*)(0xFC0451F0)) |
---|
1127 | #define MCF_EDMA_TCD_DADDR(x) (*(vuint32*)(0xFC045010+((x)*0x020))) |
---|
1128 | #define MCF_EDMA_TCD0_CITER (*(vuint16*)(0xFC045014)) |
---|
1129 | #define MCF_EDMA_TCD1_CITER (*(vuint16*)(0xFC045034)) |
---|
1130 | #define MCF_EDMA_TCD2_CITER (*(vuint16*)(0xFC045054)) |
---|
1131 | #define MCF_EDMA_TCD3_CITER (*(vuint16*)(0xFC045074)) |
---|
1132 | #define MCF_EDMA_TCD4_CITER (*(vuint16*)(0xFC045094)) |
---|
1133 | #define MCF_EDMA_TCD5_CITER (*(vuint16*)(0xFC0450B4)) |
---|
1134 | #define MCF_EDMA_TCD6_CITER (*(vuint16*)(0xFC0450D4)) |
---|
1135 | #define MCF_EDMA_TCD7_CITER (*(vuint16*)(0xFC0450F4)) |
---|
1136 | #define MCF_EDMA_TCD8_CITER (*(vuint16*)(0xFC045114)) |
---|
1137 | #define MCF_EDMA_TCD9_CITER (*(vuint16*)(0xFC045134)) |
---|
1138 | #define MCF_EDMA_TCD10_CITER (*(vuint16*)(0xFC045154)) |
---|
1139 | #define MCF_EDMA_TCD11_CITER (*(vuint16*)(0xFC045174)) |
---|
1140 | #define MCF_EDMA_TCD12_CITER (*(vuint16*)(0xFC045194)) |
---|
1141 | #define MCF_EDMA_TCD13_CITER (*(vuint16*)(0xFC0451B4)) |
---|
1142 | #define MCF_EDMA_TCD14_CITER (*(vuint16*)(0xFC0451D4)) |
---|
1143 | #define MCF_EDMA_TCD15_CITER (*(vuint16*)(0xFC0451F4)) |
---|
1144 | #define MCF_EDMA_TCD_CITER(x) (*(vuint16*)(0xFC045014+((x)*0x020))) |
---|
1145 | #define MCF_EDMA_TCD0_CITER_ELINK (*(vuint16*)(0xFC045014)) |
---|
1146 | #define MCF_EDMA_TCD1_CITER_ELINK (*(vuint16*)(0xFC045034)) |
---|
1147 | #define MCF_EDMA_TCD2_CITER_ELINK (*(vuint16*)(0xFC045054)) |
---|
1148 | #define MCF_EDMA_TCD3_CITER_ELINK (*(vuint16*)(0xFC045074)) |
---|
1149 | #define MCF_EDMA_TCD4_CITER_ELINK (*(vuint16*)(0xFC045094)) |
---|
1150 | #define MCF_EDMA_TCD5_CITER_ELINK (*(vuint16*)(0xFC0450B4)) |
---|
1151 | #define MCF_EDMA_TCD6_CITER_ELINK (*(vuint16*)(0xFC0450D4)) |
---|
1152 | #define MCF_EDMA_TCD7_CITER_ELINK (*(vuint16*)(0xFC0450F4)) |
---|
1153 | #define MCF_EDMA_TCD8_CITER_ELINK (*(vuint16*)(0xFC045114)) |
---|
1154 | #define MCF_EDMA_TCD9_CITER_ELINK (*(vuint16*)(0xFC045134)) |
---|
1155 | #define MCF_EDMA_TCD10_CITER_ELINK (*(vuint16*)(0xFC045154)) |
---|
1156 | #define MCF_EDMA_TCD11_CITER_ELINK (*(vuint16*)(0xFC045174)) |
---|
1157 | #define MCF_EDMA_TCD12_CITER_ELINK (*(vuint16*)(0xFC045194)) |
---|
1158 | #define MCF_EDMA_TCD13_CITER_ELINK (*(vuint16*)(0xFC0451B4)) |
---|
1159 | #define MCF_EDMA_TCD14_CITER_ELINK (*(vuint16*)(0xFC0451D4)) |
---|
1160 | #define MCF_EDMA_TCD15_CITER_ELINK (*(vuint16*)(0xFC0451F4)) |
---|
1161 | #define MCF_EDMA_TCD_CITER_ELINK(x) (*(vuint16*)(0xFC045014+((x)*0x020))) |
---|
1162 | #define MCF_EDMA_TCD0_DOFF (*(vuint16*)(0xFC045016)) |
---|
1163 | #define MCF_EDMA_TCD1_DOFF (*(vuint16*)(0xFC045036)) |
---|
1164 | #define MCF_EDMA_TCD2_DOFF (*(vuint16*)(0xFC045056)) |
---|
1165 | #define MCF_EDMA_TCD3_DOFF (*(vuint16*)(0xFC045076)) |
---|
1166 | #define MCF_EDMA_TCD4_DOFF (*(vuint16*)(0xFC045096)) |
---|
1167 | #define MCF_EDMA_TCD5_DOFF (*(vuint16*)(0xFC0450B6)) |
---|
1168 | #define MCF_EDMA_TCD6_DOFF (*(vuint16*)(0xFC0450D6)) |
---|
1169 | #define MCF_EDMA_TCD7_DOFF (*(vuint16*)(0xFC0450F6)) |
---|
1170 | #define MCF_EDMA_TCD8_DOFF (*(vuint16*)(0xFC045116)) |
---|
1171 | #define MCF_EDMA_TCD9_DOFF (*(vuint16*)(0xFC045136)) |
---|
1172 | #define MCF_EDMA_TCD10_DOFF (*(vuint16*)(0xFC045156)) |
---|
1173 | #define MCF_EDMA_TCD11_DOFF (*(vuint16*)(0xFC045176)) |
---|
1174 | #define MCF_EDMA_TCD12_DOFF (*(vuint16*)(0xFC045196)) |
---|
1175 | #define MCF_EDMA_TCD13_DOFF (*(vuint16*)(0xFC0451B6)) |
---|
1176 | #define MCF_EDMA_TCD14_DOFF (*(vuint16*)(0xFC0451D6)) |
---|
1177 | #define MCF_EDMA_TCD15_DOFF (*(vuint16*)(0xFC0451F6)) |
---|
1178 | #define MCF_EDMA_TCD_DOFF(x) (*(vuint16*)(0xFC045016+((x)*0x020))) |
---|
1179 | #define MCF_EDMA_TCD0_DLAST_SGA (*(vuint32*)(0xFC045018)) |
---|
1180 | #define MCF_EDMA_TCD1_DLAST_SGA (*(vuint32*)(0xFC045038)) |
---|
1181 | #define MCF_EDMA_TCD2_DLAST_SGA (*(vuint32*)(0xFC045058)) |
---|
1182 | #define MCF_EDMA_TCD3_DLAST_SGA (*(vuint32*)(0xFC045078)) |
---|
1183 | #define MCF_EDMA_TCD4_DLAST_SGA (*(vuint32*)(0xFC045098)) |
---|
1184 | #define MCF_EDMA_TCD5_DLAST_SGA (*(vuint32*)(0xFC0450B8)) |
---|
1185 | #define MCF_EDMA_TCD6_DLAST_SGA (*(vuint32*)(0xFC0450D8)) |
---|
1186 | #define MCF_EDMA_TCD7_DLAST_SGA (*(vuint32*)(0xFC0450F8)) |
---|
1187 | #define MCF_EDMA_TCD8_DLAST_SGA (*(vuint32*)(0xFC045118)) |
---|
1188 | #define MCF_EDMA_TCD9_DLAST_SGA (*(vuint32*)(0xFC045138)) |
---|
1189 | #define MCF_EDMA_TCD10_DLAST_SGA (*(vuint32*)(0xFC045158)) |
---|
1190 | #define MCF_EDMA_TCD11_DLAST_SGA (*(vuint32*)(0xFC045178)) |
---|
1191 | #define MCF_EDMA_TCD12_DLAST_SGA (*(vuint32*)(0xFC045198)) |
---|
1192 | #define MCF_EDMA_TCD13_DLAST_SGA (*(vuint32*)(0xFC0451B8)) |
---|
1193 | #define MCF_EDMA_TCD14_DLAST_SGA (*(vuint32*)(0xFC0451D8)) |
---|
1194 | #define MCF_EDMA_TCD15_DLAST_SGA (*(vuint32*)(0xFC0451F8)) |
---|
1195 | #define MCF_EDMA_TCD_DLAST_SGA(x) (*(vuint32*)(0xFC045018+((x)*0x020))) |
---|
1196 | #define MCF_EDMA_TCD0_BITER (*(vuint16*)(0xFC04501C)) |
---|
1197 | #define MCF_EDMA_TCD1_BITER (*(vuint16*)(0xFC04503C)) |
---|
1198 | #define MCF_EDMA_TCD2_BITER (*(vuint16*)(0xFC04505C)) |
---|
1199 | #define MCF_EDMA_TCD3_BITER (*(vuint16*)(0xFC04507C)) |
---|
1200 | #define MCF_EDMA_TCD4_BITER (*(vuint16*)(0xFC04509C)) |
---|
1201 | #define MCF_EDMA_TCD5_BITER (*(vuint16*)(0xFC0450BC)) |
---|
1202 | #define MCF_EDMA_TCD6_BITER (*(vuint16*)(0xFC0450DC)) |
---|
1203 | #define MCF_EDMA_TCD7_BITER (*(vuint16*)(0xFC0450FC)) |
---|
1204 | #define MCF_EDMA_TCD8_BITER (*(vuint16*)(0xFC04511C)) |
---|
1205 | #define MCF_EDMA_TCD9_BITER (*(vuint16*)(0xFC04513C)) |
---|
1206 | #define MCF_EDMA_TCD10_BITER (*(vuint16*)(0xFC04515C)) |
---|
1207 | #define MCF_EDMA_TCD11_BITER (*(vuint16*)(0xFC04517C)) |
---|
1208 | #define MCF_EDMA_TCD12_BITER (*(vuint16*)(0xFC04519C)) |
---|
1209 | #define MCF_EDMA_TCD13_BITER (*(vuint16*)(0xFC0451BC)) |
---|
1210 | #define MCF_EDMA_TCD14_BITER (*(vuint16*)(0xFC0451DC)) |
---|
1211 | #define MCF_EDMA_TCD15_BITER (*(vuint16*)(0xFC0451FC)) |
---|
1212 | #define MCF_EDMA_TCD_BITER(x) (*(vuint16*)(0xFC04501C+((x)*0x020))) |
---|
1213 | #define MCF_EDMA_TCD0_BITER_ELINK (*(vuint16*)(0xFC04501C)) |
---|
1214 | #define MCF_EDMA_TCD1_BITER_ELINK (*(vuint16*)(0xFC04503C)) |
---|
1215 | #define MCF_EDMA_TCD2_BITER_ELINK (*(vuint16*)(0xFC04505C)) |
---|
1216 | #define MCF_EDMA_TCD3_BITER_ELINK (*(vuint16*)(0xFC04507C)) |
---|
1217 | #define MCF_EDMA_TCD4_BITER_ELINK (*(vuint16*)(0xFC04509C)) |
---|
1218 | #define MCF_EDMA_TCD5_BITER_ELINK (*(vuint16*)(0xFC0450BC)) |
---|
1219 | #define MCF_EDMA_TCD6_BITER_ELINK (*(vuint16*)(0xFC0450DC)) |
---|
1220 | #define MCF_EDMA_TCD7_BITER_ELINK (*(vuint16*)(0xFC0450FC)) |
---|
1221 | #define MCF_EDMA_TCD8_BITER_ELINK (*(vuint16*)(0xFC04511C)) |
---|
1222 | #define MCF_EDMA_TCD9_BITER_ELINK (*(vuint16*)(0xFC04513C)) |
---|
1223 | #define MCF_EDMA_TCD10_BITER_ELINK (*(vuint16*)(0xFC04515C)) |
---|
1224 | #define MCF_EDMA_TCD11_BITER_ELINK (*(vuint16*)(0xFC04517C)) |
---|
1225 | #define MCF_EDMA_TCD12_BITER_ELINK (*(vuint16*)(0xFC04519C)) |
---|
1226 | #define MCF_EDMA_TCD13_BITER_ELINK (*(vuint16*)(0xFC0451BC)) |
---|
1227 | #define MCF_EDMA_TCD14_BITER_ELINK (*(vuint16*)(0xFC0451DC)) |
---|
1228 | #define MCF_EDMA_TCD15_BITER_ELINK (*(vuint16*)(0xFC0451FC)) |
---|
1229 | #define MCF_EDMA_TCD_BITER_ELINK(x) (*(vuint16*)(0xFC04501C+((x)*0x020))) |
---|
1230 | #define MCF_EDMA_TCD0_CSR (*(vuint16*)(0xFC04501E)) |
---|
1231 | #define MCF_EDMA_TCD1_CSR (*(vuint16*)(0xFC04503E)) |
---|
1232 | #define MCF_EDMA_TCD2_CSR (*(vuint16*)(0xFC04505E)) |
---|
1233 | #define MCF_EDMA_TCD3_CSR (*(vuint16*)(0xFC04507E)) |
---|
1234 | #define MCF_EDMA_TCD4_CSR (*(vuint16*)(0xFC04509E)) |
---|
1235 | #define MCF_EDMA_TCD5_CSR (*(vuint16*)(0xFC0450BE)) |
---|
1236 | #define MCF_EDMA_TCD6_CSR (*(vuint16*)(0xFC0450DE)) |
---|
1237 | #define MCF_EDMA_TCD7_CSR (*(vuint16*)(0xFC0450FE)) |
---|
1238 | #define MCF_EDMA_TCD8_CSR (*(vuint16*)(0xFC04511E)) |
---|
1239 | #define MCF_EDMA_TCD9_CSR (*(vuint16*)(0xFC04513E)) |
---|
1240 | #define MCF_EDMA_TCD10_CSR (*(vuint16*)(0xFC04515E)) |
---|
1241 | #define MCF_EDMA_TCD11_CSR (*(vuint16*)(0xFC04517E)) |
---|
1242 | #define MCF_EDMA_TCD12_CSR (*(vuint16*)(0xFC04519E)) |
---|
1243 | #define MCF_EDMA_TCD13_CSR (*(vuint16*)(0xFC0451BE)) |
---|
1244 | #define MCF_EDMA_TCD14_CSR (*(vuint16*)(0xFC0451DE)) |
---|
1245 | #define MCF_EDMA_TCD15_CSR (*(vuint16*)(0xFC0451FE)) |
---|
1246 | #define MCF_EDMA_TCD_CSR(x) (*(vuint16*)(0xFC04501E+((x)*0x020))) |
---|
1247 | |
---|
1248 | /* Bit definitions and macros for MCF_EDMA_CR */ |
---|
1249 | #define MCF_EDMA_CR_EDBG (0x00000002) |
---|
1250 | #define MCF_EDMA_CR_ERCA (0x00000004) |
---|
1251 | |
---|
1252 | /* Bit definitions and macros for MCF_EDMA_ES */ |
---|
1253 | #define MCF_EDMA_ES_DBE (0x00000001) |
---|
1254 | #define MCF_EDMA_ES_SBE (0x00000002) |
---|
1255 | #define MCF_EDMA_ES_SGE (0x00000004) |
---|
1256 | #define MCF_EDMA_ES_NCE (0x00000008) |
---|
1257 | #define MCF_EDMA_ES_DOE (0x00000010) |
---|
1258 | #define MCF_EDMA_ES_DAE (0x00000020) |
---|
1259 | #define MCF_EDMA_ES_SOE (0x00000040) |
---|
1260 | #define MCF_EDMA_ES_SAE (0x00000080) |
---|
1261 | #define MCF_EDMA_ES_ERRCHN(x) (((x)&0x0000000F)<<8) |
---|
1262 | #define MCF_EDMA_ES_CPE (0x00004000) |
---|
1263 | #define MCF_EDMA_ES_VLD (0x80000000) |
---|
1264 | |
---|
1265 | /* Bit definitions and macros for MCF_EDMA_ERQ */ |
---|
1266 | #define MCF_EDMA_ERQ_ERQ0 (0x0001) |
---|
1267 | #define MCF_EDMA_ERQ_ERQ1 (0x0002) |
---|
1268 | #define MCF_EDMA_ERQ_ERQ2 (0x0004) |
---|
1269 | #define MCF_EDMA_ERQ_ERQ3 (0x0008) |
---|
1270 | #define MCF_EDMA_ERQ_ERQ4 (0x0010) |
---|
1271 | #define MCF_EDMA_ERQ_ERQ5 (0x0020) |
---|
1272 | #define MCF_EDMA_ERQ_ERQ6 (0x0040) |
---|
1273 | #define MCF_EDMA_ERQ_ERQ7 (0x0080) |
---|
1274 | #define MCF_EDMA_ERQ_ERQ8 (0x0100) |
---|
1275 | #define MCF_EDMA_ERQ_ERQ9 (0x0200) |
---|
1276 | #define MCF_EDMA_ERQ_ERQ10 (0x0400) |
---|
1277 | #define MCF_EDMA_ERQ_ERQ11 (0x0800) |
---|
1278 | #define MCF_EDMA_ERQ_ERQ12 (0x1000) |
---|
1279 | #define MCF_EDMA_ERQ_ERQ13 (0x2000) |
---|
1280 | #define MCF_EDMA_ERQ_ERQ14 (0x4000) |
---|
1281 | #define MCF_EDMA_ERQ_ERQ15 (0x8000) |
---|
1282 | |
---|
1283 | /* Bit definitions and macros for MCF_EDMA_EEI */ |
---|
1284 | #define MCF_EDMA_EEI_EEI0 (0x0001) |
---|
1285 | #define MCF_EDMA_EEI_EEI1 (0x0002) |
---|
1286 | #define MCF_EDMA_EEI_EEI2 (0x0004) |
---|
1287 | #define MCF_EDMA_EEI_EEI3 (0x0008) |
---|
1288 | #define MCF_EDMA_EEI_EEI4 (0x0010) |
---|
1289 | #define MCF_EDMA_EEI_EEI5 (0x0020) |
---|
1290 | #define MCF_EDMA_EEI_EEI6 (0x0040) |
---|
1291 | #define MCF_EDMA_EEI_EEI7 (0x0080) |
---|
1292 | #define MCF_EDMA_EEI_EEI8 (0x0100) |
---|
1293 | #define MCF_EDMA_EEI_EEI9 (0x0200) |
---|
1294 | #define MCF_EDMA_EEI_EEI10 (0x0400) |
---|
1295 | #define MCF_EDMA_EEI_EEI11 (0x0800) |
---|
1296 | #define MCF_EDMA_EEI_EEI12 (0x1000) |
---|
1297 | #define MCF_EDMA_EEI_EEI13 (0x2000) |
---|
1298 | #define MCF_EDMA_EEI_EEI14 (0x4000) |
---|
1299 | #define MCF_EDMA_EEI_EEI15 (0x8000) |
---|
1300 | |
---|
1301 | /* Bit definitions and macros for MCF_EDMA_SERQ */ |
---|
1302 | #define MCF_EDMA_SERQ_SERQ(x) (((x)&0x0F)<<0) |
---|
1303 | #define MCF_EDMA_SERQ_SAER (0x40) |
---|
1304 | |
---|
1305 | /* Bit definitions and macros for MCF_EDMA_CERQ */ |
---|
1306 | #define MCF_EDMA_CERQ_CERQ(x) (((x)&0x0F)<<0) |
---|
1307 | #define MCF_EDMA_CERQ_CAER (0x40) |
---|
1308 | |
---|
1309 | /* Bit definitions and macros for MCF_EDMA_SEEI */ |
---|
1310 | #define MCF_EDMA_SEEI_SEEI(x) (((x)&0x0F)<<0) |
---|
1311 | #define MCF_EDMA_SEEI_SAEE (0x40) |
---|
1312 | |
---|
1313 | /* Bit definitions and macros for MCF_EDMA_CEEI */ |
---|
1314 | #define MCF_EDMA_CEEI_CEEI(x) (((x)&0x0F)<<0) |
---|
1315 | #define MCF_EDMA_CEEI_CAEE (0x40) |
---|
1316 | |
---|
1317 | /* Bit definitions and macros for MCF_EDMA_CINT */ |
---|
1318 | #define MCF_EDMA_CINT_CINT(x) (((x)&0x0F)<<0) |
---|
1319 | #define MCF_EDMA_CINT_CAIR (0x40) |
---|
1320 | |
---|
1321 | /* Bit definitions and macros for MCF_EDMA_CERR */ |
---|
1322 | #define MCF_EDMA_CERR_CERR(x) (((x)&0x0F)<<0) |
---|
1323 | #define MCF_EDMA_CERR_CAER (0x40) |
---|
1324 | |
---|
1325 | /* Bit definitions and macros for MCF_EDMA_SSRT */ |
---|
1326 | #define MCF_EDMA_SSRT_SSRT(x) (((x)&0x0F)<<0) |
---|
1327 | #define MCF_EDMA_SSRT_SAST (0x40) |
---|
1328 | |
---|
1329 | /* Bit definitions and macros for MCF_EDMA_CDNE */ |
---|
1330 | #define MCF_EDMA_CDNE_CDNE(x) (((x)&0x0F)<<0) |
---|
1331 | #define MCF_EDMA_CDNE_CADN (0x40) |
---|
1332 | |
---|
1333 | /* Bit definitions and macros for MCF_EDMA_INT */ |
---|
1334 | #define MCF_EDMA_INT_INT0 (0x0001) |
---|
1335 | #define MCF_EDMA_INT_INT1 (0x0002) |
---|
1336 | #define MCF_EDMA_INT_INT2 (0x0004) |
---|
1337 | #define MCF_EDMA_INT_INT3 (0x0008) |
---|
1338 | #define MCF_EDMA_INT_INT4 (0x0010) |
---|
1339 | #define MCF_EDMA_INT_INT5 (0x0020) |
---|
1340 | #define MCF_EDMA_INT_INT6 (0x0040) |
---|
1341 | #define MCF_EDMA_INT_INT7 (0x0080) |
---|
1342 | #define MCF_EDMA_INT_INT8 (0x0100) |
---|
1343 | #define MCF_EDMA_INT_INT9 (0x0200) |
---|
1344 | #define MCF_EDMA_INT_INT10 (0x0400) |
---|
1345 | #define MCF_EDMA_INT_INT11 (0x0800) |
---|
1346 | #define MCF_EDMA_INT_INT12 (0x1000) |
---|
1347 | #define MCF_EDMA_INT_INT13 (0x2000) |
---|
1348 | #define MCF_EDMA_INT_INT14 (0x4000) |
---|
1349 | #define MCF_EDMA_INT_INT15 (0x8000) |
---|
1350 | |
---|
1351 | /* Bit definitions and macros for MCF_EDMA_ERR */ |
---|
1352 | #define MCF_EDMA_ERR_ERR0 (0x0001) |
---|
1353 | #define MCF_EDMA_ERR_ERR1 (0x0002) |
---|
1354 | #define MCF_EDMA_ERR_ERR2 (0x0004) |
---|
1355 | #define MCF_EDMA_ERR_ERR3 (0x0008) |
---|
1356 | #define MCF_EDMA_ERR_ERR4 (0x0010) |
---|
1357 | #define MCF_EDMA_ERR_ERR5 (0x0020) |
---|
1358 | #define MCF_EDMA_ERR_ERR6 (0x0040) |
---|
1359 | #define MCF_EDMA_ERR_ERR7 (0x0080) |
---|
1360 | #define MCF_EDMA_ERR_ERR8 (0x0100) |
---|
1361 | #define MCF_EDMA_ERR_ERR9 (0x0200) |
---|
1362 | #define MCF_EDMA_ERR_ERR10 (0x0400) |
---|
1363 | #define MCF_EDMA_ERR_ERR11 (0x0800) |
---|
1364 | #define MCF_EDMA_ERR_ERR12 (0x1000) |
---|
1365 | #define MCF_EDMA_ERR_ERR13 (0x2000) |
---|
1366 | #define MCF_EDMA_ERR_ERR14 (0x4000) |
---|
1367 | #define MCF_EDMA_ERR_ERR15 (0x8000) |
---|
1368 | |
---|
1369 | /* Bit definitions and macros for MCF_EDMA_DCHPRI */ |
---|
1370 | #define MCF_EDMA_DCHPRI_CHPRI(x) (((x)&0x0F)<<0) |
---|
1371 | #define MCF_EDMA_DCHPRI_ECP (0x80) |
---|
1372 | |
---|
1373 | /* Bit definitions and macros for MCF_EDMA_TCD_SADDR */ |
---|
1374 | #define MCF_EDMA_TCD_SADDR_SADDR(x) (((x)&0xFFFFFFFF)<<0) |
---|
1375 | |
---|
1376 | /* Bit definitions and macros for MCF_EDMA_TCD_ATTR */ |
---|
1377 | #define MCF_EDMA_TCD_ATTR_DSIZE(x) (((x)&0x0007)<<0) |
---|
1378 | #define MCF_EDMA_TCD_ATTR_DMOD(x) (((x)&0x001F)<<3) |
---|
1379 | #define MCF_EDMA_TCD_ATTR_SSIZE(x) (((x)&0x0007)<<8) |
---|
1380 | #define MCF_EDMA_TCD_ATTR_SMOD(x) (((x)&0x001F)<<11) |
---|
1381 | #define MCF_EDMA_TCD_ATTR_SSIZE_8BIT (0x0000) |
---|
1382 | #define MCF_EDMA_TCD_ATTR_SSIZE_16BIT (0x0100) |
---|
1383 | #define MCF_EDMA_TCD_ATTR_SSIZE_32BIT (0x0200) |
---|
1384 | #define MCF_EDMA_TCD_ATTR_SSIZE_16BYTE (0x0400) |
---|
1385 | #define MCF_EDMA_TCD_ATTR_DSIZE_8BIT (0x0000) |
---|
1386 | #define MCF_EDMA_TCD_ATTR_DSIZE_16BIT (0x0001) |
---|
1387 | #define MCF_EDMA_TCD_ATTR_DSIZE_32BIT (0x0002) |
---|
1388 | #define MCF_EDMA_TCD_ATTR_DSIZE_16BYTE (0x0004) |
---|
1389 | |
---|
1390 | /* Bit definitions and macros for MCF_EDMA_TCD_SOFF */ |
---|
1391 | #define MCF_EDMA_TCD_SOFF_SOFF(x) (((x)&0xFFFF)<<0) |
---|
1392 | |
---|
1393 | /* Bit definitions and macros for MCF_EDMA_TCD_NBYTES */ |
---|
1394 | #define MCF_EDMA_TCD_NBYTES_NBYTES(x) (((x)&0xFFFFFFFF)<<0) |
---|
1395 | |
---|
1396 | /* Bit definitions and macros for MCF_EDMA_TCD_SLAST */ |
---|
1397 | #define MCF_EDMA_TCD_SLAST_SLAST(x) (((x)&0xFFFFFFFF)<<0) |
---|
1398 | |
---|
1399 | /* Bit definitions and macros for MCF_EDMA_TCD_DADDR */ |
---|
1400 | #define MCF_EDMA_TCD_DADDR_DADDR(x) (((x)&0xFFFFFFFF)<<0) |
---|
1401 | |
---|
1402 | /* Bit definitions and macros for MCF_EDMA_TCD_CITER */ |
---|
1403 | #define MCF_EDMA_TCD_CITER_CITER(x) (((x)&0x7FFF)<<0) |
---|
1404 | #define MCF_EDMA_TCD_CITER_E_LINK (0x8000) |
---|
1405 | |
---|
1406 | /* Bit definitions and macros for MCF_EDMA_TCD_CITER_ELINK */ |
---|
1407 | #define MCF_EDMA_TCD_CITER_ELINK_CITER(x) (((x)&0x01FF)<<0) |
---|
1408 | #define MCF_EDMA_TCD_CITER_ELINK_LINKCH(x) (((x)&0x003F)<<9) |
---|
1409 | #define MCF_EDMA_TCD_CITER_ELINK_E_LINK (0x8000) |
---|
1410 | |
---|
1411 | /* Bit definitions and macros for MCF_EDMA_TCD_DOFF */ |
---|
1412 | #define MCF_EDMA_TCD_DOFF_DOFF(x) (((x)&0xFFFF)<<0) |
---|
1413 | |
---|
1414 | /* Bit definitions and macros for MCF_EDMA_TCD_DLAST_SGA */ |
---|
1415 | #define MCF_EDMA_TCD_DLAST_SGA_DLAST_SGA(x) (((x)&0xFFFFFFFF)<<0) |
---|
1416 | |
---|
1417 | /* Bit definitions and macros for MCF_EDMA_TCD_BITER */ |
---|
1418 | #define MCF_EDMA_TCD_BITER_BITER(x) (((x)&0x7FFF)<<0) |
---|
1419 | #define MCF_EDMA_TCD_BITER_E_LINK (0x8000) |
---|
1420 | |
---|
1421 | /* Bit definitions and macros for MCF_EDMA_TCD_BITER_ELINK */ |
---|
1422 | #define MCF_EDMA_TCD_BITER_ELINK_BITER(x) (((x)&0x01FF)<<0) |
---|
1423 | #define MCF_EDMA_TCD_BITER_ELINK_LINKCH(x) (((x)&0x003F)<<9) |
---|
1424 | #define MCF_EDMA_TCD_BITER_ELINK_E_LINK (0x8000) |
---|
1425 | |
---|
1426 | /* Bit definitions and macros for MCF_EDMA_TCD_CSR */ |
---|
1427 | #define MCF_EDMA_TCD_CSR_START (0x0001) |
---|
1428 | #define MCF_EDMA_TCD_CSR_INT_MAJOR (0x0002) |
---|
1429 | #define MCF_EDMA_TCD_CSR_INT_HALF (0x0004) |
---|
1430 | #define MCF_EDMA_TCD_CSR_D_REQ (0x0008) |
---|
1431 | #define MCF_EDMA_TCD_CSR_E_SG (0x0010) |
---|
1432 | #define MCF_EDMA_TCD_CSR_E_LINK (0x0020) |
---|
1433 | #define MCF_EDMA_TCD_CSR_ACTIVE (0x0040) |
---|
1434 | #define MCF_EDMA_TCD_CSR_DONE (0x0080) |
---|
1435 | #define MCF_EDMA_TCD_CSR_LINKCH(x) (((x)&0x003F)<<8) |
---|
1436 | #define MCF_EDMA_TCD_CSR_BWC(x) (((x)&0x0003)<<14) |
---|
1437 | #define MCF_EDMA_TCD_CSR_BWC_NO_STALL (0x0000) |
---|
1438 | #define MCF_EDMA_TCD_CSR_BWC_4CYC_STALL (0x8000) |
---|
1439 | #define MCF_EDMA_TCD_CSR_BWC_8CYC_STALL (0xC000) |
---|
1440 | |
---|
1441 | /********************************************************************* |
---|
1442 | * |
---|
1443 | * Interrupt Controller (INTC) |
---|
1444 | * |
---|
1445 | *********************************************************************/ |
---|
1446 | |
---|
1447 | /* Register read/write macros */ |
---|
1448 | #define MCF_INTC0_IPRH (*(vuint32*)(0xFC048000)) |
---|
1449 | #define MCF_INTC0_IPRL (*(vuint32*)(0xFC048004)) |
---|
1450 | #define MCF_INTC0_IMRH (*(vuint32*)(0xFC048008)) |
---|
1451 | #define MCF_INTC0_IMRL (*(vuint32*)(0xFC04800C)) |
---|
1452 | #define MCF_INTC0_INTFRCH (*(vuint32*)(0xFC048010)) |
---|
1453 | #define MCF_INTC0_INTFRCL (*(vuint32*)(0xFC048014)) |
---|
1454 | #define MCF_INTC0_ICONFIG (*(vuint16*)(0xFC04801A)) |
---|
1455 | #define MCF_INTC0_SIMR (*(vuint8 *)(0xFC04801C)) |
---|
1456 | #define MCF_INTC0_CIMR (*(vuint8 *)(0xFC04801D)) |
---|
1457 | #define MCF_INTC0_CLMASK (*(vuint8 *)(0xFC04801E)) |
---|
1458 | #define MCF_INTC0_SLMASK (*(vuint8 *)(0xFC04801F)) |
---|
1459 | #define MCF_INTC0_ICR0 (*(vuint8 *)(0xFC048040)) |
---|
1460 | #define MCF_INTC0_ICR1 (*(vuint8 *)(0xFC048041)) |
---|
1461 | #define MCF_INTC0_ICR2 (*(vuint8 *)(0xFC048042)) |
---|
1462 | #define MCF_INTC0_ICR3 (*(vuint8 *)(0xFC048043)) |
---|
1463 | #define MCF_INTC0_ICR4 (*(vuint8 *)(0xFC048044)) |
---|
1464 | #define MCF_INTC0_ICR5 (*(vuint8 *)(0xFC048045)) |
---|
1465 | #define MCF_INTC0_ICR6 (*(vuint8 *)(0xFC048046)) |
---|
1466 | #define MCF_INTC0_ICR7 (*(vuint8 *)(0xFC048047)) |
---|
1467 | #define MCF_INTC0_ICR8 (*(vuint8 *)(0xFC048048)) |
---|
1468 | #define MCF_INTC0_ICR9 (*(vuint8 *)(0xFC048049)) |
---|
1469 | #define MCF_INTC0_ICR10 (*(vuint8 *)(0xFC04804A)) |
---|
1470 | #define MCF_INTC0_ICR11 (*(vuint8 *)(0xFC04804B)) |
---|
1471 | #define MCF_INTC0_ICR12 (*(vuint8 *)(0xFC04804C)) |
---|
1472 | #define MCF_INTC0_ICR13 (*(vuint8 *)(0xFC04804D)) |
---|
1473 | #define MCF_INTC0_ICR14 (*(vuint8 *)(0xFC04804E)) |
---|
1474 | #define MCF_INTC0_ICR15 (*(vuint8 *)(0xFC04804F)) |
---|
1475 | #define MCF_INTC0_ICR16 (*(vuint8 *)(0xFC048050)) |
---|
1476 | #define MCF_INTC0_ICR17 (*(vuint8 *)(0xFC048051)) |
---|
1477 | #define MCF_INTC0_ICR18 (*(vuint8 *)(0xFC048052)) |
---|
1478 | #define MCF_INTC0_ICR19 (*(vuint8 *)(0xFC048053)) |
---|
1479 | #define MCF_INTC0_ICR20 (*(vuint8 *)(0xFC048054)) |
---|
1480 | #define MCF_INTC0_ICR21 (*(vuint8 *)(0xFC048055)) |
---|
1481 | #define MCF_INTC0_ICR22 (*(vuint8 *)(0xFC048056)) |
---|
1482 | #define MCF_INTC0_ICR23 (*(vuint8 *)(0xFC048057)) |
---|
1483 | #define MCF_INTC0_ICR24 (*(vuint8 *)(0xFC048058)) |
---|
1484 | #define MCF_INTC0_ICR25 (*(vuint8 *)(0xFC048059)) |
---|
1485 | #define MCF_INTC0_ICR26 (*(vuint8 *)(0xFC04805A)) |
---|
1486 | #define MCF_INTC0_ICR27 (*(vuint8 *)(0xFC04805B)) |
---|
1487 | #define MCF_INTC0_ICR28 (*(vuint8 *)(0xFC04805C)) |
---|
1488 | #define MCF_INTC0_ICR29 (*(vuint8 *)(0xFC04805D)) |
---|
1489 | #define MCF_INTC0_ICR30 (*(vuint8 *)(0xFC04805E)) |
---|
1490 | #define MCF_INTC0_ICR31 (*(vuint8 *)(0xFC04805F)) |
---|
1491 | #define MCF_INTC0_ICR32 (*(vuint8 *)(0xFC048060)) |
---|
1492 | #define MCF_INTC0_ICR33 (*(vuint8 *)(0xFC048061)) |
---|
1493 | #define MCF_INTC0_ICR34 (*(vuint8 *)(0xFC048062)) |
---|
1494 | #define MCF_INTC0_ICR35 (*(vuint8 *)(0xFC048063)) |
---|
1495 | #define MCF_INTC0_ICR36 (*(vuint8 *)(0xFC048064)) |
---|
1496 | #define MCF_INTC0_ICR37 (*(vuint8 *)(0xFC048065)) |
---|
1497 | #define MCF_INTC0_ICR38 (*(vuint8 *)(0xFC048066)) |
---|
1498 | #define MCF_INTC0_ICR39 (*(vuint8 *)(0xFC048067)) |
---|
1499 | #define MCF_INTC0_ICR40 (*(vuint8 *)(0xFC048068)) |
---|
1500 | #define MCF_INTC0_ICR41 (*(vuint8 *)(0xFC048069)) |
---|
1501 | #define MCF_INTC0_ICR42 (*(vuint8 *)(0xFC04806A)) |
---|
1502 | #define MCF_INTC0_ICR43 (*(vuint8 *)(0xFC04806B)) |
---|
1503 | #define MCF_INTC0_ICR44 (*(vuint8 *)(0xFC04806C)) |
---|
1504 | #define MCF_INTC0_ICR45 (*(vuint8 *)(0xFC04806D)) |
---|
1505 | #define MCF_INTC0_ICR46 (*(vuint8 *)(0xFC04806E)) |
---|
1506 | #define MCF_INTC0_ICR47 (*(vuint8 *)(0xFC04806F)) |
---|
1507 | #define MCF_INTC0_ICR48 (*(vuint8 *)(0xFC048070)) |
---|
1508 | #define MCF_INTC0_ICR49 (*(vuint8 *)(0xFC048071)) |
---|
1509 | #define MCF_INTC0_ICR50 (*(vuint8 *)(0xFC048072)) |
---|
1510 | #define MCF_INTC0_ICR51 (*(vuint8 *)(0xFC048073)) |
---|
1511 | #define MCF_INTC0_ICR52 (*(vuint8 *)(0xFC048074)) |
---|
1512 | #define MCF_INTC0_ICR53 (*(vuint8 *)(0xFC048075)) |
---|
1513 | #define MCF_INTC0_ICR54 (*(vuint8 *)(0xFC048076)) |
---|
1514 | #define MCF_INTC0_ICR55 (*(vuint8 *)(0xFC048077)) |
---|
1515 | #define MCF_INTC0_ICR56 (*(vuint8 *)(0xFC048078)) |
---|
1516 | #define MCF_INTC0_ICR57 (*(vuint8 *)(0xFC048079)) |
---|
1517 | #define MCF_INTC0_ICR58 (*(vuint8 *)(0xFC04807A)) |
---|
1518 | #define MCF_INTC0_ICR59 (*(vuint8 *)(0xFC04807B)) |
---|
1519 | #define MCF_INTC0_ICR60 (*(vuint8 *)(0xFC04807C)) |
---|
1520 | #define MCF_INTC0_ICR61 (*(vuint8 *)(0xFC04807D)) |
---|
1521 | #define MCF_INTC0_ICR62 (*(vuint8 *)(0xFC04807E)) |
---|
1522 | #define MCF_INTC0_ICR63 (*(vuint8 *)(0xFC04807F)) |
---|
1523 | #define MCF_INTC0_ICR(x) (*(vuint8 *)(0xFC048040+((x)*0x001))) |
---|
1524 | #define MCF_INTC0_SWIACK (*(vuint8 *)(0xFC0480E0)) |
---|
1525 | #define MCF_INTC0_L1IACK (*(vuint8 *)(0xFC0480E4)) |
---|
1526 | #define MCF_INTC0_L2IACK (*(vuint8 *)(0xFC0480E8)) |
---|
1527 | #define MCF_INTC0_L3IACK (*(vuint8 *)(0xFC0480EC)) |
---|
1528 | #define MCF_INTC0_L4IACK (*(vuint8 *)(0xFC0480F0)) |
---|
1529 | #define MCF_INTC0_L5IACK (*(vuint8 *)(0xFC0480F4)) |
---|
1530 | #define MCF_INTC0_L6IACK (*(vuint8 *)(0xFC0480F8)) |
---|
1531 | #define MCF_INTC0_L7IACK (*(vuint8 *)(0xFC0480FC)) |
---|
1532 | #define MCF_INTC0_LIACK(x) (*(vuint8 *)(0xFC0480E4+((x-1)*0x004))) |
---|
1533 | #define MCF_INTC1_IPRH (*(vuint32*)(0xFC04C000)) |
---|
1534 | #define MCF_INTC1_IPRL (*(vuint32*)(0xFC04C004)) |
---|
1535 | #define MCF_INTC1_IMRH (*(vuint32*)(0xFC04C008)) |
---|
1536 | #define MCF_INTC1_IMRL (*(vuint32*)(0xFC04C00C)) |
---|
1537 | #define MCF_INTC1_INTFRCH (*(vuint32*)(0xFC04C010)) |
---|
1538 | #define MCF_INTC1_INTFRCL (*(vuint32*)(0xFC04C014)) |
---|
1539 | #define MCF_INTC1_ICONFIG (*(vuint16*)(0xFC04C01A)) |
---|
1540 | #define MCF_INTC1_SIMR (*(vuint8 *)(0xFC04C01C)) |
---|
1541 | #define MCF_INTC1_CIMR (*(vuint8 *)(0xFC04C01D)) |
---|
1542 | #define MCF_INTC1_CLMASK (*(vuint8 *)(0xFC04C01E)) |
---|
1543 | #define MCF_INTC1_SLMASK (*(vuint8 *)(0xFC04C01F)) |
---|
1544 | #define MCF_INTC1_ICR0 (*(vuint8 *)(0xFC04C040)) |
---|
1545 | #define MCF_INTC1_ICR1 (*(vuint8 *)(0xFC04C041)) |
---|
1546 | #define MCF_INTC1_ICR2 (*(vuint8 *)(0xFC04C042)) |
---|
1547 | #define MCF_INTC1_ICR3 (*(vuint8 *)(0xFC04C043)) |
---|
1548 | #define MCF_INTC1_ICR4 (*(vuint8 *)(0xFC04C044)) |
---|
1549 | #define MCF_INTC1_ICR5 (*(vuint8 *)(0xFC04C045)) |
---|
1550 | #define MCF_INTC1_ICR6 (*(vuint8 *)(0xFC04C046)) |
---|
1551 | #define MCF_INTC1_ICR7 (*(vuint8 *)(0xFC04C047)) |
---|
1552 | #define MCF_INTC1_ICR8 (*(vuint8 *)(0xFC04C048)) |
---|
1553 | #define MCF_INTC1_ICR9 (*(vuint8 *)(0xFC04C049)) |
---|
1554 | #define MCF_INTC1_ICR10 (*(vuint8 *)(0xFC04C04A)) |
---|
1555 | #define MCF_INTC1_ICR11 (*(vuint8 *)(0xFC04C04B)) |
---|
1556 | #define MCF_INTC1_ICR12 (*(vuint8 *)(0xFC04C04C)) |
---|
1557 | #define MCF_INTC1_ICR13 (*(vuint8 *)(0xFC04C04D)) |
---|
1558 | #define MCF_INTC1_ICR14 (*(vuint8 *)(0xFC04C04E)) |
---|
1559 | #define MCF_INTC1_ICR15 (*(vuint8 *)(0xFC04C04F)) |
---|
1560 | #define MCF_INTC1_ICR16 (*(vuint8 *)(0xFC04C050)) |
---|
1561 | #define MCF_INTC1_ICR17 (*(vuint8 *)(0xFC04C051)) |
---|
1562 | #define MCF_INTC1_ICR18 (*(vuint8 *)(0xFC04C052)) |
---|
1563 | #define MCF_INTC1_ICR19 (*(vuint8 *)(0xFC04C053)) |
---|
1564 | #define MCF_INTC1_ICR20 (*(vuint8 *)(0xFC04C054)) |
---|
1565 | #define MCF_INTC1_ICR21 (*(vuint8 *)(0xFC04C055)) |
---|
1566 | #define MCF_INTC1_ICR22 (*(vuint8 *)(0xFC04C056)) |
---|
1567 | #define MCF_INTC1_ICR23 (*(vuint8 *)(0xFC04C057)) |
---|
1568 | #define MCF_INTC1_ICR24 (*(vuint8 *)(0xFC04C058)) |
---|
1569 | #define MCF_INTC1_ICR25 (*(vuint8 *)(0xFC04C059)) |
---|
1570 | #define MCF_INTC1_ICR26 (*(vuint8 *)(0xFC04C05A)) |
---|
1571 | #define MCF_INTC1_ICR27 (*(vuint8 *)(0xFC04C05B)) |
---|
1572 | #define MCF_INTC1_ICR28 (*(vuint8 *)(0xFC04C05C)) |
---|
1573 | #define MCF_INTC1_ICR29 (*(vuint8 *)(0xFC04C05D)) |
---|
1574 | #define MCF_INTC1_ICR30 (*(vuint8 *)(0xFC04C05E)) |
---|
1575 | #define MCF_INTC1_ICR31 (*(vuint8 *)(0xFC04C05F)) |
---|
1576 | #define MCF_INTC1_ICR32 (*(vuint8 *)(0xFC04C060)) |
---|
1577 | #define MCF_INTC1_ICR33 (*(vuint8 *)(0xFC04C061)) |
---|
1578 | #define MCF_INTC1_ICR34 (*(vuint8 *)(0xFC04C062)) |
---|
1579 | #define MCF_INTC1_ICR35 (*(vuint8 *)(0xFC04C063)) |
---|
1580 | #define MCF_INTC1_ICR36 (*(vuint8 *)(0xFC04C064)) |
---|
1581 | #define MCF_INTC1_ICR37 (*(vuint8 *)(0xFC04C065)) |
---|
1582 | #define MCF_INTC1_ICR38 (*(vuint8 *)(0xFC04C066)) |
---|
1583 | #define MCF_INTC1_ICR39 (*(vuint8 *)(0xFC04C067)) |
---|
1584 | #define MCF_INTC1_ICR40 (*(vuint8 *)(0xFC04C068)) |
---|
1585 | #define MCF_INTC1_ICR41 (*(vuint8 *)(0xFC04C069)) |
---|
1586 | #define MCF_INTC1_ICR42 (*(vuint8 *)(0xFC04C06A)) |
---|
1587 | #define MCF_INTC1_ICR43 (*(vuint8 *)(0xFC04C06B)) |
---|
1588 | #define MCF_INTC1_ICR44 (*(vuint8 *)(0xFC04C06C)) |
---|
1589 | #define MCF_INTC1_ICR45 (*(vuint8 *)(0xFC04C06D)) |
---|
1590 | #define MCF_INTC1_ICR46 (*(vuint8 *)(0xFC04C06E)) |
---|
1591 | #define MCF_INTC1_ICR47 (*(vuint8 *)(0xFC04C06F)) |
---|
1592 | #define MCF_INTC1_ICR48 (*(vuint8 *)(0xFC04C070)) |
---|
1593 | #define MCF_INTC1_ICR49 (*(vuint8 *)(0xFC04C071)) |
---|
1594 | #define MCF_INTC1_ICR50 (*(vuint8 *)(0xFC04C072)) |
---|
1595 | #define MCF_INTC1_ICR51 (*(vuint8 *)(0xFC04C073)) |
---|
1596 | #define MCF_INTC1_ICR52 (*(vuint8 *)(0xFC04C074)) |
---|
1597 | #define MCF_INTC1_ICR53 (*(vuint8 *)(0xFC04C075)) |
---|
1598 | #define MCF_INTC1_ICR54 (*(vuint8 *)(0xFC04C076)) |
---|
1599 | #define MCF_INTC1_ICR55 (*(vuint8 *)(0xFC04C077)) |
---|
1600 | #define MCF_INTC1_ICR56 (*(vuint8 *)(0xFC04C078)) |
---|
1601 | #define MCF_INTC1_ICR57 (*(vuint8 *)(0xFC04C079)) |
---|
1602 | #define MCF_INTC1_ICR58 (*(vuint8 *)(0xFC04C07A)) |
---|
1603 | #define MCF_INTC1_ICR59 (*(vuint8 *)(0xFC04C07B)) |
---|
1604 | #define MCF_INTC1_ICR60 (*(vuint8 *)(0xFC04C07C)) |
---|
1605 | #define MCF_INTC1_ICR61 (*(vuint8 *)(0xFC04C07D)) |
---|
1606 | #define MCF_INTC1_ICR62 (*(vuint8 *)(0xFC04C07E)) |
---|
1607 | #define MCF_INTC1_ICR63 (*(vuint8 *)(0xFC04C07F)) |
---|
1608 | #define MCF_INTC1_ICR(x) (*(vuint8 *)(0xFC04C040+((x)*0x001))) |
---|
1609 | #define MCF_INTC1_SWIACK (*(vuint8 *)(0xFC04C0E0)) |
---|
1610 | #define MCF_INTC1_L1IACK (*(vuint8 *)(0xFC04C0E4)) |
---|
1611 | #define MCF_INTC1_L2IACK (*(vuint8 *)(0xFC04C0E8)) |
---|
1612 | #define MCF_INTC1_L3IACK (*(vuint8 *)(0xFC04C0EC)) |
---|
1613 | #define MCF_INTC1_L4IACK (*(vuint8 *)(0xFC04C0F0)) |
---|
1614 | #define MCF_INTC1_L5IACK (*(vuint8 *)(0xFC04C0F4)) |
---|
1615 | #define MCF_INTC1_L6IACK (*(vuint8 *)(0xFC04C0F8)) |
---|
1616 | #define MCF_INTC1_L7IACK (*(vuint8 *)(0xFC04C0FC)) |
---|
1617 | #define MCF_INTC1_LIACK(x) (*(vuint8 *)(0xFC04C0E4+((x-1)*0x004))) |
---|
1618 | #define MCF_INTC_IPRH(x) (*(vuint32*)(0xFC048000+((x)*0x4000))) |
---|
1619 | #define MCF_INTC_IPRL(x) (*(vuint32*)(0xFC048004+((x)*0x4000))) |
---|
1620 | #define MCF_INTC_IMRH(x) (*(vuint32*)(0xFC048008+((x)*0x4000))) |
---|
1621 | #define MCF_INTC_IMRL(x) (*(vuint32*)(0xFC04800C+((x)*0x4000))) |
---|
1622 | #define MCF_INTC_INTFRCH(x) (*(vuint32*)(0xFC048010+((x)*0x4000))) |
---|
1623 | #define MCF_INTC_INTFRCL(x) (*(vuint32*)(0xFC048014+((x)*0x4000))) |
---|
1624 | #define MCF_INTC_ICONFIG(x) (*(vuint16*)(0xFC04801A+((x)*0x4000))) |
---|
1625 | #define MCF_INTC_SIMR(x) (*(vuint8 *)(0xFC04801C+((x)*0x4000))) |
---|
1626 | #define MCF_INTC_CIMR(x) (*(vuint8 *)(0xFC04801D+((x)*0x4000))) |
---|
1627 | #define MCF_INTC_CLMASK(x) (*(vuint8 *)(0xFC04801E+((x)*0x4000))) |
---|
1628 | #define MCF_INTC_SLMASK(x) (*(vuint8 *)(0xFC04801F+((x)*0x4000))) |
---|
1629 | #define MCF_INTC_ICR0(x) (*(vuint8 *)(0xFC048040+((x)*0x4000))) |
---|
1630 | #define MCF_INTC_ICR1(x) (*(vuint8 *)(0xFC048041+((x)*0x4000))) |
---|
1631 | #define MCF_INTC_ICR2(x) (*(vuint8 *)(0xFC048042+((x)*0x4000))) |
---|
1632 | #define MCF_INTC_ICR3(x) (*(vuint8 *)(0xFC048043+((x)*0x4000))) |
---|
1633 | #define MCF_INTC_ICR4(x) (*(vuint8 *)(0xFC048044+((x)*0x4000))) |
---|
1634 | #define MCF_INTC_ICR5(x) (*(vuint8 *)(0xFC048045+((x)*0x4000))) |
---|
1635 | #define MCF_INTC_ICR6(x) (*(vuint8 *)(0xFC048046+((x)*0x4000))) |
---|
1636 | #define MCF_INTC_ICR7(x) (*(vuint8 *)(0xFC048047+((x)*0x4000))) |
---|
1637 | #define MCF_INTC_ICR8(x) (*(vuint8 *)(0xFC048048+((x)*0x4000))) |
---|
1638 | #define MCF_INTC_ICR9(x) (*(vuint8 *)(0xFC048049+((x)*0x4000))) |
---|
1639 | #define MCF_INTC_ICR10(x) (*(vuint8 *)(0xFC04804A+((x)*0x4000))) |
---|
1640 | #define MCF_INTC_ICR11(x) (*(vuint8 *)(0xFC04804B+((x)*0x4000))) |
---|
1641 | #define MCF_INTC_ICR12(x) (*(vuint8 *)(0xFC04804C+((x)*0x4000))) |
---|
1642 | #define MCF_INTC_ICR13(x) (*(vuint8 *)(0xFC04804D+((x)*0x4000))) |
---|
1643 | #define MCF_INTC_ICR14(x) (*(vuint8 *)(0xFC04804E+((x)*0x4000))) |
---|
1644 | #define MCF_INTC_ICR15(x) (*(vuint8 *)(0xFC04804F+((x)*0x4000))) |
---|
1645 | #define MCF_INTC_ICR16(x) (*(vuint8 *)(0xFC048050+((x)*0x4000))) |
---|
1646 | #define MCF_INTC_ICR17(x) (*(vuint8 *)(0xFC048051+((x)*0x4000))) |
---|
1647 | #define MCF_INTC_ICR18(x) (*(vuint8 *)(0xFC048052+((x)*0x4000))) |
---|
1648 | #define MCF_INTC_ICR19(x) (*(vuint8 *)(0xFC048053+((x)*0x4000))) |
---|
1649 | #define MCF_INTC_ICR20(x) (*(vuint8 *)(0xFC048054+((x)*0x4000))) |
---|
1650 | #define MCF_INTC_ICR21(x) (*(vuint8 *)(0xFC048055+((x)*0x4000))) |
---|
1651 | #define MCF_INTC_ICR22(x) (*(vuint8 *)(0xFC048056+((x)*0x4000))) |
---|
1652 | #define MCF_INTC_ICR23(x) (*(vuint8 *)(0xFC048057+((x)*0x4000))) |
---|
1653 | #define MCF_INTC_ICR24(x) (*(vuint8 *)(0xFC048058+((x)*0x4000))) |
---|
1654 | #define MCF_INTC_ICR25(x) (*(vuint8 *)(0xFC048059+((x)*0x4000))) |
---|
1655 | #define MCF_INTC_ICR26(x) (*(vuint8 *)(0xFC04805A+((x)*0x4000))) |
---|
1656 | #define MCF_INTC_ICR27(x) (*(vuint8 *)(0xFC04805B+((x)*0x4000))) |
---|
1657 | #define MCF_INTC_ICR28(x) (*(vuint8 *)(0xFC04805C+((x)*0x4000))) |
---|
1658 | #define MCF_INTC_ICR29(x) (*(vuint8 *)(0xFC04805D+((x)*0x4000))) |
---|
1659 | #define MCF_INTC_ICR30(x) (*(vuint8 *)(0xFC04805E+((x)*0x4000))) |
---|
1660 | #define MCF_INTC_ICR31(x) (*(vuint8 *)(0xFC04805F+((x)*0x4000))) |
---|
1661 | #define MCF_INTC_ICR32(x) (*(vuint8 *)(0xFC048060+((x)*0x4000))) |
---|
1662 | #define MCF_INTC_ICR33(x) (*(vuint8 *)(0xFC048061+((x)*0x4000))) |
---|
1663 | #define MCF_INTC_ICR34(x) (*(vuint8 *)(0xFC048062+((x)*0x4000))) |
---|
1664 | #define MCF_INTC_ICR35(x) (*(vuint8 *)(0xFC048063+((x)*0x4000))) |
---|
1665 | #define MCF_INTC_ICR36(x) (*(vuint8 *)(0xFC048064+((x)*0x4000))) |
---|
1666 | #define MCF_INTC_ICR37(x) (*(vuint8 *)(0xFC048065+((x)*0x4000))) |
---|
1667 | #define MCF_INTC_ICR38(x) (*(vuint8 *)(0xFC048066+((x)*0x4000))) |
---|
1668 | #define MCF_INTC_ICR39(x) (*(vuint8 *)(0xFC048067+((x)*0x4000))) |
---|
1669 | #define MCF_INTC_ICR40(x) (*(vuint8 *)(0xFC048068+((x)*0x4000))) |
---|
1670 | #define MCF_INTC_ICR41(x) (*(vuint8 *)(0xFC048069+((x)*0x4000))) |
---|
1671 | #define MCF_INTC_ICR42(x) (*(vuint8 *)(0xFC04806A+((x)*0x4000))) |
---|
1672 | #define MCF_INTC_ICR43(x) (*(vuint8 *)(0xFC04806B+((x)*0x4000))) |
---|
1673 | #define MCF_INTC_ICR44(x) (*(vuint8 *)(0xFC04806C+((x)*0x4000))) |
---|
1674 | #define MCF_INTC_ICR45(x) (*(vuint8 *)(0xFC04806D+((x)*0x4000))) |
---|
1675 | #define MCF_INTC_ICR46(x) (*(vuint8 *)(0xFC04806E+((x)*0x4000))) |
---|
1676 | #define MCF_INTC_ICR47(x) (*(vuint8 *)(0xFC04806F+((x)*0x4000))) |
---|
1677 | #define MCF_INTC_ICR48(x) (*(vuint8 *)(0xFC048070+((x)*0x4000))) |
---|
1678 | #define MCF_INTC_ICR49(x) (*(vuint8 *)(0xFC048071+((x)*0x4000))) |
---|
1679 | #define MCF_INTC_ICR50(x) (*(vuint8 *)(0xFC048072+((x)*0x4000))) |
---|
1680 | #define MCF_INTC_ICR51(x) (*(vuint8 *)(0xFC048073+((x)*0x4000))) |
---|
1681 | #define MCF_INTC_ICR52(x) (*(vuint8 *)(0xFC048074+((x)*0x4000))) |
---|
1682 | #define MCF_INTC_ICR53(x) (*(vuint8 *)(0xFC048075+((x)*0x4000))) |
---|
1683 | #define MCF_INTC_ICR54(x) (*(vuint8 *)(0xFC048076+((x)*0x4000))) |
---|
1684 | #define MCF_INTC_ICR55(x) (*(vuint8 *)(0xFC048077+((x)*0x4000))) |
---|
1685 | #define MCF_INTC_ICR56(x) (*(vuint8 *)(0xFC048078+((x)*0x4000))) |
---|
1686 | #define MCF_INTC_ICR57(x) (*(vuint8 *)(0xFC048079+((x)*0x4000))) |
---|
1687 | #define MCF_INTC_ICR58(x) (*(vuint8 *)(0xFC04807A+((x)*0x4000))) |
---|
1688 | #define MCF_INTC_ICR59(x) (*(vuint8 *)(0xFC04807B+((x)*0x4000))) |
---|
1689 | #define MCF_INTC_ICR60(x) (*(vuint8 *)(0xFC04807C+((x)*0x4000))) |
---|
1690 | #define MCF_INTC_ICR61(x) (*(vuint8 *)(0xFC04807D+((x)*0x4000))) |
---|
1691 | #define MCF_INTC_ICR62(x) (*(vuint8 *)(0xFC04807E+((x)*0x4000))) |
---|
1692 | #define MCF_INTC_ICR63(x) (*(vuint8 *)(0xFC04807F+((x)*0x4000))) |
---|
1693 | #define MCF_INTC_SWIACK(x) (*(vuint8 *)(0xFC0480E0+((x)*0x4000))) |
---|
1694 | #define MCF_INTC_L1IACK(x) (*(vuint8 *)(0xFC0480E4+((x)*0x4000))) |
---|
1695 | #define MCF_INTC_L2IACK(x) (*(vuint8 *)(0xFC0480E8+((x)*0x4000))) |
---|
1696 | #define MCF_INTC_L3IACK(x) (*(vuint8 *)(0xFC0480EC+((x)*0x4000))) |
---|
1697 | #define MCF_INTC_L4IACK(x) (*(vuint8 *)(0xFC0480F0+((x)*0x4000))) |
---|
1698 | #define MCF_INTC_L5IACK(x) (*(vuint8 *)(0xFC0480F4+((x)*0x4000))) |
---|
1699 | #define MCF_INTC_L6IACK(x) (*(vuint8 *)(0xFC0480F8+((x)*0x4000))) |
---|
1700 | #define MCF_INTC_L7IACK(x) (*(vuint8 *)(0xFC0480FC+((x)*0x4000))) |
---|
1701 | |
---|
1702 | /* Bit definitions and macros for MCF_INTC_IPRH */ |
---|
1703 | #define MCF_INTC_IPRH_INT32 (0x00000001) |
---|
1704 | #define MCF_INTC_IPRH_INT33 (0x00000002) |
---|
1705 | #define MCF_INTC_IPRH_INT34 (0x00000004) |
---|
1706 | #define MCF_INTC_IPRH_INT35 (0x00000008) |
---|
1707 | #define MCF_INTC_IPRH_INT36 (0x00000010) |
---|
1708 | #define MCF_INTC_IPRH_INT37 (0x00000020) |
---|
1709 | #define MCF_INTC_IPRH_INT38 (0x00000040) |
---|
1710 | #define MCF_INTC_IPRH_INT39 (0x00000080) |
---|
1711 | #define MCF_INTC_IPRH_INT40 (0x00000100) |
---|
1712 | #define MCF_INTC_IPRH_INT41 (0x00000200) |
---|
1713 | #define MCF_INTC_IPRH_INT42 (0x00000400) |
---|
1714 | #define MCF_INTC_IPRH_INT43 (0x00000800) |
---|
1715 | #define MCF_INTC_IPRH_INT44 (0x00001000) |
---|
1716 | #define MCF_INTC_IPRH_INT45 (0x00002000) |
---|
1717 | #define MCF_INTC_IPRH_INT46 (0x00004000) |
---|
1718 | #define MCF_INTC_IPRH_INT47 (0x00008000) |
---|
1719 | #define MCF_INTC_IPRH_INT48 (0x00010000) |
---|
1720 | #define MCF_INTC_IPRH_INT49 (0x00020000) |
---|
1721 | #define MCF_INTC_IPRH_INT50 (0x00040000) |
---|
1722 | #define MCF_INTC_IPRH_INT51 (0x00080000) |
---|
1723 | #define MCF_INTC_IPRH_INT52 (0x00100000) |
---|
1724 | #define MCF_INTC_IPRH_INT53 (0x00200000) |
---|
1725 | #define MCF_INTC_IPRH_INT54 (0x00400000) |
---|
1726 | #define MCF_INTC_IPRH_INT55 (0x00800000) |
---|
1727 | #define MCF_INTC_IPRH_INT56 (0x01000000) |
---|
1728 | #define MCF_INTC_IPRH_INT57 (0x02000000) |
---|
1729 | #define MCF_INTC_IPRH_INT58 (0x04000000) |
---|
1730 | #define MCF_INTC_IPRH_INT59 (0x08000000) |
---|
1731 | #define MCF_INTC_IPRH_INT60 (0x10000000) |
---|
1732 | #define MCF_INTC_IPRH_INT61 (0x20000000) |
---|
1733 | #define MCF_INTC_IPRH_INT62 (0x40000000) |
---|
1734 | #define MCF_INTC_IPRH_INT63 (0x80000000) |
---|
1735 | |
---|
1736 | /* Bit definitions and macros for MCF_INTC_IPRL */ |
---|
1737 | #define MCF_INTC_IPRL_INT0 (0x00000001) |
---|
1738 | #define MCF_INTC_IPRL_INT1 (0x00000002) |
---|
1739 | #define MCF_INTC_IPRL_INT2 (0x00000004) |
---|
1740 | #define MCF_INTC_IPRL_INT3 (0x00000008) |
---|
1741 | #define MCF_INTC_IPRL_INT4 (0x00000010) |
---|
1742 | #define MCF_INTC_IPRL_INT5 (0x00000020) |
---|
1743 | #define MCF_INTC_IPRL_INT6 (0x00000040) |
---|
1744 | #define MCF_INTC_IPRL_INT7 (0x00000080) |
---|
1745 | #define MCF_INTC_IPRL_INT8 (0x00000100) |
---|
1746 | #define MCF_INTC_IPRL_INT9 (0x00000200) |
---|
1747 | #define MCF_INTC_IPRL_INT10 (0x00000400) |
---|
1748 | #define MCF_INTC_IPRL_INT11 (0x00000800) |
---|
1749 | #define MCF_INTC_IPRL_INT12 (0x00001000) |
---|
1750 | #define MCF_INTC_IPRL_INT13 (0x00002000) |
---|
1751 | #define MCF_INTC_IPRL_INT14 (0x00004000) |
---|
1752 | #define MCF_INTC_IPRL_INT15 (0x00008000) |
---|
1753 | #define MCF_INTC_IPRL_INT16 (0x00010000) |
---|
1754 | #define MCF_INTC_IPRL_INT17 (0x00020000) |
---|
1755 | #define MCF_INTC_IPRL_INT18 (0x00040000) |
---|
1756 | #define MCF_INTC_IPRL_INT19 (0x00080000) |
---|
1757 | #define MCF_INTC_IPRL_INT20 (0x00100000) |
---|
1758 | #define MCF_INTC_IPRL_INT21 (0x00200000) |
---|
1759 | #define MCF_INTC_IPRL_INT22 (0x00400000) |
---|
1760 | #define MCF_INTC_IPRL_INT23 (0x00800000) |
---|
1761 | #define MCF_INTC_IPRL_INT24 (0x01000000) |
---|
1762 | #define MCF_INTC_IPRL_INT25 (0x02000000) |
---|
1763 | #define MCF_INTC_IPRL_INT26 (0x04000000) |
---|
1764 | #define MCF_INTC_IPRL_INT27 (0x08000000) |
---|
1765 | #define MCF_INTC_IPRL_INT28 (0x10000000) |
---|
1766 | #define MCF_INTC_IPRL_INT29 (0x20000000) |
---|
1767 | #define MCF_INTC_IPRL_INT30 (0x40000000) |
---|
1768 | #define MCF_INTC_IPRL_INT31 (0x80000000) |
---|
1769 | |
---|
1770 | /* Bit definitions and macros for MCF_INTC_IMRH */ |
---|
1771 | #define MCF_INTC_IMRH_INT_MASK32 (0x00000001) |
---|
1772 | #define MCF_INTC_IMRH_INT_MASK33 (0x00000002) |
---|
1773 | #define MCF_INTC_IMRH_INT_MASK34 (0x00000004) |
---|
1774 | #define MCF_INTC_IMRH_INT_MASK35 (0x00000008) |
---|
1775 | #define MCF_INTC_IMRH_INT_MASK36 (0x00000010) |
---|
1776 | #define MCF_INTC_IMRH_INT_MASK37 (0x00000020) |
---|
1777 | #define MCF_INTC_IMRH_INT_MASK38 (0x00000040) |
---|
1778 | #define MCF_INTC_IMRH_INT_MASK39 (0x00000080) |
---|
1779 | #define MCF_INTC_IMRH_INT_MASK40 (0x00000100) |
---|
1780 | #define MCF_INTC_IMRH_INT_MASK41 (0x00000200) |
---|
1781 | #define MCF_INTC_IMRH_INT_MASK42 (0x00000400) |
---|
1782 | #define MCF_INTC_IMRH_INT_MASK43 (0x00000800) |
---|
1783 | #define MCF_INTC_IMRH_INT_MASK44 (0x00001000) |
---|
1784 | #define MCF_INTC_IMRH_INT_MASK45 (0x00002000) |
---|
1785 | #define MCF_INTC_IMRH_INT_MASK46 (0x00004000) |
---|
1786 | #define MCF_INTC_IMRH_INT_MASK47 (0x00008000) |
---|
1787 | #define MCF_INTC_IMRH_INT_MASK48 (0x00010000) |
---|
1788 | #define MCF_INTC_IMRH_INT_MASK49 (0x00020000) |
---|
1789 | #define MCF_INTC_IMRH_INT_MASK50 (0x00040000) |
---|
1790 | #define MCF_INTC_IMRH_INT_MASK51 (0x00080000) |
---|
1791 | #define MCF_INTC_IMRH_INT_MASK52 (0x00100000) |
---|
1792 | #define MCF_INTC_IMRH_INT_MASK53 (0x00200000) |
---|
1793 | #define MCF_INTC_IMRH_INT_MASK54 (0x00400000) |
---|
1794 | #define MCF_INTC_IMRH_INT_MASK55 (0x00800000) |
---|
1795 | #define MCF_INTC_IMRH_INT_MASK56 (0x01000000) |
---|
1796 | #define MCF_INTC_IMRH_INT_MASK57 (0x02000000) |
---|
1797 | #define MCF_INTC_IMRH_INT_MASK58 (0x04000000) |
---|
1798 | #define MCF_INTC_IMRH_INT_MASK59 (0x08000000) |
---|
1799 | #define MCF_INTC_IMRH_INT_MASK60 (0x10000000) |
---|
1800 | #define MCF_INTC_IMRH_INT_MASK61 (0x20000000) |
---|
1801 | #define MCF_INTC_IMRH_INT_MASK62 (0x40000000) |
---|
1802 | #define MCF_INTC_IMRH_INT_MASK63 (0x80000000) |
---|
1803 | |
---|
1804 | /* Bit definitions and macros for MCF_INTC_IMRL */ |
---|
1805 | #define MCF_INTC_IMRL_INT_MASK0 (0x00000001) |
---|
1806 | #define MCF_INTC_IMRL_INT_MASK1 (0x00000002) |
---|
1807 | #define MCF_INTC_IMRL_INT_MASK2 (0x00000004) |
---|
1808 | #define MCF_INTC_IMRL_INT_MASK3 (0x00000008) |
---|
1809 | #define MCF_INTC_IMRL_INT_MASK4 (0x00000010) |
---|
1810 | #define MCF_INTC_IMRL_INT_MASK5 (0x00000020) |
---|
1811 | #define MCF_INTC_IMRL_INT_MASK6 (0x00000040) |
---|
1812 | #define MCF_INTC_IMRL_INT_MASK7 (0x00000080) |
---|
1813 | #define MCF_INTC_IMRL_INT_MASK8 (0x00000100) |
---|
1814 | #define MCF_INTC_IMRL_INT_MASK9 (0x00000200) |
---|
1815 | #define MCF_INTC_IMRL_INT_MASK10 (0x00000400) |
---|
1816 | #define MCF_INTC_IMRL_INT_MASK11 (0x00000800) |
---|
1817 | #define MCF_INTC_IMRL_INT_MASK12 (0x00001000) |
---|
1818 | #define MCF_INTC_IMRL_INT_MASK13 (0x00002000) |
---|
1819 | #define MCF_INTC_IMRL_INT_MASK14 (0x00004000) |
---|
1820 | #define MCF_INTC_IMRL_INT_MASK15 (0x00008000) |
---|
1821 | #define MCF_INTC_IMRL_INT_MASK16 (0x00010000) |
---|
1822 | #define MCF_INTC_IMRL_INT_MASK17 (0x00020000) |
---|
1823 | #define MCF_INTC_IMRL_INT_MASK18 (0x00040000) |
---|
1824 | #define MCF_INTC_IMRL_INT_MASK19 (0x00080000) |
---|
1825 | #define MCF_INTC_IMRL_INT_MASK20 (0x00100000) |
---|
1826 | #define MCF_INTC_IMRL_INT_MASK21 (0x00200000) |
---|
1827 | #define MCF_INTC_IMRL_INT_MASK22 (0x00400000) |
---|
1828 | #define MCF_INTC_IMRL_INT_MASK23 (0x00800000) |
---|
1829 | #define MCF_INTC_IMRL_INT_MASK24 (0x01000000) |
---|
1830 | #define MCF_INTC_IMRL_INT_MASK25 (0x02000000) |
---|
1831 | #define MCF_INTC_IMRL_INT_MASK26 (0x04000000) |
---|
1832 | #define MCF_INTC_IMRL_INT_MASK27 (0x08000000) |
---|
1833 | #define MCF_INTC_IMRL_INT_MASK28 (0x10000000) |
---|
1834 | #define MCF_INTC_IMRL_INT_MASK29 (0x20000000) |
---|
1835 | #define MCF_INTC_IMRL_INT_MASK30 (0x40000000) |
---|
1836 | #define MCF_INTC_IMRL_INT_MASK31 (0x80000000) |
---|
1837 | |
---|
1838 | /* Bit definitions and macros for MCF_INTC_INTFRCH */ |
---|
1839 | #define MCF_INTC_INTFRCH_INTFRC32 (0x00000001) |
---|
1840 | #define MCF_INTC_INTFRCH_INTFRC33 (0x00000002) |
---|
1841 | #define MCF_INTC_INTFRCH_INTFRC34 (0x00000004) |
---|
1842 | #define MCF_INTC_INTFRCH_INTFRC35 (0x00000008) |
---|
1843 | #define MCF_INTC_INTFRCH_INTFRC36 (0x00000010) |
---|
1844 | #define MCF_INTC_INTFRCH_INTFRC37 (0x00000020) |
---|
1845 | #define MCF_INTC_INTFRCH_INTFRC38 (0x00000040) |
---|
1846 | #define MCF_INTC_INTFRCH_INTFRC39 (0x00000080) |
---|
1847 | #define MCF_INTC_INTFRCH_INTFRC40 (0x00000100) |
---|
1848 | #define MCF_INTC_INTFRCH_INTFRC41 (0x00000200) |
---|
1849 | #define MCF_INTC_INTFRCH_INTFRC42 (0x00000400) |
---|
1850 | #define MCF_INTC_INTFRCH_INTFRC43 (0x00000800) |
---|
1851 | #define MCF_INTC_INTFRCH_INTFRC44 (0x00001000) |
---|
1852 | #define MCF_INTC_INTFRCH_INTFRC45 (0x00002000) |
---|
1853 | #define MCF_INTC_INTFRCH_INTFRC46 (0x00004000) |
---|
1854 | #define MCF_INTC_INTFRCH_INTFRC47 (0x00008000) |
---|
1855 | #define MCF_INTC_INTFRCH_INTFRC48 (0x00010000) |
---|
1856 | #define MCF_INTC_INTFRCH_INTFRC49 (0x00020000) |
---|
1857 | #define MCF_INTC_INTFRCH_INTFRC50 (0x00040000) |
---|
1858 | #define MCF_INTC_INTFRCH_INTFRC51 (0x00080000) |
---|
1859 | #define MCF_INTC_INTFRCH_INTFRC52 (0x00100000) |
---|
1860 | #define MCF_INTC_INTFRCH_INTFRC53 (0x00200000) |
---|
1861 | #define MCF_INTC_INTFRCH_INTFRC54 (0x00400000) |
---|
1862 | #define MCF_INTC_INTFRCH_INTFRC55 (0x00800000) |
---|
1863 | #define MCF_INTC_INTFRCH_INTFRC56 (0x01000000) |
---|
1864 | #define MCF_INTC_INTFRCH_INTFRC57 (0x02000000) |
---|
1865 | #define MCF_INTC_INTFRCH_INTFRC58 (0x04000000) |
---|
1866 | #define MCF_INTC_INTFRCH_INTFRC59 (0x08000000) |
---|
1867 | #define MCF_INTC_INTFRCH_INTFRC60 (0x10000000) |
---|
1868 | #define MCF_INTC_INTFRCH_INTFRC61 (0x20000000) |
---|
1869 | #define MCF_INTC_INTFRCH_INTFRC62 (0x40000000) |
---|
1870 | #define MCF_INTC_INTFRCH_INTFRC63 (0x80000000) |
---|
1871 | |
---|
1872 | /* Bit definitions and macros for MCF_INTC_INTFRCL */ |
---|
1873 | #define MCF_INTC_INTFRCL_INTFRC0 (0x00000001) |
---|
1874 | #define MCF_INTC_INTFRCL_INTFRC1 (0x00000002) |
---|
1875 | #define MCF_INTC_INTFRCL_INTFRC2 (0x00000004) |
---|
1876 | #define MCF_INTC_INTFRCL_INTFRC3 (0x00000008) |
---|
1877 | #define MCF_INTC_INTFRCL_INTFRC4 (0x00000010) |
---|
1878 | #define MCF_INTC_INTFRCL_INTFRC5 (0x00000020) |
---|
1879 | #define MCF_INTC_INTFRCL_INTFRC6 (0x00000040) |
---|
1880 | #define MCF_INTC_INTFRCL_INTFRC7 (0x00000080) |
---|
1881 | #define MCF_INTC_INTFRCL_INTFRC8 (0x00000100) |
---|
1882 | #define MCF_INTC_INTFRCL_INTFRC9 (0x00000200) |
---|
1883 | #define MCF_INTC_INTFRCL_INTFRC10 (0x00000400) |
---|
1884 | #define MCF_INTC_INTFRCL_INTFRC11 (0x00000800) |
---|
1885 | #define MCF_INTC_INTFRCL_INTFRC12 (0x00001000) |
---|
1886 | #define MCF_INTC_INTFRCL_INTFRC13 (0x00002000) |
---|
1887 | #define MCF_INTC_INTFRCL_INTFRC14 (0x00004000) |
---|
1888 | #define MCF_INTC_INTFRCL_INTFRC15 (0x00008000) |
---|
1889 | #define MCF_INTC_INTFRCL_INTFRC16 (0x00010000) |
---|
1890 | #define MCF_INTC_INTFRCL_INTFRC17 (0x00020000) |
---|
1891 | #define MCF_INTC_INTFRCL_INTFRC18 (0x00040000) |
---|
1892 | #define MCF_INTC_INTFRCL_INTFRC19 (0x00080000) |
---|
1893 | #define MCF_INTC_INTFRCL_INTFRC20 (0x00100000) |
---|
1894 | #define MCF_INTC_INTFRCL_INTFRC21 (0x00200000) |
---|
1895 | #define MCF_INTC_INTFRCL_INTFRC22 (0x00400000) |
---|
1896 | #define MCF_INTC_INTFRCL_INTFRC23 (0x00800000) |
---|
1897 | #define MCF_INTC_INTFRCL_INTFRC24 (0x01000000) |
---|
1898 | #define MCF_INTC_INTFRCL_INTFRC25 (0x02000000) |
---|
1899 | #define MCF_INTC_INTFRCL_INTFRC26 (0x04000000) |
---|
1900 | #define MCF_INTC_INTFRCL_INTFRC27 (0x08000000) |
---|
1901 | #define MCF_INTC_INTFRCL_INTFRC28 (0x10000000) |
---|
1902 | #define MCF_INTC_INTFRCL_INTFRC29 (0x20000000) |
---|
1903 | #define MCF_INTC_INTFRCL_INTFRC30 (0x40000000) |
---|
1904 | #define MCF_INTC_INTFRCL_INTFRC31 (0x80000000) |
---|
1905 | |
---|
1906 | /* Bit definitions and macros for MCF_INTC_ICONFIG */ |
---|
1907 | #define MCF_INTC_ICONFIG_EMASK (0x0020) |
---|
1908 | #define MCF_INTC_ICONFIG_ELVLPRI1 (0x0200) |
---|
1909 | #define MCF_INTC_ICONFIG_ELVLPRI2 (0x0400) |
---|
1910 | #define MCF_INTC_ICONFIG_ELVLPRI3 (0x0800) |
---|
1911 | #define MCF_INTC_ICONFIG_ELVLPRI4 (0x1000) |
---|
1912 | #define MCF_INTC_ICONFIG_ELVLPRI5 (0x2000) |
---|
1913 | #define MCF_INTC_ICONFIG_ELVLPRI6 (0x4000) |
---|
1914 | #define MCF_INTC_ICONFIG_ELVLPRI7 (0x8000) |
---|
1915 | |
---|
1916 | /* Bit definitions and macros for MCF_INTC_SIMR */ |
---|
1917 | #define MCF_INTC_SIMR_SIMR(x) (((x)&0x7F)<<0) |
---|
1918 | |
---|
1919 | /* Bit definitions and macros for MCF_INTC_CIMR */ |
---|
1920 | #define MCF_INTC_CIMR_CIMR(x) (((x)&0x7F)<<0) |
---|
1921 | |
---|
1922 | /* Bit definitions and macros for MCF_INTC_CLMASK */ |
---|
1923 | #define MCF_INTC_CLMASK_CLMASK(x) (((x)&0x0F)<<0) |
---|
1924 | |
---|
1925 | /* Bit definitions and macros for MCF_INTC_SLMASK */ |
---|
1926 | #define MCF_INTC_SLMASK_SLMASK(x) (((x)&0x0F)<<0) |
---|
1927 | |
---|
1928 | /* Bit definitions and macros for MCF_INTC_ICR */ |
---|
1929 | #define MCF_INTC_ICR_IL(x) (((x)&0x07)<<0) |
---|
1930 | |
---|
1931 | /* Bit definitions and macros for MCF_INTC_SWIACK */ |
---|
1932 | #define MCF_INTC_SWIACK_VECTOR(x) (((x)&0xFF)<<0) |
---|
1933 | |
---|
1934 | /* Bit definitions and macros for MCF_INTC_LIACK */ |
---|
1935 | #define MCF_INTC_LIACK_VECTOR(x) (((x)&0xFF)<<0) |
---|
1936 | |
---|
1937 | /********************************************************************* |
---|
1938 | * |
---|
1939 | * Interrupt Controller (INTC_IACK) |
---|
1940 | * |
---|
1941 | *********************************************************************/ |
---|
1942 | |
---|
1943 | /* Register read/write macros */ |
---|
1944 | #define MCF_INTC_IACK_GSWIACK (*(vuint8 *)(0xFC0540E0)) |
---|
1945 | #define MCF_INTC_IACK_GL1IACK (*(vuint8 *)(0xFC0540E4)) |
---|
1946 | #define MCF_INTC_IACK_GL2IACK (*(vuint8 *)(0xFC0540E8)) |
---|
1947 | #define MCF_INTC_IACK_GL3IACK (*(vuint8 *)(0xFC0540EC)) |
---|
1948 | #define MCF_INTC_IACK_GL4IACK (*(vuint8 *)(0xFC0540F0)) |
---|
1949 | #define MCF_INTC_IACK_GL5IACK (*(vuint8 *)(0xFC0540F4)) |
---|
1950 | #define MCF_INTC_IACK_GL6IACK (*(vuint8 *)(0xFC0540F8)) |
---|
1951 | #define MCF_INTC_IACK_GL7IACK (*(vuint8 *)(0xFC0540FC)) |
---|
1952 | #define MCF_INTC_IACK_GLIACK(x) (*(vuint8 *)(0xFC0540E4+((x-1)*0x004))) |
---|
1953 | |
---|
1954 | /* Bit definitions and macros for MCF_INTC_IACK_GSWIACK */ |
---|
1955 | #define MCF_INTC_IACK_GSWIACK_VECTOR(x) (((x)&0xFF)<<0) |
---|
1956 | |
---|
1957 | /* Bit definitions and macros for MCF_INTC_IACK_GLIACK */ |
---|
1958 | #define MCF_INTC_IACK_GLIACK_VECTOR(x) (((x)&0xFF)<<0) |
---|
1959 | |
---|
1960 | /********************************************************************* |
---|
1961 | * |
---|
1962 | * I2C Module (I2C) |
---|
1963 | * |
---|
1964 | *********************************************************************/ |
---|
1965 | |
---|
1966 | /* Register read/write macros */ |
---|
1967 | #define MCF_I2C_I2AR (*(vuint8 *)(0xFC058000)) |
---|
1968 | #define MCF_I2C_I2FDR (*(vuint8 *)(0xFC058004)) |
---|
1969 | #define MCF_I2C_I2CR (*(vuint8 *)(0xFC058008)) |
---|
1970 | #define MCF_I2C_I2SR (*(vuint8 *)(0xFC05800C)) |
---|
1971 | #define MCF_I2C_I2DR (*(vuint8 *)(0xFC058010)) |
---|
1972 | |
---|
1973 | /* Bit definitions and macros for MCF_I2C_I2AR */ |
---|
1974 | #define MCF_I2C_I2AR_ADR(x) (((x)&0x7F)<<1) |
---|
1975 | |
---|
1976 | /* Bit definitions and macros for MCF_I2C_I2FDR */ |
---|
1977 | #define MCF_I2C_I2FDR_IC(x) (((x)&0x3F)<<0) |
---|
1978 | |
---|
1979 | /* Bit definitions and macros for MCF_I2C_I2CR */ |
---|
1980 | #define MCF_I2C_I2CR_RSTA (0x04) |
---|
1981 | #define MCF_I2C_I2CR_TXAK (0x08) |
---|
1982 | #define MCF_I2C_I2CR_MTX (0x10) |
---|
1983 | #define MCF_I2C_I2CR_MSTA (0x20) |
---|
1984 | #define MCF_I2C_I2CR_IIEN (0x40) |
---|
1985 | #define MCF_I2C_I2CR_IEN (0x80) |
---|
1986 | |
---|
1987 | /* Bit definitions and macros for MCF_I2C_I2SR */ |
---|
1988 | #define MCF_I2C_I2SR_RXAK (0x01) |
---|
1989 | #define MCF_I2C_I2SR_IIF (0x02) |
---|
1990 | #define MCF_I2C_I2SR_SRW (0x04) |
---|
1991 | #define MCF_I2C_I2SR_IAL (0x10) |
---|
1992 | #define MCF_I2C_I2SR_IBB (0x20) |
---|
1993 | #define MCF_I2C_I2SR_IAAS (0x40) |
---|
1994 | #define MCF_I2C_I2SR_ICF (0x80) |
---|
1995 | |
---|
1996 | /* Bit definitions and macros for MCF_I2C_I2DR */ |
---|
1997 | #define MCF_I2C_I2DR_DATA(x) (((x)&0xFF)<<0) |
---|
1998 | |
---|
1999 | /********************************************************************* |
---|
2000 | * |
---|
2001 | * Queued Serial Peripheral Interface (QSPI) |
---|
2002 | * |
---|
2003 | *********************************************************************/ |
---|
2004 | |
---|
2005 | /* Register read/write macros */ |
---|
2006 | #define MCF_QSPI_QMR (*(vuint16*)(0xFC05C000)) |
---|
2007 | #define MCF_QSPI_QDLYR (*(vuint16*)(0xFC05C004)) |
---|
2008 | #define MCF_QSPI_QWR (*(vuint16*)(0xFC05C008)) |
---|
2009 | #define MCF_QSPI_QIR (*(vuint16*)(0xFC05C00C)) |
---|
2010 | #define MCF_QSPI_QAR (*(vuint16*)(0xFC05C010)) |
---|
2011 | #define MCF_QSPI_QDR (*(vuint16*)(0xFC05C014)) |
---|
2012 | |
---|
2013 | /* Bit definitions and macros for MCF_QSPI_QMR */ |
---|
2014 | #define MCF_QSPI_QMR_BAUD(x) (((x)&0x00FF)<<0) |
---|
2015 | #define MCF_QSPI_QMR_CPHA (0x0100) |
---|
2016 | #define MCF_QSPI_QMR_CPOL (0x0200) |
---|
2017 | #define MCF_QSPI_QMR_BITS(x) (((x)&0x000F)<<10) |
---|
2018 | #define MCF_QSPI_QMR_DOHIE (0x4000) |
---|
2019 | #define MCF_QSPI_QMR_MSTR (0x8000) |
---|
2020 | |
---|
2021 | /* Bit definitions and macros for MCF_QSPI_QDLYR */ |
---|
2022 | #define MCF_QSPI_QDLYR_DTL(x) (((x)&0x00FF)<<0) |
---|
2023 | #define MCF_QSPI_QDLYR_QCD(x) (((x)&0x007F)<<8) |
---|
2024 | #define MCF_QSPI_QDLYR_SPE (0x8000) |
---|
2025 | |
---|
2026 | /* Bit definitions and macros for MCF_QSPI_QWR */ |
---|
2027 | #define MCF_QSPI_QWR_NEWQP(x) (((x)&0x000F)<<0) |
---|
2028 | #define MCF_QSPI_QWR_ENDQP(x) (((x)&0x000F)<<8) |
---|
2029 | #define MCF_QSPI_QWR_CSIV (0x1000) |
---|
2030 | #define MCF_QSPI_QWR_WRTO (0x2000) |
---|
2031 | #define MCF_QSPI_QWR_WREN (0x4000) |
---|
2032 | #define MCF_QSPI_QWR_HALT (0x8000) |
---|
2033 | |
---|
2034 | /* Bit definitions and macros for MCF_QSPI_QIR */ |
---|
2035 | #define MCF_QSPI_QIR_SPIF (0x0001) |
---|
2036 | #define MCF_QSPI_QIR_ABRT (0x0004) |
---|
2037 | #define MCF_QSPI_QIR_WCEF (0x0008) |
---|
2038 | #define MCF_QSPI_QIR_SPIFE (0x0100) |
---|
2039 | #define MCF_QSPI_QIR_ABRTE (0x0400) |
---|
2040 | #define MCF_QSPI_QIR_WCEFE (0x0800) |
---|
2041 | #define MCF_QSPI_QIR_ABRTL (0x1000) |
---|
2042 | #define MCF_QSPI_QIR_ABRTB (0x4000) |
---|
2043 | #define MCF_QSPI_QIR_WCEFB (0x8000) |
---|
2044 | |
---|
2045 | /* Bit definitions and macros for MCF_QSPI_QAR */ |
---|
2046 | #define MCF_QSPI_QAR_ADDR(x) (((x)&0x003F)<<0) |
---|
2047 | #define MCF_QSPI_QAR_TRANS (0x0000) |
---|
2048 | #define MCF_QSPI_QAR_RECV (0x0010) |
---|
2049 | #define MCF_QSPI_QAR_CMD (0x0020) |
---|
2050 | |
---|
2051 | /* Bit definitions and macros for MCF_QSPI_QDR */ |
---|
2052 | #define MCF_QSPI_QDR_DATA(x) (((x)&0xFFFF)<<0) |
---|
2053 | #define MCF_QSPI_QDR_CONT (0x8000) |
---|
2054 | #define MCF_QSPI_QDR_BITSE (0x4000) |
---|
2055 | #define MCF_QSPI_QDR_DT (0x2000) |
---|
2056 | #define MCF_QSPI_QDR_DSCK (0x1000) |
---|
2057 | #define MCF_QSPI_QDR_QSPI_CS3 (0x0800) |
---|
2058 | #define MCF_QSPI_QDR_QSPI_CS2 (0x0400) |
---|
2059 | #define MCF_QSPI_QDR_QSPI_CS1 (0x0200) |
---|
2060 | #define MCF_QSPI_QDR_QSPI_CS0 (0x0100) |
---|
2061 | |
---|
2062 | /********************************************************************* |
---|
2063 | * |
---|
2064 | * Universal Asynchronous Receiver Transmitter (UART) |
---|
2065 | * |
---|
2066 | *********************************************************************/ |
---|
2067 | |
---|
2068 | /* Register read/write macros */ |
---|
2069 | #define MCF_UART0_UMR (*(vuint8 *)(0xFC060000)) |
---|
2070 | #define MCF_UART0_USR (*(vuint8 *)(0xFC060004)) |
---|
2071 | #define MCF_UART0_UCSR (*(vuint8 *)(0xFC060004)) |
---|
2072 | #define MCF_UART0_UCR (*(vuint8 *)(0xFC060008)) |
---|
2073 | #define MCF_UART0_URB (*(vuint8 *)(0xFC06000C)) |
---|
2074 | #define MCF_UART0_UTB (*(vuint8 *)(0xFC06000C)) |
---|
2075 | #define MCF_UART0_UIPCR (*(vuint8 *)(0xFC060010)) |
---|
2076 | #define MCF_UART0_UACR (*(vuint8 *)(0xFC060010)) |
---|
2077 | #define MCF_UART0_UISR (*(vuint8 *)(0xFC060014)) |
---|
2078 | #define MCF_UART0_UIMR (*(vuint8 *)(0xFC060014)) |
---|
2079 | #define MCF_UART0_UBG1 (*(vuint8 *)(0xFC060018)) |
---|
2080 | #define MCF_UART0_UBG2 (*(vuint8 *)(0xFC06001C)) |
---|
2081 | #define MCF_UART0_UIP (*(vuint8 *)(0xFC060034)) |
---|
2082 | #define MCF_UART0_UOP1 (*(vuint8 *)(0xFC060038)) |
---|
2083 | #define MCF_UART0_UOP0 (*(vuint8 *)(0xFC06003C)) |
---|
2084 | #define MCF_UART1_UMR (*(vuint8 *)(0xFC064000)) |
---|
2085 | #define MCF_UART1_USR (*(vuint8 *)(0xFC064004)) |
---|
2086 | #define MCF_UART1_UCSR (*(vuint8 *)(0xFC064004)) |
---|
2087 | #define MCF_UART1_UCR (*(vuint8 *)(0xFC064008)) |
---|
2088 | #define MCF_UART1_URB (*(vuint8 *)(0xFC06400C)) |
---|
2089 | #define MCF_UART1_UTB (*(vuint8 *)(0xFC06400C)) |
---|
2090 | #define MCF_UART1_UIPCR (*(vuint8 *)(0xFC064010)) |
---|
2091 | #define MCF_UART1_UACR (*(vuint8 *)(0xFC064010)) |
---|
2092 | #define MCF_UART1_UISR (*(vuint8 *)(0xFC064014)) |
---|
2093 | #define MCF_UART1_UIMR (*(vuint8 *)(0xFC064014)) |
---|
2094 | #define MCF_UART1_UBG1 (*(vuint8 *)(0xFC064018)) |
---|
2095 | #define MCF_UART1_UBG2 (*(vuint8 *)(0xFC06401C)) |
---|
2096 | #define MCF_UART1_UIP (*(vuint8 *)(0xFC064034)) |
---|
2097 | #define MCF_UART1_UOP1 (*(vuint8 *)(0xFC064038)) |
---|
2098 | #define MCF_UART1_UOP0 (*(vuint8 *)(0xFC06403C)) |
---|
2099 | #define MCF_UART2_UMR (*(vuint8 *)(0xFC068000)) |
---|
2100 | #define MCF_UART2_USR (*(vuint8 *)(0xFC068004)) |
---|
2101 | #define MCF_UART2_UCSR (*(vuint8 *)(0xFC068004)) |
---|
2102 | #define MCF_UART2_UCR (*(vuint8 *)(0xFC068008)) |
---|
2103 | #define MCF_UART2_URB (*(vuint8 *)(0xFC06800C)) |
---|
2104 | #define MCF_UART2_UTB (*(vuint8 *)(0xFC06800C)) |
---|
2105 | #define MCF_UART2_UIPCR (*(vuint8 *)(0xFC068010)) |
---|
2106 | #define MCF_UART2_UACR (*(vuint8 *)(0xFC068010)) |
---|
2107 | #define MCF_UART2_UISR (*(vuint8 *)(0xFC068014)) |
---|
2108 | #define MCF_UART2_UIMR (*(vuint8 *)(0xFC068014)) |
---|
2109 | #define MCF_UART2_UBG1 (*(vuint8 *)(0xFC068018)) |
---|
2110 | #define MCF_UART2_UBG2 (*(vuint8 *)(0xFC06801C)) |
---|
2111 | #define MCF_UART2_UIP (*(vuint8 *)(0xFC068034)) |
---|
2112 | #define MCF_UART2_UOP1 (*(vuint8 *)(0xFC068038)) |
---|
2113 | #define MCF_UART2_UOP0 (*(vuint8 *)(0xFC06803C)) |
---|
2114 | #define MCF_UART_UMR(x) (*(vuint8 *)(0xFC060000+((x)*0x4000))) |
---|
2115 | #define MCF_UART_USR(x) (*(vuint8 *)(0xFC060004+((x)*0x4000))) |
---|
2116 | #define MCF_UART_UCSR(x) (*(vuint8 *)(0xFC060004+((x)*0x4000))) |
---|
2117 | #define MCF_UART_UCR(x) (*(vuint8 *)(0xFC060008+((x)*0x4000))) |
---|
2118 | #define MCF_UART_URB(x) (*(vuint8 *)(0xFC06000C+((x)*0x4000))) |
---|
2119 | #define MCF_UART_UTB(x) (*(vuint8 *)(0xFC06000C+((x)*0x4000))) |
---|
2120 | #define MCF_UART_UIPCR(x) (*(vuint8 *)(0xFC060010+((x)*0x4000))) |
---|
2121 | #define MCF_UART_UACR(x) (*(vuint8 *)(0xFC060010+((x)*0x4000))) |
---|
2122 | #define MCF_UART_UISR(x) (*(vuint8 *)(0xFC060014+((x)*0x4000))) |
---|
2123 | #define MCF_UART_UIMR(x) (*(vuint8 *)(0xFC060014+((x)*0x4000))) |
---|
2124 | #define MCF_UART_UBG1(x) (*(vuint8 *)(0xFC060018+((x)*0x4000))) |
---|
2125 | #define MCF_UART_UBG2(x) (*(vuint8 *)(0xFC06001C+((x)*0x4000))) |
---|
2126 | #define MCF_UART_UIP(x) (*(vuint8 *)(0xFC060034+((x)*0x4000))) |
---|
2127 | #define MCF_UART_UOP1(x) (*(vuint8 *)(0xFC060038+((x)*0x4000))) |
---|
2128 | #define MCF_UART_UOP0(x) (*(vuint8 *)(0xFC06003C+((x)*0x4000))) |
---|
2129 | |
---|
2130 | /* Bit definitions and macros for MCF_UART_UMR */ |
---|
2131 | #define MCF_UART_UMR_BC(x) (((x)&0x03)<<0) |
---|
2132 | #define MCF_UART_UMR_PT (0x04) |
---|
2133 | #define MCF_UART_UMR_PM(x) (((x)&0x03)<<3) |
---|
2134 | #define MCF_UART_UMR_ERR (0x20) |
---|
2135 | #define MCF_UART_UMR_RXIRQ (0x40) |
---|
2136 | #define MCF_UART_UMR_RXRTS (0x80) |
---|
2137 | #define MCF_UART_UMR_SB(x) (((x)&0x0F)<<0) |
---|
2138 | #define MCF_UART_UMR_TXCTS (0x10) |
---|
2139 | #define MCF_UART_UMR_TXRTS (0x20) |
---|
2140 | #define MCF_UART_UMR_CM(x) (((x)&0x03)<<6) |
---|
2141 | #define MCF_UART_UMR_PM_MULTI_ADDR (0x1C) |
---|
2142 | #define MCF_UART_UMR_PM_MULTI_DATA (0x18) |
---|
2143 | #define MCF_UART_UMR_PM_NONE (0x10) |
---|
2144 | #define MCF_UART_UMR_PM_FORCE_HI (0x0C) |
---|
2145 | #define MCF_UART_UMR_PM_FORCE_LO (0x08) |
---|
2146 | #define MCF_UART_UMR_PM_ODD (0x04) |
---|
2147 | #define MCF_UART_UMR_PM_EVEN (0x00) |
---|
2148 | #define MCF_UART_UMR_BC_5 (0x00) |
---|
2149 | #define MCF_UART_UMR_BC_6 (0x01) |
---|
2150 | #define MCF_UART_UMR_BC_7 (0x02) |
---|
2151 | #define MCF_UART_UMR_BC_8 (0x03) |
---|
2152 | #define MCF_UART_UMR_CM_NORMAL (0x00) |
---|
2153 | #define MCF_UART_UMR_CM_ECHO (0x40) |
---|
2154 | #define MCF_UART_UMR_CM_LOCAL_LOOP (0x80) |
---|
2155 | #define MCF_UART_UMR_CM_REMOTE_LOOP (0xC0) |
---|
2156 | #define MCF_UART_UMR_SB_STOP_BITS_1 (0x07) |
---|
2157 | #define MCF_UART_UMR_SB_STOP_BITS_15 (0x08) |
---|
2158 | #define MCF_UART_UMR_SB_STOP_BITS_2 (0x0F) |
---|
2159 | |
---|
2160 | /* Bit definitions and macros for MCF_UART_USR */ |
---|
2161 | #define MCF_UART_USR_RXRDY (0x01) |
---|
2162 | #define MCF_UART_USR_FFULL (0x02) |
---|
2163 | #define MCF_UART_USR_TXRDY (0x04) |
---|
2164 | #define MCF_UART_USR_TXEMP (0x08) |
---|
2165 | #define MCF_UART_USR_OE (0x10) |
---|
2166 | #define MCF_UART_USR_PE (0x20) |
---|
2167 | #define MCF_UART_USR_FE (0x40) |
---|
2168 | #define MCF_UART_USR_RB (0x80) |
---|
2169 | |
---|
2170 | /* Bit definitions and macros for MCF_UART_UCSR */ |
---|
2171 | #define MCF_UART_UCSR_TCS(x) (((x)&0x0F)<<0) |
---|
2172 | #define MCF_UART_UCSR_RCS(x) (((x)&0x0F)<<4) |
---|
2173 | #define MCF_UART_UCSR_RCS_SYS_CLK (0xD0) |
---|
2174 | #define MCF_UART_UCSR_RCS_CTM16 (0xE0) |
---|
2175 | #define MCF_UART_UCSR_RCS_CTM (0xF0) |
---|
2176 | #define MCF_UART_UCSR_TCS_SYS_CLK (0x0D) |
---|
2177 | #define MCF_UART_UCSR_TCS_CTM16 (0x0E) |
---|
2178 | #define MCF_UART_UCSR_TCS_CTM (0x0F) |
---|
2179 | |
---|
2180 | /* Bit definitions and macros for MCF_UART_UCR */ |
---|
2181 | #define MCF_UART_UCR_RXC(x) (((x)&0x03)<<0) |
---|
2182 | #define MCF_UART_UCR_TXC(x) (((x)&0x03)<<2) |
---|
2183 | #define MCF_UART_UCR_MISC(x) (((x)&0x07)<<4) |
---|
2184 | #define MCF_UART_UCR_NONE (0x00) |
---|
2185 | #define MCF_UART_UCR_STOP_BREAK (0x70) |
---|
2186 | #define MCF_UART_UCR_START_BREAK (0x60) |
---|
2187 | #define MCF_UART_UCR_BKCHGINT (0x50) |
---|
2188 | #define MCF_UART_UCR_RESET_ERROR (0x40) |
---|
2189 | #define MCF_UART_UCR_RESET_TX (0x30) |
---|
2190 | #define MCF_UART_UCR_RESET_RX (0x20) |
---|
2191 | #define MCF_UART_UCR_RESET_MR (0x10) |
---|
2192 | #define MCF_UART_UCR_TX_DISABLED (0x08) |
---|
2193 | #define MCF_UART_UCR_TX_ENABLED (0x04) |
---|
2194 | #define MCF_UART_UCR_RX_DISABLED (0x02) |
---|
2195 | #define MCF_UART_UCR_RX_ENABLED (0x01) |
---|
2196 | |
---|
2197 | /* Bit definitions and macros for MCF_UART_UIPCR */ |
---|
2198 | #define MCF_UART_UIPCR_CTS (0x01) |
---|
2199 | #define MCF_UART_UIPCR_COS (0x10) |
---|
2200 | |
---|
2201 | /* Bit definitions and macros for MCF_UART_UACR */ |
---|
2202 | #define MCF_UART_UACR_IEC (0x01) |
---|
2203 | |
---|
2204 | /* Bit definitions and macros for MCF_UART_UISR */ |
---|
2205 | #define MCF_UART_UISR_TXRDY (0x01) |
---|
2206 | #define MCF_UART_UISR_RXRDY_FU (0x02) |
---|
2207 | #define MCF_UART_UISR_DB (0x04) |
---|
2208 | #define MCF_UART_UISR_RXFTO (0x08) |
---|
2209 | #define MCF_UART_UISR_TXFIFO (0x10) |
---|
2210 | #define MCF_UART_UISR_RXFIFO (0x20) |
---|
2211 | #define MCF_UART_UISR_COS (0x80) |
---|
2212 | |
---|
2213 | /* Bit definitions and macros for MCF_UART_UIMR */ |
---|
2214 | #define MCF_UART_UIMR_TXRDY (0x01) |
---|
2215 | #define MCF_UART_UIMR_RXRDY_FU (0x02) |
---|
2216 | #define MCF_UART_UIMR_DB (0x04) |
---|
2217 | #define MCF_UART_UIMR_COS (0x80) |
---|
2218 | |
---|
2219 | /* Bit definitions and macros for MCF_UART_UIP */ |
---|
2220 | #define MCF_UART_UIP_CTS (0x01) |
---|
2221 | |
---|
2222 | /* Bit definitions and macros for MCF_UART_UOP1 */ |
---|
2223 | #define MCF_UART_UOP1_RTS (0x01) |
---|
2224 | |
---|
2225 | /* Bit definitions and macros for MCF_UART_UOP0 */ |
---|
2226 | #define MCF_UART_UOP0_RTS (0x01) |
---|
2227 | |
---|
2228 | /********************************************************************* |
---|
2229 | * |
---|
2230 | * DMA Timers (DTIM) |
---|
2231 | * |
---|
2232 | *********************************************************************/ |
---|
2233 | |
---|
2234 | /* Register read/write macros */ |
---|
2235 | #define MCF_DTIM0_DTMR (*(vuint16*)(0xFC070000)) |
---|
2236 | #define MCF_DTIM0_DTXMR (*(vuint8 *)(0xFC070002)) |
---|
2237 | #define MCF_DTIM0_DTER (*(vuint8 *)(0xFC070003)) |
---|
2238 | #define MCF_DTIM0_DTRR (*(vuint32*)(0xFC070004)) |
---|
2239 | #define MCF_DTIM0_DTCR (*(vuint32*)(0xFC070008)) |
---|
2240 | #define MCF_DTIM0_DTCN (*(vuint32*)(0xFC07000C)) |
---|
2241 | #define MCF_DTIM1_DTMR (*(vuint16*)(0xFC074000)) |
---|
2242 | #define MCF_DTIM1_DTXMR (*(vuint8 *)(0xFC074002)) |
---|
2243 | #define MCF_DTIM1_DTER (*(vuint8 *)(0xFC074003)) |
---|
2244 | #define MCF_DTIM1_DTRR (*(vuint32*)(0xFC074004)) |
---|
2245 | #define MCF_DTIM1_DTCR (*(vuint32*)(0xFC074008)) |
---|
2246 | #define MCF_DTIM1_DTCN (*(vuint32*)(0xFC07400C)) |
---|
2247 | #define MCF_DTIM2_DTMR (*(vuint16*)(0xFC078000)) |
---|
2248 | #define MCF_DTIM2_DTXMR (*(vuint8 *)(0xFC078002)) |
---|
2249 | #define MCF_DTIM2_DTER (*(vuint8 *)(0xFC078003)) |
---|
2250 | #define MCF_DTIM2_DTRR (*(vuint32*)(0xFC078004)) |
---|
2251 | #define MCF_DTIM2_DTCR (*(vuint32*)(0xFC078008)) |
---|
2252 | #define MCF_DTIM2_DTCN (*(vuint32*)(0xFC07800C)) |
---|
2253 | #define MCF_DTIM3_DTMR (*(vuint16*)(0xFC07C000)) |
---|
2254 | #define MCF_DTIM3_DTXMR (*(vuint8 *)(0xFC07C002)) |
---|
2255 | #define MCF_DTIM3_DTER (*(vuint8 *)(0xFC07C003)) |
---|
2256 | #define MCF_DTIM3_DTRR (*(vuint32*)(0xFC07C004)) |
---|
2257 | #define MCF_DTIM3_DTCR (*(vuint32*)(0xFC07C008)) |
---|
2258 | #define MCF_DTIM3_DTCN (*(vuint32*)(0xFC07C00C)) |
---|
2259 | #define MCF_DTIM_DTMR(x) (*(vuint16*)(0xFC070000+((x)*0x4000))) |
---|
2260 | #define MCF_DTIM_DTXMR(x) (*(vuint8 *)(0xFC070002+((x)*0x4000))) |
---|
2261 | #define MCF_DTIM_DTER(x) (*(vuint8 *)(0xFC070003+((x)*0x4000))) |
---|
2262 | #define MCF_DTIM_DTRR(x) (*(vuint32*)(0xFC070004+((x)*0x4000))) |
---|
2263 | #define MCF_DTIM_DTCR(x) (*(vuint32*)(0xFC070008+((x)*0x4000))) |
---|
2264 | #define MCF_DTIM_DTCN(x) (*(vuint32*)(0xFC07000C+((x)*0x4000))) |
---|
2265 | |
---|
2266 | /* Bit definitions and macros for MCF_DTIM_DTMR */ |
---|
2267 | #define MCF_DTIM_DTMR_RST (0x0001) |
---|
2268 | #define MCF_DTIM_DTMR_CLK(x) (((x)&0x0003)<<1) |
---|
2269 | #define MCF_DTIM_DTMR_FRR (0x0008) |
---|
2270 | #define MCF_DTIM_DTMR_ORRI (0x0010) |
---|
2271 | #define MCF_DTIM_DTMR_OM (0x0020) |
---|
2272 | #define MCF_DTIM_DTMR_CE(x) (((x)&0x0003)<<6) |
---|
2273 | #define MCF_DTIM_DTMR_PS(x) (((x)&0x00FF)<<8) |
---|
2274 | #define MCF_DTIM_DTMR_CE_ANY (0x00C0) |
---|
2275 | #define MCF_DTIM_DTMR_CE_FALL (0x0080) |
---|
2276 | #define MCF_DTIM_DTMR_CE_RISE (0x0040) |
---|
2277 | #define MCF_DTIM_DTMR_CE_NONE (0x0000) |
---|
2278 | #define MCF_DTIM_DTMR_CLK_DTIN (0x0006) |
---|
2279 | #define MCF_DTIM_DTMR_CLK_DIV16 (0x0004) |
---|
2280 | #define MCF_DTIM_DTMR_CLK_DIV1 (0x0002) |
---|
2281 | #define MCF_DTIM_DTMR_CLK_STOP (0x0000) |
---|
2282 | |
---|
2283 | /* Bit definitions and macros for MCF_DTIM_DTXMR */ |
---|
2284 | #define MCF_DTIM_DTXMR_MODE16 (0x01) |
---|
2285 | #define MCF_DTIM_DTXMR_DMAEN (0x80) |
---|
2286 | |
---|
2287 | /* Bit definitions and macros for MCF_DTIM_DTER */ |
---|
2288 | #define MCF_DTIM_DTER_CAP (0x01) |
---|
2289 | #define MCF_DTIM_DTER_REF (0x02) |
---|
2290 | |
---|
2291 | /* Bit definitions and macros for MCF_DTIM_DTRR */ |
---|
2292 | #define MCF_DTIM_DTRR_REF(x) (((x)&0xFFFFFFFF)<<0) |
---|
2293 | |
---|
2294 | /* Bit definitions and macros for MCF_DTIM_DTCR */ |
---|
2295 | #define MCF_DTIM_DTCR_CAP(x) (((x)&0xFFFFFFFF)<<0) |
---|
2296 | |
---|
2297 | /* Bit definitions and macros for MCF_DTIM_DTCN */ |
---|
2298 | #define MCF_DTIM_DTCN_CNT(x) (((x)&0xFFFFFFFF)<<0) |
---|
2299 | |
---|
2300 | /********************************************************************* |
---|
2301 | * |
---|
2302 | * Programmable Interrupt Timer Modules (PIT) |
---|
2303 | * |
---|
2304 | *********************************************************************/ |
---|
2305 | |
---|
2306 | /* Register read/write macros */ |
---|
2307 | #define MCF_PIT0_PCSR (*(vuint16*)(0xFC080000)) |
---|
2308 | #define MCF_PIT0_PMR (*(vuint16*)(0xFC080002)) |
---|
2309 | #define MCF_PIT0_PCNTR (*(vuint16*)(0xFC080004)) |
---|
2310 | #define MCF_PIT1_PCSR (*(vuint16*)(0xFC084000)) |
---|
2311 | #define MCF_PIT1_PMR (*(vuint16*)(0xFC084002)) |
---|
2312 | #define MCF_PIT1_PCNTR (*(vuint16*)(0xFC084004)) |
---|
2313 | #define MCF_PIT2_PCSR (*(vuint16*)(0xFC088000)) |
---|
2314 | #define MCF_PIT2_PMR (*(vuint16*)(0xFC088002)) |
---|
2315 | #define MCF_PIT2_PCNTR (*(vuint16*)(0xFC088004)) |
---|
2316 | #define MCF_PIT3_PCSR (*(vuint16*)(0xFC08C000)) |
---|
2317 | #define MCF_PIT3_PMR (*(vuint16*)(0xFC08C002)) |
---|
2318 | #define MCF_PIT3_PCNTR (*(vuint16*)(0xFC08C004)) |
---|
2319 | #define MCF_PIT_PCSR(x) (*(vuint16*)(0xFC080000+((x)*0x4000))) |
---|
2320 | #define MCF_PIT_PMR(x) (*(vuint16*)(0xFC080002+((x)*0x4000))) |
---|
2321 | #define MCF_PIT_PCNTR(x) (*(vuint16*)(0xFC080004+((x)*0x4000))) |
---|
2322 | |
---|
2323 | /* Bit definitions and macros for MCF_PIT_PCSR */ |
---|
2324 | #define MCF_PIT_PCSR_EN (0x0001) |
---|
2325 | #define MCF_PIT_PCSR_RLD (0x0002) |
---|
2326 | #define MCF_PIT_PCSR_PIF (0x0004) |
---|
2327 | #define MCF_PIT_PCSR_PIE (0x0008) |
---|
2328 | #define MCF_PIT_PCSR_OVW (0x0010) |
---|
2329 | #define MCF_PIT_PCSR_HALTED (0x0020) |
---|
2330 | #define MCF_PIT_PCSR_DOZE (0x0040) |
---|
2331 | #define MCF_PIT_PCSR_PRE(x) (((x)&0x000F)<<8) |
---|
2332 | |
---|
2333 | /* Bit definitions and macros for MCF_PIT_PMR */ |
---|
2334 | #define MCF_PIT_PMR_PM(x) (((x)&0xFFFF)<<0) |
---|
2335 | |
---|
2336 | /* Bit definitions and macros for MCF_PIT_PCNTR */ |
---|
2337 | #define MCF_PIT_PCNTR_PC(x) (((x)&0xFFFF)<<0) |
---|
2338 | |
---|
2339 | /********************************************************************* |
---|
2340 | * |
---|
2341 | * Pulse Width Modulation (PWM) |
---|
2342 | * |
---|
2343 | *********************************************************************/ |
---|
2344 | |
---|
2345 | /* Register read/write macros */ |
---|
2346 | #define MCF_PWM_PWME (*(vuint8 *)(0xFC090020)) |
---|
2347 | #define MCF_PWM_PWMPOL (*(vuint8 *)(0xFC090021)) |
---|
2348 | #define MCF_PWM_PWMCLK (*(vuint8 *)(0xFC090022)) |
---|
2349 | #define MCF_PWM_PWMPRCLK (*(vuint8 *)(0xFC090023)) |
---|
2350 | #define MCF_PWM_PWMCAE (*(vuint8 *)(0xFC090024)) |
---|
2351 | #define MCF_PWM_PWMCTL (*(vuint8 *)(0xFC090025)) |
---|
2352 | #define MCF_PWM_PWMSCLA (*(vuint8 *)(0xFC090028)) |
---|
2353 | #define MCF_PWM_PWMSCLB (*(vuint8 *)(0xFC090029)) |
---|
2354 | #define MCF_PWM_PWMCNT0 (*(vuint8 *)(0xFC09002C)) |
---|
2355 | #define MCF_PWM_PWMCNT1 (*(vuint8 *)(0xFC09002D)) |
---|
2356 | #define MCF_PWM_PWMCNT2 (*(vuint8 *)(0xFC09002E)) |
---|
2357 | #define MCF_PWM_PWMCNT3 (*(vuint8 *)(0xFC09002F)) |
---|
2358 | #define MCF_PWM_PWMCNT4 (*(vuint8 *)(0xFC090030)) |
---|
2359 | #define MCF_PWM_PWMCNT5 (*(vuint8 *)(0xFC090031)) |
---|
2360 | #define MCF_PWM_PWMCNT6 (*(vuint8 *)(0xFC090032)) |
---|
2361 | #define MCF_PWM_PWMCNT7 (*(vuint8 *)(0xFC090033)) |
---|
2362 | #define MCF_PWM_PWMCNT(x) (*(vuint8 *)(0xFC09002C+((x)*0x001))) |
---|
2363 | #define MCF_PWM_PWMPER0 (*(vuint8 *)(0xFC090034)) |
---|
2364 | #define MCF_PWM_PWMPER1 (*(vuint8 *)(0xFC090035)) |
---|
2365 | #define MCF_PWM_PWMPER2 (*(vuint8 *)(0xFC090036)) |
---|
2366 | #define MCF_PWM_PWMPER3 (*(vuint8 *)(0xFC090037)) |
---|
2367 | #define MCF_PWM_PWMPER4 (*(vuint8 *)(0xFC090038)) |
---|
2368 | #define MCF_PWM_PWMPER5 (*(vuint8 *)(0xFC090039)) |
---|
2369 | #define MCF_PWM_PWMPER6 (*(vuint8 *)(0xFC09003A)) |
---|
2370 | #define MCF_PWM_PWMPER7 (*(vuint8 *)(0xFC09003B)) |
---|
2371 | #define MCF_PWM_PWMPER(x) (*(vuint8 *)(0xFC090034+((x)*0x001))) |
---|
2372 | #define MCF_PWM_PWMDTY0 (*(vuint8 *)(0xFC09003C)) |
---|
2373 | #define MCF_PWM_PWMDTY1 (*(vuint8 *)(0xFC09003D)) |
---|
2374 | #define MCF_PWM_PWMDTY2 (*(vuint8 *)(0xFC09003E)) |
---|
2375 | #define MCF_PWM_PWMDTY3 (*(vuint8 *)(0xFC09003F)) |
---|
2376 | #define MCF_PWM_PWMDTY4 (*(vuint8 *)(0xFC090040)) |
---|
2377 | #define MCF_PWM_PWMDTY5 (*(vuint8 *)(0xFC090041)) |
---|
2378 | #define MCF_PWM_PWMDTY6 (*(vuint8 *)(0xFC090042)) |
---|
2379 | #define MCF_PWM_PWMDTY7 (*(vuint8 *)(0xFC090043)) |
---|
2380 | #define MCF_PWM_PWMDTY(x) (*(vuint8 *)(0xFC09003C+((x)*0x001))) |
---|
2381 | #define MCF_PWM_PWMSDN (*(vuint8 *)(0xFC090044)) |
---|
2382 | |
---|
2383 | /* Bit definitions and macros for MCF_PWM_PWME */ |
---|
2384 | #define MCF_PWM_PWME_PWME0 (0x01) |
---|
2385 | #define MCF_PWM_PWME_PWME1 (0x02) |
---|
2386 | #define MCF_PWM_PWME_PWME2 (0x04) |
---|
2387 | #define MCF_PWM_PWME_PWME3 (0x08) |
---|
2388 | #define MCF_PWM_PWME_PWME4 (0x10) |
---|
2389 | #define MCF_PWM_PWME_PWME5 (0x20) |
---|
2390 | #define MCF_PWM_PWME_PWME6 (0x40) |
---|
2391 | #define MCF_PWM_PWME_PWME7 (0x80) |
---|
2392 | |
---|
2393 | /* Bit definitions and macros for MCF_PWM_PWMPOL */ |
---|
2394 | #define MCF_PWM_PWMPOL_PPOL0 (0x01) |
---|
2395 | #define MCF_PWM_PWMPOL_PPOL1 (0x02) |
---|
2396 | #define MCF_PWM_PWMPOL_PPOL2 (0x04) |
---|
2397 | #define MCF_PWM_PWMPOL_PPOL3 (0x08) |
---|
2398 | #define MCF_PWM_PWMPOL_PPOL4 (0x10) |
---|
2399 | #define MCF_PWM_PWMPOL_PPOL5 (0x20) |
---|
2400 | #define MCF_PWM_PWMPOL_PPOL6 (0x40) |
---|
2401 | #define MCF_PWM_PWMPOL_PPOL7 (0x80) |
---|
2402 | |
---|
2403 | /* Bit definitions and macros for MCF_PWM_PWMCLK */ |
---|
2404 | #define MCF_PWM_PWMCLK_PCLK0 (0x01) |
---|
2405 | #define MCF_PWM_PWMCLK_PCLK1 (0x02) |
---|
2406 | #define MCF_PWM_PWMCLK_PCLK2 (0x04) |
---|
2407 | #define MCF_PWM_PWMCLK_PCLK3 (0x08) |
---|
2408 | #define MCF_PWM_PWMCLK_PCLK4 (0x10) |
---|
2409 | #define MCF_PWM_PWMCLK_PCLK5 (0x20) |
---|
2410 | #define MCF_PWM_PWMCLK_PCLK6 (0x40) |
---|
2411 | #define MCF_PWM_PWMCLK_PCLK7 (0x80) |
---|
2412 | |
---|
2413 | /* Bit definitions and macros for MCF_PWM_PWMPRCLK */ |
---|
2414 | #define MCF_PWM_PWMPRCLK_PCKA(x) (((x)&0x07)<<0) |
---|
2415 | #define MCF_PWM_PWMPRCLK_PCKB(x) (((x)&0x07)<<4) |
---|
2416 | |
---|
2417 | /* Bit definitions and macros for MCF_PWM_PWMCAE */ |
---|
2418 | #define MCF_PWM_PWMCAE_CAE0 (0x01) |
---|
2419 | #define MCF_PWM_PWMCAE_CAE1 (0x02) |
---|
2420 | #define MCF_PWM_PWMCAE_CAE2 (0x04) |
---|
2421 | #define MCF_PWM_PWMCAE_CAE3 (0x08) |
---|
2422 | #define MCF_PWM_PWMCAE_CAE4 (0x10) |
---|
2423 | #define MCF_PWM_PWMCAE_CAE5 (0x20) |
---|
2424 | #define MCF_PWM_PWMCAE_CAE6 (0x40) |
---|
2425 | #define MCF_PWM_PWMCAE_CAE7 (0x80) |
---|
2426 | |
---|
2427 | /* Bit definitions and macros for MCF_PWM_PWMCTL */ |
---|
2428 | #define MCF_PWM_PWMCTL_PFRZ (0x04) |
---|
2429 | #define MCF_PWM_PWMCTL_PSWAI (0x08) |
---|
2430 | #define MCF_PWM_PWMCTL_CON01 (0x10) |
---|
2431 | #define MCF_PWM_PWMCTL_CON23 (0x20) |
---|
2432 | #define MCF_PWM_PWMCTL_CON45 (0x40) |
---|
2433 | #define MCF_PWM_PWMCTL_CON67 (0x80) |
---|
2434 | |
---|
2435 | /* Bit definitions and macros for MCF_PWM_PWMSCLA */ |
---|
2436 | #define MCF_PWM_PWMSCLA_SCALEA(x) (((x)&0xFF)<<0) |
---|
2437 | |
---|
2438 | /* Bit definitions and macros for MCF_PWM_PWMSCLB */ |
---|
2439 | #define MCF_PWM_PWMSCLB_SCALEB(x) (((x)&0xFF)<<0) |
---|
2440 | |
---|
2441 | /* Bit definitions and macros for MCF_PWM_PWMCNT */ |
---|
2442 | #define MCF_PWM_PWMCNT_COUNT(x) (((x)&0xFF)<<0) |
---|
2443 | |
---|
2444 | /* Bit definitions and macros for MCF_PWM_PWMPER */ |
---|
2445 | #define MCF_PWM_PWMPER_PERIOD(x) (((x)&0xFF)<<0) |
---|
2446 | |
---|
2447 | /* Bit definitions and macros for MCF_PWM_PWMDTY */ |
---|
2448 | #define MCF_PWM_PWMDTY_DUTY(x) (((x)&0xFF)<<0) |
---|
2449 | |
---|
2450 | /* Bit definitions and macros for MCF_PWM_PWMSDN */ |
---|
2451 | #define MCF_PWM_PWMSDN_SDNEN (0x01) |
---|
2452 | #define MCF_PWM_PWMSDN_PWM7IL (0x02) |
---|
2453 | #define MCF_PWM_PWMSDN_PWM7IN (0x04) |
---|
2454 | #define MCF_PWM_PWMSDN_LVL (0x10) |
---|
2455 | #define MCF_PWM_PWMSDN_RESTART (0x20) |
---|
2456 | #define MCF_PWM_PWMSDN_IE (0x40) |
---|
2457 | #define MCF_PWM_PWMSDN_IF (0x80) |
---|
2458 | |
---|
2459 | /********************************************************************* |
---|
2460 | * |
---|
2461 | * Edge Port Module (EPORT) |
---|
2462 | * |
---|
2463 | *********************************************************************/ |
---|
2464 | |
---|
2465 | /* Register read/write macros */ |
---|
2466 | #define MCF_EPORT_EPPAR (*(vuint16*)(0xFC094000)) |
---|
2467 | #define MCF_EPORT_EPDDR (*(vuint8 *)(0xFC094002)) |
---|
2468 | #define MCF_EPORT_EPIER (*(vuint8 *)(0xFC094003)) |
---|
2469 | #define MCF_EPORT_EPDR (*(vuint8 *)(0xFC094004)) |
---|
2470 | #define MCF_EPORT_EPPDR (*(vuint8 *)(0xFC094005)) |
---|
2471 | #define MCF_EPORT_EPFR (*(vuint8 *)(0xFC094006)) |
---|
2472 | |
---|
2473 | /* Bit definitions and macros for MCF_EPORT_EPPAR */ |
---|
2474 | #define MCF_EPORT_EPPAR_EPPA1(x) (((x)&0x0003)<<2) |
---|
2475 | #define MCF_EPORT_EPPAR_EPPA2(x) (((x)&0x0003)<<4) |
---|
2476 | #define MCF_EPORT_EPPAR_EPPA3(x) (((x)&0x0003)<<6) |
---|
2477 | #define MCF_EPORT_EPPAR_EPPA4(x) (((x)&0x0003)<<8) |
---|
2478 | #define MCF_EPORT_EPPAR_EPPA5(x) (((x)&0x0003)<<10) |
---|
2479 | #define MCF_EPORT_EPPAR_EPPA6(x) (((x)&0x0003)<<12) |
---|
2480 | #define MCF_EPORT_EPPAR_EPPA7(x) (((x)&0x0003)<<14) |
---|
2481 | #define MCF_EPORT_EPPAR_LEVEL (0) |
---|
2482 | #define MCF_EPORT_EPPAR_RISING (1) |
---|
2483 | #define MCF_EPORT_EPPAR_FALLING (2) |
---|
2484 | #define MCF_EPORT_EPPAR_BOTH (3) |
---|
2485 | #define MCF_EPORT_EPPAR_EPPA7_LEVEL (0x0000) |
---|
2486 | #define MCF_EPORT_EPPAR_EPPA7_RISING (0x4000) |
---|
2487 | #define MCF_EPORT_EPPAR_EPPA7_FALLING (0x8000) |
---|
2488 | #define MCF_EPORT_EPPAR_EPPA7_BOTH (0xC000) |
---|
2489 | #define MCF_EPORT_EPPAR_EPPA6_LEVEL (0x0000) |
---|
2490 | #define MCF_EPORT_EPPAR_EPPA6_RISING (0x1000) |
---|
2491 | #define MCF_EPORT_EPPAR_EPPA6_FALLING (0x2000) |
---|
2492 | #define MCF_EPORT_EPPAR_EPPA6_BOTH (0x3000) |
---|
2493 | #define MCF_EPORT_EPPAR_EPPA5_LEVEL (0x0000) |
---|
2494 | #define MCF_EPORT_EPPAR_EPPA5_RISING (0x0400) |
---|
2495 | #define MCF_EPORT_EPPAR_EPPA5_FALLING (0x0800) |
---|
2496 | #define MCF_EPORT_EPPAR_EPPA5_BOTH (0x0C00) |
---|
2497 | #define MCF_EPORT_EPPAR_EPPA4_LEVEL (0x0000) |
---|
2498 | #define MCF_EPORT_EPPAR_EPPA4_RISING (0x0100) |
---|
2499 | #define MCF_EPORT_EPPAR_EPPA4_FALLING (0x0200) |
---|
2500 | #define MCF_EPORT_EPPAR_EPPA4_BOTH (0x0300) |
---|
2501 | #define MCF_EPORT_EPPAR_EPPA3_LEVEL (0x0000) |
---|
2502 | #define MCF_EPORT_EPPAR_EPPA3_RISING (0x0040) |
---|
2503 | #define MCF_EPORT_EPPAR_EPPA3_FALLING (0x0080) |
---|
2504 | #define MCF_EPORT_EPPAR_EPPA3_BOTH (0x00C0) |
---|
2505 | #define MCF_EPORT_EPPAR_EPPA2_LEVEL (0x0000) |
---|
2506 | #define MCF_EPORT_EPPAR_EPPA2_RISING (0x0010) |
---|
2507 | #define MCF_EPORT_EPPAR_EPPA2_FALLING (0x0020) |
---|
2508 | #define MCF_EPORT_EPPAR_EPPA2_BOTH (0x0030) |
---|
2509 | #define MCF_EPORT_EPPAR_EPPA1_LEVEL (0x0000) |
---|
2510 | #define MCF_EPORT_EPPAR_EPPA1_RISING (0x0004) |
---|
2511 | #define MCF_EPORT_EPPAR_EPPA1_FALLING (0x0008) |
---|
2512 | #define MCF_EPORT_EPPAR_EPPA1_BOTH (0x000C) |
---|
2513 | |
---|
2514 | /* Bit definitions and macros for MCF_EPORT_EPDDR */ |
---|
2515 | #define MCF_EPORT_EPDDR_EPDD1 (0x02) |
---|
2516 | #define MCF_EPORT_EPDDR_EPDD2 (0x04) |
---|
2517 | #define MCF_EPORT_EPDDR_EPDD3 (0x08) |
---|
2518 | #define MCF_EPORT_EPDDR_EPDD4 (0x10) |
---|
2519 | #define MCF_EPORT_EPDDR_EPDD5 (0x20) |
---|
2520 | #define MCF_EPORT_EPDDR_EPDD6 (0x40) |
---|
2521 | #define MCF_EPORT_EPDDR_EPDD7 (0x80) |
---|
2522 | |
---|
2523 | /* Bit definitions and macros for MCF_EPORT_EPIER */ |
---|
2524 | #define MCF_EPORT_EPIER_EPIE1 (0x02) |
---|
2525 | #define MCF_EPORT_EPIER_EPIE2 (0x04) |
---|
2526 | #define MCF_EPORT_EPIER_EPIE3 (0x08) |
---|
2527 | #define MCF_EPORT_EPIER_EPIE4 (0x10) |
---|
2528 | #define MCF_EPORT_EPIER_EPIE5 (0x20) |
---|
2529 | #define MCF_EPORT_EPIER_EPIE6 (0x40) |
---|
2530 | #define MCF_EPORT_EPIER_EPIE7 (0x80) |
---|
2531 | |
---|
2532 | /* Bit definitions and macros for MCF_EPORT_EPDR */ |
---|
2533 | #define MCF_EPORT_EPDR_EPD1 (0x02) |
---|
2534 | #define MCF_EPORT_EPDR_EPD2 (0x04) |
---|
2535 | #define MCF_EPORT_EPDR_EPD3 (0x08) |
---|
2536 | #define MCF_EPORT_EPDR_EPD4 (0x10) |
---|
2537 | #define MCF_EPORT_EPDR_EPD5 (0x20) |
---|
2538 | #define MCF_EPORT_EPDR_EPD6 (0x40) |
---|
2539 | #define MCF_EPORT_EPDR_EPD7 (0x80) |
---|
2540 | |
---|
2541 | /* Bit definitions and macros for MCF_EPORT_EPPDR */ |
---|
2542 | #define MCF_EPORT_EPPDR_EPPD1 (0x02) |
---|
2543 | #define MCF_EPORT_EPPDR_EPPD2 (0x04) |
---|
2544 | #define MCF_EPORT_EPPDR_EPPD3 (0x08) |
---|
2545 | #define MCF_EPORT_EPPDR_EPPD4 (0x10) |
---|
2546 | #define MCF_EPORT_EPPDR_EPPD5 (0x20) |
---|
2547 | #define MCF_EPORT_EPPDR_EPPD6 (0x40) |
---|
2548 | #define MCF_EPORT_EPPDR_EPPD7 (0x80) |
---|
2549 | |
---|
2550 | /* Bit definitions and macros for MCF_EPORT_EPFR */ |
---|
2551 | #define MCF_EPORT_EPFR_EPF1 (0x02) |
---|
2552 | #define MCF_EPORT_EPFR_EPF2 (0x04) |
---|
2553 | #define MCF_EPORT_EPFR_EPF3 (0x08) |
---|
2554 | #define MCF_EPORT_EPFR_EPF4 (0x10) |
---|
2555 | #define MCF_EPORT_EPFR_EPF5 (0x20) |
---|
2556 | #define MCF_EPORT_EPFR_EPF6 (0x40) |
---|
2557 | #define MCF_EPORT_EPFR_EPF7 (0x80) |
---|
2558 | |
---|
2559 | /********************************************************************* |
---|
2560 | * |
---|
2561 | * Watchdog Timer Modules (WTM) |
---|
2562 | * |
---|
2563 | *********************************************************************/ |
---|
2564 | |
---|
2565 | /* Register read/write macros */ |
---|
2566 | #define MCF_WTM_WCR (*(vuint16*)(0xFC098000)) |
---|
2567 | #define MCF_WTM_WMR (*(vuint16*)(0xFC098002)) |
---|
2568 | #define MCF_WTM_WCNTR (*(vuint16*)(0xFC098004)) |
---|
2569 | #define MCF_WTM_WSR (*(vuint16*)(0xFC098006)) |
---|
2570 | |
---|
2571 | /* Bit definitions and macros for MCF_WTM_WCR */ |
---|
2572 | #define MCF_WTM_WCR_EN (0x0001) |
---|
2573 | #define MCF_WTM_WCR_HALTED (0x0002) |
---|
2574 | #define MCF_WTM_WCR_DOZE (0x0004) |
---|
2575 | #define MCF_WTM_WCR_WAIT (0x0008) |
---|
2576 | |
---|
2577 | /* Bit definitions and macros for MCF_WTM_WMR */ |
---|
2578 | #define MCF_WTM_WMR_WM(x) (((x)&0xFFFF)<<0) |
---|
2579 | |
---|
2580 | /* Bit definitions and macros for MCF_WTM_WCNTR */ |
---|
2581 | #define MCF_WTM_WCNTR_WC(x) (((x)&0xFFFF)<<0) |
---|
2582 | |
---|
2583 | /* Bit definitions and macros for MCF_WTM_WSR */ |
---|
2584 | #define MCF_WTM_WSR_WS(x) (((x)&0xFFFF)<<0) |
---|
2585 | |
---|
2586 | /********************************************************************* |
---|
2587 | * |
---|
2588 | * Chip Configuration Module (CCM) |
---|
2589 | * |
---|
2590 | *********************************************************************/ |
---|
2591 | |
---|
2592 | /* Register read/write macros */ |
---|
2593 | #define MCF_CCM_CCR (*(vuint16*)(0xFC0A0004)) |
---|
2594 | #define MCF_CCM_RCON (*(vuint16*)(0xFC0A0008)) |
---|
2595 | #define MCF_CCM_CIR (*(vuint16*)(0xFC0A000A)) |
---|
2596 | #define MCF_CCM_MISCCR (*(vuint16*)(0xFC0A0010)) |
---|
2597 | #define MCF_CCM_CDR (*(vuint16*)(0xFC0A0012)) |
---|
2598 | #define MCF_CCM_UHCSR (*(vuint16*)(0xFC0A0014)) |
---|
2599 | #define MCF_CCM_UOCSR (*(vuint16*)(0xFC0A0016)) |
---|
2600 | |
---|
2601 | /* Bit definitions and macros for MCF_CCM_CCR */ |
---|
2602 | #define MCF_CCM_CCR_RESERVED (0x0001) |
---|
2603 | #define MCF_CCM_CCR_PLL_MODE (0x0003) |
---|
2604 | #define MCF_CCM_CCR_OSC_MODE (0x0005) |
---|
2605 | #define MCF_CCM_CCR_BOOTPS(x) (((x)&0x0003)<<3|0x0001) |
---|
2606 | #define MCF_CCM_CCR_LOAD (0x0021) |
---|
2607 | #define MCF_CCM_CCR_LIMP (0x0041) |
---|
2608 | #define MCF_CCM_CCR_CSC(x) (((x)&0x0003)<<8|0x0001) |
---|
2609 | |
---|
2610 | /* Bit definitions and macros for MCF_CCM_RCON */ |
---|
2611 | #define MCF_CCM_RCON_RESERVED (0x0001) |
---|
2612 | #define MCF_CCM_RCON_PLL_MODE (0x0003) |
---|
2613 | #define MCF_CCM_RCON_OSC_MODE (0x0005) |
---|
2614 | #define MCF_CCM_RCON_BOOTPS(x) (((x)&0x0003)<<3|0x0001) |
---|
2615 | #define MCF_CCM_RCON_LOAD (0x0021) |
---|
2616 | #define MCF_CCM_RCON_LIMP (0x0041) |
---|
2617 | #define MCF_CCM_RCON_CSC(x) (((x)&0x0003)<<8|0x0001) |
---|
2618 | |
---|
2619 | /* Bit definitions and macros for MCF_CCM_CIR */ |
---|
2620 | #define MCF_CCM_CIR_PRN(x) (((x)&0x003F)<<0) |
---|
2621 | #define MCF_CCM_CIR_PIN(x) (((x)&0x03FF)<<6) |
---|
2622 | |
---|
2623 | /* Bit definitions and macros for MCF_CCM_MISCCR */ |
---|
2624 | #define MCF_CCM_MISCCR_USBSRC (0x0001) |
---|
2625 | #define MCF_CCM_MISCCR_USBDIV (0x0002) |
---|
2626 | #define MCF_CCM_MISCCR_SSI_SRC (0x0010) |
---|
2627 | #define MCF_CCM_MISCCR_TIM_DMA (0x0020) |
---|
2628 | #define MCF_CCM_MISCCR_SSI_PUS (0x0040) |
---|
2629 | #define MCF_CCM_MISCCR_SSI_PUE (0x0080) |
---|
2630 | #define MCF_CCM_MISCCR_LCD_CHEN (0x0100) |
---|
2631 | #define MCF_CCM_MISCCR_LIMP (0x1000) |
---|
2632 | #define MCF_CCM_MISCCR_PLL_LOCK (0x2000) |
---|
2633 | |
---|
2634 | /* Bit definitions and macros for MCF_CCM_CDR */ |
---|
2635 | #define MCF_CCM_CDR_SSIDIV(x) (((x)&0x003F)<<0) |
---|
2636 | #define MCF_CCM_CDR_LPDIV(x) (((x)&0x000F)<<8) |
---|
2637 | |
---|
2638 | /* Bit definitions and macros for MCF_CCM_UHCSR */ |
---|
2639 | #define MCF_CCM_UHCSR_XPDE (0x0001) |
---|
2640 | #define MCF_CCM_UHCSR_UHMIE (0x0002) |
---|
2641 | #define MCF_CCM_UHCSR_WKUP (0x0004) |
---|
2642 | #define MCF_CCM_UHCSR_PORTIND(x) (((x)&0x0003)<<14) |
---|
2643 | |
---|
2644 | /* Bit definitions and macros for MCF_CCM_UOCSR */ |
---|
2645 | #define MCF_CCM_UOCSR_XPDE (0x0001) |
---|
2646 | #define MCF_CCM_UOCSR_UOMIE (0x0002) |
---|
2647 | #define MCF_CCM_UOCSR_WKUP (0x0004) |
---|
2648 | #define MCF_CCM_UOCSR_PWRFLT (0x0008) |
---|
2649 | #define MCF_CCM_UOCSR_SEND (0x0010) |
---|
2650 | #define MCF_CCM_UOCSR_VVLD (0x0020) |
---|
2651 | #define MCF_CCM_UOCSR_BVLD (0x0040) |
---|
2652 | #define MCF_CCM_UOCSR_AVLD (0x0080) |
---|
2653 | #define MCF_CCM_UOCSR_DPPU (0x0100) |
---|
2654 | #define MCF_CCM_UOCSR_DCR_VBUS (0x0200) |
---|
2655 | #define MCF_CCM_UOCSR_CRG_VBUS (0x0400) |
---|
2656 | #define MCF_CCM_UOCSR_DRV_VBUS (0x0800) |
---|
2657 | #define MCF_CCM_UOCSR_DMPD (0x1000) |
---|
2658 | #define MCF_CCM_UOCSR_DPPD (0x2000) |
---|
2659 | #define MCF_CCM_UOCSR_PORTIND(x) (((x)&0x0003)<<14) |
---|
2660 | |
---|
2661 | /********************************************************************* |
---|
2662 | * |
---|
2663 | * Reset Controller Module (RCM) |
---|
2664 | * |
---|
2665 | *********************************************************************/ |
---|
2666 | |
---|
2667 | /* Register read/write macros */ |
---|
2668 | #define MCF_RCM_RCR (*(vuint8 *)(0xFC0A0000)) |
---|
2669 | #define MCF_RCM_RSR (*(vuint8 *)(0xFC0A0001)) |
---|
2670 | |
---|
2671 | /* Bit definitions and macros for MCF_RCM_RCR */ |
---|
2672 | #define MCF_RCM_RCR_FRCRSTOUT (0x40) |
---|
2673 | #define MCF_RCM_RCR_SOFTRST (0x80) |
---|
2674 | |
---|
2675 | /* Bit definitions and macros for MCF_RCM_RSR */ |
---|
2676 | #define MCF_RCM_RSR_LOL (0x01) |
---|
2677 | #define MCF_RCM_RSR_WDR_CORE (0x02) |
---|
2678 | #define MCF_RCM_RSR_EXT (0x04) |
---|
2679 | #define MCF_RCM_RSR_POR (0x08) |
---|
2680 | #define MCF_RCM_RSR_WDR_CHIP (0x10) |
---|
2681 | #define MCF_RCM_RSR_SOFT (0x20) |
---|
2682 | |
---|
2683 | /********************************************************************* |
---|
2684 | * |
---|
2685 | * General Purpose I/O (GPIO) |
---|
2686 | * |
---|
2687 | *********************************************************************/ |
---|
2688 | |
---|
2689 | /* Register read/write macros */ |
---|
2690 | #define MCF_GPIO_PODR_FECH (*(vuint8 *)(0xFC0A4000)) |
---|
2691 | #define MCF_GPIO_PODR_FECL (*(vuint8 *)(0xFC0A4001)) |
---|
2692 | #define MCF_GPIO_PODR_SSI (*(vuint8 *)(0xFC0A4002)) |
---|
2693 | #define MCF_GPIO_PODR_BUSCTL (*(vuint8 *)(0xFC0A4003)) |
---|
2694 | #define MCF_GPIO_PODR_BE (*(vuint8 *)(0xFC0A4004)) |
---|
2695 | #define MCF_GPIO_PODR_CS (*(vuint8 *)(0xFC0A4005)) |
---|
2696 | #define MCF_GPIO_PODR_PWM (*(vuint8 *)(0xFC0A4006)) |
---|
2697 | #define MCF_GPIO_PODR_FECI2C (*(vuint8 *)(0xFC0A4007)) |
---|
2698 | #define MCF_GPIO_PODR_UART (*(vuint8 *)(0xFC0A4009)) |
---|
2699 | #define MCF_GPIO_PODR_QSPI (*(vuint8 *)(0xFC0A400A)) |
---|
2700 | #define MCF_GPIO_PODR_TIMER (*(vuint8 *)(0xFC0A400B)) |
---|
2701 | #define MCF_GPIO_PODR_LCDDATAH (*(vuint8 *)(0xFC0A400D)) |
---|
2702 | #define MCF_GPIO_PODR_LCDDATAM (*(vuint8 *)(0xFC0A400E)) |
---|
2703 | #define MCF_GPIO_PODR_LCDDATAL (*(vuint8 *)(0xFC0A400F)) |
---|
2704 | #define MCF_GPIO_PODR_LCDCTLH (*(vuint8 *)(0xFC0A4010)) |
---|
2705 | #define MCF_GPIO_PODR_LCDCTLL (*(vuint8 *)(0xFC0A4011)) |
---|
2706 | #define MCF_GPIO_PDDR_FECH (*(vuint8 *)(0xFC0A4014)) |
---|
2707 | #define MCF_GPIO_PDDR_FECL (*(vuint8 *)(0xFC0A4015)) |
---|
2708 | #define MCF_GPIO_PDDR_SSI (*(vuint8 *)(0xFC0A4016)) |
---|
2709 | #define MCF_GPIO_PDDR_BUSCTL (*(vuint8 *)(0xFC0A4017)) |
---|
2710 | #define MCF_GPIO_PDDR_BE (*(vuint8 *)(0xFC0A4018)) |
---|
2711 | #define MCF_GPIO_PDDR_CS (*(vuint8 *)(0xFC0A4019)) |
---|
2712 | #define MCF_GPIO_PDDR_PWM (*(vuint8 *)(0xFC0A401A)) |
---|
2713 | #define MCF_GPIO_PDDR_FECI2C (*(vuint8 *)(0xFC0A401B)) |
---|
2714 | #define MCF_GPIO_PDDR_UART (*(vuint8 *)(0xFC0A401D)) |
---|
2715 | #define MCF_GPIO_PDDR_QSPI (*(vuint8 *)(0xFC0A401E)) |
---|
2716 | #define MCF_GPIO_PDDR_TIMER (*(vuint8 *)(0xFC0A401F)) |
---|
2717 | #define MCF_GPIO_PDDR_LCDDATAH (*(vuint8 *)(0xFC0A4021)) |
---|
2718 | #define MCF_GPIO_PDDR_LCDDATAM (*(vuint8 *)(0xFC0A4022)) |
---|
2719 | #define MCF_GPIO_PDDR_LCDDATAL (*(vuint8 *)(0xFC0A4023)) |
---|
2720 | #define MCF_GPIO_PDDR_LCDCTLH (*(vuint8 *)(0xFC0A4024)) |
---|
2721 | #define MCF_GPIO_PDDR_LCDCTLL (*(vuint8 *)(0xFC0A4025)) |
---|
2722 | #define MCF_GPIO_PPDSDR_FECH (*(vuint8 *)(0xFC0A4028)) |
---|
2723 | #define MCF_GPIO_PPDSDR_FECL (*(vuint8 *)(0xFC0A4029)) |
---|
2724 | #define MCF_GPIO_PPDSDR_SSI (*(vuint8 *)(0xFC0A402A)) |
---|
2725 | #define MCF_GPIO_PPDSDR_BUSCTL (*(vuint8 *)(0xFC0A402B)) |
---|
2726 | #define MCF_GPIO_PPDSDR_BE (*(vuint8 *)(0xFC0A402C)) |
---|
2727 | #define MCF_GPIO_PPDSDR_CS (*(vuint8 *)(0xFC0A402D)) |
---|
2728 | #define MCF_GPIO_PPDSDR_PWM (*(vuint8 *)(0xFC0A402E)) |
---|
2729 | #define MCF_GPIO_PPDSDR_FECI2C (*(vuint8 *)(0xFC0A402F)) |
---|
2730 | #define MCF_GPIO_PPDSDR_UART (*(vuint8 *)(0xFC0A4031)) |
---|
2731 | #define MCF_GPIO_PPDSDR_QSPI (*(vuint8 *)(0xFC0A4032)) |
---|
2732 | #define MCF_GPIO_PPDSDR_TIMER (*(vuint8 *)(0xFC0A4033)) |
---|
2733 | #define MCF_GPIO_PPDSDR_LCDDATAH (*(vuint8 *)(0xFC0A4035)) |
---|
2734 | #define MCF_GPIO_PPDSDR_LCDDATAM (*(vuint8 *)(0xFC0A4036)) |
---|
2735 | #define MCF_GPIO_PPDSDR_LCDDATAL (*(vuint8 *)(0xFC0A4037)) |
---|
2736 | #define MCF_GPIO_PPDSDR_LCDCTLH (*(vuint8 *)(0xFC0A4038)) |
---|
2737 | #define MCF_GPIO_PPDSDR_LCDCTLL (*(vuint8 *)(0xFC0A4039)) |
---|
2738 | #define MCF_GPIO_PCLRR_FECH (*(vuint8 *)(0xFC0A403C)) |
---|
2739 | #define MCF_GPIO_PCLRR_FECL (*(vuint8 *)(0xFC0A403D)) |
---|
2740 | #define MCF_GPIO_PCLRR_SSI (*(vuint8 *)(0xFC0A403E)) |
---|
2741 | #define MCF_GPIO_PCLRR_BUSCTL (*(vuint8 *)(0xFC0A403F)) |
---|
2742 | #define MCF_GPIO_PCLRR_BE (*(vuint8 *)(0xFC0A4040)) |
---|
2743 | #define MCF_GPIO_PCLRR_CS (*(vuint8 *)(0xFC0A4041)) |
---|
2744 | #define MCF_GPIO_PCLRR_PWM (*(vuint8 *)(0xFC0A4042)) |
---|
2745 | #define MCF_GPIO_PCLRR_FECI2C (*(vuint8 *)(0xFC0A4043)) |
---|
2746 | #define MCF_GPIO_PCLRR_UART (*(vuint8 *)(0xFC0A4045)) |
---|
2747 | #define MCF_GPIO_PCLRR_QSPI (*(vuint8 *)(0xFC0A4046)) |
---|
2748 | #define MCF_GPIO_PCLRR_TIMER (*(vuint8 *)(0xFC0A4047)) |
---|
2749 | #define MCF_GPIO_PCLRR_LCDDATAH (*(vuint8 *)(0xFC0A4049)) |
---|
2750 | #define MCF_GPIO_PCLRR_LCDDATAM (*(vuint8 *)(0xFC0A404A)) |
---|
2751 | #define MCF_GPIO_PCLRR_LCDDATAL (*(vuint8 *)(0xFC0A404B)) |
---|
2752 | #define MCF_GPIO_PCLRR_LCDCTLH (*(vuint8 *)(0xFC0A404C)) |
---|
2753 | #define MCF_GPIO_PCLRR_LCDCTLL (*(vuint8 *)(0xFC0A404D)) |
---|
2754 | #define MCF_GPIO_PAR_FEC (*(vuint8 *)(0xFC0A4050)) |
---|
2755 | #define MCF_GPIO_PAR_PWM (*(vuint8 *)(0xFC0A4051)) |
---|
2756 | #define MCF_GPIO_PAR_BUSCTL (*(vuint8 *)(0xFC0A4052)) |
---|
2757 | #define MCF_GPIO_PAR_FECI2C (*(vuint8 *)(0xFC0A4053)) |
---|
2758 | #define MCF_GPIO_PAR_BE (*(vuint8 *)(0xFC0A4054)) |
---|
2759 | #define MCF_GPIO_PAR_CS (*(vuint8 *)(0xFC0A4055)) |
---|
2760 | #define MCF_GPIO_PAR_SSI (*(vuint16*)(0xFC0A4056)) |
---|
2761 | #define MCF_GPIO_PAR_UART (*(vuint16*)(0xFC0A4058)) |
---|
2762 | #define MCF_GPIO_PAR_QSPI (*(vuint16*)(0xFC0A405A)) |
---|
2763 | #define MCF_GPIO_PAR_TIMER (*(vuint8 *)(0xFC0A405C)) |
---|
2764 | #define MCF_GPIO_PAR_LCDDATA (*(vuint8 *)(0xFC0A405D)) |
---|
2765 | #define MCF_GPIO_PAR_LCDCTL (*(vuint16*)(0xFC0A405E)) |
---|
2766 | #define MCF_GPIO_PAR_IRQ (*(vuint16*)(0xFC0A4060)) |
---|
2767 | #define MCF_GPIO_MSCR_FLEXBUS (*(vuint8 *)(0xFC0A4064)) |
---|
2768 | #define MCF_GPIO_MSCR_SDRAM (*(vuint8 *)(0xFC0A4065)) |
---|
2769 | #define MCF_GPIO_DSCR_I2C (*(vuint8 *)(0xFC0A4068)) |
---|
2770 | #define MCF_GPIO_DSCR_PWM (*(vuint8 *)(0xFC0A4069)) |
---|
2771 | #define MCF_GPIO_DSCR_FEC (*(vuint8 *)(0xFC0A406A)) |
---|
2772 | #define MCF_GPIO_DSCR_UART (*(vuint8 *)(0xFC0A406B)) |
---|
2773 | #define MCF_GPIO_DSCR_QSPI (*(vuint8 *)(0xFC0A406C)) |
---|
2774 | #define MCF_GPIO_DSCR_TIMER (*(vuint8 *)(0xFC0A406D)) |
---|
2775 | #define MCF_GPIO_DSCR_SSI (*(vuint8 *)(0xFC0A406E)) |
---|
2776 | #define MCF_GPIO_DSCR_LCD (*(vuint8 *)(0xFC0A406F)) |
---|
2777 | #define MCF_GPIO_DSCR_DEBUG (*(vuint8 *)(0xFC0A4070)) |
---|
2778 | #define MCF_GPIO_DSCR_CLKRST (*(vuint8 *)(0xFC0A4071)) |
---|
2779 | #define MCF_GPIO_DSCR_IRQ (*(vuint8 *)(0xFC0A4072)) |
---|
2780 | |
---|
2781 | /* Bit definitions and macros for MCF_GPIO_PODR_FECH */ |
---|
2782 | #define MCF_GPIO_PODR_FECH_PODR_FECH0 (0x01) |
---|
2783 | #define MCF_GPIO_PODR_FECH_PODR_FECH1 (0x02) |
---|
2784 | #define MCF_GPIO_PODR_FECH_PODR_FECH2 (0x04) |
---|
2785 | #define MCF_GPIO_PODR_FECH_PODR_FECH3 (0x08) |
---|
2786 | #define MCF_GPIO_PODR_FECH_PODR_FECH4 (0x10) |
---|
2787 | #define MCF_GPIO_PODR_FECH_PODR_FECH5 (0x20) |
---|
2788 | #define MCF_GPIO_PODR_FECH_PODR_FECH6 (0x40) |
---|
2789 | #define MCF_GPIO_PODR_FECH_PODR_FECH7 (0x80) |
---|
2790 | |
---|
2791 | /* Bit definitions and macros for MCF_GPIO_PODR_FECL */ |
---|
2792 | #define MCF_GPIO_PODR_FECL_PODR_FECL0 (0x01) |
---|
2793 | #define MCF_GPIO_PODR_FECL_PODR_FECL1 (0x02) |
---|
2794 | #define MCF_GPIO_PODR_FECL_PODR_FECL2 (0x04) |
---|
2795 | #define MCF_GPIO_PODR_FECL_PODR_FECL3 (0x08) |
---|
2796 | #define MCF_GPIO_PODR_FECL_PODR_FECL4 (0x10) |
---|
2797 | #define MCF_GPIO_PODR_FECL_PODR_FECL5 (0x20) |
---|
2798 | #define MCF_GPIO_PODR_FECL_PODR_FECL6 (0x40) |
---|
2799 | #define MCF_GPIO_PODR_FECL_PODR_FECL7 (0x80) |
---|
2800 | |
---|
2801 | /* Bit definitions and macros for MCF_GPIO_PODR_SSI */ |
---|
2802 | #define MCF_GPIO_PODR_SSI_PODR_SSI0 (0x01) |
---|
2803 | #define MCF_GPIO_PODR_SSI_PODR_SSI1 (0x02) |
---|
2804 | #define MCF_GPIO_PODR_SSI_PODR_SSI2 (0x04) |
---|
2805 | #define MCF_GPIO_PODR_SSI_PODR_SSI3 (0x08) |
---|
2806 | #define MCF_GPIO_PODR_SSI_PODR_SSI4 (0x10) |
---|
2807 | |
---|
2808 | /* Bit definitions and macros for MCF_GPIO_PODR_BUSCTL */ |
---|
2809 | #define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL0 (0x01) |
---|
2810 | #define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL1 (0x02) |
---|
2811 | #define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL2 (0x04) |
---|
2812 | #define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL3 (0x08) |
---|
2813 | |
---|
2814 | /* Bit definitions and macros for MCF_GPIO_PODR_BE */ |
---|
2815 | #define MCF_GPIO_PODR_BE_PODR_BE0 (0x01) |
---|
2816 | #define MCF_GPIO_PODR_BE_PODR_BE1 (0x02) |
---|
2817 | #define MCF_GPIO_PODR_BE_PODR_BE2 (0x04) |
---|
2818 | #define MCF_GPIO_PODR_BE_PODR_BE3 (0x08) |
---|
2819 | |
---|
2820 | /* Bit definitions and macros for MCF_GPIO_PODR_CS */ |
---|
2821 | #define MCF_GPIO_PODR_CS_PODR_CS1 (0x02) |
---|
2822 | #define MCF_GPIO_PODR_CS_PODR_CS2 (0x04) |
---|
2823 | #define MCF_GPIO_PODR_CS_PODR_CS3 (0x08) |
---|
2824 | #define MCF_GPIO_PODR_CS_PODR_CS4 (0x10) |
---|
2825 | #define MCF_GPIO_PODR_CS_PODR_CS5 (0x20) |
---|
2826 | |
---|
2827 | /* Bit definitions and macros for MCF_GPIO_PODR_PWM */ |
---|
2828 | #define MCF_GPIO_PODR_PWM_PODR_PWM2 (0x04) |
---|
2829 | #define MCF_GPIO_PODR_PWM_PODR_PWM3 (0x08) |
---|
2830 | #define MCF_GPIO_PODR_PWM_PODR_PWM4 (0x10) |
---|
2831 | #define MCF_GPIO_PODR_PWM_PODR_PWM5 (0x20) |
---|
2832 | |
---|
2833 | /* Bit definitions and macros for MCF_GPIO_PODR_FECI2C */ |
---|
2834 | #define MCF_GPIO_PODR_FECI2C_PODR_FECI2C0 (0x01) |
---|
2835 | #define MCF_GPIO_PODR_FECI2C_PODR_FECI2C1 (0x02) |
---|
2836 | #define MCF_GPIO_PODR_FECI2C_PODR_FECI2C2 (0x04) |
---|
2837 | #define MCF_GPIO_PODR_FECI2C_PODR_FECI2C3 (0x08) |
---|
2838 | |
---|
2839 | /* Bit definitions and macros for MCF_GPIO_PODR_UART */ |
---|
2840 | #define MCF_GPIO_PODR_UART_PODR_UART0 (0x01) |
---|
2841 | #define MCF_GPIO_PODR_UART_PODR_UART1 (0x02) |
---|
2842 | #define MCF_GPIO_PODR_UART_PODR_UART2 (0x04) |
---|
2843 | #define MCF_GPIO_PODR_UART_PODR_UART3 (0x08) |
---|
2844 | #define MCF_GPIO_PODR_UART_PODR_UART4 (0x10) |
---|
2845 | #define MCF_GPIO_PODR_UART_PODR_UART5 (0x20) |
---|
2846 | #define MCF_GPIO_PODR_UART_PODR_UART6 (0x40) |
---|
2847 | #define MCF_GPIO_PODR_UART_PODR_UART7 (0x80) |
---|
2848 | |
---|
2849 | /* Bit definitions and macros for MCF_GPIO_PODR_QSPI */ |
---|
2850 | #define MCF_GPIO_PODR_QSPI_PODR_QSPI0 (0x01) |
---|
2851 | #define MCF_GPIO_PODR_QSPI_PODR_QSPI1 (0x02) |
---|
2852 | #define MCF_GPIO_PODR_QSPI_PODR_QSPI2 (0x04) |
---|
2853 | #define MCF_GPIO_PODR_QSPI_PODR_QSPI3 (0x08) |
---|
2854 | #define MCF_GPIO_PODR_QSPI_PODR_QSPI4 (0x10) |
---|
2855 | #define MCF_GPIO_PODR_QSPI_PODR_QSPI5 (0x20) |
---|
2856 | |
---|
2857 | /* Bit definitions and macros for MCF_GPIO_PODR_TIMER */ |
---|
2858 | #define MCF_GPIO_PODR_TIMER_PODR_TIMER0 (0x01) |
---|
2859 | #define MCF_GPIO_PODR_TIMER_PODR_TIMER1 (0x02) |
---|
2860 | #define MCF_GPIO_PODR_TIMER_PODR_TIMER2 (0x04) |
---|
2861 | #define MCF_GPIO_PODR_TIMER_PODR_TIMER3 (0x08) |
---|
2862 | |
---|
2863 | /* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAH */ |
---|
2864 | #define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH0 (0x01) |
---|
2865 | #define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH1 (0x02) |
---|
2866 | |
---|
2867 | /* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAM */ |
---|
2868 | #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM0 (0x01) |
---|
2869 | #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM1 (0x02) |
---|
2870 | #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM2 (0x04) |
---|
2871 | #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM3 (0x08) |
---|
2872 | #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM4 (0x10) |
---|
2873 | #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM5 (0x20) |
---|
2874 | #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM6 (0x40) |
---|
2875 | #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM7 (0x80) |
---|
2876 | |
---|
2877 | /* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAL */ |
---|
2878 | #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL0 (0x01) |
---|
2879 | #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL1 (0x02) |
---|
2880 | #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL2 (0x04) |
---|
2881 | #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL3 (0x08) |
---|
2882 | #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL4 (0x10) |
---|
2883 | #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL5 (0x20) |
---|
2884 | #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL6 (0x40) |
---|
2885 | #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL7 (0x80) |
---|
2886 | |
---|
2887 | /* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLH */ |
---|
2888 | #define MCF_GPIO_PODR_LCDCTLH_PODR_LCDCTLH0 (0x01) |
---|
2889 | |
---|
2890 | /* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLL */ |
---|
2891 | #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL0 (0x01) |
---|
2892 | #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL1 (0x02) |
---|
2893 | #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL2 (0x04) |
---|
2894 | #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL3 (0x08) |
---|
2895 | #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL4 (0x10) |
---|
2896 | #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL5 (0x20) |
---|
2897 | #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL6 (0x40) |
---|
2898 | #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL7 (0x80) |
---|
2899 | |
---|
2900 | /* Bit definitions and macros for MCF_GPIO_PDDR_FECH */ |
---|
2901 | #define MCF_GPIO_PDDR_FECH_PDDR_FECH0 (0x01) |
---|
2902 | #define MCF_GPIO_PDDR_FECH_PDDR_FECH1 (0x02) |
---|
2903 | #define MCF_GPIO_PDDR_FECH_PDDR_FECH2 (0x04) |
---|
2904 | #define MCF_GPIO_PDDR_FECH_PDDR_FECH3 (0x08) |
---|
2905 | #define MCF_GPIO_PDDR_FECH_PDDR_FECH4 (0x10) |
---|
2906 | #define MCF_GPIO_PDDR_FECH_PDDR_FECH5 (0x20) |
---|
2907 | #define MCF_GPIO_PDDR_FECH_PDDR_FECH6 (0x40) |
---|
2908 | #define MCF_GPIO_PDDR_FECH_PDDR_FECH7 (0x80) |
---|
2909 | |
---|
2910 | /* Bit definitions and macros for MCF_GPIO_PDDR_FECL */ |
---|
2911 | #define MCF_GPIO_PDDR_FECL_PDDR_FECL0 (0x01) |
---|
2912 | #define MCF_GPIO_PDDR_FECL_PDDR_FECL1 (0x02) |
---|
2913 | #define MCF_GPIO_PDDR_FECL_PDDR_FECL2 (0x04) |
---|
2914 | #define MCF_GPIO_PDDR_FECL_PDDR_FECL3 (0x08) |
---|
2915 | #define MCF_GPIO_PDDR_FECL_PDDR_FECL4 (0x10) |
---|
2916 | #define MCF_GPIO_PDDR_FECL_PDDR_FECL5 (0x20) |
---|
2917 | #define MCF_GPIO_PDDR_FECL_PDDR_FECL6 (0x40) |
---|
2918 | #define MCF_GPIO_PDDR_FECL_PDDR_FECL7 (0x80) |
---|
2919 | |
---|
2920 | /* Bit definitions and macros for MCF_GPIO_PDDR_SSI */ |
---|
2921 | #define MCF_GPIO_PDDR_SSI_PDDR_SSI0 (0x01) |
---|
2922 | #define MCF_GPIO_PDDR_SSI_PDDR_SSI1 (0x02) |
---|
2923 | #define MCF_GPIO_PDDR_SSI_PDDR_SSI2 (0x04) |
---|
2924 | #define MCF_GPIO_PDDR_SSI_PDDR_SSI3 (0x08) |
---|
2925 | #define MCF_GPIO_PDDR_SSI_PDDR_SSI4 (0x10) |
---|
2926 | |
---|
2927 | /* Bit definitions and macros for MCF_GPIO_PDDR_BUSCTL */ |
---|
2928 | #define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL0 (0x01) |
---|
2929 | #define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL1 (0x02) |
---|
2930 | #define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL2 (0x04) |
---|
2931 | #define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL3 (0x08) |
---|
2932 | |
---|
2933 | /* Bit definitions and macros for MCF_GPIO_PDDR_BE */ |
---|
2934 | #define MCF_GPIO_PDDR_BE_PDDR_BE0 (0x01) |
---|
2935 | #define MCF_GPIO_PDDR_BE_PDDR_BE1 (0x02) |
---|
2936 | #define MCF_GPIO_PDDR_BE_PDDR_BE2 (0x04) |
---|
2937 | #define MCF_GPIO_PDDR_BE_PDDR_BE3 (0x08) |
---|
2938 | |
---|
2939 | /* Bit definitions and macros for MCF_GPIO_PDDR_CS */ |
---|
2940 | #define MCF_GPIO_PDDR_CS_PDDR_CS1 (0x02) |
---|
2941 | #define MCF_GPIO_PDDR_CS_PDDR_CS2 (0x04) |
---|
2942 | #define MCF_GPIO_PDDR_CS_PDDR_CS3 (0x08) |
---|
2943 | #define MCF_GPIO_PDDR_CS_PDDR_CS4 (0x10) |
---|
2944 | #define MCF_GPIO_PDDR_CS_PDDR_CS5 (0x20) |
---|
2945 | |
---|
2946 | /* Bit definitions and macros for MCF_GPIO_PDDR_PWM */ |
---|
2947 | #define MCF_GPIO_PDDR_PWM_PDDR_PWM2 (0x04) |
---|
2948 | #define MCF_GPIO_PDDR_PWM_PDDR_PWM3 (0x08) |
---|
2949 | #define MCF_GPIO_PDDR_PWM_PDDR_PWM4 (0x10) |
---|
2950 | #define MCF_GPIO_PDDR_PWM_PDDR_PWM5 (0x20) |
---|
2951 | |
---|
2952 | /* Bit definitions and macros for MCF_GPIO_PDDR_FECI2C */ |
---|
2953 | #define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C0 (0x01) |
---|
2954 | #define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C1 (0x02) |
---|
2955 | #define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C2 (0x04) |
---|
2956 | #define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C3 (0x08) |
---|
2957 | |
---|
2958 | /* Bit definitions and macros for MCF_GPIO_PDDR_UART */ |
---|
2959 | #define MCF_GPIO_PDDR_UART_PDDR_UART0 (0x01) |
---|
2960 | #define MCF_GPIO_PDDR_UART_PDDR_UART1 (0x02) |
---|
2961 | #define MCF_GPIO_PDDR_UART_PDDR_UART2 (0x04) |
---|
2962 | #define MCF_GPIO_PDDR_UART_PDDR_UART3 (0x08) |
---|
2963 | #define MCF_GPIO_PDDR_UART_PDDR_UART4 (0x10) |
---|
2964 | #define MCF_GPIO_PDDR_UART_PDDR_UART5 (0x20) |
---|
2965 | #define MCF_GPIO_PDDR_UART_PDDR_UART6 (0x40) |
---|
2966 | #define MCF_GPIO_PDDR_UART_PDDR_UART7 (0x80) |
---|
2967 | |
---|
2968 | /* Bit definitions and macros for MCF_GPIO_PDDR_QSPI */ |
---|
2969 | #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI0 (0x01) |
---|
2970 | #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI1 (0x02) |
---|
2971 | #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI2 (0x04) |
---|
2972 | #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI3 (0x08) |
---|
2973 | #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI4 (0x10) |
---|
2974 | #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI5 (0x20) |
---|
2975 | |
---|
2976 | /* Bit definitions and macros for MCF_GPIO_PDDR_TIMER */ |
---|
2977 | #define MCF_GPIO_PDDR_TIMER_PDDR_TIMER0 (0x01) |
---|
2978 | #define MCF_GPIO_PDDR_TIMER_PDDR_TIMER1 (0x02) |
---|
2979 | #define MCF_GPIO_PDDR_TIMER_PDDR_TIMER2 (0x04) |
---|
2980 | #define MCF_GPIO_PDDR_TIMER_PDDR_TIMER3 (0x08) |
---|
2981 | |
---|
2982 | /* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAH */ |
---|
2983 | #define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH0 (0x01) |
---|
2984 | #define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH1 (0x02) |
---|
2985 | |
---|
2986 | /* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAM */ |
---|
2987 | #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM0 (0x01) |
---|
2988 | #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM1 (0x02) |
---|
2989 | #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM2 (0x04) |
---|
2990 | #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM3 (0x08) |
---|
2991 | #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM4 (0x10) |
---|
2992 | #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM5 (0x20) |
---|
2993 | #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM6 (0x40) |
---|
2994 | #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM7 (0x80) |
---|
2995 | |
---|
2996 | /* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAL */ |
---|
2997 | #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL0 (0x01) |
---|
2998 | #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL1 (0x02) |
---|
2999 | #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL2 (0x04) |
---|
3000 | #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL3 (0x08) |
---|
3001 | #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL4 (0x10) |
---|
3002 | #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL5 (0x20) |
---|
3003 | #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL6 (0x40) |
---|
3004 | #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL7 (0x80) |
---|
3005 | |
---|
3006 | /* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLH */ |
---|
3007 | #define MCF_GPIO_PDDR_LCDCTLH_PDDR_LCDCTLH0 (0x01) |
---|
3008 | |
---|
3009 | /* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLL */ |
---|
3010 | #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL0 (0x01) |
---|
3011 | #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL1 (0x02) |
---|
3012 | #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL2 (0x04) |
---|
3013 | #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL3 (0x08) |
---|
3014 | #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL4 (0x10) |
---|
3015 | #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL5 (0x20) |
---|
3016 | #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL6 (0x40) |
---|
3017 | #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL7 (0x80) |
---|
3018 | |
---|
3019 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_FECH */ |
---|
3020 | #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH0 (0x01) |
---|
3021 | #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH1 (0x02) |
---|
3022 | #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH2 (0x04) |
---|
3023 | #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH3 (0x08) |
---|
3024 | #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH4 (0x10) |
---|
3025 | #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH5 (0x20) |
---|
3026 | #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH6 (0x40) |
---|
3027 | #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH7 (0x80) |
---|
3028 | |
---|
3029 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_FECL */ |
---|
3030 | #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL0 (0x01) |
---|
3031 | #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL1 (0x02) |
---|
3032 | #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL2 (0x04) |
---|
3033 | #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL3 (0x08) |
---|
3034 | #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL4 (0x10) |
---|
3035 | #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL5 (0x20) |
---|
3036 | #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL6 (0x40) |
---|
3037 | #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL7 (0x80) |
---|
3038 | |
---|
3039 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_SSI */ |
---|
3040 | #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI0 (0x01) |
---|
3041 | #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI1 (0x02) |
---|
3042 | #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI2 (0x04) |
---|
3043 | #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI3 (0x08) |
---|
3044 | #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI4 (0x10) |
---|
3045 | |
---|
3046 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_BUSCTL */ |
---|
3047 | #define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL0 (0x01) |
---|
3048 | #define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL1 (0x02) |
---|
3049 | #define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL2 (0x04) |
---|
3050 | #define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL3 (0x08) |
---|
3051 | |
---|
3052 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_BE */ |
---|
3053 | #define MCF_GPIO_PPDSDR_BE_PPDSDR_BE0 (0x01) |
---|
3054 | #define MCF_GPIO_PPDSDR_BE_PPDSDR_BE1 (0x02) |
---|
3055 | #define MCF_GPIO_PPDSDR_BE_PPDSDR_BE2 (0x04) |
---|
3056 | #define MCF_GPIO_PPDSDR_BE_PPDSDR_BE3 (0x08) |
---|
3057 | |
---|
3058 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_CS */ |
---|
3059 | #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS1 (0x02) |
---|
3060 | #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS2 (0x04) |
---|
3061 | #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS3 (0x08) |
---|
3062 | #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS4 (0x10) |
---|
3063 | #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS5 (0x20) |
---|
3064 | |
---|
3065 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_PWM */ |
---|
3066 | #define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM2 (0x04) |
---|
3067 | #define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM3 (0x08) |
---|
3068 | #define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM4 (0x10) |
---|
3069 | #define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM5 (0x20) |
---|
3070 | |
---|
3071 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_FECI2C */ |
---|
3072 | #define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C0 (0x01) |
---|
3073 | #define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C1 (0x02) |
---|
3074 | #define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C2 (0x04) |
---|
3075 | #define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C3 (0x08) |
---|
3076 | |
---|
3077 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_UART */ |
---|
3078 | #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART0 (0x01) |
---|
3079 | #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART1 (0x02) |
---|
3080 | #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART2 (0x04) |
---|
3081 | #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART3 (0x08) |
---|
3082 | #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART4 (0x10) |
---|
3083 | #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART5 (0x20) |
---|
3084 | #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART6 (0x40) |
---|
3085 | #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART7 (0x80) |
---|
3086 | |
---|
3087 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_QSPI */ |
---|
3088 | #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI0 (0x01) |
---|
3089 | #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI1 (0x02) |
---|
3090 | #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI2 (0x04) |
---|
3091 | #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI3 (0x08) |
---|
3092 | #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI4 (0x10) |
---|
3093 | #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI5 (0x20) |
---|
3094 | |
---|
3095 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_TIMER */ |
---|
3096 | #define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER0 (0x01) |
---|
3097 | #define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER1 (0x02) |
---|
3098 | #define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER2 (0x04) |
---|
3099 | #define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER3 (0x08) |
---|
3100 | |
---|
3101 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAH */ |
---|
3102 | #define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH0 (0x01) |
---|
3103 | #define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH1 (0x02) |
---|
3104 | |
---|
3105 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAM */ |
---|
3106 | #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM0 (0x01) |
---|
3107 | #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM1 (0x02) |
---|
3108 | #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM2 (0x04) |
---|
3109 | #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM3 (0x08) |
---|
3110 | #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM4 (0x10) |
---|
3111 | #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM5 (0x20) |
---|
3112 | #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM6 (0x40) |
---|
3113 | #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM7 (0x80) |
---|
3114 | |
---|
3115 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAL */ |
---|
3116 | #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL0 (0x01) |
---|
3117 | #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL1 (0x02) |
---|
3118 | #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL2 (0x04) |
---|
3119 | #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL3 (0x08) |
---|
3120 | #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL4 (0x10) |
---|
3121 | #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL5 (0x20) |
---|
3122 | #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL6 (0x40) |
---|
3123 | #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL7 (0x80) |
---|
3124 | |
---|
3125 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLH */ |
---|
3126 | #define MCF_GPIO_PPDSDR_LCDCTLH_PPDSDR_LCDCTLH0 (0x01) |
---|
3127 | |
---|
3128 | /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLL */ |
---|
3129 | #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL0 (0x01) |
---|
3130 | #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL1 (0x02) |
---|
3131 | #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL2 (0x04) |
---|
3132 | #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL3 (0x08) |
---|
3133 | #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL4 (0x10) |
---|
3134 | #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL5 (0x20) |
---|
3135 | #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL6 (0x40) |
---|
3136 | #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL7 (0x80) |
---|
3137 | |
---|
3138 | /* Bit definitions and macros for MCF_GPIO_PCLRR_FECH */ |
---|
3139 | #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH0 (0x01) |
---|
3140 | #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH1 (0x02) |
---|
3141 | #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH2 (0x04) |
---|
3142 | #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH3 (0x08) |
---|
3143 | #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH4 (0x10) |
---|
3144 | #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH5 (0x20) |
---|
3145 | #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH6 (0x40) |
---|
3146 | #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH7 (0x80) |
---|
3147 | |
---|
3148 | /* Bit definitions and macros for MCF_GPIO_PCLRR_FECL */ |
---|
3149 | #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL0 (0x01) |
---|
3150 | #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL1 (0x02) |
---|
3151 | #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL2 (0x04) |
---|
3152 | #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL3 (0x08) |
---|
3153 | #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL4 (0x10) |
---|
3154 | #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL5 (0x20) |
---|
3155 | #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL6 (0x40) |
---|
3156 | #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL7 (0x80) |
---|
3157 | |
---|
3158 | /* Bit definitions and macros for MCF_GPIO_PCLRR_SSI */ |
---|
3159 | #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI0 (0x01) |
---|
3160 | #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI1 (0x02) |
---|
3161 | #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI2 (0x04) |
---|
3162 | #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI3 (0x08) |
---|
3163 | #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI4 (0x10) |
---|
3164 | |
---|
3165 | /* Bit definitions and macros for MCF_GPIO_PCLRR_BUSCTL */ |
---|
3166 | #define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL0 (0x01) |
---|
3167 | #define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL1 (0x02) |
---|
3168 | #define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL2 (0x04) |
---|
3169 | #define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL3 (0x08) |
---|
3170 | |
---|
3171 | /* Bit definitions and macros for MCF_GPIO_PCLRR_BE */ |
---|
3172 | #define MCF_GPIO_PCLRR_BE_PCLRR_BE0 (0x01) |
---|
3173 | #define MCF_GPIO_PCLRR_BE_PCLRR_BE1 (0x02) |
---|
3174 | #define MCF_GPIO_PCLRR_BE_PCLRR_BE2 (0x04) |
---|
3175 | #define MCF_GPIO_PCLRR_BE_PCLRR_BE3 (0x08) |
---|
3176 | |
---|
3177 | /* Bit definitions and macros for MCF_GPIO_PCLRR_CS */ |
---|
3178 | #define MCF_GPIO_PCLRR_CS_PCLRR_CS1 (0x02) |
---|
3179 | #define MCF_GPIO_PCLRR_CS_PCLRR_CS2 (0x04) |
---|
3180 | #define MCF_GPIO_PCLRR_CS_PCLRR_CS3 (0x08) |
---|
3181 | #define MCF_GPIO_PCLRR_CS_PCLRR_CS4 (0x10) |
---|
3182 | #define MCF_GPIO_PCLRR_CS_PCLRR_CS5 (0x20) |
---|
3183 | |
---|
3184 | /* Bit definitions and macros for MCF_GPIO_PCLRR_PWM */ |
---|
3185 | #define MCF_GPIO_PCLRR_PWM_PCLRR_PWM2 (0x04) |
---|
3186 | #define MCF_GPIO_PCLRR_PWM_PCLRR_PWM3 (0x08) |
---|
3187 | #define MCF_GPIO_PCLRR_PWM_PCLRR_PWM4 (0x10) |
---|
3188 | #define MCF_GPIO_PCLRR_PWM_PCLRR_PWM5 (0x20) |
---|
3189 | |
---|
3190 | /* Bit definitions and macros for MCF_GPIO_PCLRR_FECI2C */ |
---|
3191 | #define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C0 (0x01) |
---|
3192 | #define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C1 (0x02) |
---|
3193 | #define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C2 (0x04) |
---|
3194 | #define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C3 (0x08) |
---|
3195 | |
---|
3196 | /* Bit definitions and macros for MCF_GPIO_PCLRR_UART */ |
---|
3197 | #define MCF_GPIO_PCLRR_UART_PCLRR_UART0 (0x01) |
---|
3198 | #define MCF_GPIO_PCLRR_UART_PCLRR_UART1 (0x02) |
---|
3199 | #define MCF_GPIO_PCLRR_UART_PCLRR_UART2 (0x04) |
---|
3200 | #define MCF_GPIO_PCLRR_UART_PCLRR_UART3 (0x08) |
---|
3201 | #define MCF_GPIO_PCLRR_UART_PCLRR_UART4 (0x10) |
---|
3202 | #define MCF_GPIO_PCLRR_UART_PCLRR_UART5 (0x20) |
---|
3203 | #define MCF_GPIO_PCLRR_UART_PCLRR_UART6 (0x40) |
---|
3204 | #define MCF_GPIO_PCLRR_UART_PCLRR_UART7 (0x80) |
---|
3205 | |
---|
3206 | /* Bit definitions and macros for MCF_GPIO_PCLRR_QSPI */ |
---|
3207 | #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI0 (0x01) |
---|
3208 | #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI1 (0x02) |
---|
3209 | #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI2 (0x04) |
---|
3210 | #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI3 (0x08) |
---|
3211 | #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI4 (0x10) |
---|
3212 | #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI5 (0x20) |
---|
3213 | |
---|
3214 | /* Bit definitions and macros for MCF_GPIO_PCLRR_TIMER */ |
---|
3215 | #define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER0 (0x01) |
---|
3216 | #define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER1 (0x02) |
---|
3217 | #define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER2 (0x04) |
---|
3218 | #define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER3 (0x08) |
---|
3219 | |
---|
3220 | /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAH */ |
---|
3221 | #define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH0 (0x01) |
---|
3222 | #define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH1 (0x02) |
---|
3223 | |
---|
3224 | /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAM */ |
---|
3225 | #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM0 (0x01) |
---|
3226 | #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM1 (0x02) |
---|
3227 | #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM2 (0x04) |
---|
3228 | #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM3 (0x08) |
---|
3229 | #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM4 (0x10) |
---|
3230 | #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM5 (0x20) |
---|
3231 | #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM6 (0x40) |
---|
3232 | #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM7 (0x80) |
---|
3233 | |
---|
3234 | /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAL */ |
---|
3235 | #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL0 (0x01) |
---|
3236 | #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL1 (0x02) |
---|
3237 | #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL2 (0x04) |
---|
3238 | #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL3 (0x08) |
---|
3239 | #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL4 (0x10) |
---|
3240 | #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL5 (0x20) |
---|
3241 | #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL6 (0x40) |
---|
3242 | #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL7 (0x80) |
---|
3243 | |
---|
3244 | /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLH */ |
---|
3245 | #define MCF_GPIO_PCLRR_LCDCTLH_PCLRR_LCDCTLH0 (0x01) |
---|
3246 | |
---|
3247 | /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLL */ |
---|
3248 | #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL0 (0x01) |
---|
3249 | #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL1 (0x02) |
---|
3250 | #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL2 (0x04) |
---|
3251 | #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL3 (0x08) |
---|
3252 | #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL4 (0x10) |
---|
3253 | #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL5 (0x20) |
---|
3254 | #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL6 (0x40) |
---|
3255 | #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL7 (0x80) |
---|
3256 | |
---|
3257 | /* Bit definitions and macros for MCF_GPIO_PAR_FEC */ |
---|
3258 | #define MCF_GPIO_PAR_FEC_PAR_FEC_MII(x) (((x)&0x03)<<0) |
---|
3259 | #define MCF_GPIO_PAR_FEC_PAR_FEC_7W(x) (((x)&0x03)<<2) |
---|
3260 | #define MCF_GPIO_PAR_FEC_PAR_FEC_7W_GPIO (0x00) |
---|
3261 | #define MCF_GPIO_PAR_FEC_PAR_FEC_7W_URTS1 (0x04) |
---|
3262 | #define MCF_GPIO_PAR_FEC_PAR_FEC_7W_FEC (0x0C) |
---|
3263 | #define MCF_GPIO_PAR_FEC_PAR_FEC_MII_GPIO (0x00) |
---|
3264 | #define MCF_GPIO_PAR_FEC_PAR_FEC_MII_UART (0x01) |
---|
3265 | #define MCF_GPIO_PAR_FEC_PAR_FEC_MII_FEC (0x03) |
---|
3266 | |
---|
3267 | /* Bit definitions and macros for MCF_GPIO_PAR_PWM */ |
---|
3268 | #define MCF_GPIO_PAR_PWM_PAR_PWM1(x) (((x)&0x03)<<0) |
---|
3269 | #define MCF_GPIO_PAR_PWM_PAR_PWM3(x) (((x)&0x03)<<2) |
---|
3270 | #define MCF_GPIO_PAR_PWM_PAR_PWM5 (0x10) |
---|
3271 | #define MCF_GPIO_PAR_PWM_PAR_PWM7 (0x20) |
---|
3272 | |
---|
3273 | /* Bit definitions and macros for MCF_GPIO_PAR_BUSCTL */ |
---|
3274 | #define MCF_GPIO_PAR_BUSCTL_PAR_TS(x) (((x)&0x03)<<3) |
---|
3275 | #define MCF_GPIO_PAR_BUSCTL_PAR_RWB (0x20) |
---|
3276 | #define MCF_GPIO_PAR_BUSCTL_PAR_TA (0x40) |
---|
3277 | #define MCF_GPIO_PAR_BUSCTL_PAR_OE (0x80) |
---|
3278 | #define MCF_GPIO_PAR_BUSCTL_PAR_OE_GPIO (0x00) |
---|
3279 | #define MCF_GPIO_PAR_BUSCTL_PAR_OE_OE (0x80) |
---|
3280 | #define MCF_GPIO_PAR_BUSCTL_PAR_TA_GPIO (0x00) |
---|
3281 | #define MCF_GPIO_PAR_BUSCTL_PAR_TA_TA (0x40) |
---|
3282 | #define MCF_GPIO_PAR_BUSCTL_PAR_RWB_GPIO (0x00) |
---|
3283 | #define MCF_GPIO_PAR_BUSCTL_PAR_RWB_RWB (0x20) |
---|
3284 | #define MCF_GPIO_PAR_BUSCTL_PAR_TS_GPIO (0x00) |
---|
3285 | #define MCF_GPIO_PAR_BUSCTL_PAR_TS_DACK0 (0x10) |
---|
3286 | #define MCF_GPIO_PAR_BUSCTL_PAR_TS_TS (0x18) |
---|
3287 | |
---|
3288 | /* Bit definitions and macros for MCF_GPIO_PAR_FECI2C */ |
---|
3289 | #define MCF_GPIO_PAR_FECI2C_PAR_SDA(x) (((x)&0x03)<<0) |
---|
3290 | #define MCF_GPIO_PAR_FECI2C_PAR_SCL(x) (((x)&0x03)<<2) |
---|
3291 | #define MCF_GPIO_PAR_FECI2C_PAR_MDIO(x) (((x)&0x03)<<4) |
---|
3292 | #define MCF_GPIO_PAR_FECI2C_PAR_MDC(x) (((x)&0x03)<<6) |
---|
3293 | #define MCF_GPIO_PAR_FECI2C_PAR_MDC_GPIO (0x00) |
---|
3294 | #define MCF_GPIO_PAR_FECI2C_PAR_MDC_UTXD2 (0x40) |
---|
3295 | #define MCF_GPIO_PAR_FECI2C_PAR_MDC_SCL (0x80) |
---|
3296 | #define MCF_GPIO_PAR_FECI2C_PAR_MDC_EMDC (0xC0) |
---|
3297 | #define MCF_GPIO_PAR_FECI2C_PAR_MDIO_GPIO (0x00) |
---|
3298 | #define MCF_GPIO_PAR_FECI2C_PAR_MDIO_URXD2 (0x10) |
---|
3299 | #define MCF_GPIO_PAR_FECI2C_PAR_MDIO_SDA (0x20) |
---|
3300 | #define MCF_GPIO_PAR_FECI2C_PAR_MDIO_EMDIO (0x30) |
---|
3301 | #define MCF_GPIO_PAR_FECI2C_PAR_SCL_GPIO (0x00) |
---|
3302 | #define MCF_GPIO_PAR_FECI2C_PAR_SCL_UTXD2 (0x04) |
---|
3303 | #define MCF_GPIO_PAR_FECI2C_PAR_SCL_SCL (0x0C) |
---|
3304 | #define MCF_GPIO_PAR_FECI2C_PAR_SDA_GPIO (0x00) |
---|
3305 | #define MCF_GPIO_PAR_FECI2C_PAR_SDA_URXD2 (0x01) |
---|
3306 | #define MCF_GPIO_PAR_FECI2C_PAR_SDA_SDA (0x03) |
---|
3307 | |
---|
3308 | /* Bit definitions and macros for MCF_GPIO_PAR_BE */ |
---|
3309 | #define MCF_GPIO_PAR_BE_PAR_BE0 (0x01) |
---|
3310 | #define MCF_GPIO_PAR_BE_PAR_BE1 (0x02) |
---|
3311 | #define MCF_GPIO_PAR_BE_PAR_BE2 (0x04) |
---|
3312 | #define MCF_GPIO_PAR_BE_PAR_BE3 (0x08) |
---|
3313 | |
---|
3314 | /* Bit definitions and macros for MCF_GPIO_PAR_CS */ |
---|
3315 | #define MCF_GPIO_PAR_CS_PAR_CS1 (0x02) |
---|
3316 | #define MCF_GPIO_PAR_CS_PAR_CS2 (0x04) |
---|
3317 | #define MCF_GPIO_PAR_CS_PAR_CS3 (0x08) |
---|
3318 | #define MCF_GPIO_PAR_CS_PAR_CS4 (0x10) |
---|
3319 | #define MCF_GPIO_PAR_CS_PAR_CS5 (0x20) |
---|
3320 | #define MCF_GPIO_PAR_CS_PAR_CS_CS1_GPIO (0x00) |
---|
3321 | #define MCF_GPIO_PAR_CS_PAR_CS_CS1_SDCS1 (0x01) |
---|
3322 | #define MCF_GPIO_PAR_CS_PAR_CS_CS1_CS1 (0x03) |
---|
3323 | |
---|
3324 | /* Bit definitions and macros for MCF_GPIO_PAR_SSI */ |
---|
3325 | #define MCF_GPIO_PAR_SSI_PAR_MCLK (0x0080) |
---|
3326 | #define MCF_GPIO_PAR_SSI_PAR_TXD(x) (((x)&0x0003)<<8) |
---|
3327 | #define MCF_GPIO_PAR_SSI_PAR_RXD(x) (((x)&0x0003)<<10) |
---|
3328 | #define MCF_GPIO_PAR_SSI_PAR_FS(x) (((x)&0x0003)<<12) |
---|
3329 | #define MCF_GPIO_PAR_SSI_PAR_BCLK(x) (((x)&0x0003)<<14) |
---|
3330 | |
---|
3331 | /* Bit definitions and macros for MCF_GPIO_PAR_UART */ |
---|
3332 | #define MCF_GPIO_PAR_UART_PAR_UTXD0 (0x0001) |
---|
3333 | #define MCF_GPIO_PAR_UART_PAR_URXD0 (0x0002) |
---|
3334 | #define MCF_GPIO_PAR_UART_PAR_URTS0 (0x0004) |
---|
3335 | #define MCF_GPIO_PAR_UART_PAR_UCTS0 (0x0008) |
---|
3336 | #define MCF_GPIO_PAR_UART_PAR_UTXD1(x) (((x)&0x0003)<<4) |
---|
3337 | #define MCF_GPIO_PAR_UART_PAR_URXD1(x) (((x)&0x0003)<<6) |
---|
3338 | #define MCF_GPIO_PAR_UART_PAR_URTS1(x) (((x)&0x0003)<<8) |
---|
3339 | #define MCF_GPIO_PAR_UART_PAR_UCTS1(x) (((x)&0x0003)<<10) |
---|
3340 | #define MCF_GPIO_PAR_UART_PAR_UCTS1_GPIO (0x0000) |
---|
3341 | #define MCF_GPIO_PAR_UART_PAR_UCTS1_SSI_BCLK (0x0800) |
---|
3342 | #define MCF_GPIO_PAR_UART_PAR_UCTS1_ULPI_D7 (0x0400) |
---|
3343 | #define MCF_GPIO_PAR_UART_PAR_UCTS1_UCTS1 (0x0C00) |
---|
3344 | #define MCF_GPIO_PAR_UART_PAR_URTS1_GPIO (0x0000) |
---|
3345 | #define MCF_GPIO_PAR_UART_PAR_URTS1_SSI_FS (0x0200) |
---|
3346 | #define MCF_GPIO_PAR_UART_PAR_URTS1_ULPI_D6 (0x0100) |
---|
3347 | #define MCF_GPIO_PAR_UART_PAR_URTS1_URTS1 (0x0300) |
---|
3348 | #define MCF_GPIO_PAR_UART_PAR_URXD1_GPIO (0x0000) |
---|
3349 | #define MCF_GPIO_PAR_UART_PAR_URXD1_SSI_RXD (0x0080) |
---|
3350 | #define MCF_GPIO_PAR_UART_PAR_URXD1_ULPI_D5 (0x0040) |
---|
3351 | #define MCF_GPIO_PAR_UART_PAR_URXD1_URXD1 (0x00C0) |
---|
3352 | #define MCF_GPIO_PAR_UART_PAR_UTXD1_GPIO (0x0000) |
---|
3353 | #define MCF_GPIO_PAR_UART_PAR_UTXD1_SSI_TXD (0x0020) |
---|
3354 | #define MCF_GPIO_PAR_UART_PAR_UTXD1_ULPI_D4 (0x0010) |
---|
3355 | #define MCF_GPIO_PAR_UART_PAR_UTXD1_UTXD1 (0x0030) |
---|
3356 | |
---|
3357 | /* Bit definitions and macros for MCF_GPIO_PAR_QSPI */ |
---|
3358 | #define MCF_GPIO_PAR_QSPI_PAR_SCK(x) (((x)&0x0003)<<4) |
---|
3359 | #define MCF_GPIO_PAR_QSPI_PAR_DOUT(x) (((x)&0x0003)<<6) |
---|
3360 | #define MCF_GPIO_PAR_QSPI_PAR_DIN(x) (((x)&0x0003)<<8) |
---|
3361 | #define MCF_GPIO_PAR_QSPI_PAR_PCS0(x) (((x)&0x0003)<<10) |
---|
3362 | #define MCF_GPIO_PAR_QSPI_PAR_PCS1(x) (((x)&0x0003)<<12) |
---|
3363 | #define MCF_GPIO_PAR_QSPI_PAR_PCS2(x) (((x)&0x0003)<<14) |
---|
3364 | |
---|
3365 | /* Bit definitions and macros for MCF_GPIO_PAR_TIMER */ |
---|
3366 | #define MCF_GPIO_PAR_TIMER_PAR_TIN0(x) (((x)&0x03)<<0) |
---|
3367 | #define MCF_GPIO_PAR_TIMER_PAR_TIN1(x) (((x)&0x03)<<2) |
---|
3368 | #define MCF_GPIO_PAR_TIMER_PAR_TIN2(x) (((x)&0x03)<<4) |
---|
3369 | #define MCF_GPIO_PAR_TIMER_PAR_TIN3(x) (((x)&0x03)<<6) |
---|
3370 | #define MCF_GPIO_PAR_TIMER_PAR_TIN3_GPIO (0x00) |
---|
3371 | #define MCF_GPIO_PAR_TIMER_PAR_TIN3_TOUT3 (0x80) |
---|
3372 | #define MCF_GPIO_PAR_TIMER_PAR_TIN3_URXD2 (0x40) |
---|
3373 | #define MCF_GPIO_PAR_TIMER_PAR_TIN3_TIN3 (0xC0) |
---|
3374 | #define MCF_GPIO_PAR_TIMER_PAR_TIN2_GPIO (0x00) |
---|
3375 | #define MCF_GPIO_PAR_TIMER_PAR_TIN2_TOUT2 (0x20) |
---|
3376 | #define MCF_GPIO_PAR_TIMER_PAR_TIN2_UTXD2 (0x10) |
---|
3377 | #define MCF_GPIO_PAR_TIMER_PAR_TIN2_TIN2 (0x30) |
---|
3378 | #define MCF_GPIO_PAR_TIMER_PAR_TIN1_GPIO (0x00) |
---|
3379 | #define MCF_GPIO_PAR_TIMER_PAR_TIN1_TOUT1 (0x08) |
---|
3380 | #define MCF_GPIO_PAR_TIMER_PAR_TIN1_DACK1 (0x04) |
---|
3381 | #define MCF_GPIO_PAR_TIMER_PAR_TIN1_TIN1 (0x0C) |
---|
3382 | #define MCF_GPIO_PAR_TIMER_PAR_TIN0_GPIO (0x00) |
---|
3383 | #define MCF_GPIO_PAR_TIMER_PAR_TIN0_TOUT0 (0x02) |
---|
3384 | #define MCF_GPIO_PAR_TIMER_PAR_TIN0_DREQ0 (0x01) |
---|
3385 | #define MCF_GPIO_PAR_TIMER_PAR_TIN0_TIN0 (0x03) |
---|
3386 | |
---|
3387 | /* Bit definitions and macros for MCF_GPIO_PAR_LCDDATA */ |
---|
3388 | #define MCF_GPIO_PAR_LCDDATA_PAR_LD7_0(x) (((x)&0x03)<<0) |
---|
3389 | #define MCF_GPIO_PAR_LCDDATA_PAR_LD15_8(x) (((x)&0x03)<<2) |
---|
3390 | #define MCF_GPIO_PAR_LCDDATA_PAR_LD16(x) (((x)&0x03)<<4) |
---|
3391 | #define MCF_GPIO_PAR_LCDDATA_PAR_LD17(x) (((x)&0x03)<<6) |
---|
3392 | |
---|
3393 | /* Bit definitions and macros for MCF_GPIO_PAR_LCDCTL */ |
---|
3394 | #define MCF_GPIO_PAR_LCDCTL_PAR_CLS (0x0001) |
---|
3395 | #define MCF_GPIO_PAR_LCDCTL_PAR_PS (0x0002) |
---|
3396 | #define MCF_GPIO_PAR_LCDCTL_PAR_REV (0x0004) |
---|
3397 | #define MCF_GPIO_PAR_LCDCTL_PAR_SPL_SPR (0x0008) |
---|
3398 | #define MCF_GPIO_PAR_LCDCTL_PAR_CONTRAST (0x0010) |
---|
3399 | #define MCF_GPIO_PAR_LCDCTL_PAR_LSCLK (0x0020) |
---|
3400 | #define MCF_GPIO_PAR_LCDCTL_PAR_LP_HSYNC (0x0040) |
---|
3401 | #define MCF_GPIO_PAR_LCDCTL_PAR_FLM_VSYNC (0x0080) |
---|
3402 | #define MCF_GPIO_PAR_LCDCTL_PAR_ACD_OE (0x0100) |
---|
3403 | |
---|
3404 | /* Bit definitions and macros for MCF_GPIO_PAR_IRQ */ |
---|
3405 | #define MCF_GPIO_PAR_IRQ_PAR_IRQ1(x) (((x)&0x0003)<<4) |
---|
3406 | #define MCF_GPIO_PAR_IRQ_PAR_IRQ2(x) (((x)&0x0003)<<6) |
---|
3407 | #define MCF_GPIO_PAR_IRQ_PAR_IRQ4(x) (((x)&0x0003)<<8) |
---|
3408 | #define MCF_GPIO_PAR_IRQ_PAR_IRQ5(x) (((x)&0x0003)<<10) |
---|
3409 | #define MCF_GPIO_PAR_IRQ_PAR_IRQ6(x) (((x)&0x0003)<<12) |
---|
3410 | |
---|
3411 | /* Bit definitions and macros for MCF_GPIO_MSCR_FLEXBUS */ |
---|
3412 | #define MCF_GPIO_MSCR_FLEXBUS_MSCR_ADDRCTL(x) (((x)&0x03)<<0) |
---|
3413 | #define MCF_GPIO_MSCR_FLEXBUS_MSCR_DLOWER(x) (((x)&0x03)<<2) |
---|
3414 | #define MCF_GPIO_MSCR_FLEXBUS_MSCR_DUPPER(x) (((x)&0x03)<<4) |
---|
3415 | |
---|
3416 | /* Bit definitions and macros for MCF_GPIO_MSCR_SDRAM */ |
---|
3417 | #define MCF_GPIO_MSCR_SDRAM_MSCR_SDRAM(x) (((x)&0x03)<<0) |
---|
3418 | #define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLK(x) (((x)&0x03)<<2) |
---|
3419 | #define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLKB(x) (((x)&0x03)<<4) |
---|
3420 | |
---|
3421 | /* Bit definitions and macros for MCF_GPIO_DSCR_I2C */ |
---|
3422 | #define MCF_GPIO_DSCR_I2C_I2C_DSE(x) (((x)&0x03)<<0) |
---|
3423 | |
---|
3424 | /* Bit definitions and macros for MCF_GPIO_DSCR_PWM */ |
---|
3425 | #define MCF_GPIO_DSCR_PWM_PWM_DSE(x) (((x)&0x03)<<0) |
---|
3426 | |
---|
3427 | /* Bit definitions and macros for MCF_GPIO_DSCR_FEC */ |
---|
3428 | #define MCF_GPIO_DSCR_FEC_FEC_DSE(x) (((x)&0x03)<<0) |
---|
3429 | |
---|
3430 | /* Bit definitions and macros for MCF_GPIO_DSCR_UART */ |
---|
3431 | #define MCF_GPIO_DSCR_UART_UART0_DSE(x) (((x)&0x03)<<0) |
---|
3432 | #define MCF_GPIO_DSCR_UART_UART1_DSE(x) (((x)&0x03)<<2) |
---|
3433 | |
---|
3434 | /* Bit definitions and macros for MCF_GPIO_DSCR_QSPI */ |
---|
3435 | #define MCF_GPIO_DSCR_QSPI_QSPI_DSE(x) (((x)&0x03)<<0) |
---|
3436 | |
---|
3437 | /* Bit definitions and macros for MCF_GPIO_DSCR_TIMER */ |
---|
3438 | #define MCF_GPIO_DSCR_TIMER_TIMER_DSE(x) (((x)&0x03)<<0) |
---|
3439 | |
---|
3440 | /* Bit definitions and macros for MCF_GPIO_DSCR_SSI */ |
---|
3441 | #define MCF_GPIO_DSCR_SSI_SSI_DSE(x) (((x)&0x03)<<0) |
---|
3442 | |
---|
3443 | /* Bit definitions and macros for MCF_GPIO_DSCR_LCD */ |
---|
3444 | #define MCF_GPIO_DSCR_LCD_LCD_DSE(x) (((x)&0x03)<<0) |
---|
3445 | |
---|
3446 | /* Bit definitions and macros for MCF_GPIO_DSCR_DEBUG */ |
---|
3447 | #define MCF_GPIO_DSCR_DEBUG_DEBUG_DSE(x) (((x)&0x03)<<0) |
---|
3448 | |
---|
3449 | /* Bit definitions and macros for MCF_GPIO_DSCR_CLKRST */ |
---|
3450 | #define MCF_GPIO_DSCR_CLKRST_MSCR_FBCLK(x) (((x)&0x03)<<0) |
---|
3451 | #define MCF_GPIO_DSCR_CLKRST_RSTOUT_DSE(x) (((x)&0x03)<<2) |
---|
3452 | |
---|
3453 | /* Bit definitions and macros for MCF_GPIO_DSCR_IRQ */ |
---|
3454 | #define MCF_GPIO_DSCR_IRQ_IRQ_DSE(x) (((x)&0x03)<<0) |
---|
3455 | |
---|
3456 | /********************************************************************* |
---|
3457 | * |
---|
3458 | * Real-time Clock (RTC) |
---|
3459 | * |
---|
3460 | *********************************************************************/ |
---|
3461 | |
---|
3462 | /* Register read/write macros */ |
---|
3463 | #define MCF_RTC_HOURMIN (*(vuint32*)(0xFC0A8000)) |
---|
3464 | #define MCF_RTC_SECONDS (*(vuint32*)(0xFC0A8004)) |
---|
3465 | #define MCF_RTC_ALRM_HM (*(vuint32*)(0xFC0A8008)) |
---|
3466 | #define MCF_RTC_ALRM_SEC (*(vuint32*)(0xFC0A800C)) |
---|
3467 | #define MCF_RTC_CR (*(vuint32*)(0xFC0A8010)) |
---|
3468 | #define MCF_RTC_ISR (*(vuint32*)(0xFC0A8014)) |
---|
3469 | #define MCF_RTC_IER (*(vuint32*)(0xFC0A8018)) |
---|
3470 | #define MCF_RTC_STPWCH (*(vuint32*)(0xFC0A801C)) |
---|
3471 | #define MCF_RTC_DAYS (*(vuint32*)(0xFC0A8020)) |
---|
3472 | #define MCF_RTC_ALRM_DAY (*(vuint32*)(0xFC0A8024)) |
---|
3473 | |
---|
3474 | /* Bit definitions and macros for MCF_RTC_HOURMIN */ |
---|
3475 | #define MCF_RTC_HOURMIN_MINUTES(x) (((x)&0x0000003F)<<0) |
---|
3476 | #define MCF_RTC_HOURMIN_HOURS(x) (((x)&0x0000001F)<<8) |
---|
3477 | |
---|
3478 | /* Bit definitions and macros for MCF_RTC_SECONDS */ |
---|
3479 | #define MCF_RTC_SECONDS_SECONDS(x) (((x)&0x0000003F)<<0) |
---|
3480 | |
---|
3481 | /* Bit definitions and macros for MCF_RTC_ALRM_HM */ |
---|
3482 | #define MCF_RTC_ALRM_HM_MINUTES(x) (((x)&0x0000003F)<<0) |
---|
3483 | #define MCF_RTC_ALRM_HM_HOURS(x) (((x)&0x0000001F)<<8) |
---|
3484 | |
---|
3485 | /* Bit definitions and macros for MCF_RTC_ALRM_SEC */ |
---|
3486 | #define MCF_RTC_ALRM_SEC_SECONDS(x) (((x)&0x0000003F)<<0) |
---|
3487 | |
---|
3488 | /* Bit definitions and macros for MCF_RTC_CR */ |
---|
3489 | #define MCF_RTC_CR_SWR (0x00000001) |
---|
3490 | #define MCF_RTC_CR_XTL(x) (((x)&0x00000003)<<5) |
---|
3491 | #define MCF_RTC_CR_EN (0x00000080) |
---|
3492 | #define MCF_RTC_CR_32768 (0x0) |
---|
3493 | #define MCF_RTC_CR_32000 (0x1) |
---|
3494 | #define MCF_RTC_CR_38400 (0x2) |
---|
3495 | |
---|
3496 | /* Bit definitions and macros for MCF_RTC_ISR */ |
---|
3497 | #define MCF_RTC_ISR_SW (0x00000001) |
---|
3498 | #define MCF_RTC_ISR_MIN (0x00000002) |
---|
3499 | #define MCF_RTC_ISR_ALM (0x00000004) |
---|
3500 | #define MCF_RTC_ISR_DAY (0x00000008) |
---|
3501 | #define MCF_RTC_ISR_1HZ (0x00000010) |
---|
3502 | #define MCF_RTC_ISR_HR (0x00000020) |
---|
3503 | #define MCF_RTC_ISR_2HZ (0x00000080) |
---|
3504 | #define MCF_RTC_ISR_SAM0 (0x00000100) |
---|
3505 | #define MCF_RTC_ISR_SAM1 (0x00000200) |
---|
3506 | #define MCF_RTC_ISR_SAM2 (0x00000400) |
---|
3507 | #define MCF_RTC_ISR_SAM3 (0x00000800) |
---|
3508 | #define MCF_RTC_ISR_SAM4 (0x00001000) |
---|
3509 | #define MCF_RTC_ISR_SAM5 (0x00002000) |
---|
3510 | #define MCF_RTC_ISR_SAM6 (0x00004000) |
---|
3511 | #define MCF_RTC_ISR_SAM7 (0x00008000) |
---|
3512 | |
---|
3513 | /* Bit definitions and macros for MCF_RTC_IER */ |
---|
3514 | #define MCF_RTC_IER_SW (0x00000001) |
---|
3515 | #define MCF_RTC_IER_MIN (0x00000002) |
---|
3516 | #define MCF_RTC_IER_ALM (0x00000004) |
---|
3517 | #define MCF_RTC_IER_DAY (0x00000008) |
---|
3518 | #define MCF_RTC_IER_1HZ (0x00000010) |
---|
3519 | #define MCF_RTC_IER_HR (0x00000020) |
---|
3520 | #define MCF_RTC_IER_2HZ (0x00000080) |
---|
3521 | #define MCF_RTC_IER_SAM0 (0x00000100) |
---|
3522 | #define MCF_RTC_IER_SAM1 (0x00000200) |
---|
3523 | #define MCF_RTC_IER_SAM2 (0x00000400) |
---|
3524 | #define MCF_RTC_IER_SAM3 (0x00000800) |
---|
3525 | #define MCF_RTC_IER_SAM4 (0x00001000) |
---|
3526 | #define MCF_RTC_IER_SAM5 (0x00002000) |
---|
3527 | #define MCF_RTC_IER_SAM6 (0x00004000) |
---|
3528 | #define MCF_RTC_IER_SAM7 (0x00008000) |
---|
3529 | |
---|
3530 | /* Bit definitions and macros for MCF_RTC_STPWCH */ |
---|
3531 | #define MCF_RTC_STPWCH_CNT(x) (((x)&0x0000003F)<<0) |
---|
3532 | |
---|
3533 | /* Bit definitions and macros for MCF_RTC_DAYS */ |
---|
3534 | #define MCF_RTC_DAYS_DAYS(x) (((x)&0x0000FFFF)<<0) |
---|
3535 | |
---|
3536 | /* Bit definitions and macros for MCF_RTC_ALRM_DAY */ |
---|
3537 | #define MCF_RTC_ALRM_DAY_DAYS(x) (((x)&0x0000FFFF)<<0) |
---|
3538 | |
---|
3539 | /********************************************************************* |
---|
3540 | * |
---|
3541 | * LCD Controller (LCDC) |
---|
3542 | * |
---|
3543 | *********************************************************************/ |
---|
3544 | |
---|
3545 | /* Register read/write macros */ |
---|
3546 | #define MCF_LCDC_LSSAR (*(vuint32*)(0xFC0AC000)) |
---|
3547 | #define MCF_LCDC_LSR (*(vuint32*)(0xFC0AC004)) |
---|
3548 | #define MCF_LCDC_LVPWR (*(vuint32*)(0xFC0AC008)) |
---|
3549 | #define MCF_LCDC_LCPR (*(vuint32*)(0xFC0AC00C)) |
---|
3550 | #define MCF_LCDC_LCWHBR (*(vuint32*)(0xFC0AC010)) |
---|
3551 | #define MCF_LCDC_LCCMR (*(vuint32*)(0xFC0AC014)) |
---|
3552 | #define MCF_LCDC_LPCR (*(vuint32*)(0xFC0AC018)) |
---|
3553 | #define MCF_LCDC_LHCR (*(vuint32*)(0xFC0AC01C)) |
---|
3554 | #define MCF_LCDC_LVCR (*(vuint32*)(0xFC0AC020)) |
---|
3555 | #define MCF_LCDC_LPOR (*(vuint32*)(0xFC0AC024)) |
---|
3556 | #define MCF_LCDC_LSCR (*(vuint32*)(0xFC0AC028)) |
---|
3557 | #define MCF_LCDC_LPCCR (*(vuint32*)(0xFC0AC02C)) |
---|
3558 | #define MCF_LCDC_LDCR (*(vuint32*)(0xFC0AC030)) |
---|
3559 | #define MCF_LCDC_LRMCR (*(vuint32*)(0xFC0AC034)) |
---|
3560 | #define MCF_LCDC_LICR (*(vuint32*)(0xFC0AC038)) |
---|
3561 | #define MCF_LCDC_LIER (*(vuint32*)(0xFC0AC03C)) |
---|
3562 | #define MCF_LCDC_LISR (*(vuint32*)(0xFC0AC040)) |
---|
3563 | #define MCF_LCDC_LGWSAR (*(vuint32*)(0xFC0AC050)) |
---|
3564 | #define MCF_LCDC_LGWSR (*(vuint32*)(0xFC0AC054)) |
---|
3565 | #define MCF_LCDC_LGWVPWR (*(vuint32*)(0xFC0AC058)) |
---|
3566 | #define MCF_LCDC_LGWPOR (*(vuint32*)(0xFC0AC05C)) |
---|
3567 | #define MCF_LCDC_LGWPR (*(vuint32*)(0xFC0AC060)) |
---|
3568 | #define MCF_LCDC_LGWCR (*(vuint32*)(0xFC0AC064)) |
---|
3569 | #define MCF_LCDC_LGWDCR (*(vuint32*)(0xFC0AC068)) |
---|
3570 | #define MCF_LCDC_BPLUT_BASE (*(vuint32*)(0xFC0AC800)) |
---|
3571 | #define MCF_LCDC_GWLUT_BASE (*(vuint32*)(0xFC0ACC00)) |
---|
3572 | |
---|
3573 | /* Bit definitions and macros for MCF_LCDC_LSSAR */ |
---|
3574 | #define MCF_LCDC_LSSAR_SSA(x) (((x)&0x3FFFFFFF)<<2) |
---|
3575 | |
---|
3576 | /* Bit definitions and macros for MCF_LCDC_LSR */ |
---|
3577 | #define MCF_LCDC_LSR_YMAX(x) (((x)&0x000003FF)<<0) |
---|
3578 | #define MCF_LCDC_LSR_XMAX(x) (((x)&0x0000003F)<<20) |
---|
3579 | |
---|
3580 | /* Bit definitions and macros for MCF_LCDC_LVPWR */ |
---|
3581 | #define MCF_LCDC_LVPWR_VPW(x) (((x)&0x000003FF)<<0) |
---|
3582 | |
---|
3583 | /* Bit definitions and macros for MCF_LCDC_LCPR */ |
---|
3584 | #define MCF_LCDC_LCPR_CYP(x) (((x)&0x000003FF)<<0) |
---|
3585 | #define MCF_LCDC_LCPR_CXP(x) (((x)&0x000003FF)<<16) |
---|
3586 | #define MCF_LCDC_LCPR_OP (0x10000000) |
---|
3587 | #define MCF_LCDC_LCPR_CC(x) (((x)&0x00000003)<<30) |
---|
3588 | #define MCF_LCDC_LCPR_CC_TRANSPARENT (0x00000000) |
---|
3589 | #define MCF_LCDC_LCPR_CC_OR (0x40000000) |
---|
3590 | #define MCF_LCDC_LCPR_CC_XOR (0x80000000) |
---|
3591 | #define MCF_LCDC_LCPR_CC_AND (0xC0000000) |
---|
3592 | #define MCF_LCDC_LCPR_OP_ON (0x10000000) |
---|
3593 | #define MCF_LCDC_LCPR_OP_OFF (0x00000000) |
---|
3594 | |
---|
3595 | /* Bit definitions and macros for MCF_LCDC_LCWHBR */ |
---|
3596 | #define MCF_LCDC_LCWHBR_BD(x) (((x)&0x000000FF)<<0) |
---|
3597 | #define MCF_LCDC_LCWHBR_CH(x) (((x)&0x0000001F)<<16) |
---|
3598 | #define MCF_LCDC_LCWHBR_CW(x) (((x)&0x0000001F)<<24) |
---|
3599 | #define MCF_LCDC_LCWHBR_BK_EN (0x80000000) |
---|
3600 | #define MCF_LCDC_LCWHBR_BK_EN_ON (0x80000000) |
---|
3601 | #define MCF_LCDC_LCWHBR_BK_EN_OFF (0x00000000) |
---|
3602 | |
---|
3603 | /* Bit definitions and macros for MCF_LCDC_LCCMR */ |
---|
3604 | #define MCF_LCDC_LCCMR_CUR_COL_B(x) (((x)&0x0000003F)<<0) |
---|
3605 | #define MCF_LCDC_LCCMR_CUR_COL_G(x) (((x)&0x0000003F)<<6) |
---|
3606 | #define MCF_LCDC_LCCMR_CUR_COL_R(x) (((x)&0x0000003F)<<12) |
---|
3607 | |
---|
3608 | /* Bit definitions and macros for MCF_LCDC_LPCR */ |
---|
3609 | #define MCF_LCDC_LPCR_PCD(x) (((x)&0x0000003F)<<0) |
---|
3610 | #define MCF_LCDC_LPCR_SHARP (0x00000040) |
---|
3611 | #define MCF_LCDC_LPCR_SCLKSEL (0x00000080) |
---|
3612 | #define MCF_LCDC_LPCR_ACD(x) (((x)&0x0000007F)<<8) |
---|
3613 | #define MCF_LCDC_LPCR_ACDSEL (0x00008000) |
---|
3614 | #define MCF_LCDC_LPCR_REV_VS (0x00010000) |
---|
3615 | #define MCF_LCDC_LPCR_SWAP_SEL (0x00020000) |
---|
3616 | #define MCF_LCDC_LPCR_ENDSEL (0x00040000) |
---|
3617 | #define MCF_LCDC_LPCR_SCLKIDLE (0x00080000) |
---|
3618 | #define MCF_LCDC_LPCR_OEPOL (0x00100000) |
---|
3619 | #define MCF_LCDC_LPCR_CLKPOL (0x00200000) |
---|
3620 | #define MCF_LCDC_LPCR_LPPOL (0x00400000) |
---|
3621 | #define MCF_LCDC_LPCR_FLM (0x00800000) |
---|
3622 | #define MCF_LCDC_LPCR_PIXPOL (0x01000000) |
---|
3623 | #define MCF_LCDC_LPCR_BPIX(x) (((x)&0x00000007)<<25) |
---|
3624 | #define MCF_LCDC_LPCR_PBSIZ(x) (((x)&0x00000003)<<28) |
---|
3625 | #define MCF_LCDC_LPCR_COLOR (0x40000000) |
---|
3626 | #define MCF_LCDC_LPCR_TFT (0x80000000) |
---|
3627 | #define MCF_LCDC_LPCR_MODE_MONOCHROME (0x00000000) |
---|
3628 | #define MCF_LCDC_LPCR_MODE_CSTN (0x40000000) |
---|
3629 | #define MCF_LCDC_LPCR_MODE_TFT (0xC0000000) |
---|
3630 | #define MCF_LCDC_LPCR_PBSIZ_1 (0x00000000) |
---|
3631 | #define MCF_LCDC_LPCR_PBSIZ_2 (0x10000000) |
---|
3632 | #define MCF_LCDC_LPCR_PBSIZ_4 (0x20000000) |
---|
3633 | #define MCF_LCDC_LPCR_PBSIZ_8 (0x30000000) |
---|
3634 | #define MCF_LCDC_LPCR_BPIX_1bpp (0x00000000) |
---|
3635 | #define MCF_LCDC_LPCR_BPIX_2bpp (0x02000000) |
---|
3636 | #define MCF_LCDC_LPCR_BPIX_4bpp (0x04000000) |
---|
3637 | #define MCF_LCDC_LPCR_BPIX_8bpp (0x06000000) |
---|
3638 | #define MCF_LCDC_LPCR_BPIX_12bpp (0x08000000) |
---|
3639 | #define MCF_LCDC_LPCR_BPIX_16bpp (0x0A000000) |
---|
3640 | #define MCF_LCDC_LPCR_BPIX_18bpp (0x0C000000) |
---|
3641 | |
---|
3642 | /* Bit definitions and macros for MCF_LCDC_LHCR */ |
---|
3643 | #define MCF_LCDC_LHCR_H_WAIT_2(x) (((x)&0x000000FF)<<0) |
---|
3644 | #define MCF_LCDC_LHCR_H_WAIT_1(x) (((x)&0x000000FF)<<8) |
---|
3645 | #define MCF_LCDC_LHCR_H_WIDTH(x) (((x)&0x0000003F)<<26) |
---|
3646 | |
---|
3647 | /* Bit definitions and macros for MCF_LCDC_LVCR */ |
---|
3648 | #define MCF_LCDC_LVCR_V_WAIT_2(x) (((x)&0x000000FF)<<0) |
---|
3649 | #define MCF_LCDC_LVCR_V_WAIT_1(x) (((x)&0x000000FF)<<8) |
---|
3650 | #define MCF_LCDC_LVCR_V_WIDTH(x) (((x)&0x0000003F)<<26) |
---|
3651 | |
---|
3652 | /* Bit definitions and macros for MCF_LCDC_LPOR */ |
---|
3653 | #define MCF_LCDC_LPOR_POS(x) (((x)&0x0000001F)<<0) |
---|
3654 | |
---|
3655 | /* Bit definitions and macros for MCF_LCDC_LPCCR */ |
---|
3656 | #define MCF_LCDC_LPCCR_PW(x) (((x)&0x000000FF)<<0) |
---|
3657 | #define MCF_LCDC_LPCCR_CC_EN (0x00000100) |
---|
3658 | #define MCF_LCDC_LPCCR_SCR(x) (((x)&0x00000003)<<9) |
---|
3659 | #define MCF_LCDC_LPCCR_LDMSK (0x00008000) |
---|
3660 | #define MCF_LCDC_LPCCR_CLS_HI_WIDTH(x) (((x)&0x000001FF)<<16) |
---|
3661 | #define MCF_LCDC_LPCCR_SCR_LINEPULSE (0x00000000) |
---|
3662 | #define MCF_LCDC_LPCCR_SCR_PIXELCLK (0x00002000) |
---|
3663 | #define MCF_LCDC_LPCCR_SCR_LCDCLOCK (0x00004000) |
---|
3664 | |
---|
3665 | /* Bit definitions and macros for MCF_LCDC_LDCR */ |
---|
3666 | #define MCF_LCDC_LDCR_TM(x) (((x)&0x0000001F)<<0) |
---|
3667 | #define MCF_LCDC_LDCR_HM(x) (((x)&0x0000001F)<<16) |
---|
3668 | #define MCF_LCDC_LDCR_BURST (0x80000000) |
---|
3669 | |
---|
3670 | /* Bit definitions and macros for MCF_LCDC_LRMCR */ |
---|
3671 | #define MCF_LCDC_LRMCR_SEL_REF (0x00000001) |
---|
3672 | |
---|
3673 | /* Bit definitions and macros for MCF_LCDC_LICR */ |
---|
3674 | #define MCF_LCDC_LICR_INTCON (0x00000001) |
---|
3675 | #define MCF_LCDC_LICR_INTSYN (0x00000004) |
---|
3676 | #define MCF_LCDC_LICR_GW_INT_CON (0x00000010) |
---|
3677 | |
---|
3678 | /* Bit definitions and macros for MCF_LCDC_LIER */ |
---|
3679 | #define MCF_LCDC_LIER_BOF_EN (0x00000001) |
---|
3680 | #define MCF_LCDC_LIER_EOF_EN (0x00000002) |
---|
3681 | #define MCF_LCDC_LIER_ERR_RES_EN (0x00000004) |
---|
3682 | #define MCF_LCDC_LIER_UDR_ERR_EN (0x00000008) |
---|
3683 | #define MCF_LCDC_LIER_GW_BOF_EN (0x00000010) |
---|
3684 | #define MCF_LCDC_LIER_GW_EOF_EN (0x00000020) |
---|
3685 | #define MCF_LCDC_LIER_GW_ERR_RES_EN (0x00000040) |
---|
3686 | #define MCF_LCDC_LIER_GW_UDR_ERR_EN (0x00000080) |
---|
3687 | |
---|
3688 | /* Bit definitions and macros for MCF_LCDC_LISR */ |
---|
3689 | #define MCF_LCDC_LISR_BOF (0x00000001) |
---|
3690 | #define MCF_LCDC_LISR_EOF (0x00000002) |
---|
3691 | #define MCF_LCDC_LISR_ERR_RES (0x00000004) |
---|
3692 | #define MCF_LCDC_LISR_UDR_ERR (0x00000008) |
---|
3693 | #define MCF_LCDC_LISR_GW_BOF (0x00000010) |
---|
3694 | #define MCF_LCDC_LISR_GW_EOF (0x00000020) |
---|
3695 | #define MCF_LCDC_LISR_GW_ERR_RES (0x00000040) |
---|
3696 | #define MCF_LCDC_LISR_GW_UDR_ERR (0x00000080) |
---|
3697 | |
---|
3698 | /* Bit definitions and macros for MCF_LCDC_LGWSAR */ |
---|
3699 | #define MCF_LCDC_LGWSAR_GWSA(x) (((x)&0x3FFFFFFF)<<2) |
---|
3700 | |
---|
3701 | /* Bit definitions and macros for MCF_LCDC_LGWSR */ |
---|
3702 | #define MCF_LCDC_LGWSR_GWH(x) (((x)&0x000003FF)<<0) |
---|
3703 | #define MCF_LCDC_LGWSR_GWW(x) (((x)&0x0000003F)<<20) |
---|
3704 | |
---|
3705 | /* Bit definitions and macros for MCF_LCDC_LGWVPWR */ |
---|
3706 | #define MCF_LCDC_LGWVPWR_GWVPW(x) (((x)&0x000003FF)<<0) |
---|
3707 | |
---|
3708 | /* Bit definitions and macros for MCF_LCDC_LGWPOR */ |
---|
3709 | #define MCF_LCDC_LGWPOR_GWPO(x) (((x)&0x0000001F)<<0) |
---|
3710 | |
---|
3711 | /* Bit definitions and macros for MCF_LCDC_LGWPR */ |
---|
3712 | #define MCF_LCDC_LGWPR_GWYP(x) (((x)&0x000003FF)<<0) |
---|
3713 | #define MCF_LCDC_LGWPR_GWXP(x) (((x)&0x000003FF)<<16) |
---|
3714 | |
---|
3715 | /* Bit definitions and macros for MCF_LCDC_LGWCR */ |
---|
3716 | #define MCF_LCDC_LGWCR_GWCKB(x) (((x)&0x0000003F)<<0) |
---|
3717 | #define MCF_LCDC_LGWCR_GWCKG(x) (((x)&0x0000003F)<<6) |
---|
3718 | #define MCF_LCDC_LGWCR_GWCKR(x) (((x)&0x0000003F)<<12) |
---|
3719 | #define MCF_LCDC_LGWCR_GW_RVS (0x00200000) |
---|
3720 | #define MCF_LCDC_LGWCR_GWE (0x00400000) |
---|
3721 | #define MCF_LCDC_LGWCR_GWCKE (0x00800000) |
---|
3722 | #define MCF_LCDC_LGWCR_GWAV(x) (((x)&0x000000FF)<<24) |
---|
3723 | |
---|
3724 | /* Bit definitions and macros for MCF_LCDC_LGWDCR */ |
---|
3725 | #define MCF_LCDC_LGWDCR_GWTM(x) (((x)&0x0000001F)<<0) |
---|
3726 | #define MCF_LCDC_LGWDCR_GWHM(x) (((x)&0x0000001F)<<16) |
---|
3727 | #define MCF_LCDC_LGWDCR_GWBT (0x80000000) |
---|
3728 | |
---|
3729 | /* Bit definitions and macros for MCF_LCDC_LSCR */ |
---|
3730 | #define MCF_LCDC_LSCR_PS_RISE_DELAY(x) (((x)&0x0000003F)<<26) |
---|
3731 | #define MCF_LCDC_LSCR_CLS_RISE_DELAY(x) (((x)&0x000000FF)<<16) |
---|
3732 | #define MCF_LCDC_LSCR_REV_TOGGLE_DELAY(x) (((x)&0x0000000F)<<8) |
---|
3733 | #define MCF_LCDC_LSCR_GRAY_2(x) (((x)&0x0000000F)<<4) |
---|
3734 | #define MCF_LCDC_LSCR_GRAY_1(x) (((x)&0x0000000F)<<0) |
---|
3735 | |
---|
3736 | /* Bit definitions and macros for MCF_LCDC_BPLUT_BASE */ |
---|
3737 | #define MCF_LCDC_BPLUT_BASE_BASE(x) (((x)&0xFFFFFFFF)<<0) |
---|
3738 | |
---|
3739 | /* Bit definitions and macros for MCF_LCDC_GWLUT_BASE */ |
---|
3740 | #define MCF_LCDC_GWLUT_BASE_BASE(x) (((x)&0xFFFFFFFF)<<0) |
---|
3741 | |
---|
3742 | /********************************************************************* |
---|
3743 | * |
---|
3744 | * USB Controller (USB) |
---|
3745 | * |
---|
3746 | *********************************************************************/ |
---|
3747 | |
---|
3748 | /* Register read/write macros */ |
---|
3749 | #define MCF_USB0_ID (*(vuint32*)(0xFC0B0000)) |
---|
3750 | #define MCF_USB0_HWGENERAL (*(vuint32*)(0xFC0B0004)) |
---|
3751 | #define MCF_USB0_HWHOST (*(vuint32*)(0xFC0B0008)) |
---|
3752 | #define MCF_USB0_HWDEVICE (*(vuint32*)(0xFC0B000C)) |
---|
3753 | #define MCF_USB0_HWTXBUF (*(vuint32*)(0xFC0B0010)) |
---|
3754 | #define MCF_USB0_HWRXBUF (*(vuint32*)(0xFC0B0014)) |
---|
3755 | #define MCF_USB0_CAPLENGTH (*(vuint8 *)(0xFC0B0100)) |
---|
3756 | #define MCF_USB0_HCIVERSION (*(vuint16*)(0xFC0B0102)) |
---|
3757 | #define MCF_USB0_HCSPARAMS (*(vuint32*)(0xFC0B0104)) |
---|
3758 | #define MCF_USB0_HCCPARAMS (*(vuint32*)(0xFC0B0108)) |
---|
3759 | #define MCF_USB0_DCIVERSION (*(vuint16*)(0xFC0B0120)) |
---|
3760 | #define MCF_USB0_DCCPARAMS (*(vuint32*)(0xFC0B0124)) |
---|
3761 | #define MCF_USB0_USBCMD (*(vuint32*)(0xFC0B0140)) |
---|
3762 | #define MCF_USB0_USBSTS (*(vuint32*)(0xFC0B0144)) |
---|
3763 | #define MCF_USB0_USBINTR (*(vuint32*)(0xFC0B0148)) |
---|
3764 | #define MCF_USB0_FRINDEX (*(vuint32*)(0xFC0B014C)) |
---|
3765 | #define MCF_USB0_PERIODICLISTBASE (*(vuint32*)(0xFC0B0154)) |
---|
3766 | #define MCF_USB0_DEVICEADDR (*(vuint32*)(0xFC0B0154)) |
---|
3767 | #define MCF_USB0_ASYNCLISTADDR (*(vuint32*)(0xFC0B0158)) |
---|
3768 | #define MCF_USB0_EPLISTADDR (*(vuint32*)(0xFC0B0158)) |
---|
3769 | #define MCF_USB0_ASYNCTTSTS (*(vuint32*)(0xFC0B015C)) |
---|
3770 | #define MCF_USB0_BURSTSIZE (*(vuint32*)(0xFC0B0160)) |
---|
3771 | #define MCF_USB0_TXFILLTUNING (*(vuint32*)(0xFC0B0164)) |
---|
3772 | #define MCF_USB0_TXTTFILLTUNING (*(vuint32*)(0xFC0B0168)) |
---|
3773 | #define MCF_USB_ULPI0_VIEWPORT (*(vuint32*)(0xFC0B0170)) |
---|
3774 | #define MCF_USB0_CONFIGFLAG (*(vuint32*)(0xFC0B0180)) |
---|
3775 | #define MCF_USB0_PORTSC (*(vuint32*)(0xFC0B0184)) |
---|
3776 | #define MCF_USB0_OTGSC (*(vuint32*)(0xFC0B01A4)) |
---|
3777 | #define MCF_USB0_USBMODE (*(vuint32*)(0xFC0B01A8)) |
---|
3778 | #define MCF_USB0_EPSETUPSR (*(vuint32*)(0xFC0B01AC)) |
---|
3779 | #define MCF_USB0_EPPRIME (*(vuint32*)(0xFC0B01B0)) |
---|
3780 | #define MCF_USB0_EPFLUSH (*(vuint32*)(0xFC0B01B4)) |
---|
3781 | #define MCF_USB0_EPSR (*(vuint32*)(0xFC0B01B8)) |
---|
3782 | #define MCF_USB0_EPCOMPLETE (*(vuint32*)(0xFC0B01BC)) |
---|
3783 | #define MCF_USB0_EPCR0 (*(vuint32*)(0xFC0B01C0)) |
---|
3784 | #define MCF_USB0_EPCR1 (*(vuint32*)(0xFC0B01C4)) |
---|
3785 | #define MCF_USB0_EPCR2 (*(vuint32*)(0xFC0B01C8)) |
---|
3786 | #define MCF_USB0_EPCR3 (*(vuint32*)(0xFC0B01CC)) |
---|
3787 | #define MCF_USB0_EPCR(x) (*(vuint32*)(0xFC0B01C4+((x-1)*0x004))) |
---|
3788 | #define MCF_USB1_ID (*(vuint32*)(0xFC0B4000)) |
---|
3789 | #define MCF_USB1_HWGENERAL (*(vuint32*)(0xFC0B4004)) |
---|
3790 | #define MCF_USB1_HWHOST (*(vuint32*)(0xFC0B4008)) |
---|
3791 | #define MCF_USB1_HWDEVICE (*(vuint32*)(0xFC0B400C)) |
---|
3792 | #define MCF_USB1_HWTXBUF (*(vuint32*)(0xFC0B4010)) |
---|
3793 | #define MCF_USB1_HWRXBUF (*(vuint32*)(0xFC0B4014)) |
---|
3794 | #define MCF_USB1_CAPLENGTH (*(vuint8 *)(0xFC0B4100)) |
---|
3795 | #define MCF_USB1_HCIVERSION (*(vuint16*)(0xFC0B4102)) |
---|
3796 | #define MCF_USB1_HCSPARAMS (*(vuint32*)(0xFC0B4104)) |
---|
3797 | #define MCF_USB1_HCCPARAMS (*(vuint32*)(0xFC0B4108)) |
---|
3798 | #define MCF_USB1_DCIVERSION (*(vuint16*)(0xFC0B4120)) |
---|
3799 | #define MCF_USB1_DCCPARAMS (*(vuint32*)(0xFC0B4124)) |
---|
3800 | #define MCF_USB1_USBCMD (*(vuint32*)(0xFC0B4140)) |
---|
3801 | #define MCF_USB1_USBSTS (*(vuint32*)(0xFC0B4144)) |
---|
3802 | #define MCF_USB1_USBINTR (*(vuint32*)(0xFC0B4148)) |
---|
3803 | #define MCF_USB1_FRINDEX (*(vuint32*)(0xFC0B414C)) |
---|
3804 | #define MCF_USB1_PERIODICLISTBASE (*(vuint32*)(0xFC0B4154)) |
---|
3805 | #define MCF_USB1_DEVICEADDR (*(vuint32*)(0xFC0B4154)) |
---|
3806 | #define MCF_USB1_ASYNCLISTADDR (*(vuint32*)(0xFC0B4158)) |
---|
3807 | #define MCF_USB1_EPLISTADDR (*(vuint32*)(0xFC0B4158)) |
---|
3808 | #define MCF_USB1_ASYNCTTSTS (*(vuint32*)(0xFC0B415C)) |
---|
3809 | #define MCF_USB1_BURSTSIZE (*(vuint32*)(0xFC0B4160)) |
---|
3810 | #define MCF_USB1_TXFILLTUNING (*(vuint32*)(0xFC0B4164)) |
---|
3811 | #define MCF_USB1_TXTTFILLTUNING (*(vuint32*)(0xFC0B4168)) |
---|
3812 | #define MCF_USB_ULPI1_VIEWPORT (*(vuint32*)(0xFC0B4170)) |
---|
3813 | #define MCF_USB1_CONFIGFLAG (*(vuint32*)(0xFC0B4180)) |
---|
3814 | #define MCF_USB1_PORTSC (*(vuint32*)(0xFC0B4184)) |
---|
3815 | #define MCF_USB1_OTGSC (*(vuint32*)(0xFC0B41A4)) |
---|
3816 | #define MCF_USB1_USBMODE (*(vuint32*)(0xFC0B41A8)) |
---|
3817 | #define MCF_USB1_EPSETUPSR (*(vuint32*)(0xFC0B41AC)) |
---|
3818 | #define MCF_USB1_EPPRIME (*(vuint32*)(0xFC0B41B0)) |
---|
3819 | #define MCF_USB1_EPFLUSH (*(vuint32*)(0xFC0B41B4)) |
---|
3820 | #define MCF_USB1_EPSR (*(vuint32*)(0xFC0B41B8)) |
---|
3821 | #define MCF_USB1_EPCOMPLETE (*(vuint32*)(0xFC0B41BC)) |
---|
3822 | #define MCF_USB1_EPCR0 (*(vuint32*)(0xFC0B41C0)) |
---|
3823 | #define MCF_USB1_EPCR1 (*(vuint32*)(0xFC0B41C4)) |
---|
3824 | #define MCF_USB1_EPCR2 (*(vuint32*)(0xFC0B41C8)) |
---|
3825 | #define MCF_USB1_EPCR3 (*(vuint32*)(0xFC0B41CC)) |
---|
3826 | #define MCF_USB1_EPCR(x) (*(vuint32*)(0xFC0B41C4+((x-1)*0x004))) |
---|
3827 | #define MCF_USB_ID(x) (*(vuint32*)(0xFC0B0000+((x)*0x4000))) |
---|
3828 | #define MCF_USB_HWGENERAL(x) (*(vuint32*)(0xFC0B0004+((x)*0x4000))) |
---|
3829 | #define MCF_USB_HWHOST(x) (*(vuint32*)(0xFC0B0008+((x)*0x4000))) |
---|
3830 | #define MCF_USB_HWDEVICE(x) (*(vuint32*)(0xFC0B000C+((x)*0x4000))) |
---|
3831 | #define MCF_USB_HWTXBUF(x) (*(vuint32*)(0xFC0B0010+((x)*0x4000))) |
---|
3832 | #define MCF_USB_HWRXBUF(x) (*(vuint32*)(0xFC0B0014+((x)*0x4000))) |
---|
3833 | #define MCF_USB_CAPLENGTH(x) (*(vuint8 *)(0xFC0B0100+((x)*0x4000))) |
---|
3834 | #define MCF_USB_HCIVERSION(x) (*(vuint16*)(0xFC0B0102+((x)*0x4000))) |
---|
3835 | #define MCF_USB_HCSPARAMS(x) (*(vuint32*)(0xFC0B0104+((x)*0x4000))) |
---|
3836 | #define MCF_USB_HCCPARAMS(x) (*(vuint32*)(0xFC0B0108+((x)*0x4000))) |
---|
3837 | #define MCF_USB_DCIVERSION(x) (*(vuint16*)(0xFC0B0120+((x)*0x4000))) |
---|
3838 | #define MCF_USB_DCCPARAMS(x) (*(vuint32*)(0xFC0B0124+((x)*0x4000))) |
---|
3839 | #define MCF_USB_USBCMD(x) (*(vuint32*)(0xFC0B0140+((x)*0x4000))) |
---|
3840 | #define MCF_USB_USBSTS(x) (*(vuint32*)(0xFC0B0144+((x)*0x4000))) |
---|
3841 | #define MCF_USB_USBINTR(x) (*(vuint32*)(0xFC0B0148+((x)*0x4000))) |
---|
3842 | #define MCF_USB_FRINDEX(x) (*(vuint32*)(0xFC0B014C+((x)*0x4000))) |
---|
3843 | #define MCF_USB_PERIODICLISTBASE(x) (*(vuint32*)(0xFC0B0154+((x)*0x4000))) |
---|
3844 | #define MCF_USB_DEVICEADDR(x) (*(vuint32*)(0xFC0B0154+((x)*0x4000))) |
---|
3845 | #define MCF_USB_ASYNCLISTADDR(x) (*(vuint32*)(0xFC0B0158+((x)*0x4000))) |
---|
3846 | #define MCF_USB_EPLISTADDR(x) (*(vuint32*)(0xFC0B0158+((x)*0x4000))) |
---|
3847 | #define MCF_USB_ASYNCTTSTS(x) (*(vuint32*)(0xFC0B015C+((x)*0x4000))) |
---|
3848 | #define MCF_USB_BURSTSIZE(x) (*(vuint32*)(0xFC0B0160+((x)*0x4000))) |
---|
3849 | #define MCF_USB_TXFILLTUNING(x) (*(vuint32*)(0xFC0B0164+((x)*0x4000))) |
---|
3850 | #define MCF_USB_TXTTFILLTUNING(x) (*(vuint32*)(0xFC0B0168+((x)*0x4000))) |
---|
3851 | #define MCF_USB_ULPI_VIEWPORT(x) (*(vuint32*)(0xFC0B0170+((x)*0x4000))) |
---|
3852 | #define MCF_USB_CONFIGFLAG(x) (*(vuint32*)(0xFC0B0180+((x)*0x4000))) |
---|
3853 | #define MCF_USB_PORTSC(x) (*(vuint32*)(0xFC0B0184+((x)*0x4000))) |
---|
3854 | #define MCF_USB_OTGSC(x) (*(vuint32*)(0xFC0B01A4+((x)*0x4000))) |
---|
3855 | #define MCF_USB_USBMODE(x) (*(vuint32*)(0xFC0B01A8+((x)*0x4000))) |
---|
3856 | #define MCF_USB_EPSETUPSR(x) (*(vuint32*)(0xFC0B01AC+((x)*0x4000))) |
---|
3857 | #define MCF_USB_EPPRIME(x) (*(vuint32*)(0xFC0B01B0+((x)*0x4000))) |
---|
3858 | #define MCF_USB_EPFLUSH(x) (*(vuint32*)(0xFC0B01B4+((x)*0x4000))) |
---|
3859 | #define MCF_USB_EPSR(x) (*(vuint32*)(0xFC0B01B8+((x)*0x4000))) |
---|
3860 | #define MCF_USB_EPCOMPLETE(x) (*(vuint32*)(0xFC0B01BC+((x)*0x4000))) |
---|
3861 | #define MCF_USB_EPCR0(x) (*(vuint32*)(0xFC0B01C0+((x)*0x4000))) |
---|
3862 | #define MCF_USB_EPCR1(x) (*(vuint32*)(0xFC0B01C4+((x)*0x4000))) |
---|
3863 | #define MCF_USB_EPCR2(x) (*(vuint32*)(0xFC0B01C8+((x)*0x4000))) |
---|
3864 | #define MCF_USB_EPCR3(x) (*(vuint32*)(0xFC0B01CC+((x)*0x4000))) |
---|
3865 | |
---|
3866 | /* Bit definitions and macros for MCF_USB_ID */ |
---|
3867 | #define MCF_USB_ID_RESERVED (0x0000C000) |
---|
3868 | #define MCF_USB_ID_ID(x) (((x)&0x0000003F)<<0|0x0000C000) |
---|
3869 | #define MCF_USB_ID_NID(x) (((x)&0x0000003F)<<8|0x0000C000) |
---|
3870 | #define MCF_USB_ID_REVISION(x) (((x)&0x000000FF)<<16|0x0000C000) |
---|
3871 | |
---|
3872 | /* Bit definitions and macros for MCF_USB_HWGENERAL */ |
---|
3873 | #define MCF_USB_HWGENERAL_RT (0x00000001) |
---|
3874 | #define MCF_USB_HWGENERAL_CLKC(x) (((x)&0x00000003)<<1) |
---|
3875 | #define MCF_USB_HWGENERAL_BWT (0x00000008) |
---|
3876 | #define MCF_USB_HWGENERAL_PHYW(x) (((x)&0x00000003)<<4) |
---|
3877 | #define MCF_USB_HWGENERAL_PHYM(x) (((x)&0x00000007)<<6) |
---|
3878 | #define MCF_USB_HWGENERAL_SM(x) (((x)&0x00000003)<<9) |
---|
3879 | |
---|
3880 | /* Bit definitions and macros for MCF_USB_HWHOST */ |
---|
3881 | #define MCF_USB_HWHOST_HC (0x00000001) |
---|
3882 | #define MCF_USB_HWHOST_NPORT(x) (((x)&0x00000007)<<1) |
---|
3883 | #define MCF_USB_HWHOST_TTASY(x) (((x)&0x000000FF)<<16) |
---|
3884 | #define MCF_USB_HWHOST_TTPER(x) (((x)&0x000000FF)<<24) |
---|
3885 | |
---|
3886 | /* Bit definitions and macros for MCF_USB_HWDEVICE */ |
---|
3887 | #define MCF_USB_HWDEVICE_DC (0x00000001) |
---|
3888 | #define MCF_USB_HWDEVICE_DEVEP(x) (((x)&0x0000001F)<<1) |
---|
3889 | |
---|
3890 | /* Bit definitions and macros for MCF_USB_HWTXBUF */ |
---|
3891 | #define MCF_USB_HWTXBUF_TXBURST(x) (((x)&0x000000FF)<<0) |
---|
3892 | #define MCF_USB_HWTXBUF_TXADD(x) (((x)&0x000000FF)<<8) |
---|
3893 | #define MCF_USB_HWTXBUF_TXCHANADD(x) (((x)&0x000000FF)<<16) |
---|
3894 | #define MCF_USB_HWTXBUF_TXLC (0x80000000) |
---|
3895 | |
---|
3896 | /* Bit definitions and macros for MCF_USB_HWRXBUF */ |
---|
3897 | #define MCF_USB_HWRXBUF_RXBURST(x) (((x)&0x000000FF)<<0) |
---|
3898 | #define MCF_USB_HWRXBUF_RXADD(x) (((x)&0x000000FF)<<8) |
---|
3899 | |
---|
3900 | /* Bit definitions and macros for MCF_USB_CAPLENGTH */ |
---|
3901 | #define MCF_USB_CAPLENGTH_CAPLENGTH(x) (((x)&0xFF)<<0) |
---|
3902 | |
---|
3903 | /* Bit definitions and macros for MCF_USB_HCIVERSION */ |
---|
3904 | #define MCF_USB_HCIVERSION_HCIVERSION(x) (((x)&0xFFFF)<<0) |
---|
3905 | |
---|
3906 | /* Bit definitions and macros for MCF_USB_HCSPARAMS */ |
---|
3907 | #define MCF_USB_HCSPARAMS_N_PORTS(x) (((x)&0x0000000F)<<0) |
---|
3908 | #define MCF_USB_HCSPARAMS_PPC (0x00000010) |
---|
3909 | #define MCF_USB_HCSPARAMS_N_PCC(x) (((x)&0x0000000F)<<8) |
---|
3910 | #define MCF_USB_HCSPARAMS_N_CC(x) (((x)&0x0000000F)<<12) |
---|
3911 | #define MCF_USB_HCSPARAMS_PI (0x00010000) |
---|
3912 | #define MCF_USB_HCSPARAMS_N_PTT(x) (((x)&0x0000000F)<<20) |
---|
3913 | #define MCF_USB_HCSPARAMS_N_TT(x) (((x)&0x0000000F)<<24) |
---|
3914 | |
---|
3915 | /* Bit definitions and macros for MCF_USB_HCCPARAMS */ |
---|
3916 | #define MCF_USB_HCCPARAMS_ADC (0x00000001) |
---|
3917 | #define MCF_USB_HCCPARAMS_PFL (0x00000002) |
---|
3918 | #define MCF_USB_HCCPARAMS_ASP (0x00000004) |
---|
3919 | #define MCF_USB_HCCPARAMS_IST(x) (((x)&0x0000000F)<<4) |
---|
3920 | #define MCF_USB_HCCPARAMS_EECP(x) (((x)&0x000000FF)<<8) |
---|
3921 | |
---|
3922 | /* Bit definitions and macros for MCF_USB_DCIVERSION */ |
---|
3923 | #define MCF_USB_DCIVERSION_DCIVERSION(x) (((x)&0xFFFF)<<0) |
---|
3924 | |
---|
3925 | /* Bit definitions and macros for MCF_USB_DCCPARAMS */ |
---|
3926 | #define MCF_USB_DCCPARAMS_DEN(x) (((x)&0x0000001F)<<0) |
---|
3927 | #define MCF_USB_DCCPARAMS_DC (0x00000080) |
---|
3928 | #define MCF_USB_DCCPARAMS_HC (0x00000100) |
---|
3929 | |
---|
3930 | /* Bit definitions and macros for MCF_USB_USBCMD */ |
---|
3931 | #define MCF_USB_USBCMD_RS (0x00000001) |
---|
3932 | #define MCF_USB_USBCMD_RST (0x00000002) |
---|
3933 | #define MCF_USB_USBCMD_FS0 (0x00000004) |
---|
3934 | #define MCF_USB_USBCMD_FS1 (0x00000008) |
---|
3935 | #define MCF_USB_USBCMD_PSE (0x00000010) |
---|
3936 | #define MCF_USB_USBCMD_ASE (0x00000020) |
---|
3937 | #define MCF_USB_USBCMD_IAA (0x00000040) |
---|
3938 | #define MCF_USB_USBCMD_LR (0x00000080) |
---|
3939 | #define MCF_USB_USBCMD_ASP(x) (((x)&0x00000003)<<8) |
---|
3940 | #define MCF_USB_USBCMD_ASPE (0x00000800) |
---|
3941 | #define MCF_USB_USBCMD_SUTW (0x00002000) |
---|
3942 | #define MCF_USB_USBCMD_ATDTW (0x00004000) |
---|
3943 | #define MCF_USB_USBCMD_FS2 (0x00008000) |
---|
3944 | #define MCF_USB_USBCMD_ITC(x) (((x)&0x000000FF)<<16) |
---|
3945 | #define MCF_USB_USBCMD_ITC_IMM (0x00000000) |
---|
3946 | #define MCF_USB_USBCMD_ITC_1 (0x00010000) |
---|
3947 | #define MCF_USB_USBCMD_ITC_2 (0x00020000) |
---|
3948 | #define MCF_USB_USBCMD_ITC_4 (0x00040000) |
---|
3949 | #define MCF_USB_USBCMD_ITC_8 (0x00080000) |
---|
3950 | #define MCF_USB_USBCMD_ITC_16 (0x00100000) |
---|
3951 | #define MCF_USB_USBCMD_ITC_32 (0x00200000) |
---|
3952 | #define MCF_USB_USBCMD_ITC_40 (0x00400000) |
---|
3953 | #define MCF_USB_USBCMD_FS_1024 (0x00000000) |
---|
3954 | #define MCF_USB_USBCMD_FS_512 (0x00000004) |
---|
3955 | #define MCF_USB_USBCMD_FS_256 (0x00000008) |
---|
3956 | #define MCF_USB_USBCMD_FS_128 (0x0000000C) |
---|
3957 | #define MCF_USB_USBCMD_FS_64 (0x00008000) |
---|
3958 | #define MCF_USB_USBCMD_FS_32 (0x00008004) |
---|
3959 | #define MCF_USB_USBCMD_FS_16 (0x00008008) |
---|
3960 | #define MCF_USB_USBCMD_FS_8 (0x0000800C) |
---|
3961 | |
---|
3962 | /* Bit definitions and macros for MCF_USB_USBSTS */ |
---|
3963 | #define MCF_USB_USBSTS_UI (0x00000001) |
---|
3964 | #define MCF_USB_USBSTS_UEI (0x00000002) |
---|
3965 | #define MCF_USB_USBSTS_PCI (0x00000004) |
---|
3966 | #define MCF_USB_USBSTS_FRI (0x00000008) |
---|
3967 | #define MCF_USB_USBSTS_SEI (0x00000010) |
---|
3968 | #define MCF_USB_USBSTS_AAI (0x00000020) |
---|
3969 | #define MCF_USB_USBSTS_URI (0x00000040) |
---|
3970 | #define MCF_USB_USBSTS_SRI (0x00000080) |
---|
3971 | #define MCF_USB_USBSTS_SLI (0x00000100) |
---|
3972 | #define MCF_USB_USBSTS_HCH (0x00001000) |
---|
3973 | #define MCF_USB_USBSTS_RCL (0x00002000) |
---|
3974 | #define MCF_USB_USBSTS_PS (0x00004000) |
---|
3975 | #define MCF_USB_USBSTS_AS (0x00008000) |
---|
3976 | |
---|
3977 | /* Bit definitions and macros for MCF_USB_USBINTR */ |
---|
3978 | #define MCF_USB_USBINTR_UE (0x00000001) |
---|
3979 | #define MCF_USB_USBINTR_UEE (0x00000002) |
---|
3980 | #define MCF_USB_USBINTR_PCE (0x00000004) |
---|
3981 | #define MCF_USB_USBINTR_FRE (0x00000008) |
---|
3982 | #define MCF_USB_USBINTR_SEE (0x00000010) |
---|
3983 | #define MCF_USB_USBINTR_AAE (0x00000020) |
---|
3984 | #define MCF_USB_USBINTR_URE (0x00000040) |
---|
3985 | #define MCF_USB_USBINTR_SRE (0x00000080) |
---|
3986 | #define MCF_USB_USBINTR_SLE (0x00000100) |
---|
3987 | |
---|
3988 | /* Bit definitions and macros for MCF_USB_FRINDEX */ |
---|
3989 | #define MCF_USB_FRINDEX_FRINDEX(x) (((x)&0x00003FFF)<<0) |
---|
3990 | |
---|
3991 | /* Bit definitions and macros for MCF_USB_PERIODICLISTBASE */ |
---|
3992 | #define MCF_USB_PERIODICLISTBASE_PERBASE(x) (((x)&0x000FFFFF)<<12) |
---|
3993 | |
---|
3994 | /* Bit definitions and macros for MCF_USB_DEVICEADDR */ |
---|
3995 | #define MCF_USB_DEVICEADDR_USBADR(x) (((x)&0x0000007F)<<25) |
---|
3996 | |
---|
3997 | /* Bit definitions and macros for MCF_USB_ASYNCLISTADDR */ |
---|
3998 | #define MCF_USB_ASYNCLISTADDR_ASYBASE(x) (((x)&0x07FFFFFF)<<5) |
---|
3999 | |
---|
4000 | /* Bit definitions and macros for MCF_USB_EPLISTADDR */ |
---|
4001 | #define MCF_USB_EPLISTADDR_EPBASE(x) (((x)&0x001FFFFF)<<11) |
---|
4002 | |
---|
4003 | /* Bit definitions and macros for MCF_USB_ASYNCTTSTS */ |
---|
4004 | #define MCF_USB_ASYNCTTSTS_TTAS (0x00000001) |
---|
4005 | #define MCF_USB_ASYNCTTSTS_TTAC (0x00000002) |
---|
4006 | |
---|
4007 | /* Bit definitions and macros for MCF_USB_BURSTSIZE */ |
---|
4008 | #define MCF_USB_BURSTSIZE_RXPBURST(x) (((x)&0x000000FF)<<0) |
---|
4009 | #define MCF_USB_BURSTSIZE_TXPBURST(x) (((x)&0x000000FF)<<8) |
---|
4010 | |
---|
4011 | /* Bit definitions and macros for MCF_USB_TXFILLTUNING */ |
---|
4012 | #define MCF_USB_TXFILLTUNING_TXSCHOH(x) (((x)&0x000000FF)<<0) |
---|
4013 | #define MCF_USB_TXFILLTUNING_TXSCHHEALTH(x) (((x)&0x0000001F)<<8) |
---|
4014 | #define MCF_USB_TXFILLTUNING_TXFIFOTHRES(x) (((x)&0x0000003F)<<16) |
---|
4015 | |
---|
4016 | /* Bit definitions and macros for MCF_USB_TXTTFILLTUNING */ |
---|
4017 | #define MCF_USB_TXTTFILLTUNING_TXTTSCHOH(x) (((x)&0x0000001F)<<0) |
---|
4018 | #define MCF_USB_TXTTFILLTUNING_TXTTSCHHEALTH(x) (((x)&0x0000001F)<<8) |
---|
4019 | |
---|
4020 | /* Bit definitions and macros for MCF_USB_CONFIGFLAG */ |
---|
4021 | #define MCF_USB_CONFIGFLAG_CONFIGFLAG(x) (((x)&0xFFFFFFFF)<<0) |
---|
4022 | |
---|
4023 | /* Bit definitions and macros for MCF_USB_PORTSC */ |
---|
4024 | #define MCF_USB_PORTSC_CCS (0x00000001) |
---|
4025 | #define MCF_USB_PORTSC_CSC (0x00000002) |
---|
4026 | #define MCF_USB_PORTSC_PE (0x00000004) |
---|
4027 | #define MCF_USB_PORTSC_PEC (0x00000008) |
---|
4028 | #define MCF_USB_PORTSC_OCA (0x00000010) |
---|
4029 | #define MCF_USB_PORTSC_OCC (0x00000020) |
---|
4030 | #define MCF_USB_PORTSC_FPR (0x00000040) |
---|
4031 | #define MCF_USB_PORTSC_SUSP (0x00000080) |
---|
4032 | #define MCF_USB_PORTSC_PR (0x00000100) |
---|
4033 | #define MCF_USB_PORTSC_LS(x) (((x)&0x00000003)<<10) |
---|
4034 | #define MCF_USB_PORTSC_PP (0x00001000) |
---|
4035 | #define MCF_USB_PORTSC_PO (0x00002000) |
---|
4036 | #define MCF_USB_PORTSC_PIC(x) (((x)&0x00000003)<<14) |
---|
4037 | #define MCF_USB_PORTSC_PTC(x) (((x)&0x0000000F)<<16) |
---|
4038 | #define MCF_USB_PORTSC_WLCN (0x00100000) |
---|
4039 | #define MCF_USB_PORTSC_WKDS (0x00200000) |
---|
4040 | #define MCF_USB_PORTSC_WKOC (0x00400000) |
---|
4041 | #define MCF_USB_PORTSC_PHCD (0x00800000) |
---|
4042 | #define MCF_USB_PORTSC_PFSC (0x01000000) |
---|
4043 | #define MCF_USB_PORTSC_PSPD(x) (((x)&0x00000003)<<26) |
---|
4044 | #define MCF_USB_PORTSC_PTS(x) (((x)&0x00000003)<<30) |
---|
4045 | #define MCF_USB_PORTSC_PTS_ULPI (0x80000000) |
---|
4046 | #define MCF_USB_PORTSC_PTS_FS_LS (0xC0000000) |
---|
4047 | #define MCF_USB_PORTSC_PSPD_FULL (0x00000000) |
---|
4048 | #define MCF_USB_PORTSC_PSPD_LOW (0x04000000) |
---|
4049 | #define MCF_USB_PORTSC_PSPD_HIGH (0x08000000) |
---|
4050 | #define MCF_USB_PORTSC_PTC_DISBALE (0x00000000) |
---|
4051 | #define MCF_USB_PORTSC_PTC_JSTATE (0x00010000) |
---|
4052 | #define MCF_USB_PORTSC_PTC_KSTATE (0x00020000) |
---|
4053 | #define MCF_USB_PORTSC_PTC_SEQ_NAK (0x00030000) |
---|
4054 | #define MCF_USB_PORTSC_PTC_PACKET (0x00040000) |
---|
4055 | #define MCF_USB_PORTSC_PTC_FORCE_ENABLE (0x00050000) |
---|
4056 | #define MCF_USB_PORTSC_PIC_OFF (0x00000000) |
---|
4057 | #define MCF_USB_PORTSC_PIC_AMBER (0x00004000) |
---|
4058 | #define MCF_USB_PORTSC_PIC_GREEN (0x00008000) |
---|
4059 | #define MCF_USB_PORTSC_LS_SE0 (0x00000000) |
---|
4060 | #define MCF_USB_PORTSC_LS_JSTATE (0x00000400) |
---|
4061 | #define MCF_USB_PORTSC_LS_KSTATE (0x00000800) |
---|
4062 | |
---|
4063 | /* Bit definitions and macros for MCF_USB_OTGSC */ |
---|
4064 | #define MCF_USB_OTGSC_VD (0x00000001) |
---|
4065 | #define MCF_USB_OTGSC_VC (0x00000002) |
---|
4066 | #define MCF_USB_OTGSC_OT (0x00000008) |
---|
4067 | #define MCF_USB_OTGSC_DP (0x00000010) |
---|
4068 | #define MCF_USB_OTGSC_ID (0x00000100) |
---|
4069 | #define MCF_USB_OTGSC_AVV (0x00000200) |
---|
4070 | #define MCF_USB_OTGSC_ASV (0x00000400) |
---|
4071 | #define MCF_USB_OTGSC_BSV (0x00000800) |
---|
4072 | #define MCF_USB_OTGSC_BSE (0x00001000) |
---|
4073 | #define MCF_USB_OTGSC_1MST (0x00002000) |
---|
4074 | #define MCF_USB_OTGSC_DPS (0x00004000) |
---|
4075 | #define MCF_USB_OTGSC_IDIS (0x00010000) |
---|
4076 | #define MCF_USB_OTGSC_AVVIS (0x00020000) |
---|
4077 | #define MCF_USB_OTGSC_ASVIS (0x00040000) |
---|
4078 | #define MCF_USB_OTGSC_BSVIS (0x00080000) |
---|
4079 | #define MCF_USB_OTGSC_BSEIS (0x00100000) |
---|
4080 | #define MCF_USB_OTGSC_1MSS (0x00200000) |
---|
4081 | #define MCF_USB_OTGSC_DPIS (0x00400000) |
---|
4082 | #define MCF_USB_OTGSC_IDIE (0x01000000) |
---|
4083 | #define MCF_USB_OTGSC_AVVIE (0x02000000) |
---|
4084 | #define MCF_USB_OTGSC_ASVIE (0x04000000) |
---|
4085 | #define MCF_USB_OTGSC_BSVIE (0x08000000) |
---|
4086 | #define MCF_USB_OTGSC_BSEIE (0x10000000) |
---|
4087 | #define MCF_USB_OTGSC_1MSE (0x20000000) |
---|
4088 | #define MCF_USB_OTGSC_DPIE (0x40000000) |
---|
4089 | #define MCF_USB_OTGSC_CLEAR (0x007F0000) |
---|
4090 | #define MCF_USB_OTGSC_ENABLE_ALL (0x7F000000) |
---|
4091 | |
---|
4092 | /* Bit definitions and macros for MCF_USB_USBMODE */ |
---|
4093 | #define MCF_USB_USBMODE_CM(x) (((x)&0x00000003)<<0) |
---|
4094 | #define MCF_USB_USBMODE_ES (0x00000004) |
---|
4095 | #define MCF_USB_USBMODE_SLOM (0x00000008) |
---|
4096 | #define MCF_USB_USBMODE_SDIS (0x00000010) |
---|
4097 | #define MCF_USB_USBMODE_CM_IDLE (0x00000000) |
---|
4098 | #define MCF_USB_USBMODE_CM_DEVICE (0x00000002) |
---|
4099 | #define MCF_USB_USBMODE_CM_HOST (0x00000003) |
---|
4100 | |
---|
4101 | /* Bit definitions and macros for MCF_USB_EPSETUPSR */ |
---|
4102 | #define MCF_USB_EPSETUPSR_EPSETUPSTAT(x) (((x)&0x0000003F)<<0) |
---|
4103 | |
---|
4104 | /* Bit definitions and macros for MCF_USB_EPPRIME */ |
---|
4105 | #define MCF_USB_EPPRIME_PERB(x) (((x)&0x0000003F)<<0) |
---|
4106 | #define MCF_USB_EPPRIME_PETB(x) (((x)&0x0000003F)<<16) |
---|
4107 | #define MCF_USB_EPPRIME_PETB0 (0x00010000) |
---|
4108 | #define MCF_USB_EPPRIME_PETB1 (0x00020000) |
---|
4109 | #define MCF_USB_EPPRIME_PETB2 (0x00040000) |
---|
4110 | #define MCF_USB_EPPRIME_PETB3 (0x00080000) |
---|
4111 | #define MCF_USB_EPPRIME_PETB4 (0x00100000) |
---|
4112 | #define MCF_USB_EPPRIME_PETB5 (0x00200000) |
---|
4113 | #define MCF_USB_EPPRIME_PERB0 (0x00000001) |
---|
4114 | #define MCF_USB_EPPRIME_PERB1 (0x00000002) |
---|
4115 | #define MCF_USB_EPPRIME_PERB2 (0x00000004) |
---|
4116 | #define MCF_USB_EPPRIME_PERB3 (0x00000008) |
---|
4117 | #define MCF_USB_EPPRIME_PERB4 (0x00000010) |
---|
4118 | #define MCF_USB_EPPRIME_PERB5 (0x00000020) |
---|
4119 | |
---|
4120 | /* Bit definitions and macros for MCF_USB_EPFLUSH */ |
---|
4121 | #define MCF_USB_EPFLUSH_FERB(x) (((x)&0x0000003F)<<0) |
---|
4122 | #define MCF_USB_EPFLUSH_FETB(x) (((x)&0x0000003F)<<16) |
---|
4123 | #define MCF_USB_EPFLUSH_FETB0 (0x00010000) |
---|
4124 | #define MCF_USB_EPFLUSH_FETB1 (0x00020000) |
---|
4125 | #define MCF_USB_EPFLUSH_FETB2 (0x00040000) |
---|
4126 | #define MCF_USB_EPFLUSH_FETB3 (0x00080000) |
---|
4127 | #define MCF_USB_EPFLUSH_FETB4 (0x00100000) |
---|
4128 | #define MCF_USB_EPFLUSH_FETB5 (0x00200000) |
---|
4129 | #define MCF_USB_EPFLUSH_FERB0 (0x00000001) |
---|
4130 | #define MCF_USB_EPFLUSH_FERB1 (0x00000002) |
---|
4131 | #define MCF_USB_EPFLUSH_FERB2 (0x00000004) |
---|
4132 | #define MCF_USB_EPFLUSH_FERB3 (0x00000008) |
---|
4133 | #define MCF_USB_EPFLUSH_FERB4 (0x00000010) |
---|
4134 | #define MCF_USB_EPFLUSH_FERB5 (0x00000020) |
---|
4135 | |
---|
4136 | /* Bit definitions and macros for MCF_USB_EPSR */ |
---|
4137 | #define MCF_USB_EPSR_ERBR(x) (((x)&0x0000003F)<<0) |
---|
4138 | #define MCF_USB_EPSR_ETBR(x) (((x)&0x0000003F)<<16) |
---|
4139 | #define MCF_USB_EPSR_ETBR0 (0x00010000) |
---|
4140 | #define MCF_USB_EPSR_ETBR1 (0x00020000) |
---|
4141 | #define MCF_USB_EPSR_ETBR2 (0x00040000) |
---|
4142 | #define MCF_USB_EPSR_ETBR3 (0x00080000) |
---|
4143 | #define MCF_USB_EPSR_ETBR4 (0x00100000) |
---|
4144 | #define MCF_USB_EPSR_ETBR5 (0x00200000) |
---|
4145 | #define MCF_USB_EPSR_ERBR0 (0x00000001) |
---|
4146 | #define MCF_USB_EPSR_ERBR1 (0x00000002) |
---|
4147 | #define MCF_USB_EPSR_ERBR2 (0x00000004) |
---|
4148 | #define MCF_USB_EPSR_ERBR3 (0x00000008) |
---|
4149 | #define MCF_USB_EPSR_ERBR4 (0x00000010) |
---|
4150 | #define MCF_USB_EPSR_ERBR5 (0x00000020) |
---|
4151 | |
---|
4152 | /* Bit definitions and macros for MCF_USB_EPCOMPLETE */ |
---|
4153 | #define MCF_USB_EPCOMPLETE_ERCE(x) (((x)&0x0000003F)<<0) |
---|
4154 | #define MCF_USB_EPCOMPLETE_ETCE(x) (((x)&0x0000003F)<<16) |
---|
4155 | #define MCF_USB_EPCOMPLETE_ETCE0 (0x00010000) |
---|
4156 | #define MCF_USB_EPCOMPLETE_ETCE1 (0x00020000) |
---|
4157 | #define MCF_USB_EPCOMPLETE_ETCE2 (0x00040000) |
---|
4158 | #define MCF_USB_EPCOMPLETE_ETCE3 (0x00080000) |
---|
4159 | #define MCF_USB_EPCOMPLETE_ETCE4 (0x00100000) |
---|
4160 | #define MCF_USB_EPCOMPLETE_ETCE5 (0x00200000) |
---|
4161 | #define MCF_USB_EPCOMPLETE_ERCE0 (0x00000001) |
---|
4162 | #define MCF_USB_EPCOMPLETE_ERCE1 (0x00000002) |
---|
4163 | #define MCF_USB_EPCOMPLETE_ERCE2 (0x00000004) |
---|
4164 | #define MCF_USB_EPCOMPLETE_ERCE3 (0x00000008) |
---|
4165 | #define MCF_USB_EPCOMPLETE_ERCE4 (0x00000010) |
---|
4166 | #define MCF_USB_EPCOMPLETE_ERCE5 (0x00000020) |
---|
4167 | |
---|
4168 | /* Bit definitions and macros for MCF_USB_EPCR0 */ |
---|
4169 | #define MCF_USB_EPCR0_RXS (0x00000001) |
---|
4170 | #define MCF_USB_EPCR0_RXT(x) (((x)&0x00000003)<<2) |
---|
4171 | #define MCF_USB_EPCR0_RXE (0x00000080) |
---|
4172 | #define MCF_USB_EPCR0_TXS (0x00010000) |
---|
4173 | #define MCF_USB_EPCR0_TXT(x) (((x)&0x00000003)<<18) |
---|
4174 | #define MCF_USB_EPCR0_TXE (0x00800000) |
---|
4175 | |
---|
4176 | /* Bit definitions and macros for MCF_USB_EPCR */ |
---|
4177 | #define MCF_USB_EPCR_RXS (0x00000001) |
---|
4178 | #define MCF_USB_EPCR_RXD (0x00000002) |
---|
4179 | #define MCF_USB_EPCR_RXT(x) (((x)&0x00000003)<<2) |
---|
4180 | #define MCF_USB_EPCR_RXI (0x00000020) |
---|
4181 | #define MCF_USB_EPCR_RXR (0x00000040) |
---|
4182 | #define MCF_USB_EPCR_RXE (0x00000080) |
---|
4183 | #define MCF_USB_EPCR_TXS (0x00010000) |
---|
4184 | #define MCF_USB_EPCR_TXD (0x00020000) |
---|
4185 | #define MCF_USB_EPCR_TXT(x) (((x)&0x00000003)<<18) |
---|
4186 | #define MCF_USB_EPCR_TXI (0x00200000) |
---|
4187 | #define MCF_USB_EPCR_TXR (0x00400000) |
---|
4188 | #define MCF_USB_EPCR_TXE (0x00800000) |
---|
4189 | #define MCF_USB_EPCR_TXT_CONTROL (0x00000000) |
---|
4190 | #define MCF_USB_EPCR_TXT_ISO (0x00040000) |
---|
4191 | #define MCF_USB_EPCR_TXT_BULK (0x00080000) |
---|
4192 | #define MCF_USB_EPCR_TXT_INT (0x000C0000) |
---|
4193 | #define MCF_USB_EPCR_RXT_CONTROL (0x00000000) |
---|
4194 | #define MCF_USB_EPCR_RXT_ISO (0x00000004) |
---|
4195 | #define MCF_USB_EPCR_RXT_BULK (0x00000008) |
---|
4196 | #define MCF_USB_EPCR_RXT_INT (0x0000000C) |
---|
4197 | |
---|
4198 | /********************************************************************* |
---|
4199 | * |
---|
4200 | * SDRAM Controller (SDRAMC) |
---|
4201 | * |
---|
4202 | *********************************************************************/ |
---|
4203 | |
---|
4204 | /* Register read/write macros */ |
---|
4205 | #define MCF_SDRAMC_SDMR (*(vuint32*)(0xFC0B8000)) |
---|
4206 | #define MCF_SDRAMC_SDCR (*(vuint32*)(0xFC0B8004)) |
---|
4207 | #define MCF_SDRAMC_SDCFG1 (*(vuint32*)(0xFC0B8008)) |
---|
4208 | #define MCF_SDRAMC_SDCFG2 (*(vuint32*)(0xFC0B800C)) |
---|
4209 | #define MCF_SDRAMC_SDDS (*(vuint32*)(0xFC0B8100)) |
---|
4210 | #define MCF_SDRAMC_SDCS0 (*(vuint32*)(0xFC0B8110)) |
---|
4211 | #define MCF_SDRAMC_SDCS1 (*(vuint32*)(0xFC0B8114)) |
---|
4212 | #define MCF_SDRAMC_SDCS2 (*(vuint32*)(0xFC0B8118)) |
---|
4213 | #define MCF_SDRAMC_SDCS3 (*(vuint32*)(0xFC0B811C)) |
---|
4214 | #define MCF_SDRAMC_SDCS(x) (*(vuint32*)(0xFC0B8110+((x)*0x004))) |
---|
4215 | |
---|
4216 | /* Bit definitions and macros for MCF_SDRAMC_SDMR */ |
---|
4217 | #define MCF_SDRAMC_SDMR_CMD (0x00010000) |
---|
4218 | #define MCF_SDRAMC_SDMR_AD(x) (((x)&0x00000FFF)<<18) |
---|
4219 | #define MCF_SDRAMC_SDMR_BNKAD(x) (((x)&0x00000003)<<30) |
---|
4220 | #define MCF_SDRAMC_SDMR_BNKAD_LMR (0x00000000) |
---|
4221 | #define MCF_SDRAMC_SDMR_BNKAD_LEMR (0x40000000) |
---|
4222 | |
---|
4223 | /* Bit definitions and macros for MCF_SDRAMC_SDCR */ |
---|
4224 | #define MCF_SDRAMC_SDCR_IPALL (0x00000002) |
---|
4225 | #define MCF_SDRAMC_SDCR_IREF (0x00000004) |
---|
4226 | #define MCF_SDRAMC_SDCR_DQS_OE(x) (((x)&0x0000000F)<<8) |
---|
4227 | #define MCF_SDRAMC_SDCR_PS(x) (((x)&0x00000003)<<12) |
---|
4228 | #define MCF_SDRAMC_SDCR_RCNT(x) (((x)&0x0000003F)<<16) |
---|
4229 | #define MCF_SDRAMC_SDCR_MUX(x) (((x)&0x00000003)<<24) |
---|
4230 | #define MCF_SDRAMC_SDCR_REF (0x10000000) |
---|
4231 | #define MCF_SDRAMC_SDCR_DDR (0x20000000) |
---|
4232 | #define MCF_SDRAMC_SDCR_CKE (0x40000000) |
---|
4233 | #define MCF_SDRAMC_SDCR_MODE_EN (0x80000000) |
---|
4234 | #define MCF_SDRAMC_SDCR_PS_16 (0x00002000) |
---|
4235 | #define MCF_SDRAMC_SDCR_PS_32 (0x00000000) |
---|
4236 | |
---|
4237 | /* Bit definitions and macros for MCF_SDRAMC_SDCFG1 */ |
---|
4238 | #define MCF_SDRAMC_SDCFG1_WTLAT(x) (((x)&0x00000007)<<4) |
---|
4239 | #define MCF_SDRAMC_SDCFG1_REF2ACT(x) (((x)&0x0000000F)<<8) |
---|
4240 | #define MCF_SDRAMC_SDCFG1_PRE2ACT(x) (((x)&0x00000007)<<12) |
---|
4241 | #define MCF_SDRAMC_SDCFG1_ACT2RW(x) (((x)&0x00000007)<<16) |
---|
4242 | #define MCF_SDRAMC_SDCFG1_RDLAT(x) (((x)&0x0000000F)<<20) |
---|
4243 | #define MCF_SDRAMC_SDCFG1_SWT2RD(x) (((x)&0x00000007)<<24) |
---|
4244 | #define MCF_SDRAMC_SDCFG1_SRD2RW(x) (((x)&0x0000000F)<<28) |
---|
4245 | |
---|
4246 | /* Bit definitions and macros for MCF_SDRAMC_SDCFG2 */ |
---|
4247 | #define MCF_SDRAMC_SDCFG2_BL(x) (((x)&0x0000000F)<<16) |
---|
4248 | #define MCF_SDRAMC_SDCFG2_BRD2WT(x) (((x)&0x0000000F)<<20) |
---|
4249 | #define MCF_SDRAMC_SDCFG2_BWT2RW(x) (((x)&0x0000000F)<<24) |
---|
4250 | #define MCF_SDRAMC_SDCFG2_BRD2PRE(x) (((x)&0x0000000F)<<28) |
---|
4251 | |
---|
4252 | /* Bit definitions and macros for MCF_SDRAMC_SDDS */ |
---|
4253 | #define MCF_SDRAMC_SDDS_SB_D(x) (((x)&0x00000003)<<0) |
---|
4254 | #define MCF_SDRAMC_SDDS_SB_S(x) (((x)&0x00000003)<<2) |
---|
4255 | #define MCF_SDRAMC_SDDS_SB_A(x) (((x)&0x00000003)<<4) |
---|
4256 | #define MCF_SDRAMC_SDDS_SB_C(x) (((x)&0x00000003)<<6) |
---|
4257 | #define MCF_SDRAMC_SDDS_SB_E(x) (((x)&0x00000003)<<8) |
---|
4258 | |
---|
4259 | /* Bit definitions and macros for MCF_SDRAMC_SDCS */ |
---|
4260 | #define MCF_SDRAMC_SDCS_CSSZ(x) (((x)&0x0000001F)<<0) |
---|
4261 | #define MCF_SDRAMC_SDCS_BASE(x) (((x)&0x00000FFF)<<20) |
---|
4262 | #define MCF_SDRAMC_SDCS_BA(x) ((x)&0xFFF00000) |
---|
4263 | #define MCF_SDRAMC_SDCS_CSSZ_DIABLE (0x00000000) |
---|
4264 | #define MCF_SDRAMC_SDCS_CSSZ_1MBYTE (0x00000013) |
---|
4265 | #define MCF_SDRAMC_SDCS_CSSZ_2MBYTE (0x00000014) |
---|
4266 | #define MCF_SDRAMC_SDCS_CSSZ_4MBYTE (0x00000015) |
---|
4267 | #define MCF_SDRAMC_SDCS_CSSZ_8MBYTE (0x00000016) |
---|
4268 | #define MCF_SDRAMC_SDCS_CSSZ_16MBYTE (0x00000017) |
---|
4269 | #define MCF_SDRAMC_SDCS_CSSZ_32MBYTE (0x00000018) |
---|
4270 | #define MCF_SDRAMC_SDCS_CSSZ_64MBYTE (0x00000019) |
---|
4271 | #define MCF_SDRAMC_SDCS_CSSZ_128MBYTE (0x0000001A) |
---|
4272 | #define MCF_SDRAMC_SDCS_CSSZ_256MBYTE (0x0000001B) |
---|
4273 | #define MCF_SDRAMC_SDCS_CSSZ_512MBYTE (0x0000001C) |
---|
4274 | #define MCF_SDRAMC_SDCS_CSSZ_1GBYTE (0x0000001D) |
---|
4275 | #define MCF_SDRAMC_SDCS_CSSZ_2GBYTE (0x0000001E) |
---|
4276 | #define MCF_SDRAMC_SDCS_CSSZ_4GBYTE (0x0000001F) |
---|
4277 | |
---|
4278 | /********************************************************************* |
---|
4279 | * |
---|
4280 | * Synchronous Serial Interface (SSI) |
---|
4281 | * |
---|
4282 | *********************************************************************/ |
---|
4283 | |
---|
4284 | /* Register read/write macros */ |
---|
4285 | #define MCF_SSI_TX0 (*(vuint32*)(0xFC0BC000)) |
---|
4286 | #define MCF_SSI_TX1 (*(vuint32*)(0xFC0BC004)) |
---|
4287 | #define MCF_SSI_RX0 (*(vuint32*)(0xFC0BC008)) |
---|
4288 | #define MCF_SSI_RX1 (*(vuint32*)(0xFC0BC00C)) |
---|
4289 | #define MCF_SSI_CR (*(vuint32*)(0xFC0BC010)) |
---|
4290 | #define MCF_SSI_ISR (*(vuint32*)(0xFC0BC014)) |
---|
4291 | #define MCF_SSI_IER (*(vuint32*)(0xFC0BC018)) |
---|
4292 | #define MCF_SSI_TCR (*(vuint32*)(0xFC0BC01C)) |
---|
4293 | #define MCF_SSI_RCR (*(vuint32*)(0xFC0BC020)) |
---|
4294 | #define MCF_SSI_CCR (*(vuint32*)(0xFC0BC024)) |
---|
4295 | #define MCF_SSI_FCSR (*(vuint32*)(0xFC0BC02C)) |
---|
4296 | #define MCF_SSI_ACR (*(vuint32*)(0xFC0BC038)) |
---|
4297 | #define MCF_SSI_ACADD (*(vuint32*)(0xFC0BC03C)) |
---|
4298 | #define MCF_SSI_ACDAT (*(vuint32*)(0xFC0BC040)) |
---|
4299 | #define MCF_SSI_ATAG (*(vuint32*)(0xFC0BC044)) |
---|
4300 | #define MCF_SSI_TMASK (*(vuint32*)(0xFC0BC048)) |
---|
4301 | #define MCF_SSI_RMASK (*(vuint32*)(0xFC0BC04C)) |
---|
4302 | |
---|
4303 | /* Bit definitions and macros for MCF_SSI_TX */ |
---|
4304 | #define MCF_SSI_TX_SSI_TX(x) (((x)&0xFFFFFFFF)<<0) |
---|
4305 | |
---|
4306 | /* Bit definitions and macros for MCF_SSI_RX */ |
---|
4307 | #define MCF_SSI_RX_SSI_RX(x) (((x)&0xFFFFFFFF)<<0) |
---|
4308 | |
---|
4309 | /* Bit definitions and macros for MCF_SSI_CR */ |
---|
4310 | #define MCF_SSI_CR_SSI_EN (0x00000001) |
---|
4311 | #define MCF_SSI_CR_TE (0x00000002) |
---|
4312 | #define MCF_SSI_CR_RE (0x00000004) |
---|
4313 | #define MCF_SSI_CR_NET (0x00000008) |
---|
4314 | #define MCF_SSI_CR_SYN (0x00000010) |
---|
4315 | #define MCF_SSI_CR_I2S(x) (((x)&0x00000003)<<5) |
---|
4316 | #define MCF_SSI_CR_MCE (0x00000080) |
---|
4317 | #define MCF_SSI_CR_TCH (0x00000100) |
---|
4318 | #define MCF_SSI_CR_CIS (0x00000200) |
---|
4319 | #define MCF_SSI_CR_I2S_NORMAL (0x00000000) |
---|
4320 | #define MCF_SSI_CR_I2S_MASTER (0x00000020) |
---|
4321 | #define MCF_SSI_CR_I2S_SLAVE (0x00000040) |
---|
4322 | |
---|
4323 | /* Bit definitions and macros for MCF_SSI_ISR */ |
---|
4324 | #define MCF_SSI_ISR_TFE0 (0x00000001) |
---|
4325 | #define MCF_SSI_ISR_TFE1 (0x00000002) |
---|
4326 | #define MCF_SSI_ISR_RFF0 (0x00000004) |
---|
4327 | #define MCF_SSI_ISR_RFF1 (0x00000008) |
---|
4328 | #define MCF_SSI_ISR_RLS (0x00000010) |
---|
4329 | #define MCF_SSI_ISR_TLS (0x00000020) |
---|
4330 | #define MCF_SSI_ISR_RFS (0x00000040) |
---|
4331 | #define MCF_SSI_ISR_TFS (0x00000080) |
---|
4332 | #define MCF_SSI_ISR_TUE0 (0x00000100) |
---|
4333 | #define MCF_SSI_ISR_TUE1 (0x00000200) |
---|
4334 | #define MCF_SSI_ISR_ROE0 (0x00000400) |
---|
4335 | #define MCF_SSI_ISR_ROE1 (0x00000800) |
---|
4336 | #define MCF_SSI_ISR_TDE0 (0x00001000) |
---|
4337 | #define MCF_SSI_ISR_TDE1 (0x00002000) |
---|
4338 | #define MCF_SSI_ISR_RDR0 (0x00004000) |
---|
4339 | #define MCF_SSI_ISR_RDR1 (0x00008000) |
---|
4340 | #define MCF_SSI_ISR_RXT (0x00010000) |
---|
4341 | #define MCF_SSI_ISR_CMDDU (0x00020000) |
---|
4342 | #define MCF_SSI_ISR_CMDAU (0x00040000) |
---|
4343 | |
---|
4344 | /* Bit definitions and macros for MCF_SSI_IER */ |
---|
4345 | #define MCF_SSI_IER_TFE0 (0x00000001) |
---|
4346 | #define MCF_SSI_IER_TFE1 (0x00000002) |
---|
4347 | #define MCF_SSI_IER_RFF0 (0x00000004) |
---|
4348 | #define MCF_SSI_IER_RFF1 (0x00000008) |
---|
4349 | #define MCF_SSI_IER_RLS (0x00000010) |
---|
4350 | #define MCF_SSI_IER_TLS (0x00000020) |
---|
4351 | #define MCF_SSI_IER_RFS (0x00000040) |
---|
4352 | #define MCF_SSI_IER_TFS (0x00000080) |
---|
4353 | #define MCF_SSI_IER_TUE0 (0x00000100) |
---|
4354 | #define MCF_SSI_IER_TUE1 (0x00000200) |
---|
4355 | #define MCF_SSI_IER_ROE0 (0x00000400) |
---|
4356 | #define MCF_SSI_IER_ROE1 (0x00000800) |
---|
4357 | #define MCF_SSI_IER_TDE0 (0x00001000) |
---|
4358 | #define MCF_SSI_IER_TDE1 (0x00002000) |
---|
4359 | #define MCF_SSI_IER_RDR0 (0x00004000) |
---|
4360 | #define MCF_SSI_IER_RDR1 (0x00008000) |
---|
4361 | #define MCF_SSI_IER_RXT (0x00010000) |
---|
4362 | #define MCF_SSI_IER_CMDU (0x00020000) |
---|
4363 | #define MCF_SSI_IER_CMDAU (0x00040000) |
---|
4364 | #define MCF_SSI_IER_TIE (0x00080000) |
---|
4365 | #define MCF_SSI_IER_TDMAE (0x00100000) |
---|
4366 | #define MCF_SSI_IER_RIE (0x00200000) |
---|
4367 | #define MCF_SSI_IER_RDMAE (0x00400000) |
---|
4368 | |
---|
4369 | /* Bit definitions and macros for MCF_SSI_TCR */ |
---|
4370 | #define MCF_SSI_TCR_TEFS (0x00000001) |
---|
4371 | #define MCF_SSI_TCR_TFSL (0x00000002) |
---|
4372 | #define MCF_SSI_TCR_TFSI (0x00000004) |
---|
4373 | #define MCF_SSI_TCR_TSCKP (0x00000008) |
---|
4374 | #define MCF_SSI_TCR_TSHFD (0x00000010) |
---|
4375 | #define MCF_SSI_TCR_TXDIR (0x00000020) |
---|
4376 | #define MCF_SSI_TCR_TFDIR (0x00000040) |
---|
4377 | #define MCF_SSI_TCR_TFEN0 (0x00000080) |
---|
4378 | #define MCF_SSI_TCR_TFEN1 (0x00000100) |
---|
4379 | #define MCF_SSI_TCR_TXBIT0 (0x00000200) |
---|
4380 | |
---|
4381 | /* Bit definitions and macros for MCF_SSI_RCR */ |
---|
4382 | #define MCF_SSI_RCR_REFS (0x00000001) |
---|
4383 | #define MCF_SSI_RCR_RFSL (0x00000002) |
---|
4384 | #define MCF_SSI_RCR_RFSI (0x00000004) |
---|
4385 | #define MCF_SSI_RCR_RSCKP (0x00000008) |
---|
4386 | #define MCF_SSI_RCR_RSHFD (0x00000010) |
---|
4387 | #define MCF_SSI_RCR_RFEN0 (0x00000080) |
---|
4388 | #define MCF_SSI_RCR_RFEN1 (0x00000100) |
---|
4389 | #define MCF_SSI_RCR_RXBIT0 (0x00000200) |
---|
4390 | #define MCF_SSI_RCR_RXEXT (0x00000400) |
---|
4391 | |
---|
4392 | /* Bit definitions and macros for MCF_SSI_CCR */ |
---|
4393 | #define MCF_SSI_CCR_PM(x) (((x)&0x000000FF)<<0) |
---|
4394 | #define MCF_SSI_CCR_DC(x) (((x)&0x0000001F)<<8) |
---|
4395 | #define MCF_SSI_CCR_WL(x) (((x)&0x0000000F)<<13) |
---|
4396 | #define MCF_SSI_CCR_PSR (0x00020000) |
---|
4397 | #define MCF_SSI_CCR_DIV2 (0x00040000) |
---|
4398 | |
---|
4399 | /* Bit definitions and macros for MCF_SSI_FCSR */ |
---|
4400 | #define MCF_SSI_FCSR_TFWM0(x) (((x)&0x0000000F)<<0) |
---|
4401 | #define MCF_SSI_FCSR_RFWM0(x) (((x)&0x0000000F)<<4) |
---|
4402 | #define MCF_SSI_FCSR_TFCNT0(x) (((x)&0x0000000F)<<8) |
---|
4403 | #define MCF_SSI_FCSR_RFCNT0(x) (((x)&0x0000000F)<<12) |
---|
4404 | #define MCF_SSI_FCSR_TFWM1(x) (((x)&0x0000000F)<<16) |
---|
4405 | #define MCF_SSI_FCSR_RFWM1(x) (((x)&0x0000000F)<<20) |
---|
4406 | #define MCF_SSI_FCSR_TFCNT1(x) (((x)&0x0000000F)<<24) |
---|
4407 | #define MCF_SSI_FCSR_RFCNT1(x) (((x)&0x0000000F)<<28) |
---|
4408 | |
---|
4409 | /* Bit definitions and macros for MCF_SSI_ACR */ |
---|
4410 | #define MCF_SSI_ACR_AC97EN (0x00000001) |
---|
4411 | #define MCF_SSI_ACR_FV (0x00000002) |
---|
4412 | #define MCF_SSI_ACR_TIF (0x00000004) |
---|
4413 | #define MCF_SSI_ACR_RD (0x00000008) |
---|
4414 | #define MCF_SSI_ACR_WR (0x00000010) |
---|
4415 | #define MCF_SSI_ACR_FRDIV(x) (((x)&0x0000003F)<<5) |
---|
4416 | |
---|
4417 | /* Bit definitions and macros for MCF_SSI_ACADD */ |
---|
4418 | #define MCF_SSI_ACADD_SSI_ACADD(x) (((x)&0x0007FFFF)<<0) |
---|
4419 | |
---|
4420 | /* Bit definitions and macros for MCF_SSI_ACDAT */ |
---|
4421 | #define MCF_SSI_ACDAT_SSI_ACDAT(x) (((x)&0x0007FFFF)<<0) |
---|
4422 | |
---|
4423 | /* Bit definitions and macros for MCF_SSI_ATAG */ |
---|
4424 | #define MCF_SSI_ATAG_DDI_ATAG(x) (((x)&0x0000FFFF)<<0) |
---|
4425 | |
---|
4426 | /* Bit definitions and macros for MCF_SSI_TMASK */ |
---|
4427 | #define MCF_SSI_TMASK_SSI_TMASK(x) (((x)&0xFFFFFFFF)<<0) |
---|
4428 | |
---|
4429 | /* Bit definitions and macros for MCF_SSI_RMASK */ |
---|
4430 | #define MCF_SSI_RMASK_SSI_RMASK(x) (((x)&0xFFFFFFFF)<<0) |
---|
4431 | |
---|
4432 | /********************************************************************* |
---|
4433 | * |
---|
4434 | * Phase Locked Loop (PLL) |
---|
4435 | * |
---|
4436 | *********************************************************************/ |
---|
4437 | |
---|
4438 | /* Register read/write macros */ |
---|
4439 | #define MCF_PLL_PODR (*(vuint8 *)(0xFC0C0000)) |
---|
4440 | #define MCF_PLL_PLLCR (*(vuint8 *)(0xFC0C0004)) |
---|
4441 | #define MCF_PLL_PMDR (*(vuint8 *)(0xFC0C0008)) |
---|
4442 | #define MCF_PLL_PFDR (*(vuint8 *)(0xFC0C000C)) |
---|
4443 | |
---|
4444 | /* Bit definitions and macros for MCF_PLL_PODR */ |
---|
4445 | #define MCF_PLL_PODR_BUSDIV(x) (((x)&0x0F)<<0) |
---|
4446 | #define MCF_PLL_PODR_CPUDIV(x) (((x)&0x0F)<<4) |
---|
4447 | |
---|
4448 | /* Bit definitions and macros for MCF_PLL_PLLCR */ |
---|
4449 | #define MCF_PLL_PLLCR_DITHDEV(x) (((x)&0x07)<<0) |
---|
4450 | #define MCF_PLL_PLLCR_DITHEN (0x80) |
---|
4451 | |
---|
4452 | /* Bit definitions and macros for MCF_PLL_PMDR */ |
---|
4453 | #define MCF_PLL_PMDR_MODDIV(x) (((x)&0xFF)<<0) |
---|
4454 | |
---|
4455 | /* Bit definitions and macros for MCF_PLL_PFDR */ |
---|
4456 | #define MCF_PLL_PFDR_MFD(x) (((x)&0xFF)<<0) |
---|
4457 | |
---|
4458 | /********************************************************************/ |
---|
4459 | |
---|
4460 | #endif /* __MCF532X_H__ */ |
---|