u-boot/drivers/serial
Alexander Graf c9bf43dd9d bcm283x_pl011: Flush RX queue after setting baud rate
After the UART was initialized, we may still have bogus data in the
RX queue if it was enabled with incorrect pin muxing before.

So let's flush the RX queue whenever we initialize baud rates.

This fixes a regression with the dynamic pinmuxing code when enable_uart=1
is not set in config.txt on Raspberry Pis that use pl011 for serial.

Fixes: caf2233b28 ("bcm283x: Add pinctrl driver")
Reported-by: Göran Lundberg <goran@lundberg.email>
Reported-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Tested-by: Tuomas Tynkkynen <tuomas@tuxera.com>
2018-03-09 12:31:04 -05:00
..
altera_jtag_uart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
altera_uart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
arm_dcc.c serial: dcc: Move driver to DM 2016-02-25 19:06:37 -05:00
atmel_usart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
atmel_usart.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Kconfig serial: Make full device search optional 2018-01-29 08:18:02 -05:00
lpc32xx_hsuart.c serial: lpc32xx hsuart: port driver to driver model 2016-01-13 21:05:22 -05:00
Makefile bcm2835_pl011_serial: Add BCM2835 specific serial driver 2018-01-28 12:27:36 -05:00
mcfuart.c m68k: add DM model serial driver 2016-05-17 09:54:43 -06:00
ns16550.c ns16550: Fix mem mapped endian check 2018-02-23 10:40:50 -05:00
sandbox.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
serial-uclass.c serial: Make full device search optional 2018-01-29 08:18:02 -05:00
serial.c powerpc: Remove 8260 remainders 2017-07-23 09:24:47 -04:00
serial_ar933x.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_arc.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_bcm283x_mu.c serial_bcm283x_mu: Flush RX queue after setting baud rate 2018-03-09 12:26:47 -05:00
serial_bcm283x_pl011.c bcm283x_pl011: Flush RX queue after setting baud rate 2018-03-09 12:31:04 -05:00
serial_bcm6345.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_efi.c debug_uart: Adjust the declaration of debug_uart_init() 2015-10-21 07:46:50 -06:00
serial_intel_mid.c serial: Add serial driver for Intel MID 2017-04-10 10:02:03 +08:00
serial_linflexuart.c serial: Introduce linflex uart support 2016-06-13 08:56:02 -04:00
serial_lpuart.c serial: lpuart: Proper device identification 2018-01-15 12:44:09 -08:00
serial_meson.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_mpc8xx.c powerpc, 8xx: move Serial driver to drivers/serial/ 2017-07-08 15:56:04 -04:00
serial_msm.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_mvebu_a3700.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_mxc.c serial: mxc: Add debug uart support 2017-07-12 09:44:22 +02:00
serial_ns16550.c serial: Remove serial_putc_raw_dev 2016-01-25 10:39:45 -05:00
serial_nulldev.c serial: nulldev: Implement "pending" function to fix tstc return "true" 2017-11-17 07:44:13 -05:00
serial_pic32.c wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2018-01-24 12:03:43 +05:30
serial_pl01x.c bcm283x_pl011: Flush RX queue after setting baud rate 2018-03-09 12:31:04 -05:00
serial_pl01x_internal.h bcm283x_pl011: Flush RX queue after setting baud rate 2018-03-09 12:31:04 -05:00
serial_pxa.c serial: pxa: integrate optional driver model handling 2016-11-23 13:53:20 +01:00
serial_rockchip.c rockchip: serial: Adapt rockchip of-platdata driver for rk3188 2017-03-16 16:03:44 -06:00
serial_s5p.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_sh.c serial: Replace CONFIG_ with CONFIG_IS_ENABLED 2018-02-16 16:43:10 +01:00
serial_sh.h serial: sh: Add support for R7S72100 (RZ/A1) 2018-01-24 23:27:21 +01:00
serial_sti_asc.c sti: fix STMicroelectronics copyright 2017-11-06 09:51:01 -05:00
serial_stm32.c serial: stm32: Rename serial_stm32x7.c to serial_stm32.c 2018-01-19 15:49:32 -05:00
serial_stm32.h serial: stm32: Rename serial_stm32x7.c to serial_stm32.c 2018-01-19 15:49:32 -05:00
serial_uniphier.c dm: Fix up inclusion of common.h 2017-06-01 07:03:03 -06:00
serial_xuartlite.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_zynq.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
usbtty.c usbtty: fix typos 2017-10-16 09:42:51 -04:00
usbtty.h omap: clean-up dead configs 2014-08-09 11:17:04 -04:00