From patchwork Fri Jan 25 09:55:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2045821 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 74FDAE0175 for ; Fri, 25 Jan 2013 15:05:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 59BD3E62AA for ; Fri, 25 Jan 2013 07:05:45 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-da0-f44.google.com (mail-da0-f44.google.com [209.85.210.44]) by gabe.freedesktop.org (Postfix) with ESMTP id CF6A0E600A for ; Fri, 25 Jan 2013 02:04:19 -0800 (PST) Received: by mail-da0-f44.google.com with SMTP id z20so102960dae.17 for ; Fri, 25 Jan 2013 02:04:19 -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=QXYHLDtGnNYSTtyvJaG1DifWyk2XcRaKcES+j+8/hPs=; b=IyD/5ClfjWIG863TckmVyIm6jmT/OE4gwiCnnMqw0qZV/+OvhGaeZAAX2pcr8a29Jo BATDzSDFntjdgMCC8srvCCGK2R4Or/xZZZ9ABlaYo19ZVegFlFiKQ8lwgMS2gi0ZHOAk cTSmo+pXQCwuwAzO5R10trtkrjAxvFystZVV7xpYZd+v5NfH/Eu2HYn7ui/PoHMGc5Pp Pr0CAfFcohGlw0qLAywPW+5Gt9biY6rQALr2n4/5lwEzfzo/oxenFe1riqRlo+nlfU4p vQUCphWp6Xyo/WhqWCcstOfQTLbQhfqpfbGRsZpUKNJolsspcJSYAQlI2BcSn05aJiWv Wo0Q== X-Received: by 10.66.88.164 with SMTP id bh4mr12194846pab.41.1359108259653; Fri, 25 Jan 2013 02:04:19 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id y9sm603085paw.1.2013.01.25.02.04.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Jan 2013 02:04:19 -0800 (PST) From: Sachin Kamat To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH 2/2] drm/exynos: Add device tree based discovery support for G2D Date: Fri, 25 Jan 2013 15:25:22 +0530 Message-Id: <1359107722-9974-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1359107722-9974-1-git-send-email-sachin.kamat@linaro.org> References: <1359107722-9974-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQnvIBJnXUu5fmtBXmMZQJjd+YhZEa0d9CTqT/FQlWtfZ9eZofyhbpqxPjCTy3MzDNlYRo28 X-Mailman-Approved-At: Fri, 25 Jan 2013 06:58:19 -0800 Cc: 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 Acked-by: Kyungmin Park --- 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..d24b170 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,g2d-v41" }, + {}, +}; +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), }, };