From 9010140c6d5fc12eabe6f10332eaf0a1a02b40ca Mon Sep 17 00:00:00 2001 From: Richard Spiegel Date: Thu, 16 Aug 2018 11:26:40 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/28164 Reviewed-by: Martin Roth Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/pi/agesawrapper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/amd/common/block/pi') 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 #include #include +#include #include #include @@ -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; -- cgit v1.2.3