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 | 12295e7c0dbfec6832f9724d22753cd2bd34d15a (patch) | |
tree | 3c6f737146bdf924b272ba6777058a657e8eef57 /target/linux/adm5120/files | |
parent | c5e404a555e9680f5edb6af1ad0fc0e8d0eb3e42 (diff) | |
download | mtk-20170518-12295e7c0dbfec6832f9724d22753cd2bd34d15a.zip mtk-20170518-12295e7c0dbfec6832f9724d22753cd2bd34d15a.tar.gz mtk-20170518-12295e7c0dbfec6832f9724d22753cd2bd34d15a.tar.bz2 |
fix level setup code for GPIO IRQs
SVN-Revision: 9788
Diffstat (limited to 'target/linux/adm5120/files')
-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 361dcb8..ef7b9b9 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 */ |