From 0334ed1fc3f060fb23d1bb1b2b508cd9567ada79 Mon Sep 17 00:00:00 2001 From: Adrian Salido-Moreno Date: Tue, 21 Oct 2014 10:37:01 -0700 Subject: [PATCH] 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 --- drivers/video/fbdev/msm/mdss_mdp_ctl.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } /*