diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-02-17 06:30:27 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-09 03:51:04 -0400 |
commit | e813a55eb9c9bc6c8039fb16332cf43402125b30 (patch) | |
tree | 18b4450d21ba7755587d442865142f641fee3f14 /arch/arm/mach-omap2/board-igep0020.c | |
parent | 2da35193dc81b574001a47347f41c4922b1266d3 (diff) |
OMAP: board-files: remove custom PD GPIO handling for DVI output
Now that the panel-dvi driver handles the PD (power-down) GPIO, we can
remove the custom PD handling from the board files.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-igep0020.c')
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 930c0d380435..c7028224d138 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -444,22 +444,9 @@ static struct twl4030_gpio_platform_data igep_twl4030_gpio_pdata = { | |||
444 | .setup = igep_twl_gpio_setup, | 444 | .setup = igep_twl_gpio_setup, |
445 | }; | 445 | }; |
446 | 446 | ||
447 | static int igep2_enable_dvi(struct omap_dss_device *dssdev) | ||
448 | { | ||
449 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 1); | ||
450 | |||
451 | return 0; | ||
452 | } | ||
453 | |||
454 | static void igep2_disable_dvi(struct omap_dss_device *dssdev) | ||
455 | { | ||
456 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 0); | ||
457 | } | ||
458 | |||
459 | static struct panel_dvi_platform_data dvi_panel = { | 447 | static struct panel_dvi_platform_data dvi_panel = { |
460 | .platform_enable = igep2_enable_dvi, | 448 | .i2c_bus_num = 3, |
461 | .platform_disable = igep2_disable_dvi, | 449 | .power_down_gpio = IGEP2_GPIO_DVI_PUP, |
462 | .i2c_bus_num = 3, | ||
463 | }; | 450 | }; |
464 | 451 | ||
465 | static struct omap_dss_device igep2_dvi_device = { | 452 | static struct omap_dss_device igep2_dvi_device = { |
@@ -480,14 +467,6 @@ static struct omap_dss_board_info igep2_dss_data = { | |||
480 | .default_device = &igep2_dvi_device, | 467 | .default_device = &igep2_dvi_device, |
481 | }; | 468 | }; |
482 | 469 | ||
483 | static void __init igep2_display_init(void) | ||
484 | { | ||
485 | int err = gpio_request_one(IGEP2_GPIO_DVI_PUP, GPIOF_OUT_INIT_HIGH, | ||
486 | "GPIO_DVI_PUP"); | ||
487 | if (err) | ||
488 | pr_err("IGEP v2: Could not obtain gpio GPIO_DVI_PUP\n"); | ||
489 | } | ||
490 | |||
491 | static struct platform_device *igep_devices[] __initdata = { | 470 | static struct platform_device *igep_devices[] __initdata = { |
492 | &igep_vwlan_device, | 471 | &igep_vwlan_device, |
493 | }; | 472 | }; |
@@ -668,7 +647,6 @@ static void __init igep_init(void) | |||
668 | 647 | ||
669 | if (machine_is_igep0020()) { | 648 | if (machine_is_igep0020()) { |
670 | omap_display_init(&igep2_dss_data); | 649 | omap_display_init(&igep2_dss_data); |
671 | igep2_display_init(); | ||
672 | igep2_init_smsc911x(); | 650 | igep2_init_smsc911x(); |
673 | usbhs_init(&igep2_usbhs_bdata); | 651 | usbhs_init(&igep2_usbhs_bdata); |
674 | } else { | 652 | } else { |