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/msm8974/target_display.c b/target/msm8974/target_display.c
index 289675c..4f17620 100755
--- a/target/msm8974/target_display.c
+++ b/target/msm8974/target_display.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-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
@@ -413,10 +413,12 @@
 	uint32_t hw_id = board_hardware_id();
 	uint32_t panel_loop = 0;
 	int ret = 0;
+	char cont_splash = '\0';
 
 	if (target_hw_interposer())
 		return;
 
+	set_panel_cmd_string(panel_name, &cont_splash);
 	panel_name += strspn(panel_name, " ");
 
 	if (!strcmp(panel_name, NO_PANEL_CONFIG)
@@ -431,6 +433,7 @@
 		dprintf(INFO, "%s: HDMI is primary\n", __func__);
 		return;
 	}
+
 	switch (hw_id) {
 	case HW_PLATFORM_LIQUID:
 		edp_panel_init(&(panel.panel_info));
@@ -461,6 +464,11 @@
 		} while (++panel_loop <= (uint32_t)oem_panel_max_auto_detect_panels());
 		break;
 	}
+
+	if (cont_splash == '0') {
+		dprintf(INFO, "Forcing continuous splash disable\n");
+		target_force_cont_splash_disable(true);
+	}
 }
 
 void target_display_shutdown(void)