Change-Id: I201e3bb8a60650259e2de4f3973173039188fe34
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
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));
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));