msm_fb: display: Add support for HDMI as primary

Add support for using HDMI as primary. Includes changing number
of framebuffers to 2, using RGBA format, enabling HPD by default.

Change-Id: I7a01ee3cf981b08d05eed13cd0fb7a41983211b5
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c
index bde0573..e5ec4cb 100644
--- a/drivers/video/msm/msm_fb.c
+++ b/drivers/video/msm/msm_fb.c
@@ -3002,8 +3002,13 @@
 	 * at panel_info
 	 *
 	 */
-	if (type == HDMI_PANEL || type == DTV_PANEL || type == TV_PANEL)
+	if (type == HDMI_PANEL || type == DTV_PANEL || type == TV_PANEL) {
+#ifdef CONFIG_FB_MSM_HDMI_AS_PRIMARY
+		pdata->panel_info.fb_num = 2;
+#else
 		pdata->panel_info.fb_num = 1;
+#endif
+	}
 	else
 		pdata->panel_info.fb_num = MSM_FB_NUM;