diff options
author | Dan Murphy <dmurphy@ti.com> | 2016-05-02 15:46:02 -0500 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-05-24 11:42:05 -0500 |
commit | 0a71cd77290ca317ecf6f15984a91abbee741e09 (patch) | |
tree | cfce0a12fcc7c5fe0f1c447f98f488914e57ab13 /drivers | |
parent | 3c221af3c3bb4eadc0899f611c8b25bb95a1e09f (diff) | |
download | u-boot-imx-0a71cd77290ca317ecf6f15984a91abbee741e09.zip u-boot-imx-0a71cd77290ca317ecf6f15984a91abbee741e09.tar.gz u-boot-imx-0a71cd77290ca317ecf6f15984a91abbee741e09.tar.bz2 |
net: phy: dp83867: Add SGMII helper for configuration
The code assumed that if the interface is not RGMII configured
then it must be SGMII configured. This device has the ability
to support most of the MII interfaces. Therefore add the
helper for SGMII and only configure the device if the interface is
configured for SGMII.
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/ti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/ti.c b/drivers/net/phy/ti.c index 4c19353..c55dd97 100644 --- a/drivers/net/phy/ti.c +++ b/drivers/net/phy/ti.c @@ -221,7 +221,7 @@ static int dp83867_config(struct phy_device *phydev) (dp83867->fifo_depth << DP83867_PHYCR_FIFO_DEPTH_SHIFT)); if (ret) goto err_out; - } else { + } else if (phy_interface_is_sgmii(phydev)) { phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, (BMCR_ANENABLE | BMCR_FULLDPLX | BMCR_SPEED1000)); |