From patchwork Thu Aug 15 11:04:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 11095541 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A19E1399 for ; Thu, 15 Aug 2019 11:05:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 895D7288BE for ; Thu, 15 Aug 2019 11:05:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D073288BF; Thu, 15 Aug 2019 11:05:12 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 281BF288C3 for ; Thu, 15 Aug 2019 11:05:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731563AbfHOLFL (ORCPT ); Thu, 15 Aug 2019 07:05:11 -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-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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__ */