timing,v-porch = <36 27 5>;
timing,dsi-hs-clk = <1386>;
/* TODO : pms value to be set */
- timing,pmsk = <3 317 1 0>;
+ timing,pmsk = <3 320 1 0>;
timing,dsi-escape-clk = <20>;
mic_en = <0>; /* 0: Disable, 1: Enable */
mic_ratio = <0>; /* 0: 1/2 mic, 1: 1/3 mic */
gpio_free(res->lcd_reset);
- usleep_range(10000, 11000);
+ usleep_range(50000, 60000);
dsim_dbg("%s -\n", __func__);
return 0;
}
}
} else {
+ if (res->lcd_power[2] > 0) {
+ ret = gpio_request_one(res->lcd_power[2],
+ GPIOF_OUT_INIT_LOW, "lcd_power2");
+ if (ret < 0) {
+ dsim_err("failed 3nd LCD power off\n");
+ return -EINVAL;
+ }
+ gpio_free(res->lcd_power[2]);
+ usleep_range(5000, 6000);
+ }
+
ret = gpio_request_one(res->lcd_reset, GPIOF_OUT_INIT_LOW,
"lcd_reset");
if (ret < 0) {
return -EINVAL;
}
gpio_free(res->lcd_reset);
-
- if (res->lcd_power[0] > 0) {
- ret = gpio_request_one(res->lcd_power[0],
- GPIOF_OUT_INIT_LOW, "lcd_power0");
- if (ret < 0) {
- dsim_err("failed LCD power off\n");
- return -EINVAL;
- }
- gpio_free(res->lcd_power[0]);
- usleep_range(5000, 6000);
- }
+ usleep_range(1000, 2000);
if (res->lcd_power[1] > 0) {
ret = gpio_request_one(res->lcd_power[1],
usleep_range(5000, 6000);
}
- if (res->lcd_power[2] > 0) {
- ret = gpio_request_one(res->lcd_power[2],
- GPIOF_OUT_INIT_LOW, "lcd_power2");
+ if (res->lcd_power[0] > 0) {
+ ret = gpio_request_one(res->lcd_power[0],
+ GPIOF_OUT_INIT_LOW, "lcd_power0");
if (ret < 0) {
- dsim_err("failed 3nd LCD power off\n");
+ dsim_err("failed LCD power off\n");
return -EINVAL;
}
- gpio_free(res->lcd_power[2]);
+ gpio_free(res->lcd_power[0]);
usleep_range(5000, 6000);
}