diff options
author | Guoniu.Zhou <guoniu.zhou@nxp.com> | 2019-02-11 11:24:21 +0800 |
---|---|---|
committer | Guoniu.Zhou <guoniu.zhou@nxp.com> | 2019-02-14 16:32:44 +0800 |
commit | a6261cd003d050f005e88865396b86e48cd10fab (patch) | |
tree | c9fcd282ccbe2b790e13e6ddfd0bfeef28a9c7b6 /drivers/dma | |
parent | 36e36d3c529a16b7b00faddf967bfbf828309a56 (diff) |
MLK-20882: pxp: add VUY444 format support for PXP PS engine
VUY444 is supported by PXP HW but driver miss it. so add it
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 57e9b876954170cd0718eb8af8666573ebb26bb4)
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pxp/pxp_dma_v3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/pxp/pxp_dma_v3.c b/drivers/dma/pxp/pxp_dma_v3.c index 647fdd3e4b06..2704916df0f6 100644 --- a/drivers/dma/pxp/pxp_dma_v3.c +++ b/drivers/dma/pxp/pxp_dma_v3.c @@ -1148,6 +1148,7 @@ static uint8_t is_yuv(uint32_t format) case PXP_PIX_FMT_VYUY: case PXP_PIX_FMT_YUV444: case PXP_PIX_FMT_YVU444: + case PXP_PIX_FMT_VUY444: return 1; case PXP_PIX_FMT_NV12: case PXP_PIX_FMT_NV21: @@ -1209,6 +1210,7 @@ static u32 get_bpp_from_fmt(u32 pix_fmt) case PXP_PIX_FMT_BGRA32: case PXP_PIX_FMT_YUV444: case PXP_PIX_FMT_YVU444: + case PXP_PIX_FMT_VUY444: bpp = 32; break; default: @@ -1892,6 +1894,7 @@ static bool fmt_ps_support(uint32_t format) case PXP_PIX_FMT_RGB565: case PXP_PIX_FMT_YUV444: case PXP_PIX_FMT_UYVY: + case PXP_PIX_FMT_VUY444: /* need word byte swap */ case PXP_PIX_FMT_YUYV: case PXP_PIX_FMT_VYUY: |