Commit 02fc64d1d98be7801e6b21dbf0d67555b0e05213

Authored by Wu, Josh
Committed by Andreas Bießmann
1 parent 662e2acb46

ARM: at91: sama5d4: display the U-Boot version on LCD

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>

Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff

board/atmel/sama5d4_xplained/sama5d4_xplained.c
... ... @@ -24,6 +24,7 @@
24 24 #include <netdev.h>
25 25 #include <nand.h>
26 26 #include <spi.h>
  27 +#include <version.h>
27 28  
28 29 DECLARE_GLOBAL_DATA_PTR;
29 30  
... ... @@ -179,6 +180,7 @@
179 180 int i;
180 181 char temp[32];
181 182  
  183 + lcd_printf("%s\n", U_BOOT_VERSION);
182 184 lcd_printf("2014 ATMEL Corp\n");
183 185 lcd_printf("%s CPU at %s MHz\n", get_cpu_name(),
184 186 strmhz(temp, get_cpu_clk_rate()));
board/atmel/sama5d4ek/sama5d4ek.c
... ... @@ -24,6 +24,7 @@
24 24 #include <netdev.h>
25 25 #include <nand.h>
26 26 #include <spi.h>
  27 +#include <version.h>
27 28  
28 29 DECLARE_GLOBAL_DATA_PTR;
29 30  
... ... @@ -174,6 +175,7 @@
174 175 int i;
175 176 char temp[32];
176 177  
  178 + lcd_printf("%s\n", U_BOOT_VERSION);
177 179 lcd_printf("2014 ATMEL Corp\n");
178 180 lcd_printf("at91@atmel.com\n");
179 181 lcd_printf("%s CPU at %s MHz\n", get_cpu_name(),