All of lore.kernel.org
 help / color / mirror / Atom feed
From: vikas.korjani@intel.com
To: intel-gfx@lists.freedesktop.org
Subject: [RFC 8/8] drm/i915/bxt: Send PPS packet and compression mode command packet
Date: Wed, 12 Aug 2015 15:23:53 +0530	[thread overview]
Message-ID: <1439373233-8188-9-git-send-email-vikas.korjani@intel.com> (raw)
In-Reply-To: <1439373233-8188-1-git-send-email-vikas.korjani@intel.com>

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

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

Signed-off-by: vkorjani <vikas.korjani@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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2015-08-12  9:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12  9:53 [RFC 0/8] *** DSC Inital Design RFC *** vikas.korjani
2015-08-12  9:27 ` [RFC 7/8] drm: Add support for pps and compression mode command packet vikas.korjani
2015-08-12  9:53   ` vikas.korjani
2015-08-12  9:53   ` vikas.korjani
2015-08-12  9:53 ` [RFC 1/8] drm/915/bxt: Adding DSC VBT parameter and PPS structures vikas.korjani
2015-08-12  9:53 ` [RFC 2/8] drm/i915/bxt: Adding registers to support DSC vikas.korjani
2015-08-12  9:53 ` [RFC 3/8] drm/i915/bxt: Init PPS, Calculate DSI frequency and DPHY parameters for DSC vikas.korjani
2015-08-12 13:35   ` Daniel Vetter
2015-08-20  6:16     ` vkorjani
2015-08-12  9:53 ` [RFC 4/8] drm/i915/bxt: MIPI DSI Register Programming " vikas.korjani
2015-08-12  9:53 ` [RFC 5/8] drm/i915/bxt: Program MIPI_DPI_RESOLUTION " vikas.korjani
2015-08-12  9:53 ` [RFC 6/8] drm/i915/bxt: Enable/Disable DSC and programme PPS vikas.korjani
2015-08-12  9:53 ` vikas.korjani [this message]
2015-08-12 13:39 ` [RFC 0/8] *** DSC Inital Design RFC *** Daniel Vetter
2015-08-20  6:19   ` vkorjani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439373233-8188-9-git-send-email-vikas.korjani@intel.com \
    --to=vikas.korjani@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.