mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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:

committed by
Joe Hershberger

parent
c6d80a1522
commit
c294ac5c16
@ -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
|
||||
|
Reference in New Issue
Block a user