diff options
| author | Adrian Salido-Moreno <adrianm@codeaurora.org> | 2014-10-21 10:37:01 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:35:26 -0700 |
| commit | 0334ed1fc3f060fb23d1bb1b2b508cd9567ada79 (patch) | |
| tree | 61d7939e6d2cbd05e0021bf59239f54b2b00b403 | |
| parent | 16306ffd81c2e92cc674f65e7a2b416ee137971e (diff) | |
msm: mdss: increase mdp core clock to match panel pixel clock
In case of command mode panel, the pixel clock can be increased in order
to finish transfer faster. In such cases we can increase the core clock
in order to match the pixel clock and finish the transfer faster.
Change-Id: I44a01e42c687ce20d4dbfa068478ad438433a581
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_ctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c index 450f5ce49efd..68f68e227f6c 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c +++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c @@ -684,6 +684,10 @@ static void mdss_mdp_perf_calc_mixer(struct mdss_mdp_mixer *mixer, if (!pinfo) /* perf for bus writeback */ perf->bw_overlap = fps * mixer->width * mixer->height * 3; + /* for command mode, run as fast as the link allows us */ + else if ((pinfo->type == MIPI_CMD_PANEL) && + (pinfo->mipi.dsi_pclk_rate > perf->mdp_clk_rate)) + perf->mdp_clk_rate = pinfo->mipi.dsi_pclk_rate; } /* |
