]> Git Repo - linux.git/commitdiff
drm: rcar-du: Add support for missing pixel formats
authorKoji Matsuoka <[email protected]>
Fri, 31 Aug 2018 18:12:58 +0000 (19:12 +0100)
committerLaurent Pinchart <[email protected]>
Sat, 15 Sep 2018 14:28:33 +0000 (17:28 +0300)
This patch supports pixel format of RGB332, ARGB4444, XRGB4444,
BGR888, RGB888, BGRA8888, BGRX8888 and YVYU.
VYUY pixel format is not supported by H/W specification.

Signed-off-by: Koji Matsuoka <[email protected]>
Signed-off-by: Kieran Bingham <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
[Reordered formats with RGB first]
Signed-off-by: Laurent Pinchart <[email protected]>
drivers/gpu/drm/rcar-du/rcar_du_kms.c

index 7c7aff8cdf77d298462ce8e1da36ac0848bb77e6..a58a96948850af05b870bc04b686ed68f49d2e44 100644 (file)
@@ -97,6 +97,38 @@ static const struct rcar_du_format_info rcar_du_format_infos[] = {
         * associated .pnmr or .edf settings.
         */
        {
+               .fourcc = DRM_FORMAT_RGB332,
+               .bpp = 8,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_ARGB4444,
+               .bpp = 16,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_XRGB4444,
+               .bpp = 16,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_BGR888,
+               .bpp = 24,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_RGB888,
+               .bpp = 24,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_BGRA8888,
+               .bpp = 32,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_BGRX8888,
+               .bpp = 32,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_YVYU,
+               .bpp = 16,
+               .planes = 1,
+       }, {
                .fourcc = DRM_FORMAT_NV61,
                .bpp = 16,
                .planes = 2,
This page took 0.059498 seconds and 4 git commands to generate.