diff options
author | Timothy Pearson <tpearson@raptorengineeringinc.com> | 2016-04-09 21:47:18 -0500 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-04-11 17:29:58 +0200 |
commit | 54e055179dd19307a8e8ac2c94b224ebe988ed5d (patch) | |
tree | 6190df9865ccae40b4fe6340587a733edf2b0daf /src/northbridge/amd/amdfam10/northbridge.c | |
parent | 2c34e3155c37a5bb2cca28334ca35eac98544c22 (diff) |
nb/amd/amdfam10: Write MCT variables to flash after PCI configuration
The SPI controller needs to be set up on devices such as the SP5100
before it can be accessed to write MCT backup data. Move the backup
data write after PCI configuration has been completed.
Change-Id: Ibcf31755242ac058407a422ce8aa33d6b0b293c7
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: https://review.coreboot.org/14305
Tested-by: build bot (Jenkins)
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/northbridge/amd/amdfam10/northbridge.c')
-rw-r--r-- | src/northbridge/amd/amdfam10/northbridge.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/northbridge/amd/amdfam10/northbridge.c b/src/northbridge/amd/amdfam10/northbridge.c index 06079dd98b..da93175b21 100644 --- a/src/northbridge/amd/amdfam10/northbridge.c +++ b/src/northbridge/amd/amdfam10/northbridge.c @@ -1975,10 +1975,6 @@ static void root_complex_enable_dev(struct device *dev) /* Do not delay UMA setup, as a device on the PCI bus may evaluate the global uma_memory variables already in its enable function. */ if (!done) { -#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) && IS_ENABLED(CONFIG_DIMM_DDR3) - save_mct_information_to_nvram(); -#endif - setup_bsp_ramtop(); setup_uma_memory(); done = 1; @@ -1992,7 +1988,14 @@ static void root_complex_enable_dev(struct device *dev) } } +static void root_complex_finalize(void *chip_info) { +#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) && IS_ENABLED(CONFIG_DIMM_DDR3) + save_mct_information_to_nvram(); +#endif +} + struct chip_operations northbridge_amd_amdfam10_root_complex_ops = { CHIP_NAME("AMD Family 10h/15h Root Complex") .enable_dev = root_complex_enable_dev, + .final = root_complex_finalize, }; |