]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
spl: add option to disable SPL banner output
authorAnatolij Gustschin <agust@denx.de>
Thu, 25 Jan 2018 17:45:22 +0000 (18:45 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 17:27:36 +0000 (12:27 -0500)
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 <agust@denx.de>
Tested-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
common/spl/Kconfig
common/spl/spl.c

index e1b91f5d895c30a55642a6cddf2ef5520e081d23..65b3aff2448755ade9b822241e026a01f723086b 100644 (file)
@@ -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
index 1566acdbc30672eb4a8efe476d21bd6e0ae7ea85..2ebab8f0c28a41d6df6120b3f91841f9f2aa991b 100644 (file)
@@ -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