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-Url: https://git.stricted.de/?a=commitdiff_plain;h=974aa7431816f74e8a3af51a0f46ba001d416878;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 574633b9bc13..f63931b84075 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);