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/msm8226/target_display.c b/target/msm8226/target_display.c
index ca4623c..765a9eb 100755
--- a/target/msm8226/target_display.c
+++ b/target/msm8226/target_display.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-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
@@ -397,6 +397,9 @@
uint32_t panel_loop = 0;
uint32_t ret = 0;
uint32_t fb_addr = MIPI_FB_ADDR;
+ char cont_splash = '\0';
+
+ set_panel_cmd_string(panel_name, &cont_splash);
if (!strcmp(panel_name, NO_PANEL_CONFIG)
|| !strcmp(panel_name, SIM_VIDEO_PANEL)
@@ -420,6 +423,10 @@
}
} while (++panel_loop <= oem_panel_max_auto_detect_panels());
+ if (cont_splash == '0') {
+ dprintf(INFO, "Forcing continuous splash disable\n");
+ target_force_cont_splash_disable(true);
+ }
}
void target_display_shutdown(void)