summaryrefslogtreecommitdiff
path: root/net/eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/eth.c')
-rw-r--r--net/eth.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/eth.c b/net/eth.c
index 217e8853f5..30cdc5ebc1 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -56,6 +56,10 @@ static struct {
static unsigned int eth_rcv_current = 0, eth_rcv_last = 0;
#endif
+#ifdef CONFIG_FASTBOOT
+int eth_init_skipped;
+#endif
+
static struct eth_device *eth_devices, *eth_current;
struct eth_device *eth_get_dev(void)
@@ -330,6 +334,15 @@ int eth_init(bd_t *bis)
{
struct eth_device* old_current;
+#ifdef CONFIG_FASTBOOT
+ if (eth_init_skipped) {
+ DECLARE_GLOBAL_DATA_PTR;
+ eth_init_skipped = 0;
+ printf("Net: ");
+ eth_initialize(gd->bd);
+ }
+#endif
+
if (!eth_current) {
puts ("No ethernet found.\n");
return -1;