Merge tag 'drm-msm-next-2023-08-20' of https://gitlab.freedesktop.org/drm/msm into...
[sfrench/cifs-2.6.git] / drivers / gpu / drm / msm / dsi / dsi_host.c
index 3f6dfb4f9d5a6dabf33a78a5b3c43aa1ed3bbe45..5d9ec27c89d3a0538f283bc7149b6ed2aecf4c54 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/mfd/syscon.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_graph.h>
 #include <linux/of_irq.h>
 #include <linux/pinctrl/consumer.h>
@@ -752,6 +752,13 @@ static void dsi_ctrl_enable(struct msm_dsi_host *msm_host,
                /* Always insert DCS command */
                data |= DSI_CMD_CFG1_INSERT_DCS_COMMAND;
                dsi_write(msm_host, REG_DSI_CMD_CFG1, data);
+
+               if (msm_host->cfg_hnd->major == MSM_DSI_VER_MAJOR_6G &&
+                   msm_host->cfg_hnd->minor >= MSM_DSI_6G_VER_MINOR_V1_3) {
+                       data = dsi_read(msm_host, REG_DSI_CMD_MODE_MDP_CTRL2);
+                       data |= DSI_CMD_MODE_MDP_CTRL2_BURST_MODE;
+                       dsi_write(msm_host, REG_DSI_CMD_MODE_MDP_CTRL2, data);
+               }
        }
 
        dsi_write(msm_host, REG_DSI_CMD_DMA_CTRL,