leon, gptimer: fixed probing separate interrupts

Probing of separate interrupts was done by storing the GPTIMER_CFG_SI bit. But
it was never actually stored since it is bit 8 and the datatype is 8-bit. Now
store the AND result as boolean value instead.
This commit is contained in:
Martin Aberg
2017-04-10 19:07:04 +02:00
committed by Daniel Hellstrom
parent 6234abe8bd
commit 256e083ffb

View File

@@ -293,7 +293,7 @@ int gptimer_init1(struct drvmgr_dev *dev)
* B. Each Timer have an individual IRQ. The number is:
* BASE_IRQ + timer_index
*/
priv->separate_interrupt = regs->cfg & GPTIMER_CFG_SI;
priv->separate_interrupt = (regs->cfg & GPTIMER_CFG_SI) != 0;
return DRVMGR_OK;
}