diff options
author | Tom Rini <trini@konsulko.com> | 2019-08-27 13:19:47 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-27 13:19:47 -0400 |
commit | 8c56ea5c1e033f16993e5427300399ef848234bb (patch) | |
tree | 9c92d106a8cadca5b522e503e75c1ba936175f2d /drivers/serial/serial_stm32.c | |
parent | e4b8dd9b34021241cd05d5cc9d24b4ae34657830 (diff) | |
parent | 06d1dd2cdc3c69122e58b38fd11b2a4e524a37e2 (diff) |
Merge branch 'u-boot-stm32_20190827' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm
- Fixes and update related to STM32MP1 platforms
Diffstat (limited to 'drivers/serial/serial_stm32.c')
-rw-r--r-- | drivers/serial/serial_stm32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c index 3ab536a52ac..00a8e7249b5 100644 --- a/drivers/serial/serial_stm32.c +++ b/drivers/serial/serial_stm32.c @@ -106,10 +106,11 @@ static int stm32_serial_getc(struct udevice *dev) if ((isr & USART_ISR_RXNE) == 0) return -EAGAIN; - if (isr & (USART_ISR_PE | USART_ISR_ORE)) { + if (isr & (USART_ISR_PE | USART_ISR_ORE | USART_ISR_FE)) { if (!stm32f4) setbits_le32(base + ICR_OFFSET, - USART_ICR_PCECF | USART_ICR_ORECF); + USART_ICR_PCECF | USART_ICR_ORECF | + USART_ICR_FECF); else readl(base + RDR_OFFSET(stm32f4)); return -EIO; |