r69429_wqxga_dsi_vdo.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. /* Copyright Statement:
  2. *
  3. * This software/firmware and related documentation ("MediaTek Software") are
  4. * protected under relevant copyright laws. The information contained herein
  5. * is confidential and proprietary to MediaTek Inc. and/or its licensors.
  6. * Without the prior written permission of MediaTek inc. and/or its licensors,
  7. * any reproduction, modification, use or disclosure of MediaTek Software,
  8. * and information contained herein, in whole or in part, shall be strictly prohibited.
  9. */
  10. /* MediaTek Inc. (C) 2015. All rights reserved.
  11. *
  12. * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  13. * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  14. * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON
  15. * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  16. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  17. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  18. * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  19. * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  20. * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
  21. * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
  22. * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
  23. * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
  24. * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
  25. * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
  26. * CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  27. * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  28. * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
  29. * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  30. *
  31. * The following software/firmware and/or related documentation ("MediaTek Software")
  32. * have been modified by MediaTek Inc. All revisions are subject to any receiver\'s
  33. * applicable license agreements with MediaTek Inc.
  34. */
  35. #ifndef BUILD_LK
  36. #include <linux/string.h>
  37. #include <linux/string.h>
  38. #include <linux/regulator/consumer.h>
  39. #include <linux/device.h>
  40. #include <linux/platform_device.h>
  41. #include <linux/slab.h>
  42. #include <linux/fs.h>
  43. #include <linux/interrupt.h>
  44. #include <linux/io.h>
  45. #include <linux/kernel.h>
  46. #include <linux/module.h>
  47. #include <linux/spinlock.h>
  48. #include <linux/syscore_ops.h>
  49. #include <linux/timer.h>
  50. #include <linux/types.h>
  51. #include <linux/sched.h>
  52. #include <linux/of.h>
  53. #include <linux/of_device.h>
  54. #include <linux/regulator/consumer.h>
  55. #include <linux/gpio.h>
  56. #include <linux/pinctrl/consumer.h>
  57. #else
  58. #include <string.h>
  59. #endif
  60. #include "lcm_drv.h"
  61. #ifdef BUILD_LK
  62. #include <platform/mt_gpio.h>
  63. #include <platform/mt_pmic.h>
  64. #elif defined(BUILD_UBOOT)
  65. #else
  66. #include <mach/mt_gpio.h>
  67. #include <mach/mt_pm_ldo.h>
  68. #endif
  69. /* --------------------------------------------------------------------------- */
  70. /* Local Constants */
  71. /* --------------------------------------------------------------------------- */
  72. #define FRAME_WIDTH (2560)
  73. #define FRAME_HEIGHT (1600)
  74. /* EVB / P1 board*/
  75. /* GPIO42/GPIO103 vdd18_lcd(1.8V) */
  76. #ifdef GPIO_LCM_PWR_EN
  77. #define GPIO_LCD_PWR_EN GPIO_LCM_PWR_EN
  78. #else
  79. #define GPIO_LCD_PWR_EN /*GPIO42*/GPIO103
  80. #endif
  81. /* GPIO131/NULL vdd33_lcd */
  82. /*
  83. #ifdef GPIO_LCM_PWR2_EN
  84. #define GPIO_LCD_PWR2_EN GPIO_LCM_PWR2_EN
  85. #else
  86. #define GPIO_LCD_PWR2_EN GPIO131
  87. #endif
  88. */
  89. /* GPIO127/GPIO105 LCM_RST for panel */
  90. #ifdef GPIO_LCM_RST
  91. #define GPIO_LCD_RST_EN GPIO_LCM_RST
  92. #else
  93. #define GPIO_LCD_RST_EN /*GPIO127*/GPIO105
  94. #endif
  95. /* GPIO87/GPIOEXT14 DISP_PWM0 for backlight panel */
  96. #ifdef GPIO_LCM_BL_EN
  97. #define GPIO_LCD_BL_EN GPIO_LCM_BL_EN
  98. #else
  99. #define GPIO_LCD_BL_EN /*GPIO87*/GPIOEXT14
  100. #endif
  101. /* GPIOEXT24/GPIO102 led_en for panel */
  102. #ifdef GPIO_LCM_LED_EN
  103. #define GPIO_LCD_LED_EN GPIO_LCM_LED_EN
  104. #else
  105. #define GPIO_LCD_LED_EN /*GPIOEXT24*/GPIO102
  106. #endif
  107. /* --------------------------------------------------------------------------- */
  108. /* Local Variables */
  109. /* --------------------------------------------------------------------------- */
  110. static LCM_UTIL_FUNCS lcm_util = {
  111. .set_reset_pin = NULL,
  112. .udelay = NULL,
  113. .mdelay = NULL,
  114. };
  115. #define SET_RESET_PIN(v) (lcm_util.set_reset_pin((v)))
  116. #define UDELAY(n) (lcm_util.udelay(n))
  117. #define MDELAY(n) (lcm_util.mdelay(n))
  118. /* --------------------------------------------------------------------------- */
  119. /* Local Functions */
  120. /* --------------------------------------------------------------------------- */
  121. #define dsi_set_cmdq_V2(cmd, count, ppara, force_update) lcm_util.dsi_set_cmdq_V2(cmd, count, ppara, force_update)
  122. #define dsi_set_cmdq(pdata, queue_size, force_update) lcm_util.dsi_set_cmdq(pdata, queue_size, force_update)
  123. #define wrtie_cmd(cmd) lcm_util.dsi_write_cmd(cmd)
  124. #define write_regs(addr, pdata, byte_nums) lcm_util.dsi_write_regs(addr, pdata, byte_nums)
  125. #define read_reg(cmd) lcm_util.dsi_dcs_read_lcm_reg(cmd)
  126. #define read_reg_v2(cmd, buffer, buffer_size) lcm_util.dsi_dcs_read_lcm_reg_v2(cmd, buffer, buffer_size)
  127. #define LCM_DSI_CMD_MODE 0
  128. /* #define PUSH_TABLET_USING */
  129. #define REGFLAG_DELAY 0xFFFC
  130. #define REGFLAG_END_OF_TABLE 0xFFFD
  131. #ifdef PUSH_TABLET_USING
  132. struct LCM_setting_table {
  133. unsigned int cmd;
  134. unsigned char count;
  135. unsigned char para_list[64];
  136. };
  137. static struct LCM_setting_table lcm_initialization_setting[] = {
  138. {0x01, 0, {}},
  139. {REGFLAG_DELAY, 10, {}},
  140. {0x3a, 1, {0x77}},
  141. {0x2a, 4, {0x00,0x00,0x04,0xff}},
  142. {0x2b, 4, {0x00,0x00,0x06,0x3f}},
  143. {0x35, 1, {0x00}},
  144. {0x44, 2, {0x00,0x00}},
  145. {0x51, 1, {0xff}},
  146. {0x53, 1, {0x24}},
  147. {0x51, 1, {0xff}},
  148. {0x53, 1, {0x24}},
  149. {0x55, 1, {0x00}},
  150. {0x11, 0,{}},
  151. {REGFLAG_DELAY, 120, {}},
  152. {0xB0, 1, {0x04}},
  153. #if (LCM_DSI_CMD_MODE)
  154. {0xB3, 3,{0x04,0x08,0x00,0x22,0x00}},
  155. {0xB3, 1, {0x04}},
  156. #else
  157. {0xB3, 5,{0x14,0x08,0x00,0x22,0x00}},
  158. {0xB3, 1, {0x14}},
  159. #endif
  160. {0x29, 0,{}},
  161. {REGFLAG_DELAY, 20, {}},
  162. {REGFLAG_END_OF_TABLE, 0x00, {}}
  163. };
  164. static struct LCM_setting_table lcm_suspend_setting[] = {
  165. {0x28,0,{}},
  166. {REGFLAG_DELAY, 20, {}},
  167. {0x10,0,{}},
  168. {REGFLAG_DELAY, 120, {}},
  169. {REGFLAG_END_OF_TABLE, 0x00, {}}
  170. };
  171. static void push_table(struct LCM_setting_table *table, unsigned int count, unsigned char force_update)
  172. {
  173. unsigned int i;
  174. unsigned cmd;
  175. for (i = 0; i < count; i++) {
  176. cmd = table[i].cmd;
  177. switch (cmd) {
  178. case REGFLAG_DELAY :
  179. if (table[i].count <= 10)
  180. MDELAY(table[i].count);
  181. else
  182. MDELAY(table[i].count);
  183. break;
  184. case REGFLAG_END_OF_TABLE :
  185. break;
  186. default:
  187. dsi_set_cmdq_V2(cmd, table[i].count, table[i].para_list, force_update);
  188. }
  189. }
  190. }
  191. #endif
  192. static void init_lcm_registers(void)
  193. {
  194. unsigned int data_array[16];
  195. #ifdef BUILD_LK
  196. dprintf(INFO, "%s, LK\n", __func__);
  197. #else
  198. pr_debug("%s, KE\n", __func__);
  199. #endif
  200. #ifdef PUSH_TABLET_USING
  201. push_table(lcm_initialization_setting, sizeof(lcm_initialization_setting) / sizeof(struct LCM_setting_table), 1);
  202. #else
  203. data_array[0] = 0x00010500;
  204. dsi_set_cmdq(data_array, 1, 1);
  205. MDELAY(10);
  206. data_array[0] = 0x773a1500;
  207. dsi_set_cmdq(data_array, 1, 1);
  208. data_array[0] = 0x00053902;
  209. data_array[1] = 0x0400002a;
  210. data_array[2] = 0xff;
  211. dsi_set_cmdq(data_array, 3, 1);
  212. data_array[0] = 0x00053902;
  213. data_array[1] = 0x0600002b;
  214. data_array[2] = 0x3f;
  215. dsi_set_cmdq(data_array, 3, 1);
  216. data_array[0] = 0x00351500;
  217. dsi_set_cmdq(data_array, 1, 1);
  218. data_array[0] = 0x00033902;
  219. data_array[1] = 0x00000044;
  220. dsi_set_cmdq(data_array, 2, 1);
  221. data_array[0] = 0xff511500;
  222. dsi_set_cmdq(data_array, 1, 1);
  223. data_array[0] = 0x24531500;
  224. dsi_set_cmdq(data_array, 1, 1);
  225. data_array[0] = 0xff511500;
  226. dsi_set_cmdq(data_array, 1, 1);
  227. data_array[0] = 0x24531500;
  228. dsi_set_cmdq(data_array, 1, 1);
  229. data_array[0] = 0x00551500;
  230. dsi_set_cmdq(data_array, 1, 1);
  231. data_array[0] = 0x00110500;
  232. dsi_set_cmdq(data_array, 1, 1);
  233. MDELAY(120);
  234. data_array[0] = 0x04b02300;
  235. dsi_set_cmdq(data_array, 1, 1);
  236. #if (LCM_DSI_CMD_MODE)
  237. data_array[0] = 0x00062902;
  238. data_array[1] = 0x000804b3;
  239. data_array[2] = 0x00000022;
  240. dsi_set_cmdq(data_array, 3, 1);
  241. data_array[0] = 0x04b32300;
  242. dsi_set_cmdq(data_array, 1, 1);
  243. #else
  244. data_array[0] = 0x00062902;
  245. data_array[1] = 0x000814b3;
  246. data_array[2] = 0x00000022;
  247. dsi_set_cmdq(data_array, 3, 1);
  248. data_array[0] = 0x14b32300;
  249. dsi_set_cmdq(data_array, 1, 1);
  250. #endif
  251. data_array[0] = 0x00290500;
  252. dsi_set_cmdq(data_array, 1, 1);
  253. MDELAY(20);
  254. #endif
  255. }
  256. /* --------------------------------------------------------------------------- */
  257. /* LCM Driver Implementations */
  258. /* --------------------------------------------------------------------------- */
  259. static void lcm_set_util_funcs(const LCM_UTIL_FUNCS *util)
  260. {
  261. memcpy(&lcm_util, util, sizeof(LCM_UTIL_FUNCS));
  262. }
  263. #ifndef BUILD_LK
  264. static void lcm_request_gpio_control(void)
  265. {
  266. gpio_request(GPIO_LCD_PWR_EN, "GPIO_LCD_PWR_EN");
  267. pr_debug("[KE/LCM] GPIO_LCD_PWR_EN = 0x%x\n", GPIO_LCD_PWR_EN);
  268. gpio_request(GPIO_LCD_BL_EN, "GPIO_LCD_BL_EN");
  269. pr_debug("[KE/LCM] GPIO_LCD_BL_EN = 0x%x\n", GPIO_LCD_BL_EN);
  270. gpio_request(GPIO_LCD_RST_EN, "GPIO_LCD_RST_EN");
  271. pr_debug("[KE/LCM] GPIO_LCD_RST_EN = 0x%x\n", GPIO_LCD_RST_EN);
  272. gpio_request(GPIO_LCD_LED_EN, "GPIO_LCD_LED_EN");
  273. pr_debug("[KE/LCM] GPIO_LCD_LED_EN = 0x%x\n", GPIO_LCD_LED_EN);
  274. }
  275. #endif
  276. static void lcm_set_gpio_output(unsigned int GPIO, unsigned int output)
  277. {
  278. if (GPIO == 0xFFFFFFFF) {
  279. #ifdef BUILD_LK
  280. dprintf(INFO, "[LK/LCM] GPIO_LCD_PWR_EN = 0x%x\n", GPIO_LCD_PWR_EN);
  281. dprintf(INFO, "[LK/LCM] GPIO_LCD_RST_EN = 0x%x\n", GPIO_LCD_RST_EN);
  282. dprintf(INFO, "[LK/LCM] GPIO_LCD_BL_EN = 0x%x\n", GPIO_LCD_BL_EN);
  283. dprintf(INFO, "[LK/LCM] GPIO_LCM_LED_EN = 0x%x\n", GPIO_LCM_LED_EN);
  284. #elif (defined BUILD_UBOOT)
  285. #else
  286. #endif
  287. return;
  288. }
  289. #ifdef BUILD_LK
  290. mt_set_gpio_mode(GPIO, GPIO_MODE_00);
  291. mt_set_gpio_dir(GPIO, GPIO_DIR_OUT);
  292. mt_set_gpio_out(GPIO, (output > 0) ? GPIO_OUT_ONE : GPIO_OUT_ZERO);
  293. #else
  294. gpio_set_value(GPIO, (output > 0) ? GPIO_OUT_ONE : GPIO_OUT_ZERO);
  295. #endif
  296. }
  297. static void lcm_get_params(LCM_PARAMS *params)
  298. {
  299. memset(params, 0, sizeof(LCM_PARAMS));
  300. params->type = LCM_TYPE_DSI;
  301. params->width = FRAME_WIDTH;
  302. params->height = FRAME_HEIGHT;
  303. params->lcm_if = LCM_INTERFACE_DSI_DUAL;
  304. params->lcm_cmd_if = LCM_INTERFACE_DSI_DUAL;
  305. #if (LCM_DSI_CMD_MODE)
  306. params->dsi.mode = CMD_MODE;
  307. #else
  308. params->dsi.mode = BURST_VDO_MODE;
  309. #endif
  310. params->dsi.LANE_NUM = LCM_FOUR_LANE;
  311. params->dsi.data_format.color_order = LCM_COLOR_ORDER_RGB;
  312. params->dsi.data_format.trans_seq = LCM_DSI_TRANS_SEQ_MSB_FIRST;
  313. params->dsi.data_format.padding = LCM_DSI_PADDING_ON_LSB;
  314. params->dsi.data_format.format = LCM_DSI_FORMAT_RGB888;
  315. params->dsi.packet_size = 256;
  316. params->dsi.PS = LCM_PACKED_PS_24BIT_RGB888;
  317. params->dsi.vertical_sync_active = 4;
  318. params->dsi.vertical_backporch = 4;
  319. params->dsi.vertical_frontporch = 12;
  320. params->dsi.vertical_active_line = FRAME_HEIGHT;
  321. params->dsi.horizontal_sync_active = 20;
  322. params->dsi.horizontal_backporch = 32;
  323. params->dsi.horizontal_frontporch = 92;
  324. params->dsi.horizontal_active_pixel = FRAME_WIDTH;
  325. params->dsi.PLL_CLOCK = 450;
  326. params->dsi.ssc_disable = 1;
  327. params->dsi.cont_clock = 0;
  328. params->dsi.ufoe_enable = 1;
  329. params->dsi.ufoe_params.lr_mode_en = 1;
  330. }
  331. static void init_power(void)
  332. {
  333. #ifdef BUILD_LK
  334. dprintf(INFO, "%s, LK\n", __func__);
  335. lcm_set_gpio_output(GPIO_LCD_BL_EN, GPIO_OUT_ZERO);
  336. MDELAY(10);
  337. lcm_set_gpio_output(GPIO_LCD_PWR_EN, GPIO_OUT_ZERO);
  338. MDELAY(10);
  339. lcm_set_gpio_output(GPIO_LCD_RST_EN, GPIO_OUT_ZERO);
  340. MDELAY(10);
  341. lcm_set_gpio_output(GPIO_LCD_LED_EN, GPIO_OUT_ZERO);
  342. MDELAY(10);
  343. /* 1.initial start */
  344. lcm_set_gpio_output(GPIO_LCD_PWR_EN, GPIO_OUT_ONE);
  345. MDELAY(2);
  346. lcm_set_gpio_output(GPIO_LCD_LED_EN, GPIO_OUT_ONE);
  347. MDELAY(50);
  348. lcm_set_gpio_output(GPIO_LCD_RST_EN, GPIO_OUT_ONE);
  349. MDELAY(20);
  350. lcm_set_gpio_output(GPIO_LCD_BL_EN, GPIO_OUT_ONE);
  351. #else
  352. #endif
  353. }
  354. static void lcm_init(struct platform_device *pdev)
  355. {
  356. #ifdef BUILD_LK
  357. dprintf(INFO, "%s, LK\n", __func__);
  358. #else
  359. lcm_request_gpio_control();
  360. #endif
  361. init_lcm_registers();
  362. }
  363. static void lcm_suspend(void)
  364. {
  365. unsigned int data_array[16];
  366. #ifdef BUILD_LK
  367. dprintf(INFO, "%s, LK\n", __func__);
  368. #else
  369. pr_debug("%s, kernel", __func__);
  370. #endif
  371. #ifdef PUSH_TABLET_USING
  372. push_table(lcm_suspend_setting, sizeof(lcm_suspend_setting) / sizeof(struct LCM_setting_table), 1);
  373. #else
  374. data_array[0] = 0x00280500;
  375. dsi_set_cmdq(data_array, 1, 1);
  376. MDELAY(20);
  377. data_array[0] = 0x00100500;
  378. dsi_set_cmdq(data_array, 1, 1);
  379. MDELAY(100);
  380. #endif
  381. lcm_set_gpio_output(GPIO_LCD_LED_EN, GPIO_OUT_ZERO);
  382. MDELAY(20);
  383. lcm_set_gpio_output(GPIO_LCD_RST_EN, GPIO_OUT_ZERO);
  384. MDELAY(10);
  385. lcm_set_gpio_output(GPIO_LCD_PWR_EN, GPIO_OUT_ZERO);
  386. MDELAY(10);
  387. }
  388. static void lcm_resume(void)
  389. {
  390. #ifdef BUILD_LK
  391. dprintf(INFO, "%s, LK\n", __func__);
  392. #else
  393. pr_debug("%s, kernel", __func__);
  394. #endif
  395. /* 1.initial start */
  396. lcm_set_gpio_output(GPIO_LCD_PWR_EN, GPIO_OUT_ONE);
  397. MDELAY(2);
  398. lcm_set_gpio_output(GPIO_LCD_LED_EN, GPIO_OUT_ONE);
  399. MDELAY(50);
  400. lcm_set_gpio_output(GPIO_LCD_RST_EN, GPIO_OUT_ONE);
  401. MDELAY(20);
  402. lcm_set_gpio_output(GPIO_LCD_BL_EN, GPIO_OUT_ONE);
  403. MDELAY(20);
  404. init_lcm_registers();
  405. }
  406. #if (LCM_DSI_CMD_MODE)
  407. static void lcm_update(unsigned int x, unsigned int y, unsigned int width, unsigned int height)
  408. {
  409. unsigned int x0 = x;
  410. unsigned int y0 = y;
  411. unsigned int x1 = x0 + width - 1;
  412. unsigned int y1 = y0 + height - 1;
  413. unsigned char x0_MSB = ((x0 >> 8) & 0xFF);
  414. unsigned char x0_LSB = (x0 & 0xFF);
  415. unsigned char x1_MSB = ((x1 >> 8) & 0xFF);
  416. unsigned char x1_LSB = (x1 & 0xFF);
  417. unsigned char y0_MSB = ((y0 >> 8) & 0xFF);
  418. unsigned char y0_LSB = (y0 & 0xFF);
  419. unsigned char y1_MSB = ((y1 >> 8) & 0xFF);
  420. unsigned char y1_LSB = (y1 & 0xFF);
  421. unsigned int data_array[16];
  422. data_array[0] = 0x00053902;
  423. data_array[1] = (x1_MSB << 24) | (x0_LSB << 16) | (x0_MSB << 8) | 0x2a;
  424. data_array[2] = (x1_LSB);
  425. dsi_set_cmdq(data_array, 3, 1);
  426. data_array[0] = 0x00053902;
  427. data_array[1] = (y1_MSB << 24) | (y0_LSB << 16) | (y0_MSB << 8) | 0x2b;
  428. data_array[2] = (y1_LSB);
  429. dsi_set_cmdq(data_array, 3, 1);
  430. data_array[0] = 0x00290508;
  431. dsi_set_cmdq(data_array, 1, 1);
  432. data_array[0] = 0x002c3909;
  433. dsi_set_cmdq(data_array, 1, 0);
  434. }
  435. #endif
  436. LCM_DRIVER r69429_wqxga_dsi_vdo_lcm_drv = {
  437. .name = "r69429_wqxga_dsi_vdo",
  438. .set_util_funcs = lcm_set_util_funcs,
  439. .get_params = lcm_get_params,
  440. .init_power = init_power,
  441. .init = lcm_init,
  442. .suspend = lcm_suspend,
  443. .resume = lcm_resume,
  444. #if (LCM_DSI_CMD_MODE)
  445. .update = lcm_update,
  446. #endif
  447. };