diff options
author | Lokesh Vutla | 2019-09-27 13:32:12 +0530 |
---|---|---|
committer | Tom Rini | 2019-10-11 13:31:18 -0400 |
commit | bd8f138f5a1ed9bcd1339b0fb1daa2d024b472d1 (patch) | |
tree | 8eae7460db95f4ab068fa81a6fb8ca6912bcc9d4 /board/ti | |
parent | f8ca9121896bcff1476943a96d7392eb05f55364 (diff) |
board: am65x: Print board name and version during boot
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 <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti')
-rw-r--r-- | board/ti/am65x/evm.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c index ad333ad8839..544f872459c 100644 --- a/board/ti/am65x/evm.c +++ b/board/ti/am65x/evm.c @@ -127,6 +127,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"; @@ -272,7 +285,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 |