]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: j721e: Print board name and version during boot
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 7 Jan 2020 07:45:55 +0000 (13:15 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:28 +0000 (10:10 +0530)
Print the board name and ver along with the DT Model.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/j721e/evm.c

index 7327c96b31865f0d3a2ecab353de14ce5cc488bc..aa2240b8523b9c8498ff74a07dfe39ff287e40f5 100644 (file)
@@ -106,6 +106,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", "J721EX-PM1-SOM", "E2");
+       else
+               printf("Board: %s rev %s\n", ep->name, ep->version);
+
+       return 0;
+}
+
 static void setup_board_eeprom_env(void)
 {
        char *name = "j721e";