[PATCH 06/10] board: ti: am62x: am62x_env: Update env to select correct dtb
Nitin Yadav
n-yadav at ti.com
Wed Apr 26 11:39:02 CEST 2023
Now that single defconfig is getting used to boot AM62x SK and
AM62x LP SK, the default device tree will not work for selecting
dtb for kernel. Update the findfdt env to select right dtb based
on board_name env variable.
Signed-off-by: Nitin Yadav <n-yadav at ti.com>
---
board/ti/am62x/am62x.env | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/board/ti/am62x/am62x.env b/board/ti/am62x/am62x.env
index e4e64fa637..e4aed99a61 100644
--- a/board/ti/am62x/am62x.env
+++ b/board/ti/am62x/am62x.env
@@ -4,6 +4,10 @@
default_device_tree=k3-am625-sk.dtb
findfdt=
setenv name_fdt ${default_device_tree};
+ if test $board_name = am62x_skevm; then
+ setenv name_fdt k3-am625-sk.dtb; fi;
+ if test $board_name = am62x_lp_skevm; then
+ setenv name_fdt k3-am62-lp-sk.dtb; fi;
setenv fdtfile ${name_fdt}
name_kern=Image
console=ttyS2,115200n8
--
2.25.1
More information about the U-Boot
mailing list