]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: ti: am65x: Overwrite get_overlay_mmc
authorJudith Mendez <jm@ti.com>
Mon, 25 Aug 2025 15:23:10 +0000 (10:23 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 11 Sep 2025 19:14:17 +0000 (13:14 -0600)
Unlike other K3 SoC's, am65 SoC has the capability to detect daughter
cards and automatically generate a list of white-space separated overlays
in name_overlays environment variable.

When applied during boot with get_overlay_mmc, the path to overlays with
default distribution is incorrect where path is currently: boot/dtb and
the overlays exist in boot/dtb/ti.

Fix the path in get_overlay_mmc so that overlays are automatically applied
correctly during boot time.

Signed-off-by: Judith Mendez <jm@ti.com>
board/ti/am65x/am65x.env

index 631997e4c979711d05addaabf44137d5b7b476ea..b6cdfc9bd9629b5c99bf909cb5e6a1d4b6c0cd09 100644 (file)
@@ -17,6 +17,15 @@ bootpart=1:2
 bootdir=/boot
 rd_spec=-
 
+get_overlay_mmc=
+       fdt address ${fdtaddr};
+       fdt resize 0x100000;
+       for overlay in $name_overlays;
+       do;
+       load mmc ${bootpart} ${dtboaddr} ${bootdir}/dtb/ti/${overlay} &&
+       fdt apply ${dtboaddr};
+       done;
+
 init_ubi=
     run args_all args_ubi;
     sf probe;