Skip to content
Snippets Groups Projects
Commit ac4cd59d authored by Timur Tabi's avatar Timur Tabi Committed by Wolfgang Denk
Browse files

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: default avatarTimur Tabi <timur@freescale.com>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent a9d87e27
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment