From ad68e696126025d66e8e5b7f1e3c7b8e5832c639 Mon Sep 17 00:00:00 2001 From: Nikolai Vyssotski Date: Fri, 15 Jan 2021 11:39:33 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/49865 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/soc/amd/common/block/graphics/graphics.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/soc/amd/common') diff --git a/src/soc/amd/common/block/graphics/graphics.c b/src/soc/amd/common/block/graphics/graphics.c index 5fc97deafc..550cde57e1 100644 --- a/src/soc/amd/common/block/graphics/graphics.c +++ b/src/soc/amd/common/block/graphics/graphics.c @@ -6,6 +6,7 @@ #include #include #include +#include #define ATIF_FUNCTION_VERIFY_INTERFACE 0x0 struct atif_verify_interface_output { @@ -118,6 +119,16 @@ static const char *graphics_acpi_name(const struct device *dev) 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)) { -- cgit v1.2.3