]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: ti: Add environment support commands for FIT loading
authorAndrew F. Davis <afd@ti.com>
Mon, 26 Aug 2019 21:51:00 +0000 (17:51 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 13 Sep 2019 15:56:30 +0000 (11:56 -0400)
Some parts of these commands can be reused, add them to common files.

Signed-off-by: Andrew F. Davis <afd@ti.com>
include/configs/am65x_evm.h
include/configs/ti_armv7_common.h

index 6072e4a48c8f0e3d294947537566c77075fb1f8d..0249a20ba8fa0573963076245a3cf5a5c430bcbe 100644 (file)
                "done;\0"                                               \
        "get_kern_mmc=load mmc ${bootpart} ${loadaddr} "                \
                "${bootdir}/${name_kern}\0"                             \
+       "get_fit_mmc=load mmc ${bootpart} ${addr_fit} "                 \
+               "${bootdir}/${name_fit}\0"                              \
        "partitions=" PARTS_DEFAULT
 
 /* Incorporate settings into the U-Boot environment */
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        DEFAULT_MMC_TI_ARGS                                             \
+       DEFAULT_FIT_TI_ARGS                                             \
        EXTRA_ENV_AM65X_BOARD_SETTINGS                                  \
        EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC
 
index 2058f8de0fda6f3190ddadbff4882b58e6102de9..2de6bc239090c4d4fd926d716012cf4d27913550 100644 (file)
        "addr_fit=0x90000000\0" \
        "name_fit=fitImage\0" \
        "update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}\0" \
-       "loadfit=run args_mmc; bootm ${loadaddr}#${fdtfile};\0" \
+       "get_overlaystring=" \
+               "for overlay in $overlay_files;" \
+               "do;" \
+               "setenv overlaystring ${overlaystring}'#'${overlay};" \
+               "done;\0" \
+       "run_fit=bootm ${loadaddr}#${fdtfile}${overlaystring}\0" \
+       "loadfit=run args_mmc; run run_fit;\0" \
 
 /*
  * DDR information.  If the CONFIG_NR_DRAM_BANKS is not defined,