blob: 10163955eaaf2412ce1967f48bfcbcd954fd78e9 [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,
c.wang26f8d592016-04-21 18:50:05 +0800720x00, 0x00, 0xFF, 0xFF, };
liuyan8c8b2c02015-01-26 15:27:19 +080073
74
75static char otm1902b_1080p_cmd_on_cmd1[] = {
c.wang26f8d592016-04-21 18:50:05 +0800760x05, 0x00, 0x29, 0xC0,
770xFF, 0x19, 0x02, 0x01,
780X00, 0xFF, 0xFF, 0xFF, };
liuyan8c8b2c02015-01-26 15:27:19 +080079
80
81static char otm1902b_1080p_cmd_on_cmd2[] = {
820x02, 0x00, 0x29, 0xC0,
c.wang26f8d592016-04-21 18:50:05 +0800830x00, 0x80, 0xFF, 0xFF, };
liuyan8c8b2c02015-01-26 15:27:19 +080084
85
86static char otm1902b_1080p_cmd_on_cmd3[] = {
c.wang26f8d592016-04-21 18:50:05 +0800870x03, 0x00, 0x29, 0xC0,
880xFF, 0x19, 0x02, 0xFF, };
liuyan8c8b2c02015-01-26 15:27:19 +080089
90
91static char otm1902b_1080p_cmd_on_cmd4[] = {
920x02, 0x00, 0x29, 0xC0,
c.wang26f8d592016-04-21 18:50:05 +0800930x00, 0xB0, 0xFF, 0xFF, };
liuyan8c8b2c02015-01-26 15:27:19 +080094
95
96static char otm1902b_1080p_cmd_on_cmd5[] = {
c.wang26f8d592016-04-21 18:50:05 +0800970x05, 0x00, 0x29, 0xC0,
980xCA, 0x0A, 0x02, 0x5F,
990x40, 0xFF, 0xFF, 0xFF, };
liuyan8c8b2c02015-01-26 15:27:19 +0800100
101
102static char otm1902b_1080p_cmd_on_cmd6[] = {
1030x02, 0x00, 0x29, 0xC0,
c.wang26f8d592016-04-21 18:50:05 +08001040x53, 0x2C, 0xFF, 0xFF, };
liuyan8c8b2c02015-01-26 15:27:19 +0800105
106
107static char otm1902b_1080p_cmd_on_cmd7[] = {
1080x02, 0x00, 0x29, 0xC0,
liuyan04e7c7a2015-02-09 19:50:08 +08001090x51, 0xFF, 0xFF, 0xFF, };
110
c.wang26f8d592016-04-21 18:50:05 +0800111static char otm1902b_1080p_cmd_on_cmd8[] = {
liuyan04e7c7a2015-02-09 19:50:08 +08001120x11, 0x00, 0x05, 0x80, };
113
c.wang26f8d592016-04-21 18:50:05 +0800114static char otm1902b_1080p_cmd_on_cmd9[] = {
liuyan04e7c7a2015-02-09 19:50:08 +08001150x29, 0x00, 0x05, 0x80, };
liuyan8c8b2c02015-01-26 15:27:19 +0800116
117static struct mipi_dsi_cmd otm1902b_1080p_cmd_on_command[] = {
c.wang26f8d592016-04-21 18:50:05 +0800118{ 0x8 , otm1902b_1080p_cmd_on_cmd0 ,0x010},
119{ 0xc , otm1902b_1080p_cmd_on_cmd1 ,0x010},
120{ 0x8 , otm1902b_1080p_cmd_on_cmd2 ,0x010},
121{ 0x8 , otm1902b_1080p_cmd_on_cmd3 ,0x010},
122{ 0x8 , otm1902b_1080p_cmd_on_cmd4 ,0x010},
123{ 0xc , otm1902b_1080p_cmd_on_cmd5 ,0x010},
124{ 0x8 , otm1902b_1080p_cmd_on_cmd6 ,0x010},
125{ 0x4 , otm1902b_1080p_cmd_on_cmd8 , 0x32},
126{ 0x4 , otm1902b_1080p_cmd_on_cmd9 , 0x60},
liuyan04e7c7a2015-02-09 19:50:08 +0800127{ 0x8 , otm1902b_1080p_cmd_on_cmd7 ,0x01},
liuyan8c8b2c02015-01-26 15:27:19 +0800128};
c.wang26f8d592016-04-21 18:50:05 +0800129#define OTM1902B_1080P_CMD_ON_COMMAND 10
liuyan8c8b2c02015-01-26 15:27:19 +0800130
131static char otm1902b_1080p_cmdoff_cmd0[] = {
1320x28, 0x00, 0x05, 0x80 };
133
134
135static char otm1902b_1080p_cmdoff_cmd1[] = {
1360x10, 0x00, 0x05, 0x80 };
137
138
139
140
141static struct mipi_dsi_cmd otm1902b_1080p_cmd_off_command[] = {
142{ 0x4 , otm1902b_1080p_cmdoff_cmd0 , 0x32},
143{ 0x4 , otm1902b_1080p_cmdoff_cmd1 , 0x64}
144};
145#define OTM1902B_1080P_CMD_OFF_COMMAND 2
146
147
148static struct command_state otm1902b_1080p_cmd_state = {
149 0, 1
150};
151
152/*---------------------------------------------------------------------------*/
153/* Command mode panel information */
154/*---------------------------------------------------------------------------*/
155
156static struct commandpanel_info otm1902b_1080p_cmd_command_panel = {
157 1, 1, 1, 0, 0, 0x2c, 0, 0, 0, 1, 0, 0
158};
159
160/*---------------------------------------------------------------------------*/
161/* Video mode panel information */
162/*---------------------------------------------------------------------------*/
163
164static struct videopanel_info otm1902b_1080p_cmd_video_panel = {
165 1, 0, 0, 0, 1, 1, 2, 0, 0x9
166};
167
168/*---------------------------------------------------------------------------*/
169/* Lane Configuration */
170/*---------------------------------------------------------------------------*/
171
172static struct lane_configuration otm1902b_1080p_cmd_lane_config = {
173 4, 0, 1, 1, 1, 1
174};
175
176
177/*---------------------------------------------------------------------------*/
178/* Panel Timing */
179/*---------------------------------------------------------------------------*/
180const uint32_t otm1902b_1080p_cmd_timings[] = {
181 0xd5, 0x32, 0x22, 0x00, 0x60, 0x64, 0x26, 0x34, 0x29, 0x03, 0x04, 0x00
182};
183
184
185
186//static struct mipi_dsi_cmd otm1902b_1080p_cmd_rotation[] = {
187
188//};
189//#define OTM1902B_1080P_CMD_ROTATION 0
190
191
192static struct panel_timing otm1902b_1080p_cmd_timing_info = {
193 0, 4, 0x1e, 0x38
194};
195
196static struct panel_reset_sequence otm1902b_1080p_cmd_panel_reset_seq = {
197{ 1, 0, 1, }, { 20, 20, 20, }, 2
198};
199
200/*---------------------------------------------------------------------------*/
201/* Backlight Settings */
202/*---------------------------------------------------------------------------*/
203
204static struct backlight otm1902b_1080p_cmd_backlight = {
205 1, 0, 255, 100, 2, "PMIC_8941"
206};
207
208
209
210#endif /*_PANEL_OTM1902B_1080P_CMD_H_*/