Martin Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/49865 )
Change subject: soc/amd/common/block/graphics/graphics: GOP: implement vbt_get() ......................................................................
soc/amd/common/block/graphics/graphics: GOP: implement vbt_get()
Even though AMD does not need VBT we still need to implement the vbt_get() function to not break the build with GOP driver enabled (see fsps_return_value_handler() in fsp2_0/silicon_init.c
BUG=b:171234996 BRANCH=Zork
Change-Id: I80a5131a9852a05998b55b847243748d24cf535f Signed-off-by: Nikolai Vyssotski nikolai.vyssotski@amd.corp-partner.google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/49865 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Raul Rangel rrangel@chromium.org --- M src/soc/amd/common/block/graphics/graphics.c 1 file changed, 11 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Raul Rangel: Looks good to me, approved
diff --git a/src/soc/amd/common/block/graphics/graphics.c b/src/soc/amd/common/block/graphics/graphics.c index 5fc97de..550cde5 100644 --- a/src/soc/amd/common/block/graphics/graphics.c +++ b/src/soc/amd/common/block/graphics/graphics.c @@ -6,6 +6,7 @@ #include <device/pci_ids.h> #include <console/console.h> #include <fsp/graphics.h> +#include <soc/intel/common/vbt.h>
#define ATIF_FUNCTION_VERIFY_INTERFACE 0x0 struct atif_verify_interface_output { @@ -118,6 +119,16 @@ return "IGFX"; }
+/* + * Even though AMD does not need VBT we still need to implement the + * vbt_get() function to not break the build with GOP driver enabled + * (see fsps_return_value_handler() in fsp2_0/silicon_init.c + */ +void *vbt_get(void) +{ + return NULL; +} + static void graphics_dev_init(struct device *const dev) { if (CONFIG(RUN_FSP_GOP)) {