From patchwork Thu Mar 4 15:58:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 83625 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 o24FwQXa006579 for ; Thu, 4 Mar 2010 15:58:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754748Ab0CDP60 (ORCPT ); Thu, 4 Mar 2010 10:58:26 -0500 Received: from smtp.nokia.com ([192.100.122.230]:62589 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406Ab0CDP6Z (ORCPT ); Thu, 4 Mar 2010 10:58:25 -0500 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o24Fw8j4017509; Thu, 4 Mar 2010 17:58:13 +0200 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 4 Mar 2010 17:58:06 +0200 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 4 Mar 2010 17:58:04 +0200 Received: from [172.21.40.180] (esdhcp040180.research.nokia.com [172.21.40.180]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o24Fw1Tu016529; Thu, 4 Mar 2010 17:58:02 +0200 Subject: Re: OMAPFB: cannot parse default modes From: Tomi Valkeinen To: ext Enric =?ISO-8859-1?Q?Balletb=F2?= i Serra Cc: "linux-omap@vger.kernel.org" In-Reply-To: <70c9a9111003040725j63355a27j38e3f7b07e7ba43a@mail.gmail.com> References: <70c9a9111003040725j63355a27j38e3f7b07e7ba43a@mail.gmail.com> Organization: Nokia Date: Thu, 04 Mar 2010 17:58:01 +0200 Message-ID: <1267718281.25148.41.camel@tubuntu.research.nokia.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 X-OriginalArrivalTime: 04 Mar 2010 15:58:04.0966 (UTC) FILETIME=[79C03460:01CABBB3] X-Nokia-AV: Clean 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, 04 Mar 2010 15:58:26 +0000 (UTC) From cfd210495c3f42c700f569f722818c52c6dfc7c3 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 4 Mar 2010 17:52:43 +0200 Subject: [PATCH] hack for set mode --- drivers/video/omap2/displays/panel-generic.c | 33 ++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/drivers/video/omap2/displays/panel-generic.c b/drivers/video/omap2/displays/panel-generic.c index c59e4ba..57c3a26 100644 --- a/drivers/video/omap2/displays/panel-generic.c +++ b/drivers/video/omap2/displays/panel-generic.c @@ -116,6 +116,35 @@ static int generic_panel_resume(struct omap_dss_device *dssdev) return 0; } +static void generic_panel_set_timings(struct omap_dss_device *dssdev, + struct omap_video_timings *timings) +{ + int r; + + if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) + omapdss_dpi_display_disable(dssdev); + + dssdev->panel.timings = *timings; + + if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) { + r = omapdss_dpi_display_enable(dssdev); + if (r) + printk("enable failed\n"); + } +} + +static void generic_panel_get_timings(struct omap_dss_device *dssdev, + struct omap_video_timings *timings) +{ + *timings = dssdev->panel.timings; +} + +static int generic_panel_check_timings(struct omap_dss_device *dssdev, + struct omap_video_timings *timings) +{ + return 0; +} + static struct omap_dss_driver generic_driver = { .probe = generic_panel_probe, .remove = generic_panel_remove, @@ -125,6 +154,10 @@ static struct omap_dss_driver generic_driver = { .suspend = generic_panel_suspend, .resume = generic_panel_resume, + .set_timings = generic_panel_set_timings, + .get_timings = generic_panel_get_timings, + .check_timings = generic_panel_check_timings, + .driver = { .name = "generic_panel", .owner = THIS_MODULE, -- 1.6.5