diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2020-08-26 18:03:59 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-08-31 06:35:13 +0000 |
commit | 55a044c8ab818fa38f87817ca9db2361d2e58983 (patch) | |
tree | fb1e2cbcdc687e10813b85ee39d85df364e3779a /src/mainboard/pcengines/apu2 | |
parent | 978d85e15e6de1c30ee0f34aa13687c1a60a5ad8 (diff) | |
download | coreboot-55a044c8ab818fa38f87817ca9db2361d2e58983.tar.xz |
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>
Diffstat (limited to 'src/mainboard/pcengines/apu2')
-rw-r--r-- | src/mainboard/pcengines/apu2/mainboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/pcengines/apu2/mainboard.c b/src/mainboard/pcengines/apu2/mainboard.c index 939f7cbbb6..40941db69e 100644 --- a/src/mainboard/pcengines/apu2/mainboard.c +++ b/src/mainboard/pcengines/apu2/mainboard.c @@ -292,7 +292,7 @@ const char *smbios_mainboard_serial_number(void) return serial; /* 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 += 0x5400; for (i = 3; i < 6; i++) { |