summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>2018-08-16 11:26:40 -0700
committerMartin Roth <martinroth@google.com>2018-08-17 21:11:07 +0000
commit9010140c6d5fc12eabe6f10332eaf0a1a02b40ca (patch)
treec60f32c4acd33347dc95f2fe6248885815addb2d /src/soc/amd
parent84978674e30965b00ea512579b05af5ad890102f (diff)
downloadcoreboot-9010140c6d5fc12eabe6f10332eaf0a1a02b40ca.tar.xz
soc/amd/common/block/pi/agesawarapper.c: Use find_image()
In preparation to removing AmdLib, replace function LibAmdLocateImage() with its ported version find_image(). BUG=b:112625809 TEST=Build and boot grunt. Change-Id: I75ddd55f7e3e7f2cd7914f97c99b62690ae70660 Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/28164 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/block/pi/agesawrapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/pi/agesawrapper.c b/src/soc/amd/common/block/pi/agesawrapper.c
index c464b2960c..5cd04ba24a 100644
--- a/src/soc/amd/common/block/pi/agesawrapper.c
+++ b/src/soc/amd/common/block/pi/agesawrapper.c
@@ -28,6 +28,7 @@
#include <timestamp.h>
#include <amdblocks/s3_resume.h>
#include <amdblocks/agesawrapper.h>
+#include <amdblocks/image.h>
#include <amdblocks/BiosCallOuts.h>
#include <soc/southbridge.h>
@@ -604,7 +605,7 @@ const void *agesawrapper_locate_module(const CHAR8 name[8])
if (!agesa)
return NULL;
- image = LibAmdLocateImage(agesa, agesa + file_size, 4096, name);
+ image = amd_find_image(agesa, agesa + file_size, 4096, name);
if (!image)
return NULL;