]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env: Make common bootcmd across all k3 devices
authorManorit Chawdhry <m-chawdhry@ti.com>
Fri, 14 Jul 2023 05:52:34 +0000 (11:22 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 22 Jul 2023 00:35:50 +0000 (20:35 -0400)
This is helpful to go forward with distro_bootcmd as default boot.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
include/environment/ti/ti_armv7_common.env

index 0c0929d862867f0064dc154c4c43e640158313e4..e87a41a6590bad696949ffae3a09ca11dd3d46b3 100644 (file)
@@ -22,4 +22,13 @@ get_overlaystring=
        done;
 get_fit_config=setexpr name_fit_config gsub / _ conf-${fdtfile}
 run_fit=run get_fit_config; bootm ${addr_fit}#${name_fit_config}${overlaystring}
-
+bootcmd_ti_mmc=
+       run findfdt; run init_${boot};
+#if CONFIG_CMD_REMOTEPROC
+       run main_cpsw0_qsgmii_phyinit; run boot_rprocs;
+#endif
+       if test ${boot_fit} -eq 1;
+               then run get_fit_${boot}; run get_overlaystring; run run_fit;
+       else;
+               run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern;
+       fi;