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/msm8909/target_display.c b/target/msm8909/target_display.c
index c7c8c2d..a642da7 100755
--- a/target/msm8909/target_display.c
+++ b/target/msm8909/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
@@ -231,6 +231,9 @@
 {
 	uint32_t panel_loop = 0;
 	uint32_t ret = 0;
+	char cont_splash = '\0';
+
+	set_panel_cmd_string(panel_name, &cont_splash);
 
 	if (!strcmp(panel_name, NO_PANEL_CONFIG)) {
 		dprintf(INFO, "Skip panel configuration\n");
@@ -247,6 +250,11 @@
 			msm_display_off();
 		}
 	} 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)