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: 14285 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id B632823EAD for ; Fri, 25 Jan 2013 10:04:21 +0000 (UTC) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by fiordland.canonical.com (Postfix) with ESMTP id 6BD66A1802A for ; Fri, 25 Jan 2013 10:04:21 +0000 (UTC) Received: by mail-vb0-f49.google.com with SMTP id s24so125316vbi.36 for ; Fri, 25 Jan 2013 02:04:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf: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=JlMu8sbXIAz1QB4RQQ7UjNWLESizhCu+wxPohLvFiw0bXhhCLvByjTh6ODbTvATej7 oHabi7+dCnBZ8h3n1jJLJwkQALtC0+/K/vh+X3bBSDxwkdyptJ7ukSZlgcnrOFYCY6XT TRbWGvQj1ATMzfhDLqnBhHqe5sGLXZbyJtu4tXdG/4BJLf4mu2UFi2e3JgGGxJW4VyC4 9D4ItNfxQEa6d63M+27oDaUhqyMZuzrKBLM2TvidTnoE6qIRjFYl9FfOj92FS5cY77as RthxMtDO3sL8YEa6E/wdiMOL0ixBrN00vCD4BARlUtf/IKtBED7H66P0/tzuddjyvD+B d4lA== X-Received: by 10.52.176.6 with SMTP id ce6mr4673847vdc.57.1359108260904; Fri, 25 Jan 2013 02:04:20 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp108187veb; Fri, 25 Jan 2013 02:04:20 -0800 (PST) X-Received: by 10.66.79.195 with SMTP id l3mr11999784pax.82.1359108260052; Fri, 25 Jan 2013 02:04:20 -0800 (PST) Received: from mail-da0-f51.google.com (mail-da0-f51.google.com [209.85.210.51]) by mx.google.com with ESMTPS id q4si656122pav.270.2013.01.25.02.04.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jan 2013 02:04:20 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.51 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.51; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.51 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-da0-f51.google.com with SMTP id i30so103540dad.10 for ; Fri, 25 Jan 2013 02:04:19 -0800 (PST) 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 Cc: k.debski@samsung.com, inki.dae@samsung.com, sachin.kamat@linaro.org, ajaykumar.rs@samsung.com, patches@linaro.org, s.nawrocki@samsung.com 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: ALoCoQkw1wcOPNF2VBWReQCymna+mR3EWmPgKYLXe8UWQ9Fv95enwNmEoZqYhJ8L5zenafEPqmDv From: Ajay Kumar This patch adds device tree match table for Exynos G2D controller. Signed-off-by: Ajay Kumar Signed-off-by: Sachin Kamat --- 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), }, };