Lines Matching defs:lcrh

92 static void Pl011ConfigDataBits(const struct UartDriverData *udd, uint32_t *lcrh)
94 *lcrh &= ~UART_LCR_H_8_BIT;
97 *lcrh |= UART_LCR_H_5_BIT;
100 *lcrh |= UART_LCR_H_6_BIT;
103 *lcrh |= UART_LCR_H_7_BIT;
107 *lcrh |= UART_LCR_H_8_BIT;
112 static void Pl011ConfigParity(const struct UartDriverData *udd, uint32_t *lcrh)
116 *lcrh |= UART_LCR_H_PEN;
117 *lcrh |= UART_LCR_H_EPS;
118 *lcrh |= UART_LCR_H_FIFO_EN;
121 *lcrh |= UART_LCR_H_PEN;
122 *lcrh &= ~UART_LCR_H_EPS;
123 *lcrh |= UART_LCR_H_FIFO_EN;
126 *lcrh |= UART_LCR_H_PEN;
127 *lcrh &= ~UART_LCR_H_EPS;
128 *lcrh |= UART_LCR_H_FIFO_EN;
129 *lcrh |= UART_LCR_H_SPS;
132 *lcrh |= UART_LCR_H_PEN;
133 *lcrh |= UART_LCR_H_EPS;
134 *lcrh |= UART_LCR_H_FIFO_EN;
135 *lcrh |= UART_LCR_H_SPS;
139 *lcrh &= ~UART_LCR_H_PEN;
140 *lcrh &= ~UART_LCR_H_SPS;
145 static void Pl011ConfigStopBits(const struct UartDriverData *udd, uint32_t *lcrh)
149 *lcrh |= UART_LCR_H_STP2;
153 *lcrh &= ~UART_LCR_H_STP2;
158 static void Pl011ConfigLCRH(const struct UartDriverData *udd, const struct UartPl011Port *port, uint32_t lcrh)
160 Pl011ConfigDataBits(udd, &lcrh);
161 lcrh &= ~UART_LCR_H_PEN;
162 lcrh &= ~UART_LCR_H_EPS;
163 lcrh &= ~UART_LCR_H_SPS;
164 Pl011ConfigParity(udd, &lcrh);
165 Pl011ConfigStopBits(udd, &lcrh);
167 lcrh |= UART_LCR_H_FIFO_EN;
169 OSAL_WRITEB(lcrh, port->physBase + UART_LCR_H);
175 uint32_t lcrh;
186 lcrh = OSAL_READW(port->physBase + UART_LCR_H);
200 lcrh &= ~UART_LCR_H_FIFO_EN;
201 OSAL_WRITEB(lcrh, port->physBase + UART_LCR_H);
210 Pl011ConfigLCRH(udd, port, lcrh);