diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2018-01-25 12:34:00 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-02-12 17:00:46 +0000 |
commit | e71745bdf92653271d335fe146eb1fac7c19dae9 (patch) | |
tree | c9078568416f38b50f8f101c636f54bb1a92c45c /src/vendorcode | |
parent | dd2c7b12bba6f7949a9b557f3d1d3060630bbd86 (diff) | |
download | coreboot-e71745bdf92653271d335fe146eb1fac7c19dae9.tar.xz |
vc/amd/00670F00: Introduce S3FinalRestore helper
The Arch2008 spec describes an AmdS3FinalRestore Entry Point that
coreboot has been missing. Add the helper function that can call
into the blob to execute this.
BUG=b:69614064
Change-Id: Ic72feb0406cd1d0d5c23e391c2464e12c9e10007
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/23442
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/vendorcode')
-rw-r--r-- | src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c index 32036bf68b..c92790e79c 100644 --- a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c +++ b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c @@ -210,6 +210,20 @@ AmdS3LateRestore ( } /********************************************************************** + * Interface call: AmdS3FinalRestore + **********************************************************************/ +AGESA_STATUS +AmdS3FinalRestore ( + IN OUT AMD_S3FINAL_PARAMS *S3FinalParams + ) +{ + MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); + S3FinalParams->StdHeader.Func = AMD_S3FINAL_RESTORE; + if (!Dispatcher) return AGESA_UNSUPPORTED; + return Dispatcher(S3FinalParams); +} + +/********************************************************************** * Interface call: AmdInitRtb **********************************************************************/ AGESA_STATUS |