From patchwork Wed Feb 6 05:29:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2102341 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 142C13FCFC for ; Wed, 6 Feb 2013 07:17:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B9C9E640C for ; Tue, 5 Feb 2013 23:17:03 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 25D08E5F35 for ; Tue, 5 Feb 2013 21:39:15 -0800 (PST) Received: by mail-pa0-f43.google.com with SMTP id bh2so598555pad.30 for ; Tue, 05 Feb 2013 21:39:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=U014n1gEvamc2S6rTOpnL0XLmHy0UB2qIWilUiPBq1o=; b=Kw3JTbKBSER73Mr7suYk87rUJJw5r/8WsTDcWFaFV3bNPLwvQDfwxrCrooI2cWDzhN RHOK5ohBTaU8qLT1xjxRVf9jZvTOHF3M6u4THAR7iUqtROxyLuWN3xEwlE/VQHiKmlXo 3n3qmn3nCaV34vUUfvKWGRy+dwLpWCXSaXJSusHQd5EsDZz5qz7Bcq1YEdevGfcymSzB WYJmUw3I4gtFZ6FICujC5Kptm4GOLpioIFEaynmZut11h2WU9EX1+rqy2jj0ARC4HV9/ g27O9oeI4o7JcmLK2tUpHgEe/zGLFK/Z1OcpAdFhGqrXcn4meMOEGI4eLjePirCUs93I uaJA== X-Received: by 10.66.82.67 with SMTP id g3mr71536557pay.58.1360129154803; Tue, 05 Feb 2013 21:39:14 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id t7sm31361696pax.17.2013.02.05.21.39.10 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 Feb 2013 21:39:14 -0800 (PST) From: Sachin Kamat To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH v2 2/2] drm/exynos: Add device tree based discovery support for G2D Date: Wed, 6 Feb 2013 10:59:44 +0530 Message-Id: <1360128584-23167-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1360128584-23167-1-git-send-email-sachin.kamat@linaro.org> References: <1360128584-23167-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkvv0+n+8c190cIlV1N2nRBpKmvmlKjX/N5+lTx45LE//lfaUiZrBhX4sY/yyqZ9haXuz58 X-Mailman-Approved-At: Tue, 05 Feb 2013 22:55:37 -0800 Cc: kgene.kim@samsung.com, patches@linaro.org, sachin.kamat@linaro.org, s.nawrocki@samsung.com 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 From: Ajay Kumar This patch adds device tree match table for Exynos G2D controller. Signed-off-by: Ajay Kumar Signed-off-by: Sachin Kamat --- Patch based on exynos-drm-fixes branch of Inki Dae's tree: git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git Changes since v1: Modified the compatible string as per the discussions at [1]. [1] https://patchwork1.kernel.org/patch/2045821/ --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index ddcfb5d..0fcfbe4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -1240,6 +1241,14 @@ static int g2d_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(g2d_pm_ops, g2d_suspend, g2d_resume); +#ifdef CONFIG_OF +static const struct of_device_id exynos_g2d_match[] = { + { .compatible = "samsung,exynos5250-g2d" }, + {}, +}; +MODULE_DEVICE_TABLE(of, exynos_g2d_match); +#endif + struct platform_driver g2d_driver = { .probe = g2d_probe, .remove = g2d_remove, @@ -1247,5 +1256,6 @@ struct platform_driver g2d_driver = { .name = "s5p-g2d", .owner = THIS_MODULE, .pm = &g2d_pm_ops, + .of_match_table = of_match_ptr(exynos_g2d_match), }, };