summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/Kconfig
diff options
context:
space:
mode:
authorShelley Chen <shchen@chromium.org>2017-06-12 18:29:24 -0700
committerMartin Roth <martinroth@google.com>2017-06-20 03:17:51 +0200
commit0528b6132e6186c0fc63d1fbdc5c312c95c85d97 (patch)
treea346f976adaad8d6b869e39fa8c6dd3138aae335 /src/drivers/net/Kconfig
parent5aa64b97db0577f4ba2e83b36fc41d33453cfb3d (diff)
downloadcoreboot-0528b6132e6186c0fc63d1fbdc5c312c95c85d97.tar.gz
coreboot-0528b6132e6186c0fc63d1fbdc5c312c95c85d97.tar.bz2
coreboot-0528b6132e6186c0fc63d1fbdc5c312c95c85d97.zip
drivers/net/r8168: Get mac address from VPD
If RT8168_GET_MAC_FROM_VPD selected, use r8168 driver with some slight mods to check the VPD for a mac address. Otherwise, check for mac address in cbfs. Use default mac address if cannot find one. BUG=b:62090148, b:35775024 BRANCH=None TEST=Boot to kernel. Insert mac address into VPD vpd -s ethernet_mac=<address> reboot the system. Ensure we have ip address and corresponding mac address with ifconfig. Ensure ethernet controller shows up with lspci. Change-Id: I7ff29de2c4c3635dc786686cc071c68d51b0f975 Signed-off-by: Shelley Chen <shchen@chromium.org> Reviewed-on: https://review.coreboot.org/20008 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/net/Kconfig')
-rw-r--r--src/drivers/net/Kconfig7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drivers/net/Kconfig b/src/drivers/net/Kconfig
index 274a591444f0..67a138938e5b 100644
--- a/src/drivers/net/Kconfig
+++ b/src/drivers/net/Kconfig
@@ -6,10 +6,15 @@ config REALTEK_8168_RESET
config REALTEK_8168_MACADDRESS
string "Realtek rt8168 mac address"
- depends on REALTEK_8168_RESET
+ depends on REALTEK_8168_RESET && !RT8168_GET_MAC_FROM_VPD
default "00:e0:4c:00:c0:b0"
help
This is a string to set the mac address on a Realtek rt8168 card.
It must be in the form of "xx:xx:xx:xx:xx:xx", where x is a
hexadecimal number for it to be valid. Failing to do so will
result in the default macaddress being used.
+
+config RT8168_GET_MAC_FROM_VPD
+ bool
+ default n
+ select REALTEK_8168_RESET