[PATCH v2 4/4] board: ti: dra7xx: Set fdtfile from C code instead of findfdt script
Anurag Dutta
a-dutta at ti.com
Mon Sep 1 08:16:59 CEST 2025
We now can provide a map and have the standard fdtfile variable set from
code itself. This allows for bootstd to "just work".
Signed-off-by: Anurag Dutta <a-dutta at ti.com>
---
board/ti/dra7xx/evm.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index 98d63e14e29..0966db2bb62 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -38,6 +38,7 @@
#include "mux_data.h"
#include "../common/board_detect.h"
+#include "../common/fdt_ops.h"
#define board_is_dra76x_evm() board_ti_is("DRA76/7x")
#define board_is_dra74x_evm() board_ti_is("5777xCPU")
@@ -665,6 +666,15 @@ static int device_okay(const char *path)
}
#endif
+static struct ti_fdt_map ti_omap_dra7_evm_fdt_map[] = {
+ {"omap5_uevm", "ti/omap/omap5-uevm.dtb"},
+ {"dra7xx", "ti/omap/dra7-evm.dtb"},
+ {"dra72x-revc", "ti/omap/dra72-evm-revc.dtb"},
+ {"dra72x", "ti/omap/dra72-evm.dtb"},
+ {"dra71x", "ti/omap/dra71-evm.dtb"},
+ {"dra76x_acd", "ti/omap/dra76-evm.dtb"},
+};
+
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
@@ -686,6 +696,7 @@ int board_late_init(void)
}
set_board_info_env(name);
+ ti_set_fdt_env(name, ti_omap_dra7_evm_fdt_map);
/*
* Default FIT boot on HS devices. Non FIT images are not allowed
--
2.34.1
More information about the U-Boot
mailing list