summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2023-07-07 07:48:10 -0500
committerUdit Kumar <u-kumar1@ti.com>2023-08-07 15:51:37 +0530
commit0b0f9c6b353aa37f19fdb7add17f8bcf74a2e9ee (patch)
treef113deb83578cdcb60c51a30680c50a09a2da1b0
parent48a39c90ca7823a7dc493b265039113a8e9ee380 (diff)
board: ti: j721e: Add beaglebone-ai64 detection
Use eeprom detection logic to detect if beaglebone-ai64 is detected. Signed-off-by: Nishanth Menon <nm@ti.com>
-rw-r--r--board/ti/j721e/evm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index b623eea7635..e82349ef24f 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -27,6 +27,8 @@
#include "../common/board_detect.h"
+#define board_is_bboneai_64_b0() (board_ti_k3_is("BBONEAI-64-B0-"))
+
#define board_is_j721e_som() (board_ti_k3_is("J721EX-PM1-SOM") || \
board_ti_k3_is("J721EX-PM2-SOM"))
@@ -98,6 +100,10 @@ int board_fit_config_name_match(const char *name)
if (!strcmp(name, "k3-j721e-sk") ||
!strcmp(name, "k3-j721e-r5-sk"))
return 0;
+ } else if (board_is_bboneai_64_b0()) {
+ if (!strcmp(name, "k3-j721e-beagleboneai64") ||
+ !strcmp(name, "k3-j721e-r5-beagleboneai64"))
+ return 0;
}
return -1;
@@ -456,6 +462,8 @@ static void setup_board_eeprom_env(void)
name = "j721e";
else if (board_is_j721e_sk())
name = "j721e-sk";
+ else if (board_is_bboneai_64_b0())
+ name = "BBONEAI-64-B0-";
else if (board_is_j7200_som())
name = "j7200";
else
@@ -561,7 +569,8 @@ void spl_board_init(void)
#ifdef CONFIG_ESM_K3
if (board_ti_k3_is("J721EX-PM2-SOM") ||
- board_ti_k3_is("J7200X-PM2-SOM")) {
+ board_ti_k3_is("J7200X-PM2-SOM") ||
+ board_is_bboneai_64_b0()) {
ret = uclass_get_device_by_driver(UCLASS_MISC,
DM_DRIVER_GET(k3_esm), &dev);
if (ret)