From b4a2938f0936985bca4b3715eddb1392ef422297 Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Wed, 12 Feb 2020 11:51:49 +0800 Subject: soc/mediatek: dsi: Correct bits_per_pixel for MIPI_DSI_FMT_RGB666 The number of bits per pixel for MIPI_DSI_FMT_RGB666 should be 24 instead of 18. BRANCH=none BUG=none TEST=none Change-Id: I9574502b2dec4b5a042df3886922ddd8c755da1a Signed-off-by: Yu-Ping Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/38845 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Jitao Shi Reviewed-by: Hung-Te Lin --- src/soc/mediatek/common/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/mediatek/common') diff --git a/src/soc/mediatek/common/dsi.c b/src/soc/mediatek/common/dsi.c index be99fe8992..03e177e569 100644 --- a/src/soc/mediatek/common/dsi.c +++ b/src/soc/mediatek/common/dsi.c @@ -28,9 +28,9 @@ static unsigned int mtk_dsi_get_bits_per_pixel(u32 format) switch (format) { case MIPI_DSI_FMT_RGB565: return 16; - case MIPI_DSI_FMT_RGB666: case MIPI_DSI_FMT_RGB666_PACKED: return 18; + case MIPI_DSI_FMT_RGB666: case MIPI_DSI_FMT_RGB888: return 24; } -- cgit v1.2.3