Ray Zhang | 0d303af | 2015-01-21 10:17:02 +0800 | [diff] [blame] | 1 | /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. |
Sandeep Panda | bd63e28 | 2014-08-20 11:05:32 +0530 | [diff] [blame] | 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_HX8394D_720P_VIDEO_H_ |
| 37 | |
| 38 | #define _PANEL_HX8394D_720P_VIDEO_H_ |
| 39 | /*---------------------------------------------------------------------------*/ |
| 40 | /* HEADER files */ |
| 41 | /*---------------------------------------------------------------------------*/ |
| 42 | #include "panel.h" |
| 43 | |
| 44 | /*---------------------------------------------------------------------------*/ |
| 45 | /* Panel configuration */ |
| 46 | /*---------------------------------------------------------------------------*/ |
| 47 | |
| 48 | static struct panel_config hx8394d_720p_video_panel_data = { |
| 49 | "qcom,mdss_dsi_hx8394d_720p_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 | /*---------------------------------------------------------------------------*/ |
| 56 | static struct panel_resolution hx8394d_720p_video_panel_res = { |
| 57 | 720, 1280, 52, 100, 24, 0, 8, 20, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 58 | }; |
| 59 | |
| 60 | /*---------------------------------------------------------------------------*/ |
| 61 | /* Panel Color Information */ |
| 62 | /*---------------------------------------------------------------------------*/ |
| 63 | static struct color_info hx8394d_720p_video_color = { |
| 64 | 24, 0, 0xff, 0, 0, 0 |
| 65 | }; |
| 66 | |
| 67 | /*---------------------------------------------------------------------------*/ |
| 68 | /* Panel Command information */ |
| 69 | /*---------------------------------------------------------------------------*/ |
| 70 | static char hx8394d_720p_video_on_cmd0[] = { |
| 71 | 0x04, 0x00, 0x39, 0xC0, |
| 72 | 0xb9, 0xff, 0x83, 0x94, |
| 73 | }; |
| 74 | |
| 75 | |
| 76 | static char hx8394d_720p_video_on_cmd1[] = { |
| 77 | 0x03, 0x00, 0x39, 0xC0, |
| 78 | 0xba, 0x33, 0x83, 0xFF, }; |
| 79 | |
| 80 | static char hx8394d_720p_video_on_cmd2[] = { |
| 81 | 0x10, 0x00, 0x39, 0xC0, |
| 82 | 0xb1, 0x6c, 0x12, 0x12, |
| 83 | 0x37, 0x04, 0x11, 0xf1, |
| 84 | 0x80, 0xec, 0x94, 0x23, |
| 85 | 0x80, 0xc0, 0xd2, 0x18, |
| 86 | }; |
| 87 | |
| 88 | |
| 89 | static char hx8394d_720p_video_on_cmd3[] = { |
| 90 | 0x0c, 0x00, 0x39, 0xC0, |
| 91 | 0xb2, 0x00, 0x64, 0x0e, |
| 92 | 0x0d, 0x32, 0x23, 0x08, |
| 93 | 0x08, 0x1c, 0x4d, 0x00, |
| 94 | }; |
| 95 | |
| 96 | |
| 97 | static char hx8394d_720p_video_on_cmd4[] = { |
| 98 | 0x0d, 0x00, 0x39, 0xC0, |
| 99 | 0xb4, 0x00, 0xff, 0x03, |
| 100 | 0x50, 0x03, 0x50, 0x03, |
| 101 | 0x50, 0x01, 0x6a, 0x01, |
| 102 | 0x6a, 0xFF, 0xFF, 0xFF, |
| 103 | }; |
| 104 | |
| 105 | |
| 106 | static char hx8394d_720p_video_on_cmd5[] = { |
| 107 | 0x02, 0x00, 0x39, 0xC0, |
| 108 | 0xbc, 0x07, 0xFF, 0xFF, |
| 109 | }; |
| 110 | |
| 111 | |
| 112 | static char hx8394d_720p_video_on_cmd6[] = { |
| 113 | 0x04, 0x00, 0x39, 0xC0, |
| 114 | 0xbf, 0x41, 0x0e, 0x01, }; |
| 115 | |
| 116 | |
| 117 | static char hx8394d_720p_video_on_cmd7[] = { |
| 118 | 0x1f, 0x00, 0x39, 0xC0, |
| 119 | 0xd3, 0x00, 0x07, 0x00, |
| 120 | 0x00, 0x00, 0x10, 0x00, |
| 121 | 0x32, 0x10, 0x05, 0x00, |
| 122 | 0x00, 0x32, 0x10, 0x00, |
| 123 | 0x00, 0x00, 0x32, 0x10, |
| 124 | 0x00, 0x00, 0x00, 0x36, |
| 125 | 0x03, 0x09, 0x09, 0x37, |
| 126 | 0x00, 0x00, 0x37, 0xFF, |
| 127 | }; |
| 128 | |
| 129 | |
| 130 | static char hx8394d_720p_video_on_cmd8[] = { |
| 131 | 0x2d, 0x00, 0x39, 0xC0, |
| 132 | 0xd5, 0x02, 0x03, 0x00, |
| 133 | 0x01, 0x06, 0x07, 0x04, |
| 134 | 0x05, 0x20, 0x21, 0x22, |
| 135 | 0x23, 0x18, 0x18, 0x18, |
| 136 | 0x18, 0x18, 0x18, 0x18, |
| 137 | 0x18, 0x18, 0x18, 0x18, |
| 138 | 0x18, 0x18, 0x18, 0x18, |
| 139 | 0x18, 0x18, 0x18, 0x18, |
| 140 | 0x18, 0x18, 0x18, 0x18, |
| 141 | 0x18, 0x18, 0x18, 0x24, |
| 142 | 0x25, 0x18, 0x18, 0x19, |
| 143 | 0x19, 0xFF, 0xFF, 0xFF, |
| 144 | }; |
| 145 | |
| 146 | |
| 147 | static char hx8394d_720p_video_on_cmd9[] = { |
| 148 | 0x2d, 0x00, 0x39, 0xC0, |
| 149 | 0xd6, 0x05, 0x04, 0x07, |
| 150 | 0x06, 0x01, 0x00, 0x03, |
| 151 | 0x02, 0x23, 0x22, 0x21, |
| 152 | 0x20, 0x18, 0x18, 0x18, |
| 153 | 0x18, 0x18, 0x18, 0x58, |
| 154 | 0x58, 0x18, 0x18, 0x18, |
| 155 | 0x18, 0x18, 0x18, 0x18, |
| 156 | 0x18, 0x18, 0x18, 0x18, |
| 157 | 0x18, 0x18, 0x18, 0x18, |
| 158 | 0x18, 0x18, 0x18, 0x25, |
| 159 | 0x24, 0x19, 0x19, 0x18, |
| 160 | 0x18, 0xFF, 0xFF, 0xFF, |
| 161 | }; |
| 162 | |
| 163 | |
| 164 | static char hx8394d_720p_video_on_cmd10[] = { |
| 165 | 0x02, 0x00, 0x39, 0xC0, |
| 166 | 0xcc, 0x09, 0xFF, 0xFF, }; |
| 167 | |
| 168 | |
| 169 | static char hx8394d_720p_video_on_cmd11[] = { |
| 170 | 0x03, 0x00, 0x39, 0xC0, |
| 171 | 0xc0, 0x30, 0x14, 0xFF, |
| 172 | }; |
| 173 | |
| 174 | static char hx8394d_720p_video_on_cmd12[] = { |
| 175 | 0x05, 0x00, 0x39, 0xC0, |
| 176 | 0xc7, 0x00, 0xc0, 0x40, |
| 177 | 0xc0, 0xFF, 0xFF, 0xFF, |
| 178 | }; |
| 179 | |
| 180 | static char hx8394d_720p_video_on_cmd13[] = { |
| 181 | 0x03, 0x00, 0x39, 0xC0, |
| 182 | 0xb6, 0x43, 0x43, 0xFF, |
| 183 | }; |
| 184 | |
| 185 | static char hx8394d_720p_video_on_cmd14[] = { |
| 186 | 0x11, 0x00, 0x05, 0x80 }; |
| 187 | |
| 188 | static char hx8394d_720p_video_on_cmd15[] = { |
| 189 | 0x29, 0x00, 0x05, 0x80 }; |
| 190 | |
| 191 | static struct mipi_dsi_cmd hx8394d_720p_video_on_command[] = { |
| 192 | { 0x8 , hx8394d_720p_video_on_cmd0, 0x00}, |
| 193 | { 0x8 , hx8394d_720p_video_on_cmd1, 0x00}, |
| 194 | { 0x14 , hx8394d_720p_video_on_cmd2, 0x00}, |
| 195 | { 0x10 , hx8394d_720p_video_on_cmd3, 0x00}, |
| 196 | { 0x14 , hx8394d_720p_video_on_cmd4, 0x00}, |
| 197 | { 0x8 , hx8394d_720p_video_on_cmd5, 0x00}, |
| 198 | { 0x8 , hx8394d_720p_video_on_cmd6, 0x00}, |
| 199 | { 0x24 , hx8394d_720p_video_on_cmd7, 0x00}, |
| 200 | { 0x34 , hx8394d_720p_video_on_cmd8, 0x00}, |
| 201 | { 0x34 , hx8394d_720p_video_on_cmd9, 0x00}, |
| 202 | { 0x8 , hx8394d_720p_video_on_cmd10, 0x00}, |
| 203 | { 0x8 , hx8394d_720p_video_on_cmd11, 0x00}, |
| 204 | { 0xc , hx8394d_720p_video_on_cmd12, 0x00}, |
| 205 | { 0x8 , hx8394d_720p_video_on_cmd13, 0x00}, |
| 206 | { 0x4 , hx8394d_720p_video_on_cmd14, 0xc8}, |
| 207 | { 0x4 , hx8394d_720p_video_on_cmd15, 0x0a} |
| 208 | }; |
| 209 | #define HX8394D_720P_VIDEO_ON_COMMAND 16 |
| 210 | |
Padmanabhan Komanduru | e9f0780 | 2014-11-04 15:14:59 +0530 | [diff] [blame] | 211 | static char hx8394d_720p_video_off_cmd0[] = { |
| 212 | 0x28, 0x00, 0x05, 0x80 |
| 213 | }; |
| 214 | |
| 215 | static char hx8394d_720p_video_off_cmd1[] = { |
| 216 | 0x10, 0x00, 0x05, 0x80 |
| 217 | }; |
| 218 | |
| 219 | static struct mipi_dsi_cmd hx8394d_720p_video_off_command[] = { |
| 220 | {0x4, hx8394d_720p_video_off_cmd0, 0x32}, |
| 221 | {0x4, hx8394d_720p_video_off_cmd1, 0x78} |
| 222 | }; |
| 223 | |
| 224 | #define HX8394D_720P_VIDEO_OFF_COMMAND 2 |
| 225 | |
Sandeep Panda | bd63e28 | 2014-08-20 11:05:32 +0530 | [diff] [blame] | 226 | static struct command_state hx8394d_720p_video_state = { |
| 227 | 0, 1 |
| 228 | }; |
| 229 | |
| 230 | /*---------------------------------------------------------------------------*/ |
| 231 | /* Command mode panel information */ |
| 232 | /*---------------------------------------------------------------------------*/ |
| 233 | |
| 234 | static struct commandpanel_info hx8394d_720p_video_command_panel = { |
| 235 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 236 | }; |
| 237 | |
| 238 | /*---------------------------------------------------------------------------*/ |
| 239 | /* Video mode panel information */ |
| 240 | /*---------------------------------------------------------------------------*/ |
| 241 | |
| 242 | static struct videopanel_info hx8394d_720p_video_video_panel = { |
| 243 | 1, 0, 0, 0, 1, 1, 2, 0, 0x9 |
| 244 | }; |
| 245 | |
| 246 | /*---------------------------------------------------------------------------*/ |
| 247 | /* Lane Configuration */ |
| 248 | /*---------------------------------------------------------------------------*/ |
| 249 | |
| 250 | static struct lane_configuration hx8394d_720p_video_lane_config = { |
Ray Zhang | 0d303af | 2015-01-21 10:17:02 +0800 | [diff] [blame] | 251 | 4, 0, 1, 1, 1, 1, 0 |
Sandeep Panda | bd63e28 | 2014-08-20 11:05:32 +0530 | [diff] [blame] | 252 | }; |
| 253 | |
| 254 | |
| 255 | /*---------------------------------------------------------------------------*/ |
| 256 | /* Panel Timing */ |
| 257 | /*---------------------------------------------------------------------------*/ |
| 258 | const uint32_t hx8394d_720p_video_timings[] = { |
| 259 | 0x79, 0x1a, 0x12, 0x00, 0x3e, 0x42, 0x16, 0x1e, 0x15, 0x03, 0x04, 0x00 |
| 260 | }; |
| 261 | |
| 262 | |
| 263 | |
| 264 | static struct mipi_dsi_cmd hx8394d_720p_video_rotation[] = { |
| 265 | |
| 266 | }; |
| 267 | #define HX8394D_720P_VIDEO_ROTATION 0 |
| 268 | |
| 269 | |
| 270 | static struct panel_timing hx8394d_720p_video_timing_info = { |
| 271 | 0, 4, 0x04, 0x1b |
| 272 | }; |
| 273 | |
| 274 | static struct panel_reset_sequence hx8394d_720p_video_panel_reset_seq = { |
| 275 | { 1, 0, 1, }, { 20, 20, 20, }, 2 |
| 276 | }; |
| 277 | |
| 278 | /*---------------------------------------------------------------------------*/ |
| 279 | /* Backlight Settings */ |
| 280 | /*---------------------------------------------------------------------------*/ |
| 281 | |
| 282 | static struct backlight hx8394d_720p_video_backlight = { |
| 283 | 1, 1, 4095, 100, 1, "PMIC_8941" |
| 284 | }; |
| 285 | |
Jayant Shekhar | 8c5d9d8 | 2015-01-08 14:52:30 +0530 | [diff] [blame] | 286 | #define HX8394D_720P_VIDEO_SIGNATURE 0xa0087 |
Sandeep Panda | bd63e28 | 2014-08-20 11:05:32 +0530 | [diff] [blame] | 287 | |
| 288 | #endif /*_HX8394D_720P_VIDEO_H_*/ |