aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dsi.c
diff options
context:
space:
mode:
authorShobhit Kumar <shobhit.kumar@intel.com>2014-04-09 04:29:36 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-04-09 15:54:31 -0400
commit24d9c40140ff711d0f92db6975170c79209b2c8f (patch)
treee781426b8b45bb39b0207e2a41adb0e505f6bf2f /drivers/gpu/drm/i915/intel_dsi.c
parente1047028e224a38928bffa786bb8d981d294a1cf (diff)
drm/i915: Enable RANDOM resolution support for MIPI panels
Some MIPI panels might not have resolution which is a multiple of 64 like 1366x768. Enable this feature for such panels by default Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dsi.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dsi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c
index b5948b7f3c26..4e271c768fd0 100644
--- a/drivers/gpu/drm/i915/intel_dsi.c
+++ b/drivers/gpu/drm/i915/intel_dsi.c
@@ -552,9 +552,14 @@ static void intel_dsi_mode_set(struct intel_encoder *intel_encoder)
552 intel_dsi->clk_hs_to_lp_count << HS_LP_PWR_SW_CNT_SHIFT); 552 intel_dsi->clk_hs_to_lp_count << HS_LP_PWR_SW_CNT_SHIFT);
553 553
554 if (is_vid_mode(intel_dsi)) 554 if (is_vid_mode(intel_dsi))
555 /* Some panels might have resolution which is not a multiple of
556 * 64 like 1366 x 768. Enable RANDOM resolution support for such
557 * panels by default */
555 I915_WRITE(MIPI_VIDEO_MODE_FORMAT(pipe), 558 I915_WRITE(MIPI_VIDEO_MODE_FORMAT(pipe),
556 intel_dsi->video_frmt_cfg_bits | 559 intel_dsi->video_frmt_cfg_bits |
557 intel_dsi->video_mode_format); 560 intel_dsi->video_mode_format |
561 IP_TG_CONFIG |
562 RANDOM_DPI_DISPLAY_RESOLUTION);
558} 563}
559 564
560static enum drm_connector_status 565static enum drm_connector_status