summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-11 18:54:07 -0500
committerWolfgang Denk <wd@denx.de>2009-03-20 22:39:10 +0100
commit5013533467c1de731c2f0c9beb4b41ce3f07cbeb (patch)
tree1c23053830eea177ba997cf6c213a640f047945a
parent62c93d92f1b6266b2f33c5f403931b51cbd2a246 (diff)
downloadu-boot-imx-5013533467c1de731c2f0c9beb4b41ce3f07cbeb.zip
u-boot-imx-5013533467c1de731c2f0c9beb4b41ce3f07cbeb.tar.gz
u-boot-imx-5013533467c1de731c2f0c9beb4b41ce3f07cbeb.tar.bz2
lynxkdi: get mac address from environment
Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-rw-r--r--common/lynxkdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/lynxkdi.c b/common/lynxkdi.c
index 5f12b0d..17b0607 100644
--- a/common/lynxkdi.c
+++ b/common/lynxkdi.c
@@ -33,7 +33,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