]> git.baikalelectronics.ru Git - uboot.git/commit
serial: serial-uclass: Add generic serial RX buffer support
authorStefan Roese <sr@denx.de>
Wed, 16 Aug 2017 15:37:16 +0000 (17:37 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 24 Aug 2017 03:00:47 +0000 (11:00 +0800)
commit2850bd100caeca11dedce915b847f43b8705fb60
tree725eb62e426a11719fdfaaaa080fe462ddeaea5e
parent90ca5bd4c0c617e34899b5502fa113b19365285f
serial: serial-uclass: Add generic serial RX buffer support

Pasting longer lines into the U-Boot console prompt sometimes leads to
characters missing. One problem here is the small 16-byte FIFO of the
legacy NS16550 UART, e.g. on x86 platforms.

This patch now introduces a Kconfig option to enable RX buffer support
for all DM based serial drivers. With this option enabled, I was
able paste really long lines into the U-Boot console, without any
characters missing.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/serial/Kconfig
drivers/serial/serial-uclass.c
include/serial.h