diff options
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index af1166bd1c86..673deb9189fe 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -199,7 +199,7 @@ static struct omap_dss_device beagle_dvi_device = { | |||
199 | .name = "dvi", | 199 | .name = "dvi", |
200 | .driver_name = "generic_panel", | 200 | .driver_name = "generic_panel", |
201 | .phy.dpi.data_lines = 24, | 201 | .phy.dpi.data_lines = 24, |
202 | .reset_gpio = 170, | 202 | .reset_gpio = -EINVAL, |
203 | .platform_enable = beagle_enable_dvi, | 203 | .platform_enable = beagle_enable_dvi, |
204 | .platform_disable = beagle_disable_dvi, | 204 | .platform_disable = beagle_disable_dvi, |
205 | }; | 205 | }; |
@@ -307,6 +307,12 @@ static int beagle_twl_gpio_setup(struct device *dev, | |||
307 | else | 307 | else |
308 | gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); | 308 | gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); |
309 | 309 | ||
310 | /* DVI reset GPIO is different between beagle revisions */ | ||
311 | if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) | ||
312 | beagle_dvi_device.reset_gpio = 129; | ||
313 | else | ||
314 | beagle_dvi_device.reset_gpio = 170; | ||
315 | |||
310 | /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */ | 316 | /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */ |
311 | gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1; | 317 | gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1; |
312 | 318 | ||