summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-04-12 14:33:13 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-17 09:21:07 +0200
commit84fc6119d3aaa33344d154428ce37800a96a39b9 (patch)
treedb1ac8850baf99e9ef022e28deefe832deafd98b /drivers/serial
parent6377d27b951bfddc67bba16e83f79ae1d9fa8eb9 (diff)
downloadbarebox-84fc6119d3aaa33344d154428ce37800a96a39b9.tar.gz
console: Introduce console_drain()
Generalize high baud rate UART polling code found in lib/xmodem.c and expose it as a generic function in console API. The usecase for this -- besides X/Y-mode data transfers where the code originated -- is command/reply type of serial exchages at high baud rates (~1Mbaud) with payloads exceeding inernal UART FIFOs in size. Such interactions are not uncommon in serdev device and this patch is done in preparation for serdev support code that will follow. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial')
0 files changed, 0 insertions, 0 deletions