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_RE (1 << 2)
27 #define USART_CR1_TE (1 << 3)
28 #define USART_CR1_UE (1 << 0)
30 #define USART_CR3_OVRDIS (1 << 12)
32 #define USART_SR_FLAG_RXNE (1 << 5)
33 #define USART_SR_FLAG_TXE (1 << 7)
35 #define USART_BRR_F_MASK 0xFF
36 #define USART_BRR_M_SHIFT 4
37 #define USART_BRR_M_MASK 0xFFF0