|
@@ -105,11 +105,11 @@ static int altera_tse_mdio_read(struct mii_bus *bus, int mii_id, int regnum)
|
|
|
|
|
|
/* set MDIO address */
|
|
/* set MDIO address */
|
|
csrwr32((mii_id & 0x1f), priv->mac_dev,
|
|
csrwr32((mii_id & 0x1f), priv->mac_dev,
|
|
- tse_csroffs(mdio_phy0_addr));
|
|
|
|
|
|
+ tse_csroffs(mdio_phy1_addr));
|
|
|
|
|
|
/* get the data */
|
|
/* get the data */
|
|
return csrrd32(priv->mac_dev,
|
|
return csrrd32(priv->mac_dev,
|
|
- tse_csroffs(mdio_phy0) + regnum * 4) & 0xffff;
|
|
|
|
|
|
+ tse_csroffs(mdio_phy1) + regnum * 4) & 0xffff;
|
|
}
|
|
}
|
|
|
|
|
|
static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
|
|
static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
|
|
@@ -120,10 +120,10 @@ static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
|
|
|
|
|
|
/* set MDIO address */
|
|
/* set MDIO address */
|
|
csrwr32((mii_id & 0x1f), priv->mac_dev,
|
|
csrwr32((mii_id & 0x1f), priv->mac_dev,
|
|
- tse_csroffs(mdio_phy0_addr));
|
|
|
|
|
|
+ tse_csroffs(mdio_phy1_addr));
|
|
|
|
|
|
/* write the data */
|
|
/* write the data */
|
|
- csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy0) + regnum * 4);
|
|
|
|
|
|
+ csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|