net: ipq5332: update sgmii+ mode for bypass port

This change configure sgmii+ mode if linkup at 2.5Gbps
speed.

Change-Id: I6570c9ee34cfb4d5d9208766135d429795beebaf
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
This commit is contained in:
Vandhiadevan Karunamoorthy 2023-01-11 22:29:50 +05:30
parent 7c9ba11aa9
commit 6d133d5019

View file

@ -1066,7 +1066,8 @@ static int ipq5332_eth_init(struct eth_device *eth_dev, bd_t *this)
clk[2] = 0x401;
}
if (phy_info->phy_type == QCA8081_PHY_TYPE) {
if ((phy_info->phy_type == QCA8081_PHY_TYPE) ||
(phy_info->phy_type == QCA8084_PHY_TYPE)) {
sgmii_mode = EPORT_WRAPPER_SGMII_PLUS;
}
break;