blob: df8c5a5ac0f458a7935d4a8afdde79eb5aa4022e [file] [log] [blame]
Casey Piper613a8962013-09-09 20:18:25 -07001/* 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_SHARP_QHD_VIDEO_H_
37
38#define _PANEL_SHARP_QHD_VIDEO_H_
39/*---------------------------------------------------------------------------*/
40/* HEADER files */
41/*---------------------------------------------------------------------------*/
42#include "panel.h"
43
44/*---------------------------------------------------------------------------*/
45/* Panel configuration */
46/*---------------------------------------------------------------------------*/
47
48static struct panel_config sharp_qhd_video_panel_data = {
49 "qcom,mdss_dsi_sharp_qhd_video", "dsi:0:", "qcom,mdss-dsi-panel",
50 10, 0, "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 sharp_qhd_video_panel_res = {
57 540, 960, 48, 80, 32, 0, 3, 15, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0
58};
59
60/*---------------------------------------------------------------------------*/
61/* Panel Color Information */
62/*---------------------------------------------------------------------------*/
63static struct color_info sharp_qhd_video_color = {
64 24, 2, 0xff, 0, 0, 0
65};
66
67/*---------------------------------------------------------------------------*/
68/* Panel Command information */
69/*---------------------------------------------------------------------------*/
70static char sharp_qhd_video_on_cmd0[] = {
710x01, 0x00, 0x05, 0x80 };
72
73
74static char sharp_qhd_video_on_cmd1[] = {
750x11, 0x00, 0x05, 0x80 };
76
77
78static char sharp_qhd_video_on_cmd2[] = {
790x53, 0x2c, 0x15, 0x80 };
80
81
82static char sharp_qhd_video_on_cmd3[] = {
830x51, 0xff, 0x15, 0x80 };
84
85
86static char sharp_qhd_video_on_cmd4[] = {
870x29, 0x00, 0x05, 0x80 };
88
89
90static char sharp_qhd_video_on_cmd5[] = {
910xae, 0x03, 0x15, 0x80 };
92
93
94static char sharp_qhd_video_on_cmd6[] = {
950x3a, 0x77, 0x15, 0x80 };
96
97
98
99
100static struct mipi_dsi_cmd sharp_qhd_video_on_command[] = {
101{ 0x4 , sharp_qhd_video_on_cmd0},
102{ 0x4 , sharp_qhd_video_on_cmd1},
103{ 0x4 , sharp_qhd_video_on_cmd2},
104{ 0x4 , sharp_qhd_video_on_cmd3},
105{ 0x4 , sharp_qhd_video_on_cmd4},
106{ 0x4 , sharp_qhd_video_on_cmd5},
107{ 0x4 , sharp_qhd_video_on_cmd6}
108};
109#define SHARP_QHD_VIDEO_ON_COMMAND 7
110
111
112static char sharp_qhd_videooff_cmd0[] = {
1130x28, 0x00, 0x05, 0x80 };
114
115
116static char sharp_qhd_videooff_cmd1[] = {
1170x10, 0x00, 0x05, 0x80 };
118
119
120
121
122static struct mipi_dsi_cmd sharp_qhd_video_off_command[] = {
123{ 0x4 , sharp_qhd_videooff_cmd0},
124{ 0x4 , sharp_qhd_videooff_cmd1}
125};
126#define SHARP_QHD_VIDEO_OFF_COMMAND 2
127
128
129static struct command_state sharp_qhd_video_state = {
130 0, 1
131};
132
133/*---------------------------------------------------------------------------*/
134/* Command mode panel information */
135/*---------------------------------------------------------------------------*/
136
137static struct commandpanel_info sharp_qhd_video_command_panel = {
138 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
139};
140
141/*---------------------------------------------------------------------------*/
142/* Video mode panel information */
143/*---------------------------------------------------------------------------*/
144
145static struct videopanel_info sharp_qhd_video_video_panel = {
146 1, 0, 0, 0, 1, 1, 0, 0, 0x9
147};
148
149/*---------------------------------------------------------------------------*/
150/* Lane Configuration */
151/*---------------------------------------------------------------------------*/
152
153static struct lane_configuration sharp_qhd_video_lane_config = {
154 2, 0, 1, 1, 0, 0
155};
156
157
158/*---------------------------------------------------------------------------*/
159/* Panel Timing */
160/*---------------------------------------------------------------------------*/
161const uint32_t sharp_qhd_video_timings[] = {
162 0x46, 0x1d, 0x20, 0x00, 0x39, 0x3a, 0x21, 0x21, 0x32, 0x03, 0x04, 0x00
163};
164
165
166
167static struct mipi_dsi_cmd sharp_qhd_video_rotation[] = {
168
169};
170#define SHARP_QHD_VIDEO_ROTATION 0
171
172
173static struct panel_timing sharp_qhd_video_timing_info = {
174 4, 4, 0x04, 0x1c
175};
176
177static struct panel_reset_sequence sharp_qhd_video_panel_reset_seq = {
178{ 1, 0, 1, }, { 20, 200, 20, }, 2
179};
180
181/*---------------------------------------------------------------------------*/
182/* Backlight Settings */
183/*---------------------------------------------------------------------------*/
184
185static struct backlight sharp_qhd_video_backlight = {
186 1, 1, 4095, 100, 1, "PMIC_8941"
187};
188
189
190#endif /*_PANEL_SHARP_QHD_VIDEO_H_*/