Merge "disp: msm: dsi: use single mode for RFI feature"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
b2c440bffe
@@ -3741,7 +3741,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;
|
||||
@@ -3800,21 +3800,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;
|
||||
|
||||
|
Reference in New Issue
Block a user