From patchwork Sat Dec 10 00:32:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Navare, Manasi" X-Patchwork-Id: 9469147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B0762607DA for ; Sat, 10 Dec 2016 00:30:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A321E28682 for ; Sat, 10 Dec 2016 00:30:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97D462868B; Sat, 10 Dec 2016 00:30:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 597EE28682 for ; Sat, 10 Dec 2016 00:30:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C4E16EB24; Sat, 10 Dec 2016 00:30:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 558656EB27; Sat, 10 Dec 2016 00:30:10 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 09 Dec 2016 16:30:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.33,325,1477983600"; d="scan'208"; a="1070272866" Received: from manasi-otcmedia.jf.intel.com ([10.7.199.175]) by orsmga001.jf.intel.com with ESMTP; 09 Dec 2016 16:30:09 -0800 From: Manasi Navare To: intel-gfx@lists.freedesktop.org Subject: [PATCH v3 4/5] drm: Add definitions for DP compliance Video pattern tests Date: Fri, 9 Dec 2016 16:32:59 -0800 Message-Id: <1481329980-16423-5-git-send-email-manasi.d.navare@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481329980-16423-1-git-send-email-manasi.d.navare@intel.com> References: <1481329980-16423-1-git-send-email-manasi.d.navare@intel.com> Cc: Manasi Navare , Daniel Vetter , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP v2: * Add all the other DP Complianec TEST register defs (Jani Nikula) Cc: dri-devel@lists.freedesktop.org Cc: Jani Nikula Cc: Daniel Vetter Cc: Ville Syrjala Signed-off-by: Manasi Navare --- include/drm/drm_dp_helper.h | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 55bbeb0..3525d95 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -416,6 +416,64 @@ #define DP_TEST_LANE_COUNT 0x220 #define DP_TEST_PATTERN 0x221 +# define DP_NO_TEST_PATTERN (0x0) +# define DP_COLOR_RAMP (0x1) +# define DP_BLACK_AND_WHITE_VERTICAL_LINES (0x2) +# define DP_COLOR_SQUARE (0x3) + +#define DP_TEST_H_TOTAL_HI 0x222 +#define DP_TEST_H_TOTAl_LO 0x223 + +#define DP_TEST_V_TOTAL_HI 0x224 +#define DP_TEST_V_TOTAl_LO 0x225 + +#define DP_TEST_H_START_HI 0x226 +#define DP_TEST_H_START_LO 0x227 + +#define DP_TEST_V_START_HI 0x228 +#define DP_TEST_V_START_LO 0x229 + +#define DP_TEST_HSYNC_HI 0x22A +#define DP_TEST_HSYNC_LO 0x22B + +#define DP_TEST_VSYNC_HI 0x22C +#define DP_TEST_VSYNC_LO 0x22D + +#define DP_TEST_H_WIDTH_HI 0x22E +#define DP_TESt_H_WIDTH_LO 0x22F + +#define DP_TEST_V_HEIGHT_HI 0x230 +#define DP_TEST_V_HEIGHT_LO 0x231 + +#define DP_TEST_MISC_LO 0x232 +# define DP_TEST_SYNC_CLOCK_MASK (1 << 0) +# define DP_CLOCK_ASYNC (0x0) +# define DP_CLOCK_SYNC (0x1) +# define DP_TEST_COLOR_FORMAT_MASK (3 << 1) +# define DP_TEST_COLOR_FORMAT_SHIFT 1 +# define DP_COLOR_FORMAT_RGB (0x0) +# define DP_COLOR_FORMAT_YCbCr422 (0x1) +# define DP_COLOR_FORMAT_YCbCr444 (0x2) +# define DP_TEST_DYNAMIC_RANGE_MASK (1 << 3) +# define DP_TEST_DYNAMIC_RANGE_SHIFT 3 +# define DP_VESA_RANGE (0x0) +# define DP_CEA_RANGE (0x1) +# define DP_TEST_BIT_DEPTH_MASK (7 << 5) +# define DP_TEST_BIT_DEPTH_SHIFT 5 +# define DP_TEST_BIT_DEPTH_6 (0x0) +# define DP_TEST_BIT_DEPTH_8 (0x1) +# define DP_TEST_BIT_DEPTH_10 (0x2) +# define DP_TEST_BIT_DEPTH_12 (0x3) +# define DP_TEST_BIT_DEPTH_16 (0x4) +#define DP_TEST_MISC_HI 0x233 +# define DP_TEST_REFRESH_DENOMINATOR_MASK (1 << 0) +# define REFRESH_DENOMINATOR_1 (0x0) +# define REFRESH_DENOMINATOR_1_001 (0x1) +# define DP_TEST_INTERLACED_MASK (1 << 1) +# define DP_NON_INTERLACED (0x0) +# define DP_INTERLACED (0x1) + +#define DP_TEST_REFRESH_RATE_NUMERATOR 0x234 #define DP_TEST_CRC_R_CR 0x240 #define DP_TEST_CRC_G_Y 0x242