summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/apollolake/graphics.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/graphics.c b/src/soc/intel/apollolake/graphics.c
index c873825f01..90859d5c48 100644
--- a/src/soc/intel/apollolake/graphics.c
+++ b/src/soc/intel/apollolake/graphics.c
@@ -27,7 +27,13 @@
uintptr_t fsp_soc_get_igd_bar(void)
{
- return find_resource(SA_DEV_IGD, PCI_BASE_ADDRESS_2)->base;
+ device_t dev = SA_DEV_IGD;
+
+ /* Check if IGD PCI device is disabled */
+ if (!dev->enabled)
+ return 0;
+
+ return find_resource(dev, PCI_BASE_ADDRESS_2)->base;
}
static void igd_set_resources(struct device *dev)