tools: kwboot: Force BootROM to flush input queue after boot pattern
authorPali Rohár <pali@kernel.org>
Tue, 25 Jan 2022 17:13:08 +0000 (18:13 +0100)
committerStefan Roese <sr@denx.de>
Mon, 31 Jan 2022 09:23:38 +0000 (10:23 +0100)
commit2bcd5b1be10158a3e79c952b56c84b9d89958c3a
tree061140080a8674282e3e18c245bd67deb8632f4f
parentc513fe47dca24de87a904ce7d71cfd8a390e1154
tools: kwboot: Force BootROM to flush input queue after boot pattern

Force the BootROM to flush its input queue after sending boot pattern.

This ensures that after function kwboot_bootmsg() finishes, BootROM is
able to start receiving xmodem packets without any specific delay or
setup.

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