Skip to contentSkip to conversation

opencores_eth: indicate autonegotiation completion

PATCH New Max Filippov 1 participant 1 message Apr 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opencores_eth: indicate autonegotiation completion

Indicate that autonegotiation is complete in the MII BMSR. This fixes networking on xtfpga platform in linux v4.5.

---
 hw/net/opencores_eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/opencores_eth.c +1 -1
index 09e239a..c6094fb 100644
@@ -85,7 +85,7 @@ static void mii_reset(Mii *s)
 {
     memset(s->regs, 0, sizeof(s->regs));
     s->regs[MII_BMCR] = 0x1000;
-    s->regs[MII_BMSR] = 0x7848; /* no ext regs */
+    s->regs[MII_BMSR] = 0x7868; /* no ext regs */
     s->regs[MII_PHYIDR1] = 0x2000;
     s->regs[MII_PHYIDR2] = 0x5c90;
     s->regs[MII_ANAR] = 0x01e1;
Signature · 1 line
2.1.4