From 14b08a1675c74ef41117d521852808e05682fda3 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 4 Mar 2015 14:05:02 +0900 Subject: [PATCH] drm/exynos: add ARGB8888 support for ipp fimc This patch adds ARGB8888 support for ipp fimc driver. Signed-off-by: Seung-Woo Kim --- drivers/gpu/drm/exynos/exynos_drm_fimc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exynos/exynos_drm_fimc.c index 5465ead..0d3a2ae 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: -- 2.7.4