Commit 63c322a0 authored by Federico Vaga's avatar Federico Vaga

kernel: software fix for VHDL problem IRQ coalescing

Signed-off-by: Federico Vaga's avatarFederico vaga <federico.vaga@cern.ch>
parent 334d7f52
......@@ -344,9 +344,11 @@ int ft_irq_init(struct fmctdc_dev *ft)
tasklet_init(&ft->readout_tasklet, ft_readout_tasklet,
(unsigned long)ft);
/* FIXME coalescing is not working on VHDL side, set to 1 timestamp
and 1 milliseconds can fix the problem (no coalescing) */
/* IRQ coalescing: 40 timestamps or 40 milliseconds */
ft_writel(ft, 40, TDC_REG_IRQ_THRESHOLD);
ft_writel(ft, 40, TDC_REG_IRQ_TIMEOUT);
ft_writel(ft, 1, TDC_REG_IRQ_THRESHOLD);
ft_writel(ft, 1, TDC_REG_IRQ_TIMEOUT);
/* enable timestamp readout IRQ */
fmc_writel(ft->fmc, TDC_IRQ_TDC_TSTAMP | TDC_IRQ_TDC_TIME,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment