summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ad272be)
raw | patch | inline | side by side (parent: ad272be)
author | Sandeep Paulraj <s-paulraj@ti.com> | |
Thu, 21 Oct 2010 02:47:59 +0000 (22:47 -0400) | ||
committer | Sandeep Paulraj <s-paulraj@ti.com> | |
Thu, 21 Oct 2010 02:47:59 +0000 (22:47 -0400) |
This commit updates the way the MAC address is
calculated for the C6474. This is different from
the C6472.
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
calculated for the C6474. This is different from
the C6472.
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
src/device/c6474/c6474.c | patch | blob | history |
index 8431908bdbcc5506790b5486bda1759e73e0c3e9..868589fdde150f3e9f728844a1d87ae7880d5995 100644 (file)
--- a/src/device/c6474/c6474.c
+++ b/src/device/c6474/c6474.c
/* Read the e-fuse mac address */
macA = *((uint32 *)0x2880834);
- macB = *((uint32 *)0x2880834);
-
- maddr[0] = (macA >> 24) & 0xff;
- maddr[1] = (macA >> 16) & 0xff;
- maddr[2] = (macA >> 8) & 0xff;
- maddr[3] = (macA >> 0) & 0xff;
- maddr[4] = (macB >> 24) & 0xff;
- maddr[5] = (macB >> 16) & 0xff;
+ macB = *((uint32 *)0x2880838);
+
+ maddr[0] = (macB >> 8) & 0xff;
+ maddr[1] = (macB >> 0) & 0xff;
+ maddr[2] = (macA >> 24) & 0xff;
+ maddr[3] = (macA >> 16) & 0xff;
+ maddr[4] = (macA >> 8) & 0xff;
+ maddr[5] = (macA >> 0) & 0xff;
}