aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com>2021-01-15 11:39:33 -0600
committerMartin Roth <martinroth@google.com>2021-03-10 23:07:08 +0000
commitad68e696126025d66e8e5b7f1e3c7b8e5832c639 (patch)
tree19735a69802fdc647607f186bffe04cc09590fef
parent612e403d53dc320fff7f3b5709d64c192d7464cf (diff)
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>
-rw-r--r--src/soc/amd/common/block/graphics/graphics.c11
1 files changed, 11 insertions, 0 deletions
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 <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 @@ 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)) {