3 * Vikas Manocha, <vikas.manocha@st.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef _SERIAL_STM32_X7_
9 #define _SERIAL_STM32_X7_
25 /* Information about a serial port */
26 struct stm32x7_serial_platdata {
27 struct stm32_usart *base; /* address of registers in physical memory */
28 unsigned long int clock_rate;
31 #define USART_CR1_OVER8 BIT(15)
32 #define USART_CR1_TE BIT(3)
33 #define USART_CR1_RE BIT(2)
34 #define USART_CR1_UE BIT(0)
36 #define USART_CR3_OVRDIS BIT(12)
38 #define USART_SR_FLAG_RXNE BIT(5)
39 #define USART_SR_FLAG_TXE BIT(7)
41 #define USART_BRR_F_MASK GENMASK(7, 0)
42 #define USART_BRR_M_SHIFT 4
43 #define USART_BRR_M_MASK GENMASK(15, 4)