From patchwork Mon Jun 2 05:22:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YoungJun Cho X-Patchwork-Id: 4279931 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 8A13ABEEA7 for ; Mon, 2 Jun 2014 05:23:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 45A3C203AE for ; Mon, 2 Jun 2014 05:23:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 42522203B4 for ; Mon, 2 Jun 2014 05:23:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbaFBFXN (ORCPT ); Mon, 2 Jun 2014 01:23:13 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:10290 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751826AbaFBFXE (ORCPT ); Mon, 2 Jun 2014 01:23:04 -0400 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 <0N6J001L90A7JPA0@mailout4.samsung.com>; Mon, 02 Jun 2014 14:22:55 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.44]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id A7.18.16580.E2A0C835; Mon, 02 Jun 2014 14:22:55 +0900 (KST) X-AuditID: cbfee691-b7f2f6d0000040c4-c6-538c0a2e1d04 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A7.79.08203.E2A0C835; Mon, 02 Jun 2014 14:22:54 +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 <0N6J00KWX0A3O8D0@mmp2.samsung.com>; Mon, 02 Jun 2014 14:22:54 +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 v3 07/15] drm/exynos: fimd: support LCD I80 interface Date: Mon, 02 Jun 2014 14:22:43 +0900 Message-id: <1401686571-22148-8-git-send-email-yj44.cho@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1401686571-22148-1-git-send-email-yj44.cho@samsung.com> References: <1401686571-22148-1-git-send-email-yj44.cho@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRmVeSWpSXmKPExsVy+t8zHV19rp5gg2dvGC1urTvHatF77iST xfwjQNaVr+/ZLPrfLGS1OPdqJaPFpPsTWCxe3LvIYtG74CqbxdmmN+wWM87vY7JYev0ik8WE 6WtZLFr3HgGKTX7JZvFz1zwWBwGPNfPWMHpc7utl8tg56y67x8rlX9g8Nq3qZPPY/u0Bq8f9 7uNMHn1bVjF6fN4kF8AZxWWTkpqTWZZapG+XwJXxf0MXU8Hx2ooNvw6yNTAuTOti5OSQEDCR uLTwKiOELSZx4d56ti5GLg4hgWWMElsaZ7LDFK06vJ0JIjGdUaJp13RmkISQQCuTxOmVTiA2 m4CmxPOPO1hBbBEBU4mOSUtZQBqYBZ4wSZzavJ8FJCEs4Cpx7toFsGY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ExqB+PKBotDjAIcjEo8vBMWdAULsSaWFVfmHmKU4GBWEuE9 erY7WIg3JbGyKrUoP76oNCe1+BBjMtBRE5mlRJPzgSkmryTe0NjEzMjSyMzYxNzYmDRhJXHe A63WgUIC6YklqdmpqQWpRTBbmDg4pRoYa1nfXhH8Yrvsa2158JKkS/tv6Lp9teLe7czBKM7x zDAn2YbN1WbP2wP8b/vuuD/a+ozBU+fiMnuNgqN+z+TmsHTbLwpZb10ve/vYnZUvUgwK4s/n 7z58dh1zyf6jCjJvhbR/vattrc+6/qfH1Pbgc9GXdlFbm3W/Xp1lM4tjld+1xIf3Xy3SVGIp zkg01GIuKk4EABeHfBwnAwAA 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=-7.5 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 To support MIPI command mode based I80 interface panel, FIMD should do followings: - Sets LCD I80 interface timings configuration. - Uses "lcd_sys" as an IRQ resource and sets relevant IRQ configuration. - Sets LCD block configuration for I80 interface. - Sets ideal(pixel) clock is 2 times faster than the original one to generate frame done IRQ prior to the next TE signal. - Implements trigger feature that transfers image data if there is page flip request, and implements TE handler to call trigger function. 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 | 287 +++++++++++++++++++++++++----- include/video/samsung_fimd.h | 3 +- 3 files changed, 247 insertions(+), 44 deletions(-) diff --git a/drivers/gpu/drm/exynos/Kconfig b/drivers/gpu/drm/exynos/Kconfig index 178d2a9..9ba1aae 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 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 2ec634f..f317fca 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include