Go to the documentation of this file.
23 #ifndef ASM_ARM_HARDWARE_SERIAL_AMBA_H
24 #define ASM_ARM_HARDWARE_SERIAL_AMBA_H
26 #include <linux/types.h>
33 #define UART01x_DR 0x00
34 #define UART01x_RSR 0x04
35 #define UART01x_ECR 0x04
36 #define UART010_LCRH 0x08
37 #define ST_UART011_DMAWM 0x08
38 #define UART010_LCRM 0x0C
39 #define ST_UART011_TIMEOUT 0x0C
40 #define UART010_LCRL 0x10
41 #define UART010_CR 0x14
42 #define UART01x_FR 0x18
43 #define UART010_IIR 0x1C
44 #define UART010_ICR 0x1C
45 #define ST_UART011_LCRH_RX 0x1C
46 #define UART01x_ILPR 0x20
47 #define UART011_IBRD 0x24
48 #define UART011_FBRD 0x28
49 #define UART011_LCRH 0x2c
50 #define ST_UART011_LCRH_TX 0x2c
51 #define UART011_CR 0x30
52 #define UART011_IFLS 0x34
53 #define UART011_IMSC 0x38
54 #define UART011_RIS 0x3c
55 #define UART011_MIS 0x40
56 #define UART011_ICR 0x44
57 #define UART011_DMACR 0x48
58 #define ST_UART011_XFCR 0x50
59 #define ST_UART011_XON1 0x54
60 #define ST_UART011_XON2 0x58
61 #define ST_UART011_XOFF1 0x5C
62 #define ST_UART011_XOFF2 0x60
63 #define ST_UART011_ITCR 0x80
64 #define ST_UART011_ITIP 0x84
65 #define ST_UART011_ABCR 0x100
66 #define ST_UART011_ABIMSC 0x15C
68 #define UART011_DR_OE (1 << 11)
69 #define UART011_DR_BE (1 << 10)
70 #define UART011_DR_PE (1 << 9)
71 #define UART011_DR_FE (1 << 8)
73 #define UART01x_RSR_OE 0x08
74 #define UART01x_RSR_BE 0x04
75 #define UART01x_RSR_PE 0x02
76 #define UART01x_RSR_FE 0x01
78 #define UART011_FR_RI 0x100
79 #define UART011_FR_TXFE 0x080
80 #define UART011_FR_RXFF 0x040
81 #define UART01x_FR_TXFF 0x020
82 #define UART01x_FR_RXFE 0x010
83 #define UART01x_FR_BUSY 0x008
84 #define UART01x_FR_DCD 0x004
85 #define UART01x_FR_DSR 0x002
86 #define UART01x_FR_CTS 0x001
87 #define UART01x_FR_TMSK (UART01x_FR_TXFF + UART01x_FR_BUSY)
89 #define UART011_CR_CTSEN 0x8000
90 #define UART011_CR_RTSEN 0x4000
91 #define UART011_CR_OUT2 0x2000
92 #define UART011_CR_OUT1 0x1000
93 #define UART011_CR_RTS 0x0800
94 #define UART011_CR_DTR 0x0400
95 #define UART011_CR_RXE 0x0200
96 #define UART011_CR_TXE 0x0100
97 #define UART011_CR_LBE 0x0080
98 #define UART010_CR_RTIE 0x0040
99 #define UART010_CR_TIE 0x0020
100 #define UART010_CR_RIE 0x0010
101 #define UART010_CR_MSIE 0x0008
102 #define ST_UART011_CR_OVSFACT 0x0008
103 #define UART01x_CR_IIRLP 0x0004
104 #define UART01x_CR_SIREN 0x0002
105 #define UART01x_CR_UARTEN 0x0001
107 #define UART011_LCRH_SPS 0x80
108 #define UART01x_LCRH_WLEN_8 0x60
109 #define UART01x_LCRH_WLEN_7 0x40
110 #define UART01x_LCRH_WLEN_6 0x20
111 #define UART01x_LCRH_WLEN_5 0x00
112 #define UART01x_LCRH_FEN 0x10
113 #define UART01x_LCRH_STP2 0x08
114 #define UART01x_LCRH_EPS 0x04
115 #define UART01x_LCRH_PEN 0x02
116 #define UART01x_LCRH_BRK 0x01
118 #define ST_UART011_DMAWM_RX_1 (0 << 3)
119 #define ST_UART011_DMAWM_RX_2 (1 << 3)
120 #define ST_UART011_DMAWM_RX_4 (2 << 3)
121 #define ST_UART011_DMAWM_RX_8 (3 << 3)
122 #define ST_UART011_DMAWM_RX_16 (4 << 3)
123 #define ST_UART011_DMAWM_RX_32 (5 << 3)
124 #define ST_UART011_DMAWM_RX_48 (6 << 3)
125 #define ST_UART011_DMAWM_TX_1 0
126 #define ST_UART011_DMAWM_TX_2 1
127 #define ST_UART011_DMAWM_TX_4 2
128 #define ST_UART011_DMAWM_TX_8 3
129 #define ST_UART011_DMAWM_TX_16 4
130 #define ST_UART011_DMAWM_TX_32 5
131 #define ST_UART011_DMAWM_TX_48 6
133 #define UART010_IIR_RTIS 0x08
134 #define UART010_IIR_TIS 0x04
135 #define UART010_IIR_RIS 0x02
136 #define UART010_IIR_MIS 0x01
138 #define UART011_IFLS_RX1_8 (0 << 3)
139 #define UART011_IFLS_RX2_8 (1 << 3)
140 #define UART011_IFLS_RX4_8 (2 << 3)
141 #define UART011_IFLS_RX6_8 (3 << 3)
142 #define UART011_IFLS_RX7_8 (4 << 3)
143 #define UART011_IFLS_TX1_8 (0 << 0)
144 #define UART011_IFLS_TX2_8 (1 << 0)
145 #define UART011_IFLS_TX4_8 (2 << 0)
146 #define UART011_IFLS_TX6_8 (3 << 0)
147 #define UART011_IFLS_TX7_8 (4 << 0)
149 #define UART011_IFLS_RX_HALF (5 << 3)
150 #define UART011_IFLS_TX_HALF (5 << 0)
152 #define UART011_OEIM (1 << 10)
153 #define UART011_BEIM (1 << 9)
154 #define UART011_PEIM (1 << 8)
155 #define UART011_FEIM (1 << 7)
156 #define UART011_RTIM (1 << 6)
157 #define UART011_TXIM (1 << 5)
158 #define UART011_RXIM (1 << 4)
159 #define UART011_DSRMIM (1 << 3)
160 #define UART011_DCDMIM (1 << 2)
161 #define UART011_CTSMIM (1 << 1)
162 #define UART011_RIMIM (1 << 0)
164 #define UART011_OEIS (1 << 10)
165 #define UART011_BEIS (1 << 9)
166 #define UART011_PEIS (1 << 8)
167 #define UART011_FEIS (1 << 7)
168 #define UART011_RTIS (1 << 6)
169 #define UART011_TXIS (1 << 5)
170 #define UART011_RXIS (1 << 4)
171 #define UART011_DSRMIS (1 << 3)
172 #define UART011_DCDMIS (1 << 2)
173 #define UART011_CTSMIS (1 << 1)
174 #define UART011_RIMIS (1 << 0)
176 #define UART011_OEIC (1 << 10)
177 #define UART011_BEIC (1 << 9)
178 #define UART011_PEIC (1 << 8)
179 #define UART011_FEIC (1 << 7)
180 #define UART011_RTIC (1 << 6)
181 #define UART011_TXIC (1 << 5)
182 #define UART011_RXIC (1 << 4)
183 #define UART011_DSRMIC (1 << 3)
184 #define UART011_DCDMIC (1 << 2)
185 #define UART011_CTSMIC (1 << 1)
186 #define UART011_RIMIC (1 << 0)
188 #define UART011_DMAONERR (1 << 2)
189 #define UART011_TXDMAE (1 << 1)
190 #define UART011_RXDMAE (1 << 0)
192 #define UART01x_RSR_ANY (UART01x_RSR_OE|UART01x_RSR_BE|UART01x_RSR_PE|UART01x_RSR_FE)
193 #define UART01x_FR_MODEM_ANY (UART01x_FR_DCD|UART01x_FR_DSR|UART01x_FR_CTS)