blob: 832040772906108b617e2110206c81d06ce4daf3 [file] [log] [blame]
Casey Piper4aa3cb52013-11-14 13:26:33 -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_GENERIC_720P_CMD_H_
37
38#define _PANEL_GENERIC_720P_CMD_H_
39/*---------------------------------------------------------------------------*/
40/* HEADER files */
41/*---------------------------------------------------------------------------*/
42#include "panel.h"
43
44/*---------------------------------------------------------------------------*/
45/* Panel configuration */
46/*---------------------------------------------------------------------------*/
47
48static struct panel_config generic_720p_cmd_panel_data = {
49 "qcom,mdss_dsi_generic_720p_cmd", "dsi:0:", "qcom,mdss-dsi-panel",
50 10, 1, "DISPLAY_1", 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
51};
52
53/*---------------------------------------------------------------------------*/
54/* Panel resolution */
55/*---------------------------------------------------------------------------*/
56static struct panel_resolution generic_720p_cmd_panel_res = {
57 768, 1280, 26, 26, 26, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0
58};
59
60/*---------------------------------------------------------------------------*/
61/* Panel Color Information */
62/*---------------------------------------------------------------------------*/
63static struct color_info generic_720p_cmd_color = {
64 24, 0, 0xff, 0, 0, 0
65};
66
67/*---------------------------------------------------------------------------*/
68/* Panel Command information */
69/*---------------------------------------------------------------------------*/
70static char generic_720p_cmd_on_cmd0[] = {
710x11, 0x00, 0x05, 0x80 };
72
73
74static char generic_720p_cmd_on_cmd1[] = {
750x36, 0x00, 0x15, 0x80 };
76
77
78static char generic_720p_cmd_on_cmd2[] = {
790x29, 0x00, 0x05, 0x80 };
80
81
82static char generic_720p_cmd_on_cmd3[] = {
830x53, 0x24, 0x15, 0x80 };
84
85
86static char generic_720p_cmd_on_cmd4[] = {
870x35, 0x00, 0x15, 0x80 };
88
89
90
91
92static struct mipi_dsi_cmd generic_720p_cmd_on_command[] = {
93{ 0x4 , generic_720p_cmd_on_cmd0},
94{ 0x4 , generic_720p_cmd_on_cmd1},
95{ 0x4 , generic_720p_cmd_on_cmd2},
96{ 0x4 , generic_720p_cmd_on_cmd3},
97{ 0x4 , generic_720p_cmd_on_cmd4}
98};
99#define GENERIC_720P_CMD_ON_COMMAND 5
100
101
102static char generic_720p_cmdoff_cmd0[] = {
1030x34, 0x00, 0x05, 0x80 };
104
105
106static char generic_720p_cmdoff_cmd1[] = {
1070x10, 0x00, 0x05, 0x80 };
108
109
110static char generic_720p_cmdoff_cmd2[] = {
1110x28, 0x00, 0x05, 0x80 };
112
113
114static char generic_720p_cmdoff_cmd3[] = {
1150x53, 0x00, 0x15, 0x80 };
116
117
118
119
120static struct mipi_dsi_cmd generic_720p_cmd_off_command[] = {
121{ 0x4 , generic_720p_cmdoff_cmd0},
122{ 0x4 , generic_720p_cmdoff_cmd1},
123{ 0x4 , generic_720p_cmdoff_cmd2},
124{ 0x4 , generic_720p_cmdoff_cmd3}
125};
126#define GENERIC_720P_CMD_OFF_COMMAND 4
127
128
129static struct command_state generic_720p_cmd_state = {
130 0, 1
131};
132
133/*---------------------------------------------------------------------------*/
134/* Command mode panel information */
135/*---------------------------------------------------------------------------*/
136
137static struct commandpanel_info generic_720p_cmd_command_panel = {
138 1, 1, 1, 0, 0, 0x2c, 0, 0, 0, 1, 0, 0
139};
140
141/*---------------------------------------------------------------------------*/
142/* Video mode panel information */
143/*---------------------------------------------------------------------------*/
144
145static struct videopanel_info generic_720p_cmd_video_panel = {
146 0, 0, 0, 0, 1, 1, 1, 0, 0x9
147};
148
149/*---------------------------------------------------------------------------*/
150/* Lane Configuration */
151/*---------------------------------------------------------------------------*/
152
153static struct lane_configuration generic_720p_cmd_lane_config = {
154 4, 0, 1, 1, 1, 1
155};
156
157
158/*---------------------------------------------------------------------------*/
159/* Panel Timing */
160/*---------------------------------------------------------------------------*/
161static const uint32_t generic_720p_cmd_timings[] = {
162 0x6e, 0x26, 0x1b, 0x00, 0x35, 0x34, 0x20, 0x28, 0x17, 0x03, 0x04, 0x00
163};
164
165static struct panel_timing generic_720p_cmd_timing_info = {
166 0, 4, 0x20, 0x2a
167};
168
169static struct panel_reset_sequence generic_720p_cmd_reset_seq = {
170 { 1, 0, 1, }, { 20, 2, 20, }, 2
171};
172
173
174/*---------------------------------------------------------------------------*/
175/* Backlight Settings */
176/*---------------------------------------------------------------------------*/
177
178static struct backlight generic_720p_cmd_backlight = {
179 1, 1, 4095, 100, 1, "PMIC_8941"
180};
181
182#define GENERIC_720P_CMD_SIGNATURE 0x210000
183
184#endif /*_PANEL_GENERIC_720P_CMD_H_*/