[Intel-gfx] [RFC 8/8] drm/i915/bxt: Send PPS packet and compression mode command packet

vikas.korjani at intel.com vikas.korjani at intel.com
Wed Aug 12 02:53:53 PDT 2015


From: vkorjani <vikas.korjani at intel.com>

This patch adds code to send pps long packet and compression mode
command packet.

Signed-off-by: vkorjani <vikas.korjani at intel.com>
---
 drivers/gpu/drm/i915/intel_dsi_panel_vbt.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
index f893d37..813b126 100644
--- a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
+++ b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
@@ -292,6 +292,15 @@ static void generic_exec_sequence(struct intel_dsi *intel_dsi, const u8 *data)
 	}
 }
 
+static void send_dsc_pps_block(struct intel_dsi *intel_dsi)
+{
+	u8 *data;
+
+	mipi_dsi_dsc_pps_write_buffer(dsi_device, NULL, 0);
+	data = (u8 *)&intel_dsi->pps_data;
+	mipi_dsi_dsc_pps_write_buffer(dsi_device, data, 128);
+}
+
 static int vbt_panel_prepare(struct drm_panel *panel)
 {
 	struct vbt_panel *vbt_panel = to_vbt_panel(panel);
@@ -306,6 +315,9 @@ static int vbt_panel_prepare(struct drm_panel *panel)
 	sequence = dev_priv->vbt.dsi.sequence[MIPI_SEQ_INIT_OTP];
 	generic_exec_sequence(intel_dsi, sequence);
 
+	if (intel_dsi->dsc_enable)
+		send_dsc_pps_block(intel_dsi);
+
 	return 0;
 }
 
-- 
1.7.9.5



More information about the Intel-gfx mailing list