From 47924a297eabc00c99896048a249f311d487cfe2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Tue, 12 Feb 2019 14:43:47 +0200 Subject: [PATCH] sifive/hifive-unleashed: Drop unneeded console_tx_flush() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Every printk() call already does console_tx_flush() so there should not be anything in transmit buffer when we return from console_init(). Change-Id: Iff2927c02d2c8031907620a056782bb014f20162 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/31369 Reviewed-by: Xiang Wang Reviewed-by: Philipp Hug Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/mainboard/sifive/hifive-unleashed/romstage.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mainboard/sifive/hifive-unleashed/romstage.c b/src/mainboard/sifive/hifive-unleashed/romstage.c index 8277141cab..0611a6d959 100644 --- a/src/mainboard/sifive/hifive-unleashed/romstage.c +++ b/src/mainboard/sifive/hifive-unleashed/romstage.c @@ -27,12 +27,6 @@ void main(void) /* TODO: Follow Section 6.3 (FSBL) of the FU540 manual */ - /* - * Flush console before changing clock/UART divisor to prevent garbage - * being printed. - */ - console_tx_flush(); - clock_init(); // re-initialize UART -- 2.11.4.GIT