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_SR_FLAG_RXNE (1 << 5)
31 #define USART_SR_FLAG_TXE (1 << 7)
33 #define USART_BRR_F_MASK 0xFF
34 #define USART_BRR_M_SHIFT 4
35 #define USART_BRR_M_MASK 0xFFF0