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: 2042511 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8F4863FDC3 for ; Fri, 25 Jan 2013 10:04:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755085Ab3AYKEV (ORCPT ); Fri, 25 Jan 2013 05:04:21 -0500 Received: from mail-pa0-f54.google.com ([209.85.220.54]:60754 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755909Ab3AYKEU (ORCPT ); Fri, 25 Jan 2013 05:04:20 -0500 Received: by mail-pa0-f54.google.com with SMTP id bi5so175707pad.41 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=SiFsS9/1A+w9Oi1tJIpnTLvRxg+W+v6len2FvDaJneMU7QuTGXtRgucu+v23q+tg9K JAnS1l5X1xsUvE8Hy1lCUBRlCeDSV6xrQDvKQfhi8z5z36gpvHz4mu7i/eRNEcWgntS6 baXOKjV+/dhD8uythw0o4q235lRxzftiYU2UNFCkORnY6GLX0yqDktQvlHHE49IAU7vr EgoBYO0PIIaRtVhx8JVlZeqEzJcgkHIZxjI57fmN2dV9JPgPFPHFoKDXPoKqh84lzHK8 ThyqN71WT7h3FECrf6jOseHCcmM/pfjlsoZ0XQuRYLdnhjXYI1VZgAFmfc1kQA/9x83y t89g== 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: ALoCoQnzIjkZmUnIzUc3qFd24AnWLxW+HwsMVtahzf3rdy7mwJo+nchzbfRAniRm1y+xnMRNpf2j Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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), }, };