|
RTEMS 6.1-rc5
|
Loading...
Searching...
No Matches
18#define MCF5206E_REG8(base,ofs) (ofs+base)
19#define MCF5206E_REG16(base,ofs) (ofs+base)
20#define MCF5206E_REG32(base,ofs) (ofs+base)
22#define MCF5206E_REG8(base,ofs) \
23 (volatile uint8_t*)((uint8_t*)(base) + (ofs))
24#define MCF5206E_REG16(base,ofs) \
25 (volatile uint16_t*)((uint8_t*)(base) + (ofs))
26#define MCF5206E_REG32(base,ofs) \
27 (volatile uint32_t*)((uint8_t*)(base) + (ofs))
33#define MCF5206E_CACR_CENB (0x80000000)
34#define MCF5206E_CACR_CPDI (0x10000000)
35#define MCF5206E_CACR_CFRZ (0x08000000)
36#define MCF5206E_CACR_CINV (0x01000000)
37#define MCF5206E_CACR_CEIB (0x00000400)
39#define MCF5206E_CACR_DCM (0x00000200)
40#define MCF5206E_CACR_DBWE (0x00000100)
41#define MCF5206E_CACR_DWP (0x00000020)
42#define MCF5206E_CACR_CLNF (0x00000003)
45#define MCF5206E_ACR_AB (0xff000000)
46#define MCF5206E_ACR_AB_S (24)
47#define MCF5206E_ACR_AM (0x00ff0000)
48#define MCF5206E_ACR_AM_S (16)
49#define MCF5206E_ACR_EN (0x00008000)
50#define MCF5206E_ACR_SM (0x00006000)
51#define MCF5206E_ACR_SM_USR (0x00000000)
52#define MCF5206E_ACR_SM_SVR (0x00002000)
53#define MCF5206E_ACR_SM_ANY (0x00004000)
54#define MCF5206E_ACR_CM (0x00000040)
55#define MCF5206E_ACR_BUFW (0x00000020)
56#define MCF5206E_ACR_WP (0x00000004)
57#define MCF5206E_ACR_BASE(base) ((base) & MCF5206E_ACR_AB)
58#define MCF5206E_ACR_MASK(mask) (((mask) >> 8) & MCF5206E_ACR_AM)
63#define MCF5206E_RAMBAR_BA (0xffffe000)
64#define MCF5206E_RAMBAR_WP (0x00000100)
65#define MCF5206E_RAMBAR_CI (0x00000020)
66#define MCF5206E_RAMBAR_SC (0x00000010)
67#define MCF5206E_RAMBAR_SD (0x00000008)
68#define MCF5206E_RAMBAR_UC (0x00000004)
69#define MCF5206E_RAMBAR_UD (0x00000002)
70#define MCF5206E_RAMBAR_V (0x00000001)
75#define MCF5206E_SAR(mbar,chn) MCF5206E_REG32(mbar,0x200 + ((chn) * 0x40))
78#define MCF5206E_DAR(mbar,chn) MCF5206E_REG32(mbar,0x204 + ((chn) * 0x40))
81#define MCF5206E_BCR(mbar,chn) MCF5206E_REG16(mbar,0x20C + ((chn) * 0x40))
84#define MCF5206E_DCR(mbar,chn) MCF5206E_REG16(mbar,0x208 + ((chn) * 0x40))
85#define MCF5206E_DCR_INT (0x8000)
86#define MCF5206E_DCR_EEXT (0x4000)
87#define MCF5206E_DCR_CS (0x2000)
88#define MCF5206E_DCR_AA (0x1000)
89#define MCF5206E_DCR_BWC (0x0E00)
90#define MCF5206E_DCR_BWC_DISABLE (0x0000)
91#define MCF5206E_DCR_BWC_512 (0x0200)
92#define MCF5206E_DCR_BWC_1024 (0x0400)
93#define MCF5206E_DCR_BWC_2048 (0x0600)
94#define MCF5206E_DCR_BWC_4096 (0x0800)
95#define MCF5206E_DCR_BWC_8192 (0x0A00)
96#define MCF5206E_DCR_BWC_16384 (0x0C00)
97#define MCF5206E_DCR_BWC_32768 (0x0E00)
98#define MCF5206E_DCR_SAA (0x0100)
99#define MCF5206E_DCR_S_RW (0x0080)
100#define MCF5206E_DCR_SINC (0x0040)
101#define MCF5206E_DCR_SSIZE (0x0030)
102#define MCF5206E_DCR_SSIZE_LONG (0x0000)
103#define MCF5206E_DCR_SSIZE_BYTE (0x0010)
104#define MCF5206E_DCR_SSIZE_WORD (0x0020)
105#define MCF5206E_DCR_SSIZE_LINE (0x0030)
106#define MCF5206E_DCR_DINC (0x0008)
107#define MCF5206E_DCR_DSIZE (0x0006)
108#define MCF5206E_DCR_DSIZE_LONG (0x0000)
109#define MCF5206E_DCR_DSIZE_BYTE (0x0002)
110#define MCF5206E_DCR_DSIZE_WORD (0x0004)
111#define MCF5206E_DCR_DSIZE_LINE (0x0006)
112#define MCF5206E_DCR_START (0x0001)
115#define MCF5206E_DSR(mbar,chn) MCF5206E_REG8(mbar,0x210 + ((chn) * 0x40))
116#define MCF5206E_DSR_CE (0x40)
117#define MCF5206E_DSR_BES (0x20)
118#define MCF5206E_DSR_BED (0x10)
119#define MCF5206E_DSR_REQ (0x04)
120#define MCF5206E_DSR_BSY (0x02)
121#define MCF5206E_DSR_DONE (0x01)
124#define MCF5206E_DIVR(mbar,chn) MCF5206E_REG8(mbar,0x214 + ((chn) * 0x40))
130#define MCF5206E_MBAR_BA (0xFFFFFC00)
131#define MCF5206E_MBAR_SC (0x00000010)
132#define MCF5206E_MBAR_SD (0x00000008)
133#define MCF5206E_MBAR_UC (0x00000004)
134#define MCF5206E_MBAR_UD (0x00000002)
135#define MCF5206E_MBAR_V (0x00000001)
138#define MCF5206E_SIMR(mbar) MCF5206E_REG8(mbar,0x003)
139#define MCF5206E_SIMR_FRZ1 (0x80)
140#define MCF5206E_SIMR_FRZ0 (0x40)
141#define MCF5206E_SIMR_BL (0x01)
144#define MCF5206E_INTR_EXT_IRQ1 (1)
145#define MCF5206E_INTR_EXT_IPL1 (1)
146#define MCF5206E_INTR_EXT_IPL2 (2)
147#define MCF5206E_INTR_EXT_IPL3 (3)
148#define MCF5206E_INTR_EXT_IRQ4 (4)
149#define MCF5206E_INTR_EXT_IPL4 (4)
150#define MCF5206E_INTR_EXT_IPL5 (5)
151#define MCF5206E_INTR_EXT_IPL6 (6)
152#define MCF5206E_INTR_EXT_IRQ7 (7)
153#define MCF5206E_INTR_EXT_IPL7 (7)
154#define MCF5206E_INTR_SWT (8)
155#define MCF5206E_INTR_TIMER_1 (9)
156#define MCF5206E_INTR_TIMER_2 (10)
157#define MCF5206E_INTR_MBUS (11)
158#define MCF5206E_INTR_UART_1 (12)
159#define MCF5206E_INTR_UART_2 (13)
160#define MCF5206E_INTR_DMA_0 (14)
161#define MCF5206E_INTR_DMA_1 (15)
163#define MCF5206E_INTR_BIT(n) (1 << (n))
166#define MCF5206E_ICR(mbar,n) MCF5206E_REG8(mbar,0x014 + (n) - 1)
168#define MCF5206E_ICR_AVEC (0x80)
169#define MCF5206E_ICR_IL (0x1c)
170#define MCF5206E_ICR_IL_S (2)
171#define MCF5206E_ICR_IP (0x03)
172#define MCF5206E_ICR_IP_S (0)
175#define MCF5206E_IMR(mbar) MCF5206E_REG16(mbar,0x036)
178#define MCF5206E_IPR(mbar) MCF5206E_REG16(mbar,0x03a)
181#define MCF5206E_RSR(mbar) MCF5206E_REG8(mbar,0x040)
182#define MCF5206E_RSR_HRST (0x80)
183#define MCF5206E_RSR_SWTR (0x20)
186#define MCF5206E_SYPCR(mbar) MCF5206E_REG8(mbar,0x041)
187#define MCF5206E_SYPCR_SWE (0x80)
188#define MCF5206E_SYPCR_SWRI (0x40)
189#define MCF5206E_SYPCR_SWP (0x20)
190#define MCF5206E_SYPCR_SWT (0x18)
191#define MCF5206E_SYPCR_SWT_S (3)
192#define MCF5206E_SYPCR_SWT_9 (0x00)
193#define MCF5206E_SYPCR_SWT_11 (0x08)
194#define MCF5206E_SYPCR_SWT_13 (0x10)
195#define MCF5206E_SYPCR_SWT_15 (0x18)
196#define MCF5206E_SYPCR_SWT_18 (0x20)
197#define MCF5206E_SYPCR_SWT_20 (0x28)
198#define MCF5206E_SYPCR_SWT_22 (0x30)
199#define MCF5206E_SYPCR_SWT_24 (0x38)
200#define MCF5206E_SYPCR_BME (0x04)
201#define MCF5206E_SYPCR_BMT (0x03)
202#define MCF5206E_SYPCR_BMT_1024 (0x00)
203#define MCF5206E_SYPCR_BMT_512 (0x01)
204#define MCF5206E_SYPCR_BMT_256 (0x02)
205#define MCF5206E_SYPCR_BMT_128 (0x03)
208#define MCF5206E_SWIVR(mbar) MCF5206E_REG8(mbar,0x042)
211#define MCF5206E_SWSR(mbar) MCF5206E_REG8(mbar,0x043)
212#define MCF5206E_SWSR_KEY1 (0x55)
213#define MCF5206E_SWSR_KEY2 (0xAA)
216#define MCF5206E_PAR(mbar) MCF5206E_REG16(mbar,0x0CA)
217#define MCF5206E_PAR_PAR9 (0x200)
218#define MCF5206E_PAR_PAR9_TOUT (0x000)
219#define MCF5206E_PAR_PAR9_DREQ1 (0x200)
220#define MCF5206E_PAR_PAR8 (0x100)
221#define MCF5206E_PAR_PAR8_TIN0 (0x000)
222#define MCF5206E_PAR_PAR8_DREQ0 (0x100)
223#define MCF5206E_PAR_PAR7 (0x080)
224#define MCF5206E_PAR_PAR7_RSTO (0x000)
225#define MCF5206E_PAR_PAR7_UART2 (0x080)
226#define MCF5206E_PAR_PAR6 (0x040)
227#define MCF5206E_PAR_PAR6_IRQ (0x000)
228#define MCF5206E_PAR_PAR6_IPL (0x040)
229#define MCF5206E_PAR_PAR5 (0x020)
230#define MCF5206E_PAR_PAR5_GPIO (0x000)
231#define MCF5206E_PAR_PAR5_PST (0x020)
232#define MCF5206E_PAR_PAR4 (0x010)
233#define MCF5206E_PAR_PAR4_GPIO (0x000)
234#define MCF5206E_PAR_PAR4_DDATA (0x010)
235#define MCF5206E_PAR_PAR3 (0x008)
236#define MCF5206E_PAR_PAR2 (0x004)
237#define MCF5206E_PAR_PAR1 (0x002)
238#define MCF5206E_PAR_PAR0 (0x001)
239#define MCF5206E_PAR_WE0_WE1_WE2_WE3 (0x000)
240#define MCF5206E_PAR_WE0_WE1_CS5_CS4 (0x001)
241#define MCF5206E_PAR_WE0_WE1_CS5_A24 (0x002)
242#define MCF5206E_PAR_WE0_WE1_A25_A24 (0x003)
243#define MCF5206E_PAR_WE0_CS6_CS5_CS4 (0x004)
244#define MCF5206E_PAR_WE0_CS6_CS5_A24 (0x005)
245#define MCF5206E_PAR_WE0_CS6_A25_A24 (0x006)
246#define MCF5206E_PAR_WE0_A26_A25_A24 (0x007)
247#define MCF5206E_PAR_CS7_CS6_CS5_CS4 (0x008)
248#define MCF5206E_PAR_CS7_CS6_CS4_A24 (0x009)
249#define MCF5206E_PAR_CS7_CS6_A25_A24 (0x00A)
250#define MCF5206E_PAR_CS7_A26_A25_A24 (0x00B)
251#define MCF5206E_PAR_A27_A26_A25_A24 (0x00C)
254#define MCF5206E_MARB(mbar) MCF5206E_REG8(mbar,0x007)
255#define MCF5206E_MARB_NOARB (0x08)
256#define MCF5206E_MARB_ARBCTRL (0x04)
261#define MCF5206E_CSAR(mbar,bank) MCF5206E_REG16(mbar,0x064 + ((bank) * 12))
264#define MCF5206E_CSMR(mbar,bank) MCF5206E_REG32(mbar,0x068 + ((bank) * 12))
265#define MCF5206E_CSMR_BAM (0xffff0000)
266#define MCF5206E_CSMR_BAM_S (16)
267#define MCF5206E_CSMR_MASK_256M (0x0FFF0000)
268#define MCF5206E_CSMR_MASK_128M (0x07FF0000)
269#define MCF5206E_CSMR_MASK_64M (0x03FF0000)
270#define MCF5206E_CSMR_MASK_32M (0x01FF0000)
271#define MCF5206E_CSMR_MASK_16M (0x00FF0000)
272#define MCF5206E_CSMR_MASK_8M (0x007F0000)
273#define MCF5206E_CSMR_MASK_4M (0x003F0000)
274#define MCF5206E_CSMR_MASK_2M (0x001F0000)
275#define MCF5206E_CSMR_MASK_1M (0x000F0000)
276#define MCF5206E_CSMR_MASK_1024K (0x000F0000)
277#define MCF5206E_CSMR_MASK_512K (0x00070000)
278#define MCF5206E_CSMR_MASK_256K (0x00030000)
279#define MCF5206E_CSMR_MASK_128K (0x00010000)
280#define MCF5206E_CSMR_MASK_64K (0x00000000)
281#define MCF5206E_CSMR_CI (0x00000020)
282#define MCF5206E_CSMR_SC (0x00000010)
283#define MCF5206E_CSMR_SD (0x00000008)
284#define MCF5206E_CSMR_UC (0x00000004)
285#define MCF5206E_CSMR_UD (0x00000002)
288#define MCF5206E_CSCR(mbar,bank) MCF5206E_REG16(mbar,0x6E + ((bank) * 12))
289#define MCF5206E_CSCR_WS (0x3c00)
290#define MCF5206E_CSCR_WS_S (10)
291#define MCF5206E_CSCR_WS0 (0x0000)
292#define MCF5206E_CSCR_WS1 (0x0400)
293#define MCF5206E_CSCR_WS2 (0x0800)
294#define MCF5206E_CSCR_WS3 (0x0C00)
295#define MCF5206E_CSCR_WS4 (0x1000)
296#define MCF5206E_CSCR_WS5 (0x1400)
297#define MCF5206E_CSCR_WS6 (0x1800)
298#define MCF5206E_CSCR_WS7 (0x1C00)
299#define MCF5206E_CSCR_WS8 (0x2000)
300#define MCF5206E_CSCR_WS9 (0x2400)
301#define MCF5206E_CSCR_WS10 (0x2800)
302#define MCF5206E_CSCR_WS11 (0x2C00)
303#define MCF5206E_CSCR_WS12 (0x3000)
304#define MCF5206E_CSCR_WS13 (0x3400)
305#define MCF5206E_CSCR_WS14 (0x3800)
306#define MCF5206E_CSCR_WS15 (0x3C00)
307#define MCF5206E_CSCR_BRST (0x0200)
308#define MCF5206E_CSCR_AA (0x0100)
310#define MCF5206E_CSCR_PS (0x00C0)
311#define MCF5206E_CSCR_PS_S (6)
312#define MCF5206E_CSCR_PS_32 (0x0000)
313#define MCF5206E_CSCR_PS_8 (0x0040)
314#define MCF5206E_CSCR_PS_16 (0x0080)
315#define MCF5206E_CSCR_EMAA (0x0020)
317#define MCF5206E_CSCR_ASET (0x0010)
318#define MCF5206E_CSCR_WRAH (0x0008)
319#define MCF5206E_CSCR_RDAH (0x0004)
320#define MCF5206E_CSCR_WR (0x0002)
321#define MCF5206E_CSCR_RD (0x0001)
324#define MCF5206E_DMCR(mbar) MCF5206E_REG16(mbar, 0x0C6)
329#define MCF5206E_PPDDR(mbar) MCF5206E_REG8(mbar,0x1C5)
332#define MCF5206E_PPDAT(mbar) MCF5206E_REG8(mbar,0x1C9)
334#define MCF5206E_PP_DAT0 (0x01)
335#define MCF5206E_PP_DAT1 (0x02)
336#define MCF5206E_PP_DAT2 (0x04)
337#define MCF5206E_PP_DAT3 (0x08)
338#define MCF5206E_PP_DAT4 (0x10)
339#define MCF5206E_PP_DAT5 (0x20)
340#define MCF5206E_PP_DAT6 (0x40)
341#define MCF5206E_PP_DAT7 (0x80)
346#define MCF5206E_DCRR(mbar) MCF5206E_REG16(mbar,0x046)
349#define MCF5206E_DCTR(mbar) MCF5206E_REG16(mbar,0x04A)
350#define MCF5206E_DCTR_DAEM (0x8000)
352#define MCF5206E_DCTR_EDO (0x4000)
353#define MCF5206E_DCTR_RCD (0x1000)
354#define MCF5206E_DCTR_RSH (0x0600)
355#define MCF5206E_DCTR_RSH_0 (0x0000)
356#define MCF5206E_DCTR_RSH_1 (0x0200)
357#define MCF5206E_DCTR_RSH_2 (0x0400)
358#define MCF5206E_DCTR_RP (0x0060)
359#define MCF5206E_DCTR_RP_15 (0x0000)
360#define MCF5206E_DCTR_RP_25 (0x0020)
361#define MCF5206E_DCTR_RP_35 (0x0040)
362#define MCF5206E_DCTR_CAS (0x0008)
363#define MCF5206E_DCTR_CP (0x0002)
364#define MCF5206E_DCTR_CSR (0x0001)
368#define MCF5206E_DCAR(mbar,bank) MCF5206E_REG16(mbar,0x4C + ((bank) * 12))
371#define MCF5206E_DCMR(mbar,bank) MCF5206E_REG32(mbar,0x50 + ((bank) * 12))
372#define MCF5206E_DCMR_BAM (0xffff0000)
373#define MCF5206E_DCMR_BAM_S (16)
374#define MCF5206E_DCMR_MASK_256M (0x0FFE0000)
375#define MCF5206E_DCMR_MASK_128M (0x07FE0000)
376#define MCF5206E_DCMR_MASK_64M (0x03FE0000)
377#define MCF5206E_DCMR_MASK_32M (0x01FE0000)
378#define MCF5206E_DCMR_MASK_16M (0x00FE0000)
379#define MCF5206E_DCMR_MASK_8M (0x007E0000)
380#define MCF5206E_DCMR_MASK_4M (0x003E0000)
381#define MCF5206E_DCMR_MASK_2M (0x001E0000)
382#define MCF5206E_DCMR_MASK_1M (0x000E0000)
383#define MCF5206E_DCMR_MASK_1024K (0x000E0000)
384#define MCF5206E_DCMR_MASK_512K (0x00060000)
385#define MCF5206E_DCMR_MASK_256K (0x00020000)
386#define MCF5206E_DCMR_MASK_128K (0x00000000)
387#define MCF5206E_DCMR_SC (0x00000010)
388#define MCF5206E_DCMR_SD (0x00000008)
389#define MCF5206E_DCMR_UC (0x00000004)
390#define MCF5206E_DCMR_UD (0x00000002)
393#define MCF5206E_DCCR(mbar,bank) MCF5206E_REG8(mbar, 0x57 + ((bank) * 12))
394#define MCF5206E_DCCR_PS (0xC0)
395#define MCF5206E_DCCR_PS_32 (0x00)
396#define MCF5206E_DCCR_PS_8 (0x40)
397#define MCF5206E_DCCR_PS_16 (0x80)
398#define MCF5206E_DCCR_BPS (0x30)
399#define MCF5206E_DCCR_BPS_512 (0x00)
400#define MCF5206E_DCCR_BPS_1K (0x10)
401#define MCF5206E_DCCR_BPS_2K (0x20)
402#define MCF5206E_DCCR_PM (0x0C)
403#define MCF5206E_DCCR_PM_NORMAL (0x00)
404#define MCF5206E_DCCR_PM_BURSTP (0x04)
405#define MCF5206E_DCCR_PM_FASTP (0x0C)
406#define MCF5206E_DCCR_WR (0x02)
407#define MCF5206E_DCCR_RD (0x01)
411#define MCF5206E_UART_CHANNELS (2)
413#define MCF5206E_UMR(mbar,n) MCF5206E_REG8(mbar,0x140 + (((n)-1) * 0x40))
414#define MCF5206E_UMR1_RXRTS (0x80)
416#define MCF5206E_UMR1_RXIRQ (0x40)
417#define MCF5206E_UMR1_ERR (0x20)
418#define MCF5206E_UMR1_PM (0x1C)
419#define MCF5206E_UMR1_PM_EVEN (0x00)
420#define MCF5206E_UMR1_PM_ODD (0x04)
421#define MCF5206E_UMR1_PM_FORCE_LOW (0x08)
422#define MCF5206E_UMR1_PM_FORCE_HIGH (0x0C)
423#define MCF5206E_UMR1_PM_NO_PARITY (0x10)
424#define MCF5206E_UMR1_PM_MULTI_DATA (0x18)
425#define MCF5206E_UMR1_PM_MULTI_ADDR (0x1C)
426#define MCF5206E_UMR1_BC (0x03)
427#define MCF5206E_UMR1_BC_5 (0x00)
428#define MCF5206E_UMR1_BC_6 (0x01)
429#define MCF5206E_UMR1_BC_7 (0x02)
430#define MCF5206E_UMR1_BC_8 (0x03)
432#define MCF5206E_UMR2_CM (0xC0)
433#define MCF5206E_UMR2_CM_NORMAL (0x00)
434#define MCF5206E_UMR2_CM_AUTO_ECHO (0x40)
435#define MCF5206E_UMR2_CM_LOCAL_LOOP (0x80)
436#define MCF5206E_UMR2_CM_REMOTE_LOOP (0xC0)
437#define MCF5206E_UMR2_TXRTS (0x20)
438#define MCF5206E_UMR2_TXCTS (0x10)
439#define MCF5206E_UMR2_SB (0x0F)
440#define MCF5206E_UMR2_SB_1 (0x07)
441#define MCF5206E_UMR2_SB_15 (0x08)
442#define MCF5206E_UMR2_SB_2 (0x0F)
443#define MCF5206E_UMR2_SB5_1 (0x00)
444#define MCF5206E_UMR2_SB5_15 (0x07)
445#define MCF5206E_UMR2_SB5_2 (0x0F)
448#define MCF5206E_USR(mbar,n) MCF5206E_REG8(mbar,0x144 + (((n)-1) * 0x40))
449#define MCF5206E_USR_RB (0x80)
450#define MCF5206E_USR_FE (0x40)
451#define MCF5206E_USR_PE (0x20)
452#define MCF5206E_USR_OE (0x10)
453#define MCF5206E_USR_TXEMP (0x08)
454#define MCF5206E_USR_TXRDY (0x04)
455#define MCF5206E_USR_FFULL (0x02)
456#define MCF5206E_USR_RXRDY (0x01)
459#define MCF5206E_UCSR(mbar,n) MCF5206E_REG8(mbar,0x144 + (((n)-1) * 0x40))
460#define MCF5206E_UCSR_RCS (0xF0)
461#define MCF5206E_UCSR_RCS_TIMER (0xD0)
462#define MCF5206E_UCSR_RCS_EXT16 (0xE0)
463#define MCF5206E_UCSR_RCS_EXT (0xF0)
464#define MCF5206E_UCSR_TCS (0x0F)
465#define MCF5206E_UCSR_TCS_TIMER (0x0D)
466#define MCF5206E_UCSR_TCS_EXT16 (0x0E)
467#define MCF5206E_UCSR_TCS_EXT (0x0F)
470#define MCF5206E_UCR(mbar,n) MCF5206E_REG8(mbar,0x148 + (((n)-1) * 0x40))
471#define MCF5206E_UCR_MISC (0x70)
472#define MCF5206E_UCR_MISC_NOP (0x00)
473#define MCF5206E_UCR_MISC_RESET_MR (0x10)
474#define MCF5206E_UCR_MISC_RESET_RX (0x20)
475#define MCF5206E_UCR_MISC_RESET_TX (0x30)
476#define MCF5206E_UCR_MISC_RESET_ERR (0x40)
477#define MCF5206E_UCR_MISC_RESET_BRK (0x50)
478#define MCF5206E_UCR_MISC_START_BRK (0x60)
479#define MCF5206E_UCR_MISC_STOP_BRK (0x70)
480#define MCF5206E_UCR_TC (0x0C)
481#define MCF5206E_UCR_TC_NOP (0x00)
482#define MCF5206E_UCR_TC_ENABLE (0x04)
483#define MCF5206E_UCR_TC_DISABLE (0x08)
484#define MCF5206E_UCR_RC (0x03)
485#define MCF5206E_UCR_RC_NOP (0x00)
486#define MCF5206E_UCR_RC_ENABLE (0x01)
487#define MCF5206E_UCR_RC_DISABLE (0x02)
490#define MCF5206E_URB(mbar,n) MCF5206E_REG8(mbar,0x14C + (((n)-1) * 0x40))
493#define MCF5206E_UTB(mbar,n) MCF5206E_REG8(mbar,0x14C + (((n)-1) * 0x40))
496#define MCF5206E_UIPCR(mbar,n) MCF5206E_REG8(mbar,0x150 + (((n)-1) * 0x40))
497#define MCF5206E_UIPCR_COS (0x10)
498#define MCF5206E_UIPCR_CTS (0x01)
501#define MCF5206E_UACR(mbar,n) MCF5206E_REG8(mbar,0x150 + (((n)-1) * 0x40))
502#define MCF5206E_UACR_IEC (0x01)
506#define MCF5206E_UISR(mbar,n) MCF5206E_REG8(mbar,0x154 + (((n)-1) * 0x40))
507#define MCF5206E_UISR_COS (0x80)
508#define MCF5206E_UISR_DB (0x04)
509#define MCF5206E_UISR_RXRDY (0x02)
510#define MCF5206E_UISR_TXRDY (0x01)
513#define MCF5206E_UIMR(mbar,n) MCF5206E_REG8(mbar,0x154 + (((n)-1) * 0x40))
514#define MCF5206E_UIMR_COS (0x80)
515#define MCF5206E_UIMR_DB (0x04)
516#define MCF5206E_UIMR_FFULL (0x02)
517#define MCF5206E_UIMR_TXRDY (0x01)
520#define MCF5206E_UBG1(mbar,n) MCF5206E_REG8(mbar,0x158 + (((n)-1) * 0x40))
523#define MCF5206E_UBG2(mbar,n) MCF5206E_REG8(mbar,0x15C + (((n)-1) * 0x40))
526#define MCF5206E_UIVR(mbar,n) MCF5206E_REG8(mbar,0x170 + (((n)-1) * 0x40))
529#define MCF5206E_UIP(mbar,n) MCF5206E_REG8(mbar,0x174 + (((n)-1) * 0x40))
530#define MCF5206E_UIP_CTS (0x01)
533#define MCF5206E_UOP1(mbar,n) MCF5206E_REG8(mbar,0x178 + (((n)-1) * 0x40))
536#define MCF5206E_UOP0(mbar,n) MCF5206E_REG8(mbar,0x17C + (((n)-1) * 0x40))
541#define MCF5206E_MADR(mbar) MCF5206E_REG8(mbar, 0x1E0)
544#define MCF5206E_MFDR(mbar) MCF5206E_REG8(mbar, 0x1E4)
547#define MCF5206E_MBCR(mbar) MCF5206E_REG8(mbar, 0x1E8)
548#define MCF5206E_MBCR_MEN (0x80)
549#define MCF5206E_MBCR_MIEN (0x40)
550#define MCF5206E_MBCR_MSTA (0x20)
551#define MCF5206E_MBCR_MTX (0x10)
552#define MCF5206E_MBCR_TXAK (0x08)
553#define MCF5206E_MBCR_RSTA (0x04)
556#define MCF5206E_MBSR(mbar) MCF5206E_REG8(mbar, 0x1EC)
557#define MCF5206E_MBSR_MCF (0x80)
558#define MCF5206E_MBSR_MAAS (0x40)
559#define MCF5206E_MBSR_MBB (0x20)
560#define MCF5206E_MBSR_MAL (0x10)
561#define MCF5206E_MBSR_SRW (0x04)
562#define MCF5206E_MBSR_MIF (0x02)
563#define MCF5206E_MBSR_RXAK (0x01)
566#define MCF5206E_MBDR(mbar) MCF5206E_REG8(mbar, 0x1F0)
571#define MCF5206E_TMR(mbar,n) MCF5206E_REG16(mbar, 0x100 + (((n)-1)*0x20))
572#define MCF5206E_TMR_PS (0xFF00)
573#define MCF5206E_TMR_PS_S (8)
574#define MCF5206E_TMR_CE (0x00C0)
576#define MCF5206E_TMR_CE_ANY (0x00C0)
577#define MCF5206E_TMR_CE_FALL (0x0080)
578#define MCF5206E_TMR_CE_RISE (0x0040)
579#define MCF5206E_TMR_CE_NONE (0x0000)
581#define MCF5206E_TMR_OM (0x0020)
582#define MCF5206E_TMR_ORI (0x0010)
584#define MCF5206E_TMR_FRR (0x0008)
585#define MCF5206E_TMR_ICLK (0x0006)
586#define MCF5206E_TMR_ICLK_TIN (0x0006)
587#define MCF5206E_TMR_ICLK_DIV16 (0x0004)
589#define MCF5206E_TMR_ICLK_MSCLK (0x0002)
590#define MCF5206E_TMR_ICLK_STOP (0x0000)
591#define MCF5206E_TMR_RST (0x0001)
594#define MCF5206E_TRR(mbar,n) MCF5206E_REG16(mbar, 0x104 + (((n)-1)*0x20))
597#define MCF5206E_TCR(mbar,n) MCF5206E_REG16(mbar, 0x108 + (((n)-1)*0x20))
600#define MCF5206E_TCN(mbar,n) MCF5206E_REG16(mbar, 0x10C + (((n)-1)*0x20))
603#define MCF5206E_TER(mbar,n) MCF5206E_REG8(mbar, 0x111 + (((n)-1)*0x20))
604#define MCF5206E_TER_REF (0x02)
605#define MCF5206E_TER_CAP (0x01)