diff options
author | Hyun Kwon <hyun.kwon@xilinx.com> | 2016-11-09 10:37:12 -0800 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-11-14 15:45:07 +0100 |
commit | bb44c44f7db0a83dedeade47f2341f1d35b2756e (patch) | |
tree | b5732b1802dade04918a35a55d725937c4dd8ac6 | |
parent | f3e9d2bb8893ab92c566bdbed3299ceac68fe62e (diff) | |
download | linux-bb44c44f7db0a83dedeade47f2341f1d35b2756e.tar.gz |
drm: xilinx: drv: Add and fix formats
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>
-rw-r--r-- | drivers/gpu/drm/xilinx/xilinx_drm_drv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xilinx/xilinx_drm_drv.c b/drivers/gpu/drm/xilinx/xilinx_drm_drv.c index 56dd3e4678d8d7..9af14a91f7db56 100644 --- a/drivers/gpu/drm/xilinx/xilinx_drm_drv.c +++ b/drivers/gpu/drm/xilinx/xilinx_drm_drv.c @@ -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 }, |