]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] pxafb: fix the incorrect configuration of GPIO77 as ACBIAS for TFT LCD
authorEric Miao <ycmiao@ycmiao-ubuntu.internal.example.org>
Sat, 16 Aug 2008 07:59:11 +0000 (03:59 -0400)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 16 Aug 2008 15:39:15 +0000 (16:39 +0100)
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Tested-by: Alex Osborne <ato@meshy.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/video/pxafb.c

index e7aa7ae8fca8e3d3fe89fb6968ed4073bca3b834..bef35afa258dd03ec53f8dee1842e6111034e5b5 100644 (file)
@@ -1031,7 +1031,9 @@ static void pxafb_setup_gpio(struct pxafb_info *fbi)
        pxa_gpio_mode(GPIO74_LCD_FCLK_MD);
        pxa_gpio_mode(GPIO75_LCD_LCLK_MD);
        pxa_gpio_mode(GPIO76_LCD_PCLK_MD);
-       pxa_gpio_mode(GPIO77_LCD_ACBIAS_MD);
+
+       if ((lccr0 & LCCR0_PAS) == 0)
+               pxa_gpio_mode(GPIO77_LCD_ACBIAS_MD);
 }
 
 static void pxafb_enable_controller(struct pxafb_info *fbi)