Skip to content
Snippets Groups Projects
Commit 02fc64d1 authored by Wu, Josh's avatar Wu, Josh Committed by Andreas Bießmann
Browse files

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


This patch will display the U-Boot version on LCD.

Signed-off-by: default avatarJosh Wu <josh.wu@atmel.com>
Acked-by: default avatarBo Shen <voice.shen@atmel.com>
parent 662e2acb
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <netdev.h> #include <netdev.h>
#include <nand.h> #include <nand.h>
#include <spi.h> #include <spi.h>
#include <version.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -179,6 +180,7 @@ void lcd_show_board_info(void) ...@@ -179,6 +180,7 @@ void lcd_show_board_info(void)
int i; int i;
char temp[32]; char temp[32];
lcd_printf("%s\n", U_BOOT_VERSION);
lcd_printf("2014 ATMEL Corp\n"); lcd_printf("2014 ATMEL Corp\n");
lcd_printf("%s CPU at %s MHz\n", get_cpu_name(), lcd_printf("%s CPU at %s MHz\n", get_cpu_name(),
strmhz(temp, get_cpu_clk_rate())); strmhz(temp, get_cpu_clk_rate()));
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <netdev.h> #include <netdev.h>
#include <nand.h> #include <nand.h>
#include <spi.h> #include <spi.h>
#include <version.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -174,6 +175,7 @@ void lcd_show_board_info(void) ...@@ -174,6 +175,7 @@ void lcd_show_board_info(void)
int i; int i;
char temp[32]; char temp[32];
lcd_printf("%s\n", U_BOOT_VERSION);
lcd_printf("2014 ATMEL Corp\n"); lcd_printf("2014 ATMEL Corp\n");
lcd_printf("at91@atmel.com\n"); lcd_printf("at91@atmel.com\n");
lcd_printf("%s CPU at %s MHz\n", get_cpu_name(), lcd_printf("%s CPU at %s MHz\n", get_cpu_name(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment