]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
include: env: ti: ti_common: Run main_cpsw0_qsgmii_phyinit conditionally
authorManorit Chawdhry <m-chawdhry@ti.com>
Mon, 11 Dec 2023 10:42:09 +0000 (16:12 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 16:58:18 +0000 (11:58 -0500)
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>
include/env/ti/ti_common.env

index f5d84216e3ce1d49c7857e4d3e4b6ade94af5cbd..f0f89a2287673c6ed35f6e2b40be2de7b16a0c33 100644 (file)
@@ -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;