staging: drm-imx: add DRM_FORMAT_BGR888 to ipu crtc driver
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 10 Oct 2013 14:18:42 +0000 (16:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:30:33 +0000 (15:30 -0700)
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/ipuv3-crtc.c

index 574633b9bc13abbacdc727d3d9515bed1018bfe3..f63931b840756d0ef3c7af9eda92b9a66ba8b04d 100644 (file)
@@ -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);