diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2018-05-17 15:50:43 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-27 01:19:17 +0300 |
commit | be1a6f775e7615f93b7d9ef3bdbcbb335dbfea6e (patch) | |
tree | cae53c5afbd610fad7ce5f814d5574a66badbf53 /drivers/serial/serial_stm32.h | |
parent | 215c8bed126313afd8c3b978c95b35ce7252c9c7 (diff) | |
download | u-boot-be1a6f775e7615f93b7d9ef3bdbcbb335dbfea6e.tar.xz |
serial: stm32: Fix bits defines name
Rename USART_ISR_FLAG_xxx bits to USART_ISR_xxx bits and
USART_ICR_OREF to USART_ICR_ORECF in order to match datasheets.
Sort defines by descendant order.
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/serial_stm32.h')
-rw-r--r-- | drivers/serial/serial_stm32.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/serial_stm32.h b/drivers/serial/serial_stm32.h index 8a1a24fda8..c478e35070 100644 --- a/drivers/serial/serial_stm32.h +++ b/drivers/serial/serial_stm32.h @@ -59,13 +59,13 @@ struct stm32x7_serial_platdata { #define USART_CR3_OVRDIS BIT(12) -#define USART_ISR_FLAG_ORE BIT(3) -#define USART_ISR_FLAG_RXNE BIT(5) -#define USART_ISR_FLAG_TXE BIT(7) +#define USART_ISR_TXE BIT(7) +#define USART_ISR_RXNE BIT(5) +#define USART_ISR_ORE BIT(3) #define USART_BRR_F_MASK GENMASK(7, 0) #define USART_BRR_M_SHIFT 4 #define USART_BRR_M_MASK GENMASK(15, 4) -#define USART_ICR_OREF BIT(3) +#define USART_ICR_ORECF BIT(3) #endif |