parent f355ca59
......@@ -79,6 +79,8 @@ void tdc_activate_acquisition(struct spec_tdc *tdc)
{
/* Before activate the adquisition is required to reset the ACAM chip */
tdc_acam_reset(tdc);
/* Enable IRQ */
writel(0xC, tdc->base + TDC_IRQ_REG + 0x8);
writel(TDC_CTRL_EN_ACQ, tdc->base + TDC_CTRL_REG);
}
......
......@@ -166,7 +166,7 @@ irqreturn_t tdc_fmc_irq_handler(int irq, void *dev_id)
u32 irq_code;
/* Check the source of the interrupt */
irq_code = readl(fmc->base + TDC_IRQ_REG);
irq_code = readl(fmc->base + TDC_IRQ_REG + 0x4);
/* Tstamp threshold or time threshold */
if((irq_code & TDC_IRQ_TDC_TSTAMP) ||
......
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