From mboxrd@z Thu Jan 1 00:00:00 1970 From: OTRS Notification Master Date: Mon, 12 Feb 2007 22:50:03 +0100 Subject: [U-Boot-Users] [DNX#2007021242000043] [PATCH] 5xxx: write MAC address to mac-address and [...] Message-ID: <1171317003.829015.274017933@castor.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2007021242000043] was created: > 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 > --- > 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 813aa79..383e418 100644 > --- a/cpu/mpc5xxx/cpu.c > +++ b/cpu/mpc5xxx/cpu.c > @@ -127,5 +127,9 @@ ft_cpu_setup(void *blob, bd_t *bd) > p = ft_get_prop(blob, "/" OF_SOC "/ethernet at 3000/mac-address", &len); > if (p != NULL) > memcpy(p, bd->bi_enetaddr, 6); > + > + p = ft_get_prop(blob, "/" OF_SOC "/ethernet at 3000/local-mac-address", > &len); > + if (p != NULL) > + memcpy(p, bd->bi_enetaddr, 6); > } > #endif > -- > 1.4.4 Your U-Boot support team