drivers: dma_pxp: Update to the PXP DMA per SDK 2.14 changes

Some macros have been redefined in SDK 2.14

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2023-09-14 15:02:50 +01:00 committed by David Leach
commit 2ea6130535

View file

@ -89,7 +89,13 @@ static int dma_mcux_pxp_configure(const struct device *dev, uint32_t channel,
bytes_per_pixel = 2;
break;
case DMA_MCUX_PXP_FMT_RGB888:
#if (!(defined(FSL_FEATURE_PXP_HAS_NO_EXTEND_PIXEL_FORMAT) && \
FSL_FEATURE_PXP_HAS_NO_EXTEND_PIXEL_FORMAT)) && \
(!(defined(FSL_FEATURE_PXP_V3) && FSL_FEATURE_PXP_V3))
ps_buffer_cfg.pixelFormat = kPXP_PsPixelFormatARGB8888;
#else
ps_buffer_cfg.pixelFormat = kPXP_PsPixelFormatRGB888;
#endif
output_buffer_cfg.pixelFormat = kPXP_OutputPixelFormatRGB888;
bytes_per_pixel = 3;
break;