summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorRobby Cai <R63905@freescale.com>2012-09-27 16:29:07 +0800
committerRobby Cai <R63905@freescale.com>2012-09-29 16:55:45 +0800
commit4bac7fa77ebfc6300c6c63af8dd1887c7a0b5e7c (patch)
tree9122e577c651516a41c525b2cc2c741f2d83f1ab /drivers/dma
parent258fd4f924a01780f4d15831a3ddd1885effce90 (diff)
ENGR00225981-1 pxp: add UYVY input pixel format
The default camera output format is UYVY, PxP is used to convert UYVY to RGB565 for displaying on LCD. Signed-off-by: Robby Cai <R63905@freescale.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/pxp/pxp_dma_v2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/pxp/pxp_dma_v2.c b/drivers/dma/pxp/pxp_dma_v2.c
index 87b8f558ae8c..90e675d979ec 100644
--- a/drivers/dma/pxp/pxp_dma_v2.c
+++ b/drivers/dma/pxp/pxp_dma_v2.c
@@ -264,6 +264,9 @@ static void pxp_set_ctrl(struct pxps *pxp)
case PXP_PIX_FMT_YUV422P:
fmt_ctrl = BV_PXP_PS_CTRL_FORMAT__YUV422;
break;
+ case PXP_PIX_FMT_UYVY:
+ fmt_ctrl = BV_PXP_PS_CTRL_FORMAT__UYVY1P422;
+ break;
default:
fmt_ctrl = 0;
}