diff options
author | Andreas Dannenberg <dannenberg@ti.com> | 2019-06-05 02:08:27 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-07-17 18:13:18 +0300 |
commit | 623df9cc03056f97aafa9374e1f0fb5171991964 (patch) | |
tree | 88848d0f9e7dda72d6931ae7762299b01b490a59 /include/configs/am65x_evm.h | |
parent | 03facc727180ed84dcc61aedfcbb222dc201e0af (diff) | |
download | u-boot-623df9cc03056f97aafa9374e1f0fb5171991964.tar.xz |
configs: am65x_evm: Add support for applying overlays
This will allow for downloading and applying overlays from an MMC/SD
boot media based on the overlay_files ENV variable containing a list
of overlay files.
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'include/configs/am65x_evm.h')
-rw-r--r-- | include/configs/am65x_evm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h index 552ef780bd..1415bb1b15 100644 --- a/include/configs/am65x_evm.h +++ b/include/configs/am65x_evm.h @@ -70,6 +70,7 @@ "setenv overlay_files ${name_overlays}\0" \ "loadaddr=0x80080000\0" \ "fdtaddr=0x82000000\0" \ + "overlayaddr=0x83000000\0" \ "name_kern=Image\0" \ "console=ttyS2,115200n8\0" \ "args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000\0" \ @@ -84,6 +85,14 @@ "rd_spec=-\0" \ "init_mmc=run args_all args_mmc\0" \ "get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0" \ + "get_overlay_mmc=" \ + "fdt address ${fdtaddr};" \ + "fdt resize 0x100000;" \ + "for overlay in $overlay_files;" \ + "do;" \ + "load mmc ${bootpart} ${overlayaddr} ${bootdir}/${overlay};" \ + "fdt apply ${overlayaddr};" \ + "done;\0" \ "get_kern_mmc=load mmc ${bootpart} ${loadaddr} " \ "${bootdir}/${name_kern}\0" \ "partitions=" PARTS_DEFAULT |