disp: msm: dsi: support LP mode for DCS brightness setting

DCS brightness settng can only use HS mode. Add a new
DT property for LP mode choose for DCS brightness setting.

Change-Id: Ibe5867fe344776871eb3a410a8d79d347775f3d4
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
这个提交包含在:
Yuan Zhao
2020-07-31 12:09:03 +08:00
提交者 Gerrit - the friendly Code Review server
父节点 f11da41a6e
当前提交 c810238fb4
修改 3 个文件,包含 38 行新增6 行删除

查看文件

@@ -8021,7 +8021,8 @@ static void dsi_display_handle_poms_te(struct work_struct *work)
{
struct dsi_display *display = NULL;
struct delayed_work *dw = to_delayed_work(work);
struct mipi_dsi_device *dsi;
struct mipi_dsi_device *dsi = NULL;
struct dsi_panel *panel = NULL;
int rc = 0;
display = container_of(dw, struct dsi_display, poms_te_work);
@@ -8030,8 +8031,18 @@ static void dsi_display_handle_poms_te(struct work_struct *work)
return;
}
dsi = &display->panel->mipi_device;
panel = display->panel;
mutex_lock(&panel->panel_lock);
if (!dsi_panel_initialized(panel)) {
rc = -EINVAL;
goto error;
}
dsi = &panel->mipi_device;
rc = mipi_dsi_dcs_set_tear_off(dsi);
error:
mutex_unlock(&panel->panel_lock);
if (rc < 0)
DSI_ERR("failed to set tear off\n");
}