display driver porting in LK
Root cause:
How to fix:
Feature:
Issue:
Depends-On:
Change-Id: I5f174937eeb647c86f4a309f3cac917c43853308
RiskArea:
diff --git a/dev/gcdb/display/fastboot_oem_display.h b/dev/gcdb/display/fastboot_oem_display.h
old mode 100644
new mode 100755
index a8af486..1924060
--- a/dev/gcdb/display/fastboot_oem_display.h
+++ b/dev/gcdb/display/fastboot_oem_display.h
@@ -115,6 +115,10 @@
{"hx8399c_hd_plus_video", "qcom,mdss_dsi_hx8399c_hd_video", false},
{"nt35695b_truly_fhd_video", "qcom,mdss_dsi_nt35695b_truly_fhd_video", false},
{"nt35695b_truly_fhd_cmd", "qcom,mdss_dsi_nt35695b_truly_fhd_cmd", false},
+ //Jialong Start
+ {"truly_hx83112b_1080p_video", "qcom,mdss_dsi_hx83112b_truly_1080p_video", false},
+
+ //Jialong End
};
struct sim_lookup_list lookup_sim[] = {
diff --git a/dev/gcdb/display/include/panel_djn_hx83112b_1080p_cmd.h b/dev/gcdb/display/include/panel_djn_hx83112b_1080p_cmd.h
new file mode 100755
index 0000000..0628bc6
--- /dev/null
+++ b/dev/gcdb/display/include/panel_djn_hx83112b_1080p_cmd.h
@@ -0,0 +1,593 @@
+/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of The Linux Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+/*---------------------------------------------------------------------------
+ * This file is autogenerated file using gcdb parser. Please do not edit it.
+ * Update input XML file to add a new entry or update variable in this file
+ * VERSION = "1.0"
+ *---------------------------------------------------------------------------*/
+
+#ifndef _PANEL_DJN_HX83112B_1080P_CMD_H_
+#define _PANEL_DJN_HX83112B_1080P_CMD_H_
+/*---------------------------------------------------------------------------*/
+/* HEADER files */
+/*---------------------------------------------------------------------------*/
+#include "panel.h"
+
+/*---------------------------------------------------------------------------*/
+/* Panel configuration */
+/*---------------------------------------------------------------------------*/
+
+static struct panel_config djn_hx83112b_1080p_cmd_panel_data = {
+ "qcom,mdss_dsi_djn_hx83112b_1080p_cmd", "dsi:0:", "qcom,mdss-dsi-panel",
+ 11, 1, "DISPLAY_1", 0, 1, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, NULL
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel resolution */
+/*---------------------------------------------------------------------------*/
+static struct panel_resolution djn_hx83112b_1080p_cmd_panel_res = {
+ 1080, 2160, 40, 12, 4, 0, 32, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel color information */
+/*---------------------------------------------------------------------------*/
+static struct color_info djn_hx83112b_1080p_cmd_color = {
+ 24, 0, 0xff, 0, 0, 0
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel on/off command information */
+/*---------------------------------------------------------------------------*/
+
+//[Arima][8901][Jialong]LCM initial code from IC firmware Start
+static char djn_hx83112b_1080p_cmd_on_command0[]= {
+0x04, 0x00, 0x39, 0xC0,
+0xB9, 0x83, 0x11, 0x2B};
+static char djn_hx83112b_1080p_cmd_on_command1[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command2[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xC2, 0x08, 0x70, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command3[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command4[]= {
+0x05, 0x00, 0x39, 0xC0,
+0xB2, 0x04, 0x38, 0x08,
+0x70, 0xFF, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command5[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command6[]= {
+0x0B, 0x00, 0x39, 0xC0,
+0xB1, 0xF8, 0x27, 0x27,
+0x00, 0x00, 0x0B, 0x0E,
+0x0B, 0x0E, 0x33, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command7[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xD2, 0x2D, 0x2D, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command8[]= {
+0x0C, 0x00, 0x39, 0xC0,
+0xB2, 0x80, 0x02, 0x18,
+0x80, 0x70, 0x00, 0x08,
+0x1C, 0x08, 0x11, 0x05};
+static char djn_hx83112b_1080p_cmd_on_command9[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xD1, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command10[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xB2, 0x00, 0x08, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command11[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command12[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x02, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command13[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xB2, 0xB5, 0x0A, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command14[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command15[]= {
+0x09, 0x00, 0x39, 0xC0,
+0xDD, 0x00, 0x00, 0x08,
+0x1C, 0x08, 0x34, 0x34,
+0x88, 0xFF, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command16[]= {
+0x19, 0x00, 0x39, 0xC0,
+0xB4, 0x65, 0x6B, 0x00,
+0x00, 0xD0, 0xD4, 0x36,
+0xCF, 0x06, 0xCE, 0x00,
+0xCE, 0x00, 0x00, 0x00,
+0x07, 0x00, 0x2A, 0x07,
+0x01, 0x07, 0x00, 0x00,
+0x2A, 0xFF, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command17[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command18[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xC3, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command19[]= {
+0x04, 0x00, 0x39, 0xC0,
+0xB4, 0x01, 0x67, 0x2A};
+static char djn_hx83112b_1080p_cmd_on_command20[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command21[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command22[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xC1, 0x01, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command23[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF };
+static char djn_hx83112b_1080p_cmd_on_command24[]= {
+0x3A, 0x00, 0x39, 0xC0,
+0xC1, 0xFF, 0xFB, 0xF9,
+0xF6, 0xF4, 0xF1, 0xEF,
+0xEA, 0xE7, 0xE5, 0xE2,
+0xDF, 0xDD, 0xDA, 0xD8,
+0xD5, 0xD2, 0xCF, 0xCC,
+0xC5, 0xBE, 0xB7, 0xB0,
+0xA8, 0xA0, 0x98, 0x8E,
+0x85, 0x7B, 0x72, 0x69,
+0x5E, 0x53, 0x48, 0x3E,
+0x35, 0x2B, 0x22, 0x17,
+0x0D, 0x09, 0x07, 0x05,
+0x01, 0x00, 0x26, 0xF0,
+0x86, 0x25, 0x6E, 0xB6,
+0xDD, 0xF3, 0xD8, 0xCC,
+0x9B, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command25[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x02, 0xFF, 0xFF };
+static char djn_hx83112b_1080p_cmd_on_command26[]= {
+0x3A, 0x00, 0x39, 0xC0,
+0xC1, 0xFF, 0xFB, 0xF9,
+0xF6, 0xF4, 0xF1, 0xEF,
+0xEA, 0xE7, 0xE5, 0xE2,
+0xDF, 0xDD, 0xDA, 0xD8,
+0xD5, 0xD2, 0xCF, 0xCC,
+0xC5, 0xBE, 0xB7, 0xB0,
+0xA8, 0xA0, 0x98, 0x8E,
+0x85, 0x7B, 0x72, 0x69,
+0x5E, 0x53, 0x48, 0x3E,
+0x35, 0x2B, 0x22, 0x17,
+0x0D, 0x09, 0x07, 0x05,
+0x01, 0x00, 0x26, 0xF0,
+0x86, 0x25, 0x6E, 0xB6,
+0xDD, 0xF3, 0xD8, 0xCC,
+0x9B, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command27[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command28[]= {
+0x3A, 0x00, 0x39, 0xC0,
+0xC1, 0xFF, 0xFB, 0xF9,
+0xF6, 0xF4, 0xF1, 0xEF,
+0xEA, 0xE7, 0xE5, 0xE2,
+0xDF, 0xDD, 0xDA, 0xD8,
+0xD5, 0xD2, 0xCF, 0xCC,
+0xC5, 0xBE, 0xB7, 0xB0,
+0xA8, 0xA0, 0x98, 0x8E,
+0x85, 0x7B, 0x72, 0x69,
+0x5E, 0x53, 0x48, 0x3E,
+0x35, 0x2B, 0x22, 0x17,
+0x0D, 0x09, 0x07, 0x05,
+0x01, 0x00, 0x26, 0xF0,
+0x86, 0x25, 0x6E, 0xB6,
+0xDD, 0xF3, 0xD8, 0xCC,
+0x9B, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command29[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command30[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xC2, 0xC8, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command31[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xCC, 0x08, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command32[]= {
+0x26, 0x00, 0x39, 0xC0,
+0xD3, 0x81, 0x00, 0x00,
+0x00, 0x00, 0x01, 0x00,
+0x04, 0x00, 0x01, 0x13,
+0x40, 0x04, 0x09, 0x09,
+0x0B, 0x0B, 0x32, 0x10,
+0x08, 0x00, 0x08, 0x32,
+0x10, 0x08, 0x00, 0x08,
+0x32, 0x10, 0x08, 0x00,
+0x08, 0x00, 0x00, 0x0A,
+0x08, 0x7B, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command33[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xC5, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command34[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xC6, 0xF7, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command35[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command36[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xD4, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command37[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xC6, 0x6E, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command38[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command39[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xEF, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command40[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xD3, 0x0C, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command41[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command42[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command43[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xC8, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command44[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xD3, 0xA1, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command45[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command46[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command47[]= {
+0x39, 0x00, 0x39, 0xC0,
+0xD5, 0x18, 0x18, 0x19,
+0x18, 0x18, 0x20, 0x18,
+0x18, 0x18, 0x10, 0x10,
+0x18, 0x18, 0x00, 0x00,
+0x18, 0x18, 0x01, 0x01,
+0x18, 0x18, 0x28, 0x28,
+0x18, 0x18, 0x18, 0x18,
+0x18, 0x2F, 0x2F, 0x30,
+0x30, 0x31, 0x31, 0x35,
+0x35, 0x36, 0x36, 0x37,
+0x37, 0x18, 0x18, 0x18,
+0x18, 0x18, 0x18, 0x18,
+0x18, 0xFC, 0xFC, 0x00,
+0x00, 0xFC, 0xFC, 0x00,
+0x00, 0xFF, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command48[]= {
+0x31, 0x00, 0x39, 0xC0,
+0xD6, 0x18, 0x18, 0x19,
+0x18, 0x18, 0x20, 0x19,
+0x18, 0x18, 0x10, 0x10,
+0x18, 0x18, 0x00, 0x00,
+0x18, 0x18, 0x01, 0x01,
+0x18, 0x18, 0x28, 0x28,
+0x18, 0x18, 0x18, 0x18,
+0x18, 0x2F, 0x2F, 0x30,
+0x30, 0x31, 0x31, 0x35,
+0x35, 0x36, 0x36, 0x37,
+0x37, 0x18, 0x18, 0x18,
+0x18, 0x18, 0x18, 0x18,
+0x18, 0xFF, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command49[]= {
+0x19, 0x00, 0x39, 0xC0,
+0xD8, 0xAA, 0xAA, 0xAA,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xAA, 0xAA, 0xAB,
+0xAF, 0xEF, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xFF, 0xFF, 0xFF};
+
+
+
+static char djn_hx83112b_1080p_cmd_on_command50[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command51[]= {
+0x0D, 0x00, 0x39, 0xC0,
+0xD8, 0xAA, 0xAA, 0xAB,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAE, 0xAF, 0xEA,
+0xAA, 0xFF, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command52[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x02, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command53[]= {
+0x0D, 0x00, 0x39, 0xC0,
+0xD8, 0xAA, 0xAA, 0xAA,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xFF, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command54[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command55[]= {
+0x19, 0x00, 0x39, 0xC0,
+0xD8, 0xBA, 0xAA, 0xAA,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xBA, 0xAA, 0xAA,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xFF, 0xFF, 0xFF};
+
+
+
+static char djn_hx83112b_1080p_cmd_on_command56[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command57[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xE4, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command58[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xE7, 0x17, 0x69, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command59[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+
+static char djn_hx83112b_1080p_cmd_on_command60[]= {
+0x1A, 0x00, 0x39, 0xC0,
+0xE7, 0x09, 0x09, 0x00,
+0x07, 0xE8, 0x00, 0x26,
+0x00, 0x07, 0x00, 0x00,
+0xE8, 0x32, 0x00, 0xE9,
+0x0A, 0x0A, 0x00, 0x00,
+0x00, 0x01, 0x01, 0x00,
+0x12, 0x04, 0xFF, 0xFF};
+
+static char djn_hx83112b_1080p_cmd_on_command61[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command62[]= {
+0x0A, 0x00, 0x39, 0xC0,
+0xE7, 0x02, 0x00, 0x01,
+0x20, 0x01, 0x18, 0x08,
+0xA8, 0x09, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command63[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x02, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command64[]= {
+0x04, 0x00, 0x39, 0xC0,
+0xE7, 0x20, 0x20, 0x00};
+static char djn_hx83112b_1080p_cmd_on_command65[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command66[]= {
+0x07, 0x00, 0x39, 0xC0,
+0xE7, 0x00, 0xDC, 0x11,
+0x70, 0x00, 0x20, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command67[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xC9, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command68[]= {
+0x07, 0x00, 0x39, 0xC0,
+0xE7, 0x2A, 0xCE, 0x02,
+0x70, 0x01, 0x04, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command69[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command70[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char djn_hx83112b_1080p_cmd_on_command71[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xD1, 0x27, 0xFF, 0xFF};
+
+//open display
+static char djn_hx83112b_1080p_cmd_on_command72[]= {
+0x11, 0x00, 0x05, 0x80 };
+static char djn_hx83112b_1080p_cmd_on_command73[]= {
+0x29, 0x00, 0x05, 0x80 };
+
+//open back light
+static char djn_hx83112b_1080p_cmd_on_command74[]= {
+0x03, 0x00, 0x39, 0xC0,
+0x51, 0x0F, 0xFF, 0xFF};
+//set back light level is 4095
+static char djn_hx83112b_1080p_cmd_on_command75[]= {
+0x02, 0x00, 0x39, 0xC0,
+0x53, 0x24, 0xFF, 0xFF};
+
+
+static struct mipi_dsi_cmd djn_hx83112b_1080p_cmd_on_command[] = {
+ {0x08, djn_hx83112b_1080p_cmd_on_command0, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command1, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command2, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command3, 0x00},
+ {0x0C, djn_hx83112b_1080p_cmd_on_command4, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command5, 0x00},
+ {0x10, djn_hx83112b_1080p_cmd_on_command6, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command7, 0x00},
+ {0x10, djn_hx83112b_1080p_cmd_on_command8, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command9, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command10, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command11, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command12, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command13, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command14, 0x00},
+ {0x10, djn_hx83112b_1080p_cmd_on_command15, 0x00},
+ {0x20, djn_hx83112b_1080p_cmd_on_command16, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command17, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command18, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command19, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command20, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command21, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command22, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command23, 0x00},
+ {0x40, djn_hx83112b_1080p_cmd_on_command24, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command25, 0x00},
+ {0x40, djn_hx83112b_1080p_cmd_on_command26, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command27, 0x00},
+ {0x40, djn_hx83112b_1080p_cmd_on_command28, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command29, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command30, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command31, 0x00},
+ {0x2C, djn_hx83112b_1080p_cmd_on_command32, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command33, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command34, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command35, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command36, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command37, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command38, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command39, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command40, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command41, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command42, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command43, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command44, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command45, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command46, 0x00},
+ {0x40, djn_hx83112b_1080p_cmd_on_command47, 0x00},
+ {0x38, djn_hx83112b_1080p_cmd_on_command48, 0x00},
+ {0x20, djn_hx83112b_1080p_cmd_on_command49, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command50, 0x00},
+ {0x14, djn_hx83112b_1080p_cmd_on_command51, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command52, 0x00},
+ {0x14, djn_hx83112b_1080p_cmd_on_command53, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command54, 0x00},
+ {0x20, djn_hx83112b_1080p_cmd_on_command55, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command56, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command57, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command58, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command59, 0x00},
+ {0x20, djn_hx83112b_1080p_cmd_on_command60, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command61, 0x00},
+ {0x10, djn_hx83112b_1080p_cmd_on_command62, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command63, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command64, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command65, 0x00},
+ {0x0C, djn_hx83112b_1080p_cmd_on_command66, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command67, 0x00},
+ {0x0C, djn_hx83112b_1080p_cmd_on_command68, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command69, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command70, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command71, 0x00},
+ {0x04, djn_hx83112b_1080p_cmd_on_command72, 0x78},
+ {0x04, djn_hx83112b_1080p_cmd_on_command73, 0x14},
+ {0x08, djn_hx83112b_1080p_cmd_on_command74, 0x00},
+ {0x08, djn_hx83112b_1080p_cmd_on_command75, 0x00},
+
+};
+
+#define DJN_HX83112B_1080P_CMD_ON_COMMAND 76//4
+
+static char djn_hx83112b_1080p_cmd_off_cmd0[] = {
+ 0x28, 0x00, 0x05, 0x80
+};
+
+static char djn_hx83112b_1080p_cmd_off_cmd1[] = {
+ 0x10, 0x00, 0x05, 0x80
+};
+
+static struct mipi_dsi_cmd djn_hx83112b_1080p_cmd_off_command[] = {
+ {0x4, djn_hx83112b_1080p_cmd_off_cmd0, 0x14},
+ {0x4, djn_hx83112b_1080p_cmd_off_cmd1, 0x78}
+};
+
+#define DJN_HX83112B_1080P_CMD_OFF_COMMAND 2
+
+
+static struct command_state djn_hx83112b_1080p_cmd_state = {
+ 0, 1
+};
+
+
+/*---------------------------------------------------------------------------*/
+/* Command mode panel information */
+/*---------------------------------------------------------------------------*/
+static struct commandpanel_info djn_hx83112b_1080p_cmd_command_panel = {
+ 1, 1, 1, 0, 0, 0x2c, 0, 0, 0, 1, 0, 0
+
+};
+
+/*---------------------------------------------------------------------------*/
+/* Video mode panel information */
+/*---------------------------------------------------------------------------*/
+static struct videopanel_info djn_hx83112b_1080p_cmd_video_panel = {
+ 0, 0, 0, 0, 1, 1, 1, 0, 0x9
+};
+
+/*---------------------------------------------------------------------------*/
+/* Lane configuration */
+/*---------------------------------------------------------------------------*/
+static struct lane_configuration djn_hx83112b_1080p_cmd_lane_config = {
+ 4, 0, 1, 1, 1, 1, 0
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel timing */
+/*---------------------------------------------------------------------------*/
+static const uint32_t djn_hx83112b_1080p_cmd_timings[] = {
+ 0xe6, 0x38, 0x26, 0x00, 0x68, 0x6e, 0x2a, 0x3c, 0x44, 0x03, 0x04, 0x00
+};
+
+static struct panel_timing djn_hx83112b_1080p_cmd_timing_info = {
+ 0, 4, 0x1e, 0x38
+};
+static const uint32_t djn_hx83112b_1080p_14nm_cmd_timings[] = {
+ 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+ 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+ 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+ 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+ 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+};
+
+static const uint32_t djn_hx83112b_1080p_cmd_12nm_timings[] = {
+ 0x17, 0x0A, 0x0F, 0x06, 0x02, 0x08, 0x06, 0x0E
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel reset sequence */
+/*---------------------------------------------------------------------------*/
+static struct panel_reset_sequence djn_hx83112b_1080p_cmd_reset_seq = {
+ {1, 0, 1, }, {20, 2, 20, }, 2
+};
+
+/*---------------------------------------------------------------------------*/
+/* Backlight setting */
+/*---------------------------------------------------------------------------*/
+static struct backlight djn_hx83112b_1080p_cmd_backlight = {
+ 1, 1, 255, 100, 3, "PMIC_8953"
+};
+
+#define DJN_HX83112B_1080P_CMD_SIGNATURE 0xFFFF
+
+#endif /*_PANEL_DJN_HX83112B_1080P_CMD_H_*/
diff --git a/dev/gcdb/display/include/panel_truly_hx83112b_1080p_video.h b/dev/gcdb/display/include/panel_truly_hx83112b_1080p_video.h
new file mode 100755
index 0000000..9fbac6c
--- /dev/null
+++ b/dev/gcdb/display/include/panel_truly_hx83112b_1080p_video.h
@@ -0,0 +1,591 @@
+/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of The Linux Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+/*---------------------------------------------------------------------------
+ * This file is autogenerated file using gcdb parser. Please do not edit it.
+ * Update input XML file to add a new entry or update variable in this file
+ * VERSION = "1.0"
+ *---------------------------------------------------------------------------*/
+
+#ifndef _PANEL_TRULY_HX83112B_1080P_VIDEO_H_
+#define _PANEL_TRULY_HX83112B_1080P_VIDEO_H_
+/*---------------------------------------------------------------------------*/
+/* HEADER files */
+/*---------------------------------------------------------------------------*/
+#include "panel.h"
+
+/*---------------------------------------------------------------------------*/
+/* Panel configuration */
+/*---------------------------------------------------------------------------*/
+
+
+static struct panel_config truly_hx83112b_1080p_video_panel_data = {
+ "qcom,mdss_dsi_hx83112b_truly_1080p_video", "dsi:0:", "qcom,mdss-dsi-panel",
+ 11, 1, "DISPLAY_1", 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, NULL
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel resolution */
+/*---------------------------------------------------------------------------*/
+static struct panel_resolution truly_hx83112b_1080p_video_panel_res = {
+ 1080, 2160, 40, 12, 4, 0, 32, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel color information */
+/*---------------------------------------------------------------------------*/
+static struct color_info truly_hx83112b_1080p_video_color = {
+ 24, 0, 0xff, 0, 0, 0
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel on/off command information */
+/*---------------------------------------------------------------------------*/
+
+//[Arima][8901][Jialong]LCM initial code from IC firmware Start
+static char truly_hx83112b_1080p_video_on_cmd0[]= {
+0x04, 0x00, 0x39, 0xC0,
+0xB9, 0x83, 0x11, 0x2B};
+static char truly_hx83112b_1080p_video_on_cmd1[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd2[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xC2, 0x08, 0x70, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd3[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd4[]= {
+0x05, 0x00, 0x39, 0xC0,
+0xB2, 0x04, 0x38, 0x08,
+0x70, 0xFF, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd5[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd6[]= {
+0x0B, 0x00, 0x39, 0xC0,
+0xB1, 0xF8, 0x27, 0x27,
+0x00, 0x00, 0x0B, 0x0E,
+0x0B, 0x0E, 0x33, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd7[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xD2, 0x2D, 0x2D, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd8[]= {
+0x0C, 0x00, 0x39, 0xC0,
+0xB2, 0x80, 0x02, 0x18,
+0x80, 0x70, 0x00, 0x08,
+0x1C, 0x08, 0x11, 0x05};
+static char truly_hx83112b_1080p_video_on_cmd9[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xD1, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd10[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xB2, 0x00, 0x08, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd11[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd12[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x02, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd13[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xB2, 0xB5, 0x0A, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd14[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd15[]= {
+0x09, 0x00, 0x39, 0xC0,
+0xDD, 0x00, 0x00, 0x08,
+0x1C, 0x08, 0x34, 0x34,
+0x88, 0xFF, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd16[]= {
+0x19, 0x00, 0x39, 0xC0,
+0xB4, 0x65, 0x6B, 0x00,
+0x00, 0xD0, 0xD4, 0x36,
+0xCF, 0x06, 0xCE, 0x00,
+0xCE, 0x00, 0x00, 0x00,
+0x07, 0x00, 0x2A, 0x07,
+0x01, 0x07, 0x00, 0x00,
+0x2A, 0xFF, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd17[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd18[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xC3, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd19[]= {
+0x04, 0x00, 0x39, 0xC0,
+0xB4, 0x01, 0x67, 0x2A};
+static char truly_hx83112b_1080p_video_on_cmd20[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd21[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd22[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xC1, 0x01, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd23[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF };
+static char truly_hx83112b_1080p_video_on_cmd24[]= {
+0x3A, 0x00, 0x39, 0xC0,
+0xC1, 0xFF, 0xFB, 0xF9,
+0xF6, 0xF4, 0xF1, 0xEF,
+0xEA, 0xE7, 0xE5, 0xE2,
+0xDF, 0xDD, 0xDA, 0xD8,
+0xD5, 0xD2, 0xCF, 0xCC,
+0xC5, 0xBE, 0xB7, 0xB0,
+0xA8, 0xA0, 0x98, 0x8E,
+0x85, 0x7B, 0x72, 0x69,
+0x5E, 0x53, 0x48, 0x3E,
+0x35, 0x2B, 0x22, 0x17,
+0x0D, 0x09, 0x07, 0x05,
+0x01, 0x00, 0x26, 0xF0,
+0x86, 0x25, 0x6E, 0xB6,
+0xDD, 0xF3, 0xD8, 0xCC,
+0x9B, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd25[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x02, 0xFF, 0xFF };
+static char truly_hx83112b_1080p_video_on_cmd26[]= {
+0x3A, 0x00, 0x39, 0xC0,
+0xC1, 0xFF, 0xFB, 0xF9,
+0xF6, 0xF4, 0xF1, 0xEF,
+0xEA, 0xE7, 0xE5, 0xE2,
+0xDF, 0xDD, 0xDA, 0xD8,
+0xD5, 0xD2, 0xCF, 0xCC,
+0xC5, 0xBE, 0xB7, 0xB0,
+0xA8, 0xA0, 0x98, 0x8E,
+0x85, 0x7B, 0x72, 0x69,
+0x5E, 0x53, 0x48, 0x3E,
+0x35, 0x2B, 0x22, 0x17,
+0x0D, 0x09, 0x07, 0x05,
+0x01, 0x00, 0x26, 0xF0,
+0x86, 0x25, 0x6E, 0xB6,
+0xDD, 0xF3, 0xD8, 0xCC,
+0x9B, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd27[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd28[]= {
+0x3A, 0x00, 0x39, 0xC0,
+0xC1, 0xFF, 0xFB, 0xF9,
+0xF6, 0xF4, 0xF1, 0xEF,
+0xEA, 0xE7, 0xE5, 0xE2,
+0xDF, 0xDD, 0xDA, 0xD8,
+0xD5, 0xD2, 0xCF, 0xCC,
+0xC5, 0xBE, 0xB7, 0xB0,
+0xA8, 0xA0, 0x98, 0x8E,
+0x85, 0x7B, 0x72, 0x69,
+0x5E, 0x53, 0x48, 0x3E,
+0x35, 0x2B, 0x22, 0x17,
+0x0D, 0x09, 0x07, 0x05,
+0x01, 0x00, 0x26, 0xF0,
+0x86, 0x25, 0x6E, 0xB6,
+0xDD, 0xF3, 0xD8, 0xCC,
+0x9B, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd29[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd30[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xC2, 0xC8, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd31[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xCC, 0x08, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd32[]= {
+0x26, 0x00, 0x39, 0xC0,
+0xD3, 0x81, 0x00, 0x00,
+0x00, 0x00, 0x01, 0x00,
+0x04, 0x00, 0x01, 0x13,
+0x40, 0x04, 0x09, 0x09,
+0x0B, 0x0B, 0x32, 0x10,
+0x08, 0x00, 0x08, 0x32,
+0x10, 0x08, 0x00, 0x08,
+0x32, 0x10, 0x08, 0x00,
+0x08, 0x00, 0x00, 0x0A,
+0x08, 0x7B, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd33[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xC5, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd34[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xC6, 0xF7, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd35[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd36[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xD4, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd37[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xC6, 0x6E, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd38[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd39[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xEF, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd40[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xD3, 0x0C, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd41[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd42[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd43[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xC8, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd44[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xD3, 0xA1, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd45[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd46[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd47[]= {
+0x39, 0x00, 0x39, 0xC0,
+0xD5, 0x18, 0x18, 0x19,
+0x18, 0x18, 0x20, 0x18,
+0x18, 0x18, 0x10, 0x10,
+0x18, 0x18, 0x00, 0x00,
+0x18, 0x18, 0x01, 0x01,
+0x18, 0x18, 0x28, 0x28,
+0x18, 0x18, 0x18, 0x18,
+0x18, 0x2F, 0x2F, 0x30,
+0x30, 0x31, 0x31, 0x35,
+0x35, 0x36, 0x36, 0x37,
+0x37, 0x18, 0x18, 0x18,
+0x18, 0x18, 0x18, 0x18,
+0x18, 0xFC, 0xFC, 0x00,
+0x00, 0xFC, 0xFC, 0x00,
+0x00, 0xFF, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd48[]= {
+0x31, 0x00, 0x39, 0xC0,
+0xD6, 0x18, 0x18, 0x19,
+0x18, 0x18, 0x20, 0x19,
+0x18, 0x18, 0x10, 0x10,
+0x18, 0x18, 0x00, 0x00,
+0x18, 0x18, 0x01, 0x01,
+0x18, 0x18, 0x28, 0x28,
+0x18, 0x18, 0x18, 0x18,
+0x18, 0x2F, 0x2F, 0x30,
+0x30, 0x31, 0x31, 0x35,
+0x35, 0x36, 0x36, 0x37,
+0x37, 0x18, 0x18, 0x18,
+0x18, 0x18, 0x18, 0x18,
+0x18, 0xFF, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd49[]= {
+0x19, 0x00, 0x39, 0xC0,
+0xD8, 0xAA, 0xAA, 0xAA,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xAA, 0xAA, 0xAB,
+0xAF, 0xEF, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xFF, 0xFF, 0xFF};
+
+
+
+static char truly_hx83112b_1080p_video_on_cmd50[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd51[]= {
+0x0D, 0x00, 0x39, 0xC0,
+0xD8, 0xAA, 0xAA, 0xAB,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAE, 0xAF, 0xEA,
+0xAA, 0xFF, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd52[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x02, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd53[]= {
+0x0D, 0x00, 0x39, 0xC0,
+0xD8, 0xAA, 0xAA, 0xAA,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xFF, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd54[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd55[]= {
+0x19, 0x00, 0x39, 0xC0,
+0xD8, 0xBA, 0xAA, 0xAA,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xBA, 0xAA, 0xAA,
+0xAF, 0xEA, 0xAA, 0xAA,
+0xAA, 0xAA, 0xAF, 0xEA,
+0xAA, 0xFF, 0xFF, 0xFF};
+
+
+
+static char truly_hx83112b_1080p_video_on_cmd56[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd57[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xE4, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd58[]= {
+0x03, 0x00, 0x39, 0xC0,
+0xE7, 0x17, 0x69, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd59[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+
+static char truly_hx83112b_1080p_video_on_cmd60[]= {
+0x1A, 0x00, 0x39, 0xC0,
+0xE7, 0x09, 0x09, 0x00,
+0x07, 0xE8, 0x00, 0x26,
+0x00, 0x07, 0x00, 0x00,
+0xE8, 0x32, 0x00, 0xE9,
+0x0A, 0x0A, 0x00, 0x00,
+0x00, 0x01, 0x01, 0x00,
+0x12, 0x04, 0xFF, 0xFF};
+
+static char truly_hx83112b_1080p_video_on_cmd61[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x01, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd62[]= {
+0x0A, 0x00, 0x39, 0xC0,
+0xE7, 0x02, 0x00, 0x01,
+0x20, 0x01, 0x18, 0x08,
+0xA8, 0x09, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd63[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x02, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd64[]= {
+0x04, 0x00, 0x39, 0xC0,
+0xE7, 0x20, 0x20, 0x00};
+static char truly_hx83112b_1080p_video_on_cmd65[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x03, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd66[]= {
+0x07, 0x00, 0x39, 0xC0,
+0xE7, 0x00, 0xDC, 0x11,
+0x70, 0x00, 0x20, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd67[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0xC9, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd68[]= {
+0x07, 0x00, 0x39, 0xC0,
+0xE7, 0x2A, 0xCE, 0x02,
+0x70, 0x01, 0x04, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd69[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xE9, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd70[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xBD, 0x00, 0xFF, 0xFF};
+static char truly_hx83112b_1080p_video_on_cmd71[]= {
+0x02, 0x00, 0x39, 0xC0,
+0xD1, 0x27, 0xFF, 0xFF};
+
+//open display
+static char truly_hx83112b_1080p_video_on_cmd72[]= {
+0x11, 0x00, 0x05, 0x80 };
+static char truly_hx83112b_1080p_video_on_cmd73[]= {
+0x29, 0x00, 0x05, 0x80 };
+
+//open back light
+static char truly_hx83112b_1080p_video_on_cmd74[]= {
+0x03, 0x00, 0x39, 0xC0,
+0x51, 0x01, 0x60, 0xFF};
+//set back light level is 4095
+static char truly_hx83112b_1080p_video_on_cmd75[]= {
+0x02, 0x00, 0x39, 0xC0,
+0x53, 0x24, 0xFF, 0xFF};
+
+
+static struct mipi_dsi_cmd truly_hx83112b_1080p_video_on_command[] = {
+ {0x08, truly_hx83112b_1080p_video_on_cmd0, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd1, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd2, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd3, 0x00},
+ {0x0C, truly_hx83112b_1080p_video_on_cmd4, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd5, 0x00},
+ {0x10, truly_hx83112b_1080p_video_on_cmd6, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd7, 0x00},
+ {0x10, truly_hx83112b_1080p_video_on_cmd8, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd9, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd10, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd11, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd12, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd13, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd14, 0x00},
+ {0x10, truly_hx83112b_1080p_video_on_cmd15, 0x00},
+ {0x20, truly_hx83112b_1080p_video_on_cmd16, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd17, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd18, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd19, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd20, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd21, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd22, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd23, 0x00},
+ {0x40, truly_hx83112b_1080p_video_on_cmd24, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd25, 0x00},
+ {0x40, truly_hx83112b_1080p_video_on_cmd26, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd27, 0x00},
+ {0x40, truly_hx83112b_1080p_video_on_cmd28, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd29, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd30, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd31, 0x00},
+ {0x2C, truly_hx83112b_1080p_video_on_cmd32, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd33, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd34, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd35, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd36, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd37, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd38, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd39, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd40, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd41, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd42, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd43, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd44, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd45, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd46, 0x00},
+ {0x40, truly_hx83112b_1080p_video_on_cmd47, 0x00},
+ {0x38, truly_hx83112b_1080p_video_on_cmd48, 0x00},
+ {0x20, truly_hx83112b_1080p_video_on_cmd49, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd50, 0x00},
+ {0x14, truly_hx83112b_1080p_video_on_cmd51, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd52, 0x00},
+ {0x14, truly_hx83112b_1080p_video_on_cmd53, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd54, 0x00},
+ {0x20, truly_hx83112b_1080p_video_on_cmd55, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd56, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd57, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd58, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd59, 0x00},
+ {0x20, truly_hx83112b_1080p_video_on_cmd60, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd61, 0x00},
+ {0x10, truly_hx83112b_1080p_video_on_cmd62, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd63, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd64, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd65, 0x00},
+ {0x0C, truly_hx83112b_1080p_video_on_cmd66, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd67, 0x00},
+ {0x0C, truly_hx83112b_1080p_video_on_cmd68, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd69, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd70, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd71, 0x00},
+ {0x04, truly_hx83112b_1080p_video_on_cmd72, 0x78},
+ {0x04, truly_hx83112b_1080p_video_on_cmd73, 0x14},
+ {0x08, truly_hx83112b_1080p_video_on_cmd74, 0x00},
+ {0x08, truly_hx83112b_1080p_video_on_cmd75, 0x00},
+
+};
+
+
+#define TRULY_HX83112B_1080P_VIDEO_ON_COMMAND 76
+
+//[Arima][8901][Jialong]LCM initial code from IC firmware End
+
+
+static char truly_hx83112b_1080p_videooff_cmd0[] = {
+ 0x28, 0x00, 0x05, 0x80
+};
+
+static char truly_hx83112b_1080p_videooff_cmd1[] = {
+ 0x10, 0x00, 0x05, 0x80
+};
+
+static struct mipi_dsi_cmd truly_hx83112b_1080p_video_off_command[] = {
+ {0x4, truly_hx83112b_1080p_videooff_cmd0, 0x14},
+ {0x4, truly_hx83112b_1080p_videooff_cmd1, 0x78}
+};
+
+#define TRULY_HX83112B_1080P_VIDEO_OFF_COMMAND 2
+
+
+static struct command_state truly_hx83112b_1080p_video_state = {
+ 0, 1
+};
+
+/*---------------------------------------------------------------------------*/
+/* Command mode panel information */
+/*---------------------------------------------------------------------------*/
+static struct commandpanel_info truly_hx83112b_1080p_video_command_panel = {
+ 0x1, 0x1, 0x1, 0, 0, 0, 0, 0, 0, 0x1, 0, 0
+};
+
+/*---------------------------------------------------------------------------*/
+/* Video mode panel information */
+/*---------------------------------------------------------------------------*/
+static struct videopanel_info truly_hx83112b_1080p_video_video_panel = {
+ 0, 0, 0, 0, 1, 1, 1, 0, 0x9
+};
+
+/*---------------------------------------------------------------------------*/
+/* Lane configuration */
+/*---------------------------------------------------------------------------*/
+static struct lane_configuration truly_hx83112b_1080p_video_lane_config = {
+ 4, 0, 1, 1, 1, 1, 0
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel timing */
+/*---------------------------------------------------------------------------*/
+static const uint32_t truly_hx83112b_1080p_video_timings[] = {
+ 0xe6, 0x38, 0x26, 0x00, 0x68, 0x6e, 0x2a, 0x3c, 0x44, 0x03, 0x04, 0x00
+};
+
+static const uint32_t truly_hx83112b_1080p_14nm_video_timings[] = {
+ 0x24, 0x1e, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+ 0x24, 0x1e, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+ 0x24, 0x1e, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+ 0x24, 0x1e, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+ 0x24, 0x1a, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0,
+};
+
+static struct panel_timing truly_hx83112b_1080p_video_timing_info = {
+ 0, 4, 0x1e, 0x38
+};
+
+/*---------------------------------------------------------------------------*/
+/* Panel reset sequence */
+/*---------------------------------------------------------------------------*/
+static struct panel_reset_sequence truly_hx83112b_1080p_video_reset_seq = {
+ {1, 0, 1, }, {20, 2, 20, }, 2
+};
+
+/*---------------------------------------------------------------------------*/
+/* Backlight setting */
+/*---------------------------------------------------------------------------*/
+static struct backlight truly_hx83112b_1080p_video_backlight = {
+ 1, 1, 255, 100, 3, "PMIC_8953"
+};
+
+#endif /*_PANEL_TRULY_HX83112B_1080P_VIDEO_H_*/
diff --git a/include/platform.h b/include/platform.h
old mode 100644
new mode 100755
index 1452d0f..5f20786
--- a/include/platform.h
+++ b/include/platform.h
@@ -49,6 +49,15 @@
void display_init(void);
void display_shutdown(void);
void display_image_on_screen(void);
+//[Arima][8901][JialongJhan]Show Fastboot logo 20190418 Start
+void display_default_image_on_screen(void);
+void display_fastboot_image_on_screen(void);
+void display_lowbattery_image_on_screen(void);
+//[Arima][8901][JialongJhan]Show Fastboot logo 20190418 End
+//[Arima][8901][JialongJhan] Command mode update screen 20190516 Start
+int msm_display_flush(void);
+//[Arima][8901][JialongJhan] Command mode update screen 20190516 End
+
void display_fbcon_message(char *str);
unsigned board_machtype(void);
diff --git a/platform/msm_shared/display.c b/platform/msm_shared/display.c
old mode 100644
new mode 100755
index 780ecfc..56a58c8
--- a/platform/msm_shared/display.c
+++ b/platform/msm_shared/display.c
@@ -39,6 +39,10 @@
#ifdef DISPLAY_TYPE_MDSS
#include <target/display.h>
#endif
+//[Arima][8901][JialongJhan]Set Fastboot logo delay function 20190627 Start
+#include <platform/timer.h>
+extern bool boot_into_fastboot;
+//[Arima][8901][JialongJhan]Set Fastboot logo delay function 20190627 Start
static struct msm_fb_panel_data *panel;
@@ -284,6 +288,29 @@
return ret;
}
+//[Arima][8901][JialongJhan] Command mode update screen 20190516 Start
+int msm_display_flush()
+{
+ int ret = NO_ERROR;
+ struct msm_panel_info *pinfo;
+
+ if (!panel)
+ return ERR_INVALID_ARGS;
+
+ pinfo = &(panel->panel_info);
+ if (!pinfo)
+ return ERR_INVALID_ARGS;
+
+ switch (pinfo->type) {
+ case MIPI_CMD_PANEL:
+
+ ret = mdp_dma_on(pinfo);
+ break;
+ }
+ return ret;
+}
+//[Arima][8901][JialongJhan] Command mode update screen 20190516 End
+
int msm_display_init(struct msm_fb_panel_data *pdata)
{
int ret = NO_ERROR;
@@ -348,7 +375,16 @@
goto msm_display_init_out;
fbcon_setup(&(panel->fb));
- display_image_on_screen();
+ //[Arima][8901][JialongJhan]Shown logo/fastboot logo based on condition 20190627 Start
+
+ if(boot_into_fastboot){
+ mdelay(1100);// avoid fuzzy screen.
+ //display_fastboot_image_on_screen();
+ }
+ else{
+ display_image_on_screen();
+ }
+ //[Arima][8901][JialongJhan]Shown logo/fastboot logo based on condition 20190627 End
if ((panel->dsi2HDMI_config) && (panel->panel_info.has_bridge_chip))
ret = panel->dsi2HDMI_config(&(panel->panel_info));
diff --git a/platform/msm_shared/display_menu.c b/platform/msm_shared/display_menu.c
old mode 100644
new mode 100755
index 9d85e9f..52d7c1e
--- a/platform/msm_shared/display_menu.c
+++ b/platform/msm_shared/display_menu.c
@@ -45,6 +45,9 @@
#define TITLE_MSG "<!>\n\n"
+//[Arima][8901][JialongJhan] Command mode update screen 20190516 Start
+extern int msm_display_flush();
+//[Arima][8901][JialongJhan] Command mode update screen 20190516 End
static const char *unlock_menu_common_msg = "By unlocking the bootloader, you will be able to install "\
"custom operating system on this phone. "\
"A custom OS is not subject to the same level of testing "\
@@ -160,6 +163,9 @@
is_thread_start = false;
fbcon_clear();
display_image_on_screen();
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start
+ msm_display_flush();
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
}
void wait_for_users_action()
@@ -568,6 +574,9 @@
unlock_menu_msg_info->info.msg_type;
display_unlock_menu_renew(unlock_menu_msg_info, type, status);
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start
+ msm_display_flush();
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
mutex_release(&unlock_menu_msg_info->msg_lock);
dprintf(INFO, "creating %s keys detect thread\n",
@@ -598,6 +607,9 @@
fastboot_menu_msg_info->info.msg_type;
display_fastboot_menu_renew(fastboot_menu_msg_info);
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start
+ msm_display_flush();
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
mutex_release(&fastboot_menu_msg_info->msg_lock);
dprintf(INFO, "creating fastboot menu keys detect thread\n");
@@ -623,6 +635,9 @@
bootverify_menu_msg_info->info.msg_type;
display_bootverify_menu_renew(bootverify_menu_msg_info, type);
+ //[Arima][8901][JialongJhan] Command mode update screen 201906118 Start
+ msm_display_flush();
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
mutex_release(&bootverify_menu_msg_info->msg_lock);
dprintf(INFO, "creating boot verify keys detect thread\n");
diff --git a/platform/msm_shared/menu_keys_detect.c b/platform/msm_shared/menu_keys_detect.c
old mode 100644
new mode 100755
index d7a2beb..8c7cdf9
--- a/platform/msm_shared/menu_keys_detect.c
+++ b/platform/msm_shared/menu_keys_detect.c
@@ -59,6 +59,9 @@
typedef uint32_t (*keys_detect_func)(void);
typedef void (*keys_action_func)(struct select_msg_info* msg_info);
+//[Arima][8901][JialongJhan] Command mode update screen 20190618 Start
+extern int msm_display_flush();
+//[Arima][8901][JialongJhan] Command mode update screen 20190618 End
struct keys_stru {
int type;
@@ -386,14 +389,23 @@
if (is_key_pressed(VOLUME_UP)) {
mutex_acquire(&msg_info->msg_lock);
menu_pages_action[msg_info->info.msg_type].up_action_func(msg_info);
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start
+ msm_display_flush();
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
mutex_release(&msg_info->msg_lock);
} else if (is_key_pressed(VOLUME_DOWN)) {
mutex_acquire(&msg_info->msg_lock);
menu_pages_action[msg_info->info.msg_type].down_action_func(msg_info);
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start
+ msm_display_flush();
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
mutex_release(&msg_info->msg_lock);
} else if (is_key_pressed(POWER_KEY)) {
mutex_acquire(&msg_info->msg_lock);
menu_pages_action[msg_info->info.msg_type].enter_action_func(msg_info);
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start
+ msm_display_flush();
+ //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
mutex_release(&msg_info->msg_lock);
}
diff --git a/target/msm8953/oem_panel.c b/target/msm8953/oem_panel.c
old mode 100644
new mode 100755
index 2a21713..e60327e
--- a/target/msm8953/oem_panel.c
+++ b/target/msm8953/oem_panel.c
@@ -52,6 +52,10 @@
#include "include/panel_truly_wuxga_video.h"
#include "include/panel_hx8399c_fhd_pluse_video.h"
#include "include/panel_hx8399c_hd_plus_video.h"
+/*[Arima_8901][Jialong] lcm driver porting begin*/
+#include "include/panel_truly_hx83112b_1080p_video.h"
+#include "include/panel_djn_hx83112b_1080p_cmd.h"
+/*[Arima_8901][Jialong] lcm driver porting end*/
/*---------------------------------------------------------------------------*/
/* static panel selection variable */
@@ -64,6 +68,10 @@
TRULY_WUXGA_VIDEO_PANEL,
HX8399C_FHD_PLUSE_VIDEO_PANEL,
HX8399C_HD_PLUS_VIDEO_PANEL,
+ /*[Arima_8901][Jialong] lcm driver porting begin*/
+ TRULY_HX83112B_1080P_VIDEO_PANEL,
+ DJN_HX83112B_1080P_CMD_PANEL,
+ /*[Arima_8901][Jialong] lcm driver porting end*/
UNKNOWN_PANEL
};
@@ -79,6 +87,11 @@
{"truly_wuxga_video", TRULY_WUXGA_VIDEO_PANEL},
{"hx8399c_fhd_pluse_video", HX8399C_FHD_PLUSE_VIDEO_PANEL},
{"hx8399c_hd_plus_video", HX8399C_HD_PLUS_VIDEO_PANEL},
+ /*[Arima_8901][Jialong] lcm driver porting begin*/
+ {"truly_hx83112b_1080p_video", TRULY_HX83112B_1080P_VIDEO_PANEL},
+ {"djn_hx83112b_1080p_cmd", DJN_HX83112B_1080P_CMD_PANEL},
+ /*[Arima_8901][Jialong] lcm driver porting end*/
+
};
static uint32_t panel_id;
@@ -97,7 +110,16 @@
else if (panel_id == R69006_1080P_CMD_PANEL) {
mdelay(R69006_1080P_CMD_PANEL_ON_DELAY);
}
-
+
+ /*[Arima_8901][Jialong] lcm driver porting begin*/
+ //[Arima][8901][JialongJhan] Command mode fix fuzzy screen when booting 20190516 Start
+ else if( panel_id == TRULY_HX83112B_1080P_VIDEO_PANEL || panel_id==DJN_HX83112B_1080P_CMD_PANEL)
+ {
+ mdelay(40);
+ }
+ //[Arima][8901][JialongJhan] Command mode fix fuzzy screen when booting 20190516 End
+ /*[Arima_8901][Jialong] lcm driver porting end*/
+
return NO_ERROR;
}
@@ -318,6 +340,57 @@
hx8399c_hd_plus_14nm_video_timings, MAX_TIMING_CONFIG * sizeof(uint32_t));
pinfo->mipi.signature = HX8399C_HD_PLUS_VIDEO_SIGNATURE;
break;
+
+ /*[Arima_8901][Jialong] lcm driver porting begin*/
+ case TRULY_HX83112B_1080P_VIDEO_PANEL:
+ panelstruct->paneldata = &truly_hx83112b_1080p_video_panel_data;
+ panelstruct->paneldata->panel_with_enable_gpio = 0;
+ panelstruct->panelres = &truly_hx83112b_1080p_video_panel_res;
+ panelstruct->color = &truly_hx83112b_1080p_video_color;
+ panelstruct->videopanel = &truly_hx83112b_1080p_video_video_panel;
+ panelstruct->commandpanel = &truly_hx83112b_1080p_video_command_panel;
+ panelstruct->state = &truly_hx83112b_1080p_video_state;
+ panelstruct->laneconfig = &truly_hx83112b_1080p_video_lane_config;
+ panelstruct->paneltiminginfo = &truly_hx83112b_1080p_video_timing_info;
+ panelstruct->panelresetseq = &truly_hx83112b_1080p_video_reset_seq;
+ panelstruct->backlightinfo = &truly_hx83112b_1080p_video_backlight;
+ //pinfo->labibb = &truly_hx83112b_1080p_video_labibb;
+ pinfo->mipi.panel_on_cmds = truly_hx83112b_1080p_video_on_command;
+ pinfo->mipi.num_of_panel_on_cmds = TRULY_HX83112B_1080P_VIDEO_ON_COMMAND;
+ pinfo->mipi.panel_off_cmds = truly_hx83112b_1080p_video_off_command;
+ pinfo->mipi.num_of_panel_off_cmds = TRULY_HX83112B_1080P_VIDEO_OFF_COMMAND;
+ //carful timing...
+ memcpy(phy_db->timing,
+ truly_hx83112b_1080p_14nm_video_timings, MAX_TIMING_CONFIG * sizeof(uint32_t));
+ //pinfo->mipi.signature = TRULY_HX83112B_1080P_VIDEO_SIGNATURE;
+ break;
+
+
+ case DJN_HX83112B_1080P_CMD_PANEL:
+ panelstruct->paneldata = &djn_hx83112b_1080p_cmd_panel_data;
+ panelstruct->paneldata->panel_with_enable_gpio = 0;
+ panelstruct->panelres = &djn_hx83112b_1080p_cmd_panel_res;
+ panelstruct->color = &djn_hx83112b_1080p_cmd_color;
+ panelstruct->videopanel = &djn_hx83112b_1080p_cmd_video_panel;
+ panelstruct->commandpanel = &djn_hx83112b_1080p_cmd_command_panel;
+ panelstruct->state = &djn_hx83112b_1080p_cmd_state;
+ panelstruct->laneconfig = &djn_hx83112b_1080p_cmd_lane_config;
+ panelstruct->paneltiminginfo = &djn_hx83112b_1080p_cmd_timing_info;
+ panelstruct->panelresetseq = &djn_hx83112b_1080p_cmd_reset_seq;
+ panelstruct->backlightinfo = &djn_hx83112b_1080p_cmd_backlight;
+ //pinfo->labibb = &djn_hx83112b_1080p_cmd_labibb;
+ pinfo->mipi.panel_on_cmds = djn_hx83112b_1080p_cmd_on_command;
+ pinfo->mipi.num_of_panel_on_cmds = DJN_HX83112B_1080P_CMD_ON_COMMAND;
+ pinfo->mipi.panel_off_cmds = djn_hx83112b_1080p_cmd_off_command;
+ pinfo->mipi.num_of_panel_off_cmds = DJN_HX83112B_1080P_CMD_OFF_COMMAND;
+ //carful timing...
+ memcpy(phy_db->timing,
+ djn_hx83112b_1080p_14nm_cmd_timings, MAX_TIMING_CONFIG * sizeof(uint32_t));
+ pinfo->mipi.signature = DJN_HX83112B_1080P_CMD_SIGNATURE;
+
+ break;
+ /*[Arima_8901][Jialong] lcm driver porting end*/
+
case UNKNOWN_PANEL:
default:
memset(panelstruct, 0, sizeof(struct panel_struct));
@@ -347,7 +420,7 @@
struct mdss_dsi_phy_ctrl *phy_db)
{
uint32_t hw_id = board_hardware_id();
- uint32_t platform_subtype = board_hardware_subtype();
+ //uint32_t platform_subtype = board_hardware_subtype();
int32_t panel_override_id;
phy_db->pll_type = DSI_PLL_TYPE_THULIUM;
@@ -369,28 +442,40 @@
}
switch (hw_id) {
+
+ /*[Arima_8901][Jialong] lcm driver porting begin*/
case HW_PLATFORM_MTP:
- panel_id = TRULY_1080P_VIDEO_PANEL;
- if (platform_subtype == 0x03 || platform_subtype == 0x04)
- panel_id = HX8399C_FHD_PLUSE_VIDEO_PANEL;
- break;
+ //panel_id = TRULY_1080P_VIDEO_PANEL;
+ //if (platform_subtype == 0x03)
+ // panel_id = HX8399C_FHD_PLUSE_VIDEO_PANEL;
+ //break;
case HW_PLATFORM_SURF:
case HW_PLATFORM_RCM:
- panel_id = TRULY_1080P_VIDEO_PANEL;
- if (platform_subtype == 0x02 || platform_subtype == 0x03)
- panel_id = HX8399C_FHD_PLUSE_VIDEO_PANEL;
- break;
+ //panel_id = TRULY_1080P_VIDEO_PANEL;
+ //if (platform_subtype == 0x02)
+ // panel_id = HX8399C_FHD_PLUSE_VIDEO_PANEL;
+ //break;
case HW_PLATFORM_QRD:
- panel_id = R69006_1080P_CMD_PANEL;
- if (platform_subtype == 0x01 || platform_subtype == 0x03)
- panel_id = HX8399C_FHD_PLUSE_VIDEO_PANEL;
+ //panel_id = R69006_1080P_CMD_PANEL;
+ //if (platform_subtype == 0x01 || platform_subtype == 0x03)
+ // panel_id = HX8399C_FHD_PLUSE_VIDEO_PANEL;
+
+ //[Arima][8901][JialongJhan] Command mode 20190516 Start
+ //[Jialong]This is default for video mode
+ //panel_id = TRULY_HX83112B_1080P_VIDEO_PANEL;
+
+ //[Jialong]This is default for command mode
+ panel_id = DJN_HX83112B_1080P_CMD_PANEL;
+ //[Arima][8901][JialongJhan] Command mode 20190516 End
break;
+ /*[Arima_8901][Jialong] lcm driver porting end*/
+
default:
dprintf(CRITICAL, "Display not enabled for %d HW type\n",
hw_id);
return PANEL_TYPE_UNKNOWN;
}
-
+
panel_init:
/*
* Update all data structures after 'panel_init' label. Only panel
diff --git a/target/msm8953/target_display.c b/target/msm8953/target_display.c
old mode 100644
new mode 100755
index 771fb4f..cd95c8a
--- a/target/msm8953/target_display.c
+++ b/target/msm8953/target_display.c
@@ -68,15 +68,24 @@
static struct gpio_pin reset_gpio = {
"msmgpio", 61, 3, 1, 0, 1
};
+
+//Jialong bkl gpio modify to 96 from 59
static struct gpio_pin bkl_gpio = {
- "msmgpio", 59, 3, 1, 0, 1
+ "msmgpio", 96, 3, 1, 0, 1
};
static struct gpio_pin enable_gpio = {
"msmgpio", 12, 3, 1, 0, 1
};
+//[Arima][8901][Jialong]LCM initial code from IC firmware Start
+static struct gpio_pin tp_reset_gpio = {
+ "msmgpio", 64, 3, 1, 0, 1
+};
+//[Arima][8901][Jialong]LCM initial code from IC firmware End
+
+
#define VCO_DELAY_USEC 1000
#define GPIO_STATE_LOW 0
@@ -153,6 +162,16 @@
int target_backlight_ctrl(struct backlight *bl, uint8_t enable)
{
uint32_t ret = NO_ERROR;
+ //[Arima][8901][Jialong]LCM initial code from IC firmware Start
+ if(enable){
+ //enable backlight
+ gpio_tlmm_config(bkl_gpio.pin_id, 0,
+ bkl_gpio.pin_direction, bkl_gpio.pin_pull,
+ bkl_gpio.pin_strength, bkl_gpio.pin_state);
+
+ gpio_set_dir(bkl_gpio.pin_id, 2);
+ }
+ //[Arima][8901][Jialong]LCM initial code from IC firmware End
if (bl->bl_interface_type == BL_DCS)
return ret;
@@ -244,7 +263,6 @@
struct msm_panel_info *pinfo)
{
int ret = NO_ERROR;
- uint32_t hw_id = board_hardware_id();
if (enable) {
@@ -257,13 +275,16 @@
gpio_set_dir(enable_gpio.pin_id, 2);
}
- if (hw_id != HW_PLATFORM_QRD) {
- gpio_tlmm_config(bkl_gpio.pin_id, 0,
- bkl_gpio.pin_direction, bkl_gpio.pin_pull,
- bkl_gpio.pin_strength, bkl_gpio.pin_state);
+ //[Arima][8901][Jialong]LCM initial code from IC firmware Start
+ gpio_tlmm_config(tp_reset_gpio.pin_id, 0,
+ tp_reset_gpio.pin_direction, tp_reset_gpio.pin_pull,
+ tp_reset_gpio.pin_strength, tp_reset_gpio.pin_state);
- gpio_set_dir(bkl_gpio.pin_id, 2);
- }
+ //set touch reset pin high low high
+ gpio_set_dir(tp_reset_gpio.pin_id, GPIO_STATE_HIGH);
+ gpio_set_dir(tp_reset_gpio.pin_id, GPIO_STATE_LOW);
+ gpio_set_dir(tp_reset_gpio.pin_id, GPIO_STATE_HIGH);
+ //[Arima][8901][Jialong]LCM initial code from IC firmware End
gpio_tlmm_config(reset_gpio.pin_id, 0,
reset_gpio.pin_direction, reset_gpio.pin_pull,