Go to the documentation of this file.
12 #ifndef _ASM_SERIAL_REGS_H
13 #define _ASM_SERIAL_REGS_H
21 #define SC0CTR __SYSREG(0xd4002000, u16)
22 #define SC01CTR_CK 0x0007
23 #define SC01CTR_CK_IOCLK_8 0x0001
24 #define SC01CTR_CK_IOCLK_32 0x0002
25 #define SC01CTR_CK_EXTERN_8 0x0006
26 #define SC01CTR_CK_EXTERN 0x0007
27 #if defined(CONFIG_AM33_2) || defined(CONFIG_AM33_3)
28 #define SC0CTR_CK_TM8UFLOW_8 0x0000
29 #define SC0CTR_CK_TM2UFLOW_2 0x0003
30 #define SC0CTR_CK_TM0UFLOW_8 0x0004
31 #define SC0CTR_CK_TM2UFLOW_8 0x0005
32 #define SC1CTR_CK_TM9UFLOW_8 0x0000
33 #define SC1CTR_CK_TM3UFLOW_2 0x0003
34 #define SC1CTR_CK_TM1UFLOW_8 0x0004
35 #define SC1CTR_CK_TM3UFLOW_8 0x0005
37 #define SC0CTR_CK_TM8UFLOW_8 0x0000
38 #define SC0CTR_CK_TM0UFLOW_8 0x0004
39 #define SC0CTR_CK_TM2UFLOW_8 0x0005
40 #define SC1CTR_CK_TM12UFLOW_8 0x0000
42 #define SC01CTR_STB 0x0008
43 #define SC01CTR_STB_1BIT 0x0000
44 #define SC01CTR_STB_2BIT 0x0008
45 #define SC01CTR_PB 0x0070
46 #define SC01CTR_PB_NONE 0x0000
47 #define SC01CTR_PB_FIXED0 0x0040
48 #define SC01CTR_PB_FIXED1 0x0050
49 #define SC01CTR_PB_EVEN 0x0060
50 #define SC01CTR_PB_ODD 0x0070
51 #define SC01CTR_CLN 0x0080
52 #define SC01CTR_CLN_7BIT 0x0000
53 #define SC01CTR_CLN_8BIT 0x0080
54 #define SC01CTR_TOE 0x0100
55 #define SC01CTR_OD 0x0200
56 #define SC01CTR_OD_LSBFIRST 0x0000
57 #define SC01CTR_OD_MSBFIRST 0x0200
58 #define SC01CTR_MD 0x0c00
59 #define SC01CTR_MD_STST_SYNC 0x0000
60 #define SC01CTR_MD_CLOCK_SYNC1 0x0400
61 #define SC01CTR_MD_I2C 0x0800
62 #define SC01CTR_MD_CLOCK_SYNC2 0x0c00
63 #define SC01CTR_IIC 0x1000
64 #define SC01CTR_BKE 0x2000
65 #define SC01CTR_RXE 0x4000
66 #define SC01CTR_TXE 0x8000
68 #define SC0ICR __SYSREG(0xd4002004, u8)
69 #define SC01ICR_DMD 0x80
70 #define SC01ICR_TD 0x20
71 #define SC01ICR_TI 0x10
72 #define SC01ICR_RES 0x04
73 #define SC01ICR_RI 0x01
75 #define SC0TXB __SYSREG(0xd4002008, u8)
76 #define SC0RXB __SYSREG(0xd4002009, u8)
78 #define SC0STR __SYSREG(0xd400200c, u16)
79 #define SC01STR_OEF 0x0001
80 #define SC01STR_PEF 0x0002
81 #define SC01STR_FEF 0x0004
82 #define SC01STR_RBF 0x0010
83 #define SC01STR_TBF 0x0020
84 #define SC01STR_RXF 0x0040
85 #define SC01STR_TXF 0x0080
86 #define SC01STR_STF 0x0100
87 #define SC01STR_SPF 0x0200
92 #define SC0RXICR GxICR(SC0RXIRQ)
93 #define SC0TXICR GxICR(SC0TXIRQ)
96 #define SC1CTR __SYSREG(0xd4002010, u16)
97 #define SC1ICR __SYSREG(0xd4002014, u8)
98 #define SC1TXB __SYSREG(0xd4002018, u8)
99 #define SC1RXB __SYSREG(0xd4002019, u8)
100 #define SC1STR __SYSREG(0xd400201c, u16)
105 #define SC1RXICR GxICR(SC1RXIRQ)
106 #define SC1TXICR GxICR(SC1TXIRQ)
109 #define SC2CTR __SYSREG(0xd4002020, u16)
111 #define SC2CTR_CK 0x0003
112 #define SC2CTR_CK_TM10UFLOW 0x0000
113 #define SC2CTR_CK_TM2UFLOW 0x0001
114 #define SC2CTR_CK_EXTERN 0x0002
115 #define SC2CTR_CK_TM3UFLOW 0x0003
117 #define SC2CTR_CK 0x0007
118 #define SC2CTR_CK_TM9UFLOW_8 0x0000
119 #define SC2CTR_CK_IOCLK_8 0x0001
120 #define SC2CTR_CK_IOCLK_32 0x0002
121 #define SC2CTR_CK_TM3UFLOW_2 0x0003
122 #define SC2CTR_CK_TM1UFLOW_8 0x0004
123 #define SC2CTR_CK_TM3UFLOW_8 0x0005
124 #define SC2CTR_CK_EXTERN_8 0x0006
125 #define SC2CTR_CK_EXTERN 0x0007
127 #define SC2CTR_STB 0x0008
128 #define SC2CTR_STB_1BIT 0x0000
129 #define SC2CTR_STB_2BIT 0x0008
130 #define SC2CTR_PB 0x0070
131 #define SC2CTR_PB_NONE 0x0000
132 #define SC2CTR_PB_FIXED0 0x0040
133 #define SC2CTR_PB_FIXED1 0x0050
134 #define SC2CTR_PB_EVEN 0x0060
135 #define SC2CTR_PB_ODD 0x0070
136 #define SC2CTR_CLN 0x0080
137 #define SC2CTR_CLN_7BIT 0x0000
138 #define SC2CTR_CLN_8BIT 0x0080
139 #define SC2CTR_TWE 0x0100
140 #define SC2CTR_OD 0x0200
141 #define SC2CTR_OD_LSBFIRST 0x0000
142 #define SC2CTR_OD_MSBFIRST 0x0200
143 #define SC2CTR_TWS 0x1000
144 #define SC2CTR_TWS_XCTS_HIGH 0x0000
145 #define SC2CTR_TWS_XCTS_LOW 0x1000
146 #define SC2CTR_BKE 0x2000
147 #define SC2CTR_RXE 0x4000
148 #define SC2CTR_TXE 0x8000
150 #define SC2ICR __SYSREG(0xd4002024, u8)
151 #define SC2ICR_TD 0x20
152 #define SC2ICR_TI 0x10
153 #define SC2ICR_RES 0x04
154 #define SC2ICR_RI 0x01
156 #define SC2TXB __SYSREG(0xd4002028, u8)
157 #define SC2RXB __SYSREG(0xd4002029, u8)
160 #define SC2STR __SYSREG(0xd400202c, u8)
162 #define SC2STR __SYSREG(0xd400202c, u16)
164 #define SC2STR_OEF 0x0001
165 #define SC2STR_PEF 0x0002
166 #define SC2STR_FEF 0x0004
167 #define SC2STR_CTS 0x0008
168 #define SC2STR_RBF 0x0010
169 #define SC2STR_TBF 0x0020
170 #define SC2STR_RXF 0x0040
171 #define SC2STR_TXF 0x0080
174 #define SC2TIM __SYSREG(0xd400202d, u8)
185 #define SC2RXICR GxICR(SC2RXIRQ)
186 #define SC2TXICR GxICR(SC2TXIRQ)