net: e1000: Add Kconfig options

Add Kconfig options in preparation for moving boards to use Kconfig.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
Simon Glass
2015-08-19 09:33:41 -06:00
committed by Joe Hershberger
parent c6d80a1522
commit c294ac5c16
3 changed files with 32 additions and 10 deletions

View File

@ -1221,13 +1221,6 @@ e1000_read_mac_addr(struct e1000_hw *hw, unsigned char enetaddr[6])
if (e1000_is_second_port(hw))
enetaddr[5] ^= 1;
#ifdef CONFIG_E1000_FALLBACK_MAC
if (!is_valid_ethaddr(nic->enetaddr)) {
unsigned char fb_mac[NODE_ADDRESS_SIZE] = CONFIG_E1000_FALLBACK_MAC;
memcpy(enetaddr, fb_mac, NODE_ADDRESS_SIZE);
}
#endif
return 0;
}
#endif