summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/dsi.c
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@google.com>2020-02-12 11:51:49 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-02-17 15:39:09 +0000
commitb4a2938f0936985bca4b3715eddb1392ef422297 (patch)
tree95a2e4bf440919ab52d5effbabee6e0bd5408919 /src/soc/mediatek/common/dsi.c
parenta151311b5958e811cafc436ca25119fbe98b991a (diff)
downloadcoreboot-b4a2938f0936985bca4b3715eddb1392ef422297.tar.xz
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 <yupingso@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38845 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Jitao Shi <jitao.shi@mediatek.corp-partner.google.com> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/common/dsi.c')
-rw-r--r--src/soc/mediatek/common/dsi.c2
1 files changed, 1 insertions, 1 deletions
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;
}