Sandeep Panda | e2bdab8 | 2014-11-24 18:42:57 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [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_TRULY_WVGA_CMD_H_ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 37 | #define _PANEL_TRULY_WVGA_CMD_H_ |
| 38 | /*---------------------------------------------------------------------------*/ |
| 39 | /* HEADER files */ |
| 40 | /*---------------------------------------------------------------------------*/ |
| 41 | #include "panel.h" |
| 42 | |
| 43 | /*---------------------------------------------------------------------------*/ |
| 44 | /* Panel configuration */ |
| 45 | /*---------------------------------------------------------------------------*/ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 46 | static struct panel_config truly_wvga_cmd_panel_data = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 47 | "qcom,mdss_dsi_truly_wvga_cmd", "dsi:0:", "qcom,mdss-dsi-panel", |
| 48 | 11, 1, "DISPLAY_1", 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | /*---------------------------------------------------------------------------*/ |
| 52 | /* Panel resolution */ |
| 53 | /*---------------------------------------------------------------------------*/ |
| 54 | static struct panel_resolution truly_wvga_cmd_panel_res = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 55 | 480, 800, 160, 40, 8, 0, 12, 10, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | /*---------------------------------------------------------------------------*/ |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 59 | /* Panel color information */ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 60 | /*---------------------------------------------------------------------------*/ |
| 61 | static struct color_info truly_wvga_cmd_color = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 62 | 24, 0, 0xff, 0, 0, 0 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | /*---------------------------------------------------------------------------*/ |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 66 | /* Panel on/off command information */ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 67 | /*---------------------------------------------------------------------------*/ |
| 68 | static char truly_wvga_cmd_on_cmd0[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 69 | 0x01, 0x00, 0x05, 0x80 |
| 70 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 71 | |
| 72 | static char truly_wvga_cmd_on_cmd1[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 73 | 0xb0, 0x04, 0x23, 0x80 |
| 74 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 75 | |
| 76 | static char truly_wvga_cmd_on_cmd2[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 77 | 0x03, 0x00, 0x29, 0xC0, |
| 78 | 0xb3, 0x02, 0x00, 0xFF, |
| 79 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 80 | |
| 81 | static char truly_wvga_cmd_on_cmd3[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 82 | 0x03, 0x00, 0x29, 0xC0, |
| 83 | 0xb6, 0x51, 0x83, 0xFF, |
| 84 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 85 | |
| 86 | static char truly_wvga_cmd_on_cmd4[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 87 | 0x05, 0x00, 0x29, 0xC0, |
| 88 | 0xb7, 0x00, 0x80, 0x15, |
| 89 | 0x25, 0xFF, 0xFF, 0xFF, |
| 90 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 91 | |
| 92 | static char truly_wvga_cmd_on_cmd5[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 93 | 0x14, 0x00, 0x29, 0xC0, |
| 94 | 0xb8, 0x00, 0x07, 0x07, |
| 95 | 0xff, 0xc8, 0xc8, 0x01, |
| 96 | 0x18, 0x10, 0x10, 0x37, |
| 97 | 0x5a, 0x87, 0xde, 0xff, |
| 98 | 0x00, 0x00, 0x00, 0x00, |
| 99 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 100 | |
| 101 | static char truly_wvga_cmd_on_cmd6[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 102 | 0x05, 0x00, 0x29, 0xC0, |
| 103 | 0xb9, 0x00, 0x00, 0x00, |
| 104 | 0x00, 0xFF, 0xFF, 0xFF, |
| 105 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 106 | |
| 107 | static char truly_wvga_cmd_on_cmd7[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 108 | 0xbd, 0x00, 0x23, 0x80 |
| 109 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 110 | |
| 111 | static char truly_wvga_cmd_on_cmd8[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 112 | 0x03, 0x00, 0x29, 0xC0, |
| 113 | 0xc0, 0x02, 0x43, 0xFF, |
| 114 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 115 | |
| 116 | static char truly_wvga_cmd_on_cmd9[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 117 | 0x10, 0x00, 0x29, 0xC0, |
| 118 | 0xc1, 0x43, 0x31, 0x99, |
| 119 | 0x21, 0x20, 0x00, 0x10, |
| 120 | 0x28, 0x0c, 0x0c, 0x00, |
| 121 | 0x00, 0x00, 0x21, 0x01, |
| 122 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 123 | |
| 124 | static char truly_wvga_cmd_on_cmd10[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 125 | 0x07, 0x00, 0x29, 0xC0, |
| 126 | 0xc2, 0x28, 0x06, 0x06, |
| 127 | 0x01, 0x03, 0x00, 0xFF, |
| 128 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 129 | |
| 130 | static char truly_wvga_cmd_on_cmd11[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 131 | 0x04, 0x00, 0x29, 0xC0, |
| 132 | 0xc3, 0x40, 0x00, 0x03, |
| 133 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 134 | |
| 135 | static char truly_wvga_cmd_on_cmd12[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 136 | 0x03, 0x00, 0x29, 0xC0, |
| 137 | 0x6f, 0x03, 0x00, 0xFF, |
| 138 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 139 | |
| 140 | static char truly_wvga_cmd_on_cmd13[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 141 | 0x03, 0x00, 0x29, 0xC0, |
| 142 | 0xc4, 0x00, 0x01, 0xFF, |
| 143 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 144 | |
| 145 | static char truly_wvga_cmd_on_cmd14[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 146 | 0x03, 0x00, 0x29, 0xC0, |
| 147 | 0xc6, 0x00, 0x00, 0xFF, |
| 148 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 149 | |
| 150 | static char truly_wvga_cmd_on_cmd15[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 151 | 0x06, 0x00, 0x29, 0xC0, |
| 152 | 0xc7, 0x11, 0x8d, 0xa0, |
| 153 | 0xf5, 0x27, 0xFF, 0xFF, |
| 154 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 155 | |
| 156 | static char truly_wvga_cmd_on_cmd16[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 157 | 0x19, 0x00, 0x29, 0xC0, |
| 158 | 0xc8, 0x01, 0x0a, 0x12, |
| 159 | 0x1c, 0x2b, 0x45, 0x3f, |
| 160 | 0x29, 0x17, 0x13, 0x0f, |
| 161 | 0x04, 0x01, 0x0a, 0x12, |
| 162 | 0x1c, 0x2b, 0x45, 0x3f, |
| 163 | 0x29, 0x17, 0x13, 0x0f, |
| 164 | 0x04, 0xFF, 0xFF, 0xFF, |
| 165 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 166 | |
| 167 | static char truly_wvga_cmd_on_cmd17[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 168 | 0x19, 0x00, 0x29, 0xC0, |
| 169 | 0xc9, 0x01, 0x0a, 0x12, |
| 170 | 0x1c, 0x2b, 0x45, 0x3f, |
| 171 | 0x29, 0x17, 0x13, 0x0f, |
| 172 | 0x04, 0x01, 0x0a, 0x12, |
| 173 | 0x1c, 0x2b, 0x45, 0x3f, |
| 174 | 0x29, 0x17, 0x13, 0x0f, |
| 175 | 0x04, 0xFF, 0xFF, 0xFF, |
| 176 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 177 | |
| 178 | static char truly_wvga_cmd_on_cmd18[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 179 | 0x19, 0x00, 0x29, 0xC0, |
| 180 | 0xca, 0x01, 0x0a, 0x12, |
| 181 | 0x1c, 0x2b, 0x45, 0x3f, |
| 182 | 0x29, 0x17, 0x13, 0x0f, |
| 183 | 0x04, 0x01, 0x0a, 0x12, |
| 184 | 0x1c, 0x2b, 0x45, 0x3f, |
| 185 | 0x29, 0x17, 0x13, 0x0f, |
| 186 | 0x04, 0xFF, 0xFF, 0xFF, |
| 187 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 188 | |
| 189 | static char truly_wvga_cmd_on_cmd19[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 190 | 0x11, 0x00, 0x29, 0xC0, |
| 191 | 0xd0, 0x99, 0x03, 0xce, |
| 192 | 0xa6, 0x00, 0x43, 0x20, |
| 193 | 0x10, 0x01, 0x00, 0x01, |
| 194 | 0x01, 0x00, 0x03, 0x01, |
| 195 | 0x00, 0xFF, 0xFF, 0xFF, |
| 196 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 197 | |
| 198 | static char truly_wvga_cmd_on_cmd20[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 199 | 0x08, 0x00, 0x29, 0xC0, |
| 200 | 0xd1, 0x18, 0x0C, 0x23, |
| 201 | 0x03, 0x75, 0x02, 0x50, |
| 202 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 203 | |
| 204 | static char truly_wvga_cmd_on_cmd21[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 205 | 0xd3, 0x33, 0x23, 0x80 |
| 206 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 207 | |
| 208 | static char truly_wvga_cmd_on_cmd22[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 209 | 0x03, 0x00, 0x29, 0xC0, |
| 210 | 0xd5, 0x2a, 0x2a, 0xFF, |
| 211 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 212 | |
| 213 | static char truly_wvga_cmd_on_cmd23[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 214 | 0x02, 0x00, 0x29, 0xC0, |
| 215 | 0xd6, 0x28, 0xFF, 0xFF, |
| 216 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 217 | |
| 218 | static char truly_wvga_cmd_on_cmd24[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 219 | 0x10, 0x00, 0x29, 0xC0, |
| 220 | 0xd7, 0x01, 0x00, 0xaa, |
| 221 | 0xc0, 0x2a, 0x2c, 0x22, |
| 222 | 0x12, 0x71, 0x0a, 0x12, |
| 223 | 0x00, 0xa0, 0x00, 0x03, |
| 224 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 225 | |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 226 | static char truly_wvga_cmd_on_cmd25[] = { |
| 227 | 0x09, 0x00, 0x29, 0xC0, |
| 228 | 0xd8, 0x44, 0x44, 0x22, |
| 229 | 0x44, 0x21, 0x46, 0x42, |
| 230 | 0x40, 0xFF, 0xFF, 0xFF, |
| 231 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 232 | |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 233 | static char truly_wvga_cmd_on_cmd26[] = { |
| 234 | 0x04, 0x00, 0x29, 0xC0, |
| 235 | 0xd9, 0xcf, 0x2d, 0x51, |
| 236 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 237 | |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 238 | static char truly_wvga_cmd_on_cmd27[] = { |
| 239 | 0x02, 0x00, 0x29, 0xC0, |
| 240 | 0xda, 0x01, 0xFF, 0xFF, |
| 241 | }; |
| 242 | |
| 243 | static char truly_wvga_cmd_on_cmd28[] = { |
| 244 | 0x03, 0x00, 0x29, 0xC0, |
| 245 | 0xde, 0x01, 0x4f, 0xFF, |
| 246 | }; |
| 247 | |
| 248 | static char truly_wvga_cmd_on_cmd29[] = { |
| 249 | 0x07, 0x00, 0x29, 0xC0, |
| 250 | 0xe1, 0x00, 0x00, 0x00, |
| 251 | 0x00, 0x00, 0x00, 0xFF, |
| 252 | }; |
| 253 | |
| 254 | static char truly_wvga_cmd_on_cmd30[] = { |
| 255 | 0xe6, 0x4f, 0x23, 0x80 |
| 256 | }; |
| 257 | |
| 258 | static char truly_wvga_cmd_on_cmd31[] = { |
| 259 | 0x06, 0x00, 0x29, 0xC0, |
| 260 | 0xf3, 0x06, 0x00, 0x00, |
| 261 | 0x24, 0x00, 0xFF, 0xFF, |
| 262 | }; |
| 263 | |
| 264 | static char truly_wvga_cmd_on_cmd32[] = { |
| 265 | 0x02, 0x00, 0x29, 0xC0, |
| 266 | 0xf8, 0x00, 0xFF, 0xFF, |
| 267 | }; |
| 268 | |
| 269 | static char truly_wvga_cmd_on_cmd33[] = { |
| 270 | 0xfa, 0x03, 0x23, 0x80 |
| 271 | }; |
| 272 | |
| 273 | static char truly_wvga_cmd_on_cmd34[] = { |
| 274 | 0x04, 0x00, 0x29, 0xC0, |
| 275 | 0xfb, 0x00, 0x00, 0x00, |
| 276 | }; |
| 277 | |
| 278 | static char truly_wvga_cmd_on_cmd35[] = { |
| 279 | 0x06, 0x00, 0x29, 0xC0, |
| 280 | 0xfc, 0x00, 0x00, 0x00, |
| 281 | 0x00, 0x00, 0xFF, 0xFF, |
| 282 | }; |
| 283 | |
| 284 | static char truly_wvga_cmd_on_cmd36[] = { |
| 285 | 0x05, 0x00, 0x29, 0xC0, |
| 286 | 0xfd, 0x00, 0x00, 0x70, |
| 287 | 0x00, 0xFF, 0xFF, 0xFF, |
| 288 | }; |
| 289 | |
| 290 | static char truly_wvga_cmd_on_cmd37[] = { |
| 291 | 0x05, 0x00, 0x39, 0xC0, |
| 292 | 0x2a, 0x00, 0x00, 0x01, |
| 293 | 0xdf, 0xFF, 0xFF, 0xFF, |
| 294 | }; |
| 295 | |
| 296 | static char truly_wvga_cmd_on_cmd38[] = { |
| 297 | 0x05, 0x00, 0x39, 0xC0, |
| 298 | 0x2b, 0x00, 0x00, 0x03, |
| 299 | 0x1f, 0xFF, 0xFF, 0xFF, |
| 300 | }; |
| 301 | |
| 302 | static char truly_wvga_cmd_on_cmd39[] = { |
| 303 | 0x35, 0x00, 0x15, 0x80 |
| 304 | }; |
| 305 | |
| 306 | static char truly_wvga_cmd_on_cmd40[] = { |
| 307 | 0x03, 0x00, 0x39, 0xC0, |
| 308 | 0x44, 0x00, 0x50, 0xFF, |
| 309 | }; |
| 310 | |
| 311 | static char truly_wvga_cmd_on_cmd41[] = { |
| 312 | 0x36, 0x41, 0x15, 0x80 |
| 313 | }; |
| 314 | |
| 315 | static char truly_wvga_cmd_on_cmd42[] = { |
| 316 | 0x3a, 0x77, 0x15, 0x80 |
| 317 | }; |
| 318 | |
| 319 | static char truly_wvga_cmd_on_cmd43[] = { |
| 320 | 0x11, 0x00, 0x05, 0x80 |
| 321 | }; |
| 322 | |
| 323 | static char truly_wvga_cmd_on_cmd44[] = { |
| 324 | 0x29, 0x00, 0x05, 0x80 |
| 325 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 326 | |
| 327 | static struct mipi_dsi_cmd truly_wvga_cmd_on_command[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 328 | {0x4, truly_wvga_cmd_on_cmd0, 0x00}, |
| 329 | {0x4, truly_wvga_cmd_on_cmd1, 0x00}, |
| 330 | {0x8, truly_wvga_cmd_on_cmd2, 0x00}, |
| 331 | {0x8, truly_wvga_cmd_on_cmd3, 0x00}, |
| 332 | {0xc, truly_wvga_cmd_on_cmd4, 0x00}, |
| 333 | {0x18, truly_wvga_cmd_on_cmd5, 0x00}, |
| 334 | {0xc, truly_wvga_cmd_on_cmd6, 0x00}, |
| 335 | {0x4, truly_wvga_cmd_on_cmd7, 0x00}, |
| 336 | {0x8, truly_wvga_cmd_on_cmd8, 0x00}, |
| 337 | {0x14, truly_wvga_cmd_on_cmd9, 0x00}, |
| 338 | {0xc, truly_wvga_cmd_on_cmd10, 0x00}, |
| 339 | {0x8, truly_wvga_cmd_on_cmd11, 0x00}, |
| 340 | {0x8, truly_wvga_cmd_on_cmd12, 0x00}, |
| 341 | {0x8, truly_wvga_cmd_on_cmd13, 0x00}, |
| 342 | {0x8, truly_wvga_cmd_on_cmd14, 0x00}, |
| 343 | {0xc, truly_wvga_cmd_on_cmd15, 0x00}, |
| 344 | {0x20, truly_wvga_cmd_on_cmd16, 0x00}, |
| 345 | {0x20, truly_wvga_cmd_on_cmd17, 0x00}, |
| 346 | {0x20, truly_wvga_cmd_on_cmd18, 0x00}, |
| 347 | {0x18, truly_wvga_cmd_on_cmd19, 0x00}, |
| 348 | {0xc, truly_wvga_cmd_on_cmd20, 0x00}, |
| 349 | {0x4, truly_wvga_cmd_on_cmd21, 0x00}, |
| 350 | {0x8, truly_wvga_cmd_on_cmd22, 0x00}, |
| 351 | {0x8, truly_wvga_cmd_on_cmd23, 0x00}, |
| 352 | {0x14, truly_wvga_cmd_on_cmd24, 0x00}, |
| 353 | {0x10, truly_wvga_cmd_on_cmd25, 0x00}, |
| 354 | {0x8, truly_wvga_cmd_on_cmd26, 0x00}, |
| 355 | {0x8, truly_wvga_cmd_on_cmd27, 0x00}, |
| 356 | {0x8, truly_wvga_cmd_on_cmd28, 0x00}, |
| 357 | {0xc, truly_wvga_cmd_on_cmd29, 0x00}, |
| 358 | {0x4, truly_wvga_cmd_on_cmd30, 0x00}, |
| 359 | {0xc, truly_wvga_cmd_on_cmd31, 0x00}, |
| 360 | {0x8, truly_wvga_cmd_on_cmd32, 0x00}, |
| 361 | {0x4, truly_wvga_cmd_on_cmd33, 0x00}, |
| 362 | {0x8, truly_wvga_cmd_on_cmd34, 0x00}, |
| 363 | {0xc, truly_wvga_cmd_on_cmd35, 0x00}, |
| 364 | {0xc, truly_wvga_cmd_on_cmd36, 0x00}, |
| 365 | {0xc, truly_wvga_cmd_on_cmd37, 0x00}, |
| 366 | {0xc, truly_wvga_cmd_on_cmd38, 0x00}, |
| 367 | {0x4, truly_wvga_cmd_on_cmd39, 0x00}, |
| 368 | {0x8, truly_wvga_cmd_on_cmd40, 0x00}, |
| 369 | {0x4, truly_wvga_cmd_on_cmd41, 0x00}, |
| 370 | {0x4, truly_wvga_cmd_on_cmd42, 0x00}, |
| 371 | {0x4, truly_wvga_cmd_on_cmd43, 0x7D}, |
| 372 | {0x4, truly_wvga_cmd_on_cmd44, 0x3c} |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 373 | }; |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 374 | |
| 375 | #define TRULY_WVGA_CMD_ON_COMMAND 45 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 376 | |
| 377 | |
| 378 | static char truly_wvga_cmdoff_cmd0[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 379 | 0x28, 0x00, 0x05, 0x80 |
| 380 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 381 | |
| 382 | static char truly_wvga_cmdoff_cmd1[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 383 | 0x10, 0x00, 0x05, 0x80 |
| 384 | }; |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 385 | |
| 386 | static struct mipi_dsi_cmd truly_wvga_cmd_off_command[] = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 387 | {0x4, truly_wvga_cmdoff_cmd0, 0x32}, |
| 388 | {0x4, truly_wvga_cmdoff_cmd1, 0x78} |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 389 | }; |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 390 | |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 391 | #define TRULY_WVGA_CMD_OFF_COMMAND 2 |
| 392 | |
| 393 | |
| 394 | static struct command_state truly_wvga_cmd_state = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 395 | 0, 0 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 396 | }; |
| 397 | |
| 398 | /*---------------------------------------------------------------------------*/ |
| 399 | /* Command mode panel information */ |
| 400 | /*---------------------------------------------------------------------------*/ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 401 | static struct commandpanel_info truly_wvga_cmd_command_panel = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 402 | 1, 1, 1, 0, 0, 0x2c, 0, 0, 0, 1, 0, 0 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 403 | }; |
| 404 | |
| 405 | /*---------------------------------------------------------------------------*/ |
| 406 | /* Video mode panel information */ |
| 407 | /*---------------------------------------------------------------------------*/ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 408 | static struct videopanel_info truly_wvga_cmd_video_panel = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 409 | 0, 0, 0, 0, 1, 1, 1, 0, 0x9 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 410 | }; |
| 411 | |
| 412 | /*---------------------------------------------------------------------------*/ |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 413 | /* Lane configuration */ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 414 | /*---------------------------------------------------------------------------*/ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 415 | static struct lane_configuration truly_wvga_cmd_lane_config = { |
Ray Zhang | 0d303af | 2015-01-21 10:17:02 +0800 | [diff] [blame] | 416 | 2, 0, 1, 1, 0, 0, 0 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 417 | }; |
| 418 | |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 419 | /*---------------------------------------------------------------------------*/ |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 420 | /* Panel timing */ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 421 | /*---------------------------------------------------------------------------*/ |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 422 | static const uint32_t truly_wvga_cmd_timings[] = { |
Sandeep Panda | e2bdab8 | 2014-11-24 18:42:57 +0530 | [diff] [blame] | 423 | 0x7B, 0x1A, 0x10, 0x00, 0x3C, 0x42, 0x14, 0x1C, 0x15, 0x3, 0x4, 0x00 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 424 | }; |
| 425 | |
| 426 | static struct panel_timing truly_wvga_cmd_timing_info = { |
Sandeep Panda | e2bdab8 | 2014-11-24 18:42:57 +0530 | [diff] [blame] | 427 | 2, 4, 0x04, 0x1a |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 428 | }; |
| 429 | |
| 430 | /*---------------------------------------------------------------------------*/ |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 431 | /* Panel reset sequence */ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 432 | /*---------------------------------------------------------------------------*/ |
| 433 | static struct panel_reset_sequence truly_wvga_cmd_reset_seq = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 434 | {2, 0, 2, }, {20, 2, 20, }, 2 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 435 | }; |
| 436 | |
| 437 | /*---------------------------------------------------------------------------*/ |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 438 | /* Backlight setting */ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 439 | /*---------------------------------------------------------------------------*/ |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 440 | static struct backlight truly_wvga_cmd_backlight = { |
Padmanabhan Komanduru | 03efecb | 2014-03-14 18:32:03 +0530 | [diff] [blame] | 441 | 0, 1, 255, 0, 1, 0 |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 442 | }; |
| 443 | |
Dhaval Patel | 215fcf2 | 2013-07-23 19:48:53 -0700 | [diff] [blame] | 444 | #endif /*_PANEL_TRULY_WVGA_CMD_H_*/ |