From: Philipp Zabel
Date: Thu, 10 Oct 2013 14:18:42 +0000 (+0200)
Subject: staging: drm-imx: add DRM_FORMAT_BGR888 to ipu crtc driver
X-Git-Tag: v3.13-rc1~170^2~374
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=974aa7431816f74e8a3af51a0f46ba001d416878;p=kernel%2Fkernel-generic.git
staging: drm-imx: add DRM_FORMAT_BGR888 to ipu crtc driver
Signed-off-by: Philipp Zabel
Signed-off-by: Greg Kroah-Hartman
---
diff --git a/drivers/staging/imx-drm/ipuv3-crtc.c b/drivers/staging/imx-drm/ipuv3-crtc.c
index 574633b..f63931b 100644
--- a/drivers/staging/imx-drm/ipuv3-crtc.c
+++ b/drivers/staging/imx-drm/ipuv3-crtc.c
@@ -223,6 +223,10 @@ static int ipu_crtc_mode_set(struct drm_crtc *crtc,
v4l2_fmt = V4L2_PIX_FMT_RGB24;
bpp = 24;
break;
+ case DRM_FORMAT_BGR888:
+ v4l2_fmt = V4L2_PIX_FMT_BGR24;
+ bpp = 24;
+ break;
default:
dev_err(ipu_crtc->dev, "unsupported pixel format 0x%08x\n",
fb->pixel_format);