FP2-32: enable first logo in lk
1.add delay 0x01 write each command in panel_otm1902b_1080p_cmd.h file.
2.delete the code about judge the panel's panel_signature
3.add the command about backlight
Change-Id: Ic13a4385d8a693d422ea02c5383d0915324f9b82
diff --git a/dev/gcdb/display/include/panel_otm1902b_1080p_cmd.h b/dev/gcdb/display/include/panel_otm1902b_1080p_cmd.h
index 7840332..3fe5be9 100644
--- a/dev/gcdb/display/include/panel_otm1902b_1080p_cmd.h
+++ b/dev/gcdb/display/include/panel_otm1902b_1080p_cmd.h
@@ -54,7 +54,7 @@
/* Panel resolution */
/*---------------------------------------------------------------------------*/
static struct panel_resolution otm1902b_1080p_cmd_panel_res = {
- 1080, 1920, 140, 164, 8, 0, 6, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ 1080, 1920, 40, 64, 8, 0, 6, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
/*---------------------------------------------------------------------------*/
@@ -149,34 +149,42 @@
static char otm1902b_1080p_cmd_on_cmd16[] = {
0x02, 0x00, 0x29, 0xC0,
-0x11, 0x00, 0xFF, 0xFF, };
+0x53, 0x2C, 0xFF, 0xFF, };
static char otm1902b_1080p_cmd_on_cmd17[] = {
0x02, 0x00, 0x29, 0xC0,
-0x29, 0x00, 0xFF, 0xFF, };
+0x51, 0xFF, 0xFF, 0xFF, };
+
+static char otm1902b_1080p_cmd_on_cmd18[] = {
+0x11, 0x00, 0x05, 0x80, };
+
+static char otm1902b_1080p_cmd_on_cmd19[] = {
+0x29, 0x00, 0x05, 0x80, };
static struct mipi_dsi_cmd otm1902b_1080p_cmd_on_command[] = {
-{ 0x8 , otm1902b_1080p_cmd_on_cmd0 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd1 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd2 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd3 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd4 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd5 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd6 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd7 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd8 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd9 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd10 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd11 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd12 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd13 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd14 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd15 , 0x00},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd16 , 0x32},
-{ 0x8 , otm1902b_1080p_cmd_on_cmd17 , 0x60},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd0 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd1 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd2 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd3 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd4 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd5 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd6 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd7 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd8 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd9 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd10 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd11 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd12 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd13 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd14 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd15 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd16 ,0x01},
+{ 0x8 , otm1902b_1080p_cmd_on_cmd17 ,0x01},
+{ 0x4 , otm1902b_1080p_cmd_on_cmd18 , 0x32},
+{ 0x4 , otm1902b_1080p_cmd_on_cmd19 , 0x60},
};
-#define OTM1902B_1080P_CMD_ON_COMMAND 18
+#define OTM1902B_1080P_CMD_ON_COMMAND 20
static char otm1902b_1080p_cmdoff_cmd0[] = {
0x28, 0x00, 0x05, 0x80 };
diff --git a/platform/msm_shared/mipi_dsi.c b/platform/msm_shared/mipi_dsi.c
index f89fb85..8ee9ecb 100644
--- a/platform/msm_shared/mipi_dsi.c
+++ b/platform/msm_shared/mipi_dsi.c
@@ -503,9 +503,9 @@
} else {
status = mipi_dsi_cmds_tx(pinfo->panel_cmds,
pinfo->num_of_panel_cmds);
- if (!status && target_panel_auto_detect_enabled())
- status =
- mdss_dsi_read_panel_signature(pinfo->signature);
+ // if (!status && target_panel_auto_detect_enabled())
+ // status =
+ // mdss_dsi_read_panel_signature(pinfo->signature);
}
}
#endif
diff --git a/target/fairphone/include/target/display.h b/target/fairphone/include/target/display.h
index b827cf6..327f913 100644
--- a/target/fairphone/include/target/display.h
+++ b/target/fairphone/include/target/display.h
@@ -38,11 +38,11 @@
/* GPIO configuration */
/*---------------------------------------------------------------------------*/
static struct gpio_pin reset_gpio = {
- "pm8941_gpios", 19, 2, 1, 0, 1
+ "pm8941_gpios", 19, 3, 1, 0, 1
};
static struct gpio_pin enable_gpio = {
- "msmgpio", 58, 3, 1, 0, 1
+ "msmgpio", 25, 3, 1, 0, 1
};
static struct gpio_pin pwm_gpio = {
diff --git a/target/fairphone/oem_panel.c b/target/fairphone/oem_panel.c
index 21c71db..7278487 100755
--- a/target/fairphone/oem_panel.c
+++ b/target/fairphone/oem_panel.c
@@ -75,6 +75,7 @@
{"generic_720p_cmd", GENERIC_720P_CMD_PANEL},
{"jdi_qhd_dualdsi_video", JDI_QHD_DUALDSI_VIDEO_PANEL},
{"jdi_qhd_dualdsi_cmd", JDI_QHD_DUALDSI_CMD_PANEL},
+ {"otm1902b_1080p_cmd",OTM1902B_1080P_CMD_PANEL},
};
static uint32_t panel_id;
@@ -245,7 +246,7 @@
pinfo->mipi.panel_cmds
= otm1902b_1080p_cmd_on_command;
pinfo->mipi.num_of_panel_cmds
- = JDI_QHD_DUALDSI_CMD_ON_COMMAND;
+ = OTM1902B_1080P_CMD_ON_COMMAND;
memcpy(phy_db->timing,
otm1902b_1080p_cmd_timings, TIMING_SIZE);
break;
@@ -299,7 +300,7 @@
case HW_PLATFORM_SURF:
switch (auto_pan_loop) {
case 0:
- panel_id = JDI_1080P_VIDEO_PANEL;
+ panel_id = OTM1902B_1080P_CMD_PANEL;
break;
case 1:
panel_id = TOSHIBA_720P_VIDEO_PANEL;
@@ -322,7 +323,7 @@
, hw_id);
return false;
}
- panel_id = OTM1902B_1080P_CMD_PANEL;
+
panel_init:
init_panel_data(panelstruct, pinfo, phy_db);