mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 05:04:23 +08:00
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>
This commit is contained in:
parent
33ac2b560b
commit
4fde31e482
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user