Skip to contentSkip to conversation

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

PATCH In review Josh Wu 3 participants 3 messages Feb 4, 2015 – Mar 31, 2015 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore

Josh Wu

author
#0 lore raw

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

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

---

 board/atmel/sama5d4_xplained/sama5d4_xplained.c | 2 ++
 board/atmel/sama5d4ek/sama5d4ek.c               | 2 ++
 2 files changed, 4 insertions(+)
board/atmel/sama5d4_xplained/sama5d4_xplained.c +2 -0
index 1c5b92c..a8c476b 100644
@@ -23,6 +23,7 @@
 #include <netdev.h>
 #include <nand.h>
 #include <spi.h>
+#include <version.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -178,6 +179,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()));
board/atmel/sama5d4ek/sama5d4ek.c +2 -0
index d8ff648..b55db06 100644
@@ -23,6 +23,7 @@
 #include <netdev.h>
 #include <nand.h>
 #include <spi.h>
+#include <version.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -173,6 +174,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 at atmel.com\n");
 	lcd_printf("%s CPU at %s MHz\n", get_cpu_name(),
Signature · 1 line
1.9.1
#1 lore raw

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

Hi Josh,

Quoted 1 line · Josh Wu

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

To be frankly, I have no idea what should be put on LCD to display. No objection for this patch.

Quoted 1 line
Quoted 40 lines

---

  board/atmel/sama5d4_xplained/sama5d4_xplained.c | 2 ++
  board/atmel/sama5d4ek/sama5d4ek.c               | 2 ++
  2 files changed, 4 insertions(+)
board/atmel/sama5d4_xplained/sama5d4_xplained.c +2 -0
index 1c5b92c..a8c476b 100644
@@ -23,6 +23,7 @@
  #include <netdev.h>
  #include <nand.h>
  #include <spi.h>
+#include <version.h>
 
  DECLARE_GLOBAL_DATA_PTR;
 
@@ -178,6 +179,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()));
board/atmel/sama5d4ek/sama5d4ek.c +1 -0
index d8ff648..b55db06 100644
@@ -23,6 +23,7 @@
  #include <netdev.h>
  #include <nand.h>
  #include <spi.h>
+#include <version.h>
 
  DECLARE_GLOBAL_DATA_PTR;
 

board/atmel/sama5d4ek/sama5d4ek.c void lcd_show_board_info(void) · line 180

Quoted 7 lines
board/atmel/sama5d4ek/sama5d4ek.c +1 -0
@@ -173,6 +174,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 at atmel.com\n");
  	lcd_printf("%s CPU at %s MHz\n", get_cpu_name(),

Best Regards,
Bo Shen