36#ifndef LIBBSP_ARM_SHARED_ARM_PL011_REGS_H
37#define LIBBSP_ARM_SHARED_ARM_PL011_REGS_H
43#define PL011_UARTDR_OE BSP_BIT32(11)
44#define PL011_UARTDR_BE BSP_BIT32(10)
45#define PL011_UARTDR_PE BSP_BIT32(9)
46#define PL011_UARTDR_FE BSP_BIT32(8)
47#define PL011_UARTDR_DATA(val) BSP_FLD32(val, 0, 7)
48#define PL011_UARTDR_DATA_GET(reg) BSP_FLD32GET(reg, 0, 7)
49#define PL011_UARTDR_DATA_SET(reg, val) BSP_FLD32SET(reg, val, 0, 7)
50 uint32_t uartrsr_uartecr;
51#define PL011_UARTRSR_UARTECR_OE BSP_BIT32(3)
52#define PL011_UARTRSR_UARTECR_BE BSP_BIT32(2)
53#define PL011_UARTRSR_UARTECR_PE BSP_BIT32(1)
54#define PL011_UARTRSR_UARTECR_FE BSP_BIT32(0)
55 uint32_t reserved_08[4];
57#define PL011_UARTFR_RI BSP_BIT32(8)
58#define PL011_UARTFR_TXFE BSP_BIT32(7)
59#define PL011_UARTFR_RXFF BSP_BIT32(6)
60#define PL011_UARTFR_TXFF BSP_BIT32(5)
61#define PL011_UARTFR_RXFE BSP_BIT32(4)
62#define PL011_UARTFR_BUSY BSP_BIT32(3)
63#define PL011_UARTFR_DCD BSP_BIT32(2)
64#define PL011_UARTFR_DSR BSP_BIT32(1)
65#define PL011_UARTFR_CTS BSP_BIT32(0)
68#define PL011_UARTILPR_ILPDVSR(val) BSP_FLD32(val, 0, 7)
69#define PL011_UARTILPR_ILPDVSR_GET(reg) BSP_FLD32GET(reg, 0, 7)
70#define PL011_UARTILPR_ILPDVSR_SET(reg, val) BSP_FLD32SET(reg, val, 0, 7)
72#define PL011_UARTIBRD_BAUD_DIVINT(val) BSP_FLD32(val, 0, 15)
73#define PL011_UARTIBRD_BAUD_DIVINT_GET(reg) BSP_FLD32GET(reg, 0, 15)
74#define PL011_UARTIBRD_BAUD_DIVINT_SET(reg, val) BSP_FLD32SET(reg, val, 0, 15)
76#define PL011_UARTFBRD_BAUD_DIVFRAC(val) BSP_FLD32(val, 0, 5)
77#define PL011_UARTFBRD_BAUD_DIVFRAC_GET(reg) BSP_FLD32GET(reg, 0, 5)
78#define PL011_UARTFBRD_BAUD_DIVFRAC_SET(reg, val) BSP_FLD32SET(reg, val, 0, 5)
80#define PL011_UARTLCR_H_SPS BSP_BIT32(7)
81#define PL011_UARTLCR_H_WLEN(val) BSP_FLD32(val, 5, 6)
82#define PL011_UARTLCR_H_WLEN_GET(reg) BSP_FLD32GET(reg, 5, 6)
83#define PL011_UARTLCR_H_WLEN_SET(reg, val) BSP_FLD32SET(reg, val, 5, 6)
84#define PL011_UARTLCR_H_WLEN_5 0x00U
85#define PL011_UARTLCR_H_WLEN_6 0x01U
86#define PL011_UARTLCR_H_WLEN_7 0x02U
87#define PL011_UARTLCR_H_WLEN_8 0x03U
88#define PL011_UARTLCR_H_FEN BSP_BIT32(4)
89#define PL011_UARTLCR_H_STP2 BSP_BIT32(3)
90#define PL011_UARTLCR_H_EPS BSP_BIT32(2)
91#define PL011_UARTLCR_H_PEN BSP_BIT32(1)
92#define PL011_UARTLCR_H_BRK BSP_BIT32(0)
94#define PL011_UARTCR_CTSEN BSP_BIT32(15)
95#define PL011_UARTCR_RTSEN BSP_BIT32(14)
96#define PL011_UARTCR_OUT2 BSP_BIT32(13)
97#define PL011_UARTCR_OUT1 BSP_BIT32(12)
98#define PL011_UARTCR_RTS BSP_BIT32(11)
99#define PL011_UARTCR_DTR BSP_BIT32(10)
100#define PL011_UARTCR_RXE BSP_BIT32(9)
101#define PL011_UARTCR_TXE BSP_BIT32(8)
102#define PL011_UARTCR_LBE BSP_BIT32(7)
103#define PL011_UARTCR_SIRLP BSP_BIT32(3)
104#define PL011_UARTCR_SIREN BSP_BIT32(2)
105#define PL011_UARTCR_UARTEN BSP_BIT32(1)
107#define PL011_UARTIFLS_RXIFLSEL(val) BSP_FLD32(val, 3, 5)
108#define PL011_UARTIFLS_RXIFLSEL_GET(reg) BSP_FLD32GET(reg, 3, 5)
109#define PL011_UARTIFLS_RXIFLSEL_SET(reg, val) BSP_FLD32SET(reg, val, 3, 5)
110#define PL011_UARTIFLS_TXIFLSEL(val) BSP_FLD32(val, 0, 2)
111#define PL011_UARTIFLS_TXIFLSEL_GET(reg) BSP_FLD32GET(reg, 0, 2)
112#define PL011_UARTIFLS_TXIFLSEL_SET(reg, val) BSP_FLD32SET(reg, val, 0, 2)
117#define PL011_UARTI_OEI BSP_BIT32(10)
118#define PL011_UARTI_BEI BSP_BIT32(9)
119#define PL011_UARTI_PEI BSP_BIT32(8)
120#define PL011_UARTI_FEI BSP_BIT32(7)
121#define PL011_UARTI_RTI BSP_BIT32(6)
122#define PL011_UARTI_TXI BSP_BIT32(5)
123#define PL011_UARTI_RXI BSP_BIT32(4)
124#define PL011_UARTI_DSRMI BSP_BIT32(3)
125#define PL011_UARTI_DCDMI BSP_BIT32(2)
126#define PL011_UARTI_CTSMI BSP_BIT32(1)
127#define PL011_UARTI_RIMI BSP_BIT32(0)
129#define PL011_UARTDMACR_DMAONERR BSP_BIT32(2)
130#define PL011_UARTDMACR_TXDMAE BSP_BIT32(1)
131#define PL011_UARTDMACR_RXDMAE BSP_BIT32(0)
132 uint32_t reserved_4c[997];
133 uint32_t uartperiphid0;
134 uint32_t uartperiphid1;
135 uint32_t uartperiphid2;
136 uint32_t uartperiphid3;
137 uint32_t uartpcellid0;
138 uint32_t uartpcellid1;
139 uint32_t uartpcellid2;
140 uint32_t uartpcellid3;
This header file provides utility macros for BSPs.
Definition: arm-pl011-regs.h:41