Skip to content
Snippets Groups Projects
Commit 919ccb9f authored by Adam Ford's avatar Adam Ford Committed by Tom Rini
Browse files

davinci: da850evm: Make EEPROM MAC code configurable


There was a check for CONFIG_MAC_ADDR_IN_EEPROM and
a check for CONFIG_MAC_ADDR_IN_SPIFLASH, however
some of the EEPROM related code wasn't encapsulated
inside the #if defined statement so the EEPROM code
could get executed even when it wasn't explicitly
enabled or wanted.

Signed-off-by: default avatarAdam Ford <aford173@gmail.com>
parent 7672d9d5
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,8 @@ int misc_init_r(void)
enetaddr_found = eth_env_get_enetaddr("ethaddr", env_enetaddr);
#endif
#ifdef CONFIG_MAC_ADDR_IN_SPIFLASH
int spi_mac_read;
uchar buff[6];
......@@ -167,7 +169,8 @@ int misc_init_r(void)
"with the MAC address in the environment\n");
printf("Default using MAC address from environment\n");
}
#endif
#elif defined(CONFIG_MAC_ADDR_IN_EEPROM)
uint8_t enetaddr[8];
int eeprom_mac_read;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment