fix level setup code for GPIO IRQs
SVN-Revision: 9788
This commit is contained in:
parent
c5e404a555
commit
12295e7c0d
@ -109,9 +109,9 @@ static int adm5120_intc_irq_set_type(unsigned int irq, unsigned int flow_type)
|
|||||||
case ADM5120_IRQ_GPIO4:
|
case ADM5120_IRQ_GPIO4:
|
||||||
mode = INTC_READ(INTC_REG_INT_MODE);
|
mode = INTC_READ(INTC_REG_INT_MODE);
|
||||||
if (sense == IRQ_TYPE_LEVEL_LOW)
|
if (sense == IRQ_TYPE_LEVEL_LOW)
|
||||||
mode |= (1 << (irq-ADM5120_INTC_IRQ_BASE));
|
mode |= (1 << (3 + irq - ADM5120_IRQ_GPIO2));
|
||||||
else
|
else
|
||||||
mode &= (1 << (irq-ADM5120_INTC_IRQ_BASE));
|
mode &= (1 << (3 + irq - ADM5120_IRQ_GPIO2));
|
||||||
|
|
||||||
INTC_WRITE(INTC_REG_INT_MODE, mode);
|
INTC_WRITE(INTC_REG_INT_MODE, mode);
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
|
Loading…
Reference in New Issue
Block a user