From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guruswamy Senthilvadivu Date: Tue, 22 Jun 2010 11:57:22 +0000 Subject: [PATCH v4 3/3] OMAP: DSS2: OMAPFB: Allow usage of def_vrfb only for omap2,3 Message-Id: <1277207827-15833-4-git-send-email-svadivu@ti.com> List-Id: References: <1277207827-15833-1-git-send-email-svadivu@ti.com> <1277207827-15833-2-git-send-email-svadivu@ti.com> <1277207827-15833-3-git-send-email-svadivu@ti.com> In-Reply-To: <1277207827-15833-3-git-send-email-svadivu@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, tony@atomide.com, tomi.valkeinen@nokia.com, hvaibhav@ti.com Cc: Senthilvadivu Guruswamy From: Senthilvadivu Guruswamy Force def_vrfb to 0 for non omap2, omap3 devices Signed-off-by: Senthilvadivu Guruswamy --- drivers/video/omap2/omapfb/omapfb-main.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) 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; -- 1.6.3.3