From patchwork Tue Jul 22 10:49:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YoungJun Cho X-Patchwork-Id: 4600661 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 B0641C0514 for ; Tue, 22 Jul 2014 10:49:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7937200E9 for ; Tue, 22 Jul 2014 10:49:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BBDB020158 for ; Tue, 22 Jul 2014 10:49:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753529AbaGVKtu (ORCPT ); Tue, 22 Jul 2014 06:49:50 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:65304 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753524AbaGVKtt (ORCPT ); Tue, 22 Jul 2014 06:49:49 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N9400J1X0QZZ280@mailout4.samsung.com>; Tue, 22 Jul 2014 19:49:47 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.43]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 65.6B.19452.BC14EC35; Tue, 22 Jul 2014 19:49:47 +0900 (KST) X-AuditID: cbfee68e-b7fb96d000004bfc-27-53ce41cb7024 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 19.01.05196.BC14EC35; Tue, 22 Jul 2014 19:49:47 +0900 (KST) Received: from localhost.localdomain ([10.252.75.90]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N94007S10QWL220@mmp2.samsung.com>; Tue, 22 Jul 2014 19:49:47 +0900 (KST) From: YoungJun Cho To: airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-samsung-soc@vger.kernel.org, thierry.reding@gmail.com, kyungmin.park@samsung.com, inki.dae@samsung.com, kgene.kim@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, a.hajda@samsung.com Subject: [PATCH v6 05/14] drm/exynos: dsi: add TE interrupt handler to support LCD I80 interface Date: Tue, 22 Jul 2014 19:49:44 +0900 Message-id: <1406026184-29185-1-git-send-email-yj44.cho@samsung.com> X-Mailer: git-send-email 1.9.0 In-reply-to: <53CE3C45.9010509@samsung.com> References: <53CE3C45.9010509@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRmVeSWpSXmKPExsVy+t8zbd3TjueCDXZdVrG4te4cq0XvuZNM FvOPAFlXvr5ns+h/s5DV4tyrlYwWk+5PYLF4ce8ii0XvgqtsFmeb3rBbzDi/j8li6fWLTBYT pq9lsWjdewQoNvklm8XPXfNYHAQ81sxbw+hxua+XyWPnrLvsHiuXf2Hz2LSqk81j+7cHrB73 u48zefRtWcXo8XmTXABnFJdNSmpOZllqkb5dAldGY8Nt9oKLGhU/l/exNDDuU+xi5OSQEDCR mD3vADOELSZx4d56ti5GLg4hgWWMEuvnbWeHKWq9uIgZIjGdUWLlrhVQTiuTxOVb19hAqtgE NCWef9zBCmKLCJhKdExaygJSxCzwhEni1Ob9LCAJYYEkibk/IcayCKhKvH67A2w3r4CLxPMP zWwQ6+QkpvxeAFTDwcEpo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HBrCTC 274HKMSbklhZlVqUH19UmpNafIjRFOimicxSosn5wBSTVxJvaGxiZmRpZGZsYm5srCTOe7DV OlBIID2xJDU7NbUgtQimj4mDU6qBMUdbzlxdbr5AnsMUyxmNmSXavSczD921lpK/G9sYusmc g0FJx+hYxOSsmWrPA+aFdUmwTrzSslpkoSfv5cKJE5SiTz76YCimdeiT5KO155cuv7b7UE/A GoVv79Ku3l6ZY2Ty+vizvW3/HZcaHjEOjQvpYPpt4cBy25qnONOsu/f9pazb7tf0lViKMxIN tZiLihMBIpSUyfkCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This is a temporary solution and should be made by more generic way. To support LCD I80 interface, the DSI host should register TE interrupt handler from the TE GPIO of attached panel. So the panel generates a tearing effect synchronization signal then the DSI host calls the CRTC device manager to trigger to transfer video image. Signed-off-by: YoungJun Cho Acked-by: Inki Dae Acked-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 97 ++++++++++++++++++++++++++++++++- 1 file changed, 95 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 58bfb2a..3adad44 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -16,7 +16,9 @@ #include #include +#include #include +#include #include #include #include @@ -24,6 +26,7 @@ #include