From: Tomi Valkeinen Date: Fri, 29 Apr 2011 12:57:01 +0000 (+0300) Subject: OMAP: DSS2: RFBI: add omap_rfbi_configure X-Git-Tag: firefly_0821_release~7613^2~1156^2~20^2~17 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1d5952a868c3059dd0d431ffde357f1506823f5e;p=firefly-linux-kernel-4.4.55.git OMAP: DSS2: RFBI: add omap_rfbi_configure 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 --- diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c index 1c19d174facb..155caf02bcad 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 943c0e85f2fc..b1b5ba55976e 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h @@ -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