msm8x25: Add support for continuous splash screen
- Enable continuous splash screen
- Enable one wire mode for back light
- Add macro to allow display mode (command/video) configuration change
during compile time.
Change-Id: I31e9fa9c0fe709b2a75bc2648dbd2d7f1be14776
diff --git a/dev/panel/msm/mipi_nt35510.c b/dev/panel/msm/mipi_nt35510.c
index d32af1e..7d52be5 100644
--- a/dev/panel/msm/mipi_nt35510.c
+++ b/dev/panel/msm/mipi_nt35510.c
@@ -48,7 +48,16 @@
{
if (on) {
gpio_config(96, GPIO_OUTPUT);
+ /*
+ * As per the specification follow the sequence to put lcd
+ * backlight in one wire mode.
+ */
gpio_set(96, 0x1);
+ udelay(190);
+ gpio_set(96, 0x0);
+ udelay(286);
+ gpio_set(96, 0x1);
+ udelay(50);
gpio_config(35, GPIO_OUTPUT);
gpio_set(35, 0x1);
@@ -64,9 +73,11 @@
gpio_set(85, 0x1);
mdelay(20);
} else {
- gpio_set(96, 0x0);
- gpio_set(35, 0x0);
- gpio_set(40, 0x0);
+ if (!target_cont_splash_screen()) {
+ gpio_set(96, 0x0);
+ gpio_set(35, 0x0);
+ gpio_set(40, 0x0);
+ }
}
return 0;
}