video: rockchip: vop: 3288: add parse dsp mode for VR
authorHuang Jiachai <hjc@rock-chips.com>
Thu, 8 Sep 2016 08:33:36 +0000 (16:33 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 9 Sep 2016 08:29:37 +0000 (16:29 +0800)
Change-Id: I6a8a753146591fce74df1606fcd551024778f1d1
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
drivers/video/rockchip/lcdc/rk3288_lcdc.c

index 650e595f9ae651b07471248bd4b7085533e9d696..1f300c4d2bfff92d9656c554c069e3cf56cb73d8 100755 (executable)
@@ -4065,6 +4065,12 @@ static int rk3288_lcdc_parse_dt(struct lcdc_device *lcdc_dev)
                dev_drv->iommu_enabled = 0;
        else
                dev_drv->iommu_enabled = val;
+
+       if (of_property_read_u32(np, "rockchip,dsp_mode", &val))
+               dev_drv->dsp_mode = DEFAULT_MODE;
+       else
+               dev_drv->dsp_mode = val;
+
        return 0;
 }