summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/mach-mx28evk.c
diff options
context:
space:
mode:
authorWolfram Sang2012-01-24 19:57:27 +0100
committerShawn Guo2012-01-31 16:08:52 +0100
commit5a91d7c8a654b2076e9f3b39544cb5e0a6c0aa3b (patch)
tree51d59600956a2cd4df78cbe6628a885eeb7848d7 /arch/arm/mach-mxs/mach-mx28evk.c
parentARM: mx28evk: Simplify GPIO requests (diff)
downloadkernel-qcow2-linux-5a91d7c8a654b2076e9f3b39544cb5e0a6c0aa3b.tar.gz
kernel-qcow2-linux-5a91d7c8a654b2076e9f3b39544cb5e0a6c0aa3b.tar.xz
kernel-qcow2-linux-5a91d7c8a654b2076e9f3b39544cb5e0a6c0aa3b.zip
ARM: mxs: read correct values when setting up MAC
Currently, the MAC address from the second ethernet is generated from the crypto-key (and not a customer reg) because of a wrong index to the ocotp array. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-mxs/mach-mx28evk.c')
-rw-r--r--arch/arm/mach-mxs/mach-mx28evk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mxs/mach-mx28evk.c b/arch/arm/mach-mxs/mach-mx28evk.c
index 816417608679..e386c142f93c 100644
--- a/arch/arm/mach-mxs/mach-mx28evk.c
+++ b/arch/arm/mach-mxs/mach-mx28evk.c
@@ -259,7 +259,7 @@ static int __init mx28evk_fec_get_mac(void)
* so hard-code Freescale OUI (00:04:9f) here.
*/
for (i = 0; i < 2; i++) {
- val = ocotp[i * 4];
+ val = ocotp[i];
mx28_fec_pdata[i].mac[0] = 0x00;
mx28_fec_pdata[i].mac[1] = 0x04;
mx28_fec_pdata[i].mac[2] = 0x9f;