summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2012-11-26 04:03:16 +0000
committerTom Rini <trini@ti.com>2012-12-10 08:56:38 -0700
commitcdd0729ead6845262c3b22f6f5a51d67dd0010ed (patch)
tree9bfe81a7ce5b6876f14fb0edfc7a874cb43ed1f5 /drivers/net
parentcfd4ff6f0f4877654d05ddc31d767ef608c8dc3f (diff)
downloadu-boot-imx-cdd0729ead6845262c3b22f6f5a51d67dd0010ed.zip
u-boot-imx-cdd0729ead6845262c3b22f6f5a51d67dd0010ed.tar.gz
u-boot-imx-cdd0729ead6845262c3b22f6f5a51d67dd0010ed.tar.bz2
am335x: cpsw: make phy address configurable
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/cpsw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index af3d859..db04795 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -920,7 +920,10 @@ static int cpsw_phy_init(struct eth_device *dev, struct cpsw_slave *slave)
SUPPORTED_100baseT_Full |
SUPPORTED_1000baseT_Full);
- phydev = phy_connect(priv->bus, 0, dev, slave->data->phy_if);
+ phydev = phy_connect(priv->bus,
+ CONFIG_PHY_ADDR,
+ dev,
+ slave->data->phy_if);
phydev->supported &= supported;
phydev->advertising = phydev->supported;