]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
drm: xilinx: dp_sub: Add 8 bit planar YUV formats
authorHyun Kwon <hyun.kwon@xilinx.com>
Mon, 15 May 2017 23:22:00 +0000 (16:22 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 20 Jun 2017 12:13:37 +0000 (14:13 +0200)
Add support for 8bit planar YUV formats.

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

index ac0a36d3e9f496005f2709afe0c4b6e0a6220fc5..f09889105df372f2e7c3c79929d8d05fb254777f 100644 (file)
@@ -593,6 +593,46 @@ static const struct xilinx_drm_dp_sub_fmt av_buf_vid_fmts[] = {
                .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
                .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
                .name           = "yvyu",
+       }, {
+               .drm_fmt        = DRM_FORMAT_YUV422,
+               .dp_sub_fmt     = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16,
+               .rgb            = false,
+               .swap           = false,
+               .chroma_sub     = true,
+               .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .name           = "yuv422",
+       }, {
+               .drm_fmt        = DRM_FORMAT_YVU422,
+               .dp_sub_fmt     = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16,
+               .rgb            = false,
+               .swap           = true,
+               .chroma_sub     = true,
+               .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .name           = "yvu422",
+       }, {
+               .drm_fmt        = DRM_FORMAT_YUV444,
+               .dp_sub_fmt     = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV24,
+               .rgb            = false,
+               .swap           = false,
+               .chroma_sub     = false,
+               .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .name           = "yuv444",
+       }, {
+               .drm_fmt        = DRM_FORMAT_YVU444,
+               .dp_sub_fmt     = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV24,
+               .rgb            = false,
+               .swap           = true,
+               .chroma_sub     = false,
+               .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .name           = "yvu444",
        }, {
                .drm_fmt        = DRM_FORMAT_NV16,
                .dp_sub_fmt     = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16CI,
@@ -673,6 +713,26 @@ static const struct xilinx_drm_dp_sub_fmt av_buf_vid_fmts[] = {
                .sf[1]          = XILINX_DP_SUB_AV_BUF_10BIT_SF,
                .sf[2]          = XILINX_DP_SUB_AV_BUF_10BIT_SF,
                .name           = "xrgb2101010",
+       }, {
+               .drm_fmt        = DRM_FORMAT_YUV420,
+               .dp_sub_fmt     = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16_420,
+               .rgb            = false,
+               .swap           = false,
+               .chroma_sub     = true,
+               .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .name           = "yuv420",
+       }, {
+               .drm_fmt        = DRM_FORMAT_YVU420,
+               .dp_sub_fmt     = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16_420,
+               .rgb            = false,
+               .swap           = true,
+               .chroma_sub     = true,
+               .sf[0]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[1]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .sf[2]          = XILINX_DP_SUB_AV_BUF_8BIT_SF,
+               .name           = "yvu420",
        }, {
                .drm_fmt        = DRM_FORMAT_NV12,
                .dp_sub_fmt     = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16CI_420,