drm/i915: MIPI init count programming as generic parameter
authorShobhit Kumar <shobhit.kumar@intel.com>
Mon, 14 Apr 2014 05:48:25 +0000 (11:18 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 15 May 2014 20:44:05 +0000 (22:44 +0200)
Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dsi.c
drivers/gpu/drm/i915/intel_dsi.h

index 2795782b6743ee6c7013ad6891b04caf3f2cbf55..09b931881f95bcebe4b99e3ce98cb6dc47d59a9d 100644 (file)
@@ -525,6 +525,9 @@ static void intel_dsi_mode_set(struct intel_encoder *intel_encoder)
        /* recovery disables */
        I915_WRITE(MIPI_EOT_DISABLE(pipe), val);
 
+       /* in terms of low power clock */
+       I915_WRITE(MIPI_INIT_COUNT(pipe), intel_dsi->init_count);
+
        /* in terms of txbyteclkhs. actual high to low switch +
         * MIPI_STOP_STATE_STALL * MIPI_LP_BYTECLK.
         *
index 16494225ed143e659088d07ae72de480670b6610..be132c54cc463e635f250cb8d599d45b3fddceb9 100644 (file)
@@ -114,6 +114,8 @@ struct intel_dsi {
        u16 hs_to_lp_count;
        u16 clk_lp_to_hs_count;
        u16 clk_hs_to_lp_count;
+
+       u16 init_count;
 };
 
 static inline struct intel_dsi *enc_to_intel_dsi(struct drm_encoder *encoder)