summaryrefslogtreecommitdiff
path: root/board/ti/j721e
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2020-01-07 13:15:55 +0530
committerLokesh Vutla <lokeshvutla@ti.com>2020-01-20 10:10:28 +0530
commitc7068aba19519800bc9a968c4e35dc652db9aa7d (patch)
tree287a674b3fc2ae13bd2c4f48849bc21d6fb59175 /board/ti/j721e
parent643eb6ea07f3ce1e86069a4d281d1c4f89899cdf (diff)
board: ti: j721e: Print board name and version during boot
Print the board name and ver along with the DT Model. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti/j721e')
-rw-r--r--board/ti/j721e/evm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index 7327c96b31..aa2240b852 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -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";