|
@@ -4020,6 +4020,7 @@ void dsi_panel_calc_dsi_transfer_time(struct dsi_host_common_cfg *config,
|
|
|
u32 jitter_numer, jitter_denom, prefill_lines;
|
|
|
u32 default_prefill_lines, actual_prefill_lines, vtotal;
|
|
|
u32 min_threshold_us, prefill_time_us, max_transfer_us, packet_overhead;
|
|
|
+ u32 bits_per_symbol = 16, num_of_symbols = 7; /* For Cphy */
|
|
|
u16 bpp;
|
|
|
|
|
|
/* Packet overhead in bits,
|
|
@@ -4065,6 +4066,11 @@ void dsi_panel_calc_dsi_transfer_time(struct dsi_host_common_cfg *config,
|
|
|
|
|
|
timing->min_dsi_clk_hz = min_bitclk_hz;
|
|
|
|
|
|
+ if (config->phy_type == DSI_PHY_TYPE_CPHY) {
|
|
|
+ do_div(timing->min_dsi_clk_hz, bits_per_symbol);
|
|
|
+ timing->min_dsi_clk_hz *= num_of_symbols;
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
* Apart from prefill line time, we need to take into account RSCC mode threshold time. In
|
|
|
* cases where RSC is disabled, as jitter is no longer considered we need to make sure we
|