diff options
author | Archit Taneja <archit@ti.com> | 2012-08-13 13:56:49 +0400 |
---|---|---|
committer | Archit Taneja <archit@ti.com> | 2012-08-16 16:30:54 +0400 |
commit | b02875be08fd2ca7a195154c9f1c538508ca0d5a (patch) | |
tree | 65d9ea0d7f7c0a171e4e89c8ae7c9e10cccb0f79 /drivers/video/omap2/displays | |
parent | 02c3960b1eeafd5ed30323e1bb86bfa099b46921 (diff) | |
download | linux-b02875be08fd2ca7a195154c9f1c538508ca0d5a.tar.xz |
OMAPDSS: RFBI: Maintain copy of pixel size in driver data
The RFBI driver currently relies on the omap_dss_device struct to receive the
desired pixel size of the panel. This makes the RFBI interface driver dependent
on the omap_dss_device struct.
Make the RFBI driver data maintain it's own pixel format field. A panel driver
is expected to call omapdss_rfbi_set_pixel_size() to configure the pixel format
before enabling the interface or calling omap_rfbi_configure().
Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays')
-rw-r--r-- | drivers/video/omap2/displays/panel-n8x0.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-n8x0.c b/drivers/video/omap2/displays/panel-n8x0.c index 839ef84bb3d6..9565958ebaa9 100644 --- a/drivers/video/omap2/displays/panel-n8x0.c +++ b/drivers/video/omap2/displays/panel-n8x0.c @@ -150,11 +150,15 @@ static void blizzard_ctrl_setup_update(struct omap_dss_device *dssdev, BLIZZARD_SRC_WRITE_LCD : BLIZZARD_SRC_WRITE_LCD_DESTRUCTIVE; - omap_rfbi_configure(dssdev, 16, 8); + omapdss_rfbi_set_pixel_size(dssdev, 16); + + omap_rfbi_configure(dssdev, 8); blizzard_write(BLIZZARD_INPUT_WIN_X_START_0, tmp, 18); - omap_rfbi_configure(dssdev, 16, 16); + omapdss_rfbi_set_pixel_size(dssdev, 16); + + omap_rfbi_configure(dssdev, 16); } static void mipid_transfer(struct spi_device *spi, int cmd, const u8 *wbuf, @@ -299,6 +303,7 @@ static int n8x0_panel_power_on(struct omap_dss_device *dssdev) omapdss_rfbi_set_size(dssdev, dssdev->panel.timings.x_res, dssdev->panel.timings.y_res); + omapdss_rfbi_set_pixel_size(dssdev, dssdev->ctrl.pixel_size); r = omapdss_rfbi_display_enable(dssdev); if (r) |