projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ac2b5
)
ARM: da850evm: Fix reading MAC from SPI
author
Adam Ford
<aford173@gmail.com>
Wed, 29 May 2019 14:36:58 +0000
(09:36 -0500)
committer
Tom Rini
<trini@konsulko.com>
Wed, 5 Jun 2019 16:14:02 +0000
(12:14 -0400)
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 <aford173@gmail.com>
board/davinci/da8xxevm/da850evm.c
patch
|
blob
|
history
diff --git
a/board/davinci/da8xxevm/da850evm.c
b/board/davinci/da8xxevm/da850evm.c
index 1bc26828bfa207fd28908766d57b8bfac4fa36ae..a90b7a353833c02d20d1de8728a6cb1455cdf896 100644
(file)
--- 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;