HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44831 )
Change subject: mb/pcengines/apu1/mainboard.c: Use 'PCI_*' macros instead of magic number ......................................................................
mb/pcengines/apu1/mainboard.c: Use 'PCI_*' macros instead of magic number
Change-Id: Ibc2446d7b8d4334e26ca6335179f50b7abe301cb Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/mainboard/pcengines/apu1/mainboard.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/44831/1
diff --git a/src/mainboard/pcengines/apu1/mainboard.c b/src/mainboard/pcengines/apu1/mainboard.c index 45d326a..7e3ef08 100644 --- a/src/mainboard/pcengines/apu1/mainboard.c +++ b/src/mainboard/pcengines/apu1/mainboard.c @@ -301,7 +301,7 @@ return serial;
/* Read in the last 3 bytes of NIC's MAC address. */ - bar18 = pci_read_config32(dev, 0x18); + bar18 = pci_read_config32(dev, PCI_BASE_ADDRESS_2); bar18 &= 0xFFFFFFF0; for (i = 3; i < 6; i++) { mac_addr <<= 8;