]> git.sur5r.net Git - u-boot/commitdiff
configs: k2x_evm: Reorder default boot command
authorAndrew F. Davis <afd@ti.com>
Mon, 17 Jul 2017 17:59:14 +0000 (12:59 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 26 Jul 2017 15:26:50 +0000 (11:26 -0400)
We first split the CONFIG_BOOTCOMMAND into its components to improve
readability. We then make the following order changes:

 - Run findfdt first so the fdt name can be used in envboot like OMAP
 - Install the boot monitor before running the PMMC so we can make any
     needed secure changes before PMMC, do this on both HS and non-HS
 - Move set_name_pmmc to just before get_pmmc_${boot}

Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/configs/k2g_evm.h
include/configs/ti_armv7_keystone2.h

index 132dc89ccc2c21a82c3009cd0a8c7a912ca4e6de..1117e5e5dd0fa6651bfd5c5e000f56b40b21bd7f 100644 (file)
 
 #ifndef CONFIG_TI_SECURE_DEVICE
 #define CONFIG_BOOTCOMMAND                                             \
+       "run findfdt; "                                                 \
        "run envboot; "                                                 \
-       "run set_name_pmmc init_${boot} init_fw_rd_${boot} "            \
-       "get_pmmc_${boot} run_pmmc get_mon_${boot} run_mon "            \
-       "findfdt get_fdt_${boot} get_kern_${boot} run_kern"
+       "run init_${boot}; "                                            \
+       "run get_mon_${boot} run_mon; "                                 \
+       "run set_name_pmmc get_pmmc_${boot} run_pmmc; "                 \
+       "run get_kern_${boot}; "                                        \
+       "run init_fw_rd_${boot}; "                                      \
+       "run get_fdt_${boot}; "                                         \
+       "run run_kern"
 #else
 #define CONFIG_BOOTCOMMAND                                             \
-       "run envboot; run run_mon_hs set_name_pmmc init_${boot} "       \
-       "get_pmmc_${boot} run_pmmc findfdt get_fit_${boot};"            \
-       "bootm ${fit_loadaddr}#${name_fdt} "
+       "run findfdt; "                                                 \
+       "run envboot; "                                                 \
+       "run run_mon_hs; "                                              \
+       "run init_${boot}; "                                            \
+       "run set_name_pmmc get_pmmc_${boot} run_pmmc; "                 \
+       "run get_fit_${boot}; "                                         \
+       "bootm ${fit_loadaddr}#${name_fdt}"
 #endif
 
 /* SPL SPI Loader Configuration */
index 0aad63fe03c656c112381bdf77d1aa6ada8da9ce..c6122a0f74a3a7b5b99f2e380c1313f8c8570750 100644 (file)
 #ifndef CONFIG_BOOTCOMMAND
 #ifndef CONFIG_TI_SECURE_DEVICE
 #define CONFIG_BOOTCOMMAND                                             \
-       "run init_${boot} get_mon_${boot} run_mon init_fw_rd_${boot} "  \
-       "get_fdt_${boot} get_kern_${boot} run_kern"
+       "run init_${boot}; "                                            \
+       "run get_mon_${boot} run_mon; "                                 \
+       "run get_kern_${boot}; "                                        \
+       "run init_fw_rd_${boot}; "                                      \
+       "run get_fdt_${boot}; "                                         \
+       "run run_kern"
 #else
 #define CONFIG_BOOTCOMMAND                                             \
-       "run run_mon_hs init_${boot} init_fw_rd_${boot} "               \
-       "get_fit_${boot}; bootm ${fit_loadaddr}#${name_fdt}"
+       "run run_mon_hs; "                                              \
+       "run init_${boot}; "                                            \
+       "run get_fit_${boot}; "                                         \
+       "bootm ${fit_loadaddr}#${name_fdt}"
 #endif
 #endif