]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Fix initializing tty device
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 21:07:08 +0000 (23:07 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
commitb59b146810ba501b1a0b3d1169beadf38c56bf3b
tree16a55f5358017c65983c987b5ba953794138df49
parenta34b5da5508624c7574440aff61da873cc05d7bb
tools: kwboot: Fix initializing tty device

Retrieve current terminal settings via tcgetattr(), set to raw mode with
cfmakeraw(), enable receiver via CREAD and ignore modem control lines
via CLOCAL.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c