From patchwork Mon Jan 6 07:57:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 239129 List-Id: U-Boot discussion From: lokeshvutla at ti.com (Lokesh Vutla) Date: Mon, 6 Jan 2020 13:27:03 +0530 Subject: [PATCH 3/5] board: ti: j721e: Print board name and version during boot In-Reply-To: <20200106075705.3717-1-lokeshvutla@ti.com> References: <20200106075705.3717-1-lokeshvutla@ti.com> Message-ID: <20200106075705.3717-4-lokeshvutla@ti.com> Print the board name and ver along with the DT Model. Signed-off-by: Lokesh Vutla --- board/ti/j721e/evm.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index d822ac81db..101fe1be4e 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";