diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 49df12735b4..9a3bce54187 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -219,29 +219,8 @@ static struct omap_dss_device omap3_evm_tv_device = { | |||
219 | .platform_disable = omap3_evm_disable_tv, | 219 | .platform_disable = omap3_evm_disable_tv, |
220 | }; | 220 | }; |
221 | 221 | ||
222 | static int omap3_evm_enable_dvi(struct omap_dss_device *dssdev) | ||
223 | { | ||
224 | if (lcd_enabled) { | ||
225 | printk(KERN_ERR "cannot enable DVI, LCD is enabled\n"); | ||
226 | return -EINVAL; | ||
227 | } | ||
228 | |||
229 | gpio_set_value_cansleep(OMAP3EVM_DVI_PANEL_EN_GPIO, 1); | ||
230 | |||
231 | dvi_enabled = 1; | ||
232 | return 0; | ||
233 | } | ||
234 | |||
235 | static void omap3_evm_disable_dvi(struct omap_dss_device *dssdev) | ||
236 | { | ||
237 | gpio_set_value_cansleep(OMAP3EVM_DVI_PANEL_EN_GPIO, 0); | ||
238 | |||
239 | dvi_enabled = 0; | ||
240 | } | ||
241 | |||
242 | static struct panel_dvi_platform_data dvi_panel = { | 222 | static struct panel_dvi_platform_data dvi_panel = { |
243 | .platform_enable = omap3_evm_enable_dvi, | 223 | .power_down_gpio = OMAP3EVM_DVI_PANEL_EN_GPIO, |
244 | .platform_disable = omap3_evm_disable_dvi, | ||
245 | }; | 224 | }; |
246 | 225 | ||
247 | static struct omap_dss_device omap3_evm_dvi_device = { | 226 | static struct omap_dss_device omap3_evm_dvi_device = { |