diff options
author | Nate Case <ncase@xes-inc.com> | 2009-06-08 18:17:42 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-06-15 22:45:32 -0400 |
commit | 7b9edb9d619a1b3ecd35d832d4a93803d4f0ca5f (patch) | |
tree | 980a47a1d5fc882c5bae8de9d4f3c70b337e5af0 /arch/powerpc/boot | |
parent | b45cc9eff72e0871ffb83ae32c3dbca382909706 (diff) |
powerpc/85xx: cuboot - Fix up ethernet3 MAC address on MPC85xx
Some MPC85xx platforms do support 4 ethernet ports, so make sure the boot
wrapper fixes up all of them in the fdt.
Since MAC addresses are at the end of the bd_t structure there is no harm
in expanding to support 4 MAC address on older 85xx systems that might not
have that many.
Signed-off-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r-- | 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 6776a1a29f13..277ba4a79b5a 100644 --- a/arch/powerpc/boot/cuboot-85xx.c +++ b/arch/powerpc/boot/cuboot-85xx.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include "cuboot.h" | 15 | #include "cuboot.h" |
16 | 16 | ||
17 | #define TARGET_85xx | 17 | #define TARGET_85xx |
18 | #define TARGET_HAS_ETH3 | ||
18 | #include "ppcboot.h" | 19 | #include "ppcboot.h" |
19 | 20 | ||
20 | static bd_t bd; | 21 | static bd_t bd; |
@@ -27,6 +28,7 @@ static void platform_fixups(void) | |||
27 | dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); | 28 | dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); |
28 | dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); | 29 | dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); |
29 | dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); | 30 | dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); |
31 | dt_fixup_mac_address_by_alias("ethernet3", bd.bi_enet3addr); | ||
30 | dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq); | 32 | dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq); |
31 | 33 | ||
32 | /* Unfortunately, the specific model number is encoded in the | 34 | /* Unfortunately, the specific model number is encoded in the |