mb/pcengines/apu2/mainboard.c: Use 'PCI_BASE_ADDRESS_0' instead of magic number

Change-Id: I21378acd6408a4fae5600a54a41f695e54221dc2
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44829
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2020-08-26 18:03:59 +02:00 committed by Patrick Georgi
parent 978d85e15e
commit 55a044c8ab
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ const char *smbios_mainboard_serial_number(void)
return serial; return serial;
/* Read in the last 3 bytes of NIC's MAC address. */ /* Read in the last 3 bytes of NIC's MAC address. */
bar10 = pci_read_config32(dev, 0x10); bar10 = pci_read_config32(dev, PCI_BASE_ADDRESS_0);
bar10 &= 0xFFFE0000; bar10 &= 0xFFFE0000;
bar10 += 0x5400; bar10 += 0x5400;
for (i = 3; i < 6; i++) { for (i = 3; i < 6; i++) {