summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/displays
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-08-10 15:01:33 +0530
committerArchit Taneja <archit@ti.com>2012-08-16 18:00:47 +0530
commit02c3960b1eeafd5ed30323e1bb86bfa099b46921 (patch)
treef9c33b9952e6dcef535767fe840031b36b4bd2bc /drivers/video/omap2/displays
parent6ff9dd5a6fe624726f7004ddf995bb2b3409e1d5 (diff)
downloadlinux-02c3960b1eeafd5ed30323e1bb86bfa099b46921.tar.gz
linux-02c3960b1eeafd5ed30323e1bb86bfa099b46921.tar.bz2
linux-02c3960b1eeafd5ed30323e1bb86bfa099b46921.zip
OMAPDSS: DSI: Maintain copy of pixel format in driver data
The DSI driver currently relies on the omap_dss_device struct to receive the desired pixel format of the panel. This makes the DSI interface driver dependent on the omap_dss_device struct. Make the DSI driver data maintain it's own pixel format field. The panel driver is expected to call omapdss_dsi_set_pixel_format() to configure the pixel format before the interface is enabled. Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays')
-rw-r--r--drivers/video/omap2/displays/panel-taal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c
index c3bca2fb15d4..de1dd20644f2 100644
--- a/drivers/video/omap2/displays/panel-taal.c
+++ b/drivers/video/omap2/displays/panel-taal.c
@@ -1062,6 +1062,7 @@ static int taal_power_on(struct omap_dss_device *dssdev)
omapdss_dsi_set_size(dssdev, dssdev->panel.timings.x_res,
dssdev->panel.timings.y_res);
+ omapdss_dsi_set_pixel_format(dssdev, OMAP_DSS_DSI_FMT_RGB888);
r = omapdss_dsi_display_enable(dssdev);
if (r) {