Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7393abed authored by Vara Reddy's avatar Vara Reddy Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dsi-staging: update dma watermarks with recommended values.



Disable the read and water watermarks for cmd dma in embedded mode
so that dsi fetches full command before starting kickoff.
And also update recommended watermark values for 
commands in non-embedded mode.

Change-Id: Ib04fdab7f71ded439baeb2d6728ddb36e2f32bc8
Signed-off-by: default avatarVara Reddy <varar@codeaurora.org>
parent dbeab897
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ void dsi_ctrl_hw_kickoff_non_embedded_mode(struct dsi_ctrl_hw *ctrl,
	reg = DSI_R32(ctrl, DSI_DMA_FIFO_CTRL);
	reg |= BIT(20);
	reg |= BIT(16);
	reg |= 0x33;/* Set READ and WRITE watermark levels to maximum */
	DSI_W32(ctrl, DSI_DMA_FIFO_CTRL, reg);

	DSI_W32(ctrl, DSI_DMA_CMD_OFFSET, cmd->offset);
+2 −3
Original line number Diff line number Diff line
@@ -618,9 +618,8 @@ void dsi_ctrl_hw_cmn_kickoff_command(struct dsi_ctrl_hw *ctrl,
	DSI_W32(ctrl, DSI_COMMAND_MODE_DMA_CTRL, reg);

	reg = DSI_R32(ctrl, DSI_DMA_FIFO_CTRL);
	reg &= ~BIT(20);/* Enable write watermark*/
	reg &= ~BIT(16);/* Enable read watermark */

	reg |= BIT(20);/* Disable write watermark*/
	reg |= BIT(16);/* Disable read watermark */

	DSI_W32(ctrl, DSI_DMA_FIFO_CTRL, reg);
	DSI_W32(ctrl, DSI_DMA_CMD_OFFSET, cmd->offset);