]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: at91: sama5d4: display the U-Boot version on LCD
authorWu, Josh <Josh.wu@atmel.com>
Wed, 4 Feb 2015 03:03:32 +0000 (11:03 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Tue, 31 Mar 2015 23:04:26 +0000 (01:04 +0200)
This patch will display the U-Boot version on LCD.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Bo Shen <voice.shen@atmel.com>
board/atmel/sama5d4_xplained/sama5d4_xplained.c
board/atmel/sama5d4ek/sama5d4ek.c

index e7f225a15539ca2dfce1bd471aa5180ee581f525..7d447fe76b241b7a621fe1b985b67f0e1387d189 100644 (file)
@@ -24,6 +24,7 @@
 #include <netdev.h>
 #include <nand.h>
 #include <spi.h>
+#include <version.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -179,6 +180,7 @@ void lcd_show_board_info(void)
        int i;
        char temp[32];
 
+       lcd_printf("%s\n", U_BOOT_VERSION);
        lcd_printf("2014 ATMEL Corp\n");
        lcd_printf("%s CPU at %s MHz\n", get_cpu_name(),
                   strmhz(temp, get_cpu_clk_rate()));
index 46e504131c8ca43f5e24033aea2deddd417e0841..e9bbb4b1c81521d13945997ded556535838bdb04 100644 (file)
@@ -24,6 +24,7 @@
 #include <netdev.h>
 #include <nand.h>
 #include <spi.h>
+#include <version.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -174,6 +175,7 @@ void lcd_show_board_info(void)
        int i;
        char temp[32];
 
+       lcd_printf("%s\n", U_BOOT_VERSION);
        lcd_printf("2014 ATMEL Corp\n");
        lcd_printf("at91@atmel.com\n");
        lcd_printf("%s CPU at %s MHz\n", get_cpu_name(),