Browse Source

disp: msm: dsi: update DSI command buffer for MSM

This change takes care of swapping the byte order in
the packet header to work with MSM hardware.

Change-Id: I38b92a277aa4677d53e263ce343721b8f2b48497
Signed-off-by: Satya Rama Aditya Pinapala <[email protected]>
Satya Rama Aditya Pinapala 5 years ago
parent
commit
649c6b973d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      msm/dsi/dsi_ctrl.c

+ 4 - 0
msm/dsi/dsi_ctrl.c

@@ -1018,6 +1018,10 @@ static int dsi_ctrl_copy_and_pad_cmd(struct dsi_ctrl *dsi_ctrl,
 	if (packet->payload_length > 0)
 	if (packet->payload_length > 0)
 		buf[3] |= BIT(6);
 		buf[3] |= BIT(6);
 
 
+	/* Swap BYTE order in the command buffer for MSM */
+	buf[0] = packet->header[1];
+	buf[1] = packet->header[2];
+	buf[2] = packet->header[0];
 
 
 	/* send embedded BTA for read commands */
 	/* send embedded BTA for read commands */
 	cmd_type = buf[2] & 0x3f;
 	cmd_type = buf[2] & 0x3f;