提交 1acc5559 编写于 作者: R Ramesh Chandrasekaran 提交者: Albert ARIBAUD

snowball: Clear UART RX FIFO

Without usb-serial cable plugged at this stage, some
garbage is seen in UART RX FIFO, which blocks autoboot
progress. The fix makes sure to empty the RX FIFO,
before we wait for user input to interrupt autoboot.
Signed-off-by: NRamesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>
上级 f22651cf
......@@ -253,6 +253,10 @@ int board_late_init(void)
if ((raise_ab8500_gpio16() < 0))
printf("error: cant' raise GPIO16\n");
/* empty UART RX FIFO */
while (tstc())
(void) getc();
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册