diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2015-06-29 03:35:12 +0300 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-08-11 13:38:51 -0500 |
commit | fe0596cac3079a74eeee93e2940010a7a158c58d (patch) | |
tree | 442d4b55f5e7e6808e82f9e64005c3357d59827b /drivers/net/lpc32xx_eth.c | |
parent | 6e039b4c624e293fb86710efd12a17afe268d6e9 (diff) | |
download | u-boot-imx-fe0596cac3079a74eeee93e2940010a7a158c58d.zip u-boot-imx-fe0596cac3079a74eeee93e2940010a7a158c58d.tar.gz u-boot-imx-fe0596cac3079a74eeee93e2940010a7a158c58d.tar.bz2 |
net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id
The lpc32xx_eth_phylib_init() function is capable to connect LPC32XX
MAC to some specified phy by phy id, by chance the single user of
lpc32xx_eth has CONFIG_PHY_ADDR set to 0, however other boards may
have non-zero CONFIG_PHY_ADDR value, fix it.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/lpc32xx_eth.c')
-rw-r--r-- | drivers/net/lpc32xx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c index 72451a9..6033392 100644 --- a/drivers/net/lpc32xx_eth.c +++ b/drivers/net/lpc32xx_eth.c @@ -630,7 +630,7 @@ int lpc32xx_eth_initialize(bd_t *bis) eth_register(dev); #if defined(CONFIG_PHYLIB) - lpc32xx_eth_phylib_init(dev, 0); + lpc32xx_eth_phylib_init(dev, CONFIG_PHY_ADDR); #elif defined(CONFIG_MII) || defined(CONFIG_CMD_MII) miiphy_register(dev->name, mii_reg_read, mii_reg_write); #endif |