Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a91d7c8 authored by Wolfram Sang's avatar Wolfram Sang Committed by Shawn Guo
Browse files

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: default avatarWolfram Sang <w.sang@pengutronix.de>
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
parent c5f98794
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -255,7 +255,7 @@ static int __init m28evk_fec_get_mac(void)
	 * so hard-code DENX OUI (C0:E5:4E) here.
	 */
	for (i = 0; i < 2; i++) {
		val = ocotp[i * 4];
		val = ocotp[i];
		mx28_fec_pdata[i].mac[0] = 0xC0;
		mx28_fec_pdata[i].mac[1] = 0xE5;
		mx28_fec_pdata[i].mac[2] = 0x4E;
+1 −1
Original line number Diff line number Diff line
@@ -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;