public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] 5xxx: write MAC address to mac-address and local-mac-address
@ 2007-02-12 21:41 Timur Tabi
  0 siblings, 0 replies; 2+ messages in thread
From: Timur Tabi @ 2007-02-12 21:41 UTC (permalink / raw)
  To: u-boot

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>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot-Users] [PATCH] 5xxx: write MAC address to mac-address and local-mac-address
       [not found] <2.12.2007-az33.freescale.net-22-6330688617803700321080-559@freescale.com>
@ 2007-05-04 19:45 ` Timur Tabi
  0 siblings, 0 replies; 2+ messages in thread
From: Timur Tabi @ 2007-05-04 19:45 UTC (permalink / raw)
  To: u-boot

Could someone with a 5xxx system review and/or test this patch and ack or nack it?  The 
same patch has been applied to 83xx, 85xx, and 86xx, but I don't have a 5xxx system to 
test it on, so I was hoping someone who does could just check it out quickly.

Timur Tabi wrote:
> 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>
> ---
>  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


-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-04 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2.12.2007-az33.freescale.net-22-6330688617803700321080-559@freescale.com>
2007-05-04 19:45 ` [U-Boot-Users] [PATCH] 5xxx: write MAC address to mac-address and local-mac-address Timur Tabi
2007-02-12 21:41 Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox