File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
drivers/net/ethernet/stmicro/stmmac Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -665,6 +665,14 @@ static int ethqos_configure_sgmii(struct qcom_ethqos *ethqos)
665
665
return val ;
666
666
}
667
667
668
+ static void qcom_ethqos_speed_mode_2500 (struct net_device * ndev , void * data )
669
+ {
670
+ struct stmmac_priv * priv = netdev_priv (ndev );
671
+
672
+ priv -> plat -> max_speed = 2500 ;
673
+ priv -> plat -> phy_interface = PHY_INTERFACE_MODE_2500BASEX ;
674
+ }
675
+
668
676
static int ethqos_configure (struct qcom_ethqos * ethqos )
669
677
{
670
678
return ethqos -> configure_func (ethqos );
@@ -787,6 +795,9 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
787
795
case PHY_INTERFACE_MODE_RGMII_TXID :
788
796
ethqos -> configure_func = ethqos_configure_rgmii ;
789
797
break ;
798
+ case PHY_INTERFACE_MODE_2500BASEX :
799
+ plat_dat -> speed_mode_2500 = qcom_ethqos_speed_mode_2500 ;
800
+ fallthrough ;
790
801
case PHY_INTERFACE_MODE_SGMII :
791
802
ethqos -> configure_func = ethqos_configure_sgmii ;
792
803
break ;
You can’t perform that action at this time.
0 commit comments