From patchwork Sun Apr 27 01:50:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YoungJun Cho X-Patchwork-Id: 4069981 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 5E0F1BFF02 for ; Sun, 27 Apr 2014 01:50:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C41B2021A for ; Sun, 27 Apr 2014 01:50:36 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BD3A52024F for ; Sun, 27 Apr 2014 01:50:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09EC86E464; Sat, 26 Apr 2014 18:50:24 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id B19226E446 for ; Sat, 26 Apr 2014 18:50:18 -0700 (PDT) Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4O00FCY2FSC370@mailout4.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 epcpsbgr5.samsung.com (EPCPMTA) with SMTP id BB.D7.11496.8526C535; Sun, 27 Apr 2014 10:50:16 +0900 (KST) X-AuditID: cbfee691-b7f3e6d000002ce8-1a-535c62588a0e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 13.53.25708.8526C535; 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 08/16] drm/exynos: fimd: support I80 interface Date: Sun, 27 Apr 2014 10:50:04 +0900 Message-id: <1398563412-21781-9-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+t8zLd2IpJhggxOzZCxurTvHatF77iST xfwjQNaVr+/ZLPrfLGS1OPdqJaPFpPsTWCxe3LvIYtG74CqbxdmmN+wWnROXsFvMOL+PyWLp 9YtMFhOmr2WxaN17BCg2+SWbxc9d81gcBD3WzFvD6HG5r5fJY+esu+weK5d/YfOY3TGT1WPT qk42j+3fHrB63O8+zuTRt2UVo8fnTXIBXFFcNimpOZllqUX6dglcGY0f3rMWPKiuWL3xC3MD 44OULkYODgkBE4kpzVVdjJxAppjEhXvr2UBsIYFljBKdW8Ig4iYSs25+Yuxi5AKKL2KUePr1 GjuE08ok0daymgWkik1AU+L5xx2sILaIgKlEx6SlLCBFzAKdzBJf7s9lAkkIC7hKzDv6DayB RUBV4szhPewgNq+Ai8SCnYvZIS5SkJgzyQYkzAlUfnrJWmaIi1wk7h/8ywoyU0Kgk0Pi2PEJ jBBzBCS+TT7EAtErK7HpADPE1ZISB1fcYJnAKLyAkWEVo2hqQXJBcVJ6kalecWJucWleul5y f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OlBIID2xJDU7NbUgtQhmCxMHp1QDo+RCzQm3TVwcvrFO1dkeU/hUncmD JcfGX3DJ3nwRZ9uz6zlXnS6QOC/+Z+b79xMqWh/8YymaerLM48U2cWmb35P71Evkax+bZPU2 Fxrc2Zb7R1XcUmkBy4yGkz4ajD17f196/ruy2GDVStdpsUkrE+u+5xvq5BfPm1Kyy2byv+5v d7tSdhsKKbEUZyQaajEXFScCAHVZTeQyAwAA 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, FIMD should do followings: - Sets LCD block configuration for I80 interface. - Uses "lcd_sys" as an IRQ resource and sets relevant IRQ configuration. - Implements trigger feature which transfers image date if there is page flip request, and implements TE handler to call trigger function. - Sets CPU mode timings configuration. - Sets ideal(pixel) clock is 2 times faster than the original one to generate frame done IRQ prior to the next TE signal. Signed-off-by: YoungJun Cho Acked-by: Inki Dae Acked-by: Kyungmin Park --- drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_fimd.c | 280 +++++++++++++++++++++++++----- include/video/samsung_fimd.h | 3 +- 3 files changed, 240 insertions(+), 44 deletions(-) diff --git a/drivers/gpu/drm/exynos/Kconfig b/drivers/gpu/drm/exynos/Kconfig index 5bf5bca..f4d34f0 100644 --- a/drivers/gpu/drm/exynos/Kconfig +++ b/drivers/gpu/drm/exynos/Kconfig @@ -28,6 +28,7 @@ config DRM_EXYNOS_FIMD bool "Exynos DRM FIMD" depends on DRM_EXYNOS && !FB_S3C && !ARCH_MULTIPLATFORM select FB_MODE_HELPERS + select MFD_SYSCON help Choose this option if you want to use Exynos FIMD for DRM. diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 40fd6cc..9015cf52 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -19,11 +19,14 @@ #include #include #include +#include +#include #include