mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge branch 'net' of git://www.denx.de/git/u-boot-microblaze
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user