media: rockchip: isp: soft reset for Dehaze

Change-Id: Ie6f4b42bb1d5d37b6347c5cf65b7730794f22d7a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2020-09-10 15:30:28 +08:00
committed by Tao Huang
parent 2103478839
commit 4b6e4691a4

View File

@@ -478,11 +478,13 @@ void rkisp_soft_reset(struct rkisp_hw_dev *dev)
reset_control_assert(dev->reset);
udelay(10);
reset_control_deassert(dev->reset);
} else {
writel(CIF_ISP_CTRL_ISP_MODE_BAYER_ITU601, base + CIF_ISP_CTRL);
writel(0xffff, base + CIF_IRCL);
udelay(10);
}
/* reset for Dehaze */
writel(CIF_ISP_CTRL_ISP_MODE_BAYER_ITU601, base + CIF_ISP_CTRL);
writel(0xffff, base + CIF_IRCL);
udelay(10);
if (domain) {
#ifdef CONFIG_IOMMU_API
domain->ops->detach_dev(domain, dev->dev);