ipq807x: Fix the napa 2nd-port 1G speed

Change-Id: I15317cec3dde811001be9d34c2bcf3487df9721d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This commit is contained in:
Sham Muthayyan 2018-07-10 16:01:56 +05:30 committed by Gerrit - the friendly Code Review server
parent 65bdcc3001
commit eff774150c

View file

@ -978,7 +978,7 @@ static int ipq807x_eth_init(struct eth_device *eth_dev, bd_t *this)
speed_clock1 = 0x104;
else if (i == port_8033)
speed_clock1 = 0x301;
else if (phy_info[i]->phy_type == QCA8081_PHY_TYPE)
else if ((phy_info[i]->phy_type == QCA8081_PHY_TYPE) && (i == 4))
speed_clock1 = 0x301;
else
speed_clock1 = 0x101;