@@ -668,6 +668,7 @@ static int dsicm_power_on(struct panel_drv_data *ddata)
goto err;
r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 0xff);
+ mdelay(1000);
if (r)
goto err;
@@ -703,6 +704,8 @@ static int dsicm_power_on(struct panel_drv_data *ddata)
in->ops.dsi->enable_hs(in, ddata->channel, true);
+ r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 0xff);
+
return 0;
err:
dev_err(&ddata->pdev->dev, "error while enabling panel, issuing HW reset\n");
@@ -1396,6 +1399,15 @@ static int dsicm_probe(struct platform_device *pdev)
goto err_bl;
}
+#if 0
+ mutex_lock(&ddata->lock);
+ ddata->in->ops.dsi->bus_lock(ddata->in);
+ r = dsicm_wake_up(ddata);
+ if (!r)
+ r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 100);
+ ddata->in->ops.dsi->bus_unlock(ddata->in);
+ mutex_unlock(&ddata->lock);
+#endif
return 0;
err_bl: