summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/displays/panel-tfp410.c
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-08-08 14:28:54 +0530
committerArchit Taneja <archit@ti.com>2012-08-13 15:44:39 +0530
commitc499144c3b69a657b5dfd707b35871e066fabd3a (patch)
tree8de519506a07041ee0a2f0f0f8e8d7a8207d042f /drivers/video/omap2/displays/panel-tfp410.c
parente19d659bbf040823048101c31e3b213d13dd815f (diff)
OMAPDSS: DPI: Maintain our own timings field in driver data
The DPI driver currently relies on the timings in omap_dss_device struct to configure the DISPC accordingly. This makes the DPI interface driver dependent on the omap_dss_device struct. Make the DPI driver data maintain it's own timings field. The panel driver is expected to call dpi_set_timings()(renamed to omapdss_dpi_set_timings) to set these timings before the panel is enabled. In the set_timings() op, we still ensure that the omap_dss_device timings (dssdev->panel.timings) are configured. This will later be configured only by the DPI panel drivers. Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays/panel-tfp410.c')
-rw-r--r--drivers/video/omap2/displays/panel-tfp410.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/omap2/displays/panel-tfp410.c b/drivers/video/omap2/displays/panel-tfp410.c
index 40cc0cfa5d1..c6f950321f2 100644
--- a/drivers/video/omap2/displays/panel-tfp410.c
+++ b/drivers/video/omap2/displays/panel-tfp410.c
@@ -65,6 +65,8 @@ static int tfp410_power_on(struct omap_dss_device *dssdev)
if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
return 0;
+ omapdss_dpi_set_timings(dssdev, &dssdev->panel.timings);
+
r = omapdss_dpi_display_enable(dssdev);
if (r)
goto err0;
@@ -231,7 +233,7 @@ static void tfp410_set_timings(struct omap_dss_device *dssdev,
struct panel_drv_data *ddata = dev_get_drvdata(&dssdev->dev);
mutex_lock(&ddata->lock);
- dpi_set_timings(dssdev, timings);
+ omapdss_dpi_set_timings(dssdev, timings);
mutex_unlock(&ddata->lock);
}