Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add linkup delay

  • Loading branch information...
commit 8220861d132d19c475a62132f6fb1c65b3bc6c0b 1 parent dd7576f
@ysat0 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 net/eth.c
View
4 net/eth.c
@@ -347,6 +347,7 @@ int eth_init(bd_t *bis)
{
int eth_number;
struct eth_device *old_current, *dev;
+ char *s;
if (!eth_current) {
puts ("No ethernet found.\n");
@@ -371,6 +372,9 @@ int eth_init(bd_t *bis)
debug("Trying %s\n", eth_current->name);
if (eth_current->init(eth_current,bis) >= 0) {
+ if (s = getenv("linkupdelay")) {
+ udelay(simple_strtoul(s, NULL, 10) * 100000);
+ }
eth_current->state = ETH_STATE_ACTIVE;
return 0;
Please sign in to comment.
Something went wrong with that request. Please try again.