diff options
author | Aaron Durbin <adurbin@chromium.org> | 2017-11-03 12:14:25 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-11-04 02:58:57 +0000 |
commit | 3173d4444ff96c5a65dde041b643785275adb9c9 (patch) | |
tree | abec8bfc084e924d3be8a4823c196f3c0d877ea5 /src/soc/amd/stoneyridge | |
parent | 174abc51806ff9ec70b7823318f1f9619abb0bbc (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/stoneyridge')
-rw-r--r-- | src/soc/amd/stoneyridge/northbridge.c | 3 |
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) |