diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2015-03-04 14:05:02 +0900 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2015-04-13 12:44:54 +0200 |
commit | b79314223c6e76cade7d701e3add742bb0bad5de (patch) | |
tree | 5204e98ad0a6a34fddb80bd89efc1f6ef3d39b08 | |
parent | 84eb5fcc1abe4e948ad3425a3ff94fe96a1fb33e (diff) | |
download | linux-exynos-b79314223c6e76cade7d701e3add742bb0bad5de.tar.gz linux-exynos-b79314223c6e76cade7d701e3add742bb0bad5de.tar.bz2 linux-exynos-b79314223c6e76cade7d701e3add742bb0bad5de.zip |
drm/exynos: add ARGB8888 support for ipp fimc
This patch adds ARGB8888 support for ipp fimc driver.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exynos/exynos_drm_fimc.c index 842d6b8dc3c4..0418958ec329 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c @@ -422,6 +422,7 @@ static int fimc_src_set_fmt_order(struct fimc_context *ctx, u32 fmt) return 0; case DRM_FORMAT_RGB888: case DRM_FORMAT_XRGB8888: + case DRM_FORMAT_ARGB8888: cfg |= EXYNOS_CISCCTRL_INRGB_FMT_RGB888; fimc_write(ctx, cfg, EXYNOS_CISCCTRL); return 0; @@ -490,6 +491,7 @@ static int fimc_src_set_fmt(struct device *dev, u32 fmt) case DRM_FORMAT_RGB565: case DRM_FORMAT_RGB888: case DRM_FORMAT_XRGB8888: + case DRM_FORMAT_ARGB8888: cfg |= EXYNOS_MSCTRL_INFORMAT_RGB; break; case DRM_FORMAT_YUV444: @@ -765,6 +767,7 @@ static int fimc_dst_set_fmt_order(struct fimc_context *ctx, u32 fmt) fimc_write(ctx, cfg, EXYNOS_CISCCTRL); return 0; case DRM_FORMAT_XRGB8888: + case DRM_FORMAT_ARGB8888: cfg |= (EXYNOS_CISCCTRL_OUTRGB_FMT_RGB888 | EXYNOS_CISCCTRL_EXTRGB_EXTENSION); fimc_write(ctx, cfg, EXYNOS_CISCCTRL); @@ -782,6 +785,7 @@ static int fimc_dst_set_fmt_order(struct fimc_context *ctx, u32 fmt) switch (fmt) { case DRM_FORMAT_XRGB8888: + case DRM_FORMAT_ARGB8888: cfg |= EXYNOS_CIOCTRL_ALPHA_OUT; break; case DRM_FORMAT_YUYV: @@ -845,6 +849,7 @@ static int fimc_dst_set_fmt(struct device *dev, u32 fmt) case DRM_FORMAT_RGB565: case DRM_FORMAT_RGB888: case DRM_FORMAT_XRGB8888: + case DRM_FORMAT_ARGB8888: cfg |= EXYNOS_CITRGFMT_OUTFORMAT_RGB; break; case DRM_FORMAT_YUYV: |