]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
imxfb: Fix TFT mode
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 26 Mar 2009 11:38:26 +0000 (12:38 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 27 Mar 2009 13:51:15 +0000 (14:51 +0100)
We read from the PCR reg to determine whether to use TFT mode or not.
This is not possible because it may not have been initialized with
the correct value yet. Select it using fbi->pcr instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/video/imxfb.c

index 8f7a2b2c78e7d1459db3dc16f7c7c909f8e3da0c..15a0ee6d8e2359d17b88ede3b4e19f4854b6f640 100644 (file)
@@ -327,7 +327,7 @@ static int imxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
                break;
        case 16:
        default:
-               if (readl(fbi->regs + LCDC_PCR) & PCR_TFT)
+               if (fbi->pcr & PCR_TFT)
                        rgb = &def_rgb_16_tft;
                else
                        rgb = &def_rgb_16_stn;