mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-25 08:03:18 +00:00
tools: kwboot: Fix initialization of tty device
Explicitly disable 2 stop bits by clearing CSTOPB flag, disable modem control flow by clearing CRTSCTS flag and do not send hangup after closing device by clearing HUPCL flag. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
0a14341cf8
commit
2ecca3d0d7
1 changed files with 1 additions and 0 deletions
|
@ -657,6 +657,7 @@ kwboot_open_tty(const char *path, int baudrate)
|
|||
|
||||
cfmakeraw(&tio);
|
||||
tio.c_cflag |= CREAD | CLOCAL;
|
||||
tio.c_cflag &= ~(CSTOPB | HUPCL | CRTSCTS);
|
||||
tio.c_cc[VMIN] = 1;
|
||||
tio.c_cc[VTIME] = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue