summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/exynos-gsc/gsc-regs.c
diff options
context:
space:
mode:
authorShaik Ameer Basha <shaik.ameer@samsung.com>2012-11-07 07:37:07 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-21 13:18:48 +0100
commitaecede4c45ae32944e822ef98d4837733837887d (patch)
treed291d8f6b7754024c30d1c18d57576a2fd42996f /drivers/media/platform/exynos-gsc/gsc-regs.c
parent[media] ivtv: ivtv-driver: Replace 'flush_work_sync()' (diff)
downloadlinux-aecede4c45ae32944e822ef98d4837733837887d.tar.xz
linux-aecede4c45ae32944e822ef98d4837733837887d.zip
[media] exynos-gsc: Adding tiled multi-planar format to G-Scaler
Adding V4L2_PIX_FMT_NV12MT_16X16 to G-Scaler supported formats. If the output or input format is V4L2_PIX_FMT_NV12MT_16X16, configure G-Scaler to use GSC_IN_TILE_MODE. [s.nawrocki: shortened the pixel format description] Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/exynos-gsc/gsc-regs.c')
-rw-r--r--drivers/media/platform/exynos-gsc/gsc-regs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/platform/exynos-gsc/gsc-regs.c b/drivers/media/platform/exynos-gsc/gsc-regs.c
index 0146b354dc22..6f5b5a486cf3 100644
--- a/drivers/media/platform/exynos-gsc/gsc-regs.c
+++ b/drivers/media/platform/exynos-gsc/gsc-regs.c
@@ -214,6 +214,9 @@ void gsc_hw_set_in_image_format(struct gsc_ctx *ctx)
break;
}
+ if (is_tiled(frame->fmt))
+ cfg |= GSC_IN_TILE_C_16x8 | GSC_IN_TILE_MODE;
+
writel(cfg, dev->regs + GSC_IN_CON);
}
@@ -334,6 +337,9 @@ void gsc_hw_set_out_image_format(struct gsc_ctx *ctx)
break;
}
+ if (is_tiled(frame->fmt))
+ cfg |= GSC_OUT_TILE_C_16x8 | GSC_OUT_TILE_MODE;
+
end_set:
writel(cfg, dev->regs + GSC_OUT_CON);
}