summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Voltz <andy.voltz@timesys.com>2013-06-06 11:48:44 -0400
committerAnthony Felice <tony.felice@timesys.com>2014-04-04 14:36:16 -0400
commitb2faeb5472fe71b505a103388b8a8540dbd47134 (patch)
tree48618a7541d68466ed895666725ce4de15a9f805
parentd815c9701e9c6990f4311f24b7f15c48e077dbba (diff)
mvf_fec.c: Fix mac address read to match fuse layout for latest u-boot3.0-vybrid-ts2.16
-rw-r--r--arch/arm/mach-mvf/mvf_fec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-mvf/mvf_fec.c b/arch/arm/mach-mvf/mvf_fec.c
index d51f20519c0b..1ab339b9252e 100644
--- a/arch/arm/mach-mvf/mvf_fec.c
+++ b/arch/arm/mach-mvf/mvf_fec.c
@@ -35,13 +35,13 @@ static int fec_get_mac_addr(unsigned char *mac)
unsigned int value;
value = readl(MVF_IO_ADDRESS(MVF_FEC_BASE_ADDR) + ENET_PALR);
- mac[2] = value & 0xff;
- mac[3] = (value >> 8) & 0xff;
- mac[4] = (value >> 16) & 0xff;
- mac[5] = (value >> 24) & 0xff;
+ mac[3] = value & 0xff;
+ mac[2] = (value >> 8) & 0xff;
+ mac[1] = (value >> 16) & 0xff;
+ mac[0] = (value >> 24) & 0xff;
value = readl(MVF_IO_ADDRESS(MVF_FEC_BASE_ADDR) + ENET_PAUR);
- mac[0] = (value >> 16) & 0xff;
- mac[1] = (value >> 24) & 0xff;
+ mac[5] = (value >> 16) & 0xff;
+ mac[4] = (value >> 24) & 0xff;
return 0;
}