3 * Vikas Manocha, <vikas.manocha@st.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef _SERIAL_STM32_X7_
9 #define _SERIAL_STM32_X7_
26 #define USART_CR1_OVER8 (1 << 15)
27 #define USART_CR1_TE (1 << 3)
28 #define USART_CR1_RE (1 << 2)
29 #define USART_CR1_UE (1 << 0)
31 #define USART_CR3_OVRDIS (1 << 12)
33 #define USART_SR_FLAG_RXNE (1 << 5)
34 #define USART_SR_FLAG_TXE (1 << 7)
36 #define USART_BRR_F_MASK 0xFF
37 #define USART_BRR_M_SHIFT 4
38 #define USART_BRR_M_MASK 0xFFF0