drm/imx: enable ARGB4444 16-bit color format
authorLucas Stach <l.stach@pengutronix.de>
Tue, 4 Aug 2015 15:22:06 +0000 (17:22 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 30 Oct 2015 16:13:47 +0000 (17:13 +0100)
This patch allows to use the ARGB4444 color format on planes.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/ipuv3-plane.c

index d0309900e634a70ffce9919a9f7f6e059f599761..575f4c84388f0c64f54d2cdf598064011cfffd6e 100644 (file)
@@ -29,6 +29,7 @@ static const uint32_t ipu_plane_formats[] = {
        DRM_FORMAT_XBGR1555,
        DRM_FORMAT_RGBA5551,
        DRM_FORMAT_BGRA5551,
+       DRM_FORMAT_ARGB4444,
        DRM_FORMAT_ARGB8888,
        DRM_FORMAT_XRGB8888,
        DRM_FORMAT_ABGR8888,
@@ -187,6 +188,7 @@ int ipu_plane_mode_set(struct ipu_plane *ipu_plane, struct drm_crtc *crtc,
                case DRM_FORMAT_ABGR1555:
                case DRM_FORMAT_RGBA5551:
                case DRM_FORMAT_BGRA5551:
+               case DRM_FORMAT_ARGB4444:
                case DRM_FORMAT_ARGB8888:
                case DRM_FORMAT_ABGR8888:
                case DRM_FORMAT_RGBA8888: