linux-omap-psp 2.6.32: sync with .dev
[glsdk/meta-ti-glsdk.git] / recipes-bsp / linux / linux-omap-psp-2.6.32 / beagleboard-xmc / 0005-omap3-beaglexm-fix-DVI-reset-GPIO.patch
1 From 3d93d0b8974c867db70cb4a8681615113ac6113d Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@beagleboard.org>
3 Date: Tue, 11 Jan 2011 17:13:36 +0000
4 Subject: [PATCH 05/10] omap3: beaglexm: fix DVI reset GPIO
6 GPIO reset line for Beagle XM is different from vanilla beagle
7 so we populate it as part of gpio update routine.
9 This in part fixes the issue of display not functioning on beagle XM
10 platform.
12 [nm@ti.com: split up, added descriptive changelogs]
13 Signed-off-by: Nishanth Menon <nm@ti.com>
14 Signed-off-by: Koen Kooi <koen@beagleboard.org>
15 Signed-off-by: Tony Lindgren <tony@atomide.com>
16 ---
17  arch/arm/mach-omap2/board-omap3beagle.c |    8 +++++++-
18  1 files changed, 7 insertions(+), 1 deletions(-)
20 diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
21 index 7cfa2c8..939de5a 100644
22 --- a/arch/arm/mach-omap2/board-omap3beagle.c
23 +++ b/arch/arm/mach-omap2/board-omap3beagle.c
24 @@ -336,7 +336,7 @@ static struct omap_dss_device beagle_dvi_device = {
25         .name = "dvi",
26         .driver_name = "generic_panel",
27         .phy.dpi.data_lines = 24,
28 -       .reset_gpio = 170,
29 +       .reset_gpio = -EINVAL,
30         .platform_enable = beagle_enable_dvi,
31         .platform_disable = beagle_disable_dvi,
32  };
33 @@ -497,6 +497,12 @@ static int beagle_twl_gpio_setup(struct device *dev,
34         else
35                 gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0);
36  
37 +       /* DVI reset GPIO is different between beagle revisions */
38 +       if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM)
39 +               beagle_dvi_device.reset_gpio = 129;
40 +       else
41 +               beagle_dvi_device.reset_gpio = 170;
42 +
43         /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */
44         gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1;
45  
46 -- 
47 1.6.6.1