Duy Truong | f3ac7b3 | 2013-02-13 01:07:28 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Channagoud Kadabi | 10189fd | 2012-05-25 13:33:39 +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 are |
| 5 | * 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 |
| 9 | * copyright notice, this list of conditions and the following |
| 10 | * disclaimer in the documentation and/or other materials provided |
| 11 | * with the distribution. |
Duy Truong | f3ac7b3 | 2013-02-13 01:07:28 -0800 | [diff] [blame] | 12 | * * Neither the name of The Linux Foundation nor the names of its |
Channagoud Kadabi | 10189fd | 2012-05-25 13:33:39 +0530 | [diff] [blame] | 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 "AS IS" AND ANY EXPRESS OR IMPLIED |
| 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT |
| 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS |
| 20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 23 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 24 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 25 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 26 | * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | * |
| 28 | */ |
| 29 | |
| 30 | #ifndef _MIPI_RENESAS_H_ |
| 31 | #define _MIPI_RENESAS_H_ |
| 32 | |
| 33 | #include <stdint.h> |
| 34 | #include <msm_panel.h> |
| 35 | #include <mipi_dsi.h> |
| 36 | #include <sys/types.h> |
| 37 | #include <err.h> |
| 38 | #include <reg.h> |
| 39 | #include <debug.h> |
| 40 | #include <target/display.h> |
| 41 | #include <dev/gpio.h> |
| 42 | |
| 43 | |
| 44 | /* Renesas Tremelo-M panel: List of commands */ |
| 45 | static char config_sleep_out[4] = { 0x11, 0x00, 0x05, 0x80 }; |
| 46 | static char config_CMD_MODE[4] = { 0x40, 0x01, 0x15, 0x80 }; |
| 47 | static char config_WRTXHT[12] = { |
| 48 | 0x07, 0x00, 0x39, 0xC0, 0x92, 0x16, 0x08, 0x08, 0x00, 0x01, 0xe0, 0xff }; |
| 49 | static char config_WRTXVT[12] = { |
| 50 | 0x07, 0x00, 0x39, 0xC0, 0x8b, 0x02, 0x02, 0x02, 0x00, 0x03, 0x60, 0xff }; |
| 51 | static char config_PLL2NR[4] = { 0xa0, 0x24, 0x15, 0x80 }; |
| 52 | static char config_PLL2NF1[4] = { 0xa2, 0xd0, 0x15, 0x80 }; |
| 53 | static char config_PLL2NF2[4] = { 0xa4, 0x00, 0x15, 0x80 }; |
| 54 | static char config_PLL2BWADJ1[4] = { 0xa6, 0xd0, 0x15, 0x80 }; |
| 55 | static char config_PLL2BWADJ2[4] = { 0xa8, 0x00, 0x15, 0x80 }; |
| 56 | static char config_PLL2CTL[4] = { 0xaa, 0x00, 0x15, 0x80 }; |
| 57 | static char config_DBICBR[4] = { 0x48, 0x03, 0x15, 0x80 }; |
| 58 | static char config_DBICTYPE[4] = { 0x49, 0x00, 0x15, 0x80 }; |
| 59 | static char config_DBICSET1[4] = { 0x4a, 0x1c, 0x15, 0x80 }; |
| 60 | static char config_DBICADD[4] = { 0x4b, 0x00, 0x15, 0x80 }; |
| 61 | static char config_DBICCTL[4] = { 0x4e, 0x01, 0x15, 0x80 }; |
| 62 | |
| 63 | /* static char config_COLMOD_565[4] = {0x3a, 0x05, 0x15, 0x80}; */ |
| 64 | /* static char config_COLMOD_666PACK[4] = {0x3a, 0x06, 0x15, 0x80}; */ |
| 65 | static char config_COLMOD_888[4] = { 0x3a, 0x07, 0x15, 0x80 }; |
| 66 | static char config_MADCTL[4] = { 0x36, 0x00, 0x15, 0x80 }; |
| 67 | static char config_DBIOC[4] = { 0x82, 0x40, 0x15, 0x80 }; |
| 68 | static char config_CASET[12] = { |
| 69 | 0x07, 0x00, 0x39, 0xC0, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdf, 0xff }; |
| 70 | static char config_PASET[12] = { |
| 71 | 0x07, 0x00, 0x39, 0xC0, 0x2b, 0x00, 0x00, 0x00, 0x00, 0x03, 0x5f, 0xff }; |
| 72 | static char config_TXON[4] = { 0x81, 0x00, 0x05, 0x80 }; |
| 73 | static char config_BLSET_TM[4] = { 0xff, 0x6c, 0x15, 0x80 }; |
| 74 | |
| 75 | static char config_AGCPSCTL_TM[4] = { 0x56, 0x08, 0x15, 0x80 }; |
| 76 | |
| 77 | static char config_DBICADD70[4] = { 0x4b, 0x70, 0x15, 0x80 }; |
| 78 | static char config_DBICSET_15[4] = { 0x4a, 0x15, 0x15, 0x80 }; |
| 79 | static char config_DBICADD72[4] = { 0x4b, 0x72, 0x15, 0x80 }; |
| 80 | |
| 81 | static char config_Power_Ctrl_2a_cmd[8] = { |
| 82 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x40, 0x10, 0xff }; |
| 83 | static char config_Auto_Sequencer_Setting_a_cmd[8] = { |
| 84 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 85 | static char Driver_Output_Ctrl_indx[8] = { |
| 86 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x01, 0xff }; |
| 87 | static char Driver_Output_Ctrl_cmd[8] = { |
| 88 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x10, 0xff }; |
| 89 | static char config_LCD_drive_AC_Ctrl_indx[8] = { |
| 90 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x02, 0xff }; |
| 91 | static char config_LCD_drive_AC_Ctrl_cmd[8] = { |
| 92 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x00, 0xff }; |
| 93 | static char config_Entry_Mode_indx[8] = { |
| 94 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x03, 0xff }; |
| 95 | static char config_Entry_Mode_cmd[8] = { |
| 96 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 97 | static char config_Display_Ctrl_1_indx[8] = { |
| 98 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x07, 0xff }; |
| 99 | static char config_Display_Ctrl_1_cmd[8] = { |
| 100 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 101 | static char config_Display_Ctrl_2_indx[8] = { |
| 102 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x08, 0xff }; |
| 103 | static char config_Display_Ctrl_2_cmd[8] = { |
| 104 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x04, 0xff }; |
| 105 | static char config_Display_Ctrl_3_indx[8] = { |
| 106 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x09, 0xff }; |
| 107 | static char config_Display_Ctrl_3_cmd[8] = { |
| 108 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x0c, 0xff }; |
| 109 | static char config_Display_IF_Ctrl_1_indx[8] = { |
| 110 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x0c, 0xff }; |
| 111 | static char config_Display_IF_Ctrl_1_cmd[8] = { |
| 112 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x40, 0x10, 0xff }; |
| 113 | static char config_Display_IF_Ctrl_2_indx[8] = { |
| 114 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x0e, 0xff }; |
| 115 | static char config_Display_IF_Ctrl_2_cmd[8] = { |
| 116 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 117 | |
| 118 | static char config_Panel_IF_Ctrl_1_indx[8] = { |
| 119 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x20, 0xff }; |
| 120 | static char config_Panel_IF_Ctrl_1_cmd[8] = { |
| 121 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x3f, 0xff }; |
| 122 | static char config_Panel_IF_Ctrl_3_indx[8] = { |
| 123 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x22, 0xff }; |
| 124 | static char config_Panel_IF_Ctrl_3_cmd[8] = { |
| 125 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x76, 0x00, 0xff }; |
| 126 | static char config_Panel_IF_Ctrl_4_indx[8] = { |
| 127 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x23, 0xff }; |
| 128 | static char config_Panel_IF_Ctrl_4_cmd[8] = { |
| 129 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x1c, 0x0a, 0xff }; |
| 130 | static char config_Panel_IF_Ctrl_5_indx[8] = { |
| 131 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x24, 0xff }; |
| 132 | static char config_Panel_IF_Ctrl_5_cmd[8] = { |
| 133 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x1c, 0x2c, 0xff }; |
| 134 | static char config_Panel_IF_Ctrl_6_indx[8] = { |
| 135 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x25, 0xff }; |
| 136 | static char config_Panel_IF_Ctrl_6_cmd[8] = { |
| 137 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x1c, 0x4e, 0xff }; |
| 138 | static char config_Panel_IF_Ctrl_8_indx[8] = { |
| 139 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x27, 0xff }; |
| 140 | static char config_Panel_IF_Ctrl_8_cmd[8] = { |
| 141 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 142 | static char config_Panel_IF_Ctrl_9_indx[8] = { |
| 143 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x28, 0xff }; |
| 144 | static char config_Panel_IF_Ctrl_9_cmd[8] = { |
| 145 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x76, 0x0c, 0xff }; |
| 146 | |
| 147 | static char config_gam_adjust_00_indx[8] = { |
| 148 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x00, 0xff }; |
| 149 | static char config_gam_adjust_00_cmd[8] = { |
| 150 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 151 | static char config_gam_adjust_01_indx[8] = { |
| 152 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x01, 0xff }; |
| 153 | static char config_gam_adjust_01_cmd[8] = { |
| 154 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x05, 0x02, 0xff }; |
| 155 | static char config_gam_adjust_02_indx[8] = { |
| 156 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x02, 0xff }; |
| 157 | static char config_gam_adjust_02_cmd[8] = { |
| 158 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x07, 0x05, 0xff }; |
| 159 | static char config_gam_adjust_03_indx[8] = { |
| 160 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x03, 0xff }; |
| 161 | static char config_gam_adjust_03_cmd[8] = { |
| 162 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 163 | static char config_gam_adjust_04_indx[8] = { |
| 164 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x04, 0xff }; |
| 165 | static char config_gam_adjust_04_cmd[8] = { |
| 166 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x02, 0x00, 0xff }; |
| 167 | static char config_gam_adjust_05_indx[8] = { |
| 168 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x05, 0xff }; |
| 169 | static char config_gam_adjust_05_cmd[8] = { |
| 170 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x07, 0x07, 0xff }; |
| 171 | static char config_gam_adjust_06_indx[8] = { |
| 172 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x06, 0xff }; |
| 173 | static char config_gam_adjust_06_cmd[8] = { |
| 174 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x10, 0x10, 0xff }; |
| 175 | static char config_gam_adjust_07_indx[8] = { |
| 176 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x07, 0xff }; |
| 177 | static char config_gam_adjust_07_cmd[8] = { |
| 178 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x02, 0x02, 0xff }; |
| 179 | static char config_gam_adjust_08_indx[8] = { |
| 180 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x08, 0xff }; |
| 181 | static char config_gam_adjust_08_cmd[8] = { |
| 182 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x07, 0x04, 0xff }; |
| 183 | static char config_gam_adjust_09_indx[8] = { |
| 184 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x09, 0xff }; |
| 185 | static char config_gam_adjust_09_cmd[8] = { |
| 186 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x07, 0x07, 0xff }; |
| 187 | static char config_gam_adjust_0A_indx[8] = { |
| 188 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x0a, 0xff }; |
| 189 | static char config_gam_adjust_0A_cmd[8] = { |
| 190 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 191 | static char config_gam_adjust_0B_indx[8] = { |
| 192 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x0b, 0xff }; |
| 193 | static char config_gam_adjust_0B_cmd[8] = { |
| 194 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x00, 0xff }; |
| 195 | static char config_gam_adjust_0C_indx[8] = { |
| 196 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x0c, 0xff }; |
| 197 | static char config_gam_adjust_0C_cmd[8] = { |
| 198 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x07, 0x07, 0xff }; |
| 199 | static char config_gam_adjust_0D_indx[8] = { |
| 200 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x0d, 0xff }; |
| 201 | static char config_gam_adjust_0D_cmd[8] = { |
| 202 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x10, 0x10, 0xff }; |
| 203 | static char config_gam_adjust_10_indx[8] = { |
| 204 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x10, 0xff }; |
| 205 | static char config_gam_adjust_10_cmd[8] = { |
| 206 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x04, 0xff }; |
| 207 | static char config_gam_adjust_11_indx[8] = { |
| 208 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x11, 0xff }; |
| 209 | static char config_gam_adjust_11_cmd[8] = { |
| 210 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x05, 0x03, 0xff }; |
| 211 | static char config_gam_adjust_12_indx[8] = { |
| 212 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x12, 0xff }; |
| 213 | static char config_gam_adjust_12_cmd[8] = { |
| 214 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x04, 0xff }; |
| 215 | static char config_gam_adjust_15_indx[8] = { |
| 216 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x15, 0xff }; |
| 217 | static char config_gam_adjust_15_cmd[8] = { |
| 218 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x04, 0xff }; |
| 219 | static char config_gam_adjust_16_indx[8] = { |
| 220 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x16, 0xff }; |
| 221 | static char config_gam_adjust_16_cmd[8] = { |
| 222 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x1c, 0xff }; |
| 223 | static char config_gam_adjust_17_indx[8] = { |
| 224 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x17, 0xff }; |
| 225 | static char config_gam_adjust_17_cmd[8] = { |
| 226 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x02, 0x04, 0xff }; |
| 227 | static char config_gam_adjust_18_indx[8] = { |
| 228 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x18, 0xff }; |
| 229 | static char config_gam_adjust_18_cmd[8] = { |
| 230 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x04, 0x02, 0xff }; |
| 231 | static char config_gam_adjust_19_indx[8] = { |
| 232 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x19, 0xff }; |
| 233 | static char config_gam_adjust_19_cmd[8] = { |
| 234 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x05, 0xff }; |
| 235 | static char config_gam_adjust_1C_indx[8] = { |
| 236 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x1c, 0xff }; |
| 237 | static char config_gam_adjust_1C_cmd[8] = { |
| 238 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x07, 0x07, 0xff }; |
| 239 | static char config_gam_adjust_1D_indx[8] = { |
| 240 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x1D, 0xff }; |
| 241 | static char config_gam_adjust_1D_cmd[8] = { |
| 242 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x02, 0x1f, 0xff }; |
| 243 | static char config_gam_adjust_20_indx[8] = { |
| 244 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x20, 0xff }; |
| 245 | static char config_gam_adjust_20_cmd[8] = { |
| 246 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x05, 0x07, 0xff }; |
| 247 | static char config_gam_adjust_21_indx[8] = { |
| 248 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x21, 0xff }; |
| 249 | static char config_gam_adjust_21_cmd[8] = { |
| 250 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x06, 0x04, 0xff }; |
| 251 | static char config_gam_adjust_22_indx[8] = { |
| 252 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x22, 0xff }; |
| 253 | static char config_gam_adjust_22_cmd[8] = { |
| 254 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x04, 0x05, 0xff }; |
| 255 | static char config_gam_adjust_27_indx[8] = { |
| 256 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x27, 0xff }; |
| 257 | static char config_gam_adjust_27_cmd[8] = { |
| 258 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x02, 0x03, 0xff }; |
| 259 | static char config_gam_adjust_28_indx[8] = { |
| 260 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x28, 0xff }; |
| 261 | static char config_gam_adjust_28_cmd[8] = { |
| 262 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x00, 0xff }; |
| 263 | static char config_gam_adjust_29_indx[8] = { |
| 264 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0x29, 0xff }; |
| 265 | static char config_gam_adjust_29_cmd[8] = { |
| 266 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x02, 0xff }; |
| 267 | |
| 268 | static char config_Power_Ctrl_1_indx[8] = { |
| 269 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x00, 0xff }; |
| 270 | static char config_Power_Ctrl_1b_cmd[8] = { |
| 271 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x36, 0x3c, 0xff }; |
| 272 | static char config_Power_Ctrl_2_indx[8] = { |
| 273 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x01, 0xff }; |
| 274 | static char config_Power_Ctrl_2b_cmd[8] = { |
| 275 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x40, 0x03, 0xff }; |
| 276 | static char config_Power_Ctrl_3_indx[8] = { |
| 277 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x02, 0xff }; |
| 278 | static char config_Power_Ctrl_3a_cmd[8] = { |
| 279 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x01, 0xff }; |
| 280 | static char config_Power_Ctrl_4_indx[8] = { |
| 281 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x03, 0xff }; |
| 282 | static char config_Power_Ctrl_4a_cmd[8] = { |
| 283 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x3c, 0x58, 0xff }; |
| 284 | static char config_Power_Ctrl_6_indx[8] = { |
| 285 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x0c, 0xff }; |
| 286 | static char config_Power_Ctrl_6a_cmd[8] = { |
| 287 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x35, 0xff }; |
| 288 | |
| 289 | static char config_Auto_Sequencer_Setting_b_cmd[8] = { |
| 290 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x02, 0xff }; |
| 291 | static char config_Panel_IF_Ctrl_10_indx[8] = { |
| 292 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x29, 0xff }; |
| 293 | static char config_Panel_IF_Ctrl_10a_cmd[8] = { |
| 294 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x03, 0xbf, 0xff }; |
| 295 | static char config_Auto_Sequencer_Setting_indx[8] = { |
| 296 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x01, 0x06, 0xff }; |
| 297 | static char config_Auto_Sequencer_Setting_c_cmd[8] = { |
| 298 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x00, 0x03, 0xff }; |
| 299 | static char config_Power_Ctrl_2c_cmd[8] = { |
| 300 | 0x03, 0x00, 0x39, 0xC0, 0x4c, 0x40, 0x10, 0xff }; |
| 301 | |
| 302 | static char config_VIDEO[4] = { 0x40, 0x00, 0x15, 0x80 }; |
| 303 | |
| 304 | static char config_COMMAND[4] = { 0x40, 0x01, 0x15, 0x80 }; |
| 305 | |
| 306 | static char config_Panel_IF_Ctrl_10_indx_off[8] = { |
| 307 | 0x03, 0x00, 0x39, 0xC0, 0x4C, 0x00, 0x29, 0xff }; |
| 308 | |
| 309 | static char config_Panel_IF_Ctrl_10b_cmd_off[8] = { |
| 310 | 0x03, 0x00, 0x39, 0xC0, 0x4C, 0x00, 0x02, 0xff }; |
| 311 | |
| 312 | static char config_Power_Ctrl_1a_cmd[8] = { |
| 313 | 0x03, 0x00, 0x39, 0xC0, 0x4C, 0x30, 0x00, 0xff }; |
| 314 | |
| 315 | static struct mipi_dsi_cmd renesas_panel_video_mode_cmds[] = { |
| 316 | {sizeof(config_sleep_out), config_sleep_out}, |
| 317 | {sizeof(config_CMD_MODE), config_CMD_MODE}, |
| 318 | {sizeof(config_WRTXHT), config_WRTXHT}, |
| 319 | {sizeof(config_WRTXVT), config_WRTXVT}, |
| 320 | {sizeof(config_PLL2NR), config_PLL2NR}, |
| 321 | {sizeof(config_PLL2NF1), config_PLL2NF1}, |
| 322 | {sizeof(config_PLL2NF2), config_PLL2NF2}, |
| 323 | {sizeof(config_PLL2BWADJ1), config_PLL2BWADJ1}, |
| 324 | {sizeof(config_PLL2BWADJ2), config_PLL2BWADJ2}, |
| 325 | {sizeof(config_PLL2CTL), config_PLL2CTL}, |
| 326 | {sizeof(config_DBICBR), config_DBICBR}, |
| 327 | {sizeof(config_DBICTYPE), config_DBICTYPE}, |
| 328 | {sizeof(config_DBICSET1), config_DBICSET1}, |
| 329 | {sizeof(config_DBICADD), config_DBICADD}, |
| 330 | {sizeof(config_DBICCTL), config_DBICCTL}, |
| 331 | {sizeof(config_COLMOD_888), config_COLMOD_888}, |
| 332 | /* Choose config_COLMOD_565 or config_COLMOD_666PACK for other modes */ |
| 333 | {sizeof(config_MADCTL), config_MADCTL}, |
| 334 | {sizeof(config_DBIOC), config_DBIOC}, |
| 335 | {sizeof(config_CASET), config_CASET}, |
| 336 | {sizeof(config_PASET), config_PASET}, |
| 337 | {sizeof(config_TXON), config_TXON}, |
| 338 | {sizeof(config_BLSET_TM), config_BLSET_TM}, |
| 339 | {sizeof(config_AGCPSCTL_TM), config_AGCPSCTL_TM}, |
| 340 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 341 | {sizeof(config_Power_Ctrl_1_indx), config_Power_Ctrl_1_indx}, |
| 342 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 343 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 344 | {sizeof(config_Power_Ctrl_1a_cmd), config_Power_Ctrl_1a_cmd}, |
| 345 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 346 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 347 | {sizeof(config_Power_Ctrl_2_indx), config_Power_Ctrl_2_indx}, |
| 348 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 349 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 350 | {sizeof(config_Power_Ctrl_2a_cmd), config_Power_Ctrl_2a_cmd}, |
| 351 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 352 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 353 | {sizeof(config_Auto_Sequencer_Setting_indx), |
| 354 | config_Auto_Sequencer_Setting_indx}, |
| 355 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 356 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 357 | {sizeof(config_Auto_Sequencer_Setting_a_cmd), |
| 358 | config_Auto_Sequencer_Setting_a_cmd}, |
| 359 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 360 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 361 | {sizeof(Driver_Output_Ctrl_indx), Driver_Output_Ctrl_indx}, |
| 362 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 363 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 364 | {sizeof(Driver_Output_Ctrl_cmd), |
| 365 | Driver_Output_Ctrl_cmd}, |
| 366 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 367 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 368 | {sizeof(config_LCD_drive_AC_Ctrl_indx), |
| 369 | config_LCD_drive_AC_Ctrl_indx}, |
| 370 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 371 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 372 | {sizeof(config_LCD_drive_AC_Ctrl_cmd), |
| 373 | config_LCD_drive_AC_Ctrl_cmd}, |
| 374 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 375 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 376 | {sizeof(config_Entry_Mode_indx), |
| 377 | config_Entry_Mode_indx}, |
| 378 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 379 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 380 | {sizeof(config_Entry_Mode_cmd), |
| 381 | config_Entry_Mode_cmd}, |
| 382 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 383 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 384 | {sizeof(config_Display_Ctrl_1_indx), |
| 385 | config_Display_Ctrl_1_indx}, |
| 386 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 387 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 388 | {sizeof(config_Display_Ctrl_1_cmd), |
| 389 | config_Display_Ctrl_1_cmd}, |
| 390 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 391 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 392 | {sizeof(config_Display_Ctrl_2_indx), |
| 393 | config_Display_Ctrl_2_indx}, |
| 394 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 395 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 396 | {sizeof(config_Display_Ctrl_2_cmd), |
| 397 | config_Display_Ctrl_2_cmd}, |
| 398 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 399 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 400 | {sizeof(config_Display_Ctrl_3_indx), |
| 401 | config_Display_Ctrl_3_indx}, |
| 402 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 403 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 404 | {sizeof(config_Display_Ctrl_3_cmd), |
| 405 | config_Display_Ctrl_3_cmd}, |
| 406 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 407 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 408 | {sizeof(config_Display_IF_Ctrl_1_indx), |
| 409 | config_Display_IF_Ctrl_1_indx}, |
| 410 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 411 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 412 | {sizeof(config_Display_IF_Ctrl_1_cmd), |
| 413 | config_Display_IF_Ctrl_1_cmd}, |
| 414 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 415 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 416 | {sizeof(config_Display_IF_Ctrl_2_indx), |
| 417 | config_Display_IF_Ctrl_2_indx}, |
| 418 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 419 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 420 | {sizeof(config_Display_IF_Ctrl_2_cmd), |
| 421 | config_Display_IF_Ctrl_2_cmd}, |
| 422 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 423 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 424 | {sizeof(config_Panel_IF_Ctrl_1_indx), |
| 425 | config_Panel_IF_Ctrl_1_indx}, |
| 426 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 427 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 428 | {sizeof(config_Panel_IF_Ctrl_1_cmd), |
| 429 | config_Panel_IF_Ctrl_1_cmd}, |
| 430 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 431 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 432 | {sizeof(config_Panel_IF_Ctrl_3_indx), |
| 433 | config_Panel_IF_Ctrl_3_indx}, |
| 434 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 435 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 436 | {sizeof(config_Panel_IF_Ctrl_3_cmd), |
| 437 | config_Panel_IF_Ctrl_3_cmd}, |
| 438 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 439 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 440 | {sizeof(config_Panel_IF_Ctrl_4_indx), |
| 441 | config_Panel_IF_Ctrl_4_indx}, |
| 442 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 443 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 444 | {sizeof(config_Panel_IF_Ctrl_4_cmd), |
| 445 | config_Panel_IF_Ctrl_4_cmd}, |
| 446 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 447 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 448 | {sizeof(config_Panel_IF_Ctrl_5_indx), |
| 449 | config_Panel_IF_Ctrl_5_indx}, |
| 450 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 451 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 452 | {sizeof(config_Panel_IF_Ctrl_5_cmd), |
| 453 | config_Panel_IF_Ctrl_5_cmd}, |
| 454 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 455 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 456 | {sizeof(config_Panel_IF_Ctrl_6_indx), |
| 457 | config_Panel_IF_Ctrl_6_indx}, |
| 458 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 459 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 460 | {sizeof(config_Panel_IF_Ctrl_6_cmd), |
| 461 | config_Panel_IF_Ctrl_6_cmd}, |
| 462 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 463 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 464 | {sizeof(config_Panel_IF_Ctrl_8_indx), |
| 465 | config_Panel_IF_Ctrl_8_indx}, |
| 466 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 467 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 468 | {sizeof(config_Panel_IF_Ctrl_8_cmd), |
| 469 | config_Panel_IF_Ctrl_8_cmd}, |
| 470 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 471 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 472 | {sizeof(config_Panel_IF_Ctrl_9_indx), |
| 473 | config_Panel_IF_Ctrl_9_indx}, |
| 474 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 475 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 476 | {sizeof(config_Panel_IF_Ctrl_9_cmd), |
| 477 | config_Panel_IF_Ctrl_9_cmd}, |
| 478 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 479 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 480 | {sizeof(config_gam_adjust_00_indx), |
| 481 | config_gam_adjust_00_indx}, |
| 482 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 483 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 484 | {sizeof(config_gam_adjust_00_cmd), |
| 485 | config_gam_adjust_00_cmd}, |
| 486 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 487 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 488 | {sizeof(config_gam_adjust_01_indx), |
| 489 | config_gam_adjust_01_indx}, |
| 490 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 491 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 492 | {sizeof(config_gam_adjust_01_cmd), |
| 493 | config_gam_adjust_01_cmd}, |
| 494 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 495 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 496 | {sizeof(config_gam_adjust_02_indx), |
| 497 | config_gam_adjust_02_indx}, |
| 498 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 499 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 500 | {sizeof(config_gam_adjust_02_cmd), |
| 501 | config_gam_adjust_02_cmd}, |
| 502 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 503 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 504 | {sizeof(config_gam_adjust_03_indx), |
| 505 | config_gam_adjust_03_indx}, |
| 506 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 507 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 508 | {sizeof(config_gam_adjust_03_cmd), |
| 509 | config_gam_adjust_03_cmd}, |
| 510 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 511 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 512 | {sizeof(config_gam_adjust_04_indx), config_gam_adjust_04_indx}, |
| 513 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 514 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 515 | {sizeof(config_gam_adjust_04_cmd), config_gam_adjust_04_cmd}, |
| 516 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 517 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 518 | {sizeof(config_gam_adjust_05_indx), config_gam_adjust_05_indx}, |
| 519 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 520 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 521 | {sizeof(config_gam_adjust_05_cmd), config_gam_adjust_05_cmd}, |
| 522 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 523 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 524 | {sizeof(config_gam_adjust_06_indx), config_gam_adjust_06_indx}, |
| 525 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 526 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 527 | {sizeof(config_gam_adjust_06_cmd), config_gam_adjust_06_cmd}, |
| 528 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 529 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 530 | {sizeof(config_gam_adjust_07_indx), config_gam_adjust_07_indx}, |
| 531 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 532 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 533 | {sizeof(config_gam_adjust_07_cmd), config_gam_adjust_07_cmd}, |
| 534 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 535 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 536 | {sizeof(config_gam_adjust_08_indx), config_gam_adjust_08_indx}, |
| 537 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 538 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 539 | {sizeof(config_gam_adjust_08_cmd), config_gam_adjust_08_cmd}, |
| 540 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 541 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 542 | {sizeof(config_gam_adjust_09_indx), config_gam_adjust_09_indx}, |
| 543 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 544 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 545 | {sizeof(config_gam_adjust_09_cmd), config_gam_adjust_09_cmd}, |
| 546 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 547 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 548 | {sizeof(config_gam_adjust_0A_indx), config_gam_adjust_0A_indx}, |
| 549 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 550 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 551 | {sizeof(config_gam_adjust_0A_cmd), config_gam_adjust_0A_cmd}, |
| 552 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 553 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 554 | {sizeof(config_gam_adjust_0B_indx), config_gam_adjust_0B_indx}, |
| 555 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 556 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 557 | {sizeof(config_gam_adjust_0B_cmd), config_gam_adjust_0B_cmd}, |
| 558 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 559 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 560 | {sizeof(config_gam_adjust_0C_indx), config_gam_adjust_0C_indx}, |
| 561 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 562 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 563 | {sizeof(config_gam_adjust_0C_cmd), config_gam_adjust_0C_cmd}, |
| 564 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 565 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 566 | {sizeof(config_gam_adjust_0D_indx), config_gam_adjust_0D_indx}, |
| 567 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 568 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 569 | {sizeof(config_gam_adjust_0D_cmd), config_gam_adjust_0D_cmd}, |
| 570 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 571 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 572 | {sizeof(config_gam_adjust_10_indx), config_gam_adjust_10_indx}, |
| 573 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 574 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 575 | {sizeof(config_gam_adjust_10_cmd), config_gam_adjust_10_cmd}, |
| 576 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 577 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 578 | {sizeof(config_gam_adjust_11_indx), config_gam_adjust_11_indx}, |
| 579 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 580 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 581 | {sizeof(config_gam_adjust_11_cmd), config_gam_adjust_11_cmd}, |
| 582 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 583 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 584 | {sizeof(config_gam_adjust_12_indx), config_gam_adjust_12_indx}, |
| 585 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 586 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 587 | {sizeof(config_gam_adjust_12_cmd), config_gam_adjust_12_cmd}, |
| 588 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 589 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 590 | {sizeof(config_gam_adjust_15_indx), config_gam_adjust_15_indx}, |
| 591 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 592 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 593 | {sizeof(config_gam_adjust_15_cmd), config_gam_adjust_15_cmd}, |
| 594 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 595 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 596 | {sizeof(config_gam_adjust_16_indx), config_gam_adjust_16_indx}, |
| 597 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 598 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 599 | {sizeof(config_gam_adjust_16_cmd), config_gam_adjust_16_cmd}, |
| 600 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 601 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 602 | {sizeof(config_gam_adjust_17_indx), config_gam_adjust_17_indx}, |
| 603 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 604 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 605 | {sizeof(config_gam_adjust_17_cmd), config_gam_adjust_17_cmd}, |
| 606 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 607 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 608 | {sizeof(config_gam_adjust_18_indx), config_gam_adjust_18_indx}, |
| 609 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 610 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 611 | {sizeof(config_gam_adjust_18_cmd), config_gam_adjust_18_cmd}, |
| 612 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 613 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 614 | {sizeof(config_gam_adjust_19_indx), config_gam_adjust_19_indx}, |
| 615 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 616 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 617 | {sizeof(config_gam_adjust_19_cmd), config_gam_adjust_19_cmd}, |
| 618 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 619 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 620 | {sizeof(config_gam_adjust_1C_indx), config_gam_adjust_1C_indx}, |
| 621 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 622 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 623 | {sizeof(config_gam_adjust_1C_cmd), config_gam_adjust_1C_cmd}, |
| 624 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 625 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 626 | {sizeof(config_gam_adjust_1D_indx), config_gam_adjust_1D_indx}, |
| 627 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 628 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 629 | {sizeof(config_gam_adjust_1D_cmd), config_gam_adjust_1D_cmd}, |
| 630 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 631 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 632 | {sizeof(config_gam_adjust_20_indx), config_gam_adjust_20_indx}, |
| 633 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 634 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 635 | {sizeof(config_gam_adjust_20_cmd), config_gam_adjust_20_cmd}, |
| 636 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 637 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 638 | {sizeof(config_gam_adjust_21_indx), config_gam_adjust_21_indx}, |
| 639 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 640 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 641 | {sizeof(config_gam_adjust_21_cmd), config_gam_adjust_21_cmd}, |
| 642 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 643 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 644 | {sizeof(config_gam_adjust_22_indx), config_gam_adjust_22_indx}, |
| 645 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 646 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 647 | {sizeof(config_gam_adjust_22_cmd), config_gam_adjust_22_cmd}, |
| 648 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 649 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 650 | {sizeof(config_gam_adjust_27_indx), config_gam_adjust_27_indx}, |
| 651 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 652 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 653 | {sizeof(config_gam_adjust_27_cmd), config_gam_adjust_27_cmd}, |
| 654 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 655 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 656 | {sizeof(config_gam_adjust_28_indx), config_gam_adjust_28_indx}, |
| 657 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 658 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 659 | {sizeof(config_gam_adjust_28_cmd), config_gam_adjust_28_cmd}, |
| 660 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 661 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 662 | {sizeof(config_gam_adjust_29_indx), config_gam_adjust_29_indx}, |
| 663 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 664 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 665 | {sizeof(config_gam_adjust_29_cmd), config_gam_adjust_29_cmd}, |
| 666 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 667 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 668 | {sizeof(config_Power_Ctrl_1_indx), config_Power_Ctrl_1_indx}, |
| 669 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 670 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 671 | {sizeof(config_Power_Ctrl_1b_cmd), config_Power_Ctrl_1b_cmd}, |
| 672 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 673 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 674 | {sizeof(config_Power_Ctrl_2_indx), config_Power_Ctrl_2_indx}, |
| 675 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 676 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 677 | {sizeof(config_Power_Ctrl_2b_cmd), config_Power_Ctrl_2b_cmd}, |
| 678 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 679 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 680 | {sizeof(config_Power_Ctrl_3_indx), config_Power_Ctrl_3_indx}, |
| 681 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 682 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 683 | {sizeof(config_Power_Ctrl_3a_cmd), config_Power_Ctrl_3a_cmd}, |
| 684 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 685 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 686 | {sizeof(config_Power_Ctrl_4_indx), config_Power_Ctrl_4_indx}, |
| 687 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 688 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 689 | {sizeof(config_Power_Ctrl_4a_cmd), config_Power_Ctrl_4a_cmd}, |
| 690 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 691 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 692 | {sizeof(config_Power_Ctrl_6_indx), config_Power_Ctrl_6_indx}, |
| 693 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 694 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 695 | {sizeof(config_Power_Ctrl_6a_cmd), config_Power_Ctrl_6a_cmd}, |
| 696 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 697 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 698 | {sizeof(config_Auto_Sequencer_Setting_indx), |
| 699 | config_Auto_Sequencer_Setting_indx}, |
| 700 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 701 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 702 | {sizeof(config_Auto_Sequencer_Setting_b_cmd), |
| 703 | config_Auto_Sequencer_Setting_b_cmd}, |
| 704 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 705 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 706 | {sizeof(config_Panel_IF_Ctrl_10_indx), |
| 707 | config_Panel_IF_Ctrl_10_indx}, |
| 708 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 709 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 710 | {sizeof(config_Panel_IF_Ctrl_10a_cmd), |
| 711 | config_Panel_IF_Ctrl_10a_cmd}, |
| 712 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 713 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 714 | {sizeof(config_Auto_Sequencer_Setting_indx), |
| 715 | config_Auto_Sequencer_Setting_indx}, |
| 716 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 717 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 718 | {sizeof(config_Auto_Sequencer_Setting_c_cmd), |
| 719 | config_Auto_Sequencer_Setting_c_cmd}, |
| 720 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 721 | {sizeof(config_DBICADD70), config_DBICADD70}, |
| 722 | {sizeof(config_Power_Ctrl_2_indx), |
| 723 | config_Power_Ctrl_2_indx}, |
| 724 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 725 | {sizeof(config_DBICADD72), config_DBICADD72}, |
| 726 | {sizeof(config_Power_Ctrl_2c_cmd), |
| 727 | config_Power_Ctrl_2c_cmd}, |
| 728 | {sizeof(config_DBICSET_15), config_DBICSET_15}, |
| 729 | /* Change this command to config_VIDEO for video mode */ |
| 730 | {sizeof(config_COMMAND), config_COMMAND}, |
| 731 | }; |
| 732 | |
| 733 | /* Toggle RESET pin of the DSI Client before sending |
| 734 | * panel init commands |
| 735 | */ |
| 736 | int mipi_renesas_panel_dsi_config(int on); |
| 737 | #endif /* _MIPI_RENESAS_H_ */ |