From: Anatolij Gustschin Date: Thu, 25 Jan 2018 17:45:22 +0000 (+0100) Subject: spl: add option to disable SPL banner output X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=0292bc0d13ab6d026e2503161b6822a6358280d0;p=u-boot.git spl: add option to disable SPL banner output Selecting this option will reduce SPL boot time by approx. 6 ms (e. g. with 70 bytes long banner string at 115200 baud). Signed-off-by: Anatolij Gustschin Tested-by: Lukasz Majewski Reviewed-by: Philipp Tomsich --- diff --git a/common/spl/Kconfig b/common/spl/Kconfig index e1b91f5d89..65b3aff244 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -118,6 +118,13 @@ config SPL_SEPARATE_BSS location is used. Normally we put the device tree at the end of BSS but with this option enabled, it goes at _image_binary_end. +config SPL_DISABLE_BANNER_PRINT + bool "Disable output of the SPL banner 'U-Boot SPL ...'" + help + If this option is enabled, SPL will not print the banner with version + info. Selecting this option could be useful to reduce SPL boot time + (e.g. approx. 6 ms slower, when output on i.MX6 with 115200 baud). + config SPL_DISPLAY_PRINT bool "Display a board-specific message in SPL" help diff --git a/common/spl/spl.c b/common/spl/spl.c index 1566acdbc3..2ebab8f0c2 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -477,8 +477,10 @@ void preloader_console_init(void) gd->have_console = 1; +#ifndef CONFIG_SPL_DISABLE_BANNER_PRINT puts("\nU-Boot SPL " PLAIN_VERSION " (" U_BOOT_DATE " - " \ U_BOOT_TIME ")\n"); +#endif #ifdef CONFIG_SPL_DISPLAY_PRINT spl_display_print(); #endif