mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
drm/msm/dsi-staging: update mdp transfer time preference
With this change, mdp transfer time updated to userspace will be the preferred dtsi entry, when both dsi clock and mdp transfer time nodes are set. Change-Id: I37cd55e3d6f3f0f78f4ca4bddf921f6cf743c1b9 Signed-off-by: Vara Reddy <varar@codeaurora.org>
This commit is contained in:
parent
9e60a4854b
commit
b712eb76c9
2 changed files with 9 additions and 3 deletions
|
|
@ -5930,9 +5930,7 @@ int dsi_display_get_modes(struct dsi_display *display,
|
|||
display_mode.timing.min_dsi_clk_hz;
|
||||
|
||||
display_mode.priv_info->mdp_transfer_time_us =
|
||||
display_mode.priv_info->dsi_transfer_time_us;
|
||||
display_mode.timing.mdp_transfer_time_us =
|
||||
display_mode.timing.dsi_transfer_time_us;
|
||||
display_mode.timing.mdp_transfer_time_us;
|
||||
}
|
||||
|
||||
is_split_link = host->split_link.split_link_enabled;
|
||||
|
|
|
|||
|
|
@ -3646,6 +3646,14 @@ void dsi_panel_calc_dsi_transfer_time(struct dsi_host_common_cfg *config,
|
|||
frame_threshold_us;
|
||||
}
|
||||
|
||||
timing->mdp_transfer_time_us = timing->dsi_transfer_time_us;
|
||||
|
||||
/* Force update mdp xfer time to hal,if clk and mdp xfer time is set */
|
||||
if (mode->priv_info->mdp_transfer_time_us && timing->clk_rate_hz) {
|
||||
timing->mdp_transfer_time_us =
|
||||
mode->priv_info->mdp_transfer_time_us;
|
||||
}
|
||||
|
||||
/* Calculate pclk_khz to update modeinfo */
|
||||
pclk_rate_hz = mult_frac(min_bitclk_hz, frame_time_us,
|
||||
timing->dsi_transfer_time_us);
|
||||
|
|
|
|||
Loading…
Reference in a new issue