diff options
author | Guoniu.Zhou <guoniu.zhou@nxp.com> | 2017-09-05 17:58:02 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 7bd280053cfb48581212ab29246b3c43362acac9 (patch) | |
tree | 660fb4376b78c1d170ac2310ffa61348a63b9c19 /drivers/dma | |
parent | 4220650cbcc89a96ff83c34d543b1f8ef5e66149 (diff) |
MLK-16374-2: PxP: add new format support for as and out buffer
1) add PXP_PIX_FMT_BGRA32 format support for AS buffer
2) add PXP_PIX_FMT_BGRA32 format support for OUT buffer
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 4eeefd54cdbb8d1d3ffd64bd444ea7b759101a35)
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pxp/pxp_dma_v3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/pxp/pxp_dma_v3.c b/drivers/dma/pxp/pxp_dma_v3.c index a059a690f08d..b4886d0c2ace 100644 --- a/drivers/dma/pxp/pxp_dma_v3.c +++ b/drivers/dma/pxp/pxp_dma_v3.c @@ -1291,6 +1291,7 @@ static uint32_t pxp_parse_as_fmt(uint32_t format) uint32_t fmt_ctrl; switch (format) { + case PXP_PIX_FMT_BGRA32: case PXP_PIX_FMT_ARGB32: fmt_ctrl = BV_PXP_AS_CTRL_FORMAT__ARGB8888; break; @@ -1335,6 +1336,7 @@ static uint32_t pxp_parse_out_fmt(uint32_t format) uint32_t fmt_ctrl; switch (format) { + case PXP_PIX_FMT_BGRA32: case PXP_PIX_FMT_ARGB32: fmt_ctrl = BV_PXP_OUT_CTRL_FORMAT__ARGB8888; break; @@ -1892,6 +1894,7 @@ static bool fmt_as_support(uint32_t format) case PXP_PIX_FMT_ARGB32: case PXP_PIX_FMT_RGBA32: case PXP_PIX_FMT_XRGB32: + case PXP_PIX_FMT_BGRA32: case PXP_PIX_FMT_ARGB555: case PXP_PIX_FMT_ARGB444: case PXP_PIX_FMT_RGBA555: @@ -1910,6 +1913,7 @@ static bool fmt_out_support(uint32_t format) switch (format) { case PXP_PIX_FMT_ARGB32: case PXP_PIX_FMT_XRGB32: + case PXP_PIX_FMT_BGRA32: case PXP_PIX_FMT_RGB24: case PXP_PIX_FMT_ARGB555: case PXP_PIX_FMT_ARGB444: |