Skip to content

Commit 94655d2

Browse files
tq-delimayukikartben
authored andcommitted
drivers: display_mcux_elcdif: enable RGB_888 pixel format
Add missing define in order to enable RGB_888 pixel format support on the mcux_elcdif driver. Tested with TM070JVHG33 display Signed-off-by: Isaac Yuki <isaaclucas.delimayuki@tq-group.com>
1 parent 78b9658 commit 94655d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/display/display_mcux_elcdif.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ LOG_MODULE_REGISTER(display_mcux_elcdif, CONFIG_DISPLAY_LOG_LEVEL);
3030
/* Define the heap size. 512 bytes of padding are included for kernel heap structures */
3131
K_HEAP_DEFINE(display_heap, CONFIG_MCUX_ELCDIF_FB_NUM * CONFIG_MCUX_ELCDIF_FB_SIZE + 512);
3232

33-
static const uint32_t supported_fmts = PIXEL_FORMAT_BGR_565 | PIXEL_FORMAT_ARGB_8888;
33+
static const uint32_t supported_fmts =
34+
PIXEL_FORMAT_BGR_565 | PIXEL_FORMAT_ARGB_8888 | PIXEL_FORMAT_RGB_888;
3435

3536
struct mcux_elcdif_config {
3637
LCDIF_Type *base;

0 commit comments

Comments
 (0)