Home
last modified time | relevance | path

Searched hist:"30376 c573ab50d92709a421fee3d85d955907cbd" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/drivers/
H A Dhi16xx_uart.c30376c573ab50d92709a421fee3d85d955907cbd Tue Aug 09 07:54:55 UTC 2016 Jerome Forissier <jerome.forissier@linaro.org> drivers: hi16xx_uart: cleanup

- The FIFOs are automatically cleared when FIFO mode is enabled, so
don't use (UART_FCR_RX_FIFO_RST | UART_FCR_TX_FIFO_RST).
- hi16xx_uart_putc() waits for the TX FIFO to be empty before pushing
a new character. It is a good thing to avoid losing several characters
when the control is transferred to another piece of software which may
be resetting the UART (such as the Linux kernel). Therefore, remove the
commented out code which deals with "TX FIFO not full".

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: David Brown <david.brown@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>