X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Flynxkdi.c;h=b23135bd75e6452a6597f77b341e8ec300b62d90;hb=201532a69cf7e7a84bff354fdab45947425d22b4;hp=a5dc88769f161bdc63ed64656ec388b63790dd27;hpb=20c93959330aba8b5bbdbfde1ef319e99eba235d;p=u-boot diff --git a/common/lynxkdi.c b/common/lynxkdi.c index a5dc88769f..b23135bd75 100644 --- a/common/lynxkdi.c +++ b/common/lynxkdi.c @@ -16,8 +16,8 @@ #include #include #include +#include -#if defined(CONFIG_LYNXKDI) #include DECLARE_GLOBAL_DATA_PTR; @@ -34,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 @@ -66,5 +66,3 @@ void lynxkdi_boot (image_header_t *hdr) #else #error "Lynx KDI support not implemented for configured CPU" #endif - -#endif /* CONFIG_LYNXKDI */