diff options
| author | Sinthu Raja <[email protected]> | 2025-02-11 15:19:31 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-02-20 19:12:08 -0600 |
| commit | b165582b3f37ec7bf9dc6d7f7e4fe9fc2a12f01b (patch) | |
| tree | 8dac153ac3667ab9a7cf7d39e38c7a08e207e6ac /include/configs | |
| parent | e2aebbaa401e43f6d2efdb913908e17261452e6a (diff) | |
include: configs: omap5: Add support for FDT overlay
As AM57x uses overlays for display and camera interfaces, add support to
load DT overlay files to MMC boot.
Signed-off-by: Sinthu Raja <[email protected]>
Signed-off-by: Anurag Dutta <[email protected]>
Diffstat (limited to 'include/configs')
| -rw-r--r-- | include/configs/ti_omap5_common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index ef97711e644..39102f15eb9 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -239,6 +239,16 @@ "if test $fdtfile = undefined; then " \ "echo WARNING: Could not determine device tree to use; fi; \0" +#define GET_OVERLAY_MMC_TI_ARGS \ + "get_overlay_mmc=" \ + "fdt address ${fdtaddr};" \ + "fdt resize 0x100000;" \ + "for overlay in $name_overlays;" \ + "do;" \ + "load mmc ${bootpart} ${dtboaddr} ${bootdir}/dtb/${overlay} &&" \ + "fdt apply ${dtboaddr};" \ + "done;\0" \ + #define BOOT_TARGET_DEVICES(func) \ func(TI_MMC, ti_mmc, na) \ func(MMC, mmc, 0) \ @@ -269,6 +279,7 @@ "get_fit_config=setenv name_fit_config ${fdtfile}\0" \ DEFAULT_COMMON_BOOT_TI_ARGS \ DEFAULT_FDT_TI_ARGS \ + GET_OVERLAY_MMC_TI_ARGS \ DFUARGS \ NETARGS \ NANDARGS \ |
