rk312x lcdc: if output_color is YUV color,vop should open bcsh r2y

This commit is contained in:
hjc
2014-09-11 18:29:02 +08:00
parent 2364b1fc28
commit d094d44a5b

View File

@@ -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;