mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
Merge branch 'net' of git://www.denx.de/git/u-boot-microblaze
This commit is contained in:
commit
f763be224f
2 changed files with 9 additions and 0 deletions
|
@ -261,6 +261,10 @@ static int setup_phy(struct eth_device *dev)
|
|||
phydev->dev->name);
|
||||
return 0;
|
||||
}
|
||||
if (!phydev->link) {
|
||||
printf("%s: No link.\n", phydev->dev->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
switch (phydev->speed) {
|
||||
case 1000:
|
||||
|
|
|
@ -339,6 +339,11 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis)
|
|||
phy_config(phydev);
|
||||
phy_startup(phydev);
|
||||
|
||||
if (!phydev->link) {
|
||||
printf("%s: No link.\n", phydev->dev->name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
switch (phydev->speed) {
|
||||
case SPEED_1000:
|
||||
writel(ZYNQ_GEM_NWCFG_INIT | ZYNQ_GEM_NWCFG_SPEED1000,
|
||||
|
|
Loading…
Reference in a new issue