From: Huang Jiachai Date: Thu, 8 Sep 2016 08:33:36 +0000 (+0800) Subject: video: rockchip: vop: 3288: add parse dsp mode for VR X-Git-Tag: firefly_0821_release~1567 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fac384396170d530d7663898dacdbe1857e80df1;p=firefly-linux-kernel-4.4.55.git video: rockchip: vop: 3288: add parse dsp mode for VR Change-Id: I6a8a753146591fce74df1606fcd551024778f1d1 Signed-off-by: Huang Jiachai --- diff --git a/drivers/video/rockchip/lcdc/rk3288_lcdc.c b/drivers/video/rockchip/lcdc/rk3288_lcdc.c index 650e595f9ae6..1f300c4d2bff 100755 --- a/drivers/video/rockchip/lcdc/rk3288_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk3288_lcdc.c @@ -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; }