diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-12-17 15:45:16 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-12-17 15:45:16 +0000 |
commit | f07c3ab1d2172332a745b465d1dae11ec679c9b2 (patch) | |
tree | 02837d27d658934ecbb23c2326388509ca617fa2 /target/linux | |
parent | f47de70aa524f98d4347ec7cadc98dee88fbb56b (diff) | |
download | upstream-f07c3ab1d2172332a745b465d1dae11ec679c9b2.tar.gz upstream-f07c3ab1d2172332a745b465d1dae11ec679c9b2.tar.bz2 upstream-f07c3ab1d2172332a745b465d1dae11ec679c9b2.zip |
[adm5120] fix level setup code for GPIO IRQs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9788 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/adm5120/files/arch/mips/adm5120/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/irq.c b/target/linux/adm5120/files/arch/mips/adm5120/irq.c index 361dcb8628..ef7b9b92e3 100644 --- a/target/linux/adm5120/files/arch/mips/adm5120/irq.c +++ b/target/linux/adm5120/files/arch/mips/adm5120/irq.c @@ -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 */ |