From: Huang Jiachai Date: Mon, 24 Apr 2017 03:41:33 +0000 (+0800) Subject: video: rockchip: vop: 3399: add more format support for gather X-Git-Tag: release-20171130_firefly~4^2~725 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e865031497304a16ca9389d8d917df9ee4e11caa;p=firefly-linux-kernel-4.4.55.git video: rockchip: vop: 3399: add more format support for gather Change-Id: I790c16604b40775c228434cd2cdbb1f48bb8ee5e Signed-off-by: Huang Jiachai --- diff --git a/drivers/video/rockchip/lcdc/rk322x_lcdc.c b/drivers/video/rockchip/lcdc/rk322x_lcdc.c index d09c2c88c928..3e7075632d34 100644 --- a/drivers/video/rockchip/lcdc/rk322x_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk322x_lcdc.c @@ -1275,6 +1275,7 @@ static int vop_axi_gather_cfg(struct vop_device *vop_dev, u16 cbcr_gather_num = 1; switch (win->area[0].format) { + case XRGB888: case ARGB888: case XBGR888: case ABGR888: @@ -1284,7 +1285,9 @@ static int vop_axi_gather_cfg(struct vop_device *vop_dev, yrgb_gather_num = 3; break; case RGB888: + case BGR888: case RGB565: + case BGR565: case FBDC_RGB_565: yrgb_gather_num = 2; break;