diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2013-11-05 13:58:50 +0800 |
---|---|---|
committer | Rudolf Marek <r.marek@assembler.cz> | 2013-11-12 16:40:48 +0100 |
commit | 7b4a99c66569c74243f44ec7c09f0fd6e5f6802e (patch) | |
tree | eef8bf47c9579abea9781e0392a7bf8944158e7d /src/southbridge/amd/agesa/hudson/hudson.h | |
parent | baa782020e9d2d0ce7b6fd1c7c43411c9aa2b900 (diff) | |
download | coreboot-7b4a99c66569c74243f44ec7c09f0fd6e5f6802e.tar.xz |
AMD Hudson: Move function s3_resume_init_data to southbridge
Besides the AGESA static settings, the settings in mainboard/buildOpt.c also
change the final configuration. We need to make sure the settings in FchParam
in resume stage are the same as they were in cold boot stage, otherwise the
board can not wake up more than once.
Tested on AMD/Olive Hill, AMD/Parmer and ASRock/imb-a180.
(USB keyboard doesn't work when board wakes up. It is not introduced by this
patch. It needs more debugging.)
Change-Id: I5a5e5502080e358ffc3577dc6a40bb762844d998
Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: http://review.coreboot.org/3932
Tested-by: build bot (Jenkins)
Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
Diffstat (limited to 'src/southbridge/amd/agesa/hudson/hudson.h')
-rw-r--r-- | src/southbridge/amd/agesa/hudson/hudson.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/southbridge/amd/agesa/hudson/hudson.h b/src/southbridge/amd/agesa/hudson/hudson.h index 686dbb5e31..e8f80aaf4e 100644 --- a/src/southbridge/amd/agesa/hudson/hudson.h +++ b/src/southbridge/amd/agesa/hudson/hudson.h @@ -21,6 +21,7 @@ #define HUDSON_H #include <device/pci_ids.h> +#include <device/device.h> #include "chip.h" /* Power management index/data registers */ @@ -69,6 +70,8 @@ int acpi_is_wakeup_early(void); #else void hudson_enable(device_t dev); void __attribute__((weak)) hudson_setup_sata_phys(struct device *dev); +void s3_resume_init_data(void *FchParams); + #endif #endif /* HUDSON_H */ |