summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2007-05-05 08:12:30 +0200
committerWolfgang Denk <wd@denx.de>2007-05-05 21:35:59 +0200
commitac4cd59d59c9bf3f89cb7a344abf8184d678f562 (patch)
tree8a41f2696b9550c5e0142a7919fbc768cd739484 /cpu
parenta9d87e2707dcb249f6bb7f7ff7e00acd8cda9fd2 (diff)
5xxx: write MAC address to mac-address and local-mac-address
Some device trees have a mac-address property, some have local-mac-address, and some have both. To support all of these device trees, ftp_cpu_setup() should write the MAC address to mac-address and local-mac-address, if they exist. Signed-off-by: Timur Tabi <timur@freescale.com> Acked-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc5xxx/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c
index 73b166d999..1eac2bbfbe 100644
--- a/cpu/mpc5xxx/cpu.c
+++ b/cpu/mpc5xxx/cpu.c
@@ -131,5 +131,9 @@ ft_cpu_setup(void *blob, bd_t *bd)
p = ft_get_prop(blob, "/" OF_SOC "/ethernet@3000/mac-address", &len);
if (p != NULL)
memcpy(p, bd->bi_enetaddr, 6);
+
+ p = ft_get_prop(blob, "/" OF_SOC "/ethernet@3000/local-mac-address", &len);
+ if (p != NULL)
+ memcpy(p, bd->bi_enetaddr, 6);
}
#endif