From: Huang Jiachai Date: Sun, 9 Oct 2016 06:16:05 +0000 (+0800) Subject: video: rockchip: vop: 3399: fix vop little win1/3 property error X-Git-Tag: firefly_0821_release~1447 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca39ea0b6d0f75645c1f6c63448bf356bae22b35;p=firefly-linux-kernel-4.4.55.git video: rockchip: vop: 3399: fix vop little win1/3 property error Change-Id: I32580745f0b4ad252225756d793ec7c0247be452 Signed-off-by: Huang Jiachai --- diff --git a/drivers/video/rockchip/lcdc/rk322x_lcdc.c b/drivers/video/rockchip/lcdc/rk322x_lcdc.c index eaef51f4cdc7..a3ba69d8103b 100644 --- a/drivers/video/rockchip/lcdc/rk322x_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk322x_lcdc.c @@ -5122,11 +5122,6 @@ static int vop_probe(struct platform_device *pdev) dev_drv->property.max_output_x = 4096; dev_drv->property.max_output_y = 2160; - if ((VOP_CHIP(vop_dev) == VOP_RK3399) && (vop_dev->id == 1)) { - vop_dev->data->win[1].property.feature &= ~SUPPORT_HW_EXIST; - vop_dev->data->win[3].property.feature &= ~SUPPORT_HW_EXIST; - } - init_waitqueue_head(&vop_dev->wait_vop_switch_queue); vop_dev->vop_switch_status = 0; init_waitqueue_head(&vop_dev->wait_dmc_queue); @@ -5137,6 +5132,12 @@ static int vop_probe(struct platform_device *pdev) dev_err(dev, "register fb for lcdc%d failed!\n", vop_dev->id); return ret; } + + if ((VOP_CHIP(vop_dev) == VOP_RK3399) && (vop_dev->id == 1)) { + dev_drv->win[1]->property.feature &= ~SUPPORT_HW_EXIST; + dev_drv->win[3]->property.feature &= ~SUPPORT_HW_EXIST; + } + vop_dev->screen = dev_drv->screen0; dev_info(dev, "lcdc%d probe ok, iommu %s\n", vop_dev->id, dev_drv->iommu_enabled ? "enabled" : "disabled");