]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/lynxkdi.c
Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash
[people/ms/u-boot.git] / common / lynxkdi.c
index 5f12b0dc176854ba54f144dcd92b2cc14c62d8a7..b23135bd75e6452a6597f77b341e8ec300b62d90 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <asm/processor.h>
 #include <image.h>
+#include <net.h>
 
 #include <lynxkdi.h>
 
@@ -33,7 +34,7 @@ void lynxkdi_boot (image_header_t *hdr)
        kbd = gd->bd;
        parms->clock_ref = kbd->bi_busfreq;
        parms->dramsz = kbd->bi_memsize;
-       memcpy (parms->ethaddr, kbd->bi_enetaddr, 6);
+       eth_getenv_enetaddr("ethaddr", parms->ethaddr);
        mtspr (SPRN_SPRG2, 0x0020);
 
        /* Do a simple check for Bluecat so we can pass the