target: msm8974: Add support for 8994 interposer

Add support for 8994 interposer board, this needs disabling display
usb3 support and detect the new subtype for interposer board.

CRs-Fixed: 663154
Change-Id: Ia52243ddcc78df63da5a8da71df3de5546970fef
diff --git a/include/target.h b/include/target.h
index 34798c6..3986a97 100644
--- a/include/target.h
+++ b/include/target.h
@@ -72,5 +72,6 @@
 void target_usb_phy_mux_configure(void);
 target_usb_iface_t * target_usb30_init();
 bool target_is_cdp_qvga();
+uint32_t target_hw_interposer();
 
 #endif
diff --git a/target/msm8974/init.c b/target/msm8974/init.c
index b3ee411..59f7ffd 100644
--- a/target/msm8974/init.c
+++ b/target/msm8974/init.c
@@ -51,6 +51,8 @@
 #include <platform/gpio.h>
 #include <stdlib.h>
 
+#define HW_PLATFORM_8994_INTERPOSER    0x3
+
 extern  bool target_use_signed_kernel(void);
 static void set_sdc_power_ctrl();
 
@@ -102,6 +104,11 @@
 #endif
 }
 
+uint32_t target_hw_interposer()
+{
+	return board_hardware_subtype() == HW_PLATFORM_8994_INTERPOSER ? 1 : 0;
+}
+
 /* Return 1 if vol_up pressed */
 static int target_volume_up()
 {
@@ -431,6 +438,7 @@
 	switch(platform_subtype) {
 	case HW_PLATFORM_SUBTYPE_UNKNOWN:
 	case HW_PLATFORM_SUBTYPE_8974PRO_PM8084:
+	case HW_PLATFORM_8994_INTERPOSER:
 		break;
 	default:
 		dprintf(CRITICAL, "Platform Subtype : %u is not supported\n",platform_subtype);
@@ -781,7 +789,7 @@
 		case MSM8974AB:
 		case MSM8974AC:
 			/* exceptions based on hardware id */
-			if (board_hardware_id() != HW_PLATFORM_DRAGON)
+			if (board_hardware_id() != HW_PLATFORM_DRAGON && !target_hw_interposer())
 				return "dwc";
 		/* fall through to default "ci" for anything that did'nt select "dwc" */
 		default:
diff --git a/target/msm8974/target_display.c b/target/msm8974/target_display.c
index 57973bb..e399e03 100755
--- a/target/msm8974/target_display.c
+++ b/target/msm8974/target_display.c
@@ -394,6 +394,9 @@
 	uint32_t panel_loop = 0;
 	uint32_t ret = 0;
 
+	if (target_hw_interposer())
+		return;
+
 	panel_name += strspn(panel_name, " ");
 
 	if (!strcmp(panel_name, HDMI_PANEL_NAME)) {