From patchwork Mon Jul 14 19:10:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Previte X-Patchwork-Id: 4548721 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9606C9F295 for ; Mon, 14 Jul 2014 19:11:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DEF2720158 for ; Mon, 14 Jul 2014 19:11:30 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D34742011E for ; Mon, 14 Jul 2014 19:11:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 61D8C6E467; Mon, 14 Jul 2014 12:11:29 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by gabe.freedesktop.org (Postfix) with ESMTP id E9F986E46D for ; Mon, 14 Jul 2014 12:11:27 -0700 (PDT) Received: by mail-pa0-f43.google.com with SMTP id lf10so5495165pab.30 for ; Mon, 14 Jul 2014 12:11:27 -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:in-reply-to:references; bh=B0DuujqIvVZdLsBfvhyqtj3yA3zbBNSGMkyVWItBpbQ=; b=o6NCwQemyUJXdz3zr4pwMUhkM05QdZaXEaezaCpZRrYn79nye9E/gHC5vkdm4RfJd7 K0mgbPxR0zTraV0oi2RbGRmf0qyWAtj2ETvc+wPQb/YqA6IqBLPBp24ontWT7sYjbzNP uARtuq+lqxVSZSYmI1aT8lMaWxYVsrfA6FqC+TI3vCqLLz2tGDptdKYgR2MPO1r8lnNp kY1eQ44q9jtZJ6TTNMNFBbegoM1OR85K7lgtgBlSmzMckCXBDEvERcrlu/uBTBVkWU0m wjZ8/azQFQXhlC/rHLRVPnm2yr9h96UChMVfFIwijocbAHp2ltwNeRxztb/BeLNf92DD C1WQ== X-Received: by 10.66.193.5 with SMTP id hk5mr279570pac.146.1405365087693; Mon, 14 Jul 2014 12:11:27 -0700 (PDT) Received: from localhost.localdomain (ip72-201-95-47.ph.ph.cox.net. [72.201.95.47]) by mx.google.com with ESMTPSA id z5sm8049888pbt.81.2014.07.14.12.11.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Jul 2014 12:11:26 -0700 (PDT) From: Todd Previte To: intel-gfx@lists.freedesktop.org Date: Mon, 14 Jul 2014 12:10:41 -0700 Message-Id: <1405365047-6866-7-git-send-email-tprevite@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405365047-6866-1-git-send-email-tprevite@gmail.com> References: <1405365047-6866-1-git-send-email-tprevite@gmail.com> Subject: [Intel-gfx] [PATCH 06/12] drm/i915: Add a constant and function for getting the Displayport compliance failsafe video mode X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds the failsafe mode (640x480@60hz) as a constant and a function that retrieves it. These are designed for use in Displayport compliance testing only and should not be used outside that context. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/intel_dp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 6c8f222..33b6dc9 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -82,6 +82,18 @@ static const struct dp_link_dpll chv_dpll[] = { { .p1 = 2, .p2 = 1, .n = 1, .m1 = 2, .m2 = 0x6c00000 } } }; +/* VESA 640x480@60Hz - DP compliance failsafe mode */ +static struct drm_display_mode dp_failsafe_mode = { + DRM_MODE("640x480", DRM_MODE_TYPE_DRIVER, 25200, 640, 664, 752, + 800, 0, 480, 490, 492, 525, 0, + DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC) +}; + +struct drm_display_mode *intel_dp_get_failsafe_mode(void) +{ + return &dp_failsafe_mode; +} + /** * is_edp - is the given port attached to an eDP panel (either CPU or PCH) * @intel_dp: DP struct