Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/23629
Change subject: WIP amd/stoneyridge: Add FCH restore functions ......................................................................
WIP amd/stoneyridge: Add FCH restore functions
This is currently a placeholder which mimics the traditional methodology for reinitializing the FCH during a resume. It will be unnecessary if AGESA is modified to execute these steps internally.
Change-Id: I12e302d8d690725d87caf63211eec7fcd67a7b0a Signed-off-by: Marshall Dawson marshalldawson3rd@gmail.com --- M src/soc/amd/stoneyridge/chip.c M src/soc/amd/stoneyridge/northbridge.c 2 files changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/23629/1
diff --git a/src/soc/amd/stoneyridge/chip.c b/src/soc/amd/stoneyridge/chip.c index f5efcfd..f95fc1d 100644 --- a/src/soc/amd/stoneyridge/chip.c +++ b/src/soc/amd/stoneyridge/chip.c @@ -123,6 +123,11 @@ post_code(0x46); do_agesawrapper(agesawrapper_amds3laterestore, "amds3laterestore"); + + /* Begin the FCH restore */ + post_code(0x47); + do_agesawrapper(agesawrapper_fchs3earlyrestore, + "fchs3earlyrestore"); } }
diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c index 2449077..c78d113 100644 --- a/src/soc/amd/stoneyridge/northbridge.c +++ b/src/soc/amd/stoneyridge/northbridge.c @@ -429,6 +429,9 @@ /* Must be called after PCI enumeration and resource allocation */ if (!romstage_handoff_is_resume()) do_agesawrapper(agesawrapper_amdinitmid, "amdinitmid"); + else + do_agesawrapper(agesawrapper_fchs3laterestore, + "fchs3laterestore"); }
void domain_set_resources(device_t dev)