X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fconsole.c;h=51c6fb6264a1deedbbcc8008f00daf04ff07dbc8;hb=65d342541e78ab9a22bf480cc4fe2f659f94bad4;hp=867c12c10231cdfc74a35e69e4718d6b4485ff50;hpb=84efbf4d144ff8aaed3cca036aebb1fe69eff3f4;p=u-boot diff --git a/common/console.c b/common/console.c index 867c12c102..51c6fb6264 100644 --- a/common/console.c +++ b/common/console.c @@ -534,7 +534,7 @@ int console_init_f(void) void stdio_print_current_devices(void) { -#ifdef CONFIG_SYS_CONSOLE_INFO_QUIET +#ifndef CONFIG_SYS_CONSOLE_INFO_QUIET /* Print information */ puts("In: "); if (stdio_devices[stdin] == NULL) { @@ -659,10 +659,14 @@ int console_init_r(void) #ifdef CONFIG_SPLASH_SCREEN /* * suppress all output if splash screen is enabled and we have - * a bmp to display + * a bmp to display. We redirect the output from frame buffer + * console to serial console in this case or suppress it if + * "silent" mode was requested. */ - if (getenv("splashimage") != NULL) - gd->flags |= GD_FLG_SILENT; + if (getenv("splashimage") != NULL) { + if (!(gd->flags & GD_FLG_SILENT)) + outputdev = search_device (DEV_FLAGS_OUTPUT, "serial"); + } #endif /* Scan devices looking for input and output devices */