19 #ifndef _SUART_PRU_REGS_H_
20 #define _SUART_PRU_REGS_H_
39 #define PRU_DATARAM_BASE_ADDR (0x01C30000u)
41 #define PRU0_DATARAM0_OFFSET (0x0000u)
44 #define PRU0_DATARAM1_OFFSET (0x2000u)
47 #define PRU_SUART_DATARAM0_BASE (PRU_DATARAM_BASE_ADDR + PRU0_DATARAM0_OFFSET)
50 #define PRU_SUART_DATARAM1_BASE (PRU_DATARAM_BASE_ADDR + PRU0_DATARAM0_OFFSET)
53 #define PRU_SUART_PRU0_CH0_OFFSET (0x0000)
55 #define PRU_SUART_PRU0_CH1_OFFSET (0x0010)
57 #define PRU_SUART_PRU0_CH2_OFFSET (0x0020)
59 #define PRU_SUART_PRU0_CH3_OFFSET (0x0030)
61 #define PRU_SUART_PRU0_CH4_OFFSET (0x0040)
63 #define PRU_SUART_PRU0_CH5_OFFSET (0x0050)
65 #define PRU_SUART_PRU0_CH6_OFFSET (0x0060)
67 #define PRU_SUART_PRU0_CH7_OFFSET (0x0070)
70 #define PRU_SUART_PRU0_IMR_OFFSET (0x0080)
73 #define PRU_SUART_PRU0_ISR_OFFSET (0x0082)
76 #define PRU_SUART_PRU0_ID_ADDR (0x0084)
79 #define PRU_SUART_PRU0_RX_TX_MODE (0x0085)
81 #define PRU_SUART_PRU0_DELAY_OFFSET (0x0086)
82 #define PRU_SUART_PRU0_IDLE_TIMEOUT_OFFSET (0x0088)
85 #define PRU_SUART_PRU1_CH0_OFFSET (0x2000)
88 #define PRU_SUART_PRU1_CH1_OFFSET (0x2010)
91 #define PRU_SUART_PRU1_CH2_OFFSET (0x2020)
94 #define PRU_SUART_PRU1_CH3_OFFSET (0x2030)
97 #define PRU_SUART_PRU1_CH4_OFFSET (0x2040)
100 #define PRU_SUART_PRU1_CH5_OFFSET (0x2050)
103 #define PRU_SUART_PRU1_CH6_OFFSET (0x2060)
106 #define PRU_SUART_PRU1_CH7_OFFSET (0x2070)
109 #define PRU_SUART_PRU1_IMR_OFFSET (0x2080)
112 #define PRU_SUART_PRU1_ISR_OFFSET (0x2082)
115 #define PRU_SUART_PRU1_ID_ADDR (0x2084)
118 #define PRU_SUART_PRU1_RX_TX_MODE (0x2085)
120 #define PRU_SUART_PRU1_DELAY_OFFSET (0x2086)
122 #define PRU_SUART_PRU1_IDLE_TIMEOUT_OFFSET (0x2088)
126 #define PRU_SUART_CH_CTRL_MODE_SHIFT 0x0000
127 #define PRU_SUART_CH_CTRL_MODE_MASK 0x0003
128 #define PRU_SUART_CH_CTRL_TX_MODE 0x0001
129 #define PRU_SUART_CH_CTRL_RX_MODE 0x0002
132 #define PRU_SUART_CH_CTRL_SREQ_SHIFT 0x0002
133 #define PRU_SUART_CH_CTRL_SREQ_MASK 0x0004
134 #define PRU_SUART_CH_CTRL_SREQ 0x0001
137 #define PRU_SUART_CH_CTRL_MCASP_SHIFT 0x0003
138 #define PRU_SUART_CH_CTRL_MCASP_MASK 0x0018
140 #define PRU_SUART_CH_CTRL_SR_SHIFT 0x0008
141 #define PRU_SUART_CH_CTRL_SR_MASK 0x0F00
146 #define PRU_SUART_CH_CONFIG1_DIVISOR_SHIFT 0x0000
147 #define PRU_SUART_CH_CONFIG1_DIVISOR_MASK 0x03FF
149 #define PRU_SUART_CH_CONFIG1_OVS_SHIFT 0x000A
150 #define PRU_SUART_CH_CONFIG1_OVS_MASK 0x0C00
154 #define PRU_SUART_CH_CONFIG2_BITPERCHAR_SHIFT 0x0000
155 #define PRU_SUART_CH_CONFIG2_BITPERCHAR_MASK 0x000F
158 #define PRU_SUART_CH_CONFIG2_DATALEN_SHIFT 0x0008
159 #define PRU_SUART_CH_CONFIG2_DATALEN_MASK 0x0F00
162 #define PRU_SUART_CH_STATUS_EN_BIT_MASK 0x8000
165 #define PRU_SUART_CH_CTRL_OFFSET 0x00
166 #define PRU_SUART_CH_CONFIG1_OFFSET 0x02
167 #define PRU_SUART_CH_CONFIG2_OFFSET 0x04
168 #define PRU_SUART_CH_TXRXSTATUS_OFFSET 0x06
169 #define PRU_SUART_CH_TXRXDATA_OFFSET 0x08
170 #define PRU_SUART_CH_BYTESDONECNTR_OFFSET 0x0C
173 #define PRU_SUART0_TX_EVT 34
174 #define PRU_SUART0_RX_EVT 35
175 #define PRU_SUART1_TX_EVT 36
176 #define PRU_SUART1_RX_EVT 37
177 #define PRU_SUART2_TX_EVT 38
178 #define PRU_SUART2_RX_EVT 39
179 #define PRU_SUART3_TX_EVT 40
180 #define PRU_SUART3_RX_EVT 41
181 #define PRU_SUART4_TX_EVT 42
182 #define PRU_SUART4_RX_EVT 43
183 #define PRU_SUART5_TX_EVT 44
184 #define PRU_SUART5_RX_EVT 45
185 #define PRU_SUART6_TX_EVT 46
186 #define PRU_SUART6_RX_EVT 47
187 #define PRU_SUART7_TX_EVT 48
188 #define PRU_SUART7_RX_EVT 49
190 #define PRU_SUART0_TX_EVT_BIT BIT(2)
191 #define PRU_SUART0_RX_EVT_BIT BIT(3)
192 #define PRU_SUART1_TX_EVT_BIT BIT(4)
193 #define PRU_SUART1_RX_EVT_BIT BIT(5)
194 #define PRU_SUART2_TX_EVT_BIT BIT(6)
195 #define PRU_SUART2_RX_EVT_BIT BIT(7)
196 #define PRU_SUART3_TX_EVT_BIT BIT(8)
197 #define PRU_SUART3_RX_EVT_BIT BIT(9)
198 #define PRU_SUART4_TX_EVT_BIT BIT(10)
199 #define PRU_SUART4_RX_EVT_BIT BIT(11)
200 #define PRU_SUART5_TX_EVT_BIT BIT(12)
201 #define PRU_SUART5_RX_EVT_BIT BIT(13)
202 #define PRU_SUART6_TX_EVT_BIT BIT(14)
203 #define PRU_SUART6_RX_EVT_BIT BIT(15)
204 #define PRU_SUART7_TX_EVT_BIT BIT(16)
205 #define PRU_SUART7_RX_EVT_BIT BIT(17)
unsigned short CHn_Config1
unsigned int CHn_TXRXData
One line description of the structure.
unsigned short CHn_TXRXStatus
unsigned short CHn_Config2