blob: 4a1472f2637d22199422ddb1b676f6fb5630e863 [file] [log] [blame]
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -07001/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions
5 * are met:
6 * * Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * * Redistributions in binary form must reproduce the above copyright
9 * notice, this list of conditions and the following disclaimer in
10 * the documentation and/or other materials provided with the
11 * distribution.
12 * * Neither the name of The Linux Foundation nor the names of its
13 * contributors may be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
23 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <debug.h>
31#include <string.h>
32#include <smem.h>
33#include <err.h>
34#include <msm_panel.h>
35#include <mipi_dsi.h>
36#include <pm8x41.h>
37#include <pm8x41_wled.h>
38#include <qpnp_wled.h>
39#include <board.h>
40#include <mdp5.h>
41#include <scm.h>
42#include <regulator.h>
43#include <platform/clock.h>
44#include <platform/gpio.h>
45#include <platform/iomap.h>
46#include <target/display.h>
47#include <qtimer.h>
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +053048#include <platform.h>
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -070049
50#include "include/panel.h"
51#include "include/display_resource.h"
52#include "gcdb_display.h"
53
54/*---------------------------------------------------------------------------*/
55/* GPIO configuration */
56/*---------------------------------------------------------------------------*/
57static struct gpio_pin reset_gpio = {
58 "msmgpio", 0, 3, 1, 0, 1
59};
60
61static struct gpio_pin enable_gpio = {
62 "msmgpio", 90, 3, 1, 0, 1
63};
64
65static struct gpio_pin bkl_gpio = {
66 "msmgpio", 91, 3, 1, 0, 1
67};
68
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +053069static struct gpio_pin lcd_mode_gpio = {
70 "msmgpio", 107, 3, 1, 0, 1
71};
72
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -070073#define VCO_DELAY_USEC 1000
74#define GPIO_STATE_LOW 0
75#define GPIO_STATE_HIGH 2
76#define RESET_GPIO_SEQ_LEN 3
77#define PMIC_WLED_SLAVE_ID 3
78
Padmanabhan Komandurub3381932015-06-15 22:14:02 +053079#define DSI0_BASE_ADJUST -0x4000
80#define DSI0_PHY_BASE_ADJUST -0x4100
81#define DSI0_PHY_PLL_BASE_ADJUST -0x3900
82#define DSI0_PHY_REGULATOR_BASE_ADJUST -0x3C00
83
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -070084static void mdss_dsi_uniphy_pll_sw_reset_8952(uint32_t pll_base)
85{
86 writel(0x01, pll_base + 0x0068); /* PLL TEST CFG */
87 mdelay(1);
88 writel(0x00, pll_base + 0x0068); /* PLL TEST CFG */
89 mdelay(1);
90}
91
92static void dsi_pll_toggle_lock_detect_8952(uint32_t pll_base)
93{
94 writel(0x04, pll_base + 0x0064); /* LKDetect CFG2 */
95 udelay(1);
96 writel(0x05, pll_base + 0x0064); /* LKDetect CFG2 */
97 udelay(512);
98}
99
100static void dsi_pll_sw_reset_8952(uint32_t pll_base)
101{
102 writel(0x01, pll_base + 0x0068); /* PLL TEST CFG */
103 udelay(1);
104 writel(0x00, pll_base + 0x0068); /* PLL TEST CFG */
Padmanabhan Komanduru6cf63522015-06-08 14:48:00 +0530105 udelay(1);
106}
107
108static uint32_t dsi_pll_lock_status_8956(uint32_t pll_base)
109{
110 uint32_t counter, status;
111
112 status = readl(pll_base + 0x00c0) & 0x01;
113 for (counter = 0; counter < 5 && !status; counter++) {
114 udelay(100);
115 status = readl(pll_base + 0x00c0) & 0x01;
116 }
117
118 return status;
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700119}
120
121static uint32_t gf_1_dsi_pll_enable_sequence_8952(uint32_t pll_base)
122{
123 uint32_t rc;
124
125 dsi_pll_sw_reset_8952(pll_base);
126
127 /*
128 * Add hardware recommended delays between register writes for
129 * the updates to take effect. These delays are necessary for the
130 * PLL to successfully lock
131 */
132 writel(0x14, pll_base + 0x0070); /* CAL CFG1*/
133 writel(0x01, pll_base + 0x0020); /* GLB CFG */
134 writel(0x05, pll_base + 0x0020); /* GLB CFG */
135 udelay(3);
136 writel(0x0f, pll_base + 0x0020); /* GLB CFG */
137 udelay(500);
138
139 dsi_pll_toggle_lock_detect_8952(pll_base);
140 rc = readl(pll_base + 0x00c0) & 0x01;
141
142 return rc;
143}
144
145static uint32_t gf_2_dsi_pll_enable_sequence_8952(uint32_t pll_base)
146{
147 uint32_t rc;
148
149 dsi_pll_sw_reset_8952(pll_base);
150
151 /*
152 * Add hardware recommended delays between register writes for
153 * the updates to take effect. These delays are necessary for the
154 * PLL to successfully lock
155 */
156 writel(0x04, pll_base + 0x0070); /* CAL CFG1*/
157 writel(0x01, pll_base + 0x0020); /* GLB CFG */
158 writel(0x05, pll_base + 0x0020); /* GLB CFG */
159 udelay(3);
160 writel(0x0f, pll_base + 0x0020); /* GLB CFG */
161 udelay(500);
162
163 dsi_pll_toggle_lock_detect_8952(pll_base);
164 rc = readl(pll_base + 0x00c0) & 0x01;
165
166 return rc;
167}
168
169static uint32_t tsmc_dsi_pll_enable_sequence_8952(uint32_t pll_base)
170{
171 uint32_t rc;
172
173 dsi_pll_sw_reset_8952(pll_base);
174 /*
175 * Add hardware recommended delays between register writes for
176 * the updates to take effect. These delays are necessary for the
177 * PLL to successfully lock
178 */
179
180 writel(0x34, pll_base + 0x0070); /* CAL CFG1*/
181 writel(0x01, pll_base + 0x0020); /* GLB CFG */
182 writel(0x05, pll_base + 0x0020); /* GLB CFG */
183 writel(0x0f, pll_base + 0x0020); /* GLB CFG */
184 udelay(500);
185
186 dsi_pll_toggle_lock_detect_8952(pll_base);
187 rc = readl(pll_base + 0x00c0) & 0x01;
188
189 return rc;
190}
191
192
193static uint32_t dsi_pll_enable_seq_8952(uint32_t pll_base)
194{
195 uint32_t pll_locked = 0;
196 uint32_t counter = 0;
197
198 do {
199 pll_locked = tsmc_dsi_pll_enable_sequence_8952(pll_base);
200
201 dprintf(SPEW, "TSMC pll locked status is %d\n", pll_locked);
202 ++counter;
203 } while (!pll_locked && (counter < 3));
204
205 if(!pll_locked) {
206 counter = 0;
207 do {
208 pll_locked = gf_1_dsi_pll_enable_sequence_8952(pll_base);
209
210 dprintf(SPEW, "GF P1 pll locked status is %d\n", pll_locked);
211 ++counter;
212 } while (!pll_locked && (counter < 3));
213 }
214
215 if(!pll_locked) {
216 counter = 0;
217 do {
218 pll_locked = gf_2_dsi_pll_enable_sequence_8952(pll_base);
219
220 dprintf(SPEW, "GF P2 pll locked status is %d\n", pll_locked);
221 ++counter;
222 } while (!pll_locked && (counter < 3));
223 }
224
225 return pll_locked;
226}
227
Padmanabhan Komanduru6cf63522015-06-08 14:48:00 +0530228static uint32_t dsi_pll_enable_seq_8956(uint32_t pll_base)
229{
230 /*
231 * PLL power up sequence
232 * Add necessary delays recommended by h/w team
233 */
234
235 /* Lock Detect setting */
236 writel(0x0d, pll_base + 0x0064); /* LKDetect CFG2 */
237 writel(0x34, pll_base + 0x0070); /* PLL CAL_CFG1 */
238 writel(0x10, pll_base + 0x005c); /* LKDetect CFG0 */
239 writel(0x1a, pll_base + 0x0060); /* LKDetect CFG1 */
240
241 writel(0x01, pll_base + 0x0020); /* GLB CFG */
242 udelay(300);
243 writel(0x05, pll_base + 0x0020); /* GLB CFG */
244 udelay(300);
245 writel(0x0f, pll_base + 0x0020); /* GLB CFG */
246 udelay(300);
247 writel(0x07, pll_base + 0x0020); /* GLB CFG */
248 udelay(300);
249 writel(0x0f, pll_base + 0x0020); /* GLB CFG */
250 udelay(1000);
251
252 return dsi_pll_lock_status_8956(pll_base);
253}
254
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700255static int msm8952_wled_backlight_ctrl(uint8_t enable)
256{
257 uint8_t slave_id = PMIC_WLED_SLAVE_ID; /* pmi */
258
259 pm8x41_wled_config_slave_id(slave_id);
260 qpnp_wled_enable_backlight(enable);
261 qpnp_ibb_enable(enable);
262 return NO_ERROR;
263}
264
265int target_backlight_ctrl(struct backlight *bl, uint8_t enable)
266{
267 uint32_t ret = NO_ERROR;
268
269 if (bl->bl_interface_type == BL_DCS)
270 return ret;
271
272 ret = msm8952_wled_backlight_ctrl(enable);
273
274 return ret;
275}
276
Padmanabhan Komanduru77a979a2015-06-15 15:03:23 +0530277static int32_t mdss_dsi_pll_config(uint32_t pll_base, uint32_t ctl_base,
278 struct mdss_dsi_pll_config *pll_data)
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700279{
280 int32_t ret = 0;
Padmanabhan Komanduru77a979a2015-06-15 15:03:23 +0530281 if (!platform_is_msm8956())
282 mdss_dsi_uniphy_pll_sw_reset_8952(pll_base);
283 else
284 dsi_pll_sw_reset_8952(pll_base);
285 mdss_dsi_auto_pll_config(pll_base, ctl_base, pll_data);
286 if (platform_is_msm8956())
287 ret = dsi_pll_enable_seq_8956(pll_base);
288 else
289 ret = dsi_pll_enable_seq_8952(pll_base);
290
291 return ret;
292}
293
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700294int target_panel_clock(uint8_t enable, struct msm_panel_info *pinfo)
295{
Padmanabhan Komanduru82ae7132015-06-08 15:46:33 +0530296 int32_t ret = 0, flags;
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700297 struct mdss_dsi_pll_config *pll_data;
298 dprintf(SPEW, "target_panel_clock\n");
299
Padmanabhan Komanduru82ae7132015-06-08 15:46:33 +0530300 if (pinfo->dest == DISPLAY_2) {
301 flags = MMSS_DSI_CLKS_FLAG_DSI1;
302 if (pinfo->mipi.dual_dsi)
303 flags |= MMSS_DSI_CLKS_FLAG_DSI0;
304 } else {
305 flags = MMSS_DSI_CLKS_FLAG_DSI0;
306 if (pinfo->mipi.dual_dsi)
307 flags |= MMSS_DSI_CLKS_FLAG_DSI1;
308 }
309
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700310 pll_data = pinfo->mipi.dsi_pll_config;
311 pll_data->vco_delay = VCO_DELAY_USEC;
312
313 if (enable) {
314 mdp_gdsc_ctrl(enable);
315 mdss_bus_clocks_enable();
316 mdp_clock_enable();
317 ret = restore_secure_cfg(SECURE_DEVICE_MDSS);
318 if (ret) {
319 dprintf(CRITICAL,
320 "%s: Failed to restore MDP security configs",
321 __func__);
322 mdp_clock_disable();
323 mdss_bus_clocks_disable();
324 mdp_gdsc_ctrl(0);
325 return ret;
326 }
Padmanabhan Komanduru77a979a2015-06-15 15:03:23 +0530327
328 ret = mdss_dsi_pll_config(pinfo->mipi.pll_base,
329 pinfo->mipi.ctl_base, pll_data);
Padmanabhan Komanduru6cf63522015-06-08 14:48:00 +0530330 if (!ret)
Padmanabhan Komanduru77a979a2015-06-15 15:03:23 +0530331 dprintf(CRITICAL, "Not able to enable master pll\n");
332
333 if (platform_is_msm8956() && pinfo->mipi.dual_dsi) {
334 ret = mdss_dsi_pll_config(pinfo->mipi.spll_base,
335 pinfo->mipi.sctl_base, pll_data);
336 if (!ret)
337 dprintf(CRITICAL, "Not able to enable second pll\n");
338 }
339
Padmanabhan Komanduru82ae7132015-06-08 15:46:33 +0530340 gcc_dsi_clocks_enable(flags, pll_data->pclk_m, pll_data->pclk_n,
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700341 pll_data->pclk_d);
342 } else if(!target_cont_splash_screen()) {
Padmanabhan Komanduru82ae7132015-06-08 15:46:33 +0530343 gcc_dsi_clocks_disable(flags);
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700344 mdp_clock_disable();
345 mdss_bus_clocks_disable();
346 mdp_gdsc_ctrl(enable);
347 }
348
349 return 0;
350}
351
352int target_panel_reset(uint8_t enable, struct panel_reset_sequence *resetseq,
353 struct msm_panel_info *pinfo)
354{
355 int ret = NO_ERROR;
356
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +0530357 if (platform_is_msm8956()) {
358 reset_gpio.pin_id = 25;
359 bkl_gpio.pin_id = 66;
360 }
361
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700362 if (enable) {
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +0530363 if (pinfo->mipi.use_enable_gpio && !platform_is_msm8956()) {
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700364 gpio_tlmm_config(enable_gpio.pin_id, 0,
365 enable_gpio.pin_direction, enable_gpio.pin_pull,
366 enable_gpio.pin_strength,
367 enable_gpio.pin_state);
368
369 gpio_set_dir(enable_gpio.pin_id, 2);
370 }
371
372 gpio_tlmm_config(bkl_gpio.pin_id, 0,
373 bkl_gpio.pin_direction, bkl_gpio.pin_pull,
374 bkl_gpio.pin_strength, bkl_gpio.pin_state);
375
376 gpio_set_dir(bkl_gpio.pin_id, 2);
377
378 gpio_tlmm_config(reset_gpio.pin_id, 0,
379 reset_gpio.pin_direction, reset_gpio.pin_pull,
380 reset_gpio.pin_strength, reset_gpio.pin_state);
381
382 gpio_set_dir(reset_gpio.pin_id, 2);
383
384 /* reset */
385 for (int i = 0; i < RESET_GPIO_SEQ_LEN; i++) {
386 if (resetseq->pin_state[i] == GPIO_STATE_LOW)
387 gpio_set_dir(reset_gpio.pin_id, GPIO_STATE_LOW);
388 else
389 gpio_set_dir(reset_gpio.pin_id, GPIO_STATE_HIGH);
390 mdelay(resetseq->sleep[i]);
391 }
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +0530392
393 if (platform_is_msm8956()) {
394 gpio_tlmm_config(lcd_mode_gpio.pin_id, 0,
395 lcd_mode_gpio.pin_direction, lcd_mode_gpio.pin_pull,
396 lcd_mode_gpio.pin_strength, lcd_mode_gpio.pin_state);
397
398 if (pinfo->lcdc.split_display || pinfo->lcdc.dst_split)
399 gpio_set_dir(lcd_mode_gpio.pin_id, GPIO_STATE_LOW);
400 else
401 gpio_set_dir(lcd_mode_gpio.pin_id, GPIO_STATE_HIGH);
402 }
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700403 } else if(!target_cont_splash_screen()) {
404 gpio_set_dir(reset_gpio.pin_id, 0);
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +0530405 if (pinfo->mipi.use_enable_gpio && !platform_is_msm8956())
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700406 gpio_set_dir(enable_gpio.pin_id, 0);
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +0530407 if (platform_is_msm8956())
408 gpio_set_dir(lcd_mode_gpio.pin_id, 0);
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700409 }
410
411 return ret;
412}
413
414static void wled_init(struct msm_panel_info *pinfo)
415{
416 struct qpnp_wled_config_data config = {0};
417 struct labibb_desc *labibb;
418 int display_type = 0;
419
420 labibb = pinfo->labibb;
421
422 if (labibb)
423 display_type = labibb->amoled_panel;
424
425 config.display_type = display_type;
426 config.lab_init_volt = 4600000; /* fixed, see pmi register */
427 config.ibb_init_volt = 1400000; /* fixed, see pmi register */
428
429 if (labibb && labibb->force_config) {
430 config.lab_min_volt = labibb->lab_min_volt;
431 config.lab_max_volt = labibb->lab_max_volt;
432 config.ibb_min_volt = labibb->ibb_min_volt;
433 config.ibb_max_volt = labibb->ibb_max_volt;
434 config.pwr_up_delay = labibb->pwr_up_delay;
435 config.pwr_down_delay = labibb->pwr_down_delay;
436 config.ibb_discharge_en = labibb->ibb_discharge_en;
437 } else {
438 /* default */
439 config.pwr_up_delay = 3;
440 config.pwr_down_delay = 3;
441 config.ibb_discharge_en = 1;
442 if (display_type) { /* amoled */
443 config.lab_min_volt = 4600000;
444 config.lab_max_volt = 4600000;
445 config.ibb_min_volt = 4000000;
446 config.ibb_max_volt = 4000000;
447 } else { /* lcd */
448 config.lab_min_volt = 5500000;
449 config.lab_max_volt = 5500000;
450 config.ibb_min_volt = 5500000;
451 config.ibb_max_volt = 5500000;
452 }
453 }
454
455 dprintf(SPEW, "%s: %d %d %d %d %d %d %d %d %d %d\n", __func__,
456 config.display_type,
457 config.lab_min_volt, config.lab_max_volt,
458 config.ibb_min_volt, config.ibb_max_volt,
459 config.lab_init_volt, config.ibb_init_volt,
460 config.pwr_up_delay, config.pwr_down_delay,
461 config.ibb_discharge_en);
462
463 /* QPNP WLED init for display backlight */
464 pm8x41_wled_config_slave_id(PMIC_WLED_SLAVE_ID);
465
466 qpnp_wled_init(&config);
467}
468
Dhaval Patel7709c412015-05-12 10:09:41 -0700469int target_dsi_phy_config(struct mdss_dsi_phy_ctrl *phy_db)
470{
471 memcpy(phy_db->regulator, panel_regulator_settings, REGULATOR_SIZE);
472 memcpy(phy_db->ctrl, panel_physical_ctrl, PHYSICAL_SIZE);
473 memcpy(phy_db->strength, panel_strength_ctrl, STRENGTH_SIZE);
474 memcpy(phy_db->bistCtrl, panel_bist_ctrl, BIST_SIZE);
475 memcpy(phy_db->laneCfg, panel_lane_config, LANE_SIZE);
476 return NO_ERROR;
477}
478
Padmanabhan Komandurub3381932015-06-15 22:14:02 +0530479int target_display_get_base_offset(uint32_t base)
480{
481 if(platform_is_msm8956()) {
482 if (base == MIPI_DSI0_BASE)
483 return DSI0_BASE_ADJUST;
484 else if (base == DSI0_PHY_BASE)
485 return DSI0_PHY_BASE_ADJUST;
486 else if (base == DSI0_PLL_BASE)
487 return DSI0_PHY_PLL_BASE_ADJUST;
488 else if (base == DSI0_REGULATOR_BASE)
489 return DSI0_PHY_REGULATOR_BASE_ADJUST;
490 }
491
492 return 0;
493}
494
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700495int target_ldo_ctrl(uint8_t enable, struct msm_panel_info *pinfo)
496{
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +0530497 uint32_t ldo_num = REG_LDO6 | REG_LDO17;
498
499 if (platform_is_msm8956())
500 ldo_num |= REG_LDO1;
501 else
502 ldo_num |= REG_LDO2;
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700503
504 if (enable) {
Padmanabhan Komanduru3cb07662015-06-08 17:13:33 +0530505 regulator_enable(ldo_num);
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700506 mdelay(10);
507 wled_init(pinfo);
508 qpnp_ibb_enable(true); /*5V boost*/
509 mdelay(50);
510 } else {
Padmanabhan Komandurufa2899b2015-06-30 16:25:33 +0530511 /*
512 * LDO1, LDO2 and LDO6 are shared with other subsystems.
513 * Do not disable them.
514 */
515 regulator_disable(REG_LDO17);
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -0700516 }
517
518 return NO_ERROR;
519}
520
521bool target_display_panel_node(char *panel_name, char *pbuf, uint16_t buf_size)
522{
523 return gcdb_display_cmdline_arg(panel_name, pbuf, buf_size);
524}
525
526void target_display_init(const char *panel_name)
527{
528 char cont_splash = '\0';
529
530 set_panel_cmd_string(panel_name, &cont_splash);
531 panel_name += strspn(panel_name, " ");
532
533 if (!strcmp(panel_name, NO_PANEL_CONFIG)
534 || !strcmp(panel_name, SIM_VIDEO_PANEL)
535 || !strcmp(panel_name, SIM_CMD_PANEL)) {
536 dprintf(INFO, "Selected panel: %s\nSkip panel configuration\n",
537 panel_name);
538 return;
539 }
540
541 if (gcdb_display_init(panel_name, MDP_REV_50, (void *)MIPI_FB_ADDR)) {
542 target_force_cont_splash_disable(true);
543 msm_display_off();
544 }
545
546 if (cont_splash == '0') {
547 dprintf(INFO, "Forcing continuous splash disable\n");
548 target_force_cont_splash_disable(true);
549 }
550}
551
552void target_display_shutdown(void)
553{
554 gcdb_display_shutdown();
555}