From e71745bdf92653271d335fe146eb1fac7c19dae9 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Thu, 25 Jan 2018 12:34:00 -0700 Subject: vc/amd/00670F00: Introduce S3FinalRestore helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/23442 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Martin Roth --- src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/vendorcode/amd/pi') 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 @@ -209,6 +209,20 @@ AmdS3LateRestore ( return Dispatcher(S3LateParams); } +/********************************************************************** + * 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 **********************************************************************/ -- cgit v1.2.3