From 22e68cbd1fa28e0a9df45cfbfb43f0c606370f32 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 11 Jan 2017 14:35:01 +0100 Subject: board_r: workaround deleted output line and garbage chars When booting we see: DRAM: 256 MiB 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 Acked-by: Marcel Ziswiler --- common/board_r.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/board_r.c b/common/board_r.c index d959ad3c6f..b3921481e9 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 -- cgit v1.2.3