summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/graphics/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/graphics/graphics.c')
-rw-r--r--src/soc/amd/common/block/graphics/graphics.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/soc/amd/common/block/graphics/graphics.c b/src/soc/amd/common/block/graphics/graphics.c
index 4d33cadf94..9dff18dd73 100644
--- a/src/soc/amd/common/block/graphics/graphics.c
+++ b/src/soc/amd/common/block/graphics/graphics.c
@@ -2,14 +2,15 @@
#include <acpi/acpi_device.h>
#include <acpi/acpigen.h>
+#include <amdblocks/graphics.h>
#include <amdblocks/vbios_cache.h>
#include <boot/coreboot_tables.h>
#include <bootmode.h>
#include <bootstate.h>
#include <console/console.h>
+#include <device/device.h>
#include <device/pci.h>
#include <fmap.h>
-#include <fsp/graphics.h>
#include <security/vboot/vbios_cache_hash_tpm.h>
#include <soc/intel/common/vbt.h>
#include <timestamp.h>
@@ -177,15 +178,8 @@ static void graphics_set_resources(struct device *const dev)
static void graphics_dev_init(struct device *const dev)
{
- if (CONFIG(RUN_FSP_GOP)) {
- struct resource *res = probe_resource(dev, PCI_BASE_ADDRESS_0);
-
- if (res && res->base)
- fsp_report_framebuffer_info(res->base, LB_FB_ORIENTATION_NORMAL);
- else
- printk(BIOS_ERR, "%s: Unable to find resource for %s\n",
- __func__, dev_path(dev));
- }
+ if (CONFIG(RUN_FSP_GOP))
+ fsp_graphics_init(dev);
/* Initialize PCI device, load/execute BIOS Option ROM */
pci_dev_init(dev);