summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/mcde/mcde_display_regs.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-11-17 20:54:13 +0300
committerLinus Walleij <linus.walleij@linaro.org>2020-11-24 02:07:04 +0300
commit77f512bde99ad1ebc88f094d18702fa9589c2206 (patch)
tree2fa9bc82a3eaa50fba6be9c260b40b482fd69788 /drivers/gpu/drm/mcde/mcde_display_regs.h
parent04295bc3362d4e4259cc48128c89657735768fbc (diff)
downloadlinux-77f512bde99ad1ebc88f094d18702fa9589c2206.tar.xz
drm/mcde: Fix RGB/BGR bug
I was confused when the graphics came out with blue penguins on the DPI panel. It turns out that the so-called "packed RGB666" mode on the DSI formatter is incorrect: this mode is the actual RGB888 mode, and the mode called RGB888 is BGR888. The claims that the MCDE had inverse RGB/BGR buffer formats was wrong, so correct this and the buggy register and everything is much more consistent, and graphics look good on all targets, both DPI and DSI. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Cc: phone-devel@vger.kernel.org Cc: Stephan Gerhold <stephan@gerhold.net> Link: https://patchwork.freedesktop.org/patch/msgid/20201117175413.869871-1-linus.walleij@linaro.org
Diffstat (limited to 'drivers/gpu/drm/mcde/mcde_display_regs.h')
-rw-r--r--drivers/gpu/drm/mcde/mcde_display_regs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/mcde/mcde_display_regs.h b/drivers/gpu/drm/mcde/mcde_display_regs.h
index d3ac7ef5ff9a..3dc9b99c7c96 100644
--- a/drivers/gpu/drm/mcde/mcde_display_regs.h
+++ b/drivers/gpu/drm/mcde/mcde_display_regs.h
@@ -465,8 +465,8 @@
#define MCDE_DSICONF0_PACKING_MASK 0x00700000
#define MCDE_DSICONF0_PACKING_RGB565 0
#define MCDE_DSICONF0_PACKING_RGB666 1
-#define MCDE_DSICONF0_PACKING_RGB666_PACKED 2
-#define MCDE_DSICONF0_PACKING_RGB888 3
+#define MCDE_DSICONF0_PACKING_RGB888 2
+#define MCDE_DSICONF0_PACKING_BGR888 3
#define MCDE_DSICONF0_PACKING_HDTV 4
#define MCDE_DSIVID0FRAME 0x00000E04