diff options
-rw-r--r-- | board/davinci/da8xxevm/da850evm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index c2d2e8e882..516d86df50 100644 --- a/board/davinci/da8xxevm/da850evm.c +++ b/board/davinci/da8xxevm/da850evm.c @@ -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; |