summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/fb.c
diff options
context:
space:
mode:
authorAri Hirvonen <ahirvonen@nvidia.com>2011-03-02 02:06:27 +0200
committerRohan Somvanshi <rsomvanshi@nvidia.com>2011-05-27 19:52:32 -0700
commit60c73b63e651413fb8fba2c03b32c21843e8de22 (patch)
tree489d69cd9785ef8f40317ae1cd057c1cb2a4126f /drivers/video/tegra/fb.c
parentb5d5cd3e4e7af0915d2013f578f285244d7e5acd (diff)
video: tegra: add display inversion support
Change-Id: I6ec62abdaf3a8ec2e59e2a533b36b280d69538e1 Signed-off-by: Ari Hirvonen <ahirvonen@nvidia.com> Reviewed-on: http://git-master/r/33037 Reviewed-by: Michael I Gold <gold@nvidia.com> Tested-by: Michael I Gold <gold@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/fb.c')
-rw-r--r--drivers/video/tegra/fb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index 21ed13a3b73f..d23199600269 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -407,6 +407,10 @@ static int tegra_fb_set_windowattr(struct tegra_fb_info *tegra_fb,
win->flags |= TEGRA_WIN_FLAG_BLEND_PREMULT;
else if (flip_win->attr.blend == TEGRA_FB_WIN_BLEND_COVERAGE)
win->flags |= TEGRA_WIN_FLAG_BLEND_COVERAGE;
+ if (flip_win->attr.flags & TEGRA_FB_WIN_FLAG_INVERT_H)
+ win->flags |= TEGRA_WIN_FLAG_INVERT_H;
+ if (flip_win->attr.flags & TEGRA_FB_WIN_FLAG_INVERT_V)
+ win->flags |= TEGRA_WIN_FLAG_INVERT_V;
if (flip_win->attr.layout == TEGRA_FB_WIN_LAYOUT_TILED)
win->flags |= TEGRA_WIN_FLAG_TILED;