configs: ti: Factor out call to 'args_mmc' into MMC common environment
[oweals/u-boot.git] / include / environment / ti / mmc.h
index bb4af0a3d54b93a8491ae094afd638eeadf72e5a..1c8e49a8b3da0242673be05bfbe269cc90e8cad3 100644 (file)
@@ -41,7 +41,7 @@
                                "fi;" \
                        "fi;" \
                "fi;\0" \
-       "mmcloados=run args_mmc; " \
+       "mmcloados=" \
                "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
                        "if run loadfdt; then " \
                                "bootz ${loadaddr} - ${fdtaddr}; " \
@@ -61,8 +61,9 @@
                "if mmc rescan; then " \
                        "echo SD/MMC found on device ${mmcdev};" \
                        "if run loadimage; then " \
+                               "run args_mmc; " \
                                "if test ${boot_fit} -eq 1; then " \
-                                       "run loadfit; " \
+                                       "run run_fit; " \
                                "else " \
                                        "run mmcloados;" \
                                "fi;" \