diff options
Diffstat (limited to 'common/console.c')
-rw-r--r-- | common/console.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/common/console.c b/common/console.c index 4ab87564cb..af4b5b92d6 100644 --- a/common/console.c +++ b/common/console.c @@ -576,21 +576,28 @@ int console_assign(int file, const char *devname) return -1; } -/* Called before relocation - use serial functions */ -int console_init_f(void) +int console_ready(void) { - gd->have_console = 1; - #ifdef CONFIG_SILENT_CONSOLE if (getenv("silent") != NULL) gd->flags |= GD_FLG_SILENT; #endif - + gd->have_console = 1; print_pre_console_buffer(); return 0; } +/* Called before relocation - use serial functions */ +int console_init_f(void) +{ +#ifndef CONFIG_DELAY_CONSOLE + console_ready(); +#endif + + return 0; +} + void stdio_print_current_devices(void) { #ifndef CONFIG_SYS_CONSOLE_INFO_QUIET |