Merge "drm/msm/dsi-staging: update frame transfer time calculations"

This commit is contained in:
qctecmdr
2019-07-06 04:53:51 -07:00
committed by Gerrit - the friendly Code Review server
5 changed files with 28 additions and 13 deletions

View File

@@ -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;
}