]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: vf610: lpuart: disable FIFO on initializaton
authorStefan Agner <stefan@agner.ch>
Tue, 19 Aug 2014 15:54:28 +0000 (17:54 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 9 Sep 2014 14:54:16 +0000 (16:54 +0200)
commit89e69fd4a96bcab2469d3d084ba335c6b925771a
treee113dbf2c25453e6dd7fb3ded88813d40ff92277
parenta3db78d8870c8fb5bc0b1acd73bdc998d0d34200
arm: vf610: lpuart: disable FIFO on initializaton

UART does not use the UART FIFO, but we should also not rely that
the UART FIFO is diabled by default. For instance, when loading
U-Boot using the boot ROMs serial downloader protocol over UART,
FIFO is enabled at U-Boot start time.

This patch disables the RX and TX FIFO, sets back their thresholds
and flushes them.

Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/serial/serial_lpuart.c