vpu: fix mem_pd reg4 mistake for local dimming [1/1]
authorEvoke Zhang <evoke.zhang@amlogic.com>
Sun, 5 May 2019 09:39:01 +0000 (05:39 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 23 Jul 2019 09:56:22 +0000 (02:56 -0700)
PD#SWPL-6798

Problem:
vpu mem_pd reg4 config is incorrect

Solution:
fix mem_pd reg4 config

Verify:
ab301

Change-Id: Ibeb732051c2ad4b46e55f66fe05fce440b450263
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
drivers/amlogic/media/common/vpu/vpu_ctrl.h
drivers/amlogic/media/common/vpu/vpu_module.h
include/linux/amlogic/media/vpu/vpu.h

index 30e39dc..2657bc4 100644 (file)
@@ -510,7 +510,9 @@ static struct vpu_ctrl_s vpu_mem_pd_tm2[] = {
        {VPU_TCON,            HHI_VPU_MEM_PD_REG3, 0x3, 16,  16},
        {VPU_AXI_WR1,         HHI_VPU_MEM_PD_REG4, 0x3,  0,   2},
        {VPU_AXI_WR0,         HHI_VPU_MEM_PD_REG4, 0x3,  2,   2},
-       {VPU_DMA,             HHI_VPU_MEM_PD_REG4, 0xf,  4,   4},
+       {VPU_AFBCE,           HHI_VPU_MEM_PD_REG4, 0x3,  4,   2},
+       {VPU_VDIN_WR_MIF2,    HHI_VPU_MEM_PD_REG4, 0x3,  6,   2},
+       {VPU_DMA,             HHI_VPU_MEM_PD_REG4, 0xf,  8,   4},
        {VPU_MOD_MAX,         VPU_REG_END,         0,    0,   0},
 };
 
index 72e1b4f..ca2e03d 100644 (file)
@@ -85,7 +85,8 @@ static char *vpu_mod_table[] = {
        "axi_wr1",
        "axi_wr0",
        "afbce",
-       "dma"
+       "vdin_wr_mif2",
+       "dma",
 
        "vpu_mod_max",
 
index 067b061..bee9a18 100644 (file)
@@ -85,7 +85,8 @@ enum vpu_mod_e {
        VPU_AXI_WR1,          /* reg4[1:0], TL1 */
        VPU_AXI_WR0,          /* reg4[3:2], TL1 */
        VPU_AFBCE,            /* reg4[5:4], TL1 */
-       VPU_DMA,              /* reg4[7:4], TM2 */
+       VPU_VDIN_WR_MIF2,     /* reg4[7:6], TM2 */
+       VPU_DMA,              /* reg4[11:8], TM2 */
 
        VPU_MOD_MAX,