diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-04-04 06:54:27 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2016-04-04 07:08:26 +0300 |
commit | 34fe9af09b98e849f52bb62c4668a39f1cd8150e (patch) | |
tree | bf110ae536e92ddc14876a1f4b0fee7ae4730830 /hw | |
parent | a648c137383d84bc4f95696e5293978d9541a26e (diff) |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/net/opencores_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/opencores_eth.c b/hw/net/opencores_eth.c index 09e239a65a..c6094fbb56 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; |