aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/imxfb.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-03-26 07:38:26 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-27 09:51:15 -0400
commit4d1e4e5a6387aad97590e2da9c6db1350f22f63a (patch)
treeb695850d716013b7f65f1f4dc4401da2ea80f734 /drivers/video/imxfb.c
parentec621699031b298eadd7e364f65281291b19ea37 (diff)
imxfb: Fix TFT mode
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>
Diffstat (limited to 'drivers/video/imxfb.c')
-rw-r--r--drivers/video/imxfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c
index 8f7a2b2c78e7..15a0ee6d8e23 100644
--- a/drivers/video/imxfb.c
+++ b/drivers/video/imxfb.c
@@ -327,7 +327,7 @@ static int imxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
327 break; 327 break;
328 case 16: 328 case 16:
329 default: 329 default:
330 if (readl(fbi->regs + LCDC_PCR) & PCR_TFT) 330 if (fbi->pcr & PCR_TFT)
331 rgb = &def_rgb_16_tft; 331 rgb = &def_rgb_16_tft;
332 else 332 else
333 rgb = &def_rgb_16_stn; 333 rgb = &def_rgb_16_stn;