davinci: da850evm: Make EEPROM MAC code configurable
authorAdam Ford <aford173@gmail.com>
Fri, 8 Sep 2017 22:01:17 +0000 (17:01 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 13 Sep 2017 13:24:26 +0000 (09:24 -0400)
commit919ccb9fe55febcc628e43dc1fea00ecc71e8bdf
tree3599e032898b05c6fa77d7df54c0ae86596e71b7
parent7672d9d582abfc380b8160c294b5de5bf97286be
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: Adam Ford <aford173@gmail.com>
board/davinci/da8xxevm/da850evm.c