blob: add8e555b5466b2a81fa6453e2e43c2d6c011320 [file] [log] [blame]
Ray Zhang0d303af2015-01-21 10:17:02 +08001/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
Casey Piper78fa0ce2013-09-04 16:07:26 -07002 *
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_1080P_VIDEO_H_
37
38#define _PANEL_JDI_1080P_VIDEO_H_
39/*---------------------------------------------------------------------------*/
40/* HEADER files */
41/*---------------------------------------------------------------------------*/
42#include "panel.h"
43
44/*---------------------------------------------------------------------------*/
45/* Panel configuration */
46/*---------------------------------------------------------------------------*/
47
48static struct panel_config jdi_1080p_video_panel_data = {
49 "qcom,mdss_dsi_jdi_1080p_video", "dsi:0:", "qcom,mdss-dsi-panel",
Veera Sundaram Sankaran824e6fa2014-12-09 11:32:58 -080050 10, 0, "DISPLAY_1", 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, ""
Casey Piper78fa0ce2013-09-04 16:07:26 -070051};
52
53/*---------------------------------------------------------------------------*/
54/* Panel resolution */
55/*---------------------------------------------------------------------------*/
56static struct panel_resolution jdi_1080p_video_panel_res = {
Anusha Kodurud1b4e292014-04-01 12:52:03 +053057 1080, 1920, 96, 64, 16, 0, 4, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
Casey Piper78fa0ce2013-09-04 16:07:26 -070058};
59
60/*---------------------------------------------------------------------------*/
61/* Panel Color Information */
62/*---------------------------------------------------------------------------*/
63static struct color_info jdi_1080p_video_color = {
64 24, 0, 0xff, 0, 0, 0
65};
66
67/*---------------------------------------------------------------------------*/
68/* Panel Command information */
69/*---------------------------------------------------------------------------*/
70static char jdi_1080p_video_on_cmd0[] = {
710x55, 0x00, 0x15, 0x80 };
72
73
74static char jdi_1080p_video_on_cmd1[] = {
750x53, 0x2C, 0x15, 0x80 };
76
77
78static char jdi_1080p_video_on_cmd2[] = {
790x35, 0x00, 0x15, 0x80 };
80
81
82static char jdi_1080p_video_on_cmd3[] = {
830x29, 0x00, 0x05, 0x80 };
84
85
86static char jdi_1080p_video_on_cmd4[] = {
870x11, 0x00, 0x05, 0x80 };
88
89
90
91
92static struct mipi_dsi_cmd jdi_1080p_video_on_command[] = {
Veera Sundaram Sankaran824e6fa2014-12-09 11:32:58 -080093{ 0x4 , jdi_1080p_video_on_cmd0, 0x0},
94{ 0x4 , jdi_1080p_video_on_cmd1, 0x0},
95{ 0x4 , jdi_1080p_video_on_cmd2, 0x0},
96{ 0x4 , jdi_1080p_video_on_cmd3, 0x0},
97{ 0x4 , jdi_1080p_video_on_cmd4, 0x0}
Casey Piper78fa0ce2013-09-04 16:07:26 -070098};
99#define JDI_1080P_VIDEO_ON_COMMAND 5
100
101
102static char jdi_1080p_videooff_cmd0[] = {
1030x28, 0x00, 0x05, 0x80 };
104
105
106static char jdi_1080p_videooff_cmd1[] = {
1070x10, 0x00, 0x05, 0x80 };
108
109
110
111
112static struct mipi_dsi_cmd jdi_1080p_video_off_command[] = {
Veera Sundaram Sankaran824e6fa2014-12-09 11:32:58 -0800113{ 0x4 , jdi_1080p_videooff_cmd0, 0},
114{ 0x4 , jdi_1080p_videooff_cmd1, 0}
Casey Piper78fa0ce2013-09-04 16:07:26 -0700115};
116#define JDI_1080P_VIDEO_OFF_COMMAND 2
117
118
119static struct command_state jdi_1080p_video_state = {
120 0, 1
121};
122
123/*---------------------------------------------------------------------------*/
124/* Command mode panel information */
125/*---------------------------------------------------------------------------*/
126
127static struct commandpanel_info jdi_1080p_video_command_panel = {
128 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
129};
130
131/*---------------------------------------------------------------------------*/
132/* Video mode panel information */
133/*---------------------------------------------------------------------------*/
134
135static struct videopanel_info jdi_1080p_video_video_panel = {
Kuogee Hsiehecb13062014-01-29 09:30:56 -0800136 0, 0, 0, 0, 1, 1, 2, 0, 0x9
Casey Piper78fa0ce2013-09-04 16:07:26 -0700137};
138
139/*---------------------------------------------------------------------------*/
140/* Lane Configuration */
141/*---------------------------------------------------------------------------*/
142
143static struct lane_configuration jdi_1080p_video_lane_config = {
Ray Zhang0d303af2015-01-21 10:17:02 +0800144 4, 0, 1, 1, 1, 1, 0
Casey Piper78fa0ce2013-09-04 16:07:26 -0700145};
146
147
148/*---------------------------------------------------------------------------*/
149/* Panel Timing */
150/*---------------------------------------------------------------------------*/
151static const uint32_t jdi_1080p_video_timings[] = {
Anusha Kodurud1b4e292014-04-01 12:52:03 +0530152 0xe7, 0x36, 0x24, 0x00, 0x66, 0x6a, 0x2a, 0x3a, 0x2d, 0x03, 0x04, 0x00
Casey Piper78fa0ce2013-09-04 16:07:26 -0700153};
154
Casey Piper78fa0ce2013-09-04 16:07:26 -0700155static struct panel_timing jdi_1080p_video_timing_info = {
156 0x0, 0x04, 0x04, 0x1b
157};
158
159static struct panel_reset_sequence jdi_1080p_video_panel_reset_seq = {
Dhaval Patel79efc342014-03-20 16:05:23 -0700160{ 1, 0, 1, }, { 10, 10, 10, }, 2
Casey Piper78fa0ce2013-09-04 16:07:26 -0700161};
162
163/*---------------------------------------------------------------------------*/
164/* Backlight Settings */
165/*---------------------------------------------------------------------------*/
166
167static struct backlight jdi_1080p_video_backlight = {
168 1, 1, 4095, 100, 1, "PMIC_8941"
169};
Casey Pipere8feb932013-09-27 12:49:01 -0700170#define JDI_1080P_VIDEO_SIGNATURE 0xFF22
Casey Piper78fa0ce2013-09-04 16:07:26 -0700171
172
173#endif /*_PANEL_JDI_1080P_VIDEO_H_*/