aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/igd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/skylake/igd.c')
-rw-r--r--src/soc/intel/skylake/igd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/soc/intel/skylake/igd.c b/src/soc/intel/skylake/igd.c
index 93f05cc150..1cc30ad8f4 100644
--- a/src/soc/intel/skylake/igd.c
+++ b/src/soc/intel/skylake/igd.c
@@ -24,6 +24,7 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <drivers/intel/gma/i915_reg.h>
+#include <fsp/util.h>
#include <soc/acpi.h>
#include <soc/cpu.h>
#include <soc/pm.h>
@@ -33,6 +34,11 @@
#include <string.h>
#include <vboot/vbnv.h>
+uintptr_t fsp_soc_get_igd_bar(void)
+{
+ return find_resource(SA_DEV_IGD, PCI_BASE_ADDRESS_2)->base;
+}
+
u32 map_oprom_vendev(u32 vendev)
{
return SA_IGD_OPROM_VENDEV;
@@ -79,7 +85,7 @@ static void igd_init(struct device *dev)
gtt_write(DDI_BUF_CTL_A, ddi_buf_ctl);
}
- if (IS_ENABLED(CONFIG_GOP_SUPPORT))
+ if (IS_ENABLED(CONFIG_ADD_VBT_DATA_FILE))
return;
/* IGD needs to be Bus Master */
@@ -153,7 +159,7 @@ static unsigned long write_acpi_igd_opregion(device_t device,
igd_opregion_t *opregion;
/* If GOP is not used, exit here */
- if (!IS_ENABLED(CONFIG_GOP_SUPPORT))
+ if (!IS_ENABLED(CONFIG_ADD_VBT_DATA_FILE))
return current;
/* If IGD is disabled, exit here */