aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2024-01-09 13:15:00 -0600
committerTom Rini <trini@konsulko.com>2024-01-20 09:58:32 -0500
commitde1b4cf998ddf1ca9a3f0d3e1e480915bf265738 (patch)
treee0e299b67b64a1e55646189fdc9a6dfeb14b854a
parentbabdcbd1816e06726c30a8bbab2b1a88713c2b4f (diff)
downloadu-boot-de1b4cf998ddf1ca9a3f0d3e1e480915bf265738.zip
u-boot-de1b4cf998ddf1ca9a3f0d3e1e480915bf265738.tar.gz
u-boot-de1b4cf998ddf1ca9a3f0d3e1e480915bf265738.tar.bz2
board: ti: am65x: Set fdtfile from C code instead of findfdt script
We now can provide a map and have the standard fdtfile variable set from code itself. This allows for bootstd to "just work". While at this, replace findfdt in environment with a warning as it is no longer needed. Signed-off-by: Nishanth Menon <nm@ti.com> Reviewed-by: Jonathan Humphreys <j-humphreys@ti.com>
-rw-r--r--board/ti/am65x/am65x.env3
-rw-r--r--board/ti/am65x/evm.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/board/ti/am65x/am65x.env b/board/ti/am65x/am65x.env
index 286b9c3..814374d 100644
--- a/board/ti/am65x/am65x.env
+++ b/board/ti/am65x/am65x.env
@@ -5,9 +5,6 @@
#include <env/ti/k3_rproc.env>
#endif
-findfdt=
- setenv name_fdt ti/k3-am654-base-board.dtb;
- setenv fdtfile ${name_fdt}
name_kern=Image
console=ttyS2,115200n8
args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c
index df20902..3109c9a 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -22,6 +22,7 @@
#include <linux/printk.h>
#include "../common/board_detect.h"
+#include "../common/fdt_ops.h"
#define board_is_am65x_base_board() board_ti_is("AM6-COMPROCEVM")
@@ -141,6 +142,7 @@ static void setup_board_eeprom_env(void)
invalid_eeprom:
set_board_info_env_am6(name);
+ ti_set_fdt_env(NULL, NULL);
}
static int init_daughtercard_det_gpio(char *gpio_name, struct gpio_desc *desc)