aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/st-ericsson/snowball/snowball.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/st-ericsson/snowball/snowball.c b/board/st-ericsson/snowball/snowball.c
index 8c743c0ad..f56a8ac86 100644
--- a/board/st-ericsson/snowball/snowball.c
+++ b/board/st-ericsson/snowball/snowball.c
@@ -253,6 +253,14 @@ int board_late_init(void)
if ((raise_ab8500_gpio16() < 0))
printf("error: cant' raise GPIO16\n");
+ /* Without usb-serial cable plugged at this
+ * stage, some garbage is seen in RX FIFO
+ * So, make sure we empty UART RX FIFO before
+ * we proceed further
+ */
+ while (tstc())
+ (void) getc();
+
return 0;
}