diff options
author | Timur Tabi <timur@freescale.com> | 2007-05-05 08:12:30 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-05-05 08:12:30 +0200 |
commit | 2f550ab976405300f5b07bf2890800840d0aa05f (patch) | |
tree | af8603c78b751f8daedbd5ea4ce0d5c7b45e5bfc | |
parent | 864aa6a6a466fcb92bf32b1d7dba79cd709b52c9 (diff) | |
download | u-boot-imx-2f550ab976405300f5b07bf2890800840d0aa05f.zip u-boot-imx-2f550ab976405300f5b07bf2890800840d0aa05f.tar.gz u-boot-imx-2f550ab976405300f5b07bf2890800840d0aa05f.tar.bz2 |
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>
-rw-r--r-- | cpu/mpc5xxx/cpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c index 73b166d..1eac2bb 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 |