diff options
author | David Wu <david_wu@quantatw.com> | 2018-05-04 15:37:37 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-15 11:14:54 +0000 |
commit | 9a0d9e072fdb4994de7c46e50dace126fe6ce6a0 (patch) | |
tree | f9cfe20729944c6b1e8d2701df114ef863561614 /src/mainboard/lenovo/l520/mainboard.c | |
parent | 6cc4dea9f178ef7d89d3cc34692d2f7424af7399 (diff) |
drivers/net: Check "ethernet_mac" when the device index is 1
It is a special case for the Fizz firmware branch, when the device index
is 1, it will check "ethernet_mac" first and then "ethernet_mac0".
For single NIC: config.device_index = "1", maps to "ethernet_mac"
For multiple NICs: config.device_index = "1", maps to "ethernet_mac0"
BUG=b:77836343
BRANCH=Fizz
TEST=Add device index in device tree &&
Program the mac address to VPD in shell
vpd -s ethernet_mac=<mac address> or
vpd -s ethernet-mac[0-9]=<mac address> && reboot the system.
Ensure the MAC address was fetched correctly by ifconfig command.
Change-Id: I67fd2e999c8f9d8782f294fcafa84b8da970a3a6
Signed-off-by: David Wu <david_wu@quantatw.com>
Reviewed-on: https://review.coreboot.org/26051
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/lenovo/l520/mainboard.c')
0 files changed, 0 insertions, 0 deletions