@@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(display_mcux_elcdif, CONFIG_DISPLAY_LOG_LEVEL);
31
31
K_HEAP_DEFINE (display_heap , CONFIG_MCUX_ELCDIF_FB_NUM * CONFIG_MCUX_ELCDIF_FB_SIZE + 512 );
32
32
33
33
static const uint32_t supported_fmts =
34
- PIXEL_FORMAT_BGR_565 | PIXEL_FORMAT_ARGB_8888 | PIXEL_FORMAT_RGB_888 ;
34
+ PIXEL_FORMAT_RGB_565 | PIXEL_FORMAT_ARGB_8888 | PIXEL_FORMAT_RGB_888 ;
35
35
36
36
struct mcux_elcdif_config {
37
37
LCDIF_Type * base ;
@@ -152,7 +152,7 @@ static int mcux_elcdif_write(const struct device *dev, const uint16_t x, const u
152
152
pxp_block .block_size = desc -> buf_size ;
153
153
154
154
/* DMA slot sets pixel format and rotation angle */
155
- if (dev_data -> pixel_format == PIXEL_FORMAT_BGR_565 ) {
155
+ if (dev_data -> pixel_format == PIXEL_FORMAT_RGB_565 ) {
156
156
pxp_dma .dma_slot = DMA_MCUX_PXP_FMT (DMA_MCUX_PXP_FMT_RGB565 );
157
157
} else if (dev_data -> pixel_format == PIXEL_FORMAT_RGB_888 ) {
158
158
pxp_dma .dma_slot = DMA_MCUX_PXP_FMT (DMA_MCUX_PXP_FMT_RGB888 );
@@ -274,7 +274,7 @@ static int mcux_elcdif_set_pixel_format(const struct device *dev,
274
274
}
275
275
276
276
dev_data -> rgb_mode = config -> rgb_mode ;
277
- if (pixel_format == PIXEL_FORMAT_BGR_565 ) {
277
+ if (pixel_format == PIXEL_FORMAT_RGB_565 ) {
278
278
dev_data -> rgb_mode .pixelFormat = kELCDIF_PixelFormatRGB565 ;
279
279
} else if (pixel_format == PIXEL_FORMAT_RGB_888 ) {
280
280
dev_data -> rgb_mode .pixelFormat = kELCDIF_PixelFormatRGB888 ;
0 commit comments