diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2017-01-10 15:44:47 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-01-26 17:59:17 +0100 |
commit | ec74f45e725c046423ecb6a7608678f22a8d7224 (patch) | |
tree | 58f151743f2c2055dfd44bd2ad66bce0054b6a5c /src/drivers/net/r8168.c | |
parent | f6776fa62c84ae516f84c99859d826f77d508079 (diff) | |
download | coreboot-ec74f45e725c046423ecb6a7608678f22a8d7224.tar.xz |
drivers/net/rt8168: Add a macaddress cbfsfile using Kconfig
The default macaddress in rt8168.c can be changed with a cbfsfile
called macaddress. This patch makes it possible to add such a file
using Kconfig at build time.
This also changes the name of the cbfsfile from "macaddress" to
"rt8168-macaddress" to avoid confusion.
Change-Id: I24674d8df11845167b837b79344427ce0c67f4fb
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/18088
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/drivers/net/r8168.c')
-rw-r--r-- | src/drivers/net/r8168.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/net/r8168.c b/src/drivers/net/r8168.c index 90171d5433..61c36e9149 100644 --- a/src/drivers/net/r8168.c +++ b/src/drivers/net/r8168.c @@ -88,14 +88,14 @@ static void program_mac_address(struct device *dev, u16 io_base) int i = 0; u8 mac[6] = { 0x00, 0xe0, 0x4c, 0x00, 0xc0, 0xb0 }; - if (!cbfs_boot_locate(&fh, "macaddress", &matchraw)) { + if (!cbfs_boot_locate(&fh, "rt8168-macaddress", &matchraw)) { if (rdev_readat(&fh.data, macstrbuf, 0, MACLEN) == MACLEN) get_mac_address(mac, macstrbuf); else printk(BIOS_ERR, "r8168: Error reading MAC from CBFS\n"); } else { - printk(BIOS_ERR, "r8168: 'macaddress' not found in CBFS, " - "using default 00:e0:4c:00:c0:b0\n"); + printk(BIOS_ERR, "r8168: 'rt8168-macaddress' not found in CBFS," + " using default 00:e0:4c:00:c0:b0\n"); } /* Reset NIC */ |