[Intel-gfx] [PATCH 06/21] drm/i915: Hook DP init in ddi module

Eugeni Dodonov eugeni.dodonov at intel.com
Thu Jun 28 20:55:34 CEST 2012


From: Shobhit Kumar <shobhit.kumar at intel.com>

TBD: As of now just initializes DP connectors. Later we need to detect the
actual output connected on the port(HDMI or DP) using AUX channel detection and
appropriately call the initialization routines

v2: Init DP connector on DDIB and DDID, and HDMI on DDIC.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
Signed-off-by: Shobhit Kumar <shobhit.kumar at intel.com>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
---
 drivers/gpu/drm/i915/intel_ddi.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index f08ce6c..effb263 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -239,10 +239,14 @@ void intel_ddi_init(struct drm_device *dev, enum port port)
 		break;
 	/* Assume that the  ports B, C and D are working in HDMI mode for now */
 	case PORT_B:
+		intel_dp_init(dev, PCH_DP_B);
+		break;
 	case PORT_C:
-	case PORT_D:
 		intel_hdmi_init(dev, DDI_BUF_CTL(port));
 		break;
+	case PORT_D:
+		intel_dp_init(dev, PCH_DP_D);
+		break;
 	default:
 		DRM_DEBUG_DRIVER("No handlers defined for port %d, skipping DDI initialization\n",
 				port);
-- 
1.7.11.1




More information about the Intel-gfx mailing list