Re: [U-Boot] [PATCH] ARM: da850evm: Fix reading MAC from SPI

2019-06-05 Thread Tom Rini
On Wed, May 29, 2019 at 09:36:58AM -0500, Adam Ford wrote:

> 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.
> 
> Signed-off-by: Adam Ford 
> 
> diff --git a/board/davinci/da8xxevm/da850evm.c 
> b/board/davinci/da8xxevm/da850evm.c
> index 1bc26828bf..a90b7a3538 100644

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH] ARM: da850evm: Fix reading MAC from SPI

2019-05-29 Thread 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.

Signed-off-by: Adam Ford 

diff --git a/board/davinci/da8xxevm/da850evm.c 
b/board/davinci/da8xxevm/da850evm.c
index 1bc26828bf..a90b7a3538 100644
--- a/board/davinci/da8xxevm/da850evm.c
+++ b/board/davinci/da8xxevm/da850evm.c
@@ -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;
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot