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:
parent
ded77bccb3
commit
2ea6130535
1 changed files with 6 additions and 0 deletions
|
@ -89,7 +89,13 @@ static int dma_mcux_pxp_configure(const struct device *dev, uint32_t channel,
|
||||||
bytes_per_pixel = 2;
|
bytes_per_pixel = 2;
|
||||||
break;
|
break;
|
||||||
case DMA_MCUX_PXP_FMT_RGB888:
|
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;
|
ps_buffer_cfg.pixelFormat = kPXP_PsPixelFormatRGB888;
|
||||||
|
#endif
|
||||||
output_buffer_cfg.pixelFormat = kPXP_OutputPixelFormatRGB888;
|
output_buffer_cfg.pixelFormat = kPXP_OutputPixelFormatRGB888;
|
||||||
bytes_per_pixel = 3;
|
bytes_per_pixel = 3;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue