diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-01-08 10:14:53 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-02-24 07:31:27 -0500 |
commit | a2faee84f6d8e35150d60514c6638d223509fa13 (patch) | |
tree | 6af54db0ab5a67c0fc068146cf03c77f85225d41 /drivers/video/omap2/dss/sdi.c | |
parent | 3f71cbe736e7e9909559fcc4463f43e4b4b348a8 (diff) |
OMAP: DSS2: move enable/disable_channel to overlay manager
Move enable/disable_channel() from omap_dss_device to overlay manager.
This is part of a larger patch-set, which moves the control from omapdss
driver to the display driver.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/dss/sdi.c')
-rw-r--r-- | drivers/video/omap2/dss/sdi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c index c24f307d3da1..5f852edd4cbc 100644 --- a/drivers/video/omap2/dss/sdi.c +++ b/drivers/video/omap2/dss/sdi.c | |||
@@ -119,7 +119,7 @@ static int sdi_display_enable(struct omap_dss_device *dssdev) | |||
119 | mdelay(2); | 119 | mdelay(2); |
120 | } | 120 | } |
121 | 121 | ||
122 | dispc_enable_lcd_out(1); | 122 | dssdev->manager->enable(dssdev->manager); |
123 | 123 | ||
124 | if (dssdev->driver->enable) { | 124 | if (dssdev->driver->enable) { |
125 | r = dssdev->driver->enable(dssdev); | 125 | r = dssdev->driver->enable(dssdev); |
@@ -133,7 +133,7 @@ static int sdi_display_enable(struct omap_dss_device *dssdev) | |||
133 | 133 | ||
134 | return 0; | 134 | return 0; |
135 | err3: | 135 | err3: |
136 | dispc_enable_lcd_out(0); | 136 | dssdev->manager->disable(dssdev->manager); |
137 | err2: | 137 | err2: |
138 | dss_clk_disable(DSS_CLK_ICK | DSS_CLK_FCK1); | 138 | dss_clk_disable(DSS_CLK_ICK | DSS_CLK_FCK1); |
139 | err1: | 139 | err1: |
@@ -156,7 +156,7 @@ static void sdi_display_disable(struct omap_dss_device *dssdev) | |||
156 | if (dssdev->driver->disable) | 156 | if (dssdev->driver->disable) |
157 | dssdev->driver->disable(dssdev); | 157 | dssdev->driver->disable(dssdev); |
158 | 158 | ||
159 | dispc_enable_lcd_out(0); | 159 | dssdev->manager->disable(dssdev->manager); |
160 | 160 | ||
161 | dss_sdi_disable(); | 161 | dss_sdi_disable(); |
162 | 162 | ||
@@ -175,7 +175,7 @@ static int sdi_display_suspend(struct omap_dss_device *dssdev) | |||
175 | if (dssdev->driver->suspend) | 175 | if (dssdev->driver->suspend) |
176 | dssdev->driver->suspend(dssdev); | 176 | dssdev->driver->suspend(dssdev); |
177 | 177 | ||
178 | dispc_enable_lcd_out(0); | 178 | dssdev->manager->disable(dssdev->manager); |
179 | 179 | ||
180 | dss_sdi_disable(); | 180 | dss_sdi_disable(); |
181 | 181 | ||
@@ -200,7 +200,7 @@ static int sdi_display_resume(struct omap_dss_device *dssdev) | |||
200 | goto err; | 200 | goto err; |
201 | mdelay(2); | 201 | mdelay(2); |
202 | 202 | ||
203 | dispc_enable_lcd_out(1); | 203 | dssdev->manager->enable(dssdev->manager); |
204 | 204 | ||
205 | if (dssdev->driver->resume) | 205 | if (dssdev->driver->resume) |
206 | dssdev->driver->resume(dssdev); | 206 | dssdev->driver->resume(dssdev); |
@@ -220,10 +220,10 @@ static int sdi_display_set_update_mode(struct omap_dss_device *dssdev, | |||
220 | return -EINVAL; | 220 | return -EINVAL; |
221 | 221 | ||
222 | if (mode == OMAP_DSS_UPDATE_DISABLED) { | 222 | if (mode == OMAP_DSS_UPDATE_DISABLED) { |
223 | dispc_enable_lcd_out(0); | 223 | dssdev->manager->disable(dssdev->manager); |
224 | sdi.update_enabled = 0; | 224 | sdi.update_enabled = 0; |
225 | } else { | 225 | } else { |
226 | dispc_enable_lcd_out(1); | 226 | dssdev->manager->enable(dssdev->manager); |
227 | sdi.update_enabled = 1; | 227 | sdi.update_enabled = 1; |
228 | } | 228 | } |
229 | 229 | ||