blob: 6a7027aa5175375bb5219b18a0c64019ca558de1 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include "msm_fb.h"
14#include "mipi_dsi.h"
15#include "mipi_renesas.h"
Ajay Singh Parmare546d482011-07-29 15:43:52 +053016#include <mach/socinfo.h>
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070017
18#define RENESAS_CMD_DELAY 0 /* 50 */
19#define RENESAS_SLEEP_OFF_DELAY 50
20static struct msm_panel_common_pdata *mipi_renesas_pdata;
21
22static struct dsi_buf renesas_tx_buf;
23static struct dsi_buf renesas_rx_buf;
24
Ravishangar Kalyaname17a2dd2011-09-30 15:04:39 -070025static int mipi_renesas_lcd_init(void);
26
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070027static char config_sleep_out[2] = {0x11, 0x00};
28static char config_CMD_MODE[2] = {0x40, 0x01};
29static char config_WRTXHT[7] = {0x92, 0x16, 0x08, 0x08, 0x00, 0x01, 0xe0};
30static char config_WRTXVT[7] = {0x8b, 0x02, 0x02, 0x02, 0x00, 0x03, 0x60};
31static char config_PLL2NR[2] = {0xa0, 0x24};
32static char config_PLL2NF1[2] = {0xa2, 0xd0};
33static char config_PLL2NF2[2] = {0xa4, 0x00};
34static char config_PLL2BWADJ1[2] = {0xa6, 0xd0};
35static char config_PLL2BWADJ2[2] = {0xa8, 0x00};
36static char config_PLL2CTL[2] = {0xaa, 0x00};
37static char config_DBICBR[2] = {0x48, 0x03};
38static char config_DBICTYPE[2] = {0x49, 0x00};
39static char config_DBICSET1[2] = {0x4a, 0x1c};
40static char config_DBICADD[2] = {0x4b, 0x00};
41static char config_DBICCTL[2] = {0x4e, 0x01};
42/* static char config_COLMOD_565[2] = {0x3a, 0x05}; */
43/* static char config_COLMOD_666PACK[2] = {0x3a, 0x06}; */
44static char config_COLMOD_888[2] = {0x3a, 0x07};
45static char config_MADCTL[2] = {0x36, 0x00};
46static char config_DBIOC[2] = {0x82, 0x40};
47static char config_CASET[7] = {0x2a, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdf };
48static char config_PASET[7] = {0x2b, 0x00, 0x00, 0x00, 0x00, 0x03, 0x5f };
49static char config_TXON[2] = {0x81, 0x00};
50static char config_BLSET_TM[2] = {0xff, 0x6c};
Jeevan Shriram9d28c3e2011-07-08 17:59:18 +053051static char config_DSIRXCTL[2] = {0x41, 0x01};
52static char config_TEON[2] = {0x35, 0x00};
53static char config_TEOFF[1] = {0x34};
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070054
55static char config_AGCPSCTL_TM[2] = {0x56, 0x08};
56
57static char config_DBICADD70[2] = {0x4b, 0x70};
58static char config_DBICSET_15[2] = {0x4a, 0x15};
59static char config_DBICADD72[2] = {0x4b, 0x72};
60
61static char config_Power_Ctrl_2a_cmd[3] = {0x4c, 0x40, 0x10};
62static char config_Auto_Sequencer_Setting_a_cmd[3] = {0x4c, 0x00, 0x00};
63static char Driver_Output_Ctrl_indx[3] = {0x4c, 0x00, 0x01};
64static char Driver_Output_Ctrl_cmd[3] = {0x4c, 0x03, 0x10};
65static char config_LCD_drive_AC_Ctrl_indx[3] = {0x4c, 0x00, 0x02};
66static char config_LCD_drive_AC_Ctrl_cmd[3] = {0x4c, 0x01, 0x00};
67static char config_Entry_Mode_indx[3] = {0x4c, 0x00, 0x03};
68static char config_Entry_Mode_cmd[3] = {0x4c, 0x00, 0x00};
69static char config_Display_Ctrl_1_indx[3] = {0x4c, 0x00, 0x07};
70static char config_Display_Ctrl_1_cmd[3] = {0x4c, 0x00, 0x00};
71static char config_Display_Ctrl_2_indx[3] = {0x4c, 0x00, 0x08};
72static char config_Display_Ctrl_2_cmd[3] = {0x4c, 0x00, 0x04};
73static char config_Display_Ctrl_3_indx[3] = {0x4c, 0x00, 0x09};
74static char config_Display_Ctrl_3_cmd[3] = {0x4c, 0x00, 0x0c};
75static char config_Display_IF_Ctrl_1_indx[3] = {0x4c, 0x00, 0x0c};
76static char config_Display_IF_Ctrl_1_cmd[3] = {0x4c, 0x40, 0x10};
77static char config_Display_IF_Ctrl_2_indx[3] = {0x4c, 0x00, 0x0e};
78static char config_Display_IF_Ctrl_2_cmd[3] = {0x4c, 0x00, 0x00};
79
80static char config_Panel_IF_Ctrl_1_indx[3] = {0x4c, 0x00, 0x20};
81static char config_Panel_IF_Ctrl_1_cmd[3] = {0x4c, 0x01, 0x3f};
82static char config_Panel_IF_Ctrl_3_indx[3] = {0x4c, 0x00, 0x22};
83static char config_Panel_IF_Ctrl_3_cmd[3] = {0x4c, 0x76, 0x00};
84static char config_Panel_IF_Ctrl_4_indx[3] = {0x4c, 0x00, 0x23};
85static char config_Panel_IF_Ctrl_4_cmd[3] = {0x4c, 0x1c, 0x0a};
86static char config_Panel_IF_Ctrl_5_indx[3] = {0x4c, 0x00, 0x24};
87static char config_Panel_IF_Ctrl_5_cmd[3] = {0x4c, 0x1c, 0x2c};
88static char config_Panel_IF_Ctrl_6_indx[3] = {0x4c, 0x00, 0x25};
89static char config_Panel_IF_Ctrl_6_cmd[3] = {0x4c, 0x1c, 0x4e};
90static char config_Panel_IF_Ctrl_8_indx[3] = {0x4c, 0x00, 0x27};
91static char config_Panel_IF_Ctrl_8_cmd[3] = {0x4c, 0x00, 0x00};
92static char config_Panel_IF_Ctrl_9_indx[3] = {0x4c, 0x00, 0x28};
93static char config_Panel_IF_Ctrl_9_cmd[3] = {0x4c, 0x76, 0x0c};
94
95
96static char config_gam_adjust_00_indx[3] = {0x4c, 0x03, 0x00};
97static char config_gam_adjust_00_cmd[3] = {0x4c, 0x00, 0x00};
98static char config_gam_adjust_01_indx[3] = {0x4c, 0x03, 0x01};
99static char config_gam_adjust_01_cmd[3] = {0x4c, 0x05, 0x02};
100static char config_gam_adjust_02_indx[3] = {0x4c, 0x03, 0x02};
101static char config_gam_adjust_02_cmd[3] = {0x4c, 0x07, 0x05};
102static char config_gam_adjust_03_indx[3] = {0x4c, 0x03, 0x03};
103static char config_gam_adjust_03_cmd[3] = {0x4c, 0x00, 0x00};
104static char config_gam_adjust_04_indx[3] = {0x4c, 0x03, 0x04};
105static char config_gam_adjust_04_cmd[3] = {0x4c, 0x02, 0x00};
106static char config_gam_adjust_05_indx[3] = {0x4c, 0x03, 0x05};
107static char config_gam_adjust_05_cmd[3] = {0x4c, 0x07, 0x07};
108static char config_gam_adjust_06_indx[3] = {0x4c, 0x03, 0x06};
109static char config_gam_adjust_06_cmd[3] = {0x4c, 0x10, 0x10};
110static char config_gam_adjust_07_indx[3] = {0x4c, 0x03, 0x07};
111static char config_gam_adjust_07_cmd[3] = {0x4c, 0x02, 0x02};
112static char config_gam_adjust_08_indx[3] = {0x4c, 0x03, 0x08};
113static char config_gam_adjust_08_cmd[3] = {0x4c, 0x07, 0x04};
114static char config_gam_adjust_09_indx[3] = {0x4c, 0x03, 0x09};
115static char config_gam_adjust_09_cmd[3] = {0x4c, 0x07, 0x07};
116static char config_gam_adjust_0A_indx[3] = {0x4c, 0x03, 0x0a};
117static char config_gam_adjust_0A_cmd[3] = {0x4c, 0x00, 0x00};
118static char config_gam_adjust_0B_indx[3] = {0x4c, 0x03, 0x0b};
119static char config_gam_adjust_0B_cmd[3] = {0x4c, 0x00, 0x00};
120static char config_gam_adjust_0C_indx[3] = {0x4c, 0x03, 0x0c};
121static char config_gam_adjust_0C_cmd[3] = {0x4c, 0x07, 0x07};
122static char config_gam_adjust_0D_indx[3] = {0x4c, 0x03, 0x0d};
123static char config_gam_adjust_0D_cmd[3] = {0x4c, 0x10, 0x10};
124static char config_gam_adjust_10_indx[3] = {0x4c, 0x03, 0x10};
125static char config_gam_adjust_10_cmd[3] = {0x4c, 0x01, 0x04};
126static char config_gam_adjust_11_indx[3] = {0x4c, 0x03, 0x11};
127static char config_gam_adjust_11_cmd[3] = {0x4c, 0x05, 0x03};
128static char config_gam_adjust_12_indx[3] = {0x4c, 0x03, 0x12};
129static char config_gam_adjust_12_cmd[3] = {0x4c, 0x03, 0x04};
130static char config_gam_adjust_15_indx[3] = {0x4c, 0x03, 0x15};
131static char config_gam_adjust_15_cmd[3] = {0x4c, 0x03, 0x04};
132static char config_gam_adjust_16_indx[3] = {0x4c, 0x03, 0x16};
133static char config_gam_adjust_16_cmd[3] = {0x4c, 0x03, 0x1c};
134static char config_gam_adjust_17_indx[3] = {0x4c, 0x03, 0x17};
135static char config_gam_adjust_17_cmd[3] = {0x4c, 0x02, 0x04};
136static char config_gam_adjust_18_indx[3] = {0x4c, 0x03, 0x18};
137static char config_gam_adjust_18_cmd[3] = {0x4c, 0x04, 0x02};
138static char config_gam_adjust_19_indx[3] = {0x4c, 0x03, 0x19};
139static char config_gam_adjust_19_cmd[3] = {0x4c, 0x03, 0x05};
140static char config_gam_adjust_1C_indx[3] = {0x4c, 0x03, 0x1c};
141static char config_gam_adjust_1C_cmd[3] = {0x4c, 0x07, 0x07};
142static char config_gam_adjust_1D_indx[3] = {0x4c, 0x03, 0x1D};
143static char config_gam_adjust_1D_cmd[3] = {0x4c, 0x02, 0x1f};
144static char config_gam_adjust_20_indx[3] = {0x4c, 0x03, 0x20};
145static char config_gam_adjust_20_cmd[3] = {0x4c, 0x05, 0x07};
146static char config_gam_adjust_21_indx[3] = {0x4c, 0x03, 0x21};
147static char config_gam_adjust_21_cmd[3] = {0x4c, 0x06, 0x04};
148static char config_gam_adjust_22_indx[3] = {0x4c, 0x03, 0x22};
149static char config_gam_adjust_22_cmd[3] = {0x4c, 0x04, 0x05};
150static char config_gam_adjust_27_indx[3] = {0x4c, 0x03, 0x27};
151static char config_gam_adjust_27_cmd[3] = {0x4c, 0x02, 0x03};
152static char config_gam_adjust_28_indx[3] = {0x4c, 0x03, 0x28};
153static char config_gam_adjust_28_cmd[3] = {0x4c, 0x03, 0x00};
154static char config_gam_adjust_29_indx[3] = {0x4c, 0x03, 0x29};
155static char config_gam_adjust_29_cmd[3] = {0x4c, 0x00, 0x02};
156
157static char config_Power_Ctrl_1_indx[3] = {0x4c, 0x01, 0x00};
158static char config_Power_Ctrl_1b_cmd[3] = {0x4c, 0x36, 0x3c};
159static char config_Power_Ctrl_2_indx[3] = {0x4c, 0x01, 0x01};
160static char config_Power_Ctrl_2b_cmd[3] = {0x4c, 0x40, 0x03};
161static char config_Power_Ctrl_3_indx[3] = {0x4c, 0x01, 0x02};
162static char config_Power_Ctrl_3a_cmd[3] = {0x4c, 0x00, 0x01};
163static char config_Power_Ctrl_4_indx[3] = {0x4c, 0x01, 0x03};
164static char config_Power_Ctrl_4a_cmd[3] = {0x4c, 0x3c, 0x58};
165static char config_Power_Ctrl_6_indx[3] = {0x4c, 0x01, 0x0c};
166static char config_Power_Ctrl_6a_cmd[3] = {0x4c, 0x01, 0x35};
167
168static char config_Auto_Sequencer_Setting_b_cmd[3] = {0x4c, 0x00, 0x02};
169
170static char config_Panel_IF_Ctrl_10_indx[3] = {0x4c, 0x00, 0x29};
171static char config_Panel_IF_Ctrl_10a_cmd[3] = {0x4c, 0x03, 0xbf};
172static char config_Auto_Sequencer_Setting_indx[3] = {0x4c, 0x01, 0x06};
173static char config_Auto_Sequencer_Setting_c_cmd[3] = {0x4c, 0x00, 0x03};
174static char config_Power_Ctrl_2c_cmd[3] = {0x4c, 0x40, 0x10};
175
176static char config_VIDEO[2] = {0x40, 0x00};
177
178static char config_Panel_IF_Ctrl_10_indx_off[3] = {0x4C, 0x00, 0x29};
179
180static char config_Panel_IF_Ctrl_10b_cmd_off[3] = {0x4C, 0x00, 0x02};
181
182static char config_Power_Ctrl_1a_cmd[3] = {0x4C, 0x30, 0x00};
183
184static struct dsi_cmd_desc renesas_sleep_off_cmds[] = {
185 {DTYPE_DCS_WRITE, 1, 0, 0, RENESAS_SLEEP_OFF_DELAY,
186 sizeof(config_sleep_out), config_sleep_out }
187};
188
189static struct dsi_cmd_desc renesas_display_off_cmds[] = {
190 /* Choosing Command Mode */
191 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
192 sizeof(config_CMD_MODE), config_CMD_MODE },
193
194 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
195 sizeof(config_DBICADD70), config_DBICADD70},
196 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
197 sizeof(config_Auto_Sequencer_Setting_indx),
198 config_Auto_Sequencer_Setting_indx},
199 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
200 sizeof(config_DBICSET_15), config_DBICSET_15},
201 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
202 sizeof(config_DBICADD72), config_DBICADD72},
203 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
204 sizeof(config_Auto_Sequencer_Setting_b_cmd),
205 config_Auto_Sequencer_Setting_b_cmd},
206 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY * 2,
207 sizeof(config_DBICSET_15), config_DBICSET_15},
208
209 /* After waiting >= 5 frames, turn OFF RGB signals
210 This is done by on DSI/MDP (depends on Vid/Cmd Mode. */
211 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
212 sizeof(config_DBICADD70), config_DBICADD70},
213 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
214 sizeof(config_Auto_Sequencer_Setting_indx),
215 config_Auto_Sequencer_Setting_indx},
216 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
217 sizeof(config_DBICSET_15), config_DBICSET_15},
218 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
219 sizeof(config_DBICADD72), config_DBICADD72},
220 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
221 sizeof(config_Auto_Sequencer_Setting_a_cmd),
222 config_Auto_Sequencer_Setting_a_cmd},
223 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
224 sizeof(config_DBICSET_15), config_DBICSET_15},
225
226 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
227 sizeof(config_DBICADD70), config_DBICADD70},
228 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
229 sizeof(config_Panel_IF_Ctrl_10_indx_off),
230 config_Panel_IF_Ctrl_10_indx_off},
231 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
232 sizeof(config_DBICSET_15), config_DBICSET_15},
233 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
234 sizeof(config_DBICADD72), config_DBICADD72},
235 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
236 sizeof(config_Panel_IF_Ctrl_10b_cmd_off),
237 config_Panel_IF_Ctrl_10b_cmd_off},
238 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
239 sizeof(config_DBICSET_15), config_DBICSET_15},
240
241 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
242 sizeof(config_DBICADD70), config_DBICADD70},
243 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
244 sizeof(config_Power_Ctrl_1_indx),
245 config_Power_Ctrl_1_indx},
246 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
247 sizeof(config_DBICSET_15), config_DBICSET_15},
248 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
249 sizeof(config_DBICADD72), config_DBICADD72},
250 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
251 sizeof(config_Power_Ctrl_1a_cmd),
252 config_Power_Ctrl_1a_cmd},
253 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
Jeevan Shriram9d28c3e2011-07-08 17:59:18 +0530254 sizeof(config_DBICSET_15), config_DBICSET_15},
255 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
256 sizeof(config_TEOFF), config_TEOFF},
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700257};
258
259static struct dsi_cmd_desc renesas_display_on_cmds[] = {
260 /* Choosing Command Mode */
261 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
262 sizeof(config_CMD_MODE), config_CMD_MODE },
263 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
264 sizeof(config_WRTXHT), config_WRTXHT },
265 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
266 sizeof(config_WRTXVT), config_WRTXVT },
267 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
268 sizeof(config_PLL2NR), config_PLL2NR },
269 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
270 sizeof(config_PLL2NF1), config_PLL2NF1 },
271 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
272 sizeof(config_PLL2NF2), config_PLL2NF2 },
273 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
274 sizeof(config_PLL2BWADJ1), config_PLL2BWADJ1},
275 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
276 sizeof(config_PLL2BWADJ2), config_PLL2BWADJ2},
277 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
278 sizeof(config_PLL2CTL), config_PLL2CTL},
279 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
280 sizeof(config_DBICBR), config_DBICBR},
281 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
282 sizeof(config_DBICTYPE), config_DBICTYPE},
283 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
284 sizeof(config_DBICSET1), config_DBICSET1},
285 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
286 sizeof(config_DBICADD), config_DBICADD},
287 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
288 sizeof(config_DBICCTL), config_DBICCTL},
289 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
290 sizeof(config_COLMOD_888), config_COLMOD_888},
291 /* Choose config_COLMOD_565 or config_COLMOD_666PACK for other modes */
292 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
293 sizeof(config_MADCTL), config_MADCTL},
294 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
295 sizeof(config_DBIOC), config_DBIOC},
296 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
297 sizeof(config_CASET), config_CASET},
298 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
299 sizeof(config_PASET), config_PASET},
Jeevan Shriram9d28c3e2011-07-08 17:59:18 +0530300 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
301 sizeof(config_DSIRXCTL), config_DSIRXCTL},
302 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
303 sizeof(config_TEON), config_TEON},
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700304 {DTYPE_DCS_WRITE, 1, 0, 0, RENESAS_CMD_DELAY,
305 sizeof(config_TXON), config_TXON},
306 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
307 sizeof(config_BLSET_TM), config_BLSET_TM},
308 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
309 sizeof(config_AGCPSCTL_TM), config_AGCPSCTL_TM},
310 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
311 sizeof(config_DBICADD70), config_DBICADD70},
312 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
313 sizeof(config_Power_Ctrl_1_indx), config_Power_Ctrl_1_indx },
314 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
315 sizeof(config_DBICSET_15), config_DBICSET_15},
316 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
317 sizeof(config_DBICADD72), config_DBICADD72},
318 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
319 sizeof(config_Power_Ctrl_1a_cmd), config_Power_Ctrl_1a_cmd},
320 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
321 sizeof(config_DBICSET_15), config_DBICSET_15},
322 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
323 sizeof(config_DBICADD70), config_DBICADD70},
324 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
325 sizeof(config_Power_Ctrl_2_indx), config_Power_Ctrl_2_indx },
326 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
327 sizeof(config_DBICSET_15), config_DBICSET_15},
328 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
329 sizeof(config_DBICADD72), config_DBICADD72},
330 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
331 sizeof(config_Power_Ctrl_2a_cmd), config_Power_Ctrl_2a_cmd},
332 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
333 sizeof(config_DBICSET_15), config_DBICSET_15},
334 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
335 sizeof(config_DBICADD70), config_DBICADD70},
336 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
337 sizeof(config_Auto_Sequencer_Setting_indx),
338 config_Auto_Sequencer_Setting_indx },
339 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
340 sizeof(config_DBICSET_15), config_DBICSET_15},
341 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
342 sizeof(config_DBICADD72), config_DBICADD72},
343 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
344 sizeof(config_Auto_Sequencer_Setting_a_cmd),
345 config_Auto_Sequencer_Setting_a_cmd },
346 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
347 sizeof(config_DBICSET_15), config_DBICSET_15},
348
349 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
350 sizeof(config_DBICADD70), config_DBICADD70},
351 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
352 sizeof(Driver_Output_Ctrl_indx), Driver_Output_Ctrl_indx},
353 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
354 sizeof(config_DBICSET_15), config_DBICSET_15},
355 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
356 sizeof(config_DBICADD72), config_DBICADD72},
357 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
358 sizeof(Driver_Output_Ctrl_cmd),
359 Driver_Output_Ctrl_cmd},
360 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
361 sizeof(config_DBICSET_15), config_DBICSET_15},
362
363 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
364 sizeof(config_DBICADD70), config_DBICADD70},
365 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
366 sizeof(config_LCD_drive_AC_Ctrl_indx),
367 config_LCD_drive_AC_Ctrl_indx},
368 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
369 sizeof(config_DBICSET_15), config_DBICSET_15},
370 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
371 sizeof(config_DBICADD72), config_DBICADD72},
372 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
373 sizeof(config_LCD_drive_AC_Ctrl_cmd),
374 config_LCD_drive_AC_Ctrl_cmd },
375 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
376 sizeof(config_DBICSET_15), config_DBICSET_15},
377
378 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
379 sizeof(config_DBICADD70), config_DBICADD70},
380 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
381 sizeof(config_Entry_Mode_indx),
382 config_Entry_Mode_indx},
383 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
384 sizeof(config_DBICSET_15), config_DBICSET_15},
385 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
386 sizeof(config_DBICADD72), config_DBICADD72},
387 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
388 sizeof(config_Entry_Mode_cmd),
389 config_Entry_Mode_cmd},
390 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
391 sizeof(config_DBICSET_15), config_DBICSET_15},
392
393 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
394 sizeof(config_DBICADD70), config_DBICADD70},
395 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
396 sizeof(config_Display_Ctrl_1_indx),
397 config_Display_Ctrl_1_indx},
398 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
399 sizeof(config_DBICSET_15), config_DBICSET_15},
400 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
401 sizeof(config_DBICADD72), config_DBICADD72},
402 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
403 sizeof(config_Display_Ctrl_1_cmd),
404 config_Display_Ctrl_1_cmd},
405 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
406 sizeof(config_DBICSET_15), config_DBICSET_15},
407
408 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
409 sizeof(config_DBICADD70), config_DBICADD70},
410 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
411 sizeof(config_Display_Ctrl_2_indx),
412 config_Display_Ctrl_2_indx},
413 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
414 sizeof(config_DBICSET_15), config_DBICSET_15},
415 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
416 sizeof(config_DBICADD72), config_DBICADD72},
417 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
418 sizeof(config_Display_Ctrl_2_cmd),
419 config_Display_Ctrl_2_cmd},
420 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
421 sizeof(config_DBICSET_15), config_DBICSET_15},
422
423 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
424 sizeof(config_DBICADD70), config_DBICADD70},
425 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
426 sizeof(config_Display_Ctrl_3_indx),
427 config_Display_Ctrl_3_indx},
428 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
429 sizeof(config_DBICSET_15), config_DBICSET_15},
430 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
431 sizeof(config_DBICADD72), config_DBICADD72},
432 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
433 sizeof(config_Display_Ctrl_3_cmd),
434 config_Display_Ctrl_3_cmd},
435 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
436 sizeof(config_DBICSET_15), config_DBICSET_15},
437
438 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
439 sizeof(config_DBICADD70), config_DBICADD70},
440 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
441 sizeof(config_Display_IF_Ctrl_1_indx),
442 config_Display_IF_Ctrl_1_indx },
443 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
444 sizeof(config_DBICSET_15), config_DBICSET_15},
445 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
446 sizeof(config_DBICADD72), config_DBICADD72},
447 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
448 sizeof(config_Display_IF_Ctrl_1_cmd),
449 config_Display_IF_Ctrl_1_cmd},
450 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
451 sizeof(config_DBICSET_15), config_DBICSET_15},
452
453 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
454 sizeof(config_DBICADD70), config_DBICADD70},
455 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
456 sizeof(config_Display_IF_Ctrl_2_indx),
457 config_Display_IF_Ctrl_2_indx},
458 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
459 sizeof(config_DBICSET_15), config_DBICSET_15},
460 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
461 sizeof(config_DBICADD72), config_DBICADD72},
462 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
463 sizeof(config_Display_IF_Ctrl_2_cmd),
464 config_Display_IF_Ctrl_2_cmd},
465 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
466 sizeof(config_DBICSET_15), config_DBICSET_15},
467
468 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
469 sizeof(config_DBICADD70), config_DBICADD70},
470 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
471 sizeof(config_Panel_IF_Ctrl_1_indx),
472 config_Panel_IF_Ctrl_1_indx },
473 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
474 sizeof(config_DBICSET_15), config_DBICSET_15},
475 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
476 sizeof(config_DBICADD72), config_DBICADD72},
477 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
478 sizeof(config_Panel_IF_Ctrl_1_cmd),
479 config_Panel_IF_Ctrl_1_cmd},
480 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
481 sizeof(config_DBICSET_15), config_DBICSET_15},
482
483 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
484 sizeof(config_DBICADD70), config_DBICADD70},
485 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
486 sizeof(config_Panel_IF_Ctrl_3_indx),
487 config_Panel_IF_Ctrl_3_indx },
488 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
489 sizeof(config_DBICSET_15), config_DBICSET_15},
490 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
491 sizeof(config_DBICADD72), config_DBICADD72},
492 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
493 sizeof(config_Panel_IF_Ctrl_3_cmd),
494 config_Panel_IF_Ctrl_3_cmd},
495 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
496 sizeof(config_DBICSET_15), config_DBICSET_15},
497
498 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
499 sizeof(config_DBICADD70), config_DBICADD70},
500 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
501 sizeof(config_Panel_IF_Ctrl_4_indx),
502 config_Panel_IF_Ctrl_4_indx },
503 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
504 sizeof(config_DBICSET_15), config_DBICSET_15},
505 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
506 sizeof(config_DBICADD72), config_DBICADD72},
507 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
508 sizeof(config_Panel_IF_Ctrl_4_cmd),
509 config_Panel_IF_Ctrl_4_cmd },
510 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
511 sizeof(config_DBICSET_15), config_DBICSET_15},
512
513 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
514 sizeof(config_DBICADD70), config_DBICADD70},
515 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
516 sizeof(config_Panel_IF_Ctrl_5_indx),
517 config_Panel_IF_Ctrl_5_indx },
518 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
519 sizeof(config_DBICSET_15), config_DBICSET_15},
520 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
521 sizeof(config_DBICADD72), config_DBICADD72},
522 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
523 sizeof(config_Panel_IF_Ctrl_5_cmd),
524 config_Panel_IF_Ctrl_5_cmd},
525 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
526 sizeof(config_DBICSET_15), config_DBICSET_15},
527
528 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
529 sizeof(config_DBICADD70), config_DBICADD70},
530 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
531 sizeof(config_Panel_IF_Ctrl_6_indx),
532 config_Panel_IF_Ctrl_6_indx },
533 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
534 sizeof(config_DBICSET_15), config_DBICSET_15},
535 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
536 sizeof(config_DBICADD72), config_DBICADD72},
537 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
538 sizeof(config_Panel_IF_Ctrl_6_cmd),
539 config_Panel_IF_Ctrl_6_cmd },
540 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
541 sizeof(config_DBICSET_15), config_DBICSET_15},
542
543 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
544 sizeof(config_DBICADD70), config_DBICADD70},
545 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
546 sizeof(config_Panel_IF_Ctrl_8_indx),
547 config_Panel_IF_Ctrl_8_indx },
548 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
549 sizeof(config_DBICSET_15), config_DBICSET_15},
550 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
551 sizeof(config_DBICADD72), config_DBICADD72},
552 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
553 sizeof(config_Panel_IF_Ctrl_8_cmd),
554 config_Panel_IF_Ctrl_8_cmd },
555 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
556 sizeof(config_DBICSET_15), config_DBICSET_15},
557
558 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
559 sizeof(config_DBICADD70), config_DBICADD70},
560 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
561 sizeof(config_Panel_IF_Ctrl_9_indx),
562 config_Panel_IF_Ctrl_9_indx },
563 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
564 sizeof(config_DBICSET_15), config_DBICSET_15},
565 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
566 sizeof(config_DBICADD72), config_DBICADD72},
567 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
568 sizeof(config_Panel_IF_Ctrl_9_cmd),
569 config_Panel_IF_Ctrl_9_cmd},
570 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
571 sizeof(config_DBICSET_15), config_DBICSET_15},
572
573 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
574 sizeof(config_DBICADD70), config_DBICADD70},
575 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
576 sizeof(config_gam_adjust_00_indx),
577 config_gam_adjust_00_indx},
578 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
579 sizeof(config_DBICSET_15), config_DBICSET_15},
580 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
581 sizeof(config_DBICADD72), config_DBICADD72},
582 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
583 sizeof(config_gam_adjust_00_cmd),
584 config_gam_adjust_00_cmd},
585 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
586 sizeof(config_DBICSET_15), config_DBICSET_15},
587
588 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
589 sizeof(config_DBICADD70), config_DBICADD70},
590 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
591 sizeof(config_gam_adjust_01_indx),
592 config_gam_adjust_01_indx},
593 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
594 sizeof(config_DBICSET_15), config_DBICSET_15},
595 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
596 sizeof(config_DBICADD72), config_DBICADD72},
597 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
598 sizeof(config_gam_adjust_01_cmd),
599 config_gam_adjust_01_cmd},
600 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
601 sizeof(config_DBICSET_15), config_DBICSET_15},
602
603 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
604 sizeof(config_DBICADD70), config_DBICADD70},
605 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
606 sizeof(config_gam_adjust_02_indx),
607 config_gam_adjust_02_indx},
608 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
609 sizeof(config_DBICSET_15), config_DBICSET_15},
610 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
611 sizeof(config_DBICADD72), config_DBICADD72},
612 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
613 sizeof(config_gam_adjust_02_cmd),
614 config_gam_adjust_02_cmd},
615 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
616 sizeof(config_DBICSET_15), config_DBICSET_15},
617
618 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
619 sizeof(config_DBICADD70), config_DBICADD70},
620 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
621 sizeof(config_gam_adjust_03_indx),
622 config_gam_adjust_03_indx},
623 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
624 sizeof(config_DBICSET_15), config_DBICSET_15},
625 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
626 sizeof(config_DBICADD72), config_DBICADD72},
627 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
628 sizeof(config_gam_adjust_03_cmd),
629 config_gam_adjust_03_cmd},
630 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
631 sizeof(config_DBICSET_15), config_DBICSET_15},
632
633 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
634 sizeof(config_DBICADD70), config_DBICADD70},
635 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
636 sizeof(config_gam_adjust_04_indx), config_gam_adjust_04_indx},
637 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
638 sizeof(config_DBICSET_15), config_DBICSET_15},
639 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
640 sizeof(config_DBICADD72), config_DBICADD72},
641 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
642 sizeof(config_gam_adjust_04_cmd), config_gam_adjust_04_cmd},
643 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
644 sizeof(config_DBICSET_15), config_DBICSET_15},
645
646
647 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
648 sizeof(config_DBICADD70), config_DBICADD70},
649 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
650 sizeof(config_gam_adjust_05_indx), config_gam_adjust_05_indx},
651 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
652 sizeof(config_DBICSET_15), config_DBICSET_15},
653 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
654 sizeof(config_DBICADD72), config_DBICADD72},
655 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
656 sizeof(config_gam_adjust_05_cmd), config_gam_adjust_05_cmd},
657 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
658 sizeof(config_DBICSET_15), config_DBICSET_15},
659
660 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
661 sizeof(config_DBICADD70), config_DBICADD70},
662 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
663 sizeof(config_gam_adjust_06_indx), config_gam_adjust_06_indx},
664 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
665 sizeof(config_DBICSET_15), config_DBICSET_15},
666 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
667 sizeof(config_DBICADD72), config_DBICADD72},
668 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
669 sizeof(config_gam_adjust_06_cmd), config_gam_adjust_06_cmd},
670 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
671 sizeof(config_DBICSET_15), config_DBICSET_15},
672
673 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
674 sizeof(config_DBICADD70), config_DBICADD70},
675 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
676 sizeof(config_gam_adjust_07_indx), config_gam_adjust_07_indx},
677 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
678 sizeof(config_DBICSET_15), config_DBICSET_15},
679 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
680 sizeof(config_DBICADD72), config_DBICADD72},
681 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
682 sizeof(config_gam_adjust_07_cmd), config_gam_adjust_07_cmd},
683 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
684 sizeof(config_DBICSET_15), config_DBICSET_15},
685
686 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
687 sizeof(config_DBICADD70), config_DBICADD70},
688 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
689 sizeof(config_gam_adjust_08_indx), config_gam_adjust_08_indx},
690 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
691 sizeof(config_DBICSET_15), config_DBICSET_15},
692 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
693 sizeof(config_DBICADD72), config_DBICADD72},
694 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
695 sizeof(config_gam_adjust_08_cmd), config_gam_adjust_08_cmd},
696 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
697 sizeof(config_DBICSET_15), config_DBICSET_15},
698
699 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
700 sizeof(config_DBICADD70), config_DBICADD70},
701 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
702 sizeof(config_gam_adjust_09_indx), config_gam_adjust_09_indx},
703 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
704 sizeof(config_DBICSET_15), config_DBICSET_15},
705 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
706 sizeof(config_DBICADD72), config_DBICADD72},
707 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
708 sizeof(config_gam_adjust_09_cmd), config_gam_adjust_09_cmd},
709 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
710 sizeof(config_DBICSET_15), config_DBICSET_15},
711
712 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
713 sizeof(config_DBICADD70), config_DBICADD70},
714 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
715 sizeof(config_gam_adjust_0A_indx), config_gam_adjust_0A_indx},
716 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
717 sizeof(config_DBICSET_15), config_DBICSET_15},
718 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
719 sizeof(config_DBICADD72), config_DBICADD72},
720 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
721 sizeof(config_gam_adjust_0A_cmd), config_gam_adjust_0A_cmd},
722 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
723 sizeof(config_DBICSET_15), config_DBICSET_15},
724
725 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
726 sizeof(config_DBICADD70), config_DBICADD70},
727 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
728 sizeof(config_gam_adjust_0B_indx), config_gam_adjust_0B_indx},
729 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
730 sizeof(config_DBICSET_15), config_DBICSET_15},
731 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
732 sizeof(config_DBICADD72), config_DBICADD72},
733 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
734 sizeof(config_gam_adjust_0B_cmd), config_gam_adjust_0B_cmd},
735 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
736 sizeof(config_DBICSET_15), config_DBICSET_15},
737
738 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
739 sizeof(config_DBICADD70), config_DBICADD70},
740 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
741 sizeof(config_gam_adjust_0C_indx), config_gam_adjust_0C_indx},
742 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
743 sizeof(config_DBICSET_15), config_DBICSET_15},
744 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
745 sizeof(config_DBICADD72), config_DBICADD72},
746 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
747 sizeof(config_gam_adjust_0C_cmd), config_gam_adjust_0C_cmd},
748 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
749 sizeof(config_DBICSET_15), config_DBICSET_15},
750
751 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
752 sizeof(config_DBICADD70), config_DBICADD70},
753 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
754 sizeof(config_gam_adjust_0D_indx), config_gam_adjust_0D_indx},
755 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
756 sizeof(config_DBICSET_15), config_DBICSET_15},
757 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
758 sizeof(config_DBICADD72), config_DBICADD72},
759 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
760 sizeof(config_gam_adjust_0D_cmd), config_gam_adjust_0D_cmd},
761 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
762 sizeof(config_DBICSET_15), config_DBICSET_15},
763
764 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
765 sizeof(config_DBICADD70), config_DBICADD70},
766 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
767 sizeof(config_gam_adjust_10_indx), config_gam_adjust_10_indx},
768 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
769 sizeof(config_DBICSET_15), config_DBICSET_15},
770 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
771 sizeof(config_DBICADD72), config_DBICADD72},
772 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
773 sizeof(config_gam_adjust_10_cmd), config_gam_adjust_10_cmd},
774 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
775 sizeof(config_DBICSET_15), config_DBICSET_15},
776
777 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
778 sizeof(config_DBICADD70), config_DBICADD70},
779 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
780 sizeof(config_gam_adjust_11_indx), config_gam_adjust_11_indx},
781 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
782 sizeof(config_DBICSET_15), config_DBICSET_15},
783 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
784 sizeof(config_DBICADD72), config_DBICADD72},
785 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
786 sizeof(config_gam_adjust_11_cmd), config_gam_adjust_11_cmd},
787 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
788 sizeof(config_DBICSET_15), config_DBICSET_15},
789
790 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
791 sizeof(config_DBICADD70), config_DBICADD70},
792 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
793 sizeof(config_gam_adjust_12_indx), config_gam_adjust_12_indx},
794 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
795 sizeof(config_DBICSET_15), config_DBICSET_15},
796 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
797 sizeof(config_DBICADD72), config_DBICADD72},
798 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
799 sizeof(config_gam_adjust_12_cmd), config_gam_adjust_12_cmd},
800 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
801 sizeof(config_DBICSET_15), config_DBICSET_15},
802
803 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
804 sizeof(config_DBICADD70), config_DBICADD70},
805 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
806 sizeof(config_gam_adjust_15_indx), config_gam_adjust_15_indx},
807 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
808 sizeof(config_DBICSET_15), config_DBICSET_15},
809 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
810 sizeof(config_DBICADD72), config_DBICADD72},
811 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
812 sizeof(config_gam_adjust_15_cmd), config_gam_adjust_15_cmd},
813 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
814 sizeof(config_DBICSET_15), config_DBICSET_15},
815
816 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
817 sizeof(config_DBICADD70), config_DBICADD70},
818 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
819 sizeof(config_gam_adjust_16_indx), config_gam_adjust_16_indx},
820 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
821 sizeof(config_DBICSET_15), config_DBICSET_15},
822 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
823 sizeof(config_DBICADD72), config_DBICADD72},
824 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
825 sizeof(config_gam_adjust_16_cmd), config_gam_adjust_16_cmd},
826 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
827 sizeof(config_DBICSET_15), config_DBICSET_15},
828
829 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
830 sizeof(config_DBICADD70), config_DBICADD70},
831 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
832 sizeof(config_gam_adjust_17_indx), config_gam_adjust_17_indx},
833 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
834 sizeof(config_DBICSET_15), config_DBICSET_15},
835 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
836 sizeof(config_DBICADD72), config_DBICADD72},
837 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
838 sizeof(config_gam_adjust_17_cmd), config_gam_adjust_17_cmd},
839 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
840 sizeof(config_DBICSET_15), config_DBICSET_15},
841
842 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
843 sizeof(config_DBICADD70), config_DBICADD70},
844 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
845 sizeof(config_gam_adjust_18_indx), config_gam_adjust_18_indx},
846 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
847 sizeof(config_DBICSET_15), config_DBICSET_15},
848 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
849 sizeof(config_DBICADD72), config_DBICADD72},
850 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
851 sizeof(config_gam_adjust_18_cmd), config_gam_adjust_18_cmd},
852 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
853 sizeof(config_DBICSET_15), config_DBICSET_15},
854
855 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
856 sizeof(config_DBICADD70), config_DBICADD70},
857 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
858 sizeof(config_gam_adjust_19_indx), config_gam_adjust_19_indx},
859 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
860 sizeof(config_DBICSET_15), config_DBICSET_15},
861 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
862 sizeof(config_DBICADD72), config_DBICADD72},
863 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
864 sizeof(config_gam_adjust_19_cmd), config_gam_adjust_19_cmd},
865 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
866 sizeof(config_DBICSET_15), config_DBICSET_15},
867
868 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
869 sizeof(config_DBICADD70), config_DBICADD70},
870 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
871 sizeof(config_gam_adjust_1C_indx), config_gam_adjust_1C_indx},
872 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
873 sizeof(config_DBICSET_15), config_DBICSET_15},
874 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
875 sizeof(config_DBICADD72), config_DBICADD72},
876 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
877 sizeof(config_gam_adjust_1C_cmd), config_gam_adjust_1C_cmd},
878 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
879 sizeof(config_DBICSET_15), config_DBICSET_15},
880
881 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
882 sizeof(config_DBICADD70), config_DBICADD70},
883 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
884 sizeof(config_gam_adjust_1D_indx), config_gam_adjust_1D_indx},
885 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
886 sizeof(config_DBICSET_15), config_DBICSET_15},
887 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
888 sizeof(config_DBICADD72), config_DBICADD72},
889 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
890 sizeof(config_gam_adjust_1D_cmd), config_gam_adjust_1D_cmd},
891 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
892 sizeof(config_DBICSET_15), config_DBICSET_15},
893
894 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
895 sizeof(config_DBICADD70), config_DBICADD70},
896 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
897 sizeof(config_gam_adjust_20_indx), config_gam_adjust_20_indx},
898 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
899 sizeof(config_DBICSET_15), config_DBICSET_15},
900 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
901 sizeof(config_DBICADD72), config_DBICADD72},
902 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
903 sizeof(config_gam_adjust_20_cmd), config_gam_adjust_20_cmd},
904 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
905 sizeof(config_DBICSET_15), config_DBICSET_15},
906
907 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
908 sizeof(config_DBICADD70), config_DBICADD70},
909 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
910 sizeof(config_gam_adjust_21_indx), config_gam_adjust_21_indx},
911 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
912 sizeof(config_DBICSET_15), config_DBICSET_15},
913 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
914 sizeof(config_DBICADD72), config_DBICADD72},
915 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
916 sizeof(config_gam_adjust_21_cmd), config_gam_adjust_21_cmd},
917 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
918 sizeof(config_DBICSET_15), config_DBICSET_15},
919
920
921 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
922 sizeof(config_DBICADD70), config_DBICADD70},
923 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
924 sizeof(config_gam_adjust_22_indx), config_gam_adjust_22_indx},
925 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
926 sizeof(config_DBICSET_15), config_DBICSET_15},
927 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
928 sizeof(config_DBICADD72), config_DBICADD72},
929 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
930 sizeof(config_gam_adjust_22_cmd), config_gam_adjust_22_cmd},
931 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
932 sizeof(config_DBICSET_15), config_DBICSET_15},
933
934 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
935 sizeof(config_DBICADD70), config_DBICADD70},
936 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
937 sizeof(config_gam_adjust_27_indx), config_gam_adjust_27_indx},
938 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
939 sizeof(config_DBICSET_15), config_DBICSET_15},
940 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
941 sizeof(config_DBICADD72), config_DBICADD72},
942 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
943 sizeof(config_gam_adjust_27_cmd), config_gam_adjust_27_cmd},
944 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
945 sizeof(config_DBICSET_15), config_DBICSET_15},
946
947 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
948 sizeof(config_DBICADD70), config_DBICADD70},
949 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
950 sizeof(config_gam_adjust_28_indx), config_gam_adjust_28_indx},
951 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
952 sizeof(config_DBICSET_15), config_DBICSET_15},
953 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
954 sizeof(config_DBICADD72), config_DBICADD72},
955 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
956 sizeof(config_gam_adjust_28_cmd), config_gam_adjust_28_cmd},
957 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
958 sizeof(config_DBICSET_15), config_DBICSET_15},
959
960 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
961 sizeof(config_DBICADD70), config_DBICADD70},
962 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
963 sizeof(config_gam_adjust_29_indx), config_gam_adjust_29_indx},
964 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
965 sizeof(config_DBICSET_15), config_DBICSET_15},
966 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
967 sizeof(config_DBICADD72), config_DBICADD72},
968 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
969 sizeof(config_gam_adjust_29_cmd), config_gam_adjust_29_cmd},
970 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
971 sizeof(config_DBICSET_15), config_DBICSET_15},
972
973 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
974 sizeof(config_DBICADD70), config_DBICADD70},
975 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
976 sizeof(config_Power_Ctrl_1_indx), config_Power_Ctrl_1_indx},
977 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
978 sizeof(config_DBICSET_15), config_DBICSET_15},
979 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
980 sizeof(config_DBICADD72), config_DBICADD72},
981 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
982 sizeof(config_Power_Ctrl_1b_cmd), config_Power_Ctrl_1b_cmd},
983 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
984 sizeof(config_DBICSET_15), config_DBICSET_15},
985
986 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
987 sizeof(config_DBICADD70), config_DBICADD70},
988 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
989 sizeof(config_Power_Ctrl_2_indx), config_Power_Ctrl_2_indx},
990 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
991 sizeof(config_DBICSET_15), config_DBICSET_15},
992 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
993 sizeof(config_DBICADD72), config_DBICADD72},
994 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
995 sizeof(config_Power_Ctrl_2b_cmd), config_Power_Ctrl_2b_cmd},
996 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
997 sizeof(config_DBICSET_15), config_DBICSET_15},
998
999 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1000 sizeof(config_DBICADD70), config_DBICADD70},
1001 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1002 sizeof(config_Power_Ctrl_3_indx), config_Power_Ctrl_3_indx},
1003 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1004 sizeof(config_DBICSET_15), config_DBICSET_15},
1005 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1006 sizeof(config_DBICADD72), config_DBICADD72},
1007 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1008 sizeof(config_Power_Ctrl_3a_cmd), config_Power_Ctrl_3a_cmd},
1009 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1010 sizeof(config_DBICSET_15), config_DBICSET_15},
1011
1012 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1013 sizeof(config_DBICADD70), config_DBICADD70},
1014 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1015 sizeof(config_Power_Ctrl_4_indx), config_Power_Ctrl_4_indx},
1016 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1017 sizeof(config_DBICSET_15), config_DBICSET_15},
1018 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1019 sizeof(config_DBICADD72), config_DBICADD72},
1020 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1021 sizeof(config_Power_Ctrl_4a_cmd), config_Power_Ctrl_4a_cmd},
1022 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1023 sizeof(config_DBICSET_15), config_DBICSET_15},
1024
1025 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1026 sizeof(config_DBICADD70), config_DBICADD70},
1027 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1028 sizeof(config_Power_Ctrl_6_indx), config_Power_Ctrl_6_indx},
1029 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1030 sizeof(config_DBICSET_15), config_DBICSET_15},
1031 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1032 sizeof(config_DBICADD72), config_DBICADD72},
1033 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1034 sizeof(config_Power_Ctrl_6a_cmd), config_Power_Ctrl_6a_cmd},
1035 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1036 sizeof(config_DBICSET_15), config_DBICSET_15},
1037
1038 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1039 sizeof(config_DBICADD70), config_DBICADD70},
1040 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1041 sizeof(config_Auto_Sequencer_Setting_indx),
1042 config_Auto_Sequencer_Setting_indx},
1043 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1044 sizeof(config_DBICSET_15), config_DBICSET_15},
1045 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1046 sizeof(config_DBICADD72), config_DBICADD72},
1047 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1048 sizeof(config_Auto_Sequencer_Setting_b_cmd),
1049 config_Auto_Sequencer_Setting_b_cmd},
1050 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1051 sizeof(config_DBICSET_15), config_DBICSET_15},
1052
1053 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1054 sizeof(config_DBICADD70), config_DBICADD70},
1055 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1056 sizeof(config_Panel_IF_Ctrl_10_indx),
1057 config_Panel_IF_Ctrl_10_indx},
1058 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1059 sizeof(config_DBICSET_15), config_DBICSET_15},
1060 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1061 sizeof(config_DBICADD72), config_DBICADD72},
1062 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1063 sizeof(config_Panel_IF_Ctrl_10a_cmd),
1064 config_Panel_IF_Ctrl_10a_cmd},
1065 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1066 sizeof(config_DBICSET_15), config_DBICSET_15},
1067
1068 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1069 sizeof(config_DBICADD70), config_DBICADD70},
1070 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1071 sizeof(config_Auto_Sequencer_Setting_indx),
1072 config_Auto_Sequencer_Setting_indx},
1073 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1074 sizeof(config_DBICSET_15), config_DBICSET_15},
1075 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1076 sizeof(config_DBICADD72), config_DBICADD72},
1077 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1078 sizeof(config_Auto_Sequencer_Setting_c_cmd),
1079 config_Auto_Sequencer_Setting_c_cmd},
1080 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1081 sizeof(config_DBICSET_15), config_DBICSET_15},
1082
1083 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1084 sizeof(config_DBICADD70), config_DBICADD70},
1085 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1086 sizeof(config_Power_Ctrl_2_indx),
1087 config_Power_Ctrl_2_indx},
1088 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1089 sizeof(config_DBICSET_15), config_DBICSET_15},
1090 {DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1091 sizeof(config_DBICADD72), config_DBICADD72},
1092 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1093 sizeof(config_Power_Ctrl_2c_cmd),
1094 config_Power_Ctrl_2c_cmd},
1095
1096 {DTYPE_DCS_WRITE1, 1, 0, 0, 0/* RENESAS_CMD_DELAY */,
1097 sizeof(config_DBICSET_15), config_DBICSET_15},
1098
1099};
1100
Ajay Singh Parmare546d482011-07-29 15:43:52 +05301101static char config_WRTXHT2[7] = {0x92, 0x15, 0x05, 0x0F, 0x00, 0x01, 0xe0};
1102static char config_WRTXVT2[7] = {0x8b, 0x14, 0x01, 0x14, 0x00, 0x03, 0x60};
1103
1104static struct dsi_cmd_desc renesas_hvga_on_cmds[] = {
1105 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1106 sizeof(config_WRTXHT2), config_WRTXHT2},
1107 {DTYPE_DCS_LWRITE, 1, 0, 0, RENESAS_CMD_DELAY,
1108 sizeof(config_WRTXVT2), config_WRTXVT2},
1109};
1110
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001111static struct dsi_cmd_desc renesas_video_on_cmds[] = {
1112{DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1113 sizeof(config_VIDEO), config_VIDEO}
1114};
1115
1116static struct dsi_cmd_desc renesas_cmd_on_cmds[] = {
1117{DTYPE_DCS_WRITE1, 1, 0, 0, RENESAS_CMD_DELAY,
1118 sizeof(config_CMD_MODE), config_CMD_MODE},
1119};
1120
1121static int mipi_renesas_lcd_on(struct platform_device *pdev)
1122{
1123 struct msm_fb_data_type *mfd;
1124 struct mipi_panel_info *mipi;
1125
1126 mfd = platform_get_drvdata(pdev);
1127 mipi = &mfd->panel_info.mipi;
1128
1129 if (!mfd)
1130 return -ENODEV;
1131 if (mfd->key != MFD_KEY)
1132 return -EINVAL;
1133
1134 mipi_dsi_cmds_tx(mfd, &renesas_tx_buf, renesas_sleep_off_cmds,
1135 ARRAY_SIZE(renesas_sleep_off_cmds));
1136
1137 mipi_set_tx_power_mode(1);
1138 mipi_dsi_cmds_tx(mfd, &renesas_tx_buf, renesas_display_on_cmds,
1139 ARRAY_SIZE(renesas_display_on_cmds));
1140
Ajay Singh Parmare546d482011-07-29 15:43:52 +05301141 if (cpu_is_msm7x25a() || cpu_is_msm7x25aa()) {
1142 mipi_dsi_cmds_tx(mfd, &renesas_tx_buf, renesas_hvga_on_cmds,
1143 ARRAY_SIZE(renesas_hvga_on_cmds));
1144 }
1145
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001146 if (mipi->mode == DSI_VIDEO_MODE)
1147 mipi_dsi_cmds_tx(mfd, &renesas_tx_buf, renesas_video_on_cmds,
1148 ARRAY_SIZE(renesas_video_on_cmds));
1149 else
1150 mipi_dsi_cmds_tx(mfd, &renesas_tx_buf, renesas_cmd_on_cmds,
1151 ARRAY_SIZE(renesas_cmd_on_cmds));
1152 mipi_set_tx_power_mode(0);
1153
1154 return 0;
1155}
1156
1157static int mipi_renesas_lcd_off(struct platform_device *pdev)
1158{
1159 struct msm_fb_data_type *mfd;
1160
1161 mfd = platform_get_drvdata(pdev);
1162
1163 if (!mfd)
1164 return -ENODEV;
1165 if (mfd->key != MFD_KEY)
1166 return -EINVAL;
1167
1168 mipi_dsi_cmds_tx(mfd, &renesas_tx_buf, renesas_display_off_cmds,
1169 ARRAY_SIZE(renesas_display_off_cmds));
1170
1171 return 0;
1172}
1173
1174static int __devinit mipi_renesas_lcd_probe(struct platform_device *pdev)
1175{
1176 if (pdev->id == 0) {
1177 mipi_renesas_pdata = pdev->dev.platform_data;
1178 return 0;
1179 }
1180
1181 msm_fb_add_device(pdev);
1182
1183 return 0;
1184}
1185
1186static void mipi_renesas_set_backlight(struct msm_fb_data_type *mfd)
1187{
1188 int ret = -EPERM;
1189 int bl_level;
1190
1191 bl_level = mfd->bl_level;
1192
1193 if (mipi_renesas_pdata && mipi_renesas_pdata->pmic_backlight)
1194 ret = mipi_renesas_pdata->pmic_backlight(bl_level);
1195 else
1196 pr_err("%s(): Backlight level set failed", __func__);
1197}
1198
1199static struct platform_driver this_driver = {
1200 .probe = mipi_renesas_lcd_probe,
1201 .driver = {
1202 .name = "mipi_renesas",
1203 },
1204};
1205
1206static struct msm_fb_panel_data renesas_panel_data = {
1207 .on = mipi_renesas_lcd_on,
1208 .off = mipi_renesas_lcd_off,
1209 .set_backlight = mipi_renesas_set_backlight,
1210};
1211
1212static int ch_used[3];
1213
1214int mipi_renesas_device_register(struct msm_panel_info *pinfo,
1215 u32 channel, u32 panel)
1216{
1217 struct platform_device *pdev = NULL;
1218 int ret;
1219 if ((channel >= 3) || ch_used[channel])
1220 return -ENODEV;
1221
1222 ch_used[channel] = TRUE;
1223
Ravishangar Kalyaname17a2dd2011-09-30 15:04:39 -07001224 ret = mipi_renesas_lcd_init();
1225 if (ret) {
1226 pr_err("mipi_renesas_lcd_init() failed with ret %u\n", ret);
1227 return ret;
1228 }
1229
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001230 pdev = platform_device_alloc("mipi_renesas", (panel << 8)|channel);
1231 if (!pdev)
1232 return -ENOMEM;
1233
1234 renesas_panel_data.panel_info = *pinfo;
1235
1236 ret = platform_device_add_data(pdev, &renesas_panel_data,
1237 sizeof(renesas_panel_data));
1238 if (ret) {
1239 pr_err("%s: platform_device_add_data failed!\n", __func__);
1240 goto err_device_put;
1241 }
1242
1243 ret = platform_device_add(pdev);
1244 if (ret) {
1245 pr_err("%s: platform_device_register failed!\n", __func__);
1246 goto err_device_put;
1247 }
1248
1249 return 0;
1250
1251err_device_put:
1252 platform_device_put(pdev);
1253 return ret;
1254}
1255
Ravishangar Kalyaname17a2dd2011-09-30 15:04:39 -07001256static int mipi_renesas_lcd_init(void)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001257{
1258 mipi_dsi_buf_alloc(&renesas_tx_buf, DSI_BUF_SIZE);
1259 mipi_dsi_buf_alloc(&renesas_rx_buf, DSI_BUF_SIZE);
1260
1261 return platform_driver_register(&this_driver);
1262}