1 From 9c5d91f6b938c23065ddc21c8654c5e222c35687 Mon Sep 17 00:00:00 2001
2 From: Jan Kehren <jan.kehren@emteria.com>
3 Date: Fri, 16 Aug 2024 13:47:50 +0000
4 Subject: [PATCH 1222/1350] drm: rp1: rp1-dsi: Add DRM_FORMAT_ARGB8888 and
8 As the underlying hardware doesn't support alpha blending,
9 we ignore the alpha value.
11 Signed-off-by: Jan Kehren <jan.kehren@emteria.com>
13 drivers/gpu/drm/rp1/rp1-dsi/rp1_dsi.c | 2 ++
14 drivers/gpu/drm/rp1/rp1-dsi/rp1_dsi_dma.c | 12 ++++++++++++
15 2 files changed, 14 insertions(+)
17 --- a/drivers/gpu/drm/rp1/rp1-dsi/rp1_dsi.c
18 +++ b/drivers/gpu/drm/rp1/rp1-dsi/rp1_dsi.c
19 @@ -229,6 +229,8 @@ static const struct drm_mode_config_func
20 static const u32 rp1dsi_formats[] = {
23 + DRM_FORMAT_ARGB8888,
24 + DRM_FORMAT_ABGR8888,
28 --- a/drivers/gpu/drm/rp1/rp1-dsi/rp1_dsi_dma.c
29 +++ b/drivers/gpu/drm/rp1/rp1-dsi/rp1_dsi_dma.c
30 @@ -247,6 +247,18 @@ static const struct rp1dsi_ipixfmt my_fo
31 .rgbsz = BITS(DPI_DMA_RGBSZ_BPP, 3),
34 + .format = DRM_FORMAT_ARGB8888,
35 + .mask = IMASK_RGB(0x3fc, 0x3fc, 0x3fc),
36 + .shift = ISHIFT_RGB(23, 15, 7),
37 + .rgbsz = BITS(DPI_DMA_RGBSZ_BPP, 3),
40 + .format = DRM_FORMAT_ABGR8888,
41 + .mask = IMASK_RGB(0x3fc, 0x3fc, 0x3fc),
42 + .shift = ISHIFT_RGB(7, 15, 23),
43 + .rgbsz = BITS(DPI_DMA_RGBSZ_BPP, 3),
46 .format = DRM_FORMAT_RGB888,
47 .mask = IMASK_RGB(0x3fc, 0x3fc, 0x3fc),
48 .shift = ISHIFT_RGB(23, 15, 7),