diff options
author | Paul Cercueil <paul@crapouillou.net> | 2020-09-26 20:05:01 +0300 |
---|---|---|
committer | Paul Cercueil <paul@crapouillou.net> | 2020-09-26 22:56:04 +0300 |
commit | dba09e834f4ee6121346f2a7d40b7ee96d0b4b77 (patch) | |
tree | 52a9976657d20b09f7ceefab31b888d42f46a94d /drivers/gpu/drm/ingenic/ingenic-drm.h | |
parent | bb85760572ca24a76c3de644ce45cfb69f5a731a (diff) | |
download | linux-dba09e834f4ee6121346f2a7d40b7ee96d0b4b77.tar.xz |
drm/ingenic: Add support for 24-bit modes
Starting from the JZ4725B SoC, the primary and overlay planes support
24-bit pixel modes (8 bits per color component, without dummy byte).
Add support for these in the ingenic-drm driver.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200926170501.1109197-8-paul@crapouillou.net
Diffstat (limited to 'drivers/gpu/drm/ingenic/ingenic-drm.h')
-rw-r--r-- | drivers/gpu/drm/ingenic/ingenic-drm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.h b/drivers/gpu/drm/ingenic/ingenic-drm.h index f05e18e6b6fa..ee3a892c0383 100644 --- a/drivers/gpu/drm/ingenic/ingenic-drm.h +++ b/drivers/gpu/drm/ingenic/ingenic-drm.h @@ -124,6 +124,7 @@ #define JZ_LCD_CTRL_BPP_8 0x3 #define JZ_LCD_CTRL_BPP_15_16 0x4 #define JZ_LCD_CTRL_BPP_18_24 0x5 +#define JZ_LCD_CTRL_BPP_24_COMP 0x6 #define JZ_LCD_CTRL_BPP_30 0x7 #define JZ_LCD_CTRL_BPP_MASK (JZ_LCD_CTRL_RGB555 | 0x7) @@ -146,6 +147,7 @@ #define JZ_LCD_OSDCTRL_CHANGE BIT(3) #define JZ_LCD_OSDCTRL_BPP_15_16 0x4 #define JZ_LCD_OSDCTRL_BPP_18_24 0x5 +#define JZ_LCD_OSDCTRL_BPP_24_COMP 0x6 #define JZ_LCD_OSDCTRL_BPP_30 0x7 #define JZ_LCD_OSDCTRL_BPP_MASK (JZ_LCD_OSDCTRL_RGB555 | 0x7) |