]> code.ossystems Code Review - bsp/u-boot.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)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 9 Sep 2014 15:30:37 +0000 (12:30 -0300)
commite45540bdcc135621670b762a045007e513161e43
treec98697cd4ce291a02875dab29072185f458f8727
parent11571b6cbbac8ab091412d39192ceadf00d37f2b
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