Squashed commit of the following:

drivers/serial/uart_16550.c:  Add a configuration, analogous to the STM32 configuration option, to suppress the NuttX standard re-ordering for /dev/ttySN for special case of the 16550 UART.

    config/serial: UART 16550: Add CONFIG_SERIAL_UART_ARCH_MMIO option so the a memory mapped device doesn't need to provide uart_getreg() and uart_putreg() implementations.

    u16550_txempty() should check UART_LSR_TEMT to avoid some data left in the transmit FIFO
This commit is contained in:
Xiang Xiao
2018-08-26 11:17:33 -06:00
committed by Gregory Nutt
parent ea62b13fd0
commit 46e47c8dcf
5 changed files with 203 additions and 152 deletions
+3
View File
@@ -345,8 +345,11 @@ typedef uint32_t uart_addrwidth_t;
*
************************************************************************************/
#ifndef CONFIG_SERIAL_UART_ARCH_MMIO
uart_datawidth_t uart_getreg(uart_addrwidth_t base, unsigned int offset);
void uart_putreg(uart_addrwidth_t base, unsigned int offset, uart_datawidth_t value);
#endif
int uart_ioctl(struct file *filep, int cmd, unsigned long arg);
#endif /* CONFIG_16550_UART */