提交 cdd0729e 编写于 作者: Y Yegor Yefremov 提交者: Tom Rini

am335x: cpsw: make phy address configurable

Signed-off-by: NYegor Yefremov <yegorslists@googlemail.com>
上级 cfd4ff6f
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册