__raw_writel(cr3 | BIT_DMA_REFLASH_RFF, CSI_CSICR3);
}
+ if (status & BIT_HRESP_ERR_INT)
+ pr_warning("Hresponse error is detected.\n");
+
if (status & BIT_DMA_TSF_DONE_FB1) {
if (cam->capture_on) {
spin_lock(&cam->queue_int_lock);
clk_disable(&csi_mclk);
}
+void csi_dmareq_rff_enable(void)
+{
+ unsigned long cr3 = __raw_readl(CSI_CSICR3);
+
+ cr3 |= BIT_DMA_REQ_EN_RFF;
+ cr3 |= BIT_HRESP_ERR_EN;
+ __raw_writel(cr3, CSI_CSICR3);
+}
+
+void csi_dmareq_rff_disable(void)
+{
+ unsigned long cr3 = __raw_readl(CSI_CSICR3);
+
+ cr3 &= ~BIT_DMA_REQ_EN_RFF;
+ cr3 &= ~BIT_HRESP_ERR_EN;
+ __raw_writel(cr3, CSI_CSICR3);
+}
+
static int __devinit csi_probe(struct platform_device *pdev)
{
int ret = 0;
csihw_reset();
csi_init_interface();
+ csi_dmareq_rff_disable();
per_clk = clk_get(NULL, "csi_clk");
if (IS_ERR(per_clk))
void csi_disable_int(void);
void csi_mclk_enable(void);
void csi_mclk_disable(void);
+void csi_dmareq_rff_enable(void);
+void csi_dmareq_rff_disable(void);