summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/cuboot-85xx.c
diff options
context:
space:
mode:
authorNate Case <ncase@xes-inc.com>2009-06-08 17:17:42 -0500
committerKumar Gala <galak@kernel.crashing.org>2009-06-15 21:45:32 -0500
commit7b9edb9d619a1b3ecd35d832d4a93803d4f0ca5f (patch)
tree980a47a1d5fc882c5bae8de9d4f3c70b337e5af0 /arch/powerpc/boot/cuboot-85xx.c
parentb45cc9eff72e0871ffb83ae32c3dbca382909706 (diff)
downloadlinux-7b9edb9d619a1b3ecd35d832d4a93803d4f0ca5f.tar.bz2
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/cuboot-85xx.c')
-rw-r--r--arch/powerpc/boot/cuboot-85xx.c2
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 @@
#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