drm/msm/dsi-staging: update frame transfer time calculations
Change updates frame transfer time calculations. Frame threshold is provided as input to decide on the final transfer time. Panel dsi clock node followed by mdp transfer time node will take priority in selecting final transfer time than frame threshold time. Change-Id: I40c3abfc635cd9b338b705535612ac32e047ce6e Signed-off-by: Vara Reddy <varar@codeaurora.org>
此提交包含在:
@@ -1704,7 +1704,7 @@ static int dsi_enable_io_clamp(struct dsi_ctrl *dsi_ctrl,
|
||||
static int dsi_ctrl_dts_parse(struct dsi_ctrl *dsi_ctrl,
|
||||
struct device_node *of_node)
|
||||
{
|
||||
u32 index = 0;
|
||||
u32 index = 0, frame_threshold_time_us = 0;
|
||||
int rc = 0;
|
||||
|
||||
if (!dsi_ctrl || !of_node) {
|
||||
@@ -1730,6 +1730,15 @@ static int dsi_ctrl_dts_parse(struct dsi_ctrl *dsi_ctrl,
|
||||
dsi_ctrl->null_insertion_enabled = of_property_read_bool(of_node,
|
||||
"qcom,null-insertion-enabled");
|
||||
|
||||
rc = of_property_read_u32(of_node, "frame-threshold-time-us",
|
||||
&frame_threshold_time_us);
|
||||
if (rc) {
|
||||
pr_debug("frame-threshold-time not specified, defaulting\n");
|
||||
frame_threshold_time_us = 2666;
|
||||
}
|
||||
|
||||
dsi_ctrl->frame_threshold_time_us = frame_threshold_time_us;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
新增問題並參考
封鎖使用者