summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManorit Chawdhry <m-chawdhry@ti.com>2024-01-04 14:39:09 +0530
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2024-03-21 14:26:33 +0000
commit62ef425c54c2b038febf25aa8aa4a3813417e039 (patch)
tree057582dca7ba6c4d4b56d7c38272229ff76468ee /include
parent4887b12492aed1e37ccf4e5c1c260a1554eaeaf2 (diff)
env: ti: ti_armv7_common: Run main_cpsw0_qsgmii_phyinit conditionally
commit 0d72b0f2f83b788273c40ed4a64d1adf74877726 upstream. Since upstream U-Boot uses ti_common.env instead of ti_armv7_common.env, the implementation here differs in this aspect from the upstream commit. The main_cpsw0_qsgmii_phyinit command is defined only for certain TI SoCs which have the do_main_cpsw0_qsgmii_phyinit variable set. Add a check to ensure that the main_cpsw0_qsgmii_phyinit command is run only for such SoCs. Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com> Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'include')
-rw-r--r--include/environment/ti/ti_armv7_common.env5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/environment/ti/ti_armv7_common.env b/include/environment/ti/ti_armv7_common.env
index f5d84216e3..5473f633aa 100644
--- a/include/environment/ti/ti_armv7_common.env
+++ b/include/environment/ti/ti_armv7_common.env
@@ -25,7 +25,10 @@ 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;
+ if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1;
+ then run main_cpsw0_qsgmii_phyinit;
+ fi;
+ run boot_rprocs;
#endif
if test ${boot_fit} -eq 1;
then run get_fit_${boot}; run get_fit_overlaystring; run run_fit;