diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2017-03-23 19:22:39 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-03-30 10:12:28 +0200 |
commit | 78c138fb573e95333d612a9481cc7b4c1a8c176f (patch) | |
tree | 28a88783f0b4e4bb461851b5ca47b209461aa10b /common | |
parent | b173fdcd3cd8581cdc9c350099ddb02fb60e3258 (diff) |
common: apalis/colibri imx6: spl: add config to silence console output
This adds a Kconfig SPL_SILENCE_CONSOLE which allows to suppress any
console output which in the normal program flow is printed in the SPL.
Error messages and the likes will still be printed.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 8d07321784e..0e50137cdf7 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -331,6 +331,7 @@ struct boot_device_name boot_name_table[] = { static void announce_boot_device(u32 boot_device) { +#ifndef CONFIG_SPL_SILENT_CONSOLE int i; puts("Trying to boot from "); @@ -348,6 +349,7 @@ static void announce_boot_device(u32 boot_device) } printf("%s\n", boot_name_table[i].name); +#endif } #else static inline void announce_boot_device(u32 boot_device) { } @@ -473,11 +475,13 @@ void preloader_console_init(void) gd->have_console = 1; +#ifndef CONFIG_SPL_SILENT_CONSOLE puts("\nU-Boot SPL " PLAIN_VERSION " (" U_BOOT_DATE " - " \ U_BOOT_TIME ")\n"); #ifdef CONFIG_SPL_DISPLAY_PRINT spl_display_print(); #endif +#endif } /** |