diff options
author | yongari <yongari@FreeBSD.org> | 2008-09-09 10:19:48 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2008-09-09 10:19:48 +0000 |
commit | f94dfca5261370e958ab0884a4bf8c736ba6752c (patch) | |
tree | c95ca0f2d5ef9a8c1249fc27ab1380cc30081421 /sys/dev/jme/if_jme.c | |
parent | 2dd7bef310577b6dacbc9a0203232028ed5562b8 (diff) | |
download | FreeBSD-src-f94dfca5261370e958ab0884a4bf8c736ba6752c.zip FreeBSD-src-f94dfca5261370e958ab0884a4bf8c736ba6752c.tar.gz |
Add workaround for CRC errors seen at 100Mbps on JMC250 A2.
While here update chip revision number of JMC250/JMC260 from the
latest datasheet.
Diffstat (limited to 'sys/dev/jme/if_jme.c')
-rw-r--r-- | sys/dev/jme/if_jme.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/dev/jme/if_jme.c b/sys/dev/jme/if_jme.c index 2096d4a..231f65a 100644 --- a/sys/dev/jme/if_jme.c +++ b/sys/dev/jme/if_jme.c @@ -1996,6 +1996,19 @@ jme_mac_config(struct jme_softc *sc) default: break; } + /* Workaround CRC errors at 100Mbps on JMC250 A2. */ + if (sc->jme_rev == DEVICEID_JMC250 && + sc->jme_chip_rev == DEVICEREVID_JMC250_A2) { + if (IFM_SUBTYPE(mii->mii_media_active) == IFM_100_TX) { + /* Extend interface FIFO depth. */ + jme_miibus_writereg(sc->jme_dev, sc->jme_phyaddr, + 0x1B, 0x0000); + } else { + /* Select default interface FIFO depth. */ + jme_miibus_writereg(sc->jme_dev, sc->jme_phyaddr, + 0x1B, 0x0004); + } + } CSR_WRITE_4(sc, JME_GHC, ghc); CSR_WRITE_4(sc, JME_RXMAC, rxmac); CSR_WRITE_4(sc, JME_TXMAC, txmac); |