]> Git Repo - J-u-boot.git/commitdiff
net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id
authorVladimir Zapolskiy <[email protected]>
Mon, 29 Jun 2015 00:35:12 +0000 (03:35 +0300)
committerJoe Hershberger <[email protected]>
Tue, 11 Aug 2015 18:38:51 +0000 (13:38 -0500)
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 <[email protected]>
Acked-by: Albert ARIBAUD (3ADEV) <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/lpc32xx_eth.c

index 72451a96e4de099631ef22bec3a859ced7ed4fec..6033392945c12806de358c1345ef63342670b5d5 100644 (file)
@@ -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
This page took 0.037203 seconds and 4 git commands to generate.