video: rockchip: vop lite: fix lut config error
authorHuang Jiachai <hjc@rock-chips.com>
Wed, 16 Mar 2016 07:14:38 +0000 (15:14 +0800)
committerHuang Jiachai <hjc@rock-chips.com>
Fri, 18 Mar 2016 07:07:11 +0000 (15:07 +0800)
Change-Id: I201e3bb8a60650259e2de4f3973173039188fe34
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
drivers/video/rockchip/lcdc/rk_vop_lite.c

index ddeb9bf9f3a052b9a2e07035f96ca33e85281221..b8f90f14520a77e91fb4cac8ac61956498b7d67a 100644 (file)
@@ -779,7 +779,7 @@ static int vop_set_hwc_lut(struct rk_lcdc_driver *dev_drv,
                                dev_drv->hwc_lut[i] = hwc_lut[i];
 
                        v = dev_drv->hwc_lut[i];
-                       c = vop_dev->hwc_lut_addr_base + i;
+                       c = vop_dev->hwc_lut_addr_base + (i << 2);
                        writel_relaxed(v, c);
                }
                vop_msk_reg(vop_dev, HWC_CTRL0, V_HWC_LUT_EN(1));
@@ -807,7 +807,7 @@ static int vop_set_lut(struct rk_lcdc_driver *dev_drv, int *dsp_lut)
                mdelay(25);
                for (i = 0; i < 256; i++) {
                        v = dsp_lut[i];
-                       c = vop_dev->dsp_lut_addr_base + i;
+                       c = vop_dev->dsp_lut_addr_base + (i << 2);
                        writel_relaxed(v, c);
                }
                vop_msk_reg(vop_dev, DSP_CTRL2, V_DSP_LUT_EN(1));