Lines Matching refs:lcrh

91 static void Pl011ConfigDataBits(const struct UartDriverData *udd, uint32_t *lcrh)
93 *lcrh &= ~UART_LCR_H_8_BIT;
96 *lcrh |= UART_LCR_H_5_BIT;
99 *lcrh |= UART_LCR_H_6_BIT;
102 *lcrh |= UART_LCR_H_7_BIT;
106 *lcrh |= UART_LCR_H_8_BIT;
111 static void Pl011ConfigParity(const struct UartDriverData *udd, uint32_t *lcrh)
115 *lcrh |= UART_LCR_H_PEN;
116 *lcrh |= UART_LCR_H_EPS;
117 *lcrh |= UART_LCR_H_FIFO_EN;
120 *lcrh |= UART_LCR_H_PEN;
121 *lcrh &= ~UART_LCR_H_EPS;
122 *lcrh |= UART_LCR_H_FIFO_EN;
125 *lcrh |= UART_LCR_H_PEN;
126 *lcrh &= ~UART_LCR_H_EPS;
127 *lcrh |= UART_LCR_H_FIFO_EN;
128 *lcrh |= UART_LCR_H_SPS;
131 *lcrh |= UART_LCR_H_PEN;
132 *lcrh |= UART_LCR_H_EPS;
133 *lcrh |= UART_LCR_H_FIFO_EN;
134 *lcrh |= UART_LCR_H_SPS;
138 *lcrh &= ~UART_LCR_H_PEN;
139 *lcrh &= ~UART_LCR_H_SPS;
144 static void Pl011ConfigStopBits(const struct UartDriverData *udd, uint32_t *lcrh)
148 *lcrh |= UART_LCR_H_STP2;
152 *lcrh &= ~UART_LCR_H_STP2;
157 static void Pl011ConfigLCRH(const struct UartDriverData *udd, const struct UartPl011Port *port, uint32_t lcrh)
159 Pl011ConfigDataBits(udd, &lcrh);
160 lcrh &= ~UART_LCR_H_PEN;
161 lcrh &= ~UART_LCR_H_EPS;
162 lcrh &= ~UART_LCR_H_SPS;
163 Pl011ConfigParity(udd, &lcrh);
164 Pl011ConfigStopBits(udd, &lcrh);
166 lcrh |= UART_LCR_H_FIFO_EN;
168 OSAL_WRITEB(lcrh, port->physBase + UART_LCR_H);
174 uint32_t lcrh;
185 lcrh = OSAL_READW(port->physBase + UART_LCR_H);
199 lcrh &= ~UART_LCR_H_FIFO_EN;
200 OSAL_WRITEB(lcrh, port->physBase + UART_LCR_H);
209 Pl011ConfigLCRH(udd, port, lcrh);