From: Eric Miao Date: Sat, 16 Aug 2008 07:59:11 +0000 (-0400) Subject: [ARM] pxafb: fix the incorrect configuration of GPIO77 as ACBIAS for TFT LCD X-Git-Tag: v2.6.27-rc4~54^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cb47729bdaf49fe5e9dd2c41554f44a77b5cd590;p=linux-2.6-omap-h63xx.git [ARM] pxafb: fix the incorrect configuration of GPIO77 as ACBIAS for TFT LCD Signed-off-by: Eric Miao Tested-by: Robert Jarzmik Tested-by: Alex Osborne Signed-off-by: Russell King --- diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index e7aa7ae8fca..bef35afa258 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c @@ -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)