From: Yegor Yefremov Date: Mon, 26 Nov 2012 04:03:16 +0000 (+0000) Subject: am335x: cpsw: make phy address configurable X-Git-Tag: v2013.01-rc3~9^2~1^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cdd0729ead6845262c3b22f6f5a51d67dd0010ed;p=u-boot am335x: cpsw: make phy address configurable Signed-off-by: Yegor Yefremov --- diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index af3d8593eb..db04795dfc 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; diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 6abe544b77..aed40c8927 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -301,6 +301,7 @@ #define CONFIG_NET_MULTI #define CONFIG_PHY_GIGE #define CONFIG_PHYLIB +#define CONFIG_PHY_ADDR 0 #define CONFIG_PHY_SMSC #define CONFIG_NAND