mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 21:44:04 +02:00
[adm5120] fix level setup code for GPIO IRQs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9788 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
51abc9c865
commit
477b3dc642
@ -109,9 +109,9 @@ static int adm5120_intc_irq_set_type(unsigned int irq, unsigned int flow_type)
|
||||
case ADM5120_IRQ_GPIO4:
|
||||
mode = INTC_READ(INTC_REG_INT_MODE);
|
||||
if (sense == IRQ_TYPE_LEVEL_LOW)
|
||||
mode |= (1 << (irq-ADM5120_INTC_IRQ_BASE));
|
||||
mode |= (1 << (3 + irq - ADM5120_IRQ_GPIO2));
|
||||
else
|
||||
mode &= (1 << (irq-ADM5120_INTC_IRQ_BASE));
|
||||
mode &= (1 << (3 + irq - ADM5120_IRQ_GPIO2));
|
||||
|
||||
INTC_WRITE(INTC_REG_INT_MODE, mode);
|
||||
/* fallthrough */
|
||||
|
Loading…
Reference in New Issue
Block a user