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:
parent
84978674e3
commit
9010140c6d
|
@ -28,6 +28,7 @@
|
||||||
#include <timestamp.h>
|
#include <timestamp.h>
|
||||||
#include <amdblocks/s3_resume.h>
|
#include <amdblocks/s3_resume.h>
|
||||||
#include <amdblocks/agesawrapper.h>
|
#include <amdblocks/agesawrapper.h>
|
||||||
|
#include <amdblocks/image.h>
|
||||||
#include <amdblocks/BiosCallOuts.h>
|
#include <amdblocks/BiosCallOuts.h>
|
||||||
#include <soc/southbridge.h>
|
#include <soc/southbridge.h>
|
||||||
|
|
||||||
|
@ -604,7 +605,7 @@ const void *agesawrapper_locate_module(const CHAR8 name[8])
|
||||||
if (!agesa)
|
if (!agesa)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
image = LibAmdLocateImage(agesa, agesa + file_size, 4096, name);
|
image = amd_find_image(agesa, agesa + file_size, 4096, name);
|
||||||
|
|
||||||
if (!image)
|
if (!image)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue