target: add support for disabling continuous-splash
This support would be helpful in enabling/disabling continuous
splash screen through fastboot oem command. It can be used
in the following way.
* fastboot oem select-display-panel <panel_name>:<0/1>
0 - disable continuous splash, 1 - enable continuous splash
* fastboot oem select-display-panel <panel_name>
This will continue to select the panel with default continuous
splash settings.
Change-Id: Ic1a1a41b7f675b6d1acf2f088e85cb9aad332c0d
diff --git a/target/msm8994/target_display.c b/target/msm8994/target_display.c
index 1ac0895..4ed88dc 100644
--- a/target/msm8994/target_display.c
+++ b/target/msm8994/target_display.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -425,8 +425,10 @@
void target_display_init(const char *panel_name)
{
- panel_name += strspn(panel_name, " ");
+ char cont_splash = '\0';
+ set_panel_cmd_string(panel_name, &cont_splash);
+ panel_name += strspn(panel_name, " ");
if (!strcmp(panel_name, NO_PANEL_CONFIG)
|| !strcmp(panel_name, SIM_VIDEO_PANEL)
|| !strcmp(panel_name, SIM_DUALDSI_VIDEO_PANEL)
@@ -436,10 +438,16 @@
panel_name);
return;
}
+
if (gcdb_display_init(panel_name, MDP_REV_50, (void *)MIPI_FB_ADDR)) {
target_force_cont_splash_disable(true);
msm_display_off();
}
+
+ if (cont_splash == '0') {
+ dprintf(INFO, "Forcing continuous splash disable\n");
+ target_force_cont_splash_disable(true);
+ }
}
void target_display_shutdown(void)