[Intel-gfx] [PATCH 3/3] drm/i915: Updating the CPU_TRANSCODER for BXT DSI
Ramalingam C
ramalingam.c at intel.com
Thu Feb 11 15:05:42 UTC 2016
In case of BXT DSI we are updating the CPU_TRANSCODER
with appropriate value.
Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
Signed-off-by: Uma Shankar <uma.shankar at intel.com>
---
drivers/gpu/drm/i915/i915_drv.h | 2 ++
drivers/gpu/drm/i915/intel_display.c | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 65a2cd0..ef4b376 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -122,6 +122,8 @@ enum transcoder {
TRANSCODER_B,
TRANSCODER_C,
TRANSCODER_EDP,
+ TRANSCODER_MIPI_A,
+ TRANSCODER_MIPI_C,
I915_MAX_TRANSCODERS
};
#define transcoder_name(t) ((t) + 'A')
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index e47a75c..9715056 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -7851,6 +7851,11 @@ static void intel_get_dsi_pipe_timings(struct intel_crtc *crtc,
enc_to_intel_dsi(&encoder->base);
pipe_config->pipe_bpp =
dsi_pixel_format_bpp(intel_dsi->pixel_format);
+
+ if (intel_dsi->ports & (1 << PORT_A))
+ pipe_config->cpu_transcoder = TRANSCODER_MIPI_A;
+ else
+ pipe_config->cpu_transcoder = TRANSCODER_MIPI_C;
}
}
--
1.7.9.5
More information about the Intel-gfx
mailing list