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: 16651 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1U2xj5-0006WG-Ru; Wed, 06 Feb 2013 06:39:19 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-2) with esmtp id 1U2xj3-0006p9-H9; Wed, 06 Feb 2013 06:39:19 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751554Ab3BFFjQ (ORCPT + 1 other); Wed, 6 Feb 2013 00:39:16 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:64698 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389Ab3BFFjP (ORCPT ); Wed, 6 Feb 2013 00:39:15 -0500 Received: by mail-pa0-f41.google.com with SMTP id fb11so597897pad.0 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=RBgDjfhN5l/YV6gHZqTBKUAsc+8cNZOrauE5ayTbqP+omzJ8BJN6rNamexoClnLX3d D4BmtKzOz28HenAJs5VDr8jV5sOwbz/hjsKdxari/oJxw71eHNGiePO/cNaaccW1cTNT pOBe6Yqb6lRDcy1IPzEoU40qgFidesF+yN1aX/JE50BnGipxLc4YzDh+le1i555yWea4 KJZSLoJT5O+emzzY/lVc8rUfDzRgHH2XIXycqM12TatLTV7ofN781d6njDAsTmmYqMdy JsLy1jZlYjeltVibXuh06LH5zXtCvCq2IxRieXS8B985BBLOqyqrUwYe14ZR7ZANQfMI BNGQ== 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: ALoCoQm6VLv0ZR5sUNoK/RGsCU92K4ph6wW26gHwPErHiiFlnpC/SiCVguQ+YwsgCLEU+gOQjsrp Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2013.2.6.53019 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1800_1899 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' 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), }, };