Skip to content

Commit 1b689a9

Browse files
6by9pelwell
authored andcommitted
drm/vc4: For DPI, MEDIA_BUS_FMT_RGB565_1X16 is mode 1, not 3.
The mapping is incorrect for RGB565_1X16 as it should be DPI_FORMAT_18BIT_666_RGB_1 instead of DPI_FORMAT_18BIT_666_RGB_3. Signed-off-by: Dave Stevenson <[email protected]>
1 parent de9c455 commit 1b689a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vc4/vc4_dpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static void vc4_dpi_encoder_enable(struct drm_encoder *encoder)
188188
DPI_ORDER);
189189
break;
190190
case MEDIA_BUS_FMT_RGB565_1X16:
191-
dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_3,
191+
dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_1,
192192
DPI_FORMAT);
193193
break;
194194
case MEDIA_BUS_FMT_RGB565_1X24_CPADHI:

0 commit comments

Comments
 (0)