summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuoniu.Zhou <guoniu.zhou@nxp.com>2017-09-05 17:58:02 +0800
committerGuoniu.Zhou <guoniu.zhou@nxp.com>2017-09-07 17:46:46 +0800
commit4eeefd54cdbb8d1d3ffd64bd444ea7b759101a35 (patch)
tree9735e9206df644e1497585467928247608f258cb
parent7c62393a556d043f88dd188edac3c0d250039358 (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>
-rw-r--r--drivers/dma/pxp/pxp_dma_v3.c4
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: