disp: msm: dsi: use single mode for RFI feature
Currently, a different dsi_display_mode is created for each combination of RFI frequency, but only one of those modes is reported to the user. Hence, it is not necessary to create multiple RFI modes anymore. This change removes code to inflate the list of modes by the number of RFI frequencies, removes pclk from the mode name as it will change dynamically. Change-Id: I0714de5e53f46d9f142da1f4562f65793de38e54 Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
This commit is contained in:
@@ -3728,7 +3728,7 @@ int dsi_panel_get_mode_count(struct dsi_panel *panel)
|
||||
const u32 SINGLE_MODE_SUPPORT = 1;
|
||||
struct dsi_parser_utils *utils;
|
||||
struct device_node *timings_np, *child_np;
|
||||
int num_dfps_rates, num_bit_clks;
|
||||
int num_dfps_rates;
|
||||
int num_video_modes = 0, num_cmd_modes = 0;
|
||||
int count, rc = 0;
|
||||
u32 dsc_count = 0, lm_count = 0;
|
||||
@@ -3787,21 +3787,16 @@ int dsi_panel_get_mode_count(struct dsi_panel *panel)
|
||||
num_dfps_rates = !panel->dfps_caps.dfps_support ? 1 :
|
||||
panel->dfps_caps.dfps_list_len;
|
||||
|
||||
num_bit_clks = !panel->dyn_clk_caps.dyn_clk_support ? 1 :
|
||||
panel->dyn_clk_caps.bit_clk_list_len;
|
||||
|
||||
/*
|
||||
* Inflate num_of_modes by fps and bit clks in dfps.
|
||||
* Inflate num_of_modes by fps in dfps.
|
||||
* Single command mode for video mode panels supporting
|
||||
* panel operating mode switch.
|
||||
*/
|
||||
num_video_modes = num_video_modes * num_bit_clks * num_dfps_rates;
|
||||
num_video_modes = num_video_modes * num_dfps_rates;
|
||||
|
||||
if ((panel->panel_mode == DSI_OP_VIDEO_MODE) &&
|
||||
(panel->panel_mode_switch_enabled))
|
||||
num_cmd_modes = 1;
|
||||
else
|
||||
num_cmd_modes = num_cmd_modes * num_bit_clks;
|
||||
|
||||
panel->num_display_modes = num_video_modes + num_cmd_modes;
|
||||
|
||||
|
مرجع در شماره جدید
Block a user