summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2017-01-11 14:35:01 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-01-11 22:03:20 +0100
commit22e68cbd1fa28e0a9df45cfbfb43f0c606370f32 (patch)
treeda94b555e39cc2accc7d5c5e31aa244266188fb8
parent8a7d5e525c8373794ad8dd65164436630b04d41c (diff)
When booting we see: DRAM: 256 MiB <strange characters>FSL_SDHC: 0, FSL_SDHC: 1 auto-detected panel vga-rgb The should be: DRAM: 256 MiB PMIC: device id: 0x10, revision id: 0x11, programmed MMC: FSL_SDHC: 0, FSL_SDHC: 1 auto-detected panel vga-rgb This seems to be caused by the call to initr_serial which in our configuration goes into drivers/serial/serial-uclass.c serial_initialize(). Printing an empty line helps. The empty line gets deleted and no strange characters appear. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--common/board_r.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index d959ad3c6f9..b3921481e9b 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -748,6 +748,14 @@ static int run_main_loop(void)
return 0;
}
+#if defined (CONFIG_TARGET_COLIBRI_IMX6) || defined(CONFIG_TARGET_APALIS_IMX6)
+static int print_linefeed(void)
+{
+ printf("\n");
+ return 0;
+}
+#endif
+
/*
* Over time we hope to remove these functions with code fragments and
* stub funtcions, and instead call the relevant function directly.
@@ -801,6 +809,10 @@ init_fnc_t init_sequence_r[] = {
efi_memory_init,
#endif
stdio_init_tables,
+#if defined (CONFIG_TARGET_COLIBRI_IMX6) || defined(CONFIG_TARGET_APALIS_IMX6)
+ /* workaround delete line and garbage characters in output. */
+ print_linefeed,
+#endif
initr_serial,
initr_announce,
INIT_FUNC_WATCHDOG_RESET