blob: 3fe5be926daeab48306d29b0f52bb5a86b8fa327 [file] [log] [blame]
liuyan8c8b2c02015-01-26 15:27:19 +08001/* Copyright (c) 2013, 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_OTM1902B_1080P_CMD_H_
37
38#define _PANEL_OTM1902B_1080P_CMD_H_
39/*---------------------------------------------------------------------------*/
40/* HEADER files */
41/*---------------------------------------------------------------------------*/
42#include "panel.h"
43
44/*---------------------------------------------------------------------------*/
45/* Panel configuration */
46/*---------------------------------------------------------------------------*/
47
48static struct panel_config otm1902b_1080p_cmd_panel_data = {
49 "qcom,mdss_dsi_otm1902b_1080p_cmd", "dsi:0:", "qcom,mdss-dsi-panel",
50 10, 1, "DISPLAY_1", 0, 424000000, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
51};
52
53/*---------------------------------------------------------------------------*/
54/* Panel resolution */
55/*---------------------------------------------------------------------------*/
56static struct panel_resolution otm1902b_1080p_cmd_panel_res = {
liuyan04e7c7a2015-02-09 19:50:08 +080057 1080, 1920, 40, 64, 8, 0, 6, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
liuyan8c8b2c02015-01-26 15:27:19 +080058};
59
60/*---------------------------------------------------------------------------*/
61/* Panel Color Information */
62/*---------------------------------------------------------------------------*/
63static struct color_info otm1902b_1080p_cmd_color = {
64 24, 0, 0xff, 0, 0, 0
65};
66
67/*---------------------------------------------------------------------------*/
68/* Panel Command information */
69/*---------------------------------------------------------------------------*/
70static char otm1902b_1080p_cmd_on_cmd0[] = {
710x02, 0x00, 0x29, 0xC0,
720x00, 0xFF, 0xFF, 0xFF, };
73
74
75static char otm1902b_1080p_cmd_on_cmd1[] = {
760x02, 0x00, 0x29, 0xC0,
770x19, 0x02, 0xFF, 0xFF, };
78
79
80static char otm1902b_1080p_cmd_on_cmd2[] = {
810x02, 0x00, 0x29, 0xC0,
820x01, 0x00, 0xFF, 0xFF, };
83
84
85static char otm1902b_1080p_cmd_on_cmd3[] = {
860x02, 0x00, 0x29, 0xC0,
870x80, 0xFF, 0xFF, 0xFF, };
88
89
90static char otm1902b_1080p_cmd_on_cmd4[] = {
910x02, 0x00, 0x29, 0xC0,
920x19, 0x02, 0xFF, 0xFF, };
93
94
95static char otm1902b_1080p_cmd_on_cmd5[] = {
960x02, 0x00, 0x29, 0xC0,
970x00, 0x83, 0xFF, 0xFF, };
98
99
100static char otm1902b_1080p_cmd_on_cmd6[] = {
1010x02, 0x00, 0x29, 0xC0,
1020xF3, 0xCA, 0xFF, 0xFF, };
103
104
105static char otm1902b_1080p_cmd_on_cmd7[] = {
1060x02, 0x00, 0x29, 0xC0,
1070x00, 0x90, 0xFF, 0xFF, };
108
109
110static char otm1902b_1080p_cmd_on_cmd8[] = {
1110x02, 0x00, 0x29, 0xC0,
1120xc4, 0x00, 0xFF, 0xFF, };
113
114
115static char otm1902b_1080p_cmd_on_cmd9[] = {
1160x02, 0x00, 0x29, 0xC0,
1170x00, 0xB4, 0xFF, 0xFF, };
118
119
120static char otm1902b_1080p_cmd_on_cmd10[] = {
1210x02, 0x00, 0x29, 0xC0,
1220xC0, 0xC0, 0xFF, 0xFF, };
123
124
125static char otm1902b_1080p_cmd_on_cmd11[] = {
1260x02, 0x00, 0x29, 0xC0,
1270x2A, 0x00, 0xFF, 0xFF, };
128
129
130static char otm1902b_1080p_cmd_on_cmd12[] = {
1310x02, 0x00, 0x29, 0xC0,
1320x00, 0x04, 0xFF, 0xFF, };
133
134
135static char otm1902b_1080p_cmd_on_cmd13[] = {
1360x02, 0x00, 0x29, 0xC0,
1370x37, 0x2B, 0xFF, 0xFF, };
138
139
140static char otm1902b_1080p_cmd_on_cmd14[] = {
1410x02, 0x00, 0x29, 0xC0,
1420x00, 0x00, 0xFF, 0xFF, };
143
144
145static char otm1902b_1080p_cmd_on_cmd15[] = {
1460x02, 0x00, 0x29, 0xC0,
1470x07, 0x7F, 0xFF, 0xFF, };
148
149
150static char otm1902b_1080p_cmd_on_cmd16[] = {
1510x02, 0x00, 0x29, 0xC0,
liuyan04e7c7a2015-02-09 19:50:08 +08001520x53, 0x2C, 0xFF, 0xFF, };
liuyan8c8b2c02015-01-26 15:27:19 +0800153
154
155static char otm1902b_1080p_cmd_on_cmd17[] = {
1560x02, 0x00, 0x29, 0xC0,
liuyan04e7c7a2015-02-09 19:50:08 +08001570x51, 0xFF, 0xFF, 0xFF, };
158
159static char otm1902b_1080p_cmd_on_cmd18[] = {
1600x11, 0x00, 0x05, 0x80, };
161
162static char otm1902b_1080p_cmd_on_cmd19[] = {
1630x29, 0x00, 0x05, 0x80, };
liuyan8c8b2c02015-01-26 15:27:19 +0800164
165static struct mipi_dsi_cmd otm1902b_1080p_cmd_on_command[] = {
liuyan04e7c7a2015-02-09 19:50:08 +0800166{ 0x8 , otm1902b_1080p_cmd_on_cmd0 ,0x01},
167{ 0x8 , otm1902b_1080p_cmd_on_cmd1 ,0x01},
168{ 0x8 , otm1902b_1080p_cmd_on_cmd2 ,0x01},
169{ 0x8 , otm1902b_1080p_cmd_on_cmd3 ,0x01},
170{ 0x8 , otm1902b_1080p_cmd_on_cmd4 ,0x01},
171{ 0x8 , otm1902b_1080p_cmd_on_cmd5 ,0x01},
172{ 0x8 , otm1902b_1080p_cmd_on_cmd6 ,0x01},
173{ 0x8 , otm1902b_1080p_cmd_on_cmd7 ,0x01},
174{ 0x8 , otm1902b_1080p_cmd_on_cmd8 ,0x01},
175{ 0x8 , otm1902b_1080p_cmd_on_cmd9 ,0x01},
176{ 0x8 , otm1902b_1080p_cmd_on_cmd10 ,0x01},
177{ 0x8 , otm1902b_1080p_cmd_on_cmd11 ,0x01},
178{ 0x8 , otm1902b_1080p_cmd_on_cmd12 ,0x01},
179{ 0x8 , otm1902b_1080p_cmd_on_cmd13 ,0x01},
180{ 0x8 , otm1902b_1080p_cmd_on_cmd14 ,0x01},
181{ 0x8 , otm1902b_1080p_cmd_on_cmd15 ,0x01},
182{ 0x8 , otm1902b_1080p_cmd_on_cmd16 ,0x01},
183{ 0x8 , otm1902b_1080p_cmd_on_cmd17 ,0x01},
184{ 0x4 , otm1902b_1080p_cmd_on_cmd18 , 0x32},
185{ 0x4 , otm1902b_1080p_cmd_on_cmd19 , 0x60},
liuyan8c8b2c02015-01-26 15:27:19 +0800186};
liuyan04e7c7a2015-02-09 19:50:08 +0800187#define OTM1902B_1080P_CMD_ON_COMMAND 20
liuyan8c8b2c02015-01-26 15:27:19 +0800188
189static char otm1902b_1080p_cmdoff_cmd0[] = {
1900x28, 0x00, 0x05, 0x80 };
191
192
193static char otm1902b_1080p_cmdoff_cmd1[] = {
1940x10, 0x00, 0x05, 0x80 };
195
196
197
198
199static struct mipi_dsi_cmd otm1902b_1080p_cmd_off_command[] = {
200{ 0x4 , otm1902b_1080p_cmdoff_cmd0 , 0x32},
201{ 0x4 , otm1902b_1080p_cmdoff_cmd1 , 0x64}
202};
203#define OTM1902B_1080P_CMD_OFF_COMMAND 2
204
205
206static struct command_state otm1902b_1080p_cmd_state = {
207 0, 1
208};
209
210/*---------------------------------------------------------------------------*/
211/* Command mode panel information */
212/*---------------------------------------------------------------------------*/
213
214static struct commandpanel_info otm1902b_1080p_cmd_command_panel = {
215 1, 1, 1, 0, 0, 0x2c, 0, 0, 0, 1, 0, 0
216};
217
218/*---------------------------------------------------------------------------*/
219/* Video mode panel information */
220/*---------------------------------------------------------------------------*/
221
222static struct videopanel_info otm1902b_1080p_cmd_video_panel = {
223 1, 0, 0, 0, 1, 1, 2, 0, 0x9
224};
225
226/*---------------------------------------------------------------------------*/
227/* Lane Configuration */
228/*---------------------------------------------------------------------------*/
229
230static struct lane_configuration otm1902b_1080p_cmd_lane_config = {
231 4, 0, 1, 1, 1, 1
232};
233
234
235/*---------------------------------------------------------------------------*/
236/* Panel Timing */
237/*---------------------------------------------------------------------------*/
238const uint32_t otm1902b_1080p_cmd_timings[] = {
239 0xd5, 0x32, 0x22, 0x00, 0x60, 0x64, 0x26, 0x34, 0x29, 0x03, 0x04, 0x00
240};
241
242
243
244//static struct mipi_dsi_cmd otm1902b_1080p_cmd_rotation[] = {
245
246//};
247//#define OTM1902B_1080P_CMD_ROTATION 0
248
249
250static struct panel_timing otm1902b_1080p_cmd_timing_info = {
251 0, 4, 0x1e, 0x38
252};
253
254static struct panel_reset_sequence otm1902b_1080p_cmd_panel_reset_seq = {
255{ 1, 0, 1, }, { 20, 20, 20, }, 2
256};
257
258/*---------------------------------------------------------------------------*/
259/* Backlight Settings */
260/*---------------------------------------------------------------------------*/
261
262static struct backlight otm1902b_1080p_cmd_backlight = {
263 1, 0, 255, 100, 2, "PMIC_8941"
264};
265
266
267
268#endif /*_PANEL_OTM1902B_1080P_CMD_H_*/