rk312x lcdc: if output_color is YUV color,vop should open bcsh r2y
authorhjc <hjc@rock-chips.com>
Thu, 11 Sep 2014 10:29:02 +0000 (18:29 +0800)
committerhjc <hjc@rock-chips.com>
Thu, 11 Sep 2014 10:29:45 +0000 (18:29 +0800)
drivers/video/rockchip/lcdc/rk312x_lcdc.c

index 74414ab25df324efe9e8f9b76a39b307ddcafa89..0c629252cf2c55aa20dd485e7fafe94380f9b847 100755 (executable)
@@ -634,6 +634,8 @@ static int rk312x_lcdc_pre_init(struct rk_lcdc_driver *dev_drv)
        lcdc_cfg_done(lcdc_dev);
        if (dev_drv->iommu_enabled)     /* disable win0 to workaround iommu pagefault */
                lcdc_layer_enable(lcdc_dev, 0, 0);
+       if ((dev_drv->ops->open_bcsh)&&(dev_drv->output_color == COLOR_YCBCR))
+               dev_drv->ops->open_bcsh(dev_drv,1);
        lcdc_dev->pre_init = true;
 
        return 0;