From 28e664e8689468c8ef311d3ee387a2f15153d04e Mon Sep 17 00:00:00 2001 From: Huang Jiachai Date: Wed, 16 Mar 2016 15:14:38 +0800 Subject: [PATCH] video: rockchip: vop lite: fix lut config error Change-Id: I201e3bb8a60650259e2de4f3973173039188fe34 Signed-off-by: Huang Jiachai --- drivers/video/rockchip/lcdc/rk_vop_lite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/lcdc/rk_vop_lite.c b/drivers/video/rockchip/lcdc/rk_vop_lite.c index ddeb9bf9f3a0..b8f90f14520a 100644 --- a/drivers/video/rockchip/lcdc/rk_vop_lite.c +++ b/drivers/video/rockchip/lcdc/rk_vop_lite.c @@ -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)); -- 2.34.1