diff options
author | Archit Taneja <archit@ti.com> | 2012-08-08 16:56:06 +0530 |
---|---|---|
committer | Archit Taneja <archit@ti.com> | 2012-08-15 15:48:45 +0530 |
commit | 9b4a5716ef54bbf2f57c75f790b12fc63a4be640 (patch) | |
tree | fe864e4c6e6fbd2e32da6d4c305ad10cbde7d697 /drivers/video/omap2/displays/panel-acx565akm.c | |
parent | c7833f7bc049dfd844ce3042798cf48551b5f14d (diff) | |
download | blackbird-op-linux-9b4a5716ef54bbf2f57c75f790b12fc63a4be640.tar.gz blackbird-op-linux-9b4a5716ef54bbf2f57c75f790b12fc63a4be640.zip |
OMAPDSS: SDI: Maintain our own timings field in driver data
The SDI driver currently relies on the timings in omap_dss_device struct to
configure the DISPC accordingly. This makes the SDI interface driver dependent
on the omap_dss_device struct.
Make the SDI driver data maintain it's own timings field. The panel driver is
expected to call omapdss_sdi_set_timings() to set these timings before the panel
is enabled.
Make the SDI panel driver configure the new timings is the omap_dss_device
struct(dssdev->panel.timings). The SDI driver is responsible for maintaining
only it's own copy of timings.
Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays/panel-acx565akm.c')
-rw-r--r-- | drivers/video/omap2/displays/panel-acx565akm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/omap2/displays/panel-acx565akm.c b/drivers/video/omap2/displays/panel-acx565akm.c index 11bdc883e46b..77fe59f6a8cd 100644 --- a/drivers/video/omap2/displays/panel-acx565akm.c +++ b/drivers/video/omap2/displays/panel-acx565akm.c @@ -600,6 +600,8 @@ static int acx_panel_power_on(struct omap_dss_device *dssdev) mutex_lock(&md->mutex); + omapdss_sdi_set_timings(dssdev, &dssdev->panel.timings); + r = omapdss_sdi_display_enable(dssdev); if (r) { pr_err("%s sdi enable failed\n", __func__); @@ -732,6 +734,8 @@ static void acx_panel_set_timings(struct omap_dss_device *dssdev, struct omap_video_timings *timings) { omapdss_sdi_set_timings(dssdev, timings); + + dssdev->panel.timings = *timings; } static int acx_panel_check_timings(struct omap_dss_device *dssdev, |