summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2017-11-03 12:14:25 -0600
committerAaron Durbin <adurbin@chromium.org>2017-11-04 02:58:57 +0000
commit3173d4444ff96c5a65dde041b643785275adb9c9 (patch)
treeabec8bfc084e924d3be8a4823c196f3c0d877ea5 /src/soc/amd
parent174abc51806ff9ec70b7823318f1f9619abb0bbc (diff)
soc/amd/stoneyridge: don't open code known literals
We have macros for register addresses. Use it for MMIO_CONF_BASE instead of duplicating a literal again. Change-Id: I2250ea990bafa234fd5fea48d2690edcfc4982b9 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/22316 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/stoneyridge/northbridge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c
index 39001af58f..dfe4724c96 100644
--- a/src/soc/amd/stoneyridge/northbridge.c
+++ b/src/soc/amd/stoneyridge/northbridge.c
@@ -21,6 +21,7 @@
#include <chip.h>
#include <console/console.h>
#include <cpu/amd/mtrr.h>
+#include <cpu/amd/amdfam15.h>
#include <cpu/cpu.h>
#include <cpu/x86/msr.h>
#include <device/device.h>
@@ -97,7 +98,7 @@ static void read_resources(device_t dev)
* It is not honored by the coreboot resource allocator if it is in
* the CPU_CLUSTER.
*/
- mmconf_resource(dev, 0xc0010058);
+ mmconf_resource(dev, MMIO_CONF_BASE);
}
static void set_resource(device_t dev, struct resource *resource, u32 nodeid)