From patchwork Thu May 12 11:40:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 779602 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4CBebMZ019470 for ; Thu, 12 May 2011 11:40:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755128Ab1ELLkf (ORCPT ); Thu, 12 May 2011 07:40:35 -0400 Received: from na3sys009aog103.obsmtp.com ([74.125.149.71]:35502 "EHLO na3sys009aog103.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755540Ab1ELLke (ORCPT ); Thu, 12 May 2011 07:40:34 -0400 Received: from mail-ey0-f180.google.com ([209.85.215.180]) (using TLSv1) by na3sys009aob103.postini.com ([74.125.148.12]) with SMTP ID DSNKTcvHMOhwUymtdbXg/a6bTgQ4HUU4mknc@postini.com; Thu, 12 May 2011 04:40:34 PDT Received: by mail-ey0-f180.google.com with SMTP id 24so625624eyg.39 for ; Thu, 12 May 2011 04:40:32 -0700 (PDT) Received: by 10.14.20.14 with SMTP id o14mr30586eeo.156.1305200432229; Thu, 12 May 2011 04:40:32 -0700 (PDT) Received: from localhost.localdomain (a62-248-131-233.elisa-laajakaista.fi [62.248.131.233]) by mx.google.com with ESMTPS id y3sm635893eeh.9.2011.05.12.04.40.30 (version=SSLv3 cipher=OTHER); Thu, 12 May 2011 04:40:31 -0700 (PDT) From: Tomi Valkeinen To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Tomi Valkeinen Subject: [PATCHv2 5/8] OMAP: DSS2: RFBI: add omap_rfbi_configure Date: Thu, 12 May 2011 14:40:10 +0300 Message-Id: <1305200413-23697-6-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1305200413-23697-1-git-send-email-tomi.valkeinen@ti.com> References: <1305200413-23697-1-git-send-email-tomi.valkeinen@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.6 (demeter2.kernel.org [140.211.167.43]); Thu, 12 May 2011 11:40:37 +0000 (UTC) Add omap_rfbi_configure() which the panel driver can use to reconfigure the data element size and the number of data lines in the RFBI bus. Signed-off-by: Tomi Valkeinen --- drivers/video/omap2/dss/rfbi.c | 8 +++++++- include/video/omapdss.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c index 1c19d17..155caf0 100644 --- a/drivers/video/omap2/dss/rfbi.c +++ b/drivers/video/omap2/dss/rfbi.c @@ -851,7 +851,13 @@ int rfbi_configure(int rfbi_module, int bpp, int lines) return 0; } -EXPORT_SYMBOL(rfbi_configure); + +int omap_rfbi_configure(struct omap_dss_device *dssdev, int pixel_size, + int data_lines) +{ + return rfbi_configure(dssdev->phy.rfbi.channel, pixel_size, data_lines); +} +EXPORT_SYMBOL(omap_rfbi_configure); int omap_rfbi_prepare_update(struct omap_dss_device *dssdev, u16 *x, u16 *y, u16 *w, u16 *h) diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 1ea151e..9b00748 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h @@ -612,5 +612,7 @@ int omap_rfbi_prepare_update(struct omap_dss_device *dssdev, int omap_rfbi_update(struct omap_dss_device *dssdev, u16 x, u16 y, u16 w, u16 h, void (*callback)(void *), void *data); +int omap_rfbi_configure(struct omap_dss_device *dssdev, int pixel_size, + int data_lines); #endif