From patchwork Mon Aug 18 08:21:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 4732811 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 F1666C0338 for ; Mon, 18 Aug 2014 08:21:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 149A220123 for ; Mon, 18 Aug 2014 08:21:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94AC92012E for ; Mon, 18 Aug 2014 08:21:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752014AbaHRIVk (ORCPT ); Mon, 18 Aug 2014 04:21:40 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:56015 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751725AbaHRIVh (ORCPT ); Mon, 18 Aug 2014 04:21:37 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAH00MJMTVY4D50@mailout1.samsung.com>; Mon, 18 Aug 2014 17:21:34 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 90.89.25328.E87B1F35; Mon, 18 Aug 2014 17:21:34 +0900 (KST) X-AuditID: cbfee68d-b7f2f6d0000062f0-2f-53f1b78ed9cd Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 38.81.04943.E87B1F35; Mon, 18 Aug 2014 17:21:34 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.252.83.67]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NAH003BITVX8V40@mmp2.samsung.com>; Mon, 18 Aug 2014 17:21:33 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, 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, a.hajda@samsung.com, kgene.kim@samsung.com, Inki Dae Subject: [PATCH 2/5] drm/exynos: fimd: add Exynos3 SoC support Date: Mon, 18 Aug 2014 17:21:30 +0900 Message-id: <1408350093-26220-3-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1408350093-26220-1-git-send-email-inki.dae@samsung.com> References: <1408350093-26220-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRmVeSWpSXmKPExsWyRsSkWLdv+8dgg+fHBS1urTvHatF77iST xfwjQNaVr+/ZLPrfLGS1OPdqJaPFpPsTWCx6F1xls5hxfh+TxdLrF5ksJkxfy2LRuvcIuwOP x5p5axg9Lvf1MnmsXP6FzWPTqk42j+3fHrB63O8+zuTRt2UVo8fnTXIBHFFcNimpOZllqUX6 dglcGRs6ZzEXLOavuLFuNksD41eeLkZODgkBE4ltL88wQdhiEhfurWfrYuTiEBJYyigx5+gm oAQHWNGi2yoQ8emMEqv+7WeBcLqZJNo2zGQE6WYTUJWYuOI+G4gtIqAs8XfiKkaQImaBmUwS W5fMB0sIC9hJPDp9DayBBahh9sWfYHFeAReJQzt/sUJsU5CYM8kGJMwp4Cpx5sUmVhBbCKik d/YjsMUSApfYJb5t7IeaIyDxbfIhFoheWYlNB5ghvpGUOLjiBssERuEFjAyrGEV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dUA2NXEM9n i+1vmZdnlgRyfC9SOJzLsIerLzz24py1J3q4c4ocutNb2xmtpNof9svKfH3XnJcdMe/mMTN1 y6u8Lba91Yp7K69Ov7jiUPCT+oWPPv27aOrzbEv7vIKmhwbpMw+7NfCk66fnGHEeuPE6IfF4 yvnvsWuUGTTv+mX96qyfeVnNev91IyWW4oxEQy3mouJEAOhyMWDgAgAA 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.6 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 Signed-off-by: Inki Dae Reviewed-by: Andrzej Hajda --- .../devicetree/bindings/video/samsung-fimd.txt | 1 + drivers/gpu/drm/exynos/exynos_drm_fimd.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/video/samsung-fimd.txt b/Documentation/devicetree/bindings/video/samsung-fimd.txt index ecc899b..4e6c77c 100644 --- a/Documentation/devicetree/bindings/video/samsung-fimd.txt +++ b/Documentation/devicetree/bindings/video/samsung-fimd.txt @@ -9,6 +9,7 @@ Required properties: "samsung,s3c2443-fimd"; /* for S3C24XX SoCs */ "samsung,s3c6400-fimd"; /* for S3C64XX SoCs */ "samsung,s5pv210-fimd"; /* for S5PV210 SoC */ + "samsung,exynos3250-fimd"; /* for Exynos3250/3472 SoCs */ "samsung,exynos4210-fimd"; /* for Exynos4 SoCs */ "samsung,exynos5250-fimd"; /* for Exynos5 SoCs */ diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 5d09e33..909e647 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -104,6 +104,14 @@ static struct fimd_driver_data s3c64xx_fimd_driver_data = { .has_limited_fmt = 1, }; +static struct fimd_driver_data exynos3_fimd_driver_data = { + .timing_base = 0x20000, + .lcdblk_offset = 0x210, + .lcdblk_bypass_shift = 1, + .has_shadowcon = 1, + .has_vidoutcon = 1, +}; + static struct fimd_driver_data exynos4_fimd_driver_data = { .timing_base = 0x0, .lcdblk_offset = 0x210, @@ -168,6 +176,8 @@ struct fimd_context { static const struct of_device_id fimd_driver_dt_match[] = { { .compatible = "samsung,s3c6400-fimd", .data = &s3c64xx_fimd_driver_data }, + { .compatible = "samsung,exynos3250-fimd", + .data = &exynos3_fimd_driver_data }, { .compatible = "samsung,exynos4210-fimd", .data = &exynos4_fimd_driver_data }, { .compatible = "samsung,exynos5250-fimd",