diff mbox series

[11/18] env: Make common bootcmd across all k3 devices

Message ID 20230713-b4-upstream-fit-image-support-v1-11-bbc529335471@ti.com
State Accepted
Commit 4ae1a2470ce7895b747c85a140aaf8b647ae6a32
Delegated to: Tom Rini
Headers show
Series K3 HS Support along with fixes | expand

Commit Message

Manorit Chawdhry July 14, 2023, 5:52 a.m. UTC
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 | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/environment/ti/ti_armv7_common.env b/include/environment/ti/ti_armv7_common.env
index 0c0929d86286..e87a41a6590b 100644
--- a/include/environment/ti/ti_armv7_common.env
+++ b/include/environment/ti/ti_armv7_common.env
@@ -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;