diff options
author | Jason Chen <b02280@freescale.com> | 2011-11-21 10:11:42 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 21:07:32 +0800 |
commit | 5a05652bcc9616bd9ac2054da8d1f5b523c3fc28 (patch) | |
tree | 53ac77078361bd946a78220146ecfd46f2ea19b5 /drivers/video | |
parent | 66e3f3a638e1e7fc40a0017f655d6978086a43d9 (diff) |
ENGR00162663 ipuv3 fb: add vertical flip support
support vertical flip for fb.
just set it by:
echo 1 > /sys/class/graphics/fb0/rotate
Signed-off-by: Jason Chen <b02280@freescale.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/mxc/mxc_ipuv3_fb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c index 4004ddf10fc9..e669590f979c 100644 --- a/drivers/video/mxc/mxc_ipuv3_fb.c +++ b/drivers/video/mxc/mxc_ipuv3_fb.c @@ -241,7 +241,7 @@ static int _setup_disp_channel2(struct fb_info *fbi) bpp_to_pixfmt(fbi), fbi->var.xres, fbi->var.yres, fb_stride, - IPU_ROTATE_NONE, + fbi->var.rotate, base, base, fbi->var.accel_flags & @@ -259,7 +259,7 @@ static int _setup_disp_channel2(struct fb_info *fbi) IPU_PIX_FMT_GENERIC, fbi->var.xres, fbi->var.yres, fbi->var.xres, - IPU_ROTATE_NONE, + fbi->var.rotate, mxc_fbi->alpha_phy_addr1, mxc_fbi->alpha_phy_addr0, 0, @@ -574,6 +574,9 @@ static int mxcfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) var->yres = bg_yres - pos_y; } + if (var->rotate > IPU_ROTATE_VERT_FLIP) + var->rotate = IPU_ROTATE_NONE; + if (var->xres_virtual < var->xres) var->xres_virtual = var->xres; |