Skip to contentSkip to conversation

spl: add option to disable SPL banner output

PATCH New Lukasz Majewski 2 participants 2 messages Jan 25, 2018 – Jan 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 spl: add option to disable SPL banner output

From: Anatolij Gustschin <[email protected]>

Selecting this option will reduce SPL boot time by approx. 6 ms (e. g. with 70 bytes long banner string at 115200 baud).

---

 common/spl/Kconfig | 7 +++++++
 common/spl/spl.c   | 2 ++
 2 files changed, 9 insertions(+)
common/spl/Kconfig +7 -0
index d686b1ecbd..d1f9cae6b7 100644
@@ -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
common/spl/spl.c +2 -0
index 76c1963611..898c416a66 100644
@@ -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
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 spl: add option to disable SPL banner output

Quoted 8 lines · Lukasz Majewski

From: Anatolij Gustschin <[email protected]>

Selecting this option will reduce SPL boot time by approx. 6 ms (e. g. with 70 bytes long banner string at 115200 baud).

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/8d5fa181/attachment.sig>