diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-11-06 21:51:56 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-11-06 21:51:56 +0000 |
commit | ce7410ab255a69e674e0bce5d5f85bc1a9d42277 (patch) | |
tree | 78fdf6e49006193991a4c2fb8dfba28d8f472deb /sys/dev | |
parent | 8f8e785946ac9cc8201200572f864d93eb3d0537 (diff) |
load DSP code on all 5421's for now.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/mii/brgphy.c | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index 4d22d1c1309..a4d6aeab442 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brgphy.c,v 1.40 2005/11/06 07:25:05 brad Exp $ */ +/* $OpenBSD: brgphy.c,v 1.41 2005/11/06 21:51:55 brad Exp $ */ /* * Copyright (c) 2000 @@ -555,22 +555,20 @@ brgphy_bcm5411_dspcode(struct mii_softc *sc) void brgphy_bcm5421_dspcode(struct mii_softc *sc) { - u_int16_t data; - - if (sc->mii_rev == 1) { - /* Set Class A mode */ - PHY_WRITE(sc, BRGPHY_MII_AUXCTL, 0x1007); - data = PHY_READ(sc, BRGPHY_MII_AUXCTL); - PHY_WRITE(sc, BRGPHY_MII_AUXCTL, data | 0x0400); - - /* Set FFE gamma override to -0.125 */ - PHY_WRITE(sc, BRGPHY_MII_AUXCTL, 0x0007); - data = PHY_READ(sc, BRGPHY_MII_AUXCTL); - PHY_WRITE(sc, BRGPHY_MII_AUXCTL, data | 0x0800); - PHY_WRITE(sc, BRGPHY_MII_DSP_ADDR_REG, 0x000a); - data = PHY_READ(sc, BRGPHY_MII_DSP_RW_PORT); - PHY_WRITE(sc, BRGPHY_MII_DSP_RW_PORT, data | 0x0200); - } + uint16_t data; + + /* Set Class A mode */ + PHY_WRITE(sc, BRGPHY_MII_AUXCTL, 0x1007); + data = PHY_READ(sc, BRGPHY_MII_AUXCTL); + PHY_WRITE(sc, BRGPHY_MII_AUXCTL, data | 0x0400); + + /* Set FFE gamma override to -0.125 */ + PHY_WRITE(sc, BRGPHY_MII_AUXCTL, 0x0007); + data = PHY_READ(sc, BRGPHY_MII_AUXCTL); + PHY_WRITE(sc, BRGPHY_MII_AUXCTL, data | 0x0800); + PHY_WRITE(sc, BRGPHY_MII_DSP_ADDR_REG, 0x000a); + data = PHY_READ(sc, BRGPHY_MII_DSP_RW_PORT); + PHY_WRITE(sc, BRGPHY_MII_DSP_RW_PORT, data | 0x0200); } void |