Go to the documentation of this file.
15 #include <linux/serial_core.h>
28 #define MCFUART_UMR 0x00
29 #define MCFUART_USR 0x04
30 #define MCFUART_UCSR 0x04
31 #define MCFUART_UCR 0x08
32 #define MCFUART_URB 0x0c
33 #define MCFUART_UTB 0x0c
34 #define MCFUART_UIPCR 0x10
35 #define MCFUART_UACR 0x10
36 #define MCFUART_UISR 0x14
37 #define MCFUART_UIMR 0x14
38 #define MCFUART_UBG1 0x18
39 #define MCFUART_UBG2 0x1c
41 #define MCFUART_UTF 0x28
42 #define MCFUART_URF 0x2c
43 #define MCFUART_UFPD 0x30
45 #if defined(CONFIG_M5206) || defined(CONFIG_M5206e) || \
46 defined(CONFIG_M5249) || defined(CONFIG_M525x) || \
47 defined(CONFIG_M5307) || defined(CONFIG_M5407)
48 #define MCFUART_UIVR 0x30
50 #define MCFUART_UIPR 0x34
51 #define MCFUART_UOP1 0x38
52 #define MCFUART_UOP0 0x3c
58 #define MCFUART_MR1_RXRTS 0x80
59 #define MCFUART_MR1_RXIRQFULL 0x40
60 #define MCFUART_MR1_RXIRQRDY 0x00
61 #define MCFUART_MR1_RXERRBLOCK 0x20
62 #define MCFUART_MR1_RXERRCHAR 0x00
64 #define MCFUART_MR1_PARITYNONE 0x10
65 #define MCFUART_MR1_PARITYEVEN 0x00
66 #define MCFUART_MR1_PARITYODD 0x04
67 #define MCFUART_MR1_PARITYSPACE 0x08
68 #define MCFUART_MR1_PARITYMARK 0x0c
70 #define MCFUART_MR1_CS5 0x00
71 #define MCFUART_MR1_CS6 0x01
72 #define MCFUART_MR1_CS7 0x02
73 #define MCFUART_MR1_CS8 0x03
78 #define MCFUART_MR2_LOOPBACK 0x80
79 #define MCFUART_MR2_REMOTELOOP 0xc0
80 #define MCFUART_MR2_AUTOECHO 0x40
81 #define MCFUART_MR2_TXRTS 0x20
82 #define MCFUART_MR2_TXCTS 0x10
84 #define MCFUART_MR2_STOP1 0x07
85 #define MCFUART_MR2_STOP15 0x08
86 #define MCFUART_MR2_STOP2 0x0f
91 #define MCFUART_USR_RXBREAK 0x80
92 #define MCFUART_USR_RXFRAMING 0x40
93 #define MCFUART_USR_RXPARITY 0x20
94 #define MCFUART_USR_RXOVERRUN 0x10
95 #define MCFUART_USR_TXEMPTY 0x08
96 #define MCFUART_USR_TXREADY 0x04
97 #define MCFUART_USR_RXFULL 0x02
98 #define MCFUART_USR_RXREADY 0x01
100 #define MCFUART_USR_RXERR (MCFUART_USR_RXBREAK | MCFUART_USR_RXFRAMING | \
101 MCFUART_USR_RXPARITY | MCFUART_USR_RXOVERRUN)
106 #define MCFUART_UCSR_RXCLKTIMER 0xd0
107 #define MCFUART_UCSR_RXCLKEXT16 0xe0
108 #define MCFUART_UCSR_RXCLKEXT1 0xf0
110 #define MCFUART_UCSR_TXCLKTIMER 0x0d
111 #define MCFUART_UCSR_TXCLKEXT16 0x0e
112 #define MCFUART_UCSR_TXCLKEXT1 0x0f
117 #define MCFUART_UCR_CMDNULL 0x00
118 #define MCFUART_UCR_CMDRESETMRPTR 0x10
119 #define MCFUART_UCR_CMDRESETRX 0x20
120 #define MCFUART_UCR_CMDRESETTX 0x30
121 #define MCFUART_UCR_CMDRESETERR 0x40
122 #define MCFUART_UCR_CMDRESETBREAK 0x50
123 #define MCFUART_UCR_CMDBREAKSTART 0x60
124 #define MCFUART_UCR_CMDBREAKSTOP 0x70
126 #define MCFUART_UCR_TXNULL 0x00
127 #define MCFUART_UCR_TXENABLE 0x04
128 #define MCFUART_UCR_TXDISABLE 0x08
129 #define MCFUART_UCR_RXNULL 0x00
130 #define MCFUART_UCR_RXENABLE 0x01
131 #define MCFUART_UCR_RXDISABLE 0x02
136 #define MCFUART_UIPCR_CTSCOS 0x10
137 #define MCFUART_UIPCR_CTS 0x01
142 #define MCFUART_UIPR_CTS 0x01
148 #define MCFUART_UOP_RTS 0x01
153 #define MCFUART_UACR_IEC 0x01
159 #define MCFUART_UIR_COS 0x80
160 #define MCFUART_UIR_DELTABREAK 0x04
161 #define MCFUART_UIR_RXREADY 0x02
162 #define MCFUART_UIR_TXREADY 0x01
168 #define MCFUART_UTF_TXB 0x1f
169 #define MCFUART_UTF_FULL 0x20
170 #define MCFUART_UTF_TXS 0xc0
175 #define MCFUART_URF_RXB 0x1f
176 #define MCFUART_URF_FULL 0x20
177 #define MCFUART_URF_RXS 0xc0
180 #if defined(CONFIG_M54xx)
181 #define MCFUART_TXFIFOSIZE 512
182 #elif defined(CONFIG_M5272)
183 #define MCFUART_TXFIFOSIZE 25
185 #define MCFUART_TXFIFOSIZE 1