From patchwork Thu Jun 17 12:45:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthilvadivu Guruswamy X-Patchwork-Id: 106675 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5HCjJrv011708 for ; Thu, 17 Jun 2010 12:45:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759832Ab0FQMpO (ORCPT ); Thu, 17 Jun 2010 08:45:14 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:32955 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752732Ab0FQMpN (ORCPT ); Thu, 17 Jun 2010 08:45:13 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o5HCj5V8004203 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Jun 2010 07:45:08 -0500 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o5HCj3Rs026559; Thu, 17 Jun 2010 18:15:03 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id o5HCj3gf015746; Thu, 17 Jun 2010 18:15:03 +0530 Received: (from a0876342@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id o5HCj3q1015744; Thu, 17 Jun 2010 18:15:03 +0530 From: Guruswamy Senthilvadivu To: linux-omap@vger.kernel.org, linux-dev@vger.kernel.org, tony@atomide.com, tomi.valkeinen@nokia.com, hvaibhav@ti.com Cc: Senthilvadivu Guruswamy Subject: [PATCH v3 3/3] OMAP: DSS2: OMAPFB: Allow usage of def_vrfb only for omap2, 3 Date: Thu, 17 Jun 2010 18:15:02 +0530 Message-Id: <1276778702-15280-4-git-send-email-svadivu@ti.com> X-Mailer: git-send-email 1.5.6.6 In-Reply-To: <1276778702-15280-3-git-send-email-svadivu@ti.com> References: <1276778702-15280-1-git-send-email-svadivu@ti.com> <1276778702-15280-2-git-send-email-svadivu@ti.com> <1276778702-15280-3-git-send-email-svadivu@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 17 Jun 2010 12:45:19 +0000 (UTC) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 4b4506d..0f79db8 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -2128,6 +2128,16 @@ static int omapfb_probe(struct platform_device *pdev) goto err0; } + /* TODO : Replace cpu check with omap_has_vrfb once HAS_FEATURE + * available for OMAP2 and OMAP3 + */ + if (def_vrfb && (!cpu_is_omap24xx()) && (!cpu_is_omap34xx())) { + def_vrfb = 0; + dev_warn(&pdev->dev, "VRFB is not in this device," + "using DMA for rotation\n"); + } + + mutex_init(&fbdev->mtx); fbdev->dev = &pdev->dev;