diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2018-08-22 02:14:04 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2018-10-15 14:11:00 +0000 |
commit | 7f922b0f6ad9b63c06e6243b0a485b05b36befb9 (patch) | |
tree | af40fab82bd897ef87f1df4fc9eed9518038ead2 /src/drivers/net/Makefile.inc | |
parent | 1541256f22bbb046a43ccebf73d994d4f4a53374 (diff) |
drivers/net/atl1e: Add driver
A shortcoming of this driver is that if multiple devices with the same PCI ID
are present and don't have an eeprom, they would all get the same macadress set.
The r8168 driver deals with such cases so it should be easy to implement if
needed.
Change-Id: I5c32df00e25453c350a45e7f1ee6834b89c4289f
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/28265
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/drivers/net/Makefile.inc')
-rw-r--r-- | src/drivers/net/Makefile.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/net/Makefile.inc b/src/drivers/net/Makefile.inc index 20dbe50fb1..33c82118d9 100644 --- a/src/drivers/net/Makefile.inc +++ b/src/drivers/net/Makefile.inc @@ -1,6 +1,7 @@ romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c ramstage-$(CONFIG_REALTEK_8168_RESET) += r8168.c +ramstage-$(CONFIG_ATHEROS_ATL1E_SETMAC) += atl1e.c ifneq ($(CONFIG_REALTEK_8168_MACADDRESS),"") $(obj)/rt8168-macaddress: $(DOTCONFIG) @@ -11,3 +12,13 @@ cbfs-files-$(CONFIG_REALTEK_8168_RESET) += rt8168-macaddress rt8168-macaddress-file := $(obj)/rt8168-macaddress rt8168-macaddress-type := raw endif + +ifneq ($(CONFIG_ATHEROS_ATL1E_MACADDRESS),"") +$(obj)/atl1e-macaddress: $(DOTCONFIG) + echo " Creating a file holding the atl1e macaddress" + printf %s $(CONFIG_ATHEROS_ATL1E_MACADDRESS) > $@ + +cbfs-files-$(CONFIG_ATHEROS_ATL1E_SETMAC) += atl1e-macaddress +atl1e-macaddress-file := $(obj)/atl1e-macaddress +atl1e-macaddress-type := raw +endif |