summaryrefslogtreecommitdiff
path: root/board/ti/j721s2/evm.c
diff options
context:
space:
mode:
authorSinthu Raja <sinthu.raja@ti.com>2023-01-10 21:17:50 +0530
committerTom Rini <trini@konsulko.com>2023-01-27 12:51:26 -0500
commit24bbe09a91a1594a58cb059696b4e4e591945506 (patch)
treec56334efa20a43f48fbb35b10116a15fdbabeb9a /board/ti/j721s2/evm.c
parent76361af76cf2addf903fe8a0ab139134b0cddfc2 (diff)
board: ti: j721s2: Add support to update board_name for am68-sk
Update setup_board_eeprom_env() to choose the right board name for am68-sk. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti/j721s2/evm.c')
-rw-r--r--board/ti/j721s2/evm.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/board/ti/j721s2/evm.c b/board/ti/j721s2/evm.c
index 4d28582311..063fc8c688 100644
--- a/board/ti/j721s2/evm.c
+++ b/board/ti/j721s2/evm.c
@@ -26,8 +26,6 @@
#include "../common/board_detect.h"
-#define board_is_j721s2_som() board_ti_k3_is("J721S2X-PM1-SOM")
-
DECLARE_GLOBAL_DATA_PTR;
int board_init(void)
@@ -101,6 +99,14 @@ int ft_board_setup(void *blob, struct bd_info *bd)
#endif
#ifdef CONFIG_TI_I2C_BOARD_DETECT
+/*
+ * Functions specific to EVM and SK designs of J721S2/AM68 family.
+ */
+
+#define board_is_j721s2_som() board_ti_k3_is("J721S2X-PM1-SOM")
+
+#define board_is_am68_sk_som() board_ti_k3_is("AM68-SK-SOM")
+
int do_board_detect(void)
{
int ret;
@@ -136,6 +142,8 @@ static void setup_board_eeprom_env(void)
if (board_is_j721s2_som())
name = "j721s2";
+ else if (board_is_am68_sk_som())
+ name = "am68-sk";
else
printf("Unidentified board claims %s in eeprom header\n",
board_ti_get_name());