am335x: cpsw: make phy address configurable
PATCH 1/1 am335x: cpsw: make phy address configurable
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
--- drivers/net/cpsw.c | 5 ++++- include/configs/am335x_evm.h | 1 + 2 files changed, 5 insertions(+), 1 deletions(-)
drivers/net/cpsw.c +4 -1
@@ -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;
include/configs/am335x_evm.h +1 -0
@@ -272,6 +272,7 @@#define CONFIG_NET_MULTI #define CONFIG_PHY_GIGE #define CONFIG_PHYLIB +#define CONFIG_PHY_ADDR 0#define CONFIG_PHY_SMSC #endif /* ! __CONFIG_AM335X_EVM_H */
Signature · 1 line
1.7.7
Quoted 3 lines · Yegor Yefremov
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121210/74ced291/attachment.pgp>