diff options
author | David Andrey <david.andrey@netmodule.com> | 2013-04-04 17:13:07 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2013-04-30 09:39:23 (GMT) |
commit | 117cd4cc103443b442afc4d48c8d3920f6c171c0 (patch) | |
tree | 7232bd81036fc2d206b308e2e6159fa94a314b0a /drivers/net | |
parent | 7193653e8dddf8f232c19e16a4ca3c5052c71f09 (diff) | |
download | u-boot-117cd4cc103443b442afc4d48c8d3920f6c171c0.tar.xz |
net: gem: Pass phy address to init
Pass the PHY address to the driver init to
allow parallel use of both interfaces
Signed-off-by: David Andrey <david.andrey@netmodule.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/zynq_gem.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 2d717e9..316816d 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -427,7 +427,7 @@ static int zynq_gem_miiphy_write(const char *devname, uchar addr, return phywrite(dev, addr, reg, val); } -int zynq_gem_initialize(bd_t *bis, int base_addr) +int zynq_gem_initialize(bd_t *bis, int base_addr, int phy_addr) { struct eth_device *dev; struct zynq_gem_priv *priv; @@ -443,11 +443,7 @@ int zynq_gem_initialize(bd_t *bis, int base_addr) } priv = dev->priv; -#ifdef CONFIG_PHY_ADDR - priv->phyaddr = CONFIG_PHY_ADDR; -#else - priv->phyaddr = -1; -#endif + priv->phyaddr = phy_addr; sprintf(dev->name, "Gem.%x", base_addr); |