blob: 2f05288854b1a24e8398cac8f7be470f129528a7 [file] [log] [blame]
Dhaval Patelc47e89d2014-01-06 15:32:02 -08001/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions
5 * are met:
6 * * Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * * Redistributions in binary form must reproduce the above copyright
9 * notice, this list of conditions and the following disclaimer in
10 * the documentation and/or other materials provided with the
11 * distribution.
12 * * Neither the name of The Linux Foundation nor the names of its
13 * contributors may be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
23 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30/*---------------------------------------------------------------------------
31 * This file is autogenerated file using gcdb parser. Please do not edit it.
32 * Update input XML file to add a new entry or update variable in this file
33 * VERSION = "1.0"
34 *---------------------------------------------------------------------------*/
35
36#ifndef _PANEL_JDI_QHD_DUALDSI_CMD_H_
37#define _PANEL_JDI_QHD_DUALDSI_CMD_H_
38/*---------------------------------------------------------------------------*/
39/* HEADER files */
40/*---------------------------------------------------------------------------*/
41#include "panel.h"
42
43/*---------------------------------------------------------------------------*/
44/* Panel configuration */
45/*---------------------------------------------------------------------------*/
46static struct panel_config jdi_qhd_dualdsi_cmd_panel_data = {
47 "qcom,mdss_dsi_jdi_qhd_dualmipi0_cmd", "dsi:0:", "qcom,mdss-dsi-panel",
48 10, 1, "DISPLAY_1", 0, 0, 60, 0, 0, 1, 0, 0, 0, 0, 0, 11, 0, 0,
49 "qcom,mdss_dsi_jdi_qhd_dualmipi1_cmd"
50};
51
52/*---------------------------------------------------------------------------*/
53/* Panel resolution */
54/*---------------------------------------------------------------------------*/
55static struct panel_resolution jdi_qhd_dualdsi_cmd_panel_res = {
56 2560, 1440, 120, 44, 16, 0, 8, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0
57};
58
59/*---------------------------------------------------------------------------*/
60/* Panel color information */
61/*---------------------------------------------------------------------------*/
62static struct color_info jdi_qhd_dualdsi_cmd_color = {
63 24, 0, 0xff, 0, 0, 0
64};
65
66/*---------------------------------------------------------------------------*/
67/* Panel on/off command information */
68/*---------------------------------------------------------------------------*/
69static char jdi_qhd_dualdsi_cmd_on_cmd0[] = {
70 0x01, 0x00, 0x05, 0x80
71};
72
73static char jdi_qhd_dualdsi_cmd_on_cmd1[] = {
74 0x3a, 0x77, 0x15, 0x80
75};
76
77static char jdi_qhd_dualdsi_cmd_on_cmd2[] = {
78 0x05, 0x00, 0x39, 0xC0,
79 0x2a, 0x00, 0x00, 0x04,
80 0xff, 0xFF, 0xFF, 0xFF,
81};
82
83static char jdi_qhd_dualdsi_cmd_on_cmd3[] = {
84 0x05, 0x00, 0x39, 0xC0,
85 0x2b, 0x00, 0x00, 0x05,
86 0x9f, 0xFF, 0xFF, 0xFF,
87};
88
89static char jdi_qhd_dualdsi_cmd_on_cmd4[] = {
90 0x51, 0xff, 0x15, 0x80
91};
92
93static char jdi_qhd_dualdsi_cmd_on_cmd5[] = {
94 0x11, 0x00, 0x05, 0x80
95};
96
97static char jdi_qhd_dualdsi_cmd_on_cmd6[] = {
98 0xb0, 0x00, 0x23, 0x80
99};
100
101static char jdi_qhd_dualdsi_cmd_on_cmd7[] = {
102 0x02, 0x00, 0x29, 0xC0,
103 0xb3, 0x0c, 0xFF, 0xFF,
104};
105
106static char jdi_qhd_dualdsi_cmd_on_cmd8[] = {
107 0x14, 0x00, 0x29, 0xC0,
108 0xce, 0x7d, 0x40, 0x48,
109 0x56, 0x67, 0x78, 0x88,
110 0x98, 0xa7, 0xb5, 0xc3,
111 0xd1, 0xde, 0xe9, 0xf2,
112 0xfa, 0xff, 0x04, 0x00,
113};
114
115static char jdi_qhd_dualdsi_cmd_on_cmd9[] = {
116 0xb0, 0x03, 0x23, 0x80
117};
118
119static char jdi_qhd_dualdsi_cmd_on_cmd10[] = {
120 0x29, 0x00, 0x05, 0x80
121};
122
123static char jdi_qhd_dualdsi_cmd_on_cmd11[] = {
124 0x35, 0x00, 0x15, 0x80
125};
126
127static char jdi_qhd_dualdsi_cmd_on_cmd12[] = {
128 0x53, 0x24, 0x15, 0x80
129};
130
131static struct mipi_dsi_cmd jdi_qhd_dualdsi_cmd_on_command[] = {
132 {0x4, jdi_qhd_dualdsi_cmd_on_cmd0, 0x05},
133 {0x4, jdi_qhd_dualdsi_cmd_on_cmd1, 0x05},
134 {0xc, jdi_qhd_dualdsi_cmd_on_cmd2, 0x05},
135 {0xc, jdi_qhd_dualdsi_cmd_on_cmd3, 0x05},
136 {0x4, jdi_qhd_dualdsi_cmd_on_cmd4, 0x05},
137 {0x4, jdi_qhd_dualdsi_cmd_on_cmd5, 0x78},
138 {0x4, jdi_qhd_dualdsi_cmd_on_cmd6, 0x05},
139 {0x8, jdi_qhd_dualdsi_cmd_on_cmd7, 0x05},
140 {0x18, jdi_qhd_dualdsi_cmd_on_cmd8, 0x05},
141 {0x4, jdi_qhd_dualdsi_cmd_on_cmd9, 0x05},
142 {0x4, jdi_qhd_dualdsi_cmd_on_cmd10, 0x14},
143 {0x4, jdi_qhd_dualdsi_cmd_on_cmd11, 0x05},
144 {0x4, jdi_qhd_dualdsi_cmd_on_cmd12, 0x05},
145};
146
147#define JDI_QHD_DUALDSI_CMD_ON_COMMAND 13
148
149
150static char jdi_qhd_dualdsi_cmdoff_cmd0[] = {
151 0x28, 0x00, 0x05, 0x80
152};
153
154static char jdi_qhd_dualdsi_cmdoff_cmd1[] = {
155 0x10, 0x00, 0x05, 0x80
156};
157
158static struct mipi_dsi_cmd jdi_qhd_dualdsi_cmd_off_command[] = {
159 {0x4, jdi_qhd_dualdsi_cmdoff_cmd0, 0x32},
160 {0x4, jdi_qhd_dualdsi_cmdoff_cmd1, 0x78}
161};
162
163#define JDI_QHD_DUALDSI_CMD_OFF_COMMAND 2
164
165
166static struct command_state jdi_qhd_dualdsi_cmd_state = {
167 0, 1
168};
169
170/*---------------------------------------------------------------------------*/
171/* Command mode panel information */
172/*---------------------------------------------------------------------------*/
173static struct commandpanel_info jdi_qhd_dualdsi_cmd_command_panel = {
174 1, 1, 1, 0, 0, 0x2c, 0, 0, 0, 1, 0, 0
175};
176
177/*---------------------------------------------------------------------------*/
178/* Video mode panel information */
179/*---------------------------------------------------------------------------*/
180static struct videopanel_info jdi_qhd_dualdsi_cmd_video_panel = {
181 0, 0, 0, 0, 1, 1, 1, 0, 0
182};
183
184/*---------------------------------------------------------------------------*/
185/* Lane configuration */
186/*---------------------------------------------------------------------------*/
187static struct lane_configuration jdi_qhd_dualdsi_cmd_lane_config = {
188 4, 0, 1, 1, 1, 1
189};
190
191/*---------------------------------------------------------------------------*/
192/* Panel timing */
193/*---------------------------------------------------------------------------*/
194static const uint32_t jdi_qhd_dualdsi_cmd_timings[] = {
195 0xcd, 0x32, 0x22, 0x00, 0x60, 0x64, 0x26, 0x34, 0x29, 0x03, 0x04, 0x00
196};
197
198static struct panel_timing jdi_qhd_dualdsi_cmd_timing_info = {
199 0x0, 0x04, 0x03, 0x27
200};
201
202/*---------------------------------------------------------------------------*/
203/* Panel reset sequence */
204/*---------------------------------------------------------------------------*/
205static struct panel_reset_sequence jdi_qhd_dualdsi_cmd_reset_seq = {
206 {1, 0, 1, }, {20, 200, 20, }, 2
207};
208
209/*---------------------------------------------------------------------------*/
210/* Backlight setting */
211/*---------------------------------------------------------------------------*/
212static struct backlight jdi_qhd_dualdsi_cmd_backlight = {
Dhaval Patelf8a5b0d2014-01-07 21:47:46 -0800213 0, 1, 4095, 100, 1, "PMIC_8941"
Dhaval Patelc47e89d2014-01-06 15:32:02 -0800214};
215
216#endif /*_PANEL_JDI_QHD_DUALDSI_CMD_H_*/