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>
This commit is contained in:
Richard Spiegel 2018-08-16 11:26:40 -07:00 committed by Martin Roth
parent 84978674e3
commit 9010140c6d
1 changed files with 2 additions and 1 deletions

View File

@ -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;