4444#include <plat/usb.h>
4545#include <video/omapdss.h>
4646#include <video/omap-panel-generic-dpi.h>
47- #include <video/omap-panel-dvi .h>
47+ #include <video/omap-panel-tfp410 .h>
4848#include <plat/mcspi.h>
4949
5050#include <mach/hardware.h>
@@ -218,25 +218,6 @@ static void cm_t35_panel_disable_lcd(struct omap_dss_device *dssdev)
218218 gpio_set_value (CM_T35_LCD_EN_GPIO , 0 );
219219}
220220
221- static int cm_t35_panel_enable_dvi (struct omap_dss_device * dssdev )
222- {
223- if (lcd_enabled ) {
224- printk (KERN_ERR "cannot enable DVI, LCD is enabled\n" );
225- return - EINVAL ;
226- }
227-
228- gpio_set_value (CM_T35_DVI_EN_GPIO , 0 );
229- dvi_enabled = 1 ;
230-
231- return 0 ;
232- }
233-
234- static void cm_t35_panel_disable_dvi (struct omap_dss_device * dssdev )
235- {
236- gpio_set_value (CM_T35_DVI_EN_GPIO , 1 );
237- dvi_enabled = 0 ;
238- }
239-
240221static int cm_t35_panel_enable_tv (struct omap_dss_device * dssdev )
241222{
242223 return 0 ;
@@ -260,15 +241,14 @@ static struct omap_dss_device cm_t35_lcd_device = {
260241 .phy .dpi .data_lines = 18 ,
261242};
262243
263- static struct panel_dvi_platform_data dvi_panel = {
264- .platform_enable = cm_t35_panel_enable_dvi ,
265- .platform_disable = cm_t35_panel_disable_dvi ,
244+ static struct tfp410_platform_data dvi_panel = {
245+ .power_down_gpio = CM_T35_DVI_EN_GPIO ,
266246};
267247
268248static struct omap_dss_device cm_t35_dvi_device = {
269249 .name = "dvi" ,
270250 .type = OMAP_DISPLAY_TYPE_DPI ,
271- .driver_name = "dvi " ,
251+ .driver_name = "tfp410 " ,
272252 .data = & dvi_panel ,
273253 .phy .dpi .data_lines = 24 ,
274254};
@@ -316,7 +296,6 @@ static struct spi_board_info cm_t35_lcd_spi_board_info[] __initdata = {
316296static struct gpio cm_t35_dss_gpios [] __initdata = {
317297 { CM_T35_LCD_EN_GPIO , GPIOF_OUT_INIT_LOW , "lcd enable" },
318298 { CM_T35_LCD_BL_GPIO , GPIOF_OUT_INIT_LOW , "lcd bl enable" },
319- { CM_T35_DVI_EN_GPIO , GPIOF_OUT_INIT_HIGH , "dvi enable" },
320299};
321300
322301static void __init cm_t35_init_display (void )
@@ -335,7 +314,6 @@ static void __init cm_t35_init_display(void)
335314
336315 gpio_export (CM_T35_LCD_EN_GPIO , 0 );
337316 gpio_export (CM_T35_LCD_BL_GPIO , 0 );
338- gpio_export (CM_T35_DVI_EN_GPIO , 0 );
339317
340318 msleep (50 );
341319 gpio_set_value (CM_T35_LCD_EN_GPIO , 1 );
0 commit comments