From patchwork Tue Mar 19 20:36:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Gross X-Patchwork-Id: 2304421 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 B5CD7DFB79 for ; Tue, 19 Mar 2013 20:38:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99F87E6611 for ; Tue, 19 Mar 2013 13:38:01 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by gabe.freedesktop.org (Postfix) with ESMTP id 82EAEE6524 for ; Tue, 19 Mar 2013 13:36:16 -0700 (PDT) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r2JKaEva010363; Tue, 19 Mar 2013 15:36:14 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r2JKaERN025918; Tue, 19 Mar 2013 15:36:14 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.2.342.3; Tue, 19 Mar 2013 15:36:14 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r2JKaENF012409; Tue, 19 Mar 2013 15:36:14 -0500 Received: from localhost (lta0273185-ubuntu1-128247075044.am.dhcp.ti.com [128.247.75.44]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id r2JKaEV17176; Tue, 19 Mar 2013 15:36:14 -0500 (CDT) From: Andy Gross To: Subject: [PATCH] drm/omap: Add device tree support to DMM Date: Tue, 19 Mar 2013 15:36:06 -0500 Message-ID: <1363725366-4091-1-git-send-email-andy.gross@ti.com> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 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: , 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 Added in detection/support for DMM devices when booting with device tree. Signed-off-by: Andy Gross Reviewed-by: Rob Clark --- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index 9b794c9..d84f37c 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "omap_dmm_tiler.h" #include "omap_dmm_priv.h" @@ -968,6 +969,14 @@ static const struct dev_pm_ops omap_dmm_pm_ops = { }; #endif +#ifdef CONFIG_OF +static const struct of_device_id omap_dmm_of_match[] = { + {.compatible = "ti,dmm", }, + {}, +}; +MODULE_DEVICE_TABLE(of, omap_dmm_of_match); +#endif + struct platform_driver omap_dmm_driver = { .probe = omap_dmm_probe, .remove = omap_dmm_remove, @@ -977,6 +986,7 @@ struct platform_driver omap_dmm_driver = { #ifdef CONFIG_PM .pm = &omap_dmm_pm_ops, #endif + .of_match_table = of_match_ptr(omap_dmm_of_match), }, };