diff options
author | Jason Chen <b02280@freescale.com> | 2011-01-14 18:30:48 +0800 |
---|---|---|
committer | Jason Chen <b02280@freescale.com> | 2011-01-17 10:35:20 +0800 |
commit | f8a69aa6bf401b5a682e88040cf7abbf53406e38 (patch) | |
tree | f5c60071120afb94565a580303aca8b3a8aa33fb | |
parent | 4c5783ca2c2048db7f877a467117ada0a462ab0d (diff) |
ENGR00137873 ipuv3 fb: can not set correct bpp for tve through cmdline
fb cmdline option bpp= should pass the default bpp to fb driver, for tve etc
case, it will set_var by itself, which var->bits_per_pixel = 0,
the mxcfb_check_var will then fix it to 16. It's not correct
when we need set bpp to other value.
Signed-off-by: Jason Chen <b02280@freescale.com>
-rw-r--r-- | drivers/video/mxc/mxc_ipuv3_fb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c index 6d574c37c7f..627b2a1fa00 100644 --- a/drivers/video/mxc/mxc_ipuv3_fb.c +++ b/drivers/video/mxc/mxc_ipuv3_fb.c @@ -1,5 +1,5 @@ /* - * Copyright 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved. */ /* @@ -605,6 +605,7 @@ static int mxcfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) if (var->yres_virtual < var->yres) var->yres_virtual = var->yres; + var->bits_per_pixel = mxc_fbi->default_bpp; if ((var->bits_per_pixel != 32) && (var->bits_per_pixel != 24) && (var->bits_per_pixel != 16) && (var->bits_per_pixel != 12) && (var->bits_per_pixel != 8)) |