summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-g2d/g2d-hw.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-02-16 10:52:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 07:43:10 -0300
commitd0d2832658a1677c2ba339db068475851277af7d (patch)
treee7559f3f73c2308e0095ccf67385f1cbb5e4f252 /drivers/media/video/s5p-g2d/g2d-hw.c
parenteb732518e0db585376f95256b18b2149240e3ad3 (diff)
downloadtalos-op-linux-d0d2832658a1677c2ba339db068475851277af7d.tar.gz
talos-op-linux-d0d2832658a1677c2ba339db068475851277af7d.zip
[media] s5p-g2d: Add HFLIP and VFLIP support
Add support for flipping the image horizontally and vertically. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/s5p-g2d/g2d-hw.c')
-rw-r--r--drivers/media/video/s5p-g2d/g2d-hw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/s5p-g2d/g2d-hw.c b/drivers/media/video/s5p-g2d/g2d-hw.c
index 39937cf03c88..5b86cbe408e2 100644
--- a/drivers/media/video/s5p-g2d/g2d-hw.c
+++ b/drivers/media/video/s5p-g2d/g2d-hw.c
@@ -77,6 +77,11 @@ void g2d_set_rop4(struct g2d_dev *d, u32 r)
w(r, ROP4_REG);
}
+void g2d_set_flip(struct g2d_dev *d, u32 r)
+{
+ w(r, SRC_MSK_DIRECT_REG);
+}
+
u32 g2d_cmd_stretch(u32 e)
{
e &= 1;
OpenPOWER on IntegriCloud