From patchwork Tue Aug 28 22:06:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 1382931 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id AEB84DF283 for ; Tue, 28 Aug 2012 22:26:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 80A689E73D for ; Tue, 28 Aug 2012 15:26:35 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-yx0-f177.google.com (mail-yx0-f177.google.com [209.85.213.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 5EA969E902 for ; Tue, 28 Aug 2012 15:08:07 -0700 (PDT) Received: by mail-yx0-f177.google.com with SMTP id q9so1203648yen.36 for ; Tue, 28 Aug 2012 15:08:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=iCgja4WVd6OTVjNPYQ/0opVZFxYogrvAnK3FeY12qw8=; b=uc3nTOx0Zwxr41XMDzoM2uPqQpLa+xiyt8y/lh8b9gw4r2CFnzhsLoeSrQzsHnX4ju h3FLd/Di/KFwBhKIDDKyIAaAuDQ0NJ79P9vAeHlJJbbHOESRa3rzaBYSP5ginqy+Wyco A5LrsslSPOrNSeUlOyadeFP5sBYb6+wAhubxD85qYZHQoqZxJqikYIYghaDgKwKsIT/l HTGUaaD/XeG6GD1iWy8SR/eqr7vIESjdvWke87oRi6MhT7JhVuAUMD2RVi9lhWiJLvCi v2T7VoA0vyODowophmwi52g70Km2xbMF2ybIFmVSdY8tQT+5IcIVdlBYj26JVcsB1qEX 0ycA== Received: by 10.236.180.42 with SMTP id i30mr15308767yhm.89.1346191687307; Tue, 28 Aug 2012 15:08:07 -0700 (PDT) Received: from vicky.domain.invalid (189.114.178.236.dynamic.adsl.gvt.net.br. [189.114.178.236]) by mx.google.com with ESMTPS id z3sm4434172anj.20.2012.08.28.15.08.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Aug 2012 15:08:06 -0700 (PDT) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Tue, 28 Aug 2012 19:06:54 -0300 Message-Id: <1346191621-12996-24-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1346191621-12996-1-git-send-email-przanoni@gmail.com> References: <1346191621-12996-1-git-send-email-przanoni@gmail.com> Cc: Paulo Zanoni Subject: [Intel-gfx] [RFC 23/30] drm/i915: init DP on port B X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org From: Paulo Zanoni This is just for testing purposes. We need to properly detect if the monitor connected on the port is actually DP or HDMI. Not-signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 44bf9e6..055a1e8 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -240,6 +240,8 @@ 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, DDI_BUF_CTL(port), port); + break; case PORT_C: case PORT_D: intel_hdmi_init(dev, DDI_BUF_CTL(port), port);