projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f47de70
)
[adm5120] fix level setup code for GPIO IRQs
author
Gabor Juhos
<juhosg@openwrt.org>
Mon, 17 Dec 2007 15:45:16 +0000
(15:45 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Mon, 17 Dec 2007 15:45:16 +0000
(15:45 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9788
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
target/linux/adm5120/files/arch/mips/adm5120/irq.c
patch
|
blob
|
history
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
(file)
--- 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 */