Message ID | 0f0e0c199ac23831418858586543676293021bb4.1589438922.git.michal.simek@xilinx.com |
---|---|
State | Accepted |
Commit | 26e62cc9713ebe728d01826e8c22c3c56f8e3bf4 |
Headers | show |
Series | net: gem: Disable PCS autonegotiation in case of fixed-link | expand |
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index a158824fc9fd..8cbe40dc75b1 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -448,8 +448,12 @@ static int zynq_gem_init(struct udevice *dev) nwconfig |= ZYNQ_GEM_NWCFG_SGMII_ENBL | ZYNQ_GEM_NWCFG_PCS_SEL; #ifdef CONFIG_ARM64 + if (priv->phydev->phy_id != PHY_FIXED_ID) writel(readl(®s->pcscntrl) | ZYNQ_GEM_PCS_CTL_ANEG_ENBL, ®s->pcscntrl); + else + writel(readl(®s->pcscntrl) & ~ZYNQ_GEM_PCS_CTL_ANEG_ENBL, + ®s->pcscntrl); #endif }