]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commitdiff
drm: xilinx: drv: Add and fix formats
authorHyun Kwon <hyun.kwon@xilinx.com>
Wed, 9 Nov 2016 18:37:12 +0000 (10:37 -0800)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 14 Nov 2016 14:45:07 +0000 (15:45 +0100)
Add more formats and correct DRM format fourcc.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpu/drm/xilinx/xilinx_drm_drv.c

index 56dd3e4678d8d73ba4d1312f8ba5a9c56fc94eda..9af14a91f7db563472b9d46d5b2cef9f211ac965 100644 (file)
@@ -74,7 +74,10 @@ struct xilinx_video_format_desc {
 
 static const struct xilinx_video_format_desc xilinx_video_formats[] = {
        { "yuv420", 16, 16, XILINX_VIDEO_FORMAT_YUV420, DRM_FORMAT_YUV420 },
+       { "uvy422", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_UYVY },
+       { "vuy422", 16, 16, XILINX_VIDEO_FORMAT_YUV422, DRM_FORMAT_VYUY },
        { "yuv422", 16, 16, XILINX_VIDEO_FORMAT_YUV422, DRM_FORMAT_YUYV },
+       { "yvu422", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_YVYU },
        { "yuv444", 24, 24, XILINX_VIDEO_FORMAT_YUV444, DRM_FORMAT_YUV444 },
        { "nv12", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_NV12 },
        { "nv21", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_NV21 },
@@ -82,8 +85,8 @@ static const struct xilinx_video_format_desc xilinx_video_formats[] = {
        { "nv61", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_NV61 },
        { "abgr1555", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_ABGR1555 },
        { "argb1555", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_ARGB1555 },
-       { "abgr4444", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_ABGR4444 },
-       { "argb4444", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_ARGB4444 },
+       { "rgba4444", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_RGBA4444 },
+       { "bgra4444", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_BGRA4444 },
        { "bgr565", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_BGR565 },
        { "rgb565", 16, 16, XILINX_VIDEO_FORMAT_NONE, DRM_FORMAT_RGB565 },
        { "bgr888", 24, 24, XILINX_VIDEO_FORMAT_RGB, DRM_FORMAT_BGR888 },