Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1957578ybl; Thu, 15 Aug 2019 04:12:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZucDR6uJ0F0iESpVEeDEySr5d3JLBgDXT9EX/1ls5XMKQj3Df04gnFFjchRPfUr5BEmCE X-Received: by 2002:aa7:9254:: with SMTP id 20mr5031568pfp.212.1565867543297; Thu, 15 Aug 2019 04:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565867543; cv=none; d=google.com; s=arc-20160816; b=rK7VnmmAkUomkxWvo2R1we+lrc20at4rV839Ng+1gU51tOsxH6C8hmmFjCREXU8Q/5 nTZ7H6CnrnE3WgpMMBbtdtBzdJkksBa+5NLY9FAluzzM6aONf11Gh+t5DBAWUXmt1PVf F5h5hl4vqNY47FB3qIbtbN/FQj6KC1xxgKQyrf+fn81qiMOiZwXQfKJBOb2+okbfqvdR Wu37Wqoyq8UexbW5xpcD3wiQQZstppnWRyhLThSwKlQtylBkoWGPI4nNA3PaMLWlHQTP lkSyGT4CJjQLAMmugW341gqFBN0AaeS6FhdIT+AJjLZVq/CegnksFdTVmvJNnXrfYuPU 2MFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=YBXCSpEEzzeMtE5oA1GTdCkMUW9Y40u++FHQ9A7+5VY=; b=nCJyDSSF2T1ePvU3nXFuNWo+Lx+L7Q8/YMmF1TKm2NZqKBJnsZDlieV8XFoRR5Y+Fe piSg3ap+HpegOAXrTqr1wdhRH5hoNfC81eNWwGrhq1mnL5vB6d3GT6xy6OX+UdSFipbL bcGQwRbUFfkL7eAqZGlJR8xn8zFDhEJTxy+aZpHeWnExYi0mCNexmZOOLlj6s0WQXiPs 9cH+LJlWju8mlVEn06z1DnZXsWCR401elmuwZfmjG4Z8tIr7S7YI81ddCgX/4H3uMGzL PJbAi1SAQ89eS2gjppOTSZBpUegW7jyQl8TqeKcQkq/Iw/FwF0UqxWYtCK1ZkCA3poji moPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z24si440281pjt.22.2019.08.15.04.12.08; Thu, 15 Aug 2019 04:12:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731569AbfHOLFM (ORCPT + 99 others); Thu, 15 Aug 2019 07:05:12 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:24976 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727814AbfHOLFL (ORCPT ); Thu, 15 Aug 2019 07:05:11 -0400 X-IronPort-AV: E=Sophos;i="5.64,388,1559487600"; d="scan'208";a="24088303" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 15 Aug 2019 20:05:09 +0900 Received: from fabrizio-dev.ree.adwin.renesas.com (unknown [10.226.36.196]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id B1BF1417763E; Thu, 15 Aug 2019 20:05:04 +0900 (JST) From: Fabrizio Castro To: Laurent Pinchart , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter Cc: Fabrizio Castro , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Simon Horman , Geert Uytterhoeven , Chris Paterson , Biju Das , linux-renesas-soc@vger.kernel.org, Kieran Bingham , Jacopo Mondi Subject: [PATCH v2 4/9] drm/timings: Add link flags Date: Thu, 15 Aug 2019 12:04:28 +0100 Message-Id: <1565867073-24746-5-git-send-email-fabrizio.castro@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1565867073-24746-1-git-send-email-fabrizio.castro@bp.renesas.com> References: <1565867073-24746-1-git-send-email-fabrizio.castro@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need more information to describe dual-LVDS links, therefore introduce link_flags. Signed-off-by: Fabrizio Castro --- v1->v2: * new patch include/drm/drm_timings.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/drm/drm_timings.h b/include/drm/drm_timings.h index 4af8814..58fbf1b 100644 --- a/include/drm/drm_timings.h +++ b/include/drm/drm_timings.h @@ -1,4 +1,6 @@ /* + * Copyright (C) 2019 Renesas Electronics Corporation + * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that copyright @@ -21,6 +23,24 @@ #ifndef __DRM_TIMINGS_H__ #define __DRM_TIMINGS_H__ +#include + +/** + * enum drm_link_flags - link_flags for &drm_timings + * + * This enum defines the details of the link. + * + * @DRM_LINK_DUAL_LVDS_ODD_EVEN: Dual-LVDS link, with odd pixels (1,3,5, + * etc.) coming through the first port, and + * even pixels (0,2,4,etc.) coming through + * the second port. If not specified for a + * dual-LVDS panel, it is assumed that even + * pixels are coming through the first port + */ +enum drm_link_flags { + DRM_LINK_DUAL_LVDS_ODD_EVEN = BIT(0), +}; + /** * struct drm_timings - timing information */ @@ -55,6 +75,12 @@ struct drm_timings { * and odd-numbered pixels are received on separate links. */ bool dual_link; + /** + * @link_flags + * + * Provides detailed information about the link. + */ + enum drm_link_flags link_flags; }; #endif /* __DRM_TIMINGS_H__ */ -- 2.7.4