* [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx
@ 2009-06-08 22:17 Nate Case
2009-06-11 2:54 ` Kumar Gala
2009-06-11 3:48 ` Kumar Gala
0 siblings, 2 replies; 5+ messages in thread
From: Nate Case @ 2009-06-08 22:17 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, Nate Case
MPC85xx platforms do support 4 ethernet ports, so make sure the boot
wrapper fixes up all of them in the fdt.
Signed-off-by: Nate Case <ncase@xes-inc.com>
---
arch/powerpc/boot/cuboot-85xx.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/boot/cuboot-85xx.c b/arch/powerpc/boot/cuboot-85xx.c
index 6776a1a..277ba4a 100644
--- a/arch/powerpc/boot/cuboot-85xx.c
+++ b/arch/powerpc/boot/cuboot-85xx.c
@@ -15,6 +15,7 @@
#include "cuboot.h"
#define TARGET_85xx
+#define TARGET_HAS_ETH3
#include "ppcboot.h"
static bd_t bd;
@@ -27,6 +28,7 @@ static void platform_fixups(void)
dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);
dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr);
+ dt_fixup_mac_address_by_alias("ethernet3", bd.bi_enet3addr);
dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq);
/* Unfortunately, the specific model number is encoded in the
--
1.6.0.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx
2009-06-08 22:17 [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx Nate Case
@ 2009-06-11 2:54 ` Kumar Gala
2009-06-11 3:40 ` Nathaniel Case
2009-06-11 3:48 ` Kumar Gala
1 sibling, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2009-06-11 2:54 UTC (permalink / raw)
To: Nate Case; +Cc: linuxppc-dev
On Jun 8, 2009, at 5:17 PM, Nate Case wrote:
> MPC85xx platforms do support 4 ethernet ports, so make sure the boot
> wrapper fixes up all of them in the fdt.
>
> Signed-off-by: Nate Case <ncase@xes-inc.com>
> ---
> arch/powerpc/boot/cuboot-85xx.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/boot/cuboot-85xx.c b/arch/powerpc/boot/
> cuboot-85xx.c
> index 6776a1a..277ba4a 100644
> --- a/arch/powerpc/boot/cuboot-85xx.c
> +++ b/arch/powerpc/boot/cuboot-85xx.c
> @@ -15,6 +15,7 @@
> #include "cuboot.h"
>
> #define TARGET_85xx
> +#define TARGET_HAS_ETH3
This is problematic in that we'd be changing the memory layout of the
bd_t and not ALL 85xx's have HAS_ETH3 set.
- k
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx
2009-06-11 2:54 ` Kumar Gala
@ 2009-06-11 3:40 ` Nathaniel Case
2009-06-11 3:44 ` Kumar Gala
0 siblings, 1 reply; 5+ messages in thread
From: Nathaniel Case @ 2009-06-11 3:40 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev
On Wed, 10 Jun 2009 21:54:01 -0500, Kumar Gala <galak@kernel.crashing.org>
wrote:
>> #define TARGET_85xx
>> +#define TARGET_HAS_ETH3
>
> This is problematic in that we'd be changing the memory layout of the
> bd_t and not ALL 85xx's have HAS_ETH3 set.
It shouldn't be problematic. The bi_enet3addr field is at the end of the
structure on MPC85xx. The only fields after it in ppcboot.h are
4xx-specific
fields. I believe the MAC addresses were placed at the end of the struct
for
this very reason.
--
Nate Case <ncase@xes-inc.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx
2009-06-11 3:40 ` Nathaniel Case
@ 2009-06-11 3:44 ` Kumar Gala
0 siblings, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2009-06-11 3:44 UTC (permalink / raw)
To: Nathaniel Case; +Cc: linuxppc-dev
On Jun 10, 2009, at 10:40 PM, Nathaniel Case wrote:
> On Wed, 10 Jun 2009 21:54:01 -0500, Kumar Gala <galak@kernel.crashing.org
> >
> wrote:
>>> #define TARGET_85xx
>>> +#define TARGET_HAS_ETH3
>>
>> This is problematic in that we'd be changing the memory layout of the
>> bd_t and not ALL 85xx's have HAS_ETH3 set.
>
> It shouldn't be problematic. The bi_enet3addr field is at the end
> of the
> structure on MPC85xx. The only fields after it in ppcboot.h are
> 4xx-specific
> fields. I believe the MAC addresses were placed at the end of the
> struct
> for
> this very reason.
ahh, good point... I'll add this detail to the commit message when I
commit this.
- k
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx
2009-06-08 22:17 [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx Nate Case
2009-06-11 2:54 ` Kumar Gala
@ 2009-06-11 3:48 ` Kumar Gala
1 sibling, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2009-06-11 3:48 UTC (permalink / raw)
To: Nate Case; +Cc: linuxppc-dev
On Jun 8, 2009, at 5:17 PM, Nate Case wrote:
> MPC85xx platforms do support 4 ethernet ports, so make sure the boot
> wrapper fixes up all of them in the fdt.
>
> Signed-off-by: Nate Case <ncase@xes-inc.com>
> ---
> arch/powerpc/boot/cuboot-85xx.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
applied (updated commit message) to next
- k
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-06-11 3:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08 22:17 [PATCH] powerpc/boot: cuboot: Fix up ethernet3 MAC address on MPC85xx Nate Case
2009-06-11 2:54 ` Kumar Gala
2009-06-11 3:40 ` Nathaniel Case
2009-06-11 3:44 ` Kumar Gala
2009-06-11 3:48 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).