Skip to content

Commit 5fb2a5c

Browse files
Wenlong-Zhrkhuangtao
authored andcommitted
media/cif: ignore CSI error interrupt when CSI HOST work on DSI RX mode
Only remain PHY error and crc error interrupt. Change-Id: I8b2690e25c76728c7d3356d9ae69719b56754b55 Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
1 parent aa34d0f commit 5fb2a5c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/media/platform/rockchip/cif/capture.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ static void rkcif_csihost_disable(struct rkcif_device *dev)
520520
void __iomem *base = dev->csi_base;
521521

522522
write_csihost_reg(base, CSIHOST_RESETN, 0);
523+
write_csihost_reg(base, CSIHOST_MSK1, 0xffffffff);
524+
write_csihost_reg(base, CSIHOST_MSK2, 0xffffffff);
523525

524526
v4l2_info(&dev->v4l2_dev, "mipi csi host disable\n");
525527
}
@@ -536,9 +538,14 @@ static void rkcif_csihost_enable(struct rkcif_device *dev,
536538
SW_CPHY_EN(0) | SW_DSI_EN(1) |
537539
SW_DATATYPE_FS(0x01) | SW_DATATYPE_FE(0x11) |
538540
SW_DATATYPE_LS(0x21) | SW_DATATYPE_LE(0x31));
541+
/* Disable some error interrupt when HOST work on DSI RX mode */
542+
write_csihost_reg(base, CSIHOST_MSK1, 0xe00000f0);
543+
write_csihost_reg(base, CSIHOST_MSK2, 0xff00);
539544
} else {
540545
write_csihost_reg(base, CSIHOST_CONTROL,
541546
SW_CPHY_EN(0) | SW_DSI_EN(0));
547+
write_csihost_reg(base, CSIHOST_MSK1, 0);
548+
write_csihost_reg(base, CSIHOST_MSK2, 0);
542549
}
543550

544551
write_csihost_reg(base, CSIHOST_RESETN, 1);

0 commit comments

Comments
 (0)