u-boot/drivers
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
..
adc treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
ata Move most CONFIG_HAVE_BLOCK_DEVICE to Kconfig 2018-02-08 19:09:03 -05:00
bios_emulator printk: collect printk stuff into <linux/printk.h> with loglevel support 2017-10-04 10:31:17 -04:00
block SystemACE: Remove 2018-02-13 23:24:22 -05:00
bootcount bootcount: Migrate CONFIG_SYS_BOOTCOUNT_ADDR 2018-02-25 13:41:54 -05:00
clk clk: renesas: Add R8A77965 M3N entries 2018-03-05 10:59:37 +01:00
core libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
cpu dm: cpu: bmips: add BCM6318 support 2018-01-26 12:38:13 +01:00
crypto libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
ddr Revert "drivers/ddr/fsl: Dual-license DDR driver" 2018-02-14 21:34:05 -05:00
demo sandbox: Add 64-bit sandbox 2018-02-18 15:53:48 -07:00
dfu dfu: tftp: Fix arm64 build warnings 2018-02-21 20:28:15 +01:00
dma Convert CONFIG_APBH_DMA et al to Kconfig 2018-02-08 12:48:11 -05:00
firmware libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
fpga arm: zynq: fpga: Added Kconfig support for CONFIG_FPGA_ZYNQPL 2018-02-28 13:00:25 -05:00
gpio treewide: Fix gdsys mail addresses 2018-03-09 09:23:10 -05:00
i2c treewide: Fix gdsys mail addresses 2018-03-09 09:23:10 -05:00
input input: indicate that code page 437 is used 2018-03-05 10:06:05 -05:00
led dm: core: Update device_bind_driver_to_node() to use ofnode 2017-06-01 07:03:08 -06:00
mailbox dm: mailbox: Update uclass to support livetree 2017-06-01 07:03:15 -06:00
memory memory: Move TI_AEMIF config to KCONFIG 2016-04-18 17:11:43 -04:00
misc libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
mmc Merge git://git.denx.de/u-boot-sh 2018-03-05 20:24:17 -05:00
mtd libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
net Merge git://git.denx.de/u-boot-sh 2018-03-05 20:24:17 -05:00
nvme Move most CONFIG_HAVE_BLOCK_DEVICE to Kconfig 2018-02-08 19:09:03 -05:00
pch dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
pci libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
pcmcia Kconfig; Drop CONFIG_IDE_TI_CARDBUS and associated driver 2017-08-11 15:41:51 -04:00
phy libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
pinctrl Merge git://git.denx.de/u-boot-sh 2018-03-05 20:24:17 -05:00
power libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
pwm pwm: imx: Enable PWM support on i.MX53 2017-11-20 09:58:31 +01:00
qe libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
ram dm: ram: bmips: add BCM6318 support 2018-01-26 12:38:13 +01:00
remoteproc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
reset wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2018-01-24 12:03:43 +05:30
rtc rtc: adding RX8010SJ rtc driver 2018-02-04 12:00:58 +01:00
scsi Move most CONFIG_HAVE_BLOCK_DEVICE to Kconfig 2018-02-08 19:09:03 -05:00
serial bcm283x_pl011: Flush RX queue after setting baud rate 2018-03-09 12:31:04 -05:00
soc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
sound libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
spi spi: Migrate CONFIG_CF_SPI to Kconfig 2018-02-13 23:01:44 -05:00
spmi spmi: msm: display the PMIC Arb version (debug) 2018-01-15 11:35:37 -05:00
sysreset db410c: replace reset driver with psci 2018-01-15 16:29:03 -05:00
thermal thermal: ti-bandgap: Add support for temperature sensor 2017-11-21 08:03:38 -05:00
timer atcpit100: timer: Remove arch dependency. 2017-11-30 09:39:31 +08:00
tpm treewide: Fix gdsys mail addresses 2018-03-09 09:23:10 -05:00
usb Merge git://git.denx.de/u-boot-sh 2018-03-05 20:24:17 -05:00
video libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
watchdog wdt: Update uclass to make clear that the timeout is in ms 2017-08-13 15:17:34 -04:00
Kconfig bootcount: add support for bootcounter on EXT filesystem 2017-11-20 09:58:31 +01:00
Makefile spl: Kconfig: Rename SPL_USBETH_SUPPORT to SPL_USB_ETHER to match with the U-boot CONFIG 2018-03-05 10:06:05 -05:00