diff options
author | Adam Ford <aford173@gmail.com> | 2019-05-29 17:36:58 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-06-05 19:14:02 +0300 |
commit | 4fde31e482db4a9ef047869abfaa331288652a15 (patch) | |
tree | 3afcc05a49ed3accc8a15949abfe4e984f987b53 /board/davinci/da8xxevm/da850evm.c | |
parent | 33ac2b560b58dd71d485618f70768e5c2d47c678 (diff) | |
download | u-boot-4fde31e482db4a9ef047869abfaa331288652a15.tar.xz |
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.
Signed-off-by: Adam Ford <aford173@gmail.com>
Diffstat (limited to 'board/davinci/da8xxevm/da850evm.c')
-rw-r--r-- | board/davinci/da8xxevm/da850evm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |