aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2019-03-28 01:31:32 -0400
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2019-06-08 09:36:41 -0400
commite158dbb0e6b6ffb331abdacb38d78a740f004c5e (patch)
treeb7d1f83cc603e738ce4d282d4cf4a85ae1303e31 /drivers/gpu
parent329972a9db8a9004f32600ff24a8ae356dd52226 (diff)
drm: rcar-du: Add support for missing 16-bit RGB4444 formats
Add support for the DRM_FORMAT_RGBA4444, DRM_FORMAT_RGBX4444, DRM_FORMAT_ABGR4444, DRM_FORMAT_XBGR4444, DRM_FORMAT_BGRA4444 and DRM_FORMAT_BGRX4444 formats to the DU driver. Those formats are only available on Gen3. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Acked-by: Daniel Vetter <daniel@ffwll.ch>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_kms.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.c b/drivers/gpu/drm/rcar-du/rcar_du_kms.c
index 5d934544090f..a6deb7916daa 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c
@@ -124,6 +124,36 @@ static const struct rcar_du_format_info rcar_du_format_infos[] = {
124 .bpp = 16, 124 .bpp = 16,
125 .planes = 1, 125 .planes = 1,
126 }, { 126 }, {
127 .fourcc = DRM_FORMAT_RGBA4444,
128 .v4l2 = V4L2_PIX_FMT_RGBA444,
129 .bpp = 16,
130 .planes = 1,
131 }, {
132 .fourcc = DRM_FORMAT_RGBX4444,
133 .v4l2 = V4L2_PIX_FMT_RGBX444,
134 .bpp = 16,
135 .planes = 1,
136 }, {
137 .fourcc = DRM_FORMAT_ABGR4444,
138 .v4l2 = V4L2_PIX_FMT_ABGR444,
139 .bpp = 16,
140 .planes = 1,
141 }, {
142 .fourcc = DRM_FORMAT_XBGR4444,
143 .v4l2 = V4L2_PIX_FMT_XBGR444,
144 .bpp = 16,
145 .planes = 1,
146 }, {
147 .fourcc = DRM_FORMAT_BGRA4444,
148 .v4l2 = V4L2_PIX_FMT_BGRA444,
149 .bpp = 16,
150 .planes = 1,
151 }, {
152 .fourcc = DRM_FORMAT_BGRX4444,
153 .v4l2 = V4L2_PIX_FMT_BGRX444,
154 .bpp = 16,
155 .planes = 1,
156 }, {
127 .fourcc = DRM_FORMAT_BGR888, 157 .fourcc = DRM_FORMAT_BGR888,
128 .v4l2 = V4L2_PIX_FMT_RGB24, 158 .v4l2 = V4L2_PIX_FMT_RGB24,
129 .bpp = 24, 159 .bpp = 24,