From patchwork Wed May 1 19:02:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2508771 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 0F476DF230 for ; Wed, 1 May 2013 19:07:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F1ED0E629A for ; Wed, 1 May 2013 12:07:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ea0-f174.google.com (mail-ea0-f174.google.com [209.85.215.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 82E14E62AF for ; Wed, 1 May 2013 12:02:46 -0700 (PDT) Received: by mail-ea0-f174.google.com with SMTP id g14so757072eak.5 for ; Wed, 01 May 2013 12:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=VzkVDtS/ODI4TCKN5S4Pu3iOPCB8dU5U63VD5VeEORI=; b=ihJGoAa+XAPWTcTueK8i1x3Vv3X640F5MLO86U/IUC4UaOEeVaKYRnL/uVsUIZQpK2 zmdYIL5ePuZBzV5E3v1Zcsa2qZboomIUNohvjk57o1skuO2AQcq+kTGVwgVOgOcR0Yme CIybVGWNs/gYCrUFkehgTL/haq+axQEwxT7sPXnbJVOMIouaX20/tppArYAXQQy4u1Tf Mv1O3IcnsO/yD+DUvawOrJGqxWc4CLK2qh7M0X3wOCHfnl/m4QVPjtqF4+DJ7UvKZxas 7jm5OC1+/r9VA8M2qiMDmE+GeLYKILPCYE6HFpuuPoAUyar32OtOUnkUaPpjdsmNLMqA 0MzQ== X-Received: by 10.14.182.72 with SMTP id n48mr11563478eem.3.1367434965738; Wed, 01 May 2013 12:02:45 -0700 (PDT) Received: from flatron.tomeq (87-207-52-162.dynamic.chello.pl. [87.207.52.162]) by mx.google.com with ESMTPSA id cb50sm5126987eeb.14.2013.05.01.12.02.43 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 May 2013 12:02:44 -0700 (PDT) From: Tomasz Figa To: dri-devel@lists.freedesktop.org Subject: [PATCH 4/4] drm/exynos: fimd: Add support for S3C64xx SoCs Date: Wed, 1 May 2013 21:02:29 +0200 Message-Id: <1367434949-14838-5-git-send-email-tomasz.figa@gmail.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1367434949-14838-1-git-send-email-tomasz.figa@gmail.com> References: <1367434949-14838-1-git-send-email-tomasz.figa@gmail.com> Cc: linux-samsung-soc@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org The FIMD block present on S3C6400/S3C6410 SoCs is compatible with this driver, so it can be supported by it as well. This patch adds appropriate device IDs and driver data to enable this driver for S3C64xx SoCs. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index a2e385d..a1669d4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -68,6 +68,11 @@ struct fimd_driver_data { unsigned int has_clksel:1; }; +static struct fimd_driver_data s3c64xx_fimd_driver_data = { + .timing_base = 0x0, + .has_clksel = 1, +}; + static struct fimd_driver_data exynos4_fimd_driver_data = { .timing_base = 0x0, .has_shadowcon = 1, @@ -117,6 +122,8 @@ struct fimd_context { #ifdef CONFIG_OF static const struct of_device_id fimd_driver_dt_match[] = { + { .compatible = "samsung,s3c6400-fimd", + .data = &s3c64xx_fimd_driver_data }, { .compatible = "samsung,exynos4210-fimd", .data = &exynos4_fimd_driver_data }, { .compatible = "samsung,exynos5250-fimd", @@ -1108,6 +1115,9 @@ static int fimd_runtime_resume(struct device *dev) static struct platform_device_id fimd_driver_ids[] = { { + .name = "s3c64xx-fb", + .driver_data = (unsigned long)&s3c64xx_fimd_driver_data, + }, { .name = "exynos4-fb", .driver_data = (unsigned long)&exynos4_fimd_driver_data, }, {