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: 14579 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 5D3A124195 for ; Wed, 6 Feb 2013 05:39:17 +0000 (UTC) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by fiordland.canonical.com (Postfix) with ESMTP id 16260A1827F for ; Wed, 6 Feb 2013 05:39:17 +0000 (UTC) Received: by mail-vb0-f52.google.com with SMTP id fa15so591558vbb.25 for ; Tue, 05 Feb 2013 21:39:16 -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=U014n1gEvamc2S6rTOpnL0XLmHy0UB2qIWilUiPBq1o=; b=a+GegQEp+9z1FS/sTV63pqAxVgQCYFKqXdEMFUAhvCRwBjs9mxTQAFvBBxxFevqJtS 5bCNLZ2lYjC692sPuIbz2EwcoduMyB0MgfJYtpcJuh/ZE/E53kngTv3iUQXCMyt4pF1C 2TDWZNIAAo0DPAvQgnAjS5DSSMe3kFWvcj4Sa75q4mp4MvmayihzvecXynNGTSgkPp5O +kTJV993qk7TWt3TPhOHrtRNtwY6p4roZTZJHDP7SIpayY2XYuwNRskQcHCLMi1YXbpp HhWiuKnJgrRa7E1vX+NvtArajMlWzEn7vOZsNpsWypZ2fOHVSkqowhu4TsQzIoVDlmAP wB7Q== X-Received: by 10.220.151.141 with SMTP id c13mr31215777vcw.64.1360129156462; Tue, 05 Feb 2013 21:39:16 -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.252.8 with SMTP id zo8csp1585vec; Tue, 5 Feb 2013 21:39:15 -0800 (PST) X-Received: by 10.66.74.234 with SMTP id x10mr29628486pav.10.1360129155360; Tue, 05 Feb 2013 21:39:15 -0800 (PST) Received: from mail-da0-f42.google.com (mail-da0-f42.google.com [209.85.210.42]) by mx.google.com with ESMTPS id bf6si27003268pab.25.2013.02.05.21.39.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Feb 2013 21:39:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.42 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.42; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.42 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-f42.google.com with SMTP id z17so456086dal.29 for ; Tue, 05 Feb 2013 21:39:14 -0800 (PST) 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 Cc: k.debski@samsung.com, sachin.kamat@linaro.org, inki.dae@samsung.com, s.nawrocki@samsung.com, kgene.kim@samsung.com, patches@linaro.org, Ajay Kumar 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: ALoCoQky0hz5DstJVgeQtXqFGphJV97xlPldDfRugIyE7f+X5Wajz2FzThPFxHMrpwNo9zZhc+Ed 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), }, };