[U-Boot] [PATCH 1/4] microblaze: Show u-boot banner

Michal Simek michal.simek at xilinx.com
Tue Jan 21 17:21:02 CET 2014


It is nice to see u-boot version.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 arch/microblaze/lib/board.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index 896e73a..d22aa85 100644
--- a/arch/microblaze/lib/board.c
+++ b/arch/microblaze/lib/board.c
@@ -24,6 +24,12 @@

 DECLARE_GLOBAL_DATA_PTR;

+static int display_banner(void)
+{
+	printf("\n\n%s\n\n", version_string);
+	return 0;
+}
+
 /*
  * All attempts to come up with a "common" initialization sequence
  * that works for all boards and architectures failed: some of the
@@ -45,6 +51,7 @@ init_fnc_t *init_sequence[] = {
 #endif
 	serial_init,
 	console_init_f,
+	display_banner,
 	interrupts_init,
 	timer_init,
 	NULL,
--
1.8.2.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140121/934b6d61/attachment.pgp>


More information about the U-Boot mailing list