From patchwork Sun Apr 27 01:50:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YoungJun Cho X-Patchwork-Id: 4069941 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AC6D6BFF02 for ; Sun, 27 Apr 2014 01:50:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E682020222 for ; Sun, 27 Apr 2014 01:50:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 18C012024D for ; Sun, 27 Apr 2014 01:50:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BA2D16E457; Sat, 26 Apr 2014 18:50:22 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id A2B9A6E3D4 for ; Sat, 26 Apr 2014 18:50:17 -0700 (PDT) Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4O008N42FSE510@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Sun, 27 Apr 2014 10:50:16 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.42]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 98.A5.14563.8526C535; Sun, 27 Apr 2014 10:50:16 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-2a-535c6258a2e3 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F1.53.25708.7526C535; Sun, 27 Apr 2014 10:50:16 +0900 (KST) Received: from localhost.localdomain ([10.252.75.90]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4O008HN2FOD450@mmp1.samsung.com>; Sun, 27 Apr 2014 10:50:15 +0900 (KST) From: YoungJun Cho To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [RFC v3 PATCH 05/16] drm/panel: add CPU mode timings structure Date: Sun, 27 Apr 2014 10:50:01 +0900 Message-id: <1398563412-21781-6-git-send-email-yj44.cho@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1398563412-21781-1-git-send-email-yj44.cho@samsung.com> References: <1398563412-21781-1-git-send-email-yj44.cho@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zLd2IpJhgg49POS1urTvHatF77iST xfwjQNaVr+/ZLPrfLGS1OPdqJaPFpPsTWCxe3LvIYtG74CqbxdmmN+wWnROXsFvMOL+PyWLp 9YtMFhOmr2WxaN17BCg2+SWbxc9d81gcBD3WzFvD6HG5r5fJY+esu+weK5d/YfOY3TGT1WPT qk42j+3fHrB63O8+zuTRt2UVo8fnTXIBXFFcNimpOZllqUX6dglcGfv3xRTs56740D+dpYFx K2cXIweHhICJxIElTF2MnECmmMSFe+vZuhi5OIQEljFK/Fo2kxEiYSKxYfE8VojEIkaJlee7 oZxWJom2ltUsIFVsApoSzz/uYAWxRQRMJTomLWUBKWIW6GSW+HJ/LtgOYQF3ibd7loMVsQio Svw89ogZxOYVcJG4te0PC8RJChJzJtmAhDkFXCVOL1kLViIEVHL/4F+wxRICnRwS93b9YYGY IyDxbfIhqF5ZiU0HmCGulpQ4uOIGywRG4QWMDKsYRVMLkguKk9KLjPSKE3OLS/PS9ZLzczcx QmKvbwfjz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YwcXBKNTBaXn7IvkK0VD5qp/HtO7ukbn1PeLWg 49Q39QtcJ7g/1ob31fy7ar5zz37OO8tYeIPNtW2u3AotmDjBel5Y9MKtSmvXL3bf29HifYZf 7QBf0ew3666e/FXy4IbFG+nmKGWupdc5vYsTN6cebdzJtv34yr68qQ/ypm57uWlWrlxhxvyZ r9evW7ckT4mlOCPRUIu5qDgRAKGPN4wxAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, sw0312.kim@samsung.com, a.hajda@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org, laurent.pinchart@ideasonboard.com, galak@codeaurora.org, kgene.kim@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, 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 To support MIPI DSI command mode interface, the display controller requires the CPU mode timings which is the panel specific data. Signed-off-by: YoungJun Cho Acked-by: Inki Dae Acked-by: Kyungmin Park --- include/drm/drm_panel.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index c2ab77a..67e6871 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -46,6 +46,24 @@ struct drm_panel { struct list_head list; }; +/** + * struct drm_panel_cpu_mode_timings - describe cpu mode timing settings + * @cs_setup: clock cycles for the active period of address signal is enabled + * until chip select is enabled in CPU mode interface + * @wr_setup: clock cycles for the active period of CS signal is enabled until + * write signal is enabled in CPU mode interface + * @wr_actve: clock cycles for the active period of CS is enabled in CPU mode + * interface + * @wr_hold: clock cycles for the active period of CS is disabled until write + * signal is disabled in CPU mode interface + */ +struct drm_panel_cpu_mode_timings { + unsigned int cs_setup; + unsigned int wr_setup; + unsigned int wr_active; + unsigned int wr_hold; +}; + static inline int drm_panel_disable(struct drm_panel *panel) { if (panel && panel->funcs && panel->funcs->disable)