Re: [U-Boot] [PATCH v2 2/5] board: am65x: Print board name and version during boot

2019-10-12 Thread Tom Rini
On Fri, Sep 27, 2019 at 01:32:12PM +0530, Lokesh Vutla wrote:

> Print the board name and ver along with the DT Model.
> While at it print the ver for all the detected daughter cards.
> 
> Signed-off-by: Lokesh Vutla 

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 2/5] board: am65x: Print board name and version during boot

2019-09-27 Thread Lokesh Vutla
Print the board name and ver along with the DT Model.
While at it print the ver for all the detected daughter cards.

Signed-off-by: Lokesh Vutla 
---
 board/ti/am65x/evm.c | 15 ++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c
index e01adcd642..85a2b261e7 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -116,6 +116,19 @@ int do_board_detect(void)
return ret;
 }
 
+int checkboard(void)
+{
+   struct ti_am6_eeprom *ep = TI_AM6_EEPROM_DATA;
+
+   if (do_board_detect())
+   /* EEPROM not populated */
+   printf("Board: %s rev %s\n", "AM6-COMPROCEVM", "E3");
+   else
+   printf("Board: %s rev %s\n", ep->name, ep->version);
+
+   return 0;
+}
+
 static void setup_board_eeprom_env(void)
 {
char *name = "am65x";
@@ -261,7 +274,7 @@ static int probe_daughtercards(void)
if (strncmp(ep.name, cards[i].card_name, sizeof(ep.name)))
continue;
 
-   printf("detected %s\n", cards[i].card_name);
+   printf("Detected: %s rev %s\n", ep.name, ep.version);
 
/*
 * Populate any MAC addresses from daughtercard into the U-Boot
-- 
2.23.0

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot