Skip to contentSkip to conversation

ARM: da850evm: Fix reading MAC from SPI

PATCH New Adam Ford 2 participants 2 messages May 29, 2019 – Jun 5, 2019

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 ARM: da850evm: Fix reading MAC from SPI

The MAC address is located at at the last 64K of SPI Flash, and it's 6 bytes long. This patch corrects both the length and starting byte of the MAC address.

board/davinci/da8xxevm/da850evm.c +1 -1
index 1bc26828bf..a90b7a3538 100644
@@ -62,7 +62,7 @@ static int get_mac_addr(u8 *addr)
 		return -1;
 	}
 
-	ret = spi_flash_read(flash, (CFG_MAC_ADDR_OFFSET) + 1, 7, addr);
+	ret = spi_flash_read(flash, (CFG_MAC_ADDR_OFFSET), 6, addr);
 	if (ret) {
 		printf("Error - unable to read MAC address from SPI flash.\n");
 		return -1;
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 ARM: da850evm: Fix reading MAC from SPI

board/davinci/da8xxevm/da850evm.c

Quoted 8 lines · Adam Ford

The MAC address is located at at the last 64K of SPI Flash, and it's 6 bytes long. This patch corrects both the length and starting byte of the MAC address.

board/davinci/da8xxevm/da850evm.c +0 -0
index 1bc26828bf..a90b7a3538 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190605/a5fb1e0c/attachment.sig>