summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2016-04-04 06:54:27 +0300
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 20:01:34 -0600
commit8c74b36605371d9ca1c20a7b4f1d0e788b072e80 (patch)
treeb13d88f7121782b5ace171693c5e0b3996f56ac0
parentc52bfc56e30b7180a5e89850c078d4ddf70db76b (diff)
downloadhqemu-8c74b36605371d9ca1c20a7b4f1d0e788b072e80.zip
hqemu-8c74b36605371d9ca1c20a7b4f1d0e788b072e80.tar.gz
opencores_eth: indicate autonegotiation completion
Indicate that autonegotiation is complete in the MII BMSR. This fixes networking on xtfpga platform in linux v4.5. Cc: qemu-stable@nongnu.org Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r--hw/net/opencores_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/opencores_eth.c b/hw/net/opencores_eth.c
index 09e239a..c6094fb 100644
--- a/hw/net/opencores_eth.c
+++ b/hw/net/opencores_eth.c
@@ -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;
OpenPOWER on IntegriCloud