[CABC,v1,1/3,RFC] drm/i915: Store the CABC enabled field parsed from VBT to dev_priv structure
diff mbox

Message ID 1436156167-16127-2-git-send-email-m.deepak@intel.com
State New
Headers show

Commit Message

Deepak M July 6, 2015, 4:16 a.m. UTC
Signed-off-by: Deepak M <m.deepak@intel.com>
---
 drivers/gpu/drm/i915/i915_drv.h   |    1 +
 drivers/gpu/drm/i915/intel_bios.c |    2 ++
 2 files changed, 3 insertions(+)

Patch
diff mbox

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 1dbd957..1d30cb7 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1470,6 +1470,7 @@  struct intel_vbt_data {
 		struct mipi_config *config;
 		struct mipi_pps_data *pps;
 		u8 seq_version;
+		u8 cabc_supported;
 		u32 size;
 		u8 *data;
 		u8 *sequence[MIPI_SEQ_MAX];
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
index 2ff9eb0..6d8f0d4 100644
--- a/drivers/gpu/drm/i915/intel_bios.c
+++ b/drivers/gpu/drm/i915/intel_bios.c
@@ -845,6 +845,8 @@  parse_mipi(struct drm_i915_private *dev_priv, const struct bdb_header *bdb)
 	if (!dev_priv->vbt.dsi.data)
 		return;
 
+	dev_priv->vbt.dsi.config->cabc_supported = config->cabc_supported;
+
 	/*
 	 * loop into the sequence data and split into multiple sequneces
 	 * There are only 5 types of sequences as of now