coreboot/src/drivers/net
Keith Hui 2b598a9472 drivers/net/r8168.c: Add option to program MAC address to ERI registers
On mainboard/asus/p8z77-v_le_plus, programmed MAC address is being
reverted with controller resets done at loading and unloading of Linux
r8169 kernel module.

Ghidra examination of vendor BIOS reveals an additional sequence to
program the MAC address into its ERI register block. This patch
adds code to replicate that sequence, gated by a Kconfig so it's
only included where necessary.

BUG=https://ticket.coreboot.org/issues/579
TEST=When applied with mainboard level changes in CB:87437, specified
MAC address now recognized and retained by Linux r8169 driver without
further work.

Change-Id: Iae33e24e564f9fba52acb16138fe89085d9eeb03
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87436
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-04-29 22:17:48 +00:00
..
phy/m88e1512 drivers: Add SPDX license headers to Kconfig files 2024-02-18 01:59:32 +00:00
atl1e.c include/device/device.h: Remove CHIP_NAME() macro 2024-01-31 09:51:58 +00:00
chip.h drivers/net/r8168: Add support for ACPI DmaProperty 2022-11-29 19:50:59 +00:00
Kconfig drivers/net/r8168.c: Add option to program MAC address to ERI registers 2025-04-29 22:17:48 +00:00
Makefile.mk driver/intel to /driver/ocp: Rename Makefiles from .inc to .mk 2024-01-24 10:04:10 +00:00
ne2k.c lib: Move IP checksum to commonlib 2024-02-02 22:48:27 +00:00
ns8390.h drivers: Use SPDX identifiers 2020-05-25 22:19:21 +00:00
r8168.c drivers/net/r8168.c: Add option to program MAC address to ERI registers 2025-04-29 22:17:48 +00:00