diff options
| author | Koji Matsuoka <koji.matsuoka.xm@renesas.com> | 2018-08-31 14:12:58 -0400 |
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2018-09-15 10:28:33 -0400 |
| commit | 0f35b25b87923394cd9048a199d05e994fbf8bae (patch) | |
| tree | b0a96fc4e84be081df2a02f04dfcbae12505d9ce /drivers | |
| parent | 2a3181d9cfd6d5aa48f8527708d0c32072072cef (diff) | |
drm: rcar-du: Add support for missing pixel formats
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 <koji.matsuoka.xm@renesas.com>
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[Reordered formats with RGB first]
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_kms.c | 32 |
1 files changed, 32 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 7c7aff8cdf77..a58a96948850 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c | |||
| @@ -97,6 +97,38 @@ static const struct rcar_du_format_info rcar_du_format_infos[] = { | |||
| 97 | * associated .pnmr or .edf settings. | 97 | * associated .pnmr or .edf settings. |
| 98 | */ | 98 | */ |
| 99 | { | 99 | { |
| 100 | .fourcc = DRM_FORMAT_RGB332, | ||
| 101 | .bpp = 8, | ||
| 102 | .planes = 1, | ||
| 103 | }, { | ||
| 104 | .fourcc = DRM_FORMAT_ARGB4444, | ||
| 105 | .bpp = 16, | ||
| 106 | .planes = 1, | ||
| 107 | }, { | ||
| 108 | .fourcc = DRM_FORMAT_XRGB4444, | ||
| 109 | .bpp = 16, | ||
| 110 | .planes = 1, | ||
| 111 | }, { | ||
| 112 | .fourcc = DRM_FORMAT_BGR888, | ||
| 113 | .bpp = 24, | ||
| 114 | .planes = 1, | ||
| 115 | }, { | ||
| 116 | .fourcc = DRM_FORMAT_RGB888, | ||
| 117 | .bpp = 24, | ||
| 118 | .planes = 1, | ||
| 119 | }, { | ||
| 120 | .fourcc = DRM_FORMAT_BGRA8888, | ||
| 121 | .bpp = 32, | ||
| 122 | .planes = 1, | ||
| 123 | }, { | ||
| 124 | .fourcc = DRM_FORMAT_BGRX8888, | ||
| 125 | .bpp = 32, | ||
| 126 | .planes = 1, | ||
| 127 | }, { | ||
| 128 | .fourcc = DRM_FORMAT_YVYU, | ||
| 129 | .bpp = 16, | ||
| 130 | .planes = 1, | ||
| 131 | }, { | ||
| 100 | .fourcc = DRM_FORMAT_NV61, | 132 | .fourcc = DRM_FORMAT_NV61, |
| 101 | .bpp = 16, | 133 | .bpp = 16, |
| 102 | .planes = 2, | 134 | .planes = 2, |
