summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/graphics/graphics.c10
-rw-r--r--src/soc/intel/common/block/include/intelblocks/graphics.h4
2 files changed, 9 insertions, 5 deletions
diff --git a/src/soc/intel/common/block/graphics/graphics.c b/src/soc/intel/common/block/graphics/graphics.c
index eac38f8f15..7150babc83 100644
--- a/src/soc/intel/common/block/graphics/graphics.c
+++ b/src/soc/intel/common/block/graphics/graphics.c
@@ -16,7 +16,7 @@
#include <types.h>
/* SoC Overrides */
-__weak void graphics_soc_init(struct device *dev)
+__weak void graphics_soc_panel_init(struct device *dev)
{
/*
* User needs to implement SoC override in case wishes
@@ -34,8 +34,12 @@ static void gma_init(struct device *const dev)
{
intel_gma_init_igd_opregion();
- /* SoC specific configuration. */
- graphics_soc_init(dev);
+ /* SoC specific panel init/configuration.
+ If FSP has already run/configured the IGD, we can assume the
+ panel/backlight control have already been set up sufficiently
+ and that we shouldn't attempt to reconfigure things. */
+ if (!CONFIG(RUN_FSP_GOP))
+ graphics_soc_panel_init(dev);
if (CONFIG(SOC_INTEL_CONFIGURE_DDI_A_4_LANES) && !acpi_is_wakeup_s3()) {
const u32 ddi_buf_ctl = graphics_gtt_read(DDI_BUF_CTL_A);
diff --git a/src/soc/intel/common/block/include/intelblocks/graphics.h b/src/soc/intel/common/block/include/intelblocks/graphics.h
index e65be4a1af..3669c7733d 100644
--- a/src/soc/intel/common/block/include/intelblocks/graphics.h
+++ b/src/soc/intel/common/block/include/intelblocks/graphics.h
@@ -12,11 +12,11 @@
*/
/*
- * Perform Graphics Initialization in ramstage
+ * Perform Graphics/Panel Initialization in ramstage
* Input:
* struct device *dev: device structure
*/
-void graphics_soc_init(struct device *dev);
+void graphics_soc_panel_init(struct device *dev);
/* i915 controller info for ACPI backlight controls */
const struct i915_gpu_controller_info *