summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnshul Dalal <[email protected]>2026-02-03 15:30:20 +0530
committerTom Rini <[email protected]>2026-02-20 08:46:56 -0600
commit30b8c03d8c8f500b3e4cc51f7b7abf573180ea51 (patch)
treeb80125ee32001f206f4653bfbb12b75639a1d40f
parentebe62142fc623c70fcc80ed391c5b6a6ce4ab3f7 (diff)
board: ti: am64,j721*: use correct fdt if eeprom detection fails
We currently provide default board names for each board in their respective evm.c file. However for custom boards, this behaviour overwrites the default DT as set in the defconfig (CONFIG_DEFAULT_FDT_FILE or CONFIG_DEFAULT_DEVICE_TREE). This patch changes the default name to be NULL which prevents this overwrite and allows ti_set_fdt_env to instead fallback to the correct DT as set in Kconfig. Signed-off-by: Anshul Dalal <[email protected]> Reviewed-by: Bryan Brattlof <[email protected]>
-rw-r--r--board/ti/am64x/evm.c2
-rw-r--r--board/ti/j721e/evm.c2
-rw-r--r--board/ti/j721s2/evm.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c
index 25076a8a588..c6ddc44d14c 100644
--- a/board/ti/am64x/evm.c
+++ b/board/ti/am64x/evm.c
@@ -138,7 +138,7 @@ static struct ti_fdt_map ti_am64_evm_fdt_map[] = {
static void setup_board_eeprom_env(void)
{
- char *name = "am64x_gpevm";
+ char *name = NULL;
if (do_board_detect())
goto invalid_eeprom;
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index d9be9ce2ed7..881392bd963 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -363,7 +363,7 @@ static struct ti_fdt_map ti_j721e_evm_fdt_map[] = {
};
static void setup_board_eeprom_env(void)
{
- char *name = "j721e";
+ char *name = NULL;
if (do_board_detect())
goto invalid_eeprom;
diff --git a/board/ti/j721s2/evm.c b/board/ti/j721s2/evm.c
index b6d1964146d..92d5c849864 100644
--- a/board/ti/j721s2/evm.c
+++ b/board/ti/j721s2/evm.c
@@ -103,7 +103,7 @@ static struct ti_fdt_map ti_j721s2_evm_fdt_map[] = {
static void setup_board_eeprom_env(void)
{
- char *name = "j721s2";
+ char *name = NULL;
if (do_board_detect())
goto invalid_eeprom;