OMAP: DSS2: RFBI: add omap_rfbi_configure
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 29 Apr 2011 12:57:01 +0000 (15:57 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 12 May 2011 16:39:50 +0000 (19:39 +0300)
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 <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/rfbi.c
include/video/omapdss.h

index 1c19d174facbd7f02175862483b4a62000f3ebfd..155caf02bcada44a5177e762a7c25d26d57ed141 100644 (file)
@@ -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)
index 943c0e85f2fc551cff17b894fce0bfd53be04836..b1b5ba55976e3b4b16eb1614aa8da563c40206ee 100644 (file)
@@ -625,5 +625,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