Merge "disp: msm: dsi: Reset DMA trigger mux when initializing DSI_TRIG_CTRL"

This commit is contained in:
qctecmdr
2023-01-24 00:55:50 -08:00
committed by Gerrit - the friendly Code Review server
2 changed files with 4 additions and 2 deletions

View File

@@ -253,7 +253,8 @@ void dsi_ctrl_hw_22_reset_trigger_controls(struct dsi_ctrl_hw *ctrl,
0x0, 0x2, 0x1, 0x4, 0x5, 0x6 };
reg = DSI_R32(ctrl, DSI_TRIG_CTRL);
reg &= ~(0xF);
reg &= ~BIT(16); /* Reset DMA_TRG_MUX */
reg &= ~(0xF); /* Reset DMA_TRIGGER_SEL */
reg |= (trigger_map[cfg->dma_cmd_trigger] & 0xF);
DSI_W32(ctrl, DSI_TRIG_CTRL, reg);

View File

@@ -1920,7 +1920,8 @@ void dsi_ctrl_hw_cmn_init_cmddma_trig_ctrl(struct dsi_ctrl_hw *ctrl,
/* Initialize the default trigger used for Command Mode DMA path. */
reg = DSI_R32(ctrl, DSI_TRIG_CTRL);
reg &= ~(0xF);
reg &= ~BIT(16); /* Reset DMA_TRG_MUX */
reg &= ~(0xF); /* Reset DMA_TRIGGER_SEL */
reg |= (trigger_map[cfg->dma_cmd_trigger] & 0xF);
DSI_W32(ctrl, DSI_TRIG_CTRL, reg);
}