Skip to contentSkip to conversation

am335x: cpsw: make phy address configurable

PATCH In review yegorslists at googlemail.com 2 participants 2 messages Nov 26, 2012 – Dec 10, 2012 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 am335x: cpsw: make phy address configurable

From: 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
index af3d859..db04795 100644
@@ -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
index b6e48f8..c49752e 100644
@@ -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
#1 lore raw
Quoted 3 lines · Yegor Yefremov

From: 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>